@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,273 +0,0 @@
1
- {
2
- "id": "scroll-area",
3
- "type": "component",
4
- "title": "Scroll Area",
5
- "description": "Scrollable container with styled scrollbar. Provides overflow control and custom scrollbar styling.",
6
- "api": "./scroll-area.api.json",
7
- "sections": [
8
- {
9
- "title": "Default",
10
- "examples": [
11
- {
12
- "items": [
13
- {
14
- "tag": "div",
15
- "class": "ui-scroll-area",
16
- "children": [
17
- {
18
- "tag": "div",
19
- "class": "ui-scroll-area__viewport",
20
- "children": [
21
- { "tag": "p", "text": "Line 1 of scrollable content" },
22
- { "tag": "p", "text": "Line 2 of scrollable content" },
23
- { "tag": "p", "text": "Line 3 of scrollable content" },
24
- { "tag": "p", "text": "Line 4 of scrollable content" },
25
- { "tag": "p", "text": "Line 5 of scrollable content" },
26
- { "tag": "p", "text": "Line 6 of scrollable content" },
27
- { "tag": "p", "text": "Line 7 of scrollable content" },
28
- { "tag": "p", "text": "Line 8 of scrollable content" },
29
- { "tag": "p", "text": "Line 9 of scrollable content" },
30
- { "tag": "p", "text": "Line 10 of scrollable content" },
31
- { "tag": "p", "text": "Line 11 of scrollable content" },
32
- { "tag": "p", "text": "Line 12 of scrollable content" },
33
- { "tag": "p", "text": "Line 13 of scrollable content" },
34
- { "tag": "p", "text": "Line 14 of scrollable content" },
35
- { "tag": "p", "text": "Line 15 of scrollable content" }
36
- ]
37
- }
38
- ]
39
- }
40
- ],
41
- "code": "<div class=\"ui-scroll-area\">\n <div class=\"ui-scroll-area__viewport\">\n Content...\n </div>\n</div>"
42
- }
43
- ]
44
- },
45
- {
46
- "title": "Sizes",
47
- "examples": [
48
- {
49
- "layout": "column",
50
- "items": [
51
- {
52
- "tag": "div",
53
- "class": "ui-scroll-area ui-scroll-area--sm",
54
- "children": [
55
- {
56
- "tag": "div",
57
- "class": "ui-scroll-area__viewport",
58
- "children": [
59
- { "tag": "p", "text": "Small - Line 1" },
60
- { "tag": "p", "text": "Small - Line 2" },
61
- { "tag": "p", "text": "Small - Line 3" },
62
- { "tag": "p", "text": "Small - Line 4" },
63
- { "tag": "p", "text": "Small - Line 5" },
64
- { "tag": "p", "text": "Small - Line 6" },
65
- { "tag": "p", "text": "Small - Line 7" },
66
- { "tag": "p", "text": "Small - Line 8" }
67
- ]
68
- }
69
- ]
70
- },
71
- {
72
- "tag": "div",
73
- "class": "ui-scroll-area ui-scroll-area--xl",
74
- "children": [
75
- {
76
- "tag": "div",
77
- "class": "ui-scroll-area__viewport",
78
- "children": [
79
- { "tag": "p", "text": "XL - Line 1" },
80
- { "tag": "p", "text": "XL - Line 2" },
81
- { "tag": "p", "text": "XL - Line 3" },
82
- { "tag": "p", "text": "XL - Line 4" },
83
- { "tag": "p", "text": "XL - Line 5" }
84
- ]
85
- }
86
- ]
87
- },
88
- {
89
- "tag": "div",
90
- "class": "ui-scroll-area ui-scroll-area--lg",
91
- "children": [
92
- {
93
- "tag": "div",
94
- "class": "ui-scroll-area__viewport",
95
- "children": [
96
- { "tag": "p", "text": "Large - Line 1" },
97
- { "tag": "p", "text": "Large - Line 2" },
98
- { "tag": "p", "text": "Large - Line 3" },
99
- { "tag": "p", "text": "Large - Line 4" },
100
- { "tag": "p", "text": "Large - Line 5" },
101
- { "tag": "p", "text": "Large - Line 6" },
102
- { "tag": "p", "text": "Large - Line 7" },
103
- { "tag": "p", "text": "Large - Line 8" },
104
- { "tag": "p", "text": "Large - Line 9" },
105
- { "tag": "p", "text": "Large - Line 10" },
106
- { "tag": "p", "text": "Large - Line 11" },
107
- { "tag": "p", "text": "Large - Line 12" },
108
- { "tag": "p", "text": "Large - Line 13" },
109
- { "tag": "p", "text": "Large - Line 14" },
110
- { "tag": "p", "text": "Large - Line 15" },
111
- { "tag": "p", "text": "Large - Line 16" },
112
- { "tag": "p", "text": "Large - Line 17" },
113
- { "tag": "p", "text": "Large - Line 18" },
114
- { "tag": "p", "text": "Large - Line 19" },
115
- { "tag": "p", "text": "Large - Line 20" }
116
- ]
117
- }
118
- ]
119
- }
120
- ],
121
- "code": "<div class=\"ui-scroll-area ui-scroll-area--sm\">...</div>\n<div class=\"ui-scroll-area ui-scroll-area--lg\">...</div>\n<div class=\"ui-scroll-area ui-scroll-area--xl\">...</div>"
122
- }
123
- ]
124
- },
125
- {
126
- "title": "Direction",
127
- "examples": [
128
- {
129
- "layout": "column",
130
- "items": [
131
- {
132
- "tag": "div",
133
- "class": "ui-scroll-area ui-scroll-area--horizontal",
134
- "children": [
135
- {
136
- "tag": "div",
137
- "class": "ui-scroll-area__viewport",
138
- "children": [
139
- {
140
- "tag": "p",
141
- "style": { "white-space": "nowrap" },
142
- "text": "This content scrolls horizontally when it overflows the container width. Resize the window to test."
143
- }
144
- ]
145
- }
146
- ]
147
- },
148
- {
149
- "tag": "div",
150
- "class": "ui-scroll-area ui-scroll-area--both ui-scroll-area--sm",
151
- "children": [
152
- {
153
- "tag": "div",
154
- "class": "ui-scroll-area__viewport",
155
- "children": [
156
- {
157
- "tag": "p",
158
- "style": { "white-space": "nowrap" },
159
- "text": "Both directions - Line 1 with long content that overflows horizontally"
160
- },
161
- { "tag": "p", "text": "Line 2" },
162
- { "tag": "p", "text": "Line 3" },
163
- { "tag": "p", "text": "Line 4" },
164
- { "tag": "p", "text": "Line 5" },
165
- { "tag": "p", "text": "Line 6" },
166
- { "tag": "p", "text": "Line 7" },
167
- { "tag": "p", "text": "Line 8" }
168
- ]
169
- }
170
- ]
171
- }
172
- ],
173
- "code": "<div class=\"ui-scroll-area ui-scroll-area--horizontal\">...</div>\n<div class=\"ui-scroll-area ui-scroll-area--both\">...</div>"
174
- }
175
- ]
176
- },
177
- {
178
- "title": "Thin Scrollbar",
179
- "examples": [
180
- {
181
- "items": [
182
- {
183
- "tag": "div",
184
- "class": "ui-scroll-area ui-scroll-area--thin",
185
- "children": [
186
- {
187
- "tag": "div",
188
- "class": "ui-scroll-area__viewport",
189
- "children": [
190
- { "tag": "p", "text": "Thin scrollbar - Line 1" },
191
- { "tag": "p", "text": "Thin scrollbar - Line 2" },
192
- { "tag": "p", "text": "Thin scrollbar - Line 3" },
193
- { "tag": "p", "text": "Thin scrollbar - Line 4" },
194
- { "tag": "p", "text": "Thin scrollbar - Line 5" },
195
- { "tag": "p", "text": "Thin scrollbar - Line 6" },
196
- { "tag": "p", "text": "Thin scrollbar - Line 7" },
197
- { "tag": "p", "text": "Thin scrollbar - Line 8" },
198
- { "tag": "p", "text": "Thin scrollbar - Line 9" },
199
- { "tag": "p", "text": "Thin scrollbar - Line 10" },
200
- { "tag": "p", "text": "Thin scrollbar - Line 11" },
201
- { "tag": "p", "text": "Thin scrollbar - Line 12" }
202
- ]
203
- }
204
- ]
205
- }
206
- ],
207
- "code": "<div class=\"ui-scroll-area ui-scroll-area--thin\">...</div>"
208
- }
209
- ]
210
- },
211
- {
212
- "title": "Auto-Hide",
213
- "examples": [
214
- {
215
- "items": [
216
- {
217
- "tag": "div",
218
- "class": "ui-scroll-area ui-scroll-area--auto-hide",
219
- "children": [
220
- {
221
- "tag": "div",
222
- "class": "ui-scroll-area__viewport",
223
- "children": [
224
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 1" },
225
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 2" },
226
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 3" },
227
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 4" },
228
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 5" },
229
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 6" },
230
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 7" },
231
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 8" },
232
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 9" },
233
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 10" },
234
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 11" },
235
- { "tag": "p", "text": "Scrollbar hidden until hover - Line 12" }
236
- ]
237
- }
238
- ]
239
- }
240
- ],
241
- "code": "<div class=\"ui-scroll-area ui-scroll-area--auto-hide\">...</div>"
242
- }
243
- ]
244
- }
245
- ],
246
- "customization": [
247
- {
248
- "token": "--ui-scroll-area-max-height",
249
- "default": "calc(var(--ui-row) * 10)",
250
- "description": "Default max height"
251
- },
252
- {
253
- "token": "--ui-scroll-area-scrollbar-size",
254
- "default": "var(--ui-space-1)",
255
- "description": "Scrollbar width"
256
- },
257
- {
258
- "token": "--ui-scroll-area-thumb-color",
259
- "default": "var(--ui-color-border-strong)",
260
- "description": "Scrollbar thumb color"
261
- },
262
- {
263
- "token": "--ui-scroll-area-thumb-hover-color",
264
- "default": "var(--ui-color-neutral-400)",
265
- "description": "Scrollbar thumb hover color"
266
- },
267
- {
268
- "token": "--ui-scroll-area-track-color",
269
- "default": "transparent",
270
- "description": "Scrollbar track background"
271
- }
272
- ]
273
- }
@@ -1,102 +0,0 @@
1
- {
2
- "id": "spacer",
3
- "type": "component",
4
- "title": "Spacer",
5
- "description": "Flexible space filler that grows to fill available space in flex containers.",
6
- "api": "./spacer.api.json",
7
- "sections": [
8
- {
9
- "title": "Default",
10
- "examples": [
11
- {
12
- "items": [
13
- {
14
- "tag": "div",
15
- "class": "ui-row",
16
- "style": {
17
- "inline-size": "100%",
18
- "background": "var(--ui-color-bg-subtle)",
19
- "padding": "var(--ui-space-2)"
20
- },
21
- "children": [
22
- {
23
- "tag": "span",
24
- "text": "Start",
25
- "style": {
26
- "background": "var(--ui-color-bg-muted)",
27
- "padding": "var(--ui-space-1)"
28
- }
29
- },
30
- { "tag": "div", "class": "ui-spacer" },
31
- {
32
- "tag": "span",
33
- "text": "End",
34
- "style": {
35
- "background": "var(--ui-color-bg-muted)",
36
- "padding": "var(--ui-space-1)"
37
- }
38
- }
39
- ]
40
- }
41
- ]
42
- }
43
- ]
44
- },
45
- {
46
- "title": "Between items",
47
- "examples": [
48
- {
49
- "items": [
50
- {
51
- "tag": "div",
52
- "class": "ui-row",
53
- "style": {
54
- "inline-size": "100%",
55
- "background": "var(--ui-color-bg-subtle)",
56
- "padding": "var(--ui-space-2)"
57
- },
58
- "children": [
59
- {
60
- "tag": "span",
61
- "text": "Logo",
62
- "style": {
63
- "background": "var(--ui-color-bg-muted)",
64
- "padding": "var(--ui-space-1)"
65
- }
66
- },
67
- { "tag": "div", "class": "ui-spacer" },
68
- {
69
- "tag": "span",
70
- "text": "Nav 1",
71
- "style": {
72
- "background": "var(--ui-color-bg-muted)",
73
- "padding": "var(--ui-space-1)"
74
- }
75
- },
76
- {
77
- "tag": "span",
78
- "text": "Nav 2",
79
- "style": {
80
- "background": "var(--ui-color-bg-muted)",
81
- "padding": "var(--ui-space-1)"
82
- }
83
- },
84
- {
85
- "tag": "span",
86
- "text": "Nav 3",
87
- "style": {
88
- "background": "var(--ui-color-bg-muted)",
89
- "padding": "var(--ui-space-1)"
90
- }
91
- }
92
- ]
93
- }
94
- ]
95
- }
96
- ]
97
- }
98
- ],
99
- "customization": [
100
- { "token": "--ui-spacer-size", "default": "1", "description": "Flex grow factor" }
101
- ]
102
- }
@@ -1,245 +0,0 @@
1
- {
2
- "id": "avatar",
3
- "type": "component",
4
- "title": "Avatar",
5
- "description": "User or entity thumbnail representation. Supports image with fallback to initials.",
6
- "api": "./avatar.api.json",
7
- "sections": [
8
- {
9
- "title": "Default",
10
- "examples": [
11
- {
12
- "layout": "row",
13
- "items": [
14
- {
15
- "tag": "div",
16
- "class": "ui-avatar",
17
- "children": [{ "tag": "span", "class": "ui-avatar__fallback", "text": "JD" }]
18
- },
19
- {
20
- "tag": "div",
21
- "class": "ui-avatar",
22
- "children": [
23
- {
24
- "tag": "img",
25
- "class": "ui-avatar__image",
26
- "attrs": { "src": "https://i.pravatar.cc/80?u=1", "alt": "User" }
27
- }
28
- ]
29
- }
30
- ],
31
- "code": "<div class=\"ui-avatar\">\n <span class=\"ui-avatar__fallback\">JD</span>\n</div>\n\n<div class=\"ui-avatar\">\n <img class=\"ui-avatar__image\" src=\"...\" alt=\"User\">\n</div>"
32
- }
33
- ]
34
- },
35
- {
36
- "title": "Sizes",
37
- "examples": [
38
- {
39
- "layout": "row",
40
- "items": [
41
- {
42
- "tag": "div",
43
- "class": "ui-avatar ui-avatar--xs",
44
- "children": [{ "tag": "span", "class": "ui-avatar__fallback", "text": "XS" }]
45
- },
46
- {
47
- "tag": "div",
48
- "class": "ui-avatar ui-avatar--sm",
49
- "children": [{ "tag": "span", "class": "ui-avatar__fallback", "text": "SM" }]
50
- },
51
- {
52
- "tag": "div",
53
- "class": "ui-avatar",
54
- "children": [{ "tag": "span", "class": "ui-avatar__fallback", "text": "MD" }]
55
- },
56
- {
57
- "tag": "div",
58
- "class": "ui-avatar ui-avatar--lg",
59
- "children": [{ "tag": "span", "class": "ui-avatar__fallback", "text": "LG" }]
60
- },
61
- {
62
- "tag": "div",
63
- "class": "ui-avatar ui-avatar--xl",
64
- "children": [{ "tag": "span", "class": "ui-avatar__fallback", "text": "XL" }]
65
- }
66
- ],
67
- "code": "<div class=\"ui-avatar ui-avatar--xs\"><span class=\"ui-avatar__fallback\">XS</span></div>\n<div class=\"ui-avatar ui-avatar--sm\"><span class=\"ui-avatar__fallback\">SM</span></div>\n<div class=\"ui-avatar\"><span class=\"ui-avatar__fallback\">MD</span></div>\n<div class=\"ui-avatar ui-avatar--lg\"><span class=\"ui-avatar__fallback\">LG</span></div>\n<div class=\"ui-avatar ui-avatar--xl\"><span class=\"ui-avatar__fallback\">XL</span></div>"
68
- }
69
- ]
70
- },
71
- {
72
- "title": "Square Shape",
73
- "examples": [
74
- {
75
- "layout": "row",
76
- "items": [
77
- {
78
- "tag": "div",
79
- "class": "ui-avatar ui-avatar--square",
80
- "children": [{ "tag": "span", "class": "ui-avatar__fallback", "text": "ORG" }]
81
- },
82
- {
83
- "tag": "div",
84
- "class": "ui-avatar ui-avatar--square",
85
- "children": [
86
- {
87
- "tag": "img",
88
- "class": "ui-avatar__image",
89
- "attrs": { "src": "https://i.pravatar.cc/80?u=org", "alt": "Org" }
90
- }
91
- ]
92
- }
93
- ],
94
- "code": "<div class=\"ui-avatar ui-avatar--square\">\n <span class=\"ui-avatar__fallback\">ORG</span>\n</div>"
95
- }
96
- ]
97
- },
98
- {
99
- "title": "With Images",
100
- "examples": [
101
- {
102
- "layout": "row",
103
- "items": [
104
- {
105
- "tag": "div",
106
- "class": "ui-avatar ui-avatar--sm",
107
- "children": [
108
- {
109
- "tag": "img",
110
- "class": "ui-avatar__image",
111
- "attrs": { "src": "https://i.pravatar.cc/64?u=a", "alt": "User A" }
112
- }
113
- ]
114
- },
115
- {
116
- "tag": "div",
117
- "class": "ui-avatar",
118
- "children": [
119
- {
120
- "tag": "img",
121
- "class": "ui-avatar__image",
122
- "attrs": { "src": "https://i.pravatar.cc/80?u=b", "alt": "User B" }
123
- }
124
- ]
125
- },
126
- {
127
- "tag": "div",
128
- "class": "ui-avatar ui-avatar--lg",
129
- "children": [
130
- {
131
- "tag": "img",
132
- "class": "ui-avatar__image",
133
- "attrs": { "src": "https://i.pravatar.cc/96?u=c", "alt": "User C" }
134
- }
135
- ]
136
- }
137
- ],
138
- "code": "<div class=\"ui-avatar\">\n <img class=\"ui-avatar__image\" src=\"...\" alt=\"User\">\n</div>"
139
- }
140
- ]
141
- },
142
- {
143
- "title": "Avatar Group",
144
- "examples": [
145
- {
146
- "items": [
147
- {
148
- "tag": "div",
149
- "class": "ui-avatar-group",
150
- "children": [
151
- {
152
- "tag": "div",
153
- "class": "ui-avatar",
154
- "children": [
155
- {
156
- "tag": "img",
157
- "class": "ui-avatar__image",
158
- "attrs": { "src": "https://i.pravatar.cc/80?u=g1", "alt": "" }
159
- }
160
- ]
161
- },
162
- {
163
- "tag": "div",
164
- "class": "ui-avatar",
165
- "children": [
166
- {
167
- "tag": "img",
168
- "class": "ui-avatar__image",
169
- "attrs": { "src": "https://i.pravatar.cc/80?u=g2", "alt": "" }
170
- }
171
- ]
172
- },
173
- {
174
- "tag": "div",
175
- "class": "ui-avatar",
176
- "children": [
177
- {
178
- "tag": "img",
179
- "class": "ui-avatar__image",
180
- "attrs": { "src": "https://i.pravatar.cc/80?u=g3", "alt": "" }
181
- }
182
- ]
183
- },
184
- {
185
- "tag": "div",
186
- "class": "ui-avatar",
187
- "children": [{ "tag": "span", "class": "ui-avatar__fallback", "text": "+5" }]
188
- }
189
- ]
190
- }
191
- ],
192
- "code": "<div class=\"ui-avatar-group\">\n <div class=\"ui-avatar\">\n <img class=\"ui-avatar__image\" src=\"...\" alt=\"\">\n </div>\n <div class=\"ui-avatar\">\n <img class=\"ui-avatar__image\" src=\"...\" alt=\"\">\n </div>\n <div class=\"ui-avatar\">\n <span class=\"ui-avatar__fallback\">+5</span>\n </div>\n</div>"
193
- }
194
- ]
195
- }
196
- ],
197
- "customization": [
198
- {
199
- "token": "--ui-avatar-size",
200
- "default": "calc(var(--ui-unit) * 5)",
201
- "description": "Default size"
202
- },
203
- {
204
- "token": "--ui-avatar-size-xs",
205
- "default": "calc(var(--ui-unit) * 3)",
206
- "description": "Extra small size"
207
- },
208
- {
209
- "token": "--ui-avatar-size-sm",
210
- "default": "calc(var(--ui-unit) * 4)",
211
- "description": "Small size"
212
- },
213
- {
214
- "token": "--ui-avatar-size-lg",
215
- "default": "calc(var(--ui-unit) * 6)",
216
- "description": "Large size"
217
- },
218
- {
219
- "token": "--ui-avatar-size-xl",
220
- "default": "calc(var(--ui-unit) * 8)",
221
- "description": "Extra large size"
222
- },
223
- {
224
- "token": "--ui-avatar-bg",
225
- "default": "var(--ui-color-bg-subtle)",
226
- "description": "Background color"
227
- },
228
- {
229
- "token": "--ui-avatar-color",
230
- "default": "var(--ui-color-text-muted)",
231
- "description": "Text color"
232
- },
233
- {
234
- "token": "--ui-avatar-font-size",
235
- "default": "var(--ui-font-size-sm)",
236
- "description": "Font size"
237
- },
238
- { "token": "--ui-avatar-radius", "default": "50%", "description": "Border radius" },
239
- {
240
- "token": "--ui-avatar-radius-square",
241
- "default": "var(--ui-radius-md)",
242
- "description": "Square variant radius"
243
- }
244
- ]
245
- }