@webiny/ui 0.0.0-unstable.fcdad0bc61 → 0.0.0-unstable.fdd9228b5d

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 (708) hide show
  1. package/Accordion/Accordion.d.ts +10 -6
  2. package/Accordion/Accordion.js +10 -42
  3. package/Accordion/Accordion.js.map +1 -1
  4. package/Accordion/AccordionItem.d.ts +98 -18
  5. package/Accordion/AccordionItem.js +32 -148
  6. package/Accordion/AccordionItem.js.map +1 -1
  7. package/Accordion/AccordionItemActions.d.ts +25 -0
  8. package/Accordion/AccordionItemActions.js +47 -0
  9. package/Accordion/AccordionItemActions.js.map +1 -0
  10. package/Accordion/index.js +3 -30
  11. package/Accordion/index.js.map +1 -1
  12. package/Alert/Alert.d.ts +5 -4
  13. package/Alert/Alert.js +17 -59
  14. package/Alert/Alert.js.map +1 -1
  15. package/Alert/index.js +2 -17
  16. package/Alert/index.js.map +1 -1
  17. package/AutoComplete/AutoComplete.d.ts +8 -19
  18. package/AutoComplete/AutoComplete.js +64 -340
  19. package/AutoComplete/AutoComplete.js.map +1 -1
  20. package/AutoComplete/MultiAutoComplete.d.ts +18 -48
  21. package/AutoComplete/MultiAutoComplete.js +79 -630
  22. package/AutoComplete/MultiAutoComplete.js.map +1 -1
  23. package/AutoComplete/index.js +3 -30
  24. package/AutoComplete/index.js.map +1 -1
  25. package/AutoComplete/types.d.ts +8 -8
  26. package/AutoComplete/types.js +2 -4
  27. package/AutoComplete/types.js.map +1 -1
  28. package/AutoComplete/utils.d.ts +1 -1
  29. package/AutoComplete/utils.js +5 -20
  30. package/AutoComplete/utils.js.map +1 -1
  31. package/Avatar/Avatar.d.ts +3 -2
  32. package/Avatar/Avatar.js +31 -94
  33. package/Avatar/Avatar.js.map +1 -1
  34. package/Avatar/index.js +2 -17
  35. package/Avatar/index.js.map +1 -1
  36. package/Button/Button.d.ts +38 -29
  37. package/Button/Button.js +13 -149
  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 +10 -44
  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 +12 -59
  68. package/Carousel/Carousel.js.map +1 -1
  69. package/Carousel/index.js +2 -14
  70. package/Carousel/index.js.map +1 -1
  71. package/Checkbox/Checkbox.d.ts +9 -9
  72. package/Checkbox/Checkbox.js +33 -85
  73. package/Checkbox/Checkbox.js.map +1 -1
  74. package/Checkbox/CheckboxGroup.d.ts +7 -3
  75. package/Checkbox/CheckboxGroup.js +47 -77
  76. package/Checkbox/CheckboxGroup.js.map +1 -1
  77. package/Checkbox/index.js +3 -22
  78. package/Checkbox/index.js.map +1 -1
  79. package/Chips/Chip.d.ts +35 -3
  80. package/Chips/Chip.js +49 -22
  81. package/Chips/Chip.js.map +1 -1
  82. package/Chips/Chips.d.ts +6 -2
  83. package/Chips/Chips.js +16 -32
  84. package/Chips/Chips.js.map +1 -1
  85. package/Chips/index.js +3 -30
  86. package/Chips/index.js.map +1 -1
  87. package/CodeEditor/CodeEditor.d.ts +6 -9
  88. package/CodeEditor/CodeEditor.js +14 -103
  89. package/CodeEditor/CodeEditor.js.map +1 -1
  90. package/CodeEditor/index.js +2 -17
  91. package/CodeEditor/index.js.map +1 -1
  92. package/ColorPicker/ColorPicker.d.ts +6 -16
  93. package/ColorPicker/ColorPicker.js +26 -147
  94. package/ColorPicker/ColorPicker.js.map +1 -1
  95. package/ColorPicker/index.js +2 -17
  96. package/ColorPicker/index.js.map +1 -1
  97. package/ConfirmationDialog/ConfirmationDialog.d.ts +2 -2
  98. package/ConfirmationDialog/ConfirmationDialog.js +81 -166
  99. package/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
  100. package/ConfirmationDialog/index.js +3 -30
  101. package/ConfirmationDialog/index.js.map +1 -1
  102. package/ConfirmationDialog/withConfirmation.d.ts +5 -5
  103. package/ConfirmationDialog/withConfirmation.js +11 -23
  104. package/ConfirmationDialog/withConfirmation.js.map +1 -1
  105. package/DataTable/DataTable.d.ts +56 -19
  106. package/DataTable/DataTable.js +63 -155
  107. package/DataTable/DataTable.js.map +1 -1
  108. package/DataTable/index.js +2 -17
  109. package/DataTable/index.js.map +1 -1
  110. package/DateTime/Date.d.ts +7 -0
  111. package/DateTime/Date.js +33 -0
  112. package/DateTime/Date.js.map +1 -0
  113. package/DateTime/index.d.ts +1 -0
  114. package/DateTime/index.js +3 -0
  115. package/DateTime/index.js.map +1 -0
  116. package/DelayedOnChange/index.d.ts +7 -2
  117. package/DelayedOnChange/index.js +9 -23
  118. package/DelayedOnChange/index.js.map +1 -1
  119. package/Dialog/Dialog.d.ts +47 -60
  120. package/Dialog/Dialog.js +71 -117
  121. package/Dialog/Dialog.js.map +1 -1
  122. package/Dialog/index.js +2 -17
  123. package/Dialog/index.js.map +1 -1
  124. package/Drawer/Drawer.d.ts +31 -22
  125. package/Drawer/Drawer.js +44 -26
  126. package/Drawer/Drawer.js.map +1 -1
  127. package/Drawer/index.js +2 -17
  128. package/Drawer/index.js.map +1 -1
  129. package/DynamicFieldset/index.d.ts +7 -1
  130. package/DynamicFieldset/index.js +8 -14
  131. package/DynamicFieldset/index.js.map +1 -1
  132. package/Elevation/Elevation.d.ts +7 -3
  133. package/Elevation/Elevation.js +15 -21
  134. package/Elevation/Elevation.js.map +1 -1
  135. package/Elevation/index.js +2 -17
  136. package/Elevation/index.js.map +1 -1
  137. package/FormElementMessage/FormElementMessage.d.ts +6 -2
  138. package/FormElementMessage/FormElementMessage.js +22 -21
  139. package/FormElementMessage/FormElementMessage.js.map +1 -1
  140. package/FormElementMessage/index.js +2 -12
  141. package/FormElementMessage/index.js.map +1 -1
  142. package/FullName/FullName.d.ts +5 -1
  143. package/FullName/FullName.js +12 -16
  144. package/FullName/FullName.js.map +1 -1
  145. package/FullName/index.js +2 -17
  146. package/FullName/index.js.map +1 -1
  147. package/Grid/Grid.d.ts +36 -11
  148. package/Grid/Grid.js +38 -26
  149. package/Grid/Grid.js.map +1 -1
  150. package/Grid/index.js +2 -17
  151. package/Grid/index.js.map +1 -1
  152. package/Helpers/ClassNames.d.ts +3 -3
  153. package/Helpers/ClassNames.js +14 -28
  154. package/Helpers/ClassNames.js.map +1 -1
  155. package/Helpers/index.js +3 -12
  156. package/Helpers/index.js.map +1 -1
  157. package/Icon/Icon.d.ts +9 -4
  158. package/Icon/Icon.js +10 -31
  159. package/Icon/Icon.js.map +1 -1
  160. package/Icon/index.js +2 -17
  161. package/Icon/index.js.map +1 -1
  162. package/Image/index.d.ts +6 -1
  163. package/Image/index.js +7 -16
  164. package/Image/index.js.map +1 -1
  165. package/ImageEditor/ImageEditor.d.ts +11 -27
  166. package/ImageEditor/ImageEditor.js +10 -358
  167. package/ImageEditor/ImageEditor.js.map +1 -1
  168. package/ImageEditor/index.js +2 -17
  169. package/ImageEditor/index.js.map +1 -1
  170. package/ImageUpload/Image.d.ts +8 -14
  171. package/ImageUpload/Image.js +14 -141
  172. package/ImageUpload/Image.js.map +1 -1
  173. package/ImageUpload/ImageEditorDialog.d.ts +7 -10
  174. package/ImageUpload/ImageEditorDialog.js +14 -117
  175. package/ImageUpload/ImageEditorDialog.js.map +1 -1
  176. package/ImageUpload/MultiImageUpload.d.ts +11 -24
  177. package/ImageUpload/MultiImageUpload.js +14 -419
  178. package/ImageUpload/MultiImageUpload.js.map +1 -1
  179. package/ImageUpload/SingleImageUpload.d.ts +10 -25
  180. package/ImageUpload/SingleImageUpload.js +14 -255
  181. package/ImageUpload/SingleImageUpload.js.map +1 -1
  182. package/ImageUpload/index.d.ts +2 -2
  183. package/ImageUpload/index.js +5 -38
  184. package/ImageUpload/index.js.map +1 -1
  185. package/Input/Input.d.ts +62 -16
  186. package/Input/Input.js +81 -173
  187. package/Input/Input.js.map +1 -1
  188. package/Input/index.js +2 -17
  189. package/Input/index.js.map +1 -1
  190. package/List/CollapsibleList/index.d.ts +19 -5
  191. package/List/CollapsibleList/index.js +10 -20
  192. package/List/CollapsibleList/index.js.map +1 -1
  193. package/List/DataList/DataList.d.ts +13 -39
  194. package/List/DataList/DataList.js +18 -356
  195. package/List/DataList/DataList.js.map +1 -1
  196. package/List/DataList/DataListModalOverlay/index.d.ts +12 -3
  197. package/List/DataList/DataListModalOverlay/index.js +13 -32
  198. package/List/DataList/DataListModalOverlay/index.js.map +1 -1
  199. package/List/DataList/DataListWithSections.d.ts +13 -37
  200. package/List/DataList/DataListWithSections.js +18 -356
  201. package/List/DataList/DataListWithSections.js.map +1 -1
  202. package/List/DataList/icons/index.d.ts +1 -15
  203. package/List/DataList/icons/index.js +2 -99
  204. package/List/DataList/icons/index.js.map +1 -1
  205. package/List/DataList/index.d.ts +0 -1
  206. package/List/DataList/index.js +4 -63
  207. package/List/DataList/index.js.map +1 -1
  208. package/List/DataList/types.d.ts +1 -28
  209. package/List/DataList/types.js +2 -4
  210. package/List/DataList/types.js.map +1 -1
  211. package/List/List/List.d.ts +51 -0
  212. package/List/List/List.js +16 -0
  213. package/List/List/List.js.map +1 -0
  214. package/List/List/ListItem.d.ts +61 -0
  215. package/List/List/ListItem.js +91 -0
  216. package/List/List/ListItem.js.map +1 -0
  217. package/List/List/ListItemAction.d.ts +9 -0
  218. package/List/List/ListItemAction.js +15 -0
  219. package/List/List/ListItemAction.js.map +1 -0
  220. package/List/List/ListItemGraphic.d.ts +18 -0
  221. package/List/List/ListItemGraphic.js +26 -0
  222. package/List/List/ListItemGraphic.js.map +1 -0
  223. package/List/List/ListItemMeta.d.ts +26 -0
  224. package/List/List/ListItemMeta.js +24 -0
  225. package/List/List/ListItemMeta.js.map +1 -0
  226. package/List/List/ListItemText.d.ts +42 -0
  227. package/List/List/ListItemText.js +51 -0
  228. package/List/List/ListItemText.js.map +1 -0
  229. package/List/List/index.d.ts +6 -0
  230. package/List/List/index.js +8 -0
  231. package/List/List/index.js.map +1 -0
  232. package/List/index.d.ts +1 -0
  233. package/List/index.js +5 -73
  234. package/List/index.js.map +1 -1
  235. package/Menu/Menu.d.ts +57 -20
  236. package/Menu/Menu.js +74 -127
  237. package/Menu/Menu.js.map +1 -1
  238. package/Menu/index.js +2 -17
  239. package/Menu/index.js.map +1 -1
  240. package/Mosaic/Mosaic.d.ts +7 -6
  241. package/Mosaic/Mosaic.js +7 -32
  242. package/Mosaic/Mosaic.js.map +1 -1
  243. package/Mosaic/index.js +2 -17
  244. package/Mosaic/index.js.map +1 -1
  245. package/Progress/CircularProgress.d.ts +10 -2
  246. package/Progress/CircularProgress.js +17 -79
  247. package/Progress/CircularProgress.js.map +1 -1
  248. package/Progress/index.d.ts +1 -1
  249. package/Progress/index.js +2 -14
  250. package/Progress/index.js.map +1 -1
  251. package/README.md +1 -3
  252. package/Radio/Radio.d.ts +7 -8
  253. package/Radio/Radio.js +35 -78
  254. package/Radio/Radio.js.map +1 -1
  255. package/Radio/RadioGroup.d.ts +9 -5
  256. package/Radio/RadioGroup.js +38 -66
  257. package/Radio/RadioGroup.js.map +1 -1
  258. package/Radio/index.js +3 -22
  259. package/Radio/index.js.map +1 -1
  260. package/RichTextEditor/RichTextEditor.d.ts +10 -29
  261. package/RichTextEditor/RichTextEditor.js +15 -169
  262. package/RichTextEditor/RichTextEditor.js.map +1 -1
  263. package/RichTextEditor/index.d.ts +3 -2
  264. package/RichTextEditor/index.js +3 -29
  265. package/RichTextEditor/index.js.map +1 -1
  266. package/Ripple/Ripple.d.ts +3 -2
  267. package/Ripple/Ripple.js +7 -21
  268. package/Ripple/Ripple.js.map +1 -1
  269. package/Ripple/index.js +2 -17
  270. package/Ripple/index.js.map +1 -1
  271. package/Scrollbar/Scrollbar.d.ts +5 -8
  272. package/Scrollbar/Scrollbar.js +8 -16
  273. package/Scrollbar/Scrollbar.js.map +1 -1
  274. package/Scrollbar/index.js +2 -17
  275. package/Scrollbar/index.js.map +1 -1
  276. package/Section/index.d.ts +7 -2
  277. package/Section/index.js +14 -61
  278. package/Section/index.js.map +1 -1
  279. package/Select/Select.d.ts +44 -8
  280. package/Select/Select.js +102 -109
  281. package/Select/Select.js.map +1 -1
  282. package/Select/index.js +2 -17
  283. package/Select/index.js.map +1 -1
  284. package/Skeleton/Skeleton.d.ts +27 -4
  285. package/Skeleton/Skeleton.js +17 -23
  286. package/Skeleton/Skeleton.js.map +1 -1
  287. package/Skeleton/index.js +2 -17
  288. package/Skeleton/index.js.map +1 -1
  289. package/Slider/Slider.d.ts +12 -17
  290. package/Slider/Slider.js +47 -95
  291. package/Slider/Slider.js.map +1 -1
  292. package/Slider/index.js +2 -14
  293. package/Slider/index.js.map +1 -1
  294. package/Snackbar/Snackbar.d.ts +44 -9
  295. package/Snackbar/Snackbar.js +29 -66
  296. package/Snackbar/Snackbar.js.map +1 -1
  297. package/Snackbar/index.js +2 -18
  298. package/Snackbar/index.js.map +1 -1
  299. package/Switch/Switch.d.ts +21 -8
  300. package/Switch/Switch.js +25 -77
  301. package/Switch/Switch.js.map +1 -1
  302. package/Switch/index.js +2 -17
  303. package/Switch/index.js.map +1 -1
  304. package/Tabs/Tab.d.ts +25 -3
  305. package/Tabs/Tab.js +20 -30
  306. package/Tabs/Tab.js.map +1 -1
  307. package/Tabs/Tabs.d.ts +16 -37
  308. package/Tabs/Tabs.js +56 -139
  309. package/Tabs/Tabs.js.map +1 -1
  310. package/Tabs/index.js +3 -30
  311. package/Tabs/index.js.map +1 -1
  312. package/Tags/Tags.d.ts +12 -19
  313. package/Tags/Tags.js +63 -168
  314. package/Tags/Tags.js.map +1 -1
  315. package/Tags/index.js +2 -17
  316. package/Tags/index.js.map +1 -1
  317. package/TimeAgo/index.d.ts +7 -0
  318. package/TimeAgo/index.js +8 -0
  319. package/TimeAgo/index.js.map +1 -0
  320. package/Tooltip/Tooltip.d.ts +4 -16
  321. package/Tooltip/Tooltip.js +63 -77
  322. package/Tooltip/Tooltip.js.map +1 -1
  323. package/Tooltip/index.js +2 -17
  324. package/Tooltip/index.js.map +1 -1
  325. package/TopAppBar/TopAppBar.d.ts +27 -3
  326. package/TopAppBar/TopAppBar.js +36 -22
  327. package/TopAppBar/TopAppBar.js.map +1 -1
  328. package/TopAppBar/TopAppBarActionItem.d.ts +6 -4
  329. package/TopAppBar/TopAppBarActionItem.js +11 -16
  330. package/TopAppBar/TopAppBarActionItem.js.map +1 -1
  331. package/TopAppBar/TopAppBarNavigationIcon.d.ts +6 -4
  332. package/TopAppBar/TopAppBarNavigationIcon.js +11 -16
  333. package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -1
  334. package/TopAppBar/TopAppBarPrimary.d.ts +8 -4
  335. package/TopAppBar/TopAppBarPrimary.js +14 -22
  336. package/TopAppBar/TopAppBarPrimary.js.map +1 -1
  337. package/TopAppBar/TopAppBarSecondary.d.ts +8 -4
  338. package/TopAppBar/TopAppBarSecondary.js +15 -24
  339. package/TopAppBar/TopAppBarSecondary.js.map +1 -1
  340. package/TopAppBar/TopAppBarSection.d.ts +12 -3
  341. package/TopAppBar/TopAppBarSection.js +9 -22
  342. package/TopAppBar/TopAppBarSection.js.map +1 -1
  343. package/TopAppBar/TopAppBarTitle.d.ts +7 -4
  344. package/TopAppBar/TopAppBarTitle.js +10 -22
  345. package/TopAppBar/TopAppBarTitle.js.map +1 -1
  346. package/TopAppBar/index.js +9 -96
  347. package/TopAppBar/index.js.map +1 -1
  348. package/Typography/Typography.d.ts +10 -5
  349. package/Typography/Typography.js +33 -17
  350. package/Typography/Typography.js.map +1 -1
  351. package/Typography/index.js +2 -17
  352. package/Typography/index.js.map +1 -1
  353. package/package.json +24 -95
  354. package/styles.scss +15 -41
  355. package/types.d.ts +5 -5
  356. package/types.js +2 -4
  357. package/types.js.map +1 -1
  358. package/Accordion/Accordion.stories.d.ts +0 -1
  359. package/Accordion/Accordion.stories.js +0 -54
  360. package/Accordion/Accordion.stories.js.map +0 -1
  361. package/Accordion/README.md +0 -11
  362. package/Accordion/icons/round-keyboard_arrow_down-24px.svg +0 -16
  363. package/Accordion/icons/round-keyboard_arrow_up-24px.svg +0 -16
  364. package/Accordion/icons/round-settings-24px.svg +0 -21
  365. package/Alert/Alert.stories.d.ts +0 -1
  366. package/Alert/Alert.stories.js +0 -38
  367. package/Alert/Alert.stories.js.map +0 -1
  368. package/Alert/README.md +0 -11
  369. package/AutoComplete/AutoComplete.stories.d.ts +0 -1
  370. package/AutoComplete/AutoComplete.stories.js +0 -86
  371. package/AutoComplete/AutoComplete.stories.js.map +0 -1
  372. package/AutoComplete/AutoCompleteReadme.md +0 -11
  373. package/AutoComplete/MultiAutoComplete.stories.d.ts +0 -1
  374. package/AutoComplete/MultiAutoComplete.stories.js +0 -143
  375. package/AutoComplete/MultiAutoComplete.stories.js.map +0 -1
  376. package/AutoComplete/MultiAutoCompleteReadme.md +0 -11
  377. package/AutoComplete/icons/baseline-close-24px.svg +0 -4
  378. package/AutoComplete/icons/delete.svg +0 -12
  379. package/AutoComplete/icons/navigate_before-24px.svg +0 -1
  380. package/AutoComplete/icons/navigate_next-24px.svg +0 -1
  381. package/AutoComplete/icons/reorder_black_24dp.svg +0 -1
  382. package/AutoComplete/icons/skip_next-24px.svg +0 -1
  383. package/AutoComplete/icons/skip_previous-24px.svg +0 -1
  384. package/AutoComplete/icons/spinner.svg +0 -3
  385. package/AutoComplete/styles.d.ts +0 -2
  386. package/AutoComplete/styles.js +0 -47
  387. package/AutoComplete/styles.js.map +0 -1
  388. package/Avatar/Avatar.stories.d.ts +0 -1
  389. package/Avatar/Avatar.stories.js +0 -36
  390. package/Avatar/Avatar.stories.js.map +0 -1
  391. package/Avatar/README.md +0 -11
  392. package/Button/Button.stories.d.ts +0 -1
  393. package/Button/Button.stories.js +0 -66
  394. package/Button/Button.stories.js.map +0 -1
  395. package/Button/Button.styles.d.ts +0 -6
  396. package/Button/Button.styles.js +0 -15
  397. package/Button/Button.styles.js.map +0 -1
  398. package/Button/CopyButton/CopyButton.d.ts +0 -11
  399. package/Button/CopyButton/CopyButton.js +0 -42
  400. package/Button/CopyButton/CopyButton.js.map +0 -1
  401. package/Button/CopyButton/CopyButton.stories.d.ts +0 -1
  402. package/Button/CopyButton/CopyButton.stories.js +0 -28
  403. package/Button/CopyButton/CopyButton.stories.js.map +0 -1
  404. package/Button/CopyButton/README.md +0 -11
  405. package/Button/IconButton/IconButton.d.ts +0 -36
  406. package/Button/IconButton/IconButton.js +0 -38
  407. package/Button/IconButton/IconButton.js.map +0 -1
  408. package/Button/IconButton/IconButton.stories.d.ts +0 -1
  409. package/Button/IconButton/IconButton.stories.js +0 -50
  410. package/Button/IconButton/IconButton.stories.js.map +0 -1
  411. package/Button/IconButton/README.md +0 -15
  412. package/Button/README.md +0 -28
  413. package/Button/assets/baseline-cloud_done-24px.svg +0 -3
  414. package/Button/assets/file_copy-24px.svg +0 -1
  415. package/Button/assets/round-more_vert-24px.svg +0 -12
  416. package/Carousel/Carouser.stories.d.ts +0 -1
  417. package/Carousel/Carouser.stories.js +0 -39
  418. package/Carousel/Carouser.stories.js.map +0 -1
  419. package/Carousel/README.md +0 -15
  420. package/Checkbox/Checkbox.stories.d.ts +0 -1
  421. package/Checkbox/Checkbox.stories.js +0 -39
  422. package/Checkbox/Checkbox.stories.js.map +0 -1
  423. package/Checkbox/Checkbox.styles.d.ts +0 -6
  424. package/Checkbox/Checkbox.styles.js +0 -22
  425. package/Checkbox/Checkbox.styles.js.map +0 -1
  426. package/Checkbox/CheckboxGroup.stories.d.ts +0 -1
  427. package/Checkbox/CheckboxGroup.stories.js +0 -66
  428. package/Checkbox/CheckboxGroup.stories.js.map +0 -1
  429. package/Checkbox/README_Checkbox.md +0 -15
  430. package/Checkbox/README_CheckboxGroup.md +0 -19
  431. package/Chips/Chips.stories.d.ts +0 -1
  432. package/Chips/Chips.stories.js +0 -40
  433. package/Chips/Chips.stories.js.map +0 -1
  434. package/Chips/README.md +0 -15
  435. package/Chips/icons/baseline-done-24px.svg +0 -4
  436. package/Chips/icons/baseline-email-24px.svg +0 -3
  437. package/Chips/styles.d.ts +0 -2
  438. package/Chips/styles.js +0 -29
  439. package/Chips/styles.js.map +0 -1
  440. package/CodeEditor/CodeEditor.stories.d.ts +0 -2
  441. package/CodeEditor/CodeEditor.stories.js +0 -45
  442. package/CodeEditor/CodeEditor.stories.js.map +0 -1
  443. package/CodeEditor/README.md +0 -21
  444. package/ColorPicker/ColorPicker.stories.d.ts +0 -1
  445. package/ColorPicker/ColorPicker.stories.js +0 -41
  446. package/ColorPicker/ColorPicker.stories.js.map +0 -1
  447. package/ColorPicker/README.md +0 -11
  448. package/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -1
  449. package/ConfirmationDialog/ConfirmationDialog.stories.js +0 -40
  450. package/ConfirmationDialog/ConfirmationDialog.stories.js.map +0 -1
  451. package/ConfirmationDialog/README.md +0 -11
  452. package/DataTable/DataTable.stories.d.ts +0 -1
  453. package/DataTable/DataTable.stories.js +0 -77
  454. package/DataTable/DataTable.stories.js.map +0 -1
  455. package/DataTable/README.md +0 -72
  456. package/DataTable/styled.d.ts +0 -1
  457. package/DataTable/styled.js +0 -18
  458. package/DataTable/styled.js.map +0 -1
  459. package/DelayedOnChange/DelayedOnChange.d.ts +0 -40
  460. package/DelayedOnChange/DelayedOnChange.js +0 -129
  461. package/DelayedOnChange/DelayedOnChange.js.map +0 -1
  462. package/DelayedOnChange/withDelayedOnChange.d.ts +0 -3
  463. package/DelayedOnChange/withDelayedOnChange.js +0 -37
  464. package/DelayedOnChange/withDelayedOnChange.js.map +0 -1
  465. package/Dialog/Dialog.stories.d.ts +0 -1
  466. package/Dialog/Dialog.stories.js +0 -40
  467. package/Dialog/Dialog.stories.js.map +0 -1
  468. package/Dialog/README.md +0 -23
  469. package/Drawer/Drawer.stories.d.ts +0 -1
  470. package/Drawer/Drawer.stories.js +0 -34
  471. package/Drawer/Drawer.stories.js.map +0 -1
  472. package/Drawer/README.md +0 -15
  473. package/DynamicFieldset/Fieldset.d.ts +0 -51
  474. package/DynamicFieldset/Fieldset.js +0 -165
  475. package/DynamicFieldset/Fieldset.js.map +0 -1
  476. package/Elevation/Elevation.stories.d.ts +0 -1
  477. package/Elevation/Elevation.stories.js +0 -40
  478. package/Elevation/Elevation.stories.js.map +0 -1
  479. package/Elevation/README.md +0 -15
  480. package/FullName/README.md +0 -11
  481. package/Grid/Grid.stories.d.ts +0 -1
  482. package/Grid/Grid.stories.js +0 -40
  483. package/Grid/Grid.stories.js.map +0 -1
  484. package/Grid/README.md +0 -15
  485. package/Icon/Icon.stories.d.ts +0 -1
  486. package/Icon/Icon.stories.js +0 -40
  487. package/Icon/Icon.stories.js.map +0 -1
  488. package/Icon/README.md +0 -11
  489. package/Icon/svg/baseline-autorenew-24px.svg +0 -4
  490. package/Icon/svg/baseline-cloud_done-24px.svg +0 -4
  491. package/Icon/svg/baseline-delete-24px.svg +0 -4
  492. package/Icon/svg/baseline-done-24px.svg +0 -4
  493. package/Image/Image.d.ts +0 -7
  494. package/Image/Image.js +0 -30
  495. package/Image/Image.js.map +0 -1
  496. package/Image/Image.stories.d.ts +0 -1
  497. package/Image/Image.stories.js +0 -31
  498. package/Image/Image.stories.js.map +0 -1
  499. package/Image/README.md +0 -12
  500. package/ImageEditor/toolbar/crop.d.ts +0 -4
  501. package/ImageEditor/toolbar/crop.js +0 -88
  502. package/ImageEditor/toolbar/crop.js.map +0 -1
  503. package/ImageEditor/toolbar/filter.d.ts +0 -3
  504. package/ImageEditor/toolbar/filter.js +0 -238
  505. package/ImageEditor/toolbar/filter.js.map +0 -1
  506. package/ImageEditor/toolbar/flip.d.ts +0 -4
  507. package/ImageEditor/toolbar/flip.js +0 -115
  508. package/ImageEditor/toolbar/flip.js.map +0 -1
  509. package/ImageEditor/toolbar/icons/crop.svg +0 -4
  510. package/ImageEditor/toolbar/icons/draw.svg +0 -4
  511. package/ImageEditor/toolbar/icons/filter.svg +0 -4
  512. package/ImageEditor/toolbar/icons/flip.svg +0 -4
  513. package/ImageEditor/toolbar/icons/index.d.ts +0 -8
  514. package/ImageEditor/toolbar/icons/index.js +0 -69
  515. package/ImageEditor/toolbar/icons/index.js.map +0 -1
  516. package/ImageEditor/toolbar/icons/redo.svg +0 -4
  517. package/ImageEditor/toolbar/icons/rotateLeft.svg +0 -4
  518. package/ImageEditor/toolbar/icons/rotateRight.svg +0 -4
  519. package/ImageEditor/toolbar/icons/undo.svg +0 -4
  520. package/ImageEditor/toolbar/index.d.ts +0 -4
  521. package/ImageEditor/toolbar/index.js +0 -39
  522. package/ImageEditor/toolbar/index.js.map +0 -1
  523. package/ImageEditor/toolbar/rotate.d.ts +0 -4
  524. package/ImageEditor/toolbar/rotate.js +0 -174
  525. package/ImageEditor/toolbar/rotate.js.map +0 -1
  526. package/ImageEditor/toolbar/types.d.ts +0 -33
  527. package/ImageEditor/toolbar/types.js +0 -5
  528. package/ImageEditor/toolbar/types.js.map +0 -1
  529. package/ImageUpload/MultiImageUpload.stories.d.ts +0 -1
  530. package/ImageUpload/MultiImageUpload.stories.js +0 -77
  531. package/ImageUpload/MultiImageUpload.stories.js.map +0 -1
  532. package/ImageUpload/README.md +0 -11
  533. package/ImageUpload/SingleImageUpload.stories.d.ts +0 -1
  534. package/ImageUpload/SingleImageUpload.stories.js +0 -54
  535. package/ImageUpload/SingleImageUpload.stories.js.map +0 -1
  536. package/ImageUpload/icons/round-add_photo_alternate-24px.svg +0 -23
  537. package/ImageUpload/icons/round-close-24px.svg +0 -13
  538. package/ImageUpload/icons/round-edit-24px.svg +0 -4
  539. package/ImageUpload/image.jpeg +0 -0
  540. package/ImageUpload/styled.d.ts +0 -21
  541. package/ImageUpload/styled.js +0 -136
  542. package/ImageUpload/styled.js.map +0 -1
  543. package/Input/Input.stories.d.ts +0 -1
  544. package/Input/Input.stories.js +0 -120
  545. package/Input/Input.stories.js.map +0 -1
  546. package/Input/README.md +0 -16
  547. package/Input/__tests__/Input.test.d.ts +0 -1
  548. package/Input/__tests__/Input.test.js +0 -130
  549. package/Input/__tests__/Input.test.js.map +0 -1
  550. package/Input/svg/baseline-autorenew-24px.svg +0 -4
  551. package/Input/svg/baseline-cloud_done-24px.svg +0 -4
  552. package/Input/svg/baseline-delete-24px.svg +0 -4
  553. package/Input/svg/baseline-done-24px.svg +0 -4
  554. package/List/CollapsibleList/CollapsibleList.stories.d.ts +0 -1
  555. package/List/CollapsibleList/CollapsibleList.stories.js +0 -37
  556. package/List/CollapsibleList/CollapsibleList.stories.js.map +0 -1
  557. package/List/CollapsibleList/README.md +0 -11
  558. package/List/CollapsibleList/index.css +0 -31
  559. package/List/DataList/DataList.stories.d.ts +0 -1
  560. package/List/DataList/DataList.stories.js +0 -119
  561. package/List/DataList/DataList.stories.js.map +0 -1
  562. package/List/DataList/DataListModalOverlay/DataListModalOverlay.d.ts +0 -18
  563. package/List/DataList/DataListModalOverlay/DataListModalOverlay.js +0 -106
  564. package/List/DataList/DataListModalOverlay/DataListModalOverlay.js.map +0 -1
  565. package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.d.ts +0 -6
  566. package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js +0 -39
  567. package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js.map +0 -1
  568. package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.d.ts +0 -11
  569. package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js +0 -39
  570. package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js.map +0 -1
  571. package/List/DataList/Loader.d.ts +0 -3
  572. package/List/DataList/Loader.js +0 -60
  573. package/List/DataList/Loader.js.map +0 -1
  574. package/List/DataList/NoData.d.ts +0 -3
  575. package/List/DataList/NoData.js +0 -32
  576. package/List/DataList/NoData.js.map +0 -1
  577. package/List/DataList/README.md +0 -17
  578. package/List/DataList/icons/baseline-autorenew-24px.svg +0 -4
  579. package/List/DataList/icons/baseline-delete-24px.svg +0 -4
  580. package/List/DataList/icons/baseline-edit-24px.svg +0 -4
  581. package/List/DataList/icons/baseline-navigate_before-24px.svg +0 -4
  582. package/List/DataList/icons/baseline-navigate_next-24px.svg +0 -4
  583. package/List/DataList/icons/baseline-sort-24px.svg +0 -4
  584. package/List/DataList/icons/baseline-tune-24px.svg +0 -4
  585. package/List/DataList/icons/filter_alt-24px.svg +0 -1
  586. package/List/DataList/icons/round-more_vert-24px.svg +0 -12
  587. package/List/List.d.ts +0 -132
  588. package/List/List.js +0 -210
  589. package/List/List.js.map +0 -1
  590. package/List/List.stories.d.ts +0 -1
  591. package/List/List.stories.js +0 -62
  592. package/List/List.stories.js.map +0 -1
  593. package/List/README.md +0 -22
  594. package/List/icons/baseline-autorenew-24px.svg +0 -4
  595. package/List/icons/baseline-cloud_done-24px.svg +0 -4
  596. package/List/icons/baseline-delete-24px.svg +0 -4
  597. package/List/icons/baseline-done-24px.svg +0 -4
  598. package/List/icons/baseline-email-24px.svg +0 -4
  599. package/List/icons/index.d.ts +0 -3
  600. package/List/icons/index.js +0 -23
  601. package/List/icons/index.js.map +0 -1
  602. package/Menu/Menu.stories.d.ts +0 -1
  603. package/Menu/Menu.stories.js +0 -39
  604. package/Menu/Menu.stories.js.map +0 -1
  605. package/Menu/README.md +0 -15
  606. package/Mosaic/Mosaic.stories.d.ts +0 -1
  607. package/Mosaic/Mosaic.stories.js +0 -84
  608. package/Mosaic/Mosaic.stories.js.map +0 -1
  609. package/Mosaic/README.md +0 -15
  610. package/Progress/README.md +0 -19
  611. package/Progress/svg/circularProgress.svg +0 -3
  612. package/Radio/README.md +0 -17
  613. package/Radio/Radio.styles.d.ts +0 -6
  614. package/Radio/Radio.styles.js +0 -22
  615. package/Radio/Radio.styles.js.map +0 -1
  616. package/Radio/RadioGroup.stories.d.ts +0 -1
  617. package/Radio/RadioGroup.stories.js +0 -66
  618. package/Radio/RadioGroup.stories.js.map +0 -1
  619. package/RichTextEditor/README.md +0 -10
  620. package/RichTextEditor/RichTextEditor.stories.d.ts +0 -1
  621. package/RichTextEditor/RichTextEditor.stories.js +0 -30
  622. package/RichTextEditor/RichTextEditor.stories.js.map +0 -1
  623. package/RichTextEditor/createPropsFromConfig.d.ts +0 -15
  624. package/RichTextEditor/createPropsFromConfig.js +0 -33
  625. package/RichTextEditor/createPropsFromConfig.js.map +0 -1
  626. package/Ripple/README.md +0 -15
  627. package/Ripple/Ripple.stories.d.ts +0 -1
  628. package/Ripple/Ripple.stories.js +0 -86
  629. package/Ripple/Ripple.stories.js.map +0 -1
  630. package/Ripple/svg/baseline-autorenew-24px.svg +0 -4
  631. package/Ripple/svg/baseline-cloud_done-24px.svg +0 -4
  632. package/Ripple/svg/baseline-delete-24px.svg +0 -4
  633. package/Ripple/svg/baseline-done-24px.svg +0 -4
  634. package/Scrollbar/README.md +0 -15
  635. package/Scrollbar/Scrollbar.stories.d.ts +0 -1
  636. package/Scrollbar/Scrollbar.stories.js +0 -29
  637. package/Scrollbar/Scrollbar.stories.js.map +0 -1
  638. package/Section/README.md +0 -11
  639. package/Section/Section.stories.d.ts +0 -1
  640. package/Section/Section.stories.js +0 -35
  641. package/Section/Section.stories.js.map +0 -1
  642. package/Select/README.md +0 -15
  643. package/Select/Select.stories.d.ts +0 -1
  644. package/Select/Select.stories.js +0 -57
  645. package/Select/Select.stories.js.map +0 -1
  646. package/Skeleton/README.md +0 -21
  647. package/Skeleton/Skeleton.stories.d.ts +0 -1
  648. package/Skeleton/Skeleton.stories.js +0 -28
  649. package/Skeleton/Skeleton.stories.js.map +0 -1
  650. package/Slider/README.md +0 -15
  651. package/Slider/Slider.stories.d.ts +0 -1
  652. package/Slider/Slider.stories.js +0 -55
  653. package/Slider/Slider.stories.js.map +0 -1
  654. package/Snackbar/README.md +0 -15
  655. package/Snackbar/Snackbar.stories.d.ts +0 -1
  656. package/Snackbar/Snackbar.stories.js +0 -91
  657. package/Snackbar/Snackbar.stories.js.map +0 -1
  658. package/Switch/README.md +0 -15
  659. package/Switch/Switch.stories.d.ts +0 -1
  660. package/Switch/Switch.stories.js +0 -43
  661. package/Switch/Switch.stories.js.map +0 -1
  662. package/Tabs/Tabs.stories.d.ts +0 -1
  663. package/Tabs/Tabs.stories.js +0 -53
  664. package/Tabs/Tabs.stories.js.map +0 -1
  665. package/Tabs/svg/baseline-autorenew-24px.svg +0 -4
  666. package/Tabs/svg/baseline-cloud_done-24px.svg +0 -4
  667. package/Tabs/svg/baseline-delete-24px.svg +0 -4
  668. package/Tabs/svg/baseline-done-24px.svg +0 -4
  669. package/Tags/README.md +0 -15
  670. package/Tags/Tags.stories.d.ts +0 -1
  671. package/Tags/Tags.stories.js +0 -43
  672. package/Tags/Tags.stories.js.map +0 -1
  673. package/Tags/icons/baseline-close-24px.svg +0 -4
  674. package/Tooltip/README.md +0 -15
  675. package/Tooltip/Tooltip.stories.d.ts +0 -1
  676. package/Tooltip/Tooltip.stories.js +0 -26
  677. package/Tooltip/Tooltip.stories.js.map +0 -1
  678. package/Tooltip/style.scss +0 -97
  679. package/TopAppBar/README.md +0 -20
  680. package/TopAppBar/TopAppBar.stories.d.ts +0 -1
  681. package/TopAppBar/TopAppBar.stories.js +0 -70
  682. package/TopAppBar/TopAppBar.stories.js.map +0 -1
  683. package/TopAppBar/icons/baseline-autorenew-24px.svg +0 -4
  684. package/TopAppBar/icons/baseline-cloud_done-24px.svg +0 -4
  685. package/TopAppBar/icons/baseline-delete-24px.svg +0 -4
  686. package/TopAppBar/icons/baseline-email-24px.svg +0 -4
  687. package/TopAppBar/icons/baseline-menu-24px.svg +0 -4
  688. package/TopProgressBar/README.md +0 -11
  689. package/TopProgressBar/TopProgressBar.d.ts +0 -15
  690. package/TopProgressBar/TopProgressBar.js +0 -22
  691. package/TopProgressBar/TopProgressBar.js.map +0 -1
  692. package/TopProgressBar/TopProgressBar.stories.d.ts +0 -1
  693. package/TopProgressBar/TopProgressBar.stories.js +0 -32
  694. package/TopProgressBar/TopProgressBar.stories.js.map +0 -1
  695. package/TopProgressBar/hoc/index.d.ts +0 -1
  696. package/TopProgressBar/hoc/index.js +0 -15
  697. package/TopProgressBar/hoc/index.js.map +0 -1
  698. package/TopProgressBar/hoc/withTopProgressBar.d.ts +0 -3
  699. package/TopProgressBar/hoc/withTopProgressBar.js +0 -34
  700. package/TopProgressBar/hoc/withTopProgressBar.js.map +0 -1
  701. package/TopProgressBar/index.d.ts +0 -1
  702. package/TopProgressBar/index.js +0 -18
  703. package/TopProgressBar/index.js.map +0 -1
  704. package/TopProgressBar/style.scss +0 -21
  705. package/Typography/README.md +0 -15
  706. package/Typography/Typography.stories.d.ts +0 -1
  707. package/Typography/Typography.stories.js +0 -76
  708. package/Typography/Typography.stories.js.map +0 -1
