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

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 (157) 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 +2 -5
  22. package/dist/cjs/a/Timestamp/Timestamp.js +5 -5
  23. package/dist/cjs/a/Tip/Tip.js +5 -6
  24. package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +5 -6
  25. package/dist/cjs/b/Button/Button.js +3 -7
  26. package/dist/cjs/b/Button/common/Group/Group.js +4 -7
  27. package/dist/cjs/b/Card/Card.js +5 -6
  28. package/dist/cjs/b/Card/common/Group/Group.js +4 -7
  29. package/dist/cjs/b/Logo/Logo.js +4 -4
  30. package/dist/cjs/b/Page/Page.js +3 -6
  31. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +4 -7
  32. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +4 -4
  33. package/dist/cjs/b/Title/Title.js +3 -9
  34. package/dist/cjs/c/ContentSlides/ContentSlides.js +4 -4
  35. package/dist/cjs/c/Modal/Modal.js +5 -6
  36. package/dist/cjs/c/Shortener/Shortener.js +6 -4
  37. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +5 -6
  38. package/dist/cjs/f/FormInput/FormInput.js +3 -5
  39. package/dist/cjs/f/common/Debugger/Debugger.js +4 -4
  40. package/dist/cjs/f/common/Description/Description.js +5 -6
  41. package/dist/cjs/f/common/InputWrapper/InputWrapper.js +5 -6
  42. package/dist/cjs/f/common/Label/Label.js +5 -6
  43. package/dist/cjs/f/fields/Checkbox/Checkbox.js +4 -7
  44. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +3 -5
  45. package/dist/cjs/f/fields/EditorInput/EditorInput.js +7 -4
  46. package/dist/cjs/f/fields/LinkInput/LinkInput.js +3 -5
  47. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +6 -4
  48. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +6 -4
  49. package/dist/cjs/f/fields/SelectInput/SelectInput.js +3 -5
  50. package/dist/cjs/f/fields/TextInput/TextInput.js +3 -5
  51. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +3 -5
  52. package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +18 -23
  53. package/dist/es/a/AnimatedGradient/AnimatedGradient.js +2 -4
  54. package/dist/es/a/BlurOverlay/BlurOverlay.js +6 -11
  55. package/dist/es/a/ContentTree/ContentTree.js +1 -4
  56. package/dist/es/a/Conversation/Conversation.js +11 -16
  57. package/dist/es/a/DotInfo/DotInfo.js +9 -14
  58. package/dist/es/a/Figure/Figure.js +10 -15
  59. package/dist/es/a/HamburgerButton/HamburgerButton.js +13 -18
  60. package/dist/es/a/IconList/IconList.js +10 -15
  61. package/dist/es/a/Label/Label.js +6 -11
  62. package/dist/es/a/LoadingCircle/LoadingCircle.js +32 -37
  63. package/dist/es/a/MetaCard/MetaCard.js +6 -11
  64. package/dist/es/a/People/People.js +11 -16
  65. package/dist/es/a/Popover/Popover.js +2 -4
  66. package/dist/es/a/ProgressBar/ProgressBar.js +12 -17
  67. package/dist/es/a/Quote/Quote.js +14 -19
  68. package/dist/es/a/Removable/Removable.js +13 -18
  69. package/dist/es/a/SVG/SVG.js +2 -4
  70. package/dist/es/a/SnapScroller/SnapScroller.js +2 -4
  71. package/dist/es/a/Spinner/Spinner.js +9 -14
  72. package/dist/es/a/TextSteps/TextSteps.js +12 -17
  73. package/dist/es/a/Timestamp/Timestamp.js +3 -5
  74. package/dist/es/a/Tip/Tip.js +9 -14
  75. package/dist/es/a/ToggleSwitch/ToggleSwitch.js +18 -23
  76. package/dist/es/b/Button/Button.js +0 -4
  77. package/dist/es/b/Button/common/Group/Group.js +6 -11
  78. package/dist/es/b/Card/Card.js +11 -16
  79. package/dist/es/b/Card/common/Group/Group.js +1 -4
  80. package/dist/es/b/Logo/Logo.js +2 -4
  81. package/dist/es/b/Page/Page.js +2 -6
  82. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +1 -4
  83. package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -4
  84. package/dist/es/b/Title/Title.js +11 -20
  85. package/dist/es/c/ContentSlides/ContentSlides.js +1 -3
  86. package/dist/es/c/Modal/Modal.js +13 -18
  87. package/dist/es/c/Shortener/Shortener.js +2 -4
  88. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -4
  89. package/dist/es/f/FormInput/FormInput.js +2 -4
  90. package/dist/es/f/common/Debugger/Debugger.js +2 -4
  91. package/dist/es/f/common/Description/Description.js +1 -4
  92. package/dist/es/f/common/InputWrapper/InputWrapper.js +10 -15
  93. package/dist/es/f/common/Label/Label.js +12 -17
  94. package/dist/es/f/fields/Checkbox/Checkbox.js +1 -4
  95. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +30 -34
  96. package/dist/es/f/fields/EditorInput/EditorInput.js +2 -4
  97. package/dist/es/f/fields/LinkInput/LinkInput.js +2 -4
  98. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -4
  99. package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -4
  100. package/dist/es/f/fields/SelectInput/SelectInput.js +2 -4
  101. package/dist/es/f/fields/TextInput/TextInput.js +2 -4
  102. package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -4
  103. package/package.json +3 -3
  104. package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +25 -31
  105. package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +2 -5
  106. package/src/ui/a/BlurOverlay/BlurOverlay.jsx +18 -24
  107. package/src/ui/a/ContentTree/ContentTree.jsx +2 -6
  108. package/src/ui/a/Conversation/Conversation.jsx +26 -32
  109. package/src/ui/a/DotInfo/DotInfo.jsx +23 -29
  110. package/src/ui/a/Figure/Figure.jsx +21 -27
  111. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +27 -33
  112. package/src/ui/a/IconList/IconList.jsx +22 -28
  113. package/src/ui/a/Label/Label.jsx +21 -27
  114. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +43 -49
  115. package/src/ui/a/MetaCard/MetaCard.jsx +19 -25
  116. package/src/ui/a/People/People.jsx +25 -31
  117. package/src/ui/a/Popover/Popover.jsx +3 -5
  118. package/src/ui/a/ProgressBar/ProgressBar.jsx +25 -31
  119. package/src/ui/a/Quote/Quote.jsx +26 -32
  120. package/src/ui/a/Removable/Removable.jsx +22 -29
  121. package/src/ui/a/SVG/SVG.jsx +3 -5
  122. package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -4
  123. package/src/ui/a/Spinner/Spinner.jsx +19 -25
  124. package/src/ui/a/TextSteps/TextSteps.jsx +27 -34
  125. package/src/ui/a/Timestamp/Timestamp.jsx +5 -7
  126. package/src/ui/a/Tip/Tip.jsx +22 -28
  127. package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +31 -37
  128. package/src/ui/b/Button/Button.jsx +0 -5
  129. package/src/ui/b/Button/common/Group/Group.jsx +18 -24
  130. package/src/ui/b/Card/Card.jsx +25 -31
  131. package/src/ui/b/Card/common/Group/Group.jsx +2 -5
  132. package/src/ui/b/Logo/Logo.jsx +3 -5
  133. package/src/ui/b/Page/Page.jsx +2 -7
  134. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -7
  135. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +3 -5
  136. package/src/ui/b/Title/Title.jsx +36 -46
  137. package/src/ui/c/ContentSlides/ContentSlides.jsx +2 -4
  138. package/src/ui/c/Modal/Modal.jsx +24 -30
  139. package/src/ui/c/Shortener/Shortener.jsx +3 -5
  140. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -6
  141. package/src/ui/f/FormInput/FormInput.jsx +3 -5
  142. package/src/ui/f/common/Debugger/Debugger.jsx +3 -5
  143. package/src/ui/f/common/Description/Description.jsx +2 -6
  144. package/src/ui/f/common/InputWrapper/InputWrapper.jsx +21 -27
  145. package/src/ui/f/common/Label/Label.jsx +25 -31
  146. package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -6
  147. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +48 -52
  148. package/src/ui/f/fields/EditorInput/EditorInput.jsx +2 -5
  149. package/src/ui/f/fields/LinkInput/LinkInput.jsx +2 -5
  150. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +3 -5
  151. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +3 -5
  152. package/src/ui/f/fields/SelectInput/SelectInput.jsx +3 -5
  153. package/src/ui/f/fields/TextInput/TextInput.jsx +3 -5
  154. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +3 -5
  155. package/dist/cjs/b/Title/styles.scss +0 -16
  156. package/dist/es/b/Title/styles.scss +0 -16
  157. package/src/ui/b/Title/styles.scss +0 -16
