@zazz-ui/core 0.1.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 (260) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +21 -0
  3. package/README.md +61 -0
  4. package/dist/sri.json +75 -0
  5. package/dist/zazz.css +1 -0
  6. package/dist/zazz.js +1 -0
  7. package/examples/about.html +590 -0
  8. package/examples/components.html +1040 -0
  9. package/examples/forms.html +511 -0
  10. package/examples/index.html +268 -0
  11. package/examples/layout.html +320 -0
  12. package/examples/products.html +846 -0
  13. package/examples/responsive.html +339 -0
  14. package/package.json +85 -0
  15. package/src/base/_layers.css +12 -0
  16. package/src/base/_layout.css +568 -0
  17. package/src/base/_reset.css +515 -0
  18. package/src/base/_typography.css +495 -0
  19. package/src/base/_utilities.css +6628 -0
  20. package/src/base/_variables.css +682 -0
  21. package/src/base/_view-transitions.css +103 -0
  22. package/src/base/command-score.d.ts +12 -0
  23. package/src/base/command-score.d.ts.map +1 -0
  24. package/src/base/command-score.js +151 -0
  25. package/src/base/command-score.ts +192 -0
  26. package/src/base/dialog-lifecycle.d.ts +11 -0
  27. package/src/base/dialog-lifecycle.d.ts.map +1 -0
  28. package/src/base/dialog-lifecycle.js +65 -0
  29. package/src/base/dialog-lifecycle.ts +80 -0
  30. package/src/base/embla.d.ts +90 -0
  31. package/src/base/embla.d.ts.map +1 -0
  32. package/src/base/embla.js +643 -0
  33. package/src/base/embla.ts +791 -0
  34. package/src/base/hotkeys.d.ts +82 -0
  35. package/src/base/hotkeys.d.ts.map +1 -0
  36. package/src/base/hotkeys.js +141 -0
  37. package/src/base/hotkeys.ts +195 -0
  38. package/src/base/navigation.d.ts +2 -0
  39. package/src/base/navigation.d.ts.map +1 -0
  40. package/src/base/navigation.js +136 -0
  41. package/src/base/navigation.ts +151 -0
  42. package/src/base/reveal.d.ts +80 -0
  43. package/src/base/reveal.d.ts.map +1 -0
  44. package/src/base/reveal.js +305 -0
  45. package/src/base/reveal.ts +379 -0
  46. package/src/base/signals.d.ts +89 -0
  47. package/src/base/signals.d.ts.map +1 -0
  48. package/src/base/signals.js +134 -0
  49. package/src/base/signals.ts +164 -0
  50. package/src/base/typeahead.d.ts +105 -0
  51. package/src/base/typeahead.d.ts.map +1 -0
  52. package/src/base/typeahead.js +411 -0
  53. package/src/base/typeahead.ts +500 -0
  54. package/src/base/utils.d.ts +56 -0
  55. package/src/base/utils.d.ts.map +1 -0
  56. package/src/base/utils.js +88 -0
  57. package/src/base/utils.ts +98 -0
  58. package/src/base/zazz-element.d.ts +44 -0
  59. package/src/base/zazz-element.d.ts.map +1 -0
  60. package/src/base/zazz-element.js +59 -0
  61. package/src/base/zazz-element.ts +73 -0
  62. package/src/globals.d.ts +148 -0
  63. package/src/head.d.ts +95 -0
  64. package/src/head.d.ts.map +1 -0
  65. package/src/head.js +311 -0
  66. package/src/head.ts +433 -0
  67. package/src/index.css +71 -0
  68. package/src/index.d.ts +36 -0
  69. package/src/index.d.ts.map +1 -0
  70. package/src/index.js +35 -0
  71. package/src/index.ts +36 -0
  72. package/src/manifest.d.ts +90 -0
  73. package/src/manifest.d.ts.map +1 -0
  74. package/src/manifest.js +614 -0
  75. package/src/manifest.ts +667 -0
  76. package/src/primitives/accordion/accordion.css +104 -0
  77. package/src/primitives/accordion/accordion.html +69 -0
  78. package/src/primitives/alert-dialog/alert-dialog.css +38 -0
  79. package/src/primitives/alert-dialog/alert-dialog.html +53 -0
  80. package/src/primitives/autocomplete/autocomplete-groups.html +77 -0
  81. package/src/primitives/autocomplete/autocomplete.css +114 -0
  82. package/src/primitives/autocomplete/autocomplete.d.ts +30 -0
  83. package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -0
  84. package/src/primitives/autocomplete/autocomplete.html +66 -0
  85. package/src/primitives/autocomplete/autocomplete.js +41 -0
  86. package/src/primitives/autocomplete/autocomplete.ts +46 -0
  87. package/src/primitives/avatar/avatar.html +44 -0
  88. package/src/primitives/badge/badge-icon.html +36 -0
  89. package/src/primitives/badge/badge.css +251 -0
  90. package/src/primitives/badge/badge.html +7 -0
  91. package/src/primitives/breadcrumbs/breadcrumbs.html +9 -0
  92. package/src/primitives/button/button-icon-only.html +84 -0
  93. package/src/primitives/button/button-icon.html +82 -0
  94. package/src/primitives/button/button.css +319 -0
  95. package/src/primitives/button/button.html +8 -0
  96. package/src/primitives/button-group/button-group-vertical.html +6 -0
  97. package/src/primitives/button-group/button-group.css +94 -0
  98. package/src/primitives/button-group/button-group.html +64 -0
  99. package/src/primitives/card/card-subgrid.html +118 -0
  100. package/src/primitives/card/card.html +53 -0
  101. package/src/primitives/carousel/carousel.css +61 -0
  102. package/src/primitives/carousel/carousel.d.ts +16 -0
  103. package/src/primitives/carousel/carousel.d.ts.map +1 -0
  104. package/src/primitives/carousel/carousel.html +315 -0
  105. package/src/primitives/carousel/carousel.js +73 -0
  106. package/src/primitives/carousel/carousel.ts +84 -0
  107. package/src/primitives/checkbox/checkbox-tasklist.html +71 -0
  108. package/src/primitives/checkbox/checkbox.css +82 -0
  109. package/src/primitives/checkbox/checkbox.d.ts +21 -0
  110. package/src/primitives/checkbox/checkbox.d.ts.map +1 -0
  111. package/src/primitives/checkbox/checkbox.html +17 -0
  112. package/src/primitives/checkbox/checkbox.js +190 -0
  113. package/src/primitives/checkbox/checkbox.ts +219 -0
  114. package/src/primitives/combobox/combobox-multiselect.html +91 -0
  115. package/src/primitives/combobox/combobox.css +307 -0
  116. package/src/primitives/combobox/combobox.d.ts +100 -0
  117. package/src/primitives/combobox/combobox.d.ts.map +1 -0
  118. package/src/primitives/combobox/combobox.html +73 -0
  119. package/src/primitives/combobox/combobox.js +503 -0
  120. package/src/primitives/combobox/combobox.ts +559 -0
  121. package/src/primitives/command/command-actions.d.ts +31 -0
  122. package/src/primitives/command/command-actions.d.ts.map +1 -0
  123. package/src/primitives/command/command-actions.html +89 -0
  124. package/src/primitives/command/command-actions.js +70 -0
  125. package/src/primitives/command/command-actions.ts +77 -0
  126. package/src/primitives/command/command-dialog.html +77 -0
  127. package/src/primitives/command/command.css +151 -0
  128. package/src/primitives/command/command.d.ts +52 -0
  129. package/src/primitives/command/command.d.ts.map +1 -0
  130. package/src/primitives/command/command.html +119 -0
  131. package/src/primitives/command/command.js +146 -0
  132. package/src/primitives/command/command.ts +157 -0
  133. package/src/primitives/dialog/dialog-with-form.html +200 -0
  134. package/src/primitives/dialog/dialog.css +229 -0
  135. package/src/primitives/dialog/dialog.html +90 -0
  136. package/src/primitives/fields/fields.css +278 -0
  137. package/src/primitives/input/input-icon-leading.html +19 -0
  138. package/src/primitives/input/input-icon-trailing.html +18 -0
  139. package/src/primitives/input/input.css +114 -0
  140. package/src/primitives/input/input.html +61 -0
  141. package/src/primitives/input-group/input-group-password-group.html +108 -0
  142. package/src/primitives/input-group/input-group.css +215 -0
  143. package/src/primitives/input-group/input-group.html +132 -0
  144. package/src/primitives/kbd/kbd-group.html +18 -0
  145. package/src/primitives/kbd/kbd.css +87 -0
  146. package/src/primitives/kbd/kbd.html +7 -0
  147. package/src/primitives/lightbox/lightbox.css +459 -0
  148. package/src/primitives/lightbox/lightbox.d.ts +7 -0
  149. package/src/primitives/lightbox/lightbox.d.ts.map +1 -0
  150. package/src/primitives/lightbox/lightbox.html +665 -0
  151. package/src/primitives/lightbox/lightbox.js +96 -0
  152. package/src/primitives/lightbox/lightbox.ts +113 -0
  153. package/src/primitives/menu/menu-interest.html +52 -0
  154. package/src/primitives/menu/menu.css +55 -0
  155. package/src/primitives/menu/menu.d.ts +38 -0
  156. package/src/primitives/menu/menu.d.ts.map +1 -0
  157. package/src/primitives/menu/menu.html +70 -0
  158. package/src/primitives/menu/menu.js +117 -0
  159. package/src/primitives/menu/menu.ts +131 -0
  160. package/src/primitives/menubar/menubar-help-search.html +103 -0
  161. package/src/primitives/menubar/menubar.html +166 -0
  162. package/src/primitives/meter/meter.css +178 -0
  163. package/src/primitives/meter/meter.html +38 -0
  164. package/src/primitives/mobile-menu/mobile-menu.css +145 -0
  165. package/src/primitives/mobile-menu/mobile-menu.html +614 -0
  166. package/src/primitives/navigation-menu/navigation-menu-featured.html +76 -0
  167. package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +158 -0
  168. package/src/primitives/navigation-menu/navigation-menu-interest.html +103 -0
  169. package/src/primitives/navigation-menu/navigation-menu-megamenu.html +141 -0
  170. package/src/primitives/navigation-menu/navigation-menu-simple.html +96 -0
  171. package/src/primitives/navigation-menu/navigation-menu.css +295 -0
  172. package/src/primitives/navigation-menu/navigation-menu.html +576 -0
  173. package/src/primitives/otp/otp.css +126 -0
  174. package/src/primitives/otp/otp.d.ts +89 -0
  175. package/src/primitives/otp/otp.d.ts.map +1 -0
  176. package/src/primitives/otp/otp.html +22 -0
  177. package/src/primitives/otp/otp.js +226 -0
  178. package/src/primitives/otp/otp.ts +279 -0
  179. package/src/primitives/password-group/password-group.css +238 -0
  180. package/src/primitives/password-group/password-group.d.ts +25 -0
  181. package/src/primitives/password-group/password-group.d.ts.map +1 -0
  182. package/src/primitives/password-group/password-group.html +109 -0
  183. package/src/primitives/password-group/password-group.js +76 -0
  184. package/src/primitives/password-group/password-group.ts +95 -0
  185. package/src/primitives/popover/popover.css +233 -0
  186. package/src/primitives/progress/progress-indeterminate.html +1 -0
  187. package/src/primitives/progress/progress.css +105 -0
  188. package/src/primitives/progress/progress.html +7 -0
  189. package/src/primitives/prose/prose.html +65 -0
  190. package/src/primitives/radio/radio.css +84 -0
  191. package/src/primitives/radio/radio.html +17 -0
  192. package/src/primitives/reveal/reveal.css +167 -0
  193. package/src/primitives/select/multiselect.d.ts +43 -0
  194. package/src/primitives/select/multiselect.d.ts.map +1 -0
  195. package/src/primitives/select/multiselect.js +147 -0
  196. package/src/primitives/select/multiselect.ts +188 -0
  197. package/src/primitives/select/select-align.html +49 -0
  198. package/src/primitives/select/select-multiple.html +12 -0
  199. package/src/primitives/select/select-sides.html +65 -0
  200. package/src/primitives/select/select.css +481 -0
  201. package/src/primitives/select/select.html +16 -0
  202. package/src/primitives/separator/separator.css +49 -0
  203. package/src/primitives/separator/separator.html +16 -0
  204. package/src/primitives/slider/slider.css +122 -0
  205. package/src/primitives/slider/slider.html +1 -0
  206. package/src/primitives/switch/switch.css +126 -0
  207. package/src/primitives/switch/switch.html +13 -0
  208. package/src/primitives/table/table-alternating.html +36 -0
  209. package/src/primitives/table/table-grid.html +30 -0
  210. package/src/primitives/table/table-size-sm.html +26 -0
  211. package/src/primitives/table/table.css +158 -0
  212. package/src/primitives/table/table.html +45 -0
  213. package/src/primitives/tabs/tabs.css +328 -0
  214. package/src/primitives/tabs/tabs.d.ts +35 -0
  215. package/src/primitives/tabs/tabs.d.ts.map +1 -0
  216. package/src/primitives/tabs/tabs.html +75 -0
  217. package/src/primitives/tabs/tabs.js +84 -0
  218. package/src/primitives/tabs/tabs.ts +93 -0
  219. package/src/primitives/textarea/textarea.css +78 -0
  220. package/src/primitives/textarea/textarea.html +10 -0
  221. package/src/primitives/toaster/toaster.css +309 -0
  222. package/src/primitives/toaster/toaster.d.ts +138 -0
  223. package/src/primitives/toaster/toaster.d.ts.map +1 -0
  224. package/src/primitives/toaster/toaster.html +77 -0
  225. package/src/primitives/toaster/toaster.js +736 -0
  226. package/src/primitives/toaster/toaster.ts +823 -0
  227. package/src/primitives/toggle/toggle.css +295 -0
  228. package/src/primitives/toggle/toggle.html +68 -0
  229. package/src/primitives/toggle-group/toggle-group-multiple.html +14 -0
  230. package/src/primitives/toggle-group/toggle-group-vertical.html +14 -0
  231. package/src/primitives/toggle-group/toggle-group.css +73 -0
  232. package/src/primitives/toggle-group/toggle-group.html +53 -0
  233. package/src/primitives/toolbar/toolbar.html +45 -0
  234. package/src/primitives/tooltip/tooltip-disabled.html +19 -0
  235. package/src/primitives/tooltip/tooltip-sides.html +57 -0
  236. package/src/primitives/tooltip/tooltip-with-kbd.html +31 -0
  237. package/src/primitives/tooltip/tooltip.css +235 -0
  238. package/src/primitives/tooltip/tooltip.html +12 -0
  239. package/src/primitives/utilities/aspect-ratio.html +17 -0
  240. package/src/primitives/utilities/basis.html +27 -0
  241. package/src/primitives/utilities/col-span.html +23 -0
  242. package/src/primitives/utilities/compose.html +19 -0
  243. package/src/primitives/utilities/flex-align.html +26 -0
  244. package/src/primitives/utilities/flex-direction.html +36 -0
  245. package/src/primitives/utilities/flex-grow.html +17 -0
  246. package/src/primitives/utilities/gap.html +62 -0
  247. package/src/primitives/utilities/grid-cols.html +20 -0
  248. package/src/primitives/utilities/grid-pile.html +5 -0
  249. package/src/primitives/utilities/grid-responsive.html +31 -0
  250. package/src/primitives/utilities/margin-auto.html +13 -0
  251. package/src/primitives/utilities/object-fit.html +41 -0
  252. package/src/primitives/utilities/order.html +17 -0
  253. package/src/primitives/utilities/overflow.html +26 -0
  254. package/src/primitives/utilities/padding-compose.html +23 -0
  255. package/src/primitives/utilities/padding.html +30 -0
  256. package/src/primitives/utilities/position.html +13 -0
  257. package/src/primitives/utilities/responsive-flex.html +22 -0
  258. package/src/primitives/utilities/responsive-grid.html +31 -0
  259. package/src/primitives/utilities/size.html +22 -0
  260. package/src/primitives/utilities/width.html +22 -0
