@teseor/css 1.14.3 → 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 (295) 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 +3 -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 +3 -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 +3 -3
  10. package/src/components/content/divider/divider.docs.html +27 -0
  11. package/src/components/content/divider/divider.visual.spec.ts +3 -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 +3 -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 +3 -3
  19. package/src/components/data-display/badge/badge.docs.html +39 -0
  20. package/src/components/data-display/badge/badge.visual.spec.ts +3 -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 +3 -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 +3 -3
  27. package/src/components/data-display/icon/icon.docs.html +72 -0
  28. package/src/components/data-display/icon/icon.visual.spec.ts +3 -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 +3 -3
  32. package/src/components/data-display/stat/stat.docs.html +35 -0
  33. package/src/components/data-display/stat/stat.visual.spec.ts +3 -3
  34. package/src/components/data-display/status/status.docs.html +67 -0
  35. package/src/components/data-display/status/status.visual.spec.ts +3 -3
  36. package/src/components/data-display/table/table.docs.html +73 -0
  37. package/src/components/data-display/table/table.visual.spec.ts +3 -3
  38. package/src/components/data-display/tag/tag.docs.html +42 -0
  39. package/src/components/data-display/tag/tag.visual.spec.ts +3 -3
  40. package/src/components/disclosure/accordion/accordion.docs.html +83 -0
  41. package/src/components/disclosure/accordion/accordion.visual.spec.ts +3 -3
  42. package/src/components/disclosure/disclosure/disclosure.docs.html +51 -0
  43. package/src/components/disclosure/disclosure/disclosure.visual.spec.ts +3 -3
  44. package/src/components/feedback/alert/alert.docs.html +90 -0
  45. package/src/components/feedback/alert/alert.visual.spec.ts +3 -3
  46. package/src/components/feedback/progress/progress.docs.html +65 -0
  47. package/src/components/feedback/progress/progress.visual.spec.ts +3 -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 +3 -3
  50. package/src/components/feedback/skeleton/skeleton.docs.html +40 -0
  51. package/src/components/feedback/skeleton/skeleton.visual.spec.ts +3 -3
  52. package/src/components/feedback/spinner/spinner.docs.html +28 -0
  53. package/src/components/feedback/spinner/spinner.visual.spec.ts +3 -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 +3 -3
  57. package/src/components/forms/checkbox/checkbox.docs.html +33 -0
  58. package/src/components/forms/checkbox/checkbox.visual.spec.ts +3 -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 +3 -3
  61. package/src/components/forms/field/field.docs.html +63 -0
  62. package/src/components/forms/field/field.visual.spec.ts +3 -3
  63. package/src/components/forms/fieldset/fieldset.docs.html +122 -0
  64. package/src/components/forms/fieldset/fieldset.visual.spec.ts +3 -3
  65. package/src/components/forms/form/form.docs.html +132 -0
  66. package/src/components/forms/form/form.visual.spec.ts +3 -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 +3 -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 +3 -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 +3 -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 +3 -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 +3 -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 +3 -3
  83. package/src/components/forms/radio/radio.docs.html +52 -0
  84. package/src/components/forms/radio/radio.visual.spec.ts +3 -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 +3 -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 +3 -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 +3 -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 +3 -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 +3 -3
  99. package/src/components/forms/toggle/toggle.docs.html +64 -0
  100. package/src/components/forms/toggle/toggle.visual.spec.ts +3 -3
  101. package/src/components/navigation/breadcrumb/breadcrumb.docs.html +60 -0
  102. package/src/components/navigation/breadcrumb/breadcrumb.visual.spec.ts +3 -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 +3 -3
  106. package/src/components/navigation/menu/menu.docs.html +122 -0
  107. package/src/components/navigation/menu/menu.visual.spec.ts +3 -3
  108. package/src/components/navigation/nav/nav.docs.html +74 -0
  109. package/src/components/navigation/nav/nav.visual.spec.ts +3 -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 +3 -3
  113. package/src/components/navigation/tabs/tabs.docs.html +66 -0
  114. package/src/components/navigation/tabs/tabs.visual.spec.ts +3 -3
  115. package/src/components/overlays/dialog/dialog.docs.html +61 -0
  116. package/src/components/overlays/dialog/dialog.visual.spec.ts +3 -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 +3 -3
  120. package/src/components/overlays/modal/modal.docs.html +69 -0
  121. package/src/components/overlays/modal/modal.visual.spec.ts +3 -3
  122. package/src/components/overlays/overlay/overlay.docs.html +30 -0
  123. package/src/components/overlays/overlay/overlay.visual.spec.ts +3 -3
  124. package/src/components/overlays/popover/popover.docs.html +41 -0
  125. package/src/components/overlays/popover/popover.visual.spec.ts +3 -3
  126. package/src/components/overlays/tooltip/tooltip.docs.html +33 -0
  127. package/src/components/overlays/tooltip/tooltip.visual.spec.ts +3 -3
  128. package/src/components/typography/blockquote/blockquote.docs.html +24 -0
  129. package/src/components/typography/blockquote/blockquote.visual.spec.ts +3 -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 +3 -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 +3 -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 +3 -3
  139. package/src/components/typography/kbd/kbd.docs.html +16 -0
  140. package/src/components/typography/kbd/kbd.visual.spec.ts +3 -3
  141. package/src/components/typography/link/link.docs.html +33 -0
  142. package/src/components/typography/link/link.visual.spec.ts +3 -3
  143. package/src/components/typography/list/list.docs.html +79 -0
  144. package/src/components/typography/list/list.visual.spec.ts +3 -3
  145. package/src/components/typography/mark/mark.docs.html +12 -0
  146. package/src/components/typography/mark/mark.visual.spec.ts +3 -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/layout/app-shell/app-shell-visual.png +0 -0
  156. package/src/layout/app-shell/app-shell.docs.html +102 -0
  157. package/src/layout/app-shell/app-shell.visual.spec.ts +3 -3
  158. package/src/layout/aspect-ratio/aspect-ratio.docs.html +41 -0
  159. package/src/layout/aspect-ratio/aspect-ratio.visual.spec.ts +3 -3
  160. package/src/layout/box/box-visual.png +0 -0
  161. package/src/layout/box/box.docs.html +27 -0
  162. package/src/layout/box/box.visual.spec.ts +3 -3
  163. package/src/layout/center/center.docs.html +26 -0
  164. package/src/layout/center/center.visual.spec.ts +3 -3
  165. package/src/layout/column/column.docs.html +32 -0
  166. package/src/layout/column/column.visual.spec.ts +3 -3
  167. package/src/layout/container/container.docs.html +37 -0
  168. package/src/layout/content/content-visual.png +0 -0
  169. package/src/layout/content/content.docs.html +38 -0
  170. package/src/layout/content/content.visual.spec.ts +7 -3
  171. package/src/layout/footer/footer-visual.png +0 -0
  172. package/src/layout/footer/footer.docs.html +73 -0
  173. package/src/layout/footer/footer.visual.spec.ts +7 -3
  174. package/src/layout/grid/grid.docs.html +87 -0
  175. package/src/layout/grid/grid.visual.spec.ts +3 -3
  176. package/src/layout/main/main.docs.html +31 -0
  177. package/src/layout/nav-rail/nav-rail-visual.png +0 -0
  178. package/src/layout/nav-rail/nav-rail.docs.html +42 -0
  179. package/src/layout/nav-rail/nav-rail.visual.spec.ts +7 -3
  180. package/src/layout/page-header/page-header.docs.html +52 -0
  181. package/src/layout/page-header/page-header.visual.spec.ts +7 -3
  182. package/src/layout/row/row.docs.html +47 -0
  183. package/src/layout/row/row.visual.spec.ts +3 -3
  184. package/src/layout/sidebar/sidebar-visual.png +0 -0
  185. package/src/layout/sidebar/sidebar.docs.html +30 -0
  186. package/src/layout/sidebar/sidebar.visual.spec.ts +7 -3
  187. package/src/layout/sidebar-nav/sidebar-nav.docs.html +235 -0
  188. package/src/layout/sidebar-nav/sidebar-nav.visual.spec.ts +7 -3
  189. package/src/layout/topbar/topbar-visual.png +0 -0
  190. package/src/layout/topbar/topbar.docs.html +64 -0
  191. package/src/layout/topbar/topbar.visual.spec.ts +7 -3
  192. package/src/utilities/container/container.docs.html +34 -0
  193. package/src/utilities/display/display.docs.html +30 -0
  194. package/src/utilities/scroll-animation/scroll-animation.docs.html +32 -0
  195. package/src/utilities/scroll-snap/scroll-snap.docs.html +80 -0
  196. package/src/utilities/spacing/spacing.docs.html +29 -0
  197. package/src/utilities/text/text.docs.html +66 -0
  198. package/src/utilities/view-transition/view-transition.docs.html +52 -0
  199. package/src/utilities/visually-hidden/visually-hidden.docs.html +18 -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.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/guides/accessibility.docs.json +0 -126
  265. package/src/config/guides/getting-started.docs.json +0 -106
  266. package/src/config/guides/theming.docs.json +0 -289
  267. package/src/config/tokens/colors/colors.docs.json +0 -316
  268. package/src/config/tokens/design-tokens.docs.json +0 -239
  269. package/src/config/tokens/grid/grid.docs.json +0 -54
  270. package/src/config/tokens/spacing/spacing.docs.json +0 -114
  271. package/src/debug/debug.docs.json +0 -96
  272. package/src/layout/app-shell/app-shell.docs.json +0 -155
  273. package/src/layout/aspect-ratio/aspect-ratio.docs.json +0 -193
  274. package/src/layout/box/box.docs.json +0 -93
  275. package/src/layout/center/center.docs.json +0 -63
  276. package/src/layout/column/column.docs.json +0 -157
  277. package/src/layout/container/container.docs.json +0 -85
  278. package/src/layout/content/content.docs.json +0 -82
  279. package/src/layout/footer/footer.docs.json +0 -119
  280. package/src/layout/grid/grid.docs.json +0 -493
  281. package/src/layout/main/main.docs.json +0 -87
  282. package/src/layout/nav-rail/nav-rail.docs.json +0 -76
  283. package/src/layout/page-header/page-header.docs.json +0 -124
  284. package/src/layout/row/row.docs.json +0 -237
  285. package/src/layout/sidebar/sidebar.docs.json +0 -63
  286. package/src/layout/sidebar-nav/sidebar-nav.docs.json +0 -833
  287. package/src/layout/topbar/topbar.docs.json +0 -110
  288. package/src/utilities/container/container.docs.json +0 -121
  289. package/src/utilities/display/display.docs.json +0 -83
  290. package/src/utilities/scroll-animation/scroll-animation.docs.json +0 -100
  291. package/src/utilities/scroll-snap/scroll-snap.docs.json +0 -333
  292. package/src/utilities/spacing/spacing.docs.json +0 -133
  293. package/src/utilities/text/text.docs.json +0 -191
  294. package/src/utilities/view-transition/view-transition.docs.json +0 -63
  295. package/src/utilities/visually-hidden/visually-hidden.docs.json +0 -44
