@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,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
@@ -28,35 +28,29 @@ const Label = ({
28
28
  columnSpan,
29
29
  desktopColumnSpan,
30
30
  // ...otherProps
31
- }) => {
32
- useInsertionEffect(() => {
33
- import('./styles.scss')
34
- }, [])
35
-
36
- return (
37
- <Wrapper
38
- htmlFor={Wrapper === 'label' ? name : undefined}
39
- id={id}
40
- className={[
41
- baseClassName,
42
- componentClassName,
43
- userClassName,
44
- `x-${color}`,
45
- ]
46
- .filter((e) => e)
47
- .join(' ')}
48
- style={{
49
- ...style,
50
- '--column-span' :columnSpan || 'var(--columns)',
51
- '--column-span-md':desktopColumnSpan || 'var(--columns)',
52
- }}
53
- // {...otherProps}
54
- >
55
- {children}
56
- {optional && ' (Optional)'}
57
- </Wrapper>
58
- )
59
- }
31
+ }) => (
32
+ <Wrapper
33
+ htmlFor={Wrapper === 'label' ? name : undefined}
34
+ id={id}
35
+ className={[
36
+ baseClassName,
37
+ componentClassName,
38
+ userClassName,
39
+ `x-${color}`,
40
+ ]
41
+ .filter((e) => e)
42
+ .join(' ')}
43
+ style={{
44
+ ...style,
45
+ '--column-span' :columnSpan || 'var(--columns)',
46
+ '--column-span-md':desktopColumnSpan || 'var(--columns)',
47
+ }}
48
+ // {...otherProps}
49
+ >
50
+ {children}
51
+ {optional && ' (Optional)'}
52
+ </Wrapper>
53
+ )
60
54
 
