@alfalab/core-components-typography 4.3.0 → 4.4.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 (99) hide show
  1. package/colors.css +20 -20
  2. package/colors.module-120e4dd7.js +6 -0
  3. package/common.module-4389487a.js +6 -0
  4. package/component.js +3 -3
  5. package/cssm/component.js +1 -1
  6. package/cssm/hooks/index.d.ts +1 -1
  7. package/cssm/hooks/index.js +2 -1
  8. package/cssm/hooks/{useSkeleton.js → use-skeleton.js} +3 -1
  9. package/cssm/hooks/use-skeleton.module.css +6 -0
  10. package/cssm/index.js +1 -1
  11. package/cssm/text/component.js +1 -1
  12. package/cssm/text/index.js +1 -1
  13. package/cssm/title/component.js +1 -1
  14. package/cssm/title/index.js +1 -1
  15. package/cssm/title-mobile/component.js +1 -1
  16. package/cssm/title-mobile/index.js +1 -1
  17. package/cssm/title-responsive/component.js +1 -1
  18. package/cssm/title-responsive/index.js +1 -1
  19. package/cssm/types.d.ts +8 -0
  20. package/esm/colors.css +20 -20
  21. package/esm/colors.module-3119b191.js +4 -0
  22. package/esm/common.module-ec992380.js +4 -0
  23. package/esm/component.js +3 -3
  24. package/esm/hooks/index.d.ts +1 -1
  25. package/esm/hooks/index.js +2 -1
  26. package/esm/hooks/use-skeleton.css +8 -2
  27. package/esm/hooks/{useSkeleton.js → use-skeleton.js} +3 -2
  28. package/esm/index.js +3 -3
  29. package/esm/text/component.js +3 -3
  30. package/esm/text/index.css +20 -20
  31. package/esm/text/index.js +2 -2
  32. package/esm/title/common.css +5 -5
  33. package/esm/title/component.js +2 -2
  34. package/esm/title/index.css +19 -19
  35. package/esm/title/index.js +4 -4
  36. package/esm/title-mobile/component.js +4 -4
  37. package/esm/title-mobile/index.css +11 -11
  38. package/esm/title-mobile/index.js +3 -3
  39. package/esm/title-responsive/component.js +4 -4
  40. package/esm/title-responsive/index.css +31 -31
  41. package/esm/title-responsive/index.js +3 -3
  42. package/esm/types.d.ts +8 -0
  43. package/hooks/index.d.ts +1 -1
  44. package/hooks/index.js +2 -1
  45. package/hooks/use-skeleton.css +8 -2
  46. package/hooks/{useSkeleton.js → use-skeleton.js} +4 -2
  47. package/index.js +3 -3
  48. package/modern/colors.css +20 -20
  49. package/modern/colors.module-93e1488b.js +4 -0
  50. package/modern/common.module-0bb3a173.js +4 -0
  51. package/modern/component.js +3 -3
  52. package/modern/hooks/index.d.ts +1 -1
  53. package/modern/hooks/index.js +2 -1
  54. package/modern/hooks/use-skeleton.css +8 -2
  55. package/modern/hooks/{useSkeleton.js → use-skeleton.js} +3 -2
  56. package/modern/index.js +3 -3
  57. package/modern/text/component.js +3 -3
  58. package/modern/text/index.css +20 -20
  59. package/modern/text/index.js +2 -2
  60. package/modern/title/common.css +5 -5
  61. package/modern/title/component.js +2 -2
  62. package/modern/title/index.css +19 -19
  63. package/modern/title/index.js +4 -4
  64. package/modern/title-mobile/component.js +4 -4
  65. package/modern/title-mobile/index.css +11 -11
  66. package/modern/title-mobile/index.js +3 -3
  67. package/modern/title-responsive/component.js +4 -4
  68. package/modern/title-responsive/index.css +31 -31
  69. package/modern/title-responsive/index.js +3 -3
  70. package/modern/types.d.ts +8 -0
  71. package/package.json +1 -1
  72. package/src/hooks/index.ts +1 -1
  73. package/src/hooks/use-skeleton.module.css +12 -0
  74. package/src/hooks/{useSkeleton.tsx → use-skeleton.tsx} +9 -1
  75. package/src/types.ts +10 -0
  76. package/text/component.js +3 -3
  77. package/text/index.css +20 -20
  78. package/text/index.js +2 -2
  79. package/title/common.css +5 -5
  80. package/title/component.js +2 -2
  81. package/title/index.css +19 -19
  82. package/title/index.js +4 -4
  83. package/title-mobile/component.js +4 -4
  84. package/title-mobile/index.css +11 -11
  85. package/title-mobile/index.js +3 -3
  86. package/title-responsive/component.js +4 -4
  87. package/title-responsive/index.css +31 -31
  88. package/title-responsive/index.js +3 -3
  89. package/types.d.ts +8 -0
  90. package/colors.module-67e5bcbb.js +0 -6
  91. package/common.module-e30c567d.js +0 -6
  92. package/esm/colors.module-f70f33ad.js +0 -4
  93. package/esm/common.module-a6e9f838.js +0 -4
  94. package/modern/colors.module-95caa60d.js +0 -4
  95. package/modern/common.module-592df4cb.js +0 -4
  96. /package/cssm/hooks/{useSkeleton.d.ts → use-skeleton.d.ts} +0 -0
  97. /package/esm/hooks/{useSkeleton.d.ts → use-skeleton.d.ts} +0 -0
  98. /package/hooks/{useSkeleton.d.ts → use-skeleton.d.ts} +0 -0
  99. /package/modern/hooks/{useSkeleton.d.ts → use-skeleton.d.ts} +0 -0
