@onesy/ui-react 1.0.172 → 1.0.173

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 -52
  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 -6
  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 -52
  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 -6
  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
@@ -1,6 +1,5 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- import _extends from "@babel/runtime/helpers/extends";
4
3
  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"];
5
4
  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; }
6
5
  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) { _defineProperty(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; }
@@ -23,11 +22,12 @@ import BottomSheetElement from '../BottomSheet';
23
22
  import ListElement from '../List';
24
23
  import useMediaQuery from '../useMediaQuery';
25
24
  import { staticClassName } from '../utils';
26
- const IconCustomFacebook = /*#__PURE__*/React.forwardRef((props, ref) => {
27
- const $ = _c(4);
25
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
+ const IconCustomFacebook = props => {
27
+ const $ = _c(3);
28
28
  let t0;
29
29
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
30
- t0 = /*#__PURE__*/React.createElement("path", {
30
+ t0 = /*#__PURE__*/_jsx("path", {
31
31
  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"
32
32
  });
33
33
  $[0] = t0;
@@ -35,25 +35,25 @@ const IconCustomFacebook = /*#__PURE__*/React.forwardRef((props, ref) => {
35
35
  t0 = $[0];
36
36
  }
37
37
  let t1;
38
- if ($[1] !== props || $[2] !== ref) {
39
- t1 = /*#__PURE__*/React.createElement(IconElement, _extends({
40
- ref: ref,
38
+ if ($[1] !== props) {
39
+ t1 = /*#__PURE__*/_jsx(IconElement, _objectSpread(_objectSpread({
41
40
  name: "Facebook",
42
41
  viewBox: "0 0 512 512"
43
- }, props), t0);
42
+ }, props), {}, {
43
+ children: t0
44
+ }));
44
45
  $[1] = props;
45
- $[2] = ref;
46
- $[3] = t1;
46
+ $[2] = t1;
47
47
  } else {
48
- t1 = $[3];
48
+ t1 = $[2];
49
49
  }
50
50
  return t1;
51
- });
52
- const IconCustomX = /*#__PURE__*/React.forwardRef((props, ref) => {
53
- const $ = _c(4);
51
+ };
52
+ const IconCustomX = props => {
53
+ const $ = _c(3);
54
54
  let t0;
55
55
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
56
- t0 = /*#__PURE__*/React.createElement("path", {
56
+ t0 = /*#__PURE__*/_jsx("path", {
57
57
  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"
58
58
  });
59
59
  $[0] = t0;
@@ -61,25 +61,25 @@ const IconCustomX = /*#__PURE__*/React.forwardRef((props, ref) => {
61
61
  t0 = $[0];
62
62
  }
63
63
  let t1;
64
- if ($[1] !== props || $[2] !== ref) {
65
- t1 = /*#__PURE__*/React.createElement(IconElement, _extends({
66
- ref: ref,
64
+ if ($[1] !== props) {
65
+ t1 = /*#__PURE__*/_jsx(IconElement, _objectSpread(_objectSpread({
67
66
  name: "X",
68
67
  viewBox: "0 0 1200 1227"
69
- }, props), t0);
68
+ }, props), {}, {
69
+ children: t0
70
+ }));
70
71
  $[1] = props;
71
- $[2] = ref;
72
- $[3] = t1;
72
+ $[2] = t1;
73
73
  } else {
74
- t1 = $[3];
74
+ t1 = $[2];
75
75
  }
76
76
  return t1;
77
- });
78
- const IconCustomLinkedin = /*#__PURE__*/React.forwardRef((props, ref) => {
79
- const $ = _c(4);
77
+ };
78
+ const IconCustomLinkedin = props => {
79
+ const $ = _c(3);
80
80
  let t0;
81
81
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
82
- t0 = /*#__PURE__*/React.createElement("path", {
82
+ t0 = /*#__PURE__*/_jsx("path", {
83
83
  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"
84
84
  });
85
85
  $[0] = t0;
@@ -87,25 +87,25 @@ const IconCustomLinkedin = /*#__PURE__*/React.forwardRef((props, ref) => {
87
87
  t0 = $[0];
88
88
  }
89
89
  let t1;
90
- if ($[1] !== props || $[2] !== ref) {
91
- t1 = /*#__PURE__*/React.createElement(IconElement, _extends({
92
- ref: ref,
90
+ if ($[1] !== props) {
91
+ t1 = /*#__PURE__*/_jsx(IconElement, _objectSpread(_objectSpread({
93
92
  name: "Linkedin",
94
93
  viewBox: "0 0 512 512"
95
- }, props), t0);
94
+ }, props), {}, {
95
+ children: t0
96
+ }));
96
97
  $[1] = props;
97
- $[2] = ref;
98
- $[3] = t1;
98
+ $[2] = t1;
99
99
  } else {
100
- t1 = $[3];
100
+ t1 = $[2];
101
101
  }
102
102
  return t1;
103
- });
104
- const IconCustomPinterest = /*#__PURE__*/React.forwardRef((props, ref) => {
105
- const $ = _c(4);
103
+ };
104
+ const IconCustomPinterest = props => {
105
+ const $ = _c(3);
106
106
  let t0;
107
107
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
108
- t0 = /*#__PURE__*/React.createElement("path", {
108
+ t0 = /*#__PURE__*/_jsx("path", {
109
109
  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"
110
110
  });
111
111
  $[0] = t0;
@@ -113,25 +113,25 @@ const IconCustomPinterest = /*#__PURE__*/React.forwardRef((props, ref) => {
113
113
  t0 = $[0];
114
114
  }
115
115
  let t1;
116
- if ($[1] !== props || $[2] !== ref) {
117
- t1 = /*#__PURE__*/React.createElement(IconElement, _extends({
118
- ref: ref,
116
+ if ($[1] !== props) {
117
+ t1 = /*#__PURE__*/_jsx(IconElement, _objectSpread(_objectSpread({
119
118
  name: "Pinterest",
120
119
  viewBox: "0 0 56.693 56.693"
121
- }, props), t0);
120
+ }, props), {}, {
121
+ children: t0
122
+ }));
122
123
  $[1] = props;
123
- $[2] = ref;
124
- $[3] = t1;
124
+ $[2] = t1;
125
125
  } else {
126
- t1 = $[3];
126
+ t1 = $[2];
127
127
  }
128
128
  return t1;
129
- });
130
- const IconCustomReddit = /*#__PURE__*/React.forwardRef((props, ref) => {
131
- const $ = _c(4);
129
+ };
130
+ const IconCustomReddit = props => {
131
+ const $ = _c(3);
132
132
  let t0;
133
133
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
134
- t0 = /*#__PURE__*/React.createElement("path", {
134
+ t0 = /*#__PURE__*/_jsx("path", {
135
135
  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"
136
136
  });
137
137
  $[0] = t0;
@@ -139,29 +139,29 @@ const IconCustomReddit = /*#__PURE__*/React.forwardRef((props, ref) => {
139
139
  t0 = $[0];
140
140
  }
141
141
  let t1;
142
- if ($[1] !== props || $[2] !== ref) {
143
- t1 = /*#__PURE__*/React.createElement(IconElement, _extends({
144
- ref: ref,
142
+ if ($[1] !== props) {
143
+ t1 = /*#__PURE__*/_jsx(IconElement, _objectSpread(_objectSpread({
145
144
  name: "Reddit",
146
145
  viewBox: "0 0 56.7 56.7"
147
- }, props), t0);
146
+ }, props), {}, {
147
+ children: t0
148
+ }));
148
149
  $[1] = props;
149
- $[2] = ref;
150
- $[3] = t1;
150
+ $[2] = t1;
151
151
  } else {
152
- t1 = $[3];
152
+ t1 = $[2];
153
153
  }
154
154
  return t1;
155
- });
156
- const IconCustomWhatsapp = /*#__PURE__*/React.forwardRef((props, ref) => {
157
- const $ = _c(5);
155
+ };
156
+ const IconCustomWhatsapp = props => {
157
+ const $ = _c(4);
158
158
  let t0;
159
159
  let t1;
160
160
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
161
- t0 = /*#__PURE__*/React.createElement("path", {
161
+ t0 = /*#__PURE__*/_jsx("path", {
162
162
  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"
163
163
  });
164
- t1 = /*#__PURE__*/React.createElement("path", {
164
+ t1 = /*#__PURE__*/_jsx("path", {
165
165
  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"
166
166
  });
167
167
  $[0] = t0;
@@ -171,25 +171,25 @@ const IconCustomWhatsapp = /*#__PURE__*/React.forwardRef((props, ref) => {
171
171
  t1 = $[1];
172
172
  }
173
173
  let t2;
174
- if ($[2] !== props || $[3] !== ref) {
175
- t2 = /*#__PURE__*/React.createElement(IconElement, _extends({
176
- ref: ref,
174
+ if ($[2] !== props) {
175
+ t2 = /*#__PURE__*/_jsxs(IconElement, _objectSpread(_objectSpread({
177
176
  name: "Whatsapp",
178
177
  viewBox: "0 0 56.693 56.693"
179
- }, props), t0, t1);
178
+ }, props), {}, {
179
+ children: [t0, t1]
180
+ }));
180
181
  $[2] = props;
181
- $[3] = ref;
182
- $[4] = t2;
182
+ $[3] = t2;
183
183
  } else {
184
- t2 = $[4];
184
+ t2 = $[3];
185
185
  }
186
186
  return t2;
187
- });
188
- const IconCustomViber = /*#__PURE__*/React.forwardRef((props, ref) => {
189
- const $ = _c(4);
187
+ };
188
+ const IconCustomViber = props => {
189
+ const $ = _c(3);
190
190
  let t0;
191
191
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
192
- t0 = /*#__PURE__*/React.createElement("path", {
192
+ t0 = /*#__PURE__*/_jsx("path", {
193
193
  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"
194
194
  });
195
195
  $[0] = t0;
@@ -197,20 +197,20 @@ const IconCustomViber = /*#__PURE__*/React.forwardRef((props, ref) => {
197
197
  t0 = $[0];
198
198
  }
199
199
  let t1;
200
- if ($[1] !== props || $[2] !== ref) {
201
- t1 = /*#__PURE__*/React.createElement(IconElement, _extends({
202
- ref: ref,
200
+ if ($[1] !== props) {
201
+ t1 = /*#__PURE__*/_jsx(IconElement, _objectSpread(_objectSpread({
203
202
  name: "Viber",
204
203
  viewBox: "0 0 100 100"
205
- }, props), t0);
204
+ }, props), {}, {
205
+ children: t0
206
+ }));
206
207
  $[1] = props;
207
- $[2] = ref;
208
- $[3] = t1;
208
+ $[2] = t1;
209
209
  } else {
210
- t1 = $[3];
210
+ t1 = $[2];
211
211
  }
212
212
  return t1;
213
- });
213
+ };
214
214
  const useStyle = styleMethod(theme => ({
215
215
  root: {},
216
216
  version_fixed: {
@@ -284,7 +284,7 @@ const useStyle = styleMethod(theme => ({
284
284
  }), {
285
285
  name: 'onesy-Share'
286
286
  });
287
- const Share = /*#__PURE__*/React.forwardRef((props_, ref) => {
287
+ const Share = props_ => {
288
288
  const theme = useOnesyTheme();
289
289
  const l = theme.l;
290
290
  const props = _objectSpread(_objectSpread(_objectSpread({}, theme?.ui?.elements?.all?.props?.default), theme?.ui?.elements?.onesyShare?.props?.default), props_);
@@ -476,92 +476,106 @@ const Share = /*#__PURE__*/React.forwardRef((props_, ref) => {
476
476
  if (['top', 'bottom'].includes(position)) other.direction = other.direction || 'row';
477
477
  const menuItemsMoreOptions = moreOptions.map(item_5 => ({
478
478
  value: item_5,
479
- start: /*#__PURE__*/React.createElement(item_5.Icon, {
479
+ start: /*#__PURE__*/_jsx(item_5.Icon, {
480
480
  color: item_5.color,
481
481
  size: "small"
482
482
  }),
483
483
  startAlign: 'center',
484
- primary: /*#__PURE__*/React.createElement(Type, {
485
- version: "b3"
486
- }, item_5.name)
487
- })).map((item_6, index_0) => /*#__PURE__*/React.createElement(MenuItem, _extends({
488
- key: index_0,
484
+ primary: /*#__PURE__*/_jsx(Type, {
485
+ version: "b3",
486
+ children: item_5.name
487
+ })
488
+ })).map((item_6, index_0) => /*#__PURE__*/_jsx(MenuItem, _objectSpread(_objectSpread(_objectSpread({
489
489
  onClick: event_0 => onClick(item_6.value, event_0),
490
490
  noBackground: true,
491
491
  menuCloseOnClick: true,
492
492
  button: true
493
- }, item_6, itemProps?.(item_6, index_0), MenuItemProps)));
493
+ }, item_6), itemProps?.(item_6, index_0)), MenuItemProps), index_0));
494
494
  if (version === 'menu-items') return menuItemsMoreOptions;
495
495
  const AppendProps = {};
496
496
  if (position === 'start') AppendProps.position = 'right';
497
497
  if (position === 'end') AppendProps.position = 'left';
498
498
  if (position === 'top') AppendProps.position = 'bottom';
499
499
  if (position === 'bottom') AppendProps.position = 'top';
500
- return /*#__PURE__*/React.createElement(Line, _extends({
501
- ref: ref,
500
+ return /*#__PURE__*/_jsxs(Line, _objectSpread(_objectSpread({
502
501
  gap: 0,
503
502
  className: classNames([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}`]])
504
- }, other), [...(start || []), ...visibleOptions, ...(end || [])].map((item_7, index_1) => {
505
- const itemProps_ = {
506
- onClick: event_1 => onClick(item_7, event_1)
507
- };
508
- if (is('function', render)) return render(item_7.name, itemProps_);
509
- return /*#__PURE__*/React.createElement(Tooltip, _extends({
510
- label: item_7.name === l('Copy') && copied ? l('Copied!') : item_7.title || `${l('Share to')} ${item_7.name}`
511
- }, AppendProps), /*#__PURE__*/React.createElement(Line, _extends({
512
- key: index_1,
513
- onClick: event_2 => onClick(item_7, event_2)
514
- }, itemProps_, {
515
- className: classNames([staticClassName('Share', theme) && ['onesy-Share-item', 'onesy-Share-visible'], itemProps_?.className, classes.item, classes[`item_size_${size}`]]),
516
- style: _objectSpread({
517
- color: theme.methods.palette.color.text(item_7.color),
518
- backgroundColor: item_7.color
519
- }, itemProps_?.style)
520
- }), /*#__PURE__*/React.createElement(Interaction, null), /*#__PURE__*/React.createElement(item_7.Icon, {
521
- size: "regular"
522
- })));
523
- }), !!moreOptions?.length && !mobile && /*#__PURE__*/React.createElement(Menu, _extends({
524
- menuItems: [...(startMore || []), ...menuItemsMoreOptions, ...(endMore || [])],
525
- alignment: "start"
526
- }, AppendProps, {
527
- ListProps: {
528
- size: 'small',
529
- style: {
530
- maxHeight: 240,
531
- overflowY: 'auto'
532
- }
533
- }
534
- }), /*#__PURE__*/React.createElement(Line, null, /*#__PURE__*/React.createElement(Tooltip, _extends({
535
- name: optionMore.title || l('More')
536
- }, AppendProps), /*#__PURE__*/React.createElement(Line, {
537
- className: classNames([staticClassName('Share', theme) && ['onesy-Share-item', 'onesy-Share-visible'], classes.item, classes[`item_size_${size}`]]),
538
- style: {
539
- color: theme.methods.palette.color.text(optionMore.color),
540
- backgroundColor: optionMore.color
541
- }
542
- }, /*#__PURE__*/React.createElement(Interaction, null), /*#__PURE__*/React.createElement(optionMore.Icon, {
543
- size: "regular"
544
- }))))), !!moreOptions?.length && mobile && /*#__PURE__*/React.createElement(Tooltip, _extends({
545
- name: optionMore.title || l('More')
546
- }, AppendProps), /*#__PURE__*/React.createElement(Line, {
547
- onClick: onOpenBottomSheet,
548
- className: classNames(['onesy-Share-item', 'onesy-Share-visible', classes.item, classes[`item_size_${size}`]]),
549
- style: {
550
- color: theme.methods.palette.color.text(optionMore.color),
551
- backgroundColor: optionMore.color
552
- }
553
- }, /*#__PURE__*/React.createElement(Interaction, null), /*#__PURE__*/React.createElement(optionMore.Icon, {
554
- size: "regular"
555
- }))), /*#__PURE__*/React.createElement(BottomSheet, {
556
- open: open,
557
- onClose: onCloseBottomSheet
558
- }, /*#__PURE__*/React.createElement(List, {
559
- menu: true,
560
- noBackground: true,
561
- SurfaceProps: {
562
- elevation: false
563
- }
564
- }, menuItemsMoreOptions)));
565
- });
503
+ }, other), {}, {
504
+ children: [[...(start || []), ...visibleOptions, ...(end || [])].map((item_7, index_1) => {
505
+ const itemProps_ = {
506
+ onClick: event_1 => onClick(item_7, event_1)
507
+ };
508
+ if (is('function', render)) return render(item_7.name, itemProps_);
509
+ return /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({
510
+ label: item_7.name === l('Copy') && copied ? l('Copied!') : item_7.title || `${l('Share to')} ${item_7.name}`
511
+ }, AppendProps), {}, {
512
+ children: /*#__PURE__*/_jsxs(Line, _objectSpread(_objectSpread({
513
+ onClick: event_2 => onClick(item_7, event_2)
514
+ }, itemProps_), {}, {
515
+ className: classNames([staticClassName('Share', theme) && ['onesy-Share-item', 'onesy-Share-visible'], itemProps_?.className, classes.item, classes[`item_size_${size}`]]),
516
+ style: _objectSpread({
517
+ color: theme.methods.palette.color.text(item_7.color),
518
+ backgroundColor: item_7.color
519
+ }, itemProps_?.style),
520
+ children: [/*#__PURE__*/_jsx(Interaction, {}), /*#__PURE__*/_jsx(item_7.Icon, {
521
+ size: "regular"
522
+ })]
523
+ }), index_1)
524
+ }));
525
+ }), !!moreOptions?.length && !mobile && /*#__PURE__*/_jsx(Menu, _objectSpread(_objectSpread({
526
+ menuItems: [...(startMore || []), ...menuItemsMoreOptions, ...(endMore || [])],
527
+ alignment: "start"
528
+ }, AppendProps), {}, {
529
+ ListProps: {
530
+ size: 'small',
531
+ style: {
532
+ maxHeight: 240,
533
+ overflowY: 'auto'
534
+ }
535
+ },
536
+ children: /*#__PURE__*/_jsx(Line, {
537
+ children: /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({
538
+ name: optionMore.title || l('More')
539
+ }, AppendProps), {}, {
540
+ children: /*#__PURE__*/_jsxs(Line, {
541
+ className: classNames([staticClassName('Share', theme) && ['onesy-Share-item', 'onesy-Share-visible'], classes.item, classes[`item_size_${size}`]]),
542
+ style: {
543
+ color: theme.methods.palette.color.text(optionMore.color),
544
+ backgroundColor: optionMore.color
545
+ },
546
+ children: [/*#__PURE__*/_jsx(Interaction, {}), /*#__PURE__*/_jsx(optionMore.Icon, {
547
+ size: "regular"
548
+ })]
549
+ })
550
+ }))
551
+ })
552
+ })), !!moreOptions?.length && mobile && /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({
553
+ name: optionMore.title || l('More')
554
+ }, AppendProps), {}, {
555
+ children: /*#__PURE__*/_jsxs(Line, {
556
+ onClick: onOpenBottomSheet,
557
+ className: 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
+ children: [/*#__PURE__*/_jsx(Interaction, {}), /*#__PURE__*/_jsx(optionMore.Icon, {
563
+ size: "regular"
564
+ })]
565
+ })
566
+ })), /*#__PURE__*/_jsx(BottomSheet, {
567
+ open: open,
568
+ onClose: onCloseBottomSheet,
569
+ children: /*#__PURE__*/_jsx(List, {
570
+ menu: true,
571
+ noBackground: true,
572
+ SurfaceProps: {
573
+ elevation: false
574
+ },
575
+ children: menuItemsMoreOptions
576
+ })
577
+ })]
578
+ }));
579
+ };
566
580
  Share.displayName = 'onesy-Share';
567
581
  export default Share;
@@ -1,17 +1,18 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- 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"];
3
+ 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"];
5
4
  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; }
6
5
  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) { _defineProperty(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; }
7
6
  import React from 'react';
8
7
  import { is } from '@onesy/utils';
9
8
  import { classNames, useOnesyTheme } from '@onesy/style-react';
10
9
  import { Transition } from '..';
11
- const Slide = /*#__PURE__*/React.forwardRef((props_, ref) => {
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ const Slide = props_ => {
12
12
  const theme = useOnesyTheme();
13
13
  const props = _objectSpread(_objectSpread(_objectSpread({}, theme?.ui?.elements?.all?.props?.default), theme?.ui?.elements?.onesySlide?.props?.default), props_);
14
14
  const {
15
+ ref,
15
16
  in: inProp,
16
17
  prefix,
17
18
  run,
@@ -132,7 +133,7 @@ const Slide = /*#__PURE__*/React.forwardRef((props_, ref) => {
132
133
  return `${(is('simple', duration) ? duration : duration[status_0]) || properties[property]}ms`;
133
134
  };
134
135
  const timingFunction = status_1 => (is('simple', timing_function) ? timing_function : timing_function[status_1]) || theme.transitions.timing_function.standard;
135
- return /*#__PURE__*/React.createElement(Transition, _extends({
136
+ return /*#__PURE__*/_jsx(Transition, _objectSpread(_objectSpread({
136
137
  append: true,
137
138
  removeOnExited: true,
138
139
  onAppended: element => {
@@ -152,26 +153,28 @@ const Slide = /*#__PURE__*/React.forwardRef((props_, ref) => {
152
153
  onExit: element_1 => {
153
154
  refs.rect.current = element_1?.getBoundingClientRect();
154
155
  }
155
- }, props), (status_2, ref_) => {
156
- return /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, other), {}, {
157
- ref: item => {
158
- refs.root.current = item;
159
- if (ref) {
160
- if (is('function', ref)) ref(item);else ref.current = item;
161
- }
162
- if (ref_) {
163
- if (is('function', ref_)) ref_(item);else ref_.current = item;
164
- }
165
- if (children.ref) {
166
- if (is('function', children.ref)) children.ref(item);else children.ref.current = item;
167
- }
168
- },
169
- className: classNames([className, children?.props?.className]),
170
- style: _objectSpread(_objectSpread(_objectSpread({
171
- transition: `transform ${duration(status_2)} ${timingFunction(status_2)} ${addTransition ? `, ${addTransition}` : ''}`
172
- }, styles(status_2)), children?.props?.style), style)
173
- }));
174
- });
175
- });
156
+ }, props), {}, {
157
+ children: (status_2, ref_) => {
158
+ return /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, other), {}, {
159
+ ref: item => {
160
+ refs.root.current = item;
161
+ if (ref) {
162
+ if (is('function', ref)) ref(item);else ref.current = item;
163
+ }
164
+ if (ref_) {
165
+ if (is('function', ref_)) ref_(item);else ref_.current = item;
166
+ }
167
+ if (children.ref) {
168
+ if (is('function', children.ref)) children.ref(item);else children.ref.current = item;
169
+ }
170
+ },
171
+ className: classNames([className, children?.props?.className]),
172
+ style: _objectSpread(_objectSpread(_objectSpread({
173
+ transition: `transform ${duration(status_2)} ${timingFunction(status_2)} ${addTransition ? `, ${addTransition}` : ''}`
174
+ }, styles(status_2)), children?.props?.style), style)
175
+ }));
176
+ }
177
+ }));
178
+ };
176
179
  Slide.displayName = 'onesy-Slide';
177
180
  export default Slide;