@alfalab/core-components-bottom-sheet 6.2.3 → 6.2.4

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.
@@ -1,4 +1,4 @@
1
- /* hash: ld5gf */
1
+ /* hash: 1wk86 */
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_38if0 {
44
+ } .bottom-sheet__footer_ykuo8 {
45
45
  padding: var(--gap-m) var(--gap-m);
46
46
  background-color: var(--color-light-bg-primary);
47
- } .bottom-sheet__sticky_38if0 {
47
+ } .bottom-sheet__sticky_ykuo8 {
48
48
  position: sticky;
49
49
  bottom: 0;
50
50
  z-index: 1;
51
- } .bottom-sheet__highlighted_38if0 {
51
+ } .bottom-sheet__highlighted_ykuo8 {
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_38if0 {
54
+ } .bottom-sheet__background-accent_ykuo8 {
55
55
  background-color: var(--color-light-bg-accent);
56
- } .bottom-sheet__background-info_38if0 {
56
+ } .bottom-sheet__background-info_ykuo8 {
57
57
  background-color: var(--color-light-bg-info);
58
- } .bottom-sheet__background-attention-muted_38if0 {
58
+ } .bottom-sheet__background-attention-muted_ykuo8 {
59
59
  background-color: var(--color-light-bg-attention-muted);
60
- } .bottom-sheet__background-positive-muted_38if0 {
60
+ } .bottom-sheet__background-positive-muted_ykuo8 {
61
61
  background-color: var(--color-light-bg-positive-muted);
62
- } .bottom-sheet__background-negative-muted_38if0 {
62
+ } .bottom-sheet__background-negative-muted_ykuo8 {
63
63
  background-color: var(--color-light-bg-negative-muted);
64
- } .bottom-sheet__background-primary_38if0 {
64
+ } .bottom-sheet__background-primary_ykuo8 {
65
65
  background-color: var(--color-light-bg-primary);
66
- } .bottom-sheet__background-primary-inverted_38if0 {
66
+ } .bottom-sheet__background-primary-inverted_ykuo8 {
67
67
  background-color: var(--color-light-bg-primary-inverted);
68
- } .bottom-sheet__background-secondary_38if0 {
68
+ } .bottom-sheet__background-secondary_ykuo8 {
69
69
  background-color: var(--color-light-bg-secondary);
70
- } .bottom-sheet__background-secondary-inverted_38if0 {
70
+ } .bottom-sheet__background-secondary-inverted_ykuo8 {
71
71
  background-color: var(--color-light-bg-secondary-inverted);
72
- } .bottom-sheet__background-tertiary_38if0 {
72
+ } .bottom-sheet__background-tertiary_ykuo8 {
73
73
  background-color: var(--color-light-bg-tertiary);
74
- } .bottom-sheet__background-tertiary-inverted_38if0 {
74
+ } .bottom-sheet__background-tertiary-inverted_ykuo8 {
75
75
  background-color: var(--color-light-bg-tertiary-inverted);
76
- } .bottom-sheet__background-quaternary_38if0 {
76
+ } .bottom-sheet__background-quaternary_ykuo8 {
77
77
  background-color: var(--color-light-bg-quaternary);
78
- } .bottom-sheet__background-quaternary-inverted_38if0 {
78
+ } .bottom-sheet__background-quaternary-inverted_ykuo8 {
79
79
  background-color: var(--color-light-bg-quaternary-inverted);
80
- } .bottom-sheet__background-specialbg-component_38if0 {
80
+ } .bottom-sheet__background-specialbg-component_ykuo8 {
81
81
  background-color: var(--color-light-specialbg-component);
82
- } .bottom-sheet__background-specialbg-component-inverted_38if0 {
82
+ } .bottom-sheet__background-specialbg-component-inverted_ykuo8 {
83
83
  background-color: var(--color-light-specialbg-component-inverted);
84
- } .bottom-sheet__background-specialbg-primary-grouped_38if0 {
84
+ } .bottom-sheet__background-specialbg-primary-grouped_ykuo8 {
85
85
  background-color: var(--color-light-specialbg-primary-grouped);
86
- } .bottom-sheet__background-specialbg-secondary-grouped_38if0 {
86
+ } .bottom-sheet__background-specialbg-secondary-grouped_ykuo8 {
87
87
  background-color: var(--color-light-specialbg-secondary-grouped);
88
- } .bottom-sheet__background-specialbg-tertiary-grouped_38if0 {
88
+ } .bottom-sheet__background-specialbg-tertiary-grouped_ykuo8 {
89
89
  background-color: var(--color-light-specialbg-tertiary-grouped);
90
- } .bottom-sheet__background-specialbg-secondary-transparent_38if0 {
90
+ } .bottom-sheet__background-specialbg-secondary-transparent_ykuo8 {
91
91
  background-color: var(--color-light-specialbg-secondary-transparent);
92
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_38if0 {
92
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_ykuo8 {
93
93
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
94
- } .bottom-sheet__background-specialbg-tertiary-transparent_38if0 {
94
+ } .bottom-sheet__background-specialbg-tertiary-transparent_ykuo8 {
95
95
  background-color: var(--color-light-specialbg-tertiary-transparent);
96
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_38if0 {
96
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_ykuo8 {
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_ivezv","hasContent":"bottom-sheet__hasContent_ivezv","header":"bottom-sheet__header_ivezv","sticky":"bottom-sheet__sticky_ivezv","highlighted":"bottom-sheet__highlighted_ivezv","justifyEnd":"bottom-sheet__justifyEnd_ivezv","addon":"bottom-sheet__addon_ivezv","addonFixed":"bottom-sheet__addonFixed_ivezv","title":"bottom-sheet__title_ivezv","titleCenter":"bottom-sheet__titleCenter_ivezv","titleLeft":"bottom-sheet__titleLeft_ivezv","trimTitle":"bottom-sheet__trimTitle_ivezv"};
7
+ const styles = {"headerWrapper":"bottom-sheet__headerWrapper_1r713","hasContent":"bottom-sheet__hasContent_1r713","header":"bottom-sheet__header_1r713","sticky":"bottom-sheet__sticky_1r713","highlighted":"bottom-sheet__highlighted_1r713","justifyEnd":"bottom-sheet__justifyEnd_1r713","addon":"bottom-sheet__addon_1r713","addonFixed":"bottom-sheet__addonFixed_1r713","title":"bottom-sheet__title_1r713","titleCenter":"bottom-sheet__titleCenter_1r713","titleLeft":"bottom-sheet__titleLeft_1r713","trimTitle":"bottom-sheet__trimTitle_1r713"};
8
8
  require('./index.css')
9
9
 
10
10
  const Header = ({ className, sticky, headerRef, title, children, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: p8448 */
1
+ /* hash: gqfc1 */
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_ivezv {
30
+ } .bottom-sheet__headerWrapper_1r713 {
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_ivezv {
35
+ } .bottom-sheet__hasContent_1r713 {
36
36
  background-color: inherit;
37
- } .bottom-sheet__header_ivezv {
37
+ } .bottom-sheet__header_1r713 {
38
38
  display: flex;
39
- } .bottom-sheet__sticky_ivezv {
39
+ } .bottom-sheet__sticky_1r713 {
40
40
  position: sticky;
41
41
  top: 0;
42
- } .bottom-sheet__highlighted_ivezv {
42
+ } .bottom-sheet__highlighted_1r713 {
43
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
44
- } .bottom-sheet__justifyEnd_ivezv {
44
+ } .bottom-sheet__justifyEnd_1r713 {
45
45
  justify-content: flex-end;
46
- } .bottom-sheet__addon_ivezv {
46
+ } .bottom-sheet__addon_1r713 {
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_ivezv {
52
+ } .bottom-sheet__addonFixed_1r713 {
53
53
  position: fixed;
54
- } .bottom-sheet__title_ivezv {
54
+ } .bottom-sheet__title_1r713 {
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_ivezv {
61
+ } .bottom-sheet__titleCenter_1r713 {
62
62
  text-align: center;
63
- } .bottom-sheet__titleLeft_ivezv {
63
+ } .bottom-sheet__titleLeft_1r713 {
64
64
  text-align: left;
65
- } .bottom-sheet__trimTitle_ivezv {
65
+ } .bottom-sheet__trimTitle_1r713 {
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: 1eypf */
1
+ /* hash: 101y0 */
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_etbp0 {
48
+ } .bottom-sheet__modal_1gfwj {
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_etbp0 {
55
+ } .bottom-sheet__wrapper_1gfwj {
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_etbp0 {
61
+ } .bottom-sheet__component_1gfwj {
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_etbp0 {
69
+ } .bottom-sheet__withTransition_1gfwj {
70
70
  transition: var(--bottom-sheet-out-transition);
71
- } .bottom-sheet__scrollableContainer_etbp0 {
71
+ } .bottom-sheet__scrollableContainer_1gfwj {
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_etbp0 {
78
+ } .bottom-sheet__marker_1gfwj {
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_etbp0 {
88
+ } .bottom-sheet__content_1gfwj {
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_etbp0 {
97
+ } .bottom-sheet__noHeader_1gfwj {
98
98
  padding-top: var(--gap-m);
99
- } .bottom-sheet__noFooter_etbp0 {
99
+ } .bottom-sheet__noFooter_1gfwj {
100
100
  padding-bottom: var(--gap-m);
101
- } .bottom-sheet__scrollLocked_etbp0 {
101
+ } .bottom-sheet__scrollLocked_1gfwj {
102
102
  overflow: hidden;
103
- } .bottom-sheet__hiddenScrollbar_etbp0 {
103
+ } .bottom-sheet__hiddenScrollbar_1gfwj {
104
104
  scrollbar-width: none
105
- } .bottom-sheet__hiddenScrollbar_etbp0::-webkit-scrollbar {
105
+ } .bottom-sheet__hiddenScrollbar_1gfwj::-webkit-scrollbar {
106
106
  width: 0;
107
107
  height: 0;
108
- } .bottom-sheet__disabledPointerEvents_etbp0 {
108
+ } .bottom-sheet__disabledPointerEvents_1gfwj {
109
109
  pointer-events: none;
110
- } .bottom-sheet__appear_etbp0 .bottom-sheet__wrapper_etbp0, .bottom-sheet__enter_etbp0 .bottom-sheet__wrapper_etbp0 {
110
+ } .bottom-sheet__appear_1gfwj .bottom-sheet__wrapper_1gfwj, .bottom-sheet__enter_1gfwj .bottom-sheet__wrapper_1gfwj {
111
111
  transition: none;
112
- } .bottom-sheet__appearActive_etbp0 .bottom-sheet__wrapper_etbp0, .bottom-sheet__enterActive_etbp0 .bottom-sheet__wrapper_etbp0 {
112
+ } .bottom-sheet__appearActive_1gfwj .bottom-sheet__wrapper_1gfwj, .bottom-sheet__enterActive_1gfwj .bottom-sheet__wrapper_1gfwj {
113
113
  transition: var(--bottom-sheet-in-transition);
114
114
  transform: translateY(0);
115
- } .bottom-sheet__enterDone_etbp0 .bottom-sheet__wrapper_etbp0, .bottom-sheet__appearDone_etbp0 .bottom-sheet__wrapper_etbp0 {
115
+ } .bottom-sheet__enterDone_1gfwj .bottom-sheet__wrapper_1gfwj, .bottom-sheet__appearDone_1gfwj .bottom-sheet__wrapper_1gfwj {
116
116
  transform: translateY(0);
117
- } .bottom-sheet__exit_etbp0 .bottom-sheet__wrapper_etbp0 {
117
+ } .bottom-sheet__exit_1gfwj .bottom-sheet__wrapper_1gfwj {
118
118
  transform: translateY(0);
119
- } .bottom-sheet__exitActive_etbp0 .bottom-sheet__wrapper_etbp0 {
119
+ } .bottom-sheet__exitActive_1gfwj .bottom-sheet__wrapper_1gfwj {
120
120
  transition: var(--bottom-sheet-out-transition);
121
121
  transform: translateY(100%);
122
- } .bottom-sheet__background-accent_etbp0 {
122
+ } .bottom-sheet__background-accent_1gfwj {
123
123
  background-color: var(--color-light-bg-accent);
124
- } .bottom-sheet__background-info_etbp0 {
124
+ } .bottom-sheet__background-info_1gfwj {
125
125
  background-color: var(--color-light-bg-info);
126
- } .bottom-sheet__background-attention-muted_etbp0 {
126
+ } .bottom-sheet__background-attention-muted_1gfwj {
127
127
  background-color: var(--color-light-bg-attention-muted);
128
- } .bottom-sheet__background-positive-muted_etbp0 {
128
+ } .bottom-sheet__background-positive-muted_1gfwj {
129
129
  background-color: var(--color-light-bg-positive-muted);
130
- } .bottom-sheet__background-negative-muted_etbp0 {
130
+ } .bottom-sheet__background-negative-muted_1gfwj {
131
131
  background-color: var(--color-light-bg-negative-muted);
132
- } .bottom-sheet__background-primary_etbp0 {
132
+ } .bottom-sheet__background-primary_1gfwj {
133
133
  background-color: var(--color-light-bg-primary);
134
- } .bottom-sheet__background-primary-inverted_etbp0 {
134
+ } .bottom-sheet__background-primary-inverted_1gfwj {
135
135
  background-color: var(--color-light-bg-primary-inverted);
136
- } .bottom-sheet__background-secondary_etbp0 {
136
+ } .bottom-sheet__background-secondary_1gfwj {
137
137
  background-color: var(--color-light-bg-secondary);
138
- } .bottom-sheet__background-secondary-inverted_etbp0 {
138
+ } .bottom-sheet__background-secondary-inverted_1gfwj {
139
139
  background-color: var(--color-light-bg-secondary-inverted);
140
- } .bottom-sheet__background-tertiary_etbp0 {
140
+ } .bottom-sheet__background-tertiary_1gfwj {
141
141
  background-color: var(--color-light-bg-tertiary);
142
- } .bottom-sheet__background-tertiary-inverted_etbp0 {
142
+ } .bottom-sheet__background-tertiary-inverted_1gfwj {
143
143
  background-color: var(--color-light-bg-tertiary-inverted);
144
- } .bottom-sheet__background-quaternary_etbp0 {
144
+ } .bottom-sheet__background-quaternary_1gfwj {
145
145
  background-color: var(--color-light-bg-quaternary);
146
- } .bottom-sheet__background-quaternary-inverted_etbp0 {
146
+ } .bottom-sheet__background-quaternary-inverted_1gfwj {
147
147
  background-color: var(--color-light-bg-quaternary-inverted);
148
- } .bottom-sheet__background-specialbg-component_etbp0 {
148
+ } .bottom-sheet__background-specialbg-component_1gfwj {
149
149
  background-color: var(--color-light-specialbg-component);
150
- } .bottom-sheet__background-specialbg-component-inverted_etbp0 {
150
+ } .bottom-sheet__background-specialbg-component-inverted_1gfwj {
151
151
  background-color: var(--color-light-specialbg-component-inverted);
152
- } .bottom-sheet__background-specialbg-primary-grouped_etbp0 {
152
+ } .bottom-sheet__background-specialbg-primary-grouped_1gfwj {
153
153
  background-color: var(--color-light-specialbg-primary-grouped);
154
- } .bottom-sheet__background-specialbg-secondary-grouped_etbp0 {
154
+ } .bottom-sheet__background-specialbg-secondary-grouped_1gfwj {
155
155
  background-color: var(--color-light-specialbg-secondary-grouped);
156
- } .bottom-sheet__background-specialbg-tertiary-grouped_etbp0 {
156
+ } .bottom-sheet__background-specialbg-tertiary-grouped_1gfwj {
157
157
  background-color: var(--color-light-specialbg-tertiary-grouped);
158
- } .bottom-sheet__background-specialbg-secondary-transparent_etbp0 {
158
+ } .bottom-sheet__background-specialbg-secondary-transparent_1gfwj {
159
159
  background-color: var(--color-light-specialbg-secondary-transparent);
160
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_etbp0 {
160
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_1gfwj {
161
161
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
162
- } .bottom-sheet__background-specialbg-tertiary-transparent_etbp0 {
162
+ } .bottom-sheet__background-specialbg-tertiary-transparent_1gfwj {
163
163
  background-color: var(--color-light-specialbg-tertiary-transparent);
164
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_etbp0 {
164
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1gfwj {
165
165
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
166
166
  }
package/modern/types.d.ts CHANGED
@@ -36,6 +36,10 @@ type BottomSheetProps = {
36
36
  * Контейнер к которому будут добавляться порталы
37
37
  */
38
38
  container?: BaseModalProps['container'];
39
+ /**
40
+ * Рендерить ли в контейнер через портал.
41
+ */
42
+ usePortal?: BaseModalProps['usePortal'];
39
43
  /**
40
44
  * Дополнительный класс
41
45
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-bottom-sheet",
3
- "version": "6.2.3",
3
+ "version": "6.2.4",
4
4
  "description": "Bottom sheet mobile component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -20,9 +20,7 @@
20
20
  "dependencies": {
21
21
  "@alfalab/core-components-backdrop": "^3.0.6",
22
22
  "@alfalab/core-components-base-modal": "^5.1.3",
23
- "@alfalab/core-components-icon-button": "^6.0.10",
24
- "@alfalab/core-components-typography": "^3.2.1",
25
- "@alfalab/core-components-navigation-bar": "^0.3.1",
23
+ "@alfalab/core-components-navigation-bar": "^0.3.2",
26
24
  "classnames": "^2.3.1",
27
25
  "react-div-100vh": "^0.7.0",
28
26
  "react-merge-refs": "^1.1.0",
package/types.d.ts CHANGED
@@ -36,6 +36,10 @@ type BottomSheetProps = {
36
36
  * Контейнер к которому будут добавляться порталы
37
37
  */
38
38
  container?: BaseModalProps['container'];
39
+ /**
40
+ * Рендерить ли в контейнер через портал.
41
+ */
42
+ usePortal?: BaseModalProps['usePortal'];
39
43
  /**
40
44
  * Дополнительный класс
41
45
  */