@pareto-engineering/design-system 4.0.0-alpha.9 → 4.0.0

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 (598) hide show
  1. package/.storybook/preview.js +29 -12
  2. package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +6 -7
  3. package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +15 -12
  4. package/dist/cjs/a/AnimatedGradient/styles.scss +2 -1
  5. package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +0 -1
  6. package/dist/cjs/a/AppContext/Context.js +3 -4
  7. package/dist/cjs/a/AppContext/ContextProvider.js +6 -6
  8. package/dist/cjs/a/AppContext/useTheme.js +2 -7
  9. package/dist/cjs/a/BlurOverlay/BlurOverlay.js +58 -0
  10. package/dist/cjs/{r/common/PrivateRoute → a/BlurOverlay}/index.js +3 -3
  11. package/dist/cjs/a/BlurOverlay/styles.scss +33 -0
  12. package/dist/cjs/a/ContentTree/ContentTree.js +16 -9
  13. package/dist/cjs/a/ContentTree/common/Tree/Tree.js +20 -13
  14. package/dist/cjs/a/ContentTree/common/useContentTree.js +1 -2
  15. package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +1 -2
  16. package/dist/cjs/a/ContentTree/styles.scss +34 -11
  17. package/dist/cjs/a/Conversation/Context.js +3 -4
  18. package/dist/cjs/a/Conversation/Conversation.js +18 -22
  19. package/dist/cjs/a/Conversation/common/Message/Message.js +18 -16
  20. package/dist/cjs/a/Conversation/styles.scss +56 -124
  21. package/dist/cjs/a/DatePicker/DatePicker.js +162 -0
  22. package/dist/cjs/a/DatePicker/index.js +13 -0
  23. package/dist/cjs/a/DatePicker/styles.scss +380 -0
  24. package/dist/cjs/a/DotInfo/DotInfo.js +6 -7
  25. package/dist/cjs/a/Figure/Figure.js +6 -7
  26. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +5 -8
  27. package/dist/cjs/a/IconList/IconList.js +5 -8
  28. package/dist/cjs/a/IconList/common/Item/Item.js +4 -5
  29. package/dist/cjs/a/Label/Label.js +5 -8
  30. package/dist/cjs/a/Label/styles.scss +5 -5
  31. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +6 -7
  32. package/dist/cjs/a/MetaCard/MetaCard.js +14 -10
  33. package/dist/cjs/a/MetaCard/styles.scss +18 -1
  34. package/dist/cjs/a/People/People.js +8 -7
  35. package/dist/cjs/a/People/common/Person/Person.js +15 -11
  36. package/dist/cjs/a/People/styles.scss +10 -4
  37. package/dist/cjs/a/Popover/Popover.js +12 -10
  38. package/dist/cjs/a/Popover/styles.scss +1 -1
  39. package/dist/cjs/a/ProgressBar/ProgressBar.js +9 -10
  40. package/dist/cjs/a/ProgressBar/styles.scss +11 -1
  41. package/dist/cjs/a/Quote/Quote.js +21 -12
  42. package/dist/cjs/a/Quote/styles.scss +16 -37
  43. package/dist/cjs/a/Removable/Removable.js +71 -0
  44. package/dist/cjs/{c/ContentSlides/common/Navigator → a/Removable}/index.js +3 -3
  45. package/dist/cjs/a/Removable/styles.scss +33 -0
  46. package/dist/cjs/a/SVG/SVG.js +8 -10
  47. package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +3 -4
  48. package/dist/cjs/a/SnapScroller/SnapScroller.js +40 -14
  49. package/dist/cjs/a/SnapScroller/styles.scss +32 -3
  50. package/dist/cjs/a/Spinner/Spinner.js +6 -7
  51. package/dist/cjs/a/TextSteps/TextSteps.js +7 -10
  52. package/dist/cjs/a/TextSteps/styles.scss +1 -1
  53. package/dist/cjs/a/Timestamp/Timestamp.js +12 -12
  54. package/dist/cjs/a/Tip/Tip.js +25 -12
  55. package/dist/cjs/a/Tip/styles.scss +7 -13
  56. package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +81 -0
  57. package/dist/cjs/a/ToggleSwitch/index.js +13 -0
  58. package/dist/cjs/a/ToggleSwitch/styles.scss +51 -0
  59. package/dist/cjs/a/Tooltip/Tooltip.js +87 -0
  60. package/dist/cjs/{c/ContentSlides/common/Sidebar → a/Tooltip}/index.js +3 -3
  61. package/dist/cjs/a/Tooltip/styles.scss +61 -0
  62. package/dist/cjs/a/XMLEditor/XMLEditor.js +137 -0
  63. package/dist/cjs/{c/ContentSlides/common/Slide → a/XMLEditor/common}/index.js +3 -3
  64. package/dist/cjs/a/XMLEditor/common/theme.js +186 -0
  65. package/dist/cjs/a/XMLEditor/index.js +13 -0
  66. package/dist/cjs/a/XMLEditor/styles.scss +24 -0
  67. package/dist/cjs/a/index.js +43 -1
  68. package/dist/cjs/b/Button/Button.js +24 -15
  69. package/dist/cjs/b/Button/common/Group/Group.js +54 -0
  70. package/dist/cjs/b/Button/common/Group/index.js +13 -0
  71. package/dist/cjs/b/Button/common/Group/styles.scss +11 -0
  72. package/dist/cjs/b/Button/common/index.js +12 -0
  73. package/dist/cjs/b/Button/styles.scss +39 -11
  74. package/dist/cjs/b/Card/Card.js +6 -7
  75. package/dist/cjs/b/Card/common/Group/Group.js +6 -9
  76. package/dist/cjs/b/Card/common/Group/styles.scss +0 -7
  77. package/dist/cjs/b/Card/common/Section/Section.js +4 -5
  78. package/dist/cjs/b/Card/styles.scss +11 -0
  79. package/dist/cjs/b/Logo/Logo.js +9 -10
  80. package/dist/cjs/b/Page/Context.js +3 -4
  81. package/dist/cjs/b/Page/Page.js +13 -13
  82. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +21 -8
  83. package/dist/cjs/b/Page/common/Section/Section.js +12 -8
  84. package/dist/cjs/b/Page/styles.scss +5 -2
  85. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +10 -9
  86. package/dist/cjs/b/SocialMediaButton/styles.scss +0 -14
  87. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +19 -35
  88. package/dist/cjs/b/ThemeSelector/styles.scss +44 -6
  89. package/dist/cjs/b/Title/Title.js +4 -12
  90. package/dist/cjs/c/Modal/Modal.js +7 -8
  91. package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +4 -5
  92. package/dist/cjs/c/Modal/styles.scss +7 -12
  93. package/dist/cjs/c/Shortener/Shortener.js +11 -9
  94. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +6 -9
  95. package/dist/cjs/c/index.js +0 -13
  96. package/dist/cjs/f/FormInput/FormInput.js +19 -9
  97. package/dist/cjs/f/common/Debugger/Debugger.js +10 -10
  98. package/dist/cjs/f/common/Description/Description.js +11 -11
  99. package/dist/cjs/f/common/Description/styles.scss +1 -2
  100. package/dist/cjs/f/common/Label/Label.js +7 -9
  101. package/dist/cjs/f/common/Label/styles.scss +3 -2
  102. package/dist/cjs/f/common/index.js +18 -1
  103. package/dist/cjs/f/common/utils/index.js +12 -0
  104. package/dist/cjs/f/common/utils/lookUpInputValueFromFetchedOptions.js +29 -0
  105. package/dist/cjs/f/fields/Checkbox/Checkbox.js +31 -14
  106. package/dist/cjs/f/fields/Checkbox/styles.scss +5 -4
  107. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +42 -34
  108. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +5 -6
  109. package/dist/cjs/f/fields/ChoicesInput/styles.scss +32 -8
  110. package/dist/cjs/f/fields/EditorInput/EditorInput.js +236 -0
  111. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +256 -0
  112. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/index.js +13 -0
  113. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
  114. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +98 -0
  115. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/index.js +13 -0
  116. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
  117. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +94 -0
  118. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/index.js +13 -0
  119. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
  120. package/dist/cjs/f/fields/EditorInput/common/StopPropagationPlugin.js +30 -0
  121. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +289 -0
  122. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/index.js +13 -0
  123. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
  124. package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +18 -0
  125. package/dist/cjs/f/fields/EditorInput/common/index.js +48 -0
  126. package/dist/cjs/f/fields/EditorInput/index.js +13 -0
  127. package/dist/cjs/f/fields/EditorInput/styles.scss +240 -0
  128. package/dist/cjs/f/fields/LinkInput/LinkInput.js +152 -0
  129. package/dist/cjs/f/fields/LinkInput/index.js +13 -0
  130. package/dist/cjs/f/fields/LinkInput/styles.scss +90 -0
  131. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +9 -9
  132. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +45 -16
  133. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +65 -27
  134. package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +4 -5
  135. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +88 -37
  136. package/dist/cjs/f/fields/QueryCombobox/styles.scss +69 -27
  137. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +15 -9
  138. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +20 -18
  139. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +8 -9
  140. package/dist/cjs/f/fields/RatingsInput/styles.scss +7 -10
  141. package/dist/cjs/f/fields/SelectInput/SelectInput.js +52 -50
  142. package/dist/cjs/f/fields/SelectInput/common/Menu/Menu.js +83 -0
  143. package/dist/cjs/f/fields/SelectInput/common/Menu/index.js +13 -0
  144. package/dist/cjs/f/fields/SelectInput/common/Multiple/Multiple.js +242 -0
  145. package/dist/cjs/f/fields/SelectInput/common/Multiple/index.js +13 -0
  146. package/dist/cjs/f/fields/SelectInput/common/Single/Single.js +115 -0
  147. package/dist/cjs/f/fields/SelectInput/common/Single/index.js +13 -0
  148. package/dist/cjs/f/fields/SelectInput/common/index.js +26 -0
  149. package/dist/cjs/f/fields/SelectInput/styles.scss +163 -32
  150. package/dist/cjs/f/fields/TextInput/TextInput.js +32 -26
  151. package/dist/cjs/f/fields/TextInput/styles.scss +59 -22
  152. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +17 -23
  153. package/dist/cjs/f/fields/TextareaInput/styles.scss +33 -13
  154. package/dist/cjs/f/fields/index.js +15 -1
  155. package/dist/cjs/form.scss +1 -1
  156. package/dist/cjs/g/DragAndDrop/DragAndDrop.js +97 -0
  157. package/dist/cjs/g/DragAndDrop/common/DraggableItem/DraggableItem.js +80 -0
  158. package/dist/cjs/g/DragAndDrop/common/DraggableItem/index.js +13 -0
  159. package/dist/cjs/g/DragAndDrop/common/DraggableItem/styles.scss +12 -0
  160. package/dist/cjs/g/DragAndDrop/common/index.js +12 -0
  161. package/dist/cjs/g/DragAndDrop/index.js +13 -0
  162. package/dist/cjs/g/DragAndDrop/styles.scss +8 -0
  163. package/dist/cjs/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +137 -0
  164. package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +79 -0
  165. package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +13 -0
  166. package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +9 -0
  167. package/dist/cjs/g/ExpandableLexicalPreview/common/index.js +12 -0
  168. package/dist/cjs/g/ExpandableLexicalPreview/index.js +13 -0
  169. package/dist/cjs/g/ExpandableLexicalPreview/styles.scss +34 -0
  170. package/dist/cjs/g/index.js +19 -0
  171. package/dist/cjs/index.js +11 -11
  172. package/dist/cjs/test/QueryLoader/QueryLoader.js +9 -7
  173. package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -1
  174. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +3 -4
  175. package/dist/cjs/utils/hooks/index.js +7 -0
  176. package/dist/cjs/utils/hooks/useDynamicPosition.js +1 -2
  177. package/dist/cjs/utils/hooks/useOutsideClick.js +25 -0
  178. package/dist/cjs/utils/hooks/useWindowSize.js +1 -2
  179. package/dist/cjs/utils/index.js +6 -0
  180. package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +18 -23
  181. package/dist/es/a/AnimatedGradient/AnimatedGradient.js +8 -7
  182. package/dist/es/a/AnimatedGradient/styles.scss +2 -1
  183. package/dist/es/a/AnimatedGradient/webGIRenderer.js +0 -1
  184. package/dist/es/a/AppContext/useTheme.js +0 -4
  185. package/dist/es/a/BlurOverlay/BlurOverlay.js +45 -0
  186. package/dist/es/a/BlurOverlay/index.js +2 -0
  187. package/dist/es/a/BlurOverlay/styles.scss +33 -0
  188. package/dist/es/a/ContentTree/ContentTree.js +9 -6
  189. package/dist/es/a/ContentTree/common/Tree/Tree.js +12 -5
  190. package/dist/es/a/ContentTree/styles.scss +34 -11
  191. package/dist/es/a/Conversation/Conversation.js +18 -28
  192. package/dist/es/a/Conversation/common/Message/Message.js +15 -12
  193. package/dist/es/a/Conversation/styles.scss +56 -124
  194. package/dist/es/a/DatePicker/DatePicker.js +154 -0
  195. package/dist/es/a/DatePicker/index.js +2 -0
  196. package/dist/es/a/DatePicker/styles.scss +380 -0
  197. package/dist/es/a/DotInfo/DotInfo.js +9 -15
  198. package/dist/es/a/Figure/Figure.js +10 -15
  199. package/dist/es/a/HamburgerButton/HamburgerButton.js +13 -18
  200. package/dist/es/a/IconList/IconList.js +10 -15
  201. package/dist/es/a/Label/Label.js +6 -11
  202. package/dist/es/a/Label/styles.scss +5 -5
  203. package/dist/es/a/LoadingCircle/LoadingCircle.js +32 -37
  204. package/dist/es/a/MetaCard/MetaCard.js +13 -13
  205. package/dist/es/a/MetaCard/styles.scss +18 -1
  206. package/dist/es/a/People/People.js +11 -16
  207. package/dist/es/a/People/common/Person/Person.js +25 -18
  208. package/dist/es/a/People/styles.scss +10 -4
  209. package/dist/es/a/Popover/Popover.js +3 -5
  210. package/dist/es/a/Popover/styles.scss +1 -1
  211. package/dist/es/a/ProgressBar/ProgressBar.js +14 -19
  212. package/dist/es/a/ProgressBar/styles.scss +11 -1
  213. package/dist/es/a/Quote/Quote.js +25 -20
  214. package/dist/es/a/Quote/styles.scss +16 -37
  215. package/dist/es/a/Removable/Removable.js +59 -0
  216. package/dist/es/a/Removable/index.js +2 -0
  217. package/dist/es/a/Removable/styles.scss +33 -0
  218. package/dist/es/a/SVG/SVG.js +2 -4
  219. package/dist/es/a/SnapScroller/SnapScroller.js +34 -10
  220. package/dist/es/a/SnapScroller/styles.scss +32 -3
  221. package/dist/es/a/Spinner/Spinner.js +9 -14
  222. package/dist/es/a/TextSteps/TextSteps.js +16 -21
  223. package/dist/es/a/TextSteps/styles.scss +1 -1
  224. package/dist/es/a/Timestamp/Timestamp.js +3 -5
  225. package/dist/es/a/Tip/Tip.js +24 -15
  226. package/dist/es/a/Tip/styles.scss +7 -13
  227. package/dist/es/a/ToggleSwitch/ToggleSwitch.js +69 -0
  228. package/dist/es/a/ToggleSwitch/index.js +2 -0
  229. package/dist/es/a/ToggleSwitch/styles.scss +51 -0
  230. package/dist/es/a/Tooltip/Tooltip.js +75 -0
  231. package/{src/ui/c/ContentSlides/common/Sidebar → dist/es/a/Tooltip}/index.js +1 -1
  232. package/dist/es/a/Tooltip/styles.scss +61 -0
  233. package/dist/es/a/XMLEditor/XMLEditor.js +126 -0
  234. package/dist/es/a/XMLEditor/common/index.js +1 -0
  235. package/dist/es/a/XMLEditor/common/theme.js +180 -0
  236. package/dist/es/a/XMLEditor/index.js +1 -0
  237. package/dist/es/a/XMLEditor/styles.scss +24 -0
  238. package/dist/es/a/index.js +7 -1
  239. package/dist/es/b/Button/Button.js +20 -10
  240. package/dist/es/b/Button/common/Group/Group.js +44 -0
  241. package/dist/es/b/Button/common/Group/index.js +1 -0
  242. package/dist/es/b/Button/common/Group/styles.scss +11 -0
  243. package/dist/es/b/Button/common/index.js +1 -0
  244. package/dist/es/b/Button/styles.scss +39 -11
  245. package/dist/es/b/Card/Card.js +11 -16
  246. package/dist/es/b/Card/common/Group/Group.js +2 -5
  247. package/dist/es/b/Card/common/Group/styles.scss +0 -7
  248. package/dist/es/b/Card/styles.scss +11 -0
  249. package/dist/es/b/Logo/Logo.js +2 -5
  250. package/dist/es/b/Page/Page.js +7 -7
  251. package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +15 -2
  252. package/dist/es/b/Page/common/Section/Section.js +8 -3
  253. package/dist/es/b/Page/styles.scss +5 -2
  254. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +6 -5
  255. package/dist/es/b/SocialMediaButton/styles.scss +0 -14
  256. package/dist/es/b/ThemeSelector/ThemeSelector.js +13 -32
  257. package/dist/es/b/ThemeSelector/styles.scss +44 -6
  258. package/dist/es/b/Title/Title.js +11 -21
  259. package/dist/es/c/Modal/Modal.js +14 -19
  260. package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
  261. package/dist/es/c/Modal/styles.scss +7 -12
  262. package/dist/es/c/Shortener/Shortener.js +2 -4
  263. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -6
  264. package/dist/es/c/index.js +0 -1
  265. package/dist/es/f/FormInput/FormInput.js +15 -5
  266. package/dist/es/f/common/Debugger/Debugger.js +2 -4
  267. package/dist/es/f/common/Description/Description.js +6 -8
  268. package/dist/es/f/common/Description/styles.scss +1 -2
  269. package/dist/es/f/common/Label/Label.js +8 -15
  270. package/dist/es/f/common/Label/styles.scss +3 -2
  271. package/dist/es/f/common/index.js +2 -1
  272. package/dist/es/f/common/utils/index.js +1 -0
  273. package/dist/es/f/common/utils/lookUpInputValueFromFetchedOptions.js +20 -0
  274. package/dist/es/f/fields/Checkbox/Checkbox.js +27 -9
  275. package/dist/es/f/fields/Checkbox/styles.scss +5 -4
  276. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +52 -46
  277. package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +1 -1
  278. package/dist/es/f/fields/ChoicesInput/styles.scss +32 -8
  279. package/dist/es/f/fields/EditorInput/EditorInput.js +225 -0
  280. package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +246 -0
  281. package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/index.js +2 -0
  282. package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
  283. package/dist/es/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +87 -0
  284. package/dist/es/f/fields/EditorInput/common/ColorPicker/index.js +2 -0
  285. package/dist/es/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
  286. package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +81 -0
  287. package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/index.js +2 -0
  288. package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
  289. package/dist/es/f/fields/EditorInput/common/StopPropagationPlugin.js +23 -0
  290. package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +277 -0
  291. package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/index.js +2 -0
  292. package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
  293. package/dist/es/f/fields/EditorInput/common/TreeViewPlugin.js +11 -0
  294. package/dist/es/f/fields/EditorInput/common/index.js +6 -0
  295. package/dist/es/f/fields/EditorInput/index.js +2 -0
  296. package/dist/es/f/fields/EditorInput/styles.scss +240 -0
  297. package/dist/es/f/fields/LinkInput/LinkInput.js +146 -0
  298. package/dist/es/f/fields/LinkInput/index.js +2 -0
  299. package/dist/es/f/fields/LinkInput/styles.scss +90 -0
  300. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +35 -10
  301. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +56 -18
  302. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +78 -27
  303. package/dist/es/f/fields/QueryCombobox/styles.scss +69 -27
  304. package/dist/es/f/fields/QuerySelect/QuerySelect.js +7 -1
  305. package/dist/es/f/fields/RatingsInput/RatingsInput.js +11 -14
  306. package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +4 -4
  307. package/dist/es/f/fields/RatingsInput/styles.scss +7 -10
  308. package/dist/es/f/fields/SelectInput/SelectInput.js +46 -46
  309. package/dist/es/f/fields/SelectInput/common/Menu/Menu.js +73 -0
  310. package/{src/ui/c/ContentSlides/common/Slide → dist/es/f/fields/SelectInput/common/Menu}/index.js +1 -1
  311. package/dist/es/f/fields/SelectInput/common/Multiple/Multiple.js +233 -0
  312. package/dist/es/f/fields/SelectInput/common/Multiple/index.js +2 -0
  313. package/dist/es/f/fields/SelectInput/common/Single/Single.js +107 -0
  314. package/dist/es/{c/ContentSlides/common/Sidebar → f/fields/SelectInput/common/Single}/index.js +1 -1
  315. package/dist/es/f/fields/SelectInput/common/index.js +3 -0
  316. package/dist/es/f/fields/SelectInput/styles.scss +163 -32
  317. package/dist/es/f/fields/TextInput/TextInput.js +27 -19
  318. package/dist/es/f/fields/TextInput/styles.scss +59 -22
  319. package/dist/es/f/fields/TextareaInput/TextareaInput.js +12 -18
  320. package/dist/es/f/fields/TextareaInput/styles.scss +33 -13
  321. package/dist/es/f/fields/index.js +3 -1
  322. package/dist/es/form.scss +1 -1
  323. package/dist/es/g/DragAndDrop/DragAndDrop.js +88 -0
  324. package/dist/es/g/DragAndDrop/common/DraggableItem/DraggableItem.js +72 -0
  325. package/dist/es/g/DragAndDrop/common/DraggableItem/index.js +2 -0
  326. package/dist/es/g/DragAndDrop/common/DraggableItem/styles.scss +12 -0
  327. package/dist/es/g/DragAndDrop/common/index.js +1 -0
  328. package/dist/es/g/DragAndDrop/index.js +2 -0
  329. package/dist/es/g/DragAndDrop/styles.scss +8 -0
  330. package/dist/es/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +126 -0
  331. package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +70 -0
  332. package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +2 -0
  333. package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +9 -0
  334. package/dist/es/g/ExpandableLexicalPreview/common/index.js +1 -0
  335. package/dist/es/g/ExpandableLexicalPreview/index.js +2 -0
  336. package/dist/es/g/ExpandableLexicalPreview/styles.scss +34 -0
  337. package/dist/es/g/index.js +2 -0
  338. package/dist/es/index.js +1 -1
  339. package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -1
  340. package/dist/es/utils/hooks/index.js +2 -1
  341. package/dist/es/utils/hooks/useOutsideClick.js +19 -0
  342. package/dist/es/utils/index.js +1 -1
  343. package/package.json +20 -5
  344. package/src/stories/StyleGuide/ai-icons.stories.mdx +27 -0
  345. package/src/stories/StyleGuide/icons.stories.mdx +22 -22
  346. package/src/stories/a/AppContext.stories.jsx +4 -2
  347. package/src/stories/a/BlurOverlay.stories.jsx +39 -0
  348. package/src/stories/a/Conversation.stories.jsx +11 -42
  349. package/src/stories/a/DatePicker.stories.jsx +96 -0
  350. package/src/stories/a/People.stories.jsx +22 -2
  351. package/src/stories/a/ProgressBar.stories.jsx +1 -1
  352. package/src/stories/a/Quote.stories.jsx +30 -10
  353. package/src/stories/a/Removable.stories.jsx +22 -0
  354. package/src/stories/a/SnapScroller.stories.jsx +2 -2
  355. package/src/stories/a/Spinner.stories.jsx +1 -1
  356. package/src/stories/a/Tip.stories.jsx +3 -2
  357. package/src/stories/a/ToggleSwitch.stories.jsx +22 -0
  358. package/src/stories/a/Tooltip.stories.jsx +75 -0
  359. package/src/stories/a/XMLEditor.stories.jsx +26 -0
  360. package/src/stories/b/{Button.stories.jsx → Button/Button.stories.jsx} +18 -0
  361. package/src/stories/b/Button/Group.stories.jsx +35 -0
  362. package/src/stories/b/SocialMediaButton.stories.jsx +4 -2
  363. package/src/stories/b/ThemeSelector.stories.jsx +1 -5
  364. package/src/stories/b/Title.stories.jsx +1 -1
  365. package/src/stories/colors.js +26 -28
  366. package/src/stories/f/Checkbox.stories.jsx +9 -2
  367. package/src/stories/f/ChoicesInput.stories.jsx +13 -14
  368. package/src/stories/f/EditorInput.stories.jsx +81 -0
  369. package/src/stories/f/LinkInput.stories.jsx +93 -0
  370. package/src/stories/f/QueryChoices.stories.jsx +13 -4
  371. package/src/stories/f/QueryCombobox.stories.jsx +57 -13
  372. package/src/stories/f/QuerySelect.stories.jsx +13 -5
  373. package/src/stories/f/RatingsInput.stories.jsx +9 -2
  374. package/src/stories/f/SelectInput.stories.jsx +46 -7
  375. package/src/stories/f/TextInput.stories.jsx +15 -1
  376. package/src/stories/f/TextareaInput.stories.jsx +9 -2
  377. package/src/stories/g/DragAndDrop.stories.jsx +114 -0
  378. package/src/stories/g/ExpandableLexicalPreview.stories.jsx +37 -0
  379. package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +25 -31
  380. package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +7 -6
  381. package/src/ui/a/AnimatedGradient/styles.scss +2 -1
  382. package/src/ui/a/AppContext/useTheme.js +0 -4
  383. package/src/ui/a/BlurOverlay/BlurOverlay.jsx +69 -0
  384. package/src/ui/a/BlurOverlay/index.js +2 -0
  385. package/src/ui/a/BlurOverlay/styles.scss +33 -0
  386. package/src/ui/a/ContentTree/ContentTree.jsx +9 -9
  387. package/src/ui/a/ContentTree/common/Tree/Tree.jsx +19 -7
  388. package/src/ui/a/ContentTree/styles.scss +34 -11
  389. package/src/ui/a/Conversation/Conversation.jsx +34 -44
  390. package/src/ui/a/Conversation/common/Message/Message.jsx +18 -11
  391. package/src/ui/a/Conversation/styles.scss +56 -124
  392. package/src/ui/a/DatePicker/DatePicker.jsx +201 -0
  393. package/src/ui/a/DatePicker/index.js +2 -0
  394. package/src/ui/a/DatePicker/styles.scss +380 -0
  395. package/src/ui/a/DotInfo/DotInfo.jsx +23 -29
  396. package/src/ui/a/Figure/Figure.jsx +21 -27
  397. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +27 -33
  398. package/src/ui/a/IconList/IconList.jsx +22 -28
  399. package/src/ui/a/Label/Label.jsx +21 -27
  400. package/src/ui/a/Label/styles.scss +5 -5
  401. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +43 -49
  402. package/src/ui/a/MetaCard/MetaCard.jsx +25 -24
  403. package/src/ui/a/MetaCard/styles.scss +18 -1
  404. package/src/ui/a/People/People.jsx +25 -31
  405. package/src/ui/a/People/common/Person/Person.jsx +34 -22
  406. package/src/ui/a/People/styles.scss +10 -4
  407. package/src/ui/a/Popover/Popover.jsx +4 -6
  408. package/src/ui/a/Popover/styles.scss +1 -1
  409. package/src/ui/a/ProgressBar/ProgressBar.jsx +27 -31
  410. package/src/ui/a/ProgressBar/styles.scss +11 -1
  411. package/src/ui/a/Quote/Quote.jsx +38 -37
  412. package/src/ui/a/Quote/styles.scss +16 -37
  413. package/src/ui/a/Removable/Removable.jsx +78 -0
  414. package/src/ui/a/Removable/index.js +2 -0
  415. package/src/ui/a/Removable/styles.scss +33 -0
  416. package/src/ui/a/SVG/SVG.jsx +3 -5
  417. package/src/ui/a/SnapScroller/SnapScroller.jsx +28 -6
  418. package/src/ui/a/SnapScroller/styles.scss +32 -3
  419. package/src/ui/a/Spinner/Spinner.jsx +19 -25
  420. package/src/ui/a/TextSteps/TextSteps.jsx +31 -38
  421. package/src/ui/a/TextSteps/styles.scss +1 -1
  422. package/src/ui/a/Timestamp/Timestamp.jsx +5 -7
  423. package/src/ui/a/Tip/Tip.jsx +39 -28
  424. package/src/ui/a/Tip/styles.scss +7 -13
  425. package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +93 -0
  426. package/src/ui/a/ToggleSwitch/index.js +2 -0
  427. package/src/ui/a/ToggleSwitch/styles.scss +51 -0
  428. package/src/ui/a/Tooltip/Tooltip.jsx +106 -0
  429. package/src/ui/a/Tooltip/index.js +2 -0
  430. package/src/ui/a/Tooltip/styles.scss +61 -0
  431. package/src/ui/a/XMLEditor/XMLEditor.jsx +200 -0
  432. package/src/ui/a/XMLEditor/common/index.js +1 -0
  433. package/src/ui/a/XMLEditor/common/theme.jsx +184 -0
  434. package/src/ui/a/XMLEditor/index.js +1 -0
  435. package/src/ui/a/XMLEditor/styles.scss +24 -0
  436. package/src/ui/a/index.js +6 -0
  437. package/src/ui/b/Button/Button.jsx +25 -10
  438. package/src/ui/b/Button/common/Group/Group.jsx +65 -0
  439. package/src/ui/b/Button/common/Group/index.js +1 -0
  440. package/src/ui/b/Button/common/Group/styles.scss +11 -0
  441. package/src/ui/b/Button/common/index.js +1 -0
  442. package/src/ui/b/Button/styles.scss +39 -11
  443. package/src/ui/b/Card/Card.jsx +25 -31
  444. package/src/ui/b/Card/common/Group/Group.jsx +3 -6
  445. package/src/ui/b/Card/common/Group/styles.scss +0 -7
  446. package/src/ui/b/Card/styles.scss +11 -0
  447. package/src/ui/b/Logo/Logo.jsx +3 -5
  448. package/src/ui/b/Page/Page.jsx +5 -6
  449. package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +20 -3
  450. package/src/ui/b/Page/common/Section/Section.jsx +10 -3
  451. package/src/ui/b/Page/styles.scss +5 -2
  452. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +7 -8
  453. package/src/ui/b/SocialMediaButton/styles.scss +0 -14
  454. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +13 -35
  455. package/src/ui/b/ThemeSelector/styles.scss +44 -6
  456. package/src/ui/b/Title/Title.jsx +36 -46
  457. package/src/ui/c/Modal/Modal.jsx +25 -31
  458. package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +1 -1
  459. package/src/ui/c/Modal/styles.scss +7 -12
  460. package/src/ui/c/Shortener/Shortener.jsx +3 -5
  461. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -6
  462. package/src/ui/c/index.js +0 -1
  463. package/src/ui/f/FormInput/FormInput.jsx +26 -5
  464. package/src/ui/f/common/Debugger/Debugger.jsx +3 -5
  465. package/src/ui/f/common/Description/Description.jsx +7 -10
  466. package/src/ui/f/common/Description/styles.scss +1 -2
  467. package/src/ui/f/common/Label/Label.jsx +20 -28
  468. package/src/ui/f/common/Label/styles.scss +3 -2
  469. package/src/ui/f/common/index.js +1 -0
  470. package/src/ui/f/common/utils/index.js +1 -0
  471. package/src/ui/f/common/utils/lookUpInputValueFromFetchedOptions.js +23 -0
  472. package/src/ui/f/fields/Checkbox/Checkbox.jsx +37 -14
  473. package/src/ui/f/fields/Checkbox/styles.scss +5 -4
  474. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +78 -66
  475. package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +10 -3
  476. package/src/ui/f/fields/ChoicesInput/styles.scss +32 -8
  477. package/src/ui/f/fields/EditorInput/EditorInput.jsx +286 -0
  478. package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.jsx +292 -0
  479. package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +2 -0
  480. package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
  481. package/src/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.jsx +115 -0
  482. package/src/ui/f/fields/EditorInput/common/ColorPicker/index.js +2 -0
  483. package/src/ui/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
  484. package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.jsx +134 -0
  485. package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +2 -0
  486. package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
  487. package/src/ui/f/fields/EditorInput/common/StopPropagationPlugin.jsx +29 -0
  488. package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.jsx +417 -0
  489. package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +2 -0
  490. package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
  491. package/src/ui/f/fields/EditorInput/common/TreeViewPlugin.jsx +16 -0
  492. package/src/ui/f/fields/EditorInput/common/index.js +6 -0
  493. package/src/ui/f/fields/EditorInput/index.js +2 -0
  494. package/src/ui/f/fields/EditorInput/styles.scss +240 -0
  495. package/src/ui/f/fields/LinkInput/LinkInput.jsx +185 -0
  496. package/src/ui/f/fields/LinkInput/index.js +2 -0
  497. package/src/ui/f/fields/LinkInput/styles.scss +90 -0
  498. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +41 -12
  499. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +51 -14
  500. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +101 -39
  501. package/src/ui/f/fields/QueryCombobox/styles.scss +69 -27
  502. package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +8 -1
  503. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +13 -18
  504. package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +4 -4
  505. package/src/ui/f/fields/RatingsInput/styles.scss +7 -10
  506. package/src/ui/f/fields/SelectInput/SelectInput.jsx +50 -48
  507. package/src/ui/f/fields/SelectInput/common/Menu/Menu.jsx +103 -0
  508. package/{dist/es/c/ContentSlides/common/Slide → src/ui/f/fields/SelectInput/common/Menu}/index.js +1 -1
  509. package/src/ui/f/fields/SelectInput/common/Multiple/Multiple.jsx +288 -0
  510. package/src/ui/f/fields/SelectInput/common/Multiple/index.js +2 -0
  511. package/src/ui/f/fields/SelectInput/common/Single/Single.jsx +139 -0
  512. package/src/ui/f/fields/SelectInput/common/Single/index.js +2 -0
  513. package/src/ui/f/fields/SelectInput/common/index.js +3 -0
  514. package/src/ui/f/fields/SelectInput/styles.scss +163 -32
  515. package/src/ui/f/fields/TextInput/TextInput.jsx +35 -26
  516. package/src/ui/f/fields/TextInput/styles.scss +59 -22
  517. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +22 -31
  518. package/src/ui/f/fields/TextareaInput/styles.scss +33 -13
  519. package/src/ui/f/fields/index.js +2 -0
  520. package/src/ui/form.scss +1 -1
  521. package/src/ui/g/DragAndDrop/DragAndDrop.jsx +118 -0
  522. package/src/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.jsx +98 -0
  523. package/src/ui/g/DragAndDrop/common/DraggableItem/index.js +2 -0
  524. package/src/ui/g/DragAndDrop/common/DraggableItem/styles.scss +12 -0
  525. package/src/ui/g/DragAndDrop/common/index.js +1 -0
  526. package/src/ui/g/DragAndDrop/index.js +2 -0
  527. package/src/ui/g/DragAndDrop/styles.scss +8 -0
  528. package/src/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.jsx +180 -0
  529. package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.jsx +80 -0
  530. package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +2 -0
  531. package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +9 -0
  532. package/src/ui/g/ExpandableLexicalPreview/common/index.js +1 -0
  533. package/src/ui/g/ExpandableLexicalPreview/index.js +2 -0
  534. package/src/ui/g/ExpandableLexicalPreview/styles.scss +34 -0
  535. package/src/ui/g/index.js +2 -0
  536. package/src/ui/index.js +1 -1
  537. package/src/ui/utils/hooks/index.js +1 -0
  538. package/src/ui/utils/hooks/useOutsideClick.js +23 -0
  539. package/src/ui/utils/index.js +1 -1
  540. package/tests/__snapshots__/Storyshots.test.js.snap +25444 -8784
  541. package/tests/mockResizeObserver.js +9 -0
  542. package/tests/test-setup.js +3 -0
  543. package/dist/cjs/b/Title/styles.scss +0 -16
  544. package/dist/cjs/c/ContentSlides/ContentSlides.js +0 -172
  545. package/dist/cjs/c/ContentSlides/Context.js +0 -11
  546. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +0 -127
  547. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +0 -13
  548. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +0 -129
  549. package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +0 -95
  550. package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +0 -76
  551. package/dist/cjs/c/ContentSlides/common/index.js +0 -33
  552. package/dist/cjs/c/ContentSlides/index.js +0 -27
  553. package/dist/cjs/c/ContentSlides/styles.scss +0 -312
  554. package/dist/cjs/c/ContentSlides/useContentSlides.js +0 -11
  555. package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +0 -59
  556. package/dist/cjs/r/SwitchRouteMap/index.js +0 -13
  557. package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +0 -75
  558. package/dist/cjs/r/common/index.js +0 -12
  559. package/dist/cjs/r/index.js +0 -27
  560. package/dist/es/b/Title/styles.scss +0 -16
  561. package/dist/es/c/ContentSlides/ContentSlides.js +0 -162
  562. package/dist/es/c/ContentSlides/Context.js +0 -2
  563. package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +0 -116
  564. package/dist/es/c/ContentSlides/common/HorizontalMenu/index.js +0 -2
  565. package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +0 -118
  566. package/dist/es/c/ContentSlides/common/Navigator/index.js +0 -2
  567. package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +0 -84
  568. package/dist/es/c/ContentSlides/common/Slide/Slide.js +0 -65
  569. package/dist/es/c/ContentSlides/common/index.js +0 -4
  570. package/dist/es/c/ContentSlides/index.js +0 -4
  571. package/dist/es/c/ContentSlides/styles.scss +0 -312
  572. package/dist/es/c/ContentSlides/useContentSlides.js +0 -3
  573. package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +0 -45
  574. package/dist/es/r/SwitchRouteMap/index.js +0 -2
  575. package/dist/es/r/common/PrivateRoute/PrivateRoute.js +0 -67
  576. package/dist/es/r/common/PrivateRoute/index.js +0 -2
  577. package/dist/es/r/common/index.js +0 -1
  578. package/dist/es/r/index.js +0 -2
  579. package/src/stories/c/ContentSlides.stories.jsx +0 -214
  580. package/src/ui/b/Title/styles.scss +0 -16
  581. package/src/ui/c/ContentSlides/ContentSlides.jsx +0 -216
  582. package/src/ui/c/ContentSlides/Context.js +0 -3
  583. package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +0 -145
  584. package/src/ui/c/ContentSlides/common/HorizontalMenu/index.js +0 -2
  585. package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +0 -150
  586. package/src/ui/c/ContentSlides/common/Navigator/index.js +0 -2
  587. package/src/ui/c/ContentSlides/common/Sidebar/Sidebar.jsx +0 -135
  588. package/src/ui/c/ContentSlides/common/Slide/Slide.jsx +0 -87
  589. package/src/ui/c/ContentSlides/common/index.js +0 -4
  590. package/src/ui/c/ContentSlides/index.js +0 -4
  591. package/src/ui/c/ContentSlides/styles.scss +0 -312
  592. package/src/ui/c/ContentSlides/useContentSlides.js +0 -4
  593. package/src/ui/r/SwitchRouteMap/SwitchRouteMap.jsx +0 -64
  594. package/src/ui/r/SwitchRouteMap/index.js +0 -2
  595. package/src/ui/r/common/PrivateRoute/PrivateRoute.jsx +0 -73
  596. package/src/ui/r/common/PrivateRoute/index.js +0 -2
  597. package/src/ui/r/common/index.js +0 -1
  598. package/src/ui/r/index.js +0 -2
