@alfalab/core-components-bottom-sheet 6.4.1 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 7p4il */
1
+ /* hash: 1eiy8 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-accent: #ef3124;
@@ -45,20 +45,20 @@
45
45
  } :root {
46
46
  --bottom-sheet-in-transition: transform 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
47
47
  --bottom-sheet-out-transition: transform 0.3s ease;
48
- } .bottom-sheet__modal_cey95 {
48
+ } .bottom-sheet__modal_1ttf0 {
49
49
  background-color: transparent;
50
50
  position: fixed;
51
51
  bottom: 0;
52
52
  width: 100%;
53
53
  max-width: 600px;
54
54
  pointer-events: none;
55
- } .bottom-sheet__wrapper_cey95 {
55
+ } .bottom-sheet__wrapper_1ttf0 {
56
56
  transform: translateY(100%);
57
57
  overflow: hidden;
58
58
  pointer-events: none;
59
59
  border-top-right-radius: var(--border-radius-xl);
60
60
  border-top-left-radius: var(--border-radius-xl);
61
- } .bottom-sheet__component_cey95 {
61
+ } .bottom-sheet__component_1ttf0 {
62
62
  overflow: hidden;
63
63
  position: relative;
64
64
  display: flex;
@@ -66,16 +66,16 @@
66
66
  border-radius: inherit;
67
67
  background-color: var(--color-light-bg-primary);
68
68
  pointer-events: all;
69
- } .bottom-sheet__withTransition_cey95 {
69
+ } .bottom-sheet__withTransition_1ttf0 {
70
70
  transition: var(--bottom-sheet-out-transition);
71
- } .bottom-sheet__scrollableContainer_cey95 {
71
+ } .bottom-sheet__scrollableContainer_1ttf0 {
72
72
  overflow: auto;
73
73
  display: flex;
74
74
  flex-direction: column;
75
75
  position: relative;
76
76
  height: 100%;
77
77
  background-color: inherit;
78
- } .bottom-sheet__marker_cey95 {
78
+ } .bottom-sheet__marker_1ttf0 {
79
79
  position: fixed;
80
80
  top: var(--gap-2xs);
81
81
  left: 50%;
@@ -85,7 +85,7 @@
85
85
  transform: translateX(-50%);
86
86
  background-color: var(--color-light-graphic-quaternary);
87
87
  z-index: 1000;
88
- } .bottom-sheet__content_cey95 {
88
+ } .bottom-sheet__content_1ttf0 {
89
89
  position: relative;
90
90
  z-index: 0;
91
91
  display: flex;
@@ -94,73 +94,73 @@
94
94
  padding: 0 var(--gap-m);
95
95
  color: var(--color-light-text-primary);
96
96
  background-color: inherit;
97
- } .bottom-sheet__noHeader_cey95 {
97
+ } .bottom-sheet__noHeader_1ttf0 {
98
98
  padding-top: var(--gap-m);
99
- } .bottom-sheet__noFooter_cey95 {
99
+ } .bottom-sheet__noFooter_1ttf0 {
100
100
  padding-bottom: var(--gap-m);
101
- } .bottom-sheet__scrollLocked_cey95 {
101
+ } .bottom-sheet__scrollLocked_1ttf0 {
102
102
  overflow: hidden;
103
- } .bottom-sheet__hiddenScrollbar_cey95 {
103
+ } .bottom-sheet__hiddenScrollbar_1ttf0 {
104
104
  scrollbar-width: none
105
- } .bottom-sheet__hiddenScrollbar_cey95::-webkit-scrollbar {
105
+ } .bottom-sheet__hiddenScrollbar_1ttf0::-webkit-scrollbar {
106
106
  width: 0;
107
107
  height: 0;
108
- } .bottom-sheet__disabledPointerEvents_cey95 {
108
+ } .bottom-sheet__disabledPointerEvents_1ttf0 {
109
109
  pointer-events: none;
110
- } .bottom-sheet__appear_cey95 .bottom-sheet__wrapper_cey95, .bottom-sheet__enter_cey95 .bottom-sheet__wrapper_cey95 {
110
+ } .bottom-sheet__appear_1ttf0 .bottom-sheet__wrapper_1ttf0, .bottom-sheet__enter_1ttf0 .bottom-sheet__wrapper_1ttf0 {
111
111
  transition: none;
112
- } .bottom-sheet__appearActive_cey95 .bottom-sheet__wrapper_cey95, .bottom-sheet__enterActive_cey95 .bottom-sheet__wrapper_cey95 {
112
+ } .bottom-sheet__appearActive_1ttf0 .bottom-sheet__wrapper_1ttf0, .bottom-sheet__enterActive_1ttf0 .bottom-sheet__wrapper_1ttf0 {
113
113
  transition: var(--bottom-sheet-in-transition);
114
114
  transform: translateY(0);
115
- } .bottom-sheet__enterDone_cey95 .bottom-sheet__wrapper_cey95, .bottom-sheet__appearDone_cey95 .bottom-sheet__wrapper_cey95 {
115
+ } .bottom-sheet__enterDone_1ttf0 .bottom-sheet__wrapper_1ttf0, .bottom-sheet__appearDone_1ttf0 .bottom-sheet__wrapper_1ttf0 {
116
116
  transform: translateY(0);
117
- } .bottom-sheet__exit_cey95 .bottom-sheet__wrapper_cey95 {
117
+ } .bottom-sheet__exit_1ttf0 .bottom-sheet__wrapper_1ttf0 {
118
118
  transform: translateY(0);
119
- } .bottom-sheet__exitActive_cey95 .bottom-sheet__wrapper_cey95 {
119
+ } .bottom-sheet__exitActive_1ttf0 .bottom-sheet__wrapper_1ttf0 {
120
120
  transition: var(--bottom-sheet-out-transition);
121
121
  transform: translateY(100%);
122
- } .bottom-sheet__background-accent_cey95 {
122
+ } .bottom-sheet__background-accent_1ttf0 {
123
123
  background-color: var(--color-light-bg-accent);
124
- } .bottom-sheet__background-info_cey95 {
124
+ } .bottom-sheet__background-info_1ttf0 {
125
125
  background-color: var(--color-light-bg-info);
126
- } .bottom-sheet__background-attention-muted_cey95 {
126
+ } .bottom-sheet__background-attention-muted_1ttf0 {
127
127
  background-color: var(--color-light-bg-attention-muted);
128
- } .bottom-sheet__background-positive-muted_cey95 {
128
+ } .bottom-sheet__background-positive-muted_1ttf0 {
129
129
  background-color: var(--color-light-bg-positive-muted);
130
- } .bottom-sheet__background-negative-muted_cey95 {
130
+ } .bottom-sheet__background-negative-muted_1ttf0 {
131
131
  background-color: var(--color-light-bg-negative-muted);
132
- } .bottom-sheet__background-primary_cey95 {
132
+ } .bottom-sheet__background-primary_1ttf0 {
133
133
  background-color: var(--color-light-bg-primary);
134
- } .bottom-sheet__background-primary-inverted_cey95 {
134
+ } .bottom-sheet__background-primary-inverted_1ttf0 {
135
135
  background-color: var(--color-light-bg-primary-inverted);
136
- } .bottom-sheet__background-secondary_cey95 {
136
+ } .bottom-sheet__background-secondary_1ttf0 {
137
137
  background-color: var(--color-light-bg-secondary);
138
- } .bottom-sheet__background-secondary-inverted_cey95 {
138
+ } .bottom-sheet__background-secondary-inverted_1ttf0 {
139
139
  background-color: var(--color-light-bg-secondary-inverted);
140
- } .bottom-sheet__background-tertiary_cey95 {
140
+ } .bottom-sheet__background-tertiary_1ttf0 {
141
141
  background-color: var(--color-light-bg-tertiary);
142
- } .bottom-sheet__background-tertiary-inverted_cey95 {
142
+ } .bottom-sheet__background-tertiary-inverted_1ttf0 {
143
143
  background-color: var(--color-light-bg-tertiary-inverted);
144
- } .bottom-sheet__background-quaternary_cey95 {
144
+ } .bottom-sheet__background-quaternary_1ttf0 {
145
145
  background-color: var(--color-light-bg-quaternary);
146
- } .bottom-sheet__background-quaternary-inverted_cey95 {
146
+ } .bottom-sheet__background-quaternary-inverted_1ttf0 {
147
147
  background-color: var(--color-light-bg-quaternary-inverted);
148
- } .bottom-sheet__background-specialbg-component_cey95 {
148
+ } .bottom-sheet__background-specialbg-component_1ttf0 {
149
149
  background-color: var(--color-light-specialbg-component);
150
- } .bottom-sheet__background-specialbg-component-inverted_cey95 {
150
+ } .bottom-sheet__background-specialbg-component-inverted_1ttf0 {
151
151
  background-color: var(--color-light-specialbg-component-inverted);
152
- } .bottom-sheet__background-specialbg-primary-grouped_cey95 {
152
+ } .bottom-sheet__background-specialbg-primary-grouped_1ttf0 {
153
153
  background-color: var(--color-light-specialbg-primary-grouped);
154
- } .bottom-sheet__background-specialbg-secondary-grouped_cey95 {
154
+ } .bottom-sheet__background-specialbg-secondary-grouped_1ttf0 {
155
155
  background-color: var(--color-light-specialbg-secondary-grouped);
156
- } .bottom-sheet__background-specialbg-tertiary-grouped_cey95 {
156
+ } .bottom-sheet__background-specialbg-tertiary-grouped_1ttf0 {
157
157
  background-color: var(--color-light-specialbg-tertiary-grouped);
158
- } .bottom-sheet__background-specialbg-secondary-transparent_cey95 {
158
+ } .bottom-sheet__background-specialbg-secondary-transparent_1ttf0 {
159
159
  background-color: var(--color-light-specialbg-secondary-transparent);
160
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_cey95 {
160
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_1ttf0 {
161
161
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
162
- } .bottom-sheet__background-specialbg-tertiary-transparent_cey95 {
162
+ } .bottom-sheet__background-specialbg-tertiary-transparent_1ttf0 {
163
163
  background-color: var(--color-light-specialbg-tertiary-transparent);
164
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_cey95 {
164
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ttf0 {
165
165
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
166
166
  }
package/esm/types.d.ts CHANGED
@@ -219,5 +219,21 @@ type BottomSheetProps = {
219
219
  * Вызывается после притягивания к одной из `magneticAreas`
220
220
  */
