@etsoo/materialui 1.5.2 → 1.5.3

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 (422) hide show
  1. package/lib/cjs/AddresSelector.d.ts +1 -1
  2. package/lib/cjs/AddresSelector.js +4 -3
  3. package/lib/cjs/AuditDisplay.d.ts +1 -1
  4. package/lib/cjs/AuditDisplay.js +8 -5
  5. package/lib/cjs/AutocompleteExtendedProps.d.ts +1 -1
  6. package/lib/cjs/BackButton.d.ts +1 -1
  7. package/lib/cjs/BackButton.js +4 -3
  8. package/lib/cjs/BridgeCloseButton.d.ts +2 -1
  9. package/lib/cjs/BridgeCloseButton.js +3 -2
  10. package/lib/cjs/ButtonLink.d.ts +1 -1
  11. package/lib/cjs/ButtonLink.js +7 -4
  12. package/lib/cjs/ButtonPopover.d.ts +1 -1
  13. package/lib/cjs/ButtonPopover.js +2 -2
  14. package/lib/cjs/ComboBox.js +6 -4
  15. package/lib/cjs/ComboBoxMultiple.js +4 -3
  16. package/lib/cjs/ComboBoxPro.d.ts +1 -1
  17. package/lib/cjs/ComboBoxPro.js +2 -2
  18. package/lib/cjs/CountdownButton.d.ts +1 -1
  19. package/lib/cjs/CountdownButton.js +4 -3
  20. package/lib/cjs/DataGridEx.js +15 -11
  21. package/lib/cjs/DataGridRenderers.js +2 -2
  22. package/lib/cjs/DataSteps.d.ts +1 -1
  23. package/lib/cjs/DataSteps.js +9 -6
  24. package/lib/cjs/DataTable.d.ts +1 -1
  25. package/lib/cjs/DataTable.js +2 -2
  26. package/lib/cjs/DialogButton.d.ts +2 -1
  27. package/lib/cjs/DialogButton.js +9 -3
  28. package/lib/cjs/DnDList.d.ts +2 -2
  29. package/lib/cjs/DnDList.js +4 -3
  30. package/lib/cjs/DraggablePaperComponent.d.ts +1 -1
  31. package/lib/cjs/DraggablePaperComponent.js +2 -2
  32. package/lib/cjs/EmailInput.d.ts +1 -1
  33. package/lib/cjs/EmailInput.js +7 -6
  34. package/lib/cjs/ErrorAlert.d.ts +1 -1
  35. package/lib/cjs/ErrorAlert.js +5 -2
  36. package/lib/cjs/FabBox.d.ts +2 -1
  37. package/lib/cjs/FabBox.js +6 -4
  38. package/lib/cjs/FieldSetEx.d.ts +1 -1
  39. package/lib/cjs/FieldSetEx.js +5 -3
  40. package/lib/cjs/FileUploadButton.d.ts +1 -1
  41. package/lib/cjs/FileUploadButton.js +5 -2
  42. package/lib/cjs/FlexBox.d.ts +1 -1
  43. package/lib/cjs/FlexBox.js +7 -4
  44. package/lib/cjs/HiSelector.d.ts +2 -1
  45. package/lib/cjs/HiSelector.js +3 -2
  46. package/lib/cjs/HiSelectorTL.d.ts +2 -1
  47. package/lib/cjs/HiSelectorTL.js +3 -2
  48. package/lib/cjs/IconButtonLink.d.ts +1 -1
  49. package/lib/cjs/IconButtonLink.js +5 -2
  50. package/lib/cjs/InputField.d.ts +4 -4
  51. package/lib/cjs/InputField.js +2 -2
  52. package/lib/cjs/InputTipField.js +8 -5
  53. package/lib/cjs/IntInputField.d.ts +1 -1
  54. package/lib/cjs/IntInputField.js +8 -6
  55. package/lib/cjs/ItemList.js +10 -4
  56. package/lib/cjs/LineChart.js +2 -2
  57. package/lib/cjs/ListChooser.d.ts +2 -1
  58. package/lib/cjs/ListChooser.js +8 -4
  59. package/lib/cjs/ListItemRightIcon.d.ts +1 -1
  60. package/lib/cjs/ListItemRightIcon.js +6 -2
  61. package/lib/cjs/ListMoreDisplay.d.ts +1 -1
  62. package/lib/cjs/ListMoreDisplay.js +7 -3
  63. package/lib/cjs/LoadingButton.d.ts +2 -1
  64. package/lib/cjs/LoadingButton.js +4 -3
  65. package/lib/cjs/MUGlobal.d.ts +2 -1
  66. package/lib/cjs/MaskInput.d.ts +1 -1
  67. package/lib/cjs/MaskInput.js +2 -2
  68. package/lib/cjs/MenuButton.d.ts +2 -1
  69. package/lib/cjs/MenuButton.js +5 -3
  70. package/lib/cjs/MobileListItemRenderer.js +14 -5
  71. package/lib/cjs/MoreFab.d.ts +2 -1
  72. package/lib/cjs/MoreFab.js +10 -4
  73. package/lib/cjs/NotifierMU.js +45 -22
  74. package/lib/cjs/NotifierPopupProps.d.ts +1 -1
  75. package/lib/cjs/NumberInputField.js +15 -13
  76. package/lib/cjs/OptionGroup.d.ts +1 -1
  77. package/lib/cjs/OptionGroup.js +15 -7
  78. package/lib/cjs/OptionGroupFlag.d.ts +1 -1
  79. package/lib/cjs/OptionGroupFlag.js +12 -6
  80. package/lib/cjs/PercentCircularProgress.d.ts +2 -1
  81. package/lib/cjs/PercentCircularProgress.js +8 -3
  82. package/lib/cjs/PercentLinearProgress.d.ts +2 -1
  83. package/lib/cjs/PercentLinearProgress.js +7 -2
  84. package/lib/cjs/ProgressCount.js +7 -4
  85. package/lib/cjs/QuickList.d.ts +3 -1
  86. package/lib/cjs/QuickList.js +6 -2
  87. package/lib/cjs/ResponsibleContainer.d.ts +1 -1
  88. package/lib/cjs/ResponsibleContainer.js +8 -6
  89. package/lib/cjs/ResponsiveStyleValue.d.ts +1 -1
  90. package/lib/cjs/ScrollTopFab.js +5 -3
  91. package/lib/cjs/ScrollerListEx.js +2 -2
  92. package/lib/cjs/SearchBar.js +9 -5
  93. package/lib/cjs/SearchField.d.ts +1 -1
  94. package/lib/cjs/SearchField.js +2 -2
  95. package/lib/cjs/SelectEx.d.ts +1 -1
  96. package/lib/cjs/SelectEx.js +18 -9
  97. package/lib/cjs/ShowDataComparison.js +9 -2
  98. package/lib/cjs/Switch.d.ts +1 -1
  99. package/lib/cjs/Switch.js +2 -2
  100. package/lib/cjs/SwitchAnt.js +5 -4
  101. package/lib/cjs/SwitchField.d.ts +1 -1
  102. package/lib/cjs/SwitchField.js +6 -3
  103. package/lib/cjs/TabBox.d.ts +3 -1
  104. package/lib/cjs/TabBox.js +5 -3
  105. package/lib/cjs/TableEx.d.ts +1 -1
  106. package/lib/cjs/TableEx.js +20 -10
  107. package/lib/cjs/TagList.d.ts +1 -1
  108. package/lib/cjs/TagList.js +5 -3
  109. package/lib/cjs/TagListPro.d.ts +1 -1
  110. package/lib/cjs/TagListPro.js +5 -3
  111. package/lib/cjs/TextFieldEx.d.ts +4 -4
  112. package/lib/cjs/TextFieldEx.js +7 -4
  113. package/lib/cjs/Tiplist.js +2 -2
  114. package/lib/cjs/TiplistPro.d.ts +1 -1
  115. package/lib/cjs/TiplistPro.js +2 -2
  116. package/lib/cjs/TooltipClick.d.ts +1 -1
  117. package/lib/cjs/TooltipClick.js +3 -2
  118. package/lib/cjs/TwoFieldInput.js +4 -3
  119. package/lib/cjs/UserAvatar.js +5 -2
  120. package/lib/cjs/UserAvatarEditor.js +8 -3
  121. package/lib/cjs/ViewContainer.d.ts +5 -4
  122. package/lib/cjs/ViewContainer.js +4 -3
  123. package/lib/cjs/custom/CustomFieldUtils.d.ts +1 -1
  124. package/lib/cjs/custom/CustomFieldUtils.js +5 -4
  125. package/lib/cjs/custom/CustomFieldViewer.d.ts +3 -2
  126. package/lib/cjs/custom/CustomFieldViewer.js +7 -3
  127. package/lib/cjs/custom/CustomFieldWindow.d.ts +2 -2
  128. package/lib/cjs/custom/CustomFieldWindow.js +3 -2
  129. package/lib/cjs/custom/FieldAmountLabel.js +3 -2
  130. package/lib/cjs/custom/FieldCheckbox.js +2 -2
  131. package/lib/cjs/custom/FieldCombobox.js +2 -2
  132. package/lib/cjs/custom/FieldDateInput.js +2 -2
  133. package/lib/cjs/custom/FieldDivider.js +2 -2
  134. package/lib/cjs/custom/FieldInput.js +2 -2
  135. package/lib/cjs/custom/FieldJson.js +2 -2
  136. package/lib/cjs/custom/FieldNumberInput.js +2 -2
  137. package/lib/cjs/custom/FieldRadio.js +2 -2
  138. package/lib/cjs/custom/FieldSelect.js +2 -2
  139. package/lib/cjs/custom/FieldSwitch.js +2 -2
  140. package/lib/cjs/custom/FieldTexarea.js +2 -2
  141. package/lib/cjs/pages/CommonPage.d.ts +2 -1
  142. package/lib/cjs/pages/CommonPage.js +6 -4
  143. package/lib/cjs/pages/DataGridPage.js +3 -2
  144. package/lib/cjs/pages/DrawerHeader.d.ts +1 -1
  145. package/lib/cjs/pages/DrawerHeader.js +2 -2
  146. package/lib/cjs/pages/EditPage.js +4 -3
  147. package/lib/cjs/pages/FixedListPage.js +4 -3
  148. package/lib/cjs/pages/LeftDrawer.js +8 -3
  149. package/lib/cjs/pages/ListPage.js +3 -2
  150. package/lib/cjs/pages/TablePage.js +3 -2
  151. package/lib/cjs/pages/UserMenu.js +3 -2
  152. package/lib/cjs/pages/ViewPage.js +4 -3
  153. package/lib/cjs/texts/DateText.d.ts +1 -1
  154. package/lib/cjs/texts/DateText.js +5 -2
  155. package/lib/cjs/texts/MoneyText.js +5 -2
  156. package/lib/cjs/texts/NumberText.d.ts +1 -1
  157. package/lib/cjs/texts/NumberText.js +5 -2
  158. package/lib/cjs/useCurrentBreakpoint.d.ts +1 -1
  159. package/lib/cjs/useCurrentBreakpoint.js +11 -7
  160. package/lib/mjs/AddresSelector.d.ts +1 -1
  161. package/lib/mjs/AddresSelector.js +4 -3
  162. package/lib/mjs/AuditDisplay.d.ts +1 -1
  163. package/lib/mjs/AuditDisplay.js +4 -1
  164. package/lib/mjs/AutocompleteExtendedProps.d.ts +1 -1
  165. package/lib/mjs/BackButton.d.ts +1 -1
  166. package/lib/mjs/BackButton.js +2 -1
  167. package/lib/mjs/BridgeCloseButton.d.ts +2 -1
  168. package/lib/mjs/BridgeCloseButton.js +2 -1
  169. package/lib/mjs/ButtonLink.d.ts +1 -1
  170. package/lib/mjs/ButtonLink.js +2 -2
  171. package/lib/mjs/ButtonPopover.d.ts +1 -1
  172. package/lib/mjs/ButtonPopover.js +1 -1
  173. package/lib/mjs/ComboBox.js +4 -2
  174. package/lib/mjs/ComboBoxMultiple.js +2 -1
  175. package/lib/mjs/ComboBoxPro.d.ts +1 -1
  176. package/lib/mjs/ComboBoxPro.js +1 -1
  177. package/lib/mjs/CountdownButton.d.ts +1 -1
  178. package/lib/mjs/CountdownButton.js +2 -1
  179. package/lib/mjs/DataGridEx.js +5 -1
  180. package/lib/mjs/DataGridRenderers.js +1 -1
  181. package/lib/mjs/DataSteps.d.ts +1 -1
  182. package/lib/mjs/DataSteps.js +4 -1
  183. package/lib/mjs/DataTable.d.ts +1 -1
  184. package/lib/mjs/DataTable.js +1 -1
  185. package/lib/mjs/DialogButton.d.ts +2 -1
  186. package/lib/mjs/DialogButton.js +7 -1
  187. package/lib/mjs/DnDList.d.ts +2 -2
  188. package/lib/mjs/DnDList.js +2 -1
  189. package/lib/mjs/DraggablePaperComponent.d.ts +1 -1
  190. package/lib/mjs/DraggablePaperComponent.js +1 -1
  191. package/lib/mjs/EmailInput.d.ts +1 -1
  192. package/lib/mjs/EmailInput.js +4 -6
  193. package/lib/mjs/ErrorAlert.d.ts +1 -1
  194. package/lib/mjs/ErrorAlert.js +1 -1
  195. package/lib/mjs/FabBox.d.ts +2 -1
  196. package/lib/mjs/FabBox.js +3 -1
  197. package/lib/mjs/FieldSetEx.d.ts +1 -1
  198. package/lib/mjs/FieldSetEx.js +3 -1
  199. package/lib/mjs/FileUploadButton.d.ts +1 -1
  200. package/lib/mjs/FileUploadButton.js +1 -1
  201. package/lib/mjs/FlexBox.d.ts +1 -1
  202. package/lib/mjs/FlexBox.js +1 -1
  203. package/lib/mjs/HiSelector.d.ts +2 -1
  204. package/lib/mjs/HiSelector.js +3 -2
  205. package/lib/mjs/HiSelectorTL.d.ts +2 -1
  206. package/lib/mjs/HiSelectorTL.js +3 -2
  207. package/lib/mjs/IconButtonLink.d.ts +1 -1
  208. package/lib/mjs/IconButtonLink.js +1 -1
  209. package/lib/mjs/InputField.d.ts +1 -1
  210. package/lib/mjs/InputField.js +1 -1
  211. package/lib/mjs/InputTipField.js +4 -1
  212. package/lib/mjs/IntInputField.d.ts +1 -1
  213. package/lib/mjs/IntInputField.js +3 -1
  214. package/lib/mjs/ItemList.js +7 -1
  215. package/lib/mjs/LineChart.js +1 -1
  216. package/lib/mjs/ListChooser.d.ts +2 -1
  217. package/lib/mjs/ListChooser.js +6 -2
  218. package/lib/mjs/ListItemRightIcon.d.ts +1 -1
  219. package/lib/mjs/ListItemRightIcon.js +2 -1
  220. package/lib/mjs/ListMoreDisplay.d.ts +1 -1
  221. package/lib/mjs/ListMoreDisplay.js +5 -1
  222. package/lib/mjs/LoadingButton.d.ts +2 -1
  223. package/lib/mjs/LoadingButton.js +2 -1
  224. package/lib/mjs/MUGlobal.d.ts +2 -1
  225. package/lib/mjs/MaskInput.d.ts +1 -1
  226. package/lib/mjs/MaskInput.js +1 -1
  227. package/lib/mjs/MenuButton.d.ts +2 -1
  228. package/lib/mjs/MenuButton.js +3 -1
  229. package/lib/mjs/MobileListItemRenderer.js +8 -2
  230. package/lib/mjs/MoreFab.d.ts +2 -1
  231. package/lib/mjs/MoreFab.js +7 -1
  232. package/lib/mjs/NotifierMU.js +32 -9
  233. package/lib/mjs/NotifierPopupProps.d.ts +1 -1
  234. package/lib/mjs/NumberInputField.js +15 -13
  235. package/lib/mjs/OptionGroup.d.ts +1 -1
  236. package/lib/mjs/OptionGroup.js +9 -1
  237. package/lib/mjs/OptionGroupFlag.d.ts +1 -1
  238. package/lib/mjs/OptionGroupFlag.js +7 -1
  239. package/lib/mjs/PercentCircularProgress.d.ts +2 -1
  240. package/lib/mjs/PercentCircularProgress.js +3 -1
  241. package/lib/mjs/PercentLinearProgress.d.ts +2 -1
  242. package/lib/mjs/PercentLinearProgress.js +3 -1
  243. package/lib/mjs/ProgressCount.js +4 -1
  244. package/lib/mjs/QuickList.d.ts +3 -1
  245. package/lib/mjs/QuickList.js +5 -1
  246. package/lib/mjs/ResponsibleContainer.d.ts +1 -1
  247. package/lib/mjs/ResponsibleContainer.js +3 -1
  248. package/lib/mjs/ResponsiveStyleValue.d.ts +1 -1
  249. package/lib/mjs/ScrollTopFab.js +3 -1
  250. package/lib/mjs/ScrollerListEx.js +1 -1
  251. package/lib/mjs/SearchBar.js +5 -1
  252. package/lib/mjs/SearchField.d.ts +1 -1
  253. package/lib/mjs/SearchField.js +1 -1
  254. package/lib/mjs/SelectEx.d.ts +1 -1
  255. package/lib/mjs/SelectEx.js +11 -2
  256. package/lib/mjs/ShowDataComparison.js +5 -1
  257. package/lib/mjs/Switch.d.ts +1 -1
  258. package/lib/mjs/Switch.js +1 -1
  259. package/lib/mjs/SwitchAnt.js +3 -2
  260. package/lib/mjs/SwitchField.d.ts +1 -1
  261. package/lib/mjs/SwitchField.js +4 -1
  262. package/lib/mjs/TabBox.d.ts +3 -1
  263. package/lib/mjs/TabBox.js +3 -1
  264. package/lib/mjs/TableEx.d.ts +1 -1
  265. package/lib/mjs/TableEx.js +11 -1
  266. package/lib/mjs/TagList.d.ts +1 -1
  267. package/lib/mjs/TagList.js +3 -1
  268. package/lib/mjs/TagListPro.d.ts +1 -1
  269. package/lib/mjs/TagListPro.js +3 -1
  270. package/lib/mjs/TextFieldEx.d.ts +1 -1
  271. package/lib/mjs/TextFieldEx.js +6 -3
  272. package/lib/mjs/Tiplist.js +1 -1
  273. package/lib/mjs/TiplistPro.d.ts +1 -1
  274. package/lib/mjs/TiplistPro.js +1 -1
  275. package/lib/mjs/TooltipClick.d.ts +1 -1
  276. package/lib/mjs/TooltipClick.js +2 -1
  277. package/lib/mjs/TwoFieldInput.js +2 -1
  278. package/lib/mjs/UserAvatar.js +1 -1
  279. package/lib/mjs/UserAvatarEditor.js +6 -1
  280. package/lib/mjs/ViewContainer.d.ts +5 -4
  281. package/lib/mjs/ViewContainer.js +4 -3
  282. package/lib/mjs/custom/CustomFieldUtils.d.ts +1 -1
  283. package/lib/mjs/custom/CustomFieldUtils.js +4 -3
  284. package/lib/mjs/custom/CustomFieldViewer.d.ts +3 -2
  285. package/lib/mjs/custom/CustomFieldViewer.js +4 -3
  286. package/lib/mjs/custom/CustomFieldWindow.d.ts +2 -2
  287. package/lib/mjs/custom/CustomFieldWindow.js +3 -2
  288. package/lib/mjs/custom/FieldAmountLabel.js +2 -1
  289. package/lib/mjs/custom/FieldCheckbox.js +1 -1
  290. package/lib/mjs/custom/FieldCombobox.js +1 -1
  291. package/lib/mjs/custom/FieldDateInput.js +1 -1
  292. package/lib/mjs/custom/FieldDivider.js +1 -1
  293. package/lib/mjs/custom/FieldInput.js +1 -1
  294. package/lib/mjs/custom/FieldJson.js +1 -1
  295. package/lib/mjs/custom/FieldNumberInput.js +1 -1
  296. package/lib/mjs/custom/FieldRadio.js +1 -1
  297. package/lib/mjs/custom/FieldSelect.js +1 -1
  298. package/lib/mjs/custom/FieldSwitch.js +1 -1
  299. package/lib/mjs/custom/FieldTexarea.js +1 -1
  300. package/lib/mjs/pages/CommonPage.d.ts +2 -1
  301. package/lib/mjs/pages/CommonPage.js +3 -1
  302. package/lib/mjs/pages/DataGridPage.js +2 -1
  303. package/lib/mjs/pages/DrawerHeader.js +1 -1
  304. package/lib/mjs/pages/EditPage.js +3 -2
  305. package/lib/mjs/pages/FixedListPage.js +2 -1
  306. package/lib/mjs/pages/LeftDrawer.js +6 -1
  307. package/lib/mjs/pages/ListPage.js +2 -1
  308. package/lib/mjs/pages/TablePage.js +2 -1
  309. package/lib/mjs/pages/UserMenu.js +2 -1
  310. package/lib/mjs/pages/ViewPage.js +2 -1
  311. package/lib/mjs/texts/DateText.d.ts +1 -1
  312. package/lib/mjs/texts/DateText.js +1 -1
  313. package/lib/mjs/texts/MoneyText.js +1 -1
  314. package/lib/mjs/texts/NumberText.d.ts +1 -1
  315. package/lib/mjs/texts/NumberText.js +1 -1
  316. package/lib/mjs/useCurrentBreakpoint.d.ts +1 -1
  317. package/lib/mjs/useCurrentBreakpoint.js +2 -1
  318. package/package.json +9 -9
  319. package/src/AddresSelector.tsx +12 -11
  320. package/src/AuditDisplay.tsx +4 -1
  321. package/src/AutocompleteExtendedProps.ts +1 -1
  322. package/src/BackButton.tsx +2 -1
  323. package/src/BridgeCloseButton.tsx +2 -1
  324. package/src/ButtonLink.tsx +3 -3
  325. package/src/ButtonPopover.tsx +1 -1
  326. package/src/ComboBox.tsx +6 -7
  327. package/src/ComboBoxMultiple.tsx +4 -6
  328. package/src/ComboBoxPro.tsx +1 -1
  329. package/src/CountdownButton.tsx +2 -1
  330. package/src/CultureDataTable.tsx +1 -1
  331. package/src/DataGridEx.tsx +5 -8
  332. package/src/DataGridRenderers.tsx +1 -1
  333. package/src/DataSteps.tsx +4 -7
  334. package/src/DataTable.tsx +4 -7
  335. package/src/DialogButton.tsx +8 -11
  336. package/src/DnDList.tsx +9 -10
  337. package/src/DraggablePaperComponent.tsx +1 -1
  338. package/src/EmailInput.tsx +4 -8
  339. package/src/ErrorAlert.tsx +1 -1
  340. package/src/FabBox.tsx +3 -1
  341. package/src/FieldSetEx.tsx +3 -6
  342. package/src/FileUploadButton.tsx +1 -1
  343. package/src/FlexBox.tsx +1 -1
  344. package/src/HiSelector.tsx +13 -11
  345. package/src/HiSelectorTL.tsx +16 -17
  346. package/src/IconButtonLink.tsx +1 -2
  347. package/src/InputField.tsx +1 -1
  348. package/src/InputTipField.tsx +4 -1
  349. package/src/IntInputField.tsx +3 -1
  350. package/src/ItemList.tsx +7 -9
  351. package/src/LineChart.tsx +1 -1
  352. package/src/ListChooser.tsx +8 -10
  353. package/src/ListItemRightIcon.tsx +2 -1
  354. package/src/ListMoreDisplay.tsx +5 -8
  355. package/src/LoadingButton.tsx +3 -5
  356. package/src/MUGlobal.ts +2 -1
  357. package/src/MaskInput.tsx +1 -1
  358. package/src/MenuButton.tsx +3 -1
  359. package/src/MobileListItemRenderer.tsx +8 -3
  360. package/src/MoreFab.tsx +9 -11
  361. package/src/NotifierMU.tsx +34 -34
  362. package/src/NotifierPopupProps.ts +1 -1
  363. package/src/NumberInputField.tsx +21 -20
  364. package/src/OptionGroup.tsx +9 -12
  365. package/src/OptionGroupFlag.tsx +7 -10
  366. package/src/PercentCircularProgress.tsx +5 -8
  367. package/src/PercentLinearProgress.tsx +5 -8
  368. package/src/ProgressCount.tsx +4 -6
  369. package/src/QuickList.tsx +8 -10
  370. package/src/ResponsibleContainer.tsx +4 -1
  371. package/src/ResponsiveStyleValue.ts +1 -1
  372. package/src/ScrollTopFab.tsx +3 -1
  373. package/src/ScrollerListEx.tsx +1 -1
  374. package/src/SearchBar.tsx +5 -8
  375. package/src/SearchField.tsx +1 -1
  376. package/src/SearchOptionGroup.tsx +0 -1
  377. package/src/SelectEx.tsx +11 -15
  378. package/src/ShowDataComparison.tsx +5 -7
  379. package/src/Switch.tsx +3 -1
  380. package/src/SwitchAnt.tsx +3 -2
  381. package/src/SwitchField.tsx +4 -7
  382. package/src/TabBox.tsx +3 -1
  383. package/src/TableEx.tsx +11 -15
  384. package/src/TagList.tsx +3 -1
  385. package/src/TagListPro.tsx +3 -1
  386. package/src/TextFieldEx.tsx +7 -9
  387. package/src/Tiplist.tsx +3 -1
  388. package/src/TiplistPro.tsx +1 -1
  389. package/src/TooltipClick.tsx +2 -1
  390. package/src/TwoFieldInput.tsx +2 -1
  391. package/src/UserAvatar.tsx +1 -1
  392. package/src/UserAvatarEditor.tsx +6 -8
  393. package/src/ViewContainer.tsx +16 -14
  394. package/src/custom/CustomFieldUtils.tsx +6 -6
  395. package/src/custom/CustomFieldViewer.tsx +7 -6
  396. package/src/custom/CustomFieldWindow.tsx +5 -4
  397. package/src/custom/FieldAmountLabel.tsx +2 -1
  398. package/src/custom/FieldCheckbox.tsx +1 -1
  399. package/src/custom/FieldCombobox.tsx +1 -1
  400. package/src/custom/FieldDateInput.tsx +1 -1
  401. package/src/custom/FieldDivider.tsx +1 -1
  402. package/src/custom/FieldInput.tsx +1 -1
  403. package/src/custom/FieldJson.tsx +1 -1
  404. package/src/custom/FieldNumberInput.tsx +1 -1
  405. package/src/custom/FieldRadio.tsx +1 -1
  406. package/src/custom/FieldSelect.tsx +1 -1
  407. package/src/custom/FieldSwitch.tsx +1 -1
  408. package/src/custom/FieldTexarea.tsx +1 -1
  409. package/src/pages/CommonPage.tsx +3 -1
  410. package/src/pages/DataGridPage.tsx +2 -1
  411. package/src/pages/DrawerHeader.tsx +1 -1
  412. package/src/pages/EditPage.tsx +6 -10
  413. package/src/pages/FixedListPage.tsx +2 -1
  414. package/src/pages/LeftDrawer.tsx +6 -8
  415. package/src/pages/ListPage.tsx +2 -1
  416. package/src/pages/TablePage.tsx +2 -1
  417. package/src/pages/UserMenu.tsx +2 -1
  418. package/src/pages/ViewPage.tsx +2 -1
  419. package/src/texts/DateText.tsx +1 -2
  420. package/src/texts/MoneyText.tsx +1 -2
  421. package/src/texts/NumberText.tsx +1 -2
  422. package/src/useCurrentBreakpoint.ts +2 -1
