@soadtech/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/dist/index.js +272 -0
  2. package/package.json +24 -0
  3. package/registry/base/cn.ts +5 -0
  4. package/registry/base/css-modules.d.ts +4 -0
  5. package/registry/base/theme/reset.css +43 -0
  6. package/registry/base/theme/tokens.css +154 -0
  7. package/registry/components/Accordion/Accordion.module.css +3 -0
  8. package/registry/components/Accordion/Accordion.tsx +54 -0
  9. package/registry/components/Accordion/Accordion.types.ts +17 -0
  10. package/registry/components/Accordion/AccordionContext.ts +18 -0
  11. package/registry/components/Accordion/AccordionItem.module.css +124 -0
  12. package/registry/components/Accordion/AccordionItem.tsx +148 -0
  13. package/registry/components/Accordion/AccordionItem.types.ts +14 -0
  14. package/registry/components/Accordion/index.ts +8 -0
  15. package/registry/components/ActionBar/ActionBar.module.css +18 -0
  16. package/registry/components/ActionBar/ActionBar.tsx +21 -0
  17. package/registry/components/ActionBar/ActionBar.types.ts +8 -0
  18. package/registry/components/ActionBar/ActionBarLink.module.css +31 -0
  19. package/registry/components/ActionBar/ActionBarLink.tsx +55 -0
  20. package/registry/components/ActionBar/ActionBarLink.types.ts +7 -0
  21. package/registry/components/ActionBar/index.ts +4 -0
  22. package/registry/components/Alert/Alert.module.css +172 -0
  23. package/registry/components/Alert/Alert.tsx +146 -0
  24. package/registry/components/Alert/Alert.types.ts +25 -0
  25. package/registry/components/Alert/index.ts +7 -0
  26. package/registry/components/Avatar/Avatar.module.css +100 -0
  27. package/registry/components/Avatar/Avatar.tsx +54 -0
  28. package/registry/components/Avatar/Avatar.types.ts +18 -0
  29. package/registry/components/Avatar/AvatarGroup.module.css +64 -0
  30. package/registry/components/Avatar/AvatarGroup.tsx +65 -0
  31. package/registry/components/Avatar/AvatarGroup.types.ts +13 -0
  32. package/registry/components/Avatar/index.ts +8 -0
  33. package/registry/components/Badge/Badge.module.css +92 -0
  34. package/registry/components/Badge/Badge.tsx +89 -0
  35. package/registry/components/Badge/Badge.types.ts +20 -0
  36. package/registry/components/Badge/TrendBadge.module.css +47 -0
  37. package/registry/components/Badge/TrendBadge.tsx +65 -0
  38. package/registry/components/Badge/TrendBadge.types.ts +15 -0
  39. package/registry/components/Badge/index.ts +14 -0
  40. package/registry/components/Breadcrumbs/BreadcrumbItem.tsx +41 -0
  41. package/registry/components/Breadcrumbs/Breadcrumbs.module.css +81 -0
  42. package/registry/components/Breadcrumbs/Breadcrumbs.tsx +71 -0
  43. package/registry/components/Breadcrumbs/Breadcrumbs.types.ts +22 -0
  44. package/registry/components/Breadcrumbs/index.ts +7 -0
  45. package/registry/components/Button/Button.module.css +169 -0
  46. package/registry/components/Button/Button.tsx +43 -0
  47. package/registry/components/Button/Button.types.ts +18 -0
  48. package/registry/components/Button/index.ts +7 -0
  49. package/registry/components/ButtonLink/ButtonLink.module.css +85 -0
  50. package/registry/components/ButtonLink/ButtonLink.tsx +42 -0
  51. package/registry/components/ButtonLink/ButtonLink.types.ts +18 -0
  52. package/registry/components/ButtonLink/index.ts +6 -0
  53. package/registry/components/Calendar/Calendar.module.css +213 -0
  54. package/registry/components/Calendar/Calendar.tsx +370 -0
  55. package/registry/components/Calendar/Calendar.types.ts +28 -0
  56. package/registry/components/Calendar/CalendarDialog.module.css +29 -0
  57. package/registry/components/Calendar/CalendarDialog.tsx +173 -0
  58. package/registry/components/Calendar/CalendarDialog.types.ts +30 -0
  59. package/registry/components/Calendar/index.ts +9 -0
  60. package/registry/components/Card/Card.module.css +35 -0
  61. package/registry/components/Card/Card.tsx +36 -0
  62. package/registry/components/Card/Card.types.ts +37 -0
  63. package/registry/components/Card/CardContent.module.css +3 -0
  64. package/registry/components/Card/CardContent.tsx +16 -0
  65. package/registry/components/Card/CardFooter.module.css +31 -0
  66. package/registry/components/Card/CardFooter.tsx +34 -0
  67. package/registry/components/Card/CardHeader.module.css +61 -0
  68. package/registry/components/Card/CardHeader.tsx +46 -0
  69. package/registry/components/Card/InsightCard.module.css +106 -0
  70. package/registry/components/Card/InsightCard.tsx +68 -0
  71. package/registry/components/Card/InsightCard.types.ts +24 -0
  72. package/registry/components/Card/KPICard.module.css +31 -0
  73. package/registry/components/Card/KPICard.tsx +29 -0
  74. package/registry/components/Card/KPICard.types.ts +13 -0
  75. package/registry/components/Card/ListItemCard.module.css +59 -0
  76. package/registry/components/Card/ListItemCard.tsx +37 -0
  77. package/registry/components/Card/ListItemCard.types.ts +18 -0
  78. package/registry/components/Card/PlanCard.module.css +125 -0
  79. package/registry/components/Card/PlanCard.tsx +108 -0
  80. package/registry/components/Card/PlanCard.types.ts +30 -0
  81. package/registry/components/Card/ProductCard.module.css +118 -0
  82. package/registry/components/Card/ProductCard.tsx +56 -0
  83. package/registry/components/Card/ProductCard.types.ts +24 -0
  84. package/registry/components/Card/StatCard.module.css +20 -0
  85. package/registry/components/Card/StatCard.tsx +26 -0
  86. package/registry/components/Card/StatCard.types.ts +12 -0
  87. package/registry/components/Card/UserGroupCard.module.css +50 -0
  88. package/registry/components/Card/UserGroupCard.tsx +59 -0
  89. package/registry/components/Card/UserGroupCard.types.ts +23 -0
  90. package/registry/components/Card/index.ts +38 -0
  91. package/registry/components/Chart/BarChart.module.css +54 -0
  92. package/registry/components/Chart/BarChart.tsx +196 -0
  93. package/registry/components/Chart/BarChart.types.ts +20 -0
  94. package/registry/components/Chart/ChartAction.module.css +43 -0
  95. package/registry/components/Chart/ChartAction.tsx +35 -0
  96. package/registry/components/Chart/ChartAction.types.ts +17 -0
  97. package/registry/components/Chart/ChartAxis.module.css +47 -0
  98. package/registry/components/Chart/ChartAxis.tsx +79 -0
  99. package/registry/components/Chart/ChartAxis.types.ts +14 -0
  100. package/registry/components/Chart/ChartLegend.module.css +31 -0
  101. package/registry/components/Chart/ChartLegend.tsx +49 -0
  102. package/registry/components/Chart/ChartLegend.types.ts +18 -0
  103. package/registry/components/Chart/ChartTooltip.module.css +54 -0
  104. package/registry/components/Chart/ChartTooltip.tsx +44 -0
  105. package/registry/components/Chart/ChartTooltip.types.ts +19 -0
  106. package/registry/components/Chart/DonutChart.module.css +32 -0
  107. package/registry/components/Chart/DonutChart.tsx +107 -0
  108. package/registry/components/Chart/DonutChart.types.ts +20 -0
  109. package/registry/components/Chart/GridChart.module.css +26 -0
  110. package/registry/components/Chart/GridChart.tsx +61 -0
  111. package/registry/components/Chart/GridChart.types.ts +14 -0
  112. package/registry/components/Chart/HoverTooltip.module.css +16 -0
  113. package/registry/components/Chart/HoverTooltip.tsx +22 -0
  114. package/registry/components/Chart/KPIIndicator.module.css +48 -0
  115. package/registry/components/Chart/KPIIndicator.tsx +28 -0
  116. package/registry/components/Chart/KPIIndicator.types.ts +16 -0
  117. package/registry/components/Chart/LineChart.module.css +54 -0
  118. package/registry/components/Chart/LineChart.tsx +282 -0
  119. package/registry/components/Chart/LineChart.types.ts +22 -0
  120. package/registry/components/Chart/ProgressChart.module.css +54 -0
  121. package/registry/components/Chart/ProgressChart.tsx +64 -0
  122. package/registry/components/Chart/ProgressChart.types.ts +18 -0
  123. package/registry/components/Chart/TrendLineChart.module.css +5 -0
  124. package/registry/components/Chart/TrendLineChart.tsx +131 -0
  125. package/registry/components/Chart/TrendLineChart.types.ts +19 -0
  126. package/registry/components/Chart/chart.utils.ts +131 -0
  127. package/registry/components/Chart/index.ts +47 -0
  128. package/registry/components/Chart/useChartHover.ts +24 -0
  129. package/registry/components/Checkbox/Checkbox.module.css +101 -0
  130. package/registry/components/Checkbox/Checkbox.tsx +100 -0
  131. package/registry/components/Checkbox/Checkbox.types.ts +11 -0
  132. package/registry/components/Checkbox/CheckboxField.module.css +69 -0
  133. package/registry/components/Checkbox/CheckboxField.tsx +54 -0
  134. package/registry/components/Checkbox/CheckboxField.types.ts +9 -0
  135. package/registry/components/Checkbox/CheckboxGroup.module.css +41 -0
  136. package/registry/components/Checkbox/CheckboxGroup.tsx +60 -0
  137. package/registry/components/Checkbox/CheckboxGroup.types.ts +11 -0
  138. package/registry/components/Checkbox/CheckboxGroupContext.ts +13 -0
  139. package/registry/components/Checkbox/index.ts +11 -0
  140. package/registry/components/Chip/Chip.module.css +143 -0
  141. package/registry/components/Chip/Chip.tsx +93 -0
  142. package/registry/components/Chip/Chip.types.ts +19 -0
  143. package/registry/components/Chip/ChipGroup.module.css +5 -0
  144. package/registry/components/Chip/ChipGroup.tsx +16 -0
  145. package/registry/components/Chip/ChipGroup.types.ts +3 -0
  146. package/registry/components/Chip/index.ts +9 -0
  147. package/registry/components/Datepicker/Datepicker.module.css +133 -0
  148. package/registry/components/Datepicker/Datepicker.tsx +236 -0
  149. package/registry/components/Datepicker/Datepicker.types.ts +36 -0
  150. package/registry/components/Datepicker/index.ts +2 -0
  151. package/registry/components/Dialog/Dialog.module.css +18 -0
  152. package/registry/components/Dialog/Dialog.tsx +69 -0
  153. package/registry/components/Dialog/Dialog.types.ts +45 -0
  154. package/registry/components/Dialog/DialogBody.module.css +3 -0
  155. package/registry/components/Dialog/DialogBody.tsx +16 -0
  156. package/registry/components/Dialog/DialogContext.ts +11 -0
  157. package/registry/components/Dialog/DialogFooter.module.css +38 -0
  158. package/registry/components/Dialog/DialogFooter.tsx +30 -0
  159. package/registry/components/Dialog/DialogHeader.module.css +70 -0
  160. package/registry/components/Dialog/DialogHeader.tsx +72 -0
  161. package/registry/components/Dialog/DialogIcon.module.css +31 -0
  162. package/registry/components/Dialog/DialogIcon.tsx +89 -0
  163. package/registry/components/Dialog/index.ts +14 -0
  164. package/registry/components/Divider/Divider.module.css +19 -0
  165. package/registry/components/Divider/Divider.tsx +20 -0
  166. package/registry/components/Divider/Divider.types.ts +9 -0
  167. package/registry/components/Divider/index.ts +2 -0
  168. package/registry/components/DropdownMenu/DropdownMenu.module.css +9 -0
  169. package/registry/components/DropdownMenu/DropdownMenu.tsx +21 -0
  170. package/registry/components/DropdownMenu/DropdownMenu.types.ts +22 -0
  171. package/registry/components/DropdownMenu/DropdownMenuDivider.module.css +5 -0
  172. package/registry/components/DropdownMenu/DropdownMenuDivider.tsx +20 -0
  173. package/registry/components/DropdownMenu/DropdownMenuHeader.module.css +7 -0
  174. package/registry/components/DropdownMenu/DropdownMenuHeader.tsx +17 -0
  175. package/registry/components/DropdownMenu/DropdownMenuItem.module.css +78 -0
  176. package/registry/components/DropdownMenu/DropdownMenuItem.tsx +40 -0
  177. package/registry/components/DropdownMenu/index.ts +10 -0
  178. package/registry/components/FileUpload/FileUpload.module.css +122 -0
  179. package/registry/components/FileUpload/FileUpload.tsx +354 -0
  180. package/registry/components/FileUpload/FileUpload.types.ts +89 -0
  181. package/registry/components/FileUpload/FileUploadIcon.module.css +61 -0
  182. package/registry/components/FileUpload/FileUploadIcon.tsx +84 -0
  183. package/registry/components/FileUpload/FileUploadInput.module.css +140 -0
  184. package/registry/components/FileUpload/FileUploadInput.tsx +113 -0
  185. package/registry/components/FileUpload/FileUploadItem.module.css +41 -0
  186. package/registry/components/FileUpload/FileUploadItem.tsx +39 -0
  187. package/registry/components/FileUpload/index.ts +12 -0
  188. package/registry/components/InputCounter/InputCounter.module.css +146 -0
  189. package/registry/components/InputCounter/InputCounter.tsx +232 -0
  190. package/registry/components/InputCounter/InputCounter.types.ts +37 -0
  191. package/registry/components/InputCounter/index.ts +7 -0
  192. package/registry/components/InputMessage/InputMessage.module.css +148 -0
  193. package/registry/components/InputMessage/InputMessage.tsx +294 -0
  194. package/registry/components/InputMessage/InputMessage.types.ts +30 -0
  195. package/registry/components/InputMessage/index.ts +2 -0
  196. package/registry/components/InputSearch/InputSearch.module.css +168 -0
  197. package/registry/components/InputSearch/InputSearch.tsx +251 -0
  198. package/registry/components/InputSearch/InputSearch.types.ts +35 -0
  199. package/registry/components/InputSearch/index.ts +6 -0
  200. package/registry/components/InputText/InputText.module.css +183 -0
  201. package/registry/components/InputText/InputText.tsx +244 -0
  202. package/registry/components/InputText/InputText.types.ts +32 -0
  203. package/registry/components/InputText/index.ts +7 -0
  204. package/registry/components/InputTextArea/InputTextArea.module.css +141 -0
  205. package/registry/components/InputTextArea/InputTextArea.tsx +170 -0
  206. package/registry/components/InputTextArea/InputTextArea.types.ts +18 -0
  207. package/registry/components/InputTextArea/index.ts +6 -0
  208. package/registry/components/NavbarUser/NavbarUser.module.css +265 -0
  209. package/registry/components/NavbarUser/NavbarUser.tsx +202 -0
  210. package/registry/components/NavbarUser/NavbarUser.types.ts +31 -0
  211. package/registry/components/NavbarUser/index.ts +2 -0
  212. package/registry/components/Notification/Notification.types.ts +65 -0
  213. package/registry/components/Notification/NotificationItem.module.css +143 -0
  214. package/registry/components/Notification/NotificationItem.tsx +157 -0
  215. package/registry/components/Notification/NotificationPanel.module.css +75 -0
  216. package/registry/components/Notification/NotificationPanel.tsx +68 -0
  217. package/registry/components/Notification/NotificationReply.module.css +56 -0
  218. package/registry/components/Notification/NotificationReply.tsx +52 -0
  219. package/registry/components/Notification/index.ts +9 -0
  220. package/registry/components/Pagination/Pagination.module.css +123 -0
  221. package/registry/components/Pagination/Pagination.tsx +212 -0
  222. package/registry/components/Pagination/Pagination.types.ts +24 -0
  223. package/registry/components/Pagination/PaginationDots.module.css +60 -0
  224. package/registry/components/Pagination/PaginationDots.tsx +48 -0
  225. package/registry/components/Pagination/PaginationDots.types.ts +17 -0
  226. package/registry/components/Pagination/index.ts +12 -0
  227. package/registry/components/Persona/MessageDropdown.module.css +76 -0
  228. package/registry/components/Persona/MessageDropdown.tsx +68 -0
  229. package/registry/components/Persona/Persona.module.css +92 -0
  230. package/registry/components/Persona/Persona.tsx +90 -0
  231. package/registry/components/Persona/Persona.types.ts +71 -0
  232. package/registry/components/Persona/PersonaAction.module.css +80 -0
  233. package/registry/components/Persona/PersonaAction.tsx +49 -0
  234. package/registry/components/Persona/PersonaMessage.module.css +156 -0
  235. package/registry/components/Persona/PersonaMessage.tsx +70 -0
  236. package/registry/components/Persona/index.ts +11 -0
  237. package/registry/components/Progress/Progress.module.css +41 -0
  238. package/registry/components/Progress/Progress.tsx +43 -0
  239. package/registry/components/Progress/Progress.types.ts +10 -0
  240. package/registry/components/Progress/index.ts +2 -0
  241. package/registry/components/RadioButton/RadioButton.module.css +103 -0
  242. package/registry/components/RadioButton/RadioButton.tsx +59 -0
  243. package/registry/components/RadioButton/RadioButton.types.ts +19 -0
  244. package/registry/components/RadioButton/RadioField.module.css +68 -0
  245. package/registry/components/RadioButton/RadioField.tsx +68 -0
  246. package/registry/components/RadioButton/RadioGroup.module.css +41 -0
  247. package/registry/components/RadioButton/RadioGroup.tsx +76 -0
  248. package/registry/components/RadioButton/RadioGroupContext.ts +16 -0
  249. package/registry/components/RadioButton/index.ts +12 -0
  250. package/registry/components/RangeSlider/RangeSlider.module.css +133 -0
  251. package/registry/components/RangeSlider/RangeSlider.tsx +251 -0
  252. package/registry/components/RangeSlider/RangeSlider.types.ts +25 -0
  253. package/registry/components/RangeSlider/index.ts +2 -0
  254. package/registry/components/Rating/Rating.module.css +56 -0
  255. package/registry/components/Rating/Rating.tsx +142 -0
  256. package/registry/components/Rating/Rating.types.ts +14 -0
  257. package/registry/components/Rating/index.ts +7 -0
  258. package/registry/components/SegmentedControl/SegmentedControl.module.css +56 -0
  259. package/registry/components/SegmentedControl/SegmentedControl.tsx +46 -0
  260. package/registry/components/SegmentedControl/SegmentedControl.types.ts +27 -0
  261. package/registry/components/SegmentedControl/SegmentedControlContext.ts +20 -0
  262. package/registry/components/SegmentedControl/SegmentedControlItem.module.css +55 -0
  263. package/registry/components/SegmentedControl/SegmentedControlItem.tsx +32 -0
  264. package/registry/components/SegmentedControl/index.ts +8 -0
  265. package/registry/components/SelectDropdown/SelectDropdown.module.css +214 -0
  266. package/registry/components/SelectDropdown/SelectDropdown.tsx +375 -0
  267. package/registry/components/SelectDropdown/SelectDropdown.types.ts +50 -0
  268. package/registry/components/SelectDropdown/SelectDropdownOption.module.css +101 -0
  269. package/registry/components/SelectDropdown/SelectDropdownOption.tsx +86 -0
  270. package/registry/components/SelectDropdown/SelectDropdownOverlay.module.css +74 -0
  271. package/registry/components/SelectDropdown/SelectDropdownOverlay.tsx +202 -0
  272. package/registry/components/SelectDropdown/index.ts +11 -0
  273. package/registry/components/Sidebar/Sidebar.module.css +14 -0
  274. package/registry/components/Sidebar/Sidebar.tsx +41 -0
  275. package/registry/components/Sidebar/Sidebar.types.ts +41 -0
  276. package/registry/components/Sidebar/SidebarContent.module.css +5 -0
  277. package/registry/components/Sidebar/SidebarContent.tsx +14 -0
  278. package/registry/components/Sidebar/SidebarContext.ts +15 -0
  279. package/registry/components/Sidebar/SidebarDivider.module.css +5 -0
  280. package/registry/components/Sidebar/SidebarDivider.tsx +17 -0
  281. package/registry/components/Sidebar/SidebarFooter.module.css +5 -0
  282. package/registry/components/Sidebar/SidebarFooter.tsx +14 -0
  283. package/registry/components/Sidebar/SidebarGroup.module.css +12 -0
  284. package/registry/components/Sidebar/SidebarGroup.tsx +22 -0
  285. package/registry/components/Sidebar/SidebarHeader.module.css +5 -0
  286. package/registry/components/Sidebar/SidebarHeader.tsx +14 -0
  287. package/registry/components/Sidebar/SidebarNavItem.module.css +176 -0
  288. package/registry/components/Sidebar/SidebarNavItem.tsx +96 -0
  289. package/registry/components/Sidebar/index.ts +16 -0
  290. package/registry/components/Stepper/Stepper.module.css +11 -0
  291. package/registry/components/Stepper/Stepper.tsx +47 -0
  292. package/registry/components/Stepper/Stepper.types.ts +26 -0
  293. package/registry/components/Stepper/StepperContext.ts +17 -0
  294. package/registry/components/Stepper/StepperStep.module.css +183 -0
  295. package/registry/components/Stepper/StepperStep.tsx +204 -0
  296. package/registry/components/Stepper/index.ts +9 -0
  297. package/registry/components/Switch/Switch.module.css +145 -0
  298. package/registry/components/Switch/Switch.tsx +96 -0
  299. package/registry/components/Switch/Switch.types.ts +19 -0
  300. package/registry/components/Switch/SwitchField.module.css +69 -0
  301. package/registry/components/Switch/SwitchField.tsx +49 -0
  302. package/registry/components/Switch/index.ts +8 -0
  303. package/registry/components/Tab/Tab.module.css +20 -0
  304. package/registry/components/Tab/Tab.tsx +35 -0
  305. package/registry/components/Tab/Tab.types.ts +21 -0
  306. package/registry/components/Tab/TabAdd.module.css +36 -0
  307. package/registry/components/Tab/TabAdd.tsx +41 -0
  308. package/registry/components/Tab/TabContext.ts +19 -0
  309. package/registry/components/Tab/TabItem.module.css +145 -0
  310. package/registry/components/Tab/TabItem.tsx +87 -0
  311. package/registry/components/Tab/index.ts +9 -0
  312. package/registry/components/Table/Table.module.css +33 -0
  313. package/registry/components/Table/Table.tsx +74 -0
  314. package/registry/components/Table/Table.types.ts +64 -0
  315. package/registry/components/Table/TableBody.tsx +23 -0
  316. package/registry/components/Table/TableCell.module.css +21 -0
  317. package/registry/components/Table/TableCell.tsx +20 -0
  318. package/registry/components/Table/TableContext.ts +22 -0
  319. package/registry/components/Table/TableFooter.module.css +27 -0
  320. package/registry/components/Table/TableFooter.tsx +20 -0
  321. package/registry/components/Table/TableHeader.module.css +3 -0
  322. package/registry/components/Table/TableHeader.tsx +17 -0
  323. package/registry/components/Table/TableHeaderCell.module.css +55 -0
  324. package/registry/components/Table/TableHeaderCell.tsx +98 -0
  325. package/registry/components/Table/TableRow.module.css +53 -0
  326. package/registry/components/Table/TableRow.tsx +31 -0
  327. package/registry/components/Table/TableToolbar.module.css +7 -0
  328. package/registry/components/Table/TableToolbar.tsx +16 -0
  329. package/registry/components/Table/index.ts +22 -0
  330. package/registry/components/Tag/Tag.module.css +46 -0
  331. package/registry/components/Tag/Tag.tsx +38 -0
  332. package/registry/components/Tag/Tag.types.ts +37 -0
  333. package/registry/components/Tag/TagBrand.module.css +42 -0
  334. package/registry/components/Tag/TagBrand.tsx +38 -0
  335. package/registry/components/Tag/TagStatus.module.css +43 -0
  336. package/registry/components/Tag/TagStatus.tsx +119 -0
  337. package/registry/components/Tag/index.ts +15 -0
  338. package/registry/components/Tooltip/Tooltip.module.css +208 -0
  339. package/registry/components/Tooltip/Tooltip.tsx +81 -0
  340. package/registry/components/Tooltip/Tooltip.types.ts +27 -0
  341. package/registry/components/Tooltip/index.ts +7 -0
  342. package/registry/components/TreeviewList/TreeviewItem.module.css +89 -0
  343. package/registry/components/TreeviewList/TreeviewItem.tsx +142 -0
  344. package/registry/components/TreeviewList/TreeviewList.module.css +3 -0
  345. package/registry/components/TreeviewList/TreeviewList.tsx +19 -0
  346. package/registry/components/TreeviewList/TreeviewList.types.ts +18 -0
  347. package/registry/components/TreeviewList/TreeviewListContext.ts +13 -0
  348. package/registry/components/TreeviewList/index.ts +6 -0
  349. package/registry/components/VerificationCode/VerificationCode.module.css +49 -0
  350. package/registry/components/VerificationCode/VerificationCode.tsx +147 -0
  351. package/registry/components/VerificationCode/VerificationCode.types.ts +21 -0
  352. package/registry/components/VerificationCode/index.ts +2 -0
  353. package/registry/registry.json +746 -0
