@alfalab/core-components-select 15.0.2 → 15.0.3

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 (148) hide show
  1. package/Component.mobile-f1f15074.d.ts +29 -12
  2. package/Component.mobile.js +1 -1
  3. package/Component.modal.mobile.js +1 -1
  4. package/Component.responsive.js +1 -1
  5. package/components/arrow/Component.js +1 -1
  6. package/components/arrow/index.css +3 -3
  7. package/components/base-checkmark/Component.js +1 -1
  8. package/components/base-checkmark/index.css +4 -4
  9. package/components/base-option/Component.js +1 -1
  10. package/components/base-option/index.css +13 -13
  11. package/components/base-select/Component.js +1 -1
  12. package/components/base-select/index.css +8 -8
  13. package/components/base-select-mobile/Component.js +1 -1
  14. package/components/base-select-mobile/footer/Component.js +1 -1
  15. package/components/base-select-mobile/footer/index.css +5 -5
  16. package/components/base-select-mobile/index.css +11 -11
  17. package/components/checkmark/Component.js +1 -1
  18. package/components/checkmark/index.css +10 -10
  19. package/components/checkmark-mobile/Component.js +1 -1
  20. package/components/checkmark-mobile/index.css +6 -6
  21. package/components/field/Component.js +1 -1
  22. package/components/field/index.css +12 -12
  23. package/components/optgroup/Component.js +1 -1
  24. package/components/optgroup/index.css +6 -6
  25. package/components/option/Component.js +1 -1
  26. package/components/option/index.css +20 -20
  27. package/components/options-list/Component.js +1 -1
  28. package/components/options-list/index.css +9 -9
  29. package/components/virtual-options-list/Component.js +1 -1
  30. package/components/virtual-options-list/index.css +15 -15
  31. package/cssm/Component.mobile-f1f15074.d.ts +18 -1
  32. package/cssm/types-1b036d4b.d.ts +13 -0
  33. package/cssm/useSkeleton-1b036d4b.d.ts +12 -0
  34. package/esm/Component.mobile-f1f15074.d.ts +18 -1
  35. package/esm/Component.mobile.js +1 -1
  36. package/esm/Component.modal.mobile.js +1 -1
  37. package/esm/Component.responsive.js +1 -1
  38. package/esm/components/arrow/Component.js +1 -1
  39. package/esm/components/arrow/index.css +3 -3
  40. package/esm/components/base-checkmark/Component.js +1 -1
  41. package/esm/components/base-checkmark/index.css +4 -4
  42. package/esm/components/base-option/Component.js +1 -1
  43. package/esm/components/base-option/index.css +13 -13
  44. package/esm/components/base-select/Component.js +1 -1
  45. package/esm/components/base-select/index.css +8 -8
  46. package/esm/components/base-select-mobile/Component.js +1 -1
  47. package/esm/components/base-select-mobile/footer/Component.js +1 -1
  48. package/esm/components/base-select-mobile/footer/index.css +5 -5
  49. package/esm/components/base-select-mobile/index.css +11 -11
  50. package/esm/components/checkmark/Component.js +1 -1
  51. package/esm/components/checkmark/index.css +10 -10
  52. package/esm/components/checkmark-mobile/Component.js +1 -1
  53. package/esm/components/checkmark-mobile/index.css +6 -6
  54. package/esm/components/field/Component.js +1 -1
  55. package/esm/components/field/index.css +12 -12
  56. package/esm/components/optgroup/Component.js +1 -1
  57. package/esm/components/optgroup/index.css +6 -6
  58. package/esm/components/option/Component.js +1 -1
  59. package/esm/components/option/index.css +20 -20
  60. package/esm/components/options-list/Component.js +1 -1
  61. package/esm/components/options-list/index.css +9 -9
  62. package/esm/components/virtual-options-list/Component.js +1 -1
  63. package/esm/components/virtual-options-list/index.css +15 -15
  64. package/esm/index.js +1 -1
  65. package/esm/mobile.js +1 -1
  66. package/esm/presets/index.js +1 -1
  67. package/esm/presets/useSelectWithApply/hook.js +1 -1
  68. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  69. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  70. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  71. package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  72. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  73. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  74. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  75. package/esm/presets/useSelectWithLoading/hook.js +1 -1
  76. package/esm/presets/useSelectWithLoading/index.css +2 -2
  77. package/esm/shared.js +1 -1
  78. package/esm/types-1b036d4b.d.ts +13 -0
  79. package/esm/useSkeleton-1b036d4b.d.ts +12 -0
  80. package/index.js +1 -1
  81. package/mobile.js +1 -1
  82. package/modern/Component.mobile-f1f15074.d.ts +18 -1
  83. package/modern/Component.mobile.js +1 -1
  84. package/modern/Component.modal.mobile.js +1 -1
  85. package/modern/Component.responsive.js +1 -1
  86. package/modern/components/arrow/Component.js +1 -1
  87. package/modern/components/arrow/index.css +3 -3
  88. package/modern/components/base-checkmark/Component.js +1 -1
  89. package/modern/components/base-checkmark/index.css +4 -4
  90. package/modern/components/base-option/Component.js +1 -1
  91. package/modern/components/base-option/index.css +13 -13
  92. package/modern/components/base-select/Component.js +1 -1
  93. package/modern/components/base-select/index.css +8 -8
  94. package/modern/components/base-select-mobile/Component.js +1 -1
  95. package/modern/components/base-select-mobile/footer/Component.js +1 -1
  96. package/modern/components/base-select-mobile/footer/index.css +5 -5
  97. package/modern/components/base-select-mobile/index.css +11 -11
  98. package/modern/components/checkmark/Component.js +1 -1
  99. package/modern/components/checkmark/index.css +10 -10
  100. package/modern/components/checkmark-mobile/Component.js +1 -1
  101. package/modern/components/checkmark-mobile/index.css +6 -6
  102. package/modern/components/field/Component.js +1 -1
  103. package/modern/components/field/index.css +12 -12
  104. package/modern/components/optgroup/Component.js +1 -1
  105. package/modern/components/optgroup/index.css +6 -6
  106. package/modern/components/option/Component.js +1 -1
  107. package/modern/components/option/index.css +20 -20
  108. package/modern/components/options-list/Component.js +1 -1
  109. package/modern/components/options-list/index.css +9 -9
  110. package/modern/components/virtual-options-list/Component.js +1 -1
  111. package/modern/components/virtual-options-list/index.css +15 -15
  112. package/modern/index.js +1 -1
  113. package/modern/mobile.js +1 -1
  114. package/modern/presets/index.js +1 -1
  115. package/modern/presets/useSelectWithApply/hook.js +1 -1
  116. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  117. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  118. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  119. package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  120. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  121. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  122. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  123. package/modern/presets/useSelectWithLoading/hook.js +1 -1
  124. package/modern/presets/useSelectWithLoading/index.css +2 -2
  125. package/modern/shared.js +1 -1
  126. package/modern/types-1b036d4b.d.ts +13 -0
  127. package/modern/useSkeleton-1b036d4b.d.ts +12 -0
  128. package/package.json +3 -3
  129. package/presets/index.js +1 -1
  130. package/presets/useSelectWithApply/hook.js +1 -1
  131. package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  132. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  133. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  134. package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  135. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  136. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  137. package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  138. package/presets/useSelectWithLoading/hook.js +1 -1
  139. package/presets/useSelectWithLoading/index.css +2 -2
  140. package/shared.js +1 -1
  141. package/types-1b036d4b.d.ts +13 -0
  142. package/useSkeleton-1b036d4b.d.ts +12 -0
  143. /package/esm/{hook-0fd92266.d.ts → hook-d40b4e10.d.ts} +0 -0
  144. /package/esm/{hook-0fd92266.js → hook-d40b4e10.js} +0 -0
  145. /package/{hook-c3ee8e85.d.ts → hook-43a35a80.d.ts} +0 -0
  146. /package/{hook-c3ee8e85.js → hook-43a35a80.js} +0 -0
  147. /package/modern/{hook-607b8786.d.ts → hook-d771f2ed.d.ts} +0 -0
  148. /package/modern/{hook-607b8786.js → hook-d771f2ed.js} +0 -0
