@webiny/ui 5.43.2 → 6.0.0-alpha.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 (575) hide show
  1. package/Accordion/Accordion.d.ts +7 -3
  2. package/Accordion/Accordion.js +9 -30
  3. package/Accordion/Accordion.js.map +1 -1
  4. package/Accordion/AccordionItem.d.ts +116 -37
  5. package/Accordion/AccordionItem.js +33 -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 +6 -18
  18. package/AutoComplete/AutoComplete.js +61 -289
  19. package/AutoComplete/AutoComplete.js.map +1 -1
  20. package/AutoComplete/MultiAutoComplete.d.ts +12 -46
  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 +4 -4
  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 +16 -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 +3 -5
  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 +4 -0
  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 +4 -12
  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 +4 -19
  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 -8
  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 +5 -1
  170. package/ImageUpload/ImageEditorDialog.js +11 -79
  171. package/ImageUpload/ImageEditorDialog.js.map +1 -1
  172. package/ImageUpload/MultiImageUpload.d.ts +6 -21
  173. package/ImageUpload/MultiImageUpload.js +12 -278
  174. package/ImageUpload/MultiImageUpload.js.map +1 -1
  175. package/ImageUpload/SingleImageUpload.d.ts +5 -22
  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 +59 -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 +3 -3
  248. package/Radio/Radio.js +34 -54
  249. package/Radio/Radio.js.map +1 -1
  250. package/Radio/RadioGroup.d.ts +6 -2
  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 +36 -3
  275. package/Select/Select.js +91 -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 +24 -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 +7 -13
  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 +18 -3
  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 +12 -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 +1 -1
  308. package/Tags/Tags.js +31 -83
  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 +4 -0
  330. package/TopAppBar/TopAppBarPrimary.js +13 -15
  331. package/TopAppBar/TopAppBarPrimary.js.map +1 -1
  332. package/TopAppBar/TopAppBarSecondary.d.ts +4 -0
  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 -63
  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 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_drawer","_excluded","_EMOTION_STRINGIFIED_CSS_ERROR__","DrawerHeader","exports","props","default","createElement","DrawerContent","DirectionRTL","_base","process","env","NODE_ENV","target","label","name","styles","map","toString","Drawer","_ref","style","children","_objectWithoutProperties2","useMemo","RmwcDrawer","DrawerRight","DrawerLeft"],"sources":["Drawer.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { CSSObject } from \"@emotion/react\";\nimport styled from \"@emotion/styled\";\nimport {\n Drawer as RmwcDrawer,\n DrawerContent as RmwcDrawerContent,\n DrawerHeader as RmwcDrawerHeader,\n DrawerProps as RmwcDrawerProps,\n DrawerHeaderProps as RmwcDrawerHeaderProps,\n DrawerContentProps as RmwcDrawerContentProps\n} from \"@rmwc/drawer\";\n\ntype DrawerHeaderProps = RmwcDrawerHeaderProps & {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\n/**\n * Shows header of the drawer.\n */\nconst DrawerHeader = (props: DrawerHeaderProps) => <RmwcDrawerHeader {...props} />;\n\nexport type DrawerContentProps = RmwcDrawerContentProps & {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\n/**\n * Shows drawer content. It can be anything, but commonly a List component would suffice here.\n */\nconst DrawerContent = (props: DrawerContentProps) => <RmwcDrawerContent {...props} />;\n\ntype DrawerProps = RmwcDrawerProps & {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS class name\n */\n className?: string;\n\n style?: CSSObject;\n};\n\nconst DirectionRTL = styled.div`\n .mdc-drawer.mdc-drawer--modal,\n .mdc-drawer.mdc-drawer--dismissable {\n left: initial;\n right: 0;\n }\n\n .mdc-drawer--animate {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n }\n\n .mdc-drawer.mdc-drawer--opening {\n -webkit-transform: translateX(0%) !important;\n transform: translateX(0%) !important;\n }\n\n .mdc-drawer.mdc-drawer--closing {\n -webkit-transform: translateX(100%) !important;\n transform: translateX(100%) !important;\n }\n`;\n\n/**\n * Use Drawer component to display navigation for the whole app or just a small section of it.\n */\nconst Drawer = ({ style, children, ...props }: DrawerProps) => {\n // Style the drawer using the styles that were passed in.\n const Drawer = useMemo(() => (style ? styled(RmwcDrawer)(style) : RmwcDrawer), [style]);\n\n return <Drawer {...props}>{children}</Drawer>;\n};\n\nconst DrawerRight = (props: DrawerProps) => {\n return (\n <DirectionRTL>\n <Drawer {...props} />\n </DirectionRTL>\n );\n};\n\nconst DrawerLeft = (props: DrawerProps) => {\n return <Drawer {...props} />;\n};\n\nexport { Drawer, DrawerHeader, DrawerContent, DrawerRight, DrawerLeft };\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,OAAA,GAAAD,OAAA;AAOsB,IAAAE,SAAA;AAAA,SAAAC,iCAAA;AActB;AACA;AACA;AACA,IAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,SAAfA,YAAYA,CAAIE,KAAwB;EAAA,oBAAKR,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACP,OAAA,CAAAG,YAAgB,EAAKE,KAAQ,CAAC;AAAA;AAclF;AACA;AACA;AACA,IAAMG,aAAa,GAAAJ,OAAA,CAAAI,aAAA,GAAG,SAAhBA,aAAaA,CAAIH,KAAyB;EAAA,oBAAKR,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACP,OAAA,CAAAQ,aAAiB,EAAKH,KAAQ,CAAC;AAAA;AAgBrF,IAAMI,YAAY,oBAAAC,KAAA,CAAAJ,OAAA,SAAAK,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAjB;AAAA,EAqBjB;;AAED;AACA;AACA;AACA,IAAMkB,MAAM,GAAAhB,OAAA,CAAAgB,MAAA,GAAG,SAATA,MAAMA,CAAAC,IAAA,EAAmD;EAAA,IAA7CC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAKlB,KAAK,OAAAmB,yBAAA,CAAAlB,OAAA,EAAAe,IAAA,EAAApB,SAAA;EACvC;EACA,IAAMmB,MAAM,GAAG,IAAAK,cAAO,EAAC;IAAA,OAAOH,KAAK,gBAAG,IAAAZ,KAAA,CAAAJ,OAAA,EAAOoB,cAAU,EAAAf,OAAA,CAAAC,GAAA,CAAAC,QAAA;MAAAC,MAAA;IAAA;MAAAA,MAAA;MAAAC,KAAA;IAAA,EAAC,CAACO,KAAK,EAAAX,OAAA,CAAAC,GAAA,CAAAC,QAAA,mtHAAC,GAAGa,cAAU;EAAA,CAAC,EAAE,CAACJ,KAAK,CAAC,CAAC;EAEvF,oBAAOzB,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACa,MAAM,EAAKf,KAAK,EAAGkB,QAAiB,CAAC;AACjD,CAAC;AAED,IAAMI,WAAW,GAAAvB,OAAA,CAAAuB,WAAA,GAAG,SAAdA,WAAWA,CAAItB,KAAkB,EAAK;EACxC,oBACIR,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACE,YAAY,qBACTZ,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACa,MAAM,EAAKf,KAAQ,CACV,CAAC;AAEvB,CAAC;AAED,IAAMuB,UAAU,GAAAxB,OAAA,CAAAwB,UAAA,GAAG,SAAbA,UAAUA,CAAIvB,KAAkB,EAAK;EACvC,oBAAOR,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACa,MAAM,EAAKf,KAAQ,CAAC;AAChC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Drawer","AdminUiDrawer","DrawerHeader","AdminUiDrawerHeader","children","props","createElement","Object","assign","side","DrawerRight","DrawerLeft","title","description","DrawerContent","Fragment"],"sources":["Drawer.tsx"],"sourcesContent":["import React from \"react\";\nimport { Drawer as AdminUiDrawer, type DrawerProps as AdminUiDrawerProps } from \"@webiny/admin-ui\";\nimport { DrawerHeader as AdminUiDrawerHeader } from \"@webiny/admin-ui/Drawer/components/DrawerHeader\";\n\n/**\n * Use Drawer component to display navigation for the whole app or just a small section of it.\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst Drawer = ({ children, ...props }: DrawerProps) => {\n return (\n <AdminUiDrawer side={\"left\"} {...props}>\n {children}\n </AdminUiDrawer>\n );\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerRight = (props: DrawerProps) => {\n return <Drawer side={\"right\"} {...props} />;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerLeft = (props: DrawerProps) => {\n return <Drawer side={\"left\"} {...props} />;\n};\n\ntype DrawerHeaderProps = {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS class name\n */\n className?: string;\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 */\nconst DrawerHeader = (props: DrawerHeaderProps) => {\n return <AdminUiDrawerHeader title={props.children} description={\"\"} />;\n};\n\nexport type DrawerContentProps = {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerContent = (props: DrawerContentProps) => {\n return <>{props.children}</>;\n};\n\nexport interface DrawerProps extends AdminUiDrawerProps {\n /**\n * @deprecated Property is no longer supported.\n */\n dismissible?: boolean;\n\n onClose?: () => void;\n}\n\nexport { Drawer, DrawerHeader, DrawerContent, DrawerRight, DrawerLeft };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,aAAa,QAAgD,kBAAkB;AAClG,SAASC,YAAY,IAAIC,mBAAmB,QAAQ,iDAAiD;;AAErG;AACA;AACA;AACA;AACA;AACA,MAAMH,MAAM,GAAGA,CAAC;EAAEI,QAAQ;EAAE,GAAGC;AAAmB,CAAC,KAAK;EACpD,oBACIN,KAAA,CAAAO,aAAA,CAACL,aAAa,EAAAM,MAAA,CAAAC,MAAA;IAACC,IAAI,EAAE;EAAO,GAAKJ,KAAK,GACjCD,QACU,CAAC;AAExB,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMM,WAAW,GAAIL,KAAkB,IAAK;EACxC,oBAAON,KAAA,CAAAO,aAAA,CAACN,MAAM,EAAAO,MAAA,CAAAC,MAAA;IAACC,IAAI,EAAE;EAAQ,GAAKJ,KAAK,CAAG,CAAC;AAC/C,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMM,UAAU,GAAIN,KAAkB,IAAK;EACvC,oBAAON,KAAA,CAAAO,aAAA,CAACN,MAAM,EAAAO,MAAA,CAAAC,MAAA;IAACC,IAAI,EAAE;EAAO,GAAKJ,KAAK,CAAG,CAAC;AAC9C,CAAC;AAcD;AACA;AACA;AACA;AACA,MAAMH,YAAY,GAAIG,KAAwB,IAAK;EAC/C,oBAAON,KAAA,CAAAO,aAAA,CAACH,mBAAmB;IAACS,KAAK,EAAEP,KAAK,CAACD,QAAS;IAACS,WAAW,EAAE;EAAG,CAAE,CAAC;AAC1E,CAAC;AAcD;AACA;AACA;AACA;AACA,MAAMC,aAAa,GAAIT,KAAyB,IAAK;EACjD,oBAAON,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAgB,QAAA,QAAGV,KAAK,CAACD,QAAW,CAAC;AAChC,CAAC;AAWD,SAASJ,MAAM,EAAEE,YAAY,EAAEY,aAAa,EAAEJ,WAAW,EAAEC,UAAU","ignoreList":[]}
