@alfalab/core-components-typography 6.0.13 → 6.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/colors.css +20 -20
  2. package/colors.module.css.js +1 -1
  3. package/cssm/text/component.js +18 -16
  4. package/cssm/text/component.js.map +1 -1
  5. package/cssm/text/index.module.css +8 -1
  6. package/cssm/title/common.module.css +8 -1
  7. package/cssm/title/component.js +14 -12
  8. package/cssm/title/component.js.map +1 -1
  9. package/esm/colors.css +20 -20
  10. package/esm/colors.module.css.js +1 -1
  11. package/esm/text/component.js +19 -17
  12. package/esm/text/component.js.map +1 -1
  13. package/esm/text/index.css +48 -41
  14. package/esm/text/index.module.css.js +1 -1
  15. package/esm/text/index.module.css.js.map +1 -1
  16. package/esm/title/common.css +13 -6
  17. package/esm/title/common.module.css.js +1 -1
  18. package/esm/title/common.module.css.js.map +1 -1
  19. package/esm/title/component.js +15 -13
  20. package/esm/title/component.js.map +1 -1
  21. package/esm/title/index.css +25 -25
  22. package/esm/title/index.module.css.js +1 -1
  23. package/esm/title-mobile/index.css +25 -25
  24. package/esm/title-mobile/index.module.css.js +1 -1
  25. package/modern/colors.css +20 -20
  26. package/modern/colors.module.css.js +1 -1
  27. package/modern/text/component.js +19 -17
  28. package/modern/text/component.js.map +1 -1
  29. package/modern/text/index.css +48 -41
  30. package/modern/text/index.module.css.js +1 -1
  31. package/modern/text/index.module.css.js.map +1 -1
  32. package/modern/title/common.css +13 -6
  33. package/modern/title/common.module.css.js +1 -1
  34. package/modern/title/common.module.css.js.map +1 -1
  35. package/modern/title/component.js +15 -13
  36. package/modern/title/component.js.map +1 -1
  37. package/modern/title/index.css +25 -25
  38. package/modern/title/index.module.css.js +1 -1
  39. package/modern/title-mobile/index.css +25 -25
  40. package/modern/title-mobile/index.module.css.js +1 -1
  41. package/moderncssm/text/component.js +19 -17
  42. package/moderncssm/text/component.js.map +1 -1
  43. package/moderncssm/text/index.module.css +10 -1
  44. package/moderncssm/title/common.module.css +10 -1
  45. package/moderncssm/title/component.js +15 -13
  46. package/moderncssm/title/component.js.map +1 -1
  47. package/package.json +5 -5
  48. package/src/common.module.css +10 -1
  49. package/src/text/component.tsx +36 -31
  50. package/src/title/component.tsx +35 -30
  51. package/text/component.js +18 -16
  52. package/text/component.js.map +1 -1
  53. package/text/index.css +48 -41
  54. package/text/index.module.css.js +1 -1
  55. package/text/index.module.css.js.map +1 -1
  56. package/title/common.css +13 -6
  57. package/title/common.module.css.js +1 -1
  58. package/title/common.module.css.js.map +1 -1
  59. package/title/component.js +14 -12
  60. package/title/component.js.map +1 -1
  61. package/title/index.css +25 -25
  62. package/title/index.module.css.js +1 -1
  63. package/title-mobile/index.css +25 -25
  64. package/title-mobile/index.module.css.js +1 -1
@@ -11,123 +11,123 @@
11
11
  'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
12
12
  sans-serif;
13
13
  }
