@alfalab/core-components-side-panel 7.0.7 → 7.0.8

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 (129) hide show
  1. package/components/content/desktop.css +2 -2
  2. package/components/content/desktop.module.css.js +1 -1
  3. package/components/content/index.css +3 -3
  4. package/components/content/index.module.css.js +1 -1
  5. package/components/content/mobile.css +6 -6
  6. package/components/content/mobile.module.css.js +1 -1
  7. package/components/content/mobile.module.css.js.map +1 -1
  8. package/components/controls/Component.js +7 -3
  9. package/components/controls/Component.js.map +1 -1
  10. package/components/controls/index.css +1 -1
  11. package/components/controls/index.module.css.js +1 -1
  12. package/components/controls/mobile.layout.css +13 -0
  13. package/components/controls/mobile.layout.module.css.js +8 -0
  14. package/components/controls/mobile.layout.module.css.js.map +1 -0
  15. package/components/footer/desktop.css +2 -2
  16. package/components/footer/desktop.module.css.js +1 -1
  17. package/components/footer/index.css +3 -3
  18. package/components/footer/index.module.css.js +1 -1
  19. package/components/footer/layout.css +16 -16
  20. package/components/footer/layout.module.css.js +1 -1
  21. package/components/footer/mobile.css +7 -7
  22. package/components/footer/mobile.module.css.js +1 -1
  23. package/components/footer/mobile.module.css.js.map +1 -1
  24. package/components/header/desktop.css +3 -3
  25. package/components/header/desktop.module.css.js +1 -1
  26. package/components/header/index.css +13 -13
  27. package/components/header/index.module.css.js +1 -1
  28. package/components/header/mobile.css +8 -6
  29. package/components/header/mobile.module.css.js +1 -1
  30. package/cssm/components/content/mobile.module.css +4 -4
  31. package/cssm/components/controls/Component.js +8 -3
  32. package/cssm/components/controls/Component.js.map +1 -1
  33. package/cssm/components/controls/mobile.layout.module.css +13 -0
  34. package/cssm/components/footer/mobile.module.css +4 -4
  35. package/cssm/components/header/mobile.module.css +4 -2
  36. package/desktop/desktop.css +2 -2
  37. package/desktop/desktop.module.css.js +1 -1
  38. package/desktop/transitions.desktop.css +6 -6
  39. package/desktop/transitions.desktop.module.css.js +1 -1
  40. package/esm/components/content/desktop.css +2 -2
  41. package/esm/components/content/desktop.module.css.js +1 -1
  42. package/esm/components/content/index.css +3 -3
  43. package/esm/components/content/index.module.css.js +1 -1
  44. package/esm/components/content/mobile.css +6 -6
  45. package/esm/components/content/mobile.module.css.js +1 -1
  46. package/esm/components/content/mobile.module.css.js.map +1 -1
  47. package/esm/components/controls/Component.js +7 -3
  48. package/esm/components/controls/Component.js.map +1 -1
  49. package/esm/components/controls/index.css +1 -1
  50. package/esm/components/controls/index.module.css.js +1 -1
  51. package/esm/components/controls/mobile.layout.css +13 -0
  52. package/esm/components/controls/mobile.layout.module.css.js +6 -0
  53. package/esm/components/controls/mobile.layout.module.css.js.map +1 -0
  54. package/esm/components/footer/desktop.css +2 -2
  55. package/esm/components/footer/desktop.module.css.js +1 -1
  56. package/esm/components/footer/index.css +3 -3
  57. package/esm/components/footer/index.module.css.js +1 -1
  58. package/esm/components/footer/layout.css +16 -16
  59. package/esm/components/footer/layout.module.css.js +1 -1
  60. package/esm/components/footer/mobile.css +7 -7
  61. package/esm/components/footer/mobile.module.css.js +1 -1
  62. package/esm/components/footer/mobile.module.css.js.map +1 -1
  63. package/esm/components/header/desktop.css +3 -3
  64. package/esm/components/header/desktop.module.css.js +1 -1
  65. package/esm/components/header/index.css +13 -13
  66. package/esm/components/header/index.module.css.js +1 -1
  67. package/esm/components/header/mobile.css +8 -6
  68. package/esm/components/header/mobile.module.css.js +1 -1
  69. package/esm/desktop/desktop.css +2 -2
  70. package/esm/desktop/desktop.module.css.js +1 -1
  71. package/esm/desktop/transitions.desktop.css +6 -6
  72. package/esm/desktop/transitions.desktop.module.css.js +1 -1
  73. package/esm/mobile/mobile.css +4 -4
  74. package/esm/mobile/mobile.module.css.js +1 -1
  75. package/esm/mobile/transitions.mobile.css +7 -7
  76. package/esm/mobile/transitions.mobile.module.css.js +1 -1
  77. package/mobile/mobile.css +4 -4
  78. package/mobile/mobile.module.css.js +1 -1
  79. package/mobile/transitions.mobile.css +7 -7
  80. package/mobile/transitions.mobile.module.css.js +1 -1
  81. package/modern/components/content/desktop.css +2 -2
  82. package/modern/components/content/desktop.module.css.js +1 -1
  83. package/modern/components/content/index.css +3 -3
  84. package/modern/components/content/index.module.css.js +1 -1
  85. package/modern/components/content/mobile.css +6 -6
  86. package/modern/components/content/mobile.module.css.js +1 -1
  87. package/modern/components/content/mobile.module.css.js.map +1 -1
  88. package/modern/components/controls/Component.js +4 -1
  89. package/modern/components/controls/Component.js.map +1 -1
  90. package/modern/components/controls/index.css +1 -1
  91. package/modern/components/controls/index.module.css.js +1 -1
  92. package/modern/components/controls/mobile.layout.css +13 -0
  93. package/modern/components/controls/mobile.layout.module.css.js +6 -0
  94. package/modern/components/controls/mobile.layout.module.css.js.map +1 -0
  95. package/modern/components/footer/desktop.css +2 -2
  96. package/modern/components/footer/desktop.module.css.js +1 -1
  97. package/modern/components/footer/index.css +3 -3
  98. package/modern/components/footer/index.module.css.js +1 -1
  99. package/modern/components/footer/layout.css +16 -16
  100. package/modern/components/footer/layout.module.css.js +1 -1
  101. package/modern/components/footer/mobile.css +7 -7
  102. package/modern/components/footer/mobile.module.css.js +1 -1
  103. package/modern/components/footer/mobile.module.css.js.map +1 -1
  104. package/modern/components/header/desktop.css +3 -3
  105. package/modern/components/header/desktop.module.css.js +1 -1
  106. package/modern/components/header/index.css +13 -13
  107. package/modern/components/header/index.module.css.js +1 -1
  108. package/modern/components/header/mobile.css +8 -6
  109. package/modern/components/header/mobile.module.css.js +1 -1
  110. package/modern/desktop/desktop.css +2 -2
  111. package/modern/desktop/desktop.module.css.js +1 -1
  112. package/modern/desktop/transitions.desktop.css +6 -6
  113. package/modern/desktop/transitions.desktop.module.css.js +1 -1
  114. package/modern/mobile/mobile.css +4 -4
  115. package/modern/mobile/mobile.module.css.js +1 -1
  116. package/modern/mobile/transitions.mobile.css +7 -7
  117. package/modern/mobile/transitions.mobile.module.css.js +1 -1
  118. package/moderncssm/components/content/mobile.module.css +2 -2
  119. package/moderncssm/components/controls/Component.js +4 -1
  120. package/moderncssm/components/controls/Component.js.map +1 -1
  121. package/moderncssm/components/controls/mobile.layout.module.css +13 -0
  122. package/moderncssm/components/footer/mobile.module.css +2 -2
  123. package/moderncssm/components/header/mobile.module.css +2 -2
  124. package/package.json +4 -4
  125. package/src/components/content/mobile.module.css +2 -2
  126. package/src/components/controls/Component.tsx +4 -0
  127. package/src/components/controls/mobile.layout.module.css +15 -0
  128. package/src/components/footer/mobile.module.css +2 -2
  129. package/src/vars.css +3 -2
