@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
package/Share/Share.js CHANGED
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
10
  var _compilerRuntime = require("react/compiler-runtime");
12
11
  var _react = _interopRequireDefault(require("react"));
13
12
  var _utils = require("@onesy/utils");
@@ -27,14 +26,15 @@ var _BottomSheet = _interopRequireDefault(require("../BottomSheet"));
27
26
  var _List = _interopRequireDefault(require("../List"));
28
27
  var _useMediaQuery = _interopRequireDefault(require("../useMediaQuery"));
29
28
  var _utils2 = require("../utils");
29
+ var _jsxRuntime = require("react/jsx-runtime");
30
30
  const _excluded = ["version", "position", "size", "name", "description", "url", "include", "exclude", "visible", "order", "openIn", "start", "end", "startMore", "itemProps", "endMore", "render", "onOpen", "MenuItemProps", "IconFacebook", "IconX", "IconLinkedin", "IconPinterest", "IconReddit", "IconWhatsapp", "IconViber", "IconCopy", "IconEmail", "IconPrint", "IconMore", "Component", "className"];
31
31
  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; }
32
32
  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; }
33
- const IconCustomFacebook = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
34
- const $ = (0, _compilerRuntime.c)(4);
33
+ const IconCustomFacebook = props => {
34
+ const $ = (0, _compilerRuntime.c)(3);
35
35
  let t0;
36
36
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
37
- t0 = /*#__PURE__*/_react.default.createElement("path", {
37
+ t0 = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
38
38
  d: "m374.244 285.825 14.105-91.961h-88.233v-59.677c0-25.159 12.325-49.682 51.845-49.682h40.116V6.214S355.67 0 320.864 0c-72.67 0-120.165 44.042-120.165 123.775v70.089h-80.777v91.961h80.777v222.31A320.565 320.565 0 0 0 250.408 512c16.911 0 33.511-1.324 49.708-3.865v-222.31h74.128Z"
39
39
  });
40
40
  $[0] = t0;
@@ -42,25 +42,25 @@ const IconCustomFacebook = /*#__PURE__*/_react.default.forwardRef((props, ref) =
42
42
  t0 = $[0];
43
43
  }
44
44
  let t1;
45
- if ($[1] !== props || $[2] !== ref) {
46
- t1 = /*#__PURE__*/_react.default.createElement(_Icon.default, (0, _extends2.default)({
47
- ref: ref,
45
+ if ($[1] !== props) {
46
+ t1 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, _objectSpread(_objectSpread({
48
47
  name: "Facebook",
49
48
  viewBox: "0 0 512 512"
50
- }, props), t0);
49
+ }, props), {}, {
50
+ children: t0
51
+ }));
51
52
  $[1] = props;
52
- $[2] = ref;
53
- $[3] = t1;
53
+ $[2] = t1;
54
54
  } else {
55
- t1 = $[3];
55
+ t1 = $[2];
56
56
  }
57
57
  return t1;
58
- });
59
- const IconCustomX = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
60
- const $ = (0, _compilerRuntime.c)(4);
58
+ };
59
+ const IconCustomX = props => {
60
+ const $ = (0, _compilerRuntime.c)(3);
61
61
  let t0;
62
62
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
63
- t0 = /*#__PURE__*/_react.default.createElement("path", {
63
+ t0 = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
64
64
  d: "M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"
65
65
  });
66
66
  $[0] = t0;
@@ -68,25 +68,25 @@ const IconCustomX = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
68
68
  t0 = $[0];
69
69
  }
70
70
  let t1;
71
- if ($[1] !== props || $[2] !== ref) {
72
- t1 = /*#__PURE__*/_react.default.createElement(_Icon.default, (0, _extends2.default)({
73
- ref: ref,
71
+ if ($[1] !== props) {
72
+ t1 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, _objectSpread(_objectSpread({
74
73
  name: "X",
75
74
  viewBox: "0 0 1200 1227"
76
- }, props), t0);
75
+ }, props), {}, {
76
+ children: t0
77
+ }));
77
78
  $[1] = props;
78
- $[2] = ref;
79
- $[3] = t1;
79
+ $[2] = t1;
80
80
  } else {
81
- t1 = $[3];
81
+ t1 = $[2];
82
82
  }
83
83
  return t1;
