@pareto-engineering/design-system 4.3.5 → 4.3.7

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 (262) hide show
  1. package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +1 -1
  2. package/dist/cjs/a/AnimatedBlobs/index.js +1 -1
  3. package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +1 -1
  4. package/dist/cjs/a/AnimatedGradient/index.js +1 -1
  5. package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +1 -1
  6. package/dist/cjs/a/AppContext/ContextProvider.js +1 -1
  7. package/dist/cjs/a/AppContext/index.js +1 -1
  8. package/dist/cjs/a/AppContext/useApp.js +1 -1
  9. package/dist/cjs/a/BlurOverlay/BlurOverlay.js +1 -1
  10. package/dist/cjs/a/BlurOverlay/index.js +1 -1
  11. package/dist/cjs/a/ContentTree/ContentTree.js +1 -1
  12. package/dist/cjs/a/ContentTree/common/Tree/Tree.js +1 -1
  13. package/dist/cjs/a/ContentTree/common/Tree/index.js +1 -1
  14. package/dist/cjs/a/ContentTree/common/index.js +1 -1
  15. package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +1 -1
  16. package/dist/cjs/a/ContentTree/index.js +1 -1
  17. package/dist/cjs/a/Conversation/Conversation.js +1 -1
  18. package/dist/cjs/a/Conversation/common/Message/Message.js +1 -1
  19. package/dist/cjs/a/Conversation/common/Message/index.js +1 -1
  20. package/dist/cjs/a/Conversation/index.js +1 -1
  21. package/dist/cjs/a/Conversation/useConversation.js +1 -1
  22. package/dist/cjs/a/DatePicker/DatePicker.js +2 -2
  23. package/dist/cjs/a/DatePicker/index.js +1 -1
  24. package/dist/cjs/a/DotInfo/DotInfo.js +1 -1
  25. package/dist/cjs/a/DotInfo/index.js +1 -1
  26. package/dist/cjs/a/Figure/Figure.js +1 -1
  27. package/dist/cjs/a/Figure/index.js +1 -1
  28. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +2 -2
  29. package/dist/cjs/a/HamburgerButton/index.js +1 -1
  30. package/dist/cjs/a/IconList/IconList.js +2 -2
  31. package/dist/cjs/a/IconList/common/Item/Item.js +2 -2
  32. package/dist/cjs/a/IconList/common/Item/index.js +1 -1
  33. package/dist/cjs/a/IconList/index.js +1 -1
  34. package/dist/cjs/a/Label/Label.js +2 -2
  35. package/dist/cjs/a/Label/index.js +1 -1
  36. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
  37. package/dist/cjs/a/LoadingCircle/index.js +1 -1
  38. package/dist/cjs/a/MetaCard/MetaCard.js +1 -1
  39. package/dist/cjs/a/MetaCard/index.js +1 -1
  40. package/dist/cjs/a/Notification/Notification.js +113 -0
  41. package/dist/cjs/a/Notification/index.js +13 -0
  42. package/dist/cjs/a/Notification/styles.scss +57 -0
  43. package/dist/cjs/a/NotificationStack/NotificationStack.js +69 -0
  44. package/dist/cjs/a/NotificationStack/index.js +13 -0
  45. package/dist/cjs/a/NotificationStack/styles.scss +17 -0
  46. package/dist/cjs/a/People/People.js +1 -1
  47. package/dist/cjs/a/People/common/Person/Person.js +1 -1
  48. package/dist/cjs/a/People/common/Person/index.js +1 -1
  49. package/dist/cjs/a/People/index.js +1 -1
  50. package/dist/cjs/a/Popover/Popover.js +1 -1
  51. package/dist/cjs/a/Popover/index.js +1 -1
  52. package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
  53. package/dist/cjs/a/ProgressBar/index.js +1 -1
  54. package/dist/cjs/a/Quote/Quote.js +1 -1
  55. package/dist/cjs/a/Quote/index.js +1 -1
  56. package/dist/cjs/a/Removable/Removable.js +1 -1
  57. package/dist/cjs/a/Removable/index.js +1 -1
  58. package/dist/cjs/a/SVG/SVG.js +2 -2
  59. package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +1 -1
  60. package/dist/cjs/a/SVG/common/UseSVG/index.js +1 -1
  61. package/dist/cjs/a/SVG/index.js +1 -1
  62. package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
  63. package/dist/cjs/a/SnapScroller/index.js +1 -1
  64. package/dist/cjs/a/Spinner/Spinner.js +1 -1
  65. package/dist/cjs/a/Spinner/index.js +1 -1
  66. package/dist/cjs/a/TextSteps/TextSteps.js +1 -1
  67. package/dist/cjs/a/TextSteps/index.js +1 -1
  68. package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
  69. package/dist/cjs/a/Timestamp/index.js +1 -1
  70. package/dist/cjs/a/Tip/Tip.js +1 -1
  71. package/dist/cjs/a/Tip/index.js +1 -1
  72. package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +1 -1
  73. package/dist/cjs/a/ToggleSwitch/index.js +1 -1
  74. package/dist/cjs/a/Tooltip/Tooltip.js +1 -1
  75. package/dist/cjs/a/Tooltip/index.js +1 -1
  76. package/dist/cjs/a/XMLEditor/XMLEditor.js +1 -1
  77. package/dist/cjs/a/XMLEditor/common/index.js +1 -1
  78. package/dist/cjs/a/XMLEditor/index.js +1 -1
  79. package/dist/cjs/a/index.js +14 -0
  80. package/dist/cjs/b/Button/Button.js +2 -2
  81. package/dist/cjs/b/Button/common/Group/Group.js +2 -2
  82. package/dist/cjs/b/Button/common/Group/index.js +1 -1
  83. package/dist/cjs/b/Button/index.js +1 -1
  84. package/dist/cjs/b/Card/Card.js +1 -1
  85. package/dist/cjs/b/Card/common/Group/Group.js +2 -2
  86. package/dist/cjs/b/Card/common/Group/index.js +1 -1
  87. package/dist/cjs/b/Card/common/Section/Section.js +2 -2
  88. package/dist/cjs/b/Card/common/Section/index.js +1 -1
  89. package/dist/cjs/b/Card/index.js +1 -1
  90. package/dist/cjs/b/Logo/Logo.js +1 -1
  91. package/dist/cjs/b/Logo/index.js +1 -1
  92. package/dist/cjs/b/Page/Page.js +2 -2
  93. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +2 -2
  94. package/dist/cjs/b/Page/common/PageHelmet/index.js +1 -1
  95. package/dist/cjs/b/Page/common/Section/Section.js +2 -2
  96. package/dist/cjs/b/Page/common/Section/index.js +1 -1
  97. package/dist/cjs/b/Page/index.js +1 -1
  98. package/dist/cjs/b/Page/usePage.js +1 -1
  99. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +2 -2
  100. package/dist/cjs/b/SocialMediaButton/index.js +1 -1
  101. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
  102. package/dist/cjs/b/ThemeSelector/index.js +1 -1
  103. package/dist/cjs/b/Title/Title.js +2 -2
  104. package/dist/cjs/b/Title/index.js +1 -1
  105. package/dist/cjs/c/Modal/Modal.js +1 -1
  106. package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
  107. package/dist/cjs/c/Modal/common/ModalHeader/index.js +1 -1
  108. package/dist/cjs/c/Modal/index.js +1 -1
  109. package/dist/cjs/c/Shortener/Shortener.js +1 -1
  110. package/dist/cjs/c/Shortener/index.js +1 -1
  111. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
  112. package/dist/cjs/c/SocialMediaShareButton/index.js +1 -1
  113. package/dist/cjs/f/FormInput/FormInput.js +2 -2
  114. package/dist/cjs/f/FormInput/index.js +1 -1
  115. package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
  116. package/dist/cjs/f/common/Debugger/index.js +1 -1
  117. package/dist/cjs/f/common/Description/Description.js +1 -1
  118. package/dist/cjs/f/common/Description/index.js +1 -1
  119. package/dist/cjs/f/common/Label/Label.js +1 -1
  120. package/dist/cjs/f/common/Label/index.js +1 -1
  121. package/dist/cjs/f/common/utils/lookUpInputValueFromFetchedOptions.js +1 -1
  122. package/dist/cjs/f/fields/Checkbox/Checkbox.js +2 -2
  123. package/dist/cjs/f/fields/Checkbox/index.js +1 -1
  124. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +2 -2
  125. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +2 -2
  126. package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +1 -1
  127. package/dist/cjs/f/fields/ChoicesInput/index.js +1 -1
  128. package/dist/cjs/f/fields/EditorInput/EditorInput.js +1 -1
  129. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +1 -1
  130. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/index.js +1 -1
  131. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +1 -1
  132. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/index.js +1 -1
  133. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +1 -1
  134. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/index.js +1 -1
  135. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +1 -1
  136. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/index.js +1 -1
  137. package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +1 -1
  138. package/dist/cjs/f/fields/EditorInput/common/index.js +1 -1
  139. package/dist/cjs/f/fields/EditorInput/index.js +1 -1
  140. package/dist/cjs/f/fields/FileUpload/FileUpload.js +1 -1
  141. package/dist/cjs/f/fields/FileUpload/common/Preview/Preview.js +1 -1
  142. package/dist/cjs/f/fields/FileUpload/common/Preview/index.js +1 -1
  143. package/dist/cjs/f/fields/FileUpload/index.js +1 -1
  144. package/dist/cjs/f/fields/LinkInput/LinkInput.js +2 -2
  145. package/dist/cjs/f/fields/LinkInput/index.js +1 -1
  146. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +2 -2
  147. package/dist/cjs/f/fields/QueryChoices/index.js +1 -1
  148. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +1 -1
  149. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +2 -2
  150. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
  151. package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +2 -2
  152. package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +1 -1
  153. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +2 -2
  154. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
  155. package/dist/cjs/f/fields/QueryCombobox/index.js +1 -1
  156. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +1 -1
  157. package/dist/cjs/f/fields/QuerySelect/index.js +1 -1
  158. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +1 -1
  159. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +2 -2
  160. package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +1 -1
  161. package/dist/cjs/f/fields/RatingsInput/index.js +1 -1
  162. package/dist/cjs/f/fields/SelectInput/SelectInput.js +2 -2
  163. package/dist/cjs/f/fields/SelectInput/common/Menu/Menu.js +2 -2
  164. package/dist/cjs/f/fields/SelectInput/common/Menu/index.js +1 -1
  165. package/dist/cjs/f/fields/SelectInput/common/Multiple/Multiple.js +2 -2
  166. package/dist/cjs/f/fields/SelectInput/common/Multiple/index.js +1 -1
  167. package/dist/cjs/f/fields/SelectInput/common/Single/Single.js +2 -2
  168. package/dist/cjs/f/fields/SelectInput/common/Single/index.js +1 -1
  169. package/dist/cjs/f/fields/SelectInput/index.js +1 -1
  170. package/dist/cjs/f/fields/TextInput/TextInput.js +2 -2
  171. package/dist/cjs/f/fields/TextInput/index.js +1 -1
  172. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +2 -2
  173. package/dist/cjs/f/fields/TextareaInput/index.js +1 -1
  174. package/dist/cjs/g/DragAndDrop/DragAndDrop.js +2 -2
  175. package/dist/cjs/g/DragAndDrop/common/DraggableItem/DraggableItem.js +2 -2
  176. package/dist/cjs/g/DragAndDrop/common/DraggableItem/index.js +1 -1
  177. package/dist/cjs/g/DragAndDrop/index.js +1 -1
  178. package/dist/cjs/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +1 -1
  179. package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +1 -1
  180. package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +1 -1
  181. package/dist/cjs/g/ExpandableLexicalPreview/index.js +1 -1
  182. package/dist/cjs/g/FormBuilder/FormBuilder.js +1 -1
  183. package/dist/cjs/g/FormBuilder/common/Builder/Builder.js +1 -1
  184. package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +1 -1
  185. package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +1 -1
  186. package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +1 -1
  187. package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/index.js +1 -1
  188. package/dist/cjs/g/FormBuilder/common/Builder/common/Section/Section.js +1 -1
  189. package/dist/cjs/g/FormBuilder/common/Builder/common/Section/index.js +1 -1
  190. package/dist/cjs/g/FormBuilder/common/Builder/index.js +1 -1
  191. package/dist/cjs/g/FormBuilder/common/Renderer/Renderer.js +2 -2
  192. package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/Section.js +2 -2
  193. package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/index.js +1 -1
  194. package/dist/cjs/g/FormBuilder/common/Renderer/index.js +1 -1
  195. package/dist/cjs/g/FormBuilder/index.js +1 -1
  196. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +1 -1
  197. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +1 -1
  198. package/dist/cjs/test/QueryLoader/index.js +1 -1
  199. package/dist/cjs/utils/hooks/index.js +1 -1
  200. package/dist/cjs/utils/hooks/useDynamicPosition.js +1 -1
  201. package/dist/cjs/utils/hooks/useWindowSize.js +1 -1
  202. package/dist/es/a/AnimatedGradient/webGIRenderer.js +1 -1
  203. package/dist/es/a/AppContext/useApp.js +1 -1
  204. package/dist/es/a/AppContext/useTheme.js +2 -2
  205. package/dist/es/a/Conversation/useConversation.js +1 -1
  206. package/dist/es/a/DatePicker/DatePicker.js +1 -1
  207. package/dist/es/a/HamburgerButton/HamburgerButton.js +1 -1
  208. package/dist/es/a/IconList/IconList.js +1 -1
  209. package/dist/es/a/IconList/common/Item/Item.js +1 -1
  210. package/dist/es/a/Label/Label.js +1 -1
  211. package/dist/es/a/Notification/Notification.js +107 -0
  212. package/dist/es/a/Notification/index.js +1 -0
  213. package/dist/es/a/Notification/styles.scss +57 -0
  214. package/dist/es/a/NotificationStack/NotificationStack.js +63 -0
  215. package/dist/es/a/NotificationStack/index.js +1 -0
  216. package/dist/es/a/NotificationStack/styles.scss +17 -0
  217. package/dist/es/a/SVG/SVG.js +1 -1
  218. package/dist/es/a/index.js +2 -0
  219. package/dist/es/b/Button/Button.js +1 -1
  220. package/dist/es/b/Button/common/Group/Group.js +1 -1
  221. package/dist/es/b/Card/common/Group/Group.js +1 -1
  222. package/dist/es/b/Card/common/Section/Section.js +1 -1
  223. package/dist/es/b/Page/Page.js +1 -1
  224. package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +1 -1
  225. package/dist/es/b/Page/common/Section/Section.js +1 -1
  226. package/dist/es/b/Page/usePage.js +1 -1
  227. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +1 -1
  228. package/dist/es/b/Title/Title.js +1 -1
  229. package/dist/es/f/FormInput/FormInput.js +1 -1
  230. package/dist/es/f/fields/Checkbox/Checkbox.js +1 -1
  231. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  232. package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +1 -1
  233. package/dist/es/f/fields/LinkInput/LinkInput.js +1 -1
  234. package/dist/es/f/fields/QueryChoices/QueryChoices.js +1 -1
  235. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +1 -1
  236. package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +1 -1
  237. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +1 -1
  238. package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +1 -1
  239. package/dist/es/f/fields/SelectInput/SelectInput.js +1 -1
  240. package/dist/es/f/fields/SelectInput/common/Menu/Menu.js +1 -1
  241. package/dist/es/f/fields/SelectInput/common/Multiple/Multiple.js +1 -1
  242. package/dist/es/f/fields/SelectInput/common/Single/Single.js +1 -1
  243. package/dist/es/f/fields/TextInput/TextInput.js +1 -1
  244. package/dist/es/f/fields/TextareaInput/TextareaInput.js +1 -1
  245. package/dist/es/g/DragAndDrop/DragAndDrop.js +1 -1
  246. package/dist/es/g/DragAndDrop/common/DraggableItem/DraggableItem.js +1 -1
  247. package/dist/es/g/FormBuilder/common/Renderer/Renderer.js +1 -1
  248. package/dist/es/g/FormBuilder/common/Renderer/common/Section/Section.js +1 -1
  249. package/package.json +2 -2
  250. package/src/stories/a/Label.stories.jsx +1 -1
  251. package/src/stories/a/Notification.stories.jsx +86 -0
  252. package/src/stories/a/NotificationStack.stories.jsx +59 -0
  253. package/src/stories/b/Button/Button.stories.jsx +1 -1
  254. package/src/stories/c/Modal.stories.jsx +1 -1
  255. package/src/ui/a/Notification/Notification.jsx +142 -0
  256. package/src/ui/a/Notification/index.js +1 -0
  257. package/src/ui/a/Notification/styles.scss +57 -0
  258. package/src/ui/a/NotificationStack/NotificationStack.jsx +90 -0
  259. package/src/ui/a/NotificationStack/index.js +1 -0
  260. package/src/ui/a/NotificationStack/styles.scss +17 -0
  261. package/src/ui/a/index.js +2 -0
  262. package/tests/__snapshots__/Storyshots.test.js.snap +349 -0
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  /* @pareto-engineering/generator-front 1.0.12 */
3
3
  import * as React from 'react';