@@ -0,0 +1,124 @@
1
+ .item {
2
+ border-bottom: 1px solid var(--st-color-border);
3
+ }
4
+
5
+ /* ─── Trigger ─── */
6
+
7
+ .trigger {
8
+ display: flex;
9
+ align-items: center;
10
+ width: 100%;
11
+ padding: var(--st-space-3) var(--st-space-4);
12
+ background: transparent;
13
+ border: none;
14
+ cursor: pointer;
15
+ gap: var(--st-space-3);
16
+ text-align: left;
17
+ color: var(--st-color-foreground);
18
+ font-family: var(--st-font-family);
19
+ transition: background-color var(--st-transition-fast);
20
+ }
21
+
22
+ .trigger:hover:not(:disabled) {
23
+ background-color: var(--st-color-neutral-100);
24
+ }
25
+
26
+ .trigger:focus-visible {
27
+ outline: 2px solid var(--st-color-primary);
28
+ outline-offset: -2px;
29
+ }
30
+
31
+ .trigger:disabled {
32
+ cursor: not-allowed;
33
+ opacity: 0.5;
34
+ }
35
+
36
+ /* Accordion variant disabled: dark filled background */
37
+ .trigger.accordion:disabled {
38
+ background-color: var(--st-color-neutral-800);
39
+ color: var(--st-color-neutral-50);
40
+ opacity: 1;
41
+ }
42
+
43
+ /* ─── Icon ─── */
44
+
45
+ .icon {
46
+ flex-shrink: 0;
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ color: var(--st-color-muted);
51
+ }
52
+
53
+ .trigger.accordion:disabled .icon {
54
+ color: var(--st-color-neutral-300);
55
+ }
56
+
57
+ /* ─── Content ─── */
58
+
59
+ .content {
60
+ flex: 1;
61
+ display: flex;
62
+ flex-direction: column;
63
+ min-width: 0;
64
+ gap: 2px;
65
+ }
66
+
67
+ .title {
68
+ font-size: var(--st-font-size-sm);
69
+ font-weight: var(--st-font-weight-semibold);
70
+ line-height: var(--st-line-height-tight);
71
+ }
72
+
73
+ .description {
74
+ font-size: var(--st-font-size-xs);
75
+ color: var(--st-color-muted);
76
+ line-height: var(--st-line-height-normal);
77
+ }
78
+
79
+ .trigger.accordion:disabled .description {
80
+ color: var(--st-color-neutral-400);
81
+ }
82
+
83
+ /* ─── Indicator ─── */
84
+
85
+ .indicator {
86
+ flex-shrink: 0;
87
+ display: flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ transition: transform var(--st-transition-base);
91
+ }
92
+
93
+ .indicatorOpen {
94
+ transform: rotate(180deg);
95
+ }
96
+
97
+ /* ─── Panel ─── */
98
+
99
+ .panel {
100
+ display: grid;
101
+ grid-template-rows: 0fr;
102
+ transition: grid-template-rows var(--st-transition-slow);
103
+ }
104
+
105
+ .panelOpen {
106
+ grid-template-rows: 1fr;
107
+ }
108
+
109
+ .panelContent {
110
+ overflow: hidden;
111
+ }
112
+
113
+ .panelInner {
114
+ padding: var(--st-space-1) var(--st-space-4) var(--st-space-4)
115
+ var(--st-space-12);
116
+ font-size: var(--st-font-size-sm);
117
+ color: var(--st-color-muted);
118
+ line-height: var(--st-line-height-relaxed);
119
+ }
120
+
121
+ /* Showmore variant: less left padding since there's no icon column */
122
+ .showmore ~ .panel .panelInner {
123
+ padding-left: var(--st-space-8);
124
+ }
@@ -0,0 +1,148 @@
1
+ import { forwardRef } from 'react';
2
+ import { cn } from '../../utils/cn';
3
+ import { useAccordion } from './AccordionContext';
4
+ import type { AccordionItemProps } from './AccordionItem.types';
5
+ import styles from './AccordionItem.module.css';
6
+
7
+ function ChevronIcon() {
8
+ return (
9
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
10
+ <path
11
+ d="M4 6L8 10L12 6"
12
+ stroke="currentColor"
13
+ strokeWidth="1.5"
14
+ strokeLinecap="round"
15
+ strokeLinejoin="round"
16
+ />
17
+ </svg>
18
+ );
19
+ }
20
+
21
+ function PlusIcon() {
22
+ return (
23
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
24
+ <path
25
+ d="M8 3V13M3 8H13"
26
+ stroke="currentColor"
27
+ strokeWidth="1.5"
28
+ strokeLinecap="round"
29
+ />
30
+ </svg>
31
+ );
32
+ }
33
+
34
+ function MinusIcon() {
35
+ return (
36
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
37
+ <path
38
+ d="M3 8H13"
39
+ stroke="currentColor"
40
+ strokeWidth="1.5"
41
+ strokeLinecap="round"
42
+ />
43
+ </svg>
44
+ );
45
+ }
46
+
47
+ function TriangleIcon() {
48
+ return (
49
+ <svg width="10" height="10" viewBox="0 0 10 10" fill="currentColor">
50
+ <path d="M1.5 3L5 7L8.5 3H1.5Z" />
51
+ </svg>
52
+ );
53
+ }
54
+
55
+ export const AccordionItem = forwardRef<HTMLDivElement, AccordionItemProps>(
56
+ (
57
+ {
58
+ value,
59
+ title,
60
+ description,
61
+ icon,
62
+ disabled = false,
63
+ className,
64
+ children,
65
+ ...rest
66
+ },
67
+ ref
68
+ ) => {
69
+ const { variant, openItems, toggle } = useAccordion();
70
+ const isOpen = openItems.includes(value);
71
+ const triggerId = `st-accordion-trigger-${value}`;
72
+ const panelId = `st-accordion-panel-${value}`;
73
+
74
+ return (
75
+ <div
76
+ ref={ref}
77
+ className={cn(styles.item, className)}
78
+ {...rest}
79
+ >
80
+ <button
81
+ id={triggerId}
82
+ type="button"
83
+ aria-expanded={isOpen}
84
+ aria-controls={panelId}
85
+ disabled={disabled}
86
+ className={cn(
87
+ styles.trigger,
88
+ styles[variant],
89
+ isOpen && styles.open
90
+ )}
91
+ onClick={() => toggle(value)}
92
+ >
93
+ {variant === 'showmore' && (
94
+ <span
95
+ className={cn(
96
+ styles.indicator,
97
+ isOpen && styles.indicatorOpen
98
+ )}
99
+ >
100
+ <TriangleIcon />
101
+ </span>
102
+ )}
103
+
104
+ {icon && variant !== 'showmore' && (
105
+ <span className={styles.icon}>{icon}</span>
106
+ )}
107
+
108
+ <span className={styles.content}>
109
+ <span className={styles.title}>{title}</span>
110
+ {description && variant !== 'showmore' && (
111
+ <span className={styles.description}>{description}</span>
112
+ )}
113
+ </span>
114
+
115
+ {variant === 'collapsible' && (
116
+ <span
117
+ className={cn(
118
+ styles.indicator,
119
+ isOpen && styles.indicatorOpen
120
+ )}
121
+ >
122
+ <ChevronIcon />
123
+ </span>
124
+ )}
125
+
126
+ {variant === 'accordion' && (
127
+ <span className={styles.indicator}>
128
+ {isOpen ? <MinusIcon /> : <PlusIcon />}
129
+ </span>
130
+ )}
131
+ </button>
132
+
133
+ <div
134
+ id={panelId}
135
+ role="region"
136
+ aria-labelledby={triggerId}
137
+ className={cn(styles.panel, isOpen && styles.panelOpen)}
138
+ >
139
+ <div className={styles.panelContent}>
140
+ <div className={styles.panelInner}>{children}</div>
141
+ </div>
142
+ </div>
143
+ </div>
144
+ );
145
+ }
146
+ );
147
+
148
+ AccordionItem.displayName = 'AccordionItem';
@@ -0,0 +1,14 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+
3
+ export interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
4
+ /** Unique identifier for this item within the accordion */
5
+ value: string;
6
+ /** Trigger title text */
7
+ title: string;
8
+ /** Optional description below the title (collapsible/accordion variants) */
9
+ description?: string;
10
+ /** Optional icon rendered before the title (collapsible/accordion variants) */
11
+ icon?: ReactNode;
12
+ /** Whether the item is disabled */
13
+ disabled?: boolean;
14
+ }
@@ -0,0 +1,8 @@
1
+ export { Accordion } from './Accordion';
2
+ export { AccordionItem } from './AccordionItem';
3
+ export type {
4
+ AccordionProps,
5
+ AccordionType,
6
+ AccordionVariant,
7
+ } from './Accordion.types';
8
+ export type { AccordionItemProps } from './AccordionItem.types';
@@ -0,0 +1,18 @@
1
+ .root {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: var(--st-space-2);
5
+ flex-wrap: wrap;
6
+ }
7
+
8
+ .start {
9
+ justify-content: flex-start;
10
+ }
11
+
12
+ .center {
13
+ justify-content: center;
14
+ }
15
+
16
+ .end {
17
+ justify-content: flex-end;
18
+ }
@@ -0,0 +1,21 @@
1
+ import { forwardRef } from 'react';
2
+ import { cn } from '../../utils/cn';
3
+ import type { ActionBarProps } from './ActionBar.types';
4
+ import styles from './ActionBar.module.css';
5
+
6
+ export const ActionBar = forwardRef<HTMLDivElement, ActionBarProps>(
7
+ ({ align = 'start', className, children, ...rest }, ref) => {
8
+ return (
9
+ <div
10
+ ref={ref}
11
+ role="toolbar"
12
+ className={cn(styles.root, styles[align], className)}
13
+ {...rest}
14
+ >
15
+ {children}
16
+ </div>
17
+ );
18
+ }
19
+ );
20
+
21
+ ActionBar.displayName = 'ActionBar';
@@ -0,0 +1,8 @@
1
+ import type { HTMLAttributes } from 'react';
2
+
3
+ export type ActionBarAlign = 'start' | 'center' | 'end';
4
+
5
+ export interface ActionBarProps extends HTMLAttributes<HTMLDivElement> {
6
+ /** Horizontal alignment of items */
7
+ align?: ActionBarAlign;
8
+ }
@@ -0,0 +1,31 @@
1
+ .root {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: var(--st-space-1);
5
+ color: var(--st-color-primary);
6
+ font-family: var(--st-font-family);
7
+ font-size: var(--st-font-size-sm);
8
+ font-weight: var(--st-font-weight-semibold);
9
+ line-height: var(--st-line-height-tight);
10
+ text-decoration: none;
11
+ cursor: pointer;
12
+ padding: var(--st-space-1) var(--st-space-2);
13
+ border-radius: var(--st-radius-sm);
14
+ transition: color var(--st-transition-fast),
15
+ background-color var(--st-transition-fast);
16
+ }
17
+
18
+ .root:hover {
19
+ color: var(--st-color-primary-hover);
20
+ text-decoration: underline;
21
+ }
22
+
23
+ .root:focus-visible {
24
+ outline: 2px solid var(--st-color-primary);
25
+ outline-offset: 2px;
26
+ }
27
+
28
+ .externalIcon {
29
+ display: inline-flex;
30
+ align-items: center;
31
+ }
@@ -0,0 +1,55 @@
1
+ import { forwardRef } from 'react';
2
+ import { cn } from '../../utils/cn';
3
+ import type { ActionBarLinkProps } from './ActionBarLink.types';
4
+ import styles from './ActionBarLink.module.css';
5
+
6
+ function ExternalIcon() {
7
+ return (
8
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none">
9
+ <path
10
+ d="M10.5 7.58V11.08C10.5 11.39 10.38 11.69 10.16 11.91C9.94 12.13 9.64 12.25 9.33 12.25H2.92C2.61 12.25 2.31 12.13 2.09 11.91C1.87 11.69 1.75 11.39 1.75 11.08V4.67C1.75 4.36 1.87 4.06 2.09 3.84C2.31 3.62 2.61 3.5 2.92 3.5H6.42"
11
+ stroke="currentColor"
12
+ strokeWidth="1.2"
13
+ strokeLinecap="round"
14
+ strokeLinejoin="round"
15
+ />
16
+ <path
17
+ d="M8.75 1.75H12.25V5.25"
18
+ stroke="currentColor"
19
+ strokeWidth="1.2"
20
+ strokeLinecap="round"
21
+ strokeLinejoin="round"
22
+ />
23
+ <path
24
+ d="M5.83 8.17L12.25 1.75"
25
+ stroke="currentColor"
26
+ strokeWidth="1.2"
27
+ strokeLinecap="round"
28
+ strokeLinejoin="round"
29
+ />
30
+ </svg>
31
+ );
32
+ }
33
+
34
+ export const ActionBarLink = forwardRef<
35
+ HTMLAnchorElement,
36
+ ActionBarLinkProps
37
+ >(({ external = false, className, children, ...rest }, ref) => {
38
+ return (
39
+ <a
40
+ ref={ref}
41
+ className={cn(styles.root, className)}
42
+ {...(external ? { target: '_blank', rel: 'noopener noreferrer' } : {})}
43
+ {...rest}
44
+ >
45
+ {children}
46
+ {external && (
47
+ <span className={styles.externalIcon}>
48
+ <ExternalIcon />
49
+ </span>
50
+ )}
51
+ </a>
52
+ );
53
+ });
54
+
55
+ ActionBarLink.displayName = 'ActionBarLink';
@@ -0,0 +1,7 @@
1
+ import type { AnchorHTMLAttributes } from 'react';
2
+
3
+ export interface ActionBarLinkProps
4
+ extends AnchorHTMLAttributes<HTMLAnchorElement> {
5
+ /** Show external link icon */
6
+ external?: boolean;
7
+ }
@@ -0,0 +1,4 @@
1
+ export { ActionBar } from './ActionBar';
2
+ export { ActionBarLink } from './ActionBarLink';
3
+ export type { ActionBarProps, ActionBarAlign } from './ActionBar.types';
4
+ export type { ActionBarLinkProps } from './ActionBarLink.types';
@@ -0,0 +1,172 @@
1
+ .root {
2
+ display: flex;
3
+ align-items: flex-start;
4
+ gap: var(--st-space-3);
5
+ padding: var(--st-space-4);
6
+ border-radius: var(--st-radius-lg);
7
+ font-family: var(--st-font-family);
8
+ position: relative;
9
+ }
10
+
11
+ /* ─── Body ─── */
12
+
13
+ .body {
14
+ flex: 1;
15
+ min-width: 0;
16
+ display: flex;
17
+ gap: var(--st-space-3);
18
+ }
19
+
20
+ .inline .body {
21
+ flex-direction: row;
22
+ align-items: center;
23
+ }
24
+
25
+ .stacked .body {
26
+ flex-direction: column;
27
+ }
28
+
29
+ /* ─── Content ─── */
30
+
31
+ .content {
32
+ flex: 1;
33
+ min-width: 0;
34
+ display: flex;
35
+ flex-direction: column;
36
+ gap: 2px;
37
+ }
38
+
39
+ .title {
40
+ font-size: var(--st-font-size-sm);
41
+ font-weight: var(--st-font-weight-semibold);
42
+ line-height: var(--st-line-height-tight);
43
+ margin: 0;
44
+ }
45
+
46
+ .description {
47
+ font-size: var(--st-font-size-sm);
48
+ line-height: var(--st-line-height-normal);
49
+ margin: 0;
50
+ opacity: 0.85;
51
+ }
52
+
53
+ /* ─── Status icon ─── */
54
+
55
+ .statusIcon {
56
+ flex-shrink: 0;
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ margin-top: 1px;
61
+ }
62
+
63
+ /* ─── Actions ─── */
64
+
65
+ .actions {
66
+ display: flex;
67
+ align-items: center;
68
+ gap: var(--st-space-2);
69
+ flex-shrink: 0;
70
+ }
71
+
72
+ /* ─── Close ─── */
73
+
74
+ .close {
75
+ flex-shrink: 0;
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: center;
79
+ width: 24px;
80
+ height: 24px;
81
+ padding: 0;
82
+ border: none;
83
+ border-radius: var(--st-radius-sm);
84
+ background: transparent;
85
+ cursor: pointer;
86
+ opacity: 0.7;
87
+ transition: opacity var(--st-transition-fast);
88
+ color: inherit;
89
+ }
90
+
91
+ .close:hover {
92
+ opacity: 1;
93
+ }
94
+
95
+ .close:focus-visible {
96
+ outline: 2px solid currentColor;
97
+ outline-offset: 2px;
98
+ }
99
+
100
+ /* ═══════════════════════════════════════
101
+ Solid variant
102
+ ═══════════════════════════════════════ */
103
+
104
+ .solid {
105
+ color: #ffffff;
106
+ }
107
+
108
+ .solid.info {
109
+ background-color: var(--st-color-info);
110
+ }
111
+
112
+ .solid.success {
113
+ background-color: var(--st-color-success);
114
+ }
115
+
116
+ .solid.warning {
117
+ background-color: var(--st-color-warning);
118
+ }
119
+
120
+ .solid.error {
121
+ background-color: var(--st-color-error);
122
+ }
123
+
124
+ /* ═══════════════════════════════════════
125
+ Alpha variant
126
+ ═══════════════════════════════════════ */
127
+
128
+ .alpha {
129
+ color: var(--st-color-foreground);
130
+ border-left: 3px solid transparent;
131
+ }
132
+
133
+ .alpha .description {
134
+ color: var(--st-color-muted);
135
+ opacity: 1;
136
+ }
137
+
138
+ .alpha.info {
139
+ background-color: var(--st-color-info-subtle);
140
+ border-left-color: var(--st-color-info);
141
+ }
142
+
143
+ .alpha.info .statusIcon {
144
+ color: var(--st-color-info);
145
+ }
146
+
147
+ .alpha.success {
148
+ background-color: var(--st-color-success-subtle);
149
+ border-left-color: var(--st-color-success);
150
+ }
151
+
152
+ .alpha.success .statusIcon {
153
+ color: var(--st-color-success);
154
+ }
155
+
156
+ .alpha.warning {
157
+ background-color: var(--st-color-warning-subtle);
158
+ border-left-color: var(--st-color-warning);
159
+ }
160
+
161
+ .alpha.warning .statusIcon {
162
+ color: var(--st-color-warning);
163
+ }
164
+
165
+ .alpha.error {
166
+ background-color: var(--st-color-error-subtle);
167
+ border-left-color: var(--st-color-error);
168
+ }
169
+
170
+ .alpha.error .statusIcon {
171
+ color: var(--st-color-error);
172
+ }