221
221
  onMagnetize?: (index: number) => void;
222
+ /**
223
+ * Содержимое bottom-sheet всегда в DOM
224
+ */
225
+ keepMounted?: boolean;
226
+ /**
227
+ * Отключает автоматический перевод фокуса на bottom-sheet при открытии
228
+ */
229
+ disableAutoFocus?: boolean;
230
+ /**
231
+ * Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
232
+ */
233
+ disableRestoreFocus?: boolean;
234
+ /**
235
+ * Отключает вызов `onClose` при нажатии Escape
236
+ */
237
+ disableEscapeKeyDown?: boolean;
222
238
  };
223
239
  export { BottomSheetTitleAlign, BottomSheetProps };
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 7p4il */
1
+ /* hash: 1eiy8 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-accent: #ef3124;
@@ -45,20 +45,20 @@
45
45
  } :root {
46
46
  --bottom-sheet-in-transition: transform 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
47
47
  --bottom-sheet-out-transition: transform 0.3s ease;
48
- } .bottom-sheet__modal_cey95 {
48
+ } .bottom-sheet__modal_1ttf0 {
49
49
  background-color: transparent;
50
50
  position: fixed;
51
51
  bottom: 0;
52
52
  width: 100%;
53
53
  max-width: 600px;
54
54
  pointer-events: none;
55
- } .bottom-sheet__wrapper_cey95 {
55
+ } .bottom-sheet__wrapper_1ttf0 {
56
56
  transform: translateY(100%);
57
57
  overflow: hidden;
58
58
  pointer-events: none;
59
59
  border-top-right-radius: var(--border-radius-xl);
60
60
  border-top-left-radius: var(--border-radius-xl);
61
- } .bottom-sheet__component_cey95 {
61
+ } .bottom-sheet__component_1ttf0 {
62
62
  overflow: hidden;
63
63
  position: relative;
64
64
  display: flex;
@@ -66,16 +66,16 @@
66
66
  border-radius: inherit;
67
67
  background-color: var(--color-light-bg-primary);
68
68
  pointer-events: all;
69
- } .bottom-sheet__withTransition_cey95 {
69
+ } .bottom-sheet__withTransition_1ttf0 {
70
70
  transition: var(--bottom-sheet-out-transition);
71
- } .bottom-sheet__scrollableContainer_cey95 {
71
+ } .bottom-sheet__scrollableContainer_1ttf0 {
72
72
  overflow: auto;
73
73
  display: flex;
74
74
  flex-direction: column;
75
75
  position: relative;
76
76
  height: 100%;
77
77
  background-color: inherit;
78
- } .bottom-sheet__marker_cey95 {
78
+ } .bottom-sheet__marker_1ttf0 {
79
79
  position: fixed;
80
80
  top: var(--gap-2xs);
81
81
  left: 50%;
@@ -85,7 +85,7 @@
85
85
  transform: translateX(-50%);
86
86
  background-color: var(--color-light-graphic-quaternary);
87
87
  z-index: 1000;
88
- } .bottom-sheet__content_cey95 {
88
+ } .bottom-sheet__content_1ttf0 {
89
89
  position: relative;
90
90
  z-index: 0;
91
91
  display: flex;
@@ -94,73 +94,73 @@
94
94
  padding: 0 var(--gap-m);
95
95
  color: var(--color-light-text-primary);
96
96
  background-color: inherit;
97
- } .bottom-sheet__noHeader_cey95 {
97
+ } .bottom-sheet__noHeader_1ttf0 {
98
98
  padding-top: var(--gap-m);
99
- } .bottom-sheet__noFooter_cey95 {
99
+ } .bottom-sheet__noFooter_1ttf0 {
100
100
  padding-bottom: var(--gap-m);
101
- } .bottom-sheet__scrollLocked_cey95 {
101
+ } .bottom-sheet__scrollLocked_1ttf0 {
102
102
  overflow: hidden;
103
- } .bottom-sheet__hiddenScrollbar_cey95 {
103
+ } .bottom-sheet__hiddenScrollbar_1ttf0 {
104
104
  scrollbar-width: none
105
- } .bottom-sheet__hiddenScrollbar_cey95::-webkit-scrollbar {
105
+ } .bottom-sheet__hiddenScrollbar_1ttf0::-webkit-scrollbar {
106
106
  width: 0;
107
107
  height: 0;
108
- } .bottom-sheet__disabledPointerEvents_cey95 {
108
+ } .bottom-sheet__disabledPointerEvents_1ttf0 {
109
109
  pointer-events: none;
110
- } .bottom-sheet__appear_cey95 .bottom-sheet__wrapper_cey95, .bottom-sheet__enter_cey95 .bottom-sheet__wrapper_cey95 {
110
+ } .bottom-sheet__appear_1ttf0 .bottom-sheet__wrapper_1ttf0, .bottom-sheet__enter_1ttf0 .bottom-sheet__wrapper_1ttf0 {
111
111
  transition: none;
112
- } .bottom-sheet__appearActive_cey95 .bottom-sheet__wrapper_cey95, .bottom-sheet__enterActive_cey95 .bottom-sheet__wrapper_cey95 {
112
+ } .bottom-sheet__appearActive_1ttf0 .bottom-sheet__wrapper_1ttf0, .bottom-sheet__enterActive_1ttf0 .bottom-sheet__wrapper_1ttf0 {
113
113
  transition: var(--bottom-sheet-in-transition);
114
114
  transform: translateY(0);
115
- } .bottom-sheet__enterDone_cey95 .bottom-sheet__wrapper_cey95, .bottom-sheet__appearDone_cey95 .bottom-sheet__wrapper_cey95 {
115
+ } .bottom-sheet__enterDone_1ttf0 .bottom-sheet__wrapper_1ttf0, .bottom-sheet__appearDone_1ttf0 .bottom-sheet__wrapper_1ttf0 {
116
116
  transform: translateY(0);
117
- } .bottom-sheet__exit_cey95 .bottom-sheet__wrapper_cey95 {
117
+ } .bottom-sheet__exit_1ttf0 .bottom-sheet__wrapper_1ttf0 {
118
118
  transform: translateY(0);
119
- } .bottom-sheet__exitActive_cey95 .bottom-sheet__wrapper_cey95 {
119
+ } .bottom-sheet__exitActive_1ttf0 .bottom-sheet__wrapper_1ttf0 {
120
120
  transition: var(--bottom-sheet-out-transition);
121
121
  transform: translateY(100%);
122
- } .bottom-sheet__background-accent_cey95 {
122
+ } .bottom-sheet__background-accent_1ttf0 {
123
123
  background-color: var(--color-light-bg-accent);
124
- } .bottom-sheet__background-info_cey95 {
124
+ } .bottom-sheet__background-info_1ttf0 {
125
125
  background-color: var(--color-light-bg-info);
126
- } .bottom-sheet__background-attention-muted_cey95 {
126
+ } .bottom-sheet__background-attention-muted_1ttf0 {
127
127
  background-color: var(--color-light-bg-attention-muted);
128
- } .bottom-sheet__background-positive-muted_cey95 {
128
+ } .bottom-sheet__background-positive-muted_1ttf0 {
129
129
  background-color: var(--color-light-bg-positive-muted);
130
- } .bottom-sheet__background-negative-muted_cey95 {
130
+ } .bottom-sheet__background-negative-muted_1ttf0 {
131
131
  background-color: var(--color-light-bg-negative-muted);
132
- } .bottom-sheet__background-primary_cey95 {
132
+ } .bottom-sheet__background-primary_1ttf0 {
133
133
  background-color: var(--color-light-bg-primary);
134
- } .bottom-sheet__background-primary-inverted_cey95 {
134
+ } .bottom-sheet__background-primary-inverted_1ttf0 {
135
135
  background-color: var(--color-light-bg-primary-inverted);
136
- } .bottom-sheet__background-secondary_cey95 {
136
+ } .bottom-sheet__background-secondary_1ttf0 {
137
137
  background-color: var(--color-light-bg-secondary);
138
- } .bottom-sheet__background-secondary-inverted_cey95 {
138
+ } .bottom-sheet__background-secondary-inverted_1ttf0 {
139
139
  background-color: var(--color-light-bg-secondary-inverted);
140
- } .bottom-sheet__background-tertiary_cey95 {
140
+ } .bottom-sheet__background-tertiary_1ttf0 {
141
141
  background-color: var(--color-light-bg-tertiary);
142
- } .bottom-sheet__background-tertiary-inverted_cey95 {
142
+ } .bottom-sheet__background-tertiary-inverted_1ttf0 {
143
143
  background-color: var(--color-light-bg-tertiary-inverted);
144
- } .bottom-sheet__background-quaternary_cey95 {
144
+ } .bottom-sheet__background-quaternary_1ttf0 {
145
145
  background-color: var(--color-light-bg-quaternary);
146
- } .bottom-sheet__background-quaternary-inverted_cey95 {
146
+ } .bottom-sheet__background-quaternary-inverted_1ttf0 {
147
147
  background-color: var(--color-light-bg-quaternary-inverted);
148
- } .bottom-sheet__background-specialbg-component_cey95 {
148
+ } .bottom-sheet__background-specialbg-component_1ttf0 {
149
149
  background-color: var(--color-light-specialbg-component);
150
- } .bottom-sheet__background-specialbg-component-inverted_cey95 {
150
+ } .bottom-sheet__background-specialbg-component-inverted_1ttf0 {
151
151
  background-color: var(--color-light-specialbg-component-inverted);
152
- } .bottom-sheet__background-specialbg-primary-grouped_cey95 {
152
+ } .bottom-sheet__background-specialbg-primary-grouped_1ttf0 {
153
153
  background-color: var(--color-light-specialbg-primary-grouped);
154
- } .bottom-sheet__background-specialbg-secondary-grouped_cey95 {
154
+ } .bottom-sheet__background-specialbg-secondary-grouped_1ttf0 {
155
155
  background-color: var(--color-light-specialbg-secondary-grouped);
156
- } .bottom-sheet__background-specialbg-tertiary-grouped_cey95 {
156
+ } .bottom-sheet__background-specialbg-tertiary-grouped_1ttf0 {
157
157
  background-color: var(--color-light-specialbg-tertiary-grouped);
158
- } .bottom-sheet__background-specialbg-secondary-transparent_cey95 {
158
+ } .bottom-sheet__background-specialbg-secondary-transparent_1ttf0 {
159
159
  background-color: var(--color-light-specialbg-secondary-transparent);
160
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_cey95 {
160
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_1ttf0 {
161
161
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
162
- } .bottom-sheet__background-specialbg-tertiary-transparent_cey95 {
162
+ } .bottom-sheet__background-specialbg-tertiary-transparent_1ttf0 {
163
163
  background-color: var(--color-light-specialbg-tertiary-transparent);
164
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_cey95 {
164
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ttf0 {
165
165
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
166
166
  }
@@ -16,10 +16,10 @@ const getDataTestId = (dataTestId, element) => {
16
16
  return dataTestId ? `${dataTestId}${elementPart}` : undefined;
17
17
  };
18
18
 
19
- const styles = {"modal":"bottom-sheet__modal_cey95","wrapper":"bottom-sheet__wrapper_cey95","component":"bottom-sheet__component_cey95","withTransition":"bottom-sheet__withTransition_cey95","scrollableContainer":"bottom-sheet__scrollableContainer_cey95","marker":"bottom-sheet__marker_cey95","content":"bottom-sheet__content_cey95","noHeader":"bottom-sheet__noHeader_cey95","noFooter":"bottom-sheet__noFooter_cey95","scrollLocked":"bottom-sheet__scrollLocked_cey95","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_cey95","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_cey95","appear":"bottom-sheet__appear_cey95","enter":"bottom-sheet__enter_cey95","appearActive":"bottom-sheet__appearActive_cey95","enterActive":"bottom-sheet__enterActive_cey95","enterDone":"bottom-sheet__enterDone_cey95","appearDone":"bottom-sheet__appearDone_cey95","exit":"bottom-sheet__exit_cey95","exitActive":"bottom-sheet__exitActive_cey95","background-accent":"bottom-sheet__background-accent_cey95","background-info":"bottom-sheet__background-info_cey95","background-attention-muted":"bottom-sheet__background-attention-muted_cey95","background-positive-muted":"bottom-sheet__background-positive-muted_cey95","background-negative-muted":"bottom-sheet__background-negative-muted_cey95","background-primary":"bottom-sheet__background-primary_cey95","background-primary-inverted":"bottom-sheet__background-primary-inverted_cey95","background-secondary":"bottom-sheet__background-secondary_cey95","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_cey95","background-tertiary":"bottom-sheet__background-tertiary_cey95","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_cey95","background-quaternary":"bottom-sheet__background-quaternary_cey95","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_cey95","background-specialbg-component":"bottom-sheet__background-specialbg-component_cey95","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_cey95","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_cey95","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_cey95","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_cey95","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_cey95","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_cey95","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_cey95","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_cey95"};
19
+ const styles = {"modal":"bottom-sheet__modal_1ttf0","wrapper":"bottom-sheet__wrapper_1ttf0","component":"bottom-sheet__component_1ttf0","withTransition":"bottom-sheet__withTransition_1ttf0","scrollableContainer":"bottom-sheet__scrollableContainer_1ttf0","marker":"bottom-sheet__marker_1ttf0","content":"bottom-sheet__content_1ttf0","noHeader":"bottom-sheet__noHeader_1ttf0","noFooter":"bottom-sheet__noFooter_1ttf0","scrollLocked":"bottom-sheet__scrollLocked_1ttf0","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1ttf0","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1ttf0","appear":"bottom-sheet__appear_1ttf0","enter":"bottom-sheet__enter_1ttf0","appearActive":"bottom-sheet__appearActive_1ttf0","enterActive":"bottom-sheet__enterActive_1ttf0","enterDone":"bottom-sheet__enterDone_1ttf0","appearDone":"bottom-sheet__appearDone_1ttf0","exit":"bottom-sheet__exit_1ttf0","exitActive":"bottom-sheet__exitActive_1ttf0","background-accent":"bottom-sheet__background-accent_1ttf0","background-info":"bottom-sheet__background-info_1ttf0","background-attention-muted":"bottom-sheet__background-attention-muted_1ttf0","background-positive-muted":"bottom-sheet__background-positive-muted_1ttf0","background-negative-muted":"bottom-sheet__background-negative-muted_1ttf0","background-primary":"bottom-sheet__background-primary_1ttf0","background-primary-inverted":"bottom-sheet__background-primary-inverted_1ttf0","background-secondary":"bottom-sheet__background-secondary_1ttf0","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1ttf0","background-tertiary":"bottom-sheet__background-tertiary_1ttf0","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1ttf0","background-quaternary":"bottom-sheet__background-quaternary_1ttf0","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1ttf0","background-specialbg-component":"bottom-sheet__background-specialbg-component_1ttf0","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1ttf0","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1ttf0","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1ttf0","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1ttf0","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1ttf0","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1ttf0","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1ttf0","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ttf0"};
20
20
  require('./index.css')
21
21
 
22
- const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, onClose, onBack, onMagnetize, }, ref) => {
22
+ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, onClose, onBack, onMagnetize, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, }, ref) => {
23
23
  const hasInitialIdx = initialActiveAreaIndex !== undefined;
24
24
  const fullHeight = use100vh() || 0;
25
25
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
@@ -269,7 +269,7 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
269
269
  ...transitionProps,
270
270
  onExited: handleExited,
271
271
  onEntered: handleEntered,
272
- } },
272
+ }, disableAutoFocus: disableAutoFocus, disableEscapeKeyDown: disableEscapeKeyDown, disableRestoreFocus: disableRestoreFocus, keepMounted: keepMounted },
273
273
  React.createElement("div", { style: { ...getHeightStyles() }, className: styles.wrapper, onTransitionEnd: setSheetHeight },
274
274
  React.createElement("div", { className: cn(styles.component, bgClassName, className, {
275
275
  [styles.withTransition]: swipingInProgress.current === false,
@@ -2,7 +2,7 @@ import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
4
4
 
5
- const styles = {"footer":"bottom-sheet__footer_q0o55","sticky":"bottom-sheet__sticky_q0o55","highlighted":"bottom-sheet__highlighted_q0o55","background-accent":"bottom-sheet__background-accent_q0o55","background-info":"bottom-sheet__background-info_q0o55","background-attention-muted":"bottom-sheet__background-attention-muted_q0o55","background-positive-muted":"bottom-sheet__background-positive-muted_q0o55","background-negative-muted":"bottom-sheet__background-negative-muted_q0o55","background-primary":"bottom-sheet__background-primary_q0o55","background-primary-inverted":"bottom-sheet__background-primary-inverted_q0o55","background-secondary":"bottom-sheet__background-secondary_q0o55","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_q0o55","background-tertiary":"bottom-sheet__background-tertiary_q0o55","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_q0o55","background-quaternary":"bottom-sheet__background-quaternary_q0o55","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_q0o55","background-specialbg-component":"bottom-sheet__background-specialbg-component_q0o55","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_q0o55","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_q0o55","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_q0o55","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_q0o55","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_q0o55","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_q0o55","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_q0o55","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_q0o55"};
5
+ const styles = {"footer":"bottom-sheet__footer_lxt3v","sticky":"bottom-sheet__sticky_lxt3v","highlighted":"bottom-sheet__highlighted_lxt3v","background-accent":"bottom-sheet__background-accent_lxt3v","background-info":"bottom-sheet__background-info_lxt3v","background-attention-muted":"bottom-sheet__background-attention-muted_lxt3v","background-positive-muted":"bottom-sheet__background-positive-muted_lxt3v","background-negative-muted":"bottom-sheet__background-negative-muted_lxt3v","background-primary":"bottom-sheet__background-primary_lxt3v","background-primary-inverted":"bottom-sheet__background-primary-inverted_lxt3v","background-secondary":"bottom-sheet__background-secondary_lxt3v","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_lxt3v","background-tertiary":"bottom-sheet__background-tertiary_lxt3v","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_lxt3v","background-quaternary":"bottom-sheet__background-quaternary_lxt3v","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_lxt3v","background-specialbg-component":"bottom-sheet__background-specialbg-component_lxt3v","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_lxt3v","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_lxt3v","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_lxt3v","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_lxt3v","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_lxt3v","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_lxt3v","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_lxt3v","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_lxt3v"};
6
6
  require('./index.css')
7
7
 
8
8
  const Footer = ({ children, className, sticky }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1d4ol */