@@ -1,18 +1,3 @@
1
- "use strict";
1
+ export * from "./Elevation";
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _Elevation = require("./Elevation");
8
-
9
- Object.keys(_Elevation).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _Elevation[key]) return;
12
- Object.defineProperty(exports, key, {
13
- enumerable: true,
14
- get: function get() {
15
- return _Elevation[key];
16
- }
17
- });
18
- });
3
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Elevation\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
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
- declare 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) => 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,23 +1,24 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.FormElementMessage = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
-
14
- var FormElementMessage = function FormElementMessage(props) {
15
- var classNames = (0, _classnames.default)("mdc-text-field-helper-text mdc-text-field-helper-text--persistent", props.className, {
16
- "mdc-text-field-helper-text--error": props.error
17
- });
18
- return /*#__PURE__*/_react.default.createElement("div", {
19
- className: classNames
20
- }, 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
+ }));
21
21
  };
22
+ export { FormElementMessage };
22
23
 
23
- exports.FormElementMessage = FormElementMessage;
24
+ //# sourceMappingURL=FormElementMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FormElementMessage","props","classNames","classnames","className","error","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;;AACA;;AAaA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,KAAD,EAAkB;EACzC,IAAMC,UAAU,GAAG,IAAAC,mBAAA,EACf,mEADe,EAEfF,KAAK,CAACG,SAFS,EAGf;IAAE,qCAAqCH,KAAK,CAACI;EAA7C,CAHe,CAAnB;EAMA,oBAAO;IAAK,SAAS,EAAEH;EAAhB,GAA6BD,KAAK,CAACK,QAAnC,CAAP;AACH,CARD"}
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,13 +1,3 @@
1
- "use strict";
1
+ export { FormElementMessage } from "./FormElementMessage";
2
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
-
13
- var _FormElementMessage = require("./FormElementMessage");
3
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { FormElementMessage } from \"./FormElementMessage\";\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":["FormElementMessage"],"sources":["index.ts"],"sourcesContent":["export { FormElementMessage } from \"./FormElementMessage\";\n"],"mappings":"AAAA,SAASA,kBAAkB","ignoreList":[]}
@@ -1,8 +1,12 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  data?: {
3
3
  firstName?: string;
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,28 +1,24 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FullName = void 0;
7
-
8
- var FullName = function FullName(props) {
9
- var data = props.data;
10
-
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;
11
10
  if (!data) {
12
11
  return "N/A";
13
12
  }
14
-
15
- var output = "";
16
-
13
+ let output = "";
17
14
  if (data.firstName) {
18
15
  output += data.firstName;
19
16
  }
20
-
21
17
  if (data.lastName) {
22
18
  output += " " + data.lastName;
23
19
  }
24
-
25
20
  return output;
26
21
  };
22
+ export { FullName };
27
23
 
28
- exports.FullName = FullName;
24
+ //# sourceMappingURL=FullName.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FullName","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,GAAG,SAAXA,QAAW,CAACC,KAAD,EAAkB;EAC/B,IAAQC,IAAR,GAAiBD,KAAjB,CAAQC,IAAR;;EAEA,IAAI,CAACA,IAAL,EAAW;IACP,OAAO,KAAP;EACH;;EAED,IAAIC,MAAM,GAAG,EAAb;;EACA,IAAID,IAAI,CAACE,SAAT,EAAoB;IAChBD,MAAM,IAAID,IAAI,CAACE,SAAf;EACH;;EAED,IAAIF,IAAI,CAACG,QAAT,EAAmB;IACfF,MAAM,IAAI,MAAMD,IAAI,CAACG,QAArB;EACH;;EAED,OAAOF,MAAP;AACH,CAjBD"}
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";
1
+ export * from "./FullName";
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _FullName = require("./FullName");
8
-
9
- Object.keys(_FullName).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _FullName[key]) return;
12
- Object.defineProperty(exports, key, {
13
- enumerable: true,
14
- get: function get() {
15
- return _FullName[key];
16
- }
17
- });
18
- });
3
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./FullName\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./FullName\";\n"],"mappings":"AAAA","ignoreList":[]}
package/Grid/Grid.d.ts CHANGED
@@ -1,22 +1,41 @@
1
+ import type { CSSProperties } from "react";
1
2
  import React from "react";
