@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,19 +1,19 @@
1
1
  /**
2
- * combobox.css: Combobox (ui-combobox | .ui-combobox, [data-slot~="combobox-control"])
2
+ * combobox.css: Combobox (ui-combobox | [data-ui~="combobox"], [data-combobox-slot~="control"])
3
3
  *
4
4
  * @layer variables, components
5
- * @requires layers.css, _variables.css, popover.css, button.css, fields.css,
6
- * badge.css (--ui-badge-* for the default tag template .ui-badge),
5
+ * @requires _layers.css, _variables.css, popover.css, button.css, fields.css,
6
+ * badge.css (--ui-badge-* for the default tag template [data-ui~="badge"]),
7
7
  * select.css (--ui-option-*, --ui-select-picker-icon-*)
8
- * @uses [popover="manual"]: panel opened/closed by combobox.js
8
+ * @uses [popover="manual"]: panel opened/closed by combobox.ts
9
9
  * @uses anchor-name, anchor-scope, position-anchor: tether panel to the control
10
- * @uses anchor-size(width): match panel width to the control (@supports gated)
10
+ * @uses anchor-size(width): match panel width to the control (Baseline 2026)
11
11
  * @uses :has(): chevron rotation, group + empty-state visibility
12
12
  * @uses mask: chevron and tag-remove icons; wiped in forced-colors mode,
13
13
  * matching the rest of the kit (option checkmark, picker icon)
14
- * @uses data-side / data-align: maps to --ui-popover-position-* in popover.css
15
- * @uses data-variant="multiselect": tag variant; combobox.js clones a
16
- * <template data-slot="combobox-tag-template"> (or its muted-badge
14
+ * @uses data-popover-side / data-popover-align: maps to --ui-popover-position-* in popover.css
15
+ * @uses data-combobox-variant="multiselect": tag variant; combobox.ts clones a
16
+ * <template data-combobox-slot="tag-template"> (or its muted-badge
17
17
  * default) per option carrying aria-selected="true". Tag rules key
18
18
  * off the slots, so a custom template keeps this styling.
19
19
  * @tokens --ui-combobox-* (@layer variables); control mirrors --ui-select-*,
@@ -23,125 +23,145 @@
23
23
 
24
24
  @layer variables {
25
25
  :root {
26
- /* Control mirrors the select trigger so the two pickers read as one family */
26
+ /* control mirrors the select trigger */
27
27
  --ui-combobox-option-gap: var(--ui-field-option-gap);
28
- --ui-combobox-inline-size: var(--ui-select-inline-size);
29
- --ui-combobox-min-inline-size: var(--ui-select-min-inline-size);
30
- --ui-combobox-padding-inline-start: var(--ui-select-padding-inline-start);
31
- --ui-combobox-padding-inline-end: var(--ui-select-padding-inline-end);
28
+ --ui-combobox-w: var(--ui-select-w);
29
+ --ui-combobox-min-w: var(--ui-select-min-w);
30
+ --ui-combobox-pl: var(--ui-select-pl);
31
+ --ui-combobox-pr: var(--ui-select-pr);
32
32
  --ui-combobox-border-width: var(--ui-select-border-width);
33
33
  --ui-combobox-border-style: var(--ui-select-border-style);
34
34
  --ui-combobox-border-color: var(--ui-select-border-color);
35
- --ui-combobox-radius: var(--ui-select-radius);
35
+ --ui-combobox-rounded: var(--ui-select-rounded);
36
36
  --ui-combobox-icon-mask: var(--ui-select-picker-icon-mask);
37
37
  --ui-combobox-icon-size: var(--ui-select-picker-icon-size);
38
38
  --ui-combobox-icon-color: var(--ui-select-picker-icon-color);
39
- --ui-combobox-panel-max-block-size: var(--step-72);
39
+ --ui-combobox-panel-max-h: calc(var(--spacing) * 72);
40
40
  --ui-combobox-shadow: var(--ui-menu-shadow);
