@xdev-asia/ui 0.0.0-stage → 4.15.1

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 (448) hide show
  1. package/AGENTS.md +66 -0
  2. package/LICENSE +202 -0
  3. package/README.md +149 -2
  4. package/assets/brand/mobile/android-background-1024.png +0 -0
  5. package/assets/brand/mobile/android-background.svg +13 -0
  6. package/assets/brand/mobile/android-foreground-1024.png +0 -0
  7. package/assets/brand/mobile/android-foreground.svg +13 -0
  8. package/assets/brand/mobile/android-monochrome-1024.png +0 -0
  9. package/assets/brand/mobile/android-monochrome.svg +3 -0
  10. package/assets/brand/mobile/ios-icon-1024.png +0 -0
  11. package/assets/brand/mobile/ios-icon-dark-1024.png +0 -0
  12. package/assets/brand/mobile/ios-icon-dark.svg +22 -0
  13. package/assets/brand/mobile/ios-icon.svg +22 -0
  14. package/assets/brand/systems/xdev-ui-icon.svg +23 -0
  15. package/assets/brand/systems/xdev-ui-lockup-dark.svg +24 -0
  16. package/assets/brand/systems/xdev-ui-lockup-light.svg +24 -0
  17. package/assets/brand/systems/xdev-ui-mark-lit.svg +13 -0
  18. package/assets/brand/systems/xdev-ui-mark.svg +3 -0
  19. package/assets/brand/xdev-icon-512.png +0 -0
  20. package/assets/brand/xdev-icon-blue.svg +23 -0
  21. package/assets/brand/xdev-icon.svg +23 -0
  22. package/assets/brand/xdev-lockup-dark.svg +24 -0
  23. package/assets/brand/xdev-lockup-light.svg +24 -0
  24. package/assets/brand/xdev-mark-lit.svg +13 -0
  25. package/assets/brand/xdev-mark-tile.svg +3 -0
  26. package/assets/brand/xdev-mark.svg +3 -0
  27. package/bin/xdev-ui-skills.mjs +142 -0
  28. package/dist/Workspace.stories.d.ts +15 -0
  29. package/dist/ai-manifest.json +3727 -0
  30. package/dist/chunks/FileDrop-C-ygn8kF.js +891 -0
  31. package/dist/chunks/FileDrop-C-ygn8kF.js.map +1 -0
  32. package/dist/chunks/Popover-Ds4RBtZv.js +121 -0
  33. package/dist/chunks/Popover-Ds4RBtZv.js.map +1 -0
  34. package/dist/chunks/crop-CahE3q01.js +55 -0
  35. package/dist/chunks/crop-CahE3q01.js.map +1 -0
  36. package/dist/chunks/modal-BYFY08ti.js +54 -0
  37. package/dist/chunks/modal-BYFY08ti.js.map +1 -0
  38. package/dist/components/ActionTile/ActionTile.d.ts +14 -0
  39. package/dist/components/ActionTile/ActionTile.stories.d.ts +18 -0
  40. package/dist/components/ActivityBar/ActivityBar.d.ts +36 -0
  41. package/dist/components/ActivityBar/ActivityBar.stories.d.ts +27 -0
  42. package/dist/components/AgentChip/AgentChip.d.ts +10 -0
  43. package/dist/components/AgentChip/AgentChip.stories.d.ts +21 -0
  44. package/dist/components/AgentRow/AgentRow.d.ts +24 -0
  45. package/dist/components/AgentRow/AgentRow.stories.d.ts +19 -0
  46. package/dist/components/AppShell/AppShell.d.ts +58 -0
  47. package/dist/components/AppShell/AppShell.stories.d.ts +17 -0
  48. package/dist/components/ApprovalBar/ApprovalBar.d.ts +23 -0
  49. package/dist/components/ApprovalBar/ApprovalBar.stories.d.ts +18 -0
  50. package/dist/components/AttentionInbox/AttentionInbox.d.ts +43 -0
  51. package/dist/components/AttentionInbox/AttentionInbox.stories.d.ts +16 -0
  52. package/dist/components/AudioPreview/AudioPreview.d.ts +33 -0
  53. package/dist/components/AudioPreview/AudioPreview.stories.d.ts +23 -0
  54. package/dist/components/AudioPreview/audio-preview-store.d.ts +14 -0
  55. package/dist/components/AuthShell/AuthShell.d.ts +24 -0
  56. package/dist/components/AuthShell/AuthShell.stories.d.ts +20 -0
  57. package/dist/components/Avatar/Avatar.d.ts +13 -0
  58. package/dist/components/Avatar/Avatar.stories.d.ts +21 -0
  59. package/dist/components/Badge/Badge.d.ts +14 -0
  60. package/dist/components/Badge/Badge.stories.d.ts +26 -0
  61. package/dist/components/Banner/Banner.d.ts +11 -0
  62. package/dist/components/Banner/Banner.stories.d.ts +23 -0
  63. package/dist/components/BarChart/BarChart.d.ts +20 -0
  64. package/dist/components/BarChart/BarChart.stories.d.ts +24 -0
  65. package/dist/components/Board/Board.d.ts +9 -0
  66. package/dist/components/Board/Board.stories.d.ts +18 -0
  67. package/dist/components/BoardCard/BoardCard.d.ts +32 -0
  68. package/dist/components/BoardColumn/BoardColumn.d.ts +24 -0
  69. package/dist/components/BottomNav/BottomNav.d.ts +40 -0
  70. package/dist/components/BottomNav/BottomNav.stories.d.ts +40 -0
  71. package/dist/components/BrandMark/BrandMark.d.ts +20 -0
  72. package/dist/components/BrandMark/BrandMark.stories.d.ts +28 -0
  73. package/dist/components/Breadcrumb/Breadcrumb.d.ts +22 -0
  74. package/dist/components/Breadcrumb/Breadcrumb.stories.d.ts +27 -0
  75. package/dist/components/BulkBar/BulkBar.d.ts +21 -0
  76. package/dist/components/BulkBar/BulkBar.stories.d.ts +16 -0
  77. package/dist/components/Button/Button.d.ts +42 -0
  78. package/dist/components/Button/Button.stories.d.ts +41 -0
  79. package/dist/components/Card/Card.d.ts +22 -0
  80. package/dist/components/Card/Card.stories.d.ts +307 -0
  81. package/dist/components/Checkbox/Checkbox.d.ts +10 -0
  82. package/dist/components/Checkbox/Checkbox.stories.d.ts +18 -0
  83. package/dist/components/Coachmark/Coachmark.d.ts +31 -0
  84. package/dist/components/Coachmark/Coachmark.stories.d.ts +27 -0
  85. package/dist/components/Coachmark/placeCoachmark.d.ts +31 -0
  86. package/dist/components/CodeBlock/CodeBlock.d.ts +19 -0
  87. package/dist/components/CodeBlock/CodeBlock.stories.d.ts +22 -0
  88. package/dist/components/CodeInput/CodeInput.d.ts +25 -0
  89. package/dist/components/CodeInput/CodeInput.stories.d.ts +32 -0
  90. package/dist/components/CodeInput/normalizeCode.d.ts +10 -0
  91. package/dist/components/ColorField/ColorField.d.ts +29 -0
  92. package/dist/components/Combobox/Combobox.d.ts +105 -0
  93. package/dist/components/Combobox/Combobox.stories.d.ts +42 -0
  94. package/dist/components/CommandPalette/CommandPalette.d.ts +94 -0
  95. package/dist/components/CommandPalette/CommandPalette.stories.d.ts +39 -0
  96. package/dist/components/Comment/Comment.d.ts +25 -0
  97. package/dist/components/Comment/Comment.stories.d.ts +24 -0
  98. package/dist/components/CommitGraph/CommitGraph.d.ts +15 -0
  99. package/dist/components/CommitGraph/CommitGraph.stories.d.ts +15 -0
  100. package/dist/components/CommitGraph/graphLanes.d.ts +56 -0
  101. package/dist/components/Composer/Composer.d.ts +31 -0
  102. package/dist/components/Composer/Composer.stories.d.ts +17 -0
  103. package/dist/components/Container/Container.d.ts +11 -0
  104. package/dist/components/Container/Container.stories.d.ts +14 -0
  105. package/dist/components/DataTable/DataTable.d.ts +79 -0
  106. package/dist/components/DataTable/DataTable.stories.d.ts +26 -0
  107. package/dist/components/DataTable/table-helpers.d.ts +16 -0
  108. package/dist/components/DataTable/table-reorder.d.ts +40 -0
  109. package/dist/components/DatePicker/Calendar.d.ts +51 -0
  110. package/dist/components/DatePicker/DatePicker.d.ts +51 -0
  111. package/dist/components/DatePicker/DatePicker.stories.d.ts +42 -0
  112. package/dist/components/DateRangePicker/DateRangePicker.d.ts +59 -0
  113. package/dist/components/DateRangePicker/DateRangePicker.stories.d.ts +42 -0
  114. package/dist/components/DescriptionList/DescriptionList.d.ts +14 -0
  115. package/dist/components/DescriptionList/DescriptionList.stories.d.ts +21 -0
  116. package/dist/components/Dialog/Dialog.d.ts +43 -0
  117. package/dist/components/Dialog/Dialog.stories.d.ts +22 -0
  118. package/dist/components/DiffStat/DiffStat.d.ts +12 -0
  119. package/dist/components/DiffStat/DiffStat.stories.d.ts +15 -0
  120. package/dist/components/Disclosure/Disclosure.d.ts +18 -0
  121. package/dist/components/Disclosure/Disclosure.stories.d.ts +27 -0
  122. package/dist/components/DonutChart/DonutChart.d.ts +30 -0
  123. package/dist/components/DonutChart/DonutChart.stories.d.ts +26 -0
  124. package/dist/components/Drawer/Drawer.d.ts +27 -0
  125. package/dist/components/Drawer/Drawer.stories.d.ts +18 -0
  126. package/dist/components/Emblem/Emblem.d.ts +19 -0
  127. package/dist/components/Emblem/Emblem.stories.d.ts +19 -0
  128. package/dist/components/EmptyState/EmptyState.d.ts +43 -0
  129. package/dist/components/EmptyState/EmptyState.stories.d.ts +17 -0
  130. package/dist/components/EndpointPanel/EndpointPanel.d.ts +29 -0
  131. package/dist/components/FacetFilter/FacetFilter.d.ts +39 -0
  132. package/dist/components/FacetFilter/FacetFilter.stories.d.ts +23 -0
  133. package/dist/components/FacetFilter/facet-helpers.d.ts +5 -0
  134. package/dist/components/Field/Field.d.ts +27 -0
  135. package/dist/components/Field/Field.stories.d.ts +25 -0
  136. package/dist/components/FieldMessage/FieldMessage.d.ts +10 -0
  137. package/dist/components/FieldMessage/FieldMessage.stories.d.ts +14 -0
  138. package/dist/components/FileDrop/FileDrop.d.ts +72 -0
  139. package/dist/components/FileDrop/FileDrop.stories.d.ts +18 -0
  140. package/dist/components/FileIcon/FileIcon.d.ts +25 -0
  141. package/dist/components/FileIcon/FileIcon.stories.d.ts +14 -0
  142. package/dist/components/FilterChip/FilterChip.d.ts +9 -0
  143. package/dist/components/FilterChip/FilterChip.stories.d.ts +19 -0
  144. package/dist/components/FlowMap/FlowMap.d.ts +74 -0
  145. package/dist/components/FlowMap/FlowMap.stories.d.ts +24 -0
  146. package/dist/components/FontField/FontField.d.ts +15 -0
  147. package/dist/components/FontField/FontField.stories.d.ts +17 -0
  148. package/dist/components/FormDialog/FormDialog.d.ts +40 -0
  149. package/dist/components/FormDialog/FormDialog.stories.d.ts +22 -0
  150. package/dist/components/FormSection/FormSection.d.ts +19 -0
  151. package/dist/components/FormSection/FormSection.stories.d.ts +16 -0
  152. package/dist/components/Grid/Grid.d.ts +23 -0
  153. package/dist/components/Grid/Grid.stories.d.ts +19 -0
  154. package/dist/components/Grid/breakpoints.d.ts +25 -0
  155. package/dist/components/Heatmap/Heatmap.d.ts +22 -0
  156. package/dist/components/Heatmap/Heatmap.stories.d.ts +24 -0
  157. package/dist/components/Icon/Icon.d.ts +14 -0
  158. package/dist/components/Icon/Icon.stories.d.ts +20 -0
  159. package/dist/components/IconButton/IconButton.d.ts +16 -0
  160. package/dist/components/IconButton/IconButton.stories.d.ts +27 -0
  161. package/dist/components/Identity/Identity.d.ts +14 -0
  162. package/dist/components/Identity/Identity.stories.d.ts +14 -0
  163. package/dist/components/Kbd/Kbd.d.ts +5 -0
  164. package/dist/components/Kbd/Kbd.stories.d.ts +13 -0
  165. package/dist/components/Label/Label.d.ts +15 -0
  166. package/dist/components/Label/Label.stories.d.ts +16 -0
  167. package/dist/components/LaunchCard/LaunchCard.d.ts +36 -0
  168. package/dist/components/LaunchCard/LaunchCard.stories.d.ts +32 -0
  169. package/dist/components/List/List.d.ts +11 -0
  170. package/dist/components/List/List.stories.d.ts +13 -0
  171. package/dist/components/ListRow/ListRow.d.ts +20 -0
  172. package/dist/components/ListRow/ListRow.stories.d.ts +27 -0
  173. package/dist/components/Menu/Menu.d.ts +53 -0
  174. package/dist/components/Menu/Menu.stories.d.ts +85 -0
  175. package/dist/components/Menu/MenuButton.d.ts +23 -0
  176. package/dist/components/Menu/MenuButton.stories.d.ts +46 -0
  177. package/dist/components/Menu/menu-keys.d.ts +26 -0
  178. package/dist/components/Meter/Meter.d.ts +18 -0
  179. package/dist/components/Meter/Meter.stories.d.ts +34 -0
  180. package/dist/components/ModelChip/ModelChip.d.ts +26 -0
  181. package/dist/components/ModelChip/ModelChip.stories.d.ts +18 -0
  182. package/dist/components/NavList/NavList.d.ts +56 -0
  183. package/dist/components/NavList/NavList.stories.d.ts +25 -0
  184. package/dist/components/PageHeader/PageHeader.d.ts +14 -0
  185. package/dist/components/PageHeader/PageHeader.stories.d.ts +14 -0
  186. package/dist/components/Pagination/Pagination.d.ts +28 -0
  187. package/dist/components/Pagination/Pagination.stories.d.ts +16 -0
  188. package/dist/components/PairingCode/PairingCode.d.ts +17 -0
  189. package/dist/components/PairingCode/PairingCode.stories.d.ts +24 -0
  190. package/dist/components/PaletteTrigger/PaletteTrigger.d.ts +16 -0
  191. package/dist/components/PanZoom/PanZoom.d.ts +24 -0
  192. package/dist/components/PanZoom/PanZoom.stories.d.ts +11 -0
  193. package/dist/components/Popover/Popover.d.ts +24 -0
  194. package/dist/components/Popover/Popover.stories.d.ts +25 -0
  195. package/dist/components/Prose/Prose.d.ts +8 -0
  196. package/dist/components/Prose/Prose.stories.d.ts +12 -0
  197. package/dist/components/RadioGroup/RadioGroup.d.ts +27 -0
  198. package/dist/components/RadioGroup/RadioGroup.stories.d.ts +22 -0
  199. package/dist/components/ReactionBar/ReactionBar.d.ts +21 -0
  200. package/dist/components/ReactionBar/ReactionBar.stories.d.ts +26 -0
  201. package/dist/components/ResourceCard/ResourceCard.d.ts +30 -0
  202. package/dist/components/ResourceCard/ResourceCard.stories.d.ts +19 -0
  203. package/dist/components/ReviewComment/ReviewComment.d.ts +41 -0
  204. package/dist/components/ReviewComment/ReviewComment.stories.d.ts +19 -0
  205. package/dist/components/RouteDiagram/RouteDiagram.d.ts +27 -0
  206. package/dist/components/RunTimeline/RunTimeline.d.ts +28 -0
  207. package/dist/components/RunTimeline/RunTimeline.stories.d.ts +31 -0
  208. package/dist/components/SaveBar/SaveBar.d.ts +56 -0
  209. package/dist/components/SaveBar/SaveBar.stories.d.ts +16 -0
  210. package/dist/components/SearchInput/SearchInput.d.ts +22 -0
  211. package/dist/components/SearchInput/SearchInput.stories.d.ts +18 -0
  212. package/dist/components/SearchPicker/SearchPicker.d.ts +49 -0
  213. package/dist/components/SearchPicker/SearchPicker.stories.d.ts +33 -0
  214. package/dist/components/Segmented/Segmented.d.ts +18 -0
  215. package/dist/components/Segmented/Segmented.stories.d.ts +18 -0
  216. package/dist/components/Select/Select.d.ts +26 -0
  217. package/dist/components/Select/Select.stories.d.ts +22 -0
  218. package/dist/components/ServiceStatus/ServiceStatus.d.ts +13 -0
  219. package/dist/components/SessionBar/SessionBar.d.ts +33 -0
  220. package/dist/components/SessionBar/SessionBar.stories.d.ts +27 -0
  221. package/dist/components/SettingRow/SettingRow.d.ts +17 -0
  222. package/dist/components/SettingRow/SettingRow.stories.d.ts +26 -0
  223. package/dist/components/SettingsShell/SettingsShell.d.ts +52 -0
  224. package/dist/components/SettingsShell/SettingsShell.stories.d.ts +9 -0
  225. package/dist/components/ShellTitle/ShellTitle.d.ts +25 -0
  226. package/dist/components/SiteShell/SiteShell.d.ts +24 -0
  227. package/dist/components/SiteShell/SiteShell.stories.d.ts +18 -0
  228. package/dist/components/Skeleton/Skeleton.d.ts +20 -0
  229. package/dist/components/Skeleton/Skeleton.stories.d.ts +15 -0
  230. package/dist/components/SortableList/SortableList.d.ts +30 -0
  231. package/dist/components/SortableList/SortableList.stories.d.ts +16 -0
  232. package/dist/components/Spinner/Spinner.d.ts +15 -0
  233. package/dist/components/Spinner/Spinner.stories.d.ts +14 -0
  234. package/dist/components/SplitHandle/SplitHandle.d.ts +25 -0
  235. package/dist/components/SplitHandle/SplitHandle.stories.d.ts +18 -0
  236. package/dist/components/Stack/Stack.d.ts +18 -0
  237. package/dist/components/Stack/Stack.stories.d.ts +12 -0
  238. package/dist/components/StatTile/StatTile.d.ts +30 -0
  239. package/dist/components/StatTile/StatTile.stories.d.ts +32 -0
  240. package/dist/components/StatusBar/StatusBar.d.ts +8 -0
  241. package/dist/components/StatusBar/StatusBar.stories.d.ts +15 -0
  242. package/dist/components/StatusDot/StatusDot.d.ts +18 -0
  243. package/dist/components/StatusDot/StatusDot.stories.d.ts +24 -0
  244. package/dist/components/StepDots/StepDots.d.ts +15 -0
  245. package/dist/components/StepDots/StepDots.stories.d.ts +15 -0
  246. package/dist/components/SwatchGroup/SwatchGroup.d.ts +20 -0
  247. package/dist/components/SwatchGroup/SwatchGroup.stories.d.ts +33 -0
  248. package/dist/components/Switch/Switch.d.ts +10 -0
  249. package/dist/components/Switch/Switch.stories.d.ts +17 -0
  250. package/dist/components/TabStrip/TabStrip.d.ts +44 -0
  251. package/dist/components/TabStrip/TabStrip.stories.d.ts +66 -0
  252. package/dist/components/Tabs/Tabs.d.ts +28 -0
  253. package/dist/components/Tabs/Tabs.stories.d.ts +34 -0
  254. package/dist/components/Tag/Tag.d.ts +12 -0
  255. package/dist/components/Tag/Tag.stories.d.ts +21 -0
  256. package/dist/components/Textarea/Textarea.d.ts +15 -0
  257. package/dist/components/Textarea/Textarea.stories.d.ts +19 -0
  258. package/dist/components/ThemeEditor/ThemeEditor.d.ts +56 -0
  259. package/dist/components/ThemePreview/ThemePreview.d.ts +15 -0
  260. package/dist/components/ThemeSwitch/ThemeSwitch.d.ts +30 -0
  261. package/dist/components/ThemeSwitch/ThemeSwitch.stories.d.ts +15 -0
  262. package/dist/components/TimeField/TimeField.d.ts +32 -0
  263. package/dist/components/TimeField/TimeField.stories.d.ts +36 -0
  264. package/dist/components/TimeField/time-text.d.ts +26 -0
  265. package/dist/components/TimeSeriesChart/TimeSeriesChart.d.ts +30 -0
  266. package/dist/components/TimeSeriesChart/TimeSeriesChart.stories.d.ts +29 -0
  267. package/dist/components/Toast/Toast.d.ts +18 -0
  268. package/dist/components/Toast/Toast.stories.d.ts +15 -0
  269. package/dist/components/Toast/Toaster.d.ts +18 -0
  270. package/dist/components/Toast/Toaster.stories.d.ts +16 -0
  271. package/dist/components/Toast/toast-region.d.ts +17 -0
  272. package/dist/components/Toast/toast-store.d.ts +46 -0
  273. package/dist/components/ToggleButton/ToggleButton.d.ts +16 -0
  274. package/dist/components/ToggleButton/ToggleButton.stories.d.ts +20 -0
  275. package/dist/components/Toolbar/Toolbar.d.ts +21 -0
  276. package/dist/components/Toolbar/Toolbar.stories.d.ts +25 -0
  277. package/dist/components/Tooltip/Tooltip.d.ts +13 -0
  278. package/dist/components/Tooltip/Tooltip.stories.d.ts +23 -0
  279. package/dist/components/TreeView/TreeView.d.ts +42 -0
  280. package/dist/components/TreeView/TreeView.stories.d.ts +26 -0
  281. package/dist/components/TreeView/pathRows.d.ts +16 -0
  282. package/dist/components/TreeView/treeKeys.d.ts +16 -0
  283. package/dist/components/UsageMeterRow/UsageMeterRow.d.ts +28 -0
  284. package/dist/components/UsageMeterRow/UsageMeterRow.stories.d.ts +26 -0
  285. package/dist/components/WorktreeRow/WorktreeRow.d.ts +32 -0
  286. package/dist/components/WorktreeRow/WorktreeRow.stories.d.ts +32 -0
  287. package/dist/components/ZoomBar/ZoomBar.d.ts +22 -0
  288. package/dist/components/ZoomBar/ZoomBar.stories.d.ts +17 -0
  289. package/dist/editor/RichTextEditor/EditorToolbar.d.ts +35 -0
  290. package/dist/editor/RichTextEditor/ImageBar.d.ts +17 -0
  291. package/dist/editor/RichTextEditor/LinkForm.d.ts +16 -0
  292. package/dist/editor/RichTextEditor/RichTextEditor.d.ts +45 -0
  293. package/dist/editor/RichTextEditor/RichTextEditor.stories.d.ts +43 -0
  294. package/dist/editor/RichTextEditor/extensions.d.ts +23 -0
  295. package/dist/editor/RichTextEditor/icons.d.ts +23 -0
  296. package/dist/editor/RichTextEditor/insertImage.d.ts +28 -0
  297. package/dist/editor/RichTextEditor/labels.d.ts +32 -0
  298. package/dist/editor/index.d.ts +4 -0
  299. package/dist/editor.js +629 -0
  300. package/dist/editor.js.map +1 -0
  301. package/dist/fonts.css +2 -0
  302. package/dist/icons.d.ts +891 -0
  303. package/dist/image/ImageCropper/ImageCropper.d.ts +39 -0
  304. package/dist/image/ImageCropper/ImageCropper.stories.d.ts +18 -0
  305. package/dist/image/ImageField/ImageField.d.ts +86 -0
  306. package/dist/image/ImageField/ImageField.stories.d.ts +29 -0
  307. package/dist/image/crop.d.ts +39 -0
  308. package/dist/image/index.d.ts +3 -0
  309. package/dist/image.js +377 -0
  310. package/dist/image.js.map +1 -0
  311. package/dist/index.d.ts +138 -0
  312. package/dist/index.js +8253 -0
  313. package/dist/index.js.map +1 -0
  314. package/dist/internal/cx.d.ts +2 -0
  315. package/dist/internal/date.d.ts +96 -0
  316. package/dist/internal/duration.d.ts +4 -0
  317. package/dist/internal/focus.d.ts +34 -0
  318. package/dist/internal/keys.d.ts +21 -0
  319. package/dist/internal/modal.d.ts +8 -0
  320. package/dist/internal/portal.d.ts +9 -0
  321. package/dist/internal/position.d.ts +37 -0
  322. package/dist/internal/reveal.d.ts +6 -0
  323. package/dist/internal/roving.d.ts +25 -0
  324. package/dist/internal/scroll-fade.d.ts +16 -0
  325. package/dist/internal/session-labels.d.ts +3 -0
  326. package/dist/internal/text.d.ts +2 -0
  327. package/dist/llms-full.txt +9786 -0
  328. package/dist/llms.txt +162 -0
  329. package/dist/mcp.js +24706 -0
  330. package/dist/panZoom.d.ts +40 -0
  331. package/dist/styles.css +2 -0
  332. package/dist/styles.layered.css +4 -0
  333. package/dist/tailwind.css +38 -0
  334. package/dist/test-utils.d.ts +5 -0
  335. package/dist/theme/font.d.ts +20 -0
  336. package/dist/theme/index.d.ts +2 -0
  337. package/dist/theme/theme.d.ts +62 -0
  338. package/dist/tokens.css +304 -0
  339. package/dist/tokens.json +267 -0
  340. package/dist/types.d.ts +6 -0
  341. package/package.json +177 -4
  342. package/skills/xdev-ui-admin/SKILL.md +106 -0
  343. package/skills/xdev-ui-admin/references/audit-log.md +18 -0
  344. package/skills/xdev-ui-admin/references/console-chrome.md +119 -0
  345. package/skills/xdev-ui-admin/references/dashboard.md +24 -0
  346. package/skills/xdev-ui-admin/references/detail-and-forms.md +22 -0
  347. package/skills/xdev-ui-admin/references/dialogs.md +33 -0
  348. package/skills/xdev-ui-admin/references/forms.md +60 -0
  349. package/skills/xdev-ui-admin/references/from-other-kits.md +75 -0
  350. package/skills/xdev-ui-admin/references/layout.md +58 -0
  351. package/skills/xdev-ui-admin/references/navigation.md +10 -0
  352. package/skills/xdev-ui-admin/references/permissions.md +26 -0
  353. package/skills/xdev-ui-admin/references/resource-list.md +64 -0
  354. package/skills/xdev-ui-admin/references/responsive.md +68 -0
  355. package/skills/xdev-ui-admin/references/rich-content.md +37 -0
  356. package/skills/xdev-ui-admin/references/settings.md +20 -0
  357. package/skills/xdev-ui-admin/references/sign-in.md +47 -0
  358. package/skills/xdev-ui-admin/references/states-feedback.md +26 -0
  359. package/skills/xdev-ui-admin/references/tree-list.md +50 -0
  360. package/skills/xdev-ui-admin/references/users-roles.md +32 -0
  361. package/skills/xdev-ui-admin/references/ux-principles.md +43 -0
  362. package/skills/xdev-ui-admin/references/visual-identity.md +62 -0
  363. package/skills/xdev-ui-admin/templates/admin/_gitignore +3 -0
  364. package/skills/xdev-ui-admin/templates/admin/_mcp.json +5 -0
  365. package/skills/xdev-ui-admin/templates/admin/_npmrc +2 -0
  366. package/skills/xdev-ui-admin/templates/admin/index.html +14 -0
  367. package/skills/xdev-ui-admin/templates/admin/package.json +24 -0
  368. package/skills/xdev-ui-admin/templates/admin/src/App.tsx +66 -0
  369. package/skills/xdev-ui-admin/templates/admin/src/app.css +26 -0
  370. package/skills/xdev-ui-admin/templates/admin/src/auth/permissions.ts +7 -0
  371. package/skills/xdev-ui-admin/templates/admin/src/auth/session.ts +42 -0
  372. package/skills/xdev-ui-admin/templates/admin/src/data/context.ts +11 -0
  373. package/skills/xdev-ui-admin/templates/admin/src/data/store.ts +84 -0
  374. package/skills/xdev-ui-admin/templates/admin/src/data/useLoad.ts +25 -0
  375. package/skills/xdev-ui-admin/templates/admin/src/i18n/en.ts +98 -0
  376. package/skills/xdev-ui-admin/templates/admin/src/i18n/index.tsx +63 -0
  377. package/skills/xdev-ui-admin/templates/admin/src/i18n/vi.ts +98 -0
  378. package/skills/xdev-ui-admin/templates/admin/src/i18n/xdev-ui-labels.ts +47 -0
  379. package/skills/xdev-ui-admin/templates/admin/src/main.tsx +12 -0
  380. package/skills/xdev-ui-admin/templates/admin/src/notify.tsx +36 -0
  381. package/skills/xdev-ui-admin/templates/admin/src/pages/Dashboard.tsx +55 -0
  382. package/skills/xdev-ui-admin/templates/admin/src/pages/ItemDetail.tsx +83 -0
  383. package/skills/xdev-ui-admin/templates/admin/src/pages/ItemsList.tsx +140 -0
  384. package/skills/xdev-ui-admin/templates/admin/src/pages/NotFound.tsx +17 -0
  385. package/skills/xdev-ui-admin/templates/admin/src/pages/Settings.tsx +37 -0
  386. package/skills/xdev-ui-admin/templates/admin/src/pages/SignIn.tsx +105 -0
  387. package/skills/xdev-ui-admin/templates/admin/src/router.ts +49 -0
  388. package/skills/xdev-ui-admin/templates/admin/src/shell/AccountMenu.tsx +36 -0
  389. package/skills/xdev-ui-admin/templates/admin/src/shell/Shell.tsx +53 -0
  390. package/skills/xdev-ui-admin/templates/admin/src/theme.ts +34 -0
  391. package/skills/xdev-ui-admin/templates/admin/tsconfig.json +16 -0
  392. package/skills/xdev-ui-admin/templates/admin/vite.config.ts +4 -0
  393. package/skills/xdev-ui-build-app/SKILL.md +85 -0
  394. package/skills/xdev-ui-build-app/references/app-shell.md +20 -0
  395. package/skills/xdev-ui-build-app/references/i18n.md +9 -0
  396. package/skills/xdev-ui-build-app/references/responsive-a11y.md +10 -0
  397. package/skills/xdev-ui-build-app/references/routing.md +14 -0
  398. package/skills/xdev-ui-build-app/references/setup.md +25 -0
  399. package/skills/xdev-ui-build-app/references/states.md +25 -0
  400. package/skills/xdev-ui-build-app/references/theme.md +11 -0
  401. package/skills/xdev-ui-build-app/templates/app/_gitignore +3 -0
  402. package/skills/xdev-ui-build-app/templates/app/_mcp.json +5 -0
  403. package/skills/xdev-ui-build-app/templates/app/_npmrc +2 -0
  404. package/skills/xdev-ui-build-app/templates/app/index.html +14 -0
  405. package/skills/xdev-ui-build-app/templates/app/package.json +24 -0
  406. package/skills/xdev-ui-build-app/templates/app/src/App.tsx +77 -0
  407. package/skills/xdev-ui-build-app/templates/app/src/app.css +3 -0
  408. package/skills/xdev-ui-build-app/templates/app/src/i18n/en.ts +35 -0
  409. package/skills/xdev-ui-build-app/templates/app/src/i18n/index.tsx +63 -0
  410. package/skills/xdev-ui-build-app/templates/app/src/i18n/vi.ts +35 -0
  411. package/skills/xdev-ui-build-app/templates/app/src/i18n/xdev-ui-labels.ts +19 -0
  412. package/skills/xdev-ui-build-app/templates/app/src/main.tsx +12 -0
  413. package/skills/xdev-ui-build-app/templates/app/src/notify.tsx +36 -0
  414. package/skills/xdev-ui-build-app/templates/app/src/pages/Home.tsx +22 -0
  415. package/skills/xdev-ui-build-app/templates/app/src/pages/NotFound.tsx +17 -0
  416. package/skills/xdev-ui-build-app/templates/app/src/pages/Settings.tsx +35 -0
  417. package/skills/xdev-ui-build-app/templates/app/src/router.ts +26 -0
  418. package/skills/xdev-ui-build-app/templates/app/src/theme.ts +34 -0
  419. package/skills/xdev-ui-build-app/templates/app/tsconfig.json +16 -0
  420. package/skills/xdev-ui-build-app/templates/app/vite.config.ts +4 -0
  421. package/skills/xdev-ui-design/SKILL.md +111 -0
  422. package/skills/xdev-ui-design/references/brand.md +58 -0
  423. package/skills/xdev-ui-design/references/checklist.md +55 -0
  424. package/skills/xdev-ui-design/references/owner-notes.md +54 -0
  425. package/skills/xdev-ui-design/references/porting.md +56 -0
  426. package/skills/xdev-ui-design/references/rules.md +135 -0
  427. package/skills/xdev-ui-design/references/screens.md +61 -0
  428. package/skills/xdev-ui-design/references/tokens.md +97 -0
  429. package/skills/xdev-ui-improve/SKILL.md +96 -0
  430. package/skills/xdev-ui-improve/references/plan-template.md +59 -0
  431. package/skills/xdev-ui-motion/SKILL.md +87 -0
  432. package/skills/xdev-ui-motion/references/recipes.md +117 -0
  433. package/skills/xdev-ui-review/SKILL.md +141 -0
  434. package/skills/xdev-ui-review/references/checklist.md +92 -0
  435. package/skills/xdev-ui-review/references/grep-recipes.md +37 -0
  436. package/skills/xdev-ui-review/references/pages/dashboard.md +21 -0
  437. package/skills/xdev-ui-review/references/pages/dialogs-forms.md +23 -0
  438. package/skills/xdev-ui-review/references/pages/list.md +22 -0
  439. package/skills/xdev-ui-review/references/pages/provider-grid.md +19 -0
  440. package/skills/xdev-ui-review/references/pages/settings.md +18 -0
  441. package/skills/xdev-ui-review/references/pages/sign-in.md +21 -0
  442. package/skills/xdev-ui-review/references/web-interface.md +73 -0
  443. package/skills/xdev-ui-review/scripts/audit.mjs +775 -0
  444. package/skills/xdev-ui-ux-standards/SKILL.md +88 -0
  445. package/skills/xdev-ui-ux-standards/references/heuristics-checklist.md +129 -0
  446. package/skills/xdev-ui-ux-standards/references/patterns.md +120 -0
  447. package/skills/xdev-ui-ux-standards/references/platforms.md +104 -0
  448. package/skills/xdev-ui-ux-standards/references/standards-map.md +144 -0
