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

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 (241) hide show
  1. package/babel.config.js +24 -16
  2. package/dist/cjs/a/AppContext/Context.js +1 -1
  3. package/dist/cjs/a/AppContext/ContextProvider.js +19 -15
  4. package/dist/cjs/a/AppContext/index.js +4 -4
  5. package/dist/cjs/a/AppContext/useTheme.js +7 -7
  6. package/dist/cjs/a/ContentTree/ContentTree.js +8 -8
  7. package/dist/cjs/a/ContentTree/common/Tree/Tree.js +12 -12
  8. package/dist/cjs/a/ContentTree/common/Tree/index.js +1 -1
  9. package/dist/cjs/a/ContentTree/common/index.js +3 -3
  10. package/dist/cjs/a/ContentTree/common/useContentTree.js +14 -14
  11. package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +10 -11
  12. package/dist/cjs/a/ContentTree/index.js +1 -1
  13. package/dist/cjs/a/Conversation/Context.js +1 -1
  14. package/dist/cjs/a/Conversation/Conversation.js +7 -7
  15. package/dist/cjs/a/Conversation/common/Message/Message.js +8 -8
  16. package/dist/cjs/a/Conversation/common/Message/index.js +1 -1
  17. package/dist/cjs/a/Conversation/common/index.js +1 -1
  18. package/dist/cjs/a/Conversation/index.js +3 -3
  19. package/dist/cjs/a/DotInfo/DotInfo.js +11 -15
  20. package/dist/cjs/a/DotInfo/index.js +1 -1
  21. package/dist/cjs/a/Figure/Figure.js +6 -6
  22. package/dist/cjs/a/Figure/index.js +1 -1
  23. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +17 -20
  24. package/dist/cjs/a/HamburgerButton/index.js +1 -1
  25. package/dist/cjs/a/IconList/IconList.js +19 -26
  26. package/dist/cjs/a/IconList/common/Item/Item.js +17 -24
  27. package/dist/cjs/a/IconList/common/Item/index.js +1 -1
  28. package/dist/cjs/a/IconList/common/index.js +1 -1
  29. package/dist/cjs/a/IconList/index.js +1 -1
  30. package/dist/cjs/a/Label/Label.js +7 -7
  31. package/dist/cjs/a/Label/index.js +1 -1
  32. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +11 -15
  33. package/dist/cjs/a/LoadingCircle/index.js +1 -1
  34. package/dist/cjs/a/People/People.js +9 -13
  35. package/dist/cjs/a/People/common/Person/Person.js +7 -7
  36. package/dist/cjs/a/People/common/Person/index.js +1 -1
  37. package/dist/cjs/a/People/common/index.js +1 -1
  38. package/dist/cjs/a/People/index.js +1 -1
  39. package/dist/cjs/a/Popover/Popover.js +10 -10
  40. package/dist/cjs/a/Popover/index.js +1 -1
  41. package/dist/cjs/a/ProgressBar/ProgressBar.js +11 -15
  42. package/dist/cjs/a/ProgressBar/index.js +1 -1
  43. package/dist/cjs/a/Quote/Quote.js +7 -7
  44. package/dist/cjs/a/Quote/index.js +1 -1
  45. package/dist/cjs/a/SVG/SVG.js +23 -26
  46. package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +9 -11
  47. package/dist/cjs/a/SVG/common/UseSVG/index.js +1 -1
  48. package/dist/cjs/a/SVG/common/index.js +1 -1
  49. package/dist/cjs/a/SVG/index.js +1 -1
  50. package/dist/cjs/a/SnapScroller/SnapScroller.js +6 -6
  51. package/dist/cjs/a/SnapScroller/index.js +1 -1
  52. package/dist/cjs/a/Spinner/Spinner.js +7 -7
  53. package/dist/cjs/a/Spinner/index.js +1 -1
  54. package/dist/cjs/a/Timestamp/Timestamp.js +12 -12
  55. package/dist/cjs/a/Timestamp/index.js +1 -1
  56. package/dist/cjs/a/index.js +20 -20
  57. package/dist/cjs/b/Button/Button.js +20 -22
  58. package/dist/cjs/b/Button/index.js +1 -1
  59. package/dist/cjs/b/Logo/Logo.js +13 -13
  60. package/dist/cjs/b/Logo/index.js +1 -1
  61. package/dist/cjs/b/Page/Context.js +1 -1
  62. package/dist/cjs/b/Page/Page.js +16 -19
  63. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +39 -43
  64. package/dist/cjs/b/Page/common/PageHelmet/index.js +1 -1
  65. package/dist/cjs/b/Page/common/Section/Section.js +13 -16
  66. package/dist/cjs/b/Page/common/Section/index.js +1 -1
  67. package/dist/cjs/b/Page/common/index.js +2 -2
  68. package/dist/cjs/b/Page/index.js +3 -3
  69. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +21 -25
  70. package/dist/cjs/b/SocialMediaButton/index.js +1 -1
  71. package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
  72. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +9 -9
  73. package/dist/cjs/b/ThemeSelector/index.js +1 -1
  74. package/dist/cjs/b/Title/Title.js +9 -6
  75. package/dist/cjs/b/Title/index.js +1 -1
  76. package/dist/cjs/b/index.js +6 -6
  77. package/dist/cjs/c/ContentSlides/ContentSlides.js +33 -30
  78. package/dist/cjs/c/ContentSlides/Context.js +1 -1
  79. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +8 -8
  80. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +1 -1
  81. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +7 -7
  82. package/dist/cjs/c/ContentSlides/common/Navigator/index.js +1 -1
  83. package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +5 -5
  84. package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +1 -1
  85. package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +6 -6
  86. package/dist/cjs/c/ContentSlides/common/Slide/index.js +1 -1
  87. package/dist/cjs/c/ContentSlides/common/index.js +4 -4
  88. package/dist/cjs/c/ContentSlides/index.js +3 -3
  89. package/dist/cjs/c/Modal/Modal.js +6 -6
  90. package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +5 -5
  91. package/dist/cjs/c/Modal/common/ModalHeader/index.js +1 -1
  92. package/dist/cjs/c/Modal/common/index.js +1 -1
  93. package/dist/cjs/c/Modal/index.js +1 -1
  94. package/dist/cjs/c/Modal/styles.scss +2 -1
  95. package/dist/cjs/c/Shortener/Shortener.js +10 -10
  96. package/dist/cjs/c/Shortener/index.js +1 -1
  97. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +12 -12
  98. package/dist/cjs/c/SocialMediaShareButton/index.js +1 -1
  99. package/dist/cjs/c/index.js +5 -5
  100. package/dist/cjs/f/FormInput/FormInput.js +14 -17
  101. package/dist/cjs/f/FormInput/index.js +1 -1
  102. package/dist/cjs/f/common/Debugger/Debugger.js +8 -8
  103. package/dist/cjs/f/common/Debugger/index.js +1 -1
  104. package/dist/cjs/f/common/Description/Description.js +8 -8
  105. package/dist/cjs/f/common/Description/index.js +1 -1
  106. package/dist/cjs/f/common/Label/Label.js +7 -7
  107. package/dist/cjs/f/common/Label/index.js +1 -1
  108. package/dist/cjs/f/common/index.js +3 -3
  109. package/dist/cjs/f/fields/Checkbox/Checkbox.js +7 -7
  110. package/dist/cjs/f/fields/Checkbox/index.js +1 -1
  111. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +12 -16
  112. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +7 -7
  113. package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +1 -1
  114. package/dist/cjs/f/fields/ChoicesInput/common/index.js +1 -1
  115. package/dist/cjs/f/fields/ChoicesInput/index.js +1 -1
  116. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +25 -30
  117. package/dist/cjs/f/fields/QueryChoices/index.js +1 -1
  118. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +20 -22
  119. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +12 -12
  120. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
  121. package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +14 -17
  122. package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +1 -1
  123. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +22 -26
  124. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
  125. package/dist/cjs/f/fields/QueryCombobox/common/index.js +3 -3
  126. package/dist/cjs/f/fields/QueryCombobox/index.js +1 -1
  127. package/dist/cjs/f/fields/QueryCombobox/styles.scss +5 -4
  128. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +11 -11
  129. package/dist/cjs/f/fields/QuerySelect/index.js +1 -1
  130. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +9 -9
  131. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +7 -7
  132. package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +1 -1
  133. package/dist/cjs/f/fields/RatingsInput/common/index.js +1 -1
  134. package/dist/cjs/f/fields/RatingsInput/index.js +1 -1
  135. package/dist/cjs/f/fields/SelectInput/SelectInput.js +10 -10
  136. package/dist/cjs/f/fields/SelectInput/index.js +1 -1
  137. package/dist/cjs/f/fields/TextInput/TextInput.js +8 -8
  138. package/dist/cjs/f/fields/TextInput/index.js +1 -1
  139. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +8 -8
  140. package/dist/cjs/f/fields/TextareaInput/index.js +1 -1
  141. package/dist/cjs/f/fields/index.js +9 -9
  142. package/dist/cjs/f/index.js +3 -3
  143. package/dist/cjs/index.js +8 -8
  144. package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +7 -10
  145. package/dist/cjs/r/SwitchRouteMap/index.js +1 -1
  146. package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +13 -16
  147. package/dist/cjs/r/common/PrivateRoute/index.js +1 -1
  148. package/dist/cjs/r/common/index.js +1 -1
  149. package/dist/cjs/r/index.js +2 -2
  150. package/dist/cjs/test/QueryLoader/QueryLoader.js +4 -4
  151. package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +1 -1
  152. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +4 -4
  153. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +1 -1
  154. package/dist/cjs/test/QueryLoader/common/index.js +1 -1
  155. package/dist/cjs/test/QueryLoader/index.js +1 -1
  156. package/dist/cjs/test/index.js +1 -1
  157. package/dist/cjs/utils/hooks/index.js +2 -2
  158. package/dist/cjs/utils/hooks/useDynamicPosition.js +24 -24
  159. package/dist/cjs/utils/hooks/useWindowSize.js +6 -6
  160. package/dist/cjs/utils/index.js +2 -2
  161. package/dist/es/a/ContentTree/ContentTree.js +3 -3
  162. package/dist/es/a/Conversation/Conversation.js +2 -2
  163. package/dist/es/a/DotInfo/DotInfo.js +2 -2
  164. package/dist/es/a/Figure/Figure.js +2 -2
  165. package/dist/es/a/HamburgerButton/HamburgerButton.js +2 -2
  166. package/dist/es/a/IconList/IconList.js +2 -2
  167. package/dist/es/a/Label/Label.js +2 -2
  168. package/dist/es/a/LoadingCircle/LoadingCircle.js +2 -2
  169. package/dist/es/a/People/People.js +2 -2
  170. package/dist/es/a/Popover/Popover.js +3 -3
  171. package/dist/es/a/ProgressBar/ProgressBar.js +2 -2
  172. package/dist/es/a/Quote/Quote.js +2 -2
  173. package/dist/es/a/SVG/SVG.js +2 -2
  174. package/dist/es/a/SnapScroller/SnapScroller.js +2 -2
  175. package/dist/es/a/Spinner/Spinner.js +2 -2
  176. package/dist/es/a/Timestamp/Timestamp.js +2 -2
  177. package/dist/es/b/Button/Button.js +2 -1
  178. package/dist/es/b/Logo/Logo.js +2 -2
  179. package/dist/es/b/Page/Page.js +2 -2
  180. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +2 -2
  181. package/dist/es/b/SocialMediaButton/styles.scss +1 -1
  182. package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -2
  183. package/dist/es/b/Title/Title.js +18 -12
  184. package/dist/es/c/ContentSlides/ContentSlides.js +3 -3
  185. package/dist/es/c/Modal/Modal.js +2 -2
  186. package/dist/es/c/Modal/styles.scss +2 -1
  187. package/dist/es/c/Shortener/Shortener.js +2 -2
  188. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
  189. package/dist/es/f/FormInput/FormInput.js +2 -2
  190. package/dist/es/f/common/Debugger/Debugger.js +2 -2
  191. package/dist/es/f/common/Description/Description.js +2 -2
  192. package/dist/es/f/common/Label/Label.js +2 -2
  193. package/dist/es/f/fields/Checkbox/Checkbox.js +2 -2
  194. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +2 -2
  195. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -2
  196. package/dist/es/f/fields/QueryCombobox/styles.scss +5 -4
  197. package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -2
  198. package/dist/es/f/fields/SelectInput/SelectInput.js +2 -2
  199. package/dist/es/f/fields/TextInput/TextInput.js +2 -2
  200. package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -2
  201. package/package.json +5 -5
  202. package/src/ui/a/ContentTree/ContentTree.jsx +3 -3
  203. package/src/ui/a/Conversation/Conversation.jsx +2 -2
  204. package/src/ui/a/DotInfo/DotInfo.jsx +2 -2
  205. package/src/ui/a/Figure/Figure.jsx +2 -2
  206. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +2 -2
  207. package/src/ui/a/IconList/IconList.jsx +2 -2
  208. package/src/ui/a/Label/Label.jsx +2 -2
  209. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
  210. package/src/ui/a/People/People.jsx +2 -2
  211. package/src/ui/a/Popover/Popover.jsx +3 -3
  212. package/src/ui/a/ProgressBar/ProgressBar.jsx +2 -2
  213. package/src/ui/a/Quote/Quote.jsx +2 -2
  214. package/src/ui/a/SVG/SVG.jsx +2 -2
  215. package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -2
  216. package/src/ui/a/Spinner/Spinner.jsx +2 -2
  217. package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
  218. package/src/ui/b/Button/Button.jsx +2 -1
  219. package/src/ui/b/Logo/Logo.jsx +2 -2
  220. package/src/ui/b/Page/Page.jsx +2 -2
  221. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -2
  222. package/src/ui/b/SocialMediaButton/styles.scss +1 -1
  223. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +2 -2
  224. package/src/ui/b/Title/Title.jsx +30 -23
  225. package/src/ui/c/ContentSlides/ContentSlides.jsx +3 -3
  226. package/src/ui/c/Modal/Modal.jsx +2 -2
  227. package/src/ui/c/Modal/styles.scss +2 -1
  228. package/src/ui/c/Shortener/Shortener.jsx +2 -2
  229. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -2
  230. package/src/ui/f/FormInput/FormInput.jsx +2 -2
  231. package/src/ui/f/common/Debugger/Debugger.jsx +2 -2
  232. package/src/ui/f/common/Description/Description.jsx +2 -2
  233. package/src/ui/f/common/Label/Label.jsx +2 -2
  234. package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -2
  235. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +2 -2
  236. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +2 -2
  237. package/src/ui/f/fields/QueryCombobox/styles.scss +5 -4
  238. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +2 -2
  239. package/src/ui/f/fields/SelectInput/SelectInput.jsx +2 -2
  240. package/src/ui/f/fields/TextInput/TextInput.jsx +2 -2
  241. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +2 -2