@@ -0,0 +1,576 @@
1
+ <header class="w-full">
2
+ <nav class="ui-navigation-menu container">
3
+ <menu data-slot="navigation-menu-list">
4
+ <!-- Rich panel: featured callout + link grid -->
5
+ <li data-slot="navigation-menu-item">
6
+ <button
7
+ class="ui-button"
8
+ data-slot="navigation-menu-trigger"
9
+ data-variant="ghost"
10
+ type="button"
11
+ popovertarget="nav-panel-1"
12
+ >
13
+ Platform
14
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
15
+ <rect width="256" height="256" fill="none" />
16
+ <polyline
17
+ points="208 96 128 176 48 96"
18
+ fill="none"
19
+ stroke="currentColor"
20
+ stroke-linecap="round"
21
+ stroke-linejoin="round"
22
+ stroke-width="16"
23
+ />
24
+ </svg>
25
+ </button>
26
+
27
+ <div
28
+ id="nav-panel-1"
29
+ data-slot="navigation-menu-popover"
30
+ popover="auto"
31
+ data-animation="slide-down"
32
+ >
33
+ <div class="grid grid-cols-3" data-slot="navigation-menu-viewport">
34
+ <div class="grid py-xs pl-xs">
35
+ <a
36
+ href="#"
37
+ class="flex flex-col items-start justify-end bg-muted transition hover:opacity-75 rounded-sm p-sm"
38
+ >
39
+ <span class="text-eyebrow text-muted-foreground mb-xs">Featured</span>
40
+ <span class="text-md font-strong">Platform</span>
41
+ <span class="text-sm text-muted-foreground text-pretty">
42
+ Everything you need to design, build, and ship.
43
+ </span>
44
+ </a>
45
+ </div>
46
+ <div class="flex flex-col gap-px py-xs pr-xs col-span-2">
47
+ <a href="#" data-slot="navigation-menu-link">
48
+ <span class="text-sm font-strong">Analytics</span>
49
+ <span class="text-sm text-muted-foreground"
50
+ >Real-time insights into product usage.</span
51
+ >
52
+ </a>
53
+ <a href="#" data-slot="navigation-menu-link">
54
+ <span class="text-sm font-strong">Automation</span>
55
+ <span class="text-sm text-muted-foreground">Workflows that run themselves.</span>
56
+ </a>
57
+ <a href="#" data-slot="navigation-menu-link">
58
+ <span class="text-sm font-strong">Integrations</span>
59
+ <span class="text-sm text-muted-foreground"
60
+ >Connect the tools your team already uses.</span
61
+ >
62
+ </a>
63
+ <a href="#" data-slot="navigation-menu-link">
64
+ <span class="text-sm font-strong">Features</span>
65
+ <span class="text-sm text-muted-foreground"
66
+ >Everything you need to design, build, and ship.</span
67
+ >
68
+ </a>
69
+ </div>
70
+ </div>
71
+ </div>
72
+ </li>
73
+
74
+ <!-- Simple panel: single-column link list -->
75
+ <li data-slot="navigation-menu-item">
76
+ <button
77
+ class="ui-button"
78
+ data-slot="navigation-menu-trigger"
79
+ data-variant="ghost"
80
+ type="button"
81
+ popovertarget="nav-panel-2"
82
+ >
83
+ Resources
84
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
85
+ <rect width="256" height="256" fill="none" />
86
+ <polyline
87
+ points="208 96 128 176 48 96"
88
+ fill="none"
89
+ stroke="currentColor"
90
+ stroke-linecap="round"
91
+ stroke-linejoin="round"
92
+ stroke-width="16"
93
+ />
94
+ </svg>
95
+ </button>
96
+
97
+ <div
98
+ id="nav-panel-2"
99
+ data-slot="navigation-menu-popover"
100
+ data-align="start"
101
+ popover="auto"
102
+ data-animation="slide-down"
103
+ >
104
+ <div data-slot="navigation-menu-viewport">
105
+ <div class="flex flex-col gap-px p-xs">
106
+ <a href="#" data-slot="navigation-menu-link">
107
+ <span class="text-sm font-strong">Documentation</span>
108
+ <span class="text-sm text-muted-foreground">Guides and API references.</span>
109
+ </a>
110
+ <a href="#" data-slot="navigation-menu-link">
111
+ <span class="text-sm font-strong">Blog</span>
112
+ <span class="text-sm text-muted-foreground"
113
+ >Product news and engineering notes.</span
114
+ >
115
+ </a>
116
+ <a href="#" data-slot="navigation-menu-link">
117
+ <span class="text-sm font-strong">Community</span>
118
+ <span class="text-sm text-muted-foreground"
119
+ >Join the conversation and get help.</span
120
+ >
121
+ </a>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </li>
126
+
127
+ <!-- Submenu panel — categories whose products fly out to the right -->
128
+ <li data-slot="navigation-menu-item">
129
+ <button
130
+ class="ui-button"
131
+ data-slot="navigation-menu-trigger"
132
+ data-variant="ghost"
133
+ type="button"
134
+ popovertarget="nav-panel-3"
135
+ >
136
+ Products
137
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
138
+ <rect width="256" height="256" fill="none" />
139
+ <polyline
140
+ points="208 96 128 176 48 96"
141
+ fill="none"
142
+ stroke="currentColor"
143
+ stroke-linecap="round"
144
+ stroke-linejoin="round"
145
+ stroke-width="16"
146
+ />
147
+ </svg>
148
+ </button>
149
+
150
+ <div
151
+ id="nav-panel-3"
152
+ data-slot="navigation-menu-popover"
153
+ popover="auto"
154
+ data-animation="slide-down"
155
+ >
156
+ <div data-slot="navigation-menu-viewport">
157
+ <div class="flex flex-col gap-px p-xs">
158
+ <!-- Category — opens its product list to the right -->
159
+ <div data-slot="navigation-menu-submenu">
160
+ <button
161
+ data-slot="navigation-menu-submenu-trigger"
162
+ type="button"
163
+ popovertarget="nav-submenu-1"
164
+ >
165
+ <span class="text-sm font-strong">Design</span>
166
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
167
+ <rect width="256" height="256" fill="none" />
168
+ <polyline
169
+ points="96 48 176 128 96 208"
170
+ fill="none"
171
+ stroke="currentColor"
172
+ stroke-linecap="round"
173
+ stroke-linejoin="round"
174
+ stroke-width="16"
175
+ />
176
+ </svg>
177
+ </button>
178
+
179
+ <div
180
+ id="nav-submenu-1"
181
+ data-slot="navigation-menu-popover"
182
+ data-variant="submenu"
183
+ popover="auto"
184
+ >
185
+ <div data-slot="navigation-menu-viewport">
186
+ <div class="flex flex-col gap-px p-xs">
187
+ <a href="#" data-slot="navigation-menu-link">
188
+ <span class="text-sm font-strong">Figma Kit</span>
189
+ <span class="text-sm text-muted-foreground"
190
+ >Variables, styles, and components.</span
191
+ >
192
+ </a>
193
+ <a href="#" data-slot="navigation-menu-link">
194
+ <span class="text-sm font-strong">Color Generator</span>
195
+ <span class="text-sm text-muted-foreground"
196
+ >OKLCH scales from a single brand hex.</span
197
+ >
198
+ </a>
199
+ <a href="#" data-slot="navigation-menu-link">
200
+ <span class="text-sm font-strong">Type Scale</span>
201
+ <span class="text-sm text-muted-foreground"
202
+ >Fluid sizes tuned with Utopia.</span
203
+ >
204
+ </a>
205
+ <a href="#" data-slot="navigation-menu-link">
206
+ <span class="text-sm font-strong">Icon Set</span>
207
+ <span class="text-sm text-muted-foreground"
208
+ >A consistent, lightweight icon library.</span
209
+ >
210
+ </a>
211
+ </div>
212
+ </div>
213
+ </div>
214
+ </div>
215
+
216
+ <!-- Category — opens its product list to the right -->
217
+ <div data-slot="navigation-menu-submenu">
218
+ <button
219
+ data-slot="navigation-menu-submenu-trigger"
220
+ type="button"
221
+ popovertarget="nav-submenu-2"
222
+ >
223
+ <span class="text-sm font-strong">Development</span>
224
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
225
+ <rect width="256" height="256" fill="none" />
226
+ <polyline
227
+ points="96 48 176 128 96 208"
228
+ fill="none"
229
+ stroke="currentColor"
230
+ stroke-linecap="round"
231
+ stroke-linejoin="round"
232
+ stroke-width="16"
233
+ />
234
+ </svg>
235
+ </button>
236
+
237
+ <div
238
+ id="nav-submenu-2"
239
+ data-slot="navigation-menu-popover"
240
+ data-variant="submenu"
241
+ popover="auto"
242
+ >
243
+ <div data-slot="navigation-menu-viewport">
244
+ <div class="flex flex-col gap-px p-xs">
245
+ <a href="#" data-slot="navigation-menu-link">
246
+ <span class="text-sm font-strong">CLI</span>
247
+ <span class="text-sm text-muted-foreground"
248
+ >Scaffold and ship from the terminal.</span
249
+ >
250
+ </a>
251
+ <a href="#" data-slot="navigation-menu-link">
252
+ <span class="text-sm font-strong">React Components</span>
253
+ <span class="text-sm text-muted-foreground"
254
+ >Token-driven primitives for your app.</span
255
+ >
256
+ </a>
257
+ <a href="#" data-slot="navigation-menu-link">
258
+ <span class="text-sm font-strong">REST API</span>
259
+ <span class="text-sm text-muted-foreground"
260
+ >Programmatic access to your design data.</span
261
+ >
262
+ </a>
263
+ <a href="#" data-slot="navigation-menu-link">
264
+ <span class="text-sm font-strong">Webhooks</span>
265
+ <span class="text-sm text-muted-foreground"
266
+ >React to changes in real time.</span
267
+ >
268
+ </a>
269
+ </div>
270
+ </div>
271
+ </div>
272
+ </div>
273
+
274
+ <!-- Category — opens its product list to the right -->
275
+ <div data-slot="navigation-menu-submenu">
276
+ <button
277
+ data-slot="navigation-menu-submenu-trigger"
278
+ type="button"
279
+ popovertarget="nav-submenu-3"
280
+ >
281
+ <span class="text-sm font-strong">Content</span>
282
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
283
+ <rect width="256" height="256" fill="none" />
284
+ <polyline
285
+ points="96 48 176 128 96 208"
286
+ fill="none"
287
+ stroke="currentColor"
288
+ stroke-linecap="round"
289
+ stroke-linejoin="round"
290
+ stroke-width="16"
291
+ />
292
+ </svg>
293
+ </button>
294
+
295
+ <div
296
+ id="nav-submenu-3"
297
+ data-slot="navigation-menu-popover"
298
+ data-variant="submenu"
299
+ popover="auto"
300
+ >
301
+ <div data-slot="navigation-menu-viewport">
302
+ <div class="flex flex-col gap-px p-xs">
303
+ <a href="#" data-slot="navigation-menu-link">
304
+ <span class="text-sm font-strong">CMS</span>
305
+ <span class="text-sm text-muted-foreground"
306
+ >Structured content for any surface.</span
307
+ >
308
+ </a>
309
+ <a href="#" data-slot="navigation-menu-link">
310
+ <span class="text-sm font-strong">Localization</span>
311
+ <span class="text-sm text-muted-foreground"
312
+ >Ship in every language your users speak.</span
313
+ >
314
+ </a>
315
+ <a href="#" data-slot="navigation-menu-link">
316
+ <span class="text-sm font-strong">Media Library</span>
317
+ <span class="text-sm text-muted-foreground"
318
+ >Optimized assets, delivered fast.</span
319
+ >
320
+ </a>
321
+ </div>
322
+ </div>
323
+ </div>
324
+ </div>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ </li>
329
+
330
+ <li class="ml-auto mr-xs" data-slot="navigation-menu-item">
331
+ <!-- Form dialog START -->
332
+ <button
333
+ class="ui-button"
334
+ type="button"
335
+ data-variant="ghost"
336
+ command="show-modal"
337
+ commandfor="form-sign-in-1"
338
+ >
339
+ Sign in
340
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
341
+ <rect width="256" height="256" fill="none" />
342
+ <line
343
+ x1="24"
344
+ y1="128"
345
+ x2="136"
346
+ y2="128"
347
+ fill="none"
348
+ stroke="currentColor"
349
+ stroke-linecap="round"
350
+ stroke-linejoin="round"
351
+ stroke-width="16"
352
+ />
353
+ <polyline
354
+ points="96 88 136 128 96 168"
355
+ fill="none"
356
+ stroke="currentColor"
357
+ stroke-linecap="round"
358
+ stroke-linejoin="round"
359
+ stroke-width="16"
360
+ />
361
+ <polyline
362
+ points="136 40 200 40 200 216 136 216"
363
+ fill="none"
364
+ stroke="currentColor"
365
+ stroke-linecap="round"
366
+ stroke-linejoin="round"
367
+ stroke-width="16"
368
+ />
369
+ </svg>
370
+ </button>
371
+ <dialog id="form-sign-in-1" class="ui-dialog" closedby="any">
372
+ <form method="dialog" data-slot="dialog-content">
373
+ <header data-slot="dialog-header">
374
+ <h2 class="text-lg font-heading font-strong">Sign in</h2>
375
+ <p class="text-muted-foreground">Enter your email and password to sign in.</p>
376
+ </header>
377
+ <div class="flex flex-col gap-md" data-slot="dialog-body">
378
+ <fieldset class="ui-field-group">
379
+ <legend class="sr-only">Sign in</legend>
380
+ <div class="grid gap-xs">
381
+ <div class="ui-field">
382
+ <label data-slot="field-label" for="fd-email">Email</label>
383
+ <input
384
+ class="ui-input"
385
+ id="fd-email"
386
+ name="email"
387
+ type="email"
388
+ inputmode="email"
389
+ required
390
+ placeholder="you@example.com"
391
+ autocomplete="email"
392
+ aria-describedby="fd-email-hint"
393
+ />
394
+ <div data-slot="field-description">
395
+ <span data-slot="field-hint" id="fd-email-hint"
396
+ >We'll only use this to send receipts.</span
397
+ >
398
+ <span data-slot="field-error" role="alert"
399
+ >Please enter a valid email address.</span
400
+ >
401
+ </div>
402
+ </div>
403
+
404
+ <!-- Password START -->
405
+ <div class="ui-field">
406
+ <label data-slot="field-label" for="f-login-password">Password</label>
407
+ <ui-password>
408
+ <label class="ui-password-group">
409
+ <input
410
+ class="ui-input"
411
+ id="f-login-password"
412
+ name="password"
413
+ type="password"
414
+ autocomplete="new-password"
415
+ minlength="8"
416
+ required
417
+ placeholder="••••••••"
418
+ aria-describedby="f-login-password-hint f-login-password-warning"
419
+ />
420
+ <span data-slot="password-group-addon" data-align="inline-end">
421
+ <button
422
+ class="ui-button"
423
+ data-slot="password-group-toggle"
424
+ id="f-login-password-toggle"
425
+ data-variant="ghost"
426
+ data-size="icon-sm"
427
+ type="button"
428
+ aria-pressed="false"
429
+ aria-label="Show password"
430
+ aria-describedby="f-login-password-warning"
431
+ >
432
+ <svg
433
+ data-slot="password-group-icon password-group-icon-show"
434
+ xmlns="http://www.w3.org/2000/svg"
435
+ viewBox="0 0 256 256"
436
+ aria-hidden="true"
437
+ >
438
+ <rect width="256" height="256" fill="none" />
439
+ <path
440
+ d="M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z"
441
+ fill="none"
442
+ stroke="currentColor"
443
+ stroke-linecap="round"
444
+ stroke-linejoin="round"
445
+ stroke-width="16"
446
+ />
447
+ <circle
448
+ cx="128"
449
+ cy="128"
450
+ r="40"
451
+ fill="none"
452
+ stroke="currentColor"
453
+ stroke-linecap="round"
454
+ stroke-linejoin="round"
455
+ stroke-width="16"
456
+ />
457
+ </svg>
458
+ <svg
459
+ data-slot="password-group-icon password-group-icon-hide"
460
+ xmlns="http://www.w3.org/2000/svg"
461
+ viewBox="0 0 256 256"
462
+ aria-hidden="true"
463
+ >
464
+ <rect width="256" height="256" fill="none" />
465
+ <line
466
+ x1="48"
467
+ y1="40"
468
+ x2="208"
469
+ y2="216"
470
+ fill="none"
471
+ stroke="currentColor"
472
+ stroke-linecap="round"
473
+ stroke-linejoin="round"
474
+ stroke-width="16"
475
+ />
476
+ <path
477
+ d="M154.9,157.6A40,40,0,0,1,101,98.4"
478
+ fill="none"
479
+ stroke="currentColor"
480
+ stroke-linecap="round"
481
+ stroke-linejoin="round"
482
+ stroke-width="16"
483
+ />
484
+ <path
485
+ d="M73.8,69.7C33.6,90.6,16,128,16,128s32,72,112,72a118.1,118.1,0,0,0,54.1-12.8"
486
+ fill="none"
487
+ stroke="currentColor"
488
+ stroke-linecap="round"
489
+ stroke-linejoin="round"
490
+ stroke-width="16"
491
+ />
492
+ <path
493
+ d="M208.6,169.1C229.8,149.1,240,128,240,128S208,56,128,56a126,126,0,0,0-20.5,1.6"
494
+ fill="none"
495
+ stroke="currentColor"
496
+ stroke-linecap="round"
497
+ stroke-linejoin="round"
498
+ stroke-width="16"
499
+ />
500
+ </svg>
501
+ </button>
502
+ </span>
503
+ </label>
504
+ </ui-password>
505
+ <div data-slot="field-description">
506
+ <span data-slot="field-error" role="alert">Incorrect email or password.</span>
507
+ </div>
508
+ <span class="sr-only" id="f-login-password-warning"
509
+ >Warning: showing the password makes it visible to anyone near your
510
+ screen.</span
511
+ >
512
+ </div>
513
+ <!-- Password END -->
514
+ </div>
515
+ </fieldset>
516
+ </div>
517
+ <footer data-slot="dialog-footer">
518
+ <button
519
+ class="ui-button"
520
+ type="button"
521
+ value="cancel"
522
+ commandfor="form-sign-in-1"
523
+ command="close"
524
+ >
525
+ Cancel
526
+ </button>
527
+ <button class="ui-button" data-variant="primary" type="submit" value="save">
528
+ Sign in
529
+ </button>
530
+ </footer>
531
+ </form>
532
+ <button
533
+ class="ui-button"
534
+ data-slot="dialog-close"
535
+ data-size="icon"
536
+ data-variant="ghost"
537
+ type="button"
538
+ commandfor="form-sign-in-1"
539
+ command="close"
540
+ aria-label="Close dialog"
541
+ >
542
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
543
+ <rect width="256" height="256" fill="none" />
544
+ <line
545
+ x1="200"
546
+ y1="56"
547
+ x2="56"
548
+ y2="200"
549
+ stroke="currentColor"
550
+ stroke-linecap="round"
551
+ stroke-linejoin="round"
552
+ stroke-width="16"
553
+ />
554
+ <line
555
+ x1="200"
556
+ y1="200"
557
+ x2="56"
558
+ y2="56"
559
+ stroke="currentColor"
560
+ stroke-linecap="round"
561
+ stroke-linejoin="round"
562
+ stroke-width="16"
563
+ />
564
+ </svg>
565
+ </button>
566
+ </dialog>
567
+ <!-- Form dialog END -->
568
+ </li>
569
+
570
+ <!-- Plain CTA — no popover -->
571
+ <li data-slot="navigation-menu-item">
572
+ <a href="#" class="ui-button" data-variant="primary">Get started</a>
573
+ </li>
574
+ </menu>
575
+ </nav>
576
+ </header>