@@ -0,0 +1,26 @@
1
+ import { useSyncExternalStore } from "react";
2
+
3
+ export type RouteName = "home" | "settings" | "not-found";
4
+ const STATIC: Record<string, RouteName> = { "/": "home", "/settings": "settings" };
5
+
6
+ /** Pure: turns "#/settings" into a route name; unknown paths are "not-found". */
7
+ export function matchRoute(hash: string): RouteName {
8
+ const path = "/" + hash.replace(/^#/, "").split("?")[0]!.replace(/^\/+|\/+$/g, "");
9
+ return STATIC[path] ?? "not-found";
10
+ }
11
+
12
+ export const href = { home: "#/", settings: "#/settings" };
13
+
14
+ export function navigate(to: string): void {
15
+ if (typeof window !== "undefined") window.location.hash = to.replace(/^#/, "");
16
+ }
17
+
18
+ const subscribe = (cb: () => void): (() => void) => {
19
+ window.addEventListener("hashchange", cb);
20
+ return () => window.removeEventListener("hashchange", cb);
21
+ };
22
+
23
+ /** Current route from location.hash; "home" on the server. */
24
+ export function useRoute(): RouteName {
25
+ return matchRoute(useSyncExternalStore(subscribe, () => window.location.hash, () => ""));
26
+ }
@@ -0,0 +1,34 @@
1
+ import { useEffect, useState } from "react";
2
+ import { applyTheme, resolveTheme, systemPrefersDark, watchSystemTheme, type ThemePreference } from "@xdev-asia/ui";
3
+
4
+ const KEY = "app-theme";
5
+
6
+ function readPref(): ThemePreference {
7
+ try {
8
+ const v = window.localStorage.getItem(KEY);
9
+ return v === "dark" || v === "light" || v === "system" ? v : "dark";
10
+ } catch {
11
+ return "dark";
12
+ }
13
+ }
14
+
15
+ /** Theme preference with persistence; sets data-theme on <html> and follows the system when set to "system". */
16
+ export function useTheme(): [ThemePreference, (p: ThemePreference) => void] {
17
+ const [pref, setPref] = useState<ThemePreference>("dark");
18
+ useEffect(() => setPref(readPref()), []);
19
+ useEffect(() => {
20
+ const paint = (dark: boolean): void => applyTheme(document.documentElement, resolveTheme(pref, dark));
21
+ paint(systemPrefersDark(window.matchMedia.bind(window)));
22
+ if (pref !== "system") return;
23
+ return watchSystemTheme(window.matchMedia.bind(window), paint);
24
+ }, [pref]);
25
+ const set = (p: ThemePreference): void => {
26
+ setPref(p);
27
+ try {
28
+ window.localStorage.setItem(KEY, p);
29
+ } catch {
30
+ /* private mode: the choice lasts for this visit */
31
+ }
32
+ };
33
+ return [pref, set];
34
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2022",
4
+ "lib": ["es2022", "dom", "dom.iterable"],
5
+ "module": "esnext",
6
+ "moduleResolution": "bundler",
7
+ "jsx": "react-jsx",
8
+ "strict": true,
9
+ "isolatedModules": true,
10
+ "verbatimModuleSyntax": true,
11
+ "skipLibCheck": true,
12
+ "noEmit": true,
13
+ "types": ["vite/client"]
14
+ },
15
+ "include": ["src", "vite.config.ts"]
16
+ }
@@ -0,0 +1,4 @@
1
+ import react from "@vitejs/plugin-react";
2
+ import { defineConfig } from "vite";
3
+
4
+ export default defineConfig({ plugins: [react()] });
@@ -0,0 +1,111 @@
1
+ ---
2
+ name: xdev-ui-design
3
+ description: "Design system guide for xDev products on @xdev-asia/ui: a priority-ranked rule catalogue with rule IDs (accessibility, interaction and focus, tokens and colour, brand and logo v12, layout and responsive, states and feedback, typography, navigation, motion, data display), the token roles with dark and light values, logo rules, screen recipes, a porting guide for re-skinning another product's UI as xDev, anti-patterns and a pre-delivery checklist. Use when designing, restyling, porting or reviewing the look and feel of any xDev screen, choosing tokens, colours, type, spacing or the logo, or deciding whether a new or customised component belongs in xdev-ui."
4
+ license: Apache-2.0
5
+ ---
6
+
7
+ # Design xDev screens with @xdev-asia/ui
8
+
9
+ xDev looks like a quiet developer tool: dark first, graphite surfaces, 1px hairlines instead of shadows, one blue accent, cyan only for focus, the orange agent blade only in the logo. This skill decides the look. It hands off the rest: app setup to `xdev-ui-build-app`, console screens to `xdev-ui-admin`, the audit to `xdev-ui-review`, WCAG and keyboard contracts to `xdev-ui-ux-standards`, motion performance to `xdev-ui-motion`, and evidence-based tidying of an existing screen to `xdev-ui-improve`.
10
+
11
+ ## When to apply
12
+
13
+ | | situations |
14
+ |---|---|
15
+ | **Must use** | a new screen or app for xDev; restyling or porting a screen from another product; choosing a colour, size, font, radius, shadow or icon; placing the logo; a design or UI review |
16
+ | **Recommended** | a new component in xdev-ui; a screenshot comparison before calling a UI done; writing app CSS beyond placing parts |
17
+ | **Skip** | back-end only work; copy changes with no layout effect; tests that do not render UI |
18
+
19
+ Decide by asking: will a person *see* a different pixel after this change? If yes, apply.
20
+
21
+ The owner's own decisions (1:1 ports by measurement, the top bar, the brand, no left stripes) are in [owner's notes](references/owner-notes.md); they override the rules below.
22
+
23
+ ## Rule categories by priority
24
+
25
+ | # | category | impact | key checks | anti-patterns | reference |
26
+ |---|---|---|---|---|---|
27
+ | 1 | Accessibility | CRITICAL | contrast 4.5:1 text and 3:1 UI, names on icon buttons, focus ring visible | colour as the only signal, `outline: none` | [rules](references/rules.md#1-accessibility) |
28
+ | 2 | Interaction and focus | CRITICAL | targets of 24px or more, one primary per surface, keyboard reaches everything | hover-only actions, positive `tabIndex` | [rules](references/rules.md#2-interaction-and-focus) |
29
+ | 3 | Tokens and colour | HIGH | every colour, size and font is a token; one accent; cyan only for focus | hex in app CSS, a second accent | [tokens](references/tokens.md) |
30
+ | 4 | Brand | HIGH | `BrandMark` v12 in chrome, agent side stays `--brand-agent`, clear space | a redrawn logo, a recoloured tile | [brand](references/brand.md) |
31
+ | 5 | Layout and responsive | HIGH | one `Container` per page, spacing on the 4px scale, works at 360px | edge-to-edge content, stretched controls | [rules](references/rules.md#5-layout-and-responsive) |
32
+ | 6 | States and feedback | HIGH | empty, loading, error and success for every region | blank page on error, spinner per row | [rules](references/rules.md#6-states-and-feedback) |
33
+ | 7 | Typography | MEDIUM | `font: var(--type-*)` only, Roboto and JetBrains Mono | raw sizes, a third face, all caps prose | [tokens](references/tokens.md#type) |
34
+ | 8 | Navigation and information | MEDIUM | current place marked by the accent, page title, counts above grids | two nav systems, unlabelled grids | [rules](references/rules.md#8-navigation-and-information) |
35
+ | 9 | Motion | MEDIUM | short `transform`/`opacity` transitions only, reduced-motion guard; performance in `xdev-ui-motion` | bouncing, layout animation, a resting `will-change` | [rules](references/rules.md#9-motion) |
36
+ | 10 | Data display | LOW | `StatusDot` with words, `Emblem` for things, mono for numbers and IDs | coloured left stripe, same grey circle everywhere | [rules](references/rules.md#10-data-display) |
37
+
38
+ ## Quick reference
39
+
40
+ Rule IDs; the full rule, the why and the check are in [rules](references/rules.md).
41
+
42
+ 1. **Accessibility**: `a11y-contrast`, `a11y-not-colour-alone`, `a11y-icon-name`, `a11y-focus-visible`, `a11y-forced-colors`, `a11y-landmarks`, `a11y-lang`
43
+ 2. **Interaction**: `int-target-size`, `int-one-primary`, `int-keyboard-path`, `int-no-hover-only`, `int-confirm-destructive`, `int-disabled-reason`
44
+ 3. **Tokens and colour**: `tok-no-literal`, `tok-semantic-role`, `tok-one-accent`, `tok-signal-is-focus`, `tok-hairline-not-shadow`, `tok-tint-not-fill`, `tok-both-themes`, `tok-z-scale`
45
+ 4. **Brand**: `brand-mark-v12`, `brand-agent-side`, `brand-clear-space`, `brand-no-redraw`, `brand-app-name`
46
+ 5. **Layout**: `lay-container`, `lay-space-scale`, `lay-radius-scale`, `lay-360`, `lay-control-width`, `lay-top-bar-surface`, `lay-shell`, `lay-dvh`
47
+ 6. **States**: `st-empty-next-step`, `st-loading-per-region`, `st-error-retry`, `st-toast-past-tense`, `st-keep-input`
48
+ 7. **Typography**: `type-token-only`, `type-two-faces`, `type-scale-roles`, `type-mono-data`, `type-wrap`, `type-sentence-case`
49
+ 8. **Navigation**: `nav-current-accent`, `nav-page-title`, `nav-count-heading`, `nav-one-system`
50
+ 9. **Motion**: `mot-short`, `mot-transform-only`, `mot-will-change`, `mot-no-blur-motion`, `mot-reduced`, `mot-pulse-working-only`
51
+ 10. **Data display**: `data-status-words`, `data-emblem-face`, `data-no-left-stripe`, `data-dimmed-off`, `data-mono-numbers`
52
+
53
+ ## How to use
54
+
55
+ 1. **Classify the request**: new screen, restyle, port from another product, new component, or review.
56
+ 2. **Pick the recipe** for the screen type in [screens](references/screens.md): container width, header, body pattern, states. For console pages also read the matching `xdev-ui-admin` reference.
57
+ 3. **Compose from the library.** Check props with `xdevui_get_component`, find tokens with `xdevui_search_tokens`, icons with `xdevui_list_icons`. A part the library lacks, or a library part you need to change, goes into xdev-ui first; app CSS only places parts.
58
+ 4. **Apply tokens** by role, never by value ([tokens](references/tokens.md)). App classes carry the app's prefix, never `x-` or `ws-`.
59
+ 5. **Place the brand** ([brand](references/brand.md)): `BrandMark` in the shell, the app name beside it.
60
+ 6. **Porting?** Keep the other product's layout and information order; replace its look with xDev's ([porting](references/porting.md)).
61
+ Read the [owner's notes](references/owner-notes.md) first: a 1:1 port matches measured geometry, the top bar uses icon buttons, and they win over the general rules.
62
+ 7. **Verify**: run the audit, take dark and light screenshots at 1440px and 375px (and check 768px: no horizontal page scroll), walk the [checklist](references/checklist.md). Compare with the reference picture if there is one.
63
+
64
+ ```bash
65
+ node node_modules/@xdev-asia/ui/skills/xdev-ui-review/scripts/audit.mjs src --i18n src/strings --contrast
66
+ ```
67
+
68
+ ## A screen in xDev style
69
+
70
+ ```tsx
71
+ import { Button, Container, Emblem, Grid, PageHeader, ResourceCard, StatusDot } from "@xdev-asia/ui";
72
+
73
+ <Container size="xl">
74
+ <PageHeader
75
+ title={t("providers.title")}
76
+ description={t("providers.count", { n: providers.length })}
77
+ actions={<Button icon="plus">{t("providers.add")}</Button>}
78
+ />
79
+ <Grid minItemWidth="15rem" gap={3}>
80
+ {providers.map((p) => (
81
+ <ResourceCard
82
+ key={p.id}
83
+ href={`#/providers/${p.id}`}
84
+ leading={<Emblem name={p.name} src={p.logo} text={p.mark} color={p.color} />}
85
+ title={p.name}
86
+ status={<StatusDot tone={p.ok ? "ok" : "warn"} label={t(p.ok ? "status.ok" : "status.check")} />}
87
+ dimmed={!p.enabled}
88
+ />
89
+ ))}
90
+ </Grid>
91
+ </Container>
92
+ ```
93
+
94
+ ## Common rules for professional UI
95
+
96
+ - **Quiet by default.** Surfaces are `--bg-0` to `--bg-3`; borders are 1px `--line`. Shadows only on menus, popovers and dialogs (`--shadow-menu`, `--shadow-dialog`).
97
+ - **One accent, one job.** `--accent` marks the next action and the current place. A thing's own colour lives only in its `Emblem`.
98
+ - **State is words plus a dot or tint.** Never a colour alone, never a coloured left stripe on a rounded card or row.
99
+ - **Dense, not cramped.** Rows are `--h-row`, toolbars `--h-toolbar`, gaps from `--x-space-2` to `--x-space-6`.
100
+ - **Every string is translated**, in `en` and `vi`, sentence case, no emoji, no exclamation marks.
101
+ - **Look at it.** The audit cannot see ugliness; screenshots can.
102
+
103
+ ## Pre-delivery checklist
104
+
105
+ Short form; the full list with how to check is [checklist](references/checklist.md).
106
+
107
+ - **Visual**: no literal colour or size in app CSS; one accent; logo v12 in the shell; icons from the library only, no emoji.
108
+ - **Interaction**: one primary per surface; focus ring on every control; targets 24px or more; destructive actions confirm.
109
+ - **Dark and light**: both themes screenshot-checked; no surface turns pure white or black by accident; logos on `Emblem` plates.
110
+ - **Layout**: one `Container`; no horizontal scroll at 360px; header controls as wide as their content.
111
+ - **Accessibility**: audit clean with `--contrast`; keyboard path matches reading order; `en` and `vi` complete.
@@ -0,0 +1,58 @@
1
+ # Brand: logo v12
2
+
3
+ The xDev logo is two folded blades that cross into an `x`: your blade on the left follows the surface colour, the agent's on the right is always `--brand-agent`, and the core where they overlap is white. It ships as the `BrandMark` component and as files in `assets/brand` (`@xdev-asia/ui/brand/*`; `docs/brand.md` lists them).
4
+
5
+ ## Contents
6
+ - Which variant where
7
+ - In an app shell
8
+ - Rules
9
+ - What goes wrong
10
+
11
+ ## Which variant where
12
+
13
+ | variant | look | use |
14
+ |---|---|---|
15
+ | `mark` | bare mark; your blade follows `color`, the agent side is `--brand-agent` | app chrome: shell header, sign-in, about |
16
+ | `tile` | the mark on a dark ground; flat under 48px, lit from 48px up | favicon, app icon, avatar of the product, social cards |
17
+ | `lockup` | tile plus the name in the body font: `xDev` at 800, a sub-system name at 500 | site header, docs, README, slides |
18
+
19
+ `size` is the mark or tile edge in px (the shell uses 18 or 20; sign-in uses 64). The lockup wordmark is `size × 25/32`. `system` picks whose mark it is (`xdev`, `ui`): every system keeps your blade and only the agent side changes.
20
+
21
+ ## In an app shell
22
+
23
+ ```tsx
24
+ import { AppShell, BrandMark } from "@xdev-asia/ui";
25
+
26
+ <AppShell
27
+ brand={
28
+ <a className="myapp-brand" href="#/">
29
+ <BrandMark size={20} label="" />
30
+ <span className="myapp-brand-name">{t("app.name")}</span>
31
+ </a>
32
+ }
33
+ nav={nav}
34
+ >
35
+ {page}
36
+ </AppShell>
37
+ ```
38
+
39
+ - `label=""` makes the mark decorative because the app name is written next to it; with no text beside it, keep the default label.
40
+ - The app name is text, `--type-heading` or `--type-control`, in `--text-1`. A version or environment tag after it uses `--type-mono` in `--text-3`.
41
+ - Product names are "xDev <Thing>" in prose; in the shell the mark already says xDev, so the name can be the thing alone.
42
+
43
+ ## Rules
44
+ - The agent side is always `--brand-agent` (#ff7a3d), in both themes. Only your blade follows the surface colour.
45
+ - Clear space of at least the width of one blade on every side.
46
+ - Never swap the blades, show an agent shape without your blade, recolour the tile ground, add an outline, a shadow or a gradient, rotate the mark, or set the wordmark in another face or weight.
47
+ - `--brand-agent` appears nowhere else in the UI: not on buttons, links or states.
48
+ - Do not draw the logo again in app code; import `BrandMark` or the files above.
49
+ - Third-party logos (providers, integrations) go in an `Emblem` with `src`, never next to the xDev mark at the same size.
50
+
51
+ ## What goes wrong
52
+
53
+ | what you see | cause | fix |
54
+ |---|---|---|
55
+ | The mark sits on a dark square in the header | `variant="tile"` used in chrome | `variant="mark"` |
56
+ | The agent side turns blue or grey | a redrawn logo, or a `color` rule aimed at the agent blade | use `BrandMark`; set colour only on its container |
57
+ | The mark is clipped or misaligned | an app class named like a library class | app classes carry the app prefix, never `x-` |
58
+ | Two logos in the header | an old logo image left beside `BrandMark` | remove the image |
@@ -0,0 +1,55 @@
1
+ # Pre-delivery checklist
2
+
3
+ Walk this in the running app before calling a screen done. Items marked (audit) are also reported by `scripts/audit.mjs` in `xdev-ui-review`; its `references/checklist.md` has the full manual review.
4
+
5
+ ## Contents
6
+ - Visual quality
7
+ - Interaction
8
+ - Dark and light
9
+ - Layout
10
+ - Accessibility
11
+ - Evidence
12
+
13
+ ## Visual quality
14
+ - [ ] (audit) No colour literal, raw `px` (except 1px hairlines) or raw font in app CSS.
15
+ - [ ] Every token is chosen by role (`tokens.md`).
16
+ - [ ] One accent on screen: the primary action and the current place.
17
+ - [ ] Cyan appears only as the focus ring.
18
+ - [ ] Shadows only on menus, popovers and dialogs.
19
+ - [ ] `BrandMark` (logo v12) in the shell with the app name in text; the agent side is orange in both themes.
20
+ - [ ] Every thing in a collection has its own `Emblem`; no repeated grey circle.
21
+ - [ ] (audit) No coloured left stripe on a rounded card or row.
22
+ - [ ] Icons come from the library set; no emoji.
23
+
24
+ ## Interaction
25
+ - [ ] (audit) One primary button per surface.
26
+ - [ ] Hover-revealed actions also appear on keyboard focus and on touch.
27
+ - [ ] Destructive actions confirm in a `Dialog` that names the object.
28
+ - [ ] Disabled controls show their reason in text.
29
+ - [ ] Success shows a `Toast` in past tense; failure a `Banner` that keeps the input.
30
+
31
+ ## Dark and light
32
+ - [ ] Both themes screenshot-checked on every changed page.
33
+ - [ ] No surface turns pure white in dark or pure black in light by accident.
34
+ - [ ] Third-party logos sit on `Emblem` plates and stay visible in both.
35
+ - [ ] (audit with `--contrast`) No token pair below WCAG contrast.
36
+
37
+ ## Layout
38
+ - [ ] One `Container` per page; nothing runs edge to edge at 1440px.
39
+ - [ ] Checked at 375, 768 and 1440px: no horizontal page scroll (also at 320px); tables scroll inside their wrapper or use `stack`.
40
+ - [ ] (audit) No `fixed-width` or `nowrap` warnings left unexplained.
41
+ - [ ] On a phone, modal dialogs open as a bottom sheet and drawers fill the width; header and toolbar actions wrap.
42
+ - [ ] Under `pointer: coarse` every control is at least 44px.
43
+ - [ ] Header controls are as wide as their content.
44
+ - [ ] The top bar has the page's background and no rule under it at the top of the page.
45
+ - [ ] A heading and a count above every grid and list.
46
+ - [ ] Empty, loading and error states designed for each region.
47
+
48
+ ## Accessibility
49
+ - [ ] (audit) Icon-only buttons are named; no positive `tabIndex`; focus outline never removed without a replacement.
50
+ - [ ] Tab order follows reading order; the skip link is first.
51
+ - [ ] (audit with `--i18n`) `en` and `vi` have the same keys; switch language and check nothing is clipped.
52
+ - [ ] (audit) Movement has a reduced-motion guard.
53
+
54
+ ## Evidence
55
+ Attach to the change: the audit output, and dark plus light screenshots at 1440px and 375px (and 768px when the layout changes there). When porting, put the source screenshot beside each.
@@ -0,0 +1,54 @@
1
+ # Owner's design notes
2
+
3
+ Decisions the product owner made while reviewing xDev screens. They win over the general rules when the two disagree. Each note says what was asked, so you can tell when it applies.
4
+
5
+ ## Contents
6
+ - Porting a reference product 1:1
7
+ - Top bar
8
+ - Sidebar and brand
9
+ - Cards and rows
10
+ - Usage overview and topology
11
+ - Responsive
12
+ - How to check before you say "done"
13
+
14
+ ## Porting a reference product 1:1
15
+ - "Port 1:1" means the geometry matches too, not only the page list. Open the reference app and the port side by side at 1440px and measure with `getBoundingClientRect` and `getComputedStyle`: x, y, width, height, font size and weight, radius. Fix every difference you can, then list the rest.
16
+ - Keep xDev's colours, fonts, tokens, logo and copy. Geometry follows the reference; the look stays xDev.
17
+ - When asked "is it the same yet?", answer with the measured numbers for both apps, not an impression. Name each gap that remains and why (a library rule, a missing feature).
18
+ - A size the reference needs and the library lacks goes into xdev-ui (a token or a component option), never app CSS.
19
+
20
+ ## Top bar
21
+ - The top bar and the page are one surface: the bar has the page's background (`--bg-0`), no rule under it, and no rule under the sidebar brand beside it. A thin rule may appear only once the page has scrolled, so content does not slide under the title unmarked. Never a lighter band with a border under it: the owner reads that as a separate box, and cards cut off under the rule show their rounded corners. This is the titled `AppShell` default; do not paint the bar from app CSS.
22
+ - The page title is the reference's: a bare 24px page icon in the accent (no tile, no plate), the title at 24px, weight 600 (the shell title type) beside it, and the one-line description on the line under both. The icon is the same one the page has in the sidebar.
23
+ - Header controls are icon buttons, not text controls. No segmented control, no select, no text button in the top bar.
24
+ - Theme: one round icon button that flips dark and light (sun on a dark page, moon on a light page), labelled with what a click does ("Switch to light mode"). System stays reachable in the account menu.
25
+ - Language: a globe icon button that opens a menu with the languages, the current one checked.
26
+ - Account and other actions: one icon button with a menu, last in the row.
27
+ - All of them are 40px with a 20px glyph, 8px apart; only the theme button is round.
28
+ - Search for the page may sit in the top bar, left of the icon buttons.
29
+
30
+ ## Sidebar and brand
31
+ - The brand at the top of the sidebar is the current logo (v12) as a 36px app tile, the product name beside it and the version under the name.
32
+ - The sidebar keeps the reference's item order. Do not add sections the product does not have to look complete; name the missing ones in your report instead.
33
+
34
+ ## Cards and rows
35
+ - Never a rounded card or row with a coloured left stripe (`border-left` or an inset `box-shadow`). Show state with a background tint, a full 1px border, or a status dot with words.
36
+
37
+ ## Usage overview and topology
38
+ - A usage overview of a gateway or router shows its topology: the reference's map of the connected providers around the product. Do not drop it because the totals are already there; the owner reads its absence as a missing part.
39
+ - Order under the stat tiles: the map in a bordered panel at about two thirds of the width, and the recent requests (time, model, status, a "View all" button that opens the details) at one third, both the same height (480px). One column below 1024px. Charts and per-provider tables follow.
40
+ - Build it with the xdev-ui `FlowMap` (hub plus nodes on a grid, zoom in, zoom out and fit at the bottom left). The hub is the product's own `BrandMark`; each node is a provider with an account or with traffic in the period, with its logo, by name, and "N requests" under the name when it carried traffic. Never hand-draw the map in app CSS or SVG.
41
+
42
+ ## Responsive
43
+ - Asked: "xdev-ui hỗ trợ responsive luôn, lúc dùng thư viện này cũng phải responsive". Every page built with xdev-ui works on a phone, a tablet and a desktop, not only at 1440px.
44
+ - Check every changed page at three widths: **375** (phone), **768** (tablet; the sidebar is still a drawer), **1440** (desktop). Drag to 320 once to look for a scrollbar.
45
+ - No horizontal page scroll at any of them. Wide content (tables, code, logs, charts) scrolls inside its own box.
46
+ - Take the screenshot at 375 too, not only at 1440. A "done" without a phone screenshot is not done.
47
+ - Use what the library already does (wrapping headers, sheet dialogs, full-width drawers, `DataTable sticky` / `stack`, 44px touch targets) instead of app CSS. A layout the library cannot do goes into xdev-ui, not the app.
48
+ - At most three icon actions in the top bar on a phone; the rest go in the account menu.
49
+
50
+ ## How to check before you say "done"
51
+ 1. Run the audit and the tests of every repo you touched.
52
+ 2. Rebuild and redeploy what the owner looks at (the local container), sign in, and open the page.
53
+ 3. Screenshot dark and light at 1440px next to the reference, and at 375 and 768; measure the parts you changed and look for a horizontal page scrollbar.
54
+ 4. Report what matches, what does not, and what you did not check. Do not call it the same until the numbers say so.
@@ -0,0 +1,56 @@
1
+ # Porting another product's UI to xDev
2
+
3
+ A port keeps what the other product got right (what is on each page, in what order, how people move between pages) and replaces how it looks with xDev. The result must read as an xDev product, not a copy with a new logo.
4
+
5
+ ## Contents
6
+ - Steps
7
+ - What to keep, what to replace
8
+ - Mapping table
9
+ - When the library lacks a part
10
+
11
+ ## Steps
12
+ 1. **Inventory.** Screenshot each page of the source at 1440px. List per page: the regions, the components, the actions, the states you can see.
13
+ 2. **Map.** For each source part, pick the library part from the table below. Note every part with no match.
14
+ 3. **Fill the gaps in xdev-ui**, not in the app (see the last section).
15
+ 4. **Build** each page from the screen recipes in `screens.md`, keeping the source's region order.
16
+ 5. **Strings.** Rewrite labels in xDev voice (sentence case, verbs on buttons) in `en` and `vi`; do not copy the source's text.
17
+ 6. **Compare.** For a 1:1 port, measure both apps (see owner-notes.md, linked from SKILL.md). Put source and port screenshots side by side, dark and light, 1440px and 360px. List each difference and decide: keep (xDev rule wins) or fix.
18
+
19
+ ## What to keep, what to replace
20
+
21
+ | keep from the source | replace with xDev |
22
+ |---|---|
23
+ | page list and navigation order | colours, fonts, radii, shadows |
24
+ | regions on each page and their order | the logo and product name (`BrandMark`) |
25
+ | which fields and actions exist | icons (library set only) |
26
+ | density (how much fits on a screen) | state styling (dots, tints, `Badge`) |
27
+ | the flow of multi-step tasks | copy and labels |
28
+
29
+ Never copy the source's logo, illustrations, colour palette or wording. Third-party logos that name a provider stay in that provider's `Emblem`.
30
+
31
+ ## Mapping table
32
+
33
+ | source pattern | xDev part |
34
+ |---|---|
35
+ | sidebar with icon + label items | `AppShell` `nav` with `NavList` |
36
+ | top bar with title and actions | `AppShell` header (title via the shell, actions in `actions` as icon buttons, `MenuButton` with `variant="icon"` for menus) |
37
+ | page title with buttons | `PageHeader` |
38
+ | logo tiles or provider cards | `ResourceCard` with `Emblem` |
39
+ | key-value list | `DescriptionList` |
40
+ | data grid | `DataTable` with `Pagination` |
41
+ | filter pills | `FacetFilter` or `FilterChip` |
42
+ | toggle | `Switch` |
43
+ | pill tabs or button group | `Segmented` (a mode) or `Tabs` (sections) |
44
+ | modal form | `FormDialog` |
45
+ | side sheet | `Drawer` |
46
+ | status pill | `StatusDot` with `label`, or `Badge` |
47
+ | usage bar | `Meter` or `UsageMeterRow` |
48
+ | numbers card | `StatTile` |
49
+ | toast | `Toast` |
50
+ | inline alert | `Banner` |
51
+ | code or key display | `CodeBlock` or mono text with a copy `IconButton` |
52
+
53
+ ## When the library lacks a part
54
+ - A new component, or a change to an existing one, goes into xdev-ui first (with its story, test, README and both themes), then the app upgrades the package.
55
+ - Until it ships, keep the app on the closest library part. Do not build a private look-alike with app CSS.
56
+ - App CSS only places parts: grid areas, gaps, widths. If you are writing colours or borders in app CSS, the part belongs in the library.
@@ -0,0 +1,135 @@
1
+ # Rule catalogue
2
+
3
+ Each rule has an ID, what to do, why, and how to check it. "(audit)" means `scripts/audit.mjs` in `xdev-ui-review` reports it; the rule name follows.
4
+
5
+ ## Contents
6
+ - 1 Accessibility
7
+ - 2 Interaction and focus
8
+ - 3 Tokens and colour
9
+ - 4 Brand
10
+ - 5 Layout and responsive
11
+ - 6 States and feedback
12
+ - 7 Typography
13
+ - 8 Navigation and information
14
+ - 9 Motion
15
+ - 10 Data display
16
+
17
+ ## 1 Accessibility
18
+ CRITICAL. A screen that some people cannot use is not done, however it looks.
19
+
20
+ | ID | do | why | check |
21
+ |---|---|---|---|
22
+ | `a11y-contrast` | text 4.5:1, large text and UI parts 3:1, in both themes | WCAG 2.2 SC 1.4.3 and 1.4.11 | (audit `contrast` with `--contrast`) |
23
+ | `a11y-not-colour-alone` | pair every colour signal with words or a shape | colour-blind users, forced colours | look for a dot or tint with no label |
24
+ | `a11y-icon-name` | icon-only controls are `IconButton` with a `label` | screen readers read nothing otherwise | (audit `icon-button-name`) |
25
+ | `a11y-focus-visible` | keep the library focus ring; never remove `outline` without a `:focus-visible` replacement | keyboard users lose their place | (audit `focus-outline`) |
26
+ | `a11y-forced-colors` | draw focus and selection with outline or border, not only shadow or background | Windows high contrast drops paint | (audit `forced-colors`) |
27
+ | `a11y-landmarks` | one `main` (the shell gives it), headings in order, skip link first | navigation by landmark and heading | tab once from the top: skip link |
28
+ | `a11y-lang` | `lang` on `<html>` follows the chosen language | correct voice and hyphenation | switch `vi` and inspect |
29
+
30
+ ## 2 Interaction and focus
31
+ CRITICAL. People must reach and trigger every action without guessing.
32
+
33
+ | ID | do | why | check |
34
+ |---|---|---|---|
35
+ | `int-target-size` | controls at least 24px, rows `--h-row` or taller | WCAG SC 2.5.8 | (audit `target-size`) |
36
+ | `int-one-primary` | one primary `Button` per surface; the rest `secondary` or `ghost` | the eye needs one next step | (audit `primary-count`) |
37
+ | `int-keyboard-path` | tab order follows reading order; no positive `tabIndex` | predictable focus | (audit `positive-tabindex`), then tab through |
38
+ | `int-no-hover-only` | an action shown only on hover (`revealTrailing="hover"`) also shows on focus and on touch | keyboard and touch have no hover | tab to the card; try at 360px |
39
+ | `int-confirm-destructive` | delete and revoke confirm in a `Dialog` with `alert`; the title names the object | no undo for loss | read the dialog title |
40
+ | `int-disabled-reason` | a disabled control says why next to it, not in a `Tooltip` | disabled controls get no focus | look for the reason text |
41
+
42
+ ## 3 Tokens and colour
43
+ HIGH. Tokens keep every screen in both themes and every app in one family.
44
+
45
+ | ID | do | why | check |
46
+ |---|---|---|---|
47
+ | `tok-no-literal` | no hex, `rgb()`, raw `px` (except 1px hairlines) or raw font in app CSS | literals break the light theme | (audit `raw-colour`, `raw-px`, `raw-font`, `unknown-token`) |
48
+ | `tok-semantic-role` | pick a token by its role (`tokens.md`): text on `--text-1`, secondary on `--text-2` | values change, roles do not | read the selector and the token side by side |
49
+ | `tok-one-accent` | `--accent` is the only brand colour in the UI | two accents compete for the next step | count blue things on screen |
50
+ | `tok-signal-is-focus` | cyan `--signal` is the focus ring and nothing else | focus must stand out | search app CSS for `--signal` |
51
+ | `tok-hairline-not-shadow` | separate regions with 1px `--line`; shadows only on floating layers | flat, calm surfaces | look for `box-shadow` in app CSS |
52
+ | `tok-tint-not-fill` | state backgrounds use the soft tints (`--ok-bg`, `--warn-bg`, `--danger-bg`) | full fills shout and fail contrast | look for solid state fills |
53
+ | `tok-both-themes` | check every new colour pair in dark and light | light values differ from dark ones | screenshots in both |
54
+ | `tok-z-scale` | stack with `--x-z-*` (raised, sticky, dropdown, nav, modal, toast, skip); 0, 1 and -1 only inside a part | a `9999` lands above the modal or under the toast | (audit `raw-z-index`) |
55
+
56
+ ## 4 Brand
57
+ HIGH. The logo is the one place where xDev's own colours appear. Rules in `brand.md`.
58
+
59
+ | ID | do | why | check |
60
+ |---|---|---|---|
61
+ | `brand-mark-v12` | use `BrandMark` from the library, `variant="mark"` in app chrome | one logo, one source | grep for `<svg` logos in the app |
62
+ | `brand-agent-side` | the agent blade stays `--brand-agent` in both themes | it is the mark's signature | screenshot both themes |
63
+ | `brand-clear-space` | at least one blade's width around the mark | crowded marks read as clutter | measure in the screenshot |
64
+ | `brand-no-redraw` | never recolour the tile, outline the mark or change the wordmark face | consistency across products | compare with `assets/brand` |
65
+ | `brand-app-name` | the app name sits beside the mark in text, in the body face, weight 600 or 700 | a name is read, a logo is seen | read the header |
66
+
67
+ ## 5 Layout and responsive
68
+ HIGH. Structure first, then colour.
69
+
70
+ | ID | do | why | check |
71
+ |---|---|---|---|
72
+ | `lay-container` | one `Container` per page: `xl` for lists and dashboards, `md` for forms | edge-to-edge content looks unfinished | 1440px screenshot |
73
+ | `lay-space-scale` | gaps and padding from `--x-space-1` to `--x-space-8` (4px steps) | rhythm | (audit `raw-px`) |
74
+ | `lay-radius-scale` | radius from `--radius-s`, `--radius-m`, `--radius-l` (or `--x-radius-sm` to `--x-radius-lg` on semantic surfaces) | one corner language | look for odd corners |
75
+ | `lay-360` | no horizontal page scroll at 360px; tables scroll inside themselves | phones and split windows | 360px screenshot |
76
+ | `lay-control-width` | header controls are as wide as their content | stretched tabs look broken | 1440px screenshot |
77
+ | `lay-top-bar-surface` | the top bar has the page's surface and no rule under it until the page scrolls | a lighter band with a border reads as a separate box; cut-off cards show their corners | read `.x-shell-top` background and border at scroll 0 and after |
78
+ | `lay-shell` | console apps use `AppShell`; public pages use `SiteShell` | one frame per kind of app | read the root component |
79
+ | `lay-dvh` | a full-height surface sets `100vh` then `100dvh`; Tailwind `h-dvh`, never `h-screen` | on a phone `100vh` runs under the address bar and hides the bottom actions | (audit `viewport-height`) |
80
+
81
+ ## 6 States and feedback
82
+ HIGH. A region is not done until each state has a design.
83
+
84
+ | ID | do | why | check |
85
+ |---|---|---|---|
86
+ | `st-empty-next-step` | `EmptyState` names what to do next; an empty search names the query | a blank region is a dead end | clear the data |
87
+ | `st-loading-per-region` | one `Spinner` per region, `DataTable loading`, `StatTile loading`, `Skeleton` for layout | many spinners look broken | throttle the network |
88
+ | `st-error-retry` | a failed load shows a `Banner` with `tone="danger"` and a retry action | users need a way out | block the API |
89
+ | `st-toast-past-tense` | success is a `Toast` in past tense ("Provider added") | it confirms what happened | do the action |
90
+ | `st-keep-input` | a failed save keeps everything the user typed | retyping is the worst error | fail a save |
91
+
92
+ ## 7 Typography
93
+ MEDIUM. Two faces, a fixed scale of roles.
94
+
95
+ | ID | do | why | check |
96
+ |---|---|---|---|
97
+ | `type-token-only` | `font: var(--type-*)`; never a raw size | the scale stays coherent | (audit `raw-font`) |
98
+ | `type-two-faces` | Roboto for text, JetBrains Mono for code, IDs and numbers | Vietnamese diacritics, tabular digits | inspect computed fonts |
99
+ | `type-scale-roles` | pick by role: page title, heading, body, control, label, status (`tokens.md`) | sizes mean things | one page title per page |
100
+ | `type-mono-data` | keys, hashes, model IDs, counts in `--type-mono` or `--type-stat`; a number that updates in body text gets `font-variant-numeric: tabular-nums` | digits line up and do not jitter | read a table column |
101
+ | `type-wrap` | headings `text-wrap: balance`, paragraphs `text-wrap: pretty` (library titles and descriptions already do) | no lone last word, even heading lines | read headings at 375px |
102
+ | `type-sentence-case` | sentence case labels; uppercase only through `--type-section` | calm and readable | (audit `label-voice`) |
103
+
104
+ ## 8 Navigation and information
105
+ MEDIUM. People must always know where they are and how much there is.
106
+
107
+ | ID | do | why | check |
108
+ |---|---|---|---|
109
+ | `nav-current-accent` | the current nav item and tab use the accent; nothing else in the nav does | one "you are here" | look at the sidebar |
110
+ | `nav-page-title` | each page has a `PageHeader` title; the shell title follows it | orientation and the browser tab | change page |
111
+ | `nav-count-heading` | a heading and a count above every grid or list | a wall of cards has no shape | read above the grid |
112
+ | `nav-one-system` | one primary navigation (sidebar or `BottomNav` on phones), not tabs that duplicate it | two systems confuse | compare nav and tabs |
113
+
114
+ ## 9 Motion
115
+ MEDIUM. Motion confirms; it never carries meaning on its own.
116
+
117
+ | ID | do | why | check |
118
+ |---|---|---|---|
119
+ | `mot-short` | only short positional transitions (about 0.12s); other state changes are instant | the tool feels immediate | read transitions |
120
+ | `mot-transform-only` | animate `transform` and `opacity`; never `width`, `height`, `top`, `left`, `margin`, `padding` or `transition: all` | layout every frame janks | (audit `layout-motion`) |
121
+ | `mot-will-change` | `will-change` only under the state that animates (a `[data-*]` set during the gesture) | a layer kept for good holds memory and blurs scaled text | (audit `will-change`) |
122
+ | `mot-no-blur-motion` | never animate `filter: blur()` or `backdrop-filter`; a static backdrop blur stays at 2px | blur repaints the whole layer each frame | read animated properties |
123
+ | `mot-reduced` | wrap movement in a `prefers-reduced-motion` guard | vestibular disorders | (audit `reduced-motion`) |
124
+ | `mot-pulse-working-only` | only the working `StatusDot` pulses, and not under reduced motion | a pulse means "busy" | look for other loops |
125
+
126
+ ## 10 Data display
127
+ LOW in count, high in how finished a screen looks. See also `references/visual-identity.md` in `xdev-ui-admin`.
128
+
129
+ | ID | do | why | check |
130
+ |---|---|---|---|
131
+ | `data-status-words` | `StatusDot` with a `label`, or a `Badge`; never a colour alone | readable at a glance and by screen readers | read every status |
132
+ | `data-emblem-face` | each thing leads with an `Emblem` (logo `src`, else `text` and `color`); `Avatar` is for people | things become recognisable | look for repeated grey circles |
133
+ | `data-no-left-stripe` | no coloured left stripe on a rounded card or row; use a tint, a 1px border or a dot | house rule; stripes read as alerts | (audit `left-stripe`) |
134
+ | `data-dimmed-off` | a switched-off thing is `dimmed`, not recoloured | colour stays for state | toggle one off |
135
+ | `data-mono-numbers` | numbers right-aligned in tables, in mono | comparison down a column | read a numeric column |
@@ -0,0 +1,61 @@
1
+ # Screen recipes
2
+
3
+ The design decisions for each kind of screen. For the build details of console screens, open the matching `xdev-ui-admin` reference.
4
+
5
+ ## Contents
6
+ - Frames
7
+ - Dashboard
8
+ - Collection of things (cards)
9
+ - Resource list (table)
10
+ - Detail
11
+ - Form and settings
12
+ - Sign-in
13
+ - Empty first run
14
+
15
+ ## Frames
16
+
17
+ | app kind | frame | container |
18
+ |---|---|---|
19
+ | console, back office, tool | `AppShell`: sidebar nav, header with page title and actions | `Container size="xl"` per page |
20
+ | public site, docs | `SiteShell`: top links, footer | `size="lg"` or `"xl"` |
21
+ | settings area | `SettingsShell` inside the app frame | `size="md"` |
22
+
23
+ The header holds, from left: the brand (in the sidebar), the page title, then search for the current page, `ThemeSwitch`, language, and the account `Menu`. Keep it one line at 1440px; at 360px actions collapse into the menu.
24
+
25
+ ## Dashboard
26
+ - `PageHeader` with the time range control in `actions`.
27
+ - A row of `StatTile` (label, value in `--type-stat`, delta with `deltaTone`), then one or two charts or `Heatmap`, then a short list of recent items.
28
+ - Four tiles at most in a row; each tile answers one question. No decorative charts.
29
+ - Build: `references/dashboard.md` in `xdev-ui-admin`.
30
+
31
+ ## Collection of things (cards)
32
+ Providers, integrations, models, apps: things people recognise by their face.
33
+ - `Grid minItemWidth="15rem"` of `ResourceCard`, each with an `Emblem` in `leading`, the name as `title`, a `StatusDot` with words in `status`, a `Switch` or menu in `trailing`.
34
+ - A heading and a count above each group; group by kind when there are more than about 12.
35
+ - Search in the header filters the grid; an empty result names the query.
36
+ - A switched-off thing is `dimmed`. See `references/visual-identity.md` in `xdev-ui-admin`.
37
+
38
+ ## Resource list (table)
39
+ Things people compare by their fields: keys, users, requests, logs.
40
+ - `DataTable` with sortable columns, `FacetFilter` above it, `BulkBar` when rows are selected, `Pagination` below.
41
+ - IDs, keys and numbers in mono; numbers right-aligned; dates through `Intl.DateTimeFormat`.
42
+ - Row actions in a trailing `Menu`; the row itself opens the detail.
43
+ - Build: `references/resource-list.md` in `xdev-ui-admin`.
44
+
45
+ ## Detail
46
+ - `PageHeader` with `breadcrumb`, the object's `Emblem` or `Identity`, status in `meta`, actions on the right (one primary).
47
+ - `DescriptionList` for fields, `Card` per section, `Tabs` only when sections are long and independent.
48
+ - Build: `references/detail-and-forms.md` in `xdev-ui-admin`.
49
+
50
+ ## Form and settings
51
+ - Short create or edit: `FormDialog`. Long or many sections: a page in `Container size="md"` with `FormSection` and `SaveBar`.
52
+ - Settings are `SettingRow` lines: the label and its help on the left, the control on the right.
53
+ - Build: `references/forms.md` in `xdev-ui-admin`, `references/settings.md` in `xdev-ui-admin`.
54
+
55
+ ## Sign-in
56
+ - Centred, narrow (`Container size="sm"`), on `--bg-0`. `BrandMark` at 64px, the product name, one form, one primary button.
57
+ - Errors under the field in words; no shake animation.
58
+
59
+ ## Empty first run
60
+ - `EmptyState` with `size="center"`, an icon, a title that says what this place is for, a hint, and the first action as the only primary button. Use `steps` when setup takes several steps.
61
+ - Build: `references/states-feedback.md` in `xdev-ui-admin`.