agentic-ds-kit 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 (345) hide show
  1. package/AGENTS.md +10 -0
  2. package/CLAUDE.md +1 -0
  3. package/LICENSE +21 -0
  4. package/README.md +38 -0
  5. package/contracts/accordion.json +38 -0
  6. package/contracts/alert.json +57 -0
  7. package/contracts/alertdialog.json +89 -0
  8. package/contracts/appheader.json +140 -0
  9. package/contracts/appnav.json +72 -0
  10. package/contracts/avatar.json +63 -0
  11. package/contracts/avatargroup.json +83 -0
  12. package/contracts/badge.json +92 -0
  13. package/contracts/barchart.json +55 -0
  14. package/contracts/breadcrumb.json +76 -0
  15. package/contracts/button.json +120 -0
  16. package/contracts/buttongroup.json +48 -0
  17. package/contracts/calendar.json +93 -0
  18. package/contracts/card.json +123 -0
  19. package/contracts/carousel.json +98 -0
  20. package/contracts/cell.json +203 -0
  21. package/contracts/chat.json +131 -0
  22. package/contracts/checkbox.json +101 -0
  23. package/contracts/collapsible.json +66 -0
  24. package/contracts/command.json +84 -0
  25. package/contracts/datatable.json +126 -0
  26. package/contracts/datepicker.json +102 -0
  27. package/contracts/drawer.json +93 -0
  28. package/contracts/dropdownmenu.json +190 -0
  29. package/contracts/empty.json +79 -0
  30. package/contracts/field.json +49 -0
  31. package/contracts/fieldset.json +29 -0
  32. package/contracts/headercell.json +107 -0
  33. package/contracts/index.json +478 -0
  34. package/contracts/input.json +119 -0
  35. package/contracts/inputotp.json +119 -0
  36. package/contracts/insightcard.json +130 -0
  37. package/contracts/linechart.json +51 -0
  38. package/contracts/loadinganimation.json +33 -0
  39. package/contracts/modal.json +100 -0
  40. package/contracts/modalcard.json +88 -0
  41. package/contracts/navigationmenu.json +65 -0
  42. package/contracts/numbertransition.json +33 -0
  43. package/contracts/pageheader.json +101 -0
  44. package/contracts/pagination.json +85 -0
  45. package/contracts/patterns/activity.json +30 -0
  46. package/contracts/patterns/assistant-workspace.json +16 -0
  47. package/contracts/patterns/dashboard.json +12 -0
  48. package/contracts/patterns/empty-first-run.json +15 -0
  49. package/contracts/patterns/inbox.json +32 -0
  50. package/contracts/patterns/invite-members.json +14 -0
  51. package/contracts/patterns/list-detail.json +13 -0
  52. package/contracts/patterns/settings-form.json +13 -0
  53. package/contracts/piechart.json +68 -0
  54. package/contracts/progress.json +124 -0
  55. package/contracts/progresssteps.json +91 -0
  56. package/contracts/radiogroup.json +132 -0
  57. package/contracts/scoreboard.json +46 -0
  58. package/contracts/scorecard.json +124 -0
  59. package/contracts/section.json +97 -0
  60. package/contracts/select.json +130 -0
  61. package/contracts/shimmertext.json +33 -0
  62. package/contracts/sidenav.json +133 -0
  63. package/contracts/slider.json +81 -0
  64. package/contracts/spinner.json +52 -0
  65. package/contracts/switch.json +94 -0
  66. package/contracts/table.json +92 -0
  67. package/contracts/tabs.json +90 -0
  68. package/contracts/textarea.json +54 -0
  69. package/contracts/thinkinganimation.json +32 -0
  70. package/contracts/timeline.json +49 -0
  71. package/contracts/toast.json +104 -0
  72. package/contracts/tooltip.json +66 -0
  73. package/lib/tokens.css +637 -0
  74. package/package.json +60 -0
  75. package/skills/prototype-from-kit/SKILL.md +29 -0
  76. package/src/index.ts +71 -0
  77. package/tokens/tokens.json +725 -0
  78. package/ui/Accordion/Accordion.module.css +68 -0
  79. package/ui/Accordion/Accordion.tsx +51 -0
  80. package/ui/Accordion/Accordion.types.ts +10 -0
  81. package/ui/Accordion/index.ts +2 -0
  82. package/ui/Alert/Alert.module.css +62 -0
  83. package/ui/Alert/Alert.tsx +27 -0
  84. package/ui/Alert/Alert.types.ts +7 -0
  85. package/ui/Alert/index.ts +2 -0
  86. package/ui/AlertDialog/AlertDialog.module.css +71 -0
  87. package/ui/AlertDialog/AlertDialog.tsx +109 -0
  88. package/ui/AlertDialog/AlertDialog.types.ts +14 -0
  89. package/ui/AlertDialog/index.ts +6 -0
  90. package/ui/AppHeader/AppHeader.module.css +120 -0
  91. package/ui/AppHeader/AppHeader.tsx +70 -0
  92. package/ui/AppHeader/AppHeader.types.ts +28 -0
  93. package/ui/AppHeader/index.ts +2 -0
  94. package/ui/AppNav/AppNav.module.css +168 -0
  95. package/ui/AppNav/AppNav.tsx +137 -0
  96. package/ui/AppNav/AppNav.types.ts +24 -0
  97. package/ui/AppNav/index.ts +2 -0
  98. package/ui/Avatar/Avatar.module.css +52 -0
  99. package/ui/Avatar/Avatar.tsx +62 -0
  100. package/ui/Avatar/Avatar.types.ts +8 -0
  101. package/ui/Avatar/index.ts +2 -0
  102. package/ui/AvatarGroup/AvatarGroup.module.css +49 -0
  103. package/ui/AvatarGroup/AvatarGroup.tsx +29 -0
  104. package/ui/AvatarGroup/AvatarGroup.types.ts +16 -0
  105. package/ui/AvatarGroup/index.ts +2 -0
  106. package/ui/Badge/Badge.module.css +92 -0
  107. package/ui/Badge/Badge.tsx +43 -0
  108. package/ui/Badge/Badge.types.ts +11 -0
  109. package/ui/Badge/index.ts +2 -0
  110. package/ui/BarChart/BarChart.module.css +56 -0
  111. package/ui/BarChart/BarChart.tsx +380 -0
  112. package/ui/BarChart/BarChart.types.ts +18 -0
  113. package/ui/BarChart/index.ts +2 -0
  114. package/ui/Breadcrumb/Breadcrumb.module.css +64 -0
  115. package/ui/Breadcrumb/Breadcrumb.tsx +89 -0
  116. package/ui/Breadcrumb/Breadcrumb.types.ts +14 -0
  117. package/ui/Breadcrumb/index.ts +2 -0
  118. package/ui/Button/Button.module.css +101 -0
  119. package/ui/Button/Button.tsx +49 -0
  120. package/ui/Button/Button.types.ts +18 -0
  121. package/ui/Button/index.ts +2 -0
  122. package/ui/Button/lucideName.tsx +188 -0
  123. package/ui/ButtonGroup/ButtonGroup.module.css +31 -0
  124. package/ui/ButtonGroup/ButtonGroup.tsx +12 -0
  125. package/ui/ButtonGroup/ButtonGroup.types.ts +6 -0
  126. package/ui/ButtonGroup/index.ts +2 -0
  127. package/ui/Calendar/Calendar.module.css +146 -0
  128. package/ui/Calendar/Calendar.tsx +296 -0
  129. package/ui/Calendar/Calendar.types.ts +11 -0
  130. package/ui/Calendar/index.ts +2 -0
  131. package/ui/Card/Card.module.css +95 -0
  132. package/ui/Card/Card.tsx +69 -0
  133. package/ui/Card/Card.types.ts +23 -0
  134. package/ui/Card/index.ts +2 -0
  135. package/ui/Carousel/Carousel.module.css +114 -0
  136. package/ui/Carousel/Carousel.tsx +152 -0
  137. package/ui/Carousel/Carousel.types.ts +17 -0
  138. package/ui/Carousel/index.ts +7 -0
  139. package/ui/Cell/Cell.module.css +133 -0
  140. package/ui/Cell/Cell.tsx +300 -0
  141. package/ui/Cell/Cell.types.ts +69 -0
  142. package/ui/Cell/index.ts +11 -0
  143. package/ui/Chat/Chat.module.css +149 -0
  144. package/ui/Chat/Chat.tsx +175 -0
  145. package/ui/Chat/Chat.types.ts +39 -0
  146. package/ui/Chat/index.ts +2 -0
  147. package/ui/Checkbox/Checkbox.module.css +135 -0
  148. package/ui/Checkbox/Checkbox.tsx +70 -0
  149. package/ui/Checkbox/Checkbox.types.ts +15 -0
  150. package/ui/Checkbox/index.ts +2 -0
  151. package/ui/Collapsible/Collapsible.module.css +68 -0
  152. package/ui/Collapsible/Collapsible.tsx +59 -0
  153. package/ui/Collapsible/Collapsible.types.ts +9 -0
  154. package/ui/Collapsible/index.ts +2 -0
  155. package/ui/Command/Command.module.css +138 -0
  156. package/ui/Command/Command.tsx +152 -0
  157. package/ui/Command/Command.types.ts +20 -0
  158. package/ui/Command/index.ts +2 -0
  159. package/ui/DataTable/DataTable.module.css +211 -0
  160. package/ui/DataTable/DataTable.tsx +429 -0
  161. package/ui/DataTable/DataTable.types.ts +35 -0
  162. package/ui/DataTable/index.ts +8 -0
  163. package/ui/DatePicker/DatePicker.module.css +44 -0
  164. package/ui/DatePicker/DatePicker.tsx +123 -0
  165. package/ui/DatePicker/DatePicker.types.ts +15 -0
  166. package/ui/DatePicker/index.ts +2 -0
  167. package/ui/Drawer/Drawer.module.css +204 -0
  168. package/ui/Drawer/Drawer.tsx +112 -0
  169. package/ui/Drawer/Drawer.types.ts +14 -0
  170. package/ui/Drawer/index.ts +2 -0
  171. package/ui/DropdownMenu/DropdownMenu.module.css +319 -0
  172. package/ui/DropdownMenu/DropdownMenu.tsx +580 -0
  173. package/ui/DropdownMenu/DropdownMenu.types.ts +48 -0
  174. package/ui/DropdownMenu/index.ts +8 -0
  175. package/ui/Empty/Empty.module.css +68 -0
  176. package/ui/Empty/Empty.tsx +35 -0
  177. package/ui/Empty/Empty.types.ts +10 -0
  178. package/ui/Empty/index.ts +2 -0
  179. package/ui/Field/Field.module.css +66 -0
  180. package/ui/Field/Field.tsx +46 -0
  181. package/ui/Field/Field.types.ts +12 -0
  182. package/ui/Field/index.ts +2 -0
  183. package/ui/FieldSet/FieldSet.module.css +30 -0
  184. package/ui/FieldSet/FieldSet.tsx +14 -0
  185. package/ui/FieldSet/FieldSet.types.ts +7 -0
  186. package/ui/FieldSet/index.ts +2 -0
  187. package/ui/HeaderCell/HeaderCell.module.css +85 -0
  188. package/ui/HeaderCell/HeaderCell.tsx +71 -0
  189. package/ui/HeaderCell/HeaderCell.types.ts +18 -0
  190. package/ui/HeaderCell/index.ts +2 -0
  191. package/ui/Input/Input.module.css +59 -0
  192. package/ui/Input/Input.tsx +65 -0
  193. package/ui/Input/Input.types.ts +22 -0
  194. package/ui/Input/index.ts +2 -0
  195. package/ui/InputOTP/InputOTP.module.css +139 -0
  196. package/ui/InputOTP/InputOTP.tsx +136 -0
  197. package/ui/InputOTP/InputOTP.types.ts +19 -0
  198. package/ui/InputOTP/index.ts +2 -0
  199. package/ui/InsightCard/InsightCard.module.css +166 -0
  200. package/ui/InsightCard/InsightCard.tsx +90 -0
  201. package/ui/InsightCard/InsightCard.types.ts +20 -0
  202. package/ui/InsightCard/index.ts +7 -0
  203. package/ui/LineChart/LineChart.module.css +93 -0
  204. package/ui/LineChart/LineChart.tsx +424 -0
  205. package/ui/LineChart/LineChart.types.ts +19 -0
  206. package/ui/LineChart/index.ts +2 -0
  207. package/ui/LoadingAnimation/LoadingAnimation.module.css +66 -0
  208. package/ui/LoadingAnimation/LoadingAnimation.tsx +41 -0
  209. package/ui/LoadingAnimation/LoadingAnimation.types.ts +9 -0
  210. package/ui/LoadingAnimation/index.ts +6 -0
  211. package/ui/Modal/Modal.module.css +48 -0
  212. package/ui/Modal/Modal.tsx +114 -0
  213. package/ui/Modal/Modal.types.ts +15 -0
  214. package/ui/Modal/index.ts +2 -0
  215. package/ui/ModalCard/ModalCard.module.css +137 -0
  216. package/ui/ModalCard/ModalCard.tsx +58 -0
  217. package/ui/ModalCard/ModalCard.types.ts +15 -0
  218. package/ui/ModalCard/index.ts +2 -0
  219. package/ui/NavigationMenu/NavigationMenu.module.css +31 -0
  220. package/ui/NavigationMenu/NavigationMenu.tsx +57 -0
  221. package/ui/NavigationMenu/NavigationMenu.types.ts +22 -0
  222. package/ui/NavigationMenu/index.ts +7 -0
  223. package/ui/NumberTransition/NumberTransition.module.css +110 -0
  224. package/ui/NumberTransition/NumberTransition.tsx +78 -0
  225. package/ui/NumberTransition/NumberTransition.types.ts +9 -0
  226. package/ui/NumberTransition/index.ts +2 -0
  227. package/ui/PageHeader/PageHeader.module.css +57 -0
  228. package/ui/PageHeader/PageHeader.tsx +39 -0
  229. package/ui/PageHeader/PageHeader.types.ts +12 -0
  230. package/ui/PageHeader/index.ts +2 -0
  231. package/ui/Pagination/Pagination.module.css +19 -0
  232. package/ui/Pagination/Pagination.tsx +147 -0
  233. package/ui/Pagination/Pagination.types.ts +12 -0
  234. package/ui/Pagination/index.ts +2 -0
  235. package/ui/PieChart/PieChart.module.css +116 -0
  236. package/ui/PieChart/PieChart.tsx +293 -0
  237. package/ui/PieChart/PieChart.types.ts +22 -0
  238. package/ui/PieChart/index.ts +2 -0
  239. package/ui/Progress/Progress.module.css +226 -0
  240. package/ui/Progress/Progress.tsx +167 -0
  241. package/ui/Progress/Progress.types.ts +15 -0
  242. package/ui/Progress/index.ts +8 -0
  243. package/ui/ProgressSteps/ProgressSteps.module.css +210 -0
  244. package/ui/ProgressSteps/ProgressSteps.tsx +105 -0
  245. package/ui/ProgressSteps/ProgressSteps.types.ts +19 -0
  246. package/ui/ProgressSteps/index.ts +8 -0
  247. package/ui/RadioGroup/RadioGroup.module.css +284 -0
  248. package/ui/RadioGroup/RadioGroup.tsx +116 -0
  249. package/ui/RadioGroup/RadioGroup.types.ts +30 -0
  250. package/ui/RadioGroup/index.ts +8 -0
  251. package/ui/Scoreboard/Scoreboard.module.css +53 -0
  252. package/ui/Scoreboard/Scoreboard.tsx +41 -0
  253. package/ui/Scoreboard/Scoreboard.types.ts +7 -0
  254. package/ui/Scoreboard/index.ts +2 -0
  255. package/ui/Scorecard/Scorecard.module.css +150 -0
  256. package/ui/Scorecard/Scorecard.tsx +92 -0
  257. package/ui/Scorecard/Scorecard.types.ts +18 -0
  258. package/ui/Scorecard/index.ts +2 -0
  259. package/ui/Section/Section.module.css +104 -0
  260. package/ui/Section/Section.tsx +75 -0
  261. package/ui/Section/Section.types.ts +15 -0
  262. package/ui/Section/index.ts +2 -0
  263. package/ui/Select/Select.module.css +7 -0
  264. package/ui/Select/Select.tsx +113 -0
  265. package/ui/Select/Select.types.ts +26 -0
  266. package/ui/Select/index.ts +2 -0
  267. package/ui/ShimmerText/ShimmerText.module.css +46 -0
  268. package/ui/ShimmerText/ShimmerText.tsx +48 -0
  269. package/ui/ShimmerText/ShimmerText.types.ts +12 -0
  270. package/ui/ShimmerText/index.ts +2 -0
  271. package/ui/SideNav/SideNav.module.css +347 -0
  272. package/ui/SideNav/SideNav.tsx +222 -0
  273. package/ui/SideNav/SideNav.types.ts +42 -0
  274. package/ui/SideNav/index.ts +8 -0
  275. package/ui/Slider/Slider.module.css +105 -0
  276. package/ui/Slider/Slider.tsx +187 -0
  277. package/ui/Slider/Slider.types.ts +11 -0
  278. package/ui/Slider/index.ts +2 -0
  279. package/ui/Spinner/Spinner.module.css +58 -0
  280. package/ui/Spinner/Spinner.tsx +19 -0
  281. package/ui/Spinner/Spinner.types.ts +6 -0
  282. package/ui/Spinner/index.ts +2 -0
  283. package/ui/Switch/Switch.module.css +189 -0
  284. package/ui/Switch/Switch.tsx +65 -0
  285. package/ui/Switch/Switch.types.ts +12 -0
  286. package/ui/Switch/index.ts +2 -0
  287. package/ui/Table/Table.module.css +132 -0
  288. package/ui/Table/Table.tsx +108 -0
  289. package/ui/Table/Table.types.ts +26 -0
  290. package/ui/Table/index.ts +8 -0
  291. package/ui/Tabs/Tabs.module.css +162 -0
  292. package/ui/Tabs/Tabs.tsx +150 -0
  293. package/ui/Tabs/Tabs.types.ts +21 -0
  294. package/ui/Tabs/index.ts +2 -0
  295. package/ui/Textarea/Textarea.module.css +74 -0
  296. package/ui/Textarea/Textarea.tsx +38 -0
  297. package/ui/Textarea/Textarea.types.ts +14 -0
  298. package/ui/Textarea/index.ts +2 -0
  299. package/ui/ThinkingAnimation/ThinkingAnimation.module.css +75 -0
  300. package/ui/ThinkingAnimation/ThinkingAnimation.tsx +31 -0
  301. package/ui/ThinkingAnimation/ThinkingAnimation.types.ts +8 -0
  302. package/ui/ThinkingAnimation/index.ts +2 -0
  303. package/ui/Timeline/Timeline.module.css +99 -0
  304. package/ui/Timeline/Timeline.tsx +47 -0
  305. package/ui/Timeline/Timeline.types.ts +16 -0
  306. package/ui/Timeline/index.ts +2 -0
  307. package/ui/Toast/Toast.module.css +133 -0
  308. package/ui/Toast/Toast.tsx +89 -0
  309. package/ui/Toast/Toast.types.ts +17 -0
  310. package/ui/Toast/index.ts +2 -0
  311. package/ui/Tooltip/Tooltip.module.css +111 -0
  312. package/ui/Tooltip/Tooltip.tsx +101 -0
  313. package/ui/Tooltip/index.ts +2 -0
  314. package/ui/patterns/ActivityPattern/ActivityFeed.tsx +77 -0
  315. package/ui/patterns/ActivityPattern/ActivityPattern.tsx +120 -0
  316. package/ui/patterns/ActivityPattern/ActivityTasks.tsx +86 -0
  317. package/ui/patterns/ActivityPattern/TaskDrawer.module.css +39 -0
  318. package/ui/patterns/ActivityPattern/TaskDrawer.tsx +186 -0
  319. package/ui/patterns/ActivityPattern/index.ts +2 -0
  320. package/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.module.css +16 -0
  321. package/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.tsx +159 -0
  322. package/ui/patterns/AssistantWorkspacePattern/index.ts +2 -0
  323. package/ui/patterns/DashboardPattern/DashboardPattern.tsx +102 -0
  324. package/ui/patterns/DashboardPattern/index.ts +1 -0
  325. package/ui/patterns/DashboardPattern/patterns.module.css +6 -0
  326. package/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.tsx +125 -0
  327. package/ui/patterns/EmptyFirstRunPattern/index.ts +2 -0
  328. package/ui/patterns/InboxPattern/InboxPattern.module.css +40 -0
  329. package/ui/patterns/InboxPattern/InboxPattern.tsx +192 -0
  330. package/ui/patterns/InboxPattern/InboxReplyDrawer.tsx +97 -0
  331. package/ui/patterns/InboxPattern/inbox-data.ts +101 -0
  332. package/ui/patterns/InboxPattern/index.ts +2 -0
  333. package/ui/patterns/InviteMembersPattern/InviteMembersPattern.tsx +148 -0
  334. package/ui/patterns/InviteMembersPattern/index.ts +2 -0
  335. package/ui/patterns/ListDetailPattern/ListDetailPattern.module.css +34 -0
  336. package/ui/patterns/ListDetailPattern/ListDetailPattern.tsx +145 -0
  337. package/ui/patterns/ListDetailPattern/index.ts +2 -0
  338. package/ui/patterns/SettingsFormPattern/SettingsFormPattern.module.css +12 -0
  339. package/ui/patterns/SettingsFormPattern/SettingsFormPattern.tsx +89 -0
  340. package/ui/patterns/SettingsFormPattern/index.ts +3 -0
  341. package/ui/shared/ChartFrame.module.css +295 -0
  342. package/ui/shared/ChartFrame.tsx +87 -0
  343. package/ui/shared/chartMath.ts +228 -0
  344. package/ui/shared/controls.module.css +48 -0
  345. package/ui/shared/useChartSize.ts +22 -0