@@ -17,7 +17,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
17
17
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
 
20
- var styles = {"option":"select__option_129sp","disabled":"select__disabled_129sp","s":"select__s_129sp","m":"select__m_129sp","l":"select__l_129sp","xl":"select__xl_129sp","selected":"select__selected_129sp","highlighted":"select__highlighted_129sp","content":"select__content_129sp","textContent":"select__textContent_129sp"};
20
+ var styles = {"option":"select__option_1yh0k","disabled":"select__disabled_1yh0k","s":"select__s_1yh0k","m":"select__m_1yh0k","l":"select__l_1yh0k","xl":"select__xl_1yh0k","selected":"select__selected_1yh0k","highlighted":"select__highlighted_1yh0k","content":"select__content_1yh0k","textContent":"select__textContent_1yh0k"};
21
21
  require('./index.css')
22
22
 
23
23
  var Option = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: fjddb */
1
+ /* hash: 1wmjj */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -53,7 +53,7 @@
53
53
  /* checkmark */
54
54
 
55
55
  /* optgroup */
56
- } .select__option_129sp {
56
+ } .select__option_1yh0k {
57
57
  font-size: 16px;
58
58
  line-height: 20px;
59
59
  font-weight: 400;
@@ -68,10 +68,10 @@
68
68
  box-sizing: border-box;
69
69
  position: relative;
70
70
  cursor: pointer
71
- } .select__option_129sp:not(.select__disabled_129sp):active {
71
+ } .select__option_1yh0k:not(.select__disabled_1yh0k):active {
72
72
  background: var(--select-option-active-background);
73
73
  color: var(--select-option-active-color);
74
- } .select__option_129sp:before {
74
+ } .select__option_1yh0k:before {
75
75
  content: '';
76
76
  position: absolute;
77
77
  left: var(--select-option-left-padding);
@@ -81,46 +81,46 @@
81
81
  background: var(--select-option-divider-background);
82
82
  display: var(--select-option-divider-display);
83
83
  transition: opacity 0.2s ease;
84
- } .select__option_129sp:first-child:before {
84
+ } .select__option_1yh0k:first-child:before {
85
85
  display: none;
86
- } .select__s_129sp {
86
+ } .select__s_1yh0k {
87
87
  min-height: var(--size-s-height);
88
- } .select__m_129sp {
88
+ } .select__m_1yh0k {
89
89
  min-height: var(--size-m-height);
90
- } .select__l_129sp {
90
+ } .select__l_1yh0k {
91
91
  min-height: var(--size-l-height);
92
- } .select__xl_129sp {
92
+ } .select__xl_1yh0k {
93
93
  min-height: var(--size-xl-height);
94
- } .select__l_129sp,
95
- .select__xl_129sp {
94
+ } .select__l_1yh0k,
95
+ .select__xl_1yh0k {
96
96
  padding-left: var(--select-option-l-left-padding);
97
97
  padding-right: var(--select-option-l-right-padding)
98
- } .select__l_129sp:before, .select__xl_129sp:before {
98
+ } .select__l_1yh0k:before, .select__xl_1yh0k:before {
99
99
  left: var(--select-option-l-left-padding);
100
100
  right: var(--select-option-l-right-padding);
101
- } .select__selected_129sp {
101
+ } .select__selected_1yh0k {
102
102
  background: var(--select-option-selected-background);
103
103
  color: var(--select-option-selected-color);
104
104
  cursor: default;
105
- } .select__highlighted_129sp {
105
+ } .select__highlighted_1yh0k {
106
106
  background: var(--select-option-hover-background);
107
107
  color: var(--select-option-hover-color)
108
- } .select__highlighted_129sp:before,
109
- .select__highlighted_129sp + .select__option_129sp:before {
108
+ } .select__highlighted_1yh0k:before,
109
+ .select__highlighted_1yh0k + .select__option_1yh0k:before {
110
110
  opacity: 0;
111
- } .select__disabled_129sp {
111
+ } .select__disabled_1yh0k {
112
112
  cursor: var(--disabled-cursor);
113
113
  background: var(--select-option-disabled-background);
114
114
  color: var(--select-option-disabled-color);
115
- } .select__content_129sp {
115
+ } .select__content_1yh0k {
116
116
  overflow: hidden;
117
117
  flex: 1;
118
118
  text-overflow: ellipsis;
119
- } .select__textContent_129sp {
119
+ } .select__textContent_1yh0k {
120
120
  padding-top: var(--gap-s);
121
121
  padding-bottom: var(--gap-s);
122
122
  } /* IE min-height fix */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