@@ -5,10 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SwitchAnt = SwitchAnt;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
9
- const Switch_1 = __importDefault(require("@mui/material/Switch"));
10
8
  const react_1 = __importDefault(require("react"));
11
9
  const ReactApp_1 = require("./app/ReactApp");
10
+ const Switch_1 = __importDefault(require("@mui/material/Switch"));
11
+ const Stack_1 = __importDefault(require("@mui/material/Stack"));
12
+ const Typography_1 = __importDefault(require("@mui/material/Typography"));
12
13
  /**
13
14
  * Ant style switch
14
15
  * @param props Props
@@ -36,12 +37,12 @@ function SwitchAnt(props) {
36
37
  setControlChecked(checked);
37
38
  };
38
39
  // Layout
39
- return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", spacing: 1, alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { onClick: () => controlChecked && ref.current?.click(), sx: {
40
+ return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", spacing: 1, alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Typography_1.default, { onClick: () => controlChecked && ref.current?.click(), sx: {
40
41
  cursor: "pointer",
41
42
  color: controlChecked
42
43
  ? undefined
43
44
  : (theme) => activeColor ?? theme.palette.warning.main
44
- }, children: startLabel }), (0, jsx_runtime_1.jsx)(Switch_1.default, { checked: controlChecked, inputRef: ref, value: value, onChange: onChangeLocal, ...rest }), (0, jsx_runtime_1.jsx)(material_1.Typography, { onClick: () => !controlChecked && ref.current?.click(), sx: {
45
+ }, children: startLabel }), (0, jsx_runtime_1.jsx)(Switch_1.default, { checked: controlChecked, inputRef: ref, value: value, onChange: onChangeLocal, ...rest }), (0, jsx_runtime_1.jsx)(Typography_1.default, { onClick: () => !controlChecked && ref.current?.click(), sx: {
45
46
  cursor: "pointer",
46
47
  color: controlChecked
47
48
  ? (theme) => activeColor ?? theme.palette.warning.main
@@ -1,5 +1,5 @@
1
- import { FormControlProps } from "@mui/material";
2
1
  import React from "react";
2
+ import { FormControlProps } from "@mui/material/FormControl";
3
3
  /**
4
4
  * SwitchField props
5
5
  */