package/Drawer/index.js CHANGED
@@ -1,18 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Drawer = require("./Drawer");
7
- Object.keys(_Drawer).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Drawer[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _Drawer[key];
14
- }
15
- });
16
- });
1
+ export * from "./Drawer";
17
2
 
18
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_Drawer","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./Drawer\";\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 \"./Drawer\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1 +1,7 @@
1
- export { default as DynamicFieldset } from "./Fieldset";
1
+ import { DynamicFieldset, type DynamicFieldsetProps } from "@webiny/admin-ui";
2
+ export {
3
+ /**
4
+ * @deprecated This component is deprecated and will be removed in future releases.
5
+ * Please use the `DynamicFieldset` component from the `@webiny/admin-ui` package instead.
6
+ */
7
+ DynamicFieldset, type DynamicFieldsetProps };
@@ -1,15 +1,9 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "DynamicFieldset", {
8
- enumerable: true,
9
- get: function get() {
10
- return _Fieldset.default;
11
- }
12
- });
13
- var _Fieldset = _interopRequireDefault(require("./Fieldset"));
1
+ import { DynamicFieldset } from "@webiny/admin-ui";
2
+ export {
3
+ /**
4
+ * @deprecated This component is deprecated and will be removed in future releases.
5
+ * Please use the `DynamicFieldset` component from the `@webiny/admin-ui` package instead.
6
+ */
7
+ DynamicFieldset };
14
8
 
