bitboss-ui 3.0.0-beta.4 → 3.0.0-beta.41

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 (937) hide show
  1. package/README.md +317 -98
  2. package/bin/bitboss-ui-mcp.mjs +1566 -75
  3. package/bin/bitboss-ui.mjs +716 -72
  4. package/dist/ai/BbAccordion.md +178 -56
  5. package/dist/ai/BbAlert.md +140 -28
  6. package/dist/ai/BbAsterisk.md +61 -4
  7. package/dist/ai/BbAvatar.md +194 -53
  8. package/dist/ai/BbBadge.md +250 -50
  9. package/dist/ai/BbBadgeButton.md +74 -21
  10. package/dist/ai/BbBaseButton.md +132 -51
  11. package/dist/ai/BbBaseCheckboxIcon.md +118 -26
  12. package/dist/ai/BbBaseRadioIcon.md +115 -26
  13. package/dist/ai/BbBaseSwitchIcon.md +123 -28
  14. package/dist/ai/BbBreadcrumbs.md +221 -51
  15. package/dist/ai/BbButton.md +389 -107
  16. package/dist/ai/BbCalendar.md +667 -0
  17. package/dist/ai/BbCheckbox.md +242 -80
  18. package/dist/ai/BbCheckboxGroup.md +575 -66
  19. package/dist/ai/BbCollapsible.md +158 -39
  20. package/dist/ai/BbColorInput.md +322 -82
  21. package/dist/ai/BbColorPalette.md +261 -61
  22. package/dist/ai/BbConfirm.md +220 -51
  23. package/dist/ai/BbConfirmPortal.md +1 -1
  24. package/dist/ai/BbDatePicker.md +272 -37
  25. package/dist/ai/BbDatePickerInput.md +321 -92
  26. package/dist/ai/BbDialog.md +492 -87
  27. package/dist/ai/BbDropdown.md +1182 -104
  28. package/dist/ai/BbDropdownButton.md +239 -61
  29. package/dist/ai/BbDropdownGroup.md +5 -5
  30. package/dist/ai/BbDropzone.md +140 -36
  31. package/dist/ai/BbForm.md +1165 -40
  32. package/dist/ai/BbIcon.md +100 -33
  33. package/dist/ai/BbIndicator.md +79 -12
  34. package/dist/ai/BbNumberInput.md +257 -87
  35. package/dist/ai/BbOffCanvas.md +396 -91
  36. package/dist/ai/BbPagination.md +199 -32
  37. package/dist/ai/BbPopover.md +219 -54
  38. package/dist/ai/BbProgress.md +137 -71
  39. package/dist/ai/BbPtScope.md +136 -0
  40. package/dist/ai/BbRadio.md +234 -43
  41. package/dist/ai/BbRadioGroup.md +529 -91
  42. package/dist/ai/BbRating.md +243 -61
  43. package/dist/ai/BbSelect.md +690 -120
  44. package/dist/ai/BbSelectPopover.md +434 -122
  45. package/dist/ai/BbSlider.md +275 -79
  46. package/dist/ai/BbSmoothHeight.md +142 -34
  47. package/dist/ai/BbSpinner.md +179 -81
  48. package/dist/ai/BbSwitch.md +249 -63
  49. package/dist/ai/BbSwitchGroup.md +394 -65
  50. package/dist/ai/BbTable.md +1666 -222
  51. package/dist/ai/BbTabs.md +898 -178
  52. package/dist/ai/BbTabsList.md +81 -7
  53. package/dist/ai/BbTabsPanels.md +77 -0
  54. package/dist/ai/BbTabsRoot.md +16 -15
  55. package/dist/ai/BbTag.md +256 -76
  56. package/dist/ai/BbTextInput.md +480 -102
  57. package/dist/ai/BbTextarea.md +310 -96
  58. package/dist/ai/BbTimePicker.md +159 -24
  59. package/dist/ai/BbTimePickerInput.md +277 -46
  60. package/dist/ai/BbToast.md +286 -40
  61. package/dist/ai/BbToastPortal.md +3 -3
  62. package/dist/ai/BbTooltip.md +187 -34
  63. package/dist/ai/BbTree.md +260 -85
  64. package/dist/ai/ChipsBox.md +43 -2
  65. package/dist/ai/ClearableButton.md +12 -0
  66. package/dist/ai/CommaBox.md +2 -1
  67. package/dist/ai/CommonField.md +63 -0
  68. package/dist/ai/CommonFieldInput.md +90 -0
  69. package/dist/ai/CommonPopover.md +17 -12
  70. package/dist/ai/CommonTimeSelector.md +63 -0
  71. package/dist/ai/ErrorIcon.md +20 -0
  72. package/dist/ai/FlatListBox.md +41 -11
  73. package/dist/ai/GroupedListBox.md +42 -12
  74. package/dist/ai/ListBox.md +46 -11
  75. package/dist/ai/OptionsContainer.md +13 -10
  76. package/dist/ai/WarningIcon.md +20 -0
  77. package/dist/ai/changelog.json +4025 -141
  78. package/dist/ai/components.json +51872 -10136
  79. package/dist/ai/composables/useBbConfig.md +72 -11
  80. package/dist/ai/composables/useBbDropdownContext.md +168 -0
  81. package/dist/ai/composables/useBbFormContext.md +51 -24
  82. package/dist/ai/composables/useBbFormField.md +134 -0
  83. package/dist/ai/composables/useBbTableContext.md +41 -19
  84. package/dist/ai/composables/useConfirm.md +16 -8
  85. package/dist/ai/composables/useCountdown.md +1 -1
  86. package/dist/ai/composables/useId.md +10 -10
  87. package/dist/ai/composables/useMobile.md +17 -10
  88. package/dist/ai/composables/useToast.md +25 -19
  89. package/dist/ai/design-tokens.json +940 -0
  90. package/dist/ai/design-tokens.manifest.yaml +175 -0
  91. package/dist/ai/guides/agent-contract.md +168 -22
  92. package/dist/ai/guides/ai-router.md +79 -40
  93. package/dist/ai/guides/app-layout.md +8 -4
  94. package/dist/ai/guides/coherence-playbook.md +8 -8
  95. package/dist/ai/guides/component-picker.md +42 -34
  96. package/dist/ai/guides/design-language.md +274 -97
  97. package/dist/ai/guides/design-tokens.md +493 -105
  98. package/dist/ai/guides/fetch-items-playbook.md +22 -16
  99. package/dist/ai/guides/icons-policy.md +67 -35
  100. package/dist/ai/guides/inertia-helpers.md +4 -1
  101. package/dist/ai/guides/inline-edit-playbook.md +13 -6
  102. package/dist/ai/guides/installation-and-plugin-setup.md +817 -73
  103. package/dist/ai/guides/migration/components/bb-accordion.md +37 -0
  104. package/dist/ai/guides/migration/components/bb-alert.md +2 -2
  105. package/dist/ai/guides/migration/components/bb-avatar.md +13 -14
  106. package/dist/ai/guides/migration/components/bb-badge.md +5 -5
  107. package/dist/ai/guides/migration/components/bb-breadcrumbs.md +9 -8
  108. package/dist/ai/guides/migration/components/bb-button.md +80 -20
  109. package/dist/ai/guides/migration/components/bb-checkbox-group.md +116 -29
  110. package/dist/ai/guides/migration/components/bb-checkbox.md +53 -10
  111. package/dist/ai/guides/migration/components/bb-chip.md +6 -6
  112. package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
  113. package/dist/ai/guides/migration/components/bb-color-input.md +5 -5
  114. package/dist/ai/guides/migration/components/bb-color-palette.md +16 -9
  115. package/dist/ai/guides/migration/components/bb-date-picker-input.md +45 -35
  116. package/dist/ai/guides/migration/components/bb-dialog.md +69 -36
  117. package/dist/ai/guides/migration/components/bb-dropdown-button.md +7 -1
  118. package/dist/ai/guides/migration/components/bb-dropdown.md +31 -8
  119. package/dist/ai/guides/migration/components/bb-dropzone.md +8 -0
  120. package/dist/ai/guides/migration/components/bb-icon.md +7 -7
  121. package/dist/ai/guides/migration/components/bb-intersection.md +1 -1
  122. package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -31
  123. package/dist/ai/guides/migration/components/bb-pagination.md +10 -0
  124. package/dist/ai/guides/migration/components/bb-popover.md +19 -11
  125. package/dist/ai/guides/migration/components/bb-radio-group.md +14 -0
  126. package/dist/ai/guides/migration/components/bb-rating.md +61 -24
  127. package/dist/ai/guides/migration/components/bb-select-popover.md +9 -1
  128. package/dist/ai/guides/migration/components/bb-select.md +21 -4
  129. package/dist/ai/guides/migration/components/bb-slider.md +14 -6
  130. package/dist/ai/guides/migration/components/bb-switch-group.md +14 -0
  131. package/dist/ai/guides/migration/components/bb-table.md +574 -33
  132. package/dist/ai/guides/migration/components/bb-tabs.md +91 -41
  133. package/dist/ai/guides/migration/components/bb-tag.md +9 -7
  134. package/dist/ai/guides/migration/components/bb-text-input.md +12 -12
  135. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  136. package/dist/ai/guides/migration/components/bb-tooltip.md +18 -0
  137. package/dist/ai/guides/migration/components/bb-tree.md +11 -9
  138. package/dist/ai/guides/migration/components/use-confirm.md +9 -1
  139. package/dist/ai/guides/migration/v2-to-v3.md +828 -240
  140. package/dist/ai/guides/migration/v3-beta-css-classes.md +751 -0
  141. package/dist/ai/guides/migration/v3-beta-tooling.md +119 -0
  142. package/dist/ai/guides/options-items-playbook.md +161 -12
  143. package/dist/ai/guides/page-shell.md +1 -1
  144. package/dist/ai/guides/passthrough.md +958 -0
  145. package/dist/ai/guides/preset-components.md +361 -0
  146. package/dist/ai/guides/ssr-prefill.md +127 -0
  147. package/dist/ai/guides/validated-forms.md +466 -55
  148. package/dist/ai/guides/validation-libraries.md +171 -0
  149. package/dist/ai/guides/validation-providers.md +113 -0
  150. package/dist/ai/index.md +45 -44
  151. package/dist/ai/recipes/inertia/approvals-inbox.md +26 -10
  152. package/dist/ai/recipes/inertia/command-palette.md +2 -2
  153. package/dist/ai/recipes/inertia/inline-edit-workspace.md +46 -30
  154. package/dist/ai/recipes/inertia/layout-scaffold.md +6 -2
  155. package/dist/ai/recipes/inertia/onboarding.md +30 -8
  156. package/dist/ai/recipes/inertia/ownership-atlas.md +72 -49
  157. package/dist/ai/recipes/inertia/record-form.md +53 -19
  158. package/dist/ai/recipes/inertia/records-workspace.md +201 -49
  159. package/dist/ai/recipes/inertia/settings-workspace.md +3809 -0
  160. package/dist/ai/recipes/inertia/upload-center.md +54 -43
  161. package/dist/ai/recipes/inertia/wizard-form.md +98 -14
  162. package/dist/ai/recipes/nuxt/approvals-inbox.md +26 -10
  163. package/dist/ai/recipes/nuxt/command-palette.md +2 -2
  164. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +68 -52
  165. package/dist/ai/recipes/nuxt/layout-scaffold.md +6 -2
  166. package/dist/ai/recipes/nuxt/onboarding.md +30 -8
  167. package/dist/ai/recipes/nuxt/record-form.md +66 -22
  168. package/dist/ai/recipes/nuxt/records-workspace.md +199 -48
  169. package/dist/ai/recipes/nuxt/settings-workspace.md +3898 -0
  170. package/dist/ai/recipes/nuxt/upload-center.md +52 -41
  171. package/dist/ai/recipes/nuxt/wizard-form.md +98 -14
  172. package/dist/ai/recipes/vue/approvals-inbox.md +28 -12
  173. package/dist/ai/recipes/vue/command-palette.md +2 -2
  174. package/dist/ai/recipes/vue/inline-edit-workspace.md +69 -53
  175. package/dist/ai/recipes/vue/layout-scaffold.md +6 -2
  176. package/dist/ai/recipes/vue/onboarding.md +32 -8
  177. package/dist/ai/recipes/vue/record-form.md +81 -54
  178. package/dist/ai/recipes/vue/records-workspace.md +198 -49
  179. package/dist/ai/recipes/vue/settings-workspace.md +3836 -0
  180. package/dist/ai/recipes/vue/upload-center.md +53 -42
  181. package/dist/ai/recipes/vue/wizard-form.md +97 -14
  182. package/dist/ai/source/BbAccordion.md +90 -24
  183. package/dist/ai/source/BbAlert.md +209 -62
  184. package/dist/ai/source/BbAsterisk.md +54 -4
  185. package/dist/ai/source/BbAvatar.md +73 -16
  186. package/dist/ai/source/BbBadge.md +265 -97
  187. package/dist/ai/source/BbBadgeButton.md +218 -79
  188. package/dist/ai/source/BbBaseButton.md +108 -12
  189. package/dist/ai/source/BbBaseCheckboxIcon.md +151 -36
  190. package/dist/ai/source/BbBaseRadioIcon.md +121 -17
  191. package/dist/ai/source/BbBaseSwitchIcon.md +138 -28
  192. package/dist/ai/source/BbBreadcrumbs.md +363 -69
  193. package/dist/ai/source/BbButton.md +563 -174
  194. package/dist/ai/source/BbCalendar.md +1744 -0
  195. package/dist/ai/source/BbCheckbox.md +470 -68
  196. package/dist/ai/source/BbCheckboxGroup.md +976 -95
  197. package/dist/ai/source/BbCollapsible.md +96 -8
  198. package/dist/ai/source/BbColorInput.md +597 -67
  199. package/dist/ai/source/BbColorPalette.md +1284 -65
  200. package/dist/ai/source/BbConfirm.md +149 -7
  201. package/dist/ai/source/BbConfirmPortal.md +89 -3
  202. package/dist/ai/source/BbDatePicker.md +527 -381
  203. package/dist/ai/source/BbDatePickerInput.md +2015 -118
  204. package/dist/ai/source/BbDialog.md +531 -64
  205. package/dist/ai/source/BbDropdown.md +885 -175
  206. package/dist/ai/source/BbDropdownButton.md +377 -79
  207. package/dist/ai/source/BbDropdownGroup.md +687 -96
  208. package/dist/ai/source/BbDropzone.md +140 -31
  209. package/dist/ai/source/BbForm.md +875 -17
  210. package/dist/ai/source/BbIcon.md +130 -52
  211. package/dist/ai/source/BbIndicator.md +117 -60
  212. package/dist/ai/source/BbNumberInput.md +667 -84
  213. package/dist/ai/source/BbOffCanvas.md +1007 -261
  214. package/dist/ai/source/BbPagination.md +203 -31
  215. package/dist/ai/source/BbPopover.md +267 -90
  216. package/dist/ai/source/BbProgress.md +88 -26
  217. package/dist/ai/source/BbPtScope.md +54 -0
  218. package/dist/ai/source/BbRadio.md +388 -58
  219. package/dist/ai/source/BbRadioGroup.md +940 -109
  220. package/dist/ai/source/BbRating.md +736 -84
  221. package/dist/ai/source/BbSelect.md +1096 -96
  222. package/dist/ai/source/BbSelectPopover.md +807 -114
  223. package/dist/ai/source/BbSlider.md +1390 -98
  224. package/dist/ai/source/BbSmoothHeight.md +48 -2
  225. package/dist/ai/source/BbSpinner.md +62 -6
  226. package/dist/ai/source/BbSwitch.md +297 -60
  227. package/dist/ai/source/BbSwitchGroup.md +761 -83
  228. package/dist/ai/source/BbTable.md +6950 -1864
  229. package/dist/ai/source/BbTabs.md +368 -111
  230. package/dist/ai/source/BbTabsList.md +503 -146
  231. package/dist/ai/source/BbTabsPanels.md +625 -0
  232. package/dist/ai/source/BbTabsRoot.md +319 -100
  233. package/dist/ai/source/BbTag.md +796 -87
  234. package/dist/ai/source/BbTextInput.md +497 -68
  235. package/dist/ai/source/BbTextarea.md +550 -65
  236. package/dist/ai/source/BbTimePicker.md +395 -69
  237. package/dist/ai/source/BbTimePickerInput.md +1233 -106
  238. package/dist/ai/source/BbToast.md +250 -74
  239. package/dist/ai/source/BbToastPortal.md +210 -66
  240. package/dist/ai/source/BbTooltip.md +181 -30
  241. package/dist/ai/source/BbTree.md +76 -11
  242. package/dist/ai/source/ChipsBox.md +25 -5
  243. package/dist/ai/source/CommaBox.md +21 -6
  244. package/dist/ai/source/{BbBaseInputContainer.md → CommonField.md} +467 -250
  245. package/dist/ai/source/CommonFieldInput.md +848 -0
  246. package/dist/ai/source/CommonPopover.md +116 -30
  247. package/dist/ai/source/CommonTimeSelector.md +726 -0
  248. package/dist/ai/source/ErrorIcon.md +2 -2
  249. package/dist/ai/source/FlatListBox.md +188 -17
  250. package/dist/ai/source/GroupedListBox.md +236 -44
  251. package/dist/ai/source/GuidesComponent.md +14 -7
  252. package/dist/ai/source/ListBox.md +46 -8
  253. package/dist/ai/source/OptionsContainer.md +288 -60
  254. package/dist/ai/source/WarningIcon.md +2 -2
  255. package/dist/assets/css/reset.css_inline.js +1 -1
  256. package/dist/assets/svgs/star.svg_raw.js +4 -0
  257. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +49 -32
  258. package/dist/components/BbAccordion/types.d.ts +35 -3
  259. package/dist/components/BbAccordion/types.js +11 -0
  260. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +46 -30
  261. package/dist/components/BbAlert/types.d.ts +37 -3
  262. package/dist/components/BbAlert/types.js +13 -0
  263. package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -1
  264. package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +23 -8
  265. package/dist/components/BbAsterisk/types.d.ts +18 -0
  266. package/dist/components/BbAsterisk/types.js +7 -0
  267. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
  268. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +57 -44
  269. package/dist/components/BbAvatar/types.d.ts +23 -0
  270. package/dist/components/BbAvatar/types.js +7 -0
  271. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -18
  272. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +96 -53
  273. package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +27 -8
  274. package/dist/components/BbBadge/badgeButtonContext.d.ts +25 -8
  275. package/dist/components/BbBadge/types.d.ts +46 -3
  276. package/dist/components/BbBadge/types.js +13 -0
  277. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +109 -96
  278. package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +11 -11
  279. package/dist/components/BbBaseButton/types.d.ts +33 -3
  280. package/dist/components/BbBaseButton/types.js +9 -2
  281. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +50 -18
  282. package/dist/components/BbBaseCheckboxIcon/types.d.ts +31 -2
  283. package/dist/components/BbBaseCheckboxIcon/types.js +8 -0
  284. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +45 -15
  285. package/dist/components/BbBaseRadioIcon/types.d.ts +31 -2
  286. package/dist/components/BbBaseRadioIcon/types.js +8 -0
  287. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +48 -16
  288. package/dist/components/BbBaseSwitchIcon/types.d.ts +31 -2
  289. package/dist/components/BbBaseSwitchIcon/types.js +8 -0
  290. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +187 -132
  291. package/dist/components/BbBreadcrumbs/types.d.ts +45 -3
  292. package/dist/components/BbBreadcrumbs/types.js +12 -0
  293. package/dist/components/BbButton/BbButton.vue.d.ts +5 -0
  294. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +107 -81
  295. package/dist/components/BbButton/types.d.ts +113 -2
  296. package/dist/components/BbButton/types.js +12 -0
  297. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +34 -0
  298. package/dist/components/BbCalendar/BbCalendar.vue.js +6 -0
  299. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +608 -0
  300. package/dist/components/BbCalendar/CalendarMonthPanel.vue.js +5 -0
  301. package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +124 -0
  302. package/dist/components/BbCalendar/CalendarYearPanel.vue.js +5 -0
  303. package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +126 -0
  304. package/dist/components/BbCalendar/calendarHost.d.ts +29 -0
  305. package/dist/components/BbCalendar/calendarHost.js +10 -0
  306. package/dist/components/BbCalendar/types.d.ts +225 -0
  307. package/dist/components/BbCalendar/types.js +29 -0
  308. package/dist/components/{BbBaseDatePicker/useDatePickerContext.d.ts → BbCalendar/useCalendarContext.d.ts} +10 -7
  309. package/dist/components/BbCalendar/useCalendarContext.js +11 -0
  310. package/dist/components/BbCalendar/useCalendarGrid.d.ts +208 -0
  311. package/dist/components/BbCalendar/useCalendarGrid.js +274 -0
  312. package/dist/components/BbCalendar/useDayGrid.d.ts +79 -0
  313. package/dist/components/BbCalendar/useDayGrid.js +204 -0
  314. package/dist/components/BbCalendar/useToday.d.ts +23 -0
  315. package/dist/components/BbCalendar/useToday.js +21 -0
  316. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +7 -7
  317. package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +214 -72
  318. package/dist/components/BbCheckbox/types.d.ts +180 -13
  319. package/dist/components/BbCheckbox/types.js +8 -0
  320. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +15 -3
  321. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +338 -90
  322. package/dist/components/BbCheckboxGroup/types.d.ts +195 -20
  323. package/dist/components/BbCheckboxGroup/types.js +10 -0
  324. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
  325. package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +41 -19
  326. package/dist/components/BbCollapsible/types.d.ts +44 -1
  327. package/dist/components/BbCollapsible/types.js +7 -0
  328. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +17 -7
  329. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +330 -86
  330. package/dist/components/BbColorInput/types.d.ts +230 -12
  331. package/dist/components/BbColorInput/types.js +24 -0
  332. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +10 -2
  333. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +515 -108
  334. package/dist/components/BbColorPalette/types.d.ts +76 -7
  335. package/dist/components/BbColorPalette/types.js +12 -0
  336. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +2 -1
  337. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +125 -76
  338. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -0
  339. package/dist/components/BbConfirm/types.d.ts +49 -0
  340. package/dist/components/BbConfirm/types.js +17 -0
  341. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -10
  342. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +320 -223
  343. package/dist/components/BbDatePicker/types.d.ts +111 -17
  344. package/dist/components/BbDatePicker/types.js +33 -0
  345. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -4
  346. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +1172 -87
  347. package/dist/components/BbDatePickerInput/types.d.ts +224 -19
  348. package/dist/components/BbDatePickerInput/types.js +39 -0
  349. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -3
  350. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +227 -136
  351. package/dist/components/BbDialog/types.d.ts +92 -3
  352. package/dist/components/BbDialog/types.js +16 -0
  353. package/dist/components/BbDialog/useDialogStack.d.ts +12 -0
  354. package/dist/components/BbDialog/useDialogStack.js +9 -2
  355. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
  356. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +108 -96
  357. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +10 -2
  358. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +337 -268
  359. package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +5 -1
  360. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +8 -2
  361. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +377 -293
  362. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +129 -118
  363. package/dist/components/BbDropdown/normalizeGroups.js +55 -31
  364. package/dist/components/BbDropdown/types.d.ts +288 -30
  365. package/dist/components/BbDropdown/types.js +21 -2
  366. package/dist/components/BbDropdown/useDropdownContext.d.ts +10 -4
  367. package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +1 -0
  368. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +18 -3
  369. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +172 -40
  370. package/dist/components/BbDropdownButton/types.d.ts +137 -8
  371. package/dist/components/BbDropdownButton/types.js +35 -0
  372. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +2 -2
  373. package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +186 -144
  374. package/dist/components/BbDropzone/types.d.ts +38 -4
  375. package/dist/components/BbDropzone/types.js +16 -0
  376. package/dist/components/BbForm/BbForm.vue.d.ts +94 -0
  377. package/dist/{validated → components/BbForm}/BbForm.vue.js +1 -1
  378. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +317 -0
  379. package/dist/components/BbForm/BbFormCustomField.d.ts +14 -0
  380. package/dist/components/BbForm/BbFormCustomField.js +43 -0
  381. package/dist/components/BbForm/bindFormField.d.ts +16 -0
  382. package/dist/components/BbForm/bindFormField.js +85 -0
  383. package/dist/components/BbForm/formFields.d.ts +64 -0
  384. package/dist/components/BbForm/formFields.js +11 -0
  385. package/dist/components/BbForm/formSchema.d.ts +56 -0
  386. package/dist/components/BbForm/formSchema.js +196 -0
  387. package/dist/components/BbForm/standardSchema.d.ts +59 -0
  388. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +58 -48
  389. package/dist/components/BbIcon/iconCache.d.ts +63 -0
  390. package/dist/components/BbIcon/iconCache.js +35 -0
  391. package/dist/components/BbIcon/types.d.ts +22 -2
  392. package/dist/components/BbIcon/types.js +7 -0
  393. package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +34 -21
  394. package/dist/components/BbIndicator/types.d.ts +24 -0
  395. package/dist/components/BbIndicator/types.js +7 -0
  396. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -8
  397. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +308 -85
  398. package/dist/components/BbNumberInput/types.d.ts +201 -18
  399. package/dist/components/BbNumberInput/types.js +8 -0
  400. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -3
  401. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +311 -210
  402. package/dist/components/BbOffCanvas/types.d.ts +79 -6
  403. package/dist/components/BbOffCanvas/types.js +15 -0
  404. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  405. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +125 -90
  406. package/dist/components/BbPagination/types.d.ts +38 -0
  407. package/dist/components/BbPagination/types.js +13 -0
  408. package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
  409. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +219 -179
  410. package/dist/components/BbPopover/types.d.ts +51 -5
  411. package/dist/components/BbPopover/types.js +14 -0
  412. package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +29 -16
  413. package/dist/components/BbProgress/types.d.ts +25 -0
  414. package/dist/components/BbProgress/types.js +7 -0
  415. package/dist/components/BbPtScope/BbPtScope.vue.d.ts +12 -0
  416. package/dist/components/BbPtScope/BbPtScope.vue.js +5 -0
  417. package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +13 -0
  418. package/dist/components/BbPtScope/types.d.ts +15 -0
  419. package/dist/components/BbRadio/BbRadio.vue.d.ts +7 -7
  420. package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +172 -59
  421. package/dist/components/BbRadio/types.d.ts +152 -13
  422. package/dist/components/BbRadio/types.js +8 -0
  423. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +14 -2
  424. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +319 -92
  425. package/dist/components/BbRadioGroup/types.d.ts +198 -22
  426. package/dist/components/BbRadioGroup/types.js +10 -0
  427. package/dist/components/BbRating/BbRating.vue.d.ts +10 -8
  428. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +259 -78
  429. package/dist/components/BbRating/types.d.ts +174 -13
  430. package/dist/components/BbRating/types.js +21 -0
  431. package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -3
  432. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +553 -83
  433. package/dist/components/BbSelect/types.d.ts +235 -20
  434. package/dist/components/BbSelect/types.js +41 -0
  435. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +15 -1
  436. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +541 -391
  437. package/dist/components/BbSelectPopover/types.d.ts +124 -8
  438. package/dist/components/BbSelectPopover/types.js +24 -0
  439. package/dist/components/BbSlider/BbSlider.vue.d.ts +13 -8
  440. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +472 -96
  441. package/dist/components/BbSlider/types.d.ts +202 -13
  442. package/dist/components/BbSlider/types.js +26 -0
  443. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
  444. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +60 -48
  445. package/dist/components/BbSmoothHeight/types.d.ts +19 -0
  446. package/dist/components/BbSmoothHeight/types.js +7 -0
  447. package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +27 -14
  448. package/dist/components/BbSpinner/types.d.ts +22 -1
  449. package/dist/components/BbSpinner/types.js +7 -0
  450. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +7 -7
  451. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +220 -78
  452. package/dist/components/BbSwitch/types.d.ts +25 -10
  453. package/dist/components/BbSwitch/types.js +5 -0
  454. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +14 -2
  455. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +338 -90
  456. package/dist/components/BbSwitchGroup/types.d.ts +30 -7
  457. package/dist/components/BbSwitchGroup/types.js +5 -0
  458. package/dist/components/BbTable/BbTable.vue.d.ts +27 -6
  459. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +2013 -685
  460. package/dist/components/BbTable/BbTableDataRow.d.ts +196 -0
  461. package/dist/components/BbTable/BbTableDataRow.js +151 -0
  462. package/dist/components/BbTable/BbTableExpandRow.d.ts +84 -0
  463. package/dist/components/BbTable/BbTableExpandRow.js +62 -0
  464. package/dist/components/BbTable/BbTableSelectToggle.d.ts +120 -0
  465. package/dist/components/BbTable/BbTableSelectToggle.js +122 -0
  466. package/dist/components/BbTable/gridWidgets.d.ts +30 -0
  467. package/dist/components/BbTable/gridWidgets.js +14 -0
  468. package/dist/components/BbTable/types.d.ts +473 -123
  469. package/dist/components/BbTable/types.js +31 -0
  470. package/dist/components/BbTable/utils.d.ts +145 -4
  471. package/dist/components/BbTable/utils.js +154 -37
  472. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -1
  473. package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +62 -26
  474. package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -10
  475. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +143 -81
  476. package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +12 -0
  477. package/dist/components/{BbBaseSwitch/BbBaseSwitch.vue.js → BbTabs/BbTabsPanels.vue.js} +2 -2
  478. package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +59 -0
  479. package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +3 -1
  480. package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +2 -1
  481. package/dist/components/BbTabs/types.d.ts +183 -23
  482. package/dist/components/BbTabs/types.js +34 -0
  483. package/dist/components/BbTag/BbTag.vue.d.ts +13 -10
  484. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +383 -92
  485. package/dist/components/BbTag/types.d.ts +139 -14
  486. package/dist/components/BbTag/types.js +22 -0
  487. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -8
  488. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +257 -84
  489. package/dist/components/BbTextInput/types.d.ts +168 -13
  490. package/dist/components/BbTextInput/types.js +8 -0
  491. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +7 -7
  492. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +291 -94
  493. package/dist/components/BbTextarea/types.d.ts +158 -14
  494. package/dist/components/BbTextarea/types.js +8 -0
  495. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -4
  496. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +199 -122
  497. package/dist/components/BbTimePicker/types.d.ts +94 -7
  498. package/dist/components/BbTimePicker/types.js +18 -0
  499. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +14 -4
  500. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +749 -86
  501. package/dist/components/BbTimePickerInput/types.d.ts +171 -22
  502. package/dist/components/BbTimePickerInput/types.js +25 -0
  503. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +63 -25
  504. package/dist/components/BbToast/BbToastMessage.vue.d.ts +4 -1
  505. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -76
  506. package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -0
  507. package/dist/components/BbToast/BbToastRegion.vue.d.ts +4 -1
  508. package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +72 -64
  509. package/dist/components/BbToast/types.d.ts +54 -1
  510. package/dist/components/BbToast/types.js +28 -0
  511. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +104 -87
  512. package/dist/components/BbTooltip/types.d.ts +40 -2
  513. package/dist/components/BbTooltip/types.js +7 -0
  514. package/dist/components/BbTree/BbTree.vue.d.ts +15 -3
  515. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +51 -29
  516. package/dist/components/BbTree/BbTreeLevel.vue.d.ts +1 -1
  517. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +17 -16
  518. package/dist/components/BbTree/context.d.ts +9 -1
  519. package/dist/components/BbTree/types.d.ts +40 -5
  520. package/dist/components/BbTree/types.js +7 -0
  521. package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +46 -44
  522. package/dist/components/ChipsBox/types.d.ts +7 -0
  523. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
  524. package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +11 -7
  525. package/dist/components/CommaBox/types.d.ts +7 -0
  526. package/dist/components/{BbBaseInputContainer/BbBaseInputContainer.vue.d.ts → CommonField/CommonField.vue.d.ts} +5 -5
  527. package/dist/components/{BbBaseRadio/BbBaseRadio.vue.js → CommonField/CommonField.vue.js} +2 -2
  528. package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +189 -0
  529. package/dist/components/CommonField/messageHeightMatrix.d.ts +2 -0
  530. package/dist/components/{BbBaseInputContainer → CommonField}/types.d.ts +52 -16
  531. package/dist/components/{CommonInputWrapper/CommonInputWrapper.vue.d.ts → CommonFieldInput/CommonFieldInput.vue.d.ts} +5 -4
  532. package/dist/components/{BbBaseRadioGroup/BbBaseRadioGroup.vue.js → CommonFieldInput/CommonFieldInput.vue.js} +2 -2
  533. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +120 -0
  534. package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +10 -0
  535. package/dist/components/{CommonInputWrapper → CommonFieldInput}/types.d.ts +27 -8
  536. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +11 -2
  537. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +76 -63
  538. package/dist/components/CommonPopover/types.d.ts +27 -8
  539. package/dist/components/{BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts → CommonTimeSelector/CommonTimeSelector.vue.d.ts} +21 -2
  540. package/dist/components/{BbBaseColorPalette/BbBaseColorPalette.vue.js → CommonTimeSelector/CommonTimeSelector.vue.js} +2 -2
  541. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +232 -0
  542. package/dist/components/CommonTimeSelector/types.d.ts +6 -0
  543. package/dist/components/FlatListBox/FlatListBox.vue.d.ts +5 -1
  544. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +165 -95
  545. package/dist/components/FlatListBox/types.d.ts +24 -2
  546. package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +5 -1
  547. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +217 -134
  548. package/dist/components/GroupedListBox/types.d.ts +24 -2
  549. package/dist/components/ListBox/ListBox.vue.d.ts +5 -1
  550. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +95 -69
  551. package/dist/components/ListBox/types.d.ts +24 -2
  552. package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -1
  553. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +109 -37
  554. package/dist/components/OptionsContainer/types.d.ts +53 -9
  555. package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +8 -8
  556. package/dist/components/Transitions/Slide.vue.js +1 -1
  557. package/dist/composables/useBaseOptions.d.ts +12 -1
  558. package/dist/composables/useBaseOptions.js +77 -37
  559. package/dist/composables/useBbConfig.d.ts +27 -6
  560. package/dist/composables/useBbConfig.js +8 -2
  561. package/dist/composables/useBbDropdownContext.d.ts +5 -0
  562. package/dist/composables/useBbFormContext.d.ts +131 -8
  563. package/dist/composables/useBbFormContext.js +49 -30
  564. package/dist/composables/useBbFormField.d.ts +40 -0
  565. package/dist/composables/useBbFormField.js +39 -0
  566. package/dist/composables/useBbTableContext.d.ts +45 -1
  567. package/dist/composables/useBbTableContext.js +93 -87
  568. package/dist/composables/useBbTabsContext.d.ts +15 -9
  569. package/dist/composables/useBbTabsContext.js +121 -90
  570. package/dist/composables/useClosingInert.d.ts +4 -4
  571. package/dist/composables/useCoarsePointer.js +7 -10
  572. package/dist/composables/useCoherence.js +1 -1
  573. package/dist/composables/useConfig.d.ts +59 -0
  574. package/dist/composables/useConfig.js +15 -0
  575. package/dist/composables/useConfirm.d.ts +39 -7
  576. package/dist/composables/useConfirm.js +50 -41
  577. package/dist/composables/useEscapeStackEntry.d.ts +13 -0
  578. package/dist/composables/useEscapeStackEntry.js +16 -0
  579. package/dist/composables/useFormBinding.d.ts +116 -0
  580. package/dist/composables/useFormBinding.js +34 -0
  581. package/dist/composables/useHydrated.d.ts +18 -0
  582. package/dist/composables/useHydrated.js +13 -7
  583. package/dist/composables/useId.d.ts +4 -3
  584. package/dist/composables/useId.js +1 -7
  585. package/dist/composables/useItemsGetter.d.ts +11 -0
  586. package/dist/composables/useItemsGetter.js +44 -18
  587. package/dist/composables/useKeyboardInset.d.ts +28 -0
  588. package/dist/composables/useKeyboardInset.js +32 -0
  589. package/dist/composables/useLocale.js +10 -7
  590. package/dist/composables/useMobile.js +7 -10
  591. package/dist/composables/usePassthrough.d.ts +228 -0
  592. package/dist/composables/usePassthrough.js +247 -0
  593. package/dist/composables/usePrefill.d.ts +22 -2
  594. package/dist/composables/usePrefill.js +35 -19
  595. package/dist/composables/useSafeAreaInternal.js +1 -1
  596. package/dist/composables/useSegmentedFields.d.ts +2 -2
  597. package/dist/composables/useSsrState.d.ts +20 -0
  598. package/dist/composables/useSsrState.js +13 -0
  599. package/dist/composables/useTableWidthContext.d.ts +24 -4
  600. package/dist/composables/useTableWidthContext.js +31 -28
  601. package/dist/composables/useToast.d.ts +18 -1
  602. package/dist/composables/useToast.js +31 -18
  603. package/dist/composables/useToggleInput.d.ts +44 -0
  604. package/dist/composables/useToggleInput.js +39 -0
  605. package/dist/composables/useViewportWidth.d.ts +5 -25
  606. package/dist/composables/useViewportWidth.js +14 -7
  607. package/dist/deprecation/ai-deprecations.json.d.ts +1977 -289
  608. package/dist/deprecation/ai-deprecations.json.js +1 -1
  609. package/dist/deprecation/removedProps.js +9 -4
  610. package/dist/directives/bbDropdown.d.ts +15 -4
  611. package/dist/directives/bbDropdown.js +31 -9
  612. package/dist/directives/bbTooltip.d.ts +6 -0
  613. package/dist/directives/createPopoverDirective.d.ts +62 -0
  614. package/dist/directives/createPopoverDirective.js +92 -37
  615. package/dist/i18n/index.d.ts +10 -16
  616. package/dist/i18n/locales/cs.json +9 -5
  617. package/dist/i18n/locales/da.json +9 -5
  618. package/dist/i18n/locales/de.json +9 -5
  619. package/dist/i18n/locales/el.json +9 -5
  620. package/dist/i18n/locales/en.json +9 -5
  621. package/dist/i18n/locales/es.json +9 -5
  622. package/dist/i18n/locales/fi.json +9 -5
  623. package/dist/i18n/locales/fr.json +9 -5
  624. package/dist/i18n/locales/hu.json +9 -5
  625. package/dist/i18n/locales/it.json +9 -5
  626. package/dist/i18n/locales/ja.json +9 -5
  627. package/dist/i18n/locales/ko.json +9 -5
  628. package/dist/i18n/locales/nb.json +9 -5
  629. package/dist/i18n/locales/nl.json +9 -5
  630. package/dist/i18n/locales/pl.json +9 -5
  631. package/dist/i18n/locales/pt.json +9 -5
  632. package/dist/i18n/locales/ro.json +9 -5
  633. package/dist/i18n/locales/ru.json +9 -5
  634. package/dist/i18n/locales/sv.json +9 -5
  635. package/dist/i18n/locales/tr.json +9 -5
  636. package/dist/i18n/locales/uk.json +9 -5
  637. package/dist/i18n/locales/zh-cn.json +9 -5
  638. package/dist/icon-scan.d.ts +276 -0
  639. package/dist/icon-scan.js +485 -0
  640. package/dist/icons-whitelist.d.ts +5 -4
  641. package/dist/index.d.ts +40 -21
  642. package/dist/index.js +78 -71
  643. package/dist/llms-full.txt +61164 -27972
  644. package/dist/llms-medium.txt +1482 -366
  645. package/dist/llms.txt +32 -15
  646. package/dist/locale-blueprint.json +9 -5
  647. package/dist/nuxt-auto-imports.d.ts +76 -0
  648. package/dist/nuxt-auto-imports.js +32 -0
  649. package/dist/nuxt-module.d.ts +30 -15
  650. package/dist/nuxt.js +35 -9
  651. package/dist/passthrough-deduper.js +5 -0
  652. package/dist/plugin.d.ts +10 -1
  653. package/dist/plugin.js +29 -19
  654. package/dist/project-dts.d.ts +84 -0
  655. package/dist/project-dts.js +170 -0
  656. package/dist/reset.css +1 -1
  657. package/dist/runtime/nuxt-plugin.js +34 -21
  658. package/dist/styles.css +3 -2
  659. package/dist/types/AlertVariant.d.ts +10 -1
  660. package/dist/types/BadgeVariant.d.ts +16 -5
  661. package/dist/types/ButtonVariant.d.ts +12 -1
  662. package/dist/types/ColumnName.d.ts +30 -3
  663. package/dist/types/CommonProps.d.ts +2 -2
  664. package/dist/types/Config.d.ts +94 -1
  665. package/dist/types/ConfirmVariant.d.ts +8 -1
  666. package/dist/types/DropdownItemVariant.d.ts +8 -1
  667. package/dist/types/FieldLayout.d.ts +32 -0
  668. package/dist/types/IndicatorVariant.d.ts +11 -1
  669. package/dist/types/InputVariant.d.ts +30 -0
  670. package/dist/types/ItemProps.d.ts +50 -0
  671. package/dist/types/Option.d.ts +6 -0
  672. package/dist/types/PtScope.d.ts +15 -0
  673. package/dist/types/RegistryKey.d.ts +10 -0
  674. package/dist/types/TabsVariant.d.ts +25 -0
  675. package/dist/types/ToastVariant.d.ts +12 -2
  676. package/dist/types/TooltipVariant.d.ts +8 -1
  677. package/dist/types/passthrough.d.ts +362 -0
  678. package/dist/types/passthrough.js +78 -0
  679. package/dist/types/ptComponentMap.d.ts +62 -0
  680. package/dist/utilities/functions/hasVnodeListener.d.ts +16 -0
  681. package/dist/utilities/functions/hasVnodeListener.js +12 -0
  682. package/dist/utilities/functions/isImeComposing.d.ts +7 -0
  683. package/dist/utilities/functions/isImeComposing.js +4 -0
  684. package/dist/utilities/functions/itemProps.d.ts +46 -0
  685. package/dist/utilities/functions/itemProps.js +47 -0
  686. package/dist/utilities/functions/slotKey.d.ts +13 -8
  687. package/dist/utilities/functions/slotKey.js +78 -2
  688. package/dist/utilities/functions/snapToStep.js +2 -1
  689. package/dist/utilities/functions/toggleInput.d.ts +98 -0
  690. package/dist/utilities/functions/toggleInput.js +56 -0
  691. package/dist/utilities/functions/warnRemovedAttrs.d.ts +27 -1
  692. package/dist/utilities/functions/warnRemovedAttrs.js +75 -14
  693. package/dist/utilities/misc/listboxMetrics.d.ts +9 -3
  694. package/dist/utilities/misc/listboxMetrics.js +5 -2
  695. package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
  696. package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
  697. package/dist/utils/cssLayers.d.ts +91 -0
  698. package/dist/utils/cssLayers.js +43 -0
  699. package/dist/utils/injectLibraryStyles.d.ts +3 -1
  700. package/dist/utils/injectLibraryStyles.js +24 -23
  701. package/dist/utils/overlayEscapeStack.d.ts +10 -0
  702. package/dist/utils/overlayEscapeStack.js +5 -3
  703. package/dist/utils/passthrough.d.ts +67 -0
  704. package/dist/utils/passthrough.js +100 -0
  705. package/dist/utils/passthroughDeduper.d.ts +2 -0
  706. package/dist/utils/ptScope.d.ts +8 -0
  707. package/dist/utils/ptScope.js +4 -0
  708. package/dist/utils/versionCheck.d.ts +19 -0
  709. package/dist/utils/versionCheck.js +18 -0
  710. package/dist/vite-plugin.d.ts +301 -53
  711. package/dist/vite.js +547 -375
  712. package/llms.txt +33 -16
  713. package/package.json +49 -27
  714. package/scripts/lib/check-fix.mjs +129 -0
  715. package/scripts/lib/component-attr-targets.ts +123 -0
  716. package/scripts/lib/component-tree.ts +648 -0
  717. package/scripts/lib/css-class-check.mjs +326 -0
  718. package/scripts/lib/css-class-surface.mjs +292 -0
  719. package/scripts/lib/css-color-resolve.mjs +172 -0
  720. package/scripts/lib/css-local-check.mjs +267 -0
  721. package/scripts/lib/design-token-manifest.mjs +499 -0
  722. package/scripts/lib/doc-sections.mjs +248 -0
  723. package/scripts/lib/ensure-manifest.mjs +28 -5
  724. package/scripts/lib/eslint-disable.mjs +141 -0
  725. package/scripts/lib/eslint-plugin.d.ts +64 -1
  726. package/scripts/lib/eslint-plugin.mjs +1285 -30
  727. package/scripts/lib/hand-imported-styles.mjs +326 -0
  728. package/scripts/lib/hand-roll-hints.mjs +50 -6
  729. package/scripts/lib/html-attributes.mjs +353 -0
  730. package/scripts/lib/local-components.mjs +177 -0
  731. package/scripts/lib/mcp-config.mjs +87 -58
  732. package/scripts/lib/migrate-fix.mjs +62 -3
  733. package/scripts/lib/project-variant-dts.mjs +122 -0
  734. package/scripts/lib/public-type-exports.mjs +273 -0
  735. package/scripts/lib/slot-key.mjs +147 -0
  736. package/scripts/lib/slot-renames.mjs +46 -0
  737. package/scripts/lib/squashed-slot-words.mjs +133 -0
  738. package/scripts/lib/validate-bb-markup.mjs +2213 -76
  739. package/scripts/lib/wrapper-props.mjs +188 -0
  740. package/dist/ai/BbBaseCheckbox.md +0 -49
  741. package/dist/ai/BbBaseCheckboxGroup.md +0 -64
  742. package/dist/ai/BbBaseColorInput.md +0 -65
  743. package/dist/ai/BbBaseColorPalette.md +0 -39
  744. package/dist/ai/BbBaseDatePicker.md +0 -43
  745. package/dist/ai/BbBaseDatePickerInput.md +0 -73
  746. package/dist/ai/BbBaseInputContainer.md +0 -48
  747. package/dist/ai/BbBaseNumberInput.md +0 -71
  748. package/dist/ai/BbBaseRadio.md +0 -46
  749. package/dist/ai/BbBaseRadioGroup.md +0 -64
  750. package/dist/ai/BbBaseRating.md +0 -52
  751. package/dist/ai/BbBaseSelect.md +0 -88
  752. package/dist/ai/BbBaseSlider.md +0 -56
  753. package/dist/ai/BbBaseSwitch.md +0 -49
  754. package/dist/ai/BbBaseSwitchGroup.md +0 -64
  755. package/dist/ai/BbBaseTag.md +0 -68
  756. package/dist/ai/BbBaseTextInput.md +0 -75
  757. package/dist/ai/BbBaseTextarea.md +0 -62
  758. package/dist/ai/BbBaseTimePickerInput.md +0 -62
  759. package/dist/ai/BbTabsPanes.md +0 -27
  760. package/dist/ai/CommonInputWrapper.md +0 -42
  761. package/dist/ai/source/BbBaseCheckbox.md +0 -461
  762. package/dist/ai/source/BbBaseCheckboxGroup.md +0 -554
  763. package/dist/ai/source/BbBaseColorInput.md +0 -431
  764. package/dist/ai/source/BbBaseColorPalette.md +0 -942
  765. package/dist/ai/source/BbBaseDatePicker.md +0 -1448
  766. package/dist/ai/source/BbBaseDatePickerInput.md +0 -1940
  767. package/dist/ai/source/BbBaseNumberInput.md +0 -617
  768. package/dist/ai/source/BbBaseRadio.md +0 -381
  769. package/dist/ai/source/BbBaseRadioGroup.md +0 -539
  770. package/dist/ai/source/BbBaseRating.md +0 -607
  771. package/dist/ai/source/BbBaseSelect.md +0 -945
  772. package/dist/ai/source/BbBaseSlider.md +0 -1144
  773. package/dist/ai/source/BbBaseSwitch.md +0 -246
  774. package/dist/ai/source/BbBaseSwitchGroup.md +0 -302
  775. package/dist/ai/source/BbBaseTag.md +0 -694
  776. package/dist/ai/source/BbBaseTextInput.md +0 -511
  777. package/dist/ai/source/BbBaseTextarea.md +0 -504
  778. package/dist/ai/source/BbBaseTimePickerInput.md +0 -1037
  779. package/dist/ai/source/BbTabsPanes.md +0 -377
  780. package/dist/ai/source/CommonInputWrapper.md +0 -584
  781. package/dist/alert-variants.d.ts +0 -19
  782. package/dist/assets/svgs/sort.svg_raw.js +0 -4
  783. package/dist/badge-variants.d.ts +0 -19
  784. package/dist/button-variants.d.ts +0 -21
  785. package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
  786. package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
  787. package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
  788. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +0 -40
  789. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +0 -6
  790. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +0 -145
  791. package/dist/components/BbBaseCheckbox/types.d.ts +0 -224
  792. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +0 -19
  793. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +0 -6
  794. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -190
  795. package/dist/components/BbBaseCheckboxGroup/types.d.ts +0 -257
  796. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +0 -43
  797. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +0 -6
  798. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +0 -184
  799. package/dist/components/BbBaseColorInput/types.d.ts +0 -219
  800. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +0 -13
  801. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +0 -395
  802. package/dist/components/BbBaseColorPalette/types.d.ts +0 -40
  803. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.d.ts +0 -20
  804. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +0 -6
  805. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +0 -407
  806. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +0 -47
  807. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +0 -5
  808. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +0 -318
  809. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +0 -5
  810. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +0 -115
  811. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +0 -5
  812. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +0 -116
  813. package/dist/components/BbBaseDatePicker/types.d.ts +0 -108
  814. package/dist/components/BbBaseDatePicker/useDatePickerContext.js +0 -11
  815. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +0 -31
  816. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +0 -6
  817. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -737
  818. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +0 -6
  819. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +0 -204
  820. package/dist/components/BbBaseDatePickerInput/types.d.ts +0 -325
  821. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +0 -6
  822. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +0 -190
  823. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +0 -52
  824. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +0 -6
  825. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +0 -215
  826. package/dist/components/BbBaseNumberInput/types.d.ts +0 -211
  827. package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +0 -33
  828. package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +0 -113
  829. package/dist/components/BbBaseRadio/types.d.ts +0 -179
  830. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +0 -19
  831. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -179
  832. package/dist/components/BbBaseRadioGroup/types.d.ts +0 -223
  833. package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +0 -38
  834. package/dist/components/BbBaseRating/BbBaseRating.vue.js +0 -6
  835. package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +0 -192
  836. package/dist/components/BbBaseRating/types.d.ts +0 -176
  837. package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +0 -19
  838. package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +0 -6
  839. package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +0 -311
  840. package/dist/components/BbBaseSelect/types.d.ts +0 -297
  841. package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +0 -35
  842. package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +0 -6
  843. package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +0 -340
  844. package/dist/components/BbBaseSlider/types.d.ts +0 -200
  845. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +0 -35
  846. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +0 -146
  847. package/dist/components/BbBaseSwitch/types.d.ts +0 -10
  848. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +0 -19
  849. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +0 -6
  850. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -190
  851. package/dist/components/BbBaseSwitchGroup/types.d.ts +0 -8
  852. package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +0 -50
  853. package/dist/components/BbBaseTag/BbBaseTag.vue.js +0 -6
  854. package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +0 -266
  855. package/dist/components/BbBaseTag/types.d.ts +0 -160
  856. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +0 -45
  857. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +0 -6
  858. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +0 -200
  859. package/dist/components/BbBaseTextInput/types.d.ts +0 -209
  860. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +0 -39
  861. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +0 -6
  862. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +0 -187
  863. package/dist/components/BbBaseTextarea/types.d.ts +0 -170
  864. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +0 -27
  865. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +0 -6
  866. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -519
  867. package/dist/components/BbBaseTimePickerInput/types.d.ts +0 -151
  868. package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +0 -16
  869. package/dist/components/BbTabs/BbTabsPanes.vue.js +0 -6
  870. package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +0 -35
  871. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +0 -6
  872. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +0 -107
  873. package/dist/confirm-variants.d.ts +0 -17
  874. package/dist/dropdown-item-variants.d.ts +0 -17
  875. package/dist/indicator-variants.d.ts +0 -20
  876. package/dist/locale-registry.d.ts +0 -37
  877. package/dist/toast-variants.d.ts +0 -20
  878. package/dist/tooltip-variants.d.ts +0 -17
  879. package/dist/types/InputDirection.d.ts +0 -15
  880. package/dist/validated/BbCheckbox.vue.d.ts +0 -29
  881. package/dist/validated/BbCheckbox.vue.js +0 -5
  882. package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +0 -75
  883. package/dist/validated/BbCheckboxGroup.vue.d.ts +0 -34
  884. package/dist/validated/BbCheckboxGroup.vue.js +0 -5
  885. package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -82
  886. package/dist/validated/BbColorInput.vue.d.ts +0 -37
  887. package/dist/validated/BbColorInput.vue.js +0 -5
  888. package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +0 -75
  889. package/dist/validated/BbDatePickerInput.vue.d.ts +0 -41
  890. package/dist/validated/BbDatePickerInput.vue.js +0 -5
  891. package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -90
  892. package/dist/validated/BbDropzone.vue.d.ts +0 -24
  893. package/dist/validated/BbDropzone.vue.js +0 -5
  894. package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +0 -45
  895. package/dist/validated/BbForm.vue.d.ts +0 -28
  896. package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +0 -42
  897. package/dist/validated/BbNumberInput.vue.d.ts +0 -36
  898. package/dist/validated/BbNumberInput.vue.js +0 -5
  899. package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +0 -72
  900. package/dist/validated/BbRadioGroup.vue.d.ts +0 -34
  901. package/dist/validated/BbRadioGroup.vue.js +0 -5
  902. package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -78
  903. package/dist/validated/BbRating.vue.d.ts +0 -30
  904. package/dist/validated/BbRating.vue.js +0 -5
  905. package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +0 -63
  906. package/dist/validated/BbSelect.vue.d.ts +0 -46
  907. package/dist/validated/BbSelect.vue.js +0 -5
  908. package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +0 -109
  909. package/dist/validated/BbSlider.vue.d.ts +0 -36
  910. package/dist/validated/BbSlider.vue.js +0 -5
  911. package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +0 -69
  912. package/dist/validated/BbSwitch.vue.d.ts +0 -29
  913. package/dist/validated/BbSwitch.vue.js +0 -5
  914. package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +0 -75
  915. package/dist/validated/BbSwitchGroup.vue.d.ts +0 -34
  916. package/dist/validated/BbSwitchGroup.vue.js +0 -5
  917. package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -82
  918. package/dist/validated/BbTag.vue.d.ts +0 -36
  919. package/dist/validated/BbTag.vue.js +0 -5
  920. package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +0 -72
  921. package/dist/validated/BbTextInput.vue.d.ts +0 -36
  922. package/dist/validated/BbTextInput.vue.js +0 -5
  923. package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +0 -72
  924. package/dist/validated/BbTextarea.vue.d.ts +0 -36
  925. package/dist/validated/BbTextarea.vue.js +0 -5
  926. package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +0 -70
  927. package/dist/validated/BbTimePickerInput.vue.d.ts +0 -37
  928. package/dist/validated/BbTimePickerInput.vue.js +0 -5
  929. package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -81
  930. package/dist/validated/index.d.ts +0 -43
  931. package/dist/validated/useValidatedField.d.ts +0 -93
  932. package/dist/validated/useValidatedField.js +0 -51
  933. package/dist/validated.js +0 -21
  934. /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts → BbCalendar/CalendarMonthPanel.vue.d.ts} +0 -0
  935. /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts → BbCalendar/CalendarYearPanel.vue.d.ts} +0 -0
  936. /package/dist/{components/BbBaseDatePicker/typeahead.d.ts → composables/useTypeahead.d.ts} +0 -0
  937. /package/dist/{components/BbBaseDatePicker/typeahead.js → composables/useTypeahead.js} +0 -0
