@alfalab/core-components-popup-sheet 1.0.7 → 1.0.9

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 (41) hide show
  1. package/Component.js +1 -1
  2. package/components/backdrop/Component.js +1 -1
  3. package/components/backdrop/index.css +10 -10
  4. package/esm/Component.js +1 -1
  5. package/esm/components/backdrop/Component.js +1 -1
  6. package/esm/components/backdrop/index.css +10 -10
  7. package/esm/index.css +14 -14
  8. package/index.css +14 -14
  9. package/modern/Component.js +1 -1
  10. package/modern/components/backdrop/Component.js +1 -1
  11. package/modern/components/backdrop/index.css +10 -10
  12. package/modern/index.css +14 -14
  13. package/package.json +4 -4
  14. package/Component-9211a437.d.ts +0 -38
  15. package/Component.desktop-2e2b2125.d.ts +0 -6
  16. package/cssm/Component-9211a437.d.ts +0 -38
  17. package/cssm/Component.desktop-2e2b2125.d.ts +0 -6
  18. package/cssm/desktop-2e2b2125.d.ts +0 -2
  19. package/cssm/index-ebda875c.d.ts +0 -1
  20. package/cssm/types-1b036d4b.d.ts +0 -13
  21. package/cssm/typings-9211a437.d.ts +0 -95
  22. package/cssm/useSkeleton-1b036d4b.d.ts +0 -40
  23. package/desktop-2e2b2125.d.ts +0 -2
  24. package/esm/Component-9211a437.d.ts +0 -38
  25. package/esm/Component.desktop-2e2b2125.d.ts +0 -6
  26. package/esm/desktop-2e2b2125.d.ts +0 -2
  27. package/esm/index-ebda875c.d.ts +0 -1
  28. package/esm/types-1b036d4b.d.ts +0 -13
  29. package/esm/typings-9211a437.d.ts +0 -95
  30. package/esm/useSkeleton-1b036d4b.d.ts +0 -40
  31. package/index-ebda875c.d.ts +0 -1
  32. package/modern/Component-9211a437.d.ts +0 -38
  33. package/modern/Component.desktop-2e2b2125.d.ts +0 -6
  34. package/modern/desktop-2e2b2125.d.ts +0 -2
  35. package/modern/index-ebda875c.d.ts +0 -1
  36. package/modern/types-1b036d4b.d.ts +0 -13
  37. package/modern/typings-9211a437.d.ts +0 -95
  38. package/modern/useSkeleton-1b036d4b.d.ts +0 -40
  39. package/types-1b036d4b.d.ts +0 -13
  40. package/typings-9211a437.d.ts +0 -95
  41. package/useSkeleton-1b036d4b.d.ts +0 -40
package/Component.js CHANGED
@@ -17,7 +17,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
17
17
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
 
20
- var styles = {"component":"popup-sheet__component_le0of","closer":"popup-sheet__closer_le0of","content":"popup-sheet__content_le0of","appear":"popup-sheet__appear_le0of","enter":"popup-sheet__enter_le0of","appearActive":"popup-sheet__appearActive_le0of","enterActive":"popup-sheet__enterActive_le0of","exit":"popup-sheet__exit_le0of","exitBySwipe":"popup-sheet__exitBySwipe_le0of","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_le0of","exitActive":"popup-sheet__exitActive_le0of","exitDone":"popup-sheet__exitDone_le0of"};
20
+ var styles = {"component":"popup-sheet__component_1bxg0","closer":"popup-sheet__closer_1bxg0","content":"popup-sheet__content_1bxg0","appear":"popup-sheet__appear_1bxg0","enter":"popup-sheet__enter_1bxg0","appearActive":"popup-sheet__appearActive_1bxg0","enterActive":"popup-sheet__enterActive_1bxg0","exit":"popup-sheet__exit_1bxg0","exitBySwipe":"popup-sheet__exitBySwipe_1bxg0","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_1bxg0","exitActive":"popup-sheet__exitActive_1bxg0","exitDone":"popup-sheet__exitDone_1bxg0"};
21
21
  require('./index.css')
22
22
 
23
23
  var SWIPE_VELOCITY = 0.3;
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
 
13
- var styles = {"appear":"popup-sheet__appear_5lm91","enter":"popup-sheet__enter_5lm91","appearActive":"popup-sheet__appearActive_5lm91","enterActive":"popup-sheet__enterActive_5lm91","appearDone":"popup-sheet__appearDone_5lm91","enterDone":"popup-sheet__enterDone_5lm91","exit":"popup-sheet__exit_5lm91","exitActive":"popup-sheet__exitActive_5lm91","exitDone":"popup-sheet__exitDone_5lm91"};
13
+ var styles = {"appear":"popup-sheet__appear_1l9il","enter":"popup-sheet__enter_1l9il","appearActive":"popup-sheet__appearActive_1l9il","enterActive":"popup-sheet__enterActive_1l9il","appearDone":"popup-sheet__appearDone_1l9il","enterDone":"popup-sheet__enterDone_1l9il","exit":"popup-sheet__exit_1l9il","exitActive":"popup-sheet__exitActive_1l9il","exitDone":"popup-sheet__exitDone_1l9il"};
14
14
  require('./index.css')
15
15
 
16
16
  var PopupBackdrop = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: pc4t0 */
