@variocube/app-ui 1.14.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 (644) hide show
  1. package/README.md +65 -0
  2. package/esm/AppShell/AppShell.d.ts +12 -0
  3. package/esm/AppShell/AppShell.js +92 -0
  4. package/esm/AppShell/AppShell.js.map +1 -0
  5. package/esm/AppShell/index.d.ts +1 -0
  6. package/esm/AppShell/index.js +2 -0
  7. package/esm/AppShell/index.js.map +1 -0
  8. package/esm/ErrorAlert.d.ts +12 -0
  9. package/esm/ErrorAlert.js +61 -0
  10. package/esm/ErrorAlert.js.map +1 -0
  11. package/esm/Input/ActionsMenu.d.ts +9 -0
  12. package/esm/Input/ActionsMenu.js +29 -0
  13. package/esm/Input/ActionsMenu.js.map +1 -0
  14. package/esm/Input/Checkbox.d.ts +9 -0
  15. package/esm/Input/Checkbox.js +23 -0
  16. package/esm/Input/Checkbox.js.map +1 -0
  17. package/esm/Input/EmailSenderField.d.ts +8 -0
  18. package/esm/Input/EmailSenderField.js +71 -0
  19. package/esm/Input/EmailSenderField.js.map +1 -0
  20. package/esm/Input/NumberField.d.ts +10 -0
  21. package/esm/Input/NumberField.js +94 -0
  22. package/esm/Input/NumberField.js.map +1 -0
  23. package/esm/Input/RadioGroup.d.ts +12 -0
  24. package/esm/Input/RadioGroup.js +20 -0
  25. package/esm/Input/RadioGroup.js.map +1 -0
  26. package/esm/Input/Select.d.ts +11 -0
  27. package/esm/Input/Select.js +19 -0
  28. package/esm/Input/Select.js.map +1 -0
  29. package/esm/Input/Selector.d.ts +10 -0
  30. package/esm/Input/Selector.js +19 -0
  31. package/esm/Input/Selector.js.map +1 -0
  32. package/esm/Input/Switch.d.ts +9 -0
  33. package/esm/Input/Switch.js +23 -0
  34. package/esm/Input/Switch.js.map +1 -0
  35. package/esm/Input/TextField.d.ts +7 -0
  36. package/esm/Input/TextField.js +58 -0
  37. package/esm/Input/TextField.js.map +1 -0
  38. package/esm/Input/UrlUploadField.d.ts +9 -0
  39. package/esm/Input/UrlUploadField.js +43 -0
  40. package/esm/Input/UrlUploadField.js.map +1 -0
  41. package/esm/Input/index.d.ts +9 -0
  42. package/esm/Input/index.js +10 -0
  43. package/esm/Input/index.js.map +1 -0
  44. package/esm/LanguageSwitcher/LanguageSwitcher.d.ts +14 -0
  45. package/esm/LanguageSwitcher/LanguageSwitcher.js +20 -0
  46. package/esm/LanguageSwitcher/LanguageSwitcher.js.map +1 -0
  47. package/esm/LanguageSwitcher/index.d.ts +1 -0
  48. package/esm/LanguageSwitcher/index.js +2 -0
  49. package/esm/LanguageSwitcher/index.js.map +1 -0
  50. package/esm/Paging/Paging.d.ts +40 -0
  51. package/esm/Paging/Paging.js +43 -0
  52. package/esm/Paging/Paging.js.map +1 -0
  53. package/esm/Paging/index.d.ts +1 -0
  54. package/esm/Paging/index.js +2 -0
  55. package/esm/Paging/index.js.map +1 -0
  56. package/esm/VCThemeProvider/JetbrainsMonoFont.d.ts +5 -0
  57. package/esm/VCThemeProvider/JetbrainsMonoFont.js +52 -0
  58. package/esm/VCThemeProvider/JetbrainsMonoFont.js.map +1 -0
  59. package/esm/VCThemeProvider/RobotoFont.d.ts +7 -0
  60. package/esm/VCThemeProvider/RobotoFont.js +49 -0
  61. package/esm/VCThemeProvider/RobotoFont.js.map +1 -0
  62. package/esm/VCThemeProvider/ThemeModeSwitcher.d.ts +2 -0
  63. package/esm/VCThemeProvider/ThemeModeSwitcher.js +14 -0
  64. package/esm/VCThemeProvider/ThemeModeSwitcher.js.map +1 -0
  65. package/esm/VCThemeProvider/VCThemeProvider.d.ts +25 -0
  66. package/esm/VCThemeProvider/VCThemeProvider.js +173 -0
  67. package/esm/VCThemeProvider/VCThemeProvider.js.map +1 -0
  68. package/esm/VCThemeProvider/code-colors.d.ts +108 -0
  69. package/esm/VCThemeProvider/code-colors.js +26 -0
  70. package/esm/VCThemeProvider/code-colors.js.map +1 -0
  71. package/esm/VCThemeProvider/index.d.ts +5 -0
  72. package/esm/VCThemeProvider/index.js +6 -0
  73. package/esm/VCThemeProvider/index.js.map +1 -0
  74. package/esm/audit/AuditChanges.d.ts +9 -0
  75. package/esm/audit/AuditChanges.js +43 -0
  76. package/esm/audit/AuditChanges.js.map +1 -0
  77. package/esm/audit/AuditTimeline.d.ts +6 -0
  78. package/esm/audit/AuditTimeline.js +13 -0
  79. package/esm/audit/AuditTimeline.js.map +1 -0
  80. package/esm/audit/AuditTimelineItem.d.ts +10 -0
  81. package/esm/audit/AuditTimelineItem.js +27 -0
  82. package/esm/audit/AuditTimelineItem.js.map +1 -0
  83. package/esm/audit/index.d.ts +4 -0
  84. package/esm/audit/index.js +5 -0
  85. package/esm/audit/index.js.map +1 -0
  86. package/esm/audit/types.d.ts +42 -0
  87. package/esm/audit/types.js +2 -0
  88. package/esm/audit/types.js.map +1 -0
  89. package/esm/breadcrumbs.d.ts +6 -0
  90. package/esm/breadcrumbs.js +13 -0
  91. package/esm/breadcrumbs.js.map +1 -0
  92. package/esm/code/Code.d.ts +10 -0
  93. package/esm/code/Code.js +19 -0
  94. package/esm/code/Code.js.map +1 -0
  95. package/esm/code/CodeBlock.d.ts +4 -0
  96. package/esm/code/CodeBlock.js +6 -0
  97. package/esm/code/CodeBlock.js.map +1 -0
  98. package/esm/code/Json.d.ts +4 -0
  99. package/esm/code/Json.js +60 -0
  100. package/esm/code/Json.js.map +1 -0
  101. package/esm/code/index.d.ts +3 -0
  102. package/esm/code/index.js +4 -0
  103. package/esm/code/index.js.map +1 -0
  104. package/esm/confirm/ConfirmButton.d.ts +16 -0
  105. package/esm/confirm/ConfirmButton.js +29 -0
  106. package/esm/confirm/ConfirmButton.js.map +1 -0
  107. package/esm/confirm/ConfirmDialog.d.ts +16 -0
  108. package/esm/confirm/ConfirmDialog.js +35 -0
  109. package/esm/confirm/ConfirmDialog.js.map +1 -0
  110. package/esm/confirm/ConfirmIconButton.d.ts +14 -0
  111. package/esm/confirm/ConfirmIconButton.js +29 -0
  112. package/esm/confirm/ConfirmIconButton.js.map +1 -0
  113. package/esm/confirm/ConfirmMenuItem.d.ts +15 -0
  114. package/esm/confirm/ConfirmMenuItem.js +31 -0
  115. package/esm/confirm/ConfirmMenuItem.js.map +1 -0
  116. package/esm/confirm/index.d.ts +4 -0
  117. package/esm/confirm/index.js +5 -0
  118. package/esm/confirm/index.js.map +1 -0
  119. package/esm/container/ContainerLayout.d.ts +8 -0
  120. package/esm/container/ContainerLayout.js +20 -0
  121. package/esm/container/ContainerLayout.js.map +1 -0
  122. package/esm/container/ContainerSettingsContext.d.ts +12 -0
  123. package/esm/container/ContainerSettingsContext.js +46 -0
  124. package/esm/container/ContainerSettingsContext.js.map +1 -0
  125. package/esm/container/ContainerWidthControl.d.ts +6 -0
  126. package/esm/container/ContainerWidthControl.js +12 -0
  127. package/esm/container/ContainerWidthControl.js.map +1 -0
  128. package/esm/container/index.d.ts +3 -0
  129. package/esm/container/index.js +4 -0
  130. package/esm/container/index.js.map +1 -0
  131. package/esm/content-table/ContentTable.d.ts +25 -0
  132. package/esm/content-table/ContentTable.js +87 -0
  133. package/esm/content-table/ContentTable.js.map +1 -0
  134. package/esm/content-table/UndrawEmpty.d.ts +2 -0
  135. package/esm/content-table/UndrawEmpty.js +71 -0
  136. package/esm/content-table/UndrawEmpty.js.map +1 -0
  137. package/esm/content-table/index.d.ts +1 -0
  138. package/esm/content-table/index.js +2 -0
  139. package/esm/content-table/index.js.map +1 -0
  140. package/esm/country/countries.d.ts +34 -0
  141. package/esm/country/countries.js +266 -0
  142. package/esm/country/countries.js.map +1 -0
  143. package/esm/country/country-select.d.ts +8 -0
  144. package/esm/country/country-select.js +18 -0
  145. package/esm/country/country-select.js.map +1 -0
  146. package/esm/country/index.d.ts +5 -0
  147. package/esm/country/index.js +6 -0
  148. package/esm/country/index.js.map +1 -0
  149. package/esm/country/locale-select.d.ts +9 -0
  150. package/esm/country/locale-select.js +15 -0
  151. package/esm/country/locale-select.js.map +1 -0
  152. package/esm/country/locales.d.ts +10 -0
  153. package/esm/country/locales.js +190 -0
  154. package/esm/country/locales.js.map +1 -0
  155. package/esm/country/phone-prefix-select.d.ts +9 -0
  156. package/esm/country/phone-prefix-select.js +18 -0
  157. package/esm/country/phone-prefix-select.js.map +1 -0
  158. package/esm/cube/BoxFeatures.d.ts +11 -0
  159. package/esm/cube/BoxFeatures.js +40 -0
  160. package/esm/cube/BoxFeatures.js.map +1 -0
  161. package/esm/cube/BoxMaintenanceChip.d.ts +9 -0
  162. package/esm/cube/BoxMaintenanceChip.js +15 -0
  163. package/esm/cube/BoxMaintenanceChip.js.map +1 -0
  164. package/esm/cube/BoxNumber.d.ts +6 -0
  165. package/esm/cube/BoxNumber.js +6 -0
  166. package/esm/cube/BoxNumber.js.map +1 -0
  167. package/esm/cube/BoxType.d.ts +7 -0
  168. package/esm/cube/BoxType.js +21 -0
  169. package/esm/cube/BoxType.js.map +1 -0
  170. package/esm/cube/CubeConnectedChip.d.ts +9 -0
  171. package/esm/cube/CubeConnectedChip.js +22 -0
  172. package/esm/cube/CubeConnectedChip.js.map +1 -0
  173. package/esm/cube/LockStatusChip.d.ts +11 -0
  174. package/esm/cube/LockStatusChip.js +40 -0
  175. package/esm/cube/LockStatusChip.js.map +1 -0
  176. package/esm/cube/UtilizationBar.d.ts +11 -0
  177. package/esm/cube/UtilizationBar.js +38 -0
  178. package/esm/cube/UtilizationBar.js.map +1 -0
  179. package/esm/cube/accessibility.d.ts +48 -0
  180. package/esm/cube/accessibility.js +242 -0
  181. package/esm/cube/accessibility.js.map +1 -0
  182. package/esm/cube/index.d.ts +8 -0
  183. package/esm/cube/index.js +9 -0
  184. package/esm/cube/index.js.map +1 -0
  185. package/esm/data-table/DataTable.d.ts +63 -0
  186. package/esm/data-table/DataTable.js +124 -0
  187. package/esm/data-table/DataTable.js.map +1 -0
  188. package/esm/data-table/DataTableColumnSettings.d.ts +10 -0
  189. package/esm/data-table/DataTableColumnSettings.js +98 -0
  190. package/esm/data-table/DataTableColumnSettings.js.map +1 -0
  191. package/esm/data-table/DataTableHeader.d.ts +2 -0
  192. package/esm/data-table/DataTableHeader.js +6 -0
  193. package/esm/data-table/DataTableHeader.js.map +1 -0
  194. package/esm/data-table/DataTableToolbar.d.ts +2 -0
  195. package/esm/data-table/DataTableToolbar.js +6 -0
  196. package/esm/data-table/DataTableToolbar.js.map +1 -0
  197. package/esm/data-table/index.d.ts +8 -0
  198. package/esm/data-table/index.js +9 -0
  199. package/esm/data-table/index.js.map +1 -0
  200. package/esm/data-table/useDataTableColumnStorage.d.ts +5 -0
  201. package/esm/data-table/useDataTableColumnStorage.js +20 -0
  202. package/esm/data-table/useDataTableColumnStorage.js.map +1 -0
  203. package/esm/data-table/useDataTableStorage.d.ts +16 -0
  204. package/esm/data-table/useDataTableStorage.js +19 -0
  205. package/esm/data-table/useDataTableStorage.js.map +1 -0
  206. package/esm/data-table/useSpringPage.d.ts +6 -0
  207. package/esm/data-table/useSpringPage.js +18 -0
  208. package/esm/data-table/useSpringPage.js.map +1 -0
  209. package/esm/data-table/useSpringPageable.d.ts +9 -0
  210. package/esm/data-table/useSpringPageable.js +10 -0
  211. package/esm/data-table/useSpringPageable.js.map +1 -0
  212. package/esm/date-pickers/PlainAdapterCommon.d.ts +31 -0
  213. package/esm/date-pickers/PlainAdapterCommon.js +97 -0
  214. package/esm/date-pickers/PlainAdapterCommon.js.map +1 -0
  215. package/esm/date-pickers/PlainDateAdapter.d.ts +30 -0
  216. package/esm/date-pickers/PlainDateAdapter.js +114 -0
  217. package/esm/date-pickers/PlainDateAdapter.js.map +1 -0
  218. package/esm/date-pickers/PlainDatePicker.d.ts +21 -0
  219. package/esm/date-pickers/PlainDatePicker.js +26 -0
  220. package/esm/date-pickers/PlainDatePicker.js.map +1 -0
  221. package/esm/date-pickers/PlainDatePicker.spec.d.ts +1 -0
  222. package/esm/date-pickers/PlainDatePicker.spec.js +15 -0
  223. package/esm/date-pickers/PlainDatePicker.spec.js.map +1 -0
  224. package/esm/date-pickers/PlainDateTimeAdapter.d.ts +30 -0
  225. package/esm/date-pickers/PlainDateTimeAdapter.js +114 -0
  226. package/esm/date-pickers/PlainDateTimeAdapter.js.map +1 -0
  227. package/esm/date-pickers/PlainDateTimePicker.d.ts +20 -0
  228. package/esm/date-pickers/PlainDateTimePicker.js +26 -0
  229. package/esm/date-pickers/PlainDateTimePicker.js.map +1 -0
  230. package/esm/date-pickers/PlainDateTimePicker.spec.d.ts +1 -0
  231. package/esm/date-pickers/PlainDateTimePicker.spec.js +15 -0
  232. package/esm/date-pickers/PlainDateTimePicker.spec.js.map +1 -0
  233. package/esm/date-pickers/PlainTimeAdapter.d.ts +58 -0
  234. package/esm/date-pickers/PlainTimeAdapter.js +194 -0
  235. package/esm/date-pickers/PlainTimeAdapter.js.map +1 -0
  236. package/esm/date-pickers/PlainTimePicker.d.ts +16 -0
  237. package/esm/date-pickers/PlainTimePicker.js +24 -0
  238. package/esm/date-pickers/PlainTimePicker.js.map +1 -0
  239. package/esm/date-pickers/PlainTimePicker.spec.d.ts +1 -0
  240. package/esm/date-pickers/PlainTimePicker.spec.js +15 -0
  241. package/esm/date-pickers/PlainTimePicker.spec.js.map +1 -0
  242. package/esm/date-pickers/TemporalAdapter.d.ts +18 -0
  243. package/esm/date-pickers/TemporalAdapter.js +109 -0
  244. package/esm/date-pickers/TemporalAdapter.js.map +1 -0
  245. package/esm/date-pickers/TimezoneSelect.d.ts +9 -0
  246. package/esm/date-pickers/TimezoneSelect.js +357 -0
  247. package/esm/date-pickers/TimezoneSelect.js.map +1 -0
  248. package/esm/date-pickers/getFormatString.d.ts +11 -0
  249. package/esm/date-pickers/getFormatString.js +26 -0
  250. package/esm/date-pickers/getFormatString.js.map +1 -0
  251. package/esm/date-pickers/index.d.ts +5 -0
  252. package/esm/date-pickers/index.js +6 -0
  253. package/esm/date-pickers/index.js.map +1 -0
  254. package/esm/date-pickers/parse.d.ts +4 -0
  255. package/esm/date-pickers/parse.js +66 -0
  256. package/esm/date-pickers/parse.js.map +1 -0
  257. package/esm/date-pickers/timeframe-picker.d.ts +46 -0
  258. package/esm/date-pickers/timeframe-picker.js +120 -0
  259. package/esm/date-pickers/timeframe-picker.js.map +1 -0
  260. package/esm/date-pickers/useLocale.d.ts +1 -0
  261. package/esm/date-pickers/useLocale.js +6 -0
  262. package/esm/date-pickers/useLocale.js.map +1 -0
  263. package/esm/date-pickers/useRenderInput.d.ts +4 -0
  264. package/esm/date-pickers/useRenderInput.js +8 -0
  265. package/esm/date-pickers/useRenderInput.js.map +1 -0
  266. package/esm/fetch.d.ts +51 -0
  267. package/esm/fetch.js +138 -0
  268. package/esm/fetch.js.map +1 -0
  269. package/esm/filter/Filter.d.ts +38 -0
  270. package/esm/filter/Filter.js +72 -0
  271. package/esm/filter/Filter.js.map +1 -0
  272. package/esm/filter/index.d.ts +1 -0
  273. package/esm/filter/index.js +2 -0
  274. package/esm/filter/index.js.map +1 -0
  275. package/esm/formats/CompactFormat.d.ts +22 -0
  276. package/esm/formats/CompactFormat.js +21 -0
  277. package/esm/formats/CompactFormat.js.map +1 -0
  278. package/esm/formats/CompactFormat.spec.d.ts +1 -0
  279. package/esm/formats/CompactFormat.spec.js +22 -0
  280. package/esm/formats/CompactFormat.spec.js.map +1 -0
  281. package/esm/formats/CurrencyFormat.d.ts +39 -0
  282. package/esm/formats/CurrencyFormat.js +25 -0
  283. package/esm/formats/CurrencyFormat.js.map +1 -0
  284. package/esm/formats/CurrencyFormat.spec.d.ts +1 -0
  285. package/esm/formats/CurrencyFormat.spec.js +22 -0
  286. package/esm/formats/CurrencyFormat.spec.js.map +1 -0
  287. package/esm/formats/DecimalFormat.d.ts +29 -0
  288. package/esm/formats/DecimalFormat.js +22 -0
  289. package/esm/formats/DecimalFormat.js.map +1 -0
  290. package/esm/formats/DecimalFormat.spec.d.ts +1 -0
  291. package/esm/formats/DecimalFormat.spec.js +22 -0
  292. package/esm/formats/DecimalFormat.spec.js.map +1 -0
  293. package/esm/formats/DurationFormat.d.ts +23 -0
  294. package/esm/formats/DurationFormat.js +35 -0
  295. package/esm/formats/DurationFormat.js.map +1 -0
  296. package/esm/formats/DurationFormat.spec.d.ts +1 -0
  297. package/esm/formats/DurationFormat.spec.js +52 -0
  298. package/esm/formats/DurationFormat.spec.js.map +1 -0
  299. package/esm/formats/RelativeTemporalFormat.d.ts +22 -0
  300. package/esm/formats/RelativeTemporalFormat.js +57 -0
  301. package/esm/formats/RelativeTemporalFormat.js.map +1 -0
  302. package/esm/formats/RelativeTemporalFormat.spec.d.ts +1 -0
  303. package/esm/formats/RelativeTemporalFormat.spec.js +77 -0
  304. package/esm/formats/RelativeTemporalFormat.spec.js.map +1 -0
  305. package/esm/formats/SwitchableTemporalFormat.d.ts +5 -0
  306. package/esm/formats/SwitchableTemporalFormat.js +11 -0
  307. package/esm/formats/SwitchableTemporalFormat.js.map +1 -0
  308. package/esm/formats/TemporalFormat.d.ts +27 -0
  309. package/esm/formats/TemporalFormat.js +19 -0
  310. package/esm/formats/TemporalFormat.js.map +1 -0
  311. package/esm/formats/TemporalFormat.spec.d.ts +1 -0
  312. package/esm/formats/TemporalFormat.spec.js +87 -0
  313. package/esm/formats/TemporalFormat.spec.js.map +1 -0
  314. package/esm/formats/TemporalRangeFormat.d.ts +30 -0
  315. package/esm/formats/TemporalRangeFormat.js +17 -0
  316. package/esm/formats/TemporalRangeFormat.js.map +1 -0
  317. package/esm/formats/TemporalRangeFormat.spec.d.ts +1 -0
  318. package/esm/formats/TemporalRangeFormat.spec.js +87 -0
  319. package/esm/formats/TemporalRangeFormat.spec.js.map +1 -0
  320. package/esm/formats/index.d.ts +8 -0
  321. package/esm/formats/index.js +9 -0
  322. package/esm/formats/index.js.map +1 -0
  323. package/esm/formats/types.d.ts +2 -0
  324. package/esm/formats/types.js +2 -0
  325. package/esm/formats/types.js.map +1 -0
  326. package/esm/formats/useDateTimeFormat.d.ts +2 -0
  327. package/esm/formats/useDateTimeFormat.js +7 -0
  328. package/esm/formats/useDateTimeFormat.js.map +1 -0
  329. package/esm/formats/useNumberFormat.d.ts +1 -0
  330. package/esm/formats/useNumberFormat.js +6 -0
  331. package/esm/formats/useNumberFormat.js.map +1 -0
  332. package/esm/formats/useRelativeTimeFormat.d.ts +1 -0
  333. package/esm/formats/useRelativeTimeFormat.js +6 -0
  334. package/esm/formats/useRelativeTimeFormat.js.map +1 -0
  335. package/esm/forms/EditForm.d.ts +13 -0
  336. package/esm/forms/EditForm.js +22 -0
  337. package/esm/forms/EditForm.js.map +1 -0
  338. package/esm/forms/SearchForm.d.ts +7 -0
  339. package/esm/forms/SearchForm.js +36 -0
  340. package/esm/forms/SearchForm.js.map +1 -0
  341. package/esm/forms/SubmitButton.d.ts +9 -0
  342. package/esm/forms/SubmitButton.js +28 -0
  343. package/esm/forms/SubmitButton.js.map +1 -0
  344. package/esm/forms/index.d.ts +4 -0
  345. package/esm/forms/index.js +5 -0
  346. package/esm/forms/index.js.map +1 -0
  347. package/esm/forms/useFormSubmit.d.ts +12 -0
  348. package/esm/forms/useFormSubmit.js +28 -0
  349. package/esm/forms/useFormSubmit.js.map +1 -0
  350. package/esm/getNavigatorLanguages.d.ts +5 -0
  351. package/esm/getNavigatorLanguages.js +11 -0
  352. package/esm/getNavigatorLanguages.js.map +1 -0
  353. package/esm/getSupportedFormatLocale.d.ts +19 -0
  354. package/esm/getSupportedFormatLocale.js +21 -0
  355. package/esm/getSupportedFormatLocale.js.map +1 -0
  356. package/esm/help/HelpButton.d.ts +12 -0
  357. package/esm/help/HelpButton.js +74 -0
  358. package/esm/help/HelpButton.js.map +1 -0
  359. package/esm/help/HelpDrawer.d.ts +3 -0
  360. package/esm/help/HelpDrawer.js +48 -0
  361. package/esm/help/HelpDrawer.js.map +1 -0
  362. package/esm/help/HelpSettingsContext.d.ts +26 -0
  363. package/esm/help/HelpSettingsContext.js +94 -0
  364. package/esm/help/HelpSettingsContext.js.map +1 -0
  365. package/esm/help/index.d.ts +3 -0
  366. package/esm/help/index.js +4 -0
  367. package/esm/help/index.js.map +1 -0
  368. package/esm/icons.d.ts +21 -0
  369. package/esm/icons.js +22 -0
  370. package/esm/icons.js.map +1 -0
  371. package/esm/index.d.ts +34 -0
  372. package/esm/index.js +35 -0
  373. package/esm/index.js.map +1 -0
  374. package/esm/layout/ErrorBoundary.d.ts +46 -0
  375. package/esm/layout/ErrorBoundary.js +186 -0
  376. package/esm/layout/ErrorBoundary.js.map +1 -0
  377. package/esm/layout/NotFound.d.ts +9 -0
  378. package/esm/layout/NotFound.js +26 -0
  379. package/esm/layout/NotFound.js.map +1 -0
  380. package/esm/layout/NotFoundSvg.d.ts +2 -0
  381. package/esm/layout/NotFoundSvg.js +37 -0
  382. package/esm/layout/NotFoundSvg.js.map +1 -0
  383. package/esm/layout/UserNav.d.ts +15 -0
  384. package/esm/layout/UserNav.js +50 -0
  385. package/esm/layout/UserNav.js.map +1 -0
  386. package/esm/layout/index.d.ts +5 -0
  387. package/esm/layout/index.js +6 -0
  388. package/esm/layout/index.js.map +1 -0
  389. package/esm/layout/layout-context.d.ts +9 -0
  390. package/esm/layout/layout-context.js +23 -0
  391. package/esm/layout/layout-context.js.map +1 -0
  392. package/esm/layout/page-title.d.ts +7 -0
  393. package/esm/layout/page-title.js +41 -0
  394. package/esm/layout/page-title.js.map +1 -0
  395. package/esm/list/List.d.ts +14 -0
  396. package/esm/list/List.js +25 -0
  397. package/esm/list/List.js.map +1 -0
  398. package/esm/list/SkeletonListItem.d.ts +14 -0
  399. package/esm/list/SkeletonListItem.js +11 -0
  400. package/esm/list/SkeletonListItem.js.map +1 -0
  401. package/esm/list/index.d.ts +1 -0
  402. package/esm/list/index.js +2 -0
  403. package/esm/list/index.js.map +1 -0
  404. package/esm/localization.d.ts +140 -0
  405. package/esm/localization.js +200 -0
  406. package/esm/localization.js.map +1 -0
  407. package/esm/logo/Logo.d.ts +7 -0
  408. package/esm/logo/Logo.js +29 -0
  409. package/esm/logo/Logo.js.map +1 -0
  410. package/esm/logo/VCAppLogo.d.ts +7 -0
  411. package/esm/logo/VCAppLogo.js +28 -0
  412. package/esm/logo/VCAppLogo.js.map +1 -0
  413. package/esm/logo/VCLogo.d.ts +4 -0
  414. package/esm/logo/VCLogo.js +33 -0
  415. package/esm/logo/VCLogo.js.map +1 -0
  416. package/esm/logo/VCLogoIcon.d.ts +4 -0
  417. package/esm/logo/VCLogoIcon.js +36 -0
  418. package/esm/logo/VCLogoIcon.js.map +1 -0
  419. package/esm/logo/index.d.ts +4 -0
  420. package/esm/logo/index.js +5 -0
  421. package/esm/logo/index.js.map +1 -0
  422. package/esm/splash/index.d.ts +3 -0
  423. package/esm/splash/index.js +37 -0
  424. package/esm/splash/index.js.map +1 -0
  425. package/esm/spring.d.ts +14 -0
  426. package/esm/spring.js +2 -0
  427. package/esm/spring.js.map +1 -0
  428. package/esm/storage/MemoryStorage.d.ts +7 -0
  429. package/esm/storage/MemoryStorage.js +18 -0
  430. package/esm/storage/MemoryStorage.js.map +1 -0
  431. package/esm/storage/index.d.ts +2 -0
  432. package/esm/storage/index.js +3 -0
  433. package/esm/storage/index.js.map +1 -0
  434. package/esm/storage/storage.d.ts +16 -0
  435. package/esm/storage/storage.js +87 -0
  436. package/esm/storage/storage.js.map +1 -0
  437. package/esm/storage/useStorage.d.ts +1 -0
  438. package/esm/storage/useStorage.js +29 -0
  439. package/esm/storage/useStorage.js.map +1 -0
  440. package/esm/tabs/Tabs.d.ts +10 -0
  441. package/esm/tabs/Tabs.js +95 -0
  442. package/esm/tabs/Tabs.js.map +1 -0
  443. package/esm/tabs/index.d.ts +1 -0
  444. package/esm/tabs/index.js +2 -0
  445. package/esm/tabs/index.js.map +1 -0
  446. package/esm/temporal/index.d.ts +2 -0
  447. package/esm/temporal/index.js +3 -0
  448. package/esm/temporal/index.js.map +1 -0
  449. package/esm/temporal/parse.d.ts +4 -0
  450. package/esm/temporal/parse.js +25 -0
  451. package/esm/temporal/parse.js.map +1 -0
  452. package/esm/temporal/polyfill.d.ts +34 -0
  453. package/esm/temporal/polyfill.js +10 -0
  454. package/esm/temporal/polyfill.js.map +1 -0
  455. package/esm/utils/defined.d.ts +1 -0
  456. package/esm/utils/defined.js +4 -0
  457. package/esm/utils/defined.js.map +1 -0
  458. package/esm/utils/index.d.ts +3 -0
  459. package/esm/utils/index.js +4 -0
  460. package/esm/utils/index.js.map +1 -0
  461. package/esm/utils/useFlag.d.ts +1 -0
  462. package/esm/utils/useFlag.js +9 -0
  463. package/esm/utils/useFlag.js.map +1 -0
  464. package/esm/utils/useIsMounted.d.ts +1 -0
  465. package/esm/utils/useIsMounted.js +12 -0
  466. package/esm/utils/useIsMounted.js.map +1 -0
  467. package/esm/view/View.d.ts +9 -0
  468. package/esm/view/View.js +22 -0
  469. package/esm/view/View.js.map +1 -0
  470. package/esm/view/ViewHeader.d.ts +10 -0
  471. package/esm/view/ViewHeader.js +15 -0
  472. package/esm/view/ViewHeader.js.map +1 -0
  473. package/esm/view/index.d.ts +2 -0
  474. package/esm/view/index.js +3 -0
  475. package/esm/view/index.js.map +1 -0
  476. package/package.json +72 -0
  477. package/src/AppShell/AppShell.tsx +165 -0
  478. package/src/AppShell/index.tsx +1 -0
  479. package/src/ErrorAlert.tsx +71 -0
  480. package/src/Input/ActionsMenu.tsx +102 -0
  481. package/src/Input/Checkbox.tsx +33 -0
  482. package/src/Input/EmailSenderField.tsx +64 -0
  483. package/src/Input/NumberField.tsx +127 -0
  484. package/src/Input/RadioGroup.tsx +37 -0
  485. package/src/Input/Select.tsx +33 -0
  486. package/src/Input/Selector.tsx +21 -0
  487. package/src/Input/Switch.tsx +33 -0
  488. package/src/Input/TextField.tsx +69 -0
  489. package/src/Input/UrlUploadField.tsx +84 -0
  490. package/src/Input/index.ts +9 -0
  491. package/src/LanguageSwitcher/LanguageSwitcher.tsx +63 -0
  492. package/src/LanguageSwitcher/index.ts +1 -0
  493. package/src/Paging/Paging.ts +77 -0
  494. package/src/Paging/index.ts +1 -0
  495. package/src/VCThemeProvider/JetbrainsMonoFont.tsx +55 -0
  496. package/src/VCThemeProvider/RobotoFont.tsx +52 -0
  497. package/src/VCThemeProvider/ThemeModeSwitcher.tsx +23 -0
  498. package/src/VCThemeProvider/VCThemeProvider.tsx +232 -0
  499. package/src/VCThemeProvider/code-colors.ts +34 -0
  500. package/src/VCThemeProvider/files.d.ts +2 -0
  501. package/src/VCThemeProvider/index.ts +5 -0
  502. package/src/audit/AuditChanges.tsx +82 -0
  503. package/src/audit/AuditTimeline.tsx +25 -0
  504. package/src/audit/AuditTimelineItem.tsx +75 -0
  505. package/src/audit/index.ts +4 -0
  506. package/src/audit/types.ts +46 -0
  507. package/src/breadcrumbs.tsx +27 -0
  508. package/src/code/Code.tsx +53 -0
  509. package/src/code/CodeBlock.tsx +15 -0
  510. package/src/code/Json.tsx +73 -0
  511. package/src/code/index.ts +3 -0
  512. package/src/confirm/ConfirmButton.tsx +69 -0
  513. package/src/confirm/ConfirmDialog.tsx +68 -0
  514. package/src/confirm/ConfirmIconButton.tsx +62 -0
  515. package/src/confirm/ConfirmMenuItem.tsx +66 -0
  516. package/src/confirm/index.ts +4 -0
  517. package/src/container/ContainerLayout.tsx +40 -0
  518. package/src/container/ContainerSettingsContext.tsx +77 -0
  519. package/src/container/ContainerWidthControl.tsx +20 -0
  520. package/src/container/index.ts +3 -0
  521. package/src/content-table/ContentTable.tsx +214 -0
  522. package/src/content-table/UndrawEmpty.tsx +285 -0
  523. package/src/content-table/index.ts +1 -0
  524. package/src/country/countries.ts +268 -0
  525. package/src/country/country-select.tsx +48 -0
  526. package/src/country/index.ts +5 -0
  527. package/src/country/locale-select.tsx +43 -0
  528. package/src/country/locales.ts +192 -0
  529. package/src/country/phone-prefix-select.tsx +50 -0
  530. package/src/cube/BoxFeatures.tsx +91 -0
  531. package/src/cube/BoxMaintenanceChip.tsx +33 -0
  532. package/src/cube/BoxNumber.tsx +10 -0
  533. package/src/cube/BoxType.tsx +22 -0
  534. package/src/cube/CubeConnectedChip.tsx +16 -0
  535. package/src/cube/LockStatusChip.tsx +54 -0
  536. package/src/cube/UtilizationBar.tsx +94 -0
  537. package/src/cube/accessibility.tsx +422 -0
  538. package/src/cube/index.tsx +8 -0
  539. package/src/data-table/DataTable.tsx +338 -0
  540. package/src/data-table/DataTableColumnSettings.tsx +204 -0
  541. package/src/data-table/DataTableHeader.tsx +10 -0
  542. package/src/data-table/DataTableToolbar.tsx +10 -0
  543. package/src/data-table/index.tsx +8 -0
  544. package/src/data-table/useDataTableColumnStorage.ts +26 -0
  545. package/src/data-table/useDataTableStorage.ts +43 -0
  546. package/src/data-table/useSpringPage.ts +21 -0
  547. package/src/data-table/useSpringPageable.ts +25 -0
  548. package/src/date-pickers/PlainAdapterCommon.ts +125 -0
  549. package/src/date-pickers/PlainDateAdapter.spec.ts +50 -0
  550. package/src/date-pickers/PlainDateAdapter.ts +139 -0
  551. package/src/date-pickers/PlainDatePicker.spec.tsx +22 -0
  552. package/src/date-pickers/PlainDatePicker.tsx +73 -0
  553. package/src/date-pickers/PlainDateTimeAdapter.spec.ts +50 -0
  554. package/src/date-pickers/PlainDateTimeAdapter.ts +140 -0
  555. package/src/date-pickers/PlainDateTimePicker.spec.tsx +22 -0
  556. package/src/date-pickers/PlainDateTimePicker.tsx +65 -0
  557. package/src/date-pickers/PlainTimeAdapter.ts +247 -0
  558. package/src/date-pickers/PlainTimePicker.spec.tsx +22 -0
  559. package/src/date-pickers/PlainTimePicker.tsx +45 -0
  560. package/src/date-pickers/TemporalAdapter.ts +150 -0
  561. package/src/date-pickers/TimezoneSelect.tsx +387 -0
  562. package/src/date-pickers/getFormatString.ts +38 -0
  563. package/src/date-pickers/index.ts +5 -0
  564. package/src/date-pickers/parse.spec.ts +43 -0
  565. package/src/date-pickers/parse.ts +72 -0
  566. package/src/date-pickers/timeframe-picker.tsx +202 -0
  567. package/src/date-pickers/useLocale.ts +6 -0
  568. package/src/date-pickers/useRenderInput.tsx +20 -0
  569. package/src/fetch.spec.ts +85 -0
  570. package/src/fetch.ts +165 -0
  571. package/src/filter/Filter.tsx +194 -0
  572. package/src/filter/index.ts +1 -0
  573. package/src/formats/CompactFormat.spec.tsx +25 -0
  574. package/src/formats/CompactFormat.tsx +48 -0
  575. package/src/formats/CurrencyFormat.spec.tsx +25 -0
  576. package/src/formats/CurrencyFormat.tsx +77 -0
  577. package/src/formats/DecimalFormat.spec.tsx +25 -0
  578. package/src/formats/DecimalFormat.tsx +59 -0
  579. package/src/formats/DurationFormat.spec.tsx +57 -0
  580. package/src/formats/DurationFormat.tsx +72 -0
  581. package/src/formats/RelativeTemporalFormat.spec.tsx +84 -0
  582. package/src/formats/RelativeTemporalFormat.tsx +86 -0
  583. package/src/formats/SwitchableTemporalFormat.tsx +17 -0
  584. package/src/formats/TemporalFormat.spec.tsx +110 -0
  585. package/src/formats/TemporalFormat.tsx +58 -0
  586. package/src/formats/TemporalRangeFormat.spec.tsx +159 -0
  587. package/src/formats/TemporalRangeFormat.tsx +62 -0
  588. package/src/formats/index.ts +8 -0
  589. package/src/formats/types.ts +4 -0
  590. package/src/formats/useDateTimeFormat.ts +7 -0
  591. package/src/formats/useNumberFormat.ts +6 -0
  592. package/src/formats/useRelativeTimeFormat.ts +6 -0
  593. package/src/forms/EditForm.tsx +69 -0
  594. package/src/forms/SearchForm.tsx +51 -0
  595. package/src/forms/SubmitButton.tsx +34 -0
  596. package/src/forms/index.ts +4 -0
  597. package/src/forms/useFormSubmit.tsx +28 -0
  598. package/src/getNavigatorLanguages.ts +11 -0
  599. package/src/getSupportedFormatLocale.ts +24 -0
  600. package/src/help/HelpButton.tsx +134 -0
  601. package/src/help/HelpDrawer.tsx +65 -0
  602. package/src/help/HelpSettingsContext.tsx +178 -0
  603. package/src/help/index.ts +3 -0
  604. package/src/icons.ts +23 -0
  605. package/src/index.ts +34 -0
  606. package/src/layout/ErrorBoundary.tsx +232 -0
  607. package/src/layout/NotFound.tsx +51 -0
  608. package/src/layout/NotFoundSvg.tsx +172 -0
  609. package/src/layout/UserNav.tsx +107 -0
  610. package/src/layout/index.ts +5 -0
  611. package/src/layout/layout-context.tsx +40 -0
  612. package/src/layout/page-title.tsx +33 -0
  613. package/src/list/List.tsx +40 -0
  614. package/src/list/SkeletonListItem.tsx +50 -0
  615. package/src/list/index.tsx +1 -0
  616. package/src/localization.tsx +404 -0
  617. package/src/logo/Logo.tsx +35 -0
  618. package/src/logo/VCAppLogo.tsx +28 -0
  619. package/src/logo/VCLogo.tsx +56 -0
  620. package/src/logo/VCLogoIcon.tsx +55 -0
  621. package/src/logo/V_C_LOGO.svg +1 -0
  622. package/src/logo/V_C_LOGO_ICON.svg +1 -0
  623. package/src/logo/V_C_LOGO_ICON_WHITE.svg +1 -0
  624. package/src/logo/V_C_LOGO_WHITE.svg +1 -0
  625. package/src/logo/index.tsx +4 -0
  626. package/src/splash/index.tsx +34 -0
  627. package/src/splash/template.html +86 -0
  628. package/src/spring.ts +15 -0
  629. package/src/storage/MemoryStorage.ts +21 -0
  630. package/src/storage/index.ts +2 -0
  631. package/src/storage/storage.ts +97 -0
  632. package/src/storage/useStorage.ts +35 -0
  633. package/src/tabs/Tabs.tsx +187 -0
  634. package/src/tabs/index.ts +1 -0
  635. package/src/temporal/index.ts +2 -0
  636. package/src/temporal/parse.ts +29 -0
  637. package/src/temporal/polyfill.ts +36 -0
  638. package/src/utils/defined.ts +4 -0
  639. package/src/utils/index.ts +3 -0
  640. package/src/utils/useFlag.ts +9 -0
  641. package/src/utils/useIsMounted.ts +12 -0
  642. package/src/view/View.tsx +22 -0
  643. package/src/view/ViewHeader.tsx +35 -0
  644. package/src/view/index.ts +2 -0