41
41
 
42
42
  /* Control box: the multiselect variant swaps these to wrap into rows */
43
- --ui-combobox-control-align-items: center;
43
+ --ui-combobox-control-items: center;
44
44
  --ui-combobox-control-flex-wrap: nowrap;
45
45
  --ui-combobox-control-gap: var(--ui-field-gap);
46
- --ui-combobox-control-block-size: var(--ui-field-block-size);
47
- --ui-combobox-control-min-block-size: auto;
48
- --ui-combobox-control-padding-block: 0;
49
- --ui-combobox-input-min-inline-size: 0;
50
- --ui-combobox-input-min-block-size: auto;
51
-
52
- /* Selection tags (data-variant="multiselect")
53
- ** Remove icon re-declared here: the identical --search-cancel-mask lives
54
- ** inside ::-webkit-search-cancel-button in _reset.css, out of reach.
55
- ** @see https://www.svgbackgrounds.com/tools/svg-to-css/
56
- ** Set to Legacy / URL Wrapper to update icon */
57
- --ui-combobox-tag-gap: var(--step-1);
58
- --ui-combobox-tag-padding-block: var(--step-1);
59
- --ui-combobox-tag-max-inline-size: 100%;
46
+ --ui-combobox-control-h: var(--ui-field-h);
47
+ --ui-combobox-control-min-h: auto;
48
+ --ui-combobox-control-py: 0;
49
+ --ui-combobox-input-min-w: 0;
50
+ --ui-combobox-input-min-h: auto;
51
+
52
+ /* selection tags (multiselect). The remove icon is re-declared: the identical
53
+ --search-cancel-mask sits inside ::-webkit-search-cancel-button in
54
+ _reset.css, out of reach. */
55
+ --ui-combobox-tag-gap: var(--spacing);
56
+ --ui-combobox-tag-py: var(--spacing);
57
+ --ui-combobox-tag-max-w: 100%;
60
58
  --ui-combobox-tag-remove-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cline x1='200' y1='56' x2='56' y2='200' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cline x1='200' y1='200' x2='56' y2='56' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E");
61
59
  --ui-combobox-tag-remove-size: var(--ui-badge-icon-size);
62
60
  --ui-combobox-tag-remove-color: currentColor;
63
- --ui-combobox-tag-remove-radius: var(--radius-sm);
61
+ --ui-combobox-tag-remove-rounded: var(--radius-sm);
64
62
  --ui-combobox-tag-remove-opacity: 0.65;
65
63
  --ui-combobox-tag-remove-opacity--hover: 1;
66
64
  }
67
65
  }
68
66
 
