@misoto22/design 0.6.1 → 0.8.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 (402) hide show
  1. package/AGENTS.md +87 -0
  2. package/CLAUDE.md +1 -0
  3. package/README.md +62 -5
  4. package/bin/misoto22-design.mjs +59 -13
  5. package/dist/agent/Accordion.md +24 -1
  6. package/dist/agent/Alert.md +23 -1
  7. package/dist/agent/AppShell.md +30 -2
  8. package/dist/agent/ArchitectureFigure.md +71 -0
  9. package/dist/agent/AreaChart.md +27 -2
  10. package/dist/agent/Article.md +26 -3
  11. package/dist/agent/AspectRatio.md +57 -0
  12. package/dist/agent/Avatar.md +25 -5
  13. package/dist/agent/Badge.md +22 -1
  14. package/dist/agent/BarChart.md +29 -2
  15. package/dist/agent/BarList.md +27 -1
  16. package/dist/agent/BigNumber.md +26 -2
  17. package/dist/agent/BoxPlot.md +24 -1
  18. package/dist/agent/Breadcrumb.md +24 -2
  19. package/dist/agent/BulletChart.md +23 -1
  20. package/dist/agent/Button.md +25 -1
  21. package/dist/agent/Calendar.md +37 -3
  22. package/dist/agent/Card.md +24 -2
  23. package/dist/agent/Checkbox.md +23 -2
  24. package/dist/agent/Code.md +50 -0
  25. package/dist/agent/CodeBlock.md +74 -0
  26. package/dist/agent/Collapsible.md +22 -1
  27. package/dist/agent/Combobox.md +29 -3
  28. package/dist/agent/Command.md +25 -2
  29. package/dist/agent/ComposedChart.md +26 -2
  30. package/dist/agent/ContextMenu.md +37 -4
  31. package/dist/agent/DataflowFigure.md +48 -0
  32. package/dist/agent/DatePicker.md +34 -6
  33. package/dist/agent/DescriptionList.md +68 -0
  34. package/dist/agent/Diagram.md +27 -3
  35. package/dist/agent/DiagramCanvas.md +70 -0
  36. package/dist/agent/DiagramExportMenu.md +64 -0
  37. package/dist/agent/DiagramInspector.md +72 -0
  38. package/dist/agent/DiagramLegend.md +55 -0
  39. package/dist/agent/DiagramMinimap.md +68 -0
  40. package/dist/agent/DiagramToolbar.md +69 -0
  41. package/dist/agent/Dialog.md +26 -3
  42. package/dist/agent/DropdownMenu.md +45 -6
  43. package/dist/agent/EmptyState.md +26 -1
  44. package/dist/agent/ErrorState.md +27 -2
  45. package/dist/agent/Facet.md +25 -1
  46. package/dist/agent/Field.md +45 -4
  47. package/dist/agent/FigureBand.md +24 -1
  48. package/dist/agent/FloatingIconButton.md +23 -1
  49. package/dist/agent/FunnelChart.md +23 -1
  50. package/dist/agent/Heading.md +64 -0
  51. package/dist/agent/Heatmap.md +25 -1
  52. package/dist/agent/Histogram.md +26 -2
  53. package/dist/agent/Input.md +22 -1
  54. package/dist/agent/Kbd.md +19 -1
  55. package/dist/agent/LifecycleFigure.md +49 -0
  56. package/dist/agent/LineChart.md +26 -2
  57. package/dist/agent/LinkArrow.md +20 -1
  58. package/dist/agent/Markdown.md +68 -0
  59. package/dist/agent/NativeSelect.md +23 -2
  60. package/dist/agent/NavItem.md +21 -1
  61. package/dist/agent/Pagination.md +28 -2
  62. package/dist/agent/PieChart.md +26 -2
  63. package/dist/agent/Popover.md +23 -1
  64. package/dist/agent/Progress.md +27 -3
  65. package/dist/agent/RadarChart.md +26 -2
  66. package/dist/agent/RadialChart.md +26 -3
  67. package/dist/agent/RadioGroup.md +23 -2
  68. package/dist/agent/SankeyChart.md +25 -2
  69. package/dist/agent/ScatterChart.md +27 -2
  70. package/dist/agent/ScrollArea.md +24 -3
  71. package/dist/agent/SearchableMenu.md +23 -1
  72. package/dist/agent/Select.md +29 -3
  73. package/dist/agent/Separator.md +28 -4
  74. package/dist/agent/SequenceFigure.md +50 -0
  75. package/dist/agent/Sheet.md +25 -2
  76. package/dist/agent/Skeleton.md +24 -2
  77. package/dist/agent/Slider.md +27 -4
  78. package/dist/agent/Sparkline.md +23 -1
  79. package/dist/agent/Spinner.md +24 -2
  80. package/dist/agent/StatusDot.md +20 -1
  81. package/dist/agent/StatusPill.md +28 -2
  82. package/dist/agent/Steps.md +24 -1
  83. package/dist/agent/Switch.md +21 -1
  84. package/dist/agent/Table.md +26 -3
  85. package/dist/agent/Tabs.md +24 -2
  86. package/dist/agent/Tag.md +40 -9
  87. package/dist/agent/Text.md +65 -0
  88. package/dist/agent/Textarea.md +20 -1
  89. package/dist/agent/Timestamp.md +64 -0
  90. package/dist/agent/Toast.md +26 -2
  91. package/dist/agent/ToggleGroup.md +24 -2
  92. package/dist/agent/Toolbar.md +71 -0
  93. package/dist/agent/Tooltip.md +23 -1
  94. package/dist/agent/TreemapChart.md +24 -1
  95. package/dist/agent/WaterfallChart.md +24 -1
  96. package/dist/agent/WorkflowFigure.md +50 -0
  97. package/dist/agent/catalog.json +6086 -1009
  98. package/dist/agent/index.md +27 -4
  99. package/dist/article.css +16 -4
  100. package/dist/charts/AreaChart/AreaChart.d.ts +9 -2
  101. package/dist/charts/AreaChart/AreaChart.js +12 -13
  102. package/dist/charts/AreaChart/AreaChart.js.map +1 -1
  103. package/dist/charts/BarChart/BarChart.d.ts +14 -3
  104. package/dist/charts/BarChart/BarChart.js +20 -12
  105. package/dist/charts/BarChart/BarChart.js.map +1 -1
  106. package/dist/charts/BarList/BarList.d.ts +9 -1
  107. package/dist/charts/BarList/BarList.js +9 -1
  108. package/dist/charts/BarList/BarList.js.map +1 -1
  109. package/dist/charts/BigNumber/BigNumber.d.ts +19 -3
  110. package/dist/charts/BigNumber/BigNumber.js +25 -5
  111. package/dist/charts/BigNumber/BigNumber.js.map +1 -1
  112. package/dist/charts/BoxPlot/BoxPlot.js +4 -2
  113. package/dist/charts/BoxPlot/BoxPlot.js.map +1 -1
  114. package/dist/charts/BulletChart/BulletChart.js +28 -7
  115. package/dist/charts/BulletChart/BulletChart.js.map +1 -1
  116. package/dist/charts/ComposedChart/ComposedChart.d.ts +9 -2
  117. package/dist/charts/ComposedChart/ComposedChart.js +10 -10
  118. package/dist/charts/ComposedChart/ComposedChart.js.map +1 -1
  119. package/dist/charts/FunnelChart/FunnelChart.d.ts +7 -2
  120. package/dist/charts/FunnelChart/FunnelChart.js +6 -16
  121. package/dist/charts/FunnelChart/FunnelChart.js.map +1 -1
  122. package/dist/charts/Heatmap/Heatmap.d.ts +17 -3
  123. package/dist/charts/Heatmap/Heatmap.js +20 -11
  124. package/dist/charts/Heatmap/Heatmap.js.map +1 -1
  125. package/dist/charts/Histogram/Histogram.d.ts +24 -1
  126. package/dist/charts/Histogram/Histogram.js +43 -11
  127. package/dist/charts/Histogram/Histogram.js.map +1 -1
  128. package/dist/charts/LineChart/LineChart.d.ts +9 -2
  129. package/dist/charts/LineChart/LineChart.js +11 -12
  130. package/dist/charts/LineChart/LineChart.js.map +1 -1
  131. package/dist/charts/PieChart/PieChart.d.ts +15 -3
  132. package/dist/charts/PieChart/PieChart.js +14 -6
  133. package/dist/charts/PieChart/PieChart.js.map +1 -1
  134. package/dist/charts/RadarChart/RadarChart.d.ts +15 -3
  135. package/dist/charts/RadarChart/RadarChart.js +11 -9
  136. package/dist/charts/RadarChart/RadarChart.js.map +1 -1
  137. package/dist/charts/RadialChart/RadialChart.d.ts +22 -4
  138. package/dist/charts/RadialChart/RadialChart.js +28 -6
  139. package/dist/charts/RadialChart/RadialChart.js.map +1 -1
  140. package/dist/charts/SankeyChart/SankeyChart.d.ts +16 -4
  141. package/dist/charts/SankeyChart/SankeyChart.js +14 -6
  142. package/dist/charts/SankeyChart/SankeyChart.js.map +1 -1
  143. package/dist/charts/ScatterChart/ScatterChart.d.ts +24 -3
  144. package/dist/charts/ScatterChart/ScatterChart.js +21 -15
  145. package/dist/charts/ScatterChart/ScatterChart.js.map +1 -1
  146. package/dist/charts/Sparkline/Sparkline.js +5 -3
  147. package/dist/charts/Sparkline/Sparkline.js.map +1 -1
  148. package/dist/charts/TreemapChart/TreemapChart.d.ts +7 -2
  149. package/dist/charts/TreemapChart/TreemapChart.js +20 -11
  150. package/dist/charts/TreemapChart/TreemapChart.js.map +1 -1
  151. package/dist/charts/WaterfallChart/WaterfallChart.js +4 -2
  152. package/dist/charts/WaterfallChart/WaterfallChart.js.map +1 -1
  153. package/dist/charts/index.d.ts +2 -1
  154. package/dist/charts/lib/export.d.ts +34 -43
  155. package/dist/charts/lib/export.js +16 -158
  156. package/dist/charts/lib/export.js.map +1 -1
  157. package/dist/charts/lib/figure.d.ts +21 -1
  158. package/dist/charts/lib/figure.js +5 -2
  159. package/dist/charts/lib/figure.js.map +1 -1
  160. package/dist/charts/lib/scale.d.ts +23 -0
  161. package/dist/charts/lib/scale.js +13 -0
  162. package/dist/charts/lib/scale.js.map +1 -0
  163. package/dist/charts/lib/selection.d.ts +20 -0
  164. package/dist/charts/lib/selection.js +18 -0
  165. package/dist/charts/lib/selection.js.map +1 -0
  166. package/dist/charts/lib/toolbar.d.ts +1 -0
  167. package/dist/components/Accordion/Accordion.js +8 -1
  168. package/dist/components/Accordion/Accordion.js.map +1 -1
  169. package/dist/components/AppShell/AppShell.d.ts +6 -0
  170. package/dist/components/AppShell/AppShell.js +34 -4
  171. package/dist/components/AppShell/AppShell.js.map +1 -1
  172. package/dist/components/Article/Article.d.ts +11 -4
  173. package/dist/components/Article/Article.js +13 -0
  174. package/dist/components/Article/Article.js.map +1 -1
  175. package/dist/components/AspectRatio/AspectRatio.d.ts +46 -0
  176. package/dist/components/AspectRatio/AspectRatio.js +33 -0
  177. package/dist/components/AspectRatio/AspectRatio.js.map +1 -0
  178. package/dist/components/Avatar/Avatar.d.ts +12 -3
  179. package/dist/components/Avatar/Avatar.js +6 -1
  180. package/dist/components/Avatar/Avatar.js.map +1 -1
  181. package/dist/components/Breadcrumb/Breadcrumb.d.ts +6 -0
  182. package/dist/components/Breadcrumb/Breadcrumb.js +15 -0
  183. package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
  184. package/dist/components/Button/Button.js +14 -0
  185. package/dist/components/Button/Button.js.map +1 -1
  186. package/dist/components/Calendar/Calendar.d.ts +29 -3
  187. package/dist/components/Calendar/Calendar.js +60 -12
  188. package/dist/components/Calendar/Calendar.js.map +1 -1
  189. package/dist/components/Card/Card.d.ts +6 -0
  190. package/dist/components/Card/Card.js +1 -1
  191. package/dist/components/Card/Card.js.map +1 -1
  192. package/dist/components/Checkbox/Checkbox.d.ts +5 -2
  193. package/dist/components/Checkbox/Checkbox.js +12 -2
  194. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  195. package/dist/components/Code/Code.d.ts +30 -0
  196. package/dist/components/Code/Code.js +21 -0
  197. package/dist/components/Code/Code.js.map +1 -0
  198. package/dist/components/CodeBlock/CodeBlock.d.ts +141 -0
  199. package/dist/components/CodeBlock/CodeBlock.js +123 -0
  200. package/dist/components/CodeBlock/CodeBlock.js.map +1 -0
  201. package/dist/components/Collapsible/Collapsible.js +10 -2
  202. package/dist/components/Collapsible/Collapsible.js.map +1 -1
  203. package/dist/components/Combobox/Combobox.d.ts +15 -1
  204. package/dist/components/Combobox/Combobox.js +25 -5
  205. package/dist/components/Combobox/Combobox.js.map +1 -1
  206. package/dist/components/Command/Command.d.ts +4 -2
  207. package/dist/components/Command/Command.js +13 -1
  208. package/dist/components/Command/Command.js.map +1 -1
  209. package/dist/components/ContextMenu/ContextMenu.d.ts +30 -5
  210. package/dist/components/ContextMenu/ContextMenu.js +32 -2
  211. package/dist/components/ContextMenu/ContextMenu.js.map +1 -1
  212. package/dist/components/DatePicker/DatePicker.d.ts +36 -4
  213. package/dist/components/DatePicker/DatePicker.js +55 -12
  214. package/dist/components/DatePicker/DatePicker.js.map +1 -1
  215. package/dist/components/DescriptionList/DescriptionList.d.ts +73 -0
  216. package/dist/components/DescriptionList/DescriptionList.js +35 -0
  217. package/dist/components/DescriptionList/DescriptionList.js.map +1 -0
  218. package/dist/components/Diagram/Diagram.d.ts +8 -3
  219. package/dist/components/Diagram/Diagram.js +82 -10
  220. package/dist/components/Diagram/Diagram.js.map +1 -1
  221. package/dist/components/Dialog/Dialog.d.ts +18 -3
  222. package/dist/components/Dialog/Dialog.js +20 -2
  223. package/dist/components/Dialog/Dialog.js.map +1 -1
  224. package/dist/components/DropdownMenu/DropdownMenu.d.ts +49 -11
  225. package/dist/components/DropdownMenu/DropdownMenu.js +32 -2
  226. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
  227. package/dist/components/EmptyState/EmptyState.d.ts +25 -1
  228. package/dist/components/EmptyState/EmptyState.js +3 -1
  229. package/dist/components/EmptyState/EmptyState.js.map +1 -1
  230. package/dist/components/ErrorState/ErrorState.d.ts +22 -1
  231. package/dist/components/ErrorState/ErrorState.js +11 -2
  232. package/dist/components/ErrorState/ErrorState.js.map +1 -1
  233. package/dist/components/Field/Field.d.ts +70 -3
  234. package/dist/components/Field/Field.js +53 -12
  235. package/dist/components/Field/Field.js.map +1 -1
  236. package/dist/components/Field/field-control.d.ts +31 -0
  237. package/dist/components/Field/field-control.js +12 -0
  238. package/dist/components/Field/field-control.js.map +1 -0
  239. package/dist/components/FloatingIconButton/FloatingIconButton.js +2 -0
  240. package/dist/components/FloatingIconButton/FloatingIconButton.js.map +1 -1
  241. package/dist/components/Heading/Heading.d.ts +62 -0
  242. package/dist/components/Heading/Heading.js +44 -0
  243. package/dist/components/Heading/Heading.js.map +1 -0
  244. package/dist/components/Markdown/Markdown.d.ts +139 -0
  245. package/dist/components/Markdown/Markdown.js +135 -0
  246. package/dist/components/Markdown/Markdown.js.map +1 -0
  247. package/dist/components/Markdown/inline.d.ts +29 -0
  248. package/dist/components/Markdown/inline.js +74 -0
  249. package/dist/components/Markdown/inline.js.map +1 -0
  250. package/dist/components/Markdown/nodes.d.ts +65 -0
  251. package/dist/components/Markdown/nodes.js +1 -0
  252. package/dist/components/Markdown/nodes.js.map +1 -0
  253. package/dist/components/Markdown/parse.d.ts +24 -0
  254. package/dist/components/Markdown/parse.js +110 -0
  255. package/dist/components/Markdown/parse.js.map +1 -0
  256. package/dist/components/Markdown/slug.d.ts +15 -0
  257. package/dist/components/Markdown/slug.js +7 -0
  258. package/dist/components/Markdown/slug.js.map +1 -0
  259. package/dist/components/NativeSelect/NativeSelect.d.ts +6 -0
  260. package/dist/components/NativeSelect/NativeSelect.js +2 -3
  261. package/dist/components/NativeSelect/NativeSelect.js.map +1 -1
  262. package/dist/components/Pagination/Pagination.d.ts +24 -1
  263. package/dist/components/Pagination/Pagination.js +6 -3
  264. package/dist/components/Pagination/Pagination.js.map +1 -1
  265. package/dist/components/Progress/Progress.d.ts +17 -5
  266. package/dist/components/Progress/Progress.js +18 -6
  267. package/dist/components/Progress/Progress.js.map +1 -1
  268. package/dist/components/RadioGroup/RadioGroup.d.ts +6 -0
  269. package/dist/components/RadioGroup/RadioGroup.js +11 -1
  270. package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
  271. package/dist/components/ScrollArea/ScrollArea.d.ts +15 -0
  272. package/dist/components/ScrollArea/ScrollArea.js +2 -2
  273. package/dist/components/ScrollArea/ScrollArea.js.map +1 -1
  274. package/dist/components/SearchableMenu/SearchableMenu.d.ts +11 -2
  275. package/dist/components/SearchableMenu/SearchableMenu.js +24 -2
  276. package/dist/components/SearchableMenu/SearchableMenu.js.map +1 -1
  277. package/dist/components/Select/Select.d.ts +18 -2
  278. package/dist/components/Select/Select.js +20 -3
  279. package/dist/components/Select/Select.js.map +1 -1
  280. package/dist/components/Separator/Separator.d.ts +21 -3
  281. package/dist/components/Separator/Separator.js +9 -1
  282. package/dist/components/Separator/Separator.js.map +1 -1
  283. package/dist/components/Sheet/Sheet.d.ts +3 -0
  284. package/dist/components/Sheet/Sheet.js +11 -2
  285. package/dist/components/Sheet/Sheet.js.map +1 -1
  286. package/dist/components/Skeleton/Skeleton.d.ts +8 -1
  287. package/dist/components/Skeleton/Skeleton.js +1 -1
  288. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  289. package/dist/components/Slider/Slider.d.ts +21 -3
  290. package/dist/components/Slider/Slider.js +54 -27
  291. package/dist/components/Slider/Slider.js.map +1 -1
  292. package/dist/components/Spinner/Spinner.d.ts +8 -0
  293. package/dist/components/Spinner/Spinner.js +3 -2
  294. package/dist/components/Spinner/Spinner.js.map +1 -1
  295. package/dist/components/StatusPill/StatusPill.d.ts +5 -0
  296. package/dist/components/StatusPill/StatusPill.js +6 -0
  297. package/dist/components/StatusPill/StatusPill.js.map +1 -1
  298. package/dist/components/Table/Table.d.ts +6 -0
  299. package/dist/components/Table/Table.js +3 -1
  300. package/dist/components/Table/Table.js.map +1 -1
  301. package/dist/components/Tag/Tag.d.ts +68 -9
  302. package/dist/components/Tag/Tag.js +50 -10
  303. package/dist/components/Tag/Tag.js.map +1 -1
  304. package/dist/components/Text/Text.d.ts +62 -0
  305. package/dist/components/Text/Text.js +30 -0
  306. package/dist/components/Text/Text.js.map +1 -0
  307. package/dist/components/Timestamp/Timestamp.d.ts +59 -0
  308. package/dist/components/Timestamp/Timestamp.js +56 -0
  309. package/dist/components/Timestamp/Timestamp.js.map +1 -0
  310. package/dist/components/Toast/Toast.d.ts +9 -1
  311. package/dist/components/Toast/Toast.js +27 -4
  312. package/dist/components/Toast/Toast.js.map +1 -1
  313. package/dist/components/ToggleGroup/ToggleGroup.d.ts +6 -1
  314. package/dist/components/ToggleGroup/ToggleGroup.js +11 -1
  315. package/dist/components/ToggleGroup/ToggleGroup.js.map +1 -1
  316. package/dist/components/Toolbar/Toolbar.d.ts +55 -0
  317. package/dist/components/Toolbar/Toolbar.js +43 -0
  318. package/dist/components/Toolbar/Toolbar.js.map +1 -0
  319. package/dist/diagrams/ArchitectureFigure/ArchitectureFigure.d.ts +55 -0
  320. package/dist/diagrams/ArchitectureFigure/ArchitectureFigure.js +175 -0
  321. package/dist/diagrams/ArchitectureFigure/ArchitectureFigure.js.map +1 -0
  322. package/dist/diagrams/DataflowFigure/DataflowFigure.d.ts +28 -0
  323. package/dist/diagrams/DataflowFigure/DataflowFigure.js +148 -0
  324. package/dist/diagrams/DataflowFigure/DataflowFigure.js.map +1 -0
  325. package/dist/diagrams/DiagramCanvas/DiagramCanvas.d.ts +78 -0
  326. package/dist/diagrams/DiagramCanvas/DiagramCanvas.js +229 -0
  327. package/dist/diagrams/DiagramCanvas/DiagramCanvas.js.map +1 -0
  328. package/dist/diagrams/DiagramExportMenu/DiagramExportMenu.d.ts +106 -0
  329. package/dist/diagrams/DiagramExportMenu/DiagramExportMenu.js +123 -0
  330. package/dist/diagrams/DiagramExportMenu/DiagramExportMenu.js.map +1 -0
  331. package/dist/diagrams/DiagramInspector/DiagramInspector.d.ts +70 -0
  332. package/dist/diagrams/DiagramInspector/DiagramInspector.js +94 -0
  333. package/dist/diagrams/DiagramInspector/DiagramInspector.js.map +1 -0
  334. package/dist/diagrams/DiagramLegend/DiagramLegend.d.ts +42 -0
  335. package/dist/diagrams/DiagramLegend/DiagramLegend.js +35 -0
  336. package/dist/diagrams/DiagramLegend/DiagramLegend.js.map +1 -0
  337. package/dist/diagrams/DiagramMinimap/DiagramMinimap.d.ts +77 -0
  338. package/dist/diagrams/DiagramMinimap/DiagramMinimap.js +106 -0
  339. package/dist/diagrams/DiagramMinimap/DiagramMinimap.js.map +1 -0
  340. package/dist/diagrams/DiagramToolbar/DiagramToolbar.d.ts +48 -0
  341. package/dist/diagrams/DiagramToolbar/DiagramToolbar.js +53 -0
  342. package/dist/diagrams/DiagramToolbar/DiagramToolbar.js.map +1 -0
  343. package/dist/diagrams/LifecycleFigure/LifecycleFigure.d.ts +31 -0
  344. package/dist/diagrams/LifecycleFigure/LifecycleFigure.js +234 -0
  345. package/dist/diagrams/LifecycleFigure/LifecycleFigure.js.map +1 -0
  346. package/dist/diagrams/SequenceFigure/SequenceFigure.d.ts +38 -0
  347. package/dist/diagrams/SequenceFigure/SequenceFigure.js +261 -0
  348. package/dist/diagrams/SequenceFigure/SequenceFigure.js.map +1 -0
  349. package/dist/diagrams/WorkflowFigure/WorkflowFigure.d.ts +36 -0
  350. package/dist/diagrams/WorkflowFigure/WorkflowFigure.js +259 -0
  351. package/dist/diagrams/WorkflowFigure/WorkflowFigure.js.map +1 -0
  352. package/dist/diagrams/index.d.ts +17 -0
  353. package/dist/diagrams/index.js +29 -0
  354. package/dist/diagrams/index.js.map +1 -0
  355. package/dist/diagrams/lib/dev.d.ts +61 -0
  356. package/dist/diagrams/lib/dev.js +96 -0
  357. package/dist/diagrams/lib/dev.js.map +1 -0
  358. package/dist/diagrams/lib/frame.d.ts +138 -0
  359. package/dist/diagrams/lib/frame.js +131 -0
  360. package/dist/diagrams/lib/frame.js.map +1 -0
  361. package/dist/diagrams/lib/geometry.d.ts +114 -0
  362. package/dist/diagrams/lib/geometry.js +113 -0
  363. package/dist/diagrams/lib/geometry.js.map +1 -0
  364. package/dist/diagrams/lib/legend.d.ts +32 -0
  365. package/dist/diagrams/lib/legend.js +84 -0
  366. package/dist/diagrams/lib/legend.js.map +1 -0
  367. package/dist/diagrams/lib/marks.d.ts +207 -0
  368. package/dist/diagrams/lib/marks.js +480 -0
  369. package/dist/diagrams/lib/marks.js.map +1 -0
  370. package/dist/diagrams/lib/route.d.ts +85 -0
  371. package/dist/diagrams/lib/route.js +178 -0
  372. package/dist/diagrams/lib/route.js.map +1 -0
  373. package/dist/diagrams/lib/wires.d.ts +59 -0
  374. package/dist/diagrams/lib/wires.js +90 -0
  375. package/dist/diagrams/lib/wires.js.map +1 -0
  376. package/dist/diagrams/spec.d.ts +405 -0
  377. package/dist/diagrams/spec.js +1 -0
  378. package/dist/diagrams/spec.js.map +1 -0
  379. package/dist/index.d.ts +16 -4
  380. package/dist/index.js +9 -0
  381. package/dist/index.js.map +1 -1
  382. package/dist/keyframes.css +57 -3
  383. package/dist/lib/overlay-container.d.ts +14 -4
  384. package/dist/lib/overlay-container.js.map +1 -1
  385. package/dist/lib/svg-export.d.ts +138 -0
  386. package/dist/lib/svg-export.js +198 -0
  387. package/dist/lib/svg-export.js.map +1 -0
  388. package/dist/lib/warn.d.ts +73 -0
  389. package/dist/lib/warn.js +38 -0
  390. package/dist/lib/warn.js.map +1 -0
  391. package/dist/semantic.css +51 -6
  392. package/dist/styles.css +1 -1
  393. package/dist/tokens.css +20 -2
  394. package/dist/tokens.d.ts +17 -1
  395. package/dist/tokens.js +121 -36
  396. package/dist/tokens.json +121 -36
  397. package/llms.txt +35 -0
  398. package/package.json +9 -2
  399. package/skills/misoto22-design/SKILL.md +21 -7
  400. package/skills/misoto22-design/evals/evals.json +84 -0
  401. package/skills/misoto22-design/rules/a11y.md +55 -3
  402. package/skills/misoto22-design/rules/forms.md +5 -0