15
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_Fieldset","_interopRequireDefault","require"],"sources":["index.ts"],"sourcesContent":["export { default as DynamicFieldset } from \"./Fieldset\";\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["DynamicFieldset"],"sources":["index.ts"],"sourcesContent":["import { DynamicFieldset, type DynamicFieldsetProps } from \"@webiny/admin-ui\";\n\nexport {\n /**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `DynamicFieldset` component from the `@webiny/admin-ui` package instead.\n */\n DynamicFieldset,\n type DynamicFieldsetProps\n};\n"],"mappings":"AAAA,SAASA,eAAe,QAAmC,kBAAkB;AAE7E;AACI;AACJ;AACA;AACA;AACIA,eAAe","ignoreList":[]}
@@ -7,7 +7,11 @@ export type ElevationProps = {
7
7
  style?: React.CSSProperties;
8
8
  };
9
9
  /**
10
- * Elevation component visually raises any content by applying shadow.
10
+ * @deprecated This component is deprecated and will be removed in future releases.
11
+ * Please use the `Card` component from the `@webiny/admin-ui` package instead.
11
12
  */
12
- declare const Elevation: React.ForwardRefExoticComponent<ElevationProps & React.RefAttributes<any>>;
13
+ declare const Elevation: {
14
+ ({ className, ...props }: ElevationProps): React.JSX.Element;
15
+ displayName: string;
16
+ };
13
17
  export { Elevation };
@@ -1,20 +1,18 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Elevation = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _elevation = require("@rmwc/elevation");
1
+ import React from "react";
2
+ import { cn } from "@webiny/admin-ui";
10
3
  /**
11
- * Elevation component visually raises any content by applying shadow.
4
+ * @deprecated This component is deprecated and will be removed in future releases.
5
+ * Please use the `Card` component from the `@webiny/admin-ui` package instead.
12
6
  */
13
- var Elevation = exports.Elevation = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
14
- return /*#__PURE__*/_react.default.createElement(_elevation.Elevation, Object.assign({
15
- ref: ref
16
- }, props), props.children);
17
- });
7
+ const Elevation = ({
8
+ className,
9
+ ...props
10
+ }) => {
11
+ return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
12
+ className: cn("wby-bg-white wby-shadow-md wby-p-4", className)
13
+ }), props.children);
14
+ };
18
15
  Elevation.displayName = "Elevation";
16
+ export { Elevation };
19
17
 