1
+ /* hash: jea1f */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-overlay: rgba(0, 0, 0, 0.6); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -18,19 +18,19 @@
18
18
  } :root {
19
19
  --backdrop-visible-background: var(--color-light-bg-overlay);
20
20
  --backdrop-hidden-background: transparent;
21
- } .popup-sheet__appear_5lm91,
22
- .popup-sheet__enter_5lm91 {
21
+ } .popup-sheet__appear_1l9il,
22
+ .popup-sheet__enter_1l9il {
23
23
  background-color: var(--backdrop-hidden-background);
24
- } .popup-sheet__appearActive_5lm91,
25
- .popup-sheet__enterActive_5lm91,
26
- .popup-sheet__appearDone_5lm91,
27
- .popup-sheet__enterDone_5lm91 {
24
+ } .popup-sheet__appearActive_1l9il,
25
+ .popup-sheet__enterActive_1l9il,
26
+ .popup-sheet__appearDone_1l9il,
27
+ .popup-sheet__enterDone_1l9il {
28
28
  background-color: var(--backdrop-visible-background);
29
29
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
30
- } .popup-sheet__exit_5lm91 {
30
+ } .popup-sheet__exit_1l9il {
31
31
  background-color: var(--backdrop-visible-background);
32
- } .popup-sheet__exitActive_5lm91,
33
- .popup-sheet__exitDone_5lm91 {
32
+ } .popup-sheet__exitActive_1l9il,
33
+ .popup-sheet__exitDone_1l9il {
34
34
  background-color: var(--backdrop-hidden-background);
35
35
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
36
36
  }
package/esm/Component.js CHANGED
@@ -8,7 +8,7 @@ import { createPaddingStyle, getDataTestId, easingFns } from '@alfalab/core-comp
8
8
  import { PopupBackdrop } from './components/backdrop/Component.js';
9
9
  import '@alfalab/core-components-backdrop/esm';
10
10
 
11
- var styles = {"component":"popup-sheet__component_le0of","closer":"popup-sheet__closer_le0of","content":"popup-sheet__content_le0of","appear":"popup-sheet__appear_le0of","enter":"popup-sheet__enter_le0of","appearActive":"popup-sheet__appearActive_le0of","enterActive":"popup-sheet__enterActive_le0of","exit":"popup-sheet__exit_le0of","exitBySwipe":"popup-sheet__exitBySwipe_le0of","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_le0of","exitActive":"popup-sheet__exitActive_le0of","exitDone":"popup-sheet__exitDone_le0of"};
11
+ var styles = {"component":"popup-sheet__component_1bxg0","closer":"popup-sheet__closer_1bxg0","content":"popup-sheet__content_1bxg0","appear":"popup-sheet__appear_1bxg0","enter":"popup-sheet__enter_1bxg0","appearActive":"popup-sheet__appearActive_1bxg0","enterActive":"popup-sheet__enterActive_1bxg0","exit":"popup-sheet__exit_1bxg0","exitBySwipe":"popup-sheet__exitBySwipe_1bxg0","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_1bxg0","exitActive":"popup-sheet__exitActive_1bxg0","exitDone":"popup-sheet__exitDone_1bxg0"};
12
12
  require('./index.css')
13
13
 
14
14
  var SWIPE_VELOCITY = 0.3;
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { Backdrop } from '@alfalab/core-components-backdrop/esm';
4
4
 
5
- var styles = {"appear":"popup-sheet__appear_5lm91","enter":"popup-sheet__enter_5lm91","appearActive":"popup-sheet__appearActive_5lm91","enterActive":"popup-sheet__enterActive_5lm91","appearDone":"popup-sheet__appearDone_5lm91","enterDone":"popup-sheet__enterDone_5lm91","exit":"popup-sheet__exit_5lm91","exitActive":"popup-sheet__exitActive_5lm91","exitDone":"popup-sheet__exitDone_5lm91"};
5
+ var styles = {"appear":"popup-sheet__appear_1l9il","enter":"popup-sheet__enter_1l9il","appearActive":"popup-sheet__appearActive_1l9il","enterActive":"popup-sheet__enterActive_1l9il","appearDone":"popup-sheet__appearDone_1l9il","enterDone":"popup-sheet__enterDone_1l9il","exit":"popup-sheet__exit_1l9il","exitActive":"popup-sheet__exitActive_1l9il","exitDone":"popup-sheet__exitDone_1l9il"};
6
6
  require('./index.css')
7
7
 
8
8
  var PopupBackdrop = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: pc4t0 */
1
+ /* hash: jea1f */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-overlay: rgba(0, 0, 0, 0.6); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -18,19 +18,19 @@
18
18
  } :root {
19
19
  --backdrop-visible-background: var(--color-light-bg-overlay);
20
20
  --backdrop-hidden-background: transparent;
21
- } .popup-sheet__appear_5lm91,
22
- .popup-sheet__enter_5lm91 {
21
+ } .popup-sheet__appear_1l9il,
22
+ .popup-sheet__enter_1l9il {
23
23
  background-color: var(--backdrop-hidden-background);
24
- } .popup-sheet__appearActive_5lm91,
25
- .popup-sheet__enterActive_5lm91,
26
- .popup-sheet__appearDone_5lm91,
27
- .popup-sheet__enterDone_5lm91 {
24
+ } .popup-sheet__appearActive_1l9il,
25
+ .popup-sheet__enterActive_1l9il,
26
+ .popup-sheet__appearDone_1l9il,
27
+ .popup-sheet__enterDone_1l9il {
28
28
  background-color: var(--backdrop-visible-background);
29
29
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
30
- } .popup-sheet__exit_5lm91 {
30
+ } .popup-sheet__exit_1l9il {
31
31
  background-color: var(--backdrop-visible-background);
32
- } .popup-sheet__exitActive_5lm91,
33
- .popup-sheet__exitDone_5lm91 {
32
+ } .popup-sheet__exitActive_1l9il,
33
+ .popup-sheet__exitDone_1l9il {
34
34
  background-color: var(--backdrop-hidden-background);
35
35
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
36
36
  }
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1sggj */
1
+ /* hash: 4gljf */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,7 +15,7 @@
15
15
  --gap-xs: 8px;
