@alfalab/core-components-typography 4.14.3 → 5.0.0-snapshot-6a9d3fc
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 +22 -44
- package/colors.d.ts +2 -3
- package/colors.js +1 -0
- package/colors.js.map +1 -0
- package/colors.module.css.js +8 -0
- package/colors.module.css.js.map +1 -0
- package/component.d.ts +7 -7
- package/component.js +13 -12
- package/component.js.map +1 -0
- package/cssm/colors.d.ts +2 -3
- package/cssm/colors.js +1 -0
- package/cssm/colors.js.map +1 -0
- package/cssm/colors.module.css +3 -24
- package/cssm/component.d.ts +7 -7
- package/cssm/component.js +13 -12
- package/cssm/component.js.map +1 -0
- package/cssm/index.d.ts +5 -5
- package/cssm/index.js +9 -8
- package/cssm/index.js.map +1 -0
- package/cssm/presets.d.ts +1 -2
- package/cssm/presets.js +1 -0
- package/cssm/presets.js.map +1 -0
- package/cssm/text/alfasans-index.module.css +18 -29
- package/cssm/text/component.d.ts +10 -12
- package/cssm/text/component.js +3 -2
- package/cssm/text/component.js.map +1 -0
- package/cssm/text/index.d.ts +1 -1
- package/cssm/text/index.js +3 -2
- package/cssm/text/index.js.map +1 -0
- package/cssm/text/index.module.css +3 -24
- package/cssm/title/alfasans-index.module.css +2 -23
- package/cssm/title/common.module.css +2 -23
- package/cssm/title/component.d.ts +13 -15
- package/cssm/title/component.js +7 -6
- package/cssm/title/component.js.map +1 -0
- package/cssm/title/index.d.ts +5 -6
- package/cssm/title/index.js +3 -2
- package/cssm/title/index.js.map +1 -0
- package/cssm/title/index.module.css +6 -26
- package/cssm/title/utils.d.ts +1 -2
- package/cssm/title/utils.js +1 -0
- package/cssm/title/utils.js.map +1 -0
- package/cssm/title-mobile/alfasans-index.module.css +2 -23
- package/cssm/title-mobile/component.d.ts +5 -7
- package/cssm/title-mobile/component.js +3 -2
- package/cssm/title-mobile/component.js.map +1 -0
- package/cssm/title-mobile/index.d.ts +2 -2
- package/cssm/title-mobile/index.js +3 -2
- package/cssm/title-mobile/index.js.map +1 -0
- package/cssm/title-mobile/index.module.css +5 -25
- package/cssm/title-responsive/component.d.ts +7 -9
- package/cssm/title-responsive/component.js +6 -5
- package/cssm/title-responsive/component.js.map +1 -0
- package/cssm/title-responsive/index.d.ts +1 -1
- package/cssm/title-responsive/index.js +3 -2
- package/cssm/title-responsive/index.js.map +1 -0
- package/cssm/types.d.ts +1 -2
- package/cssm/types.js +1 -0
- package/cssm/types.js.map +1 -0
- package/esm/colors.css +22 -44
- package/esm/colors.d.ts +2 -3
- package/esm/colors.js +1 -0
- package/esm/colors.js.map +1 -0
- package/esm/colors.module.css.js +6 -0
- package/esm/colors.module.css.js.map +1 -0
- package/esm/component.d.ts +7 -7
- package/esm/component.js +1 -0
- package/esm/component.js.map +1 -0
- package/esm/index.d.ts +5 -5
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -0
- package/esm/presets.d.ts +1 -2
- package/esm/presets.js +1 -0
- package/esm/presets.js.map +1 -0
- package/esm/text/alfasans-index.css +30 -58
- package/esm/text/alfasans-index.module.css.js +6 -0
- package/esm/text/alfasans-index.module.css.js.map +1 -0
- package/esm/text/component.d.ts +10 -12
- package/esm/text/component.js +4 -7
- package/esm/text/component.js.map +1 -0
- package/esm/text/index.css +24 -45
- package/esm/text/index.d.ts +1 -1
- package/esm/text/index.js +1 -0
- package/esm/text/index.js.map +1 -0
- package/esm/text/index.module.css.js +6 -0
- package/esm/text/index.module.css.js.map +1 -0
- package/esm/title/alfasans-index.css +11 -33
- package/esm/title/alfasans-index.module.css.js +6 -0
- package/esm/title/alfasans-index.module.css.js.map +1 -0
- package/esm/title/common.css +9 -31
- package/esm/title/common.module.css.js +6 -0
- package/esm/title/common.module.css.js.map +1 -0
- package/esm/title/component.d.ts +12 -14
- package/esm/title/component.js +2 -1
- package/esm/title/component.js.map +1 -0
- package/esm/title/index.css +21 -42
- package/esm/title/index.d.ts +4 -5
- package/esm/title/index.js +4 -7
- package/esm/title/index.js.map +1 -0
- package/esm/title/index.module.css.js +6 -0
- package/esm/title/index.module.css.js.map +1 -0
- package/esm/title/utils.d.ts +1 -2
- package/esm/title/utils.js +1 -0
- package/esm/title/utils.js.map +1 -0
- package/esm/title-mobile/alfasans-index.css +11 -33
- package/esm/title-mobile/alfasans-index.module.css.js +6 -0
- package/esm/title-mobile/alfasans-index.module.css.js.map +1 -0
- package/esm/title-mobile/component.d.ts +4 -6
- package/esm/title-mobile/component.js +4 -7
- package/esm/title-mobile/component.js.map +1 -0
- package/esm/title-mobile/index.css +19 -40
- package/esm/title-mobile/index.d.ts +2 -2
- package/esm/title-mobile/index.js +1 -0
- package/esm/title-mobile/index.js.map +1 -0
- package/esm/title-mobile/index.module.css.js +6 -0
- package/esm/title-mobile/index.module.css.js.map +1 -0
- package/esm/title-responsive/component.d.ts +6 -8
- package/esm/title-responsive/component.js +1 -0
- package/esm/title-responsive/component.js.map +1 -0
- package/esm/title-responsive/index.d.ts +1 -1
- package/esm/title-responsive/index.js +1 -0
- package/esm/title-responsive/index.js.map +1 -0
- package/esm/types.d.ts +1 -2
- package/esm/types.js +1 -0
- package/esm/types.js.map +1 -0
- package/index.d.ts +5 -5
- package/index.js +9 -8
- package/index.js.map +1 -0
- package/modern/colors.css +22 -44
- package/modern/colors.d.ts +2 -3
- package/modern/colors.js +1 -0
- package/modern/colors.js.map +1 -0
- package/modern/colors.module.css.js +6 -0
- package/modern/colors.module.css.js.map +1 -0
- package/modern/component.d.ts +7 -7
- package/modern/component.js +1 -0
- package/modern/component.js.map +1 -0
- package/modern/index.d.ts +5 -5
- package/modern/index.js +1 -0
- package/modern/index.js.map +1 -0
- package/modern/presets.d.ts +1 -2
- package/modern/presets.js +1 -0
- package/modern/presets.js.map +1 -0
- package/modern/text/alfasans-index.css +30 -58
- package/modern/text/alfasans-index.module.css.js +6 -0
- package/modern/text/alfasans-index.module.css.js.map +1 -0
- package/modern/text/component.d.ts +10 -12
- package/modern/text/component.js +4 -7
- package/modern/text/component.js.map +1 -0
- package/modern/text/index.css +24 -45
- package/modern/text/index.d.ts +1 -1
- package/modern/text/index.js +1 -0
- package/modern/text/index.js.map +1 -0
- package/modern/text/index.module.css.js +6 -0
- package/modern/text/index.module.css.js.map +1 -0
- package/modern/title/alfasans-index.css +11 -33
- package/modern/title/alfasans-index.module.css.js +6 -0
- package/modern/title/alfasans-index.module.css.js.map +1 -0
- package/modern/title/common.css +9 -31
- package/modern/title/common.module.css.js +6 -0
- package/modern/title/common.module.css.js.map +1 -0
- package/modern/title/component.d.ts +12 -14
- package/modern/title/component.js +2 -1
- package/modern/title/component.js.map +1 -0
- package/modern/title/index.css +21 -42
- package/modern/title/index.d.ts +4 -5
- package/modern/title/index.js +4 -7
- package/modern/title/index.js.map +1 -0
- package/modern/title/index.module.css.js +6 -0
- package/modern/title/index.module.css.js.map +1 -0
- package/modern/title/utils.d.ts +1 -2
- package/modern/title/utils.js +1 -0
- package/modern/title/utils.js.map +1 -0
- package/modern/title-mobile/alfasans-index.css +11 -33
- package/modern/title-mobile/alfasans-index.module.css.js +6 -0
- package/modern/title-mobile/alfasans-index.module.css.js.map +1 -0
- package/modern/title-mobile/component.d.ts +4 -6
- package/modern/title-mobile/component.js +4 -7
- package/modern/title-mobile/component.js.map +1 -0
- package/modern/title-mobile/index.css +19 -40
- package/modern/title-mobile/index.d.ts +2 -2
- package/modern/title-mobile/index.js +1 -0
- package/modern/title-mobile/index.js.map +1 -0
- package/modern/title-mobile/index.module.css.js +6 -0
- package/modern/title-mobile/index.module.css.js.map +1 -0
- package/modern/title-responsive/component.d.ts +6 -8
- package/modern/title-responsive/component.js +1 -0
- package/modern/title-responsive/component.js.map +1 -0
- package/modern/title-responsive/index.d.ts +1 -1
- package/modern/title-responsive/index.js +1 -0
- package/modern/title-responsive/index.js.map +1 -0
- package/modern/types.d.ts +1 -2
- package/modern/types.js +1 -0
- package/modern/types.js.map +1 -0
- package/moderncssm/colors.d.ts +2 -3
- package/moderncssm/colors.js +1 -0
- package/moderncssm/colors.js.map +1 -0
- package/moderncssm/colors.module.css +0 -4
- package/moderncssm/component.d.ts +7 -7
- package/moderncssm/component.js +1 -0
- package/moderncssm/component.js.map +1 -0
- package/moderncssm/index.d.ts +5 -5
- package/moderncssm/index.js +1 -0
- package/moderncssm/index.js.map +1 -0
- package/moderncssm/presets.d.ts +1 -2
- package/moderncssm/presets.js +1 -0
- package/moderncssm/presets.js.map +1 -0
- package/moderncssm/text/alfasans-index.module.css +18 -29
- package/moderncssm/text/component.d.ts +10 -12
- package/moderncssm/text/component.js +1 -0
- package/moderncssm/text/component.js.map +1 -0
- package/moderncssm/text/index.d.ts +1 -1
- package/moderncssm/text/index.js +1 -0
- package/moderncssm/text/index.js.map +1 -0
- package/moderncssm/text/index.module.css +0 -1
- package/moderncssm/title/alfasans-index.module.css +2 -23
- package/moderncssm/title/common.module.css +0 -2
- package/moderncssm/title/component.d.ts +12 -14
- package/moderncssm/title/component.js +1 -0
- package/moderncssm/title/component.js.map +1 -0
- package/moderncssm/title/index.d.ts +4 -5
- package/moderncssm/title/index.js +1 -0
- package/moderncssm/title/index.js.map +1 -0
- package/moderncssm/title/index.module.css +0 -1
- package/moderncssm/title/utils.d.ts +1 -2
- package/moderncssm/title/utils.js +1 -0
- package/moderncssm/title/utils.js.map +1 -0
- package/moderncssm/title-mobile/alfasans-index.module.css +2 -23
- package/moderncssm/title-mobile/component.d.ts +4 -6
- package/moderncssm/title-mobile/component.js +1 -0
- package/moderncssm/title-mobile/component.js.map +1 -0
- package/moderncssm/title-mobile/index.d.ts +2 -2
- package/moderncssm/title-mobile/index.js +1 -0
- package/moderncssm/title-mobile/index.js.map +1 -0
- package/moderncssm/title-mobile/index.module.css +0 -1
- package/moderncssm/title-responsive/component.d.ts +6 -8
- package/moderncssm/title-responsive/component.js +1 -0
- package/moderncssm/title-responsive/component.js.map +1 -0
- package/moderncssm/title-responsive/index.d.ts +1 -1
- package/moderncssm/title-responsive/index.js +1 -0
- package/moderncssm/title-responsive/index.js.map +1 -0
- package/moderncssm/types.d.ts +1 -2
- package/moderncssm/types.js +1 -0
- package/moderncssm/types.js.map +1 -0
- package/package.json +8 -8
- package/presets.d.ts +1 -2
- package/presets.js +1 -0
- package/presets.js.map +1 -0
- package/text/alfasans-index.css +30 -58
- package/text/alfasans-index.module.css.js +8 -0
- package/text/alfasans-index.module.css.js.map +1 -0
- package/text/component.d.ts +10 -12
- package/text/component.js +12 -15
- package/text/component.js.map +1 -0
- package/text/index.css +24 -45
- package/text/index.d.ts +1 -1
- package/text/index.js +3 -2
- package/text/index.js.map +1 -0
- package/text/index.module.css.js +8 -0
- package/text/index.module.css.js.map +1 -0
- package/title/alfasans-index.css +11 -33
- package/title/alfasans-index.module.css.js +8 -0
- package/title/alfasans-index.module.css.js.map +1 -0
- package/title/common.css +9 -31
- package/title/common.module.css.js +8 -0
- package/title/common.module.css.js.map +1 -0
- package/title/component.d.ts +12 -14
- package/title/component.js +5 -4
- package/title/component.js.map +1 -0
- package/title/index.css +21 -42
- package/title/index.d.ts +4 -5
- package/title/index.js +7 -10
- package/title/index.js.map +1 -0
- package/title/index.module.css.js +8 -0
- package/title/index.module.css.js.map +1 -0
- package/title/utils.d.ts +1 -2
- package/title/utils.js +1 -0
- package/title/utils.js.map +1 -0
- package/title-mobile/alfasans-index.css +11 -33
- package/title-mobile/alfasans-index.module.css.js +8 -0
- package/title-mobile/alfasans-index.module.css.js.map +1 -0
- package/title-mobile/component.d.ts +4 -6
- package/title-mobile/component.js +7 -10
- package/title-mobile/component.js.map +1 -0
- package/title-mobile/index.css +19 -40
- package/title-mobile/index.d.ts +2 -2
- package/title-mobile/index.js +3 -2
- package/title-mobile/index.js.map +1 -0
- package/title-mobile/index.module.css.js +8 -0
- package/title-mobile/index.module.css.js.map +1 -0
- package/title-responsive/component.d.ts +6 -8
- package/title-responsive/component.js +4 -3
- package/title-responsive/component.js.map +1 -0
- package/title-responsive/index.d.ts +1 -1
- package/title-responsive/index.js +3 -2
- package/title-responsive/index.js.map +1 -0
- package/types.d.ts +1 -2
- package/types.js +1 -0
- package/types.js.map +1 -0
- package/colors.module-0ab37907.js +0 -6
- package/common.module-162cc30e.js +0 -6
- package/cssm/common.module.css +0 -3
- package/cssm/margins.module.css +0 -1
- package/esm/colors.module-719e5e74.js +0 -4
- package/esm/common.module-2fe7f697.js +0 -4
- package/modern/colors.module-8f6f35d9.js +0 -4
- package/modern/common.module-3e4facd7.js +0 -4
- package/moderncssm/common.module.css +0 -3
- package/moderncssm/margins.module.css +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { TitleProps } from
|
|
4
|
-
type TitleResponsiveProps = TitleProps & {
|
|
2
|
+
import { TitleProps } from '../title';
|
|
3
|
+
export declare type TitleResponsiveProps = TitleProps & {
|
|
5
4
|
/**
|
|
6
5
|
* Контрольная точка, с нее начинается desktop версия
|
|
7
6
|
* @default 1024
|
|
@@ -12,11 +11,11 @@ type TitleResponsiveProps = TitleProps & {
|
|
|
12
11
|
*/
|
|
13
12
|
client?: 'desktop' | 'mobile';
|
|
14
13
|
};
|
|
15
|
-
declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
14
|
+
export declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
16
15
|
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
17
|
-
view?: "
|
|
16
|
+
view?: "medium" | "small" | "xlarge" | "large" | "xsmall" | undefined;
|
|
18
17
|
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;
|
|
19
|
-
weight?: "
|
|
18
|
+
weight?: "regular" | "medium" | "bold" | "semibold" | undefined;
|
|
20
19
|
font?: "alfasans" | "styrene" | "system" | {
|
|
21
20
|
font: "alfasans";
|
|
22
21
|
systemCompat: boolean;
|
|
@@ -25,7 +24,7 @@ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAt
|
|
|
25
24
|
className?: string | undefined;
|
|
26
25
|
dataTestId?: string | undefined;
|
|
27
26
|
children?: React.ReactNode;
|
|
28
|
-
rowLimit?:
|
|
27
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
29
28
|
showSkeleton?: boolean | undefined;
|
|
30
29
|
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps | undefined;
|
|
31
30
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
@@ -40,4 +39,3 @@ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAt
|
|
|
40
39
|
*/
|
|
41
40
|
client?: "mobile" | "desktop" | undefined;
|
|
42
41
|
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
43
|
-
export { TitleResponsiveProps, TitleResponsive };
|
|
@@ -0,0 +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":[],"mappings":";;;;;;IAoBa,eAAe,GAAG,UAAU,CAGvC,UAAC,EAAoC,EAAE,GAAG,EAAA;IAAvC,IAAA,UAAU,gBAAA,EAAE,MAAM,YAAA,EAAK,SAAS,GAAlC,MAAA,CAAA,EAAA,EAAA,CAAA,YAAA,EAAA,QAAA,CAAoC,CAAF;IACjC,IAAM,SAAS,GAAG,YAAY,CAAC,UAAU,EAAE,MAAM,KAAK,SAAS,CAAC;IAEhE,IAAM,SAAS,GAAG,SAAS,GAAG,KAAK,GAAG,WAAW;IAEjD,OAAO,KAAA,CAAA,aAAA,CAAC,SAAS,EAAK,QAAA,CAAA,EAAA,EAAA,SAAS,IAAE,GAAG,EAAE,GAAG,EAAA,CAAA,CAAI;AACjD,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/esm/types.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
-
export { TextElementType };
|
|
1
|
+
export declare type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
package/esm/types.js
CHANGED
package/esm/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export type { TitleProps } from
|
|
4
|
-
export type { TextProps } from
|
|
5
|
-
export type { Color } from
|
|
1
|
+
export * from './component';
|
|
2
|
+
export * from './presets';
|
|
3
|
+
export type { TitleProps } from './title';
|
|
4
|
+
export type { TextProps } from './text';
|
|
5
|
+
export type { Color } from './colors';
|
package/index.js
CHANGED
|
@@ -4,16 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var component = require('./component.js');
|
|
6
6
|
var presets = require('./presets.js');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
7
|
+
var component$1 = require('./text/component.js');
|
|
8
|
+
var index = require('./title/index.js');
|
|
9
|
+
var component$2 = require('./title-responsive/component.js');
|
|
10
|
+
var component$3 = require('./title-mobile/component.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
exports.Typography = component.Typography;
|
|
15
15
|
exports.typographyPresets = presets.typographyPresets;
|
|
16
|
-
exports.Text =
|
|
17
|
-
exports.TitleDesktop =
|
|
18
|
-
exports.TitleResponsive =
|
|
19
|
-
exports.TitleMobile =
|
|
16
|
+
exports.Text = component$1.Text;
|
|
17
|
+
exports.TitleDesktop = index.Title;
|
|
18
|
+
exports.TitleResponsive = component$2.TitleResponsive;
|
|
19
|
+
exports.TitleMobile = component$3.TitleMobile;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
package/modern/colors.css
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
|
-
} /* deprecated */ :root {
|
|
1
|
+
:root {
|
|
4
2
|
--color-light-accent-primary: #ef3124;
|
|
5
3
|
--color-light-text-attention: #ea8313;
|
|
6
4
|
--color-light-text-info: #2a77ef;
|
|
@@ -20,65 +18,45 @@
|
|
|
20
18
|
--color-static-text-secondary-dark: rgba(4, 4, 19, 0.55);
|
|
21
19
|
--color-static-text-secondary-light: rgba(238, 238, 251, 0.55);
|
|
22
20
|
--color-static-text-tertiary-dark: rgba(5, 8, 29, 0.38);
|
|
23
|
-
--color-static-text-tertiary-light: rgba(233, 233, 250, 0.37);
|
|
24
|
-
}
|
|
25
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
26
|
-
} :root {
|
|
27
|
-
|
|
28
|
-
/* Hard */
|
|
29
|
-
|
|
30
|
-
/* Up */
|
|
31
|
-
|
|
32
|
-
/* Hard up */
|
|
33
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
34
|
-
|
|
35
|
-
/* новые значения, используйте их */
|
|
36
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
37
|
-
|
|
38
|
-
/* новые значения, используйте их */
|
|
39
|
-
|
|
40
|
-
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
41
|
-
/* stylelint-disable-next-line length-zero-no-unit */
|
|
42
|
-
} :root {
|
|
43
|
-
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
44
|
-
} /* сбрасывает синюю подсветку при нажатии */ /* colors */ .typography__tertiary_emyw2 {
|
|
21
|
+
--color-static-text-tertiary-light: rgba(233, 233, 250, 0.37);
|
|
22
|
+
} .typography__tertiary_d8qh8 {
|
|
45
23
|
color: var(--color-light-text-tertiary);
|
|
46
|
-
} .
|
|
24
|
+
} .typography__disabled_d8qh8 {
|
|
47
25
|
color: var(--color-light-text-quaternary);
|
|
48
|
-
} .
|
|
26
|
+
} .typography__accent_d8qh8 {
|
|
49
27
|
color: var(--color-light-accent-primary);
|
|
50
|
-
} .
|
|
28
|
+
} .typography__primary_d8qh8 {
|
|
51
29
|
color: var(--color-light-text-primary);
|
|
52
|
-
} .
|
|
30
|
+
} .typography__attention_d8qh8 {
|
|
53
31
|
color: var(--color-light-text-attention);
|
|
54
|
-
} .
|
|
32
|
+
} .typography__positive_d8qh8 {
|
|
55
33
|
color: var(--color-light-text-positive);
|
|
56
|
-
} .
|
|
34
|
+
} .typography__secondary_d8qh8 {
|
|
57
35
|
color: var(--color-light-text-secondary);
|
|
58
|
-
} .typography__tertiary-
|
|
36
|
+
} .typography__tertiary-inverted_d8qh8 {
|
|
59
37
|
color: var(--color-light-text-tertiary-inverted);
|
|
60
|
-
} .typography__primary-
|
|
38
|
+
} .typography__primary-inverted_d8qh8 {
|
|
61
39
|
color: var(--color-light-text-primary-inverted);
|
|
62
|
-
} .typography__secondary-
|
|
40
|
+
} .typography__secondary-inverted_d8qh8 {
|
|
63
41
|
color: var(--color-light-text-secondary-inverted);
|
|
64
|
-
} .
|
|
42
|
+
} .typography__link_d8qh8 {
|
|
65
43
|
color: var(--color-light-text-info);
|
|
66
|
-
} .
|
|
44
|
+
} .typography__negative_d8qh8 {
|
|
67
45
|
color: var(--color-light-text-negative);
|
|
68
|
-
} .typography__static-primary-
|
|
46
|
+
} .typography__static-primary-light_d8qh8 {
|
|
69
47
|
color: var(--color-static-text-primary-light);
|
|
70
|
-
} .typography__static-secondary-
|
|
48
|
+
} .typography__static-secondary-light_d8qh8 {
|
|
71
49
|
color: var(--color-static-text-secondary-light);
|
|
72
|
-
} .typography__static-tertiary-
|
|
50
|
+
} .typography__static-tertiary-light_d8qh8 {
|
|
73
51
|
color: var(--color-static-text-tertiary-light);
|
|
74
|
-
} .typography__static-primary-
|
|
52
|
+
} .typography__static-primary-dark_d8qh8 {
|
|
75
53
|
color: var(--color-static-text-primary-dark);
|
|
76
|
-
} .typography__static-secondary-
|
|
54
|
+
} .typography__static-secondary-dark_d8qh8 {
|
|
77
55
|
color: var(--color-static-text-secondary-dark);
|
|
78
|
-
} .typography__static-tertiary-
|
|
56
|
+
} .typography__static-tertiary-dark_d8qh8 {
|
|
79
57
|
color: var(--color-static-text-tertiary-dark);
|
|
80
|
-
} .typography__static-
|
|
58
|
+
} .typography__static-accent_d8qh8 {
|
|
81
59
|
color: var(--color-static-accent-primary);
|
|
82
|
-
} .typography__static-
|
|
60
|
+
} .typography__static-positive_d8qh8 {
|
|
83
61
|
color: var(--color-static-text-positive);
|
|
84
62
|
}
|
package/modern/colors.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const colors: readonly ["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"];
|
|
2
|
-
type Color = (typeof colors)[number];
|
|
3
|
-
export { colors, Color };
|
|
1
|
+
export declare const colors: readonly ["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"];
|
|
2
|
+
export declare type Color = (typeof colors)[number];
|
package/modern/colors.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","sources":["../src/colors.ts"],"sourcesContent":["export const colors = [\n 'tertiary',\n 'disabled',\n 'accent',\n 'primary',\n 'attention',\n 'positive',\n 'secondary',\n 'tertiary-inverted',\n 'primary-inverted',\n 'secondary-inverted',\n 'link',\n 'negative',\n 'static-primary-light',\n 'static-secondary-light',\n 'static-tertiary-light',\n 'static-primary-dark',\n 'static-secondary-dark',\n 'static-tertiary-dark',\n 'static-accent',\n 'static-positive',\n] as const;\n\nexport type Color = (typeof colors)[number];\n"],"names":[],"mappings":"AAAa,MAAA,MAAM,GAAG;IAClB,UAAU;IACV,UAAU;IACV,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,WAAW;IACX,mBAAmB;IACnB,kBAAkB;IAClB,oBAAoB;IACpB,MAAM;IACN,UAAU;IACV,sBAAsB;IACtB,wBAAwB;IACxB,uBAAuB;IACvB,qBAAqB;IACrB,uBAAuB;IACvB,sBAAsB;IACtB,eAAe;IACf,iBAAiB;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './colors.css';
|
|
2
|
+
|
|
3
|
+
const colors = {"tertiary":"typography__tertiary_d8qh8","disabled":"typography__disabled_d8qh8","accent":"typography__accent_d8qh8","primary":"typography__primary_d8qh8","attention":"typography__attention_d8qh8","positive":"typography__positive_d8qh8","secondary":"typography__secondary_d8qh8","tertiary-inverted":"typography__tertiary-inverted_d8qh8","primary-inverted":"typography__primary-inverted_d8qh8","secondary-inverted":"typography__secondary-inverted_d8qh8","link":"typography__link_d8qh8","negative":"typography__negative_d8qh8","static-primary-light":"typography__static-primary-light_d8qh8","static-secondary-light":"typography__static-secondary-light_d8qh8","static-tertiary-light":"typography__static-tertiary-light_d8qh8","static-primary-dark":"typography__static-primary-dark_d8qh8","static-secondary-dark":"typography__static-secondary-dark_d8qh8","static-tertiary-dark":"typography__static-tertiary-dark_d8qh8","static-accent":"typography__static-accent_d8qh8","static-positive":"typography__static-positive_d8qh8"};
|
|
4
|
+
|
|
5
|
+
export { colors as default };
|
|
6
|
+
//# sourceMappingURL=colors.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.module.css.js","sources":["src/colors.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n/* colors */\n\n.tertiary {\n color: var(--color-light-text-tertiary);\n}\n\n.disabled {\n color: var(--color-light-text-quaternary);\n}\n\n.accent {\n color: var(--color-light-accent-primary);\n}\n\n.primary {\n color: var(--color-light-text-primary);\n}\n\n.attention {\n color: var(--color-light-text-attention);\n}\n\n.positive {\n color: var(--color-light-text-positive);\n}\n\n.secondary {\n color: var(--color-light-text-secondary);\n}\n\n.tertiary-inverted {\n color: var(--color-light-text-tertiary-inverted);\n}\n\n.primary-inverted {\n color: var(--color-light-text-primary-inverted);\n}\n\n.secondary-inverted {\n color: var(--color-light-text-secondary-inverted);\n}\n\n.link {\n color: var(--color-light-text-info);\n}\n\n.negative {\n color: var(--color-light-text-negative);\n}\n\n.static-primary-light {\n color: var(--color-static-text-primary-light);\n}\n\n.static-secondary-light {\n color: var(--color-static-text-secondary-light);\n}\n\n.static-tertiary-light {\n color: var(--color-static-text-tertiary-light);\n}\n\n.static-primary-dark {\n color: var(--color-static-text-primary-dark);\n}\n\n.static-secondary-dark {\n color: var(--color-static-text-secondary-dark);\n}\n\n.static-tertiary-dark {\n color: var(--color-static-text-tertiary-dark);\n}\n\n.static-accent {\n color: var(--color-static-accent-primary);\n}\n\n.static-positive {\n color: var(--color-static-text-positive);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,UAAU,CAAC,4BAA4B,CAAC,UAAU,CAAC,4BAA4B,CAAC,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,2BAA2B,CAAC,WAAW,CAAC,6BAA6B,CAAC,UAAU,CAAC,4BAA4B,CAAC,WAAW,CAAC,6BAA6B,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,oBAAoB,CAAC,sCAAsC,CAAC,MAAM,CAAC,wBAAwB,CAAC,UAAU,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,wBAAwB,CAAC,0CAA0C,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,eAAe,CAAC,iCAAiC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC;;;;"}
|
package/modern/component.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
-
import { Text, TextProps } from
|
|
3
|
-
import { Title, TitleProps } from
|
|
4
|
-
import { TitleMobile, TitleMobileProps } from
|
|
5
|
-
import { TitleResponsive, TitleResponsiveProps } from
|
|
6
|
-
import { TextElementType } from
|
|
7
|
-
declare const Typography: {
|
|
2
|
+
import { Text, TextProps } from './text';
|
|
3
|
+
import { Title, TitleProps } from './title';
|
|
4
|
+
import { TitleMobile, TitleMobileProps } from './title-mobile';
|
|
5
|
+
import { TitleResponsive, TitleResponsiveProps } from './title-responsive';
|
|
6
|
+
import { TextElementType } from './types';
|
|
7
|
+
export declare const Typography: {
|
|
8
8
|
Title: FC<TitleProps>;
|
|
9
9
|
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
10
10
|
TitleResponsive: FC<TitleResponsiveProps>;
|
|
11
11
|
TitleMobile: FC<TitleMobileProps>;
|
|
12
12
|
};
|
|
13
|
-
export {
|
|
13
|
+
export { Text, Title as TitleDesktop, TitleResponsive, TitleMobile };
|
package/modern/component.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../src/component.tsx"],"sourcesContent":["import { FC, ForwardRefExoticComponent, RefAttributes } from 'react';\n\nimport { Text, TextProps } from './text';\nimport { Title, TitleProps } from './title';\nimport { TitleMobile, TitleMobileProps } from './title-mobile';\nimport { TitleResponsive, TitleResponsiveProps } from './title-responsive';\nimport { TextElementType } from './types';\n\nexport const Typography: {\n Title: FC<TitleProps>;\n Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;\n TitleResponsive: FC<TitleResponsiveProps>;\n TitleMobile: FC<TitleMobileProps>;\n} = {\n Title,\n Text,\n TitleResponsive,\n TitleMobile,\n};\n\nexport { Text, Title as TitleDesktop, TitleResponsive, TitleMobile };\n"],"names":[],"mappings":";;;;;AAQa,MAAA,UAAU,GAKnB;IACA,KAAK;IACL,IAAI;IACJ,eAAe;IACf,WAAW;;;;;"}
|
package/modern/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export type { TitleProps } from
|
|
4
|
-
export type { TextProps } from
|
|
5
|
-
export type { Color } from
|
|
1
|
+
export * from './component';
|
|
2
|
+
export * from './presets';
|
|
3
|
+
export type { TitleProps } from './title';
|
|
4
|
+
export type { TextProps } from './text';
|
|
5
|
+
export type { Color } from './colors';
|
package/modern/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/modern/presets.d.ts
CHANGED
package/modern/presets.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.js","sources":["../src/presets.ts"],"sourcesContent":["export const typographyPresets = {\n mobile: {\n list: {\n text: {\n primary: {\n tag: 'div',\n view: 'primary-medium',\n },\n secondary: {\n tag: 'div',\n color: 'secondary',\n view: 'primary-small',\n },\n },\n },\n },\n};\n"],"names":[],"mappings":"AAAa,MAAA,iBAAiB,GAAG;AAC7B,IAAA,MAAM,EAAE;AACJ,QAAA,IAAI,EAAE;AACF,YAAA,IAAI,EAAE;AACF,gBAAA,OAAO,EAAE;AACL,oBAAA,GAAG,EAAE,KAAK;AACV,oBAAA,IAAI,EAAE,gBAAgB;AACzB,iBAAA;AACD,gBAAA,SAAS,EAAE;AACP,oBAAA,GAAG,EAAE,KAAK;AACV,oBAAA,KAAK,EAAE,WAAW;AAClB,oBAAA,IAAI,EAAE,eAAe;AACxB,iBAAA;AACJ,aAAA;AACJ,SAAA;AACJ,KAAA;;;;;"}
|
|
@@ -1,136 +1,108 @@
|
|
|
1
|
-
|
|
2
|
-
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
|
-
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
|
-
} :root {
|
|
7
|
-
|
|
8
|
-
/* Hard */
|
|
9
|
-
|
|
10
|
-
/* Up */
|
|
11
|
-
|
|
12
|
-
/* Hard up */
|
|
13
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
14
|
-
|
|
15
|
-
/* новые значения, используйте их */
|
|
16
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
17
|
-
|
|
18
|
-
/* новые значения, используйте их */
|
|
19
|
-
|
|
20
|
-
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
21
|
-
/* stylelint-disable-next-line length-zero-no-unit */
|
|
22
|
-
} :root {
|
|
1
|
+
:root {
|
|
23
2
|
--font-family-alfasans: 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
24
3
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
25
|
-
}
|
|
26
|
-
} /* сбрасывает синюю подсветку при нажатии */ .typography__text_1qn2m.typography__component_1qn2m {
|
|
4
|
+
} .typography__text_18rt7.typography__component_18rt7 {
|
|
27
5
|
font-size: 16px;
|
|
28
6
|
line-height: 20px;
|
|
29
7
|
font-weight: 400;
|
|
30
8
|
letter-spacing: -0.24px;
|
|
31
9
|
font-family: var(--font-family-alfasans);
|
|
32
|
-
} .
|
|
10
|
+
} .typography__text_18rt7.typography__caps_18rt7 {
|
|
33
11
|
font-size: 12px;
|
|
34
12
|
line-height: 16px;
|
|
35
13
|
font-weight: 400;
|
|
36
14
|
letter-spacing: 1.25px;
|
|
37
15
|
text-transform: uppercase;
|
|
38
16
|
font-family: var(--font-family-alfasans);
|
|
39
|
-
} .
|
|
17
|
+
} .typography__text_18rt7.typography__tagline_18rt7 {
|
|
40
18
|
font-size: 12px;
|
|
41
19
|
line-height: 16px;
|
|
42
20
|
font-weight: 400;
|
|
43
21
|
letter-spacing: 1.25px;
|
|
44
22
|
text-transform: uppercase;
|
|
45
23
|
font-family: var(--font-family-alfasans);
|
|
46
|
-
} .
|
|
47
|
-
/* prettier-ignore */
|
|
24
|
+
} .typography__text_18rt7.typography__primary-large_18rt7 {
|
|
48
25
|
font-size: 18px;
|
|
49
26
|
line-height: 24px;
|
|
50
27
|
font-weight: 400;
|
|
51
28
|
letter-spacing: -0.36px;
|
|
52
29
|
font-family: var(--font-family-alfasans)
|
|
53
|
-
} .
|
|
30
|
+
} .typography__text_18rt7.typography__primary-large_18rt7.typography__bold_18rt7 {
|
|
54
31
|
letter-spacing: 0.38px;
|
|
55
|
-
} .
|
|
32
|
+
} .typography__text_18rt7.typography__primary-large_18rt7.typography__medium_18rt7 {
|
|
56
33
|
letter-spacing: 0.17px;
|
|
57
|
-
} .
|
|
58
|
-
/* prettier-ignore */
|
|
34
|
+
} .typography__text_18rt7.typography__primary-medium_18rt7 {
|
|
59
35
|
font-size: 16px;
|
|
60
36
|
line-height: 24px;
|
|
61
37
|
font-weight: 400;
|
|
62
38
|
letter-spacing: -0.24px;
|
|
63
39
|
font-family: var(--font-family-alfasans)
|
|
64
|
-
} .
|
|
40
|
+
} .typography__text_18rt7.typography__primary-medium_18rt7.typography__bold_18rt7 {
|
|
65
41
|
letter-spacing: 0.43px;
|
|
66
|
-
} .
|
|
42
|
+
} .typography__text_18rt7.typography__primary-medium_18rt7.typography__medium_18rt7 {
|
|
67
43
|
letter-spacing: 0.17px;
|
|
68
|
-
} .
|
|
69
|
-
/* prettier-ignore */
|
|
44
|
+
} .typography__text_18rt7.typography__primary-small_18rt7 {
|
|
70
45
|
font-size: 14px;
|
|
71
46
|
line-height: 20px;
|
|
72
47
|
font-weight: 400;
|
|
73
48
|
letter-spacing: -0.08px;
|
|
74
49
|
font-family: var(--font-family-alfasans)
|
|
75
|
-
} .
|
|
50
|
+
} .typography__text_18rt7.typography__primary-small_18rt7.typography__bold_18rt7 {
|
|
76
51
|
letter-spacing: 0.47px;
|
|
77
|
-
} .
|
|
52
|
+
} .typography__text_18rt7.typography__primary-small_18rt7.typography__medium_18rt7 {
|
|
78
53
|
letter-spacing: 0.27px;
|
|
79
|
-
} .
|
|
54
|
+
} .typography__text_18rt7.typography__component-primary_18rt7 {
|
|
80
55
|
font-size: 16px;
|
|
81
56
|
line-height: 20px;
|
|
82
57
|
font-weight: 400;
|
|
83
58
|
letter-spacing: -0.24px;
|
|
84
59
|
font-family: var(--font-family-alfasans)
|
|
85
|
-
} .
|
|
60
|
+
} .typography__text_18rt7.typography__component-primary_18rt7.typography__bold_18rt7 {
|
|
86
61
|
letter-spacing: 0.43px;
|
|
87
|
-
} .
|
|
62
|
+
} .typography__text_18rt7.typography__component-primary_18rt7.typography__medium_18rt7 {
|
|
88
63
|
letter-spacing: 0.17px;
|
|
89
|
-
} .
|
|
90
|
-
/* prettier-ignore */
|
|
64
|
+
} .typography__text_18rt7.typography__secondary-large_18rt7 {
|
|
91
65
|
font-size: 13px;
|
|
92
66
|
line-height: 16px;
|
|
93
67
|
font-weight: 400;
|
|
94
68
|
letter-spacing: 0;
|
|
95
69
|
font-family: var(--font-family-alfasans)
|
|
96
|
-
} .
|
|
70
|
+
} .typography__text_18rt7.typography__secondary-large_18rt7.typography__bold_18rt7 {
|
|
97
71
|
letter-spacing: 0.54px;
|
|
98
|
-
} .
|
|
72
|
+
} .typography__text_18rt7.typography__secondary-large_18rt7.typography__medium_18rt7 {
|
|
99
73
|
letter-spacing: 0.33px;
|
|
100
|
-
} .
|
|
101
|
-
/* prettier-ignore */
|
|
74
|
+
} .typography__text_18rt7.typography__secondary-medium_18rt7 {
|
|
102
75
|
font-size: 12px;
|
|
103
76
|
line-height: 16px;
|
|
104
77
|
font-weight: 400;
|
|
105
78
|
letter-spacing: 0.06px;
|
|
106
79
|
font-family: var(--font-family-alfasans)
|
|
107
|
-
} .
|
|
80
|
+
} .typography__text_18rt7.typography__secondary-medium_18rt7.typography__bold_18rt7 {
|
|
108
81
|
letter-spacing: 0.57px;
|
|
109
|
-
} .
|
|
82
|
+
} .typography__text_18rt7.typography__secondary-medium_18rt7.typography__medium_18rt7 {
|
|
110
83
|
letter-spacing: 0.38px;
|
|
111
|
-
} .
|
|
112
|
-
/* prettier-ignore */
|
|
84
|
+
} .typography__text_18rt7.typography__secondary-small_18rt7 {
|
|
113
85
|
font-size: 11px;
|
|
114
86
|
line-height: 16px;
|
|
115
87
|
font-weight: 400;
|
|
116
88
|
letter-spacing: 0.15px;
|
|
117
89
|
font-family: var(--font-family-alfasans)
|
|
118
|
-
} .
|
|
90
|
+
} .typography__text_18rt7.typography__secondary-small_18rt7.typography__bold_18rt7 {
|
|
119
91
|
letter-spacing: 0.54px;
|
|
120
|
-
} .
|
|
92
|
+
} .typography__text_18rt7.typography__secondary-small_18rt7.typography__medium_18rt7 {
|
|
121
93
|
letter-spacing: 0.41px;
|
|
122
|
-
} .
|
|
94
|
+
} .typography__text_18rt7.typography__component-secondary_18rt7 {
|
|
123
95
|
font-size: 14px;
|
|
124
96
|
line-height: 18px;
|
|
125
97
|
font-weight: 400;
|
|
126
98
|
letter-spacing: -0.08px;
|
|
127
99
|
font-family: var(--font-family-alfasans)
|
|
128
|
-
} .
|
|
100
|
+
} .typography__text_18rt7.typography__component-secondary_18rt7.typography__bold_18rt7 {
|
|
129
101
|
letter-spacing: 0.47px;
|
|
130
|
-
} .
|
|
102
|
+
} .typography__text_18rt7.typography__component-secondary_18rt7.typography__medium_18rt7 {
|
|
131
103
|
letter-spacing: 0.27px;
|
|
132
|
-
} .
|
|
104
|
+
} .typography__text_18rt7.typography__bold_18rt7 {
|
|
133
105
|
font-weight: 700;
|
|
134
|
-
} .
|
|
106
|
+
} .typography__text_18rt7.typography__medium_18rt7 {
|
|
135
107
|
font-weight: 500;
|
|
136
108
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './alfasans-index.css';
|
|
2
|
+
|
|
3
|
+
const alfasansStyles = {"text":"typography__text_18rt7","component":"typography__component_18rt7","caps":"typography__caps_18rt7","tagline":"typography__tagline_18rt7","primary-large":"typography__primary-large_18rt7","bold":"typography__bold_18rt7","medium":"typography__medium_18rt7","primary-medium":"typography__primary-medium_18rt7","primary-small":"typography__primary-small_18rt7","component-primary":"typography__component-primary_18rt7","secondary-large":"typography__secondary-large_18rt7","secondary-medium":"typography__secondary-medium_18rt7","secondary-small":"typography__secondary-small_18rt7","component-secondary":"typography__component-secondary_18rt7"};
|
|
4
|
+
|
|
5
|
+
export { alfasansStyles as default };
|
|
6
|
+
//# sourceMappingURL=alfasans-index.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alfasans-index.module.css.js","sources":["../src/text/alfasans-index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/alfasans-index.css';\n\n@define-mixin bold {\n font-weight: 700;\n}\n\n@define-mixin medium {\n font-weight: 500;\n}\n\n.text {\n @each $view in component, caps, tagline {\n &.$(view) {\n @mixin paragraph_$(view);\n }\n }\n\n @each $kind in primary, secondary {\n @each $size in large, medium, small {\n &.$(kind)-$(size) {\n /* prettier-ignore */\n @mixin paragraph_$(kind)_$(size);\n\n &.bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size), bold;\n }\n\n &.medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size), medium;\n }\n }\n }\n\n &.component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind), bold;\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind), medium;\n }\n }\n }\n\n @each $weight in bold, medium {\n &.$(weight) {\n @mixin $(weight);\n }\n }\n}\n"],"names":[],"mappings":";;AAEgB,uBAAe,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC;;;;"}
|