123
- .select__option_129sp:after {
123
+ .select__option_1yh0k:after {
124
124
  min-height: inherit;
125
125
  font-size: 0;
126
126
  content: '';
@@ -18,7 +18,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
19
19
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
20
20
 
21
- var styles = {"optionsList":"select__optionsList_7iql7","optionsListHeader":"select__optionsListHeader_7iql7","optionsListFooter":"select__optionsListFooter_7iql7","withBorder":"select__withBorder_7iql7","scrollable":"select__scrollable_7iql7","emptyPlaceholder":"select__emptyPlaceholder_7iql7","l":"select__l_7iql7","xl":"select__xl_7iql7"};
21
+ var styles = {"optionsList":"select__optionsList_kto5e","optionsListHeader":"select__optionsListHeader_kto5e","optionsListFooter":"select__optionsListFooter_kto5e","withBorder":"select__withBorder_kto5e","scrollable":"select__scrollable_kto5e","emptyPlaceholder":"select__emptyPlaceholder_kto5e","l":"select__l_kto5e","xl":"select__xl_kto5e"};
22
22
  require('./index.css')
23
23
 
24
24
  var createCounter = function () {
@@ -1,4 +1,4 @@
1
- /* hash: 14d5p */
1
+ /* hash: tk1ov */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-secondary: #e9e9eb;
@@ -29,28 +29,28 @@
29
29
  /* checkmark */
30
30
 
31
31
  /* optgroup */
32
- } .select__optionsList_7iql7 {
32
+ } .select__optionsList_kto5e {
33
33
  width: 100%;
34
34
  outline: none;
35
35
  box-sizing: border-box;
36
36
  position: relative;
37
- } .select__optionsListHeader_7iql7 {
37
+ } .select__optionsListHeader_kto5e {
38
38
  box-sizing: border-box;
39
39
  border-bottom: 1px solid var(--color-light-border-secondary);
40
- } .select__optionsListFooter_7iql7 {
40
+ } .select__optionsListFooter_kto5e {
41
41
  position: sticky;
42
42
  bottom: 0;
43
43
  box-sizing: border-box;
44
44
  border-top: 1px solid transparent
45
- } .select__optionsListFooter_7iql7.select__withBorder_7iql7 {
45
+ } .select__optionsListFooter_kto5e.select__withBorder_kto5e {
46
46
  border-top: 1px solid var(--color-light-border-secondary);
47
- } .select__scrollable_7iql7 {
47
+ } .select__scrollable_kto5e {
48
48
  overflow: auto;
49
49
  width: 100%;
50
- } .select__emptyPlaceholder_7iql7 {
50
+ } .select__emptyPlaceholder_kto5e {
51
51
  padding: var(--gap-m) var(--gap-s);
52
52
  color: var(--select-options-list-empty-placeholder-color);
53
- } .select__l_7iql7 .select__emptyPlaceholder_7iql7,
54
- .select__xl_7iql7 .select__emptyPlaceholder_7iql7 {
53
+ } .select__l_kto5e .select__emptyPlaceholder_kto5e,
54
+ .select__xl_kto5e .select__emptyPlaceholder_kto5e {
55
55
  padding: var(--gap-xl) var(--gap-m);
56
56
  }
@@ -19,7 +19,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
19
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
20
20
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
21
21
 
22
- var styles = {"virtualOptionsList":"select__virtualOptionsList_d7gwa","virtualOptionsListHeader":"select__virtualOptionsListHeader_d7gwa","virtualOptionsListFooter":"select__virtualOptionsListFooter_d7gwa","withBorder":"select__withBorder_d7gwa","scrollable":"select__scrollable_d7gwa","inner":"select__inner_d7gwa","virtualRow":"select__virtualRow_d7gwa","highlighted":"select__highlighted_d7gwa","emptyPlaceholder":"select__emptyPlaceholder_d7gwa","l":"select__l_d7gwa","xl":"select__xl_d7gwa"};
22
+ var styles = {"virtualOptionsList":"select__virtualOptionsList_18jmg","virtualOptionsListHeader":"select__virtualOptionsListHeader_18jmg","virtualOptionsListFooter":"select__virtualOptionsListFooter_18jmg","withBorder":"select__withBorder_18jmg","scrollable":"select__scrollable_18jmg","inner":"select__inner_18jmg","virtualRow":"select__virtualRow_18jmg","highlighted":"select__highlighted_18jmg","emptyPlaceholder":"select__emptyPlaceholder_18jmg","l":"select__l_18jmg","xl":"select__xl_18jmg"};
23
23
  require('./index.css')
24
24
 
25
25
  var VirtualOptionsList = React.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 12qri */
1
+ /* hash: yewdn */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #dcdcdd;
@@ -35,34 +35,34 @@
35
35
  /* checkmark */
36
36
 
37
37
  /* optgroup */
38
- } .select__virtualOptionsList_d7gwa {
38
+ } .select__virtualOptionsList_18jmg {
39
39
  width: 100%;
40
40
  outline: none;
41
41
  box-sizing: border-box;
42
42
  position: sticky;
43
- } .select__virtualOptionsListHeader_d7gwa {
43
+ } .select__virtualOptionsListHeader_18jmg {
44
44
  box-sizing: border-box;
45
45
  border-bottom: 1px solid var(--color-light-border-secondary);
46
- } .select__virtualOptionsListFooter_d7gwa {
46
+ } .select__virtualOptionsListFooter_18jmg {
47
47
  position: sticky;
48
48
  bottom: 0;
49
49
  box-sizing: border-box;
50
50
  border-top: 1px solid transparent
51
- } .select__virtualOptionsListFooter_d7gwa.select__withBorder_d7gwa {
51
+ } .select__virtualOptionsListFooter_18jmg.select__withBorder_18jmg {
52
52
  border-top: 1px solid var(--color-light-border-secondary);
53
- } .select__scrollable_d7gwa {
53
+ } .select__scrollable_18jmg {
54
54
  position: relative;
55
55
  overflow: auto;
56
56
  width: 100%;
57
- } .select__inner_d7gwa {
57
+ } .select__inner_18jmg {
58
58
  position: relative;
59
59
  width: 100%;
60
- } .select__virtualRow_d7gwa {
60
+ } .select__virtualRow_18jmg {
61
61
  position: absolute;
62
62
  top: 0;
63
63
  left: 0;
64
64
  width: 100%
65
- } .select__virtualRow_d7gwa:before {
65
+ } .select__virtualRow_18jmg:before {
66
66
  content: '';
67
67
  position: absolute;
68
68
  z-index: 1;
@@ -72,15 +72,15 @@
72
72
  height: 1px;
73
73
  background: var(--select-option-divider-background);
74
74
  display: var(--select-option-divider-display);
75
- } .select__virtualRow_d7gwa:first-child:before {
75
+ } .select__virtualRow_18jmg:first-child:before {
76
76
  display: none;
77
- } .select__highlighted_d7gwa:before,
78
- .select__highlighted_d7gwa + .select__virtualRow_d7gwa:before {
77
+ } .select__highlighted_18jmg:before,
78
+ .select__highlighted_18jmg + .select__virtualRow_18jmg:before {
79
79
  display: none;
80
- } .select__emptyPlaceholder_d7gwa {
80
+ } .select__emptyPlaceholder_18jmg {
81
81
  padding: var(--gap-m) var(--gap-s);
82
82
  color: var(--select-options-list-empty-placeholder-color);
83
- } .select__l_d7gwa .select__emptyPlaceholder_d7gwa,
84
- .select__xl_d7gwa .select__emptyPlaceholder_d7gwa {
83
+ } .select__l_18jmg .select__emptyPlaceholder_18jmg,
84
+ .select__xl_18jmg .select__emptyPlaceholder_18jmg {
85
85
  padding: var(--gap-xl) var(--gap-m);
86
86
  }
@@ -3,6 +3,7 @@ import React from "react";
3
3
  import { FC, ReactNode, ButtonHTMLAttributes, ElementType, ForwardRefExoticComponent, RefAttributes, HTMLAttributes, AnchorHTMLAttributes, ReactElement } from "react";
4
4
  import { ContentProps, TResponsiveModalContext, View, ModalMobileProps } from "./typings-baf4875b";
5
5
  import { BaseModalContext } from "@alfalab/core-components-base-modal";
6
+ import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
6
7
  import { ButtonProps } from "@alfalab/core-components-button";
7
8
  declare const Content: FC<ContentProps>;
8
9
  declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
@@ -217,7 +218,6 @@ declare const colors: readonly [
217
218
  "static-accent"
218
219
  ];
219
220
  type Color = (typeof colors)[number];
220
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
221
221
  type NativeProps = HTMLAttributes<HTMLSpanElement>;
222
222
  type TextBaseProps = {
223
223
  /**
@@ -260,6 +260,14 @@ type TextBaseProps = {
260
260
  * Количество строк (не поддерживает IE)
261
261
  */
262
262
  rowLimit?: 1 | 2 | 3;
263
+ /**
264
+ * Показать скелетон
265
+ */
266
+ showSkeleton?: boolean;
267
+ /**
268
+ * Пропы для скелетона
269
+ */
270
+ skeletonProps?: TextSkeletonProps;
263
271
  };
264
272
  type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
265
273
  tag?: "p";
@@ -308,6 +316,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
308
316
  * Количество строк (не поддерживает IE)
309
317
  */
310
318
  rowLimit?: 1 | 2 | 3;
319
+ /**
320
+ * Показать скелетон
321
+ */
322
+ showSkeleton?: boolean;
323
+ /**
324
+ * Пропы для скелетона
325
+ */
326
+ skeletonProps?: TextSkeletonProps;
311
327
  };