84
- });
85
- const IconCustomLinkedin = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
86
- const $ = (0, _compilerRuntime.c)(4);
84
+ };
85
+ const IconCustomLinkedin = props => {
86
+ const $ = (0, _compilerRuntime.c)(3);
87
87
  let t0;
88
88
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
89
- t0 = /*#__PURE__*/_react.default.createElement("path", {
89
+ t0 = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
90
90
  d: "M51.326 185.85h90.011v270.872H51.326V185.85zM96.934 55.278C66.127 55.278 46 75.503 46 102.049c0 26 19.538 46.813 49.756 46.813h.574c31.396 0 50.948-20.814 50.948-46.813-.589-26.546-19.551-46.771-50.344-46.771zm265.405 124.209c-47.779 0-69.184 26.28-81.125 44.71V185.85h-90.038c1.192 25.411 0 270.872 0 270.872h90.038V305.448c0-8.102.589-16.174 2.958-21.978 6.519-16.174 21.333-32.923 46.182-32.923 32.602 0 45.622 24.851 45.622 61.248v144.926H466V301.398c0-83.199-44.402-121.911-103.661-121.911z"
91
91
  });
92
92
  $[0] = t0;
@@ -94,25 +94,25 @@ const IconCustomLinkedin = /*#__PURE__*/_react.default.forwardRef((props, ref) =
94
94
  t0 = $[0];
95
95
  }
96
96
  let t1;
97
- if ($[1] !== props || $[2] !== ref) {
98
- t1 = /*#__PURE__*/_react.default.createElement(_Icon.default, (0, _extends2.default)({
99
- ref: ref,
97
+ if ($[1] !== props) {
98
+ t1 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, _objectSpread(_objectSpread({
100
99
  name: "Linkedin",
101
100
  viewBox: "0 0 512 512"
102
- }, props), t0);
101
+ }, props), {}, {
102
+ children: t0
103
+ }));
103
104
  $[1] = props;
104
- $[2] = ref;
105
- $[3] = t1;
105
+ $[2] = t1;
106
106
  } else {
107
- t1 = $[3];
107
+ t1 = $[2];
108
108
  }
109
109
  return t1;
110
- });
111
- const IconCustomPinterest = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
112
- const $ = (0, _compilerRuntime.c)(4);
110
+ };
111
+ const IconCustomPinterest = props => {
112
+ const $ = (0, _compilerRuntime.c)(3);
113
113
  let t0;
114
114
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
115
- t0 = /*#__PURE__*/_react.default.createElement("path", {
115
+ t0 = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
116
116
  d: "M30.374 4.622c-13.586 0-20.437 9.74-20.437 17.864 0 4.918 1.862 9.293 5.855 10.922.655.27 1.242.01 1.432-.715.132-.5.445-1.766.584-2.295.191-.717.117-.967-.412-1.594-1.151-1.357-1.888-3.115-1.888-5.607 0-7.226 5.407-13.695 14.079-13.695 7.679 0 11.898 4.692 11.898 10.957 0 8.246-3.649 15.205-9.065 15.205-2.992 0-5.23-2.473-4.514-5.508.859-3.623 2.524-7.531 2.524-10.148 0-2.34-1.257-4.292-3.856-4.292-3.058 0-5.515 3.164-5.515 7.401 0 2.699.912 4.525.912 4.525l-3.678 15.582c-1.092 4.625-.164 10.293-.085 10.865.046.34.482.422.68.166.281-.369 3.925-4.865 5.162-9.359.351-1.271 2.011-7.859 2.011-7.859.994 1.896 3.898 3.562 6.986 3.562 9.191 0 15.428-8.379 15.428-19.595.001-8.483-7.183-16.382-18.101-16.382z"
117
117
  });
118
118
  $[0] = t0;
@@ -120,25 +120,25 @@ const IconCustomPinterest = /*#__PURE__*/_react.default.forwardRef((props, ref)
120
120
  t0 = $[0];
121
121
  }
122
122
  let t1;
123
- if ($[1] !== props || $[2] !== ref) {
124
- t1 = /*#__PURE__*/_react.default.createElement(_Icon.default, (0, _extends2.default)({
125
- ref: ref,
123
+ if ($[1] !== props) {
124
+ t1 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, _objectSpread(_objectSpread({
126
125
  name: "Pinterest",
127
126
  viewBox: "0 0 56.693 56.693"
128
- }, props), t0);
127
+ }, props), {}, {
128
+ children: t0
129
+ }));
129
130
  $[1] = props;
130
- $[2] = ref;
131
- $[3] = t1;
131
+ $[2] = t1;
132
132
  } else {
133
- t1 = $[3];
133
+ t1 = $[2];
134
134
  }
135
135
  return t1;
136
- });
137
- const IconCustomReddit = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
138
- const $ = (0, _compilerRuntime.c)(4);
136
+ };
137
+ const IconCustomReddit = props => {
138
+ const $ = (0, _compilerRuntime.c)(3);
139
139
  let t0;
140
140
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
141
- t0 = /*#__PURE__*/_react.default.createElement("path", {
141
+ t0 = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
142
142
  d: "M53.048 28.446a5.696 5.696 0 0 0-5.69-5.69 5.647 5.647 0 0 0-3.75 1.419c-3.763-2.408-8.784-3.925-14.322-4.089l3.389-11.59 8.32 1.546c0 .068-.014.132-.01.2a3.6 3.6 0 0 0 3.774 3.408 3.6 3.6 0 0 0 3.407-3.774 3.6 3.6 0 0 0-3.774-3.408 3.587 3.587 0 0 0-2.945 1.84l-.003-.001-10.026-1.863-3.993 13.64c-5.552.147-10.589 1.656-14.368 4.059a5.647 5.647 0 0 0-3.715-1.387 5.697 5.697 0 0 0-5.69 5.69c0 1.94.999 3.73 2.617 4.774a10.124 10.124 0 0 0-.155 1.73c0 8.212 9.956 14.894 22.194 14.894S50.5 43.162 50.5 34.949c0-.568-.052-1.128-.145-1.68a5.69 5.69 0 0 0 2.692-4.823zM17.76 32.318a3.496 3.496 0 1 1 6.993.002 3.496 3.496 0 0 1-6.993-.002zm18.79 9.458c-.104.108-2.613 2.661-8.283 2.661-5.7 0-7.98-2.588-8.073-2.698a.894.894 0 0 1 1.352-1.168c.052.056 1.954 2.079 6.72 2.079 4.85 0 6.976-2.095 6.998-2.115a.895.895 0 0 1 1.286 1.24zm-.695-5.961a3.496 3.496 0 1 1-.003-6.992 3.496 3.496 0 0 1 .003 6.992z"
143
143
  });
144
144
  $[0] = t0;
@@ -146,29 +146,29 @@ const IconCustomReddit = /*#__PURE__*/_react.default.forwardRef((props, ref) =>
146
146
  t0 = $[0];
147
147
  }
148
148
  let t1;
149
- if ($[1] !== props || $[2] !== ref) {
150
- t1 = /*#__PURE__*/_react.default.createElement(_Icon.default, (0, _extends2.default)({
151
- ref: ref,
149
+ if ($[1] !== props) {
150
+ t1 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, _objectSpread(_objectSpread({
152
151
  name: "Reddit",
153
152
  viewBox: "0 0 56.7 56.7"
154
- }, props), t0);
153
+ }, props), {}, {
154
+ children: t0
155
+ }));
155
156
  $[1] = props;
156
- $[2] = ref;
157
- $[3] = t1;
157
+ $[2] = t1;
158
158
  } else {
159
- t1 = $[3];
159
+ t1 = $[2];
160
160
  }
161
161
  return t1;
162
- });
163
- const IconCustomWhatsapp = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
164
- const $ = (0, _compilerRuntime.c)(5);
162
+ };
163
+ const IconCustomWhatsapp = props => {
164
+ const $ = (0, _compilerRuntime.c)(4);
165
165
  let t0;
166
166
  let t1;
167
167
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
168
- t0 = /*#__PURE__*/_react.default.createElement("path", {
168
+ t0 = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
169
169
  d: "M46.38 10.714C41.73 6.057 35.544 3.492 28.954 3.489c-13.579 0-24.63 11.05-24.636 24.633a24.589 24.589 0 0 0 3.289 12.316L4.112 53.204l13.06-3.426a24.614 24.614 0 0 0 11.772 2.999h.01c13.577 0 24.63-11.052 24.635-24.635.002-6.582-2.558-12.772-7.209-17.428zM28.954 48.616h-.009a20.445 20.445 0 0 1-10.421-2.854l-.748-.444-7.75 2.033 2.07-7.555-.488-.775a20.427 20.427 0 0 1-3.13-10.897c.004-11.29 9.19-20.474 20.484-20.474a20.336 20.336 0 0 1 14.476 6.005 20.352 20.352 0 0 1 5.991 14.485c-.004 11.29-9.19 20.476-20.475 20.476z"
170
170
  });
171
- t1 = /*#__PURE__*/_react.default.createElement("path", {
171
+ t1 = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
172
172
  d: "M40.185 33.281c-.615-.308-3.642-1.797-4.206-2.003-.564-.205-.975-.308-1.385.308-.41.617-1.59 2.003-1.949 2.414-.359.41-.718.462-1.334.154-.615-.308-2.599-.958-4.95-3.055-1.83-1.632-3.065-3.648-3.424-4.264-.36-.617-.038-.95.27-1.257.277-.276.615-.719.923-1.078.308-.36.41-.616.616-1.027.205-.41.102-.77-.052-1.078-.153-.308-1.384-3.338-1.897-4.57-.5-1.2-1.008-1.038-1.385-1.057-.359-.018-.77-.022-1.18-.022s-1.077.154-1.642.77c-.564.616-2.154 2.106-2.154 5.135 0 3.03 2.206 5.957 2.513 6.368.308.41 4.341 6.628 10.516 9.294a35.341 35.341 0 0 0 3.509 1.297c1.474.469 2.816.402 3.877.244 1.183-.177 3.642-1.49 4.155-2.927.513-1.438.513-2.67.359-2.927-.154-.257-.564-.41-1.18-.719z"
173
173
  });
174
174
  $[0] = t0;
@@ -178,25 +178,25 @@ const IconCustomWhatsapp = /*#__PURE__*/_react.default.forwardRef((props, ref) =
178
178
  t1 = $[1];
179
179
  }
180
180
  let t2;
181
- if ($[2] !== props || $[3] !== ref) {
182
- t2 = /*#__PURE__*/_react.default.createElement(_Icon.default, (0, _extends2.default)({
183
- ref: ref,
181
+ if ($[2] !== props) {
182
+ t2 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Icon.default, _objectSpread(_objectSpread({
184
183
  name: "Whatsapp",
185
184
  viewBox: "0 0 56.693 56.693"
186
- }, props), t0, t1);
185
+ }, props), {}, {
186
+ children: [t0, t1]
187
+ }));
187
188
  $[2] = props;
188
- $[3] = ref;
189
- $[4] = t2;
189
+ $[3] = t2;
190
190
  } else {
191
- t2 = $[4];
191
+ t2 = $[3];
192
192
  }
193
193
  return t2;
194
- });
195
- const IconCustomViber = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
196
- const $ = (0, _compilerRuntime.c)(4);
194
+ };
195
+ const IconCustomViber = props => {
196
+ const $ = (0, _compilerRuntime.c)(3);
197
197
  let t0;
198
198
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
199
- t0 = /*#__PURE__*/_react.default.createElement("path", {
199
+ t0 = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
200
200
  d: "M57.4 4h-15C21.2 4 3.9 21.3 3.9 42.5c0 14.1 7.6 27 20 33.8v15.2c0 2.5 2 4.5 4.5 4.5 1.2 0 2.4-.5 3.2-1.3L45.3 81h12.1c21.2 0 38.5-17.3 38.5-38.5S78.7 4 57.4 4zm-9.1 16.7c.2-.1.2-.2.9-.2h.6c.6 0 1.5.1 2 .1 2.4.3 4 .6 6.3 1.7 2.2 1 3.6 2 5.4 3.8 1.7 1.7 2.7 3 3.7 5 1.4 2.8 2.2 6.1 2.4 9.8 0 1.3 0 1.4-.2 1.6-.2.2-.4.3-.7.3-.3 0-.5-.2-.7-.4-.1-.2-.1-.3-.2-1.3-.1-1.6-.2-2.6-.4-3.8-.9-4.9-3.3-8.8-7.1-11.6-3.1-2.3-5.9-3.2-10.3-3.5-1.4-.1-1.5-.1-1.7-.3-.2-.1-.3-.4-.3-.6.1-.2.1-.4.3-.6zm7.6 8.9c-1.5-.9-3.9-1.6-5.9-1.7-.6-.1-.9-.1-1.1-.4-.3-.3-.3-.7-.1-1 .1-.2.4-.5 2.3-.2 4.4.6 7.8 2.6 10 5.8 1.2 1.8 2 3.9 2.3 6.2.1.7.1 2.2 0 2.5 0 .1-.3.4-.4.5-.2.1-.6.1-.8-.1-.2-.1-.5-.2-.5-1.5 0-2-.5-4.1-1.4-5.7-1.1-1.8-2.6-3.3-4.4-4.4zm1.3 10.3c-.2.2-.8.2-1.1 0-.2-.2-.3-.3-.3-.9-.1-1.1-.3-1.8-.6-2.5-.7-1.5-2-2.3-4.2-2.6-.9-.1-1-.2-1.2-.4-.2-.2-.2-.4-.2-.7.1-.3.2-.5.4-.6.2-.1.2-.1.4-.1h.4c.3 0 .9.1 1.2.1 1.4.3 2.4.8 3.3 1.6 1.2 1.1 1.8 2.3 2.1 4.2.2 1.5.1 1.7-.2 1.9zm13.6 19c-.3.7-.9 1.6-1.3 2.2-.8 1.1-1.8 2.2-2.7 2.9-.2.2-.4.3-.5.4-.2.1-.3.2-.4.3-.8.5-1.4.9-2.1 1.1-.5.2-1 .2-1.6.3h-.5c-.9 0-1.5-.2-2.7-.7-1-.4-2.1-.9-3.2-1.4l-.3-.1-3-1.5c-.1-.1-.3-.1-.4-.2-.9-.5-1.9-1.1-2.8-1.6l-.3-.1-.1-.1C42.7 56.6 37.5 51.9 33 46c-.4-.6-.8-1.1-1.2-1.7-.2-.3-.4-.5-.6-.8l-.6-.8c-.3-.5-.7-1-1-1.5l-.1-.1-.9-1.5-.1-.1c-1.5-2.5-2.7-5.1-3.7-7.7-1-2.8-1.3-4.4-.2-6.4.5-.8 2.2-2.4 3.4-3.3 2.1-1.5 3-2.1 3.9-2.2.6-.1 1.7-.1 2.4.2.3.1.8.4 1.1.5 1.7 1.1 5.7 6.3 7 8.7.9 1.7 1.1 2.9.8 4-.3 1.1-.9 1.7-2.7 3.2-.4.3-.8.6-1.1.9l-.2.2-.8-.6.5.5.2.2c-.1.2-.3.7-.3 1.1 0 .9.7 2.9 1.7 4.6.8 1.2 2.2 2.8 3.6 4.1 1.6 1.5 3.1 2.5 4.7 3.2 1.8.9 3 1.2 3.6.9.1-.1.2-.1.3-.2.1-.1.5-.5 1.2-1.4.9-1.1 1.4-1.7 2.1-2 .2-.1.4-.2.7-.3 1.3-.4 2.6-.3 4 .3.9.5 2.7 1.5 3.9 2.4 1.5 1 4.9 3.7 5.4 4.3.6.7.9 1.5.9 2.4.3.4.1 1.1-.1 1.8z"
201
201
  });
202
202
  $[0] = t0;
@@ -204,20 +204,20 @@ const IconCustomViber = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
204
204
  t0 = $[0];
205
205
  }