2
- import { GridCellProps as RmwcGridCellProps, GridProps as RmwcGridProps } from "@rmwc/grid";
3
- import { CSSProperties } from "react";
4
- export declare type CellProps = RmwcGridCellProps & {
3
+ export interface RmwcGridProps {
4
+ /** Specifies the grid should have fixed column width. */
5
+ fixedColumnWidth?: boolean;
6
+ /** Specifies the alignment of the whole grid. */
7
+ align?: "left" | "right";
8
+ /** Children for the Grid */
9
+ children?: React.ReactNode;
10
+ }
11
+ export interface RmwcGridCellProps {
12
+ /** Default number of columns to span. */
13
+ span?: number;
14
+ /** Number of columns to span on a phone. */
15
+ phone?: number;
16
+ /** Number of columns to span on a tablet. */
17
+ tablet?: number;
18
+ /** Number of columns to span on a desktop. */
19
+ desktop?: number;
20
+ /** Specifies the order of the cell. */
21
+ order?: number;
22
+ /** Specifies the alignment of cell */
23
+ align?: "top" | "middle" | "bottom";
24
+ }
25
+ export type CellProps = RmwcGridCellProps & {
5
26
  children?: React.ReactNode;
6
27
  className?: string;
7
28
  style?: {
8
29
  [key: string]: any;
9
30
  };
10
31
  };
11
- export declare type GridProps = RmwcGridProps & {
12
- className?: string;
13
- style?: CSSProperties;
14
- };
15
32
  /**
16
33
  * Cell must be direct children of Grid component.
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.
17
36
  */
18
- export declare const Cell: (props: CellProps) => JSX.Element;
19
- export declare type GridInnerProps = {
37
+ export declare const Cell: (props: CellProps) => React.JSX.Element;
38
+ export type GridInnerProps = {
20
39
  children: React.ReactElement<typeof Cell> | React.ReactElement<typeof Cell>[];
21
40
  /**
22
41
  * CSS class name
@@ -24,10 +43,16 @@ export declare type GridInnerProps = {
24
43
  className?: string;
25
44
  };
26
45
  export declare const GridInner: {
27
- (props: GridInnerProps): JSX.Element;
46
+ ({ className, ...props }: GridInnerProps): React.JSX.Element;
28
47
  displayName: string;
29
48
  };
49
+ export type GridProps = RmwcGridProps & {
50
+ className?: string;
51
+ style?: CSSProperties;
52
+ };
30
53
  /**
31
54
  * Use Grid component to display a list of choices, once the handler is triggered.
55
+ * @deprecated This component is deprecated and will be removed in future releases.
56
+ * Please use the `Grid` component from the `@webiny/admin-ui` package instead.
32
57
  */
33
- export declare const Grid: (props: GridProps) => JSX.Element;
58
+ export declare const Grid: (props: GridProps) => React.JSX.Element;
package/Grid/Grid.js CHANGED
@@ -1,37 +1,49 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.GridInner = exports.Grid = exports.Cell = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _grid = require("@rmwc/grid");
13
-
1
+ import React from "react";
2
+ import cn from "classnames";
3
+ import { Grid as AdminUiGrid } from "@webiny/admin-ui";
14
4
  /**
15
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.
16
8
  */
17
- var Cell = function Cell(props) {
18
- 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);
19
22
  };
20
-
21
- exports.Cell = Cell;
22
-
23
- var GridInner = function GridInner(props) {
24
- 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);
25
30
  };
26
-
27
- exports.GridInner = GridInner;
28
31
  GridInner.displayName = "GridInner";
29
32
  /**
30
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.
31
36
  */
32
-
33
- var Grid = function Grid(props) {
34
- 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);
35
47
  };