312
328
  type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
313
329
  declare const Typography: {
@@ -385,3 +401,4 @@ declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & Re
385
401
  };
386
402
  export { Content, ResponsiveContext, Modal, FooterProps, Footer, HeaderProps, Header, ModalContext, BackArrowAddonProps, BackArrowAddon, Typography, typographyPresets, TitleResponsive, IconButtonProps, IconButton, ModalMobile };
387
403
  export type { TitleProps, TextProps, Color };
404
+ export * from "./useSkeleton-1b036d4b";
@@ -0,0 +1,13 @@
1
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
+ type WidthUnit = number | string;
3
+ type TextSkeletonProps = {
4
+ /**
5
+ * Кол-во строк текста
6
+ */
7
+ rows?: number;
8
+ /**
9
+ * Ширина строки
10
+ */
11
+ width?: WidthUnit | WidthUnit[];
12
+ };
13
+ export { TextElementType, TextSkeletonProps };
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TextSkeletonProps } from "./types-1b036d4b";
4
+ type SkeletonProps = {
5
+ wrapperClassName?: string;
6
+ dataTestId?: string;
7
+ };
8
+ declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
9
+ renderSkeleton: (props: SkeletonProps) => React.JSX.Element | null;
10
+ textRef: React.RefObject<HTMLElement>;
11
+ };
12
+ export { useSkeleton };
@@ -3,6 +3,7 @@ import React from "react";
3
3
  import { FC, ReactNode, ButtonHTMLAttributes, ElementType, ForwardRefExoticComponent, RefAttributes, HTMLAttributes, AnchorHTMLAttributes, ReactElement } from "react";