206
206
  let t1;
207
- if ($[1] !== props || $[2] !== ref) {
208
- t1 = /*#__PURE__*/_react.default.createElement(_Icon.default, (0, _extends2.default)({
209
- ref: ref,
207
+ if ($[1] !== props) {
208
+ t1 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, _objectSpread(_objectSpread({
210
209
  name: "Viber",
211
210
  viewBox: "0 0 100 100"
212
- }, props), t0);
211
+ }, props), {}, {
212
+ children: t0
213
+ }));
213
214
  $[1] = props;
214
- $[2] = ref;
215
- $[3] = t1;
215
+ $[2] = t1;
216
216
  } else {
217
- t1 = $[3];
217
+ t1 = $[2];
218
218
  }
219
219
  return t1;
220
- });
220
+ };
221
221
  const useStyle = (0, _styleReact.style)(theme => ({
222
222
  root: {},
223
223
  version_fixed: {
@@ -291,7 +291,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
291
291
  }), {
292
292
  name: 'onesy-Share'
293
293
  });
294
- const Share = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
294
+ const Share = props_ => {
295
295
  var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _theme$elements3, _theme$elements4, _theme$elements5, _theme$elements6, _theme$elements7, _theme$elements8;
296
296
  const theme = (0, _styleReact.useOnesyTheme)();
297
297
  const l = theme.l;
@@ -485,92 +485,106 @@ const Share = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
485
485
  if (['top', 'bottom'].includes(position)) other.direction = other.direction || 'row';
486
486
  const menuItemsMoreOptions = moreOptions.map(item_5 => ({
487
487
  value: item_5,
488
- start: /*#__PURE__*/_react.default.createElement(item_5.Icon, {
488
+ start: /*#__PURE__*/(0, _jsxRuntime.jsx)(item_5.Icon, {
489
489
  color: item_5.color,
490
490
  size: "small"
491
491
  }),
492
492
  startAlign: 'center',
493
- primary: /*#__PURE__*/_react.default.createElement(Type, {
494
- version: "b3"
495
- }, item_5.name)
496
- })).map((item_6, index_0) => /*#__PURE__*/_react.default.createElement(MenuItem, (0, _extends2.default)({
497
- key: index_0,
493
+ primary: /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
494
+ version: "b3",
495
+ children: item_5.name
496
+ })
497
+ })).map((item_6, index_0) => /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuItem, _objectSpread(_objectSpread(_objectSpread({
498
498
  onClick: event_0 => onClick(item_6.value, event_0),
499
499
  noBackground: true,
500
500
  menuCloseOnClick: true,
501
501
  button: true
502
- }, item_6, itemProps === null || itemProps === void 0 ? void 0 : itemProps(item_6, index_0), MenuItemProps)));
502
+ }, item_6), itemProps === null || itemProps === void 0 ? void 0 : itemProps(item_6, index_0)), MenuItemProps), index_0));
503
503
  if (version === 'menu-items') return menuItemsMoreOptions;
