@zazz-ui/core 0.4.1 → 0.5.1

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 +345 -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 +43 -39
  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 +61 -31
  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 +145 -122
  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 +88 -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 +297 -186
  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 +76 -26
  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
@@ -15,9 +15,12 @@
15
15
  * restructured, so forms, focus, and progressive enhancement stay untouched.
16
16
  * Groups and empty states hide with CSS `:has()`, not code.
17
17
  *
18
- * Item facts come from the markup: the match/commit text is `data-value`
19
- * (falling back to text content) and `data-keywords` adds extra match
20
- * targets. `data-sort="score"` on the root re-ranks visually via `order`.
18
+ * Item facts come from the markup: the match/commit text is `data-<prefix>-value`
19
+ * (falling back to text content) and `data-<prefix>-keywords` adds extra match
20
+ * targets. `data-<prefix>-sort="score"` on the root re-ranks visually via `order`;
21
+ * `data-<prefix>-filter="none"` leaves filtering to another source (a search
22
+ * index) and only navigates, highlights, and announces. Items added to or
23
+ * removed from the list after the query are ranked like typed input.
21
24
  */
22
25
 
23
26
  import { commandScore } from "./command-score.ts";
@@ -28,9 +31,9 @@ import { effect, state } from "./signals.ts";
28
31
 
29
32
  /** What the ranker needs to know about one item. */
30
33
  interface ItemFacts {
31
- /** The text scored and committed: `data-value` ?? trimmed text content. */
34
+ /** The text scored and committed: `data-<prefix>-value` ?? trimmed text content. */
32
35
  value: string;
33
- /** Extra match targets from `data-keywords`. */
36
+ /** Extra match targets from `data-<prefix>-keywords`. */
34
37
  keywords: string[];
35
38
  }
36
39
 