4
4
  import { ContentProps, TResponsiveModalContext, View, ModalMobileProps } from "./typings-baf4875b";
5
5
  import { BaseModalContext } from "@alfalab/core-components-base-modal";
6
+ import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
6
7
  import { ButtonProps } from "@alfalab/core-components-button";
7
8
  declare const Content: FC<ContentProps>;
8
9
  declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
@@ -217,7 +218,6 @@ declare const colors: readonly [
217
218
  "static-accent"
218
219
  ];
219
220
  type Color = (typeof colors)[number];
220
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
221
221
  type NativeProps = HTMLAttributes<HTMLSpanElement>;
222
222
  type TextBaseProps = {
223
223
  /**
@@ -260,6 +260,14 @@ type TextBaseProps = {
260
260
  * Количество строк (не поддерживает IE)
261
261
  */
262
262
  rowLimit?: 1 | 2 | 3;
263
+ /**
264
+ * Показать скелетон
265
+ */
266
+ showSkeleton?: boolean;
267
+ /**
268
+ * Пропы для скелетона
269
+ */
270
+ skeletonProps?: TextSkeletonProps;
263
271
  };
264
272
  type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
265
273
  tag?: "p";
@@ -308,6 +316,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
308
316
  * Количество строк (не поддерживает IE)