504
504
  const AppendProps = {};
505
505
  if (position === 'start') AppendProps.position = 'right';
506
506
  if (position === 'end') AppendProps.position = 'left';
507
507
  if (position === 'top') AppendProps.position = 'bottom';
508
508
  if (position === 'bottom') AppendProps.position = 'top';
509
- return /*#__PURE__*/_react.default.createElement(Line, (0, _extends2.default)({
510
- ref: ref,
509
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, _objectSpread(_objectSpread({
511
510
  gap: 0,
512
511
  className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Share', theme) && [`onesy-Share-root`, `onesy-Share-version-${version}`, `onesy-Share-size-${size}`], classes.root, classes[`version_${version}`], ['fixed', 'absolute'].includes(version) && classes[`position_${position}`]])
513
- }, other), [...(start || []), ...visibleOptions, ...(end || [])].map((item_7, index_1) => {
514
- const itemProps_ = {
515
- onClick: event_1 => onClick(item_7, event_1)
516
- };
517
- if ((0, _utils.is)('function', render)) return render(item_7.name, itemProps_);
518
- return /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
519
- label: item_7.name === l('Copy') && copied ? l('Copied!') : item_7.title || `${l('Share to')} ${item_7.name}`
520
- }, AppendProps), /*#__PURE__*/_react.default.createElement(Line, (0, _extends2.default)({
521
- key: index_1,
522
- onClick: event_2 => onClick(item_7, event_2)
523
- }, itemProps_, {
524
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Share', theme) && ['onesy-Share-item', 'onesy-Share-visible'], itemProps_ === null || itemProps_ === void 0 ? void 0 : itemProps_.className, classes.item, classes[`item_size_${size}`]]),
525
- style: _objectSpread({
526
- color: theme.methods.palette.color.text(item_7.color),
527
- backgroundColor: item_7.color
528
- }, itemProps_ === null || itemProps_ === void 0 ? void 0 : itemProps_.style)
529
- }), /*#__PURE__*/_react.default.createElement(Interaction, null), /*#__PURE__*/_react.default.createElement(item_7.Icon, {
530
- size: "regular"
531
- })));
532
- }), !!(moreOptions !== null && moreOptions !== void 0 && moreOptions.length) && !mobile && /*#__PURE__*/_react.default.createElement(Menu, (0, _extends2.default)({
533
- menuItems: [...(startMore || []), ...menuItemsMoreOptions, ...(endMore || [])],
534
- alignment: "start"
535
- }, AppendProps, {
536
- ListProps: {
537
- size: 'small',
538
- style: {
539
- maxHeight: 240,
540
- overflowY: 'auto'
541
- }
542
- }
543
- }), /*#__PURE__*/_react.default.createElement(Line, null, /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
544
- name: optionMore.title || l('More')
545
- }, AppendProps), /*#__PURE__*/_react.default.createElement(Line, {
546
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Share', theme) && ['onesy-Share-item', 'onesy-Share-visible'], classes.item, classes[`item_size_${size}`]]),
547
- style: {
548
- color: theme.methods.palette.color.text(optionMore.color),
549
- backgroundColor: optionMore.color
550
- }
551
- }, /*#__PURE__*/_react.default.createElement(Interaction, null), /*#__PURE__*/_react.default.createElement(optionMore.Icon, {
552
- size: "regular"
553
- }))))), !!(moreOptions !== null && moreOptions !== void 0 && moreOptions.length) && mobile && /*#__PURE__*/_react.default.createElement(Tooltip, (0, _extends2.default)({
554
- name: optionMore.title || l('More')
555
- }, AppendProps), /*#__PURE__*/_react.default.createElement(Line, {
556
- onClick: onOpenBottomSheet,
557
- className: (0, _styleReact.classNames)(['onesy-Share-item', 'onesy-Share-visible', classes.item, classes[`item_size_${size}`]]),
558
- style: {
559
- color: theme.methods.palette.color.text(optionMore.color),
560
- backgroundColor: optionMore.color
561
- }
562
- }, /*#__PURE__*/_react.default.createElement(Interaction, null), /*#__PURE__*/_react.default.createElement(optionMore.Icon, {
563
- size: "regular"
564
- }))), /*#__PURE__*/_react.default.createElement(BottomSheet, {
565
- open: open,
566
- onClose: onCloseBottomSheet
567
- }, /*#__PURE__*/_react.default.createElement(List, {
568
- menu: true,
569
- noBackground: true,
570
- SurfaceProps: {
571
- elevation: false
572
- }
573
- }, menuItemsMoreOptions)));
574
- });
512
+ }, other), {}, {
513
+ children: [[...(start || []), ...visibleOptions, ...(end || [])].map((item_7, index_1) => {
514
+ const itemProps_ = {
515
+ onClick: event_1 => onClick(item_7, event_1)
516
+ };
517
+ if ((0, _utils.is)('function', render)) return render(item_7.name, itemProps_);
518
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
519
+ label: item_7.name === l('Copy') && copied ? l('Copied!') : item_7.title || `${l('Share to')} ${item_7.name}`
520
+ }, AppendProps), {}, {
521
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, _objectSpread(_objectSpread({
522
+ onClick: event_2 => onClick(item_7, event_2)
523
+ }, itemProps_), {}, {
524
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Share', theme) && ['onesy-Share-item', 'onesy-Share-visible'], itemProps_ === null || itemProps_ === void 0 ? void 0 : itemProps_.className, classes.item, classes[`item_size_${size}`]]),
525
+ style: _objectSpread({
526
+ color: theme.methods.palette.color.text(item_7.color),
527
+ backgroundColor: item_7.color
528
+ }, itemProps_ === null || itemProps_ === void 0 ? void 0 : itemProps_.style),
529
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Interaction, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(item_7.Icon, {
530
+ size: "regular"
531
+ })]
532
+ }), index_1)
533
+ }));
534
+ }), !!(moreOptions !== null && moreOptions !== void 0 && moreOptions.length) && !mobile && /*#__PURE__*/(0, _jsxRuntime.jsx)(Menu, _objectSpread(_objectSpread({
535
+ menuItems: [...(startMore || []), ...menuItemsMoreOptions, ...(endMore || [])],
536
+ alignment: "start"
537
+ }, AppendProps), {}, {
538
+ ListProps: {
539
+ size: 'small',
540
+ style: {
541
+ maxHeight: 240,
542
+ overflowY: 'auto'
543
+ }
544
+ },
545
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
546
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
547
+ name: optionMore.title || l('More')
548
+ }, AppendProps), {}, {
549
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
550
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Share', theme) && ['onesy-Share-item', 'onesy-Share-visible'], classes.item, classes[`item_size_${size}`]]),
551
+ style: {
552
+ color: theme.methods.palette.color.text(optionMore.color),
553
+ backgroundColor: optionMore.color
554
+ },
555
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Interaction, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(optionMore.Icon, {
556
+ size: "regular"
557
+ })]
558
+ })
559
+ }))
560
+ })
561
+ })), !!(moreOptions !== null && moreOptions !== void 0 && moreOptions.length) && mobile && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
562
+ name: optionMore.title || l('More')
563
+ }, AppendProps), {}, {
564
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
565
+ onClick: onOpenBottomSheet,
566
+ className: (0, _styleReact.classNames)(['onesy-Share-item', 'onesy-Share-visible', classes.item, classes[`item_size_${size}`]]),
567
+ style: {
568
+ color: theme.methods.palette.color.text(optionMore.color),
569
+ backgroundColor: optionMore.color
570
+ },
571
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Interaction, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(optionMore.Icon, {
572
+ size: "regular"
573
+ })]
574
+ })
575
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(BottomSheet, {
576
+ open: open,
577
+ onClose: onCloseBottomSheet,
578
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(List, {
579
+ menu: true,
580
+ noBackground: true,
581
+ SurfaceProps: {
582
+ elevation: false
583
+ },
584
+ children: menuItemsMoreOptions
585
+ })
586
+ })]
587
+ }));
588
+ };
575
589
  Share.displayName = 'onesy-Share';
