@pareto-engineering/design-system 4.0.0-alpha.4 → 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 (121) hide show
  1. package/dist/cjs/a/ContentTree/ContentTree.js +2 -2
  2. package/dist/cjs/a/Conversation/Conversation.js +1 -1
  3. package/dist/cjs/a/DotInfo/DotInfo.js +1 -1
  4. package/dist/cjs/a/Figure/Figure.js +1 -1
  5. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +1 -1
  6. package/dist/cjs/a/IconList/IconList.js +1 -1
  7. package/dist/cjs/a/Label/Label.js +1 -1
  8. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
  9. package/dist/cjs/a/People/People.js +1 -1
  10. package/dist/cjs/a/Popover/Popover.js +2 -2
  11. package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
  12. package/dist/cjs/a/Quote/Quote.js +1 -1
  13. package/dist/cjs/a/SVG/SVG.js +1 -1
  14. package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
  15. package/dist/cjs/a/Spinner/Spinner.js +1 -1
  16. package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
  17. package/dist/cjs/b/Button/Button.js +2 -1
  18. package/dist/cjs/b/Logo/Logo.js +1 -1
  19. package/dist/cjs/b/Page/Page.js +1 -1
  20. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +1 -1
  21. package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
  22. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
  23. package/dist/cjs/b/Title/Title.js +4 -1
  24. package/dist/cjs/c/ContentSlides/ContentSlides.js +2 -2
  25. package/dist/cjs/c/Modal/Modal.js +1 -1
  26. package/dist/cjs/c/Modal/styles.scss +2 -1
  27. package/dist/cjs/c/Shortener/Shortener.js +1 -1
  28. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
  29. package/dist/cjs/f/FormInput/FormInput.js +1 -1
  30. package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
  31. package/dist/cjs/f/common/Description/Description.js +1 -1
  32. package/dist/cjs/f/common/Label/Label.js +1 -1
  33. package/dist/cjs/f/fields/Checkbox/Checkbox.js +1 -1
  34. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  35. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +1 -1
  36. package/dist/cjs/f/fields/QueryCombobox/styles.scss +5 -4
  37. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +1 -1
  38. package/dist/cjs/f/fields/SelectInput/SelectInput.js +1 -1
  39. package/dist/cjs/f/fields/TextInput/TextInput.js +1 -1
  40. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
  41. package/dist/es/a/ContentTree/ContentTree.js +3 -3
  42. package/dist/es/a/Conversation/Conversation.js +2 -2
  43. package/dist/es/a/DotInfo/DotInfo.js +2 -2
  44. package/dist/es/a/Figure/Figure.js +2 -2
  45. package/dist/es/a/HamburgerButton/HamburgerButton.js +2 -2
  46. package/dist/es/a/IconList/IconList.js +2 -2
  47. package/dist/es/a/Label/Label.js +2 -2
  48. package/dist/es/a/LoadingCircle/LoadingCircle.js +2 -2
  49. package/dist/es/a/People/People.js +2 -2
  50. package/dist/es/a/Popover/Popover.js +3 -3
  51. package/dist/es/a/ProgressBar/ProgressBar.js +2 -2
  52. package/dist/es/a/Quote/Quote.js +2 -2
  53. package/dist/es/a/SVG/SVG.js +2 -2
  54. package/dist/es/a/SnapScroller/SnapScroller.js +2 -2
  55. package/dist/es/a/Spinner/Spinner.js +2 -2
  56. package/dist/es/a/Timestamp/Timestamp.js +2 -2
  57. package/dist/es/b/Button/Button.js +2 -1
  58. package/dist/es/b/Logo/Logo.js +2 -2
  59. package/dist/es/b/Page/Page.js +2 -2
  60. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +2 -2
  61. package/dist/es/b/SocialMediaButton/styles.scss +1 -1
  62. package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -2
  63. package/dist/es/b/Title/Title.js +18 -12
  64. package/dist/es/c/ContentSlides/ContentSlides.js +3 -3
  65. package/dist/es/c/Modal/Modal.js +2 -2
  66. package/dist/es/c/Modal/styles.scss +2 -1
  67. package/dist/es/c/Shortener/Shortener.js +2 -2
  68. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
  69. package/dist/es/f/FormInput/FormInput.js +2 -2
  70. package/dist/es/f/common/Debugger/Debugger.js +2 -2
  71. package/dist/es/f/common/Description/Description.js +2 -2
  72. package/dist/es/f/common/Label/Label.js +2 -2
  73. package/dist/es/f/fields/Checkbox/Checkbox.js +2 -2
  74. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +2 -2
  75. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -2
  76. package/dist/es/f/fields/QueryCombobox/styles.scss +5 -4
  77. package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -2
  78. package/dist/es/f/fields/SelectInput/SelectInput.js +2 -2
  79. package/dist/es/f/fields/TextInput/TextInput.js +2 -2
  80. package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -2
  81. package/package.json +5 -5
  82. package/src/ui/a/ContentTree/ContentTree.jsx +3 -3
  83. package/src/ui/a/Conversation/Conversation.jsx +2 -2
  84. package/src/ui/a/DotInfo/DotInfo.jsx +2 -2
  85. package/src/ui/a/Figure/Figure.jsx +2 -2
  86. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +2 -2
  87. package/src/ui/a/IconList/IconList.jsx +2 -2
  88. package/src/ui/a/Label/Label.jsx +2 -2
  89. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
  90. package/src/ui/a/People/People.jsx +2 -2
  91. package/src/ui/a/Popover/Popover.jsx +3 -3
  92. package/src/ui/a/ProgressBar/ProgressBar.jsx +2 -2
  93. package/src/ui/a/Quote/Quote.jsx +2 -2
  94. package/src/ui/a/SVG/SVG.jsx +2 -2
  95. package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -2
  96. package/src/ui/a/Spinner/Spinner.jsx +2 -2
  97. package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
  98. package/src/ui/b/Button/Button.jsx +2 -1
  99. package/src/ui/b/Logo/Logo.jsx +2 -2
  100. package/src/ui/b/Page/Page.jsx +2 -2
  101. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -2
  102. package/src/ui/b/SocialMediaButton/styles.scss +1 -1
  103. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +2 -2
  104. package/src/ui/b/Title/Title.jsx +30 -23
  105. package/src/ui/c/ContentSlides/ContentSlides.jsx +3 -3
  106. package/src/ui/c/Modal/Modal.jsx +2 -2
  107. package/src/ui/c/Modal/styles.scss +2 -1
  108. package/src/ui/c/Shortener/Shortener.jsx +2 -2
  109. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -2
  110. package/src/ui/f/FormInput/FormInput.jsx +2 -2
  111. package/src/ui/f/common/Debugger/Debugger.jsx +2 -2
  112. package/src/ui/f/common/Description/Description.jsx +2 -2
  113. package/src/ui/f/common/Label/Label.jsx +2 -2
  114. package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -2
  115. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +2 -2
  116. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +2 -2
  117. package/src/ui/f/fields/QueryCombobox/styles.scss +5 -4
  118. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +2 -2
  119. package/src/ui/f/fields/SelectInput/SelectInput.jsx +2 -2
  120. package/src/ui/f/fields/TextInput/TextInput.jsx +2 -2
  121. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pareto-engineering/design-system",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-alpha.5",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",
