@webiny/ui 5.43.3 → 6.0.0-alpha.1

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 (575) hide show
  1. package/Accordion/Accordion.d.ts +8 -4
  2. package/Accordion/Accordion.js +9 -30
  3. package/Accordion/Accordion.js.map +1 -1
  4. package/Accordion/AccordionItem.d.ts +97 -37
  5. package/Accordion/AccordionItem.js +32 -188
  6. package/Accordion/AccordionItem.js.map +1 -1
  7. package/Accordion/AccordionItemActions.d.ts +8 -0
  8. package/Accordion/AccordionItemActions.js +30 -28
  9. package/Accordion/AccordionItemActions.js.map +1 -1
  10. package/Accordion/index.js +2 -27
  11. package/Accordion/index.js.map +1 -1
  12. package/Alert/Alert.d.ts +2 -1
  13. package/Alert/Alert.js +16 -52
  14. package/Alert/Alert.js.map +1 -1
  15. package/Alert/index.js +1 -16
  16. package/Alert/index.js.map +1 -1
  17. package/AutoComplete/AutoComplete.d.ts +7 -19
  18. package/AutoComplete/AutoComplete.js +61 -289
  19. package/AutoComplete/AutoComplete.js.map +1 -1
  20. package/AutoComplete/MultiAutoComplete.d.ts +13 -47
  21. package/AutoComplete/MultiAutoComplete.js +78 -563
  22. package/AutoComplete/MultiAutoComplete.js.map +1 -1
  23. package/AutoComplete/index.js +2 -27
  24. package/AutoComplete/index.js.map +1 -1
  25. package/AutoComplete/types.d.ts +6 -6
  26. package/AutoComplete/types.js +1 -5
  27. package/AutoComplete/types.js.map +1 -1
  28. package/AutoComplete/utils.d.ts +1 -1
  29. package/AutoComplete/utils.js +4 -10
  30. package/AutoComplete/utils.js.map +1 -1
  31. package/Avatar/Avatar.d.ts +2 -1
  32. package/Avatar/Avatar.js +30 -81
  33. package/Avatar/Avatar.js.map +1 -1
  34. package/Avatar/index.js +1 -16
  35. package/Avatar/index.js.map +1 -1
  36. package/Button/Button.d.ts +8 -27
  37. package/Button/Button.js +12 -121
  38. package/Button/Button.js.map +1 -1
  39. package/Button/ButtonDefault.d.ts +7 -0
  40. package/Button/ButtonDefault.js +16 -0
  41. package/Button/ButtonDefault.js.map +1 -0
  42. package/Button/ButtonFloating.d.ts +7 -0
  43. package/Button/ButtonFloating.js +12 -0
  44. package/Button/ButtonFloating.js.map +1 -0
  45. package/Button/ButtonIcon.d.ts +9 -0
  46. package/Button/ButtonIcon.js +11 -0
  47. package/Button/ButtonIcon.js.map +1 -0
  48. package/Button/ButtonPrimary.d.ts +7 -0
  49. package/Button/ButtonPrimary.js +16 -0
  50. package/Button/ButtonPrimary.js.map +1 -0
  51. package/Button/ButtonSecondary.d.ts +7 -0
  52. package/Button/ButtonSecondary.js +16 -0
  53. package/Button/ButtonSecondary.js.map +1 -0
  54. package/Button/CopyButton.d.ts +17 -0
  55. package/Button/CopyButton.js +12 -0
  56. package/Button/CopyButton.js.map +1 -0
  57. package/Button/IconButton.d.ts +17 -0
  58. package/Button/IconButton.js +15 -0
  59. package/Button/IconButton.js.map +1 -0
  60. package/Button/index.d.ts +7 -2
  61. package/Button/index.js +8 -38
  62. package/Button/index.js.map +1 -1
  63. package/Button/useMappedButtonProps.d.ts +14 -0
  64. package/Button/useMappedButtonProps.js +21 -0
  65. package/Button/useMappedButtonProps.js.map +1 -0
  66. package/Carousel/Carousel.d.ts +6 -15
  67. package/Carousel/Carousel.js +10 -42
  68. package/Carousel/Carousel.js.map +1 -1
  69. package/Carousel/index.js +1 -13
  70. package/Carousel/index.js.map +1 -1
  71. package/Checkbox/Checkbox.d.ts +4 -6
  72. package/Checkbox/Checkbox.js +32 -64
  73. package/Checkbox/Checkbox.js.map +1 -1
  74. package/Checkbox/CheckboxGroup.d.ts +5 -1
  75. package/Checkbox/CheckboxGroup.js +46 -58
  76. package/Checkbox/CheckboxGroup.js.map +1 -1
  77. package/Checkbox/index.js +2 -20
  78. package/Checkbox/index.js.map +1 -1
  79. package/Chips/Chip.d.ts +31 -2
  80. package/Chips/Chip.js +44 -27
  81. package/Chips/Chip.js.map +1 -1
  82. package/Chips/Chips.d.ts +5 -1
  83. package/Chips/Chips.js +14 -21
  84. package/Chips/Chips.js.map +1 -1
  85. package/Chips/index.js +2 -27
  86. package/Chips/index.js.map +1 -1
  87. package/CodeEditor/CodeEditor.d.ts +5 -13
  88. package/CodeEditor/CodeEditor.js +12 -82
  89. package/CodeEditor/CodeEditor.js.map +1 -1
  90. package/CodeEditor/index.js +1 -16
  91. package/CodeEditor/index.js.map +1 -1
  92. package/ColorPicker/ColorPicker.d.ts +5 -20
  93. package/ColorPicker/ColorPicker.js +25 -150
  94. package/ColorPicker/ColorPicker.js.map +1 -1
  95. package/ColorPicker/index.js +1 -16
  96. package/ColorPicker/index.js.map +1 -1
  97. package/ConfirmationDialog/ConfirmationDialog.js +78 -102
  98. package/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
  99. package/ConfirmationDialog/index.js +2 -27
  100. package/ConfirmationDialog/index.js.map +1 -1
  101. package/ConfirmationDialog/withConfirmation.js +10 -18
  102. package/ConfirmationDialog/withConfirmation.js.map +1 -1
  103. package/DataTable/DataTable.d.ts +54 -91
  104. package/DataTable/DataTable.js +56 -324
  105. package/DataTable/DataTable.js.map +1 -1
  106. package/DataTable/index.js +1 -16
  107. package/DataTable/index.js.map +1 -1
  108. package/DateTime/Date.js +14 -21
  109. package/DateTime/Date.js.map +1 -1
  110. package/DateTime/index.js +1 -12
  111. package/DateTime/index.js.map +1 -1
  112. package/DelayedOnChange/index.d.ts +7 -1
  113. package/DelayedOnChange/index.js +7 -16
  114. package/DelayedOnChange/index.js.map +1 -1
  115. package/Dialog/Dialog.d.ts +47 -59
  116. package/Dialog/Dialog.js +69 -79
  117. package/Dialog/Dialog.js.map +1 -1
  118. package/Dialog/index.js +1 -16
  119. package/Dialog/index.js.map +1 -1
  120. package/Drawer/Drawer.d.ts +28 -21
  121. package/Drawer/Drawer.js +42 -52
  122. package/Drawer/Drawer.js.map +1 -1
  123. package/Drawer/index.js +1 -16
  124. package/Drawer/index.js.map +1 -1
  125. package/DynamicFieldset/index.d.ts +7 -1
  126. package/DynamicFieldset/index.js +7 -13
  127. package/DynamicFieldset/index.js.map +1 -1
  128. package/Elevation/Elevation.d.ts +6 -2
  129. package/Elevation/Elevation.js +13 -15
  130. package/Elevation/Elevation.js.map +1 -1
  131. package/Elevation/index.js +1 -16
  132. package/Elevation/index.js.map +1 -1
  133. package/FormElementMessage/FormElementMessage.d.ts +6 -2
  134. package/FormElementMessage/FormElementMessage.js +21 -16
  135. package/FormElementMessage/FormElementMessage.js.map +1 -1
  136. package/FormElementMessage/index.js +1 -12
  137. package/FormElementMessage/index.js.map +1 -1
  138. package/FullName/FullName.d.ts +4 -0
  139. package/FullName/FullName.js +11 -9
  140. package/FullName/FullName.js.map +1 -1
  141. package/FullName/index.js +1 -16
  142. package/FullName/index.js.map +1 -1
  143. package/Grid/Grid.d.ts +32 -7
  144. package/Grid/Grid.js +37 -16
  145. package/Grid/Grid.js.map +1 -1
  146. package/Grid/index.js +1 -16
  147. package/Grid/index.js.map +1 -1
  148. package/Helpers/ClassNames.d.ts +3 -3
  149. package/Helpers/ClassNames.js +13 -19
  150. package/Helpers/ClassNames.js.map +1 -1
  151. package/Helpers/index.js +2 -12
  152. package/Helpers/index.js.map +1 -1
  153. package/Icon/Icon.d.ts +7 -2
  154. package/Icon/Icon.js +9 -25
  155. package/Icon/Icon.js.map +1 -1
  156. package/Icon/index.js +1 -16
  157. package/Icon/index.js.map +1 -1
  158. package/Image/index.d.ts +6 -1
  159. package/Image/index.js +6 -15
  160. package/Image/index.js.map +1 -1
  161. package/ImageEditor/ImageEditor.d.ts +8 -23
  162. package/ImageEditor/ImageEditor.js +11 -266
  163. package/ImageEditor/ImageEditor.js.map +1 -1
  164. package/ImageEditor/index.js +1 -16
  165. package/ImageEditor/index.js.map +1 -1
  166. package/ImageUpload/Image.d.ts +8 -15
  167. package/ImageUpload/Image.js +12 -114
  168. package/ImageUpload/Image.js.map +1 -1
  169. package/ImageUpload/ImageEditorDialog.d.ts +6 -2
  170. package/ImageUpload/ImageEditorDialog.js +11 -79
  171. package/ImageUpload/ImageEditorDialog.js.map +1 -1
  172. package/ImageUpload/MultiImageUpload.d.ts +7 -22
  173. package/ImageUpload/MultiImageUpload.js +12 -278
  174. package/ImageUpload/MultiImageUpload.js.map +1 -1
  175. package/ImageUpload/SingleImageUpload.d.ts +6 -23
  176. package/ImageUpload/SingleImageUpload.js +12 -189
  177. package/ImageUpload/SingleImageUpload.js.map +1 -1
  178. package/ImageUpload/index.d.ts +1 -1
  179. package/ImageUpload/index.js +4 -34
  180. package/ImageUpload/index.js.map +1 -1
  181. package/Input/Input.d.ts +60 -8
  182. package/Input/Input.js +70 -73
  183. package/Input/Input.js.map +1 -1
  184. package/Input/index.js +1 -16
  185. package/Input/index.js.map +1 -1
  186. package/List/CollapsibleList/index.d.ts +18 -4
  187. package/List/CollapsibleList/index.js +9 -13
  188. package/List/CollapsibleList/index.js.map +1 -1
  189. package/List/DataList/DataList.d.ts +12 -38
  190. package/List/DataList/DataList.js +15 -305
  191. package/List/DataList/DataList.js.map +1 -1
  192. package/List/DataList/DataListModalOverlay/index.d.ts +12 -3
  193. package/List/DataList/DataListModalOverlay/index.js +13 -31
  194. package/List/DataList/DataListModalOverlay/index.js.map +1 -1
  195. package/List/DataList/DataListWithSections.d.ts +12 -36
  196. package/List/DataList/DataListWithSections.js +15 -323
  197. package/List/DataList/DataListWithSections.js.map +1 -1
  198. package/List/DataList/icons/index.d.ts +1 -15
  199. package/List/DataList/icons/index.js +1 -62
  200. package/List/DataList/icons/index.js.map +1 -1
  201. package/List/DataList/index.d.ts +0 -1
  202. package/List/DataList/index.js +3 -58
  203. package/List/DataList/index.js.map +1 -1
  204. package/List/DataList/types.d.ts +1 -28
  205. package/List/DataList/types.js +1 -5
  206. package/List/DataList/types.js.map +1 -1
  207. package/List/List/List.d.ts +51 -0
  208. package/List/List/List.js +16 -0
  209. package/List/List/List.js.map +1 -0
  210. package/List/List/ListItem.d.ts +61 -0
  211. package/List/List/ListItem.js +91 -0
  212. package/List/List/ListItem.js.map +1 -0
  213. package/List/List/ListItemAction.d.ts +9 -0
  214. package/List/List/ListItemAction.js +15 -0
  215. package/List/List/ListItemAction.js.map +1 -0
  216. package/List/List/ListItemGraphic.d.ts +18 -0
  217. package/List/List/ListItemGraphic.js +26 -0
  218. package/List/List/ListItemGraphic.js.map +1 -0
  219. package/List/List/ListItemMeta.d.ts +26 -0
  220. package/List/List/ListItemMeta.js +24 -0
  221. package/List/List/ListItemMeta.js.map +1 -0
  222. package/List/List/ListItemText.d.ts +42 -0
  223. package/List/List/ListItemText.js +51 -0
  224. package/List/List/ListItemText.js.map +1 -0
  225. package/List/List/index.d.ts +6 -0
  226. package/List/List/index.js +8 -0
  227. package/List/List/index.js.map +1 -0
  228. package/List/index.d.ts +1 -0
  229. package/List/index.js +4 -70
  230. package/List/index.js.map +1 -1
  231. package/Menu/Menu.d.ts +40 -4
  232. package/Menu/Menu.js +74 -100
  233. package/Menu/Menu.js.map +1 -1
  234. package/Menu/index.js +1 -16
  235. package/Menu/index.js.map +1 -1
  236. package/Mosaic/Mosaic.d.ts +5 -5
  237. package/Mosaic/Mosaic.js +6 -26
  238. package/Mosaic/Mosaic.js.map +1 -1
  239. package/Mosaic/index.js +1 -16
  240. package/Mosaic/index.js.map +1 -1
  241. package/Progress/CircularProgress.d.ts +10 -2
  242. package/Progress/CircularProgress.js +16 -67
  243. package/Progress/CircularProgress.js.map +1 -1
  244. package/Progress/index.d.ts +1 -1
  245. package/Progress/index.js +1 -13
  246. package/Progress/index.js.map +1 -1
  247. package/Radio/Radio.d.ts +4 -4
  248. package/Radio/Radio.js +34 -54
  249. package/Radio/Radio.js.map +1 -1
  250. package/Radio/RadioGroup.d.ts +7 -3
  251. package/Radio/RadioGroup.js +37 -48
  252. package/Radio/RadioGroup.js.map +1 -1
  253. package/Radio/index.js +2 -20
  254. package/Radio/index.js.map +1 -1
  255. package/RichTextEditor/RichTextEditor.d.ts +10 -29
  256. package/RichTextEditor/RichTextEditor.js +14 -131
  257. package/RichTextEditor/RichTextEditor.js.map +1 -1
  258. package/RichTextEditor/index.d.ts +3 -2
  259. package/RichTextEditor/index.js +2 -27
  260. package/RichTextEditor/index.js.map +1 -1
  261. package/Ripple/Ripple.d.ts +1 -1
  262. package/Ripple/Ripple.js +6 -15
  263. package/Ripple/Ripple.js.map +1 -1
  264. package/Ripple/index.js +1 -16
  265. package/Ripple/index.js.map +1 -1
  266. package/Scrollbar/Scrollbar.d.ts +5 -8
  267. package/Scrollbar/Scrollbar.js +7 -11
  268. package/Scrollbar/Scrollbar.js.map +1 -1
  269. package/Scrollbar/index.js +1 -16
  270. package/Scrollbar/index.js.map +1 -1
  271. package/Section/index.d.ts +4 -0
  272. package/Section/index.js +13 -66
  273. package/Section/index.js.map +1 -1
  274. package/Select/Select.d.ts +37 -4
  275. package/Select/Select.js +92 -90
  276. package/Select/Select.js.map +1 -1
  277. package/Select/index.js +1 -16
  278. package/Select/index.js.map +1 -1
  279. package/Skeleton/Skeleton.d.ts +25 -6
  280. package/Skeleton/Skeleton.js +16 -20
  281. package/Skeleton/Skeleton.js.map +1 -1
  282. package/Skeleton/index.js +1 -16
  283. package/Skeleton/index.js.map +1 -1
  284. package/Slider/Slider.d.ts +8 -14
  285. package/Slider/Slider.js +47 -81
  286. package/Slider/Slider.js.map +1 -1
  287. package/Slider/index.js +1 -13
  288. package/Slider/index.js.map +1 -1
  289. package/Snackbar/Snackbar.d.ts +44 -8
  290. package/Snackbar/Snackbar.js +27 -44
  291. package/Snackbar/Snackbar.js.map +1 -1
  292. package/Snackbar/index.js +1 -18
  293. package/Snackbar/index.js.map +1 -1
  294. package/Switch/Switch.d.ts +19 -4
  295. package/Switch/Switch.js +25 -47
  296. package/Switch/Switch.js.map +1 -1
  297. package/Switch/index.js +1 -16
  298. package/Switch/index.js.map +1 -1
  299. package/Tabs/Tab.d.ts +23 -2
  300. package/Tabs/Tab.js +16 -20
  301. package/Tabs/Tab.js.map +1 -1
  302. package/Tabs/Tabs.d.ts +13 -7
  303. package/Tabs/Tabs.js +56 -110
  304. package/Tabs/Tabs.js.map +1 -1
  305. package/Tabs/index.js +2 -27
  306. package/Tabs/index.js.map +1 -1
  307. package/Tags/Tags.d.ts +8 -3
  308. package/Tags/Tags.js +9 -116
  309. package/Tags/Tags.js.map +1 -1
  310. package/Tags/index.js +1 -16
  311. package/Tags/index.js.map +1 -1
  312. package/TimeAgo/index.d.ts +6 -2
  313. package/TimeAgo/index.js +6 -13
  314. package/TimeAgo/index.js.map +1 -1
  315. package/Tooltip/Tooltip.d.ts +4 -16
  316. package/Tooltip/Tooltip.js +61 -49
  317. package/Tooltip/Tooltip.js.map +1 -1
  318. package/Tooltip/index.js +1 -16
  319. package/Tooltip/index.js.map +1 -1
  320. package/TopAppBar/TopAppBar.d.ts +25 -1
  321. package/TopAppBar/TopAppBar.js +34 -14
  322. package/TopAppBar/TopAppBar.js.map +1 -1
  323. package/TopAppBar/TopAppBarActionItem.d.ts +5 -3
  324. package/TopAppBar/TopAppBarActionItem.js +10 -11
  325. package/TopAppBar/TopAppBarActionItem.js.map +1 -1
  326. package/TopAppBar/TopAppBarNavigationIcon.d.ts +5 -3
  327. package/TopAppBar/TopAppBarNavigationIcon.js +10 -11
  328. package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -1
  329. package/TopAppBar/TopAppBarPrimary.d.ts +5 -1
  330. package/TopAppBar/TopAppBarPrimary.js +13 -15
  331. package/TopAppBar/TopAppBarPrimary.js.map +1 -1
  332. package/TopAppBar/TopAppBarSecondary.d.ts +5 -1
  333. package/TopAppBar/TopAppBarSecondary.js +14 -17
  334. package/TopAppBar/TopAppBarSecondary.js.map +1 -1
  335. package/TopAppBar/TopAppBarSection.d.ts +10 -1
  336. package/TopAppBar/TopAppBarSection.js +8 -15
  337. package/TopAppBar/TopAppBarSection.js.map +1 -1
  338. package/TopAppBar/TopAppBarTitle.d.ts +6 -3
  339. package/TopAppBar/TopAppBarTitle.js +9 -15
  340. package/TopAppBar/TopAppBarTitle.js.map +1 -1
  341. package/TopAppBar/index.js +7 -82
  342. package/TopAppBar/index.js.map +1 -1
  343. package/Typography/Typography.d.ts +8 -3
  344. package/Typography/Typography.js +32 -12
  345. package/Typography/Typography.js.map +1 -1
  346. package/Typography/index.js +1 -16
  347. package/Typography/index.js.map +1 -1
  348. package/package.json +9 -64
  349. package/styles.scss +15 -41
  350. package/types.js +1 -5
  351. package/Accordion/README.md +0 -11
  352. package/Accordion/icons/round-keyboard_arrow_down-24px.svg +0 -16
  353. package/Accordion/icons/round-keyboard_arrow_up-24px.svg +0 -16
  354. package/Accordion/icons/round-settings-24px.svg +0 -21
  355. package/Alert/README.md +0 -11
  356. package/AutoComplete/AutoCompleteReadme.md +0 -11
  357. package/AutoComplete/MultiAutoCompleteReadme.md +0 -11
  358. package/AutoComplete/icons/baseline-close-24px.svg +0 -4
  359. package/AutoComplete/icons/delete.svg +0 -12
  360. package/AutoComplete/icons/navigate_before-24px.svg +0 -1
  361. package/AutoComplete/icons/navigate_next-24px.svg +0 -1
  362. package/AutoComplete/icons/reorder_black_24dp.svg +0 -1
  363. package/AutoComplete/icons/skip_next-24px.svg +0 -1
  364. package/AutoComplete/icons/skip_previous-24px.svg +0 -1
  365. package/AutoComplete/icons/spinner.svg +0 -3
  366. package/AutoComplete/styles.d.ts +0 -2
  367. package/AutoComplete/styles.js +0 -66
  368. package/AutoComplete/styles.js.map +0 -1
  369. package/Avatar/README.md +0 -11
  370. package/Button/Button.styles.d.ts +0 -6
  371. package/Button/Button.styles.js +0 -17
  372. package/Button/Button.styles.js.map +0 -1
  373. package/Button/CopyButton/CopyButton.d.ts +0 -11
  374. package/Button/CopyButton/CopyButton.js +0 -33
  375. package/Button/CopyButton/CopyButton.js.map +0 -1
  376. package/Button/CopyButton/README.md +0 -11
  377. package/Button/IconButton/IconButton.d.ts +0 -37
  378. package/Button/IconButton/IconButton.js +0 -49
  379. package/Button/IconButton/IconButton.js.map +0 -1
  380. package/Button/IconButton/README.md +0 -15
  381. package/Button/README.md +0 -28
  382. package/Button/assets/baseline-cloud_done-24px.svg +0 -3
  383. package/Button/assets/file_copy-24px.svg +0 -1
  384. package/Button/assets/round-more_vert-24px.svg +0 -12
  385. package/Carousel/README.md +0 -15
  386. package/Checkbox/Checkbox.styles.d.ts +0 -6
  387. package/Checkbox/Checkbox.styles.js +0 -21
  388. package/Checkbox/Checkbox.styles.js.map +0 -1
  389. package/Checkbox/README_Checkbox.md +0 -15
  390. package/Checkbox/README_CheckboxGroup.md +0 -19
  391. package/Chips/README.md +0 -15
  392. package/Chips/icons/baseline-done-24px.svg +0 -4
  393. package/Chips/icons/baseline-email-24px.svg +0 -3
  394. package/Chips/styles.d.ts +0 -2
  395. package/Chips/styles.js +0 -25
  396. package/Chips/styles.js.map +0 -1
  397. package/CodeEditor/README.md +0 -21
  398. package/ColorPicker/README.md +0 -11
  399. package/ConfirmationDialog/README.md +0 -11
  400. package/DataTable/ColumnDirection.d.ts +0 -5
  401. package/DataTable/ColumnDirection.js +0 -19
  402. package/DataTable/ColumnDirection.js.map +0 -1
  403. package/DataTable/ColumnsVisibility.d.ts +0 -7
  404. package/DataTable/ColumnsVisibility.js +0 -64
  405. package/DataTable/ColumnsVisibility.js.map +0 -1
  406. package/DataTable/README.md +0 -72
  407. package/DataTable/styled.d.ts +0 -41
  408. package/DataTable/styled.js +0 -126
  409. package/DataTable/styled.js.map +0 -1
  410. package/DelayedOnChange/DelayedOnChange.d.ts +0 -39
  411. package/DelayedOnChange/DelayedOnChange.js +0 -132
  412. package/DelayedOnChange/DelayedOnChange.js.map +0 -1
  413. package/Dialog/README.md +0 -23
  414. package/Drawer/README.md +0 -15
  415. package/DynamicFieldset/Fieldset.d.ts +0 -51
  416. package/DynamicFieldset/Fieldset.js +0 -139
  417. package/DynamicFieldset/Fieldset.js.map +0 -1
  418. package/Elevation/README.md +0 -15
  419. package/FullName/README.md +0 -11
  420. package/Grid/README.md +0 -15
  421. package/Icon/README.md +0 -11
  422. package/Icon/svg/baseline-autorenew-24px.svg +0 -4
  423. package/Icon/svg/baseline-cloud_done-24px.svg +0 -4
  424. package/Icon/svg/baseline-delete-24px.svg +0 -4
  425. package/Icon/svg/baseline-done-24px.svg +0 -4
  426. package/Image/Image.d.ts +0 -6
  427. package/Image/Image.js +0 -25
  428. package/Image/Image.js.map +0 -1
  429. package/Image/README.md +0 -12
  430. package/ImageEditor/toolbar/crop.d.ts +0 -4
  431. package/ImageEditor/toolbar/crop.js +0 -74
  432. package/ImageEditor/toolbar/crop.js.map +0 -1
  433. package/ImageEditor/toolbar/filter.d.ts +0 -3
  434. package/ImageEditor/toolbar/filter.js +0 -208
  435. package/ImageEditor/toolbar/filter.js.map +0 -1
  436. package/ImageEditor/toolbar/flip.d.ts +0 -4
  437. package/ImageEditor/toolbar/flip.js +0 -99
  438. package/ImageEditor/toolbar/flip.js.map +0 -1
  439. package/ImageEditor/toolbar/icons/crop.svg +0 -4
  440. package/ImageEditor/toolbar/icons/draw.svg +0 -4
  441. package/ImageEditor/toolbar/icons/filter.svg +0 -4
  442. package/ImageEditor/toolbar/icons/flip.svg +0 -4
  443. package/ImageEditor/toolbar/icons/index.d.ts +0 -8
  444. package/ImageEditor/toolbar/icons/index.js +0 -63
  445. package/ImageEditor/toolbar/icons/index.js.map +0 -1
  446. package/ImageEditor/toolbar/icons/redo.svg +0 -4
  447. package/ImageEditor/toolbar/icons/rotateLeft.svg +0 -4
  448. package/ImageEditor/toolbar/icons/rotateRight.svg +0 -4
  449. package/ImageEditor/toolbar/icons/undo.svg +0 -4
  450. package/ImageEditor/toolbar/index.d.ts +0 -4
  451. package/ImageEditor/toolbar/index.js +0 -36
  452. package/ImageEditor/toolbar/index.js.map +0 -1
  453. package/ImageEditor/toolbar/rotate.d.ts +0 -4
  454. package/ImageEditor/toolbar/rotate.js +0 -127
  455. package/ImageEditor/toolbar/rotate.js.map +0 -1
  456. package/ImageEditor/toolbar/types.d.ts +0 -32
  457. package/ImageEditor/toolbar/types.js +0 -7
  458. package/ImageEditor/toolbar/types.js.map +0 -1
  459. package/ImageUpload/README.md +0 -11
  460. package/ImageUpload/icons/round-add_photo_alternate-24px.svg +0 -23
  461. package/ImageUpload/icons/round-close-24px.svg +0 -13
  462. package/ImageUpload/icons/round-edit-24px.svg +0 -4
  463. package/ImageUpload/image.jpeg +0 -0
  464. package/ImageUpload/styled.d.ts +0 -27
  465. package/ImageUpload/styled.js +0 -120
  466. package/ImageUpload/styled.js.map +0 -1
  467. package/Input/README.md +0 -16
  468. package/Input/__tests__/Input.test.d.ts +0 -1
  469. package/Input/__tests__/Input.test.js +0 -103
  470. package/Input/__tests__/Input.test.js.map +0 -1
  471. package/Input/styled.d.ts +0 -4
  472. package/Input/styled.js +0 -16
  473. package/Input/styled.js.map +0 -1
  474. package/Input/svg/baseline-autorenew-24px.svg +0 -4
  475. package/Input/svg/baseline-cloud_done-24px.svg +0 -4
  476. package/Input/svg/baseline-delete-24px.svg +0 -4
  477. package/Input/svg/baseline-done-24px.svg +0 -4
  478. package/List/CollapsibleList/README.md +0 -11
  479. package/List/CollapsibleList/index.css +0 -31
  480. package/List/DataList/DataListModalOverlay/DataListModalOverlay.d.ts +0 -20
  481. package/List/DataList/DataListModalOverlay/DataListModalOverlay.js +0 -99
  482. package/List/DataList/DataListModalOverlay/DataListModalOverlay.js.map +0 -1
  483. package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.d.ts +0 -6
  484. package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js +0 -29
  485. package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js.map +0 -1
  486. package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.d.ts +0 -11
  487. package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js +0 -30
  488. package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js.map +0 -1
  489. package/List/DataList/Loader.d.ts +0 -3
  490. package/List/DataList/Loader.js +0 -105
  491. package/List/DataList/Loader.js.map +0 -1
  492. package/List/DataList/NoData.d.ts +0 -3
  493. package/List/DataList/NoData.js +0 -33
  494. package/List/DataList/NoData.js.map +0 -1
  495. package/List/DataList/README.md +0 -17
  496. package/List/DataList/icons/baseline-autorenew-24px.svg +0 -4
  497. package/List/DataList/icons/baseline-delete-24px.svg +0 -4
  498. package/List/DataList/icons/baseline-edit-24px.svg +0 -4
  499. package/List/DataList/icons/baseline-navigate_before-24px.svg +0 -4
  500. package/List/DataList/icons/baseline-navigate_next-24px.svg +0 -4
  501. package/List/DataList/icons/baseline-sort-24px.svg +0 -4
  502. package/List/DataList/icons/baseline-tune-24px.svg +0 -4
  503. package/List/DataList/icons/filter_alt-24px.svg +0 -1
  504. package/List/DataList/icons/round-more_vert-24px.svg +0 -12
  505. package/List/List.d.ts +0 -131
  506. package/List/List.js +0 -148
  507. package/List/List.js.map +0 -1
  508. package/List/README.md +0 -22
  509. package/List/icons/baseline-autorenew-24px.svg +0 -4
  510. package/List/icons/baseline-cloud_done-24px.svg +0 -4
  511. package/List/icons/baseline-delete-24px.svg +0 -4
  512. package/List/icons/baseline-done-24px.svg +0 -4
  513. package/List/icons/baseline-email-24px.svg +0 -4
  514. package/List/icons/index.d.ts +0 -3
  515. package/List/icons/index.js +0 -22
  516. package/List/icons/index.js.map +0 -1
  517. package/List/styled.d.ts +0 -6
  518. package/List/styled.js +0 -29
  519. package/List/styled.js.map +0 -1
  520. package/Menu/README.md +0 -15
  521. package/Mosaic/README.md +0 -15
  522. package/Progress/README.md +0 -19
  523. package/Progress/svg/circularProgress.svg +0 -3
  524. package/Radio/README.md +0 -17
  525. package/Radio/Radio.styles.d.ts +0 -6
  526. package/Radio/Radio.styles.js +0 -21
  527. package/Radio/Radio.styles.js.map +0 -1
  528. package/RichTextEditor/README.md +0 -10
  529. package/RichTextEditor/createPropsFromConfig.d.ts +0 -15
  530. package/RichTextEditor/createPropsFromConfig.js +0 -30
  531. package/RichTextEditor/createPropsFromConfig.js.map +0 -1
  532. package/Ripple/README.md +0 -15
  533. package/Ripple/svg/baseline-autorenew-24px.svg +0 -4
  534. package/Ripple/svg/baseline-cloud_done-24px.svg +0 -4
  535. package/Ripple/svg/baseline-delete-24px.svg +0 -4
  536. package/Ripple/svg/baseline-done-24px.svg +0 -4
  537. package/Scrollbar/README.md +0 -15
  538. package/Section/README.md +0 -11
  539. package/Select/README.md +0 -15
  540. package/Select/styled.d.ts +0 -8
  541. package/Select/styled.js +0 -21
  542. package/Select/styled.js.map +0 -1
  543. package/Skeleton/README.md +0 -21
  544. package/Slider/README.md +0 -15
  545. package/Snackbar/README.md +0 -15
  546. package/Switch/README.md +0 -15
  547. package/Tabs/svg/baseline-autorenew-24px.svg +0 -4
  548. package/Tabs/svg/baseline-cloud_done-24px.svg +0 -4
  549. package/Tabs/svg/baseline-delete-24px.svg +0 -4
  550. package/Tabs/svg/baseline-done-24px.svg +0 -4
  551. package/Tags/README.md +0 -15
  552. package/Tags/icons/baseline-close-24px.svg +0 -4
  553. package/Tooltip/README.md +0 -15
  554. package/Tooltip/style.scss +0 -97
  555. package/TopAppBar/README.md +0 -20
  556. package/TopAppBar/icons/baseline-autorenew-24px.svg +0 -4
  557. package/TopAppBar/icons/baseline-cloud_done-24px.svg +0 -4
  558. package/TopAppBar/icons/baseline-delete-24px.svg +0 -4
  559. package/TopAppBar/icons/baseline-email-24px.svg +0 -4
  560. package/TopAppBar/icons/baseline-menu-24px.svg +0 -4
  561. package/TopProgressBar/README.md +0 -11
  562. package/TopProgressBar/TopProgressBar.d.ts +0 -15
  563. package/TopProgressBar/TopProgressBar.js +0 -18
  564. package/TopProgressBar/TopProgressBar.js.map +0 -1
  565. package/TopProgressBar/hoc/index.d.ts +0 -1
  566. package/TopProgressBar/hoc/index.js +0 -15
  567. package/TopProgressBar/hoc/index.js.map +0 -1
  568. package/TopProgressBar/hoc/withTopProgressBar.d.ts +0 -3
  569. package/TopProgressBar/hoc/withTopProgressBar.js +0 -29
  570. package/TopProgressBar/hoc/withTopProgressBar.js.map +0 -1
  571. package/TopProgressBar/index.d.ts +0 -1
  572. package/TopProgressBar/index.js +0 -18
  573. package/TopProgressBar/index.js.map +0 -1
  574. package/TopProgressBar/style.scss +0 -21
  575. package/Typography/README.md +0 -15