20
18
  //# sourceMappingURL=Elevation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_elevation","Elevation","exports","React","forwardRef","props","ref","default","createElement","Object","assign","children","displayName"],"sources":["Elevation.tsx"],"sourcesContent":["import React from \"react\";\nimport { Elevation as RmwcElevation } from \"@rmwc/elevation\";\n\nexport type ElevationProps = {\n // Any element that needs to be highlighted.\n children?: React.ReactNode;\n\n // Increasing this number (from 0 to 24) will increase the amount of shadow applied.\n z: number;\n\n // Adds smooth transitions when the z value changes.\n transition?: boolean;\n\n // CSS class name\n className?: string;\n\n // Style object\n style?: React.CSSProperties;\n};\n\n/**\n * Elevation component visually raises any content by applying shadow.\n */\nconst Elevation = React.forwardRef((props: ElevationProps, ref: React.Ref<any>) => {\n return (\n <RmwcElevation ref={ref} {...props}>\n {props.children}\n </RmwcElevation>\n );\n});\n\nElevation.displayName = \"Elevation\";\n\nexport { Elevation };\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAmBA;AACA;AACA;AACA,IAAME,SAAS,GAAAC,OAAA,CAAAD,SAAA,gBAAGE,cAAK,CAACC,UAAU,CAAC,UAACC,KAAqB,EAAEC,GAAmB,EAAK;EAC/E,oBACIT,MAAA,CAAAU,OAAA,CAAAC,aAAA,CAACR,UAAA,CAAAC,SAAa,EAAAQ,MAAA,CAAAC,MAAA;IAACJ,GAAG,EAAEA;EAAI,GAAKD,KAAK,GAC7BA,KAAK,CAACM,QACI,CAAC;AAExB,CAAC,CAAC;AAEFV,SAAS,CAACW,WAAW,GAAG,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["React","cn","Elevation","className","props","createElement","Object","assign","children","displayName"],"sources":["Elevation.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn } from \"@webiny/admin-ui\";\n\nexport type ElevationProps = {\n // Any element that needs to be highlighted.\n children?: React.ReactNode;\n\n // Increasing this number (from 0 to 24) will increase the amount of shadow applied.\n z: number;\n\n // Adds smooth transitions when the z value changes.\n transition?: boolean;\n\n // CSS class name\n className?: string;\n\n // Style object\n style?: React.CSSProperties;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Card` component from the `@webiny/admin-ui` package instead.\n */\nconst Elevation = ({ className, ...props }: ElevationProps) => {\n return (\n <div {...props} className={cn(\"wby-bg-white wby-shadow-md wby-p-4\", className)}>\n {props.children}\n </div>\n );\n};\n\nElevation.displayName = \"Elevation\";\n\nexport { Elevation };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,EAAE,QAAQ,kBAAkB;AAmBrC;AACA;AACA;AACA;AACA,MAAMC,SAAS,GAAGA,CAAC;EAAEC,SAAS;EAAE,GAAGC;AAAsB,CAAC,KAAK;EAC3D,oBACIJ,KAAA,CAAAK,aAAA,QAAAC,MAAA,CAAAC,MAAA,KAASH,KAAK;IAAED,SAAS,EAAEF,EAAE,CAAC,oCAAoC,EAAEE,SAAS;EAAE,IAC1EC,KAAK,CAACI,QACN,CAAC;AAEd,CAAC;AAEDN,SAAS,CAACO,WAAW,GAAG,WAAW;AAEnC,SAASP,SAAS","ignoreList":[]}
@@ -1,18 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Elevation = require("./Elevation");
7
- Object.keys(_Elevation).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Elevation[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _Elevation[key];
14
- }
15
- });
16
- });
1
+ export * from "./Elevation";
17
2
 
18
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_Elevation","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./Elevation\";\n"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Elevation\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,8 +1,12 @@
1
1
  import React from "react";
2
- type Props = {
2
+ type FormElementMessageProps = {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  error?: boolean;
6
6
  };
7
- declare const FormElementMessage: (props: Props) => React.JSX.Element;
7
+ /**
8
+ * @deprecated This component is deprecated and will be removed in future releases.
9
+ * Please use the `FormComponent` components from the `@webiny/admin-ui` package instead.
10
+ */
11
+ declare const FormElementMessage: ({ error, children, ...props }: FormElementMessageProps) => React.JSX.Element;
8
12
  export { FormElementMessage };
@@ -1,19 +1,24 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.FormElementMessage = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _classnames = _interopRequireDefault(require("classnames"));
10
- var FormElementMessage = exports.FormElementMessage = function FormElementMessage(props) {
11
- var classNames = (0, _classnames.default)("mdc-text-field-helper-text mdc-text-field-helper-text--persistent", props.className, {
12
- "mdc-text-field-helper-text--error": props.error
13
- });
14
- return /*#__PURE__*/_react.default.createElement("div", {
15
- className: classNames
16
- }, props.children);
1
+ import React from "react";
2
+ import { FormComponentErrorMessage, FormComponentNote } from "@webiny/admin-ui";
3
+ /**
4
+ * @deprecated This component is deprecated and will be removed in future releases.
5
+ * Please use the `FormComponent` components from the `@webiny/admin-ui` package instead.
6
+ */
7
+ const FormElementMessage = ({
8
+ error,
9
+ children,
10
+ ...props
11
+ }) => {
12
+ if (error) {
13
+ return /*#__PURE__*/React.createElement(FormComponentErrorMessage, Object.assign({}, props, {
14
+ invalid: error,
15
+ text: children
16
+ }));
17
+ }
18
+ return /*#__PURE__*/React.createElement(FormComponentNote, Object.assign({}, props, {
19
+ text: children
20
+ }));
17
21
  };
22
+ export { FormElementMessage };
18
23
 
19
24
  //# sourceMappingURL=FormElementMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_classnames","FormElementMessage","exports","props","classNames","classnames","className","error","default","createElement","children"],"sources":["FormElementMessage.tsx"],"sourcesContent":["import React from \"react\";\nimport classnames from \"classnames\";\n\ntype Props = {\n // message to display\n children: React.ReactNode;\n\n // optional class name\n className?: string;\n\n // is it an error message we're displaying\n error?: boolean;\n};\n\nconst FormElementMessage = (props: Props) => {\n const classNames = classnames(\n \"mdc-text-field-helper-text mdc-text-field-helper-text--persistent\",\n props.className,\n { \"mdc-text-field-helper-text--error\": props.error }\n );\n\n return <div className={classNames}>{props.children}</div>;\n};\n\nexport { FormElementMessage };\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAaA,IAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,SAArBA,kBAAkBA,CAAIE,KAAY,EAAK;EACzC,IAAMC,UAAU,GAAG,IAAAC,mBAAU,EACzB,mEAAmE,EACnEF,KAAK,CAACG,SAAS,EACf;IAAE,mCAAmC,EAAEH,KAAK,CAACI;EAAM,CACvD,CAAC;EAED,oBAAOV,MAAA,CAAAW,OAAA,CAAAC,aAAA;IAAKH,SAAS,EAAEF;EAAW,GAAED,KAAK,CAACO,QAAc,CAAC;AAC7D,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","FormComponentErrorMessage","FormComponentNote","FormElementMessage","error","children","props","createElement","Object","assign","invalid","text"],"sources":["FormElementMessage.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormComponentErrorMessage, FormComponentNote } from \"@webiny/admin-ui\";\n\ntype FormElementMessageProps = {\n // message to display\n children: React.ReactNode;\n\n // optional class name\n className?: string;\n\n // is it an error message we're displaying\n error?: boolean;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `FormComponent` components from the `@webiny/admin-ui` package instead.\n */\nconst FormElementMessage = ({ error, children, ...props }: FormElementMessageProps) => {\n if (error) {\n return <FormComponentErrorMessage {...props} invalid={error} text={children} />;\n }\n\n return <FormComponentNote {...props} text={children} />;\n};\n\nexport { FormElementMessage };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,yBAAyB,EAAEC,iBAAiB,QAAQ,kBAAkB;AAa/E;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAGA,CAAC;EAAEC,KAAK;EAAEC,QAAQ;EAAE,GAAGC;AAA+B,CAAC,KAAK;EACnF,IAAIF,KAAK,EAAE;IACP,oBAAOJ,KAAA,CAAAO,aAAA,CAACN,yBAAyB,EAAAO,MAAA,CAAAC,MAAA,KAAKH,KAAK;MAAEI,OAAO,EAAEN,KAAM;MAACO,IAAI,EAAEN;IAAS,EAAE,CAAC;EACnF;EAEA,oBAAOL,KAAA,CAAAO,aAAA,CAACL,iBAAiB,EAAAM,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEK,IAAI,EAAEN;EAAS,EAAE,CAAC;AAC3D,CAAC;AAED,SAASF,kBAAkB","ignoreList":[]}
@@ -1,14 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "FormElementMessage", {
7
- enumerable: true,
8
- get: function get() {
9
- return _FormElementMessage.FormElementMessage;
10
- }
11
- });
12
- var _FormElementMessage = require("./FormElementMessage");
1
+ export { FormElementMessage } from "./FormElementMessage";
13
2
 
14
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_FormElementMessage","require"],"sources":["index.ts"],"sourcesContent":["export { FormElementMessage } from \"./FormElementMessage\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["FormElementMessage"],"sources":["index.ts"],"sourcesContent":["export { FormElementMessage } from \"./FormElementMessage\";\n"],"mappings":"AAAA,SAASA,kBAAkB","ignoreList":[]}
@@ -4,5 +4,9 @@ type Props = {
4
4
  lastName?: string;
5
5
  };