@@ -9,9 +9,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  var _formik = require("formik");
10
10
  var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
- 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); }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ 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); } /* @pareto-engineering/generator-front 1.0.12 */ // Local Definitions
15
15
  const baseClassName = _exports.default.base;
16
16
  const componentClassName = 'choice';
17
17
 
@@ -51,7 +51,7 @@ const Choice = _ref => {
51
51
  disabled: disabled
52
52
  })), /*#__PURE__*/React.createElement("label", {
53
53
  htmlFor: id,
54
- className: labelClassName,
54
+ className: [labelClassName, disabled && 'disabled'].filter(e => e).join(' '),
55
55
  style: labelStyle
56
56
  }, label));
57
57
  };
@@ -101,5 +101,4 @@ Choice.propTypes = {
101
101
  */
102
102
  disabled: _propTypes.default.bool
103
103
  };
104
- var _default = Choice;
105
- exports.default = _default;
104
+ var _default = exports.default = Choice;
@@ -1,5 +1,6 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  /* stylelint-disable selector-max-compound-selectors -- exception */
3
+ /* stylelint-disable max-nesting-depth -- exception */
3
4
 
4
5
  @use "@pareto-engineering/bem";
5
6
  @use "@pareto-engineering/styles/src/mixins";
@@ -9,30 +10,49 @@ $default-flex-separator:calc(1em / 2) calc(.75em / 2);
9
10
  $default-transition:var(--theme-default-transition);