@@ -1,9 +1,9 @@
1
1
  :root {
2
2
  --side-panel-s-width: 500px;
3
3
  }
4
- .side-panel__size-500_1l05f.side-panel__size-500_1l05f {
4
+ .side-panel__size-500_1yys0.side-panel__size-500_1yys0 {
5
5
  width: var(--side-panel-s-width);
6
6
  }
7
- .side-panel__hidden_1l05f {
7
+ .side-panel__hidden_1yys0 {
8
8
  overflow-x: hidden;
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import './desktop.css';
2
2
 
3
- var styles = {"size-500":"side-panel__size-500_1l05f","hidden":"side-panel__hidden_1l05f"};
3
+ var styles = {"size-500":"side-panel__size-500_1yys0","hidden":"side-panel__hidden_1yys0"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=desktop.module.css.js.map
@@ -1,14 +1,14 @@
1
- .side-panel__enterRight_imsjc {
1
+ .side-panel__enterRight_6ypzi {
2
2
  opacity: 0;
3
3
  transform: translateX(15px);
4
4
  }
5
5
 
6
- .side-panel__enterLeft_imsjc {
6
+ .side-panel__enterLeft_6ypzi {
7
7
  opacity: 0;
8
8
  transform: translateX(-15px);
9
9
  }
10
10
 
11
- .side-panel__enterActive_imsjc {
11
+ .side-panel__enterActive_6ypzi {
12
12
  opacity: 1;
13
13
  transform: translateX(0);
14
14
  transition:
@@ -16,12 +16,12 @@
16
16
  transform 200ms ease-in;
17
17
  }
18
18
 
19
- .side-panel__exit_imsjc {
19
+ .side-panel__exit_6ypzi {
20
20
  opacity: 1;
21
21
  transform: translateX(0);
22
22
  }
23
23
 
24
- .side-panel__exitActiveRight_imsjc {
24
+ .side-panel__exitActiveRight_6ypzi {
25
25
  opacity: 0;
26
26
  transition:
27
27
  opacity 200ms ease-out,
@@ -29,7 +29,7 @@
29
29
  transform: translateX(15px);
30
30
  }
31
31
 
32
- .side-panel__exitActiveLeft_imsjc {
32
+ .side-panel__exitActiveLeft_6ypzi {
33
33
  opacity: 0;
34
34
  transition:
35
35
  opacity 200ms ease-out,
@@ -1,6 +1,6 @@
1
1
  import './transitions.desktop.css';
2
2
 
3
- var transitions = {"enterActive":"side-panel__enterActive_imsjc","exit":"side-panel__exit_imsjc","exitActiveRight":"side-panel__exitActiveRight_imsjc","exitActiveLeft":"side-panel__exitActiveLeft_imsjc"};
3
+ var transitions = {"enterActive":"side-panel__enterActive_6ypzi","exit":"side-panel__exit_6ypzi","exitActiveRight":"side-panel__exitActiveRight_6ypzi","exitActiveLeft":"side-panel__exitActiveLeft_6ypzi"};
4
4
 
5
5
  export { transitions as default };
6
6
  //# sourceMappingURL=transitions.desktop.module.css.js.map
@@ -5,7 +5,7 @@
5
5
  :root {
6
6
  --gap-0: 0px;
7
7
  }
8
- .side-panel__component_1gfwk {
8
+ .side-panel__component_1o61u {
9
9
  top: var(--gap-0);
10
10
  height: 100%;
11
11
  width: 100%;
@@ -13,17 +13,17 @@
13
13
  overflow-y: auto;
14
14
  max-width: 600px;
15
15
  }
16
- .side-panel__component_1gfwk.side-panel__component_1gfwk {
16
+ .side-panel__component_1o61u.side-panel__component_1o61u {
17
17
  position: fixed;
18
18
  flex: 1;
19
19
  }
20
20
  @media (display-mode: standalone) {
21
- .side-panel__content_1gfwk {
21
+ .side-panel__content_1o61u {
22
22
  padding-top: var(--sat);
23
23
  padding-bottom: var(--sab);
24
24
  }
25
25
  }
26
- .side-panel__mobileContent_1gfwk {
26
+ .side-panel__mobileContent_1o61u {
27
27
  display: flex;
28
28
  flex-direction: column;
29
29
  width: 100%;
@@ -1,6 +1,6 @@
1
1
  import './mobile.css';
2
2
 
3
- var styles = {"component":"side-panel__component_1gfwk","content":"side-panel__content_1gfwk","mobileContent":"side-panel__mobileContent_1gfwk"};
3
+ var styles = {"component":"side-panel__component_1o61u","content":"side-panel__content_1o61u","mobileContent":"side-panel__mobileContent_1o61u"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1,11 +1,11 @@
1
- .side-panel__appear_10jv6,
2
- .side-panel__enter_10jv6 {
1
+ .side-panel__appear_ydqgt,
2
+ .side-panel__enter_ydqgt {
3
3
  opacity: 0;
4
4
  transform: translateY(15px);
5
5
  }
6
6
 
7
- .side-panel__appearActive_10jv6,
8
- .side-panel__enterActive_10jv6 {
7
+ .side-panel__appearActive_ydqgt,
8
+ .side-panel__enterActive_ydqgt {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
11
  transition:
@@ -13,13 +13,13 @@
13
13
  transform 200ms ease-in;
14
14
  }
15
15
 
16
- .side-panel__exit_10jv6 {
16
+ .side-panel__exit_ydqgt {
17
17
  opacity: 1;
18
18
  transform: translateY(0);
19
19
  }
20
20
 
21
- .side-panel__exitActive_10jv6,
22
- .side-panel__exitDone_10jv6 {
21
+ .side-panel__exitActive_ydqgt,
22
+ .side-panel__exitDone_ydqgt {
23
23
  opacity: 0;
24
24
  transform: translateY(15px);
25
25
  transition:
@@ -1,6 +1,6 @@
1
1
  import './transitions.mobile.css';
2
2
 
3
- var transitions = {"appear":"side-panel__appear_10jv6","enter":"side-panel__enter_10jv6","appearActive":"side-panel__appearActive_10jv6","enterActive":"side-panel__enterActive_10jv6","exit":"side-panel__exit_10jv6","exitActive":"side-panel__exitActive_10jv6","exitDone":"side-panel__exitDone_10jv6"};
3
+ var transitions = {"appear":"side-panel__appear_ydqgt","enter":"side-panel__enter_ydqgt","appearActive":"side-panel__appearActive_ydqgt","enterActive":"side-panel__enterActive_ydqgt","exit":"side-panel__exit_ydqgt","exitActive":"side-panel__exitActive_ydqgt","exitDone":"side-panel__exitDone_ydqgt"};
4
4
 
5
5
  export { transitions as default };
6
6
  //# sourceMappingURL=transitions.mobile.module.css.js.map
package/mobile/mobile.css CHANGED
@@ -5,7 +5,7 @@
5
5
  :root {
6
6
  --gap-0: 0px;
7
7
  }
8
- .side-panel__component_1gfwk {
8
+ .side-panel__component_1o61u {
9
9
  top: var(--gap-0);
10
10
  height: 100%;
11
11
  width: 100%;
@@ -13,17 +13,17 @@
13
13
  overflow-y: auto;
14
14
  max-width: 600px;
15
15
  }
16
- .side-panel__component_1gfwk.side-panel__component_1gfwk {
16
+ .side-panel__component_1o61u.side-panel__component_1o61u {
17
17
  position: fixed;
18
18
  flex: 1;
19
19
  }
20
20
  @media (display-mode: standalone) {
21
- .side-panel__content_1gfwk {
21
+ .side-panel__content_1o61u {
22
22
  padding-top: var(--sat);
23
23
  padding-bottom: var(--sab);
24
24
  }
25
25
  }
26
- .side-panel__mobileContent_1gfwk {
26
+ .side-panel__mobileContent_1o61u {
27
27
  display: flex;
28
28
  flex-direction: column;
29
29
  width: 100%;
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./mobile.css');
4
4
 
5
- var styles = {"component":"side-panel__component_1gfwk","content":"side-panel__content_1gfwk","mobileContent":"side-panel__mobileContent_1gfwk"};
5
+ var styles = {"component":"side-panel__component_1o61u","content":"side-panel__content_1o61u","mobileContent":"side-panel__mobileContent_1o61u"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1,11 +1,11 @@
1
- .side-panel__appear_10jv6,
2
- .side-panel__enter_10jv6 {
1
+ .side-panel__appear_ydqgt,
2
+ .side-panel__enter_ydqgt {
3
3
  opacity: 0;
4
4
  transform: translateY(15px);
5
5
  }
6
6
 
7
- .side-panel__appearActive_10jv6,
8
- .side-panel__enterActive_10jv6 {
7
+ .side-panel__appearActive_ydqgt,
8
+ .side-panel__enterActive_ydqgt {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
11
  transition:
@@ -13,13 +13,13 @@
13
13
  transform 200ms ease-in;
14
14
  }
15
15
 
16
- .side-panel__exit_10jv6 {
16
+ .side-panel__exit_ydqgt {
17
17
  opacity: 1;
18
18
  transform: translateY(0);
19
19
  }
20
20
 
21
- .side-panel__exitActive_10jv6,
22
- .side-panel__exitDone_10jv6 {
21
+ .side-panel__exitActive_ydqgt,
22
+ .side-panel__exitDone_ydqgt {
23
23
  opacity: 0;
24
24
  transform: translateY(15px);
25
25
  transition:
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./transitions.mobile.css');
4
4
 
5
- var transitions = {"appear":"side-panel__appear_10jv6","enter":"side-panel__enter_10jv6","appearActive":"side-panel__appearActive_10jv6","enterActive":"side-panel__enterActive_10jv6","exit":"side-panel__exit_10jv6","exitActive":"side-panel__exitActive_10jv6","exitDone":"side-panel__exitDone_10jv6"};
5
+ var transitions = {"appear":"side-panel__appear_ydqgt","enter":"side-panel__enter_ydqgt","appearActive":"side-panel__appearActive_ydqgt","enterActive":"side-panel__enterActive_ydqgt","exit":"side-panel__exit_ydqgt","exitActive":"side-panel__exitActive_ydqgt","exitDone":"side-panel__exitDone_ydqgt"};
6
6
 
7
7
  module.exports = transitions;
8
8
  //# sourceMappingURL=transitions.mobile.module.css.js.map
@@ -8,9 +8,9 @@
8
8
  :root {
9
9
  --side-panel-s-content-paddings: var(--gap-40) var(--gap-40) var(--gap-0);
10
10
  }
11
- .side-panel__size-500_69mca {
11
+ .side-panel__size-500_1oyw7 {
12
12
  padding: var(--side-panel-s-content-paddings);
13
13
  }
14
- .side-panel__size-500_69mca:last-child {
14
+ .side-panel__size-500_1oyw7:last-child {
15
15
  padding-bottom: var(--gap-32);
16
16
  }
@@ -1,6 +1,6 @@
1
1
  import './desktop.css';
2
2
 
3
- const styles = {"size-500":"side-panel__size-500_69mca"};
3
+ const styles = {"size-500":"side-panel__size-500_1oyw7"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=desktop.module.css.js.map
@@ -1,15 +1,15 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .side-panel__content_11uzk {
4
+ .side-panel__content_1fk23 {
5
5
  position: relative;
6
6
  box-sizing: border-box;
7
7
  width: 100%;
8
8
  z-index: 0;
9
9
  }
10
- .side-panel__content_11uzk.side-panel__withHeader_11uzk {
10
+ .side-panel__content_1fk23.side-panel__withHeader_1fk23 {
11
11
  padding-top: var(--gap-0);
12
12
  }
13
- .side-panel__flex_11uzk {
13
+ .side-panel__flex_1fk23 {
14
14
  flex: 1 1 auto;
15
15
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"content":"side-panel__content_11uzk","withHeader":"side-panel__withHeader_11uzk","flex":"side-panel__flex_11uzk"};
3
+ const styles = {"content":"side-panel__content_1fk23","withHeader":"side-panel__withHeader_1fk23","flex":"side-panel__flex_1fk23"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,11 +1,11 @@
1
1
  :root {
2
- --gap-m: 16px;
2
+ --gap-l: 20px;
3
3
  --gap-0: 0px;
4
- --gap-16: var(--gap-m);
4
+ --gap-20: var(--gap-l);
5
5
  }
6
- .side-panel__content_d8mkh {
7
- padding: var(--gap-16) var(--gap-16) var(--gap-0);
6
+ .side-panel__content_10zfm {
7
+ padding: var(--gap-20) var(--gap-20) var(--gap-0);
8
8
  }
9
- .side-panel__content_d8mkh:last-child {
10
- padding-bottom: var(--gap-16);
9
+ .side-panel__content_10zfm:last-child {
10
+ padding-bottom: var(--gap-20);
11
11
  }
@@ -1,6 +1,6 @@
1
1
  import './mobile.css';
2
2
 
3
- const styles = {"content":"side-panel__content_d8mkh"};
3
+ const styles = {"content":"side-panel__content_10zfm"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobile.module.css.js","sources":["../../src/components/content/mobile.module.css"],"sourcesContent":["@import '../../vars.css';\n\n.content {\n padding: var(--gap-16) var(--gap-16) var(--gap-0);\n\n &:last-child {\n padding-bottom: var(--gap-16);\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,SAAS,CAAC,2BAA2B,CAAC;;;;"}
1
+ {"version":3,"file":"mobile.module.css.js","sources":["../../src/components/content/mobile.module.css"],"sourcesContent":["@import '../../vars.css';\n\n.content {\n padding: var(--gap-20) var(--gap-20) var(--gap-0);\n\n &:last-child {\n padding-bottom: var(--gap-20);\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,SAAS,CAAC,2BAA2B,CAAC;;;;"}
@@ -4,13 +4,16 @@ import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
4
  import { ResponsiveContext } from '../../ResponsiveContext.js';
5
5
  import layoutStyles from '../footer/layout.module.css.js';
6
6
  import styles from './index.module.css.js';
7
+ import mobileLayoutStyles from './mobile.layout.module.css.js';
7
8
 
8
9
  const Controls = ({ primary, secondary, gap, layout: layoutProp = 'start', mobileLayout = layoutProp, }) => {
9
10
  const context = useContext(ResponsiveContext);
10
11
  const { view = 'desktop', dataTestId } = context || {};
11
12
  const layout = view === 'mobile' ? mobileLayout : layoutProp;
12
13
  const shouldReverse = view === 'mobile' && layout !== 'column';
13
- return (React.createElement("div", { "data-test-id": getDataTestId(dataTestId, 'controls'), className: cn(styles.component, layoutStyles[layout], gap && layoutStyles[`gap-${gap}`]) }, shouldReverse ? (React.createElement(React.Fragment, null,
14
+ return (React.createElement("div", { "data-test-id": getDataTestId(dataTestId, 'controls'), className: cn(styles.component, layoutStyles[layout], gap && layoutStyles[`gap-${gap}`], {
15
+ [mobileLayoutStyles[layout]]: view === 'mobile',
16
+ }) }, shouldReverse ? (React.createElement(React.Fragment, null,
14
17
  secondary,
15
18
  primary)) : (React.createElement(React.Fragment, null,
16
19
  primary,
@@ -1 +1 @@
1
- {"version":3,"file":"Component.js","sources":["../../../src/components/controls/Component.tsx"],"sourcesContent":["import React, { type ReactNode, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { ResponsiveContext } from '../../ResponsiveContext';\n\nimport layoutStyles from '../footer/layout.module.css';\nimport styles from './index.module.css';\n\nexport interface ControlsProps {\n /**\n * Основной слот\n */\n primary?: ReactNode;\n\n /**\n * Дополнительный слот\n */\n secondary?: ReactNode;\n\n /**\n * Выравнивание элементов футера\n * @default start\n */\n layout?: 'start' | 'center' | 'space-between' | 'column';\n\n /**\n * Выравнивание элементов футера (мобильный view)\n * @default start\n */\n mobileLayout?: 'start' | 'center' | 'space-between' | 'column';\n\n /**\n * Отступы между элементами футера\n */\n gap?: 16 | 24 | 32;\n}\n\nexport const Controls: React.FC<ControlsProps> = ({\n primary,\n secondary,\n gap,\n layout: layoutProp = 'start',\n mobileLayout = layoutProp,\n}) => {\n const context = useContext(ResponsiveContext);\n const { view = 'desktop', dataTestId } = context || {};\n\n const layout = view === 'mobile' ? mobileLayout : layoutProp;\n\n const shouldReverse = view === 'mobile' && layout !== 'column';\n\n return (\n <div\n data-test-id={getDataTestId(dataTestId, 'controls')}\n className={cn(\n styles.component,\n layoutStyles[layout],\n gap && layoutStyles[`gap-${gap}`],\n )}\n >\n {shouldReverse ? (\n <React.Fragment>\n {secondary}\n {primary}\n </React.Fragment>\n ) : (\n <React.Fragment>\n {primary}\n {secondary}\n </React.Fragment>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;MAuCa,QAAQ,GAA4B,CAAC,EAC9C,OAAO,EACP,SAAS,EACT,GAAG,EACH,MAAM,EAAE,UAAU,GAAG,OAAO,EAC5B,YAAY,GAAG,UAAU,GAC5B,KAAI;AACD,IAAA,MAAM,OAAO,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAC7C,MAAM,EAAE,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,GAAG,OAAO,IAAI,EAAE;AAEtD,IAAA,MAAM,MAAM,GAAG,IAAI,KAAK,QAAQ,GAAG,YAAY,GAAG,UAAU;IAE5D,MAAM,aAAa,GAAG,IAAI,KAAK,QAAQ,IAAI,MAAM,KAAK,QAAQ;AAE9D,IAAA,QACI,KACkB,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,cAAA,EAAA,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC,EACnD,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,SAAS,EAChB,YAAY,CAAC,MAAM,CAAC,EACpB,GAAG,IAAI,YAAY,CAAC,CAAO,IAAA,EAAA,GAAG,EAAE,CAAC,CACpC,EAEA,EAAA,aAAa,IACV,KAAC,CAAA,aAAA,CAAA,KAAK,CAAC,QAAQ,EAAA,IAAA;QACV,SAAS;QACT,OAAO,CACK,KAEjB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAQ,EAAA,IAAA;QACV,OAAO;AACP,QAAA,SAAS,CACG,CACpB,CACC;AAEd;;;;"}
1
+ {"version":3,"file":"Component.js","sources":["../../../src/components/controls/Component.tsx"],"sourcesContent":["import React, { type ReactNode, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { ResponsiveContext } from '../../ResponsiveContext';\n\nimport layoutStyles from '../footer/layout.module.css';\nimport styles from './index.module.css';\nimport mobileLayoutStyles from './mobile.layout.module.css';\n\nexport interface ControlsProps {\n /**\n * Основной слот\n */\n primary?: ReactNode;\n\n /**\n * Дополнительный слот\n */\n secondary?: ReactNode;\n\n /**\n * Выравнивание элементов футера\n * @default start\n */\n layout?: 'start' | 'center' | 'space-between' | 'column';\n\n /**\n * Выравнивание элементов футера (мобильный view)\n * @default start\n */\n mobileLayout?: 'start' | 'center' | 'space-between' | 'column';\n\n /**\n * Отступы между элементами футера\n */\n gap?: 16 | 24 | 32;\n}\n\nexport const Controls: React.FC<ControlsProps> = ({\n primary,\n secondary,\n gap,\n layout: layoutProp = 'start',\n mobileLayout = layoutProp,\n}) => {\n const context = useContext(ResponsiveContext);\n const { view = 'desktop', dataTestId } = context || {};\n\n const layout = view === 'mobile' ? mobileLayout : layoutProp;\n\n const shouldReverse = view === 'mobile' && layout !== 'column';\n\n return (\n <div\n data-test-id={getDataTestId(dataTestId, 'controls')}\n className={cn(\n styles.component,\n layoutStyles[layout],\n gap && layoutStyles[`gap-${gap}`],\n {\n [mobileLayoutStyles[layout]]: view === 'mobile',\n },\n )}\n >\n {shouldReverse ? (\n <React.Fragment>\n {secondary}\n {primary}\n </React.Fragment>\n ) : (\n <React.Fragment>\n {primary}\n {secondary}\n </React.Fragment>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;MAwCa,QAAQ,GAA4B,CAAC,EAC9C,OAAO,EACP,SAAS,EACT,GAAG,EACH,MAAM,EAAE,UAAU,GAAG,OAAO,EAC5B,YAAY,GAAG,UAAU,GAC5B,KAAI;AACD,IAAA,MAAM,OAAO,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAC7C,MAAM,EAAE,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,GAAG,OAAO,IAAI,EAAE;AAEtD,IAAA,MAAM,MAAM,GAAG,IAAI,KAAK,QAAQ,GAAG,YAAY,GAAG,UAAU;IAE5D,MAAM,aAAa,GAAG,IAAI,KAAK,QAAQ,IAAI,MAAM,KAAK,QAAQ;AAE9D,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,cAAA,EACkB,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC,EACnD,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,SAAS,EAChB,YAAY,CAAC,MAAM,CAAC,EACpB,GAAG,IAAI,YAAY,CAAC,CAAA,IAAA,EAAO,GAAG,CAAA,CAAE,CAAC,EACjC;YACI,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG,IAAI,KAAK,QAAQ;SAClD,CACJ,EAAA,EAEA,aAAa,IACV,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAQ,EAAA,IAAA;QACV,SAAS;QACT,OAAO,CACK,KAEjB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAQ,EAAA,IAAA;QACV,OAAO;AACP,QAAA,SAAS,CACG,CACpB,CACC;AAEd;;;;"}
@@ -1,3 +1,3 @@
1
- .side-panel__component_1j7bp {
1
+ .side-panel__component_5ls3j {
2
2
  width: 100%;
3
3
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"side-panel__component_1j7bp"};
3
+ const styles = {"component":"side-panel__component_5ls3j"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -0,0 +1,13 @@
1
+ :root {
2
+ --gap-xs: 8px;
3
+ --gap-8: var(--gap-xs);
4
+ }
5
+ :root {
6
+ --side-panel-footer-mobile-default-gap: var(--gap-8);
7
+ }
8
+ .side-panel__column_1pzmu > *:not(:last-child):not(:only-child) {
9
+ margin-bottom: var(--side-panel-footer-mobile-default-gap);
10
+ }
11
+ .side-panel__start_1pzmu > *:not(:last-child):not(:only-child), .side-panel__center_1pzmu > *:not(:last-child):not(:only-child), .side-panel__space-between_1pzmu > *:not(:last-child):not(:only-child) {
12
+ margin-right: var(--side-panel-footer-mobile-default-gap);
13
+ }
@@ -0,0 +1,6 @@
1
+ import './mobile.layout.css';
2
+
3
+ const mobileLayoutStyles = {"column":"side-panel__column_1pzmu","start":"side-panel__start_1pzmu","center":"side-panel__center_1pzmu","space-between":"side-panel__space-between_1pzmu"};
4
+
5
+ export { mobileLayoutStyles as default };
6
+ //# sourceMappingURL=mobile.layout.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobile.layout.module.css.js","sources":["../../src/components/controls/mobile.layout.module.css"],"sourcesContent":["@import '../../vars.css';\n\n.column {\n & > *:not(:last-child):not(:only-child) {\n margin-bottom: var(--side-panel-footer-mobile-default-gap);\n }\n}\n\n.start,\n.center,\n.space-between {\n & > *:not(:last-child):not(:only-child) {\n margin-right: var(--side-panel-footer-mobile-default-gap);\n }\n}\n"],"names":[],"mappings":";;AAEgB,2BAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,OAAO,CAAC,yBAAyB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,eAAe,CAAC,iCAAiC,CAAC;;;;"}
@@ -8,9 +8,9 @@
8
8
  :root {
9
9
  --side-panel-s-footer-paddings: var(--gap-24) var(--gap-40) var(--gap-40);
10
10
  }
11
- .side-panel__sticky_grtud {
11
+ .side-panel__sticky_eqh76 {
12
12
  bottom: var(--gap-0);
13
13
  }
14
- .side-panel__size-500_grtud {
14
+ .side-panel__size-500_eqh76 {
15
15
  padding: var(--side-panel-s-footer-paddings);
16
16
  }
@@ -1,6 +1,6 @@
1
1
  import './desktop.css';
2
2
 
3
- const styles = {"sticky":"side-panel__sticky_grtud","size-500":"side-panel__size-500_grtud"};
3
+ const styles = {"sticky":"side-panel__sticky_eqh76","size-500":"side-panel__size-500_eqh76"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=desktop.module.css.js.map
@@ -7,19 +7,19 @@
7
7
  --side-panel-footer-highlight-background: var(--color-light-modal-bg-primary);
8
8
  --side-panel-footer-highlight-box-shadow: 0 -1px 0 0 var(--color-light-neutral-300);
9
9
  }
10
- .side-panel__footer_1jx5p {
10
+ .side-panel__footer_nuwc9 {
11
11
  width: 100%;
12
12
  box-sizing: border-box;
13
13
  transition:
14
14
  box-shadow 0.2s ease,
15
15
  background 0.2s ease;
16
16
  }
17
- .side-panel__sticky_1jx5p {
17
+ .side-panel__sticky_nuwc9 {
18
18
  background: var(--side-panel-footer-background);
19
19
  position: sticky;
20
20
  z-index: 1;
21
21
  }
22
- .side-panel__highlighted_1jx5p {
22
+ .side-panel__highlighted_nuwc9 {
23
23
  background: var(--side-panel-footer-highlight-background);
24
24
  box-shadow: var(--side-panel-footer-highlight-box-shadow);
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"footer":"side-panel__footer_1jx5p","sticky":"side-panel__sticky_1jx5p","highlighted":"side-panel__highlighted_1jx5p"};
3
+ const styles = {"footer":"side-panel__footer_nuwc9","sticky":"side-panel__sticky_nuwc9","highlighted":"side-panel__highlighted_nuwc9"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -9,48 +9,48 @@
9
9
  :root {
10
10
  --side-panel-footer-default-gap: var(--gap-16);
11
11
  }
12
- .side-panel__column_1gh69 {
12
+ .side-panel__column_anf08 {
13
13
  display: flex;
14
14
  flex-direction: column;
15
15
  }
16
- .side-panel__column_1gh69 > *:not(:last-child):not(:only-child) {
16
+ .side-panel__column_anf08 > *:not(:last-child):not(:only-child) {
17
17
  margin-bottom: var(--side-panel-footer-default-gap);
18
18
  }
19
- .side-panel__column_1gh69.side-panel__gap-16_1gh69 > *:not(:last-child):not(:only-child) {
19
+ .side-panel__column_anf08.side-panel__gap-16_anf08 > *:not(:last-child):not(:only-child) {
20
20
  margin-bottom: var(--gap-16);
21
21
  }
22
- .side-panel__column_1gh69.side-panel__gap-24_1gh69 > *:not(:last-child):not(:only-child) {
22
+ .side-panel__column_anf08.side-panel__gap-24_anf08 > *:not(:last-child):not(:only-child) {
23
23
  margin-bottom: var(--gap-24);
24
24
  }
25
- .side-panel__column_1gh69.side-panel__gap-32_1gh69 > *:not(:last-child):not(:only-child) {
25
+ .side-panel__column_anf08.side-panel__gap-32_anf08 > *:not(:last-child):not(:only-child) {
26
26
  margin-bottom: var(--gap-32);
27
27
  }
28
- .side-panel__start_1gh69 {
28
+ .side-panel__start_anf08 {
29
29
  justify-content: flex-start;
30
30
  }
31
- .side-panel__center_1gh69 {
31
+ .side-panel__center_anf08 {
32
32
  justify-content: center;
33
33
  }
34
- .side-panel__space-between_1gh69 {
34
+ .side-panel__space-between_anf08 {
35
35
  justify-content: space-between;
36
36
  }
37
- .side-panel__space-between_1gh69 > * {
37
+ .side-panel__space-between_anf08 > * {
38
38
  flex: 1;
39
39
  }
40
- .side-panel__start_1gh69,
41
- .side-panel__center_1gh69,
42
- .side-panel__space-between_1gh69 {
40
+ .side-panel__start_anf08,
41
+ .side-panel__center_anf08,
42
+ .side-panel__space-between_anf08 {
43
43
  display: flex;
44
44
  }
45
- .side-panel__start_1gh69 > *:not(:last-child):not(:only-child), .side-panel__center_1gh69 > *:not(:last-child):not(:only-child), .side-panel__space-between_1gh69 > *:not(:last-child):not(:only-child) {
45
+ .side-panel__start_anf08 > *:not(:last-child):not(:only-child), .side-panel__center_anf08 > *:not(:last-child):not(:only-child), .side-panel__space-between_anf08 > *:not(:last-child):not(:only-child) {
46
46
  margin-right: var(--side-panel-footer-default-gap);
47
47
  }
48
- .side-panel__start_1gh69.side-panel__gap-16_1gh69 > *:not(:last-child):not(:only-child), .side-panel__center_1gh69.side-panel__gap-16_1gh69 > *:not(:last-child):not(:only-child), .side-panel__space-between_1gh69.side-panel__gap-16_1gh69 > *:not(:last-child):not(:only-child) {
48
+ .side-panel__start_anf08.side-panel__gap-16_anf08 > *:not(:last-child):not(:only-child), .side-panel__center_anf08.side-panel__gap-16_anf08 > *:not(:last-child):not(:only-child), .side-panel__space-between_anf08.side-panel__gap-16_anf08 > *:not(:last-child):not(:only-child) {
49
49
  margin-right: var(--gap-16);
50
50
  }
51
- .side-panel__start_1gh69.side-panel__gap-24_1gh69 > *:not(:last-child):not(:only-child), .side-panel__center_1gh69.side-panel__gap-24_1gh69 > *:not(:last-child):not(:only-child), .side-panel__space-between_1gh69.side-panel__gap-24_1gh69 > *:not(:last-child):not(:only-child) {
51
+ .side-panel__start_anf08.side-panel__gap-24_anf08 > *:not(:last-child):not(:only-child), .side-panel__center_anf08.side-panel__gap-24_anf08 > *:not(:last-child):not(:only-child), .side-panel__space-between_anf08.side-panel__gap-24_anf08 > *:not(:last-child):not(:only-child) {
52
52
  margin-right: var(--gap-24);
53
53
  }
54
- .side-panel__start_1gh69.side-panel__gap-32_1gh69 > *:not(:last-child):not(:only-child), .side-panel__center_1gh69.side-panel__gap-32_1gh69 > *:not(:last-child):not(:only-child), .side-panel__space-between_1gh69.side-panel__gap-32_1gh69 > *:not(:last-child):not(:only-child) {
54
+ .side-panel__start_anf08.side-panel__gap-32_anf08 > *:not(:last-child):not(:only-child), .side-panel__center_anf08.side-panel__gap-32_anf08 > *:not(:last-child):not(:only-child), .side-panel__space-between_anf08.side-panel__gap-32_anf08 > *:not(:last-child):not(:only-child) {
55
55
  margin-right: var(--gap-32);
56
56
  }
@@ -1,6 +1,6 @@
1
1
  import './layout.css';
2
2
 
3
- const layoutStyles = {"column":"side-panel__column_1gh69","gap-16":"side-panel__gap-16_1gh69","gap-24":"side-panel__gap-24_1gh69","gap-32":"side-panel__gap-32_1gh69","start":"side-panel__start_1gh69","center":"side-panel__center_1gh69","space-between":"side-panel__space-between_1gh69"};
3
+ const layoutStyles = {"column":"side-panel__column_anf08","gap-16":"side-panel__gap-16_anf08","gap-24":"side-panel__gap-24_anf08","gap-32":"side-panel__gap-32_anf08","start":"side-panel__start_anf08","center":"side-panel__center_anf08","space-between":"side-panel__space-between_anf08"};
4
4
 
5
5
  export { layoutStyles as default };
6
6
  //# sourceMappingURL=layout.module.css.js.map
@@ -2,18 +2,18 @@
2
2
  --sab: env(safe-area-inset-bottom, var(--gap-0));
3
3
  }
4
4
  :root {
5
- --gap-m: 16px;
5
+ --gap-l: 20px;
6
6
  --gap-0: 0px;
7
- --gap-16: var(--gap-m);
7
+ --gap-20: var(--gap-l);
8
8
  }
9
- .side-panel__footer_yonk6 {
10
- padding: var(--gap-16);
9
+ .side-panel__footer_d933s {
10
+ padding: var(--gap-20);
11
11
  }
12
12
  @media (display-mode: standalone) {
13
- .side-panel__footer_yonk6 {
14
- padding-bottom: calc(var(--sab) + var(--gap-16));
13
+ .side-panel__footer_d933s {
14
+ padding-bottom: calc(var(--sab) + var(--gap-20));
15
15
  }
16
16
  }
17
- .side-panel__sticky_yonk6 {
17
+ .side-panel__sticky_d933s {
18
18
  bottom: var(--gap-0);
19
19
  }
@@ -1,6 +1,6 @@
1
1
  import './mobile.css';
2
2
 
3
- const styles = {"footer":"side-panel__footer_yonk6","sticky":"side-panel__sticky_yonk6"};
3
+ const styles = {"footer":"side-panel__footer_d933s","sticky":"side-panel__sticky_d933s"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobile.module.css.js","sources":["../../src/components/footer/mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/safe-area.css';\n@import '../../vars.css';\n\n.footer {\n padding: var(--gap-16);\n\n @media (display-mode: standalone) {\n padding-bottom: calc(var(--sab) + var(--gap-16));\n }\n}\n\n.sticky {\n bottom: var(--gap-0);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,QAAQ,CAAC,0BAA0B,CAAC;;;;"}
1
+ {"version":3,"file":"mobile.module.css.js","sources":["../../src/components/footer/mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/safe-area.css';\n@import '../../vars.css';\n\n.footer {\n padding: var(--gap-20);\n\n @media (display-mode: standalone) {\n padding-bottom: calc(var(--sab) + var(--gap-20));\n }\n}\n\n.sticky {\n bottom: var(--gap-0);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,QAAQ,CAAC,0BAA0B,CAAC;;;;"}
@@ -14,16 +14,16 @@
14
14
  --side-panel-s-header-paddings: 28px 28px var(--gap-0);
15
15
  --side-panel-s-header-desktop-content-paddings: var(--gap-6) var(--gap-12) var(--gap-16);
16
16
  }
17
- .side-panel__size-500_qjgp0 .side-panel__content_qjgp0 {
17
+ .side-panel__size-500_19uji .side-panel__content_19uji {
18
18
  padding: var(--side-panel-s-header-desktop-content-paddings);
19
19
  font-size: 30px;
20
20
  line-height: 36px;
21
21
  font-weight: 700;
22
22
  font-family: var(--font-family-system);
23
23
  }
24
- .side-panel__size-500_qjgp0 {
24
+ .side-panel__size-500_19uji {
25
25
  padding: var(--side-panel-s-header-paddings);
26
26
  }
27
- .side-panel__sticky_qjgp0 {
27
+ .side-panel__sticky_19uji {
28
28
  top: var(--gap-0);
29
29
  }
@@ -1,6 +1,6 @@
1
1
  import './desktop.css';
2
2
 
3
- const desktopStyles = {"size-500":"side-panel__size-500_qjgp0","content":"side-panel__content_qjgp0","sticky":"side-panel__sticky_qjgp0"};
3
+ const desktopStyles = {"size-500":"side-panel__size-500_19uji","content":"side-panel__content_19uji","sticky":"side-panel__sticky_19uji"};
4
4
 
5
5
  export { desktopStyles as default };
6
6
  //# sourceMappingURL=desktop.module.css.js.map