@alfalab/core-components-typography 4.2.1 → 4.3.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.
Files changed (85) hide show
  1. package/colors.css +20 -20
  2. package/colors.module-67e5bcbb.js +6 -0
  3. package/common.module-e30c567d.js +6 -0
  4. package/component.js +2 -2
  5. package/cssm/title/index.d.ts +16 -2
  6. package/cssm/title/index.js +1 -6
  7. package/cssm/title-mobile/component.d.ts +16 -2
  8. package/cssm/title-mobile/component.js +1 -6
  9. package/cssm/title-responsive/component.d.ts +16 -3
  10. package/cssm/title-responsive/component.js +1 -6
  11. package/esm/colors.css +20 -20
  12. package/esm/colors.module-f70f33ad.js +4 -0
  13. package/esm/common.module-a6e9f838.js +4 -0
  14. package/esm/component.js +2 -2
  15. package/esm/hooks/use-skeleton.css +2 -2
  16. package/esm/hooks/useSkeleton.js +1 -1
  17. package/esm/index.js +2 -2
  18. package/esm/text/component.js +2 -2
  19. package/esm/text/index.css +20 -20
  20. package/esm/text/index.js +1 -1
  21. package/esm/title/common.css +5 -5
  22. package/esm/title/component.js +1 -1
  23. package/esm/title/index.css +19 -19
  24. package/esm/title/index.d.ts +16 -2
  25. package/esm/title/index.js +5 -10
  26. package/esm/title-mobile/component.d.ts +16 -2
  27. package/esm/title-mobile/component.js +5 -10
  28. package/esm/title-mobile/index.css +11 -11
  29. package/esm/title-mobile/index.js +2 -2
  30. package/esm/title-responsive/component.d.ts +16 -3
  31. package/esm/title-responsive/component.js +5 -10
  32. package/esm/title-responsive/index.css +31 -31
  33. package/esm/title-responsive/index.js +2 -2
  34. package/hooks/use-skeleton.css +2 -2
  35. package/hooks/useSkeleton.js +1 -1
  36. package/index.js +2 -2
  37. package/modern/colors.css +20 -20
  38. package/modern/colors.module-95caa60d.js +4 -0
  39. package/modern/common.module-592df4cb.js +4 -0
  40. package/modern/component.js +2 -2
  41. package/modern/hooks/use-skeleton.css +2 -2
  42. package/modern/hooks/useSkeleton.js +1 -1
  43. package/modern/index.js +2 -2
  44. package/modern/text/component.js +2 -2
  45. package/modern/text/index.css +20 -20
  46. package/modern/text/index.js +1 -1
  47. package/modern/title/common.css +5 -5
  48. package/modern/title/component.js +1 -1
  49. package/modern/title/index.css +19 -19
  50. package/modern/title/index.d.ts +16 -2
  51. package/modern/title/index.js +5 -10
  52. package/modern/title-mobile/component.d.ts +16 -2
  53. package/modern/title-mobile/component.js +5 -10
  54. package/modern/title-mobile/index.css +11 -11
  55. package/modern/title-mobile/index.js +2 -2
  56. package/modern/title-responsive/component.d.ts +16 -3
  57. package/modern/title-responsive/component.js +5 -10
  58. package/modern/title-responsive/index.css +31 -31
  59. package/modern/title-responsive/index.js +2 -2
  60. package/package.json +1 -1
  61. package/src/title/index.tsx +4 -8
  62. package/src/title-mobile/component.tsx +3 -7
  63. package/src/title-responsive/component.tsx +3 -7
  64. package/text/component.js +2 -2
  65. package/text/index.css +20 -20
  66. package/text/index.js +1 -1
  67. package/title/common.css +5 -5
  68. package/title/component.js +1 -1
  69. package/title/index.css +19 -19
  70. package/title/index.d.ts +16 -2
  71. package/title/index.js +4 -9
  72. package/title-mobile/component.d.ts +16 -2
  73. package/title-mobile/component.js +4 -9
  74. package/title-mobile/index.css +11 -11
  75. package/title-mobile/index.js +2 -2
  76. package/title-responsive/component.d.ts +16 -3
  77. package/title-responsive/component.js +4 -9
  78. package/title-responsive/index.css +31 -31
  79. package/title-responsive/index.js +2 -2
  80. package/colors.module-4e4b7d12.js +0 -6
  81. package/common.module-b3f0cfca.js +0 -6
  82. package/esm/colors.module-ca4c7711.js +0 -4
  83. package/esm/common.module-936e59c9.js +0 -4
  84. package/modern/colors.module-62b0790b.js +0 -4
  85. package/modern/common.module-d91f4ff7.js +0 -4
