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
@@ -473,9 +473,9 @@ export type InternalItem = Omit<
473
473
  };
474
474
 
475
475
  /**
476
- * An optionally titled, optionally selectable section of the menu. Shares base
477
- * props with {@link InternalItem} but does **not** extend BbBaseButton — it is a section
478
- * descriptor, not an individually rendered button.
476
+ * An optionally titled, optionally selectable group of the menu's rows. Shares
477
+ * base props with {@link InternalItem} but does **not** extend BbBaseButton — it
478
+ * is a group descriptor, not an individually rendered button.
479
479
  */
480
480
  /**
481
481
  * Async/array items getter for a pipeline group, returning the raw items
@@ -507,9 +507,12 @@ export type InternalItem = Omit<
507
507
  */
508
508
  export type DropdownGroupItemsGetter = PlainGetter | SearchGetter;
509
509
 
510
- /** A group without a search box: no `query` arrives. */
510
+ /**
511
+ * A group without a search box: no `query` arrives (`undefined`, so the two
512
+ * getters' contexts reject each other both ways, whatever the check order).
513
+ */
511
514
  type PlainGetter = (
512
- context: BbDropdownGroupItemsContext
515
+ context: BbDropdownGroupItemsContext & { query?: undefined }
513
516
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- a fetched group's rows are the API's records: the dropdown is not generic, so their type cannot reach the accessors
514
517
  ) => any[] | Promise<any[]>;
515
518
 