69
- @layer zazz.components {
67
+ @layer ui.components {
70
68
  /* ===========================================================================
71
69
  COMBOBOX: select-look control + anchored filterable panel
72
- - The control shell carries the field surface (border, ring, chevron); the
73
- inner input is bare so nothing double-borders. The panel rides
74
- popover.css's surface + placement like autocomplete's.
70
+ - The control shell carries the field surface; the inner input is bare so
71
+ nothing double-borders. The panel rides popover.css like autocomplete's.
75
72
  =========================================================================== */
76
73
 
77
- :where(ui-combobox, .ui-combobox) {
74
+ :where(ui-combobox, [data-ui~="combobox"]) {
78
75
  anchor-scope: --ui-combobox-trigger;
79
76
  display: flex;
80
77
  flex-direction: column;
81
- gap: var(--step-px);
82
- inline-size: var(--ui-combobox-inline-size);
78
+ gap: 1px;
79
+ inline-size: var(--ui-combobox-w);
83
80
  }
84
81
 
85
- [data-slot~="combobox-control"] {
82
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="control"] {
86
83
  anchor-name: --ui-combobox-trigger;
87
84
  display: flex;
88
- flex-wrap: var(--ui-combobox-control-flex-wrap);
89
- align-items: var(--ui-combobox-control-align-items);
90
- gap: var(--ui-combobox-control-gap);
91
-
92
- inline-size: 100%;
93
- min-inline-size: var(--ui-combobox-min-inline-size);
94
- block-size: var(--ui-combobox-control-block-size);
95
- min-block-size: var(--ui-combobox-control-min-block-size);
96
- padding-block: var(--ui-combobox-control-padding-block);
97
- padding-inline: var(--ui-combobox-padding-inline-start) var(--ui-combobox-padding-inline-end);
98
-
99
- font-size: var(--ui-field-font-size);
100
- line-height: var(--ui-field-line-height);
101
- color: var(--ui-field-foreground);
102
- background-color: var(--ui-field-background);
103
-
104
- border: var(--ui-combobox-border-width) var(--ui-combobox-border-style)
105
- var(--ui-combobox-border-color);
106
- border-radius: var(--ui-combobox-radius);
107
-
108
- /* Same ring recipe as .ui-select: transparent outline twin keeps focus
85
+ flex-wrap: var(--_flex-wrap-resolved, var(--ui-combobox-control-flex-wrap));
86
+ align-items: var(--_items-resolved, var(--ui-combobox-control-items));
87
+ --_gap-len: var(--_gap-resolved, var(--ui-combobox-control-gap));
88
+ --_gap-num: var(--_gap-resolved, var(--ui-combobox-control-gap));
89
+ gap: calc(var(--_gap-len) + var(--_gap-num) * var(--spacing));
90
+
91
+ --_w-len: var(--_w-resolved, var(--ui-combobox-w));
92
+ --_w-num: var(--_w-resolved, var(--ui-combobox-w));
93
+ inline-size: calc(var(--_w-len) + var(--_w-num) * var(--spacing));
94
+ --_min-w-len: var(--_min-w-resolved, var(--ui-combobox-min-w));
95
+ --_min-w-num: var(--_min-w-resolved, var(--ui-combobox-min-w));
96
+ min-inline-size: calc(var(--_min-w-len) + var(--_min-w-num) * var(--spacing));
97
+ --_h-len: var(--_h-resolved, var(--ui-combobox-control-h));
98
+ --_h-num: var(--_h-resolved, var(--ui-combobox-control-h));
99
+ block-size: calc(var(--_h-len) + var(--_h-num) * var(--spacing));
100
+ --_min-h-len: var(--_min-h-resolved, var(--ui-combobox-control-min-h));
101
+ --_min-h-num: var(--_min-h-resolved, var(--ui-combobox-control-min-h));
102
+ min-block-size: calc(var(--_min-h-len) + var(--_min-h-num) * var(--spacing));
103
+ --_py-len: var(--_py-resolved, var(--ui-combobox-control-py));
104
+ --_py-num: var(--_py-resolved, var(--ui-combobox-control-py));
105
+ padding-block: calc(var(--_py-len) + var(--_py-num) * var(--spacing));
106
+ --_pl-len: var(--_pl-resolved, var(--ui-combobox-pl));
107
+ --_pl-num: var(--_pl-resolved, var(--ui-combobox-pl));
108
+ padding-inline-start: calc(var(--_pl-len) + var(--_pl-num) * var(--spacing));
109
+ --_pr-len: var(--_pr-resolved, var(--ui-combobox-pr));
110
+ --_pr-num: var(--_pr-resolved, var(--ui-combobox-pr));
111
+ padding-inline-end: calc(var(--_pr-len) + var(--_pr-num) * var(--spacing));
112
+
113
+ font-size: var(--_font-size-resolved, var(--ui-field-font-size));
114
+ line-height: var(--_leading-resolved, var(--ui-field-leading));
115
+ color: var(--_text-resolved, var(--ui-field-text));
116
+ background-color: var(--_bg-resolved, var(--ui-field-bg));
117
+
118
+ border-width: var(--_border-width-resolved, var(--ui-combobox-border-width));
119
+ border-style: var(--_border-style-resolved, var(--ui-combobox-border-style));
120
+ border-color: var(--_border-color-resolved, var(--ui-combobox-border-color));
121
+ border-radius: var(--_rounded-resolved, var(--ui-combobox-rounded));
122
+
123
+ /* Same ring recipe as [data-ui~="select"]: transparent outline twin keeps focus
109
124
  visible in forced-colors mode */
110
125
  --_ring-offset-width: 0px;
111
126
  --_ring-width: 0px;
112
- --_ring: color-mix(in oklch, var(--ui-field-ring-color) var(--ring-opacity), transparent);
113
- box-shadow:
114
- 0 0 0 var(--_ring-offset-width) var(--ring-offset-color),
115
- 0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width)) var(--_ring, var(--ring));
127
+ --_ring-fill: color-mix(in oklch, var(--ui-field-ring-color) var(--ring-opacity), transparent);
128
+ /* The ring is published to --_focus-ring so a --shadow utility keeps it */
129
+ --_focus-ring:
130
+ 0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
131
+ 0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width))
132
+ var(--_ring-fill, var(--ring-shadow-color));
133
+ box-shadow: var(--_focus-ring, 0 0 #0000), var(--_shadow-resolved, 0 0 #0000);
116
134
  outline: var(--outline-width) var(--outline-style) transparent;
117
135
  outline-offset: var(--outline-offset);
118
136
 
119
137
  transition: var(--default-transition);
120
138
  }