61
55
  Label.propTypes = {
62
56
  /**
@@ -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 { useField } from 'formik'
11
9
 
12
10
  import { FormLabel, FormDescription, InputWrapper } from '../../common'
13
11
 
12
+ import './styles.scss'
13
+
14
14
  // Local Definitions
15
15
 
16
16
  const baseClassName = styleNames.base
@@ -36,10 +36,6 @@ const Checkbox = ({
36
36
  desktopInputSpan,
37
37
  // ...otherProps
38
38
  }) => {
39
- useInsertionEffect(() => {
40
- import('./styles.scss')
41
- }, [])
42
-
43
39
  const [field] = useField({ name, type: 'checkbox' })
44
40
 
45
41
  return (
@@ -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, memo } from 'react'
4
+ import { memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -13,6 +13,8 @@ import { Choice } from './common'
13
13
 
14
14
  import { FormDescription, FormLabel, InputWrapper } from '../../common'
15
15
 
16
+ import './styles.scss'
17
+
16
18
  const baseClassName = styleNames.base
17
19
 
18
20
  const componentClassName = 'choices-input'
@@ -40,58 +42,52 @@ const ChoicesInput = ({
40
42
  inputSpan,
41
43
  desktopInputSpan,
42
44
  ...otherProps
43
- }) => {
44
- useInsertionEffect(() => {
45
- import('./styles.scss')
46
- }, [])
47
-
48
- return (
49
- <>
50
- {label && (
51
- <FormLabel
52
- name={name}
53
- color={labelColor}
54
- optional={optional}
55
- columnSpan={labelSpan}
56
- desktopColumnSpan={desktopLabelSpan}
57
- // {...otherProps}
58
- >
59
- {label}
60
- </FormLabel>
61
- )}
62
- <InputWrapper
63
- id={id}
64
- className={[
65
- baseClassName,
66
- componentClassName,
67
- userClassName,
68
- ]
69
- .filter((e) => e)
70
- .join(' ')}
71
- style={style}
72
- columnSpan={inputSpan}
73
- desktopColumnSpan={desktopInputSpan}
45
+ }) => (
46
+ <>
47
+ {label && (
48
+ <FormLabel
49
+ name={name}
50
+ color={labelColor}
51
+ optional={optional}
52
+ columnSpan={labelSpan}
53
+ desktopColumnSpan={desktopLabelSpan}
54
+ // {...otherProps}
74
55
  >
75
- <div className={['choices', spaceBetween && 'space-between'].filter(Boolean).join(' ')}>
76
- { options.map((choice) => (
77
- <Choice
78
- className={`x-${color}`}
79
- key={choice.value}
80
- name={name}
81
- id={`${name}-${choice.value}`}
82
- multiple={multiple}
83
- validate={validate}
84
- disabled={disabled}
85
- {...otherProps}
86
- {...choice}
87
- />
88
- ))}
89
- </div>
90
- <FormDescription className="s-1" description={description} name={name} />
91
- </InputWrapper>
92
- </>
93
- )
94
- }
56
+ {label}
57
+ </FormLabel>
58
+ )}
59
+ <InputWrapper
60
+ id={id}
61
+ className={[
62
+ baseClassName,
63
+ componentClassName,
64
+ userClassName,
65
+ ]
66
+ .filter((e) => e)
67
+ .join(' ')}
68
+ style={style}
69
+ columnSpan={inputSpan}
70
+ desktopColumnSpan={desktopInputSpan}
71
+ >
72
+ <div className={['choices', spaceBetween && 'space-between'].filter(Boolean).join(' ')}>
73
+ { options.map((choice) => (
74
+ <Choice
75
+ className={`x-${color}`}
76
+ key={choice.value}
77
+ name={name}
78
+ id={`${name}-${choice.value}`}
79
+ multiple={multiple}
80
+ validate={validate}
81
+ disabled={disabled}
82
+ {...otherProps}
83
+ {...choice}
84
+ />
85
+ ))}
86
+ </div>
87
+ <FormDescription className="s-1" description={description} name={name} />
88
+ </InputWrapper>
89
+ </>
90
+ )
95
91
 
96
92
  ChoicesInput.propTypes = {
97
93
  /**
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  /* eslint-disable import/no-extraneous-dependencies -- required here */
3
3
  import * as React from 'react'
4
- import { useInsertionEffect, memo } from 'react'
4
+ import { memo } from 'react'
5
5
  import { useFormikContext } from 'formik'
6
6
  import { LexicalComposer } from '@lexical/react/LexicalComposer'
7
7
  import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin'
@@ -16,6 +16,7 @@ import { ListItemNode, ListNode } from '@lexical/list'
16
16
 
17
17
  import PropTypes from 'prop-types'
18
18
  import styleNames from '@pareto-engineering/bem/exports'
19
+ import './styles.scss'
19
20
 
20
21
  // Local Definitions
21
22
 
@@ -49,10 +50,6 @@ const EditorInput = ({
49
50
  showDebugger,
50
51
  // ...otherProps
51
52
  }) => {
52
- useInsertionEffect(() => {
53
- import('./styles.scss')
54
- }, [])
55
-
56
53
  const formik = useFormikContext()
57
54
 
58
55
  const setInitialValue = () => {
@@ -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, memo } from 'react'
4
+ import { memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -10,6 +10,7 @@ import styleNames from '@pareto-engineering/bem/exports'
10
10
  import { useField } from 'formik'
11
11
 
12
12
  import { FormLabel, FormDescription, InputWrapper } from '../../common'
13
+ import './styles.scss'
13
14
 
14
15
  // Local Definitions
15
16
 
@@ -40,10 +41,6 @@ const LinkInput = ({
40
41
  desktopInputSpan,
41
42
  // ...otherProps
42
43
  }) => {
43
- useInsertionEffect(() => {
44
- import('./styles.scss')
45
- }, [])
46
-
47
44
  const [field] = useField({ name, validate })
48
45
 
49
46
  return (
@@ -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, useInsertionEffect } from 'react'
4
+ import { useState } from 'react'
5
5
 
6
6
  import { useField } from 'formik'
7
7
 
@@ -9,6 +9,8 @@ import { useRelayEnvironment, fetchQuery } from 'react-relay'
9
9
 
10
10
  import PropTypes from 'prop-types'
11
11
 
12
+ import './styles.scss'
13
+
12
14
  // Local Definitions
13
15
 
14
16
  import { Combobox, MultipleCombobox } from './common'
@@ -44,10 +46,6 @@ const QueryCombobox = ({
44
46
  promptCreateNewOption,
45
47
  // ...otherProps
46
48
  }) => {
47
- useInsertionEffect(() => {
48
- import('./styles.scss')
49
- }, [])
50
-
51
49
  const [, meta, helpers] = useField({ name, validate })
52
50
 
53
51
  const { setValue, setError } = helpers
@@ -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, useInsertionEffect, memo } from 'react'
4
+ import { useState, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -12,6 +12,8 @@ import styleNames from '@pareto-engineering/bem/exports'
12
12
  import { Rating } from './common'
13
13
  import { FormLabel, InputWrapper } from '../../common'
14
14
 
15
+ import './styles.scss'
16
+
15
17
  const baseClassName = styleNames.base
16
18
 
17
19
  const componentClassName = 'ratings-input'
@@ -39,10 +41,6 @@ const RatingsInput = ({
39
41
  desktopInputSpan,
40
42
  // ...otherProps
41
43
  }) => {
42
- useInsertionEffect(() => {
43
- import('./styles.scss')
44
- }, [])
45
-
46
44
  const [hover, setHover] = useState(null)
47
45
 
48
46
  return (
@@ -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, memo } from 'react'
4
+ import { memo } from 'react'
5
5
 
6
6
  import { useField } from 'formik'
7
7
 
@@ -13,6 +13,8 @@ import { LoadingCircle } from 'ui/a'
13
13
 
14
14
  import { FormLabel, FormDescription, InputWrapper } from '../../common'
15
15
 
16
+ import './styles.scss'
17
+
16
18
  // Local Definitions
17
19
 
18
20
  const baseClassName = styleNames.base
@@ -43,10 +45,6 @@ const SelectInput = ({
43
45
  desktopInputSpan,
44
46
  // ...otherProps
45
47
  }) => {
46
- useInsertionEffect(() => {
47
- import('./styles.scss')
48
- }, [])
49
-
50
48
  const [field] = useField({ name, validate })
51
49
 
52
50
  return (
@@ -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, memo } from 'react'
4
+ import { memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -11,6 +11,8 @@ import { useField } from 'formik'
11
11
 
12
12
  import { FormLabel, FormDescription, InputWrapper } from '../../common'
13
13
 
14
+ import './styles.scss'
15
+
14
16
  // Local Definitions
15
17
 
16
18
  const baseClassName = styleNames.base
@@ -42,10 +44,6 @@ const TextInput = ({
42
44
  symbol,
43
45
  ...otherProps
44
46
  }) => {
45
- useInsertionEffect(() => {
46
- import('./styles.scss')
47
- }, [])
48
-
49
47
  const [field] = useField({ name, validate })
50
48
  const symbolStyle = symbol
51
49
  ? { '--symbol': symbol }
@@ -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, memo } from 'react'
4
+ import { memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -13,6 +13,8 @@ import { useField } from 'formik'
13
13
 
14
14
  import { FormLabel, FormDescription, InputWrapper } from '../../common'
15
15
 
16
+ import './styles.scss'
17
+
16
18
  const baseClassName = styleNames.base
17
19
 
18
20
  const componentClassName = 'text-area-input'
@@ -42,10 +44,6 @@ const TextareaInput = ({
42
44
  desktopInputSpan,
43
45
  // ...otherProps
44
46
  }) => {
45
- useInsertionEffect(() => {
46
- import('./styles.scss')
47
- }, [])
48
-
49
47
  const [field] = useField({ name, validate })
50
48
 
51
49
  return (
@@ -3135,7 +3135,7 @@ exports[`Storyshots a/TextSteps Base 1`] = `
3135
3135
  className="grid span-8 md-span-14"
3136
3136
  >
3137
3137
  <div
3138
- className="base steps grid"
3138
+ className="base text-steps grid"
3139
3139
  >
3140
3140
  <div
3141
3141
  className=" number h3 start-1 span-2 md-start-1 md-span-2"
@@ -1,16 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.3.1 */
2
-
3
- @use "@pareto-engineering/bem";
4
-
5
- /*
6
- .#{bem.$base}.title{
7
- .#{bem.$element-heading} {
8
-
9
- }
10
- .#{bem.$element-subtitle} {
11
-
12
- }
13
-
14
- } */
15
-
16
-
@@ -1,16 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.3.1 */
2
-
3
- @use "@pareto-engineering/bem";
4
-
5
- /*
6
- .#{bem.$base}.title{
7
- .#{bem.$element-heading} {
8
-
9
- }
10
- .#{bem.$element-subtitle} {
11
-
12
- }
13
-
14
- } */
15
-
16
-
@@ -1,16 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.3.1 */
2
-
3
- @use "@pareto-engineering/bem";
4
-
5
- /*
6
- .#{bem.$base}.title{
7
- .#{bem.$element-heading} {
8
-
9
- }
10
- .#{bem.$element-subtitle} {
11
-
12
- }
13
-
14
- } */
15
-
16
-