36
48
 
37
- exports.Grid = Grid;
49
+ //# sourceMappingURL=Grid.js.map
package/Grid/Grid.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["Cell","props","children","GridInner","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;;AACA;;AAwBA;AACA;AACA;AACO,IAAMA,IAAI,GAAG,SAAPA,IAAO,CAACC,KAAD,EAAsB;EACtC,oBAAO,6BAAC,cAAD,EAAkBA,KAAlB,EAA0BA,KAAK,CAACC,QAAhC,CAAP;AACH,CAFM;;;;AAcA,IAAMC,SAAS,GAAG,SAAZA,SAAY,CAACF,KAAD,EAA2B;EAChD,oBAAO,6BAAC,aAAD,EAAmBA,KAAnB,EAA2BA,KAAK,CAACC,QAAjC,CAAP;AACH,CAFM;;;AAIPC,SAAS,CAACC,WAAV,GAAwB,WAAxB;AAEA;AACA;AACA;;AACO,IAAMC,IAAI,GAAG,SAAPA,IAAO,CAACJ,KAAD,EAAsB;EACtC,oBAAO,6BAAC,UAAD,EAAcA,KAAd,EAAsBA,KAAK,CAACC,QAA5B,CAAP;AACH,CAFM"}
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 type { CSSProperties } from \"react\";\nimport React from \"react\";\nimport cn from \"classnames\";\nimport type { ColumnProps as AdminUiColumnProps } from \"@webiny/admin-ui\";\nimport { Grid as AdminUiGrid } 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":"AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,EAAE,MAAM,YAAY;AAE3B,SAASC,IAAI,IAAIC,WAAW,QAAQ,kBAAkB;AAoCtD;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";
1
+ export * from "./Grid";
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _Grid = require("./Grid");
8
-
9
- Object.keys(_Grid).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _Grid[key]) return;
12
- Object.defineProperty(exports, key, {
13
- enumerable: true,
14
- get: function get() {
15
- return _Grid[key];
16
- }
17
- });
18
- });
3
+ //# sourceMappingURL=index.js.map
package/Grid/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Grid\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
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,41 +1,27 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.getClasses = void 0;
9
-
10
- var _clone2 = _interopRequireDefault(require("lodash/clone"));
11
-
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
-
14
1
  /**
15
2
  * This is a pass-through that modifies your object's props and creates the required className prop by merging
16
3
  * the provided appendClasses(string) and any class names defined inside your props.
17
4
  * To you the function just do: {...getClasses (props)}
18
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.
19
9
  */
