@pareto-engineering/design-system 3.0.0-alpha.28 → 4.0.0-alpha.3

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 (205) hide show
  1. package/.storybook/main.js +25 -63
  2. package/.storybook/preview.js +26 -9
  3. package/.storybook/webpackFinal.js +68 -0
  4. package/babel.config.js +14 -45
  5. package/dist/cjs/a/ContentTree/styles.scss +20 -20
  6. package/dist/cjs/a/Conversation/styles.scss +1 -0
  7. package/dist/cjs/a/Label/styles.scss +18 -17
  8. package/dist/cjs/a/LoadingCircle/styles.scss +35 -37
  9. package/dist/cjs/a/People/styles.scss +4 -4
  10. package/dist/cjs/a/Popover/styles.scss +4 -3
  11. package/dist/cjs/a/Quote/styles.scss +41 -38
  12. package/dist/cjs/a/SnapScroller/styles.scss +6 -4
  13. package/dist/cjs/a/index.js +0 -7
  14. package/dist/cjs/b/Button/styles.scss +2 -2
  15. package/dist/cjs/b/Logo/styles.scss +4 -2
  16. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +2 -2
  17. package/dist/cjs/b/Page/styles.scss +7 -6
  18. package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
  19. package/dist/cjs/c/ContentSlides/styles.scss +2 -4
  20. package/dist/cjs/c/Modal/styles.scss +7 -5
  21. package/dist/cjs/c/SocialMediaShareButton/styles.scss +3 -3
  22. package/dist/cjs/f/FormInput/styles.scss +4 -4
  23. package/dist/cjs/f/common/Label/styles.scss +1 -1
  24. package/dist/cjs/f/fields/Checkbox/styles.scss +9 -8
  25. package/dist/cjs/f/fields/ChoicesInput/styles.scss +4 -4
  26. package/dist/cjs/f/fields/QueryCombobox/styles.scss +59 -59
  27. package/dist/cjs/f/fields/RatingsInput/styles.scss +8 -9
  28. package/dist/cjs/f/fields/SelectInput/styles.scss +6 -6
  29. package/dist/cjs/f/fields/TextInput/styles.scss +4 -4
  30. package/dist/cjs/f/fields/TextareaInput/styles.scss +7 -6
  31. package/dist/es/a/AppContext/ContextProvider.js +7 -8
  32. package/dist/es/a/AppContext/useTheme.js +1 -2
  33. package/dist/es/a/ContentTree/ContentTree.js +8 -9
  34. package/dist/es/a/ContentTree/common/Tree/Tree.js +8 -9
  35. package/dist/es/a/ContentTree/styles.scss +20 -20
  36. package/dist/es/a/Conversation/Conversation.js +11 -12
  37. package/dist/es/a/Conversation/common/Message/Message.js +12 -13
  38. package/dist/es/a/Conversation/styles.scss +1 -0
  39. package/dist/es/a/DotInfo/DotInfo.js +11 -12
  40. package/dist/es/a/Figure/Figure.js +8 -9
  41. package/dist/es/a/HamburgerButton/HamburgerButton.js +10 -11
  42. package/dist/es/a/IconList/IconList.js +9 -10
  43. package/dist/es/a/IconList/common/Item/Item.js +17 -20
  44. package/dist/es/a/Label/Label.js +9 -10
  45. package/dist/es/a/Label/styles.scss +18 -17
  46. package/dist/es/a/LoadingCircle/LoadingCircle.js +10 -11
  47. package/dist/es/a/LoadingCircle/styles.scss +35 -37
  48. package/dist/es/a/People/People.js +9 -10
  49. package/dist/es/a/People/common/Person/Person.js +24 -27
  50. package/dist/es/a/People/styles.scss +4 -4
  51. package/dist/es/a/Popover/Popover.js +14 -15
  52. package/dist/es/a/Popover/styles.scss +4 -3
  53. package/dist/es/a/ProgressBar/ProgressBar.js +10 -11
  54. package/dist/es/a/Quote/Quote.js +10 -11
  55. package/dist/es/a/Quote/styles.scss +41 -38
  56. package/dist/es/a/SVG/SVG.js +17 -18
  57. package/dist/es/a/SVG/common/UseSVG/UseSVG.js +19 -22
  58. package/dist/es/a/SnapScroller/SnapScroller.js +8 -9
  59. package/dist/es/a/SnapScroller/styles.scss +6 -4
  60. package/dist/es/a/Spinner/Spinner.js +7 -8
  61. package/dist/es/a/Timestamp/Timestamp.js +14 -15
  62. package/dist/es/a/index.js +0 -1
  63. package/dist/es/b/Button/Button.js +13 -14
  64. package/dist/es/b/Button/styles.scss +2 -2
  65. package/dist/es/b/Logo/Logo.js +12 -13
  66. package/dist/es/b/Logo/styles.scss +4 -2
  67. package/dist/es/b/Page/Page.js +10 -11
  68. package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +9 -11
  69. package/dist/es/b/Page/common/Section/Section.js +7 -8
  70. package/dist/es/b/Page/styles.scss +7 -6
  71. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +11 -12
  72. package/dist/es/b/SocialMediaButton/styles.scss +1 -1
  73. package/dist/es/b/ThemeSelector/ThemeSelector.js +8 -9
  74. package/dist/es/b/Title/Title.js +27 -30
  75. package/dist/es/c/ContentSlides/ContentSlides.js +12 -15
  76. package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +11 -12
  77. package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +14 -15
  78. package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +8 -9
  79. package/dist/es/c/ContentSlides/common/Slide/Slide.js +8 -9
  80. package/dist/es/c/ContentSlides/styles.scss +2 -4
  81. package/dist/es/c/Modal/Modal.js +10 -11
  82. package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +20 -23
  83. package/dist/es/c/Modal/styles.scss +7 -5
  84. package/dist/es/c/Shortener/Shortener.js +11 -12
  85. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +9 -10
  86. package/dist/es/c/SocialMediaShareButton/styles.scss +3 -3
  87. package/dist/es/f/FormInput/FormInput.js +7 -8
  88. package/dist/es/f/FormInput/styles.scss +4 -4
  89. package/dist/es/f/common/Debugger/Debugger.js +7 -8
  90. package/dist/es/f/common/Description/Description.js +9 -10
  91. package/dist/es/f/common/Label/Label.js +11 -12
  92. package/dist/es/f/common/Label/styles.scss +1 -1
  93. package/dist/es/f/fields/Checkbox/Checkbox.js +11 -12
  94. package/dist/es/f/fields/Checkbox/styles.scss +9 -8
  95. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +17 -18
  96. package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +13 -14
  97. package/dist/es/f/fields/ChoicesInput/styles.scss +4 -4
  98. package/dist/es/f/fields/QueryChoices/QueryChoices.js +16 -20
  99. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +27 -31
  100. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +22 -24
  101. package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +22 -25
  102. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +24 -26
  103. package/dist/es/f/fields/QueryCombobox/styles.scss +59 -59
  104. package/dist/es/f/fields/QuerySelect/QuerySelect.js +24 -28
  105. package/dist/es/f/fields/RatingsInput/RatingsInput.js +16 -17
  106. package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +15 -16
  107. package/dist/es/f/fields/RatingsInput/styles.scss +8 -9
  108. package/dist/es/f/fields/SelectInput/SelectInput.js +16 -17
  109. package/dist/es/f/fields/SelectInput/styles.scss +6 -6
  110. package/dist/es/f/fields/TextInput/TextInput.js +18 -19
  111. package/dist/es/f/fields/TextInput/styles.scss +4 -4
  112. package/dist/es/f/fields/TextareaInput/TextareaInput.js +20 -21
  113. package/dist/es/f/fields/TextareaInput/styles.scss +7 -6
  114. package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +15 -21
  115. package/dist/es/r/common/PrivateRoute/PrivateRoute.js +6 -7
  116. package/dist/es/test/QueryLoader/QueryLoader.js +1 -1
  117. package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +5 -6
  118. package/dist/es/utils/hooks/useDynamicPosition.js +9 -10
  119. package/dist/es/utils/hooks/useWindowSize.js +1 -2
  120. package/jest.config.js +5 -5
  121. package/package.json +44 -81
  122. package/src/stories/b/Page.stories.jsx +2 -1
  123. package/src/stories/original/Button.jsx +55 -0
  124. package/src/stories/original/Button.stories.js +39 -0
  125. package/src/stories/original/Header.jsx +64 -0
  126. package/src/stories/original/Header.stories.js +22 -0
  127. package/src/stories/original/Introduction.mdx +211 -0
  128. package/src/stories/original/Page.jsx +76 -0
  129. package/src/stories/original/Page.stories.js +26 -0
  130. package/src/stories/original/assets/code-brackets.svg +1 -0
  131. package/src/stories/original/assets/colors.svg +1 -0
  132. package/src/stories/original/assets/comments.svg +1 -0
  133. package/src/stories/original/assets/direction.svg +1 -0
  134. package/src/stories/original/assets/flow.svg +1 -0
  135. package/src/stories/original/assets/plugin.svg +1 -0
  136. package/src/stories/original/assets/repo.svg +1 -0
  137. package/src/stories/original/assets/stackalt.svg +1 -0
  138. package/src/stories/original/button.css +30 -0
  139. package/src/stories/original/header.css +32 -0
  140. package/src/stories/original/page.css +69 -0
  141. package/src/ui/a/ContentTree/styles.scss +20 -20
  142. package/src/ui/a/Conversation/styles.scss +1 -0
  143. package/src/ui/a/Label/styles.scss +18 -17
  144. package/src/ui/a/LoadingCircle/styles.scss +35 -37
  145. package/src/ui/a/People/styles.scss +4 -4
  146. package/src/ui/a/Popover/styles.scss +4 -3
  147. package/src/ui/a/Quote/styles.scss +41 -38
  148. package/src/ui/a/SnapScroller/styles.scss +6 -4
  149. package/src/ui/a/index.js +0 -1
  150. package/src/ui/b/Button/styles.scss +2 -2
  151. package/src/ui/b/Logo/styles.scss +4 -2
  152. package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +1 -1
  153. package/src/ui/b/Page/styles.scss +7 -6
  154. package/src/ui/b/SocialMediaButton/styles.scss +1 -1
  155. package/src/ui/c/ContentSlides/styles.scss +2 -4
  156. package/src/ui/c/Modal/styles.scss +7 -5
  157. package/src/ui/c/SocialMediaShareButton/styles.scss +3 -3
  158. package/src/ui/f/FormInput/styles.scss +4 -4
  159. package/src/ui/f/common/Label/styles.scss +1 -1
  160. package/src/ui/f/fields/Checkbox/styles.scss +9 -8
  161. package/src/ui/f/fields/ChoicesInput/styles.scss +4 -4
  162. package/src/ui/f/fields/QueryCombobox/styles.scss +59 -59
  163. package/src/ui/f/fields/RatingsInput/styles.scss +8 -9
  164. package/src/ui/f/fields/SelectInput/styles.scss +6 -6
  165. package/src/ui/f/fields/TextInput/styles.scss +4 -4
  166. package/src/ui/f/fields/TextareaInput/styles.scss +7 -6
  167. package/src/ui/test/QueryLoader/QueryLoader.jsx +1 -1
  168. package/{src → tests}/__snapshots__/Storyshots.test.js.snap +687 -301
  169. package/tests/staticStub.js +1 -0
  170. package/.storybook/manager-head.html +0 -6
  171. package/.storybook/preview-head.html +0 -5
  172. package/README.md +0 -1
  173. package/build-storybook.log +0 -2978
  174. package/config/CSSStub.js +0 -1
  175. package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +0 -105
  176. package/dist/cjs/a/AnimatedCounter/index.js +0 -13
  177. package/dist/cjs/a/AnimatedCounter/styles.scss +0 -16
  178. package/dist/es/a/AnimatedCounter/AnimatedCounter.js +0 -98
  179. package/dist/es/a/AnimatedCounter/index.js +0 -2
  180. package/dist/es/a/AnimatedCounter/styles.scss +0 -16
  181. package/postcss.config.js +0 -13
  182. package/relay.config.js +0 -12
  183. package/src/assets/images/Ellipse1.png +0 -0
  184. package/src/assets/images/Ellipse2.png +0 -0
  185. package/src/assets/images/Fundraising.svg +0 -40
  186. package/src/assets/images/ParetoSupport.svg +0 -190
  187. package/src/assets/images/ParetoWorld.svg +0 -207
  188. package/src/assets/images/Vector.png +0 -0
  189. package/src/assets/images/email-attach.svg +0 -1
  190. package/src/assets/images/email-delete.svg +0 -1
  191. package/src/assets/images/favicon.png +0 -0
  192. package/src/assets/images/onboarding/focus-on-strategic-work.webp +0 -0
  193. package/src/assets/images/onboarding/launch-project.webp +0 -0
  194. package/src/assets/images/onboarding/meet-pareto-partner.webp +0 -0
  195. package/src/assets/images/quality.png +0 -0
  196. package/src/assets/images/sprite.svg +0 -253
  197. package/src/assets/images/test +0 -1
  198. package/src/local.scss +0 -16
  199. package/src/stories/a/AnimatedCounter.stories.jsx +0 -34
  200. package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +0 -118
  201. package/src/ui/a/AnimatedCounter/index.js +0 -2
  202. package/src/ui/a/AnimatedCounter/styles.scss +0 -16
  203. /package/{src → tests}/Storyshots.test.js +0 -0
  204. /package/{config → tests}/global-setup.js +0 -0
  205. /package/{config → tests}/test-setup.js +0 -0
