@onesy/ui-react 1.0.172 → 1.0.174

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 (412) hide show
  1. package/Accordion/Accordion.js +93 -74
  2. package/AdvancedTextField/AdvancedTextField.js +7 -6
  3. package/Append/Append.js +24 -19
  4. package/AreaChart/AreaChart.js +15 -17
  5. package/AreaChartItem/AreaChartItem.js +63 -58
  6. package/AudioPlayer/AudioPlayer.js +180 -148
  7. package/AudioRecorder/AudioRecorder.js +104 -59
  8. package/AutoComplete/AutoComplete.js +135 -125
  9. package/AutoCompleteCountry/AutoCompleteCountry.js +10 -11
  10. package/AutoCompleteCurrency/AutoCompleteCurrency.js +4 -5
  11. package/Avatar/Avatar.js +11 -8
  12. package/AvatarGroup/AvatarGroup.js +21 -20
  13. package/Backdrop/Backdrop.js +30 -21
  14. package/Badge/Badge.js +18 -17
  15. package/Banner/Banner.js +15 -12
  16. package/BottomAppBar/BottomAppBar.js +14 -14
  17. package/BottomSheet/BottomSheet.js +9 -11
  18. package/Box/Box.js +12 -12
  19. package/Breadcrumbs/Breadcrumbs.js +38 -34
  20. package/BubbleChart/BubbleChart.js +159 -134
  21. package/BubbleChartItem/BubbleChartItem.js +48 -43
  22. package/Button/Button.js +46 -39
  23. package/Buttons/Buttons.d.ts +1 -1
  24. package/Buttons/Buttons.js +34 -28
  25. package/Calendar/Calendar.js +357 -315
  26. package/CalendarAvailability/CalendarAvailability.js +351 -298
  27. package/CalendarMenu/CalendarMenu.js +93 -79
  28. package/CalendarMonth/CalendarMonth.js +113 -102
  29. package/CalendarViews/CalendarViews.js +138 -115
  30. package/CalendarWeek/CalendarWeek.js +180 -158
  31. package/Card/Card.js +16 -15
  32. package/CardButton/CardButton.js +11 -10
  33. package/CardFooter/CardFooter.js +12 -12
  34. package/CardHeader/CardHeader.js +13 -13
  35. package/CardImage/CardImage.js +10 -12
  36. package/CardMain/CardMain.js +12 -12
  37. package/Carousel/Carousel.js +140 -124
  38. package/Chart/Chart.js +438 -393
  39. package/Checkbox/Checkbox.js +46 -43
  40. package/Chip/Chip.js +12 -11
  41. package/Chips/Chips.js +20 -20
  42. package/ClickListener/ClickListener.js +19 -15
  43. package/Clock/Clock.js +38 -36
  44. package/ColorTextField/ColorTextField.js +33 -27
  45. package/ColumnChart/ColumnChart.js +16 -17
  46. package/ColumnChartItem/ColumnChartItem.js +35 -31
  47. package/Confirm/Confirm.js +51 -35
  48. package/Container/Container.js +9 -6
  49. package/CookieBanner/CookieBanner.js +55 -41
  50. package/Countdown/Countdown.js +163 -123
  51. package/DatePicker/DatePicker.js +236 -197
  52. package/DateRangePicker/DateRangePicker.js +9 -11
  53. package/DateTimePicker/DateTimePicker.js +127 -103
  54. package/DateTimeRangePicker/DateTimeRangePicker.js +9 -11
  55. package/Divider/Divider.js +25 -21
  56. package/DonutChart/DonutChart.js +9 -11
  57. package/DragAndDropList/DragAndDropList.js +8 -4
  58. package/Drawing/Drawing.js +369 -312
  59. package/DropZone/DropZone.js +20 -15
  60. package/Emojis/Emojis.js +95 -85
  61. package/Expand/Expand.js +78 -70
  62. package/Fab/Fab.js +4 -6
  63. package/Fade/Fade.js +64 -58
  64. package/FileChoose/FileChoose.js +69 -60
  65. package/Focus/Focus.js +19 -16
  66. package/Form/Form.js +69 -57
  67. package/FormRow/FormRow.js +49 -38
  68. package/Forms/Forms.js +13 -13
  69. package/Frame/Frame.js +62 -54
  70. package/Grid/Grid.js +15 -12
  71. package/Grow/Grow.js +60 -52
  72. package/HTMLCanvas/HTMLCanvas.js +88 -74
  73. package/IFrame/IFrame.js +33 -27
  74. package/Icon/Icon.js +14 -14
  75. package/IconButton/IconButton.js +12 -14
  76. package/Image/Image.js +19 -15
  77. package/ImageCrop/ImageCrop.js +96 -87
  78. package/ImageEdit/ImageEdit.js +355 -290
  79. package/ImageGallery/ImageGallery.js +104 -86
  80. package/ImageList/ImageList.js +16 -11
  81. package/ImageListItem/ImageListItem.js +9 -6
  82. package/ImageListItemBox/ImageListItemBox.js +12 -12
  83. package/Info/Info.js +38 -27
  84. package/Interaction/Interaction.js +57 -68
  85. package/Keyframes/Keyframes.js +11 -9
  86. package/Label/Label.js +59 -50
  87. package/Labels/Labels.js +30 -26
  88. package/Line/Line.js +10 -7
  89. package/LineChart/LineChart.js +16 -17
  90. package/LineChartItem/LineChartItem.js +30 -26
  91. package/LinearMeter/LinearMeter.js +92 -87
  92. package/LinearProgress/LinearProgress.js +27 -22
  93. package/Link/Link.js +7 -8
  94. package/Links/Links.js +128 -118
  95. package/List/List.js +23 -21
  96. package/ListItem/ListItem.js +68 -58
  97. package/ListSubheader/ListSubheader.js +9 -11
  98. package/MainProgress/MainProgress.js +14 -12
  99. package/MainProgressMaterial/MainProgressMaterial.js +16 -14
  100. package/Markdown/Markdown.js +6 -5
  101. package/Masonry/Masonry.js +26 -22
  102. package/Medias/Medias.js +95 -93
  103. package/Menu/Menu.js +51 -45
  104. package/MenuDesktop/MenuDesktop.js +141 -130
  105. package/MenuItem/MenuItem.js +75 -64
  106. package/Meta/Meta.js +21 -19
  107. package/Modal/Modal.js +52 -39
  108. package/ModalFooter/ModalFooter.js +12 -12
  109. package/ModalHeader/ModalHeader.js +12 -12
  110. package/ModalIcon/ModalIcon.js +55 -13
  111. package/ModalMain/ModalMain.js +12 -12
  112. package/ModalText/ModalText.js +12 -12
  113. package/ModalTitle/ModalTitle.js +12 -12
  114. package/MoreOptions/MoreOptions.js +14 -12
  115. package/Move/Move.js +9 -6
  116. package/NavigationBar/NavigationBar.js +7 -6
  117. package/NavigationDrawer/NavigationDrawer.js +7 -6
  118. package/NavigationItem/NavigationItem.js +58 -48
  119. package/NavigationRail/NavigationRail.js +25 -22
  120. package/NotFound/NotFound.js +21 -18
  121. package/NumericTextField/NumericTextField.js +14 -9
  122. package/Page/Page.js +50 -38
  123. package/PageTransition/PageTransition.js +8 -7
  124. package/Pagination/Pagination.js +41 -31
  125. package/PaginationItem/PaginationItem.js +20 -18
  126. package/Parallax/Parallax.js +4 -3
  127. package/Path/Path.js +9 -11
  128. package/PieChart/PieChart.js +96 -79
  129. package/Placeholder/Placeholder.js +15 -12
  130. package/Portal/Portal.js +41 -18
  131. package/Properties/Properties.js +17 -18
  132. package/Property/Property.js +24 -17
  133. package/Radio/Radio.js +25 -21
  134. package/Radios/Radios.js +30 -26
  135. package/Rating/Rating.js +36 -31
  136. package/Reset/Reset.js +4 -1
  137. package/Reveal/Reveal.js +17 -13
  138. package/RichTextEditor/RichTextEditor.js +1011 -824
  139. package/RoundMeter/RoundMeter.js +98 -93
  140. package/RoundProgress/RoundProgress.js +36 -32
  141. package/ScatterChart/ScatterChart.js +15 -17
  142. package/ScatterChartItem/ScatterChartItem.js +36 -34
  143. package/ScreenCapture/ScreenCapture.js +57 -43
  144. package/Section/Section.js +66 -56
  145. package/SectionAction/SectionAction.js +17 -13
  146. package/SectionBoxes/SectionBoxes.js +75 -67
  147. package/SectionCards/SectionCards.js +86 -76
  148. package/SectionCarousel/SectionCarousel.js +72 -65
  149. package/SectionContact/SectionContact.js +65 -58
  150. package/SectionImageGallery/SectionImageGallery.js +13 -10
  151. package/SectionLogos/SectionLogos.js +34 -30
  152. package/SectionMedia/SectionMedia.js +41 -34
  153. package/SectionReviews/SectionReviews.js +76 -67
  154. package/SectionTextMedia/SectionTextMedia.js +64 -57
  155. package/SectionTimeline/SectionTimeline.js +46 -43
  156. package/SectionWatch/SectionWatch.js +12 -9
  157. package/Select/Select.js +163 -151
  158. package/Share/Share.js +165 -151
  159. package/Slide/Slide.js +29 -26
  160. package/Slider/Slider.js +87 -81
  161. package/SmartTextField/SmartTextField.js +453 -361
  162. package/Snackbar/Snackbar.js +48 -38
  163. package/Snackbars/Snackbars.js +43 -40
  164. package/Space/Space.js +731 -630
  165. package/SpeechToText/SpeechToText.js +20 -14
  166. package/SpeedDial/SpeedDial.js +84 -65
  167. package/SpeedDialItem/SpeedDialItem.js +22 -19
  168. package/SpyScroll/SpyScroll.js +16 -12
  169. package/Step/Step.js +29 -27
  170. package/Stepper/Stepper.js +42 -41
  171. package/Surface/Surface.js +7 -7
  172. package/Switch/Switch.js +49 -41
  173. package/Tab/Tab.js +40 -35
  174. package/Table/Table.js +19 -16
  175. package/TableBody/TableBody.js +14 -14
  176. package/TableCell/TableCell.js +37 -30
  177. package/TableFooter/TableFooter.js +13 -13
  178. package/TableHead/TableHead.js +25 -21
  179. package/TableHeader/TableHeader.js +14 -14
  180. package/TablePagination/TablePagination.js +67 -49
  181. package/TableRow/TableRow.js +14 -14
  182. package/Tabs/Tabs.js +55 -49
  183. package/Text/Text.js +17 -13
  184. package/TextField/TextField.js +135 -111
  185. package/TextToSpeech/TextToSpeech.js +20 -14
  186. package/TimePicker/TimePicker.js +196 -160
  187. package/TimeRangePicker/TimeRangePicker.js +9 -11
  188. package/Timeline/Timeline.js +13 -13
  189. package/TimelineItem/TimelineItem.js +29 -24
  190. package/Timer/Timer.js +137 -94
  191. package/ToggleButton/ToggleButton.js +10 -12
  192. package/ToggleButtons/ToggleButtons.js +9 -11
  193. package/Tooltip/Tooltip.js +63 -54
  194. package/TopAppBar/TopAppBar.js +32 -25
  195. package/Transition/Transition.js +11 -9
  196. package/Tree/Tree.js +73 -61
  197. package/Type/Type.js +7 -6
  198. package/VideoPlayer/VideoPlayer.js +207 -170
  199. package/ViewSplit/ViewSplit.js +49 -40
  200. package/Watch/Watch.js +204 -187
  201. package/Weather/Weather.js +58 -49
  202. package/Whiteboard/Whiteboard.js +28 -24
  203. package/Widgets/Widgets.js +60 -54
  204. package/WindowSplit/WindowSplit.js +59 -52
  205. package/Zoom/Zoom.js +60 -52
  206. package/esm/Accordion/Accordion.js +93 -74
  207. package/esm/AdvancedTextField/AdvancedTextField.js +7 -6
  208. package/esm/Append/Append.js +24 -19
  209. package/esm/AreaChart/AreaChart.js +15 -17
  210. package/esm/AreaChartItem/AreaChartItem.js +63 -58
  211. package/esm/AudioPlayer/AudioPlayer.js +180 -148
  212. package/esm/AudioRecorder/AudioRecorder.js +104 -59
  213. package/esm/AutoComplete/AutoComplete.js +135 -125
  214. package/esm/AutoCompleteCountry/AutoCompleteCountry.js +10 -11
  215. package/esm/AutoCompleteCurrency/AutoCompleteCurrency.js +4 -5
  216. package/esm/Avatar/Avatar.js +11 -8
  217. package/esm/AvatarGroup/AvatarGroup.js +18 -17
  218. package/esm/Backdrop/Backdrop.js +30 -21
  219. package/esm/Badge/Badge.js +18 -17
  220. package/esm/Banner/Banner.js +15 -12
  221. package/esm/BottomAppBar/BottomAppBar.js +14 -14
  222. package/esm/BottomSheet/BottomSheet.js +9 -11
  223. package/esm/Box/Box.js +12 -12
  224. package/esm/Breadcrumbs/Breadcrumbs.js +37 -33
  225. package/esm/BubbleChart/BubbleChart.js +159 -134
  226. package/esm/BubbleChartItem/BubbleChartItem.js +48 -43
  227. package/esm/Button/Button.js +45 -38
  228. package/esm/Buttons/Buttons.js +33 -28
  229. package/esm/Calendar/Calendar.js +357 -315
  230. package/esm/CalendarAvailability/CalendarAvailability.js +348 -295
  231. package/esm/CalendarMenu/CalendarMenu.js +93 -79
  232. package/esm/CalendarMonth/CalendarMonth.js +113 -102
  233. package/esm/CalendarViews/CalendarViews.js +138 -115
  234. package/esm/CalendarWeek/CalendarWeek.js +177 -155
  235. package/esm/Card/Card.js +16 -15
  236. package/esm/CardButton/CardButton.js +11 -10
  237. package/esm/CardFooter/CardFooter.js +12 -12
  238. package/esm/CardHeader/CardHeader.js +13 -13
  239. package/esm/CardImage/CardImage.js +10 -12
  240. package/esm/CardMain/CardMain.js +12 -12
  241. package/esm/Carousel/Carousel.js +140 -124
  242. package/esm/Chart/Chart.js +433 -388
  243. package/esm/Checkbox/Checkbox.js +46 -43
  244. package/esm/Chip/Chip.js +12 -11
  245. package/esm/Chips/Chips.js +20 -20
  246. package/esm/ClickListener/ClickListener.js +19 -15
  247. package/esm/Clock/Clock.js +38 -36
  248. package/esm/ColorTextField/ColorTextField.js +33 -27
  249. package/esm/ColumnChart/ColumnChart.js +16 -17
  250. package/esm/ColumnChartItem/ColumnChartItem.js +35 -31
  251. package/esm/Confirm/Confirm.js +51 -35
  252. package/esm/Container/Container.js +9 -6
  253. package/esm/CookieBanner/CookieBanner.js +55 -41
  254. package/esm/Countdown/Countdown.js +163 -123
  255. package/esm/DatePicker/DatePicker.js +236 -197
  256. package/esm/DateRangePicker/DateRangePicker.js +9 -11
  257. package/esm/DateTimePicker/DateTimePicker.js +127 -103
  258. package/esm/DateTimeRangePicker/DateTimeRangePicker.js +9 -11
  259. package/esm/Divider/Divider.js +25 -21
  260. package/esm/DonutChart/DonutChart.js +9 -11
  261. package/esm/DragAndDropList/DragAndDropList.js +8 -4
  262. package/esm/Drawing/Drawing.js +368 -311
  263. package/esm/DropZone/DropZone.js +20 -15
  264. package/esm/Emojis/Emojis.js +95 -85
  265. package/esm/Expand/Expand.js +77 -69
  266. package/esm/Fab/Fab.js +4 -6
  267. package/esm/Fade/Fade.js +64 -58
  268. package/esm/FileChoose/FileChoose.js +69 -60
  269. package/esm/Focus/Focus.js +19 -16
  270. package/esm/Form/Form.js +69 -57
  271. package/esm/FormRow/FormRow.js +49 -38
  272. package/esm/Forms/Forms.js +13 -13
  273. package/esm/Frame/Frame.js +62 -54
  274. package/esm/Grid/Grid.js +13 -10
  275. package/esm/Grow/Grow.js +60 -52
  276. package/esm/HTMLCanvas/HTMLCanvas.js +88 -74
  277. package/esm/IFrame/IFrame.js +33 -27
  278. package/esm/Icon/Icon.js +14 -14
  279. package/esm/IconButton/IconButton.js +12 -14
  280. package/esm/Image/Image.js +19 -15
  281. package/esm/ImageCrop/ImageCrop.js +96 -87
  282. package/esm/ImageEdit/ImageEdit.js +355 -290
  283. package/esm/ImageGallery/ImageGallery.js +104 -86
  284. package/esm/ImageList/ImageList.js +16 -11
  285. package/esm/ImageListItem/ImageListItem.js +9 -6
  286. package/esm/ImageListItemBox/ImageListItemBox.js +12 -12
  287. package/esm/Info/Info.js +38 -27
  288. package/esm/Interaction/Interaction.js +57 -68
  289. package/esm/Keyframes/Keyframes.js +11 -9
  290. package/esm/Label/Label.js +59 -50
  291. package/esm/Labels/Labels.js +30 -26
  292. package/esm/Line/Line.js +10 -7
  293. package/esm/LineChart/LineChart.js +16 -17
  294. package/esm/LineChartItem/LineChartItem.js +30 -26
  295. package/esm/LinearMeter/LinearMeter.js +92 -87
  296. package/esm/LinearProgress/LinearProgress.js +27 -22
  297. package/esm/Link/Link.js +7 -8
  298. package/esm/Links/Links.js +125 -115
  299. package/esm/List/List.js +23 -21
  300. package/esm/ListItem/ListItem.js +68 -58
  301. package/esm/ListSubheader/ListSubheader.js +9 -11
  302. package/esm/MainProgress/MainProgress.js +14 -12
  303. package/esm/MainProgressMaterial/MainProgressMaterial.js +16 -14
  304. package/esm/Markdown/Markdown.js +6 -5
  305. package/esm/Masonry/Masonry.js +26 -22
  306. package/esm/Medias/Medias.js +95 -93
  307. package/esm/Menu/Menu.js +51 -45
  308. package/esm/MenuDesktop/MenuDesktop.js +139 -128
  309. package/esm/MenuItem/MenuItem.js +75 -64
  310. package/esm/Meta/Meta.js +21 -19
  311. package/esm/Modal/Modal.js +52 -39
  312. package/esm/ModalFooter/ModalFooter.js +12 -12
  313. package/esm/ModalHeader/ModalHeader.js +12 -12
  314. package/esm/ModalIcon/ModalIcon.js +55 -13
  315. package/esm/ModalMain/ModalMain.js +12 -12
  316. package/esm/ModalText/ModalText.js +12 -12
  317. package/esm/ModalTitle/ModalTitle.js +12 -12
  318. package/esm/MoreOptions/MoreOptions.js +14 -12
  319. package/esm/Move/Move.js +9 -6
  320. package/esm/NavigationBar/NavigationBar.js +7 -6
  321. package/esm/NavigationDrawer/NavigationDrawer.js +7 -6
  322. package/esm/NavigationItem/NavigationItem.js +58 -48
  323. package/esm/NavigationRail/NavigationRail.js +25 -22
  324. package/esm/NotFound/NotFound.js +21 -18
  325. package/esm/NumericTextField/NumericTextField.js +14 -9
  326. package/esm/Page/Page.js +50 -38
  327. package/esm/PageTransition/PageTransition.js +8 -7
  328. package/esm/Pagination/Pagination.js +41 -31
  329. package/esm/PaginationItem/PaginationItem.js +20 -18
  330. package/esm/Parallax/Parallax.js +4 -3
  331. package/esm/Path/Path.js +9 -11
  332. package/esm/PieChart/PieChart.js +96 -79
  333. package/esm/Placeholder/Placeholder.js +15 -12
  334. package/esm/Portal/Portal.js +41 -18
  335. package/esm/Properties/Properties.js +17 -18
  336. package/esm/Property/Property.js +24 -17
  337. package/esm/Radio/Radio.js +25 -21
  338. package/esm/Radios/Radios.js +30 -26
  339. package/esm/Rating/Rating.js +35 -30
  340. package/esm/Reset/Reset.js +4 -1
  341. package/esm/Reveal/Reveal.js +17 -13
  342. package/esm/RichTextEditor/RichTextEditor.js +1011 -824
  343. package/esm/RoundMeter/RoundMeter.js +98 -93
  344. package/esm/RoundProgress/RoundProgress.js +36 -32
  345. package/esm/ScatterChart/ScatterChart.js +15 -17
  346. package/esm/ScatterChartItem/ScatterChartItem.js +36 -34
  347. package/esm/ScreenCapture/ScreenCapture.js +57 -43
  348. package/esm/Section/Section.js +66 -56
  349. package/esm/SectionAction/SectionAction.js +17 -13
  350. package/esm/SectionBoxes/SectionBoxes.js +75 -67
  351. package/esm/SectionCards/SectionCards.js +86 -76
  352. package/esm/SectionCarousel/SectionCarousel.js +72 -65
  353. package/esm/SectionContact/SectionContact.js +65 -58
  354. package/esm/SectionImageGallery/SectionImageGallery.js +13 -10
  355. package/esm/SectionLogos/SectionLogos.js +34 -30
  356. package/esm/SectionMedia/SectionMedia.js +41 -34
  357. package/esm/SectionReviews/SectionReviews.js +74 -65
  358. package/esm/SectionTextMedia/SectionTextMedia.js +64 -57
  359. package/esm/SectionTimeline/SectionTimeline.js +46 -43
  360. package/esm/SectionWatch/SectionWatch.js +12 -9
  361. package/esm/Select/Select.js +161 -149
  362. package/esm/Share/Share.js +165 -151
  363. package/esm/Slide/Slide.js +28 -25
  364. package/esm/Slider/Slider.js +86 -80
  365. package/esm/SmartTextField/SmartTextField.js +450 -358
  366. package/esm/Snackbar/Snackbar.js +48 -38
  367. package/esm/Snackbars/Snackbars.js +40 -37
  368. package/esm/Space/Space.js +731 -630
  369. package/esm/SpeechToText/SpeechToText.js +20 -14
  370. package/esm/SpeedDial/SpeedDial.js +84 -65
  371. package/esm/SpeedDialItem/SpeedDialItem.js +22 -19
  372. package/esm/SpyScroll/SpyScroll.js +16 -12
  373. package/esm/Step/Step.js +29 -27
  374. package/esm/Stepper/Stepper.js +42 -41
  375. package/esm/Surface/Surface.js +7 -7
  376. package/esm/Switch/Switch.js +49 -41
  377. package/esm/Tab/Tab.js +40 -35
  378. package/esm/Table/Table.js +19 -16
  379. package/esm/TableBody/TableBody.js +14 -14
  380. package/esm/TableCell/TableCell.js +37 -30
  381. package/esm/TableFooter/TableFooter.js +13 -13
  382. package/esm/TableHead/TableHead.js +25 -21
  383. package/esm/TableHeader/TableHeader.js +14 -14
  384. package/esm/TablePagination/TablePagination.js +67 -49
  385. package/esm/TableRow/TableRow.js +14 -14
  386. package/esm/Tabs/Tabs.js +55 -49
  387. package/esm/Text/Text.js +17 -13
  388. package/esm/TextField/TextField.js +129 -105
  389. package/esm/TextToSpeech/TextToSpeech.js +20 -14
  390. package/esm/TimePicker/TimePicker.js +196 -160
  391. package/esm/TimeRangePicker/TimeRangePicker.js +9 -11
  392. package/esm/Timeline/Timeline.js +13 -13
  393. package/esm/TimelineItem/TimelineItem.js +29 -24
  394. package/esm/Timer/Timer.js +137 -94
  395. package/esm/ToggleButton/ToggleButton.js +10 -12
  396. package/esm/ToggleButtons/ToggleButtons.js +9 -11
  397. package/esm/Tooltip/Tooltip.js +62 -53
  398. package/esm/TopAppBar/TopAppBar.js +32 -25
  399. package/esm/Transition/Transition.js +11 -9
  400. package/esm/Tree/Tree.js +73 -61
  401. package/esm/Type/Type.js +7 -6
  402. package/esm/VideoPlayer/VideoPlayer.js +207 -170
  403. package/esm/ViewSplit/ViewSplit.js +49 -40
  404. package/esm/Watch/Watch.js +204 -187
  405. package/esm/Weather/Weather.js +58 -49
  406. package/esm/Whiteboard/Whiteboard.js +28 -24
  407. package/esm/Widgets/Widgets.js +57 -51
  408. package/esm/WindowSplit/WindowSplit.js +59 -52
  409. package/esm/Zoom/Zoom.js +60 -52
  410. package/esm/index.js +1 -1
  411. package/index.js +1 -1
  412. package/package.json +3 -3
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  var _react = _interopRequireDefault(require("react"));
@@ -37,7 +36,8 @@ var _ImageCrop = _interopRequireDefault(require("../ImageCrop"));
37
36
  var _Chip = _interopRequireDefault(require("../Chip"));