@@ -0,0 +1,173 @@
1
+ import React, { createContext, useCallback, useContext, useMemo } from "react";
2
+ import { createTheme, CssBaseline, decomposeColor, ThemeProvider, useMediaQuery } from "@mui/material";
3
+ import { useStorage } from "../storage";
4
+ import { RobotoFont } from "./RobotoFont";
5
+ import deepmerge from "deepmerge";
6
+ import { JetbrainsMonoFont } from "./JetbrainsMonoFont";
7
+ const DEFAULT_PRIMARY = "#ff6a00";
8
+ const DEFAULT_SECONDARY = "#009dd8";
9
+ const SUCCESS = {
10
+ light: "#429945",
11
+ dark: "#58cc5c"
12
+ };
13
+ const WARNING = {
14
+ light: "#ccaa00",
15
+ dark: "#e6bf00"
16
+ };
17
+ const ERROR = {
18
+ light: "#aa0000",
19
+ dark: "#e62e2e"
20
+ };
21
+ const INFO = {
22
+ light: "#082480",
23
+ dark: "#294fcc"
24
+ };
25
+ const BACKGROUND = {
26
+ light: "#fffaf7",
27
+ dark: "#15161a"
28
+ };
29
+ const PAPER = {
30
+ light: "#ffffff",
31
+ dark: "#282b33"
32
+ };
33
+ const TEXT = {
34
+ light: "#282b33",
35
+ dark: "#fdfaf7"
36
+ };
37
+ const ThemeContext = createContext({
38
+ mode: "light",
39
+ setMode: () => void 0,
40
+ });
41
+ export function VCThemeProvider({ branding, children }) {
42
+ // Determine default mode based on user preference
43
+ const userPrefersDark = useMediaQuery("(prefers-color-scheme: dark)");
44
+ const defaultMode = useMemo(() => userPrefersDark ? "dark" : "light", [userPrefersDark]);
45
+ // Allow overriding the default mode
46
+ const [modeOverride, setModeOverride] = useStorage("variocube-palette-mode", null);
47
+ // Select actual mode to use
48
+ const mode = useMemo(() => modeOverride !== null && modeOverride !== void 0 ? modeOverride : defaultMode, [modeOverride, defaultMode]);
49
+ // Allows setting the mode override. Clears the storage item if the default mode is set.
50
+ const setMode = useCallback((newMode) => {
51
+ setModeOverride(newMode != defaultMode ? newMode : null);
52
+ }, [defaultMode]);
53
+ const { colorPrimary, colorSecondary, logoLightUrl, logoDarkUrl, logoPaddingX, logoPaddingY, } = branding !== null && branding !== void 0 ? branding : {};
54
+ const theme = useMemo(() => {
55
+ const themeOptions = {
56
+ palette: {
57
+ mode,
58
+ primary: {
59
+ main: sanitizeColor(colorPrimary, DEFAULT_PRIMARY),
60
+ },
61
+ secondary: {
62
+ main: sanitizeColor(colorSecondary, DEFAULT_SECONDARY),
63
+ },
64
+ success: {
65
+ main: SUCCESS[mode],
66
+ },
67
+ warning: {
68
+ main: WARNING[mode],
69
+ },
70
+ error: {
71
+ main: ERROR[mode],
72
+ },
73
+ info: {
74
+ main: INFO[mode],
75
+ },
76
+ text: {
77
+ primary: TEXT[mode],
78
+ },
79
+ background: {
80
+ default: BACKGROUND[mode],
81
+ paper: PAPER[mode]
82
+ }
83
+ },
84
+ typography: {
85
+ h1: {
86
+ fontSize: 46,
87
+ fontWeight: 300,
88
+ },
89
+ h2: {
90
+ fontSize: 29,
91
+ fontWeight: 500,
92
+ },
93
+ h3: {
94
+ fontSize: 24,
95
+ fontWeight: 500,
96
+ },
97
+ h4: {
98
+ fontSize: 20,
99
+ fontWeight: 500,
100
+ },
101
+ h5: {
102
+ fontSize: 18,
103
+ fontWeight: 500,
104
+ },
105
+ h6: {
106
+ fontSize: 18,
107
+ fontWeight: 500,
108
+ },
109
+ overline: {
110
+ fontWeight: 500,
111
+ }
112
+ },
113
+ components: {
114
+ MuiLink: {
115
+ defaultProps: {
116
+ underline: "hover"
117
+ }
118
+ },
119
+ MuiPaper: {
120
+ styleOverrides: {
121
+ root: {
122
+ backgroundImage: "unset"
123
+ }
124
+ }
125
+ }
126
+ }
127
+ };
128
+ return createTheme(deepmerge(themeOptions, (branding === null || branding === void 0 ? void 0 : branding.muiThemeOptions) || {}));
129
+ }, [mode, branding]);
130
+ const customLogo = useMemo(() => {
131
+ const logoUrl = mode == "light" ? (logoLightUrl || logoDarkUrl) : (logoDarkUrl || logoLightUrl);
132
+ if (logoUrl) {
133
+ return {
134
+ url: logoUrl,
135
+ paddingX: logoPaddingX,
136
+ paddingY: logoPaddingY
137
+ };
138
+ }
139
+ }, [logoLightUrl, logoDarkUrl, mode, logoPaddingX, logoPaddingY]);
140
+ return (React.createElement(ThemeProvider, { theme: theme },
141
+ React.createElement(ThemeContext.Provider, { value: { mode, setMode, customLogo } },
142
+ React.createElement(CssBaseline, null),
143
+ React.createElement(RobotoFont, null),
144
+ React.createElement(JetbrainsMonoFont, null),
145
+ children)));
146
+ }
147
+ function sanitizeColor(color, fallback) {
148
+ try {
149
+ if (color) {
150
+ decomposeColor(color);
151
+ return color;
152
+ }
153
+ }
154
+ catch (error) {
155
+ }
156
+ return fallback;
157
+ }
158
+ export function usePaletteMode() {
159
+ const value = useContext(ThemeContext);
160
+ if (!value) {
161
+ throw new Error("Could not find theme context. Are you missing a VCThemeProvider in your component tree?");
162
+ }
163
+ const { mode, setMode } = value;
164
+ return { mode, setMode };
165
+ }
166
+ export function useCustomLogo() {
167
+ const value = useContext(ThemeContext);
168
+ if (!value) {
169
+ throw new Error("Could not find theme context. Are you missing a VCThemeProvider in your component tree?");
170
+ }
171
+ return value.customLogo;
172
+ }
173
+ //# sourceMappingURL=VCThemeProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCThemeProvider.js","sourceRoot":"","sources":["../../src/VCThemeProvider/VCThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAqB,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAA6B,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAClI,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,eAAe,GAAG,SAAS,CAAC;AAClC,MAAM,iBAAiB,GAAG,SAAS,CAAC;AAEpC,MAAM,OAAO,GAAG;IACZ,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;CAClB,CAAA;AAED,MAAM,OAAO,GAAG;IACZ,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;CAClB,CAAC;AAEF,MAAM,KAAK,GAAG;IACV,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;CAClB,CAAA;AAED,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CACZ,CACnB,CAAA;AACL,CAAC;AAED,SAAS,aAAa,CAAC,KAAyB,EAAE,QAAgB;IACjE,IAAI,CAAC;QACJ,IAAI,KAAK,EAAE,CAAC;YACX,cAAc,CAAC,KAAK,CAAC,CAAC;YACtB,OAAO,KAAK,CAAC;QACd,CAAC;IACF,CAAC;IACD,OAAO,KAAK,EAAE,CAAC;IACf,CAAC;IACD,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,cAAc;IAC1B,MAAM,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IACvC,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,yFAAyF,CAAC,CAAC;IAC/G,CAAC;IACJ,MAAM,EAAC,IAAI,EAAE,OAAO,EAAC,GAAG,KAAK,CAAC;IAC3B,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,aAAa;IAC5B,MAAM,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IACvC,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,yFAAyF,CAAC,CAAC;IAC5G,CAAC;IACD,OAAO,KAAK,CAAC,UAAU,CAAC;AACzB,CAAC"}
@@ -0,0 +1,108 @@
1
+ export declare const CodeColors: {
2
+ readonly literal: {
3
+ 50: "#fff3e0";
4
+ 100: "#ffe0b2";
5
+ 200: "#ffcc80";
6
+ 300: "#ffb74d";
7
+ 400: "#ffa726";
8
+ 500: "#ff9800";
9
+ 600: "#fb8c00";
10
+ 700: "#f57c00";
11
+ 800: "#ef6c00";
12
+ 900: "#e65100";
13
+ A100: "#ffd180";
14
+ A200: "#ffab40";
15
+ A400: "#ff9100";
16
+ A700: "#ff6d00";
17
+ };
18
+ readonly number: {
19
+ 50: "#e1f5fe";
20
+ 100: "#b3e5fc";
21
+ 200: "#81d4fa";
22
+ 300: "#4fc3f7";
23
+ 400: "#29b6f6";
24
+ 500: "#03a9f4";
25
+ 600: "#039be5";
26
+ 700: "#0288d1";
27
+ 800: "#0277bd";
28
+ 900: "#01579b";
29
+ A100: "#80d8ff";
30
+ A200: "#40c4ff";
31
+ A400: "#00b0ff";
32
+ A700: "#0091ea";
33
+ };
34
+ readonly string: {
35
+ 50: "#e8f5e9";
36
+ 100: "#c8e6c9";
37
+ 200: "#a5d6a7";
38
+ 300: "#81c784";
39
+ 400: "#66bb6a";
40
+ 500: "#4caf50";
41
+ 600: "#43a047";
42
+ 700: "#388e3c";
43
+ 800: "#2e7d32";
44
+ 900: "#1b5e20";
45
+ A100: "#b9f6ca";
46
+ A200: "#69f0ae";
47
+ A400: "#00e676";
48
+ A700: "#00c853";
49
+ };
50
+ readonly key: {
51
+ 50: "#f3e5f5";
52
+ 100: "#e1bee7";
53
+ 200: "#ce93d8";
54
+ 300: "#ba68c8";
55
+ 400: "#ab47bc";
56
+ 500: "#9c27b0";
57
+ 600: "#8e24aa";
58
+ 700: "#7b1fa2";
59
+ 800: "#6a1b9a";
60
+ 900: "#4a148c";
61
+ A100: "#ea80fc";
62
+ A200: "#e040fb";
63
+ A400: "#d500f9";
64
+ A700: "#aa00ff";
65
+ };
66
+ readonly punctuation: {
67
+ 50: "#fafafa";
68
+ 100: "#f5f5f5";
69
+ 200: "#eeeeee";
70
+ 300: "#e0e0e0";
71
+ 400: "#bdbdbd";
72
+ 500: "#9e9e9e";
73
+ 600: "#757575";
74
+ 700: "#616161";
75
+ 800: "#424242";
76
+ 900: "#212121";
77
+ A100: "#f5f5f5";
78
+ A200: "#eeeeee";
79
+ A400: "#bdbdbd";
80
+ A700: "#616161";
81
+ };
82
+ readonly className: {
83
+ 50: "#e0f2f1";
84
+ 100: "#b2dfdb";
85
+ 200: "#80cbc4";
86
+ 300: "#4db6ac";
87
+ 400: "#26a69a";
88
+ 500: "#009688";
89
+ 600: "#00897b";
90
+ 700: "#00796b";
91
+ 800: "#00695c";
92
+ 900: "#004d40";
93
+ A100: "#a7ffeb";
94
+ A200: "#64ffda";
95
+ A400: "#1de9b6";
96
+ A700: "#00bfa5";
97
+ };
98
+ };
99
+ export declare function useThemeShade(): 300 | 700;
100
+ export declare function useCodeColors(): {
101
+ keyword: string;
102
+ string: string;
103
+ number: string;
104
+ key: string;
105
+ className: string;
106
+ literal: string;
107
+ punctuation: string;
108
+ };
@@ -0,0 +1,26 @@
1
+ import { useTheme } from "@mui/material";
2
+ import { green, grey, lightBlue, orange, purple, teal } from "@mui/material/colors";
3
+ export const CodeColors = {
4
+ literal: orange,
5
+ number: lightBlue,
6
+ string: green,
7
+ key: purple,
8
+ punctuation: grey,
9
+ className: teal,
10
+ };
11
+ export function useThemeShade() {
12
+ const theme = useTheme();
13
+ return theme.palette.mode == "light" ? 700 : 300;
14
+ }
15
+ export function useCodeColors() {
16
+ const theme = useTheme();
17
+ const shade = useThemeShade();
18
+ const colors = Object.entries(CodeColors)
19
+ .map(([key, value]) => [key, value[shade]])
20
+ .reduce((acc, [key, value]) => {
21
+ acc[key] = value;
22
+ return acc;
23
+ }, {});
24
+ return Object.assign(Object.assign({}, colors), { keyword: theme.palette.primary.main });
25
+ }
26
+ //# sourceMappingURL=code-colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-colors.js","sourceRoot":"","sources":["../../src/VCThemeProvider/code-colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,sBAAsB,CAAC;AAElF,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,OAAO,EAAE,MAAM;IACf,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,KAAK;IACb,GAAG,EAAE,MAAM;IACX,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,IAAI;CACN,CAAC;AAIX,MAAM,UAAU,aAAa;IAC5B,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,aAAa;IAC5B,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,aAAa,EAAE,CAAC;IAC9B,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;SACvC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,GAAgB,EAAE,KAAK,CAAC,KAAK,CAAC,CAAU,CAAC;SAChE,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC7B,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACjB,OAAO,GAAG,CAAC;IACZ,CAAC,EAAE,EAA+B,CAAC,CAAC;IAErC,uCACI,MAAM,KACT,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,IAClC;AACH,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./code-colors";
2
+ export * from "./JetbrainsMonoFont";
3
+ export * from "./RobotoFont";
4
+ export * from "./ThemeModeSwitcher";
5
+ export * from "./VCThemeProvider";
@@ -0,0 +1,6 @@
1
+ export * from "./code-colors";
2
+ export * from "./JetbrainsMonoFont";
3
+ export * from "./RobotoFont";
4
+ export * from "./ThemeModeSwitcher";
5
+ export * from "./VCThemeProvider";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/VCThemeProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { AppAuditLogEntry, JsonPatch } from "./types";
3
+ export declare function AuditChanges({ data, patch }: Pick<AppAuditLogEntry, "data" | "patch">): JSX.Element;
4
+ export declare function AuditPatch({ patch }: {
5
+ patch: JsonPatch;
6
+ }): JSX.Element;
7
+ export declare function AuditData({ data }: {
8
+ data: any;
9
+ }): JSX.Element;
@@ -0,0 +1,43 @@
1
+ import { Add, ChangeCircleOutlined, Remove } from "@mui/icons-material";
2
+ import { Box, Chip, List, ListItem, ListItemIcon, ListItemText, Stack } from "@mui/material";
3
+ import React, { Fragment } from "react";
4
+ import { Code } from "../code/Code";
5
+ import { CodeBlock } from "../code/CodeBlock";
6
+ import { Json } from "../code/Json";
7
+ export function AuditChanges({ data, patch }) {
8
+ return (React.createElement(Stack, { spacing: 2 },
9
+ patch && React.createElement(AuditPatch, { patch: patch }),
10
+ data && React.createElement(AuditData, { data: data })));
11
+ }
12
+ export function AuditPatch({ patch }) {
13
+ return (React.createElement(List, { dense: true, disablePadding: true }, patch.map(item => (React.createElement(ListItem, { disablePadding: true },
14
+ React.createElement(ListItemIcon, null,
15
+ React.createElement(Chip, { icon: getIcon(item.op), label: item.path, sx: {
16
+ fontFamily: "Jetbrains Mono"
17
+ } })),
18
+ React.createElement(ListItemText, { primary: React.createElement(Box, { pl: 1 },
19
+ item.op == "replace" && (React.createElement(Fragment, null,
20
+ React.createElement(Box, { sx: { color: "success" } },
21
+ React.createElement(Value, { value: item.value })),
22
+ React.createElement(Box, { color: "error" },
23
+ React.createElement("s", null,
24
+ React.createElement(Value, { value: item.fromValue }))))),
25
+ item.op == "add" && (React.createElement("div", null,
26
+ React.createElement(Value, { value: item.value })))) }))))));
27
+ }
28
+ export function AuditData({ data }) {
29
+ return (React.createElement(CodeBlock, null,
30
+ React.createElement(Json, { data: data })));
31
+ }
32
+ function getIcon(op) {
33
+ switch (op) {
34
+ case "add": return React.createElement(Add, null);
35
+ case "remove": return React.createElement(Remove, null);
36
+ case "replace": return React.createElement(ChangeCircleOutlined, null);
37
+ default: return;
38
+ }
39
+ }
40
+ function Value({ value }) {
41
+ return (React.createElement(Code, null, JSON.stringify(value, null, 4)));
42
+ }
43
+ //# sourceMappingURL=AuditChanges.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditChanges.js","sourceRoot":"","sources":["../../src/audit/AuditChanges.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,oBAAoB,EAAE,MAAM,EAAC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AAC3F,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAElC,MAAM,UAAU,YAAY,CAAC,EAAC,IAAI,EAAE,KAAK,EAA2C;IACnF,OAAO,CACN,oBAAC,KAAK,IAAC,OAAO,EAAE,CAAC;QACf,KAAK,IAAI,oBAAC,UAAU,IAAC,KAAK,EAAE,KAAK,GAAI;QACrC,IAAI,IAAI,oBAAC,SAAS,IAAC,IAAI,EAAE,IAAI,GAAG,CAC1B,CACR,CAAC;AACH,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAC,KAAK,EAAuB;IACvD,OAAO,CACN,oBAAC,IAAI,IAAC,KAAK,QAAC,cAAc,UACxB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAClB,oBAAC,QAAQ,IAAC,cAAc;QACvB,oBAAC,YAAY;YACZ,oBAAC,IAAI,IACJ,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CA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,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CACzB,CACP,CAAC;AACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { PropsWithChildren } from "react";
2
+ interface AuditTimelineProps {
3
+ loading?: boolean;
4
+ }
5
+ export declare function AuditTimeline({ loading, children }: PropsWithChildren<AuditTimelineProps>): JSX.Element;
6
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { Timeline } from "@mui/lab";
3
+ import { AuditTimelineItemSkeleton } from "./AuditTimelineItem";
4
+ export function AuditTimeline({ loading, children }) {
5
+ if (loading) {
6
+ return (React.createElement(Timeline, null,
7
+ React.createElement(AuditTimelineItemSkeleton, null),
8
+ React.createElement(AuditTimelineItemSkeleton, null),
9
+ React.createElement(AuditTimelineItemSkeleton, null)));
10
+ }
11
+ return (React.createElement(Timeline, null, children));
12
+ }
13
+ //# sourceMappingURL=AuditTimeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditTimeline.js","sourceRoot":"","sources":["../../src/audit/AuditTimeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,UAAU,CAAC;AAClC,OAAO,EAAC,yBAAyB,EAAC,MAAM,qBAAqB,CAAC;AAM9D,MAAM,UAAU,aAAa,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAwC;IACpF,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,CACH,oBAAC,QAAQ;YACL,oBAAC,yBAAyB,OAAE;YAC5B,oBAAC,yBAAyB,OAAE;YAC5B,oBAAC,yBAAyB,OAAE,CACrB,CACd,CAAA;IACL,CAAC;IACD,OAAO,CACH,oBAAC,QAAQ,QACJ,QAAQ,CACF,CACd,CAAC;AACN,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ export interface AuditTimelineItemProps {
3
+ created: ReactNode;
4
+ actor: ReactNode;
5
+ connector?: boolean;
6
+ message: ReactNode;
7
+ changes: ReactNode;
8
+ }
9
+ export declare function AuditTimelineItem(props: AuditTimelineItemProps): JSX.Element;
10
+ export declare function AuditTimelineItemSkeleton(): JSX.Element;
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { TimelineConnector, TimelineContent, TimelineDot, TimelineItem, TimelineOppositeContent, TimelineSeparator } from "@mui/lab";
3
+ import { Box, Skeleton, Stack, Typography, useMediaQuery, useTheme } from "@mui/material";
4
+ export function AuditTimelineItem(props) {
5
+ const { created, actor, connector = true, message, changes, } = props;
6
+ const theme = useTheme();
7
+ const sm = useMediaQuery(theme.breakpoints.down("sm"));
8
+ const createdAndActor = (React.createElement(Stack, { spacing: 1 },
9
+ React.createElement(Box, { color: "text.secondary" }, created),
10
+ React.createElement(Box, { color: "text.primary" }, actor)));
11
+ return (React.createElement(TimelineItem, null,
12
+ sm
13
+ ? React.createElement(TimelineOppositeContent, { sx: { flex: 0, padding: 0 } })
14
+ : React.createElement(TimelineOppositeContent, null, createdAndActor),
15
+ React.createElement(TimelineSeparator, null,
16
+ React.createElement(TimelineDot, null),
17
+ connector && (React.createElement(TimelineConnector, null))),
18
+ React.createElement(TimelineContent, null,
19
+ React.createElement(Stack, { spacing: 1 },
20
+ React.createElement(Typography, { variant: "h6", sx: { transform: "translateY(-1px)" } }, message),
21
+ sm && createdAndActor,
22
+ React.createElement(Typography, { variant: "body2" }, changes)))));
23
+ }
24
+ export function AuditTimelineItemSkeleton() {
25
+ return (React.createElement(AuditTimelineItem, { connector: true, created: React.createElement(Skeleton, null), actor: React.createElement(Skeleton, null), message: React.createElement(Skeleton, null), changes: React.createElement(Skeleton, { variant: "rounded", height: "150px" }) }));
26
+ }
27
+ //# sourceMappingURL=AuditTimelineItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditTimelineItem.js","sourceRoot":"","sources":["../../src/audit/AuditTimelineItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CA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BAAC,UAAU,IAAC,OAAO,EAAC,OAAO,IAC1B,OAAO,CACK,CACT,CACM,CACP,CAClB,CAAA;AACL,CAAC;AAED,MAAM,UAAU,yBAAyB;IACrC,OAAO,CACH,oBAAC,iBAAiB,IACd,SAAS,QACT,OAAO,EAAE,oBAAC,QAAQ,OAAE,EACpB,KAAK,EAAE,oBAAC,QAAQ,OAAE,EAClB,OAAO,EAAE,oBAAC,QAAQ,OAAE,EACpB,OAAO,EAAE,oBAAC,QAAQ,IAAC,OAAO,EAAC,SAAS,EAAC,MAAM,EAAC,OAAO,GAAE,GACvD,CACL,CAAC;AACN,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./AuditTimeline";
2
+ export * from "./AuditTimelineItem";
3
+ export * from "./AuditChanges";
4
+ export * from "./types";
@@ -0,0 +1,5 @@
1
+ export * from "./AuditTimeline";
2
+ export * from "./AuditTimelineItem";
3
+ export * from "./AuditChanges";
4
+ export * from "./types";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/audit/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,42 @@
1
+ export interface AppAuditLogEntry {
2
+ created: string;
3
+ tenantId: string | null;
4
+ cubeId: string | null;
5
+ boxNumber: string | null;
6
+ occupancyId: string | null;
7
+ source: string | null;
8
+ level: string;
9
+ message: string;
10
+ referenceType: string | null;
11
+ referenceId: string | null;
12
+ type: string;
13
+ userId: string | null;
14
+ data?: any;
15
+ patch?: JsonPatch;
16
+ actor: string | null;
17
+ }
18
+ export type JsonPatch = Array<JsonPatchItem>;
19
+ export type JsonPatchItem = AddPatch | RemovePatch | ReplacePatch | MovePatch | CopyPatch;
20
+ export interface Patch {
21
+ path: string;
22
+ }
23
+ export interface AddPatch extends Patch {
24
+ op: "add";
25
+ value: any;
26
+ }
27
+ export interface RemovePatch extends Patch {
28
+ op: "remove";
29
+ }
30
+ export interface ReplacePatch extends Patch {
31
+ op: "replace";
32
+ value: any;
33
+ fromValue: any;
34
+ }
35
+ export interface MovePatch extends Patch {
36
+ op: "move";
37
+ from: string;
38
+ }
39
+ export interface CopyPatch extends Patch {
40
+ op: "copy";
41
+ from: string;
42
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/audit/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { LinkProps } from "@mui/material";
3
+ import { LinkTypeMap } from "@mui/material/Link/Link";
4
+ export declare function Breadcrumbs({ children }: PropsWithChildren<{}>): JSX.Element;
5
+ export declare function BreadcrumbLink<D extends React.ElementType = LinkTypeMap['defaultComponent'], P = {}>(props: LinkProps<D, P>): JSX.Element;
6
+ export declare function BreadcrumbItem({ children }: PropsWithChildren<{}>): JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { Breadcrumbs as MuiBreadcrumbs, Link, Typography } from "@mui/material";
3
+ import { ChevronRightIcon } from "./icons";
4
+ export function Breadcrumbs({ children }) {
5
+ return (React.createElement(MuiBreadcrumbs, { separator: React.createElement(ChevronRightIcon, { fontSize: "small" }) }, children));
6
+ }
7
+ export function BreadcrumbLink(props) {
8
+ return (React.createElement(Link, Object.assign({ color: "inherit" }, props)));
9
+ }
10
+ export function BreadcrumbItem({ children }) {
11
+ return (React.createElement(Typography, { color: "textPrimary" }, children));
12
+ }
13
+ //# sourceMappingURL=breadcrumbs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../src/breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,WAAW,IAAI,cAAc,EAAE,IAAI,EAAa,UAAU,EAAC,MAAM,eAAe,CAAC;AACzF,OAAO,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAGzC,MAAM,UAAU,WAAW,CAAC,EAAC,QAAQ,EAAwB;IACzD,OAAO,CACH,oBAAC,cAAc,IAAC,SAAS,EAAE,oBAAC,gBAAgB,IAAC,QAAQ,EAAC,OAAO,GAAE,IAC1D,QAAQ,CACI,CACpB,CAAA;AACL,CAAC;AAED,MAAM,UAAU,cAAc,CAG5B,KAAsB;IACpB,OAAO,CACH,oBAAC,IAAI,kBAAC,KAAK,EAAC,SAAS,IAAK,KAAK,EAAG,CACrC,CAAA;AACL,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,EAAC,QAAQ,EAAwB;IAC5D,OAAO,CACH,oBAAC,UAAU,IAAC,KAAK,EAAC,aAAa,IAAE,QAAQ,CAAc,CAC1D,CAAC;AACN,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { TypographyProps } from "@mui/material";
2
+ import { PropsWithChildren } from "react";
3
+ export interface CodeProps {
4
+ variant?: TypographyProps["variant"];
5
+ color?: TypographyProps["color"];
6
+ display?: TypographyProps["display"];
7
+ px?: TypographyProps["px"];
8
+ py?: TypographyProps["py"];
9
+ }
10
+ export declare function Code(props: PropsWithChildren<CodeProps>): JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { darken, lighten, Typography, useTheme } from "@mui/material";
2
+ import React from "react";
3
+ export function Code(props) {
4
+ const { variant, color, display, px = "0.25em", py = 0, children, } = props;
5
+ const theme = useTheme();
6
+ const backgroundColor = theme.palette.mode == "light"
7
+ ? darken(theme.palette.background.default, 0.04)
8
+ : theme.palette.background.paper;
9
+ const backgroundColorOnPaper = theme.palette.mode == "light"
10
+ ? darken(theme.palette.background.default, 0.025)
11
+ : lighten(theme.palette.background.paper, 0.1);
12
+ return (React.createElement(Typography, { component: "code", display: display, color: color, variant: variant, fontFamily: "Jetbrains Mono", fontSize: variant ? undefined : "inherit", px: px, py: py, whiteSpace: "break-spaces", borderRadius: "0.25em", sx: {
13
+ bgcolor: backgroundColor,
14
+ ".MuiPaper-root &": {
15
+ bgcolor: backgroundColorOnPaper,
16
+ },
17
+ } }, children));
18
+ }
19
+ //# sourceMappingURL=Code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Code.js","sourceRoot":"","sources":["../../src/code/Code.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAmB,QAAQ,EAAC,MAAM,eAAe,CAAC;AACrF,OAAO,KAA0B,MAAM,OAAO,CAAC;AAU/C,MAAM,UAAU,IAAI,CAAC,KAAmC;IACvD,MAAM,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,EAAE,GAAG,QAAQ,EACb,EAAE,GAAG,CAAC,EACN,QAAQ,GACR,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO;QACpD,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC;QAChD,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC;IAElC,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO;QAC3D,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC;QACjD,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAEhD,OAAO,CACN,oBAAC,UAAU,IACV,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAC,gBAAgB,EAC3B,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EACzC,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,UAAU,EAAC,cAAc,EACzB,YAAY,EAAC,QAAQ,EACrB,EAAE,EAAE;YACH,OAAO,EAAE,eAAe;YACxB,kBAAkB,EAAE;gBACnB,OAAO,EAAE,sBAAsB;aAC/B;SACD,IAEA,QAAQ,CACG,CACb,CAAC;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { CodeProps } from "./Code";
2
+ import { PropsWithChildren } from "react";
3
+ export type CodeBlockProps = PropsWithChildren<Omit<CodeProps, "block">>;
4
+ export declare function CodeBlock(props: CodeBlockProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Code } from "./Code";
2
+ import React from "react";
3
+ export function CodeBlock(props) {
4
+ return (React.createElement(Code, Object.assign({ display: "block", px: "0.5em", py: "0.25em" }, props)));
5
+ }
6
+ //# sourceMappingURL=CodeBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeBlock.js","sourceRoot":"","sources":["../../src/code/CodeBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,KAA0B,MAAM,OAAO,CAAC;AAI/C,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC3C,OAAO,CACH,oBAAC,IAAI,kBACD,OAAO,EAAC,OAAO,EACf,EAAE,EAAC,OAAO,EACV,EAAE,EAAC,QAAQ,IACP,KAAK,EACX,CACL,CAAA;AACL,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare function Json({ data }: {
3
+ data: any;
4
+ }): JSX.Element;