576
590
  var _default = exports.default = Share;
package/Slide/Slide.js CHANGED
@@ -5,21 +5,22 @@ 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"));
12
11
  var _utils = require("@onesy/utils");
13
12
  var _styleReact = require("@onesy/style-react");
14
13
  var _ = require("..");
15
- const _excluded = ["in", "prefix", "run", "append", "add", "enter", "exit", "enterOnAdd", "exitOnAdd", "noAbruption", "removeOnExited", "duration", "onTransition", "onAppended", "onAdd", "onAdding", "onAdded", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "onRemoved", "root", "min", "direction", "timing_function", "addTransition", "delay", "className", "style", "children"];
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ const _excluded = ["ref", "in", "prefix", "run", "append", "add", "enter", "exit", "enterOnAdd", "exitOnAdd", "noAbruption", "removeOnExited", "duration", "onTransition", "onAppended", "onAdd", "onAdding", "onAdded", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "onRemoved", "root", "min", "direction", "timing_function", "addTransition", "delay", "className", "style", "children"];
16
16
  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; }
17
17
  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; }
18
- const Slide = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
18
+ const Slide = props_ => {
19
19
  var _theme$ui, _theme$ui2;
20
20
  const theme = (0, _styleReact.useOnesyTheme)();
21
21
  const props = _objectSpread(_objectSpread(_objectSpread({}, theme === null || theme === void 0 || (_theme$ui = theme.ui) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.elements) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.all) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.props) === null || _theme$ui === void 0 ? void 0 : _theme$ui.default), theme === null || theme === void 0 || (_theme$ui2 = theme.ui) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.elements) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.onesySlide) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