package/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1plsv */
1
+ /* hash: ockmg */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-accent: #ef3124;
@@ -33,42 +33,42 @@
33
33
  } :root {
34
34
  } :root {
35
35
  } :root {
36
- } /* colors */ .typography__tertiary_1ds77 {
36
+ } /* colors */ .typography__tertiary_dnyuu {
37
37
  color: var(--color-light-text-tertiary);
38
- } .typography__disabled_1ds77 {
38
+ } .typography__disabled_dnyuu {
39
39
  color: var(--color-light-text-disabled);
40
- } .typography__accent_1ds77 {
40
+ } .typography__accent_dnyuu {
41
41
  color: var(--color-light-text-accent);
42
- } .typography__primary_1ds77 {
42
+ } .typography__primary_dnyuu {
43
43
  color: var(--color-light-text-primary);
44
- } .typography__attention_1ds77 {
44
+ } .typography__attention_dnyuu {
45
45
  color: var(--color-light-text-attention);
46
- } .typography__positive_1ds77 {
46
+ } .typography__positive_dnyuu {
47
47
  color: var(--color-light-text-positive);
48
- } .typography__secondary_1ds77 {
48
+ } .typography__secondary_dnyuu {
49
49
  color: var(--color-light-text-secondary);
50
- } .typography__tertiary-inverted_1ds77 {
50
+ } .typography__tertiary-inverted_dnyuu {
51
51
  color: var(--color-light-text-tertiary-inverted);
52
- } .typography__primary-inverted_1ds77 {
52
+ } .typography__primary-inverted_dnyuu {
53
53
  color: var(--color-light-text-primary-inverted);
54
- } .typography__secondary-inverted_1ds77 {
54
+ } .typography__secondary-inverted_dnyuu {
55
55
  color: var(--color-light-text-secondary-inverted);
56
- } .typography__link_1ds77 {
56
+ } .typography__link_dnyuu {
57
57
  color: var(--color-light-text-link);
58
- } .typography__negative_1ds77 {
58
+ } .typography__negative_dnyuu {
59
59
  color: var(--color-light-text-negative);
60
- } .typography__static-primary-light_1ds77 {
60
+ } .typography__static-primary-light_dnyuu {
61
61
  color: var(--color-static-text-primary-light);
62
- } .typography__static-secondary-light_1ds77 {
62
+ } .typography__static-secondary-light_dnyuu {
63
63
  color: var(--color-static-text-secondary-light);
64
- } .typography__static-tertiary-light_1ds77 {
64
+ } .typography__static-tertiary-light_dnyuu {
65
65
  color: var(--color-static-text-tertiary-light);
66
- } .typography__static-primary-dark_1ds77 {
66
+ } .typography__static-primary-dark_dnyuu {
67
67
  color: var(--color-static-text-primary-dark);
68
- } .typography__static-secondary-dark_1ds77 {
68
+ } .typography__static-secondary-dark_dnyuu {
69
69
  color: var(--color-static-text-secondary-dark);
70
- } .typography__static-tertiary-dark_1ds77 {
70
+ } .typography__static-tertiary-dark_dnyuu {
71
71
  color: var(--color-static-text-tertiary-dark);
72
- } .typography__static-accent_1ds77 {
72
+ } .typography__static-accent_dnyuu {
73
73
  color: var(--color-static-text-accent);
74
74
  }
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var colors = {"tertiary":"typography__tertiary_dnyuu","disabled":"typography__disabled_dnyuu","accent":"typography__accent_dnyuu","primary":"typography__primary_dnyuu","attention":"typography__attention_dnyuu","positive":"typography__positive_dnyuu","secondary":"typography__secondary_dnyuu","tertiary-inverted":"typography__tertiary-inverted_dnyuu","primary-inverted":"typography__primary-inverted_dnyuu","secondary-inverted":"typography__secondary-inverted_dnyuu","link":"typography__link_dnyuu","negative":"typography__negative_dnyuu","static-primary-light":"typography__static-primary-light_dnyuu","static-secondary-light":"typography__static-secondary-light_dnyuu","static-tertiary-light":"typography__static-tertiary-light_dnyuu","static-primary-dark":"typography__static-primary-dark_dnyuu","static-secondary-dark":"typography__static-secondary-dark_dnyuu","static-tertiary-dark":"typography__static-tertiary-dark_dnyuu","static-accent":"typography__static-accent_dnyuu"};
4
+ require('./colors.css')
5
+
6
+ exports.colors = colors;
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var commonStyles = {"component":"typography__component_1tneh","bold":"typography__bold_1tneh","medium":"typography__medium_1tneh","regular":"typography__regular_1tneh"};
4
+ require('./title/common.css')
5
+
6
+ exports.commonStyles = commonStyles;
package/component.js CHANGED
@@ -13,9 +13,9 @@ require('classnames');
13
13
  require('./hooks/useSkeleton.js');