@@ -0,0 +1,69 @@
1
+ section {
2
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
+ font-size: 14px;
4
+ line-height: 24px;
5
+ padding: 48px 20px;
6
+ margin: 0 auto;
7
+ max-width: 600px;
8
+ color: #333;
9
+ }
10
+
11
+ section h2 {
12
+ font-weight: 700;
13
+ font-size: 32px;
14
+ line-height: 1;
15
+ margin: 0 0 4px;
16
+ display: inline-block;
17
+ vertical-align: top;
18
+ }
19
+
20
+ section p {
21
+ margin: 1em 0;
22
+ }
23
+
24
+ section a {
25
+ text-decoration: none;
26
+ color: #1ea7fd;
27
+ }
28
+
29
+ section ul {
30
+ padding-left: 30px;
31
+ margin: 1em 0;
32
+ }
33
+
34
+ section li {
35
+ margin-bottom: 8px;
36
+ }
37
+
38
+ section .tip {
39
+ display: inline-block;
40
+ border-radius: 1em;
41
+ font-size: 11px;
42
+ line-height: 12px;
43
+ font-weight: 700;
44
+ background: #e7fdd8;
45
+ color: #66bf3c;
46
+ padding: 4px 12px;
47
+ margin-right: 10px;
48
+ vertical-align: top;
49
+ }
50
+
51
+ section .tip-wrapper {
52
+ font-size: 13px;
53
+ line-height: 20px;
54
+ margin-top: 40px;
55
+ margin-bottom: 40px;
56
+ }
57
+
58
+ section .tip-wrapper svg {
59
+ display: inline-block;
60
+ height: 12px;
61
+ width: 12px;
62
+ margin-right: 4px;
63
+ vertical-align: top;
64
+ margin-top: 3px;
65
+ }
66
+
67
+ section .tip-wrapper svg path {
68
+ fill: #1ea7fd;
69
+ }
@@ -1,33 +1,33 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
 
