@onesy/ui-react 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1531) hide show
  1. package/Accordion/Accordion.d.ts +38 -0
  2. package/Accordion/Accordion.js +252 -0
  3. package/Accordion/index.d.ts +1 -0
  4. package/Accordion/index.js +8 -0
  5. package/Accordion/package.json +6 -0
  6. package/AdvancedTextField/AdvancedTextField.d.ts +13 -0
  7. package/AdvancedTextField/AdvancedTextField.js +164 -0
  8. package/AdvancedTextField/index.d.ts +1 -0
  9. package/AdvancedTextField/index.js +8 -0
  10. package/AdvancedTextField/package.json +6 -0
  11. package/Append/Append.d.ts +40 -0
  12. package/Append/Append.js +528 -0
  13. package/Append/index.d.ts +1 -0
  14. package/Append/index.js +8 -0
  15. package/Append/package.json +6 -0
  16. package/AreaChart/AreaChart.d.ts +9 -0
  17. package/AreaChart/AreaChart.js +43 -0
  18. package/AreaChart/index.d.ts +1 -0
  19. package/AreaChart/index.js +8 -0
  20. package/AreaChart/package.json +6 -0
  21. package/AreaChartItem/AreaChartItem.d.ts +22 -0
  22. package/AreaChartItem/AreaChartItem.js +249 -0
  23. package/AreaChartItem/index.d.ts +1 -0
  24. package/AreaChartItem/index.js +8 -0
  25. package/AreaChartItem/package.json +6 -0
  26. package/AudioPlayer/AudioPlayer.d.ts +53 -0
  27. package/AudioPlayer/AudioPlayer.js +494 -0
  28. package/AudioPlayer/index.d.ts +1 -0
  29. package/AudioPlayer/index.js +8 -0
  30. package/AudioPlayer/package.json +6 -0
  31. package/AudioRecorder/AudioRecorder.d.ts +31 -0
  32. package/AudioRecorder/AudioRecorder.js +242 -0
  33. package/AudioRecorder/index.d.ts +1 -0
  34. package/AudioRecorder/index.js +8 -0
  35. package/AudioRecorder/package.json +6 -0
  36. package/AutoComplete/AutoComplete.d.ts +62 -0
  37. package/AutoComplete/AutoComplete.js +586 -0
  38. package/AutoComplete/index.d.ts +1 -0
  39. package/AutoComplete/index.js +8 -0
  40. package/AutoComplete/package.json +6 -0
  41. package/AutoCompleteCountry/AutoCompleteCountry.d.ts +6 -0
  42. package/AutoCompleteCountry/AutoCompleteCountry.js +64 -0
  43. package/AutoCompleteCountry/index.d.ts +1 -0
  44. package/AutoCompleteCountry/index.js +8 -0
  45. package/AutoCompleteCountry/package.json +6 -0
  46. package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +6 -0
  47. package/AutoCompleteCurrency/AutoCompleteCurrency.js +63 -0
  48. package/AutoCompleteCurrency/index.d.ts +1 -0
  49. package/AutoCompleteCurrency/index.js +8 -0
  50. package/AutoCompleteCurrency/package.json +6 -0
  51. package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.d.ts +6 -0
  52. package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.js +85 -0
  53. package/AutoCompleteGooglePlaces/index.d.ts +1 -0
  54. package/AutoCompleteGooglePlaces/index.js +8 -0
  55. package/AutoCompleteGooglePlaces/package.json +6 -0
  56. package/Avatar/Avatar.d.ts +13 -0
  57. package/Avatar/Avatar.js +88 -0
  58. package/Avatar/index.d.ts +1 -0
  59. package/Avatar/index.js +8 -0
  60. package/Avatar/package.json +6 -0
  61. package/AvatarGroup/AvatarGroup.d.ts +15 -0
  62. package/AvatarGroup/AvatarGroup.js +91 -0
  63. package/AvatarGroup/index.d.ts +1 -0
  64. package/AvatarGroup/index.js +8 -0
  65. package/AvatarGroup/package.json +6 -0
  66. package/Backdrop/Backdrop.d.ts +17 -0
  67. package/Backdrop/Backdrop.js +145 -0
  68. package/Backdrop/index.d.ts +1 -0
  69. package/Backdrop/index.js +8 -0
  70. package/Backdrop/package.json +6 -0
  71. package/Badge/Badge.d.ts +14 -0
  72. package/Badge/Badge.js +99 -0
  73. package/Badge/index.d.ts +1 -0
  74. package/Badge/index.js +8 -0
  75. package/Badge/package.json +6 -0
  76. package/Banner/Banner.d.ts +11 -0
  77. package/Banner/Banner.js +89 -0
  78. package/Banner/index.d.ts +1 -0
  79. package/Banner/index.js +8 -0
  80. package/Banner/package.json +6 -0
  81. package/BottomAppBar/BottomAppBar.d.ts +11 -0
  82. package/BottomAppBar/BottomAppBar.js +202 -0
  83. package/BottomAppBar/index.d.ts +1 -0
  84. package/BottomAppBar/index.js +8 -0
  85. package/BottomAppBar/package.json +6 -0
  86. package/BottomSheet/BottomSheet.d.ts +6 -0
  87. package/BottomSheet/BottomSheet.js +63 -0
  88. package/BottomSheet/index.d.ts +1 -0
  89. package/BottomSheet/index.js +8 -0
  90. package/BottomSheet/package.json +6 -0
  91. package/Box/Box.d.ts +8 -0
  92. package/Box/Box.js +38 -0
  93. package/Box/index.d.ts +1 -0
  94. package/Box/index.js +8 -0
  95. package/Box/package.json +6 -0
  96. package/Breadcrumbs/Breadcrumbs.d.ts +10 -0
  97. package/Breadcrumbs/Breadcrumbs.js +149 -0
  98. package/Breadcrumbs/index.d.ts +1 -0
  99. package/Breadcrumbs/index.js +8 -0
  100. package/Breadcrumbs/package.json +6 -0
  101. package/BubbleChart/BubbleChart.d.ts +6 -0
  102. package/BubbleChart/BubbleChart.js +137 -0
  103. package/BubbleChart/index.d.ts +1 -0
  104. package/BubbleChart/index.js +8 -0
  105. package/BubbleChart/package.json +6 -0
  106. package/BubbleChartItem/BubbleChartItem.d.ts +21 -0
  107. package/BubbleChartItem/BubbleChartItem.js +165 -0
  108. package/BubbleChartItem/index.d.ts +1 -0
  109. package/BubbleChartItem/index.js +8 -0
  110. package/BubbleChartItem/package.json +6 -0
  111. package/Button/Button.d.ts +39 -0
  112. package/Button/Button.js +476 -0
  113. package/Button/index.d.ts +1 -0
  114. package/Button/index.js +8 -0
  115. package/Button/package.json +6 -0
  116. package/Buttons/Buttons.d.ts +26 -0
  117. package/Buttons/Buttons.js +302 -0
  118. package/Buttons/index.d.ts +1 -0
  119. package/Buttons/index.js +8 -0
  120. package/Buttons/package.json +6 -0
  121. package/Calendar/Calendar.d.ts +44 -0
  122. package/Calendar/Calendar.js +462 -0
  123. package/Calendar/index.d.ts +1 -0
  124. package/Calendar/index.js +8 -0
  125. package/Calendar/package.json +6 -0
  126. package/CalendarAvailability/CalendarAvailability.d.ts +46 -0
  127. package/CalendarAvailability/CalendarAvailability.js +400 -0
  128. package/CalendarAvailability/index.d.ts +1 -0
  129. package/CalendarAvailability/index.js +8 -0
  130. package/CalendarAvailability/package.json +6 -0
  131. package/CalendarMenu/CalendarMenu.d.ts +18 -0
  132. package/CalendarMenu/CalendarMenu.js +313 -0
  133. package/CalendarMenu/index.d.ts +1 -0
  134. package/CalendarMenu/index.js +8 -0
  135. package/CalendarMenu/package.json +6 -0
  136. package/CalendarMonth/CalendarMonth.d.ts +51 -0
  137. package/CalendarMonth/CalendarMonth.js +513 -0
  138. package/CalendarMonth/index.d.ts +1 -0
  139. package/CalendarMonth/index.js +8 -0
  140. package/CalendarMonth/package.json +6 -0
  141. package/CalendarViews/CalendarViews.d.ts +30 -0
  142. package/CalendarViews/CalendarViews.js +261 -0
  143. package/CalendarViews/index.d.ts +1 -0
  144. package/CalendarViews/index.js +8 -0
  145. package/CalendarViews/package.json +6 -0
  146. package/CalendarWeek/CalendarWeek.d.ts +18 -0
  147. package/CalendarWeek/CalendarWeek.js +392 -0
  148. package/CalendarWeek/index.d.ts +1 -0
  149. package/CalendarWeek/index.js +8 -0
  150. package/CalendarWeek/package.json +6 -0
  151. package/Card/Card.d.ts +15 -0
  152. package/Card/Card.js +106 -0
  153. package/Card/index.d.ts +1 -0
  154. package/Card/index.js +8 -0
  155. package/Card/package.json +6 -0
  156. package/CardButton/CardButton.d.ts +13 -0
  157. package/CardButton/CardButton.js +62 -0
  158. package/CardButton/index.d.ts +1 -0
  159. package/CardButton/index.js +8 -0
  160. package/CardButton/package.json +6 -0
  161. package/CardFooter/CardFooter.d.ts +11 -0
  162. package/CardFooter/CardFooter.js +42 -0
  163. package/CardFooter/index.d.ts +1 -0
  164. package/CardFooter/index.js +8 -0
  165. package/CardFooter/package.json +6 -0
  166. package/CardHeader/CardHeader.d.ts +11 -0
  167. package/CardHeader/CardHeader.js +47 -0
  168. package/CardHeader/index.d.ts +1 -0
  169. package/CardHeader/index.js +8 -0
  170. package/CardHeader/package.json +6 -0
  171. package/CardImage/CardImage.d.ts +14 -0
  172. package/CardImage/CardImage.js +69 -0
  173. package/CardImage/index.d.ts +1 -0
  174. package/CardImage/index.js +8 -0
  175. package/CardImage/package.json +6 -0
  176. package/CardMain/CardMain.d.ts +11 -0
  177. package/CardMain/CardMain.js +42 -0
  178. package/CardMain/index.d.ts +1 -0
  179. package/CardMain/index.js +8 -0
  180. package/CardMain/package.json +6 -0
  181. package/Carousel/Carousel.d.ts +84 -0
  182. package/Carousel/Carousel.js +935 -0
  183. package/Carousel/index.d.ts +1 -0
  184. package/Carousel/index.js +8 -0
  185. package/Carousel/package.json +6 -0
  186. package/Chart/Chart.d.ts +133 -0
  187. package/Chart/Chart.js +1190 -0
  188. package/Chart/index.d.ts +1 -0
  189. package/Chart/index.js +8 -0
  190. package/Chart/package.json +6 -0
  191. package/Checkbox/Checkbox.d.ts +17 -0
  192. package/Checkbox/Checkbox.js +320 -0
  193. package/Checkbox/index.d.ts +1 -0
  194. package/Checkbox/index.js +8 -0
  195. package/Checkbox/package.json +6 -0
  196. package/Chip/Chip.d.ts +13 -0
  197. package/Chip/Chip.js +109 -0
  198. package/Chip/index.d.ts +1 -0
  199. package/Chip/index.js +8 -0
  200. package/Chip/package.json +6 -0
  201. package/Chips/Chips.d.ts +11 -0
  202. package/Chips/Chips.js +104 -0
  203. package/Chips/index.d.ts +1 -0
  204. package/Chips/index.js +8 -0
  205. package/Chips/package.json +6 -0
  206. package/ClickListener/ClickListener.d.ts +14 -0
  207. package/ClickListener/ClickListener.js +94 -0
  208. package/ClickListener/index.d.ts +1 -0
  209. package/ClickListener/index.js +8 -0
  210. package/ClickListener/package.json +6 -0
  211. package/Clock/Clock.d.ts +35 -0
  212. package/Clock/Clock.js +428 -0
  213. package/Clock/index.d.ts +1 -0
  214. package/Clock/index.js +8 -0
  215. package/Clock/package.json +6 -0
  216. package/ColorTextField/ColorTextField.d.ts +12 -0
  217. package/ColorTextField/ColorTextField.js +180 -0
  218. package/ColorTextField/index.d.ts +1 -0
  219. package/ColorTextField/index.js +8 -0
  220. package/ColorTextField/package.json +6 -0
  221. package/ColumnChart/ColumnChart.d.ts +6 -0
  222. package/ColumnChart/ColumnChart.js +49 -0
  223. package/ColumnChart/index.d.ts +1 -0
  224. package/ColumnChart/index.js +8 -0
  225. package/ColumnChart/package.json +6 -0
  226. package/ColumnChartItem/ColumnChartItem.d.ts +20 -0
  227. package/ColumnChartItem/ColumnChartItem.js +153 -0
  228. package/ColumnChartItem/index.d.ts +1 -0
  229. package/ColumnChartItem/index.js +8 -0
  230. package/ColumnChartItem/package.json +6 -0
  231. package/Confirm/Confirm.d.ts +35 -0
  232. package/Confirm/Confirm.js +133 -0
  233. package/Confirm/Context.d.ts +2 -0
  234. package/Confirm/Context.js +8 -0
  235. package/Confirm/index.d.ts +4 -0
  236. package/Confirm/index.js +14 -0
  237. package/Confirm/package.json +6 -0
  238. package/Confirm/useConfirm.d.ts +2 -0
  239. package/Confirm/useConfirm.js +12 -0
  240. package/Container/Container.d.ts +12 -0
  241. package/Container/Container.js +137 -0
  242. package/Container/index.d.ts +1 -0
  243. package/Container/index.js +8 -0
  244. package/Container/package.json +6 -0
  245. package/Countdown/Countdown.d.ts +25 -0
  246. package/Countdown/Countdown.js +265 -0
  247. package/Countdown/index.d.ts +1 -0
  248. package/Countdown/index.js +8 -0
  249. package/Countdown/package.json +6 -0
  250. package/DatePicker/DatePicker.d.ts +72 -0
  251. package/DatePicker/DatePicker.js +559 -0
  252. package/DatePicker/index.d.ts +1 -0
  253. package/DatePicker/index.js +8 -0
  254. package/DatePicker/package.json +6 -0
  255. package/DateRangePicker/DateRangePicker.d.ts +6 -0
  256. package/DateRangePicker/DateRangePicker.js +40 -0
  257. package/DateRangePicker/index.d.ts +1 -0
  258. package/DateRangePicker/index.js +8 -0
  259. package/DateRangePicker/package.json +6 -0
  260. package/DateTimePicker/DateTimePicker.d.ts +61 -0
  261. package/DateTimePicker/DateTimePicker.js +476 -0
  262. package/DateTimePicker/index.d.ts +1 -0
  263. package/DateTimePicker/index.js +8 -0
  264. package/DateTimePicker/package.json +6 -0
  265. package/DateTimeRangePicker/DateTimeRangePicker.d.ts +6 -0
  266. package/DateTimeRangePicker/DateTimeRangePicker.js +40 -0
  267. package/DateTimeRangePicker/index.d.ts +1 -0
  268. package/DateTimeRangePicker/index.js +8 -0
  269. package/DateTimeRangePicker/package.json +6 -0
  270. package/Divider/Divider.d.ts +13 -0
  271. package/Divider/Divider.js +188 -0
  272. package/Divider/index.d.ts +1 -0
  273. package/Divider/index.js +8 -0
  274. package/Divider/package.json +6 -0
  275. package/DonutChart/DonutChart.d.ts +6 -0
  276. package/DonutChart/DonutChart.js +46 -0
  277. package/DonutChart/index.d.ts +1 -0
  278. package/DonutChart/index.js +8 -0
  279. package/DonutChart/package.json +6 -0
  280. package/DragAndDropList/DragAndDropList.d.ts +16 -0
  281. package/DragAndDropList/DragAndDropList.js +163 -0
  282. package/DragAndDropList/index.d.ts +1 -0
  283. package/DragAndDropList/index.js +8 -0
  284. package/DragAndDropList/package.json +6 -0
  285. package/Drawing/Drawing.d.ts +48 -0
  286. package/Drawing/Drawing.js +532 -0
  287. package/Drawing/index.d.ts +1 -0
  288. package/Drawing/index.js +8 -0
  289. package/Drawing/package.json +6 -0
  290. package/DropZone/DropZone.d.ts +15 -0
  291. package/DropZone/DropZone.js +205 -0
  292. package/DropZone/index.d.ts +1 -0
  293. package/DropZone/index.js +8 -0
  294. package/DropZone/package.json +6 -0
  295. package/Emojis/Emojis.d.ts +22 -0
  296. package/Emojis/Emojis.js +319 -0
  297. package/Emojis/emojis_list.d.ts +18 -0
  298. package/Emojis/emojis_list.js +9251 -0
  299. package/Emojis/index.d.ts +2 -0
  300. package/Emojis/index.js +10 -0
  301. package/Emojis/package.json +6 -0
  302. package/Expand/Expand.d.ts +12 -0
  303. package/Expand/Expand.js +156 -0
  304. package/Expand/index.d.ts +1 -0
  305. package/Expand/index.js +8 -0
  306. package/Expand/package.json +6 -0
  307. package/Fab/Fab.d.ts +6 -0
  308. package/Fab/Fab.js +29 -0
  309. package/Fab/index.d.ts +1 -0
  310. package/Fab/index.js +8 -0
  311. package/Fab/package.json +6 -0
  312. package/Fade/Fade.d.ts +6 -0
  313. package/Fade/Fade.js +106 -0
  314. package/Fade/index.d.ts +1 -0
  315. package/Fade/index.js +8 -0
  316. package/Fade/package.json +6 -0
  317. package/FileChoose/FileChoose.d.ts +28 -0
  318. package/FileChoose/FileChoose.js +154 -0
  319. package/FileChoose/index.d.ts +1 -0
  320. package/FileChoose/index.js +8 -0
  321. package/FileChoose/package.json +6 -0
  322. package/Focus/Focus.d.ts +8 -0
  323. package/Focus/Focus.js +96 -0
  324. package/Focus/index.d.ts +1 -0
  325. package/Focus/index.js +8 -0
  326. package/Focus/package.json +6 -0
  327. package/Form/Form.d.ts +25 -0
  328. package/Form/Form.js +125 -0
  329. package/Form/index.d.ts +1 -0
  330. package/Form/index.js +8 -0
  331. package/Form/package.json +6 -0
  332. package/FormRow/FormRow.d.ts +20 -0
  333. package/FormRow/FormRow.js +82 -0
  334. package/FormRow/index.d.ts +1 -0
  335. package/FormRow/index.js +8 -0
  336. package/FormRow/package.json +6 -0
  337. package/Forms/Forms.d.ts +7 -0
  338. package/Forms/Forms.js +44 -0
  339. package/Forms/index.d.ts +1 -0
  340. package/Forms/index.js +8 -0
  341. package/Forms/package.json +6 -0
  342. package/Frame/Frame.d.ts +21 -0
  343. package/Frame/Frame.js +154 -0
  344. package/Frame/index.d.ts +1 -0
  345. package/Frame/index.js +8 -0
  346. package/Frame/package.json +6 -0
  347. package/Grid/Grid.d.ts +14 -0
  348. package/Grid/Grid.js +169 -0
  349. package/Grid/index.d.ts +1 -0
  350. package/Grid/index.js +8 -0
  351. package/Grid/package.json +6 -0
  352. package/Grow/Grow.d.ts +6 -0
  353. package/Grow/Grow.js +114 -0
  354. package/Grow/index.d.ts +1 -0
  355. package/Grow/index.js +8 -0
  356. package/Grow/package.json +6 -0
  357. package/HTMLCanvas/HTMLCanvas.d.ts +43 -0
  358. package/HTMLCanvas/HTMLCanvas.js +549 -0
  359. package/HTMLCanvas/index.d.ts +2 -0
  360. package/HTMLCanvas/index.js +23 -0
  361. package/HTMLCanvas/package.json +6 -0
  362. package/IFrame/IFrame.d.ts +9 -0
  363. package/IFrame/IFrame.js +117 -0
  364. package/IFrame/index.d.ts +1 -0
  365. package/IFrame/index.js +8 -0
  366. package/IFrame/package.json +6 -0
  367. package/Icon/Icon.d.ts +17 -0
  368. package/Icon/Icon.js +98 -0
  369. package/Icon/index.d.ts +2 -0
  370. package/Icon/index.js +23 -0
  371. package/Icon/package.json +6 -0
  372. package/IconButton/IconButton.d.ts +6 -0
  373. package/IconButton/IconButton.js +40 -0
  374. package/IconButton/index.d.ts +1 -0
  375. package/IconButton/index.js +8 -0
  376. package/IconButton/package.json +6 -0
  377. package/Image/Image.d.ts +27 -0
  378. package/Image/Image.js +259 -0
  379. package/Image/index.d.ts +1 -0
  380. package/Image/index.js +8 -0
  381. package/Image/package.json +6 -0
  382. package/ImageCrop/ImageCrop.d.ts +28 -0
  383. package/ImageCrop/ImageCrop.js +1076 -0
  384. package/ImageCrop/index.d.ts +1 -0
  385. package/ImageCrop/index.js +8 -0
  386. package/ImageCrop/package.json +6 -0
  387. package/ImageEdit/ImageEdit.d.ts +68 -0
  388. package/ImageEdit/ImageEdit.js +789 -0
  389. package/ImageEdit/index.d.ts +1 -0
  390. package/ImageEdit/index.js +8 -0
  391. package/ImageEdit/package.json +6 -0
  392. package/ImageGallery/ImageGallery.d.ts +30 -0
  393. package/ImageGallery/ImageGallery.js +483 -0
  394. package/ImageGallery/index.d.ts +1 -0
  395. package/ImageGallery/index.js +8 -0
  396. package/ImageGallery/package.json +6 -0
  397. package/ImageList/ImageList.d.ts +11 -0
  398. package/ImageList/ImageList.js +134 -0
  399. package/ImageList/index.d.ts +1 -0
  400. package/ImageList/index.js +8 -0
  401. package/ImageList/package.json +6 -0
  402. package/ImageListItem/ImageListItem.d.ts +10 -0
  403. package/ImageListItem/ImageListItem.js +92 -0
  404. package/ImageListItem/index.d.ts +1 -0
  405. package/ImageListItem/index.js +8 -0
  406. package/ImageListItem/package.json +6 -0
  407. package/ImageListItemBox/ImageListItemBox.d.ts +8 -0
  408. package/ImageListItemBox/ImageListItemBox.js +53 -0
  409. package/ImageListItemBox/index.d.ts +1 -0
  410. package/ImageListItemBox/index.js +8 -0
  411. package/ImageListItemBox/package.json +6 -0
  412. package/Info/Info.d.ts +15 -0
  413. package/Info/Info.js +66 -0
  414. package/Info/index.d.ts +1 -0
  415. package/Info/index.js +8 -0
  416. package/Info/package.json +6 -0
  417. package/Interaction/Interaction.d.ts +21 -0
  418. package/Interaction/Interaction.js +349 -0
  419. package/Interaction/index.d.ts +1 -0
  420. package/Interaction/index.js +8 -0
  421. package/Interaction/package.json +6 -0
  422. package/Keyframes/Context.d.ts +3 -0
  423. package/Keyframes/Context.js +8 -0
  424. package/Keyframes/Keyframes.d.ts +32 -0
  425. package/Keyframes/Keyframes.js +177 -0
  426. package/Keyframes/index.d.ts +4 -0
  427. package/Keyframes/index.js +27 -0
  428. package/Keyframes/package.json +6 -0
  429. package/Keyframes/useKeyframes.d.ts +1 -0
  430. package/Keyframes/useKeyframes.js +12 -0
  431. package/LICENSE +21 -0
  432. package/Label/Label.d.ts +26 -0
  433. package/Label/Label.js +155 -0
  434. package/Label/index.d.ts +1 -0
  435. package/Label/index.js +8 -0
  436. package/Label/package.json +6 -0
  437. package/Labels/Labels.d.ts +22 -0
  438. package/Labels/Labels.js +102 -0
  439. package/Labels/index.d.ts +1 -0
  440. package/Labels/index.js +8 -0
  441. package/Labels/package.json +6 -0
  442. package/Line/Line.d.ts +24 -0
  443. package/Line/Line.js +178 -0
  444. package/Line/index.d.ts +1 -0
  445. package/Line/index.js +8 -0
  446. package/Line/package.json +6 -0
  447. package/LineChart/LineChart.d.ts +8 -0
  448. package/LineChart/LineChart.js +43 -0
  449. package/LineChart/index.d.ts +1 -0
  450. package/LineChart/index.js +8 -0
  451. package/LineChart/package.json +6 -0
  452. package/LineChartItem/LineChartItem.d.ts +21 -0
  453. package/LineChartItem/LineChartItem.js +188 -0
  454. package/LineChartItem/index.d.ts +1 -0
  455. package/LineChartItem/index.js +8 -0
  456. package/LineChartItem/package.json +6 -0
  457. package/LinearMeter/LinearMeter.d.ts +53 -0
  458. package/LinearMeter/LinearMeter.js +401 -0
  459. package/LinearMeter/index.d.ts +1 -0
  460. package/LinearMeter/index.js +8 -0
  461. package/LinearMeter/package.json +6 -0
  462. package/LinearProgress/LinearProgress.d.ts +15 -0
  463. package/LinearProgress/LinearProgress.js +274 -0
  464. package/LinearProgress/index.d.ts +1 -0
  465. package/LinearProgress/index.js +8 -0
  466. package/LinearProgress/package.json +6 -0
  467. package/Link/Link.d.ts +9 -0
  468. package/Link/Link.js +133 -0
  469. package/Link/index.d.ts +1 -0
  470. package/Link/index.js +8 -0
  471. package/Link/package.json +6 -0
  472. package/Links/Links.d.ts +32 -0
  473. package/Links/Links.js +159 -0
  474. package/Links/index.d.ts +1 -0
  475. package/Links/index.js +8 -0
  476. package/Links/package.json +6 -0
  477. package/List/List.d.ts +17 -0
  478. package/List/List.js +118 -0
  479. package/List/index.d.ts +1 -0
  480. package/List/index.js +8 -0
  481. package/List/package.json +6 -0
  482. package/ListItem/ListItem.d.ts +48 -0
  483. package/ListItem/ListItem.js +363 -0
  484. package/ListItem/index.d.ts +1 -0
  485. package/ListItem/index.js +8 -0
  486. package/ListItem/package.json +6 -0
  487. package/ListSubheader/ListSubheader.d.ts +6 -0
  488. package/ListSubheader/ListSubheader.js +48 -0
  489. package/ListSubheader/index.d.ts +1 -0
  490. package/ListSubheader/index.js +8 -0
  491. package/ListSubheader/package.json +6 -0
  492. package/MainProgress/Context.d.ts +2 -0
  493. package/MainProgress/Context.js +8 -0
  494. package/MainProgress/MainProgress.d.ts +33 -0
  495. package/MainProgress/MainProgress.js +166 -0
  496. package/MainProgress/index.d.ts +4 -0
  497. package/MainProgress/index.js +14 -0
  498. package/MainProgress/package.json +6 -0
  499. package/MainProgress/useMainProgress.d.ts +2 -0
  500. package/MainProgress/useMainProgress.js +12 -0
  501. package/Markdown/Markdown.d.ts +13 -0
  502. package/Markdown/Markdown.js +730 -0
  503. package/Markdown/index.d.ts +1 -0
  504. package/Markdown/index.js +8 -0
  505. package/Markdown/package.json +6 -0
  506. package/Masonry/Masonry.d.ts +11 -0
  507. package/Masonry/Masonry.js +189 -0
  508. package/Masonry/index.d.ts +1 -0
  509. package/Masonry/index.js +8 -0
  510. package/Masonry/package.json +6 -0
  511. package/Medias/Medias.d.ts +31 -0
  512. package/Medias/Medias.js +368 -0
  513. package/Medias/index.d.ts +1 -0
  514. package/Medias/index.js +8 -0
  515. package/Medias/package.json +6 -0
  516. package/Menu/Menu.d.ts +33 -0
  517. package/Menu/Menu.js +249 -0
  518. package/Menu/index.d.ts +1 -0
  519. package/Menu/index.js +8 -0
  520. package/Menu/package.json +6 -0
  521. package/MenuDesktop/MenuDesktop.d.ts +42 -0
  522. package/MenuDesktop/MenuDesktop.js +437 -0
  523. package/MenuDesktop/index.d.ts +1 -0
  524. package/MenuDesktop/index.js +8 -0
  525. package/MenuDesktop/package.json +6 -0
  526. package/MenuItem/MenuItem.d.ts +26 -0
  527. package/MenuItem/MenuItem.js +239 -0
  528. package/MenuItem/index.d.ts +1 -0
  529. package/MenuItem/index.js +8 -0
  530. package/MenuItem/package.json +6 -0
  531. package/Meta/Meta.d.ts +11 -0
  532. package/Meta/Meta.js +58 -0
  533. package/Meta/index.d.ts +1 -0
  534. package/Meta/index.js +8 -0
  535. package/Meta/package.json +6 -0
  536. package/Modal/Modal.d.ts +36 -0
  537. package/Modal/Modal.js +278 -0
  538. package/Modal/index.d.ts +1 -0
  539. package/Modal/index.js +8 -0
  540. package/Modal/package.json +6 -0
  541. package/ModalFooter/ModalFooter.d.ts +6 -0
  542. package/ModalFooter/ModalFooter.js +42 -0
  543. package/ModalFooter/index.d.ts +1 -0
  544. package/ModalFooter/index.js +8 -0
  545. package/ModalFooter/package.json +6 -0
  546. package/ModalHeader/ModalHeader.d.ts +7 -0
  547. package/ModalHeader/ModalHeader.js +42 -0
  548. package/ModalHeader/index.d.ts +1 -0
  549. package/ModalHeader/index.js +8 -0
  550. package/ModalHeader/package.json +6 -0
  551. package/ModalIcon/ModalIcon.d.ts +6 -0
  552. package/ModalIcon/ModalIcon.js +26 -0
  553. package/ModalIcon/index.d.ts +1 -0
  554. package/ModalIcon/index.js +8 -0
  555. package/ModalIcon/package.json +6 -0
  556. package/ModalMain/ModalMain.d.ts +6 -0
  557. package/ModalMain/ModalMain.js +49 -0
  558. package/ModalMain/index.d.ts +1 -0
  559. package/ModalMain/index.js +8 -0
  560. package/ModalMain/package.json +6 -0
  561. package/ModalText/ModalText.d.ts +6 -0
  562. package/ModalText/ModalText.js +40 -0
  563. package/ModalText/index.d.ts +1 -0
  564. package/ModalText/index.js +8 -0
  565. package/ModalText/package.json +6 -0
  566. package/ModalTitle/ModalTitle.d.ts +6 -0
  567. package/ModalTitle/ModalTitle.js +40 -0
  568. package/ModalTitle/index.d.ts +1 -0
  569. package/ModalTitle/index.js +8 -0
  570. package/ModalTitle/package.json +6 -0
  571. package/MoreOptions/MoreOptions.d.ts +9 -0
  572. package/MoreOptions/MoreOptions.js +55 -0
  573. package/MoreOptions/index.d.ts +1 -0
  574. package/MoreOptions/index.js +8 -0
  575. package/MoreOptions/package.json +6 -0
  576. package/Move/Move.d.ts +11 -0
  577. package/Move/Move.js +147 -0
  578. package/Move/index.d.ts +1 -0
  579. package/Move/index.js +8 -0
  580. package/Move/package.json +6 -0
  581. package/NavigationBar/NavigationBar.d.ts +13 -0
  582. package/NavigationBar/NavigationBar.js +114 -0
  583. package/NavigationBar/index.d.ts +1 -0
  584. package/NavigationBar/index.js +8 -0
  585. package/NavigationBar/package.json +6 -0
  586. package/NavigationDrawer/NavigationDrawer.d.ts +16 -0
  587. package/NavigationDrawer/NavigationDrawer.js +222 -0
  588. package/NavigationDrawer/index.d.ts +1 -0
  589. package/NavigationDrawer/index.js +8 -0
  590. package/NavigationDrawer/package.json +6 -0
  591. package/NavigationItem/NavigationItem.d.ts +29 -0
  592. package/NavigationItem/NavigationItem.js +294 -0
  593. package/NavigationItem/index.d.ts +1 -0
  594. package/NavigationItem/index.js +8 -0
  595. package/NavigationItem/package.json +6 -0
  596. package/NavigationRail/NavigationRail.d.ts +19 -0
  597. package/NavigationRail/NavigationRail.js +156 -0
  598. package/NavigationRail/index.d.ts +1 -0
  599. package/NavigationRail/index.js +8 -0
  600. package/NavigationRail/package.json +6 -0
  601. package/NotFound/NotFound.d.ts +15 -0
  602. package/NotFound/NotFound.js +68 -0
  603. package/NotFound/index.d.ts +1 -0
  604. package/NotFound/index.js +8 -0
  605. package/NotFound/package.json +6 -0
  606. package/NumericTextField/NumericTextField.d.ts +16 -0
  607. package/NumericTextField/NumericTextField.js +217 -0
  608. package/NumericTextField/index.d.ts +1 -0
  609. package/NumericTextField/index.js +8 -0
  610. package/NumericTextField/package.json +6 -0
  611. package/Page/Page.d.ts +18 -0
  612. package/Page/Page.js +70 -0
  613. package/Page/index.d.ts +1 -0
  614. package/Page/index.js +8 -0
  615. package/Page/package.json +6 -0
  616. package/PageTransition/PageTransition.d.ts +12 -0
  617. package/PageTransition/PageTransition.js +108 -0
  618. package/PageTransition/index.d.ts +1 -0
  619. package/PageTransition/index.js +8 -0
  620. package/PageTransition/package.json +6 -0
  621. package/Pagination/Pagination.d.ts +29 -0
  622. package/Pagination/Pagination.js +101 -0
  623. package/Pagination/index.d.ts +1 -0
  624. package/Pagination/index.js +8 -0
  625. package/Pagination/package.json +6 -0
  626. package/PaginationItem/PaginationItem.d.ts +8 -0
  627. package/PaginationItem/PaginationItem.js +69 -0
  628. package/PaginationItem/index.d.ts +1 -0
  629. package/PaginationItem/index.js +8 -0
  630. package/PaginationItem/package.json +6 -0
  631. package/Parallax/Parallax.d.ts +15 -0
  632. package/Parallax/Parallax.js +150 -0
  633. package/Parallax/index.d.ts +1 -0
  634. package/Parallax/index.js +8 -0
  635. package/Parallax/package.json +6 -0
  636. package/Path/Path.d.ts +7 -0
  637. package/Path/Path.js +38 -0
  638. package/Path/index.d.ts +1 -0
  639. package/Path/index.js +8 -0
  640. package/Path/package.json +6 -0
  641. package/PieChart/PieChart.d.ts +6 -0
  642. package/PieChart/PieChart.js +276 -0
  643. package/PieChart/index.d.ts +1 -0
  644. package/PieChart/index.js +8 -0
  645. package/PieChart/package.json +6 -0
  646. package/Placeholder/Placeholder.d.ts +12 -0
  647. package/Placeholder/Placeholder.js +125 -0
  648. package/Placeholder/index.d.ts +1 -0
  649. package/Placeholder/index.js +8 -0
  650. package/Placeholder/package.json +6 -0
  651. package/Portal/Portal.d.ts +7 -0
  652. package/Portal/Portal.js +41 -0
  653. package/Portal/index.d.ts +1 -0
  654. package/Portal/index.js +8 -0
  655. package/Portal/package.json +6 -0
  656. package/Properties/Properties.d.ts +18 -0
  657. package/Properties/Properties.js +67 -0
  658. package/Properties/index.d.ts +1 -0
  659. package/Properties/index.js +8 -0
  660. package/Properties/package.json +6 -0
  661. package/Property/Property.d.ts +18 -0
  662. package/Property/Property.js +113 -0
  663. package/Property/index.d.ts +1 -0
  664. package/Property/index.js +8 -0
  665. package/Property/package.json +6 -0
  666. package/README.MD +85 -0
  667. package/Radio/Radio.d.ts +16 -0
  668. package/Radio/Radio.js +187 -0
  669. package/Radio/index.d.ts +1 -0
  670. package/Radio/index.js +8 -0
  671. package/Radio/package.json +6 -0
  672. package/Radios/Radios.d.ts +23 -0
  673. package/Radios/Radios.js +96 -0
  674. package/Radios/index.d.ts +1 -0
  675. package/Radios/index.js +8 -0
  676. package/Radios/package.json +6 -0
  677. package/Rating/Rating.d.ts +31 -0
  678. package/Rating/Rating.js +372 -0
  679. package/Rating/index.d.ts +1 -0
  680. package/Rating/index.js +8 -0
  681. package/Rating/package.json +6 -0
  682. package/Reset/Reset.d.ts +6 -0
  683. package/Reset/Reset.js +27 -0
  684. package/Reset/index.d.ts +1 -0
  685. package/Reset/index.js +8 -0
  686. package/Reset/package.json +6 -0
  687. package/Reveal/Reveal.d.ts +22 -0
  688. package/Reveal/Reveal.js +92 -0
  689. package/Reveal/index.d.ts +1 -0
  690. package/Reveal/index.js +8 -0
  691. package/Reveal/package.json +6 -0
  692. package/RichTextEditor/RichTextEditor.d.ts +76 -0
  693. package/RichTextEditor/RichTextEditor.js +1011 -0
  694. package/RichTextEditor/index.d.ts +1 -0
  695. package/RichTextEditor/index.js +8 -0
  696. package/RichTextEditor/package.json +6 -0
  697. package/RoundMeter/RoundMeter.d.ts +50 -0
  698. package/RoundMeter/RoundMeter.js +554 -0
  699. package/RoundMeter/index.d.ts +1 -0
  700. package/RoundMeter/index.js +8 -0
  701. package/RoundMeter/package.json +6 -0
  702. package/RoundProgress/RoundProgress.d.ts +16 -0
  703. package/RoundProgress/RoundProgress.js +183 -0
  704. package/RoundProgress/index.d.ts +1 -0
  705. package/RoundProgress/index.js +8 -0
  706. package/RoundProgress/package.json +6 -0
  707. package/ScatterChart/ScatterChart.d.ts +6 -0
  708. package/ScatterChart/ScatterChart.js +43 -0
  709. package/ScatterChart/index.d.ts +1 -0
  710. package/ScatterChart/index.js +8 -0
  711. package/ScatterChart/package.json +6 -0
  712. package/ScatterChartItem/ScatterChartItem.d.ts +19 -0
  713. package/ScatterChartItem/ScatterChartItem.js +158 -0
  714. package/ScatterChartItem/index.d.ts +1 -0
  715. package/ScatterChartItem/index.js +8 -0
  716. package/ScatterChartItem/package.json +6 -0
  717. package/ScreenCapture/ScreenCapture.d.ts +30 -0
  718. package/ScreenCapture/ScreenCapture.js +343 -0
  719. package/ScreenCapture/index.d.ts +1 -0
  720. package/ScreenCapture/index.js +8 -0
  721. package/ScreenCapture/package.json +6 -0
  722. package/Section/Section.d.ts +33 -0
  723. package/Section/Section.js +357 -0
  724. package/Section/index.d.ts +1 -0
  725. package/Section/index.js +8 -0
  726. package/Section/package.json +6 -0
  727. package/SectionAction/SectionAction.d.ts +11 -0
  728. package/SectionAction/SectionAction.js +63 -0
  729. package/SectionAction/index.d.ts +1 -0
  730. package/SectionAction/index.js +8 -0
  731. package/SectionAction/package.json +6 -0
  732. package/SectionBoxes/SectionBoxes.d.ts +33 -0
  733. package/SectionBoxes/SectionBoxes.js +211 -0
  734. package/SectionBoxes/index.d.ts +1 -0
  735. package/SectionBoxes/index.js +8 -0
  736. package/SectionBoxes/package.json +6 -0
  737. package/SectionCards/SectionCards.d.ts +33 -0
  738. package/SectionCards/SectionCards.js +221 -0
  739. package/SectionCards/index.d.ts +1 -0
  740. package/SectionCards/index.js +8 -0
  741. package/SectionCards/package.json +6 -0
  742. package/SectionCarousel/SectionCarousel.d.ts +32 -0
  743. package/SectionCarousel/SectionCarousel.js +246 -0
  744. package/SectionCarousel/index.d.ts +1 -0
  745. package/SectionCarousel/index.js +8 -0
  746. package/SectionCarousel/package.json +6 -0
  747. package/SectionContact/SectionContact.d.ts +27 -0
  748. package/SectionContact/SectionContact.js +124 -0
  749. package/SectionContact/index.d.ts +1 -0
  750. package/SectionContact/index.js +8 -0
  751. package/SectionContact/package.json +6 -0
  752. package/SectionImageGallery/SectionImageGallery.d.ts +11 -0
  753. package/SectionImageGallery/SectionImageGallery.js +54 -0
  754. package/SectionImageGallery/index.d.ts +1 -0
  755. package/SectionImageGallery/index.js +8 -0
  756. package/SectionImageGallery/package.json +6 -0
  757. package/SectionLogos/SectionLogos.d.ts +14 -0
  758. package/SectionLogos/SectionLogos.js +115 -0
  759. package/SectionLogos/index.d.ts +1 -0
  760. package/SectionLogos/index.js +8 -0
  761. package/SectionLogos/package.json +6 -0
  762. package/SectionMedia/SectionMedia.d.ts +16 -0
  763. package/SectionMedia/SectionMedia.js +155 -0
  764. package/SectionMedia/index.d.ts +1 -0
  765. package/SectionMedia/index.js +8 -0
  766. package/SectionMedia/package.json +6 -0
  767. package/SectionReviews/SectionReviews.d.ts +23 -0
  768. package/SectionReviews/SectionReviews.js +134 -0
  769. package/SectionReviews/index.d.ts +1 -0
  770. package/SectionReviews/index.js +8 -0
  771. package/SectionReviews/package.json +6 -0
  772. package/SectionTextMedia/SectionTextMedia.d.ts +28 -0
  773. package/SectionTextMedia/SectionTextMedia.js +148 -0
  774. package/SectionTextMedia/index.d.ts +1 -0
  775. package/SectionTextMedia/index.js +8 -0
  776. package/SectionTextMedia/package.json +6 -0
  777. package/SectionTimeline/SectionTimeline.d.ts +21 -0
  778. package/SectionTimeline/SectionTimeline.js +100 -0
  779. package/SectionTimeline/index.d.ts +1 -0
  780. package/SectionTimeline/index.js +8 -0
  781. package/SectionTimeline/package.json +6 -0
  782. package/SectionWatch/SectionWatch.d.ts +14 -0
  783. package/SectionWatch/SectionWatch.js +56 -0
  784. package/SectionWatch/index.d.ts +1 -0
  785. package/SectionWatch/index.js +8 -0
  786. package/SectionWatch/package.json +6 -0
  787. package/Select/Select.d.ts +29 -0
  788. package/Select/Select.js +413 -0
  789. package/Select/index.d.ts +1 -0
  790. package/Select/index.js +8 -0
  791. package/Select/package.json +6 -0
  792. package/Share/Share.d.ts +37 -0
  793. package/Share/Share.js +338 -0
  794. package/Share/index.d.ts +1 -0
  795. package/Share/index.js +8 -0
  796. package/Share/package.json +6 -0
  797. package/Slide/Slide.d.ts +12 -0
  798. package/Slide/Slide.js +146 -0
  799. package/Slide/index.d.ts +1 -0
  800. package/Slide/index.js +8 -0
  801. package/Slide/package.json +6 -0
  802. package/Slider/Slider.d.ts +36 -0
  803. package/Slider/Slider.js +851 -0
  804. package/Slider/index.d.ts +1 -0
  805. package/Slider/index.js +8 -0
  806. package/Slider/package.json +6 -0
  807. package/SmartTextField/SmartTextField.d.ts +19 -0
  808. package/SmartTextField/SmartTextField.js +796 -0
  809. package/SmartTextField/index.d.ts +1 -0
  810. package/SmartTextField/index.js +8 -0
  811. package/SmartTextField/package.json +6 -0
  812. package/Snackbar/Snackbar.d.ts +26 -0
  813. package/Snackbar/Snackbar.js +191 -0
  814. package/Snackbar/index.d.ts +1 -0
  815. package/Snackbar/index.js +8 -0
  816. package/Snackbar/package.json +6 -0
  817. package/Snackbars/Context.d.ts +7 -0
  818. package/Snackbars/Context.js +8 -0
  819. package/Snackbars/Snackbars.d.ts +15 -0
  820. package/Snackbars/Snackbars.js +216 -0
  821. package/Snackbars/index.d.ts +4 -0
  822. package/Snackbars/index.js +14 -0
  823. package/Snackbars/package.json +6 -0
  824. package/Snackbars/useSnackbars.d.ts +2 -0
  825. package/Snackbars/useSnackbars.js +12 -0
  826. package/Space/Space.d.ts +36 -0
  827. package/Space/Space.js +1003 -0
  828. package/Space/index.d.ts +2 -0
  829. package/Space/index.js +23 -0
  830. package/Space/package.json +6 -0
  831. package/SpeechToText/SpeechToText.d.ts +29 -0
  832. package/SpeechToText/SpeechToText.js +177 -0
  833. package/SpeechToText/index.d.ts +1 -0
  834. package/SpeechToText/index.js +8 -0
  835. package/SpeechToText/package.json +6 -0
  836. package/SpeedDial/SpeedDial.d.ts +36 -0
  837. package/SpeedDial/SpeedDial.js +413 -0
  838. package/SpeedDial/index.d.ts +1 -0
  839. package/SpeedDial/index.js +8 -0
  840. package/SpeedDial/package.json +6 -0
  841. package/SpeedDialItem/SpeedDialItem.d.ts +22 -0
  842. package/SpeedDialItem/SpeedDialItem.js +69 -0
  843. package/SpeedDialItem/index.d.ts +1 -0
  844. package/SpeedDialItem/index.js +8 -0
  845. package/SpeedDialItem/package.json +6 -0
  846. package/SpyScroll/SpyScroll.d.ts +13 -0
  847. package/SpyScroll/SpyScroll.js +147 -0
  848. package/SpyScroll/index.d.ts +1 -0
  849. package/SpyScroll/index.js +8 -0
  850. package/SpyScroll/package.json +6 -0
  851. package/Step/Step.d.ts +27 -0
  852. package/Step/Step.js +131 -0
  853. package/Step/index.d.ts +1 -0
  854. package/Step/index.js +8 -0
  855. package/Step/package.json +6 -0
  856. package/Stepper/Stepper.d.ts +21 -0
  857. package/Stepper/Stepper.js +143 -0
  858. package/Stepper/index.d.ts +1 -0
  859. package/Stepper/index.js +8 -0
  860. package/Stepper/package.json +6 -0
  861. package/Surface/Surface.d.ts +15 -0
  862. package/Surface/Surface.js +809 -0
  863. package/Surface/index.d.ts +1 -0
  864. package/Surface/index.js +8 -0
  865. package/Surface/package.json +6 -0
  866. package/Switch/Switch.d.ts +18 -0
  867. package/Switch/Switch.js +544 -0
  868. package/Switch/index.d.ts +1 -0
  869. package/Switch/index.js +8 -0
  870. package/Switch/package.json +6 -0
  871. package/Tab/Tab.d.ts +22 -0
  872. package/Tab/Tab.js +149 -0
  873. package/Tab/index.d.ts +1 -0
  874. package/Tab/index.js +8 -0
  875. package/Tab/package.json +6 -0
  876. package/Table/Table.d.ts +13 -0
  877. package/Table/Table.js +81 -0
  878. package/Table/index.d.ts +1 -0
  879. package/Table/index.js +8 -0
  880. package/Table/package.json +6 -0
  881. package/TableBody/TableBody.d.ts +9 -0
  882. package/TableBody/TableBody.js +68 -0
  883. package/TableBody/index.d.ts +1 -0
  884. package/TableBody/index.js +8 -0
  885. package/TableBody/package.json +6 -0
  886. package/TableCell/TableCell.d.ts +27 -0
  887. package/TableCell/TableCell.js +226 -0
  888. package/TableCell/index.d.ts +1 -0
  889. package/TableCell/index.js +8 -0
  890. package/TableCell/package.json +6 -0
  891. package/TableFooter/TableFooter.d.ts +8 -0
  892. package/TableFooter/TableFooter.js +51 -0
  893. package/TableFooter/index.d.ts +1 -0
  894. package/TableFooter/index.js +8 -0
  895. package/TableFooter/package.json +6 -0
  896. package/TableHead/TableHead.d.ts +13 -0
  897. package/TableHead/TableHead.js +124 -0
  898. package/TableHead/index.d.ts +1 -0
  899. package/TableHead/index.js +8 -0
  900. package/TableHead/package.json +6 -0
  901. package/TableHeader/TableHeader.d.ts +8 -0
  902. package/TableHeader/TableHeader.js +53 -0
  903. package/TableHeader/index.d.ts +1 -0
  904. package/TableHeader/index.js +8 -0
  905. package/TableHeader/package.json +6 -0
  906. package/TablePagination/TablePagination.d.ts +29 -0
  907. package/TablePagination/TablePagination.js +100 -0
  908. package/TablePagination/index.d.ts +1 -0
  909. package/TablePagination/index.js +8 -0
  910. package/TablePagination/package.json +6 -0
  911. package/TableRow/TableRow.d.ts +11 -0
  912. package/TableRow/TableRow.js +68 -0
  913. package/TableRow/index.d.ts +1 -0
  914. package/TableRow/index.js +8 -0
  915. package/TableRow/package.json +6 -0
  916. package/Tabs/Tabs.d.ts +28 -0
  917. package/Tabs/Tabs.js +387 -0
  918. package/Tabs/index.d.ts +1 -0
  919. package/Tabs/index.js +8 -0
  920. package/Tabs/package.json +6 -0
  921. package/Text/Text.d.ts +16 -0
  922. package/Text/Text.js +118 -0
  923. package/Text/index.d.ts +1 -0
  924. package/Text/index.js +8 -0
  925. package/Text/package.json +6 -0
  926. package/TextField/TextField.d.ts +64 -0
  927. package/TextField/TextField.js +850 -0
  928. package/TextField/index.d.ts +1 -0
  929. package/TextField/index.js +8 -0
  930. package/TextField/package.json +6 -0
  931. package/TextToSpeech/TextToSpeech.d.ts +28 -0
  932. package/TextToSpeech/TextToSpeech.js +157 -0
  933. package/TextToSpeech/index.d.ts +1 -0
  934. package/TextToSpeech/index.js +8 -0
  935. package/TextToSpeech/package.json +6 -0
  936. package/TimePicker/TimePicker.d.ts +72 -0
  937. package/TimePicker/TimePicker.js +736 -0
  938. package/TimePicker/index.d.ts +1 -0
  939. package/TimePicker/index.js +8 -0
  940. package/TimePicker/package.json +6 -0
  941. package/TimeRangePicker/TimeRangePicker.d.ts +6 -0
  942. package/TimeRangePicker/TimeRangePicker.js +40 -0
  943. package/TimeRangePicker/index.d.ts +1 -0
  944. package/TimeRangePicker/index.js +8 -0
  945. package/TimeRangePicker/package.json +6 -0
  946. package/Timeline/Timeline.d.ts +7 -0
  947. package/Timeline/Timeline.js +43 -0
  948. package/Timeline/index.d.ts +1 -0
  949. package/Timeline/index.js +8 -0
  950. package/Timeline/package.json +6 -0
  951. package/TimelineItem/TimelineItem.d.ts +14 -0
  952. package/TimelineItem/TimelineItem.js +152 -0
  953. package/TimelineItem/index.d.ts +1 -0
  954. package/TimelineItem/index.js +8 -0
  955. package/TimelineItem/package.json +6 -0
  956. package/Timer/Timer.d.ts +23 -0
  957. package/Timer/Timer.js +208 -0
  958. package/Timer/index.d.ts +1 -0
  959. package/Timer/index.js +8 -0
  960. package/Timer/package.json +6 -0
  961. package/ToggleButton/ToggleButton.d.ts +6 -0
  962. package/ToggleButton/ToggleButton.js +61 -0
  963. package/ToggleButton/index.d.ts +1 -0
  964. package/ToggleButton/index.js +8 -0
  965. package/ToggleButton/package.json +6 -0
  966. package/ToggleButtons/ToggleButtons.d.ts +6 -0
  967. package/ToggleButtons/ToggleButtons.js +40 -0
  968. package/ToggleButtons/index.d.ts +1 -0
  969. package/ToggleButtons/index.js +8 -0
  970. package/ToggleButtons/package.json +6 -0
  971. package/Tooltip/Tooltip.d.ts +46 -0
  972. package/Tooltip/Tooltip.js +439 -0
  973. package/Tooltip/index.d.ts +1 -0
  974. package/Tooltip/index.js +8 -0
  975. package/Tooltip/package.json +6 -0
  976. package/TopAppBar/TopAppBar.d.ts +14 -0
  977. package/TopAppBar/TopAppBar.js +200 -0
  978. package/TopAppBar/index.d.ts +1 -0
  979. package/TopAppBar/index.js +8 -0
  980. package/TopAppBar/package.json +6 -0
  981. package/Transition/Context.d.ts +3 -0
  982. package/Transition/Context.js +8 -0
  983. package/Transition/Transition.d.ts +46 -0
  984. package/Transition/Transition.js +347 -0
  985. package/Transition/index.d.ts +4 -0
  986. package/Transition/index.js +27 -0
  987. package/Transition/package.json +6 -0
  988. package/Transition/useTransition.d.ts +1 -0
  989. package/Transition/useTransition.js +12 -0
  990. package/Transitions/Transitions.d.ts +12 -0
  991. package/Transitions/Transitions.js +186 -0
  992. package/Transitions/index.d.ts +1 -0
  993. package/Transitions/index.js +8 -0
  994. package/Transitions/package.json +6 -0
  995. package/Tree/Tree.d.ts +38 -0
  996. package/Tree/Tree.js +322 -0
  997. package/Tree/index.d.ts +1 -0
  998. package/Tree/index.js +8 -0
  999. package/Tree/package.json +6 -0
  1000. package/Type/Type.d.ts +18 -0
  1001. package/Type/Type.js +154 -0
  1002. package/Type/index.d.ts +1 -0
  1003. package/Type/index.js +8 -0
  1004. package/Type/package.json +6 -0
  1005. package/VideoPlayer/VideoPlayer.d.ts +61 -0
  1006. package/VideoPlayer/VideoPlayer.js +670 -0
  1007. package/VideoPlayer/index.d.ts +1 -0
  1008. package/VideoPlayer/index.js +8 -0
  1009. package/VideoPlayer/package.json +6 -0
  1010. package/ViewSplit/ViewSplit.d.ts +24 -0
  1011. package/ViewSplit/ViewSplit.js +407 -0
  1012. package/ViewSplit/index.d.ts +1 -0
  1013. package/ViewSplit/index.js +8 -0
  1014. package/ViewSplit/package.json +6 -0
  1015. package/Watch/Watch.d.ts +23 -0
  1016. package/Watch/Watch.js +295 -0
  1017. package/Watch/index.d.ts +1 -0
  1018. package/Watch/index.js +8 -0
  1019. package/Watch/package.json +6 -0
  1020. package/Weather/Weather.d.ts +27 -0
  1021. package/Weather/Weather.js +254 -0
  1022. package/Weather/index.d.ts +1 -0
  1023. package/Weather/index.js +8 -0
  1024. package/Weather/package.json +6 -0
  1025. package/Widgets/Context.d.ts +2 -0
  1026. package/Widgets/Context.js +8 -0
  1027. package/Widgets/Widgets.d.ts +24 -0
  1028. package/Widgets/Widgets.js +176 -0
  1029. package/Widgets/index.d.ts +4 -0
  1030. package/Widgets/index.js +14 -0
  1031. package/Widgets/package.json +6 -0
  1032. package/Widgets/useWidgets.d.ts +2 -0
  1033. package/Widgets/useWidgets.js +12 -0
  1034. package/WindowSplit/WindowSplit.d.ts +29 -0
  1035. package/WindowSplit/WindowSplit.js +346 -0
  1036. package/WindowSplit/index.d.ts +1 -0
  1037. package/WindowSplit/index.js +8 -0
  1038. package/WindowSplit/package.json +6 -0
  1039. package/Zoom/Zoom.d.ts +6 -0
  1040. package/Zoom/Zoom.js +104 -0
  1041. package/Zoom/index.d.ts +1 -0
  1042. package/Zoom/index.js +8 -0
  1043. package/Zoom/package.json +6 -0
  1044. package/esm/Accordion/Accordion.js +321 -0
  1045. package/esm/Accordion/index.js +1 -0
  1046. package/esm/AdvancedTextField/AdvancedTextField.js +158 -0
  1047. package/esm/AdvancedTextField/index.js +1 -0
  1048. package/esm/Append/Append.js +495 -0
  1049. package/esm/Append/index.js +1 -0
  1050. package/esm/AreaChart/AreaChart.js +40 -0
  1051. package/esm/AreaChart/index.js +1 -0
  1052. package/esm/AreaChartItem/AreaChartItem.js +315 -0
  1053. package/esm/AreaChartItem/index.js +1 -0
  1054. package/esm/AudioPlayer/AudioPlayer.js +678 -0
  1055. package/esm/AudioPlayer/index.js +1 -0
  1056. package/esm/AudioRecorder/AudioRecorder.js +311 -0
  1057. package/esm/AudioRecorder/index.js +1 -0
  1058. package/esm/AutoComplete/AutoComplete.js +670 -0
  1059. package/esm/AutoComplete/index.js +1 -0
  1060. package/esm/AutoCompleteCountry/AutoCompleteCountry.js +80 -0
  1061. package/esm/AutoCompleteCountry/index.js +1 -0
  1062. package/esm/AutoCompleteCurrency/AutoCompleteCurrency.js +61 -0
  1063. package/esm/AutoCompleteCurrency/index.js +1 -0
  1064. package/esm/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.js +107 -0
  1065. package/esm/AutoCompleteGooglePlaces/index.js +1 -0
  1066. package/esm/Avatar/Avatar.js +103 -0
  1067. package/esm/Avatar/index.js +1 -0
  1068. package/esm/AvatarGroup/AvatarGroup.js +89 -0
  1069. package/esm/AvatarGroup/index.js +1 -0
  1070. package/esm/Backdrop/Backdrop.js +145 -0
  1071. package/esm/Backdrop/index.js +1 -0
  1072. package/esm/Badge/Badge.js +105 -0
  1073. package/esm/Badge/index.js +1 -0
  1074. package/esm/Banner/Banner.js +111 -0
  1075. package/esm/Banner/index.js +1 -0
  1076. package/esm/BottomAppBar/BottomAppBar.js +216 -0
  1077. package/esm/BottomAppBar/index.js +1 -0
  1078. package/esm/BottomSheet/BottomSheet.js +57 -0
  1079. package/esm/BottomSheet/index.js +1 -0
  1080. package/esm/Box/Box.js +36 -0
  1081. package/esm/Box/index.js +1 -0
  1082. package/esm/Breadcrumbs/Breadcrumbs.js +155 -0
  1083. package/esm/Breadcrumbs/index.js +1 -0
  1084. package/esm/BubbleChart/BubbleChart.js +231 -0
  1085. package/esm/BubbleChart/index.js +1 -0
  1086. package/esm/BubbleChartItem/BubbleChartItem.js +210 -0
  1087. package/esm/BubbleChartItem/index.js +1 -0
  1088. package/esm/Button/Button.js +473 -0
  1089. package/esm/Button/index.js +1 -0
  1090. package/esm/Buttons/Buttons.js +356 -0
  1091. package/esm/Buttons/index.js +1 -0
  1092. package/esm/Calendar/Calendar.js +667 -0
  1093. package/esm/Calendar/index.js +1 -0
  1094. package/esm/CalendarAvailability/CalendarAvailability.js +640 -0
  1095. package/esm/CalendarAvailability/index.js +1 -0
  1096. package/esm/CalendarMenu/CalendarMenu.js +388 -0
  1097. package/esm/CalendarMenu/index.js +1 -0
  1098. package/esm/CalendarMonth/CalendarMonth.js +520 -0
  1099. package/esm/CalendarMonth/index.js +1 -0
  1100. package/esm/CalendarViews/CalendarViews.js +360 -0
  1101. package/esm/CalendarViews/index.js +1 -0
  1102. package/esm/CalendarWeek/CalendarWeek.js +486 -0
  1103. package/esm/CalendarWeek/index.js +1 -0
  1104. package/esm/Card/Card.js +119 -0
  1105. package/esm/Card/index.js +1 -0
  1106. package/esm/CardButton/CardButton.js +69 -0
  1107. package/esm/CardButton/index.js +1 -0
  1108. package/esm/CardFooter/CardFooter.js +48 -0
  1109. package/esm/CardFooter/index.js +1 -0
  1110. package/esm/CardHeader/CardHeader.js +51 -0
  1111. package/esm/CardHeader/index.js +1 -0
  1112. package/esm/CardImage/CardImage.js +72 -0
  1113. package/esm/CardImage/index.js +1 -0
  1114. package/esm/CardMain/CardMain.js +43 -0
  1115. package/esm/CardMain/index.js +1 -0
  1116. package/esm/Carousel/Carousel.js +1008 -0
  1117. package/esm/Carousel/index.js +1 -0
  1118. package/esm/Chart/Chart.js +1295 -0
  1119. package/esm/Chart/index.js +1 -0
  1120. package/esm/Checkbox/Checkbox.js +334 -0
  1121. package/esm/Checkbox/index.js +1 -0
  1122. package/esm/Chip/Chip.js +125 -0
  1123. package/esm/Chip/index.js +1 -0
  1124. package/esm/Chips/Chips.js +115 -0
  1125. package/esm/Chips/index.js +1 -0
  1126. package/esm/ClickListener/ClickListener.js +77 -0
  1127. package/esm/ClickListener/index.js +1 -0
  1128. package/esm/Clock/Clock.js +466 -0
  1129. package/esm/Clock/index.js +1 -0
  1130. package/esm/ColorTextField/ColorTextField.js +214 -0
  1131. package/esm/ColorTextField/index.js +1 -0
  1132. package/esm/ColumnChart/ColumnChart.js +50 -0
  1133. package/esm/ColumnChart/index.js +1 -0
  1134. package/esm/ColumnChartItem/ColumnChartItem.js +190 -0
  1135. package/esm/ColumnChartItem/index.js +1 -0
  1136. package/esm/Confirm/Confirm.js +155 -0
  1137. package/esm/Confirm/Context.js +3 -0
  1138. package/esm/Confirm/index.js +4 -0
  1139. package/esm/Confirm/useConfirm.js +6 -0
  1140. package/esm/Container/Container.js +145 -0
  1141. package/esm/Container/index.js +1 -0
  1142. package/esm/Countdown/Countdown.js +376 -0
  1143. package/esm/Countdown/index.js +1 -0
  1144. package/esm/DatePicker/DatePicker.js +751 -0
  1145. package/esm/DatePicker/index.js +1 -0
  1146. package/esm/DateRangePicker/DateRangePicker.js +34 -0
  1147. package/esm/DateRangePicker/index.js +1 -0
  1148. package/esm/DateTimePicker/DateTimePicker.js +645 -0
  1149. package/esm/DateTimePicker/index.js +1 -0
  1150. package/esm/DateTimeRangePicker/DateTimeRangePicker.js +34 -0
  1151. package/esm/DateTimeRangePicker/index.js +1 -0
  1152. package/esm/Divider/Divider.js +183 -0
  1153. package/esm/Divider/index.js +1 -0
  1154. package/esm/DonutChart/DonutChart.js +40 -0
  1155. package/esm/DonutChart/index.js +1 -0
  1156. package/esm/DragAndDropList/DragAndDropList.js +153 -0
  1157. package/esm/DragAndDropList/index.js +1 -0
  1158. package/esm/Drawing/Drawing.js +803 -0
  1159. package/esm/Drawing/index.js +1 -0
  1160. package/esm/DropZone/DropZone.js +215 -0
  1161. package/esm/DropZone/index.js +1 -0
  1162. package/esm/Emojis/Emojis.js +368 -0
  1163. package/esm/Emojis/emojis_list.js +7274 -0
  1164. package/esm/Emojis/index.js +2 -0
  1165. package/esm/Expand/Expand.js +196 -0
  1166. package/esm/Expand/index.js +1 -0
  1167. package/esm/Fab/Fab.js +36 -0
  1168. package/esm/Fab/index.js +1 -0
  1169. package/esm/Fade/Fade.js +125 -0
  1170. package/esm/Fade/index.js +1 -0
  1171. package/esm/FileChoose/FileChoose.js +197 -0
  1172. package/esm/FileChoose/index.js +1 -0
  1173. package/esm/Focus/Focus.js +84 -0
  1174. package/esm/Focus/index.js +1 -0
  1175. package/esm/Form/Form.js +180 -0
  1176. package/esm/Form/index.js +1 -0
  1177. package/esm/FormRow/FormRow.js +111 -0
  1178. package/esm/FormRow/index.js +1 -0
  1179. package/esm/Forms/Forms.js +45 -0
  1180. package/esm/Forms/index.js +1 -0
  1181. package/esm/Frame/Frame.js +194 -0
  1182. package/esm/Frame/index.js +1 -0
  1183. package/esm/Grid/Grid.js +218 -0
  1184. package/esm/Grid/index.js +1 -0
  1185. package/esm/Grow/Grow.js +131 -0
  1186. package/esm/Grow/index.js +1 -0
  1187. package/esm/HTMLCanvas/HTMLCanvas.js +723 -0
  1188. package/esm/HTMLCanvas/index.js +2 -0
  1189. package/esm/IFrame/IFrame.js +120 -0
  1190. package/esm/IFrame/index.js +1 -0
  1191. package/esm/Icon/Icon.js +104 -0
  1192. package/esm/Icon/index.js +2 -0
  1193. package/esm/IconButton/IconButton.js +39 -0
  1194. package/esm/IconButton/index.js +1 -0
  1195. package/esm/Image/Image.js +273 -0
  1196. package/esm/Image/index.js +1 -0
  1197. package/esm/ImageCrop/ImageCrop.js +1076 -0
  1198. package/esm/ImageCrop/index.js +1 -0
  1199. package/esm/ImageEdit/ImageEdit.js +1049 -0
  1200. package/esm/ImageEdit/index.js +1 -0
  1201. package/esm/ImageGallery/ImageGallery.js +500 -0
  1202. package/esm/ImageGallery/index.js +1 -0
  1203. package/esm/ImageList/ImageList.js +131 -0
  1204. package/esm/ImageList/index.js +1 -0
  1205. package/esm/ImageListItem/ImageListItem.js +93 -0
  1206. package/esm/ImageListItem/index.js +1 -0
  1207. package/esm/ImageListItemBox/ImageListItemBox.js +51 -0
  1208. package/esm/ImageListItemBox/index.js +1 -0
  1209. package/esm/Info/Info.js +77 -0
  1210. package/esm/Info/index.js +1 -0
  1211. package/esm/Interaction/Interaction.js +402 -0
  1212. package/esm/Interaction/index.js +1 -0
  1213. package/esm/Keyframes/Context.js +3 -0
  1214. package/esm/Keyframes/Keyframes.js +183 -0
  1215. package/esm/Keyframes/index.js +4 -0
  1216. package/esm/Keyframes/useKeyframes.js +6 -0
  1217. package/esm/Label/Label.js +161 -0
  1218. package/esm/Label/index.js +1 -0
  1219. package/esm/Labels/Labels.js +114 -0
  1220. package/esm/Labels/index.js +1 -0
  1221. package/esm/Line/Line.js +287 -0
  1222. package/esm/Line/index.js +1 -0
  1223. package/esm/LineChart/LineChart.js +44 -0
  1224. package/esm/LineChart/index.js +1 -0
  1225. package/esm/LineChartItem/LineChartItem.js +228 -0
  1226. package/esm/LineChartItem/index.js +1 -0
  1227. package/esm/LinearMeter/LinearMeter.js +465 -0
  1228. package/esm/LinearMeter/index.js +1 -0
  1229. package/esm/LinearProgress/LinearProgress.js +333 -0
  1230. package/esm/LinearProgress/index.js +1 -0
  1231. package/esm/Link/Link.js +175 -0
  1232. package/esm/Link/index.js +1 -0
  1233. package/esm/Links/Links.js +241 -0
  1234. package/esm/Links/index.js +1 -0
  1235. package/esm/List/List.js +137 -0
  1236. package/esm/List/index.js +1 -0
  1237. package/esm/ListItem/ListItem.js +369 -0
  1238. package/esm/ListItem/index.js +1 -0
  1239. package/esm/ListSubheader/ListSubheader.js +43 -0
  1240. package/esm/ListSubheader/index.js +1 -0
  1241. package/esm/MainProgress/Context.js +3 -0
  1242. package/esm/MainProgress/MainProgress.js +182 -0
  1243. package/esm/MainProgress/index.js +4 -0
  1244. package/esm/MainProgress/useMainProgress.js +6 -0
  1245. package/esm/Markdown/Markdown.js +795 -0
  1246. package/esm/Markdown/index.js +1 -0
  1247. package/esm/Masonry/Masonry.js +202 -0
  1248. package/esm/Masonry/index.js +1 -0
  1249. package/esm/Medias/Medias.js +379 -0
  1250. package/esm/Medias/index.js +1 -0
  1251. package/esm/Menu/Menu.js +251 -0
  1252. package/esm/Menu/index.js +1 -0
  1253. package/esm/MenuDesktop/MenuDesktop.js +475 -0
  1254. package/esm/MenuDesktop/index.js +1 -0
  1255. package/esm/MenuItem/MenuItem.js +265 -0
  1256. package/esm/MenuItem/index.js +1 -0
  1257. package/esm/Meta/Meta.js +65 -0
  1258. package/esm/Meta/index.js +1 -0
  1259. package/esm/Modal/Modal.js +312 -0
  1260. package/esm/Modal/index.js +1 -0
  1261. package/esm/ModalFooter/ModalFooter.js +40 -0
  1262. package/esm/ModalFooter/index.js +1 -0
  1263. package/esm/ModalHeader/ModalHeader.js +41 -0
  1264. package/esm/ModalHeader/index.js +1 -0
  1265. package/esm/ModalIcon/ModalIcon.js +22 -0
  1266. package/esm/ModalIcon/index.js +1 -0
  1267. package/esm/ModalMain/ModalMain.js +45 -0
  1268. package/esm/ModalMain/index.js +1 -0
  1269. package/esm/ModalText/ModalText.js +37 -0
  1270. package/esm/ModalText/index.js +1 -0
  1271. package/esm/ModalTitle/ModalTitle.js +37 -0
  1272. package/esm/ModalTitle/index.js +1 -0
  1273. package/esm/MoreOptions/MoreOptions.js +59 -0
  1274. package/esm/MoreOptions/index.js +1 -0
  1275. package/esm/Move/Move.js +161 -0
  1276. package/esm/Move/index.js +1 -0
  1277. package/esm/NavigationBar/NavigationBar.js +118 -0
  1278. package/esm/NavigationBar/index.js +1 -0
  1279. package/esm/NavigationDrawer/NavigationDrawer.js +235 -0
  1280. package/esm/NavigationDrawer/index.js +1 -0
  1281. package/esm/NavigationItem/NavigationItem.js +297 -0
  1282. package/esm/NavigationItem/index.js +1 -0
  1283. package/esm/NavigationRail/NavigationRail.js +165 -0
  1284. package/esm/NavigationRail/index.js +1 -0
  1285. package/esm/NotFound/NotFound.js +71 -0
  1286. package/esm/NotFound/index.js +1 -0
  1287. package/esm/NumericTextField/NumericTextField.js +205 -0
  1288. package/esm/NumericTextField/index.js +1 -0
  1289. package/esm/Page/Page.js +112 -0
  1290. package/esm/Page/index.js +1 -0
  1291. package/esm/PageTransition/PageTransition.js +105 -0
  1292. package/esm/PageTransition/index.js +1 -0
  1293. package/esm/Pagination/Pagination.js +134 -0
  1294. package/esm/Pagination/index.js +1 -0
  1295. package/esm/PaginationItem/PaginationItem.js +73 -0
  1296. package/esm/PaginationItem/index.js +1 -0
  1297. package/esm/Parallax/Parallax.js +133 -0
  1298. package/esm/Parallax/index.js +1 -0
  1299. package/esm/Path/Path.js +33 -0
  1300. package/esm/Path/index.js +1 -0
  1301. package/esm/PieChart/PieChart.js +364 -0
  1302. package/esm/PieChart/index.js +1 -0
  1303. package/esm/Placeholder/Placeholder.js +120 -0
  1304. package/esm/Placeholder/index.js +1 -0
  1305. package/esm/Portal/Portal.js +30 -0
  1306. package/esm/Portal/index.js +1 -0
  1307. package/esm/Properties/Properties.js +71 -0
  1308. package/esm/Properties/index.js +1 -0
  1309. package/esm/Property/Property.js +109 -0
  1310. package/esm/Property/index.js +1 -0
  1311. package/esm/Radio/Radio.js +204 -0
  1312. package/esm/Radio/index.js +1 -0
  1313. package/esm/Radios/Radios.js +112 -0
  1314. package/esm/Radios/index.js +1 -0
  1315. package/esm/Rating/Rating.js +353 -0
  1316. package/esm/Rating/index.js +1 -0
  1317. package/esm/Reset/Reset.js +15 -0
  1318. package/esm/Reset/index.js +1 -0
  1319. package/esm/Reveal/Reveal.js +87 -0
  1320. package/esm/Reveal/index.js +1 -0
  1321. package/esm/RichTextEditor/RichTextEditor.js +1748 -0
  1322. package/esm/RichTextEditor/index.js +1 -0
  1323. package/esm/RoundMeter/RoundMeter.js +634 -0
  1324. package/esm/RoundMeter/index.js +1 -0
  1325. package/esm/RoundProgress/RoundProgress.js +232 -0
  1326. package/esm/RoundProgress/index.js +1 -0
  1327. package/esm/ScatterChart/ScatterChart.js +40 -0
  1328. package/esm/ScatterChart/index.js +1 -0
  1329. package/esm/ScatterChartItem/ScatterChartItem.js +197 -0
  1330. package/esm/ScatterChartItem/index.js +1 -0
  1331. package/esm/ScreenCapture/ScreenCapture.js +402 -0
  1332. package/esm/ScreenCapture/index.js +1 -0
  1333. package/esm/Section/Section.js +399 -0
  1334. package/esm/Section/index.js +1 -0
  1335. package/esm/SectionAction/SectionAction.js +58 -0
  1336. package/esm/SectionAction/index.js +1 -0
  1337. package/esm/SectionBoxes/SectionBoxes.js +218 -0
  1338. package/esm/SectionBoxes/index.js +1 -0
  1339. package/esm/SectionCards/SectionCards.js +235 -0
  1340. package/esm/SectionCards/index.js +1 -0
  1341. package/esm/SectionCarousel/SectionCarousel.js +260 -0
  1342. package/esm/SectionCarousel/index.js +1 -0
  1343. package/esm/SectionContact/SectionContact.js +160 -0
  1344. package/esm/SectionContact/index.js +1 -0
  1345. package/esm/SectionImageGallery/SectionImageGallery.js +51 -0
  1346. package/esm/SectionImageGallery/index.js +1 -0
  1347. package/esm/SectionLogos/SectionLogos.js +110 -0
  1348. package/esm/SectionLogos/index.js +1 -0
  1349. package/esm/SectionMedia/SectionMedia.js +142 -0
  1350. package/esm/SectionMedia/index.js +1 -0
  1351. package/esm/SectionReviews/SectionReviews.js +145 -0
  1352. package/esm/SectionReviews/index.js +1 -0
  1353. package/esm/SectionTextMedia/SectionTextMedia.js +158 -0
  1354. package/esm/SectionTextMedia/index.js +1 -0
  1355. package/esm/SectionTimeline/SectionTimeline.js +106 -0
  1356. package/esm/SectionTimeline/index.js +1 -0
  1357. package/esm/SectionWatch/SectionWatch.js +52 -0
  1358. package/esm/SectionWatch/index.js +1 -0
  1359. package/esm/Select/Select.js +470 -0
  1360. package/esm/Select/index.js +1 -0
  1361. package/esm/Share/Share.js +442 -0
  1362. package/esm/Share/index.js +1 -0
  1363. package/esm/Slide/Slide.js +179 -0
  1364. package/esm/Slide/index.js +1 -0
  1365. package/esm/Slider/Slider.js +916 -0
  1366. package/esm/Slider/index.js +1 -0
  1367. package/esm/SmartTextField/SmartTextField.js +958 -0
  1368. package/esm/SmartTextField/index.js +1 -0
  1369. package/esm/Snackbar/Snackbar.js +208 -0
  1370. package/esm/Snackbar/index.js +1 -0
  1371. package/esm/Snackbars/Context.js +3 -0
  1372. package/esm/Snackbars/Snackbars.js +213 -0
  1373. package/esm/Snackbars/index.js +4 -0
  1374. package/esm/Snackbars/useSnackbars.js +6 -0
  1375. package/esm/Space/Space.js +1634 -0
  1376. package/esm/Space/index.js +2 -0
  1377. package/esm/SpeechToText/SpeechToText.js +190 -0
  1378. package/esm/SpeechToText/index.js +1 -0
  1379. package/esm/SpeedDial/SpeedDial.js +422 -0
  1380. package/esm/SpeedDial/index.js +1 -0
  1381. package/esm/SpeedDialItem/SpeedDialItem.js +79 -0
  1382. package/esm/SpeedDialItem/index.js +1 -0
  1383. package/esm/SpyScroll/SpyScroll.js +147 -0
  1384. package/esm/SpyScroll/index.js +1 -0
  1385. package/esm/Step/Step.js +157 -0
  1386. package/esm/Step/index.js +1 -0
  1387. package/esm/Stepper/Stepper.js +147 -0
  1388. package/esm/Stepper/index.js +1 -0
  1389. package/esm/Surface/Surface.js +761 -0
  1390. package/esm/Surface/index.js +1 -0
  1391. package/esm/Switch/Switch.js +685 -0
  1392. package/esm/Switch/index.js +1 -0
  1393. package/esm/Tab/Tab.js +155 -0
  1394. package/esm/Tab/index.js +1 -0
  1395. package/esm/Table/Table.js +88 -0
  1396. package/esm/Table/index.js +1 -0
  1397. package/esm/TableBody/TableBody.js +68 -0
  1398. package/esm/TableBody/index.js +1 -0
  1399. package/esm/TableCell/TableCell.js +241 -0
  1400. package/esm/TableCell/index.js +1 -0
  1401. package/esm/TableFooter/TableFooter.js +50 -0
  1402. package/esm/TableFooter/index.js +1 -0
  1403. package/esm/TableHead/TableHead.js +124 -0
  1404. package/esm/TableHead/index.js +1 -0
  1405. package/esm/TableHeader/TableHeader.js +52 -0
  1406. package/esm/TableHeader/index.js +1 -0
  1407. package/esm/TablePagination/TablePagination.js +148 -0
  1408. package/esm/TablePagination/index.js +1 -0
  1409. package/esm/TableRow/TableRow.js +68 -0
  1410. package/esm/TableRow/index.js +1 -0
  1411. package/esm/Tabs/Tabs.js +408 -0
  1412. package/esm/Tabs/index.js +1 -0
  1413. package/esm/Text/Text.js +120 -0
  1414. package/esm/Text/index.js +1 -0
  1415. package/esm/TextField/TextField.js +870 -0
  1416. package/esm/TextField/index.js +1 -0
  1417. package/esm/TextToSpeech/TextToSpeech.js +161 -0
  1418. package/esm/TextToSpeech/index.js +1 -0
  1419. package/esm/TimePicker/TimePicker.js +957 -0
  1420. package/esm/TimePicker/index.js +1 -0
  1421. package/esm/TimeRangePicker/TimeRangePicker.js +34 -0
  1422. package/esm/TimeRangePicker/index.js +1 -0
  1423. package/esm/Timeline/Timeline.js +42 -0
  1424. package/esm/Timeline/index.js +1 -0
  1425. package/esm/TimelineItem/TimelineItem.js +130 -0
  1426. package/esm/TimelineItem/index.js +1 -0
  1427. package/esm/Timer/Timer.js +292 -0
  1428. package/esm/Timer/index.js +1 -0
  1429. package/esm/ToggleButton/ToggleButton.js +57 -0
  1430. package/esm/ToggleButton/index.js +1 -0
  1431. package/esm/ToggleButtons/ToggleButtons.js +36 -0
  1432. package/esm/ToggleButtons/index.js +1 -0
  1433. package/esm/Tooltip/Tooltip.js +453 -0
  1434. package/esm/Tooltip/index.js +1 -0
  1435. package/esm/TopAppBar/TopAppBar.js +220 -0
  1436. package/esm/TopAppBar/index.js +1 -0
  1437. package/esm/Transition/Context.js +3 -0
  1438. package/esm/Transition/Transition.js +315 -0
  1439. package/esm/Transition/index.js +4 -0
  1440. package/esm/Transition/useTransition.js +6 -0
  1441. package/esm/Transitions/Transitions.js +207 -0
  1442. package/esm/Transitions/index.js +1 -0
  1443. package/esm/Tree/Tree.js +353 -0
  1444. package/esm/Tree/index.js +1 -0
  1445. package/esm/Type/Type.js +243 -0
  1446. package/esm/Type/index.js +1 -0
  1447. package/esm/VideoPlayer/VideoPlayer.js +834 -0
  1448. package/esm/VideoPlayer/index.js +1 -0
  1449. package/esm/ViewSplit/ViewSplit.js +414 -0
  1450. package/esm/ViewSplit/index.js +1 -0
  1451. package/esm/Watch/Watch.js +411 -0
  1452. package/esm/Watch/index.js +1 -0
  1453. package/esm/Weather/Weather.js +276 -0
  1454. package/esm/Weather/index.js +1 -0
  1455. package/esm/Widgets/Context.js +3 -0
  1456. package/esm/Widgets/Widgets.js +200 -0
  1457. package/esm/Widgets/index.js +4 -0
  1458. package/esm/Widgets/useWidgets.js +6 -0
  1459. package/esm/WindowSplit/WindowSplit.js +370 -0
  1460. package/esm/WindowSplit/index.js +1 -0
  1461. package/esm/Zoom/Zoom.js +120 -0
  1462. package/esm/Zoom/index.js +1 -0
  1463. package/esm/index.js +428 -0
  1464. package/esm/types.js +1 -0
  1465. package/esm/useForm/index.js +3 -0
  1466. package/esm/useForm/useForm.js +197 -0
  1467. package/esm/useForm/validate.js +204 -0
  1468. package/esm/useLocation/index.js +1 -0
  1469. package/esm/useLocation/useLocation.js +51 -0
  1470. package/esm/useMediaQuery/index.js +1 -0
  1471. package/esm/useMediaQuery/useMediaQuery.js +40 -0
  1472. package/esm/useQuery/index.js +1 -0
  1473. package/esm/useQuery/useQuery.js +11 -0
  1474. package/esm/useScroll/index.js +1 -0
  1475. package/esm/useScroll/useScroll.js +56 -0
  1476. package/esm/useSubscription/index.js +1 -0
  1477. package/esm/useSubscription/useSubscription.js +31 -0
  1478. package/esm/useSwipe/index.js +1 -0
  1479. package/esm/useSwipe/useSwipe.js +158 -0
  1480. package/esm/useVisible/index.js +1 -0
  1481. package/esm/useVisible/useVisible.js +81 -0
  1482. package/esm/utils.js +1256 -0
  1483. package/index.d.ts +423 -0
  1484. package/index.js +658 -0
  1485. package/package.json +55 -0
  1486. package/types.d.ts +41 -0
  1487. package/types.js +2 -0
  1488. package/useForm/index.d.ts +3 -0
  1489. package/useForm/index.js +12 -0
  1490. package/useForm/package.json +6 -0
  1491. package/useForm/useForm.d.ts +28 -0
  1492. package/useForm/useForm.js +177 -0
  1493. package/useForm/validate.d.ts +65 -0
  1494. package/useForm/validate.js +219 -0
  1495. package/useLocation/index.d.ts +1 -0
  1496. package/useLocation/index.js +8 -0
  1497. package/useLocation/package.json +6 -0
  1498. package/useLocation/useLocation.d.ts +7 -0
  1499. package/useLocation/useLocation.js +52 -0
  1500. package/useMediaQuery/index.d.ts +1 -0
  1501. package/useMediaQuery/index.js +8 -0
  1502. package/useMediaQuery/package.json +6 -0
  1503. package/useMediaQuery/useMediaQuery.d.ts +9 -0
  1504. package/useMediaQuery/useMediaQuery.js +48 -0
  1505. package/useQuery/index.d.ts +1 -0
  1506. package/useQuery/index.js +8 -0
  1507. package/useQuery/package.json +6 -0
  1508. package/useQuery/useQuery.d.ts +5 -0
  1509. package/useQuery/useQuery.js +14 -0
  1510. package/useScroll/index.d.ts +1 -0
  1511. package/useScroll/index.js +8 -0
  1512. package/useScroll/package.json +6 -0
  1513. package/useScroll/useScroll.d.ts +12 -0
  1514. package/useScroll/useScroll.js +60 -0
  1515. package/useSubscription/index.d.ts +1 -0
  1516. package/useSubscription/index.js +8 -0
  1517. package/useSubscription/package.json +6 -0
  1518. package/useSubscription/useSubscription.d.ts +3 -0
  1519. package/useSubscription/useSubscription.js +38 -0
  1520. package/useSwipe/index.d.ts +1 -0
  1521. package/useSwipe/index.js +8 -0
  1522. package/useSwipe/package.json +6 -0
  1523. package/useSwipe/useSwipe.d.ts +18 -0
  1524. package/useSwipe/useSwipe.js +138 -0
  1525. package/useVisible/index.d.ts +1 -0
  1526. package/useVisible/index.js +8 -0
  1527. package/useVisible/package.json +6 -0
  1528. package/useVisible/useVisible.d.ts +23 -0
  1529. package/useVisible/useVisible.js +80 -0
  1530. package/utils.d.ts +48 -0
  1531. package/utils.js +1422 -0
