@alfalab/core-components-bottom-sheet 6.2.1 → 6.2.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
@@ -29,7 +29,7 @@ var getDataTestId = function (dataTestId, element) {
29
29
 
30
30
  var isClient = function () { return typeof window !== 'undefined'; };
31
31
 
32
- var styles = {"modal":"bottom-sheet__modal_7jq8y","wrapper":"bottom-sheet__wrapper_7jq8y","component":"bottom-sheet__component_7jq8y","withTransition":"bottom-sheet__withTransition_7jq8y","scrollableContainer":"bottom-sheet__scrollableContainer_7jq8y","marker":"bottom-sheet__marker_7jq8y","content":"bottom-sheet__content_7jq8y","noHeader":"bottom-sheet__noHeader_7jq8y","noFooter":"bottom-sheet__noFooter_7jq8y","scrollLocked":"bottom-sheet__scrollLocked_7jq8y","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_7jq8y","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_7jq8y","appear":"bottom-sheet__appear_7jq8y","enter":"bottom-sheet__enter_7jq8y","appearActive":"bottom-sheet__appearActive_7jq8y","enterActive":"bottom-sheet__enterActive_7jq8y","enterDone":"bottom-sheet__enterDone_7jq8y","appearDone":"bottom-sheet__appearDone_7jq8y","exit":"bottom-sheet__exit_7jq8y","exitActive":"bottom-sheet__exitActive_7jq8y","background-accent":"bottom-sheet__background-accent_7jq8y","background-info":"bottom-sheet__background-info_7jq8y","background-attention-muted":"bottom-sheet__background-attention-muted_7jq8y","background-positive-muted":"bottom-sheet__background-positive-muted_7jq8y","background-negative-muted":"bottom-sheet__background-negative-muted_7jq8y","background-primary":"bottom-sheet__background-primary_7jq8y","background-primary-inverted":"bottom-sheet__background-primary-inverted_7jq8y","background-secondary":"bottom-sheet__background-secondary_7jq8y","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_7jq8y","background-tertiary":"bottom-sheet__background-tertiary_7jq8y","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_7jq8y","background-quaternary":"bottom-sheet__background-quaternary_7jq8y","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_7jq8y","background-specialbg-component":"bottom-sheet__background-specialbg-component_7jq8y","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_7jq8y","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_7jq8y","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_7jq8y","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_7jq8y","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_7jq8y","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_7jq8y","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_7jq8y","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_7jq8y"};
32
+ var styles = {"modal":"bottom-sheet__modal_8udi2","wrapper":"bottom-sheet__wrapper_8udi2","component":"bottom-sheet__component_8udi2","withTransition":"bottom-sheet__withTransition_8udi2","scrollableContainer":"bottom-sheet__scrollableContainer_8udi2","marker":"bottom-sheet__marker_8udi2","content":"bottom-sheet__content_8udi2","noHeader":"bottom-sheet__noHeader_8udi2","noFooter":"bottom-sheet__noFooter_8udi2","scrollLocked":"bottom-sheet__scrollLocked_8udi2","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_8udi2","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_8udi2","appear":"bottom-sheet__appear_8udi2","enter":"bottom-sheet__enter_8udi2","appearActive":"bottom-sheet__appearActive_8udi2","enterActive":"bottom-sheet__enterActive_8udi2","enterDone":"bottom-sheet__enterDone_8udi2","appearDone":"bottom-sheet__appearDone_8udi2","exit":"bottom-sheet__exit_8udi2","exitActive":"bottom-sheet__exitActive_8udi2","background-accent":"bottom-sheet__background-accent_8udi2","background-info":"bottom-sheet__background-info_8udi2","background-attention-muted":"bottom-sheet__background-attention-muted_8udi2","background-positive-muted":"bottom-sheet__background-positive-muted_8udi2","background-negative-muted":"bottom-sheet__background-negative-muted_8udi2","background-primary":"bottom-sheet__background-primary_8udi2","background-primary-inverted":"bottom-sheet__background-primary-inverted_8udi2","background-secondary":"bottom-sheet__background-secondary_8udi2","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_8udi2","background-tertiary":"bottom-sheet__background-tertiary_8udi2","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_8udi2","background-quaternary":"bottom-sheet__background-quaternary_8udi2","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_8udi2","background-specialbg-component":"bottom-sheet__background-specialbg-component_8udi2","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_8udi2","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_8udi2","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_8udi2","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_8udi2","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_8udi2","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_8udi2","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_8udi2","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_8udi2"};
33
33
  require('./index.css')
34
34
 
35
35
  var BottomSheet = React.forwardRef(function (_a, ref) {
@@ -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_156iw","sticky":"bottom-sheet__sticky_156iw","highlighted":"bottom-sheet__highlighted_156iw","background-accent":"bottom-sheet__background-accent_156iw","background-info":"bottom-sheet__background-info_156iw","background-attention-muted":"bottom-sheet__background-attention-muted_156iw","background-positive-muted":"bottom-sheet__background-positive-muted_156iw","background-negative-muted":"bottom-sheet__background-negative-muted_156iw","background-primary":"bottom-sheet__background-primary_156iw","background-primary-inverted":"bottom-sheet__background-primary-inverted_156iw","background-secondary":"bottom-sheet__background-secondary_156iw","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_156iw","background-tertiary":"bottom-sheet__background-tertiary_156iw","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_156iw","background-quaternary":"bottom-sheet__background-quaternary_156iw","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_156iw","background-specialbg-component":"bottom-sheet__background-specialbg-component_156iw","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_156iw","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_156iw","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_156iw","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_156iw","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_156iw","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_156iw","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_156iw","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_156iw"};
14
+ var styles = {"footer":"bottom-sheet__footer_10cnk","sticky":"bottom-sheet__sticky_10cnk","highlighted":"bottom-sheet__highlighted_10cnk","background-accent":"bottom-sheet__background-accent_10cnk","background-info":"bottom-sheet__background-info_10cnk","background-attention-muted":"bottom-sheet__background-attention-muted_10cnk","background-positive-muted":"bottom-sheet__background-positive-muted_10cnk","background-negative-muted":"bottom-sheet__background-negative-muted_10cnk","background-primary":"bottom-sheet__background-primary_10cnk","background-primary-inverted":"bottom-sheet__background-primary-inverted_10cnk","background-secondary":"bottom-sheet__background-secondary_10cnk","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_10cnk","background-tertiary":"bottom-sheet__background-tertiary_10cnk","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_10cnk","background-quaternary":"bottom-sheet__background-quaternary_10cnk","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_10cnk","background-specialbg-component":"bottom-sheet__background-specialbg-component_10cnk","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_10cnk","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_10cnk","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_10cnk","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_10cnk","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_10cnk","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_10cnk","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_10cnk","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_10cnk"};
15
15
  require('./index.css')
16
16
 
17
17
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 13uyg */
1
+ /* hash: vd9o6 */
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_156iw {
44
+ } .bottom-sheet__footer_10cnk {
45
45
  padding: var(--gap-m) var(--gap-m);
46
46
  background-color: var(--color-light-bg-primary);
47
- } .bottom-sheet__sticky_156iw {
47
+ } .bottom-sheet__sticky_10cnk {
48
48
  position: sticky;
49
49
  bottom: 0;
50
50
  z-index: 1;
51
- } .bottom-sheet__highlighted_156iw {
51
+ } .bottom-sheet__highlighted_10cnk {
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_156iw {
54
+ } .bottom-sheet__background-accent_10cnk {
55
55
  background-color: var(--color-light-bg-accent);
56
- } .bottom-sheet__background-info_156iw {
56
+ } .bottom-sheet__background-info_10cnk {
57
57
  background-color: var(--color-light-bg-info);
58
- } .bottom-sheet__background-attention-muted_156iw {
58
+ } .bottom-sheet__background-attention-muted_10cnk {
59
59
  background-color: var(--color-light-bg-attention-muted);
60
- } .bottom-sheet__background-positive-muted_156iw {
60
+ } .bottom-sheet__background-positive-muted_10cnk {
61
61
  background-color: var(--color-light-bg-positive-muted);
62
- } .bottom-sheet__background-negative-muted_156iw {
62
+ } .bottom-sheet__background-negative-muted_10cnk {
63
63
  background-color: var(--color-light-bg-negative-muted);
64
- } .bottom-sheet__background-primary_156iw {
64
+ } .bottom-sheet__background-primary_10cnk {
65
65
  background-color: var(--color-light-bg-primary);
66
- } .bottom-sheet__background-primary-inverted_156iw {
66
+ } .bottom-sheet__background-primary-inverted_10cnk {
67
67
  background-color: var(--color-light-bg-primary-inverted);
68
- } .bottom-sheet__background-secondary_156iw {
68
+ } .bottom-sheet__background-secondary_10cnk {
69
69
  background-color: var(--color-light-bg-secondary);
70
- } .bottom-sheet__background-secondary-inverted_156iw {
70
+ } .bottom-sheet__background-secondary-inverted_10cnk {
71
71
  background-color: var(--color-light-bg-secondary-inverted);
72
- } .bottom-sheet__background-tertiary_156iw {
72
+ } .bottom-sheet__background-tertiary_10cnk {
73
73
  background-color: var(--color-light-bg-tertiary);
74
- } .bottom-sheet__background-tertiary-inverted_156iw {
74
+ } .bottom-sheet__background-tertiary-inverted_10cnk {
75
75
  background-color: var(--color-light-bg-tertiary-inverted);
76
- } .bottom-sheet__background-quaternary_156iw {
76
+ } .bottom-sheet__background-quaternary_10cnk {
77
77
  background-color: var(--color-light-bg-quaternary);
78
- } .bottom-sheet__background-quaternary-inverted_156iw {
78
+ } .bottom-sheet__background-quaternary-inverted_10cnk {
79
79
  background-color: var(--color-light-bg-quaternary-inverted);
80
- } .bottom-sheet__background-specialbg-component_156iw {
80
+ } .bottom-sheet__background-specialbg-component_10cnk {
81
81
  background-color: var(--color-light-specialbg-component);
82
- } .bottom-sheet__background-specialbg-component-inverted_156iw {
82
+ } .bottom-sheet__background-specialbg-component-inverted_10cnk {
83
83
  background-color: var(--color-light-specialbg-component-inverted);
84
- } .bottom-sheet__background-specialbg-primary-grouped_156iw {
84
+ } .bottom-sheet__background-specialbg-primary-grouped_10cnk {
85
85
  background-color: var(--color-light-specialbg-primary-grouped);
86
- } .bottom-sheet__background-specialbg-secondary-grouped_156iw {
86
+ } .bottom-sheet__background-specialbg-secondary-grouped_10cnk {
87
87
  background-color: var(--color-light-specialbg-secondary-grouped);
88
- } .bottom-sheet__background-specialbg-tertiary-grouped_156iw {
88
+ } .bottom-sheet__background-specialbg-tertiary-grouped_10cnk {
89
89
  background-color: var(--color-light-specialbg-tertiary-grouped);
90
- } .bottom-sheet__background-specialbg-secondary-transparent_156iw {
90
+ } .bottom-sheet__background-specialbg-secondary-transparent_10cnk {
91
91
  background-color: var(--color-light-specialbg-secondary-transparent);
92
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_156iw {
92
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_10cnk {
93
93
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
94
- } .bottom-sheet__background-specialbg-tertiary-transparent_156iw {
94
+ } .bottom-sheet__background-specialbg-tertiary-transparent_10cnk {
95
95
  background-color: var(--color-light-specialbg-tertiary-transparent);
96
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_156iw {
96
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_10cnk {
97
97
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
98
98
  }
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
16
 
17
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1xspb","hasContent":"bottom-sheet__hasContent_1xspb","header":"bottom-sheet__header_1xspb","sticky":"bottom-sheet__sticky_1xspb","highlighted":"bottom-sheet__highlighted_1xspb","justifyEnd":"bottom-sheet__justifyEnd_1xspb","addon":"bottom-sheet__addon_1xspb","addonFixed":"bottom-sheet__addonFixed_1xspb","title":"bottom-sheet__title_1xspb","titleCenter":"bottom-sheet__titleCenter_1xspb","titleLeft":"bottom-sheet__titleLeft_1xspb","trimTitle":"bottom-sheet__trimTitle_1xspb"};
17
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1sytz","hasContent":"bottom-sheet__hasContent_1sytz","header":"bottom-sheet__header_1sytz","sticky":"bottom-sheet__sticky_1sytz","highlighted":"bottom-sheet__highlighted_1sytz","justifyEnd":"bottom-sheet__justifyEnd_1sytz","addon":"bottom-sheet__addon_1sytz","addonFixed":"bottom-sheet__addonFixed_1sytz","title":"bottom-sheet__title_1sytz","titleCenter":"bottom-sheet__titleCenter_1sytz","titleLeft":"bottom-sheet__titleLeft_1sytz","trimTitle":"bottom-sheet__trimTitle_1sytz"};
18
18
  require('./index.css')
19
19
 
20
20
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 6qb4a */
1
+ /* hash: 1hxdt */
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_1xspb {
30
+ } .bottom-sheet__headerWrapper_1sytz {
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_1xspb {
35
+ } .bottom-sheet__hasContent_1sytz {
36
36
  background-color: inherit;
37
- } .bottom-sheet__header_1xspb {
37
+ } .bottom-sheet__header_1sytz {
38
38
  display: flex;
39
- } .bottom-sheet__sticky_1xspb {
39
+ } .bottom-sheet__sticky_1sytz {
40
40
  position: sticky;
41
41
  top: 0;
42
- } .bottom-sheet__highlighted_1xspb {
42
+ } .bottom-sheet__highlighted_1sytz {
43
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
44
- } .bottom-sheet__justifyEnd_1xspb {
44
+ } .bottom-sheet__justifyEnd_1sytz {
45
45
  justify-content: flex-end;
46
- } .bottom-sheet__addon_1xspb {
46
+ } .bottom-sheet__addon_1sytz {
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_1xspb {
52
+ } .bottom-sheet__addonFixed_1sytz {
53
53
  position: fixed;
54
- } .bottom-sheet__title_1xspb {
54
+ } .bottom-sheet__title_1sytz {
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_1xspb {
61
+ } .bottom-sheet__titleCenter_1sytz {
62
62
  text-align: center;
63
- } .bottom-sheet__titleLeft_1xspb {
63
+ } .bottom-sheet__titleLeft_1sytz {
64
64
  text-align: left;
65
- } .bottom-sheet__trimTitle_1xspb {
65
+ } .bottom-sheet__trimTitle_1sytz {
66
66
  white-space: nowrap;
67
67
  overflow: hidden;
68
68
  text-overflow: ellipsis;
package/cssm/types.d.ts CHANGED
@@ -186,7 +186,7 @@ type BottomSheetProps = {
186
186
  * По-умолчанию -[0, window.innerHeight - '24px']
187
187
  * массив должен состоять минимум из 2 элементов
188
188
  */
189
- magneticAreas?: number[];
189
+ magneticAreas?: Array<number | string>;
190
190
  /**
191
191
  * Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
192
192
  */
package/esm/component.js CHANGED
@@ -19,7 +19,7 @@ var getDataTestId = function (dataTestId, element) {
19
19
 
20
20
  var isClient = function () { return typeof window !== 'undefined'; };
21
21
 
22
- var styles = {"modal":"bottom-sheet__modal_7jq8y","wrapper":"bottom-sheet__wrapper_7jq8y","component":"bottom-sheet__component_7jq8y","withTransition":"bottom-sheet__withTransition_7jq8y","scrollableContainer":"bottom-sheet__scrollableContainer_7jq8y","marker":"bottom-sheet__marker_7jq8y","content":"bottom-sheet__content_7jq8y","noHeader":"bottom-sheet__noHeader_7jq8y","noFooter":"bottom-sheet__noFooter_7jq8y","scrollLocked":"bottom-sheet__scrollLocked_7jq8y","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_7jq8y","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_7jq8y","appear":"bottom-sheet__appear_7jq8y","enter":"bottom-sheet__enter_7jq8y","appearActive":"bottom-sheet__appearActive_7jq8y","enterActive":"bottom-sheet__enterActive_7jq8y","enterDone":"bottom-sheet__enterDone_7jq8y","appearDone":"bottom-sheet__appearDone_7jq8y","exit":"bottom-sheet__exit_7jq8y","exitActive":"bottom-sheet__exitActive_7jq8y","background-accent":"bottom-sheet__background-accent_7jq8y","background-info":"bottom-sheet__background-info_7jq8y","background-attention-muted":"bottom-sheet__background-attention-muted_7jq8y","background-positive-muted":"bottom-sheet__background-positive-muted_7jq8y","background-negative-muted":"bottom-sheet__background-negative-muted_7jq8y","background-primary":"bottom-sheet__background-primary_7jq8y","background-primary-inverted":"bottom-sheet__background-primary-inverted_7jq8y","background-secondary":"bottom-sheet__background-secondary_7jq8y","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_7jq8y","background-tertiary":"bottom-sheet__background-tertiary_7jq8y","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_7jq8y","background-quaternary":"bottom-sheet__background-quaternary_7jq8y","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_7jq8y","background-specialbg-component":"bottom-sheet__background-specialbg-component_7jq8y","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_7jq8y","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_7jq8y","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_7jq8y","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_7jq8y","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_7jq8y","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_7jq8y","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_7jq8y","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_7jq8y"};
22
+ var styles = {"modal":"bottom-sheet__modal_8udi2","wrapper":"bottom-sheet__wrapper_8udi2","component":"bottom-sheet__component_8udi2","withTransition":"bottom-sheet__withTransition_8udi2","scrollableContainer":"bottom-sheet__scrollableContainer_8udi2","marker":"bottom-sheet__marker_8udi2","content":"bottom-sheet__content_8udi2","noHeader":"bottom-sheet__noHeader_8udi2","noFooter":"bottom-sheet__noFooter_8udi2","scrollLocked":"bottom-sheet__scrollLocked_8udi2","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_8udi2","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_8udi2","appear":"bottom-sheet__appear_8udi2","enter":"bottom-sheet__enter_8udi2","appearActive":"bottom-sheet__appearActive_8udi2","enterActive":"bottom-sheet__enterActive_8udi2","enterDone":"bottom-sheet__enterDone_8udi2","appearDone":"bottom-sheet__appearDone_8udi2","exit":"bottom-sheet__exit_8udi2","exitActive":"bottom-sheet__exitActive_8udi2","background-accent":"bottom-sheet__background-accent_8udi2","background-info":"bottom-sheet__background-info_8udi2","background-attention-muted":"bottom-sheet__background-attention-muted_8udi2","background-positive-muted":"bottom-sheet__background-positive-muted_8udi2","background-negative-muted":"bottom-sheet__background-negative-muted_8udi2","background-primary":"bottom-sheet__background-primary_8udi2","background-primary-inverted":"bottom-sheet__background-primary-inverted_8udi2","background-secondary":"bottom-sheet__background-secondary_8udi2","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_8udi2","background-tertiary":"bottom-sheet__background-tertiary_8udi2","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_8udi2","background-quaternary":"bottom-sheet__background-quaternary_8udi2","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_8udi2","background-specialbg-component":"bottom-sheet__background-specialbg-component_8udi2","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_8udi2","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_8udi2","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_8udi2","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_8udi2","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_8udi2","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_8udi2","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_8udi2","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_8udi2"};
23
23
  require('./index.css')
24
24
 
25
25
  var BottomSheet = forwardRef(function (_a, ref) {
@@ -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_156iw","sticky":"bottom-sheet__sticky_156iw","highlighted":"bottom-sheet__highlighted_156iw","background-accent":"bottom-sheet__background-accent_156iw","background-info":"bottom-sheet__background-info_156iw","background-attention-muted":"bottom-sheet__background-attention-muted_156iw","background-positive-muted":"bottom-sheet__background-positive-muted_156iw","background-negative-muted":"bottom-sheet__background-negative-muted_156iw","background-primary":"bottom-sheet__background-primary_156iw","background-primary-inverted":"bottom-sheet__background-primary-inverted_156iw","background-secondary":"bottom-sheet__background-secondary_156iw","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_156iw","background-tertiary":"bottom-sheet__background-tertiary_156iw","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_156iw","background-quaternary":"bottom-sheet__background-quaternary_156iw","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_156iw","background-specialbg-component":"bottom-sheet__background-specialbg-component_156iw","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_156iw","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_156iw","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_156iw","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_156iw","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_156iw","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_156iw","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_156iw","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_156iw"};
5
+ var styles = {"footer":"bottom-sheet__footer_10cnk","sticky":"bottom-sheet__sticky_10cnk","highlighted":"bottom-sheet__highlighted_10cnk","background-accent":"bottom-sheet__background-accent_10cnk","background-info":"bottom-sheet__background-info_10cnk","background-attention-muted":"bottom-sheet__background-attention-muted_10cnk","background-positive-muted":"bottom-sheet__background-positive-muted_10cnk","background-negative-muted":"bottom-sheet__background-negative-muted_10cnk","background-primary":"bottom-sheet__background-primary_10cnk","background-primary-inverted":"bottom-sheet__background-primary-inverted_10cnk","background-secondary":"bottom-sheet__background-secondary_10cnk","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_10cnk","background-tertiary":"bottom-sheet__background-tertiary_10cnk","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_10cnk","background-quaternary":"bottom-sheet__background-quaternary_10cnk","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_10cnk","background-specialbg-component":"bottom-sheet__background-specialbg-component_10cnk","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_10cnk","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_10cnk","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_10cnk","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_10cnk","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_10cnk","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_10cnk","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_10cnk","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_10cnk"};
6
6
  require('./index.css')
7
7
 
8
8
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 13uyg */
1
+ /* hash: vd9o6 */
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_156iw {
44
+ } .bottom-sheet__footer_10cnk {
45
45
  padding: var(--gap-m) var(--gap-m);
46
46
  background-color: var(--color-light-bg-primary);
47
- } .bottom-sheet__sticky_156iw {
47
+ } .bottom-sheet__sticky_10cnk {
48
48
  position: sticky;
49
49
  bottom: 0;
50
50
  z-index: 1;
51
- } .bottom-sheet__highlighted_156iw {
51
+ } .bottom-sheet__highlighted_10cnk {
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_156iw {
54
+ } .bottom-sheet__background-accent_10cnk {
55
55
  background-color: var(--color-light-bg-accent);
56
- } .bottom-sheet__background-info_156iw {
56
+ } .bottom-sheet__background-info_10cnk {
57
57
  background-color: var(--color-light-bg-info);
58
- } .bottom-sheet__background-attention-muted_156iw {
58
+ } .bottom-sheet__background-attention-muted_10cnk {
59
59
  background-color: var(--color-light-bg-attention-muted);
60
- } .bottom-sheet__background-positive-muted_156iw {
60
+ } .bottom-sheet__background-positive-muted_10cnk {
61
61
  background-color: var(--color-light-bg-positive-muted);
62
- } .bottom-sheet__background-negative-muted_156iw {
62
+ } .bottom-sheet__background-negative-muted_10cnk {
63
63
  background-color: var(--color-light-bg-negative-muted);
64
- } .bottom-sheet__background-primary_156iw {
64
+ } .bottom-sheet__background-primary_10cnk {
65
65
  background-color: var(--color-light-bg-primary);
66
- } .bottom-sheet__background-primary-inverted_156iw {
66
+ } .bottom-sheet__background-primary-inverted_10cnk {
67
67
  background-color: var(--color-light-bg-primary-inverted);
68
- } .bottom-sheet__background-secondary_156iw {
68
+ } .bottom-sheet__background-secondary_10cnk {
69
69
  background-color: var(--color-light-bg-secondary);
70
- } .bottom-sheet__background-secondary-inverted_156iw {
70
+ } .bottom-sheet__background-secondary-inverted_10cnk {
71
71
  background-color: var(--color-light-bg-secondary-inverted);
72
- } .bottom-sheet__background-tertiary_156iw {
72
+ } .bottom-sheet__background-tertiary_10cnk {
73
73
  background-color: var(--color-light-bg-tertiary);
74
- } .bottom-sheet__background-tertiary-inverted_156iw {
74
+ } .bottom-sheet__background-tertiary-inverted_10cnk {
75
75
  background-color: var(--color-light-bg-tertiary-inverted);
76
- } .bottom-sheet__background-quaternary_156iw {
76
+ } .bottom-sheet__background-quaternary_10cnk {
77
77
  background-color: var(--color-light-bg-quaternary);
78
- } .bottom-sheet__background-quaternary-inverted_156iw {
78
+ } .bottom-sheet__background-quaternary-inverted_10cnk {
79
79
  background-color: var(--color-light-bg-quaternary-inverted);
80
- } .bottom-sheet__background-specialbg-component_156iw {
80
+ } .bottom-sheet__background-specialbg-component_10cnk {
81
81
  background-color: var(--color-light-specialbg-component);
82
- } .bottom-sheet__background-specialbg-component-inverted_156iw {
82
+ } .bottom-sheet__background-specialbg-component-inverted_10cnk {
83
83
  background-color: var(--color-light-specialbg-component-inverted);
84
- } .bottom-sheet__background-specialbg-primary-grouped_156iw {
84
+ } .bottom-sheet__background-specialbg-primary-grouped_10cnk {
85
85
  background-color: var(--color-light-specialbg-primary-grouped);
86
- } .bottom-sheet__background-specialbg-secondary-grouped_156iw {
86
+ } .bottom-sheet__background-specialbg-secondary-grouped_10cnk {
87
87
  background-color: var(--color-light-specialbg-secondary-grouped);
88
- } .bottom-sheet__background-specialbg-tertiary-grouped_156iw {
88
+ } .bottom-sheet__background-specialbg-tertiary-grouped_10cnk {
89
89
  background-color: var(--color-light-specialbg-tertiary-grouped);
90
- } .bottom-sheet__background-specialbg-secondary-transparent_156iw {
90
+ } .bottom-sheet__background-specialbg-secondary-transparent_10cnk {
91
91
  background-color: var(--color-light-specialbg-secondary-transparent);
92
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_156iw {
92
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_10cnk {
93
93
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
94
- } .bottom-sheet__background-specialbg-tertiary-transparent_156iw {
94
+ } .bottom-sheet__background-specialbg-tertiary-transparent_10cnk {
95
95
  background-color: var(--color-light-specialbg-tertiary-transparent);
96
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_156iw {
96
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_10cnk {
97
97
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
98
98
  }
@@ -5,7 +5,7 @@ import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
5
5
  import { NavigationBar } from '@alfalab/core-components-navigation-bar/esm';
6
6
  import { HEADER_OFFSET } from '../../utils.js';
7
7
 
8
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1xspb","hasContent":"bottom-sheet__hasContent_1xspb","header":"bottom-sheet__header_1xspb","sticky":"bottom-sheet__sticky_1xspb","highlighted":"bottom-sheet__highlighted_1xspb","justifyEnd":"bottom-sheet__justifyEnd_1xspb","addon":"bottom-sheet__addon_1xspb","addonFixed":"bottom-sheet__addonFixed_1xspb","title":"bottom-sheet__title_1xspb","titleCenter":"bottom-sheet__titleCenter_1xspb","titleLeft":"bottom-sheet__titleLeft_1xspb","trimTitle":"bottom-sheet__trimTitle_1xspb"};
8
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1sytz","hasContent":"bottom-sheet__hasContent_1sytz","header":"bottom-sheet__header_1sytz","sticky":"bottom-sheet__sticky_1sytz","highlighted":"bottom-sheet__highlighted_1sytz","justifyEnd":"bottom-sheet__justifyEnd_1sytz","addon":"bottom-sheet__addon_1sytz","addonFixed":"bottom-sheet__addonFixed_1sytz","title":"bottom-sheet__title_1sytz","titleCenter":"bottom-sheet__titleCenter_1sytz","titleLeft":"bottom-sheet__titleLeft_1sytz","trimTitle":"bottom-sheet__trimTitle_1sytz"};
9
9
  require('./index.css')
10
10
 
11
11
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 6qb4a */
1
+ /* hash: 1hxdt */
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_1xspb {
30
+ } .bottom-sheet__headerWrapper_1sytz {
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_1xspb {
35
+ } .bottom-sheet__hasContent_1sytz {
36
36
  background-color: inherit;
37
- } .bottom-sheet__header_1xspb {
37
+ } .bottom-sheet__header_1sytz {
38
38
  display: flex;
39
- } .bottom-sheet__sticky_1xspb {
39
+ } .bottom-sheet__sticky_1sytz {
40
40
  position: sticky;
41
41
  top: 0;
42
- } .bottom-sheet__highlighted_1xspb {
42
+ } .bottom-sheet__highlighted_1sytz {
43
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
44
- } .bottom-sheet__justifyEnd_1xspb {
44
+ } .bottom-sheet__justifyEnd_1sytz {
45
45
  justify-content: flex-end;
46
- } .bottom-sheet__addon_1xspb {
46
+ } .bottom-sheet__addon_1sytz {
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_1xspb {
52
+ } .bottom-sheet__addonFixed_1sytz {
53
53
  position: fixed;
54
- } .bottom-sheet__title_1xspb {
54
+ } .bottom-sheet__title_1sytz {
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_1xspb {
61
+ } .bottom-sheet__titleCenter_1sytz {
62
62
  text-align: center;
63
- } .bottom-sheet__titleLeft_1xspb {
63
+ } .bottom-sheet__titleLeft_1sytz {
64
64
  text-align: left;
65
- } .bottom-sheet__trimTitle_1xspb {
65
+ } .bottom-sheet__trimTitle_1sytz {
66
66
  white-space: nowrap;
67
67
  overflow: hidden;
68
68
  text-overflow: ellipsis;
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1n72d */
1
+ /* hash: 18aay */
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_7jq8y {
48
+ } .bottom-sheet__modal_8udi2 {
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_7jq8y {
55
+ } .bottom-sheet__wrapper_8udi2 {
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_7jq8y {
61
+ } .bottom-sheet__component_8udi2 {
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_7jq8y {
69
+ } .bottom-sheet__withTransition_8udi2 {
70
70
  transition: var(--bottom-sheet-out-transition);
71
- } .bottom-sheet__scrollableContainer_7jq8y {
71
+ } .bottom-sheet__scrollableContainer_8udi2 {
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_7jq8y {
78
+ } .bottom-sheet__marker_8udi2 {
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_7jq8y {
88
+ } .bottom-sheet__content_8udi2 {
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_7jq8y {
97
+ } .bottom-sheet__noHeader_8udi2 {
98
98
  padding-top: var(--gap-m);
99
- } .bottom-sheet__noFooter_7jq8y {
99
+ } .bottom-sheet__noFooter_8udi2 {
100
100
  padding-bottom: var(--gap-m);
101
- } .bottom-sheet__scrollLocked_7jq8y {
101
+ } .bottom-sheet__scrollLocked_8udi2 {
102
102
  overflow: hidden;
103
- } .bottom-sheet__hiddenScrollbar_7jq8y {
103
+ } .bottom-sheet__hiddenScrollbar_8udi2 {
104
104
  scrollbar-width: none
105
- } .bottom-sheet__hiddenScrollbar_7jq8y::-webkit-scrollbar {
105
+ } .bottom-sheet__hiddenScrollbar_8udi2::-webkit-scrollbar {
106
106
  width: 0;
107
107
  height: 0;
108
- } .bottom-sheet__disabledPointerEvents_7jq8y {
108
+ } .bottom-sheet__disabledPointerEvents_8udi2 {
109
109
  pointer-events: none;
110
- } .bottom-sheet__appear_7jq8y .bottom-sheet__wrapper_7jq8y, .bottom-sheet__enter_7jq8y .bottom-sheet__wrapper_7jq8y {
110
+ } .bottom-sheet__appear_8udi2 .bottom-sheet__wrapper_8udi2, .bottom-sheet__enter_8udi2 .bottom-sheet__wrapper_8udi2 {
111
111
  transition: none;
112
- } .bottom-sheet__appearActive_7jq8y .bottom-sheet__wrapper_7jq8y, .bottom-sheet__enterActive_7jq8y .bottom-sheet__wrapper_7jq8y {
112
+ } .bottom-sheet__appearActive_8udi2 .bottom-sheet__wrapper_8udi2, .bottom-sheet__enterActive_8udi2 .bottom-sheet__wrapper_8udi2 {
113
113
  transition: var(--bottom-sheet-in-transition);
114
114
  transform: translateY(0);
115
- } .bottom-sheet__enterDone_7jq8y .bottom-sheet__wrapper_7jq8y, .bottom-sheet__appearDone_7jq8y .bottom-sheet__wrapper_7jq8y {
115
+ } .bottom-sheet__enterDone_8udi2 .bottom-sheet__wrapper_8udi2, .bottom-sheet__appearDone_8udi2 .bottom-sheet__wrapper_8udi2 {
116
116
  transform: translateY(0);
117
- } .bottom-sheet__exit_7jq8y .bottom-sheet__wrapper_7jq8y {
117
+ } .bottom-sheet__exit_8udi2 .bottom-sheet__wrapper_8udi2 {
118
118
  transform: translateY(0);
119
- } .bottom-sheet__exitActive_7jq8y .bottom-sheet__wrapper_7jq8y {
119
+ } .bottom-sheet__exitActive_8udi2 .bottom-sheet__wrapper_8udi2 {
120
120
  transition: var(--bottom-sheet-out-transition);
121
121
  transform: translateY(100%);
122
- } .bottom-sheet__background-accent_7jq8y {
122
+ } .bottom-sheet__background-accent_8udi2 {
123
123
  background-color: var(--color-light-bg-accent);
124
- } .bottom-sheet__background-info_7jq8y {
124
+ } .bottom-sheet__background-info_8udi2 {
125
125
  background-color: var(--color-light-bg-info);
126
- } .bottom-sheet__background-attention-muted_7jq8y {
126
+ } .bottom-sheet__background-attention-muted_8udi2 {
127
127
  background-color: var(--color-light-bg-attention-muted);
128
- } .bottom-sheet__background-positive-muted_7jq8y {
128
+ } .bottom-sheet__background-positive-muted_8udi2 {
129
129
  background-color: var(--color-light-bg-positive-muted);
130
- } .bottom-sheet__background-negative-muted_7jq8y {
130
+ } .bottom-sheet__background-negative-muted_8udi2 {
131
131
  background-color: var(--color-light-bg-negative-muted);
132
- } .bottom-sheet__background-primary_7jq8y {
132
+ } .bottom-sheet__background-primary_8udi2 {
133
133
  background-color: var(--color-light-bg-primary);
134
- } .bottom-sheet__background-primary-inverted_7jq8y {
134
+ } .bottom-sheet__background-primary-inverted_8udi2 {
135
135
  background-color: var(--color-light-bg-primary-inverted);
136
- } .bottom-sheet__background-secondary_7jq8y {
136
+ } .bottom-sheet__background-secondary_8udi2 {
137
137
  background-color: var(--color-light-bg-secondary);
138
- } .bottom-sheet__background-secondary-inverted_7jq8y {
138
+ } .bottom-sheet__background-secondary-inverted_8udi2 {
139
139
  background-color: var(--color-light-bg-secondary-inverted);
140
- } .bottom-sheet__background-tertiary_7jq8y {
140
+ } .bottom-sheet__background-tertiary_8udi2 {
141
141
  background-color: var(--color-light-bg-tertiary);
142
- } .bottom-sheet__background-tertiary-inverted_7jq8y {
142
+ } .bottom-sheet__background-tertiary-inverted_8udi2 {
143
143
  background-color: var(--color-light-bg-tertiary-inverted);
144
- } .bottom-sheet__background-quaternary_7jq8y {
144
+ } .bottom-sheet__background-quaternary_8udi2 {
145
145
  background-color: var(--color-light-bg-quaternary);
146
- } .bottom-sheet__background-quaternary-inverted_7jq8y {
146
+ } .bottom-sheet__background-quaternary-inverted_8udi2 {
147
147
  background-color: var(--color-light-bg-quaternary-inverted);
148
- } .bottom-sheet__background-specialbg-component_7jq8y {
148
+ } .bottom-sheet__background-specialbg-component_8udi2 {
149
149
  background-color: var(--color-light-specialbg-component);
150
- } .bottom-sheet__background-specialbg-component-inverted_7jq8y {
150
+ } .bottom-sheet__background-specialbg-component-inverted_8udi2 {
151
151
  background-color: var(--color-light-specialbg-component-inverted);
152
- } .bottom-sheet__background-specialbg-primary-grouped_7jq8y {
152
+ } .bottom-sheet__background-specialbg-primary-grouped_8udi2 {
153
153
  background-color: var(--color-light-specialbg-primary-grouped);
154
- } .bottom-sheet__background-specialbg-secondary-grouped_7jq8y {
154
+ } .bottom-sheet__background-specialbg-secondary-grouped_8udi2 {
155
155
  background-color: var(--color-light-specialbg-secondary-grouped);
156
- } .bottom-sheet__background-specialbg-tertiary-grouped_7jq8y {
156
+ } .bottom-sheet__background-specialbg-tertiary-grouped_8udi2 {
157
157
  background-color: var(--color-light-specialbg-tertiary-grouped);
158
- } .bottom-sheet__background-specialbg-secondary-transparent_7jq8y {
158
+ } .bottom-sheet__background-specialbg-secondary-transparent_8udi2 {
159
159
  background-color: var(--color-light-specialbg-secondary-transparent);
160
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_7jq8y {
160
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_8udi2 {
161
161
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
162
- } .bottom-sheet__background-specialbg-tertiary-transparent_7jq8y {
162
+ } .bottom-sheet__background-specialbg-tertiary-transparent_8udi2 {
163
163
  background-color: var(--color-light-specialbg-tertiary-transparent);
164
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_7jq8y {
164
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_8udi2 {
165
165
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
166
166
  }
package/esm/types.d.ts CHANGED
@@ -186,7 +186,7 @@ type BottomSheetProps = {
186
186
  * По-умолчанию -[0, window.innerHeight - '24px']
187
187
  * массив должен состоять минимум из 2 элементов
188
188
  */
189
- magneticAreas?: number[];
189
+ magneticAreas?: Array<number | string>;
190
190
  /**
191
191
  * Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
192
192
  */
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1n72d */
1
+ /* hash: 18aay */
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_7jq8y {
48
+ } .bottom-sheet__modal_8udi2 {
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_7jq8y {
55
+ } .bottom-sheet__wrapper_8udi2 {
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_7jq8y {
61
+ } .bottom-sheet__component_8udi2 {
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_7jq8y {
69
+ } .bottom-sheet__withTransition_8udi2 {
70
70
  transition: var(--bottom-sheet-out-transition);
71
- } .bottom-sheet__scrollableContainer_7jq8y {
71
+ } .bottom-sheet__scrollableContainer_8udi2 {
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_7jq8y {
78
+ } .bottom-sheet__marker_8udi2 {
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_7jq8y {
88
+ } .bottom-sheet__content_8udi2 {
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_7jq8y {
97
+ } .bottom-sheet__noHeader_8udi2 {
98
98
  padding-top: var(--gap-m);
99
- } .bottom-sheet__noFooter_7jq8y {
99
+ } .bottom-sheet__noFooter_8udi2 {
100
100
  padding-bottom: var(--gap-m);
101
- } .bottom-sheet__scrollLocked_7jq8y {
101
+ } .bottom-sheet__scrollLocked_8udi2 {
102
102
  overflow: hidden;
103
- } .bottom-sheet__hiddenScrollbar_7jq8y {
103
+ } .bottom-sheet__hiddenScrollbar_8udi2 {
104
104
  scrollbar-width: none
105
- } .bottom-sheet__hiddenScrollbar_7jq8y::-webkit-scrollbar {
105
+ } .bottom-sheet__hiddenScrollbar_8udi2::-webkit-scrollbar {
106
106
  width: 0;
107
107
  height: 0;
108
- } .bottom-sheet__disabledPointerEvents_7jq8y {
108
+ } .bottom-sheet__disabledPointerEvents_8udi2 {
109
109
  pointer-events: none;
110
- } .bottom-sheet__appear_7jq8y .bottom-sheet__wrapper_7jq8y, .bottom-sheet__enter_7jq8y .bottom-sheet__wrapper_7jq8y {
110
+ } .bottom-sheet__appear_8udi2 .bottom-sheet__wrapper_8udi2, .bottom-sheet__enter_8udi2 .bottom-sheet__wrapper_8udi2 {
111
111
  transition: none;
112
- } .bottom-sheet__appearActive_7jq8y .bottom-sheet__wrapper_7jq8y, .bottom-sheet__enterActive_7jq8y .bottom-sheet__wrapper_7jq8y {
112
+ } .bottom-sheet__appearActive_8udi2 .bottom-sheet__wrapper_8udi2, .bottom-sheet__enterActive_8udi2 .bottom-sheet__wrapper_8udi2 {
113
113
  transition: var(--bottom-sheet-in-transition);
114
114
  transform: translateY(0);
115
- } .bottom-sheet__enterDone_7jq8y .bottom-sheet__wrapper_7jq8y, .bottom-sheet__appearDone_7jq8y .bottom-sheet__wrapper_7jq8y {
115
+ } .bottom-sheet__enterDone_8udi2 .bottom-sheet__wrapper_8udi2, .bottom-sheet__appearDone_8udi2 .bottom-sheet__wrapper_8udi2 {
116
116
  transform: translateY(0);
117
- } .bottom-sheet__exit_7jq8y .bottom-sheet__wrapper_7jq8y {
117
+ } .bottom-sheet__exit_8udi2 .bottom-sheet__wrapper_8udi2 {
118
118
  transform: translateY(0);
119
- } .bottom-sheet__exitActive_7jq8y .bottom-sheet__wrapper_7jq8y {
119
+ } .bottom-sheet__exitActive_8udi2 .bottom-sheet__wrapper_8udi2 {
120
120
  transition: var(--bottom-sheet-out-transition);
121
121
  transform: translateY(100%);
122
- } .bottom-sheet__background-accent_7jq8y {
122
+ } .bottom-sheet__background-accent_8udi2 {
123
123
  background-color: var(--color-light-bg-accent);
124
- } .bottom-sheet__background-info_7jq8y {
124
+ } .bottom-sheet__background-info_8udi2 {
125
125
  background-color: var(--color-light-bg-info);
126
- } .bottom-sheet__background-attention-muted_7jq8y {
126
+ } .bottom-sheet__background-attention-muted_8udi2 {
127
127
  background-color: var(--color-light-bg-attention-muted);
128
- } .bottom-sheet__background-positive-muted_7jq8y {
128
+ } .bottom-sheet__background-positive-muted_8udi2 {
129
129
  background-color: var(--color-light-bg-positive-muted);
130
- } .bottom-sheet__background-negative-muted_7jq8y {
130
+ } .bottom-sheet__background-negative-muted_8udi2 {
131
131
  background-color: var(--color-light-bg-negative-muted);
132
- } .bottom-sheet__background-primary_7jq8y {
132
+ } .bottom-sheet__background-primary_8udi2 {
133
133
  background-color: var(--color-light-bg-primary);
134
- } .bottom-sheet__background-primary-inverted_7jq8y {
134
+ } .bottom-sheet__background-primary-inverted_8udi2 {
135
135
  background-color: var(--color-light-bg-primary-inverted);
136
- } .bottom-sheet__background-secondary_7jq8y {
136
+ } .bottom-sheet__background-secondary_8udi2 {
137
137
  background-color: var(--color-light-bg-secondary);
138
- } .bottom-sheet__background-secondary-inverted_7jq8y {
138
+ } .bottom-sheet__background-secondary-inverted_8udi2 {
139
139
  background-color: var(--color-light-bg-secondary-inverted);
140
- } .bottom-sheet__background-tertiary_7jq8y {
140
+ } .bottom-sheet__background-tertiary_8udi2 {
141
141
  background-color: var(--color-light-bg-tertiary);
142
- } .bottom-sheet__background-tertiary-inverted_7jq8y {
142
+ } .bottom-sheet__background-tertiary-inverted_8udi2 {
143
143
  background-color: var(--color-light-bg-tertiary-inverted);
144
- } .bottom-sheet__background-quaternary_7jq8y {
144
+ } .bottom-sheet__background-quaternary_8udi2 {
145
145
  background-color: var(--color-light-bg-quaternary);
146
- } .bottom-sheet__background-quaternary-inverted_7jq8y {
146
+ } .bottom-sheet__background-quaternary-inverted_8udi2 {
147
147
  background-color: var(--color-light-bg-quaternary-inverted);
148
- } .bottom-sheet__background-specialbg-component_7jq8y {
148
+ } .bottom-sheet__background-specialbg-component_8udi2 {
149
149
  background-color: var(--color-light-specialbg-component);
150
- } .bottom-sheet__background-specialbg-component-inverted_7jq8y {
150
+ } .bottom-sheet__background-specialbg-component-inverted_8udi2 {
151
151
  background-color: var(--color-light-specialbg-component-inverted);
152
- } .bottom-sheet__background-specialbg-primary-grouped_7jq8y {
152
+ } .bottom-sheet__background-specialbg-primary-grouped_8udi2 {
153
153
  background-color: var(--color-light-specialbg-primary-grouped);
154
- } .bottom-sheet__background-specialbg-secondary-grouped_7jq8y {
154
+ } .bottom-sheet__background-specialbg-secondary-grouped_8udi2 {
155
155
  background-color: var(--color-light-specialbg-secondary-grouped);
156
- } .bottom-sheet__background-specialbg-tertiary-grouped_7jq8y {
156
+ } .bottom-sheet__background-specialbg-tertiary-grouped_8udi2 {
157
157
  background-color: var(--color-light-specialbg-tertiary-grouped);
158
- } .bottom-sheet__background-specialbg-secondary-transparent_7jq8y {
158
+ } .bottom-sheet__background-specialbg-secondary-transparent_8udi2 {
159
159
  background-color: var(--color-light-specialbg-secondary-transparent);
160
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_7jq8y {
160
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_8udi2 {
161
161
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
162
- } .bottom-sheet__background-specialbg-tertiary-transparent_7jq8y {
162
+ } .bottom-sheet__background-specialbg-tertiary-transparent_8udi2 {
163
163
  background-color: var(--color-light-specialbg-tertiary-transparent);
164
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_7jq8y {
164
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_8udi2 {
165
165
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
166
166
  }
@@ -18,7 +18,7 @@ const getDataTestId = (dataTestId, element) => {
18
18
 
19
19
  const isClient = () => typeof window !== 'undefined';
20
20
 
21
- const styles = {"modal":"bottom-sheet__modal_7jq8y","wrapper":"bottom-sheet__wrapper_7jq8y","component":"bottom-sheet__component_7jq8y","withTransition":"bottom-sheet__withTransition_7jq8y","scrollableContainer":"bottom-sheet__scrollableContainer_7jq8y","marker":"bottom-sheet__marker_7jq8y","content":"bottom-sheet__content_7jq8y","noHeader":"bottom-sheet__noHeader_7jq8y","noFooter":"bottom-sheet__noFooter_7jq8y","scrollLocked":"bottom-sheet__scrollLocked_7jq8y","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_7jq8y","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_7jq8y","appear":"bottom-sheet__appear_7jq8y","enter":"bottom-sheet__enter_7jq8y","appearActive":"bottom-sheet__appearActive_7jq8y","enterActive":"bottom-sheet__enterActive_7jq8y","enterDone":"bottom-sheet__enterDone_7jq8y","appearDone":"bottom-sheet__appearDone_7jq8y","exit":"bottom-sheet__exit_7jq8y","exitActive":"bottom-sheet__exitActive_7jq8y","background-accent":"bottom-sheet__background-accent_7jq8y","background-info":"bottom-sheet__background-info_7jq8y","background-attention-muted":"bottom-sheet__background-attention-muted_7jq8y","background-positive-muted":"bottom-sheet__background-positive-muted_7jq8y","background-negative-muted":"bottom-sheet__background-negative-muted_7jq8y","background-primary":"bottom-sheet__background-primary_7jq8y","background-primary-inverted":"bottom-sheet__background-primary-inverted_7jq8y","background-secondary":"bottom-sheet__background-secondary_7jq8y","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_7jq8y","background-tertiary":"bottom-sheet__background-tertiary_7jq8y","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_7jq8y","background-quaternary":"bottom-sheet__background-quaternary_7jq8y","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_7jq8y","background-specialbg-component":"bottom-sheet__background-specialbg-component_7jq8y","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_7jq8y","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_7jq8y","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_7jq8y","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_7jq8y","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_7jq8y","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_7jq8y","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_7jq8y","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_7jq8y"};
21
+ const styles = {"modal":"bottom-sheet__modal_8udi2","wrapper":"bottom-sheet__wrapper_8udi2","component":"bottom-sheet__component_8udi2","withTransition":"bottom-sheet__withTransition_8udi2","scrollableContainer":"bottom-sheet__scrollableContainer_8udi2","marker":"bottom-sheet__marker_8udi2","content":"bottom-sheet__content_8udi2","noHeader":"bottom-sheet__noHeader_8udi2","noFooter":"bottom-sheet__noFooter_8udi2","scrollLocked":"bottom-sheet__scrollLocked_8udi2","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_8udi2","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_8udi2","appear":"bottom-sheet__appear_8udi2","enter":"bottom-sheet__enter_8udi2","appearActive":"bottom-sheet__appearActive_8udi2","enterActive":"bottom-sheet__enterActive_8udi2","enterDone":"bottom-sheet__enterDone_8udi2","appearDone":"bottom-sheet__appearDone_8udi2","exit":"bottom-sheet__exit_8udi2","exitActive":"bottom-sheet__exitActive_8udi2","background-accent":"bottom-sheet__background-accent_8udi2","background-info":"bottom-sheet__background-info_8udi2","background-attention-muted":"bottom-sheet__background-attention-muted_8udi2","background-positive-muted":"bottom-sheet__background-positive-muted_8udi2","background-negative-muted":"bottom-sheet__background-negative-muted_8udi2","background-primary":"bottom-sheet__background-primary_8udi2","background-primary-inverted":"bottom-sheet__background-primary-inverted_8udi2","background-secondary":"bottom-sheet__background-secondary_8udi2","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_8udi2","background-tertiary":"bottom-sheet__background-tertiary_8udi2","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_8udi2","background-quaternary":"bottom-sheet__background-quaternary_8udi2","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_8udi2","background-specialbg-component":"bottom-sheet__background-specialbg-component_8udi2","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_8udi2","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_8udi2","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_8udi2","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_8udi2","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_8udi2","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_8udi2","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_8udi2","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_8udi2"};
22
22
  require('./index.css')
23
23
 
24
24
  const BottomSheet = forwardRef(({ open, title, container, 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, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, onClose, onBack, onMagnetize, }, ref) => {
@@ -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_156iw","sticky":"bottom-sheet__sticky_156iw","highlighted":"bottom-sheet__highlighted_156iw","background-accent":"bottom-sheet__background-accent_156iw","background-info":"bottom-sheet__background-info_156iw","background-attention-muted":"bottom-sheet__background-attention-muted_156iw","background-positive-muted":"bottom-sheet__background-positive-muted_156iw","background-negative-muted":"bottom-sheet__background-negative-muted_156iw","background-primary":"bottom-sheet__background-primary_156iw","background-primary-inverted":"bottom-sheet__background-primary-inverted_156iw","background-secondary":"bottom-sheet__background-secondary_156iw","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_156iw","background-tertiary":"bottom-sheet__background-tertiary_156iw","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_156iw","background-quaternary":"bottom-sheet__background-quaternary_156iw","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_156iw","background-specialbg-component":"bottom-sheet__background-specialbg-component_156iw","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_156iw","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_156iw","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_156iw","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_156iw","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_156iw","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_156iw","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_156iw","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_156iw"};
5
+ const styles = {"footer":"bottom-sheet__footer_10cnk","sticky":"bottom-sheet__sticky_10cnk","highlighted":"bottom-sheet__highlighted_10cnk","background-accent":"bottom-sheet__background-accent_10cnk","background-info":"bottom-sheet__background-info_10cnk","background-attention-muted":"bottom-sheet__background-attention-muted_10cnk","background-positive-muted":"bottom-sheet__background-positive-muted_10cnk","background-negative-muted":"bottom-sheet__background-negative-muted_10cnk","background-primary":"bottom-sheet__background-primary_10cnk","background-primary-inverted":"bottom-sheet__background-primary-inverted_10cnk","background-secondary":"bottom-sheet__background-secondary_10cnk","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_10cnk","background-tertiary":"bottom-sheet__background-tertiary_10cnk","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_10cnk","background-quaternary":"bottom-sheet__background-quaternary_10cnk","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_10cnk","background-specialbg-component":"bottom-sheet__background-specialbg-component_10cnk","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_10cnk","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_10cnk","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_10cnk","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_10cnk","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_10cnk","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_10cnk","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_10cnk","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_10cnk"};
6
6
  require('./index.css')
7
7
 
8
8
  const Footer = ({ children, className, sticky }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 13uyg */
1
+ /* hash: vd9o6 */
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_156iw {
44
+ } .bottom-sheet__footer_10cnk {
45
45
  padding: var(--gap-m) var(--gap-m);
46
46
  background-color: var(--color-light-bg-primary);
47
- } .bottom-sheet__sticky_156iw {
47
+ } .bottom-sheet__sticky_10cnk {
48
48
  position: sticky;
49
49
  bottom: 0;
50
50
  z-index: 1;
51
- } .bottom-sheet__highlighted_156iw {
51
+ } .bottom-sheet__highlighted_10cnk {
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_156iw {
54
+ } .bottom-sheet__background-accent_10cnk {
55
55
  background-color: var(--color-light-bg-accent);
56
- } .bottom-sheet__background-info_156iw {
56
+ } .bottom-sheet__background-info_10cnk {
57
57
  background-color: var(--color-light-bg-info);
58
- } .bottom-sheet__background-attention-muted_156iw {
58
+ } .bottom-sheet__background-attention-muted_10cnk {
59
59
  background-color: var(--color-light-bg-attention-muted);
60
- } .bottom-sheet__background-positive-muted_156iw {
60
+ } .bottom-sheet__background-positive-muted_10cnk {
61
61
  background-color: var(--color-light-bg-positive-muted);
62
- } .bottom-sheet__background-negative-muted_156iw {
62
+ } .bottom-sheet__background-negative-muted_10cnk {
63
63
  background-color: var(--color-light-bg-negative-muted);
64
- } .bottom-sheet__background-primary_156iw {
64
+ } .bottom-sheet__background-primary_10cnk {
65
65
  background-color: var(--color-light-bg-primary);
66
- } .bottom-sheet__background-primary-inverted_156iw {
66
+ } .bottom-sheet__background-primary-inverted_10cnk {
67
67
  background-color: var(--color-light-bg-primary-inverted);
68
- } .bottom-sheet__background-secondary_156iw {
68
+ } .bottom-sheet__background-secondary_10cnk {
69
69
  background-color: var(--color-light-bg-secondary);
70
- } .bottom-sheet__background-secondary-inverted_156iw {
70
+ } .bottom-sheet__background-secondary-inverted_10cnk {
71
71
  background-color: var(--color-light-bg-secondary-inverted);
72
- } .bottom-sheet__background-tertiary_156iw {
72
+ } .bottom-sheet__background-tertiary_10cnk {
73
73
  background-color: var(--color-light-bg-tertiary);
74
- } .bottom-sheet__background-tertiary-inverted_156iw {
74
+ } .bottom-sheet__background-tertiary-inverted_10cnk {
75
75
  background-color: var(--color-light-bg-tertiary-inverted);
76
- } .bottom-sheet__background-quaternary_156iw {
76
+ } .bottom-sheet__background-quaternary_10cnk {
77
77
  background-color: var(--color-light-bg-quaternary);
78
- } .bottom-sheet__background-quaternary-inverted_156iw {
78
+ } .bottom-sheet__background-quaternary-inverted_10cnk {
79
79
  background-color: var(--color-light-bg-quaternary-inverted);
80
- } .bottom-sheet__background-specialbg-component_156iw {
80
+ } .bottom-sheet__background-specialbg-component_10cnk {
81
81
  background-color: var(--color-light-specialbg-component);
82
- } .bottom-sheet__background-specialbg-component-inverted_156iw {
82
+ } .bottom-sheet__background-specialbg-component-inverted_10cnk {
83
83
  background-color: var(--color-light-specialbg-component-inverted);
84
- } .bottom-sheet__background-specialbg-primary-grouped_156iw {
84
+ } .bottom-sheet__background-specialbg-primary-grouped_10cnk {
85
85
  background-color: var(--color-light-specialbg-primary-grouped);
86
- } .bottom-sheet__background-specialbg-secondary-grouped_156iw {
86
+ } .bottom-sheet__background-specialbg-secondary-grouped_10cnk {
87
87
  background-color: var(--color-light-specialbg-secondary-grouped);
88
- } .bottom-sheet__background-specialbg-tertiary-grouped_156iw {
88
+ } .bottom-sheet__background-specialbg-tertiary-grouped_10cnk {
89
89
  background-color: var(--color-light-specialbg-tertiary-grouped);
90
- } .bottom-sheet__background-specialbg-secondary-transparent_156iw {
90
+ } .bottom-sheet__background-specialbg-secondary-transparent_10cnk {
91
91
  background-color: var(--color-light-specialbg-secondary-transparent);
92
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_156iw {
92
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_10cnk {
93
93
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
94
- } .bottom-sheet__background-specialbg-tertiary-transparent_156iw {
94
+ } .bottom-sheet__background-specialbg-tertiary-transparent_10cnk {
95
95
  background-color: var(--color-light-specialbg-tertiary-transparent);
96
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_156iw {
96
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_10cnk {
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_1xspb","hasContent":"bottom-sheet__hasContent_1xspb","header":"bottom-sheet__header_1xspb","sticky":"bottom-sheet__sticky_1xspb","highlighted":"bottom-sheet__highlighted_1xspb","justifyEnd":"bottom-sheet__justifyEnd_1xspb","addon":"bottom-sheet__addon_1xspb","addonFixed":"bottom-sheet__addonFixed_1xspb","title":"bottom-sheet__title_1xspb","titleCenter":"bottom-sheet__titleCenter_1xspb","titleLeft":"bottom-sheet__titleLeft_1xspb","trimTitle":"bottom-sheet__trimTitle_1xspb"};
7
+ const styles = {"headerWrapper":"bottom-sheet__headerWrapper_1sytz","hasContent":"bottom-sheet__hasContent_1sytz","header":"bottom-sheet__header_1sytz","sticky":"bottom-sheet__sticky_1sytz","highlighted":"bottom-sheet__highlighted_1sytz","justifyEnd":"bottom-sheet__justifyEnd_1sytz","addon":"bottom-sheet__addon_1sytz","addonFixed":"bottom-sheet__addonFixed_1sytz","title":"bottom-sheet__title_1sytz","titleCenter":"bottom-sheet__titleCenter_1sytz","titleLeft":"bottom-sheet__titleLeft_1sytz","trimTitle":"bottom-sheet__trimTitle_1sytz"};
8
8
  require('./index.css')
9
9
 
10
10
  const Header = ({ className, sticky, headerRef, title, children, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 6qb4a */
1
+ /* hash: 1hxdt */
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_1xspb {
30
+ } .bottom-sheet__headerWrapper_1sytz {
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_1xspb {
35
+ } .bottom-sheet__hasContent_1sytz {
36
36
  background-color: inherit;
37
- } .bottom-sheet__header_1xspb {
37
+ } .bottom-sheet__header_1sytz {
38
38
  display: flex;
39
- } .bottom-sheet__sticky_1xspb {
39
+ } .bottom-sheet__sticky_1sytz {
40
40
  position: sticky;
41
41
  top: 0;
42
- } .bottom-sheet__highlighted_1xspb {
42
+ } .bottom-sheet__highlighted_1sytz {
43
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
44
- } .bottom-sheet__justifyEnd_1xspb {
44
+ } .bottom-sheet__justifyEnd_1sytz {
45
45
  justify-content: flex-end;
46
- } .bottom-sheet__addon_1xspb {
46
+ } .bottom-sheet__addon_1sytz {
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_1xspb {
52
+ } .bottom-sheet__addonFixed_1sytz {
53
53
  position: fixed;
54
- } .bottom-sheet__title_1xspb {
54
+ } .bottom-sheet__title_1sytz {
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_1xspb {
61
+ } .bottom-sheet__titleCenter_1sytz {
62
62
  text-align: center;
63
- } .bottom-sheet__titleLeft_1xspb {
63
+ } .bottom-sheet__titleLeft_1sytz {
64
64
  text-align: left;
65
- } .bottom-sheet__trimTitle_1xspb {
65
+ } .bottom-sheet__trimTitle_1sytz {
66
66
  white-space: nowrap;
67
67
  overflow: hidden;
68
68
  text-overflow: ellipsis;
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1n72d */
1
+ /* hash: 18aay */
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_7jq8y {
48
+ } .bottom-sheet__modal_8udi2 {
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_7jq8y {
55
+ } .bottom-sheet__wrapper_8udi2 {
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_7jq8y {
61
+ } .bottom-sheet__component_8udi2 {
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_7jq8y {
69
+ } .bottom-sheet__withTransition_8udi2 {
70
70
  transition: var(--bottom-sheet-out-transition);
71
- } .bottom-sheet__scrollableContainer_7jq8y {
71
+ } .bottom-sheet__scrollableContainer_8udi2 {
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_7jq8y {
78
+ } .bottom-sheet__marker_8udi2 {
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_7jq8y {
88
+ } .bottom-sheet__content_8udi2 {
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_7jq8y {
97
+ } .bottom-sheet__noHeader_8udi2 {
98
98
  padding-top: var(--gap-m);
99
- } .bottom-sheet__noFooter_7jq8y {
99
+ } .bottom-sheet__noFooter_8udi2 {
100
100
  padding-bottom: var(--gap-m);
101
- } .bottom-sheet__scrollLocked_7jq8y {
101
+ } .bottom-sheet__scrollLocked_8udi2 {
102
102
  overflow: hidden;
103
- } .bottom-sheet__hiddenScrollbar_7jq8y {
103
+ } .bottom-sheet__hiddenScrollbar_8udi2 {
104
104
  scrollbar-width: none
105
- } .bottom-sheet__hiddenScrollbar_7jq8y::-webkit-scrollbar {
105
+ } .bottom-sheet__hiddenScrollbar_8udi2::-webkit-scrollbar {
106
106
  width: 0;
107
107
  height: 0;
108
- } .bottom-sheet__disabledPointerEvents_7jq8y {
108
+ } .bottom-sheet__disabledPointerEvents_8udi2 {
109
109
  pointer-events: none;
110
- } .bottom-sheet__appear_7jq8y .bottom-sheet__wrapper_7jq8y, .bottom-sheet__enter_7jq8y .bottom-sheet__wrapper_7jq8y {
110
+ } .bottom-sheet__appear_8udi2 .bottom-sheet__wrapper_8udi2, .bottom-sheet__enter_8udi2 .bottom-sheet__wrapper_8udi2 {
111
111
  transition: none;
112
- } .bottom-sheet__appearActive_7jq8y .bottom-sheet__wrapper_7jq8y, .bottom-sheet__enterActive_7jq8y .bottom-sheet__wrapper_7jq8y {
112
+ } .bottom-sheet__appearActive_8udi2 .bottom-sheet__wrapper_8udi2, .bottom-sheet__enterActive_8udi2 .bottom-sheet__wrapper_8udi2 {
113
113
  transition: var(--bottom-sheet-in-transition);
114
114
  transform: translateY(0);
115
- } .bottom-sheet__enterDone_7jq8y .bottom-sheet__wrapper_7jq8y, .bottom-sheet__appearDone_7jq8y .bottom-sheet__wrapper_7jq8y {
115
+ } .bottom-sheet__enterDone_8udi2 .bottom-sheet__wrapper_8udi2, .bottom-sheet__appearDone_8udi2 .bottom-sheet__wrapper_8udi2 {
116
116
  transform: translateY(0);
117
- } .bottom-sheet__exit_7jq8y .bottom-sheet__wrapper_7jq8y {
117
+ } .bottom-sheet__exit_8udi2 .bottom-sheet__wrapper_8udi2 {
118
118
  transform: translateY(0);
119
- } .bottom-sheet__exitActive_7jq8y .bottom-sheet__wrapper_7jq8y {
119
+ } .bottom-sheet__exitActive_8udi2 .bottom-sheet__wrapper_8udi2 {
120
120
  transition: var(--bottom-sheet-out-transition);
121
121
  transform: translateY(100%);
122
- } .bottom-sheet__background-accent_7jq8y {
122
+ } .bottom-sheet__background-accent_8udi2 {
123
123
  background-color: var(--color-light-bg-accent);
124
- } .bottom-sheet__background-info_7jq8y {
124
+ } .bottom-sheet__background-info_8udi2 {
125
125
  background-color: var(--color-light-bg-info);
126
- } .bottom-sheet__background-attention-muted_7jq8y {
126
+ } .bottom-sheet__background-attention-muted_8udi2 {
127
127
  background-color: var(--color-light-bg-attention-muted);
128
- } .bottom-sheet__background-positive-muted_7jq8y {
128
+ } .bottom-sheet__background-positive-muted_8udi2 {
129
129
  background-color: var(--color-light-bg-positive-muted);
130
- } .bottom-sheet__background-negative-muted_7jq8y {
130
+ } .bottom-sheet__background-negative-muted_8udi2 {
131
131
  background-color: var(--color-light-bg-negative-muted);
132
- } .bottom-sheet__background-primary_7jq8y {
132
+ } .bottom-sheet__background-primary_8udi2 {
133
133
  background-color: var(--color-light-bg-primary);
134
- } .bottom-sheet__background-primary-inverted_7jq8y {
134
+ } .bottom-sheet__background-primary-inverted_8udi2 {
135
135
  background-color: var(--color-light-bg-primary-inverted);
136
- } .bottom-sheet__background-secondary_7jq8y {
136
+ } .bottom-sheet__background-secondary_8udi2 {
137
137
  background-color: var(--color-light-bg-secondary);
138
- } .bottom-sheet__background-secondary-inverted_7jq8y {
138
+ } .bottom-sheet__background-secondary-inverted_8udi2 {
139
139
  background-color: var(--color-light-bg-secondary-inverted);
140
- } .bottom-sheet__background-tertiary_7jq8y {
140
+ } .bottom-sheet__background-tertiary_8udi2 {
141
141
  background-color: var(--color-light-bg-tertiary);
142
- } .bottom-sheet__background-tertiary-inverted_7jq8y {
142
+ } .bottom-sheet__background-tertiary-inverted_8udi2 {
143
143
  background-color: var(--color-light-bg-tertiary-inverted);
144
- } .bottom-sheet__background-quaternary_7jq8y {
144
+ } .bottom-sheet__background-quaternary_8udi2 {
145
145
  background-color: var(--color-light-bg-quaternary);
146
- } .bottom-sheet__background-quaternary-inverted_7jq8y {
146
+ } .bottom-sheet__background-quaternary-inverted_8udi2 {
147
147
  background-color: var(--color-light-bg-quaternary-inverted);
148
- } .bottom-sheet__background-specialbg-component_7jq8y {
148
+ } .bottom-sheet__background-specialbg-component_8udi2 {
149
149
  background-color: var(--color-light-specialbg-component);
150
- } .bottom-sheet__background-specialbg-component-inverted_7jq8y {
150
+ } .bottom-sheet__background-specialbg-component-inverted_8udi2 {
151
151
  background-color: var(--color-light-specialbg-component-inverted);
152
- } .bottom-sheet__background-specialbg-primary-grouped_7jq8y {
152
+ } .bottom-sheet__background-specialbg-primary-grouped_8udi2 {
153
153
  background-color: var(--color-light-specialbg-primary-grouped);
154
- } .bottom-sheet__background-specialbg-secondary-grouped_7jq8y {
154
+ } .bottom-sheet__background-specialbg-secondary-grouped_8udi2 {
155
155
  background-color: var(--color-light-specialbg-secondary-grouped);
156
- } .bottom-sheet__background-specialbg-tertiary-grouped_7jq8y {
156
+ } .bottom-sheet__background-specialbg-tertiary-grouped_8udi2 {
157
157
  background-color: var(--color-light-specialbg-tertiary-grouped);
158
- } .bottom-sheet__background-specialbg-secondary-transparent_7jq8y {
158
+ } .bottom-sheet__background-specialbg-secondary-transparent_8udi2 {
159
159
  background-color: var(--color-light-specialbg-secondary-transparent);
160
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_7jq8y {
160
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_8udi2 {
161
161
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
162
- } .bottom-sheet__background-specialbg-tertiary-transparent_7jq8y {
162
+ } .bottom-sheet__background-specialbg-tertiary-transparent_8udi2 {
163
163
  background-color: var(--color-light-specialbg-tertiary-transparent);
164
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_7jq8y {
164
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_8udi2 {
165
165
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
166
166
  }
package/modern/types.d.ts CHANGED
@@ -186,7 +186,7 @@ type BottomSheetProps = {
186
186
  * По-умолчанию -[0, window.innerHeight - '24px']
187
187
  * массив должен состоять минимум из 2 элементов
188
188
  */
189
- magneticAreas?: number[];
189
+ magneticAreas?: Array<number | string>;
190
190
  /**
191
191
  * Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
192
192
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-bottom-sheet",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "description": "Bottom sheet mobile component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
package/types.d.ts CHANGED
@@ -186,7 +186,7 @@ type BottomSheetProps = {
186
186
  * По-умолчанию -[0, window.innerHeight - '24px']
187
187
  * массив должен состоять минимум из 2 элементов
188
188
  */
189
- magneticAreas?: number[];
189
+ magneticAreas?: Array<number | string>;
190
190
  /**
191
191
  * Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
192
192
  */