@@ -5,10 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SwitchField = SwitchField;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
9
8
  const OutlinedInput_1 = __importDefault(require("@mui/material/OutlinedInput"));
10
9
  const react_1 = __importDefault(require("react"));
11
10
  const SwitchAnt_1 = require("./SwitchAnt");
11
+ const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
12
+ const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
13
+ const Box_1 = __importDefault(require("@mui/material/Box"));
14
+ const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
12
15
  /**
13
16
  * SwitchField
14
17
  * @param props Props
@@ -22,7 +25,7 @@ function SwitchField(props) {
22
25
  // Group
23
26
  const group = ((0, jsx_runtime_1.jsx)(SwitchAnt_1.SwitchAnt, { activeColor: activeColor, name: name, startLabel: startLabel, endLabel: endLabel, value: value, checked: checked }));
24
27
  // Layout
25
- return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.FormControl, { fullWidth: fullWidth, ...rest, children: [label && ((0, jsx_runtime_1.jsx)(material_1.InputLabel, { required: required, variant: variant, shrink: true, children: label })), outlined ? ((0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
28
+ return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(FormControl_1.default, { fullWidth: fullWidth, ...rest, children: [label && ((0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, variant: variant, shrink: true, children: label })), outlined ? ((0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
26
29
  cursor: "default",
27
30
  display: "flex",
28
31
  gap: 1,
@@ -32,5 +35,5 @@ function SwitchField(props) {
32
35
  "& input": {
33
36
  display: "none"
34
37
  }
35
- } })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && (0, jsx_runtime_1.jsx)(material_1.FormHelperText, { children: helperText })] }));
38
+ } })) : ((0, jsx_runtime_1.jsx)(Box_1.default, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && (0, jsx_runtime_1.jsx)(FormHelperText_1.default, { children: helperText })] }));
36
39
  }
@@ -1,4 +1,6 @@
1
- import { BoxProps, TabProps, TabsProps } from "@mui/material";
1
+ import { BoxProps } from "@mui/material/Box";
2
+ import { TabProps } from "@mui/material/Tab";
3
+ import { TabsProps } from "@mui/material/Tabs";
2
4
  import React from "react";
3
5
  /**
4
6
  * Tab with box panel props
package/lib/cjs/TabBox.js CHANGED
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TabBox = TabBox;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const shared_1 = require("@etsoo/shared");
9
- const material_1 = require("@mui/material");
9
+ const Box_1 = __importDefault(require("@mui/material/Box"));
10
+ const Tab_1 = __importDefault(require("@mui/material/Tab"));
11
+ const Tabs_1 = __importDefault(require("@mui/material/Tabs"));
10
12
  const react_1 = __importDefault(require("react"));
11
13
  const react_router_1 = require("react-router");
12
14
  /**
@@ -26,9 +28,9 @@ function TabBox(props) {
26
28
  setValue(index);
27
29
  }, [index]);
28
30
  // Layout
29
- return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [inputName && (0, jsx_runtime_1.jsx)("input", { type: "hidden", name: inputName, value: value }), (0, jsx_runtime_1.jsx)(material_1.Box, { ...root, children: (0, jsx_runtime_1.jsx)(material_1.Tabs, { value: value, onChange: (event, newValue) => {
31
+ return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [inputName && (0, jsx_runtime_1.jsx)("input", { type: "hidden", name: inputName, value: value }), (0, jsx_runtime_1.jsx)(Box_1.default, { ...root, children: (0, jsx_runtime_1.jsx)(Tabs_1.default, { value: value, onChange: (event, newValue) => {
30
32
  setValue(newValue);
31
33
  if (onChange)
32
34
  onChange(event, newValue);
33
- }, ...rest, children: tabs.map(({ children, panelProps, ...tabRest }, index) => ((0, jsx_runtime_1.jsx)(material_1.Tab, { value: index, LinkComponent: tabRest.to ? react_router_1.Link : undefined, ...tabRest }, index))) }) }), tabs.map(({ children, panelProps }, index) => ((0, jsx_runtime_1.jsx)(material_1.Box, { hidden: value !== index, ...tabProps, ...panelProps, children: shared_1.Utils.getResult(children, value === index) }, index)))] }));
35
+ }, ...rest, children: tabs.map(({ children, panelProps, ...tabRest }, index) => ((0, jsx_runtime_1.jsx)(Tab_1.default, { value: index, LinkComponent: tabRest.to ? react_router_1.Link : undefined, ...tabRest }, index))) }) }), tabs.map(({ children, panelProps }, index) => ((0, jsx_runtime_1.jsx)(Box_1.default, { hidden: value !== index, ...tabProps, ...panelProps, children: shared_1.Utils.getResult(children, value === index) }, index)))] }));
34
36
  }
@@ -1,7 +1,7 @@
1
1
  import { GridColumn, GridLoader, GridMethodRef } from "@etsoo/react";
2
2
  import { DataTypes, IdDefaultType } from "@etsoo/shared";
3
- import { TableProps } from "@mui/material";
4
3
  import React from "react";
4
+ import { TableProps } from "@mui/material/Table";
5
5
  /**
6
6
  * Extended table min width for width-unset column
7
7
  */