@@ -1,79 +1,67 @@
1
1
  import React from "react";
2
- import { DialogActionsProps as RmwcDialogActionsProps, DialogButtonProps as RmwcDialogButtonProps, DialogContentProps as RmwcDialogContentProps, DialogOnCloseEventT, DialogProps as RmwcDialogProps, DialogTitleProps as RmwcDialogTitleProps } from "@rmwc/dialog";
3
- export type DialogOnClose = (event: DialogOnCloseEventT) => void;
4
- export interface DialogProps extends RmwcDialogProps {
5
- className?: string;
6
- style?: React.CSSProperties;
7
- onClose?: (evt: DialogOnCloseEventT) => void;
8
- preventOutsideDismiss?: boolean;
9
- children?: React.ReactNode;
10
- }
11
- export declare class Dialog extends React.Component<DialogProps> {
12
- container: HTMLElement;
13
- constructor(props: DialogProps);
14
- render(): React.ReactPortal;
15
- }
16
- export interface DialogTitleProps extends RmwcDialogTitleProps {
17
- /**
18
- * Title text.
19
- */
2
+ import { type ButtonProps as AdminUiButtonProps, type DialogProps as AdminUiDialogProps } from "@webiny/admin-ui";
3
+ export interface DialogActionsProps {
20
4
  children: React.ReactNode[] | React.ReactNode;
21
5
  }
22
6
  /**
23
- * Dialog's header, which can accept DialogHeaderTitle component or any other set of components.
7
+ * @deprecated This component is deprecated and will be removed in future releases.
8
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
24
9
  */
25
- export declare const DialogTitle: (props: DialogTitleProps) => React.JSX.Element;
26
- export type DialogContentProps = RmwcDialogContentProps & {
27
- /**
28
- * Dialog content.
29
- */
30
- children: React.ReactNode[] | React.ReactNode;
31
- className?: string;
10
+ export declare const DialogActions: {
11
+ (props: DialogActionsProps): React.JSX.Element;
12
+ displayName: string;
32
13
  };
14
+ export interface DialogButtonProps extends AdminUiButtonProps {
15
+ children?: React.ReactNode[] | React.ReactNode;
16
+ }
33
17
  /**
34
- * A simple component for showing dialog's body.
18
+ * @deprecated This component is deprecated and will be removed in future releases.
19
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
35
20
  */
36
- export declare const DialogContent: (props: DialogContentProps) => React.JSX.Element;
37
- export interface DialogActionsProps extends RmwcDialogActionsProps {
38
- /**
39
- * Action buttons.
40
- */
41
- children: React.ReactNode[] | React.ReactNode;
42
- style?: React.CSSProperties;
21
+ export declare const DialogButton: (props: DialogButtonProps) => React.JSX.Element;
22
+ export interface DialogAcceptProps extends AdminUiButtonProps {
23
+ children?: React.ReactNode[] | React.ReactNode;
43
24
  }
44
25
  /**
45
- * Can be used to show accept and cancel buttons.
26
+ * @deprecated This component is deprecated and will be removed in future releases.
27
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
46
28
  */
47
- export declare const DialogActions: (props: DialogActionsProps) => React.JSX.Element;
48
- interface DialogButtonProps extends RmwcDialogButtonProps {
49
- /**
50
- * Callback to execute then button is clicked.
51
- */
52
- onClick?: (e: React.MouseEvent) => void;
53
- className?: string;
29
+ export declare const DialogAccept: (props: DialogAcceptProps) => React.JSX.Element;
30
+ /**
31
+ * @deprecated This component is deprecated and will be removed in future releases.
32
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
33
+ */
34
+ export declare const DialogCancel: (props: DialogButtonProps) => React.JSX.Element;
35
+ export interface DialogContentProps {
36
+ children: React.ReactNode[] | React.ReactNode;
54
37
  }
55
38
  /**
56
- * Use this to show a simple button.
39
+ * @deprecated This component is deprecated and will be removed in future releases.
40
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
57
41
  */
58
- export declare const DialogButton: (props: DialogButtonProps) => React.JSX.Element;
59
- interface DialogCancelProps extends RmwcDialogButtonProps {
60
- /**
61
- * Callback to execute then button is clicked.
62
- */
63
- onClick?: (e: React.MouseEvent) => void;
42
+ export declare const DialogContent: {
43
+ (props: DialogContentProps): React.JSX.Element;
44
+ displayName: string;
45
+ };
46
+ export interface DialogTitleProps {
47
+ children: React.ReactNode[] | React.ReactNode;
64
48
  }
65
49
  /**
66
- * Use this to close the dialog without taking any additional action.
50
+ * @deprecated This component is deprecated and will be removed in future releases.
51
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
67
52
  */
68
- export declare const DialogCancel: (props: DialogCancelProps) => React.JSX.Element;
69
- interface DialogAcceptProps extends RmwcDialogButtonProps {
70
- /**
71
- * Callback to execute then button is clicked.
72
- */
73
- onClick?: (e: React.MouseEvent) => void;
53
+ export declare const DialogTitle: {
54
+ (props: DialogTitleProps): React.JSX.Element;
55
+ displayName: string;
56
+ };
57
+ export type DialogOnClose = () => void;
58
+ export interface DialogProps extends AdminUiDialogProps {
59
+ onClose?: DialogOnClose;
60
+ onOpened?: () => void;
61
+ preventOutsideDismiss?: boolean;
74
62
  }
75
63
  /**
76
- * Use this to close the dialog without taking any additional action.
64
+ * @deprecated This component is deprecated and will be removed in future releases.
65
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
77
66
  */
78
- export declare const DialogAccept: (props: DialogAcceptProps) => React.JSX.Element;
79
- export {};
67
+ export declare const Dialog: ({ onClose, onOpened, open, showCloseButton, children, preventOutsideDismiss, ...rest }: DialogProps) => React.JSX.Element;
package/Dialog/Dialog.js CHANGED
@@ -1,101 +1,91 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.DialogTitle = exports.DialogContent = exports.DialogCancel = exports.DialogButton = exports.DialogActions = exports.DialogAccept = exports.Dialog = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
- var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
13
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
- var _react = _interopRequireDefault(require("react"));
15
- var _reactDom = _interopRequireDefault(require("react-dom"));
16
- var _dialog = require("@rmwc/dialog");
17
- var _emotion = require("emotion");
18
- var _Helpers = require("../Helpers");
19
- var _templateObject;
20
- var _excluded = ["children"];
21
- var Dialog = exports.Dialog = /*#__PURE__*/function (_React$Component) {
22
- function Dialog(props) {
23
- var _this;
24
- (0, _classCallCheck2.default)(this, Dialog);
25
- _this = (0, _callSuper2.default)(this, Dialog, [props]);
26
- /**
27
- * We can safely cast
28
- */
29
- _this.container = document.getElementById("dialog-container");
30
- if (!_this.container) {
31
- _this.container = document.createElement("div");
32
- _this.container.setAttribute("id", "dialog-container");
33
- var container = _this.container;
34
- document.body && document.body.appendChild(container);
35
- }
36
- return _this;
37
- }
38
- (0, _inherits2.default)(Dialog, _React$Component);
39
- return (0, _createClass2.default)(Dialog, [{
40
- key: "render",
41
- value: function render() {
42
- var _this$props = this.props,
43
- children = _this$props.children,
44
- props = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
45
- var container = this.container;
46
-
47
- // Let's pass "permanent" / "persistent" / "temporary" flags as "mode" prop instead.
48
- return /*#__PURE__*/_reactDom.default.createPortal(/*#__PURE__*/_react.default.createElement(_dialog.Dialog, (0, _Helpers.getClasses)(props, "webiny-ui-dialog"), children), container);
49
- }
50
- }]);
51
- }(_react.default.Component);
1
+ import React from "react";
2
+ import { Button as AdminUiButton, Dialog as AdminUiDialog } from "@webiny/admin-ui";
3
+ import { DialogHeader as AdminUiDialogHeader } from "@webiny/admin-ui/Dialog/components/DialogHeader";
4
+ import { DialogFooter as AdminUiDialogFooter } from "@webiny/admin-ui/Dialog/components/DialogFooter";
5
+ import { DialogClosePrimitive as AdminUiDialogClose } from "@webiny/admin-ui/Dialog/components/DialogClose";
6
+ import { DialogBody } from "@webiny/admin-ui/Dialog/components/DialogBody";
7
+ /**
8
+ * @deprecated This component is deprecated and will be removed in future releases.
9
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
10
+ */
11
+ export const DialogActions = props => {
12
+ return /*#__PURE__*/React.createElement(AdminUiDialogFooter, {
13
+ actions: props.children
14
+ });
15
+ };
52
16
  /**
53
- * Dialog's header, which can accept DialogHeaderTitle component or any other set of components.
17
+ * @deprecated This component is deprecated and will be removed in future releases.
18
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
54
19
  */
55
- var DialogTitle = exports.DialogTitle = function DialogTitle(props) {
56
- return /*#__PURE__*/_react.default.createElement(_dialog.DialogTitle, Object.assign({}, (0, _Helpers.getClasses)(props, "webiny-ui-dialog__title"), {
57
- style: {
58
- marginBottom: "0"
59
- }
20
+ export const DialogButton = props => {
21
+ return /*#__PURE__*/React.createElement(AdminUiButton, Object.assign({}, props, {
22
+ variant: "secondary",
23
+ text: props.text || props.children
60
24
  }));
61
25
  };
62
26
  /**
63
- * A simple component for showing dialog's body.
27
+ * @deprecated This component is deprecated and will be removed in future releases.
28
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
64
29
  */
65
- var DialogContent = exports.DialogContent = function DialogContent(props) {
66
- return /*#__PURE__*/_react.default.createElement(_dialog.DialogContent, (0, _Helpers.getClasses)(props, "webiny-ui-dialog__content"));
30
+ export const DialogAccept = props => {
31
+ return /*#__PURE__*/React.createElement(AdminUiButton, Object.assign({}, props, {
32
+ variant: "primary",
33
+ text: props.text || props.children
34
+ }));
67
35
  };
68
- var addMargin = (0, _emotion.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n button:last-of-type {\n margin-left: 8px;\n }\n"])));
69
36
 
70
37
  /**
71
- * Can be used to show accept and cancel buttons.
38
+ * @deprecated This component is deprecated and will be removed in future releases.
39
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
72
40
  */
73
- var DialogActions = exports.DialogActions = function DialogActions(props) {
74
- return /*#__PURE__*/_react.default.createElement(_dialog.DialogActions, (0, _Helpers.getClasses)(props, [addMargin, "webiny-ui-dialog__actions"]));
41
+ export const DialogCancel = props => {
42
+ return /*#__PURE__*/React.createElement(AdminUiDialogClose, {
43
+ asChild: true
44
+ }, /*#__PURE__*/React.createElement(AdminUiButton, Object.assign({}, props, {
45
+ variant: "secondary",
46
+ text: props.text || props.children
47
+ })));
75
48
  };
49
+ DialogActions.displayName = "DialogActions";
76
50
  /**
77
- * Use this to show a simple button.
51
+ * @deprecated This component is deprecated and will be removed in future releases.
52
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
78
53
  */
79
- var DialogButton = exports.DialogButton = function DialogButton(props) {
80
- return /*#__PURE__*/_react.default.createElement(_dialog.DialogButton, (0, _Helpers.getClasses)(props, "webiny-ui-dialog__button"));
54
+ export const DialogContent = props => {
55
+ return /*#__PURE__*/React.createElement(DialogBody, null, props.children);
81
56
  };
57
+ DialogContent.displayName = "DialogContent";
82
58
  /**
83
- * Use this to close the dialog without taking any additional action.
59
+ * @deprecated This component is deprecated and will be removed in future releases.
60
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
84
61
  */
85
- var DialogCancel = exports.DialogCancel = function DialogCancel(props) {
86
- return /*#__PURE__*/_react.default.createElement(DialogButton, Object.assign({}, (0, _Helpers.getClasses)(props, "webiny-ui-dialog__button webiny-ui-dialog__button--cancel"), {
87
- action: "close",
88
- "data-testid": "dialog-cancel"
89
- }), props.children);
62
+ export const DialogTitle = props => {
63
+ return /*#__PURE__*/React.createElement(AdminUiDialogHeader, {
64
+ title: props.children
65
+ });
90
66
  };
67
+ DialogTitle.displayName = "DialogTitle";
91
68
  /**
92
- * Use this to close the dialog without taking any additional action.
69
+ * @deprecated This component is deprecated and will be removed in future releases.
70
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
93
71
  */
94
- var DialogAccept = exports.DialogAccept = function DialogAccept(props) {
95
- return /*#__PURE__*/_react.default.createElement(DialogButton, Object.assign({}, (0, _Helpers.getClasses)(props, "webiny-ui-dialog__button webiny-ui-dialog__button--accept"), {
96
- action: "accept",
97
- "data-testid": "dialog-accept"
98
- }), props.children);
72
+ export const Dialog = ({
73
+ onClose,
74
+ onOpened,
75
+ open,
76
+ showCloseButton,
77
+ children,
78
+ preventOutsideDismiss,
79
+ ...rest
80
+ }) => {
81
+ return /*#__PURE__*/React.createElement(AdminUiDialog, Object.assign({
82
+ open: open,
83
+ bodyPadding: false,
84
+ dismissible: preventOutsideDismiss === true ? false : true,
85
+ showCloseButton: showCloseButton,
86
+ onClose: onClose,
87
+ onOpen: onOpened
88
+ }, rest), children);
99
89
  };
100
90
 
101
91
  //# sourceMappingURL=Dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactDom","_dialog","_emotion","_Helpers","_templateObject","_excluded","Dialog","exports","_React$Component","props","_this","_classCallCheck2","default","_callSuper2","container","document","getElementById","createElement","setAttribute","body","appendChild","_inherits2","_createClass2","key","value","render","_this$props","children","_objectWithoutProperties2","ReactDOM","createPortal","getClasses","React","Component","DialogTitle","Object","assign","style","marginBottom","DialogContent","addMargin","css","_taggedTemplateLiteral2","DialogActions","DialogButton","DialogCancel","action","DialogAccept"],"sources":["Dialog.tsx"],"sourcesContent":["import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport {\n Dialog as RmwcDialog,\n DialogActions as RmwcDialogActions,\n DialogActionsProps as RmwcDialogActionsProps,\n DialogButton as RmwcDialogButton,\n DialogButtonProps as RmwcDialogButtonProps,\n DialogContent as RmwcDialogContent,\n DialogContentProps as RmwcDialogContentProps,\n DialogOnCloseEventT,\n DialogProps as RmwcDialogProps,\n DialogTitle as RmwcDialogTitle,\n DialogTitleProps as RmwcDialogTitleProps\n} from \"@rmwc/dialog\";\nimport { css } from \"emotion\";\nimport { getClasses } from \"~/Helpers\";\n\nexport type DialogOnClose = (event: DialogOnCloseEventT) => void;\n\nexport interface DialogProps extends RmwcDialogProps {\n className?: string;\n\n // Component's custom in-line styles.\n style?: React.CSSProperties;\n\n onClose?: (evt: DialogOnCloseEventT) => void;\n\n preventOutsideDismiss?: boolean;\n\n children?: React.ReactNode;\n}\n\nexport class Dialog extends React.Component<DialogProps> {\n container: HTMLElement;\n\n constructor(props: DialogProps) {\n super(props);\n /**\n * We can safely cast\n */\n this.container = document.getElementById(\"dialog-container\") as HTMLElement;\n\n if (!this.container) {\n this.container = document.createElement(\"div\");\n this.container.setAttribute(\"id\", \"dialog-container\");\n const container = this.container;\n document.body && document.body.appendChild(container);\n }\n }\n\n public override render() {\n const { children, ...props } = this.props;\n const container = this.container;\n\n // Let's pass \"permanent\" / \"persistent\" / \"temporary\" flags as \"mode\" prop instead.\n return ReactDOM.createPortal(\n <RmwcDialog {...getClasses(props, \"webiny-ui-dialog\")}>{children}</RmwcDialog>,\n container\n );\n }\n}\n\nexport interface DialogTitleProps extends RmwcDialogTitleProps {\n /**\n * Title text.\n */\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * Dialog's header, which can accept DialogHeaderTitle component or any other set of components.\n */\nexport const DialogTitle = (props: DialogTitleProps) => (\n <RmwcDialogTitle\n {...getClasses(props, \"webiny-ui-dialog__title\")}\n style={{ marginBottom: \"0\" }}\n />\n);\n\nexport type DialogContentProps = RmwcDialogContentProps & {\n /**\n * Dialog content.\n */\n children: React.ReactNode[] | React.ReactNode;\n\n className?: string;\n};\n\n/**\n * A simple component for showing dialog's body.\n */\nexport const DialogContent = (props: DialogContentProps) => (\n <RmwcDialogContent {...getClasses(props, \"webiny-ui-dialog__content\")} />\n);\n\nexport interface DialogActionsProps extends RmwcDialogActionsProps {\n /**\n * Action buttons.\n */\n children: React.ReactNode[] | React.ReactNode;\n\n // Dialog component's custom in-line styles.\n style?: React.CSSProperties;\n}\n\nconst addMargin = css`\n button:last-of-type {\n margin-left: 8px;\n }\n`;\n\n/**\n * Can be used to show accept and cancel buttons.\n */\nexport const DialogActions = (props: DialogActionsProps) => (\n <RmwcDialogActions {...getClasses(props, [addMargin, \"webiny-ui-dialog__actions\"])} />\n);\n\ninterface DialogButtonProps extends RmwcDialogButtonProps {\n /**\n * Callback to execute then button is clicked.\n */\n onClick?: (e: React.MouseEvent) => void;\n\n className?: string;\n}\n\n/**\n * Use this to show a simple button.\n */\nexport const DialogButton = (props: DialogButtonProps) => (\n <RmwcDialogButton {...getClasses(props, \"webiny-ui-dialog__button\")} />\n);\n\ninterface DialogCancelProps extends RmwcDialogButtonProps {\n /**\n * Callback to execute then button is clicked.\n */\n onClick?: (e: React.MouseEvent) => void;\n}\n\n/**\n * Use this to close the dialog without taking any additional action.\n */\nexport const DialogCancel = (props: DialogCancelProps) => {\n return (\n <DialogButton\n {...getClasses(props, \"webiny-ui-dialog__button webiny-ui-dialog__button--cancel\")}\n action=\"close\"\n data-testid=\"dialog-cancel\"\n >\n {props.children}\n </DialogButton>\n );\n};\n\ninterface DialogAcceptProps extends RmwcDialogButtonProps {\n /**\n * Callback to execute then button is clicked.\n */\n onClick?: (e: React.MouseEvent) => void;\n}\n\n/**\n * Use this to close the dialog without taking any additional action.\n */\nexport const DialogAccept = (props: DialogAcceptProps) => {\n return (\n <DialogButton\n {...getClasses(props, \"webiny-ui-dialog__button webiny-ui-dialog__button--accept\")}\n action=\"accept\"\n data-testid=\"dialog-accept\"\n >\n {props.children}\n </DialogButton>\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAaA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAAuC,IAAAK,eAAA;AAAA,IAAAC,SAAA;AAAA,IAiB1BC,MAAM,GAAAC,OAAA,CAAAD,MAAA,0BAAAE,gBAAA;EAGf,SAAAF,OAAYG,KAAkB,EAAE;IAAA,IAAAC,KAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAN,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AA,CAAAe,OAAA,CAAAK,aAAA,CAAC2B,YAAY,EAAAT,MAAA,CAAAC,MAAA,KACL,IAAAL,mBAAU,EAACtB,KAAK,EAAE,2DAA2D,CAAC;IAClFqC,MAAM,EAAC,OAAO;IACd,eAAY;EAAe,IAE1BrC,KAAK,CAACkB,QACG,CAAC;AAEvB,CAAC;AASD;AACA;AACA;AACO,IAAMoB,YAAY,GAAAxC,OAAA,CAAAwC,YAAA,GAAG,SAAfA,YAAYA,CAAItC,KAAwB,EAAK;EACtD,oBACIZ,MAAA,CAAAe,OAAA,CAAAK,aAAA,CAAC2B,YAAY,EAAAT,MAAA,CAAAC,MAAA,KACL,IAAAL,mBAAU,EAACtB,KAAK,EAAE,2DAA2D,CAAC;IAClFqC,MAAM,EAAC,QAAQ;IACf,eAAY;EAAe,IAE1BrC,KAAK,CAACkB,QACG,CAAC;AAEvB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Button","AdminUiButton","Dialog","AdminUiDialog","DialogHeader","AdminUiDialogHeader","DialogFooter","AdminUiDialogFooter","DialogClosePrimitive","AdminUiDialogClose","DialogBody","DialogActions","props","createElement","actions","children","DialogButton","Object","assign","variant","text","DialogAccept","DialogCancel","asChild","displayName","DialogContent","DialogTitle","title","onClose","onOpened","open","showCloseButton","preventOutsideDismiss","rest","bodyPadding","dismissible","onOpen"],"sources":["Dialog.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n Button as AdminUiButton,\n type ButtonProps as AdminUiButtonProps,\n Dialog as AdminUiDialog,\n type DialogProps as AdminUiDialogProps\n} from \"@webiny/admin-ui\";\nimport { DialogHeader as AdminUiDialogHeader } from \"@webiny/admin-ui/Dialog/components/DialogHeader\";\nimport { DialogFooter as AdminUiDialogFooter } from \"@webiny/admin-ui/Dialog/components/DialogFooter\";\nimport { DialogClosePrimitive as AdminUiDialogClose } from \"@webiny/admin-ui/Dialog/components/DialogClose\";\nimport { DialogBody } from \"@webiny/admin-ui/Dialog/components/DialogBody\";\n\nexport interface DialogActionsProps {\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogActions = (props: DialogActionsProps) => {\n return <AdminUiDialogFooter actions={props.children} />;\n};\n\nexport interface DialogButtonProps extends AdminUiButtonProps {\n children?: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogButton = (props: DialogButtonProps) => {\n return <AdminUiButton {...props} variant={\"secondary\"} text={props.text || props.children} />;\n};\n\nexport interface DialogAcceptProps extends AdminUiButtonProps {\n children?: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogAccept = (props: DialogAcceptProps) => {\n return <AdminUiButton {...props} variant={\"primary\"} text={props.text || props.children} />;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogCancel = (props: DialogButtonProps) => {\n return (\n <AdminUiDialogClose asChild>\n <AdminUiButton {...props} variant={\"secondary\"} text={props.text || props.children} />\n </AdminUiDialogClose>\n );\n};\n\nDialogActions.displayName = \"DialogActions\";\n\nexport interface DialogContentProps {\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogContent = (props: DialogContentProps) => {\n return <DialogBody>{props.children}</DialogBody>;\n};\n\nDialogContent.displayName = \"DialogContent\";\n\nexport interface DialogTitleProps {\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogTitle = (props: DialogTitleProps) => {\n return <AdminUiDialogHeader title={props.children} />;\n};\n\nDialogTitle.displayName = \"DialogTitle\";\n\nexport type DialogOnClose = () => void;\n\nexport interface DialogProps extends AdminUiDialogProps {\n onClose?: DialogOnClose;\n onOpened?: () => void;\n preventOutsideDismiss?: boolean;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const Dialog = ({\n onClose,\n onOpened,\n open,\n showCloseButton,\n children,\n preventOutsideDismiss,\n ...rest\n}: DialogProps) => {\n return (\n <AdminUiDialog\n open={open}\n bodyPadding={false}\n dismissible={preventOutsideDismiss === true ? false : true}\n showCloseButton={showCloseButton}\n onClose={onClose}\n onOpen={onOpened}\n {...rest}\n >\n {children}\n </AdminUiDialog>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,MAAM,IAAIC,aAAa,EAEvBC,MAAM,IAAIC,aAAa,QAEpB,kBAAkB;AACzB,SAASC,YAAY,IAAIC,mBAAmB,QAAQ,iDAAiD;AACrG,SAASC,YAAY,IAAIC,mBAAmB,QAAQ,iDAAiD;AACrG,SAASC,oBAAoB,IAAIC,kBAAkB,QAAQ,gDAAgD;AAC3G,SAASC,UAAU,QAAQ,+CAA+C;AAM1E;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIC,KAAyB,IAAK;EACxD,oBAAOb,KAAA,CAAAc,aAAA,CAACN,mBAAmB;IAACO,OAAO,EAAEF,KAAK,CAACG;EAAS,CAAE,CAAC;AAC3D,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAIJ,KAAwB,IAAK;EACtD,oBAAOb,KAAA,CAAAc,aAAA,CAACZ,aAAa,EAAAgB,MAAA,CAAAC,MAAA,KAAKN,KAAK;IAAEO,OAAO,EAAE,WAAY;IAACC,IAAI,EAAER,KAAK,CAACQ,IAAI,IAAIR,KAAK,CAACG;EAAS,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,KAAK;EACf,oBACIlC,KAAA,CAAAc,aAAA,CAACV,aAAa,EAAAc,MAAA,CAAAC,MAAA;IACVY,IAAI,EAAEA,IAAK;IACXI,WAAW,EAAE,KAAM;IACnBC,WAAW,EAAEH,qBAAqB,KAAK,IAAI,GAAG,KAAK,GAAG,IAAK;IAC3DD,eAAe,EAAEA,eAAgB;IACjCH,OAAO,EAAEA,OAAQ;IACjBQ,MAAM,EAAEP;EAAS,GACbI,IAAI,GAEPlB,QACU,CAAC;AAExB,CAAC","ignoreList":[]}
package/Dialog/index.js CHANGED
@@ -1,18 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Dialog = require("./Dialog");
7
- Object.keys(_Dialog).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Dialog[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _Dialog[key];
14
- }
15
- });
16
- });
1
+ export * from "./Dialog";
17
2
 
18
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_Dialog","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./Dialog\";\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Dialog\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,7 +1,22 @@
1
1
  import React from "react";
2
- import { CSSObject } from "@emotion/react";
3
- import { DrawerProps as RmwcDrawerProps, DrawerHeaderProps as RmwcDrawerHeaderProps, DrawerContentProps as RmwcDrawerContentProps } from "@rmwc/drawer";
4
- type DrawerHeaderProps = RmwcDrawerHeaderProps & {
2
+ import { type DrawerProps as AdminUiDrawerProps } from "@webiny/admin-ui";
3
+ /**
4
+ * Use Drawer component to display navigation for the whole app or just a small section of it.
5
+ * @deprecated This component is deprecated and will be removed in future releases.
6
+ * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.
7
+ */
8
+ declare const Drawer: ({ children, ...props }: DrawerProps) => React.JSX.Element;
9
+ /**
10
+ * @deprecated This component is deprecated and will be removed in future releases.
11
+ * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.
12
+ */
13
+ declare const DrawerRight: (props: DrawerProps) => React.JSX.Element;
14
+ /**
15
+ * @deprecated This component is deprecated and will be removed in future releases.
16
+ * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.
17
+ */
18
+ declare const DrawerLeft: (props: DrawerProps) => React.JSX.Element;
19
+ type DrawerHeaderProps = {
5
20
  /**
6
21
  * Drawer content.
7
22
  */
@@ -12,10 +27,11 @@ type DrawerHeaderProps = RmwcDrawerHeaderProps & {
12
27
  className?: string;
13
28
  };
14
29
  /**
15
- * Shows header of the drawer.
30
+ * @deprecated This component is deprecated and will be removed in future releases.
31
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
16
32
  */
17
33
  declare const DrawerHeader: (props: DrawerHeaderProps) => React.JSX.Element;
18
- export type DrawerContentProps = RmwcDrawerContentProps & {
34
+ export type DrawerContentProps = {
19
35
  /**
20
36
  * Drawer content.
21
37
  */
@@ -26,24 +42,15 @@ export type DrawerContentProps = RmwcDrawerContentProps & {
26
42
  className?: string;
27
43
  };
28
44
  /**
29
- * Shows drawer content. It can be anything, but commonly a List component would suffice here.
45
+ * @deprecated This component is deprecated and will be removed in future releases.
46
+ * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.
30
47
  */
31
48
  declare const DrawerContent: (props: DrawerContentProps) => React.JSX.Element;
32
- type DrawerProps = RmwcDrawerProps & {
49
+ export interface DrawerProps extends AdminUiDrawerProps {
33
50
  /**
34
- * Drawer content.
51
+ * @deprecated Property is no longer supported.
35
52
  */
36
- children: React.ReactNode;
37
- /**
38
- * CSS class name
39
- */
40
- className?: string;
41
- style?: CSSObject;
42
- };
43
- /**
44
- * Use Drawer component to display navigation for the whole app or just a small section of it.
45
- */
46
- declare const Drawer: ({ style, children, ...props }: DrawerProps) => React.JSX.Element;
47
- declare const DrawerRight: (props: DrawerProps) => React.JSX.Element;
48
- declare const DrawerLeft: (props: DrawerProps) => React.JSX.Element;
53
+ dismissible?: boolean;
54
+ onClose?: () => void;
55
+ }
49
56
  export { Drawer, DrawerHeader, DrawerContent, DrawerRight, DrawerLeft };
package/Drawer/Drawer.js CHANGED
@@ -1,67 +1,57 @@
1
- "use strict";
1
+ import React from "react";
2
+ import { Drawer as AdminUiDrawer } from "@webiny/admin-ui";
3
+ import { DrawerHeader as AdminUiDrawerHeader } from "@webiny/admin-ui/Drawer/components/DrawerHeader";
2
4
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.DrawerRight = exports.DrawerLeft = exports.DrawerHeader = exports.DrawerContent = exports.Drawer = void 0;
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
11
- var _react = _interopRequireWildcard(require("react"));
12
- var _drawer = require("@rmwc/drawer");
13
- var _excluded = ["style", "children"];
14
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
15
5
  /**
16
- * Shows header of the drawer.
6
+ * Use Drawer component to display navigation for the whole app or just a small section of it.
7
+ * @deprecated This component is deprecated and will be removed in future releases.
8
+ * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.
17
9
  */
18
- var DrawerHeader = exports.DrawerHeader = function DrawerHeader(props) {
19
- return /*#__PURE__*/_react.default.createElement(_drawer.DrawerHeader, props);
10
+ const Drawer = ({
11
+ children,
12
+ ...props
13
+ }) => {
14
+ return /*#__PURE__*/React.createElement(AdminUiDrawer, Object.assign({
15
+ side: "left"
16
+ }, props), children);
20
17
  };
18
+
21
19
  /**
22
- * Shows drawer content. It can be anything, but commonly a List component would suffice here.
20
+ * @deprecated This component is deprecated and will be removed in future releases.
21
+ * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.
23
22
  */
24
- var DrawerContent = exports.DrawerContent = function DrawerContent(props) {
25
- return /*#__PURE__*/_react.default.createElement(_drawer.DrawerContent, props);
23
+ const DrawerRight = props => {
24
+ return /*#__PURE__*/React.createElement(Drawer, Object.assign({
25
+ side: "right"
26
+ }, props));
26
27
  };
27
- var DirectionRTL = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
28
- target: "el0bo471"
29
- } : {
30
- target: "el0bo471",
31
- label: "DirectionRTL"
32
- })(process.env.NODE_ENV === "production" ? {
33
- name: "16ge7sd",
34
- styles: ".mdc-drawer.mdc-drawer--modal,.mdc-drawer.mdc-drawer--dismissable{left:initial;right:0;}.mdc-drawer--animate{-webkit-transform:translateX(100%);transform:translateX(100%);}.mdc-drawer.mdc-drawer--opening{-webkit-transform:translateX(0%)!important;transform:translateX(0%)!important;}.mdc-drawer.mdc-drawer--closing{-webkit-transform:translateX(100%)!important;transform:translateX(100%)!important;}"
35
- } : {
36
- name: "16ge7sd",
37
- styles: ".mdc-drawer.mdc-drawer--modal,.mdc-drawer.mdc-drawer--dismissable{left:initial;right:0;}.mdc-drawer--animate{-webkit-transform:translateX(100%);transform:translateX(100%);}.mdc-drawer.mdc-drawer--opening{-webkit-transform:translateX(0%)!important;transform:translateX(0%)!important;}.mdc-drawer.mdc-drawer--closing{-webkit-transform:translateX(100%)!important;transform:translateX(100%)!important;}",
38
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRyYXdlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNEQrQiIsImZpbGUiOiJEcmF3ZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IHVzZU1lbW8gfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB7IENTU09iamVjdCB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQge1xuICAgIERyYXdlciBhcyBSbXdjRHJhd2VyLFxuICAgIERyYXdlckNvbnRlbnQgYXMgUm13Y0RyYXdlckNvbnRlbnQsXG4gICAgRHJhd2VySGVhZGVyIGFzIFJtd2NEcmF3ZXJIZWFkZXIsXG4gICAgRHJhd2VyUHJvcHMgYXMgUm13Y0RyYXdlclByb3BzLFxuICAgIERyYXdlckhlYWRlclByb3BzIGFzIFJtd2NEcmF3ZXJIZWFkZXJQcm9wcyxcbiAgICBEcmF3ZXJDb250ZW50UHJvcHMgYXMgUm13Y0RyYXdlckNvbnRlbnRQcm9wc1xufSBmcm9tIFwiQHJtd2MvZHJhd2VyXCI7XG5cbnR5cGUgRHJhd2VySGVhZGVyUHJvcHMgPSBSbXdjRHJhd2VySGVhZGVyUHJvcHMgJiB7XG4gICAgLyoqXG4gICAgICogRHJhd2VyIGNvbnRlbnQuXG4gICAgICovXG4gICAgY2hpbGRyZW46IFJlYWN0LlJlYWN0Tm9kZTtcblxuICAgIC8qKlxuICA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c3QgRHJhd2VyID0gdXNlTWVtbygoKSA9PiAoc3R5bGUgPyBzdHlsZWQoUm13Y0RyYXdlcikoc3R5bGUpIDogUm13Y0RyYXdlciksIFtzdHlsZV0pO1xuXG4gICAgcmV0dXJuIDxEcmF3ZXIgey4uLnByb3BzfT57Y2hpbGRyZW59PC9EcmF3ZXI+O1xufTtcblxuY29uc3QgRHJhd2VyUmlnaHQgPSAocHJvcHM6IERyYXdlclByb3BzKSA9PiB7XG4gICAgcmV0dXJuIChcbiAgICAgICAgPERpcmVjdGlvblJUTD5cbiAgICAgICAgICAgIDxEcmF3ZXIgey4uLnByb3BzfSAvPlxuICAgICAgICA8L0RpcmVjdGlvblJUTD5cbiAgICApO1xufTtcblxuY29uc3QgRHJhd2VyTGVmdCA9IChwcm9wczogRHJhd2VyUHJvcHMpID0+IHtcbiAgICByZXR1cm4gPERyYXdlciB7Li4ucHJvcHN9IC8+O1xufTtcblxuZXhwb3J0IHsgRHJhd2VyLCBEcmF3ZXJIZWFkZXIsIERyYXdlckNvbnRlbnQsIERyYXdlclJpZ2h0LCBEcmF3ZXJMZWZ0IH07XG4iXX0= */",
39
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
40
- });
41
28
 
42
29
  /**
43
- * Use Drawer component to display navigation for the whole app or just a small section of it.
30
+ * @deprecated This component is deprecated and will be removed in future releases.
31
+ * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.
44
32
  */
45
- var Drawer = exports.Drawer = function Drawer(_ref) {
46
- var style = _ref.style,
47
- children = _ref.children,
48
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
49
- // Style the drawer using the styles that were passed in.
50
- var Drawer = (0, _react.useMemo)(function () {
51
- return style ? /*#__PURE__*/(0, _base.default)(_drawer.Drawer, process.env.NODE_ENV === "production" ? {
52
- target: "el0bo470"
53
- } : {
54
- target: "el0bo470",
55
- label: "Drawer"
56
- })(style, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;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uc3QgRHJhd2VyUmlnaHQgPSAocHJvcHM6IERyYXdlclByb3BzKSA9PiB7XG4gICAgcmV0dXJuIChcbiAgICAgICAgPERpcmVjdGlvblJUTD5cbiAgICAgICAgICAgIDxEcmF3ZXIgey4uLnByb3BzfSAvPlxuICAgICAgICA8L0RpcmVjdGlvblJUTD5cbiAgICApO1xufTtcblxuY29uc3QgRHJhd2VyTGVmdCA9IChwcm9wczogRHJhd2VyUHJvcHMpID0+IHtcbiAgICByZXR1cm4gPERyYXdlciB7Li4ucHJvcHN9IC8+O1xufTtcblxuZXhwb3J0IHsgRHJhd2VyLCBEcmF3ZXJIZWFkZXIsIERyYXdlckNvbnRlbnQsIERyYXdlclJpZ2h0LCBEcmF3ZXJMZWZ0IH07XG4iXX0= */") : _drawer.Drawer;
57
- }, [style]);
58
- return /*#__PURE__*/_react.default.createElement(Drawer, props, children);
33
+ const DrawerLeft = props => {
34
+ return /*#__PURE__*/React.createElement(Drawer, Object.assign({
35
+ side: "left"
36
+ }, props));
59
37
  };
60
- var DrawerRight = exports.DrawerRight = function DrawerRight(props) {
61
- return /*#__PURE__*/_react.default.createElement(DirectionRTL, null, /*#__PURE__*/_react.default.createElement(Drawer, props));
38
+ /**
39
+ * @deprecated This component is deprecated and will be removed in future releases.
40
+ * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
41
+ */
42
+ const DrawerHeader = props => {
43
+ return /*#__PURE__*/React.createElement(AdminUiDrawerHeader, {
44
+ title: props.children,
45
+ description: ""
46
+ });
62
47
  };
63
- var DrawerLeft = exports.DrawerLeft = function DrawerLeft(props) {
64
- return /*#__PURE__*/_react.default.createElement(Drawer, props);
48
+ /**
49
+ * @deprecated This component is deprecated and will be removed in future releases.
50
+ * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.
51
+ */
52
+ const DrawerContent = props => {
53
+ return /*#__PURE__*/React.createElement(React.Fragment, null, props.children);
65
54
  };
55
+ export { Drawer, DrawerHeader, DrawerContent, DrawerRight, DrawerLeft };
66
56
 
67
57
  //# sourceMappingURL=Drawer.js.map