@@ -47,12 +47,12 @@
47
47
  "jest-environment-jsdom": "^29.5.0",
48
48
  "sass-loader": "^13.2.0",
49
49
  "storybook": "^7.0.0-rc.3",
50
- "style-loader": "^3.3.1"
50
+ "style-loader": "^3.3.2"
51
51
  },
52
52
  "dependencies": {
53
53
  "@pareto-engineering/assets": "^4.0.0-alpha.3",
54
- "@pareto-engineering/bem": "^4.0.0-alpha.3",
55
- "@pareto-engineering/styles": "^4.0.0-alpha.3",
54
+ "@pareto-engineering/bem": "^4.0.0-alpha.5",
55
+ "@pareto-engineering/styles": "^4.0.0-alpha.5",
56
56
  "date-fns": "^2.29.3",
57
57
  "downshift": "^6.1.12",
58
58
  "formik": "^2.2.9",
@@ -67,5 +67,5 @@
67
67
  "relay-test-utils": "^15.0.0"
68
68
  },
69
69
  "browserslist": "> 2%",
70
- "gitHead": "df54c3dc5048159fe8a037a3dc8feb2d91a07417"
70
+ "gitHead": "dd704a71588b078c1c13bc1aa54b26474df3d311"
71
71
  }
@@ -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 ContentTree = ({
25
25
  selectors,
26
26
  // ...otherProps
27
27
  }) => {
28
- useLayoutEffect(() => {
28
+ useInsertionEffect(() => {
29
29
  import('./styles.scss')
30
30
  }, [])
31
31
 
@@ -77,7 +77,7 @@ ContentTree.propTypes = {
77
77
  */
78
78
  target:PropTypes.oneOfType([
79
79
  PropTypes.func,
80
- PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
80
+ PropTypes.shape({ current: PropTypes.instanceOf(React.Element) }),
81
81
  ]),
82
82
  }
83
83
 
@@ -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 Conversation = ({
31
31
  hasTriangle,
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 } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -27,7 +27,7 @@ const DotInfo = ({
27
27
  colorEmpty,
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
 
@@ -24,7 +24,7 @@ const Figure = ({
24
24
  alt,
25
25
  caption,
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
 
@@ -27,7 +27,7 @@ const HamburgerButton = ({
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
 
@@ -28,7 +28,7 @@ const IconList = ({
28
28
  iconHover,
29
29
  ...otherProps
30
30
  }) => {
31
- useLayoutEffect(() => {
31
+ useInsertionEffect(() => {
32
32
  import('./styles.scss')
33
33
  }, [])
34
34
 
@@ -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 Label = ({
25
25
  isCompact,
26
26
  isGhost,
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 { useLayoutEffect } from 'react'
4
+ import { useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -26,7 +26,7 @@ const LoadingCircle = ({
26
26
  style,
27
27
  // ...otherProps
28
28
  }) => {
29
- useLayoutEffect(() => {
29
+ useInsertionEffect(() => {
30
30
  import('./styles.scss')
31
31
  }, [])
32
32
 
@@ -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 People = ({
27
27
  columnWidth,
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 { useRef, useLayoutEffect } from 'react'
4
+ import { useRef, useInsertionEffect } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -31,7 +31,7 @@ const Popover = ({
31
31
  offsetYPx,
32
32
  // ...otherProps
33
33
  }) => {
34
- useLayoutEffect(() => {
34
+ useInsertionEffect(() => {
35
35
  import('./styles.scss')
36
36
  }, [])
37
37
 
@@ -141,7 +141,7 @@ Popover.propTypes = {
141
141
  */
142
142
  parentRef:PropTypes.oneOfType([
143
143
  PropTypes.func,
144
- PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
144
+ PropTypes.shape({ current: PropTypes.instanceOf(React.Element) }),
145
145
  ]),
146
146
  }
147
147
 
@@ -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
 
@@ -26,7 +26,7 @@ const ProgressBar = ({
26
26
  height,
27
27
  // ...otherProps
28
28
  }) => {
29
- useLayoutEffect(() => {
29
+ useInsertionEffect(() => {
30
30
  import('./styles.scss')
31
31
  }, [])
32
32
 
@@ -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
 
@@ -26,7 +26,7 @@ const Quote = ({
26
26
  color,
27
27
  // ...otherProps
28
28
  }) => {
29
- useLayoutEffect(() => {
29
+ useInsertionEffect(() => {
30
30
  import('./styles.scss')
31
31
  }, [])
32
32
 
@@ -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