@@ -0,0 +1,1076 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
+ const _excluded = ["image", "minWidth", "minHeight", "maxWidth", "maxHeight", "selectorDefault", "selector", "onSelectorChange", "type", "quality", "aspectRatio", "gridLines", "dynamicParent", "onFocus", "onBlur", "TooltipProps", "Component", "className"];
5
+ 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
+ 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
+ import React from 'react';
8
+ import { is, clamp, isEnvironment } from '@onesy/utils';
9
+ import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
10
+ import TooltipElement from '../Tooltip';
11
+ import { staticClassName, image as imageMethod } from '../utils';
12
+ const useStyle = styleMethod(theme => {
13
+ const dot = {
14
+ display: 'inline-block',
15
+ position: 'absolute',
16
+ width: '6px',
17
+ height: '6px',
18
+ borderRadius: '50%',
19
+ background: '#a4a4a4',
20
+ outline: '1px solid white'
21
+ };
22
+ return {
23
+ root: {
24
+ width: '100%',
25
+ minHeight: '1px',
26
+ lineHeight: '0',
27
+ userSelect: 'none',
28
+ overflow: 'hidden'
29
+ },
30
+ mouseDown_move: {
31
+ '& *': {
32
+ cursor: 'grab !important'
33
+ }
34
+ },
35
+ mouseDown_top: {
36
+ '& *': {
37
+ cursor: 'ns-resize !important'
38
+ }
39
+ },
40
+ mouseDown_left: {
41
+ '& *': {
42
+ cursor: 'ew-resize !important'
43
+ }
44
+ },
45
+ mouseDown_right: {
46
+ '& *': {
47
+ cursor: 'ew-resize !important'
48
+ }
49
+ },
50
+ mouseDown_bottom: {
51
+ '& *': {
52
+ cursor: 'ns-resize !important'
53
+ }
54
+ },
55
+ mouseDown_top_left: {
56
+ '& *': {
57
+ cursor: 'nwse-resize !important'
58
+ }
59
+ },
60
+ mouseDown_top_right: {
61
+ '& *': {
62
+ cursor: 'nesw-resize !important'
63
+ }
64
+ },
65
+ mouseDown_bottom_left: {
66
+ '& *': {
67
+ cursor: 'nesw-resize !important'
68
+ }
69
+ },
70
+ mouseDown_bottom_right: {
71
+ '& *': {
72
+ cursor: 'nwse-resize !important'
73
+ }
74
+ },
75
+ canvas: {
76
+ position: 'absolute',
77
+ zIndex: '0'
78
+ },
79
+ canvas_main: {
80
+ position: 'relative',
81
+ width: '100%',
82
+ height: 'auto'
83
+ },
84
+ canvas_imageSelector: {
85
+ zIndex: -1
86
+ },
87
+ background: {
88
+ position: 'absolute',
89
+ inset: '0',
90
+ width: '100%',
91
+ height: '100%',
92
+ opacity: '0',
93
+ background: theme.methods.palette.color.colorToRgb(theme.palette.text.default.primary, 44),
94
+ transition: theme.methods.transitions.make('opacity', {
95
+ duration: 'xxs'
96
+ }),
97
+ zIndex: '1'
98
+ },
99
+ background_in: {
100
+ opacity: '1'
101
+ },
102
+ imageSelector_main: {
103
+ position: 'absolute',
104
+ top: '0',
105
+ left: '0',
106
+ width: '0',
107
+ height: '0',
108
+ outline: '2px dashed white',
109
+ background: 'transparent',
110
+ touchAction: 'none',
111
+ opacity: '0',
112
+ zIndex: '14',
113
+ userSelect: 'none',
114
+ transition: theme.methods.transitions.make('opacity')
115
+ },
116
+ imageSelector_main_in: {
117
+ opacity: '1'
118
+ },
119
+ imageSelector: {
120
+ position: 'absolute',
121
+ top: '0',
122
+ left: '0',
123
+ width: '0',
124
+ height: '0',
125
+ touchAction: 'none',
126
+ overflow: 'hidden',
127
+ userSelect: 'none',
128
+ zIndex: '11'
129
+ },
130
+ move: {
131
+ position: 'absolute',
132
+ inset: '0',
133
+ width: '100%',
134
+ height: '100%',
135
+ cursor: 'grab',
136
+ '&:active': {
137
+ cursor: 'grabbing !important'
138
+ }
139
+ },
140
+ grid_line: {
141
+ position: 'absolute',
142
+ background: 'white',
143
+ mixBlendMode: 'difference'
144
+ },
145
+ grid_line_top_start: {
146
+ top: '33.3333%',
147
+ insetInline: '0',
148
+ width: '100%',
149
+ height: '1px'
150
+ },
151
+ grid_line_top_end: {
152
+ top: '66.6666%',
153
+ insetInline: '0',
154
+ width: '100%',
155
+ height: '1px'
156
+ },
157
+ grid_line_left_start: {
158
+ left: '33.3333%',
159
+ insetBlock: '0',
160
+ width: '1px',
161
+ height: '100%'
162
+ },
163
+ grid_line_left_end: {
164
+ left: '66.6666%',
165
+ insetBlock: '0',
166
+ width: '1px',
167
+ height: '100%'
168
+ },
169
+ dot: _objectSpread({}, dot),
170
+ dot_top_left: {
171
+ top: '-1px',
172
+ left: '-1px',
173
+ transform: 'translate(-50%, -50%)',
174
+ cursor: 'nwse-resize'
175
+ },
176
+ dot_top_right: {
177
+ top: '-1px',
178
+ right: '-1px',
179
+ transform: 'translate(50%, -50%)',
180
+ cursor: 'nesw-resize'
181
+ },
182
+ dot_bottom_left: {
183
+ bottom: '-1px',
184
+ left: '-1px',
185
+ transform: 'translate(-50%, 50%)',
186
+ cursor: 'nesw-resize'
187
+ },
188
+ dot_bottom_right: {
189
+ bottom: '-1px',
190
+ right: '-1px',
191
+ transform: 'translate(50%, 50%)',
192
+ cursor: 'nwse-resize'
193
+ },
194
+ border: {
195
+ position: 'absolute'
196
+ },
197
+ border_top: {
198
+ top: '-2px',
199
+ height: '2px',
200
+ width: '100%',
201
+ cursor: 'ns-resize',
202
+ '&::before': _objectSpread(_objectSpread({}, dot), {}, {
203
+ content: '""',
204
+ top: '50%',
205
+ left: '50%',
206
+ transform: 'translate(-50%, -50%)'
207
+ })
208
+ },
209
+ border_left: {
210
+ left: '-2px',
211
+ height: '100%',
212
+ width: '2px',
213
+ cursor: 'ew-resize',
214
+ '&::before': _objectSpread(_objectSpread({}, dot), {}, {
215
+ content: '""',
216
+ top: '50%',
217
+ left: '50%',
218
+ transform: 'translate(-50%, -50%)'
219
+ })
220
+ },
221
+ border_right: {
222
+ right: '-2px',
223
+ height: '100%',
224
+ width: '2px',
225
+ cursor: 'ew-resize',
226
+ '&::before': _objectSpread(_objectSpread({}, dot), {}, {
227
+ content: '""',
228
+ top: '50%',
229
+ right: '50%',
230
+ transform: 'translate(50%, -50%)'
231
+ })
232
+ },
233
+ border_bottom: {
234
+ bottom: '-2px',
235
+ height: '2px',
236
+ width: '100%',
237
+ cursor: 'ns-resize',
238
+ '&::before': _objectSpread(_objectSpread({}, dot), {}, {
239
+ content: '""',
240
+ bottom: '50%',
241
+ left: '50%',
242
+ transform: 'translate(-50%, 50%)'
243
+ })
244
+ }
245
+ };
246
+ }, {
247
+ name: 'onesy-ImageCrop'
248
+ });
249
+ const ImageCrop = /*#__PURE__*/React.forwardRef((props_, ref) => {
250
+ const theme = useOnesyTheme();
251
+ const props = React.useMemo(() => _objectSpread(_objectSpread(_objectSpread({}, theme?.ui?.elements?.all?.props?.default), theme?.ui?.elements?.onesyImageCrop?.props?.default), props_), [props_]);
252
+ const Tooltip = React.useMemo(() => theme?.elements?.Tooltip || TooltipElement, [theme]);
253
+ const {
254
+ // url, datauri or canvas
255
+ image: image_,
256
+ minWidth,
257
+ minHeight,
258
+ maxWidth,
259
+ maxHeight,
260
+ selectorDefault,
261
+ selector: selector_,
262
+ onSelectorChange: onSelectorChange_,
263
+ type = `image/jpeg`,
264
+ quality = 1,
265
+ aspectRatio,
266
+ gridLines,
267
+ dynamicParent,
268
+ onFocus: onFocus_,
269
+ onBlur: onBlur_,
270
+ TooltipProps,
271
+ Component = 'div',
272
+ className
273
+ } = props,
274
+ other = _objectWithoutProperties(props, _excluded);
275
+ const {
276
+ classes
277
+ } = useStyle();
278
+ const [image, setImage] = React.useState();
279
+ const [focus, setFocus] = React.useState();
280
+ const [mouseDown, setMouseDown] = React.useState();
281
+ const [selector, setSelector] = React.useState(selectorDefault !== undefined ? selectorDefault : selector_);
282
+ const [selectorRelative, setSelectorRelative] = React.useState();
283
+ const refs = {
284
+ root: React.useRef(undefined),
285
+ image: React.useRef(undefined),
286
+ mouseDown: React.useRef(undefined),
287
+ selector: React.useRef(undefined),
288
+ imageSelectorMain: React.useRef(undefined),
289
+ imageSelector: React.useRef(undefined),
290
+ previousMouseEvent: React.useRef(undefined),
291
+ canvasMain: React.useRef(),
292
+ canvasImageSelector: React.useRef(),
293
+ move: React.useRef(undefined),
294
+ borderTop: React.useRef(undefined),
295
+ borderLeft: React.useRef(undefined),
296
+ borderRight: React.useRef(undefined),
297
+ borderBottom: React.useRef(undefined),
298
+ dotTopLeft: React.useRef(undefined),
299
+ dotTopRight: React.useRef(undefined),
300
+ dotBottomLeft: React.useRef(undefined),
301
+ dotBottomRight: React.useRef(undefined),
302
+ props: React.useRef(undefined),
303
+ dynamicParent: React.useRef(undefined),
304
+ focus: React.useRef(undefined),
305
+ aspectRatio: React.useRef(undefined)
306
+ };
307
+ refs.image.current = image;
308
+ refs.mouseDown.current = mouseDown;
309
+ refs.selector.current = selector;
310
+ refs.props.current = props;
311
+ refs.focus.current = focus;
312
+ refs.dynamicParent.current = dynamicParent;
313
+ refs.aspectRatio.current = aspectRatio;
314
+ const onSelectorChange = valueNew => {
315
+ // min, max for width, height
316
+ // + resolve it to max width and height for aspect ratio
317
+ if (is('object', valueNew) && !!Object.keys(valueNew).length && refs.root.current) {
318
+ const rootRect = refs.root.current?.getBoundingClientRect();
319
+ const minWidth_ = refs.props.current.minWidth !== undefined ? refs.props.current.minWidth : Number.MIN_SAFE_INTEGER;
320
+ const minHeight_ = refs.props.current.minHeight !== undefined ? refs.props.current.minHeight : Number.MIN_SAFE_INTEGER;
321
+ const maxWidth_ = refs.props.current.maxWidth !== undefined ? refs.props.current.maxWidth : Number.MAX_SAFE_INTEGER;
322
+ const maxHeight_ = refs.props.current.maxHeight !== undefined ? refs.props.current.maxHeight : Number.MAX_SAFE_INTEGER;
323
+ valueNew.width = clamp(valueNew.width, minWidth_, maxWidth_);
324
+ valueNew.height = clamp(valueNew.height, minHeight_, maxHeight_);
325
+ if (refs.aspectRatio.current !== undefined) {
326
+ if (valueNew.width + valueNew.width / refs.aspectRatio.current >= valueNew.height + valueNew.height * refs.aspectRatio.current) {
327
+ valueNew.height = valueNew.width / refs.aspectRatio.current;
328
+ } else {
329
+ valueNew.width = valueNew.height * refs.aspectRatio.current;
330
+ }
331
+
332
+ // Max width
333
+ if (valueNew.left + valueNew.width > rootRect.width) {
334
+ valueNew.width = rootRect.width - valueNew.left;
335
+ valueNew.height = valueNew.width / refs.aspectRatio.current;
336
+ }
337
+
338
+ // Max height
339
+ if (valueNew.top + valueNew.height > rootRect.height) {
340
+ valueNew.height = rootRect.height - valueNew.top;
341
+ valueNew.width = valueNew.height * refs.aspectRatio.current;
342
+ }
343
+
344
+ // Max width, height per maxWidth and maxHeight
345
+ if (valueNew.width < minWidth_ || valueNew.width > maxWidth_) {
346
+ valueNew.width = clamp(valueNew.width, minWidth_, maxWidth_);
347
+ valueNew.height = valueNew.width / refs.aspectRatio.current;
348
+ }
349
+ if (valueNew.height < minHeight_ || valueNew.height > maxHeight_) {
350
+ valueNew.height = clamp(valueNew.height, minHeight_, maxHeight_);
351
+ valueNew.width = valueNew.height / refs.aspectRatio.current;
352
+ }
353
+ }
354
+
355
+ // If previous values are within maxWidth and/or maxHeight
356
+ // and left or top are not same as before
357
+ // return
358
+ if (!['move'].includes(refs.mouseDown.current?.version)) {
359
+ if (maxWidth_ !== undefined || maxHeight_ !== undefined) {
360
+ if ((valueNew.top < refs.selector.current?.top || valueNew.left < refs.selector.current?.left) && (refs.selector.current?.width === maxWidth_ || refs.selector.current?.height === maxHeight_)) return;
361
+ }
362
+ }
363
+ }
364
+ const rootRect_ = refs.root.current.getBoundingClientRect();
365
+ const selectorRelative_ = {
366
+ top: valueNew.top / rootRect_?.height * refs.canvasMain.current?.height,
367
+ left: valueNew.left / rootRect_?.width * refs.canvasMain.current?.width,
368
+ width: valueNew.width / rootRect_?.width * refs.canvasMain.current?.width,
369
+ height: valueNew.height / rootRect_?.height * refs.canvasMain.current?.height
370
+ };
371
+
372
+ // Update inner or controlled
373
+ if (!props.hasOwnProperty('selector')) {
374
+ setSelector(valueNew);
375
+ setSelectorRelative(selectorRelative_);
376
+ }
377
+ if (is('function', onSelectorChange_)) onSelectorChange_(selectorRelative_);
378
+ };
379
+ React.useEffect(() => {
380
+ const method = event => {
381
+ switch (event.key) {
382
+ case 'Escape':
383
+ if (refs.focus.current) setSelector({});
384
+ break;
385
+ default:
386
+ break;
387
+ }
388
+ };
389
+ const onMouseUp = event => {
390
+ setMouseDown(false);
391
+ refs.previousMouseEvent.current = undefined;
392
+ };
393
+
394
+ // Move
395
+ const onMove = (x, y) => {
396
+ if (refs.mouseDown.current && refs.previousMouseEvent.current) {
397
+ const {
398
+ top: previousTop,
399
+ left: previousLeft
400
+ } = refs.mouseDown.current;
401
+ const rootRect = refs.root.current.getBoundingClientRect();
402
+ const selectorRect_ = refs.imageSelectorMain.current.getBoundingClientRect();
403
+ const selectorRect = {};
404
+
405
+ // Normalize relative to root
406
+ selectorRect.width = selectorRect_.width;
407
+ selectorRect.height = selectorRect_.height;
408
+ selectorRect.top = selectorRect_.top - rootRect.top;
409
+ selectorRect.left = selectorRect_.left - rootRect.left;
410
+ selectorRect.right = selectorRect.left + selectorRect_.width;
411
+ selectorRect.bottom = selectorRect.top + selectorRect_.height;
412
+ if (refs.mouseDown.current?.version === 'make') {
413
+ const top_ = clamp(y - rootRect.top, 0, rootRect.height);
414
+ const left_ = clamp(x - rootRect.left, 0, rootRect.width);
415
+ let top = clamp(top_, 0, previousTop);
416
+ let left = clamp(left_, 0, previousLeft);
417
+ let width = Math.abs(left_ - previousLeft);
418
+ let height = Math.abs(top_ - previousTop);
419
+ if (refs.aspectRatio.current !== undefined) {
420
+ if (left < previousLeft) {
421
+ if (refs.selector.current?.left < previousLeft && left < refs.selector.current?.left && (top <= 0 || refs.selector.current?.top + refs.selector.current?.height >= rootRect.height)) return;
422
+ }
423
+ if (top < previousTop) {
424
+ if (refs.selector.current?.top < previousTop && top < refs.selector.current?.top && (left <= 0 || refs.selector.current?.left + refs.selector.current?.width >= rootRect.width)) return;
425
+ }
426
+
427
+ // Max surface
428
+ if (width + width / refs.aspectRatio.current >= height + height * refs.aspectRatio.current) {
429
+ height = width / refs.aspectRatio.current;
430
+ } else {
431
+ width = height * refs.aspectRatio.current;
432
+ }
433
+
434
+ // Moved left
435
+ if (left < previousLeft) {
436
+ left = clamp(previousLeft - width, 0, previousLeft);
437
+
438
+ // Update width, height upto the previousLeft
439
+ width = clamp(width, 0, previousLeft);
440
+ height = width / refs.aspectRatio.current;
441
+ }
442
+
443
+ // Moved top
444
+ if (top < previousTop) {
445
+ top = clamp(previousTop - height, 0, previousTop);
446
+
447
+ // Update width, height upto the previousTop
448
+ height = clamp(height, 0, previousTop);
449
+ width = height * refs.aspectRatio.current;
450
+ }
451
+
452
+ // Max width
453
+ if (left + width > rootRect.width) {
454
+ width = rootRect.width - left;
455
+ height = width / refs.aspectRatio.current;
456
+ }
457
+
458
+ // Max height
459
+ if (top + height > rootRect.height) {
460
+ height = rootRect.height - top;
461
+ width = height * refs.aspectRatio.current;
462
+ }
463
+
464
+ // Min left
465
+ if (left < previousLeft) left = previousLeft - width;
466
+
467
+ // Min top
468
+ if (top < previousTop) top = previousTop - height;
469
+ }
470
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
471
+ top,
472
+ left,
473
+ width,
474
+ height
475
+ }));
476
+ } else if (refs.mouseDown.current?.version === 'move') {
477
+ const top = y - refs.previousMouseEvent.current.clientY;
478
+ const left = x - refs.previousMouseEvent.current.clientX;
479
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
480
+ top: clamp(refs.selector.current.top + top, 0, rootRect.height - selectorRect.height),
481
+ left: clamp(refs.selector.current.left + left, 0, rootRect.width - selectorRect.width)
482
+ }));
483
+ } else if (refs.mouseDown.current?.version === 'top_left') {
484
+ const incY = y - refs.previousMouseEvent.current.clientY;
485
+ const incX = x - refs.previousMouseEvent.current.clientX;
486
+ let top = clamp(selectorRect.top + incY, 0);
487
+ let left = clamp(selectorRect.left + incX, 0);
488
+ if (selectorRect.bottom - top < 0 && selectorRect.right - left < 0) refs.mouseDown.current.version = 'bottom_right';else if (selectorRect.bottom - top < 0) refs.mouseDown.current.version = 'bottom_left';else if (selectorRect.right - left < 0) refs.mouseDown.current.version = 'top_right';
489
+ let width = clamp(selectorRect.right - left, 0);
490
+ let height = clamp(selectorRect.bottom - top, 0);
491
+ if (refs.aspectRatio.current !== undefined) {
492
+ // Left
493
+ if (left < refs.selector.current.left && refs.selector.current.left < previousLeft && refs.selector.current?.top === 0) return;
494
+
495
+ // Max surface
496
+ if (width + width / refs.aspectRatio.current >= height + height * refs.aspectRatio.current) {
497
+ height = width / refs.aspectRatio.current;
498
+ } else {
499
+ width = height * refs.aspectRatio.current;
500
+ }
501
+
502
+ // Moved left
503
+ if (left < previousLeft) {
504
+ left = clamp(previousLeft - width, 0, previousLeft);
505
+
506
+ // Update width, height upto the previousLeft
507
+ width = clamp(width, 0, previousLeft);
508
+ height = width / refs.aspectRatio.current;
509
+ }
510
+
511
+ // Moved top
512
+ if (top < previousTop) {
513
+ top = clamp(previousTop - height, 0, previousTop);
514
+
515
+ // Update width, height upto the previousTop
516
+ height = clamp(height, 0, previousTop);
517
+ width = height * refs.aspectRatio.current;
518
+ }
519
+
520
+ // Max width
521
+ if (left + width > rootRect.width) {
522
+ width = rootRect.width - left;
523
+ height = width / refs.aspectRatio.current;
524
+ }
525
+
526
+ // Max height
527
+ if (top + height > rootRect.height) {
528
+ height = rootRect.height - top;
529
+ width = height * refs.aspectRatio.current;
530
+ }
531
+
532
+ // Min left
533
+ if (left < previousLeft) left = previousLeft - width;
534
+
535
+ // Min top
536
+ if (top < previousTop) top = previousTop - height;
537
+ }
538
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
539
+ top,
540
+ left,
541
+ width,
542
+ height
543
+ }));
544
+ } else if (refs.mouseDown.current?.version === 'top_right') {
545
+ const incY = y - refs.previousMouseEvent.current.clientY;
546
+ const incX = x - refs.previousMouseEvent.current.clientX;
547
+ const top = clamp(selectorRect.top + incY, 0);
548
+ if (selectorRect.bottom - top < 0 && selectorRect.width + incX < 0) refs.mouseDown.current.version = 'bottom_left';else if (selectorRect.bottom - top < 0) refs.mouseDown.current.version = 'bottom_right';else if (selectorRect.width + incX < 0) refs.mouseDown.current.version = 'top_left';
549
+ let width = clamp(Math.abs(selectorRect.width + incX), 0, rootRect.width - selectorRect.left);
550
+ let height = clamp(selectorRect.bottom - top, 0);
551
+
552
+ // Top
553
+ if (refs.aspectRatio.current !== undefined) {
554
+ // Top
555
+ if (top < refs.selector.current.top && refs.selector.current.top < previousTop && refs.selector.current.left + refs.selector.current.width >= rootRect.width) return;
556
+ width = height * refs.aspectRatio.current;
557
+ height = width / refs.aspectRatio.current;
558
+
559
+ // Max width
560
+ if (refs.selector.current.left + width > rootRect.width) {
561
+ width = rootRect.width - refs.selector.current.left;
562
+ height = width / refs.aspectRatio.current;
563
+ }
564
+
565
+ // Max height
566
+ if (refs.selector.current.top + height > rootRect.height) {
567
+ height = rootRect.height - refs.selector.current.top;
568
+ width = height * refs.aspectRatio.current;
569
+ }
570
+ }
571
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
572
+ top,
573
+ width,
574
+ height
575
+ }));
576
+ } else if (refs.mouseDown.current?.version === 'bottom_right') {
577
+ const incY = y - refs.previousMouseEvent.current.clientY;
578
+ const incX = x - refs.previousMouseEvent.current.clientX;
579
+ if (selectorRect.height + incY < 0 && selectorRect.width + incX < 0) refs.mouseDown.current.version = 'top_left';else if (selectorRect.height + incY < 0) refs.mouseDown.current.version = 'top_right';else if (selectorRect.width + incX < 0) refs.mouseDown.current.version = 'bottom_left';
580
+ let width = clamp(Math.abs(selectorRect.width + incX), 0, rootRect.width - selectorRect.left);
581
+ let height = clamp(Math.abs(selectorRect.height + incY), 0, rootRect.height - selectorRect.top);
582
+
583
+ // Right
584
+ if (refs.aspectRatio.current !== undefined) {
585
+ height = width / refs.aspectRatio.current;
586
+
587
+ // Max width
588
+ if (refs.selector.current.left + width > rootRect.width) {
589
+ width = rootRect.width - refs.selector.current.left;
590
+ height = width / refs.aspectRatio.current;
591
+ }
592
+
593
+ // Max height
594
+ if (refs.selector.current.top + height > rootRect.height) {
595
+ height = rootRect.height - refs.selector.current.top;
596
+ width = height * refs.aspectRatio.current;
597
+ }
598
+ width = height * refs.aspectRatio.current;
599
+
600
+ // Max width
601
+ if (refs.selector.current.left + width > rootRect.width) {
602
+ width = rootRect.width - refs.selector.current.left;
603
+ height = width / refs.aspectRatio.current;
604
+ }
605
+
606
+ // Max height
607
+ if (refs.selector.current.top + height > rootRect.height) {
608
+ height = rootRect.height - refs.selector.current.top;
609
+ width = height * refs.aspectRatio.current;
610
+ }
611
+ }
612
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
613
+ width,
614
+ height
615
+ }));
616
+ } else if (refs.mouseDown.current?.version === 'bottom_left') {
617
+ const incY = y - refs.previousMouseEvent.current.clientY;
618
+ const incX = x - refs.previousMouseEvent.current.clientX;
619
+ const left = clamp(selectorRect.left + incX, 0);
620
+ if (selectorRect.height + incY < 0 && selectorRect.right - left < 0) refs.mouseDown.current.version = 'top_right';else if (selectorRect.height + incY < 0) refs.mouseDown.current.version = 'top_left';else if (selectorRect.right - left < 0) refs.mouseDown.current.version = 'bottom_right';
621
+ let width = clamp(selectorRect.right - left, 0);
622
+ let height = clamp(Math.abs(selectorRect.height + incY), 0, rootRect.height - selectorRect.top);
623
+
624
+ // Left
625
+ if (refs.aspectRatio.current !== undefined) {
626
+ // Left
627
+ if (left < refs.selector.current.left && refs.selector.current?.top + refs.selector.current?.height >= rootRect.height) return;
628
+ height = width / refs.aspectRatio.current;
629
+
630
+ // Max width
631
+ if (refs.selector.current.left + width > rootRect.width) {
632
+ width = rootRect.width - refs.selector.current.left;
633
+ height = width / refs.aspectRatio.current;
634
+ }
635
+
636
+ // Max height
637
+ if (refs.selector.current.top + height > rootRect.height) {
638
+ height = rootRect.height - refs.selector.current.top;
639
+ width = height * refs.aspectRatio.current;
640
+ }
641
+ width = height * refs.aspectRatio.current;
642
+
643
+ // Max width
644
+ if (refs.selector.current.left + width > rootRect.width) {
645
+ width = rootRect.width - refs.selector.current.left;
646
+ height = width / refs.aspectRatio.current;
647
+ }
648
+
649
+ // Max height
650
+ if (refs.selector.current.top + height > rootRect.height) {
651
+ height = rootRect.height - refs.selector.current.top;
652
+ width = height * refs.aspectRatio.current;
653
+ }
654
+ }
655
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
656
+ left,
657
+ width,
658
+ height
659
+ }));
660
+ } else if (refs.mouseDown.current?.version === 'top') {
661
+ const inc = y - refs.previousMouseEvent.current.clientY;
662
+ const top = clamp(refs.selector.current.top + inc, 0);
663
+ if (refs.selector.current.top <= 0 && top <= 0) return;
664
+ if (selectorRect.bottom - top < 0) refs.mouseDown.current.version = 'bottom';
665
+ let width = refs.selector.current.width;
666
+ let height = clamp(Math.abs(refs.selector.current.height - inc), 0, previousTop - top);
667
+ if (refs.aspectRatio.current !== undefined) {
668
+ // Top
669
+ if (top < refs.selector.current.top && refs.selector.current.top < previousTop && refs.selector.current.left + refs.selector.current.width >= rootRect.width) return;
670
+ width = height * refs.aspectRatio.current;
671
+
672
+ // Max width
673
+ if (refs.selector.current.left + width > rootRect.width) {
674
+ width = rootRect.width - refs.selector.current.left;
675
+ height = width / refs.aspectRatio.current;
676
+ }
677
+
678
+ // Max height
679
+ if (top + height > rootRect.height) {
680
+ height = rootRect.height - top;
681
+ width = height * refs.aspectRatio.current;
682
+ }
683
+ }
684
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
685
+ top,
686
+ width,
687
+ height
688
+ }));
689
+ } else if (refs.mouseDown.current?.version === 'bottom') {
690
+ const inc = y - refs.previousMouseEvent.current.clientY;
691
+ if (selectorRect.height + inc < 0) refs.mouseDown.current.version = 'top';
692
+ let width = refs.selector.current.width;
693
+ let height = clamp(Math.abs(selectorRect.height + inc), 0, rootRect.height - refs.selector.current.top);
694
+ if (refs.aspectRatio.current !== undefined) {
695
+ width = height * refs.aspectRatio.current;
696
+
697
+ // Max height
698
+ if (refs.selector.current.top + height > rootRect.height) {
699
+ height = rootRect.height - refs.selector.current.top;
700
+ width = height * refs.aspectRatio.current;
701
+ }
702
+
703
+ // Max width
704
+ if (refs.selector.current.left + width > rootRect.width) {
705
+ width = rootRect.width - refs.selector.current.left;
706
+ height = width / refs.aspectRatio.current;
707
+ }
708
+ }
709
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
710
+ width,
711
+ height
712
+ }));
713
+ } else if (refs.mouseDown.current?.version === 'left') {
714
+ const inc = x - refs.previousMouseEvent.current.clientX;
715
+ const left = clamp(selectorRect.left + inc, 0);
716
+ if (selectorRect.right - left < 0) refs.mouseDown.current.version = 'right';
717
+ let width = clamp(selectorRect.right - left, 0);
718
+ let height = refs.selector.current.height;
719
+ if (refs.aspectRatio.current !== undefined) {
720
+ if (left < refs.selector.current.left && refs.selector.current?.top + refs.selector.current?.height >= rootRect.height) return;
721
+ height = width / refs.aspectRatio.current;
722
+
723
+ // Max width
724
+ if (refs.selector.current.left + width > rootRect.width) {
725
+ width = rootRect.width - refs.selector.current.left;
726
+ height = width / refs.aspectRatio.current;
727
+ }
728
+
729
+ // Max height
730
+ if (refs.selector.current.top + height > rootRect.height) {
731
+ height = rootRect.height - refs.selector.current.top;
732
+ width = height * refs.aspectRatio.current;
733
+ }
734
+ }
735
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
736
+ left,
737
+ width,
738
+ height
739
+ }));
740
+ } else if (refs.mouseDown.current?.version === 'right') {
741
+ const inc = x - refs.previousMouseEvent.current.clientX;
742
+ if (selectorRect.width + inc < 0) refs.mouseDown.current.version = 'left';
743
+ let width = clamp(Math.abs(selectorRect.width + inc), 0, rootRect.width - selectorRect.left);
744
+ let height = refs.selector.current.height;
745
+ if (refs.aspectRatio.current !== undefined) {
746
+ height = width / refs.aspectRatio.current;
747
+
748
+ // Max width
749
+ if (refs.selector.current.left + width > rootRect.width) {
750
+ width = rootRect.width - refs.selector.current.left;
751
+ height = width / refs.aspectRatio.current;
752
+ }
753
+
754
+ // Max height
755
+ if (refs.selector.current.top + height > rootRect.height) {
756
+ height = rootRect.height - refs.selector.current.top;
757
+ width = height * refs.aspectRatio.current;
758
+ }
759
+ }
760
+ onSelectorChange(_objectSpread(_objectSpread({}, refs.selector.current), {}, {
761
+ width,
762
+ height
763
+ }));
764
+ }
765
+ }
766
+ };
767
+
768
+ // Mouse move
769
+ const onMouseMove = event => {
770
+ if (refs.mouseDown.current) {
771
+ const {
772
+ clientY,
773
+ clientX
774
+ } = event;
775
+ onMove(clientX, clientY);
776
+ refs.previousMouseEvent.current = event;
777
+ }
778
+ };
779
+
780
+ // Touch move
781
+ const onTouchMove = event => {
782
+ if (refs.mouseDown.current) {
783
+ const {
784
+ clientY,
785
+ clientX
786
+ } = event.touches[0];
787
+ onMove(clientX, clientY);
788
+ refs.previousMouseEvent.current = event;
789
+
790
+ // Normalize for use as a mouseDown value
791
+ refs.previousMouseEvent.current.clientY = clientY;
792
+ refs.previousMouseEvent.current.clientX = clientX;
793
+ }
794
+ };
795
+ const rootDocument = isEnvironment('browser') ? refs.root.current?.ownerDocument || window.document : undefined;
796
+ rootDocument.addEventListener('keydown', method);
797
+ rootDocument.addEventListener('mousemove', onMouseMove);
798
+ rootDocument.addEventListener('mouseup', onMouseUp);
799
+ rootDocument.addEventListener('touchmove', onTouchMove, {
800
+ passive: true
801
+ });
802
+ rootDocument.addEventListener('touchend', onMouseUp);
803
+ return () => {
804
+ // Clean up
805
+ rootDocument.removeEventListener('keydown', method);
806
+ rootDocument.removeEventListener('mousemove', onMouseMove);
807
+ rootDocument.removeEventListener('mouseup', onMouseUp);
808
+ rootDocument.removeEventListener('touchmove', onTouchMove);
809
+ rootDocument.removeEventListener('touchend', onMouseUp);
810
+ if (refs.image.current) {
811
+ setImage('');
812
+ if (rootDocument.body.style.overflow === 'hidden') rootDocument.body.style.removeProperty('overflow');
813
+ }
814
+ };
815
+ }, []);
816
+ React.useEffect(() => {
817
+ if (image_ !== image) {
818
+ if (image_ instanceof HTMLCanvasElement) setImage(image_);else if (is('string', image_)) !refs.dynamicParent.current ? makeImage(image_) : setTimeout(() => makeImage(image_), 140);
819
+ }
820
+ }, [image_]);
821
+ const updateSelector = function () {
822
+ let selector__ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : refs.selector.current;
823
+ let image__ = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : refs.image.current;
824
+ if (selector__ !== undefined && image__ !== undefined) {
825
+ const rootRect = refs.root.current.getBoundingClientRect();
826
+ const selectorValue = {
827
+ top: clamp(selector__.top, 0, image__.height),
828
+ left: clamp(selector__.left, 0, image__.height)
829
+ };
830
+ selectorValue.width = clamp(selector__.width || 0, 0, rootRect.width - selectorValue.left);
831
+ selectorValue.height = clamp(selector__.height || 0, 0, rootRect.height - selectorValue.top);
832
+
833
+ // Aspect ratio
834
+ if (refs.aspectRatio.current !== undefined) {
835
+ // Max surface
836
+ if (selectorValue.width + selectorValue.width / refs.aspectRatio.current >= selectorValue.height + selectorValue.height * refs.aspectRatio.current) {
837
+ selectorValue.height = selectorValue.width / refs.aspectRatio.current;
838
+ } else {
839
+ selectorValue.width = selectorValue.height * refs.aspectRatio.current;
840
+ }
841
+
842
+ // Max width
843
+ if (selectorValue.left + selectorValue.width > rootRect.width) {
844
+ selectorValue.width = rootRect.width - selectorValue.left;
845
+ selectorValue.height = selectorValue.width / refs.aspectRatio.current;
846
+ }
847
+
848
+ // Max height
849
+ if (selectorValue.top + selectorValue.height > rootRect.height) {
850
+ selectorValue.height = rootRect.height - selectorValue.top;
851
+ selectorValue.width = selectorValue.height * refs.aspectRatio.current;
852
+ }
853
+ }
854
+
855
+ // Update selector
856
+ setSelector(selectorValue);
857
+
858
+ // Update selector relative
859
+ setSelectorRelative({
860
+ top: selectorValue.top / rootRect?.height * refs.canvasMain.current?.height,
861
+ left: selectorValue.left / rootRect?.width * refs.canvasMain.current?.width,
862
+ width: selectorValue.width / rootRect?.width * refs.canvasMain.current?.width,
863
+ height: selectorValue.height / rootRect?.height * refs.canvasMain.current?.height
864
+ });
865
+ }
866
+ };
867
+ React.useEffect(() => {
868
+ updateSelector();
869
+ }, [aspectRatio]);
870
+ React.useEffect(() => {
871
+ if (selector_ !== selector) updateSelector(selector_);
872
+ }, [selector_]);
873
+ React.useEffect(() => {
874
+ if (image) {
875
+ refs.canvasMain.current.width = image.width;
876
+ refs.canvasMain.current.height = image.height;
877
+ refs.canvasMain.current.getContext('2d').drawImage(image, 0, 0), image.width, image.height;
878
+ refs.canvasImageSelector.current.width = image.width;
879
+ refs.canvasImageSelector.current.height = image.height;
880
+ refs.canvasImageSelector.current.getContext('2d').drawImage(image, 0, 0), image.width, image.height;
881
+
882
+ // Update selector
883
+ updateSelector();
884
+ }
885
+ }, [image]);
886
+ const makeImage = async function () {
887
+ let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : image;
888
+ const img = await imageMethod(value);
889
+ const rootDocument = isEnvironment('browser') ? refs.root.current?.ownerDocument || window.document : undefined;
890
+ const canvas = rootDocument.createElement('canvas');
891
+ const rootRect = refs.root.current.getBoundingClientRect();
892
+ const aspectRatioImg = img.width / img.height;
893
+
894
+ // width being parent width
895
+ img.width = rootRect.width;
896
+
897
+ // height keep aspect ratio of the img for the height
898
+ img.height = img.width / aspectRatioImg;
899
+ canvas.width = img.width;
900
+ canvas.height = img.height;
901
+ canvas.getContext('2d').drawImage(img, 0, 0, img.width, img.height);
902
+ setImage(canvas);
903
+ };
904
+ const onFocus = React.useCallback(event => {
905
+ setFocus(true);
906
+ if (is('function', onFocus_)) onFocus_(event);
907
+ }, []);
908
+ const onBlur = React.useCallback(event => {
909
+ setFocus(false);
910
+ if (is('function', onBlur_)) onBlur_(event);
911
+ }, []);
912
+ const onTouchStart = React.useCallback(event => {
913
+ if (![refs.imageSelectorMain.current, refs.imageSelector.current, refs.move.current, refs.borderTop.current, refs.borderLeft.current, refs.borderRight.current, refs.borderBottom.current, refs.dotTopLeft.current, refs.dotTopRight.current, refs.dotBottomLeft.current, refs.dotBottomRight.current].includes(event.target)) {
914
+ const {
915
+ clientY,
916
+ clientX
917
+ } = event.touches[0];
918
+ const rootRect = refs.root.current.getBoundingClientRect();
919
+ setMouseDown({
920
+ version: 'make',
921
+ top: clientY - rootRect.top,
922
+ left: clientX - rootRect.left
923
+ });
924
+ }
925
+ }, []);
926
+ const onMouseDown = React.useCallback(event => {
927
+ if (![refs.imageSelectorMain.current, refs.imageSelector.current, refs.move.current, refs.borderTop.current, refs.borderLeft.current, refs.borderRight.current, refs.borderBottom.current, refs.dotTopLeft.current, refs.dotTopRight.current, refs.dotBottomLeft.current, refs.dotBottomRight.current].includes(event.target)) {
928
+ const {
929
+ clientY,
930
+ clientX
931
+ } = event;
932
+ const rootRect = refs.root.current.getBoundingClientRect();
933
+ setMouseDown({
934
+ version: 'make',
935
+ top: clientY - rootRect.top,
936
+ left: clientX - rootRect.left
937
+ });
938
+ }
939
+ }, []);
940
+ const onTouchStartSelector = React.useCallback(event => {
941
+ const {
942
+ clientY,
943
+ clientX
944
+ } = event.touches[0];
945
+ const rootRect = refs.root.current.getBoundingClientRect();
946
+ setMouseDown({
947
+ version: 'move',
948
+ top: clientY - rootRect.top,
949
+ left: clientX - rootRect.left
950
+ });
951
+ }, []);
952
+ const onMouseDownSelector = React.useCallback(event => {
953
+ const {
954
+ clientY,
955
+ clientX
956
+ } = event;
957
+ const rootRect = refs.root.current.getBoundingClientRect();
958
+ setMouseDown({
959
+ version: 'move',
960
+ top: clientY - rootRect.top,
961
+ left: clientX - rootRect.left
962
+ });
963
+ }, []);
964
+ const onTouchStartBorder = version => event => {
965
+ setMouseDown({
966
+ version,
967
+ top: refs.selector.current?.top + refs.selector.current?.height,
968
+ left: refs.selector.current?.left + refs.selector.current?.width
969
+ });
970
+ };
971
+ const onMouseDownBorder = version => event => {
972
+ setMouseDown({
973
+ version,
974
+ top: refs.selector.current?.top + refs.selector.current?.height,
975
+ left: refs.selector.current?.left + refs.selector.current?.width
976
+ });
977
+ };
978
+ const rect = refs.root.current?.getBoundingClientRect();
979
+ return /*#__PURE__*/React.createElement(Component, _extends({
980
+ ref: item => {
981
+ if (ref) {
982
+ if (is('function', ref)) ref(item);else ref.current = item;
983
+ }
984
+ refs.root.current = item;
985
+ },
986
+ tabIndex: 0,
987
+ onFocus: onFocus,
988
+ onBlur: onBlur,
989
+ onTouchStart: onTouchStart,
990
+ onMouseDown: onMouseDown,
991
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-root'], className, classes.root])
992
+ }, other), /*#__PURE__*/React.createElement("canvas", {
993
+ ref: refs.canvasMain,
994
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-canvas', 'onesy-ImageCrop-canvas-main'], classes.canvas, classes.canvas_main])
995
+ }), /*#__PURE__*/React.createElement("div", {
996
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-background'], classes.background, image && classes.background_in])
997
+ }), /*#__PURE__*/React.createElement(Tooltip, _extends({
998
+ open: mouseDown && selector?.width + selector?.height > 0,
999
+ label: `${Math.round(selectorRelative?.width || 0)} x ${Math.round(selectorRelative?.height || 0)}`,
1000
+ position: "bottom"
1001
+ }, TooltipProps), /*#__PURE__*/React.createElement("div", {
1002
+ ref: refs.imageSelectorMain,
1003
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-image-selector-main'], classes.imageSelector_main, selector && classes.imageSelector_main_in]),
1004
+ style: _objectSpread({}, selector)
1005
+ }, /*#__PURE__*/React.createElement("div", {
1006
+ ref: refs.move,
1007
+ onTouchStart: onTouchStartSelector,
1008
+ onMouseDown: onMouseDownSelector,
1009
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-move'], classes.move])
1010
+ }), gridLines && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1011
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-grid-line', 'onesy-ImageCrop-grid-line-top-start'], classes.grid_line, classes.grid_line_top_start])
1012
+ }), /*#__PURE__*/React.createElement("div", {
1013
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-grid-line', 'onesy-ImageCrop-grid-line-top-end'], classes.grid_line, classes.grid_line_top_end])
1014
+ }), /*#__PURE__*/React.createElement("div", {
1015
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-grid-line', 'onesy-ImageCrop-grid-line-left-start'], classes.grid_line, classes.grid_line_left_start])
1016
+ }), /*#__PURE__*/React.createElement("div", {
1017
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-grid-line', 'onesy-ImageCrop-grid-line-left-end'], classes.grid_line, classes.grid_line_left_end])
1018
+ })), /*#__PURE__*/React.createElement("div", {
1019
+ ref: refs.dotTopLeft,
1020
+ onTouchStart: onTouchStartBorder('top_left'),
1021
+ onMouseDown: onMouseDownBorder('top_left'),
1022
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-dot', 'onesy-ImageCrop-dot-top-left'], classes.dot, classes.dot_top_left])
1023
+ }), /*#__PURE__*/React.createElement("div", {
1024
+ ref: refs.dotTopRight,
1025
+ onTouchStart: onTouchStartBorder('top_right'),
1026
+ onMouseDown: onMouseDownBorder('top_right'),
1027
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-dot', 'onesy-ImageCrop-dot-top-right'], classes.dot, classes.dot_top_right])
1028
+ }), /*#__PURE__*/React.createElement("div", {
1029
+ ref: refs.dotBottomLeft,
1030
+ onTouchStart: onTouchStartBorder('bottom_left'),
1031
+ onMouseDown: onMouseDownBorder('bottom_left'),
1032
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-dot', 'onesy-ImageCrop-dot-bottom-left'], classes.dot, classes.dot_bottom_left])
1033
+ }), /*#__PURE__*/React.createElement("div", {
1034
+ ref: refs.dotBottomRight,
1035
+ onTouchStart: onTouchStartBorder('bottom_right'),
1036
+ onMouseDown: onMouseDownBorder('bottom_right'),
1037
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-dot', 'onesy-ImageCrop-dot-bottom-right'], classes.dot, classes.dot_bottom_right])
1038
+ }), /*#__PURE__*/React.createElement("div", {
1039
+ ref: refs.borderTop,
1040
+ onTouchStart: onTouchStartBorder('top'),
1041
+ onMouseDown: onMouseDownBorder('top'),
1042
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-border', 'onesy-ImageCrop-border-top'], classes.border, classes.border_top])
1043
+ }), /*#__PURE__*/React.createElement("div", {
1044
+ ref: refs.borderLeft,
1045
+ onTouchStart: onTouchStartBorder('left'),
1046
+ onMouseDown: onMouseDownBorder('left'),
1047
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-border', 'onesy-ImageCrop-border-left'], classes.border, classes.border_left])
1048
+ }), /*#__PURE__*/React.createElement("div", {
1049
+ ref: refs.borderRight,
1050
+ onTouchStart: onTouchStartBorder('right'),
1051
+ onMouseDown: onMouseDownBorder('right'),
1052
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-border', 'onesy-ImageCrop-border-right'], classes.border, classes.border_right])
1053
+ }), /*#__PURE__*/React.createElement("div", {
1054
+ ref: refs.borderBottom,
1055
+ onTouchStart: onTouchStartBorder('bottom'),
1056
+ onMouseDown: onMouseDownBorder('bottom'),
1057
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-border', 'onesy-ImageCrop-border-bottom'], classes.border, classes.border_bottom])
1058
+ }))), /*#__PURE__*/React.createElement("div", {
1059
+ ref: refs.imageSelector,
1060
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-image-selector'], classes.imageSelector]),
1061
+ style: _objectSpread({}, selector)
1062
+ }, /*#__PURE__*/React.createElement("canvas", {
1063
+ ref: refs.canvasImageSelector,
1064
+ className: classNames([staticClassName('ImageCrop', theme) && ['onesy-ImageCrop-canvas', 'onesy-ImageCrop-canvas-image-selector'], classes.canvas, classes.canvas_imageSelector]),
1065
+ width: image?.width || 0,
1066
+ height: image?.height || 0,
1067
+ style: {
1068
+ top: `${(selector?.top || 0) * -1}px`,
1069
+ left: `${(selector?.left || 0) * -1}px`,
1070
+ width: rect?.width,
1071
+ height: rect?.height
1072
+ }
1073
+ })));
1074
+ });
1075
+ ImageCrop.displayName = 'onesy-ImageCrop';
1076
+ export default ImageCrop;