22
22
  const {
23
+ ref,
23
24
  in: inProp,
24
25
  prefix,
25
26
  run,
@@ -142,7 +143,7 @@ const Slide = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
142
143
  return `${((0, _utils.is)('simple', duration) ? duration : duration[status_0]) || properties[property]}ms`;
143
144
  };
144
145
  const timingFunction = status_1 => ((0, _utils.is)('simple', timing_function) ? timing_function : timing_function[status_1]) || theme.transitions.timing_function.standard;
145
- return /*#__PURE__*/_react.default.createElement(_.Transition, (0, _extends2.default)({
146
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Transition, _objectSpread(_objectSpread({
146
147
  append: true,
147
148
  removeOnExited: true,
148
149
  onAppended: element => {
@@ -162,27 +163,29 @@ const Slide = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
162
163
  onExit: element_1 => {
163
164
  refs.rect.current = element_1 === null || element_1 === void 0 ? void 0 : element_1.getBoundingClientRect();
164
165
  }
165
- }, props), (status_2, ref_) => {
166
- var _children$props, _props;
167
- return /*#__PURE__*/_react.default.cloneElement(children, _objectSpread(_objectSpread({}, other), {}, {
168
- ref: item => {
169
- refs.root.current = item;
170
- if (ref) {
171
- if ((0, _utils.is)('function', ref)) ref(item);else ref.current = item;
172
- }
173
- if (ref_) {
174
- if ((0, _utils.is)('function', ref_)) ref_(item);else ref_.current = item;
175
- }
176
- if (children.ref) {
177
- if ((0, _utils.is)('function', children.ref)) children.ref(item);else children.ref.current = item;
178
- }
179
- },
180
- className: (0, _styleReact.classNames)([className, children === null || children === void 0 || (_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.className]),
181
- style: _objectSpread(_objectSpread(_objectSpread({
182
- transition: `transform ${duration(status_2)} ${timingFunction(status_2)} ${addTransition ? `, ${addTransition}` : ''}`
183
- }, styles(status_2)), children === null || children === void 0 || (_props = children.props) === null || _props === void 0 ? void 0 : _props.style), style)
184
- }));
185
- });
186
- });
166
+ }, props), {}, {
167
+ children: (status_2, ref_) => {
168
+ var _children$props, _props;
169
+ return /*#__PURE__*/_react.default.cloneElement(children, _objectSpread(_objectSpread({}, other), {}, {
170
+ ref: item => {
171
+ refs.root.current = item;
172
+ if (ref) {
173
+ if ((0, _utils.is)('function', ref)) ref(item);else ref.current = item;
174
+ }
175
+ if (ref_) {
176
+ if ((0, _utils.is)('function', ref_)) ref_(item);else ref_.current = item;
177
+ }
178
+ if (children.ref) {
179
+ if ((0, _utils.is)('function', children.ref)) children.ref(item);else children.ref.current = item;
180
+ }
181
+ },
182
+ className: (0, _styleReact.classNames)([className, children === null || children === void 0 || (_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.className]),
183
+ style: _objectSpread(_objectSpread(_objectSpread({
184
+ transition: `transform ${duration(status_2)} ${timingFunction(status_2)} ${addTransition ? `, ${addTransition}` : ''}`
185
+ }, styles(status_2)), children === null || children === void 0 || (_props = children.props) === null || _props === void 0 ? void 0 : _props.style), style)
186
+ }));
187
+ }
188
+ }));
189
+ };
187
190
  Slide.displayName = 'onesy-Slide';
188
191
  var _default = exports.default = Slide;