@alfalab/core-components-bottom-sheet 4.8.0 → 4.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/CHANGELOG.md +376 -0
  2. package/{component-04a87905.d.ts → dist/component-57800089.d.ts} +1 -0
  3. package/{component-04a87905.js → dist/component-57800089.js} +22 -37
  4. package/{component.d.ts → dist/component.d.ts} +0 -0
  5. package/{component.js → dist/component.js} +2 -2
  6. package/{components → dist/components}/backer/Component.d.ts +0 -0
  7. package/{components → dist/components}/backer/Component.js +2 -2
  8. package/{components → dist/components}/backer/index.css +3 -3
  9. package/{components → dist/components}/closer/Component.d.ts +0 -0
  10. package/{components → dist/components}/closer/Component.js +2 -2
  11. package/{esm → dist}/components/closer/index.css +3 -3
  12. package/{components → dist/components}/footer/Component.d.ts +0 -0
  13. package/{components → dist/components}/footer/Component.js +1 -1
  14. package/{esm → dist}/components/footer/index.css +4 -4
  15. package/{components → dist/components}/header/Component.d.ts +0 -0
  16. package/{components → dist/components}/header/Component.js +2 -2
  17. package/{modern → dist}/components/header/index.css +17 -17
  18. package/{components → dist/components}/swipeable-backdrop/Component.d.ts +0 -0
  19. package/{components → dist/components}/swipeable-backdrop/Component.js +1 -1
  20. package/{cssm/component-c65ae511.d.ts → dist/cssm/component-486b5783.d.ts} +1 -0
  21. package/{cssm/component-c65ae511.js → dist/cssm/component-486b5783.js} +21 -36
  22. package/{cssm → dist/cssm}/component.d.ts +0 -0
  23. package/{cssm → dist/cssm}/component.js +5 -5
  24. package/{cssm → dist/cssm}/components/backer/Component.d.ts +0 -0
  25. package/{cssm → dist/cssm}/components/backer/Component.js +1 -1
  26. package/{cssm → dist/cssm}/components/backer/index.module.css +0 -0
  27. package/{cssm → dist/cssm}/components/closer/Component.d.ts +0 -0
  28. package/{cssm → dist/cssm}/components/closer/Component.js +2 -2
  29. package/{cssm → dist/cssm}/components/closer/index.module.css +0 -0
  30. package/{cssm → dist/cssm}/components/footer/Component.d.ts +0 -0
  31. package/{cssm → dist/cssm}/components/footer/Component.js +1 -1
  32. package/{cssm → dist/cssm}/components/footer/index.module.css +0 -0
  33. package/{cssm → dist/cssm}/components/header/Component.d.ts +0 -0
  34. package/{cssm → dist/cssm}/components/header/Component.js +5 -5
  35. package/{cssm → dist/cssm}/components/header/index.module.css +0 -0
  36. package/{cssm → dist/cssm}/components/swipeable-backdrop/Component.d.ts +0 -0
  37. package/{cssm → dist/cssm}/components/swipeable-backdrop/Component.js +1 -1
  38. package/dist/cssm/index.d.ts +1 -0
  39. package/{cssm → dist/cssm}/index.js +5 -5
  40. package/{cssm → dist/cssm}/index.module.css +0 -3
  41. package/{cssm → dist/cssm}/tslib.es6-ce870b46.d.ts +0 -0
  42. package/{cssm → dist/cssm}/tslib.es6-ce870b46.js +0 -0
  43. package/{esm/component-832b5b27.d.ts → dist/esm/component-756dd676.d.ts} +1 -0
  44. package/{esm/component-832b5b27.js → dist/esm/component-756dd676.js} +24 -39
  45. package/{esm → dist/esm}/component.d.ts +0 -0
  46. package/{esm → dist/esm}/component.js +6 -6
  47. package/{esm → dist/esm}/components/backer/Component.d.ts +0 -0
  48. package/{esm → dist/esm}/components/backer/Component.js +3 -3
  49. package/{modern → dist/esm}/components/backer/index.css +3 -3
  50. package/{esm → dist/esm}/components/closer/Component.d.ts +0 -0
  51. package/{esm → dist/esm}/components/closer/Component.js +4 -4
  52. package/{components → dist/esm/components}/closer/index.css +3 -3
  53. package/{esm → dist/esm}/components/footer/Component.d.ts +0 -0
  54. package/{esm → dist/esm}/components/footer/Component.js +2 -2
  55. package/{modern → dist/esm}/components/footer/index.css +4 -4
  56. package/{esm → dist/esm}/components/header/Component.d.ts +0 -0
  57. package/{esm → dist/esm}/components/header/Component.js +6 -6
  58. package/{esm → dist/esm}/components/header/index.css +17 -17
  59. package/{esm → dist/esm}/components/swipeable-backdrop/Component.d.ts +0 -0
  60. package/{esm → dist/esm}/components/swipeable-backdrop/Component.js +2 -2
  61. package/{esm → dist/esm}/index.css +15 -18
  62. package/dist/esm/index.d.ts +1 -0
  63. package/{esm → dist/esm}/index.js +6 -6
  64. package/{esm/tslib.es6-5e201f5d.d.ts → dist/esm/tslib.es6-b58f8b53.d.ts} +0 -0
  65. package/{esm/tslib.es6-5e201f5d.js → dist/esm/tslib.es6-b58f8b53.js} +0 -0
  66. package/{index.css → dist/index.css} +15 -18
  67. package/dist/index.d.ts +1 -0
  68. package/{index.js → dist/index.js} +2 -2
  69. package/{modern/component-f11740c6.d.ts → dist/modern/component-c363bfdf.d.ts} +1 -0
  70. package/{modern/component-f11740c6.js → dist/modern/component-c363bfdf.js} +23 -38
  71. package/{modern → dist/modern}/component.d.ts +0 -0
  72. package/{modern → dist/modern}/component.js +5 -5
  73. package/{modern → dist/modern}/components/backer/Component.d.ts +0 -0
  74. package/{modern → dist/modern}/components/backer/Component.js +2 -2
  75. package/{esm → dist/modern}/components/backer/index.css +3 -3
  76. package/{modern → dist/modern}/components/closer/Component.d.ts +0 -0
  77. package/{modern → dist/modern}/components/closer/Component.js +3 -3
  78. package/{modern → dist/modern}/components/closer/index.css +3 -3
  79. package/{modern → dist/modern}/components/footer/Component.d.ts +0 -0
  80. package/{modern → dist/modern}/components/footer/Component.js +2 -2
  81. package/{components → dist/modern/components}/footer/index.css +4 -4
  82. package/{modern → dist/modern}/components/header/Component.d.ts +0 -0
  83. package/{modern → dist/modern}/components/header/Component.js +5 -5
  84. package/{components → dist/modern/components}/header/index.css +17 -17
  85. package/{modern → dist/modern}/components/swipeable-backdrop/Component.d.ts +0 -0
  86. package/{modern → dist/modern}/components/swipeable-backdrop/Component.js +1 -1
  87. package/{modern → dist/modern}/index.css +15 -18
  88. package/dist/modern/index.d.ts +1 -0
  89. package/{modern → dist/modern}/index.js +5 -5
  90. package/{send-stats.js → dist/send-stats.js} +0 -0
  91. package/{tslib.es6-de66c327.d.ts → dist/tslib.es6-a84d77e4.d.ts} +0 -0
  92. package/{tslib.es6-de66c327.js → dist/tslib.es6-a84d77e4.js} +0 -0
  93. package/package.json +14 -11
  94. package/cssm/index.d.ts +0 -1
  95. package/esm/index.d.ts +0 -1
  96. package/index.d.ts +0 -1
  97. package/modern/index.d.ts +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,376 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [4.9.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.9.0...@alfalab/core-components-bottom-sheet@4.9.1) (2022-08-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * returned dist directory ([#199](https://github.com/core-ds/core-components/issues/199)) ([fabc15e](https://github.com/core-ds/core-components/commit/fabc15effa1457ca65ec7238206f1b1fc2a2a613))
12
+
13
+
14
+
15
+
16
+
17
+ # [4.9.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.8.1...@alfalab/core-components-bottom-sheet@4.9.0) (2022-08-12)
18
+
19
+
20
+ ### Features
21
+
22
+ * **BottonSheet:** improved bottomSheet component ([#185](https://github.com/core-ds/core-components/issues/185)) ([ba5fa06](https://github.com/core-ds/core-components/commit/ba5fa06d5f342ac5e04adadb72fd21e1f699c00a))
23
+
24
+
25
+
26
+
27
+
28
+ ## [4.8.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.8.0...@alfalab/core-components-bottom-sheet@4.8.1) (2022-08-11)
29
+
30
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
31
+
32
+
33
+
34
+
35
+
36
+ # [4.8.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.7.0...@alfalab/core-components-bottom-sheet@4.8.0) (2022-08-09)
37
+
38
+
39
+ ### Features
40
+
41
+ * **bottom-sheet:** добавлен dataTestId для элементов компонента ([f90c76b](https://github.com/core-ds/core-components/commit/f90c76bf539542957dc0aea7be28089e5c919859))
42
+
43
+
44
+
45
+
46
+
47
+ # [4.7.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.6.2...@alfalab/core-components-bottom-sheet@4.7.0) (2022-08-04)
48
+
49
+
50
+ ### Features
51
+
52
+ * react 18 support ([#159](https://github.com/core-ds/core-components/issues/159)) ([2e6693c](https://github.com/core-ds/core-components/commit/2e6693c62f534e333aadb7d3fff4ffd78ac84c63))
53
+
54
+
55
+
56
+
57
+
58
+ ## [4.6.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.6.1...@alfalab/core-components-bottom-sheet@4.6.2) (2022-07-25)
59
+
60
+
61
+ ### Bug Fixes
62
+
63
+ * **bottom-sheet:** fix component border-radius ([#157](https://github.com/core-ds/core-components/issues/157)) ([57b767e](https://github.com/core-ds/core-components/commit/57b767e43e40e9170967e3a53481e21f92cb0190))
64
+ * **bottom-sheet:** fix doc ([#163](https://github.com/core-ds/core-components/issues/163)) ([cbf3282](https://github.com/core-ds/core-components/commit/cbf32828bc2fe472d59d52c1e5644e7934262d73))
65
+
66
+
67
+
68
+
69
+
70
+ ## [4.6.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.6.0...@alfalab/core-components-bottom-sheet@4.6.1) (2022-07-18)
71
+
72
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
73
+
74
+
75
+
76
+
77
+
78
+ # [4.6.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.5.2...@alfalab/core-components-bottom-sheet@4.6.0) (2022-07-15)
79
+
80
+
81
+ ### Features
82
+
83
+ * **bottom-sheet:** add props for disable blocking scroll and modal wrapper classname ([#147](https://github.com/core-ds/core-components/issues/147)) ([a873c20](https://github.com/core-ds/core-components/commit/a873c2035d4885c1b8e5ffae02ce75c4826d1e71))
84
+
85
+
86
+
87
+
88
+
89
+ ## [4.5.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.5.1...@alfalab/core-components-bottom-sheet@4.5.2) (2022-07-15)
90
+
91
+
92
+ ### Bug Fixes
93
+
94
+ * bump packages version ([#153](https://github.com/core-ds/core-components/issues/153)) ([fd3e082](https://github.com/core-ds/core-components/commit/fd3e08205672129cdce04e1000c673f2cd9c10da))
95
+
96
+
97
+
98
+
99
+
100
+ ## [4.5.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.5.0...@alfalab/core-components-bottom-sheet@4.5.1) (2022-07-14)
101
+
102
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
103
+
104
+
105
+
106
+
107
+
108
+ # [4.5.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.4.2...@alfalab/core-components-bottom-sheet@4.5.0) (2022-07-11)
109
+
110
+
111
+ ### Features
112
+
113
+ * **bottom-sheet:** add prop to set modal classname ([#133](https://github.com/core-ds/core-components/issues/133)) ([8305c0e](https://github.com/core-ds/core-components/commit/8305c0e50b4fe6ebc8bb1f532d33157c63514915))
114
+
115
+
116
+
117
+
118
+
119
+ ## [4.4.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.4.1...@alfalab/core-components-bottom-sheet@4.4.2) (2022-07-01)
120
+
121
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
122
+
123
+
124
+
125
+
126
+
127
+ ## [4.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.4.0...@alfalab/core-components-bottom-sheet@4.4.1) (2022-06-30)
128
+
129
+
130
+ ### Bug Fixes
131
+
132
+ * **base-modal:** fixed outside modal click ([#115](https://github.com/core-ds/core-components/issues/115)) ([6a08f72](https://github.com/core-ds/core-components/commit/6a08f726521dcd9a310b0e06345950429eac246a))
133
+
134
+
135
+
136
+
137
+
138
+ # [4.4.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.3.2...@alfalab/core-components-bottom-sheet@4.4.0) (2022-06-28)
139
+
140
+
141
+ ### Features
142
+
143
+ * circumflexus retrieval ([#57](https://github.com/core-ds/core-components/issues/57)) ([3820da8](https://github.com/core-ds/core-components/commit/3820da818bcdcbee6904c648b3e29c3c828fe202))
144
+
145
+
146
+
147
+
148
+
149
+ ## [4.3.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.3.1...@alfalab/core-components-bottom-sheet@4.3.2) (2022-06-24)
150
+
151
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
152
+
153
+
154
+
155
+
156
+
157
+ ## [4.3.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.3.0...@alfalab/core-components-bottom-sheet@4.3.1) (2022-06-23)
158
+
159
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
160
+
161
+
162
+
163
+
164
+
165
+ # [4.3.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.2.1...@alfalab/core-components-bottom-sheet@4.3.0) (2022-06-20)
166
+
167
+
168
+ ### Features
169
+
170
+ * **input-autocomplete:** add new component InputAutocompleteMobile ([#96](https://github.com/core-ds/core-components/issues/96)) ([a0e9f95](https://github.com/core-ds/core-components/commit/a0e9f95edbfcd6722e99647d75a262805e81a4a7))
171
+
172
+
173
+
174
+
175
+
176
+ ## [4.2.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.2.0...@alfalab/core-components-bottom-sheet@4.2.1) (2022-06-20)
177
+
178
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
179
+
180
+
181
+
182
+
183
+
184
+ # [4.2.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.1.5...@alfalab/core-components-bottom-sheet@4.2.0) (2022-06-16)
185
+
186
+
187
+ ### Features
188
+
189
+ * **BottonSheet:** prop for controlling animation on screen size chan… ([#89](https://github.com/core-ds/core-components/issues/89)) ([a69e178](https://github.com/core-ds/core-components/commit/a69e17891d1fd91ba6f35bfc097ae1fc9cbf92df))
190
+
191
+
192
+
193
+
194
+
195
+ ## [4.1.5](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.1.4...@alfalab/core-components-bottom-sheet@4.1.5) (2022-06-03)
196
+
197
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
198
+
199
+
200
+
201
+
202
+
203
+ ## [4.0.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.0.1...@alfalab/core-components-bottom-sheet@4.0.2) (2022-03-30)
204
+
205
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
206
+
207
+
208
+
209
+
210
+
211
+ ## [4.0.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.0.0...@alfalab/core-components-bottom-sheet@4.0.1) (2022-03-28)
212
+
213
+
214
+ ### Bug Fixes
215
+
216
+ * fix modal and bottom-sheet dark mode ([#1043](https://github.com/core-ds/core-components/issues/1043)) ([cad36a2](https://github.com/core-ds/core-components/commit/cad36a25b28bfa71296c3dd9dc325eec28b5c241))
217
+ * **bottom-sheet:** fix bottom-sheet swipeable marker ([#1044](https://github.com/core-ds/core-components/issues/1044)) ([0734e55](https://github.com/core-ds/core-components/commit/0734e55cc0e394fb33452f875ffcf47819277aee))
218
+
219
+
220
+
221
+
222
+
223
+ # [4.0.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@3.1.1...@alfalab/core-components-bottom-sheet@4.0.0) (2022-03-24)
224
+
225
+
226
+ ### Features
227
+
228
+ * **bottom-sheet:** update-bottom-sheet ([#1025](https://github.com/core-ds/core-components/issues/1025)) ([26fa9aa](https://github.com/core-ds/core-components/commit/26fa9aab68bebf0f7093a38bc0f18a9b596ccf37)), closes [#1032](https://github.com/core-ds/core-components/issues/1032)
229
+
230
+
231
+ ### BREAKING CHANGES
232
+
233
+ * **bottom-sheet:** Большое обновление стилей, множество дополнительных настроек
234
+
235
+
236
+
237
+
238
+
239
+ ## [3.1.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@3.1.0...@alfalab/core-components-bottom-sheet@3.1.1) (2022-03-03)
240
+
241
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
242
+
243
+
244
+
245
+
246
+
247
+ # [3.1.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@3.0.2...@alfalab/core-components-bottom-sheet@3.1.0) (2022-03-01)
248
+
249
+
250
+ ### Features
251
+
252
+ * Исправить импорты в сторях. ([#998](https://github.com/core-ds/core-components/issues/998)) ([e6a654a](https://github.com/core-ds/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
253
+
254
+
255
+
256
+
257
+
258
+ ## [3.0.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@3.0.1...@alfalab/core-components-bottom-sheet@3.0.2) (2022-01-27)
259
+
260
+
261
+ ### Bug Fixes
262
+
263
+ * **bottom-sheet:** fix double calling onClose fn ([#962](https://github.com/core-ds/core-components/issues/962)) ([feda2a4](https://github.com/core-ds/core-components/commit/feda2a4c8d3a4f40a1ab9c40eb21f5359e4fa538))
264
+
265
+
266
+
267
+
268
+
269
+ ## [3.0.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@3.0.0...@alfalab/core-components-bottom-sheet@3.0.1) (2022-01-17)
270
+
271
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
272
+
273
+
274
+
275
+
276
+
277
+ # [3.0.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@2.1.1...@alfalab/core-components-bottom-sheet@3.0.0) (2021-11-26)
278
+
279
+
280
+ ### Features
281
+
282
+ * **button:** добавлена кнопка размера 40px, изменены скругления ([#886](https://github.com/core-ds/core-components/issues/886)) ([88e657a](https://github.com/core-ds/core-components/commit/88e657a9f0f68b8b58f6e9437053954ee984f83c)), closes [#890](https://github.com/core-ds/core-components/issues/890)
283
+
284
+
285
+ ### BREAKING CHANGES
286
+
287
+ * **button:** Кнопка размера xs теперь имеет размер 40px. Тем, кто использовал размер xs, надо
288
+ заменить размер на xxs. Можно воспользоваться codemod.
289
+
290
+ * feat(codemod): add button xs to xxs transformer
291
+
292
+ * feat(tag): добавлен тэг размера 40px, изменены отступы
293
+
294
+ Добавлен тэг размером 40px, изменены отступы. Тем, кто использовал размер xs, надо заменить размер
295
+ на xxs.
296
+ * **button:** Тэг размера xs теперь имеет размер 40px. Тем, кто использовал размер xs, надо
297
+ заменить размер на xxs. Можно воспользоваться codemod.
298
+
299
+ * test: update screenshots
300
+
301
+ * test: update screenshots
302
+
303
+ * feat(button): linter fix
304
+
305
+ * feat(button): fix min-width
306
+
307
+ * feat(tag): remove vertical paddings
308
+
309
+ * feat(tag): remove vertical paddings
310
+
311
+ * feat(button): updates
312
+
313
+
314
+
315
+
316
+
317
+ ## [2.1.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@2.1.0...@alfalab/core-components-bottom-sheet@2.1.1) (2021-09-14)
318
+
319
+
320
+ ### Bug Fixes
321
+
322
+ * **base-modal:** modal scroll ([#820](https://github.com/core-ds/core-components/issues/820)) ([1b2d94a](https://github.com/core-ds/core-components/commit/1b2d94ad45e04145bf1292d749ae2028702dc622))
323
+
324
+
325
+
326
+
327
+
328
+ # [2.1.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@2.0.2...@alfalab/core-components-bottom-sheet@2.1.0) (2021-07-23)
329
+
330
+
331
+ ### Features
332
+
333
+ * **bottom-sheet:** fix marker gap, fix animation duration ([#750](https://github.com/core-ds/core-components/issues/750)) ([cb04ed8](https://github.com/core-ds/core-components/commit/cb04ed8cc214fac9dba32a0ab39a4399743d5bfc))
334
+
335
+
336
+
337
+
338
+
339
+ ## [2.0.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@2.0.1...@alfalab/core-components-bottom-sheet@2.0.2) (2021-07-19)
340
+
341
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
342
+
343
+
344
+
345
+
346
+
347
+ ## [2.0.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@2.0.0...@alfalab/core-components-bottom-sheet@2.0.1) (2021-07-09)
348
+
349
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
350
+
351
+
352
+
353
+
354
+
355
+ # [2.0.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@1.1.1...@alfalab/core-components-bottom-sheet@2.0.0) (2021-07-08)
356
+
357
+
358
+ ### Features
359
+
360
+ * upgrade storybook ([#696](https://github.com/core-ds/core-components/issues/696))
361
+
362
+ ## [1.1.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@1.1.0...@alfalab/core-components-bottom-sheet@1.1.1) (2021-07-02)
363
+
364
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
365
+
366
+
367
+
368
+
369
+
370
+ # 1.1.0 (2021-06-28)
371
+
372
+
373
+ ### Features
374
+
375
+
376
+ * **bottom-sheet:** new component (PDS-228) ([#645](https://github.com/core-ds/core-components/issues/645)) ([1f7391d](https://github.com/core-ds/core-components/commit/1f7391df16a270d8a3a28b8ebaf98d0ed0928bc8)), closes [#642](https://github.com/core-ds/core-components/issues/642) [#642](https://github.com/core-ds/core-components/issues/642) [#646](https://github.com/core-ds/core-components/issues/646) [#646](https://github.com/core-ds/core-components/issues/646) [#634](https://github.com/core-ds/core-components/issues/634) [#635](https://github.com/core-ds/core-components/issues/635) [#634](https://github.com/core-ds/core-components/issues/634) [#635](https://github.com/core-ds/core-components/issues/635) [#648](https://github.com/core-ds/core-components/issues/648) [#647](https://github.com/core-ds/core-components/issues/647) [#630](https://github.com/core-ds/core-components/issues/630) [#648](https://github.com/core-ds/core-components/issues/648) [#630](https://github.com/core-ds/core-components/issues/630) [#669](https://github.com/core-ds/core-components/issues/669)
@@ -205,6 +205,7 @@ type BottomSheetProps = {
205
205
  */
206
206
  disableBlockingScroll?: boolean;
207
207
  /**
208
+ * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
208
209
  * Не анимировать шторку при изменении размера вьюпорта
209
210
  */
210
211
  ignoreScreenChange?: boolean;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-de66c327.js');
3
+ var tslib_es6 = require('./tslib.es6-a84d77e4.js');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var reactDiv100vh = require('react-div-100vh');
@@ -22,7 +22,7 @@ var getDataTestId = function (dataTestId, element) {
22
22
  return dataTestId ? "" + dataTestId + elementPart : undefined;
23
23
  };
24
24
 
25
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_la2qp","header":"bottom-sheet__header_la2qp","sticky":"bottom-sheet__sticky_la2qp","highlighted":"bottom-sheet__highlighted_la2qp","justifyEnd":"bottom-sheet__justifyEnd_la2qp","addon":"bottom-sheet__addon_la2qp","addonFixed":"bottom-sheet__addonFixed_la2qp","addonLeft":"bottom-sheet__addonLeft_la2qp","addonRight":"bottom-sheet__addonRight_la2qp","title":"bottom-sheet__title_la2qp","titleCenter":"bottom-sheet__titleCenter_la2qp","titleLeft":"bottom-sheet__titleLeft_la2qp","trimTitle":"bottom-sheet__trimTitle_la2qp","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_la2qp","titleIndentRight":"bottom-sheet__titleIndentRight_la2qp","titleIndentLeft":"bottom-sheet__titleIndentLeft_la2qp"};
25
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1j3ft","header":"bottom-sheet__header_1j3ft","sticky":"bottom-sheet__sticky_1j3ft","highlighted":"bottom-sheet__highlighted_1j3ft","justifyEnd":"bottom-sheet__justifyEnd_1j3ft","addon":"bottom-sheet__addon_1j3ft","addonFixed":"bottom-sheet__addonFixed_1j3ft","addonLeft":"bottom-sheet__addonLeft_1j3ft","addonRight":"bottom-sheet__addonRight_1j3ft","title":"bottom-sheet__title_1j3ft","titleCenter":"bottom-sheet__titleCenter_1j3ft","titleLeft":"bottom-sheet__titleLeft_1j3ft","trimTitle":"bottom-sheet__trimTitle_1j3ft","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1j3ft","titleIndentRight":"bottom-sheet__titleIndentRight_1j3ft","titleIndentLeft":"bottom-sheet__titleIndentLeft_1j3ft"};
26
26
  require('./components/header/index.css')
27
27
 
28
28
  var Header = function (_a) {
@@ -72,7 +72,7 @@ var Header = function (_a) {
72
72
  bottomAddons));
73
73
  };
74
74
 
75
- var styles$1 = {"modal":"bottom-sheet__modal_16hzh","component":"bottom-sheet__component_16hzh","withTransition":"bottom-sheet__withTransition_16hzh","withZeroTransition":"bottom-sheet__withZeroTransition_16hzh","scrollableContainer":"bottom-sheet__scrollableContainer_16hzh","marker":"bottom-sheet__marker_16hzh","content":"bottom-sheet__content_16hzh","noHeader":"bottom-sheet__noHeader_16hzh","noFooter":"bottom-sheet__noFooter_16hzh","scrollLocked":"bottom-sheet__scrollLocked_16hzh","appear":"bottom-sheet__appear_16hzh","enter":"bottom-sheet__enter_16hzh","appearActive":"bottom-sheet__appearActive_16hzh","enterActive":"bottom-sheet__enterActive_16hzh","enterDone":"bottom-sheet__enterDone_16hzh","appearDone":"bottom-sheet__appearDone_16hzh","exit":"bottom-sheet__exit_16hzh","exitActive":"bottom-sheet__exitActive_16hzh"};
75
+ var styles$1 = {"modal":"bottom-sheet__modal_1enkg","component":"bottom-sheet__component_1enkg","withTransition":"bottom-sheet__withTransition_1enkg","scrollableContainer":"bottom-sheet__scrollableContainer_1enkg","marker":"bottom-sheet__marker_1enkg","content":"bottom-sheet__content_1enkg","noHeader":"bottom-sheet__noHeader_1enkg","noFooter":"bottom-sheet__noFooter_1enkg","scrollLocked":"bottom-sheet__scrollLocked_1enkg","appear":"bottom-sheet__appear_1enkg","enter":"bottom-sheet__enter_1enkg","appearActive":"bottom-sheet__appearActive_1enkg","enterActive":"bottom-sheet__enterActive_1enkg","enterDone":"bottom-sheet__enterDone_1enkg","appearDone":"bottom-sheet__appearDone_1enkg","exit":"bottom-sheet__exit_1enkg","exitActive":"bottom-sheet__exitActive_1enkg"};
76
76
  require('./index.css')
77
77
 
78
78
  var TIMEOUT = 300;
@@ -85,15 +85,14 @@ var HEADER_OFFSET = 24;
85
85
  var CLOSE_OFFSET = 0.2;
86
86
  var BottomSheet = React.forwardRef(function (_a, ref) {
87
87
  var _b, _c, _d;
88
- var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, backdropProps = _a.backdropProps, onClose = _a.onClose, onBack = _a.onBack;
89
- var _l = React.useState(0), sheetOffset = _l[0], setSheetOffset = _l[1];
90
- var _m = React.useState(1), backdropOpacity = _m[0], setBackdropOpacity = _m[1];
91
- var _o = React.useState(false), scrollLocked = _o[0], setScrollLocked = _o[1];
88
+ var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, backdropProps = _a.backdropProps, onClose = _a.onClose, onBack = _a.onBack;
89
+ var _k = React.useState(0), sheetOffset = _k[0], setSheetOffset = _k[1];
90
+ var _l = React.useState(1), backdropOpacity = _l[0], setBackdropOpacity = _l[1];
91
+ var _m = React.useState(false), scrollLocked = _m[0], setScrollLocked = _m[1];
92
92
  var sheetHeight = React.useRef(0);
93
93
  var scrollableContainer = React.useRef(null);
94
94
  var scrollableContainerScrollValue = React.useRef(0);
95
95
  var emptyHeader = !hasCloser && !hasBacker && !leftAddons && !rightAddons && !title;
96
- var _p = React.useState(styles$1.withTransition), transitionClassName = _p[0], setTransitionClassName = _p[1];
97
96
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
98
97
  var fullHeight = reactDiv100vh.use100vh();
99
98
  var targetHeight = fullHeight - HEADER_OFFSET + "px";
@@ -159,12 +158,6 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
159
158
  onClose();
160
159
  }
161
160
  else {
162
- /**
163
- * Установить мгновенную анимацию шторке если она не закрыта при свайпе и установлен проп ignoreScreenChange
164
- */
165
- if (ignoreScreenChange) {
166
- setTransitionClassName(styles$1.withZeroTransition);
167
- }
168
161
  setSheetOffset(0);
169
162
  setBackdropOpacity(1);
170
163
  }
@@ -188,12 +181,6 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
188
181
  */
189
182
  if (offset > 0) {
190
183
  setScrollLocked(true);
191
- /**
192
- * Вернуть плавную анимацию шторке при свайпе
193
- */
194
- if (transitionClassName === styles$1.withZeroTransition) {
195
- setTransitionClassName(styles$1.withTransition);
196
- }
197
184
  }
198
185
  };
199
186
  var backdropSwipeablehandlers = reactSwipeable.useSwipeable({
@@ -227,10 +214,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
227
214
  if (!open) {
228
215
  setSheetOffset(0);
229
216
  }
230
- if (ignoreScreenChange && open) {
231
- setTransitionClassName(styles$1.withZeroTransition);
232
- }
233
- }, [open, ignoreScreenChange]);
217
+ }, [open]);
234
218
  var getSwipeStyles = function () { return ({
235
219
  transform: sheetOffset ? "translateY(" + sheetOffset + "px)" : '',
236
220
  }); };
@@ -239,19 +223,20 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
239
223
  maxHeight: targetHeight,
240
224
  }); };
241
225
  return (React__default['default'].createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib_es6.__assign(tslib_es6.__assign({}, backdropProps), { opacity: backdropOpacity, handlers: swipeable ? backdropSwipeablehandlers : false, opacityTimeout: TIMEOUT, invisible: initialHeight === 'full' ? false : hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default['default'](styles$1.modal, modalClassName), wrapperClassName: modalWrapperClassName, disableBlockingScroll: disableBlockingScroll, transitionProps: tslib_es6.__assign(tslib_es6.__assign({ appear: true, timeout: TIMEOUT, classNames: styles$1 }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
242
- React__default['default'].createElement("div", tslib_es6.__assign({ className: cn__default['default'](styles$1.component, className, (_b = {},
243
- _b[transitionClassName] = !sheetOffset,
244
- _b)), style: tslib_es6.__assign(tslib_es6.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),
245
- React__default['default'].createElement("div", tslib_es6.__assign({}, containerProps, { className: cn__default['default'](styles$1.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_c = {},
246
- _c[styles$1.scrollLocked] = scrollLocked,
247
- _c)), ref: scrollableContainer }),
248
- swipeable && React__default['default'].createElement("div", { className: cn__default['default'](styles$1.marker) }),
249
- !hideHeader && !emptyHeader && React__default['default'].createElement(Header, tslib_es6.__assign({}, headerProps)),
250
- React__default['default'].createElement("div", { className: cn__default['default'](styles$1.content, contentClassName, (_d = {},
251
- _d[styles$1.noHeader] = hideHeader || emptyHeader,
252
- _d[styles$1.noFooter] = !actionButton,
253
- _d)) }, children),
254
- actionButton && (React__default['default'].createElement(components_footer_Component.Footer, { sticky: stickyFooter, className: footerClassName }, actionButton))))));
226
+ React__default['default'].createElement("div", { style: tslib_es6.__assign({}, getHeightStyles()) },
227
+ React__default['default'].createElement("div", tslib_es6.__assign({ className: cn__default['default'](styles$1.component, className, (_b = {},
228
+ _b[styles$1.withTransition] = !sheetOffset,
229
+ _b)), style: tslib_es6.__assign(tslib_es6.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),
230
+ React__default['default'].createElement("div", tslib_es6.__assign({}, containerProps, { className: cn__default['default'](styles$1.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_c = {},
231
+ _c[styles$1.scrollLocked] = scrollLocked,
232
+ _c)), ref: scrollableContainer }),
233
+ swipeable && React__default['default'].createElement("div", { className: cn__default['default'](styles$1.marker) }),
234
+ !hideHeader && !emptyHeader && React__default['default'].createElement(Header, tslib_es6.__assign({}, headerProps)),
235
+ React__default['default'].createElement("div", { className: cn__default['default'](styles$1.content, contentClassName, (_d = {},
236
+ _d[styles$1.noHeader] = hideHeader || emptyHeader,
237
+ _d[styles$1.noFooter] = !actionButton,
238
+ _d)) }, children),
239
+ actionButton && (React__default['default'].createElement(components_footer_Component.Footer, { sticky: stickyFooter, className: footerClassName }, actionButton)))))));
255
240
  });
256
241
 
257
242
  exports.BottomSheet = BottomSheet;
File without changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-de66c327.js');
5
+ require('./tslib.es6-a84d77e4.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('react-div-100vh');
@@ -14,7 +14,7 @@ require('@alfalab/icons-glyph/CrossMIcon');
14
14
  require('./components/closer/Component.js');
15
15
  require('@alfalab/icons-glyph/ArrowBackMIcon');
16
16
  require('./components/backer/Component.js');
17
- var components_header_Component = require('./component-04a87905.js');
17
+ var components_header_Component = require('./component-57800089.js');
18
18
  require('./components/footer/Component.js');
19
19
  require('@alfalab/core-components-backdrop');
20
20
  require('./components/swipeable-backdrop/Component.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-de66c327.js');
5
+ var tslib_es6 = require('../../tslib.es6-a84d77e4.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
@@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
15
15
 
16
- var styles = {"backer":"bottom-sheet__backer_1r71r","button":"bottom-sheet__button_1r71r"};
16
+ var styles = {"backer":"bottom-sheet__backer_168ue","button":"bottom-sheet__button_168ue"};
17
17
  require('./index.css')
18
18
 
19
19
  var Backer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: 1hvbs */
1
+ /* hash: xngt6 */
2
2
  :root {
3
3
  --bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__backer_1r71r {
6
+ .bottom-sheet__backer_168ue {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_1r71r {
16
+ .bottom-sheet__button_168ue {
17
17
  background: var(--bottom-sheet-backer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-de66c327.js');
5
+ var tslib_es6 = require('../../tslib.es6-a84d77e4.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsBaseModal = require('@alfalab/core-components-base-modal');
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
16
16
 
17
- var styles = {"closer":"bottom-sheet__closer_1rjy4","button":"bottom-sheet__button_1rjy4"};
17
+ var styles = {"closer":"bottom-sheet__closer_of1dk","button":"bottom-sheet__button_of1dk"};
18
18
  require('./index.css')
19
19
 
20
20
  var Closer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: slp2v */
1
+ /* hash: 1pyzf */
2
2
  :root {
3
3
  --bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__closer_1rjy4 {
6
+ .bottom-sheet__closer_of1dk {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_1rjy4 {
16
+ .bottom-sheet__button_of1dk {
17
17
  background: var(--bottom-sheet-closer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
13
13
 
14
- var styles = {"footer":"bottom-sheet__footer_iug7x","sticky":"bottom-sheet__sticky_iug7x","highlighted":"bottom-sheet__highlighted_iug7x"};
14
+ var styles = {"footer":"bottom-sheet__footer_1gnta","sticky":"bottom-sheet__sticky_1gnta","highlighted":"bottom-sheet__highlighted_1gnta"};
15
15
  require('./index.css')
16
16
 
17
17
  var Footer = function (_a) {