@pareto-engineering/design-system 4.0.0-alpha.59 → 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 (208) hide show
  1. package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +6 -7
  2. package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +9 -9
  3. package/dist/cjs/a/AppContext/Context.js +3 -4
  4. package/dist/cjs/a/AppContext/ContextProvider.js +6 -6
  5. package/dist/cjs/a/AppContext/useTheme.js +2 -3
  6. package/dist/cjs/a/BlurOverlay/BlurOverlay.js +6 -7
  7. package/dist/cjs/a/ContentTree/ContentTree.js +8 -7
  8. package/dist/cjs/a/ContentTree/common/Tree/Tree.js +8 -8
  9. package/dist/cjs/a/ContentTree/common/useContentTree.js +1 -2
  10. package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +1 -2
  11. package/dist/cjs/a/Conversation/Context.js +3 -4
  12. package/dist/cjs/a/Conversation/Conversation.js +8 -7
  13. package/dist/cjs/a/Conversation/common/Message/Message.js +3 -4
  14. package/dist/cjs/a/DotInfo/DotInfo.js +6 -7
  15. package/dist/cjs/a/Figure/Figure.js +6 -7
  16. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +5 -8
  17. package/dist/cjs/a/IconList/IconList.js +5 -8
  18. package/dist/cjs/a/IconList/common/Item/Item.js +3 -4
  19. package/dist/cjs/a/Label/Label.js +5 -8
  20. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +6 -7
  21. package/dist/cjs/a/MetaCard/MetaCard.js +6 -7
  22. package/dist/cjs/a/People/People.js +8 -7
  23. package/dist/cjs/a/People/common/Person/Person.js +3 -4
  24. package/dist/cjs/a/Popover/Popover.js +11 -9
  25. package/dist/cjs/a/ProgressBar/ProgressBar.js +6 -7
  26. package/dist/cjs/a/Quote/Quote.js +6 -7
  27. package/dist/cjs/a/Removable/Removable.js +6 -7
  28. package/dist/cjs/a/SVG/SVG.js +8 -10
  29. package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +3 -4
  30. package/dist/cjs/a/SnapScroller/SnapScroller.js +12 -12
  31. package/dist/cjs/a/Spinner/Spinner.js +6 -7
  32. package/dist/cjs/a/TextSteps/TextSteps.js +4 -7
  33. package/dist/cjs/a/Timestamp/Timestamp.js +12 -12
  34. package/dist/cjs/a/Tip/Tip.js +6 -7
  35. package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +10 -11
  36. package/dist/cjs/b/Button/Button.js +4 -8
  37. package/dist/cjs/b/Button/common/Group/Group.js +5 -8
  38. package/dist/cjs/b/Card/Card.js +6 -7
  39. package/dist/cjs/b/Card/common/Group/Group.js +5 -8
  40. package/dist/cjs/b/Card/common/Section/Section.js +3 -4
  41. package/dist/cjs/b/Logo/Logo.js +9 -9
  42. package/dist/cjs/b/Page/Context.js +3 -4
  43. package/dist/cjs/b/Page/Page.js +8 -11
  44. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +6 -6
  45. package/dist/cjs/b/Page/common/Section/Section.js +3 -4
  46. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +5 -8
  47. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +10 -10
  48. package/dist/cjs/b/Title/Title.js +4 -10
  49. package/dist/cjs/c/ContentSlides/ContentSlides.js +10 -10
  50. package/dist/cjs/c/ContentSlides/Context.js +3 -4
  51. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +3 -4
  52. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +3 -4
  53. package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +3 -4
  54. package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +3 -4
  55. package/dist/cjs/c/Modal/Modal.js +6 -7
  56. package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +3 -4
  57. package/dist/cjs/c/Shortener/Shortener.js +11 -9
  58. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +6 -7
  59. package/dist/cjs/f/FormInput/FormInput.js +7 -9
  60. package/dist/cjs/f/common/Debugger/Debugger.js +10 -10
  61. package/dist/cjs/f/common/Description/Description.js +6 -7
  62. package/dist/cjs/f/common/InputWrapper/InputWrapper.js +6 -7
  63. package/dist/cjs/f/common/Label/Label.js +6 -7
  64. package/dist/cjs/f/common/index.js +19 -1
  65. package/dist/cjs/f/common/utils/index.js +12 -0
  66. package/dist/cjs/f/common/utils/lookUpInputValueFromFetchedOptions.js +29 -0
  67. package/dist/cjs/f/fields/Checkbox/Checkbox.js +5 -8
  68. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +7 -9
  69. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +3 -4
  70. package/dist/cjs/f/fields/EditorInput/EditorInput.js +11 -8
  71. package/dist/cjs/f/fields/EditorInput/common/Toolbar.js +17 -17
  72. package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +1 -2
  73. package/dist/cjs/f/fields/LinkInput/LinkInput.js +7 -9
  74. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +8 -8
  75. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +27 -14
  76. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +29 -11
  77. package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +3 -4
  78. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +30 -12
  79. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +8 -8
  80. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +11 -9
  81. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +3 -4
  82. package/dist/cjs/f/fields/SelectInput/SelectInput.js +7 -9
  83. package/dist/cjs/f/fields/TextInput/TextInput.js +7 -9
  84. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +7 -9
  85. package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +3 -4
  86. package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +6 -6
  87. package/dist/cjs/test/QueryLoader/QueryLoader.js +7 -7
  88. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +3 -4
  89. package/dist/cjs/utils/hooks/useDynamicPosition.js +1 -2
  90. package/dist/cjs/utils/hooks/useWindowSize.js +1 -2
  91. package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +18 -23
  92. package/dist/es/a/AnimatedGradient/AnimatedGradient.js +2 -4
  93. package/dist/es/a/BlurOverlay/BlurOverlay.js +6 -11
  94. package/dist/es/a/ContentTree/ContentTree.js +1 -4
  95. package/dist/es/a/Conversation/Conversation.js +11 -16
  96. package/dist/es/a/DotInfo/DotInfo.js +9 -14
  97. package/dist/es/a/Figure/Figure.js +10 -15
  98. package/dist/es/a/HamburgerButton/HamburgerButton.js +13 -18
  99. package/dist/es/a/IconList/IconList.js +10 -15
  100. package/dist/es/a/Label/Label.js +6 -11
  101. package/dist/es/a/LoadingCircle/LoadingCircle.js +32 -37
  102. package/dist/es/a/MetaCard/MetaCard.js +6 -11
  103. package/dist/es/a/People/People.js +11 -16
  104. package/dist/es/a/Popover/Popover.js +2 -4
  105. package/dist/es/a/ProgressBar/ProgressBar.js +12 -17
  106. package/dist/es/a/Quote/Quote.js +14 -19
  107. package/dist/es/a/Removable/Removable.js +13 -18
  108. package/dist/es/a/SVG/SVG.js +2 -4
  109. package/dist/es/a/SnapScroller/SnapScroller.js +2 -4
  110. package/dist/es/a/Spinner/Spinner.js +9 -14
  111. package/dist/es/a/TextSteps/TextSteps.js +12 -17
  112. package/dist/es/a/Timestamp/Timestamp.js +3 -5
  113. package/dist/es/a/Tip/Tip.js +9 -14
  114. package/dist/es/a/ToggleSwitch/ToggleSwitch.js +20 -25
  115. package/dist/es/b/Button/Button.js +0 -4
  116. package/dist/es/b/Button/common/Group/Group.js +6 -11
  117. package/dist/es/b/Card/Card.js +11 -16
  118. package/dist/es/b/Card/common/Group/Group.js +1 -4
  119. package/dist/es/b/Logo/Logo.js +2 -4
  120. package/dist/es/b/Page/Page.js +2 -6
  121. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +1 -4
  122. package/dist/es/b/ThemeSelector/ThemeSelector.js +3 -5
  123. package/dist/es/b/Title/Title.js +11 -20
  124. package/dist/es/c/ContentSlides/ContentSlides.js +1 -3
  125. package/dist/es/c/Modal/Modal.js +13 -18
  126. package/dist/es/c/Shortener/Shortener.js +2 -4
  127. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -4
  128. package/dist/es/f/FormInput/FormInput.js +2 -4
  129. package/dist/es/f/common/Debugger/Debugger.js +2 -4
  130. package/dist/es/f/common/Description/Description.js +1 -4
  131. package/dist/es/f/common/InputWrapper/InputWrapper.js +10 -15
  132. package/dist/es/f/common/Label/Label.js +12 -17
  133. package/dist/es/f/common/index.js +2 -1
  134. package/dist/es/f/common/utils/index.js +1 -0
  135. package/dist/es/f/common/utils/lookUpInputValueFromFetchedOptions.js +20 -0
  136. package/dist/es/f/fields/Checkbox/Checkbox.js +1 -4
  137. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +30 -34
  138. package/dist/es/f/fields/EditorInput/EditorInput.js +2 -4
  139. package/dist/es/f/fields/LinkInput/LinkInput.js +2 -4
  140. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +17 -8
  141. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +22 -4
  142. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +22 -4
  143. package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -4
  144. package/dist/es/f/fields/SelectInput/SelectInput.js +2 -4
  145. package/dist/es/f/fields/TextInput/TextInput.js +2 -4
  146. package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -4
  147. package/package.json +4 -3
  148. package/src/stories/f/QueryCombobox.stories.jsx +18 -0
  149. package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +25 -31
  150. package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +2 -5
  151. package/src/ui/a/BlurOverlay/BlurOverlay.jsx +18 -24
  152. package/src/ui/a/ContentTree/ContentTree.jsx +2 -6
  153. package/src/ui/a/Conversation/Conversation.jsx +26 -32
  154. package/src/ui/a/DotInfo/DotInfo.jsx +23 -29
  155. package/src/ui/a/Figure/Figure.jsx +21 -27
  156. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +27 -33
  157. package/src/ui/a/IconList/IconList.jsx +22 -28
  158. package/src/ui/a/Label/Label.jsx +21 -27
  159. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +43 -49
  160. package/src/ui/a/MetaCard/MetaCard.jsx +19 -25
  161. package/src/ui/a/People/People.jsx +25 -31
  162. package/src/ui/a/Popover/Popover.jsx +3 -5
  163. package/src/ui/a/ProgressBar/ProgressBar.jsx +25 -31
  164. package/src/ui/a/Quote/Quote.jsx +26 -32
  165. package/src/ui/a/Removable/Removable.jsx +22 -29
  166. package/src/ui/a/SVG/SVG.jsx +3 -5
  167. package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -4
  168. package/src/ui/a/Spinner/Spinner.jsx +19 -25
  169. package/src/ui/a/TextSteps/TextSteps.jsx +27 -34
  170. package/src/ui/a/Timestamp/Timestamp.jsx +5 -7
  171. package/src/ui/a/Tip/Tip.jsx +22 -28
  172. package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +33 -35
  173. package/src/ui/b/Button/Button.jsx +0 -5
  174. package/src/ui/b/Button/common/Group/Group.jsx +18 -24
  175. package/src/ui/b/Card/Card.jsx +25 -31
  176. package/src/ui/b/Card/common/Group/Group.jsx +2 -5
  177. package/src/ui/b/Logo/Logo.jsx +3 -5
  178. package/src/ui/b/Page/Page.jsx +2 -7
  179. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -7
  180. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +4 -6
  181. package/src/ui/b/Title/Title.jsx +36 -46
  182. package/src/ui/c/ContentSlides/ContentSlides.jsx +2 -4
  183. package/src/ui/c/Modal/Modal.jsx +24 -30
  184. package/src/ui/c/Shortener/Shortener.jsx +3 -5
  185. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -6
  186. package/src/ui/f/FormInput/FormInput.jsx +3 -5
  187. package/src/ui/f/common/Debugger/Debugger.jsx +3 -5
  188. package/src/ui/f/common/Description/Description.jsx +2 -6
  189. package/src/ui/f/common/InputWrapper/InputWrapper.jsx +21 -27
  190. package/src/ui/f/common/Label/Label.jsx +25 -31
  191. package/src/ui/f/common/index.js +1 -0
  192. package/src/ui/f/common/utils/index.js +1 -0
  193. package/src/ui/f/common/utils/lookUpInputValueFromFetchedOptions.js +23 -0
  194. package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -6
  195. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +48 -52
  196. package/src/ui/f/fields/EditorInput/EditorInput.jsx +2 -5
  197. package/src/ui/f/fields/LinkInput/LinkInput.jsx +2 -5
  198. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +21 -11
  199. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +18 -2
  200. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +18 -1
  201. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +3 -5
  202. package/src/ui/f/fields/SelectInput/SelectInput.jsx +3 -5
  203. package/src/ui/f/fields/TextInput/TextInput.jsx +3 -5
  204. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +3 -5
  205. package/tests/__snapshots__/Storyshots.test.js.snap +269 -20
  206. package/dist/cjs/b/Title/styles.scss +0 -16
  207. package/dist/es/b/Title/styles.scss +0 -16
  208. package/src/ui/b/Title/styles.scss +0 -16