@@ -659,12 +662,19 @@ export type InternalGroup = DropdownEntryBase & {
659
662
  /** Placeholder for this group's search field. Defaults to the localized label. */
660
663
  searchPlaceholder?: string;
661
664
  /**
662
- * Sorts the group's rows under titled sections, inside the one group (one
665
+ * Characters to type before the search runs (`BbSelect`'s rule): below
666
+ * it the query counts as empty. Requires `searchable`.
667
+ *
668
+ * @defaultValue `0`
669
+ */
670
+ minQueryLength?: number;
671
+ /**
672
+ * Sorts the group's rows under headings, inside the one group (one
663
673
  * `v-model`, one search field): a field path read off each row (a fetched
664
- * row: its raw item) or a getter returning the section title. Rows with a
665
- * nullish title are listed without a heading. Sections keep the order in
666
- * which their first row appears, like `BbSelect`'s `groupBy`; a search hides
667
- * a section with no matching row.
674
+ * row: its raw item) or a getter returning the heading. Rows with a
675
+ * nullish value are listed first, without a heading. Headings keep the
676
+ * order in which their first row appears, like `BbSelect`'s `groupBy`; a
677
+ * search hides a heading with no matching row.
668
678
  */
669
679
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- the dropdown is not generic: a fetched row is whatever the getter returned, so an accessor annotated with the app's row type (`(c: Clinic) => c.name`) must fit
670
680
  groupBy?: string | ((row: any) => string | null | undefined);
@@ -700,7 +710,7 @@ export type InternalGroup = DropdownEntryBase & {
700
710
  stash?: boolean;
701
711
  /**
702
712
  * The group's label — rendered as its heading above the items, exposed as the
703
- * section title in the adaptive sheet, and surfaced on `useBbDropdown`
713
+ * group's title in the adaptive sheet, and surfaced on `useBbDropdown`
704
714
  * (handy for chip prefixes / filter summaries).
705
715
  */
706
716
  label?: string;
@@ -785,7 +795,7 @@ export const groupItemsAsArray = (
785
795
 
786
796
  /**
787
797
  * A string or number row: its own text and value (`'Google'` reads "Google"
788
- * and picks `'Google'`), loose, in a section, in a group's `items` or in a
798
+ * and picks `'Google'`), loose, in a divider run, in a group's `items` or in a
789
799
  * submenu's `items`. It declares `searchable` like every entry, so a group
790
800
  * literal beside it still picks its plain or searchable getter.
791
801
  */
@@ -798,7 +808,7 @@ export type ItemEntry = Item | PrimitiveRow;
798
808
  * Items accepted by the dropdown. Entries can be:
799
809
  * - a single {@link InternalItem};
800
810
  * - an array of items — rendered as an anonymous divider-separated group;
801
- * - a {@link InternalGroup} object — a titled / selectable section.
811
+ * - a {@link InternalGroup} object — a titled / selectable group.
802
812
  *
803
813
  * The shapes can be mixed, e.g. `[item, [item, item], { id, label, items }]`.
804
814
  */
@@ -891,7 +901,9 @@ export type NormalizedGroup = {
891
901
  searchable?: boolean;
892
902
  /** Placeholder for this group's search field. */
893
903
  searchPlaceholder?: string;
894
- /** Section title per row (see {@link InternalGroup.groupBy}). */
904
+ /** Characters to type before the search runs (see {@link InternalGroup.minQueryLength}). */
905
+ minQueryLength?: number;
906
+ /** Heading per row (see {@link InternalGroup.groupBy}). */
895
907
  groupBy?: InternalGroup['groupBy'];
896
908
  selectable: boolean;
897
909
  /** Selected row keys (`rowKey`; injected by `BbDropdown`; empty for non-selectable groups). */
@@ -915,27 +927,31 @@ export type MappedItem = InternalItem & {
915
927
  };
916
928
 
917
929
  /**
918
- * Passthrough parts of `BbDropdown`. Groups,
919
- * headings and dividers are not parts.
930
+ * Passthrough parts of `BbDropdown`. A group's
931
+ * items box and the dividers are not parts.
920
932
  *
921
933
  * Per-item functions: on the instance, an entry part (`item`, `itemText`, `itemIcon`, `itemDescription`, `check`) and `submenu` (called with the entry that opens it) also accept `({ item, selected, … }) => PtValue | false | null | undefined` — `item` is the menu entry (an `Item`: its `label`, `value`, `description`, whatever else you put on it), every state a boolean beside it, on for it (`selected`, `disabled`, …), and the entry's `variant` as a string (`default` when it has none) — in the `pt` object or the `:pt:<part>` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the entry as it was. See the passthrough guide, _Per-item functions_.
922
934
  *
923
- * @part root - The floating element — an invisible positioning wrapper; a
924
- * `class` on the component lands here. No node on the phone sheet: style
925
- * what you see with `panel`.
935
+ * @part root - The floating element, an invisible positioning wrapper; a
936
+ * `class` on the component lands here. No node on the phone sheet (style
937
+ * `panel` there).
926
938
  * @part panel - The menu surface you see — the bordered flyout box on
927
939
  * desktop, the sheet itself on a phone.
928
- * @part sheet - The bottom sheet the menu becomes on a phone (the
929
- * `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.
940
+ * @part sheet - The phone's bottom sheet (the `BbOffCanvas` root), never the
941
+ * desktop surface; applied after `panel`, so it wins a conflict.
930
942
  * @part header - The menu's header band.
931
943
  * @part footer - The menu's footer band.
932
- * @part input - A searchable group's search field — a broadcast: it lands on
933
- * every searchable group's field, desktop and phone alike. Its magnifier
934
- * glyph is chrome.
935
- * @part list - The top-level items container between the bands — the node
936
- * that lays the entries out (a flex column with a 1px gap; on a phone, the
937
- * sheet's items container). A submenu's list is not reached. Groups,
938
- * headings and dividers are not parts.
944
+ * @part box - Every searchable group's search box (field and magnifier),
945
+ * as `box` on a field; desktop and phone.
946
+ * @part input - Every searchable group's search field, desktop and phone
947
+ * alike. Its magnifier glyph is chrome.
948
+ * @part list - The top-level entries' container between the bands (a flex
949
+ * column, 1px gap; on a phone, the sheet's). A submenu's list is not
950
+ * reached.
951
+ * @part groupLabel - Every group's label row (its `label` and icons; the
952
+ * row an `onClick` group activates). `#<id>:label` replaces its content.
953
+ * @part groupHeader - Every `groupBy` heading (sticky). `#group` /
954
+ * `#<id>:group` replace its content.
939
955
  * @part item - One menu entry, submenus included — a broadcast resolved per
940
956
  * entry. Also takes a per-item function, called with the entry.
941
957
  * @part itemText - An entry's label (its `label`) — resolved with that
@@ -943,9 +959,9 @@ export type MappedItem = InternalItem & {
943
959
  * per-item function.
944
960
  * @part itemIcon - An entry's prepend / append icons — resolved with that
945
961
  * entry's states. Also takes a per-item function.
946
- * @part itemDescription - An entry's muted second line (its `description`) —
947
- * resolved with that entry's states. A per-entry `#<value>` slot replaces it.
948
- * Also takes a per-item function.
962
+ * @part itemDescription - An entry's muted second line (its `description`),
963
+ * with the entry's states. A per-entry `#<value>` slot replaces it. Also
964
+ * takes a per-item function.
949
965
  * @part check - A checked entry's tick, outside the row slots:
950
966
  * `pt:check="hidden"` spares your own glyph. Also takes a per-item function.
951
967
  * @part submenu - Every submenu's flyout box (desktop only). Also takes a
@@ -957,8 +973,11 @@ export type BbDropdownPtPart =
957
973
  | 'sheet'
958
974
  | 'header'
959
975
  | 'footer'
976
+ | 'box'
960
977
  | 'input'
961
978
  | 'list'
979
+ | 'groupLabel'
980
+ | 'groupHeader'
962
981
  | 'item'
963
982
  | 'itemText'
964
983
  | 'itemIcon'
@@ -972,8 +991,11 @@ export type BbDropdownSurfacePtPart =
972
991
  | 'sheet'
973
992
  | 'header'
974
993
  | 'footer'
994
+ | 'box'
975
995
  | 'input'
976
- | 'list';
996
+ | 'list'
997
+ | 'groupLabel'
998
+ | 'groupHeader';
977
999
  /** The entry parts — broadcasts resolved per entry; their base key also takes a per-item function. Spelled flat (T20). */
978
1000
  export type BbDropdownItemPtPart =
979
1001
  | 'item'
@@ -997,8 +1019,8 @@ export type BbDropdownItemFnPtPart =
997
1019
  * (the link states: while the entry's `activeClass` / `exactActiveClass` are).
998
1020
  *
999
1021
  * @state activeLink - Per node, on the entry parts: an entry whose link
1000
- * (`to` / `href`) points at the current page or one of its ancestors —
1001
- * exactly when its `activeClass` is on. The weakest state.
1022
+ * (`to` / `href`) is the current page or an ancestor (its `activeClass` is
1023
+ * on). The weakest state.
1002
1024
  * @state exactActiveLink - Per node, on the entry parts: an entry whose link
1003
1025
  * points at the current page itself — its `exactActiveClass` is on.
1004
1026
  * @state selected - Per node, on the entry parts: a selectable group's
@@ -1034,8 +1056,11 @@ export const BB_DROPDOWN_PT = {
1034
1056
  'sheet',
1035
1057
  'header',
1036
1058
  'footer',
1059
+ 'box',
1037
1060
  'input',
1038
1061
  'list',
1062
+ 'groupLabel',
1063
+ 'groupHeader',
1039
1064
  'item',
1040
1065
  'itemText',
1041
1066
  'itemIcon',
@@ -1124,26 +1149,24 @@ export type BbDropdownProps = BbDropdownPtProps & {
1124
1149
  */
1125
1150
  activator?: ElementOrComponentRef;
1126
1151
  /**
1127
- * On mobile (below `config.mobileMaxWidth`), renders the menu as a bottom
1128
- * sheet that drills into submenus one level at a time instead of hover
1129
- * flyouts; slots and selection are unchanged. Unset: the global
1130
- * `all.adaptive`.
1152
+ * On mobile (below `config.mobileMaxWidth`), the menu is a bottom sheet
1153
+ * drilling into submenus a level at a time, not hover flyouts; slots and
1154
+ * selection unchanged. Unset: the global `all.adaptive`.
1131
1155
  *
1132
1156
  * @defaultValue `all.adaptive` (`true`)
1133
1157
  */
1134
1158
  adaptive?: boolean;
1135
1159
  /**
1136
- * Whether a selection closes the menu. Unset: a change in a single-choice
1137
- * group closes it (an untick too, at any depth); a `multiple` group stays
1138
- * open. `true`: every selection change closes it. `false`: none does.
1160
+ * Whether a selection closes the menu. Unset: a single-choice group's
1161
+ * change closes it (an untick too, any depth), a `multiple` group stays
1162
+ * open. `true`: every change closes it; `false`: none.
1139
1163
  *
1140
1164
  * @defaultValue unset (close after a single-choice change)
1141
1165
  */
1142
1166
  closeOnSelect?: boolean;
1143
1167
  /**
1144
- * Compact density, the `BbSelect` ladder: flyout rows 28px → 24px, sheet
1145
- * rows 44px → 36px (a sheet row stays a touch target). The label size does
1146
- * not change.
1168
+ * Compact density, the `BbSelect` ladder: flyout rows 28 → 24px, sheet rows
1169
+ * 44 → 36px (still a touch target). The label size stays.
1147
1170
  */
1148
1171
  compact?: boolean;
1149
1172
  /**
@@ -1154,11 +1177,13 @@ export type BbDropdownProps = BbDropdownPtProps & {
1154
1177
  * @defaultValue the activator element
1155
1178
  */
1156
1179
  anchor?: ElementOrComponentRef | VirtualAnchor;
1180
+ /** Whether the menu is open (`v-model`): `true` opens it from code at its activator or `anchor`. Unbound: the initial state. */
1181
+ modelValue?: boolean;
1157
1182
  /**
1158
- * Keeps the panel inside this element beside its trigger (sideways for a
1159
- * menu above or below); away from it the panel may pass the edge, and only
1160
- * the viewport flips it. An element, a component ref or a CSS selector (a
1161
- * `useTemplateRef`, not `$refs.x`: not reactive).
1183
+ * Keeps the panel inside this element beside its trigger (sideways under a
1184
+ * menu); away from it only the viewport flips it. An element, component ref
1185
+ * or CSS selector (a `useTemplateRef`, not `$refs.x`). In a `BbTable`: its
1186
+ * left and right edges.
1162
1187
  */
1163
1188
  // Spelled out, not `ElementOrComponentRefOrSelector`: one type name
1164
1189
  // fewer in the component's agent answer, which sits at its size cap.
@@ -1168,9 +1193,9 @@ export type BbDropdownProps = BbDropdownPtProps & {
1168
1193
  */
1169
1194
  disabled?: boolean;
1170
1195
  /**
1171
- * Renders the menu panel at mount instead of on the first open (the phone
1172
- * sheet's too), and keeps its rows after a close. Without it the rows mount
1173
- * on each open and go once the menu has closed.
1196
+ * Renders the panel (the phone sheet's too) at mount, not on the first
1197
+ * open, and keeps its rows after a close; otherwise rows mount on each open
1198
+ * and go after the close.
1174
1199
  */
1175
1200
  eager?: boolean;
1176
1201
  /**
@@ -1188,7 +1213,7 @@ export type BbDropdownProps = BbDropdownPtProps & {
1188
1213
  /**
1189
1214
  * The menu rows, each a `BbBaseButton` (`button`, `a` or `router-link`): a
1190
1215
  * flat array for one group, nested arrays for divider-separated groups, or
1191
- * `InternalGroup` objects for titled / selectable sections. A row's own
1216
+ * `InternalGroup` objects for titled / selectable groups. A row's own
1192
1217
  * `items` opens a submenu.
1193
1218
  *
1194
1219
  * @defaultValue `[]`
@@ -1200,23 +1225,11 @@ export type BbDropdownProps = BbDropdownPtProps & {
1200
1225
  * trigger always stays.
1201
1226
  */
1202
1227
  keepActivator?: boolean;
1203
- /**
1204
- * Default placeholder text shown while a pipeline group's async items load.
1205
- * A group's own `loadingText` overrides this; both fall back to the localized
1206
- * `common.loadingText` (`'Loading...'`).
1207
- */
1228
+ /** A pipeline group's loading row; its own `loadingText` wins. Default: `common.loadingText`. */
1208
1229
  loadingText?: string;
1209
- /**
1210
- * Default placeholder text shown when a pipeline group resolves to no items.
1211
- * A group's own `emptyText` overrides this; both fall back to the localized
1212
- * `common.emptyText` (`'No data to display'`).
1213
- */
1230
+ /** A pipeline group's no-items row; its own `emptyText` wins. Default: `common.emptyText`. */
1214
1231
  emptyText?: string;
1215
- /**
1216
- * Default placeholder text shown when a pipeline group's latest load FAILED
1217
- * (its `items` getter threw). A group's own `failedText` overrides this; both
1218
- * fall back to the localized `common.failedText` (`"Couldn't load items"`).
1219
- */
1232
+ /** A pipeline group's failed-load row (its getter threw); its own `failedText` wins. Default: `common.failedText`. */
1220
1233
  failedText?: string;
1221
1234
  /**
1222
1235
  * Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on
@@ -1252,18 +1265,16 @@ export type BbDropdownProps = BbDropdownPtProps & {
1252
1265
  */
1253
1266
  queryDebounceTime?: number;
1254
1267
  /**
1255
- * The open / close transition in milliseconds. Menus take the fast one
1256
- * (150), not the popovers' medium 250: a menu is picked from and gone, so
1257
- * it answers faster than a panel you read or edit in.
1268
+ * The open / close transition (ms). Menus take the fast 150, not the
1269
+ * popovers' 250: a menu is picked from and gone, quicker than a panel you
1270
+ * read or edit.
1258
1271
  *
1259
1272
  * @defaultValue `150`
1260
1273
  */
1261
1274
  transitionDuration?: number;
1262
1275
  /**
1263
- * Interaction(s) that open the dropdown.
1264
- * Accepts a single trigger or an array to combine them.
1265
- * - `'click'` — left-click / tap (default)
1266
- * - `'contextMenu'` — right-click on desktop, long-press on mobile
1276
+ * What opens the menu, one or an array: `'click'` (left-click / tap) or
1277
+ * `'contextMenu'` (right-click; long-press on mobile).
1267
1278
  *
1268
1279
  * @defaultValue `'click'`
1269
1280
  */
@@ -1277,6 +1288,8 @@ export type BbDropdownProps = BbDropdownPtProps & {
1277
1288
  };
1278
1289
 
1279
1290
  export type BbDropdownEvents = {
1291
+ /** The menu opened or closed (`v-model`): `true` on open, `false` on close. */
1292
+ (e: 'update:modelValue', value: boolean): void;
1280
1293
  /** Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open. */
1281
1294
  (e: 'show'): void;
1282
1295
  /** Emitted once the menu is open and its open transition has finished. */
@@ -1286,9 +1299,9 @@ export type BbDropdownEvents = {
1286
1299
  /** Emitted once the menu has finished closing. */
1287
1300
  (e: 'hidden'): void;
1288
1301
  /**
1289
- * The user selected a row in a selectable group, at the click — also when a
1290
- * controlled companion's app then refuses the value. The payload is the
1291
- * row's value (its `item-value` for pipeline groups, else its `value`).
1302
+ * The user selected a row in a selectable group, at the click, even when a
1303
+ * controlled companion's app then refuses it. Payload: the row's value
1304
+ * (`item-value` for pipeline groups, else `value`).
1292
1305
  */
1293
1306
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- the row's resolved value, whatever a fetched group's `item-value` returns: the dropdown is not generic, and `unknown` would reject a handler annotated `(id: number)`
1294
1307
  (e: 'item:selected', value: any): void;
@@ -1354,6 +1367,20 @@ export type BbDropdownSlotGroup = {
1354
1367
  selectable: boolean;
1355
1368
  };
1356
1369
 
1370
+ /** A `groupBy` heading's slot scope (`BbSelect`'s `#group`). */
1371
+ export type BbDropdownGroupSlotProps = {
1372
+ /** The heading text. */
1373
+ text: string;
1374
+ /** The raw `groupBy` value. */
1375
+ item: unknown;
1376
+ /** The heading's position. */
1377
+ index: number;
1378
+ /** Its row count. */
1379
+ length: number;
1380
+ /** Every row disabled. */
1381
+ disabled: boolean;
1382
+ };
1383
+
1357
1384
  /** Props exposed by the `item:prepend` and `item:append` slots, and named item slots. */
1358
1385
  export type BbDropdownItemSlotProps = {
1359
1386
  /** The item's muted description line, when set. */
@@ -1435,9 +1462,10 @@ export type BbDropdownPlaceholderSlotProps = {
1435
1462
  * @dynamicSlot `<groupId>:item` {BbDropdownItemSlotProps} - The content of every row of that group, and no other; a row's own `#<value>` still wins.
1436
1463
  * @dynamicSlot `<groupId>:item:prepend` {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`.
1437
1464
  * @dynamicSlot `<groupId>:item:append` {BbDropdownItemSlotProps} - The trailing region of every row of that group; replaces their `append:icon`. The check takes its place on the selected row.
1438
- * @dynamicSlot `<groupId>` {BbDropdownItemSlotProps} - That group's title line (the group is passed as `item`, `groupTitle` is `true`).
1465
+ * @dynamicSlot `<groupId>:label` {BbDropdownItemSlotProps} - That group's title content (`item` is the group, `groupTitle` is `true`).
1439
1466
  * @dynamicSlot `<groupId>:prepend` {BbDropdownItemSlotProps} - The leading region of that group's title line.
1440
1467
  * @dynamicSlot `<groupId>:append` {BbDropdownItemSlotProps} - The trailing region of that group's title line.
1468
+ * @dynamicSlot `<groupId>:group` {BbDropdownGroupSlotProps} - That group's `groupBy` headings; beats `group`.
1441
1469
  */
1442
1470
  export type BbDropdownSlots = {
1443
1471
  /**
@@ -1451,9 +1479,9 @@ export type BbDropdownSlots = {
1451
1479
  */
1452
1480
  loading?: (props: BbDropdownPlaceholderSlotProps) => any;
1453
1481
  /**
1454
- * Replaces the default "no data" placeholder row shown in a pipeline group
1455
- * that resolved to no items. Rendered once per empty group. A failed load
1456
- * is not empty: it keeps its own row (the error icon and `failedText`).
1482
+ * Replaces the placeholder row of a pipeline group that resolved to no
1483
+ * items, once per empty group. A failed load is not empty: it keeps its
1484
+ * own row (error icon, `failedText`).
1457
1485
  */
1458
1486
  empty?: (props: BbDropdownPlaceholderSlotProps) => any;
1459
1487
  /**
@@ -1467,13 +1495,13 @@ export type BbDropdownSlots = {
1467
1495
  header?: (props: BbDropdownEdgeSlotProps) => any;
1468
1496
  /**
1469
1497
  * The leading region of every row (and group title line), replacing its
1470
- * `prepend:icon`. A row's own or its group's named slot wins over it.
1498
+ * `prepend:icon` wherever it renders. A named slot wins.
1471
1499
  */
1472
1500
  'item:prepend'?: (props: BbDropdownItemSlotProps) => any;
1473
1501
  /**
1474
- * The trailing region of every row (and group title line), replacing its
1475
- * `append:icon`. A named slot wins over it; the submenu chevron and the
1476
- * check on a selected row take its place.
1502
+ * The trailing region of every row (and group label), replacing its
1503
+ * `append:icon` wherever it renders. A named slot wins; a submenu chevron
1504
+ * or a selected row's check takes its place.
1477
1505
  */
1478
1506
  'item:append'?: (props: BbDropdownItemSlotProps) => any;
1479
1507
  /**
@@ -1481,6 +1509,8 @@ export type BbDropdownSlots = {
1481
1509
  * action buttons.
1482
1510
  */
1483
1511
  footer?: (props: BbDropdownEdgeSlotProps) => any;
1512
+ /** Every group's `groupBy` headings (`BbSelect`'s `#group` scope); `#<groupId>:group` beats it. */
1513
+ group?: (props: BbDropdownGroupSlotProps) => unknown;
1484
1514
  } & Record<string, (props: BbDropdownItemSlotProps) => any>;
1485
1515
 
1486
1516
  /**
@@ -1832,7 +1862,9 @@ export type BbDropdownGroupEvents = {
1832
1862
  margin-top: -1.5px;
1833
1863
  }
1834
1864
 
1835
- .bb-dropdown__group-title {
1865
+ /* A group's label and a `groupBy` heading share the look, not the class. */
1866
+ .bb-dropdown__group-label,
1867
+ .bb-dropdown__group-header {
1836
1868
  align-items: center;
1837
1869
  /* Same token as BbSelectPopover's group headers (for parity), so
1838
1870
  * the two menus can never drift. Muted, not faint: a title is read
@@ -1859,14 +1891,15 @@ export type BbDropdownGroupEvents = {
1859
1891
  }
1860
1892
  }
1861
1893
 
1862
- .group-title__prepend-icon,
1863
- .group-title__append-icon {
1894
+ .group-label__prepend-icon,
1895
+ .group-label__append-icon {
1864
1896
  --size: 14px;
1865
1897
  flex-shrink: 0;
1866
1898
  font-size: 13px;
1867
1899
  }
1868
1900
 
1869
- .group-title__content {
1901
+ .group-label__content,
1902
+ .group-header__content {
1870
1903
  flex: auto;
1871
1904
  min-width: 0;
1872
1905
  overflow: hidden;
@@ -1874,11 +1907,26 @@ export type BbDropdownGroupEvents = {
1874
1907
  white-space: nowrap;
1875
1908
  }
1876
1909
 
1877
- &.bb-dropdown__group-title--variant-destructive {
1910
+ &.bb-dropdown__group-label--variant-destructive {
1878
1911
  color: var(--bb-danger);
1879
1912
  }
1880
1913
  }
1881
1914
 
1915
+ /* `groupBy` headings are sticky, as BbSelect's group headers: the
1916
+ scrolled heading stays pinned while its rows pass under it, over the
1917
+ list's own inset so no row peeks above it. A row focused from the
1918
+ keyboard stops below it, never under it. */
1919
+ .bb-dropdown__group-header {
1920
+ background-color: var(--bg);
1921
+ position: sticky;
1922
+ top: calc(-1 * var(--menu-inset));
1923
+ z-index: 1;
1924
+ }
1925
+
1926
+ .bb-dropdown__group-section .bb-dropdown__item {
1927
+ scroll-margin-top: 1.75rem;
1928
+ }
1929
+
1882
1930
  .bb-dropdown__divider {
1883
1931
  /* Negative inline margins cancel the container padding so the rule
1884
1932
  * spans the full width of the dropdown panel, edge to edge. */
@@ -2043,6 +2091,18 @@ export type BbDropdownGroupEvents = {
2043
2091
  transition: stroke-dashoffset var(--bb-transition-medium)
2044
2092
  var(--bb-ease);
2045
2093
  }
2094
+
2095
+ /* An app's own check glyph (any set, stroked or filled) has no
2096
+ draw-in: it simply appears on the selected row. */
2097
+ &.item__check--own {
2098
+ visibility: hidden;
2099
+
2100
+ path {
2101
+ stroke-dasharray: none;
2102
+ stroke-dashoffset: 0;
2103
+ transition: none;
2104
+ }
2105
+ }
2046
2106
  }
2047
2107
 
2048
2108
  &.bb-dropdown__item--selected {
@@ -2052,6 +2112,10 @@ export type BbDropdownGroupEvents = {
2052
2112
  .item__check path {
2053
2113
  stroke-dashoffset: 0;
2054
2114
  }
2115
+
2116
+ .item__check--own {
2117
+ visibility: visible;
2118
+ }
2055
2119
  }
2056
2120
 
2057
2121
  &.bb-dropdown__item--variant-destructive {
@@ -2166,9 +2230,9 @@ export type BbDropdownGroupEvents = {
2166
2230
 
2167
2231
  /* Flat multi-group sheets: space a following section after the previous
2168
2232
  group's items/search. */
2169
- .bb-dropdown__group-items + .bb-dropdown__group-title,
2170
- .bb-dropdown__group-search + .bb-dropdown__group-title,
2171
- .bb-dropdown__divider + .bb-dropdown__group-title {
2233
+ .bb-dropdown__group-items + .bb-dropdown__group-label,
2234
+ .bb-dropdown__group-search + .bb-dropdown__group-label,
2235
+ .bb-dropdown__divider + .bb-dropdown__group-label {
2172
2236
  margin-top: 0.5rem;
2173
2237
  }
2174
2238
 
@@ -2178,7 +2242,8 @@ export type BbDropdownGroupEvents = {
2178
2242
  header, and repeating it under every group stacked like extra chrome.
2179
2243
  Nested drills with `hideLabel` skip this entirely; the drill nav title is
2180
2244
  already that label. */
2181
- .bb-dropdown__group-title {
2245
+ .bb-dropdown__group-label,
2246
+ .bb-dropdown__group-header {
2182
2247
  align-items: center;
2183
2248
  border-bottom: 0;
2184
2249
  color: var(--bb-text);
@@ -2193,7 +2258,8 @@ export type BbDropdownGroupEvents = {
2193
2258
  same way City sits above its field. */
2194
2259
  padding: 0.25rem 0 calc(var(--py, var(--bb-panel-p)) - 6px);
2195
2260
 
2196
- .group-title__content {
2261
+ .group-label__content,
2262
+ .group-header__content {
2197
2263
  flex: 1 1 auto;
2198
2264
  line-height: normal;
2199
2265
  overflow-x: clip;
@@ -2201,8 +2267,8 @@ export type BbDropdownGroupEvents = {
2201
2267
  text-align: center;
2202
2268
  }
2203
2269
 
2204
- .group-title__prepend-icon,
2205
- .group-title__append-icon {
2270
+ .group-label__prepend-icon,
2271
+ .group-label__append-icon {
2206
2272
  --size: 1.25rem;
2207
2273
  font-size: var(--size);
2208
2274
  }
@@ -2220,7 +2286,7 @@ export type BbDropdownGroupEvents = {
2220
2286
 
2221
2287
  &.bb-offcanvas--no-header
2222
2288
  .bb-dropdown__list
2223
- > .bb-dropdown__group-title:first-child {
2289
+ > .bb-dropdown__group-label:first-child {
2224
2290
  padding-top: 0;
2225
2291
  }
2226
2292
 
@@ -2521,4 +2587,29 @@ export type BbDropdownGroupEvents = {
2521
2587
  .bb-dropdown__panel--reserve-check .bb-dropdown__item:has(.item__check) {
2522
2588
  padding-inline-end: calc(6px + var(--check-w, var(--icon-size)) + 4px);
2523
2589
  }
2590
+
2591
+ /* A root-level group's failed load, drawn next to
2592
+ the menu by DropdownFailures.vue: the destructive alert's voice, as the
2593
+ in-menu row it replaces, then "Try again". Its own divider only when rows
2594
+ sit above it; otherwise the search field's is the one divider. */
2595
+ .bb-dropdown .bb-dropdown__failed {
2596
+ align-items: center;
2597
+ color: var(--bb-danger);
2598
+ column-gap: 8px;
2599
+ display: flex;
2600
+ line-height: 1.2;
2601
+ min-height: 28px;
2602
+ padding: 2px calc(6px + var(--menu-inset, 4px)) var(--menu-inset, 4px);
2603
+
2604
+ .bb-dropdown__placeholder-icon {
2605
+ --size: 1rem;
2606
+ flex: none;
2607
+ /* The seat measured level against the text (see the listbox footer). */
2608
+ margin-top: -1.5px;
2609
+ }
2610
+ }
2611
+
2612
+ .bb-dropdown .bb-dropdown__list:has(.bb-dropdown__item) ~ .bb-dropdown__failed {
2613
+ border-top: var(--bb-border-w) solid var(--bb-border);
2614
+ }
2524
2615
  ```