package/llms.txt ADDED
@@ -0,0 +1,35 @@
1
+ # @misoto22/design
2
+
3
+ > A monochrome design system for software, writing and photography: portable CSS
4
+ > tokens and accessible React 19 primitives, charts and diagrams. Components ship
5
+ > compiled — import them, do not copy them.
6
+
7
+ This file is a stub on purpose. It carries no prop tables and no version, so it
8
+ cannot go stale between releases; everything it points at is generated from the
9
+ source in this same tarball at build time.
10
+
11
+ ## In this package, offline
12
+
13
+ - [dist/agent/index.md](./dist/agent/index.md): every component, one line each, plus the theme axes read out of the stylesheets.
14
+ - [dist/agent/<Component>.md](./dist/agent/): one component in full — every prop with its type and default, the exported unions, the keyboard contract, the accessibility promises, the examples.
15
+ - [skills/misoto22-design/SKILL.md](./skills/misoto22-design/SKILL.md): the conventions an agent gets wrong from habit — the names that diverge from shadcn/ui, and colour that is never a raw class.
16
+ - [AGENTS.md](./AGENTS.md): the short version of this, plus what to know when working on the package itself.
17
+
18
+ Prefer the CLI over reading these by path — it resolves parts and types, not
19
+ just components:
20
+
21
+ ```bash
22
+ npx misoto22-design docs Button
23
+ npx misoto22-design docs --installed
24
+ ```
25
+
26
+ ## On the web
27
+
28
+ - [https://ui.misoto22.com/llms.txt](https://ui.misoto22.com/llms.txt): the site's index.
29
+ - [https://ui.misoto22.com/llms-full.txt](https://ui.misoto22.com/llms-full.txt): every component inline, in one file.
30
+ - [https://ui.misoto22.com](https://ui.misoto22.com): the rendered documentation.
31
+
32
+ ## Optional
33
+
34
+ - [README.md](./README.md): install, theming, and the same three commands for a human reader.
35
+ - [CHANGELOG.md](./CHANGELOG.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misoto22/design",
3
- "version": "0.6.1",
3
+ "version": "0.8.0",
4
4
  "private": false,
5
5
  "description": "Monochrome design system — CSS tokens and accessible React primitives",
6
6
  "license": "MIT",
@@ -13,6 +13,9 @@
13
13
  "dist",
14
14
  "skills",
15
15
  "bin",
16
+ "AGENTS.md",
17
+ "CLAUDE.md",
18
+ "llms.txt",
16
19
  "LICENSE",
17
20
  "README.md"
18
21
  ],
@@ -28,6 +31,10 @@
28
31
  "types": "./dist/charts/index.d.ts",
29
32
  "import": "./dist/charts/index.js"
30
33
  },
34
+ "./diagrams": {
35
+ "types": "./dist/diagrams/index.d.ts",
36
+ "import": "./dist/diagrams/index.js"
37
+ },
31
38
  "./styles.css": "./dist/styles.css",
32
39
  "./tokens.css": "./dist/tokens.css",
33
40
  "./semantic.css": "./dist/semantic.css",
@@ -139,7 +146,7 @@
139
146
  },
140
147
  "scripts": {
141
148
  "build:fonts": "node scripts/vendor-fonts.mjs",
142
- "build:js": "NODE_OPTIONS=--max-old-space-size=6144 tsup",
149
+ "build:js": "NODE_OPTIONS=--max-old-space-size=8192 tsup",
143
150
  "build:css": "tailwindcss -i ./src/styles/index.css -o ./dist/styles.css --minify && node scripts/copy-portable-css.mjs && node scripts/emit-tokens.mjs",
144
151
  "build:agent": "node scripts/emit-agent.mjs",
145
152
  "build": "pnpm run build:fonts && pnpm run build:js && pnpm run build:css && pnpm run build:agent",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: misoto22-design
3
- description: Builds UI with @misoto22/design — a monochrome design system of CSS tokens and 72 accessible React primitives, charts included. Use when a project imports '@misoto22/design' or '@misoto22/design/charts', sets data-mode / data-surface / data-radius / data-density, or uses cn(), CONTROL_BASE, or isInvalid. Also applies when adding a component, theming, plotting data, or fixing a form, table, dialog, or toast in such a project.
3
+ description: Builds UI with @misoto22/design — a monochrome design system of CSS tokens and 83 accessible React primitives, charts and diagrams included. Use when a project imports '@misoto22/design', '@misoto22/design/charts' or '@misoto22/design/diagrams', sets data-mode / data-surface / data-radius / data-density, or uses cn(), CONTROL_BASE, or isInvalid. Also applies when adding a component, theming, plotting data, drawing an architecture, workflow, sequence, data-flow or lifecycle diagram, or fixing a form, table, dialog, or toast in such a project.
4
4
  allowed-tools: Bash(npx misoto22-design *), Bash(pnpm exec misoto22-design *), Bash(bunx misoto22-design *)
5
5
  ---
6
6
 
@@ -14,16 +14,19 @@ import { Button, Field, Input } from '@misoto22/design'
14
14
  import '@misoto22/design/styles.css'
15
15
  ```
16
16
 
17
- ## Two entry points
17
+ ## Three entry points
18
18
 
19
- The root entry has no dependencies a consumer has to install. Everything that
20
- plots data lives behind a second specifier, because it needs a rendering engine
21
- and an animation runtime that nothing else in the package does:
19
+ The root entry has no dependencies a consumer has to install. Two groups live
20
+ behind their own specifier instead, each for weight the root should not carry:
22
21
 
23
22
  ```tsx
24
23
  import { AreaChart, BarList, BigNumber } from '@misoto22/design/charts'
24
+ import { ArchitectureFigure, DiagramCanvas } from '@misoto22/design/diagrams'
25
25
  ```
26
26
 
27
+ Charts need a rendering engine and an animation runtime that nothing else in
28
+ the package does:
29
+
27
30
  ```bash
28
31
  pnpm add recharts motion # optional peers, only for the charts entry
29
32
  ```
@@ -39,6 +42,16 @@ Some of the charts need no engine at all — `Heatmap` is a `<table>`,
39
42
  HTML — but they ship from the charts entry all the same, so the boundary stays
40
43
  one line rather than a list to memorise.
41
44
 
45
+ Diagrams need no peer at all; they carry an orthogonal routing engine instead,
46
+ which has no business in a bundle that renders a Badge. Reach for that entry
47
+ when the task is to DRAW a system rather than to build a screen:
48
+ `ArchitectureFigure` for what talks to what, `WorkflowFigure` for a process in
49
+ lanes, `SequenceFigure` for a call chain over time, `DataflowFigure` for a
50
+ pipeline, `LifecycleFigure` for a state machine. Each takes a typed JSON
51
+ specification and renders on a server. `Diagram` is a different thing and stays
52
+ on the root: a nesting CSS diagram for an article, not an SVG figure with
53
+ routed edges.
54
+
42
55
  One more, for surfaces that cannot read a custom property — an OpenGraph card, a
43
56
  `theme-color`, a canvas:
44
57
 
@@ -66,8 +79,9 @@ npx misoto22-design docs Button
66
79
 
67
80
  Run that before writing against a component you have not used in this session.
68
81
  The median component is ~500 tokens and the largest is ~1,300, against far more
69
- for all seventy-two. It is generated from the installed source, so it cannot be
70
- out of date the way the website can.
82
+ for all eighty-three. It is generated from the installed source, so it cannot be
83
+ out of date the way the website can — and each file names the specifier it
84
+ ships from on its `Import:` line, which is the half that matters below.
71
85
 
72
86
  It also resolves parts and types, not just components: `docs CardBody`,
73
87
  `docs TH` and `docs ButtonVariant` all land on the right file. When an import
@@ -0,0 +1,84 @@
1
+ {
2
+ "$comment": "Prompts a real agent runs against this skill, and what its output has to show. This is the half `claims.json` cannot reach: that file proves the rules match the package, which is necessary and does not prove an agent given the rules writes correct code. Each `must_use` identifier is checked for existence by `skill.test.ts`, so an eval cannot quietly start expecting something the package no longer exports.",
3
+ "skill_name": "misoto22-design",
4
+ "evals": [
5
+ {
6
+ "id": 1,
7
+ "prompt": "Using @misoto22/design, build a settings form with fields for full name and email address, and show a validation error under email when it is invalid.",
8
+ "expected_output": "A React component using one Field per control, the error prop rather than a red border, and gap-* on the form.",
9
+ "must_use": ["Field", "Input", "Button"],
10
+ "must_not_contain": ["space-y-", "border-red", "text-red-", "<label", "aria-describedby="],
11
+ "expectations": [
12
+ "Wraps each control in its own Field with a label, not a hand-rolled <label> plus input plus error div",
13
+ "Puts the validation message in Field's error prop, which sets aria-invalid on the control for it",
14
+ "Does not also pass invalid on the Input inside a Field with an error — that is redundant",
15
+ "Never a wrapper div between Field and its control, which would wire the div instead",
16
+ "Lays the form out with flex and gap-*, not space-y-*"
17
+ ]
18
+ },
19
+ {
20
+ "id": 2,
21
+ "prompt": "Using @misoto22/design, add a confirmation dialog for deleting a project. It needs a heading, an explanation, and Cancel and Delete buttons.",
22
+ "expected_output": "A Dialog whose title and description are props on DialogContent, with a danger-variant Delete button.",
23
+ "must_use": ["Dialog", "DialogTrigger", "DialogContent", "Button"],
24
+ "must_not_contain": ["DialogTitle", "DialogHeader", "DialogDescription", "DialogFooter"],
25
+ "expectations": [
26
+ "Passes title and description as props on DialogContent — there is no DialogTitle or DialogHeader export here",
27
+ "Uses variant=\"danger\" for the destructive action",
28
+ "Wraps the trigger with asChild rather than nesting a button inside a button",
29
+ "Sets no z-index: the overlay handles its own stacking"
30
+ ]
31
+ },
32
+ {
33
+ "id": 3,
34
+ "prompt": "Using @misoto22/design, render a table of open invoices with client, due date and amount, with the amount column right-aligned.",
35
+ "expected_output": "A Table with a real caption and the short part names, amount aligned with the align prop.",
36
+ "must_use": ["Table", "THead", "TBody", "TR", "TH", "TD"],
37
+ "must_not_contain": ["TableHeader", "TableBody", "TableRow", "TableHead", "TableCell", "text-right"],
38
+ "expectations": [
39
+ "Uses THead / TBody / TR / TH / TD — the shadcn/ui names are not exported here",
40
+ "Gives caption a real sentence saying what the table lists, not an empty string and not the word \"Table\"",
41
+ "Right-aligns with align=\"end\" on TH and TD, not a text-right class, so the table stays RTL-correct"
42
+ ]
43
+ },
44
+ {
45
+ "id": 4,
46
+ "prompt": "Using @misoto22/design, build a dashboard row of four stat cards. Each shows a title, a big number, a change badge, and a loading state.",
47
+ "expected_output": "Full Card composition, Skeleton for loading, Badge for the change, semantic tokens throughout.",
48
+ "must_use": ["Card", "CardHeader", "CardTitle", "CardBody", "Badge", "Skeleton"],
49
+ "must_not_contain": ["CardContent", "animate-pulse", "bg-green-", "text-red-", "dark:"],
50
+ "expectations": [
51
+ "Uses CardBody, not CardContent",
52
+ "Composes CardHeader and CardTitle rather than putting everything in one block",
53
+ "Uses Skeleton for the loading placeholder, not a custom animate-pulse div",
54
+ "Uses Badge for the change rather than a styled span",
55
+ "Writes no raw colour and no dark: variant — semantic tokens resolve in both modes"
56
+ ]
57
+ },
58
+ {
59
+ "id": 5,
60
+ "prompt": "Using @misoto22/design, add a small area chart of monthly revenue above the stat cards.",
61
+ "expected_output": "A chart imported from the charts entry point, with the peers named.",
62
+ "must_use": ["AreaChart"],
63
+ "must_not_contain": ["from '@misoto22/design'\nimport { AreaChart"],
64
+ "expectations": [
65
+ "Imports the chart from '@misoto22/design/charts', not from the root specifier — the root does not export it and the import throws",
66
+ "Mentions that recharts and motion are peer dependencies the project needs installed",
67
+ "Does not reach for recharts directly to build the chart by hand"
68
+ ]
69
+ },
70
+ {
71
+ "id": 6,
72
+ "prompt": "Using @misoto22/design, add an icon-only button that copies the current URL, and a toast confirming it.",
73
+ "expected_output": "An iconOnly Button with an accessible name, and toast imported from this package.",
74
+ "must_use": ["Button", "toast", "Toaster"],
75
+ "must_not_contain": ["from 'sonner'"],
76
+ "expectations": [
77
+ "Gives the iconOnly Button an aria-label naming the action — without one it is announced as \"button\" and nothing else",
78
+ "Imports toast from '@misoto22/design', not from sonner",
79
+ "Renders Toaster once at the app root rather than beside the button",
80
+ "Puts no sizing class on the icon"
81
+ ]
82
+ }
83
+ ]
84
+ }
@@ -38,6 +38,52 @@ caption still reaches assistive tech.
38
38
 
39
39
  ## An icon-only control needs a name
40
40
 
41
+ Development warns on both failures in this section rather than leaving them to
42
+ review: `BUTTON_ICON_ONLY_UNNAMED` when an `iconOnly` Button has neither
43
+ `aria-label` nor `aria-labelledby`, and `REQUIRED_NAME_BLANK` when a name that
44
+ is required for accessibility is an empty string. Each names the field and the
45
+ fix, so a failed render tells you what to change.
46
+
47
+ They are two of nineteen. The whole set, so a code you meet in a console is
48
+ findable:
49
+
50
+ | Code | Fires when |
51
+ | --- | --- |
52
+ | `ARTICLE_HTML_AND_CHILDREN` | `Article` is given both `html` and `children`. |
53
+ | `BREADCRUMB_CRUMB_NOT_LINKED` | A crumb before the last carries no `href`. |
54
+ | `BUTTON_ICON_ONLY_UNNAMED` | An icon-only `Button` has no accessible name. |
55
+ | `DIALOG_TITLE_MISSING` | `DialogContent` has no `title`. |
56
+ | `FIELD_CONTROL_NOT_LABELLABLE` | A `Field`'s child is a host element that cannot take a label. |
57
+ | `FIELD_CONTROL_NOT_WIRED` | A `Field`'s child is not a single element, so nothing was wired. |
58
+ | `REQUIRED_NAME_BLANK` | A name required for accessibility is an empty string. |
59
+ | `SEARCHABLE_MENU_LABEL_UNREADABLE` | A `SearchableMenu` action's label has no text and no `keywords`, so typing can never find it. |
60
+
61
+ `Diagram` checks the spec it was handed, because a figure that ignores an edge
62
+ still renders beautifully:
63
+
64
+ | Code | Fires when |
65
+ | --- | --- |
66
+ | `DIAGRAM_ACCENT_ON_CONTAINER` | `accent` on a node with children, drawn as a band with no fill to take. |
67
+ | `DIAGRAM_DIRECTION_ON_LEAF` | `direction` on a node with no children. |
68
+ | `DIAGRAM_DUPLICATE_ID` | Two nodes carry the same `id`. |
69
+ | `DIAGRAM_EDGE_NOT_ADJACENT` | An edge names two nodes that are never consecutive siblings. |
70
+ | `DIAGRAM_EDGE_UNKNOWN_NODE` | An edge names an `id` no node carries. |
71
+
72
+ And the figures in `@misoto22/design/diagrams` check theirs:
73
+
74
+ | Code | Fires when |
75
+ | --- | --- |
76
+ | `DIAGRAM_CELL_COLLISION` | Two nodes land at the same coordinate, so one plate is drawn on top of the other. |
77
+ | `DIAGRAM_EDGE_DANGLING` | A relationship names an id the specification does not declare, so it is left out of the picture and the summary. |
78
+ | `DIAGRAM_LANE_UNKNOWN` | A node names a lane no lane in the specification declares; it falls back to the first. |
79
+ | `DIAGRAM_REF_UNKNOWN` | A field references an id no node in the specification declares. |
80
+ | `DIAGRAM_SPEC_MUTATED` | The same spec object arrives with different contents; the model is memoised on identity, so the figure still draws the first. |
81
+ | `DIAGRAM_STAGE_OUT_OF_RANGE` | A node's `stage` falls past the last declared stage, so it is drawn in a column the axis does not label. |
82
+
83
+ All of them are development-only — every call site is behind
84
+ `process.env.NODE_ENV`, so nothing here reaches a production bundle — and each
85
+ prints once per problem, the field that caused it, and an imperative fix.
86
+
41
87
  ```tsx
42
88
  // Incorrect — reads as "button"
43
89
  <Button iconOnly><TrashIcon /></Button>
@@ -93,9 +139,15 @@ where a hand-rolled component quietly becomes unusable with a keyboard. `Dialog`
93
139
 
94
140
  ## Motion is gated
95
141
 
96
- Anything animated is behind `motion-safe` and carries `data-m22-animated`, so
97
- the one reduced-motion rule in the package can reach it. If you animate
98
- something yourself, do both.
142
+ Anything animated is behind `motion-safe` and carries `data-m22-animated`. Do
143
+ both when you animate something yourself but know what each one buys. The
144
+ GUARANTEE is a universal rule in `keyframes.css`: under
145
+ `prefers-reduced-motion: reduce`, `animation-duration` and `transition-duration`
146
+ are clamped to 0.01ms on `*`, so your animation is covered whether or not you
147
+ remember the attribute. `data-m22-animated` goes further, removing the
148
+ animation outright rather than running an instant frame of it — read it as the
149
+ component asserting its motion is decorative, not as the thing that does the
150
+ cancelling.
99
151
 
100
152
  ```tsx
101
153
  // Correct — the package's keyframes are all prefixed `m22-`
@@ -55,6 +55,11 @@ field is wrong, the thing to read is what is wrong with it.
55
55
 
56
56
  ## One control per `Field`
57
57
 
58
+ `Field` warns in development when it cannot wire a control, so you do not have
59
+ to spot this by reading. `FIELD_CONTROL_NOT_LABELLABLE` means the child is a
60
+ wrapper and the label went onto the box; `FIELD_CONTROL_NOT_WIRED` means there
61
+ was no single element to wire at all. Both print the fix.
62
+
58
63
  The wiring clones a **single** element child. Two children, or a wrapper div,
59
64
  and nothing is wired — the label points at an id that is on nothing.
60
65