20
-
21
- /**
22
- * TODO @ts-refactor figure out propList type
23
- */
24
- var getClasses = function getClasses(propList, appendClasses) {
25
- var classes = "";
26
- var props = (0, _clone2.default)(propList);
27
-
28
- if (propList.hasOwnProperty("className")) {
29
- 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;
30
17
  delete props.className;
31
18
  }
32
-
33
- if (typeof appendClasses !== "undefined") {
34
- classes = (0, _classnames.default)(classes, appendClasses);
19
+ if (appendClasses) {
20
+ classes = `${classes} ${Array.isArray(appendClasses) ? appendClasses.join(" ") : appendClasses}`.trim();
35
21
  }
36
-
37
22
  props.className = classes;
38
23
  return props;
39
24
  };
25
+ export { getClasses };
40
26
 
41
- exports.getClasses = getClasses;
27
+ //# sourceMappingURL=ClassNames.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getClasses","propList","appendClasses","classes","props","hasOwnProperty","classnames","className"],"sources":["ClassNames.ts"],"sourcesContent":["import classnames from \"classnames\";\nimport { clone } from \"lodash\";\n\n/**\n * This is a pass-through that modifies your object's props and creates the required className prop by merging\n * the provided appendClasses(string) and any class names defined inside your props.\n * To you the function just do: {...getClasses (props)}\n * and make sure you are not spreading the `props` element, as this will clone and spread your current `props` element already.\n */\n/**\n * TODO @ts-refactor figure out propList type\n */\nconst getClasses = (propList: any, appendClasses: string[] | string) => {\n let classes = \"\";\n const props = clone(propList);\n if (propList.hasOwnProperty(\"className\")) {\n classes = classnames(propList.className);\n delete props.className;\n }\n\n if (typeof appendClasses !== \"undefined\") {\n classes = classnames(classes, appendClasses);\n }\n\n props.className = classes;\n\n return props;\n};\n\nexport { getClasses };\n"],"mappings":";;;;;;;;;;;AAAA;;AAGA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,QAAD,EAAgBC,aAAhB,EAAqD;EACpE,IAAIC,OAAO,GAAG,EAAd;EACA,IAAMC,KAAK,GAAG,qBAAMH,QAAN,CAAd;;EACA,IAAIA,QAAQ,CAACI,cAAT,CAAwB,WAAxB,CAAJ,EAA0C;IACtCF,OAAO,GAAG,IAAAG,mBAAA,EAAWL,QAAQ,CAACM,SAApB,CAAV;IACA,OAAOH,KAAK,CAACG,SAAb;EACH;;EAED,IAAI,OAAOL,aAAP,KAAyB,WAA7B,EAA0C;IACtCC,OAAO,GAAG,IAAAG,mBAAA,EAAWH,OAAX,EAAoBD,aAApB,CAAV;EACH;;EAEDE,KAAK,CAACG,SAAN,GAAkBJ,OAAlB;EAEA,OAAOC,KAAP;AACH,CAfD"}
1
+ {"version":3,"names":["getClasses","propList","appendClasses","classes","props","className","Array","isArray","join","trim"],"sources":["ClassNames.ts"],"sourcesContent":["/**\n * This is a pass-through that modifies your object's props and creates the required className prop by merging\n * the provided appendClasses(string) and any class names defined inside your props.\n * To you the function just do: {...getClasses (props)}\n * and make sure you are not spreading the `props` element, as this will clone and spread your current `props` element already.\n *\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please implement your own `getClasses` function or reach out on Slack.\n */\nconst getClasses = (propList: any, appendClasses: string[] | string) => {\n let classes = \"\";\n const props = { ...propList };\n if (propList.className) {\n classes = propList.className;\n delete props.className;\n }\n\n if (appendClasses) {\n classes = `${classes} ${\n Array.isArray(appendClasses) ? appendClasses.join(\" \") : appendClasses\n }`.trim();\n }\n\n props.className = classes;\n\n return props;\n};\n\nexport { getClasses };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,UAAU,GAAGA,CAACC,QAAa,EAAEC,aAAgC,KAAK;EACpE,IAAIC,OAAO,GAAG,EAAE;EAChB,MAAMC,KAAK,GAAG;IAAE,GAAGH;EAAS,CAAC;EAC7B,IAAIA,QAAQ,CAACI,SAAS,EAAE;IACpBF,OAAO,GAAGF,QAAQ,CAACI,SAAS;IAC5B,OAAOD,KAAK,CAACC,SAAS;EAC1B;EAEA,IAAIH,aAAa,EAAE;IACfC,OAAO,GAAG,GAAGA,OAAO,IAChBG,KAAK,CAACC,OAAO,CAACL,aAAa,CAAC,GAAGA,aAAa,CAACM,IAAI,CAAC,GAAG,CAAC,GAAGN,aAAa,EACxE,CAACO,IAAI,CAAC,CAAC;EACb;EAEAL,KAAK,CAACC,SAAS,GAAGF,OAAO;EAEzB,OAAOC,KAAK;AAChB,CAAC;AAED,SAASJ,UAAU","ignoreList":[]}
package/Helpers/index.js CHANGED
@@ -1,13 +1,4 @@
1
- "use strict";
1
+ import { getClasses } from "./ClassNames";
2
+ export { getClasses };
2
3
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "getClasses", {
7
- enumerable: true,
8
- get: function get() {
9
- return _ClassNames.getClasses;
10
- }
11
- });
12
-
13
- var _ClassNames = require("./ClassNames");
4
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["import { getClasses } from \"./ClassNames\";\n\nexport { getClasses };\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":["getClasses"],"sources":["index.ts"],"sourcesContent":["import { getClasses } from \"./ClassNames\";\n\nexport { getClasses };\n"],"mappings":"AAAA,SAASA,UAAU;AAEnB,SAASA,UAAU","ignoreList":[]}
package/Icon/Icon.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type IconProps = {
2
+ export type IconProps = {
3
3
  /**
4
4
  * SvgComponent containing the svg icon
5
5
  */
@@ -7,15 +7,20 @@ export declare type IconProps = {
7
7
  /**
8
8
  * Optional onclick handler
9
9
  */
10
- onClick?: Function;
10
+ onClick?: (value: any) => void;
11
11
  /**
12
12
  * CSS class to be added to the icon
13
13
  */
14
14
  className?: string;
15
15
  "data-testid"?: string;
16
+ /**
17
+ * Aria label
18
+ */
19
+ label?: string;
16
20
  };
17
21
  /**
18
- * Use Icon component to display an icon.
22
+ * @deprecated This component is deprecated and will be removed in future releases.
23
+ * Please use the `Icon` component from the `@webiny/admin-ui` package instead.
19
24
  */
20
- declare const Icon: React.FC<IconProps>;
25
+ declare const Icon: (props: IconProps) => React.JSX.Element;
21
26
  export { Icon };
package/Icon/Icon.js CHANGED
@@ -1,35 +1,14 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.Icon = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _emotion = require("emotion");
13
-
14
- var _classnames = _interopRequireDefault(require("classnames"));
15
-
16
- var webinyIcon = /*#__PURE__*/(0, _emotion.css)({}, {
17
- "&.mdc-button__icon": {
18
- marginLeft: 0,
19
- width: "inherit",
20
- display: "block"
21
- }
22
- }, "label:webinyIcon;");
1
+ import React from "react";
2
+ import { Icon as AdminUiIcon } from "@webiny/admin-ui/Icon";
23
3
  /**
24
- * Use Icon component to display an icon.
4
+ * @deprecated This component is deprecated and will be removed in future releases.
5
+ * Please use the `Icon` component from the `@webiny/admin-ui` package instead.
25
6
  */
26
-
27
- var Icon = function Icon(props) {
28
- return /*#__PURE__*/_react.default.cloneElement(props.icon, {
29
- "data-testid": props["data-testid"],
30
- className: (0, _classnames.default)("mdc-button__icon webiny-ui-icon", webinyIcon, props.className),
31
- onClick: props.onClick
32
- });
7
+ const Icon = props => {
8
+ return /*#__PURE__*/React.createElement(AdminUiIcon, Object.assign({}, props, {
9
+ label: props.label || ""
10
+ }));
33
11
  };
12
+ export { Icon };
34
13
 
35
- exports.Icon = Icon;
14
+ //# sourceMappingURL=Icon.js.map
package/Icon/Icon.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["webinyIcon","css","marginLeft","width","display","Icon","props","React","cloneElement","icon","className","classNames","onClick"],"sources":["Icon.tsx"],"sourcesContent":["import React from \"react\";\nimport { css } from \"emotion\";\nimport classNames from \"classnames\";\n\nexport type IconProps = {\n /**\n * SvgComponent containing the svg icon\n */\n icon: React.ReactElement;\n\n /**\n * Optional onclick handler\n */\n onClick?: Function;\n\n /**\n * CSS class to be added to the icon\n */\n className?: string;\n\n // For testing purposes.\n \"data-testid\"?: string;\n};\n\nconst webinyIcon = css(\n {},\n {\n \"&.mdc-button__icon\": {\n marginLeft: 0,\n width: \"inherit\",\n display: \"block\"\n }\n }\n);\n\n/**\n * Use Icon component to display an icon.\n */\nconst Icon: React.FC<IconProps> = props => {\n return React.cloneElement(props.icon, {\n \"data-testid\": props[\"data-testid\"],\n className: classNames(\"mdc-button__icon webiny-ui-icon\", webinyIcon, props.className),\n onClick: props.onClick\n });\n};\n\nexport { Icon };\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAsBA,IAAMA,UAAU,gBAAG,IAAAC,YAAA,EACf,EADe,EAEf;EACI,sBAAsB;IAClBC,UAAU,EAAE,CADM;IAElBC,KAAK,EAAE,SAFW;IAGlBC,OAAO,EAAE;EAHS;AAD1B,CAFe,sBAAnB;AAWA;AACA;AACA;;AACA,IAAMC,IAAyB,GAAG,SAA5BA,IAA4B,CAAAC,KAAK,EAAI;EACvC,oBAAOC,cAAA,CAAMC,YAAN,CAAmBF,KAAK,CAACG,IAAzB,EAA+B;IAClC,eAAeH,KAAK,CAAC,aAAD,CADc;IAElCI,SAAS,EAAE,IAAAC,mBAAA,EAAW,iCAAX,EAA8CX,UAA9C,EAA0DM,KAAK,CAACI,SAAhE,CAFuB;IAGlCE,OAAO,EAAEN,KAAK,CAACM;EAHmB,CAA/B,CAAP;AAKH,CAND"}
1
+ {"version":3,"names":["React","Icon","AdminUiIcon","props","createElement","Object","assign","label"],"sources":["Icon.tsx"],"sourcesContent":["import React from \"react\";\nimport { Icon as AdminUiIcon } from \"@webiny/admin-ui/Icon\";\n\nexport type IconProps = {\n /**\n * SvgComponent containing the svg icon\n */\n icon: React.ReactElement;\n\n /**\n * Optional onclick handler\n */\n onClick?: (value: any) => void;\n\n /**\n * CSS class to be added to the icon\n */\n className?: string;\n\n // For testing purposes.\n \"data-testid\"?: string;\n\n /**\n * Aria label\n */\n label?: string;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Icon` component from the `@webiny/admin-ui` package instead.\n */\nconst Icon = (props: IconProps) => {\n return <AdminUiIcon {...props} label={props.label || \"\"} />;\n};\n\nexport { Icon };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,WAAW,QAAQ,uBAAuB;AA2B3D;AACA;AACA;AACA;AACA,MAAMD,IAAI,GAAIE,KAAgB,IAAK;EAC/B,oBAAOH,KAAA,CAAAI,aAAA,CAACF,WAAW,EAAAG,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEI,KAAK,EAAEJ,KAAK,CAACI,KAAK,IAAI;EAAG,EAAE,CAAC;AAC/D,CAAC;AAED,SAASN,IAAI","ignoreList":[]}
package/Icon/index.js CHANGED
@@ -1,18 +1,3 @@
1
- "use strict";
1
+ export * from "./Icon";
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _Icon = require("./Icon");
8
-
9
- Object.keys(_Icon).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _Icon[key]) return;
12
- Object.defineProperty(exports, key, {
13
- enumerable: true,
14
- get: function get() {
15
- return _Icon[key];
16
- }
17
- });
18
- });
3
+ //# sourceMappingURL=index.js.map