@xdev-asia/ui 0.0.0-stage → 4.15.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 (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 +308 -0
  339. package/dist/tokens.json +269 -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,24 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="157" height="32" viewBox="0 0 157 32" role="img" aria-label="xDev UI">
2
+ <svg width="32" height="32" viewBox="0 0 1024 1024"><defs>
3
+ <linearGradient id="base" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#171d33"/><stop offset="1" stop-color="#06080e"/></linearGradient>
4
+ <radialGradient id="glowYou" cx="330" cy="512" r="430" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6" stop-opacity=".6"/><stop offset="1" stop-color="#2f62e6" stop-opacity="0"/></radialGradient>
5
+ <radialGradient id="glowAgent" cx="700" cy="512" r="400" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d" stop-opacity=".42"/><stop offset="1" stop-color="#ff7a3d" stop-opacity="0"/></radialGradient>
6
+ <linearGradient id="rim" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".34"/><stop offset=".35" stop-color="#fff" stop-opacity=".04"/><stop offset="1" stop-color="#fff" stop-opacity=".08"/></linearGradient>
7
+ <linearGradient id="blue" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#5b8dff"/><stop offset="1" stop-color="#1535a8"/></linearGradient>
8
+ <linearGradient id="whiteUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#dfe8ff"/></linearGradient>
9
+ <linearGradient id="whiteLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#c3d3ff"/><stop offset="1" stop-color="#9fb7fb"/></linearGradient>
10
+ <clipPath id="clip"><rect width="1024" height="1024" rx="230"/></clipPath>
11
+ <linearGradient id="youUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b9cfff"/><stop offset="1" stop-color="#4f84ff"/></linearGradient>
12
+ <linearGradient id="youLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6"/><stop offset="1" stop-color="#1a3db3"/></linearGradient>
13
+ <linearGradient id="agentUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset="1" stop-color="#ff8a4f"/></linearGradient>
14
+ <linearGradient id="agentLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
15
+ <linearGradient id="shape" x1="0" y1="322" x2="0" y2="702" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset=".5" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
16
+ <linearGradient id="core" x1="0" y1="438" x2="0" y2="586" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#ffe2cc"/></linearGradient>
17
+ <filter id="soft" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="34"/></filter>
18
+ <filter id="shadow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="18"/></filter>
19
+ </defs>
20
+ <g clip-path="url(#clip)"><rect width="1024" height="1024" fill="url(#base)"/><rect width="1024" height="1024" fill="url(#glowYou)"/><rect width="1024" height="1024" fill="url(#glowAgent)"/></g>
21
+ <rect x="4" y="4" width="1016" height="1016" rx="226" fill="none" stroke="url(#rim)" stroke-width="8"/>
22
+ <g transform="translate(-20 0)"><g opacity="0.55" filter="url(#shadow)" transform="translate(0 22)" fill="#000"><path d="M185 232H335L575 512L335 792H185L425 512Z"/><g transform="translate(735 512) scale(1.15) translate(-725 -512)"><rect x="608" y="391" width="110" height="110" rx="28"/><rect x="740" y="391" width="110" height="110" rx="28" opacity=".72"/><rect x="608" y="523" width="110" height="110" rx="28" opacity=".72"/><rect x="740" y="523" width="110" height="110" rx="28" opacity=".46"/></g></g><path d="M185 232H335L575 512H425Z" fill="url(#youUpper)"/><path d="M425 512H575L335 792H185Z" fill="url(#youLower)"/><g transform="translate(735 512) scale(1.15) translate(-725 -512)" fill="url(#shape)"><rect x="608" y="391" width="110" height="110" rx="28"/><rect x="740" y="391" width="110" height="110" rx="28" opacity=".72"/><rect x="608" y="523" width="110" height="110" rx="28" opacity=".72"/><rect x="740" y="523" width="110" height="110" rx="28" opacity=".46"/></g></g></svg>
23
+ <text x="40" y="24" font-family="'Be Vietnam Pro', 'Segoe UI', sans-serif" font-size="25" letter-spacing="-0.8"><tspan fill="#111114" font-weight="800">xDev</tspan><tspan fill="#5c5c66" font-weight="500" dx="6">UI</tspan></text>
24
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="162 162 700 700">
2
+ <defs>
3
+ <linearGradient id="youUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b9cfff"/><stop offset="1" stop-color="#4f84ff"/></linearGradient>
4
+ <linearGradient id="youLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6"/><stop offset="1" stop-color="#1a3db3"/></linearGradient>
5
+ <linearGradient id="agentUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset="1" stop-color="#ff8a4f"/></linearGradient>
6
+ <linearGradient id="agentLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
7
+ <linearGradient id="shape" x1="0" y1="322" x2="0" y2="702" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset=".5" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
8
+ <linearGradient id="core" x1="0" y1="438" x2="0" y2="586" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#ffe2cc"/></linearGradient>
9
+ <filter id="soft" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="34"/></filter>
10
+ <filter id="shadow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="18"/></filter>
11
+ </defs>
12
+ <g transform="translate(-20 0)"><path d="M185 232H335L575 512H425Z" fill="url(#youUpper)"/><path d="M425 512H575L335 792H185Z" fill="url(#youLower)"/><g transform="translate(735 512) scale(1.15) translate(-725 -512)" fill="url(#shape)"><rect x="608" y="391" width="110" height="110" rx="28"/><rect x="740" y="391" width="110" height="110" rx="28" opacity=".72"/><rect x="608" y="523" width="110" height="110" rx="28" opacity=".72"/><rect x="740" y="523" width="110" height="110" rx="28" opacity=".46"/></g></g>
13
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="162 162 700 700">
2
+ <g transform="translate(-20 0)"><path d="M185 232H335L575 512L335 792H185L425 512Z" fill="currentColor"/><g transform="translate(735 512) scale(1.15) translate(-725 -512)" fill="#ff7a3d"><rect x="608" y="391" width="110" height="110" rx="28"/><rect x="740" y="391" width="110" height="110" rx="28" opacity=".72"/><rect x="608" y="523" width="110" height="110" rx="28" opacity=".72"/><rect x="740" y="523" width="110" height="110" rx="28" opacity=".46"/></g></g>
3
+ </svg>
Binary file
@@ -0,0 +1,23 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
2
+ <defs>
3
+ <linearGradient id="base" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#171d33"/><stop offset="1" stop-color="#06080e"/></linearGradient>
4
+ <radialGradient id="glowYou" cx="330" cy="512" r="430" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6" stop-opacity=".6"/><stop offset="1" stop-color="#2f62e6" stop-opacity="0"/></radialGradient>
5
+ <radialGradient id="glowAgent" cx="700" cy="512" r="400" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d" stop-opacity=".42"/><stop offset="1" stop-color="#ff7a3d" stop-opacity="0"/></radialGradient>
6
+ <linearGradient id="rim" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".34"/><stop offset=".35" stop-color="#fff" stop-opacity=".04"/><stop offset="1" stop-color="#fff" stop-opacity=".08"/></linearGradient>
7
+ <linearGradient id="blue" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#5b8dff"/><stop offset="1" stop-color="#1535a8"/></linearGradient>
8
+ <linearGradient id="whiteUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#dfe8ff"/></linearGradient>
9
+ <linearGradient id="whiteLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#c3d3ff"/><stop offset="1" stop-color="#9fb7fb"/></linearGradient>
10
+ <clipPath id="clip"><rect width="1024" height="1024" rx="230"/></clipPath>
11
+ <linearGradient id="youUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b9cfff"/><stop offset="1" stop-color="#4f84ff"/></linearGradient>
12
+ <linearGradient id="youLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6"/><stop offset="1" stop-color="#1a3db3"/></linearGradient>
13
+ <linearGradient id="agentUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset="1" stop-color="#ff8a4f"/></linearGradient>
14
+ <linearGradient id="agentLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
15
+ <linearGradient id="shape" x1="0" y1="322" x2="0" y2="702" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset=".5" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
16
+ <linearGradient id="core" x1="0" y1="438" x2="0" y2="586" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#ffe2cc"/></linearGradient>
17
+ <filter id="soft" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="34"/></filter>
18
+ <filter id="shadow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="18"/></filter>
19
+ </defs>
20
+ <g clip-path="url(#clip)"><rect width="1024" height="1024" fill="url(#blue)"/><rect width="1024" height="1024" fill="url(#glowAgent)"/></g>
21
+ <rect x="4" y="4" width="1016" height="1016" rx="226" fill="none" stroke="url(#rim)" stroke-width="8"/>
22
+ <g opacity="0.4" filter="url(#shadow)" transform="translate(0 22)" fill="#061040"><path d="M185 232H335L575 512L335 792H185L425 512Z M839 232H689L449 512L689 792H839L599 512Z"/></g><path d="M185 232H335L575 512H425Z" fill="url(#whiteUpper)"/><path d="M425 512H575L335 792H185Z" fill="url(#whiteLower)"/><path d="M839 232H689L449 512H599Z" fill="url(#agentUpper)"/><path d="M599 512H449L689 792H839Z" fill="url(#agentLower)"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="#fff" filter="url(#soft)" opacity=".95"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="url(#core)"/>
23
+ </svg>
@@ -0,0 +1,23 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
2
+ <defs>
3
+ <linearGradient id="base" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#171d33"/><stop offset="1" stop-color="#06080e"/></linearGradient>
4
+ <radialGradient id="glowYou" cx="330" cy="512" r="430" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6" stop-opacity=".6"/><stop offset="1" stop-color="#2f62e6" stop-opacity="0"/></radialGradient>
5
+ <radialGradient id="glowAgent" cx="700" cy="512" r="400" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d" stop-opacity=".42"/><stop offset="1" stop-color="#ff7a3d" stop-opacity="0"/></radialGradient>
6
+ <linearGradient id="rim" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".34"/><stop offset=".35" stop-color="#fff" stop-opacity=".04"/><stop offset="1" stop-color="#fff" stop-opacity=".08"/></linearGradient>
7
+ <linearGradient id="blue" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#5b8dff"/><stop offset="1" stop-color="#1535a8"/></linearGradient>
8
+ <linearGradient id="whiteUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#dfe8ff"/></linearGradient>
9
+ <linearGradient id="whiteLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#c3d3ff"/><stop offset="1" stop-color="#9fb7fb"/></linearGradient>
10
+ <clipPath id="clip"><rect width="1024" height="1024" rx="230"/></clipPath>
11
+ <linearGradient id="youUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b9cfff"/><stop offset="1" stop-color="#4f84ff"/></linearGradient>
12
+ <linearGradient id="youLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6"/><stop offset="1" stop-color="#1a3db3"/></linearGradient>
13
+ <linearGradient id="agentUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset="1" stop-color="#ff8a4f"/></linearGradient>
14
+ <linearGradient id="agentLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
15
+ <linearGradient id="shape" x1="0" y1="322" x2="0" y2="702" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset=".5" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
16
+ <linearGradient id="core" x1="0" y1="438" x2="0" y2="586" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#ffe2cc"/></linearGradient>
17
+ <filter id="soft" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="34"/></filter>
18
+ <filter id="shadow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="18"/></filter>
19
+ </defs>
20
+ <g clip-path="url(#clip)"><rect width="1024" height="1024" fill="url(#base)"/><rect width="1024" height="1024" fill="url(#glowYou)"/><rect width="1024" height="1024" fill="url(#glowAgent)"/></g>
21
+ <rect x="4" y="4" width="1016" height="1016" rx="226" fill="none" stroke="url(#rim)" stroke-width="8"/>
22
+ <g opacity="0.55" filter="url(#shadow)" transform="translate(0 22)" fill="#000"><path d="M185 232H335L575 512L335 792H185L425 512Z M839 232H689L449 512L689 792H839L599 512Z"/></g><path d="M185 232H335L575 512H425Z" fill="url(#youUpper)"/><path d="M425 512H575L335 792H185Z" fill="url(#youLower)"/><path d="M839 232H689L449 512H599Z" fill="url(#agentUpper)"/><path d="M599 512H449L689 792H839Z" fill="url(#agentLower)"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="#fff" filter="url(#soft)" opacity=".95"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="url(#core)"/>
23
+ </svg>
@@ -0,0 +1,24 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="112" height="32" viewBox="0 0 112 32" role="img" aria-label="xDev">
2
+ <svg width="32" height="32" viewBox="0 0 1024 1024"><defs>
3
+ <linearGradient id="base" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#171d33"/><stop offset="1" stop-color="#06080e"/></linearGradient>
4
+ <radialGradient id="glowYou" cx="330" cy="512" r="430" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6" stop-opacity=".6"/><stop offset="1" stop-color="#2f62e6" stop-opacity="0"/></radialGradient>
5
+ <radialGradient id="glowAgent" cx="700" cy="512" r="400" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d" stop-opacity=".42"/><stop offset="1" stop-color="#ff7a3d" stop-opacity="0"/></radialGradient>
6
+ <linearGradient id="rim" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".34"/><stop offset=".35" stop-color="#fff" stop-opacity=".04"/><stop offset="1" stop-color="#fff" stop-opacity=".08"/></linearGradient>
7
+ <linearGradient id="blue" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#5b8dff"/><stop offset="1" stop-color="#1535a8"/></linearGradient>
8
+ <linearGradient id="whiteUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#dfe8ff"/></linearGradient>
9
+ <linearGradient id="whiteLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#c3d3ff"/><stop offset="1" stop-color="#9fb7fb"/></linearGradient>
10
+ <clipPath id="clip"><rect width="1024" height="1024" rx="230"/></clipPath>
11
+ <linearGradient id="youUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b9cfff"/><stop offset="1" stop-color="#4f84ff"/></linearGradient>
12
+ <linearGradient id="youLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6"/><stop offset="1" stop-color="#1a3db3"/></linearGradient>
13
+ <linearGradient id="agentUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset="1" stop-color="#ff8a4f"/></linearGradient>
14
+ <linearGradient id="agentLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
15
+ <linearGradient id="shape" x1="0" y1="322" x2="0" y2="702" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset=".5" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
16
+ <linearGradient id="core" x1="0" y1="438" x2="0" y2="586" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#ffe2cc"/></linearGradient>
17
+ <filter id="soft" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="34"/></filter>
18
+ <filter id="shadow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="18"/></filter>
19
+ </defs>
20
+ <g clip-path="url(#clip)"><rect width="1024" height="1024" fill="url(#base)"/><rect width="1024" height="1024" fill="url(#glowYou)"/><rect width="1024" height="1024" fill="url(#glowAgent)"/></g>
21
+ <rect x="4" y="4" width="1016" height="1016" rx="226" fill="none" stroke="url(#rim)" stroke-width="8"/>
22
+ <g opacity="0.55" filter="url(#shadow)" transform="translate(0 22)" fill="#000"><path d="M185 232H335L575 512L335 792H185L425 512Z M839 232H689L449 512L689 792H839L599 512Z"/></g><path d="M185 232H335L575 512H425Z" fill="url(#youUpper)"/><path d="M425 512H575L335 792H185Z" fill="url(#youLower)"/><path d="M839 232H689L449 512H599Z" fill="url(#agentUpper)"/><path d="M599 512H449L689 792H839Z" fill="url(#agentLower)"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="#fff" filter="url(#soft)" opacity=".95"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="url(#core)"/></svg>
23
+ <text x="40" y="24" font-family="'Be Vietnam Pro', 'Segoe UI', sans-serif" font-size="25" letter-spacing="-0.8"><tspan fill="#f4f5f8" font-weight="800">xDev</tspan></text>
24
+ </svg>
@@ -0,0 +1,24 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="112" height="32" viewBox="0 0 112 32" role="img" aria-label="xDev">
2
+ <svg width="32" height="32" viewBox="0 0 1024 1024"><defs>
3
+ <linearGradient id="base" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#171d33"/><stop offset="1" stop-color="#06080e"/></linearGradient>
4
+ <radialGradient id="glowYou" cx="330" cy="512" r="430" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6" stop-opacity=".6"/><stop offset="1" stop-color="#2f62e6" stop-opacity="0"/></radialGradient>
5
+ <radialGradient id="glowAgent" cx="700" cy="512" r="400" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d" stop-opacity=".42"/><stop offset="1" stop-color="#ff7a3d" stop-opacity="0"/></radialGradient>
6
+ <linearGradient id="rim" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".34"/><stop offset=".35" stop-color="#fff" stop-opacity=".04"/><stop offset="1" stop-color="#fff" stop-opacity=".08"/></linearGradient>
7
+ <linearGradient id="blue" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#5b8dff"/><stop offset="1" stop-color="#1535a8"/></linearGradient>
8
+ <linearGradient id="whiteUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#dfe8ff"/></linearGradient>
9
+ <linearGradient id="whiteLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#c3d3ff"/><stop offset="1" stop-color="#9fb7fb"/></linearGradient>
10
+ <clipPath id="clip"><rect width="1024" height="1024" rx="230"/></clipPath>
11
+ <linearGradient id="youUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b9cfff"/><stop offset="1" stop-color="#4f84ff"/></linearGradient>
12
+ <linearGradient id="youLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6"/><stop offset="1" stop-color="#1a3db3"/></linearGradient>
13
+ <linearGradient id="agentUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset="1" stop-color="#ff8a4f"/></linearGradient>
14
+ <linearGradient id="agentLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
15
+ <linearGradient id="shape" x1="0" y1="322" x2="0" y2="702" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset=".5" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
16
+ <linearGradient id="core" x1="0" y1="438" x2="0" y2="586" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#ffe2cc"/></linearGradient>
17
+ <filter id="soft" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="34"/></filter>
18
+ <filter id="shadow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="18"/></filter>
19
+ </defs>
20
+ <g clip-path="url(#clip)"><rect width="1024" height="1024" fill="url(#base)"/><rect width="1024" height="1024" fill="url(#glowYou)"/><rect width="1024" height="1024" fill="url(#glowAgent)"/></g>
21
+ <rect x="4" y="4" width="1016" height="1016" rx="226" fill="none" stroke="url(#rim)" stroke-width="8"/>
22
+ <g opacity="0.55" filter="url(#shadow)" transform="translate(0 22)" fill="#000"><path d="M185 232H335L575 512L335 792H185L425 512Z M839 232H689L449 512L689 792H839L599 512Z"/></g><path d="M185 232H335L575 512H425Z" fill="url(#youUpper)"/><path d="M425 512H575L335 792H185Z" fill="url(#youLower)"/><path d="M839 232H689L449 512H599Z" fill="url(#agentUpper)"/><path d="M599 512H449L689 792H839Z" fill="url(#agentLower)"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="#fff" filter="url(#soft)" opacity=".95"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="url(#core)"/></svg>
23
+ <text x="40" y="24" font-family="'Be Vietnam Pro', 'Segoe UI', sans-serif" font-size="25" letter-spacing="-0.8"><tspan fill="#111114" font-weight="800">xDev</tspan></text>
24
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="162 162 700 700">
2
+ <defs>
3
+ <linearGradient id="youUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b9cfff"/><stop offset="1" stop-color="#4f84ff"/></linearGradient>
4
+ <linearGradient id="youLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2f62e6"/><stop offset="1" stop-color="#1a3db3"/></linearGradient>
5
+ <linearGradient id="agentUpper" x1="0" y1="232" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset="1" stop-color="#ff8a4f"/></linearGradient>
6
+ <linearGradient id="agentLower" x1="0" y1="512" x2="0" y2="792" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
7
+ <linearGradient id="shape" x1="0" y1="322" x2="0" y2="702" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc9a3"/><stop offset=".5" stop-color="#ff7a3d"/><stop offset="1" stop-color="#d94e14"/></linearGradient>
8
+ <linearGradient id="core" x1="0" y1="438" x2="0" y2="586" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#ffe2cc"/></linearGradient>
9
+ <filter id="soft" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="34"/></filter>
10
+ <filter id="shadow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="18"/></filter>
11
+ </defs>
12
+ <path d="M185 232H335L575 512H425Z" fill="url(#youUpper)"/><path d="M425 512H575L335 792H185Z" fill="url(#youLower)"/><path d="M839 232H689L449 512H599Z" fill="url(#agentUpper)"/><path d="M599 512H449L689 792H839Z" fill="url(#agentLower)"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="#fff" filter="url(#soft)" opacity=".95"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="url(#core)"/>
13
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 1024 1024">
2
+ <rect width="1024" height="1024" rx="224" fill="#0d1220"/><path d="M185 232H335L575 512L335 792H185L425 512Z" fill="#5b8cff"/><path d="M839 232H689L449 512L689 792H839L599 512Z" fill="#ff7a3d"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="#fff"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="162 162 700 700">
2
+ <path d="M185 232H335L575 512L335 792H185L425 512Z" fill="currentColor"/><path d="M839 232H689L449 512L689 792H839L599 512Z" fill="#ff7a3d"/><path d="M512 438.5L575 512L512 585.5L449 512Z" fill="#fff"/>
3
+ </svg>
@@ -0,0 +1,142 @@
1
+ #!/usr/bin/env node
2
+ // Installs the agent skills of @xdev-asia/ui and scaffolds apps from their templates. Offline: node:fs only.
3
+ // xdev-ui-skills list
4
+ // xdev-ui-skills install [--claude | --codex | --cursor | --dir <path>] [--user] [--skill <name>]... [--force] [--dry-run]
5
+ // xdev-ui-skills create <app|admin> <dir> [--force]
6
+ // Exit codes: 0 ok, 1 refused (target exists), 2 usage error.
7
+ import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
8
+ import { homedir } from "node:os";
9
+ import { basename, join, relative, resolve } from "node:path";
10
+ import { fileURLToPath } from "node:url";
11
+
12
+ const SKILLS = fileURLToPath(new URL("../skills/", import.meta.url));
13
+ const DOTFILES = { _npmrc: ".npmrc", _gitignore: ".gitignore", "_mcp.json": ".mcp.json" };
14
+ const KINDS = { app: "xdev-ui-build-app", admin: "xdev-ui-admin" };
15
+
16
+ const USAGE = `usage:
17
+ xdev-ui-skills list
18
+ xdev-ui-skills install [--claude | --codex | --cursor | --dir <path>] [--user] [--skill <name>]... [--force] [--dry-run]
19
+ xdev-ui-skills create <app|admin> <dir> [--force]`;
20
+
21
+ class Usage extends Error {}
22
+ class Refused extends Error {}
23
+
24
+ const skillNames = () =>
25
+ existsSync(SKILLS) ? readdirSync(SKILLS).filter((n) => existsSync(join(SKILLS, n, "SKILL.md"))).sort() : [];
26
+
27
+ function files(dir) {
28
+ return readdirSync(dir).sort().flatMap((n) => {
29
+ const p = join(dir, n);
30
+ return statSync(p).isDirectory() ? files(p) : [p];
31
+ });
32
+ }
33
+
34
+ function description(name) {
35
+ const m = /^description:\s*"?(.*?)"?\s*$/m.exec(readFileSync(join(SKILLS, name, "SKILL.md"), "utf8"));
36
+ return m ? m[1] : "";
37
+ }
38
+
39
+ function parse(argv, spec) {
40
+ const opts = { skills: [] };
41
+ const rest = [];
42
+ for (let i = 0; i < argv.length; i++) {
43
+ const a = argv[i];
44
+ if (!a.startsWith("--")) {
45
+ rest.push(a);
46
+ continue;
47
+ }
48
+ const flag = a.slice(2);
49
+ if (!(flag in spec)) throw new Usage(`unknown flag ${a}`);
50
+ if (spec[flag] === "value") {
51
+ const v = argv[++i];
52
+ if (!v || v.startsWith("--")) throw new Usage(`${a} needs a value`);
53
+ if (flag === "skill") opts.skills.push(v);
54
+ else opts[flag] = v;
55
+ } else opts[flag] = true;
56
+ }
57
+ return { opts, rest };
58
+ }
59
+
60
+ function copyTree(from, to, { rename = false, dry = false, log }) {
61
+ for (const f of files(from)) {
62
+ const rel = relative(from, f);
63
+ const parts = rel.split(/[\\/]/);
64
+ if (rename && parts.length === 1 && DOTFILES[parts[0]]) parts[0] = DOTFILES[parts[0]];
65
+ const dest = join(to, ...parts);
66
+ log(dest);
67
+ if (dry) continue;
68
+ mkdirSync(join(dest, ".."), { recursive: true });
69
+ copyFileSync(f, dest);
70
+ }
71
+ }
72
+
73
+ function install(argv) {
74
+ const { opts } = parse(argv, { claude: "flag", codex: "flag", cursor: "flag", dir: "value", user: "flag", skill: "value", force: "flag", "dry-run": "flag" });
75
+ const targets = ["claude", "codex", "cursor", "dir"].filter((k) => opts[k]);
76
+ if (targets.length > 1) throw new Usage(`choose one of --claude, --codex, --cursor, --dir`);
77
+ if (opts.dir && opts.user) throw new Usage("--dir cannot be combined with --user");
78
+ const all = skillNames();
79
+ for (const s of opts.skills) if (!all.includes(s)) throw new Usage(`unknown skill ${s}; available: ${all.join(", ")}`);
80
+ const chosen = opts.skills.length ? [...new Set(opts.skills)] : all;
81
+ const base = opts.dir ? resolve(opts.dir) : join(opts.user ? homedir() : process.cwd(), opts.codex || opts.cursor ? ".agents/skills" : ".claude/skills");
82
+ if (!opts.force) {
83
+ const taken = chosen.filter((n) => existsSync(join(base, n)));
84
+ if (taken.length) throw new Refused(`${taken.map((n) => join(base, n)).join(", ")} already exists. Pass --force to replace it.`);
85
+ }
86
+ for (const n of chosen) {
87
+ const to = join(base, n);
88
+ if (opts.force && !opts["dry-run"]) rmSync(to, { recursive: true, force: true });
89
+ copyTree(join(SKILLS, n), to, { dry: opts["dry-run"], log: (p) => console.log(opts["dry-run"] ? `would write ${p}` : p) });
90
+ }
91
+ }
92
+
93
+ function ownVersion() {
94
+ try {
95
+ const v = JSON.parse(readFileSync(fileURLToPath(new URL("../package.json", import.meta.url)), "utf8")).version;
96
+ return /^\d+\.\d+\.\d+$/.test(v) ? v : null;
97
+ } catch {
98
+ return null;
99
+ }
100
+ }
101
+
102
+ function create(argv) {
103
+ const { opts, rest } = parse(argv, { force: "flag" });
104
+ const [kind, dir] = rest;
105
+ if (!KINDS[kind]) throw new Usage(`create needs app or admin${kind ? `, not ${kind}` : ""}`);
106
+ if (!dir) throw new Usage("create needs a folder");
107
+ const out = resolve(dir);
108
+ if (existsSync(out) && readdirSync(out).length && !opts.force) throw new Refused(`${out} is not empty. Pass --force to write into it.`);
109
+ copyTree(join(SKILLS, KINDS[kind], "templates", kind), out, { rename: true, log: () => {} });
110
+ const pkgPath = join(out, "package.json");
111
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
112
+ // Pin the UI package to the release that ships these templates; a dev checkout (0.0.0-development) keeps the template value.
113
+ const own = ownVersion();
114
+ if (own && pkg.dependencies?.["@xdev-asia/ui"]) pkg.dependencies["@xdev-asia/ui"] = `^${own}`;
115
+ pkg.name = basename(out).toLowerCase().replace(/[^a-z0-9._-]+/g, "-").replace(/^[-.]+/, "") || pkg.name;
116
+ writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
117
+ console.log(`created ${out}\nnext: cd ${dir} && pnpm install && pnpm dev`);
118
+ }
119
+
120
+ function main(argv) {
121
+ const [cmd, ...rest] = argv;
122
+ if (cmd === "list") {
123
+ parse(rest, {});
124
+ for (const n of skillNames()) console.log(`${n}: ${description(n)}`);
125
+ } else if (cmd === "install") install(rest);
126
+ else if (cmd === "create") create(rest);
127
+ else throw new Usage(cmd ? `unknown command ${cmd}` : "missing command");
128
+ }
129
+
130
+ try {
131
+ main(process.argv.slice(2));
132
+ } catch (e) {
133
+ if (e instanceof Usage) {
134
+ console.error(`xdev-ui-skills: ${e.message}\n${USAGE}`);
135
+ process.exit(2);
136
+ }
137
+ if (e instanceof Refused) {
138
+ console.error(`xdev-ui-skills: ${e.message}`);
139
+ process.exit(1);
140
+ }
141
+ throw e;
142
+ }
@@ -0,0 +1,15 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ declare function Workspace(): import("react").JSX.Element;
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Workspace;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Desktop: Story;
14
+ export declare const Tablet: Story;
15
+ export declare const Phone: Story;