@@ -1,326 +0,0 @@
1
- {
2
- "id": "menu",
3
- "type": "component",
4
- "title": "Menu",
5
- "api": "./menu.api.json",
6
- "sections": [
7
- {
8
- "title": "Default",
9
- "examples": [
10
- {
11
- "items": [
12
- {
13
- "tag": "div",
14
- "class": "ui-menu",
15
- "children": [
16
- {
17
- "tag": "ul",
18
- "class": "ui-menu__group",
19
- "children": [
20
- {
21
- "tag": "li",
22
- "children": [{ "tag": "button", "class": "ui-menu__item", "text": "Edit" }]
23
- },
24
- {
25
- "tag": "li",
26
- "children": [
27
- { "tag": "button", "class": "ui-menu__item", "text": "Duplicate" }
28
- ]
29
- },
30
- {
31
- "tag": "li",
32
- "children": [{ "tag": "button", "class": "ui-menu__item", "text": "Archive" }]
33
- }
34
- ]
35
- }
36
- ]
37
- }
38
- ]
39
- }
40
- ]
41
- },
42
- {
43
- "title": "With Icons and Shortcuts",
44
- "examples": [
45
- {
46
- "items": [
47
- {
48
- "tag": "div",
49
- "class": "ui-menu",
50
- "children": [
51
- {
52
- "tag": "ul",
53
- "class": "ui-menu__group",
54
- "children": [
55
- {
56
- "tag": "li",
57
- "children": [
58
- {
59
- "tag": "button",
60
- "class": "ui-menu__item",
61
- "children": [
62
- { "tag": "span", "class": "ui-menu__item-icon", "text": "+" },
63
- { "text": "New File" },
64
- { "tag": "span", "class": "ui-menu__item-shortcut", "text": "Cmd+N" }
65
- ]
66
- }
67
- ]
68
- },
69
- {
70
- "tag": "li",
71
- "children": [
72
- {
73
- "tag": "button",
74
- "class": "ui-menu__item",
75
- "children": [
76
- { "tag": "span", "class": "ui-menu__item-icon", "text": "O" },
77
- { "text": "Open" },
78
- { "tag": "span", "class": "ui-menu__item-shortcut", "text": "Cmd+O" }
79
- ]
80
- }
81
- ]
82
- },
83
- {
84
- "tag": "li",
85
- "children": [
86
- {
87
- "tag": "button",
88
- "class": "ui-menu__item",
89
- "children": [
90
- { "tag": "span", "class": "ui-menu__item-icon", "text": "S" },
91
- { "text": "Save" },
92
- { "tag": "span", "class": "ui-menu__item-shortcut", "text": "Cmd+S" }
93
- ]
94
- }
95
- ]
96
- }
97
- ]
98
- }
99
- ]
100
- }
101
- ]
102
- }
103
- ]
104
- },
105
- {
106
- "title": "Groups with Labels",
107
- "examples": [
108
- {
109
- "items": [
110
- {
111
- "tag": "div",
112
- "class": "ui-menu",
113
- "children": [
114
- { "tag": "div", "class": "ui-menu__label", "text": "Edit" },
115
- {
116
- "tag": "ul",
117
- "class": "ui-menu__group",
118
- "children": [
119
- {
120
- "tag": "li",
121
- "children": [{ "tag": "button", "class": "ui-menu__item", "text": "Cut" }]
122
- },
123
- {
124
- "tag": "li",
125
- "children": [{ "tag": "button", "class": "ui-menu__item", "text": "Copy" }]
126
- },
127
- {
128
- "tag": "li",
129
- "children": [{ "tag": "button", "class": "ui-menu__item", "text": "Paste" }]
130
- }
131
- ]
132
- },
133
- { "tag": "div", "class": "ui-menu__separator" },
134
- { "tag": "div", "class": "ui-menu__label", "text": "View" },
135
- {
136
- "tag": "ul",
137
- "class": "ui-menu__group",
138
- "children": [
139
- {
140
- "tag": "li",
141
- "children": [{ "tag": "button", "class": "ui-menu__item", "text": "Zoom In" }]
142
- },
143
- {
144
- "tag": "li",
145
- "children": [
146
- { "tag": "button", "class": "ui-menu__item", "text": "Zoom Out" }
147
- ]
148
- }
149
- ]
150
- }
151
- ]
152
- }
153
- ]
154
- }
155
- ]
156
- },
157
- {
158
- "title": "States",
159
- "examples": [
160
- {
161
- "items": [
162
- {
163
- "tag": "div",
164
- "class": "ui-menu",
165
- "children": [
166
- {
167
- "tag": "ul",
168
- "class": "ui-menu__group",
169
- "children": [
170
- {
171
- "tag": "li",
172
- "children": [
173
- { "tag": "button", "class": "ui-menu__item", "text": "Normal Item" }
174
- ]
175
- },
176
- {
177
- "tag": "li",
178
- "children": [
179
- {
180
- "tag": "button",
181
- "class": "ui-menu__item ui-menu__item--disabled",
182
- "attrs": { "aria-disabled": "true" },
183
- "text": "Disabled Item"
184
- }
185
- ]
186
- },
187
- {
188
- "tag": "li",
189
- "children": [
190
- {
191
- "tag": "button",
192
- "class": "ui-menu__item ui-menu__item--danger",
193
- "text": "Delete"
194
- }
195
- ]
196
- }
197
- ]
198
- }
199
- ]
200
- }
201
- ]
202
- }
203
- ]
204
- },
205
- {
206
- "title": "Checkable Items",
207
- "examples": [
208
- {
209
- "items": [
210
- {
211
- "tag": "div",
212
- "class": "ui-menu",
213
- "children": [
214
- {
215
- "tag": "ul",
216
- "class": "ui-menu__group",
217
- "children": [
218
- {
219
- "tag": "li",
220
- "children": [
221
- {
222
- "tag": "button",
223
- "class": "ui-menu__item ui-menu__item--check",
224
- "children": [
225
- { "tag": "span", "class": "ui-menu__item-indicator", "text": "\u2713" },
226
- { "text": "Show Toolbar" }
227
- ]
228
- }
229
- ]
230
- },
231
- {
232
- "tag": "li",
233
- "children": [
234
- {
235
- "tag": "button",
236
- "class": "ui-menu__item ui-menu__item--check",
237
- "children": [
238
- { "tag": "span", "class": "ui-menu__item-indicator" },
239
- { "text": "Show Sidebar" }
240
- ]
241
- }
242
- ]
243
- }
244
- ]
245
- },
246
- { "tag": "div", "class": "ui-menu__separator" },
247
- {
248
- "tag": "ul",
249
- "class": "ui-menu__group",
250
- "children": [
251
- {
252
- "tag": "li",
253
- "children": [
254
- {
255
- "tag": "button",
256
- "class": "ui-menu__item ui-menu__item--radio",
257
- "children": [
258
- { "tag": "span", "class": "ui-menu__item-indicator", "text": "\u2022" },
259
- { "text": "List View" }
260
- ]
261
- }
262
- ]
263
- },
264
- {
265
- "tag": "li",
266
- "children": [
267
- {
268
- "tag": "button",
269
- "class": "ui-menu__item ui-menu__item--radio",
270
- "children": [
271
- { "tag": "span", "class": "ui-menu__item-indicator" },
272
- { "text": "Grid View" }
273
- ]
274
- }
275
- ]
276
- }
277
- ]
278
- }
279
- ]
280
- }
281
- ]
282
- }
283
- ]
284
- }
285
- ],
286
- "customization": [
287
- {
288
- "token": "--ui-menu-min-width",
289
- "default": "calc(var(--ui-unit) * 16)",
290
- "description": "Minimum width"
291
- },
292
- {
293
- "token": "--ui-menu-max-height",
294
- "default": "calc(var(--ui-unit) * 40)",
295
- "description": "Maximum height"
296
- },
297
- {
298
- "token": "--ui-menu-padding",
299
- "default": "var(--ui-unit)",
300
- "description": "Container padding"
301
- },
302
- {
303
- "token": "--ui-menu-radius",
304
- "default": "var(--ui-radius-md)",
305
- "description": "Border radius"
306
- },
307
- { "token": "--ui-menu-bg", "default": "var(--ui-color-bg)", "description": "Background color" },
308
- {
309
- "token": "--ui-menu-border-color",
310
- "default": "var(--ui-color-border)",
311
- "description": "Border color"
312
- },
313
- { "token": "--ui-menu-shadow", "default": "var(--shadow-lg)", "description": "Box shadow" },
314
- { "token": "--ui-menu-item-padding", "default": "8px 16px", "description": "Item padding" },
315
- {
316
- "token": "--ui-menu-item-radius",
317
- "default": "var(--ui-radius-sm)",
318
- "description": "Item border radius"
319
- },
320
- {
321
- "token": "--ui-menu-item-bg-hover",
322
- "default": "var(--ui-color-bg-subtle)",
323
- "description": "Item hover background"
324
- }
325
- ]
326
- }
@@ -1,304 +0,0 @@
1
- {
2
- "id": "nav",
3
- "type": "component",
4
- "title": "Nav",
5
- "description": "Horizontal or vertical navigation links for primary and secondary navigation.",
6
- "api": "./nav.api.json",
7
- "sections": [
8
- {
9
- "title": "Basic",
10
- "description": "Underline-style navigation with active state indicator.",
11
- "examples": [
12
- {
13
- "items": [
14
- {
15
- "tag": "nav",
16
- "class": "ui-nav",
17
- "children": [
18
- {
19
- "tag": "ul",
20
- "class": "ui-nav__list",
21
- "children": [
22
- {
23
- "tag": "li",
24
- "children": [
25
- {
26
- "tag": "a",
27
- "class": "ui-nav__item ui-nav__item--active",
28
- "text": "Dashboard",
29
- "attrs": { "href": "#" }
30
- }
31
- ]
32
- },
33
- {
34
- "tag": "li",
35
- "children": [
36
- {
37
- "tag": "a",
38
- "class": "ui-nav__item",
39
- "text": "Projects",
40
- "attrs": { "href": "#" }
41
- }
42
- ]
43
- },
44
- {
45
- "tag": "li",
46
- "children": [
47
- {
48
- "tag": "a",
49
- "class": "ui-nav__item",
50
- "text": "Settings",
51
- "attrs": { "href": "#" }
52
- }
53
- ]
54
- },
55
- {
56
- "tag": "li",
57
- "children": [
58
- {
59
- "tag": "a",
60
- "class": "ui-nav__item ui-nav__item--disabled",
61
- "text": "Disabled",
62
- "attrs": { "href": "#" }
63
- }
64
- ]
65
- }
66
- ]
67
- }
68
- ]
69
- }
70
- ]
71
- }
72
- ]
73
- },
74
- {
75
- "title": "Pills",
76
- "description": "Background-filled variant for standalone navigation.",
77
- "examples": [
78
- {
79
- "items": [
80
- {
81
- "tag": "nav",
82
- "class": "ui-nav ui-nav--pills",
83
- "children": [
84
- {
85
- "tag": "ul",
86
- "class": "ui-nav__list",
87
- "children": [
88
- {
89
- "tag": "li",
90
- "children": [
91
- {
92
- "tag": "a",
93
- "class": "ui-nav__item ui-nav__item--active",
94
- "text": "Overview",
95
- "attrs": { "href": "#" }
96
- }
97
- ]
98
- },
99
- {
100
- "tag": "li",
101
- "children": [
102
- {
103
- "tag": "a",
104
- "class": "ui-nav__item",
105
- "text": "Analytics",
106
- "attrs": { "href": "#" }
107
- }
108
- ]
109
- },
110
- {
111
- "tag": "li",
112
- "children": [
113
- {
114
- "tag": "a",
115
- "class": "ui-nav__item",
116
- "text": "Reports",
117
- "attrs": { "href": "#" }
118
- }
119
- ]
120
- }
121
- ]
122
- }
123
- ]
124
- }
125
- ]
126
- }
127
- ]
128
- },
129
- {
130
- "title": "Vertical",
131
- "description": "Vertical navigation with start-side indicator.",
132
- "examples": [
133
- {
134
- "items": [
135
- {
136
- "tag": "nav",
137
- "class": "ui-nav ui-nav--vertical",
138
- "style": { "inline-size": "200px" },
139
- "children": [
140
- {
141
- "tag": "ul",
142
- "class": "ui-nav__list",
143
- "children": [
144
- {
145
- "tag": "li",
146
- "children": [
147
- {
148
- "tag": "a",
149
- "class": "ui-nav__item ui-nav__item--active",
150
- "text": "Profile",
151
- "attrs": { "href": "#" }
152
- }
153
- ]
154
- },
155
- {
156
- "tag": "li",
157
- "children": [
158
- {
159
- "tag": "a",
160
- "class": "ui-nav__item",
161
- "text": "Account",
162
- "attrs": { "href": "#" }
163
- }
164
- ]
165
- },
166
- {
167
- "tag": "li",
168
- "children": [
169
- {
170
- "tag": "a",
171
- "class": "ui-nav__item",
172
- "text": "Security",
173
- "attrs": { "href": "#" }
174
- }
175
- ]
176
- }
177
- ]
178
- }
179
- ]
180
- }
181
- ]
182
- }
183
- ]
184
- },
185
- {
186
- "title": "Vertical Pills",
187
- "description": "Vertical navigation with pill-style active indicator.",
188
- "examples": [
189
- {
190
- "items": [
191
- {
192
- "tag": "nav",
193
- "class": "ui-nav ui-nav--vertical ui-nav--pills",
194
- "style": { "inline-size": "200px" },
195
- "children": [
196
- {
197
- "tag": "ul",
198
- "class": "ui-nav__list",
199
- "children": [
200
- {
201
- "tag": "li",
202
- "children": [
203
- {
204
- "tag": "a",
205
- "class": "ui-nav__item ui-nav__item--active",
206
- "text": "General",
207
- "attrs": { "href": "#" }
208
- }
209
- ]
210
- },
211
- {
212
- "tag": "li",
213
- "children": [
214
- {
215
- "tag": "a",
216
- "class": "ui-nav__item",
217
- "text": "Notifications",
218
- "attrs": { "href": "#" }
219
- }
220
- ]
221
- },
222
- {
223
- "tag": "li",
224
- "children": [
225
- {
226
- "tag": "a",
227
- "class": "ui-nav__item",
228
- "text": "Billing",
229
- "attrs": { "href": "#" }
230
- }
231
- ]
232
- }
233
- ]
234
- }
235
- ]
236
- }
237
- ]
238
- }
239
- ]
240
- }
241
- ],
242
- "customization": [
243
- {
244
- "token": "--ui-nav-gap",
245
- "default": "var(--ui-space-1)",
246
- "description": "Gap between children"
247
- },
248
- {
249
- "token": "--ui-nav-item-height",
250
- "default": "var(--ui-row-2)",
251
- "description": "Item overall height"
252
- },
253
- {
254
- "token": "--ui-nav-item-padding-x",
255
- "default": "var(--ui-space-2)",
256
- "description": "Item horizontal padding"
257
- },
258
- {
259
- "token": "--ui-nav-item-font-size",
260
- "default": "var(--ui-font-size-sm)",
261
- "description": "Item font size"
262
- },
263
- {
264
- "token": "--ui-nav-item-font-weight",
265
- "default": "var(--ui-weight-medium)",
266
- "description": "Item font weight"
267
- },
268
- {
269
- "token": "--ui-nav-item-color",
270
- "default": "var(--ui-color-text-muted)",
271
- "description": "Item text color"
272
- },
273
- {
274
- "token": "--ui-nav-item-color-hover",
275
- "default": "var(--ui-color-text)",
276
- "description": "Item color on hover"
277
- },
278
- {
279
- "token": "--ui-nav-item-color-active",
280
- "default": "var(--ui-color-primary)",
281
- "description": "Item color when active"
282
- },
283
- {
284
- "token": "--ui-nav-item-radius",
285
- "default": "var(--ui-radius-sm)",
286
- "description": "Item corner radius"
287
- },
288
- {
289
- "token": "--ui-nav-border-color",
290
- "default": "var(--ui-color-border)",
291
- "description": "Border color"
292
- },
293
- {
294
- "token": "--ui-nav-item-bg-hover",
295
- "default": "var(--ui-color-bg-muted)",
296
- "description": "Item background on hover"
297
- },
298
- {
299
- "token": "--ui-nav-item-bg-active",
300
- "default": "var(--ui-color-primary)",
301
- "description": "Item background when active"
302
- }
303
- ]
304
- }