@zazz-ui/core 0.4.0 → 0.5.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 (331) hide show
  1. package/AUTHORING.md +158 -0
  2. package/CHANGELOG.md +341 -0
  3. package/README.md +55 -23
  4. package/dist/scroll-state-C8mA5gq6.js +1 -0
  5. package/dist/sri.json +124 -72
  6. package/dist/zazz.css +1 -1
  7. package/dist/zazz.js +1 -1
  8. package/editor/zazz.css-data.json +116794 -0
  9. package/editor/zazz.html-data.json +1683 -0
  10. package/editor/zazz.language-data.json +5001 -0
  11. package/editor/zazz.lint-data.json +152 -0
  12. package/package.json +12 -5
  13. package/src/base/_breakpoints.css +12 -0
  14. package/src/base/_layers.css +8 -9
  15. package/src/base/_properties-2xl.css +171 -0
  16. package/src/base/_properties-active.css +107 -0
  17. package/src/base/_properties-checked.css +107 -0
  18. package/src/base/_properties-current.css +107 -0
  19. package/src/base/_properties-disabled.css +107 -0
  20. package/src/base/_properties-focus-visible.css +107 -0
  21. package/src/base/_properties-focus-within.css +107 -0
  22. package/src/base/_properties-hover.css +107 -0
  23. package/src/base/_properties-lg.css +171 -0
  24. package/src/base/_properties-md.css +171 -0
  25. package/src/base/_properties-open.css +107 -0
  26. package/src/base/_properties-sm.css +171 -0
  27. package/src/base/_properties-starting.css +55 -0
  28. package/src/base/_properties-stuck.css +55 -0
  29. package/src/base/_properties-xl.css +171 -0
  30. package/src/base/_properties.css +555 -0
  31. package/src/base/_reset.css +67 -75
  32. package/src/base/_switches.css +145 -0
  33. package/src/base/_typography.css +437 -370
  34. package/src/base/_utilities-box.css +142 -0
  35. package/src/base/_utilities-color.css +290 -0
  36. package/src/base/_utilities-effects.css +235 -0
  37. package/src/base/_utilities-flow.css +312 -0
  38. package/src/base/_utilities-grid.css +143 -0
  39. package/src/base/_utilities-margin.css +376 -0
  40. package/src/base/_utilities-pseudo.css +426 -0
  41. package/src/base/_utilities-sizing.css +259 -0
  42. package/src/base/_utilities-spacing.css +190 -0
  43. package/src/base/_utilities-tier-2xl.css +93 -0
  44. package/src/base/_utilities-tier-active.css +61 -0
  45. package/src/base/_utilities-tier-checked.css +61 -0
  46. package/src/base/_utilities-tier-current.css +61 -0
  47. package/src/base/_utilities-tier-disabled.css +61 -0
  48. package/src/base/_utilities-tier-focus-visible.css +61 -0
  49. package/src/base/_utilities-tier-focus-within.css +61 -0
  50. package/src/base/_utilities-tier-hover.css +63 -0
  51. package/src/base/_utilities-tier-lg.css +93 -0
  52. package/src/base/_utilities-tier-md.css +93 -0
  53. package/src/base/_utilities-tier-open.css +61 -0
  54. package/src/base/_utilities-tier-sm.css +93 -0
  55. package/src/base/_utilities-tier-starting.css +35 -0
  56. package/src/base/_utilities-tier-stuck.css +114 -0
  57. package/src/base/_utilities-tier-xl.css +93 -0
  58. package/src/base/_utilities-typography.css +141 -0
  59. package/src/base/_variables.css +323 -372
  60. package/src/base/_view-transitions.css +10 -12
  61. package/src/base/command-score.d.ts.map +1 -1
  62. package/src/base/command-score.js +1 -2
  63. package/src/base/command-score.ts +1 -2
  64. package/src/base/dialog-lifecycle.js +1 -1
  65. package/src/base/dialog-lifecycle.ts +1 -1
  66. package/src/base/embla.d.ts +6 -7
  67. package/src/base/embla.d.ts.map +1 -1
  68. package/src/base/embla.js +89 -55
  69. package/src/base/embla.ts +89 -55
  70. package/src/base/hotkeys.d.ts +0 -5
  71. package/src/base/hotkeys.d.ts.map +1 -1
  72. package/src/base/hotkeys.ts +0 -5
  73. package/src/base/navigation.d.ts +12 -1
  74. package/src/base/navigation.d.ts.map +1 -1
  75. package/src/base/navigation.js +229 -86
  76. package/src/base/navigation.ts +224 -92
  77. package/src/base/reveal.js +14 -14
  78. package/src/base/reveal.ts +14 -14
  79. package/src/base/scroll-state.d.ts +21 -0
  80. package/src/base/scroll-state.d.ts.map +1 -0
  81. package/src/base/scroll-state.js +177 -0
  82. package/src/base/scroll-state.ts +188 -0
  83. package/src/base/signals.d.ts +1 -2
  84. package/src/base/signals.d.ts.map +1 -1
  85. package/src/base/signals.js +4 -6
  86. package/src/base/signals.ts +4 -6
  87. package/src/base/style-format.d.ts +33 -0
  88. package/src/base/style-format.d.ts.map +1 -0
  89. package/src/base/style-format.js +160 -0
  90. package/src/base/style-format.ts +180 -0
  91. package/src/base/typeahead.d.ts +19 -4
  92. package/src/base/typeahead.d.ts.map +1 -1
  93. package/src/base/typeahead.js +68 -21
  94. package/src/base/typeahead.ts +73 -23
  95. package/src/base/utilities.d.ts +188 -0
  96. package/src/base/utilities.d.ts.map +1 -0
  97. package/src/base/utilities.js +750 -0
  98. package/src/base/utilities.ts +865 -0
  99. package/src/base/utils.d.ts +3 -7
  100. package/src/base/utils.d.ts.map +1 -1
  101. package/src/base/utils.js +4 -8
  102. package/src/base/utils.ts +4 -8
  103. package/src/base/zazz-element.d.ts +14 -8
  104. package/src/base/zazz-element.d.ts.map +1 -1
  105. package/src/base/zazz-element.js +14 -8
  106. package/src/base/zazz-element.ts +15 -8
  107. package/src/globals.d.ts +1 -1
  108. package/src/head.d.ts +50 -4
  109. package/src/head.d.ts.map +1 -1
  110. package/src/head.js +119 -38
  111. package/src/head.ts +172 -41
  112. package/src/index.css +57 -14
  113. package/src/index.js +5 -0
  114. package/src/index.ts +6 -0
  115. package/src/manifest.d.ts +36 -5
  116. package/src/manifest.d.ts.map +1 -1
  117. package/src/manifest.js +150 -6
  118. package/src/manifest.ts +167 -9
  119. package/src/primitives/accordion/accordion.css +18 -17
  120. package/src/primitives/accordion/accordion.html +42 -9
  121. package/src/primitives/alert-dialog/alert-dialog.css +13 -13
  122. package/src/primitives/alert-dialog/alert-dialog.html +26 -12
  123. package/src/primitives/autocomplete/autocomplete-groups.html +64 -33
  124. package/src/primitives/autocomplete/autocomplete.css +45 -43
  125. package/src/primitives/autocomplete/autocomplete.d.ts +6 -5
  126. package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -1
  127. package/src/primitives/autocomplete/autocomplete.html +38 -26
  128. package/src/primitives/autocomplete/autocomplete.js +6 -5
  129. package/src/primitives/autocomplete/autocomplete.ts +6 -5
  130. package/src/primitives/avatar/avatar.html +110 -15
  131. package/src/primitives/badge/badge-icon.html +22 -8
  132. package/src/primitives/badge/badge.css +401 -128
  133. package/src/primitives/badge/badge.html +12 -6
  134. package/src/primitives/breadcrumbs/breadcrumbs.html +25 -5
  135. package/src/primitives/button/button-icon-only.html +17 -11
  136. package/src/primitives/button/button-icon.html +9 -3
  137. package/src/primitives/button/button.css +408 -164
  138. package/src/primitives/button/button.html +14 -7
  139. package/src/primitives/button-group/button-group-vertical.html +5 -5
  140. package/src/primitives/button-group/button-group.css +53 -25
  141. package/src/primitives/button-group/button-group.html +18 -12
  142. package/src/primitives/callout/callout.css +114 -0
  143. package/src/primitives/callout/callout.html +188 -0
  144. package/src/primitives/card/card-subgrid.html +249 -34
  145. package/src/primitives/card/card.css +125 -0
  146. package/src/primitives/card/card.html +141 -20
  147. package/src/primitives/carousel/carousel.css +30 -20
  148. package/src/primitives/carousel/carousel.d.ts +7 -10
  149. package/src/primitives/carousel/carousel.d.ts.map +1 -1
  150. package/src/primitives/carousel/carousel.html +420 -84
  151. package/src/primitives/carousel/carousel.js +1 -1
  152. package/src/primitives/carousel/carousel.ts +8 -11
  153. package/src/primitives/checkbox/checkbox-tasklist.html +6 -6
  154. package/src/primitives/checkbox/checkbox.css +98 -40
  155. package/src/primitives/checkbox/checkbox.d.ts.map +1 -1
  156. package/src/primitives/checkbox/checkbox.html +13 -8
  157. package/src/primitives/checkbox/checkbox.js +7 -9
  158. package/src/primitives/checkbox/checkbox.ts +7 -15
  159. package/src/primitives/combobox/combobox-multiselect.html +53 -33
  160. package/src/primitives/combobox/combobox.css +147 -126
  161. package/src/primitives/combobox/combobox.d.ts +12 -11
  162. package/src/primitives/combobox/combobox.d.ts.map +1 -1
  163. package/src/primitives/combobox/combobox.html +48 -28
  164. package/src/primitives/combobox/combobox.js +46 -51
  165. package/src/primitives/combobox/combobox.ts +48 -55
  166. package/src/primitives/command/command-actions.d.ts +2 -3
  167. package/src/primitives/command/command-actions.d.ts.map +1 -1
  168. package/src/primitives/command/command-actions.html +48 -33
  169. package/src/primitives/command/command-actions.js +12 -10
  170. package/src/primitives/command/command-actions.ts +12 -13
  171. package/src/primitives/command/command-dialog.html +49 -25
  172. package/src/primitives/command/command.css +52 -42
  173. package/src/primitives/command/command.d.ts +10 -7
  174. package/src/primitives/command/command.d.ts.map +1 -1
  175. package/src/primitives/command/command.html +95 -46
  176. package/src/primitives/command/command.js +30 -13
  177. package/src/primitives/command/command.ts +30 -12
  178. package/src/primitives/debug/audit-core.d.ts +64 -0
  179. package/src/primitives/debug/audit-core.d.ts.map +1 -0
  180. package/src/primitives/debug/audit-core.js +356 -0
  181. package/src/primitives/debug/audit-core.ts +535 -0
  182. package/src/primitives/debug/debug.d.ts +50 -0
  183. package/src/primitives/debug/debug.d.ts.map +1 -0
  184. package/src/primitives/debug/debug.js +168 -0
  185. package/src/primitives/debug/debug.ts +211 -0
  186. package/src/primitives/dialog/dialog-with-form.html +67 -45
  187. package/src/primitives/dialog/dialog.css +87 -61
  188. package/src/primitives/dialog/dialog.html +25 -17
  189. package/src/primitives/fields/fields.css +108 -134
  190. package/src/primitives/fields/fields.html +39 -0
  191. package/src/primitives/input/input-icon-leading.html +3 -3
  192. package/src/primitives/input/input-icon-trailing.html +3 -3
  193. package/src/primitives/input/input.css +87 -49
  194. package/src/primitives/input/input.html +15 -15
  195. package/src/primitives/input-group/input-group-password-group.html +15 -15
  196. package/src/primitives/input-group/input-group.css +118 -75
  197. package/src/primitives/input-group/input-group.html +42 -30
  198. package/src/primitives/kbd/kbd-group.html +15 -2
  199. package/src/primitives/kbd/kbd.css +44 -31
  200. package/src/primitives/kbd/kbd.html +7 -1
  201. package/src/primitives/layout/layout.css +159 -0
  202. package/src/primitives/layout/layout.html +35 -0
  203. package/src/primitives/lightbox/lightbox.css +178 -105
  204. package/src/primitives/lightbox/lightbox.d.ts.map +1 -1
  205. package/src/primitives/lightbox/lightbox.html +138 -166
  206. package/src/primitives/lightbox/lightbox.js +10 -13
  207. package/src/primitives/lightbox/lightbox.ts +12 -13
  208. package/src/primitives/menu/menu-interest.html +60 -18
  209. package/src/primitives/menu/menu.css +22 -17
  210. package/src/primitives/menu/menu.d.ts +5 -5
  211. package/src/primitives/menu/menu.html +195 -40
  212. package/src/primitives/menu/menu.js +8 -8
  213. package/src/primitives/menu/menu.ts +8 -8
  214. package/src/primitives/menubar/menubar-help-search.html +78 -32
  215. package/src/primitives/menubar/menubar.html +166 -38
  216. package/src/primitives/meter/meter.css +41 -38
  217. package/src/primitives/meter/meter.html +44 -9
  218. package/src/primitives/mobile-menu/mobile-menu.css +47 -40
  219. package/src/primitives/mobile-menu/mobile-menu.html +1460 -179
  220. package/src/primitives/navigation-menu/navigation-menu-featured.html +155 -33
  221. package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +222 -47
  222. package/src/primitives/navigation-menu/navigation-menu-interest.html +130 -38
  223. package/src/primitives/navigation-menu/navigation-menu-megamenu.html +402 -72
  224. package/src/primitives/navigation-menu/navigation-menu-simple.html +90 -40
  225. package/src/primitives/navigation-menu/navigation-menu.css +104 -106
  226. package/src/primitives/navigation-menu/navigation-menu.html +554 -158
  227. package/src/primitives/otp/otp.css +43 -44
  228. package/src/primitives/otp/otp.d.ts +4 -5
  229. package/src/primitives/otp/otp.d.ts.map +1 -1
  230. package/src/primitives/otp/otp.html +7 -6
  231. package/src/primitives/otp/otp.js +13 -18
  232. package/src/primitives/otp/otp.ts +12 -19
  233. package/src/primitives/password-group/password-group.css +132 -107
  234. package/src/primitives/password-group/password-group.d.ts.map +1 -1
  235. package/src/primitives/password-group/password-group.html +23 -16
  236. package/src/primitives/password-group/password-group.js +11 -12
  237. package/src/primitives/password-group/password-group.ts +11 -12
  238. package/src/primitives/popover/popover.css +89 -95
  239. package/src/primitives/popover/popover.html +18 -0
  240. package/src/primitives/progress/progress-indeterminate.html +1 -1
  241. package/src/primitives/progress/progress.css +34 -35
  242. package/src/primitives/progress/progress.html +18 -4
  243. package/src/primitives/prose/prose.html +19 -12
  244. package/src/primitives/radio/radio.css +83 -46
  245. package/src/primitives/radio/radio.html +16 -11
  246. package/src/primitives/reveal/reveal.css +37 -46
  247. package/src/primitives/reveal/reveal.html +15 -0
  248. package/src/primitives/scroll-fade/scroll-fade.css +115 -0
  249. package/src/primitives/scroll-fade/scroll-fade.html +69 -0
  250. package/src/primitives/select/multiselect.d.ts +8 -10
  251. package/src/primitives/select/multiselect.d.ts.map +1 -1
  252. package/src/primitives/select/multiselect.js +23 -27
  253. package/src/primitives/select/multiselect.ts +23 -29
  254. package/src/primitives/select/select-align.html +79 -16
  255. package/src/primitives/select/select-multiple.html +8 -4
  256. package/src/primitives/select/select-sides.html +104 -21
  257. package/src/primitives/select/select.css +299 -191
  258. package/src/primitives/select/select.html +24 -5
  259. package/src/primitives/separator/separator.css +15 -18
  260. package/src/primitives/separator/separator.html +37 -10
  261. package/src/primitives/slider/slider.css +48 -38
  262. package/src/primitives/slider/slider.html +9 -1
  263. package/src/primitives/style-guard/style-guard.d.ts +19 -0
  264. package/src/primitives/style-guard/style-guard.d.ts.map +1 -0
  265. package/src/primitives/style-guard/style-guard.js +125 -0
  266. package/src/primitives/style-guard/style-guard.ts +153 -0
  267. package/src/primitives/switch/switch.css +42 -33
  268. package/src/primitives/switch/switch.html +11 -6
  269. package/src/primitives/table/table-alternating.html +1 -1
  270. package/src/primitives/table/table-grid.html +5 -5
  271. package/src/primitives/table/table-size-sm.html +1 -1
  272. package/src/primitives/table/table.css +64 -61
  273. package/src/primitives/table/table.html +7 -7
  274. package/src/primitives/tabs/tabs.css +167 -166
  275. package/src/primitives/tabs/tabs.d.ts +10 -11
  276. package/src/primitives/tabs/tabs.d.ts.map +1 -1
  277. package/src/primitives/tabs/tabs.html +192 -36
  278. package/src/primitives/tabs/tabs.js +14 -15
  279. package/src/primitives/tabs/tabs.ts +14 -15
  280. package/src/primitives/textarea/textarea.css +69 -44
  281. package/src/primitives/textarea/textarea.html +3 -3
  282. package/src/primitives/toaster/toaster.css +90 -92
  283. package/src/primitives/toaster/toaster.d.ts +0 -6
  284. package/src/primitives/toaster/toaster.d.ts.map +1 -1
  285. package/src/primitives/toaster/toaster.html +22 -18
  286. package/src/primitives/toaster/toaster.js +64 -72
  287. package/src/primitives/toaster/toaster.ts +71 -87
  288. package/src/primitives/toggle/toggle.css +368 -153
  289. package/src/primitives/toggle/toggle.html +27 -9
  290. package/src/primitives/toggle-group/toggle-group-multiple.html +3 -3
  291. package/src/primitives/toggle-group/toggle-group-vertical.html +4 -4
  292. package/src/primitives/toggle-group/toggle-group.css +71 -23
  293. package/src/primitives/toggle-group/toggle-group.html +3 -3
  294. package/src/primitives/toolbar/toolbar.html +35 -13
  295. package/src/primitives/tooltip/tooltip-disabled.html +3 -3
  296. package/src/primitives/tooltip/tooltip-sides.html +36 -14
  297. package/src/primitives/tooltip/tooltip-with-kbd.html +5 -5
  298. package/src/primitives/tooltip/tooltip.css +111 -80
  299. package/src/primitives/tooltip/tooltip.html +3 -3
  300. package/src/primitives/utilities/aspect-ratio.html +51 -7
  301. package/src/primitives/utilities/basis.html +64 -11
  302. package/src/primitives/utilities/col-span.html +65 -9
  303. package/src/primitives/utilities/compose.html +48 -10
  304. package/src/primitives/utilities/flex-align.html +89 -19
  305. package/src/primitives/utilities/flex-direction.html +111 -13
  306. package/src/primitives/utilities/flex-grow.html +41 -7
  307. package/src/primitives/utilities/gap.html +158 -19
  308. package/src/primitives/utilities/grid-cols.html +75 -7
  309. package/src/primitives/utilities/grid-responsive.html +111 -12
  310. package/src/primitives/utilities/margin-auto.html +38 -7
  311. package/src/primitives/utilities/object-fit.html +75 -13
  312. package/src/primitives/utilities/order.html +40 -4
  313. package/src/primitives/utilities/overflow.html +74 -20
  314. package/src/primitives/utilities/padding-compose.html +67 -10
  315. package/src/primitives/utilities/padding.html +84 -13
  316. package/src/primitives/utilities/pile.html +29 -0
  317. package/src/primitives/utilities/position.html +65 -8
  318. package/src/primitives/utilities/responsive-flex.html +54 -7
  319. package/src/primitives/utilities/responsive-grid.html +115 -12
  320. package/src/primitives/utilities/size.html +120 -16
  321. package/src/primitives/utilities/width.html +123 -16
  322. package/examples/about.html +0 -583
  323. package/examples/components.html +0 -1028
  324. package/examples/forms.html +0 -504
  325. package/examples/index.html +0 -261
  326. package/examples/layout.html +0 -313
  327. package/examples/products.html +0 -839
  328. package/examples/responsive.html +0 -332
  329. package/src/base/_layout.css +0 -571
  330. package/src/base/_utilities.css +0 -6758
  331. package/src/primitives/utilities/grid-pile.html +0 -5