@@ -180,6 +180,17 @@ Optional.args = {
180
180
  optional:true,
181
181
  }
182
182
 
183
+ export const WithPlaceholder = ResolvedTemplate.bind({})
184
+ WithPlaceholder.args = {
185
+ placeholder:'Search for a team',
186
+ }
187
+
188
+ export const WithPromptToCreateNewOption = ResolvedTemplate.bind({})
189
+ WithPromptToCreateNewOption.args = {
190
+ placeholder :'Search for a team',
191
+ promptCreateNewOption:true,
192
+ }
193
+
183
194
  export const SingleSelect = ResolvedTemplate.bind({})
184
195
  SingleSelect.args = {
185
196
  multiple:false,
@@ -202,6 +213,13 @@ MultipleSelect.args = {
202
213
  defaultFormikState:{ teams: [] },
203
214
  }
204
215
 
216
+ export const MultipleSelectWithPromptForNewOptions = ResolvedTemplate.bind({})
217
+ MultipleSelectWithPromptForNewOptions.args = {
218
+ multiple :true,
219
+ promptCreateNewOption:true,
220
+ defaultFormikState :{ teams: [] },
221
+ }
222
+
205
223
  export const MultipleSelectWithDefaultFormikState = ResolvedTemplate.bind({})
206
224
  MultipleSelectWithDefaultFormikState.args = {
207
225
  multiple :true,
@@ -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,35 +25,29 @@ const AnimatedBlobs = ({
25
25
  width,
26
26
  opacity,
27
27
  // ...otherProps
28
- }) => {
29
- useInsertionEffect(() => {
30
- import('./styles.scss')
31
- }, [])
32
-
33
- return (
34
- <div
35
- id={id}
36
- className={[
37
- baseClassName,
38
- componentClassName,
39
- userClassName,
40
- ]
41
- .filter((e) => e)
42
- .join(' ')}
43
- style={{
44
- ...style,
45
- '--blob-color':`var(--${color})`,
46
- '--height' :height,
47
- '--opacity' :opacity,
48
- '--width' :width,
49
- }}
50
- >
51
- <div className="shape-blob" />
52
- <div className="shape-blob one" />
53
- <div className="shape-blob two" />
54
- </div>
55
- )
56
- }
28
+ }) => (
29
+ <div
30
+ id={id}
31
+ className={[
32
+ baseClassName,
33
+ componentClassName,
34
+ userClassName,
35
+ ]
36
+ .filter((e) => e)
37
+ .join(' ')}
38
+ style={{
39
+ ...style,
40
+ '--blob-color':`var(--${color})`,
41
+ '--height' :height,
42
+ '--opacity' :opacity,
43
+ '--width' :width,
44
+ }}
45
+ >
46
+ <div className="shape-blob" />
47
+ <div className="shape-blob one" />
48
+ <div className="shape-blob two" />
49
+ </div>
50
+ )
57
51
 