package/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ockmg */
1
+ /* hash: 1l8lq */
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_dnyuu {
36
+ } /* colors */ .typography__tertiary_y12u3 {
37
37
  color: var(--color-light-text-tertiary);
38
- } .typography__disabled_dnyuu {
38
+ } .typography__disabled_y12u3 {
39
39
  color: var(--color-light-text-disabled);
40
- } .typography__accent_dnyuu {
40
+ } .typography__accent_y12u3 {
41
41
  color: var(--color-light-text-accent);
42
- } .typography__primary_dnyuu {
42
+ } .typography__primary_y12u3 {
43
43
  color: var(--color-light-text-primary);
44
- } .typography__attention_dnyuu {
44
+ } .typography__attention_y12u3 {
45
45
  color: var(--color-light-text-attention);
46
- } .typography__positive_dnyuu {
46
+ } .typography__positive_y12u3 {
47
47
  color: var(--color-light-text-positive);
48
- } .typography__secondary_dnyuu {
48
+ } .typography__secondary_y12u3 {
49
49
  color: var(--color-light-text-secondary);
50
- } .typography__tertiary-inverted_dnyuu {
50
+ } .typography__tertiary-inverted_y12u3 {
51
51
  color: var(--color-light-text-tertiary-inverted);
52
- } .typography__primary-inverted_dnyuu {
52
+ } .typography__primary-inverted_y12u3 {
53
53
  color: var(--color-light-text-primary-inverted);
54
- } .typography__secondary-inverted_dnyuu {
54
+ } .typography__secondary-inverted_y12u3 {
55
55
  color: var(--color-light-text-secondary-inverted);
56
- } .typography__link_dnyuu {
56
+ } .typography__link_y12u3 {
57
57
  color: var(--color-light-text-link);
58
- } .typography__negative_dnyuu {
58
+ } .typography__negative_y12u3 {
59
59
  color: var(--color-light-text-negative);
60
- } .typography__static-primary-light_dnyuu {
60
+ } .typography__static-primary-light_y12u3 {
61
61
  color: var(--color-static-text-primary-light);
62
- } .typography__static-secondary-light_dnyuu {
62
+ } .typography__static-secondary-light_y12u3 {
63
63
  color: var(--color-static-text-secondary-light);
64
- } .typography__static-tertiary-light_dnyuu {
64
+ } .typography__static-tertiary-light_y12u3 {
65
65
  color: var(--color-static-text-tertiary-light);
66
- } .typography__static-primary-dark_dnyuu {
66
+ } .typography__static-primary-dark_y12u3 {
67
67
  color: var(--color-static-text-primary-dark);
68
- } .typography__static-secondary-dark_dnyuu {
68
+ } .typography__static-secondary-dark_y12u3 {
69
69
  color: var(--color-static-text-secondary-dark);
70
- } .typography__static-tertiary-dark_dnyuu {
70
+ } .typography__static-tertiary-dark_y12u3 {
71
71
  color: var(--color-static-text-tertiary-dark);
72
- } .typography__static-accent_dnyuu {
72
+ } .typography__static-accent_y12u3 {
73
73
  color: var(--color-static-text-accent);
74
74
  }
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var colors = {"tertiary":"typography__tertiary_y12u3","disabled":"typography__disabled_y12u3","accent":"typography__accent_y12u3","primary":"typography__primary_y12u3","attention":"typography__attention_y12u3","positive":"typography__positive_y12u3","secondary":"typography__secondary_y12u3","tertiary-inverted":"typography__tertiary-inverted_y12u3","primary-inverted":"typography__primary-inverted_y12u3","secondary-inverted":"typography__secondary-inverted_y12u3","link":"typography__link_y12u3","negative":"typography__negative_y12u3","static-primary-light":"typography__static-primary-light_y12u3","static-secondary-light":"typography__static-secondary-light_y12u3","static-tertiary-light":"typography__static-tertiary-light_y12u3","static-primary-dark":"typography__static-primary-dark_y12u3","static-secondary-dark":"typography__static-secondary-dark_y12u3","static-tertiary-dark":"typography__static-tertiary-dark_y12u3","static-accent":"typography__static-accent_y12u3"};
4
+ require('./colors.css')
5
+
6
+ exports.colors = colors;
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var commonStyles = {"component":"typography__component_vlv7e","bold":"typography__bold_vlv7e","medium":"typography__medium_vlv7e","regular":"typography__regular_vlv7e"};
4
+ require('./title/common.css')
5
+
6
+ exports.commonStyles = commonStyles;
package/component.js CHANGED
@@ -10,12 +10,12 @@ require('tslib');
10
10
  require('react');
