@md-code/components 0.0.0-stage → 0.0.2

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 (344) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +202 -0
  3. package/README.md +77 -2
  4. package/dist/assets/favicon.ico +0 -0
  5. package/dist/assets/logo.png +0 -0
  6. package/dist/atoms/Loading/ouroboros.svg +41 -0
  7. package/dist/atoms/Logo/logo.jpg +0 -0
  8. package/dist/avatar.js +8 -0
  9. package/dist/badge.js +25 -0
  10. package/dist/breadcrumbs.js +60 -0
  11. package/dist/button.js +203 -0
  12. package/dist/calendar.js +101 -0
  13. package/dist/caption.js +14 -0
  14. package/dist/card.js +82 -0
  15. package/dist/carousel.js +125 -0
  16. package/dist/central-modal.js +22 -0
  17. package/dist/chip.js +42 -0
  18. package/dist/circle-image.js +22 -0
  19. package/dist/code-preview.js +38 -0
  20. package/dist/code-view-tokenizer.js +35 -0
  21. package/dist/code-view.js +96 -0
  22. package/dist/conditional-wrapper.js +5 -0
  23. package/dist/containers.js +115 -0
  24. package/dist/diff-legend.js +31 -0
  25. package/dist/div-input.js +103 -0
  26. package/dist/empty.js +12 -0
  27. package/dist/filter-bar.js +15 -0
  28. package/dist/form-label.js +19 -0
  29. package/dist/form.js +17 -0
  30. package/dist/full-screen-modal.js +27 -0
  31. package/dist/header.js +19 -0
  32. package/dist/html-editor.js +81 -0
  33. package/dist/icons.js +42 -0
  34. package/dist/input.js +62 -0
  35. package/dist/link.js +35 -0
  36. package/dist/loading.js +182 -0
  37. package/dist/logo.js +12 -0
  38. package/dist/modals.js +130 -0
  39. package/dist/molecules/Carousel/arrow.svg +5 -0
  40. package/dist/molecules/Select/arrow_down.svg +3 -0
  41. package/dist/mono-text.js +16 -0
  42. package/dist/nav-tabs.js +33 -0
  43. package/dist/page-header.js +20 -0
  44. package/dist/pagination.js +119 -0
  45. package/dist/progress-bar.js +26 -0
  46. package/dist/radio.js +73 -0
  47. package/dist/report-ui.js +358 -0
  48. package/dist/row.js +15 -0
  49. package/dist/score-panel.js +125 -0
  50. package/dist/score-pills.js +25 -0
  51. package/dist/search-input.js +84 -0
  52. package/dist/select.js +164 -0
  53. package/dist/separator.js +16 -0
  54. package/dist/slider-field.js +34 -0
  55. package/dist/stack.js +16 -0
  56. package/dist/stat-grid.js +10 -0
  57. package/dist/stat.js +24 -0
  58. package/dist/status-label.js +63 -0
  59. package/dist/status-text.js +13 -0
  60. package/dist/submit.js +57 -0
  61. package/dist/subtle-text.js +14 -0
  62. package/dist/surface.js +39 -0
  63. package/dist/switch.js +99 -0
  64. package/dist/table.js +132 -0
  65. package/dist/tabs.js +156 -0
  66. package/dist/text-checkbox.js +64 -0
  67. package/dist/text-link.js +20 -0
  68. package/dist/textarea.js +56 -0
  69. package/dist/textures/Cloud/clouds.svg +52 -0
  70. package/dist/textures.js +170 -0
  71. package/dist/toasts.js +79 -0
  72. package/dist/toggle.js +66 -0
  73. package/dist/token-input-field.js +56 -0
  74. package/dist/tooltip.js +95 -0
  75. package/dist/types/atoms/Avatar/index.d.ts +6 -0
  76. package/dist/types/atoms/Avatar/index.d.ts.map +1 -0
  77. package/dist/types/atoms/Breadcrumbs/index.d.ts +10 -0
  78. package/dist/types/atoms/Breadcrumbs/index.d.ts.map +1 -0
  79. package/dist/types/atoms/Breadcrumbs/styles.d.ts +95 -0
  80. package/dist/types/atoms/Breadcrumbs/styles.d.ts.map +1 -0
  81. package/dist/types/atoms/Calendar/index.d.ts +4 -0
  82. package/dist/types/atoms/Calendar/index.d.ts.map +1 -0
  83. package/dist/types/atoms/Calendar/styles.d.ts +12 -0
  84. package/dist/types/atoms/Calendar/styles.d.ts.map +1 -0
  85. package/dist/types/atoms/Caption/index.d.ts +9 -0
  86. package/dist/types/atoms/Caption/index.d.ts.map +1 -0
  87. package/dist/types/atoms/Caption/styles.d.ts +9 -0
  88. package/dist/types/atoms/Caption/styles.d.ts.map +1 -0
  89. package/dist/types/atoms/CentralModal/index.d.ts +3 -0
  90. package/dist/types/atoms/CentralModal/index.d.ts.map +1 -0
  91. package/dist/types/atoms/Chip/index.d.ts +39 -0
  92. package/dist/types/atoms/Chip/index.d.ts.map +1 -0
  93. package/dist/types/atoms/Chip/styles.d.ts +19 -0
  94. package/dist/types/atoms/Chip/styles.d.ts.map +1 -0
  95. package/dist/types/atoms/CircleImage/index.d.ts +13 -0
  96. package/dist/types/atoms/CircleImage/index.d.ts.map +1 -0
  97. package/dist/types/atoms/CodePreview/index.d.ts +23 -0
  98. package/dist/types/atoms/CodePreview/index.d.ts.map +1 -0
  99. package/dist/types/atoms/ConditionalWrapper/index.d.ts +8 -0
  100. package/dist/types/atoms/ConditionalWrapper/index.d.ts.map +1 -0
  101. package/dist/types/atoms/Containers/index.d.ts +3 -0
  102. package/dist/types/atoms/Containers/index.d.ts.map +1 -0
  103. package/dist/types/atoms/Containers/styles.d.ts +87 -0
  104. package/dist/types/atoms/Containers/styles.d.ts.map +1 -0
  105. package/dist/types/atoms/DivInput/index.d.ts +18 -0
  106. package/dist/types/atoms/DivInput/index.d.ts.map +1 -0
  107. package/dist/types/atoms/Empty/index.d.ts +10 -0
  108. package/dist/types/atoms/Empty/index.d.ts.map +1 -0
  109. package/dist/types/atoms/Empty/styles.d.ts +9 -0
  110. package/dist/types/atoms/Empty/styles.d.ts.map +1 -0
  111. package/dist/types/atoms/Form/Form.d.ts +15 -0
  112. package/dist/types/atoms/Form/Form.d.ts.map +1 -0
  113. package/dist/types/atoms/Form/index.d.ts +13 -0
  114. package/dist/types/atoms/Form/index.d.ts.map +1 -0
  115. package/dist/types/atoms/FormLabel/index.d.ts +13 -0
  116. package/dist/types/atoms/FormLabel/index.d.ts.map +1 -0
  117. package/dist/types/atoms/FullScreenModal/index.d.ts +3 -0
  118. package/dist/types/atoms/FullScreenModal/index.d.ts.map +1 -0
  119. package/dist/types/atoms/Header/index.d.ts +3 -0
  120. package/dist/types/atoms/Header/index.d.ts.map +1 -0
  121. package/dist/types/atoms/Header/styles.d.ts +18 -0
  122. package/dist/types/atoms/Header/styles.d.ts.map +1 -0
  123. package/dist/types/atoms/Icons/index.d.ts +49 -0
  124. package/dist/types/atoms/Icons/index.d.ts.map +1 -0
  125. package/dist/types/atoms/Input/index.d.ts +3 -0
  126. package/dist/types/atoms/Input/index.d.ts.map +1 -0
  127. package/dist/types/atoms/Input/styles.d.ts +20 -0
  128. package/dist/types/atoms/Input/styles.d.ts.map +1 -0
  129. package/dist/types/atoms/Link/index.d.ts +3 -0
  130. package/dist/types/atoms/Link/index.d.ts.map +1 -0
  131. package/dist/types/atoms/Link/styles.d.ts +133 -0
  132. package/dist/types/atoms/Link/styles.d.ts.map +1 -0
  133. package/dist/types/atoms/Loading/index.d.ts +27 -0
  134. package/dist/types/atoms/Loading/index.d.ts.map +1 -0
  135. package/dist/types/atoms/Loading/styles.d.ts +31 -0
  136. package/dist/types/atoms/Loading/styles.d.ts.map +1 -0
  137. package/dist/types/atoms/Logo/index.d.ts +3 -0
  138. package/dist/types/atoms/Logo/index.d.ts.map +1 -0
  139. package/dist/types/atoms/MonoText/index.d.ts +23 -0
  140. package/dist/types/atoms/MonoText/index.d.ts.map +1 -0
  141. package/dist/types/atoms/MonoText/styles.d.ts +13 -0
  142. package/dist/types/atoms/MonoText/styles.d.ts.map +1 -0
  143. package/dist/types/atoms/Pagination/index.d.ts +9 -0
  144. package/dist/types/atoms/Pagination/index.d.ts.map +1 -0
  145. package/dist/types/atoms/Pagination/styles.d.ts +38 -0
  146. package/dist/types/atoms/Pagination/styles.d.ts.map +1 -0
  147. package/dist/types/atoms/ProgressBar/index.d.ts +13 -0
  148. package/dist/types/atoms/ProgressBar/index.d.ts.map +1 -0
  149. package/dist/types/atoms/Radio/index.d.ts +12 -0
  150. package/dist/types/atoms/Radio/index.d.ts.map +1 -0
  151. package/dist/types/atoms/Row/index.d.ts +8 -0
  152. package/dist/types/atoms/Row/index.d.ts.map +1 -0
  153. package/dist/types/atoms/Row/styles.d.ts +9 -0
  154. package/dist/types/atoms/Row/styles.d.ts.map +1 -0
  155. package/dist/types/atoms/Separator/index.d.ts +24 -0
  156. package/dist/types/atoms/Separator/index.d.ts.map +1 -0
  157. package/dist/types/atoms/Separator/styles.d.ts +14 -0
  158. package/dist/types/atoms/Separator/styles.d.ts.map +1 -0
  159. package/dist/types/atoms/Stack/index.d.ts +17 -0
  160. package/dist/types/atoms/Stack/index.d.ts.map +1 -0
  161. package/dist/types/atoms/Stack/styles.d.ts +12 -0
  162. package/dist/types/atoms/Stack/styles.d.ts.map +1 -0
  163. package/dist/types/atoms/Stat/index.d.ts +24 -0
  164. package/dist/types/atoms/Stat/index.d.ts.map +1 -0
  165. package/dist/types/atoms/Stat/styles.d.ts +19 -0
  166. package/dist/types/atoms/Stat/styles.d.ts.map +1 -0
  167. package/dist/types/atoms/StatusText/index.d.ts +17 -0
  168. package/dist/types/atoms/StatusText/index.d.ts.map +1 -0
  169. package/dist/types/atoms/StatusText/styles.d.ts +13 -0
  170. package/dist/types/atoms/StatusText/styles.d.ts.map +1 -0
  171. package/dist/types/atoms/Submit/index.d.ts +10 -0
  172. package/dist/types/atoms/Submit/index.d.ts.map +1 -0
  173. package/dist/types/atoms/SubtleText/index.d.ts +17 -0
  174. package/dist/types/atoms/SubtleText/index.d.ts.map +1 -0
  175. package/dist/types/atoms/SubtleText/styles.d.ts +12 -0
  176. package/dist/types/atoms/SubtleText/styles.d.ts.map +1 -0
  177. package/dist/types/atoms/Surface/index.d.ts +34 -0
  178. package/dist/types/atoms/Surface/index.d.ts.map +1 -0
  179. package/dist/types/atoms/Surface/styles.d.ts +27 -0
  180. package/dist/types/atoms/Surface/styles.d.ts.map +1 -0
  181. package/dist/types/atoms/Switch/index.d.ts +12 -0
  182. package/dist/types/atoms/Switch/index.d.ts.map +1 -0
  183. package/dist/types/atoms/Switch/styles.d.ts +31 -0
  184. package/dist/types/atoms/Switch/styles.d.ts.map +1 -0
  185. package/dist/types/atoms/Tabs/index.d.ts +18 -0
  186. package/dist/types/atoms/Tabs/index.d.ts.map +1 -0
  187. package/dist/types/atoms/Tabs/styles.d.ts +40 -0
  188. package/dist/types/atoms/Tabs/styles.d.ts.map +1 -0
  189. package/dist/types/atoms/TextCheckbox/index.d.ts +9 -0
  190. package/dist/types/atoms/TextCheckbox/index.d.ts.map +1 -0
  191. package/dist/types/atoms/TextLink/index.d.ts +22 -0
  192. package/dist/types/atoms/TextLink/index.d.ts.map +1 -0
  193. package/dist/types/atoms/TextLink/styles.d.ts +15 -0
  194. package/dist/types/atoms/TextLink/styles.d.ts.map +1 -0
  195. package/dist/types/atoms/Textarea/index.d.ts +19 -0
  196. package/dist/types/atoms/Textarea/index.d.ts.map +1 -0
  197. package/dist/types/atoms/Toggle/index.d.ts +16 -0
  198. package/dist/types/atoms/Toggle/index.d.ts.map +1 -0
  199. package/dist/types/atoms/Toggle/styles.d.ts +32 -0
  200. package/dist/types/atoms/Toggle/styles.d.ts.map +1 -0
  201. package/dist/types/atoms/Tooltip/index.d.ts +15 -0
  202. package/dist/types/atoms/Tooltip/index.d.ts.map +1 -0
  203. package/dist/types/atoms/Tooltip/styles.d.ts +24 -0
  204. package/dist/types/atoms/Tooltip/styles.d.ts.map +1 -0
  205. package/dist/types/atoms/Typography/index.d.ts +3 -0
  206. package/dist/types/atoms/Typography/index.d.ts.map +1 -0
  207. package/dist/types/atoms/Typography/styles.d.ts +72 -0
  208. package/dist/types/atoms/Typography/styles.d.ts.map +1 -0
  209. package/dist/types/atoms/Validation/index.d.ts +9 -0
  210. package/dist/types/atoms/Validation/index.d.ts.map +1 -0
  211. package/dist/types/atoms/Validation/styles.d.ts +23 -0
  212. package/dist/types/atoms/Validation/styles.d.ts.map +1 -0
  213. package/dist/types/atoms/WideImage/index.d.ts +26 -0
  214. package/dist/types/atoms/WideImage/index.d.ts.map +1 -0
  215. package/dist/types/molecules/Badge/index.d.ts +25 -0
  216. package/dist/types/molecules/Badge/index.d.ts.map +1 -0
  217. package/dist/types/molecules/Button/index.d.ts +31 -0
  218. package/dist/types/molecules/Button/index.d.ts.map +1 -0
  219. package/dist/types/molecules/Button/styles.d.ts +15 -0
  220. package/dist/types/molecules/Button/styles.d.ts.map +1 -0
  221. package/dist/types/molecules/Card/index.d.ts +16 -0
  222. package/dist/types/molecules/Card/index.d.ts.map +1 -0
  223. package/dist/types/molecules/Card/styles.d.ts +70 -0
  224. package/dist/types/molecules/Card/styles.d.ts.map +1 -0
  225. package/dist/types/molecules/Carousel/index.d.ts +13 -0
  226. package/dist/types/molecules/Carousel/index.d.ts.map +1 -0
  227. package/dist/types/molecules/Carousel/styles.d.ts +31 -0
  228. package/dist/types/molecules/Carousel/styles.d.ts.map +1 -0
  229. package/dist/types/molecules/Carousel/useIsMobile.d.ts +3 -0
  230. package/dist/types/molecules/Carousel/useIsMobile.d.ts.map +1 -0
  231. package/dist/types/molecules/CodeView/highlight.d.ts +11 -0
  232. package/dist/types/molecules/CodeView/highlight.d.ts.map +1 -0
  233. package/dist/types/molecules/CodeView/index.d.ts +58 -0
  234. package/dist/types/molecules/CodeView/index.d.ts.map +1 -0
  235. package/dist/types/molecules/CodeView/styles.d.ts +44 -0
  236. package/dist/types/molecules/CodeView/styles.d.ts.map +1 -0
  237. package/dist/types/molecules/CodeView/tokenizer.d.ts +21 -0
  238. package/dist/types/molecules/CodeView/tokenizer.d.ts.map +1 -0
  239. package/dist/types/molecules/DiffLegend/index.d.ts +20 -0
  240. package/dist/types/molecules/DiffLegend/index.d.ts.map +1 -0
  241. package/dist/types/molecules/DiffLegend/styles.d.ts +19 -0
  242. package/dist/types/molecules/DiffLegend/styles.d.ts.map +1 -0
  243. package/dist/types/molecules/FilterBar/index.d.ts +20 -0
  244. package/dist/types/molecules/FilterBar/index.d.ts.map +1 -0
  245. package/dist/types/molecules/FilterBar/styles.d.ts +15 -0
  246. package/dist/types/molecules/FilterBar/styles.d.ts.map +1 -0
  247. package/dist/types/molecules/HtmlEditor/index.d.ts +16 -0
  248. package/dist/types/molecules/HtmlEditor/index.d.ts.map +1 -0
  249. package/dist/types/molecules/HtmlEditor/styles.d.ts +12 -0
  250. package/dist/types/molecules/HtmlEditor/styles.d.ts.map +1 -0
  251. package/dist/types/molecules/NavTabs/index.d.ts +24 -0
  252. package/dist/types/molecules/NavTabs/index.d.ts.map +1 -0
  253. package/dist/types/molecules/NavTabs/styles.d.ts +15 -0
  254. package/dist/types/molecules/NavTabs/styles.d.ts.map +1 -0
  255. package/dist/types/molecules/PageHeader/index.d.ts +15 -0
  256. package/dist/types/molecules/PageHeader/index.d.ts.map +1 -0
  257. package/dist/types/molecules/PageHeader/styles.d.ts +13 -0
  258. package/dist/types/molecules/PageHeader/styles.d.ts.map +1 -0
  259. package/dist/types/molecules/ScorePanel/index.d.ts +70 -0
  260. package/dist/types/molecules/ScorePanel/index.d.ts.map +1 -0
  261. package/dist/types/molecules/ScorePanel/styles.d.ts +63 -0
  262. package/dist/types/molecules/ScorePanel/styles.d.ts.map +1 -0
  263. package/dist/types/molecules/ScorePills/index.d.ts +25 -0
  264. package/dist/types/molecules/ScorePills/index.d.ts.map +1 -0
  265. package/dist/types/molecules/ScorePills/styles.d.ts +8 -0
  266. package/dist/types/molecules/ScorePills/styles.d.ts.map +1 -0
  267. package/dist/types/molecules/SearchInput/index.d.ts +11 -0
  268. package/dist/types/molecules/SearchInput/index.d.ts.map +1 -0
  269. package/dist/types/molecules/SearchInput/styles.d.ts +24 -0
  270. package/dist/types/molecules/SearchInput/styles.d.ts.map +1 -0
  271. package/dist/types/molecules/Select/index.d.ts +18 -0
  272. package/dist/types/molecules/Select/index.d.ts.map +1 -0
  273. package/dist/types/molecules/Select/styles.d.ts +51 -0
  274. package/dist/types/molecules/Select/styles.d.ts.map +1 -0
  275. package/dist/types/molecules/SliderField/index.d.ts +26 -0
  276. package/dist/types/molecules/SliderField/index.d.ts.map +1 -0
  277. package/dist/types/molecules/SliderField/styles.d.ts +20 -0
  278. package/dist/types/molecules/SliderField/styles.d.ts.map +1 -0
  279. package/dist/types/molecules/StatGrid/index.d.ts +12 -0
  280. package/dist/types/molecules/StatGrid/index.d.ts.map +1 -0
  281. package/dist/types/molecules/StatGrid/styles.d.ts +9 -0
  282. package/dist/types/molecules/StatGrid/styles.d.ts.map +1 -0
  283. package/dist/types/molecules/StatusLabel/index.d.ts +51 -0
  284. package/dist/types/molecules/StatusLabel/index.d.ts.map +1 -0
  285. package/dist/types/molecules/StatusLabel/styles.d.ts +18 -0
  286. package/dist/types/molecules/StatusLabel/styles.d.ts.map +1 -0
  287. package/dist/types/molecules/Table/TableCels/BrandCell.d.ts +9 -0
  288. package/dist/types/molecules/Table/TableCels/BrandCell.d.ts.map +1 -0
  289. package/dist/types/molecules/Table/TableCels/ContentCell.d.ts +13 -0
  290. package/dist/types/molecules/Table/TableCels/ContentCell.d.ts.map +1 -0
  291. package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts +8 -0
  292. package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts.map +1 -0
  293. package/dist/types/molecules/Table/TableCels/StatusCell.d.ts +9 -0
  294. package/dist/types/molecules/Table/TableCels/StatusCell.d.ts.map +1 -0
  295. package/dist/types/molecules/Table/TableCels/TextCell.d.ts +9 -0
  296. package/dist/types/molecules/Table/TableCels/TextCell.d.ts.map +1 -0
  297. package/dist/types/molecules/Table/TableCels/index.d.ts +8 -0
  298. package/dist/types/molecules/Table/TableCels/index.d.ts.map +1 -0
  299. package/dist/types/molecules/Table/TableCels/styles.d.ts +52 -0
  300. package/dist/types/molecules/Table/TableCels/styles.d.ts.map +1 -0
  301. package/dist/types/molecules/Table/index.d.ts +38 -0
  302. package/dist/types/molecules/Table/index.d.ts.map +1 -0
  303. package/dist/types/molecules/Table/styles.d.ts +25 -0
  304. package/dist/types/molecules/Table/styles.d.ts.map +1 -0
  305. package/dist/types/molecules/TokenInputField/index.d.ts +15 -0
  306. package/dist/types/molecules/TokenInputField/index.d.ts.map +1 -0
  307. package/dist/types/molecules/TokenInputField/styles.d.ts +24 -0
  308. package/dist/types/molecules/TokenInputField/styles.d.ts.map +1 -0
  309. package/dist/types/shared/modals/index.d.ts +33 -0
  310. package/dist/types/shared/modals/index.d.ts.map +1 -0
  311. package/dist/types/shared/modals/styles.d.ts +52 -0
  312. package/dist/types/shared/modals/styles.d.ts.map +1 -0
  313. package/dist/types/shared/modals/useModal.d.ts +4 -0
  314. package/dist/types/shared/modals/useModal.d.ts.map +1 -0
  315. package/dist/types/shared/report-ui/DecisionPanel.d.ts +53 -0
  316. package/dist/types/shared/report-ui/DecisionPanel.d.ts.map +1 -0
  317. package/dist/types/shared/report-ui/DecisionPanel.styles.d.ts +31 -0
  318. package/dist/types/shared/report-ui/DecisionPanel.styles.d.ts.map +1 -0
  319. package/dist/types/shared/report-ui/Pagination.d.ts +13 -0
  320. package/dist/types/shared/report-ui/Pagination.d.ts.map +1 -0
  321. package/dist/types/shared/report-ui/Pagination.styles.d.ts +13 -0
  322. package/dist/types/shared/report-ui/Pagination.styles.d.ts.map +1 -0
  323. package/dist/types/shared/report-ui/Shell.styles.d.ts +26 -0
  324. package/dist/types/shared/report-ui/Shell.styles.d.ts.map +1 -0
  325. package/dist/types/shared/report-ui/index.d.ts +8 -0
  326. package/dist/types/shared/report-ui/index.d.ts.map +1 -0
  327. package/dist/types/shared/report-ui/ui.d.ts +30 -0
  328. package/dist/types/shared/report-ui/ui.d.ts.map +1 -0
  329. package/dist/types/shared/report-ui/ui.styles.d.ts +50 -0
  330. package/dist/types/shared/report-ui/ui.styles.d.ts.map +1 -0
  331. package/dist/types/shared/toasts/index.d.ts +23 -0
  332. package/dist/types/shared/toasts/index.d.ts.map +1 -0
  333. package/dist/types/shared/toasts/styles.d.ts +18 -0
  334. package/dist/types/shared/toasts/styles.d.ts.map +1 -0
  335. package/dist/types/textures/Cloud/index.d.ts +29 -0
  336. package/dist/types/textures/Cloud/index.d.ts.map +1 -0
  337. package/dist/types/textures/Paper/index.d.ts +8 -0
  338. package/dist/types/textures/Paper/index.d.ts.map +1 -0
  339. package/dist/types/textures/index.d.ts +4 -0
  340. package/dist/types/textures/index.d.ts.map +1 -0
  341. package/dist/typography.js +82 -0
  342. package/dist/validation.js +20 -0
  343. package/dist/wide-image.js +97 -0
  344. package/package.json +2100 -5
