@teseor/css 1.14.3 → 1.15.1

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 (464) hide show
  1. package/package.json +1 -1
  2. package/src/base/docs.html +19 -0
  3. package/src/base/typography/docs.html +159 -0
  4. package/src/components/actions/button/docs.html +73 -0
  5. package/src/components/actions/button/{button.visual.spec.ts → visual.spec.ts} +4 -4
  6. package/src/components/actions/button-group/docs.html +44 -0
  7. package/src/components/actions/button-group/{button-group.visual.spec.ts → visual.spec.ts} +4 -4
  8. package/src/components/actions/close-button/docs.html +74 -0
  9. package/src/components/actions/close-button/{close-button.visual.spec.ts → visual.spec.ts} +4 -4
  10. package/src/components/content/divider/docs.html +25 -0
  11. package/src/components/content/divider/{divider.visual.spec.ts → visual.spec.ts} +4 -4
  12. package/src/components/content/scroll-area/docs.html +127 -0
  13. package/src/components/content/scroll-area/visual.png +0 -0
  14. package/src/components/content/scroll-area/{scroll-area.visual.spec.ts → visual.spec.ts} +4 -4
  15. package/src/components/content/spacer/docs.html +20 -0
  16. package/src/components/content/spacer/{spacer.visual.spec.ts → visual.spec.ts} +4 -4
  17. package/src/components/data-display/avatar/docs.html +64 -0
  18. package/src/components/data-display/avatar/{avatar.visual.spec.ts → visual.spec.ts} +4 -4
  19. package/src/components/data-display/badge/docs.html +37 -0
  20. package/src/components/data-display/badge/{badge.visual.spec.ts → visual.spec.ts} +4 -4
  21. package/src/components/data-display/card/docs.html +33 -0
  22. package/src/components/data-display/card/visual.png +0 -0
  23. package/src/components/data-display/card/{card.visual.spec.ts → visual.spec.ts} +4 -4
  24. package/src/components/data-display/data-list/docs.html +94 -0
  25. package/src/components/data-display/data-list/{data-list-visual.png → visual.png} +0 -0
  26. package/src/components/data-display/data-list/{data-list.visual.spec.ts → visual.spec.ts} +4 -4
  27. package/src/components/data-display/icon/docs.html +69 -0
  28. package/src/components/data-display/icon/{icon.visual.spec.ts → visual.spec.ts} +4 -4
  29. package/src/components/data-display/image/docs.html +64 -0
  30. package/src/components/data-display/image/visual.png +0 -0
  31. package/src/components/data-display/image/{image.visual.spec.ts → visual.spec.ts} +4 -4
  32. package/src/components/data-display/stat/docs.html +32 -0
  33. package/src/components/data-display/stat/{stat.visual.spec.ts → visual.spec.ts} +4 -4
  34. package/src/components/data-display/status/docs.html +64 -0
  35. package/src/components/data-display/status/{status.visual.spec.ts → visual.spec.ts} +4 -4
  36. package/src/components/data-display/table/docs.html +70 -0
  37. package/src/components/data-display/table/{table.visual.spec.ts → visual.spec.ts} +4 -4
  38. package/src/components/data-display/tag/docs.html +39 -0
  39. package/src/components/data-display/tag/{tag.visual.spec.ts → visual.spec.ts} +4 -4
  40. package/src/components/disclosure/accordion/docs.html +80 -0
  41. package/src/components/disclosure/accordion/{accordion.visual.spec.ts → visual.spec.ts} +4 -4
  42. package/src/components/disclosure/disclosure/docs.html +48 -0
  43. package/src/components/disclosure/disclosure/{disclosure.visual.spec.ts → visual.spec.ts} +4 -4
  44. package/src/components/feedback/alert/docs.html +87 -0
  45. package/src/components/feedback/alert/{alert.visual.spec.ts → visual.spec.ts} +4 -4
  46. package/src/components/feedback/progress/docs.html +62 -0
  47. package/src/components/feedback/progress/{progress.visual.spec.ts → visual.spec.ts} +4 -4
  48. package/src/components/feedback/progress-circle/docs.html +62 -0
  49. package/src/components/feedback/progress-circle/{progress-circle.visual.spec.ts → visual.spec.ts} +4 -4
  50. package/src/components/feedback/skeleton/docs.html +37 -0
  51. package/src/components/feedback/skeleton/{skeleton.visual.spec.ts → visual.spec.ts} +4 -4
  52. package/src/components/feedback/spinner/docs.html +26 -0
  53. package/src/components/feedback/spinner/{spinner.visual.spec.ts → visual.spec.ts} +4 -4
  54. package/src/components/feedback/toast/docs.html +106 -0
  55. package/src/components/feedback/toast/visual.png +0 -0
  56. package/src/components/feedback/toast/{toast.visual.spec.ts → visual.spec.ts} +4 -4
  57. package/src/components/forms/checkbox/docs.html +30 -0
  58. package/src/components/forms/checkbox/{checkbox.visual.spec.ts → visual.spec.ts} +4 -4
  59. package/src/components/forms/checkbox-group/docs.html +101 -0
  60. package/src/components/forms/checkbox-group/{checkbox-group.visual.spec.ts → visual.spec.ts} +4 -4
  61. package/src/components/forms/field/docs.html +60 -0
  62. package/src/components/forms/field/{field.visual.spec.ts → visual.spec.ts} +4 -4
  63. package/src/components/forms/fieldset/docs.html +119 -0
  64. package/src/components/forms/fieldset/{fieldset.visual.spec.ts → visual.spec.ts} +4 -4
  65. package/src/components/forms/form/docs.html +129 -0
  66. package/src/components/forms/form/{form.visual.spec.ts → visual.spec.ts} +4 -4
  67. package/src/components/forms/form-error/docs.html +15 -0
  68. package/src/components/forms/form-error/{form-error.visual.spec.ts → visual.spec.ts} +4 -4
  69. package/src/components/forms/form-helper/docs.html +39 -0
  70. package/src/components/forms/form-helper/{form-helper.visual.spec.ts → visual.spec.ts} +4 -4
  71. package/src/components/forms/input/docs.html +66 -0
  72. package/src/components/forms/input/visual.png +0 -0
  73. package/src/components/forms/input/{input.visual.spec.ts → visual.spec.ts} +4 -4
  74. package/src/components/forms/label/docs.html +26 -0
  75. package/src/components/forms/label/visual.png +0 -0
  76. package/src/components/forms/label/{label.visual.spec.ts → visual.spec.ts} +4 -4
  77. package/src/components/forms/number-input/docs.html +97 -0
  78. package/src/components/forms/number-input/visual.png +0 -0
  79. package/src/components/forms/number-input/{number-input.visual.spec.ts → visual.spec.ts} +4 -4
  80. package/src/components/forms/password-input/docs.html +85 -0
  81. package/src/components/forms/password-input/visual.png +0 -0
  82. package/src/components/forms/password-input/{password-input.visual.spec.ts → visual.spec.ts} +4 -4
  83. package/src/components/forms/radio/docs.html +49 -0
  84. package/src/components/forms/radio/{radio.visual.spec.ts → visual.spec.ts} +4 -4
  85. package/src/components/forms/radio-group/docs.html +97 -0
  86. package/src/components/forms/radio-group/{radio-group.visual.spec.ts → visual.spec.ts} +4 -4
  87. package/src/components/forms/search-input/docs.html +84 -0
  88. package/src/components/forms/search-input/visual.png +0 -0
  89. package/src/components/forms/search-input/{search-input.visual.spec.ts → visual.spec.ts} +4 -4
  90. package/src/components/forms/select/docs.html +67 -0
  91. package/src/components/forms/select/visual.png +0 -0
  92. package/src/components/forms/select/{select.visual.spec.ts → visual.spec.ts} +4 -4
  93. package/src/components/forms/slider/docs.html +22 -0
  94. package/src/components/forms/slider/visual.png +0 -0
  95. package/src/components/forms/slider/{slider.visual.spec.ts → visual.spec.ts} +4 -4
  96. package/src/components/forms/textarea/docs.html +36 -0
  97. package/src/components/forms/textarea/visual.png +0 -0
  98. package/src/components/forms/textarea/{textarea.visual.spec.ts → visual.spec.ts} +4 -4
  99. package/src/components/forms/toggle/docs.html +61 -0
  100. package/src/components/forms/toggle/{toggle.visual.spec.ts → visual.spec.ts} +4 -4
  101. package/src/components/navigation/breadcrumb/docs.html +57 -0
  102. package/src/components/navigation/breadcrumb/{breadcrumb.visual.spec.ts → visual.spec.ts} +4 -4
  103. package/src/components/navigation/dropdown-menu/docs.html +103 -0
  104. package/src/components/navigation/dropdown-menu/visual.png +0 -0
  105. package/src/components/navigation/dropdown-menu/{dropdown-menu.visual.spec.ts → visual.spec.ts} +4 -4
  106. package/src/components/navigation/menu/docs.html +119 -0
  107. package/src/components/navigation/menu/{menu.visual.spec.ts → visual.spec.ts} +4 -4
  108. package/src/components/navigation/nav/docs.html +71 -0
  109. package/src/components/navigation/nav/{nav.visual.spec.ts → visual.spec.ts} +4 -4
  110. package/src/components/navigation/pagination/docs.html +113 -0
  111. package/src/components/navigation/pagination/visual.png +0 -0
  112. package/src/components/navigation/pagination/{pagination.visual.spec.ts → visual.spec.ts} +4 -4
  113. package/src/components/navigation/tabs/docs.html +63 -0
  114. package/src/components/navigation/tabs/{tabs.visual.spec.ts → visual.spec.ts} +4 -4
  115. package/src/components/overlays/dialog/docs.html +58 -0
  116. package/src/components/overlays/dialog/{dialog.visual.spec.ts → visual.spec.ts} +4 -4
  117. package/src/components/overlays/drawer/docs.html +87 -0
  118. package/src/components/overlays/drawer/visual.png +0 -0
  119. package/src/components/overlays/drawer/{drawer.visual.spec.ts → visual.spec.ts} +4 -4
  120. package/src/components/overlays/modal/docs.html +66 -0
  121. package/src/components/overlays/modal/{modal.visual.spec.ts → visual.spec.ts} +4 -4
  122. package/src/components/overlays/overlay/docs.html +27 -0
  123. package/src/components/overlays/overlay/{overlay.visual.spec.ts → visual.spec.ts} +4 -4
  124. package/src/components/overlays/popover/docs.html +38 -0
  125. package/src/components/overlays/popover/{popover.visual.spec.ts → visual.spec.ts} +4 -4
  126. package/src/components/overlays/tooltip/docs.html +30 -0
  127. package/src/components/overlays/tooltip/{tooltip.visual.spec.ts → visual.spec.ts} +4 -4
  128. package/src/components/typography/blockquote/docs.html +21 -0
  129. package/src/components/typography/blockquote/{blockquote.visual.spec.ts → visual.spec.ts} +4 -4
  130. package/src/components/typography/code/docs.html +20 -0
  131. package/src/components/typography/code/visual.png +0 -0
  132. package/src/components/typography/code/{code.visual.spec.ts → visual.spec.ts} +4 -4
  133. package/src/components/typography/code-block/docs.html +84 -0
  134. package/src/components/typography/code-block/visual.png +0 -0
  135. package/src/components/typography/code-block/{code-block.visual.spec.ts → visual.spec.ts} +4 -4
  136. package/src/components/typography/heading/docs.html +23 -0
  137. package/src/components/typography/heading/visual.png +0 -0
  138. package/src/components/typography/heading/{heading.visual.spec.ts → visual.spec.ts} +4 -4
  139. package/src/components/typography/kbd/docs.html +14 -0
  140. package/src/components/typography/kbd/{kbd.visual.spec.ts → visual.spec.ts} +4 -4
  141. package/src/components/typography/link/docs.html +30 -0
  142. package/src/components/typography/link/{link.visual.spec.ts → visual.spec.ts} +4 -4
  143. package/src/components/typography/list/docs.html +76 -0
  144. package/src/components/typography/list/{list.visual.spec.ts → visual.spec.ts} +4 -4
  145. package/src/components/typography/mark/docs.html +10 -0
  146. package/src/components/typography/mark/{mark.visual.spec.ts → visual.spec.ts} +4 -4
  147. package/src/config/guides/accessibility.docs.html +106 -0
  148. package/src/config/guides/getting-started.docs.html +45 -0
  149. package/src/config/guides/theming.docs.html +69 -0
  150. package/src/config/tokens/colors/docs.html +73 -0
  151. package/src/config/tokens/docs.html +115 -0
  152. package/src/config/tokens/grid/docs.html +10 -0
  153. package/src/config/tokens/spacing/docs.html +31 -0
  154. package/src/debug/docs.html +27 -0
  155. package/src/layout/app-shell/docs.html +100 -0
  156. package/src/layout/app-shell/visual.png +0 -0
  157. package/src/layout/app-shell/visual.spec.ts +13 -0
  158. package/src/layout/aspect-ratio/docs.html +38 -0
  159. package/src/layout/aspect-ratio/{aspect-ratio.visual.spec.ts → visual.spec.ts} +4 -4
  160. package/src/layout/box/docs.html +24 -0
  161. package/src/layout/box/visual.png +0 -0
  162. package/src/layout/box/visual.spec.ts +13 -0
  163. package/src/layout/center/docs.html +23 -0
  164. package/src/layout/center/visual.spec.ts +13 -0
  165. package/src/layout/column/docs.html +29 -0
  166. package/src/layout/column/visual.spec.ts +13 -0
  167. package/src/layout/container/docs.html +34 -0
  168. package/src/layout/content/docs.html +35 -0
  169. package/src/layout/content/{content-visual.png → visual.png} +0 -0
  170. package/src/layout/content/visual.spec.ts +18 -0
  171. package/src/layout/footer/docs.html +70 -0
  172. package/src/layout/footer/visual.png +0 -0
  173. package/src/layout/footer/visual.spec.ts +18 -0
  174. package/src/layout/grid/docs.html +85 -0
  175. package/src/layout/grid/visual.spec.ts +13 -0
  176. package/src/layout/main/docs.html +28 -0
  177. package/src/layout/nav-rail/docs.html +39 -0
  178. package/src/layout/nav-rail/visual.png +0 -0
  179. package/src/layout/nav-rail/visual.spec.ts +18 -0
  180. package/src/layout/page-header/docs.html +49 -0
  181. package/src/layout/page-header/{page-header.visual.spec.ts → visual.spec.ts} +8 -4
  182. package/src/layout/row/docs.html +44 -0
  183. package/src/layout/row/{row.visual.spec.ts → visual.spec.ts} +4 -4
  184. package/src/layout/sidebar/docs.html +27 -0
  185. package/src/layout/sidebar/visual.png +0 -0
  186. package/src/layout/sidebar/visual.spec.ts +18 -0
  187. package/src/layout/sidebar-nav/docs.html +232 -0
  188. package/src/layout/sidebar-nav/{sidebar-nav.visual.spec.ts → visual.spec.ts} +7 -3
  189. package/src/layout/topbar/docs.html +61 -0
  190. package/src/layout/topbar/visual.png +0 -0
  191. package/src/layout/topbar/visual.spec.ts +18 -0
  192. package/src/utilities/container/docs.html +31 -0
  193. package/src/utilities/display/docs.html +27 -0
  194. package/src/utilities/scroll-animation/docs.html +29 -0
  195. package/src/utilities/scroll-snap/docs.html +77 -0
  196. package/src/utilities/spacing/docs.html +26 -0
  197. package/src/utilities/text/docs.html +63 -0
  198. package/src/utilities/view-transition/docs.html +49 -0
  199. package/src/utilities/visually-hidden/docs.html +16 -0
  200. package/src/base/root.docs.json +0 -35
  201. package/src/base/typography/typography.docs.json +0 -328
  202. package/src/components/actions/button/button.docs.json +0 -264
  203. package/src/components/actions/button-group/button-group.docs.json +0 -151
  204. package/src/components/actions/close-button/close-button.docs.json +0 -265
  205. package/src/components/content/divider/divider.docs.json +0 -113
  206. package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
  207. package/src/components/content/scroll-area/scroll-area.docs.json +0 -273
  208. package/src/components/content/spacer/spacer.docs.json +0 -102
  209. package/src/components/data-display/avatar/avatar.docs.json +0 -245
  210. package/src/components/data-display/badge/badge.docs.json +0 -114
  211. package/src/components/data-display/card/card-visual.png +0 -0
  212. package/src/components/data-display/card/card.docs.json +0 -229
  213. package/src/components/data-display/data-list/data-list.docs.json +0 -259
  214. package/src/components/data-display/icon/icon.docs.json +0 -307
  215. package/src/components/data-display/image/image-visual.png +0 -0
  216. package/src/components/data-display/image/image.docs.json +0 -337
  217. package/src/components/data-display/stat/stat.docs.json +0 -114
  218. package/src/components/data-display/status/status.docs.json +0 -147
  219. package/src/components/data-display/table/table.docs.json +0 -184
  220. package/src/components/data-display/tag/tag.docs.json +0 -146
  221. package/src/components/disclosure/accordion/accordion.docs.json +0 -206
  222. package/src/components/disclosure/disclosure/disclosure.docs.json +0 -154
  223. package/src/components/feedback/alert/alert.docs.json +0 -325
  224. package/src/components/feedback/progress/progress.docs.json +0 -315
  225. package/src/components/feedback/progress-circle/progress-circle.docs.json +0 -378
  226. package/src/components/feedback/skeleton/skeleton.docs.json +0 -142
  227. package/src/components/feedback/spinner/spinner.docs.json +0 -121
  228. package/src/components/feedback/toast/toast-visual.png +0 -0
  229. package/src/components/feedback/toast/toast.docs.json +0 -418
  230. package/src/components/forms/checkbox/checkbox.docs.json +0 -166
  231. package/src/components/forms/checkbox-group/checkbox-group.docs.json +0 -339
  232. package/src/components/forms/field/field.docs.json +0 -276
  233. package/src/components/forms/fieldset/fieldset.docs.json +0 -520
  234. package/src/components/forms/form/form.docs.json +0 -482
  235. package/src/components/forms/form-error/form-error.docs.json +0 -61
  236. package/src/components/forms/form-helper/form-helper.docs.json +0 -151
  237. package/src/components/forms/input/input-visual.png +0 -0
  238. package/src/components/forms/input/input.docs.json +0 -306
  239. package/src/components/forms/label/label-visual.png +0 -0
  240. package/src/components/forms/label/label.docs.json +0 -110
  241. package/src/components/forms/number-input/number-input-visual.png +0 -0
  242. package/src/components/forms/number-input/number-input.docs.json +0 -311
  243. package/src/components/forms/password-input/password-input-visual.png +0 -0
  244. package/src/components/forms/password-input/password-input.docs.json +0 -316
  245. package/src/components/forms/radio/radio.docs.json +0 -236
  246. package/src/components/forms/radio-group/radio-group.docs.json +0 -351
  247. package/src/components/forms/search-input/search-input-visual.png +0 -0
  248. package/src/components/forms/search-input/search-input.docs.json +0 -293
  249. package/src/components/forms/select/select-visual.png +0 -0
  250. package/src/components/forms/select/select.docs.json +0 -231
  251. package/src/components/forms/slider/slider-visual.png +0 -0
  252. package/src/components/forms/slider/slider.docs.json +0 -144
  253. package/src/components/forms/textarea/textarea-visual.png +0 -0
  254. package/src/components/forms/textarea/textarea.docs.json +0 -229
  255. package/src/components/forms/toggle/toggle.docs.json +0 -229
  256. package/src/components/navigation/breadcrumb/breadcrumb.docs.json +0 -240
  257. package/src/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
  258. package/src/components/navigation/dropdown-menu/dropdown-menu.docs.json +0 -290
  259. package/src/components/navigation/menu/menu.docs.json +0 -326
  260. package/src/components/navigation/nav/nav.docs.json +0 -304
  261. package/src/components/navigation/pagination/pagination-visual.png +0 -0
  262. package/src/components/navigation/pagination/pagination.docs.json +0 -483
  263. package/src/components/navigation/tabs/tabs.docs.json +0 -243
  264. package/src/components/overlays/dialog/dialog.docs.json +0 -200
  265. package/src/components/overlays/drawer/drawer-visual.png +0 -0
  266. package/src/components/overlays/drawer/drawer.docs.json +0 -307
  267. package/src/components/overlays/modal/modal.docs.json +0 -252
  268. package/src/components/overlays/overlay/overlay.docs.json +0 -138
  269. package/src/components/overlays/popover/popover.docs.json +0 -154
  270. package/src/components/overlays/tooltip/tooltip.docs.json +0 -133
  271. package/src/components/typography/blockquote/blockquote.docs.json +0 -89
  272. package/src/components/typography/code/code-visual.png +0 -0
  273. package/src/components/typography/code/code.docs.json +0 -104
  274. package/src/components/typography/code-block/code-block-visual.png +0 -0
  275. package/src/components/typography/code-block/code-block.docs.json +0 -308
  276. package/src/components/typography/heading/heading-visual.png +0 -0
  277. package/src/components/typography/heading/heading.docs.json +0 -120
  278. package/src/components/typography/kbd/kbd.docs.json +0 -61
  279. package/src/components/typography/link/link.docs.json +0 -149
  280. package/src/components/typography/list/list.docs.json +0 -296
  281. package/src/components/typography/mark/mark.docs.json +0 -60
  282. package/src/config/guides/accessibility.docs.json +0 -126
  283. package/src/config/guides/getting-started.docs.json +0 -106
  284. package/src/config/guides/theming.docs.json +0 -289
  285. package/src/config/tokens/colors/colors.docs.json +0 -316
  286. package/src/config/tokens/design-tokens.docs.json +0 -239
  287. package/src/config/tokens/grid/grid.docs.json +0 -54
  288. package/src/config/tokens/spacing/spacing.docs.json +0 -114
  289. package/src/debug/debug.docs.json +0 -96
  290. package/src/layout/app-shell/app-shell-visual.png +0 -0
  291. package/src/layout/app-shell/app-shell.docs.json +0 -155
  292. package/src/layout/app-shell/app-shell.visual.spec.ts +0 -13
  293. package/src/layout/aspect-ratio/aspect-ratio.docs.json +0 -193
  294. package/src/layout/box/box-visual.png +0 -0
  295. package/src/layout/box/box.docs.json +0 -93
  296. package/src/layout/box/box.visual.spec.ts +0 -13
  297. package/src/layout/center/center.docs.json +0 -63
  298. package/src/layout/center/center.visual.spec.ts +0 -13
  299. package/src/layout/column/column.docs.json +0 -157
  300. package/src/layout/column/column.visual.spec.ts +0 -13
  301. package/src/layout/container/container.docs.json +0 -85
  302. package/src/layout/content/content.docs.json +0 -82
  303. package/src/layout/content/content.visual.spec.ts +0 -14
  304. package/src/layout/footer/footer-visual.png +0 -0
  305. package/src/layout/footer/footer.docs.json +0 -119
  306. package/src/layout/footer/footer.visual.spec.ts +0 -14
  307. package/src/layout/grid/grid.docs.json +0 -493
  308. package/src/layout/grid/grid.visual.spec.ts +0 -13
  309. package/src/layout/main/main.docs.json +0 -87
  310. package/src/layout/nav-rail/nav-rail-visual.png +0 -0
  311. package/src/layout/nav-rail/nav-rail.docs.json +0 -76
  312. package/src/layout/nav-rail/nav-rail.visual.spec.ts +0 -14
  313. package/src/layout/page-header/page-header.docs.json +0 -124
  314. package/src/layout/row/row.docs.json +0 -237
  315. package/src/layout/sidebar/sidebar-visual.png +0 -0
  316. package/src/layout/sidebar/sidebar.docs.json +0 -63
  317. package/src/layout/sidebar/sidebar.visual.spec.ts +0 -14
  318. package/src/layout/sidebar-nav/sidebar-nav.docs.json +0 -833
  319. package/src/layout/topbar/topbar-visual.png +0 -0
  320. package/src/layout/topbar/topbar.docs.json +0 -110
  321. package/src/layout/topbar/topbar.visual.spec.ts +0 -14
  322. package/src/utilities/container/container.docs.json +0 -121
  323. package/src/utilities/display/display.docs.json +0 -83
  324. package/src/utilities/scroll-animation/scroll-animation.docs.json +0 -100
  325. package/src/utilities/scroll-snap/scroll-snap.docs.json +0 -333
  326. package/src/utilities/spacing/spacing.docs.json +0 -133
  327. package/src/utilities/text/text.docs.json +0 -191
  328. package/src/utilities/view-transition/view-transition.docs.json +0 -63
  329. package/src/utilities/visually-hidden/visually-hidden.docs.json +0 -44
  330. /package/src/components/actions/button/{button.api.json → api.json} +0 -0
  331. /package/src/components/actions/button/{button-visual.png → visual.png} +0 -0
  332. /package/src/components/actions/button-group/{button-group.api.json → api.json} +0 -0
  333. /package/src/components/actions/button-group/{button-group-visual.png → visual.png} +0 -0
  334. /package/src/components/actions/close-button/{close-button.api.json → api.json} +0 -0
  335. /package/src/components/actions/close-button/{close-button-visual.png → visual.png} +0 -0
  336. /package/src/components/content/divider/{divider.api.json → api.json} +0 -0
  337. /package/src/components/content/divider/{divider-visual.png → visual.png} +0 -0
  338. /package/src/components/content/scroll-area/{scroll-area.api.json → api.json} +0 -0
  339. /package/src/components/content/spacer/{spacer.api.json → api.json} +0 -0
  340. /package/src/components/content/spacer/{spacer-visual.png → visual.png} +0 -0
  341. /package/src/components/data-display/avatar/{avatar.api.json → api.json} +0 -0
  342. /package/src/components/data-display/avatar/{avatar-visual.png → visual.png} +0 -0
  343. /package/src/components/data-display/badge/{badge.api.json → api.json} +0 -0
  344. /package/src/components/data-display/badge/{badge-visual.png → visual.png} +0 -0
  345. /package/src/components/data-display/card/{card.api.json → api.json} +0 -0
  346. /package/src/components/data-display/data-list/{data-list.api.json → api.json} +0 -0
  347. /package/src/components/data-display/icon/{icon.api.json → api.json} +0 -0
  348. /package/src/components/data-display/icon/{icon-visual.png → visual.png} +0 -0
  349. /package/src/components/data-display/image/{image.api.json → api.json} +0 -0
  350. /package/src/components/data-display/stat/{stat.api.json → api.json} +0 -0
  351. /package/src/components/data-display/stat/{stat-visual.png → visual.png} +0 -0
  352. /package/src/components/data-display/status/{status.api.json → api.json} +0 -0
  353. /package/src/components/data-display/status/{status-visual.png → visual.png} +0 -0
  354. /package/src/components/data-display/table/{table.api.json → api.json} +0 -0
  355. /package/src/components/data-display/table/{table-visual.png → visual.png} +0 -0
  356. /package/src/components/data-display/tag/{tag.api.json → api.json} +0 -0
  357. /package/src/components/data-display/tag/{tag-visual.png → visual.png} +0 -0
  358. /package/src/components/disclosure/accordion/{accordion.api.json → api.json} +0 -0
  359. /package/src/components/disclosure/accordion/{accordion-visual.png → visual.png} +0 -0
  360. /package/src/components/disclosure/disclosure/{disclosure.api.json → api.json} +0 -0
  361. /package/src/components/disclosure/disclosure/{disclosure-visual.png → visual.png} +0 -0
  362. /package/src/components/feedback/alert/{alert.api.json → api.json} +0 -0
  363. /package/src/components/feedback/alert/{alert-visual.png → visual.png} +0 -0
  364. /package/src/components/feedback/progress/{progress.api.json → api.json} +0 -0
  365. /package/src/components/feedback/progress/{progress-visual.png → visual.png} +0 -0
  366. /package/src/components/feedback/progress-circle/{progress-circle.api.json → api.json} +0 -0
  367. /package/src/components/feedback/progress-circle/{progress-circle-visual.png → visual.png} +0 -0
  368. /package/src/components/feedback/skeleton/{skeleton.api.json → api.json} +0 -0
  369. /package/src/components/feedback/skeleton/{skeleton-visual.png → visual.png} +0 -0
  370. /package/src/components/feedback/spinner/{spinner.api.json → api.json} +0 -0
  371. /package/src/components/feedback/spinner/{spinner-visual.png → visual.png} +0 -0
  372. /package/src/components/feedback/toast/{toast.api.json → api.json} +0 -0
  373. /package/src/components/forms/checkbox/{checkbox.api.json → api.json} +0 -0
  374. /package/src/components/forms/checkbox/{checkbox-visual.png → visual.png} +0 -0
  375. /package/src/components/forms/checkbox-group/{checkbox-group.api.json → api.json} +0 -0
  376. /package/src/components/forms/checkbox-group/{checkbox-group-visual.png → visual.png} +0 -0
  377. /package/src/components/forms/field/{field.api.json → api.json} +0 -0
  378. /package/src/components/forms/field/{field-visual.png → visual.png} +0 -0
  379. /package/src/components/forms/fieldset/{fieldset.api.json → api.json} +0 -0
  380. /package/src/components/forms/fieldset/{fieldset-visual.png → visual.png} +0 -0
  381. /package/src/components/forms/form/{form.api.json → api.json} +0 -0
  382. /package/src/components/forms/form/{form-visual.png → visual.png} +0 -0
  383. /package/src/components/forms/form-error/{form-error.api.json → api.json} +0 -0
  384. /package/src/components/forms/form-error/{form-error-visual.png → visual.png} +0 -0
  385. /package/src/components/forms/form-helper/{form-helper.api.json → api.json} +0 -0
  386. /package/src/components/forms/form-helper/{form-helper-visual.png → visual.png} +0 -0
  387. /package/src/components/forms/input/{input.api.json → api.json} +0 -0
  388. /package/src/components/forms/label/{label.api.json → api.json} +0 -0
  389. /package/src/components/forms/number-input/{number-input.api.json → api.json} +0 -0
  390. /package/src/components/forms/password-input/{password-input.api.json → api.json} +0 -0
  391. /package/src/components/forms/radio/{radio.api.json → api.json} +0 -0
  392. /package/src/components/forms/radio/{radio-visual.png → visual.png} +0 -0
  393. /package/src/components/forms/radio-group/{radio-group.api.json → api.json} +0 -0
  394. /package/src/components/forms/radio-group/{radio-group-visual.png → visual.png} +0 -0
  395. /package/src/components/forms/search-input/{search-input.api.json → api.json} +0 -0
  396. /package/src/components/forms/select/{select.api.json → api.json} +0 -0
  397. /package/src/components/forms/slider/{slider.api.json → api.json} +0 -0
  398. /package/src/components/forms/textarea/{textarea.api.json → api.json} +0 -0
  399. /package/src/components/forms/toggle/{toggle.api.json → api.json} +0 -0
  400. /package/src/components/forms/toggle/{toggle-visual.png → visual.png} +0 -0
  401. /package/src/components/navigation/breadcrumb/{breadcrumb.api.json → api.json} +0 -0
  402. /package/src/components/navigation/breadcrumb/{breadcrumb-visual.png → visual.png} +0 -0
  403. /package/src/components/navigation/dropdown-menu/{dropdown-menu.api.json → api.json} +0 -0
  404. /package/src/components/navigation/menu/{menu.api.json → api.json} +0 -0
  405. /package/src/components/navigation/menu/{menu-visual.png → visual.png} +0 -0
  406. /package/src/components/navigation/nav/{nav.api.json → api.json} +0 -0
  407. /package/src/components/navigation/nav/{nav-visual.png → visual.png} +0 -0
  408. /package/src/components/navigation/pagination/{pagination.api.json → api.json} +0 -0
  409. /package/src/components/navigation/tabs/{tabs.api.json → api.json} +0 -0
  410. /package/src/components/navigation/tabs/{tabs-visual.png → visual.png} +0 -0
  411. /package/src/components/overlays/dialog/{dialog.api.json → api.json} +0 -0
  412. /package/src/components/overlays/dialog/{dialog-visual.png → visual.png} +0 -0
  413. /package/src/components/overlays/drawer/{drawer.api.json → api.json} +0 -0
  414. /package/src/components/overlays/modal/{modal.api.json → api.json} +0 -0
  415. /package/src/components/overlays/modal/{modal-visual.png → visual.png} +0 -0
  416. /package/src/components/overlays/overlay/{overlay.api.json → api.json} +0 -0
  417. /package/src/components/overlays/overlay/{overlay-visual.png → visual.png} +0 -0
  418. /package/src/components/overlays/popover/{popover.api.json → api.json} +0 -0
  419. /package/src/components/overlays/popover/{popover-visual.png → visual.png} +0 -0
  420. /package/src/components/overlays/tooltip/{tooltip.api.json → api.json} +0 -0
  421. /package/src/components/overlays/tooltip/{tooltip-visual.png → visual.png} +0 -0
  422. /package/src/components/typography/blockquote/{blockquote.api.json → api.json} +0 -0
  423. /package/src/components/typography/blockquote/{blockquote-visual.png → visual.png} +0 -0
  424. /package/src/components/typography/code/{code.api.json → api.json} +0 -0
  425. /package/src/components/typography/code-block/{code-block.api.json → api.json} +0 -0
  426. /package/src/components/typography/heading/{heading.api.json → api.json} +0 -0
  427. /package/src/components/typography/kbd/{kbd.api.json → api.json} +0 -0
  428. /package/src/components/typography/kbd/{kbd-visual.png → visual.png} +0 -0
  429. /package/src/components/typography/link/{link.api.json → api.json} +0 -0
  430. /package/src/components/typography/link/{link-visual.png → visual.png} +0 -0
  431. /package/src/components/typography/list/{list.api.json → api.json} +0 -0
  432. /package/src/components/typography/list/{list-visual.png → visual.png} +0 -0
  433. /package/src/components/typography/mark/{mark.api.json → api.json} +0 -0
  434. /package/src/components/typography/mark/{mark-visual.png → visual.png} +0 -0
  435. /package/src/layout/app-shell/{app-shell.api.json → api.json} +0 -0
  436. /package/src/layout/aspect-ratio/{aspect-ratio.api.json → api.json} +0 -0
  437. /package/src/layout/aspect-ratio/{aspect-ratio-visual.png → visual.png} +0 -0
  438. /package/src/layout/box/{box.api.json → api.json} +0 -0
  439. /package/src/layout/center/{center.api.json → api.json} +0 -0
  440. /package/src/layout/center/{center-visual.png → visual.png} +0 -0
  441. /package/src/layout/column/{column.api.json → api.json} +0 -0
  442. /package/src/layout/column/{column-visual.png → visual.png} +0 -0
  443. /package/src/layout/container/{container.api.json → api.json} +0 -0
  444. /package/src/layout/content/{content.api.json → api.json} +0 -0
  445. /package/src/layout/footer/{footer.api.json → api.json} +0 -0
  446. /package/src/layout/grid/{grid.api.json → api.json} +0 -0
  447. /package/src/layout/grid/{grid-visual.png → visual.png} +0 -0
  448. /package/src/layout/main/{main.api.json → api.json} +0 -0
  449. /package/src/layout/nav-rail/{nav-rail.api.json → api.json} +0 -0
  450. /package/src/layout/page-header/{page-header.api.json → api.json} +0 -0
  451. /package/src/layout/page-header/{page-header-visual.png → visual.png} +0 -0
  452. /package/src/layout/row/{row.api.json → api.json} +0 -0
  453. /package/src/layout/row/{row-visual.png → visual.png} +0 -0
  454. /package/src/layout/sidebar/{sidebar.api.json → api.json} +0 -0
  455. /package/src/layout/sidebar-nav/{sidebar-nav.api.json → api.json} +0 -0
  456. /package/src/layout/topbar/{topbar.api.json → api.json} +0 -0
  457. /package/src/utilities/container/{container.api.json → api.json} +0 -0
  458. /package/src/utilities/display/{display.api.json → api.json} +0 -0
  459. /package/src/utilities/scroll-animation/{scroll-animation.api.json → api.json} +0 -0
  460. /package/src/utilities/scroll-snap/{scroll-snap.api.json → api.json} +0 -0
  461. /package/src/utilities/spacing/{spacing.api.json → api.json} +0 -0
  462. /package/src/utilities/text/{text.api.json → api.json} +0 -0
  463. /package/src/utilities/view-transition/{view-transition.api.json → api.json} +0 -0
  464. /package/src/utilities/visually-hidden/{visually-hidden.api.json → api.json} +0 -0
