@teseor/css 1.14.2 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/package.json +1 -1
  2. package/src/base/root.docs.html +20 -0
  3. package/src/base/typography/typography.docs.html +161 -0
  4. package/src/components/actions/button/button.docs.html +76 -0
  5. package/src/components/actions/button/button.visual.spec.ts +7 -3
  6. package/src/components/actions/button-group/button-group.docs.html +47 -0
  7. package/src/components/actions/button-group/button-group.visual.spec.ts +7 -3
  8. package/src/components/actions/close-button/close-button.docs.html +77 -0
  9. package/src/components/actions/close-button/close-button.visual.spec.ts +7 -3
  10. package/src/components/content/divider/divider.docs.html +27 -0
  11. package/src/components/content/divider/divider.visual.spec.ts +7 -3
  12. package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
  13. package/src/components/content/scroll-area/scroll-area.docs.html +130 -0
  14. package/src/components/content/scroll-area/scroll-area.visual.spec.ts +7 -3
  15. package/src/components/content/spacer/spacer.docs.html +23 -0
  16. package/src/components/content/spacer/spacer.visual.spec.ts +3 -3
  17. package/src/components/data-display/avatar/avatar.docs.html +67 -0
  18. package/src/components/data-display/avatar/avatar.visual.spec.ts +7 -3
  19. package/src/components/data-display/badge/badge.docs.html +39 -0
  20. package/src/components/data-display/badge/badge.visual.spec.ts +7 -3
  21. package/src/components/data-display/card/card-visual.png +0 -0
  22. package/src/components/data-display/card/card.docs.html +36 -0
  23. package/src/components/data-display/card/card.visual.spec.ts +7 -3
  24. package/src/components/data-display/data-list/data-list-visual.png +0 -0
  25. package/src/components/data-display/data-list/data-list.docs.html +97 -0
  26. package/src/components/data-display/data-list/data-list.visual.spec.ts +7 -3
  27. package/src/components/data-display/icon/icon.docs.html +72 -0
  28. package/src/components/data-display/icon/icon.visual.spec.ts +7 -3
  29. package/src/components/data-display/image/image-visual.png +0 -0
  30. package/src/components/data-display/image/image.docs.html +67 -0
  31. package/src/components/data-display/image/image.visual.spec.ts +7 -3
  32. package/src/components/data-display/stat/stat.docs.html +35 -0
  33. package/src/components/data-display/stat/stat.visual.spec.ts +7 -3
  34. package/src/components/data-display/status/status.docs.html +67 -0
  35. package/src/components/data-display/status/status.visual.spec.ts +7 -3
  36. package/src/components/data-display/table/table.docs.html +73 -0
  37. package/src/components/data-display/table/table.visual.spec.ts +7 -3
  38. package/src/components/data-display/tag/tag.docs.html +42 -0
  39. package/src/components/data-display/tag/tag.visual.spec.ts +7 -3
  40. package/src/components/disclosure/accordion/accordion.docs.html +83 -0
  41. package/src/components/disclosure/accordion/accordion.visual.spec.ts +7 -3
  42. package/src/components/disclosure/disclosure/disclosure.docs.html +51 -0
  43. package/src/components/disclosure/disclosure/disclosure.visual.spec.ts +7 -3
  44. package/src/components/feedback/alert/alert.docs.html +90 -0
  45. package/src/components/feedback/alert/alert.visual.spec.ts +7 -3
  46. package/src/components/feedback/progress/progress.docs.html +65 -0
  47. package/src/components/feedback/progress/progress.visual.spec.ts +7 -3
  48. package/src/components/feedback/progress-circle/progress-circle.docs.html +65 -0
  49. package/src/components/feedback/progress-circle/progress-circle.visual.spec.ts +7 -3
  50. package/src/components/feedback/skeleton/skeleton.docs.html +40 -0
  51. package/src/components/feedback/skeleton/skeleton.visual.spec.ts +7 -3
  52. package/src/components/feedback/spinner/spinner.docs.html +28 -0
  53. package/src/components/feedback/spinner/spinner.visual.spec.ts +7 -3
  54. package/src/components/feedback/toast/toast-visual.png +0 -0
  55. package/src/components/feedback/toast/toast.docs.html +109 -0
  56. package/src/components/feedback/toast/toast.visual.spec.ts +7 -3
  57. package/src/components/forms/checkbox/checkbox.docs.html +33 -0
  58. package/src/components/forms/checkbox/checkbox.visual.spec.ts +7 -3
  59. package/src/components/forms/checkbox-group/checkbox-group.docs.html +104 -0
  60. package/src/components/forms/checkbox-group/checkbox-group.visual.spec.ts +7 -3
  61. package/src/components/forms/field/field.docs.html +63 -0
  62. package/src/components/forms/field/field.visual.spec.ts +7 -3
  63. package/src/components/forms/fieldset/fieldset.docs.html +122 -0
  64. package/src/components/forms/fieldset/fieldset.visual.spec.ts +7 -3
  65. package/src/components/forms/form/form.docs.html +132 -0
  66. package/src/components/forms/form/form.visual.spec.ts +7 -3
  67. package/src/components/forms/form-error/form-error.docs.html +18 -0
  68. package/src/components/forms/form-error/form-error.visual.spec.ts +7 -3
  69. package/src/components/forms/form-helper/form-helper.docs.html +42 -0
  70. package/src/components/forms/form-helper/form-helper.visual.spec.ts +7 -3
  71. package/src/components/forms/input/input-visual.png +0 -0
  72. package/src/components/forms/input/input.docs.html +69 -0
  73. package/src/components/forms/input/input.visual.spec.ts +7 -3
  74. package/src/components/forms/label/label-visual.png +0 -0
  75. package/src/components/forms/label/label.docs.html +29 -0
  76. package/src/components/forms/label/label.visual.spec.ts +7 -3
  77. package/src/components/forms/number-input/number-input-visual.png +0 -0
  78. package/src/components/forms/number-input/number-input.docs.html +100 -0
  79. package/src/components/forms/number-input/number-input.visual.spec.ts +7 -3
  80. package/src/components/forms/password-input/password-input-visual.png +0 -0
  81. package/src/components/forms/password-input/password-input.docs.html +88 -0
  82. package/src/components/forms/password-input/password-input.visual.spec.ts +7 -3
  83. package/src/components/forms/radio/radio.docs.html +52 -0
  84. package/src/components/forms/radio/radio.visual.spec.ts +7 -3
  85. package/src/components/forms/radio-group/radio-group.docs.html +100 -0
  86. package/src/components/forms/radio-group/radio-group.visual.spec.ts +7 -3
  87. package/src/components/forms/search-input/search-input-visual.png +0 -0
  88. package/src/components/forms/search-input/search-input.docs.html +87 -0
  89. package/src/components/forms/search-input/search-input.visual.spec.ts +7 -3
  90. package/src/components/forms/select/select-visual.png +0 -0
  91. package/src/components/forms/select/select.docs.html +70 -0
  92. package/src/components/forms/select/select.visual.spec.ts +7 -3
  93. package/src/components/forms/slider/slider-visual.png +0 -0
  94. package/src/components/forms/slider/slider.docs.html +25 -0
  95. package/src/components/forms/slider/slider.visual.spec.ts +7 -3
  96. package/src/components/forms/textarea/textarea-visual.png +0 -0
  97. package/src/components/forms/textarea/textarea.docs.html +39 -0
  98. package/src/components/forms/textarea/textarea.visual.spec.ts +7 -3
  99. package/src/components/forms/toggle/toggle.docs.html +64 -0
  100. package/src/components/forms/toggle/toggle.visual.spec.ts +7 -3
  101. package/src/components/navigation/breadcrumb/breadcrumb.docs.html +60 -0
  102. package/src/components/navigation/breadcrumb/breadcrumb.visual.spec.ts +7 -3
  103. package/src/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
  104. package/src/components/navigation/dropdown-menu/dropdown-menu.docs.html +106 -0
  105. package/src/components/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +7 -3
  106. package/src/components/navigation/menu/menu.docs.html +122 -0
  107. package/src/components/navigation/menu/menu.visual.spec.ts +7 -3
  108. package/src/components/navigation/nav/nav.docs.html +74 -0
  109. package/src/components/navigation/nav/nav.visual.spec.ts +7 -3
  110. package/src/components/navigation/pagination/pagination-visual.png +0 -0
  111. package/src/components/navigation/pagination/pagination.docs.html +116 -0
  112. package/src/components/navigation/pagination/pagination.visual.spec.ts +7 -3
  113. package/src/components/navigation/tabs/tabs.docs.html +66 -0
  114. package/src/components/navigation/tabs/tabs.visual.spec.ts +7 -3
  115. package/src/components/overlays/dialog/dialog.docs.html +61 -0
  116. package/src/components/overlays/dialog/dialog.visual.spec.ts +7 -3
  117. package/src/components/overlays/drawer/drawer-visual.png +0 -0
  118. package/src/components/overlays/drawer/drawer.docs.html +90 -0
  119. package/src/components/overlays/drawer/drawer.visual.spec.ts +7 -3
  120. package/src/components/overlays/modal/modal.docs.html +69 -0
  121. package/src/components/overlays/modal/modal.visual.spec.ts +7 -3
  122. package/src/components/overlays/overlay/overlay.docs.html +30 -0
  123. package/src/components/overlays/overlay/overlay.visual.spec.ts +7 -3
  124. package/src/components/overlays/popover/popover.docs.html +41 -0
  125. package/src/components/overlays/popover/popover.visual.spec.ts +7 -3
  126. package/src/components/overlays/tooltip/tooltip.docs.html +33 -0
  127. package/src/components/overlays/tooltip/tooltip.visual.spec.ts +7 -3
  128. package/src/components/typography/blockquote/blockquote.docs.html +24 -0
  129. package/src/components/typography/blockquote/blockquote.visual.spec.ts +7 -3
  130. package/src/components/typography/code/code-visual.png +0 -0
  131. package/src/components/typography/code/code.docs.html +23 -0
  132. package/src/components/typography/code/code.visual.spec.ts +7 -3
  133. package/src/components/typography/code-block/code-block-visual.png +0 -0
  134. package/src/components/typography/code-block/code-block.docs.html +87 -0
  135. package/src/components/typography/code-block/code-block.visual.spec.ts +7 -3
  136. package/src/components/typography/heading/heading-visual.png +0 -0
  137. package/src/components/typography/heading/heading.docs.html +26 -0
  138. package/src/components/typography/heading/heading.visual.spec.ts +7 -3
  139. package/src/components/typography/kbd/kbd.docs.html +16 -0
  140. package/src/components/typography/kbd/kbd.visual.spec.ts +7 -3
  141. package/src/components/typography/link/link.docs.html +33 -0
  142. package/src/components/typography/link/link.visual.spec.ts +7 -3
  143. package/src/components/typography/list/list.docs.html +79 -0
  144. package/src/components/typography/list/list.visual.spec.ts +7 -3
  145. package/src/components/typography/mark/mark.docs.html +12 -0
  146. package/src/components/typography/mark/mark.visual.spec.ts +7 -3
  147. package/src/config/guides/accessibility.docs.html +108 -0
  148. package/src/config/guides/getting-started.docs.html +47 -0
  149. package/src/config/guides/theming.docs.html +71 -0
  150. package/src/config/tokens/colors/colors.docs.html +75 -0
  151. package/src/config/tokens/design-tokens.docs.html +116 -0
  152. package/src/config/tokens/grid/grid.docs.html +12 -0
  153. package/src/config/tokens/spacing/spacing.docs.html +33 -0
  154. package/src/debug/debug.docs.html +29 -0
  155. package/src/debug/index.scss +81 -1
  156. package/src/layout/app-shell/app-shell-visual.png +0 -0
  157. package/src/layout/app-shell/app-shell.docs.html +102 -0
  158. package/src/layout/app-shell/app-shell.visual.spec.ts +3 -3
  159. package/src/layout/aspect-ratio/aspect-ratio.docs.html +41 -0
  160. package/src/layout/aspect-ratio/aspect-ratio.visual.spec.ts +3 -3
  161. package/src/layout/box/box-visual.png +0 -0
  162. package/src/layout/box/box.docs.html +27 -0
  163. package/src/layout/box/box.visual.spec.ts +3 -3
  164. package/src/layout/center/center.docs.html +26 -0
  165. package/src/layout/center/center.visual.spec.ts +3 -3
  166. package/src/layout/column/column.docs.html +32 -0
  167. package/src/layout/column/column.visual.spec.ts +3 -3
  168. package/src/layout/container/container.docs.html +37 -0
  169. package/src/layout/content/content-visual.png +0 -0
  170. package/src/layout/content/content.docs.html +38 -0
  171. package/src/layout/content/content.visual.spec.ts +7 -3
  172. package/src/layout/footer/footer-visual.png +0 -0
  173. package/src/layout/footer/footer.docs.html +73 -0
  174. package/src/layout/footer/footer.visual.spec.ts +7 -3
  175. package/src/layout/grid/grid.docs.html +87 -0
  176. package/src/layout/grid/grid.visual.spec.ts +3 -3
  177. package/src/layout/main/main.docs.html +31 -0
  178. package/src/layout/nav-rail/nav-rail-visual.png +0 -0
  179. package/src/layout/nav-rail/nav-rail.docs.html +42 -0
  180. package/src/layout/nav-rail/nav-rail.visual.spec.ts +7 -3
  181. package/src/layout/page-header/page-header.docs.html +52 -0
  182. package/src/layout/page-header/page-header.visual.spec.ts +7 -3
  183. package/src/layout/row/row.docs.html +47 -0
  184. package/src/layout/row/row.visual.spec.ts +3 -3
  185. package/src/layout/sidebar/sidebar-visual.png +0 -0
  186. package/src/layout/sidebar/sidebar.docs.html +30 -0
  187. package/src/layout/sidebar/sidebar.visual.spec.ts +7 -3
  188. package/src/layout/sidebar-nav/sidebar-nav.docs.html +235 -0
  189. package/src/layout/sidebar-nav/sidebar-nav.visual.spec.ts +7 -3
  190. package/src/layout/topbar/topbar-visual.png +0 -0
  191. package/src/layout/topbar/topbar.docs.html +64 -0
  192. package/src/layout/topbar/topbar.visual.spec.ts +7 -3
  193. package/src/utilities/container/container.docs.html +34 -0
  194. package/src/utilities/display/display.docs.html +30 -0
  195. package/src/utilities/scroll-animation/scroll-animation.docs.html +32 -0
  196. package/src/utilities/scroll-snap/scroll-snap.docs.html +80 -0
  197. package/src/utilities/spacing/spacing.docs.html +29 -0
  198. package/src/utilities/text/text.docs.html +66 -0
  199. package/src/utilities/view-transition/view-transition.docs.html +52 -0
  200. package/src/utilities/visually-hidden/visually-hidden.docs.html +18 -0
  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.docs.json +0 -273
  207. package/src/components/content/spacer/spacer.docs.json +0 -102
  208. package/src/components/data-display/avatar/avatar.docs.json +0 -245
  209. package/src/components/data-display/badge/badge.docs.json +0 -114
  210. package/src/components/data-display/card/card.docs.json +0 -229
  211. package/src/components/data-display/data-list/data-list.docs.json +0 -259
  212. package/src/components/data-display/icon/icon.docs.json +0 -307
  213. package/src/components/data-display/image/image.docs.json +0 -337
  214. package/src/components/data-display/stat/stat.docs.json +0 -114
  215. package/src/components/data-display/status/status.docs.json +0 -147
  216. package/src/components/data-display/table/table.docs.json +0 -184
  217. package/src/components/data-display/tag/tag.docs.json +0 -146
  218. package/src/components/disclosure/accordion/accordion.docs.json +0 -206
  219. package/src/components/disclosure/disclosure/disclosure.docs.json +0 -154
  220. package/src/components/feedback/alert/alert.docs.json +0 -325
  221. package/src/components/feedback/progress/progress.docs.json +0 -315
  222. package/src/components/feedback/progress-circle/progress-circle.docs.json +0 -378
  223. package/src/components/feedback/skeleton/skeleton.docs.json +0 -142
  224. package/src/components/feedback/spinner/spinner.docs.json +0 -121
  225. package/src/components/feedback/toast/toast.docs.json +0 -418
  226. package/src/components/forms/checkbox/checkbox.docs.json +0 -166
  227. package/src/components/forms/checkbox-group/checkbox-group.docs.json +0 -339
  228. package/src/components/forms/field/field.docs.json +0 -276
  229. package/src/components/forms/fieldset/fieldset.docs.json +0 -520
  230. package/src/components/forms/form/form.docs.json +0 -482
  231. package/src/components/forms/form-error/form-error.docs.json +0 -61
  232. package/src/components/forms/form-helper/form-helper.docs.json +0 -151
  233. package/src/components/forms/input/input.docs.json +0 -306
  234. package/src/components/forms/label/label.docs.json +0 -110
  235. package/src/components/forms/number-input/number-input.docs.json +0 -311
  236. package/src/components/forms/password-input/password-input.docs.json +0 -316
  237. package/src/components/forms/radio/radio.docs.json +0 -236
  238. package/src/components/forms/radio-group/radio-group.docs.json +0 -351
  239. package/src/components/forms/search-input/search-input.docs.json +0 -293
  240. package/src/components/forms/select/select.docs.json +0 -231
  241. package/src/components/forms/slider/slider.docs.json +0 -144
  242. package/src/components/forms/textarea/textarea.docs.json +0 -229
  243. package/src/components/forms/toggle/toggle.docs.json +0 -229
  244. package/src/components/navigation/breadcrumb/breadcrumb.docs.json +0 -240
  245. package/src/components/navigation/dropdown-menu/dropdown-menu.docs.json +0 -290
  246. package/src/components/navigation/menu/menu.docs.json +0 -326
  247. package/src/components/navigation/nav/nav.docs.json +0 -304
  248. package/src/components/navigation/pagination/pagination.docs.json +0 -483
  249. package/src/components/navigation/tabs/tabs.docs.json +0 -243
  250. package/src/components/overlays/dialog/dialog.docs.json +0 -200
  251. package/src/components/overlays/drawer/drawer.docs.json +0 -307
  252. package/src/components/overlays/modal/modal.docs.json +0 -252
  253. package/src/components/overlays/overlay/overlay.docs.json +0 -138
  254. package/src/components/overlays/popover/popover.docs.json +0 -154
  255. package/src/components/overlays/tooltip/tooltip.docs.json +0 -133
  256. package/src/components/typography/blockquote/blockquote.docs.json +0 -89
  257. package/src/components/typography/code/code.docs.json +0 -104
  258. package/src/components/typography/code-block/code-block.docs.json +0 -308
  259. package/src/components/typography/heading/heading.docs.json +0 -120
  260. package/src/components/typography/kbd/kbd.docs.json +0 -61
  261. package/src/components/typography/link/link.docs.json +0 -149
  262. package/src/components/typography/list/list.docs.json +0 -296
  263. package/src/components/typography/mark/mark.docs.json +0 -60
  264. package/src/config/tokens/accessibility.docs.json +0 -125
  265. package/src/config/tokens/colors/colors.docs.json +0 -316
  266. package/src/config/tokens/grid/grid.docs.json +0 -54
  267. package/src/config/tokens/spacing/spacing.docs.json +0 -114
  268. package/src/config/tokens/theming.docs.json +0 -288
  269. package/src/debug/grid-overlay.scss +0 -81
  270. package/src/layout/app-shell/app-shell.docs.json +0 -155
  271. package/src/layout/aspect-ratio/aspect-ratio.docs.json +0 -193
  272. package/src/layout/box/box.docs.json +0 -93
  273. package/src/layout/center/center.docs.json +0 -63
  274. package/src/layout/column/column.docs.json +0 -157
  275. package/src/layout/container/container.docs.json +0 -85
  276. package/src/layout/content/content.docs.json +0 -82
  277. package/src/layout/footer/footer.docs.json +0 -119
  278. package/src/layout/grid/grid.docs.json +0 -493
  279. package/src/layout/main/main.docs.json +0 -87
  280. package/src/layout/nav-rail/nav-rail.docs.json +0 -76
  281. package/src/layout/page-header/page-header.docs.json +0 -124
  282. package/src/layout/row/row.docs.json +0 -237
  283. package/src/layout/sidebar/sidebar.docs.json +0 -63
  284. package/src/layout/sidebar-nav/sidebar-nav.docs.json +0 -833
  285. package/src/layout/topbar/topbar.docs.json +0 -110
  286. package/src/testing/api-types.ts +0 -20
  287. package/src/testing/grid-alignment.spec.ts +0 -38
  288. package/src/testing/html-generator.ts +0 -151
  289. package/src/testing/index.ts +0 -15
  290. package/src/testing/page-setup.ts +0 -149
  291. package/src/testing/rhythm.ts +0 -146
  292. package/src/testing/scaffold.ts +0 -50
  293. package/src/utilities/container/container.docs.json +0 -121
  294. package/src/utilities/display/display.docs.json +0 -83
  295. package/src/utilities/scroll-animation/scroll-animation.docs.json +0 -100
  296. package/src/utilities/scroll-snap/scroll-snap.docs.json +0 -333
  297. package/src/utilities/spacing/spacing.docs.json +0 -133
  298. package/src/utilities/text/text.docs.json +0 -191
  299. package/src/utilities/view-transition/view-transition.docs.json +0 -63
  300. package/src/utilities/visually-hidden/visually-hidden.docs.json +0 -44