1
+ /* hash: v6ubm */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-accent: #ef3124;
@@ -41,58 +41,58 @@
41
41
  } :root {
42
42
  --bottom-sheet-footer-border-top: 1px solid var(--color-light-border-secondary);
43
43
  --bottom-sheet-footer-background-color: var(--color-light-bg-primary);
44
- } .bottom-sheet__footer_q0o55 {
44
+ } .bottom-sheet__footer_lxt3v {
45
45
  padding: var(--gap-m) var(--gap-m);
46
46
  background-color: var(--color-light-bg-primary);
47
- } .bottom-sheet__sticky_q0o55 {
47
+ } .bottom-sheet__sticky_lxt3v {
48
48
  position: sticky;
49
49
  bottom: 0;
50
50
  z-index: 1;
51
- } .bottom-sheet__highlighted_q0o55 {
51
+ } .bottom-sheet__highlighted_lxt3v {
52
52
  border-top: var(--bottom-sheet-footer-border-top);
53
53
  background-color: var(--bottom-sheet-footer-background-color);
54
- } .bottom-sheet__background-accent_q0o55 {
54
+ } .bottom-sheet__background-accent_lxt3v {
55
55
  background-color: var(--color-light-bg-accent);
56
- } .bottom-sheet__background-info_q0o55 {
56
+ } .bottom-sheet__background-info_lxt3v {
57
57
  background-color: var(--color-light-bg-info);
58
- } .bottom-sheet__background-attention-muted_q0o55 {
58
+ } .bottom-sheet__background-attention-muted_lxt3v {
59
59
  background-color: var(--color-light-bg-attention-muted);
60
- } .bottom-sheet__background-positive-muted_q0o55 {
60
+ } .bottom-sheet__background-positive-muted_lxt3v {
61
61
  background-color: var(--color-light-bg-positive-muted);
62
- } .bottom-sheet__background-negative-muted_q0o55 {
62
+ } .bottom-sheet__background-negative-muted_lxt3v {
63
63
  background-color: var(--color-light-bg-negative-muted);
64
- } .bottom-sheet__background-primary_q0o55 {
64
+ } .bottom-sheet__background-primary_lxt3v {
65
65
  background-color: var(--color-light-bg-primary);
66
- } .bottom-sheet__background-primary-inverted_q0o55 {
66
+ } .bottom-sheet__background-primary-inverted_lxt3v {
67
67
  background-color: var(--color-light-bg-primary-inverted);
68
- } .bottom-sheet__background-secondary_q0o55 {
68
+ } .bottom-sheet__background-secondary_lxt3v {
69
69
  background-color: var(--color-light-bg-secondary);
70
- } .bottom-sheet__background-secondary-inverted_q0o55 {
70
+ } .bottom-sheet__background-secondary-inverted_lxt3v {
71
71
  background-color: var(--color-light-bg-secondary-inverted);
72
- } .bottom-sheet__background-tertiary_q0o55 {
72
+ } .bottom-sheet__background-tertiary_lxt3v {
73
73
  background-color: var(--color-light-bg-tertiary);
74
- } .bottom-sheet__background-tertiary-inverted_q0o55 {
74
+ } .bottom-sheet__background-tertiary-inverted_lxt3v {
75
75
  background-color: var(--color-light-bg-tertiary-inverted);
76
- } .bottom-sheet__background-quaternary_q0o55 {
76
+ } .bottom-sheet__background-quaternary_lxt3v {
77
77
  background-color: var(--color-light-bg-quaternary);
78
- } .bottom-sheet__background-quaternary-inverted_q0o55 {
78
+ } .bottom-sheet__background-quaternary-inverted_lxt3v {
79
79
  background-color: var(--color-light-bg-quaternary-inverted);
80
- } .bottom-sheet__background-specialbg-component_q0o55 {
80
+ } .bottom-sheet__background-specialbg-component_lxt3v {
81
81
  background-color: var(--color-light-specialbg-component);
82
- } .bottom-sheet__background-specialbg-component-inverted_q0o55 {
82
+ } .bottom-sheet__background-specialbg-component-inverted_lxt3v {
83
83
  background-color: var(--color-light-specialbg-component-inverted);
84
- } .bottom-sheet__background-specialbg-primary-grouped_q0o55 {
84
+ } .bottom-sheet__background-specialbg-primary-grouped_lxt3v {
85
85
  background-color: var(--color-light-specialbg-primary-grouped);
86
- } .bottom-sheet__background-specialbg-secondary-grouped_q0o55 {
86
+ } .bottom-sheet__background-specialbg-secondary-grouped_lxt3v {
87
87
  background-color: var(--color-light-specialbg-secondary-grouped);
88
- } .bottom-sheet__background-specialbg-tertiary-grouped_q0o55 {
88
+ } .bottom-sheet__background-specialbg-tertiary-grouped_lxt3v {
89
89
  background-color: var(--color-light-specialbg-tertiary-grouped);
90
- } .bottom-sheet__background-specialbg-secondary-transparent_q0o55 {
90
+ } .bottom-sheet__background-specialbg-secondary-transparent_lxt3v {
91
91
  background-color: var(--color-light-specialbg-secondary-transparent);
92
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_q0o55 {
92
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_lxt3v {
93
93
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
94
- } .bottom-sheet__background-specialbg-tertiary-transparent_q0o55 {
94
+ } .bottom-sheet__background-specialbg-tertiary-transparent_lxt3v {
95
95
  background-color: var(--color-light-specialbg-tertiary-transparent);
96
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_q0o55 {
96
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_lxt3v {
97
97
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
98
98
  }
@@ -4,7 +4,7 @@ import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
4
4
  import { NavigationBar } from '@alfalab/core-components-navigation-bar/modern';
5
5
  import { HEADER_OFFSET } from '../../utils.js';
6
6
 
7
- const styles = {"headerWrapper":"bottom-sheet__headerWrapper_u310l","hasContent":"bottom-sheet__hasContent_u310l","header":"bottom-sheet__header_u310l","sticky":"bottom-sheet__sticky_u310l","highlighted":"bottom-sheet__highlighted_u310l","justifyEnd":"bottom-sheet__justifyEnd_u310l","addon":"bottom-sheet__addon_u310l","addonFixed":"bottom-sheet__addonFixed_u310l","title":"bottom-sheet__title_u310l","titleCenter":"bottom-sheet__titleCenter_u310l","titleLeft":"bottom-sheet__titleLeft_u310l","trimTitle":"bottom-sheet__trimTitle_u310l"};
7
+ const styles = {"headerWrapper":"bottom-sheet__headerWrapper_sn0d0","hasContent":"bottom-sheet__hasContent_sn0d0","header":"bottom-sheet__header_sn0d0","sticky":"bottom-sheet__sticky_sn0d0","highlighted":"bottom-sheet__highlighted_sn0d0","justifyEnd":"bottom-sheet__justifyEnd_sn0d0","addon":"bottom-sheet__addon_sn0d0","addonFixed":"bottom-sheet__addonFixed_sn0d0","title":"bottom-sheet__title_sn0d0","titleCenter":"bottom-sheet__titleCenter_sn0d0","titleLeft":"bottom-sheet__titleLeft_sn0d0","trimTitle":"bottom-sheet__trimTitle_sn0d0"};
8
8
  require('./index.css')
9
9
 
10
10
  const Header = ({ className, sticky, headerRef, title, children, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: gjzzi */
1
+ /* hash: yhu9a */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-secondary: #e9e9eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,42 +27,42 @@
27
27
  --bottom-sheet-title-font-weight: 700;
28
28
  --bottom-sheet-title-line-height: 24px;
29
29
  --bottom-sheet-title-font-family: var(--font-family-system);
30
- } .bottom-sheet__headerWrapper_u310l {
30
+ } .bottom-sheet__headerWrapper_sn0d0 {
31
31
  padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
32
32
  border-top-right-radius: var(--border-radius-xl);
33
33
  border-top-left-radius: var(--border-radius-xl);
34
34
  z-index: 1;
35
- } .bottom-sheet__hasContent_u310l {
35
+ } .bottom-sheet__hasContent_sn0d0 {
36
36
  background-color: inherit;
37
- } .bottom-sheet__header_u310l {
37
+ } .bottom-sheet__header_sn0d0 {
38
38
  display: flex;
39
- } .bottom-sheet__sticky_u310l {
39
+ } .bottom-sheet__sticky_sn0d0 {
40
40
  position: sticky;
41
41
  top: 0;
42
- } .bottom-sheet__highlighted_u310l {
42
+ } .bottom-sheet__highlighted_sn0d0 {
43
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
44
- } .bottom-sheet__justifyEnd_u310l {
44
+ } .bottom-sheet__justifyEnd_sn0d0 {
45
45
  justify-content: flex-end;
46
- } .bottom-sheet__addon_u310l {
46
+ } .bottom-sheet__addon_sn0d0 {
47
47
  display: flex;
48
48
  justify-content: center;
49
49
  align-items: center;
50
50
  min-width: 48px;
51
51
  height: 48px;
52
- } .bottom-sheet__addonFixed_u310l {
52
+ } .bottom-sheet__addonFixed_sn0d0 {
53
53
  position: fixed;
54
- } .bottom-sheet__title_u310l {
54
+ } .bottom-sheet__title_sn0d0 {
55
55
  padding: var(--gap-s) var(--gap-xs);
56
56
  width: 100%;
57
57
  font-size: var(--bottom-sheet-title-font-size);
58
58
  font-weight: var(--bottom-sheet-title-font-weight);
59
59
  line-height: var(--bottom-sheet-title-line-height);
60
60
  font-family: var(--bottom-sheet-title-font-family);
61
- } .bottom-sheet__titleCenter_u310l {
61
+ } .bottom-sheet__titleCenter_sn0d0 {
62
62
  text-align: center;
63
- } .bottom-sheet__titleLeft_u310l {
63
+ } .bottom-sheet__titleLeft_sn0d0 {
64
64
  text-align: left;
65
- } .bottom-sheet__trimTitle_u310l {
65
+ } .bottom-sheet__trimTitle_sn0d0 {
66
66
  white-space: nowrap;
67
67
  overflow: hidden;
68
68
  text-overflow: ellipsis;