6
6
  };
7
+ /**
8
+ * @deprecated This component is deprecated and will be removed in future releases.
9
+ * Please implement your own `FullName` component or reach out on Slack.
10
+ */
7
11
  declare const FullName: (props: Props) => string;
8
12
  export { FullName };
@@ -1,15 +1,16 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FullName = void 0;
7
- var FullName = exports.FullName = function FullName(props) {
8
- var data = props.data;
1
+ /**
2
+ * @deprecated This component is deprecated and will be removed in future releases.
3
+ * Please implement your own `FullName` component or reach out on Slack.
4
+ */
5
+ const FullName = props => {
6
+ console.warn("The `FullName` component is deprecated and will be removed in future releases.");
7
+ const {
8
+ data
9
+ } = props;
9
10
  if (!data) {
10
11
  return "N/A";
11
12
  }
12
- var output = "";
13
+ let output = "";
13
14
  if (data.firstName) {
14
15
  output += data.firstName;
15
16
  }
@@ -18,5 +19,6 @@ var FullName = exports.FullName = function FullName(props) {
18
19
  }
19
20
  return output;
20
21
  };
22
+ export { FullName };
21
23
 
22
24
  //# sourceMappingURL=FullName.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FullName","exports","props","data","output","firstName","lastName"],"sources":["FullName.ts"],"sourcesContent":["type Props = {\n data?: {\n firstName?: string;\n lastName?: string;\n };\n};\n\nconst FullName = (props: Props) => {\n const { data } = props;\n\n if (!data) {\n return \"N/A\";\n }\n\n let output = \"\";\n if (data.firstName) {\n output += data.firstName;\n }\n\n if (data.lastName) {\n output += \" \" + data.lastName;\n }\n\n return output;\n};\n\nexport { FullName };\n"],"mappings":";;;;;;AAOA,IAAMA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG,SAAXA,QAAQA,CAAIE,KAAY,EAAK;EAC/B,IAAQC,IAAI,GAAKD,KAAK,CAAdC,IAAI;EAEZ,IAAI,CAACA,IAAI,EAAE;IACP,OAAO,KAAK;EAChB;EAEA,IAAIC,MAAM,GAAG,EAAE;EACf,IAAID,IAAI,CAACE,SAAS,EAAE;IAChBD,MAAM,IAAID,IAAI,CAACE,SAAS;EAC5B;EAEA,IAAIF,IAAI,CAACG,QAAQ,EAAE;IACfF,MAAM,IAAI,GAAG,GAAGD,IAAI,CAACG,QAAQ;EACjC;EAEA,OAAOF,MAAM;AACjB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["FullName","props","console","warn","data","output","firstName","lastName"],"sources":["FullName.ts"],"sourcesContent":["type Props = {\n data?: {\n firstName?: string;\n lastName?: string;\n };\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please implement your own `FullName` component or reach out on Slack.\n */\nconst FullName = (props: Props) => {\n console.warn(\"The `FullName` component is deprecated and will be removed in future releases.\");\n const { data } = props;\n\n if (!data) {\n return \"N/A\";\n }\n\n let output = \"\";\n if (data.firstName) {\n output += data.firstName;\n }\n\n if (data.lastName) {\n output += \" \" + data.lastName;\n }\n\n return output;\n};\n\nexport { FullName };\n"],"mappings":"AAOA;AACA;AACA;AACA;AACA,MAAMA,QAAQ,GAAIC,KAAY,IAAK;EAC/BC,OAAO,CAACC,IAAI,CAAC,gFAAgF,CAAC;EAC9F,MAAM;IAAEC;EAAK,CAAC,GAAGH,KAAK;EAEtB,IAAI,CAACG,IAAI,EAAE;IACP,OAAO,KAAK;EAChB;EAEA,IAAIC,MAAM,GAAG,EAAE;EACf,IAAID,IAAI,CAACE,SAAS,EAAE;IAChBD,MAAM,IAAID,IAAI,CAACE,SAAS;EAC5B;EAEA,IAAIF,IAAI,CAACG,QAAQ,EAAE;IACfF,MAAM,IAAI,GAAG,GAAGD,IAAI,CAACG,QAAQ;EACjC;EAEA,OAAOF,MAAM;AACjB,CAAC;AAED,SAASL,QAAQ","ignoreList":[]}
package/FullName/index.js CHANGED
@@ -1,18 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _FullName = require("./FullName");
7
- Object.keys(_FullName).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _FullName[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _FullName[key];
14
- }
15
- });
16
- });
1
+ export * from "./FullName";
17
2
 