@@ -1,151 +0,0 @@
1
- {
2
- "id": "button-group",
3
- "type": "component",
4
- "mergeInto": "button",
5
- "title": "Button Group",
6
- "description": "Container for grouped buttons that share borders and have connected appearance.",
7
- "api": "./button-group.api.json",
8
- "sections": [
9
- {
10
- "title": "Default",
11
- "examples": [
12
- {
13
- "items": [
14
- {
15
- "tag": "div",
16
- "class": "ui-button-group",
17
- "attrs": { "role": "group" },
18
- "children": [
19
- { "tag": "button", "class": "ui-button ui-button--outline", "text": "Left" },
20
- { "tag": "button", "class": "ui-button ui-button--outline", "text": "Middle" },
21
- { "tag": "button", "class": "ui-button ui-button--outline", "text": "Right" }
22
- ]
23
- }
24
- ],
25
- "code": "<div class=\"ui-button-group\" role=\"group\">\n <button class=\"ui-button ui-button--outline\">Left</button>\n <button class=\"ui-button ui-button--outline\">Middle</button>\n <button class=\"ui-button ui-button--outline\">Right</button>\n</div>"
26
- }
27
- ]
28
- },
29
- {
30
- "title": "Primary Buttons",
31
- "examples": [
32
- {
33
- "items": [
34
- {
35
- "tag": "div",
36
- "class": "ui-button-group",
37
- "attrs": { "role": "group" },
38
- "children": [
39
- { "tag": "button", "class": "ui-button", "text": "Save" },
40
- { "tag": "button", "class": "ui-button", "text": "Save & Close" }
41
- ]
42
- }
43
- ],
44
- "code": "<div class=\"ui-button-group\" role=\"group\">\n <button class=\"ui-button\">Save</button>\n <button class=\"ui-button\">Save & Close</button>\n</div>"
45
- }
46
- ]
47
- },
48
- {
49
- "title": "Vertical",
50
- "examples": [
51
- {
52
- "items": [
53
- {
54
- "tag": "div",
55
- "class": "ui-button-group ui-button-group--vertical",
56
- "attrs": { "role": "group" },
57
- "children": [
58
- { "tag": "button", "class": "ui-button ui-button--outline", "text": "Top" },
59
- { "tag": "button", "class": "ui-button ui-button--outline", "text": "Middle" },
60
- { "tag": "button", "class": "ui-button ui-button--outline", "text": "Bottom" }
61
- ]
62
- }
63
- ],
64
- "code": "<div class=\"ui-button-group ui-button-group--vertical\" role=\"group\">\n <button class=\"ui-button ui-button--outline\">Top</button>\n <button class=\"ui-button ui-button--outline\">Middle</button>\n <button class=\"ui-button ui-button--outline\">Bottom</button>\n</div>"
65
- }
66
- ]
67
- },
68
- {
69
- "title": "With Icons",
70
- "examples": [
71
- {
72
- "items": [
73
- {
74
- "tag": "div",
75
- "class": "ui-button-group",
76
- "attrs": { "role": "group", "aria-label": "Text formatting" },
77
- "children": [
78
- {
79
- "tag": "button",
80
- "class": "ui-button ui-button--outline ui-button--icon",
81
- "attrs": { "aria-label": "Bold" },
82
- "children": [
83
- {
84
- "tag": "svg",
85
- "class": "ui-icon",
86
- "attrs": { "viewBox": "0 0 24 24", "fill": "currentColor" },
87
- "children": [
88
- {
89
- "tag": "path",
90
- "attrs": {
91
- "d": "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"
92
- }
93
- }
94
- ]
95
- }
96
- ]
97
- },
98
- {
99
- "tag": "button",
100
- "class": "ui-button ui-button--outline ui-button--icon",
101
- "attrs": { "aria-label": "Italic" },
102
- "children": [
103
- {
104
- "tag": "svg",
105
- "class": "ui-icon",
106
- "attrs": { "viewBox": "0 0 24 24", "fill": "currentColor" },
107
- "children": [
108
- {
109
- "tag": "path",
110
- "attrs": { "d": "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }
111
- }
112
- ]
113
- }
114
- ]
115
- },
116
- {
117
- "tag": "button",
118
- "class": "ui-button ui-button--outline ui-button--icon",
119
- "attrs": { "aria-label": "Underline" },
120
- "children": [
121
- {
122
- "tag": "svg",
123
- "class": "ui-icon",
124
- "attrs": { "viewBox": "0 0 24 24", "fill": "currentColor" },
125
- "children": [
126
- {
127
- "tag": "path",
128
- "attrs": {
129
- "d": "M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"
130
- }
131
- }
132
- ]
133
- }
134
- ]
135
- }
136
- ]
137
- }
138
- ],
139
- "code": "<div class=\"ui-button-group\" role=\"group\" aria-label=\"Text formatting\">\n <button class=\"ui-button ui-button--outline ui-button--icon\" aria-label=\"Bold\">...</button>\n <button class=\"ui-button ui-button--outline ui-button--icon\" aria-label=\"Italic\">...</button>\n <button class=\"ui-button ui-button--outline ui-button--icon\" aria-label=\"Underline\">...</button>\n</div>"
140
- }
141
- ]
142
- }
143
- ],
144
- "customization": [
145
- {
146
- "token": "--ui-button-group-radius",
147
- "default": "var(--ui-radius-md)",
148
- "description": "Border radius for first and last buttons"
149
- }
150
- ]
151
- }
@@ -1,265 +0,0 @@
1
- {
2
- "id": "close-button",
3
- "type": "component",
4
- "mergeInto": "button",
5
- "title": "Close Button",
6
- "description": "Dismiss button for closing modals, alerts, drawers, and other dismissible elements.",
7
- "api": "./close-button.api.json",
8
- "sections": [
9
- {
10
- "title": "Default",
11
- "examples": [
12
- {
13
- "items": [
14
- {
15
- "tag": "button",
16
- "class": "ui-close-button",
17
- "attrs": { "type": "button", "aria-label": "Close" },
18
- "children": [
19
- {
20
- "tag": "svg",
21
- "class": "ui-close-button__icon",
22
- "attrs": {
23
- "viewBox": "0 0 24 24",
24
- "xmlns": "http://www.w3.org/2000/svg"
25
- },
26
- "children": [
27
- {
28
- "tag": "line",
29
- "attrs": {
30
- "x1": "18",
31
- "y1": "6",
32
- "x2": "6",
33
- "y2": "18"
34
- }
35
- },
36
- {
37
- "tag": "line",
38
- "attrs": {
39
- "x1": "6",
40
- "y1": "6",
41
- "x2": "18",
42
- "y2": "18"
43
- }
44
- }
45
- ]
46
- }
47
- ]
48
- }
49
- ],
50
- "code": "<button class=\"ui-close-button\" type=\"button\" aria-label=\"Close\">\n <svg class=\"ui-close-button__icon\" viewBox=\"0 0 24 24\">\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n </svg>\n</button>"
51
- }
52
- ]
53
- },
54
- {
55
- "title": "Sizes",
56
- "examples": [
57
- {
58
- "layout": "row",
59
- "items": [
60
- {
61
- "tag": "button",
62
- "class": "ui-close-button ui-close-button--sm",
63
- "attrs": { "type": "button", "aria-label": "Close" },
64
- "children": [
65
- {
66
- "tag": "svg",
67
- "class": "ui-close-button__icon",
68
- "attrs": { "viewBox": "0 0 24 24", "xmlns": "http://www.w3.org/2000/svg" },
69
- "children": [
70
- { "tag": "line", "attrs": { "x1": "18", "y1": "6", "x2": "6", "y2": "18" } },
71
- { "tag": "line", "attrs": { "x1": "6", "y1": "6", "x2": "18", "y2": "18" } }
72
- ]
73
- }
74
- ]
75
- },
76
- {
77
- "tag": "button",
78
- "class": "ui-close-button",
79
- "attrs": { "type": "button", "aria-label": "Close" },
80
- "children": [
81
- {
82
- "tag": "svg",
83
- "class": "ui-close-button__icon",
84
- "attrs": { "viewBox": "0 0 24 24", "xmlns": "http://www.w3.org/2000/svg" },
85
- "children": [
86
- { "tag": "line", "attrs": { "x1": "18", "y1": "6", "x2": "6", "y2": "18" } },
87
- { "tag": "line", "attrs": { "x1": "6", "y1": "6", "x2": "18", "y2": "18" } }
88
- ]
89
- }
90
- ]
91
- },
92
- {
93
- "tag": "button",
94
- "class": "ui-close-button ui-close-button--lg",
95
- "attrs": { "type": "button", "aria-label": "Close" },
96
- "children": [
97
- {
98
- "tag": "svg",
99
- "class": "ui-close-button__icon",
100
- "attrs": { "viewBox": "0 0 24 24", "xmlns": "http://www.w3.org/2000/svg" },
101
- "children": [
102
- { "tag": "line", "attrs": { "x1": "18", "y1": "6", "x2": "6", "y2": "18" } },
103
- { "tag": "line", "attrs": { "x1": "6", "y1": "6", "x2": "18", "y2": "18" } }
104
- ]
105
- }
106
- ]
107
- }
108
- ],
109
- "code": "<button class=\"ui-close-button ui-close-button--sm\" aria-label=\"Close\">...</button>\n<button class=\"ui-close-button\" aria-label=\"Close\">...</button>\n<button class=\"ui-close-button ui-close-button--lg\" aria-label=\"Close\">...</button>"
110
- }
111
- ]
112
- },
113
- {
114
- "title": "Subtle",
115
- "description": "Lower visual prominence for secondary dismiss actions.",
116
- "examples": [
117
- {
118
- "layout": "row",
119
- "items": [
120
- {
121
- "tag": "button",
122
- "class": "ui-close-button ui-close-button--subtle",
123
- "attrs": { "type": "button", "aria-label": "Close" },
124
- "children": [
125
- {
126
- "tag": "svg",
127
- "class": "ui-close-button__icon",
128
- "attrs": { "viewBox": "0 0 24 24", "xmlns": "http://www.w3.org/2000/svg" },
129
- "children": [
130
- { "tag": "line", "attrs": { "x1": "18", "y1": "6", "x2": "6", "y2": "18" } },
131
- { "tag": "line", "attrs": { "x1": "6", "y1": "6", "x2": "18", "y2": "18" } }
132
- ]
133
- }
134
- ]
135
- },
136
- {
137
- "tag": "button",
138
- "class": "ui-close-button ui-close-button--subtle ui-close-button--sm",
139
- "attrs": { "type": "button", "aria-label": "Close" },
140
- "children": [
141
- {
142
- "tag": "svg",
143
- "class": "ui-close-button__icon",
144
- "attrs": { "viewBox": "0 0 24 24", "xmlns": "http://www.w3.org/2000/svg" },
145
- "children": [
146
- { "tag": "line", "attrs": { "x1": "18", "y1": "6", "x2": "6", "y2": "18" } },
147
- { "tag": "line", "attrs": { "x1": "6", "y1": "6", "x2": "18", "y2": "18" } }
148
- ]
149
- }
150
- ]
151
- }
152
- ],
153
- "code": "<button class=\"ui-close-button ui-close-button--subtle\" aria-label=\"Close\">...</button>"
154
- }
155
- ]
156
- },
157
- {
158
- "title": "States",
159
- "examples": [
160
- {
161
- "layout": "row",
162
- "items": [
163
- {
164
- "tag": "button",
165
- "class": "ui-close-button",
166
- "attrs": { "type": "button", "aria-label": "Close" },
167
- "children": [
168
- {
169
- "tag": "svg",
170
- "class": "ui-close-button__icon",
171
- "attrs": { "viewBox": "0 0 24 24", "xmlns": "http://www.w3.org/2000/svg" },
172
- "children": [
173
- { "tag": "line", "attrs": { "x1": "18", "y1": "6", "x2": "6", "y2": "18" } },
174
- { "tag": "line", "attrs": { "x1": "6", "y1": "6", "x2": "18", "y2": "18" } }
175
- ]
176
- }
177
- ]
178
- },
179
- {
180
- "tag": "button",
181
- "class": "ui-close-button ui-close-button--hover",
182
- "attrs": { "type": "button", "aria-label": "Close" },
183
- "children": [
184
- {
185
- "tag": "svg",
186
- "class": "ui-close-button__icon",
187
- "attrs": { "viewBox": "0 0 24 24", "xmlns": "http://www.w3.org/2000/svg" },
188
- "children": [
189
- { "tag": "line", "attrs": { "x1": "18", "y1": "6", "x2": "6", "y2": "18" } },
190
- { "tag": "line", "attrs": { "x1": "6", "y1": "6", "x2": "18", "y2": "18" } }
191
- ]
192
- }
193
- ]
194
- },
195
- {
196
- "tag": "button",
197
- "class": "ui-close-button ui-close-button--focus",
198
- "attrs": { "type": "button", "aria-label": "Close" },
199
- "children": [
200
- {
201
- "tag": "svg",
202
- "class": "ui-close-button__icon",
203
- "attrs": { "viewBox": "0 0 24 24", "xmlns": "http://www.w3.org/2000/svg" },
204
- "children": [
205
- { "tag": "line", "attrs": { "x1": "18", "y1": "6", "x2": "6", "y2": "18" } },
206
- { "tag": "line", "attrs": { "x1": "6", "y1": "6", "x2": "18", "y2": "18" } }
207
- ]
208
- }
209
- ]
210
- },
211
- {
212
- "tag": "button",
213
- "class": "ui-close-button",
214
- "attrs": { "type": "button", "aria-label": "Close", "disabled": "" },
215
- "children": [
216
- {
217
- "tag": "svg",
218
- "class": "ui-close-button__icon",
219
- "attrs": { "viewBox": "0 0 24 24", "xmlns": "http://www.w3.org/2000/svg" },
220
- "children": [
221
- { "tag": "line", "attrs": { "x1": "18", "y1": "6", "x2": "6", "y2": "18" } },
222
- { "tag": "line", "attrs": { "x1": "6", "y1": "6", "x2": "18", "y2": "18" } }
223
- ]
224
- }
225
- ]
226
- }
227
- ],
228
- "code": "<button class=\"ui-close-button\" aria-label=\"Close\">...</button>\n<button class=\"ui-close-button ui-close-button--hover\">...</button>\n<button class=\"ui-close-button ui-close-button--focus\">...</button>\n<button class=\"ui-close-button\" disabled>...</button>"
229
- }
230
- ]
231
- }
232
- ],
233
- "customization": [
234
- {
235
- "token": "--ui-close-button-size",
236
- "default": "var(--ui-row-2)",
237
- "description": "Overall button dimensions"
238
- },
239
- {
240
- "token": "--ui-close-button-icon-size",
241
- "default": "var(--ui-size-md)",
242
- "description": "X icon dimensions"
243
- },
244
- {
245
- "token": "--ui-close-button-color",
246
- "default": "var(--ui-color-text-muted)",
247
- "description": "Icon color"
248
- },
249
- {
250
- "token": "--ui-close-button-bg",
251
- "default": "transparent",
252
- "description": "Background color"
253
- },
254
- {
255
- "token": "--ui-close-button-hover-bg",
256
- "default": "var(--ui-color-bg-muted)",
257
- "description": "Hover background"
258
- },
259
- {
260
- "token": "--ui-close-button-radius",
261
- "default": "var(--ui-radius-md)",
262
- "description": "Border radius"
263
- }
264
- ]
265
- }
@@ -1,113 +0,0 @@
1
- {
2
- "id": "divider",
3
- "type": "component",
4
- "title": "Divider",
5
- "description": "Visual separator between content sections. Supports horizontal/vertical orientation and optional text label.",
6
- "api": "./divider.api.json",
7
- "sections": [
8
- {
9
- "title": "Default",
10
- "examples": [
11
- {
12
- "items": [{ "tag": "div", "class": "ui-divider", "attrs": { "role": "separator" } }],
13
- "code": "<div class=\"ui-divider\" role=\"separator\"></div>"
14
- }
15
- ]
16
- },
17
- {
18
- "title": "With Label",
19
- "examples": [
20
- {
21
- "items": [
22
- { "tag": "div", "class": "ui-divider", "attrs": { "role": "separator" }, "text": "OR" }
23
- ],
24
- "code": "<div class=\"ui-divider\" role=\"separator\">OR</div>"
25
- }
26
- ]
27
- },
28
- {
29
- "title": "Label Alignment",
30
- "examples": [
31
- {
32
- "items": [
33
- {
34
- "tag": "div",
35
- "class": "ui-divider ui-divider--start",
36
- "attrs": { "role": "separator" },
37
- "text": "Start"
38
- },
39
- {
40
- "tag": "div",
41
- "class": "ui-divider",
42
- "attrs": { "role": "separator" },
43
- "text": "Center"
44
- },
45
- {
46
- "tag": "div",
47
- "class": "ui-divider ui-divider--end",
48
- "attrs": { "role": "separator" },
49
- "text": "End"
50
- }
51
- ],
52
- "code": "<div class=\"ui-divider ui-divider--start\">Start</div>\n<div class=\"ui-divider\">Center</div>\n<div class=\"ui-divider ui-divider--end\">End</div>"
53
- }
54
- ]
55
- },
56
- {
57
- "title": "Dashed",
58
- "examples": [
59
- {
60
- "items": [
61
- {
62
- "tag": "div",
63
- "class": "ui-divider ui-divider--dashed",
64
- "attrs": { "role": "separator" }
65
- }
66
- ],
67
- "code": "<div class=\"ui-divider ui-divider--dashed\"></div>"
68
- }
69
- ]
70
- },
71
- {
72
- "title": "Vertical",
73
- "examples": [
74
- {
75
- "items": [
76
- {
77
- "tag": "div",
78
- "attrs": { "style": "display: flex; height: 64px; align-items: center;" },
79
- "children": [
80
- { "tag": "span", "text": "Left" },
81
- {
82
- "tag": "div",
83
- "class": "ui-divider ui-divider--vertical",
84
- "attrs": { "role": "separator" }
85
- },
86
- { "tag": "span", "text": "Right" }
87
- ]
88
- }
89
- ],
90
- "code": "<div style=\"display: flex;\">\n <span>Left</span>\n <div class=\"ui-divider ui-divider--vertical\"></div>\n <span>Right</span>\n</div>"
91
- }
92
- ]
93
- }
94
- ],
95
- "customization": [
96
- {
97
- "token": "--ui-divider-color",
98
- "default": "var(--ui-color-border)",
99
- "description": "Line color"
100
- },
101
- { "token": "--ui-divider-line-size", "default": "1px", "description": "Line thickness" },
102
- {
103
- "token": "--ui-divider-height",
104
- "default": "var(--ui-unit)",
105
- "description": "Container height"
106
- },
107
- {
108
- "token": "--ui-divider-gap",
109
- "default": "calc(var(--ui-unit) * 2)",
110
- "description": "Vertical margin"
111
- }
112
- ]
113
- }