@@ -20,6 +20,10 @@ import type {
20
20
  } from './types';
21
21
  export type { BbDropdownGroupModel, BbDropdownGroupProps };
22
22
 
23
+ /**
24
+ * The group's selection: one value for a single group, an array for a
25
+ * `multiple` one. Read by the owning BbDropdown through the group's `id`.
26
+ */
23
27
  const model = defineModel<BbDropdownGroupModel>();
24
28
 
25
29
  /**
@@ -30,7 +34,7 @@ const model = defineModel<BbDropdownGroupModel>();
30
34
  * slot.
31
35
  *
32
36
  * This is **only** a selection affordance. Resolving a group's items — async
33
- * fetching, `item-text`/`item-value` mapping, loading/no-data, `max`,
37
+ * fetching, `item-text`/`item-value` mapping, loading/empty, `max`,
34
38
  * coherence — is owned by `BbDropdown` itself (it auto-mounts an internal
35
39
  * resolver per pipeline group), so a group renders from `:items` with or without
36
40
  * this companion. The companion just translates selection keys ⇄ `v-model`
@@ -126,10 +130,17 @@ if (registry) {
126
130
 
127
131
  ```ts
128
132
  import type { BbBaseButtonProps } from '../BbBaseButton/types';
133
+ import type {
134
+ PtItemCtx,
135
+ PtItemMap,
136
+ PtItemResult,
137
+ PtValue,
138
+ } from '@/types/passthrough';
129
139
  import type { Placement } from '@/types/Placement';
130
140
  import type { IconType } from '@/types/Icon';
131
141
  import type { DropdownItemVariantType } from '@/types/DropdownItemVariant';
132
142
  import type { BbOffCanvasProps } from '../BbOffCanvas/types';
143
+ import type { ItemProps } from '@/types/ItemProps';
133
144
 
134
145
  export type { DropdownItemVariantType };
135
146
 
@@ -142,15 +153,33 @@ export type DropdownTrigger = 'click' | 'contextMenu';
142
153
  */