58
52
  AnimatedBlobs.propTypes = {
59
53
  /**
@@ -3,7 +3,6 @@ import * as React from 'react'
3
3
 
4
4
  import {
5
5
  useEffect,
6
- useInsertionEffect,
7
6
  } from 'react'
8
7
 
9
8
  import PropTypes from 'prop-types'
@@ -14,6 +13,8 @@ import { useApp } from 'ui/a'
14
13
 
15
14
  import { Gradient } from './webGIRenderer'
16
15
 
16
+ import './styles.scss'
17
+
17
18
  // Local Definitions
18
19
 
19
20
  const baseClassName = styleNames.base
@@ -27,10 +28,6 @@ const AnimatedGradient = ({
27
28
  className: userClassName,
28
29
  // ...otherProps
29
30
  }) => {
30
- useInsertionEffect(() => {
31
- import('./styles.scss')
32
- }, [])
33
-
34
31
  const { userTheme } = useApp()
35
32
 
36
33
  const isClient = typeof window !== 'undefined'
@@ -1,12 +1,12 @@
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'
9
7
 
8
+ import './styles.scss'
9
+
10
10
  const baseClassName = styleNames.base
11
11
 
12
12
  const componentClassName = 'blur-overlay'
@@ -17,28 +17,22 @@ const BlurOverlay = ({
17
17
  style,
18
18
  children,
19
19
  blur,
20
- }) => {
21
- useInsertionEffect(() => {
22
- import('./styles.scss')
23
- }, [])
24
-
25
- return (
26
- <div
27
- id={id}
28
- className={[
29
- baseClassName,
30
- componentClassName,
31
- userClassName,
32
- blur && styleNames.modifierActive,
33
- ]
34
- .filter((e) => e)
35
- .join(' ')}
36
- style={style}
37
- >
38
- { children }
39
- </div>
40
- )
41
- }
20
+ }) => (
21
+ <div
22
+ id={id}
23
+ className={[
24
+ baseClassName,
25
+ componentClassName,
26
+ userClassName,
27
+ blur && styleNames.modifierActive,
28
+ ]
29
+ .filter((e) => e)
30
+ .join(' ')}
31
+ style={style}
32
+ >
33
+ { children }
34
+ </div>
35
+ )
42
36
 
43
37
  BlurOverlay.propTypes = {
44
38
  /**
@@ -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
  import { Tree, useContentTree } from './common'
12
12
 
@@ -26,10 +26,6 @@ const ContentTree = ({
26
26
  color,
27
27
  // ...otherProps
28
28
  }) => {
29
- useInsertionEffect(() => {
30
- import('./styles.scss')
31
- }, [])
32
-
33
29
  const contentTree = useContentTree(target, selectors)
34
30
 
35
31
  return (
@@ -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 { Card } from 'ui'
11
9
 
10
+ import './styles.scss'
11
+
12
12
  // Local Definitions
13
13
 
14
14
  import { Message } from './common'
@@ -31,37 +31,31 @@ const Conversation = ({
31
31
  children,
32
32
  backgroundColor,
33
33
  // ...otherProps
34
- }) => {
35
- useInsertionEffect(() => {
36
- import('./styles.scss')
37
- }, [])
38
-
39
- return (
40
- <ConversationContext.Provider
41
- value={{
42
- ourColor,
43
- theirColor,
44
- }}
34
+ }) => (
35
+ <ConversationContext.Provider
36
+ value={{
37
+ ourColor,
38
+ theirColor,
39
+ }}
40
+ >
41
+ <Card
42
+ id={id}
43
+ className={[
44
+ baseClassName,
45
+ componentClassName,
46
+ userClassName,
47
+ `y-${backgroundColor}`,
48
+ ]
49
+ .filter((e) => e)
50
+ .join(' ')}
51
+ style={style}
45
52
  >
46
- <Card
47
- id={id}
48
- className={[
49
- baseClassName,
50
- componentClassName,
51
- userClassName,
52
- `y-${backgroundColor}`,
53
- ]
54
- .filter((e) => e)
55
- .join(' ')}
56
- style={style}
57
- >
58
- <Card.Section>
59
- {children}
60
- </Card.Section>
61
- </Card>
62
- </ConversationContext.Provider>
63
- )
64
- }
53
+ <Card.Section>
54
+ {children}
55
+ </Card.Section>
56
+ </Card>
57
+ </ConversationContext.Provider>
58
+ )
65
59
 
66
60
  Conversation.propTypes = {
67
61
  /**
@@ -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,33 +26,27 @@ const DotInfo = ({
26
26
  colorFalse,
27
27
  colorEmpty,
28
28
  // ...otherProps
29
- }) => {
30
- useInsertionEffect(() => {
31
- import('./styles.scss')
32
- }, [])
33
-
34
- return (
35
- <div
36
- id={id}
37
- className={[
38
-
39
- baseClassName,
40
- booleanValue === false && `x-${colorFalse}`,
41
- booleanValue === true && `x-${colorTrue}`,
42
- [null, undefined].includes(booleanValue) && `empty x-${colorEmpty}`,
43
-
44
- componentClassName,
45
- userClassName,
46
- ]
47
- .filter((e) => e)
48
- .join(' ')}
49
- style={{
50
- '--height':height,
51
- ...style,
52
- }}
53
- />
54
- )
55
- }
29
+ }) => (
30
+ <div
31
+ id={id}
32
+ className={[
33
+
34
+ baseClassName,
35
+ booleanValue === false && `x-${colorFalse}`,
36
+ booleanValue === true && `x-${colorTrue}`,
37
+ [null, undefined].includes(booleanValue) && `empty x-${colorEmpty}`,
38
+
39
+ componentClassName,
40
+ userClassName,
41
+ ]
42
+ .filter((e) => e)
43
+ .join(' ')}
44
+ style={{
45
+ '--height':height,
46
+ ...style,
47
+ }}
48
+ />
49
+ )
56
50
 
57
51
  DotInfo.propTypes = {
58
52
  /**
@@ -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
@@ -23,31 +23,25 @@ const Figure = ({
23
23
  src,
24
24
  alt,
25
25
  caption,
26
- }) => {
27
- useInsertionEffect(() => {
28
- import('./styles.scss')
29
- }, [])
30
-
31
- return (
32
- <div
33
- id={id}
34
- className={[
35
- baseClassName,
36
- componentClassName,
37
- userClassName,
38
- ]
39
- .filter((e) => e)
40
- .join(' ')}
41
- style={style}
42
- // {...otherProps}
43
- >
44
- <figure>
45
- <img src={src} alt={alt} />
46
- <figcaption>{caption || alt}</figcaption>
47
- </figure>
48
- </div>
49
- )
50
- }
26
+ }) => (
27
+ <div
28
+ id={id}
29
+ className={[
30
+ baseClassName,
31
+ componentClassName,
32
+ userClassName,
33
+ ]
34
+ .filter((e) => e)
35
+ .join(' ')}
36
+ style={style}
37
+ // {...otherProps}
38
+ >
39
+ <figure>
40
+ <img src={src} alt={alt} />
41
+ <figcaption>{caption || alt}</figcaption>
42
+ </figure>
43
+ </div>
44
+ )
51
45
 
52
46
  Figure.propTypes = {
53
47
  /**
@@ -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,37 +26,31 @@ const HamburgerButton = ({
26
26
  ariaLabel,
27
27
  color,
28
28
  ...otherProps
29
- }) => {
30
- useInsertionEffect(() => {
31
- import('./styles.scss')
32
- }, [])
33
-
34
- return (
35
- <button
36
- id={id}
37
- className={[
38
- baseClassName,
39
- componentClassName,
40
- userClassName,
41
- `x-${color}`,
42
- 'hamburger',
43
- `hamburger--${hamburgerType}`,
44
- isOpen && 'is-active',
45
- ]
46
- .filter((e) => e)
47
- .join(' ')}
48
- style={style}
49
- type="button"
50
- aria-label={ariaLabel}
51
- aria-controls="navigation"
52
- {...otherProps}
53
- >
54
- <span className="hamburger-box">
55
- <span className="hamburger-inner" />
56
- </span>
57
- </button>
58
- )
59
- }
29
+ }) => (
30
+ <button
31
+ id={id}
32
+ className={[
33
+ baseClassName,
34
+ componentClassName,
35
+ userClassName,
36
+ `x-${color}`,
37
+ 'hamburger',
38
+ `hamburger--${hamburgerType}`,
39
+ isOpen && 'is-active',
40
+ ]
41
+ .filter((e) => e)
42
+ .join(' ')}
43
+ style={style}
44
+ type="button"
45
+ aria-label={ariaLabel}
46
+ aria-controls="navigation"
47
+ {...otherProps}
48
+ >
49
+ <span className="hamburger-box">
50
+ <span className="hamburger-inner" />
51
+ </span>
52
+ </button>
53
+ )
60
54
 
61
55
  HamburgerButton.propTypes = {
62
56
  /**
@@ -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 { Item } from './common'
11
9
 
10
+ import './styles.scss'
11
+
12
12
  // Local Definitions
13
13
 
14
14
  const baseClassName = styleNames.base
@@ -27,32 +27,26 @@ const IconList = ({
27
27
  icon,
28
28
  iconHover,
29
29
  ...otherProps
30
- }) => {
31
- useInsertionEffect(() => {
32
- import('./styles.scss')
33
- }, [])
34
-
35
- return (
36
- <ul
37
- id={id}
38
- className={[
39
- baseClassName,
40
- componentClassName,
41
- userClassName,
42
- ]
43
- .filter((e) => e)
44
- .join(' ')}
45
- style={{
46
- ...style,
47
- '--list-icon' :icon && `"${icon}"`,
48
- '--list-icon-hover':iconHover && `"${iconHover}"`,
49
- }}
50
- {...otherProps}
51
- >
52
- {children}
53
- </ul>
54
- )
55
- }
30
+ }) => (
31
+ <ul
32
+ id={id}
33
+ className={[
34
+ baseClassName,
35
+ componentClassName,
36
+ userClassName,
37
+ ]
38
+ .filter((e) => e)
39
+ .join(' ')}
40
+ style={{
41
+ ...style,
42
+ '--list-icon' :icon && `"${icon}"`,
43
+ '--list-icon-hover':iconHover && `"${iconHover}"`,
44
+ }}
45
+ {...otherProps}
46
+ >
47
+ {children}
48
+ </ul>
49
+ )
56
50
 
57
51
  IconList.propTypes = {
58
52
  /**
@@ -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,31 +26,25 @@ const Label = ({
26
26
  isGhost,
27
27
  as:Wrapper,
28
28
  ...props
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-${color}`,
42
- isCompact && styleNames.modifierCompact,
43
- isGhost && styleNames.modifierGhost,
44
- ]
45
- .filter((e) => e)
46
- .join(' ')}
47
- style={style}
48
- {...props}
49
- >
50
- {children}
51
- </Wrapper>
52
- )
53
- }
29
+ }) => (
30
+ <Wrapper
31
+ id={id}
32
+ className={[
33
+ baseClassName,
34
+ componentClassName,
35
+ userClassName,
36
+ `x-${color}`,
37
+ isCompact && styleNames.modifierCompact,
38
+ isGhost && styleNames.modifierGhost,
39
+ ]
40
+ .filter((e) => e)
41
+ .join(' ')}
42
+ style={style}
43
+ {...props}
44
+ >
45
+ {children}
46
+ </Wrapper>
47
+ )
54
48
 
55
49
  Label.propTypes = {
56
50
  /**