@pareto-engineering/design-system 4.0.0-alpha.60 → 4.0.0-alpha.62

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 (161) hide show
  1. package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +5 -6
  2. package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +4 -4
  3. package/dist/cjs/a/BlurOverlay/BlurOverlay.js +5 -6
  4. package/dist/cjs/a/ContentTree/ContentTree.js +7 -6
  5. package/dist/cjs/a/Conversation/Conversation.js +7 -6
  6. package/dist/cjs/a/DotInfo/DotInfo.js +5 -6
  7. package/dist/cjs/a/Figure/Figure.js +5 -6
  8. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +4 -7
  9. package/dist/cjs/a/IconList/IconList.js +4 -7
  10. package/dist/cjs/a/Label/Label.js +4 -7
  11. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +5 -6
  12. package/dist/cjs/a/MetaCard/MetaCard.js +5 -6
  13. package/dist/cjs/a/People/People.js +7 -6
  14. package/dist/cjs/a/Popover/Popover.js +6 -4
  15. package/dist/cjs/a/ProgressBar/ProgressBar.js +5 -6
  16. package/dist/cjs/a/Quote/Quote.js +5 -6
  17. package/dist/cjs/a/Removable/Removable.js +5 -6
  18. package/dist/cjs/a/SVG/SVG.js +3 -5
  19. package/dist/cjs/a/SnapScroller/SnapScroller.js +4 -4
  20. package/dist/cjs/a/Spinner/Spinner.js +5 -6
  21. package/dist/cjs/a/TextSteps/TextSteps.js +6 -9
  22. package/dist/cjs/a/TextSteps/styles.scss +1 -1
  23. package/dist/cjs/a/Timestamp/Timestamp.js +5 -5
  24. package/dist/cjs/a/Tip/Tip.js +5 -6
  25. package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +5 -6
  26. package/dist/cjs/b/Button/Button.js +3 -7
  27. package/dist/cjs/b/Button/common/Group/Group.js +4 -7
  28. package/dist/cjs/b/Card/Card.js +5 -6
  29. package/dist/cjs/b/Card/common/Group/Group.js +4 -7
  30. package/dist/cjs/b/Logo/Logo.js +4 -4
  31. package/dist/cjs/b/Page/Page.js +3 -6
  32. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +4 -7
  33. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +4 -4
  34. package/dist/cjs/b/Title/Title.js +3 -9
  35. package/dist/cjs/c/ContentSlides/ContentSlides.js +4 -4
  36. package/dist/cjs/c/Modal/Modal.js +5 -6
  37. package/dist/cjs/c/Shortener/Shortener.js +6 -4
  38. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +5 -6
  39. package/dist/cjs/f/FormInput/FormInput.js +3 -5
  40. package/dist/cjs/f/common/Debugger/Debugger.js +4 -4
  41. package/dist/cjs/f/common/Description/Description.js +5 -6
  42. package/dist/cjs/f/common/InputWrapper/InputWrapper.js +5 -6
  43. package/dist/cjs/f/common/Label/Label.js +5 -6
  44. package/dist/cjs/f/fields/Checkbox/Checkbox.js +4 -7
  45. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +3 -5
  46. package/dist/cjs/f/fields/EditorInput/EditorInput.js +7 -4
  47. package/dist/cjs/f/fields/LinkInput/LinkInput.js +3 -5
  48. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +6 -4
  49. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +6 -4
  50. package/dist/cjs/f/fields/SelectInput/SelectInput.js +3 -5
  51. package/dist/cjs/f/fields/TextInput/TextInput.js +3 -5
  52. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +3 -5
  53. package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +18 -23
  54. package/dist/es/a/AnimatedGradient/AnimatedGradient.js +2 -4
  55. package/dist/es/a/BlurOverlay/BlurOverlay.js +6 -11
  56. package/dist/es/a/ContentTree/ContentTree.js +1 -4
  57. package/dist/es/a/Conversation/Conversation.js +11 -16
  58. package/dist/es/a/DotInfo/DotInfo.js +9 -14
  59. package/dist/es/a/Figure/Figure.js +10 -15
  60. package/dist/es/a/HamburgerButton/HamburgerButton.js +13 -18
  61. package/dist/es/a/IconList/IconList.js +10 -15
  62. package/dist/es/a/Label/Label.js +6 -11
  63. package/dist/es/a/LoadingCircle/LoadingCircle.js +32 -37
  64. package/dist/es/a/MetaCard/MetaCard.js +6 -11
  65. package/dist/es/a/People/People.js +11 -16
  66. package/dist/es/a/Popover/Popover.js +2 -4
  67. package/dist/es/a/ProgressBar/ProgressBar.js +12 -17
  68. package/dist/es/a/Quote/Quote.js +14 -19
  69. package/dist/es/a/Removable/Removable.js +13 -18
  70. package/dist/es/a/SVG/SVG.js +2 -4
  71. package/dist/es/a/SnapScroller/SnapScroller.js +2 -4
  72. package/dist/es/a/Spinner/Spinner.js +9 -14
  73. package/dist/es/a/TextSteps/TextSteps.js +16 -21
  74. package/dist/es/a/TextSteps/styles.scss +1 -1
  75. package/dist/es/a/Timestamp/Timestamp.js +3 -5
  76. package/dist/es/a/Tip/Tip.js +9 -14
  77. package/dist/es/a/ToggleSwitch/ToggleSwitch.js +18 -23
  78. package/dist/es/b/Button/Button.js +0 -4
  79. package/dist/es/b/Button/common/Group/Group.js +6 -11
  80. package/dist/es/b/Card/Card.js +11 -16
  81. package/dist/es/b/Card/common/Group/Group.js +1 -4
  82. package/dist/es/b/Logo/Logo.js +2 -4
  83. package/dist/es/b/Page/Page.js +2 -6
  84. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +1 -4
  85. package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -4
  86. package/dist/es/b/Title/Title.js +11 -20
  87. package/dist/es/c/ContentSlides/ContentSlides.js +1 -3
  88. package/dist/es/c/Modal/Modal.js +13 -18
  89. package/dist/es/c/Shortener/Shortener.js +2 -4
  90. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -4
  91. package/dist/es/f/FormInput/FormInput.js +2 -4
  92. package/dist/es/f/common/Debugger/Debugger.js +2 -4
  93. package/dist/es/f/common/Description/Description.js +1 -4
  94. package/dist/es/f/common/InputWrapper/InputWrapper.js +10 -15
  95. package/dist/es/f/common/Label/Label.js +12 -17
  96. package/dist/es/f/fields/Checkbox/Checkbox.js +1 -4
  97. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +30 -34
  98. package/dist/es/f/fields/EditorInput/EditorInput.js +2 -4
  99. package/dist/es/f/fields/LinkInput/LinkInput.js +2 -4
  100. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -4
  101. package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -4
  102. package/dist/es/f/fields/SelectInput/SelectInput.js +2 -4
  103. package/dist/es/f/fields/TextInput/TextInput.js +2 -4
  104. package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -4
  105. package/package.json +3 -3
  106. package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +25 -31
  107. package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +2 -5
  108. package/src/ui/a/BlurOverlay/BlurOverlay.jsx +18 -24
  109. package/src/ui/a/ContentTree/ContentTree.jsx +2 -6
  110. package/src/ui/a/Conversation/Conversation.jsx +26 -32
  111. package/src/ui/a/DotInfo/DotInfo.jsx +23 -29
  112. package/src/ui/a/Figure/Figure.jsx +21 -27
  113. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +27 -33
  114. package/src/ui/a/IconList/IconList.jsx +22 -28
  115. package/src/ui/a/Label/Label.jsx +21 -27
  116. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +43 -49
  117. package/src/ui/a/MetaCard/MetaCard.jsx +19 -25
  118. package/src/ui/a/People/People.jsx +25 -31
  119. package/src/ui/a/Popover/Popover.jsx +3 -5
  120. package/src/ui/a/ProgressBar/ProgressBar.jsx +25 -31
  121. package/src/ui/a/Quote/Quote.jsx +26 -32
  122. package/src/ui/a/Removable/Removable.jsx +22 -29
  123. package/src/ui/a/SVG/SVG.jsx +3 -5
  124. package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -4
  125. package/src/ui/a/Spinner/Spinner.jsx +19 -25
  126. package/src/ui/a/TextSteps/TextSteps.jsx +31 -38
  127. package/src/ui/a/TextSteps/styles.scss +1 -1
  128. package/src/ui/a/Timestamp/Timestamp.jsx +5 -7
  129. package/src/ui/a/Tip/Tip.jsx +22 -28
  130. package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +31 -37
  131. package/src/ui/b/Button/Button.jsx +0 -5
  132. package/src/ui/b/Button/common/Group/Group.jsx +18 -24
  133. package/src/ui/b/Card/Card.jsx +25 -31
  134. package/src/ui/b/Card/common/Group/Group.jsx +2 -5
  135. package/src/ui/b/Logo/Logo.jsx +3 -5
  136. package/src/ui/b/Page/Page.jsx +2 -7
  137. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -7
  138. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +3 -5
  139. package/src/ui/b/Title/Title.jsx +36 -46
  140. package/src/ui/c/ContentSlides/ContentSlides.jsx +2 -4
  141. package/src/ui/c/Modal/Modal.jsx +24 -30
  142. package/src/ui/c/Shortener/Shortener.jsx +3 -5
  143. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -6
  144. package/src/ui/f/FormInput/FormInput.jsx +3 -5
  145. package/src/ui/f/common/Debugger/Debugger.jsx +3 -5
  146. package/src/ui/f/common/Description/Description.jsx +2 -6
  147. package/src/ui/f/common/InputWrapper/InputWrapper.jsx +21 -27
  148. package/src/ui/f/common/Label/Label.jsx +25 -31
  149. package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -6
  150. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +48 -52
  151. package/src/ui/f/fields/EditorInput/EditorInput.jsx +2 -5
  152. package/src/ui/f/fields/LinkInput/LinkInput.jsx +2 -5
  153. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +3 -5
  154. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +3 -5
  155. package/src/ui/f/fields/SelectInput/SelectInput.jsx +3 -5
  156. package/src/ui/f/fields/TextInput/TextInput.jsx +3 -5
  157. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +3 -5
  158. package/tests/__snapshots__/Storyshots.test.js.snap +1 -1
  159. package/dist/cjs/b/Title/styles.scss +0 -16
  160. package/dist/es/b/Title/styles.scss +0 -16
  161. package/src/ui/b/Title/styles.scss +0 -16