11
11
  require('react-merge-refs');
12
12
  require('classnames');
13
- require('./hooks/useSkeleton.js');
13
+ require('./hooks/use-skeleton.js');
14
14
  require('@alfalab/core-components-skeleton');
15
15
  require('@alfalab/hooks');
16
- require('./colors.module-67e5bcbb.js');
16
+ require('./colors.module-120e4dd7.js');
17
17
  require('./title/component.js');
18
- require('./common.module-e30c567d.js');
18
+ require('./common.module-4389487a.js');
19
19
 
20
20
  var Typography = {
21
21
  Title: title_index.Title,
package/cssm/component.js CHANGED
@@ -10,7 +10,7 @@ require('tslib');
10
10
  require('react');
11
11
  require('react-merge-refs');
12
12
  require('classnames');
13
- require('./hooks/useSkeleton.js');
13
+ require('./hooks/use-skeleton.js');
14
14
  require('@alfalab/core-components-skeleton/cssm');
15
15
  require('@alfalab/hooks');
16
16
  require('./hooks/use-skeleton.module.css');
@@ -1 +1 @@
1
- export * from "./useSkeleton";
1
+ export * from "./use-skeleton";
@@ -2,9 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var hooks_useSkeleton = require('./useSkeleton.js');
5
+ var hooks_useSkeleton = require('./use-skeleton.js');
6
6
  require('tslib');
7
7
  require('react');
8
+ require('classnames');
8
9
  require('@alfalab/core-components-skeleton/cssm');
9
10
  require('@alfalab/hooks');
10
11
  require('./use-skeleton.module.css');
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib = require('tslib');
6
6
  var React = require('react');
7
+ var cn = require('classnames');
7
8
  var coreComponentsSkeleton = require('@alfalab/core-components-skeleton/cssm');
8
9
  var hooks = require('@alfalab/hooks');
9
10
  var styles = require('./use-skeleton.module.css');
@@ -11,6 +12,7 @@ var styles = require('./use-skeleton.module.css');
11
12
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
12
13
 
13
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
+ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
14
16
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
15
17
 
16
18
  function useSkeleton(showSkeleton, skeletonProps) {
@@ -40,7 +42,7 @@ function useSkeleton(showSkeleton, skeletonProps) {
40
42
  }, [showSkeleton, skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.rows]);
41
43
  var renderSkeleton = function (props) {
42
44
  if (showSkeleton && skeletonParams) {
43
- return (React__default.default.createElement("div", { className: props.wrapperClassName, "data-test-id": props.dataTestId }, tslib.__spreadArray([], Array(skeletonParams.rows), true).map(function (_, idx) {
45
+ return (React__default.default.createElement("div", { className: cn__default.default(skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.wrapperClassName, props.wrapperClassName, (skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.align) && styles__default.default[skeletonProps.align]), "data-test-id": props.dataTestId }, tslib.__spreadArray([], Array(skeletonParams.rows), true).map(function (_, idx) {
44
46
  var width = Array.isArray(skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.width)
45
47
  ? skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.width[idx]
46
48
  : skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.width;
@@ -16,4 +16,10 @@
16
16
  } :root {
17
17
  } .skeletonText.skeletonText {
18
18
  border-radius: var(--border-radius-pill);
19
+ } .left > div {
20
+ margin-right: auto;
21
+ } .center > div {
22
+ margin: 0 auto;
23
+ } .right > div {
24
+ margin-left: auto;
19
25
  }
package/cssm/index.js CHANGED
@@ -9,7 +9,7 @@ require('tslib');
9
9
  require('react');
10
10
  require('react-merge-refs');
11
11
  require('classnames');
12
- require('./hooks/useSkeleton.js');
12
+ require('./hooks/use-skeleton.js');
13
13
  require('@alfalab/core-components-skeleton/cssm');
14
14
  require('@alfalab/hooks');
15
15
  require('./hooks/use-skeleton.module.css');
@@ -6,7 +6,7 @@ var tslib = require('tslib');
6
6
  var React = require('react');
7
7
  var mergeRefs = require('react-merge-refs');
8
8
  var cn = require('classnames');
9
- var hooks_useSkeleton = require('../hooks/useSkeleton.js');
9
+ var hooks_useSkeleton = require('../hooks/use-skeleton.js');
10
10
  var colors = require('../colors.module.css');
11
11
  var styles = require('./index.module.css');
12
12
  require('@alfalab/core-components-skeleton/cssm');
@@ -7,7 +7,7 @@ require('tslib');
7
7
  require('react');
8
8
  require('react-merge-refs');
9
9
  require('classnames');
10
- require('../hooks/useSkeleton.js');
10
+ require('../hooks/use-skeleton.js');
11
11
  require('@alfalab/core-components-skeleton/cssm');
12
12
  require('@alfalab/hooks');
13
13
  require('../hooks/use-skeleton.module.css');
@@ -6,7 +6,7 @@ var tslib = require('tslib');
6
6
  var React = require('react');
7
7
  var mergeRefs = require('react-merge-refs');
8
8
  var cn = require('classnames');
9
- var hooks_useSkeleton = require('../hooks/useSkeleton.js');
9
+ var hooks_useSkeleton = require('../hooks/use-skeleton.js');
10
10
  var colors = require('../colors.module.css');
11
11
  require('@alfalab/core-components-skeleton/cssm');
12
12
  require('@alfalab/hooks');
@@ -9,7 +9,7 @@ var commonStyles = require('./common.module.css');
9
9
  var styles = require('./index.module.css');
10
10
  require('react-merge-refs');
11
11
  require('classnames');
12
- require('../hooks/useSkeleton.js');
12
+ require('../hooks/use-skeleton.js');
13
13
  require('@alfalab/core-components-skeleton/cssm');
14
14
  require('@alfalab/hooks');
15
15
  require('../hooks/use-skeleton.module.css');
@@ -9,7 +9,7 @@ var commonStyles = require('../title/common.module.css');
9
9
  var styles = require('./index.module.css');
10
10
  require('react-merge-refs');
11
11
  require('classnames');
12
- require('../hooks/useSkeleton.js');
12
+ require('../hooks/use-skeleton.js');
13
13
  require('@alfalab/core-components-skeleton/cssm');
14
14
  require('@alfalab/hooks');
15
15
  require('../hooks/use-skeleton.module.css');
@@ -8,7 +8,7 @@ require('react');
8
8
  require('../title/component.js');
9
9
  require('react-merge-refs');
10
10
  require('classnames');
11
- require('../hooks/useSkeleton.js');
11
+ require('../hooks/use-skeleton.js');
12
12
  require('@alfalab/core-components-skeleton/cssm');
13
13
  require('@alfalab/hooks');
14
14
  require('../hooks/use-skeleton.module.css');
@@ -9,7 +9,7 @@ var commonStyles = require('../title/common.module.css');
9
9
  var styles = require('./index.module.css');
10
10
  require('react-merge-refs');
11
11
  require('classnames');
12
- require('../hooks/useSkeleton.js');
12
+ require('../hooks/use-skeleton.js');
13
13
  require('@alfalab/core-components-skeleton/cssm');
14
14
  require('@alfalab/hooks');
15
15
  require('../hooks/use-skeleton.module.css');
@@ -8,7 +8,7 @@ require('react');
8
8
  require('../title/component.js');
9
9
  require('react-merge-refs');
10
10
  require('classnames');
11
- require('../hooks/useSkeleton.js');
11
+ require('../hooks/use-skeleton.js');
12
12
  require('@alfalab/core-components-skeleton/cssm');
13
13
  require('@alfalab/hooks');
14
14
  require('../hooks/use-skeleton.module.css');
package/cssm/types.d.ts CHANGED
@@ -9,5 +9,13 @@ type TextSkeletonProps = {
9
9
  * Ширина строки
10
10
  */
11
11
  width?: WidthUnit | WidthUnit[];
12
+ /**
13
+ * Выравнивание элементов по горизонтали
14
+ */
15
+ align?: 'left' | 'center' | 'right';
16
+ /**
17
+ * Класс для обертки скелетона
18
+ */
19
+ wrapperClassName?: string;
12
20
  };
13
21
  export { TextElementType, TextSkeletonProps };
package/esm/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ockmg */
1
+ /* hash: 1l8lq */
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_dnyuu {
36
+ } /* colors */ .typography__tertiary_y12u3 {
37
37
  color: var(--color-light-text-tertiary);
38
- } .typography__disabled_dnyuu {
38
+ } .typography__disabled_y12u3 {
39
39
  color: var(--color-light-text-disabled);
40
- } .typography__accent_dnyuu {
40
+ } .typography__accent_y12u3 {
41
41
  color: var(--color-light-text-accent);
42
- } .typography__primary_dnyuu {
42
+ } .typography__primary_y12u3 {
43
43
  color: var(--color-light-text-primary);
44
- } .typography__attention_dnyuu {
44
+ } .typography__attention_y12u3 {
45
45
  color: var(--color-light-text-attention);
46
- } .typography__positive_dnyuu {
46
+ } .typography__positive_y12u3 {
47
47
  color: var(--color-light-text-positive);
48
- } .typography__secondary_dnyuu {
48
+ } .typography__secondary_y12u3 {
49
49
  color: var(--color-light-text-secondary);
50
- } .typography__tertiary-inverted_dnyuu {
50
+ } .typography__tertiary-inverted_y12u3 {
51
51
  color: var(--color-light-text-tertiary-inverted);
52
- } .typography__primary-inverted_dnyuu {
52
+ } .typography__primary-inverted_y12u3 {
53
53
  color: var(--color-light-text-primary-inverted);
54
- } .typography__secondary-inverted_dnyuu {
54
+ } .typography__secondary-inverted_y12u3 {
55
55
  color: var(--color-light-text-secondary-inverted);
56
- } .typography__link_dnyuu {
56
+ } .typography__link_y12u3 {
57
57
  color: var(--color-light-text-link);
58
- } .typography__negative_dnyuu {
58
+ } .typography__negative_y12u3 {
59
59
  color: var(--color-light-text-negative);
60
- } .typography__static-primary-light_dnyuu {
60
+ } .typography__static-primary-light_y12u3 {
61
61
  color: var(--color-static-text-primary-light);
62
- } .typography__static-secondary-light_dnyuu {
62
+ } .typography__static-secondary-light_y12u3 {
63
63
  color: var(--color-static-text-secondary-light);
64
- } .typography__static-tertiary-light_dnyuu {
64
+ } .typography__static-tertiary-light_y12u3 {
65
65
  color: var(--color-static-text-tertiary-light);
66
- } .typography__static-primary-dark_dnyuu {
66
+ } .typography__static-primary-dark_y12u3 {
67
67
  color: var(--color-static-text-primary-dark);
68
- } .typography__static-secondary-dark_dnyuu {
68
+ } .typography__static-secondary-dark_y12u3 {
69
69
  color: var(--color-static-text-secondary-dark);
70
- } .typography__static-tertiary-dark_dnyuu {
70
+ } .typography__static-tertiary-dark_y12u3 {
71
71
  color: var(--color-static-text-tertiary-dark);
72
- } .typography__static-accent_dnyuu {
72
+ } .typography__static-accent_y12u3 {
73
73
  color: var(--color-static-text-accent);
74
74
  }
@@ -0,0 +1,4 @@
1
+ var colors = {"tertiary":"typography__tertiary_y12u3","disabled":"typography__disabled_y12u3","accent":"typography__accent_y12u3","primary":"typography__primary_y12u3","attention":"typography__attention_y12u3","positive":"typography__positive_y12u3","secondary":"typography__secondary_y12u3","tertiary-inverted":"typography__tertiary-inverted_y12u3","primary-inverted":"typography__primary-inverted_y12u3","secondary-inverted":"typography__secondary-inverted_y12u3","link":"typography__link_y12u3","negative":"typography__negative_y12u3","static-primary-light":"typography__static-primary-light_y12u3","static-secondary-light":"typography__static-secondary-light_y12u3","static-tertiary-light":"typography__static-tertiary-light_y12u3","static-primary-dark":"typography__static-primary-dark_y12u3","static-secondary-dark":"typography__static-secondary-dark_y12u3","static-tertiary-dark":"typography__static-tertiary-dark_y12u3","static-accent":"typography__static-accent_y12u3"};
2
+ require('./colors.css')
3
+
4
+ export { colors as c };
@@ -0,0 +1,4 @@
1
+ var commonStyles = {"component":"typography__component_vlv7e","bold":"typography__bold_vlv7e","medium":"typography__medium_vlv7e","regular":"typography__regular_vlv7e"};
2
+ require('./title/common.css')
3
+
4
+ export { commonStyles as c };
package/esm/component.js CHANGED
@@ -6,12 +6,12 @@ import 'tslib';
6
6
  import 'react';
7
7
  import 'react-merge-refs';
8
8
  import 'classnames';
9
- import './hooks/useSkeleton.js';
9
+ import './hooks/use-skeleton.js';
10
10
  import '@alfalab/core-components-skeleton/esm';
11
11
  import '@alfalab/hooks';
12
- import './colors.module-f70f33ad.js';
12
+ import './colors.module-3119b191.js';
13
13
  import './title/component.js';
14
- import './common.module-a6e9f838.js';
14
+ import './common.module-ec992380.js';
15
15
 
16
16
  var Typography = {
17
17
  Title: Title,
@@ -1 +1 @@
1
- export * from "./useSkeleton";
1
+ export * from "./use-skeleton";
@@ -1,5 +1,6 @@
1
- export { useSkeleton } from './useSkeleton.js';
1
+ export { useSkeleton } from './use-skeleton.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
+ import 'classnames';
4
5
  import '@alfalab/core-components-skeleton/esm';
5
6
  import '@alfalab/hooks';
@@ -1,4 +1,4 @@
1
- /* hash: 1nrh7 */
1
+ /* hash: xr1vg */
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,12 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .typography__skeletonText_ukqqr.typography__skeletonText_ukqqr {
18
+ } .typography__skeletonText_1d750.typography__skeletonText_1d750 {
19
19
  border-radius: var(--border-radius-pill);
20
+ } .typography__left_1d750 > div {
21
+ margin-right: auto;
22
+ } .typography__center_1d750 > div {
23
+ margin: 0 auto;
24
+ } .typography__right_1d750 > div {
25
+ margin-left: auto;
20
26
  }
@@ -1,9 +1,10 @@
1
1
  import { __spreadArray } from 'tslib';
2
2
  import React, { useState, useRef } from 'react';
3
+ import cn from 'classnames';
3
4
  import { Skeleton } from '@alfalab/core-components-skeleton/esm';
4
5
  import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
5
6
 
6
- var styles = {"skeletonText":"typography__skeletonText_ukqqr"};
7
+ var styles = {"skeletonText":"typography__skeletonText_1d750","left":"typography__left_1d750","center":"typography__center_1d750","right":"typography__right_1d750"};
7
8
  require('./use-skeleton.css')
8
9
 
9
10
  function useSkeleton(showSkeleton, skeletonProps) {
@@ -33,7 +34,7 @@ function useSkeleton(showSkeleton, skeletonProps) {
33
34
  }, [showSkeleton, skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.rows]);
34
35
  var renderSkeleton = function (props) {
35
36
  if (showSkeleton && skeletonParams) {
36
- return (React.createElement("div", { className: props.wrapperClassName, "data-test-id": props.dataTestId }, __spreadArray([], Array(skeletonParams.rows), true).map(function (_, idx) {
37
+ return (React.createElement("div", { className: cn(skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.wrapperClassName, props.wrapperClassName, (skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.align) && styles[skeletonProps.align]), "data-test-id": props.dataTestId }, __spreadArray([], Array(skeletonParams.rows), true).map(function (_, idx) {
37
38
  var width = Array.isArray(skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.width)
38
39
  ? skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.width[idx]
39
40
  : skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.width;
package/esm/index.js CHANGED
@@ -5,12 +5,12 @@ import 'tslib';
5
5
  import 'react';
6
6
  import 'react-merge-refs';
7
7
  import 'classnames';
8
- import './hooks/useSkeleton.js';
8
+ import './hooks/use-skeleton.js';
9
9
  import '@alfalab/core-components-skeleton/esm';
10
10
  import '@alfalab/hooks';
11
- import './colors.module-f70f33ad.js';
11
+ import './colors.module-3119b191.js';
12
12
  import './title/index.js';
13
13
  import './title/component.js';
14
- import './common.module-a6e9f838.js';
14
+ import './common.module-ec992380.js';
15
15
  import './title-mobile/component.js';
16
16
  import './title-responsive/component.js';
@@ -2,12 +2,12 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
- import { useSkeleton } from '../hooks/useSkeleton.js';
6
- import { c as colors } from '../colors.module-f70f33ad.js';
5
+ import { useSkeleton } from '../hooks/use-skeleton.js';
6
+ import { c as colors } from '../colors.module-3119b191.js';
7
7
  import '@alfalab/core-components-skeleton/esm';
8
8
  import '@alfalab/hooks';
9
9
 
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"};
10
+ var styles = {"paragraph":"typography__paragraph_10zie","paragraphWithMargins":"typography__paragraphWithMargins_10zie","primary-large":"typography__primary-large_10zie","primary-medium":"typography__primary-medium_10zie","primary-small":"typography__primary-small_10zie","secondary-large":"typography__secondary-large_10zie","secondary-medium":"typography__secondary-medium_10zie","secondary-small":"typography__secondary-small_10zie","component":"typography__component_10zie","component-primary":"typography__component-primary_10zie","component-secondary":"typography__component-secondary_10zie","caps":"typography__caps_10zie","bold":"typography__bold_10zie","medium":"typography__medium_10zie","regular":"typography__regular_10zie","monospace":"typography__monospace_10zie","rowLimit1":"typography__rowLimit1_10zie","rowLimit2":"typography__rowLimit2_10zie","rowLimit3":"typography__rowLimit3_10zie"};
11
11
  require('./index.css')
12
12
 
13
13
  var logWarning = function (view) {
@@ -1,4 +1,4 @@
1
- /* hash: x5nv1 */
1
+ /* hash: 19d1r */
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_iqnql {
20
+ } .typography__paragraph_10zie {
21
21
  margin: 0;
22
22
  padding: 0;
23
- } .typography__paragraphWithMargins_iqnql {
23
+ } .typography__paragraphWithMargins_10zie {
24
24
  padding: 0;
25
25
  margin: var(--text-paragraph-margin-bottom);
26
- } .typography__primary-large_iqnql {
26
+ } .typography__primary-large_10zie {
27
27
  font-size: 18px;
28
28
  line-height: 24px;
29
29
  font-weight: 400;
30
- } .typography__primary-medium_iqnql {
30
+ } .typography__primary-medium_10zie {
31
31
  font-size: 16px;
32
32
  line-height: 24px;
33
33
  font-weight: 400;
34
- } .typography__primary-small_iqnql {
34
+ } .typography__primary-small_10zie {
35
35
  font-size: 14px;
36
36
  line-height: 20px;
37
37
  font-weight: 400;
38
- } .typography__secondary-large_iqnql {
38
+ } .typography__secondary-large_10zie {
39
39
  font-size: 13px;
40
40
  line-height: 16px;
41
41
  font-weight: 400;
42
- } .typography__secondary-medium_iqnql {
42
+ } .typography__secondary-medium_10zie {
43
43
  font-size: 12px;
44
44
  line-height: 16px;
45
45
  font-weight: 400;
46
- } .typography__secondary-small_iqnql {
46
+ } .typography__secondary-small_10zie {
47
47
  font-size: 11px;
48
48
  line-height: 16px;
49
49
  font-weight: 400;
50
- } .typography__component_iqnql {
50
+ } .typography__component_10zie {
51
51
  font-size: 16px;
52
52
  line-height: 20px;
53
53
  font-weight: 400;
54
- } .typography__component-primary_iqnql {
54
+ } .typography__component-primary_10zie {
55
55
  font-size: 16px;
56
56
  line-height: 20px;
57
57
  font-weight: 400;
58
- } .typography__component-secondary_iqnql {
58
+ } .typography__component-secondary_10zie {
59
59
  font-size: 14px;
60
60
  line-height: 18px;
61
61
  font-weight: 400;
62
- } .typography__caps_iqnql {
62
+ } .typography__caps_10zie {
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_iqnql {
68
+ } .typography__bold_10zie {
69
69
  font-weight: bold;
70
- } .typography__medium_iqnql {
70
+ } .typography__medium_10zie {
71
71
  font-weight: 500;
72
- } .typography__regular_iqnql {
72
+ } .typography__regular_10zie {
73
73
  font-weight: normal;
74
- } .typography__monospace_iqnql {
74
+ } .typography__monospace_10zie {
75
75
  font-variant-numeric: tabular-nums;
76
- } .typography__rowLimit1_iqnql {
76
+ } .typography__rowLimit1_10zie {
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_iqnql {
82
+ } .typography__rowLimit2_10zie {
83
83
  -webkit-line-clamp: 2;
84
84
  display: -webkit-box;
85
85
  -webkit-box-orient: vertical;
86
86
  overflow: hidden;
87
- } .typography__rowLimit3_iqnql {
87
+ } .typography__rowLimit3_10zie {
88
88
  -webkit-line-clamp: 3;
89
89
  display: -webkit-box;
90
90
  -webkit-box-orient: vertical;
package/esm/text/index.js CHANGED
@@ -3,7 +3,7 @@ import 'tslib';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
5
5
  import 'classnames';
6
- import '../hooks/useSkeleton.js';
6
+ import '../hooks/use-skeleton.js';
7
7
  import '@alfalab/core-components-skeleton/esm';
8
8
  import '@alfalab/hooks';
9
- import '../colors.module-f70f33ad.js';
9
+ import '../colors.module-3119b191.js';
@@ -1,14 +1,14 @@
1
- /* hash: 106br */
2
- .typography__component_1tneh {
1
+ /* hash: 1cdpn */
2
+ .typography__component_vlv7e {
3
3
  margin: 0;
4
4
  padding: 0
5
5
  }
6
- .typography__component_1tneh.typography__bold_1tneh {
6
+ .typography__component_vlv7e.typography__bold_vlv7e {
7
7
  font-weight: bold;
8
8
  }
9
- .typography__component_1tneh.typography__medium_1tneh {
9
+ .typography__component_vlv7e.typography__medium_vlv7e {
10
10
  font-weight: 500;
11
11
  }
12
- .typography__component_1tneh.typography__regular_1tneh {
12
+ .typography__component_vlv7e.typography__regular_vlv7e {
13
13
  font-weight: normal;
14
14
  }
@@ -2,8 +2,8 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
- import { useSkeleton } from '../hooks/useSkeleton.js';
6
- import { c as colors } from '../colors.module-f70f33ad.js';
5
+ import { useSkeleton } from '../hooks/use-skeleton.js';
6
+ import { c as colors } from '../colors.module-3119b191.js';
7
7
  import '@alfalab/core-components-skeleton/esm';
8
8
  import '@alfalab/hooks';
9
9