18
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_FullName","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./FullName\";\n"],"mappings":";;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,SAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./FullName\";\n"],"mappings":"AAAA","ignoreList":[]}
package/Grid/Grid.d.ts CHANGED
@@ -1,6 +1,26 @@
1
- import React from "react";
2
- import { GridCellProps as RmwcGridCellProps, GridProps as RmwcGridProps } from "@rmwc/grid";
3
- import { CSSProperties } from "react";
1
+ import React, { CSSProperties } from "react";
2
+ export interface RmwcGridProps {
3
+ /** Specifies the grid should have fixed column width. */
4
+ fixedColumnWidth?: boolean;
5
+ /** Specifies the alignment of the whole grid. */
6
+ align?: "left" | "right";
7
+ /** Children for the Grid */
8
+ children?: React.ReactNode;
9
+ }
10
+ export interface RmwcGridCellProps {
11
+ /** Default number of columns to span. */
12
+ span?: number;
13
+ /** Number of columns to span on a phone. */
14
+ phone?: number;
15
+ /** Number of columns to span on a tablet. */
16
+ tablet?: number;
17
+ /** Number of columns to span on a desktop. */
18
+ desktop?: number;
19
+ /** Specifies the order of the cell. */
20
+ order?: number;
21
+ /** Specifies the alignment of cell */
22
+ align?: "top" | "middle" | "bottom";
23
+ }
4
24
  export type CellProps = RmwcGridCellProps & {
5
25
  children?: React.ReactNode;
6
26
  className?: string;
@@ -8,12 +28,10 @@ export type CellProps = RmwcGridCellProps & {
8
28
  [key: string]: any;
9
29
  };
10
30
  };
11
- export type GridProps = RmwcGridProps & {
12
- className?: string;
13
- style?: CSSProperties;
14
- };
15
31
  /**
16
32
  * Cell must be direct children of Grid component.
33
+ * @deprecated This component is deprecated and will be removed in future releases.
34
+ * Please use the `Grid` component from the `@webiny/admin-ui` package instead.
17
35
  */
18
36
  export declare const Cell: (props: CellProps) => React.JSX.Element;
19
37
  export type GridInnerProps = {
@@ -24,10 +42,16 @@ export type GridInnerProps = {
24
42
  className?: string;
25
43
  };
26
44
  export declare const GridInner: {
27
- (props: GridInnerProps): React.JSX.Element;
45
+ ({ className, ...props }: GridInnerProps): React.JSX.Element;
28
46
  displayName: string;
29
47
  };
48
+ export type GridProps = RmwcGridProps & {
49
+ className?: string;
50
+ style?: CSSProperties;
51
+ };
30
52
  /**
31
53
  * Use Grid component to display a list of choices, once the handler is triggered.
54
+ * @deprecated This component is deprecated and will be removed in future releases.
55
+ * Please use the `Grid` component from the `@webiny/admin-ui` package instead.
32
56
  */
33
57
  export declare const Grid: (props: GridProps) => React.JSX.Element;
package/Grid/Grid.js CHANGED
@@ -1,28 +1,49 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.GridInner = exports.Grid = exports.Cell = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _grid = require("@rmwc/grid");
1
+ import React from "react";
2
+ import cn from "classnames";
3
+ import { Grid as AdminUiGrid } from "@webiny/admin-ui";
10
4
  /**
11
5
  * Cell must be direct children of Grid component.
6
+ * @deprecated This component is deprecated and will be removed in future releases.
7
+ * Please use the `Grid` component from the `@webiny/admin-ui` package instead.
12
8
  */
13
- var Cell = exports.Cell = function Cell(props) {
14
- return /*#__PURE__*/_react.default.createElement(_grid.GridCell, props, props.children);
9
+ export const Cell = props => {
10
+ const {
11
+ children,
12
+ style,
13
+ className,
14
+ align
15
+ } = props;
16
+ return /*#__PURE__*/React.createElement(AdminUiGrid.Column, {
17
+ className: className,
18
+ style: style,
19
+ span: props.span,
20
+ align: align
21
+ }, children);
15
22
  };
16
- var GridInner = exports.GridInner = function GridInner(props) {
17
- return /*#__PURE__*/_react.default.createElement(_grid.GridRow, props, props.children);
23
+ export const GridInner = ({
24
+ className,
25
+ ...props
26
+ }) => {
27
+ return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
28
+ className: cn("wby-grid wby-grid-cols-12 wby-gap-6 wby-m-0 wby-flex wby-flex-wrap wby-items-stretch", className)
29
+ }), props.children);
18
30
  };
