@alfalab/core-components-typography 4.8.0 → 4.10.0
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 +23 -21
- package/colors.module-5866c16f.js +6 -0
- package/common.module-98ac839d.js +6 -0
- package/component.d.ts +2 -1
- package/cssm/colors.module.css +3 -1
- package/cssm/component.d.ts +2 -1
- package/cssm/hooks/use-skeleton.module.css +3 -1
- package/cssm/text/index.module.css +5 -2
- package/cssm/title/index.module.css +12 -6
- package/cssm/title-mobile/component.d.ts +1 -3
- package/cssm/title-mobile/index.d.ts +2 -1
- package/cssm/title-mobile/index.module.css +20 -2
- package/cssm/title-responsive/component.d.ts +15 -1
- package/cssm/title-responsive/component.js +8 -9
- package/esm/colors.css +23 -21
- package/esm/colors.module-5cfaa8f2.js +4 -0
- package/esm/common.module-f31888e6.js +4 -0
- package/esm/component.d.ts +2 -1
- package/esm/hooks/use-skeleton.css +8 -6
- package/esm/hooks/use-skeleton.js +1 -1
- package/esm/text/component.js +2 -2
- package/esm/text/index.css +26 -23
- package/esm/title/common.css +9 -9
- package/esm/title/component.js +1 -1
- package/esm/title/index.css +28 -22
- package/esm/title/index.js +2 -2
- package/esm/title-mobile/component.d.ts +1 -3
- package/esm/title-mobile/component.js +2 -2
- package/esm/title-mobile/index.css +31 -13
- package/esm/title-mobile/index.d.ts +2 -1
- package/esm/title-responsive/component.d.ts +15 -1
- package/esm/title-responsive/component.js +9 -10
- package/hooks/use-skeleton.css +8 -6
- package/hooks/use-skeleton.js +1 -1
- package/modern/colors.css +23 -21
- package/modern/colors.module-cfe2fa4f.js +4 -0
- package/modern/common.module-67cdcc8d.js +4 -0
- package/modern/component.d.ts +2 -1
- package/modern/hooks/use-skeleton.css +8 -6
- package/modern/hooks/use-skeleton.js +1 -1
- package/modern/text/component.js +2 -2
- package/modern/text/index.css +26 -23
- package/modern/title/common.css +9 -9
- package/modern/title/component.js +1 -1
- package/modern/title/index.css +28 -22
- package/modern/title/index.js +2 -2
- package/modern/title-mobile/component.d.ts +1 -3
- package/modern/title-mobile/component.js +2 -2
- package/modern/title-mobile/index.css +31 -13
- package/modern/title-mobile/index.d.ts +2 -1
- package/modern/title-responsive/component.d.ts +15 -1
- package/modern/title-responsive/component.js +7 -9
- package/moderncssm/colors.d.ts +3 -0
- package/moderncssm/colors.js +23 -0
- package/moderncssm/colors.module.css +79 -0
- package/moderncssm/component.d.ts +13 -0
- package/moderncssm/component.js +13 -0
- package/moderncssm/hooks/index.d.ts +1 -0
- package/moderncssm/hooks/index.js +1 -0
- package/moderncssm/hooks/use-skeleton.d.ts +12 -0
- package/moderncssm/hooks/use-skeleton.js +50 -0
- package/moderncssm/hooks/use-skeleton.module.css +17 -0
- package/moderncssm/index.d.ts +5 -0
- package/moderncssm/index.js +2 -0
- package/moderncssm/margins.module.css +1 -0
- package/moderncssm/presets.d.ts +18 -0
- package/moderncssm/presets.js +19 -0
- package/moderncssm/text/component.d.ts +63 -0
- package/moderncssm/text/component.js +43 -0
- package/moderncssm/text/index.d.ts +1 -0
- package/moderncssm/text/index.js +1 -0
- package/moderncssm/text/index.module.css +124 -0
- package/moderncssm/title/common.module.css +42 -0
- package/moderncssm/title/component.d.ts +122 -0
- package/moderncssm/title/component.js +20 -0
- package/moderncssm/title/index.d.ts +20 -0
- package/moderncssm/title/index.js +8 -0
- package/moderncssm/title/index.module.css +76 -0
- package/moderncssm/title/utils.d.ts +2 -0
- package/moderncssm/title/utils.js +11 -0
- package/moderncssm/title-mobile/component.d.ts +18 -0
- package/moderncssm/title-mobile/component.js +8 -0
- package/moderncssm/title-mobile/index.d.ts +2 -0
- package/moderncssm/title-mobile/index.js +1 -0
- package/moderncssm/title-mobile/index.module.css +76 -0
- package/moderncssm/title-responsive/component.d.ts +32 -0
- package/moderncssm/title-responsive/component.js +13 -0
- package/moderncssm/title-responsive/index.d.ts +1 -0
- package/moderncssm/title-responsive/index.js +1 -0
- package/moderncssm/types.d.ts +21 -0
- package/moderncssm/types.js +1 -0
- package/package.json +4 -4
- package/src/colors.module.css +1 -1
- package/src/component.tsx +2 -2
- package/src/hooks/use-skeleton.module.css +1 -1
- package/src/margins.module.css +3 -3
- package/src/text/index.module.css +2 -2
- package/src/title/index.module.css +1 -1
- package/src/title-mobile/component.tsx +0 -2
- package/src/title-mobile/index.module.css +21 -1
- package/src/title-mobile/index.tsx +2 -1
- package/src/title-responsive/component.tsx +20 -17
- package/text/component.js +2 -2
- package/text/index.css +26 -23
- package/title/common.css +9 -9
- package/title/component.js +1 -1
- package/title/index.css +28 -22
- package/title/index.js +2 -2
- package/title-mobile/component.d.ts +1 -3
- package/title-mobile/component.js +2 -2
- package/title-mobile/index.css +31 -13
- package/title-mobile/index.d.ts +2 -1
- package/title-responsive/component.d.ts +15 -1
- package/title-responsive/component.js +8 -9
- package/colors.module-ae9077a2.js +0 -6
- package/common.module-b1c6f346.js +0 -6
- package/cssm/title-responsive/index.module.css +0 -174
- package/esm/colors.module-150df74d.js +0 -4
- package/esm/common.module-6fb90ced.js +0 -4
- package/esm/title-responsive/index.css +0 -175
- package/modern/colors.module-024abe1e.js +0 -4
- package/modern/common.module-38c9e9b8.js +0 -4
- package/modern/title-responsive/index.css +0 -175
- package/src/title-responsive/index.module.css +0 -126
- package/title-responsive/index.css +0 -175
package/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: m94qw */
|
|
2
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
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-accent-primary: #ef3124;
|
|
@@ -29,48 +29,50 @@
|
|
|
29
29
|
/* Up */
|
|
30
30
|
|
|
31
31
|
/* Hard up */
|
|
32
|
-
} :root {
|
|
32
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
33
|
+
|
|
34
|
+
/* новые значения, используйте их */
|
|
33
35
|
} :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 */
|
|
34
36
|
|
|
35
37
|
/* новые значения, используйте их */
|
|
36
38
|
} :root {
|
|
37
39
|
} :root {
|
|
38
|
-
} /* colors */ .
|
|
40
|
+
} /* colors */ .typography__tertiary_fy1bc {
|
|
39
41
|
color: var(--color-light-text-tertiary);
|
|
40
|
-
} .
|
|
42
|
+
} .typography__disabled_fy1bc {
|
|
41
43
|
color: var(--color-light-text-quaternary);
|
|
42
|
-
} .
|
|
44
|
+
} .typography__accent_fy1bc {
|
|
43
45
|
color: var(--color-light-accent-primary);
|
|
44
|
-
} .
|
|
46
|
+
} .typography__primary_fy1bc {
|
|
45
47
|
color: var(--color-light-text-primary);
|
|
46
|
-
} .
|
|
48
|
+
} .typography__attention_fy1bc {
|
|
47
49
|
color: var(--color-light-text-attention);
|
|
48
|
-
} .
|
|
50
|
+
} .typography__positive_fy1bc {
|
|
49
51
|
color: var(--color-light-text-positive);
|
|
50
|
-
} .
|
|
52
|
+
} .typography__secondary_fy1bc {
|
|
51
53
|
color: var(--color-light-text-secondary);
|
|
52
|
-
} .typography__tertiary-
|
|
54
|
+
} .typography__tertiary-inverted_fy1bc {
|
|
53
55
|
color: var(--color-light-text-tertiary-inverted);
|
|
54
|
-
} .typography__primary-
|
|
56
|
+
} .typography__primary-inverted_fy1bc {
|
|
55
57
|
color: var(--color-light-text-primary-inverted);
|
|
56
|
-
} .typography__secondary-
|
|
58
|
+
} .typography__secondary-inverted_fy1bc {
|
|
57
59
|
color: var(--color-light-text-secondary-inverted);
|
|
58
|
-
} .
|
|
60
|
+
} .typography__link_fy1bc {
|
|
59
61
|
color: var(--color-light-text-info);
|
|
60
|
-
} .
|
|
62
|
+
} .typography__negative_fy1bc {
|
|
61
63
|
color: var(--color-light-text-negative);
|
|
62
|
-
} .typography__static-primary-
|
|
64
|
+
} .typography__static-primary-light_fy1bc {
|
|
63
65
|
color: var(--color-static-text-primary-light);
|
|
64
|
-
} .typography__static-secondary-
|
|
66
|
+
} .typography__static-secondary-light_fy1bc {
|
|
65
67
|
color: var(--color-static-text-secondary-light);
|
|
66
|
-
} .typography__static-tertiary-
|
|
68
|
+
} .typography__static-tertiary-light_fy1bc {
|
|
67
69
|
color: var(--color-static-text-tertiary-light);
|
|
68
|
-
} .typography__static-primary-
|
|
70
|
+
} .typography__static-primary-dark_fy1bc {
|
|
69
71
|
color: var(--color-static-text-primary-dark);
|
|
70
|
-
} .typography__static-secondary-
|
|
72
|
+
} .typography__static-secondary-dark_fy1bc {
|
|
71
73
|
color: var(--color-static-text-secondary-dark);
|
|
72
|
-
} .typography__static-tertiary-
|
|
74
|
+
} .typography__static-tertiary-dark_fy1bc {
|
|
73
75
|
color: var(--color-static-text-tertiary-dark);
|
|
74
|
-
} .typography__static-
|
|
76
|
+
} .typography__static-accent_fy1bc {
|
|
75
77
|
color: var(--color-static-accent-primary);
|
|
76
78
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var colors = {"tertiary":"typography__tertiary_fy1bc","disabled":"typography__disabled_fy1bc","accent":"typography__accent_fy1bc","primary":"typography__primary_fy1bc","attention":"typography__attention_fy1bc","positive":"typography__positive_fy1bc","secondary":"typography__secondary_fy1bc","tertiary-inverted":"typography__tertiary-inverted_fy1bc","primary-inverted":"typography__primary-inverted_fy1bc","secondary-inverted":"typography__secondary-inverted_fy1bc","link":"typography__link_fy1bc","negative":"typography__negative_fy1bc","static-primary-light":"typography__static-primary-light_fy1bc","static-secondary-light":"typography__static-secondary-light_fy1bc","static-tertiary-light":"typography__static-tertiary-light_fy1bc","static-primary-dark":"typography__static-primary-dark_fy1bc","static-secondary-dark":"typography__static-secondary-dark_fy1bc","static-tertiary-dark":"typography__static-tertiary-dark_fy1bc","static-accent":"typography__static-accent_fy1bc"};
|
|
4
|
+
require('./colors.css')
|
|
5
|
+
|
|
6
|
+
exports.colors = colors;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"typography__component_nn6vl","bold":"typography__bold_nn6vl","semibold":"typography__semibold_nn6vl","medium":"typography__medium_nn6vl","regular":"typography__regular_nn6vl","rowLimit1":"typography__rowLimit1_nn6vl","rowLimit2":"typography__rowLimit2_nn6vl","rowLimit3":"typography__rowLimit3_nn6vl"};
|
|
4
|
+
require('./title/common.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
package/component.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ import { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
|
2
2
|
import { TextProps } from "./text/index";
|
|
3
3
|
import { TitleProps } from "./title/index";
|
|
4
4
|
import { TitleMobileProps } from "./title-mobile/index";
|
|
5
|
+
import { TitleResponsiveProps } from "./title-responsive/index";
|
|
5
6
|
import { TextElementType } from "./types";
|
|
6
7
|
declare const Typography: {
|
|
7
8
|
Title: FC<TitleProps>;
|
|
8
9
|
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
9
|
-
TitleResponsive: FC<
|
|
10
|
+
TitleResponsive: FC<TitleResponsiveProps>;
|
|
10
11
|
TitleMobile: FC<TitleMobileProps>;
|
|
11
12
|
};
|
|
12
13
|
export { Typography };
|
package/cssm/colors.module.css
CHANGED
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
/* Up */
|
|
29
29
|
|
|
30
30
|
/* Hard up */
|
|
31
|
-
} :root {
|
|
31
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
32
|
+
|
|
33
|
+
/* новые значения, используйте их */
|
|
32
34
|
} :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 */
|
|
33
35
|
|
|
34
36
|
/* новые значения, используйте их */
|
package/cssm/component.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ import { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
|
2
2
|
import { TextProps } from "./text/index";
|
|
3
3
|
import { TitleProps } from "./title/index";
|
|
4
4
|
import { TitleMobileProps } from "./title-mobile/index";
|
|
5
|
+
import { TitleResponsiveProps } from "./title-responsive/index";
|
|
5
6
|
import { TextElementType } from "./types";
|
|
6
7
|
declare const Typography: {
|
|
7
8
|
Title: FC<TitleProps>;
|
|
8
9
|
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
9
|
-
TitleResponsive: FC<
|
|
10
|
+
TitleResponsive: FC<TitleResponsiveProps>;
|
|
10
11
|
TitleMobile: FC<TitleMobileProps>;
|
|
11
12
|
};
|
|
12
13
|
export { Typography };
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
/* Up */
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
|
-
} :root {
|
|
12
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
13
13
|
--border-radius-pill: 99px;
|
|
14
|
+
|
|
15
|
+
/* новые значения, используйте их */
|
|
14
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 */
|
|
15
17
|
|
|
16
18
|
/* новые значения, используйте их */
|
|
@@ -9,15 +9,18 @@
|
|
|
9
9
|
/* Up */
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
|
-
} :root {
|
|
12
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
13
|
+
|
|
14
|
+
/* новые значения, используйте их */
|
|
13
15
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */
|
|
14
16
|
--gap-s: 12px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
15
17
|
|
|
16
18
|
/* новые значения, используйте их */
|
|
19
|
+
--gap-12: var(--gap-s);
|
|
17
20
|
} :root {
|
|
18
21
|
} :root {
|
|
19
22
|
} :root {
|
|
20
|
-
--text-paragraph-margin-bottom: 0 0 var(--gap-
|
|
23
|
+
--text-paragraph-margin-bottom: 0 0 var(--gap-12);
|
|
21
24
|
} .paragraph {
|
|
22
25
|
margin: 0;
|
|
23
26
|
padding: 0;
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
/* Up */
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
|
-
} :root {
|
|
12
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
13
|
+
|
|
14
|
+
/* новые значения, используйте их */
|
|
13
15
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
14
16
|
--gap-m: 16px; /* deprecated */ /* deprecated */
|
|
15
17
|
--gap-xl: 24px; /* deprecated */ /* deprecated */
|
|
@@ -17,6 +19,10 @@
|
|
|
17
19
|
--gap-4xl: 48px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
18
20
|
|
|
19
21
|
/* новые значения, используйте их */
|
|
22
|
+
--gap-16: var(--gap-m);
|
|
23
|
+
--gap-24: var(--gap-xl);
|
|
24
|
+
--gap-40: var(--gap-3xl);
|
|
25
|
+
--gap-48: var(--gap-4xl);
|
|
20
26
|
} :root {
|
|
21
27
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
22
28
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
@@ -72,13 +78,13 @@
|
|
|
72
78
|
line-height: 22px;
|
|
73
79
|
font-weight: 700;
|
|
74
80
|
} .margins-xlarge {
|
|
75
|
-
margin: 0 0 var(--gap-
|
|
81
|
+
margin: 0 0 var(--gap-24);
|
|
76
82
|
} .margins-large {
|
|
77
|
-
margin: var(--gap-
|
|
83
|
+
margin: var(--gap-48) 0 var(--gap-24);
|
|
78
84
|
} .margins-medium {
|
|
79
|
-
margin: var(--gap-
|
|
85
|
+
margin: var(--gap-48) 0 var(--gap-24);
|
|
80
86
|
} .margins-small {
|
|
81
|
-
margin: var(--gap-
|
|
87
|
+
margin: var(--gap-40) 0 var(--gap-16);
|
|
82
88
|
} .margins-xsmall {
|
|
83
|
-
margin: var(--gap-
|
|
89
|
+
margin: var(--gap-40) 0 var(--gap-16);
|
|
84
90
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TitleProps } from "../title/component";
|
|
4
|
-
type TitleMobileProps = Omit<TitleProps, 'defaultMargins'>;
|
|
5
3
|
declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
6
4
|
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
7
5
|
view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
|
|
@@ -17,4 +15,4 @@ declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTMLAttrib
|
|
|
17
15
|
skeletonProps?: import("../types").TextSkeletonProps | undefined;
|
|
18
16
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
19
17
|
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
20
|
-
export {
|
|
18
|
+
export { TitleMobile };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { TitleMobile } from "./component";
|
|
2
|
+
export type { TitleProps as TitleMobileProps } from "../title/component";
|
|
@@ -9,10 +9,18 @@
|
|
|
9
9
|
/* Up */
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
|
-
} :root {
|
|
13
|
-
|
|
12
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
13
|
+
|
|
14
|
+
/* новые значения, используйте их */
|
|
15
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
16
|
+
--gap-m: 16px; /* deprecated */ /* deprecated */
|
|
17
|
+
--gap-xl: 24px; /* deprecated */ /* deprecated */
|
|
18
|
+
--gap-3xl: 40px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
14
19
|
|
|
15
20
|
/* новые значения, используйте их */
|
|
21
|
+
--gap-16: var(--gap-m);
|
|
22
|
+
--gap-24: var(--gap-xl);
|
|
23
|
+
--gap-40: var(--gap-3xl);
|
|
16
24
|
} :root {
|
|
17
25
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
18
26
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
@@ -67,4 +75,14 @@
|
|
|
67
75
|
font-size: 16px;
|
|
68
76
|
line-height: 20px;
|
|
69
77
|
font-weight: 600;
|
|
78
|
+
} .margins-xlarge {
|
|
79
|
+
margin: 0 0 var(--gap-24);
|
|
80
|
+
} .margins-large {
|
|
81
|
+
margin: var(--gap-40) 0 var(--gap-16);
|
|
82
|
+
} .margins-medium {
|
|
83
|
+
margin: var(--gap-40) 0 var(--gap-16);
|
|
84
|
+
} .margins-small {
|
|
85
|
+
margin: var(--gap-40) 0 var(--gap-16);
|
|
86
|
+
} .margins-xsmall {
|
|
87
|
+
margin: var(--gap-40) 0 var(--gap-16);
|
|
70
88
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { TitleProps } from "../title/index";
|
|
4
|
+
type TitleResponsiveProps = TitleProps & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
};
|
|
3
11
|
declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
4
12
|
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
5
13
|
view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
|
|
@@ -14,5 +22,11 @@ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAt
|
|
|
14
22
|
showSkeleton?: boolean | undefined;
|
|
15
23
|
skeletonProps?: import("../types").TextSkeletonProps | undefined;
|
|
16
24
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
/**
|
|
27
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
28
|
+
* @default 1024
|
|
29
|
+
*/
|
|
30
|
+
breakpoint?: number | undefined;
|
|
17
31
|
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
18
|
-
export { TitleResponsive };
|
|
32
|
+
export { TitleResponsiveProps, TitleResponsive };
|
|
@@ -5,20 +5,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var coreComponentsMq = require('@alfalab/core-components-mq/cssm');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var styles = require('./index.module.css');
|
|
8
|
+
var title_index = require('../title/index.js');
|
|
9
|
+
var titleMobile_component = require('../title-mobile/component.js');
|
|
11
10
|
|
|
12
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
13
12
|
|
|
14
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
|
-
var commonStyles__default = /*#__PURE__*/_interopDefaultCompat(commonStyles);
|
|
16
|
-
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
17
14
|
|
|
18
|
-
var TitleResponsive = React.forwardRef(function (
|
|
19
|
-
var defaultMatchMediaValue =
|
|
20
|
-
var
|
|
21
|
-
|
|
15
|
+
var TitleResponsive = React.forwardRef(function (_a, ref) {
|
|
16
|
+
var defaultMatchMediaValue = _a.defaultMatchMediaValue, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["defaultMatchMediaValue", "breakpoint"]);
|
|
17
|
+
var query = "(min-width: ".concat(breakpoint, "px)");
|
|
18
|
+
var isDesktop = coreComponentsMq.useMatchMedia(query, defaultMatchMediaValue)[0];
|
|
19
|
+
var Component = isDesktop ? title_index.Title : titleMobile_component.TitleMobile;
|
|
20
|
+
return React__default.default.createElement(Component, tslib.__assign({}, restProps, { ref: ref }));
|
|
22
21
|
});
|
|
23
22
|
|
|
24
23
|
exports.TitleResponsive = TitleResponsive;
|
package/esm/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: m94qw */
|
|
2
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
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-accent-primary: #ef3124;
|
|
@@ -29,48 +29,50 @@
|
|
|
29
29
|
/* Up */
|
|
30
30
|
|
|
31
31
|
/* Hard up */
|
|
32
|
-
} :root {
|
|
32
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
33
|
+
|
|
34
|
+
/* новые значения, используйте их */
|
|
33
35
|
} :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 */
|
|
34
36
|
|
|
35
37
|
/* новые значения, используйте их */
|
|
36
38
|
} :root {
|
|
37
39
|
} :root {
|
|
38
|
-
} /* colors */ .
|
|
40
|
+
} /* colors */ .typography__tertiary_fy1bc {
|
|
39
41
|
color: var(--color-light-text-tertiary);
|
|
40
|
-
} .
|
|
42
|
+
} .typography__disabled_fy1bc {
|
|
41
43
|
color: var(--color-light-text-quaternary);
|
|
42
|
-
} .
|
|
44
|
+
} .typography__accent_fy1bc {
|
|
43
45
|
color: var(--color-light-accent-primary);
|
|
44
|
-
} .
|
|
46
|
+
} .typography__primary_fy1bc {
|
|
45
47
|
color: var(--color-light-text-primary);
|
|
46
|
-
} .
|
|
48
|
+
} .typography__attention_fy1bc {
|
|
47
49
|
color: var(--color-light-text-attention);
|
|
48
|
-
} .
|
|
50
|
+
} .typography__positive_fy1bc {
|
|
49
51
|
color: var(--color-light-text-positive);
|
|
50
|
-
} .
|
|
52
|
+
} .typography__secondary_fy1bc {
|
|
51
53
|
color: var(--color-light-text-secondary);
|
|
52
|
-
} .typography__tertiary-
|
|
54
|
+
} .typography__tertiary-inverted_fy1bc {
|
|
53
55
|
color: var(--color-light-text-tertiary-inverted);
|
|
54
|
-
} .typography__primary-
|
|
56
|
+
} .typography__primary-inverted_fy1bc {
|
|
55
57
|
color: var(--color-light-text-primary-inverted);
|
|
56
|
-
} .typography__secondary-
|
|
58
|
+
} .typography__secondary-inverted_fy1bc {
|
|
57
59
|
color: var(--color-light-text-secondary-inverted);
|
|
58
|
-
} .
|
|
60
|
+
} .typography__link_fy1bc {
|
|
59
61
|
color: var(--color-light-text-info);
|
|
60
|
-
} .
|
|
62
|
+
} .typography__negative_fy1bc {
|
|
61
63
|
color: var(--color-light-text-negative);
|
|
62
|
-
} .typography__static-primary-
|
|
64
|
+
} .typography__static-primary-light_fy1bc {
|
|
63
65
|
color: var(--color-static-text-primary-light);
|
|
64
|
-
} .typography__static-secondary-
|
|
66
|
+
} .typography__static-secondary-light_fy1bc {
|
|
65
67
|
color: var(--color-static-text-secondary-light);
|
|
66
|
-
} .typography__static-tertiary-
|
|
68
|
+
} .typography__static-tertiary-light_fy1bc {
|
|
67
69
|
color: var(--color-static-text-tertiary-light);
|
|
68
|
-
} .typography__static-primary-
|
|
70
|
+
} .typography__static-primary-dark_fy1bc {
|
|
69
71
|
color: var(--color-static-text-primary-dark);
|
|
70
|
-
} .typography__static-secondary-
|
|
72
|
+
} .typography__static-secondary-dark_fy1bc {
|
|
71
73
|
color: var(--color-static-text-secondary-dark);
|
|
72
|
-
} .typography__static-tertiary-
|
|
74
|
+
} .typography__static-tertiary-dark_fy1bc {
|
|
73
75
|
color: var(--color-static-text-tertiary-dark);
|
|
74
|
-
} .typography__static-
|
|
76
|
+
} .typography__static-accent_fy1bc {
|
|
75
77
|
color: var(--color-static-accent-primary);
|
|
76
78
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var colors = {"tertiary":"typography__tertiary_fy1bc","disabled":"typography__disabled_fy1bc","accent":"typography__accent_fy1bc","primary":"typography__primary_fy1bc","attention":"typography__attention_fy1bc","positive":"typography__positive_fy1bc","secondary":"typography__secondary_fy1bc","tertiary-inverted":"typography__tertiary-inverted_fy1bc","primary-inverted":"typography__primary-inverted_fy1bc","secondary-inverted":"typography__secondary-inverted_fy1bc","link":"typography__link_fy1bc","negative":"typography__negative_fy1bc","static-primary-light":"typography__static-primary-light_fy1bc","static-secondary-light":"typography__static-secondary-light_fy1bc","static-tertiary-light":"typography__static-tertiary-light_fy1bc","static-primary-dark":"typography__static-primary-dark_fy1bc","static-secondary-dark":"typography__static-secondary-dark_fy1bc","static-tertiary-dark":"typography__static-tertiary-dark_fy1bc","static-accent":"typography__static-accent_fy1bc"};
|
|
2
|
+
require('./colors.css')
|
|
3
|
+
|
|
4
|
+
export { colors as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"typography__component_nn6vl","bold":"typography__bold_nn6vl","semibold":"typography__semibold_nn6vl","medium":"typography__medium_nn6vl","regular":"typography__regular_nn6vl","rowLimit1":"typography__rowLimit1_nn6vl","rowLimit2":"typography__rowLimit2_nn6vl","rowLimit3":"typography__rowLimit3_nn6vl"};
|
|
2
|
+
require('./title/common.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
package/esm/component.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ import { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
|
2
2
|
import { TextProps } from "./text/index";
|
|
3
3
|
import { TitleProps } from "./title/index";
|
|
4
4
|
import { TitleMobileProps } from "./title-mobile/index";
|
|
5
|
+
import { TitleResponsiveProps } from "./title-responsive/index";
|
|
5
6
|
import { TextElementType } from "./types";
|
|
6
7
|
declare const Typography: {
|
|
7
8
|
Title: FC<TitleProps>;
|
|
8
9
|
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
9
|
-
TitleResponsive: FC<
|
|
10
|
+
TitleResponsive: FC<TitleResponsiveProps>;
|
|
10
11
|
TitleMobile: FC<TitleMobileProps>;
|
|
11
12
|
};
|
|
12
13
|
export { Typography };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 13r5k */
|
|
2
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
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
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 */
|
|
@@ -10,19 +10,21 @@
|
|
|
10
10
|
/* Up */
|
|
11
11
|
|
|
12
12
|
/* Hard up */
|
|
13
|
-
} :root {
|
|
13
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
14
14
|
--border-radius-pill: 99px;
|
|
15
|
+
|
|
16
|
+
/* новые значения, используйте их */
|
|
15
17
|
} :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 */
|
|
16
18
|
|
|
17
19
|
/* новые значения, используйте их */
|
|
18
20
|
} :root {
|
|
19
21
|
} :root {
|
|
20
|
-
} .
|
|
22
|
+
} .typography__skeletonText_ml3np.typography__skeletonText_ml3np {
|
|
21
23
|
border-radius: var(--border-radius-pill);
|
|
22
|
-
} .
|
|
24
|
+
} .typography__left_ml3np > div {
|
|
23
25
|
margin-right: auto;
|
|
24
|
-
} .
|
|
26
|
+
} .typography__center_ml3np > div {
|
|
25
27
|
margin: 0 auto;
|
|
26
|
-
} .
|
|
28
|
+
} .typography__right_ml3np > div {
|
|
27
29
|
margin-left: auto;
|
|
28
30
|
}
|
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
5
5
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
6
6
|
|
|
7
|
-
var styles = {"skeletonText":"
|
|
7
|
+
var styles = {"skeletonText":"typography__skeletonText_ml3np","left":"typography__left_ml3np","center":"typography__center_ml3np","right":"typography__right_ml3np"};
|
|
8
8
|
require('./use-skeleton.css')
|
|
9
9
|
|
|
10
10
|
function useSkeleton(showSkeleton, skeletonProps) {
|
package/esm/text/component.js
CHANGED
|
@@ -3,9 +3,9 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import { useSkeleton } from '../hooks/use-skeleton.js';
|
|
6
|
-
import { c as colors } from '../colors.module-
|
|
6
|
+
import { c as colors } from '../colors.module-5cfaa8f2.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"paragraph":"
|
|
8
|
+
var styles = {"paragraph":"typography__paragraph_6mjyh","paragraphWithMargins":"typography__paragraphWithMargins_6mjyh","primary-large":"typography__primary-large_6mjyh","primary-medium":"typography__primary-medium_6mjyh","primary-small":"typography__primary-small_6mjyh","secondary-large":"typography__secondary-large_6mjyh","secondary-medium":"typography__secondary-medium_6mjyh","secondary-small":"typography__secondary-small_6mjyh","component":"typography__component_6mjyh","component-primary":"typography__component-primary_6mjyh","component-secondary":"typography__component-secondary_6mjyh","caps":"typography__caps_6mjyh","tagline":"typography__tagline_6mjyh","bold":"typography__bold_6mjyh","medium":"typography__medium_6mjyh","regular":"typography__regular_6mjyh","monospace":"typography__monospace_6mjyh","rowLimit1":"typography__rowLimit1_6mjyh","rowLimit2":"typography__rowLimit2_6mjyh","rowLimit3":"typography__rowLimit3_6mjyh"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var logWarning = function (view) {
|