14
- .typography__xlarge_6rtoj {
14
+ .typography__xlarge_k7ygb {
15
15
  font-size: 34px;
16
16
  line-height: 40px;
17
17
  font-weight: 600;
18
18
  font-family: var(--font-family-system);
19
19
  }
20
- .typography__xlarge_6rtoj.typography__font_6rtoj {
20
+ .typography__xlarge_k7ygb.typography__font_k7ygb {
21
21
  font-weight: 500;
22
22
  font-feature-settings: 'ss01';
23
23
  font-family: var(--font-family-styrene);
24
24
  }
25
- .typography__regular-xlarge_6rtoj {
25
+ .typography__regular-xlarge_k7ygb {
26
26
  font-size: 34px;
27
27
  line-height: 40px;
28
28
  font-weight: 400;
29
29
  font-family: var(--font-family-system);
30
30
  }
31
- .typography__regular-xlarge_6rtoj.typography__system_6rtoj {
31
+ .typography__regular-xlarge_k7ygb.typography__system_k7ygb {
32
32
  font-feature-settings: 'ss01';
33
33
  font-family: var(--font-family-styrene);
34
34
  }
35
- .typography__large_6rtoj {
35
+ .typography__large_k7ygb {
36
36
  font-size: 30px;
37
37
  line-height: 36px;
38
38
  font-weight: 600;
39
39
  font-family: var(--font-family-system);
40
40
  }
41
- .typography__large_6rtoj.typography__font_6rtoj {
41
+ .typography__large_k7ygb.typography__font_k7ygb {
42
42
  font-weight: 500;
43
43
  font-feature-settings: 'ss01';
44
44
  font-family: var(--font-family-styrene);
45
45
  }
46
- .typography__regular-large_6rtoj {
46
+ .typography__regular-large_k7ygb {
47
47
  font-size: 30px;
48
48
  line-height: 36px;
49
49
  font-weight: 400;
50
50
  font-family: var(--font-family-system);
51
51
  }
52
- .typography__regular-large_6rtoj.typography__system_6rtoj {
52
+ .typography__regular-large_k7ygb.typography__system_k7ygb {
53
53
  font-feature-settings: 'ss01';
54
54
  font-family: var(--font-family-styrene);
55
55
  }
56
- .typography__medium_6rtoj {
56
+ .typography__medium_k7ygb {
57
57
  font-size: 26px;
58
58
  line-height: 32px;
59
59
  font-weight: 600;
60
60
  font-family: var(--font-family-system);
61
61
  }
62
- .typography__medium_6rtoj.typography__font_6rtoj {
62
+ .typography__medium_k7ygb.typography__font_k7ygb {
63
63
  font-weight: 500;
64
64
  font-feature-settings: 'ss01';
65
65
  font-family: var(--font-family-styrene);
66
66
  }
67
- .typography__regular-medium_6rtoj {
67
+ .typography__regular-medium_k7ygb {
68
68
  font-size: 26px;
69
69
  line-height: 32px;
70
70
  font-weight: 400;
71
71
  font-family: var(--font-family-system);
72
72
  }
73
- .typography__regular-medium_6rtoj.typography__system_6rtoj {
73
+ .typography__regular-medium_k7ygb.typography__system_k7ygb {
74
74
  font-feature-settings: 'ss01';
75
75
  font-family: var(--font-family-styrene);
76
76
  }
77
- .typography__small_6rtoj {
77
+ .typography__small_k7ygb {
78
78
  font-size: 20px;
79
79
  line-height: 28px;
80
80
  font-weight: 600;
81
81
  font-family: var(--font-family-system);
82
82
  }
83
- .typography__small_6rtoj.typography__font_6rtoj {
83
+ .typography__small_k7ygb.typography__font_k7ygb {
84
84
  font-weight: 500;
85
85
  font-feature-settings: 'ss01';
86
86
  font-family: var(--font-family-styrene);
87
87
  }
88
- .typography__regular-small_6rtoj {
88
+ .typography__regular-small_k7ygb {
89
89
  font-size: 20px;
90
90
  line-height: 28px;
91
91
  font-weight: 400;
92
92
  font-family: var(--font-family-system);
93
93
  }
94
- .typography__regular-small_6rtoj.typography__system_6rtoj {
94
+ .typography__regular-small_k7ygb.typography__system_k7ygb {
95
95
  font-feature-settings: 'ss01';
96
96
  font-family: var(--font-family-styrene);
97
97
  }
98
- .typography__xsmall_6rtoj {
98
+ .typography__xsmall_k7ygb {
99
99
  font-size: 16px;
100
100
  line-height: 20px;
101
101
  font-weight: 600;
102
102
  font-family: var(--font-family-system);
103
103
  }
104
- .typography__xsmall_6rtoj.typography__font_6rtoj {
104
+ .typography__xsmall_k7ygb.typography__font_k7ygb {
105
105
  font-weight: 500;
106
106
  font-feature-settings: 'ss01';
107
107
  font-family: var(--font-family-styrene);
108
108
  }
109
- .typography__regular-xsmall_6rtoj {
109
+ .typography__regular-xsmall_k7ygb {
110
110
  font-size: 16px;
111
111
  line-height: 20px;
112
112
  font-weight: 400;
113
113
  font-family: var(--font-family-system);
114
114
  }
115
- .typography__regular-xsmall_6rtoj.typography__system_6rtoj {
115
+ .typography__regular-xsmall_k7ygb.typography__system_k7ygb {
116
116
  font-feature-settings: 'ss01';
117
117
  font-family: var(--font-family-styrene);
118
118
  }
119
- .typography__component_6rtoj.typography__margins-xlarge_6rtoj {
119
+ .typography__component_k7ygb.typography__margins-xlarge_k7ygb {
120
120
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
121
121
  }
122
- .typography__component_6rtoj.typography__margins-large_6rtoj {
122
+ .typography__component_k7ygb.typography__margins-large_k7ygb {
123
123
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
124
124
  }
125
- .typography__component_6rtoj.typography__margins-medium_6rtoj {
125
+ .typography__component_k7ygb.typography__margins-medium_k7ygb {
126
126
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
127
127
  }
128
- .typography__component_6rtoj.typography__margins-small_6rtoj {
128
+ .typography__component_k7ygb.typography__margins-small_k7ygb {
129
129
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
130
130
  }
131
- .typography__component_6rtoj .typography__margins-xsmall_6rtoj {
131
+ .typography__component_k7ygb .typography__margins-xsmall_k7ygb {
132
132
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
133
133
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"xlarge":"typography__xlarge_6rtoj","font":"typography__font_6rtoj","regular-xlarge":"typography__regular-xlarge_6rtoj","system":"typography__system_6rtoj","large":"typography__large_6rtoj","regular-large":"typography__regular-large_6rtoj","medium":"typography__medium_6rtoj","regular-medium":"typography__regular-medium_6rtoj","small":"typography__small_6rtoj","regular-small":"typography__regular-small_6rtoj","xsmall":"typography__xsmall_6rtoj","regular-xsmall":"typography__regular-xsmall_6rtoj","component":"typography__component_6rtoj","margins-xlarge":"typography__margins-xlarge_6rtoj","margins-large":"typography__margins-large_6rtoj","margins-medium":"typography__margins-medium_6rtoj","margins-small":"typography__margins-small_6rtoj","margins-xsmall":"typography__margins-xsmall_6rtoj"};
3
+ var styles = {"xlarge":"typography__xlarge_k7ygb","font":"typography__font_k7ygb","regular-xlarge":"typography__regular-xlarge_k7ygb","system":"typography__system_k7ygb","large":"typography__large_k7ygb","regular-large":"typography__regular-large_k7ygb","medium":"typography__medium_k7ygb","regular-medium":"typography__regular-medium_k7ygb","small":"typography__small_k7ygb","regular-small":"typography__regular-small_k7ygb","xsmall":"typography__xsmall_k7ygb","regular-xsmall":"typography__regular-xsmall_k7ygb","component":"typography__component_k7ygb","margins-xlarge":"typography__margins-xlarge_k7ygb","margins-large":"typography__margins-large_k7ygb","margins-medium":"typography__margins-medium_k7ygb","margins-small":"typography__margins-small_k7ygb","margins-xsmall":"typography__margins-xsmall_k7ygb"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
package/modern/colors.css CHANGED
@@ -20,63 +20,63 @@
20
20
  --color-static-text-tertiary-dark: rgba(5, 8, 29, 0.38);
21
21
  --color-static-text-tertiary-light: rgba(233, 233, 250, 0.37);
22
22
  }
23
- .typography__tertiary_130e9 {
23
+ .typography__tertiary_8qhut {
24
24
  color: var(--color-light-text-tertiary);
25
25
  }
26
- .typography__disabled_130e9 {
26
+ .typography__disabled_8qhut {
27
27
  color: var(--color-light-text-quaternary);
28
28
  }
29
- .typography__accent_130e9 {
29
+ .typography__accent_8qhut {
30
30
  color: var(--color-light-accent-primary);
31
31
  }
32
- .typography__primary_130e9 {
32
+ .typography__primary_8qhut {
33
33
  color: var(--color-light-text-primary);
34
34
  }
35
- .typography__attention_130e9 {
35
+ .typography__attention_8qhut {
36
36
  color: var(--color-light-text-attention);
37
37
  }
38
- .typography__positive_130e9 {
38
+ .typography__positive_8qhut {
39
39
  color: var(--color-light-text-positive);
40
40
  }
41
- .typography__secondary_130e9 {
41
+ .typography__secondary_8qhut {
42
42
  color: var(--color-light-text-secondary);
43
43
  }
44
- .typography__tertiary-inverted_130e9 {
44
+ .typography__tertiary-inverted_8qhut {
45
45
  color: var(--color-light-text-tertiary-inverted);
46
46
  }
47
- .typography__primary-inverted_130e9 {
47
+ .typography__primary-inverted_8qhut {
48
48
  color: var(--color-light-text-primary-inverted);
49
49
  }
50
- .typography__secondary-inverted_130e9 {
50
+ .typography__secondary-inverted_8qhut {
51
51
  color: var(--color-light-text-secondary-inverted);
52
52
  }
53
- .typography__link_130e9 {
53
+ .typography__link_8qhut {
54
54
  color: var(--color-light-text-info);
55
55
  }
56
- .typography__negative_130e9 {
56
+ .typography__negative_8qhut {
57
57
  color: var(--color-light-text-negative);
58
58
  }
59
- .typography__static-primary-light_130e9 {
59
+ .typography__static-primary-light_8qhut {
60
60
  color: var(--color-static-text-primary-light);
61
61
  }
62
- .typography__static-secondary-light_130e9 {
62
+ .typography__static-secondary-light_8qhut {
63
63
  color: var(--color-static-text-secondary-light);
64
64
  }
65
- .typography__static-tertiary-light_130e9 {
65
+ .typography__static-tertiary-light_8qhut {
66
66
  color: var(--color-static-text-tertiary-light);
67
67
  }
68
- .typography__static-primary-dark_130e9 {
68
+ .typography__static-primary-dark_8qhut {
69
69
  color: var(--color-static-text-primary-dark);
70
70
  }
71
- .typography__static-secondary-dark_130e9 {
71
+ .typography__static-secondary-dark_8qhut {
72
72
  color: var(--color-static-text-secondary-dark);
73
73
  }
74
- .typography__static-tertiary-dark_130e9 {
74
+ .typography__static-tertiary-dark_8qhut {
75
75
  color: var(--color-static-text-tertiary-dark);
76
76
  }
77
- .typography__static-accent_130e9 {
77
+ .typography__static-accent_8qhut {
78
78
  color: var(--color-static-accent-primary);
79
79
  }
80
- .typography__static-positive_130e9 {
80
+ .typography__static-positive_8qhut {
81
81
  color: var(--color-static-text-positive);
82
82
  }
@@ -1,6 +1,6 @@
1
1
  import './colors.css';
2
2
 
3
- const colors = {"tertiary":"typography__tertiary_130e9","disabled":"typography__disabled_130e9","accent":"typography__accent_130e9","primary":"typography__primary_130e9","attention":"typography__attention_130e9","positive":"typography__positive_130e9","secondary":"typography__secondary_130e9","tertiary-inverted":"typography__tertiary-inverted_130e9","primary-inverted":"typography__primary-inverted_130e9","secondary-inverted":"typography__secondary-inverted_130e9","link":"typography__link_130e9","negative":"typography__negative_130e9","static-primary-light":"typography__static-primary-light_130e9","static-secondary-light":"typography__static-secondary-light_130e9","static-tertiary-light":"typography__static-tertiary-light_130e9","static-primary-dark":"typography__static-primary-dark_130e9","static-secondary-dark":"typography__static-secondary-dark_130e9","static-tertiary-dark":"typography__static-tertiary-dark_130e9","static-accent":"typography__static-accent_130e9","static-positive":"typography__static-positive_130e9"};
3
+ const colors = {"tertiary":"typography__tertiary_8qhut","disabled":"typography__disabled_8qhut","accent":"typography__accent_8qhut","primary":"typography__primary_8qhut","attention":"typography__attention_8qhut","positive":"typography__positive_8qhut","secondary":"typography__secondary_8qhut","tertiary-inverted":"typography__tertiary-inverted_8qhut","primary-inverted":"typography__primary-inverted_8qhut","secondary-inverted":"typography__secondary-inverted_8qhut","link":"typography__link_8qhut","negative":"typography__negative_8qhut","static-primary-light":"typography__static-primary-light_8qhut","static-secondary-light":"typography__static-secondary-light_8qhut","static-tertiary-light":"typography__static-tertiary-light_8qhut","static-primary-dark":"typography__static-primary-dark_8qhut","static-secondary-dark":"typography__static-secondary-dark_8qhut","static-tertiary-dark":"typography__static-tertiary-dark_8qhut","static-accent":"typography__static-accent_8qhut","static-positive":"typography__static-positive_8qhut"};
4
4
 
5
5
  export { colors as default };
6
6
  //# sourceMappingURL=colors.module.css.js.map
@@ -1,4 +1,4 @@
1
- import React, { forwardRef } from 'react';
1
+ import React, { forwardRef, Fragment } from 'react';
2
2
  import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
4
  import { useSkeleton } from '@alfalab/core-components-skeleton/modern';
@@ -7,22 +7,24 @@ import styles from './index.module.css.js';
7
7
 
8
8
  const Text = forwardRef(({ view = 'primary-medium', tag: Component = 'span', weight, monospaceNumbers = false, defaultMargins = true, color, className, dataTestId, children, rowLimit, showSkeleton, skeletonProps, font, ...restProps }, ref) => {
9
9
  const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);
10
- const skeleton = renderSkeleton({
11
- wrapperClassName: cn({
12
- [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,
13
- }),
14
- dataTestId,
15
- });
16
- if (skeleton) {
17
- return skeleton;
18
- }
19
- return (React.createElement(Component, { className: cn({
20
- [styles.paragraph]: Component === 'p' && !defaultMargins,
21
- [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,
22
- [styles.monospace]: monospaceNumbers,
23
- [styles[`rowLimit${rowLimit}`]]: rowLimit,
24
- [styles.transparent]: showSkeleton,
25
- }, className, color && colors[color], styles[view], weight && styles[weight]), "data-test-id": dataTestId, ref: mergeRefs([ref, textRef]), ...restProps }, children));
10
+ const Root = showSkeleton ? 'div' : Fragment;
11
+ const rootProps = showSkeleton
12
+ ? { className: cn(styles.root, className) }
13
+ : {};
14
+ return (React.createElement(Root, { ...rootProps },
15
+ React.createElement(Component, { className: cn({
16
+ [styles.paragraph]: Component === 'p' && !defaultMargins,
17
+ [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,
18
+ [styles.monospace]: monospaceNumbers,
19
+ [styles[`rowLimit${rowLimit}`]]: rowLimit,
20
+ [styles.transparent]: showSkeleton,
21
+ }, !showSkeleton && className, color && colors[color], styles[view], weight && styles[weight]), "data-test-id": dataTestId, ref: mergeRefs([ref, textRef]), ...restProps }, children),
22
+ showSkeleton && (React.createElement("div", { className: styles.skeleton }, renderSkeleton({
23
+ wrapperClassName: cn({
24
+ [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,
25
+ }),
26
+ dataTestId,
27
+ })))));
26
28
  });
27
29
 
28
30
  export { Text };
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../src/text/component.tsx"],"sourcesContent":["import React, { forwardRef, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\nimport { type TextElementType } from '../types';\n\nimport colors from '../colors.module.css';\nimport styles from './index.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLSpanElement>;\n\ntype TextBaseProps = {\n /**\n * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'secondary-large'\n | 'secondary-medium'\n | 'secondary-small'\n | 'component-primary'\n | 'component-secondary'\n | 'caps'\n | 'tagline';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold';\n\n /**\n * Делает цифры моноширинными\n */\n monospaceNumbers?: boolean;\n\n /**\n * HTML тег\n */\n tag?: 'span' | 'div';\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Добавляет отступы к тэгу 'p'\n */\n defaultMargins?: never;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'alfasans' | undefined | null;\n};\n\ntype TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {\n tag?: 'p';\n defaultMargins?: boolean;\n};\n\nexport type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);\n\nexport const Text = forwardRef<TextElementType, TextProps>(\n (\n {\n view = 'primary-medium',\n tag: Component = 'span',\n weight,\n monospaceNumbers = false,\n defaultMargins = true,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n showSkeleton,\n skeletonProps,\n font,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn({\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n }),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n return (\n <Component\n className={cn(\n {\n [styles.paragraph]: Component === 'p' && !defaultMargins,\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n [styles.monospace]: monospaceNumbers,\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n },\n className,\n color && colors[color],\n styles[view],\n weight && styles[weight],\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;MAoGa,IAAI,GAAG,UAAU,CAC1B,CACI,EACI,IAAI,GAAG,gBAAgB,EACvB,GAAG,EAAE,SAAS,GAAG,MAAM,EACvB,MAAM,EACN,gBAAgB,GAAG,KAAK,EACxB,cAAc,GAAG,IAAI,EACrB,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,IAAI,EACJ,GAAG,SAAS,EACf,EACD,GAAG,KACH;AACA,IAAA,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,aAAa,CAAC;IAE5E,MAAM,QAAQ,GAAG,cAAc,CAAC;QAC5B,gBAAgB,EAAE,EAAE,CAAC;YACjB,CAAC,MAAM,CAAC,oBAAoB,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;SACrE,CAAC;QACF,UAAU;AACb,KAAA,CAAC;IAEF,IAAI,QAAQ,EAAE;AACV,QAAA,OAAO,QAAQ;;AAGnB,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,IACN,SAAS,EAAE,EAAE,CACT;YACI,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,KAAK,GAAG,IAAI,CAAC,cAAc;YACxD,CAAC,MAAM,CAAC,oBAAoB,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;AAClE,YAAA,CAAC,MAAM,CAAC,SAAS,GAAG,gBAAgB;YACpC,CAAC,MAAM,CAAC,CAAW,QAAA,EAAA,QAAQ,EAAE,CAAC,GAAG,QAAQ;AACzC,YAAA,CAAC,MAAM,CAAC,WAAW,GAAG,YAAY;AACrC,SAAA,EACD,SAAS,EACT,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,EACtB,MAAM,CAAC,IAAI,CAAC,EACZ,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAC3B,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,GAAA,SAAS,IAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../src/text/component.tsx"],"sourcesContent":["import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\nimport { type TextElementType } from '../types';\n\nimport colors from '../colors.module.css';\nimport styles from './index.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLSpanElement>;\n\ntype TextBaseProps = {\n /**\n * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'secondary-large'\n | 'secondary-medium'\n | 'secondary-small'\n | 'component-primary'\n | 'component-secondary'\n | 'caps'\n | 'tagline';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold';\n\n /**\n * Делает цифры моноширинными\n */\n monospaceNumbers?: boolean;\n\n /**\n * HTML тег\n */\n tag?: 'span' | 'div';\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Добавляет отступы к тэгу 'p'\n */\n defaultMargins?: never;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'alfasans' | undefined | null;\n};\n\ntype TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {\n tag?: 'p';\n defaultMargins?: boolean;\n};\n\nexport type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);\n\nexport const Text = forwardRef<TextElementType, TextProps>(\n (\n {\n view = 'primary-medium',\n tag: Component = 'span',\n weight,\n monospaceNumbers = false,\n defaultMargins = true,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n showSkeleton,\n skeletonProps,\n font,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n const Root = showSkeleton ? 'div' : Fragment;\n const rootProps: ComponentProps<typeof Root> = showSkeleton\n ? { className: cn(styles.root, className) }\n : {};\n\n return (\n <Root {...rootProps}>\n <Component\n className={cn(\n {\n [styles.paragraph]: Component === 'p' && !defaultMargins,\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n [styles.monospace]: monospaceNumbers,\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n },\n !showSkeleton && className,\n color && colors[color],\n styles[view],\n weight && styles[weight],\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n {showSkeleton && (\n <div className={styles.skeleton}>\n {renderSkeleton({\n wrapperClassName: cn({\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n }),\n dataTestId,\n })}\n </div>\n )}\n </Root>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;MAoGa,IAAI,GAAG,UAAU,CAC1B,CACI,EACI,IAAI,GAAG,gBAAgB,EACvB,GAAG,EAAE,SAAS,GAAG,MAAM,EACvB,MAAM,EACN,gBAAgB,GAAG,KAAK,EACxB,cAAc,GAAG,IAAI,EACrB,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,IAAI,EACJ,GAAG,SAAS,EACf,EACD,GAAG,KACH;AACA,IAAA,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,aAAa,CAAC;IAC5E,MAAM,IAAI,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ;IAC5C,MAAM,SAAS,GAAgC;AAC3C,UAAE,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC;UACvC,EAAE;AAER,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAA,GAAK,SAAS,EAAA;AACf,QAAA,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EACN,SAAS,EAAE,EAAE,CACT;gBACI,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,KAAK,GAAG,IAAI,CAAC,cAAc;gBACxD,CAAC,MAAM,CAAC,oBAAoB,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;AAClE,gBAAA,CAAC,MAAM,CAAC,SAAS,GAAG,gBAAgB;gBACpC,CAAC,MAAM,CAAC,CAAW,QAAA,EAAA,QAAQ,EAAE,CAAC,GAAG,QAAQ;AACzC,gBAAA,CAAC,MAAM,CAAC,WAAW,GAAG,YAAY;AACrC,aAAA,EACD,CAAC,YAAY,IAAI,SAAS,EAC1B,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,EACtB,MAAM,CAAC,IAAI,CAAC,EACZ,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAC3B,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,KAC1B,SAAS,EAAA,EAEZ,QAAQ,CACD;QACX,YAAY,KACT,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,EAAA,cAAc,CAAC;YACZ,gBAAgB,EAAE,EAAE,CAAC;gBACjB,CAAC,MAAM,CAAC,oBAAoB,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;aACrE,CAAC;YACF,UAAU;AACb,SAAA,CAAC,CACA,CACT,CACE;AAEf,CAAC;;;;"}
@@ -6,33 +6,40 @@
6
6
  --font-family-system:
7
7
  system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
8
8
  }
9
- .typography__transparent_1cx1r {
10
- opacity: 0;
9
+ .typography__transparent_1j1xz {
10
+ visibility: hidden;
11
+ }
12
+ .typography__skeleton_1j1xz {
13
+ position: absolute;
14
+ inset: 0;
15
+ }
16
+ .typography__root_1j1xz {
17
+ position: relative;
11
18
  }
12
19
  :root {
13
20
  --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
14
21
  }
15
- .typography__paragraph_1cx1r {
22
+ .typography__paragraph_1j1xz {
16
23
  margin: var(--gap-0);
17
24
  padding: var(--gap-0);
18
25
  }
19
- .typography__paragraphWithMargins_1cx1r {
26
+ .typography__paragraphWithMargins_1j1xz {
20
27
  padding: var(--gap-0);
21
28
  margin: var(--text-paragraph-margin-bottom);
22
29
  }
23
- .typography__component_1cx1r {
30
+ .typography__component_1j1xz {
24
31
  font-size: 16px;
25
32
  line-height: 20px;
26
33
  font-weight: 400;
27
34
  font-family: var(--font-family-system);
28
35
  }
29
- .typography__component_1cx1r.typography__bold_1cx1r {
36
+ .typography__component_1j1xz.typography__bold_1j1xz {
30
37
  font-weight: 700;
31
38
  }
32
- .typography__component_1cx1r.typography__medium_1cx1r {
39
+ .typography__component_1j1xz.typography__medium_1j1xz {
33
40
  font-weight: 500;
34
41
  }
35
- .typography__caps_1cx1r {
42
+ .typography__caps_1j1xz {
36
43
  font-size: 12px;
37
44
  line-height: 16px;
38
45
  font-weight: 400;
@@ -40,13 +47,13 @@
40
47
  text-transform: uppercase;
41
48
  font-family: var(--font-family-system);
42
49
  }
43
- .typography__caps_1cx1r.typography__bold_1cx1r {
50
+ .typography__caps_1j1xz.typography__bold_1j1xz {
44
51
  font-weight: 700;
45
52
  }
46
- .typography__caps_1cx1r.typography__medium_1cx1r {
53
+ .typography__caps_1j1xz.typography__medium_1j1xz {
47
54
  font-weight: 500;
48
55
  }
49
- .typography__tagline_1cx1r {
56
+ .typography__tagline_1j1xz {
50
57
  font-size: 12px;
51
58
  line-height: 16px;
52
59
  font-weight: 400;
@@ -54,128 +61,128 @@
54
61
  text-transform: uppercase;
55
62
  font-family: var(--font-family-system);
56
63
  }
57
- .typography__tagline_1cx1r.typography__bold_1cx1r {
64
+ .typography__tagline_1j1xz.typography__bold_1j1xz {
58
65
  font-weight: 700;
59
66
  }
60
- .typography__tagline_1cx1r.typography__medium_1cx1r {
67
+ .typography__tagline_1j1xz.typography__medium_1j1xz {
61
68
  font-weight: 500;
62
69
  }
63
- .typography__primary-large_1cx1r {
70
+ .typography__primary-large_1j1xz {
64
71
  font-size: 18px;
65
72
  line-height: 24px;
66
73
  font-weight: 400;
67
74
  font-family: var(--font-family-system);
68
75
  }
69
- .typography__primary-large_1cx1r.typography__bold_1cx1r {
76
+ .typography__primary-large_1j1xz.typography__bold_1j1xz {
70
77
  font-weight: 700;
71
78
  }
72
- .typography__primary-large_1cx1r.typography__medium_1cx1r {
79
+ .typography__primary-large_1j1xz.typography__medium_1j1xz {
73
80
  font-weight: 500;
74
81
  }
75
- .typography__primary-medium_1cx1r {
82
+ .typography__primary-medium_1j1xz {
76
83
  font-size: 16px;
77
84
  line-height: 24px;
78
85
  font-weight: 400;
79
86
  font-family: var(--font-family-system);
80
87
  }
81
- .typography__primary-medium_1cx1r.typography__bold_1cx1r {
88
+ .typography__primary-medium_1j1xz.typography__bold_1j1xz {
82
89
  font-weight: 700;
83
90
  }
84
- .typography__primary-medium_1cx1r.typography__medium_1cx1r {
91
+ .typography__primary-medium_1j1xz.typography__medium_1j1xz {
85
92
  font-weight: 500;
86
93
  }
87
- .typography__primary-small_1cx1r {
94
+ .typography__primary-small_1j1xz {
88
95
  font-size: 14px;
89
96
  line-height: 20px;
90
97
  font-weight: 400;
91
98
  font-family: var(--font-family-system);
92
99
  }
93
- .typography__primary-small_1cx1r.typography__bold_1cx1r {
100
+ .typography__primary-small_1j1xz.typography__bold_1j1xz {
94
101
  font-weight: 700;
95
102
  }
96
- .typography__primary-small_1cx1r.typography__medium_1cx1r {
103
+ .typography__primary-small_1j1xz.typography__medium_1j1xz {
97
104
  font-weight: 500;
98
105
  }
99
- .typography__component-primary_1cx1r {
106
+ .typography__component-primary_1j1xz {
100
107
  font-size: 16px;
101
108
  line-height: 20px;
102
109
  font-weight: 400;
103
110
  font-family: var(--font-family-system);
104
111
  }
105
- .typography__component-primary_1cx1r.typography__bold_1cx1r {
112
+ .typography__component-primary_1j1xz.typography__bold_1j1xz {
106
113
  font-weight: 700;
107
114
  }
108
- .typography__component-primary_1cx1r.typography__medium_1cx1r {
115
+ .typography__component-primary_1j1xz.typography__medium_1j1xz {
109
116
  font-weight: 500;
110
117
  }
111
- .typography__secondary-large_1cx1r {
118
+ .typography__secondary-large_1j1xz {
112
119
  font-size: 13px;
113
120
  line-height: 16px;
114
121
  font-weight: 400;
115
122
  font-family: var(--font-family-system);
116
123
  }
117
- .typography__secondary-large_1cx1r.typography__bold_1cx1r {
124
+ .typography__secondary-large_1j1xz.typography__bold_1j1xz {
118
125
  font-weight: 700;
119
126
  }
120
- .typography__secondary-large_1cx1r.typography__medium_1cx1r {
127
+ .typography__secondary-large_1j1xz.typography__medium_1j1xz {
121
128
  font-weight: 500;
122
129
  }
123
- .typography__secondary-medium_1cx1r {
130
+ .typography__secondary-medium_1j1xz {
124
131
  font-size: 12px;
125
132
  line-height: 16px;
126
133
  font-weight: 400;
127
134
  font-family: var(--font-family-system);
128
135
  }
129
- .typography__secondary-medium_1cx1r.typography__bold_1cx1r {
136
+ .typography__secondary-medium_1j1xz.typography__bold_1j1xz {
130
137
  font-weight: 700;
131
138
  }
132
- .typography__secondary-medium_1cx1r.typography__medium_1cx1r {
139
+ .typography__secondary-medium_1j1xz.typography__medium_1j1xz {
133
140
  font-weight: 500;
134
141
  }
135
- .typography__secondary-small_1cx1r {
142
+ .typography__secondary-small_1j1xz {
136
143
  font-size: 11px;
137
144
  line-height: 16px;
138
145
  font-weight: 400;
139
146
  font-family: var(--font-family-system);
140
147
  }
141
- .typography__secondary-small_1cx1r.typography__bold_1cx1r {
148
+ .typography__secondary-small_1j1xz.typography__bold_1j1xz {
142
149
  font-weight: 700;
143
150
  }
144
- .typography__secondary-small_1cx1r.typography__medium_1cx1r {
151
+ .typography__secondary-small_1j1xz.typography__medium_1j1xz {
145
152
  font-weight: 500;
146
153
  }
147
- .typography__component-secondary_1cx1r {
154
+ .typography__component-secondary_1j1xz {
148
155
  font-size: 14px;
149
156
  line-height: 18px;
150
157
  font-weight: 400;
151
158
  font-family: var(--font-family-system);
152
159
  }
153
- .typography__component-secondary_1cx1r.typography__bold_1cx1r {
160
+ .typography__component-secondary_1j1xz.typography__bold_1j1xz {
154
161
  font-weight: 700;
155
162
  }
156
- .typography__component-secondary_1cx1r.typography__medium_1cx1r {
163
+ .typography__component-secondary_1j1xz.typography__medium_1j1xz {
157
164
  font-weight: 500;
158
165
  }
159
- .typography__rowLimit1_1cx1r {
166
+ .typography__rowLimit1_1j1xz {
160
167
  -webkit-line-clamp: 1;
161
168
  display: -webkit-box;
162
169
  -webkit-box-orient: vertical;
163
170
  overflow: hidden;
164
171
  word-break: break-all;
165
172
  }
166
- .typography__rowLimit2_1cx1r {
173
+ .typography__rowLimit2_1j1xz {
167
174
  -webkit-line-clamp: 2;
168
175
  display: -webkit-box;
169
176
  -webkit-box-orient: vertical;
170
177
  overflow: hidden;
171
178
  }
172
- .typography__rowLimit3_1cx1r {
179
+ .typography__rowLimit3_1j1xz {
173
180
  -webkit-line-clamp: 3;
174
181
  display: -webkit-box;
175
182
  -webkit-box-orient: vertical;
176
183
  overflow: hidden;
177
184
  }
178
- .typography__monospace_1cx1r {
185
+ .typography__monospace_1j1xz {
179
186
  font-feature-settings: "tnum";
180
187
  font-variant-numeric: tabular-nums;
181
188
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"transparent":"typography__transparent_1cx1r","paragraph":"typography__paragraph_1cx1r","paragraphWithMargins":"typography__paragraphWithMargins_1cx1r","component":"typography__component_1cx1r","bold":"typography__bold_1cx1r","medium":"typography__medium_1cx1r","caps":"typography__caps_1cx1r","tagline":"typography__tagline_1cx1r","primary-large":"typography__primary-large_1cx1r","primary-medium":"typography__primary-medium_1cx1r","primary-small":"typography__primary-small_1cx1r","component-primary":"typography__component-primary_1cx1r","secondary-large":"typography__secondary-large_1cx1r","secondary-medium":"typography__secondary-medium_1cx1r","secondary-small":"typography__secondary-small_1cx1r","component-secondary":"typography__component-secondary_1cx1r","rowLimit1":"typography__rowLimit1_1cx1r","rowLimit2":"typography__rowLimit2_1cx1r","rowLimit3":"typography__rowLimit3_1cx1r","monospace":"typography__monospace_1cx1r"};
3
+ const styles = {"transparent":"typography__transparent_1j1xz","skeleton":"typography__skeleton_1j1xz","root":"typography__root_1j1xz","paragraph":"typography__paragraph_1j1xz","paragraphWithMargins":"typography__paragraphWithMargins_1j1xz","component":"typography__component_1j1xz","bold":"typography__bold_1j1xz","medium":"typography__medium_1j1xz","caps":"typography__caps_1j1xz","tagline":"typography__tagline_1j1xz","primary-large":"typography__primary-large_1j1xz","primary-medium":"typography__primary-medium_1j1xz","primary-small":"typography__primary-small_1j1xz","component-primary":"typography__component-primary_1j1xz","secondary-large":"typography__secondary-large_1j1xz","secondary-medium":"typography__secondary-medium_1j1xz","secondary-small":"typography__secondary-small_1j1xz","component-secondary":"typography__component-secondary_1j1xz","rowLimit1":"typography__rowLimit1_1j1xz","rowLimit2":"typography__rowLimit2_1j1xz","rowLimit3":"typography__rowLimit3_1j1xz","monospace":"typography__monospace_1j1xz"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n:root {\n --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);\n}\n\n.paragraph {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.paragraphWithMargins {\n padding: var(--gap-0);\n margin: var(--text-paragraph-margin-bottom);\n}\n\n@each $view in component, caps, tagline {\n .$(view) {\n @mixin paragraph_$(view);\n }\n\n .$(view).bold {\n @subtract-mixin accent_$(view), paragraph_$(view);\n }\n\n .$(view).medium {\n @subtract-mixin action_$(view), 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\n .$(kind)-$(size).bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n }\n\n .component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind);\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind);\n }\n }\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,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,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n:root {\n --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);\n}\n\n.paragraph {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.paragraphWithMargins {\n padding: var(--gap-0);\n margin: var(--text-paragraph-margin-bottom);\n}\n\n@each $view in component, caps, tagline {\n .$(view) {\n @mixin paragraph_$(view);\n }\n\n .$(view).bold {\n @subtract-mixin accent_$(view), paragraph_$(view);\n }\n\n .$(view).medium {\n @subtract-mixin action_$(view), 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\n .$(kind)-$(size).bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n }\n\n .component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind);\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind);\n }\n }\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,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,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
@@ -1,27 +1,34 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .typography__transparent_1ocqv {
5
- opacity: 0;
4
+ .typography__transparent_3kstk {
5
+ visibility: hidden;
6
6
  }
7
- .typography__component_1ocqv {
7
+ .typography__skeleton_3kstk {
8
+ position: absolute;
9
+ inset: 0;
10
+ }
11
+ .typography__root_3kstk {
12
+ position: relative;
13
+ }
14
+ .typography__component_3kstk {
8
15
  margin: var(--gap-0);
9
16
  padding: var(--gap-0);
10
17
  }
11
- .typography__rowLimit1_1ocqv {
18
+ .typography__rowLimit1_3kstk {
12
19
  -webkit-line-clamp: 1;
13
20
  display: -webkit-box;
14
21
  -webkit-box-orient: vertical;
15
22
  overflow: hidden;
16
23
  word-break: break-all;
17
24
  }
18
- .typography__rowLimit2_1ocqv {
25
+ .typography__rowLimit2_3kstk {
19
26
  -webkit-line-clamp: 2;
20
27
  display: -webkit-box;
21
28
  -webkit-box-orient: vertical;
22
29
  overflow: hidden;
23
30
  }
24
- .typography__rowLimit3_1ocqv {
31
+ .typography__rowLimit3_3kstk {
25
32
  -webkit-line-clamp: 3;
26
33
  display: -webkit-box;
27
34
  -webkit-box-orient: vertical;
@@ -1,6 +1,6 @@
1
1
  import './common.css';
2
2
 
3
- const commonStyles = {"transparent":"typography__transparent_1ocqv","component":"typography__component_1ocqv","rowLimit1":"typography__rowLimit1_1ocqv","rowLimit2":"typography__rowLimit2_1ocqv","rowLimit3":"typography__rowLimit3_1ocqv"};
3
+ const commonStyles = {"transparent":"typography__transparent_3kstk","skeleton":"typography__skeleton_3kstk","root":"typography__root_3kstk","component":"typography__component_3kstk","rowLimit1":"typography__rowLimit1_3kstk","rowLimit2":"typography__rowLimit2_3kstk","rowLimit3":"typography__rowLimit3_3kstk"};
4
4
 
5
5
  export { commonStyles as default };
6
6
  //# sourceMappingURL=common.module.css.js.map