bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.76

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 (321) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbAvatar.md +86 -58
  5. package/dist/ai/BbBadge.md +1 -1
  6. package/dist/ai/BbBreadcrumbs.md +3 -3
  7. package/dist/ai/BbButton.md +4 -4
  8. package/dist/ai/BbCalendar.md +5 -2
  9. package/dist/ai/BbCheckboxGroup.md +5 -4
  10. package/dist/ai/BbColorInput.md +13 -1
  11. package/dist/ai/BbColorPalette.md +12 -7
  12. package/dist/ai/BbConfirm.md +1 -1
  13. package/dist/ai/BbDatePicker.md +13 -1
  14. package/dist/ai/BbDatePickerInput.md +18 -2
  15. package/dist/ai/BbDialog.md +6 -3
  16. package/dist/ai/BbDropdown.md +174 -77
  17. package/dist/ai/BbDropdownButton.md +37 -16
  18. package/dist/ai/BbGallery.md +3 -2
  19. package/dist/ai/BbIcon.md +10 -10
  20. package/dist/ai/BbNumberInput.md +3 -1
  21. package/dist/ai/BbOffCanvas.md +3 -2
  22. package/dist/ai/BbPopover.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +227 -105
  25. package/dist/ai/BbSelectPopover.md +139 -14
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +18 -17
  28. package/dist/ai/BbTimePicker.md +13 -1
  29. package/dist/ai/BbTimePickerInput.md +16 -2
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbTree.md +5 -1
  32. package/dist/ai/CommonPopover.md +1 -0
  33. package/dist/ai/FlatListBox.md +1 -0
  34. package/dist/ai/GroupedListBox.md +3 -2
  35. package/dist/ai/ListBox.md +4 -2
  36. package/dist/ai/OptionsContainer.md +4 -4
  37. package/dist/ai/changelog.json +310 -7
  38. package/dist/ai/components.json +33 -35
  39. package/dist/ai/composables/useToast.md +2 -2
  40. package/dist/ai/design-tokens.json +60 -0
  41. package/dist/ai/guides/agent-contract.md +9 -5
  42. package/dist/ai/guides/calendars-and-digits.md +1 -1
  43. package/dist/ai/guides/design-tokens.md +13 -0
  44. package/dist/ai/guides/eslint-rules.md +1 -1
  45. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  46. package/dist/ai/guides/icons-policy.md +32 -11
  47. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  48. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  49. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  50. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  52. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  53. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  54. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  55. package/dist/ai/guides/migration/v2-to-v3.md +70 -24
  56. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  57. package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
  58. package/dist/ai/guides/passthrough.md +58 -58
  59. package/dist/ai/helpers/inertia/manifest.json +1 -1
  60. package/dist/ai/index.md +1 -1
  61. package/dist/ai/manifest/common.json +1 -0
  62. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  63. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  64. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  65. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  66. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  67. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  68. package/dist/ai/manifest/components/BbColorPalette.json +5 -2
  69. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  70. package/dist/ai/manifest/components/BbDatePicker.json +3 -0
  71. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  72. package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
  73. package/dist/ai/manifest/components/BbDropdown.json +36 -28
  74. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  75. package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
  76. package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
  77. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  78. package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
  79. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  80. package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
  81. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  82. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  83. package/dist/ai/manifest/components/BbSelect.json +47 -40
  84. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  85. package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
  86. package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
  87. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  88. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbTable.json +6 -6
  90. package/dist/ai/manifest/components/BbTable.tree.json +9 -1
  91. package/dist/ai/manifest/components/BbTimePicker.json +5 -2
  92. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  93. package/dist/ai/manifest/components/BbTree.json +1 -1
  94. package/dist/ai/manifest/components/CommonPopover.json +1 -0
  95. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  96. package/dist/ai/manifest/components/GroupedListBox.json +3 -2
  97. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  98. package/dist/ai/manifest/components/ListBox.json +3 -2
  99. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  100. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  101. package/dist/ai/manifest/index.json +2 -2
  102. package/dist/ai/manifest/meta.json +0 -3
  103. package/dist/ai/manifest/types.advanced.json +6 -6
  104. package/dist/ai/manifest/types.api.json +1 -3
  105. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  106. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  107. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  108. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  109. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  110. package/dist/ai/recipes/vue/onboarding.md +2 -2
  111. package/dist/ai/source/BbAccordion.md +4 -5
  112. package/dist/ai/source/BbAvatar.md +128 -11
  113. package/dist/ai/source/BbBadge.md +18 -7
  114. package/dist/ai/source/BbBreadcrumbs.md +57 -56
  115. package/dist/ai/source/BbButton.md +41 -25
  116. package/dist/ai/source/BbCalendar.md +8 -6
  117. package/dist/ai/source/BbCarousel.md +41 -34
  118. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  119. package/dist/ai/source/BbColorInput.md +19 -0
  120. package/dist/ai/source/BbColorPalette.md +23 -2
  121. package/dist/ai/source/BbDatePicker.md +18 -0
  122. package/dist/ai/source/BbDatePickerInput.md +47 -3
  123. package/dist/ai/source/BbDialog.md +14 -1
  124. package/dist/ai/source/BbDropdown.md +296 -99
  125. package/dist/ai/source/BbDropdownButton.md +61 -19
  126. package/dist/ai/source/BbDropdownGroup.md +189 -98
  127. package/dist/ai/source/BbGallery.md +82 -60
  128. package/dist/ai/source/BbHost.md +12 -0
  129. package/dist/ai/source/BbNumberInput.md +17 -10
  130. package/dist/ai/source/BbOffCanvas.md +14 -1
  131. package/dist/ai/source/BbPagination.md +12 -28
  132. package/dist/ai/source/BbRadioGroup.md +12 -5
  133. package/dist/ai/source/BbRating.md +4 -4
  134. package/dist/ai/source/BbSelect.md +151 -112
  135. package/dist/ai/source/BbSelectPopover.md +244 -29
  136. package/dist/ai/source/BbSwitchGroup.md +11 -4
  137. package/dist/ai/source/BbTable.md +114 -35
  138. package/dist/ai/source/BbTimePicker.md +19 -0
  139. package/dist/ai/source/BbTimePickerInput.md +21 -2
  140. package/dist/ai/source/BbToast.md +2 -2
  141. package/dist/ai/source/BbToastPortal.md +2 -2
  142. package/dist/ai/source/BbTree.md +1 -1
  143. package/dist/ai/source/ClearableButton.md +4 -2
  144. package/dist/ai/source/CommonPopover.md +24 -1
  145. package/dist/ai/source/ErrorIcon.md +4 -3
  146. package/dist/ai/source/FlatListBox.md +33 -7
  147. package/dist/ai/source/GroupedListBox.md +85 -14
  148. package/dist/ai/source/ListBox.md +11 -1
  149. package/dist/ai/source/OptionsContainer.md +29 -11
  150. package/dist/ai/source/WarningIcon.md +4 -3
  151. package/dist/assets/svgs/close.svg_raw.js +1 -1
  152. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  153. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  154. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  155. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -43
  156. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  157. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  158. package/dist/components/BbAvatar/types.d.ts +24 -5
  159. package/dist/components/BbAvatar/types.js +5 -1
  160. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  161. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +66 -64
  162. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
  163. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  164. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  165. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  166. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  167. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
  168. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  169. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  170. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  171. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  172. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  173. package/dist/components/BbColorInput/types.d.ts +7 -0
  174. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  175. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +208 -196
  176. package/dist/components/BbColorPalette/types.d.ts +7 -0
  177. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
  178. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
  179. package/dist/components/BbDatePicker/types.d.ts +7 -0
  180. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
  181. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
  182. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  183. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
  184. package/dist/components/BbDialog/leaveGhost.js +22 -17
  185. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
  186. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  187. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
  188. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
  189. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  190. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  191. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
  192. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
  193. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  194. package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
  195. package/dist/components/BbDropdown/types.d.ts +109 -87
  196. package/dist/components/BbDropdown/types.js +3 -0
  197. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
  198. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
  199. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
  200. package/dist/components/BbDropdownButton/types.d.ts +23 -10
  201. package/dist/components/BbDropdownButton/types.js +4 -0
  202. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  203. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
  204. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  205. package/dist/components/BbIcon/iconCache.js +1 -1
  206. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  207. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
  208. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
  209. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  210. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  211. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  212. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  213. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
  214. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  215. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  216. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  217. package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
  218. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
  219. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  220. package/dist/components/BbSelect/types.d.ts +110 -111
  221. package/dist/components/BbSelect/types.js +1 -27
  222. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
  223. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
  224. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  225. package/dist/components/BbSelectPopover/types.d.ts +32 -17
  226. package/dist/components/BbSelectPopover/types.js +3 -1
  227. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  228. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  229. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  230. package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
  231. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
  232. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  233. package/dist/components/BbTable/types.d.ts +11 -10
  234. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  235. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  236. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
  237. package/dist/components/BbTimePicker/types.d.ts +7 -0
  238. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
  239. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
  240. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  241. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
  242. package/dist/components/BbToast/types.d.ts +2 -2
  243. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  244. package/dist/components/BbTree/types.d.ts +1 -1
  245. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  246. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  247. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  248. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
  249. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  250. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
  251. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
  252. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  253. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  254. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  255. package/dist/composables/useInternalIcon.js +25 -0
  256. package/dist/composables/useItemsGetter.js +34 -32
  257. package/dist/composables/useOpenModel.js +20 -0
  258. package/dist/deprecation/ai-deprecations.json.js +1 -1
  259. package/dist/i18n/locales/ar.json +2 -0
  260. package/dist/i18n/locales/cs.json +2 -0
  261. package/dist/i18n/locales/da.json +2 -0
  262. package/dist/i18n/locales/de-CH.json +2 -0
  263. package/dist/i18n/locales/de.json +2 -0
  264. package/dist/i18n/locales/el.json +2 -0
  265. package/dist/i18n/locales/en-GB.json +2 -0
  266. package/dist/i18n/locales/en.json +2 -0
  267. package/dist/i18n/locales/es-MX.json +2 -0
  268. package/dist/i18n/locales/es.json +2 -0
  269. package/dist/i18n/locales/fa.json +2 -0
  270. package/dist/i18n/locales/fi.json +2 -0
  271. package/dist/i18n/locales/fr.json +2 -0
  272. package/dist/i18n/locales/he.json +2 -0
  273. package/dist/i18n/locales/hu.json +2 -0
  274. package/dist/i18n/locales/it.json +2 -0
  275. package/dist/i18n/locales/ja.json +2 -0
  276. package/dist/i18n/locales/ko.json +2 -0
  277. package/dist/i18n/locales/nb.json +2 -0
  278. package/dist/i18n/locales/nl.json +2 -0
  279. package/dist/i18n/locales/pl.json +2 -0
  280. package/dist/i18n/locales/pt-BR.json +2 -0
  281. package/dist/i18n/locales/pt-PT.json +2 -0
  282. package/dist/i18n/locales/ro.json +2 -0
  283. package/dist/i18n/locales/ru.json +2 -0
  284. package/dist/i18n/locales/sv.json +2 -0
  285. package/dist/i18n/locales/tr.json +2 -0
  286. package/dist/i18n/locales/uk.json +2 -0
  287. package/dist/i18n/locales/zh-CN.json +2 -0
  288. package/dist/i18n/locales/zh-HK.json +2 -0
  289. package/dist/i18n/locales/zh-TW.json +2 -0
  290. package/dist/icon-scan.d.ts +1 -1
  291. package/dist/icon-scan.js +68 -61
  292. package/dist/index.d.ts +2 -2
  293. package/dist/llms-full.txt +1038 -451
  294. package/dist/llms-medium.txt +33 -28
  295. package/dist/llms.txt +2 -2
  296. package/dist/locale-blueprint.json +2 -0
  297. package/dist/nuxt.js +1 -1
  298. package/dist/styles.css +2 -2
  299. package/dist/types/ActionButton.d.ts +2 -3
  300. package/dist/types/Config.d.ts +8 -1
  301. package/dist/types/ConfigDefaults.d.ts +10 -2
  302. package/dist/types/Option.d.ts +10 -0
  303. package/dist/types/internalIcons.d.ts +89 -0
  304. package/dist/types/internalIcons.js +158 -0
  305. package/dist/types/ptComponentMap.d.ts +5 -5
  306. package/dist/utilities/functions/slotContent.js +19 -0
  307. package/dist/utils/configDefaults.js +75 -64
  308. package/dist/utils/iconsOption.js +48 -0
  309. package/dist/utils/loadRetry.js +8 -0
  310. package/dist/utils/versionCheck.js +1 -1
  311. package/dist/vite-plugin.d.ts +10 -16
  312. package/dist/vite.js +323 -307
  313. package/llms.txt +2 -2
  314. package/package.json +3 -1
  315. package/scripts/README.md +2 -0
  316. package/scripts/lib/adoption-checklist.json +1 -1
  317. package/scripts/lib/agent-setup.mjs +44 -26
  318. package/scripts/lib/update-install.mjs +48 -0
  319. package/scripts/lib/validate-bb-markup.mjs +93 -12
  320. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
  321. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -827,7 +827,7 @@ styles** — you provide the CSS, setting the same tokens the built-ins use:
827
827
  ```ts
828
828
  // vite.config.ts
829
829
  bitbossUi({
830
- iconDir: './src/icons',
830
+ icons: { dir: './src/icons' },
831
831
  components: { BbAlert: { variants: ['success'] } },
832
832
  });
833
833
  ```
@@ -1423,14 +1423,23 @@ around.
1423
1423
  The avatar resolves what to show in a fixed order:
1424
1424
 
1425
1425
  1. **Image** — when `src` (or `srcset`) is set and loads correctly.
1426
- 2. **Default slot** — when there is no source or the image fails: put initials
1427
- (or any markup) here.
1428
- 3. **Built-in user icon** — when you supply no slot either.
1426
+ 2. **Default slot** — when there is no source or the image fails: any markup
1427
+ of your own.
1428
+ 3. **Initials from `name`** — no slot: the first letters of the first and the
1429
+ last word, uppercased with the locale's rules (`Ada King Lovelace` → `AL`,
1430
+ `Ada` → `A`). Words that don't start with a letter are skipped
1431
+ (`42 Ada` → `A`).
1432
+ 4. **Built-in user icon** — no slot, and no `name` (or none of its words
1433
+ starts with a letter).
1429
1434
 
1430
1435
  A failed load flips to the fallback automatically, and changing `src`/`srcset`
1431
- resets the attempt — so swapping users in place retries the new photo. Always
1432
- set `alt`: it labels the photo, and for a fallback it becomes the avatar's
1433
- accessible name.
1436
+ resets the attempt — so swapping users in place retries the new photo. Pass
1437
+ `name` for a person: it gives the initials and the accessible name. `alt`
1438
+ describes the photo and wins as the name when written.
1439
+
1440
+ ```vue
1441
+ <BbAvatar :src="user.photoUrl" :name="user.fullName" color />
1442
+ ```
1434
1443
 
1435
1444
  **Photo, initials, and the built-in fallback**
1436
1445
 
@@ -1444,7 +1453,7 @@ accessible name.
1444
1453
  src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23fde2d4'/%3E%3Ccircle cx='32' cy='25' r='11' fill='%23b45a3c'/%3E%3Cpath d='M11 64c1-13 10-20 21-20s20 7 21 20z' fill='%23b45a3c'/%3E%3C/svg%3E"
1445
1454
  alt="Ada Lovelace"
1446
1455
  />
1447
- <BbAvatar size="56" alt="Grace Hopper">GH</BbAvatar>
1456
+ <BbAvatar size="56" name="Grace Hopper" />
1448
1457
  <BbAvatar size="56" alt="Unknown user" />
1449
1458
  </div>
1450
1459
  ```
@@ -1477,36 +1486,53 @@ Composed demos below use the larger end of that range (and a few explicit px
1477
1486
  sizes) so faces stay readable in Storybook — `xs`/`sm` are for dense chrome,
1478
1487
  not hero examples.
1479
1488
 
1480
- The fallback surface is **always painted with the primary design token** —
1481
- `--bb-primary` behind, `--bb-primary-fg` for the initials/icon, the same
1482
- pairing as a primary button — so initials stay legible in light and dark and
1483
- every avatar matches your theme automatically.
1489
+ By default the fallback surface is **painted with the primary design token**
1490
+ — `--bb-primary` behind, `--bb-primary-fg` for the initials/icon, the same
1491
+ pairing as a primary button — so it matches your theme in light and dark.
1492
+
1493
+ ### Colour per person: `color`
1484
1494
 
1485
- There is no tinting **prop**, but there are two component locals on
1486
- `.bb-avatar` for the cases the theme cannot cover — a per-tenant or
1487
- per-user colour: `--bg` (fallback surface, defaults to `--bb-primary`) and
1488
- `--fg` (initials and slotted fallback, `--bb-primary-fg`). The built-in person
1489
- glyph mixes `--fg` over `--bg`, so there is no third local. Set both on the
1490
- avatar or on a class you put on it:
1495
+ `color` tells people apart in a list (assignees, a comment thread). It is
1496
+ decoration, never state, so it is off by default:
1497
+
1498
+ - **`color` (`true`)** — one of ten palette hues, picked from a stable hash
1499
+ of `name`: the same person gets the same colour on every page, render and
1500
+ server render (no hydration repaint), whatever the case or spacing of the
1501
+ name. A soft fill with deep ink in light, a deep fill with light ink in
1502
+ dark; every pair clears 4.5:1. The palette is the `--bb-avatar-*` theme
1503
+ tokens (design-tokens guide § Avatar palette). Without `name` the avatar
1504
+ keeps the default look.
1505
+ - **A string** — any CSS colour or `var()`, used as the fill as is (a
1506
+ tenant's brand colour). The ink is black or white, whichever reads
1507
+ (`contrast-color()` where the browser has it, else picked from the
1508
+ colour's OKLCH lightness).
1509
+
1510
+ **Palette colours from names, and a brand colour**
1491
1511
 
1492
1512
  ```vue
1493
- <BbAvatar
1494
- alt="Acme Studio"
1495
- :style="{ '--bg': tenant.color, '--fg': tenant.fg }"
1496
- >
1497
- AS
1498
- </BbAvatar>
1513
+ <div class="flex items-center gap-3">
1514
+ <BbAvatar size="40" name="Ada Lovelace" color />
1515
+ <BbAvatar size="40" name="Grace Hopper" color />
1516
+ <BbAvatar size="40" name="Alan Turing" color />
1517
+ <BbAvatar size="40" name="Katherine Johnson" color />
1518
+ <BbAvatar size="40" name="Acme Studio" color="#1e293b" />
1519
+ </div>
1499
1520
  ```
1500
1521
 
1522
+ The two component locals stay for anything else: `--bg` (fallback surface)
1523
+ and `--fg` (initials and slotted fallback). The built-in person glyph mixes
1524
+ `--fg` over `--bg`, so there is no third local. A pinned ink for a brand
1525
+ colour: `:style="{ '--fg': tenant.fg }"` beside `:color="tenant.color"`.
1526
+
1501
1527
  **The size scale**
1502
1528
 
1503
1529
  ```vue
1504
1530
  <div class="flex items-end gap-3">
1505
- <BbAvatar size="md" alt="Joan Clarke">JC</BbAvatar>
1506
- <BbAvatar size="lg" alt="Joan Clarke">JC</BbAvatar>
1507
- <BbAvatar size="xl" alt="Joan Clarke">JC</BbAvatar>
1508
- <BbAvatar size="2xl" alt="Joan Clarke">JC</BbAvatar>
1509
- <BbAvatar size="56" alt="Joan Clarke">JC</BbAvatar>
1531
+ <BbAvatar size="md" name="Joan Clarke" />
1532
+ <BbAvatar size="lg" name="Joan Clarke" />
1533
+ <BbAvatar size="xl" name="Joan Clarke" />
1534
+ <BbAvatar size="2xl" name="Joan Clarke" />
1535
+ <BbAvatar size="56" name="Joan Clarke" />
1510
1536
  </div>
1511
1537
  ```
1512
1538
 
@@ -1667,9 +1693,7 @@ list — the row markup stays identical whether a member has a photo or not.
1667
1693
  "
1668
1694
  :variant="member.online ? 'success' : 'default'"
1669
1695
  >
1670
- <BbAvatar :alt="member.name" size="40" :src="member.src">
1671
- {{ member.initials }}
1672
- </BbAvatar>
1696
+ <BbAvatar color :name="member.name" size="40" :src="member.src" />
1673
1697
  </BbIndicator>
1674
1698
  <span class="flex min-w-0 flex-1 flex-col">
1675
1699
  <span class="truncate font-medium">{{ member.name }}</span>
@@ -1703,11 +1727,10 @@ type Member = {
1703
1727
  role: string;
1704
1728
  online: boolean;
1705
1729
  src?: string;
1706
- initials?: string;
1707
1730
  };
1708
1731
 
1709
- // Some members have a photo; others fall back to initials on the
1710
- // primary-token surface — both flow through the same row markup.
1732
+ // Some members have a photo; the others fall back to the initials from
1733
+ // `name`, each in their own palette colour (`color`) — the same row markup.
1711
1734
  const members: Member[] = [
1712
1735
  {
1713
1736
  name: 'Ada Lovelace',
@@ -1719,7 +1742,6 @@ const members: Member[] = [
1719
1742
  name: 'Grace Hopper',
1720
1743
  role: 'Design',
1721
1744
  online: true,
1722
- initials: 'GH',
1723
1745
  },
1724
1746
  {
1725
1747
  name: 'Alan Turing',
@@ -1731,13 +1753,11 @@ const members: Member[] = [
1731
1753
  name: 'Katherine Johnson',
1732
1754
  role: 'Data',
1733
1755
  online: true,
1734
- initials: 'KJ',
1735
1756
  },
1736
1757
  {
1737
1758
  name: 'Linus Torvalds',
1738
1759
  role: 'Platform',
1739
1760
  online: false,
1740
- initials: 'LT',
1741
1761
  },
1742
1762
  ];
1743
1763
 
@@ -1871,12 +1891,14 @@ keys.
1871
1891
  ### Restyling with passthrough
1872
1892
 
1873
1893
  `pt` reaches each part with a class list — or, in the object form, a
1874
- style and attributes. Parts: `root` (the avatar frame) and `icon` (the default
1875
- user glyph). No states — nothing it paints is a state.
1876
-
1877
- `icon` exists only while the fallback shows (no image, or it failed) and the
1878
- default slot is not overridden; when a photo or your own initials render,
1879
- `pt:icon` lands nowhere. For the frame, `pt:root` is plain `class` with extra
1894
+ style and attributes. Parts: `root` (the avatar frame), `initials` (the
1895
+ letters from `name`) and `icon` (the default user glyph). No states — nothing
1896
+ it paints is a state.
1897
+
1898
+ `initials` and `icon` exist only while the fallback shows (no image, or it
1899
+ failed) and the default slot is not overridden — `initials` with a `name`
1900
+ that gives letters, `icon` otherwise; when a photo or your own slot renders,
1901
+ they land nowhere. For the frame, `pt:root` is plain `class` with extra
1880
1902
  letters: write `class` / `style` on the tag, as on any element. `pt:root`
1881
1903
  stays for uniformity — the global map, the object form and a wrapper that
1882
1904
  spreads props address every component the same way.
@@ -1941,10 +1963,11 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1941
1963
 
1942
1964
  ### Gotchas & anti-patterns
1943
1965
 
1944
- - **There is no `color` prop, and no `variant` either.** The fallback is always
1945
- primary-token colored; don't reach for per-avatar inline backgrounds. If the
1946
- palette is wrong, retheme `--bb-primary` / `--bb-primary-fg` — theming here
1947
- happens through the tokens, not a prop.
1966
+ - **Don't hash names into colours yourself** — `color` does it, stable and
1967
+ SSR-safe, from the themed palette. There is no `variant`: the default look
1968
+ follows `--bb-primary` / `--bb-primary-fg`.
1969
+ - **Don't type initials into the slot** when you have the name: `name` does
1970
+ it, locale-aware, and labels the avatar too.
1948
1971
  - **Default `timeout` can false-fallback slow images** (see above) — tune it,
1949
1972
  don't reimplement image loading around the component.
1950
1973
  - Don't hand-position presence dots with absolute CSS — `BbIndicator dot`
@@ -1958,24 +1981,27 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1958
1981
  by the frame, so it follows.
1959
1982
  - Don't pre-crop sources to circles — the component center-crops; ship square
1960
1983
  or larger originals.
1961
- - Don't leave `alt` empty for meaningful avatars: fallbacks lose their
1962
- accessible name entirely.
1984
+ - Don't leave both `name` and `alt` empty for meaningful avatars: fallbacks
1985
+ lose their accessible name entirely.
1963
1986
 
1964
1987
  ### Accessibility
1965
1988
 
1966
- Always set `alt`. With an image it labels the photo; with a fallback the
1967
- component adds `role="img"` + `aria-label` (from `alt`) to the fallback, so
1968
- assistive tech announces the person, not the raw initials. If `alt` is empty,
1969
- the fallback renders with no role and no name — acceptable only for purely
1970
- decorative avatars. A presence dot is decorative — make the same status
1989
+ Set `name` (or `alt`). With an image, `alt` labels the photo (`name` when
1990
+ `alt` is empty); with a fallback the component adds `role="img"` +
1991
+ `aria-label` (`alt`, else `name`) to the fallback, so assistive tech
1992
+ announces the person, not the raw initials. With neither, the fallback
1993
+ renders with no role and no name — acceptable only for purely decorative
1994
+ avatars. A presence dot is decorative — make the same status
1971
1995
  available in visible text or an adjacent label.
1972
1996
 
1973
1997
  ## Props
1974
1998
 
1975
1999
  | Prop | Type | Default | Required | Description |
1976
2000
  | --- | --- | --- | --- | --- |
1977
- | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `icon`, `root`. States: —. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbAvatarProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
1978
- | `alt` | `string \| undefined` | `""` | | Alternative text for the image, used for accessibility. |
2001
+ | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `icon`, `initials`, `root`. States: —. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbAvatarProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
2002
+ | `alt` | `string \| undefined` | `""` | | Alternative text for the image, used for accessibility. Without it the avatar is labelled with `name`. |
2003
+ | `color` | `string \| boolean \| undefined` | `false` | | Paints the fallback (initials or icon). `true`: a palette colour picked from `name`, stable across renders and the server. A string: any CSS colour or `var()` as the background, with black or white ink, whichever reads. Unset: the primary colour. |
2004
+ | `name` | `string \| undefined` | | | The person's name. With no image and no default slot, the avatar shows its initials (first letters of the first and last word; none: the person icon). Also the accessible name when `alt` is empty, and the input of `color`. |
1979
2005
  | `size` | `number \| CssSize \| keyof Sizes \| undefined` | `"md"` | | Defines the component size. Accepted values: - A key from the provided size map (`keyof T`), e.g. `'sm' \| 'md' \| 'lg'` - A custom CSS size string (e.g. `'20px'`, `'1.5rem'`, `'2em'`) - A number, typically interpreted as pixels by size parsers |
1980
2006
  | `sizes` | `string \| undefined` | | | Sizes attribute for the image, used with `srcset`. |
1981
2007
  | `src` | `string \| undefined` | | | Source URL of the avatar image. |
@@ -1989,7 +2015,8 @@ available in visible text or an adjacent label.
1989
2015
  | Part | What it is |
1990
2016
  | --- | --- |
1991
2017
  | `root` | The avatar frame, with the image or the fallback inside. |
1992
- | `icon` | The default user glyph — rendered only while there is no image to show and the default slot is not overridden, so it lands nowhere otherwise. |
2018
+ | `icon` | The default user glyph — rendered only while there is no image to show, the default slot is not overridden and `name` gives no initials, so it lands nowhere otherwise. |
2019
+ | `initials` | The initials from `name` — rendered only while there is no image to show and the default slot is not overridden. |
1993
2020
 
1994
2021
  ## Events
1995
2022
 
@@ -2009,6 +2036,7 @@ Set these on the element, or on a class you put on it, to retune this component
2009
2036
  | `--fg` | `.bb-avatar` | `var(--bb-primary-fg)` | Initials; the built-in icon is an 80/20 mix of this toward --bg |
2010
2037
  | `--default-icon-size` | `.bb-avatar` | `clamp(14px, calc(var(--size) * 0.7), 48px)` | Built-in fallback icon: 70% of the avatar, floored at 14px and capped at 48px. `--size` is the avatar's own box, set inline from the `size` prop. |
2011
2038
  | `--fs` | `.bb-avatar` | `max(8px, calc(var(--size) * 0.4))` | Initials: 40% of the avatar, floored at 8px |
2039
+ | `--hue` | `.bb-avatar` | `0` | The palette hue `color` picks (a modifier class sets it). |
2012
2040
  | `--elev` | `.bb-avatar` | `var(--bb-elev-sm)` | The theme's resting lift on small chrome, declared here so an ancestor's `--elev` cannot reach in; `--elev: none` flattens one. |
2013
2041
  | `--size` | `.bb-avatar__default-icon` | `var(--default-icon-size)` | |
2014
2042
 
@@ -2021,7 +2049,7 @@ Set these on the element, or on a class you put on it, to retune this component
2021
2049
  - **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `BbAvatar`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
2022
2050
  - Listed nodes are the ones `BbAvatar`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbAvatar.tree.json` (a public component in it is a name: its own tree file has the rest).
2023
2051
 
2024
- - `BbAvatar` _(this component)_ — its own template binds: `icon` → `BbIcon`
2052
+ - `BbAvatar` _(this component)_ — its own template binds: `initials` → `span.bb-avatar__initials`, `icon` → `BbIcon`
2025
2053
  - Also mounts `BbIcon`
2026
2054
 
2027
2055
  ## See Also
@@ -2301,7 +2329,7 @@ hidden accessible name — always write it.
2301
2329
  ```
2302
2330
 
2303
2331
  The slots named after the props (`#prepend:icon`, `#append:icon`)
2304
- replace them and render inside the `icon` part, so `pt:icon`, `--icon-size`
2332
+ replace them (one that renders nothing falls back to the prop) and render inside the `icon` part, so `pt:icon`, `--icon-size`
2305
2333
  and the loading spinner still apply. Their scope is the badge's states,
2306
2334
  `{ activeLink, exactActiveLink, loading }`: a filter chip linking to a page
2307
2335
  can show a solid glyph while that page is open. What you put in a slot is
@@ -5532,12 +5560,12 @@ Set these on the element, or on a class you put on it, to retune this component
5532
5560
 
5533
5561
  - `BbBreadcrumbs` _(this component)_ — its own template binds: `item` → `li.bb-breadcrumbs__item`, `icon` → `BbIcon`, `text` → `span.bb-breadcrumbs__text`
5534
5562
  - `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
5535
- - `BbDropdown` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md))_ — its own pt parts (`BbDropdown`): `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-dropdown__header`, `list` → `span.bb-dropdown__list`, `footer` → `div.bb-dropdown__footer`; documented CSS variables: `--menu-inset`; also mounts `CommonPopover`, `DropdownPipelineResolver`
5563
+ - `BbDropdown` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md))_ — its own pt parts (`BbDropdown`): `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-dropdown__header`, `list` → `span.bb-dropdown__list`, `footer` → `div.bb-dropdown__footer`; documented CSS variables: `--menu-inset`; also mounts `CommonPopover`, `DropdownFailures`, `DropdownPipelineResolver`
5536
5564
  - `BbDropdownList` _(internal — not importable, reach it through `BbDropdown`)_ — also mounts `BbIcon`, `ErrorIcon`, `CommonPopover`, `BbDropdownList`
5537
5565
  - `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
5538
- - `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbDropdownList`
5566
+ - `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbDropdownList`, `DropdownFailures`
5539
5567
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
5540
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
5568
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
5541
5569
  - `BbButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__prepend-icon`, `icon` → `BbIcon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbBaseButton`, `BbSpinner`, `BbIcon`
5542
5570
  - Also mounts `BbIcon`
5543
5571
 
@@ -5952,9 +5980,9 @@ SSR-safe): `:icon-only="{ default: true, md: false }"` is the icon below
5952
5980
  as `size`'s do. Icon names come
5953
5981
  from an installed provider set (e.g. `lucide:*`) or from your own SVGs as
5954
5982
  `local:<file-name>` (see the icons policy) — a brand mark or a custom glyph is
5955
- a `local:` file in your `iconDir`, not a hand-made icon component wrapped in a
5983
+ a `local:` file in your `icons.dir`, not a hand-made icon component wrapped in a
5956
5984
  `BbBaseButton`. The name below stands for your own file: it resolves only if