309
317
  */
310
318
  rowLimit?: 1 | 2 | 3;
319
+ /**
320
+ * Показать скелетон
321
+ */
322
+ showSkeleton?: boolean;
323
+ /**
324
+ * Пропы для скелетона
325
+ */
326
+ skeletonProps?: TextSkeletonProps;
311
327
  };
312
328
  type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
313
329
  declare const Typography: {
@@ -385,3 +401,4 @@ declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & Re
385
401
  };
386
402
  export { Content, ResponsiveContext, Modal, FooterProps, Footer, HeaderProps, Header, ModalContext, BackArrowAddonProps, BackArrowAddon, Typography, typographyPresets, TitleResponsive, IconButtonProps, IconButton, ModalMobile };
387
403
  export type { TitleProps, TextProps, Color };
404
+ export * from "./useSkeleton-1b036d4b";
@@ -9,7 +9,7 @@ import { Optgroup } from './components/optgroup/Component.js';
9
9
  import { Option } from './components/option/Component.js';
10
10
  import { OptionsList } from './components/options-list/Component.js';
11
11
  import { VirtualOptionsList } from './components/virtual-options-list/Component.js';
12
- import { u as useSelectWithApply } from './hook-0fd92266.js';
12
+ import { u as useSelectWithApply } from './hook-d40b4e10.js';
13
13
  import { Header } from './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
14
14
  import 'classnames';
15
15
  import '@alfalab/icons-glyph/ChevronDownMIcon';
@@ -9,7 +9,7 @@ import { Optgroup } from './components/optgroup/Component.js';
9
9
  import { Option } from './components/option/Component.js';
10
10
  import { OptionsList } from './components/options-list/Component.js';
11
11
  import { VirtualOptionsList } from './components/virtual-options-list/Component.js';
12
- import { u as useSelectWithApply } from './hook-0fd92266.js';
12
+ import { u as useSelectWithApply } from './hook-d40b4e10.js';
13
13
  import { Header } from './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
14
14
  import 'classnames';
15
15
  import '@alfalab/icons-glyph/ChevronDownMIcon';
@@ -36,7 +36,7 @@ import '@alfalab/core-components-base-modal/esm';
36
36
  import '@alfalab/core-components-button/esm/mobile';
37
37
  import './components/virtual-options-list/Component.js';
38
38
  import 'react-virtual';
39
- import './hook-0fd92266.js';
39
+ import './hook-d40b4e10.js';
40
40
  import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
41
41
  import '@alfalab/core-components-button/esm/desktop';
42
42
  import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { ChevronDownMIcon } from '@alfalab/icons-glyph/ChevronDownMIcon';
4
4
 
5
- var styles = {"arrow":"select__arrow_1o47a","open":"select__open_1o47a"};
5
+ var styles = {"arrow":"select__arrow_lab3k","open":"select__open_lab3k"};
6
6
  require('./index.css')
7
7
 
8
8
  var Arrow = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 10805 */
1
+ /* hash: kofo9 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -26,13 +26,13 @@
26
26
  /* checkmark */
27
27
 
28
28
  /* optgroup */
