mogh_ui 0.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 (330) hide show
  1. package/dist/color.cjs +62 -0
  2. package/dist/color.cjs.map +1 -0
  3. package/dist/color.d.cts +5 -0
  4. package/dist/color.d.ts +5 -0
  5. package/dist/color.js +37 -0
  6. package/dist/color.js.map +1 -0
  7. package/dist/components/back-button.cjs +43 -0
  8. package/dist/components/back-button.cjs.map +1 -0
  9. package/dist/components/back-button.d.cts +9 -0
  10. package/dist/components/back-button.d.ts +9 -0
  11. package/dist/components/back-button.js +19 -0
  12. package/dist/components/back-button.js.map +1 -0
  13. package/dist/components/config/confirm.cjs +191 -0
  14. package/dist/components/config/confirm.cjs.map +1 -0
  15. package/dist/components/config/confirm.d.cts +20 -0
  16. package/dist/components/config/confirm.d.ts +20 -0
  17. package/dist/components/config/confirm.js +167 -0
  18. package/dist/components/config/confirm.js.map +1 -0
  19. package/dist/components/config/group.cjs +102 -0
  20. package/dist/components/config/group.cjs.map +1 -0
  21. package/dist/components/config/group.d.cts +11 -0
  22. package/dist/components/config/group.d.ts +11 -0
  23. package/dist/components/config/group.js +78 -0
  24. package/dist/components/config/group.js.map +1 -0
  25. package/dist/components/config/index.cjs +237 -0
  26. package/dist/components/config/index.cjs.map +1 -0
  27. package/dist/components/config/index.d.cts +62 -0
  28. package/dist/components/config/index.d.ts +62 -0
  29. package/dist/components/config/index.js +217 -0
  30. package/dist/components/config/index.js.map +1 -0
  31. package/dist/components/config/item.cjs +139 -0
  32. package/dist/components/config/item.cjs.map +1 -0
  33. package/dist/components/config/item.d.cts +45 -0
  34. package/dist/components/config/item.d.ts +45 -0
  35. package/dist/components/config/item.js +119 -0
  36. package/dist/components/config/item.js.map +1 -0
  37. package/dist/components/config/layout.cjs +44 -0
  38. package/dist/components/config/layout.cjs.map +1 -0
  39. package/dist/components/config/layout.d.cts +11 -0
  40. package/dist/components/config/layout.d.ts +11 -0
  41. package/dist/components/config/layout.js +20 -0
  42. package/dist/components/config/layout.js.map +1 -0
  43. package/dist/components/config/unsaved-changes.cjs +47 -0
  44. package/dist/components/config/unsaved-changes.cjs.map +1 -0
  45. package/dist/components/config/unsaved-changes.d.cts +7 -0
  46. package/dist/components/config/unsaved-changes.d.ts +7 -0
  47. package/dist/components/config/unsaved-changes.js +23 -0
  48. package/dist/components/config/unsaved-changes.js.map +1 -0
  49. package/dist/components/confirm-button.cjs +85 -0
  50. package/dist/components/confirm-button.cjs.map +1 -0
  51. package/dist/components/confirm-button.d.cts +23 -0
  52. package/dist/components/confirm-button.d.ts +23 -0
  53. package/dist/components/confirm-button.js +69 -0
  54. package/dist/components/confirm-button.js.map +1 -0
  55. package/dist/components/confirm-icon.cjs +70 -0
  56. package/dist/components/confirm-icon.cjs.map +1 -0
  57. package/dist/components/confirm-icon.d.cts +20 -0
  58. package/dist/components/confirm-icon.d.ts +20 -0
  59. package/dist/components/confirm-icon.js +54 -0
  60. package/dist/components/confirm-icon.js.map +1 -0
  61. package/dist/components/confirm-modal.cjs +146 -0
  62. package/dist/components/confirm-modal.cjs.map +1 -0
  63. package/dist/components/confirm-modal.d.cts +25 -0
  64. package/dist/components/confirm-modal.d.ts +25 -0
  65. package/dist/components/confirm-modal.js +130 -0
  66. package/dist/components/confirm-modal.js.map +1 -0
  67. package/dist/components/copy-button.cjs +68 -0
  68. package/dist/components/copy-button.cjs.map +1 -0
  69. package/dist/components/copy-button.d.cts +15 -0
  70. package/dist/components/copy-button.d.ts +15 -0
  71. package/dist/components/copy-button.js +46 -0
  72. package/dist/components/copy-button.js.map +1 -0
  73. package/dist/components/copy-text.cjs +63 -0
  74. package/dist/components/copy-text.cjs.map +1 -0
  75. package/dist/components/copy-text.d.cts +11 -0
  76. package/dist/components/copy-text.d.ts +11 -0
  77. package/dist/components/copy-text.js +39 -0
  78. package/dist/components/copy-text.js.map +1 -0
  79. package/dist/components/create-modal.cjs +100 -0
  80. package/dist/components/create-modal.cjs.map +1 -0
  81. package/dist/components/create-modal.d.cts +18 -0
  82. package/dist/components/create-modal.d.ts +18 -0
  83. package/dist/components/create-modal.js +82 -0
  84. package/dist/components/create-modal.js.map +1 -0
  85. package/dist/components/data-table.cjs +240 -0
  86. package/dist/components/data-table.cjs.map +1 -0
  87. package/dist/components/data-table.d.cts +36 -0
  88. package/dist/components/data-table.d.ts +36 -0
  89. package/dist/components/data-table.js +233 -0
  90. package/dist/components/data-table.js.map +1 -0
  91. package/dist/components/divided-children/index.cjs +53 -0
  92. package/dist/components/divided-children/index.cjs.map +1 -0
  93. package/dist/components/divided-children/index.d.cts +15 -0
  94. package/dist/components/divided-children/index.d.ts +15 -0
  95. package/dist/components/divided-children/index.js +19 -0
  96. package/dist/components/divided-children/index.js.map +1 -0
  97. package/dist/components/divided-children/index.module.scss +4 -0
  98. package/dist/components/enable-switch.cjs +67 -0
  99. package/dist/components/enable-switch.cjs.map +1 -0
  100. package/dist/components/enable-switch.d.cts +12 -0
  101. package/dist/components/enable-switch.d.ts +12 -0
  102. package/dist/components/enable-switch.js +43 -0
  103. package/dist/components/enable-switch.js.map +1 -0
  104. package/dist/components/entity-header.cjs +137 -0
  105. package/dist/components/entity-header.cjs.map +1 -0
  106. package/dist/components/entity-header.d.cts +20 -0
  107. package/dist/components/entity-header.d.ts +20 -0
  108. package/dist/components/entity-header.js +113 -0
  109. package/dist/components/entity-header.js.map +1 -0
  110. package/dist/components/entity-page.cjs +45 -0
  111. package/dist/components/entity-page.cjs.map +1 -0
  112. package/dist/components/entity-page.d.cts +11 -0
  113. package/dist/components/entity-page.d.ts +11 -0
  114. package/dist/components/entity-page.js +21 -0
  115. package/dist/components/entity-page.js.map +1 -0
  116. package/dist/components/fancy-card/index.cjs +52 -0
  117. package/dist/components/fancy-card/index.cjs.map +1 -0
  118. package/dist/components/fancy-card/index.d.cts +17 -0
  119. package/dist/components/fancy-card/index.d.ts +17 -0
  120. package/dist/components/fancy-card/index.js +18 -0
  121. package/dist/components/fancy-card/index.js.map +1 -0
  122. package/dist/components/fancy-card/index.module.scss +13 -0
  123. package/dist/components/hover-error.cjs +60 -0
  124. package/dist/components/hover-error.cjs.map +1 -0
  125. package/dist/components/hover-error.d.cts +9 -0
  126. package/dist/components/hover-error.d.ts +9 -0
  127. package/dist/components/hover-error.js +36 -0
  128. package/dist/components/hover-error.js.map +1 -0
  129. package/dist/components/info-card.cjs +44 -0
  130. package/dist/components/info-card.cjs.map +1 -0
  131. package/dist/components/info-card.d.cts +21 -0
  132. package/dist/components/info-card.d.ts +21 -0
  133. package/dist/components/info-card.js +25 -0
  134. package/dist/components/info-card.js.map +1 -0
  135. package/dist/components/input-list.cjs +68 -0
  136. package/dist/components/input-list.cjs.map +1 -0
  137. package/dist/components/input-list.d.cts +14 -0
  138. package/dist/components/input-list.d.ts +14 -0
  139. package/dist/components/input-list.js +44 -0
  140. package/dist/components/input-list.js.map +1 -0
  141. package/dist/components/labelled-switch.cjs +68 -0
  142. package/dist/components/labelled-switch.cjs.map +1 -0
  143. package/dist/components/labelled-switch.d.cts +14 -0
  144. package/dist/components/labelled-switch.d.ts +14 -0
  145. package/dist/components/labelled-switch.js +48 -0
  146. package/dist/components/labelled-switch.js.map +1 -0
  147. package/dist/components/labels-group.cjs +44 -0
  148. package/dist/components/labels-group.cjs.map +1 -0
  149. package/dist/components/labels-group.d.cts +10 -0
  150. package/dist/components/labels-group.d.ts +10 -0
  151. package/dist/components/labels-group.js +20 -0
  152. package/dist/components/labels-group.js.map +1 -0
  153. package/dist/components/loading-screen.cjs +37 -0
  154. package/dist/components/loading-screen.cjs.map +1 -0
  155. package/dist/components/loading-screen.d.cts +8 -0
  156. package/dist/components/loading-screen.d.ts +8 -0
  157. package/dist/components/loading-screen.js +13 -0
  158. package/dist/components/loading-screen.js.map +1 -0
  159. package/dist/components/mobile-friendly-tabs.cjs +141 -0
  160. package/dist/components/mobile-friendly-tabs.cjs.map +1 -0
  161. package/dist/components/mobile-friendly-tabs.d.cts +43 -0
  162. package/dist/components/mobile-friendly-tabs.d.ts +43 -0
  163. package/dist/components/mobile-friendly-tabs.js +120 -0
  164. package/dist/components/mobile-friendly-tabs.js.map +1 -0
  165. package/dist/components/monaco/index.cjs +244 -0
  166. package/dist/components/monaco/index.cjs.map +1 -0
  167. package/dist/components/monaco/index.d.cts +32 -0
  168. package/dist/components/monaco/index.d.ts +32 -0
  169. package/dist/components/monaco/index.js +208 -0
  170. package/dist/components/monaco/index.js.map +1 -0
  171. package/dist/components/monaco/index.scss +3 -0
  172. package/dist/components/monaco/init.cjs +73 -0
  173. package/dist/components/monaco/init.cjs.map +1 -0
  174. package/dist/components/monaco/init.d.cts +2 -0
  175. package/dist/components/monaco/init.d.ts +2 -0
  176. package/dist/components/monaco/init.js +49 -0
  177. package/dist/components/monaco/init.js.map +1 -0
  178. package/dist/components/monaco/syntax/fancy_toml.cjs +241 -0
  179. package/dist/components/monaco/syntax/fancy_toml.cjs.map +1 -0
  180. package/dist/components/monaco/syntax/fancy_toml.d.cts +2 -0
  181. package/dist/components/monaco/syntax/fancy_toml.d.ts +2 -0
  182. package/dist/components/monaco/syntax/fancy_toml.js +218 -0
  183. package/dist/components/monaco/syntax/fancy_toml.js.map +1 -0
  184. package/dist/components/monaco/syntax/key_value.cjs +107 -0
  185. package/dist/components/monaco/syntax/key_value.cjs.map +1 -0
  186. package/dist/components/monaco/syntax/key_value.d.cts +2 -0
  187. package/dist/components/monaco/syntax/key_value.d.ts +2 -0
  188. package/dist/components/monaco/syntax/key_value.js +84 -0
  189. package/dist/components/monaco/syntax/key_value.js.map +1 -0
  190. package/dist/components/monaco/syntax/shell.cjs +246 -0
  191. package/dist/components/monaco/syntax/shell.cjs.map +1 -0
  192. package/dist/components/monaco/syntax/shell.d.cts +2 -0
  193. package/dist/components/monaco/syntax/shell.d.ts +2 -0
  194. package/dist/components/monaco/syntax/shell.js +223 -0
  195. package/dist/components/monaco/syntax/shell.js.map +1 -0
  196. package/dist/components/monaco/syntax/string_list.cjs +75 -0
  197. package/dist/components/monaco/syntax/string_list.cjs.map +1 -0
  198. package/dist/components/monaco/syntax/string_list.d.cts +2 -0
  199. package/dist/components/monaco/syntax/string_list.d.ts +2 -0
  200. package/dist/components/monaco/syntax/string_list.js +52 -0
  201. package/dist/components/monaco/syntax/string_list.js.map +1 -0
  202. package/dist/components/monaco/syntax/toml.cjs +157 -0
  203. package/dist/components/monaco/syntax/toml.cjs.map +1 -0
  204. package/dist/components/monaco/syntax/toml.d.cts +2 -0
  205. package/dist/components/monaco/syntax/toml.d.ts +2 -0
  206. package/dist/components/monaco/syntax/toml.js +134 -0
  207. package/dist/components/monaco/syntax/toml.js.map +1 -0
  208. package/dist/components/monaco/syntax/yaml.cjs +250 -0
  209. package/dist/components/monaco/syntax/yaml.cjs.map +1 -0
  210. package/dist/components/monaco/syntax/yaml.d.cts +2 -0
  211. package/dist/components/monaco/syntax/yaml.d.ts +2 -0
  212. package/dist/components/monaco/syntax/yaml.js +227 -0
  213. package/dist/components/monaco/syntax/yaml.js.map +1 -0
  214. package/dist/components/monaco/theme.cjs +721 -0
  215. package/dist/components/monaco/theme.cjs.map +1 -0
  216. package/dist/components/monaco/theme.d.cts +2 -0
  217. package/dist/components/monaco/theme.d.ts +2 -0
  218. package/dist/components/monaco/theme.js +698 -0
  219. package/dist/components/monaco/theme.js.map +1 -0
  220. package/dist/components/page-guard.cjs +44 -0
  221. package/dist/components/page-guard.cjs.map +1 -0
  222. package/dist/components/page-guard.d.cts +13 -0
  223. package/dist/components/page-guard.d.ts +13 -0
  224. package/dist/components/page-guard.js +20 -0
  225. package/dist/components/page-guard.js.map +1 -0
  226. package/dist/components/page.cjs +81 -0
  227. package/dist/components/page.cjs.map +1 -0
  228. package/dist/components/page.d.cts +31 -0
  229. package/dist/components/page.d.ts +31 -0
  230. package/dist/components/page.js +63 -0
  231. package/dist/components/page.js.map +1 -0
  232. package/dist/components/search-input.cjs +51 -0
  233. package/dist/components/search-input.cjs.map +1 -0
  234. package/dist/components/search-input.d.cts +9 -0
  235. package/dist/components/search-input.d.ts +9 -0
  236. package/dist/components/search-input.js +27 -0
  237. package/dist/components/search-input.js.map +1 -0
  238. package/dist/components/section.cjs +100 -0
  239. package/dist/components/section.cjs.map +1 -0
  240. package/dist/components/section.d.cts +33 -0
  241. package/dist/components/section.d.ts +33 -0
  242. package/dist/components/section.js +83 -0
  243. package/dist/components/section.js.map +1 -0
  244. package/dist/components/shared-text-update.cjs +83 -0
  245. package/dist/components/shared-text-update.cjs.map +1 -0
  246. package/dist/components/shared-text-update.d.cts +20 -0
  247. package/dist/components/shared-text-update.d.ts +20 -0
  248. package/dist/components/shared-text-update.js +65 -0
  249. package/dist/components/shared-text-update.js.map +1 -0
  250. package/dist/components/show-hide-button.cjs +48 -0
  251. package/dist/components/show-hide-button.cjs.map +1 -0
  252. package/dist/components/show-hide-button.d.cts +8 -0
  253. package/dist/components/show-hide-button.d.ts +8 -0
  254. package/dist/components/show-hide-button.js +24 -0
  255. package/dist/components/show-hide-button.js.map +1 -0
  256. package/dist/components/stat-bar.cjs +68 -0
  257. package/dist/components/stat-bar.cjs.map +1 -0
  258. package/dist/components/stat-bar.d.cts +15 -0
  259. package/dist/components/stat-bar.d.ts +15 -0
  260. package/dist/components/stat-bar.js +44 -0
  261. package/dist/components/stat-bar.js.map +1 -0
  262. package/dist/components/stat-cell.cjs +72 -0
  263. package/dist/components/stat-cell.cjs.map +1 -0
  264. package/dist/components/stat-cell.d.cts +17 -0
  265. package/dist/components/stat-cell.d.ts +17 -0
  266. package/dist/components/stat-cell.js +54 -0
  267. package/dist/components/stat-cell.js.map +1 -0
  268. package/dist/components/status-badge.cjs +63 -0
  269. package/dist/components/status-badge.cjs.map +1 -0
  270. package/dist/components/status-badge.d.cts +20 -0
  271. package/dist/components/status-badge.d.ts +20 -0
  272. package/dist/components/status-badge.js +39 -0
  273. package/dist/components/status-badge.js.map +1 -0
  274. package/dist/components/tabbed-page.cjs +64 -0
  275. package/dist/components/tabbed-page.cjs.map +1 -0
  276. package/dist/components/tabbed-page.d.cts +18 -0
  277. package/dist/components/tabbed-page.d.ts +18 -0
  278. package/dist/components/tabbed-page.js +40 -0
  279. package/dist/components/tabbed-page.js.map +1 -0
  280. package/dist/components/table-skeleton.cjs +36 -0
  281. package/dist/components/table-skeleton.cjs.map +1 -0
  282. package/dist/components/table-skeleton.d.cts +8 -0
  283. package/dist/components/table-skeleton.d.ts +8 -0
  284. package/dist/components/table-skeleton.js +12 -0
  285. package/dist/components/table-skeleton.js.map +1 -0
  286. package/dist/components/text-update-modal.cjs +102 -0
  287. package/dist/components/text-update-modal.cjs.map +1 -0
  288. package/dist/components/text-update-modal.d.cts +19 -0
  289. package/dist/components/text-update-modal.d.ts +19 -0
  290. package/dist/components/text-update-modal.js +85 -0
  291. package/dist/components/text-update-modal.js.map +1 -0
  292. package/dist/components/theme-toggle.cjs +73 -0
  293. package/dist/components/theme-toggle.cjs.map +1 -0
  294. package/dist/components/theme-toggle.d.cts +5 -0
  295. package/dist/components/theme-toggle.d.ts +5 -0
  296. package/dist/components/theme-toggle.js +54 -0
  297. package/dist/components/theme-toggle.js.map +1 -0
  298. package/dist/formatting.cjs +124 -0
  299. package/dist/formatting.cjs.map +1 -0
  300. package/dist/formatting.d.cts +14 -0
  301. package/dist/formatting.d.ts +14 -0
  302. package/dist/formatting.js +89 -0
  303. package/dist/formatting.js.map +1 -0
  304. package/dist/hooks.cjs +117 -0
  305. package/dist/hooks.cjs.map +1 -0
  306. package/dist/hooks.d.cts +30 -0
  307. package/dist/hooks.d.ts +30 -0
  308. package/dist/hooks.js +88 -0
  309. package/dist/hooks.js.map +1 -0
  310. package/dist/index.cjs +99 -0
  311. package/dist/index.cjs.map +1 -0
  312. package/dist/index.d.cts +47 -0
  313. package/dist/index.d.ts +47 -0
  314. package/dist/index.js +40 -0
  315. package/dist/index.js.map +1 -0
  316. package/dist/index.scss +81 -0
  317. package/dist/theme.cjs +332 -0
  318. package/dist/theme.cjs.map +1 -0
  319. package/dist/theme.d.cts +15 -0
  320. package/dist/theme.d.ts +15 -0
  321. package/dist/theme.js +330 -0
  322. package/dist/theme.js.map +1 -0
  323. package/dist/theme.scss +76 -0
  324. package/dist/utils.cjs +48 -0
  325. package/dist/utils.cjs.map +1 -0
  326. package/dist/utils.d.cts +15 -0
  327. package/dist/utils.d.ts +15 -0
  328. package/dist/utils.js +24 -0
  329. package/dist/utils.js.map +1 -0
  330. package/package.json +61 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/monaco/theme.ts"],"sourcesContent":["import * as monaco from \"monaco-editor\";\n\n// background: #f5f5f5\nmonaco.editor.defineTheme(\"light\", {\n base: \"vs\",\n inherit: true,\n rules: [\n {\n background: \"f5f5f5\",\n token: \"\",\n },\n {\n foreground: \"6a737d\",\n token: \"comment\",\n },\n {\n foreground: \"6a737d\",\n token: \"punctuation.definition.comment\",\n },\n {\n foreground: \"6a737d\",\n token: \"string.comment\",\n },\n {\n foreground: \"005cc5\",\n token: \"constant\",\n },\n {\n foreground: \"005cc5\",\n token: \"entity.name.constant\",\n },\n {\n foreground: \"005cc5\",\n token: \"variable.other.constant\",\n },\n {\n foreground: \"005cc5\",\n token: \"variable.language\",\n },\n {\n foreground: \"6f42c1\",\n token: \"entity\",\n },\n {\n foreground: \"6f42c1\",\n token: \"entity.name\",\n },\n {\n foreground: \"24292e\",\n token: \"variable.parameter.function\",\n },\n {\n foreground: \"22863a\",\n token: \"entity.name.tag\",\n },\n {\n foreground: \"d73a49\",\n token: \"keyword\",\n },\n {\n foreground: \"d73a49\",\n token: \"storage\",\n },\n {\n foreground: \"d73a49\",\n token: \"storage.type\",\n },\n {\n foreground: \"24292e\",\n token: \"storage.modifier.package\",\n },\n {\n foreground: \"24292e\",\n token: \"storage.modifier.import\",\n },\n {\n foreground: \"24292e\",\n token: \"storage.type.java\",\n },\n {\n foreground: \"032f62\",\n token: \"string\",\n },\n {\n foreground: \"032f62\",\n token: \"punctuation.definition.string\",\n },\n {\n foreground: \"032f62\",\n token: \"string punctuation.section.embedded source\",\n },\n {\n foreground: \"005cc5\",\n token: \"support\",\n },\n {\n foreground: \"005cc5\",\n token: \"meta.property-name\",\n },\n {\n foreground: \"e36209\",\n token: \"variable\",\n },\n {\n foreground: \"24292e\",\n token: \"variable.other\",\n },\n {\n foreground: \"b31d28\",\n fontStyle: \"bold italic underline\",\n token: \"invalid.broken\",\n },\n {\n foreground: \"b31d28\",\n fontStyle: \"bold italic underline\",\n token: \"invalid.deprecated\",\n },\n {\n foreground: \"fafbfc\",\n background: \"b31d28\",\n fontStyle: \"italic underline\",\n token: \"invalid.illegal\",\n },\n {\n foreground: \"fafbfc\",\n background: \"d73a49\",\n fontStyle: \"italic underline\",\n token: \"carriage-return\",\n },\n {\n foreground: \"b31d28\",\n fontStyle: \"bold italic underline\",\n token: \"invalid.unimplemented\",\n },\n {\n foreground: \"b31d28\",\n token: \"message.error\",\n },\n {\n foreground: \"24292e\",\n token: \"string source\",\n },\n {\n foreground: \"005cc5\",\n token: \"string variable\",\n },\n {\n foreground: \"032f62\",\n token: \"source.regexp\",\n },\n {\n foreground: \"032f62\",\n token: \"string.regexp\",\n },\n {\n foreground: \"032f62\",\n token: \"string.regexp.character-class\",\n },\n {\n foreground: \"032f62\",\n token: \"string.regexp constant.character.escape\",\n },\n {\n foreground: \"032f62\",\n token: \"string.regexp source.ruby.embedded\",\n },\n {\n foreground: \"032f62\",\n token: \"string.regexp string.regexp.arbitrary-repitition\",\n },\n {\n foreground: \"22863a\",\n fontStyle: \"bold\",\n token: \"string.regexp constant.character.escape\",\n },\n {\n foreground: \"005cc5\",\n token: \"support.constant\",\n },\n {\n foreground: \"005cc5\",\n token: \"support.variable\",\n },\n {\n foreground: \"005cc5\",\n token: \"meta.module-reference\",\n },\n {\n foreground: \"735c0f\",\n token: \"markup.list\",\n },\n {\n foreground: \"005cc5\",\n fontStyle: \"bold\",\n token: \"markup.heading\",\n },\n {\n foreground: \"005cc5\",\n fontStyle: \"bold\",\n token: \"markup.heading entity.name\",\n },\n {\n foreground: \"22863a\",\n token: \"markup.quote\",\n },\n {\n foreground: \"24292e\",\n fontStyle: \"italic\",\n token: \"markup.italic\",\n },\n {\n foreground: \"24292e\",\n fontStyle: \"bold\",\n token: \"markup.bold\",\n },\n {\n foreground: \"005cc5\",\n token: \"markup.raw\",\n },\n {\n foreground: \"b31d28\",\n background: \"ffeef0\",\n token: \"markup.deleted\",\n },\n {\n foreground: \"b31d28\",\n background: \"ffeef0\",\n token: \"meta.diff.header.from-file\",\n },\n {\n foreground: \"b31d28\",\n background: \"ffeef0\",\n token: \"punctuation.definition.deleted\",\n },\n {\n foreground: \"22863a\",\n background: \"f0fff4\",\n token: \"markup.inserted\",\n },\n {\n foreground: \"22863a\",\n background: \"f0fff4\",\n token: \"meta.diff.header.to-file\",\n },\n {\n foreground: \"22863a\",\n background: \"f0fff4\",\n token: \"punctuation.definition.inserted\",\n },\n {\n foreground: \"e36209\",\n background: \"ffebda\",\n token: \"markup.changed\",\n },\n {\n foreground: \"e36209\",\n background: \"ffebda\",\n token: \"punctuation.definition.changed\",\n },\n {\n foreground: \"f6f8fa\",\n background: \"005cc5\",\n token: \"markup.ignored\",\n },\n {\n foreground: \"f6f8fa\",\n background: \"005cc5\",\n token: \"markup.untracked\",\n },\n {\n foreground: \"6f42c1\",\n fontStyle: \"bold\",\n token: \"meta.diff.range\",\n },\n {\n foreground: \"005cc5\",\n token: \"meta.diff.header\",\n },\n {\n foreground: \"005cc5\",\n fontStyle: \"bold\",\n token: \"meta.separator\",\n },\n {\n foreground: \"005cc5\",\n token: \"meta.output\",\n },\n {\n foreground: \"586069\",\n token: \"brackethighlighter.tag\",\n },\n {\n foreground: \"586069\",\n token: \"brackethighlighter.curly\",\n },\n {\n foreground: \"586069\",\n token: \"brackethighlighter.round\",\n },\n {\n foreground: \"586069\",\n token: \"brackethighlighter.square\",\n },\n {\n foreground: \"586069\",\n token: \"brackethighlighter.angle\",\n },\n {\n foreground: \"586069\",\n token: \"brackethighlighter.quote\",\n },\n {\n foreground: \"b31d28\",\n token: \"brackethighlighter.unmatched\",\n },\n {\n foreground: \"b31d28\",\n token: \"sublimelinter.mark.error\",\n },\n {\n foreground: \"e36209\",\n token: \"sublimelinter.mark.warning\",\n },\n {\n foreground: \"959da5\",\n token: \"sublimelinter.gutter-mark\",\n },\n {\n foreground: \"032f62\",\n fontStyle: \"underline\",\n token: \"constant.other.reference.link\",\n },\n {\n foreground: \"032f62\",\n fontStyle: \"underline\",\n token: \"string.other.link\",\n },\n ],\n colors: {\n \"editor.background\": \"#f5f5f5\",\n \"editor.foreground\": \"#24292e\",\n // \"editor.selectionBackground\": \"#c8c8fa\",\n // \"editor.inactiveSelectionBackground\": \"#fafbfc\",\n // \"editor.lineHighlightBackground\": \"#fafbfc\",\n \"editorCursor.foreground\": \"#24292e\",\n \"editorWhitespace.foreground\": \"#959da5\",\n \"editorIndentGuide.background\": \"#959da5\",\n \"editorIndentGuide.activeBackground\": \"#24292e\",\n \"editor.selectionHighlightBorder\": \"#fafbfc\",\n },\n});\n\n// background: #15171b\nmonaco.editor.defineTheme(\"dark\", {\n base: \"vs-dark\",\n inherit: true,\n rules: [\n {\n background: \"15171b\",\n token: \"\",\n },\n {\n foreground: \"959da5\",\n token: \"comment\",\n },\n {\n foreground: \"959da5\",\n token: \"punctuation.definition.comment\",\n },\n {\n foreground: \"959da5\",\n token: \"string.comment\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"constant\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"entity.name.constant\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"variable.other.constant\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"variable.language\",\n },\n {\n foreground: \"b392f0\",\n token: \"entity\",\n },\n {\n foreground: \"b392f0\",\n token: \"entity.name\",\n },\n {\n foreground: \"f6f8fa\",\n token: \"variable.parameter.function\",\n },\n {\n foreground: \"7bcc72\",\n token: \"entity.name.tag\",\n },\n {\n foreground: \"ea4a5a\",\n token: \"keyword\",\n },\n {\n foreground: \"ea4a5a\",\n token: \"storage\",\n },\n {\n foreground: \"ea4a5a\",\n token: \"storage.type\",\n },\n {\n foreground: \"f6f8fa\",\n token: \"storage.modifier.package\",\n },\n {\n foreground: \"f6f8fa\",\n token: \"storage.modifier.import\",\n },\n {\n foreground: \"f6f8fa\",\n token: \"storage.type.java\",\n },\n {\n foreground: \"79b8ff\",\n token: \"string\",\n },\n {\n foreground: \"79b8ff\",\n token: \"punctuation.definition.string\",\n },\n {\n foreground: \"79b8ff\",\n token: \"string punctuation.section.embedded source\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"support\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"meta.property-name\",\n },\n {\n foreground: \"fb8532\",\n token: \"variable\",\n },\n {\n foreground: \"f6f8fa\",\n token: \"variable.other\",\n },\n {\n foreground: \"d73a49\",\n fontStyle: \"bold italic underline\",\n token: \"invalid.broken\",\n },\n {\n foreground: \"d73a49\",\n fontStyle: \"bold italic underline\",\n token: \"invalid.deprecated\",\n },\n {\n foreground: \"fafbfc\",\n background: \"d73a49\",\n fontStyle: \"italic underline\",\n token: \"invalid.illegal\",\n },\n {\n foreground: \"fafbfc\",\n background: \"d73a49\",\n fontStyle: \"italic underline\",\n token: \"carriage-return\",\n },\n {\n foreground: \"d73a49\",\n fontStyle: \"bold italic underline\",\n token: \"invalid.unimplemented\",\n },\n {\n foreground: \"d73a49\",\n token: \"message.error\",\n },\n {\n foreground: \"f6f8fa\",\n token: \"string source\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"string variable\",\n },\n {\n foreground: \"79b8ff\",\n token: \"source.regexp\",\n },\n {\n foreground: \"79b8ff\",\n token: \"string.regexp\",\n },\n {\n foreground: \"79b8ff\",\n token: \"string.regexp.character-class\",\n },\n {\n foreground: \"79b8ff\",\n token: \"string.regexp constant.character.escape\",\n },\n {\n foreground: \"79b8ff\",\n token: \"string.regexp source.ruby.embedded\",\n },\n {\n foreground: \"79b8ff\",\n token: \"string.regexp string.regexp.arbitrary-repitition\",\n },\n {\n foreground: \"7bcc72\",\n fontStyle: \"bold\",\n token: \"string.regexp constant.character.escape\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"support.constant\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"support.variable\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"meta.module-reference\",\n },\n {\n foreground: \"fb8532\",\n token: \"markup.list\",\n },\n {\n foreground: \"0366d6\",\n fontStyle: \"bold\",\n token: \"markup.heading\",\n },\n {\n foreground: \"0366d6\",\n fontStyle: \"bold\",\n token: \"markup.heading entity.name\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"markup.quote\",\n },\n {\n foreground: \"f6f8fa\",\n fontStyle: \"italic\",\n token: \"markup.italic\",\n },\n {\n foreground: \"f6f8fa\",\n fontStyle: \"bold\",\n token: \"markup.bold\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"markup.raw\",\n },\n {\n foreground: \"b31d28\",\n background: \"ffeef0\",\n token: \"markup.deleted\",\n },\n {\n foreground: \"b31d28\",\n background: \"ffeef0\",\n token: \"meta.diff.header.from-file\",\n },\n {\n foreground: \"b31d28\",\n background: \"ffeef0\",\n token: \"punctuation.definition.deleted\",\n },\n {\n foreground: \"176f2c\",\n background: \"f0fff4\",\n token: \"markup.inserted\",\n },\n {\n foreground: \"176f2c\",\n background: \"f0fff4\",\n token: \"meta.diff.header.to-file\",\n },\n {\n foreground: \"176f2c\",\n background: \"f0fff4\",\n token: \"punctuation.definition.inserted\",\n },\n {\n foreground: \"b08800\",\n background: \"fffdef\",\n token: \"markup.changed\",\n },\n {\n foreground: \"b08800\",\n background: \"fffdef\",\n token: \"punctuation.definition.changed\",\n },\n {\n foreground: \"2f363d\",\n background: \"959da5\",\n token: \"markup.ignored\",\n },\n {\n foreground: \"2f363d\",\n background: \"959da5\",\n token: \"markup.untracked\",\n },\n {\n foreground: \"b392f0\",\n fontStyle: \"bold\",\n token: \"meta.diff.range\",\n },\n {\n foreground: \"c8e1ff\",\n token: \"meta.diff.header\",\n },\n {\n foreground: \"0366d6\",\n fontStyle: \"bold\",\n token: \"meta.separator\",\n },\n {\n foreground: \"0366d6\",\n token: \"meta.output\",\n },\n {\n foreground: \"ffeef0\",\n token: \"brackethighlighter.tag\",\n },\n {\n foreground: \"ffeef0\",\n token: \"brackethighlighter.curly\",\n },\n {\n foreground: \"ffeef0\",\n token: \"brackethighlighter.round\",\n },\n {\n foreground: \"ffeef0\",\n token: \"brackethighlighter.square\",\n },\n {\n foreground: \"ffeef0\",\n token: \"brackethighlighter.angle\",\n },\n {\n foreground: \"ffeef0\",\n token: \"brackethighlighter.quote\",\n },\n {\n foreground: \"d73a49\",\n token: \"brackethighlighter.unmatched\",\n },\n {\n foreground: \"d73a49\",\n token: \"sublimelinter.mark.error\",\n },\n {\n foreground: \"fb8532\",\n token: \"sublimelinter.mark.warning\",\n },\n {\n foreground: \"6a737d\",\n token: \"sublimelinter.gutter-mark\",\n },\n {\n foreground: \"79b8ff\",\n fontStyle: \"underline\",\n token: \"constant.other.reference.link\",\n },\n {\n foreground: \"79b8ff\",\n fontStyle: \"underline\",\n token: \"string.other.link\",\n },\n ],\n colors: {\n \"editor.background\": \"#15171b\",\n \"editor.foreground\": \"#f6f8fa\",\n // \"editor.selectionBackground\": \"#4c2889\",\n // \"editor.inactiveSelectionBackground\": \"#444d56\",\n // \"editor.lineHighlightBackground\": \"#444d56\",\n \"editorCursor.foreground\": \"#ffffff\",\n \"editorWhitespace.foreground\": \"#6a737d\",\n \"editorIndentGuide.background\": \"#6a737d\",\n \"editorIndentGuide.activeBackground\": \"#f6f8fa\",\n \"editor.selectionHighlightBorder\": \"#444d56\",\n },\n});\n"],"mappings":"AAAA,YAAY,YAAY;AAGxB,OAAO,OAAO,YAAY,SAAS;AAAA,EACjC,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AAAA,IACL;AAAA,MACE,YAAY;AAAA,MACZ,OAAO;AAAA,IACT;AAAA,IACA;AAAA,MACE,YAAY;A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gCAAgC;AAAA,IAChC,sCAAsC;AAAA,IACtC,mCAAmC;AAAA,EACrC;AACF,CAAC;","names":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var page_guard_exports = {};