@@ -0,0 +1,38 @@
1
+ import type { TextareaProps } from "./Textarea.types";
2
+ import styles from "./Textarea.module.css";
3
+
4
+ export type { TextareaProps, TextareaSize } from "./Textarea.types";
5
+
6
+ const SIZE_CLASS = {
7
+ sm: styles.sm,
8
+ md: styles.md,
9
+ lg: styles.lg,
10
+ } as const;
11
+
12
+ export function Textarea({
13
+ id,
14
+ size = "md",
15
+ rows,
16
+ placeholder,
17
+ disabled = false,
18
+ error = false,
19
+ defaultValue,
20
+ name,
21
+ demo,
22
+ describedBy,
23
+ }: TextareaProps) {
24
+ return (
25
+ <textarea
26
+ id={id}
27
+ name={name}
28
+ rows={rows}
29
+ placeholder={placeholder}
30
+ disabled={disabled}
31
+ defaultValue={defaultValue}
32
+ aria-invalid={error || undefined}
33
+ aria-describedby={describedBy}
34
+ data-demo={disabled ? undefined : demo}
35
+ className={`${styles.textarea} ${SIZE_CLASS[size]}${error ? ` ${styles.error}` : ""}`}
36
+ />
37
+ );
38
+ }
@@ -0,0 +1,14 @@
1
+ export type TextareaSize = "sm" | "md" | "lg";
2
+
3
+ export interface TextareaProps {
4
+ id: string;
5
+ size?: TextareaSize;
6
+ rows?: number;
7
+ placeholder?: string;
8
+ disabled?: boolean;
9
+ error?: boolean;
10
+ defaultValue?: string;
11
+ name?: string;
12
+ demo?: "hover" | "focus";
13
+ describedBy?: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export { Textarea } from "./Textarea";
2
+ export type { TextareaProps, TextareaSize } from "./Textarea.types";
@@ -0,0 +1,75 @@
1
+ .root {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: var(--space-2);
5
+ color: var(--text-secondary);
6
+ font-family: var(--font-sans);
7
+ font-size: var(--type-size-body-sm);
8
+ }
9
+
10
+ .dots {
11
+ display: inline-flex;
12
+ align-items: center;
13
+ gap: var(--space-1);
14
+ }
15
+
16
+ .dot {
17
+ inline-size: var(--space-2);
18
+ block-size: var(--space-2);
19
+ border-radius: var(--radius-full);
20
+ background: var(--text-muted);
21
+ animation: thinking-dot 1.2s var(--motion-ease-in-out) infinite;
22
+ }
23
+
24
+ .dot:nth-child(2) {
25
+ animation-delay: 0.15s;
26
+ }
27
+
28
+ .dot:nth-child(3) {
29
+ animation-delay: 0.3s;
30
+ }
31
+
32
+ .sm {
33
+ gap: var(--space-1);
34
+ font-size: var(--type-size-caption);
35
+ }
36
+
37
+ .sm .dot {
38
+ inline-size: 0.3rem;
39
+ block-size: 0.3rem;
40
+ }
41
+
42
+ .lg {
43
+ gap: var(--space-3);
44
+ font-size: var(--type-size-body);
45
+ }
46
+
47
+ .lg .dot {
48
+ inline-size: var(--space-3);
49
+ block-size: var(--space-3);
50
+ }
51
+
52
+ .label {
53
+ color: var(--text-secondary);
54
+ }
55
+
56
+ @keyframes thinking-dot {
57
+ 0%,
58
+ 80%,
59
+ 100% {
60
+ opacity: 0.35;
61
+ transform: translateY(0);
62
+ }
63
+
64
+ 40% {
65
+ opacity: 1;
66
+ transform: translateY(-0.15rem);
67
+ }
68
+ }
69
+
70
+ @media (prefers-reduced-motion: reduce) {
71
+ .dot {
72
+ animation: none;
73
+ opacity: 1;
74
+ }
75
+ }
@@ -0,0 +1,31 @@
1
+ import type { ThinkingAnimationProps } from "./ThinkingAnimation.types";
2
+ import styles from "./ThinkingAnimation.module.css";
3
+
4
+ export type { ThinkingAnimationProps, ThinkingAnimationSize } from "./ThinkingAnimation.types";
5
+
6
+ export function ThinkingAnimation({
7
+ label = "Thinking",
8
+ size = "md",
9
+ showLabel = true,
10
+ className = "",
11
+ }: ThinkingAnimationProps) {
12
+ return (
13
+ <span
14
+ className={`${styles.root} ${styles[size]} ${className}`.trim()}
15
+ role="status"
16
+ aria-label={label}
17
+ aria-live="polite"
18
+ >
19
+ <span className={styles.dots} aria-hidden="true">
20
+ <span className={styles.dot} />
21
+ <span className={styles.dot} />
22
+ <span className={styles.dot} />
23
+ </span>
24
+ {showLabel ? (
25
+ <span className={styles.label} aria-hidden="true">
26
+ {label}
27
+ </span>
28
+ ) : null}
29
+ </span>
30
+ );
31
+ }
@@ -0,0 +1,8 @@
1
+ export type ThinkingAnimationSize = "sm" | "md" | "lg";
2
+
3
+ export interface ThinkingAnimationProps {
4
+ label?: string;
5
+ size?: ThinkingAnimationSize;
6
+ showLabel?: boolean;
7
+ className?: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ export { ThinkingAnimation } from "./ThinkingAnimation";
2
+ export type { ThinkingAnimationProps, ThinkingAnimationSize } from "./ThinkingAnimation.types";
@@ -0,0 +1,99 @@
1
+ .timeline {
2
+ display: grid;
3
+ width: 100%;
4
+ margin: 0;
5
+ padding: 0;
6
+ list-style: none;
7
+ }
8
+
9
+ .step {
10
+ display: grid;
11
+ grid-template-columns: auto minmax(0, 1fr);
12
+ column-gap: var(--space-4);
13
+ align-items: stretch;
14
+ }
15
+
16
+ .rail {
17
+ display: flex;
18
+ flex-direction: column;
19
+ align-items: center;
20
+ width: var(--space-4);
21
+ }
22
+
23
+ .dot {
24
+ flex: none;
25
+ width: var(--space-3);
26
+ height: var(--space-3);
27
+ border: var(--border-width-thin) solid var(--border-strong);
28
+ border-radius: var(--radius-full);
29
+ background: transparent;
30
+ }
31
+
32
+ .line {
33
+ flex: 1;
34
+ width: var(--border-width-thin);
35
+ min-height: var(--space-6);
36
+ margin-block: var(--space-1);
37
+ background: var(--border-faint);
38
+ }
39
+
40
+ .now .dot {
41
+ border-color: var(--text-primary);
42
+ background: var(--text-primary);
43
+ }
44
+
45
+ .now .line {
46
+ background: var(--text-primary);
47
+ }
48
+
49
+ .next .dot {
50
+ border-color: var(--border-strong);
51
+ background: transparent;
52
+ }
53
+
54
+ .later .dot {
55
+ border-color: var(--border-faint);
56
+ background: transparent;
57
+ }
58
+
59
+ .later .line {
60
+ background: var(--border-subtle);
61
+ }
62
+
63
+ .copy {
64
+ display: grid;
65
+ gap: var(--space-1);
66
+ padding-block-end: var(--space-6);
67
+ }
68
+
69
+ .step:last-child .copy {
70
+ padding-block-end: 0;
71
+ }
72
+
73
+ .phase {
74
+ margin: 0;
75
+ font-family: var(--font-sans);
76
+ font-size: var(--type-size-caption);
77
+ color: var(--text-muted);
78
+ }
79
+
80
+ .now .phase {
81
+ color: var(--text-primary);
82
+ }
83
+
84
+ .title {
85
+ margin: 0;
86
+ font-family: var(--font-sans);
87
+ font-size: var(--type-size-label);
88
+ font-weight: var(--type-weight-heading);
89
+ line-height: var(--type-line-heading);
90
+ color: var(--text-primary);
91
+ }
92
+
93
+ .body {
94
+ margin: 0;
95
+ font-family: var(--font-sans);
96
+ font-size: var(--type-size-body-sm);
97
+ line-height: var(--type-line-body);
98
+ color: var(--text-secondary);
99
+ }
@@ -0,0 +1,47 @@
1
+ import type { TimelineProps } from "./Timeline.types";
2
+ import styles from "./Timeline.module.css";
3
+
4
+ export type { TimelineItem, TimelineProps, TimelineStatus } from "./Timeline.types";
5
+
6
+ const STATUSES = ["now", "next", "later"] as const;
7
+
8
+ function headingTag(level: 2 | 3 | 4): "h2" | "h3" | "h4" {
9
+ if (level === 2) return "h2";
10
+ if (level === 4) return "h4";
11
+ return "h3";
12
+ }
13
+
14
+ export function Timeline({
15
+ items = [],
16
+ label,
17
+ headingLevel = 3,
18
+ className = "",
19
+ }: TimelineProps) {
20
+ if (!items.length) return null;
21
+
22
+ const TitleTag = headingTag(headingLevel);
23
+
24
+ return (
25
+ <ol className={`${styles.timeline} ${className}`.trim()} aria-label={label}>
26
+ {items.map((item, index) => {
27
+ const status = STATUSES.includes(item.status ?? "next")
28
+ ? (item.status ?? "next")
29
+ : "next";
30
+
31
+ return (
32
+ <li key={item.id ?? item.title ?? index} className={`${styles.step} ${styles[status]}`}>
33
+ <span className={styles.rail} aria-hidden="true">
34
+ <span className={styles.dot} />
35
+ {index < items.length - 1 ? <span className={styles.line} /> : null}
36
+ </span>
37
+ <div className={styles.copy}>
38
+ {item.phase ? <p className={styles.phase}>{item.phase}</p> : null}
39
+ {item.title ? <TitleTag className={styles.title}>{item.title}</TitleTag> : null}
40
+ {item.body ? <p className={styles.body}>{item.body}</p> : null}
41
+ </div>
42
+ </li>
43
+ );
44
+ })}
45
+ </ol>
46
+ );
47
+ }
@@ -0,0 +1,16 @@
1
+ export type TimelineStatus = "now" | "next" | "later";
2
+
3
+ export interface TimelineItem {
4
+ id?: string;
5
+ title?: string;
6
+ body?: string;
7
+ phase?: string;
8
+ status?: TimelineStatus;
9
+ }
10
+
11
+ export interface TimelineProps {
12
+ items?: TimelineItem[];
13
+ label?: string;
14
+ headingLevel?: 2 | 3 | 4;
15
+ className?: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ export { Timeline } from "./Timeline";
2
+ export type { TimelineItem, TimelineProps, TimelineStatus } from "./Timeline.types";
@@ -0,0 +1,133 @@
1
+ .toast {
2
+ position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: flex-start;
6
+ gap: var(--space-1);
7
+ width: min(100%, 19.5rem);
8
+ margin: 0;
9
+ padding: var(--space-3) var(--space-4);
10
+ border-radius: var(--radius-control-sm);
11
+ background: var(--surface-card);
12
+ box-shadow: var(--shadow-raised-depth);
13
+ color: var(--text-primary);
14
+ outline: none;
15
+ animation: toast-in var(--motion-overlay-duration) var(--motion-ease-spring-soft) both;
16
+ }
17
+
18
+ .sm {
19
+ padding: var(--space-2) var(--space-3);
20
+ }
21
+
22
+ .md {
23
+ padding: var(--space-3) var(--space-4);
24
+ }
25
+
26
+ .lg {
27
+ padding: var(--space-4) var(--space-5);
28
+ }
29
+
30
+ .header {
31
+ display: flex;
32
+ align-items: flex-start;
33
+ gap: var(--space-4);
34
+ width: 100%;
35
+ }
36
+
37
+ .lead {
38
+ display: flex;
39
+ align-items: flex-start;
40
+ gap: var(--space-1);
41
+ flex: 1;
42
+ min-width: 0;
43
+ }
44
+
45
+ .icon {
46
+ display: grid;
47
+ flex-shrink: 0;
48
+ color: var(--icon-primary);
49
+ }
50
+
51
+ .info .icon {
52
+ color: var(--icon-info);
53
+ }
54
+
55
+ .success .icon {
56
+ color: var(--icon-success);
57
+ }
58
+
59
+ .warning .icon {
60
+ color: var(--icon-warning);
61
+ }
62
+
63
+ .danger .icon {
64
+ color: var(--icon-danger);
65
+ }
66
+
67
+ .title {
68
+ margin: 0;
69
+ min-width: 0;
70
+ font-family: var(--font-sans);
71
+ font-size: var(--type-size-label);
72
+ font-weight: var(--type-weight-label);
73
+ line-height: var(--type-line-heading);
74
+ color: var(--text-primary);
75
+ }
76
+
77
+ .description {
78
+ margin: 0;
79
+ width: 100%;
80
+ padding-left: var(--space-1);
81
+ font-family: var(--font-sans);
82
+ font-size: var(--type-size-caption);
83
+ font-weight: var(--type-weight-body);
84
+ line-height: var(--type-line-body);
85
+ color: var(--text-secondary);
86
+ }
87
+
88
+ .action {
89
+ width: 100%;
90
+ padding-left: var(--space-1);
91
+ }
92
+
93
+ .close {
94
+ display: grid;
95
+ place-items: center;
96
+ flex-shrink: 0;
97
+ width: var(--space-5);
98
+ height: var(--space-5);
99
+ margin: 0;
100
+ padding: 0;
101
+ border: 0;
102
+ border-radius: var(--radius-control-sm);
103
+ background: transparent;
104
+ color: var(--icon-secondary);
105
+ cursor: pointer;
106
+ }
107
+
108
+ .close:hover {
109
+ color: var(--icon-primary);
110
+ }
111
+
112
+ .close:focus-visible {
113
+ outline: var(--border-focus-width) solid var(--focus-ring);
114
+ outline-offset: var(--space-inset-2xs);
115
+ }
116
+
117
+ @keyframes toast-in {
118
+ from {
119
+ opacity: 0;
120
+ transform: translateY(0.5rem) scale(0.98);
121
+ }
122
+
123
+ to {
124
+ opacity: 1;
125
+ transform: translateY(0) scale(1);
126
+ }
127
+ }
128
+
129
+ @media (prefers-reduced-motion: reduce) {
130
+ .toast {
131
+ animation: none;
132
+ }
133
+ }
@@ -0,0 +1,89 @@
1
+ "use client";
2
+
3
+ import { CircleAlert, CircleCheck, Info, Minus, TriangleAlert, X } from "lucide-react";
4
+ import { useEffect, useId, useRef } from "react";
5
+ import type { ToastProps, ToastStatus } from "./Toast.types";
6
+ import styles from "./Toast.module.css";
7
+
8
+ export type { ToastProps, ToastSize, ToastStatus } from "./Toast.types";
9
+
10
+ const ICONS: Record<ToastStatus, typeof Info> = {
11
+ info: Info,
12
+ success: CircleCheck,
13
+ warning: TriangleAlert,
14
+ danger: CircleAlert,
15
+ default: Minus,
16
+ };
17
+
18
+ export function Toast({
19
+ open = true,
20
+ onOpenChange,
21
+ title,
22
+ description,
23
+ status = "default",
24
+ size = "md",
25
+ duration = null,
26
+ onClose,
27
+ action,
28
+ className = "",
29
+ }: ToastProps) {
30
+ const titleId = useId();
31
+ const descriptionId = useId();
32
+ const timerRef = useRef<number | null>(null);
33
+ const Icon = ICONS[status];
34
+
35
+ function handleClose() {
36
+ onClose?.();
37
+ onOpenChange?.(false);
38
+ }
39
+
40
+ useEffect(() => {
41
+ if (!open || duration == null || duration <= 0) return undefined;
42
+
43
+ timerRef.current = window.setTimeout(() => {
44
+ onClose?.();
45
+ onOpenChange?.(false);
46
+ }, duration);
47
+
48
+ return () => {
49
+ if (timerRef.current != null) window.clearTimeout(timerRef.current);
50
+ };
51
+ }, [open, duration, onClose, onOpenChange]);
52
+
53
+ if (!open) return null;
54
+
55
+ return (
56
+ <div
57
+ className={[styles.toast, styles[status], styles[size], className].filter(Boolean).join(" ")}
58
+ role="status"
59
+ aria-live="polite"
60
+ aria-atomic="true"
61
+ aria-labelledby={title ? titleId : undefined}
62
+ aria-describedby={description ? descriptionId : undefined}
63
+ >
64
+ <div className={styles.header}>
65
+ <div className={styles.lead}>
66
+ <span className={styles.icon}>
67
+ <Icon aria-hidden="true" size={20} strokeWidth={2} />
68
+ </span>
69
+ {title ? (
70
+ <p id={titleId} className={styles.title}>
71
+ {title}
72
+ </p>
73
+ ) : null}
74
+ </div>
75
+ {onClose || onOpenChange ? (
76
+ <button type="button" className={styles.close} aria-label="Dismiss" onClick={handleClose}>
77
+ <X aria-hidden="true" size={20} strokeWidth={2} />
78
+ </button>
79
+ ) : null}
80
+ </div>
81
+ {description ? (
82
+ <p id={descriptionId} className={styles.description}>
83
+ {description}
84
+ </p>
85
+ ) : null}
86
+ {action ? <div className={styles.action}>{action}</div> : null}
87
+ </div>
88
+ );
89
+ }
@@ -0,0 +1,17 @@
1
+ import type { ReactNode } from "react";
2
+
3
+ export type ToastStatus = "default" | "success" | "warning" | "danger" | "info";
4
+ export type ToastSize = "sm" | "md" | "lg";
5
+
6
+ export interface ToastProps {
7
+ open?: boolean;
8
+ onOpenChange?: (open: boolean) => void;
9
+ title?: string;
10
+ description?: string;
11
+ status?: ToastStatus;
12
+ size?: ToastSize;
13
+ duration?: number | null;
14
+ onClose?: () => void;
15
+ action?: ReactNode;
16
+ className?: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ export { Toast } from "./Toast";
2
+ export type { ToastProps, ToastSize, ToastStatus } from "./Toast.types";
@@ -0,0 +1,111 @@
1
+ .wrapper {
2
+ position: relative;
3
+ display: inline-flex;
4
+ }
5
+
6
+ .bubble {
7
+ --tooltip-offset: calc(100% + 0.5rem);
8
+ position: absolute;
9
+ z-index: var(--z-tooltip);
10
+ width: max-content;
11
+ max-width: 16rem;
12
+ padding: var(--space-1) var(--space-2);
13
+ border-radius: var(--radius-control-md);
14
+ background: var(--surface-inverse);
15
+ box-shadow: var(--shadow-md);
16
+ color: var(--text-inverse);
17
+ font-family: var(--font-sans);
18
+ font-size: var(--type-size-caption);
19
+ font-weight: var(--type-weight-label);
20
+ line-height: var(--type-line-body);
21
+ text-align: center;
22
+ pointer-events: none;
23
+ opacity: 0;
24
+ visibility: hidden;
25
+ transition:
26
+ opacity var(--motion-overlay-exit-duration) var(--motion-overlay-exit-easing),
27
+ transform var(--motion-overlay-exit-duration) var(--motion-overlay-exit-easing),
28
+ visibility 0s linear var(--motion-overlay-exit-duration);
29
+ }
30
+
31
+ .open {
32
+ opacity: 1;
33
+ visibility: visible;
34
+ transition:
35
+ opacity var(--motion-overlay-duration) var(--motion-overlay-easing),
36
+ transform var(--motion-overlay-duration) var(--motion-overlay-easing);
37
+ }
38
+
39
+ .arrow {
40
+ position: absolute;
41
+ width: 0.5rem;
42
+ height: 0.5rem;
43
+ background: var(--surface-inverse);
44
+ transform: rotate(45deg);
45
+ }
46
+
47
+ .top {
48
+ bottom: var(--tooltip-offset);
49
+ left: 50%;
50
+ transform: translate(-50%, 0.25rem) scale(0.96);
51
+ }
52
+
53
+ .top.open {
54
+ transform: translate(-50%, 0) scale(1);
55
+ }
56
+
57
+ .top .arrow {
58
+ bottom: -0.2rem;
59
+ left: calc(50% - 0.25rem);
60
+ }
61
+
62
+ .bottom {
63
+ top: var(--tooltip-offset);
64
+ left: 50%;
65
+ transform: translate(-50%, -0.25rem) scale(0.96);
66
+ }
67
+
68
+ .bottom.open {
69
+ transform: translate(-50%, 0) scale(1);
70
+ }
71
+
72
+ .bottom .arrow {
73
+ top: -0.2rem;
74
+ left: calc(50% - 0.25rem);
75
+ }
76
+
77
+ .left {
78
+ right: var(--tooltip-offset);
79
+ top: 50%;
80
+ transform: translate(0.25rem, -50%) scale(0.96);
81
+ }
82
+
83
+ .left.open {
84
+ transform: translate(0, -50%) scale(1);
85
+ }
86
+
87
+ .left .arrow {
88
+ right: -0.2rem;
89
+ top: calc(50% - 0.25rem);
90
+ }
91
+
92
+ .right {
93
+ left: var(--tooltip-offset);
94
+ top: 50%;
95
+ transform: translate(-0.25rem, -50%) scale(0.96);
96
+ }
97
+
98
+ .right.open {
99
+ transform: translate(0, -50%) scale(1);
100
+ }
101
+
102
+ .right .arrow {
103
+ left: -0.2rem;
104
+ top: calc(50% - 0.25rem);
105
+ }
106
+
107
+ @media (prefers-reduced-motion: reduce) {
108
+ .bubble {
109
+ transition: none;
110
+ }
111
+ }