@@ -0,0 +1,16 @@
1
+ ---
2
+ title: Visually Hidden
3
+ id: visually-hidden
4
+ description: Hides content visually while keeping it accessible to screen readers. Use for skip links and accessible labels.
5
+ ---
6
+
7
+ <!-- @default -->
8
+ <!-- Content is hidden visually but announced by screen readers -->
9
+ <button>
10
+ Submit
11
+ <span class="ui-visually-hidden"> form to contact support</span>
12
+ </button>
13
+
14
+ <!-- @focusable_skip_link -->
15
+ <!-- Becomes visible when focused - useful for skip links -->
16
+ <a class="ui-visually-hidden ui-visually-hidden--focusable" href="#main" style="position: relative;">Skip to main content</a>
@@ -1,35 +0,0 @@
1
- {
2
- "id": "root",
3
- "type": "token",
4
- "title": "Root",
5
- "description": "Base styles applied to the .root class: font family, size, line-height, color, and background",
6
- "skipValidation": true,
7
- "sections": [
8
- {
9
- "title": "Usage",
10
- "description": "Add the .ui-root class to the html or body element to establish baseline typography and color.",
11
- "examples": [
12
- {
13
- "title": "Basic setup",
14
- "items": [
15
- {
16
- "tag": "div",
17
- "class": "ui-root",
18
- "children": [
19
- {
20
- "tag": "p",
21
- "text": "Text inherits font-family, size, line-height, and color from .ui-root"
22
- }
23
- ]
24
- }
25
- ],
26
- "code": "<html class=\"ui-root\">\n <body>\n <!-- All children inherit base styles -->\n </body>\n</html>"
27
- },
28
- {
29
- "title": "Tokens applied",
30
- "code": ".ui-root {\n font-family: var(--ui-font-sans);\n font-size: var(--ui-font-size-md);\n line-height: var(--ui-leading-md);\n color: var(--ui-color-text);\n background: var(--ui-color-bg);\n}"
31
- }
32
- ]
33
- }
34
- ]
35
- }
@@ -1,328 +0,0 @@
1
- {
2
- "id": "typography",
3
- "type": "token",
4
- "title": "Typography",
5
- "description": "Modular scale (1.2 ratio) with 8px grid-snapped line-heights. Responsive breakpoints at 730px and 1080px adjust heading sizes.",
6
- "skipValidation": true,
7
- "sections": [
8
- {
9
- "title": "Type Scale",
10
- "description": "Font sizes follow a 1.2 (Minor Third) modular scale from 12px to 40px. All line-heights snap to 8px multiples.",
11
- "examples": [
12
- {
13
- "items": [
14
- {
15
- "tag": "table",
16
- "class": "ui-table",
17
- "children": [
18
- {
19
- "tag": "thead",
20
- "children": [
21
- {
22
- "tag": "tr",
23
- "children": [
24
- { "tag": "th", "text": "Token" },
25
- { "tag": "th", "text": "Size" },
26
- { "tag": "th", "text": "Line-height" }
27
- ]
28
- }
29
- ]
30
- },
31
- {
32
- "tag": "tbody",
33
- "children": [
34
- {
35
- "tag": "tr",
36
- "children": [
37
- {
38
- "tag": "td",
39
- "children": [{ "tag": "code", "text": "--ui-font-size-xs" }]
40
- },
41
- { "tag": "td", "text": "12px" },
42
- { "tag": "td", "text": "16px" }
43
- ]
44
- },
45
- {
46
- "tag": "tr",
47
- "children": [
48
- {
49
- "tag": "td",
50
- "children": [{ "tag": "code", "text": "--ui-font-size-sm" }]
51
- },
52
- { "tag": "td", "text": "14px" },
53
- { "tag": "td", "text": "24px" }
54
- ]
55
- },
56
- {
57
- "tag": "tr",
58
- "children": [
59
- {
60
- "tag": "td",
61
- "children": [{ "tag": "code", "text": "--ui-font-size-md" }]
62
- },
63
- { "tag": "td", "text": "16px" },
64
- { "tag": "td", "text": "24px" }
65
- ]
66
- },
67
- {
68
- "tag": "tr",
69
- "children": [
70
- {
71
- "tag": "td",
72
- "children": [{ "tag": "code", "text": "--ui-font-size-lg" }]
73
- },
74
- { "tag": "td", "text": "20px" },
75
- { "tag": "td", "text": "32px" }
76
- ]
77
- },
78
- {
79
- "tag": "tr",
80
- "children": [
81
- {
82
- "tag": "td",
83
- "children": [{ "tag": "code", "text": "--ui-font-size-xl" }]
84
- },
85
- { "tag": "td", "text": "24px" },
86
- { "tag": "td", "text": "32px" }
87
- ]
88
- },
89
- {
90
- "tag": "tr",
91
- "children": [
92
- {
93
- "tag": "td",
94
- "children": [{ "tag": "code", "text": "--ui-font-size-2xl" }]
95
- },
96
- { "tag": "td", "text": "28px" },
97
- { "tag": "td", "text": "32px" }
98
- ]
99
- },
100
- {
101
- "tag": "tr",
102
- "children": [
103
- {
104
- "tag": "td",
105
- "children": [{ "tag": "code", "text": "--ui-font-size-3xl" }]
106
- },
107
- { "tag": "td", "text": "32px" },
108
- { "tag": "td", "text": "40px" }
109
- ]
110
- },
111
- {
112
- "tag": "tr",
113
- "children": [
114
- {
115
- "tag": "td",
116
- "children": [{ "tag": "code", "text": "--ui-font-size-4xl" }]
117
- },
118
- { "tag": "td", "text": "40px" },
119
- { "tag": "td", "text": "48px" }
120
- ]
121
- }
122
- ]
123
- }
124
- ]
125
- }
126
- ]
127
- }
128
- ]
129
- },
130
- {
131
- "title": "Headings",
132
- "description": "Headings use semantic tokens and adjust size at breakpoints.",
133
- "examples": [
134
- {
135
- "items": [
136
- { "tag": "h1", "text": "Heading 1 - 40px / 48px" },
137
- { "tag": "h2", "text": "Heading 2 - 32px / 40px" },
138
- { "tag": "h3", "text": "Heading 3 - 28px / 32px" },
139
- { "tag": "h4", "text": "Heading 4 - 24px / 32px" },
140
- { "tag": "h5", "text": "Heading 5 - 20px / 24px" }
141
- ]
142
- }
143
- ]
144
- },
145
- {
146
- "title": "Body Text",
147
- "description": "Default body text at 16px with 24px line-height (1.5x ratio).",
148
- "examples": [
149
- {
150
- "items": [
151
- {
152
- "tag": "p",
153
- "children": [
154
- { "text": "Body text at 16px with 24px line-height. The " },
155
- { "tag": "strong", "text": "bold text" },
156
- { "text": " and " },
157
- { "tag": "code", "text": "inline code" },
158
- { "text": " maintain the same rhythm." }
159
- ]
160
- },
161
- {
162
- "tag": "p",
163
- "class": "ui-text-body-sm",
164
- "text": "Body small at 14px with 24px line-height for secondary text."
165
- }
166
- ]
167
- }
168
- ]
169
- },
170
- {
171
- "title": "Text Roles",
172
- "description": "Semantic text styles for specific use cases.",
173
- "examples": [
174
- {
175
- "items": [
176
- {
177
- "tag": "p",
178
- "class": "ui-text-lead",
179
- "text": "Lead paragraph - 20px / 32px. Use for opening paragraphs or article intros."
180
- }
181
- ]
182
- },
183
- {
184
- "items": [
185
- { "tag": "p", "class": "ui-text-eyebrow", "text": "Eyebrow text" },
186
- { "tag": "h2", "text": "Related Heading" }
187
- ],
188
- "description": "Eyebrow - 12px uppercase with wide tracking. Use above headings for categorization."
189
- },
190
- {
191
- "items": [
192
- {
193
- "tag": "p",
194
- "class": "ui-text-caption",
195
- "text": "Caption text - 12px / 16px. Use for labels, hints, and metadata."
196
- }
197
- ]
198
- }
199
- ]
200
- },
201
- {
202
- "title": "Font Weights",
203
- "description": "Four weight levels for hierarchy.",
204
- "examples": [
205
- {
206
- "items": [
207
- { "tag": "p", "class": "ui-font-normal", "text": "Normal (400) - Body text" },
208
- {
209
- "tag": "p",
210
- "class": "ui-font-medium",
211
- "text": "Medium (500) - Labels, small headings"
212
- },
213
- { "tag": "p", "class": "ui-font-semibold", "text": "Semibold (600) - Subheadings" },
214
- { "tag": "p", "class": "ui-font-bold", "text": "Bold (700) - Headlines, emphasis" }
215
- ]
216
- }
217
- ]
218
- },
219
- {
220
- "title": "Letter Spacing",
221
- "description": "Three tracking options based on use case.",
222
- "examples": [
223
- {
224
- "items": [
225
- {
226
- "tag": "p",
227
- "class": "ui-text-3xl ui-tracking-display",
228
- "text": "Display tracking (-0.02em)"
229
- },
230
- { "tag": "p", "text": "Body tracking (0) - default" },
231
- { "tag": "p", "class": "ui-text-eyebrow", "text": "Caps tracking (+0.08em)" }
232
- ]
233
- }
234
- ]
235
- },
236
- {
237
- "title": "Line Length",
238
- "description": "Constrain text width for optimal readability (45-75 characters).",
239
- "examples": [
240
- {
241
- "items": [
242
- {
243
- "tag": "div",
244
- "class": "ui-prose",
245
- "children": [
246
- {
247
- "tag": "p",
248
- "text": "This paragraph is constrained to 65ch max-width for optimal reading comfort. Long lines of text are harder to read because the eye has difficulty tracking back to the start of the next line."
249
- }
250
- ]
251
- }
252
- ]
253
- }
254
- ]
255
- },
256
- {
257
- "title": "Responsive Behavior",
258
- "description": "Headings scale down on mobile (<730px) and up on desktop (>1080px).",
259
- "examples": [
260
- {
261
- "items": [
262
- {
263
- "tag": "table",
264
- "class": "ui-table",
265
- "children": [
266
- {
267
- "tag": "thead",
268
- "children": [
269
- {
270
- "tag": "tr",
271
- "children": [
272
- { "tag": "th", "text": "Heading" },
273
- { "tag": "th", "text": "Mobile" },
274
- { "tag": "th", "text": "Default" },
275
- { "tag": "th", "text": "Desktop" }
276
- ]
277
- }
278
- ]
279
- },
280
- {
281
- "tag": "tbody",
282
- "children": [
283
- {
284
- "tag": "tr",
285
- "children": [
286
- { "tag": "td", "text": "h1" },
287
- { "tag": "td", "text": "28px" },
288
- { "tag": "td", "text": "40px" },
289
- { "tag": "td", "text": "48px" }
290
- ]
291
- },
292
- {
293
- "tag": "tr",
294
- "children": [
295
- { "tag": "td", "text": "h2" },
296
- { "tag": "td", "text": "24px" },
297
- { "tag": "td", "text": "32px" },
298
- { "tag": "td", "text": "40px" }
299
- ]
300
- },
301
- {
302
- "tag": "tr",
303
- "children": [
304
- { "tag": "td", "text": "h3" },
305
- { "tag": "td", "text": "20px" },
306
- { "tag": "td", "text": "28px" },
307
- { "tag": "td", "text": "28px" }
308
- ]
309
- },
310
- {
311
- "tag": "tr",
312
- "children": [
313
- { "tag": "td", "text": "h4" },
314
- { "tag": "td", "text": "18px" },
315
- { "tag": "td", "text": "24px" },
316
- { "tag": "td", "text": "24px" }
317
- ]
318
- }
319
- ]
320
- }
321
- ]
322
- }
323
- ]
324
- }
325
- ]
326
- }
327
- ]
328
- }
@@ -1,264 +0,0 @@
1
- {
2
- "id": "button",
3
- "type": "component",
4
- "title": "Button",
5
- "api": "./button.api.json",
6
- "description": "Buttons trigger actions. Use primary for main CTA, secondary for less important actions.",
7
- "modifiers": {
8
- "size": {
9
- "usage": "Default is 32px (2 rows). Use small for dense UIs, large for prominent CTAs."
10
- },
11
- "variant": {
12
- "usage": "Primary for main actions. Secondary for less important. Outline for subtle. Ghost for toolbar. Danger for destructive. Link for inline."
13
- },
14
- "icon": {
15
- "usage": "Square icon-only buttons. Always add aria-label for accessibility."
16
- },
17
- "radius": {
18
- "usage": "Override border radius. Use radius-full for pill-shaped buttons."
19
- },
20
- "block": {
21
- "usage": "Full width button. Use for mobile or form submit."
22
- },
23
- "loading": {
24
- "usage": "Shows spinner animation. Button becomes non-interactive."
25
- }
26
- },
27
- "sections": [
28
- {
29
- "title": "Variants",
30
- "description": "Button styles for different purposes and emphasis levels.",
31
- "examples": [
32
- {
33
- "layout": "row",
34
- "items": [
35
- { "tag": "button", "class": "ui-button", "text": "Primary" },
36
- { "tag": "button", "class": "ui-button ui-button--secondary", "text": "Secondary" },
37
- { "tag": "button", "class": "ui-button ui-button--outline", "text": "Outline" },
38
- { "tag": "button", "class": "ui-button ui-button--ghost", "text": "Ghost" },
39
- { "tag": "button", "class": "ui-button ui-button--danger", "text": "Danger" },
40
- { "tag": "button", "class": "ui-button ui-button--link", "text": "Link" }
41
- ]
42
- }
43
- ]
44
- },
45
- {
46
- "title": "Sizes",
47
- "description": "Small for dense UIs, default for most cases, large for prominent CTAs.",
48
- "examples": [
49
- {
50
- "layout": "row",
51
- "items": [
52
- { "tag": "button", "class": "ui-button ui-button--sm", "text": "Small" },
53
- { "tag": "button", "class": "ui-button ui-button--md", "text": "Medium" },
54
- { "tag": "button", "class": "ui-button ui-button--lg", "text": "Large" }
55
- ]
56
- }
57
- ]
58
- },
59
- {
60
- "title": "Radius",
61
- "description": "Override border radius. Use radius-full for pill-shaped buttons.",
62
- "examples": [
63
- {
64
- "layout": "row",
65
- "items": [
66
- { "tag": "button", "class": "ui-button ui-button--radius-none", "text": "None" },
67
- { "tag": "button", "class": "ui-button ui-button--radius-sm", "text": "Small" },
68
- { "tag": "button", "class": "ui-button", "text": "Default" },
69
- { "tag": "button", "class": "ui-button ui-button--radius-lg", "text": "Large" },
70
- { "tag": "button", "class": "ui-button ui-button--radius-full", "text": "Full" }
71
- ]
72
- }
73
- ]
74
- },
75
- {
76
- "title": "Block",
77
- "description": "Full width button for mobile or form submit.",
78
- "examples": [
79
- {
80
- "items": [
81
- { "tag": "button", "class": "ui-button ui-button--block", "text": "Block Button" }
82
- ]
83
- }
84
- ]
85
- },
86
- {
87
- "title": "Loading",
88
- "description": "Shows spinner animation. Button becomes non-interactive.",
89
- "examples": [
90
- {
91
- "layout": "row",
92
- "items": [
93
- { "tag": "button", "class": "ui-button ui-button--loading", "text": "Loading" },
94
- {
95
- "tag": "button",
96
- "class": "ui-button ui-button--secondary ui-button--loading",
97
- "text": "Loading"
98
- }
99
- ]
100
- }
101
- ]
102
- },
103
- {
104
- "title": "Icon Button",
105
- "description": "Square icon-only buttons. Use with SVG icons from Lucide or similar sets.",
106
- "examples": [
107
- {
108
- "layout": "row",
109
- "items": [
110
- {
111
- "tag": "button",
112
- "class": "ui-button ui-button--icon ui-button--sm",
113
- "children": [
114
- {
115
- "tag": "svg",
116
- "class": "ui-icon",
117
- "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
118
- "children": [
119
- { "tag": "path", "attrs": { "d": "M18 6 6 18" } },
120
- { "tag": "path", "attrs": { "d": "m6 6 12 12" } }
121
- ]
122
- }
123
- ]
124
- },
125
- {
126
- "tag": "button",
127
- "class": "ui-button ui-button--icon",
128
- "children": [
129
- {
130
- "tag": "svg",
131
- "class": "ui-icon",
132
- "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
133
- "children": [
134
- { "tag": "path", "attrs": { "d": "M5 12h14" } },
135
- { "tag": "path", "attrs": { "d": "M12 5v14" } }
136
- ]
137
- }
138
- ]
139
- },
140
- {
141
- "tag": "button",
142
- "class": "ui-button ui-button--icon ui-button--lg",
143
- "children": [
144
- {
145
- "tag": "svg",
146
- "class": "ui-icon",
147
- "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
148
- "children": [
149
- { "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
150
- { "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
151
- ]
152
- }
153
- ]
154
- }
155
- ],
156
- "code": "<button class=\"ui-button ui-button--icon ui-button--sm\">\n <svg class=\"ui-icon\"><!-- x icon --></svg>\n</button>\n<button class=\"ui-button ui-button--icon\">\n <svg class=\"ui-icon\"><!-- plus icon --></svg>\n</button>\n<button class=\"ui-button ui-button--icon ui-button--lg\">\n <svg class=\"ui-icon\"><!-- search icon --></svg>\n</button>"
157
- }
158
- ]
159
- },
160
- {
161
- "title": "With Icon",
162
- "description": "Buttons with icon and text. Use ui-button__icon element with --start or --end modifier.",
163
- "examples": [
164
- {
165
- "layout": "row",
166
- "items": [
167
- {
168
- "tag": "button",
169
- "class": "ui-button",
170
- "children": [
171
- {
172
- "tag": "svg",
173
- "class": "ui-icon ui-button__icon ui-button__icon--start",
174
- "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
175
- "children": [
176
- { "tag": "path", "attrs": { "d": "M5 12h14" } },
177
- { "tag": "path", "attrs": { "d": "M12 5v14" } }
178
- ]
179
- },
180
- { "text": "Add Item" }
181
- ]
182
- },
183
- {
184
- "tag": "button",
185
- "class": "ui-button ui-button--secondary",
186
- "children": [
187
- { "text": "Next" },
188
- {
189
- "tag": "svg",
190
- "class": "ui-icon ui-button__icon ui-button__icon--end",
191
- "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
192
- "children": [{ "tag": "path", "attrs": { "d": "m9 18 6-6-6-6" } }]
193
- }
194
- ]
195
- }
196
- ],
197
- "code": "<button class=\"ui-button\">\n <svg class=\"ui-icon ui-button__icon ui-button__icon--start\"><!-- plus --></svg>\n Add Item\n</button>\n<button class=\"ui-button ui-button--secondary\">\n Next\n <svg class=\"ui-icon ui-button__icon ui-button__icon--end\"><!-- chevron-right --></svg>\n</button>"
198
- }
199
- ]
200
- }
201
- ],
202
- "customization": [
203
- {
204
- "token": "--ui-button-accent",
205
- "default": "var(--ui-color-primary)",
206
- "description": "Primary accent color. All shades auto-generated via color-mix."
207
- },
208
- {
209
- "token": "--ui-button-height",
210
- "default": "var(--ui-row-2)",
211
- "description": "Overall height"
212
- },
213
- {
214
- "token": "--ui-button-padding-x",
215
- "default": "var(--ui-space-2)",
216
- "description": "Horizontal padding"
217
- },
218
- {
219
- "token": "--ui-button-font-size",
220
- "default": "var(--ui-font-size-sm)",
221
- "description": "Font size"
222
- },
223
- {
224
- "token": "--ui-button-font-weight",
225
- "default": "var(--ui-weight-medium)",
226
- "description": "Font weight"
227
- },
228
- {
229
- "token": "--ui-button-radius",
230
- "default": "var(--ui-radius-md)",
231
- "description": "Corner radius"
232
- },
233
- {
234
- "token": "--ui-button-color",
235
- "default": "var(--ui-color-text-inverse)",
236
- "description": "Text color"
237
- },
238
- {
239
- "token": "--ui-button-height-sm",
240
- "default": "calc(var(--ui-row) * 1.5)",
241
- "description": "Overall height at small size"
242
- },
243
- {
244
- "token": "--ui-button-font-size-sm",
245
- "default": "var(--ui-font-size-xs)",
246
- "description": "Font size at small size"
247
- },
248
- {
249
- "token": "--ui-button-height-lg",
250
- "default": "calc(var(--ui-row) * 2.5)",
251
- "description": "Overall height at large size"
252
- },
253
- {
254
- "token": "--ui-button-padding-x-lg",
255
- "default": "var(--ui-space-3)",
256
- "description": "Horizontal padding at large size"
257
- },
258
- {
259
- "token": "--ui-button-font-size-lg",
260
- "default": "var(--ui-font-size-md)",
261
- "description": "Font size at large size"
262
- }
263
- ]
264
- }