@@ -1,8 +1,6 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useInsertionEffect } from 'react'
5
-
6
4
  import PropTypes from 'prop-types'
7
5
 
8
6
  import styleNames from '@pareto-engineering/bem/exports'
@@ -11,6 +9,8 @@ import { ProgressBar } from 'ui'
11
9
 
12
10
  import { Group, Section } from './common'
13
11
 
12
+ import './styles.scss'
13
+
14
14
  // Local Definitions
15
15
 
16
16
  const baseClassName = styleNames.base
@@ -27,35 +27,29 @@ const Card = ({
27
27
  children,
28
28
  progress,
29
29
  progressBarColor,
30
- }) => {
31
- useInsertionEffect(() => {
32
- import('./styles.scss')
33
- }, [])
34
-
35
- return (
36
- <div
37
- id={id}
38
- className={[
39
- baseClassName,
40
- componentClassName,
41
- userClassName,
42
- ]
43
- .filter((e) => e)
44
- .join(' ')}
45
- style={style}
46
- >
47
- {progress && (
48
- <ProgressBar
49
- attached
50
- color={progressBarColor}
51
- progress={progress}
52
- height=".5em"
53
- />
54
- )}
55
- {children}
56
- </div>
57
- )
58
- }
30
+ }) => (
31
+ <div
32
+ id={id}
33
+ className={[
34
+ baseClassName,
35
+ componentClassName,
36
+ userClassName,
37
+ ]
38
+ .filter((e) => e)
39
+ .join(' ')}
40
+ style={style}
41
+ >
42
+ {progress && (
43
+ <ProgressBar
44
+ attached
45
+ color={progressBarColor}
46
+ progress={progress}
47
+ height=".5em"
48
+ />
49
+ )}
50
+ {children}
51
+ </div>
52
+ )
59
53
 