@@ -1,6 +1,6 @@
1
1
  /* @pareto-engineering/generator-front 1.0.3 */
2
2
  import * as React from 'react'
3
- import { useLayoutEffect, useMemo } from 'react'
3
+ import { useInsertionEffect, useMemo } from 'react'
4
4
  import PropTypes from 'prop-types'
5
5
 
6
6
  import styleNames from '@pareto-engineering/bem/exports'
@@ -34,7 +34,7 @@ const SVG = ({
34
34
  animated,
35
35
  ...otherProps
36
36
  }) => {
37
- useLayoutEffect(() => {
37
+ useInsertionEffect(() => {
38
38
  import('./styles.scss')
39
39
  })
40
40
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -24,7 +24,7 @@ const SnapScroller = ({
24
24
  noScrollOnDesktop,
25
25
  // ...otherProps
26
26
  }) => {
27
- useLayoutEffect(() => {
27
+ useInsertionEffect(() => {
28
28
  import('./styles.scss')
29
29
  }, [])
30
30
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -23,7 +23,7 @@ const Spinner = ({
23
23
  color,
24
24
  // ...otherProps
25
25
  }) => {
26
- useLayoutEffect(() => {
26
+ useInsertionEffect(() => {
27
27
  import('./styles.scss')
28
28
  }, [])
29
29
 
@@ -2,7 +2,7 @@
2
2
  import * as React from 'react'
3
3
 
4
4
  import {
5
- useLayoutEffect, useMemo, useCallback, useState,
5
+ useInsertionEffect, useMemo, useCallback, useState,
6
6
  } from 'react'
7
7
 
8
8
  import PropTypes from 'prop-types'
@@ -36,7 +36,7 @@ const Timestamp = ({
36
36
  // ...otherProps
37
37
  as:Element,
38
38
  }) => {
39
- useLayoutEffect(() => {
39
+ useInsertionEffect(() => {
40
40
  import('./styles.scss')
41
41
  }, [])
42
42
 
@@ -6,8 +6,9 @@ import PropTypes from 'prop-types'
6
6
  // Package-level Imports
7
7
  import styleNames from '@pareto-engineering/bem/exports'
8
8
  import { LoadingCircle } from 'ui'
9
+ import './styles.scss'
9
10
  // Component-level imports
10
- import('./styles.scss')
11
+ // import('./styles.scss')
11
12
 
12
13
  // Helper Definition
13
14
  const baseClassName = styleNames.base
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useMemo, useLayoutEffect } from 'react'
4
+ import { useMemo, useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -64,7 +64,7 @@ const Logo = ({
64
64
  square,
65
65
  // ...otherProps
66
66
  }) => {
67
- useLayoutEffect(() => {
67
+ useInsertionEffect(() => {
68
68
  import('./styles.scss')
69
69
  }, [])
70
70
 
@@ -1,6 +1,6 @@
1
1
  /* @pareto-engineering/generator-front 1.0.0 */
2
2
  import * as React from 'react'
3
- import { useLayoutEffect, useEffect } from 'react'
3
+ import { useInsertionEffect, useEffect } from 'react'
4
4
  import PropTypes from 'prop-types'
5
5
  import styleNames from '@pareto-engineering/bem/exports'
6
6
 
@@ -29,7 +29,7 @@ const Page = ({
29
29
  helmetProps,
30
30
  ...otherProps
31
31
  }) => {
32
- useLayoutEffect(() => {
32
+ useInsertionEffect(() => {
33
33
  import('./styles.scss')
34
34
  }, [])
35
35
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -52,7 +52,7 @@ const SocialMediaButton = ({
52
52
  }) => {
53
53
  const applicationContext = useApp()
54
54
 
55
- useLayoutEffect(() => {
55
+ useInsertionEffect(() => {
56
56
  import('./styles.scss')
57
57
  }, [])
58
58
 
@@ -32,7 +32,7 @@ $mobile-dimensions: 2.75em;
32
32
  background: var(--soft-x);
33
33
  }
34
34
 
35
- &.#{bem.$modifier-transparent} {
35
+ &.#{bem.$modifier-clear} {
36
36
  background: transparent;
37
37
  color: var(--y, var(--heading));
38
38
 
@@ -1,6 +1,6 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
- import { useLayoutEffect, useCallback } from 'react'
3
+ import { useInsertionEffect, useCallback } from 'react'
4
4
  import PropTypes from 'prop-types'
5
5
  import styleNames from '@pareto-engineering/bem/exports'
6
6
 
@@ -29,7 +29,7 @@ const ThemeSelector = ({
29
29
  setPreferredTheme,
30
30
  } = useApp()
31
31
 
32
- useLayoutEffect(() => {
32
+ useInsertionEffect(() => {
33
33
  import('./styles.scss')
34
34
  }, [])
35
35
 
@@ -1,12 +1,13 @@
1
1
  /* @pareto-engineering/generator-front 0.3.1 */
2
2
  import * as React from 'react'
3
+ import { useInsertionEffect } from 'react'
3
4
  import PropTypes from 'prop-types'
4
5
 
5
6
  // Package-level Imports
6
7
  import styleNames from '@pareto-engineering/bem/exports'
7
8
 
8
9
  // Component-level imports
9
- import('./styles.scss')
10
+ // import('./styles.scss')
10
11
 
11
12
  // Helper Definition
12
13
  const baseClassName = styleNames.base
@@ -28,31 +29,36 @@ const Title = ({
28
29
  subtitleStyle,
29
30
  subtitleProps,
30
31
  // ...otherProps
31
- }) => (
32
- <div
33
- id={id}
34
- className={[
35
- baseClassName,
36
- componentClassName,
37
- userClassName,
38
- ]
39
- .filter((e) => e)
40
- .join(' ')}
41
- style={style}
42
- >
43
- <HeadingWrapper
32
+ }) => {
33
+ useInsertionEffect(() => {
34
+ import('./styles.scss')
35
+ }, [])
36
+
37
+ return (
38
+ <div
39
+ id={id}
44
40
  className={[
45
- headingClassName,
46
- styleNames.heading,
41
+ baseClassName,
42
+ componentClassName,
43
+ userClassName,
47
44
  ]
48
45
  .filter((e) => e)
49
46
  .join(' ')}
50
- style={headingStyle}
51
- {...headingProps}
47
+ style={style}
52
48
  >
53
- { heading }
54
- </HeadingWrapper>
55
- { subtitle
49
+ <HeadingWrapper
50
+ className={[
51
+ headingClassName,
52
+ styleNames.heading,
53
+ ]
54
+ .filter((e) => e)
55
+ .join(' ')}
56
+ style={headingStyle}
57
+ {...headingProps}
58
+ >
59
+ { heading }
60
+ </HeadingWrapper>
61
+ { subtitle
56
62
  && (
57
63
  <SubtitleWrapper
58
64
  className={[
@@ -67,8 +73,9 @@ const Title = ({
67
73
  { subtitle }
68
74
  </SubtitleWrapper>
69
75
  )}
70
- </div>
71
- )
76
+ </div>
77
+ )
78
+ }
72
79
 
73
80
  Title.propTypes = {
74
81
  /**
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, useReducer } from 'react'
4
+ import { useInsertionEffect, useReducer } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -64,7 +64,7 @@ const ContentSlides = ({
64
64
  isDebug,
65
65
  // ...otherProps
66
66
  }) => {
67
- useLayoutEffect(() => {
67
+ useInsertionEffect(() => {
68
68
  import('./styles.scss')
69
69
  }, [])
70
70
 
@@ -123,7 +123,7 @@ const ContentSlides = ({
123
123
  })
124
124
  }
125
125
 
126
- useLayoutEffect(() => {
126
+ useInsertionEffect(() => {
127
127
  setCurrentStep(currentStepIndex)
128
128
  },
129
129
  [currentStepIndex])
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -28,7 +28,7 @@ const Modal = ({
28
28
  close,
29
29
  // ...otherProps
30
30
  }) => {
31
- useLayoutEffect(() => {
31
+ useInsertionEffect(() => {
32
32
  import('./styles.scss')
33
33
  }, [])
34
34
 
@@ -1,11 +1,12 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
 
3
3
  @use "@pareto-engineering/bem";
4
+ @use "sass:math";
4
5
 
5
6
  $default-background: var(--background1);
6
7
  /* stylelint-disable-next-line color-named -- needed for rgba function */
7
8
  $default-box-shadow: 0 10px 20px rgba(black, .2);
8
- $default-padding: 1em / 2;
9
+ $default-padding: math.div(1em, 2);
9
10
  $default-margin: 2em;
10
11
  $default-max-height: 75vh;
11
12
  $default-max-width: 90%;
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, useState } from 'react'
4
+ import { useInsertionEffect, useState } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -31,7 +31,7 @@ const Shortener = ({
31
31
 
32
32
  countLetters,
33
33
  }) => {
34
- useLayoutEffect(() => {
34
+ useInsertionEffect(() => {
35
35
  import('./styles.scss')
36
36
  }, [])
37
37
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -25,7 +25,7 @@ const SocialMediaShareButton = ({
25
25
  type,
26
26
  color,
27
27
  }) => {
28
- useLayoutEffect(() => {
28
+ useInsertionEffect(() => {
29
29
  import('./styles.scss')
30
30
  }, [])
31
31
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { memo, useLayoutEffect } from 'react'
4
+ import { memo, useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -33,7 +33,7 @@ const FormInput = ({
33
33
  disabled,
34
34
  ...otherProps
35
35
  }) => {
36
- useLayoutEffect(() => {
36
+ useInsertionEffect(() => {
37
37
  import('./styles.scss')
38
38
  }, [])
39
39
 
@@ -1,6 +1,6 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
- import { useState, useLayoutEffect, useContext } from 'react'
3
+ import { useState, useInsertionEffect, useContext } from 'react'
4
4
 
5
5
  import PropTypes from 'prop-types'
6
6
 
@@ -21,7 +21,7 @@ const Debugger = ({
21
21
  initialIsOpen,
22
22
  // ...otherProps
23
23
  }) => {
24
- useLayoutEffect(() => {
24
+ useInsertionEffect(() => {
25
25
  import('./styles.scss')
26
26
  }, [])
27
27
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import { useField } from 'formik'
7
7
 
@@ -27,7 +27,7 @@ const Description = ({
27
27
  color,
28
28
  // ...otherProps
29
29
  }) => {
30
- useLayoutEffect(() => {
30
+ useInsertionEffect(() => {
31
31
  import('./styles.scss')
32
32
  }, [])
33
33
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -27,7 +27,7 @@ const Label = ({
27
27
  as:Wrapper,
28
28
  // ...otherProps
29
29
  }) => {
30
- useLayoutEffect(() => {
30
+ useInsertionEffect(() => {
31
31
  import('./styles.scss')
32
32
  }, [])
33
33
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -31,7 +31,7 @@ const Checkbox = ({
31
31
  optional,
32
32
  // ...otherProps
33
33
  }) => {
34
- useLayoutEffect(() => {
34
+ useInsertionEffect(() => {
35
35
  import('./styles.scss')
36
36
  }, [])
37
37
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, memo } from 'react'
4
+ import { useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -37,7 +37,7 @@ const ChoicesInput = ({
37
37
  disabled,
38
38
  // ...otherProps
39
39
  }) => {
40
- useLayoutEffect(() => {
40
+ useInsertionEffect(() => {
41
41
  import('./styles.scss')
42
42
  }, [])
43
43
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useState, useLayoutEffect } from 'react'
4
+ import { useState, useInsertionEffect } from 'react'
5
5
 
6
6
  import { useField } from 'formik'
7
7
 
@@ -37,7 +37,7 @@ const QueryCombobox = ({
37
37
  validate,
38
38
  // ...otherProps
39
39
  }) => {
40
- useLayoutEffect(() => {
40
+ useInsertionEffect(() => {
41
41
  import('./styles.scss')
42
42
  }, [])
43
43
 
@@ -1,6 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
 
3
3
  @use "@pareto-engineering/bem";
4
+ @use "sass:math";
4
5
 
5
6
  $default-input-padding: .75em .75em .55em;
6
7
  $default-padding: 1em;
@@ -26,7 +27,7 @@ $default-loading-circle-displacement: 1em;
26
27
  padding: 0;
27
28
 
28
29
  >.item {
29
- padding: $default-padding / 2;
30
+ padding: math.div($default-padding, 2);
30
31
 
31
32
  &.#{bem.$modifier-active} {
32
33
  background-color: var(--background2);
@@ -76,12 +77,12 @@ $default-loading-circle-displacement: 1em;
76
77
  >.selected-items {
77
78
  display: flex;
78
79
  flex-wrap: wrap;
79
- gap: $default-gap / 2;
80
- margin-bottom: $default-margin / 2;
80
+ gap: math.div($default-gap, 2);
81
+ margin-bottom: math.div($default-margin, 2);
81
82
 
82
83
  >.item {
83
84
  background-color: var(--main2);
84
- padding: $default-padding / 4;
85
+ padding: math.div($default-padding, 4);
85
86
 
86
87
  .close {
87
88
  font-size: calc(var(--s-3) * 1em);
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useState, useLayoutEffect, memo } from 'react'
4
+ import { useState, useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -35,7 +35,7 @@ const RatingsInput = ({
35
35
  optional,
36
36
  // ...otherProps
37
37
  }) => {
38
- useLayoutEffect(() => {
38
+ useInsertionEffect(() => {
39
39
  import('./styles.scss')
40
40
  }, [])
41
41
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, memo } from 'react'
4
+ import { useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import { useField } from 'formik'
7
7
 
@@ -38,7 +38,7 @@ const SelectInput = ({
38
38
  autoComplete,
39
39
  // ...otherProps
40
40
  }) => {
41
- useLayoutEffect(() => {
41
+ useInsertionEffect(() => {
42
42
  import('./styles.scss')
43
43
  }, [])
44
44
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, memo } from 'react'
4
+ import { useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -38,7 +38,7 @@ const TextInput = ({
38
38
  autoComplete,
39
39
  // ...otherProps
40
40
  }) => {
41
- useLayoutEffect(() => {
41
+ useInsertionEffect(() => {
42
42
  import('./styles.scss')
43
43
  }, [])
44
44
 
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useLayoutEffect, memo } from 'react'
4
+ import { useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -40,7 +40,7 @@ const TextareaInput = ({
40
40
  resize,
41
41
  // ...otherProps
42
42
  }) => {
43
- useLayoutEffect(() => {
43
+ useInsertionEffect(() => {
44
44
  import('./styles.scss')
45
45
  }, [])
46
46