@@ -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,36 +25,30 @@ const Quote = ({
25
25
  author,
26
26
  color,
27
27
  // ...otherProps
28
- }) => {
29
- useInsertionEffect(() => {
30
- import('./styles.scss')
31
- }, [])
32
-
33
- return (
34
- <figure
35
- id={id}
36
- className={[
37
- baseClassName,
38
- componentClassName,
39
- userClassName,
40
- `x-${color}`,
41
- ]
42
- .filter((e) => e)
43
- .join(' ')}
44
- style={style}
45
- // {...otherProps}
46
- >
47
- <blockquote cite={source} className="blockquote uc">
48
- <p className="quotation c-x md-s0 s-1">
49
- {children}
50
- </p>
51
- </blockquote>
52
- <figcaption className="figcaption">
53
- <cite>{author}</cite>
54
- </figcaption>
55
- </figure>
56
- )
57
- }
28
+ }) => (
29
+ <figure
30
+ id={id}
31
+ className={[
32
+ baseClassName,
33
+ componentClassName,
34
+ userClassName,
35
+ `x-${color}`,
36
+ ]
37
+ .filter((e) => e)
38
+ .join(' ')}
39
+ style={style}
40
+ // {...otherProps}
41
+ >
42
+ <blockquote cite={source} className="blockquote uc">
43
+ <p className="quotation c-x md-s0 s-1">
44
+ {children}
45
+ </p>
46
+ </blockquote>
47
+ <figcaption className="figcaption">
48
+ <cite>{author}</cite>
49
+ </figcaption>
50
+ </figure>
51
+ )
58
52
 