16
16
  } :root {
17
17
  } :root {
18
- } .popup-sheet__component_le0of {
18
+ } .popup-sheet__component_1bxg0 {
19
19
  position: fixed;
20
20
  bottom: 0;
21
21
  margin: auto var(--gap-xs) var(--gap-xs);
@@ -23,31 +23,31 @@
23
23
  max-width: 600px;
24
24
  border-radius: 36px;
25
25
  overflow: hidden;
26
- } .popup-sheet__closer_le0of {
26
+ } .popup-sheet__closer_1bxg0 {
27
27
  position: absolute;
28
28
  top: 8px;
29
29
  right: 8px
30
- } .popup-sheet__closer_le0of > button {
30
+ } .popup-sheet__closer_1bxg0 > button {
31
31
  -webkit-backdrop-filter: none;
32
32
  backdrop-filter: none;
33
- } .popup-sheet__content_le0of {
33
+ } .popup-sheet__content_1bxg0 {
34
34
  box-sizing: border-box;
35
- } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_le0of,
36
- .popup-sheet__enter_le0of {
35
+ } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_1bxg0,
36
+ .popup-sheet__enter_1bxg0 {
37
37
  transform: translateY(calc(100% + 100px));
38
- } .popup-sheet__appearActive_le0of,
39
- .popup-sheet__enterActive_le0of {
38
+ } .popup-sheet__appearActive_1bxg0,
39
+ .popup-sheet__enterActive_1bxg0 {
40
40
  transform: translateY(0);
41
41
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
42
42
  transition-delay: 50ms;
43
- } .popup-sheet__exit_le0of {
43
+ } .popup-sheet__exit_1bxg0 {
44
44
  transform: translateY(0);
45
- } .popup-sheet__exitBySwipe_le0of {
45
+ } .popup-sheet__exitBySwipe_1bxg0 {
46
46
  transform: translateY(calc(100% + 100px));
47
- } .popup-sheet__exitActiveBySwipe_le0of {
47
+ } .popup-sheet__exitActiveBySwipe_1bxg0 {
48
48
  transition: none;
49
- } .popup-sheet__exitActive_le0of,
50
- .popup-sheet__exitDone_le0of {
49
+ } .popup-sheet__exitActive_1bxg0,
50
+ .popup-sheet__exitDone_1bxg0 {
51
51
  transform: translateY(calc(100% + 100px));
52
52
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
53
53
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1sggj */
1
+ /* hash: 4gljf */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,7 +15,7 @@
15
15
  --gap-xs: 8px;
16
16
  } :root {
17
17
  } :root {
18
- } .popup-sheet__component_le0of {
18
+ } .popup-sheet__component_1bxg0 {
19
19
  position: fixed;
20
20
  bottom: 0;
21
21
  margin: auto var(--gap-xs) var(--gap-xs);
@@ -23,31 +23,31 @@
23
23
  max-width: 600px;
24
24
  border-radius: 36px;
25
25
  overflow: hidden;
26
- } .popup-sheet__closer_le0of {
26
+ } .popup-sheet__closer_1bxg0 {
27
27
  position: absolute;
28
28
  top: 8px;
29
29
  right: 8px
30
- } .popup-sheet__closer_le0of > button {
30
+ } .popup-sheet__closer_1bxg0 > button {
31
31
  -webkit-backdrop-filter: none;
32
32
  backdrop-filter: none;
33
- } .popup-sheet__content_le0of {
33
+ } .popup-sheet__content_1bxg0 {
34
34
  box-sizing: border-box;
35
- } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_le0of,
36
- .popup-sheet__enter_le0of {
35
+ } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_1bxg0,
36
+ .popup-sheet__enter_1bxg0 {
37
37
  transform: translateY(calc(100% + 100px));
38
- } .popup-sheet__appearActive_le0of,
39
- .popup-sheet__enterActive_le0of {
38
+ } .popup-sheet__appearActive_1bxg0,
39
+ .popup-sheet__enterActive_1bxg0 {
40
40
  transform: translateY(0);
41
41
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
42
42
  transition-delay: 50ms;
43
- } .popup-sheet__exit_le0of {
43
+ } .popup-sheet__exit_1bxg0 {
44
44
  transform: translateY(0);
45
- } .popup-sheet__exitBySwipe_le0of {
45
+ } .popup-sheet__exitBySwipe_1bxg0 {
46
46
  transform: translateY(calc(100% + 100px));
47
- } .popup-sheet__exitActiveBySwipe_le0of {
47
+ } .popup-sheet__exitActiveBySwipe_1bxg0 {
48
48
  transition: none;
49
- } .popup-sheet__exitActive_le0of,
50
- .popup-sheet__exitDone_le0of {
49
+ } .popup-sheet__exitActive_1bxg0,
50
+ .popup-sheet__exitDone_1bxg0 {
51
51
  transform: translateY(calc(100% + 100px));
52
52
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
53
53
  }
@@ -7,7 +7,7 @@ import { createPaddingStyle, getDataTestId, easingFns } from '@alfalab/core-comp
7
7
  import { PopupBackdrop } from './components/backdrop/Component.js';
8
8
  import '@alfalab/core-components-backdrop/modern';
9
9
 
10
- const styles = {"component":"popup-sheet__component_le0of","closer":"popup-sheet__closer_le0of","content":"popup-sheet__content_le0of","appear":"popup-sheet__appear_le0of","enter":"popup-sheet__enter_le0of","appearActive":"popup-sheet__appearActive_le0of","enterActive":"popup-sheet__enterActive_le0of","exit":"popup-sheet__exit_le0of","exitBySwipe":"popup-sheet__exitBySwipe_le0of","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_le0of","exitActive":"popup-sheet__exitActive_le0of","exitDone":"popup-sheet__exitDone_le0of"};
10
+ const styles = {"component":"popup-sheet__component_1bxg0","closer":"popup-sheet__closer_1bxg0","content":"popup-sheet__content_1bxg0","appear":"popup-sheet__appear_1bxg0","enter":"popup-sheet__enter_1bxg0","appearActive":"popup-sheet__appearActive_1bxg0","enterActive":"popup-sheet__enterActive_1bxg0","exit":"popup-sheet__exit_1bxg0","exitBySwipe":"popup-sheet__exitBySwipe_1bxg0","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_1bxg0","exitActive":"popup-sheet__exitActive_1bxg0","exitDone":"popup-sheet__exitDone_1bxg0"};
11
11
  require('./index.css')