14
14
  require('@alfalab/core-components-skeleton');
15
15
  require('@alfalab/hooks');
16
- require('./colors.module-4e4b7d12.js');
16
+ require('./colors.module-67e5bcbb.js');
17
17
  require('./title/component.js');
18
- require('./common.module-b3f0cfca.js');
18
+ require('./common.module-e30c567d.js');
19
19
 
20
20
  var Typography = {
21
21
  Title: title_index.Title,
@@ -1,5 +1,19 @@
1
- import { FC } from 'react';
1
+ /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { TitleProps } from "./component";
3
- declare const Title: FC<TitleProps>;
4
+ declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
5
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
6
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
7
+ 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" | undefined;
8
+ weight?: "bold" | "regular" | "medium" | undefined;
9
+ font?: "styrene" | "system" | undefined;
10
+ defaultMargins?: boolean | undefined;
11
+ className?: string | undefined;
12
+ dataTestId?: string | undefined;
13
+ children?: React.ReactNode;
14
+ rowLimit?: 1 | 2 | 3 | undefined;
15
+ showSkeleton?: boolean | undefined;
16
+ skeletonProps?: import("../types").TextSkeletonProps | undefined;
17
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
4
18
  export { Title };
5
19
  export type { TitleProps };
@@ -21,11 +21,6 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
21
21
  var commonStyles__default = /*#__PURE__*/_interopDefaultCompat(commonStyles);
22
22
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
23
23
 
24
- var Title = function (props) { return (
25
- /**
26
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
27
- * Видимо, это особенность работы jest и css-modules.
28
- */
29
- React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default) }))); };
24
+ var Title = React.forwardRef(function (props, ref) { return (React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default), ref: ref }))); });
30
25
 
31
26
  exports.Title = Title;
@@ -1,5 +1,19 @@
1
- import { FC } from 'react';
1
+ /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { TitleProps } from "../title/component";
3
4
  type TitleMobileProps = Omit<TitleProps, 'defaultMargins'>;
4
- declare const TitleMobile: FC<TitleMobileProps>;
5
+ declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
6
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
7
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
8
+ 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" | undefined;
9
+ weight?: "bold" | "regular" | "medium" | undefined;
10
+ font?: "styrene" | "system" | undefined;
11
+ defaultMargins?: boolean | undefined;
12
+ className?: string | undefined;
13
+ dataTestId?: string | undefined;
14
+ children?: React.ReactNode;
15
+ rowLimit?: 1 | 2 | 3 | undefined;
16
+ showSkeleton?: boolean | undefined;
17
+ skeletonProps?: import("../types").TextSkeletonProps | undefined;
18
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
5
19
  export { TitleMobileProps, TitleMobile };
@@ -21,11 +21,6 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
21
21
  var commonStyles__default = /*#__PURE__*/_interopDefaultCompat(commonStyles);
22
22
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
23
23
 
24
- var TitleMobile = function (props) { return (
25
- /**
26
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
27
- * Видимо, это особенность работы jest и css-modules.
28
- */
29
- React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default) }))); };
24
+ var TitleMobile = React.forwardRef(function (props, ref) { return React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default), ref: ref })); });
30
25
 
31
26
  exports.TitleMobile = TitleMobile;
