@alfalab/core-components-bottom-sheet 6.15.1 → 6.15.2

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/component.js CHANGED
@@ -22,7 +22,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
22
22
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
23
23
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
24
24
 
25
- var styles = {"modal":"bottom-sheet__modal_exdrv","wrapper":"bottom-sheet__wrapper_exdrv","fullscreen":"bottom-sheet__fullscreen_exdrv","component":"bottom-sheet__component_exdrv","withTransition":"bottom-sheet__withTransition_exdrv","scrollableContainer":"bottom-sheet__scrollableContainer_exdrv","marker":"bottom-sheet__marker_exdrv","defaultMarker":"bottom-sheet__defaultMarker_exdrv","content":"bottom-sheet__content_exdrv","noHeader":"bottom-sheet__noHeader_exdrv","noFooter":"bottom-sheet__noFooter_exdrv","scrollLocked":"bottom-sheet__scrollLocked_exdrv","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_exdrv","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_exdrv","appear":"bottom-sheet__appear_exdrv","enter":"bottom-sheet__enter_exdrv","appearActive":"bottom-sheet__appearActive_exdrv","enterActive":"bottom-sheet__enterActive_exdrv","enterDone":"bottom-sheet__enterDone_exdrv","appearDone":"bottom-sheet__appearDone_exdrv","exit":"bottom-sheet__exit_exdrv","exitActive":"bottom-sheet__exitActive_exdrv","safeAreaBottom":"bottom-sheet__safeAreaBottom_exdrv","background-accent":"bottom-sheet__background-accent_exdrv","background-info":"bottom-sheet__background-info_exdrv","background-attention-muted":"bottom-sheet__background-attention-muted_exdrv","background-positive-muted":"bottom-sheet__background-positive-muted_exdrv","background-negative-muted":"bottom-sheet__background-negative-muted_exdrv","background-primary":"bottom-sheet__background-primary_exdrv","background-primary-inverted":"bottom-sheet__background-primary-inverted_exdrv","background-secondary":"bottom-sheet__background-secondary_exdrv","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_exdrv","background-tertiary":"bottom-sheet__background-tertiary_exdrv","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_exdrv","background-quaternary":"bottom-sheet__background-quaternary_exdrv","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_exdrv","background-specialbg-component":"bottom-sheet__background-specialbg-component_exdrv","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_exdrv","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_exdrv","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_exdrv","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_exdrv","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_exdrv","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_exdrv","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_exdrv","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_exdrv"};
25
+ var styles = {"modal":"bottom-sheet__modal_1j3fs","wrapper":"bottom-sheet__wrapper_1j3fs","fullscreen":"bottom-sheet__fullscreen_1j3fs","component":"bottom-sheet__component_1j3fs","withTransition":"bottom-sheet__withTransition_1j3fs","scrollableContainer":"bottom-sheet__scrollableContainer_1j3fs","marker":"bottom-sheet__marker_1j3fs","defaultMarker":"bottom-sheet__defaultMarker_1j3fs","content":"bottom-sheet__content_1j3fs","noHeader":"bottom-sheet__noHeader_1j3fs","noFooter":"bottom-sheet__noFooter_1j3fs","scrollLocked":"bottom-sheet__scrollLocked_1j3fs","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1j3fs","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1j3fs","appear":"bottom-sheet__appear_1j3fs","enter":"bottom-sheet__enter_1j3fs","appearActive":"bottom-sheet__appearActive_1j3fs","enterActive":"bottom-sheet__enterActive_1j3fs","enterDone":"bottom-sheet__enterDone_1j3fs","appearDone":"bottom-sheet__appearDone_1j3fs","exit":"bottom-sheet__exit_1j3fs","exitActive":"bottom-sheet__exitActive_1j3fs","safeAreaBottom":"bottom-sheet__safeAreaBottom_1j3fs","background-accent":"bottom-sheet__background-accent_1j3fs","background-info":"bottom-sheet__background-info_1j3fs","background-attention-muted":"bottom-sheet__background-attention-muted_1j3fs","background-positive-muted":"bottom-sheet__background-positive-muted_1j3fs","background-negative-muted":"bottom-sheet__background-negative-muted_1j3fs","background-primary":"bottom-sheet__background-primary_1j3fs","background-primary-inverted":"bottom-sheet__background-primary-inverted_1j3fs","background-secondary":"bottom-sheet__background-secondary_1j3fs","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1j3fs","background-tertiary":"bottom-sheet__background-tertiary_1j3fs","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1j3fs","background-quaternary":"bottom-sheet__background-quaternary_1j3fs","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1j3fs","background-specialbg-component":"bottom-sheet__background-specialbg-component_1j3fs","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1j3fs","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1j3fs","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1j3fs","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1j3fs","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1j3fs","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1j3fs","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1j3fs","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1j3fs"};
26
26
  require('./index.css')
27
27
 
28
28
  var isNil = coreComponentsShared.fnUtils.isNil;
@@ -32,6 +32,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
32
32
  var fullHeight = reactDiv100vh.use100vh() || 0;
33
33
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
34
34
  var isFirstRender = fullHeight === 0;
