@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,32 @@
1
+ import type { InputHTMLAttributes, ReactNode } from 'react';
2
+
3
+ export type InputTextSize = 'lg' | 'md';
4
+
5
+ export type InputTextFeedbackStatus = 'success' | 'error' | 'warning' | 'ai';
6
+
7
+ export interface InputTextFeedback {
8
+ status: InputTextFeedbackStatus;
9
+ message: string;
10
+ }
11
+
12
+ export interface InputTextProps
13
+ extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
14
+ /** Input height: lg=48px, md=40px. */
15
+ size?: InputTextSize;
16
+ /** Label text above input. */
17
+ label?: string;
18
+ /** Description text below label, above input. */
19
+ description?: string;
20
+ /** Helper text below input. Coexists with feedback. */
21
+ helperText?: string;
22
+ /** Validation feedback — affects border + text color. */
23
+ feedback?: InputTextFeedback;
24
+ /** Shows X button when input has value. */
25
+ clearable?: boolean;
26
+ /** Clear button callback. */
27
+ onClear?: () => void;
28
+ /** Left slot inside input box. */
29
+ leftElement?: ReactNode;
30
+ /** Right slot inside input box. */
31
+ rightElement?: ReactNode;
32
+ }
@@ -0,0 +1,7 @@
1
+ export { InputText } from './InputText';
2
+ export type {
3
+ InputTextProps,
4
+ InputTextSize,
5
+ InputTextFeedback,
6
+ InputTextFeedbackStatus,
7
+ } from './InputText.types';
@@ -0,0 +1,141 @@
1
+ /* ─── Root ─── */
2
+ .root {
3
+ display: inline-flex;
4
+ flex-direction: column;
5
+ gap: var(--st-space-2);
6
+ font-family: var(--st-font-family);
7
+ }
8
+
9
+ /* ─── Label ─── */
10
+ .label {
11
+ font-size: var(--st-font-size-sm);
12
+ font-weight: var(--st-font-weight-semibold);
13
+ line-height: var(--st-line-height-tight);
14
+ color: var(--st-color-foreground);
15
+ }
16
+
17
+ .required {
18
+ color: var(--st-color-error);
19
+ margin-left: var(--st-space-1);
20
+ }
21
+
22
+ /* ─── Textarea box ─── */
23
+ .textareaBox {
24
+ display: flex;
25
+ flex-direction: column;
26
+ border: 1px solid var(--st-color-border);
27
+ border-radius: var(--st-radius-lg);
28
+ background: var(--st-color-surface);
29
+ padding: 0;
30
+ transition: border-color var(--st-transition-fast),
31
+ box-shadow var(--st-transition-fast);
32
+ }
33
+
34
+ .textareaBox:hover:not(.disabled):not(.error):not(.warning):not(.success):not(.ai):not(.focused) {
35
+ border-color: var(--st-color-border-strong);
36
+ }
37
+
38
+ .textareaBox.focused:not(.disabled):not(.error):not(.warning):not(.success):not(.ai) {
39
+ border-color: var(--st-color-success);
40
+ box-shadow: 0 0 0 2px var(--st-color-success);
41
+ }
42
+
43
+ .textareaBox.error {
44
+ border-color: var(--st-color-error);
45
+ box-shadow: 0 0 0 2px var(--st-color-error);
46
+ }
47
+
48
+ .textareaBox.warning {
49
+ border-color: var(--st-color-warning);
50
+ box-shadow: 0 0 0 2px var(--st-color-warning);
51
+ }
52
+
53
+ .textareaBox.success {
54
+ border-color: var(--st-color-success);
55
+ box-shadow: 0 0 0 2px var(--st-color-success);
56
+ }
57
+
58
+ .textareaBox.ai {
59
+ border-color: var(--st-color-info);
60
+ box-shadow: 0 0 0 2px var(--st-color-info);
61
+ }
62
+
63
+ .textareaBox.disabled {
64
+ opacity: 0.5;
65
+ pointer-events: none;
66
+ }
67
+
68
+ /* ─── Toolbar ─── */
69
+ .toolbar {
70
+ display: flex;
71
+ align-items: center;
72
+ gap: var(--st-space-1);
73
+ padding: var(--st-space-2) var(--st-space-3);
74
+ border-bottom: 1px solid var(--st-color-border);
75
+ }
76
+
77
+ /* ─── Textarea ─── */
78
+ .textarea {
79
+ flex: 1;
80
+ min-width: 0;
81
+ border: none;
82
+ outline: none;
83
+ background: transparent;
84
+ font-family: inherit;
85
+ font-size: var(--st-font-size-sm);
86
+ line-height: var(--st-line-height-normal);
87
+ color: var(--st-color-foreground);
88
+ padding: var(--st-space-2) var(--st-space-3);
89
+ resize: vertical;
90
+ min-height: 80px;
91
+ }
92
+
93
+ .textarea::placeholder {
94
+ color: var(--st-color-muted);
95
+ }
96
+
97
+ .textarea_error {
98
+ color: var(--st-color-error);
99
+ }
100
+
101
+ .textarea_ai {
102
+ color: var(--st-color-info);
103
+ }
104
+
105
+ /* ─── Footer row ─── */
106
+ .footerRow {
107
+ display: flex;
108
+ justify-content: flex-end;
109
+ }
110
+
111
+ /* ─── Counter ─── */
112
+ .counter {
113
+ font-size: var(--st-font-size-xs);
114
+ line-height: var(--st-line-height-normal);
115
+ color: var(--st-color-muted);
116
+ }
117
+
118
+ /* ─── Feedback text ─── */
119
+ .feedbackText {
120
+ display: inline-flex;
121
+ align-items: center;
122
+ gap: var(--st-space-1);
123
+ font-size: var(--st-font-size-xs);
124
+ line-height: var(--st-line-height-normal);
125
+ }
126
+
127
+ .feedback_success {
128
+ color: var(--st-color-success);
129
+ }
130
+
131
+ .feedback_error {
132
+ color: var(--st-color-error);
133
+ }
134
+
135
+ .feedback_warning {
136
+ color: var(--st-color-warning);
137
+ }
138
+
139
+ .feedback_ai {
140
+ color: var(--st-color-info);
141
+ }
@@ -0,0 +1,170 @@
1
+ import { forwardRef, useState } from 'react';
2
+ import { cn } from '../../utils/cn';
3
+ import type { InputTextAreaProps } from './InputTextArea.types';
4
+ import styles from './InputTextArea.module.css';
5
+
6
+ function FeedbackDot() {
7
+ return (
8
+ <svg
9
+ width="8"
10
+ height="8"
11
+ viewBox="0 0 8 8"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ >
15
+ <circle cx="4" cy="4" r="4" fill="currentColor" />
16
+ </svg>
17
+ );
18
+ }
19
+
20
+ function FeedbackTriangle() {
21
+ return (
22
+ <svg
23
+ width="8"
24
+ height="8"
25
+ viewBox="0 0 8 8"
26
+ fill="none"
27
+ aria-hidden="true"
28
+ >
29
+ <path d="M4 0L8 8H0L4 0Z" fill="currentColor" />
30
+ </svg>
31
+ );
32
+ }
33
+
34
+ function FeedbackDiamond() {
35
+ return (
36
+ <svg
37
+ width="8"
38
+ height="8"
39
+ viewBox="0 0 8 8"
40
+ fill="none"
41
+ aria-hidden="true"
42
+ >
43
+ <path d="M4 0L8 4L4 8L0 4L4 0Z" fill="currentColor" />
44
+ </svg>
45
+ );
46
+ }
47
+
48
+ const feedbackIcons = {
49
+ success: FeedbackDot,
50
+ error: FeedbackDot,
51
+ warning: FeedbackTriangle,
52
+ ai: FeedbackDiamond,
53
+ } as const;
54
+
55
+ export const InputTextArea = forwardRef<
56
+ HTMLTextAreaElement,
57
+ InputTextAreaProps
58
+ >(
59
+ (
60
+ {
61
+ label,
62
+ feedback,
63
+ toolbar,
64
+ disabled,
65
+ required,
66
+ maxLength,
67
+ value,
68
+ defaultValue,
69
+ onChange,
70
+ onFocus,
71
+ onBlur,
72
+ className,
73
+ ...rest
74
+ },
75
+ ref,
76
+ ) => {
77
+ const [focused, setFocused] = useState(false);
78
+ const [internalValue, setInternalValue] = useState(
79
+ () => (defaultValue as string) ?? '',
80
+ );
81
+
82
+ const isControlled = value !== undefined;
83
+ const currentValue = isControlled ? String(value) : internalValue;
84
+
85
+ const handleChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
86
+ if (!isControlled) setInternalValue(e.target.value);
87
+ onChange?.(e);
88
+ };
89
+
90
+ const handleFocus = (e: React.FocusEvent<HTMLTextAreaElement>) => {
91
+ setFocused(true);
92
+ onFocus?.(e);
93
+ };
94
+
95
+ const handleBlur = (e: React.FocusEvent<HTMLTextAreaElement>) => {
96
+ setFocused(false);
97
+ onBlur?.(e);
98
+ };
99
+
100
+ const feedbackStatus = feedback?.status;
101
+
102
+ const textareaBoxCls = cn(
103
+ styles.textareaBox,
104
+ focused && styles.focused,
105
+ feedbackStatus && styles[feedbackStatus],
106
+ disabled && styles.disabled,
107
+ );
108
+
109
+ const textareaCls = cn(
110
+ styles.textarea,
111
+ feedbackStatus === 'error' && styles.textarea_error,
112
+ feedbackStatus === 'ai' && styles.textarea_ai,
113
+ );
114
+
115
+ const FeedbackIcon = feedbackStatus
116
+ ? feedbackIcons[feedbackStatus]
117
+ : null;
118
+
119
+ return (
120
+ <div className={cn(styles.root, className)}>
121
+ {label && (
122
+ <span className={styles.label}>
123
+ {label}
124
+ {required && <span className={styles.required}>*</span>}
125
+ </span>
126
+ )}
127
+
128
+ <div className={textareaBoxCls}>
129
+ {toolbar && <div className={styles.toolbar}>{toolbar}</div>}
130
+
131
+ <textarea
132
+ ref={ref}
133
+ className={textareaCls}
134
+ value={isControlled ? currentValue : undefined}
135
+ defaultValue={isControlled ? undefined : defaultValue}
136
+ onChange={handleChange}
137
+ onFocus={handleFocus}
138
+ onBlur={handleBlur}
139
+ disabled={disabled}
140
+ required={required}
141
+ maxLength={maxLength}
142
+ {...rest}
143
+ />
144
+ </div>
145
+
146
+ {maxLength != null && (
147
+ <div className={styles.footerRow}>
148
+ <span className={styles.counter}>
149
+ {currentValue.length}/{maxLength}
150
+ </span>
151
+ </div>
152
+ )}
153
+
154
+ {feedback && (
155
+ <span
156
+ className={cn(
157
+ styles.feedbackText,
158
+ styles[`feedback_${feedbackStatus}`],
159
+ )}
160
+ >
161
+ {FeedbackIcon && <FeedbackIcon />}
162
+ {feedback.message}
163
+ </span>
164
+ )}
165
+ </div>
166
+ );
167
+ },
168
+ );
169
+
170
+ InputTextArea.displayName = 'InputTextArea';
@@ -0,0 +1,18 @@
1
+ import type { TextareaHTMLAttributes, ReactNode } from 'react';
2
+
3
+ export type InputTextAreaFeedbackStatus = 'success' | 'error' | 'warning' | 'ai';
4
+
5
+ export interface InputTextAreaFeedback {
6
+ status: InputTextAreaFeedbackStatus;
7
+ message: string;
8
+ }
9
+
10
+ export interface InputTextAreaProps
11
+ extends TextareaHTMLAttributes<HTMLTextAreaElement> {
12
+ /** Label text above textarea. */
13
+ label?: string;
14
+ /** Validation feedback — affects border + text color. */
15
+ feedback?: InputTextAreaFeedback;
16
+ /** Slot rendered inside box above textarea (e.g. formatting toolbar). */
17
+ toolbar?: ReactNode;
18
+ }
@@ -0,0 +1,6 @@
1
+ export { InputTextArea } from './InputTextArea';
2
+ export type {
3
+ InputTextAreaProps,
4
+ InputTextAreaFeedback,
5
+ InputTextAreaFeedbackStatus,
6
+ } from './InputTextArea.types';
@@ -0,0 +1,265 @@
1
+ /* ═══════════════════════════════════════
2
+ NavbarUser — Desktop / Tablet (≥768px)
3
+ ═══════════════════════════════════════ */
4
+
5
+ .root {
6
+ display: flex;
7
+ align-items: center;
8
+ gap: var(--st-space-3);
9
+ padding: var(--st-space-3) var(--st-space-4);
10
+ font-family: var(--st-font-family);
11
+ background-color: var(--st-color-background);
12
+ min-height: 56px;
13
+ }
14
+
15
+ /* ─── Mobile lead (hidden on desktop) ─── */
16
+
17
+ .mobileLead {
18
+ display: none;
19
+ align-items: center;
20
+ gap: var(--st-space-2);
21
+ flex-shrink: 0;
22
+ }
23
+
24
+ /* ─── Back button ─── */
25
+
26
+ .backBtn {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ width: 32px;
31
+ height: 32px;
32
+ padding: 0;
33
+ border: none;
34
+ border-radius: var(--st-radius-md);
35
+ background: transparent;
36
+ color: var(--st-color-foreground);
37
+ cursor: pointer;
38
+ flex-shrink: 0;
39
+ transition: background-color var(--st-transition-fast);
40
+ }
41
+
42
+ .backBtn:hover {
43
+ background-color: var(--st-color-neutral-100);
44
+ }
45
+
46
+ .backBtn:focus-visible {
47
+ outline: 2px solid var(--st-color-info);
48
+ outline-offset: 2px;
49
+ }
50
+
51
+ /* ─── Title group ─── */
52
+
53
+ .titleGroup {
54
+ flex: 1;
55
+ min-width: 0;
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: 2px;
59
+ }
60
+
61
+ .title {
62
+ font-size: var(--st-font-size-lg);
63
+ font-weight: var(--st-font-weight-semibold);
64
+ line-height: var(--st-line-height-tight);
65
+ color: var(--st-color-foreground);
66
+ overflow: hidden;
67
+ text-overflow: ellipsis;
68
+ white-space: nowrap;
69
+ }
70
+
71
+ .subtitle {
72
+ font-size: var(--st-font-size-sm);
73
+ line-height: var(--st-line-height-normal);
74
+ color: var(--st-color-muted);
75
+ overflow: hidden;
76
+ text-overflow: ellipsis;
77
+ white-space: nowrap;
78
+ }
79
+
80
+ /* ─── Actions slot ─── */
81
+
82
+ .actions {
83
+ display: flex;
84
+ align-items: center;
85
+ gap: var(--st-space-1);
86
+ flex-shrink: 0;
87
+ }
88
+
89
+ /* ─── User section ─── */
90
+
91
+ .userSection {
92
+ display: flex;
93
+ align-items: center;
94
+ gap: var(--st-space-2);
95
+ padding: var(--st-space-1) var(--st-space-2);
96
+ border: none;
97
+ border-radius: var(--st-radius-md);
98
+ background: transparent;
99
+ cursor: pointer;
100
+ flex-shrink: 0;
101
+ color: var(--st-color-foreground);
102
+ font-family: var(--st-font-family);
103
+ transition: background-color var(--st-transition-fast);
104
+ }
105
+
106
+ .userSection:hover {
107
+ background-color: var(--st-color-neutral-100);
108
+ }
109
+
110
+ .userSection:focus-visible {
111
+ outline: 2px solid var(--st-color-info);
112
+ outline-offset: 2px;
113
+ }
114
+
115
+ .userInfo {
116
+ display: flex;
117
+ flex-direction: column;
118
+ align-items: flex-start;
119
+ gap: 0;
120
+ min-width: 0;
121
+ }
122
+
123
+ .userName {
124
+ display: flex;
125
+ align-items: center;
126
+ gap: var(--st-space-1);
127
+ font-size: var(--st-font-size-sm);
128
+ font-weight: var(--st-font-weight-medium);
129
+ line-height: var(--st-line-height-tight);
130
+ white-space: nowrap;
131
+ }
132
+
133
+ .userHandle {
134
+ font-size: var(--st-font-size-xs);
135
+ line-height: var(--st-line-height-tight);
136
+ color: var(--st-color-muted);
137
+ white-space: nowrap;
138
+ }
139
+
140
+ .verifiedBadge {
141
+ flex-shrink: 0;
142
+ }
143
+
144
+ .userChevron {
145
+ flex-shrink: 0;
146
+ color: var(--st-color-muted);
147
+ }
148
+
149
+ /* ─── Close button (hidden on desktop) ─── */
150
+
151
+ .closeBtn {
152
+ display: none;
153
+ align-items: center;
154
+ justify-content: center;
155
+ width: 32px;
156
+ height: 32px;
157
+ padding: 0;
158
+ border: none;
159
+ border-radius: var(--st-radius-md);
160
+ background: transparent;
161
+ color: var(--st-color-foreground);
162
+ cursor: pointer;
163
+ flex-shrink: 0;
164
+ transition: background-color var(--st-transition-fast);
165
+ }
166
+
167
+ .closeBtn:hover {
168
+ background-color: var(--st-color-neutral-100);
169
+ }
170
+
171
+ .closeBtn:focus-visible {
172
+ outline: 2px solid var(--st-color-info);
173
+ outline-offset: 2px;
174
+ }
175
+
176
+ /* ─── Menu button ─── */
177
+
178
+ .menuBtn {
179
+ display: flex;
180
+ align-items: center;
181
+ justify-content: center;
182
+ width: 32px;
183
+ height: 32px;
184
+ padding: 0;
185
+ border: none;
186
+ border-radius: var(--st-radius-md);
187
+ background: transparent;
188
+ color: var(--st-color-foreground);
189
+ cursor: pointer;
190
+ transition: background-color var(--st-transition-fast);
191
+ }
192
+
193
+ .menuBtn:hover {
194
+ background-color: var(--st-color-neutral-100);
195
+ }
196
+
197
+ .menuBtn:focus-visible {
198
+ outline: 2px solid var(--st-color-info);
199
+ outline-offset: 2px;
200
+ }
201
+
202
+ /* ═══════════════════════════════════════
203
+ Mobile (< 768px)
204
+ ═══════════════════════════════════════ */
205
+
206
+ @media (max-width: 767px) {
207
+ .root {
208
+ flex-wrap: wrap;
209
+ padding: var(--st-space-2) var(--st-space-3);
210
+ }
211
+
212
+ .mobileLead {
213
+ display: flex;
214
+ }
215
+
216
+ .titleGroup {
217
+ flex-basis: 100%;
218
+ order: 10;
219
+ }
220
+
221
+ .title {
222
+ font-size: var(--st-font-size-md);
223
+ }
224
+
225
+ /* Avatar-only on mobile */
226
+ .userInfo {
227
+ display: none;
228
+ }
229
+
230
+ .userChevron {
231
+ display: none;
232
+ }
233
+
234
+ .userSection {
235
+ padding: var(--st-space-1);
236
+ }
237
+
238
+ /* ─── Level 2 mobile ─── */
239
+
240
+ .level2 .mobileLead {
241
+ display: none;
242
+ }
243
+
244
+ .level2 .actions {
245
+ display: none;
246
+ }
247
+
248
+ .level2 .userSection {
249
+ display: none;
250
+ }
251
+
252
+ .level2 .closeBtn {
253
+ display: flex;
254
+ }
255
+
256
+ .level2 .titleGroup {
257
+ flex-basis: auto;
258
+ flex: 1;
259
+ order: 0;
260
+ }
261
+
262
+ .level2 .subtitle {
263
+ display: none;
264
+ }
265
+ }