12
12
 
13
13
  const SWIPE_VELOCITY = 0.3;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Backdrop } from '@alfalab/core-components-backdrop/modern';
3
3
 
4
- const styles = {"appear":"popup-sheet__appear_5lm91","enter":"popup-sheet__enter_5lm91","appearActive":"popup-sheet__appearActive_5lm91","enterActive":"popup-sheet__enterActive_5lm91","appearDone":"popup-sheet__appearDone_5lm91","enterDone":"popup-sheet__enterDone_5lm91","exit":"popup-sheet__exit_5lm91","exitActive":"popup-sheet__exitActive_5lm91","exitDone":"popup-sheet__exitDone_5lm91"};
4
+ const styles = {"appear":"popup-sheet__appear_1l9il","enter":"popup-sheet__enter_1l9il","appearActive":"popup-sheet__appearActive_1l9il","enterActive":"popup-sheet__enterActive_1l9il","appearDone":"popup-sheet__appearDone_1l9il","enterDone":"popup-sheet__enterDone_1l9il","exit":"popup-sheet__exit_1l9il","exitActive":"popup-sheet__exitActive_1l9il","exitDone":"popup-sheet__exitDone_1l9il"};
5
5
  require('./index.css')
6
6
 
7
7
  const PopupBackdrop = ({ opacity, opacityTimeout, style, ...backdropProps }) => (React.createElement("div", { style: {
@@ -1,4 +1,4 @@
1
- /* hash: pc4t0 */
1
+ /* hash: jea1f */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-overlay: rgba(0, 0, 0, 0.6); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -18,19 +18,19 @@
18
18
  } :root {
19
19
  --backdrop-visible-background: var(--color-light-bg-overlay);
20
20
  --backdrop-hidden-background: transparent;
21
- } .popup-sheet__appear_5lm91,
22
- .popup-sheet__enter_5lm91 {
21
+ } .popup-sheet__appear_1l9il,
22
+ .popup-sheet__enter_1l9il {
23
23
  background-color: var(--backdrop-hidden-background);
24
- } .popup-sheet__appearActive_5lm91,
25
- .popup-sheet__enterActive_5lm91,
26
- .popup-sheet__appearDone_5lm91,
27
- .popup-sheet__enterDone_5lm91 {
24
+ } .popup-sheet__appearActive_1l9il,
25
+ .popup-sheet__enterActive_1l9il,
26
+ .popup-sheet__appearDone_1l9il,
27
+ .popup-sheet__enterDone_1l9il {
28
28
  background-color: var(--backdrop-visible-background);
29
29
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
30
- } .popup-sheet__exit_5lm91 {
30
+ } .popup-sheet__exit_1l9il {
31
31
  background-color: var(--backdrop-visible-background);
32
- } .popup-sheet__exitActive_5lm91,
33
- .popup-sheet__exitDone_5lm91 {
32
+ } .popup-sheet__exitActive_1l9il,
33
+ .popup-sheet__exitDone_1l9il {
34
34
  background-color: var(--backdrop-hidden-background);
35
35
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
36
36
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1sggj */
1
+ /* hash: 4gljf */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,7 +15,7 @@
15
15
  --gap-xs: 8px;
16
16
  } :root {
17
17
  } :root {
18
- } .popup-sheet__component_le0of {
18
+ } .popup-sheet__component_1bxg0 {
19
19
  position: fixed;
20
20
  bottom: 0;
21
21
  margin: auto var(--gap-xs) var(--gap-xs);
@@ -23,31 +23,31 @@
23
23
  max-width: 600px;
24
24
  border-radius: 36px;
25
25
  overflow: hidden;
26
- } .popup-sheet__closer_le0of {
26
+ } .popup-sheet__closer_1bxg0 {
27
27
  position: absolute;
28
28
  top: 8px;
29
29
  right: 8px
30
- } .popup-sheet__closer_le0of > button {
30
+ } .popup-sheet__closer_1bxg0 > button {
31
31
  -webkit-backdrop-filter: none;
32
32
  backdrop-filter: none;
33
- } .popup-sheet__content_le0of {
33
+ } .popup-sheet__content_1bxg0 {
34
34
  box-sizing: border-box;
35
- } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_le0of,
36
- .popup-sheet__enter_le0of {
35
+ } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_1bxg0,
36
+ .popup-sheet__enter_1bxg0 {
37
37
  transform: translateY(calc(100% + 100px));
38
- } .popup-sheet__appearActive_le0of,
39
- .popup-sheet__enterActive_le0of {
38
+ } .popup-sheet__appearActive_1bxg0,
39
+ .popup-sheet__enterActive_1bxg0 {
40
40
  transform: translateY(0);
41
41
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
42
42
  transition-delay: 50ms;
43
- } .popup-sheet__exit_le0of {
43
+ } .popup-sheet__exit_1bxg0 {
44
44
  transform: translateY(0);
45
- } .popup-sheet__exitBySwipe_le0of {
45
+ } .popup-sheet__exitBySwipe_1bxg0 {
46
46
  transform: translateY(calc(100% + 100px));
47
- } .popup-sheet__exitActiveBySwipe_le0of {
47
+ } .popup-sheet__exitActiveBySwipe_1bxg0 {
48
48
  transition: none;
49
- } .popup-sheet__exitActive_le0of,
50
- .popup-sheet__exitDone_le0of {
49
+ } .popup-sheet__exitActive_1bxg0,
50
+ .popup-sheet__exitDone_1bxg0 {
51
51
  transform: translateY(calc(100% + 100px));
52
52
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-popup-sheet",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Popup sheet mobile component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,10 +15,10 @@
15
15
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-base-modal": "^5.4.1",
18
+ "@alfalab/core-components-base-modal": "^5.5.0",
19
19
  "@alfalab/core-components-backdrop": "^3.1.0",
20
- "@alfalab/core-components-shared": "^0.5.0",
21
- "@alfalab/core-components-navigation-bar": "^0.5.7",
20
+ "@alfalab/core-components-shared": "^0.7.0",
21
+ "@alfalab/core-components-navigation-bar": "^0.5.9",
22
22
  "react-swipeable": "^7.0.0",
23
23
  "classnames": "^2.3.1",
24
24
  "tslib": "^2.4.0"
@@ -1,38 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { FC } from "react";
4
- import { BaseButtonProps } from "./typings-9211a437";
5
- type SpinnerProps = {
6
- /**
7
- * Управление видимостью компонента
8
- */
9
- visible?: boolean;
10
- /**
11
- * Размер компонента
12
- */
13
- size?: "xs" | "s" | "m";
14
- /**
15
- * Дополнительный класс
16
- */
17
- className?: string;
18
- /**
19
- * Идентификатор компонента в DOM
20
- */
21
- id?: string;
22
- /**
23
- * Идентификатор для систем автоматизированного тестирования
24
- */
25
- dataTestId?: string;
26
- /**
27
- * Палитра, в контексте которой используется спиннер
28
- */
29
- colors?: "default" | "inverted";
30
- };
31
- declare const Spinner: FC<SpinnerProps>;
32
- /**
33
- * Минимальное время отображения лоадера - 500мс,
34
- * чтобы при быстрых ответах от сервера кнопка не «моргала».
35
- */
36
- declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
37
- declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
38
- export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
4
- type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
5
- declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
- export { ButtonDesktopProps, ButtonDesktop };
@@ -1,38 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { FC } from "react";
4
- import { BaseButtonProps } from "./typings-9211a437";
5
- type SpinnerProps = {
6
- /**
7
- * Управление видимостью компонента
8
- */
9
- visible?: boolean;
10
- /**
11
- * Размер компонента
12
- */
13
- size?: "xs" | "s" | "m";
14
- /**
15
- * Дополнительный класс
16
- */
17
- className?: string;
18
- /**
19
- * Идентификатор компонента в DOM
20
- */
21
- id?: string;
22
- /**
23
- * Идентификатор для систем автоматизированного тестирования
24
- */
25
- dataTestId?: string;
26
- /**
27
- * Палитра, в контексте которой используется спиннер
28
- */
29
- colors?: "default" | "inverted";
30
- };
31
- declare const Spinner: FC<SpinnerProps>;
32
- /**
33
- * Минимальное время отображения лоадера - 500мс,
34
- * чтобы при быстрых ответах от сервера кнопка не «моргала».
35
- */
36
- declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
37
- declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
38
- export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
4
- type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
5
- declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
- export { ButtonDesktopProps, ButtonDesktop };
@@ -1,2 +0,0 @@
1
- export * from "./Component.desktop-2e2b2125";
2
- export {};
@@ -1 +0,0 @@
1
- export * from "./Component-9211a437";
@@ -1,13 +0,0 @@
1
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
- type WidthUnit = number | string;
3
- type TextSkeletonProps = {
4
- /**
5
- * Кол-во строк текста
6
- */
7
- rows?: number;
8
- /**
9
- * Ширина строки
10
- */
11
- width?: WidthUnit | WidthUnit[];
12
- };
13
- export { TextElementType, TextSkeletonProps };
@@ -1,95 +0,0 @@
1
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, ReactNode } from 'react';
2
- type StyleColors = {
3
- default: {
4
- [key: string]: string;
5
- };
6
- inverted: {
7
- [key: string]: string;
8
- };
9
- };
10
- type ComponentProps = {
11
- /**
12
- * Тип кнопки
13
- * @default secondary
14
- */
15
- view?: 'accent' | 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'filled' | 'transparent' | 'link' | 'ghost';
16
- /**
17
- * Слот слева
18
- */
19
- leftAddons?: ReactNode;
20
- /**
21
- * Слот справа
22
- */
23
- rightAddons?: ReactNode;
24
- /**
25
- * Размер компонента
26
- * @default m
27
- */
28
- size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
29
- /**
30
- * Растягивает компонент на ширину контейнера
31
- * @default false
32
- */
33
- block?: boolean;
34
- /**
35
- * Дополнительный класс
36
- */
37
- className?: string;
38
- /**
39
- * Дополнительный класс для спиннера
40
- */
41
- spinnerClassName?: string;
42
- /**
43
- * Выводит ссылку в виде кнопки
44
- */
45
- href?: string;
46
- /**
47
- * Позволяет использовать кастомный компонент для кнопки (например Link из роутера)
48
- */
49
- Component?: ElementType;
50
- /**
51
- * Идентификатор для систем автоматизированного тестирования
52
- */
53
- dataTestId?: string;
54
- /**
55
- * Показать лоадер
56
- * @default false
57
- */
58
- loading?: boolean;
59
- /**
60
- * Не переносить текст кнопки на новую строку
61
- * @default false
62
- */
63
- nowrap?: boolean;
64
- /**
65
- * Набор цветов для компонента
66
- */
67
- colors?: 'default' | 'inverted';
68
- /**
69
- * Дочерние элементы.
70
- */
71
- children?: ReactNode;
72
- /**
73
- * Основные стили компонента.
74
- */
75
- styles: {
76
- [key: string]: string;
77
- };
78
- /**
79
- * Стили компонента для default и inverted режима.
80
- */
81
- colorStylesMap: StyleColors;
82
- };
83
- type AnchorBaseButtonProps = ComponentProps & AnchorHTMLAttributes<HTMLAnchorElement>;
84
- type NativeBaseButtonProps = ComponentProps & ButtonHTMLAttributes<HTMLButtonElement>;
85
- type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
86
- type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
87
- type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
88
- type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
89
- /**
90
- * Контрольная точка, с нее начинается desktop версия
91
- * @default 1024
92
- */
93
- breakpoint?: number;
94
- };
95
- export { StyleColors, ComponentProps, AnchorBaseButtonProps, NativeBaseButtonProps, BaseButtonProps, AnchorButtonProps, NativeButtonProps, ButtonProps };
@@ -1,40 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { ReactNode } from "react";
4
- import { TextSkeletonProps } from "./types-1b036d4b";
5
- type SkeletonProps = {
6
- /**
7
- * Флаг, явно задающий состояние, при котором контент закрывается прелоадером
8
- */
9
- visible?: boolean;
10
- /**
11
- * Флаг явного включения анимации скелета
12
- */
13
- animate?: boolean;
14
- /**
15
- * Дополнительный класс
16
- */
17
- className?: string;
18
- /**
19
- * Дополнительные инлайн стили
20
- */
21
- style?: React.CSSProperties;
22
- /**
23
- * Идентификатор для систем автоматизированного тестирования
24
- */
25
- dataTestId?: string;
26
- /**
27
- * Дочерние элементы.
28
- */
29
- children?: ReactNode;
30
- };
31
- declare const Skeleton: React.FC<SkeletonProps>;
32
- type SkeletonProps$0 = {
33
- wrapperClassName?: string;
34
- dataTestId?: string;
35
- };
36
- declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
37
- renderSkeleton: (props: SkeletonProps$0) => React.JSX.Element | null;
38
- textRef: React.RefObject<HTMLElement>;
39
- };
40
- export { SkeletonProps, Skeleton, useSkeleton };
@@ -1,2 +0,0 @@
1
- export * from "./Component.desktop-2e2b2125";
2
- export {};
@@ -1,38 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { FC } from "react";
4
- import { BaseButtonProps } from "./typings-9211a437";
5
- type SpinnerProps = {
6
- /**
7
- * Управление видимостью компонента
8
- */
9
- visible?: boolean;
10
- /**
11
- * Размер компонента
12
- */
13
- size?: "xs" | "s" | "m";
14
- /**
15
- * Дополнительный класс
16
- */
17
- className?: string;
18
- /**
19
- * Идентификатор компонента в DOM
20
- */
21
- id?: string;
22
- /**
23
- * Идентификатор для систем автоматизированного тестирования
24
- */
25
- dataTestId?: string;
26
- /**
27
- * Палитра, в контексте которой используется спиннер
28
- */
29
- colors?: "default" | "inverted";
30
- };
31
- declare const Spinner: FC<SpinnerProps>;
32
- /**
33
- * Минимальное время отображения лоадера - 500мс,
34
- * чтобы при быстрых ответах от сервера кнопка не «моргала».
35
- */
36
- declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
37
- declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
38
- export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
4
- type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
5
- declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
- export { ButtonDesktopProps, ButtonDesktop };
@@ -1,2 +0,0 @@
1
- export * from "./Component.desktop-2e2b2125";
2
- export {};
@@ -1 +0,0 @@
1
- export * from "./Component-9211a437";
@@ -1,13 +0,0 @@
1
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
- type WidthUnit = number | string;
3
- type TextSkeletonProps = {
4
- /**
5
- * Кол-во строк текста
6
- */
7
- rows?: number;
8
- /**
9
- * Ширина строки
10
- */
11
- width?: WidthUnit | WidthUnit[];
12
- };
13
- export { TextElementType, TextSkeletonProps };
@@ -1,95 +0,0 @@
1
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, ReactNode } from 'react';
2
- type StyleColors = {
3
- default: {
4
- [key: string]: string;
5
- };
6
- inverted: {
7
- [key: string]: string;
8
- };
9
- };
10
- type ComponentProps = {
11
- /**
12
- * Тип кнопки
13
- * @default secondary
14
- */
15
- view?: 'accent' | 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'filled' | 'transparent' | 'link' | 'ghost';
16
- /**
17
- * Слот слева
18
- */
19
- leftAddons?: ReactNode;
20
- /**
21
- * Слот справа
22
- */
23
- rightAddons?: ReactNode;
24
- /**
25
- * Размер компонента
26
- * @default m
27
- */
28
- size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
29
- /**
30
- * Растягивает компонент на ширину контейнера
31
- * @default false
32
- */
33
- block?: boolean;
34
- /**
35
- * Дополнительный класс
36
- */
37
- className?: string;
38
- /**
39
- * Дополнительный класс для спиннера
40
- */
41
- spinnerClassName?: string;
42
- /**
43
- * Выводит ссылку в виде кнопки
44
- */
45
- href?: string;
46
- /**
47
- * Позволяет использовать кастомный компонент для кнопки (например Link из роутера)
48
- */
49
- Component?: ElementType;
50
- /**
51
- * Идентификатор для систем автоматизированного тестирования
52
- */
53
- dataTestId?: string;
54
- /**
55
- * Показать лоадер
56
- * @default false
57
- */
58
- loading?: boolean;
59
- /**
60
- * Не переносить текст кнопки на новую строку
61
- * @default false
62
- */
63
- nowrap?: boolean;
64
- /**
65
- * Набор цветов для компонента
66
- */
67
- colors?: 'default' | 'inverted';
68
- /**
69
- * Дочерние элементы.
70
- */
71
- children?: ReactNode;
72
- /**
73
- * Основные стили компонента.
74
- */
75
- styles: {
76
- [key: string]: string;
77
- };
78
- /**
79
- * Стили компонента для default и inverted режима.
80
- */
81
- colorStylesMap: StyleColors;
82
- };
83
- type AnchorBaseButtonProps = ComponentProps & AnchorHTMLAttributes<HTMLAnchorElement>;
84
- type NativeBaseButtonProps = ComponentProps & ButtonHTMLAttributes<HTMLButtonElement>;
85
- type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
86
- type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
87
- type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
88
- type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
89
- /**
90
- * Контрольная точка, с нее начинается desktop версия
91
- * @default 1024
92
- */
93
- breakpoint?: number;
94
- };
95
- export { StyleColors, ComponentProps, AnchorBaseButtonProps, NativeBaseButtonProps, BaseButtonProps, AnchorButtonProps, NativeButtonProps, ButtonProps };
@@ -1,40 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { ReactNode } from "react";
4
- import { TextSkeletonProps } from "./types-1b036d4b";
5
- type SkeletonProps = {
6
- /**
7
- * Флаг, явно задающий состояние, при котором контент закрывается прелоадером
8
- */
9
- visible?: boolean;
10
- /**
11
- * Флаг явного включения анимации скелета
12
- */
13
- animate?: boolean;
14
- /**
15
- * Дополнительный класс
16
- */
17
- className?: string;
18
- /**
19
- * Дополнительные инлайн стили
20
- */
21
- style?: React.CSSProperties;
22
- /**
23
- * Идентификатор для систем автоматизированного тестирования
24
- */
25
- dataTestId?: string;
26
- /**
27
- * Дочерние элементы.
28
- */
29
- children?: ReactNode;
30
- };
31
- declare const Skeleton: React.FC<SkeletonProps>;
32
- type SkeletonProps$0 = {
33
- wrapperClassName?: string;
34
- dataTestId?: string;
35
- };
36
- declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
37
- renderSkeleton: (props: SkeletonProps$0) => React.JSX.Element | null;
38
- textRef: React.RefObject<HTMLElement>;
39
- };
40
- export { SkeletonProps, Skeleton, useSkeleton };
@@ -1 +0,0 @@
1
- export * from "./Component-9211a437";
@@ -1,38 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { FC } from "react";
4
- import { BaseButtonProps } from "./typings-9211a437";
5
- type SpinnerProps = {
6
- /**
7
- * Управление видимостью компонента
8
- */
9
- visible?: boolean;
10
- /**
11
- * Размер компонента
12
- */
13
- size?: "xs" | "s" | "m";
14
- /**
15
- * Дополнительный класс
16
- */
17
- className?: string;
18
- /**
19
- * Идентификатор компонента в DOM
20
- */
21
- id?: string;
22
- /**
23
- * Идентификатор для систем автоматизированного тестирования
24
- */
25
- dataTestId?: string;
26
- /**
27
- * Палитра, в контексте которой используется спиннер
28
- */
29
- colors?: "default" | "inverted";
30
- };
31
- declare const Spinner: FC<SpinnerProps>;
32
- /**
33
- * Минимальное время отображения лоадера - 500мс,
34
- * чтобы при быстрых ответах от сервера кнопка не «моргала».
35
- */
36
- declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
37
- declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
38
- export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
4
- type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
5
- declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
- export { ButtonDesktopProps, ButtonDesktop };
@@ -1,2 +0,0 @@
1
- export * from "./Component.desktop-2e2b2125";
2
- export {};
@@ -1 +0,0 @@
1
- export * from "./Component-9211a437";
@@ -1,13 +0,0 @@
1
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
- type WidthUnit = number | string;
3
- type TextSkeletonProps = {
4
- /**
5
- * Кол-во строк текста
6
- */
7
- rows?: number;
8
- /**
9
- * Ширина строки
10
- */
11
- width?: WidthUnit | WidthUnit[];
12
- };
13
- export { TextElementType, TextSkeletonProps };
@@ -1,95 +0,0 @@
1
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, ReactNode } from 'react';
2
- type StyleColors = {
3
- default: {
4
- [key: string]: string;
5
- };
6
- inverted: {
7
- [key: string]: string;
8
- };
9
- };
10
- type ComponentProps = {
11
- /**
12
- * Тип кнопки
13
- * @default secondary
14
- */
15
- view?: 'accent' | 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'filled' | 'transparent' | 'link' | 'ghost';
16
- /**
17
- * Слот слева
18
- */
19
- leftAddons?: ReactNode;
20
- /**
21
- * Слот справа
22
- */
23
- rightAddons?: ReactNode;
24
- /**
25
- * Размер компонента
26
- * @default m
27
- */
28
- size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
29
- /**
30
- * Растягивает компонент на ширину контейнера
31
- * @default false
32
- */
33
- block?: boolean;
34
- /**
35
- * Дополнительный класс
36
- */
37
- className?: string;
38
- /**
39
- * Дополнительный класс для спиннера
40
- */
41
- spinnerClassName?: string;
42
- /**
43
- * Выводит ссылку в виде кнопки
44
- */
45
- href?: string;
46
- /**
47
- * Позволяет использовать кастомный компонент для кнопки (например Link из роутера)
48
- */
49
- Component?: ElementType;
50
- /**
51
- * Идентификатор для систем автоматизированного тестирования
52
- */
53
- dataTestId?: string;
54
- /**
55
- * Показать лоадер
56
- * @default false
57
- */
58
- loading?: boolean;
59
- /**
60
- * Не переносить текст кнопки на новую строку
61
- * @default false
62
- */
63
- nowrap?: boolean;
64
- /**
65
- * Набор цветов для компонента
66
- */
67
- colors?: 'default' | 'inverted';
68
- /**
69
- * Дочерние элементы.
70
- */
71
- children?: ReactNode;
72
- /**
73
- * Основные стили компонента.
74
- */
75
- styles: {
76
- [key: string]: string;
77
- };
78
- /**
79
- * Стили компонента для default и inverted режима.
80
- */
81
- colorStylesMap: StyleColors;
82
- };
83
- type AnchorBaseButtonProps = ComponentProps & AnchorHTMLAttributes<HTMLAnchorElement>;
84
- type NativeBaseButtonProps = ComponentProps & ButtonHTMLAttributes<HTMLButtonElement>;
85
- type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
86
- type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
87
- type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
88
- type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
89
- /**
90
- * Контрольная точка, с нее начинается desktop версия
91
- * @default 1024
92
- */
93
- breakpoint?: number;
94
- };
95
- export { StyleColors, ComponentProps, AnchorBaseButtonProps, NativeBaseButtonProps, BaseButtonProps, AnchorButtonProps, NativeButtonProps, ButtonProps };
@@ -1,40 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { ReactNode } from "react";
4
- import { TextSkeletonProps } from "./types-1b036d4b";
5
- type SkeletonProps = {
6
- /**
7
- * Флаг, явно задающий состояние, при котором контент закрывается прелоадером
8
- */
9
- visible?: boolean;
10
- /**
11
- * Флаг явного включения анимации скелета
12
- */
13
- animate?: boolean;
14
- /**
15
- * Дополнительный класс
16
- */
17
- className?: string;
18
- /**
19
- * Дополнительные инлайн стили
20
- */
21
- style?: React.CSSProperties;
22
- /**
23
- * Идентификатор для систем автоматизированного тестирования
24
- */
25
- dataTestId?: string;
26
- /**
27
- * Дочерние элементы.
28
- */
29
- children?: ReactNode;
30
- };
31
- declare const Skeleton: React.FC<SkeletonProps>;
32
- type SkeletonProps$0 = {
33
- wrapperClassName?: string;
34
- dataTestId?: string;
35
- };
36
- declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
37
- renderSkeleton: (props: SkeletonProps$0) => React.JSX.Element | null;
38
- textRef: React.RefObject<HTMLElement>;
39
- };
40
- export { SkeletonProps, Skeleton, useSkeleton };
@@ -1,13 +0,0 @@
1
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
- type WidthUnit = number | string;
3
- type TextSkeletonProps = {
4
- /**
5
- * Кол-во строк текста
6
- */
7
- rows?: number;
8
- /**
9
- * Ширина строки
10
- */
11
- width?: WidthUnit | WidthUnit[];
12
- };
13
- export { TextElementType, TextSkeletonProps };
@@ -1,95 +0,0 @@
1
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, ReactNode } from 'react';
2
- type StyleColors = {
3
- default: {
4
- [key: string]: string;
5
- };
6
- inverted: {
7
- [key: string]: string;
8
- };
9
- };
10
- type ComponentProps = {
11
- /**
12
- * Тип кнопки
13
- * @default secondary
14
- */
15
- view?: 'accent' | 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'filled' | 'transparent' | 'link' | 'ghost';
16
- /**
17
- * Слот слева
18
- */
19
- leftAddons?: ReactNode;
20
- /**
21
- * Слот справа
22
- */
23
- rightAddons?: ReactNode;
24
- /**
25
- * Размер компонента
26
- * @default m
27
- */
28
- size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
29
- /**
30
- * Растягивает компонент на ширину контейнера
31
- * @default false
32
- */
33
- block?: boolean;
34
- /**
35
- * Дополнительный класс
36
- */
37
- className?: string;
38
- /**
39
- * Дополнительный класс для спиннера
40
- */
41
- spinnerClassName?: string;
42
- /**
43
- * Выводит ссылку в виде кнопки
44
- */
45
- href?: string;
46
- /**
47
- * Позволяет использовать кастомный компонент для кнопки (например Link из роутера)
48
- */
49
- Component?: ElementType;
50
- /**
51
- * Идентификатор для систем автоматизированного тестирования
52
- */
53
- dataTestId?: string;
54
- /**
55
- * Показать лоадер
56
- * @default false
57
- */
58
- loading?: boolean;
59
- /**
60
- * Не переносить текст кнопки на новую строку
61
- * @default false
62
- */
63
- nowrap?: boolean;
64
- /**
65
- * Набор цветов для компонента
66
- */
67
- colors?: 'default' | 'inverted';
68
- /**
69
- * Дочерние элементы.
70
- */
71
- children?: ReactNode;
72
- /**
73
- * Основные стили компонента.
74
- */
75
- styles: {
76
- [key: string]: string;
77
- };
78
- /**
79
- * Стили компонента для default и inverted режима.
80
- */
81
- colorStylesMap: StyleColors;
82
- };
83
- type AnchorBaseButtonProps = ComponentProps & AnchorHTMLAttributes<HTMLAnchorElement>;
84
- type NativeBaseButtonProps = ComponentProps & ButtonHTMLAttributes<HTMLButtonElement>;
85
- type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
86
- type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
87
- type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
88
- type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
89
- /**
90
- * Контрольная точка, с нее начинается desktop версия
91
- * @default 1024
92
- */
93
- breakpoint?: number;
94
- };
95
- export { StyleColors, ComponentProps, AnchorBaseButtonProps, NativeBaseButtonProps, BaseButtonProps, AnchorButtonProps, NativeButtonProps, ButtonProps };
@@ -1,40 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { ReactNode } from "react";
4
- import { TextSkeletonProps } from "./types-1b036d4b";
5
- type SkeletonProps = {
6
- /**
7
- * Флаг, явно задающий состояние, при котором контент закрывается прелоадером
8
- */
9
- visible?: boolean;
10
- /**
11
- * Флаг явного включения анимации скелета
12
- */
13
- animate?: boolean;
14
- /**
15
- * Дополнительный класс
16
- */
17
- className?: string;
18
- /**
19
- * Дополнительные инлайн стили
20
- */
21
- style?: React.CSSProperties;
22
- /**
23
- * Идентификатор для систем автоматизированного тестирования
24
- */
25
- dataTestId?: string;
26
- /**
27
- * Дочерние элементы.
28
- */
29
- children?: ReactNode;
30
- };
31
- declare const Skeleton: React.FC<SkeletonProps>;
32
- type SkeletonProps$0 = {
33
- wrapperClassName?: string;
34
- dataTestId?: string;
35
- };
36
- declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
37
- renderSkeleton: (props: SkeletonProps$0) => React.JSX.Element | null;
38
- textRef: React.RefObject<HTMLElement>;
39
- };
40
- export { SkeletonProps, Skeleton, useSkeleton };