4
4
  import { useEffect } from 'react';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  /* @pareto-engineering/generator-front 1.0.12 */
3
3
  import * as React from 'react';
4
4
  import { memo } from 'react';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  /* @pareto-engineering/generator-front 1.0.12 */
3
3
  import * as React from 'react';
4
4
  import { memo } from 'react';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  /* @pareto-engineering/generator-front 1.0.12 */
3
3
  import * as React from 'react';
4
4
  import { useState } from 'react';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  /* @pareto-engineering/generator-front 1.0.12 */
3
3
  import * as React from 'react';
4
4
  import { useState } from 'react';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  /* @pareto-engineering/generator-front 1.1.1-alpha.2 */
3
3
  import * as React from 'react';
4
4
  import { useState, useEffect } from 'react';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  /* eslint-disable no-alert */
3
3
  /* @pareto-engineering/generator-front 1.1.1-alpha.2 */
4
4
  import * as React from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pareto-engineering/design-system",
3
- "version": "4.3.5",
3
+ "version": "4.3.7",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",
@@ -82,5 +82,5 @@
82
82
  "relay-test-utils": "^15.0.0"
83
83
  },
84
84
  "browserslist": "> 2%",
85
- "gitHead": "67b9225b149d2028cb22c5a1698eafc435d6c072"
85
+ "gitHead": "508658bd5d94f9e27b0a8accf8b17737e0a90fc5"
86
86
  }