38
37
  var _Line = _interopRequireDefault(require("../Line"));
39
38
  var _utils2 = require("../utils");
40
- const _excluded = ["tonal", "color", "image", "name", "type", "openDefault", "openedOptionDefault", "valueDefault", "value", "valueCopyDefault", "valueCopy", "onChange", "onChangeCopy", "onlyFilters", "filters", "meta", "filtersOption", "cropOption", "resizeOption", "qualityOption", "downloadOption", "resizeAspectRatio", "renderOption", "renderOptionClear", "renderSave", "renderCancel", "renderSlider", "renderDownload", "renderInput", "IconBrightness", "IconContrast", "IconSaturation", "IconFade", "IconInvert", "IconOldPhoto", "IconSave", "IconCancel", "IconClear", "IconCrop", "IconFilters", "IconResize", "IconQuality", "IconDownload", "ChipProps", "SliderProps", "TooltipProps", "ImageCropProps", "IconButtonProps", "className", "children"];
39
+ var _jsxRuntime = require("react/jsx-runtime");
40
+ const _excluded = ["ref", "tonal", "color", "image", "name", "type", "openDefault", "openedOptionDefault", "valueDefault", "value", "valueCopyDefault", "valueCopy", "onChange", "onChangeCopy", "onlyFilters", "filters", "meta", "filtersOption", "cropOption", "resizeOption", "qualityOption", "downloadOption", "resizeAspectRatio", "renderOption", "renderOptionClear", "renderSave", "renderCancel", "renderSlider", "renderDownload", "renderInput", "IconBrightness", "IconContrast", "IconSaturation", "IconFade", "IconInvert", "IconOldPhoto", "IconSave", "IconCancel", "IconClear", "IconCrop", "IconFilters", "IconResize", "IconQuality", "IconDownload", "ChipProps", "SliderProps", "TooltipProps", "ImageCropProps", "IconButtonProps", "className", "children"];
41
41
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
42
42
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
43
43
  const useStyle = (0, _styleReact.style)(theme => ({
@@ -127,7 +127,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
127
127
  }), {
128
128
  name: 'onesy-ImageEdit'
129
129
  });