59
53
  Quote.propTypes = {
60
54
  /**
@@ -1,11 +1,10 @@
1
1
  /* @pareto-engineering/generator-front 1.1.1-alpha.1 */
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'
7
+ import './styles.scss'
9
8
 
10
9
  // Local Definitions
11
10
 
@@ -23,33 +22,27 @@ const Removable = ({
23
22
  handleClose,
24
23
  children,
25
24
  // ...otherProps
26
- }) => {
27
- useInsertionEffect(() => {
28
- import('./styles.scss')
29
- }, [])
30
-
31
- return (
32
- <div
33
- id={id}
34
- className={[
35
-
36
- baseClassName,
37
-
38
- componentClassName,
39
- userClassName,
40
- ]
41
- .filter((e) => e)
42
- .join(' ')}
43
- style={style}
44
- // {...otherProps}
45
- >
46
- {children}
47
- <button type="button" className="close-button" onClick={handleClose || (() => null)}>
48
- <span className="icon">Y</span>
49
- </button>
50
- </div>
51
- )
52
- }
25
+ }) => (
26
+ <div
27
+ id={id}
28
+ className={[
29
+
30
+ baseClassName,
31
+
32
+ componentClassName,
33
+ userClassName,
34
+ ]
35
+ .filter((e) => e)
36
+ .join(' ')}
37
+ style={style}
38
+ // {...otherProps}
39
+ >
40
+ {children}
41
+ <button type="button" className="close-button" onClick={handleClose || (() => null)}>
42
+ <span className="icon">Y</span>
43
+ </button>
44
+ </div>
45
+ )
53
46
 