@@ -1,4 +1,17 @@
1
- import { FC } from 'react';
2
- import { TitleProps } from "../title/component";
3
- declare const TitleResponsive: FC<TitleProps>;
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
4
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
5
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
6
+ 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" | undefined;
7
+ weight?: "bold" | "regular" | "medium" | undefined;
8
+ font?: "styrene" | "system" | undefined;
9
+ defaultMargins?: boolean | undefined;
10
+ className?: string | undefined;
11
+ dataTestId?: string | undefined;
12
+ children?: React.ReactNode;
13
+ rowLimit?: 1 | 2 | 3 | undefined;
14
+ showSkeleton?: boolean | undefined;
15
+ skeletonProps?: import("../types").TextSkeletonProps | undefined;
16
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
4
17
  export { TitleResponsive };
@@ -21,11 +21,6 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
21
21
  var commonStyles__default = /*#__PURE__*/_interopDefaultCompat(commonStyles);
22
22
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
23
23
 
24
- var TitleResponsive = function (props) { return (
25
- /**
26
- * Если поменять Object.assign на деструктуризацию, то упадут тесты.
27
- * Видимо, это особенность работы jest и css-modules.
28
- */
29
- React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default) }))); };
24
+ var TitleResponsive = React.forwardRef(function (props, ref) { return React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default), ref: ref })); });
30
25
 
31
26
  exports.TitleResponsive = TitleResponsive;
package/esm/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1plsv */
1
+ /* hash: ockmg */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-accent: #ef3124;
@@ -33,42 +33,42 @@
33
33
  } :root {
34
34
  } :root {
35
35
  } :root {
36
- } /* colors */ .typography__tertiary_1ds77 {
36
+ } /* colors */ .typography__tertiary_dnyuu {
37
37
  color: var(--color-light-text-tertiary);
38
- } .typography__disabled_1ds77 {
38
+ } .typography__disabled_dnyuu {
39
39
  color: var(--color-light-text-disabled);
40
- } .typography__accent_1ds77 {
40
+ } .typography__accent_dnyuu {
41
41
  color: var(--color-light-text-accent);
42
- } .typography__primary_1ds77 {
42
+ } .typography__primary_dnyuu {
43
43
  color: var(--color-light-text-primary);
44
- } .typography__attention_1ds77 {
44
+ } .typography__attention_dnyuu {
45
45
  color: var(--color-light-text-attention);
46
- } .typography__positive_1ds77 {
46
+ } .typography__positive_dnyuu {
47
47
  color: var(--color-light-text-positive);
48
- } .typography__secondary_1ds77 {
48
+ } .typography__secondary_dnyuu {
49
49
  color: var(--color-light-text-secondary);
50
- } .typography__tertiary-inverted_1ds77 {
50
+ } .typography__tertiary-inverted_dnyuu {
51
51
  color: var(--color-light-text-tertiary-inverted);
52
- } .typography__primary-inverted_1ds77 {
52
+ } .typography__primary-inverted_dnyuu {
53
53
  color: var(--color-light-text-primary-inverted);
54
- } .typography__secondary-inverted_1ds77 {
54
+ } .typography__secondary-inverted_dnyuu {
55
55
  color: var(--color-light-text-secondary-inverted);
56
- } .typography__link_1ds77 {
56
+ } .typography__link_dnyuu {
57
57
  color: var(--color-light-text-link);
58
- } .typography__negative_1ds77 {
58
+ } .typography__negative_dnyuu {
59
59
  color: var(--color-light-text-negative);
60
- } .typography__static-primary-light_1ds77 {
60
+ } .typography__static-primary-light_dnyuu {
61
61
  color: var(--color-static-text-primary-light);
62
- } .typography__static-secondary-light_1ds77 {
62
+ } .typography__static-secondary-light_dnyuu {
63
63
  color: var(--color-static-text-secondary-light);
64
- } .typography__static-tertiary-light_1ds77 {
64
+ } .typography__static-tertiary-light_dnyuu {
65
65
  color: var(--color-static-text-tertiary-light);
66
- } .typography__static-primary-dark_1ds77 {
66
+ } .typography__static-primary-dark_dnyuu {
67
67
  color: var(--color-static-text-primary-dark);
68
- } .typography__static-secondary-dark_1ds77 {
68
+ } .typography__static-secondary-dark_dnyuu {
69
69
  color: var(--color-static-text-secondary-dark);
70
- } .typography__static-tertiary-dark_1ds77 {
70
+ } .typography__static-tertiary-dark_dnyuu {
71
71
  color: var(--color-static-text-tertiary-dark);
72
- } .typography__static-accent_1ds77 {
72
+ } .typography__static-accent_dnyuu {
73
73
  color: var(--color-static-text-accent);
74
74
  }