@@ -1,1028 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <!-- Page-specific tags stay above the generated block -->
5
- <title>Zazz tests | Overview</title>
6
- <link rel="prefetch" href="layout.html" />
7
-
8
- <!-- Shared head, generated from @zazz-ui/core's head contract (src/head.ts). -->
9
- <!-- Edit nothing between the markers; run `vp run heads` to regenerate. -->
10
- <!-- zazz:head -->
11
- <meta charset="utf-8" />
12
- <meta name="viewport" content="width=device-width, initial-scale=1" />
13
- <!-- Paint the right theme (background, form controls, scrollbars) before CSS loads -->
14
- <meta name="color-scheme" content="light dark" />
15
- <!-- Google Fonts: Geist + Geist Mono (preconnect so the CSS request starts early) -->
16
- <link rel="preconnect" href="https://fonts.googleapis.com" />
17
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
18
- <link
19
- rel="preload"
20
- as="font"
21
- type="font/woff2"
22
- crossorigin
23
- href="https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFWNOITd.woff2"
24
- />
25
- <link
26
- href="https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&family=Geist:ital,wght@0,100..900;1,100..900&display=swap"
27
- rel="stylesheet"
28
- />
29
- <!-- Zazz styles: one bundle (index.css @imports every layer in cascade order) -->
30
- <link rel="stylesheet" href="../src/index.css" />
31
- <!-- Import map: bare specifiers in Zazz scripts resolve to pinned, SRI-checked files -->
32
- <script type="importmap">
33
- {
34
- "imports": {
35
- "signal-polyfill": "https://cdn.jsdelivr.net/npm/signal-polyfill@0.2.2/dist/index.js",
36
- "embla-carousel": "https://cdn.jsdelivr.net/npm/embla-carousel@8.6.0/esm/embla-carousel.esm.js",
37
- "embla-carousel-autoplay": "https://cdn.jsdelivr.net/npm/embla-carousel-autoplay@8.6.0/esm/embla-carousel-autoplay.esm.js",
38
- "embla-carousel-auto-scroll": "https://cdn.jsdelivr.net/npm/embla-carousel-auto-scroll@8.6.0/esm/embla-carousel-auto-scroll.esm.js",
39
- "embla-carousel-class-names": "https://cdn.jsdelivr.net/npm/embla-carousel-class-names@8.6.0/esm/embla-carousel-class-names.esm.js"
40
- },
41
- "integrity": {
42
- "https://cdn.jsdelivr.net/npm/signal-polyfill@0.2.2/dist/index.js": "sha384-0OqM7OXGT6Oz1z98u/geiFn/FUyz4iWexkXHCvbIGXRRDXl6bp6IKc0j78AQ6DEK",
43
- "https://cdn.jsdelivr.net/npm/embla-carousel@8.6.0/esm/embla-carousel.esm.js": "sha384-GXjfyU1fSHHeweoYd3rwo7OBKYtkq+JcsDoe8VDRc6znCty2ZTzyVvX1DwqCE+9t",
44
- "https://cdn.jsdelivr.net/npm/embla-carousel-autoplay@8.6.0/esm/embla-carousel-autoplay.esm.js": "sha384-AX49yBc7zd/CT8ZqNMRiiqqVSV9xfxb27VwEGziPioT3wL4k4C5BW2qwefdWuN4J",
45
- "https://cdn.jsdelivr.net/npm/embla-carousel-auto-scroll@8.6.0/esm/embla-carousel-auto-scroll.esm.js": "sha384-SPdnL1eic73WfM72zFEf0RJ5PdUC7TL3Yb5jOl1JC3/l4D7EsVxwO8wFnnezlMSu",
46
- "https://cdn.jsdelivr.net/npm/embla-carousel-class-names@8.6.0/esm/embla-carousel-class-names.esm.js": "sha384-ZWno/FqzYeWE5Ils19GIhep1AZ5bMl0mp9wmm6baTJE4+pjMjOdTnE55SjUQAdVh"
47
- }
48
- }
49
- </script>
50
- <link rel="modulepreload" href="../src/index.js" />
51
- <!-- Polyfill: Interest Invokers (interestfor) — native in Chromium only -->
52
- <script
53
- type="module"
54
- src="https://cdn.jsdelivr.net/npm/invokers@2.2.2/dist/esm/production/interest.js"
55
- integrity="sha384-hR2BVNtsS7fIIMwOm+f7MY0JZfuByGhQQfevCBB6evFATKzBsTw0JzH/RxD94z2T"
56
- crossorigin="anonymous"
57
- ></script>
58
- <!-- Zazz behavior: one ES module imports every component script in dependency order -->
59
- <script type="module" src="../src/index.js"></script>
60
- <!-- Theme: apply the persisted (or preferred) scheme before first paint -->
61
- <script>
62
- (() => {
63
- try {
64
- const storedTheme = localStorage.getItem("theme");
65
- const prefersDark = matchMedia("(prefers-color-scheme: dark)").matches;
66
- const theme = storedTheme ?? (prefersDark ? "dark" : "light");
67
- document.documentElement.classList.toggle("dark", theme === "dark");
68
- } catch {
69
- document.documentElement.classList.toggle(
70
- "dark",
71
- matchMedia("(prefers-color-scheme: dark)").matches,
72
- );
73
- }
74
- })();
75
- </script>
76
- <!-- /zazz:head -->
77
- </head>
78
-
79
- <body class="bg-background">
80
- <header class="py-md border-b" data-transition-layer="global-header">
81
- <div class="container">
82
- <div class="flex items-center justify-between">
83
- <a href="index.html" class="text-h6 font-black">Zazz tests</a>
84
- <nav>
85
- <menu class="flex gap-xs">
86
- <li>
87
- <a class="ui-button" data-variant="ghost" data-size="sm" href="index.html"
88
- >Overview</a
89
- >
90
- </li>
91
- <li>
92
- <a class="ui-button" data-variant="ghost" data-size="sm" href="about.html">About</a>
93
- </li>
94
- <li>
95
- <a class="ui-button" data-variant="ghost" data-size="sm" href="products.html"
96
- >Products</a
97
- >
98
- </li>
99
- <li>
100
- <a class="ui-button" data-variant="ghost" data-size="sm" href="layout.html"
101
- >Layout</a
102
- >
103
- </li>
104
- <li>
105
- <a class="ui-button" data-variant="ghost" data-size="sm" href="responsive.html"
106
- >Responsive</a
107
- >
108
- </li>
109
- <li>
110
- <a class="ui-button" data-variant="ghost" data-size="sm" href="components.html"
111
- >Components</a
112
- >
113
- </li>
114
- <li>
115
- <a class="ui-button" data-variant="ghost" data-size="sm" href="forms.html">Forms</a>
116
- </li>
117
- </menu>
118
- </nav>
119
- </div>
120
- </div>
121
- </header>
122
-
123
- <main data-layout="main">
124
- <section class="py-xl">
125
- <div class="container">
126
- <hgroup class="flex flex-col gap-sm">
127
- <span class="text-eyebrow">Components</span>
128
- <h1 class="text-h1">Component kitchen sink</h1>
129
- <p class="text-lg text-muted-foreground max-w-screen-sm">
130
- Each block is adapted from the component's single-source example. Tooltips, menus, and
131
- the dialog use the native Popover and Invoker Commands APIs; tabs are a light-DOM
132
- custom element. Try them with mouse and keyboard.
133
- </p>
134
- </hgroup>
135
- </div>
136
- </section>
137
-
138
- <section class="pb-xl">
139
- <div class="container">
140
- <!-- Buttons -->
141
- <div class="mb-lg">
142
- <h2 class="text-h6 font-heading pb-sm">Buttons</h2>
143
- <div class="flex items-center gap-xs pb-sm">
144
- <button class="ui-button" type="button">Default</button>
145
- <button class="ui-button" data-variant="primary" type="button">Primary</button>
146
- <button class="ui-button" data-variant="muted" type="button">Muted</button>
147
- <button class="ui-button" data-variant="ghost" type="button">Ghost</button>
148
- <button class="ui-button" data-variant="destructive" type="button">
149
- Destructive
150
- </button>
151
- <button class="ui-button" data-variant="link" type="button">Link</button>
152
- </div>
153
- <div class="flex items-center gap-xs">
154
- <button class="ui-button" data-variant="primary" type="button">
155
- Start free trial
156
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
157
- <rect width="256" height="256" fill="none" />
158
- <line
159
- x1="40"
160
- y1="128"
161
- x2="216"
162
- y2="128"
163
- fill="none"
164
- stroke="currentColor"
165
- stroke-linecap="round"
166
- stroke-linejoin="round"
167
- stroke-width="16"
168
- />
169
- <polyline
170
- points="144 56 216 128 144 200"
171
- fill="none"
172
- stroke="currentColor"
173
- stroke-linecap="round"
174
- stroke-linejoin="round"
175
- stroke-width="16"
176
- />
177
- </svg>
178
- </button>
179
- <button class="ui-button" data-variant="primary" data-size="sm" type="button">
180
- Small
181
- </button>
182
- <button
183
- class="ui-button"
184
- data-variant="primary"
185
- data-size="icon"
186
- type="button"
187
- aria-label="Add"
188
- >
189
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
190
- <rect width="256" height="256" fill="none" />
191
- <line
192
- x1="40"
193
- y1="128"
194
- x2="216"
195
- y2="128"
196
- fill="none"
197
- stroke="currentColor"
198
- stroke-linecap="round"
199
- stroke-linejoin="round"
200
- stroke-width="16"
201
- />
202
- <line
203
- x1="128"
204
- y1="40"
205
- x2="128"
206
- y2="216"
207
- fill="none"
208
- stroke="currentColor"
209
- stroke-linecap="round"
210
- stroke-linejoin="round"
211
- stroke-width="16"
212
- />
213
- </svg>
214
- </button>
215
- <button
216
- class="ui-button"
217
- data-variant="muted"
218
- data-size="icon-sm"
219
- type="button"
220
- aria-label="Add"
221
- >
222
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
223
- <rect width="256" height="256" fill="none" />
224
- <line
225
- x1="40"
226
- y1="128"
227
- x2="216"
228
- y2="128"
229
- fill="none"
230
- stroke="currentColor"
231
- stroke-linecap="round"
232
- stroke-linejoin="round"
233
- stroke-width="16"
234
- />
235
- <line
236
- x1="128"
237
- y1="40"
238
- x2="128"
239
- y2="216"
240
- fill="none"
241
- stroke="currentColor"
242
- stroke-linecap="round"
243
- stroke-linejoin="round"
244
- stroke-width="16"
245
- />
246
- </svg>
247
- </button>
248
- </div>
249
- </div>
250
-
251
- <!-- Button Group -->
252
- <div class="mb-lg">
253
- <div class="flex flex-col items-start gap-md">
254
- <ui-button-group role="group" aria-label="Text alignment">
255
- <button class="ui-button" type="button">Left</button>
256
- <button class="ui-button" type="button">Center</button>
257
- <button class="ui-button" type="button">Right</button>
258
- </ui-button-group>
259
-
260
- <ui-button-group role="group" aria-label="Pagination">
261
- <button class="ui-button" data-variant="muted" type="button">Previous</button>
262
- <button class="ui-button" data-variant="muted" data-size="icon" type="button">
263
- 1
264
- </button>
265
- <button class="ui-button" data-variant="muted" data-size="icon" type="button">
266
- 2
267
- </button>
268
- <button class="ui-button" data-variant="muted" data-size="icon" type="button">
269
- 3
270
- </button>
271
- <button class="ui-button" data-variant="muted" type="button">Next</button>
272
- </ui-button-group>
273
- </div>
274
- </div>
275
-
276
- <!-- Toggle Group -->
277
- <div class="mb-lg">
278
- <h2 class="text-h6 font-heading pb-sm">Toggle Group</h2>
279
- <ui-toggle-group role="group" aria-label="Text formatting">
280
- <label class="ui-toggle">
281
- <input type="checkbox" name="format" value="bold" />
282
- <span>Bold</span>
283
- </label>
284
- <label class="ui-toggle">
285
- <input type="checkbox" name="format" value="italic" />
286
- <span>Italic</span>
287
- </label>
288
- <label class="ui-toggle">
289
- <input type="checkbox" name="format" value="underline" />
290
- <span>Underline</span>
291
- </label>
292
- </ui-toggle-group>
293
- </div>
294
-
295
- <!-- Buttons -->
296
- <div class="mb-lg">
297
- <h2 class="text-h6 font-heading pb-sm">Buttons</h2>
298
- <div class="flex items-center gap-xs pb-sm">
299
- <button class="ui-button" type="button">Default</button>
300
- <button class="ui-button" data-variant="primary" type="button">Primary</button>
301
- <button class="ui-button" data-variant="muted" type="button">Muted</button>
302
- <button class="ui-button" data-variant="ghost" type="button">Ghost</button>
303
- <button class="ui-button" data-variant="destructive" type="button">
304
- Destructive
305
- </button>
306
- <button class="ui-button" data-variant="link" type="button">Link</button>
307
- </div>
308
- <div class="flex items-center gap-xs">
309
- <button class="ui-button" data-variant="primary" type="button">
310
- Start free trial
311
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
312
- <rect width="256" height="256" fill="none" />
313
- <line
314
- x1="40"
315
- y1="128"
316
- x2="216"
317
- y2="128"
318
- fill="none"
319
- stroke="currentColor"
320
- stroke-linecap="round"
321
- stroke-linejoin="round"
322
- stroke-width="16"
323
- />
324
- <polyline
325
- points="144 56 216 128 144 200"
326
- fill="none"
327
- stroke="currentColor"
328
- stroke-linecap="round"
329
- stroke-linejoin="round"
330
- stroke-width="16"
331
- />
332
- </svg>
333
- </button>
334
- <button class="ui-button" data-variant="primary" data-size="sm" type="button">
335
- Small
336
- </button>
337
- <button
338
- class="ui-button"
339
- data-variant="primary"
340
- data-size="icon"
341
- type="button"
342
- aria-label="Add"
343
- >
344
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
345
- <rect width="256" height="256" fill="none" />
346
- <line
347
- x1="40"
348
- y1="128"
349
- x2="216"
350
- y2="128"
351
- fill="none"
352
- stroke="currentColor"
353
- stroke-linecap="round"
354
- stroke-linejoin="round"
355
- stroke-width="16"
356
- />
357
- <line
358
- x1="128"
359
- y1="40"
360
- x2="128"
361
- y2="216"
362
- fill="none"
363
- stroke="currentColor"
364
- stroke-linecap="round"
365
- stroke-linejoin="round"
366
- stroke-width="16"
367
- />
368
- </svg>
369
- </button>
370
- <button
371
- class="ui-button"
372
- data-variant="muted"
373
- data-size="icon-sm"
374
- type="button"
375
- aria-label="Add"
376
- >
377
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
378
- <rect width="256" height="256" fill="none" />
379
- <line
380
- x1="40"
381
- y1="128"
382
- x2="216"
383
- y2="128"
384
- fill="none"
385
- stroke="currentColor"
386
- stroke-linecap="round"
387
- stroke-linejoin="round"
388
- stroke-width="16"
389
- />
390
- <line
391
- x1="128"
392
- y1="40"
393
- x2="128"
394
- y2="216"
395
- fill="none"
396
- stroke="currentColor"
397
- stroke-linecap="round"
398
- stroke-linejoin="round"
399
- stroke-width="16"
400
- />
401
- </svg>
402
- </button>
403
- </div>
404
- </div>
405
-
406
- <!-- Badges -->
407
- <div class="mb-lg">
408
- <h2 class="text-h6 font-heading pb-sm">Badges</h2>
409
- <div class="flex items-center gap-xs">
410
- <button type="button" class="ui-badge">Category</button>
411
- <button type="button" class="ui-badge" data-variant="primary">New</button>
412
- <button type="button" class="ui-badge" data-variant="muted">Draft</button>
413
- <button type="button" class="ui-badge" data-variant="ghost">Inline</button>
414
- <button type="button" class="ui-badge" data-variant="link">Posts</button>
415
- </div>
416
- </div>
417
-
418
- <!-- Breadcrumbs -->
419
- <div class="mb-lg">
420
- <h2 class="text-h6 font-heading pb-sm">Breadcrumbs</h2>
421
- <nav class="flex items-center gap-xs">
422
- <menu class="flex items-center gap-xs">
423
- <li><a class="ui-button" data-variant="link" href="#">Home</a></li>
424
- <li><span class="text-muted-foreground opacity-50">/</span></li>
425
- <li><a class="ui-button" data-variant="link" href="#">Products</a></li>
426
- <li><span class="text-muted-foreground opacity-50">/</span></li>
427
- <li>
428
- <div class="ui-button" data-variant="link" aria-disabled="true">Product name</div>
429
- </li>
430
- </menu>
431
- </nav>
432
- </div>
433
-
434
- <!-- Tooltip and menu -->
435
- <div class="mb-lg">
436
- <h2 class="text-h6 font-heading pb-sm">Tooltip and menu</h2>
437
- <div class="flex items-center gap-xs">
438
- <ui-tooltip>
439
- <button type="button" class="ui-button" interestfor="tooltip-components-1">
440
- Hover or focus
441
- </button>
442
- <div data-slot="tooltip-content" id="tooltip-components-1" popover="hint">
443
- Add to library
444
- <span data-slot="tooltip-arrow" aria-hidden="true"></span>
445
- </div>
446
- </ui-tooltip>
447
-
448
- <ui-menu>
449
- <button class="ui-button" type="button" popovertarget="menu-components-1">
450
- Open menu
451
- </button>
452
- <div
453
- id="menu-components-1"
454
- data-slot="menu-popover"
455
- data-side="bottom"
456
- data-align="start"
457
- popover="auto"
458
- >
459
- <menu>
460
- <li class="font-strong text-eyebrow text-muted-foreground p-xs">Account</li>
461
- <li>
462
- <a href="#" class="ui-button justify-start" data-variant="ghost">Profile</a>
463
- </li>
464
- <li>
465
- <a href="#" class="ui-button justify-start" data-variant="ghost">Billing</a>
466
- </li>
467
- <hr class="ui-separator my-xs" />
468
- <li class="font-strong text-eyebrow text-muted-foreground p-xs">Session</li>
469
- <li>
470
- <a href="#" class="ui-button justify-start" data-variant="ghost">Sign out</a>
471
- </li>
472
- </menu>
473
- </div>
474
- </ui-menu>
475
- </div>
476
- </div>
477
-
478
- <!-- Dialog -->
479
- <div class="mb-lg">
480
- <h2 class="text-h6 font-heading pb-sm">Dialog</h2>
481
- <button
482
- class="ui-button"
483
- type="button"
484
- command="show-modal"
485
- commandfor="dialog-components-1"
486
- >
487
- Open dialog
488
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
489
- <rect width="256" height="256" fill="none" />
490
- <line
491
- x1="64"
492
- y1="192"
493
- x2="192"
494
- y2="64"
495
- fill="none"
496
- stroke="currentColor"
497
- stroke-linecap="round"
498
- stroke-linejoin="round"
499
- stroke-width="16"
500
- />
501
- <polyline
502
- points="88 64 192 64 192 168"
503
- fill="none"
504
- stroke="currentColor"
505
- stroke-linecap="round"
506
- stroke-linejoin="round"
507
- stroke-width="16"
508
- />
509
- </svg>
510
- </button>
511
- <dialog id="dialog-components-1" class="ui-dialog" closedby="any">
512
- <div data-slot="dialog-content">
513
- <header data-slot="dialog-header">
514
- <h2 class="text-lg font-heading font-strong">Dialog title</h2>
515
- <p class="text-muted-foreground">
516
- Opened with an invoker command. Closes on backdrop click, Escape, or either
517
- button.
518
- </p>
519
- </header>
520
- <div data-slot="dialog-body">
521
- <p>Set the size of the dialog with the <code>data-size</code> attribute.</p>
522
- </div>
523
- <footer data-slot="dialog-footer">
524
- <button
525
- class="ui-button"
526
- type="button"
527
- commandfor="dialog-components-1"
528
- command="close"
529
- >
530
- Cancel
531
- </button>
532
- <button
533
- class="ui-button"
534
- data-variant="primary"
535
- commandfor="dialog-components-1"
536
- command="close"
537
- >
538
- Accept
539
- </button>
540
- </footer>
541
- </div>
542
- <button
543
- class="ui-button"
544
- data-slot="dialog-close"
545
- data-size="icon"
546
- data-variant="ghost"
547
- type="button"
548
- commandfor="dialog-components-1"
549
- command="close"
550
- aria-label="Close dialog"
551
- >
552
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
553
- <rect width="256" height="256" fill="none" />
554
- <line
555
- x1="200"
556
- y1="56"
557
- x2="56"
558
- y2="200"
559
- stroke="currentColor"
560
- stroke-linecap="round"
561
- stroke-linejoin="round"
562
- stroke-width="16"
563
- />
564
- <line
565
- x1="200"
566
- y1="200"
567
- x2="56"
568
- y2="56"
569
- stroke="currentColor"
570
- stroke-linecap="round"
571
- stroke-linejoin="round"
572
- stroke-width="16"
573
- />
574
- </svg>
575
- </button>
576
- </dialog>
577
- </div>
578
-
579
- <!-- Accordion -->
580
- <div class="mb-lg">
581
- <h2 class="text-h6 font-heading pb-sm">Accordion</h2>
582
- <ui-accordion>
583
- <details class="border-b">
584
- <summary class="font-strong hover:text-muted-foreground">
585
- What is an accordion?
586
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
587
- <rect width="256" height="256" fill="none" />
588
- <polyline
589
- points="208 96 128 176 48 96"
590
- fill="none"
591
- stroke="currentColor"
592
- stroke-linecap="round"
593
- stroke-linejoin="round"
594
- stroke-width="16"
595
- />
596
- </svg>
597
- </summary>
598
- <div class="pb-sm">
599
- <p>
600
- A disclosure widget built from the native <code>&lt;details&gt;</code> and
601
- <code>&lt;summary&gt;</code> elements. The open and close animation uses the
602
- <code>::details-content</code> pseudo-element, with no JavaScript.
603
- </p>
604
- </div>
605
- </details>
606
- <details class="border-b">
607
- <summary class="font-strong hover:text-muted-foreground">
608
- How does it work?
609
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
610
- <rect width="256" height="256" fill="none" />
611
- <polyline
612
- points="208 96 128 176 48 96"
613
- fill="none"
614
- stroke="currentColor"
615
- stroke-linecap="round"
616
- stroke-linejoin="round"
617
- stroke-width="16"
618
- />
619
- </svg>
620
- </summary>
621
- <div class="pb-sm">
622
- <p>
623
- Each item is a separate <code>&lt;details&gt;</code>, so several can stay open
624
- at once. Click a summary or focus it and press Enter to toggle.
625
- </p>
626
- </div>
627
- </details>
628
- <details class="border-b">
629
- <summary class="font-strong hover:text-muted-foreground">
630
- Why use it?
631
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
632
- <rect width="256" height="256" fill="none" />
633
- <polyline
634
- points="208 96 128 176 48 96"
635
- fill="none"
636
- stroke="currentColor"
637
- stroke-linecap="round"
638
- stroke-linejoin="round"
639
- stroke-width="16"
640
- />
641
- </svg>
642
- </summary>
643
- <div class="pb-sm">
644
- <p>
645
- Keyboard support, state, and accessibility come from the platform. Zazz only
646
- styles the chrome through theme tokens.
647
- </p>
648
- </div>
649
- </details>
650
- </ui-accordion>
651
- </div>
652
-
653
- <!-- Tabs -->
654
- <div class="mb-lg">
655
- <h2 class="text-h6 font-heading pb-sm">Tabs</h2>
656
- <ui-tabs class="w-full">
657
- <div data-slot="tabs-list" role="tablist">
658
- <div data-slot="tabs-indicator" aria-hidden="true"></div>
659
- <input type="radio" role="tab" name="components-tabs" id="ctab-1" checked />
660
- <label for="ctab-1" data-slot="tabs-label"
661
- ><span data-slot="tabs-label-text">Account</span></label
662
- >
663
- <input type="radio" role="tab" name="components-tabs" id="ctab-2" />
664
- <label for="ctab-2" data-slot="tabs-label"
665
- ><span data-slot="tabs-label-text">Billing</span></label
666
- >
667
- <input type="radio" role="tab" name="components-tabs" id="ctab-3" />
668
- <label for="ctab-3" data-slot="tabs-label"
669
- ><span data-slot="tabs-label-text">Notifications</span></label
670
- >
671
- </div>
672
- <div class="border rounded-md p-md w-full" data-slot="tabs-panel" role="tabpanel">
673
- <h3 class="text-lg font-strong">Account</h3>
674
- <p class="text-muted-foreground mt-xs">Manage your profile, email, and password.</p>
675
- </div>
676
- <div class="border rounded-md p-md w-full" data-slot="tabs-panel" role="tabpanel">
677
- <h3 class="text-lg font-strong">Billing</h3>
678
- <p class="text-muted-foreground mt-xs">
679
- Review invoices and update your payment method.
680
- </p>
681
- </div>
682
- <div class="border rounded-md p-md w-full" data-slot="tabs-panel" role="tabpanel">
683
- <h3 class="text-lg font-strong">Notifications</h3>
684
- <p class="text-muted-foreground mt-xs">
685
- Choose what we email you about and how often.
686
- </p>
687
- </div>
688
- </ui-tabs>
689
- </div>
690
-
691
- <!-- Cards -->
692
- <div class="mb-lg">
693
- <h2 class="text-h6 font-heading pb-sm">Cards</h2>
694
- <div class="grid grid-cols-1 @sm:grid-cols-2 @lg:grid-cols-3 gap-md">
695
- <a class="grid cursor-pointer" href="#">
696
- <div
697
- class="grid gap-sm bg-card text-card-foreground rounded-md shadow-sm overflow-clip"
698
- >
699
- <figure class="grid aspect-landscape rounded-t-md overflow-clip">
700
- <img
701
- class="size-full object-cover hover:scale-102 hover:opacity-75 transition"
702
- width="300"
703
- height="200"
704
- loading="lazy"
705
- src="https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=300&h=200&q=60"
706
- alt="Zebras grazing at dawn on the savanna"
707
- />
708
- </figure>
709
- <div class="grid gap-sm px-sm pb-sm">
710
- <header class="grid gap-xs">
711
- <div class="flex items-center gap-xs">
712
- <span class="ui-badge" data-variant="muted">Field notes</span>
713
- </div>
714
- <hgroup class="grid gap-xs">
715
- <h3 class="text-lg font-heading">How quickly zebras jump</h3>
716
- <p class="text-sm text-muted-foreground line-clamp-2">
717
- Striped coats and sudden bursts of speed help herds evade predators when
718
- the grasslands go quiet at dusk.
719
- </p>
720
- </hgroup>
721
- </header>
722
- <footer class="grid justify-start gap-sm pt-sm border-t">
723
- <div class="text-link">Read article</div>
724
- </footer>
725
- </div>
726
- </div>
727
- </a>
728
-
729
- <a class="grid cursor-pointer" href="#">
730
- <div
731
- class="grid gap-sm bg-card text-card-foreground rounded-md shadow-sm overflow-clip"
732
- >
733
- <figure class="grid aspect-landscape rounded-t-md overflow-clip">
734
- <img
735
- class="size-full object-cover hover:scale-102 hover:opacity-75 transition"
736
- width="300"
737
- height="200"
738
- loading="lazy"
739
- src="https://images.unsplash.com/photo-1564760055775-d63b17a55c44?auto=format&fit=crop&w=300&h=200&q=60"
740
- alt="A lion resting in tall golden grass"
741
- />
742
- </figure>
743
- <div class="grid gap-sm px-sm pb-sm">
744
- <header class="grid gap-xs">
745
- <div class="flex items-center gap-xs">
746
- <span class="ui-badge" data-variant="muted">Wildlife</span>
747
- </div>
748
- <hgroup class="grid gap-xs">
749
- <h3 class="text-lg font-heading">Lions at golden hour</h3>
750
- <p class="text-sm text-muted-foreground line-clamp-2">
751
- Warm light and long shadows make dawn patrols the best time to photograph
752
- big cats on the open plain.
753
- </p>
754
- </hgroup>
755
- </header>
756
- <footer class="grid justify-start gap-sm pt-sm border-t">
757
- <div class="text-link">View gallery</div>
758
- </footer>
759
- </div>
760
- </div>
761
- </a>
762
-
763
- <a class="grid cursor-pointer" href="#">
764
- <div
765
- class="grid gap-sm bg-card text-card-foreground rounded-md shadow-sm overflow-clip"
766
- >
767
- <figure class="grid aspect-landscape rounded-t-md overflow-clip">
768
- <img
769
- class="size-full object-cover hover:scale-102 hover:opacity-75 transition"
770
- width="300"
771
- height="200"
772
- loading="lazy"
773
- src="https://images.unsplash.com/photo-1511735111819-9a3f7709049c?auto=format&fit=crop&w=300&h=200&q=60"
774
- alt="Elephants crossing a dusty riverbed"
775
- />
776
- </figure>
777
- <div class="grid gap-sm px-sm pb-sm">
778
- <header class="grid gap-xs">
779
- <div class="flex items-center gap-xs">
780
- <span class="ui-badge" data-variant="muted">Research</span>
781
- </div>
782
- <hgroup class="grid gap-xs">
783
- <h3 class="text-lg font-heading">Migration patterns decoded</h3>
784
- <p class="text-sm text-muted-foreground line-clamp-2">
785
- Satellite collars reveal ancient routes herds still follow each dry season
786
- across the floodplain.
787
- </p>
788
- </hgroup>
789
- </header>
790
- <footer class="grid justify-start gap-sm pt-sm border-t">
791
- <div class="text-link">See the data</div>
792
- </footer>
793
- </div>
794
- </div>
795
- </a>
796
- </div>
797
- </div>
798
-
799
- <!-- Avatars -->
800
- <div>
801
- <h2 class="text-h6 font-heading pb-sm">Avatars</h2>
802
- <div class="flex items-center gap-md">
803
- <div class="flex items-center gap-xs">
804
- <figure
805
- class="grid grid-area-pile size-lg bg-background border rounded-full overflow-clip"
806
- role="img"
807
- >
808
- <img
809
- class="size-full object-cover order-last bg-transparent"
810
- width="64"
811
- height="64"
812
- loading="lazy"
813
- src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=facearea&facepad=2&w=64&h=64&q=90"
814
- alt="John Doe"
815
- aria-hidden="true"
816
- />
817
- <figcaption
818
- class="order-first bg-muted size-full text-muted-foreground flex items-center justify-center text-center text-md font-strong"
819
- >
820
- <span class="sr-only">John Doe</span>
821
- <span aria-hidden="true">JD</span>
822
- </figcaption>
823
- </figure>
824
- <div class="flex flex-col">
825
- <span class="text-sm font-strong leading-none">John Doe</span>
826
- <span class="text-xs text-muted-foreground">Founder, ACME Inc.</span>
827
- </div>
828
- </div>
829
-
830
- <div class="flex items-center gap-xs">
831
- <figure
832
- class="grid grid-area-pile size-lg bg-background border rounded-full overflow-clip"
833
- role="img"
834
- >
835
- <figcaption
836
- class="order-first bg-muted size-full text-muted-foreground flex items-center justify-center text-center text-md font-strong"
837
- >
838
- <span class="sr-only">Ada Lovelace</span>
839
- <span aria-hidden="true">AL</span>
840
- </figcaption>
841
- </figure>
842
- <div class="flex flex-col">
843
- <span class="text-sm font-strong leading-none">Ada Lovelace</span>
844
- <span class="text-xs text-muted-foreground">Initials fallback</span>
845
- </div>
846
- </div>
847
- </div>
848
- </div>
849
- </div>
850
- </section>
851
-
852
- <!-- Prose, in an article reading column -->
853
- <article class="py-xl border-t">
854
- <div class="container ui-prose" data-variant="article" data-container="sm">
855
- <hgroup>
856
- <span class="text-eyebrow">Prose</span>
857
- <h2>Long-form content</h2>
858
- <p class="text-lg text-muted-foreground">
859
- Wrap rich text in <code>.ui-prose</code> for tuned typography. Body and paragraphs
860
- default to <code>.text-md</code>; override size with <code>.text-xs</code> through
861
- <code>.text-xl</code>.
862
- </p>
863
- </hgroup>
864
-
865
- <hgroup>
866
- <h1>How vexingly quick daft zebras jump.</h1>
867
- <p>
868
- Default paragraph — no class needed; matches body size. Lorem ipsum dolor sit amet,
869
- consectetur adipiscing elit.
870
- </p>
871
-
872
- <h2>How vexingly quick daft zebras jump.</h2>
873
- <p>
874
- Default paragraph — no class needed; matches body size. Lorem ipsum dolor sit amet,
875
- consectetur adipiscing elit.
876
- </p>
877
-
878
- <h3>How vexingly quick daft zebras jump.</h3>
879
- <p>
880
- Default paragraph — no class needed; matches body size. Lorem ipsum dolor sit amet,
881
- consectetur adipiscing elit.
882
- </p>
883
-
884
- <h4>How vexingly quick daft zebras jump.</h4>
885
- <p>
886
- Default paragraph — no class needed; matches body size. Lorem ipsum dolor sit amet,
887
- consectetur adipiscing elit.
888
- </p>
889
-
890
- <h5>How vexingly quick daft zebras jump.</h5>
891
- <p>
892
- Default paragraph — no class needed; matches body size. Lorem ipsum dolor sit amet,
893
- consectetur adipiscing elit.
894
- </p>
895
-
896
- <h6>How vexingly quick daft zebras jump.</h6>
897
- <p>
898
- Default paragraph — no class needed; matches body size. Lorem ipsum dolor sit amet,
899
- consectetur adipiscing elit.
900
- </p>
901
- </hgroup>
902
-
903
- <hr />
904
-
905
- <span class="text-eyebrow">text-xl</span>
906
- <p class="text-xl">
907
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit
908
- amet ipsum mauris.
909
- </p>
910
-
911
- <span class="text-eyebrow">text-lg</span>
912
- <p class="text-lg">
913
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit
914
- amet ipsum mauris.
915
- </p>
916
-
917
- <span class="text-eyebrow">text-md</span>
918
- <p>
919
- Default paragraph — no class needed; matches body size. Lorem ipsum dolor sit amet,
920
- consectetur adipiscing elit.
921
- </p>
922
-
923
- <span class="text-eyebrow">text-sm</span>
924
- <p class="text-sm">
925
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit
926
- amet ipsum mauris.
927
- </p>
928
-
929
- <span class="text-eyebrow">text-xs</span>
930
- <p class="text-xs">
931
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit
932
- amet ipsum mauris.
933
- </p>
934
-
935
- <hr />
936
-
937
- <hgroup>
938
- <span class="text-eyebrow">Prose</span>
939
- <h2>Paragraph spacing</h2>
940
- <p class="text-lg text-muted-foreground">
941
- Wrap rich text in <code>.ui-prose</code> for tuned typography. Body and paragraphs
942
- default to <code>.text-md</code>; override size with <code>.text-xs</code> through
943
- <code>.text-xl</code>.
944
- </p>
945
- </hgroup>
946
-
947
- <p>
948
- Inline semantics: <strong>strong emphasis</strong>, <em>italic emphasis</em>,
949
- <a href="#">a prose link</a>, and <code>inline code</code>.
950
- </p>
951
-
952
- <blockquote>
953
- <p>Typography is the craft of endowing human language with a durable visual form.</p>
954
- <cite>— Robert Bringhurst</cite>
955
- </blockquote>
956
-
957
- <figure>
958
- <figcaption>Unordered list</figcaption>
959
- <ul>
960
- <li>Unordered list item with disc markers.</li>
961
- <li>Sentence case headings and labels throughout.</li>
962
- <li>Semantic role tokens, so dark mode swaps for free.</li>
963
- </ul>
964
- </figure>
965
-
966
- <figure>
967
- <figcaption>Ordered list</figcaption>
968
- <ol>
969
- <li>Ordered list item one.</li>
970
- <li>Ordered list item two.</li>
971
- <li>Ordered list item three.</li>
972
- </ol>
973
- </figure>
974
-
975
- <dl>
976
- <dt>Soliloquy</dt>
977
- <dd>
978
- In drama, where a character speaks to themselves, representing their inner thoughts or
979
- feelings and in the process relaying them to the audience (but not to other
980
- characters.)
981
- </dd>
982
- <dt>Monologue</dt>
983
- <dd>
984
- In drama, where a character speaks their thoughts out loud to share them with the
985
- audience and any other characters present.
986
- </dd>
987
- <dt>Aside</dt>
988
- <dd>
989
- In drama, where a character shares a comment only with the audience for humorous or
990
- dramatic effect. This is usually a feeling, thought, or piece of additional background
991
- information.
992
- </dd>
993
- </dl>
994
-
995
- <figure>
996
- <img
997
- sizes="auto"
998
- loading="lazy"
999
- width="800"
1000
- height="400"
1001
- src="https://placehold.co/800x400"
1002
- alt="Placeholder demonstrating figure and image styling within prose"
1003
- />
1004
- <figcaption>
1005
- Figure with caption — images pick up radius and border from prose tokens.
1006
- </figcaption>
1007
- </figure>
1008
- </div>
1009
- </article>
1010
- </main>
1011
-
1012
- <footer class="border-t" data-transition-layer="global-footer">
1013
- <div class="container py-xl">
1014
- <div class="flex items-center justify-between gap-md">
1015
- <div class="text-h6 font-black">Zazz tests</div>
1016
- <menu class="flex gap-sm">
1017
- <li><a class="ui-button" data-variant="link" href="about.html">About</a></li>
1018
- <li><a class="ui-button" data-variant="link" href="layout.html">Layout</a></li>
1019
- <li><a class="ui-button" data-variant="link" href="responsive.html">Responsive</a></li>
1020
- <li><a class="ui-button" data-variant="link" href="products.html">Products</a></li>
1021
- <li><a class="ui-button" data-variant="link" href="components.html">Components</a></li>
1022
- <li><a class="ui-button" data-variant="link" href="forms.html">Forms</a></li>
1023
- </menu>
1024
- </div>
1025
- </div>
1026
- </footer>
1027
- </body>
1028
- </html>