@@ -13,7 +13,7 @@ export default {
13
13
  // storyfn => <div className="">{ storyfn() }</div>,
14
14
  ],
15
15
  argTypes:{
16
- color :{ control: { type: 'select', options: ALL_COLORS } },
16
+ color :{ control: { type: 'select' }, options: ALL_COLORS },
17
17
  isCompact:{ control: { type: 'boolean' } },
18
18
  isGhost :{ control: { type: 'boolean' } },
19
19
  },
@@ -0,0 +1,86 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react'
3
+
4
+ import { Notification } from 'ui'
5
+
6
+ import { ALL_COLORS } from 'stories/colors'
7
+
8
+ const COLORS_OPTIONS = ['success', 'error', 'blocked', 'in-progress']
9
+
10
+ export default {
11
+ title :'a/Notification',
12
+ component :Notification,
13
+ decorators:[
14
+ // storyfn => <div className="">{ storyfn() }</div>,
15
+ ],
16
+ argTypes:{
17
+ color :{ control: { type: 'select' }, options: ALL_COLORS },
18
+ type :{ control: { type: 'select' }, options: COLORS_OPTIONS },
19
+ message :{ control: { type: 'text' } },
20
+ isVisible :{ control: { type: 'boolean' } },
21
+ overrideIsVisible:{ control: { type: 'boolean' } },
22
+ closeNotification:{ action: 'closeNotification' },
23
+ },
24
+ }
25
+
26
+ export const Base = {
27
+ render:(args) => (
28
+ <div
29
+ style={{
30
+ display :'flex',
31
+ justifyContent:'center',
32
+ alignItems :'center',
33
+ height :'100px',
34
+ }}
35
+ >
36
+ <Notification
37
+ {...args}
38
+ />
39
+ </div>
40
+ ),
41
+ args:{
42
+ message :'This is a notification with a custom color',
43
+ color :'deepblue',
44
+ isVisible:true,
45
+ },
46
+ }
47
+
48
+ export const Error = {
49
+ ...Base,
50
+ args:{
51
+ ...Base.args,
52
+ message:'This is an error notification',
53
+ type :'error',
54
+ color :null,
55
+ },
56
+ }
57
+
58
+ export const Warning = {
59
+ ...Base,
60
+ args:{
61
+ ...Base.args,
62
+ message:'This is a warning notification',
63
+ type :'warning',
64
+ color :null,
65
+ },
66
+ }
67
+
68
+ export const Info = {
69
+ ...Base,
70
+ args:{
71
+ ...Base.args,
72
+ message:'This is an info notification',
73
+ type :'info',
74
+ color :null,
75
+ },
76
+ }
77
+
78
+ export const Success = {
79
+ ...Base,
80
+ args:{
81
+ ...Base.args,
82
+ message:'This is a success notification',
83
+ type :'success',
84
+ color :null,
85
+ },
86
+ }
@@ -0,0 +1,59 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react'
3
+
4
+ import { NotificationStack } from 'ui'
5
+
6
+ export default {
7
+ title :'a/NotificationStack',
8
+ component :NotificationStack,
9
+ decorators:[
10
+ // storyfn => <div className="">{ storyfn() }</div>,
11
+ ],
12
+ argTypes:{
13
+ notifications :{ control: { type: 'object' } },
14
+ maxNotifications:{ control: { type: 'number' } },
15
+ },
16
+ }
17
+
18
+ const notifications = [
19
+ {
20
+ message :'This is an error notification',
21
+ type :'error',
22
+ isVisible:true,
23
+ },
24
+ {
25
+ message :'This is a warning notification',
26
+ type :'warning',
27
+ isVisible:true,
28
+ },
29
+ {
30
+ message :'This is an info notification',
31
+ type :'info',
32
+ isVisible:true,
33
+ },
34
+ {
35
+ message :'This is a success notification',
36
+ type :'success',
37
+ isVisible:true,
38
+ },
39
+ ]
40
+
41
+ export const Base = {
42
+ render:(args) => (
43
+ <div
44
+ style={{
45
+ display :'flex',
46
+ justifyContent:'center',
47
+ alignItems :'center',
48
+ height :'500px',
49
+ }}
50
+ >
51
+ <NotificationStack
52
+ {...args}
53
+ />
54
+ </div>
55
+ ),
56
+ args:{
57
+ notifications,
58
+ },
59
+ }
@@ -14,7 +14,7 @@ export default {
14
14
  // storyfn => <div className="">{ storyfn() }</div>,
15
15
  ],