@@ -0,0 +1,4 @@
1
+ var colors = {"tertiary":"typography__tertiary_dnyuu","disabled":"typography__disabled_dnyuu","accent":"typography__accent_dnyuu","primary":"typography__primary_dnyuu","attention":"typography__attention_dnyuu","positive":"typography__positive_dnyuu","secondary":"typography__secondary_dnyuu","tertiary-inverted":"typography__tertiary-inverted_dnyuu","primary-inverted":"typography__primary-inverted_dnyuu","secondary-inverted":"typography__secondary-inverted_dnyuu","link":"typography__link_dnyuu","negative":"typography__negative_dnyuu","static-primary-light":"typography__static-primary-light_dnyuu","static-secondary-light":"typography__static-secondary-light_dnyuu","static-tertiary-light":"typography__static-tertiary-light_dnyuu","static-primary-dark":"typography__static-primary-dark_dnyuu","static-secondary-dark":"typography__static-secondary-dark_dnyuu","static-tertiary-dark":"typography__static-tertiary-dark_dnyuu","static-accent":"typography__static-accent_dnyuu"};
2
+ require('./colors.css')
3
+
4
+ export { colors as c };
@@ -0,0 +1,4 @@
1
+ var commonStyles = {"component":"typography__component_1tneh","bold":"typography__bold_1tneh","medium":"typography__medium_1tneh","regular":"typography__regular_1tneh"};
2
+ require('./title/common.css')
3
+
4
+ export { commonStyles as c };
package/esm/component.js CHANGED
@@ -9,9 +9,9 @@ import 'classnames';
9
9
  import './hooks/useSkeleton.js';
10
10
  import '@alfalab/core-components-skeleton/esm';
11
11
  import '@alfalab/hooks';
12
- import './colors.module-ca4c7711.js';
12
+ import './colors.module-f70f33ad.js';
13
13
  import './title/component.js';
14
- import './common.module-936e59c9.js';
14
+ import './common.module-a6e9f838.js';
15
15
 