@@ -0,0 +1,358 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ // shared/report-ui/ui.styles.ts
5
+ var i = e.section`
6
+ background: ${(e) => e.theme.colors.section};
7
+ border: ${(e) => e.theme.border.size} solid
8
+ ${(e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
9
+ border-radius: ${(e) => e.theme.border.radius};
10
+ padding: ${(e) => e.theme.offsets.section};
11
+ min-width: 0;
12
+ max-width: 100%;
13
+ ${(e) => e.$accent ? `border-left: 3px solid ${e.$accent};` : ""}
14
+ `, a = e.header`
15
+ display: flex;
16
+ align-items: baseline;
17
+ flex-wrap: wrap;
18
+ gap: ${(e) => e.theme.offsets.betweenElements};
19
+ margin-bottom: ${(e) => e.theme.offsets.betweenElements};
20
+ min-width: 0;
21
+ `, o = e.h2`
22
+ font-size: 15px;
23
+ font-weight: 650;
24
+ margin: 0;
25
+ letter-spacing: 0.2px;
26
+ flex: 1 1 auto;
27
+ min-width: 0;
28
+ overflow-wrap: anywhere;
29
+ `, s = e.span`
30
+ color: ${(e) => e.theme.colors.status?.faint?.content ?? e.theme.colors.sectionContent};
31
+ font-size: 12px;
32
+ `, c = e.code`
33
+ font-family: ${(e) => e.theme.font.family.text};
34
+ font-size: 12.5px;
35
+ overflow-wrap: anywhere;
36
+ color: ${(e) => e.theme.colors.sectionContent};
37
+ `, l = e.span`
38
+ display: inline-flex;
39
+ align-items: center;
40
+ gap: 5px;
41
+ padding: 2px 8px;
42
+ border-radius: 999px;
43
+ font-size: 11.5px;
44
+ font-weight: 600;
45
+ letter-spacing: 0.2px;
46
+ white-space: ${(e) => e.$nowrap ? "nowrap" : "normal"};
47
+ max-width: 100%;
48
+ color: ${(e) => e.$color ?? e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent};
49
+ background: ${(e) => e.$color ? `${e.$color}1f` : `${e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted}88`};
50
+ border: ${(e) => e.theme.border.size} solid
51
+ ${(e) => e.$color ? `${e.$color}55` : e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
52
+ `, u = e.input`
53
+ width: 100%;
54
+ background: ${(e) => e.theme.colors.overlay};
55
+ border: ${(e) => e.theme.border.size} solid
56
+ ${(e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
57
+ border-radius: ${(e) => e.theme.border.radius};
58
+ color: ${(e) => e.theme.colors.sectionContent};
59
+ padding: 8px 11px;
60
+ font-size: 13px;
61
+ outline: none;
62
+
63
+ &:focus {
64
+ border-color: ${(e) => e.theme.colors.highlighted};
65
+ }
66
+
67
+ &::placeholder {
68
+ color: ${(e) => e.theme.colors.status?.faint?.content ?? e.theme.colors.sectionContent};
69
+ }
70
+ `, d = e.div`
71
+ display: grid;
72
+ grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
73
+ gap: ${(e) => e.theme.offsets.elementContent};
74
+ `, f = e.div`
75
+ background: ${(e) => e.theme.colors.overlay};
76
+ border: ${(e) => e.theme.border.size} solid
77
+ ${(e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
78
+ border-radius: ${(e) => e.theme.border.radius};
79
+ padding: 10px 12px;
80
+ `, p = e.div`
81
+ display: flex;
82
+ flex-direction: column;
83
+ gap: ${(e) => e.theme.offsets.betweenElements};
84
+ min-width: 0;
85
+ `, m = e.div`
86
+ display: flex;
87
+ align-items: baseline;
88
+ flex-wrap: wrap;
89
+ gap: ${(e) => e.theme.offsets.elementContent};
90
+ min-width: 0;
91
+ `, h = e.div`
92
+ padding: calc(${(e) => e.theme.offsets.section} + ${(e) => e.theme.offsets.betweenElements})
93
+ ${(e) => e.theme.offsets.elementContent};
94
+ text-align: center;
95
+ color: ${(e) => e.theme.colors.status?.faint?.content ?? e.theme.colors.sectionContent};
96
+ font-size: 13px;
97
+ `, g = e.div`
98
+ font-size: 21px;
99
+ font-weight: 700;
100
+ color: ${(e) => e.$color ?? e.theme.colors.sectionContent};
101
+ line-height: 1.2;
102
+ `, _ = e.div`
103
+ font-size: 11px;
104
+ color: ${(e) => e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent};
105
+ text-transform: uppercase;
106
+ letter-spacing: 0.6px;
107
+ `, v = ({ children: e, color: t, nowrap: r, ...i }) => /* @__PURE__ */ n(l, {
108
+ $color: t,
109
+ $nowrap: r,
110
+ ...i,
111
+ children: e
112
+ }), y = ({ children: e }) => /* @__PURE__ */ n(h, { children: e }), b = ({ value: e, onChange: t, placeholder: r = "Filter…" }) => /* @__PURE__ */ n(u, {
113
+ value: e,
114
+ onChange: (e) => t(e.target.value),
115
+ placeholder: r,
116
+ "aria-label": r
117
+ }), x = ({ label: e, value: t, color: i }) => /* @__PURE__ */ r(f, { children: [/* @__PURE__ */ n(g, {
118
+ $color: i,
119
+ children: t
120
+ }), /* @__PURE__ */ n(_, { children: e })] }), S = ({ children: e }) => /* @__PURE__ */ n(d, { children: e }), C = e.div`
121
+ display: grid;
122
+ grid-template-columns: 96px minmax(0, 1fr) 120px;
123
+ align-items: center;
124
+ gap: ${(e) => e.theme.offsets.elementContent};
125
+ margin-bottom: 6px;
126
+ `, w = e.div`
127
+ position: relative;
128
+ height: 10px;
129
+ border-radius: 999px;
130
+ background: ${(e) => e.theme.colors.overlay};
131
+ border: ${(e) => e.theme.border.size} solid
132
+ ${(e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
133
+ overflow: hidden;
134
+ `, T = e.div`
135
+ position: absolute;
136
+ inset: 0 auto 0 0;
137
+ width: ${(e) => `${Math.round(e.$score * 100)}%`};
138
+ background: ${(e) => e.$color};
139
+ opacity: ${(e) => e.$applied ? 1 : .25};
140
+ `, E = e.div`
141
+ display: flex;
142
+ flex-wrap: wrap;
143
+ gap: 4px;
144
+ margin: 0 0 10px;
145
+ `, D = e.span`
146
+ font-family: ${(e) => e.theme.font.family.text};
147
+ font-size: 11px;
148
+ padding: 1px 6px;
149
+ border-radius: 4px;
150
+ color: ${(e) => e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent};
151
+ background: ${(e) => e.theme.colors.overlay};
152
+ border: ${(e) => e.theme.border.size} solid
153
+ ${(e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
154
+ `, O = e.ul`
155
+ margin: 0;
156
+ padding-left: 18px;
157
+ font-size: 12.5px;
158
+ color: ${(e) => e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent};
159
+ `, k = e.li`
160
+ margin-bottom: 3px;
161
+ color: ${(e) => e.$tone === "veto" ? e.theme.colors.status?.warn?.content ?? e.theme.colors.sectionContent : e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent};
162
+ `, A = e.strong`
163
+ color: ${(e) => e.theme.colors.status?.ok?.content ?? e.theme.colors.sectionContent};
164
+ `, j = (e) => Number.isFinite(e) ? e.toFixed(2) : "—", M = (e) => Number.isFinite(e) ? `${Math.round(e * 100)}%` : "—", N = ({ decision: e }) => /* @__PURE__ */ n(t, { children: (e?.signals ?? []).map((e) => /* @__PURE__ */ r(v, {
165
+ color: e.color,
166
+ nowrap: !0,
167
+ title: `${String(e.label)} ${j(e.score)} · ${M(e.weight)} weight · ${M(e.contribution)} of the verdict`,
168
+ children: [
169
+ e.short,
170
+ " ",
171
+ j(e.score)
172
+ ]
173
+ }, e.key)) }), P = ({ decision: e, fix: t, title: c = "Why this verdict", accent: l }) => e ? /* @__PURE__ */ r(i, {
174
+ $accent: l,
175
+ children: [
176
+ /* @__PURE__ */ r(a, { children: [
177
+ /* @__PURE__ */ n(o, { children: c }),
178
+ /* @__PURE__ */ r(v, {
179
+ color: l,
180
+ nowrap: !0,
181
+ children: [
182
+ "confidence ",
183
+ j(e.confidence),
184
+ " (",
185
+ M(e.confidence),
186
+ ")"
187
+ ]
188
+ }),
189
+ /* @__PURE__ */ r(s, { children: [
190
+ "duplicate ≥ ",
191
+ j(e.thresholds.duplicate),
192
+ " · similar ≥ ",
193
+ j(e.thresholds.similar)
194
+ ] })
195
+ ] }),
196
+ (e.signals ?? []).map((e) => /* @__PURE__ */ r("div", { children: [/* @__PURE__ */ r(C, {
197
+ title: e.what,
198
+ children: [
199
+ /* @__PURE__ */ n("span", {
200
+ style: {
201
+ color: e.color,
202
+ fontWeight: 600
203
+ },
204
+ children: e.label
205
+ }),
206
+ /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(T, {
207
+ $score: e.score,
208
+ $color: e.color,
209
+ $applied: e.applied
210
+ }) }),
211
+ /* @__PURE__ */ r(s, { children: [
212
+ j(e.score),
213
+ " · w ",
214
+ M(e.weight),
215
+ " · ",
216
+ M(e.contribution)
217
+ ] })
218
+ ]
219
+ }), e.evidence?.length ? /* @__PURE__ */ n(E, { children: e.evidence.map((e) => /* @__PURE__ */ r(D, {
220
+ title: e.key,
221
+ children: [
222
+ e.label,
223
+ ": ",
224
+ e.value
225
+ ]
226
+ }, e.key)) }) : null] }, e.key)),
227
+ /* @__PURE__ */ n(O, { children: (e.why ?? []).map((e, t) => /* @__PURE__ */ n(k, {
228
+ $tone: e.tone,
229
+ children: e.text
230
+ }, t)) }),
231
+ t ? /* @__PURE__ */ r("div", {
232
+ style: {
233
+ marginTop: 12,
234
+ fontSize: 13
235
+ },
236
+ children: [
237
+ /* @__PURE__ */ n(A, { children: "Fix." }),
238
+ " ",
239
+ t.text
240
+ ]
241
+ }) : null
242
+ ]
243
+ }) : null, F = e.nav`
244
+ display: flex;
245
+ align-items: center;
246
+ justify-content: center;
247
+ gap: ${(e) => e.theme.offsets.elementContent};
248
+ margin-top: ${(e) => e.theme.offsets.betweenElements};
249
+ `, I = e.button`
250
+ font-size: 12px;
251
+ padding: 3px 10px;
252
+ border-radius: 999px;
253
+ cursor: pointer;
254
+ color: ${(e) => e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent};
255
+ background: ${(e) => e.theme.colors.overlay};
256
+ border: ${(e) => e.theme.border.size} solid
257
+ ${(e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
258
+
259
+ &:disabled {
260
+ opacity: 0.4;
261
+ cursor: default;
262
+ }
263
+
264
+ &:hover:not(:disabled) {
265
+ color: ${(e) => e.theme.colors.sectionContent};
266
+ }
267
+ `, L = e.span`
268
+ font-size: 12px;
269
+ color: ${(e) => e.theme.colors.status?.faint?.content ?? e.theme.colors.sectionContent};
270
+ `, R = e.span`
271
+ font-size: 12px;
272
+ color: ${(e) => e.theme.colors.status?.faint?.content ?? e.theme.colors.sectionContent};
273
+ `, z = ({ page: e, pageCount: t, onChange: i }) => /* @__PURE__ */ r(F, {
274
+ "aria-label": "pagination",
275
+ children: [
276
+ /* @__PURE__ */ n(I, {
277
+ type: "button",
278
+ disabled: e <= 0,
279
+ onClick: () => i(e - 1),
280
+ children: "«← prev"
281
+ }),
282
+ /* @__PURE__ */ n(L, {
283
+ "aria-hidden": "true",
284
+ children: "·"
285
+ }),
286
+ /* @__PURE__ */ r(R, { children: [
287
+ "page ",
288
+ e + 1,
289
+ " / ",
290
+ t
291
+ ] }),
292
+ /* @__PURE__ */ n(L, {
293
+ "aria-hidden": "true",
294
+ children: "·"
295
+ }),
296
+ /* @__PURE__ */ n(I, {
297
+ type: "button",
298
+ disabled: e >= t - 1,
299
+ onClick: () => i(e + 1),
300
+ children: "next →»"
301
+ })
302
+ ]
303
+ }), B = e.div`
304
+ max-width: none;
305
+ margin: 0 auto;
306
+ padding: calc(${(e) => e.theme.offsets.section} + ${(e) => e.theme.offsets.elementContent} / 2)
307
+ ${(e) => e.theme.offsets.section} calc(${(e) => e.theme.offsets.section} * 4);
308
+ `, V = e.header`
309
+ display: flex;
310
+ flex-wrap: wrap;
311
+ align-items: baseline;
312
+ gap: ${(e) => e.theme.offsets.betweenElements};
313
+ padding-bottom: ${(e) => e.theme.offsets.betweenElements};
314
+ border-bottom: ${(e) => e.theme.border.size} solid
315
+ ${(e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
316
+ margin-bottom: ${(e) => e.theme.offsets.section};
317
+ `, H = e.h1`
318
+ font-size: 18px;
319
+ margin: 0;
320
+ letter-spacing: 0.2px;
321
+ `, U = e.nav`
322
+ display: flex;
323
+ flex-wrap: wrap;
324
+ gap: 4px;
325
+ margin-bottom: ${(e) => e.theme.offsets.section};
326
+ `, W = e.a`
327
+ padding: 6px 12px;
328
+ border-radius: ${(e) => e.theme.border.radius};
329
+ font-size: 13px;
330
+ font-weight: 600;
331
+ color: ${(e) => e.$active ? e.theme.colors.sectionContent : e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent};
332
+ background: ${(e) => e.$active ? e.theme.colors.overlay : "transparent"};
333
+ border: ${(e) => e.theme.border.size} solid ${(e) => e.$active ? e.theme.colors.highlighted : "transparent"};
334
+
335
+ &:hover {
336
+ text-decoration: none;
337
+ color: ${(e) => e.theme.colors.sectionContent};
338
+ }
339
+ `, G = e.div`
340
+ display: flex;
341
+ flex-wrap: wrap;
342
+ gap: ${(e) => e.theme.offsets.betweenElements};
343
+ margin-top: ${(e) => e.theme.offsets.betweenElements};
344
+ padding-top: ${(e) => e.theme.offsets.betweenElements};
345
+ border-top: ${(e) => e.theme.border.size} dashed
346
+ ${(e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
347
+ font-size: 12px;
348
+ color: ${(e) => e.theme.colors.status?.faint?.content ?? e.theme.colors.sectionContent};
349
+ `, K = e.span`
350
+ display: inline-block;
351
+ width: 10px;
352
+ height: 10px;
353
+ border-radius: 2px;
354
+ background: ${(e) => e.$color};
355
+ margin-right: 5px;
356
+ vertical-align: baseline;
357
+ `;
358
+ export { v as Badge, l as BadgeBox, C as Bar, D as Chip, E as ChipRow, P as DecisionPanel, y as Empty, h as EmptyBox, T as Fill, A as FixMark, B as Frame, V as Head, G as Legend, c as Mono, L as PageDot, R as PagePosition, I as PageStep, F as PagerRow, z as Pagination, i as Panel, a as PanelHead, H as Repo, m as Row, b as SearchBox, u as SearchInput, N as SignalPills, p as Stack, x as Stat, f as StatCell, d as StatGrid, _ as StatLabel, g as StatValue, S as Stats, s as Subtle, K as Swatch, W as TabLink, U as Tabs, o as Title, w as Track, O as Why, k as WhyLine };
package/dist/row.js ADDED
@@ -0,0 +1,15 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ // atoms/Row/styles.ts
5
+ var n = e.div`
6
+ display: flex;
7
+ align-items: baseline;
8
+ flex-wrap: wrap;
9
+ gap: ${({ theme: e }) => e.offsets.elementContent};
10
+ min-width: 0;
11
+ `, r = ({ children: e, ...r }) => /* @__PURE__ */ t(n, {
12
+ ...r,
13
+ children: e
14
+ });
15
+ export { r as Row };
@@ -0,0 +1,125 @@
1
+ import { Chip as e } from "@md-code/components/chip";
2
+ import { SubtleText as t } from "@md-code/components/subtle-text";
3
+ import { Surface as n } from "@md-code/components/surface";
4
+ import "react";
5
+ import r from "styled-components";
6
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ // molecules/ScorePanel/styles.ts
8
+ var s = r.div`
9
+ display: grid;
10
+ grid-template-columns: calc(${({ theme: e }) => e.offsets.section} * 6) minmax(0, 1fr)
11
+ calc(${({ theme: e }) => e.font.sizes.large} * 8);
12
+ align-items: center;
13
+ gap: ${({ theme: e }) => e.offsets.elementContent};
14
+ margin-bottom: calc(${({ theme: e }) => e.offsets.elementContent} - ${({ theme: e }) => e.border.size} * 2);
15
+ `, c = r.div`
16
+ position: relative;
17
+ height: calc(${({ theme: e }) => e.offsets.elementContent} + ${({ theme: e }) => e.border.size} * 2);
18
+ border-radius: calc(${({ theme: e }) => e.border.radius} * 100);
19
+ background: ${({ theme: e }) => e.colors.overlay};
20
+ border: ${({ theme: e }) => e.border.size} solid
21
+ ${({ theme: e }) => e.colors.status?.edge?.background ?? e.colors.highlighted};
22
+ overflow: hidden;
23
+ `, l = r.div`
24
+ position: absolute;
25
+ inset: 0 auto 0 0;
26
+ width: ${({ $score: e }) => `${Math.round(e * 100)}%`};
27
+ background: ${({ $status: e, theme: t }) => (e ? t.colors.status?.[e] : void 0)?.content ?? t.colors.section};
28
+ opacity: ${({ $applied: e }) => e ? 1 : .25};
29
+ `, u = r.span`
30
+ font-weight: ${({ theme: e }) => e.font.weight.title};
31
+ color: ${({ $status: e, theme: t }) => (e ? t.colors.status?.[e] : void 0)?.content ?? t.colors.sectionContent};
32
+ `, d = r.div`
33
+ display: flex;
34
+ flex-wrap: wrap;
35
+ gap: calc(${({ theme: e }) => e.offsets.elementContent} / 2);
36
+ margin: 0 0 calc(${({ theme: e }) => e.offsets.elementContent} + ${({ theme: e }) => e.border.size} * 2);
37
+ `, f = r.span`
38
+ font-family: ${({ theme: e }) => e.font.family.text};
39
+ font-size: calc(${({ theme: e }) => e.font.sizes.small} - ${({ theme: e }) => e.border.size});
40
+ padding: ${({ theme: e }) => e.border.size} calc(${({ theme: e }) => e.offsets.elementContent} - ${({ theme: e }) => e.border.size} * 2);
41
+ border-radius: calc(${({ theme: e }) => e.border.radius} - ${({ theme: e }) => e.border.size} * 2);
42
+ color: ${({ theme: e }) => e.colors.status?.dim?.content ?? e.colors.sectionContent};
43
+ background: ${({ theme: e }) => e.colors.overlay};
44
+ border: ${({ theme: e }) => e.border.size} solid
45
+ ${({ theme: e }) => e.colors.status?.edge?.background ?? e.colors.highlighted};
46
+ `, p = r.ul`
47
+ margin: 0;
48
+ padding-left: calc(${({ theme: e }) => e.offsets.section} + ${({ theme: e }) => e.border.size} * 2);
49
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
50
+ color: ${({ theme: e }) => e.colors.status?.dim?.content ?? e.colors.sectionContent};
51
+ `, m = r.li`
52
+ margin-bottom: calc(${({ theme: e }) => e.border.size} * 3);
53
+ color: ${({ $status: e, theme: t }) => (e ? t.colors.status?.[e] : void 0)?.content ?? t.colors.status?.dim?.content ?? t.colors.sectionContent};
54
+ `, h = r.strong`
55
+ color: ${({ theme: e }) => e.colors.status?.ok?.content ?? e.colors.sectionContent};
56
+ `, g = r.div`
57
+ margin-top: ${({ theme: e }) => e.offsets.betweenElements};
58
+ font-size: calc(${({ theme: e }) => e.font.sizes.small} + ${({ theme: e }) => e.border.size});
59
+ `, _ = (e) => Number.isFinite(e) ? e.toFixed(2) : "—", v = (e) => Number.isFinite(e) ? `${Math.round(e * 100)}%` : "—", y = ({ heading: r, status: y, value: b, thresholds: x, parts: S, notes: C, valueLabel: w = "score", action: T }) => {
60
+ let E = [];
61
+ for (let e of S ?? []) {
62
+ let n = [];
63
+ for (let t of e.facts ?? []) n.push(/* @__PURE__ */ o(f, {
64
+ title: String(t.key),
65
+ children: [
66
+ t.label,
67
+ ": ",
68
+ t.value
69
+ ]
70
+ }, t.key));
71
+ E.push(/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ o(s, {
72
+ title: e.note,
73
+ children: [
74
+ /* @__PURE__ */ a(u, {
75
+ $status: e.status,
76
+ children: e.label
77
+ }),
78
+ /* @__PURE__ */ a(c, { children: /* @__PURE__ */ a(l, {
79
+ $score: e.score,
80
+ $status: e.status,
81
+ $applied: e.applied
82
+ }) }),
83
+ /* @__PURE__ */ o(t, { children: [
84
+ _(e.score),
85
+ " · w ",
86
+ v(e.weight),
87
+ " · ",
88
+ v(e.contribution)
89
+ ] })
90
+ ]
91
+ }), n.length ? /* @__PURE__ */ a(d, { children: n }) : null] }, e.key));
92
+ }
93
+ let D = [];
94
+ for (let e of C ?? []) D.push(/* @__PURE__ */ a(m, {
95
+ $status: e.status,
96
+ children: e.text
97
+ }, String(e.text)));
98
+ let O = (x ?? []).map((e) => `${String(e.label)} ≥ ${_(e.value)}`).join(" · ");
99
+ return /* @__PURE__ */ o(n, {
100
+ $status: y,
101
+ heading: r,
102
+ actions: /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o(e, {
103
+ $status: y,
104
+ $nowrap: !0,
105
+ children: [
106
+ w,
107
+ " ",
108
+ _(b),
109
+ " (",
110
+ v(b),
111
+ ")"
112
+ ]
113
+ }), O ? /* @__PURE__ */ a(t, { children: O }) : null] }),
114
+ children: [
115
+ E,
116
+ D.length ? /* @__PURE__ */ a(p, { children: D }) : null,
117
+ T ? /* @__PURE__ */ o(g, { children: [
118
+ T.mark == null ? null : /* @__PURE__ */ a(h, { children: T.mark }),
119
+ T.mark == null ? null : " ",
120
+ T.text
121
+ ] }) : null
122
+ ]
123
+ });
124
+ };
125
+ export { y as ScorePanel };
@@ -0,0 +1,25 @@
1
+ import { Chip as e } from "@md-code/components/chip";
2
+ import "react";
3
+ import t from "styled-components";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ // molecules/ScorePills/styles.ts
6
+ var i = t.div`
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ align-items: center;
10
+ gap: ${({ theme: e }) => e.offsets.elementContent};
11
+ `, a = (e) => Number.isFinite(e) ? e.toFixed(2) : "—", o = ({ items: t = [] }) => {
12
+ let o = [];
13
+ for (let n of t) o.push(/* @__PURE__ */ r(e, {
14
+ $status: n.status,
15
+ $nowrap: !0,
16
+ title: n.title,
17
+ children: [
18
+ n.label,
19
+ " ",
20
+ a(n.value)
21
+ ]
22
+ }, n.key));
23
+ return /* @__PURE__ */ n(i, { children: o });
24
+ };
25
+ export { o as ScorePills };
@@ -0,0 +1,84 @@
1
+ import { useCallback as e, useState as t } from "react";
2
+ import { Input as n } from "@md-code/components/input";
3
+ import { FiSearch as r, FiX as i } from "react-icons/fi";
4
+ import a, { css as o } from "styled-components";
5
+ import { Button as s } from "@md-code/components/button";
6
+ import { withOffsetBottom as c, withOffsetsRight as l } from "@md-code/styles";
7
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
+ // molecules/SearchInput/styles.ts
9
+ var f = a(s)`
10
+ border: none;
11
+ `, p = a(r)`
12
+ visibility: visible;
13
+ opacity: 1;
14
+ transition:
15
+ visibility 0s,
16
+ opacity ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.linear};
17
+ `, m = a(i)`
18
+ display: none;
19
+ `, h = a.div`
20
+ position: relative;
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ box-sizing: border-box;
25
+ ${({ $isOpen: e, theme: t }) => e ? o`
26
+ width: 100%;
27
+ ` : o`
28
+ width: ${t.elements.form.height};
29
+ `}
30
+ height: ${({ theme: e }) => e.elements.form.height};
31
+ margin-right: ${l};
32
+ margin-bottom: ${c};
33
+ padding: ${({ theme: e }) => e.offsets.elementContent};
34
+ background-color: ${({ theme: e }) => e.colors.section};
35
+
36
+ /*
37
+ * effects.texture is one string per theme (README §4.1, §5.3): noise themes
38
+ * supply a url() for background-image, glass themes supply blur() for
39
+ * backdrop-filter. The bar cannot know which theme is active, so it hands
40
+ * the value to BOTH properties; each property keeps only the value it
41
+ * understands and ignores the other (blur() in background-image computes to
42
+ * none, and url() left in backdrop-filter is visually inert — verified in
43
+ * Chromium). Both themes therefore texture the bar without a name check.
44
+ */
45
+ background-image: ${({ theme: e }) => e.effects.texture};
46
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
47
+ border-radius: ${({ theme: e }) => e.border.radius};
48
+ clip-path: ${({ theme: e }) => e.geometry.shape};
49
+ box-shadow: ${({ theme: e }) => e.shadows.section};
50
+ transition: all ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.standard};
51
+
52
+ ${m} {
53
+ display: ${({ $isOpen: e }) => e && "block"};
54
+ }
55
+ ${p} {
56
+ display: ${({ $isOpen: e }) => e && "none"};
57
+ }
58
+ `, g = ({ id: r, name: i, value: a, onChangeValue: o, $offsetBottom: s, $offsetRight: c, $fullWidth: l, ...g }) => {
59
+ let [_, v] = t(!1), y = e((e) => {
60
+ o(e.currentTarget.value);
61
+ }, [o]), b = () => {
62
+ v(!_), _ && o();
63
+ };
64
+ return /* @__PURE__ */ d(h, {
65
+ $isOpen: _,
66
+ $offsetBottom: s,
67
+ $offsetRight: c,
68
+ children: [_ && /* @__PURE__ */ u(n, {
69
+ placeholder: "Search for an order",
70
+ id: r,
71
+ name: i,
72
+ autoFocus: !0,
73
+ value: a,
74
+ onChange: y,
75
+ $fullWidth: l,
76
+ ...g
77
+ }), /* @__PURE__ */ d(f, {
78
+ onClick: b,
79
+ tone: "active",
80
+ children: [/* @__PURE__ */ u(p, {}), /* @__PURE__ */ u(m, {})]
81
+ })]
82
+ });
83
+ };
84
+ export { g as SearchInput };