20
+ __export(page_guard_exports, {
21
+ PageGuard: () => PageGuard
22
+ });
23
+ module.exports = __toCommonJS(page_guard_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_core = require("@mantine/core");
26
+ function PageGuard({
27
+ isPending,
28
+ error,
29
+ children,
30
+ ...centerProps
31
+ }) {
32
+ if (isPending) {
33
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Center, { h: "30vh", ...centerProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Loader, { size: "xl" }) });
34
+ }
35
+ if (error) {
36
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Center, { h: "30vh", ...centerProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { children: error }) });
37
+ }
38
+ return children;
39
+ }
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ PageGuard
43
+ });
44
+ //# sourceMappingURL=page-guard.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/page-guard.tsx"],"sourcesContent":["import { Center, CenterProps, Loader, Text } from \"@mantine/core\";\nimport { ReactNode } from \"react\";\n\nexport interface PageGuardProps extends CenterProps {\n isPending?: boolean;\n error?: false | string;\n children?: ReactNode;\n}\n\nexport function PageGuard({\n isPending,\n error,\n children,\n ...centerProps\n}: PageGuardProps) {\n if (isPending) {\n return (\n <Center h=\"30vh\" {...centerProps}>\n <Loader size=\"xl\" />\n </Center>\n );\n }\n\n if (error) {\n return (\n <Center h=\"30vh\" {...centerProps}>\n <Text>{error}</Text>\n </Center>\n );\n }\n\n return children;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBQ;AAlBR,kBAAkD;AAS3C,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,MAAI,WAAW;AACb,WACE,4CAAC,sBAAO,GAAE,QAAQ,GAAG,aACnB,sDAAC,sBAAO,MAAK,MAAK,GACpB;AAAA,EAEJ;AAEA,MAAI,OAAO;AACT,WACE,4CAAC,sBAAO,GAAE,QAAQ,GAAG,aACnB,sDAAC,oBAAM,iBAAM,GACf;AAAA,EAEJ;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { ReactNode } from 'react';
4
+ import { CenterProps } from '@mantine/core';
5
+
6
+ interface PageGuardProps extends CenterProps {
7
+ isPending?: boolean;
8
+ error?: false | string;
9
+ children?: ReactNode;
10
+ }
11
+ declare function PageGuard({ isPending, error, children, ...centerProps }: PageGuardProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
12
+
13
+ export { PageGuard, type PageGuardProps };
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { ReactNode } from 'react';
4
+ import { CenterProps } from '@mantine/core';
5
+
6
+ interface PageGuardProps extends CenterProps {
7
+ isPending?: boolean;
8
+ error?: false | string;
9
+ children?: ReactNode;
10
+ }
11
+ declare function PageGuard({ isPending, error, children, ...centerProps }: PageGuardProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
12
+
13
+ export { PageGuard, type PageGuardProps };
@@ -0,0 +1,20 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Center, Loader, Text } from "@mantine/core";
3
+ function PageGuard({
4
+ isPending,
5
+ error,
6
+ children,
7
+ ...centerProps
8
+ }) {
9
+ if (isPending) {
10
+ return /* @__PURE__ */ jsx(Center, { h: "30vh", ...centerProps, children: /* @__PURE__ */ jsx(Loader, { size: "xl" }) });
11
+ }
12
+ if (error) {
13
+ return /* @__PURE__ */ jsx(Center, { h: "30vh", ...centerProps, children: /* @__PURE__ */ jsx(Text, { children: error }) });
14
+ }
15
+ return children;
16
+ }
17
+ export {
18
+ PageGuard
19
+ };
20
+ //# sourceMappingURL=page-guard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/page-guard.tsx"],"sourcesContent":["import { Center, CenterProps, Loader, Text } from \"@mantine/core\";\nimport { ReactNode } from \"react\";\n\nexport interface PageGuardProps extends CenterProps {\n isPending?: boolean;\n error?: false | string;\n children?: ReactNode;\n}\n\nexport function PageGuard({\n isPending,\n error,\n children,\n ...centerProps\n}: PageGuardProps) {\n if (isPending) {\n return (\n <Center h=\"30vh\" {...centerProps}>\n <Loader size=\"xl\" />\n </Center>\n );\n }\n\n if (error) {\n return (\n <Center h=\"30vh\" {...centerProps}>\n <Text>{error}</Text>\n </Center>\n );\n }\n\n return children;\n}\n"],"mappings":"AAkBQ;AAlBR,SAAS,QAAqB,QAAQ,YAAY;AAS3C,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,MAAI,WAAW;AACb,WACE,oBAAC,UAAO,GAAE,QAAQ,GAAG,aACnB,8BAAC,UAAO,MAAK,MAAK,GACpB;AAAA,EAEJ;AAEA,MAAI,OAAO;AACT,WACE,oBAAC,UAAO,GAAE,QAAQ,GAAG,aACnB,8BAAC,QAAM,iBAAM,GACf;AAAA,EAEJ;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var page_exports = {};
20
+ __export(page_exports, {
21
+ Page: () => Page
22
+ });
23
+ module.exports = __toCommonJS(page_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_core = require("@mantine/core");
26
+ var import_lucide_react = require("lucide-react");
27
+ var import_react = require("react");
28
+ const Page = (0, import_core.createPolymorphicComponent)(
29
+ (0, import_react.forwardRef)(
30
+ ({
31
+ title,
32
+ icon,
33
+ description,
34
+ rightTitle,
35
+ aboveTitle,
36
+ customTitle,
37
+ customDescription,
38
+ oppositeTitle,
39
+ actions,
40
+ children,
41
+ ...stackProps
42
+ }, ref) => {
43
+ const Icon = icon ?? import_lucide_react.CircleQuestionMark;
44
+ const titleNode = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
45
+ import_core.Paper,
46
+ {
47
+ w: { base: "100%", xs: "fit-content" },
48
+ px: "xl",
49
+ py: "xs",
50
+ style: {
51
+ border: "1px solid var(--mantine-color-accent-border-0)"
52
+ },
53
+ children: [
54
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "sm", children: [
55
+ customTitle ? customTitle : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
56
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { size: 22 }),
57
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fz: "h2", children: title })
58
+ ] }),
59
+ rightTitle
60
+ ] }),
61
+ customDescription ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Group, { gap: "md", c: "dimmed", children: customDescription }) : description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "md", c: "dimmed", children: description })
62
+ ]
63
+ }
64
+ );
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { ...stackProps, ref, children: [
66
+ aboveTitle,
67
+ oppositeTitle ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { justify: "space-between", align: "start", children: [
68
+ titleNode,
69
+ oppositeTitle
70
+ ] }) : titleNode,
71
+ actions && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Group, { gap: "sm", children: actions }),
72
+ children
73
+ ] });
74
+ }
75
+ )
76
+ );
77
+ // Annotate the CommonJS export names for ESM import in node:
78
+ 0 && (module.exports = {
79
+ Page
80
+ });
81
+ //# sourceMappingURL=page.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/page.tsx"],"sourcesContent":["import {\n createPolymorphicComponent,\n Group,\n Paper,\n Stack,\n StackProps,\n Text,\n} from \"@mantine/core\";\nimport { CircleQuestionMark } from \"lucide-react\";\nimport { FC, forwardRef, ReactNode } from \"react\";\n\n// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components\n\nexport interface PageProps extends StackProps {\n title?: string;\n icon?: FC<{ size?: string | number }>;\n description?: ReactNode;\n rightTitle?: ReactNode;\n aboveTitle?: ReactNode;\n /** The right hand side of page opposite the title */\n oppositeTitle?: ReactNode;\n /* Replace the default title / icon with a full custom ReactNode */\n customTitle?: ReactNode;\n customDescription?: ReactNode;\n actions?: ReactNode;\n children?: ReactNode;\n}\n\nexport const Page = createPolymorphicComponent<\"div\", PageProps>(\n forwardRef<HTMLDivElement, PageProps>(\n (\n {\n title,\n icon,\n description,\n rightTitle,\n aboveTitle,\n customTitle,\n customDescription,\n oppositeTitle,\n actions,\n children,\n ...stackProps\n },\n ref,\n ) => {\n const Icon = icon ?? CircleQuestionMark;\n const titleNode = (\n <Paper\n w={{ base: \"100%\", xs: \"fit-content\" }}\n px=\"xl\"\n py=\"xs\"\n style={{\n border: \"1px solid var(--mantine-color-accent-border-0)\",\n }}\n >\n <Group gap=\"sm\">\n {customTitle ? (\n customTitle\n ) : (\n <>\n <Icon size={22} />\n <Text fz=\"h2\">{title}</Text>\n </>\n )}\n {rightTitle}\n </Group>\n {customDescription ? (\n <Group gap=\"md\" c=\"dimmed\">\n {customDescription}\n </Group>\n ) : (\n description && (\n <Text size=\"md\" c=\"dimmed\">\n {description}\n </Text>\n )\n )}\n </Paper>\n );\n return (\n <Stack {...stackProps} ref={ref}>\n {aboveTitle}\n {oppositeTitle ? (\n <Group justify=\"space-between\" align=\"start\">\n {titleNode}\n {oppositeTitle}\n </Group>\n ) : (\n titleNode\n )}\n\n {actions && <Group gap=\"sm\">{actions}</Group>}\n\n {children}\n </Stack>\n );\n },\n ),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA4Dc;AA5Dd,kBAOO;AACP,0BAAmC;AACnC,mBAA0C;AAmBnC,MAAM,WAAO;AAAA,MAClB;AAAA,IACE,CACE;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACL,GACA,QACG;AACH,YAAM,OAAO,QAAQ;AACrB,YAAM,YACJ;AAAA,QAAC;AAAA;AAAA,UACC,GAAG,EAAE,MAAM,QAAQ,IAAI,cAAc;AAAA,UACrC,IAAG;AAAA,UACH,IAAG;AAAA,UACH,OAAO;AAAA,YACL,QAAQ;AAAA,UACV;AAAA,UAEA;AAAA,yDAAC,qBAAM,KAAI,MACR;AAAA,4BACC,cAEA,4EACE;AAAA,4DAAC,QAAK,MAAM,IAAI;AAAA,gBAChB,4CAAC,oBAAK,IAAG,MAAM,iBAAM;AAAA,iBACvB;AAAA,cAED;AAAA,eACH;AAAA,YACC,oBACC,4CAAC,qBAAM,KAAI,MAAK,GAAE,UACf,6BACH,IAEA,eACE,4CAAC,oBAAK,MAAK,MAAK,GAAE,UACf,uBACH;AAAA;AAAA;AAAA,MAGN;AAEF,aACE,6CAAC,qBAAO,GAAG,YAAY,KACpB;AAAA;AAAA,QACA,gBACC,6CAAC,qBAAM,SAAQ,iBAAgB,OAAM,SAClC;AAAA;AAAA,UACA;AAAA,WACH,IAEA;AAAA,QAGD,WAAW,4CAAC,qBAAM,KAAI,MAAM,mBAAQ;AAAA,QAEpC;AAAA,SACH;AAAA,IAEJ;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,31 @@
1
+ import * as react from 'react';
2
+ import { FC, ReactNode } from 'react';
3
+ import * as _mantine_core from '@mantine/core';
4
+ import { StackProps } from '@mantine/core';
5
+
6
+ interface PageProps extends StackProps {
7
+ title?: string;
8
+ icon?: FC<{
9
+ size?: string | number;
10
+ }>;
11
+ description?: ReactNode;
12
+ rightTitle?: ReactNode;
13
+ aboveTitle?: ReactNode;
14
+ /** The right hand side of page opposite the title */
15
+ oppositeTitle?: ReactNode;
16
+ customTitle?: ReactNode;
17
+ customDescription?: ReactNode;
18
+ actions?: ReactNode;
19
+ children?: ReactNode;
20
+ }
21
+ declare const Page: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, PageProps>) => React.ReactElement) & Omit<react.FunctionComponent<(PageProps & {
22
+ component?: any;
23
+ } & Omit<any, "component" | keyof PageProps> & {
24
+ ref?: any;
25
+ renderRoot?: (props: any) => any;
26
+ }) | (PageProps & {
27
+ component: React.ElementType;
28
+ renderRoot?: (props: Record<string, any>) => any;
29
+ })>, never> & Record<string, never>;
30
+
31
+ export { Page, type PageProps };
@@ -0,0 +1,31 @@
1
+ import * as react from 'react';
2
+ import { FC, ReactNode } from 'react';
3
+ import * as _mantine_core from '@mantine/core';
4
+ import { StackProps } from '@mantine/core';
5
+
6
+ interface PageProps extends StackProps {
7
+ title?: string;
8
+ icon?: FC<{
9
+ size?: string | number;
10
+ }>;
11
+ description?: ReactNode;
12
+ rightTitle?: ReactNode;
13
+ aboveTitle?: ReactNode;
14
+ /** The right hand side of page opposite the title */
15
+ oppositeTitle?: ReactNode;
16
+ customTitle?: ReactNode;
17
+ customDescription?: ReactNode;
18
+ actions?: ReactNode;
19
+ children?: ReactNode;
20
+ }
21
+ declare const Page: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, PageProps>) => React.ReactElement) & Omit<react.FunctionComponent<(PageProps & {
22
+ component?: any;
23
+ } & Omit<any, "component" | keyof PageProps> & {
24
+ ref?: any;
25
+ renderRoot?: (props: any) => any;
26
+ }) | (PageProps & {
27
+ component: React.ElementType;
28
+ renderRoot?: (props: Record<string, any>) => any;
29
+ })>, never> & Record<string, never>;
30
+
31
+ export { Page, type PageProps };
@@ -0,0 +1,63 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import {
3
+ createPolymorphicComponent,
4
+ Group,
5
+ Paper,
6
+ Stack,
7
+ Text
8
+ } from "@mantine/core";
9
+ import { CircleQuestionMark } from "lucide-react";
10
+ import { forwardRef } from "react";
11
+ const Page = createPolymorphicComponent(
12
+ forwardRef(
13
+ ({
14
+ title,
15
+ icon,
16
+ description,
17
+ rightTitle,
18
+ aboveTitle,
19
+ customTitle,
20
+ customDescription,
21
+ oppositeTitle,
22
+ actions,
23
+ children,
24
+ ...stackProps
25
+ }, ref) => {
26
+ const Icon = icon ?? CircleQuestionMark;
27
+ const titleNode = /* @__PURE__ */ jsxs(
28
+ Paper,
29
+ {
30
+ w: { base: "100%", xs: "fit-content" },
31
+ px: "xl",
32
+ py: "xs",
33
+ style: {
34
+ border: "1px solid var(--mantine-color-accent-border-0)"
35
+ },
36
+ children: [
37
+ /* @__PURE__ */ jsxs(Group, { gap: "sm", children: [
38
+ customTitle ? customTitle : /* @__PURE__ */ jsxs(Fragment, { children: [
39
+ /* @__PURE__ */ jsx(Icon, { size: 22 }),
40
+ /* @__PURE__ */ jsx(Text, { fz: "h2", children: title })
41
+ ] }),
42
+ rightTitle
43
+ ] }),
44
+ customDescription ? /* @__PURE__ */ jsx(Group, { gap: "md", c: "dimmed", children: customDescription }) : description && /* @__PURE__ */ jsx(Text, { size: "md", c: "dimmed", children: description })
45
+ ]
46
+ }
47
+ );
48
+ return /* @__PURE__ */ jsxs(Stack, { ...stackProps, ref, children: [
49
+ aboveTitle,
50
+ oppositeTitle ? /* @__PURE__ */ jsxs(Group, { justify: "space-between", align: "start", children: [
51
+ titleNode,
52
+ oppositeTitle
53
+ ] }) : titleNode,
54
+ actions && /* @__PURE__ */ jsx(Group, { gap: "sm", children: actions }),
55
+ children
56
+ ] });
57
+ }
58
+ )
59
+ );
60
+ export {
61
+ Page
62
+ };
63
+ //# sourceMappingURL=page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/page.tsx"],"sourcesContent":["import {\n createPolymorphicComponent,\n Group,\n Paper,\n Stack,\n StackProps,\n Text,\n} from \"@mantine/core\";\nimport { CircleQuestionMark } from \"lucide-react\";\nimport { FC, forwardRef, ReactNode } from \"react\";\n\n// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components\n\nexport interface PageProps extends StackProps {\n title?: string;\n icon?: FC<{ size?: string | number }>;\n description?: ReactNode;\n rightTitle?: ReactNode;\n aboveTitle?: ReactNode;\n /** The right hand side of page opposite the title */\n oppositeTitle?: ReactNode;\n /* Replace the default title / icon with a full custom ReactNode */\n customTitle?: ReactNode;\n customDescription?: ReactNode;\n actions?: ReactNode;\n children?: ReactNode;\n}\n\nexport const Page = createPolymorphicComponent<\"div\", PageProps>(\n forwardRef<HTMLDivElement, PageProps>(\n (\n {\n title,\n icon,\n description,\n rightTitle,\n aboveTitle,\n customTitle,\n customDescription,\n oppositeTitle,\n actions,\n children,\n ...stackProps\n },\n ref,\n ) => {\n const Icon = icon ?? CircleQuestionMark;\n const titleNode = (\n <Paper\n w={{ base: \"100%\", xs: \"fit-content\" }}\n px=\"xl\"\n py=\"xs\"\n style={{\n border: \"1px solid var(--mantine-color-accent-border-0)\",\n }}\n >\n <Group gap=\"sm\">\n {customTitle ? (\n customTitle\n ) : (\n <>\n <Icon size={22} />\n <Text fz=\"h2\">{title}</Text>\n </>\n )}\n {rightTitle}\n </Group>\n {customDescription ? (\n <Group gap=\"md\" c=\"dimmed\">\n {customDescription}\n </Group>\n ) : (\n description && (\n <Text size=\"md\" c=\"dimmed\">\n {description}\n </Text>\n )\n )}\n </Paper>\n );\n return (\n <Stack {...stackProps} ref={ref}>\n {aboveTitle}\n {oppositeTitle ? (\n <Group justify=\"space-between\" align=\"start\">\n {titleNode}\n {oppositeTitle}\n </Group>\n ) : (\n titleNode\n )}\n\n {actions && <Group gap=\"sm\">{actions}</Group>}\n\n {children}\n </Stack>\n );\n },\n ),\n);\n"],"mappings":"AA4Dc,mBACE,KADF;AA5Dd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,OACK;AACP,SAAS,0BAA0B;AACnC,SAAa,kBAA6B;AAmBnC,MAAM,OAAO;AAAA,EAClB;AAAA,IACE,CACE;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACL,GACA,QACG;AACH,YAAM,OAAO,QAAQ;AACrB,YAAM,YACJ;AAAA,QAAC;AAAA;AAAA,UACC,GAAG,EAAE,MAAM,QAAQ,IAAI,cAAc;AAAA,UACrC,IAAG;AAAA,UACH,IAAG;AAAA,UACH,OAAO;AAAA,YACL,QAAQ;AAAA,UACV;AAAA,UAEA;AAAA,iCAAC,SAAM,KAAI,MACR;AAAA,4BACC,cAEA,iCACE;AAAA,oCAAC,QAAK,MAAM,IAAI;AAAA,gBAChB,oBAAC,QAAK,IAAG,MAAM,iBAAM;AAAA,iBACvB;AAAA,cAED;AAAA,eACH;AAAA,YACC,oBACC,oBAAC,SAAM,KAAI,MAAK,GAAE,UACf,6BACH,IAEA,eACE,oBAAC,QAAK,MAAK,MAAK,GAAE,UACf,uBACH;AAAA;AAAA;AAAA,MAGN;AAEF,aACE,qBAAC,SAAO,GAAG,YAAY,KACpB;AAAA;AAAA,QACA,gBACC,qBAAC,SAAM,SAAQ,iBAAgB,OAAM,SAClC;AAAA;AAAA,UACA;AAAA,WACH,IAEA;AAAA,QAGD,WAAW,oBAAC,SAAM,KAAI,MAAM,mBAAQ;AAAA,QAEpC;AAAA,SACH;AAAA,IAEJ;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var search_input_exports = {};
20
+ __export(search_input_exports, {
21
+ SearchInput: () => SearchInput
22
+ });
23
+ module.exports = __toCommonJS(search_input_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_core = require("@mantine/core");
26
+ var import_lucide_react = require("lucide-react");
27
+ function SearchInput({
28
+ onSearch,
29
+ onChange,
30
+ ...inputProps
31
+ }) {
32
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
33
+ import_core.TextInput,
34
+ {
35
+ placeholder: "search...",
36
+ leftSection: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Search, { size: "0.8rem" }),
37
+ w: { base: "100%", xs: 220 },
38
+ onChange: (e) => {
39
+ onChange?.(e);
40
+ onSearch?.(e.target.value);
41
+ },
42
+ onClick: (e) => e.stopPropagation(),
43
+ ...inputProps
44
+ }
45
+ );
46
+ }
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ SearchInput
50
+ });
51
+ //# sourceMappingURL=search-input.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/search-input.tsx"],"sourcesContent":["import { TextInput, TextInputProps } from \"@mantine/core\";\nimport { Search } from \"lucide-react\";\n\nexport interface SearchInputProps extends TextInputProps {\n onSearch?: (search: string) => void;\n}\n\nexport function SearchInput({\n onSearch,\n onChange,\n ...inputProps\n}: SearchInputProps) {\n return (\n <TextInput\n placeholder=\"search...\"\n leftSection={<Search size=\"0.8rem\" />}\n w={{ base: \"100%\", xs: 220 }}\n onChange={(e) => {\n onChange?.(e);\n onSearch?.(e.target.value);\n }}\n onClick={(e) => e.stopPropagation()}\n {...inputProps}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAemB;AAfnB,kBAA0C;AAC1C,0BAAuB;AAMhB,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAqB;AACnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAY;AAAA,MACZ,aAAa,4CAAC,8BAAO,MAAK,UAAS;AAAA,MACnC,GAAG,EAAE,MAAM,QAAQ,IAAI,IAAI;AAAA,MAC3B,UAAU,CAAC,MAAM;AACf,mBAAW,CAAC;AACZ,mBAAW,EAAE,OAAO,KAAK;AAAA,MAC3B;AAAA,MACA,SAAS,CAAC,MAAM,EAAE,gBAAgB;AAAA,MACjC,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { TextInputProps } from '@mantine/core';
3
+
4
+ interface SearchInputProps extends TextInputProps {
5
+ onSearch?: (search: string) => void;
6
+ }
7
+ declare function SearchInput({ onSearch, onChange, ...inputProps }: SearchInputProps): react_jsx_runtime.JSX.Element;
8
+
9
+ export { SearchInput, type SearchInputProps };
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { TextInputProps } from '@mantine/core';
3
+
4
+ interface SearchInputProps extends TextInputProps {
5
+ onSearch?: (search: string) => void;
6
+ }
7
+ declare function SearchInput({ onSearch, onChange, ...inputProps }: SearchInputProps): react_jsx_runtime.JSX.Element;
8
+
9
+ export { SearchInput, type SearchInputProps };
@@ -0,0 +1,27 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { TextInput } from "@mantine/core";
3
+ import { Search } from "lucide-react";
4
+ function SearchInput({
5
+ onSearch,
6
+ onChange,
7
+ ...inputProps
8
+ }) {
9
+ return /* @__PURE__ */ jsx(
10
+ TextInput,
11
+ {
12
+ placeholder: "search...",
13
+ leftSection: /* @__PURE__ */ jsx(Search, { size: "0.8rem" }),
14
+ w: { base: "100%", xs: 220 },
15
+ onChange: (e) => {
16
+ onChange?.(e);
17
+ onSearch?.(e.target.value);
18
+ },
19
+ onClick: (e) => e.stopPropagation(),
20
+ ...inputProps
21
+ }
22
+ );
23
+ }
24
+ export {
25
+ SearchInput
26
+ };
27
+ //# sourceMappingURL=search-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/search-input.tsx"],"sourcesContent":["import { TextInput, TextInputProps } from \"@mantine/core\";\nimport { Search } from \"lucide-react\";\n\nexport interface SearchInputProps extends TextInputProps {\n onSearch?: (search: string) => void;\n}\n\nexport function SearchInput({\n onSearch,\n onChange,\n ...inputProps\n}: SearchInputProps) {\n return (\n <TextInput\n placeholder=\"search...\"\n leftSection={<Search size=\"0.8rem\" />}\n w={{ base: \"100%\", xs: 220 }}\n onChange={(e) => {\n onChange?.(e);\n onSearch?.(e.target.value);\n }}\n onClick={(e) => e.stopPropagation()}\n {...inputProps}\n />\n );\n}\n"],"mappings":"AAemB;AAfnB,SAAS,iBAAiC;AAC1C,SAAS,cAAc;AAMhB,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAqB;AACnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAY;AAAA,MACZ,aAAa,oBAAC,UAAO,MAAK,UAAS;AAAA,MACnC,GAAG,EAAE,MAAM,QAAQ,IAAI,IAAI;AAAA,MAC3B,UAAU,CAAC,MAAM;AACf,mBAAW,CAAC;AACZ,mBAAW,EAAE,OAAO,KAAK;AAAA,MAC3B;AAAA,MACA,SAAS,CAAC,MAAM,EAAE,gBAAgB;AAAA,MACjC,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var section_exports = {};
20
+ __export(section_exports, {
21
+ Section: () => Section
22
+ });
23
+ module.exports = __toCommonJS(section_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_core = require("@mantine/core");
26
+ var import_react = require("react");
27
+ const Section = (0, import_core.createPolymorphicComponent)(
28
+ (0, import_react.forwardRef)(
29
+ ({
30
+ titleFz = "h2",
31
+ titleMb,
32
+ title,
33
+ titleDimmed,
34
+ titleNode,
35
+ icon,
36
+ titleRight,
37
+ titleOther,
38
+ description,
39
+ actions,
40
+ children,
41
+ withBorder,
42
+ isPending,
43
+ error,
44
+ guardProps,
45
+ forceHeaderGroup,
46
+ onHeaderClick,
47
+ ...props
48
+ }, ref) => {
49
+ const TitleComponentInner = (title || titleNode || icon || titleRight || titleOther || actions) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
50
+ title || titleNode || icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { c: titleDimmed ? "dimmed" : void 0, gap: "xs", children: [
51
+ icon,
52
+ title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fz: titleFz, children: title }),
53
+ titleNode,
54
+ titleRight
55
+ ] }) : titleRight ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { c: titleDimmed ? "dimmed" : void 0, gap: "xs", children: [
56
+ titleOther,
57
+ titleRight
58
+ ] }) : titleOther,
59
+ actions
60
+ ] });
61
+ const TitleComponent = TitleComponentInner && (forceHeaderGroup ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Group, { justify: "space-between", children: TitleComponentInner }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
62
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Stack, { hiddenFrom: "xs", children: TitleComponentInner }),
63
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Group, { visibleFrom: "xs", justify: "space-between", children: TitleComponentInner })
64
+ ] }));
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
66
+ import_core.Stack,
67
+ {
68
+ px: withBorder ? "lg" : void 0,
69
+ pt: withBorder ? TitleComponent || description ? "sm" : "lg" : void 0,
70
+ pb: withBorder ? "lg" : void 0,
71
+ bdrs: "md",
72
+ className: withBorder ? "bordered-light" : void 0,
73
+ ...props,
74
+ ref,
75
+ children: [
76
+ (TitleComponent || description) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
77
+ import_core.Stack,
78
+ {
79
+ gap: "0.2rem",
80
+ mb: titleMb,
81
+ onClick: onHeaderClick,
82
+ style: { cursor: onHeaderClick && "pointer" },
83
+ children: [
84
+ TitleComponent,
85
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { c: "dimmed", children: description })
86
+ ]
87
+ }
88
+ ),
89
+ isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Center, { ...guardProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Loader, { size: "xl" }) }) : error ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Center, { ...guardProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { children: error }) }) : children
90
+ ]
91
+ }
92
+ );
93
+ }
94
+ )
95
+ );
96
+ // Annotate the CommonJS export names for ESM import in node:
97
+ 0 && (module.exports = {
98
+ Section
99
+ });
100
+ //# sourceMappingURL=section.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/section.tsx"],"sourcesContent":["import {\n Center,\n CenterProps,\n createPolymorphicComponent,\n Group,\n Loader,\n MantineStyleProps,\n Stack,\n StackProps,\n Text,\n} from \"@mantine/core\";\nimport { forwardRef, ReactNode } from \"react\";\n\n// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components\n\nexport interface SectionProps extends StackProps {\n titleFz?: MantineStyleProps[\"fz\"];\n titleMb?: MantineStyleProps[\"mb\"];\n titleDimmed?: boolean;\n titleNode?: ReactNode;\n icon?: ReactNode;\n titleRight?: ReactNode;\n titleOther?: ReactNode;\n description?: ReactNode;\n actions?: ReactNode;\n withBorder?: boolean;\n isPending?: boolean;\n error?: false | string;\n guardProps?: CenterProps;\n forceHeaderGroup?: boolean;\n onHeaderClick?: () => void;\n}\n\nexport const Section = createPolymorphicComponent<\"div\", SectionProps>(\n forwardRef<HTMLDivElement, SectionProps>(\n (\n {\n titleFz = \"h2\",\n titleMb,\n title,\n titleDimmed,\n titleNode,\n icon,\n titleRight,\n titleOther,\n description,\n actions,\n children,\n withBorder,\n isPending,\n error,\n guardProps,\n forceHeaderGroup,\n onHeaderClick,\n ...props\n },\n ref,\n ) => {\n const TitleComponentInner = (title ||\n titleNode ||\n icon ||\n titleRight ||\n titleOther ||\n actions) && (\n <>\n {title || titleNode || icon ? (\n <Group c={titleDimmed ? \"dimmed\" : undefined} gap=\"xs\">\n {icon}\n {title && <Text fz={titleFz}>{title}</Text>}\n {titleNode}\n {titleRight}\n </Group>\n ) : titleRight ? (\n <Group c={titleDimmed ? \"dimmed\" : undefined} gap=\"xs\">\n {titleOther}\n {titleRight}\n </Group>\n ) : (\n titleOther\n )}\n {actions}\n </>\n );\n\n const TitleComponent =\n TitleComponentInner &&\n (forceHeaderGroup ? (\n <Group justify=\"space-between\">{TitleComponentInner}</Group>\n ) : (\n <>\n <Stack hiddenFrom=\"xs\">{TitleComponentInner}</Stack>\n <Group visibleFrom=\"xs\" justify=\"space-between\">\n {TitleComponentInner}\n </Group>\n </>\n ));\n\n return (\n <Stack\n px={withBorder ? \"lg\" : undefined}\n pt={\n withBorder\n ? TitleComponent || description\n ? \"sm\"\n : \"lg\"\n : undefined\n }\n pb={withBorder ? \"lg\" : undefined}\n bdrs=\"md\"\n className={withBorder ? \"bordered-light\" : undefined}\n {...props}\n ref={ref}\n >\n {(TitleComponent || description) && (\n <Stack\n gap=\"0.2rem\"\n mb={titleMb}\n onClick={onHeaderClick}\n style={{ cursor: onHeaderClick && \"pointer\" }}\n >\n {TitleComponent}\n {description && <Text c=\"dimmed\">{description}</Text>}\n </Stack>\n )}\n {isPending ? (\n <Center {...guardProps}>\n <Loader size=\"xl\" />\n </Center>\n ) : error ? (\n <Center {...guardProps}>\n <Text>{error}</Text>\n </Center>\n ) : (\n children\n )}\n </Stack>\n );\n },\n ),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgEQ;AAhER,kBAUO;AACP,mBAAsC;AAsB/B,MAAM,cAAU;AAAA,MACrB;AAAA,IACE,CACE;AAAA,MACE,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACL,GACA,QACG;AACH,YAAM,uBAAuB,SAC3B,aACA,QACA,cACA,cACA,YACA,4EACG;AAAA,iBAAS,aAAa,OACrB,6CAAC,qBAAM,GAAG,cAAc,WAA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