@veritone-ce/design-system 2.0.8 → 2.1.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 (397) hide show
  1. package/dist/cjs/Alert/index.js +80 -0
  2. package/dist/cjs/Alert/styles.module.scss.js +7 -0
  3. package/dist/cjs/Box/index.js +16 -0
  4. package/dist/cjs/Button/index.js +56 -0
  5. package/dist/cjs/Button/styles.module.scss.js +7 -0
  6. package/dist/cjs/Checkbox/index.js +116 -0
  7. package/dist/cjs/Checkbox/styles.module.scss.js +7 -0
  8. package/dist/cjs/CircularProgress/index.js +59 -0
  9. package/dist/cjs/CircularProgress/styles.module.scss.js +7 -0
  10. package/dist/cjs/Dialog/components.js +219 -0
  11. package/dist/cjs/Dialog/factory.js +16 -0
  12. package/dist/cjs/Dialog/state.js +63 -0
  13. package/dist/cjs/Dialog/styles.module.scss.js +7 -0
  14. package/dist/cjs/Drawer/components.js +219 -0
  15. package/dist/cjs/Drawer/factory.js +16 -0
  16. package/dist/cjs/Drawer/state.js +63 -0
  17. package/dist/cjs/Drawer/styles.module.scss.js +7 -0
  18. package/dist/cjs/GlobalStyles/index.js +23 -0
  19. package/dist/cjs/Icon/factory.js +24 -0
  20. package/dist/cjs/Icon/internal.js +59 -0
  21. package/dist/cjs/Icon/styles.module.scss.js +7 -0
  22. package/dist/cjs/Icon/wrappers.js +50 -0
  23. package/dist/cjs/IconButton/index.js +41 -0
  24. package/dist/cjs/IconButton/styles.module.scss.js +7 -0
  25. package/dist/cjs/Input/index.js +72 -0
  26. package/dist/cjs/Input/styles.module.scss.js +7 -0
  27. package/dist/cjs/Menu/controlled.js +149 -0
  28. package/dist/cjs/Menu/factory.js +13 -0
  29. package/dist/cjs/Menu/styles.module.scss.js +7 -0
  30. package/dist/cjs/Pagination/index.js +54 -0
  31. package/dist/cjs/Pagination/styles.module.scss.js +7 -0
  32. package/dist/cjs/RadioButton/index.js +75 -0
  33. package/dist/cjs/RadioButton/styles.module.scss.js +7 -0
  34. package/dist/cjs/Select/controlled.js +144 -0
  35. package/dist/cjs/Select/factory.js +23 -0
  36. package/dist/cjs/Select/styles.module.scss.js +7 -0
  37. package/dist/cjs/Select/uncontrolled.js +59 -0
  38. package/dist/cjs/TablePagination/index.js +75 -0
  39. package/dist/cjs/TablePagination/styles.module.scss.js +7 -0
  40. package/dist/cjs/Textarea/index.js +69 -0
  41. package/dist/cjs/Textarea/styles.module.scss.js +7 -0
  42. package/dist/cjs/Toast/content.js +18 -0
  43. package/dist/cjs/Toast/hook.js +63 -0
  44. package/dist/cjs/Toast/index.js +15 -0
  45. package/dist/cjs/Tooltip/index.js +94 -0
  46. package/dist/cjs/Tooltip/styles.module.scss.js +7 -0
  47. package/dist/cjs/Typography/index.js +42 -0
  48. package/dist/cjs/Typography/variants.module.scss.js +7 -0
  49. package/dist/cjs/index.js +114 -282
  50. package/dist/cjs/popover/utils.js +8 -0
  51. package/dist/cjs/styles/createTheme.js +17 -0
  52. package/dist/cjs/styles/css-vars.js +78 -0
  53. package/dist/cjs/styles/cx.js +8 -0
  54. package/dist/cjs/styles/defaultTheme.js +50 -0
  55. package/dist/cjs/styles/identifier.js +8 -0
  56. package/dist/cjs/styles/palette.js +204 -0
  57. package/dist/cjs/styles/provider.client.js +25 -0
  58. package/dist/cjs/styles/provider.css-vars.js +27 -0
  59. package/dist/cjs/styles/styled.js +19 -0
  60. package/dist/cjs/styles/typography.js +117 -0
  61. package/dist/cjs/styles/useTheme.js +39 -0
  62. package/dist/cjs/styles.css +18 -0
  63. package/dist/cjs/utils/capitalize.js +13 -0
  64. package/dist/{esm-next → esm}/Alert/index.js +4 -2
  65. package/dist/esm/Alert/styles.module.scss.js +3 -0
  66. package/dist/{esm-next → esm}/Button/index.js +2 -0
  67. package/dist/esm/Button/styles.module.scss.js +3 -0
  68. package/dist/{esm-next → esm}/Checkbox/index.js +2 -0
  69. package/dist/esm/Checkbox/styles.module.scss.js +3 -0
  70. package/dist/{esm-next → esm}/CircularProgress/index.js +5 -2
  71. package/dist/esm/CircularProgress/styles.module.scss.js +3 -0
  72. package/dist/{esm-next → esm}/Dialog/components.js +2 -0
  73. package/dist/esm/Dialog/styles.module.scss.js +3 -0
  74. package/dist/{esm-next → esm}/Drawer/components.js +2 -0
  75. package/dist/esm/Drawer/styles.module.scss.js +3 -0
  76. package/dist/{esm-next → esm}/Icon/wrappers.js +2 -0
  77. package/dist/{esm-next → esm}/IconButton/index.js +2 -0
  78. package/dist/esm/IconButton/styles.module.scss.js +3 -0
  79. package/dist/{esm-next → esm}/Input/index.js +2 -0
  80. package/dist/esm/Input/styles.module.scss.js +3 -0
  81. package/dist/{esm-next → esm}/Menu/controlled.js +2 -0
  82. package/dist/esm/Menu/styles.module.scss.js +3 -0
  83. package/dist/{esm-next → esm}/RadioButton/index.js +2 -0
  84. package/dist/esm/RadioButton/styles.module.scss.js +3 -0
  85. package/dist/{esm-next → esm}/Select/controlled.js +2 -0
  86. package/dist/esm/Select/styles.module.scss.js +3 -0
  87. package/dist/esm/TablePagination/styles.module.scss.js +3 -0
  88. package/dist/{esm-next → esm}/Textarea/index.js +2 -0
  89. package/dist/esm/Textarea/styles.module.scss.js +3 -0
  90. package/dist/{esm-next → esm}/Tooltip/index.js +4 -2
  91. package/dist/{esm-next → esm}/Tooltip/styles.module.scss.js +1 -1
  92. package/dist/{esm-next → esm}/Typography/index.js +2 -0
  93. package/dist/esm/Typography/variants.module.scss.js +3 -0
  94. package/dist/esm/index.js +40 -30
  95. package/dist/esm/styles/css-vars.js +71 -0
  96. package/dist/esm/styles/defaultTheme.js +44 -0
  97. package/dist/esm/styles/palette.js +202 -0
  98. package/dist/esm/styles/scss/theme.generated.scss +412 -0
  99. package/dist/esm/styles.css +18 -0
  100. package/dist/types/{src-next/styles → styles}/css-vars.d.ts +2 -1
  101. package/dist/types/{src-next/styles → styles}/defaultTheme.d.ts +1 -0
  102. package/dist/types/{src-next/styles → styles}/index.d.ts +1 -1
  103. package/dist/types/styles/palette.d.ts +97 -0
  104. package/package.json +31 -51
  105. package/dist/cjs/assets/theme.js +0 -369
  106. package/dist/cjs/components/AudioSlider/index.js +0 -71
  107. package/dist/cjs/components/Breadcrumbs/breadcrumbs.theme.js +0 -21
  108. package/dist/cjs/components/Breadcrumbs/index.js +0 -72
  109. package/dist/cjs/components/Drawer/index.js +0 -24
  110. package/dist/cjs/components/ErrorMessage/index.js +0 -48
  111. package/dist/cjs/components/FileUploader/index.js +0 -349
  112. package/dist/cjs/components/FormControlLabel/index.js +0 -23
  113. package/dist/cjs/components/LinearProgress/index.js +0 -55
  114. package/dist/cjs/components/LinearProgress/linearProgress.theme.js +0 -24
  115. package/dist/cjs/components/Link/index.js +0 -31
  116. package/dist/cjs/components/List/index.js +0 -22
  117. package/dist/cjs/components/ListItem/index.js +0 -22
  118. package/dist/cjs/components/ListItemButton/index.js +0 -24
  119. package/dist/cjs/components/ListItemText/index.js +0 -22
  120. package/dist/cjs/components/Panel/index.js +0 -131
  121. package/dist/cjs/components/ProgressIndicator/DefaultProgress.js +0 -30
  122. package/dist/cjs/components/ProgressIndicator/MLProgress.js +0 -32
  123. package/dist/cjs/components/ProgressIndicator/index.js +0 -35
  124. package/dist/cjs/components/Select/index.js +0 -118
  125. package/dist/cjs/components/Select/select.theme.js +0 -63
  126. package/dist/cjs/components/StatusChip/constants.js +0 -12
  127. package/dist/cjs/components/StatusChip/index.js +0 -40
  128. package/dist/cjs/components/StatusChip/statusChip.theme.js +0 -46
  129. package/dist/cjs/components/Step/index.js +0 -23
  130. package/dist/cjs/components/StepLabel/index.js +0 -22
  131. package/dist/cjs/components/Stepper/index.js +0 -25
  132. package/dist/cjs/components/Stepper/stepper.theme.js +0 -58
  133. package/dist/cjs/components/Table/AutoTable/common.js +0 -162
  134. package/dist/cjs/components/Table/AutoTable/controlled.js +0 -128
  135. package/dist/cjs/components/Table/AutoTable/index.js +0 -122
  136. package/dist/cjs/components/Table/AutoTable/types.js +0 -5
  137. package/dist/cjs/components/Table/AutoTable/virtual.js +0 -222
  138. package/dist/cjs/components/Table/index.js +0 -187
  139. package/dist/cjs/components/Tabs/index.js +0 -49
  140. package/dist/cjs/components/Tabs/tabs.theme.js +0 -39
  141. package/dist/cjs/components/ThemeProvider/index.js +0 -26
  142. package/dist/cjs/components/UtilityRail/index.js +0 -76
  143. package/dist/cjs/components/UtilityRail/mock.js +0 -32
  144. package/dist/cjs/components/ZeroState/index.js +0 -25
  145. package/dist/cjs/components/_Alert/index.js +0 -70
  146. package/dist/cjs/components/_Autocomplete/index.js +0 -67
  147. package/dist/cjs/components/_Button/Indicator.js +0 -36
  148. package/dist/cjs/components/_Button/button.theme.js +0 -125
  149. package/dist/cjs/components/_Button/index.js +0 -58
  150. package/dist/cjs/components/_Checkbox/checkbox.theme.js +0 -28
  151. package/dist/cjs/components/_Checkbox/index.js +0 -32
  152. package/dist/cjs/components/_IconButton/index.js +0 -27
  153. package/dist/cjs/components/_Input/index.js +0 -40
  154. package/dist/cjs/components/_Input/input.theme.js +0 -114
  155. package/dist/cjs/components/_MenuFlyout/constants.js +0 -12
  156. package/dist/cjs/components/_MenuFlyout/index.js +0 -48
  157. package/dist/cjs/components/_MenuFlyout/menuFlyout.theme.js +0 -52
  158. package/dist/cjs/components/_Modal/index.js +0 -27
  159. package/dist/cjs/components/_Modal/modal.theme.js +0 -36
  160. package/dist/cjs/components/_RadioButton/RadioButton.theme.js +0 -64
  161. package/dist/cjs/components/_RadioButton/index.js +0 -44
  162. package/dist/cjs/components/_RadioGroup/index.js +0 -25
  163. package/dist/cjs/components/_Typography/index.js +0 -21
  164. package/dist/cjs/components/icons/HomeOutlinedIcon/index.js +0 -15
  165. package/dist/cjs/components/icons/IconGroups/index.js +0 -15
  166. package/dist/cjs/components/icons/IconListItem/index.js +0 -16
  167. package/dist/esm/assets/theme.js +0 -359
  168. package/dist/esm/components/AudioSlider/index.js +0 -64
  169. package/dist/esm/components/Breadcrumbs/breadcrumbs.theme.js +0 -14
  170. package/dist/esm/components/Breadcrumbs/index.js +0 -65
  171. package/dist/esm/components/Drawer/index.js +0 -14
  172. package/dist/esm/components/ErrorMessage/index.js +0 -44
  173. package/dist/esm/components/FileUploader/index.js +0 -343
  174. package/dist/esm/components/FormControlLabel/index.js +0 -13
  175. package/dist/esm/components/LinearProgress/index.js +0 -49
  176. package/dist/esm/components/LinearProgress/linearProgress.theme.js +0 -17
  177. package/dist/esm/components/Link/index.js +0 -22
  178. package/dist/esm/components/List/index.js +0 -12
  179. package/dist/esm/components/ListItem/index.js +0 -12
  180. package/dist/esm/components/ListItemButton/index.js +0 -14
  181. package/dist/esm/components/ListItemText/index.js +0 -12
  182. package/dist/esm/components/Panel/index.js +0 -124
  183. package/dist/esm/components/ProgressIndicator/DefaultProgress.js +0 -24
  184. package/dist/esm/components/ProgressIndicator/MLProgress.js +0 -26
  185. package/dist/esm/components/ProgressIndicator/index.js +0 -28
  186. package/dist/esm/components/Select/index.js +0 -109
  187. package/dist/esm/components/Select/select.theme.js +0 -56
  188. package/dist/esm/components/StatusChip/constants.js +0 -3
  189. package/dist/esm/components/StatusChip/index.js +0 -32
  190. package/dist/esm/components/StatusChip/statusChip.theme.js +0 -39
  191. package/dist/esm/components/Step/index.js +0 -15
  192. package/dist/esm/components/StepLabel/index.js +0 -12
  193. package/dist/esm/components/Stepper/index.js +0 -17
  194. package/dist/esm/components/Stepper/stepper.theme.js +0 -51
  195. package/dist/esm/components/Table/AutoTable/common.js +0 -150
  196. package/dist/esm/components/Table/AutoTable/controlled.js +0 -123
  197. package/dist/esm/components/Table/AutoTable/index.js +0 -111
  198. package/dist/esm/components/Table/AutoTable/types.js +0 -1
  199. package/dist/esm/components/Table/AutoTable/virtual.js +0 -215
  200. package/dist/esm/components/Table/index.js +0 -170
  201. package/dist/esm/components/Tabs/index.js +0 -40
  202. package/dist/esm/components/Tabs/tabs.theme.js +0 -32
  203. package/dist/esm/components/ThemeProvider/index.js +0 -18
  204. package/dist/esm/components/UtilityRail/index.js +0 -70
  205. package/dist/esm/components/UtilityRail/mock.js +0 -25
  206. package/dist/esm/components/ZeroState/index.js +0 -18
  207. package/dist/esm/components/_Alert/index.js +0 -63
  208. package/dist/esm/components/_Autocomplete/index.js +0 -59
  209. package/dist/esm/components/_Button/Indicator.js +0 -29
  210. package/dist/esm/components/_Button/button.theme.js +0 -118
  211. package/dist/esm/components/_Button/index.js +0 -48
  212. package/dist/esm/components/_Checkbox/checkbox.theme.js +0 -21
  213. package/dist/esm/components/_Checkbox/index.js +0 -24
  214. package/dist/esm/components/_IconButton/index.js +0 -17
  215. package/dist/esm/components/_Input/index.js +0 -33
  216. package/dist/esm/components/_Input/input.theme.js +0 -107
  217. package/dist/esm/components/_MenuFlyout/constants.js +0 -3
  218. package/dist/esm/components/_MenuFlyout/index.js +0 -41
  219. package/dist/esm/components/_MenuFlyout/menuFlyout.theme.js +0 -44
  220. package/dist/esm/components/_Modal/index.js +0 -20
  221. package/dist/esm/components/_Modal/modal.theme.js +0 -29
  222. package/dist/esm/components/_RadioButton/RadioButton.theme.js +0 -57
  223. package/dist/esm/components/_RadioButton/index.js +0 -36
  224. package/dist/esm/components/_RadioGroup/index.js +0 -15
  225. package/dist/esm/components/_Typography/index.js +0 -13
  226. package/dist/esm/components/icons/HomeOutlinedIcon/index.js +0 -8
  227. package/dist/esm/components/icons/IconGroups/index.js +0 -8
  228. package/dist/esm/components/icons/IconListItem/index.js +0 -9
  229. package/dist/esm-next/Alert/styles.module.scss.js +0 -3
  230. package/dist/esm-next/Button/styles.module.scss.js +0 -3
  231. package/dist/esm-next/Checkbox/styles.module.scss.js +0 -3
  232. package/dist/esm-next/CircularProgress/styles.module.scss.js +0 -3
  233. package/dist/esm-next/Dialog/styles.module.scss.js +0 -3
  234. package/dist/esm-next/Drawer/styles.module.scss.js +0 -3
  235. package/dist/esm-next/IconButton/styles.module.scss.js +0 -3
  236. package/dist/esm-next/Input/styles.module.scss.js +0 -3
  237. package/dist/esm-next/Menu/styles.module.scss.js +0 -3
  238. package/dist/esm-next/RadioButton/styles.module.scss.js +0 -3
  239. package/dist/esm-next/Select/styles.module.scss.js +0 -3
  240. package/dist/esm-next/TablePagination/styles.module.scss.js +0 -3
  241. package/dist/esm-next/Textarea/styles.module.scss.js +0 -3
  242. package/dist/esm-next/Typography/variants.module.scss.js +0 -3
  243. package/dist/esm-next/index.js +0 -40
  244. package/dist/esm-next/styles/css-vars.js +0 -126
  245. package/dist/esm-next/styles/defaultTheme.js +0 -11
  246. package/dist/esm-next/styles/palette.js +0 -30
  247. package/dist/esm-next/styles/scss/theme.generated.scss +0 -328
  248. package/dist/esm-next/styles.css +0 -18
  249. package/dist/types/src/assets/theme.d.ts +0 -62
  250. package/dist/types/src/components/AudioSlider/index.d.ts +0 -12
  251. package/dist/types/src/components/Breadcrumbs/breadcrumbs.theme.d.ts +0 -11
  252. package/dist/types/src/components/Breadcrumbs/index.d.ts +0 -25
  253. package/dist/types/src/components/Drawer/index.d.ts +0 -14
  254. package/dist/types/src/components/ErrorMessage/index.d.ts +0 -8
  255. package/dist/types/src/components/FileUploader/index.d.ts +0 -37
  256. package/dist/types/src/components/FormControlLabel/index.d.ts +0 -11
  257. package/dist/types/src/components/LinearProgress/index.d.ts +0 -32
  258. package/dist/types/src/components/LinearProgress/linearProgress.theme.d.ts +0 -13
  259. package/dist/types/src/components/Link/index.d.ts +0 -9
  260. package/dist/types/src/components/List/index.d.ts +0 -10
  261. package/dist/types/src/components/ListItem/index.d.ts +0 -10
  262. package/dist/types/src/components/ListItemButton/index.d.ts +0 -12
  263. package/dist/types/src/components/ListItemText/index.d.ts +0 -10
  264. package/dist/types/src/components/Panel/index.d.ts +0 -17
  265. package/dist/types/src/components/ProgressIndicator/DefaultProgress.d.ts +0 -3
  266. package/dist/types/src/components/ProgressIndicator/MLProgress.d.ts +0 -6
  267. package/dist/types/src/components/ProgressIndicator/index.d.ts +0 -20
  268. package/dist/types/src/components/Select/index.d.ts +0 -41
  269. package/dist/types/src/components/Select/select.theme.d.ts +0 -52
  270. package/dist/types/src/components/StatusChip/constants.d.ts +0 -3
  271. package/dist/types/src/components/StatusChip/index.d.ts +0 -30
  272. package/dist/types/src/components/StatusChip/statusChip.theme.d.ts +0 -4
  273. package/dist/types/src/components/Step/index.d.ts +0 -23
  274. package/dist/types/src/components/StepLabel/index.d.ts +0 -13
  275. package/dist/types/src/components/Stepper/index.d.ts +0 -22
  276. package/dist/types/src/components/Stepper/stepper.theme.d.ts +0 -50
  277. package/dist/types/src/components/Table/AutoTable/common.d.ts +0 -31
  278. package/dist/types/src/components/Table/AutoTable/controlled.d.ts +0 -15
  279. package/dist/types/src/components/Table/AutoTable/index.d.ts +0 -47
  280. package/dist/types/src/components/Table/AutoTable/types.d.ts +0 -106
  281. package/dist/types/src/components/Table/AutoTable/virtual.d.ts +0 -23
  282. package/dist/types/src/components/Table/index.d.ts +0 -150
  283. package/dist/types/src/components/Tabs/index.d.ts +0 -16
  284. package/dist/types/src/components/Tabs/tabs.theme.d.ts +0 -4
  285. package/dist/types/src/components/ThemeProvider/index.d.ts +0 -9
  286. package/dist/types/src/components/UtilityRail/index.d.ts +0 -12
  287. package/dist/types/src/components/UtilityRail/mock.d.ts +0 -2
  288. package/dist/types/src/components/ZeroState/index.d.ts +0 -2
  289. package/dist/types/src/components/_Alert/index.d.ts +0 -18
  290. package/dist/types/src/components/_Autocomplete/index.d.ts +0 -24
  291. package/dist/types/src/components/_Button/Indicator.d.ts +0 -2
  292. package/dist/types/src/components/_Button/button.theme.d.ts +0 -4
  293. package/dist/types/src/components/_Button/index.d.ts +0 -24
  294. package/dist/types/src/components/_Checkbox/checkbox.theme.d.ts +0 -18
  295. package/dist/types/src/components/_Checkbox/index.d.ts +0 -14
  296. package/dist/types/src/components/_IconButton/index.d.ts +0 -16
  297. package/dist/types/src/components/_Input/index.d.ts +0 -25
  298. package/dist/types/src/components/_Input/input.theme.d.ts +0 -3
  299. package/dist/types/src/components/_MenuFlyout/constants.d.ts +0 -3
  300. package/dist/types/src/components/_MenuFlyout/index.d.ts +0 -21
  301. package/dist/types/src/components/_MenuFlyout/menuFlyout.theme.d.ts +0 -36
  302. package/dist/types/src/components/_Modal/index.d.ts +0 -14
  303. package/dist/types/src/components/_Modal/modal.theme.d.ts +0 -3
  304. package/dist/types/src/components/_RadioButton/RadioButton.theme.d.ts +0 -4
  305. package/dist/types/src/components/_RadioButton/index.d.ts +0 -17
  306. package/dist/types/src/components/_RadioGroup/index.d.ts +0 -30
  307. package/dist/types/src/components/_Typography/index.d.ts +0 -12
  308. package/dist/types/src/components/icons/HomeOutlinedIcon/index.d.ts +0 -5
  309. package/dist/types/src/components/icons/IconGroups/index.d.ts +0 -5
  310. package/dist/types/src/components/icons/IconListItem/index.d.ts +0 -7
  311. package/dist/types/src/index.d.ts +0 -57
  312. package/dist/types/src-next/styles/palette.d.ts +0 -55
  313. /package/dist/{esm-next → esm}/Box/index.js +0 -0
  314. /package/dist/{esm-next → esm}/Dialog/factory.js +0 -0
  315. /package/dist/{esm-next → esm}/Dialog/state.js +0 -0
  316. /package/dist/{esm-next → esm}/Drawer/factory.js +0 -0
  317. /package/dist/{esm-next → esm}/Drawer/state.js +0 -0
  318. /package/dist/{esm-next → esm}/GlobalStyles/index.js +0 -0
  319. /package/dist/{esm-next → esm}/Icon/factory.js +0 -0
  320. /package/dist/{esm-next → esm}/Icon/internal.js +0 -0
  321. /package/dist/{esm-next → esm}/Icon/styles.module.scss.js +0 -0
  322. /package/dist/{esm-next → esm}/Menu/factory.js +0 -0
  323. /package/dist/{esm-next → esm}/Pagination/index.js +0 -0
  324. /package/dist/{esm-next → esm}/Pagination/styles.module.scss.js +0 -0
  325. /package/dist/{esm-next → esm}/Select/factory.js +0 -0
  326. /package/dist/{esm-next → esm}/Select/uncontrolled.js +0 -0
  327. /package/dist/{esm-next → esm}/TablePagination/index.js +0 -0
  328. /package/dist/{esm-next → esm}/Toast/content.js +0 -0
  329. /package/dist/{esm-next → esm}/Toast/hook.js +0 -0
  330. /package/dist/{esm-next → esm}/Toast/index.js +0 -0
  331. /package/dist/{esm-next → esm}/popover/utils.js +0 -0
  332. /package/dist/{esm-next → esm}/styles/createTheme.js +0 -0
  333. /package/dist/{esm-next → esm}/styles/cx.js +0 -0
  334. /package/dist/{esm-next → esm}/styles/identifier.js +0 -0
  335. /package/dist/{esm-next → esm}/styles/provider.client.js +0 -0
  336. /package/dist/{esm-next → esm}/styles/provider.css-vars.js +0 -0
  337. /package/dist/{esm-next → esm}/styles/scss/_index.scss +0 -0
  338. /package/dist/{esm-next → esm}/styles/scss/baseline.scss +0 -0
  339. /package/dist/{esm-next → esm}/styles/styled.js +0 -0
  340. /package/dist/{esm-next → esm}/styles/typography.js +0 -0
  341. /package/dist/{esm-next → esm}/styles/useTheme.js +0 -0
  342. /package/dist/{esm-next → esm}/utils/capitalize.js +0 -0
  343. /package/dist/types/{src-next/Alert → Alert}/index.d.ts +0 -0
  344. /package/dist/types/{src-next/Box → Box}/index.d.ts +0 -0
  345. /package/dist/types/{src-next/Button → Button}/index.d.ts +0 -0
  346. /package/dist/types/{src-next/Checkbox → Checkbox}/index.d.ts +0 -0
  347. /package/dist/types/{src-next/CircularProgress → CircularProgress}/index.d.ts +0 -0
  348. /package/dist/types/{src-next/Dialog → Dialog}/components.d.ts +0 -0
  349. /package/dist/types/{src-next/Dialog → Dialog}/factory.d.ts +0 -0
  350. /package/dist/types/{src-next/Dialog → Dialog}/index.d.ts +0 -0
  351. /package/dist/types/{src-next/Dialog → Dialog}/state.d.ts +0 -0
  352. /package/dist/types/{src-next/Drawer → Drawer}/components.d.ts +0 -0
  353. /package/dist/types/{src-next/Drawer → Drawer}/factory.d.ts +0 -0
  354. /package/dist/types/{src-next/Drawer → Drawer}/index.d.ts +0 -0
  355. /package/dist/types/{src-next/Drawer → Drawer}/state.d.ts +0 -0
  356. /package/dist/types/{src-next/GlobalStyles → GlobalStyles}/index.d.ts +0 -0
  357. /package/dist/types/{src-next/Icon → Icon}/factory.d.ts +0 -0
  358. /package/dist/types/{src-next/Icon → Icon}/index.d.ts +0 -0
  359. /package/dist/types/{src-next/Icon → Icon}/internal.d.ts +0 -0
  360. /package/dist/types/{src-next/Icon → Icon}/shared.d.ts +0 -0
  361. /package/dist/types/{src-next/Icon → Icon}/wrappers.d.ts +0 -0
  362. /package/dist/types/{src-next/IconButton → IconButton}/index.d.ts +0 -0
  363. /package/dist/types/{src-next/Input → Input}/index.d.ts +0 -0
  364. /package/dist/types/{src-next/Menu → Menu}/controlled.d.ts +0 -0
  365. /package/dist/types/{src-next/Menu → Menu}/factory.d.ts +0 -0
  366. /package/dist/types/{src-next/Menu → Menu}/index.d.ts +0 -0
  367. /package/dist/types/{src-next/Pagination → Pagination}/index.d.ts +0 -0
  368. /package/dist/types/{src-next/RadioButton → RadioButton}/index.d.ts +0 -0
  369. /package/dist/types/{src-next/Select → Select}/controlled.d.ts +0 -0
  370. /package/dist/types/{src-next/Select → Select}/factory.d.ts +0 -0
  371. /package/dist/types/{src-next/Select → Select}/index.d.ts +0 -0
  372. /package/dist/types/{src-next/Select → Select}/types.d.ts +0 -0
  373. /package/dist/types/{src-next/Select → Select}/uncontrolled.d.ts +0 -0
  374. /package/dist/types/{src-next/TablePagination → TablePagination}/index.d.ts +0 -0
  375. /package/dist/types/{src-next/Textarea → Textarea}/index.d.ts +0 -0
  376. /package/dist/types/{src-next/Toast → Toast}/content.d.ts +0 -0
  377. /package/dist/types/{src-next/Toast → Toast}/hook.d.ts +0 -0
  378. /package/dist/types/{src-next/Toast → Toast}/index.d.ts +0 -0
  379. /package/dist/types/{src-next/Tooltip → Tooltip}/index.d.ts +0 -0
  380. /package/dist/types/{src-next/Typography → Typography}/index.d.ts +0 -0
  381. /package/dist/types/{src-next/index.d.ts → index.d.ts} +0 -0
  382. /package/dist/types/{src-next/popover → popover}/index.d.ts +0 -0
  383. /package/dist/types/{src-next/popover → popover}/types.d.ts +0 -0
  384. /package/dist/types/{src-next/popover → popover}/utils.d.ts +0 -0
  385. /package/dist/types/{src-next/styles → styles}/baseline.d.ts +0 -0
  386. /package/dist/types/{src-next/styles → styles}/createTheme.d.ts +0 -0
  387. /package/dist/types/{src-next/styles → styles}/cx.d.ts +0 -0
  388. /package/dist/types/{src-next/styles → styles}/identifier.d.ts +0 -0
  389. /package/dist/types/{src-next/styles → styles}/provider.client.d.ts +0 -0
  390. /package/dist/types/{src-next/styles → styles}/provider.css-vars.d.ts +0 -0
  391. /package/dist/types/{src-next/styles → styles}/styled.d.ts +0 -0
  392. /package/dist/types/{src-next/styles → styles}/sx.d.ts +0 -0
  393. /package/dist/types/{src-next/styles → styles}/typography.d.ts +0 -0
  394. /package/dist/types/{src-next/styles → styles}/useTheme.d.ts +0 -0
  395. /package/dist/types/{src-next/utils → utils}/capitalize.d.ts +0 -0
  396. /package/dist/types/{src-next/utils → utils}/controlled.d.ts +0 -0
  397. /package/dist/types/{src-next/utils → utils}/index.d.ts +0 -0
