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

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 (131) 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 +8 -6
  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 +15 -10
  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/desktop.module.css +5 -3
  36. package/cssm/components/header/mobile.module.css +11 -6
  37. package/desktop/desktop.css +2 -2
  38. package/desktop/desktop.module.css.js +1 -1
  39. package/desktop/transitions.desktop.css +6 -6
  40. package/desktop/transitions.desktop.module.css.js +1 -1
  41. package/esm/components/content/desktop.css +2 -2
  42. package/esm/components/content/desktop.module.css.js +1 -1
  43. package/esm/components/content/index.css +3 -3
  44. package/esm/components/content/index.module.css.js +1 -1
  45. package/esm/components/content/mobile.css +6 -6
  46. package/esm/components/content/mobile.module.css.js +1 -1
  47. package/esm/components/content/mobile.module.css.js.map +1 -1
  48. package/esm/components/controls/Component.js +7 -3
  49. package/esm/components/controls/Component.js.map +1 -1
  50. package/esm/components/controls/index.css +1 -1
  51. package/esm/components/controls/index.module.css.js +1 -1
  52. package/esm/components/controls/mobile.layout.css +13 -0
  53. package/esm/components/controls/mobile.layout.module.css.js +6 -0
  54. package/esm/components/controls/mobile.layout.module.css.js.map +1 -0
  55. package/esm/components/footer/desktop.css +2 -2
  56. package/esm/components/footer/desktop.module.css.js +1 -1
  57. package/esm/components/footer/index.css +3 -3
  58. package/esm/components/footer/index.module.css.js +1 -1
  59. package/esm/components/footer/layout.css +16 -16
  60. package/esm/components/footer/layout.module.css.js +1 -1
  61. package/esm/components/footer/mobile.css +7 -7
  62. package/esm/components/footer/mobile.module.css.js +1 -1
  63. package/esm/components/footer/mobile.module.css.js.map +1 -1
  64. package/esm/components/header/desktop.css +8 -6
  65. package/esm/components/header/desktop.module.css.js +1 -1
  66. package/esm/components/header/index.css +13 -13
  67. package/esm/components/header/index.module.css.js +1 -1
  68. package/esm/components/header/mobile.css +15 -10
  69. package/esm/components/header/mobile.module.css.js +1 -1
  70. package/esm/desktop/desktop.css +2 -2
  71. package/esm/desktop/desktop.module.css.js +1 -1
  72. package/esm/desktop/transitions.desktop.css +6 -6
  73. package/esm/desktop/transitions.desktop.module.css.js +1 -1
  74. package/esm/mobile/mobile.css +4 -4
  75. package/esm/mobile/mobile.module.css.js +1 -1
  76. package/esm/mobile/transitions.mobile.css +7 -7
  77. package/esm/mobile/transitions.mobile.module.css.js +1 -1
  78. package/mobile/mobile.css +4 -4
  79. package/mobile/mobile.module.css.js +1 -1
  80. package/mobile/transitions.mobile.css +7 -7
  81. package/mobile/transitions.mobile.module.css.js +1 -1
  82. package/modern/components/content/desktop.css +2 -2
  83. package/modern/components/content/desktop.module.css.js +1 -1
  84. package/modern/components/content/index.css +3 -3
  85. package/modern/components/content/index.module.css.js +1 -1
  86. package/modern/components/content/mobile.css +6 -6
  87. package/modern/components/content/mobile.module.css.js +1 -1
  88. package/modern/components/content/mobile.module.css.js.map +1 -1
  89. package/modern/components/controls/Component.js +4 -1
  90. package/modern/components/controls/Component.js.map +1 -1
  91. package/modern/components/controls/index.css +1 -1
  92. package/modern/components/controls/index.module.css.js +1 -1
  93. package/modern/components/controls/mobile.layout.css +13 -0
  94. package/modern/components/controls/mobile.layout.module.css.js +6 -0
  95. package/modern/components/controls/mobile.layout.module.css.js.map +1 -0
  96. package/modern/components/footer/desktop.css +2 -2
  97. package/modern/components/footer/desktop.module.css.js +1 -1
  98. package/modern/components/footer/index.css +3 -3
  99. package/modern/components/footer/index.module.css.js +1 -1
  100. package/modern/components/footer/layout.css +16 -16
  101. package/modern/components/footer/layout.module.css.js +1 -1
  102. package/modern/components/footer/mobile.css +7 -7
  103. package/modern/components/footer/mobile.module.css.js +1 -1
  104. package/modern/components/footer/mobile.module.css.js.map +1 -1
  105. package/modern/components/header/desktop.css +8 -6
  106. package/modern/components/header/desktop.module.css.js +1 -1
  107. package/modern/components/header/index.css +13 -13
  108. package/modern/components/header/index.module.css.js +1 -1
  109. package/modern/components/header/mobile.css +15 -10
  110. package/modern/components/header/mobile.module.css.js +1 -1
  111. package/modern/desktop/desktop.css +2 -2
  112. package/modern/desktop/desktop.module.css.js +1 -1
  113. package/modern/desktop/transitions.desktop.css +6 -6
  114. package/modern/desktop/transitions.desktop.module.css.js +1 -1
  115. package/modern/mobile/mobile.css +4 -4
  116. package/modern/mobile/mobile.module.css.js +1 -1
  117. package/modern/mobile/transitions.mobile.css +7 -7
  118. package/modern/mobile/transitions.mobile.module.css.js +1 -1
  119. package/moderncssm/components/content/mobile.module.css +2 -2
  120. package/moderncssm/components/controls/Component.js +4 -1
  121. package/moderncssm/components/controls/Component.js.map +1 -1
  122. package/moderncssm/components/controls/mobile.layout.module.css +13 -0
  123. package/moderncssm/components/footer/mobile.module.css +2 -2
  124. package/moderncssm/components/header/desktop.module.css +2 -1
  125. package/moderncssm/components/header/mobile.module.css +6 -4
  126. package/package.json +8 -8
  127. package/src/components/content/mobile.module.css +2 -2
  128. package/src/components/controls/Component.tsx +4 -0
  129. package/src/components/controls/mobile.layout.module.css +15 -0
  130. package/src/components/footer/mobile.module.css +2 -2
  131. package/src/vars.css +3 -2
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"header":"side-panel__header_7avit","hasContent":"side-panel__hasContent_7avit","highlighted":"side-panel__highlighted_7avit","sticky":"side-panel__sticky_7avit"};
3
+ var styles = {"header":"side-panel__header_rl5xm","hasContent":"side-panel__hasContent_rl5xm","highlighted":"side-panel__highlighted_rl5xm","sticky":"side-panel__sticky_rl5xm"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -4,40 +4,45 @@
4
4
  :root {
5
5
  --gap-2xs: 4px;
6
6
  --gap-xs: 8px;
7
+ --gap-s: 12px;
7
8
  --gap-0: 0px;
8
9
  --gap-4: var(--gap-2xs);
9
10
  --gap-8: var(--gap-xs);
10
11
  --gap-10: 10px;
12
+ --gap-12: var(--gap-s);
11
13
  }
12
14
  :root {
13
- --font-family-system:
14
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
15
+ --font-family-alfasans:
16
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
17
+ Helvetica, sans-serif;
15
18
  }
16
19
  :root {
17
20
  --side-panel-header-mobile-content-paddings: var(--gap-10) var(--gap-8);
18
21
  --side-panel-header-mobile-top-padding: var(--gap-4);
19
- --side-panel-header-mobile-paddings: var(--side-panel-header-mobile-top-padding) var(--gap-8)
20
- var(--gap-4) var(--gap-8);
22
+ --side-panel-header-mobile-paddings: var(--side-panel-header-mobile-top-padding) var(--gap-12)
23
+ var(--gap-4) var(--gap-12);
21
24
  }
22
- .side-panel__header_el1tg {
25
+ .side-panel__header_1wifj {
23
26
  padding: var(--side-panel-header-mobile-paddings);
24
27
  }
25
28
  @media (display-mode: standalone) {
26
- .side-panel__header_el1tg {
29
+ .side-panel__header_1wifj {
27
30
  padding-top: calc(var(--sat) + var(--side-panel-header-mobile-top-padding));
28
31
  }
29
32
  }
30
- .side-panel__sticky_el1tg {
33
+ .side-panel__sticky_1wifj {
31
34
  top: var(--gap-0);
32
35
  }
33
- .side-panel__content_el1tg {
36
+ .side-panel__content_1wifj {
34
37
  padding: var(--side-panel-header-mobile-content-paddings);
35
38
 
36
39
  font-size: 20px;
37
40
 
38
41
  line-height: 28px;
39
42
 
40
- font-weight: 600;
43
+ font-weight: 500;
41
44
 
42
- font-family: var(--font-family-system);
45
+ letter-spacing: -0.15px;
46
+
47
+ font-family: var(--font-family-alfasans);
43
48
  }
@@ -1,6 +1,6 @@
1
1
  import './mobile.css';
2
2
 
3
- var mobileStyles = {"header":"side-panel__header_el1tg","sticky":"side-panel__sticky_el1tg","content":"side-panel__content_el1tg"};
3
+ var mobileStyles = {"header":"side-panel__header_1wifj","sticky":"side-panel__sticky_1wifj","content":"side-panel__content_1wifj"};
4
4
 
5
5
  export { mobileStyles as default };
6
6
  //# sourceMappingURL=mobile.module.css.js.map
@@ -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_hjqha.side-panel__size-500_hjqha {
5
5
  width: var(--side-panel-s-width);
6
6
  }
7
- .side-panel__hidden_1l05f {
7
+ .side-panel__hidden_hjqha {
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_hjqha","hidden":"side-panel__hidden_hjqha"};
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_62gmc {
2
2
  opacity: 0;
3
3
  transform: translateX(15px);
4
4
  }
5
5
 
6
- .side-panel__enterLeft_imsjc {
6
+ .side-panel__enterLeft_62gmc {
7
7
  opacity: 0;
8
8
  transform: translateX(-15px);
9
9
  }
10
10
 
11
- .side-panel__enterActive_imsjc {
11
+ .side-panel__enterActive_62gmc {
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_62gmc {
20
20
  opacity: 1;
21
21
  transform: translateX(0);
22
22
  }
23
23
 
24
- .side-panel__exitActiveRight_imsjc {
24
+ .side-panel__exitActiveRight_62gmc {
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_62gmc {
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_62gmc","exit":"side-panel__exit_62gmc","exitActiveRight":"side-panel__exitActiveRight_62gmc","exitActiveLeft":"side-panel__exitActiveLeft_62gmc"};
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_vk5xn {
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_vk5xn.side-panel__component_vk5xn {
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_vk5xn {
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_vk5xn {
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_vk5xn","content":"side-panel__content_vk5xn","mobileContent":"side-panel__mobileContent_vk5xn"};
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_15ej6,
2
+ .side-panel__enter_15ej6 {
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_15ej6,
8
+ .side-panel__enterActive_15ej6 {
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_15ej6 {
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_15ej6,
22
+ .side-panel__exitDone_15ej6 {
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_15ej6","enter":"side-panel__enter_15ej6","appearActive":"side-panel__appearActive_15ej6","enterActive":"side-panel__enterActive_15ej6","exit":"side-panel__exit_15ej6","exitActive":"side-panel__exitActive_15ej6","exitDone":"side-panel__exitDone_15ej6"};
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_vk5xn {
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_vk5xn.side-panel__component_vk5xn {
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_vk5xn {
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_vk5xn {
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_vk5xn","content":"side-panel__content_vk5xn","mobileContent":"side-panel__mobileContent_vk5xn"};
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_15ej6,
2
+ .side-panel__enter_15ej6 {
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_15ej6,
8
+ .side-panel__enterActive_15ej6 {
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_15ej6 {
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_15ej6,
22
+ .side-panel__exitDone_15ej6 {
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_15ej6","enter":"side-panel__enter_15ej6","appearActive":"side-panel__appearActive_15ej6","enterActive":"side-panel__enterActive_15ej6","exit":"side-panel__exit_15ej6","exitActive":"side-panel__exitActive_15ej6","exitDone":"side-panel__exitDone_15ej6"};
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_11n0v {
12
12
  padding: var(--side-panel-s-content-paddings);
13
13
  }
14
- .side-panel__size-500_69mca:last-child {
14
+ .side-panel__size-500_11n0v: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_11n0v"};
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_9gsk8 {
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_9gsk8.side-panel__withHeader_9gsk8 {
11
11
  padding-top: var(--gap-0);
12
12
  }
13
- .side-panel__flex_11uzk {
13
+ .side-panel__flex_9gsk8 {
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_9gsk8","withHeader":"side-panel__withHeader_9gsk8","flex":"side-panel__flex_9gsk8"};
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_cxjj3 {
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_cxjj3: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_cxjj3"};
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_qq0at {
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_qq0at"};
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_1grq1 > *:not(:last-child):not(:only-child) {
9
+ margin-bottom: var(--side-panel-footer-mobile-default-gap);
10
+ }
11
+ .side-panel__start_1grq1 > *:not(:last-child):not(:only-child), .side-panel__center_1grq1 > *:not(:last-child):not(:only-child), .side-panel__space-between_1grq1 > *: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_1grq1","start":"side-panel__start_1grq1","center":"side-panel__center_1grq1","space-between":"side-panel__space-between_1grq1"};
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_1jl7o {
12
12
  bottom: var(--gap-0);
13
13
  }
14
- .side-panel__size-500_grtud {
14
+ .side-panel__size-500_1jl7o {
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_1jl7o","size-500":"side-panel__size-500_1jl7o"};
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_tbogb {
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_tbogb {
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_tbogb {
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_tbogb","sticky":"side-panel__sticky_tbogb","highlighted":"side-panel__highlighted_tbogb"};
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_1rlh8 {
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_1rlh8 > *: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_1rlh8.side-panel__gap-16_1rlh8 > *: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_1rlh8.side-panel__gap-24_1rlh8 > *: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_1rlh8.side-panel__gap-32_1rlh8 > *:not(:last-child):not(:only-child) {
26
26
  margin-bottom: var(--gap-32);
27
27
  }
28
- .side-panel__start_1gh69 {
28
+ .side-panel__start_1rlh8 {
29
29
  justify-content: flex-start;
30
30
  }
31
- .side-panel__center_1gh69 {
31
+ .side-panel__center_1rlh8 {
32
32
  justify-content: center;
33
33
  }
34
- .side-panel__space-between_1gh69 {
34
+ .side-panel__space-between_1rlh8 {
35
35
  justify-content: space-between;
36
36
  }
37
- .side-panel__space-between_1gh69 > * {
37
+ .side-panel__space-between_1rlh8 > * {
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_1rlh8,
41
+ .side-panel__center_1rlh8,
42
+ .side-panel__space-between_1rlh8 {
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_1rlh8 > *:not(:last-child):not(:only-child), .side-panel__center_1rlh8 > *:not(:last-child):not(:only-child), .side-panel__space-between_1rlh8 > *: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_1rlh8.side-panel__gap-16_1rlh8 > *:not(:last-child):not(:only-child), .side-panel__center_1rlh8.side-panel__gap-16_1rlh8 > *:not(:last-child):not(:only-child), .side-panel__space-between_1rlh8.side-panel__gap-16_1rlh8 > *: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_1rlh8.side-panel__gap-24_1rlh8 > *:not(:last-child):not(:only-child), .side-panel__center_1rlh8.side-panel__gap-24_1rlh8 > *:not(:last-child):not(:only-child), .side-panel__space-between_1rlh8.side-panel__gap-24_1rlh8 > *: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_1rlh8.side-panel__gap-32_1rlh8 > *:not(:last-child):not(:only-child), .side-panel__center_1rlh8.side-panel__gap-32_1rlh8 > *:not(:last-child):not(:only-child), .side-panel__space-between_1rlh8.side-panel__gap-32_1rlh8 > *: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_1rlh8","gap-16":"side-panel__gap-16_1rlh8","gap-24":"side-panel__gap-24_1rlh8","gap-32":"side-panel__gap-32_1rlh8","start":"side-panel__start_1rlh8","center":"side-panel__center_1rlh8","space-between":"side-panel__space-between_1rlh8"};
4
4
 
5
5
  export { layoutStyles as default };
6
6
  //# sourceMappingURL=layout.module.css.js.map