@mich8060/unified-design-system 0.1.10

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 (454) hide show
  1. package/LICENSE +21 -0
  2. package/README.lib.md +103 -0
  3. package/README.md +265 -0
  4. package/dist/LICENSE +21 -0
  5. package/dist/README.md +103 -0
  6. package/dist/package.json +49 -0
  7. package/dist/styles.css +20544 -0
  8. package/dist/uds-components.es.js +67031 -0
  9. package/dist/uds-components.es.js.map +1 -0
  10. package/dist/uds-components.umd.js +67048 -0
  11. package/dist/uds-components.umd.js.map +1 -0
  12. package/package.json +158 -0
  13. package/src/styles/_typography.scss +932 -0
  14. package/src/styles/_utilities.scss +3738 -0
  15. package/src/styles/_variables.scss +620 -0
  16. package/src/styles/prism-custom.css +204 -0
  17. package/src/styles/prism-custom.scss +205 -0
  18. package/src/styles/tokens.css +1463 -0
  19. package/src/styles/tokens.scss +1116 -0
  20. package/src/ui/Accordion/Accordion.ai.md +69 -0
  21. package/src/ui/Accordion/Accordion.scss +87 -0
  22. package/src/ui/Accordion/Accordion.spec.ts +25 -0
  23. package/src/ui/Accordion/Accordion.stories.tsx +46 -0
  24. package/src/ui/Accordion/Accordion.test.tsx +54 -0
  25. package/src/ui/Accordion/Accordion.tsx +73 -0
  26. package/src/ui/Accordion/Accordion.types.ts +15 -0
  27. package/src/ui/Accordion/index.js +1 -0
  28. package/src/ui/ActionMenu/ActionMenu.ai.md +106 -0
  29. package/src/ui/ActionMenu/ActionMenu.jsx +437 -0
  30. package/src/ui/ActionMenu/ActionMenu.scss +252 -0
  31. package/src/ui/ActionMenu/ActionMenu.spec.ts +12 -0
  32. package/src/ui/ActionMenu/ActionMenu.stories.jsx +14 -0
  33. package/src/ui/ActionMenu/ActionMenu.stories.tsx +124 -0
  34. package/src/ui/ActionMenu/ActionMenu.test.tsx +1 -0
  35. package/src/ui/ActionMenu/ActionMenu.tsx +6 -0
  36. package/src/ui/ActionMenu/ActionMenu.types.ts +3 -0
  37. package/src/ui/ActionMenu/index.js +1 -0
  38. package/src/ui/Avatar/Avatar.ai.md +54 -0
  39. package/src/ui/Avatar/Avatar.jsx +49 -0
  40. package/src/ui/Avatar/Avatar.scss +87 -0
  41. package/src/ui/Avatar/Avatar.spec.ts +12 -0
  42. package/src/ui/Avatar/Avatar.stories.jsx +14 -0
  43. package/src/ui/Avatar/Avatar.stories.tsx +14 -0
  44. package/src/ui/Avatar/Avatar.test.tsx +1 -0
  45. package/src/ui/Avatar/Avatar.tsx +6 -0
  46. package/src/ui/Avatar/Avatar.types.ts +3 -0
  47. package/src/ui/Avatar/index.js +1 -0
  48. package/src/ui/Badge/Badge.ai.md +37 -0
  49. package/src/ui/Badge/Badge.jsx +64 -0
  50. package/src/ui/Badge/Badge.scss +84 -0
  51. package/src/ui/Badge/Badge.spec.ts +12 -0
  52. package/src/ui/Badge/Badge.stories.jsx +14 -0
  53. package/src/ui/Badge/Badge.stories.tsx +14 -0
  54. package/src/ui/Badge/Badge.test.tsx +1 -0
  55. package/src/ui/Badge/Badge.tsx +6 -0
  56. package/src/ui/Badge/Badge.types.ts +3 -0
  57. package/src/ui/Badge/index.js +1 -0
  58. package/src/ui/Branding/Branding.ai.md +81 -0
  59. package/src/ui/Branding/Branding.jsx +127 -0
  60. package/src/ui/Branding/Branding.scss +57 -0
  61. package/src/ui/Branding/Branding.spec.ts +12 -0
  62. package/src/ui/Branding/Branding.stories.jsx +14 -0
  63. package/src/ui/Branding/Branding.stories.tsx +14 -0
  64. package/src/ui/Branding/Branding.test.tsx +1 -0
  65. package/src/ui/Branding/Branding.tsx +6 -0
  66. package/src/ui/Branding/Branding.types.ts +3 -0
  67. package/src/ui/Branding/index.js +1 -0
  68. package/src/ui/Breadcrumb/Breadcrumb.ai.md +50 -0
  69. package/src/ui/Breadcrumb/Breadcrumb.jsx +167 -0
  70. package/src/ui/Breadcrumb/Breadcrumb.scss +46 -0
  71. package/src/ui/Breadcrumb/Breadcrumb.spec.ts +12 -0
  72. package/src/ui/Breadcrumb/Breadcrumb.stories.jsx +26 -0
  73. package/src/ui/Breadcrumb/Breadcrumb.stories.tsx +14 -0
  74. package/src/ui/Breadcrumb/Breadcrumb.test.tsx +1 -0
  75. package/src/ui/Breadcrumb/Breadcrumb.tsx +6 -0
  76. package/src/ui/Breadcrumb/Breadcrumb.types.ts +3 -0
  77. package/src/ui/Breadcrumb/index.js +2 -0
  78. package/src/ui/Button/Button.ai.md +122 -0
  79. package/src/ui/Button/Button.figma.tsx +49 -0
  80. package/src/ui/Button/Button.scss +188 -0
  81. package/src/ui/Button/Button.spec.ts +52 -0
  82. package/src/ui/Button/Button.stories.tsx +199 -0
  83. package/src/ui/Button/Button.test.tsx +85 -0
  84. package/src/ui/Button/Button.tsx +131 -0
  85. package/src/ui/Button/Button.types.ts +32 -0
  86. package/src/ui/Button/index.js +1 -0
  87. package/src/ui/Calendar/Calendar.ai.md +151 -0
  88. package/src/ui/Calendar/Calendar.jsx +504 -0
  89. package/src/ui/Calendar/Calendar.scss +451 -0
  90. package/src/ui/Calendar/Calendar.spec.ts +12 -0
  91. package/src/ui/Calendar/Calendar.stories.jsx +14 -0
  92. package/src/ui/Calendar/Calendar.stories.tsx +14 -0
  93. package/src/ui/Calendar/Calendar.test.tsx +1 -0
  94. package/src/ui/Calendar/Calendar.tsx +6 -0
  95. package/src/ui/Calendar/Calendar.types.ts +3 -0
  96. package/src/ui/Calendar/index.js +1 -0
  97. package/src/ui/Card/Card.ai.md +41 -0
  98. package/src/ui/Card/Card.jsx +25 -0
  99. package/src/ui/Card/Card.scss +47 -0
  100. package/src/ui/Card/Card.spec.ts +12 -0
  101. package/src/ui/Card/Card.stories.jsx +28 -0
  102. package/src/ui/Card/Card.stories.tsx +14 -0
  103. package/src/ui/Card/Card.test.tsx +1 -0
  104. package/src/ui/Card/Card.tsx +6 -0
  105. package/src/ui/Card/Card.types.ts +3 -0
  106. package/src/ui/Card/index.js +1 -0
  107. package/src/ui/Checkbox/Checkbox.ai.md +50 -0
  108. package/src/ui/Checkbox/Checkbox.jsx +73 -0
  109. package/src/ui/Checkbox/Checkbox.scss +115 -0
  110. package/src/ui/Checkbox/Checkbox.spec.ts +12 -0
  111. package/src/ui/Checkbox/Checkbox.stories.jsx +14 -0
  112. package/src/ui/Checkbox/Checkbox.stories.tsx +14 -0
  113. package/src/ui/Checkbox/Checkbox.test.tsx +1 -0
  114. package/src/ui/Checkbox/Checkbox.tsx +6 -0
  115. package/src/ui/Checkbox/Checkbox.types.ts +3 -0
  116. package/src/ui/Checkbox/index.js +1 -0
  117. package/src/ui/Chip/Chip.ai.md +43 -0
  118. package/src/ui/Chip/Chip.jsx +102 -0
  119. package/src/ui/Chip/Chip.scss +118 -0
  120. package/src/ui/Chip/Chip.spec.ts +12 -0
  121. package/src/ui/Chip/Chip.stories.jsx +14 -0
  122. package/src/ui/Chip/Chip.stories.tsx +14 -0
  123. package/src/ui/Chip/Chip.test.tsx +1 -0
  124. package/src/ui/Chip/Chip.tsx +6 -0
  125. package/src/ui/Chip/Chip.types.ts +3 -0
  126. package/src/ui/Chip/index.js +1 -0
  127. package/src/ui/Datepicker/Datepicker.ai.md +45 -0
  128. package/src/ui/Datepicker/Datepicker.jsx +330 -0
  129. package/src/ui/Datepicker/Datepicker.scss +206 -0
  130. package/src/ui/Datepicker/Datepicker.spec.ts +12 -0
  131. package/src/ui/Datepicker/Datepicker.stories.jsx +14 -0
  132. package/src/ui/Datepicker/Datepicker.stories.tsx +14 -0
  133. package/src/ui/Datepicker/Datepicker.test.tsx +1 -0
  134. package/src/ui/Datepicker/Datepicker.tsx +6 -0
  135. package/src/ui/Datepicker/Datepicker.types.ts +3 -0
  136. package/src/ui/Datepicker/index.js +2 -0
  137. package/src/ui/Divider/Divider.ai.md +34 -0
  138. package/src/ui/Divider/Divider.jsx +89 -0
  139. package/src/ui/Divider/Divider.scss +116 -0
  140. package/src/ui/Divider/Divider.spec.ts +12 -0
  141. package/src/ui/Divider/Divider.stories.jsx +14 -0
  142. package/src/ui/Divider/Divider.stories.tsx +14 -0
  143. package/src/ui/Divider/Divider.test.tsx +1 -0
  144. package/src/ui/Divider/Divider.tsx +6 -0
  145. package/src/ui/Divider/Divider.types.ts +3 -0
  146. package/src/ui/Divider/index.js +1 -0
  147. package/src/ui/DotStatus/DotStatus.ai.md +36 -0
  148. package/src/ui/DotStatus/DotStatus.jsx +64 -0
  149. package/src/ui/DotStatus/DotStatus.scss +87 -0
  150. package/src/ui/DotStatus/DotStatus.spec.ts +12 -0
  151. package/src/ui/DotStatus/DotStatus.stories.jsx +14 -0
  152. package/src/ui/DotStatus/DotStatus.stories.tsx +14 -0
  153. package/src/ui/DotStatus/DotStatus.test.tsx +1 -0
  154. package/src/ui/DotStatus/DotStatus.tsx +6 -0
  155. package/src/ui/DotStatus/DotStatus.types.ts +3 -0
  156. package/src/ui/DotStatus/index.js +1 -0
  157. package/src/ui/Dropdown/Dropdown.ai.md +118 -0
  158. package/src/ui/Dropdown/Dropdown.scss +129 -0
  159. package/src/ui/Dropdown/Dropdown.spec.ts +54 -0
  160. package/src/ui/Dropdown/Dropdown.stories.tsx +59 -0
  161. package/src/ui/Dropdown/Dropdown.test.tsx +37 -0
  162. package/src/ui/Dropdown/Dropdown.tsx +119 -0
  163. package/src/ui/Dropdown/Dropdown.types.ts +25 -0
  164. package/src/ui/Dropdown/index.js +1 -0
  165. package/src/ui/EventCard/EventCard.ai.md +101 -0
  166. package/src/ui/EventCard/EventCard.jsx +92 -0
  167. package/src/ui/EventCard/EventCard.scss +186 -0
  168. package/src/ui/EventCard/EventCard.spec.ts +12 -0
  169. package/src/ui/EventCard/EventCard.stories.jsx +14 -0
  170. package/src/ui/EventCard/EventCard.stories.tsx +14 -0
  171. package/src/ui/EventCard/EventCard.test.tsx +1 -0
  172. package/src/ui/EventCard/EventCard.tsx +6 -0
  173. package/src/ui/EventCard/EventCard.types.ts +3 -0
  174. package/src/ui/EventCard/index.js +1 -0
  175. package/src/ui/Field/Field.ai.md +69 -0
  176. package/src/ui/Field/Field.jsx +89 -0
  177. package/src/ui/Field/Field.scss +76 -0
  178. package/src/ui/Field/Field.spec.ts +12 -0
  179. package/src/ui/Field/Field.stories.jsx +14 -0
  180. package/src/ui/Field/Field.stories.tsx +14 -0
  181. package/src/ui/Field/Field.test.tsx +1 -0
  182. package/src/ui/Field/Field.tsx +6 -0
  183. package/src/ui/Field/Field.types.ts +3 -0
  184. package/src/ui/Field/index.js +1 -0
  185. package/src/ui/FileUpload/FileUpload.ai.md +38 -0
  186. package/src/ui/FileUpload/FileUpload.figma.tsx +28 -0
  187. package/src/ui/FileUpload/FileUpload.jsx +153 -0
  188. package/src/ui/FileUpload/FileUpload.scss +78 -0
  189. package/src/ui/FileUpload/FileUpload.spec.ts +12 -0
  190. package/src/ui/FileUpload/FileUpload.stories.jsx +14 -0
  191. package/src/ui/FileUpload/FileUpload.stories.tsx +14 -0
  192. package/src/ui/FileUpload/FileUpload.test.tsx +1 -0
  193. package/src/ui/FileUpload/FileUpload.tsx +6 -0
  194. package/src/ui/FileUpload/FileUpload.types.ts +3 -0
  195. package/src/ui/FileUpload/index.js +2 -0
  196. package/src/ui/Flex/Flex.ai.md +130 -0
  197. package/src/ui/Flex/Flex.jsx +53 -0
  198. package/src/ui/Flex/Flex.scss +119 -0
  199. package/src/ui/Flex/Flex.spec.ts +12 -0
  200. package/src/ui/Flex/Flex.stories.jsx +14 -0
  201. package/src/ui/Flex/Flex.stories.tsx +14 -0
  202. package/src/ui/Flex/Flex.test.tsx +1 -0
  203. package/src/ui/Flex/Flex.tsx +6 -0
  204. package/src/ui/Flex/Flex.types.ts +3 -0
  205. package/src/ui/Flex/index.js +1 -0
  206. package/src/ui/Icon/Icon.ai.md +46 -0
  207. package/src/ui/Icon/Icon.figma.tsx +22 -0
  208. package/src/ui/Icon/Icon.jsx +47 -0
  209. package/src/ui/Icon/Icon.scss +1 -0
  210. package/src/ui/Icon/Icon.spec.ts +12 -0
  211. package/src/ui/Icon/Icon.stories.jsx +14 -0
  212. package/src/ui/Icon/Icon.stories.tsx +14 -0
  213. package/src/ui/Icon/Icon.test.tsx +1 -0
  214. package/src/ui/Icon/Icon.tsx +6 -0
  215. package/src/ui/Icon/Icon.types.ts +3 -0
  216. package/src/ui/Icon/index.js +1 -0
  217. package/src/ui/ImageAspect/ImageAspect.ai.md +37 -0
  218. package/src/ui/ImageAspect/ImageAspect.jsx +56 -0
  219. package/src/ui/ImageAspect/ImageAspect.scss +62 -0
  220. package/src/ui/ImageAspect/ImageAspect.spec.ts +12 -0
  221. package/src/ui/ImageAspect/ImageAspect.stories.jsx +14 -0
  222. package/src/ui/ImageAspect/ImageAspect.stories.tsx +14 -0
  223. package/src/ui/ImageAspect/ImageAspect.test.tsx +1 -0
  224. package/src/ui/ImageAspect/ImageAspect.tsx +6 -0
  225. package/src/ui/ImageAspect/ImageAspect.types.ts +3 -0
  226. package/src/ui/ImageAspect/index.js +1 -0
  227. package/src/ui/Input/Input.ai.md +89 -0
  228. package/src/ui/Input/Input.figma.tsx +35 -0
  229. package/src/ui/Input/Input.scss +126 -0
  230. package/src/ui/Input/Input.spec.ts +54 -0
  231. package/src/ui/Input/Input.stories.tsx +72 -0
  232. package/src/ui/Input/Input.test.tsx +70 -0
  233. package/src/ui/Input/Input.tsx +91 -0
  234. package/src/ui/Input/Input.types.ts +22 -0
  235. package/src/ui/Input/index.js +2 -0
  236. package/src/ui/Key/Key.ai.md +31 -0
  237. package/src/ui/Key/Key.jsx +37 -0
  238. package/src/ui/Key/Key.scss +31 -0
  239. package/src/ui/Key/Key.spec.ts +12 -0
  240. package/src/ui/Key/Key.stories.jsx +14 -0
  241. package/src/ui/Key/Key.stories.tsx +14 -0
  242. package/src/ui/Key/Key.test.tsx +1 -0
  243. package/src/ui/Key/Key.tsx +6 -0
  244. package/src/ui/Key/Key.types.ts +3 -0
  245. package/src/ui/Key/index.js +1 -0
  246. package/src/ui/Menu/Menu.jsx +232 -0
  247. package/src/ui/Menu/Menu.scss +370 -0
  248. package/src/ui/Menu/Menu.spec.ts +12 -0
  249. package/src/ui/Menu/Menu.stories.jsx +41 -0
  250. package/src/ui/Menu/Menu.stories.tsx +14 -0
  251. package/src/ui/Menu/Menu.test.tsx +1 -0
  252. package/src/ui/Menu/Menu.tsx +6 -0
  253. package/src/ui/Menu/Menu.types.ts +3 -0
  254. package/src/ui/Menu/index.js +1 -0
  255. package/src/ui/MicroCalendar/MicroCalendar.ai.md +35 -0
  256. package/src/ui/MicroCalendar/MicroCalendar.jsx +393 -0
  257. package/src/ui/MicroCalendar/MicroCalendar.scss +289 -0
  258. package/src/ui/MicroCalendar/MicroCalendar.spec.ts +12 -0
  259. package/src/ui/MicroCalendar/MicroCalendar.stories.jsx +14 -0
  260. package/src/ui/MicroCalendar/MicroCalendar.stories.tsx +14 -0
  261. package/src/ui/MicroCalendar/MicroCalendar.test.tsx +1 -0
  262. package/src/ui/MicroCalendar/MicroCalendar.tsx +6 -0
  263. package/src/ui/MicroCalendar/MicroCalendar.types.ts +3 -0
  264. package/src/ui/MicroCalendar/index.js +1 -0
  265. package/src/ui/Modal/Modal.ai.md +150 -0
  266. package/src/ui/Modal/Modal.jsx +173 -0
  267. package/src/ui/Modal/Modal.scss +179 -0
  268. package/src/ui/Modal/Modal.spec.ts +12 -0
  269. package/src/ui/Modal/Modal.stories.jsx +14 -0
  270. package/src/ui/Modal/Modal.stories.tsx +14 -0
  271. package/src/ui/Modal/Modal.test.tsx +1 -0
  272. package/src/ui/Modal/Modal.tsx +6 -0
  273. package/src/ui/Modal/Modal.types.ts +3 -0
  274. package/src/ui/Modal/index.js +1 -0
  275. package/src/ui/Pagination/Pagination.ai.md +30 -0
  276. package/src/ui/Pagination/Pagination.jsx +237 -0
  277. package/src/ui/Pagination/Pagination.scss +182 -0
  278. package/src/ui/Pagination/Pagination.spec.ts +12 -0
  279. package/src/ui/Pagination/Pagination.stories.jsx +14 -0
  280. package/src/ui/Pagination/Pagination.stories.tsx +14 -0
  281. package/src/ui/Pagination/Pagination.test.tsx +1 -0
  282. package/src/ui/Pagination/Pagination.tsx +6 -0
  283. package/src/ui/Pagination/Pagination.types.ts +3 -0
  284. package/src/ui/Pagination/index.js +1 -0
  285. package/src/ui/PillToggle/PillToggle.ai.md +44 -0
  286. package/src/ui/PillToggle/PillToggle.jsx +56 -0
  287. package/src/ui/PillToggle/PillToggle.scss +84 -0
  288. package/src/ui/PillToggle/PillToggle.spec.ts +12 -0
  289. package/src/ui/PillToggle/PillToggle.stories.jsx +14 -0
  290. package/src/ui/PillToggle/PillToggle.stories.tsx +14 -0
  291. package/src/ui/PillToggle/PillToggle.test.tsx +1 -0
  292. package/src/ui/PillToggle/PillToggle.tsx +6 -0
  293. package/src/ui/PillToggle/PillToggle.types.ts +3 -0
  294. package/src/ui/PillToggle/index.js +1 -0
  295. package/src/ui/Playground/Playground.ai.md +96 -0
  296. package/src/ui/Playground/Playground.jsx +524 -0
  297. package/src/ui/Playground/Playground.scss +310 -0
  298. package/src/ui/Playground/Playground.spec.ts +12 -0
  299. package/src/ui/Playground/Playground.stories.jsx +14 -0
  300. package/src/ui/Playground/Playground.stories.tsx +14 -0
  301. package/src/ui/Playground/Playground.test.tsx +1 -0
  302. package/src/ui/Playground/Playground.tsx +6 -0
  303. package/src/ui/Playground/Playground.types.ts +3 -0
  304. package/src/ui/Playground/index.js +2 -0
  305. package/src/ui/ProgressCircle/ProgressCircle.ai.md +36 -0
  306. package/src/ui/ProgressCircle/ProgressCircle.jsx +147 -0
  307. package/src/ui/ProgressCircle/ProgressCircle.scss +143 -0
  308. package/src/ui/ProgressCircle/ProgressCircle.spec.ts +12 -0
  309. package/src/ui/ProgressCircle/ProgressCircle.stories.jsx +14 -0
  310. package/src/ui/ProgressCircle/ProgressCircle.stories.tsx +14 -0
  311. package/src/ui/ProgressCircle/ProgressCircle.test.tsx +1 -0
  312. package/src/ui/ProgressCircle/ProgressCircle.tsx +6 -0
  313. package/src/ui/ProgressCircle/ProgressCircle.types.ts +3 -0
  314. package/src/ui/ProgressCircle/index.js +1 -0
  315. package/src/ui/ProgressIndicator/ProgressIndicator.ai.md +27 -0
  316. package/src/ui/ProgressIndicator/ProgressIndicator.jsx +92 -0
  317. package/src/ui/ProgressIndicator/ProgressIndicator.scss +133 -0
  318. package/src/ui/ProgressIndicator/ProgressIndicator.spec.ts +12 -0
  319. package/src/ui/ProgressIndicator/ProgressIndicator.stories.jsx +14 -0
  320. package/src/ui/ProgressIndicator/ProgressIndicator.stories.tsx +14 -0
  321. package/src/ui/ProgressIndicator/ProgressIndicator.test.tsx +1 -0
  322. package/src/ui/ProgressIndicator/ProgressIndicator.tsx +6 -0
  323. package/src/ui/ProgressIndicator/ProgressIndicator.types.ts +3 -0
  324. package/src/ui/ProgressIndicator/index.js +1 -0
  325. package/src/ui/Radio/Radio.ai.md +53 -0
  326. package/src/ui/Radio/Radio.jsx +57 -0
  327. package/src/ui/Radio/Radio.scss +89 -0
  328. package/src/ui/Radio/Radio.spec.ts +12 -0
  329. package/src/ui/Radio/Radio.stories.jsx +14 -0
  330. package/src/ui/Radio/Radio.stories.tsx +14 -0
  331. package/src/ui/Radio/Radio.test.tsx +1 -0
  332. package/src/ui/Radio/Radio.tsx +6 -0
  333. package/src/ui/Radio/Radio.types.ts +3 -0
  334. package/src/ui/Radio/index.js +1 -0
  335. package/src/ui/Slider/Slider.ai.md +33 -0
  336. package/src/ui/Slider/Slider.jsx +283 -0
  337. package/src/ui/Slider/Slider.scss +156 -0
  338. package/src/ui/Slider/Slider.spec.ts +12 -0
  339. package/src/ui/Slider/Slider.stories.jsx +14 -0
  340. package/src/ui/Slider/Slider.stories.tsx +14 -0
  341. package/src/ui/Slider/Slider.test.tsx +1 -0
  342. package/src/ui/Slider/Slider.tsx +6 -0
  343. package/src/ui/Slider/Slider.types.ts +3 -0
  344. package/src/ui/Slider/index.js +1 -0
  345. package/src/ui/Status/Status.ai.md +36 -0
  346. package/src/ui/Status/Status.jsx +66 -0
  347. package/src/ui/Status/Status.scss +90 -0
  348. package/src/ui/Status/Status.spec.ts +12 -0
  349. package/src/ui/Status/Status.stories.jsx +14 -0
  350. package/src/ui/Status/Status.stories.tsx +14 -0
  351. package/src/ui/Status/Status.test.tsx +1 -0
  352. package/src/ui/Status/Status.tsx +6 -0
  353. package/src/ui/Status/Status.types.ts +3 -0
  354. package/src/ui/Status/index.js +1 -0
  355. package/src/ui/Steps/Steps.ai.md +56 -0
  356. package/src/ui/Steps/Steps.jsx +201 -0
  357. package/src/ui/Steps/Steps.scss +240 -0
  358. package/src/ui/Steps/Steps.spec.ts +12 -0
  359. package/src/ui/Steps/Steps.stories.jsx +14 -0
  360. package/src/ui/Steps/Steps.stories.tsx +14 -0
  361. package/src/ui/Steps/Steps.test.tsx +1 -0
  362. package/src/ui/Steps/Steps.tsx +6 -0
  363. package/src/ui/Steps/Steps.types.ts +3 -0
  364. package/src/ui/Steps/index.js +1 -0
  365. package/src/ui/Table/Table.ai.md +108 -0
  366. package/src/ui/Table/Table.jsx +143 -0
  367. package/src/ui/Table/Table.scss +90 -0
  368. package/src/ui/Table/Table.spec.ts +12 -0
  369. package/src/ui/Table/Table.stories.jsx +14 -0
  370. package/src/ui/Table/Table.stories.tsx +14 -0
  371. package/src/ui/Table/Table.test.tsx +1 -0
  372. package/src/ui/Table/Table.tsx +6 -0
  373. package/src/ui/Table/Table.types.ts +3 -0
  374. package/src/ui/Table/index.js +1 -0
  375. package/src/ui/Tabs/TabItem.jsx +80 -0
  376. package/src/ui/Tabs/Tabs.ai.md +52 -0
  377. package/src/ui/Tabs/Tabs.figma.tsx +30 -0
  378. package/src/ui/Tabs/Tabs.jsx +318 -0
  379. package/src/ui/Tabs/Tabs.scss +164 -0
  380. package/src/ui/Tabs/Tabs.spec.ts +12 -0
  381. package/src/ui/Tabs/Tabs.stories.jsx +18 -0
  382. package/src/ui/Tabs/Tabs.stories.tsx +14 -0
  383. package/src/ui/Tabs/Tabs.test.tsx +1 -0
  384. package/src/ui/Tabs/Tabs.tsx +6 -0
  385. package/src/ui/Tabs/Tabs.types.ts +3 -0
  386. package/src/ui/Tabs/index.js +3 -0
  387. package/src/ui/Tag/Tag.ai.md +59 -0
  388. package/src/ui/Tag/Tag.figma.tsx +29 -0
  389. package/src/ui/Tag/Tag.jsx +93 -0
  390. package/src/ui/Tag/Tag.scss +258 -0
  391. package/src/ui/Tag/Tag.spec.ts +12 -0
  392. package/src/ui/Tag/Tag.stories.jsx +14 -0
  393. package/src/ui/Tag/Tag.stories.tsx +14 -0
  394. package/src/ui/Tag/Tag.test.tsx +1 -0
  395. package/src/ui/Tag/Tag.tsx +6 -0
  396. package/src/ui/Tag/Tag.types.ts +3 -0
  397. package/src/ui/Tag/index.js +2 -0
  398. package/src/ui/Textarea/Textarea.ai.md +40 -0
  399. package/src/ui/Textarea/Textarea.figma.tsx +35 -0
  400. package/src/ui/Textarea/Textarea.jsx +68 -0
  401. package/src/ui/Textarea/Textarea.scss +71 -0
  402. package/src/ui/Textarea/Textarea.spec.ts +12 -0
  403. package/src/ui/Textarea/Textarea.stories.jsx +14 -0
  404. package/src/ui/Textarea/Textarea.stories.tsx +14 -0
  405. package/src/ui/Textarea/Textarea.test.tsx +1 -0
  406. package/src/ui/Textarea/Textarea.tsx +6 -0
  407. package/src/ui/Textarea/Textarea.types.ts +3 -0
  408. package/src/ui/Textarea/index.js +2 -0
  409. package/src/ui/Toast/Toast.ai.md +47 -0
  410. package/src/ui/Toast/Toast.jsx +75 -0
  411. package/src/ui/Toast/Toast.scss +132 -0
  412. package/src/ui/Toast/Toast.spec.ts +12 -0
  413. package/src/ui/Toast/Toast.stories.jsx +14 -0
  414. package/src/ui/Toast/Toast.stories.tsx +14 -0
  415. package/src/ui/Toast/Toast.test.tsx +1 -0
  416. package/src/ui/Toast/Toast.tsx +6 -0
  417. package/src/ui/Toast/Toast.types.ts +3 -0
  418. package/src/ui/Toast/index.js +2 -0
  419. package/src/ui/Toggle/Toggle.ai.md +37 -0
  420. package/src/ui/Toggle/Toggle.jsx +73 -0
  421. package/src/ui/Toggle/Toggle.scss +139 -0
  422. package/src/ui/Toggle/Toggle.spec.ts +12 -0
  423. package/src/ui/Toggle/Toggle.stories.jsx +14 -0
  424. package/src/ui/Toggle/Toggle.stories.tsx +14 -0
  425. package/src/ui/Toggle/Toggle.test.tsx +1 -0
  426. package/src/ui/Toggle/Toggle.tsx +6 -0
  427. package/src/ui/Toggle/Toggle.types.ts +3 -0
  428. package/src/ui/Toggle/index.js +1 -0
  429. package/src/ui/Tooltip/Tooltip.ai.md +33 -0
  430. package/src/ui/Tooltip/Tooltip.figma.tsx +24 -0
  431. package/src/ui/Tooltip/Tooltip.jsx +125 -0
  432. package/src/ui/Tooltip/Tooltip.scss +80 -0
  433. package/src/ui/Tooltip/Tooltip.spec.ts +12 -0
  434. package/src/ui/Tooltip/Tooltip.stories.jsx +14 -0
  435. package/src/ui/Tooltip/Tooltip.stories.tsx +14 -0
  436. package/src/ui/Tooltip/Tooltip.test.tsx +1 -0
  437. package/src/ui/Tooltip/Tooltip.tsx +6 -0
  438. package/src/ui/Tooltip/Tooltip.types.ts +3 -0
  439. package/src/ui/Tooltip/index.js +2 -0
  440. package/src/ui/UDS/UDS.jsx +52 -0
  441. package/src/ui/UDS/UDS.scss +49 -0
  442. package/src/ui/UDS/UDS.spec.ts +12 -0
  443. package/src/ui/UDS/UDS.stories.jsx +22 -0
  444. package/src/ui/UDS/UDS.stories.tsx +14 -0
  445. package/src/ui/UDS/UDS.test.tsx +1 -0
  446. package/src/ui/UDS/UDS.tsx +6 -0
  447. package/src/ui/UDS/UDS.types.ts +3 -0
  448. package/src/ui/UDS/index.js +1 -0
  449. package/src/ui/_spec/createMetaFromSpec.ts +35 -0
  450. package/src/ui/_spec/createStoryArgsFromSpec.ts +8 -0
  451. package/src/ui/_spec/generated/spec-props-reference.md +55 -0
  452. package/src/ui/_spec/specStorySync.test.ts +73 -0
  453. package/src/ui/_spec/types.ts +21 -0
  454. package/src/ui/index.js +66 -0