29
- } .select__arrow_1o47a {
29
+ } .select__arrow_lab3k {
30
30
  display: block;
31
31
  width: 24px;
32
32
  height: 24px;
33
33
  color: var(--select-arrow-color);
34
34
 
35
35
  transition: transform 0.15s ease-in-out, opacity 0.2s ease;
36
- } .select__open_1o47a {
36
+ } .select__open_lab3k {
37
37
  transform: var(--arrow-transform);
38
38
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { Checkbox } from '@alfalab/core-components-checkbox/esm';
4
4
  import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
5
5
 
6
- var styles = {"checkmark":"select__checkmark_1uix5","single":"select__single_1uix5","selected":"select__selected_1uix5"};
6
+ var styles = {"checkmark":"select__checkmark_rp0yl","single":"select__single_rp0yl","selected":"select__selected_rp0yl"};
7
7
  require('./index.css')
8
8
 
9
9
  var BaseCheckmark = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 17shs */
1
+ /* hash: pujww */
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 */
@@ -23,14 +23,14 @@
23
23
  /* checkmark */
24
24
 
25
25
  /* optgroup */
26
- } .select__checkmark_1uix5 {
26
+ } .select__checkmark_rp0yl {
27
27
  flex-shrink: 0;
28
28
  box-sizing: border-box;
29
- } .select__single_1uix5 {
29
+ } .select__single_rp0yl {
30
30
  display: flex;
31
31
  align-items: center;
32
32
  justify-content: center;
33
33
  opacity: 0
34
- } .select__single_1uix5.select__selected_1uix5 {
34
+ } .select__single_rp0yl.select__selected_rp0yl {
35
35
  opacity: 1;
36
36
  }
@@ -5,7 +5,7 @@ import { BaseCheckmark } from '../base-checkmark/Component.js';
5
5
  import '@alfalab/core-components-checkbox/esm';
6
6
  import '@alfalab/icons-glyph/CheckmarkMIcon';
7
7
 
8
- var styles = {"option":"select__option_y47jb","disabled":"select__disabled_y47jb","checkmarkBefore":"select__checkmarkBefore_y47jb","mobile":"select__mobile_y47jb","checkmarkAfter":"select__checkmarkAfter_y47jb","textContent":"select__textContent_y47jb","selected":"select__selected_y47jb","highlighted":"select__highlighted_y47jb","content":"select__content_y47jb"};
8
+ var styles = {"option":"select__option_1tgd3","disabled":"select__disabled_1tgd3","checkmarkBefore":"select__checkmarkBefore_1tgd3","mobile":"select__mobile_1tgd3","checkmarkAfter":"select__checkmarkAfter_1tgd3","textContent":"select__textContent_1tgd3","selected":"select__selected_1tgd3","highlighted":"select__highlighted_1tgd3","content":"select__content_1tgd3"};
9
9
  require('./index.css')
10
10
 
11
11
  var BaseOption = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1nni5 */
1
+ /* hash: 1jbn0 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -43,7 +43,7 @@
43
43
  /* checkmark */
44
44
 
45
45
  /* optgroup */
46
- } .select__option_y47jb {
46
+ } .select__option_1tgd3 {
47
47
  font-size: 16px;
48
48
  line-height: 20px;
49
49
  font-weight: 400;
@@ -60,32 +60,32 @@
60
60
  position: relative;
61
61
  cursor: pointer;
62
62
  min-height: var(--size-s-height)
63
- } .select__option_y47jb:not(.select__disabled_y47jb):active {
63
+ } .select__option_1tgd3:not(.select__disabled_1tgd3):active {
64
64
  background: var(--select-option-active-background);
65
65
  color: var(--select-option-active-color);
66
- } .select__option_y47jb.select__checkmarkBefore_y47jb {
66
+ } .select__option_1tgd3.select__checkmarkBefore_1tgd3 {
67
67
  padding: 0 0 0 var(--gap-s)
68
- } .select__option_y47jb.select__checkmarkBefore_y47jb.select__mobile_y47jb {
68
+ } .select__option_1tgd3.select__checkmarkBefore_1tgd3.select__mobile_1tgd3 {
69
69
  padding-left: var(--gap-m);
70
- } .select__option_y47jb.select__checkmarkAfter_y47jb {
70
+ } .select__option_1tgd3.select__checkmarkAfter_1tgd3 {
71
71
  padding: 0 var(--gap-s) 0 0
72
- } .select__option_y47jb.select__checkmarkAfter_y47jb.select__mobile_y47jb {
72
+ } .select__option_1tgd3.select__checkmarkAfter_1tgd3.select__mobile_1tgd3 {
73
73
  padding-right: var(--gap-l);
74
- } .select__option_y47jb.select__textContent_y47jb {
74
+ } .select__option_1tgd3.select__textContent_1tgd3 {
75
75
  padding: var(--gap-s)
76
- } .select__option_y47jb.select__textContent_y47jb.select__mobile_y47jb {
76
+ } .select__option_1tgd3.select__textContent_1tgd3.select__mobile_1tgd3 {
77
77
  padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
78
- } .select__selected_y47jb {
78
+ } .select__selected_1tgd3 {
79
79
  background: var(--select-option-selected-background);
80
80
  color: var(--select-option-selected-color);
81
81
  cursor: default;
82
- } .select__highlighted_y47jb {
82
+ } .select__highlighted_1tgd3 {
83
83
  background: var(--select-option-hover-background);
84
84
  color: var(--select-option-hover-color);
85
- } .select__disabled_y47jb {
85
+ } .select__disabled_1tgd3 {
86
86
  cursor: var(--disabled-cursor);
87
87
  background: var(--select-option-disabled-background);
88
88
  color: var(--select-option-disabled-color);
89
- } .select__content_y47jb {
89
+ } .select__content_1tgd3 {
90
90
  flex: 1;
91
91
  }