35
+ var initialIndexRef = React.useRef(initialActiveAreaIndex);
35
36
  var magneticAreas = React.useMemo(function () {
36
37
  var _a;
37
38
  if (magneticAreasProp) {
@@ -106,6 +107,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
106
107
  }
107
108
  };
108
109
  var scrollToArea = function (idx) {
110
+ if (isFirstRender) {
111
+ initialIndexRef.current = idx;
112
+ return;
113
+ }
109
114
  stopSwiping(null);
110
115
  var nextArea = magneticAreas[idx];
111
116
  var nextAreaIdx = getActiveAreaIndex(nextArea);
@@ -269,7 +274,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
269
274
  delta: swipeThreshold,
270
275
  });
271
276
  var handleExited = function (node) {
272
- var idx = initialActiveAreaIndex;
277
+ var idx = initialIndexRef.current;
273
278
  setBackdropOpacity(1);
274
279
  setSheetOffset(isNil(idx) ? magneticAreas[0] : lastMagneticArea - magneticAreas[idx]);
275
280
  setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
@@ -279,7 +284,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
279
284
  }
280
285
  };
281
286
  var handleEnter = function (node, isAppearing) {
282
- onMagnetize === null || onMagnetize === void 0 ? void 0 : onMagnetize(initialActiveAreaIndex !== null && initialActiveAreaIndex !== void 0 ? initialActiveAreaIndex : magneticAreas.length - 1);
287
+ var _a;
288
+ onMagnetize === null || onMagnetize === void 0 ? void 0 : onMagnetize((_a = initialIndexRef.current) !== null && _a !== void 0 ? _a : magneticAreas.length - 1);
283
289
  if (transitionProps.onEnter) {
284
290
  transitionProps.onEnter(node, isAppearing);
285
291
  }
@@ -304,7 +310,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
304
310
  if (!isFirstRender) {
305
311
  // Инициализируем стейт только после того, как была рассчитана высота вьюпорта
306
312
  if (activeAreaIdx === -1) {
307
- var idx = initialActiveAreaIndex;
313
+ var idx = initialIndexRef.current;
308
314
  setSheetOffset(isNil(idx) ? 0 : lastMagneticArea - magneticAreas[idx]);
309
315
  setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
310
316
  }
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"footer":"bottom-sheet__footer_i9nlp","sticky":"bottom-sheet__sticky_i9nlp","highlighted":"bottom-sheet__highlighted_i9nlp","background-accent":"bottom-sheet__background-accent_i9nlp","background-info":"bottom-sheet__background-info_i9nlp","background-attention-muted":"bottom-sheet__background-attention-muted_i9nlp","background-positive-muted":"bottom-sheet__background-positive-muted_i9nlp","background-negative-muted":"bottom-sheet__background-negative-muted_i9nlp","background-primary":"bottom-sheet__background-primary_i9nlp","background-primary-inverted":"bottom-sheet__background-primary-inverted_i9nlp","background-secondary":"bottom-sheet__background-secondary_i9nlp","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_i9nlp","background-tertiary":"bottom-sheet__background-tertiary_i9nlp","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_i9nlp","background-quaternary":"bottom-sheet__background-quaternary_i9nlp","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_i9nlp","background-specialbg-component":"bottom-sheet__background-specialbg-component_i9nlp","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_i9nlp","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_i9nlp","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_i9nlp","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_i9nlp","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_i9nlp","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_i9nlp","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_i9nlp","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_i9nlp"};
14
+ var styles = {"footer":"bottom-sheet__footer_9nz0t","sticky":"bottom-sheet__sticky_9nz0t","highlighted":"bottom-sheet__highlighted_9nz0t","background-accent":"bottom-sheet__background-accent_9nz0t","background-info":"bottom-sheet__background-info_9nz0t","background-attention-muted":"bottom-sheet__background-attention-muted_9nz0t","background-positive-muted":"bottom-sheet__background-positive-muted_9nz0t","background-negative-muted":"bottom-sheet__background-negative-muted_9nz0t","background-primary":"bottom-sheet__background-primary_9nz0t","background-primary-inverted":"bottom-sheet__background-primary-inverted_9nz0t","background-secondary":"bottom-sheet__background-secondary_9nz0t","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_9nz0t","background-tertiary":"bottom-sheet__background-tertiary_9nz0t","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_9nz0t","background-quaternary":"bottom-sheet__background-quaternary_9nz0t","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_9nz0t","background-specialbg-component":"bottom-sheet__background-specialbg-component_9nz0t","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_9nz0t","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_9nz0t","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_9nz0t","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_9nz0t","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_9nz0t","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_9nz0t","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_9nz0t","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_9nz0t"};
15
15
  require('./index.css')
16
16
 
17
17
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1mbg4 */
1
+ /* hash: 1b3zt */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-accent: #ef3124;
@@ -46,58 +46,58 @@
46
46
  /* footer */
47
47
  --bottom-sheet-footer-border-top: 1px solid var(--color-light-neutral-300);
48
48
  --bottom-sheet-footer-background-color: var(--color-light-modal-bg-primary);
49
- } .bottom-sheet__footer_i9nlp {
49
+ } .bottom-sheet__footer_9nz0t {
50
50
  padding: var(--gap-m) var(--gap-m);
51
51
  background-color: var(--color-light-modal-bg-primary);
52
- } .bottom-sheet__sticky_i9nlp {
52
+ } .bottom-sheet__sticky_9nz0t {
53
53
  position: sticky;
54
54
  bottom: 0;
55
55
  z-index: 1;
56
- } .bottom-sheet__highlighted_i9nlp {
56
+ } .bottom-sheet__highlighted_9nz0t {
57
57
  border-top: var(--bottom-sheet-footer-border-top);
58
58
  background-color: var(--bottom-sheet-footer-background-color);
59
- } .bottom-sheet__background-accent_i9nlp {
59
+ } .bottom-sheet__background-accent_9nz0t {
60
60
  background-color: var(--color-light-bg-accent);
61
- } .bottom-sheet__background-info_i9nlp {
61
+ } .bottom-sheet__background-info_9nz0t {
62
62
  background-color: var(--color-light-bg-info);
63
- } .bottom-sheet__background-attention-muted_i9nlp {
63
+ } .bottom-sheet__background-attention-muted_9nz0t {
64
64
  background-color: var(--color-light-bg-attention-muted);
65
- } .bottom-sheet__background-positive-muted_i9nlp {
65
+ } .bottom-sheet__background-positive-muted_9nz0t {
66
66
  background-color: var(--color-light-bg-positive-muted);
67
- } .bottom-sheet__background-negative-muted_i9nlp {
67
+ } .bottom-sheet__background-negative-muted_9nz0t {
68
68
  background-color: var(--color-light-bg-negative-muted);
69
- } .bottom-sheet__background-primary_i9nlp {
69
+ } .bottom-sheet__background-primary_9nz0t {
70
70
  background-color: var(--color-light-bg-primary);
71
- } .bottom-sheet__background-primary-inverted_i9nlp {
71
+ } .bottom-sheet__background-primary-inverted_9nz0t {
72
72
  background-color: var(--color-light-bg-primary-inverted);
73
- } .bottom-sheet__background-secondary_i9nlp {
73
+ } .bottom-sheet__background-secondary_9nz0t {
74
74
  background-color: var(--color-light-bg-secondary);
75
- } .bottom-sheet__background-secondary-inverted_i9nlp {
75
+ } .bottom-sheet__background-secondary-inverted_9nz0t {
76
76
  background-color: var(--color-light-bg-secondary-inverted);
77
- } .bottom-sheet__background-tertiary_i9nlp {
77
+ } .bottom-sheet__background-tertiary_9nz0t {
78
78
  background-color: var(--color-light-bg-tertiary);
79
- } .bottom-sheet__background-tertiary-inverted_i9nlp {
79
+ } .bottom-sheet__background-tertiary-inverted_9nz0t {
80
80
  background-color: var(--color-light-bg-tertiary-inverted);
81
- } .bottom-sheet__background-quaternary_i9nlp {
81
+ } .bottom-sheet__background-quaternary_9nz0t {
82
82
  background-color: var(--color-light-bg-quaternary);
83
- } .bottom-sheet__background-quaternary-inverted_i9nlp {
83
+ } .bottom-sheet__background-quaternary-inverted_9nz0t {
84
84
  background-color: var(--color-light-bg-quaternary-inverted);
85
- } .bottom-sheet__background-specialbg-component_i9nlp {
85
+ } .bottom-sheet__background-specialbg-component_9nz0t {
86
86
  background-color: var(--color-light-specialbg-component);
87
- } .bottom-sheet__background-specialbg-component-inverted_i9nlp {
87
+ } .bottom-sheet__background-specialbg-component-inverted_9nz0t {
88
88
  background-color: var(--color-light-specialbg-component-inverted);
89
- } .bottom-sheet__background-specialbg-primary-grouped_i9nlp {
89
+ } .bottom-sheet__background-specialbg-primary-grouped_9nz0t {
90
90
  background-color: var(--color-light-specialbg-primary-grouped);
91
- } .bottom-sheet__background-specialbg-secondary-grouped_i9nlp {
91
+ } .bottom-sheet__background-specialbg-secondary-grouped_9nz0t {
92
92
  background-color: var(--color-light-specialbg-secondary-grouped);
93
- } .bottom-sheet__background-specialbg-tertiary-grouped_i9nlp {
93
+ } .bottom-sheet__background-specialbg-tertiary-grouped_9nz0t {
94
94
  background-color: var(--color-light-specialbg-tertiary-grouped);
95
- } .bottom-sheet__background-specialbg-secondary-transparent_i9nlp {
95
+ } .bottom-sheet__background-specialbg-secondary-transparent_9nz0t {
96
96
  background-color: var(--color-light-specialbg-secondary-transparent);
97
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_i9nlp {
97
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_9nz0t {
98
98
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
99
- } .bottom-sheet__background-specialbg-tertiary-transparent_i9nlp {
99
+ } .bottom-sheet__background-specialbg-tertiary-transparent_9nz0t {
100
100
  background-color: var(--color-light-specialbg-tertiary-transparent);
101
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_i9nlp {
101
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_9nz0t {
102
102
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
103
103
  }
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1a6a3","hasContent":"bottom-sheet__hasContent_1a6a3","header":"bottom-sheet__header_1a6a3","sticky":"bottom-sheet__sticky_1a6a3","highlighted":"bottom-sheet__highlighted_1a6a3","justifyEnd":"bottom-sheet__justifyEnd_1a6a3","addon":"bottom-sheet__addon_1a6a3","addonFixed":"bottom-sheet__addonFixed_1a6a3","title":"bottom-sheet__title_1a6a3","titleCenter":"bottom-sheet__titleCenter_1a6a3","titleLeft":"bottom-sheet__titleLeft_1a6a3","trimTitle":"bottom-sheet__trimTitle_1a6a3"};
16
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_tkyol","hasContent":"bottom-sheet__hasContent_tkyol","header":"bottom-sheet__header_tkyol","sticky":"bottom-sheet__sticky_tkyol","highlighted":"bottom-sheet__highlighted_tkyol","justifyEnd":"bottom-sheet__justifyEnd_tkyol","addon":"bottom-sheet__addon_tkyol","addonFixed":"bottom-sheet__addonFixed_tkyol","title":"bottom-sheet__title_tkyol","titleCenter":"bottom-sheet__titleCenter_tkyol","titleLeft":"bottom-sheet__titleLeft_tkyol","trimTitle":"bottom-sheet__trimTitle_tkyol"};
17
17
  require('./index.css')
18
18
 
19
19
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: zp4sj */
1
+ /* hash: ohohc */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-300: #e7e8eb; /* 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 */
@@ -30,42 +30,42 @@
30
30
  --bottom-sheet-title-font-family: var(--font-family-system);
31
31
 
32
32
  /* footer */
33
- } .bottom-sheet__headerWrapper_1a6a3 {
33
+ } .bottom-sheet__headerWrapper_tkyol {
34
34
  padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
35
35
  border-top-left-radius: inherit;
36
36
  border-top-right-radius: inherit;
37
37
  z-index: 1;
38
- } .bottom-sheet__hasContent_1a6a3 {
38
+ } .bottom-sheet__hasContent_tkyol {
39
39
  background-color: inherit;
40
- } .bottom-sheet__header_1a6a3 {
40
+ } .bottom-sheet__header_tkyol {
41
41
  display: flex;
42
- } .bottom-sheet__sticky_1a6a3 {
42
+ } .bottom-sheet__sticky_tkyol {
43
43
  position: sticky;
44
44
  top: 0;
45
- } .bottom-sheet__highlighted_1a6a3 {
45
+ } .bottom-sheet__highlighted_tkyol {
46
46
  border-bottom: var(--bottom-sheet-header-border-bottom);
47
- } .bottom-sheet__justifyEnd_1a6a3 {
47
+ } .bottom-sheet__justifyEnd_tkyol {
48
48
  justify-content: flex-end;
49
- } .bottom-sheet__addon_1a6a3 {
49
+ } .bottom-sheet__addon_tkyol {
50
50
  display: flex;
51
51
  justify-content: center;
52
52
  align-items: center;
53
53
  min-width: 48px;
54
54
  height: 48px;
55
- } .bottom-sheet__addonFixed_1a6a3 {
55
+ } .bottom-sheet__addonFixed_tkyol {
56
56
  position: fixed;
57
- } .bottom-sheet__title_1a6a3 {
57
+ } .bottom-sheet__title_tkyol {
58
58
  padding: var(--gap-s) var(--gap-xs);
59
59
  width: 100%;
60
60
  font-size: var(--bottom-sheet-title-font-size);
61
61
  font-weight: var(--bottom-sheet-title-font-weight);
62
62
  line-height: var(--bottom-sheet-title-line-height);
63
63
  font-family: var(--bottom-sheet-title-font-family);
64
- } .bottom-sheet__titleCenter_1a6a3 {
64
+ } .bottom-sheet__titleCenter_tkyol {
65
65
  text-align: center;
66
- } .bottom-sheet__titleLeft_1a6a3 {
66
+ } .bottom-sheet__titleLeft_tkyol {
67
67
  text-align: left;
68
- } .bottom-sheet__trimTitle_1a6a3 {
68
+ } .bottom-sheet__trimTitle_tkyol {
69
69
  white-space: nowrap;
70
70
  overflow: hidden;
71
71
  text-overflow: ellipsis;
package/cssm/component.js CHANGED
@@ -31,6 +31,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
31
31
  var fullHeight = reactDiv100vh.use100vh() || 0;
32
32
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
33
33
  var isFirstRender = fullHeight === 0;
34
+ var initialIndexRef = React.useRef(initialActiveAreaIndex);
34
35
  var magneticAreas = React.useMemo(function () {
35
36
  var _a;
36
37
  if (magneticAreasProp) {
@@ -105,6 +106,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
105
106
  }
106
107
  };
107
108
  var scrollToArea = function (idx) {
109
+ if (isFirstRender) {
110
+ initialIndexRef.current = idx;
111
+ return;
112
+ }
108
113
  stopSwiping(null);
109
114
  var nextArea = magneticAreas[idx];
110
115
  var nextAreaIdx = getActiveAreaIndex(nextArea);
@@ -268,7 +273,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
268
273
  delta: swipeThreshold,
269
274
  });
270
275
  var handleExited = function (node) {
271
- var idx = initialActiveAreaIndex;
276
+ var idx = initialIndexRef.current;
272
277
  setBackdropOpacity(1);
273
278
  setSheetOffset(isNil(idx) ? magneticAreas[0] : lastMagneticArea - magneticAreas[idx]);
274
279
  setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
@@ -278,7 +283,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
278
283
  }
279
284
  };
280
285
  var handleEnter = function (node, isAppearing) {
281
- onMagnetize === null || onMagnetize === void 0 ? void 0 : onMagnetize(initialActiveAreaIndex !== null && initialActiveAreaIndex !== void 0 ? initialActiveAreaIndex : magneticAreas.length - 1);
286
+ var _a;
287
+ onMagnetize === null || onMagnetize === void 0 ? void 0 : onMagnetize((_a = initialIndexRef.current) !== null && _a !== void 0 ? _a : magneticAreas.length - 1);
282
288
  if (transitionProps.onEnter) {
283
289
  transitionProps.onEnter(node, isAppearing);
284
290
  }
@@ -303,7 +309,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
303
309
  if (!isFirstRender) {
304
310
  // Инициализируем стейт только после того, как была рассчитана высота вьюпорта
305
311
  if (activeAreaIdx === -1) {
306
- var idx = initialActiveAreaIndex;
312
+ var idx = initialIndexRef.current;
307
313
  setSheetOffset(isNil(idx) ? 0 : lastMagneticArea - magneticAreas[idx]);
308
314
  setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
309
315
  }
package/esm/component.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { __assign } from 'tslib';
2
- import React, { forwardRef, useMemo, useState, useRef, useEffect, useImperativeHandle } from 'react';
2
+ import React, { forwardRef, useRef, useMemo, useState, useEffect, useImperativeHandle } from 'react';
3
3
  import { use100vh } from 'react-div-100vh';
4
4
  import mergeRefs from 'react-merge-refs';
5
5
  import { useSwipeable } from 'react-swipeable';
@@ -12,7 +12,7 @@ import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js'
12
12
  import { horizontalDirections } from './consts/swipeConsts.js';
13
13
  import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VELOCITY, CLOSE_OFFSET } from './utils.js';
14
14
 
15
- var styles = {"modal":"bottom-sheet__modal_exdrv","wrapper":"bottom-sheet__wrapper_exdrv","fullscreen":"bottom-sheet__fullscreen_exdrv","component":"bottom-sheet__component_exdrv","withTransition":"bottom-sheet__withTransition_exdrv","scrollableContainer":"bottom-sheet__scrollableContainer_exdrv","marker":"bottom-sheet__marker_exdrv","defaultMarker":"bottom-sheet__defaultMarker_exdrv","content":"bottom-sheet__content_exdrv","noHeader":"bottom-sheet__noHeader_exdrv","noFooter":"bottom-sheet__noFooter_exdrv","scrollLocked":"bottom-sheet__scrollLocked_exdrv","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_exdrv","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_exdrv","appear":"bottom-sheet__appear_exdrv","enter":"bottom-sheet__enter_exdrv","appearActive":"bottom-sheet__appearActive_exdrv","enterActive":"bottom-sheet__enterActive_exdrv","enterDone":"bottom-sheet__enterDone_exdrv","appearDone":"bottom-sheet__appearDone_exdrv","exit":"bottom-sheet__exit_exdrv","exitActive":"bottom-sheet__exitActive_exdrv","safeAreaBottom":"bottom-sheet__safeAreaBottom_exdrv","background-accent":"bottom-sheet__background-accent_exdrv","background-info":"bottom-sheet__background-info_exdrv","background-attention-muted":"bottom-sheet__background-attention-muted_exdrv","background-positive-muted":"bottom-sheet__background-positive-muted_exdrv","background-negative-muted":"bottom-sheet__background-negative-muted_exdrv","background-primary":"bottom-sheet__background-primary_exdrv","background-primary-inverted":"bottom-sheet__background-primary-inverted_exdrv","background-secondary":"bottom-sheet__background-secondary_exdrv","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_exdrv","background-tertiary":"bottom-sheet__background-tertiary_exdrv","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_exdrv","background-quaternary":"bottom-sheet__background-quaternary_exdrv","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_exdrv","background-specialbg-component":"bottom-sheet__background-specialbg-component_exdrv","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_exdrv","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_exdrv","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_exdrv","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_exdrv","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_exdrv","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_exdrv","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_exdrv","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_exdrv"};
15
+ var styles = {"modal":"bottom-sheet__modal_1j3fs","wrapper":"bottom-sheet__wrapper_1j3fs","fullscreen":"bottom-sheet__fullscreen_1j3fs","component":"bottom-sheet__component_1j3fs","withTransition":"bottom-sheet__withTransition_1j3fs","scrollableContainer":"bottom-sheet__scrollableContainer_1j3fs","marker":"bottom-sheet__marker_1j3fs","defaultMarker":"bottom-sheet__defaultMarker_1j3fs","content":"bottom-sheet__content_1j3fs","noHeader":"bottom-sheet__noHeader_1j3fs","noFooter":"bottom-sheet__noFooter_1j3fs","scrollLocked":"bottom-sheet__scrollLocked_1j3fs","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1j3fs","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1j3fs","appear":"bottom-sheet__appear_1j3fs","enter":"bottom-sheet__enter_1j3fs","appearActive":"bottom-sheet__appearActive_1j3fs","enterActive":"bottom-sheet__enterActive_1j3fs","enterDone":"bottom-sheet__enterDone_1j3fs","appearDone":"bottom-sheet__appearDone_1j3fs","exit":"bottom-sheet__exit_1j3fs","exitActive":"bottom-sheet__exitActive_1j3fs","safeAreaBottom":"bottom-sheet__safeAreaBottom_1j3fs","background-accent":"bottom-sheet__background-accent_1j3fs","background-info":"bottom-sheet__background-info_1j3fs","background-attention-muted":"bottom-sheet__background-attention-muted_1j3fs","background-positive-muted":"bottom-sheet__background-positive-muted_1j3fs","background-negative-muted":"bottom-sheet__background-negative-muted_1j3fs","background-primary":"bottom-sheet__background-primary_1j3fs","background-primary-inverted":"bottom-sheet__background-primary-inverted_1j3fs","background-secondary":"bottom-sheet__background-secondary_1j3fs","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1j3fs","background-tertiary":"bottom-sheet__background-tertiary_1j3fs","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1j3fs","background-quaternary":"bottom-sheet__background-quaternary_1j3fs","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1j3fs","background-specialbg-component":"bottom-sheet__background-specialbg-component_1j3fs","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1j3fs","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1j3fs","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1j3fs","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1j3fs","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1j3fs","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1j3fs","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1j3fs","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1j3fs"};
16
16
  require('./index.css')
17
17
 
18
18
  var isNil = fnUtils.isNil;
@@ -22,6 +22,7 @@ var BottomSheet = forwardRef(function (_a, ref) {
22
22
  var fullHeight = use100vh() || 0;
23
23
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
24
24
  var isFirstRender = fullHeight === 0;
25
+ var initialIndexRef = useRef(initialActiveAreaIndex);
25
26
  var magneticAreas = useMemo(function () {
26
27
  var _a;
27
28
  if (magneticAreasProp) {
@@ -96,6 +97,10 @@ var BottomSheet = forwardRef(function (_a, ref) {
96
97
  }
97
98
  };
98
99
  var scrollToArea = function (idx) {
100
+ if (isFirstRender) {
101
+ initialIndexRef.current = idx;
102
+ return;
103
+ }
99
104
  stopSwiping(null);
100
105
  var nextArea = magneticAreas[idx];
101
106
  var nextAreaIdx = getActiveAreaIndex(nextArea);
@@ -259,7 +264,7 @@ var BottomSheet = forwardRef(function (_a, ref) {
259
264
  delta: swipeThreshold,
260
265
  });
261
266
  var handleExited = function (node) {
262
- var idx = initialActiveAreaIndex;
267
+ var idx = initialIndexRef.current;
263
268
  setBackdropOpacity(1);
264
269
  setSheetOffset(isNil(idx) ? magneticAreas[0] : lastMagneticArea - magneticAreas[idx]);
265
270
  setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
@@ -269,7 +274,8 @@ var BottomSheet = forwardRef(function (_a, ref) {
269
274
  }
270
275
  };
271
276
  var handleEnter = function (node, isAppearing) {
272
- onMagnetize === null || onMagnetize === void 0 ? void 0 : onMagnetize(initialActiveAreaIndex !== null && initialActiveAreaIndex !== void 0 ? initialActiveAreaIndex : magneticAreas.length - 1);
277
+ var _a;
278
+ onMagnetize === null || onMagnetize === void 0 ? void 0 : onMagnetize((_a = initialIndexRef.current) !== null && _a !== void 0 ? _a : magneticAreas.length - 1);
273
279
  if (transitionProps.onEnter) {
274
280
  transitionProps.onEnter(node, isAppearing);
275
281
  }
@@ -294,7 +300,7 @@ var BottomSheet = forwardRef(function (_a, ref) {
294
300
  if (!isFirstRender) {
295
301
  // Инициализируем стейт только после того, как была рассчитана высота вьюпорта
296
302
  if (activeAreaIdx === -1) {
297
- var idx = initialActiveAreaIndex;
303
+ var idx = initialIndexRef.current;
298
304
  setSheetOffset(isNil(idx) ? 0 : lastMagneticArea - magneticAreas[idx]);
299
305
  setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
300
306
  }
@@ -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/esm';
4
4
 
5
- var styles = {"footer":"bottom-sheet__footer_i9nlp","sticky":"bottom-sheet__sticky_i9nlp","highlighted":"bottom-sheet__highlighted_i9nlp","background-accent":"bottom-sheet__background-accent_i9nlp","background-info":"bottom-sheet__background-info_i9nlp","background-attention-muted":"bottom-sheet__background-attention-muted_i9nlp","background-positive-muted":"bottom-sheet__background-positive-muted_i9nlp","background-negative-muted":"bottom-sheet__background-negative-muted_i9nlp","background-primary":"bottom-sheet__background-primary_i9nlp","background-primary-inverted":"bottom-sheet__background-primary-inverted_i9nlp","background-secondary":"bottom-sheet__background-secondary_i9nlp","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_i9nlp","background-tertiary":"bottom-sheet__background-tertiary_i9nlp","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_i9nlp","background-quaternary":"bottom-sheet__background-quaternary_i9nlp","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_i9nlp","background-specialbg-component":"bottom-sheet__background-specialbg-component_i9nlp","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_i9nlp","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_i9nlp","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_i9nlp","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_i9nlp","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_i9nlp","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_i9nlp","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_i9nlp","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_i9nlp"};
5
+ var styles = {"footer":"bottom-sheet__footer_9nz0t","sticky":"bottom-sheet__sticky_9nz0t","highlighted":"bottom-sheet__highlighted_9nz0t","background-accent":"bottom-sheet__background-accent_9nz0t","background-info":"bottom-sheet__background-info_9nz0t","background-attention-muted":"bottom-sheet__background-attention-muted_9nz0t","background-positive-muted":"bottom-sheet__background-positive-muted_9nz0t","background-negative-muted":"bottom-sheet__background-negative-muted_9nz0t","background-primary":"bottom-sheet__background-primary_9nz0t","background-primary-inverted":"bottom-sheet__background-primary-inverted_9nz0t","background-secondary":"bottom-sheet__background-secondary_9nz0t","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_9nz0t","background-tertiary":"bottom-sheet__background-tertiary_9nz0t","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_9nz0t","background-quaternary":"bottom-sheet__background-quaternary_9nz0t","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_9nz0t","background-specialbg-component":"bottom-sheet__background-specialbg-component_9nz0t","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_9nz0t","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_9nz0t","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_9nz0t","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_9nz0t","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_9nz0t","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_9nz0t","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_9nz0t","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_9nz0t"};
6
6
  require('./index.css')
7
7
 
8
8
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1mbg4 */
1
+ /* hash: 1b3zt */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-accent: #ef3124;
@@ -46,58 +46,58 @@
46
46
  /* footer */
47
47
  --bottom-sheet-footer-border-top: 1px solid var(--color-light-neutral-300);
48
48
  --bottom-sheet-footer-background-color: var(--color-light-modal-bg-primary);
49
- } .bottom-sheet__footer_i9nlp {
49
+ } .bottom-sheet__footer_9nz0t {
50
50
  padding: var(--gap-m) var(--gap-m);
51
51
  background-color: var(--color-light-modal-bg-primary);
52
- } .bottom-sheet__sticky_i9nlp {
52
+ } .bottom-sheet__sticky_9nz0t {
53
53
  position: sticky;
54
54
  bottom: 0;
55
55
  z-index: 1;
56
- } .bottom-sheet__highlighted_i9nlp {
56
+ } .bottom-sheet__highlighted_9nz0t {
57
57
  border-top: var(--bottom-sheet-footer-border-top);
58
58
  background-color: var(--bottom-sheet-footer-background-color);
59
- } .bottom-sheet__background-accent_i9nlp {
59
+ } .bottom-sheet__background-accent_9nz0t {
60
60
  background-color: var(--color-light-bg-accent);
61
- } .bottom-sheet__background-info_i9nlp {
61
+ } .bottom-sheet__background-info_9nz0t {
62
62
  background-color: var(--color-light-bg-info);
63
- } .bottom-sheet__background-attention-muted_i9nlp {
63
+ } .bottom-sheet__background-attention-muted_9nz0t {
64
64
  background-color: var(--color-light-bg-attention-muted);
65
- } .bottom-sheet__background-positive-muted_i9nlp {
65
+ } .bottom-sheet__background-positive-muted_9nz0t {
66
66
  background-color: var(--color-light-bg-positive-muted);
67
- } .bottom-sheet__background-negative-muted_i9nlp {
67
+ } .bottom-sheet__background-negative-muted_9nz0t {
68
68
  background-color: var(--color-light-bg-negative-muted);
69
- } .bottom-sheet__background-primary_i9nlp {
69
+ } .bottom-sheet__background-primary_9nz0t {
70
70
  background-color: var(--color-light-bg-primary);
71
- } .bottom-sheet__background-primary-inverted_i9nlp {
71
+ } .bottom-sheet__background-primary-inverted_9nz0t {
72
72
  background-color: var(--color-light-bg-primary-inverted);
73
- } .bottom-sheet__background-secondary_i9nlp {
73
+ } .bottom-sheet__background-secondary_9nz0t {
74
74
  background-color: var(--color-light-bg-secondary);
75
- } .bottom-sheet__background-secondary-inverted_i9nlp {
75
+ } .bottom-sheet__background-secondary-inverted_9nz0t {
76
76
  background-color: var(--color-light-bg-secondary-inverted);
77
- } .bottom-sheet__background-tertiary_i9nlp {
77
+ } .bottom-sheet__background-tertiary_9nz0t {
78
78
  background-color: var(--color-light-bg-tertiary);
79
- } .bottom-sheet__background-tertiary-inverted_i9nlp {
79
+ } .bottom-sheet__background-tertiary-inverted_9nz0t {
80
80
  background-color: var(--color-light-bg-tertiary-inverted);
81
- } .bottom-sheet__background-quaternary_i9nlp {
81
+ } .bottom-sheet__background-quaternary_9nz0t {
82
82
  background-color: var(--color-light-bg-quaternary);
83
- } .bottom-sheet__background-quaternary-inverted_i9nlp {
83
+ } .bottom-sheet__background-quaternary-inverted_9nz0t {
84
84
  background-color: var(--color-light-bg-quaternary-inverted);
85
- } .bottom-sheet__background-specialbg-component_i9nlp {
85
+ } .bottom-sheet__background-specialbg-component_9nz0t {
86
86
  background-color: var(--color-light-specialbg-component);
87
- } .bottom-sheet__background-specialbg-component-inverted_i9nlp {
87
+ } .bottom-sheet__background-specialbg-component-inverted_9nz0t {
88
88
  background-color: var(--color-light-specialbg-component-inverted);
89
- } .bottom-sheet__background-specialbg-primary-grouped_i9nlp {
89
+ } .bottom-sheet__background-specialbg-primary-grouped_9nz0t {
90
90
  background-color: var(--color-light-specialbg-primary-grouped);
91
- } .bottom-sheet__background-specialbg-secondary-grouped_i9nlp {
91
+ } .bottom-sheet__background-specialbg-secondary-grouped_9nz0t {
92
92
  background-color: var(--color-light-specialbg-secondary-grouped);
93
- } .bottom-sheet__background-specialbg-tertiary-grouped_i9nlp {
93
+ } .bottom-sheet__background-specialbg-tertiary-grouped_9nz0t {
94
94
  background-color: var(--color-light-specialbg-tertiary-grouped);
95
- } .bottom-sheet__background-specialbg-secondary-transparent_i9nlp {
95
+ } .bottom-sheet__background-specialbg-secondary-transparent_9nz0t {
96
96
  background-color: var(--color-light-specialbg-secondary-transparent);
97
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_i9nlp {
97
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_9nz0t {
98
98
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
99
- } .bottom-sheet__background-specialbg-tertiary-transparent_i9nlp {
99
+ } .bottom-sheet__background-specialbg-tertiary-transparent_9nz0t {
100
100
  background-color: var(--color-light-specialbg-tertiary-transparent);
101
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_i9nlp {
101
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_9nz0t {
102
102
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
103
103
  }
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
5
5
  import { NavigationBarPrivate } from '@alfalab/core-components-navigation-bar-private/esm';
6
6
 
7
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1a6a3","hasContent":"bottom-sheet__hasContent_1a6a3","header":"bottom-sheet__header_1a6a3","sticky":"bottom-sheet__sticky_1a6a3","highlighted":"bottom-sheet__highlighted_1a6a3","justifyEnd":"bottom-sheet__justifyEnd_1a6a3","addon":"bottom-sheet__addon_1a6a3","addonFixed":"bottom-sheet__addonFixed_1a6a3","title":"bottom-sheet__title_1a6a3","titleCenter":"bottom-sheet__titleCenter_1a6a3","titleLeft":"bottom-sheet__titleLeft_1a6a3","trimTitle":"bottom-sheet__trimTitle_1a6a3"};
7
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_tkyol","hasContent":"bottom-sheet__hasContent_tkyol","header":"bottom-sheet__header_tkyol","sticky":"bottom-sheet__sticky_tkyol","highlighted":"bottom-sheet__highlighted_tkyol","justifyEnd":"bottom-sheet__justifyEnd_tkyol","addon":"bottom-sheet__addon_tkyol","addonFixed":"bottom-sheet__addonFixed_tkyol","title":"bottom-sheet__title_tkyol","titleCenter":"bottom-sheet__titleCenter_tkyol","titleLeft":"bottom-sheet__titleLeft_tkyol","trimTitle":"bottom-sheet__trimTitle_tkyol"};
8
8
  require('./index.css')
9
9
 
10
10
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: zp4sj */
1
+ /* hash: ohohc */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-300: #e7e8eb; /* 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 */
@@ -30,42 +30,42 @@
30
30
  --bottom-sheet-title-font-family: var(--font-family-system);
31
31
 
32
32
  /* footer */
33
- } .bottom-sheet__headerWrapper_1a6a3 {
33
+ } .bottom-sheet__headerWrapper_tkyol {
34
34
  padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
35
35
  border-top-left-radius: inherit;
36
36
  border-top-right-radius: inherit;
37
37
  z-index: 1;
38
- } .bottom-sheet__hasContent_1a6a3 {
38
+ } .bottom-sheet__hasContent_tkyol {
39
39
  background-color: inherit;
40
- } .bottom-sheet__header_1a6a3 {
40
+ } .bottom-sheet__header_tkyol {
41
41
  display: flex;
42
- } .bottom-sheet__sticky_1a6a3 {
42
+ } .bottom-sheet__sticky_tkyol {
43
43
  position: sticky;
44
44
  top: 0;
45
- } .bottom-sheet__highlighted_1a6a3 {
45
+ } .bottom-sheet__highlighted_tkyol {
46
46
  border-bottom: var(--bottom-sheet-header-border-bottom);
47
- } .bottom-sheet__justifyEnd_1a6a3 {
47
+ } .bottom-sheet__justifyEnd_tkyol {
48
48
  justify-content: flex-end;
49
- } .bottom-sheet__addon_1a6a3 {
49
+ } .bottom-sheet__addon_tkyol {
50
50
  display: flex;
51
51
  justify-content: center;
52
52
  align-items: center;
53
53
  min-width: 48px;
54
54
  height: 48px;
55
- } .bottom-sheet__addonFixed_1a6a3 {
55
+ } .bottom-sheet__addonFixed_tkyol {
56
56
  position: fixed;
57
- } .bottom-sheet__title_1a6a3 {
57
+ } .bottom-sheet__title_tkyol {
58
58
  padding: var(--gap-s) var(--gap-xs);
59
59
  width: 100%;
60
60
  font-size: var(--bottom-sheet-title-font-size);
61
61
  font-weight: var(--bottom-sheet-title-font-weight);
62
62
  line-height: var(--bottom-sheet-title-line-height);
63
63
  font-family: var(--bottom-sheet-title-font-family);
64
- } .bottom-sheet__titleCenter_1a6a3 {
64
+ } .bottom-sheet__titleCenter_tkyol {
65
65
  text-align: center;
66
- } .bottom-sheet__titleLeft_1a6a3 {
66
+ } .bottom-sheet__titleLeft_tkyol {
67
67
  text-align: left;
68
- } .bottom-sheet__trimTitle_1a6a3 {
68
+ } .bottom-sheet__trimTitle_tkyol {
69
69
  white-space: nowrap;
70
70
  overflow: hidden;
71
71
  text-overflow: ellipsis;