@@ -0,0 +1,310 @@
1
+ @use "../../styles/typography" as *;
2
+
3
+ .playground {
4
+ background: white;
5
+ border: var(--uds-border-width-1) solid var(--uds-border-primary);
6
+ border-radius: var(--uds-radius-8);
7
+ margin-bottom: var(--uds-spacing-48);
8
+ overflow: hidden;
9
+
10
+ &__container {
11
+ display: flex;
12
+ min-height: 600px;
13
+ }
14
+
15
+ // Canvas (Left Side)
16
+ &__canvas {
17
+ flex: 1 0 0;
18
+ background: var(--uds-surface-tertiary);
19
+ position: relative;
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ padding: var(--uds-spacing-48);
24
+ min-height: 600px;
25
+ }
26
+
27
+ &__canvas-content {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ width: 100%;
32
+ }
33
+
34
+ // Floating Action Bar
35
+ &__actions {
36
+ position: absolute;
37
+ bottom: var(--uds-spacing-24);
38
+ left: 50%;
39
+ transform: translateX(-50%);
40
+ display: flex;
41
+ align-items: center;
42
+ gap: var(--uds-gap-8);
43
+ background: white;
44
+ border: var(--uds-border-width-1) solid var(--uds-border-primary);
45
+ border-radius: var(--uds-radius-9999);
46
+ padding: var(--uds-spacing-13) var(--uds-spacing-25);
47
+ box-shadow: var(--uds-shadow-lg);
48
+ }
49
+
50
+ &__actions-divider {
51
+ width: 1px;
52
+ height: 32px;
53
+ background: var(--uds-border-primary);
54
+ }
55
+
56
+ // Panel (Right Side)
57
+ &__panel {
58
+ width: 360px;
59
+ border-left: var(--uds-border-width-1) solid var(--uds-border-primary);
60
+ display: flex;
61
+ flex-direction: column;
62
+ background: white;
63
+ }
64
+
65
+ &__panel-header {
66
+ border-bottom: var(--uds-border-width-1) solid var(--uds-border-primary);
67
+ padding: var(--uds-spacing-16);
68
+ display: flex;
69
+ align-items: flex-start;
70
+ justify-content: space-between;
71
+ gap: var(--uds-gap-16);
72
+ }
73
+
74
+ &__panel-header-content {
75
+ flex: 1 0 0;
76
+ display: flex;
77
+ flex-direction: column;
78
+ gap: 0;
79
+ }
80
+
81
+ &__panel-title-row {
82
+ display: flex;
83
+ align-items: center;
84
+ gap: var(--uds-gap-8);
85
+ margin-bottom: 0;
86
+ }
87
+
88
+ &__panel-title {
89
+ @include uds-heading-20-semibold;
90
+ margin: 0;
91
+ color: var(--uds-text-primary);
92
+ flex: 1 0 0;
93
+ }
94
+
95
+ &__panel-subtitle {
96
+ @include uds-body-12;
97
+ margin: 0;
98
+ color: var(--uds-text-secondary);
99
+ }
100
+
101
+ &__panel-content {
102
+ flex: 1 0 0;
103
+ padding: var(--uds-spacing-16);
104
+ overflow-y: auto;
105
+ }
106
+
107
+ // Sections
108
+ &__section {
109
+ margin-bottom: var(--uds-gap-24);
110
+
111
+ &:last-child {
112
+ margin-bottom: 0;
113
+ }
114
+ }
115
+
116
+ &__section-title {
117
+ @include uds-body-14-semibold;
118
+ display: flex;
119
+ align-items: center;
120
+ gap: var(--uds-gap-4);
121
+ color: var(--uds-text-primary);
122
+ margin-bottom: var(--uds-gap-16);
123
+ height: 20px;
124
+ }
125
+
126
+ &__section-content {
127
+ display: flex;
128
+ flex-direction: column;
129
+ gap: var(--uds-gap-16);
130
+ }
131
+
132
+ // Fields
133
+ &__field {
134
+ display: flex;
135
+ flex-direction: column;
136
+ gap: var(--uds-gap-4);
137
+ }
138
+
139
+ &__field-head {
140
+ display: flex;
141
+ align-items: center;
142
+ padding-bottom: var(--uds-spacing-4);
143
+ }
144
+
145
+ &__field-label {
146
+ @include uds-body-12-medium;
147
+ color: var(--uds-text-primary);
148
+ margin: 0;
149
+ }
150
+
151
+ &__field-body {
152
+ display: flex;
153
+ flex-direction: column;
154
+ max-height: 400px;
155
+ }
156
+
157
+ &__input {
158
+ @include uds-body-14;
159
+ background: var(--uds-input-surface, #f9fafc);
160
+ border: var(--uds-border-width-1) solid var(--uds-input-border, #d2d5dc);
161
+ border-radius: var(--uds-radius-4);
162
+ padding: var(--uds-spacing-8) var(--uds-spacing-14);
163
+ color: var(--uds-text-primary);
164
+ width: 100%;
165
+ transition: all var(--uds-animation-duration-200) var(--uds-animation-ease-standard);
166
+
167
+ &:focus {
168
+ outline: none;
169
+ border-color: var(--uds-border-brand-primary);
170
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
171
+ }
172
+
173
+ &:hover:not(:disabled) {
174
+ border-color: var(--uds-border-brand-primary);
175
+ }
176
+ }
177
+
178
+ &__select-trigger {
179
+ @include uds-body-14;
180
+ display: flex;
181
+ align-items: center;
182
+ justify-content: space-between;
183
+ gap: var(--uds-gap-8);
184
+ background: var(--uds-input-surface, #f9fafc);
185
+ border: var(--uds-border-width-1) solid var(--uds-input-border, #d2d5dc);
186
+ border-radius: var(--uds-radius-4);
187
+ padding: var(--uds-spacing-8) var(--uds-spacing-14);
188
+ color: var(--uds-text-primary);
189
+ width: 100%;
190
+ cursor: pointer;
191
+ text-align: left;
192
+ transition: all var(--uds-animation-duration-200) var(--uds-animation-ease-standard);
193
+
194
+ &:focus {
195
+ outline: none;
196
+ border-color: var(--uds-border-brand-primary);
197
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
198
+ }
199
+
200
+ &:hover:not(:disabled) {
201
+ border-color: var(--uds-border-brand-primary);
202
+ }
203
+ }
204
+
205
+ &__select-value {
206
+ flex: 1;
207
+ overflow: hidden;
208
+ text-overflow: ellipsis;
209
+ white-space: nowrap;
210
+ }
211
+
212
+ // States
213
+ &__states-list {
214
+ display: flex;
215
+ flex-direction: column;
216
+ gap: var(--uds-gap-12);
217
+ }
218
+
219
+ &__state-item {
220
+ background: var(--uds-surface-secondary);
221
+ border: var(--uds-border-width-1) solid var(--uds-border-primary);
222
+ border-radius: var(--uds-radius-4);
223
+ padding: var(--uds-spacing-1) var(--uds-spacing-13);
224
+ height: 44px;
225
+ display: flex;
226
+ align-items: center;
227
+ justify-content: space-between;
228
+ }
229
+
230
+ &__state-label {
231
+ @include uds-body-14-medium;
232
+ color: var(--uds-text-primary);
233
+ margin: 0;
234
+ }
235
+
236
+ &__checkbox {
237
+ width: 24px;
238
+ height: 24px;
239
+ cursor: pointer;
240
+ accent-color: var(--uds-surface-brand-primary);
241
+ }
242
+
243
+ // Code View
244
+ &__code-container {
245
+ flex: 1 0 0;
246
+ position: relative;
247
+ background: linear-gradient(
248
+ 129.403deg,
249
+ rgb(16, 24, 40) 0%,
250
+ rgb(30, 41, 57) 100%
251
+ );
252
+ padding: var(--uds-spacing-24);
253
+ overflow-y: auto;
254
+ }
255
+
256
+ &__code-block {
257
+ height: 273px;
258
+ overflow-y: auto;
259
+ }
260
+
261
+ &__code-pre {
262
+ @include uds-body-14;
263
+ margin: 0;
264
+ font-family: "Menlo", "Monaco", "Ubuntu Mono", monospace;
265
+ line-height: 20px;
266
+ color: var(--uds-text-inverse);
267
+ }
268
+
269
+ &__code {
270
+ font-family: inherit;
271
+ color: var(--uds-text-inverse);
272
+ white-space: pre;
273
+
274
+ // Inline styles handle syntax highlighting
275
+ span {
276
+ font-family: inherit;
277
+ }
278
+ }
279
+
280
+ // Pro Tips
281
+ &__pro-tips {
282
+ background: var(--uds-surface-secondary);
283
+ border-top: var(--uds-border-width-1) solid var(--uds-border-primary);
284
+ padding: var(--uds-spacing-17) var(--uds-spacing-16) var(--uds-spacing-0);
285
+ height: 113px;
286
+ }
287
+
288
+ &__pro-tips-title {
289
+ @include uds-body-12-semibold;
290
+ color: var(--uds-text-primary);
291
+ margin: 0 0 var(--uds-gap-4) 0;
292
+ }
293
+
294
+ &__pro-tips-list {
295
+ @include uds-body-12;
296
+ color: var(--uds-text-secondary);
297
+ margin: 0;
298
+ padding-left: var(--uds-spacing-18);
299
+ list-style: disc;
300
+
301
+ li {
302
+ margin-bottom: var(--uds-gap-4);
303
+ line-height: 16px;
304
+
305
+ &:last-child {
306
+ margin-bottom: 0;
307
+ }
308
+ }
309
+ }
310
+ }
@@ -0,0 +1,12 @@
1
+ export const PLAYGROUND_DEFAULTS = {
2
+ className: "",
3
+ } as const;
4
+
5
+ export const PLAYGROUND_STORY_SPEC = {
6
+ defaults: {
7
+ className: PLAYGROUND_DEFAULTS.className,
8
+ },
9
+ stories: {
10
+ default: {},
11
+ },
12
+ } as const;
@@ -0,0 +1,14 @@
1
+ import Playground from "./Playground";
2
+
3
+ export default {
4
+ title: "Components/Playground",
5
+ component: Playground,
6
+ tags: ["autodocs"],
7
+ parameters: {
8
+ layout: "padded",
9
+ },
10
+ };
11
+
12
+ export const Default = {
13
+ args: {},
14
+ };
@@ -0,0 +1,14 @@
1
+ import Playground from "./Playground.jsx";
2
+
3
+ export default {
4
+ title: "Components/Playground",
5
+ component: Playground,
6
+ tags: ["autodocs"],
7
+ parameters: {
8
+ layout: "padded",
9
+ },
10
+ };
11
+
12
+ export const Default = {
13
+ args: {},
14
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { ComponentType } from "react";
2
+ import LegacyPlayground from "./Playground.jsx";
3
+
4
+ const Playground = LegacyPlayground as ComponentType<any>;
5
+
6
+ export default Playground;
@@ -0,0 +1,3 @@
1
+ export interface PlaygroundProps {
2
+ className?: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Playground } from "./Playground";
2
+ export { default } from "./Playground";
@@ -0,0 +1,36 @@
1
+ # ProgressCircle
2
+
3
+ Circular progress indicator showing percentage completion.
4
+
5
+ ## When to Use
6
+ - Upload progress, loading states
7
+ - Skill/score displays, dashboards
8
+ - Any circular completion visualization
9
+
10
+ ## Props
11
+
12
+ | Prop | Type | Default | Description |
13
+ |------|------|---------|-------------|
14
+ | `value` | `number` | `0` | Progress percentage (0–100) |
15
+ | `size` | `number` | `80` | Circle diameter in pixels |
16
+ | `strokeWidth` | `number` | `8` | Stroke width in pixels |
17
+ | `color` | `string` | `"blue"` | Track color |
18
+ | `showValue` | `boolean` | `true` | Show percentage text in center |
19
+ | `className` | `string` | `""` | Additional CSS classes |
20
+
21
+ ## Examples
22
+
23
+ ```jsx
24
+ <ProgressCircle value={75} />
25
+ <ProgressCircle value={100} color="green" />
26
+ <ProgressCircle value={30} size={48} strokeWidth={4} />
27
+ ```
28
+
29
+ ### Dashboard widget
30
+ ```jsx
31
+ <Flex gap="24">
32
+ <ProgressCircle value={metrics.completion} color="green" />
33
+ <ProgressCircle value={metrics.quality} color="blue" />
34
+ <ProgressCircle value={metrics.speed} color="orange" />
35
+ </Flex>
36
+ ```
@@ -0,0 +1,147 @@
1
+ import React from "react";
2
+ import "./ProgressCircle.scss";
3
+
4
+ const BASE_CLASS = "uds-progress-circle";
5
+
6
+ const sizeClassMap = {
7
+ xxs: "xxs",
8
+ xs: "xs",
9
+ sm: "sm",
10
+ md: "md",
11
+ lg: "lg",
12
+ };
13
+
14
+ const shapeClassMap = {
15
+ circle: "circle",
16
+ "half-circle": "half-circle",
17
+ };
18
+
19
+ /**
20
+ * ProgressCircle component for displaying circular progress indicators
21
+ * @param {number} value - Progress value (0-100)
22
+ * @param {number} max - Maximum value (default: 100)
23
+ * @param {string} size - Size variant: 'xxs', 'xs', 'sm', 'md', or 'lg'
24
+ * @param {string} shape - Shape variant: 'circle' (full circle) or 'half-circle' (semi-circle)
25
+ * @param {string} label - Optional label text to display
26
+ * @param {boolean} showLabel - Whether to show the label (if provided)
27
+ * @param {string} className - Additional CSS classes
28
+ * @param {string} 'aria-label' - Accessible label for screen readers
29
+ * @param {object} props - Additional props to pass to the progress element
30
+ */
31
+ export default function ProgressCircle({
32
+ value = 40,
33
+ max = 100,
34
+ size = "md",
35
+ shape = "circle",
36
+ label,
37
+ showLabel = true,
38
+ className = "",
39
+ "aria-label": ariaLabel,
40
+ ...props
41
+ }) {
42
+ const percentage = Math.min(Math.max((value / max) * 100, 0), 100);
43
+ const displayValue = Math.round(percentage);
44
+
45
+ // Calculate SVG properties based on size
46
+ const sizeConfig = {
47
+ xxs: { size: 64, strokeWidth: 3, fontSize: 14, labelFontSize: 12 },
48
+ xs: { size: 160, strokeWidth: 8, fontSize: 24, labelFontSize: 12 },
49
+ sm: { size: 200, strokeWidth: 10, fontSize: 32, labelFontSize: 12 },
50
+ md: { size: 240, strokeWidth: 12, fontSize: 36, labelFontSize: 12 },
51
+ lg: { size: 280, strokeWidth: 14, fontSize: 48, labelFontSize: 12 },
52
+ };
53
+
54
+ const config = sizeConfig[size] || sizeConfig.md;
55
+ const radius = (config.size - config.strokeWidth) / 2;
56
+ const circumference =
57
+ shape === "half-circle"
58
+ ? Math.PI * radius // Half circle
59
+ : 2 * Math.PI * radius; // Full circle
60
+ const offset = circumference - (percentage / 100) * circumference;
61
+
62
+ const classNames = [
63
+ BASE_CLASS,
64
+ sizeClassMap[size] && `${BASE_CLASS}--${sizeClassMap[size]}`,
65
+ shapeClassMap[shape] && `${BASE_CLASS}--${shapeClassMap[shape]}`,
66
+ className,
67
+ ]
68
+ .filter(Boolean)
69
+ .join(" ");
70
+
71
+ const progressId = `progress-circle-${Math.random().toString(36).substr(2, 9)}`;
72
+ const labelId = label ? `${progressId}-label` : undefined;
73
+
74
+ // SVG viewBox and dimensions
75
+ const viewBoxSize = config.size;
76
+ const centerX = viewBoxSize / 2;
77
+ const centerY = viewBoxSize / 2;
78
+
79
+ // For half-circle, we need to adjust the SVG
80
+ const svgHeight = shape === "half-circle" ? viewBoxSize / 2 : viewBoxSize;
81
+ const svgCenterY = shape === "half-circle" ? viewBoxSize : centerY;
82
+
83
+ return (
84
+ <div
85
+ className={classNames}
86
+ role="progressbar"
87
+ aria-valuenow={value}
88
+ aria-valuemin={0}
89
+ aria-valuemax={max}
90
+ aria-label={ariaLabel || label || `Progress: ${displayValue}%`}
91
+ aria-labelledby={labelId}
92
+ {...props}
93
+ >
94
+ <svg
95
+ className={`${BASE_CLASS}__svg`}
96
+ width={config.size}
97
+ height={svgHeight}
98
+ viewBox={`0 ${shape === "half-circle" ? viewBoxSize / 2 : 0} ${viewBoxSize} ${svgHeight}`}
99
+ >
100
+ {/* Background track */}
101
+ <circle
102
+ className={`${BASE_CLASS}__track`}
103
+ cx={centerX}
104
+ cy={svgCenterY}
105
+ r={radius}
106
+ fill="none"
107
+ strokeWidth={config.strokeWidth}
108
+ strokeDasharray={circumference}
109
+ strokeDashoffset={shape === "half-circle" ? circumference / 2 : 0}
110
+ pathLength={circumference}
111
+ />
112
+
113
+ {/* Progress fill */}
114
+ <circle
115
+ className={`${BASE_CLASS}__fill`}
116
+ cx={centerX}
117
+ cy={svgCenterY}
118
+ r={radius}
119
+ fill="none"
120
+ strokeWidth={config.strokeWidth}
121
+ strokeDasharray={circumference}
122
+ strokeDashoffset={
123
+ shape === "half-circle" ? circumference / 2 + offset : offset
124
+ }
125
+ pathLength={circumference}
126
+ strokeLinecap="round"
127
+ transform={`rotate(-90 ${centerX} ${svgCenterY})`}
128
+ />
129
+ </svg>
130
+
131
+ {/* Content overlay */}
132
+ <div className={`${BASE_CLASS}__content`}>
133
+ {label && showLabel && (
134
+ <span id={labelId} className={`${BASE_CLASS}__label`}>
135
+ {label}
136
+ </span>
137
+ )}
138
+ <span
139
+ className={`${BASE_CLASS}__value`}
140
+ style={{ fontSize: `${config.fontSize}px` }}
141
+ >
142
+ {displayValue}%
143
+ </span>
144
+ </div>
145
+ </div>
146
+ );
147
+ }
@@ -0,0 +1,143 @@
1
+ @use "../../styles/typography" as *;
2
+
3
+ .uds-progress-circle {
4
+ position: relative;
5
+ display: inline-flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+
9
+ &__svg {
10
+ display: block;
11
+ }
12
+
13
+ &__track {
14
+ stroke: #e6e7eb; // Light gray track
15
+ transition: stroke-dashoffset var(--uds-animation-duration-300)
16
+ var(--uds-animation-ease-standard);
17
+ }
18
+
19
+ &__fill {
20
+ stroke: var(--uds-surface-brand-primary, #0c6bb0); // Brand blue
21
+ transition: stroke-dashoffset var(--uds-animation-duration-300)
22
+ var(--uds-animation-ease-standard);
23
+ }
24
+
25
+ &__content {
26
+ position: absolute;
27
+ top: 50%;
28
+ left: 50%;
29
+ transform: translate(-50%, -50%);
30
+ display: flex;
31
+ flex-direction: column;
32
+ align-items: center;
33
+ justify-content: center;
34
+ text-align: center;
35
+ gap: var(--uds-gap-4);
36
+ }
37
+
38
+ &__label {
39
+ @include uds-body-12-medium;
40
+ color: var(--uds-text-tertiary, #6b7380);
41
+ white-space: nowrap;
42
+ }
43
+
44
+ &__value {
45
+ @include uds-body-14-semibold;
46
+ color: var(--uds-text-primary, #202938);
47
+ font-weight: 600;
48
+ line-height: 1;
49
+ white-space: nowrap;
50
+ }
51
+
52
+ // Size variants
53
+ &--xxs {
54
+ width: 64px;
55
+ height: 64px;
56
+
57
+ .uds-progress-circle__value {
58
+ font-size: 14px;
59
+ line-height: 20px;
60
+ color: var(--uds-text-secondary, #4c5564);
61
+ }
62
+
63
+ .uds-progress-circle__label {
64
+ font-size: 12px;
65
+ line-height: 18px;
66
+ }
67
+
68
+ &.uds-progress-circle--half-circle {
69
+ height: 36px;
70
+ }
71
+ }
72
+
73
+ &--xs {
74
+ width: 160px;
75
+ height: 160px;
76
+
77
+ .uds-progress-circle__value {
78
+ font-size: 24px;
79
+ line-height: 32px;
80
+ }
81
+
82
+ &.uds-progress-circle--half-circle {
83
+ height: 88px;
84
+ }
85
+ }
86
+
87
+ &--sm {
88
+ width: 200px;
89
+ height: 200px;
90
+
91
+ .uds-progress-circle__value {
92
+ font-size: 32px;
93
+ line-height: 40px;
94
+ }
95
+
96
+ &.uds-progress-circle--half-circle {
97
+ height: 110px;
98
+ }
99
+ }
100
+
101
+ &--md {
102
+ width: 240px;
103
+ height: 240px;
104
+
105
+ .uds-progress-circle__value {
106
+ font-size: 36px;
107
+ line-height: 44px;
108
+ letter-spacing: -0.72px;
109
+ }
110
+
111
+ &.uds-progress-circle--half-circle {
112
+ height: 132px;
113
+ }
114
+ }
115
+
116
+ &--lg {
117
+ width: 280px;
118
+ height: 280px;
119
+
120
+ .uds-progress-circle__value {
121
+ font-size: 48px;
122
+ line-height: 60px;
123
+ letter-spacing: -0.96px;
124
+ }
125
+
126
+ &.uds-progress-circle--half-circle {
127
+ height: 154px;
128
+ }
129
+ }
130
+
131
+ // Half circle adjustments
132
+ &--half-circle {
133
+ .uds-progress-circle__content {
134
+ top: auto;
135
+ bottom: 0;
136
+ transform: translateX(-50%);
137
+ }
138
+
139
+ .uds-progress-circle__svg {
140
+ overflow: visible;
141
+ }
142
+ }
143
+ }
@@ -0,0 +1,12 @@
1
+ export const PROGRESS_CIRCLE_DEFAULTS = {
2
+ className: "",
3
+ } as const;
4
+
5
+ export const PROGRESS_CIRCLE_STORY_SPEC = {
6
+ defaults: {
7
+ className: PROGRESS_CIRCLE_DEFAULTS.className,
8
+ },
9
+ stories: {
10
+ default: {},
11
+ },
12
+ } as const;