130
- const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
130
+ const ImageEdit = props_ => {
131
131
  var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _theme$elements3, _theme$elements4, _theme$elements5, _theme$elements6, _theme$elements7, _theme$elements8, _theme$elements9, _theme$elements0, _theme$elements1, _ref, _ref2;
132
132
  const theme = (0, _styleReact.useOnesyTheme)();
133
133
  const l = theme.l;
@@ -144,6 +144,7 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
144
144
  const ImageCrop = (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.ImageCrop) || _ImageCrop.default;
145
145
  const Chip = (theme === null || theme === void 0 || (_theme$elements1 = theme.elements) === null || _theme$elements1 === void 0 ? void 0 : _theme$elements1.Chip) || _Chip.default;
146
146
  const {
147
+ ref,
147
148
  tonal = true,
148
149
  color = 'primary',
149
150
  image,
@@ -552,16 +553,18 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
552
553
  Icon: IconBrightness,
553
554
  value: 'brightness',
554
555
  method: _utils2.canvasBrightness,
555
- renderIconButton: (value__, selected_, onChangeFilter_) => /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
556
- key: value__,
556
+ renderIconButton: (value__, selected_, onChangeFilter_) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
557
557
  name: l('Brightness')
558
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
559
- version: "outlined",
560
- selected: selected_,
561
- onClick: () => onChangeFilter_(value__)
562
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconBrightness, null))),
563
- renderSlider: (value___0, filterValuesCopy_, onFilterSliderChange_) => /*#__PURE__*/_react.default.createElement(Slider, (0, _extends2.default)({
564
- key: value___0,
558
+ }, TooltipProps), {}, {
559
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
560
+ version: "outlined",
561
+ selected: selected_,
562
+ onClick: () => onChangeFilter_(value__)
563
+ }, IconButtonProps), {}, {
564
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBrightness, {})
565
+ }))
566
+ }), value__),
567
+ renderSlider: (value___0, filterValuesCopy_, onFilterSliderChange_) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Slider, _objectSpread(_objectSpread({
565
568
  valueDefault: (filterValuesCopy_ === null || filterValuesCopy_ === void 0 ? void 0 : filterValuesCopy_[value___0]) || 0,
566
569
  value: (filterValuesCopy_ === null || filterValuesCopy_ === void 0 ? void 0 : filterValuesCopy_[value___0]) || 0,
567
570
  min: -100,
@@ -582,24 +585,26 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
582
585
  onChange: valueNew_11 => {
583
586
  if ((0, _utils.is)('function', onFilterSliderChange_)) onFilterSliderChange_(valueNew_11, value___0);
584
587
  }
585
- }, SliderProps, {
588
+ }, SliderProps), {}, {
586
589
  className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-slider'], SliderProps.className, classes.slider])
587
- }))
590
+ }), value___0)
588
591
  }, {
589
592
  label: l('Contrast'),
590
593
  Icon: IconContrast,
591
594
  value: 'contrast',
592
595
  method: _utils2.canvasContrast,
593
- renderIconButton: (value___1, selected__0, onChangeFilter__0) => /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
594
- key: value___1,
596
+ renderIconButton: (value___1, selected__0, onChangeFilter__0) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
595
597
  name: l('Contrast')
596
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
597
- version: "outlined",
598
- selected: selected__0,
599
- onClick: () => onChangeFilter__0(value___1)
600
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconContrast, null))),
601
- renderSlider: (value___2, filterValuesCopy__0, onFilterSliderChange__0) => /*#__PURE__*/_react.default.createElement(Slider, (0, _extends2.default)({
602
- key: value___2,
598
+ }, TooltipProps), {}, {
599
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
600
+ version: "outlined",
601
+ selected: selected__0,
602
+ onClick: () => onChangeFilter__0(value___1)
603
+ }, IconButtonProps), {}, {
604
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconContrast, {})
605
+ }))
606
+ }), value___1),
607
+ renderSlider: (value___2, filterValuesCopy__0, onFilterSliderChange__0) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Slider, _objectSpread(_objectSpread({
603
608
  valueDefault: (filterValuesCopy__0 === null || filterValuesCopy__0 === void 0 ? void 0 : filterValuesCopy__0[value___2]) || 0,
604
609
  value: (filterValuesCopy__0 === null || filterValuesCopy__0 === void 0 ? void 0 : filterValuesCopy__0[value___2]) || 0,
605
610
  min: -100,
@@ -620,24 +625,26 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
620
625
  onChange: valueNew_12 => {
621
626
  if ((0, _utils.is)('function', onFilterSliderChange__0)) onFilterSliderChange__0(valueNew_12, value___2);
622
627
  }
623
- }, SliderProps, {
628
+ }, SliderProps), {}, {
624
629
  className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-slider'], SliderProps.className, classes.slider])
625
- }))
630
+ }), value___2)
626
631
  }, {
627
632
  label: l('Saturation'),
628
633
  Icon: IconSaturation,
629
634
  value: 'saturation',
630
635
  method: _utils2.canvasSaturation,
631
- renderIconButton: (value___3, selected__1, onChangeFilter__1) => /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
632
- key: value___3,
636
+ renderIconButton: (value___3, selected__1, onChangeFilter__1) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
633
637
  name: l('Saturation')
634
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
635
- version: "outlined",
636
- selected: selected__1,
637
- onClick: () => onChangeFilter__1(value___3)
638
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconSaturation, null))),
639
- renderSlider: (value___4, filterValuesCopy__1, onFilterSliderChange__1) => /*#__PURE__*/_react.default.createElement(Slider, (0, _extends2.default)({
640
- key: value___4,
638
+ }, TooltipProps), {}, {
639
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
640
+ version: "outlined",
641
+ selected: selected__1,
642
+ onClick: () => onChangeFilter__1(value___3)
643
+ }, IconButtonProps), {}, {
644
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconSaturation, {})
645
+ }))
646
+ }), value___3),
647
+ renderSlider: (value___4, filterValuesCopy__1, onFilterSliderChange__1) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Slider, _objectSpread(_objectSpread({
641
648
  valueDefault: (filterValuesCopy__1 === null || filterValuesCopy__1 === void 0 ? void 0 : filterValuesCopy__1[value___4]) || 0,
642
649
  value: (filterValuesCopy__1 === null || filterValuesCopy__1 === void 0 ? void 0 : filterValuesCopy__1[value___4]) || 0,
643
650
  min: -100,
@@ -658,24 +665,26 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
658
665
  onChange: valueNew_13 => {
659
666
  if ((0, _utils.is)('function', onFilterSliderChange__1)) onFilterSliderChange__1(valueNew_13, value___4);
660
667
  }
661
- }, SliderProps, {
668
+ }, SliderProps), {}, {
662
669
  className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-slider'], SliderProps.className, classes.slider])
663
- }))
670
+ }), value___4)
664
671
  }, {
665
672
  label: l('Fade'),
666
673
  Icon: IconFade,
667
674
  value: 'fade',
668
675
  method: _utils2.canvasFade,
669
- renderIconButton: (value___5, selected__2, onChangeFilter__2) => /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
670
- key: value___5,
676
+ renderIconButton: (value___5, selected__2, onChangeFilter__2) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
671
677
  name: l('Fade')
672
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
673
- version: "outlined",
674
- selected: selected__2,
675
- onClick: () => onChangeFilter__2(value___5)
676
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconFade, null))),
677
- renderSlider: (value___6, filterValuesCopy__2, onFilterSliderChange__2) => /*#__PURE__*/_react.default.createElement(Slider, (0, _extends2.default)({
678
- key: value___6,
678
+ }, TooltipProps), {}, {
679
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
680
+ version: "outlined",
681
+ selected: selected__2,
682
+ onClick: () => onChangeFilter__2(value___5)
683
+ }, IconButtonProps), {}, {
684
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconFade, {})
685
+ }))
686
+ }), value___5),
687
+ renderSlider: (value___6, filterValuesCopy__2, onFilterSliderChange__2) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Slider, _objectSpread(_objectSpread({
679
688
  valueDefault: (filterValuesCopy__2 === null || filterValuesCopy__2 === void 0 ? void 0 : filterValuesCopy__2[value___6]) || 0,
680
689
  value: (filterValuesCopy__2 === null || filterValuesCopy__2 === void 0 ? void 0 : filterValuesCopy__2[value___6]) || 0,
681
690
  min: 0,
@@ -693,24 +702,26 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
693
702
  onChange: valueNew_14 => {
694
703
  if ((0, _utils.is)('function', onFilterSliderChange__2)) onFilterSliderChange__2(valueNew_14, value___6);
695
704
  }
696
- }, SliderProps, {
705
+ }, SliderProps), {}, {
697
706
  className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-slider'], SliderProps.className, classes.slider])
698
- }))
707
+ }), value___6)
699
708
  }, {
700
709
  label: l('Invert'),
701
710
  Icon: IconInvert,
702
711
  value: 'invert',
703
712
  method: _utils2.canvasInvert,
704
- renderIconButton: (value___7, selected__3, onChangeFilter__3) => /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
705
- key: value___7,
713
+ renderIconButton: (value___7, selected__3, onChangeFilter__3) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
706
714
  name: l('Invert')
707
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
708
- version: "outlined",
709
- selected: selected__3,
710
- onClick: () => onChangeFilter__3(value___7)
711
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconInvert, null))),
712
- renderSlider: (value___8, filterValuesCopy__3, onFilterSliderChange__3) => /*#__PURE__*/_react.default.createElement(Slider, (0, _extends2.default)({
713
- key: value___8,
715
+ }, TooltipProps), {}, {
716
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
717
+ version: "outlined",
718
+ selected: selected__3,
719
+ onClick: () => onChangeFilter__3(value___7)
720
+ }, IconButtonProps), {}, {
721
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconInvert, {})
722
+ }))
723
+ }), value___7),
724
+ renderSlider: (value___8, filterValuesCopy__3, onFilterSliderChange__3) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Slider, _objectSpread(_objectSpread({
714
725
  valueDefault: (filterValuesCopy__3 === null || filterValuesCopy__3 === void 0 ? void 0 : filterValuesCopy__3[value___8]) || 0,
715
726
  value: (filterValuesCopy__3 === null || filterValuesCopy__3 === void 0 ? void 0 : filterValuesCopy__3[value___8]) || 0,
716
727
  min: 0,
@@ -728,24 +739,26 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
728
739
  onChange: valueNew_15 => {
729
740
  if ((0, _utils.is)('function', onFilterSliderChange__3)) onFilterSliderChange__3(valueNew_15, value___8);
730
741
  }
731
- }, SliderProps, {
742
+ }, SliderProps), {}, {
732
743
  className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-slider'], SliderProps.className, classes.slider])
733
- }))
744
+ }), value___8)
734
745
  }, {
735
746
  label: l('Old photo'),
736
747
  Icon: IconOldPhoto,
737
748
  value: 'old_photo',
738
749
  method: _utils2.canvasOldPhoto,
739
- renderIconButton: (value___9, selected__4, onChangeFilter__4) => /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
740
- key: value___9,
750
+ renderIconButton: (value___9, selected__4, onChangeFilter__4) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
741
751
  name: l('Old photo')
742
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
743
- version: "outlined",
744
- selected: selected__4,
745
- onClick: () => onChangeFilter__4(value___9)
746
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconOldPhoto, null))),
747
- renderSlider: (value___10, filterValuesCopy__4, onFilterSliderChange__4) => /*#__PURE__*/_react.default.createElement(Slider, (0, _extends2.default)({
748
- key: value___10,
752
+ }, TooltipProps), {}, {
753
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
754
+ version: "outlined",
755
+ selected: selected__4,
756
+ onClick: () => onChangeFilter__4(value___9)
757
+ }, IconButtonProps), {}, {
758
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconOldPhoto, {})
759
+ }))
760
+ }), value___9),
761
+ renderSlider: (value___10, filterValuesCopy__4, onFilterSliderChange__4) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Slider, _objectSpread(_objectSpread({
749
762
  valueDefault: (filterValuesCopy__4 === null || filterValuesCopy__4 === void 0 ? void 0 : filterValuesCopy__4[value___10]) || 0,
750
763
  value: (filterValuesCopy__4 === null || filterValuesCopy__4 === void 0 ? void 0 : filterValuesCopy__4[value___10]) || 0,
751
764
  min: -40,
@@ -766,9 +779,9 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
766
779
  onChange: valueNew_16 => {
767
780
  if ((0, _utils.is)('function', onFilterSliderChange__4)) onFilterSliderChange__4(valueNew_16, value___10);
768
781
  }
769
- }, SliderProps, {
782
+ }, SliderProps), {}, {
770
783
  className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-slider'], SliderProps.className, classes.slider])
771
- }))
784
+ }), value___10)
772
785
  }, ...(filters_ || [])], [filters_]);