54
47
  Removable.propTypes = {
55
48
  /**
@@ -1,12 +1,14 @@
1
1
  /* @pareto-engineering/generator-front 1.0.3 */
2
2
  import * as React from 'react'
3
- import { useInsertionEffect, useMemo } from 'react'
3
+ import { useMemo } from 'react'
4
4
  import PropTypes from 'prop-types'
5
5
 
6
6
  import styleNames from '@pareto-engineering/bem/exports'
7
7
 
8
8
  import { UseSVG } from './common'
9
9
 
10
+ import './styles.scss'
11
+
10
12
  // Local Definitions
11
13
 
12
14
  const baseClassName = styleNames.base
@@ -34,10 +36,6 @@ const SVG = ({
34
36
  animated,
35
37
  ...otherProps
36
38
  }) => {
37
- useInsertionEffect(() => {
38
- import('./styles.scss')
39
- })
40
-
41
39
  const useSVGProps = useMemo(() => ({
42
40
  className:useClassName,
43
41
  source,
@@ -1,11 +1,12 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useInsertionEffect, useState, useRef } from 'react'
4
+ import { useState, useRef } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
8
8
  import styleNames from '@pareto-engineering/bem/exports'
9
+ import './styles.scss'
9
10
 
10
11
  // Local Definitions
11
12
 
@@ -24,9 +25,6 @@ const SnapScroller = ({
24
25
  noScrollOnDesktop,
25
26
  // ...otherProps
26
27
  }) => {
27
- useInsertionEffect(() => {
28
- import('./styles.scss')
29
- }, [])
30
28
  const [isDragging, setIsDragging] = useState(false)
31
29
  const [startX, setStartX] = useState(0)
32
30
  const [startScrollX, setStartScrollX] = useState(0)
@@ -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
@@ -22,29 +22,23 @@ const Spinner = ({
22
22
  style,
23
23
  color,
24
24
  // ...otherProps
25
- }) => {
26
- useInsertionEffect(() => {
27
- import('./styles.scss')
28
- }, [])
29
-
30
- return (
31
- <div
32
- id={id}
33
- className={[
34
- baseClassName,
35
- componentClassName,
36
- userClassName,
37
- `x-${color}`,
38
- ]
39
- .filter((e) => e)
40
- .join(' ')}
41
- style={style}
42
- // {...otherProps}
43
- >
44
- <div className="loader" />
45
- </div>
46
- )
47
- }
25
+ }) => (
26
+ <div
27
+ id={id}
28
+ className={[
29
+ baseClassName,
30
+ componentClassName,
31
+ userClassName,
32
+ `x-${color}`,
33
+ ]
34
+ .filter((e) => e)
35
+ .join(' ')}
36
+ style={style}
37
+ // {...otherProps}
38
+ >
39
+ <div className="loader" />
40
+ </div>
41
+ )
48
42
 
49
43
  Spinner.propTypes = {
50
44
  /**
@@ -1,10 +1,9 @@
1
1
  import * as React from 'react'
2
2
 
3
- import { useInsertionEffect } from 'react'
4
-
5
3
  import PropTypes from 'prop-types'
6
4
 
7
5
  import styleNames from '@pareto-engineering/bem/exports'
6
+ import './styles.scss'
8
7
 
9
8
  // Local Definitions
10
9
 
@@ -21,38 +20,32 @@ const Steps = ({
21
20
  style,
22
21
  items,
23
22
  title,
24
- }) => {
25
- useInsertionEffect(() => {
26
- import('./styles.scss')
27
- }, [])
28
-
29
- return (
30
- <div
31
- id={id}
32
- className={[
33
- baseClassName,
34
- componentClassName,
35
- userClassName,
36
- 'grid',
37
- ]
38
- .filter((e) => e)
39
- .join(' ')}
40
- style={style}
41
- >
42
- {title && (
43
- <p className="title h4">
44
- {title}
45
- </p>
46
- )}
47
- {items.map((item, i) => (
48
- <>
49
- <div className=" number h3 start-1 span-2 md-start-1 md-span-2"><p>{i + 1}</p></div>
50
- <div className=" description"><p>{item}</p></div>
51
- </>
52
- ))}
53
- </div>
54
- )
55
- }
23
+ }) => (
24
+ <div
25
+ id={id}
26
+ className={[
27
+ baseClassName,
28
+ componentClassName,
29
+ userClassName,
30
+ 'grid',
31
+ ]
32
+ .filter((e) => e)
33
+ .join(' ')}
34
+ style={style}
35
+ >
36
+ {title && (
37
+ <p className="title h4">
38
+ {title}
39
+ </p>
40
+ )}
41
+ {items.map((item, i) => (
42
+ <>
43
+ <div className=" number h3 start-1 span-2 md-start-1 md-span-2"><p>{i + 1}</p></div>
44
+ <div className=" description"><p>{item}</p></div>
45
+ </>
46
+ ))}
47
+ </div>
48
+ )
56
49
 
57
50
  Steps.propTypes = {
58
51
  /**
@@ -2,17 +2,19 @@
2
2
  import * as React from 'react'
3
3
 
4
4
  import {
5
- useInsertionEffect, useMemo, useCallback, useState,
5
+ useMemo, useCallback, useState,
6
6
  } from 'react'
7
7
 
8
8
  import PropTypes from 'prop-types'
9
9
 
10
- import styleNames from '@pareto-engineering/bem/exports'
11
-
12
10
  import {
13
11
  format, differenceInDays, formatDistance, formatRelative,
14
12
  } from 'date-fns'
15
13
 
14
+ import styleNames from '@pareto-engineering/bem/exports'
15
+
16
+ import './styles.scss'
17
+
16
18
  // Local Definitions
17
19
 
18
20
  const baseClassName = styleNames.base
@@ -36,10 +38,6 @@ const Timestamp = ({
36
38
  // ...otherProps
37
39
  as:Element,
38
40
  }) => {
39
- useInsertionEffect(() => {
40
- import('./styles.scss')
41
- }, [])
42
-
43
41
  const [currentDisplay, setCurrentDisplay] = useState(enabledFormats[0])
44
42
 
45
43
  const formatMap = useMemo(() => ({
@@ -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
@@ -26,32 +26,26 @@ const Tip = ({
26
26
  color,
27
27
  backgroundColor,
28
28
  // ...otherProps
29
- }) => {
30
- useInsertionEffect(() => {
31
- import('./styles.scss')
32
- }, [])
33
-
34
- return (
35
- <Wrapper
36
- id={id}
37
- className={[
38
- baseClassName,
39
- componentClassName,
40
- userClassName,
41
- `x-${backgroundColor}`,
42
- ]
43
- .filter((e) => e)
44
- .join(' ')}
45
- style={style}
46
- // {...otherProps}
47
- >
48
- <span className={`x-${color} c-x icon`}>
49
- {icon}
50
- </span>
51
- {children}
52
- </Wrapper>
53
- )
54
- }
29
+ }) => (
30
+ <Wrapper
31
+ id={id}
32
+ className={[
33
+ baseClassName,
34
+ componentClassName,
35
+ userClassName,
36
+ `x-${backgroundColor}`,
37
+ ]
38
+ .filter((e) => e)
39
+ .join(' ')}
40
+ style={style}
41
+ // {...otherProps}
42
+ >
43
+ <span className={`x-${color} c-x icon`}>
44
+ {icon}
45
+ </span>
46
+ {children}
47
+ </Wrapper>
48
+ )
55
49
 
56
50
  Tip.propTypes = {
57
51
  /**
@@ -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,41 +24,35 @@ const ToggleSwitch = ({
24
24
  checked,
25
25
  size,
26
26
  // ...otherProps
27
- }) => {
28
- useInsertionEffect(() => {
29
- import('./styles.scss')
30
- }, [])
31
-
32
- return (
33
- <button
34
- id={id}
35
- className={[
36
-
37
- baseClassName,
38
-
39
- componentClassName,
40
- userClassName,
41
- ]
42
- .filter((e) => e)
43
- .join(' ')}
44
- style={{
45
- '--size':size,
46
- ...style,
47
- }}
48
- type="button"
49
- // {...otherProps}
50
- >
51
- <input
52
- type="checkbox"
53
- id="switch"
54
- checked={checked}
55
- onChange={handleOnChange}
56
- />
57
- {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}
58
- <label htmlFor="switch" />
59
- </button>
60
- )
61
- }
27
+ }) => (
28
+ <button
29
+ id={id}
30
+ className={[
31
+
32
+ baseClassName,
33
+
34
+ componentClassName,
35
+ userClassName,
36
+ ]
37
+ .filter((e) => e)
38
+ .join(' ')}
39
+ style={{
40
+ '--size':size,
41
+ ...style,
42
+ }}
43
+ type="button"
44
+ // {...otherProps}
45
+ >
46
+ <input
47
+ type="checkbox"
48
+ id="switch"
49
+ checked={checked}
50
+ onChange={handleOnChange}
51
+ />
52
+ {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}
53
+ <label htmlFor="switch" />
54
+ </button>
55
+ )
62
56
 
63
57
  ToggleSwitch.propTypes = {
64
58
  /**
@@ -1,6 +1,5 @@
1
1
  /* @pareto-engineering/generator-front 0.2.4 */
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
@@ -29,10 +28,6 @@ const Button = ({
29
28
  arrowDirection,
30
29
  ...otherProps
31
30
  }) => {
32
- useInsertionEffect(() => {
33
- import('./styles.scss')
34
- }, [])
35
-
36
31
  const buttonText = isSimple ? <span className={styleNames.modifierUnderlined}>{children}</span>
37
32
  : children
38
33
 
@@ -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
@@ -19,28 +19,22 @@ const Group = ({
19
19
  style,
20
20
  children,
21
21
  ...otherProps
22
- }) => {
23
- useInsertionEffect(() => {
24
- import('./styles.scss')
25
- }, [])
26
-
27
- return (
28
- <div
29
- id={id}
30
- className={[
31
- baseClassName,
32
- componentClassName,
33
- userClassName,
34
- ]
35
- .filter((e) => e)
36
- .join(' ')}
37
- style={style}
38
- {...otherProps}
39
- >
40
- {children}
41
- </div>
42
- )
43
- }
22
+ }) => (
23
+ <div
24
+ id={id}
25
+ className={[
26
+ baseClassName,
27
+ componentClassName,
28
+ userClassName,
29
+ ]
30
+ .filter((e) => e)
31
+ .join(' ')}
32
+ style={style}
33
+ {...otherProps}
34
+ >
35
+ {children}
36
+ </div>
37
+ )
44
38
 
45
39
  Group.propTypes = {
46
40
  /**
@@ -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
  /**