19
31
  GridInner.displayName = "GridInner";
20
-
21
32
  /**
22
33
  * Use Grid component to display a list of choices, once the handler is triggered.
34
+ * @deprecated This component is deprecated and will be removed in future releases.
35
+ * Please use the `Grid` component from the `@webiny/admin-ui` package instead.
23
36
  */
24
- var Grid = exports.Grid = function Grid(props) {
25
- return /*#__PURE__*/_react.default.createElement(_grid.Grid, props, props.children);
37
+ export const Grid = props => {
38
+ const {
39
+ children,
40
+ style,
41
+ className
42
+ } = props;
43
+ return /*#__PURE__*/React.createElement(AdminUiGrid, {
44
+ className: className,
45
+ style: style
46
+ }, children);
26
47
  };
27
48
 
28
49
  //# sourceMappingURL=Grid.js.map
package/Grid/Grid.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_grid","Cell","exports","props","default","createElement","GridCell","children","GridInner","GridRow","displayName","Grid"],"sources":["Grid.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n Grid as RmwcGrid,\n GridCell as RmwcGridCell,\n GridRow as RmwcGridInner,\n GridCellProps as RmwcGridCellProps,\n GridProps as RmwcGridProps\n} from \"@rmwc/grid\";\nimport { CSSProperties } from \"react\";\n\nexport type CellProps = RmwcGridCellProps & {\n // One or more Cell components.\n children?: React.ReactNode;\n\n // CSS class name that will be added to the element\n className?: string;\n\n style?: { [key: string]: any };\n};\n\nexport type GridProps = RmwcGridProps & {\n className?: string;\n style?: CSSProperties;\n};\n\n/**\n * Cell must be direct children of Grid component.\n */\nexport const Cell = (props: CellProps) => {\n return <RmwcGridCell {...props}>{props.children}</RmwcGridCell>;\n};\n\nexport type GridInnerProps = {\n // One or more Cell components.\n children: React.ReactElement<typeof Cell> | React.ReactElement<typeof Cell>[];\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\nexport const GridInner = (props: GridInnerProps) => {\n return <RmwcGridInner {...props}>{props.children}</RmwcGridInner>;\n};\n\nGridInner.displayName = \"GridInner\";\n\n/**\n * Use Grid component to display a list of choices, once the handler is triggered.\n */\nexport const Grid = (props: GridProps) => {\n return <RmwcGrid {...props}>{props.children}</RmwcGrid>;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAwBA;AACA;AACA;AACO,IAAME,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG,SAAPA,IAAIA,CAAIE,KAAgB,EAAK;EACtC,oBAAON,MAAA,CAAAO,OAAA,CAAAC,aAAA,CAACL,KAAA,CAAAM,QAAY,EAAKH,KAAK,EAAGA,KAAK,CAACI,QAAuB,CAAC;AACnE,CAAC;AAYM,IAAMC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,SAAZA,SAASA,CAAIL,KAAqB,EAAK;EAChD,oBAAON,MAAA,CAAAO,OAAA,CAAAC,aAAA,CAACL,KAAA,CAAAS,OAAa,EAAKN,KAAK,EAAGA,KAAK,CAACI,QAAwB,CAAC;AACrE,CAAC;AAEDC,SAAS,CAACE,WAAW,GAAG,WAAW;;AAEnC;AACA;AACA;AACO,IAAMC,IAAI,GAAAT,OAAA,CAAAS,IAAA,GAAG,SAAPA,IAAIA,CAAIR,KAAgB,EAAK;EACtC,oBAAON,MAAA,CAAAO,OAAA,CAAAC,aAAA,CAACL,KAAA,CAAAW,IAAQ,EAAKR,KAAK,EAAGA,KAAK,CAACI,QAAmB,CAAC;AAC3D,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","cn","Grid","AdminUiGrid","Cell","props","children","style","className","align","createElement","Column","span","GridInner","Object","assign","displayName"],"sources":["Grid.tsx"],"sourcesContent":["import React, { CSSProperties } from \"react\";\nimport cn from \"classnames\";\nimport { Grid as AdminUiGrid, ColumnProps as AdminUiColumnProps } from \"@webiny/admin-ui\";\n\nexport interface RmwcGridProps {\n /** Specifies the grid should have fixed column width. */\n fixedColumnWidth?: boolean;\n /** Specifies the alignment of the whole grid. */\n align?: \"left\" | \"right\";\n /** Children for the Grid */\n children?: React.ReactNode;\n}\n\nexport interface RmwcGridCellProps {\n /** Default number of columns to span. */\n span?: number;\n /** Number of columns to span on a phone. */\n phone?: number;\n /** Number of columns to span on a tablet. */\n tablet?: number;\n /** Number of columns to span on a desktop. */\n desktop?: number;\n /** Specifies the order of the cell. */\n order?: number;\n /** Specifies the alignment of cell */\n align?: \"top\" | \"middle\" | \"bottom\";\n}\n\nexport type CellProps = RmwcGridCellProps & {\n // One or more Cell components.\n children?: React.ReactNode;\n\n // CSS class name that will be added to the element\n className?: string;\n\n style?: { [key: string]: any };\n};\n\n/**\n * Cell must be direct children of Grid component.\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Grid` component from the `@webiny/admin-ui` package instead.\n */\nexport const Cell = (props: CellProps) => {\n const { children, style, className, align } = props;\n return (\n <AdminUiGrid.Column\n className={className}\n style={style}\n span={props.span as AdminUiColumnProps[\"span\"]}\n align={align}\n >\n {children}\n </AdminUiGrid.Column>\n );\n};\n\nexport type GridInnerProps = {\n // One or more Cell components.\n children: React.ReactElement<typeof Cell> | React.ReactElement<typeof Cell>[];\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\nexport const GridInner = ({ className, ...props }: GridInnerProps) => {\n return (\n <div\n {...props}\n className={cn(\n \"wby-grid wby-grid-cols-12 wby-gap-6 wby-m-0 wby-flex wby-flex-wrap wby-items-stretch\",\n className\n )}\n >\n {props.children}\n </div>\n );\n};\n\nGridInner.displayName = \"GridInner\";\n\nexport type GridProps = RmwcGridProps & {\n className?: string;\n style?: CSSProperties;\n};\n\n/**\n * Use Grid component to display a list of choices, once the handler is triggered.\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Grid` component from the `@webiny/admin-ui` package instead.\n */\nexport const Grid = (props: GridProps) => {\n const { children, style, className } = props;\n\n return (\n <AdminUiGrid className={className} style={style}>\n {children as React.ReactElement<AdminUiColumnProps, typeof AdminUiGrid.Column>}\n </AdminUiGrid>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAyB,OAAO;AAC5C,OAAOC,EAAE,MAAM,YAAY;AAC3B,SAASC,IAAI,IAAIC,WAAW,QAA2C,kBAAkB;AAoCzF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GAAIC,KAAgB,IAAK;EACtC,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,SAAS;IAAEC;EAAM,CAAC,GAAGJ,KAAK;EACnD,oBACIL,KAAA,CAAAU,aAAA,CAACP,WAAW,CAACQ,MAAM;IACfH,SAAS,EAAEA,SAAU;IACrBD,KAAK,EAAEA,KAAM;IACbK,IAAI,EAAEP,KAAK,CAACO,IAAmC;IAC/CH,KAAK,EAAEA;EAAM,GAEZH,QACe,CAAC;AAE7B,CAAC;AAYD,OAAO,MAAMO,SAAS,GAAGA,CAAC;EAAEL,SAAS;EAAE,GAAGH;AAAsB,CAAC,KAAK;EAClE,oBACIL,KAAA,CAAAU,aAAA,QAAAI,MAAA,CAAAC,MAAA,KACQV,KAAK;IACTG,SAAS,EAAEP,EAAE,CACT,sFAAsF,EACtFO,SACJ;EAAE,IAEDH,KAAK,CAACC,QACN,CAAC;AAEd,CAAC;AAEDO,SAAS,CAACG,WAAW,GAAG,WAAW;AAOnC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMd,IAAI,GAAIG,KAAgB,IAAK;EACtC,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC;EAAU,CAAC,GAAGH,KAAK;EAE5C,oBACIL,KAAA,CAAAU,aAAA,CAACP,WAAW;IAACK,SAAS,EAAEA,SAAU;IAACD,KAAK,EAAEA;EAAM,GAC3CD,QACQ,CAAC;AAEtB,CAAC","ignoreList":[]}
package/Grid/index.js CHANGED
@@ -1,18 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Grid = require("./Grid");
7
- Object.keys(_Grid).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Grid[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _Grid[key];
14
- }
15
- });
16
- });
1
+ export * from "./Grid";
17
2
 