5957
- `brand-mark.svg` sits in your `iconDir` (BbIcon's guide renders a live
5985
+ `brand-mark.svg` sits in your `icons.dir` (BbIcon's guide renders a live
5958
5986
  `local:` demo).
5959
5987
 
5960
5988
  ```vue
@@ -5979,8 +6007,8 @@ a `local:` file in your `iconDir`, not a hand-made icon component wrapped in a
5979
6007
 
5980
6008
  To change the glyph with the button's state (a filled star while a toggle is
5981
6009
  on, a solid icon on the current page's link), use the slot named after the
5982
- prop: `#prepend:icon`, `#append:icon`. The slot replaces the prop and
5983
- renders inside the `icon` part, so `pt:icon`, `--icon-size` and the loading
6010
+ prop: `#prepend:icon`, `#append:icon`. The slot replaces the prop (one that
6011
+ renders nothing falls back to it) and renders inside the `icon` part, so `pt:icon`, `--icon-size` and the loading
5984
6012
  spinner work as they do on the prop's glyph. Its scope is the button's states:
5985
6013
  `{ activeLink, exactActiveLink, pressed, loading, disabled }`. What you put in
5986
6014
  it is yours: a `BbIcon` takes the part's size, anything else you size.
@@ -7303,8 +7331,11 @@ const summary = computed(() => {
7303
7331
  </script>
7304
7332
  ```
7305
7333
 
7306
- With more than one month, the days of the neighbouring months are left blank:
7307
- a date belongs to one grid only.
7334
+ With one month, the greyed days of the neighbouring months that fill its
7335
+ first and last weeks are ordinary days: a click (or Enter / Space on one)
7336
+ picks it, single, range or multiple alike, and the view moves to its month.
7337
+ `min`, `max` and `selectable` disable them like any other day. With more than
7338
+ one month, those days are left blank: a date belongs to one grid only.
7308
7339
 
7309
7340
  ### `type` — what you are picking
7310
7341
 
@@ -10675,8 +10706,9 @@ called with one context object — `BbCheckboxGroupItemsContext`: `reason`
10675
10706
  `'model'` when the model changed from outside and the options cannot resolve
10676
10707
  it), `modelValue` and `signal`; a group has no search field, so no `query`.
10677
10708
  While it resolves, `loading-text` (or the `#loading` slot) shows; `empty-text`
10678
- (or `#empty`) covers the empty result, and `failed-text` (or `#empty` with its
10679
- `error` prop) a load that threw. Loading, cancellation and race protection are
10709
+ (or `#empty`) covers the empty result, and `failed-text` words the failure
10710
+ row of a load that threw (it ends with a built-in "Try again"; `#empty` never
10711
+ renders for a failure). Loading, cancellation and race protection are
10680
10712
  built in — don't wrap the provider in your own `loading` ref or debounce.
10681
10713
 
10682
10714
  Tie the option set to external state with `dependencies` (debounced by
@@ -10986,7 +11018,7 @@ for a preset that fits any row type (never `<any>`), not an imported
10986
11018
  | `itemLayout` | `FieldLayout \| undefined` | `'auto'` | | How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`. |
10987
11019
  | `itemProps` | `BbOptionGroupItemProps<T> \| undefined` | | | ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly. |
10988
11020
  | `itemReverse` | `boolean \| undefined` | `undefined` | | Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead. |
10989
- | `items` | `T[] \| ((context: BbCheckboxGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbCheckboxGroupItemsContext` (`BbSwitchGroupItemsContext` on a switch group) (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. |
11021
+ | `items` | `T[] \| ((context: BbCheckboxGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with `{ reason, modelValue, signal }`, sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and the failure row shows `failed-text` with "Try again". |
10990
11022
  | `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
10991
11023
  | `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
10992
11024
  | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
@@ -11064,7 +11096,7 @@ States are listed in precedence order: when two are on at once and their entries
11064
11096
 
11065
11097
  - `append` — scope: `object` — Content rendered after the last option, inside the options container.
11066
11098
  - `description` — scope: `BbCheckboxGroupDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`.
11067
- - `empty` — scope: `{ error: unknown; }` — Content shown when no options are available (replaces the default "no data" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows.
11099
+ - `empty` — scope: `object` — Content shown when no options are available (replaces the default "no data" text). Empty only: a failed load shows the library's failure row instead (its message is `failed-text`, and it ends with "Try again").
11068
11100
  - `icon` — scope: `BbCheckboxGroupIconSlotProps<T>` `{ disabled: boolean; readonly: boolean; checked: boolean; indeterminate?: boolean; focused: boolean; focusVisible: boolean; id: string; name: string; falseValue: any; hasErrors: boolean; hasWarnings: boolean; parsedValue: string; trueValue: any; value: any; item: T; text: string }` — Replaces the default checkmark icon for each checkbox option.
11069
11101
  - `label` — scope: `BbCheckboxGroupLabelSlotProps<T>` `{ item: T; text: string; checked: boolean; description: string }` — Replaces the default label text for each option.
11070
11102
  - `legend` — scope: `BbCheckboxGroupLegendSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default fieldset legend text for the group.
@@ -12186,6 +12218,15 @@ styles the sheet's root only. For what is inside it (header, title, ✕, body)
12186
12218
  no part of the input reaches there, so put a `pt` in `offCanvasProps`
12187
12219
  (passthrough guide § Inside the sheet).
12188
12220
 
12221
+ ### Opening from code: `v-model:open`
12222
+
12223
+ `v-model` is the value; `v-model:open` is whether the palette is open. Bound,
12224
+ your ref opens and closes it, and every open and close the user makes is
12225
+ written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
12226
+ listener is only the initial state. An open from code is the same open a
12227
+ click makes, and `disabled` / `readonly` refuse it (the ref is set back
12228
+ to `false`).
12229
+
12189
12230
  ### Events
12190
12231
 
12191
12232
  Beyond `update:modelValue` (see value format above), the native input events are
@@ -12394,6 +12435,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
12394
12435
  ## v-model
12395
12436
 
12396
12437
  - `v-model` — type: `string \| null \| undefined`
12438
+ - `v-model:open` — type: `boolean \| undefined`
12397
12439
 
12398
12440
  ## Props
12399
12441
 
@@ -12427,6 +12469,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
12427
12469
  | `modelValue` | `string \| null \| undefined` | `null` | | Used by v-model. |
12428
12470
  | `name` | `string \| undefined` | | | Defines the name of the input. |
12429
12471
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
12472
+ | `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
12430
12473
  | `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
12431
12474
  | `placeholder` | `string \| undefined` | | | Text shown while the field is empty. |
12432
12475
  | `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
@@ -12498,6 +12541,7 @@ States are listed in precedence order: when two are on at once and their entries
12498
12541
  - `show` — `(): void` — Emitted as soon as the palette (the popover, or the sheet on a phone) starts to open.
12499
12542
  - `shown` — `(): void` — Emitted once the palette is open and its open transition has finished.
12500
12543
  - `update:modelValue` — `(value: string \| null): void` — Emitted when the value becomes a valid hex color via typing/masking, when the field is cleared, or when the palette selects a color. Emits: - `#RRGGBB` (or `#RRGGBBAA` when `alpha` is enabled) for valid values - `null` when cleared
12544
+ - `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
12501
12545
 
12502
12546
  ## Slots
12503
12547
 
@@ -12535,7 +12579,7 @@ Set these on the element, or on a class you put on it, to retune this component
12535
12579
  - `CommonFieldInput` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
12536
12580
  - `BbColorPalette` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbColorPalette.md))_ — its own pt parts (`BbColorPalette`): `swatch` → `button.bb-color-palette__swatch`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs); documented CSS variables: `--edge`; also mounts `BbIcon`, `CommonPopover`
12537
12581
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
12538
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
12582
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
12539
12583
 
12540
12584
  ## See Also
12541
12585
 
@@ -13083,10 +13127,12 @@ popover ↔ sheet.
13083
13127
 
13084
13128
  ### Open state, disabled and readonly
13085
13129
 
13086
- The palette **owns its open state** — there is no `open` prop or `v-model:open`
13087
- to force it. Clicking the activator toggles it; a click on the dialog backdrop or
13088
- outside closes it; you _observe_ the state through the slot's `open` flag for
13089
- styling (a caret, a highlight). Two props gate interaction:
13130
+ Clicking the activator toggles the palette; a pick, Escape or a click outside
13131
+ closes it, and the slot's `open` flag shows the state for styling (a caret, a
13132
+ highlight). To open it from code, bind `v-model:open` (`v-model` stays the
13133
+ color): your ref opens and closes it, and every close is written back. A
13134
+ static `:open` with no listener is only the initial state. Two props gate
13135
+ interaction:
13090
13136
 
13091
13137
  - `disabled` — blocks the activator entirely (no open). The trigger gets
13092
13138
  `disabled` and `aria-disabled="true"` — through the slot's `props`, or set on
@@ -13280,8 +13326,8 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
13280
13326
  represented; enable `alpha` wherever 8-digit values occur.
13281
13327
  - **Start a bound model at `null`**, not `undefined`: `null` is the empty
13282
13328
  value the palette reports back.
13283
- - **Don't try to force it open via a prop** — the open state is internal; gate
13284
- with `disabled`/`readonly`, observe with the slot's `open`.
13329
+ - **Open it from code with `v-model:open`**, not by clicking the activator
13330
+ from a script; `disabled` / `readonly` refuse that open too.
13285
13331
 
13286
13332
  ### Accessibility
13287
13333
 
@@ -13300,6 +13346,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
13300
13346
  ## v-model
13301
13347
 
13302
13348
  - `v-model` — type: `string \| null \| undefined`
13349
+ - `v-model:open` — type: `boolean \| undefined`
13303
13350
 
13304
13351
  ## Props
13305
13352
 
@@ -13319,6 +13366,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
13319
13366
  | `modelValue` | `string \| null \| undefined` | | | v-model: the current color as a `#RRGGBB` hex string (or `#RRGGBBAA` when `alpha` is enabled), or `null` when empty. |
13320
13367
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
13321
13368
  | `offset` | `number \| undefined` | `4` | | Space the floating container will maintain from the activator. |
13369
+ | `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
13322
13370
  | `padding` | `number \| undefined` | `6` | | Minimum empty space to keep from the edge of the page |
13323
13371
  | `placement` | `Placement \| undefined` | | | Position of the overlay in respect to the related activator. |
13324
13372
  | `readonly` | `boolean \| undefined` | `false` | | Prevent opening the palette while keeping the activator visible. |
@@ -13350,6 +13398,7 @@ States are listed in precedence order: when two are on at once and their entries
13350
13398
  - `show` — `(): void` — Emitted as soon as the palette (the popover, or the sheet on a phone) starts to open.
13351
13399
  - `shown` — `(): void` — Emitted once the palette is open and its open transition has finished.
13352
13400
  - `update:modelValue` — `(value: string): void` — Emitted when a color is picked. Payload is a concrete `#RRGGBB` (or `#RRGGBBAA` when alpha is enabled) — the palette always emits a color, never `null`.
13401
+ - `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
13353
13402
 
13354
13403
  ## Slots
13355
13404
 
@@ -13378,7 +13427,7 @@ Set these on the element, or on a class you put on it, to retune this component
13378
13427
 
13379
13428
  - `BbColorPalette` _(this component)_ — its own template binds: `swatch` → `button.bb-color-palette__swatch`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs)
13380
13429
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
13381
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
13430
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
13382
13431
  - Also mounts `BbIcon`, `CommonPopover`
13383
13432
 
13384
13433
  ## See Also
@@ -14411,7 +14460,7 @@ States are listed in precedence order: when two are on at once and their entries
14411
14460
 
14412
14461
  - `BbConfirm` _(this component)_ — its own template binds: `action` → `BbDialog`, `text` → `div.bb-confirm__text`; hands `BbDialog` the pt map `passthrough.forward(DIALOG_PARTS, BB_DIALOG_PT.states)` (ours → theirs)
14413
14462
  - `BbDialog` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md))_ — its own pt parts (`BbDialog`): `header` → `div.bb-dialog__header`, `title` → `span.bb-dialog__title`, `description` → `p.bb-dialog__description`, `close` → `CloseButton`, `content` → `div.bb-dialog__content`, `footer` → `div.bb-dialog__footer`; hands `BbOffCanvas` the pt map `{ root: 'root', header: 'header', title: 'title', description: 'description', content: 'content', footer: 'footer', close: 'close', sheet: 'root', }` (ours → theirs); documented CSS variables: `--px`, `--close-size`
14414
- - `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
14463
+ - `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
14415
14464
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`; also mounts `CloseButton`
14416
14465
 
14417
14466
  ## See Also
@@ -14813,6 +14862,15 @@ Reach for the **component** (slot or `activator` prop) when you want the
14813
14862
  the directive is the shortcut for the bare-trigger cell case, not a replacement
14814
14863
  for the component's `v-model` in a form.
14815
14864
 
14865
+ ### Opening from code: `v-model:open`
14866
+
14867
+ `v-model` is the value; `v-model:open` is whether the calendar is open. Bound,
14868
+ your ref opens and closes it, and every open and close the user makes is
14869
+ written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
14870
+ listener is only the initial state. An open from code is the same open a
14871
+ click makes, and `disabled` / `readonly` refuse it (the ref is set back
14872
+ to `false`).
14873
+
14816
14874
  ### Relationship to BbDatePickerInput
14817
14875
 
14818
14876
  `BbDatePickerInput` _is_ a `BbDatePicker` with a segmented text field wrapped
@@ -14925,6 +14983,7 @@ and digit typeahead; the time rail exposes labelled columns. Always pass a
14925
14983
 
14926
14984
  - `v-model:activeSegment` — type: `BbCalendarSegment \| undefined`
14927
14985
  - `v-model` — type: `string \| string[] \| null \| undefined`
14986
+ - `v-model:open` — type: `boolean \| undefined`
14928
14987
  - `v-model:time` — type: `string \| string[] \| null \| undefined`
14929
14988
 
14930
14989
  ## Props
@@ -14952,6 +15011,7 @@ and digit typeahead; the time rail exposes labelled columns. Always pass a
14952
15011
  | `numberOfMonths` | `number \| undefined` | `1` | | How many months the popover shows side by side (day grids only); the phone sheet always shows one. Too narrow for them all, the months wrap. |
14953
15012
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
14954
15013
  | `offset` | `number \| undefined` | `4` | | Space the popover keeps from the activator. |
15014
+ | `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
14955
15015
  | `padding` | `number \| undefined` | | | Minimum empty space to keep from the edge of the page. |
14956
15016
  | `placement` | `'start'` \| `'end'` \| `'top'` \| `'bottom'` \| `'left'` \| `'right'` \| `'top-start'` \| `'top-end'` \| `'right-start'` \| `'right-end'` \| `'bottom-start'` \| `'bottom-end'` \| `'left-start'` \| `'left-end'` \| `'start-start'` \| `'start-end'` \| `'end-start'` \| `'end-end'` | | | Position of the popover relative to the activator/anchor. |
14957
15017
  | `range` | `boolean` | `false` | | Enables range selection (`[start, end]`). |
@@ -15011,6 +15071,7 @@ States are listed in precedence order: when two are on at once and their entries
15011
15071
  - `time-pick` — `(payload: { unit: TimeUnit; value: string; }): void` — Relay of the raw time-rail pick. An embedding host binds this to run its own value engine; clean consumers ignore it and use `update:time`.
15012
15072
  - `update:activeSegment` — `(value: BbCalendarSegment): void` — The active range end changed (range + `type="datetime"` only).
15013
15073
  - `update:modelValue` — `(value: string \| string[] \| null): void` — Emitted when the selected date value changes (single/range/null).
15074
+ - `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
15014
15075
  - `update:time` — `(value: string \| string[] \| null): void` — Companion time model, alongside every change while `type="datetime"`.
15015
15076
 
15016
15077
  ## Slots
@@ -15053,7 +15114,7 @@ Set these on the element, or on a class you put on it, to retune this component
15053
15114
  - `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
15054
15115
  - `CommonTimeSelector` _(internal — not importable, reach it through `BbCalendar`)_ — its own pt parts (`BbCalendar`): `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`; also mounts `BbBaseButton`
15055
15116
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
15056
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
15117
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
15057
15118
  - Also mounts `CommonPopover`
15058
15119
 
15059
15120
  ## See Also
@@ -15248,6 +15309,8 @@ line: `if (!Array.isArray(value)) return;` before treating it as the range.
15248
15309
  For a window that often crosses the month line, `:number-of-months="2"` shows
15249
15310
  two months side by side in the popover (one in the phone sheet). If the
15250
15311
  popover doesn't have room for both, the second month wraps under the first.
15312
+ With one month, the greyed days of the previous and next month are pickable
15313
+ too: clicking one picks it and moves the calendar to its month.
15251
15314
 
15252
15315
  **Booking — two months in the popover**
15253
15316
 
@@ -15330,7 +15393,9 @@ and parses its own digits. Any other attribute lands on the field root; a
15330
15393
 
15331
15394
  `min` and `max` (each a `YYYY-MM-DD` string) constrain the selectable window;
15332
15395
  days outside it render disabled in the calendar, and a typed out-of-range date is
15333
- snapped back on commit. **Malformed `min`/`max` throw during setup** on purpose,
15396
+ snapped back on commit. A value your app sets past a bound (on mount or later)
15397
+ stays as it is while nobody touches the field; once the user focuses it and
15398
+ leaves, it snaps like a typed one. **Malformed `min`/`max` throw during setup** on purpose,
15334
15399
  to catch config mistakes early — always pass the `YYYY-MM-DD` shape.
15335
15400
 
15336
15401
  For non-contiguous rules (no weekends, no holidays, only in-stock slots), pass a
@@ -15838,6 +15903,15 @@ const from = ref<string | null>('2026-05-01');
15838
15903
  </script>
15839
15904
  ```
15840
15905
 
15906
+ ### Opening from code: `v-model:open`
15907
+
15908
+ `v-model` is the value; `v-model:open` is whether the calendar is open. Bound,
15909
+ your ref opens and closes it, and every open and close the user makes is
15910
+ written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
15911
+ listener is only the initial state. An open from code is the same open a
15912
+ click makes, and `disabled` / `readonly` refuse it (the ref is set back
15913
+ to `false`).
15914
+
15841
15915
  ### Events & v-model
15842
15916
 
15843
15917
  Because the control is a composite (segmented fields + calendar + optional
@@ -16042,6 +16116,7 @@ label>')` matches nothing; query each segment by its own label instead. See
16042
16116
  ## v-model
16043
16117
 
16044
16118
  - `v-model` — type: `string \| string[] \| null \| undefined`
16119
+ - `v-model:open` — type: `boolean \| undefined`
16045
16120
  - `v-model:time` — type: `string \| string[] \| null \| undefined`
16046
16121
 
16047
16122
  ## Props
@@ -16082,6 +16157,7 @@ label>')` matches nothing; query each segment by its own label instead. See
16082
16157
  | `name` | `string \| undefined` | | | Defines the name of the input. |
16083
16158
  | `numberOfMonths` | `number \| undefined` | `1` | | How many months the calendar popover shows side by side (day grids only); the phone sheet always shows one. Too narrow for them all, the months wrap. |
16084
16159
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
16160
+ | `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
16085
16161
  | `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
16086
16162
  | `placeholder` | `string \| undefined` | | | Text shown while the field is empty. |
16087
16163
  | `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
@@ -16170,6 +16246,7 @@ States are listed in precedence order: when two are on at once and their entries
16170
16246
  - `show` — `(): void` — Emitted as soon as the calendar surface starts to open (the popover, or the sheet on a phone).
16171
16247
  - `shown` — `(): void` — Emitted once the calendar surface is open and its open transition has finished.
16172
16248
  - `update:modelValue` — `(value: string \| string[] \| null): void` — Emitted whenever the selected date value changes. Payload is `null` for cleared values, a single string for single-date mode, or a two-element array for range mode.
16249
+ - `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
16173
16250
  - `update:time` — `(value: string \| string[] \| null): void` — Companion time model (`v-model:time`), emitted alongside every value change while `type="datetime"` is on. Always 24-hour `HH:mm` (or `HH:mm:ss` with `seconds`); `null` when cleared, an array in range mode.
16174
16251
 
16175
16252
  ## Slots
@@ -16211,7 +16288,7 @@ Set these on the element, or on a class you put on it, to retune this component
16211
16288
  - `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
16212
16289
  - `CommonTimeSelector` _(internal — not importable, reach it through `BbCalendar`)_ — its own pt parts (`BbCalendar`): `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`; also mounts `BbBaseButton`
16213
16290
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
16214
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
16291
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
16215
16292
  - `CommonField` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
16216
16293
  - `CommonFieldInput` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
16217
16294
  - Also mounts `BbIcon`
@@ -16259,7 +16336,8 @@ Set these on the element, or on a class you put on it, to retune this component
16259
16336
  | --- | --- | --- | --- |
16260
16337
  | `--size` | `pt:close` | `CloseButton` | the button box — the hit target, not the glyph |
16261
16338
  | `--p` | `pt:close` | `CloseButton` | padding inside that box; what is left of --size is the glyph |
16262
- | `--icon-size` | `pt:close` | `CloseButton` | Glyph: whatever the padding leaves, but never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
16339
+ | `--icon-size` | `pt:close` | `CloseButton` | Glyph: the ✕ is drawn on a 24 grid with a stock icon's proportions (its ink spans 12 of the 24 units, as Lucide's, Tabler's and Phosphor's do), so any set's ✕ can stand in. Its box is what the padding leaves × 22/12: the ink then spans what the old edge-to-edge glyph painted, the same optical size in the same button box (the extra box overflows the padding, unpainted). Never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
16340
+ | `--icon-inset` | `pt:close` | `CloseButton` | Centres that larger box on the padding box (negative: it overflows it evenly). Resolved here for the same `--size` reason. |
16263
16341
 
16264
16342
  ## Usage & Guidelines
16265
16343
 
@@ -16588,7 +16666,9 @@ const replace = (saved: Member) => {
16588
16666
  deleted, a route change) still plays its close and hands focus back. An
16589
16667
  async `@complete` that removed it still decides the result: completed
16590
16668
  when it succeeds, else `'unmounted'`. So `v-if="item"` on the dialog is
16591
- fine.
16669
+ fine. In your own tests, the page stays inert for that close (its
16670
+ `transition-duration`), as for any close: wait for focus to come back
16671
+ before a `focus()`. Clicks driven by Playwright wait on their own.
16592
16672
  - It settles when the close **starts**, together with `@hide`, so a list can
16593
16673
  update while the dialog fades out. It never rejects and never hangs. A
16594
16674
  refused close settles nothing, and a `complete` after a dismissal is
@@ -18179,7 +18259,7 @@ Set these on the element, or on a class you put on it, to retune this component
18179
18259
  - Listed nodes are the ones `BbDialog`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbDialog.tree.json` (a public component in it is a name: its own tree file has the rest).
18180
18260
 
18181
18261
  - `BbDialog` _(this component)_ — its own template binds: `header` → `div.bb-dialog__header`, `title` → `span.bb-dialog__title`, `description` → `p.bb-dialog__description`, `close` → `CloseButton`, `content` → `div.bb-dialog__content`, `footer` → `div.bb-dialog__footer`; hands `BbOffCanvas` the pt map `{ root: 'root', header: 'header', title: 'title', description: 'description', content: 'content', footer: 'footer', close: 'close', sheet: 'root', }` (ours → theirs)
18182
- - `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
18262
+ - `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
18183
18263
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`; also mounts `CloseButton`
18184
18264
 
18185
18265
  ## See Also
@@ -18245,13 +18325,13 @@ An `items` entry is one of three shapes, and you can mix them freely:
18245
18325
 
18246
18326
  - a **menu item** — an object with a `value` and a `label`; a string or
18247
18327
  number row is its own text and value (`items: ['Google', 'Bing']`);
18248
- - a **separator section** — a nested `[ … ]` array, rendered as its own
18249
- divider-separated anonymous group;
18328
+ - a **divider run** — a nested `[ … ]` array: its rows, with a divider before
18329
+ and after, and nothing else (no title, no value of its own);
18250
18330
  - a **group object** — `{ id, label?, items, selectable?, … }`, a titled and/or
18251
- selectable section (next sections). A group with plain rows and no
18331
+ selectable group (described below). A group with plain rows and no
18252
18332
  `selectable` needs `group: true` to be a group rather than a submenu row;
18253
- [Titled sections](#titled-sections-group-true-or-groupby) compares it with
18254
- `groupBy`, which titles the rows of one group. A group's heading is its `label` too;
18333
+ [Headings](#headings-group-true-or-groupby) compares it with
18334
+ `groupBy`, which puts the rows of one group under headings. A group's heading is its `label` too;
18255
18335
  add `hideLabel` to keep the `label` for the adaptive sheet title / chips /
18256
18336
  `useBbDropdown` while rendering no heading in the menu.
18257
18337
 
@@ -18360,7 +18440,7 @@ const items: BbDropdownItem[] = [
18360
18440
  href: '#preview',
18361
18441
  target: '_blank',
18362
18442
  },
18363
- // A nested array becomes its own divider-separated section. A destructive
18443
+ // A nested array becomes its own divider run. A destructive
18364
18444
  // item never acts directly: its onClick awaits useConfirm and only
18365
18445
  // proceeds on a yes.
18366
18446
  [
@@ -18869,20 +18949,21 @@ rows distinct values when it matters:
18869
18949
  - **Submenu parents.** A row that opens a submenu needs a value unique in the
18870
18950
  whole menu; the flyout is addressed by it.
18871
18951
 
18872
- ### Titled sections: `group: true` or `groupBy`
18952
+ ### Headings: `group: true` or `groupBy`
18873
18953
 
18874
18954
  Two ways to put headings in a menu, for two different needs:
18875
18955
 
18876
- - **Independent sections, each its own group: `group: true`.** A group object
18877
- with `group: true` is a titled section (its `label` is the heading) without
18878
- being selectable; give it `selectable` and it becomes its own chooser. Each
18956
+ - **Independent groups, each its own chooser: `group: true`.** A group object
18957
+ with `group: true` is titled (its `label` is the heading) without being
18958
+ selectable; give it `selectable` and it becomes its own chooser. Each
18879
18959
  group keeps **its own** value (its own companion and `v-model`) and, when
18880
- `searchable`, its own search field. Use it for sections that answer
18960
+ `searchable`, its own search field. Use it for groups that answer
18881
18961
  different questions ("Sort by" / "Show").
18882
18962
  - **One choice, sorted under headings: `groupBy` on one group.** The rows of a
18883
- single group are listed under section headings, and it stays one group:
18963
+ single group are listed under headings, and it stays one group:
18884
18964
  **one** `v-model`, **one** search field. Use it when the headings only
18885
18965
  organise the options of one question (categories under their sector).
18966
+ Its headings are sticky, as `BbSelect`'s group headers are.
18886
18967
 
18887
18968
  ```vue
18888
18969
  <BbDropdown
@@ -18908,14 +18989,23 @@ Two ways to put headings in a menu, for two different needs:
18908
18989
  - `groupBy` is a field path (`'sector'`, `'owner.team'`) read off each row,
18909
18990
  or a function `(row) => string | null | undefined`. On a fetched group it
18910
18991
  reads the **raw item**, so `items: ({ query }) => …` groups the same way.
18911
- - Sections keep the order of their first row. Rows whose `groupBy` gives
18912
- `null`, `undefined` or `''` have no section: they are listed **first**,
18992
+ - Headings keep the order of their first row. Rows whose `groupBy` gives
18993
+ `null`, `undefined` or `''` have no heading: they are listed **first**,
18913
18994
  before every heading — the same rule as `BbSelect`'s `group-by`.
18914
18995
  - A heading is not a row: the arrows and typeahead skip it, and it is never
18915
- selected. A search hides a section left without a matching row, heading
18916
- included.
18917
- - Each titled section is a `role="group"` labelled by its heading, with the
18918
- look of a group heading. The adaptive sheet shows the same sections.
18996
+ selected. A search hides a heading left without a matching row.
18997
+ - The rows under each heading are a `role="group"` labelled by it, with the
18998
+ look of a group title. The adaptive sheet shows the same headings.
18999
+ - `#group` replaces every heading's content, `#<groupId>:group` one group's,
19000
+ with `BbSelect`'s `#group` scope: `{ text, item, index, length, disabled }`
19001
+ (`item` is the raw `groupBy` value, `length` the rows under it, `disabled`
19002
+ whether all of them are). A count and a divider, for example:
19003
+
19004
+ ```vue
19005
+ <template #category:group="{ text, length }">
19006
+ {{ text }} <span class="ms-auto text-xs">{{ length }}</span>
19007
+ </template>
19008
+ ```
18919
19009
 
18920
19010
  ### Loading options on demand
18921
19011
 
@@ -18938,9 +19028,10 @@ The full grammar:
18938
19028
  need the mapping. On a **`searchable`** group the context also carries
18939
19029
  `query` (what the user typed, and `reason: 'search'` when they did) —
18940
19030
  the same shape `BbSelect` passes, which is why one provider drops into both.
18941
- A getter **throws** to fail: the group shows its failure row (an error
18942
- icon and `failedText`) instead of "no data", even when `#empty` is
18943
- slotted: `#empty` means empty.
19031
+ A getter **throws** to fail: the panel shows the group's failure row (an
19032
+ error icon, `failedText` and a "Try again" button that runs the failed call
19033
+ again with the same query) next to the menu, instead of "no data", even
19034
+ when `#empty` is slotted: `#empty` means empty.
18944
19035
  - `itemText` / `itemValue` — a path string or getter producing each raw item's
18945
19036
  label and value; without them a row reads its own `label` (else `text`) and
18946
19037
  `value`. `v-model` on the companion surfaces the selected value(s);
@@ -19418,7 +19509,7 @@ What each knob does:
19418
19509
  ranked search (case and accents ignored; exact, then starts-with, then word
19419
19510
  starts, then contains, then a code typed without separators; one typo per
19420
19511
  word of 5+ letters only when nothing else matched; ranked inside each
19421
- `groupBy` section), and on an async group passes the typed text to the getter as
19512
+ `groupBy` heading), and on an async group passes the typed text to the getter as
19422
19513
  `query` in its context object (`reason: 'search'`), the same shape
19423
19514
  `BbSelect` uses, so one provider serves both.
19424
19515
  - **`filterBy`** picks which raw fields the local search reads. Empty
@@ -19436,9 +19527,11 @@ What each knob does:
19436
19527
  `searchable`, which is the one place the three-state `prefill` differs from a
19437
19528
  plain menu group (`'interaction'`, the default, fetches when the group is
19438
19529
  first reached; `true` fetches on mount).
19439
- - **A minimum query length** is the getter's call and the `#empty` slot's
19440
- copy: return `[]` below it, and read `query` in the slot. The slot also
19441
- replaces the search-first hint, so one condition covers both:
19530
+ - **`minQueryLength`** (as on `BbSelect`): below that many characters
19531
+ (after trimming; an emoji is one) the query counts as empty, so no `'search'` call and no filtering
19532
+ run, and the field says how many characters to type (on a search-first
19533
+ group, its hint row too: "Type at least 2 characters"). Slots still get the
19534
+ typed `query`. No guard in the getter:
19442
19535
 
19443
19536
  ```vue
19444
19537
  <BbDropdown
@@ -19449,15 +19542,12 @@ What each knob does:
19449
19542
  searchable: true,
19450
19543
  selectable: true,
19451
19544
  prefill: false,
19545
+ minQueryLength: 2,
19452
19546
  filterBy: false,
19453
- items: ({ query }) => (query.length < 2 ? [] : api.zones({ q: query })),
19547
+ items: ({ query }) => api.zones({ q: query }),
19454
19548
  },
19455
19549
  ]"
19456
- >
19457
- <template #empty="{ query, text }">
19458
- {{ query.length < 2 ? 'Type at least 2 characters' : text }}
19459
- </template>
19460
- </BbDropdown>
19550
+ />
19461
19551
  ```
19462
19552
 
19463
19553
  - **`stash`** accumulates the items behind _selected_ keys so they stay
@@ -19536,7 +19626,8 @@ when unsure, write `#[slotKey('Qualità')]` (`import { slotKey } from
19536
19626
  | --- | --- |
19537
19627
  | `#<value>`, `#<value>:prepend`, `#<value>:append` | one row — its content, leading or trailing region |
19538
19628
  | `#<groupId>:item`, `#<groupId>:item:prepend`, `…:item:append` | **every row of that group**, and nothing else |
19539
- | `#<groupId>`, `#<groupId>:prepend`, `#<groupId>:append` | that group's title line |
19629
+ | `#<groupId>:label`, `#<groupId>:prepend`, `#<groupId>:append` | that group's title line — its content, leading or trailing |
19630
+ | `#group`, `#<groupId>:group` | the `groupBy` headings — every group's, or one group's |
19540
19631
  | `item:prepend`, `item:append` | every row **and** every group title line, across the menu |
19541
19632
 
19542
19633
  Each edge of a row has **one occupant** — nothing renders side by side. From
@@ -19551,7 +19642,9 @@ strongest to weakest:
19551
19642
  | `item:prepend` | `item:append` |
19552
19643
  | `prepend:icon` | `append:icon` |
19553
19644
 
19554
- So a slot always replaces the row's icon and the most specific slot wins. A
19645
+ So a slot replaces the row's icon and the most specific slot wins. A slot
19646
+ that renders nothing for a row (its content behind a `v-if` that is false
19647
+ there) is skipped: the next one down draws, down to the row's own icon. A
19555
19648
  row's own `#<value>:append` is written for that one row, so it may replace its
19556
19649
  submenu chevron; the group-wide and shared append slots never do, so a submenu
19557
19650
  row keeps its chevron unless you name it. The check beats everything — as in
@@ -19817,8 +19910,9 @@ Two things this replaces, both seen in real apps:
19817
19910
  `v-else-if="clinicsById.get(item.value)"`) to tell a record row from an action
19818
19911
  row, and a lookup map rebuilt from the fetch to get the record back. The
19819
19912
  group row slot is the "which rows" answer; `item.meta` is the record.
19820
- - **Re-drawing the other rows' icons**, because a shared `item:prepend`
19821
- replaces every row's `prepend:icon`.
19913
+ - **Re-drawing the other rows' icons** in a shared `item:prepend`. A shared
19914
+ slot that renders nothing for a row leaves that row its `prepend:icon`, but
19915
+ the group row slot never has to ask.
19822
19916
 
19823
19917
  ### Header and footer
19824
19918
 
@@ -19834,6 +19928,12 @@ in one `<div>`: a single wrapping element stretches across the sheet and lays
19834
19928
  out its children itself. The example below does that, so the button spans the
19835
19929
  footer on both surfaces.
19836
19930
 
19931
+ A note in the footer (a sentence, not a button) is text like any other: with
19932
+ the default `width="auto"` the menu grows to fit it, and it wraps only once
19933
+ the menu reaches the space it has, so a long note makes a wide menu over short
19934
+ rows. Set `width` on the dropdown (`:width="240"`) and the note wraps at that
19935
+ width instead. No zero-width wrapper or `nowrap` override is needed.
19936
+
19837
19937
  **Pinned header and footer**
19838
19938
 
19839
19939
  ```vue
@@ -19947,6 +20047,66 @@ const items: BbDropdownItem[] = [
19947
20047
  </script>
19948
20048
  ```
19949
20049
 
20050
+ ### Opening from code: `v-model`
20051
+
20052
+ `v-model` is whether the menu is open, as on `BbDialog` and `BbOffCanvas`.
20053
+ Bound, your flag controls it: set it to `true` and the menu opens at its
20054
+ activator (or at `anchor`, when there is no activator to open it), with focus
20055
+ on its first row, as a keyboard open; set it to `false` and it closes, focus
20056
+ going back to the activator (or to where it was). The user's opens and closes
20057
+ update the flag. A static `:model-value` with no listener is only the initial
20058
+ state: `:model-value="false"` starts closed, and the activator still opens it.
20059
+
20060
+ The case it is for: one menu's row opens another menu at the same place — a
20061
+ row menu's "Delegate to…" that opens a searchable people menu under the same
20062
+ button, or a dialog header action that opens a menu anchored to it:
20063
+
20064
+ ```vue
20065
+ <script setup lang="ts">
20066
+ import { ref, useTemplateRef } from 'vue';
20067
+ const delegating = ref(false);
20068
+ const rowMenu = useTemplateRef('rowMenu');
20069
+ </script>
20070
+
20071
+ <template>
20072
+ <BbDropdown
20073
+ :items="[
20074
+ { value: 'edit', label: 'Edit' },
20075
+ {
20076
+ value: 'delegate',
20077
+ label: 'Delegate to…',
20078
+ onClick: () => (delegating = true),
20079
+ },
20080
+ ]"
20081
+ >
20082
+ <template #activator="{ props }">
20083
+ <BbButton ref="rowMenu" v-bind="props" icon-only prepend:icon="dots"
20084
+ >More</BbButton
20085
+ >
20086
+ </template>
20087
+ </BbDropdown>
20088
+ <BbDropdown
20089
+ v-model="delegating"
20090
+ :anchor="rowMenu"
20091
+ :items="[
20092
+ {
20093
+ id: 'people',
20094
+ label: 'People',
20095
+ selectable: true,
20096
+ searchable: true,
20097
+ items: searchPeople,
20098
+ },
20099
+ ]"
20100
+ >
20101
+ <BbDropdownGroup id="people" v-model="assignee" />
20102
+ </BbDropdown>
20103
+ </template>
20104
+ ```
20105
+
20106
+ The first menu closes as its row runs, and the second opens under the same
20107
+ button with focus inside it; Escape, an outside press or a pick closes it and
20108
+ sets `delegating` back to `false`.
20109
+
19950
20110
  ### Placement, width and boundaries
19951
20111
 
19952
20112
  - `placement` (default `'bottom'`) accepts every floating-UI placement
@@ -19968,7 +20128,11 @@ const items: BbDropdownItem[] = [
19968
20128
  edge away from the trigger, and only the viewport flips it) tune positioning.
19969
20129
  Pass `boundary` a `useTemplateRef` or a selector, not `$refs.x`: `$refs` is
19970
20130
  not reactive, so a menu in a table cell rendered before the ref was set keeps
19971
- no boundary until that row happens to re-render. `eager` pre-renders the panel
20131
+ no boundary until that row happens to re-render. Inside a `BbTable` (a row
20132
+ menu, a cell's ⋯) the default keeps the menu within the table's left and
20133
+ right edges only: it still opens below its trigger, or flips above at the
20134
+ viewport, never at the table's bottom. A `boundary` replaces that default
20135
+ entirely. `eager` pre-renders the panel
19972
20136
  before first open; `transitionDuration` controls the open/close animation.
19973
20137
  - The menu closes itself on outside click/focus, on `Escape`, when another
19974
20138
  dropdown opens, and when the activator scrolls out of view. `disabled`
@@ -20149,15 +20313,18 @@ object form, a style and attributes — optionally only while a state is on.
20149
20313
  Parts: `root` (the flyout — an invisible positioning wrapper, no node on
20150
20314
  mobile), `panel` (the menu surface you see — background, border, radius and
20151
20315
  shadow live here; the sheet itself on mobile), `sheet` (the bottom sheet the surface becomes on a phone — only that sheet, never the desktop surface; applied after `panel`, so it wins a conflict there),
20152
- `header`, `footer`, `input` (every `searchable` group's search field — a
20153
- broadcast, on the flyout and the phone sheet alike; its magnifier is chrome),
20316
+ `header`, `footer`, `box` (every `searchable` group's search box, around the
20317
+ field and its magnifier: what `box` is on a field — border, background and
20318
+ radius go here; on the flyout and the phone sheet alike), `input` (every
20319
+ `searchable` group's search field — a broadcast, on the flyout and the phone
20320
+ sheet alike; its magnifier is chrome),
20154
20321
  `list` (the top-level entries container between the bands
20155
20322
  — a flex column with a 1px gap; a submenu's list is not reached), `item` — every entry, submenus included, a broadcast
20156
20323
  resolved per entry — and `itemText` / `itemIcon` / `itemDescription`, that
20157
20324
  entry's label, its prepend / append icons and its muted second line (the item's
20158
20325
  `label` / `prepend:icon` · `append:icon` / `description`), resolved with the entry's
20159
- states (a per-entry `#<value>` slot replaces the label and description), and `check`, the tick at the end of a selectable group's checked entry (a row slot never replaces it; `pt:check="hidden"` drops it and leaves a mark your slot draws alone), and `submenu`, every submenu's flyout box at any depth (desktop: a phone sheet drills into submenus in place, so style what you see there with `panel`). States: `open`, and `selected` / `disabled` per entry.
20160
- Groups, headings and dividers are not parts.
20326
+ states (a per-entry `#<value>` slot replaces the label and description), `groupLabel` (every group's label row: its `label` and icons, the row an `onClick` group activates; `#<id>:label` replaces its content) and `groupHeader` (every `groupBy` heading, sticky; `#group` / `#<id>:group` replace its content), and `check`, the tick at the end of a selectable group's checked entry (a row slot never replaces it; `pt:check="hidden"` drops it and leaves a mark your slot draws alone), and `submenu`, every submenu's flyout box at any depth (desktop: a phone sheet drills into submenus in place, so style what you see there with `panel`). States: `open`, and `selected` / `disabled` per entry.
20327
+ A group's items box and the dividers are not parts.
20161
20328
 
20162
20329
  The invoice View menu, restyled through those parts: a muted wash on
20163
20330
  `pt:header` and on `pt:item:selected` (per entry), muted
@@ -20487,11 +20654,10 @@ own sizes.
20487
20654
  `<BbDropdownGroup>` companions; a button there opens nothing. Use
20488
20655
  `<template #activator="{ props }">` + `v-bind="props"`, or `v-bb-dropdown`
20489
20656
  (`bitboss-ui/dropdown-default-slot` and `check` report it).
20490
- - **There is no open flag to bind.** The menu keeps its open state internal
20491
- (no `v-model:open`, by design): the activator opens it, a pick or an outside
20492
- press closes it, and `@show` / `@hide` tell you when. Don't reopen it from a
20493
- `@focus` handler on the activator — closing returns focus there, and the two
20494
- fight in a loop.
20657
+ - **Open it from code with `v-model`, never with a hidden activator's
20658
+ `.click()`** (§ Opening from code). Don't reopen it from a `@focus` handler
20659
+ on the activator — closing returns focus there, and the two fight in a
20660
+ loop.
20495
20661
  - **Don't navigate from `onClick`** (`router.push`, `window.location`) — give
20496
20662
  the item `href`/`to` and let it render a real link.
20497
20663
  - **Don't rebuild selection** with `onClick` + your own state — mark the group
@@ -20603,33 +20769,38 @@ uses `ArrowRight` / `ArrowLeft` and its back control; `Escape` on a drilled-in
20603
20769
  level (row or search box) goes back one level, focus on the row that opened
20604
20770
  it, and at the top level closes the sheet.
20605
20771
 
20772
+ ## v-model
20773
+
20774
+ - `v-model` — type: `boolean \| undefined`
20775
+
20606
20776
  ## Props
20607
20777
 
20608
20778
  | Prop | Type | Default | Required | Description |
20609
20779
  | --- | --- | --- | --- | --- |
20610
- | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `check`, `footer`, `header`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `list`, `panel`, `root`, `sheet`, `submenu`. States: `activeLink`, `default`, `destructive`, `disabled`, `exactActiveLink`, `open`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDropdownProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
20780
+ | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `box`, `check`, `footer`, `groupHeader`, `groupLabel`, `header`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `list`, `panel`, `root`, `sheet`, `submenu`. States: `open`, `activeLink`, `default`, `destructive`, `disabled`, `exactActiveLink`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDropdownProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
20611
20781
  | `activator` | `ElementOrComponentRef \| undefined` | | | An external activator (element or component ref): the slot isn't rendered; the listeners and ARIA (`aria-haspopup` / `aria-expanded` / `aria-controls`) go on it, so don't add your own. |
20612
- | `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`), renders the menu as a bottom sheet that drills into submenus one level at a time instead of hover flyouts; slots and selection are unchanged. Unset: the global `all.adaptive`. |
20782
+ | `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`), the menu is a bottom sheet drilling into submenus a level at a time, not hover flyouts; slots and selection unchanged. Unset: the global `all.adaptive`. |
20613
20783
  | `anchor` | `ElementOrComponentRef \| VirtualAnchor \| undefined` | `the activator element` | | What the panel positions against instead of the activator (e.g. a wrapper around it): an element, a component ref or a virtual box. It also sets a percentage `width`. Ignored with `placement="cursor"`. |
20614
- | `boundary` | `string \| ElementOrComponentRef \| undefined` | | | Keeps the panel inside this element beside its trigger (sideways for a menu above or below); away from it the panel may pass the edge, and only the viewport flips it. An element, a component ref or a CSS selector (a `useTemplateRef`, not `$refs.x`: not reactive). |
20615
- | `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a change in a single-choice group closes it (an untick too, at any depth); a `multiple` group stays open. `true`: every selection change closes it. `false`: none does. |
20616
- | `compact` | `boolean \| undefined` | `undefined` | | Compact density, the `BbSelect` ladder: flyout rows 28px → 24px, sheet rows 44px → 36px (a sheet row stays a touch target). The label size does not change. |
20784
+ | `boundary` | `string \| ElementOrComponentRef \| undefined` | | | Keeps the panel inside this element beside its trigger (sideways under a menu); away from it only the viewport flips it. An element, component ref or CSS selector (a `useTemplateRef`, not `$refs.x`). In a `BbTable`: its left and right edges. |
20785
+ | `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a single-choice group's change closes it (an untick too, any depth), a `multiple` group stays open. `true`: every change closes it; `false`: none. |
20786
+ | `compact` | `boolean \| undefined` | `undefined` | | Compact density, the `BbSelect` ladder: flyout rows 28 → 24px, sheet rows 44 → 36px (still a touch target). The label size stays. |
20617
20787
  | `disabled` | `boolean \| undefined` | `false` | | Disables the component |
20618
- | `eager` | `boolean \| undefined` | `false` | | Renders the menu panel at mount instead of on the first open (the phone sheet's too), and keeps its rows after a close. Without it the rows mount on each open and go once the menu has closed. |
20619
- | `emptyText` | `string \| undefined` | | | Default placeholder text shown when a pipeline group resolves to no items. A group's own `emptyText` overrides this; both fall back to the localized `common.emptyText` (`'No data to display'`). |
20788
+ | `eager` | `boolean \| undefined` | `false` | | Renders the panel (the phone sheet's too) at mount, not on the first open, and keeps its rows after a close; otherwise rows mount on each open and go after the close. |
20789
+ | `emptyText` | `string \| undefined` | | | A pipeline group's no-items row; its own `emptyText` wins. Default: `common.emptyText`. |
20620
20790
  | `enforceCoherence` | `boolean \| undefined` | `false` | | Default for pipeline groups: drop selections that are no longer present in a group's current items (e.g. after a `dependencies` re-fetch) from the selection and `v-model`. A group's own `enforceCoherence` overrides this. |
20621
- | `failedText` | `string \| undefined` | | | Default placeholder text shown when a pipeline group's latest load FAILED (its `items` getter threw). A group's own `failedText` overrides this; both fall back to the localized `common.failedText` (`"Couldn't load items"`). |
20791
+ | `failedText` | `string \| undefined` | | | A pipeline group's failed-load row (its getter threw); its own `failedText` wins. Default: `common.failedText`. |
20622
20792
  | `id` | `string \| undefined` | | | Names this dropdown: the activator's id (unless it already has one), the menu's `menu_<id>`, and the key `useBbDropdown(id)` and a companion `BbDropdownGroup` pair by. Generated when omitted. |
20623
- | `items` | `(BbDropdownItem \| PrimitiveRow)[]` | `[]` | yes | The menu rows, each a `BbBaseButton` (`button`, `a` or `router-link`): a flat array for one group, nested arrays for divider-separated groups, or `InternalGroup` objects for titled / selectable sections. A row's own `items` opens a submenu. |
20793
+ | `items` | `(BbDropdownItem \| PrimitiveRow)[]` | `[]` | yes | The menu rows, each a `BbBaseButton` (`button`, `a` or `router-link`): a flat array for one group, nested arrays for divider-separated groups, or `InternalGroup` objects for titled / selectable groups. A row's own `items` opens a submenu. |
20624
20794
  | `keepActivator` | `boolean \| undefined` | `false` | | Keeps the trigger when no row is visible (by default it is hidden): inert, no popup ARIA, `empty` in the activator slot. A `contextMenu` trigger always stays. |
20625
- | `loadingText` | `string \| undefined` | | | Default placeholder text shown while a pipeline group's async items load. A group's own `loadingText` overrides this; both fall back to the localized `common.loadingText` (`'Loading...'`). |
20795
+ | `loadingText` | `string \| undefined` | | | A pipeline group's loading row; its own `loadingText` wins. Default: `common.loadingText`. |
20796
+ | `modelValue` | `boolean \| undefined` | `undefined` | | Whether the menu is open (`v-model`): `true` opens it from code at its activator or `anchor`. Unbound: the initial state. |
20626
20797
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
20627
20798
  | `offset` | `number \| undefined` | `4` | | Space the floating container will maintain from the activator. |
20628
20799
  | `padding` | `number \| undefined` | `10` | | Minimum empty space to keep from the edge of the page |
20629
20800
  | `placement` | `'start'` \| `'end'` \| `'top'` \| `'bottom'` \| `'left'` \| `'right'` \| `'top-start'` \| `'top-end'` \| `'right-start'` \| `'right-end'` \| `'bottom-start'` \| `'bottom-end'` \| `'left-start'` \| `'left-end'` \| `'start-start'` \| `'start-end'` \| `'end-start'` \| `'end-end'` \| `'cursor'` | `"bottom"` | | Position relative to the activator; `'cursor'` anchors at the mouse/touch point. No arrow (tooltips only). |
20630
20801
  | `queryDebounceTime` | `number \| undefined` | `300` | | Debounce (ms) applied to the async re-fetch a `searchable` group fires as the user types. Applies to every searchable group in the menu. |
20631
- | `transitionDuration` | `number \| undefined` | `150` | | The open / close transition in milliseconds. Menus take the fast one (150), not the popovers' medium 250: a menu is picked from and gone, so it answers faster than a panel you read or edit in. |
20632
- | `trigger` | `DropdownTrigger \| DropdownTrigger[] \| undefined` | `"click"` | | Interaction(s) that open the dropdown. Accepts a single trigger or an array to combine them. - `'click'` — left-click / tap (default) - `'contextMenu'` — right-click on desktop, long-press on mobile |
20802
+ | `transitionDuration` | `number \| undefined` | `150` | | The open / close transition (ms). Menus take the fast 150, not the popovers' 250: a menu is picked from and gone, quicker than a panel you read or edit. |
20803
+ | `trigger` | `DropdownTrigger \| DropdownTrigger[] \| undefined` | `"click"` | | What opens the menu, one or an array: `'click'` (left-click / tap) or `'contextMenu'` (right-click; long-press on mobile). |
20633
20804
  | `width` | `string \| number \| undefined` | `"auto"` | | Width of the dropdown in pixels, percentage, or 'auto' to fit content. |
20634
20805
 
20635
20806
  ## Passthrough parts and states
@@ -20638,17 +20809,20 @@ it, and at the top level closes the sheet.
20638
20809
 
20639
20810
  | Part | What it is |
20640
20811
  | --- | --- |
20641
- | `root` | The floating element — an invisible positioning wrapper; a `class` on the component lands here. No node on the phone sheet: style what you see with `panel`. |
20812
+ | `root` | The floating element, an invisible positioning wrapper; a `class` on the component lands here. No node on the phone sheet (style `panel` there). |
20642
20813
  | `panel` | The menu surface you see — the bordered flyout box on desktop, the sheet itself on a phone. |
20643
- | `sheet` | The bottom sheet the menu becomes on a phone (the `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there. |
20814
+ | `sheet` | The phone's bottom sheet (the `BbOffCanvas` root), never the desktop surface; applied after `panel`, so it wins a conflict. |
20644
20815
  | `header` | The menu's header band. |
20645
20816
  | `footer` | The menu's footer band. |
20646
- | `input` | A searchable group's search field — a broadcast: it lands on every searchable group's field, desktop and phone alike. Its magnifier glyph is chrome. |
20647
- | `list` | The top-level items container between the bands — the node that lays the entries out (a flex column with a 1px gap; on a phone, the sheet's items container). A submenu's list is not reached. Groups, headings and dividers are not parts. |
20817
+ | `box` | Every searchable group's search box (field and magnifier), as `box` on a field; desktop and phone. |
20818
+ | `input` | Every searchable group's search field, desktop and phone alike. Its magnifier glyph is chrome. |
20819
+ | `list` | The top-level entries' container between the bands (a flex column, 1px gap; on a phone, the sheet's). A submenu's list is not reached. |
20820
+ | `groupLabel` | Every group's label row (its `label` and icons; the row an `onClick` group activates). `#<id>:label` replaces its content. |
20821
+ | `groupHeader` | Every `groupBy` heading (sticky). `#group` / `#<id>:group` replace its content. |
20648
20822
  | `item` | One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry. |
20649
20823
  | `itemText` | An entry's label (its `label`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
20650
20824
  | `itemIcon` | An entry's prepend / append icons — resolved with that entry's states. Also takes a per-item function. |
20651
- | `itemDescription` | An entry's muted second line (its `description`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
20825
+ | `itemDescription` | An entry's muted second line (its `description`), with the entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
20652
20826
  | `check` | A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. Also takes a per-item function. |
20653
20827
  | `submenu` | Every submenu's flyout box (desktop only). Also takes a per-item function, called with the entry that opens it. |
20654
20828
 
@@ -20656,7 +20830,7 @@ States are listed in precedence order: when two are on at once and their entries
20656
20830
 
20657
20831
  | State | When it is on |
20658
20832
  | --- | --- |
20659
- | `activeLink` | Per node, on the entry parts: an entry whose link (`to` / `href`) points at the current page or one of its ancestors — exactly when its `activeClass` is on. The weakest state. |
20833
+ | `activeLink` | Per node, on the entry parts: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state. |
20660
20834
  | `exactActiveLink` | Per node, on the entry parts: an entry whose link points at the current page itself — its `exactActiveClass` is on. |
20661
20835
  | `selected` | Per node, on the entry parts: a selectable group's checked entry. |
20662
20836
  | `disabled` | Per node, on the entry parts: an entry that is disabled. |
@@ -20668,30 +20842,33 @@ States are listed in precedence order: when two are on at once and their entries
20668
20842
 
20669
20843
  - `hidden` — `(): void` — Emitted once the menu has finished closing.
20670
20844
  - `hide` — `(): void` — Emitted as soon as the menu starts to close.
20671
- - `item:selected` — `(value: any): void` — The user selected a row in a selectable group, at the click — also when a controlled companion's app then refuses the value. The payload is the row's value (its `item-value` for pipeline groups, else its `value`).
20845
+ - `item:selected` — `(value: any): void` — The user selected a row in a selectable group, at the click, even when a controlled companion's app then refuses it. Payload: the row's value (`item-value` for pipeline groups, else `value`).
20672
20846
  - `item:unselected` — `(value: any): void` — The user unselected a row (a multiple toggle, a `clearable` re-click, a chip ×, or the old value a single pick replaces). Payload is the item's resolved value, matching `item:selected`.
20673
20847
  - `show` — `(): void` — Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open.
20674
20848
  - `shown` — `(): void` — Emitted once the menu is open and its open transition has finished.
20849
+ - `update:modelValue` — `(value: boolean): void` — The menu opened or closed (`v-model`): `true` on open, `false` on close.
20675
20850
 
20676
20851
  ## Slots
20677
20852
 
20678
20853
  - `activator` — scope: `BbDropdownActivatorSlotProps` `{ disabled?: boolean; empty: boolean; loading: boolean; open: boolean; placement: Placement \| "cursor"; props: BbDropdownActivatorProps }` — The element that triggers the dropdown to open. Spread `props` onto your trigger element.
20679
20854
  - `default` — scope: `any` — Hosts `<BbDropdownGroup>` companions. They register their group with the dropdown and render nothing themselves.
20680
- - `empty` — scope: `BbDropdownPlaceholderSlotProps` `{ groupId?: string; query: string; text: string }` — Replaces the default "no data" placeholder row shown in a pipeline group that resolved to no items. Rendered once per empty group. A failed load is not empty: it keeps its own row (the error icon and `failedText`).
20855
+ - `empty` — scope: `BbDropdownPlaceholderSlotProps` `{ groupId?: string; query: string; text: string }` — Replaces the placeholder row of a pipeline group that resolved to no items, once per empty group. A failed load is not empty: it keeps its own row (error icon, `failedText`).
20681
20856
  - `footer` — scope: `BbDropdownEdgeSlotProps` `{ disabled?: boolean; open: boolean; placement: Placement \| "cursor" }` — Pinned below the rows, outside their scroll, with a divider — for action buttons.
20857
+ - `group` — scope: `BbDropdownGroupSlotProps` `{ text: string; item: unknown; index: number; length: number; disabled: boolean }` — Every group's `groupBy` headings (`BbSelect`'s `#group` scope); `#<groupId>:group` beats it.
20682
20858
  - `header` — scope: `BbDropdownEdgeSlotProps` `{ disabled?: boolean; open: boolean; placement: Placement \| "cursor" }` — Pinned above the rows, outside their scroll, with a divider — for a title or a filter field.
20683
- - `item:append` — scope: `BbDropdownItemSlotProps` `{ description?: string; disabled?: boolean; group: BbDropdownSlotGroup; groupTitle: boolean; level: number; index: number; item: InternalItem; loading: boolean; open: boolean; placement: Placement \| "cursor"; selected: boolean; label: string; activeLink?: boolean; exactActiveLink?: boolean }` — The trailing region of every row (and group title line), replacing its `append:icon`. A named slot wins over it; the submenu chevron and the check on a selected row take its place.
20684
- - `item:prepend` — scope: `BbDropdownItemSlotProps` `{ description?: string; disabled?: boolean; group: BbDropdownSlotGroup; groupTitle: boolean; level: number; index: number; item: InternalItem; loading: boolean; open: boolean; placement: Placement \| "cursor"; selected: boolean; label: string; activeLink?: boolean; exactActiveLink?: boolean }` — The leading region of every row (and group title line), replacing its `prepend:icon`. A row's own or its group's named slot wins over it.
20859
+ - `item:append` — scope: `BbDropdownItemSlotProps` `{ description?: string; disabled?: boolean; group: BbDropdownSlotGroup; groupTitle: boolean; level: number; index: number; item: InternalItem; loading: boolean; open: boolean; placement: Placement \| "cursor"; selected: boolean; label: string; activeLink?: boolean; exactActiveLink?: boolean }` — The trailing region of every row (and group label), replacing its `append:icon` wherever it renders. A named slot wins; a submenu chevron or a selected row's check takes its place.
20860
+ - `item:prepend` — scope: `BbDropdownItemSlotProps` `{ description?: string; disabled?: boolean; group: BbDropdownSlotGroup; groupTitle: boolean; level: number; index: number; item: InternalItem; loading: boolean; open: boolean; placement: Placement \| "cursor"; selected: boolean; label: string; activeLink?: boolean; exactActiveLink?: boolean }` — The leading region of every row (and group title line), replacing its `prepend:icon` wherever it renders. A named slot wins.
20685
20861
  - `loading` — scope: `BbDropdownPlaceholderSlotProps` `{ groupId?: string; query: string; text: string }` — Replaces the default loading placeholder row shown in a pipeline group while its async items load. Rendered once per loading group.
20686
- - `#<value>` (named from data) — scope: `BbDropdownItemSlotProps` — One row's content (label and description), by its value; in a fetched group, by its resolved `itemValue`. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `activator`, `default`, `empty`, `footer`, `header`, `item`, `loading`.
20862
+ - `#<value>` (named from data) — scope: `BbDropdownItemSlotProps` — One row's content (label and description), by its value; in a fetched group, by its resolved `itemValue`. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `activator`, `default`, `empty`, `footer`, `group`, `header`, `item`, `loading`.
20687
20863
  - `#<value>:prepend` (named from data) — scope: `BbDropdownItemSlotProps` — One row's leading region; replaces its `prepend:icon`.
20688
20864
  - `#<value>:append` (named from data) — scope: `BbDropdownItemSlotProps` — One row's trailing region; replaces its `append:icon` and its submenu chevron. The check takes its place on the selected row.
20689
20865
  - `#<groupId>:item` (named from data) — scope: `BbDropdownItemSlotProps` — The content of every row of that group, and no other; a row's own `#<value>` still wins.
20690
20866
  - `#<groupId>:item:prepend` (named from data) — scope: `BbDropdownItemSlotProps` — The leading region of every row of that group — e.g. an avatar per record, drawn from `item.meta`, while other rows keep their `prepend:icon`.
20691
20867
  - `#<groupId>:item:append` (named from data) — scope: `BbDropdownItemSlotProps` — The trailing region of every row of that group; replaces their `append:icon`. The check takes its place on the selected row.
20692
- - `#<groupId>` (named from data) — scope: `BbDropdownItemSlotProps` — That group's title line (the group is passed as `item`, `groupTitle` is `true`). Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `activator`, `default`, `empty`, `footer`, `header`, `item`, `loading`.
20868
+ - `#<groupId>:label` (named from data) — scope: `BbDropdownItemSlotProps` — That group's title content (`item` is the group, `groupTitle` is `true`).
20693
20869
  - `#<groupId>:prepend` (named from data) — scope: `BbDropdownItemSlotProps` — The leading region of that group's title line.
20694
20870
  - `#<groupId>:append` (named from data) — scope: `BbDropdownItemSlotProps` — The trailing region of that group's title line.
20871
+ - `#<groupId>:group` (named from data) — scope: `BbDropdownGroupSlotProps` — That group's `groupBy` headings; beats `group`.
20695
20872
 
20696
20873
  ## CSS custom properties
20697
20874
 
@@ -20714,12 +20891,12 @@ Set these on the element, or on a class you put on it, to retune this component
20714
20891
  - `BbDropdown` _(this component)_ — its own template binds: `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-dropdown__header`, `list` → `span.bb-dropdown__list`, `footer` → `div.bb-dropdown__footer`
20715
20892
  - `BbDropdownList` _(internal — not importable, reach it through `BbDropdown`)_ — also mounts `BbIcon`, `ErrorIcon`, `CommonPopover`, `BbDropdownList`
20716
20893
  - `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
20717
- - `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbDropdownList`
20894
+ - `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbDropdownList`, `DropdownFailures`
20718
20895
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
20719
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
20896
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
20720
20897
  - `BbButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__prepend-icon`, `icon` → `BbIcon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbSpinner`, `BbIcon`
20721
20898
  - `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
20722
- - Also mounts `CommonPopover`, `DropdownPipelineResolver`
20899
+ - Also mounts `CommonPopover`, `DropdownFailures`, `DropdownPipelineResolver`
20723
20900
 
20724
20901
  ## See Also
20725
20902
 
@@ -21233,8 +21410,9 @@ style and attributes — optionally only while a state is on. Parts: `root`
21233
21410
  (the group), `main` and `toggle` (the two halves, each handed to its button as
21234
21411
  its `pt:root`), `icon`, `spinner` and `text` (the main button's — handed to it
21235
21412
  as its own `pt`; the toggle's chevron is chrome), `panel` (the menu), `sheet` (the bottom sheet
21236
- the menu becomes on a phone, only), `input` (every `searchable` group's
21237
- search field), `item` (every entry), and `itemText` /
21413
+ the menu becomes on a phone, only), `box` and `input` (every `searchable`
21414
+ group's search box, and the field in it), `list` (the top-level entries
21415
+ container), `item` (every entry), and `itemText` /
21238
21416
  `itemIcon` / `itemDescription` / `check` (an entry's label, its icons, its muted
21239
21417
  second line and a checked entry's tick), and `submenu` (every submenu's flyout
21240
21418
  box) — all handed to the `BbDropdown` under the same words, so
@@ -21331,6 +21509,15 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
21331
21509
  `pt` prop) is typed as `BbDropdownButtonProps['pt']`, never an imported `PtValue`: see
21332
21510
  [passthrough § Typing `pt` in `<script>`](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md#typing-pt-in-script).
21333
21511
 
21512
+ ### Opening from code: `v-model:open`
21513
+
21514
+ `v-model` is the value; `v-model:open` is whether the menu is open. Bound,
21515
+ your ref opens and closes it, and every open and close the user makes is
21516
+ written back: a pick, Escape, a click outside. A static `:open` with no
21517
+ listener is only the initial state. An open from code is the same open a
21518
+ click makes (focus moves to the first row, and back on close), and `disabled` / `readonly` refuse it (the ref is set back
21519
+ to `false`).
21520
+
21334
21521
  ### Works well with
21335
21522
 
21336
21523
  - [useConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useConfirm.md) — gate a destructive alternate
@@ -21370,27 +21557,31 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
21370
21557
  - While an async action runs, the busy half blocks re-entry automatically;
21371
21558
  don't disable the other half yourself.
21372
21559
 
21560
+ ## v-model
21561
+
21562
+ - `v-model:open` — type: `boolean \| undefined`
21563
+
21373
21564
  ## Props
21374
21565
 
21375
21566
  | Prop | Type | Default | Required | Description |
21376
21567
  | --- | --- | --- | --- | --- |
21377
- | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `check`, `footer`, `header`, `icon`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `main`, `panel`, `root`, `sheet`, `spinner`, `submenu`, `text`, `toggle`. States: `activeLink`, `default`, `destructive`, `disabled`, `exactActiveLink`, `loading`, `open`, `selected`, `ghost`, `link`, `outline`, `primary`, `secondary`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDropdownButtonProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
21568
+ | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `box`, `check`, `footer`, `groupHeader`, `groupLabel`, `header`, `icon`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `list`, `main`, `panel`, `root`, `sheet`, `spinner`, `submenu`, `text`, `toggle`. States: `activeLink`, `disabled`, `exactActiveLink`, `loading`, `open`, `default`, `destructive`, `selected`, `ghost`, `link`, `outline`, `primary`, `secondary`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDropdownButtonProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
21378
21569
  | `activeClass` | `string \| undefined` | | | Class to apply when the link is active. |
21379
- | `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`), renders the menu as a bottom sheet that drills into submenus one level at a time instead of hover flyouts; slots and selection are unchanged. Unset: the global `all.adaptive`. |
21570
+ | `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`), the menu is a bottom sheet drilling into submenus a level at a time, not hover flyouts; slots and selection unchanged. Unset: the global `all.adaptive`. |
21380
21571
  | `append:icon` | `string \| undefined` | | | Icon to be added on the right of the text. |
21381
21572
  | `ariaCurrentValue` | `"time" \| "true" \| "false" \| "page" \| "step" \| "location" \| "date" \| undefined` | `'page'` | | Value passed to the attribute `aria-current` when the link is exact active. |
21382
21573
  | `async` | `boolean \| undefined` | `false` | | Inertia: runs the visit without blocking — the page stays interactive and several async visits can be in flight at once. |
21383
21574
  | `block` | `boolean \| undefined` | `undefined` | | Displays the component as full width. |
21384
21575
  | `cacheFor` | `string \| number \| (string \| number)[] \| undefined` | | | Inertia: how long a prefetched response stays fresh before it is re-fetched. A single duration, or `[staleAfter, expiresAfter]`. Typed platform-agnostically (matching BbButton) so the library's types never require `@inertiajs/vue3` to be installed. |
21385
21576
  | `cacheTags` | `string \| string[] \| undefined` | | | Inertia: tags to file this visit's prefetch cache under, so a later request can invalidate the whole tagged group. |
21386
- | `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a change in a single-choice group closes it (an untick too, at any depth); a `multiple` group stays open. `true`: every selection change closes it. `false`: none does. |
21387
- | `compact` | `boolean \| undefined` | `false` | | Compact density, the `BbSelect` ladder: flyout rows 28px → 24px, sheet rows 44px → 36px (a sheet row stays a touch target). The label size does not change. |
21577
+ | `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a single-choice group's change closes it (an untick too, any depth), a `multiple` group stays open. `true`: every change closes it; `false`: none. |
21578
+ | `compact` | `boolean \| undefined` | `false` | | Compact density, the `BbSelect` ladder: flyout rows 28 → 24px, sheet rows 44 → 36px (still a touch target). The label size stays. |
21388
21579
  | `component` | `string \| undefined` | | | Inertia: the page component this visit resolves to. Rarely set by hand — the server normally decides it. |
21389
21580
  | `data` | `object \| undefined` | | | Request payload forwarded to Inertia when navigating via `href` in an Inertia-enabled app. Ignored when not using Inertia. |
21390
21581
  | `disableAutoLoading` | `boolean \| undefined` | `false` | | Disables the automatic loading state that tracks async actions (enabled by default). Only affects the main action button: the split toggle half still mirrors the dropdown's internal async-action loading state. |
21391
21582
  | `disabled` | `boolean \| undefined` | `false` | | Disables both halves: the main button and the menu toggle. |
21392
21583
  | `download` | `string \| boolean \| undefined` | | | Marks an `href` link as a download: renders a plain `<a download>` doing a native navigation (never an Inertia/router visit), so file downloads work. Pass a string for the suggested filename. A native-anchor signal alongside `target` and `external`. |
21393
- | `eager` | `boolean \| undefined` | `false` | | Renders the menu panel at mount instead of on the first open (the phone sheet's too), and keeps its rows after a close. Without it the rows mount on each open and go once the menu has closed. |
21584
+ | `eager` | `boolean \| undefined` | `false` | | Renders the panel (the phone sheet's too) at mount, not on the first open, and keeps its rows after a close; otherwise rows mount on each open and go after the close. |
21394
21585
  | `exactActiveClass` | `string \| undefined` | | | Class to apply when the link is exact active. |
21395
21586
  | `except` | `string[] \| undefined` | | | Inertia: the inverse of `only` — properties to EXCLUDE from a partial reload. Pass one or the other, not both. |
21396
21587
  | `external` | `boolean \| undefined` | `false` | | Forces an `href` link to render as a plain `<a>` (native navigation), bypassing Inertia/router interception — same intent as Nuxt's `external`. A native-anchor signal alongside `target` and `download`. |
@@ -21417,6 +21608,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
21417
21608
  | `onProgress` | `((progress: { percentage: number \| undefined; }) => void) \| undefined` | | | Progress callback invoked by Inertia with the upload/download percentage when available. |
21418
21609
  | `onStart` | `(() => void) \| undefined` | | | Lifecycle hook invoked by Inertia when a request starts. |
21419
21610
  | `onSuccess` | `(() => void) \| undefined` | | | Lifecycle hook invoked by Inertia when a request succeeds. |
21611
+ | `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
21420
21612
  | `padding` | `number \| undefined` | `10` | | Minimum empty space to keep from the edge of the page |
21421
21613
  | `pageProps` | `Record<string, unknown> \| ((currentProps: Record<string, unknown>, sharedProps: Record<string, unknown>) => Record<string, unknown>) \| null \| undefined` | | | Inertia: props to merge into the next page optimistically, before the server responds. Either an object or a function of the current props. Typed platform-agnostically (matching BbButton) so the library's types never require `@inertiajs/vue3` to be installed. |
21422
21614
  | `placement` | `'start'` \| `'end'` \| `'top'` \| `'bottom'` \| `'left'` \| `'right'` \| `'top-start'` \| `'top-end'` \| `'right-start'` \| `'right-end'` \| `'bottom-start'` \| `'bottom-end'` \| `'left-start'` \| `'left-end'` \| `'start-start'` \| `'start-end'` \| `'end-start'` \| `'end-end'` \| `'cursor'` | `'bottom'` | | Position relative to the activator; `'cursor'` anchors at the mouse/touch point. No arrow (tooltips only). |
@@ -21433,7 +21625,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
21433
21625
  | `text` | `string \| undefined` | | | Text content of the component. |
21434
21626
  | `to` | `string \| et \| X \| undefined` | | | Route Location the link should navigate to when clicked on. |
21435
21627
  | `toggle:icon` | `string \| undefined` | | | Replaces the chevron shown inside the dropdown toggle button. A constrained alternative to a slot: only the toggle's icon changes, so the button keeps its semantics. Named after the part it sits in (the `toggle`), the way `prepend:icon` / `append:icon` name theirs. |
21436
- | `transitionDuration` | `number \| undefined` | `150` | | The open / close transition in milliseconds. Menus take the fast one (150), not the popovers' medium 250: a menu is picked from and gone, so it answers faster than a panel you read or edit in. |
21628
+ | `transitionDuration` | `number \| undefined` | `150` | | The open / close transition (ms). Menus take the fast 150, not the popovers' 250: a menu is picked from and gone, quicker than a panel you read or edit. |
21437
21629
  | `type` | `"button" \| "reset" \| "submit" \| undefined` | | | Gets the classification and default behavior of the button. |
21438
21630
  | `variant` | `'outline'` \| `'primary'` \| `'destructive'` \| `'secondary'` \| `'none'` \| `'ghost'` \| `'link'` | ``components.BbButton.variant`, else `'primary'`` | | Visual variant shared by both buttons of the split control. `'none'` takes no look (you own hover, focus and disabled); register a real one with the plugin's `components.BbButton.variants` and style `.bb-button--<name>`. Unset: `BbButton`'s `components` entry (the app's or a config scope's). |
21439
21631
  | `viewTransition` | `boolean \| undefined` | `false` | | Inertia: run the page swap inside a View Transition, where the browser supports one. |
@@ -21455,11 +21647,15 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
21455
21647
  | `sheet` | The bottom sheet the menu becomes on a phone only. |
21456
21648
  | `header` | The band around your `#header` slot: at the top of the menu on desktop, the sheet's header on a phone — handed to the `BbDropdown`. |
21457
21649
  | `footer` | The band around your `#footer` slot: at the bottom of the menu on desktop, the sheet's footer on a phone — handed to the `BbDropdown`. |
21650
+ | `box` | A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`. |
21458
21651
  | `input` | A searchable group's search field in the menu — a broadcast, every searchable group's field — handed to the `BbDropdown` as its own `pt:input`. |
21652
+ | `list` | The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`. |
21653
+ | `groupLabel` | Every menu group's label row (the menu's own). |
21654
+ | `groupHeader` | Every `groupBy` heading in the menu (the menu's own). |
21459
21655
  | `item` | One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry. |
21460
21656
  | `itemText` | An entry's label (its `label`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
21461
21657
  | `itemIcon` | An entry's prepend / append icons — resolved with that entry's states. Also takes a per-item function. |
21462
- | `itemDescription` | An entry's muted second line (its `description`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
21658
+ | `itemDescription` | An entry's muted second line (its `description`), with the entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
21463
21659
  | `check` | A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. Also takes a per-item function. |
21464
21660
  | `submenu` | Every submenu's flyout box (desktop only). Also takes a per-item function, called with the entry that opens it. |
21465
21661
 
@@ -21467,10 +21663,10 @@ States are listed in precedence order: when two are on at once and their entries
21467
21663
 
21468
21664
  | State | When it is on |
21469
21665
  | --- | --- |
21470
- | `activeLink` | Component-wide while the main button is a link to the current page or one of its ancestors (its `activeClass` is on); also per node, on the entry parts: a menu entry whose link is. The weakest state. |
21471
- | `exactActiveLink` | Component-wide while the main button is a link to the current page itself (its `exactActiveClass` is on); also per node, on the entry parts. |
21666
+ | `activeLink` | Component-wide while the main button links to the current page or an ancestor (its `activeClass` is on); per node, on the entry parts: an entry whose link does. The weakest state. |
21667
+ | `exactActiveLink` | Component-wide while the main button links to the current page itself (its `exactActiveClass` is on); per node, on the entry parts. |
21472
21668
  | `selected` | Per node, on the entry parts only (`item`, `itemText`, `itemIcon`, `itemDescription`, `check`): a selectable group's checked entry. `pt:root:selected` is a type error, not a silent no-op. |
21473
- | `disabled` | Component-wide while the control is `disabled`; also per node, on the entry parts: a menu entry that is disabled. |
21669
+ | `disabled` | Component-wide while the control is `disabled`; per node, on the entry parts: a disabled entry. |
21474
21670
  | `open` | Component-wide: the menu is open. |
21475
21671
  | `loading` | Component-wide: `loading` is on — the main button shows its spinner. |
21476
21672
  | `default` | Per entry, on the entry parts: an entry with `variant: 'default'` or none. Merged after the part's base entry and before its states, so the real states still win. |
@@ -21489,6 +21685,7 @@ States are listed in precedence order: when two are on at once and their entries
21489
21685
  - `item:unselected` — `(value: any): void` — A row of a selectable group was unselected (same payload as above).
21490
21686
  - `show` — `(): void` — Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open.
21491
21687
  - `shown` — `(): void` — Emitted once the menu is open and its open transition has finished.
21688
+ - `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
21492
21689
 
21493
21690
  ## Slots
21494
21691
 
@@ -21508,9 +21705,10 @@ States are listed in precedence order: when two are on at once and their entries
21508
21705
  - `#<groupId>:item` (named from data) — scope: `BbDropdownItemSlotProps` — The content of every row of that group, and no other; a row's own `#<value>` still wins.
21509
21706
  - `#<groupId>:item:prepend` (named from data) — scope: `BbDropdownItemSlotProps` — The leading region of every row of that group — e.g. an avatar per record, drawn from `item.meta`, while other rows keep their `prepend:icon`.
21510
21707
  - `#<groupId>:item:append` (named from data) — scope: `BbDropdownItemSlotProps` — The trailing region of every row of that group; replaces their `append:icon`. The check takes its place on the selected row.
21511
- - `#<groupId>` (named from data) — scope: `BbDropdownItemSlotProps` — That group's title line (the group is passed as `item`, `groupTitle` is `true`). Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `default`, `dropdown`, `empty`, `footer`, `header`, `item`, `loading`.
21708
+ - `#<groupId>:label` (named from data) — scope: `BbDropdownItemSlotProps` — That group's title content (`item` is the group, `groupTitle` is `true`).
21512
21709
  - `#<groupId>:prepend` (named from data) — scope: `BbDropdownItemSlotProps` — The leading region of that group's title line.
21513
21710
  - `#<groupId>:append` (named from data) — scope: `BbDropdownItemSlotProps` — The trailing region of that group's title line.
21711
+ - `#<groupId>:group` (named from data) — scope: `BbDropdownGroupSlotProps` — That group's `groupBy` headings; beats `group`.
21514
21712
 
21515
21713
  ## Component tree
21516
21714
 
@@ -21524,12 +21722,12 @@ States are listed in precedence order: when two are on at once and their entries
21524
21722
  - `BbDropdownButton` _(this component)_ — hands `BbButton` the pt map `{ main: 'root', icon: 'icon', spinner: 'spinner', text: 'text' }` (ours → theirs); hands `BbDropdown` the pt map `{ item: 'item', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }` (ours → theirs); hands `BbButton` the pt map `{ toggle: 'root' }` (ours → theirs)
21525
21723
  - `BbButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__prepend-icon`, `icon` → `BbIcon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbSpinner`, `BbIcon`
21526
21724
  - `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
21527
- - `BbDropdown` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md))_ — its own pt parts (`BbDropdown`): `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-dropdown__header`, `list` → `span.bb-dropdown__list`, `footer` → `div.bb-dropdown__footer`; documented CSS variables: `--menu-inset`; also mounts `CommonPopover`, `DropdownPipelineResolver`
21725
+ - `BbDropdown` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md))_ — its own pt parts (`BbDropdown`): `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-dropdown__header`, `list` → `span.bb-dropdown__list`, `footer` → `div.bb-dropdown__footer`; documented CSS variables: `--menu-inset`; also mounts `CommonPopover`, `DropdownFailures`, `DropdownPipelineResolver`
21528
21726
  - `BbDropdownList` _(internal — not importable, reach it through `BbDropdown`)_ — also mounts `BbIcon`, `ErrorIcon`, `CommonPopover`, `BbDropdownList`
21529
21727
  - `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
21530
- - `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbButton`, `BbDropdownList`
21728
+ - `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbButton`, `BbDropdownList`, `DropdownFailures`
21531
21729
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
21532
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
21730
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
21533
21731
 
21534
21732
  ## See Also
21535
21733
 
@@ -25339,7 +25537,8 @@ marker stays consistent with the rules.
25339
25537
  | --- | --- | --- | --- |
25340
25538
  | `--size` | `pt:close` | `CloseButton` | the button box — the hit target, not the glyph |
25341
25539
  | `--p` | `pt:close` | `CloseButton` | padding inside that box; what is left of --size is the glyph |
25342
- | `--icon-size` | `pt:close` | `CloseButton` | Glyph: whatever the padding leaves, but never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
25540
+ | `--icon-size` | `pt:close` | `CloseButton` | Glyph: the ✕ is drawn on a 24 grid with a stock icon's proportions (its ink spans 12 of the 24 units, as Lucide's, Tabler's and Phosphor's do), so any set's ✕ can stand in. Its box is what the padding leaves × 22/12: the ink then spans what the old edge-to-edge glyph painted, the same optical size in the same button box (the extra box overflows the padding, unpainted). Never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
25541
+ | `--icon-inset` | `pt:close` | `CloseButton` | Centres that larger box on the padding box (negative: it overflows it evenly). Resolved here for the same `--size` reason. |
25343
25542
 
25344
25543
  ## Usage & Guidelines
25345
25544
 
@@ -27343,7 +27542,7 @@ Set these on the element, or on a class you put on it, to retune this component
27343
27542
  - Listed nodes are the ones `BbGallery`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbGallery.tree.json` (a public component in it is a name: its own tree file has the rest).
27344
27543
 
27345
27544
  - `BbGallery` _(this component)_ — its own template binds: `header` → `div.bb-gallery__header`, `title` → `p.bb-gallery__title`, `close` → `CloseButton`, `slide` → `figure.bb-gallery__slide`, `image` → `img.bb-gallery__image`, `prev` → `button.bb-gallery__nav`, `next` → `button.bb-gallery__nav`, `footer` → `div.bb-gallery__footer`, `caption` → `p.bb-gallery__caption`, `more` → `button.bb-gallery__more`, `counter` → `p.bb-gallery__counter`
27346
- - `CloseButton` _(internal — not importable, reach it through `BbGallery`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
27545
+ - `CloseButton` _(internal — not importable, reach it through `BbGallery`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
27347
27546
  - Also mounts `BbIcon`
27348
27547
 
27349
27548
  ## See Also
@@ -28214,7 +28413,7 @@ The `icon` prop takes a name in one of three forms:
28214
28413
  ships no icon package of its own — install the ones you want. Prefer `lucide:`
28215
28414
  for UI glyphs when no direction is given, so one visual language stays
28216
28415
  consistent.
28217
- - **`local:name`** — an SVG in the configured `iconDir` (brand marks, custom
28416
+ - **`local:name`** — an SVG in the configured `icons.dir` (brand marks, custom
28218
28417
  illustrations). Each `.svg` file becomes `local:<basename>`.
28219
28418
  - **bare `name`** — an unprefixed name **normalizes to `local:`**; it never
28220
28419
  searches provider sets. Prefer writing the prefix anyway: the Iconify editor
@@ -28224,7 +28423,7 @@ The `icon` prop takes a name in one of three forms:
28224
28423
  the same shape as `mdi:home` / `lucide:check`, so the source of every icon is
28225
28424
  legible without inferring it from a missing prefix.
28226
28425
 
28227
- **Split `iconDir` by kind.** Keep single-colour UI glyphs, which paint in
28426
+ **Split `icons.dir` by kind.** Keep single-colour UI glyphs, which paint in
28228
28427
  `currentColor` and follow the text around them, in `icons/ui/`, and
28229
28428
  fixed-colour logos, which carry their own fills, in `icons/brand/`. The folder
28230
28429
  is scanned recursively, so both are found, but a name is the file's
@@ -28265,13 +28464,13 @@ guess a name. See the Icons Policy for the discovery workflow and the heroicons
28265
28464
  </div>
28266
28465
  ```
28267
28466
 
28268
- `local:*` is for brand art in `iconDir`. The deploy card below cycles stages
28467
+ `local:*` is for brand art in `icons.dir`. The deploy card below cycles stages
28269
28468
  with full `local:` literals from that folder — the canonical brand-mark demo.
28270
28469
 
28271
28470
  **Every `local:` name in this guide is one of _this repository's_ fixture SVGs**
28272
28471
  (`clock`, `loader`, `check_circle`, `alert_circle`, …). They are illustrative,
28273
28472
  not a shipped set: copy the pattern, not the names. In your project a
28274
- `local:` name resolves only if `<name>.svg` exists in your own `iconDir`; a
28473
+ `local:` name resolves only if `<name>.svg` exists in your own `icons.dir`; a
28275
28474
  missing one renders the placeholder and logs which file is absent.
28276
28475
 
28277
28476
  **Brand marks via local: — deploy stages**
@@ -28307,11 +28506,11 @@ type Stage = {
28307
28506
  tone: string;
28308
28507
  };
28309
28508
 
28310
- // Brand marks via `local:*` (files in iconDir). Each stage owns a full static
28509
+ // Brand marks via `local:*` (files in icons.dir). Each stage owns a full static
28311
28510
  // literal so the production scanner bundles it — never `local:${name}`. The
28312
28511
  // glyph is decorative beside the stage label, so no `label` prop.
28313
28512
  const stages: Stage[] = [
28314
- // `local:*` names resolve against YOUR `iconDir` — these four are this
28513
+ // `local:*` names resolve against YOUR `icons.dir` — these four are this
28315
28514
  // repository's fixture SVGs. Copied into another project, each one throws
28316
28515
  // at mount until a `<name>.svg` of your own exists there (or swap them for
28317
28516
  // `lucide:*` names, which need no files).
@@ -28350,13 +28549,13 @@ Provider icons ship only when the plugin can see them. It reads the **whole
28350
28549
  project** as bytes — every file under the Vite root, PHP and JSON and SQL
28351
28550
  included, minus gitignored, hidden, binary, `node_modules`/`vendor` and
28352
28551
  excluded paths — for `provider:name` literals, and bundles exactly those (plus
28353
- `iconWhitelist`). `local:` ships everything. **Dev registers the same set**, so
28552
+ `icons.whitelist`). `local:` ships everything. **Dev registers the same set**, so
28354
28553
  a name assembled at runtime (`` `lucide:${kind}` ``) renders the placeholder
28355
28554
  on first render in dev, not after deploy. Map dynamic state to full literals —
28356
28555
  a lookup object of complete names, exactly as the deploy-stages companion does
28357
28556
  (`stages[i].icon` holds `'local:clock'`, not a concatenation) — or, when the
28358
28557
  name really is composed at runtime or comes from a database, list it in the
28359
- plugin's `iconWhitelist` (`'lucide:circle-check'`, or a glob such as
28558
+ plugin's `icons.whitelist` (`'lucide:circle-check'`, or a glob such as
28360
28559
  `'lucide:calendar-*'`). An icon used only in a `.stories.ts` / `.test.ts` file
28361
28560
  is scanned like any other file.
28362
28561
 
@@ -28369,7 +28568,7 @@ const STATUS_ICON = {
28369
28568
  failed: 'lucide:circle-x',
28370
28569
  } as const;
28371
28570
  // Wrong: `lucide:${status}` — never scanned; placeholder in dev AND prod
28372
- // (unless every value is in the plugin's `iconWhitelist`).
28571
+ // (unless every value is in the plugin's `icons.whitelist`).
28373
28572
  defineProps<{ status: 'paid' | 'pending' | 'failed' }>();
28374
28573
  </script>
28375
28574
 
@@ -28464,7 +28663,7 @@ deploy-stages companions both color the row wrapper; the icon tracks it.
28464
28663
  (a setup fault — a merely missing NAME never throws, it renders the
28465
28664
  placeholder).
28466
28665
  Provider sets (`@iconify-json/*`) are auto-discovered from `node_modules`;
28467
- `local:*` comes from `iconDir` (default `./assets/icons` on Nuxt).
28666
+ `local:*` comes from `icons.dir` (default `./assets/icons` on Nuxt).
28468
28667
  - **SSR / Nuxt** — icons resolve during `onServerPrefetch`, so server-rendered
28469
28668
  markup contains the glyph on first paint (no hydration flash). `BbIcon` carries
28470
28669
  no navigation surface — it is a pure visual primitive.
@@ -29213,7 +29412,9 @@ settles back to `max` at once; `min` waits for blur or Enter, because the
29213
29412
  digits of a valid number pass through smaller ones (typing `20` into a 16–28
29214
29413
  field goes through `2`). Leave the field below `min`, or press Enter in it, and
29215
29414
  it rises to `min` — Enter corrects it before a surrounding form submits, so
29216
- `@submit` never receives a value below `min` (defaults are
29415
+ `@submit` never receives a value below `min`. A value your app sets past
29416
+ either bound stays as it is while nobody touches the field; a focus and a
29417
+ blur bring it inside the bounds, as Enter does (defaults are
29217
29418
  the safe-integer bounds, i.e. effectively unbounded). `maxPrecision` caps the number of decimal places (default `8`),
29218
29419
  which is how you pin a field to whole numbers (`0`); for money set `currency`,
29219
29420
  which brings its own decimals. Extra decimals are refused as typed, never
@@ -30024,7 +30225,8 @@ Set these on the element, or on a class you put on it, to retune this component
30024
30225
  | --- | --- | --- | --- |
30025
30226
  | `--size` | `pt:close` | `CloseButton` | the button box — the hit target, not the glyph |
30026
30227
  | `--p` | `pt:close` | `CloseButton` | padding inside that box; what is left of --size is the glyph |
30027
- | `--icon-size` | `pt:close` | `CloseButton` | Glyph: whatever the padding leaves, but never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
30228
+ | `--icon-size` | `pt:close` | `CloseButton` | Glyph: the ✕ is drawn on a 24 grid with a stock icon's proportions (its ink spans 12 of the 24 units, as Lucide's, Tabler's and Phosphor's do), so any set's ✕ can stand in. Its box is what the padding leaves × 22/12: the ink then spans what the old edge-to-edge glyph painted, the same optical size in the same button box (the extra box overflows the padding, unpainted). Never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
30229
+ | `--icon-inset` | `pt:close` | `CloseButton` | Centres that larger box on the padding box (negative: it overflows it evenly). Resolved here for the same `--size` reason. |
30028
30230
 
30029
30231
  ## Usage & Guidelines
30030
30232
 
@@ -31549,7 +31751,7 @@ Set these on the element, or on a class you put on it, to retune this component
31549
31751
  - Listed nodes are the ones `BbOffCanvas`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbOffCanvas.tree.json` (a public component in it is a name: its own tree file has the rest).
31550
31752
 
31551
31753
  - `BbOffCanvas` _(this component)_ — its own template binds: `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`
31552
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
31754
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
31553
31755
 
31554
31756
  ## See Also
31555
31757
 
@@ -33237,7 +33439,7 @@ States are listed in precedence order: when two are on at once and their entries
33237
33439
 
33238
33440
  - `BbPopover` _(this component)_ — its own template binds: `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-popover__header`, `content` → `div.bb-popover__content`, `footer` → `div.bb-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', content: 'content', footer: 'footer', panel: 'root', sheet: 'root', }` (ours → theirs)
33239
33441
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
33240
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
33442
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
33241
33443
  - Also mounts `CommonPopover`
33242
33444
 
33243
33445
  ## See Also
@@ -35062,8 +35264,8 @@ Keep the set short enough that arrow-cycling stays quick; past ~6 options prefer
35062
35264
 
35063
35265
  `items` accepts a provider function for options fetched from an API;
35064
35266
  `loading-text` / `#loading` and `empty-text` / `#empty` cover the loading
35065
- and empty states, `failed-text` (or `#empty` with its `error` prop) a load
35066
- that threw, `dependencies` (+ `deps-debounce-time`) trigger re-fetches,
35267
+ and empty states, `failed-text` words the failure row of a load that threw
35268
+ (with a built-in "Try again"; `#empty` is for empty results only), `dependencies` (+ `deps-debounce-time`) trigger re-fetches,
35067
35269
  and `enforce-coherence` resets the model to `null` when the current value no
35068
35270
  longer matches an available option. See the
35069
35271
  [fetch-items](https://llms-bitboss-ui.bitboss.it/ai/guides/fetch-items-playbook.md) and
@@ -35545,7 +35747,7 @@ for a preset that fits any row type (never `<any>`), not an imported
35545
35747
  | `itemLayout` | `FieldLayout \| undefined` | `'auto'` | | How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`. |
35546
35748
  | `itemProps` | `BbOptionGroupItemProps<T> \| undefined` | | | ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly. |
35547
35749
  | `itemReverse` | `boolean \| undefined` | `undefined` | | Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead. |
35548
- | `items` | `T[] \| ((context: BbRadioGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. |
35750
+ | `items` | `T[] \| ((context: BbRadioGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and the failure row shows `failed-text` with "Try again". |
35549
35751
  | `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
35550
35752
  | `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
35551
35753
  | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
@@ -35622,7 +35824,7 @@ States are listed in precedence order: when two are on at once and their entries
35622
35824
 
35623
35825
  - `append` — scope: `object` — Content rendered after the last option, inside the options container.
35624
35826
  - `description` — scope: `BbRadioGroupDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`.
35625
- - `empty` — scope: `{ error: unknown; }` — Content shown when no options are available (replaces the default "no data" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows.
35827
+ - `empty` — scope: `object` — Content shown when no options are available (replaces the default "no data" text). Empty only: a failed load shows the library's failure row instead (its message is `failed-text`, and it ends with "Try again").
35626
35828
  - `icon` — scope: `BbRadioGroupIconSlotProps<T>` `{ disabled: boolean; readonly: boolean; checked: boolean; focused: boolean; focusVisible: boolean; id: string; name: string; hasErrors: boolean; hasWarnings: boolean; parsedValue: string; value: any; item: T; text: string }` — Replaces the default radio dot icon for each option. Receives the radio state plus the source item and its display text.
35627
35829
  - `label` — scope: `BbRadioGroupLabelSlotProps<T>` `{ item: T; text: string; checked: boolean; description: string }` — Replaces the default label text for each option.
35628
35830
  - `legend` — scope: `BbRadioGroupLegendSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default fieldset legend text for the group.
@@ -36323,6 +36525,7 @@ Set these on the element, or on a class you put on it, to retune this component
36323
36525
  | `pt:footer` | `pt:footer` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
36324
36526
  | `pt:input` | `pt:input` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
36325
36527
  | `pt:list` | `pt:list` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
36528
+ | `pt:groupHeader` | `pt:groupHeader` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
36326
36529
  | `pt:option` | `pt:option` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
36327
36530
  | `pt:itemText` | `pt:itemText` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
36328
36531
  | `pt:itemIcon` | `pt:itemIcon` of `BbSelectPopover` | `BbSelectPopover` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)) |
@@ -37111,8 +37314,8 @@ picked someone:
37111
37314
  v-model="reviewers"
37112
37315
  clearable
37113
37316
  compact
37114
- :dependencies="[retry]"
37115
37317
  empty-text="No members match your search"
37318
+ failed-text="Couldn't load members."
37116
37319
  :filter-by="false"
37117
37320
  hint="Type a name to search"
37118
37321
  item-text="name"
@@ -37125,21 +37328,13 @@ picked someone:
37125
37328
  :query-debounce-time="300"
37126
37329
  stash
37127
37330
  >
37128
- <template #empty="{ error, query }">
37129
- <template v-if="error">
37130
- Couldn't load members.
37131
- <BbButton size="sm" variant="ghost" @click="retry++">
37132
- Try again
37133
- </BbButton>
37134
- </template>
37135
- <template v-else>No members match “{{ query }}”</template>
37136
- </template>
37331
+ <template #empty="{ query }">No members match “{{ query }}”</template>
37137
37332
  </BbSelect>
37138
37333
  </div>
37139
37334
  </template>
37140
37335
  <script setup lang="ts">
37141
37336
  import { ref } from 'vue';
37142
- import { BbButton, BbSelect } from 'bitboss-ui';
37337
+ import { BbSelect } from 'bitboss-ui';
37143
37338
  import type { BbSelectItemsContext } from 'bitboss-ui';
37144
37339
 
37145
37340
  type Member = {
@@ -37207,8 +37402,6 @@ const searchMembers = async ({
37207
37402
  };
37208
37403
 
37209
37404
  const reviewers = ref<string[]>([]);
37210
- // The retry: bumping a dependency reloads with `reason: 'dependencies'`.
37211
- const retry = ref(0);
37212
37405
  </script>
37213
37406
  ```
37214
37407
 
@@ -37384,7 +37577,7 @@ much to type.
37384
37577
  />
37385
37578
  ```
37386
37579
 
37387
- Below the minimum (trimmed characters) the query counts as empty: no
37580
+ Below the minimum (characters after trimming; an emoji is one) the query counts as empty: no
37388
37581
  `'search'` call, no filtering of array items, the search-first hint says
37389
37582
  "Type at least 3 characters", and a prefilled list stays unfiltered. Loads for
37390
37583
  other reasons still run, so a seeded model resolves. Enter does not emit
@@ -37414,24 +37607,17 @@ nothing to catch.
37414
37607
 
37415
37608
  A provider signals a failure by **throwing** — never by returning `[]`, which is
37416
37609
  a real, applied result. On a failed call the select clears the rows (stale rows
37417
- never sit under a new filter), prunes nothing, and shows `failed-text` (locale
37418
- default "Couldn't load items") in the empty state; with `stash` the failure row
37419
- sits below the picks the stash still names. The `#empty` slot receives
37420
- `error` — what you threw, untouched (a nullish rejection becomes an `Error`);
37421
- `null` when nothing failed — next to
37422
- `query` and `focus()`. There is no built-in retry: bump a counter you list in
37423
- `dependencies`, which reloads with `reason: 'dependencies'` inside the select's
37424
- own flow (debounced, aborting the call in flight):
37425
-
37426
- ```vue
37427
- <BbSelect :items="searchMembers" :dependencies="[retry]" …>
37428
- <template #empty="{ error, query }">
37429
- <template v-if="error">
37430
- Couldn't load members.
37431
- <BbButton size="sm" variant="ghost" @click="retry++">Try again</BbButton>
37432
- </template>
37433
- <template v-else>No members match “{{ query }}”</template>
37434
- </template>
37610
+ never sit under a new filter), prunes nothing, and shows its own failure row
37611
+ under the list: `failed-text` (locale default "Couldn't load items"),
37612
+ announced, then a "Try again" button. With `stash` the row sits below the picks
37613
+ the stash still names. "Try again" runs the failed call again with the same
37614
+ query, on click only, and hands focus back to the search field. `#empty` means
37615
+ empty: it never renders for a failure, so write empty copy there and word the
37616
+ failure with `failed-text`:
37617
+
37618
+ ```vue
37619
+ <BbSelect :items="searchMembers" failed-text="Couldn't load members." …>
37620
+ <template #empty="{ query }">No members match “{{ query }}”</template>
37435
37621
  </BbSelect>
37436
37622
  ```
37437
37623
 
@@ -37447,8 +37633,9 @@ own flow (debounced, aborting the call in flight):
37447
37633
  - **Panel states**: `loading-text` / `empty-text` / `failed-text` (locale
37448
37634
  defaults "Loading..." / "No data to display" / "Couldn't load items") or the
37449
37635
  `#loading` / `#empty` slots — both receive `{ query }`, `#empty` also
37450
- `focus()`, `close()` (for an action that keeps focus in the panel) and
37451
- `error`.
37636
+ `focus()` and `close()` (for an action that keeps focus in the panel). A
37637
+ failed load has its own row (`failed-text` and "Try again"), never
37638
+ `#empty`.
37452
37639
 
37453
37640
  `stash` accumulates picked options across searches: a pick stays named (chips
37454
37641
  keep their text) when a later search or a failed load no longer returns it. It
@@ -37921,6 +38108,13 @@ Pressing Enter in the search field with **no option highlighted** emits
37921
38108
  does not create anything itself: append the new item to `items` and select it.
37922
38109
  This is the idiomatic pattern for closed-but-growable vocabularies.
37923
38110
 
38111
+ While you listen to `option:add`, a typed query that no option matches
38112
+ exactly (case aside) also gets a **"Create «query»" row**: the last row after
38113
+ the matches, or the only one when nothing matches (in place of the
38114
+ no-results text and `#empty`). It is a real option, clickable and reached
38115
+ with the arrow keys, and activating it does what Enter does. It is not shown
38116
+ while the list loads or after a failed load.
38117
+
37924
38118
  **Create a label by pressing Enter**
37925
38119
 
37926
38120
  ```vue
@@ -37978,14 +38172,12 @@ const createLabel = (text: string) => {
37978
38172
  </script>
37979
38173
  ```
37980
38174
 
37981
- #### A record that needs its own form: open its dialog from `#empty`
38175
+ #### A record that needs its own form: open its dialog from `option:add`
37982
38176
 
37983
38177
  When creating the missing row takes a real form (a person, a company), the
37984
- select doesn't create it: its dialog does. Offer the action where the search
37985
- came up empty, as one line in `#empty` with an inline `BbBaseButton` (not a
37986
- `BbButton` in `#footer`), and wire Enter to the same call through
37987
- `option:add`. Open the dialog from code, seed it with the query, and on
37988
- `completed` add the row and select it:
38178
+ select doesn't create it: its dialog does. Handle `option:add` (the create
38179
+ row's click and Enter both land there): open the dialog from code, seed it
38180
+ with the query, and on `completed` add the row and select it:
37989
38181
 
37990
38182
  **No results? Create the person in a dialog**
37991
38183
 
@@ -38006,17 +38198,7 @@ came up empty, as one line in `#empty` with an inline `BbBaseButton` (not a
38006
38198
  :items="people"
38007
38199
  label="Contact"
38008
38200
  @option:add="(query) => query && create(query)"
38009
- >
38010
- <template #empty="{ query }">
38011
- No results for “{{ query }}”.
38012
- <BbBaseButton
38013
- class="font-medium text-(--bb-primary) hover:underline"
38014
- @click="create(query)"
38015
- >
38016
- Create {{ query }}
38017
- </BbBaseButton>
38018
- </template>
38019
- </BbSelect>
38201
+ />
38020
38202
 
38021
38203
  <!-- In an app this is its own CreatePersonDialog.vue: pass the component
38022
38204
  to useBbDialog instead of the id. -->
@@ -38035,7 +38217,6 @@ came up empty, as one line in `#empty` with an inline `BbBaseButton` (not a
38035
38217
  <script setup lang="ts">
38036
38218
  import { ref } from 'vue';
38037
38219
  import {
38038
- BbBaseButton,
38039
38220
  BbButton,
38040
38221
  BbDialog,
38041
38222
  BbForm,
@@ -38058,8 +38239,8 @@ const save = async (values: Record<string, unknown>): Promise<Person> => ({
38058
38239
  name: String(values.name),
38059
38240
  });
38060
38241
 
38061
- // The handle lives in setup, not on a button inside `#empty`: the panel closes
38062
- // as the dialog takes focus, and the slot unmounts with it.
38242
+ // The handle lives in setup: the panel closes as the dialog takes focus, and
38243
+ // the create row goes with it.
38063
38244
  const personDialog = useBbDialog<{ name: string }, Person>('person-create');
38064
38245
  const create = async (name: string) => {
38065
38246
  const result = await personDialog.show({ name });
@@ -38071,13 +38252,11 @@ const create = async (name: string) => {
38071
38252
  ```
38072
38253
 
38073
38254
  - **Open it with a handle from setup**, `useBbDialog(CreatePersonDialog)`
38074
- (or an id), never `v-bb-dialog` on the button inside `#empty`. The panel
38075
- closes as the dialog takes focus and `#empty` unmounts with it: an
38076
- on-demand opening (`v-bb-dialog="{ component }"`) is dismissed with its
38077
- trigger and nothing opens. A literal id of a placed `BbDialog` does open
38078
- (the dialog outlives the button), but the handle is the one shape that
38079
- works either way. The ESLint rule `bitboss-ui/no-dialog-in-panel` reports
38080
- the on-demand form ([ESLint rules](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/eslint-rules.md)).
38255
+ (or an id), never `v-bb-dialog` on a button inside the panel: the panel
38256
+ closes as the dialog takes focus, and an on-demand opening
38257
+ (`v-bb-dialog="{ component }"`) is dismissed with its trigger. The ESLint
38258
+ rule `bitboss-ui/no-dialog-in-panel` reports the on-demand form
38259
+ ([ESLint rules](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/eslint-rules.md)).
38081
38260
  - **Inside another dialog it just stacks.** The create dialog opens above the
38082
38261
  one holding the select, and on close focus comes back to the select, closed,
38083
38262
  showing the new pick. Nothing to wire.
@@ -38085,7 +38264,7 @@ const create = async (name: string) => {
38085
38264
  `known-items` (`{ value: person.id, label: person.name }`): the provider
38086
38265
  returns it on the next load.
38087
38266
  - **Keyboard**: Enter in the search field fires `option:add` (no option is
38088
- highlighted when nothing matched), and Tab reaches the button.
38267
+ highlighted when nothing matched), and the arrow keys reach the create row.
38089
38268
 
38090
38269
  ### Group related options
38091
38270
 
@@ -38098,6 +38277,11 @@ no group: those rows are listed **first**, before every header, and `#group` is
38098
38277
  not called for them (a known row is listed the same way). `BbDropdown`'s
38099
38278
  `groupBy` follows the same rule.
38100
38279
 
38280
+ Headers are sticky: the header of the group you are scrolling through stays
38281
+ pinned at the top of the list, and leaves with its group's last option. A list
38282
+ that opens on a selection shows its group's header right above it, and a row
38283
+ reached with the arrow keys always stops below the pinned header.
38284
+
38101
38285
  A grouped list virtualizes **whole groups, not rows**: a group mounts only
38102
38286
  when it scrolls into range, but all of its rows mount together. Many
38103
38287
  small-to-medium groups window just as well as a flat list; one very large
@@ -38341,11 +38525,96 @@ is all you need.
38341
38525
  - `clearable` — clear affix when a value exists; emits `null` / `[]`. Single: re-clicking the pick clears too.
38342
38526
  - Empty panel — `empty-text` or `#empty`.
38343
38527
 
38528
+ ### Opening from code: `v-model:open`
38529
+
38530
+ `v-model` is the value; `v-model:open` is whether the options panel is open. Bound,
38531
+ your ref opens and closes it, and every open and close the user makes is
38532
+ written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
38533
+ listener is only the initial state. An open from code is the same open a
38534
+ click makes (focus moves into the panel), and `disabled` / `readonly` refuse it (the ref is set back
38535
+ to `false`).
38536
+
38537
+ ```vue
38538
+ <script setup lang="ts">
38539
+ import { ref } from 'vue';
38540
+
38541
+ const city = ref<string | null>(null);
38542
+ const open = ref(false);
38543
+ </script>
38544
+
38545
+ <template>
38546
+ <BbButton text="Choose a city" @click="open = true" />
38547
+ <BbSelect
38548
+ v-model="city"
38549
+ v-model:open="open"
38550
+ label="City"
38551
+ :items="['Milan', 'Rome', 'Turin']"
38552
+ />
38553
+ </template>
38554
+ ```
38555
+
38556
+ ### Reading and restoring the search: `v-model:query`
38557
+
38558
+ `v-model:query` is the search field's text. Bound, your ref reads it and sets
38559
+ it:
38560
+
38561
+ - **It mirrors the field, raw.** Every committed keystroke is written back as
38562
+ typed, spaces included (an IME composition once, when it ends), and `''`
38563
+ whenever the component empties the field itself: closing, a pick that
38564
+ closes, `option:add` (Enter or the create row), the ✕.
38565
+ - **A write is a search the user didn't type.** It runs at once, without
38566
+ the debounce, and supersedes a scheduled or in-flight search (its late
38567
+ answer never lands). Written while closed, it is held for the next open:
38568
+ `query = 'Rossi'; open = true` sends one request, for "Rossi". A write
38569
+ never opens the panel or moves focus, and is never echoed back.
38570
+ - **A write that can't land writes `''` back:** no search field
38571
+ (`disable-writing`), `disabled`, `readonly`, a refused open.
38572
+ - Unbound, a static `:query` seeds the next open.
38573
+
38574
+ The case it is for: bring a search back. The create row hands the query to
38575
+ `option:add` and empties the field; if the user cancels the dialog, put the
38576
+ query back and reopen, and "Create «Rossi»" is there again:
38577
+
38578
+ ```vue
38579
+ <script setup lang="ts">
38580
+ import { ref } from 'vue';
38581
+ import { BbSelect, useBbDialog } from 'bitboss-ui';
38582
+ import CreatePersonDialog from './CreatePersonDialog.vue';
38583
+
38584
+ const person = ref<number | null>(null);
38585
+ const open = ref(false);
38586
+ const query = ref('');
38587
+ const createPerson = useBbDialog(CreatePersonDialog);
38588
+
38589
+ const onAdd = async (text: string) => {
38590
+ const result = await createPerson.show({ name: text });
38591
+ if (result.completed) return void (person.value = result.value.id);
38592
+ query.value = text;
38593
+ open.value = true;
38594
+ };
38595
+ </script>
38596
+
38597
+ <template>
38598
+ <BbSelect
38599
+ v-model="person"
38600
+ v-model:open="open"
38601
+ v-model:query="query"
38602
+ item-text="name"
38603
+ item-value="id"
38604
+ :items="searchPeople"
38605
+ label="Person"
38606
+ @option:add="onAdd"
38607
+ />
38608
+ </template>
38609
+ ```
38610
+
38611
+ Every state, with its test: the BbSelectPopover guide, § Reading and restoring the search.
38612
+
38344
38613
  ### Events and v-model
38345
38614
 
38346
38615
  - `update:modelValue` — the resolved value (single) or array (multiple), on
38347
38616
  pick, chip removal, clear and coherence enforcement.
38348
- - `option:add` — Enter on a query with no highlighted option (see above).
38617
+ - `option:add` — Enter on a query with no highlighted option, or the create row (see above).
38349
38618
  - `focus` / `blur` — the control gaining/losing focus; `input` / `change` —
38350
38619
  native events from the panel search field.
38351
38620
  - `inactive` — focus has fully left the component (control **and** panel).
@@ -38475,7 +38744,7 @@ the `BbTextInput` guide.
38475
38744
 
38476
38745
  `pt` reaches a named part of the control with a class list — or, in the
38477
38746
  object form, a style and attributes — optionally only while a state is on.
38478
- Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `activator` (the button that opens the options — BbSelect's control; the text controls call theirs `input`), `input` (the search field in the options surface, when it shows one), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `panel` (the options surface you see — the popover's painted bubble on desktop, the sheet itself on a phone), `sheet` (the bottom sheet on a phone only), `option` (one listbox option, a broadcast), `itemText` (that option's label), `itemIcon` (its `itemProps` prepend / append icons — never the field's `icon`) and `itemDescription` (its muted second line from `itemProps.description` — never the field's `description`), and `check` (the tick on a chosen option, at the row's end), all with the option's `selected` / `disabled`; a custom `#option` slot replaces the label and description, never the tick. With `multiple`, the selected values are `badge` (each chip's `BbBadge` root, in the field and on the phone sheet — in the field, not rendered when the `#chip` slot replaces it; the sheet's chips are always badges) or `comma` (each entry in `comma` mode) — the same two words as `BbTag`. The chevron and the clear ✕ are chrome.
38747
+ Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `activator` (the button that opens the options — BbSelect's control; the text controls call theirs `input`), `input` (the search field in the options surface, when it shows one), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `panel` (the options surface you see — the popover's painted bubble on desktop, the sheet itself on a phone), `sheet` (the bottom sheet on a phone only), `option` (one listbox option, a broadcast), `itemText` (that option's label), `itemIcon` (its `itemProps` prepend / append icons — never the field's `icon`) and `itemDescription` (its muted second line from `itemProps.description` — never the field's `description`), and `check` (the tick on a chosen option, at the row's end), all with the option's `selected` / `disabled`; a custom `#option` slot replaces the label and description, never the tick. `groupHeader` is every `group-by` heading's box (sticky; `#group` replaces its content, never the box), `disabled` while every option of its group is. With `multiple`, the selected values are `badge` (each chip's `BbBadge` root, in the field and on the phone sheet — in the field, not rendered when the `#chip` slot replaces it; the sheet's chips are always badges) or `comma` (each entry in `comma` mode) — the same two words as `BbTag`. The chevron and the clear ✕ are chrome.
38479
38748
  States: `errors`, `warnings` (never beside errors), `loading`, `disabled`, `readonly`, `hasValue` (written `pt:box:has-value`). Plus `open` (the options surface is showing) and `selected`, resolved per option. A name outside that list is a type error and an
38480
38749
  ESLint error.
38481
38750
 
@@ -38546,6 +38815,54 @@ const assignee = ref<string | null>('ada');
38546
38815
  </script>
38547
38816
  ```
38548
38817
 
38818
+ **A heading that reads as a row.** `pt:group-header` styles the `group-by`
38819
+ heading's box; its label is the box's child, so `*:` reaches it: a hairline
38820
+ above each region, and the label in an option's colour, weight and size.
38821
+
38822
+ **pt:group-header — region headings that read as rows**
38823
+
38824
+ ```vue
38825
+ <template>
38826
+ <div
38827
+ class="grid max-w-sm gap-3 rounded-(--bb-radius) border border-(--bb-border) p-3"
38828
+ >
38829
+ <div>
38830
+ <h3 class="text-sm font-medium">Ship from</h3>
38831
+ <p class="text-xs text-(--bb-text-muted)">
38832
+ Warehouses by region; each region reads as a row.
38833
+ </p>
38834
+ </div>
38835
+ <BbSelect
38836
+ v-model="warehouse"
38837
+ compact
38838
+ group-by="region"
38839
+ :items="warehouses"
38840
+ label="Warehouse"
38841
+ placeholder="Pick a warehouse"
38842
+ pt:group-header="border-t border-(--bb-border) *:font-normal *:text-(--bb-text) *:text-[length:var(--bb-fs)]"
38843
+ />
38844
+ </div>
38845
+ </template>
38846
+
38847
+ <script setup lang="ts">
38848
+ import { ref } from 'vue';
38849
+ import { BbSelect } from 'bitboss-ui';
38850
+
38851
+ type Warehouse = { label: string; value: string; region: string };
38852
+
38853
+ // `pt:group-header` is the heading's box: a hairline above it, and through
38854
+ // `*:` its label takes an option's colour, weight and size.
38855
+ const warehouses: Warehouse[] = [
38856
+ { label: 'Milano Linate', value: 'lin', region: 'North' },
38857
+ { label: 'Torino Corso Francia', value: 'tor', region: 'North' },
38858
+ { label: 'Roma Tiburtina', value: 'rom', region: 'Centre' },
38859
+ { label: 'Firenze Osmannoro', value: 'fir', region: 'Centre' },
38860
+ ];
38861
+
38862
+ const warehouse = ref<string | null>(null);
38863
+ </script>
38864
+ ```
38865
+
38549
38866
  **Chips that look like your app's badges.** Each chip is a `BbBadge` (the
38550
38867
  `secondary` one), so `pt:badge` takes the same classes your badges use, or a
38551
38868
  badge variant's class: `pt:badge="bb-badge--destructive"`. Mind the cascade:
@@ -38682,8 +38999,8 @@ it: [passthrough guide § Typing `pt` in `<script>`](https://llms-bitboss-ui.bit
38682
38999
  - **A failed load is not an empty one.** A provider throws to fail; returning
38683
39000
  `[]` is applied as a real empty result and, with `enforce-coherence`, prunes
38684
39001
  every pick. On a failure the rows are cleared, nothing is pruned, and the
38685
- panel shows `failed-text` (with `stash`, below the picks the stash still
38686
- names); `#empty` gets `error`.
39002
+ panel shows its failure row, `failed-text` and "Try again" (with `stash`,
39003
+ below the picks the stash still names); `#empty` stays for empty results.
38687
39004
  - `option:add` can fire with an empty string — trim and guard in the handler.
38688
39005
 
38689
39006
  ### Anti-patterns
@@ -38723,44 +39040,46 @@ it: [passthrough guide § Typing `pt` in `<script>`](https://llms-bitboss-ui.bit
38723
39040
  ## v-model
38724
39041
 
38725
39042
  - `v-model` — type: `any`
39043
+ - `v-model:open` — type: `boolean \| undefined`
39044
+ - `v-model:query` — type: `string \| undefined`
38726
39045
 
38727
39046
  ## Props
38728
39047
 
38729
39048
  | Prop | Type | Default | Required | Description |
38730
39049
  | --- | --- | --- | --- | --- |
38731
- | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `activator`, `badge`, `box`, `check`, `clear`, `comma`, `description`, `footer`, `header`, `hint`, `icon`, `input`, `itemDescription`, `itemIcon`, `itemText`, `label`, `list`, `message`, `option`, `panel`, `prefix`, `root`, `sheet`, `spinner`, `suffix`. States: `disabled`, `errors`, `ghost`, `hasValue`, `loading`, `open`, `outline`, `readonly`, `secondary`, `warnings`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectProps<Row>['pt']` (`BbSelectProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
38732
- | `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | When `true`, the options panel opens as a bottom off-canvas sheet on mobile viewports instead of a floating popover; on desktop it stays a popover. When unset, falls back to the global `all.adaptive`. |
39050
+ | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `activator`, `badge`, `box`, `check`, `clear`, `comma`, `description`, `footer`, `groupHeader`, `header`, `hint`, `icon`, `input`, `itemDescription`, `itemIcon`, `itemText`, `label`, `list`, `message`, `option`, `panel`, `prefix`, `root`, `sheet`, `spinner`, `suffix`. States: `disabled`, `errors`, `ghost`, `hasValue`, `loading`, `open`, `outline`, `readonly`, `secondary`, `warnings`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectProps<Row>['pt']` (`BbSelectProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
39051
+ | `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | `true`: on mobile viewports the options open in a bottom sheet, not a popover (desktop keeps the popover). Unset: the global `all.adaptive`. |
38733
39052
  | `append:icon` | `string \| undefined` | `the chevron-down glyph` | | Name of the icon to be added at the end of the input. |
38734
39053
  | `autocomplete` | `string \| undefined` | | | Guides to the browser as to the type of information expected in the field. |
38735
39054
  | `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
38736
- | `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. A single select also clears when the picked option is clicked again. |
38737
- | `comma` | `boolean \| undefined` | `false` | | Sets the display model for selected values to a list of comma separated string. In this mode the user cannot deselect an option by pressing the close button. |
39055
+ | `clearable` | `boolean \| undefined` | `false` | | A clear button while the field has a value and is interacted with; a single select also clears when its pick is clicked again. |
39056
+ | `comma` | `boolean \| undefined` | `false` | | Shows the picks as one comma-separated string; no close button to deselect one there. |
38738
39057
  | `compact` | `boolean \| undefined` | `undefined` | | Compact density: the field uses the `-compact` twins of `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y`, so a `--bb-input-h` set on the component is ignored while it is on. Size a compact field with `--bb-input-h-compact` (and `--bb-input-py-compact`). |
38739
39058
  | `dependencies` | `unknown[] \| undefined` | | | Defines an array of dependencies that will trigger actions in the component upon change. |
38740
39059
  | `depsDebounceTime` | `number \| undefined` | `0` | | Timeout used to debounce response to changes to dependencies. |
38741
39060
  | `description` | `string \| undefined` | | | Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`. |
38742
39061
  | `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
38743
- | `disableWriting` | `boolean \| "auto" \| "mobile" \| "desktop" \| undefined` | `'auto'` | | Hides the panel's search field: `true` everywhere, `'mobile'` / `'desktop'` on that platform only. `'auto'` hides it, per open, for an array `items` shorter than the plugin's `autoDisableWritingThreshold` (6); never for a provider or with an `option:add` listener. |
39062
+ | `disableWriting` | `boolean \| "auto" \| "mobile" \| "desktop" \| undefined` | `'auto'` | | Hides the panel's search field: `true` everywhere, `'mobile'` / `'desktop'` on that platform. `'auto'`, per open: for an array `items` shorter than the plugin's `autoDisableWritingThreshold` (6), never for a provider or with an `option:add` listener. |
38744
39063
  | `emptyText` | `string \| undefined` | | | String displayed when there are no items to display. |
38745
- | `enforceCoherence` | `boolean \| undefined` | `false` | | After every successful load that is not a search, removes the picks the fetched rows do not contain (a single model resets to `null`). A `stash` does not count, a value a `known-items` row names is kept until a parent change; a search or a failed load never prunes. |
39064
+ | `enforceCoherence` | `boolean \| undefined` | `false` | | After each successful non-search load, drops the picks the fetched rows lack (a single model goes `null`). A `stash` does not count; a `known-items` value stays until a parent change; a search or failed load never prunes. |
38746
39065
  | `errors` | `string \| string[] \| undefined` | | | Error messages under the field, a string or array, in an `aria-live="polite"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus. |
38747
- | `failedText` | `string \| undefined` | `the localized `common.failedText` ("Couldn't load items")` | | String displayed in the empty state while the latest load FAILED (the provider threw): the twin of `emptyText` for that case. |
38748
- | `filterBy` | `false \| string[] \| undefined` | `[]` | | What typing filters on: empty = the display text and description; item paths = those fields (`['name', 'email']`); `false` = no filtering. Ranked, case and accents ignored (guide § Search). Use `false` when the provider matched the query on the server, or its email matches show as "No results". |
39066
+ | `failedText` | `string \| undefined` | `the localized `common.failedText` ("Couldn't load items")` | | The empty state's text while the latest load FAILED (the provider threw): `emptyText`'s twin for that case. |
39067
+ | `filterBy` | `false \| string[] \| undefined` | `[]` | | What typing filters on: empty = display text and description; item paths = those fields (`['name', 'email']`); `false` = none. Ranked, case- and accent-blind (guide § Search). `false` when the provider matched on the server, or its email matches show "No results". |
38749
39068
  | `formless` | `boolean \| undefined` | `false` | | Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a "show advanced" switch). |
38750
39069
  | `groupBy` | `string \| ((item: T) => string \| number \| symbol) \| undefined` | | | Path to item property for grouping options. |
38751
39070
  | `hasErrors` | `boolean \| undefined` | `false` | | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
38752
39071
  | `hasWarnings` | `boolean \| undefined` | `false` | | Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority. |
38753
- | `headerHeight` | `number \| undefined` | | | Height of group headers in the listbox (px). Defaults to 32px (24px compact; 36px / 32px on mobile viewports). Only applies when `groupBy` is set. An explicit value wins on every viewport. |
39072
+ | `headerHeight` | `number \| undefined` | | | Group header height (px), with `groupBy`: 32 (24 compact; 36 / 32 on mobile viewports). An explicit value wins on every viewport. |
38754
39073
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
38755
39074
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
38756
39075
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
38757
39076
  | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
38758
- | `itemHeight` | `number \| undefined` | `28` | | Height of the options in the listbox (px). Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport. |
38759
- | `itemProps` | `BbSelectItemProps<T> \| undefined` | | | ADDITIONAL row fields, never the text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. An object of paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or the chips. |
38760
- | `items` | `T[] \| ((context: BbSelectItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`), sync or async. Branch on `reason !== 'search'` to resolve the selection by id. A provider fails by THROWING, never by returning `[]`. |
39077
+ | `itemHeight` | `number \| undefined` | `28` | | Option height (px): 28 (24 compact; 44 / 36 on mobile viewports). An explicit value wins on every viewport. |
39078
+ | `itemProps` | `BbSelectItemProps<T> \| undefined` | | | EXTRA row fields, never text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. Paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or chips. |
39079
+ | `items` | `T[] \| ((context: BbSelectItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider (sync or async) called with a `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`). Branch on `reason !== 'search'` to resolve the selection by id. It fails by THROWING, never by returning `[]`. |
38761
39080
  | `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
38762
39081
  | `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
38763
- | `knownItems` | `([Known] extends [undefined] ? BbSelectKnownItems : Known) \| undefined` | | | `{ value, label }` rows naming the value the app already holds, whatever the options' shape: no request until the first open (`prefill: true` still loads). Not options; the options' accessors never run on them; slots get the row as `item`, with `known: true`, until the list brings its own. |
39082
+ | `knownItems` | `([Known] extends [undefined] ? BbSelectKnownItems : Known) \| undefined` | | | `{ value, label }` rows naming the value the app already holds, whatever the options' shape: no request until the first open (`prefill: true` still loads). Not options, so no accessor runs on them; slots get the row as `item`, `known: true`, until the list brings its own. |
38764
39083
  | `label` | `string` | | yes | Text content of the label of the element. |
38765
39084
  | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
38766
39085
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
@@ -38769,29 +39088,31 @@ it: [passthrough guide § Typing `pt` in `<script>`](https://llms-bitboss-ui.bit
38769
39088
  | `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
38770
39089
  | `loadingText` | `string \| undefined` | | | String displayed while items are being loaded. |
38771
39090
  | `max` | `number \| undefined` | | | Maximum number of selectable items when the multiple flag is set. |
38772
- | `maxSelectedLabels` | `number \| undefined` | `Infinity` | | Maximum number of labels shown before collapsing to a count summary. Unset, the labels collapse only when they overflow the field. |
38773
- | `minQueryLength` | `number \| undefined` | `0` | | Characters to type (trimmed) before the query searches. Below it the query counts as empty: no `'search'` call, no filtering, and the panel says how many characters to type. Slots still get the typed `query`. |
39091
+ | `maxSelectedLabels` | `number \| undefined` | `Infinity` | | Labels shown before collapsing to a count summary. Unset, they collapse only when they overflow the field. |
39092
+ | `minQueryLength` | `number \| undefined` | `0` | | Characters to type (trimmed) before the query searches. Below it the query counts as empty: no `'search'` call, no filtering; the panel says how many to type. Slots still get the typed `query`. |
38774
39093
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
38775
39094
  | `modelValueDebounceTime` | `number \| undefined` | `0` | | Timeout used to debounce response to changes to modelValue. |
38776
39095
  | `multiple` | `boolean \| undefined` | `false` | | Allows the selection of multiple items. |
38777
39096
  | `name` | `string \| undefined` | | | Defines the name of the input. |
38778
- | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). |
39097
+ | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` `adaptive` renders), over its defaults. A `pt` inside styles only the sheet (passthrough guide § Inside the sheet). |
39098
+ | `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
38779
39099
  | `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
38780
39100
  | `placeholder` | `string \| undefined` | | | Text shown in the field while nothing is picked (an empty list has `emptyText`). |
38781
- | `prefill` | `boolean \| "interaction" \| undefined` | `'interaction'` | | When the options first load: `'interaction'` on first open, `true` on mount, `false` only once the user types (on open with `disable-writing`). An array `items` or a seeded model always loads at once. |
39101
+ | `prefill` | `boolean \| "interaction" \| undefined` | `'interaction'` | | When the options first load: `'interaction'` on first open, `true` on mount, `false` once the user types (on open with `disable-writing`). An array `items` or a seeded model loads at once. |
38782
39102
  | `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
39103
+ | `query` | `string \| undefined` | | | The search field's text (`v-model:query`): raw per keystroke, `''` when the component empties it; a write searches at once (guide § Reading and restoring the search). |
38783
39104
  | `queryDebounceTime` | `number \| undefined` | `500` | | Time to wait when the user stops writing in the input before querying data. |
38784
39105
  | `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
38785
39106
  | `required` | `boolean \| undefined` | `false` | | Sets the input as required. |
38786
39107
  | `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
38787
39108
  | `rules` | `RuleExpression<any>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
38788
39109
  | `selectable` | `boolean \| ((item: T) => boolean) \| undefined` | `true` | | Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled. |
38789
- | `selectedLabelsFn` | `((count: number) => string) \| undefined` | | | Function that returns a string to be displayed when the number of selected labels is greater than `maxSelectedLabels`. |
38790
- | `stash` | `boolean \| undefined` | `false` | | Keeps picked options named across searches: a pick stays resolvable (its chip keeps its text) when a later search or a failed load no longer returns it. It follows the model, and does not keep a pick valid: `enforce-coherence` still prunes it. |
39110
+ | `selectedLabelsFn` | `((count: number) => string) \| undefined` | | | The text shown when the selected labels outnumber `maxSelectedLabels`. |
39111
+ | `stash` | `boolean \| undefined` | `false` | | Keeps picks named (chips keep their text) when a later search or failed load stops returning them. It follows the model; it does not keep a pick valid (`enforce-coherence` still prunes it). |
38791
39112
  | `transitionDuration` | `number \| undefined` | `250` | | How long the transition has to last in milliseconds. |
38792
39113
  | `validationLabel` | `string \| undefined` | | | The field's name in validation messages (`{field}`): "Email is not valid". Defaults to the `label` (or `legend`), then "This field"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only. |
38793
39114
  | `validationMode` | `'aggressive'` \| `'balanced'` \| `'lazy'` \| `'submit-only'` \| `'submit-live'` | | | When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only. |
38794
- | `variant` | `'outline'` \| `'secondary'` \| `'none'` \| `'ghost'` | `'outline'` | | The field box's look, with `BbButton`'s names and tokens. Colours only, so a form never reflows; `'ghost'` has no border in any state, `'none'` no look at all (you own hover, focus and the states). Register more with the plugin's `components.BbSelect.variants`. |
39115
+ | `variant` | `'outline'` \| `'secondary'` \| `'none'` \| `'ghost'` | `'outline'` | | The field box's look: `BbButton`'s names and tokens, colours only (a form never reflows). `'ghost'` has no border in any state; `'none'` no look at all (you own hover, focus, states). More via the plugin's `components.BbSelect.variants`. |
38795
39116
  | `warnings` | `string \| string[] \| undefined` | | | Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set. |
38796
39117
 
38797
39118
  ## Passthrough parts and states
@@ -38800,30 +39121,31 @@ it: [passthrough guide § Typing `pt` in `<script>`](https://llms-bitboss-ui.bit
38800
39121
 
38801
39122
  | Part | What it is |
38802
39123
  | --- | --- |
38803
- | `root` | The field's outer container: the label, the box and the lines under it; a `class` on the component lands here. (The options surface is `panel`.) |
39124
+ | `root` | The field's outer container (label, box, the lines under it); a `class` on the component lands here. The options surface is `panel`. |
38804
39125
  | `label` | The label text above the box (the `label` prop). |
38805
39126
  | `description` | The muted line under the label (the `description` prop). |
38806
39127
  | `message` | The errors / warnings line under the box. A node of its own: it can show at the same time as `hint`. |
38807
39128
  | `hint` | The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`. |
38808
39129
  | `box` | The bordered box around the input — border, background and radius; the `variant` paints here. |
38809
- | `activator` | The button you act on to open the options — the field's control (not a text field: `data-test` fits here, `autocomplete` does not). The chevron is chrome. It is `activator`, not the family's `input`: the field itself is a button (the date / time inputs' trigger is the same word). |
38810
- | `input` | The search field inside the options surface, when it shows one (see `disable-writing`) — handed to the `BbSelectPopover` as its own `pt:input`. Its ✕ is chrome. |
39130
+ | `activator` | The button that opens the options: the field's control, not a text field (`data-test` fits, `autocomplete` does not). The chevron is chrome. `activator`, not the family's `input`: the field is a button, as the date / time inputs' trigger. |
39131
+ | `input` | The options surface's search field, when shown (see `disable-writing`): the `BbSelectPopover`'s `pt:input`. Its ✕ is chrome. |
38811
39132
  | `icon` | The content icons, prepend and append — a broadcast. Chrome (the clear ✕, a chevron, the error / warning glyph) is never in it. |
38812
39133
  | `spinner` | The spinner inside the box while `loading`. |
38813
39134
  | `prefix` | The `#prefix` slot's wrapper, inside the box before the input. |
38814
39135
  | `suffix` | The `#suffix` slot's wrapper, inside the box after the input. |
38815
- | `clear` | The ✕ in the field that empties the selection (`clearable`) — one node, never a chip's own ✕. |
39136
+ | `clear` | The field's ✕ that empties the selection (`clearable`): one node, never a chip's ✕. |
38816
39137
  | `panel` | The options surface — the popover's painted bubble on desktop, the sheet itself on a phone. |
38817
39138
  | `sheet` | The bottom sheet the options open in on a phone only. |
38818
- | `header` | The band around your `#header` slot: at the top of the flyout on desktop, the sheet's header on a phone. |
38819
- | `footer` | The band around your `#footer` slot: at the bottom of the flyout on desktop, the sheet's footer on a phone. |
38820
- | `list` | The `role="listbox"` node that holds the options. Virtualised: its height is written inline and its rows are positioned by the list, which limits what a layout utility can do there. The listbox's groups and the chips are not parts. |
39139
+ | `header` | The band around your `#header` slot: atop the flyout, the sheet's header on a phone. |
39140
+ | `footer` | The band around your `#footer` slot: under the flyout's list, the sheet's footer on a phone. |
39141
+ | `list` | The `role="listbox"` node holding the options. Virtualised: the list writes its height and places its rows, which limits layout utilities there. A group's box and the chips are not parts. |
39142
+ | `groupHeader` | Every `groupBy` heading (sticky). `#group` replaces its content. |
38821
39143
  | `option` | One listbox option — a broadcast resolved per option. Also takes a per-item function, called with the option's raw item. |
38822
39144
  | `itemText` | An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
38823
39145
  | `itemIcon` | An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function. |
38824
39146
  | `itemDescription` | An option's second line (its description) — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
38825
- | `check` | The tick on the chosen option, at the row's end — mounted on every option and drawn on the chosen ones; a custom `#option` slot keeps it. `pt:check="hidden"` removes it and leaves a glyph your slot draws alone. Also takes a per-item function. |
38826
- | `badge` | Each selected value's `BbBadge` root with `multiple` — a broadcast resolved per value, on the field's chips and on the phone sheet's. The badge's own ✕ is chrome, never `clear`. In the field, not rendered when the `#chip` slot replaces it, nor in `comma` mode; the sheet's chips are always badges. |
39147
+ | `check` | The tick at a chosen option's end (on every option, drawn on the chosen). A custom `#option` slot keeps it; `pt:check="hidden"` removes it, sparing your slot's glyph. Also takes a per-item function. |
39148
+ | `badge` | Each selected value's `BbBadge` root with `multiple`, per value, in the field and on the phone sheet. Its ✕ is chrome, never `clear`. The field has none under `#chip` or `comma`; the sheet's chips are always badges. |
38827
39149
  | `comma` | Each selected value with `multiple` and `comma` — a broadcast resolved per value. |
38828
39150
 
38829
39151
  States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
@@ -38833,7 +39155,7 @@ States are listed in precedence order: when two are on at once and their entries
38833
39155
  | `hasValue` | Component-wide: the control holds a value, by its own rule (`0` counts on `BbNumberInput`, `''` on `BbColorInput`). |
38834
39156
  | `selected` | Per node, on `option`, its `item-*` parts and `check`: a chosen option. |
38835
39157
  | `readonly` | Component-wide: the control is `readonly` — shown, focusable, not editable. |
38836
- | `disabled` | Component-wide while the select is `disabled`; also per node, on `option`, its `item-*` parts and `check`: an option that is disabled. |
39158
+ | `disabled` | Component-wide while the select is `disabled`; also per node, on `option`, its `item-*` parts and `check`: an option that is disabled; on `groupHeader`: all its group's options are. |
38837
39159
  | `warnings` | Component-wide: the control is in its warning state (`warnings` / `has-warnings`) and not in an error state — errors win, so the two are never on together. |
38838
39160
  | `errors` | Component-wide: the control is in its error state (`errors` / `has-errors`, or its validation) — the message line and the box turn red. |
38839
39161
  | `open` | Component-wide: the options surface is showing. |
@@ -38853,24 +39175,26 @@ States are listed in precedence order: when two are on at once and their entries
38853
39175
  - `hide` — `(): void` — Emitted as soon as the options surface starts to close.
38854
39176
  - `inactive` — `(): void` — Emitted when focus moves outside the whole select after it was active.
38855
39177
  - `input` — `(event: Event): void` — Emitted on native `input` events from the search field. Forwards the DOM `Event`.
38856
- - `option:add` — `(text: string): void` — Emitted with the typed text when the user confirms a value that is not in the list (Enter in the search field). Binding it keeps the search field writable, which makes the select creatable.
39178
+ - `option:add` — `(text: string): void` — The typed text, when the user confirms a value not in the list (Enter in the search field). Binding it keeps the field writable: the select is creatable.
38857
39179
  - `show` — `(): void` — Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone).
38858
39180
  - `shown` — `(): void` — Emitted once the options surface is open and its open transition has finished.
38859
39181
  - `update:modelValue` — `(value: any): void` — Emitted with the new value whenever `v-model` changes.
39182
+ - `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
39183
+ - `update:query` — `(value: string): void` — `v-model:query`: the search field's text.
38860
39184
 
38861
39185
  ## Slots
38862
39186
 
38863
39187
  - `append` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content appended inside the input field, after the value area.
38864
39188
  - `append:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content appended outside the input field wrapper.
38865
- - `chip` — scope: `BbSelectChipSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` — Replaces the default badge rendered for each selection in `multiple` mode. Not called in `comma` mode, nor for the collapsed "+N" summary. With `known-items` bound, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one.
38866
- - `description` — scope: `BbSelectDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`.
38867
- - `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; error: unknown; }` — Content shown when no options match the query or the list is empty. `error` is what the latest failed load threw, untouched (`null` when none). `close()` closes the panel, for an action that does not move focus out of it.
38868
- - `footer` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Content pinned to the bottom of the options panel, below the options list. Rendered in both the desktop popover and the adaptive sheet.
38869
- - `group` — scope: `BbSelectGroupSlotProps<T>` `{ text: string; item: T; index: number; length: number; disabled: boolean }` — Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header.
38870
- - `header` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Content pinned to the top of the options panel, above the search field. Rendered in both the desktop popover and the adaptive sheet.
39189
+ - `chip` — scope: `BbSelectChipSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` — Each selection's badge with `multiple` (not in `comma` mode, nor the "+N" summary). With `known-items`, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one.
39190
+ - `description` — scope: `BbSelectDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text; alone (no `description` prop) it still renders the region, wired into `aria-describedby`.
39191
+ - `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Shown when no option matches the query or the list is empty; a failed load shows the failure row instead (`failed-text`, "Try again"). `close()` closes the panel, for an action that keeps focus in it.
39192
+ - `footer` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Pinned under the options list, on the popover and the phone sheet alike.
39193
+ - `group` — scope: `BbSelectGroupSlotProps<T>` `{ text: string; item: T; index: number; length: number; disabled: boolean }` — Each group heading's content (`pt:group-header` styles its box). Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without one.
39194
+ - `header` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Pinned atop the options panel, above the search field, on the popover and the phone sheet alike.
38871
39195
  - `label` — scope: `BbSelectLabelSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default label text rendered above the input.
38872
39196
  - `loading` — scope: `{ query: string; }` — Content shown inside the options dropdown while items are loading.
38873
- - `option` — scope: `BbSelectOptionSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` — Replaces the default rendering of each option row in the dropdown. With `known-items` bound, a row the list has not brought yet is the known `{ value, label }` row, `known: true`: check `known` before reading an option field off `item`.
39197
+ - `option` — scope: `BbSelectOptionSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` — Each option row's content. With `known-items`, a row the list has not brought yet is the known `{ value, label }` row (`known: true`): check `known` before reading an option field off `item`.
38874
39198
  - `prefix` — scope: `object` — Content rendered as an inline prefix inside the input field.
38875
39199
  - `prepend` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content prepended inside the input field, before the value area.
38876
39200
  - `prepend:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content prepended outside the input field wrapper.
@@ -38895,16 +39219,16 @@ Set these on the element, or on a class you put on it, to retune this component
38895
39219
  - **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `BbSelect`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
38896
39220
  - Listed nodes are the ones `BbSelect`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbSelect.tree.json` (a public component in it is a name: its own tree file has the rest).
38897
39221
 
38898
- - `BbSelect` _(this component)_ — its own template binds: `badge` → `CommonField`, `activator` → `input.bb-select__activator`, `badge` → `input.bb-select__activator`, `comma` → `span.bb-select__comma`, `badge` → `span.bb-select__comma`, `badge` → `BbBadge`, `controlAttrs` → `input`, `badge` → `input`; hands `BbSelectPopover` the pt map `{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }` (ours → theirs)
39222
+ - `BbSelect` _(this component)_ — its own template binds: `badge` → `CommonField`, `activator` → `input.bb-select__activator`, `badge` → `input.bb-select__activator`, `comma` → `span.bb-select__comma`, `badge` → `span.bb-select__comma`, `badge` → `BbBadge`, `controlAttrs` → `input`, `badge` → `input`; hands `BbSelectPopover` the pt map `{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', groupHeader: 'groupHeader', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }` (ours → theirs)
38899
39223
  - `CommonField` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
38900
39224
  - `CommonFieldInput` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
38901
39225
  - `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
38902
39226
  - `BbSelectPopover` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md))_ — its own pt parts (`BbSelectPopover`): `input` → `input.bb-select-popover__input`, `clear` → `ClearableButton`, `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-select-popover__header`, `footer` → `div.bb-select-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbBadge`, `BbIcon`, `ClearableButton`, `CommonPopover`, `ErrorIcon`, `WarningIcon`, `BbSmoothHeight`
38903
39227
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
38904
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
39228
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
38905
39229
  - `ListBox` _(internal — not importable, reach it through `BbSelectPopover`)_
38906
39230
  - `FlatListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
38907
- - `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
39231
+ - `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `groupHeader` → `span.bb-listbox__group-header`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
38908
39232
 
38909
39233
  ## See Also
38910
39234
 
@@ -38946,6 +39270,7 @@ Set these on the element, or on a class you put on it, to retune this component
38946
39270
  | `pt:itemText` | `span.bb-listbox__item-text` | `FlatListBox` _(internal)_ |
38947
39271
  | `pt:itemDescription` | `span.bb-listbox__item-description` | `FlatListBox` _(internal)_ |
38948
39272
  | `pt:check` | the root of `BbIcon` | `BbIcon` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbIcon.md)) |
39273
+ | `pt:groupHeader` | `span.bb-listbox__group-header` | `GroupedListBox` _(internal)_ |
38949
39274
 
38950
39275
  **CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `BbSelectPopover`'s root:
38951
39276
 
@@ -39355,8 +39680,9 @@ Items playbook. The essentials:
39355
39680
  chips stay accurate; `modelValue` is your v-model as-is (typed `any`);
39356
39681
  `signal` is an `AbortSignal` to pass to every request.
39357
39682
  - A provider **throws** to fail (never `return []`, an applied empty result):
39358
- the rows are cleared, nothing is pruned, `failed-text` shows and `#empty`
39359
- gets `error`; retry by bumping a `dependencies` counter. A pick no row has
39683
+ the rows are cleared, nothing is pruned, and the failure row shows
39684
+ `failed-text` with a built-in "Try again" (`#empty` is for empty results
39685
+ only). A pick no row has
39360
39686
  named yet still shows (trigger text, phone-sheet chip): its value as given
39361
39687
  when it is a string or a number, else no text.
39362
39688
 
@@ -39498,7 +39824,7 @@ but only on a host that can transfer the result — see
39498
39824
  Opening the panel is not a search, so it loads nothing; until the first query the
39499
39825
  list shows a _"search to begin"_ hint instead of "no data".
39500
39826
 
39501
- `:min-query-length="3"` makes a shorter query (trimmed) count as empty: no
39827
+ `:min-query-length="3"` makes a shorter query (characters after trimming; an emoji is one) count as empty: no
39502
39828
  `'search'` call and no filtering, the hint says "Type at least 3 characters",
39503
39829
  and Enter emits no `option:add`. Slots still get the typed `query`.
39504
39830
 
@@ -39993,6 +40319,12 @@ closed-but-growable vocabularies — the same as `BbSelect`. The behaviour is ga
39993
40319
  by the search field existing; `disable-writing` (which removes the field) also
39994
40320
  disables it.
39995
40321
 
40322
+ While you listen to `option:add`, a typed query that no option matches
40323
+ exactly (case aside) also gets a **"Create «query»" row**: last after the
40324
+ matches, or the only row when nothing matches (in place of the no-results
40325
+ text and `#empty`). It is a real option (click, arrow keys, announced) and
40326
+ does what Enter does; not while the list loads or after a failed load.
40327
+
39996
40328
  ```ts
39997
40329
  const roles = ref<string[]>(['Reviewer', 'Approver']);
39998
40330
  const role = ref<string | null>(null);
@@ -40558,12 +40890,119 @@ popover ↔ sheet. `off-canvas-props` forwards extra `BbOffCanvas` props to the
40558
40890
  sheet (`size`, `draggable`, `fullscreen`, `stack`); `:adaptive="false"` keeps a
40559
40891
  floating popover everywhere.
40560
40892
 
40893
+ ### Opening from code: `v-model:open`
40894
+
40895
+ `v-model` is the value; `v-model:open` is whether the options panel is open. Bound,
40896
+ your ref opens and closes it, and every open and close the user makes is
40897
+ written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
40898
+ listener is only the initial state. An open from code is the same open a
40899
+ click makes (focus moves into the panel), and `disabled` / `readonly` refuse it (the ref is set back
40900
+ to `false`).
40901
+
40902
+ ### Reading and restoring the search: `v-model:query`
40903
+
40904
+ `v-model:query` is the search field's text. Bound, your ref reads it and sets
40905
+ it:
40906
+
40907
+ - **It mirrors the field, raw.** Every committed keystroke is written back as
40908
+ typed, spaces included (an IME composition once, when it ends), and `''`
40909
+ whenever the component empties the field itself: closing, a pick that
40910
+ closes, `option:add` (Enter or the create row), the ✕.
40911
+ - **A write is a search the user didn't type.** It runs at once, without
40912
+ the debounce, and supersedes a scheduled or in-flight search (its late
40913
+ answer never lands). Written while closed, it is held for the next open:
40914
+ `query = 'Rossi'; open = true` sends one request, for "Rossi". A write
40915
+ never opens the panel or moves focus, and is never echoed back.
40916
+ - **A write that can't land writes `''` back:** no search field
40917
+ (`disable-writing`), `disabled`, `readonly`, a refused open.
40918
+ - Unbound, a static `:query` seeds the next open.
40919
+
40920
+ The case it is for: bring a search back. The create row hands the query to
40921
+ `option:add` and empties the field; if the user cancels the dialog, put the
40922
+ query back and reopen, and "Create «Rossi»" is there again:
40923
+
40924
+ ```vue
40925
+ <script setup lang="ts">
40926
+ import { ref } from 'vue';
40927
+ import { BbButton, BbSelectPopover, useBbDialog } from 'bitboss-ui';
40928
+ import CreatePersonDialog from './CreatePersonDialog.vue';
40929
+
40930
+ const person = ref<number | null>(null);
40931
+ const open = ref(false);
40932
+ const query = ref('');
40933
+ const createPerson = useBbDialog(CreatePersonDialog);
40934
+
40935
+ const onAdd = async (text: string) => {
40936
+ const result = await createPerson.show({ name: text });
40937
+ if (result.completed) return void (person.value = result.value.id);
40938
+ query.value = text;
40939
+ open.value = true;
40940
+ };
40941
+ </script>
40942
+
40943
+ <template>
40944
+ <BbSelectPopover
40945
+ v-model="person"
40946
+ v-model:open="open"
40947
+ v-model:query="query"
40948
+ item-text="name"
40949
+ item-value="id"
40950
+ :items="searchPeople"
40951
+ @option:add="onAdd"
40952
+ >
40953
+ <template #activator="{ props, text }">
40954
+ <BbButton v-bind="props">{{ text || 'Person' }}</BbButton>
40955
+ </template>
40956
+ </BbSelectPopover>
40957
+ </template>
40958
+ ```
40959
+
40960
+ #### The state matrix
40961
+
40962
+ What a write does in each state, what the component emits, and where focus
40963
+ is. Each row is a test in `BbSelectPopover.queryModel.test.ts`.
40964
+
40965
+ | State | An app write | Emits | Focus | Test |
40966
+ | --- | --- | --- | --- | --- |
40967
+ | Closed | held for the next open; nothing fetched | nothing | unmoved | closed: a write is held |
40968
+ | Opening, query first | the open searches it: one request, at once | nothing | the field | query then open in one tick |
40969
+ | Opening, open first | the same single request | nothing | the field | open then query in one tick |
40970
+ | Opened from code with a held query | the field reads it | nothing | the field | an open from code with a held query |
40971
+ | Search-first (`prefill: false`) | the held query is searched at open | nothing | the field | search-first |
40972
+ | Static items | filters at once, create row included | nothing | the field | static items |
40973
+ | Open, idle | searches at once, no debounce | nothing | unmoved | open and idle |
40974
+ | Open, any write | never moves focus | nothing | unmoved | a write never moves focus |
40975
+ | Equal to the query | nothing | nothing | unmoved | a write equal to the query |
40976
+ | Typing | — | each keystroke, raw | the field | typing |
40977
+ | Typing, then a write | replaces the field | nothing (not echoed) | the field | a write while typing |
40978
+ | The app rewrites in its handler | applied once, no loop | the typed text | the field | an app that rewrites the query |
40979
+ | Debounce pending | drops the scheduled search, searches now | nothing | unmoved | a write while … debounced |
40980
+ | Fetch in flight | aborts it; its late answer never lands | nothing | unmoved | a write while a fetch is in flight |
40981
+ | Below `min-query-length` | kept raw; no fetch; the hint shows | nothing | unmoved | below min-query-length |
40982
+ | `''` while searched | the empty-query load | nothing | unmoved | a write of '' while searched |
40983
+ | `#empty` | reads the same raw query | — | — | #empty reads the raw query |
40984
+ | Single pick | — (closes) | `''` | activator | a single pick |
40985
+ | Multiple pick | — (the query stays) | nothing | the field | a multiple pick |
40986
+ | `option:add` (Enter) | — | `''`, after the event | the field | option:add on Enter |
40987
+ | The create row | — | `''` | the field | the create row |
40988
+ | The ✕ | — | `''` | the field | the ✕ |
40989
+ | Flyout close | held for the next open | `''` | activator | a flyout close |
40990
+ | Phone sheet dismiss | survives the slide-out | `''` when the close begins | activator | a sheet dismiss |
40991
+ | Phone sheet open | opens on the held query | nothing | the sheet | the sheet opens on the held query |
40992
+ | No search field, open | refused | `''` back | unmoved | no search field: the write is refused |
40993
+ | No search field, held | dropped at open | `''` back | the panel | no search field: a held query is dropped |
40994
+ | Disabled | refused | `''` back | unmoved | disabled |
40995
+ | Read-only (open refused) | the held query is dropped | `''` back | unmoved | readonly |
40996
+ | Unbound | a static `:query` seeds the next open | — | — | unbound |
40997
+ | IME composing | — | nothing until it ends, then once | the field | nothing is emitted mid-composition |
40998
+ | IME, a write meanwhile | yields to the committed text | the committed text | the field | a write during composition |
40999
+
40561
41000
  ### Events and v-model
40562
41001
 
40563
41002
  - `update:modelValue` — the resolved value (single) or array (multiple), on pick,
40564
41003
  `clear`, coherence enforcement, and — in `multiple` mode only — deselect.
40565
41004
  A second click on the current option in single mode emits nothing.
40566
- - `option:add` — Enter on a non-matching query with nothing highlighted (above).
41005
+ - `option:add` — Enter on a non-matching query with nothing highlighted, or the create row (above).
40567
41006
  - `focus` / `blur` — the activator gaining/losing focus.
40568
41007
  - `input` / `change` — native events from the panel search field.
40569
41008
  - `click` — the activator was clicked.
@@ -40596,8 +41035,11 @@ floating popover everywhere.
40596
41035
  object form, a style and attributes — optionally only while a state is on.
40597
41036
  Parts: `root` (the floating element — an invisible positioning wrapper, no node on a phone), `panel` (the options surface you see: the popover's painted bubble on desktop, the sheet itself on a phone), `sheet` (the bottom sheet the surface becomes on a phone — only that sheet, never the desktop surface; applied after `panel`, so it wins a conflict there), `input` (the search
40598
41037
  field), `option` (every listbox option, a broadcast resolved per option), `itemText` (that option's label), `itemIcon` (its `itemProps` icons) `itemDescription` (its muted second line, `itemProps.description`) and `check` (the tick on a chosen option) — all with the option's states; a custom `#option` slot replaces the label and description, never the tick (`pt:check="hidden"` drops it and leaves a mark your slot draws alone),
40599
- `header`, `footer`. States: `open`, and `selected` / `disabled` per option.
40600
- `BbSelect` forwards its own `panel` / `sheet` / `option` here.
41038
+ `header`, `footer`, and `groupHeader` (every `group-by` heading's box, sticky;
41039
+ `#group` replaces its content, never the box). States: `open`, and `selected`
41040
+ / `disabled` per option; `groupHeader:disabled` while every option of its
41041
+ group is. `BbSelect` forwards its own `panel` / `sheet` / `option` /
41042
+ `groupHeader` here.
40601
41043
 
40602
41044
  The filter-pill assignee picker above, restyled through those parts: mono on
40603
41045
  the search `pt:input`, a muted wash on the chosen option
@@ -40725,7 +41167,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
40725
41167
  it does not keep them valid.
40726
41168
  - A provider **throws** to fail; `return []` is an applied empty result that
40727
41169
  prunes every pick. On a failure the rows are cleared, nothing is pruned,
40728
- `failed-text` shows and `#empty` receives `error`.
41170
+ and the failure row shows `failed-text` with "Try again", never `#empty`.
40729
41171
  - `enforce-coherence` opts **each instance** into its own load. One field, one
40730
41172
  request; N provider-backed rows, N requests.
40731
41173
  - `option:add` can fire with an empty string — trim and guard.
@@ -40809,12 +41251,14 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
40809
41251
  ## v-model
40810
41252
 
40811
41253
  - `v-model` — type: `any`
41254
+ - `v-model:open` — type: `boolean \| undefined`
41255
+ - `v-model:query` — type: `string \| undefined`
40812
41256
 
40813
41257
  ## Props
40814
41258
 
40815
41259
  | Prop | Type | Default | Required | Description |
40816
41260
  | --- | --- | --- | --- | --- |
40817
- | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `check`, `clear`, `footer`, `header`, `input`, `itemDescription`, `itemIcon`, `itemText`, `list`, `option`, `panel`, `root`, `sheet`. States: `disabled`, `open`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectPopoverProps<Row>['pt']` (`BbSelectPopoverProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
41261
+ | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `check`, `clear`, `footer`, `groupHeader`, `header`, `input`, `itemDescription`, `itemIcon`, `itemText`, `list`, `option`, `panel`, `root`, `sheet`. States: `disabled`, `open`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectPopoverProps<Row>['pt']` (`BbSelectPopoverProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
40818
41262
  | `activator` | `ElementOrComponentRef \| undefined` | | | External activator element or component ref. When provided, the activator slot is not rendered and event listeners are attached programmatically to the referenced element. |
40819
41263
  | `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile, the panel opens as a bottom sheet instead of a floating popover, with the same search and list. Unset, the global `all.adaptive` applies. |
40820
41264
  | `anchor` | `ElementOrComponentRef \| undefined` | `null` | | Override the element used for popover positioning and width measurement. Useful when the focusable activator is narrower than its visual container (e.g. a button inside a wrapper). Falls back to `activatorEl` when omitted. |
@@ -40853,9 +41297,11 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
40853
41297
  | `multiple` | `boolean \| undefined` | `false` | | Enable multiple item selection. When true, modelValue must be an array. |
40854
41298
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). |
40855
41299
  | `offset` | `number \| undefined` | `4` | | Distance (px) between the activator and the popover. |
41300
+ | `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
40856
41301
  | `padding` | `number \| undefined` | `10` | | Minimum page padding used by floating shift middleware. |
40857
41302
  | `placement` | `'start'` \| `'end'` \| `'top'` \| `'bottom'` \| `'left'` \| `'right'` \| `'top-start'` \| `'top-end'` \| `'right-start'` \| `'right-end'` \| `'bottom-start'` \| `'bottom-end'` \| `'left-start'` \| `'left-end'` \| `'start-start'` \| `'start-end'` \| `'end-start'` \| `'end-end'` | `"bottom"` | | Floating placement of the popover. |
40858
41303
  | `prefill` | `boolean \| "interaction" \| undefined` | `"interaction"` | | When the options first load: `'interaction'` on first open, `true` on mount (and in SSR), `false` once the user types (on open with `disable-writing` or a non-empty model). An array `items` always resolves on mount; else a seeded model's text waits for the first open. |
41304
+ | `query` | `string \| undefined` | | | The search field's text (`v-model:query`): raw per keystroke, `''` when the component empties it; a write searches at once (guide § Reading and restoring the search). |
40859
41305
  | `queryDebounceTime` | `number \| undefined` | `500` | | Debounce delay (ms) before triggering search queries after user input stops. |
40860
41306
  | `readonly` | `boolean \| undefined` | `false` | | Prevents opening the popover while keeping the activator accessible. |
40861
41307
  | `searchInputAriaLabel` | `string \| undefined` | ``t('select.searchLabel')` (`'Search options'`)` | | Accessible label used by the search input rendered inside the popover. Falls back to the localized `select.searchLabel` key when omitted. |
@@ -40875,12 +41321,13 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
40875
41321
  | `sheet` | The bottom sheet the surface becomes on a phone (the `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there. |
40876
41322
  | `input` | The search field. |
40877
41323
  | `clear` | The ✕ that empties the search field. |
40878
- | `list` | The `role="listbox"` node that holds the options. Virtualised: its height is written inline and its rows are positioned by the list, which limits what a layout utility can do there. The listbox's groups and the chips are not parts. |
41324
+ | `list` | The `role="listbox"` node holding the options. Virtualised: the list writes its height and places its rows, which limits layout utilities there. A group's box and the chips are not parts. |
41325
+ | `groupHeader` | Every `groupBy` heading (sticky). `#group` replaces its content. |
40879
41326
  | `option` | One listbox option — a broadcast resolved per option. Also takes a per-item function, called with the option's raw item. |
40880
41327
  | `itemText` | An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
40881
41328
  | `itemIcon` | An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function. |
40882
41329
  | `itemDescription` | An option's second line (its description) — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
40883
- | `check` | The tick on the chosen option, at the row's end — mounted on every option and drawn on the chosen ones; a custom `#option` slot keeps it. `pt:check="hidden"` removes it and leaves a glyph your slot draws alone. Also takes a per-item function. |
41330
+ | `check` | The tick at a chosen option's end (on every option, drawn on the chosen). A custom `#option` slot keeps it; `pt:check="hidden"` removes it, sparing your slot's glyph. Also takes a per-item function. |
40884
41331
  | `header` | The flyout's header band. |
40885
41332
  | `footer` | The flyout's footer band. |
40886
41333
 
@@ -40889,7 +41336,7 @@ States are listed in precedence order: when two are on at once and their entries
40889
41336
  | State | When it is on |
40890
41337
  | --- | --- |
40891
41338
  | `selected` | Per node, on `option`, its `item-*` parts and `check`: a chosen option. |
40892
- | `disabled` | Per node, on `option`, its `item-*` parts and `check`: an option that is disabled. |
41339
+ | `disabled` | Per node, on `option`, its `item-*` parts and `check`: an option that is disabled; on `groupHeader`: every option of its group is. |
40893
41340
  | `open` | Component-wide: the options surface is showing. |
40894
41341
 
40895
41342
  ## Events
@@ -40907,11 +41354,13 @@ States are listed in precedence order: when two are on at once and their entries
40907
41354
  - `show` — `(): void` — Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone).
40908
41355
  - `shown` — `(): void` — Emitted once the options surface is open and its open transition has finished.
40909
41356
  - `update:modelValue` — `(value: any): void` — Emitted with the next selection value whenever selection changes.
41357
+ - `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
41358
+ - `update:query` — `(value: string): void` — `v-model:query`: the search field's text.
40910
41359
 
40911
41360
  ## Slots
40912
41361
 
40913
41362
  - `activator` — scope: `BbSelectPopoverActivatorSlotProps` `{ clear: () => void; close: () => Promise<void>; focus: () => void; disabled: boolean; loading: boolean; open: () => Promise<void>; props: { ref: (reference: unknown) => void; }; query: string; readonly: boolean; selectedOptions: BbSelectResolvedOption<any>[]; shown: boolean; text: string; toggle: () => Promise<void> }` — Replaces the default trigger element that opens the select popover.
40914
- - `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; error: unknown; }` — Content shown when no options match the query or the list is empty. `error` is what the latest failed load threw, untouched (`null` when none). `close()` closes the panel, for an action that does not move focus out of it.
41363
+ - `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content shown when no options match the query or the list is empty. Empty only: a failed load shows the library's failure row instead (its message is `failed-text`, and it ends with "Try again"). `close()` closes the panel, for an action that does not move focus out of it.
40915
41364
  - `footer` — scope: `BbSelectPopoverPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption<any>[]; titleId: string }` — Content pinned to the bottom of the panel, below the options list. Rendered in both the desktop popover and the adaptive sheet.
40916
41365
  - `group` — scope: `BbSelectPopoverGroupSlotProps<Item>` `{ disabled: boolean; index: number; item: Item; length: number; text: string }` — Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header.
40917
41366
  - `header` — scope: `BbSelectPopoverPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption<any>[]; titleId: string }` — Content pinned to the top of the panel, above the search field. Rendered in both the desktop popover and the adaptive sheet.
@@ -40941,10 +41390,10 @@ Set these on the element, or on a class you put on it, to retune this component
40941
41390
  - `BbSelectPopover` _(this component)_ — its own template binds: `input` → `input.bb-select-popover__input`, `clear` → `ClearableButton`, `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-select-popover__header`, `footer` → `div.bb-select-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs)
40942
41391
  - `BbBadge` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
40943
41392
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
40944
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
41393
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
40945
41394
  - `ListBox` _(internal — not importable, reach it through `BbSelectPopover`)_
40946
41395
  - `FlatListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
40947
- - `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
41396
+ - `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `groupHeader` → `span.bb-listbox__group-header`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
40948
41397
  - Also mounts `BbIcon`, `ClearableButton`, `CommonPopover`, `ErrorIcon`, `WarningIcon`, `BbSmoothHeight`
40949
41398
 
40950
41399
  ## See Also
@@ -44742,8 +45191,9 @@ called with one context object — `BbSwitchGroupItemsContext`: `reason`
44742
45191
  `'model'` when the model changed from outside and the options cannot resolve
44743
45192
  it), `modelValue` and `signal`; a group has no search field, so no `query`.
44744
45193
  While it resolves, `loading-text` (or the `#loading` slot) shows; `empty-text`
44745
- (or `#empty`) covers the empty result, and `failed-text` (or `#empty` with its
44746
- `error` prop) a load that threw. Loading, cancellation and race protection are
45194
+ (or `#empty`) covers the empty result, and `failed-text` words the failure
45195
+ row of a load that threw (it ends with a built-in "Try again"; `#empty` never
45196
+ renders for a failure). Loading, cancellation and race protection are
44747
45197
  built in — don't wrap the provider in your own `loading` ref or debounce.
44748
45198
 
44749
45199
  Tie the option set to external state with `dependencies` (debounced by
@@ -45036,7 +45486,7 @@ for a preset that fits any row type (never `<any>`), not an imported
45036
45486
  | `itemLayout` | `FieldLayout \| undefined` | `'auto'` | | How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`. |
45037
45487
  | `itemProps` | `BbOptionGroupItemProps<T> \| undefined` | | | ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly. |
45038
45488
  | `itemReverse` | `boolean \| undefined` | `undefined` | | Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead. |
45039
- | `items` | `T[] \| ((context: BbCheckboxGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbCheckboxGroupItemsContext` (`BbSwitchGroupItemsContext` on a switch group) (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. |
45489
+ | `items` | `T[] \| ((context: BbCheckboxGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with `{ reason, modelValue, signal }`, sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and the failure row shows `failed-text` with "Try again". |
45040
45490
  | `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
45041
45491
  | `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
45042
45492
  | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
@@ -45109,7 +45559,7 @@ States are listed in precedence order: when two are on at once and their entries
45109
45559
 
45110
45560
  - `append` — scope: `object` — Content rendered after the last option, inside the options container.
45111
45561
  - `description` — scope: `BbSwitchGroupDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`.
45112
- - `empty` — scope: `{ error: unknown; }` — Content shown when no options are available (replaces the default "no data" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows.
45562
+ - `empty` — scope: `object` — Content shown when no options are available (replaces the default "no data" text). Empty only: a failed load shows the library's failure row instead (its message is `failed-text`, and it ends with "Try again").
45113
45563
  - `icon` — scope: `BbSwitchGroupIconSlotProps<T>` `{ disabled: boolean; readonly: boolean; checked: boolean; indeterminate?: boolean; focused: boolean; focusVisible: boolean; id: string; name: string; falseValue: any; hasErrors: boolean; hasWarnings: boolean; parsedValue: string; trueValue: any; value: any; item: T; text: string }` — Replaces the default switch track visual for each option. Receives the switch state plus the source item and its display text.
45114
45564
  - `label` — scope: `BbSwitchGroupLabelSlotProps<T>` `{ item: T; text: string; checked: boolean; description: string }` — Replaces the default label text for each option.
45115
45565
  - `legend` — scope: `BbSwitchGroupLegendSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default fieldset legend text for the group.
@@ -45551,7 +46001,8 @@ warns on a loop over keys it cannot see (`#[column.key]` over a prop) until
45551
46001
  the name goes through `slotKey`. Keep the column in `columns`
45552
46002
  even when you fully slot it: label, alignment and width still come from there.
45553
46003
  A `#<key>` slot owns its cell: when it renders nothing (a `v-if` that is
45554
- false), the cell is empty, never the raw value.
46004
+ false), the cell is empty, never the raw value (the one exception to the
46005
+ empty-slot rule).
45555
46006
 
45556
46007
  Body cell scope: `content` (this cell, formatted), `item` (raw row), `value`
45557
46008
  (the row's `item-value`, e.g. its id — not this cell), `classes`, plus the row's interaction surface —
@@ -45579,13 +46030,14 @@ costs you the built-in sort button. The table-wide pair `#header:prepend` /
45579
46030
  structural select/actions cells); both forms receive the header scope above
45580
46031
  plus `columnKey` (the raw column key) so a table-wide template can branch per
45581
46032
  column. When both a per-column and the table-wide slot are provided for the
45582
- same side, the per-column one wins for that column — they never stack. Affixes
46033
+ same side, the per-column one wins for that column — they never stack; one
46034
+ that renders nothing for its column falls back to the table-wide one. Affixes
45583
46035
  render even beside a full `#<key>:header` replacement (the same rule as
45584
46036
  BbDropdown's `#<value>:prepend/append`). The key always comes first, so a
45585
46037
  column keyed `prepend` still owns `#prepend:header`, and `#header:prepend`
45586
46038
  stays the table-wide slot.
45587
46039
 
45588
- Below, the status badges carry brand glyphs shipped in the app's `iconDir`,
46040
+ Below, the status badges carry brand glyphs shipped in the app's `icons.dir`,
45589
46041
  referenced as `local:*` names on the badge's `prepend:icon`. Per the icons
45590
46042
  policy the dynamic status maps to **full-name literals** (a lookup object) —
45591
46043
  never a template-composed `` `local:${status}` ``. Colours use the registered
@@ -45906,9 +46358,10 @@ There is no `error-text` prop and no `empty-text` alias — don't guess either
45906
46358
  by analogy with `loading-text`. A failed _server_ visit (Inertia, a full-page
45907
46359
  load) is a full error page, not something the table renders inline. A failed
45908
46360
  _client-side_ fetch is the table's own: an `items` provider function that
45909
- throws clears the rows and the empty state shows `failed-text` ("Couldn't
45910
- load items"), and the `#empty` slot receives the rejection as `error` (see §
45911
- Async items and filters) — don't catch it yourself.
46361
+ throws clears the rows and the table shows its failure row: `failed-text`
46362
+ ("Couldn't load items"), announced, then a "Try again" button that runs the
46363
+ failed call again (see § Async items and filters). `#empty` is for an empty
46364
+ result only — don't catch the error yourself.
45912
46365
 
45913
46366
  **Skeletons and a custom empty state**
45914
46367
 
@@ -46000,11 +46453,9 @@ type BbTableItemsContext = {
46000
46453
  - A newer call aborts the one in flight and its late answer is dropped. A
46001
46454
  provider **throws** to fail — never `return []`, an applied empty result:
46002
46455
  the rows are cleared (stale rows never sit under a new filter), nothing is
46003
- pruned, and the empty state shows `failed-text` ("Couldn't load items") —
46004
- the `#empty` slot receives `error`: what the provider rejected with,
46005
- untouched (an `Error`, a `Response`, anything thrown; a nullish rejection
46006
- becomes an `Error`), and `null` when nothing failed. Retry by bumping a
46007
- counter you list in `dependencies`.
46456
+ pruned, and the failure row shows `failed-text` ("Couldn't load items")
46457
+ with a built-in "Try again" (on click only; focus then moves to the table).
46458
+ `#empty` never renders for a failure.
46008
46459
  - Return the page as it is: the table never merges the selection into it.
46009
46460
  - A plain array bypasses the provider machinery entirely.
46010
46461
 
@@ -49591,7 +50042,7 @@ for a preset that fits any row type (never `<any>`), not an imported
49591
50042
  | `id` | `string \| undefined` | | | Stable id for this table's width context. When omitted a unique id is generated. Nested tables use the nearest ancestor id to inherit widths. |
49592
50043
  | `inheritColumnWidths` | `string \| boolean \| undefined` | | | Snaps a nested table's columns to an ancestor table's tracks: `true` = the nearest one, a table `id` = that one (when a table in between has a different column count). Off by default: a nested table sizes itself. |
49593
50044
  | `interactiveWhileLoading` | `boolean \| undefined` | `false` | | Keeps the header and rows interactive while loading (by default they are `inert`: a refetch is about to replace them). For background refreshes that must not interrupt an open editor. |
49594
- | `items` | `Item[] \| ((context: BbTableItemsContext) => Item[] \| Promise<Item[]>)` | `[]` | yes | Rows to render: an array, or a provider called with a `BbTableItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. Return the page as it is. |
50045
+ | `items` | `Item[] \| ((context: BbTableItemsContext) => Item[] \| Promise<Item[]>)` | `[]` | yes | Rows to render: an array, or a provider called with a `BbTableItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and the failure row shows `failed-text` with "Try again". Return the page as it is. |
49595
50046
  | `itemValue` | `ItemAccessor<Item> \| undefined` | | | The row's value, as a property path or a function returning any value; the selection, `expandedItems` and row keys compare by it. |
49596
50047
  | `keyboardNavigation` | `boolean \| undefined` | `false` | | Opt-in keyboard navigation: the table becomes an ARIA `grid` (`treegrid` with an `#expand` slot) with ONE tab stop and roving focus over its cells. Controls in cells leave the tab order (Enter/F2 go in). Ignored with a `#tbody` slot. |
49597
50048
  | `legend` | `string \| undefined` | | | The `<legend>` of a `selectable` table (it renders as a `<fieldset>`): the selection's accessible name. Falls back to `caption`, then to a localized default. |
@@ -49685,10 +50136,10 @@ States are listed in precedence order: when two are on at once and their entries
49685
50136
 
49686
50137
  - `actions` — scope: `{ expanded?: boolean \| undefined; expandProps?: ExpandControllerProps \| undefined; toggleExpanded?: (() => void) \| undefined; highlighted?: boolean \| undefi…` — Content of each row's actions cell; this slot CREATES the actions column (there is no prop). The header cell (labelled by `actions-text`, replaceable through `#actions:header`) and one cell per row come and go with it. Pin it with `fixed-actions`.
49687
50138
  - `actions:header` — scope: `{ text: string; }` — Replaces the default actions header cell content.
49688
- - `empty` — scope: `{ error: unknown; }` — Content shown when there are no rows and nothing is loading, inside the table's own full-width cell: pass content, never a row. `error` is what the latest failed load threw (`null` when none).
50139
+ - `empty` — scope: `object` — Content shown when there are no rows and nothing is loading, inside the table's own full-width cell: pass content, never a row. Empty only: a failed load shows the table's failure row instead (its message is `failed-text`, and it ends with "Try again").
49689
50140
  - `expand` — scope: `{ expanded: boolean; expandProps?: ExpandControllerProps \| undefined; toggleExpanded: () => void; highlighted?: boolean \| undefined; toggleHighlighted?: (() =…` — Full-width expandable content row rendered below each main row when expanded.
49690
- - `header:append` — scope: `BbTableHeaderAffixSlotProps<Item>` `{ classes?: Classes; columnKey: string; items?: Item[]; label?: string; sortable?: boolean; sortOrder?: "asc" \| "desc" \| null; toggleSort?: ((event?: MouseEvent \| KeyboardEvent \| undefined) => void); hideColumn?: (() => void) }` — Content after every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:append` wins over this for that column; they never stack. Branch on `columnKey` for per-column output.
49691
- - `header:prepend` — scope: `BbTableHeaderAffixSlotProps<Item>` `{ classes?: Classes; columnKey: string; items?: Item[]; label?: string; sortable?: boolean; sortOrder?: "asc" \| "desc" \| null; toggleSort?: ((event?: MouseEvent \| KeyboardEvent \| undefined) => void); hideColumn?: (() => void) }` — Content before every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:prepend` wins over this for that column; they never stack. Branch on `columnKey` for per-column output.
50141
+ - `header:append` — scope: `BbTableHeaderAffixSlotProps<Item>` `{ classes?: Classes; columnKey: string; items?: Item[]; label?: string; sortable?: boolean; sortOrder?: "asc" \| "desc" \| null; toggleSort?: ((event?: MouseEvent \| KeyboardEvent \| undefined) => void); hideColumn?: (() => void) }` — Content after every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:append` wins over this for that column; they never stack, unless it renders nothing there. Branch on `columnKey` for per-column output.
50142
+ - `header:prepend` — scope: `BbTableHeaderAffixSlotProps<Item>` `{ classes?: Classes; columnKey: string; items?: Item[]; label?: string; sortable?: boolean; sortOrder?: "asc" \| "desc" \| null; toggleSort?: ((event?: MouseEvent \| KeyboardEvent \| undefined) => void); hideColumn?: (() => void) }` — Content before every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:prepend` wins over this for that column; they never stack, unless it renders nothing there. Branch on `columnKey` for per-column output.
49692
50143
  - `loading` — scope: `{ items: Item[]; }` — Content shown while table rows are loading (replaces the skeleton rows).
49693
50144
  - `select` — scope: `{ item: Item; value: TableValueOf<Item, A>; checked: boolean; disabled: boolean; inputName: string; readonly: boolean; toggleSelected?: (() => void) \| undefine…` — Replaces the default checkbox/radio in the selection cell for each row.
49694
50145
  - `select:header` — scope: `{ multiple: boolean; selectAll: boolean; text: string; }` — Replaces the default selection header cell content (checkbox or radio label).
@@ -49697,8 +50148,8 @@ States are listed in precedence order: when two are on at once and their entries
49697
50148
  - `thead` — scope: `{ empty: boolean; }` — Replaces the header row group's content (`.bb-table__head`). The table is a CSS grid: provide `<div role="row">` rows of `<div role="columnheader">` cells, never `<tr>` / `<th>`.
49698
50149
  - `#<key>` (named from data) — scope: `object` — One column's body cell in every row, by the column `key` through `slotKey`. Scope: `{ item, value, content, selected, expanded, highlighted, classes, sortOrder, toggleSelected, toggleExpanded, toggleHighlighted, expandProps }`; `content` is this cell, `value` the row's `item-value`. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `actions`, `empty`, `expand`, `loading`, `select`, `tbody`, `tfoot`, `thead`.
49699
50150
  - `#<key>:header` (named from data) — scope: `object` — One column's header content, replacing its label and the built-in sort button. Scope: `{ label, items, sortable, sortOrder, toggleSort, hideColumn, classes }`.
49700
- - `#<key>:header:prepend` (named from data) — scope: `BbTableHeaderAffixSlotProps<Item>` — Content before one column's header, keeping the sort button; beats `header:prepend` (they never stack).
49701
- - `#<key>:header:append` (named from data) — scope: `BbTableHeaderAffixSlotProps<Item>` — Content after one column's header, keeping the sort button; beats `header:append` (they never stack).
50151
+ - `#<key>:header:prepend` (named from data) — scope: `BbTableHeaderAffixSlotProps<Item>` — Content before one column's header, keeping the sort button; beats `header:prepend` (they never stack) unless it renders nothing.
50152
+ - `#<key>:header:append` (named from data) — scope: `BbTableHeaderAffixSlotProps<Item>` — Content after one column's header, keeping the sort button; beats `header:append` (they never stack) unless it renders nothing.
49702
50153
  - `#<key>:first` (named from data) — scope: `BbTableEdgeCellSlotProps<Item>` — One column's cell in a row before the data rows; any such slot creates the row, aligned with the columns. Only over rows.
49703
50154
  - `#<key>:last` (named from data) — scope: `BbTableEdgeCellSlotProps<Item>` — One column's cell in a row after the data rows (a totals row); any such slot creates that row, aligned like `<key>:first`.
49704
50155
 
@@ -55533,6 +55984,15 @@ Reach for the **component** (slot or `activator` prop) when you want the
55533
55984
  the directive is the shortcut for the bare-trigger cell case, not a replacement
55534
55985
  for the component's `v-model` in a form.
55535
55986
 
55987
+ ### Opening from code: `v-model:open`
55988
+
55989
+ `v-model` is the value; `v-model:open` is whether the time panel is open. Bound,
55990
+ your ref opens and closes it, and every open and close the user makes is
55991
+ written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
55992
+ listener is only the initial state. An open from code is the same open a
55993
+ click makes, and `disabled` / `readonly` refuse it (the ref is set back
55994
+ to `false`).
55995
+
55536
55996
  ### Relationship to BbTimePickerInput
55537
55997
 
55538
55998
  `BbTimePickerInput` _is_ these columns with a segmented text field wrapped around
@@ -55617,6 +56077,7 @@ typeahead. Always pass a `label` when the trigger is an unlabelled cell or icon.
55617
56077
 
55618
56078
  - `v-model:activeSegment` — type: `BbTimePickerSegment \| undefined`
55619
56079
  - `v-model` — type: `string \| string[] \| null \| undefined`
56080
+ - `v-model:open` — type: `boolean \| undefined`
55620
56081
 
55621
56082
  ## Props
55622
56083
 
@@ -55638,6 +56099,7 @@ typeahead. Always pass a `label` when the trigger is an unlabelled cell or icon.
55638
56099
  | `modelValue` | `string \| string[] \| null \| undefined` | | | v-model value: `null` for empty, a 24-hour `HH:mm` (or `HH:mm:ss` with `seconds`) string, or a two-element `[start, end]` array when `range` is true. |
55639
56100
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
55640
56101
  | `offset` | `number \| undefined` | `4` | | Space the popover keeps from the activator. |
56102
+ | `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
55641
56103
  | `padding` | `number \| undefined` | | | Minimum empty space to keep from the edge of the page. |
55642
56104
  | `placement` | `'start'` \| `'end'` \| `'top'` \| `'bottom'` \| `'left'` \| `'right'` \| `'top-start'` \| `'top-end'` \| `'right-start'` \| `'right-end'` \| `'bottom-start'` \| `'bottom-end'` \| `'left-start'` \| `'left-end'` \| `'start-start'` \| `'start-end'` \| `'end-start'` \| `'end-end'` | | | Position of the popover relative to the activator/anchor. |
55643
56105
  | `range` | `boolean` | `false` | | Range selection: the value is a two-element `[start, end]` array. |
@@ -55677,6 +56139,7 @@ States are listed in precedence order: when two are on at once and their entries
55677
56139
  - `time-pick` — `(payload: { unit: TimeUnit; value: string; }): void` — Relay of the raw column pick, before this component combines it into the value. A host binds this to run its own engine; clean consumers ignore it.
55678
56140
  - `update:activeSegment` — `(value: BbTimePickerSegment): void` — The active range end changed (range only).
55679
56141
  - `update:modelValue` — `(value: string \| string[] \| null): void` — Emitted when the selected time changes (single/range/null).
56142
+ - `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
55680
56143
 
55681
56144
  ## Slots
55682
56145
 
@@ -55704,7 +56167,7 @@ Set these on the element, or on a class you put on it, to retune this component
55704
56167
  - `CommonTimeSelector` _(internal — not importable, reach it through `BbTimePicker`)_ — `BbTimePicker`'s pt parts land here: `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`
55705
56168
  - `BbBaseButton` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
55706
56169
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
55707
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
56170
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
55708
56171
  - Also mounts `CommonPopover`
55709
56172
 
55710
56173
  ## See Also
@@ -55853,7 +56316,9 @@ and parses its own digits. Any other attribute lands on the field root; a
55853
56316
 
55854
56317
  `min` / `max` (`HH:mm`) clamp typed times when interaction ends — the value
55855
56318
  snaps to the nearest bound and an `error` event with code `disabled_time`
55856
- fires (`{ original, normalized }`). In `range` mode the model is `[start,
56319
+ fires (`{ original, normalized }`). A value your app sets past a bound stays
56320
+ as it is while nobody touches the field; once the user focuses it and leaves,
56321
+ it is clamped like a typed one. In `range` mode the model is `[start,
55857
56322
  end]`; typing an inverted pair swaps it on blur with the usual
55858
56323
  `end_before_start` error.
55859
56324
 
@@ -55882,6 +56347,15 @@ title and ✕: none of the input's own parts reach inside the sheet). `disableWr
55882
56347
  interaction, and a tap anywhere on the field opens them (Enter or Space too;
55883
56348
  the ✕ still only clears).
55884
56349
 
56350
+ ### Opening from code: `v-model:open`
56351
+
56352
+ `v-model` is the value; `v-model:open` is whether the time panel is open. Bound,
56353
+ your ref opens and closes it, and every open and close the user makes is
56354
+ written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
56355
+ listener is only the initial state. An open from code is the same open a
56356
+ click makes, and `disabled` / `readonly` refuse it (the ref is set back
56357
+ to `false`).
56358
+
55885
56359
  ### Events & v-model
55886
56360
 
55887
56361
  | Event | Payload | When |
@@ -56015,6 +56489,7 @@ Messages _also_ render in an `aria-live="polite"` region.
56015
56489
  ## v-model
56016
56490
 
56017
56491
  - `v-model` — type: `string \| string[] \| null \| undefined`
56492
+ - `v-model:open` — type: `boolean \| undefined`
56018
56493
 
56019
56494
  ## Props
56020
56495
 
@@ -56050,6 +56525,7 @@ Messages _also_ render in an `aria-live="polite"` region.
56050
56525
  | `modelValue` | `string \| string[] \| null \| undefined` | | | v-model value: `null` for empty, a 24-hour `HH:mm` (or `HH:mm:ss` with `seconds`) string, or a two-element array when `range` is true. |
56051
56526
  | `name` | `string \| undefined` | | | Defines the name of the input. |
56052
56527
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
56528
+ | `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
56053
56529
  | `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
56054
56530
  | `placeholder` | `string \| undefined` | | | Text shown while the field is empty. |
56055
56531
  | `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
@@ -56118,6 +56594,7 @@ States are listed in precedence order: when two are on at once and their entries
56118
56594
  - `show` — `(): void` — Emitted as soon as the time panel (the popover, or the sheet on a phone) starts to open.
56119
56595
  - `shown` — `(): void` — Emitted once the time panel is open and its open transition has finished.
56120
56596
  - `update:modelValue` — `(value: string \| string[] \| null): void` — Emitted whenever the selected time changes. `null` for cleared values, a `HH:mm(:ss)` string, or an array in range mode.
56597
+ - `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
56121
56598
 
56122
56599
  ## Slots
56123
56600
 
@@ -56150,7 +56627,7 @@ Set these on the element, or on a class you put on it, to retune this component
56150
56627
 
56151
56628
  - `BbTimePickerInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-segmented-field__input`, `input` → `input.bb-segmented-field__input`, `activator` → `button.bb-segmented-field__activator`, `suffix` → `span.bb-field-input__suffix`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs)
56152
56629
  - `BbOffCanvas` _(public — [contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
56153
- - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
56630
+ - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`, `--icon-inset`; also mounts `BbIcon`
56154
56631
  - `CommonField` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
56155
56632
  - `CommonFieldInput` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
56156
56633
  - `CommonTimeSelector` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`
@@ -56535,8 +57012,9 @@ positions form independent stacks.
56535
57012
  ### Action buttons
56536
57013
 
56537
57014
  Pass an `actions` array to render buttons in a row below the text. While a
56538
- button's `onClick` runs it shows a spinner, its siblings are disabled, and the
56539
- auto-dismiss countdown is held; the toast dismisses itself when the callback
57015
+ button's `onClick` runs it shows a spinner, its siblings ignore clicks (they
57016
+ keep their look and leave the tab order), and the auto-dismiss countdown is
57017
+ held; the toast dismisses itself when the callback
56540
57018
  resolves. A rejected callback keeps the toast open and the countdown resumes.
56541
57019
  Defaults per button: `variant: 'primary'`, `size: 'sm'`. An action's `text`
56542
57020
  is its button label; the toast's own `text` is the body copy above them.
@@ -58275,6 +58753,10 @@ and `#<depth>:children` slots that **replace the children container** of the
58275
58753
  matching node — the recursion stops there and your content renders instead,
58276
58754
  useful for a custom layout or an inline empty state under one branch.
58277
58755
 
58756
+ A slot that renders nothing for a node (its content behind a `v-if` that is
58757
+ false there) is skipped: `#<value>` falls to `#<depth>`, then `default`; an
58758
+ empty `:children` slot leaves that node its default children.
58759
+
58278
58760
  **Sections, pages and a special trash node**
58279
58761
 
58280
58762
  ```vue
@@ -59020,7 +59502,7 @@ States are listed in precedence order: when two are on at once and their entries
59020
59502
  - `default` — scope: `BbTreeNodeSlotProps<Meta>` `{ meta: Meta; item: BbTreeItem<Meta>; parent?: BbTreeItem<Meta>; index: number; depth: number; value: any; expanded: boolean; expandable: boolean; toggleExpanded: () => void; expandProps: BbTreeExpandControllerProps }`
59021
59503
  - `#<value>` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — One node, by its resolved `item-value` (string or number) through `slotKey`; beats `<depth>`, which beats `default`. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `default`.
59022
59504
  - `#<depth>` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — Every node at one depth (`0` = root); a numeric value can share this name. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `default`.
59023
- - `#<value>:children` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — One node's children container, stopping the recursion there; beats `<depth>:children`. Renders for leaves too.
59505
+ - `#<value>:children` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — One node's children container, stopping the recursion there; beats `<depth>:children`. Renders for leaves too; empty, the default children.
59024
59506
  - `#<depth>:children` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — The children container of every node at one depth.
59025
59507
 
59026
59508
  ## CSS custom properties
@@ -59419,6 +59901,7 @@ Set these on the element, or on a class you put on it, to retune this component
59419
59901
  | `anchor` | `ElementOrComponentRef \| VirtualAnchor \| undefined` | | | The element the popover positions itself relative to. Accepts an HTMLElement, a Vue component ref, or a virtual element with a `getBoundingClientRect` method. |
59420
59902
  | `arrowPadding` | `number \| undefined` | | | Space the arrow will maintain to the edge of the dropdown. Useful when the floating element has border radius so it won't appear broken |
59421
59903
  | `boundary` | `ElementOrComponentRefOrSelector \| undefined` | | | Keeps the popover inside this element alongside its anchor (sideways above or below, vertically beside it); away from the anchor it may pass the edge, and only the viewport flips it. It never clamps the size (that is `overflowBoundary`). An HTMLElement, component ref or selector. |
59904
+ | `boundaryX` | `Element \| undefined` | | | Internal: keeps the popover inside this element's left and right edges only; its top and bottom stay the viewport's. Ignored when `boundary` is set. A dropdown inside a table passes the table. |
59422
59905
  | `bubbleAttrs` | `Record<string, unknown> \| ((space: CommonPopoverAvailableSpace) => Record<string, unknown>) \| undefined` | | | Attributes bound on the bubble (`class`, `style`, `inert`, …) after its own class, so the owner can make the bubble its layout container. The function form receives the default slot's free space (for a height cap). |
59423
59906
  | `dialog` | `boolean \| undefined` | `false` | | Renders the popover as a `<dialog>` element (modal overlay) instead of a `<span>` with the Popover API. |
59424
59907
  | `disableFlip` | `boolean \| undefined` | `false` | | Disables the automatic flip to the opposite side when the popover would overflow (flipping is on by default). |
@@ -61662,8 +62145,8 @@ buttons: `text`, `variant` — default `'primary'` —, `size` — default `'sm'
61662
62145
  `prepend:icon`/`append:icon`, `iconOnly` (the icon alone, `text` its
61663
62146
  accessible name), `block`, `onClick`; confirm buttons
61664
62147
  default to `'outline'` / `'md'` instead). While a button's
61665
- `onClick` runs it shows a spinner, siblings are disabled, and the auto-dismiss
61666
- countdown is held; the toast dismisses itself (reason `'action'`) when the
62148
+ `onClick` runs it shows a spinner, siblings ignore clicks (keeping their look),
62149
+ and the auto-dismiss countdown is held; the toast dismisses itself (reason `'action'`) when the
61667
62150
  callback resolves. A rejected callback keeps the toast open and the countdown
61668
62151
  resumes.
61669
62152
 
@@ -61836,6 +62319,7 @@ Set these on the element, or on a class you put on it, to retune this component
61836
62319
  - `focused:change` — `(id: string \| undefined): void` — Emitted when the keyboard-focused option changes.
61837
62320
  - `option:selected` — `(option: Option): void` — Emitted when an option is selected by the user.
61838
62321
  - `option:unselected` — `(option: Option): void` — Emitted when a previously selected option is deselected.
62322
+ - `retry` — `(event: MouseEvent): void` — The failure footer's "Try again" was pressed: the host runs the failed load again.
61839
62323
 
61840
62324
  ## Slots
61841
62325
 
@@ -61906,7 +62390,7 @@ Set these on the element, or on a class you put on it, to retune this component
61906
62390
  | `multiple` | `boolean \| undefined` | `false` | | Allows multiple options to be selected simultaneously. |
61907
62391
  | `open` | `boolean \| undefined` | `false` | | Whether the listbox is open (visible). |
61908
62392
  | `optionHeight` | `number \| undefined` | | | Fixed height (in px) for each option row. Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport. |
61909
- | `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
62393
+ | `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "groupHeader" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
61910
62394
  | `transitionDuration` | `number \| undefined` | `250` | | Duration of open/close transition in milliseconds. |
61911
62395
 
61912
62396
  ## Events
@@ -61914,6 +62398,7 @@ Set these on the element, or on a class you put on it, to retune this component
61914
62398
  - `focused:change` — `(id: string \| undefined): void` — Emitted when the keyboard-focused option changes.
61915
62399
  - `option:selected` — `(option: Option): void` — Emitted when an option is selected by the user.
61916
62400
  - `option:unselected` — `(option: Option): void` — Emitted when a previously selected option is deselected.
62401
+ - `retry` — `(event: MouseEvent): void` — The failure footer's "Try again" was pressed: the host runs the failed load again.
61917
62402
 
61918
62403
  ## Slots
61919
62404
 
@@ -61933,7 +62418,7 @@ Set these on the element, or on a class you put on it, to retune this component
61933
62418
  - **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `GroupedListBox`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
61934
62419
  - Listed nodes are the ones `GroupedListBox`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/GroupedListBox.tree.json` (a public component in it is a name: its own tree file has the rest).
61935
62420
 
61936
- - `GroupedListBox` _(this component)_ — its own template binds: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`
62421
+ - `GroupedListBox` _(this component)_ — its own template binds: `list` → `span.bb-listbox__list`, `groupHeader` → `span.bb-listbox__group-header`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`
61937
62422
  - Also mounts `BbIcon`, `ErrorIcon`
61938
62423
 
61939
62424
  ---
@@ -62170,7 +62655,7 @@ For components accepting `items`:
62170
62655
 
62171
62656
  ## Icons Rule
62172
62657
 
62173
- External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `iconDir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Provider icons ship only when written as a `prefix:name` literal somewhere in the project (any file type, PHP included) or listed in the plugin's `iconWhitelist`; the same rule applies in dev, and a name that does not resolve renders a placeholder and logs an error instead of throwing. Full workflow: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
62658
+ External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `icons.dir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Provider icons ship only when written as a `prefix:name` literal somewhere in the project (any file type, PHP included) or listed in the plugin's `icons.whitelist`; the same rule applies in dev, and a name that does not resolve renders a placeholder and logs an error instead of throwing. Full workflow: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
62174
62659
 
62175
62660
  ## Variants Rule
62176
62661
 
@@ -62202,7 +62687,7 @@ Where the option goes: [Installation and Plugin Setup](https://llms-bitboss-ui.b
62202
62687
 
62203
62688
  ## Overlay Open-State Rule
62204
62689
 
62205
- Open a dialog or sheet **without** owning its state: give `BbDialog` / `BbOffCanvas` an `id` and put `v-bb-dialog="'edit'"` / `v-bb-off-canvas="'filters'"` on the button (`useBbDialog('edit')` in code); a dialog in its own file, or one per row's data, opens on demand with `useBbDialog(Component).show(data)`; a yes/no is `useConfirm`. Which one: [BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md) § Which one?. A boolean `v-model` is the fallback for state your page already holds — never a separate `v-model:open`. `BbPopover` and `BbTooltip` also take a boolean `v-model`. The popover-embedded surfaces (`BbDropdown`, `BbSelectPopover`, `BbColorPalette`) keep open state **internal** — drive them through their trigger/activator, not a bound open flag. There is no `v-model:open` anywhere in the library, by design; do not reach for one.
62690
+ Open a dialog or sheet **without** owning its state: give `BbDialog` / `BbOffCanvas` an `id` and put `v-bb-dialog="'edit'"` / `v-bb-off-canvas="'filters'"` on the button (`useBbDialog('edit')` in code); a dialog in its own file, or one per row's data, opens on demand with `useBbDialog(Component).show(data)`; a yes/no is `useConfirm`. Which one: [BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md) § Which one?. A boolean `v-model` is the fallback for state your page already holds — never a separate `v-model:open`. `BbPopover`, `BbTooltip` and `BbDropdown` also take a boolean `v-model`. A component whose `v-model` is its value (`BbSelect`, `BbSelectPopover`, `BbDropdownButton`, the date / time / colour pickers and inputs) takes `v-model:open` for its panel; a value-less overlay never does.
62206
62691
 
62207
62692
  These overlays also return focus to their trigger element on close, by documented default — a consumer `@focus`-reopen handler on that trigger will fight the restore and can loop.
62208
62693
 
@@ -62268,13 +62753,17 @@ the field keeps it a string (`''`).
62268
62753
  Boolean props default to `false` so the bare `<Comp foo>` shorthand turns the feature **on**. A few props deliberately default to `true` for cross-library keyword clarity — pass `:prop="false"` to opt out:
62269
62754
 
62270
62755
  - `multiple` on `BbTable`, `BbCheckboxGroup`, `BbSwitchGroup` — multi-select is the expected default; `:multiple="false"` forces single-select.
62271
- - `selectable` on the option components (`BbSelect`, `BbSelectPopover`, `BbCheckboxGroup`, `BbRadioGroup`, `BbSwitchGroup`) — options are selectable by default; pass a predicate or `false` to restrict. **Not `BbTable`**: there `selectable` is unset by default and is what renders the selection column at all, so leaving it off means "no checkboxes", not "every row selectable".
62272
- - `modelValue` on `BbAlert` — an uncontrolled alert is visible on mount; its `v-model` exists to dismiss it. Defaulting to `false` would hide every alert with no binding.
62756
+ - `selectable` on the option components (`BbSelect`, `BbSelectPopover`, `BbCheckboxGroup`, `BbRadioGroup`, `BbSwitchGroup`) — options are selectable by default; pass a predicate or `false` to restrict. **Not `BbTable`**: there `selectable` is unset by default and renders the selection column, so off means no checkboxes.
62757
+ - `modelValue` on `BbAlert` — an uncontrolled alert shows on mount; its `v-model` exists to dismiss it.
62273
62758
  - `trueValue` on `BbButton` — the value a `v-model` toggle commits when on (`true` is the natural on-value), not a feature flag.
62274
62759
 
62275
62760
  These are the only intentional default-`true` booleans — exactly the exemptions `check-api` whitelists; anywhere else, `true` default is a bug (`check-api` flags it).
62276
62761
 
62277
- **Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette`, and `BbDropdown` (leftover bindings land silently in `$attrs`). `BbTooltip` keeps **both** — `hideArrow` (default `false`, so the arrow shows) and `arrowPadding` (default `10`). See [bb-popover.md](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-popover.md).
62762
+ **Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette` and `BbDropdown` (leftovers land in `$attrs`). `BbTooltip` keeps `hideArrow` (default `false`) and `arrowPadding` (default `10`). See [bb-popover.md](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-popover.md).
62763
+
62764
+ ## Empty Slot Rule
62765
+
62766
+ A slot that renders nothing (a `v-if` false there) counts as absent: the next more general slot draws, then the default (`prepend:icon`, label, children). Exception: a `BbTable` `#<key>` cell slot owns its cell.
62278
62767
 
62279
62768
  ## Testing Against bitboss-ui
62280
62769
 
@@ -62964,7 +63453,7 @@ There is no separate option: write it where you write the locale, in
62964
63453
 
62965
63454
  ```ts
62966
63455
  bitbossUi({
62967
- iconDir: './src/assets/icons',
63456
+ icons: { dir: './src/assets/icons' },
62968
63457
  locale: 'fa',
62969
63458
  enabledLocales: [
62970
63459
  'fa-u-ca-gregory', // Persian words and digits, Gregorian calendar
@@ -64826,6 +65315,19 @@ zero specificity, so a class you put on the panel (`pt:panel`, `pt:root`,
64826
65315
  `class` on a dialog) or on its content wins. To style a surface like its
64827
65316
  activator again, set the styles on that part.
64828
65317
 
65318
+ ### Avatar palette
65319
+
65320
+ `BbAvatar`'s `color` paints the fallback from a palette: ten hues, one picked
65321
+ per person from a stable hash of the `name`, and one fill / ink pair per
65322
+ scheme built as `oklch(L C <hue>)`. Every pair measures over 6:1. A theme
65323
+ moves a hue or the pair; keep the 4.5:1 budget.
65324
+
65325
+ | Token | Default (light) | Dark | Meaning |
65326
+ | --- | --- | --- | --- |
65327
+ | `--bb-avatar-hue-coral` … `--bb-avatar-hue-rose` | 25 … 355 | same | The ten hues in degrees: coral 25, tangerine 55, sunflower 85, mint 165, teal 195, sky 230, blue 260, violet 295, orchid 325, rose 355 |
65328
+ | `--bb-avatar-bg-l` / `--bb-avatar-bg-c` | `0.93` / `0.065` | `0.4` / `0.095` | The fill's OKLCH lightness and chroma |
65329
+ | `--bb-avatar-ink-l` / `--bb-avatar-ink-c` | `0.42` / `0.13` | `0.93` / `0.06` | The initials' and icon's OKLCH lightness and chroma |
65330
+
64829
65331
  ### Input family
64830
65332
 
64831
65333
  Form controls are ~half the library and must agree with each other, so their
@@ -65659,7 +66161,7 @@ Two rules in `recommended` are `warn` rather than `error`, because each describe
65659
66161
  - `dts`, `components`, `components.<Component>` and `components.<Component>.variants`: `check` does not write `bitboss-ui.d.ts`, so registered variant names type-check only once Vite starts (the plugin writes the file then). For `BbAlert` and `BbToast` object-form variants only the names must be written out; an `icon` value may be an import.
65660
66162
  - `components.BbTextInput.nullValue`, `components.BbTextarea.nullValue`: `check` keeps the empty-string controls the plugin last wrote to `bitboss-ui.d.ts`.
65661
66163
 
65662
- Options passed as a variable (`bitbossUi(options)`, `bitboss: options`) are one report at the call: the CLI reads none of them. A spread or computed key hides the keys at its own level the same way — at the top (`...shared`) every key, in `components` or in one component's entry the variant and `nullValue` keys under it, and a spread in a read list (`allowComponents`, `enabledLocales`, a `variants` list) hides that list; each is reported where it is. A spread deeper than that (inside `configScopes`, or in a value no reader parses) hides nothing the CLI reads and is not reported: a literal `locale` or `ai` beside it is still read. Other keys (`cssLayers`, `iconDir`, `configScopes`, a component's own defaults) are not read without running the config and may be computed. `as const`, `satisfies` and `!` are fine. The config builds and runs either way, so it is a warning; silence a deliberate one with `// eslint-disable-next-line bitboss-ui/static-plugin-options`.
66164
+ Options passed as a variable (`bitbossUi(options)`, `bitboss: options`) are one report at the call: the CLI reads none of them. A spread or computed key hides the keys at its own level the same way — at the top (`...shared`) every key, in `components` or in one component's entry the variant and `nullValue` keys under it, and a spread in a read list (`allowComponents`, `enabledLocales`, a `variants` list) hides that list; each is reported where it is. A spread deeper than that (inside `configScopes`, or in a value no reader parses) hides nothing the CLI reads and is not reported: a literal `locale` or `ai` beside it is still read. Other keys (`cssLayers`, `icons`, `configScopes`, a component's own defaults) are not read without running the config and may be computed. `as const`, `satisfies` and `!` are fine. The config builds and runs either way, so it is a warning; silence a deliberate one with `// eslint-disable-next-line bitboss-ui/static-plugin-options`.
65663
66165
 
65664
66166
  It also enables `bitboss-ui/require-partner-prop`: an opt-in prop set without its documented required partner — BbTable `loading-text` without `:loading` bound, `selectable` without `legend`, or `method` on BbButton / BbBadgeButton / BbBaseButton without `href` (only an `href` becomes an Inertia visit; `to` is a RouterLink) — compiles and mounts clean and just does nothing; the rule names the missing partner and quotes why.
65665
66167
 
@@ -65774,7 +66276,7 @@ Four cases ignore `prefill` and load anyway, because deferring would buy nothing
65774
66276
 
65775
66277
  - **Race protection**: a newer call aborts the one in flight (`signal`), and a superseded answer — resolution or rejection — is dropped. Nothing runs after a superseded call: no prune, no stash.
65776
66278
  - **Loading**: the component tracks in-flight requests itself, and the loading state ends the moment a call is aborted; don't add your own `loading` ref for option fetching.
65777
- - **Failure is never "empty"**: a provider **throws** to fail — it never returns `[]` for one, because an empty array is a real, applied result. On a failed (not aborted) call the component clears the rows (stale rows never sit under a new filter), prunes nothing, publishes nothing to the SSR payload (the client loads again), logs the error, and shows `failed-text` (locale default "Couldn't load items") in its empty state; the `#empty` slot receives `error` (what you threw, untouched; `null` when nothing failed). There is no built-in retry: bump a counter you list in `dependencies`.
66279
+ - **Failure is never "empty"**: a provider **throws** to fail — it never returns `[]` for one, because an empty array is a real, applied result. On a failed (not aborted) call the component clears the rows (stale rows never sit under a new filter), prunes nothing, publishes nothing to the SSR payload (the client loads again), logs the error, and shows its own failure row: `failed-text` (locale default "Couldn't load items"), announced, then a "Try again" button that runs the failed call again with the same query (on click only, never on its own). `#empty` means empty: it never renders for a failure and its scope has no `error`.
65778
66280
  - **Coherence** (`enforce-coherence`): prunes only after an applied, successful load whose reason is not `'search'` — an empty one included — against the fetched rows alone, except values a `known-items` row names (a select's `stash` does not count). Failures never prune. Details in the [Coherence playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/coherence-playbook.md).
65779
66281
  - **Dependency comparison is value-based** (hashed), not reference-based — `:dependencies="[filters]"` re-fetches only when the content actually changes, no matter how often the array identity does.
65780
66282
 
@@ -65812,19 +66314,15 @@ Pass it to every request; combine it with a timeout (`AbortSignal.any([signal, A
65812
66314
 
65813
66315
  ### Failure and retry
65814
66316
 
66317
+ The failure row is the library's: set its message with `failed-text`, and keep `#empty` for the empty result. "Try again" is built in.
66318
+
65815
66319
  ```vue
65816
66320
  <BbTable
65817
66321
  :items="fetchInvoices"
65818
- :dependencies="[status, retry]"
65819
- failed-text="The invoices could not be loaded"
66322
+ :dependencies="[status]"
66323
+ failed-text="The invoices could not be loaded."
65820
66324
  >
65821
- <template #empty="{ error }">
65822
- <template v-if="error">
65823
- Couldn't load the invoices.
65824
- <BbButton size="sm" variant="ghost" @click="retry++">Try again</BbButton>
65825
- </template>
65826
- <template v-else>No invoices match these filters.</template>
65827
- </template>
66325
+ <template #empty>No invoices match these filters.</template>
65828
66326
  </BbTable>
65829
66327
  ```
65830
66328
 
@@ -65896,7 +66394,7 @@ The same object, with `query` only on a `searchable` group. A getter for a searc
65896
66394
  - [ ] The provider takes ONE object typed with its component's context type, and `signal` reaches every request.
65897
66395
  - [ ] Selects: the current picks are named on every `reason !== 'search'` call (required with `enforce-coherence`), `stash` is on, the ids request fails soft.
65898
66396
  - [ ] A provider that matches `query` on the server has `:filter-by="false"` (dropdown group: `filterBy: false`).
65899
- - [ ] Failures are thrown, not returned; `failed-text` / `#empty` `error` cover the failed state, and a retry bumps a `dependencies` counter.
66397
+ - [ ] Failures are thrown, not returned; `failed-text` words the failure row (it has "Try again" built in), and `#empty` holds empty copy only.
65900
66398
  - [ ] All branches return the same item shape.
65901
66399
  - [ ] Field-tied fetching uses `dependencies` (+ `deps-debounce-time`), no manual watchers; dependent selects filter both requests by the parent.
65902
66400
 
@@ -66048,9 +66546,9 @@ Mandatory for AI-generated code.
66048
66546
  (`npm install -D @iconify-json/lucide`); the plugin resolves them
66049
66547
  automatically — no registration step.
66050
66548
  2. **`local:*` is for brand-specific art only** — logos, custom marks, one-off
66051
- illustrations. They are SVG files in the configured `iconDir`.
66549
+ illustrations. They are SVG files in the configured `icons.dir`.
66052
66550
  3. **Never invent icon names.** Use only names that exist in an installed
66053
- `@iconify-json/*` set or as files in `iconDir`. A name that does not
66551
+ `@iconify-json/*` set or as files in `icons.dir`. A name that does not
66054
66552
  resolve renders the built-in placeholder (a question mark in a circle,
66055
66553
  tagged `data-bb-icon-missing="<name>"`) and logs one `console.error` with
66056
66554
  the fix — in dev also as a Vite error overlay. It never throws. This guide
@@ -66060,15 +66558,15 @@ Mandatory for AI-generated code.
66060
66558
  scans the whole project (PHP included) for `provider:name` literals and
66061
66559
  bundles only those; `local:` ships everything. A name the scanner cannot
66062
66560
  see as a literal — composed at runtime (`` `lucide:${kind}` ``), stored in a
66063
- database, chosen in an admin panel — goes in the plugin's `iconWhitelist`.
66561
+ database, chosen in an admin panel — goes in the plugin's `icons.whitelist`.
66064
66562
  This holds in dev exactly as in production: dev registers the same set.
66065
66563
  5. **Never hand-place `BbIcon` where a component already accepts an icon** via
66066
66564
  a prop, item field, or dedicated slot (catalog below).
66067
66565
 
66068
66566
  ## How resolution works
66069
66567
 
66070
- The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config key
66071
- `bitboss`, default `iconDir: './assets/icons'`) — serves every icon through the
66568
+ The `bitbossUi` Vite plugin (`icons.dir` option) — or the Nuxt module (config key
66569
+ `bitboss`, default `icons: { dir: './assets/icons' }`) — serves every icon through the
66072
66570
  `virtual:bitboss-ui/icons` module that `bitbossUiPlugin` provides to `BbIcon`:
66073
66571
 
66074
66572
  - **Provider sets**: every `@iconify-json/*` package found in `node_modules` is
@@ -66076,7 +66574,7 @@ The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config ke
66076
66574
  `lucide:<name>` available; removing it makes them all errors. Nothing to
66077
66575
  configure.
66078
66576
  - **What ships — `local:` everything, providers only what is scanned or
66079
- whitelisted.** Every SVG in `iconDir` is bundled. For provider sets the
66577
+ whitelisted.** Every SVG in `icons.dir` is bundled. For provider sets the
66080
66578
  plugin reads the **whole project** as bytes — every file under the Vite
66081
66579
  root, PHP, Blade, JSON, SQL seeders and Markdown included — looking for
66082
66580
  `<prefix>:<name>` where `<prefix>` is an installed set; what resolves in the
@@ -66093,7 +66591,7 @@ The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config ke
66093
66591
  neither scanned nor whitelisted therefore shows the placeholder and the
66094
66592
  error on first render in dev — not after deploy.
66095
66593
  - **Names the scanner cannot see** — composed at runtime, persisted in a
66096
- database, picked by an admin — go in `iconWhitelist`: exact names
66594
+ database, picked by an admin — go in `icons.whitelist`: exact names
66097
66595
  (`'tabler:crown'`) or globs (`'tabler:calendar-*'`). An entry that resolves
66098
66596
  in no installed set fails the build with the same message the overlay shows.
66099
66597
  - **A missing name is loud, in both environments.** `BbIcon` renders the
@@ -66102,12 +66600,12 @@ The `bitbossUi` Vite plugin (`iconDir` option) — or the Nuxt module (config ke
66102
66600
  error overlay. A typo inside an installed set reads "does not exist in the
66103
66601
  lucide icon set — did you mean `lucide:…`?"; a real icon nobody wrote as a
66104
66602
  literal reads "exists in the lucide icon set but is not bundled … add it to
66105
- `iconWhitelist`"; a set that is not installed reads "no installed icon set
66603
+ `icons.whitelist`"; a set that is not installed reads "no installed icon set
66106
66604
  has the prefix `mdi` (installed sets: lucide) … run:
66107
66605
  `npm install -D @iconify-json/mdi`". Read the message: a typo wants a
66108
66606
  different name, an unscanned name wants the whitelist, a missing set wants
66109
66607
  an install, never a guess.
66110
- - **Local icons**: `iconDir` is scanned recursively; each `.svg` becomes
66608
+ - **Local icons**: `icons.dir` is scanned recursively; each `.svg` becomes
66111
66609
  `local:<basename-without-extension>`. A bare, unprefixed name normalizes to
66112
66610
  `local:`. Adding/removing files is picked up live in dev, and the plugin
66113
66611
  maintains a collection JSON plus the VS Code `iconify.customCollectionJsonPaths`
@@ -66127,7 +66625,7 @@ controls size, so they are redundant). Use base names — `heroicons:check`, not
66127
66625
  `@iconify-json/lucide`).
66128
66626
  2. Verify each name exists in that set's `icons.json` (or its `aliases`) before
66129
66627
  using it.
66130
- 3. For `local:*`, list the `.svg` files in the configured `iconDir`.
66628
+ 3. For `local:*`, list the `.svg` files in the configured `icons.dir`.
66131
66629
 
66132
66630
  ## Where the library accepts icons — full catalog
66133
66631
 
@@ -66281,6 +66779,27 @@ markup) yourself:
66281
66779
  `<value>:append` slots, when an entry's leading/trailing region needs more than
66282
66780
  a named icon (e.g. an avatar). A slot replaces the icon, never sits beside it.
66283
66781
 
66782
+ ### The library's own glyphs (app-wide)
66783
+
66784
+ The glyphs the library draws itself (✕, chevrons, check, …) swap by role,
66785
+ app-wide or for one component, which wins:
66786
+
66787
+ ```ts
66788
+ bitbossUi({
66789
+ icons: { defaults: { close: 'ph:x-bold' } },
66790
+ components: { BbSelect: { icons: { search: 'ph:magnifying-glass-bold' } } },
66791
+ });
66792
+ ```
66793
+
66794
+ Roles: `close`, `clear`, `expandChevron`, `prev`, `next`, `separator`,
66795
+ `search`, `check`, `dragHandle`, `move`, `sortAsc`, `sortDesc`, `calendar`,
66796
+ `clock`, `error`, `warning`, `avatar`, `star`, `eyedropper`, `play`, `pause`;
66797
+ a component takes only the roles it draws. Names are bundled at build time
66798
+ (app-wide only); unset roles keep the built-in; sizes stay the library's. With
66799
+ Phosphor, use `-bold` names (and `-fill` for `error`, `warning`, `avatar`,
66800
+ `star`). A custom `check` has no draw-in; a `sortDesc` replaces the rotated
66801
+ `sortAsc`.
66802
+
66284
66803
  ## Sizing and color
66285
66804
 
66286
66805
  - Icons paint in `currentColor`: they inherit the parent's text color. Color
@@ -66321,7 +66840,7 @@ markup) yourself:
66321
66840
  - Inventing or guessing icon names; assuming a set is installed without
66322
66841
  checking `package.json`.
66323
66842
  - Runtime-composed icon names (template strings / concatenation) without a
66324
- matching `iconWhitelist` entry — invisible to the scanner, so they render the
66843
+ matching `icons.whitelist` entry — invisible to the scanner, so they render the
66325
66844
  placeholder (in dev too). Prefer a lookup of full literals; whitelist what
66326
66845
  must stay dynamic.
66327
66846
  - Setting `color`/`fill` on the icon element instead of the parent.
@@ -70706,7 +71225,7 @@ Source of truth for integrating `bitboss-ui`. Two pieces are always required:
70706
71225
  3. [Register the runtime plugin](#2-vite--vue): `app.use(bitbossUiPlugin)` (automatic in Nuxt; in [Inertia](#4-inertia) it goes in `createInertiaApp`).
70707
71226
  4. [Styles](#5-styling): the plugin injects `styles.css` for you, so do not import it by hand. On Tailwind v4 also set `cssLayers`.
70708
71227
  5. [Locale](#locale-localekey-default-en): set `locale` (default `'en'`) and list any others in `enabledLocales`.
70709
- 6. [Icons](#6-icons): install an `@iconify-json/*` set, and point `iconDir` at your own SVG folder if you use `local:` icons.
71228
+ 6. [Icons](#6-icons): install an `@iconify-json/*` set, and point `icons.dir` at your own SVG folder if you use `local:` icons.
70710
71229
  7. [SSR and Inertia notes](#4-inertia): the build plugin handles `noExternal` and the Inertia `Link`; in Nuxt do not call `app.use`.
70711
71230
  8. [App-wide defaults and area looks](#the-components-map): one `components` map (and `configScopes` / `<BbConfigScope>` for an area) instead of repeating props.
70712
71231
  9. [Set up coding agents](#8-ai-knowledge-base) so they find the docs and the MCP server: `setup` does it, every install keeps it current.
@@ -70848,7 +71367,7 @@ export default defineConfig({
70848
71367
  plugins: [
70849
71368
  vue(),
70850
71369
  bitbossUi({
70851
- iconDir: './src/assets/icons',
71370
+ icons: { dir: './src/assets/icons' },
70852
71371
  // Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
70853
71372
  cssLayers: TAILWIND_V4_LAYERS,
70854
71373
  }),
@@ -70881,7 +71400,7 @@ The plugin registers no components globally: import each one where you use it
70881
71400
  (`import { BbButton, BbSelect } from 'bitboss-ui'`). Guide examples leave those
70882
71401
  imports out. In Nuxt, `autoImport: true` registers them instead (§3).
70883
71402
 
70884
- If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `iconDir`.
71403
+ If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `icons.dir`.
70885
71404
 
70886
71405
  ## 3) Nuxt
70887
71406
 
@@ -70894,7 +71413,7 @@ import { TAILWIND_V4_LAYERS } from 'bitboss-ui/nuxt';
70894
71413
  export default defineNuxtConfig({
70895
71414
  modules: ['bitboss-ui/nuxt'],
70896
71415
  bitboss: {
70897
- iconDir: './assets/icons', // module default = app/assets/icons (relative to the Vite root, app/ under Nuxt 4)
71416
+ icons: { dir: './assets/icons' }, // module default = app/assets/icons (relative to the Vite root, app/ under Nuxt 4)
70898
71417
  // Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
70899
71418
  cssLayers: TAILWIND_V4_LAYERS,
70900
71419
  },
@@ -70925,7 +71444,7 @@ Registers the library's components and composables with Nuxt's auto-import syste
70925
71444
  export default defineNuxtConfig({
70926
71445
  modules: ['bitboss-ui/nuxt'],
70927
71446
  bitboss: {
70928
- iconDir: './assets/icons',
71447
+ icons: { dir: './assets/icons' },
70929
71448
  autoImport: true,
70930
71449
  },
70931
71450
  });
@@ -71059,7 +71578,7 @@ you the order:
71059
71578
 
71060
71579
  ```ts
71061
71580
  // vite.config.ts / the `bitboss` key in nuxt.config.ts
71062
- bitbossUi({ iconDir: '…', injectStyles: false, resetCss: false });
71581
+ bitbossUi({ icons: { dir: '…' }, injectStyles: false, resetCss: false });
71063
71582
  ```
71064
71583
 
71065
71584
  ```ts
@@ -71109,7 +71628,7 @@ by its first mention — so the order you configure is the order you get.
71109
71628
  import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
71110
71629
 
71111
71630
  bitbossUi({
71112
- iconDir: './assets/icons',
71631
+ icons: { dir: './assets/icons' },
71113
71632
  cssLayers: TAILWIND_V4_LAYERS,
71114
71633
  });
71115
71634
  ```
@@ -71211,7 +71730,7 @@ it is the only way to get v4's behaviour on v3. Three edits, made together:
71211
71730
  import { bitbossUi, TAILWIND_V3_LAYERS } from 'bitboss-ui/vite';
71212
71731
 
71213
71732
  bitbossUi({
71214
- iconDir: './assets/icons',
71733
+ icons: { dir: './assets/icons' },
71215
71734
  // ['tailwind-base', 'bitboss-ui-reset', 'bitboss-ui', 'tailwind-utilities']
71216
71735
  cssLayers: TAILWIND_V3_LAYERS,
71217
71736
  // 3. v3 class names for the pt deduper: a module whose default export is
@@ -71236,7 +71755,7 @@ fixed by its first mention, so they agree rather than fight.
71236
71755
 
71237
71756
  ```ts
71238
71757
  bitbossUi({
71239
- iconDir: './assets/icons',
71758
+ icons: { dir: './assets/icons' },
71240
71759
  cssLayers: ['bitboss-ui'], // ['bitboss-ui-reset', 'bitboss-ui'] with resetCss: true
71241
71760
  });
71242
71761
  ```
@@ -71318,14 +71837,14 @@ Reach for the documented variable before reaching for a utility.
71318
71837
 
71319
71838
  ## 6) Icons
71320
71839
 
71321
- - `iconDir` (default `'./assets/icons'`) is scanned recursively for `.svg` files; each file becomes `local:<basename>`. **`local:` ships everything.**
71840
+ - `icons.dir` (default `'./assets/icons'`) is scanned recursively for `.svg` files; each file becomes `local:<basename>`. **`local:` ships everything.**
71322
71841
  - Provider icons (`lucide:pencil`, `mdi:home`, …) require the matching `@iconify-json/<prefix>` package installed in the consumer app. **Providers ship only what is scanned or whitelisted**: the plugin reads the whole project as bytes — every file under the Vite root, PHP and Blade and JSON and SQL included — for `<prefix>:<name>` literals of the installed sets, and emits one lazy chunk per name that resolves. Skipped: gitignored paths (every `.gitignore` level), `node_modules`, `vendor`, `storage`, the build `outDir`, hidden paths, binaries, and `iconsScanner.exclude` globs; `iconsScanner.include` adds locations. The scan is cached by content hash under `node_modules/.cache/bitboss-ui/`, runs on 2–4 worker threads once a project passes ~1500 files (a cold scan is disk-bound, and the threads let a slow disk serve reads in parallel — roughly 0.2 s for 10k files on a laptop), prints one line (file count, elapsed, threads) after a cold scan, and stays silent when warm.
71323
71842
  - **This holds in dev exactly as in prod.** Dev registers the same scanned-plus-whitelisted set, re-scans a file on every save, and hot-updates the registry — a new literal renders without a restart, and a name that is neither scanned nor whitelisted fails on first render in dev instead of after deploy.
71324
- - **Names the scanner cannot see** — composed at runtime, stored in a database, chosen in an admin UI — go in `iconWhitelist` (exact names or globs). An entry that resolves in no installed set fails the build with the actionable message.
71325
- - **A name that does not resolve renders the built-in placeholder** (a question mark in a circle, sized and coloured like the icon it replaces, with `data-bb-icon-missing="<name>"`) and logs one `console.error` per name per page load, in both environments; dev also raises the Vite error overlay. The message is the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, a real icon nobody wrote as a literal is told to use `iconWhitelist`, and an uninstalled prefix gets the list of installed sets plus the `npm install -D @iconify-json/<prefix>` command (the optional `@iconify/collections` peer only sharpens that wording, see [Install](#1-install)). A missing `local:` icon names the `.svg` that is not in `iconDir`. `BbIcon` never throws for a missing name, so the surrounding tree stays mounted.
71843
+ - **Names the scanner cannot see** — composed at runtime, stored in a database, chosen in an admin UI — go in `icons.whitelist` (exact names or globs). An entry that resolves in no installed set fails the build with the actionable message.
71844
+ - **A name that does not resolve renders the built-in placeholder** (a question mark in a circle, sized and coloured like the icon it replaces, with `data-bb-icon-missing="<name>"`) and logs one `console.error` per name per page load, in both environments; dev also raises the Vite error overlay. The message is the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, a real icon nobody wrote as a literal is told to use `icons.whitelist`, and an uninstalled prefix gets the list of installed sets plus the `npm install -D @iconify-json/<prefix>` command (the optional `@iconify/collections` peer only sharpens that wording, see [Install](#1-install)). A missing `local:` icon names the `.svg` that is not in `icons.dir`. `BbIcon` never throws for a missing name, so the surrounding tree stays mounted.
71326
71845
  - In dev (unless `vscodeSettings: false`) the plugin also writes `.vscode/bitboss-ui.local-icons.json` and wires `.vscode/settings.json` so the Iconify editor extension previews local icons and Tailwind IntelliSense completes inside `pt:*` / `:pt`. The collection lives in the project tree, not under `node_modules`, so a host editor sees what a container (Sail, a named `node_modules` volume) wrote.
71327
71846
 
71328
- Policy for choosing icons: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
71847
+ Choosing icons, and swapping the library's own: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
71329
71848
 
71330
71849
  ## The components map
71331
71850
 
@@ -71605,9 +72124,9 @@ fails the build naming its home:
71605
72124
 
71606
72125
  Options are the same for `bitboss-ui/vite` and the `bitboss` key in Nuxt.
71607
72126
 
71608
- ### `iconDir?: string` (default: `'./assets/icons'`)
72127
+ ### `icons.dir?: string` (default: `'./assets/icons'`)
71609
72128
 
71610
- Path to local SVG icons, absolute, or relative to the Vite root: the project root in a Vite app, `app/` under Nuxt 4 (so the default `./assets/icons` there is `app/assets/icons`; do not write `./app/assets/icons`). Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`. Every file in it ships. Only needed when you use `local:` icons: a missing folder at the default path is silent, while a custom `iconDir` that resolves to a missing or SVG-less folder logs a build warning.
72129
+ Path to local SVG icons, absolute, or relative to the Vite root: the project root in a Vite app, `app/` under Nuxt 4 (so the default `./assets/icons` there is `app/assets/icons`; do not write `./app/assets/icons`). Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`. Every file in it ships. Only needed when you use `local:` icons: a missing folder at the default path is silent, while a custom `icons.dir` that resolves to a missing or SVG-less folder logs a build warning.
71611
72130
 
71612
72131
  ### `iconsScanner?: { include?: string[]; exclude?: string[]; maxFileSize?: number }`
71613
72132
 
@@ -71619,7 +72138,7 @@ Tunes the provider-icon source scan (see [Icons](#6-icons)). All three are optio
71619
72138
 
71620
72139
  ```ts
71621
72140
  bitbossUi({
71622
- iconDir: './resources/icons',
72141
+ icons: { dir: './resources/icons' },
71623
72142
  iconsScanner: {
71624
72143
  include: ['vendor/acme/ui-kit/src'],
71625
72144
  exclude: ['database/dumps/**'],
@@ -71627,15 +72146,16 @@ bitbossUi({
71627
72146
  });
71628
72147
  ```
71629
72148
 
71630
- ### `iconWhitelist?: string[]`
72149
+ ### `icons.whitelist?: string[]`
71631
72150
 
71632
- Provider icons that **always** ship, scanned or not — exact names (`'tabler:crown'`) and globs (`'tabler:calendar-*'`, expanded against the installed set). This is the home of every name the scanner cannot see as a literal: composed at runtime, read from a database, picked by an admin. An entry that resolves in no installed set — a typo, an uninstalled prefix, a glob matching nothing — **fails the build** with the same actionable message the dev overlay shows for a missing icon. `local:` names never belong here (they all ship already).
72151
+ Provider icons that **always** ship, scanned or not — exact names (`'tabler:crown'`) and globs (`'tabler:calendar-*'`, expanded against the installed set). An entry that resolves in no installed set — a typo, an uninstalled prefix, a glob matching nothing — **fails the build** with the same actionable message the dev overlay shows for a missing icon. `local:` names never belong here (they all ship already).
71633
72152
 
71634
72153
  ```ts
71635
72154
  bitbossUi({
71636
- iconDir: './resources/icons',
71637
- // `icon` is stored per category in the database; the admin picks from these.
71638
- iconWhitelist: ['tabler:category', 'tabler:tag', 'tabler:calendar-*'],
72155
+ icons: {
72156
+ dir: './resources/icons',
72157
+ whitelist: ['tabler:category', 'tabler:tag', 'tabler:calendar-*'],
72158
+ },
71639
72159
  });
71640
72160
  ```
71641
72161
 
@@ -71937,7 +72457,7 @@ anything. Apps that switch locales at runtime list what they offer:
71937
72457
 
71938
72458
  ```ts
71939
72459
  bitbossUi({
71940
- iconDir: './src/assets/icons',
72460
+ icons: { dir: './src/assets/icons' },
71941
72461
  locale: 'it',
71942
72462
  enabledLocales: ['it', 'en', 'de', 'fr'], // ~4 dictionaries + 4 dayjs packs
71943
72463
  });
@@ -72389,7 +72909,7 @@ leave it alone with no configuration, as long as they can see it is yours:
72389
72909
 
72390
72910
  - [ ] package installed (plus `@iconify-json/*` packages for every provider prefix used);
72391
72911
  - [ ] build plugin configured: `bitboss-ui/vite` plugin or `bitboss-ui/nuxt` module (`bitboss` config key);
72392
- - [ ] using `local:` icons? `iconDir` points at an existing SVG folder;
72912
+ - [ ] using `local:` icons? `icons.dir` points at an existing SVG folder;
72393
72913
  - [ ] runtime plugin installed: `app.use(bitbossUiPlugin)` (automatic in Nuxt);
72394
72914
  - [ ] style strategy chosen: auto injection (default) or `injectStyles: false` + `import 'bitboss-ui/styles.css'` — auto injection is always library-first, so a Tailwind **v3** app that needs Preflight to load before the library must take the second option (§5);
72395
72915
  - [ ] if a reset is required: `resetCss: true` or `import 'bitboss-ui/reset.css'`;
@@ -72597,7 +73117,7 @@ Each row: what you will find, how to find it, and what to write instead.
72597
73117
  21. **`all: { adaptive: false }` (plugin) or `:adaptive="false"` (one component): the temporary crutch from the migration** → Remove it in the adaptive phase (below) `[adaptive-false]`
72598
73118
 
72599
73119
  - Find: `rg -n -g '*.{vue,ts,js,mjs}' 'adaptive:\s*false|:adaptive=.false.'`
72600
- - Write: `bitbossUi({ iconDir: 'resources/icons' })`
73120
+ - Write: `bitbossUi({ icons: { dir: 'resources/icons' } })`
72601
73121
  - Keep it only on a surface that must never become a sheet, and say why in a comment.
72602
73122
  <!-- /generated:rows -->
72603
73123
 
@@ -73625,14 +74145,14 @@ stays in your markup.
73625
74145
  | `showArrow?: boolean` (default `false`) | removed | arrows are tooltip-only in v3; **⚠ silent** — a leftover `show-arrow` lands in `$attrs` |
73626
74146
  | `arrowPadding` | removed | dead with the arrow |
73627
74147
  | `picker?: boolean` | `eyeDropper?: boolean` | rename (same eyedropper feature) |
73628
- | `update:open` event | removed | listen to `show` / `hide` (and `shown` / `hidden` after the transition), or read the activator slot's `open` |
74148
+ | `update:open` event | `v-model:open` (since 3.0.0-beta.75) | the same event, now with an `open` prop: bind `v-model:open` to open the palette from code; `show` / `hide` still fire |
73629
74149
  | `update:modelValue` payload `string \| null` | `string` — the palette always emits a concrete color, never `null` | **behavior** — clearing is the consumer's job now; handlers narrowing on `null` have dead branches |
73630
74150
  | activator slot prop `color` | `value` | rename |
73631
74151
 
73632
74152
  ## Edits
73633
74153
 
73634
74154
  ```diff
73635
- - <BbColorPalette v-model="color" :flip="false" show-arrow picker @update:open="track">
74155
+ - <BbColorPalette v-model="color" :flip="false" show-arrow picker>
73636
74156
  - <template #activator="{ props, color }">
73637
74157
  - <button v-bind="props" :style="{ background: color }" />
73638
74158
  + <BbColorPalette v-model="color" disable-flip eye-dropper>
@@ -74032,6 +74552,7 @@ reaches it. Its own button hooks changed — see
74032
74552
  | items `{ key, text }` (v2, and v3 up to beta.48) | items `{ value, label }` — the same rows as `BbDropdown` | hard rename — `npx bitboss-ui check --fix` rewrites literal items; see [bb-dropdown.md](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-dropdown.md) |
74033
74553
  | `items[0]` was the main button (v2, and v3 up to beta.57) | the component is the main button: label in the default slot, `@click` / `href` / `to` / `type` / `form` on it; every item is a menu row | **break** — move the first item onto the component (below); `bitboss-ui check` flags a split button with no label |
74034
74554
  | default slot: `<BbDropdownGroup>` companions (v3 up to beta.57) | `#dropdown` slot; the default slot is the main button's label | **break** — wrap the companion in `<template #dropdown>` |
74555
+ | `#<groupId>` (a group's title; up to beta.74) | `#<groupId>:label`; `#group` / `#<groupId>:group` draw `groupBy` headings | `check --fix` renames it for the group ids it sees |
74035
74556
 
74036
74557
  ## Edits
74037
74558
 
@@ -74111,6 +74632,7 @@ label. `toggle:icon` is unchanged.
74111
74632
  | _(v3 prereleases up to beta.63; v2 had no submenus)_ `Escape` anywhere closed the whole menu; only `ArrowRight` drilled into a submenu with focus | `Escape` in a submenu closes that level and refocuses its row; `Enter`, `Space` and click open a submenu with focus inside (search box first); focus returns to the row when a submenu closes under it; `dir="rtl"` swaps the inline arrows | **⚠ silent**: drop hand-rolled per-level `Escape` handlers and `focus()` calls into submenus, which now fight the menu (`v2-to-v3.md` § 6 item 101) |
74112
74633
  | _(v3 prereleases up to beta.63)_ on the mobile sheet `Escape` closed the whole sheet from any level; going back focused the parent level's first row | `Escape` on a drilled-in level (row or search box) goes back one level, like the back control; going back focuses the row that opened the level; at the top level `Escape` closes the sheet | **⚠ silent**: update tests that expect `Escape` on a sheet level to close the menu (`v2-to-v3.md` § 6 item 107) |
74113
74634
  | _(v3 prereleases up to beta.63)_ an item's `data-*` / `aria-*` keys were copied onto its row | items take only the fields the menu reads; row attributes go through `pt:item` (function form per row) | **⚠ silent**: move them to `:pt:item="({ item }) => ({ attrs: { … } })"` (`v2-to-v3.md` § 6 item 108) |
74635
+ | _(v3 prereleases up to beta.74)_ `#<groupId>`: a group's title content | `#<groupId>:label`; `#group` / `#<groupId>:group` draw the `groupBy` headings | rename the slot; `npx bitboss-ui check --fix` does it for the group ids it can see |
74114
74636
 
74115
74637
  ## Edits
74116
74638
 
@@ -74274,7 +74796,7 @@ const icons = import.meta.glob('../../assets/icons/*.svg', { as: 'raw' });
74274
74796
  app.provide('icons', toRegistry(icons));
74275
74797
  ```
74276
74798
 
74277
- v3 does both halves itself. The **build** plugin scans `iconDir` recursively
74799
+ v3 does both halves itself. The **build** plugin scans `icons.dir` recursively
74278
74800
  and turns every `.svg` into `local:<basename>`; the **runtime** plugin provides
74279
74801
  that registry to `BbIcon`. If your plugin scanned the same folder and provided
74280
74802
  it under `'icons'`, it is now duplicating both.
@@ -74288,9 +74810,9 @@ map stops rendering and nothing warns.
74288
74810
 
74289
74811
  Check before you delete — the plugin is dead only if both hold:
74290
74812
 
74291
- 1. **Every SVG it registers also lives under `iconDir`.** Diff the two folders.
74813
+ 1. **Every SVG it registers also lives under `icons.dir`.** Diff the two folders.
74292
74814
  If the plugin globbed a different directory (`resources/js/icons`,
74293
- a package's `assets/`), move those files into `iconDir` first — otherwise
74815
+ a package's `assets/`), move those files into `icons.dir` first — otherwise
74294
74816
  deletion and non-deletion both leave you with missing icons.
74295
74817
  2. **Nothing else injects `'icons'`.** `rg -n "inject\(['\"]icons['\"]\)"` — an
74296
74818
  app component reading the map to render `<img>` or to enumerate names is
@@ -74307,7 +74829,7 @@ build on it.
74307
74829
 
74308
74830
  ## Prefix your own icons with `local:` while you are in there
74309
74831
 
74310
- A v2 `type` naming an icon from your own `iconDir` was bare — `type="user-circle"`.
74832
+ A v2 `type` naming an icon from your own `icons.dir` was bare — `type="user-circle"`.
74311
74833
  Carry it over **with the prefix**:
74312
74834
 
74313
74835
  ```diff
@@ -75551,7 +76073,8 @@ from a cell slot on an unbound table does nothing and warns once.
75551
76073
  table has no search field). `reason` replaces the `prefill` flag: `'initial'`,
75552
76074
  `'dependencies'`, or `'pagination'` for a page or page-size move.
75553
76075
  Pass `signal` to the request; throw on a failure (never `return []`), and the
75554
- `#empty` slot gets `error` while the empty state shows `failed-text`. **⚠ silent**
76076
+ table shows its failure row: `failed-text` with a built-in "Try again"
76077
+ (`#empty` is for empty results only). **⚠ silent**
75555
76078
  for untyped code: a `prefill ? a : b` always takes `a`. Details and the
75556
76079
  before/after in [§6 item 37](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v2-to-v3.md).
75557
76080
 
@@ -76356,8 +76879,8 @@ Nothing catches this for you — `dismissAll` is not a template attribute, so
76356
76879
  `rg -n 'dismissAll' --type ts --type js --type vue`. Hits on a `useConfirm()`
76357
76880
  destructure are fine: `dismissAll` is **new** there, and unrelated.
76358
76881
 
76359
- Notes on `actions` (additive but with rules): handlers run with a spinner and
76360
- sibling-disable, and hold the dismiss timer; portal toasts ignore `actions`.
76882
+ Notes on `actions` (additive but with rules): handlers run with a spinner,
76883
+ siblings ignore clicks meanwhile, and they hold the dismiss timer; portal toasts ignore `actions`.
76361
76884
  Styling hooks moved from `theme` classes to `bb-toast__panel--<variant>` —
76362
76885
  custom looks register through the plugin's `components.BbToast.variants` option
76363
76886
  ([main guide §4](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v2-to-v3.md)).
@@ -78180,7 +78703,7 @@ export default defineConfig({
78180
78703
  plugins: [
78181
78704
  vue(),
78182
78705
  bitbossUi({
78183
- iconDir: './src/assets/icons', // required — create the folder
78706
+ icons: { dir: './src/assets/icons' }, // required — create the folder
78184
78707
  }),
78185
78708
  ],
78186
78709
  });
@@ -78201,11 +78724,11 @@ Migration deltas, one by one:
78201
78724
  | v2 | v3 |
78202
78725
  | --- | --- |
78203
78726
  | `import 'bitboss-ui/styles.css'` in the entry file | **Delete it.** The runtime plugin auto-injects styles (`injectStyles` defaults `true`). Keep a manual import only if you set `injectStyles: false` — see the Tailwind exception below. |
78204
- | No build plugin | **Add `bitbossUi({ iconDir })`** to `vite.config.ts` (or the `bitboss-ui/nuxt` module). The app does not build without it — components import the virtual config module. |
78727
+ | No build plugin | **Add `bitbossUi({ icons: { dir } })`** to `vite.config.ts` (or the `bitboss-ui/nuxt` module). The app does not build without it — components import the virtual config module. |
78205
78728
  | `app.use(BbTooltipDirectivePlugin)` / `app.use(BbDropdownDirectivePlugin)` | **Delete both.** `bitbossUiPlugin` registers `v-bb-tooltip` and `v-bb-dropdown` itself (opt out with `injectDirectives: false` if the names collide). |
78206
78729
  | No reset stylesheet | Optional: `resetCss: true` or `import 'bitboss-ui/reset.css'`. Skip in Tailwind apps — Preflight already does this. |
78207
- | Icons registered by augmenting the `IconRegistry` type | **Gone** (the `IconRegistry` export no longer exists — see section 5). Drop `.svg` files into `iconDir` and reference them as `local:<name>`; provider icons (`lucide:*`, `mdi:*`, …) need the matching `@iconify-json/*` dev dependency. |
78208
- | A hand-rolled icon plugin doing `app.provide('icons', { … })` | **Delete it** and move the art into `iconDir`. See the shadowing warning below — this one is silent. |
78730
+ | Icons registered by augmenting the `IconRegistry` type | **Gone** (the `IconRegistry` export no longer exists — see section 5). Drop `.svg` files into `icons.dir` and reference them as `local:<name>`; provider icons (`lucide:*`, `mdi:*`, …) need the matching `@iconify-json/*` dev dependency. |
78731
+ | A hand-rolled icon plugin doing `app.provide('icons', { … })` | **Delete it** and move the art into `icons.dir`. See the shadowing warning below — this one is silent. |
78209
78732
 
78210
78733
  ### ⚠ silent — a hand-rolled `provide('icons', …)` is shadowed, not merged
78211
78734
 
@@ -78215,7 +78738,7 @@ icon plugin typically uses. `BbIcon` reads the **Symbol first**
78215
78738
  (`inject(ICONS_INJECTION_KEY) ?? inject('icons')`), so once the library plugin
78216
78739
  is installed your own `provide('icons', …)` map never wins. Any glyph that
78217
78740
  existed only in that map stops resolving, and nothing warns. Move those SVGs
78218
- into `iconDir` and reference them as `local:<name>`.
78741
+ into `icons.dir` and reference them as `local:<name>`.
78219
78742
 
78220
78743
  App code that still calls `inject('icons')` now receives the **library's**
78221
78744
  registry object, not yours. The string key is a one-release compatibility shim
@@ -78236,7 +78759,7 @@ manual import and turn injection off:
78236
78759
 
78237
78760
  ```ts
78238
78761
  // vite.config.ts
78239
- bitbossUi({ iconDir: './src/assets/icons', injectStyles: false });
78762
+ bitbossUi({ icons: { dir: './src/assets/icons' }, injectStyles: false });
78240
78763
  ```
78241
78764
 
78242
78765
  ```ts
@@ -78258,7 +78781,7 @@ v3 ships a module that does both halves — do **not** also call `app.use`:
78258
78781
  export default defineNuxtConfig({
78259
78782
  modules: ['bitboss-ui/nuxt'],
78260
78783
  bitboss: {
78261
- iconDir: './assets/icons',
78784
+ icons: { dir: './assets/icons' },
78262
78785
  },
78263
78786
  });
78264
78787
  ```
@@ -78272,8 +78795,8 @@ not rewriting setup.
78272
78795
 
78273
78796
  | `@bitboss-dev/bitboss-ui-nuxt` option | v3 `bitboss-ui/nuxt` |
78274
78797
  | --- | --- |
78275
- | `icons.path` | `iconDir`. Same job, one level up. |
78276
- | `icons.enabled: false` | **Gone** — the icon pipeline is not optional in v3; components import the virtual icon module. Point `iconDir` at an empty folder if you ship no local art. |
78798
+ | `icons.path` | `icons.dir`. Same job. |
78799
+ | `icons.enabled: false` | **Gone** — the icon pipeline is not optional in v3; components import the virtual icon module. Point `icons.dir` at an empty folder if you ship no local art. |
78277
78800
  | `styles.enabled` | `injectStyles` (still defaults `true`). |
78278
78801
  | `styles.index` | **Gone**, and nothing replaces it — see the ordering note below. |
78279
78802
  | `link.name` | `nuxtLinkName` (still defaults `'NuxtLink'`). |
@@ -78295,7 +78818,7 @@ or opt back in:
78295
78818
  export default defineNuxtConfig({
78296
78819
  modules: ['bitboss-ui/nuxt'],
78297
78820
  bitboss: {
78298
- iconDir: './assets/icons',
78821
+ icons: { dir: './assets/icons' },
78299
78822
  autoImport: true, // BbForm and the form controls included
78300
78823
  },
78301
78824
  });
@@ -78362,7 +78885,7 @@ the `components` map:
78362
78885
  ```ts
78363
78886
  // v3
78364
78887
  bitbossUi({
78365
- iconDir: './src/assets/icons',
78888
+ icons: { dir: './src/assets/icons' },
78366
78889
  inertiaLinkName: 'Link',
78367
78890
  mobileMaxWidth: 768,
78368
78891
  components: { BbDialog: { sizeMap: { md: 700 } } },
@@ -78406,7 +78929,7 @@ without any error. If your app relied on the v2 widths, pin them explicitly:
78406
78929
 
78407
78930
  ```ts
78408
78931
  bitbossUi({
78409
- iconDir: '…',
78932
+ icons: { dir: '…' },
78410
78933
  components: {
78411
78934
  BbDialog: { sizeMap: { md: 652, lg: 896 } },
78412
78935
  BbOffCanvas: { sizeMap: { md: 652, lg: 896 } },
@@ -78833,7 +79356,7 @@ modifier class), register the name and ship its CSS:
78833
79356
  ```ts
78834
79357
  // vite.config.ts
78835
79358
  bitbossUi({
78836
- iconDir: '…',
79359
+ icons: { dir: '…' },
78837
79360
  components: {
78838
79361
  BbButton: { variants: ['brand'] },
78839
79362
  BbBadge: { variants: ['soft-blue'] },
@@ -78884,7 +79407,7 @@ every occurrence; this section explains each pattern once.
78884
79407
  | `BbRatio` (+ `BbRatioProps`, `.bb-ratio`) | **removed** | No replacement — it was a one-rule wrapper. Use the `aspect-ratio` CSS property, or copy the v2 component. |
78885
79408
  | `useQueue`, `useQuery` | **removed** | Both were public v2 exports and neither has a v3 equivalent; the import fails at build. Copy the v2 implementations out of the 2.1.135 tarball (`dist/composables/useQueue.d.ts`, `useQuery.d.ts`) into your app, or replace them with `@vueuse/core` equivalents. |
78886
79409
  | `BbToastMessage` type export | **removed** | Use `BbToastOptions` (the `toast()` options shape). |
78887
- | `IconRegistry` / `IconNameFromRegistry` exports | **removed** | Icon names are plain strings now. Local art goes in `iconDir` as `local:<name>`; delete your `IconRegistry` augmentation. |
79410
+ | `IconRegistry` / `IconNameFromRegistry` exports | **removed** | Icon names are plain strings now. Local art goes in `icons.dir` as `local:<name>`; delete your `IconRegistry` augmentation. |
78888
79411
  | `BbConfirm` + `BbToast` (the hosts; `BbConfirmProps`, `BbToastProps`) | **removed** — delete the tags: the plugin renders `<BbHost />` | Delete both tags: the plugin renders a `<BbHost />` beside the app (after 3.0.0-beta.65; one placed at the app root since beta.56 keeps working). It renders every `confirm()` and `toast()`, takes no props, and a second one renders nothing. Their settings moved to the plugin config: `<BbConfirm size>` → `confirm: { defaultSize }`, `<BbToast position>` → `toastPosition`, the hosts' `pt` / `pt:*` → the build-time `pt.BbConfirm` / `pt.BbToast` maps. `<BbConfirmPortal>`, `<BbToastPortal>`, `confirm()` and `toast()` are unchanged. With no host, `confirm()` now resolves `false` after one second instead of hanging. |
78889
79412
 
78890
79413
  ### 5.2 The polarity wave: booleans now read as opt-in
@@ -79049,6 +79572,14 @@ to the new name (`hide-close`).
79049
79572
  work. The v3 prereleases up to beta.32 exported this union as
79050
79573
  `InputDirection`; that type export is gone — import `FieldLayout` (for
79051
79574
  `layout` / `itemLayout`) or `ListLayout` (for `listLayout`) instead.
79575
+ - **Slot scope types**: each component exports its whole slots type
79576
+ (`BbCarouselSlots<T>`, `BbDropdownSlots`); index it for one slot. The v3
79577
+ prereleases up to beta.74 also exported `BbCarouselSlotProps` and
79578
+ `BbDropdownItemSlotProps`; those exports are gone — write
79579
+ `Parameters<BbCarouselSlots<Photo>['slide']>[0]` or
79580
+ `Parameters<BbDropdownSlots['item:prepend']>[0]`. The portal scopes
79581
+ (`BbConfirmPortalSlotProps`, `BbHoverCardPortalSlotProps`,
79582
+ `BbPopoverPortalSlotProps`, `DirectivePortalSlotProps`) stay.
79052
79583
 
79053
79584
  - **Fall-through attributes are typed** (after 3.0.0-beta.65): each
79054
79585
  component's props type carries Vue's attribute type of the element its
@@ -79705,11 +80236,13 @@ Nothing here fails to compile — these change what existing code does.
79705
80236
  Two behaviours moved with it. **A provider signals a failure by throwing**,
79706
80237
  never by returning `[]` (an empty array is a real, applied result): the
79707
80238
  rows are cleared so stale rows never sit under a new filter, nothing is
79708
- pruned, nothing reaches the SSR payload, and the `#empty` slot receives
79709
- `error` (what you threw, untouched; `null` when nothing failed) while the
79710
- empty state shows the new `failed-text` prop — default "Couldn't load
79711
- items" — in place of `empty-text`. Retry by bumping a counter you list in
79712
- `dependencies`. And **one coherence rule for every family**:
80239
+ pruned, nothing reaches the SSR payload, and the component shows its own
80240
+ failure row: the new `failed-text` prop — default "Couldn't load items"
80241
+ — then a "Try again" button that runs the failed call again. `#empty`
80242
+ means empty: it never renders for a failure, and its scope has no
80243
+ `error` (the v3 prereleases up to beta.74 handed it one; move that
80244
+ branch's copy to `failed-text` and drop any retry counter you listed in
80245
+ `dependencies`). And **one coherence rule for every family**:
79713
80246
  `enforce-coherence` prunes only after an applied, successful, non-search
79714
80247
  load — an EMPTY one included, so a legitimately empty dependent list drops
79715
80248
  its stale picks. `BbDropdown` used to skip empty results; if a group relied
@@ -80995,6 +81528,42 @@ nullValue }, BbTextarea: { nullValue } }`, same values (`'null'` /
80995
81528
  A nested table still paints nothing. A `background: var(--bg)` on a
80996
81529
  `.bb-table.card` class is now redundant.
80997
81530
 
81531
+ 168. **A creatable select shows a "Create «query»" row** (after
81532
+ 3.0.0-beta.74). With an `option:add` listener, a typed query that no
81533
+ option matches exactly gets a create row: last after the matches, or
81534
+ alone in place of the no-results text and `#empty`. Its click (and the
81535
+ arrow keys + Enter) emits `option:add`, as Enter already did. A
81536
+ `#empty` that offered a create link or button is redundant: drop it.
81537
+
81538
+ 169. **The icon options move under `icons`** (after 3.0.0-beta.75).
81539
+ `iconDir` is `icons.dir` and `iconWhitelist` is `icons.whitelist`,
81540
+ in `bitbossUi()` and in Nuxt's `bitboss` key; the old keys fail the
81541
+ build naming the new ones. `iconsScanner` stays where it is.
81542
+
81543
+ ```ts
81544
+ bitbossUi({
81545
+ icons: { dir: './src/assets/icons', whitelist: ['tabler:crown'] },
81546
+ });
81547
+ ```
81548
+
81549
+ 170. **BbSelect / BbSelectPopover take `v-model:query`** (after
81550
+ 3.0.0-beta.75). The search field's text, bound: written back raw on
81551
+ every committed keystroke and `''` when the component empties the
81552
+ field (close, a pick that closes, `option:add`, the ✕). A write
81553
+ searches at once and is held while closed, so a cancelled create can
81554
+ reopen on its search: `query = text; open = true`. On the phone
81555
+ sheet the query now clears when the close begins, not after the
81556
+ slide-out.
81557
+
81558
+ 171. **Dropdown group titles are `group-label`, `groupBy` headings
81559
+ `group-header`** (after 3.0.0-beta.75). `.bb-dropdown__group-title`
81560
+ is `.bb-dropdown__group-label` (its `group-title__*` children follow),
81561
+ and a `groupBy` heading carries only `.bb-dropdown__group-header` (was
81562
+ `__group-title __section-title`; its wrapper `__section` is
81563
+ `__group-section`). Rename them in your CSS, or better, style them
81564
+ through the new parts: `pt:group-label` on BbDropdown and
81565
+ `pt:group-header` on BbDropdown and BbSelect.
81566
+
80998
81567
  ## 7. Class overrides → variants
80999
81568
 
81000
81569
  ### The v2 pattern to hunt down
@@ -81316,7 +81885,7 @@ Each `pt` part now has a class with the same name, on the same element:
81316
81885
 
81317
81886
  <!-- generated:count -->
81318
81887
 
81319
- In numbers: **88** classes renamed, **23** added beside an existing class, and **7** new state classes and elements.
81888
+ In numbers: **94** classes renamed, **23** added beside an existing class, and **7** new state classes and elements.
81320
81889
 
81321
81890
  <!-- /generated:count -->
81322
81891
 
@@ -81356,7 +81925,7 @@ bash and zsh. On Windows, use Git Bash or WSL.
81356
81925
 
81357
81926
  ```sh
81358
81927
  rg -nP --glob '!node_modules' --glob '!dist' --glob '!rename-bb-classes.mjs' \
81359
- '(?<![\w-])(bb-checkbox-group-item__description|bb-switch-group-item__description|bb-radio-group-item__description|bb-dropdown-button__dropdown-btn|bb-segmented-field__trigger-btn|bb-select-popover__search-input|bb-select-popover__search-clear|bb-listbox__option-description|bb-dropzone__interactive-label|bb-time-picker-input-offcanvas|bb-checkbox-group-item__label|bb-dropdown__items-container|bb-dropdown-button__main-btn|bb-pagination__page-chevron|bb-switch-group-item__label|bb-table-column-ghost__icon|bb-select-popover-offcanvas|bb-radio-group-item__label|bb-color-palette-offcanvas|bb-checkbox-group__no-data|bb-segmented-field__field|bb-time-selector__readout|bb-toast-message__content|bb-toast-message__actions|bb-color-palette__popover|bb-commabox-item--focused|bb-listbox__option-label|bb-calendar__header-cell|bb-calendar__date-button|bb-time-selector__header|bb-date-picker-offcanvas|bb-time-picker-offcanvas|bb-calendar__date-append|bb-switch-group__no-data|bb-indicator__indicator|bb-toast-message__title|bb-toast-message__close|bb-date-picker__popover|bb-time-picker__popover|bb-toast-message__inner|bb-radio-group__no-data|bb-badge__clear-button|bb-checkbox-group-item|bb-toast-message__icon|bb-toast-message__text|bb-table-no-data__cell|bb-table-no-data__text|bb-select__comma-item|bb-calendar__controls|bb-time-selector__btn|bb-tabs-list__tablist|bb-table-no-data__row|bb-offcanvas--stacked|bb-calendar__nav-btn|bb-switch-group-item|bb-popover-offcanvas|bb-field__hint-text|bb-tooltip__content|bb-radio-group-item|bb-table-header-row|bb-table-sort__icon|bb-table-data__cell|bb-listbox--no-data|bb-listbox__no-data|bb-tag__text-input|bb-button__content|bb-table-data__row|bb-offcanvas__body|bb-calendar__month|bb-dialog--stacked|bb-badge__content|bb-calendar__date|item__description|bb-rating__option|bb-badge--focused|bb-button--active|bb-chipsbox-item|bb-commabox-item|bb-table-caption|bb-tabs__trigger|bb-toast-message|bb-select__chip|bb-table-header|bb-dialog__body|bb-tree__node|bb-tabs-panes|bb-tabs__pane|item__text)(?![\w]|-(?!-))'
81928
+ '(?<![\w-])(bb-checkbox-group-item__description|bb-switch-group-item__description|bb-radio-group-item__description|bb-dropdown-button__dropdown-btn|bb-segmented-field__trigger-btn|bb-select-popover__search-input|bb-select-popover__search-clear|bb-listbox__option-description|bb-dropzone__interactive-label|bb-time-picker-input-offcanvas|bb-checkbox-group-item__label|bb-dropdown__items-container|bb-dropdown-button__main-btn|bb-pagination__page-chevron|bb-switch-group-item__label|bb-table-column-ghost__icon|bb-select-popover-offcanvas|bb-radio-group-item__label|bb-color-palette-offcanvas|bb-checkbox-group__no-data|bb-dropdown__section-title|bb-segmented-field__field|bb-time-selector__readout|bb-toast-message__content|bb-toast-message__actions|bb-color-palette__popover|bb-commabox-item--focused|group-title__prepend-icon|bb-listbox__option-label|bb-calendar__header-cell|bb-calendar__date-button|bb-time-selector__header|bb-date-picker-offcanvas|bb-time-picker-offcanvas|bb-calendar__date-append|bb-switch-group__no-data|bb-dropdown__group-title|group-title__append-icon|bb-indicator__indicator|bb-toast-message__title|bb-toast-message__close|bb-date-picker__popover|bb-time-picker__popover|bb-toast-message__inner|bb-radio-group__no-data|bb-badge__clear-button|bb-checkbox-group-item|bb-toast-message__icon|bb-toast-message__text|bb-table-no-data__cell|bb-table-no-data__text|bb-select__comma-item|bb-calendar__controls|bb-time-selector__btn|bb-tabs-list__tablist|bb-table-no-data__row|bb-offcanvas--stacked|bb-calendar__nav-btn|bb-switch-group-item|bb-popover-offcanvas|group-title__content|bb-dropdown__section|bb-field__hint-text|bb-tooltip__content|bb-radio-group-item|bb-table-header-row|bb-table-sort__icon|bb-table-data__cell|bb-listbox--no-data|bb-listbox__no-data|bb-tag__text-input|bb-button__content|bb-table-data__row|bb-offcanvas__body|bb-calendar__month|bb-dialog--stacked|bb-badge__content|bb-calendar__date|item__description|bb-rating__option|bb-badge--focused|bb-button--active|bb-chipsbox-item|bb-commabox-item|bb-table-caption|bb-tabs__trigger|bb-toast-message|bb-select__chip|bb-table-header|bb-dialog__body|bb-tree__node|bb-tabs-panes|bb-tabs__pane|item__text)(?![\w]|-(?!-))'
81360
81929
  ```
81361
81930
 
81362
81931
  <!-- /generated:find -->
@@ -81379,7 +81948,7 @@ List the nested selectors that may spell an old name:
81379
81948
 
81380
81949
  ```sh
81381
81950
  rg -nP --glob '*.{css,scss,sass,less,styl,pcss,postcss,vue,svelte,astro}' --glob '!node_modules' --glob '!dist' \
81382
- '(?:&|#\{&\})(-picker-input-offcanvas|__option-description|__interactive-label|-popover-offcanvas|-palette-offcanvas|__items-container|-picker-offcanvas|-input-offcanvas|__dropdown-btn|__search-input|__search-clear|__page-chevron|-item--focused|__option-label|__clear-button|__description|__trigger-btn|-column-ghost|__header-cell|__date-button|__date-append|-description|__comma-item|__text-input|-group-item|__indicator|__hint-text|-header-row|-offcanvas|-container|__main-btn|__controls|__no-data|__readout|-selector|__content|__actions|__popover|--focused|__tablist|--stacked|__nav-btn|--no-data|__trigger|-popover|-chevron|-message|-palette|-focused|__header|-no-data|-stacked|__option|--active|-caption|-button|__label|__field|-append|__title|__close|-picker|__inner|__month|-active|-header|-field|-input|-clear|-label|__icon|-ghost|-group|__text|__cell|__body|__date|__chip|__node|-panes|__pane|-item|-data|-cell|__btn|-list|__row|-text|-sort|-btn|-row)(?=[\s,{:.>+~\[)]|__|--|$)'
81951
+ '(?:&|#\{&\})(-picker-input-offcanvas|__option-description|__interactive-label|-popover-offcanvas|-palette-offcanvas|__items-container|-picker-offcanvas|-input-offcanvas|__section-title|__dropdown-btn|__search-input|__search-clear|__page-chevron|-item--focused|__option-label|__clear-button|__description|__trigger-btn|-column-ghost|__header-cell|__date-button|__date-append|__group-title|-description|__comma-item|__text-input|-group-item|__indicator|__hint-text|-header-row|-offcanvas|-container|__main-btn|__controls|__no-data|__readout|-selector|__content|__actions|__popover|--focused|__tablist|--stacked|__nav-btn|__section|--no-data|__trigger|-popover|-chevron|-message|-palette|-focused|__header|-no-data|-stacked|__option|--active|-caption|-button|__label|__field|-append|__title|__close|-picker|__inner|__month|-active|-header|-field|-input|-clear|-label|__icon|-ghost|-group|-title|__text|__cell|__body|__date|__chip|__node|-panes|__pane|-item|-data|-cell|__btn|-list|__row|-text|-sort|-btn|-row)(?=[\s,{:.>+~\[)]|__|--|$)'
81383
81952
  ```
81384
81953
 
81385
81954
  <!-- /generated:nested -->
@@ -81541,6 +82110,9 @@ const MAP = {
81541
82110
  'bb-table-no-data__text': 'bb-table-empty__text',
81542
82111
  'bb-dialog--stacked': 'bb-dialog--above',
81543
82112
  'bb-offcanvas--stacked': 'bb-offcanvas--above',
82113
+ 'bb-dropdown__group-title': 'bb-dropdown__group-label',
82114
+ 'bb-dropdown__section-title': 'bb-dropdown__group-header',
82115
+ 'bb-dropdown__section': 'bb-dropdown__group-section',
81544
82116
  };
81545
82117
 
81546
82118
  /**
@@ -81563,6 +82135,12 @@ const MANUAL = {
81563
82135
  'bb-dropdown__item-text — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
81564
82136
  item__description:
81565
82137
  'bb-dropdown__item-description — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
82138
+ 'group-title__content':
82139
+ 'group-label__content — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
82140
+ 'group-title__prepend-icon':
82141
+ 'group-label__prepend-icon — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
82142
+ 'group-title__append-icon':
82143
+ 'group-label__append-icon — only inside a .bb-dropdown / .bb-dropdown-button selector (the name has no bb- prefix: yours stay)',
81566
82144
  };
81567
82145
 
81568
82146
  const USAGE =
@@ -82046,6 +82624,12 @@ consistent.
82046
82624
  | `.bb-checkbox-group__no-data` | `.bb-checkbox-group__empty` | `empty` | |
82047
82625
  | `.bb-radio-group__no-data` | `.bb-radio-group__empty` | `empty` | |
82048
82626
  | `.bb-switch-group__no-data` | `.bb-switch-group__empty` | `empty` | |
82627
+ | `.bb-dropdown__group-title` | `.bb-dropdown__group-label` | `groupLabel` | |
82628
+ | `.group-title__content` | `.group-label__content` | _internal_ | |
82629
+ | `.group-title__prepend-icon` | `.group-label__prepend-icon` | _internal_ | |
82630
+ | `.group-title__append-icon` | `.group-label__append-icon` | _internal_ | |
82631
+ | `.bb-dropdown__section-title` | `.bb-dropdown__group-header` | `groupHeader` | A `groupBy` heading. It no longer carries `.bb-dropdown__group-title` (a group's own label row, now `__group-label`): the two share rules, not a class. Its content span is `.group-header__content`. |
82632
+ | `.bb-dropdown__section` | `.bb-dropdown__group-section` | _internal_ | |
82049
82633
 
82050
82634
  <!-- /generated:renames -->
82051
82635
 
@@ -82341,6 +82925,7 @@ What changed in the install and build-plugin setup during the 3.0 betas, for an
82341
82925
  | `allowComponents` for `check` | `package.json` `"bitboss-ui": { "allowComponents": [...] }` or `bitboss-ui.check.json` | Read only from the build plugin, as a literal (3.0.0-beta.69); the old places are ignored, so those tags are reported again | Move the list into `bitbossUi({ allowComponents: [...] })` (Nuxt: `bitboss`). `registeredRules` and `dialogIdsWhitelist` stay in `bitboss-ui.check.json` |
82342
82926
  | Reporting opt-out | None: an app could not turn reporting off | `"bitboss-ui": { "report": false }` in `package.json` (3.0.0-beta.74): no `report` command, no MCP `report_issue`, no reporting section in the agent files | Add it to opt out; on by default |
82343
82927
  | Cursor, Windsurf and Copilot rule files | `ai-init` wrote `.cursor/rules/bitboss-ui.mdc`, `.windsurf/rules/bitboss-ui.md` and a block in `.github/copilot-instructions.md` | Removed by `setup` and `update` (3.0.0-beta.69): those harnesses read `AGENTS.md`, and Zed read the Copilot file instead of it | Commit the deletions |
82928
+ | Agent files on a dev server start | Up to 3.0.0-beta.74 a dev, build or test start also deleted the old rule files and edited `CLAUDE.md` | Only installs (the postinstall) and `update` / `setup` delete files or edit `CLAUDE.md`; a dev start writes our own blocks and files | After changing `ai`, run `npx bitboss-ui update --no-install` |
82344
82929
 
82345
82930
  ---
82346
82931
 
@@ -84043,7 +84628,7 @@ _Passthrough parts and states_ table in that component's contract
84043
84628
  | `BbAccordion` | `root`, `header`, `title`, `icon`, `panel` | `disabled`, `open` |
84044
84629
  | `BbAlert` | `root`, `icon`, `title`, `text`, `close` | —; _(variants, every part: `outline`, `primary`, `destructive`, `warning`)_ |
84045
84630
  | `BbAsterisk` | `root` | — |
84046
- | `BbAvatar` | `root`, `icon` | — |
84631
+ | `BbAvatar` | `root`, `icon`, `initials` | — |
84047
84632
  | `BbBadge` | `root`, `icon`, `spinner`, `text`, `clear` | `activeLink`, `exactActiveLink` _(from its link body)_, `loading`; _(variants, every part: `primary`, `secondary`, `destructive`, `outline`)_ |
84048
84633
  | `BbBaseButton` | `root` | `activeLink`, `exactActiveLink`, `disabled` |
84049
84634
  | `BbBaseCheckboxIcon` | `root` | `errors`, `warnings`, `disabled`, `readonly`, `checked`, `indeterminate`, `focused`, `focusVisible` |
@@ -84062,8 +84647,8 @@ _Passthrough parts and states_ table in that component's contract
84062
84647
  | `BbDatePicker` | `root`, `panel`, `sheet`, `header`, `arrow`, `month`, `year`, `cellColumnHeader`, `week`, `weekNumber` _(`type="week"` rows)_, `day`, `dayButton`, `monthItem`, `yearItem`, `item` _(forwarded to the calendar)_ | `outside`, `today`, `inRange`, `selected`, `rangeStart`, `rangeEnd`, `disabled`, `highlighted` _(per cell)_, `active` _(month / year)_, `open` |
84063
84648
  | `BbDatePickerInput` | family + `activator`, `panel`, `sheet`, `header`, `arrow`, `month`, `year`, `cellColumnHeader`, `week`, `weekNumber` _(`type="week"` rows)_, `day`, `dayButton`, `monthItem`, `yearItem`, `item` _(forwarded to the calendar)_ | family + `open`, `outside`, `today`, `inRange`, `selected`, `rangeStart`, `rangeEnd`, `disabled`, `highlighted` _(per cell)_, `active` _(month / year)_ |
84064
84649
  | `BbDialog` | `root`, `sheet`, `header`, `title`, `description`, `content`, `footer`, `close` | `open`, `fullscreen` |
84065
- | `BbDropdown` | `root`, `panel`, `sheet`, `header`, `footer`, `input` _(every searchable group's field)_, `list`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `submenu` _(each flyout box)_ | `open`, `activeLink`, `exactActiveLink`, `selected`, `disabled` _(per entry)_; _(variants, per entry, on the entry parts: `default`, `destructive`)_ |
84066
- | `BbDropdownButton` | `root`, `main`, `toggle` _(the two halves)_, `icon`, `spinner`, `text` _(the main button's)_, `panel`, `sheet`, `header`, `footer`, `input`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check`, `submenu` _(the menu's)_ | `activeLink`, `exactActiveLink` _(the main button's link; per entry on the entry parts)_, `loading`, `disabled`, `open`; `selected` _(entry parts only)_; _(variants: the button's on the control's parts — root, main, toggle, icon, spinner, text: `primary`, `outline`, `secondary`, `ghost`, `destructive`, `link`; each entry's on the entry parts: `default`, `destructive`)_ |
84650
+ | `BbDropdown` | `root`, `panel`, `sheet`, `header`, `footer`, `box` _(each search box)_, `input` _(every searchable group's field)_, `list`, `groupLabel` _(each group's label)_, `groupHeader` _(each group-by heading)_, `item`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `submenu` _(each flyout box)_ | `open`, `activeLink`, `exactActiveLink`, `selected`, `disabled` _(per entry)_; _(variants, per entry, on the entry parts: `default`, `destructive`)_ |
84651
+ | `BbDropdownButton` | `root`, `main`, `toggle` _(the two halves)_, `icon`, `spinner`, `text` _(the main button's)_, `panel`, `sheet`, `header`, `footer`, `box`, `input`, `list`, `groupLabel`, `groupHeader`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check`, `submenu` _(the menu's)_ | `activeLink`, `exactActiveLink` _(the main button's link; per entry on the entry parts)_, `loading`, `disabled`, `open`; `selected` _(entry parts only)_; _(variants: the button's on the control's parts — root, main, toggle, icon, spinner, text: `primary`, `outline`, `secondary`, `ghost`, `destructive`, `link`; each entry's on the entry parts: `default`, `destructive`)_ |
84067
84652
  | `BbDropzone` | `root`, `content`, `message` | `active`, `errors`, `warnings`, `disabled`, `readonly` |
84068
84653
  | `BbGallery` | `root`, `header`, `title`, `close`, `slide` _(per photo)_, `image` _(per photo)_, `prev`, `next`, `footer`, `caption`, `more`, `counter` | `disabled` _(per node)_, `active` _(per node)_, `zoomed` |
84069
84654
  | `BbHoverCard` | `root`, `panel`, `header`, `content`, `footer` | `open` |
@@ -84077,8 +84662,8 @@ _Passthrough parts and states_ table in that component's contract
84077
84662
  | `BbRadio` | `root`, `label`, `description`, `message`, `hint`, `icon` | `errors`, `warnings`, `disabled`, `readonly`, `checked`, `focused`, `focusVisible` |
84078
84663
  | `BbRadioGroup` | `root`, `legend`, `description`, `message`, `hint`, `list`, `item`, `icon`, `label`, `itemDescription`, `indicator` | `errors`, `warnings`, `disabled`, `readonly`, `loading`, `hasValue`; `checked`, `focused`, `focusVisible` _(row parts only)_; _(variants, on every part: `pill`, `line`, `outline`)_ |
84079
84664
  | `BbRating` | `root`, `legend`, `description`, `message`, `hint`, `item` | `errors`, `warnings`, `disabled`, `readonly`, `hasValue`, `selected` _(per star)_ |
84080
- | `BbSelect` | `root`, `label`, `description`, `message`, `hint`, `box`, `activator`, `icon`, `spinner`, `prefix`, `suffix`, `clear`, `panel`, `sheet`, `header`, `footer`, `input` _(the search field)_, `list`, `option`, `itemText`, `itemIcon`, `itemDescription`, `check` _(forwarded to the popover)_, `badge`, `comma` _(each selected value)_ | family + `open`, `selected` _(per option)_ |
84081
- | `BbSelectPopover` | `root`, `panel`, `sheet`, `input`, `clear`, `list`, `option`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `header`, `footer` | `open`, `selected`, `disabled` _(per option)_ |
84665
+ | `BbSelect` | `root`, `label`, `description`, `message`, `hint`, `box`, `activator`, `icon`, `spinner`, `prefix`, `suffix`, `clear`, `panel`, `sheet`, `header`, `footer`, `input` _(the search field)_, `list`, `groupHeader`, `option`, `itemText`, `itemIcon`, `itemDescription`, `check` _(forwarded to the popover)_, `badge`, `comma` _(each selected value)_ | family + `open`, `selected` _(per option)_ |
84666
+ | `BbSelectPopover` | `root`, `panel`, `sheet`, `input`, `clear`, `list`, `groupHeader` _(each group-by heading)_, `option`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `header`, `footer` | `open`, `selected`, `disabled` _(per option)_ |
84082
84667
  | `BbSlider` | `root`, `label`, `description`, `message`, `hint`, `box`, `track`, `bar`, `ticks`, `tick`, `thumb` | `errors`, `warnings`, `disabled`, `readonly`, `hasValue`, `active`, `inRange` _(per tick)_ |
84083
84668
  | `BbSmoothHeight` | `root` | — |
84084
84669
  | `BbSpinner` | `root` | — |
@@ -86369,7 +86954,7 @@ Do not use these components directly in consumer code unless the user explicitly
86369
86954
  - [Migration v2→v3: BbChip (removed)](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-chip.md) - BbChip is gone — BbBadge with clearable is the replacement; non-clearable chips were badges all along.
86370
86955
  - [Migration v2→v3: BbCollapsible](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-collapsible.md) - `tag` narrows to `'span' | 'div'` and still defaults to `div`; the inner element mirrors it.
86371
86956
  - [Migration v2→v3: BbColorInput](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-color-input.md) - picker renamed to eyeDropper.
86372
- - [Migration v2→v3: BbColorPalette](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-color-palette.md) - flip inverted to disableFlip, showArrow removed, picker renamed eyeDropper, update:open dropped, model updates never emit null.
86957
+ - [Migration v2→v3: BbColorPalette](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-color-palette.md) - flip inverted to disableFlip, showArrow removed, picker renamed eyeDropper, update:open is v-model:open, model updates never emit null.
86373
86958
  - [Migration v2→v3: BbConfirm + BbToast → BbHost](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-host.md) - Delete the <BbConfirm /> and <BbToast /> tags — the plugin renders the <BbHost /> that replaces them; their size, position and pt props move to the plugin config; a second host renders nothing; confirm() with no host resolves false after 1s.
86374
86959
  - [Migration v2→v3: BbDatePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-date-picker-input.md) - allowWriting inverted to disableWriting and hidePopover renamed to disableCalendar, both with a changed token set; the width prop is removed; adaptive mobile sheet by default; non-floating output carries the local offset instead of UTC `Z` (new `utc` prop restores v2 output).
86375
86960
  - [Migration v2→v3: BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-dialog.md) - showClose inverted to hideClose, #close removed (description restored in beta.19), default widths changed, adaptive bottom sheet on mobile by default, --bb-dialog-* tokens replaced by --bb-panel-p plus locals.
@@ -86436,6 +87021,7 @@ Do not use these components directly in consumer code unless the user explicitly
86436
87021
  | `pt:itemText` | `span.bb-listbox__item-text` | `FlatListBox` _(internal)_ |
86437
87022
  | `pt:itemDescription` | `span.bb-listbox__item-description` | `FlatListBox` _(internal)_ |
86438
87023
  | `pt:check` | the root of `BbIcon` | `BbIcon` ([contract](https://llms-bitboss-ui.bitboss.it/dist/ai/BbIcon.md)) |
87024
+ | `pt:groupHeader` | `span.bb-listbox__group-header` | `GroupedListBox` _(internal)_ |
86439
87025
 
86440
87026
  **CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `ListBox`'s root:
86441
87027
 
@@ -86463,7 +87049,7 @@ Do not use these components directly in consumer code unless the user explicitly
86463
87049
  | `open` | `boolean \| undefined` | `false` | | Whether the listbox is open (visible). |
86464
87050
  | `optionHeight` | `number \| undefined` | | | Fixed height (in px) for each option row. Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport. |
86465
87051
  | `options` | `Option<Item>[] \| undefined` | | | Flat option list. Used when `groups` is not provided. |
86466
- | `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
87052
+ | `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "groupHeader" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
86467
87053
  | `transitionDuration` | `number \| undefined` | | | Duration of open/close transition in milliseconds. |
86468
87054
 
86469
87055
  ## Events
@@ -86471,6 +87057,7 @@ Do not use these components directly in consumer code unless the user explicitly
86471
87057
  - `focused:change` — `(id: string \| undefined): void` — Emitted when the keyboard-focused option changes.
86472
87058
  - `option:selected` — `(option: Option): void` — Emitted when an option is selected by the user.
86473
87059
  - `option:unselected` — `(option: Option): void` — Emitted when a previously selected option is deselected.
87060
+ - `retry` — `(event: MouseEvent): void` — The failure footer's "Try again" was pressed: the host runs the failed load again.
86474
87061
 
86475
87062
  ## Slots
86476
87063
 
@@ -86492,7 +87079,7 @@ Do not use these components directly in consumer code unless the user explicitly
86492
87079
 
86493
87080
  - `ListBox` _(this component)_
86494
87081
  - `FlatListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
86495
- - `GroupedListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
87082
+ - `GroupedListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `groupHeader` → `span.bb-listbox__group-header`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
86496
87083
 
86497
87084
  ---
86498
87085
 
@@ -86515,8 +87102,8 @@ Do not use these components directly in consumer code unless the user explicitly
86515
87102
  | --- | --- | --- | --- | --- |
86516
87103
  | `block` | `string` | | yes | The owning group's public BEM block (`bb-checkbox-group`): the nodes are its elements (`__list`, `__loading`, `__item`, `__label`, …), named after the `pt` parts. |
86517
87104
  | `emptyText` | `string \| undefined` | | | String displayed when there are no items to display. |
86518
- | `error` | `unknown` | | | What the owning group's latest failed `items` load rejected with; `null` (or unset) when nothing failed. While set, the empty state shows `failedText` and hands the value to the `empty` slot. Internal. |
86519
- | `failedText` | `string \| undefined` | | | String displayed in the empty state while `error` is set. |
87105
+ | `error` | `unknown` | | | What the owning group's latest failed `items` load rejected with; `null` (or unset) when nothing failed. While set, the list shows the failure row (`failedText` and "Try again"), never the `empty` slot. Internal. |
87106
+ | `failedText` | `string \| undefined` | | | The failure row's message while `error` is set. |
86520
87107
  | `hasErrors` | `boolean \| undefined` | `false` | | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
86521
87108
  | `hasWarnings` | `boolean \| undefined` | `false` | | Define if the component should be in a warning state. Attaches a `--warnings` CSS class; suppressed when `hasErrors` is true. |
86522
87109
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. |
@@ -86535,12 +87122,12 @@ Do not use these components directly in consumer code unless the user explicitly
86535
87122
 
86536
87123
  ## Events
86537
87124
 
86538
- - None.
87125
+ - `retry` — `(event: MouseEvent): void` — The failure row's "Try again" was pressed: the group runs the failed load again.
86539
87126
 
86540
87127
  ## Slots
86541
87128
 
86542
87129
  - `append` — scope: `object` — Content rendered after the last option, inside the options container.
86543
- - `empty` — scope: `{ error: unknown; }` — Content shown when no options are available (replaces the default "no data" text). `error` is the owning group's latest load failure, `null` when none.
87130
+ - `empty` — scope: `object` — Content shown when no options are available (replaces the default "no data" text). Empty only: a failed load shows the failure row.
86544
87131
  - `input` — scope: `OptionsContainerInputSlotProps<T>` `{ index: number; option: Option<T>; labelId: string; descriptionId: string; rowStates: Partial<Record<RowPtState, boolean>> }` — The actual input element for each option (e.g. radio or checkbox).
86545
87132
  - `label` — scope: `OptionsContainerLabelSlotProps<T>` `{ checked: boolean; item: T; text: string; description: string }` — Replaces the default label text for each option.
86546
87133
  - `loading` — scope: `object` — Content shown while options are loading (replaces the default loading text).
@@ -88513,7 +89100,7 @@ export default defineConfig({
88513
89100
  laravel({ input: 'resources/js/app.ts', refresh: true }),
88514
89101
  vue(),
88515
89102
  bitbossUi({
88516
- iconDir: './resources/js/assets/icons',
89103
+ icons: { dir: './resources/js/assets/icons' },
88517
89104
  components: {
88518
89105
  BbBadge: {
88519
89106
  variants: [
@@ -91374,7 +91961,7 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
91374
91961
 
91375
91962
  // Icon names are full static literals: the production icon scanner bundles
91376
91963
  // only literals it can see. The logos are fixed-colour brand art, kept apart
91377
- // from the single-colour UI icons in `<iconDir>/brand/` (`brand/stripe.svg`
91964
+ // from the single-colour UI icons in `<icons.dir>/brand/` (`brand/stripe.svg`
91378
91965
  // is still `local:stripe`: names flatten to the file's basename).
91379
91966
  const integrations = reactive<WorkspaceIntegration[]>([
91380
91967
  {
@@ -106794,7 +107381,7 @@ export default defineNuxtConfig({
106794
107381
  modules: ['bitboss-ui/nuxt'],
106795
107382
  css: ['~/assets/css/badge-variants.css'],
106796
107383
  bitboss: {
106797
- iconDir: './assets/icons',
107384
+ icons: { dir: './assets/icons' },
106798
107385
  components: {
106799
107386
  BbBadge: {
106800
107387
  variants: [
@@ -109707,7 +110294,7 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
109707
110294
 
109708
110295
  // Icon names are full static literals: the production icon scanner bundles
109709
110296
  // only literals it can see. The logos are fixed-colour brand art, kept apart
109710
- // from the single-colour UI icons in `<iconDir>/brand/` (`brand/stripe.svg`
110297
+ // from the single-colour UI icons in `<icons.dir>/brand/` (`brand/stripe.svg`
109711
110298
  // is still `local:stripe`: names flatten to the file's basename).
109712
110299
  const integrations = reactive<WorkspaceIntegration[]>([
109713
110300
  {
@@ -125182,7 +125769,7 @@ export default defineConfig({
125182
125769
  plugins: [
125183
125770
  vue(),
125184
125771
  bitbossUi({
125185
- iconDir: './src/assets/icons',
125772
+ icons: { dir: './src/assets/icons' },
125186
125773
  components: {
125187
125774
  BbBadge: {
125188
125775
  variants: [
@@ -127648,7 +128235,7 @@ Sibling recipes: [Nuxt](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/nuxt/
127648
128235
  those files before anything below, and do not hand-roll replacements —
127649
128236
  the peek stack, the close semantics and the sidebar's out-of-flow
127650
128237
  behaviour are all load-bearing here.
127651
- - **Four brand glyphs in the plugin's `iconDir`**: `stripe.svg`, `slack.svg`,
128238
+ - **Four brand glyphs in the plugin's `icons.dir`**: `stripe.svg`, `slack.svg`,
127652
128239
  `google-drive.svg` and `quickbooks.svg` (any single-colour SVG; the
127653
128240
  integrations list names them `local:stripe` and so on). Without them each
127654
128241
  integration row logs a missing-icon error; or swap the names for
@@ -127928,7 +128515,7 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
127928
128515
 
127929
128516
  // Icon names are full static literals: the production icon scanner bundles
127930
128517
  // only literals it can see. The logos are fixed-colour brand art, kept apart
127931
- // from the single-colour UI icons in `<iconDir>/brand/` (`brand/stripe.svg`
128518
+ // from the single-colour UI icons in `<icons.dir>/brand/` (`brand/stripe.svg`
127932
128519
  // is still `local:stripe`: names flatten to the file's basename).
127933
128520
  const integrations = reactive<WorkspaceIntegration[]>([
127934
128521
  {