121
139
 
122
- [data-slot~="combobox-control"]:hover {
123
- border-color: var(--ui-field-border-color--hover);
140
+ @media (hover: hover) {
141
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="control"]:hover {
142
+ border-color: var(--ui-field-border-color--hover);
143
+ }
124
144
  }
125
145
 
126
- [data-slot~="combobox-control"]:focus-within {
127
- border-color: var(--ui-field-border-color--focus);
128
- background-color: var(--ui-field-background--focus);
146
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="control"]:focus-within {
147
+ border-color: var(--ui-field-border-color--focus-within);
148
+ background-color: var(--ui-field-bg--focus-within);
129
149
  --_ring-offset-width: var(--ring-offset-width);
130
150
  --_ring-width: var(--ring-width);
131
151
  outline-color: transparent;
132
152
  }
133
153
 
134
- [data-slot~="combobox-control"]:has(> [data-slot~="combobox-tag"]) {
135
- padding-inline-start: var(--step-1_5);
154
+ :where(ui-combobox, [data-ui~="combobox"])
155
+ [data-combobox-slot~="control"]:has(> [data-combobox-slot~="tag"]) {
156
+ padding-inline-start: calc(var(--spacing) * 1.5);
136
157
  }
137
158
 
138
- /* The inner input is bare: the shell owns the surface. It keeps a minimum
139
- width so the multiselect variant wraps it onto its own row instead of
140
- collapsing to nothing between the tags and the chevron. */
141
- [data-slot~="combobox-control"] input {
142
- flex: 1 1 var(--ui-combobox-input-min-inline-size);
143
- min-inline-size: var(--ui-combobox-input-min-inline-size);
144
- min-block-size: var(--ui-combobox-input-min-block-size);
159
+ /* The shell owns the surface. The minimum width makes the multiselect variant
160
+ wrap the input onto its own row instead of collapsing. */
161
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="control"] input {
162
+ flex: 1 1 var(--ui-combobox-input-min-w);
163
+ min-inline-size: var(--ui-combobox-input-min-w);
164
+ min-block-size: var(--ui-combobox-input-min-h);
145
165
  font: inherit;
146
166
  color: inherit;
147
167
  background: none;
@@ -149,7 +169,7 @@
149
169
  outline: none;
150
170
  }
151
171
 
152
- [data-slot~="combobox-trigger"] {
172
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="trigger"] {
153
173
  display: grid;
154
174
  place-items: center;
155
175
  inline-size: var(--ui-combobox-icon-size);
@@ -159,7 +179,7 @@
159
179
  margin-inline-start: auto;
160
180
  }
161
181
 
162
- [data-slot~="combobox-trigger"]::before {
182
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="trigger"]::before {
163
183
  content: "";
164
184
  inline-size: var(--ui-combobox-icon-size);
165
185
  block-size: var(--ui-combobox-icon-size);
@@ -168,35 +188,32 @@
168
188
  transition: var(--default-transition);
169
189
  }
170
190
 
171
- /* Panel: same shape as the autocomplete panel */
172
- [data-slot~="combobox-panel"] {
191
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="panel"] {
173
192
  position-anchor: --ui-combobox-trigger;
174
- /* flex-direction stays ungated so the close fade keeps the column layout */
193
+ /* ungated so the close fade keeps the column layout */
175
194
  flex-direction: column;
176
- max-block-size: var(--ui-combobox-panel-max-block-size);
195
+ max-block-size: var(--ui-combobox-panel-max-h);
177
196
  overflow: auto;
178
197
  box-shadow: var(--ui-combobox-shadow);
179
198
  }
180
199
 
181
- /* Only display is gated; see popover.css: closed popovers stay display: none */
182
- [data-slot~="combobox-panel"]:popover-open {
200
+ /* Only display is gated: closed popovers stay display: none */
201
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="panel"]:popover-open {
183
202
  display: flex;
184
203
  }
185
204
 
186
- /* Inline variant: no [popover]: the list renders in flow, always open,
187
- without the floating surface chrome (combobox.js treats it as such) */
188
- [data-slot~="combobox-panel"]:not([popover]) {
205
+ /* Inline variant (no [popover]): the list renders in flow, always open,
206
+ without the floating surface chrome */
207
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="panel"]:not([popover]) {
189
208
  display: flex;
190
209
  box-shadow: none;
191
210
  }
192
211
 
193
- @supports (inline-size: anchor-size(width)) {
194
- [data-slot~="combobox-panel"] {
195
- min-inline-size: anchor-size(width);
196
- }
212
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="panel"] {
213
+ min-inline-size: anchor-size(width);
197
214
  }
198
215
 
199
- [data-slot~="combobox-list"] {
216
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="list"] {
200
217
  display: flex;
201
218
  flex-direction: column;
202
219
  gap: var(--ui-combobox-option-gap);
@@ -205,28 +222,29 @@
205
222
  list-style: none;
206
223
  }
207
224
 
208
- [data-slot~="combobox-group"] {
225
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="group"] {
209
226
  display: flex;
210
227
  flex-direction: column;
211
228
  gap: var(--ui-combobox-option-gap);
212
229
  }
213
230
 
214
- /* Score ranking writes order -1000..0 on sibling items: keep the label first */
215
- [data-slot~="combobox-group-label"] {
231
+ /* score ranking writes order -1000..0 on items: keep the label first */
232
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="group-label"] {
216
233
  order: -1001;
217
234
  }
218
235
 
219
- [data-slot~="combobox-item"] {
236
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="item"] {
220
237
  cursor: pointer;
221
238
  }
222
239
 
223
- [data-slot~="combobox-item"][data-highlighted] {
224
- --ui-button-background: var(--ui-button-background--hover);
225
- --ui-button-foreground: var(--ui-button-foreground--hover);
240
+ :where(ui-combobox, [data-ui~="combobox"])
241
+ [data-combobox-slot~="item"][data-combobox-state~="highlighted"] {
242
+ --_button-bg: var(--ui-button-bg--hover);
243
+ --_button-text: var(--ui-button-text--hover);
226
244
  }
227
245
 
228
- /* The committed item wears the shared option checkmark */
229
- [data-slot~="combobox-item"][aria-selected="true"]::after {
246
+ :where(ui-combobox, [data-ui~="combobox"])
247
+ [data-combobox-slot~="item"][aria-selected="true"]::after {
230
248
  content: "";
231
249
  order: 1;
232
250
  margin-inline-start: auto;
@@ -236,66 +254,67 @@
236
254
  mask: var(--ui-option-checkmark-mask) center / contain no-repeat;
237
255
  }
238
256
 
239
- [data-slot~="combobox-group"]:not(:has([data-slot~="combobox-item"]:not([hidden]))) {
257
+ :where(ui-combobox, [data-ui~="combobox"])
258
+ [data-combobox-slot~="group"]:not(:has([data-combobox-slot~="item"]:not([hidden]))) {
240
259
  display: none;
241
260
  }
242
261
 
243
- [data-slot~="combobox-empty"] {
262
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="empty"] {
244
263
  display: none;
245
- padding: var(--step-2);
264
+ padding: calc(var(--spacing) * 2);
246
265
  }
247
266
 
248
- [data-slot~="combobox-panel"]:not(:has([data-slot~="combobox-item"]:not([hidden])))
249
- [data-slot~="combobox-empty"] {
267
+ :where(ui-combobox, [data-ui~="combobox"])
268
+ [data-combobox-slot~="panel"]:not(:has([data-combobox-slot~="item"]:not([hidden])))
269
+ [data-combobox-slot~="empty"] {
250
270
  display: block;
251
271
  }
252
272
 
253
273
  /* ===========================================================================
254
274
  COMBOBOX MULTISELECT: selected values as removable tags inside the control
255
275
  - The variant only swaps tokens: the control wraps into rows and grows from a
256
- fixed height into a minimum one. combobox.js stamps the tags from the items
257
- carrying aria-selected="true", dressed as .ui-badge[data-variant="muted"]
258
- so a selection tag and a badge read as one thing.
276
+ fixed height into a minimum one. Tags are stamped from items carrying
277
+ aria-selected="true", dressed as a muted badge.
259
278
  =========================================================================== */
260
279
 
261
- :where(ui-combobox, .ui-combobox)[data-variant="multiselect"] {
280
+ :where(ui-combobox, [data-ui~="combobox"])[data-combobox-variant="multiselect"] {
262
281
  --ui-combobox-control-flex-wrap: wrap;
263
282
  --ui-combobox-control-gap: var(--ui-combobox-tag-gap);
264
- --ui-combobox-control-block-size: auto;
265
- --ui-combobox-control-min-block-size: var(--ui-field-block-size);
266
- --ui-combobox-control-padding-block: var(--ui-combobox-tag-padding-block);
267
- --ui-combobox-input-min-inline-size: var(--step-16);
268
- --ui-combobox-input-min-block-size: var(--ui-badge-block-size);
283
+ --ui-combobox-control-h: auto;
284
+ --ui-combobox-control-min-h: var(--ui-field-h);
285
+ --ui-combobox-control-py: var(--ui-combobox-tag-py);
286
+ --ui-combobox-input-min-w: calc(var(--spacing) * 16);
287
+ --ui-combobox-input-min-h: var(--ui-badge-h);
269
288
  }
270
289
 
271
290
  /* Overrides badge.css min-width: max-content (same layer, same
272
291
  specificity, and combobox.css imports after badge.css) */
273
- [data-slot~="combobox-tag"] {
292
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="tag"] {
274
293
  min-inline-size: 0;
275
- max-inline-size: var(--ui-combobox-tag-max-inline-size);
294
+ max-inline-size: var(--ui-combobox-tag-max-w);
276
295
  }
277
296
 
278
297
  /* The label wears its own box because text-overflow ignores a flex
279
- container's own text, and .ui-badge is display: flex */
280
- [data-slot~="combobox-tag-label"] {
298
+ container's own text, and [data-ui~="badge"] is display: flex */
299
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="tag-label"] {
281
300
  overflow: hidden;
282
301
  text-overflow: ellipsis;
283
302
  white-space: nowrap;
284
303
  }
285
304
 
286
- [data-slot~="combobox-tag-remove"] {
305
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="tag-remove"] {
287
306
  display: grid;
288
307
  place-items: center;
289
308
  flex-shrink: 0;
290
309
  inline-size: var(--ui-combobox-tag-remove-size);
291
310
  block-size: var(--ui-combobox-tag-remove-size);
292
- border-radius: var(--ui-combobox-tag-remove-radius);
311
+ border-radius: var(--ui-combobox-tag-remove-rounded);
293
312
  opacity: var(--ui-combobox-tag-remove-opacity);
294
313
  cursor: pointer;
295
314
  transition: var(--default-transition);
296
315
  }
297
316
 
298
- [data-slot~="combobox-tag-remove"]::before {
317
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="tag-remove"]::before {
299
318
  content: "";
300
319
  inline-size: 100%;
301
320
  block-size: 100%;
@@ -303,7 +322,9 @@
303
322
  mask: var(--ui-combobox-tag-remove-mask) center / contain no-repeat;
304
323
  }
305
324
 
306
- [data-slot~="combobox-tag-remove"]:hover {
307
- opacity: var(--ui-combobox-tag-remove-opacity--hover);
325
+ @media (hover: hover) {
326
+ :where(ui-combobox, [data-ui~="combobox"]) [data-combobox-slot~="tag-remove"]:hover {
327
+ opacity: var(--ui-combobox-tag-remove-opacity--hover);
328
+ }
308
329
  }
309
330
  }
@@ -3,34 +3,35 @@
3
3
  * @description Light-DOM custom element on the shared typeahead engine
4
4
  * (`base/typeahead.ts`). A relative of select: the panel filters as you type,
5
5
  * but free text can never submit. The form value lives in an authored hidden
6
- * input (`data-slot="combobox-value"`), synced whenever the selection changes.
6
+ * input (`data-combobox-slot="value"`), synced whenever the selection changes.
7
7
  *
8
8
  * The visible input carries a **display value, not the filter**. Committing
9
9
  * writes the option label into it and clears the query, so reopening shows
10
- * the full list with the committed row checked, matching `.ui-select`.
10
+ * the full list with the committed row checked, matching `[data-ui~="select"]`.
11
11
  * Opening selects that label so the first keystroke replaces it, and focus
12
12
  * alone never opens the panel (a click, the chevron, an arrow key or typing
13
13
  * does). On blur, stray text reverts to the committed label and cleared text
14
14
  * clears the selection.
15
15
  *
16
- * `data-variant="multiselect"` selects a set instead: committing toggles a row
16
+ * `data-combobox-variant="multiselect"` selects a set instead: committing toggles a row
17
17
  * and keeps the panel open, and every selected value renders as a removable
18
18
  * tag stamped inside the control. The tag markup is HTML, not script: author
19
- * a `<template data-slot="combobox-tag-template">` to control its classes and
19
+ * a `<template data-combobox-slot="tag-template">` to control its classes and
20
20
  * structure, and this file fills in the label, the value, and the remove
21
- * button accessible name. Without one, the ui-badge default below applies.
21
+ * button accessible name. Without one, the badge default below applies.
22
22
  * Backspace on an empty input drops the last tag. Options carrying
23
23
  * `aria-selected="true"` are the single source of truth: the tags and the
24
24
  * hidden inputs are both derived from them in DOM order so nothing can drift.
25
25
  * The form submits repeated `name` pairs like `<select multiple>`: the authored
26
26
  * hidden input carries the first value, and stamped siblings carry the rest.
27
27
  *
28
- * Where a no-JS fallback matters, prefer `.ui-select` / `<ui-multiselect>`:
28
+ * Where a no-JS fallback matters, prefer `[data-ui~="select"]` / `<ui-multiselect>`:
29
29
  * this control is inert without its script (the hidden input still submits a
30
30
  * server-set value, but no tags render).
31
31
  *
32
- * Attributes on the root: `data-variant="multiselect"`, `data-sort="score"`,
33
- * `data-min-length="<n>"`, `data-label-remove="Remove {label}"`.
32
+ * Attributes on the root: `data-combobox-variant="multiselect"`, `data-combobox-sort="score"`,
33
+ * `data-combobox-filter="none"` (another source filters; the engine only navigates),
34
+ * `data-combobox-min-length="<n>"`, `data-combobox-label-remove="Remove {label}"`.
34
35
  * Parts: `combobox-value` (hidden input), `combobox-control` (select-look
35
36
  * shell), `combobox-tag-template` (authored `<template>`), `combobox-tag` /
36
37
  * `combobox-tag-label` / `combobox-tag-remove` (cloned from it),
@@ -58,7 +59,7 @@ interface BlurOutcome {
58
59
  */
59
60
  declare function resolveBlur(typed: string, committedLabel: string, multiselect: boolean): BlurOutcome;
60
61
  /**
61
- * @description Fills the remove-button label template (`data-label-remove`).
62
+ * @description Fills the remove-button label template (`data-combobox-label-remove`).
62
63
  *
63
64
  * @param template - Template with a `{label}` placeholder.
64
65
  * @param label - The tag's visible label.
@@ -74,7 +75,7 @@ declare class UiCombobox extends TypeaheadElement {
74
75
  protected teardown(): void;
75
76
  /**
76
77
  * @description Combobox items match against what the user sees (the label)
77
- * not the machine `data-value`.
78
+ * not the machine `data-combobox-value`.
78
79
  *
79
80
  * @param item - The item element.
80
81
  * @returns The trimmed visible label.
@@ -87,7 +88,7 @@ declare class UiCombobox extends TypeaheadElement {
87
88
  */
88
89
  protected clearQuery(): void;
89
90
  /**
90
- * @description Committing shows the item's label, stores its `data-value` in
91
+ * @description Committing shows the item's label, stores its `data-combobox-value` in
91
92
  * the hidden input, and moves `aria-selected`. The multiselect variant
92
93
  * toggles the row instead and keeps the panel open so picking can continue.
93
94
  *
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["combobox.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAoC3D,2EAA2E;AAC3E,UAAU,WAAW;IACnB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,WAAW,CAI7F;AAED;;;;;;GAMG;AACH,iBAAS,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnE;AAID,cAAM,UAAW,SAAQ,gBAAgB;;IACvC,SAAS,CAAC,QAAQ,CAAC,UAAU,cAAc;IAC3C,gFAAgF;IAChF,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAS;IAOhD,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CA8HzC;IAED,SAAS,CAAC,QAAQ,IAAI,IAAI,CAOzB;IAED;;;;;;OAMG;IACH,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAE7C;IAED;;;;OAIG;IACH,SAAS,CAAC,UAAU,IAAI,IAAI,CAK3B;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI,CA+BzE;CAqOF;AAID,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["combobox.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AA0B3D,2EAA2E;AAC3E,UAAU,WAAW;IACnB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,WAAW,CAI7F;AAED;;;;;;GAMG;AACH,iBAAS,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED,cAAM,UAAW,SAAQ,gBAAgB;;IACvC,SAAS,CAAC,QAAQ,CAAC,UAAU,cAAc;IAC3C,gFAAgF;IAChF,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAS;IAOhD,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAgIzC;IAED,SAAS,CAAC,QAAQ,IAAI,IAAI,CAOzB;IAED;;;;;;OAMG;IACH,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAE7C;IAED;;;;OAIG;IACH,SAAS,CAAC,UAAU,IAAI,IAAI,CAK3B;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI,CA+BzE;CAuOF;AAID,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,CAAC"}