4
5
  $default-margin: 1em;
5
6
  $default-padding: 1em;
6
7
 
7
- .#{bem.$base}.content-tree{
8
+ .#{bem.$base}.content-tree {
9
+ ul {
10
+ list-style: none;
11
+ }
12
+
13
+ .#{bem.$base}.tree {
14
+ padding: 0;
15
+ position: sticky;
16
+ top: 0;
8
17
 
9
- ul {
10
- list-style: none;
18
+ .#{bem.$modifier-active} {
19
+ color: var(--main2);
20
+ transition: color .2s;
11
21
  }
12
22
 
13
- .#{bem.$base}.tree {
14
- position: sticky;
15
- top: 0;
16
- padding: 0;
17
-
18
- .#{bem.$modifier-active} {
19
- color: var(--main2);
20
- transition: color 0.2s;
21
- }
22
-
23
- li:not(:last-child) {
24
- margin-bottom: $default-margin;
25
- ul {
26
- padding-left: $default-padding;
27
- }
28
- }
23
+ li:not(:last-child) {
24
+ margin-bottom: $default-margin;
25
+
26
+ ul {
27
+ padding-left: $default-padding;
28
+ }
29
29
  }
30
+ }
30
31
  }
31
32
 
32
33
 
33
-
@@ -1,4 +1,5 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+ /* stylelint-disable selector-max-compound-selectors -- exception */
2
3
 