18
3
  //# sourceMappingURL=index.js.map
package/Grid/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_Grid","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./Grid\";\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Grid\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -3,9 +3,9 @@
3
3
  * the provided appendClasses(string) and any class names defined inside your props.
4
4
  * To you the function just do: {...getClasses (props)}
5
5
  * and make sure you are not spreading the `props` element, as this will clone and spread your current `props` element already.
6
- */
7
- /**
8
- * TODO @ts-refactor figure out propList type
6
+ *
7
+ * @deprecated This component is deprecated and will be removed in future releases.
8
+ * Please implement your own `getClasses` function or reach out on Slack.
9
9
  */
10
10
  declare const getClasses: (propList: any, appendClasses: string[] | string) => any;
11
11
  export { getClasses };
@@ -1,33 +1,27 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.getClasses = void 0;
8
- var _classnames = _interopRequireDefault(require("classnames"));
9
- var _clone = _interopRequireDefault(require("lodash/clone"));
10
1
  /**
11
2
  * This is a pass-through that modifies your object's props and creates the required className prop by merging
12
3
  * the provided appendClasses(string) and any class names defined inside your props.
13
4
  * To you the function just do: {...getClasses (props)}
14
5
  * and make sure you are not spreading the `props` element, as this will clone and spread your current `props` element already.
6
+ *
7
+ * @deprecated This component is deprecated and will be removed in future releases.
8
+ * Please implement your own `getClasses` function or reach out on Slack.
15
9
  */
16
- /**
17
- * TODO @ts-refactor figure out propList type
18
- */
19
- var getClasses = exports.getClasses = function getClasses(propList, appendClasses) {
20
- var classes = "";
21
- var props = (0, _clone.default)(propList);
22
- if (propList.hasOwnProperty("className")) {
23
- classes = (0, _classnames.default)(propList.className);
10
+ const getClasses = (propList, appendClasses) => {
11
+ let classes = "";
12
+ const props = {
13
+ ...propList
14
+ };
15
+ if (propList.className) {
16
+ classes = propList.className;
24
17
  delete props.className;
25
18
  }
26
- if (typeof appendClasses !== "undefined") {
27
- classes = (0, _classnames.default)(classes, appendClasses);
19
+ if (appendClasses) {
20
+ classes = `${classes} ${Array.isArray(appendClasses) ? appendClasses.join(" ") : appendClasses}`.trim();
28
21
  }
29
22
  props.className = classes;
30
23
  return props;
31
24
  };
25
+ export { getClasses };
32
26
 
33
27
  //# sourceMappingURL=ClassNames.js.map