16
16
  argTypes:{
17
- color :{ control: { type: 'select', options: ALL_COLORS } },
17
+ color :{ control: { type: 'select' }, options: ALL_COLORS },
18
18
  disabled :{ control: { type: 'boolean' } },
19
19
  isGhost :{ control: { type: 'boolean' } },
20
20
  isSimple :{ control: { type: 'boolean' } },
@@ -18,7 +18,7 @@ export default {
18
18
  ],
19
19
  argTypes:{
20
20
  children:{ control: { type: 'text' } },
21
- color :{ control: { type: 'select', options: ALL_COLORS } },
21
+ color :{ control: { type: 'select' }, options: ALL_COLORS },
22
22
  title :{ control: { type: 'text' } },
23
23
  },
24
24
  }
@@ -0,0 +1,142 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react'
3
+
4
+ import { useState } from 'react'
5
+
6
+ import PropTypes from 'prop-types'
7
+
8
+ import styleNames from '@pareto-engineering/bem/exports'
9
+
10
+ import { Button } from 'ui'
11
+
12
+ // Local Definitions
13
+
14
+ import './styles.scss'
15
+
16
+ const baseClassName = styleNames.base
17
+
18
+ const componentClassName = 'notification'
19
+
20
+ const iconsMap = {
21
+ success:'I',
22
+ error :'g',
23
+ warning:'x',
24
+ info :'h',
25
+ }
26
+
27
+ const COLORS_MAP = {
28
+ success:'success',
29
+ error :'error',
30
+ warning:'blocked',
31
+ info :'in-progress',
32
+ }
33
+
34
+ const Notification = ({
35
+ id,
36
+ className:userClassName,
37
+ style,
38
+ color,
39
+ message,
40
+ type,
41
+ isVisible,
42
+ overrideIsVisible,
43
+ closeNotification,
44
+ ...otherProps
45
+ }) => {
46
+ const [isVisibleState, setIsVisibleState] = useState(isVisible)
47
+ if (!isVisibleState && !overrideIsVisible) {
48
+ return null
49
+ }
50
+
51
+ return (
52
+ <div
53
+ id={id}
54
+ className={[
55
+ baseClassName,
56
+ componentClassName,
57
+ userClassName,
58
+ `x-${color || COLORS_MAP[type]}`,
59
+ ]
60
+ .filter((e) => e)
61
+ .join(' ')}
62
+ style={style}
63
+ {...otherProps}
64
+ >
65
+ <div className="message-container">
66
+ <span className="icon">{iconsMap[type]}</span>
67
+ <span className="message">
68
+ {message}
69
+ </span>
70
+ </div>
71
+
72
+ <Button
73
+ className="close"
74
+ isCompact
75
+ color={color || COLORS_MAP[type]}
76
+ onClick={() => {
77
+ if (closeNotification) closeNotification()
78
+ setIsVisibleState(false)
79
+ }}
80
+ >
81
+ <span className="icon">
82
+ Y
83
+ </span>
84
+ </Button>
85
+ </div>
86
+ )
87
+ }
88
+
89
+ Notification.propTypes = {
90
+ /**
91
+ * The HTML id for this element
92
+ */
93
+ id:PropTypes.string,
94
+
95
+ /**
96
+ * The HTML class names for this element
97
+ */
98
+ className:PropTypes.string,
99
+
100
+ /**
101
+ * The React-written, css properties for this element.
102
+ */
103
+ style:PropTypes.objectOf(PropTypes.string),
104
+
105
+ /**
106
+ * The color of the notification
107
+ */
108
+ color:PropTypes.string,
109
+
110
+ /**
111
+ * The message of the notification
112
+ */
113
+ message:PropTypes.string,
114
+
115
+ /**
116
+ * The type of the notification
117
+ */
118
+ type:PropTypes.oneOf(['success', 'error', 'warning', 'info']),
119
+
120
+ /**
121
+ * The visibility of the notification
122
+ */
123
+ isVisible:PropTypes.bool,
124
+
125
+ /**
126
+ * Override the visibility of the notification
127
+ */
128
+ overrideIsVisible:PropTypes.bool,
129
+
130
+ /**
131
+ * The action to close the notification
132
+ */
133
+ closeNotification:PropTypes.func,
134
+ }
135
+
136
+ Notification.defaultProps = {
137
+ isVisible :true,
138
+ overrideIsVisible:false,
139
+ type :'error',
140
+ }
141
+
142
+ export default Notification
@@ -0,0 +1 @@
1
+ export { default as Notification } from './Notification'
@@ -0,0 +1,57 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+
3
+ @use "@pareto-engineering/bem";
4
+ @use "@pareto-engineering/styles/src/mixins";
5
+ @use "@pareto-engineering/styles/src/globals" as *;
6
+
7
+ $default-padding: 1em;
8
+ $default-margin: 1em;
9
+ $default-border-radius: 1.5em;
10
+ $default-width: clamp(var(--min-width, 30em), var(--width, 50%), var(--max-width, 100%));
11
+ $default-height: clamp(var(--min-height, 3em), var(--height, 5em), var(--max-height, 10em));
12
+
13
+ .#{bem.$base}.notification {
14
+ align-items: center;
15
+ background-color: var(--x);
16
+ border-radius: $default-border-radius $default-border-radius 0 0;
17
+ bottom: 0;
18
+ color: var(--on-x);
19
+ display: flex;
20
+ height: $default-height;
21
+ justify-content: space-between;
22
+ overflow: hidden;
23
+ padding: $default-padding calc($default-padding * 2);
24
+ position: absolute;
25
+ right: 0;
26
+ width: $default-width;
27
+ z-index: 9999;
28
+
29
+ &.stacked {
30
+ position: relative;
31
+ }
32
+
33
+ > .message-container {
34
+ align-items: center;
35
+ display: flex;
36
+ overflow: auto;
37
+
38
+ > .message {
39
+ font-size: calc(var(--s0) * 1em);
40
+ margin-left: calc($default-margin / 2);
41
+ }
42
+
43
+ > span {
44
+ font-size: calc(var(--s2) * 1em);
45
+ }
46
+ }
47
+
48
+ .#{bem.$base}.button {
49
+ padding: calc($default-padding / 2);
50
+
51
+ &:focus {
52
+ background-color: transparent;
53
+ }
54
+ }
55
+ }
56
+
57
+
@@ -0,0 +1,90 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react'
3
+
4
+ import PropTypes from 'prop-types'
5
+
6
+ import styleNames from '@pareto-engineering/bem/exports'
7
+
8
+ import { Notification } from '../Notification'
9
+
10
+ // Local Definitions
11
+
12
+ import './styles.scss'
13
+
14
+ const baseClassName = styleNames.base
15
+
16
+ const componentClassName = 'notification-stack'
17
+
18
+ const NotificationStack = ({
19
+ id,
20
+ className:userClassName,
21
+ style,
22
+ notifications,
23
+ maxNotifications,
24
+ ...otherProps
25
+ }) => {
26
+ const notificationsToDisplay = notifications.slice(0, maxNotifications)
27
+
28
+ return (
29
+ <div
30
+ id={id}
31
+ className={[
32
+ baseClassName,
33
+ componentClassName,
34
+ userClassName,
35
+ ]
36
+ .filter((e) => e)
37
+ .join(' ')}
38
+ style={style}
39
+ {...otherProps}
40
+ >
41
+ {notificationsToDisplay.map((notification) => (
42
+ <Notification
43
+ className="stacked"
44
+ key={notification?.id || notification.message}
45
+ {...notification}
46
+ />
47
+ ))}
48
+ </div>
49
+ )
50
+ }
51
+
52
+ NotificationStack.propTypes = {
53
+ /**
54
+ * The HTML id for this element
55
+ */
56
+ id:PropTypes.string,
57
+
58
+ /**
59
+ * The HTML class names for this element
60
+ */
61
+ className:PropTypes.string,
62
+
63
+ /**
64
+ * The React-written, css properties for this element.
65
+ */
66
+ style:PropTypes.objectOf(PropTypes.string),
67
+
68
+ /**
69
+ * The list of notifications to display
70
+ */
71
+ notifications:PropTypes.arrayOf(PropTypes.shape({
72
+ id :PropTypes.string,
73
+ color :PropTypes.string,
74
+ message :PropTypes.string,
75
+ type :PropTypes.string,
76
+ isVisible :PropTypes.bool,
77
+ closeNotification:PropTypes.func,
78
+ })),
79
+
80
+ /**
81
+ * The maximum number of notifications to display
82
+ */
83
+ maxNotifications:PropTypes.number,
84
+ }
85
+
86
+ NotificationStack.defaultProps = {
87
+ maxNotifications:5,
88
+ }
89
+
90
+ export default NotificationStack
@@ -0,0 +1 @@
1
+ export { default as NotificationStack } from './NotificationStack'
@@ -0,0 +1,17 @@
1
+ @use "@pareto-engineering/bem";
2
+ @use "@pareto-engineering/styles/src/mixins";
3
+ @use "@pareto-engineering/styles/src/globals" as *;
4
+
5
+ $default-padding: 1em;
6
+
7
+ .#{bem.$base}.notification-stack {
8
+ align-items: center;
9
+ bottom: 0;
10
+ display: flex;
11
+ flex-direction: column;
12
+ padding: $default-padding calc($default-padding * 2);
13
+ position: fixed;
14
+ right: 0;
15
+ row-gap: $default-padding;
16
+ z-index: 9999;
17
+ }
package/src/ui/a/index.js CHANGED
@@ -10,6 +10,8 @@ export { HamburgerButton } from './HamburgerButton'
10
10
  export { IconList } from './IconList'
11
11
  export { Label } from './Label'
12
12
  export { LoadingCircle } from './LoadingCircle'
13
+ export { Notification } from './Notification'
14
+ export { NotificationStack } from './NotificationStack'
13
15
  export { People } from './People'
14
16
  export { Popover } from './Popover'
15
17
  export { ProgressBar } from './ProgressBar'