@@ -97,6 +100,16 @@ let typeaheadIdCounter = 0;
97
100
  abstract class TypeaheadElement extends ZazzElement {
98
101
  /** Slot prefix: `"autocomplete"` finds `autocomplete-panel`, `-list`, `-item`. */
99
102
  protected abstract readonly slotPrefix: string;
103
+
104
+ /** @description Selector for a part: `data-<prefix>-slot~="<name>"`. */
105
+ protected partSelector(name: string): string {
106
+ return `[data-${this.slotPrefix}-slot~="${name}"]`;
107
+ }
108
+
109
+ /** @description A root config attribute: `data-<prefix>-<key>`. */
110
+ protected config(key: string): string | null {
111
+ return this.getAttribute(`data-${this.slotPrefix}-${key}`);
112
+ }
100
113
  /** Whether this element opens/closes its own `popover="manual"` panel. */
101
114
  protected readonly managesPanel: boolean = true;
102
115
  /**
@@ -107,10 +120,24 @@ abstract class TypeaheadElement extends ZazzElement {
107
120
  protected readonly openOnFocus: boolean = true;
108
121
  /** Whether ranking also re-orders visually via inline `order`. */
109
122
  protected get sortByScore(): boolean {
110
- return this.getAttribute("data-sort") === "score";
123
+ return this.config("sort") === "score";
111
124
  }
112
125
  /** Whether filtering auto-highlights the best item (command palettes do). */
113
126
  protected readonly autoHighlight: boolean = false;
127
+ /**
128
+ * @description Whether the engine filters and scores the items itself.
129
+ * `data-<prefix>-filter="none"` opts out for a list another source already
130
+ * filtered (a search index, a server): every item stays visible in document
131
+ * order, and keyboard navigation, highlight, and ARIA still run.
132
+ */
133
+ protected get filtersItems(): boolean {
134
+ return this.config("filter") !== "none";
135
+ }
136
+
137
+ /** @description Whether visible items are re-ordered by score (never for an unfiltered list). */
138
+ protected get ordersByScore(): boolean {
139
+ return this.sortByScore && this.filtersItems;
140
+ }
114
141
 
115
142
  /**
116
143
  * Applies a committed item: fill the input, sync a value, activate.
@@ -126,23 +153,43 @@ abstract class TypeaheadElement extends ZazzElement {
126
153
  protected readonly query = state("");
127
154
  protected readonly open = state(false);
128
155
  protected readonly activeIndex = state(-1);
156
+ /** Bumped when items are added or removed, so the ranking effect re-runs. */
157
+ protected readonly itemsVersion = state(0);
129
158
 
130
159
  protected setup(signal: AbortSignal): void {
131
160
  const prefix = this.slotPrefix;
132
- const panel = this.querySelector(`[data-slot~="${prefix}-panel"]`);
161
+ const panel = this.querySelector(this.partSelector("panel"));
133
162
  const input =
134
163
  this.querySelector<HTMLInputElement>('input[role="combobox"]') ??
135
- this.querySelector<HTMLInputElement>(`[data-slot~="${prefix}-input"]`);
164
+ this.querySelector<HTMLInputElement>(this.partSelector("input"));
136
165
  if (!(panel instanceof HTMLElement) || !(input instanceof HTMLInputElement)) return;
137
166
  this.panel = panel;
138
167
  this.searchInput = input;
139
168
 
140
- const list = panel.querySelector(`[data-slot~="${prefix}-list"]`);
169
+ const list = panel.querySelector(this.partSelector("list"));
141
170
  if (list instanceof HTMLElement) {
142
171
  list.id ||= `ui-${prefix}-list-${++typeaheadIdCounter}`;
143
172
  input.setAttribute("aria-controls", list.id);
144
173
  }
145
174
 
175
+ // Items that arrive or leave after the query (an async result source) are
176
+ // ranked like typed input: re-run the output effect and, for a palette,
177
+ // highlight the new best match. Only an added or removed *item* counts: a
178
+ // text swap inside an item or a result counter next to the list must not
179
+ // reset the highlight. The effect's own writes are attributes, so it never
180
+ // observes itself.
181
+ const itemSelector = this.partSelector("item");
182
+ const touchesItem = (node: Node): boolean =>
183
+ node instanceof Element &&
184
+ (node.matches(itemSelector) || node.querySelector(itemSelector) !== null);
185
+ const itemsObserver = new MutationObserver((records) => {
186
+ if (!records.some((r) => [...r.addedNodes, ...r.removedNodes].some(touchesItem))) return;
187
+ this.itemsVersion.set(this.itemsVersion.get() + 1);
188
+ if (this.autoHighlight) this.activeIndex.set(0);
189
+ });
190
+ itemsObserver.observe(list ?? panel, { childList: true, subtree: true });
191
+ signal.addEventListener("abort", () => itemsObserver.disconnect(), { once: true });
192
+
146
193
  // Input adapters: DOM events only write signals
147
194
  input.addEventListener(
148
195
  "input",
@@ -240,7 +287,7 @@ abstract class TypeaheadElement extends ZazzElement {
240
287
  (event) => {
241
288
  if (!(event.target instanceof Element)) return;
242
289
  if (event.target.closest("input, textarea, select, [contenteditable]")) return;
243
- if (!event.target.closest(`[data-slot~="${prefix}-list"]`)) return;
290
+ if (!event.target.closest(this.partSelector("list"))) return;
244
291
  event.preventDefault();
245
292
  },
246
293
  { signal },
@@ -252,7 +299,7 @@ abstract class TypeaheadElement extends ZazzElement {
252
299
  "click",
253
300
  (event) => {
254
301
  if (!(event.target instanceof Element)) return;
255
- const item = event.target.closest<HTMLElement>(`[data-slot~="${prefix}-item"]`);
302
+ const item = event.target.closest<HTMLElement>(this.partSelector("item"));
256
303
  if (item && !item.hidden) this.commit(item, "pointer");
257
304
  },
258
305
  { signal },
@@ -306,7 +353,7 @@ abstract class TypeaheadElement extends ZazzElement {
306
353
  }
307
354
 
308
355
  const { items, ranked, visible } = this.#rank(query);
309
- const sort = this.sortByScore;
356
+ const sort = this.ordersByScore;
310
357
  for (const verdict of ranked) {
311
358
  const item = items[verdict.index];
312
359
  item.hidden = verdict.hidden;
@@ -316,8 +363,8 @@ abstract class TypeaheadElement extends ZazzElement {
316
363
 
317
364
  visible.forEach((item, index) => {
318
365
  item.id ||= `ui-${prefix}-item-${++typeaheadIdCounter}`;
319
- if (index === active) item.setAttribute("data-highlighted", "");
320
- else item.removeAttribute("data-highlighted");
366
+ if (index === active) item.setAttribute(`data-${this.slotPrefix}-state`, "highlighted");
367
+ else item.removeAttribute(`data-${this.slotPrefix}-state`);
321
368
  });
322
369
 
323
370
  const highlighted = active >= 0 ? visible[active] : undefined;
@@ -340,14 +387,14 @@ abstract class TypeaheadElement extends ZazzElement {
340
387
  protected items(): HTMLElement[] {
341
388
  const panel = this.panel;
342
389
  if (!panel) return [];
343
- return Array.from(panel.querySelectorAll(`[data-slot~="${this.slotPrefix}-item"]`)).filter(
390
+ return Array.from(panel.querySelectorAll<HTMLElement>(this.partSelector("item"))).filter(
344
391
  (node): node is HTMLElement => node instanceof HTMLElement,
345
392
  );
346
393
  }
347
394
 
348
395
  /**
349
396
  * @description The visible items in visual order: score order when
350
- * `data-sort="score"`, DOM order otherwise, so arrow keys always follow
397
+ * `data-<prefix>-sort="score"`, DOM order otherwise, so arrow keys always follow
351
398
  * what the user sees.
352
399
  *
353
400
  * @param items - All items, DOM order.
@@ -359,7 +406,7 @@ abstract class TypeaheadElement extends ZazzElement {
359
406
  ranked: readonly RankedItem[],
360
407
  ): HTMLElement[] {
361
408
  const visible = ranked.filter((verdict) => !verdict.hidden);
362
- if (this.sortByScore) visible.sort((a, b) => b.score - a.score || a.index - b.index);
409
+ if (this.ordersByScore) visible.sort((a, b) => b.score - a.score || a.index - b.index);
363
410
  return visible.map((verdict) => items[verdict.index]);
364
411
  }
365
412
 
@@ -379,12 +426,15 @@ abstract class TypeaheadElement extends ZazzElement {
379
426
  ranked: RankedItem[];
380
427
  visible: HTMLElement[];
381
428
  } {
429
+ this.itemsVersion.get();
382
430
  const items = this.items();
383
431
  const ranked = rankItems(
384
- query,
432
+ this.filtersItems ? query : "",
385
433
  items.map((item) => ({
386
434
  value: this.itemValue(item),
387
- keywords: (item.getAttribute("data-keywords") ?? "").split(/\s+/).filter(Boolean),
435
+ keywords: (item.getAttribute(`data-${this.slotPrefix}-keywords`) ?? "")
436
+ .split(/\s+/)
437
+ .filter(Boolean),
388
438
  })),
389
439
  );
390
440
  return { items, ranked, visible: this.visibleItems(items, ranked) };
@@ -396,10 +446,10 @@ abstract class TypeaheadElement extends ZazzElement {
396
446
  * value ("Go to docs ⇧⌘D" matches and announces as "Go to docs").
397
447
  *
398
448
  * @param item - The item element.
399
- * @returns `data-value` when present, trimmed hint-free text otherwise.
449
+ * @returns `data-<prefix>-value` when present, trimmed hint-free text otherwise.
400
450
  */
401
451
  protected itemValue(item: HTMLElement): string {
402
- const explicit = item.getAttribute("data-value");
452
+ const explicit = item.getAttribute(`data-${this.slotPrefix}-value`);
403
453
  if (explicit !== null) return explicit;
404
454
  if (!item.querySelector("kbd, ui-kbd-group")) return item.textContent?.trim() ?? "";
405
455
  const clone = item.cloneNode(true) as HTMLElement;
@@ -420,13 +470,13 @@ abstract class TypeaheadElement extends ZazzElement {
420
470
  }
421
471
 
422
472
  /**
423
- * @description Minimum query length before the panel opens (`data-min-length`).
473
+ * @description Minimum query length before the panel opens (`data-<prefix>-min-length`).
424
474
  *
425
475
  * @returns The threshold, 0 by default.
426
476
  * @private
427
477
  */
428
478
  #minLength(): number {
429
- const raw = Number(this.getAttribute("data-min-length"));
479
+ const raw = Number(this.config("min-length"));
430
480
  return Number.isFinite(raw) && raw > 0 ? raw : 0;
431
481
  }
432
482
 
@@ -0,0 +1,188 @@
1
+ /**
2
+ * @fileoverview The utility table: the single source the utilities generator,
3
+ * the editor custom data, and `<ui-debug>` read. Data only — no imports, no
4
+ * CSS text.
5
+ */
6
+ /** Breakpoints, ascending: Tailwind's five names. */
7
+ export declare const BREAKPOINTS: readonly ["sm", "md", "lg", "xl", "2xl"];
8
+ export type Breakpoint = (typeof BREAKPOINTS)[number];
9
+ /**
10
+ * Breakpoint thresholds, in `ch` of the nearest inline-size container's font,
11
+ * chosen for legibility: each answers "what text layout fits here?". sm: the
12
+ * narrowest comfortable line; md: one full reading measure (`--article-md`);
13
+ * lg: two 45ch columns; xl: three 40ch columns; 2xl: two full 75ch measures.
14
+ * ≈ 404 / 656 / 909 / 1210 / 1515px with the system font at 16px.
15
+ */
16
+ export declare const BREAKPOINT_CH: Record<Breakpoint, number>;
17
+ /**
18
+ * Layout band and component widths (`--layout-*`), in rem for predictable
19
+ * geometry: Tailwind's scale. Decoupled from the query thresholds above.
20
+ */
21
+ export declare const LAYOUT_REM: Record<Breakpoint, number>;
22
+ /** Interaction states, highest precedence first. */
23
+ export declare const STATES: readonly ["starting", "disabled", "active", "focus-visible", "focus-within", "hover", "checked", "current", "open", "stuck"];
24
+ export type State = (typeof STATES)[number];
25
+ /**
26
+ * How each state is selected: a pseudo-class (or `:is()` list) on the element,
27
+ * with an optional media guard; for `stuck`, the nearest sticky scroll-state
28
+ * container (see `STUCK_STATE`); for `starting`, the element's
29
+ * `@starting-style` (the style it transitions from when it first renders or
30
+ * leaves `display: none`). Pseudo states have a `--group-*` form; the stuck
31
+ * and starting states do not (the trigger is the container, or the element's
32
+ * own first style).
33
+ */
34
+ export declare const STATE_SELECTORS: Record<State, {
35
+ pseudo: string;
36
+ media?: string;
37
+ stuck?: true;
38
+ starting?: true;
39
+ }>;
40
+ /**
41
+ * The experimental `stuck` state: `scroll-state(stuck: <side>)` where container
42
+ * scroll-state queries are supported, `base/scroll-state.ts` elsewhere. Any
43
+ * sticky element (a `style` holding `: sticky`, so `--position: sticky`, its
44
+ * tiers, or raw `position: sticky`) or one that sets `--stuck-state` becomes
45
+ * the container; a container query never matches the container itself, so
46
+ * `--<utility>--stuck` applies to its *descendants* while it is stuck to the
47
+ * side its `--stuck-state` names (`fallback` when unset). `--stuck-state` has
48
+ * no emission or tiers of its own: switch `--position` off at a breakpoint to
49
+ * drop the state there.
50
+ */
51
+ export declare const STUCK_STATE: {
52
+ readonly modifier: "stuck-state";
53
+ readonly supports: "(container-type: scroll-state)";
54
+ /** Where unsupported, `base/scroll-state.ts` writes the stuck sides here, on the container. */
55
+ readonly polyfill: "data-ui-stuck";
56
+ readonly fallback: "top";
57
+ /** Sticky elements: `--position: sticky`, its tiers, or raw `position: sticky`. */
58
+ readonly sticky: '[style*=": sticky"]';
59
+ readonly sides: readonly ["top", "right", "bottom", "left", "block-start", "block-end", "inline-start", "inline-end"];
60
+ };
61
+ /** True when `--group-<utility>--<state>` exists for the state. */
62
+ export declare function hasGroup(state: State): boolean;
63
+ export declare function isState(tier: string): tier is State;
64
+ /** How a utility's value is read. */
65
+ export type Mode = "dual" | "raw" | "keyword" | "integer";
66
+ /** Utility families; each family has one tier kind. */
67
+ export type Family = "flow" | "grid" | "spacing" | "margin" | "sizing" | "typography" | "color" | "effects" | "box";
68
+ /** A family's tiers: breakpoints, states, both (paint that also changes per breakpoint), or none. */
69
+ export type Tiers = "breakpoints" | "states" | "both" | "none";
70
+ export declare const FAMILY_TIERS: Record<Family, Tiers>;
71
+ export interface Utility {
72
+ /** The name after `--` (`w`, `grid-cols`). */
73
+ name: string;
74
+ /** CSS properties the utility emits (several for `--size`). */
75
+ properties: readonly string[];
76
+ mode: Mode;
77
+ family: Family;
78
+ /**
79
+ * Special emission shapes: `repeat` wraps an integer in
80
+ * `repeat(n, minmax(0, 1fr))`; `span` writes `span n / span n`; `grid-fit` packs auto-fit columns;
81
+ * `line-clamp` adds the -webkit-box companions; `bg` is a relative oklch
82
+ * with `--bg-alpha`; `none` feeds a composite (`box-shadow`) and emits nothing itself;
83
+ * `border` is a border shorthand: it sorts a color, number, or length into
84
+ * width and color channels, and the side rules emit them.
85
+ */
86
+ emit?: "plain" | "repeat" | "span" | "grid-fit" | "line-clamp" | "bg" | "none" | "border";
87
+ /** Overrides the family's tier kind (`none` for a utility that is base-only). */
88
+ tiers?: Tiers;
89
+ /**
90
+ * The `border` emission's width and color channels (`--_<name>-w`, `--_<name>-c`)
91
+ * inherit, for a switch that draws them on the element's children (`--divide`).
92
+ */
93
+ inherits?: true;
94
+ /**
95
+ * No-base allowlist: the CSS initial value as a literal. A utility with
96
+ * `noBase` applies a tier on a plain element without a base value.
97
+ */
98
+ noBase?: string;
99
+ /**
100
+ * Extra selectors excluded from the no-base rule: elements whose
101
+ * placement chain a primitive owns, e.g. a layout's children for `--band`.
102
+ */
103
+ noBaseExclude?: readonly string[];
104
+ /**
105
+ * Keywords the typed emission (the dual pair, or an integer's `repeat()`)
106
+ * cannot carry. A utility written with one of its keywords, at the base or
107
+ * any tier, switches to its raw emission at every tier; its other values on
108
+ * that element must then be valid as written (a length, not a scale number).
109
+ * Other utilities on the element are unaffected.
110
+ */
111
+ keywords?: readonly string[];
112
+ /**
113
+ * The utility also exists as `--before-<name>` / `--after-<name>`,
114
+ * read on the pseudo-element with an exact gate. Pseudo utilities are never
115
+ * registered, because `::before` must inherit them from its host.
116
+ */
117
+ pseudo?: true;
118
+ /**
119
+ * Keyword shorthands: `--shadow: md` reads as `--shadow: var(--shadow-md)`.
120
+ * Each is an exact-value rule at the base and at every tier of the family, so
121
+ * it works in `--shadow--hover: lg` too; any other value passes through as
122
+ * usual. A keyword that is a prefix of another must come first.
123
+ */
124
+ aliases?: Readonly<Record<string, string>>;
125
+ }
126
+ /** Gradient types: `--bg-<type>` emits `<type>-gradient(<prelude>, <--bg-stops>)`. */
127
+ export declare const GRADIENT_TYPES: readonly ["linear", "radial", "conic"];
128
+ /** The size scale shared by the token keywords (`--shadow: md`). */
129
+ export declare const SIZE_KEYWORDS: readonly ["2xs", "xs", "sm", "md", "lg", "xl", "2xl"];
130
+ /** Standard weight names and the number to write instead (`normal` and `bold` are CSS). */
131
+ export declare const FONT_WEIGHT_NAMES: Readonly<Record<string, number>>;
132
+ /**
133
+ * `--display` shorthands that set the flex direction with the display (there
134
+ * is no `--flex-direction` utility): `[display, flex-direction]`. Plain `flex`
135
+ * or `inline-flex` at a tier resets the direction to row. A keyword that is a
136
+ * prefix of another comes first.
137
+ */
138
+ export declare const DISPLAY_SHORTHANDS: Readonly<Record<string, readonly [string, string]>>;
139
+ /** The border shorthands, all sides first. */
140
+ export declare const BORDER_SHORTHANDS: readonly ["border", "border-x", "border-y", "border-l", "border-t", "border-r", "border-b"];
141
+ /**
142
+ * Each physical side of the border shorthand, the logical property prefix it
143
+ * sets, and the shorthands that cover it, most specific first.
144
+ */
145
+ export declare const BORDER_SIDES: readonly [{
146
+ readonly side: "l";
147
+ readonly property: "border-inline-start";
148
+ readonly shorthands: readonly ["border-l", "border-x", "border"];
149
+ }, {
150
+ readonly side: "t";
151
+ readonly property: "border-block-start";
152
+ readonly shorthands: readonly ["border-t", "border-y", "border"];
153
+ }, {
154
+ readonly side: "r";
155
+ readonly property: "border-inline-end";
156
+ readonly shorthands: readonly ["border-r", "border-x", "border"];
157
+ }, {
158
+ readonly side: "b";
159
+ readonly property: "border-block-end";
160
+ readonly shorthands: readonly ["border-b", "border-y", "border"];
161
+ }];
162
+ /** The four sizing keywords. Margin takes only `auto`. */
163
+ export declare const SIZING_KEYWORDS: readonly ["auto", "fit-content", "min-content", "max-content"];
164
+ export declare const MARGIN_KEYWORDS: readonly ["auto"];
165
+ /**
166
+ * Track-list keywords `--grid-cols` / `--grid-rows` take besides a count. `none`
167
+ * is not one: `--template-cols: none` says the same, and every keyword
168
+ * costs a rule per breakpoint (SPEC claim 16).
169
+ */
170
+ export declare const GRID_TEMPLATE_KEYWORDS: readonly ["subgrid"];
171
+ /** The utility table. Order within a family is emission order (shorthands first). */
172
+ export declare const UTILITIES: readonly Utility[];
173
+ /** Utilities that exist only on pseudo-elements. */
174
+ export declare const PSEUDO_ONLY: readonly Utility[];
175
+ export declare const PSEUDO_SIDES: readonly ["before", "after"];
176
+ export type PseudoSide = (typeof PSEUDO_SIDES)[number];
177
+ /** Tier names a utility's family allows, in setter order. */
178
+ export declare function tiersOf(utility: Utility): readonly string[];
179
+ /** A utility property name, split into its parts. */
180
+ export interface UtilityName {
181
+ name: string;
182
+ tier?: string;
183
+ side?: string;
184
+ group?: true;
185
+ }
186
+ /** `--before-w--md` → { side: "before", name: "w", tier: "md" }; `--group-bg--hover` sets `group`. */
187
+ export declare function parseUtilityName(raw: string): UtilityName;
188
+ //# sourceMappingURL=utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["utilities.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,qDAAqD;AACrD,eAAO,MAAM,WAAW,YAAI,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAU,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAMpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAMjD,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,MAAM,YACjB,UAAU,EACV,UAAU,EACV,QAAQ,EACR,eAAe,EAC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