@@ -1,72 +0,0 @@
1
- "use strict";
2
- 'use client';
3
-
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _material = require("@mui/material");
9
- var _react = _interopRequireDefault(require("react"));
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
- /**
13
- * - This is the breadcrumbs component that is used in the header
14
- * - It takes in an array of links and renders them as breadcrumbs
15
- * - The last link is not clickable
16
- * - The last link is styled differently
17
- **/
18
-
19
- var Breadcrumbs = function Breadcrumbs(props) {
20
- var LinkComponent = _react["default"].useMemo(function () {
21
- var _props$LinkComponent;
22
- return (_props$LinkComponent = props.LinkComponent) !== null && _props$LinkComponent !== void 0 ? _props$LinkComponent : function (linkProps) {
23
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Link, {
24
- href: linkProps.to,
25
- children: linkProps.children
26
- });
27
- };
28
- }, [props.LinkComponent]);
29
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Breadcrumbs, {
30
- "aria-label": "breadcrumbs",
31
- "data-testid": props['data-testid'],
32
- sx: props.sx,
33
- className: props.className,
34
- children: props.links.map(function (link, index) {
35
- if (index === props.links.length - 1) {
36
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
37
- sx: {
38
- color: function color(theme) {
39
- return theme.palette.text.disabled;
40
- },
41
- fontFamily: 'Dosis',
42
- fontStyle: 'normal',
43
- fontWeight: 600,
44
- fontSize: '18px',
45
- textTransform: 'uppercase'
46
- },
47
- children: link.label
48
- }, link.to);
49
- } else {
50
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(LinkComponent, {
51
- to: link.to,
52
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
53
- sx: {
54
- color: function color(theme) {
55
- return theme.palette.button.main;
56
- },
57
- fontFamily: 'Dosis',
58
- fontStyle: 'normal',
59
- fontWeight: 600,
60
- fontSize: '18px',
61
- textTransform: 'uppercase',
62
- textDecoration: 'none'
63
- },
64
- children: link.label
65
- })
66
- }, link.to);
67
- }
68
- })
69
- });
70
- };
71
- var _default = Breadcrumbs;
72
- exports["default"] = _default;
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _material = require("@mui/material");
9
- var React = _interopRequireWildcard(require("react"));
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
- var Drawer = function Drawer(props) {
14
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Drawer, {
15
- "data-testid": props['data-testid'],
16
- open: props.open,
17
- onClose: props.onClose,
18
- sx: props.sx,
19
- className: props.className,
20
- children: props.children
21
- });
22
- };
23
- var _default = Drawer;
24
- exports["default"] = _default;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- 'use client';
3
-
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = ErrorMessage;
8
- var _iconsMaterial = require("@mui/icons-material");
9
- var _material = require("@mui/material");
10
- var _styles = require("@mui/material/styles");
11
- var _react = _interopRequireDefault(require("react"));
12
- var _index = _interopRequireDefault(require("../_Typography/index.js"));
13
- var _jsxRuntime = require("react/jsx-runtime");
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
- var ErrorContainer = (0, _styles.styled)(_material.Box)({
16
- width: '100%',
17
- display: 'flex',
18
- justifyContent: 'center',
19
- alignItems: 'center',
20
- paddingTop: '10px',
21
- paddingBottom: '10px'
22
- });
23
- var ErrorTypography = (0, _styles.styled)(_index["default"])(function (_ref) {
24
- var theme = _ref.theme;
25
- return {
26
- color: theme.palette.text.primary,
27
- fontSize: theme.typography.subtitle1.fontSize,
28
- fontWeight: 'bold'
29
- };
30
- });
31
- function ErrorMessage(props) {
32
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ErrorContainer, {
33
- sx: props.sx,
34
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_iconsMaterial.ErrorOutline, {
35
- sx: {
36
- marginRight: '10px',
37
- color: function color(theme) {
38
- return theme.palette.error.main;
39
- }
40
- }
41
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(ErrorTypography, {
42
- sx: props.typographySx,
43
- children: ["An error occurred", props.children !== undefined ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
44
- children: [": ", props.children, "."]
45
- }) : '.', " Please try reloading the page."]
46
- })]
47
- });
48
- }
@@ -1,349 +0,0 @@
1
- "use strict";
2
- 'use client';
3
-
4
- /* eslint-disable @typescript-eslint/no-explicit-any */
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = FileUploader;
9
- exports.useFileUploader = useFileUploader;
10
- var _react = require("react");
11
- var _material = require("@mui/material");
12
- var _styles = require("@mui/material/styles");
13
- var _iconsMaterial = require("@mui/icons-material");
14
- var _reactDropzone = require("react-dropzone");
15
- var _index = _interopRequireDefault(require("../LinearProgress/index.js"));
16
- var _jsxRuntime = require("react/jsx-runtime");
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
19
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
20
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
21
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
22
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
23
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
25
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
26
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
29
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
30
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
31
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
- 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; }
33
- 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; }
34
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
35
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
36
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
37
- function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
38
- function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, "return": function _return(r) { var n = this.s["return"]; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, "throw": function _throw(r) { var n = this.s["return"]; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
39
- function FileUploader(props) {
40
- var _useTheme = (0, _styles.useTheme)(),
41
- palette = _useTheme.palette;
42
- var _useDropzone = (0, _reactDropzone.useDropzone)({
43
- disabled: props.uploading || props.uploaded,
44
- multiple: props.multiple,
45
- accept: props.accept,
46
- onDrop: props.onDrop
47
- }),
48
- getRootProps = _useDropzone.getRootProps,
49
- getInputProps = _useDropzone.getInputProps;
50
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
51
- "data-testid": props['data-testid'],
52
- sx: props.sx,
53
- className: props.className,
54
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, _objectSpread(_objectSpread({
55
- "data-testid": "dropzone",
56
- sx: {
57
- maxWidth: '500px',
58
- height: '109px',
59
- display: 'flex',
60
- alignItems: 'center',
61
- gap: '20px',
62
- paddingTop: '20px',
63
- paddingRight: '38px',
64
- paddingBottom: '19px',
65
- paddingLeft: '20px',
66
- marginBottom: '5px',
67
- width: '100%',
68
- boxSizing: 'border-box',
69
- borderRadius: '4px',
70
- cursor: 'pointer',
71
- outline: "1px solid ".concat(palette.neutral.main)
72
- }
73
- }, getRootProps()), {}, {
74
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread({
75
- type: 'file',
76
- style: {
77
- display: 'none'
78
- }
79
- }, getInputProps())), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
80
- sx: {
81
- display: 'flex',
82
- alignItems: 'center',
83
- justifyContent: 'center',
84
- width: '70px',
85
- height: '70px',
86
- boxSizing: 'border-box',
87
- border: "6px solid ".concat(palette.misc.altBackground),
88
- borderRadius: '50%'
89
- },
90
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconsMaterial.CloudUploadOutlined, {
91
- sx: {
92
- fill: palette.text.tertiary,
93
- width: '30px',
94
- height: '30px'
95
- }
96
- })
97
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
98
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
99
- sx: {
100
- fontSize: '14px',
101
- width: '352px',
102
- fontWeight: 600,
103
- lineHeight: '22px',
104
- color: palette.text.primary
105
- },
106
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
107
- sx: {
108
- display: 'flex'
109
- },
110
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
111
- sx: {
112
- marginRight: '4px',
113
- textDecoration: 'underline',
114
- color: palette.button.main,
115
- fontWeight: 400
116
- },
117
- children: "Browse files"
118
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
119
- children: "from your computer or drag and drop here"
120
- })]
121
- })
122
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Typography, {
123
- sx: {
124
- fontWeight: 600,
125
- fontSize: '10px',
126
- lineHeight: '16px',
127
- color: palette.neutral.main
128
- },
129
- children: ["Supported File Formats:", ' ', Object.values(props.accept).flat().join(', ')]
130
- })]
131
- })]
132
- })), props.filesState.map(function (file, index) {
133
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
134
- "data-testid": "file-item",
135
- sx: {
136
- minHeight: '70px',
137
- maxWidth: '500px',
138
- display: 'flex',
139
- alignItems: 'center',
140
- gap: '10px',
141
- padding: '10px',
142
- boxSizing: 'border-box',
143
- borderBottom: "1px solid rgba(42, 50, 60, 0.5)"
144
- },
145
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index["default"], {
146
- value: file.uploadProgress,
147
- itemLoading: file.name,
148
- isError: file.withError,
149
- feedbackText: file.feedbackText,
150
- isUploaded: file.isUploaded
151
- }), !props.uploading && !props.uploaded && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.IconButton, {
152
- "data-testid": "file-item-delete-button",
153
- "aria-label": "delete",
154
- sx: {
155
- padding: 0
156
- },
157
- onClick: function onClick() {
158
- return props.onDelete(index);
159
- },
160
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconsMaterial.DeleteOutline, {
161
- sx: {
162
- width: '18px',
163
- height: '18px',
164
- fill: palette.text.tertiary
165
- }
166
- })
167
- })]
168
- }, index);
169
- })]
170
- });
171
- }
172
-
173
- // this returns a generator to provide incremental progress updates. See storybook for example
174
-
175
- function useFileUploader(options) {
176
- var filesRef = (0, _react.useRef)([]);
177
- var _useState = (0, _react.useState)([]),
178
- _useState2 = _slicedToArray(_useState, 2),
179
- filesState = _useState2[0],
180
- setFilesState = _useState2[1];
181
- var _useState3 = (0, _react.useState)(false),
182
- _useState4 = _slicedToArray(_useState3, 2),
183
- uploading = _useState4[0],
184
- setUploading = _useState4[1];
185
- var _useState5 = (0, _react.useState)(false),
186
- _useState6 = _slicedToArray(_useState5, 2),
187
- uploaded = _useState6[0],
188
- setUploaded = _useState6[1];
189
- var updateFileState = function updateFileState(file, update) {
190
- setFilesState(function (prevFilesState) {
191
- var index = filesRef.current.indexOf(file);
192
- if (index == -1) {
193
- // no change
194
- return prevFilesState;
195
- }
196
- return prevFilesState.map(function (fileState, i) {
197
- if (i == index) {
198
- return _objectSpread(_objectSpread({}, fileState), update);
199
- }
200
- return fileState;
201
- });
202
- });
203
- };
204
- var handleDeleteFile = (0, _react.useCallback)(function (fileIndex) {
205
- filesRef.current.splice(fileIndex, 1);
206
- var nFileList = _toConsumableArray(filesState);
207
- nFileList.splice(fileIndex, 1);
208
- setFilesState(nFileList);
209
- }, [filesState]);
210
- return {
211
- files: filesState,
212
- onDrop: function onDrop(acceptedFiles) {
213
- // add files to processing list
214
- filesRef.current = [].concat(_toConsumableArray(filesRef.current), _toConsumableArray(acceptedFiles));
215
- setFilesState(function (prevFilesState) {
216
- return [].concat(_toConsumableArray(prevFilesState), _toConsumableArray(acceptedFiles.map(function (acceptedFile) {
217
- return {
218
- name: acceptedFile.name,
219
- isUploaded: false,
220
- uploadProgress: 0,
221
- withError: false,
222
- feedbackText: 'Pending'
223
- };
224
- })));
225
- });
226
- },
227
- removeFile: handleDeleteFile,
228
- uploading: uploading,
229
- uploaded: uploaded,
230
- uploadFiles: function uploadFiles() {
231
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
232
- var results;
233
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
234
- while (1) switch (_context2.prev = _context2.next) {
235
- case 0:
236
- if (!(uploading || uploaded)) {
237
- _context2.next = 2;
238
- break;
239
- }
240
- return _context2.abrupt("return", []);
241
- case 2:
242
- setUploading(true);
243
- _context2.next = 5;
244
- return Promise.allSettled(filesRef.current.map( /*#__PURE__*/function () {
245
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(acceptedFile) {
246
- var _options$onComplete, uploadProgress, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, newProgress, _options$onError;
247
- return _regeneratorRuntime().wrap(function _callee$(_context) {
248
- while (1) switch (_context.prev = _context.next) {
249
- case 0:
250
- _context.prev = 0;
251
- updateFileState(acceptedFile, {
252
- feedbackText: ''
253
- });
254
- _context.next = 4;
255
- return options.uploadFile(acceptedFile);
256
- case 4:
257
- uploadProgress = _context.sent;
258
- // get progress updates
259
- _iteratorAbruptCompletion = false;
260
- _didIteratorError = false;
261
- _context.prev = 7;
262
- _iterator = _asyncIterator(uploadProgress);
263
- case 9:
264
- _context.next = 11;
265
- return _iterator.next();
266
- case 11:
267
- if (!(_iteratorAbruptCompletion = !(_step = _context.sent).done)) {
268
- _context.next = 17;
269
- break;
270
- }
271
- newProgress = _step.value;
272
- updateFileState(acceptedFile, {
273
- uploadProgress: newProgress,
274
- feedbackText: ''
275
- });
276
- case 14:
277
- _iteratorAbruptCompletion = false;
278
- _context.next = 9;
279
- break;
280
- case 17:
281
- _context.next = 23;
282
- break;
283
- case 19:
284
- _context.prev = 19;
285
- _context.t0 = _context["catch"](7);
286
- _didIteratorError = true;
287
- _iteratorError = _context.t0;
288
- case 23:
289
- _context.prev = 23;
290
- _context.prev = 24;
291
- if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
292
- _context.next = 28;
293
- break;
294
- }
295
- _context.next = 28;
296
- return _iterator["return"]();
297
- case 28:
298
- _context.prev = 28;
299
- if (!_didIteratorError) {
300
- _context.next = 31;
301
- break;
302
- }
303
- throw _iteratorError;
304
- case 31:
305
- return _context.finish(28);
306
- case 32:
307
- return _context.finish(23);
308
- case 33:
309
- // complete
310
- updateFileState(acceptedFile, {
311
- isUploaded: true,
312
- uploadProgress: 100
313
- });
314
- (_options$onComplete = options.onComplete) === null || _options$onComplete === void 0 || _options$onComplete.call(options, acceptedFile);
315
- _context.next = 42;
316
- break;
317
- case 37:
318
- _context.prev = 37;
319
- _context.t1 = _context["catch"](0);
320
- // catch error
321
- updateFileState(acceptedFile, {
322
- withError: true
323
- });
324
- (_options$onError = options.onError) === null || _options$onError === void 0 || _options$onError.call(options, _context.t1);
325
- throw _context.t1;
326
- case 42:
327
- case "end":
328
- return _context.stop();
329
- }
330
- }, _callee, null, [[0, 37], [7, 19, 23, 33], [24,, 28, 32]]);
331
- }));
332
- return function (_x) {
333
- return _ref.apply(this, arguments);
334
- };
335
- }()));
336
- case 5:
337
- results = _context2.sent;
338
- setUploading(false);
339
- setUploaded(true);
340
- return _context2.abrupt("return", results);
341
- case 9:
342
- case "end":
343
- return _context2.stop();
344
- }
345
- }, _callee2);
346
- }))();
347
- }
348
- };
349
- }
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _material = require("@mui/material");
9
- var React = _interopRequireWildcard(require("react"));
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
- var FormControlLabel = function FormControlLabel(props) {
14
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormControlLabel, {
15
- "data-testid": props['data-testid'],
16
- label: props.label,
17
- control: props.control,
18
- sx: props.sx,
19
- className: props.className
20
- });
21
- };
22
- var _default = FormControlLabel;
23
- exports["default"] = _default;
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _material = require("@mui/material");
8
- var _jsxRuntime = require("react/jsx-runtime");
9
- /**
10
- - Use a Linear Progress Bar to show the user that an operation is in progress.
11
- This is currently being used in conjuction with the uploader tool
12
- **/
13
-
14
- var LinearProgress = function LinearProgress(props) {
15
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
16
- sx: {
17
- width: "100%",
18
- margin: "5px 0"
19
- },
20
- className: props.className,
21
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
22
- sx: {
23
- display: "flex",
24
- justifyContent: "space-between",
25
- marginBottom: "5px"
26
- },
27
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
28
- sx: {
29
- fontSize: "14px",
30
- fontWeight: "600"
31
- },
32
- children: props.itemLoading
33
- })
34
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.LinearProgress, {
35
- "aria-label": 'linear progress bar',
36
- variant: "determinate",
37
- value: props.value,
38
- "data-testid": props['data-testid'],
39
- sx: {
40
- '& .MuiLinearProgress-bar': {
41
- backgroundColor: props.isError ? "#EB0000" : props.isUploaded ? "#28BA3F" : undefined
42
- }
43
- }
44
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
45
- sx: {
46
- fontSize: "11px",
47
- marginTop: "10px",
48
- color: "#5C6269"
49
- },
50
- children: props.feedbackText ? props.feedbackText : "".concat(props.value, "%")
51
- })]
52
- });
53
- };
54
- var _default = LinearProgress;
55
- exports["default"] = _default;
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var linearProgress = function linearProgress() {
8
- return {
9
- styleOverrides: {
10
- root: function root() {
11
- return {
12
- borderRadius: "20px",
13
- backgroundColor: "#E0E8F0",
14
- '& .MuiLinearProgress-bar': {
15
- backgroundColor: '#335B89',
16
- borderRadius: "20px"
17
- }
18
- };
19
- }
20
- }
21
- };
22
- };
23
- var _default = linearProgress;
24
- exports["default"] = _default;
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _material = require("@mui/material");
9
- var React = _interopRequireWildcard(require("react"));
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- var _excluded = ["sx", "className"];
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
- 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; }
15
- 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; }
16
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
20
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21
- var Link = function Link(_ref) {
22
- var sx = _ref.sx,
23
- className = _ref.className,
24
- restProps = _objectWithoutProperties(_ref, _excluded);
25
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Link, _objectSpread(_objectSpread({}, restProps), {}, {
26
- sx: sx,
27
- className: className
28
- }));
29
- };
30
- var _default = Link;
31
- exports["default"] = _default;