773
786
 
774
787
  // Only filters
@@ -822,7 +835,7 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
822
835
  version: 'b3'
823
836
  };
824
837
  const filterValue = filters.find(item__0 => item__0.value === filter);
825
- return /*#__PURE__*/_react.default.createElement(Line, (0, _extends2.default)({
838
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, _objectSpread(_objectSpread({
826
839
  ref: item_1 => {
827
840
  if (ref) {
828
841
  if ((0, _utils.is)('function', ref)) ref(item_1);else if (ref !== null && ref !== void 0 && ref.current) ref.current = item_1;
@@ -835,225 +848,277 @@ const ImageEdit = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
835
848
  direction: "column",
836
849
  Component: Surface,
837
850
  className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-root', `onesy-ImageEdit-size-${size}`], className, classes.root])
838
- }, other), /*#__PURE__*/_react.default.createElement(Line, {
839
- gap: 0,
840
- direction: "column",
841
- align: "center",
842
- justify: "center",
843
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-image-wrapper'], classes.imageWrapper])
844
- }, /*#__PURE__*/_react.default.createElement("div", {
845
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-canvas-wrapper'], classes.canvasWrapper])
846
- }, /*#__PURE__*/_react.default.createElement("canvas", {
847
- ref: refs.canvasMain,
848
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-canvas', 'onesy-ImageEdit-canvas-main'], classes.canvas, classes.canvas_main])
849
- }), open && openedOption === 'crop' && /*#__PURE__*/_react.default.createElement(ImageCrop, (0, _extends2.default)({
850
- image: valueCopy,
851
- aspectRatio: aspectRatio ? aspectRatio : undefined,
852
- onSelectorChange: selector => setSelection(selector)
853
- }, ImageCropProps, {
854
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-image-crop'], ImageCropProps.className, classes.imageCrop]),
855
- style: {
856
- width: valueCopy === null || valueCopy === void 0 ? void 0 : valueCopy.width,
857
- height: valueCopy === null || valueCopy === void 0 ? void 0 : valueCopy.height
858
- }
859
- })))), (filtersOption || cropOption || resizeOption || qualityOption) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Expand, {
860
- in: !!open,
861
- parent: refs.root.current,
862
- style: {
863
- width: '100%'
864
- }
865
- }, /*#__PURE__*/_react.default.createElement(Line, {
866
- gap: 0,
867
- ref: refs.option,
868
- direction: "column",
869
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-option'], classes.option])
870
- }, openedOption === 'filters' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Expand, {
871
- in: !!filterValue,
872
- parent: refs.option.current,
873
- style: {
874
- width: '100%'
875
- }
876
- }, /*#__PURE__*/_react.default.createElement("div", {
877
- style: {
878
- paddingInline: theme.methods.space.value(5, 'px'),
879
- paddingBottom: theme.methods.space.value(5, 'px')
880
- }
881
- }, (0, _utils.is)('function', filterValue === null || filterValue === void 0 ? void 0 : filterValue.renderSlider) && (filterValue === null || filterValue === void 0 ? void 0 : filterValue.renderSlider(filterValue.value, refs.filterValuesCopy.current, onFilterSliderChange)))), /*#__PURE__*/_react.default.createElement(Line, {
882
- gap: 1,
883
- direction: "row",
884
- align: "center",
885
- justify: "flex-start",
886
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-filters'], classes.filters])
887
- }, filters.map(item_2 => (0, _utils.is)('function', item_2.renderIconButton) && item_2.renderIconButton(item_2.value, item_2.value === filter, onChangeFilter)))), openedOption === 'crop' && /*#__PURE__*/_react.default.createElement(Line, {
888
- gap: 1,
889
- direction: "row",
890
- align: "center",
891
- justify: "center",
892
- style: {
893
- width: '100%'
894
- }
895
- }, chips.map((item_3, index) => /*#__PURE__*/_react.default.createElement(Chip, (0, _extends2.default)({
896
- key: index,
897
- selected: aspectRatio === item_3.value,
898
- onClick: () => onChangeAspectRatio(item_3.value)
899
- }, ChipProps), item_3.label)), /*#__PURE__*/_react.default.createElement(Line, {
900
- gap: 0,
901
- direction: "row",
902
- align: "center",
903
- justify: "center"
904
- }, (0, _utils.is)('function', renderInput) ? renderInput(value, valueCopy, aspectRatioCustom, onChangeAspectRatioCustom, 'left') : /*#__PURE__*/_react.default.createElement(NumericTextField, {
905
- tonal: tonal,
906
- color: "default",
907
- version: "text",
908
- size: "small",
909
- min: 1,
910
- value: aspectRatioCustom === null || aspectRatioCustom === void 0 ? void 0 : aspectRatioCustom[0],
911
- onChange: valueNew_17 => onChangeAspectRatioCustom(+valueNew_17),
912
- increment: false,
913
- decrement: false,
914
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-option-input'], classes.optionInput]),
915
- style: {
916
- width: 24
917
- }
918
- }), /*#__PURE__*/_react.default.createElement(Type, null, ":"), (0, _utils.is)('function', renderInput) ? renderInput(value, valueCopy, aspectRatioCustom, onChangeAspectRatioCustom, 'right') : /*#__PURE__*/_react.default.createElement(NumericTextField, {
919
- tonal: tonal,
920
- color: "default",
921
- version: "text",
922
- size: "small",
923
- min: 1,
924
- value: aspectRatioCustom === null || aspectRatioCustom === void 0 ? void 0 : aspectRatioCustom[1],
925
- onChange: valueNew_18 => onChangeAspectRatioCustom(+valueNew_18, false),
926
- increment: false,
927
- decrement: false,
928
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-option-input'], classes.optionInput]),
929
- style: {
930
- width: 24
931
- }
932
- }))), openedOption === 'resize' && /*#__PURE__*/_react.default.createElement(Line, {
933
- direction: "row",
934
- align: "center",
935
- justify: "center",
936
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-inputs'], classes.inputs])
937
- }, (0, _utils.is)('function', renderInput) ? renderInput(value, valueCopy, resize, onChangeResize, 'width') : /*#__PURE__*/_react.default.createElement(NumericTextField, {
938
- tonal: tonal,
939
- name: l('Width'),
940
- color: "default",
941
- version: "text",
942
- size: "small",
943
- min: 1,
944
- max: value === null || value === void 0 ? void 0 : value.width,
945
- valueDefault: value === null || value === void 0 ? void 0 : value.width,
946
- value: resize === null || resize === void 0 ? void 0 : resize[0],
947
- onChange: valueNew_19 => onChangeResize(valueNew_19)
948
- }), (0, _utils.is)('function', renderInput) ? renderInput(value, valueCopy, resize, onChangeResize, 'height') : /*#__PURE__*/_react.default.createElement(NumericTextField, {
949
- tonal: tonal,
950
- name: l('Height'),
951
- color: "default",
952
- version: "text",
953
- size: "small",
954
- min: 1,
955
- max: value === null || value === void 0 ? void 0 : value.height,
956
- valueDefault: value === null || value === void 0 ? void 0 : value.height,
957
- value: resize === null || resize === void 0 ? void 0 : resize[1],
958
- onChange: valueNew_20 => onChangeResize(valueNew_20, false)
959
- })), openedOption === 'quality' && /*#__PURE__*/_react.default.createElement(Line, {
960
- gap: 3,
961
- direction: "row",
962
- align: "center",
963
- style: {
964
- width: '100%'
965
- }
966
- }, /*#__PURE__*/_react.default.createElement(Slider, (0, _extends2.default)({
967
- valueDefault: quality,
968
- value: quality,
969
- min: 1,
970
- max: 100,
971
- precision: 1,
972
- marks: [{
973
- value: 1
974
- }, {
975
- value: 50
976
- }, {
977
- value: 100
978
- }],
979
- tooltip: true,
980
- onChange: onChangeQuality
981
- }, SliderProps, {
982
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-slider'], SliderProps.className, classes.slider])
983
- })), /*#__PURE__*/_react.default.createElement(NumericTextField, {
984
- tonal: tonal,
985
- color: "default",
986
- version: "text",
987
- size: "small",
988
- min: 1,
989
- max: 100,
990
- value: quality,
991
- increment: false,
992
- decrement: false,
993
- onChange: valueNew_21 => onChangeQuality(+valueNew_21),
994
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-option-input'], classes.optionInput]),
995
- style: {
996
- width: 34
997
- }
998
- })), /*#__PURE__*/_react.default.createElement(Line, {
999
- gap: 1,
1000
- direction: "row",
1001
- align: "center",
1002
- justify: "center",
1003
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-action'], classes.action])
1004
- }, (0, _utils.is)('function', renderSave) ? renderSave(onSave) : /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
1005
- name: l('Save')
1006
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
1007
- version: "outlined",
1008
- onClick: onSave
1009
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconSave, null))), (0, _utils.is)('function', renderCancel) ? renderCancel(onSave) : /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
1010
- name: l('Cancel')
1011
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
1012
- version: "outlined",
1013
- onClick: onCancel
1014
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconCancel, null))))), /*#__PURE__*/_react.default.createElement(Divider, {
1015
- color: "inherit",
1016
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-divider'], classes.divider])
1017
- })), /*#__PURE__*/_react.default.createElement(Line, {
1018
- direction: "column",
1019
- align: "center",
1020
- justify: "center",
1021
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-options'], classes.options])
1022
- }, /*#__PURE__*/_react.default.createElement(Line, {
1023
- gap: 1,
1024
- direction: "row",
1025
- justify: "flex-start"
1026
- }, options.map((item_4, index_0) => (0, _utils.is)('function', renderOption) ? renderOption(item_4, open && openOption === item_4.value, openOption) : /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
1027
- key: index_0,
1028
- name: item_4.label
1029
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
1030
- version: "outlined",
1031
- selected: open && openedOption === item_4.value,
1032
- onClick: () => openOption(item_4.value)
1033
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(item_4.Icon, null)))), /*#__PURE__*/_react.default.createElement(Line, {
1034
- gap: 0,
1035
- direction: "row",
1036
- align: "center"
1037
- }, downloadOption && (0, _utils.is)('function', renderDownload) ? renderDownload(onDownload) : /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
1038
- name: l('Download')
1039
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
1040
- version: "text",
1041
- onClick: onDownload
1042
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconDownload, null))), (0, _utils.is)('function', renderOptionClear) ? renderOptionClear(onReset) : /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
1043
- name: l('Reset')
1044
- }, TooltipProps), /*#__PURE__*/_react.default.createElement(IconButton, (0, _extends2.default)({
1045
- version: "text",
1046
- onClick: onReset
1047
- }, IconButtonProps), /*#__PURE__*/_react.default.createElement(IconClear, null))))))), children, meta && value && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Divider, {
1048
- color: "inherit",
1049
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-divider'], classes.divider])
1050
- }), /*#__PURE__*/_react.default.createElement(Line, {
1051
- gap: 1,
1052
- direction: "row",
1053
- align: "center",
1054
- justify: "center",
1055
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-meta'], classes.meta])
1056
- }, /*#__PURE__*/_react.default.createElement(Type, MetaTypeProps, l('Dimensions'), ": ", (_ref = !open ? value : valueCopy) === null || _ref === void 0 ? void 0 : _ref.width, "x", (_ref2 = !open ? value : valueCopy) === null || _ref2 === void 0 ? void 0 : _ref2.height), /*#__PURE__*/_react.default.createElement(Type, MetaTypeProps, "\xB7"), /*#__PURE__*/_react.default.createElement(Type, MetaTypeProps, l('Size'), ": ", size))));
1057
- });
851
+ }, other), {}, {
852
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
853
+ gap: 0,
854
+ direction: "column",
855
+ align: "center",
856
+ justify: "center",
857
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-image-wrapper'], classes.imageWrapper]),
858
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
859
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-canvas-wrapper'], classes.canvasWrapper]),
860
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("canvas", {
861
+ ref: refs.canvasMain,
862
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-canvas', 'onesy-ImageEdit-canvas-main'], classes.canvas, classes.canvas_main])
863
+ }), open && openedOption === 'crop' && /*#__PURE__*/(0, _jsxRuntime.jsx)(ImageCrop, _objectSpread(_objectSpread({
864
+ image: valueCopy,
865
+ aspectRatio: aspectRatio ? aspectRatio : undefined,
866
+ onSelectorChange: selector => setSelection(selector)
867
+ }, ImageCropProps), {}, {
868
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-image-crop'], ImageCropProps.className, classes.imageCrop]),
869
+ style: {
870
+ width: valueCopy === null || valueCopy === void 0 ? void 0 : valueCopy.width,
871
+ height: valueCopy === null || valueCopy === void 0 ? void 0 : valueCopy.height
872
+ }
873
+ }))]
874
+ })
875
+ }), (filtersOption || cropOption || resizeOption || qualityOption) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
876
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Expand, {
877
+ in: !!open,
878
+ parent: refs.root.current,
879
+ style: {
880
+ width: '100%'
881
+ },
882
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
883
+ gap: 0,
884
+ ref: refs.option,
885
+ direction: "column",
886
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-option'], classes.option]),
887
+ children: [openedOption === 'filters' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
888
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Expand, {
889
+ in: !!filterValue,
890
+ parent: refs.option.current,
891
+ style: {
892
+ width: '100%'
893
+ },
894
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
895
+ style: {
896
+ paddingInline: theme.methods.space.value(5, 'px'),
897
+ paddingBottom: theme.methods.space.value(5, 'px')
898
+ },
899
+ children: (0, _utils.is)('function', filterValue === null || filterValue === void 0 ? void 0 : filterValue.renderSlider) && (filterValue === null || filterValue === void 0 ? void 0 : filterValue.renderSlider(filterValue.value, refs.filterValuesCopy.current, onFilterSliderChange))
900
+ })
901
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
902
+ gap: 1,
903
+ direction: "row",
904
+ align: "center",
905
+ justify: "flex-start",
906
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-filters'], classes.filters]),
907
+ children: filters.map(item_2 => (0, _utils.is)('function', item_2.renderIconButton) && item_2.renderIconButton(item_2.value, item_2.value === filter, onChangeFilter))
908
+ })]
909
+ }), openedOption === 'crop' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
910
+ gap: 1,
911
+ direction: "row",
912
+ align: "center",
913
+ justify: "center",
914
+ style: {
915
+ width: '100%'
916
+ },
917
+ children: [chips.map((item_3, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Chip, _objectSpread(_objectSpread({
918
+ selected: aspectRatio === item_3.value,
919
+ onClick: () => onChangeAspectRatio(item_3.value)
920
+ }, ChipProps), {}, {
921
+ children: item_3.label
922
+ }), index)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
923
+ gap: 0,
924
+ direction: "row",
925
+ align: "center",
926
+ justify: "center",
927
+ children: [(0, _utils.is)('function', renderInput) ? renderInput(value, valueCopy, aspectRatioCustom, onChangeAspectRatioCustom, 'left') : /*#__PURE__*/(0, _jsxRuntime.jsx)(NumericTextField, {
928
+ tonal: tonal,
929
+ color: "default",
930
+ version: "text",
931
+ size: "small",
932
+ min: 1,
933
+ value: aspectRatioCustom === null || aspectRatioCustom === void 0 ? void 0 : aspectRatioCustom[0],
934
+ onChange: valueNew_17 => onChangeAspectRatioCustom(+valueNew_17),
935
+ increment: false,
936
+ decrement: false,
937
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-option-input'], classes.optionInput]),
938
+ style: {
939
+ width: 24
940
+ }
941
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
942
+ children: ":"
943
+ }), (0, _utils.is)('function', renderInput) ? renderInput(value, valueCopy, aspectRatioCustom, onChangeAspectRatioCustom, 'right') : /*#__PURE__*/(0, _jsxRuntime.jsx)(NumericTextField, {
944
+ tonal: tonal,
945
+ color: "default",
946
+ version: "text",
947
+ size: "small",
948
+ min: 1,
949
+ value: aspectRatioCustom === null || aspectRatioCustom === void 0 ? void 0 : aspectRatioCustom[1],
950
+ onChange: valueNew_18 => onChangeAspectRatioCustom(+valueNew_18, false),
951
+ increment: false,
952
+ decrement: false,
953
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-option-input'], classes.optionInput]),
954
+ style: {
955
+ width: 24
956
+ }
957
+ })]
958
+ })]
959
+ }), openedOption === 'resize' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
960
+ direction: "row",
961
+ align: "center",
962
+ justify: "center",
963
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-inputs'], classes.inputs]),
964
+ children: [(0, _utils.is)('function', renderInput) ? renderInput(value, valueCopy, resize, onChangeResize, 'width') : /*#__PURE__*/(0, _jsxRuntime.jsx)(NumericTextField, {
965
+ tonal: tonal,
966
+ name: l('Width'),
967
+ color: "default",
968
+ version: "text",
969
+ size: "small",
970
+ min: 1,
971
+ max: value === null || value === void 0 ? void 0 : value.width,
972
+ valueDefault: value === null || value === void 0 ? void 0 : value.width,
973
+ value: resize === null || resize === void 0 ? void 0 : resize[0],
974
+ onChange: valueNew_19 => onChangeResize(valueNew_19)
975
+ }), (0, _utils.is)('function', renderInput) ? renderInput(value, valueCopy, resize, onChangeResize, 'height') : /*#__PURE__*/(0, _jsxRuntime.jsx)(NumericTextField, {
976
+ tonal: tonal,
977
+ name: l('Height'),
978
+ color: "default",
979
+ version: "text",
980
+ size: "small",
981
+ min: 1,
982
+ max: value === null || value === void 0 ? void 0 : value.height,
983
+ valueDefault: value === null || value === void 0 ? void 0 : value.height,
984
+ value: resize === null || resize === void 0 ? void 0 : resize[1],
985
+ onChange: valueNew_20 => onChangeResize(valueNew_20, false)
986
+ })]
987
+ }), openedOption === 'quality' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
988
+ gap: 3,
989
+ direction: "row",
990
+ align: "center",
991
+ style: {
992
+ width: '100%'
993
+ },
994
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Slider, _objectSpread(_objectSpread({
995
+ valueDefault: quality,
996
+ value: quality,
997
+ min: 1,
998
+ max: 100,
999
+ precision: 1,
1000
+ marks: [{
1001
+ value: 1
1002
+ }, {
1003
+ value: 50
1004
+ }, {
1005
+ value: 100
1006
+ }],
1007
+ tooltip: true,
1008
+ onChange: onChangeQuality
1009
+ }, SliderProps), {}, {
1010
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-slider'], SliderProps.className, classes.slider])
1011
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(NumericTextField, {
1012
+ tonal: tonal,
1013
+ color: "default",
1014
+ version: "text",
1015
+ size: "small",
1016
+ min: 1,
1017
+ max: 100,
1018
+ value: quality,
1019
+ increment: false,
1020
+ decrement: false,
1021
+ onChange: valueNew_21 => onChangeQuality(+valueNew_21),
1022
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-option-input'], classes.optionInput]),
1023
+ style: {
1024
+ width: 34
1025
+ }
1026
+ })]
1027
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
1028
+ gap: 1,
1029
+ direction: "row",
1030
+ align: "center",
1031
+ justify: "center",
1032
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-action'], classes.action]),
1033
+ children: [(0, _utils.is)('function', renderSave) ? renderSave(onSave) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
1034
+ name: l('Save')
1035
+ }, TooltipProps), {}, {
1036
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
1037
+ version: "outlined",
1038
+ onClick: onSave
1039
+ }, IconButtonProps), {}, {
1040
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconSave, {})
1041
+ }))
1042
+ })), (0, _utils.is)('function', renderCancel) ? renderCancel(onSave) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
1043
+ name: l('Cancel')
1044
+ }, TooltipProps), {}, {
1045
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
1046
+ version: "outlined",
1047
+ onClick: onCancel
1048
+ }, IconButtonProps), {}, {
1049
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconCancel, {})
1050
+ }))
1051
+ }))]
1052
+ })]
1053
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, {
1054
+ color: "inherit",
1055
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-divider'], classes.divider])
1056
+ })]
1057
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
1058
+ direction: "column",
1059
+ align: "center",
1060
+ justify: "center",
1061
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-options'], classes.options]),
1062
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
1063
+ gap: 1,
1064
+ direction: "row",
1065
+ justify: "flex-start",
1066
+ children: [options.map((item_4, index_0) => (0, _utils.is)('function', renderOption) ? renderOption(item_4, open && openOption === item_4.value, openOption) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
1067
+ name: item_4.label
1068
+ }, TooltipProps), {}, {
1069
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
1070
+ version: "outlined",
1071
+ selected: open && openedOption === item_4.value,
1072
+ onClick: () => openOption(item_4.value)
1073
+ }, IconButtonProps), {}, {
1074
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(item_4.Icon, {})
1075
+ }))
1076
+ }), index_0)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
1077
+ gap: 0,
1078
+ direction: "row",
1079
+ align: "center",
1080
+ children: [downloadOption && (0, _utils.is)('function', renderDownload) ? renderDownload(onDownload) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
1081
+ name: l('Download')
1082
+ }, TooltipProps), {}, {
1083
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
1084
+ version: "text",
1085
+ onClick: onDownload
1086
+ }, IconButtonProps), {}, {
1087
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconDownload, {})
1088
+ }))
1089
+ })), (0, _utils.is)('function', renderOptionClear) ? renderOptionClear(onReset) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
1090
+ name: l('Reset')
1091
+ }, TooltipProps), {}, {
1092
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread({
1093
+ version: "text",
1094
+ onClick: onReset
1095
+ }, IconButtonProps), {}, {
1096
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconClear, {})
1097
+ }))
1098
+ }))]
1099
+ })]
1100
+ })
1101
+ })]
1102
+ }), children, meta && value && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
1103
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, {
1104
+ color: "inherit",
1105
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-divider'], classes.divider])
1106
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
1107
+ gap: 1,
1108
+ direction: "row",
1109
+ align: "center",
1110
+ justify: "center",
1111
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('ImageEdit', theme) && ['onesy-ImageEdit-meta'], classes.meta]),
1112
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Type, _objectSpread(_objectSpread({}, MetaTypeProps), {}, {
1113
+ children: [l('Dimensions'), ": ", (_ref = !open ? value : valueCopy) === null || _ref === void 0 ? void 0 : _ref.width, "x", (_ref2 = !open ? value : valueCopy) === null || _ref2 === void 0 ? void 0 : _ref2.height]
1114
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, _objectSpread(_objectSpread({}, MetaTypeProps), {}, {
1115
+ children: "\xB7"
1116
+ })), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Type, _objectSpread(_objectSpread({}, MetaTypeProps), {}, {
1117
+ children: [l('Size'), ": ", size]
1118
+ }))]
1119
+ })]
1120
+ })]
1121
+ }));
1122
+ };
1058
1123
  ImageEdit.displayName = 'onesy-ImageEdit';
1059
1124
  var _default = exports.default = ImageEdit;