3
4
  @use "@pareto-engineering/bem";
4
5
  @use "@pareto-engineering/styles/src/mixins";
@@ -1,4 +1,5 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
 
4
5
  $default-padding-bottom: .4em;
@@ -13,22 +14,22 @@ $default-image-size: 2em;
13
14
  $default-font-size: calc(1em * var(--s-1));
14
15
 
15
16
  .#{bem.$base}.label {
16
- align-items: center;
17
- background: var(--x, var(--#{$default-color}));
18
- border-radius: 3em;
19
- color: var(--on-x, var(--on-#{$default-color}));
20
- display: inline-flex;
21
- font-size: $default-font-size;
22
- padding: $default-padding;
23
- white-space: nowrap;
17
+ align-items: center;
18
+ background: var(--x, var(--#{$default-color}));
19
+ border-radius: 3em;
20
+ color: var(--on-x, var(--on-#{$default-color}));
21
+ display: inline-flex;
22
+ font-size: $default-font-size;
23
+ padding: $default-padding;
24
+ white-space: nowrap;
24
25
 
25
- &.#{bem.$modifier-compact} {
26
- padding: $compact-padding;
27
- }
26
+ &.#{bem.$modifier-compact} {
27
+ padding: $compact-padding;
28
+ }
28
29
 
29
- &.#{bem.$modifier-ghost} {
30
- background: transparent;
31
- border: 1px solid var(--x, var(--#{$default-color}));
32
- color: var(--x, var(--#{$default-color}));
33
- }
34
- }
30
+ &.#{bem.$modifier-ghost} {
31
+ background: transparent;
32
+ border: 1px solid var(--x, var(--#{$default-color}));
33
+ color: var(--x, var(--#{$default-color}));
34
+ }
35
+ }
@@ -1,49 +1,47 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
 
4
5
 
5
6
  $animation-duration:var(--animation-duration, 2s);
6
7
  $stroke-color:var(--x);
7
8
 
8
- .#{bem.$base}.loading-circle{
9
-
10
- height: var(--height-width);
11
- width: var(--height-width);
12
-
13
- @keyframes rotate {
14
- 100% {
15
- transform: rotate(360deg);
16
- }
9
+ .#{bem.$base}.loading-circle {
10
+ height: var(--height-width);
11
+ width: var(--height-width);
12
+ @keyframes rotate {
13
+ 100% {
14
+ transform: rotate(360deg);
15
+ }
16
+ }
17
+ @keyframes dash-anim {
18
+ 0% {
19
+ stroke-dasharray: 1, 200;
20
+ stroke-dashoffset: 0;
17
21
  }
18
22
 
19
- @keyframes dash-anim {
20
- 0% {
21
- stroke-dasharray: 1, 200;
22
- stroke-dashoffset: 0;
23
- }
24
-
25
- 50% {
26
- stroke-dasharray: 89, 200;
27
- stroke-dashoffset: -35px;
28
- }
29
-
30
- 100% {
31
- stroke-dasharray: 89, 200;
32
- stroke-dashoffset: -124px;
33
- }
23
+ 50% {
24
+ stroke-dasharray: 89, 200;
25
+ stroke-dashoffset: -35px;
34
26
  }
35
27
 
36
- svg.svg-circle {
37
- transform-origin: center center;
38
- margin: auto;
39
- animation: rotate $animation-duration linear infinite;
40
-
41
- circle {
42
- animation: dash-anim $animation-duration ease-in-out infinite;
43
- stroke: $stroke-color;
44
- stroke-width: var(--stroke-width, 8);
45
- stroke-dasharray: 1, 200;
46
- stroke-dashoffset: 0;
47
- }
28
+ 100% {
29
+ stroke-dasharray: 89, 200;
30
+ stroke-dashoffset: -124px;
31
+ }
32
+ }
33
+
34
+ svg.svg-circle {
35
+ animation: rotate $animation-duration linear infinite;
36
+ margin: auto;
37
+ transform-origin: center center;
38
+
39
+ circle {
40
+ animation: dash-anim $animation-duration ease-in-out infinite;
41
+ stroke: $stroke-color;
42
+ stroke-dasharray: 1, 200;
43
+ stroke-dashoffset: 0;
44
+ stroke-width: var(--stroke-width, 8);
48
45
  }
49
- }
46
+ }
47
+ }
@@ -15,8 +15,8 @@ $default-image-padding: 1.5rem;
15
15
 
16
16
  .#{bem.$base}.people {
17
17
  display: grid;
18
+ gap: $default-grid-gap;
18
19
  grid-template-columns: repeat(auto-fill, minmax(var(--column-width), 1fr));
19
- gap:$default-grid-gap;
20
20
 
21
21
 
22
22
  .person {
@@ -29,19 +29,19 @@ $default-image-padding: 1.5rem;
29
29
  .image {
30
30
  border-radius: $default-border-radius;
31
31
  height: var(--image-size);
32
- width: var(--image-size);
33
32
  margin-right: $default-image-padding;
33
+ width: var(--image-size);
34
34
  }
35
35
 
36
36
  .details {
37
37
  align-items: flex-start;
38
+ color: var(--grey);
38
39
  display: flex;
39
40
  flex-direction: column;
40
- color: var(--grey);
41
41
 
42
42
  .name {
43
- margin-bottom: .1em;
44
43
  color: var(--grey);
44
+ margin-bottom: .1em;
45
45
  }
46
46
 
47
47
  .role {
@@ -1,13 +1,14 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
 
4
5
  $default-border: var(--theme-border-style) var(--metadata);
5
6
 
6
7
  .#{bem.$base}.popover {
7
- position: absolute;
8
- z-index: 1;
9
8
  background-color: var(--x);
10
9
  border: $default-border;
10
+ position: absolute;
11
+ z-index: 1;
11
12
 
12
13
  &:not(.open) {
13
14
  display: none;
@@ -30,4 +31,4 @@ $default-border: var(--theme-border-style) var(--metadata);
30
31
  bottom: 100%;
31
32
  top: auto;
32
33
  }
33
- }
34
+ }
@@ -1,53 +1,56 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
  @use "@pareto-engineering/styles/src/mixins";
4
5
  @use "@pareto-engineering/styles/src/globals" as *;
5
6
 
6
7
 
7
- .#{bem.$base}.quote{
8
- display: flex;
9
- flex-direction: column;
10
- align-items: center;
8
+ .#{bem.$base}.quote {
9
+ align-items: center;
10
+ display: flex;
11
+ flex-direction: column;
12
+
13
+ .blockquote {
14
+ margin: 0;
15
+ padding: 0;
16
+ }
17
+
18
+ .figcaption {
19
+ padding: 0;
20
+ }
11
21
 
22
+ @include mixins.media($from:$sm-md) {
12
23
  .blockquote {
13
- margin: 0;
14
- padding: 0;
24
+ .quotation {
25
+ display: inline;
26
+ }
27
+
28
+ &::before {
29
+ color: transparent;
30
+ content: "\201C";
31
+ font-size: 4em;
32
+ line-height: 0;
33
+ opacity: inherit;
34
+ position: static;
35
+ -webkit-text-stroke: 1px var(--x);
36
+ vertical-align: -.4em;
37
+ }
38
+
39
+ &::after {
40
+ color: transparent;
41
+ content: "\201D";
42
+ font-size: 4em;
43
+ line-height: 0;
44
+ margin-left: -.1em;
45
+ -webkit-text-stroke: 1px var(--x);
46
+ vertical-align: -.6em;
47
+ }
15
48
  }
16
49
 
17
50
  .figcaption {
18
- padding: 0;
19
- }
20
-
21
- @include mixins.media($from:$sm-md) {
22
- .blockquote {
23
- .quotation {
24
- display: inline;
25
- }
26
- &:before {
27
- color: transparent;
28
- content: '\201C';
29
- font-size: 4em;
30
- line-height: 0;
31
- position: static;
32
- vertical-align: -0.4em;
33
- -webkit-text-stroke: 1px var(--x);
34
- opacity: inherit;
35
- }
36
- &:after {
37
- color: transparent;
38
- content: '\201D';
39
- font-size: 4em;
40
- line-height: 0;
41
- vertical-align: -0.6em;
42
- margin-left: -.1em;
43
- -webkit-text-stroke: 1px var(--x);
44
- }
45
- }
46
- .figcaption {
47
- margin: 0;
48
- }
51
+ margin: 0;
49
52
  }
53
+ }
50
54
  }
51
55
 
52
56
 
53
-
@@ -1,4 +1,5 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+ /* stylelint-disable selector-max-universal -- exception */
2
3
 
3
4
  @use "@pareto-engineering/bem";
4
5
  @use "@pareto-engineering/styles/src/mixins";
@@ -10,18 +11,19 @@ $default-spacing:var(--spacing, var(--u));
10
11
  display: flex;
11
12
  -ms-overflow-style: none; /* for Internet Explorer, Edge */
12
13
  overflow-x: auto;
13
- scroll-padding: calc(#{$default-spacing} *2);
14
+ scroll-padding: calc(#{$default-spacing} * 2);
14
15
  scroll-snap-type: x mandatory;
15
16
  scrollbar-width: none;
16
17
 
17
18
 
18
19
  > * {
19
- &:first-child {
20
- margin-left: $default-spacing;
21
- }
22
20
  display: inline-block;
23
21
  margin-right: $default-spacing;
24
22
  scroll-snap-align: start;
23
+
24
+ &:first-child {
25
+ margin-left: $default-spacing;
26
+ }
25
27
  }
26
28
 
27
29
 
package/src/ui/a/index.js CHANGED
@@ -1,4 +1,3 @@
1
- export { AnimatedCounter } from './AnimatedCounter'
2
1
  export {
3
2
  AppContext, AppContextProvider, useApp, useTheme,
4
3
  } from './AppContext'
@@ -16,11 +16,11 @@ $default-animation-time: .31s;
16
16
  border-radius: $default-border-radius;
17
17
  color: var(--on-x, var(--on-#{$default-color}));
18
18
  display: inline-flex;
19
- font-family: var(--theme-default-paragraph);
19
+ font-family: "paragraph", sans-serif;
20
20
  font-weight: 400;
21
21
  justify-content: space-between;
22
22
  padding: $default-padding;
23
- transition: all .25s;
23
+ transition: all .25s;//var(--theme-default-paragraph);
24
24
 
25
25
  &.arrow-right {
26
26
  &::after {
@@ -1,9 +1,11 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
 
3
+ /*
4
+
3
5
  @use "@pareto-engineering/bem";
4
6
 
5
- .#{bem.$base}.logo {
7
+ .{bem.$base}.logo {
6
8
 
7
- }
9
+ } */
8
10
 
9
11
 
@@ -2,7 +2,7 @@
2
2
  import * as React from 'react'
3
3
  import { useMemo } from 'react'
4
4
  import PropTypes from 'prop-types'
5
- import { Helmet } from 'react-helmet'
5
+ import { Helmet } from 'react-helmet-async'
6
6
  import { useApp } from 'ui/a'
7
7
 
8
8
  const helmetMap = [
@@ -1,16 +1,17 @@
1
1
  /* @pareto-engineering/generator-front 1.0.0 */
2
+ /* stylelint-disable selector-max-universal -- exception */
2
3
 
3
4
  @use "@pareto-engineering/bem";
4
5
 
5
6
 
6
- .#{bem.$base}.page{
7
- .#{bem.$base}.section {
8
- position: relative;
7
+ .#{bem.$base}.page {
8
+ .#{bem.$base}.section {
9
+ position: relative;
9
10
 
10
- > *:not(:last-child) {
11
- z-index: 1;
12
- }
11
+ > *:not(:last-child) {
12
+ z-index: 1;
13
13
  }
14
+ }
14
15
  }
15
16
 
16
17
 
@@ -39,7 +39,7 @@ $mobile-dimensions: 2.75em;
39
39
  &:hover {
40
40
  color: var(--x);
41
41
  }
42
-
42
+
43
43
  &:focus {
44
44
  color: var(--soft-x);
45
45
  }
@@ -1,4 +1,6 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+ /* stylelint-disable selector-max-compound-selectors -- Required here */
3
+ /* stylelint-disable max-nesting-depth -- Required here */
2
4
 
3
5
  @use "@pareto-engineering/bem";
4
6
  @use "@pareto-engineering/styles/src/mixins";
@@ -45,7 +47,6 @@ $mobile-content-margin:6em;
45
47
  border-top: $default-border;
46
48
  }
47
49
 
48
- /* stylelint-disable selector-max-compound-selectors -- Required here */
49
50
  .#{bem.$element-content} {
50
51
  .icon-list {
51
52
  .#{bem.$element-item} {
@@ -55,7 +56,6 @@ $mobile-content-margin:6em;
55
56
  }
56
57
  }
57
58
  }
58
- /* stylelint-enable selector-max-compound-selectors */
59
59
  }
60
60
 
61
61
 
@@ -167,8 +167,6 @@ $mobile-content-margin:6em;
167
167
  width: 100%;
168
168
  } */
169
169
 
170
- /* stylelint-disable selector-max-compound-selectors -- Required here */
171
- /* stylelint-disable max-nesting-depth -- Required here */
172
170
  /* stylelint-disable scss/media-feature-value-dollar-variable -- For orientation mq */
173
171
  .wrapper {
174
172
  display: flex;
@@ -1,15 +1,17 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
 
4
5
  $default-background: var(--background1);
5
- $default-box-shadow: 0 10px 20px rgba(black, 0.2);
6
+ /* stylelint-disable-next-line color-named -- needed for rgba function */
7
+ $default-box-shadow: 0 10px 20px rgba(black, .2);
6
8
  $default-padding: 1em / 2;
7
9
  $default-margin: 2em;
8
10
  $default-max-height: 75vh;
9
11
  $default-max-width: 90%;
10
12
  $default-min-width: 20em;
11
13
 
12
- .#{bem.$base}.modal{
14
+ .#{bem.$base}.modal {
13
15
  background: $default-background;
14
16
  box-shadow: $default-box-shadow;
15
17
  display: flex;
@@ -23,7 +25,7 @@ $default-min-width: 20em;
23
25
  top: 50%;
24
26
  transform: translate(-50%, -50%);
25
27
  z-index: 100;
26
-
28
+
27
29
  .modal-body {
28
30
  padding: $default-padding;
29
31
  }
@@ -37,10 +39,10 @@ $default-min-width: 20em;
37
39
  position: sticky;
38
40
  top: 0;
39
41
  z-index: 2;
40
-
42
+
41
43
  > p {
42
- padding: $default-padding;
43
44
  margin: 0;
45
+ padding: $default-padding;
44
46
  }
45
47
  }
46
48
  }
@@ -7,8 +7,7 @@
7
7
  $default-dimensions: 2em;
8
8
  $mobile-dimensions: 2.75em;
9
9
 
10
- .#{bem.$base}.social-media-share-button{
11
-
10
+ .#{bem.$base}.social-media-share-button {
12
11
  > button {
13
12
  appearance: none;
14
13
  background: transparent;
@@ -31,7 +30,8 @@ $mobile-dimensions: 2.75em;
31
30
  color: var(--on-x);
32
31
  }
33
32
 
34
- &:focus, &:active {
33
+ &:focus,
34
+ &:active {
35
35
  background: var(--soft-x);
36
36
  color: var(--on-x);
37
37
  }
@@ -5,7 +5,7 @@
5
5
  $default-margin: 1em;
6
6
 
7
7
  .#{bem.$base}.form-input {
8
- &+& {
9
- margin-top: $default-margin;
10
- }
11
- }
8
+ & + & {
9
+ margin-top: $default-margin;
10
+ }
11
+ }
@@ -4,5 +4,5 @@
4
4
  @use "../../../form.scss";
5
5
 
6
6
  .#{bem.$base}.form-label {
7
- color: var(--hard-x);
7
+ color: var(--hard-x);
8
8
  }
@@ -1,14 +1,15 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
 
4
5
  $default-margin: 1em;
5
6
 
6
7
  .#{bem.$base}.checkbox {
7
- display: flex;
8
- flex-direction: column;
9
- align-items: flex-start;
10
-
11
- .#{bem.$base}.label {
12
- margin-bottom: $default-margin
13
- }
14
- }
8
+ align-items: flex-start;
9
+ display: flex;
10
+ flex-direction: column;
11
+
12
+ .#{bem.$base}.label {
13
+ margin-bottom: $default-margin;
14
+ }
15
+ }