143
154
  type DropdownEntryBase = {
144
155
  /**
145
- * Icon to be displayed after the text. Ignored when the item opens a
146
- * submenu (a chevron is shown) or sits in a selectable group (a check is shown).
156
+ * Icon to be displayed after the text. Not shown when the item opens a
157
+ * submenu (the chevron is), when it is the selected row of a selectable
158
+ * group (the check is), or when an append slot fills the region.
147
159
  */
148
160
  'append:icon'?: IconType;
149
161
  /**
150
- * Key used to identify the entry. Also acts as the selection token when the
151
- * item lives in a selectable group.
162
+ * Key used to identify the entry. REQUIRED when anything outside the menu
163
+ * reads it: a row in a `selectable` group (the v-model holds it), a row or
164
+ * group with its own slot (`#<key>` is named by it), a group bound by a
165
+ * `<BbDropdownGroup id>` or selectable. Optional on a plain action row (it
166
+ * runs its `onClick`) and a layout-only group: the dropdown then derives an
167
+ * internal identity from the text that nothing outside ever sees. A keyless
168
+ * row in a selectable group renders but can't be selected. Load-bearing
169
+ * identifiers are written, never derived — `bitboss-ui check` flags a
170
+ * missing required key where the items are in the same file.
171
+ */
172
+ key?: string;
173
+ /** @internal Set by the dropdown on a row it derived a key for (Q53.17). */
174
+ keyless?: true;
175
+ /**
176
+ * Your own data for this entry, carried untouched to its slots (as
177
+ * `item.meta`) and to per-item `pt` functions. The dropdown never reads it
178
+ * and never puts it on the DOM. Typically the record the entry stands for,
179
+ * e.g. `{ key: clinic.id, text: clinic.name, meta: clinic }`; a fetched
180
+ * group sets it through `itemProps` (`(clinic) => ({ meta: clinic })`).
152
181
  */
153
- key: string;
182
+ meta?: any;
154
183
  /** Click handler. */
155
184
  onClick?: (...args: any[]) => any;
156
185
  /** Icon to be displayed before the text. */
@@ -164,6 +193,28 @@ type DropdownEntryBase = {
164
193
  variant?: DropdownItemVariantType;
165
194
  };
166
195
 
196
+ /**
197
+ * The `itemProps` fields of a fetched (pipeline) dropdown group: everything a
198
+ * hand-written row accepts except its identity and structure (`key`, `text`,
199
+ * `items`, `group`) and `disabled`. See {@link InternalGroup.itemProps}.
200
+ */
201
+ export type DropdownItemFields = Omit<
202
+ BbBaseButtonProps,
203
+ 'block' | 'tag' | 'type' | 'text' | 'disabled'
204
+ > &
205
+ Omit<DropdownEntryBase, 'key'> & {
206
+ /** Muted second line under the row text. */
207
+ description: string;
208
+ };
209
+
210
+ /**
211
+ * `itemProps` of a fetched (pipeline) dropdown group — the ADDITIONAL fields of
212
+ * each fetched row (never its text or value). Public: type a standalone mapper
213
+ * with it, e.g.
214
+ * `const memberProps: BbDropdownItemProps<Member> = { description: 'email' }`.
215
+ */
216
+ export type BbDropdownItemProps<T = any> = ItemProps<T, DropdownItemFields>;
217
+
167
218
  /**
168
219
  * A single actionable menu entry. Extends BbBaseButton (minus layout props) and
169
220
  * can open a recursive submenu via `items`.
@@ -224,11 +275,18 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type'> &
224
275
  multiple?: never;
225
276
  /**
226
277
  * Marks a synthetic placeholder row produced for a pipeline group while its
227
- * async items load (`'loading'`) or when it resolved empty (`'no-data'`).
278
+ * async items load (`'loading'`) or when it resolved empty (`'empty'`).
228
279
  * Rendered as a non-interactive row that shows `text` or, when provided, the
229
- * dropdown's `loading` / `no-data` slot. Internal — set by `BbDropdownGroup`.
280
+ * dropdown's `loading` / `empty` slot. Internal — set by `BbDropdownGroup`.
230
281
  */
231
- placeholder?: 'loading' | 'no-data';
282
+ placeholder?: 'loading' | 'empty';
283
+ /**
284
+ * Marks a row built by the pipeline resolver from a fetched item. Its
285
+ * `selectable` predicate already ran against the RAW item there, so
286
+ * `normalizeGroups` must not run it again against this row object.
287
+ * Internal.
288
+ */
289
+ fetched?: true;
232
290
  /**
233
291
  * Optional slot token used to resolve per-item named slots. Primarily set
234
292
  * by the pipeline resolver so slot names can be derived from the resolved
@@ -313,12 +371,36 @@ export type InternalGroup = DropdownEntryBase & {
313
371
  /**
314
372
  * Pipeline groups only. Path/getter producing each item's display text.
315
373
  * Defaults to `JSON.stringify(item)` (or the string itself for strings).
374
+ *
375
+ * @defaultValue `JSON.stringify(item)`
316
376
  */
317
377
  itemText?: string | ((item: any) => string);
378
+ /**
379
+ * Pipeline groups only. The ADDITIONAL fields of each fetched row — never its
380
+ * text or value, which stay on `itemText` / `itemValue`. A fetched row takes
381
+ * every field a hand-written row accepts except its identity and structure
382
+ * (`key`, `text`, `items`, `group`) and `disabled`: `description`, the icons,
383
+ * `variant`, `onClick`, `href` / `to` and the rest of the link and Inertia
384
+ * options.
385
+ *
386
+ * Either an object with a path or getter per field
387
+ * (`{ description: 'email', href: 'url' }`) or one function returning the
388
+ * fields (`(user) => ({ description: user.email, href: user.url })`). In
389
+ * the object form a function is always a getter, so a handler field returns
390
+ * the handler: `onClick: (user) => () => open(user)`.
391
+ *
392
+ * Nothing is read off the raw item implicitly — without `itemProps` a row
393
+ * has only its text. An empty value means the field is absent. To disable
394
+ * individual rows use a `selectable` predicate on the group; fetched groups
395
+ * are for selection (see plans/ITEM-DESCRIPTION.md v2.4).
396
+ */
397
+ itemProps?: BbDropdownItemProps;
318
398
  /**
319
399
  * Pipeline groups only. Path/getter producing each item's value — what
320
400
  * `v-model` surfaces; its hash is the internal selection key. Defaults to the
321
401
  * whole item (so the key is the hash of the entire object).
402
+ *
403
+ * @defaultValue the whole item
322
404
  */
323
405
  itemValue?: string | ((item: any) => any);
324
406
  /** Pipeline groups only. Placeholder row text while async items load. */
@@ -333,11 +415,14 @@ export type InternalGroup = DropdownEntryBase & {
333
415
  * predictable size regardless of row content. A `number` is pixels; a `string`
334
416
  * is any CSS length (`'50vh'`, `'20rem'`). `'none'` (or `0`) removes the cap.
335
417
  *
336
- * `searchable` groups default to `280` (≈ 10 rows of 28px), since a searched
337
- * list is usually long; set your own value to tweak, or `'none'` to uncap.
338
- * Non-searchable groups are uncapped unless you set this.
418
+ * `searchable` groups default to `280` (≈ 10 rows of 28px) **on the flyout**,
419
+ * since a searched list is usually long; set your own value to tweak, or
420
+ * `'none'` to uncap. The adaptive sheet ignores the cap so the OffCanvas
421
+ * body stays the only scroller (nested group overflow trapped swipes that
422
+ * started on a row). Non-searchable flyout groups are uncapped unless you
423
+ * set this.
339
424
  *
340
- * @defaultValue `280` for `searchable` groups, otherwise unset
425
+ * @defaultValue `280` for `searchable` flyout groups, otherwise unset
341
426
  */
342
427
  maxHeight?: number | string;
343
428
  /**
@@ -346,8 +431,17 @@ export type InternalGroup = DropdownEntryBase & {
346
431
  * @defaultValue `false`
347
432
  */
348
433
  multiple?: boolean;
434
+ /**
435
+ * Single selectable groups only: re-clicking the selected row clears the
436
+ * group (`item:unselected`, `v-model` → `null`). Without it a single group
437
+ * behaves like a radio group, and a re-click keeps the pick. Means nothing
438
+ * on a `multiple` group, where a checkbox always unchecks.
439
+ *
440
+ * @defaultValue `false`
441
+ */
442
+ clearable?: boolean;
349
443
  /** Pipeline groups only. Placeholder row text when there are no items. */
350
- noDataText?: string;
444
+ emptyText?: string;
351
445
  /**
352
446
  * Pipeline groups only. When the group's async items are fetched — same
353
447
  * three-state contract as `BbSelect`'s `prefill`:
@@ -374,10 +468,20 @@ export type InternalGroup = DropdownEntryBase & {
374
468
  /** Placeholder for this group's search field. Defaults to the localized label. */
375
469
  searchPlaceholder?: string;
376
470
  /**
377
- * When `true`, items act as selectable options that render a check on the
378
- * right and keep the menu open when toggled.
471
+ * When set, items act as selectable options that render a check on the right
472
+ * and keep the menu open when toggled.
473
+ *
474
+ * Pass a function `(item) => boolean` to gate individual rows — the same
475
+ * contract as `BbSelect` and the option groups. The group is still a
476
+ * selectable group; a row the function rejects renders disabled (clicks do
477
+ * nothing, keyboard navigation skips it), and the lock holds on a row that is
478
+ * already selected. `max` stays a soft cap on top. The function receives the
479
+ * raw fetched item in a fetched group, the row object in a hand-written one.
480
+ *
481
+ * This is how a fetched row is disabled: fetched groups are for selection, so
482
+ * their `itemProps` has no `disabled` (see the guide).
379
483
  */
380
- selectable?: boolean;
484
+ selectable?: boolean | ((item: any) => boolean);
381
485
  /**
382
486
  * Searchable pipeline groups only. Accumulate the items behind *selected* keys
383
487
  * so they stay resolvable across searches. Without it, selecting an item in one
@@ -435,6 +539,23 @@ export type FlatItem<T> = T extends Array<infer U> ? U : T;
435
539
  * item's `items` is a submenu array). Without this last case such an entry would
436
540
  * be treated as a plain item and its function `items` iterated ("not iterable").
437
541
  */
542
+ /**
543
+ * Whether a declared group is selectable: `selectable` set (a boolean, or a
544
+ * predicate — which counts as `true`), or `multiple` given an explicit value.
545
+ * Both unset ⇒ non-selectable. Value-based, not key presence: companion merges
546
+ * write `multiple: undefined` keys that must not read as selectable.
547
+ */
548
+ export const isSelectableGroup = (
549
+ entry: Pick<InternalGroup, 'selectable' | 'multiple'>
550
+ ): boolean =>
551
+ entry.selectable != null ? !!entry.selectable : entry.multiple != null;
552
+
553
+ /** The group's per-row `selectable` predicate, when it passed one. */
554
+ export const selectablePredicateOf = (
555
+ entry: Pick<InternalGroup, 'selectable'>
556
+ ): ((item: any) => boolean) | undefined =>
557
+ typeof entry.selectable === 'function' ? entry.selectable : undefined;
558
+
438
559
  export const isGroup = (entry: Item): entry is InternalGroup =>
439
560
  !Array.isArray(entry) &&
440
561
  ((entry as InternalGroup).group === true ||
@@ -447,17 +568,27 @@ export const isGroup = (entry: Item): entry is InternalGroup =>
447
568
  * non-selectable groups; {@link InternalGroup} objects keep their metadata. Selection
448
569
  * defaults are resolved here. Produced by `normalizeGroups`.
449
570
  */
571
+ /**
572
+ * A row after normalization: its `key` is always set — the consumer's, or one
573
+ * the dropdown derived for a keyless action row (`keyless`, Q53.17).
574
+ */
575
+ export type KeyedItem = InternalItem & { key: string };
576
+
450
577
  export type NormalizedGroup = {
451
578
  'append:icon'?: IconType;
579
+ /** Single groups: a re-click on the selected row clears it. */
580
+ clearable?: boolean;
452
581
  /** Whether a divider is rendered before this group. */
453
582
  divider: boolean;
454
583
  /** Keys matched against each raw item when searching (empty ⇒ match text). */
455
584
  filterBy?: string[];
456
- items: InternalItem[];
585
+ items: KeyedItem[];
457
586
  /** Group key (when it originated from a {@link InternalGroup} object). */
458
587
  key?: string;
459
588
  /** Fixed max-height (px number or CSS length) of this group's item region. */
460
589
  maxHeight?: number | string;
590
+ /** The group's own `meta`, untouched. */
591
+ meta?: any;
461
592
  multiple: boolean;
462
593
  onClick?: (...args: any[]) => any;
463
594
  'prepend:icon'?: IconType;
@@ -486,7 +617,123 @@ export type MappedItem = InternalItem & {
486
617
  onKeydown: (event: KeyboardEvent) => void;
487
618
  };
488
619
 
620
+ /**
621
+ * Passthrough parts of `BbDropdown` (plans/passthrough/BbDropdown.md). Groups,
622
+ * headings and dividers are not parts.
623
+ *
624
+ * Per-item functions: on the instance, an entry part (`item`, `itemText`, `itemIcon`, `itemDescription`) also accepts `({ item, selected, … }) => PtValue | false | null | undefined` — `item` is the menu entry (an `Item`: its `text`, `key`, `description`, whatever else you put on it), and every state a boolean beside it, on for it (`selected`, `disabled`, …) — 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_.
625
+ *
626
+ * @part root - The floating element — an invisible positioning wrapper; a
627
+ * `class` on the component lands here. No node on the phone sheet: style
628
+ * what you see with `panel`.
629
+ * @part panel - The menu surface you see — the bordered flyout box on
630
+ * desktop, the sheet itself on a phone.
631
+ * @part sheet - The bottom sheet the menu becomes on a phone (the
632
+ * `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.
633
+ * @part header - The menu's header band.
634
+ * @part footer - The menu's footer band.
635
+ * @part input - A searchable group's search field — a broadcast: it lands on
636
+ * every searchable group's field, desktop and phone alike. Its magnifier
637
+ * glyph is chrome.
638
+ * @part list - The top-level items container between the bands — the node
639
+ * that lays the entries out (a flex column with a 1px gap; on a phone, the
640
+ * sheet's items container). A submenu's list is not reached. Groups,
641
+ * headings and dividers are not parts.
642
+ * @part item - One menu entry, submenus included — a broadcast resolved per
643
+ * entry. Also takes a per-item function, called with the entry.
644
+ * @part itemText - An entry's label (its `text`) — resolved with that
645
+ * entry's states. A per-entry `#<key>` slot replaces it. Also takes a
646
+ * per-item function.
647
+ * @part itemIcon - An entry's prepend / append icons — resolved with that
648
+ * entry's states. Also takes a per-item function.
649
+ * @part itemDescription - An entry's muted second line (its `description`) —
650
+ * resolved with that entry's states. A per-entry `#<key>` slot replaces it.
651
+ * Also takes a per-item function.
652
+ */
653
+ export type BbDropdownPtPart =
654
+ | 'root'
655
+ | 'panel'
656
+ | 'sheet'
657
+ | 'header'
658
+ | 'footer'
659
+ | 'input'
660
+ | 'list'
661
+ | 'item'
662
+ | 'itemText'
663
+ | 'itemIcon'
664
+ | 'itemDescription';
665
+ /** The surface parts — they take a `PtValue` only. Spelled flat (T20). */
666
+ export type BbDropdownSurfacePtPart =
667
+ | 'root'
668
+ | 'panel'
669
+ | 'sheet'
670
+ | 'header'
671
+ | 'footer'
672
+ | 'input'
673
+ | 'list';
674
+ /** The entry parts — broadcasts resolved per entry; their base key also takes a per-item function. Spelled flat (T20). */
675
+ export type BbDropdownItemPtPart =
676
+ | 'item'
677
+ | 'itemText'
678
+ | 'itemIcon'
679
+ | 'itemDescription';
680
+ /**
681
+ * Passthrough states of `BbDropdown`, true while the matching `--` modifier is on.
682
+ *
683
+ * @state selected - Per node, on the entry parts: a selectable group's
684
+ * checked entry.
685
+ * @state disabled - Per node, on the entry parts: an entry that is disabled.
686
+ * @state open - Component-wide: the menu is open.
687
+ */
688
+ export type BbDropdownPtState = 'open' | 'selected' | 'disabled';
689
+ /** The runtime lists the resolver is wired with — kept next to the types so the two cannot drift. */
690
+ export const BB_DROPDOWN_PT = {
691
+ parts: [
692
+ 'root',
693
+ 'panel',
694
+ 'sheet',
695
+ 'header',
696
+ 'footer',
697
+ 'input',
698
+ 'list',
699
+ 'item',
700
+ 'itemText',
701
+ 'itemIcon',
702
+ 'itemDescription',
703
+ ],
704
+ states: ['selected', 'disabled', 'open'],
705
+ } as const satisfies {
706
+ parts: readonly BbDropdownPtPart[];
707
+ states: readonly BbDropdownPtState[];
708
+ };
709
+
710
+ // Spelled INLINE with this component's own unions (Vue's SFC type resolver
711
+ // does not substitute a generic alias's type parameters — PASSTHROUGH.md T20).
712
+ // Two mapped types, never `Partial<Record<…>>`: the lint autofix rewrites one
713
+ // into the other and the SFC resolver reads only the mapped spelling (T23).
714
+ /* eslint-disable @typescript-eslint/consistent-indexed-object-style */
489
715
  export type BbDropdownProps = {
716
+ [K in
717
+ | `pt:${BbDropdownSurfacePtPart}`
718
+ | `pt:${BbDropdownPtPart}:${BbDropdownPtState}`]?: PtValue;
719
+ } & {
720
+ // The entry parts also take a per-item function, called with the menu
721
+ // entry — a literal function type, not `PtItemFn` (T23).
722
+ [K in `pt:${BbDropdownItemPtPart}`]?:
723
+ | PtValue
724
+ | ((ctx: PtItemCtx<InternalItem, BbDropdownPtState>) => PtItemResult);
725
+ } & {
726
+ /* eslint-enable @typescript-eslint/consistent-indexed-object-style */
727
+ /**
728
+ * Passthrough, object form: the same keys as the `pt:*` attributes
729
+ * without the prefix. See the `pt:<part>` row.
730
+ */
731
+ pt?: PtItemMap<
732
+ BbDropdownPtPart,
733
+ BbDropdownItemPtPart,
734
+ BbDropdownPtState,
735
+ InternalItem
736
+ >;
490
737
  /**
491
738
  * External activator element or component ref.
492
739
  * When provided, the activator slot is not rendered and event listeners
@@ -506,6 +753,17 @@ export type BbDropdownProps = {
506
753
  * @defaultValue `config.adaptive` (`true`)
507
754
  */
508
755
  adaptive?: boolean;
756
+ /**
757
+ * Apply the compact density variant — the same ladder `BbSelect` uses, on
758
+ * both surfaces: flyout rows go 28px → 24px, sheet rows 44px → 36px. The
759
+ * label size does not change; density here is height, as it is for a select.
760
+ *
761
+ * A menu row is a touch target in a way a select option is not quite — a
762
+ * mis-tap fires the neighbouring COMMAND rather than picking the wrong value
763
+ * — so the compact sheet stops at 36px and never follows the flyout down to
764
+ * 24px. That is the same floor the select's sheet holds.
765
+ */
766
+ compact?: boolean;
509
767
  /**
510
768
  * Element the panel positions itself against, when it should differ from the
511
769
  * activator — e.g. a wrapper that the activator is only a part of, so the menu
@@ -537,7 +795,9 @@ export type BbDropdownProps = {
537
795
  */
538
796
  enforceCoherence?: boolean;
539
797
  /**
540
- * The identifier of the component.
798
+ * Names this dropdown: the activator's id (unless it already has one),
799
+ * the menu's `menu_<id>`, and the key `useBbDropdownContext(id)` and a
800
+ * companion `BbDropdownGroup` pair by. Generated when omitted.
541
801
  */
542
802
  id?: string;
543
803
  /**
@@ -560,21 +820,31 @@ export type BbDropdownProps = {
560
820
  loadingText?: string;
561
821
  /**
562
822
  * Default placeholder text shown when a pipeline group resolves to no items.
563
- * A group's own `noDataText` overrides this; both fall back to the localized
564
- * `common.noDataText` (`'No data to display'`).
823
+ * A group's own `emptyText` overrides this; both fall back to the localized
824
+ * `common.emptyText` (`'No data to display'`).
565
825
  */
566
- noDataText?: string;
826
+ emptyText?: string;
567
827
  /**
828
+ * Props for the phone sheet. A `pt` inside it, object or colon keys, styles
829
+ * only that sheet.
830
+ *
568
831
  * Overrides forwarded to the underlying `BbOffCanvas` when `adaptive` renders
569
832
  * the sheet on mobile. Merged over the adaptive defaults
570
- * (`direction: 'bottom'`, `size: 'auto'`, `draggable: true`). Ignored when
833
+ * (`side: 'bottom'`, `size: 'auto'`, `draggable: true`). Ignored when
571
834
  * `adaptive` is `false`.
835
+ *
836
+ * A `pt` inside it styles ONLY the sheet, in `BbOffCanvas`'s part words
837
+ * (`root`, `header`, `title`, `description`, `content`, `footer`, `close`;
838
+ * state `open`), object (`{ pt: { header: '…' } }`) or colon keys
839
+ * (`{ 'pt:header': '…' }`) alike. It merges after what this component
840
+ * forwards to its sheet, so it wins a conflict and drops nothing — see the
841
+ * passthrough guide § Inside the sheet.
572
842
  */
573
843
  offCanvasProps?: Partial<BbOffCanvasProps>;
574
844
  /**
575
845
  * Space the floating container will maintain from the activator.
576
846
  *
577
- * @defaultValue `3`
847
+ * @defaultValue `4`
578
848
  */
579
849
  offset?: number;
580
850
  /**
@@ -585,7 +855,8 @@ export type BbDropdownProps = {
585
855
  padding?: number;
586
856
  /**
587
857
  * Position of the dropdown relative to the activator.
588
- * Use `'cursor'` to anchor at the mouse/touch coordinates (hides arrow).
858
+ * Use `'cursor'` to anchor at the mouse/touch coordinates.
859
+ * (No arrow is drawn either way — arrows are tooltip-only in v3.)
589
860
  *
590
861
  * @defaultValue `'bottom'`
591
862
  */
@@ -599,7 +870,9 @@ export type BbDropdownProps = {
599
870
  queryDebounceTime?: number;
600
871
  /**
601
872
  * How long the transition has to last in milliseconds. Menus use the fast
602
- * transition rather than the medium one the other popovers default to.
873
+ * transition (150) rather than the medium one (250) the other popovers
874
+ * default to: a menu is opened to pick one command and is gone again, so
875
+ * it answers faster than a panel the user reads or edits in.
603
876
  *
604
877
  * @defaultValue `150`
605
878
  */
@@ -622,6 +895,14 @@ export type BbDropdownProps = {
622
895
  };
623
896
 
624
897
  export type BbDropdownEvents = {
898
+ /** Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open. */
899
+ (e: 'show'): void;
900
+ /** Emitted once the menu is open and its open transition has finished. */
901
+ (e: 'shown'): void;
902
+ /** Emitted as soon as the menu starts to close. */
903
+ (e: 'hide'): void;
904
+ /** Emitted once the menu has finished closing. */
905
+ (e: 'hidden'): void;
625
906
  /**
626
907
  * Fired when an item in any selectable group becomes selected. The payload is
627
908
  * the item's resolved value (its `item-value` for pipeline groups, else its
@@ -668,12 +949,45 @@ export type BbDropdownEdgeSlotProps = {
668
949
  placement: BbDropdownProps['placement'];
669
950
  };
670
951
 
952
+ /**
953
+ * The group a slot renders in, as item slots see it. Anonymous groups (loose
954
+ * items, plain arrays) have no `key` and no `label`.
955
+ */
956
+ export type BbDropdownSlotGroup = {
957
+ /** The group's key, when it was declared as a group object. */
958
+ key?: string;
959
+ /** The group's label, when it has one (also when `hideLabel` hides it). */
960
+ label?: string;
961
+ /** The group's own `meta`. */
962
+ meta?: any;
963
+ /** Whether the group is multi-select. */
964
+ multiple: boolean;
965
+ /** Whether the group's rows are choices. */
966
+ selectable: boolean;
967
+ };
968
+
671
969
  /** Props exposed by the `item:prepend` and `item:append` slots, and named item slots. */
672
970
  export type BbDropdownItemSlotProps = {
673
971
  /** The item's muted description line, when set. */
674
972
  description?: InternalItem['description'];
675
973
  /** Whether this item is disabled. */
676
974
  disabled?: InternalItem['disabled'];
975
+ /**
976
+ * The group this row sits in. On a group's title line (`groupTitle`), the
977
+ * group itself.
978
+ */
979
+ group: BbDropdownSlotGroup;
980
+ /**
981
+ * `true` when the slot is drawing a group's title line rather than a row.
982
+ * The shared `item:prepend` / `item:append` slots run for both, with the
983
+ * group passed as `item` on a title line.
984
+ */
985
+ groupTitle: boolean;
986
+ /**
987
+ * Nesting depth of the menu the slot renders in: `0` for the root menu,
988
+ * `1` for a submenu, and so on — the same on the flyout and the phone sheet.
989
+ */
990
+ level: number;
677
991
  /** The zero-based index of this item among the flattened items. */
678
992
  index: number;
679
993
  /** The raw item object from the `items` prop. */
@@ -693,14 +1007,33 @@ export type BbDropdownItemSlotProps = {
693
1007
  text: InternalItem['text'];
694
1008
  };
695
1009
 
696
- /** Props exposed by the `loading` and `no-data` placeholder slots. */
1010
+ /** Props exposed by the `loading` and `empty` placeholder slots. */
697
1011
  export type BbDropdownPlaceholderSlotProps = {
698
1012
  /** Key of the group this placeholder belongs to. */
699
1013
  groupKey?: string;
700
- /** Resolved placeholder text (group `loadingText`/`noDataText` → dropdown default). */
1014
+ /** Resolved placeholder text (group `loadingText`/`emptyText` → dropdown default). */
701
1015
  text: string;
702
1016
  };
703
1017
 
1018
+ /**
1019
+ * Besides the fixed slots, every entry gets named slots from its key run
1020
+ * through `slotKey` (`'practice-switcher'` → `practice_switcher`). The most
1021
+ * specific slot a row has wins: its own, then its group's, then the shared
1022
+ * `item:prepend` / `item:append`. Each edge has ONE occupant: a slot replaces
1023
+ * the `prepend:icon` / `append:icon`. On the trailing edge the selected row's
1024
+ * check beats every slot, a row's own `#<key>:append` beats the submenu
1025
+ * chevron, and the chevron beats the group-wide and shared slots.
1026
+ *
1027
+ * @dynamicSlot `<key>` {BbDropdownItemSlotProps} - One row's content (text and description), by its key; in a fetched group, by its resolved `itemValue`.
1028
+ * @dynamicSlot `<key>:prepend` {BbDropdownItemSlotProps} - One row's leading region; replaces its `prepend:icon`.
1029
+ * @dynamicSlot `<key>:append` {BbDropdownItemSlotProps} - One row's trailing region; replaces its `append:icon` and its submenu chevron. The check takes its place on the selected row.
1030
+ * @dynamicSlot `<groupKey>:item` {BbDropdownItemSlotProps} - The content of every row of that group, and no other; a row's own `#<key>` still wins.
1031
+ * @dynamicSlot `<groupKey>: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`.
1032
+ * @dynamicSlot `<groupKey>: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.
1033
+ * @dynamicSlot `<groupKey>` {BbDropdownItemSlotProps} - That group's title line (the group is passed as `item`, `groupTitle` is `true`).
1034
+ * @dynamicSlot `<groupKey>:prepend` {BbDropdownItemSlotProps} - The leading region of that group's title line.
1035
+ * @dynamicSlot `<groupKey>:append` {BbDropdownItemSlotProps} - The trailing region of that group's title line.
1036
+ */
704
1037
  export type BbDropdownSlots = {
705
1038
  /**
706
1039
  * Hosts `<BbDropdownGroup>` companions. They register their group with the
@@ -716,7 +1049,7 @@ export type BbDropdownSlots = {
716
1049
  * Replaces the default "no data" placeholder row shown in a pipeline group
717
1050
  * that resolved to no items. Rendered once per empty group.
718
1051
  */
719
- 'no-data'?: (props: BbDropdownPlaceholderSlotProps) => any;
1052
+ empty?: (props: BbDropdownPlaceholderSlotProps) => any;
720
1053
  /**
721
1054
  * The element that triggers the dropdown to open. Spread `props` onto your trigger element.
722
1055
  */
@@ -728,11 +1061,14 @@ export type BbDropdownSlots = {
728
1061
  */
729
1062
  header?: (props: BbDropdownEdgeSlotProps) => any;
730
1063
  /**
731
- * Content rendered before each dropdown item's default button content.
1064
+ * The leading region of every row (and group title line), replacing its
1065
+ * `prepend:icon`. A row's own or its group's named slot wins over it.
732
1066
  */
733
1067
  'item:prepend'?: (props: BbDropdownItemSlotProps) => any;
734
1068
  /**
735
- * Content rendered after each dropdown item's default button content.
1069
+ * The trailing region of every row (and group title line), replacing its
1070
+ * `append:icon`. A named slot wins over it; the submenu chevron and the
1071
+ * check on a selected row take its place.
736
1072
  */
737
1073
  'item:append'?: (props: BbDropdownItemSlotProps) => any;
738
1074
  /**
@@ -786,7 +1122,16 @@ export type BbDropdownGroupEvents = {
786
1122
  ## Styles
787
1123
 
788
1124
  ```css
789
- /* @inherit --transition-duration — set inline by the adaptive surface */
1125
+ /* Sealed fill (Q44.15): the plate paints `--bg`, defaulted to the panel at
1126
+ specificity 0 — a `pt` class or a theme island retints this one surface
1127
+ without moving `--bb-panel` for every panel on the page. */
1128
+ :where(.bb-dropdown__group-search) {
1129
+ --bg: var(--bb-panel);
1130
+ }
1131
+
1132
+ /* @inherit --transition-duration — set inline by the adaptive surface;
1133
+ @inherit --py — the adaptive sheet's rules target BbOffCanvas elements, which
1134
+ declare it on the panel */
790
1135
  .bb-dropdown {
791
1136
  overflow: visible;
792
1137
 
@@ -796,7 +1141,7 @@ export type BbDropdownGroupEvents = {
796
1141
  }
797
1142
 
798
1143
  /* Inset between the menu's outer chrome and its first item — owned here and
799
- * consumed by both `.bb-dropdown__items-container`'s padding and the submenu
1144
+ * consumed by both `.bb-dropdown__list`'s padding and the submenu
800
1145
  * lead-in below, so the two can never drift apart. */
801
1146
  --menu-inset: 4px;
802
1147
 
@@ -806,7 +1151,9 @@ export type BbDropdownGroupEvents = {
806
1151
  * BOTH: the previous `-4px` covered the padding only and left every submenu
807
1152
  * sitting exactly 1px low (measured, GROK-BTG-035). */
808
1153
  &.bb-dropdown--submenu > .bb-common-popover__bubble {
809
- margin-top: calc(-1 * (var(--menu-inset) + var(--bubble-border-w, 1px)));
1154
+ margin-top: calc(
1155
+ -1 * (var(--menu-inset) + var(--bubble-border-w, var(--bb-border-w)))
1156
+ );
810
1157
  }
811
1158
 
812
1159
  /* Submenus: shadcn-style soft zoom + a slight sideways slide from the side
@@ -840,12 +1187,23 @@ export type BbDropdownGroupEvents = {
840
1187
  }
841
1188
  }
842
1189
 
843
- /* Root panel: a flex column so `header`/`footer` pin outside the scrolling
844
- * items region (mirrors BbPopover). Owns the height cap for the root menu;
845
- * submenus have no panel and cap on the items-container itself (below). */
846
- .bb-dropdown__panel {
847
- border-radius: var(--bb-radius);
848
- box-sizing: border-box;
1190
+ /* Root panel = CommonPopover's bubble itself (bound through `bubble-attrs`,
1191
+ * as on BbPopover): a flex column so `header`/`footer` pin outside the
1192
+ * scrolling items region. Owns the height cap for the root menu; submenus
1193
+ * have no panel and cap on the items-container itself (below).
1194
+ *
1195
+ * Compounded with the bubble class: the bubble's own `display: block` is
1196
+ * (0,2,0) too, so a plain `.bb-dropdown .bb-dropdown__panel` would be decided
1197
+ * by sheet order. No `border-radius` here — the bubble's radius is the one
1198
+ * that paints.
1199
+ *
1200
+ * `content-box`, deliberately: `--w`, `min-width` and `--max-h` size the box
1201
+ * INSIDE the border, exactly as they did when the panel was a borderless box
1202
+ * nested in the bubble. The items container below also takes `--w` and
1203
+ * `min-width` as its own border-box width, so a border-box panel would be
1204
+ * 2px narrower inside than its items and `overflow: clip` would cut them. */
1205
+ .bb-dropdown__panel.bb-common-popover__bubble {
1206
+ box-sizing: content-box;
849
1207
  color: var(--bb-text);
850
1208
  display: flex;
851
1209
  flex-direction: column;
@@ -871,11 +1229,11 @@ export type BbDropdownGroupEvents = {
871
1229
  }
872
1230
 
873
1231
  .bb-dropdown__header {
874
- border-bottom: 1px solid var(--bb-border);
1232
+ border-bottom: var(--bb-border-w) solid var(--bb-border);
875
1233
  }
876
1234
 
877
1235
  .bb-dropdown__footer {
878
- border-top: 1px solid var(--bb-border);
1236
+ border-top: var(--bb-border-w) solid var(--bb-border);
879
1237
  }
880
1238
 
881
1239
  /* Per-group search row: rendered at the top of a `searchable` group's list
@@ -883,8 +1241,8 @@ export type BbDropdownGroupEvents = {
883
1241
  * put while that group's rows scroll under it. */
884
1242
  .bb-dropdown__group-search {
885
1243
  align-items: center;
886
- background: var(--bb-panel);
887
- border-bottom: 1px solid var(--bb-border);
1244
+ background: var(--bg);
1245
+ border-bottom: var(--bb-border-w) solid var(--bb-border);
888
1246
  box-sizing: border-box;
889
1247
  color: var(--bb-text-muted);
890
1248
  display: flex;
@@ -988,7 +1346,7 @@ export type BbDropdownGroupEvents = {
988
1346
  }
989
1347
  }
990
1348
 
991
- .bb-dropdown__items-container {
1349
+ .bb-dropdown__list {
992
1350
  border-radius: var(--bb-radius);
993
1351
  box-sizing: border-box;
994
1352
  color: var(--bb-text);
@@ -999,7 +1357,11 @@ export type BbDropdownGroupEvents = {
999
1357
  * is inert there and `max-height` alone caps it. */
1000
1358
  flex: 1 1 auto;
1001
1359
  flex-direction: column;
1002
- font-size: calc(var(--bb-fs) - 1px);
1360
+ /* `--bb-fs`, matching the select's option label. These two menus sit at
1361
+ the same 28px row height on the same screen and their labels were a
1362
+ pixel apart (13 against 14) — the desktop twin of the sheet drift, and
1363
+ the kind of difference nobody can name but everybody sees. */
1364
+ font-size: var(--bb-fs);
1003
1365
  gap: 1px;
1004
1366
  line-height: 1.2;
1005
1367
  max-height: var(--max-h, none);
@@ -1025,9 +1387,10 @@ export type BbDropdownGroupEvents = {
1025
1387
 
1026
1388
  .bb-dropdown__group-title {
1027
1389
  align-items: center;
1028
- /* Same muted derivation as BbSelectPopover's group headers (parity
1029
- * ruling) — NOT --bb-text-muted, so the two menus can never drift. */
1030
- color: var(--bb-text-faint);
1390
+ /* Same token as BbSelectPopover's group headers (parity ruling), so
1391
+ * the two menus can never drift. Muted, not faint: a title is read
1392
+ * (and can be clicked), and faint fails AA on live text (Q44.18). */
1393
+ color: var(--bb-text-muted);
1031
1394
  column-gap: 6px;
1032
1395
  display: inline-flex;
1033
1396
  /* Don't let the flex column squash rows when `max-height` kicks in —
@@ -1073,7 +1436,7 @@ export type BbDropdownGroupEvents = {
1073
1436
  /* Negative inline margins cancel the container padding so the rule
1074
1437
  * spans the full width of the dropdown panel, edge to edge. */
1075
1438
  border: none;
1076
- border-top: 1px solid var(--bb-border);
1439
+ border-top: var(--bb-border-w) solid var(--bb-border);
1077
1440
  height: 0;
1078
1441
  margin: var(--menu-inset) calc(-1 * var(--menu-inset));
1079
1442
  }
@@ -1151,7 +1514,7 @@ export type BbDropdownGroupEvents = {
1151
1514
  white-space: nowrap;
1152
1515
  }
1153
1516
 
1154
- .item__description {
1517
+ .bb-dropdown__item-description {
1155
1518
  color: var(--bb-text-muted);
1156
1519
  display: block;
1157
1520
  font-size: calc(var(--bb-fs) - 2px);
@@ -1261,7 +1624,7 @@ export type BbDropdownGroupEvents = {
1261
1624
  /* The group search is a real text field: below 16px mobile Safari force-zooms
1262
1625
  the page when it takes focus. `--bb-input-fs-mobile` is the existing
1263
1626
  `max(--bb-input-fs, 16px)` token the wrapped controls use — this is a bare
1264
- `<input>` outside CommonInputWrapper, so it never inherited that rule.
1627
+ `<input>` outside CommonFieldInput, so it never inherited that rule.
1265
1628
  Gated on the pointer rather than `--mobile` so it also covers touch devices
1266
1629
  above `mobileMaxWidth`, and so it can never feed back into the width signal
1267
1630
  (see `useMobile`). */
@@ -1271,6 +1634,24 @@ export type BbDropdownGroupEvents = {
1271
1634
  }
1272
1635
  }
1273
1636
 
1637
+ /* ---- Compact density --------------------------------------------------
1638
+ * The same ladder `BbSelect` walks, so a dense toolbar can hold a select and a
1639
+ * menu that agree: the flyout drops 28px → 24px here, and the SHEET drops
1640
+ * 44px → 36px through `--sheet-row-h` (AdaptiveDropdown reads
1641
+ * `listboxOptionHeight`, the helper the listbox reads, so neither can drift).
1642
+ * The label does not shrink — density is height, exactly as it is for a select
1643
+ * — and the sheet never follows the flyout to 24px, because a menu row is a
1644
+ * touch target whose mis-tap fires the neighbouring COMMAND. */
1645
+ .bb-dropdown.bb-dropdown--compact {
1646
+ .bb-dropdown__item {
1647
+ height: 24px;
1648
+ }
1649
+
1650
+ .bb-dropdown__placeholder {
1651
+ min-height: 24px;
1652
+ }
1653
+ }
1654
+
1274
1655
  /* ---- Adaptive drill-down sheet ----------------------------------------
1275
1656
  * The mobile surface (`AdaptiveDropdown`) reuses the `.bb-dropdown` classes
1276
1657
  * above by carrying `.bb-dropdown` on the off-canvas root; these rules only
@@ -1280,7 +1661,102 @@ export type BbDropdownGroupEvents = {
1280
1661
  /* Shrink the off-canvas chrome so the sheet reads as compact as the desktop
1281
1662
  panel rather than a full dialog. */
1282
1663
  --dialog-gap: 8px;
1283
- --dialog-title-fs: calc(var(--bb-fs) - 1px);
1664
+ /* The title tracks the row label rather than the off-canvas default. It was
1665
+ pulled DOWN to `--bb-fs - 1` (13px) once, which put it under the rows it
1666
+ heads; the default (`--bb-fs + 2`) fixed that until the rows moved to 18px
1667
+ and passed it again. Tied to the same constant, a title can no longer end
1668
+ up smaller than the list beneath it whatever that constant becomes. */
1669
+ --dialog-title-fs: var(--sheet-option-fs, 1rem);
1670
+
1671
+ /* Root sheet title via `offCanvasProps.title` (no drill nav / custom
1672
+ `#header`): centre it and tighten the title→divider air like BbSelect.
1673
+ `:not(:has(.bb-dropdown__nav))` keeps consumer `#header` content and the
1674
+ drill nav on their own layouts. */
1675
+ .bb-offcanvas__header:not(:has(.bb-dropdown__nav)) {
1676
+ border-bottom: var(--bb-border-w) solid var(--bb-border);
1677
+ padding-bottom: calc(var(--py) - 6px);
1678
+
1679
+ > .bb-offcanvas__title {
1680
+ flex: 1 1 auto;
1681
+ text-align: center;
1682
+ }
1683
+ }
1684
+
1685
+ /* Drill nav owns the title→body air. Drop the OffCanvas header's own bottom
1686
+ pad so it does not stack under the nav and push chips / search below
1687
+ BbSelect's. */
1688
+ .bb-offcanvas__header:has(.bb-dropdown__nav--drill) {
1689
+ padding-bottom: 0;
1690
+ }
1691
+
1692
+ /* Body used to start flush under the header. Match BbSelect's step down
1693
+ from the title rule. Specificity beats OffCanvas's nested shorthand.
1694
+ Skip headerless sheets (`--no-header`): OffCanvas already supplies the
1695
+ top inset (and the handle clearance) that this would otherwise crush to
1696
+ 0.5rem — the filters root with no title / drill nav / `#header`. */
1697
+ &.bb-offcanvas:not(.bb-offcanvas--no-header) .bb-offcanvas__content {
1698
+ padding-top: 0.5rem;
1699
+ }
1700
+
1701
+ /* Flat multi-group sheets: space a following section after the previous
1702
+ group's items/search. */
1703
+ .bb-dropdown__group-items + .bb-dropdown__group-title,
1704
+ .bb-dropdown__group-search + .bb-dropdown__group-title,
1705
+ .bb-dropdown__divider + .bb-dropdown__group-title {
1706
+ margin-top: 0.5rem;
1707
+ }
1708
+
1709
+ /* Group headers on the sheet read as BbSelect's sheet label — centred title
1710
+ weight/size, not the flyout's faint left-aligned section caption. No
1711
+ hairline here: the select sheet label's rule lives on the OffCanvas
1712
+ header, and repeating it under every group stacked like extra chrome.
1713
+ Nested drills with `hideLabel` skip this entirely; the drill nav title is
1714
+ already that label. */
1715
+ .bb-dropdown__group-title {
1716
+ align-items: center;
1717
+ border-bottom: 0;
1718
+ color: var(--bb-text);
1719
+ column-gap: 6px;
1720
+ display: flex;
1721
+ font-size: var(--dialog-title-fs, var(--sheet-option-fs, 1rem));
1722
+ font-weight: 500;
1723
+ justify-content: center;
1724
+ letter-spacing: normal;
1725
+ /* Match select's title→body air (`padding-bottom: calc(var(--py) - 6px)`
1726
+ on the OffCanvas header) so the label sits above the soft search the
1727
+ same way City sits above its field. */
1728
+ padding: 0.25rem 0 calc(var(--py, var(--bb-panel-p)) - 6px);
1729
+
1730
+ .group-title__content {
1731
+ flex: 1 1 auto;
1732
+ line-height: normal;
1733
+ overflow-x: clip;
1734
+ overflow-y: visible;
1735
+ text-align: center;
1736
+ }
1737
+
1738
+ .group-title__prepend-icon,
1739
+ .group-title__append-icon {
1740
+ --size: 1.25rem;
1741
+ font-size: var(--size);
1742
+ }
1743
+ }
1744
+
1745
+ /* Headerless sheet: the first group title IS the sheet label (Flat filters'
1746
+ "Status" beside BbSelect's "City"). Body already clears the handle via
1747
+ `--no-header` padding (`calc(var(--py) + 12px)`); the items-container's
1748
+ 4px (meant for air under a nav divider) and the title's own 0.25rem top
1749
+ pad were stacking on top and dropping the label ~8px below City.
1750
+ Measured: City title @29px, Flat Status @33–37px before this. */
1751
+ &.bb-offcanvas--no-header .bb-dropdown__list {
1752
+ padding-top: 0;
1753
+ }
1754
+
1755
+ &.bb-offcanvas--no-header
1756
+ .bb-dropdown__list
1757
+ > .bb-dropdown__group-title:first-child {
1758
+ padding-top: 0;
1759
+ }
1284
1760
 
1285
1761
  /* Clip the sideways level slide so it never spills a horizontal scrollbar. */
1286
1762
  .bb-dropdown__adaptive-body {
@@ -1310,55 +1786,132 @@ export type BbDropdownGroupEvents = {
1310
1786
  * construction, so this selector needs no viewport clause of its own. The
1311
1787
  * JS half lives in `useTouchRowLadder`, for the virtualized option lists
1312
1788
  * whose row heights feed a virtualizer instead of a stylesheet. */
1313
- .bb-dropdown__items-container {
1314
- font-size: calc(var(--bb-fs) + 1px);
1789
+ /* Belt for an explicit `maxHeight` leaking onto the sheet: never nest a
1790
+ second scrollport inside the OffCanvas body. */
1791
+ .bb-dropdown__group-items--capped {
1792
+ display: contents;
1793
+ max-height: none;
1794
+ overflow: visible;
1795
+ }
1796
+
1797
+ .bb-dropdown__list {
1798
+ /* Published by AdaptiveDropdown from `listboxMetrics`, the same helpers the
1799
+ select's sheet reads. The fallbacks are the shipped touch values, so the
1800
+ stylesheet still reads on its own. */
1801
+ font-size: var(--sheet-option-fs, 1rem);
1315
1802
  max-height: none;
1316
1803
  min-width: 0;
1317
1804
  overflow-y: visible;
1318
- padding: 0;
1805
+ /* Horizontal inset is the OffCanvas body's `--px`. Do not re-pad here
1806
+ (or on the rows) to fake alignment with search/chips. */
1807
+ padding: 4px 0 0;
1319
1808
  width: 100%;
1320
1809
 
1321
1810
  .bb-dropdown__item {
1322
- height: 44px;
1323
- padding: 2px 10px;
1811
+ height: var(--sheet-row-h, 44px);
1812
+ /* Flyout rows are `2px 6px`. +4px start so the label shares the
1813
+ search field's text edge (`padding-inline: 0.75rem` on the fill). */
1814
+ padding-left: calc(6px + 4px);
1815
+ /* iOS treats a <button> as a tap target and will not hand the pan to
1816
+ the sheet body unless the control itself opts into vertical panning.
1817
+ Without this, dismiss/scroll work on the handle and miss on rows. */
1818
+ touch-action: pan-y;
1324
1819
 
1325
1820
  &.bb-dropdown__item--description {
1326
- min-height: 44px;
1821
+ min-height: var(--sheet-row-h, 44px);
1327
1822
  }
1328
1823
 
1329
- .item__description {
1330
- font-size: calc(var(--bb-fs) - 1px);
1824
+ .item__content {
1825
+ line-height: normal;
1826
+ overflow-x: clip;
1827
+ overflow-y: visible;
1828
+ }
1829
+
1830
+ /* One step under the row label, the same step the listbox puts between
1831
+ an option and its group header — so the two sheets' secondary text
1832
+ agrees as well as their primary. */
1833
+ .bb-dropdown__item-description {
1834
+ font-size: calc(var(--sheet-option-fs, 1rem) - 2px);
1331
1835
  line-height: 18px;
1332
1836
  }
1333
1837
  }
1334
1838
 
1335
1839
  .bb-dropdown__placeholder {
1336
- min-height: 44px;
1337
- padding: 2px 10px;
1840
+ min-height: var(--sheet-row-h, 44px);
1841
+ padding-left: calc(6px + 4px);
1338
1842
  }
1339
1843
 
1340
- .bb-dropdown__group-title {
1341
- font-size: calc(var(--bb-fs) - 1px);
1342
- padding: 8px 10px 4px;
1844
+ /* Icons scale with the label they sit beside. The desktop sizes (16px
1845
+ glyphs against a 13px label) were tuned for a 28px row; left alone in a
1846
+ 44px row with an 18px label they read as undersized — the chevron that
1847
+ says "this opens another level" ended up the smallest thing in the row.
1848
+ One step up, so the glyph keeps roughly the proportion to its label that
1849
+ it has on the desktop panel. BbIcon reads `--size`; keep `font-size` on
1850
+ the same token so the glyph box and the type size cannot drift. */
1851
+ .item__prepend-icon,
1852
+ .item__append-icon,
1853
+ .item__check,
1854
+ .item__chevron {
1855
+ --size: 1.25rem;
1856
+ font-size: var(--size);
1343
1857
  }
1858
+
1859
+ /* Group titles are restyled as select-sheet labels on `--adaptive`
1860
+ (see block above); do not re-apply the flyout caption metrics here. */
1344
1861
  }
1345
1862
 
1863
+ /* Soft filled search — mirrors BbSelectPopover's sheet field: no underline
1864
+ rule, faint `--bb-muted` wash, and the same inset as sheet chips / row
1865
+ padding so the fill lines up. */
1346
1866
  .bb-dropdown__group-search {
1347
- padding: 8px 10px;
1867
+ background-color: var(--bb-muted);
1868
+ border-bottom: 0;
1869
+ border-radius: var(--bb-radius);
1870
+ /* Undo the flyout's full-bleed negative margins. No extra inline inset —
1871
+ the OffCanvas body already pads `--px`. */
1872
+ margin: 0 0 0.25rem;
1873
+ padding: 0.625rem 0.75rem;
1874
+ position: relative;
1875
+ top: auto;
1876
+ transition: background-color var(--bb-transition-fast) ease;
1877
+ /* Flyout search is sticky `z-index: 1`; that same stacking painted over
1878
+ the sheet's grab handle once the body scrolled. */
1879
+ z-index: auto;
1880
+
1881
+ /* One emphasis stop above the resting --bb-muted (6%) fill. */
1882
+ &:focus-within {
1883
+ background-color: color-mix(in oklab, var(--bb-text) 8%, var(--bb-panel));
1884
+ }
1885
+
1886
+ /* Lens on the trailing edge, same side as BbSelect's sheet search. */
1887
+ .bb-dropdown__search-icon {
1888
+ order: 1;
1889
+ }
1890
+
1891
+ .bb-dropdown__search-input {
1892
+ font-size: var(--bb-input-fs);
1893
+ order: 0;
1894
+ }
1895
+
1896
+ /* Busy strip sits on the field's bottom edge (no border to overlay). */
1897
+ .bb-dropdown__group-loading {
1898
+ border-radius: 0 0 var(--bb-radius) var(--bb-radius);
1899
+ bottom: 0;
1900
+ }
1348
1901
  }
1349
1902
 
1350
1903
  /* Removable selection chips for the current multi-select level — sit above the
1351
1904
  menu (and its search), mirroring BbSelect's sheet. */
1352
1905
  .bb-dropdown__sheet-selection {
1353
1906
  flex-shrink: 0;
1354
- padding: 0 4px 8px;
1907
+ padding: 0 0 0.5rem;
1355
1908
  text-align: left;
1356
1909
  }
1357
1910
 
1358
1911
  .bb-dropdown__sheet-chips {
1359
1912
  display: flex;
1360
1913
  flex-wrap: wrap;
1361
- gap: 8px;
1914
+ gap: 0.5rem;
1362
1915
  }
1363
1916
 
1364
1917
  /* Touch target: the xl badge is a ~24px pill — fine inline on desktop, too
@@ -1367,9 +1920,9 @@ export type BbDropdownGroupEvents = {
1367
1920
  padding and a bigger clear glyph; the badge API stays untouched. Mirrors
1368
1921
  BbSelectPopover's sheet chips. */
1369
1922
  .bb-dropdown__sheet-chip {
1370
- --min-size: 34px;
1371
- --padding-inline: 12px;
1372
- --clear-size: 20px;
1923
+ --min-size: 2.125rem;
1924
+ --px: 0.75rem;
1925
+ --clear-size: 1.25rem;
1373
1926
  }
1374
1927
 
1375
1928
  .bb-dropdown__nav {
@@ -1377,42 +1930,69 @@ export type BbDropdownGroupEvents = {
1377
1930
  column-gap: 6px;
1378
1931
  display: flex;
1379
1932
  width: 100%;
1380
- }
1381
1933
 
1382
- .bb-dropdown__nav-back {
1383
- align-items: center;
1384
- background: transparent;
1385
- border: none;
1386
- border-radius: var(--bb-radius-sm);
1387
- color: var(--bb-text);
1388
- cursor: pointer;
1389
- display: inline-flex;
1390
- flex-shrink: 0;
1391
- /* Touch target: this is the sheet's only way back up a level. */
1392
- height: 40px;
1393
- justify-content: center;
1394
- margin-inline-start: -8px;
1395
- width: 40px;
1934
+ /* Drilled in: a navigation bar. The TITLE LINE sets the bar height — same
1935
+ as BbSelect's OffCanvas title — so City and Status share one baseline.
1936
+ The back control is a BbButton ghost sm, absolutely pinned to the
1937
+ OffCanvas header with equal inset from the sheet's top and left. */
1938
+ &--drill {
1939
+ /* Title line sets the bar height — same as BbSelect's OffCanvas title.
1940
+ Sit in the header's `--px`; do not pull out and re-pad to fake a
1941
+ full-bleed bar. Bottom pad matches BbSelect's
1942
+ `calc(var(--py) - 6px)`. No `position: relative` — the back button's
1943
+ containing block is the header. */
1944
+ display: block;
1945
+ padding-bottom: calc(var(--py, var(--bb-panel-p)) - 6px);
1946
+
1947
+ /* Equal inset from the sheet edges. Header is `position: relative`
1948
+ in OffCanvas. Size/chrome come from BbButton ghost sm.
1949
+ Use `--bb-panel-p`, not `--px`: BbButton redefines `--px` as its
1950
+ own padding token, which collapsed the inset to 10px. */
1951
+ .bb-dropdown__nav-back {
1952
+ left: var(--bb-panel-p);
1953
+ position: absolute;
1954
+ top: var(--bb-panel-p);
1396
1955
 
1397
- &:hover {
1398
- background-color: color-mix(in oklab, var(--bb-text) 8%, transparent);
1399
- }
1956
+ /* Same chevron_right asset the submenu rows use, pointed back. */
1957
+ .bb-button__icon {
1958
+ transform: rotate(180deg);
1959
+ }
1960
+ }
1400
1961
 
1401
- .bb-dropdown__nav-back-icon {
1402
- --size: 16px;
1403
- /* Reuse `chevron_right` pointed the other way (no left asset exists). */
1404
- transform: rotate(180deg);
1962
+ /* Spacer kept in the DOM for the drill a11y tests; layout is now the
1963
+ title's equal inline gutters below. */
1964
+ .bb-dropdown__nav-gutter {
1965
+ display: none;
1966
+ }
1405
1967
  }
1406
1968
  }
1407
1969
 
1408
- .bb-dropdown__nav-title {
1970
+ /* Pure spacer, mirroring the back button's box (root / non-drill layouts). */
1971
+ .bb-dropdown__nav-gutter {
1972
+ height: 24px;
1973
+ width: 24px;
1974
+ }
1975
+
1976
+ .bb-offcanvas__title.bb-dropdown__nav-title {
1409
1977
  flex: auto;
1410
1978
  font-weight: 500;
1979
+ /* Same 1em line box as BbSelect's sheet title so the cap sits on the
1980
+ same baseline. Descenders ("Tags") paint into the drill nav's bottom
1981
+ pad — `overflow-y: visible`; ellipsis still clips on X only. */
1411
1982
  min-width: 0;
1412
- overflow: hidden;
1983
+ overflow-x: clip;
1984
+ overflow-y: visible;
1413
1985
  text-overflow: ellipsis;
1414
1986
  white-space: nowrap;
1415
1987
  }
1988
+
1989
+ .bb-dropdown__nav--drill .bb-dropdown__nav-title {
1990
+ /* Equal side gutters matching BbButton sm icon-only (24px) so the label
1991
+ centres. */
1992
+ display: block;
1993
+ padding-inline: 24px;
1994
+ text-align: center;
1995
+ }
1416
1996
  }
1417
1997
 
1418
1998
  /* Level slide: drilling in enters from the right and the old level exits left;
@@ -1448,4 +2028,15 @@ export type BbDropdownGroupEvents = {
1448
2028
  opacity: 0;
1449
2029
  transform: translateX(28px);
1450
2030
  }
2031
+
2032
+ /*
2033
+ * Q14.3 — see `reservesCheckSpace` in BbDropdown.vue for why this is scoped to
2034
+ * an auto-width panel. `:has(.item__check)` targets exactly the rows a
2035
+ * selectable group mounts a check on, so a non-selectable group in the same
2036
+ * menu is untouched. The value matches the `--selected` rule's clearance; when
2037
+ * both apply they agree, so nothing shifts on selection.
2038
+ */
2039
+ .bb-dropdown__panel--reserve-check .bb-dropdown__item:has(.item__check) {
2040
+ padding-inline-end: calc(6px + 16px + 4px);
2041
+ }
1451
2042
  ```