@@ -8,9 +8,19 @@ exports.TableEx = TableEx;
8
8
  const jsx_runtime_1 = require("react/jsx-runtime");
9
9
  const react_1 = require("@etsoo/react");
10
10
  const shared_1 = require("@etsoo/shared");
11
- const material_1 = require("@mui/material");
12
11
  const react_2 = __importDefault(require("react"));
13
12
  const DataGridRenderers_1 = require("./DataGridRenderers");
13
+ const Table_1 = __importDefault(require("@mui/material/Table"));
14
+ const styles_1 = require("@mui/material/styles");
15
+ const Paper_1 = __importDefault(require("@mui/material/Paper"));
16
+ const TableContainer_1 = __importDefault(require("@mui/material/TableContainer"));
17
+ const TableHead_1 = __importDefault(require("@mui/material/TableHead"));
18
+ const TableRow_1 = __importDefault(require("@mui/material/TableRow"));
19
+ const TableCell_1 = __importDefault(require("@mui/material/TableCell"));
20
+ const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
21
+ const TableSortLabel_1 = __importDefault(require("@mui/material/TableSortLabel"));
22
+ const TableBody_1 = __importDefault(require("@mui/material/TableBody"));
23
+ const TablePagination_1 = __importDefault(require("@mui/material/TablePagination"));
14
24
  /**
15
25
  * Extended table min width for width-unset column
16
26
  */