60
54
  Card.propTypes = {
61
55
  /**
@@ -1,14 +1,14 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useInsertionEffect } from 'react'
5
-
6
4
  import PropTypes from 'prop-types'
7
5
 
8
6
  import styleNames from '@pareto-engineering/bem/exports'
9
7
 
10
8
  import { SnapScroller } from 'ui'
11
9
 
10
+ import './styles.scss'
11
+
12
12
  // Local Definitions
13
13
 
14
14
  const baseClassName = styleNames.base
@@ -24,9 +24,6 @@ const Group = ({
24
24
  desktopType,
25
25
  ...otherProps
26
26
  }) => {
27
- useInsertionEffect(() => {
28
- import('./styles.scss')
29
- }, [])
30
27
  const Wrapper = type === 'snap-scroller' ? SnapScroller : 'div'
31
28
  const wrapperProps = (type === 'snap-scroller' && desktopType !== 'snap-scroller') ? { noScrollOnDesktop: true } : {}
32
29
 
@@ -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, useInsertionEffect } from 'react'
4
+ import { useMemo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -9,6 +9,8 @@ import styleNames from '@pareto-engineering/bem/exports'
9
9
 
10
10
  import { SVG } from 'ui/a'
11
11
 
12
+ import './styles.scss'
13
+
12
14
  // Local Definitions
13
15
 
14
16
  const baseClassName = styleNames.base
@@ -64,10 +66,6 @@ const Logo = ({
64
66
  square,
65
67
  // ...otherProps
66
68
  }) => {
67
- useInsertionEffect(() => {
68
- import('./styles.scss')
69
- }, [])
70
-
71
69
  const contentMap = square ? contentMapSquare : contentMapWithName
72
70
  const svgConfig = useMemo(() => contentMap[variant], [variant])
73
71
 
@@ -1,6 +1,6 @@
1
1
  /* @pareto-engineering/generator-front 1.0.0 */
2
2
  import * as React from 'react'
3
- import { useInsertionEffect, useEffect } from 'react'
3
+ import { useEffect } from 'react'
4
4
  import PropTypes from 'prop-types'
5
5
  import styleNames from '@pareto-engineering/bem/exports'
6
6
  import { useApp } from 'ui/a'
@@ -8,8 +8,7 @@ import { useApp } from 'ui/a'
8
8
  // Imports from the component folder
9
9
  import { PageHelmet, Section } from './common'
10
10
  import Context from './Context'
11
-
12
- // import('./styles.scss')
11
+ import './styles.scss'
13
12
 
14
13
  // Local Definitions
15
14
  const baseClassName = styleNames.base
@@ -30,10 +29,6 @@ const Page = ({
30
29
  Background,
31
30
  ...otherProps
32
31
  }) => {
33
- useInsertionEffect(() => {
34
- import('./styles.scss')
35
- }, [])
36
-
37
32
  const { userTheme } = useApp()
38
33
 
39
34
  useEffect(() => {
@@ -1,14 +1,14 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useInsertionEffect } from 'react'
5
-
6
4
  import PropTypes from 'prop-types'
7
5
 
8
6
  import styleNames from '@pareto-engineering/bem/exports'
9
7
 
10
8
  import { useApp } from 'ui/a'
11
9
 
10
+ import './styles.scss'
11
+
12
12
  // Local Definitions
13
13
 
14
14
  const baseClassName = styleNames.base
@@ -55,11 +55,6 @@ const SocialMediaButton = ({
55
55
  ...otherProps
56
56
  }) => {
57
57
  const applicationContext = useApp()
58
-
59
- useInsertionEffect(() => {
60
- import('./styles.scss')
61
- }, [])
62
-
63
58
  const content = type && defaultsMap[type]
64
59
  const href = link || applicationContext?.SOCIAL?.[content?.link]
65
60
 
@@ -1,11 +1,13 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
- import { useInsertionEffect, useCallback } from 'react'
3
+ import { useCallback } from 'react'
4
4
  import PropTypes from 'prop-types'
5
5
  import styleNames from '@pareto-engineering/bem/exports'
6
6
 
7
7
  import { useApp, ToggleSwitch } from 'ui/a'
8
8
 
9
+ import './styles.scss'
10
+
9
11
  // Local Definitions
10
12
 
11
13
  const baseClassName = styleNames.base
@@ -26,10 +28,6 @@ const ThemeSelector = ({
26
28
  setPreferredTheme,
27
29
  } = useApp()
28
30
 
29
- useInsertionEffect(() => {
30
- import('./styles.scss')
31
- }, [])
32
-
33
31
  const loopThemes = useCallback(() => {
34
32
  const current = themes.indexOf(userTheme)
35
33
  setPreferredTheme(themes[(current + 1) % themes.length])
@@ -1,14 +1,10 @@
1
1
  /* @pareto-engineering/generator-front 0.3.1 */
2
2
  import * as React from 'react'
3
- import { useInsertionEffect } from 'react'
4
3
  import PropTypes from 'prop-types'
5
4
 
6
5
  // Package-level Imports
7
6
  import styleNames from '@pareto-engineering/bem/exports'
8
7
 
9
- // Component-level imports
10
- // import('./styles.scss')
11
-
12
8
  // Helper Definition
13
9
  const baseClassName = styleNames.base
14
10
  const componentClassName = 'title'
@@ -29,53 +25,47 @@ const Title = ({
29
25
  subtitleStyle,
30
26
  subtitleProps,
31
27
  // ...otherProps
32
- }) => {
33
- useInsertionEffect(() => {
34
- import('./styles.scss')
35
- }, [])
36
-
37
- return (
38
- <div
39
- id={id}
28
+ }) => (
29
+ <div
30
+ id={id}
31
+ className={[
32
+ baseClassName,
33
+ componentClassName,
34
+ userClassName,
35
+ ]
36
+ .filter((e) => e)
37
+ .join(' ')}
38
+ style={style}
39
+ >
40
+ <HeadingWrapper
40
41
  className={[
41
- baseClassName,
42
- componentClassName,
43
- userClassName,
42
+ headingClassName,
43
+ styleNames.heading,
44
44
  ]
45
45
  .filter((e) => e)
46
46
  .join(' ')}
47
- style={style}
47
+ style={headingStyle}
48
+ {...headingProps}
48
49
  >
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
62
- && (
63
- <SubtitleWrapper
64
- className={[
65
- subtitleClassName,
66
- styleNames.subtitle,
67
- ]
68
- .filter((e) => e)
69
- .join(' ')}
70
- style={subtitleStyle}
71
- {...subtitleProps}
72
- >
73
- { subtitle }
74
- </SubtitleWrapper>
75
- )}
76
- </div>
77
- )
78
- }
50
+ { heading }
51
+ </HeadingWrapper>
52
+ { subtitle
53
+ && (
54
+ <SubtitleWrapper
55
+ className={[
56
+ subtitleClassName,
57
+ styleNames.subtitle,
58
+ ]
59
+ .filter((e) => e)
60
+ .join(' ')}
61
+ style={subtitleStyle}
62
+ {...subtitleProps}
63
+ >
64
+ { subtitle }
65
+ </SubtitleWrapper>
66
+ )}
67
+ </div>
68
+ )
79
69
 
80
70
  Title.propTypes = {
81
71
  /**
@@ -18,6 +18,8 @@ import {
18
18
  Navigator,
19
19
  } from './common'
20
20
 
21
+ import './styles.scss'
22
+
21
23
  // Local Definitions
22
24
 
23
25
  const baseClassName = styleNames.base
@@ -64,10 +66,6 @@ const ContentSlides = ({
64
66
  isDebug,
65
67
  // ...otherProps
66
68
  }) => {
67
- useInsertionEffect(() => {
68
- import('./styles.scss')
69
- }, [])
70
-
71
69
  const history = useHistory()
72
70
 
73
71
  const [state, dispatch] = useReducer(reducer, {
@@ -1,14 +1,14 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useInsertionEffect } from 'react'
5
-
6
4
  import PropTypes from 'prop-types'
7
5
 
8
6
  import styleNames from '@pareto-engineering/bem/exports'
9
7
 
10
8
  import { ModalHeader } from './common'
11
9
 
10
+ import './styles.scss'
11
+
12
12
  // Local Definitions
13
13
 
14
14
  const baseClassName = styleNames.base
@@ -27,35 +27,29 @@ const Modal = ({
27
27
  color,
28
28
  close,
29
29
  // ...otherProps
30
- }) => {
31
- useInsertionEffect(() => {
32
- import('./styles.scss')
33
- }, [])
34
-
35
- return (
36
- <div
37
- id={id}
38
- className={[
39
- baseClassName,
40
- componentClassName,
41
- userClassName,
42
- ]
43
- .filter((e) => e)
44
- .join(' ')}
45
- style={style}
46
- // {...otherProps}
47
- >
48
- <ModalHeader
49
- title={title}
50
- close={close}
51
- color={color}
52
- />
53
- <div className="modal-body">
54
- {children}
55
- </div>
30
+ }) => (
31
+ <div
32
+ id={id}
33
+ className={[
34
+ baseClassName,
35
+ componentClassName,
36
+ userClassName,
37
+ ]
38
+ .filter((e) => e)
39
+ .join(' ')}
40
+ style={style}
41
+ // {...otherProps}
42
+ >
43
+ <ModalHeader
44
+ title={title}
45
+ close={close}
46
+ color={color}
47
+ />
48
+ <div className="modal-body">
49
+ {children}
56
50
  </div>
57
- )
58
- }
51
+ </div>
52
+ )
59
53
 
60
54
  Modal.propTypes = {
61
55
  /**
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useInsertionEffect, useState } from 'react'
4
+ import { useState } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -10,6 +10,8 @@ import styleNames from '@pareto-engineering/bem/exports'
10
10
  // Local Definitions
11
11
  import { Button } from 'ui/b'
12
12
 
13
+ import './styles.scss'
14
+
13
15
  const baseClassName = styleNames.base
14
16
 
15
17
  const componentClassName = 'shortener'
@@ -31,10 +33,6 @@ const Shortener = ({
31
33
 
32
34
  countLetters,
33
35
  }) => {
34
- useInsertionEffect(() => {
35
- import('./styles.scss')
36
- }, [])
37
-
38
36
  const [displayFull, setDisplayFull] = useState(false)
39
37
 
40
38
  const text = children || ''
@@ -1,12 +1,12 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useInsertionEffect } from 'react'
5
-
6
4
  import PropTypes from 'prop-types'
7
5
 
8
6
  import styleNames from '@pareto-engineering/bem/exports'
9
7
 
8
+ import './styles.scss'
9
+
10
10
  // Local Definitions
11
11
 
12
12
  const baseClassName = styleNames.base
@@ -25,10 +25,6 @@ const SocialMediaShareButton = ({
25
25
  type,
26
26
  color,
27
27
  }) => {
28
- useInsertionEffect(() => {
29
- import('./styles.scss')
30
- }, [])
31
-
32
28
  const isServer = typeof window === 'undefined'
33
29
 
34
30
  const link = isServer ? '' : window.location.href
@@ -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, useInsertionEffect } from 'react'
4
+ import { memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -19,6 +19,8 @@ import {
19
19
  EditorInput,
20
20
  } from '../fields'
21
21
 
22
+ import './styles.scss'
23
+
22
24
  // Local Definitions
23
25
 
24
26
  // const baseClassName = styleNames.base
@@ -35,10 +37,6 @@ const FormInput = ({
35
37
  disabled,
36
38
  ...otherProps
37
39
  }) => {
38
- useInsertionEffect(() => {
39
- import('./styles.scss')
40
- }, [])
41
-
42
40
  const newClassName = [
43
41
  className,
44
42
  componentClassName,
@@ -1,12 +1,14 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
- import { useState, useInsertionEffect, useContext } from 'react'
3
+ import { useState, useContext } from 'react'
4
4
 
5
5
  import PropTypes from 'prop-types'
6
6
 
7
7
  import { Button } from 'ui/b'
8
8
  import { FormikContext } from 'formik'
9
9
 
10
+ import './styles.scss'
11
+
10
12
  // Local Definitions
11
13
 
12
14
  const componentClassName = 'debugger'
@@ -21,10 +23,6 @@ const Debugger = ({
21
23
  initialIsOpen,
22
24
  // ...otherProps
23
25
  }) => {
24
- useInsertionEffect(() => {
25
- import('./styles.scss')
26
- }, [])
27
-
28
26
  const [isOpen, setIsOpen] = useState(initialIsOpen)
29
27
 
30
28
  const toggleDebugger = () => setIsOpen(!isOpen)
@@ -1,14 +1,14 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useInsertionEffect } from 'react'
5
-
6
4
  import { useField } from 'formik'
7
5
 
8
6
  import PropTypes from 'prop-types'
9
7
 
10
8
  import styleNames from '@pareto-engineering/bem/exports'
11
9
 
10
+ import './styles.scss'
11
+
12
12
  // Local Definitions
13
13
 
14
14
  const baseClassName = styleNames.base
@@ -27,10 +27,6 @@ const Description = ({
27
27
  color,
28
28
  // ...otherProps
29
29
  }) => {
30
- useInsertionEffect(() => {
31
- import('./styles.scss')
32
- }, [])
33
-
34
30
  const [, meta] = useField(name)
35
31
  const hasError = meta.touched && meta.error
36
32
 
@@ -1,12 +1,12 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useInsertionEffect } from 'react'
5
-
6
4
  import PropTypes from 'prop-types'
7
5
 
8
6
  import styleNames from '@pareto-engineering/bem/exports'
9
7
 
8
+ import './styles.scss'
9
+
10
10
  // Local Definitions
11
11
 
12
12
  const baseClassName = styleNames.base
@@ -24,31 +24,25 @@ const InputWrapper = ({
24
24
  columnSpan,
25
25
  desktopColumnSpan,
26
26
  // ...otherProps
27
- }) => {
28
- useInsertionEffect(() => {
29
- import('./styles.scss')
30
- }, [])
31
-
32
- return (
33
- <div
34
- id={id}
35
- className={[
36
- baseClassName,
37
- componentClassName,
38
- userClassName,
39
- ]
40
- .filter((e) => e)
41
- .join(' ')}
42
- style={{
43
- ...style,
44
- '--column-span' :columnSpan || 'var(--columns)',
45
- '--column-span-md':desktopColumnSpan || 'var(--columns)',
46
- }}
47
- >
48
- {children}
49
- </div>
50
- )
51
- }
27
+ }) => (
28
+ <div
29
+ id={id}
30
+ className={[
31
+ baseClassName,
32
+ componentClassName,
33
+ userClassName,
34
+ ]
35
+ .filter((e) => e)
36
+ .join(' ')}
37
+ style={{
38
+ ...style,
39
+ '--column-span' :columnSpan || 'var(--columns)',
40
+ '--column-span-md':desktopColumnSpan || 'var(--columns)',
41
+ }}
42
+ >
43
+ {children}
44
+ </div>
45
+ )
52
46
 
53
47
  InputWrapper.propTypes = {
54
48
  /**