16
16
  var Typography = {
17
17
  Title: Title,
@@ -1,4 +1,4 @@
1
- /* hash: 7pfjn */
1
+ /* hash: 1nrh7 */
2
2
  :root {
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 */
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 */
@@ -15,6 +15,6 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .typography__skeletonText_395pe.typography__skeletonText_395pe {
18
+ } .typography__skeletonText_ukqqr.typography__skeletonText_ukqqr {
19
19
  border-radius: var(--border-radius-pill);
20
20
  }
@@ -3,7 +3,7 @@ import React, { useState, useRef } from 'react';
3
3
  import { Skeleton } from '@alfalab/core-components-skeleton/esm';
4
4
  import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
5
5
 
6
- var styles = {"skeletonText":"typography__skeletonText_395pe"};
6
+ var styles = {"skeletonText":"typography__skeletonText_ukqqr"};
7
7
  require('./use-skeleton.css')
8
8
 
9
9
  function useSkeleton(showSkeleton, skeletonProps) {
package/esm/index.js CHANGED
@@ -8,9 +8,9 @@ import 'classnames';
8
8
  import './hooks/useSkeleton.js';
9
9
  import '@alfalab/core-components-skeleton/esm';
10
10
  import '@alfalab/hooks';
11
- import './colors.module-ca4c7711.js';
11
+ import './colors.module-f70f33ad.js';
12
12
  import './title/index.js';
13
13
  import './title/component.js';
14
- import './common.module-936e59c9.js';
14
+ import './common.module-a6e9f838.js';
15
15
  import './title-mobile/component.js';
16
16
  import './title-responsive/component.js';
@@ -3,11 +3,11 @@ 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/useSkeleton.js';
6
- import { c as colors } from '../colors.module-ca4c7711.js';
6
+ import { c as colors } from '../colors.module-f70f33ad.js';
7
7
  import '@alfalab/core-components-skeleton/esm';
8
8
  import '@alfalab/hooks';
9
9
 
10
- var styles = {"paragraph":"typography__paragraph_1v3aj","paragraphWithMargins":"typography__paragraphWithMargins_1v3aj","primary-large":"typography__primary-large_1v3aj","primary-medium":"typography__primary-medium_1v3aj","primary-small":"typography__primary-small_1v3aj","secondary-large":"typography__secondary-large_1v3aj","secondary-medium":"typography__secondary-medium_1v3aj","secondary-small":"typography__secondary-small_1v3aj","component":"typography__component_1v3aj","component-primary":"typography__component-primary_1v3aj","component-secondary":"typography__component-secondary_1v3aj","caps":"typography__caps_1v3aj","bold":"typography__bold_1v3aj","medium":"typography__medium_1v3aj","regular":"typography__regular_1v3aj","monospace":"typography__monospace_1v3aj","rowLimit1":"typography__rowLimit1_1v3aj","rowLimit2":"typography__rowLimit2_1v3aj","rowLimit3":"typography__rowLimit3_1v3aj"};
10
+ var styles = {"paragraph":"typography__paragraph_iqnql","paragraphWithMargins":"typography__paragraphWithMargins_iqnql","primary-large":"typography__primary-large_iqnql","primary-medium":"typography__primary-medium_iqnql","primary-small":"typography__primary-small_iqnql","secondary-large":"typography__secondary-large_iqnql","secondary-medium":"typography__secondary-medium_iqnql","secondary-small":"typography__secondary-small_iqnql","component":"typography__component_iqnql","component-primary":"typography__component-primary_iqnql","component-secondary":"typography__component-secondary_iqnql","caps":"typography__caps_iqnql","bold":"typography__bold_iqnql","medium":"typography__medium_iqnql","regular":"typography__regular_iqnql","monospace":"typography__monospace_iqnql","rowLimit1":"typography__rowLimit1_iqnql","rowLimit2":"typography__rowLimit2_iqnql","rowLimit3":"typography__rowLimit3_iqnql"};
11
11
  require('./index.css')
12
12
 
13
13
  var logWarning = function (view) {
@@ -1,4 +1,4 @@
1
- /* hash: 7mago */
1
+ /* hash: x5nv1 */
2
2
  :root {
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 */
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 */
@@ -17,74 +17,74 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --text-paragraph-margin-bottom: 0 0 var(--gap-s);
20
- } .typography__paragraph_1v3aj {
20
+ } .typography__paragraph_iqnql {
21
21
  margin: 0;
22
22
  padding: 0;
23
- } .typography__paragraphWithMargins_1v3aj {
23
+ } .typography__paragraphWithMargins_iqnql {
24
24
  padding: 0;
25
25
  margin: var(--text-paragraph-margin-bottom);
26
- } .typography__primary-large_1v3aj {
26
+ } .typography__primary-large_iqnql {
27
27
  font-size: 18px;
28
28
  line-height: 24px;
29
29
  font-weight: 400;
30
- } .typography__primary-medium_1v3aj {
30
+ } .typography__primary-medium_iqnql {
31
31
  font-size: 16px;
32
32
  line-height: 24px;
33
33
  font-weight: 400;
34
- } .typography__primary-small_1v3aj {
34
+ } .typography__primary-small_iqnql {
35
35
  font-size: 14px;
36
36
  line-height: 20px;
37
37
  font-weight: 400;
38
- } .typography__secondary-large_1v3aj {
38
+ } .typography__secondary-large_iqnql {
39
39
  font-size: 13px;
40
40
  line-height: 16px;
41
41
  font-weight: 400;
42
- } .typography__secondary-medium_1v3aj {
42
+ } .typography__secondary-medium_iqnql {
43
43
  font-size: 12px;
44
44
  line-height: 16px;
45
45
  font-weight: 400;
46
- } .typography__secondary-small_1v3aj {
46
+ } .typography__secondary-small_iqnql {
47
47
  font-size: 11px;
48
48
  line-height: 16px;
49
49
  font-weight: 400;
50
- } .typography__component_1v3aj {
50
+ } .typography__component_iqnql {
51
51
  font-size: 16px;
52
52
  line-height: 20px;
53
53
  font-weight: 400;
54
- } .typography__component-primary_1v3aj {
54
+ } .typography__component-primary_iqnql {
55
55
  font-size: 16px;
56
56
  line-height: 20px;
57
57
  font-weight: 400;
58
- } .typography__component-secondary_1v3aj {
58
+ } .typography__component-secondary_iqnql {
59
59
  font-size: 14px;
60
60
  line-height: 18px;
61
61
  font-weight: 400;
62
- } .typography__caps_1v3aj {
62
+ } .typography__caps_iqnql {
63
63
  font-size: 12px;
64
64
  line-height: 16px;
65
65
  font-weight: 500;
66
66
  letter-spacing: 1.25px;
67
67
  text-transform: uppercase;
68
- } .typography__bold_1v3aj {
68
+ } .typography__bold_iqnql {
69
69
  font-weight: bold;
70
- } .typography__medium_1v3aj {
70
+ } .typography__medium_iqnql {
71
71
  font-weight: 500;
72
- } .typography__regular_1v3aj {
72
+ } .typography__regular_iqnql {
73
73
  font-weight: normal;
74
- } .typography__monospace_1v3aj {
74
+ } .typography__monospace_iqnql {
75
75
  font-variant-numeric: tabular-nums;
76
- } .typography__rowLimit1_1v3aj {
76
+ } .typography__rowLimit1_iqnql {
77
77
  -webkit-line-clamp: 1;
78
78
  display: -webkit-box;
79
79
  -webkit-box-orient: vertical;
80
80
  overflow: hidden;
81
81
  word-break: break-all;
82
- } .typography__rowLimit2_1v3aj {
82
+ } .typography__rowLimit2_iqnql {
83
83
  -webkit-line-clamp: 2;
84
84
  display: -webkit-box;
85
85
  -webkit-box-orient: vertical;
86
86
  overflow: hidden;
87
- } .typography__rowLimit3_1v3aj {
87
+ } .typography__rowLimit3_iqnql {
88
88
  -webkit-line-clamp: 3;
89
89
  display: -webkit-box;
90
90
  -webkit-box-orient: vertical;
package/esm/text/index.js CHANGED
@@ -6,4 +6,4 @@ import 'classnames';
6
6
  import '../hooks/useSkeleton.js';
7
7
  import '@alfalab/core-components-skeleton/esm';
8
8
  import '@alfalab/hooks';
9
- import '../colors.module-ca4c7711.js';
9
+ import '../colors.module-f70f33ad.js';
@@ -1,14 +1,14 @@
1
- /* hash: amyct */
2
- .typography__component_thq70 {
1
+ /* hash: 106br */
2
+ .typography__component_1tneh {
3
3
  margin: 0;
4
4
  padding: 0
5
5
  }
6
- .typography__component_thq70.typography__bold_thq70 {
6
+ .typography__component_1tneh.typography__bold_1tneh {
7
7
  font-weight: bold;
8
8
  }
9
- .typography__component_thq70.typography__medium_thq70 {
9
+ .typography__component_1tneh.typography__medium_1tneh {
10
10
  font-weight: 500;
11
11
  }
12
- .typography__component_thq70.typography__regular_thq70 {
12
+ .typography__component_1tneh.typography__regular_1tneh {
13
13
  font-weight: normal;
14
14
  }
@@ -3,7 +3,7 @@ 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/useSkeleton.js';
6
- import { c as colors } from '../colors.module-ca4c7711.js';
6
+ import { c as colors } from '../colors.module-f70f33ad.js';
7
7
  import '@alfalab/core-components-skeleton/esm';
8
8
  import '@alfalab/hooks';
9
9
 
@@ -1,4 +1,4 @@
1
- /* hash: 5mz29 */
1
+ /* hash: om1ge */
2
2
  :root {
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 */
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 */
@@ -20,78 +20,78 @@
20
20
  --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
21
21
  'Helvetica Neue', Helvetica, sans-serif;
22
22
  } :root {
23
- } .typography__styrene-xlarge_fy252 {
23
+ } .typography__styrene-xlarge_92ry3 {
24
24
  font-size: 48px;
25
25
  line-height: 64px;
26
26
  font-weight: 500;
27
27
  font-feature-settings: 'ss01';
28
28
  font-family: var(--font-family-styrene);
29
- } .typography__styrene-large_fy252 {
29
+ } .typography__styrene-large_92ry3 {
30
30
  font-size: 40px;
31
31
  line-height: 48px;
32
32
  font-weight: 500;
33
33
  font-feature-settings: 'ss01';
34
34
  font-family: var(--font-family-styrene);
35
- } .typography__styrene-medium_fy252 {
35
+ } .typography__styrene-medium_92ry3 {
36
36
  font-size: 32px;
37
37
  line-height: 40px;
38
38
  font-weight: 500;
39
39
  font-feature-settings: 'ss01';
40
40
  font-family: var(--font-family-styrene);
41
- } .typography__styrene-small_fy252 {
41
+ } .typography__styrene-small_92ry3 {
42
42
  font-size: 24px;
43
43
  line-height: 32px;
44
44
  font-weight: 500;
45
45
  font-feature-settings: 'ss01';
46
46
  font-family: var(--font-family-styrene);
47
- } .typography__styrene-xsmall_fy252 {
47
+ } .typography__styrene-xsmall_92ry3 {
48
48
  font-size: 20px;
49
49
  line-height: 24px;
50
50
  font-weight: 500;
51
51
  font-feature-settings: 'ss01';
52
52
  font-family: var(--font-family-styrene);
53
- } .typography__system-xlarge_fy252 {
53
+ } .typography__system-xlarge_92ry3 {
54
54
  font-size: 48px;
55
55
  line-height: 52px;
56
56
  font-weight: 700;
57
- } .typography__system-large_fy252 {
57
+ } .typography__system-large_92ry3 {
58
58
  font-size: 40px;
59
59
  line-height: 48px;
60
60
  font-weight: 700;
61
- } .typography__system-medium_fy252 {
61
+ } .typography__system-medium_92ry3 {
62
62
  font-size: 30px;
63
63
  line-height: 36px;
64
64
  font-weight: 700;
65
- } .typography__system-small_fy252 {
65
+ } .typography__system-small_92ry3 {
66
66
  font-size: 22px;
67
67
  line-height: 26px;
68
68
  font-weight: 700;
69
- } .typography__system-xsmall_fy252 {
69
+ } .typography__system-xsmall_92ry3 {
70
70
  font-size: 18px;
71
71
  line-height: 22px;
72
72
  font-weight: 700;
73
- } .typography__margins-xlarge_fy252 {
73
+ } .typography__margins-xlarge_92ry3 {
74
74
  margin: 0 0 var(--gap-xl);
75
- } .typography__margins-large_fy252 {
75
+ } .typography__margins-large_92ry3 {
76
76
  margin: var(--gap-4xl) 0 var(--gap-xl);
77
- } .typography__margins-medium_fy252 {
77
+ } .typography__margins-medium_92ry3 {
78
78
  margin: var(--gap-4xl) 0 var(--gap-xl);
79
- } .typography__margins-small_fy252 {
79
+ } .typography__margins-small_92ry3 {
80
80
  margin: var(--gap-3xl) 0 var(--gap-m);
81
- } .typography__margins-xsmall_fy252 {
81
+ } .typography__margins-xsmall_92ry3 {
82
82
  margin: var(--gap-3xl) 0 var(--gap-m);
83
- } .typography__rowLimit1_fy252 {
83
+ } .typography__rowLimit1_92ry3 {
84
84
  -webkit-line-clamp: 1;
85
85
  display: -webkit-box;
86
86
  -webkit-box-orient: vertical;
87
87
  overflow: hidden;
88
88
  word-break: break-all;
89
- } .typography__rowLimit2_fy252 {
89
+ } .typography__rowLimit2_92ry3 {
90
90
  -webkit-line-clamp: 2;
91
91
  display: -webkit-box;
92
92
  -webkit-box-orient: vertical;
93
93
  overflow: hidden;
94
- } .typography__rowLimit3_fy252 {
94
+ } .typography__rowLimit3_92ry3 {
95
95
  -webkit-line-clamp: 3;
96
96
  display: -webkit-box;
97
97
  -webkit-box-orient: vertical;
@@ -1,5 +1,19 @@
1
- import { FC } from 'react';
1
+ /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { TitleProps } from "./component";
3
- declare const Title: FC<TitleProps>;
4
+ declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
5
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
6
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
7
+ 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" | undefined;
8
+ weight?: "bold" | "regular" | "medium" | undefined;
9
+ font?: "styrene" | "system" | undefined;
10
+ defaultMargins?: boolean | undefined;
11
+ className?: string | undefined;
12
+ dataTestId?: string | undefined;
13
+ children?: React.ReactNode;
14
+ rowLimit?: 1 | 2 | 3 | undefined;
15
+ showSkeleton?: boolean | undefined;
16
+ skeletonProps?: import("../types").TextSkeletonProps | undefined;
17
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
4
18
  export { Title };
5
19
  export type { TitleProps };