@@ -22,7 +32,7 @@ exports.TableExMinWidth = 180;
22
32
  */
23
33
  function TableEx(props) {
24
34
  // Theme
25
- const theme = (0, material_1.useTheme)();
35
+ const theme = (0, styles_1.useTheme)();
26
36
  // Destruct
27
37
  const { alternatingColors = [theme.palette.action.hover, undefined], autoLoad = true, columns, defaultOrderBy, headerColors = [undefined, undefined], idField = "id", loadBatchSize, loadData, maxHeight, mRef, onSelectChange, rowHeight = 53, otherHeight = 110, threshold, ...rest } = props;
28
38
  const selectable = onSelectChange != null;
@@ -213,12 +223,12 @@ function TableEx(props) {
213
223
  };
214
224
  }, []);
215
225
  // Layout
216
- return ((0, jsx_runtime_1.jsxs)(material_1.Paper, { children: [(0, jsx_runtime_1.jsx)(material_1.TableContainer, { sx: { maxHeight }, children: (0, jsx_runtime_1.jsxs)(material_1.Table, { ...rest, children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsxs)(material_1.TableRow, { sx: {
226
+ return ((0, jsx_runtime_1.jsxs)(Paper_1.default, { children: [(0, jsx_runtime_1.jsx)(TableContainer_1.default, { sx: { maxHeight }, children: (0, jsx_runtime_1.jsxs)(Table_1.default, { ...rest, children: [(0, jsx_runtime_1.jsx)(TableHead_1.default, { children: (0, jsx_runtime_1.jsxs)(TableRow_1.default, { sx: {
217
227
  "& th": {
218
228
  backgroundColor: headerColors[0],
219
229
  color: headerColors[1]
220
230
  }
221
- }, children: [selectable && ((0, jsx_runtime_1.jsx)(material_1.TableCell, { padding: "checkbox", children: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { color: "primary", indeterminate: pageSelectedItems > 0 && pageSelectedItems < rows.length, checked: pageSelectedItems > 0, onChange: (_event, checked) => handleSelectAll(checked) }) })), columns.map((column, index) => {
231
+ }, children: [selectable && ((0, jsx_runtime_1.jsx)(TableCell_1.default, { padding: "checkbox", children: (0, jsx_runtime_1.jsx)(Checkbox_1.default, { color: "primary", indeterminate: pageSelectedItems > 0 && pageSelectedItems < rows.length, checked: pageSelectedItems > 0, onChange: (_event, checked) => handleSelectAll(checked) }) })), columns.map((column, index) => {
222
232
  // Destruct
223
233
  const { align, field, header, minWidth, sortable, sortAsc = true, type, width } = column;
224
234
  // Header text
@@ -227,7 +237,7 @@ function TableEx(props) {
227
237
  let sortLabel;
228
238
  if (sortable && field != null) {
229
239
  const active = queryPaging.orderBy?.some((o) => o.field.toLowerCase() === field.toLowerCase());
230
- sortLabel = ((0, jsx_runtime_1.jsx)(material_1.TableSortLabel, { active: active, direction: sortAsc ? "asc" : "desc", onClick: (_event) => {
240
+ sortLabel = ((0, jsx_runtime_1.jsx)(TableSortLabel_1.default, { active: active, direction: sortAsc ? "asc" : "desc", onClick: (_event) => {
231
241
  if (active)
232
242
  column.sortAsc = !sortAsc;
233
243
  handleSort(field, column.sortAsc);
@@ -236,14 +246,14 @@ function TableEx(props) {
236
246
  else {
237
247
  sortLabel = headerText;
238
248
  }
239
- return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: (0, react_1.GridAlignGet)(align, type), width: width, sx: {
249
+ return ((0, jsx_runtime_1.jsx)(TableCell_1.default, { align: (0, react_1.GridAlignGet)(align, type), width: width, sx: {
240
250
  minWidth: minWidth == null
241
251
  ? width == null
242
252
  ? exports.TableExMinWidth
243
253
  : undefined
244
254
  : minWidth
245
255
  }, children: sortLabel }, field ?? index.toString()));
246
- })] }) }), (0, jsx_runtime_1.jsx)(material_1.TableBody, { sx: {
256
+ })] }) }), (0, jsx_runtime_1.jsx)(TableBody_1.default, { sx: {
247
257
  "& tr:nth-of-type(odd):not(.Mui-selected)": {
248
258
  backgroundColor: alternatingColors[0]
249
259
  },
@@ -259,7 +269,7 @@ function TableEx(props) {
259
269
  const isItemSelected = selectable
260
270
  ? selectedItems.some((item) => item[idField] === rowId)
261
271
  : false;
262
- return ((0, jsx_runtime_1.jsxs)(material_1.TableRow, { selected: isItemSelected, children: [selectable && ((0, jsx_runtime_1.jsx)(material_1.TableCell, { padding: "checkbox", children: row && ((0, jsx_runtime_1.jsx)(material_1.Checkbox, { color: "primary", checked: isItemSelected, onChange: (_event, checked) => handleSelect(row, checked) })) })), columns.map(({ align, cellRenderer = DataGridRenderers_1.DataGridRenderers.defaultCellRenderer, field, type, valueFormatter }, columnIndex) => {
272
+ return ((0, jsx_runtime_1.jsxs)(TableRow_1.default, { selected: isItemSelected, children: [selectable && ((0, jsx_runtime_1.jsx)(TableCell_1.default, { padding: "checkbox", children: row && ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { color: "primary", checked: isItemSelected, onChange: (_event, checked) => handleSelect(row, checked) })) })), columns.map(({ align, cellRenderer = DataGridRenderers_1.DataGridRenderers.defaultCellRenderer, field, type, valueFormatter }, columnIndex) => {
263
273
  const formatProps = {
264
274
  data: row,
265
275
  field,
@@ -283,9 +293,9 @@ function TableEx(props) {
283
293
  cellProps,
284
294
  setItems
285
295
  })) : ((0, jsx_runtime_1.jsx)(react_2.default.Fragment, { children: "\u00A0" }));
286
- return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { ...cellProps, children: child }, `${rowId}${columnIndex}`));
296
+ return ((0, jsx_runtime_1.jsx)(TableCell_1.default, { ...cellProps, children: child }, `${rowId}${columnIndex}`));
287
297
  })] }, rowId));
288
- }) })] }) }), (0, jsx_runtime_1.jsx)(material_1.TablePagination, { component: "div", showFirstButton: true, count: totalRows, rowsPerPage: batchSize, page: currentPage, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage, rowsPerPageOptions: [
298
+ }) })] }) }), (0, jsx_runtime_1.jsx)(TablePagination_1.default, { component: "div", showFirstButton: true, count: totalRows, rowsPerPage: batchSize, page: currentPage, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage, rowsPerPageOptions: [
289
299
  batchSize,
290
300
  2 * batchSize,
291
301
  5 * batchSize,
@@ -1,5 +1,5 @@
1
- import { AutocompleteProps } from "@mui/material";
2
1
  import { InputFieldProps } from "./InputField";
2
+ import { AutocompleteProps } from "@mui/material/Autocomplete";
3
3
  export type TagListProps = Omit<AutocompleteProps<string, true, false, true>, "open" | "multiple" | "freeSolo" | "options" | "renderInput"> & {
4
4
  /**
5
5
  * Label
@@ -5,12 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TagList = TagList;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
9
8
  const CheckBoxOutlineBlank_1 = __importDefault(require("@mui/icons-material/CheckBoxOutlineBlank"));
10
9
  const CheckBox_1 = __importDefault(require("@mui/icons-material/CheckBox"));
11
10
  const react_1 = __importDefault(require("react"));
12
11
  const InputField_1 = require("./InputField");
13
12
  const ReactApp_1 = require("./app/ReactApp");
13
+ const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
14
+ const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
15
+ const Chip_1 = __importDefault(require("@mui/material/Chip"));
14
16
  function TagList(props) {
15
17
  // Global app
16
18
  const app = (0, ReactApp_1.useAppContext)();
@@ -18,7 +20,7 @@ function TagList(props) {
18
20
  const { noOptions, loading: loadingLabel, more = "More", open: openDefault } = app?.getLabels("noOptions", "loading", "more", "open") ?? {};
19
21
  const moreLabel = more + "...";
20
22
  // Destruct
21
- const { renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsxs)("li", { ...props, children: [(0, jsx_runtime_1.jsx)(material_1.Checkbox, { icon: (0, jsx_runtime_1.jsx)(CheckBoxOutlineBlank_1.default, { fontSize: "small" }), checkedIcon: (0, jsx_runtime_1.jsx)(CheckBox_1.default, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }), option] })), renderTags = (value, getTagProps) => value.map((option, index) => ((0, jsx_runtime_1.jsx)(material_1.Chip, { variant: "outlined", label: option, ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
23
+ const { renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsxs)("li", { ...props, children: [(0, jsx_runtime_1.jsx)(Checkbox_1.default, { icon: (0, jsx_runtime_1.jsx)(CheckBoxOutlineBlank_1.default, { fontSize: "small" }), checkedIcon: (0, jsx_runtime_1.jsx)(CheckBox_1.default, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }), option] })), renderTags = (value, getTagProps) => value.map((option, index) => ((0, jsx_runtime_1.jsx)(Chip_1.default, { variant: "outlined", label: option, ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
22
24
  const [open, setOpen] = react_1.default.useState(false);
23
25
  const [options, setOptions] = react_1.default.useState([]);
24
26
  const [loading, setLoading] = react_1.default.useState(false);
@@ -42,7 +44,7 @@ function TagList(props) {
42
44
  setOptions(result);
43
45
  setLoading(false);
44
46
  };
45
- return ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { multiple: true, freeSolo: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
47
+ return ((0, jsx_runtime_1.jsx)(Autocomplete_1.default, { multiple: true, freeSolo: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
46
48
  setOpen(true);
47
49
  if (options.length === 0) {
48
50
  loadDataLocal();
@@ -1,6 +1,6 @@
1
- import { AutocompleteProps } from "@mui/material";
2
1
  import { InputFieldProps } from "./InputField";
3
2
  import { ListType2 } from "@etsoo/shared";
3
+ import { AutocompleteProps } from "@mui/material/Autocomplete";
4
4
  export type TagListProProps<D extends ListType2 = ListType2> = Omit<AutocompleteProps<D, true, false, false>, "open" | "multiple" | "options" | "renderInput"> & {
5
5
  /**
6
6
  * Label
@@ -5,13 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TagListPro = TagListPro;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
9
8
  const CheckBoxOutlineBlank_1 = __importDefault(require("@mui/icons-material/CheckBoxOutlineBlank"));
10
9
  const CheckBox_1 = __importDefault(require("@mui/icons-material/CheckBox"));
11
10
  const react_1 = __importDefault(require("react"));
12
11
  const InputField_1 = require("./InputField");
13
12
  const shared_1 = require("@etsoo/shared");
14
13
  const ReactApp_1 = require("./app/ReactApp");
14
+ const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
15
+ const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
16
+ const Chip_1 = __importDefault(require("@mui/material/Chip"));
15
17
  function TagListPro(props) {
16
18
  // Global app
17
19
  const app = (0, ReactApp_1.useAppContext)();
@@ -20,7 +22,7 @@ function TagListPro(props) {
20
22
  const moreLabel = more + "...";
21
23
  const getLabel = (item) => shared_1.DataTypes.getListItemLabel(item);
22
24
  // Destruct
23
- const { renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsx)("li", { ...props, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Checkbox, { icon: (0, jsx_runtime_1.jsx)(CheckBoxOutlineBlank_1.default, { fontSize: "small" }), checkedIcon: (0, jsx_runtime_1.jsx)(CheckBox_1.default, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }), getLabel(option)] }) })), renderTags = (value, getTagProps) => value.map((option, index) => ((0, jsx_runtime_1.jsx)(material_1.Chip, { variant: "outlined", label: getLabel(option), ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
25
+ const { renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsx)("li", { ...props, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Checkbox_1.default, { icon: (0, jsx_runtime_1.jsx)(CheckBoxOutlineBlank_1.default, { fontSize: "small" }), checkedIcon: (0, jsx_runtime_1.jsx)(CheckBox_1.default, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }), getLabel(option)] }) })), renderTags = (value, getTagProps) => value.map((option, index) => ((0, jsx_runtime_1.jsx)(Chip_1.default, { variant: "outlined", label: getLabel(option), ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
24
26
  const [open, setOpen] = react_1.default.useState(false);
25
27
  const [options, setOptions] = react_1.default.useState([]);
26
28
  const [loading, setLoading] = react_1.default.useState(false);
@@ -44,7 +46,7 @@ function TagListPro(props) {
44
46
  setOptions(result);
45
47
  setLoading(false);
46
48
  };
47
- return ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { multiple: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
49
+ return ((0, jsx_runtime_1.jsx)(Autocomplete_1.default, { multiple: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
48
50
  setOpen(true);
49
51
  if (options.length === 0) {
50
52
  loadDataLocal();
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TextFieldProps } from "@mui/material";
2
+ import { TextFieldProps } from "@mui/material/TextField";
3
3
  /**
4
4
  * Extended text field props
5
5
  */
@@ -49,7 +49,7 @@ export interface TextFieldExMethods {
49
49
  */
50
50
  setError(error: React.ReactNode): void;
51
51
  }
52
- export declare const TextFieldEx: React.ForwardRefExoticComponent<(Omit<import("@mui/material").StandardTextFieldProps & {
52
+ export declare const TextFieldEx: React.ForwardRefExoticComponent<(Omit<import("@mui/material/TextField").StandardTextFieldProps & {
53
53
  /**
54
54
  * Change delay (ms) to avoid repeatly dispatch onChange
55
55
  */
@@ -84,7 +84,7 @@ export declare const TextFieldEx: React.ForwardRefExoticComponent<(Omit<import("
84
84
  * Show password button
85
85
  */
86
86
  showPassword?: boolean;
87
- }, "ref"> | Omit<import("@mui/material").OutlinedTextFieldProps & {
87
+ }, "ref"> | Omit<import("@mui/material/TextField").OutlinedTextFieldProps & {
88
88
  /**
89
89
  * Change delay (ms) to avoid repeatly dispatch onChange
90
90
  */
@@ -119,7 +119,7 @@ export declare const TextFieldEx: React.ForwardRefExoticComponent<(Omit<import("
119
119
  * Show password button
120
120
  */
121
121
  showPassword?: boolean;
122
- }, "ref"> | Omit<import("@mui/material").FilledTextFieldProps & {
122
+ }, "ref"> | Omit<import("@mui/material/TextField").FilledTextFieldProps & {
123
123
  /**
124
124
  * Change delay (ms) to avoid repeatly dispatch onChange
125
125
  */
@@ -6,12 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TextFieldEx = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = __importDefault(require("react"));
9
- const material_1 = require("@mui/material");
10
9
  const MUGlobal_1 = require("./MUGlobal");
11
- const icons_material_1 = require("@mui/icons-material");
10
+ const Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
11
+ const Clear_1 = __importDefault(require("@mui/icons-material/Clear"));
12
12
  const shared_1 = require("@etsoo/shared");
13
13
  const react_2 = require("@etsoo/react");
14
14
  const ReactApp_1 = require("./app/ReactApp");
15
+ const TextField_1 = __importDefault(require("@mui/material/TextField"));
16
+ const InputAdornment_1 = __importDefault(require("@mui/material/InputAdornment"));
17
+ const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
15
18
  exports.TextFieldEx = react_1.default.forwardRef((props, ref) => {
16
19
  // Global app
17
20
  const app = (0, ReactApp_1.useAppContext)();
@@ -87,7 +90,7 @@ exports.TextFieldEx = react_1.default.forwardRef((props, ref) => {
87
90
  };
88
91
  // Show password and/or clear button
89
92
  if (!empty && (showPassword || showClear)) {
90
- InputProps.endAdornment = ((0, jsx_runtime_1.jsxs)(material_1.InputAdornment, { position: "end", children: [showPassword && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { tabIndex: -1, onContextMenu: (event) => event.preventDefault(), onMouseDown: touchStart, onMouseUp: touchEnd, onTouchStart: touchStart, onTouchCancel: touchEnd, onTouchEnd: touchEnd, title: showIt, children: (0, jsx_runtime_1.jsx)(icons_material_1.Visibility, {}) })), showClear && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: clearClick, tabIndex: -1, title: clearLabel, children: (0, jsx_runtime_1.jsx)(icons_material_1.Clear, {}) }))] }));
93
+ InputProps.endAdornment = ((0, jsx_runtime_1.jsxs)(InputAdornment_1.default, { position: "end", children: [showPassword && ((0, jsx_runtime_1.jsx)(IconButton_1.default, { tabIndex: -1, onContextMenu: (event) => event.preventDefault(), onMouseDown: touchStart, onMouseUp: touchEnd, onTouchStart: touchStart, onTouchCancel: touchEnd, onTouchEnd: touchEnd, title: showIt, children: (0, jsx_runtime_1.jsx)(Visibility_1.default, {}) })), showClear && ((0, jsx_runtime_1.jsx)(IconButton_1.default, { onClick: clearClick, tabIndex: -1, title: clearLabel, children: (0, jsx_runtime_1.jsx)(Clear_1.default, {}) }))] }));
91
94
  }
92
95
  // Extend key precess
93
96
  const onKeyPressEx = onEnter == null
@@ -143,5 +146,5 @@ exports.TextFieldEx = react_1.default.forwardRef((props, ref) => {
143
146
  };
144
147
  }, []);
145
148
  // Textfield
146
- return ((0, jsx_runtime_1.jsx)(material_1.TextField, { error: errorEx, fullWidth: fullWidth, helperText: helperTextEx, inputRef: (0, react_2.useCombinedRefs)(inputRef, localRef), InputProps: InputProps, InputLabelProps: InputLabelProps, onChange: onChangeEx, onKeyDown: onKeyPressEx, type: typeEx, variant: variant, ...rest }));
149
+ return ((0, jsx_runtime_1.jsx)(TextField_1.default, { error: errorEx, fullWidth: fullWidth, helperText: helperTextEx, inputRef: (0, react_2.useCombinedRefs)(inputRef, localRef), InputProps: InputProps, InputLabelProps: InputLabelProps, onChange: onChangeEx, onKeyDown: onKeyPressEx, type: typeEx, variant: variant, ...rest }));
147
150
  });
@@ -7,11 +7,11 @@ exports.Tiplist = Tiplist;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = require("@etsoo/react");
9
9
  const shared_1 = require("@etsoo/shared");
10
- const material_1 = require("@mui/material");
11
10
  const react_2 = __importDefault(require("react"));
12
11
  const SearchField_1 = require("./SearchField");
13
12
  const InputField_1 = require("./InputField");
14
13
  const ReactApp_1 = require("./app/ReactApp");
14
+ const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
15
15
  /**
16
16
  * Tiplist
17
17
  * @param props Props
@@ -172,7 +172,7 @@ function Tiplist(props) {
172
172
  };
173
173
  }, []);
174
174
  // Layout
175
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: `${inputValue ?? (state.current.idSet ? "" : localIdValue ?? "")}`, readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(material_1.Autocomplete, { filterOptions: (options, _state) => options, value: states.value, options: states.options, onChange: (event, value, reason, details) => {
175
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: `${inputValue ?? (state.current.idSet ? "" : localIdValue ?? "")}`, readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(Autocomplete_1.default, { filterOptions: (options, _state) => options, value: states.value, options: states.options, onChange: (event, value, reason, details) => {
176
176
  // Set value
177
177
  setInputValue(value);
178
178
  // Custom
@@ -1,7 +1,7 @@
1
1
  import { ListType2 } from "@etsoo/shared";
2
- import { AutocompleteProps } from "@mui/material";
3
2
  import { ChangeEventHandler } from "react";
4
3
  import { InputFieldProps } from "./InputField";
4
+ import { AutocompleteProps } from "@mui/material/Autocomplete";
5
5
  /**
6
6
  * TiplistPro props
7
7
  */
@@ -7,10 +7,10 @@ exports.TiplistPro = TiplistPro;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = require("@etsoo/react");
9
9
  const shared_1 = require("@etsoo/shared");
10
- const material_1 = require("@mui/material");
11
10
  const react_2 = __importDefault(require("react"));
12
11
  const InputField_1 = require("./InputField");
13
12
  const ReactApp_1 = require("./app/ReactApp");
13
+ const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
14
14
  /**
15
15
  * TiplistPro
16
16
  * @param props Props
@@ -158,7 +158,7 @@ function TiplistPro(props) {
158
158
  };
159
159
  }, []);
160
160
  // Layout
161
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: inputValue ?? (state.current.idSet ? "" : localIdValue ?? ""), readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(material_1.Autocomplete, { filterOptions: (options, _state) => options, value: states.value, options: states.options, freeSolo: true, clearOnBlur: false, onChange: (event, value, reason, details) => {
161
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: inputValue ?? (state.current.idSet ? "" : localIdValue ?? ""), readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(Autocomplete_1.default, { filterOptions: (options, _state) => options, value: states.value, options: states.options, freeSolo: true, clearOnBlur: false, onChange: (event, value, reason, details) => {
162
162
  if (typeof value === "object") {
163
163
  // Set value
164
164
  setInputValue(value);
@@ -1,4 +1,4 @@
1
- import { TooltipProps } from "@mui/material";
1
+ import { TooltipProps } from "@mui/material/Tooltip";
2
2
  import React from "react";
3
3
  /**
4
4
  * Tooltip with click visibility props
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TooltipClick = TooltipClick;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = require("@etsoo/react");
9
- const material_1 = require("@mui/material");
9
+ const ClickAwayListener_1 = __importDefault(require("@mui/material/ClickAwayListener"));
10
+ const Tooltip_1 = __importDefault(require("@mui/material/Tooltip"));
10
11
  const react_2 = __importDefault(require("react"));
11
12
  /**
12
13
  * Tooltip with click visibility
@@ -36,7 +37,7 @@ function TooltipClick(props) {
36
37
  };
37
38
  }, []);
38
39
  // Layout
39
- return ((0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, { onClickAway: () => setOpen(false), children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, { slotProps: {
40
+ return ((0, jsx_runtime_1.jsx)(ClickAwayListener_1.default, { onClickAway: () => setOpen(false), children: (0, jsx_runtime_1.jsx)(Tooltip_1.default, { slotProps: {
40
41
  popper: {
41
42
  disablePortal: true
42
43
  }
@@ -5,12 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TwoFieldInput = TwoFieldInput;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
9
8
  const ArrowRightAlt_1 = __importDefault(require("@mui/icons-material/ArrowRightAlt"));
10
9
  const react_1 = require("@etsoo/react");
11
10
  const react_2 = __importDefault(require("react"));
12
11
  const shared_1 = require("@etsoo/shared");
13
12
  const InputField_1 = require("./InputField");
13
+ const InputAdornment_1 = __importDefault(require("@mui/material/InputAdornment"));
14
+ const Input_1 = __importDefault(require("@mui/material/Input"));
14
15
  /**
15
16
  * TwoField Input
16
17
  * @param props Props
@@ -60,10 +61,10 @@ function TwoFieldInput(props) {
60
61
  }, [localValues]);
61
62
  // Layout
62
63
  return ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { name: `${name}-start`, type: type, value: formatValue(localValues[0], type), ref: dimensions[0][0], inputProps: inputProps, InputProps: {
63
- endAdornment: ((0, jsx_runtime_1.jsxs)(material_1.InputAdornment, { position: "end", sx: {
64
+ endAdornment: ((0, jsx_runtime_1.jsxs)(InputAdornment_1.default, { position: "end", sx: {
64
65
  display: "flex",
65
66
  alignItems: "center",
66
67
  gap: 1
67
- }, children: [(0, jsx_runtime_1.jsx)(ArrowRightAlt_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Input, { type: type, name: `${name}-end`, value: formatValue(localValues[1], type), disableUnderline: true, onInput: onInput, onChange: handleChange, inputProps: inputProps })] }))
68
+ }, children: [(0, jsx_runtime_1.jsx)(ArrowRightAlt_1.default, {}), (0, jsx_runtime_1.jsx)(Input_1.default, { type: type, name: `${name}-end`, value: formatValue(localValues[1], type), disableUnderline: true, onInput: onInput, onChange: handleChange, inputProps: inputProps })] }))
68
69
  }, onInput: onInput, onChange: handleChange, ...rest }));
69
70
  }
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.UserAvatar = UserAvatar;
4
7
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const material_1 = require("@mui/material");
6
8
  const appscript_1 = require("@etsoo/appscript");
7
9
  const ReactApp_1 = require("./app/ReactApp");
10
+ const Avatar_1 = __importDefault(require("@mui/material/Avatar"));
8
11
  /**
9
12
  * User avatar
10
13
  * @param props Props
@@ -20,7 +23,7 @@ function UserAvatar(props) {
20
23
  // Format
21
24
  const fTitle = formatTitle(title);
22
25
  const count = fTitle.length;
23
- return ((0, jsx_runtime_1.jsx)(material_1.Avatar, { title: title, src: src, sx: {
26
+ return ((0, jsx_runtime_1.jsx)(Avatar_1.default, { title: title, src: src, sx: {
24
27
  width: 48,
25
28
  height: 32,
26
29
  fontSize: count <= 2 ? "15px" : "12px"
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UserAvatarEditor = UserAvatarEditor;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
9
8
  const react_1 = __importDefault(require("react"));
10
9
  const RotateLeft_1 = __importDefault(require("@mui/icons-material/RotateLeft"));
11
10
  const RotateRight_1 = __importDefault(require("@mui/icons-material/RotateRight"));
@@ -16,6 +15,12 @@ const Remove_1 = __importDefault(require("@mui/icons-material/Remove"));
16
15
  const Add_1 = __importDefault(require("@mui/icons-material/Add"));
17
16
  const Labels_1 = require("./app/Labels");
18
17
  const FileUploadButton_1 = require("./FileUploadButton");
18
+ const Stack_1 = __importDefault(require("@mui/material/Stack"));
19
+ const Skeleton_1 = __importDefault(require("@mui/material/Skeleton"));
20
+ const ButtonGroup_1 = __importDefault(require("@mui/material/ButtonGroup"));
21
+ const Button_1 = __importDefault(require("@mui/material/Button"));
22
+ const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
23
+ const Slider_1 = __importDefault(require("@mui/material/Slider"));
19
24
  const defaultSize = 300;
20
25
  const defaultState = {
21
26
  scale: 1,
@@ -164,6 +169,6 @@ function UserAvatarEditor(props) {
164
169
  };
165
170
  // Load the component
166
171
  const AE = react_1.default.lazy(() => import("react-avatar-editor"));
167
- return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "column", spacing: 0.5, width: containerWidth, children: [(0, jsx_runtime_1.jsx)(FileUploadButton_1.FileUploadButton, { variant: "outlined", size: "medium", startIcon: (0, jsx_runtime_1.jsx)(Image_1.default, {}), fullWidth: true, onUploadFiles: handleFileUpload, inputProps: { multiple: false, accept: "image/png, image/jpeg" }, children: selectFileLabel }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", spacing: 0.5, children: [(0, jsx_runtime_1.jsx)(react_1.default.Suspense, { fallback: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", width: width, height: localHeight }), children: (0, jsx_runtime_1.jsx)(AE, { ref: ref, border: border, width: width, height: localHeight, onLoadSuccess: handleLoad, image: previewImage ??
168
- "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=", scale: editorState.scale, rotate: editorState.rotate }) }), (0, jsx_runtime_1.jsxs)(material_1.ButtonGroup, { size: "small", orientation: "vertical", disabled: !ready, children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => handleRotate(90), title: labels.rotateRight, children: (0, jsx_runtime_1.jsx)(RotateRight_1.default, {}) }), (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => handleRotate(-90), title: labels.rotateLeft, children: (0, jsx_runtime_1.jsx)(RotateLeft_1.default, {}) }), (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleReset, title: labels.reset, children: (0, jsx_runtime_1.jsx)(ClearAll_1.default, {}) })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { spacing: 0.5, direction: "row", sx: { paddingBottom: 2 }, alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "small", disabled: !ready || editorState.scale <= min, onClick: () => adjustScale(false), children: (0, jsx_runtime_1.jsx)(Remove_1.default, {}) }), (0, jsx_runtime_1.jsx)(material_1.Slider, { title: labels.zoom, disabled: !ready, min: min, max: max, step: step, value: editorState.scale, valueLabelDisplay: "auto", valueLabelFormat: (value) => `${Math.round(100 * value) / 100}`, marks: marks, onChange: handleZoom }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "small", disabled: !ready || editorState.scale >= max, onClick: () => adjustScale(true), children: (0, jsx_runtime_1.jsx)(Add_1.default, {}) })] }), (0, jsx_runtime_1.jsx)(material_1.Button, { ref: buttonRef, variant: "contained", startIcon: (0, jsx_runtime_1.jsx)(Done_1.default, {}), disabled: !ready, onClick: handleDone, children: labels.done })] }));
172
+ return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "column", spacing: 0.5, width: containerWidth, children: [(0, jsx_runtime_1.jsx)(FileUploadButton_1.FileUploadButton, { variant: "outlined", size: "medium", startIcon: (0, jsx_runtime_1.jsx)(Image_1.default, {}), fullWidth: true, onUploadFiles: handleFileUpload, inputProps: { multiple: false, accept: "image/png, image/jpeg" }, children: selectFileLabel }), (0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", spacing: 0.5, children: [(0, jsx_runtime_1.jsx)(react_1.default.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rounded", width: width, height: localHeight }), children: (0, jsx_runtime_1.jsx)(AE, { ref: ref, border: border, width: width, height: localHeight, onLoadSuccess: handleLoad, image: previewImage ??
173
+ "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=", scale: editorState.scale, rotate: editorState.rotate }) }), (0, jsx_runtime_1.jsxs)(ButtonGroup_1.default, { size: "small", orientation: "vertical", disabled: !ready, children: [(0, jsx_runtime_1.jsx)(Button_1.default, { onClick: () => handleRotate(90), title: labels.rotateRight, children: (0, jsx_runtime_1.jsx)(RotateRight_1.default, {}) }), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: () => handleRotate(-90), title: labels.rotateLeft, children: (0, jsx_runtime_1.jsx)(RotateLeft_1.default, {}) }), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: handleReset, title: labels.reset, children: (0, jsx_runtime_1.jsx)(ClearAll_1.default, {}) })] })] }), (0, jsx_runtime_1.jsxs)(Stack_1.default, { spacing: 0.5, direction: "row", sx: { paddingBottom: 2 }, alignItems: "center", children: [(0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", disabled: !ready || editorState.scale <= min, onClick: () => adjustScale(false), children: (0, jsx_runtime_1.jsx)(Remove_1.default, {}) }), (0, jsx_runtime_1.jsx)(Slider_1.default, { title: labels.zoom, disabled: !ready, min: min, max: max, step: step, value: editorState.scale, valueLabelDisplay: "auto", valueLabelFormat: (value) => `${Math.round(100 * value) / 100}`, marks: marks, onChange: handleZoom }), (0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", disabled: !ready || editorState.scale >= max, onClick: () => adjustScale(true), children: (0, jsx_runtime_1.jsx)(Add_1.default, {}) })] }), (0, jsx_runtime_1.jsx)(Button_1.default, { ref: buttonRef, variant: "contained", startIcon: (0, jsx_runtime_1.jsx)(Done_1.default, {}), disabled: !ready, onClick: handleDone, children: labels.done })] }));
169
174
  }
@@ -1,7 +1,8 @@
1
- import { Breakpoint, Grid2Props } from "@mui/material";
2
1
  import React from "react";
3
2
  import { DataTypes } from "@etsoo/shared";
4
3
  import { GridColumnRenderProps, GridDataType } from "@etsoo/react";
4
+ import { GridProps } from "@mui/material/Grid";
5
+ import { Breakpoint } from "@mui/material/styles";
5
6
  /**
6
7
  * View page item size
7
8
  */
@@ -26,7 +27,7 @@ export type ViewPageRowType = boolean | "default" | "small" | "medium" | "large"
26
27
  /**
27
28
  * View page grid item properties
28
29
  */
29
- export type ViewPageGridItemProps = Grid2Props & {
30
+ export type ViewPageGridItemProps = GridProps & {
30
31
  data: React.ReactNode;
31
32
  label?: React.ReactNode;
32
33
  singleRow?: ViewPageRowType;
@@ -40,7 +41,7 @@ export declare function ViewPageGridItem(props: ViewPageGridItemProps): import("
40
41
  /**
41
42
  * View page display field
42
43
  */
43
- export interface ViewPageField<T extends object> extends Grid2Props {
44
+ export interface ViewPageField<T extends object> extends GridProps {
44
45
  /**
45
46
  * Data field
46
47
  */
@@ -91,7 +92,7 @@ export type ViewContainerProps<T extends DataTypes.StringRecord> = {
91
92
  /**
92
93
  * Left container properties
93
94
  */
94
- leftContainerProps?: Omit<Grid2Props, "size"> & {
95
+ leftContainerProps?: Omit<GridProps, "size"> & {
95
96
  size?: ViewPageItemSize;
96
97
  };
97
98
  /**