@@ -10,7 +10,7 @@ import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
10
10
  import { processOptions } from '../../utils.js';
11
11
  import { NativeSelect } from '../native-select/Component.js';
12
12
 
13
- var styles = {"component":"select__component_1n1ic","popoverInner":"select__popoverInner_1n1ic","optionsList":"select__optionsList_1n1ic","optionsListBorder":"select__optionsListBorder_1n1ic","nativeSelect":"select__nativeSelect_1n1ic","block":"select__block_1n1ic"};
13
+ var styles = {"component":"select__component_19qks","popoverInner":"select__popoverInner_19qks","optionsList":"select__optionsList_19qks","optionsListBorder":"select__optionsListBorder_19qks","nativeSelect":"select__nativeSelect_19qks","block":"select__block_19qks"};
14
14
  require('./index.css')
15
15
 
16
16
  var BaseSelect = forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: nka3n */
1
+ /* hash: 1r3vr */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -36,11 +36,11 @@
36
36
  /* checkmark */
37
37
 
38
38
  /* optgroup */
39
- } .select__component_1n1ic {
39
+ } .select__component_19qks {
40
40
  width: max-content;
41
41
  position: relative;
42
42
  outline: 0;
43
- } .select__popoverInner_1n1ic {
43
+ } .select__popoverInner_19qks {
44
44
  padding-top: var(--select-options-list-offset);
45
45
  padding-bottom: var(--select-options-list-offset);
46
46
  box-shadow: none;
@@ -48,7 +48,7 @@
48
48
  background: transparent;
49
49
  border-radius: 0;
50
50
  position: relative;
51
- } .select__optionsList_1n1ic {
51
+ } .select__optionsList_19qks {
52
52
  position: relative;
53
53
  padding-top: var(--select-options-list-top-padding);
54
54
  padding-bottom: var(--select-options-list-bottom-padding);
@@ -57,7 +57,7 @@
57
57
  background: var(--select-option-background);
58
58
  overflow: hidden;
59
59
  will-change: transform;
60
- } .select__optionsListBorder_1n1ic {
60
+ } .select__optionsListBorder_19qks {
61
61
  position: absolute;
62
62
  top: 0;
63
63
  right: 0;
@@ -66,7 +66,7 @@
66
66
  box-shadow: inset 0 0 0 1px var(--color-light-border-secondary);
67
67
  border-radius: inherit;
68
68
  pointer-events: none;
69
- } .select__nativeSelect_1n1ic {
69
+ } .select__nativeSelect_19qks {
70
70
  opacity: 0;
71
71
  overflow: hidden;
72
72
  position: absolute;
@@ -79,10 +79,10 @@
79
79
  height: 100%;
80
80
  cursor: pointer;
81
81
  z-index: 1;
82
- } .select__block_1n1ic {
82
+ } .select__block_19qks {
83
83
  width: 100%;
84
84
  } /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
85
- .select__component_1n1ic {
85
+ .select__component_19qks {
86
86
  float: left;
87
87
  clear: left;
88
88
  }
@@ -23,7 +23,7 @@ import '../checkmark-mobile/Component.js';
23
23
  import '@alfalab/core-components-scrollbar/esm';
24
24
  import '../../consts.js';
25
25
 
26
- var styles = {"component":"select__component_4gfh1","sheet":"select__sheet_4gfh1","sheetContent":"select__sheetContent_4gfh1","modalContent":"select__modalContent_4gfh1","sheetContainer":"select__sheetContainer_4gfh1","block":"select__block_4gfh1","option":"select__option_4gfh1","optionGroup":"select__optionGroup_4gfh1"};
26
+ var styles = {"component":"select__component_gwaq2","sheet":"select__sheet_gwaq2","sheetContent":"select__sheetContent_gwaq2","modalContent":"select__modalContent_gwaq2","sheetContainer":"select__sheetContainer_gwaq2","block":"select__block_gwaq2","option":"select__option_gwaq2","optionGroup":"select__optionGroup_gwaq2"};
27
27
  require('./index.css')
28
28
 
29
29
  var BaseSelectMobile = forwardRef(function (_a, ref) {
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
4
4
  import { ButtonMobile } from '@alfalab/core-components-button/esm/mobile';
5
5
 
6
- var styles = {"footer":"select__footer_iylwz","button":"select__button_iylwz","highlighted":"select__highlighted_iylwz"};
6
+ var styles = {"footer":"select__footer_1qcig","button":"select__button_1qcig","highlighted":"select__highlighted_1qcig"};
7
7
  require('./index.css')
8
8
 
9
9
  var Footer = function (_a) {