10
11
  $default-label-padding: .3em 1em calc(2em - .3em);
11
12
  $default-label-height: .5em;
13
+ $default-input-border-radius: var(--theme-default-input-border-radius);
14
+ $default-border: var(--theme-default-input-border);
15
+ $hover-border: var(--theme-hover-input-border);
16
+ $focus-border: var(--theme-focus-input-border);
17
+ $default-background: var(--background-inputs);
18
+ $disabled-background: var(--background-inputs-30);
12
19
 
13
20
  .#{bem.$base}.choices-input {
14
- >.choices {
21
+ display: flex;
22
+ flex-direction: column;
23
+
24
+ > .#{bem.$base}.form-label {
25
+ margin-bottom: var(--gap);
26
+ }
27
+
28
+ > .choices {
15
29
  display: flex;
16
30
  flex-wrap: wrap;
17
31
  gap: $default-flex-separator;
18
32
 
33
+ &.space-between {
34
+ justify-content: space-between;
35
+ }
36
+
19
37
  >.choice {
20
38
  display: flex;
21
39
 
22
40
  input {
23
41
  opacity: 0;
24
- position: absolute;
42
+ position: fixed;
25
43
  visibility: none;
26
44
  z-index: -1;
27
45
  }
28
46
 
29
47
  input:disabled + label {
30
- background-color: var(--hard-x);
48
+ background-color: $disabled-background;
31
49
  }
32
50
 
33
- label {
34
- background-color: var(--background-inputs);
35
- border-radius: var(--theme-default-border-radius);
51
+ > label {
52
+ background-color: $default-background;
53
+ border: $default-border;
54
+ border-radius: $default-input-border-radius;
55
+ color: var(--paragraph);
36
56
  cursor: pointer;
37
57
  display: block;
38
58
  height: $default-label-height;
@@ -40,9 +60,12 @@ $default-label-height: .5em;
40
60
  padding: $default-label-padding;
41
61
  position: relative;
42
62
  transition: $default-transition;
63
+ white-space: nowrap;
43
64
 
44
- &:hover {
45
- box-shadow: var(--theme-default-input-box-shadow);
65
+ &:not(.disabled) {
66
+ &:hover {
67
+ border: $hover-border;
68
+ }
46
69
  }
47
70
  }
48
71
 
@@ -53,3 +76,4 @@ $default-label-height: .5em;
53
76
  }
54
77
  }
55
78
  }
79
+
@@ -0,0 +1,236 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var React = _react;
9
+ var _formik = require("formik");
10
+ var _LexicalComposer = require("@lexical/react/LexicalComposer");
11
+ var _LexicalRichTextPlugin = require("@lexical/react/LexicalRichTextPlugin");
12
+ var _LexicalContentEditable = require("@lexical/react/LexicalContentEditable");
13
+ var _LexicalOnChangePlugin = require("@lexical/react/LexicalOnChangePlugin");
14
+ var _LexicalHistoryPlugin = require("@lexical/react/LexicalHistoryPlugin");
15
+ var _LexicalLinkPlugin = require("@lexical/react/LexicalLinkPlugin");
16
+ var _LexicalClickableLinkPlugin = _interopRequireDefault(require("@lexical/react/LexicalClickableLinkPlugin"));
17
+ var _LexicalListPlugin = require("@lexical/react/LexicalListPlugin");
18
+ var _LexicalErrorBoundary = _interopRequireDefault(require("@lexical/react/LexicalErrorBoundary"));
19
+ var _LexicalTabIndentationPlugin = require("@lexical/react/LexicalTabIndentationPlugin");
20
+ var _link = require("@lexical/link");
21
+ var _list = require("@lexical/list");
22
+ var _LexicalCheckListPlugin = require("@lexical/react/LexicalCheckListPlugin");
23
+ var _richText = require("@lexical/rich-text");
24
+ var _code = require("@lexical/code");
25
+ var _LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
26
+ var _propTypes = _interopRequireDefault(require("prop-types"));
27
+ var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
28
+ var _common = require("../../common");
29
+ var _common2 = require("./common");
30
+ require("./styles.scss");
31
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
33
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
34
+ /* @pareto-engineering/generator-front 1.0.12 */
35
+ /* eslint-disable import/no-extraneous-dependencies -- required here */
36
+
37
+ // Local Definitions
38
+
39
+ const baseClassName = _exports.default.base;
40
+ const componentClassName = 'editor-input';
41
+ const ExposeEditorStatePlugin = _ref => {
42
+ let {
43
+ setEditorState
44
+ } = _ref;
45
+ const [editor] = (0, _LexicalComposerContext.useLexicalComposerContext)();
46
+ (0, _react.useEffect)(() => {
47
+ setEditorState(editor);
48
+ }, [editor]);
49
+ return null;
50
+ };
51
+
52
+ /**
53
+ * This is the component description.
54
+ */
55
+ const EditorInput = _ref2 => {
56
+ let {
57
+ id,
58
+ className: userClassName,
59
+ style,
60
+ name,
61
+ label,
62
+ // validate,
63
+ resize,
64
+ color,
65
+ rows,
66
+ optional,
67
+ labelColor,
68
+ description,
69
+ disabled,
70
+ showDebugger,
71
+ stopPropagationKeys,
72
+ setEditorState
73
+ // ...otherProps
74
+ } = _ref2;
75
+ const formik = (0, _formik.useFormikContext)();
76
+ const setInitialValue = () => {
77
+ const value = formik.values[name];
78
+ try {
79
+ JSON.parse(value);
80
+ return value;
81
+ } catch {
82
+ const defaultValue = {
83
+ root: {
84
+ children: [{
85
+ children: [{
86
+ detail: 0,
87
+ format: 0,
88
+ mode: 'normal',
89
+ style: '',
90
+ text: '',
91
+ type: 'text',
92
+ version: 1
93
+ }],
94
+ direction: 'ltr',
95
+ format: '',
96
+ indent: 0,
97
+ type: 'paragraph',
98
+ version: 1
99
+ }],
100
+ direction: 'ltr',
101
+ format: '',
102
+ indent: 0,
103
+ type: 'root',
104
+ version: 1
105
+ }
106
+ };
107
+ defaultValue.root.children[0].children[0].text = value;
108
+ return JSON.stringify(defaultValue);
109
+ }
110
+ };
111
+ const onChange = state => {
112
+ formik.setValues({
113
+ ...formik.values,
114
+ [name]: JSON.stringify(state)
115
+ });
116
+ };
117
+ const initialConfig = {
118
+ nameSpace: name,
119
+ editable: !disabled,
120
+ editorState: setInitialValue(),
121
+ theme: {
122
+ text: {
123
+ italic: 'italic',
124
+ strikethrough: 'strikethrough',
125
+ underline: 'underlined'
126
+ },
127
+ list: {
128
+ listitemChecked: 'lexical-list-item-checked',
129
+ listitemUnchecked: 'lexical-list-item-unchecked'
130
+ },
131
+ code: 'lexical-code'
132
+ },
133
+ nodes: [_richText.HeadingNode, _richText.QuoteNode, _code.CodeNode, _code.CodeHighlightNode, _link.AutoLinkNode, _link.LinkNode, _list.ListNode, _list.ListItemNode]
134
+ };
135
+ return /*#__PURE__*/React.createElement(_LexicalComposer.LexicalComposer, {
136
+ initialConfig: initialConfig
137
+ }, /*#__PURE__*/React.createElement("div", {
138
+ id: id,
139
+ className: [baseClassName, componentClassName, userClassName, `y-${color}`, disabled && 'disabled'].filter(e => e).join(' '),
140
+ style: {
141
+ ...style,
142
+ '--resize': resize,
143
+ '--rows': `${rows}em`
144
+ }
145
+ }, /*#__PURE__*/React.createElement(_common.FormLabel, {
146
+ name: name,
147
+ color: labelColor,
148
+ optional: optional
149
+ }, label), !disabled && /*#__PURE__*/React.createElement(_common2.ToolbarPlugin, null), /*#__PURE__*/React.createElement(_LexicalRichTextPlugin.RichTextPlugin, {
150
+ contentEditable: /*#__PURE__*/React.createElement(_LexicalContentEditable.ContentEditable, {
151
+ className: "content-editable",
152
+ id: name
153
+ }),
154
+ ErrorBoundary: _LexicalErrorBoundary.default
155
+ }), /*#__PURE__*/React.createElement(_LexicalListPlugin.ListPlugin, null), /*#__PURE__*/React.createElement(_LexicalCheckListPlugin.CheckListPlugin, null), /*#__PURE__*/React.createElement(_LexicalOnChangePlugin.OnChangePlugin, {
156
+ onChange: onChange
157
+ }), /*#__PURE__*/React.createElement(_LexicalLinkPlugin.LinkPlugin, null), /*#__PURE__*/React.createElement(_LexicalClickableLinkPlugin.default, null), /*#__PURE__*/React.createElement(_LexicalTabIndentationPlugin.TabIndentationPlugin, null), setEditorState && /*#__PURE__*/React.createElement(ExposeEditorStatePlugin, {
158
+ setEditorState: setEditorState
159
+ }), /*#__PURE__*/React.createElement(_LexicalHistoryPlugin.HistoryPlugin, null), stopPropagationKeys && /*#__PURE__*/React.createElement(_common2.StopPropagationPlugin, {
160
+ stopPropagationKeys: stopPropagationKeys
161
+ }), /*#__PURE__*/React.createElement(_common.FormDescription, {
162
+ className: "s-1",
163
+ description: description,
164
+ name: name
165
+ }), showDebugger && /*#__PURE__*/React.createElement(_common2.TreeViewPlugin, null)));
166
+ };
167
+ EditorInput.propTypes = {
168
+ /**
169
+ * The HTML id for this element
170
+ */
171
+ id: _propTypes.default.string,
172
+ /**
173
+ * The HTML class names for this element
174
+ */
175
+ className: _propTypes.default.string,
176
+ /**
177
+ * The React-written, css properties for this element.
178
+ */
179
+ style: _propTypes.default.objectOf(_propTypes.default.string),
180
+ /**
181
+ * The input name (html - and Formik state)
182
+ */
183
+ name: _propTypes.default.string.isRequired,
184
+ /**
185
+ * The input label
186
+ */
187
+ label: _propTypes.default.string.isRequired,
188
+ /**
189
+ * The input value validator function
190
+ */
191
+ // validate:PropTypes.func,
192
+
193
+ /**
194
+ * The number of rows int the text area
195
+ */
196
+ rows: _propTypes.default.number,
197
+ /**
198
+ * Color of the text
199
+ */
200
+ color: _propTypes.default.string,
201
+ /**
202
+ * Label base color
203
+ */
204
+ labelColor: _propTypes.default.string,
205
+ /**
206
+ * Text area description
207
+ */
208
+ description: _propTypes.default.string,
209
+ /**
210
+ * Whether the text area should be disabled
211
+ */
212
+ disabled: _propTypes.default.bool,
213
+ /**
214
+ * Whether the input is optional or not
215
+ */
216
+ optional: _propTypes.default.bool,
217
+ /**
218
+ * The resize property of the text area
219
+ */
220
+ resize: _propTypes.default.oneOf(['none', 'both', 'horizontal', 'vertical']),
221
+ /**
222
+ * Whether to show the debugger or not
223
+ */
224
+ showDebugger: _propTypes.default.bool,
225
+ /**
226
+ * Map to stop propagation of the given keys
227
+ */
228
+ stopPropagationKeys: _propTypes.default.arrayOf(_propTypes.default.string)
229
+ };
230
+ EditorInput.defaultProps = {
231
+ rows: 10,
232
+ disabled: false,
233
+ color: 'paragraph',
234
+ resize: 'vertical'
235
+ };
236
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(EditorInput);
@@ -0,0 +1,256 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var React = _react;
9
+ var _lexical = require("lexical");
10
+ var _richText = require("@lexical/rich-text");
11
+ var _selection = require("@lexical/selection");
12
+ var _list = require("@lexical/list");
13
+ var _code = require("@lexical/code");
14
+ var _propTypes = _interopRequireDefault(require("prop-types"));
15
+ var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
16
+ require("./styles.scss");
17
+ var _a = require("../../../../../a");
18
+ var _utils = require("../../../../../utils");
19
+ var _ToolbarPlugin = require("../ToolbarPlugin/ToolbarPlugin");
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
22
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
+ /* @pareto-engineering/generator-front 1.0.12 */
24
+
25
+ // Local Definitions
26
+
27
+ const baseClassName = _exports.default.base;
28
+ const componentClassName = 'block-format-drop-down';
29
+ const iconsMap = {
30
+ bullet: {
31
+ icon: '.',
32
+ className: 'icon'
33
+ },
34
+ check: {
35
+ icon: '4',
36
+ className: 'ai-icon'
37
+ },
38
+ code: {
39
+ icon: '6',
40
+ className: 'ai-icon'
41
+ },
42
+ h1: {
43
+ icon: '1',
44
+ className: 'ai-icon'
45
+ },
46
+ h2: {
47
+ icon: '2',
48
+ className: 'ai-icon'
49
+ },
50
+ h3: {
51
+ icon: '3',
52
+ className: 'ai-icon'
53
+ },
54
+ number: {
55
+ icon: '-',
56
+ className: 'icon'
57
+ },
58
+ paragraph: {
59
+ icon: 'N',
60
+ className: 'ai-icon'
61
+ },
62
+ quote: {
63
+ icon: '5',
64
+ className: 'ai-icon'
65
+ }
66
+ };
67
+ /**
68
+ * This is the component description.
69
+ */
70
+ const BlockFormatDropDown = _ref => {
71
+ let {
72
+ id,
73
+ className: userClassName,
74
+ style,
75
+ editor,
76
+ blockType
77
+ // ...otherProps
78
+ } = _ref;
79
+ const formatParagraph = () => {
80
+ editor.update(() => {
81
+ const selection = (0, _lexical.$getSelection)();
82
+ if ((0, _lexical.$isRangeSelection)(selection) || (0, _lexical.DEPRECATED_$isGridSelection)(selection)) {
83
+ (0, _selection.$setBlocksType)(selection, () => (0, _lexical.$createParagraphNode)());
84
+ }
85
+ });
86
+ };
87
+ const formatHeading = headingSize => {
88
+ if (blockType !== headingSize) {
89
+ editor.update(() => {
90
+ const selection = (0, _lexical.$getSelection)();
91
+ if ((0, _lexical.$isRangeSelection)(selection) || (0, _lexical.DEPRECATED_$isGridSelection)(selection)) {
92
+ (0, _selection.$setBlocksType)(selection, () => (0, _richText.$createHeadingNode)(headingSize));
93
+ }
94
+ });
95
+ }
96
+ };
97
+ const formatBulletList = () => {
98
+ if (blockType !== 'bullet') {
99
+ editor.dispatchCommand(_list.INSERT_UNORDERED_LIST_COMMAND, undefined);
100
+ } else {
101
+ editor.dispatchCommand(_list.REMOVE_LIST_COMMAND, undefined);
102
+ }
103
+ };
104
+ const formatCheckList = () => {
105
+ if (blockType !== 'check') {
106
+ editor.dispatchCommand(_list.INSERT_CHECK_LIST_COMMAND, undefined);
107
+ } else {
108
+ editor.dispatchCommand(_list.REMOVE_LIST_COMMAND, undefined);
109
+ }
110
+ };
111
+ const formatNumberedList = () => {
112
+ if (blockType !== 'number') {
113
+ editor.dispatchCommand(_list.INSERT_ORDERED_LIST_COMMAND, undefined);
114
+ } else {
115
+ editor.dispatchCommand(_list.REMOVE_LIST_COMMAND, undefined);
116
+ }
117
+ };
118
+ const formatQuote = () => {
119
+ if (blockType !== 'quote') {
120
+ editor.update(() => {
121
+ const selection = (0, _lexical.$getSelection)();
122
+ if ((0, _lexical.$isRangeSelection)(selection) || (0, _lexical.DEPRECATED_$isGridSelection)(selection)) {
123
+ (0, _selection.$setBlocksType)(selection, () => (0, _richText.$createQuoteNode)());
124
+ }
125
+ });
126
+ }
127
+ };
128
+ const formatCode = () => {
129
+ if (blockType !== 'code') {
130
+ editor.update(() => {
131
+ let selection = (0, _lexical.$getSelection)();
132
+ if ((0, _lexical.$isRangeSelection)(selection) || (0, _lexical.DEPRECATED_$isGridSelection)(selection)) {
133
+ if (selection.isCollapsed()) {
134
+ (0, _selection.$setBlocksType)(selection, () => (0, _code.$createCodeNode)());
135
+ } else {
136
+ const textContent = selection.getTextContent();
137
+ const codeNode = (0, _code.$createCodeNode)();
138
+ selection.insertNodes([codeNode]);
139
+ selection = (0, _lexical.$getSelection)();
140
+ if ((0, _lexical.$isRangeSelection)(selection)) selection.insertRawText(textContent);
141
+ }
142
+ }
143
+ });
144
+ }
145
+ };
146
+ const parentRef = (0, _react.useRef)(null);
147
+ const [isOpen, setIsOpen] = (0, _react.useState)(false);
148
+ (0, _utils.useOutsideClick)(parentRef, () => setIsOpen(false));
149
+ return /*#__PURE__*/React.createElement("button", {
150
+ id: id,
151
+ className: [baseClassName, componentClassName, userClassName, 'group'].filter(e => e).join(' '),
152
+ style: style,
153
+ ref: parentRef,
154
+ type: "button",
155
+ onClick: () => setIsOpen(!isOpen)
156
+ // {...otherProps}
157
+ }, /*#__PURE__*/React.createElement("span", {
158
+ className: iconsMap[blockType].className
159
+ }, iconsMap[blockType].icon), /*#__PURE__*/React.createElement("span", null, _ToolbarPlugin.blockTypeToBlockName[blockType]), /*#__PURE__*/React.createElement("span", {
160
+ className: "icon"
161
+ }, "V"), isOpen && /*#__PURE__*/React.createElement(_a.Popover, {
162
+ parentRef: parentRef,
163
+ isOpen: isOpen,
164
+ color: "background-far"
165
+ }, /*#__PURE__*/React.createElement("button", {
166
+ className: `item ${blockType === 'paragraph' ? 'active' : ''}`,
167
+ onClick: formatParagraph,
168
+ type: "button"
169
+ }, /*#__PURE__*/React.createElement("span", {
170
+ className: "ai-icon"
171
+ }, "N"), /*#__PURE__*/React.createElement("span", {
172
+ className: "text"
173
+ }, "Normal")), /*#__PURE__*/React.createElement("button", {
174
+ className: `item ${blockType === 'h1' ? 'active' : ''}`,
175
+ onClick: () => formatHeading('h1'),
176
+ type: "button"
177
+ }, /*#__PURE__*/React.createElement("span", {
178
+ className: "ai-icon"
179
+ }, "1"), /*#__PURE__*/React.createElement("span", {
180
+ className: "text"
181
+ }, "Heading 1")), /*#__PURE__*/React.createElement("button", {
182
+ className: `item ${blockType === 'h2' ? 'active' : ''}`,
183
+ onClick: () => formatHeading('h2'),
184
+ type: "button"
185
+ }, /*#__PURE__*/React.createElement("span", {
186
+ className: "ai-icon"
187
+ }, "2"), /*#__PURE__*/React.createElement("span", {
188
+ className: "text"
189
+ }, "Heading 2")), /*#__PURE__*/React.createElement("button", {
190
+ className: `item ${blockType === 'h3' ? 'active' : ''}`,
191
+ onClick: () => formatHeading('h3'),
192
+ type: "button"
193
+ }, /*#__PURE__*/React.createElement("span", {
194
+ className: "ai-icon"
195
+ }, "3"), /*#__PURE__*/React.createElement("span", {
196
+ className: "text"
197
+ }, "Heading 3")), /*#__PURE__*/React.createElement("button", {
198
+ className: `item ${blockType === 'bullet' ? 'active' : ''}`,
199
+ onClick: formatBulletList,
200
+ type: "button"
201
+ }, /*#__PURE__*/React.createElement("span", {
202
+ className: "icon"
203
+ }, "."), /*#__PURE__*/React.createElement("span", {
204
+ className: "text"
205
+ }, "Bullet List")), /*#__PURE__*/React.createElement("button", {
206
+ className: `item ${blockType === 'number' ? 'active' : ''}`,
207
+ onClick: formatNumberedList,
208
+ type: "button"
209
+ }, /*#__PURE__*/React.createElement("span", {
210
+ className: "icon"
211
+ }, "-"), /*#__PURE__*/React.createElement("span", {
212
+ className: "text"
213
+ }, "Numbered List")), /*#__PURE__*/React.createElement("button", {
214
+ className: `item ${blockType === 'check' ? 'active' : ''}`,
215
+ onClick: formatCheckList,
216
+ type: "button"
217
+ }, /*#__PURE__*/React.createElement("span", {
218
+ className: "ai-icon"
219
+ }, "4"), /*#__PURE__*/React.createElement("span", {
220
+ className: "text"
221
+ }, "Check List")), /*#__PURE__*/React.createElement("button", {
222
+ className: `item ${blockType === 'quote' ? 'active' : ''}`,
223
+ onClick: formatQuote,
224
+ type: "button"
225
+ }, /*#__PURE__*/React.createElement("span", {
226
+ className: "ai-icon"
227
+ }, "5"), /*#__PURE__*/React.createElement("span", {
228
+ className: "text"
229
+ }, "Quote")), /*#__PURE__*/React.createElement("button", {
230
+ className: `item ${blockType === 'code' ? 'active' : ''}`,
231
+ onClick: formatCode,
232
+ type: "button"
233
+ }, /*#__PURE__*/React.createElement("span", {
234
+ className: "ai-icon"
235
+ }, "6"), /*#__PURE__*/React.createElement("span", {
236
+ className: "text"
237
+ }, "Code Block"))));
238
+ };
239
+ BlockFormatDropDown.propTypes = {
240
+ /**
241
+ * The HTML id for this element
242
+ */
243
+ id: _propTypes.default.string,
244
+ /**
245
+ * The HTML class names for this element
246
+ */
247
+ className: _propTypes.default.string,
248
+ /**
249
+ * The React-written, css properties for this element.
250
+ */
251
+ style: _propTypes.default.objectOf(_propTypes.default.string)
252
+ };
253
+ BlockFormatDropDown.defaultProps = {
254
+ // someProp:false
255
+ };
256
+ var _default = exports.default = BlockFormatDropDown;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "BlockFormatDropDown", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _BlockFormatDropDown.default;
10
+ }
11
+ });
12
+ var _BlockFormatDropDown = _interopRequireDefault(require("./BlockFormatDropDown"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,55 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+
3
+ @use "@pareto-engineering/bem";
4
+
5
+ $default-width: 15em;
6
+
7
+ .#{bem.$base}.block-format-drop-down {
8
+ align-items: center;
9
+ background-color: var(--x);
10
+ border: 0;
11
+ color: var(--on-background-inputs);
12
+ cursor: pointer;
13
+ display: flex;
14
+ gap: calc(var(--gap) / 2);
15
+ margin-inline: calc(var(--theme-default-padding) / 4);
16
+ padding: calc(var(--theme-default-padding) / 2);
17
+ position: relative;
18
+
19
+ &:hover {
20
+ background: var(--hard-x);
21
+ border-radius: calc(var(--theme-default-border-radius) / 2);
22
+ }
23
+
24
+ > .#{bem.$base}.popover {
25
+ background-color: var(--background-far);
26
+ border: 1px solid var(--hard-background-cards);
27
+ border-radius: calc(var(--theme-default-border-radius) / 2);
28
+ color: var(--heading);
29
+ display: flex;
30
+ flex-direction: column;
31
+ padding: calc(var(--theme-default-padding) / 2);
32
+ width: $default-width;
33
+
34
+ > .item {
35
+ align-items: center;
36
+ background-color: var(--x);
37
+ border: 0;
38
+ border-radius: calc(var(--theme-default-border-radius) / 2);
39
+ color: var(--paragraph);
40
+ cursor: pointer;
41
+ display: flex;
42
+ gap: calc(var(--gap) / 2);
43
+ padding: calc(var(--theme-default-padding) / 2);
44
+ transition: all .2s;
45
+
46
+ &:hover {
47
+ background-color: var(--hard-x);
48
+ }
49
+
50
+ &.active {
51
+ background-color: var(--hard-ui-main);
52
+ }
53
+ }
54
+ }
55
+ }