bitboss-ui 3.0.0-beta.70 → 3.0.0-beta.72

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 (413) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +6 -1
  3. package/dist/ai/BbAccordion.md +38 -19
  4. package/dist/ai/BbBadge.md +25 -22
  5. package/dist/ai/BbBreadcrumbs.md +4 -1
  6. package/dist/ai/BbButton.md +32 -27
  7. package/dist/ai/BbCalendar.md +1 -0
  8. package/dist/ai/BbCarousel.md +6 -4
  9. package/dist/ai/BbCheckbox.md +5 -6
  10. package/dist/ai/BbCheckboxGroup.md +27 -27
  11. package/dist/ai/BbColorInput.md +4 -5
  12. package/dist/ai/BbConfirm.md +65 -81
  13. package/dist/ai/BbConfirmPortal.md +2 -2
  14. package/dist/ai/BbDatePicker.md +1 -6
  15. package/dist/ai/BbDatePickerInput.md +5 -6
  16. package/dist/ai/BbDialog.md +230 -164
  17. package/dist/ai/BbDropdown.md +87 -17
  18. package/dist/ai/BbDropdownButton.md +15 -15
  19. package/dist/ai/BbDropzone.md +12 -8
  20. package/dist/ai/BbForm.md +93 -7
  21. package/dist/ai/BbHost.md +2 -2
  22. package/dist/ai/BbHoverCardPortal.md +1 -1
  23. package/dist/ai/BbIcon.md +1 -1
  24. package/dist/ai/BbIndicator.md +17 -15
  25. package/dist/ai/BbNumberInput.md +10 -9
  26. package/dist/ai/BbOffCanvas.md +29 -7
  27. package/dist/ai/BbPagination.md +2 -2
  28. package/dist/ai/BbPopover.md +15 -9
  29. package/dist/ai/BbPopoverPortal.md +1 -1
  30. package/dist/ai/BbRadio.md +5 -6
  31. package/dist/ai/BbRadioGroup.md +53 -37
  32. package/dist/ai/BbRating.md +11 -16
  33. package/dist/ai/BbSelect.md +25 -5
  34. package/dist/ai/BbSelectPopover.md +9 -3
  35. package/dist/ai/BbSlider.md +15 -17
  36. package/dist/ai/BbSpinner.md +3 -2
  37. package/dist/ai/BbSwitch.md +9 -9
  38. package/dist/ai/BbSwitchGroup.md +11 -13
  39. package/dist/ai/BbTable.md +205 -82
  40. package/dist/ai/BbTabs.md +29 -4
  41. package/dist/ai/BbTag.md +4 -5
  42. package/dist/ai/BbTextInput.md +18 -16
  43. package/dist/ai/BbTextarea.md +12 -11
  44. package/dist/ai/BbTimePickerInput.md +4 -5
  45. package/dist/ai/BbToast.md +3 -2
  46. package/dist/ai/BbTooltip.md +39 -30
  47. package/dist/ai/BbTree.md +49 -24
  48. package/dist/ai/CommonField.md +2 -10
  49. package/dist/ai/CommonFieldInput.md +1 -1
  50. package/dist/ai/OptionsContainer.md +5 -13
  51. package/dist/ai/changelog.json +278 -10
  52. package/dist/ai/components.json +59 -58
  53. package/dist/ai/composables/useBbDialog.md +5 -8
  54. package/dist/ai/composables/useBbForm.md +3 -0
  55. package/dist/ai/composables/useConfirm.md +65 -56
  56. package/dist/ai/composables/useToast.md +2 -1
  57. package/dist/ai/guides/agent-contract.md +3 -3
  58. package/dist/ai/guides/app-layout.md +3 -2
  59. package/dist/ai/guides/eslint-rules.md +3 -1
  60. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  61. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  62. package/dist/ai/guides/icons-policy.md +7 -5
  63. package/dist/ai/guides/inertia-helpers.md +35 -30
  64. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  65. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  67. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  68. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  69. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  70. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  71. package/dist/ai/guides/migration/components/use-confirm.md +69 -26
  72. package/dist/ai/guides/migration/v2-to-v3.md +78 -12
  73. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  74. package/dist/ai/guides/options-items-playbook.md +4 -3
  75. package/dist/ai/guides/passthrough.md +2 -2
  76. package/dist/ai/guides/preset-components.md +35 -10
  77. package/dist/ai/helpers/definePreset.json +8 -1
  78. package/dist/ai/helpers/definePreset.ts +35 -10
  79. package/dist/ai/helpers/inertia/manifest.json +28 -15
  80. package/dist/ai/helpers/inertia/messages.ts +3 -3
  81. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  82. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  83. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  84. package/dist/ai/index.md +3 -3
  85. package/dist/ai/manifest/common.json +5 -5
  86. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  87. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  88. package/dist/ai/manifest/components/BbBadge.json +8 -7
  89. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  90. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  91. package/dist/ai/manifest/components/BbBreadcrumbs.json +2 -2
  92. package/dist/ai/manifest/components/BbButton.json +5 -6
  93. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  94. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  95. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  96. package/dist/ai/manifest/components/BbCheckbox.json +2 -2
  97. package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
  98. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  99. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +9 -19
  100. package/dist/ai/manifest/components/BbColorInput.json +3 -3
  101. package/dist/ai/manifest/components/BbColorInput.tree.json +2 -2
  102. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  103. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  104. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  105. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  106. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  107. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  108. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  109. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  110. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +2 -2
  111. package/dist/ai/manifest/components/BbDialog.json +6 -1
  112. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  113. package/dist/ai/manifest/components/BbDropdown.json +10 -9
  114. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  115. package/dist/ai/manifest/components/BbDropdownButton.json +9 -10
  116. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  117. package/dist/ai/manifest/components/BbForm.json +3 -1
  118. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  119. package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -2
  120. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  121. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  122. package/dist/ai/manifest/components/BbPagination.json +1 -1
  123. package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
  124. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  125. package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -18
  126. package/dist/ai/manifest/components/BbRating.json +2 -2
  127. package/dist/ai/manifest/components/BbRating.tree.json +1 -1
  128. package/dist/ai/manifest/components/BbSelect.json +2 -1
  129. package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
  130. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  131. package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
  132. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  133. package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  135. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
  136. package/dist/ai/manifest/components/BbTable.json +15 -14
  137. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  138. package/dist/ai/manifest/components/BbTabs.json +3 -3
  139. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  140. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  141. package/dist/ai/manifest/components/BbTag.json +1 -1
  142. package/dist/ai/manifest/components/BbTag.tree.json +2 -2
  143. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  144. package/dist/ai/manifest/components/BbTextInput.tree.json +2 -2
  145. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  146. package/dist/ai/manifest/components/BbTextarea.tree.json +2 -2
  147. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  148. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  149. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +2 -2
  150. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  151. package/dist/ai/manifest/components/BbTooltip.json +1 -1
  152. package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
  153. package/dist/ai/manifest/components/BbTree.json +2 -2
  154. package/dist/ai/manifest/components/CommonField.tree.json +5 -10
  155. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  156. package/dist/ai/manifest/components/OptionsContainer.tree.json +5 -13
  157. package/dist/ai/manifest/index.json +4 -4
  158. package/dist/ai/manifest/meta.json +5 -1
  159. package/dist/ai/manifest/types.advanced.json +9 -9
  160. package/dist/ai/manifest/types.api.json +7 -6
  161. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  165. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/inertia/record-form.md +12 -8
  167. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  168. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  169. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  170. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  171. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  172. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  173. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  174. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  175. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  176. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  177. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  178. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  179. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  180. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  181. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  182. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  183. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  184. package/dist/ai/recipes/vue/onboarding.md +5 -4
  185. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  186. package/dist/ai/recipes/vue/record-form.md +14 -10
  187. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  188. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  189. package/dist/ai/recipes/vue/upload-center.md +17 -9
  190. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  191. package/dist/ai/source/BbAccordion.md +50 -16
  192. package/dist/ai/source/BbBadge.md +420 -26
  193. package/dist/ai/source/BbBadgeButton.md +378 -12
  194. package/dist/ai/source/BbBreadcrumbs.md +31 -12
  195. package/dist/ai/source/BbButton.md +205 -55
  196. package/dist/ai/source/BbCalendar.md +5 -0
  197. package/dist/ai/source/BbCheckbox.md +36 -42
  198. package/dist/ai/source/BbCheckboxGroup.md +40 -17
  199. package/dist/ai/source/BbColorInput.md +2 -4
  200. package/dist/ai/source/BbConfigScope.md +19 -2
  201. package/dist/ai/source/BbConfirm.md +74 -80
  202. package/dist/ai/source/BbConfirmPortal.md +6 -6
  203. package/dist/ai/source/BbDatePicker.md +9 -2
  204. package/dist/ai/source/BbDatePickerInput.md +5 -5
  205. package/dist/ai/source/BbDialog.md +53 -2
  206. package/dist/ai/source/BbDropdown.md +360 -99
  207. package/dist/ai/source/BbDropdownButton.md +24 -13
  208. package/dist/ai/source/BbDropdownGroup.md +145 -60
  209. package/dist/ai/source/BbForm.md +144 -10
  210. package/dist/ai/source/BbNumberInput.md +2 -4
  211. package/dist/ai/source/BbOffCanvas.md +53 -2
  212. package/dist/ai/source/BbPagination.md +1 -1
  213. package/dist/ai/source/BbRadio.md +36 -42
  214. package/dist/ai/source/BbRadioGroup.md +74 -14
  215. package/dist/ai/source/BbRating.md +32 -36
  216. package/dist/ai/source/BbSelect.md +40 -13
  217. package/dist/ai/source/BbSelectPopover.md +105 -34
  218. package/dist/ai/source/BbSlider.md +2 -4
  219. package/dist/ai/source/BbSwitch.md +57 -46
  220. package/dist/ai/source/BbSwitchGroup.md +67 -21
  221. package/dist/ai/source/BbTable.md +363 -49
  222. package/dist/ai/source/BbTabs.md +6 -0
  223. package/dist/ai/source/BbTabsList.md +10 -0
  224. package/dist/ai/source/BbTabsPanels.md +6 -0
  225. package/dist/ai/source/BbTabsRoot.md +6 -0
  226. package/dist/ai/source/BbTag.md +2 -4
  227. package/dist/ai/source/BbTextInput.md +2 -4
  228. package/dist/ai/source/BbTextarea.md +2 -4
  229. package/dist/ai/source/BbTimePickerInput.md +2 -4
  230. package/dist/ai/source/BbTooltip.md +9 -3
  231. package/dist/ai/source/BbTree.md +14 -4
  232. package/dist/ai/source/CommonField.md +17 -106
  233. package/dist/ai/source/CommonFieldInput.md +2 -1
  234. package/dist/ai/source/GuidesComponent.md +3 -0
  235. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  236. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  237. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  238. package/dist/components/BbAccordion/types.d.ts +21 -7
  239. package/dist/components/BbAccordion/types.js +1 -1
  240. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  241. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  242. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  243. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  244. package/dist/components/BbBadge/types.d.ts +15 -12
  245. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
  246. package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
  247. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  248. package/dist/components/BbButton/types.d.ts +7 -6
  249. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  250. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  251. package/dist/components/BbCalendar/types.d.ts +5 -0
  252. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  253. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  254. package/dist/components/BbCheckbox/types.d.ts +2 -4
  255. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  256. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  257. package/dist/components/BbCheckboxGroup/types.d.ts +4 -6
  258. package/dist/components/BbColorInput/types.d.ts +2 -4
  259. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  260. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  261. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  262. package/dist/components/BbConfirm/types.d.ts +5 -5
  263. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  264. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  265. package/dist/components/BbDatePicker/types.d.ts +5 -0
  266. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  267. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  268. package/dist/components/BbDatePickerInput/types.d.ts +4 -5
  269. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  270. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  271. package/dist/components/BbDialog/overlayActions.js +94 -0
  272. package/dist/components/BbDialog/types.d.ts +24 -0
  273. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  274. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +384 -332
  275. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
  276. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  277. package/dist/components/BbDropdown/normalizeGroups.js +58 -44
  278. package/dist/components/BbDropdown/types.d.ts +116 -50
  279. package/dist/components/BbDropdown/types.js +2 -2
  280. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +105 -104
  281. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  282. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  283. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +240 -198
  284. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  285. package/dist/components/BbForm/recognizeValidation.js +55 -0
  286. package/dist/components/BbForm/validationError.d.ts +10 -0
  287. package/dist/components/BbForm/validationError.js +11 -0
  288. package/dist/components/BbNumberInput/types.d.ts +2 -4
  289. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  290. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  291. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  292. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  293. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  294. package/dist/components/BbRadio/types.d.ts +2 -4
  295. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  296. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  297. package/dist/components/BbRadioGroup/types.d.ts +11 -7
  298. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +126 -119
  299. package/dist/components/BbRating/types.d.ts +5 -6
  300. package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -10
  301. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  302. package/dist/components/BbSelect/types.d.ts +12 -6
  303. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  304. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  305. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  306. package/dist/components/BbSlider/types.d.ts +2 -4
  307. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  308. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  309. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  310. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  311. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  312. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  313. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  314. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  315. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  316. package/dist/components/BbTable/types.d.ts +33 -18
  317. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  318. package/dist/components/BbTabs/types.d.ts +6 -0
  319. package/dist/components/BbTag/types.d.ts +2 -4
  320. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  321. package/dist/components/BbTextInput/types.d.ts +2 -4
  322. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  323. package/dist/components/BbTextarea/types.d.ts +2 -4
  324. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  325. package/dist/components/BbTimePickerInput/types.d.ts +2 -4
  326. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  327. package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
  328. package/dist/components/BbTooltip/types.d.ts +3 -1
  329. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  330. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  331. package/dist/components/BbTree/types.d.ts +8 -2
  332. package/dist/components/CommonField/types.d.ts +2 -4
  333. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  334. package/dist/composables/formSubmitLock.js +15 -8
  335. package/dist/composables/overlayRegistry.d.ts +5 -0
  336. package/dist/composables/overlayRegistry.js +154 -148
  337. package/dist/composables/useBbDropdown.d.ts +8 -0
  338. package/dist/composables/useBbDropdown.js +3 -1
  339. package/dist/composables/useBbTabs.js +138 -138
  340. package/dist/composables/useChoiceIndicator.js +67 -64
  341. package/dist/composables/useConfirm.d.ts +63 -52
  342. package/dist/composables/useConfirm.js +22 -18
  343. package/dist/deprecation/ai-deprecations.json.js +1 -1
  344. package/dist/directives/bbDropdown.d.ts +7 -7
  345. package/dist/directives/bbDropdown.js +22 -15
  346. package/dist/directives/bbTooltip.d.ts +3 -3
  347. package/dist/directives/createPopoverDirective.js +57 -35
  348. package/dist/i18n/locales/ar.json +5 -1
  349. package/dist/i18n/locales/cs.json +5 -1
  350. package/dist/i18n/locales/da.json +5 -1
  351. package/dist/i18n/locales/de-CH.json +5 -1
  352. package/dist/i18n/locales/de.json +5 -1
  353. package/dist/i18n/locales/el.json +5 -1
  354. package/dist/i18n/locales/en-GB.json +5 -1
  355. package/dist/i18n/locales/en.json +5 -1
  356. package/dist/i18n/locales/es-MX.json +5 -1
  357. package/dist/i18n/locales/es.json +5 -1
  358. package/dist/i18n/locales/fa.json +5 -1
  359. package/dist/i18n/locales/fi.json +5 -1
  360. package/dist/i18n/locales/fr.json +5 -1
  361. package/dist/i18n/locales/he.json +5 -1
  362. package/dist/i18n/locales/hu.json +5 -1
  363. package/dist/i18n/locales/it.json +5 -1
  364. package/dist/i18n/locales/ja.json +5 -1
  365. package/dist/i18n/locales/ko.json +5 -1
  366. package/dist/i18n/locales/nb.json +5 -1
  367. package/dist/i18n/locales/nl.json +5 -1
  368. package/dist/i18n/locales/pl.json +5 -1
  369. package/dist/i18n/locales/pt-BR.json +5 -1
  370. package/dist/i18n/locales/pt-PT.json +5 -1
  371. package/dist/i18n/locales/ro.json +5 -1
  372. package/dist/i18n/locales/ru.json +5 -1
  373. package/dist/i18n/locales/sv.json +5 -1
  374. package/dist/i18n/locales/tr.json +5 -1
  375. package/dist/i18n/locales/uk.json +5 -1
  376. package/dist/i18n/locales/zh-CN.json +5 -1
  377. package/dist/i18n/locales/zh-HK.json +5 -1
  378. package/dist/i18n/locales/zh-TW.json +5 -1
  379. package/dist/index.d.ts +2 -0
  380. package/dist/index.js +4 -3
  381. package/dist/llms-full.txt +2216 -1332
  382. package/dist/llms-medium.txt +21 -18
  383. package/dist/llms.txt +2 -2
  384. package/dist/locale-blueprint.json +5 -1
  385. package/dist/plugin.js +17 -40
  386. package/dist/pluginCore.js +30 -0
  387. package/dist/styles.css +2 -2
  388. package/dist/types/ActionButton.d.ts +26 -5
  389. package/dist/types/ActionButton.js +11 -0
  390. package/dist/types/ConfigDefaults.d.ts +34 -3
  391. package/dist/types/ConfigDefaults.js +14 -8
  392. package/dist/types/FieldLayout.d.ts +4 -1
  393. package/dist/types/ItemAccessor.d.ts +3 -1
  394. package/dist/types/ItemPath.d.ts +62 -0
  395. package/dist/types/ptComponentMap.d.ts +1 -1
  396. package/dist/utilities/functions/clickCount.js +14 -0
  397. package/dist/utils/versionCheck.js +1 -1
  398. package/llms.txt +2 -2
  399. package/package.json +16 -4
  400. package/scripts/README.md +35 -29
  401. package/scripts/lib/adoption-checklist.json +2 -2
  402. package/scripts/lib/define-preset-copy.mjs +1 -1
  403. package/scripts/lib/eslint-disable.mjs +5 -3
  404. package/scripts/lib/eslint-plugin.d.ts +2 -0
  405. package/scripts/lib/eslint-plugin.mjs +213 -1
  406. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  407. package/scripts/lib/release-results.mjs +32 -1
  408. package/scripts/lib/renamed-item-field.mjs +4 -1
  409. package/scripts/lib/setup.mjs +8 -0
  410. package/scripts/lib/tab-links.mjs +4 -1
  411. package/scripts/lib/toolchain-check.mjs +125 -7
  412. package/scripts/lib/tree-default-expandable.mjs +53 -0
  413. package/scripts/lib/validate-bb-markup.mjs +537 -53
@@ -34,7 +34,7 @@ render a bubble, or `dot` for a plain presence marker with no content.
34
34
  ```vue
35
35
  <div class="flex items-center gap-5">
36
36
  <BbIndicator :text="4" variant="destructive">
37
- <BbButton variant="outline" icon="lucide:bell">Notifications</BbButton>
37
+ <BbButton variant="outline" icon-only prepend:icon="lucide:bell">Notifications</BbButton>
38
38
  </BbIndicator>
39
39
  <BbIndicator dot variant="success">
40
40
  <BbAvatar size="40">AL</BbAvatar>
@@ -54,10 +54,10 @@ passes through untouched.
54
54
  ```vue
55
55
  <div class="flex items-center gap-5">
56
56
  <BbIndicator :text="128" :max="99" variant="destructive">
57
- <BbButton variant="outline" icon="lucide:bell">Notifications</BbButton>
57
+ <BbButton variant="outline" icon-only prepend:icon="lucide:bell">Notifications</BbButton>
58
58
  </BbIndicator>
59
59
  <BbIndicator :text="8" :max="99" variant="destructive">
60
- <BbButton variant="outline" icon="lucide:mail">Inbox</BbButton>
60
+ <BbButton variant="outline" icon-only prepend:icon="lucide:mail">Inbox</BbButton>
61
61
  </BbIndicator>
62
62
  </div>
63
63
  ```
@@ -97,7 +97,7 @@ move it:
97
97
  <BbAvatar size="40">TR</BbAvatar>
98
98
  </BbIndicator>
99
99
  <BbIndicator :text="9" left variant="info">
100
- <BbButton variant="outline" icon="lucide:git-branch">Branches</BbButton>
100
+ <BbButton variant="outline" icon-only prepend:icon="lucide:git-branch">Branches</BbButton>
101
101
  </BbIndicator>
102
102
  </div>
103
103
  ```
@@ -115,19 +115,19 @@ same name) — that extends the TypeScript union and gives you a
115
115
  ```vue
116
116
  <div class="flex items-center gap-5">
117
117
  <BbIndicator :text="1" variant="default">
118
- <BbButton variant="outline" icon="lucide:bell">Default</BbButton>
118
+ <BbButton variant="outline" icon-only prepend:icon="lucide:bell">Default</BbButton>
119
119
  </BbIndicator>
120
120
  <BbIndicator :text="2" variant="success">
121
- <BbButton variant="outline" icon="lucide:check">Success</BbButton>
121
+ <BbButton variant="outline" icon-only prepend:icon="lucide:check">Success</BbButton>
122
122
  </BbIndicator>
123
123
  <BbIndicator :text="3" variant="info">
124
- <BbButton variant="outline" icon="lucide:info">Info</BbButton>
124
+ <BbButton variant="outline" icon-only prepend:icon="lucide:info">Info</BbButton>
125
125
  </BbIndicator>
126
126
  <BbIndicator :text="4" variant="warning">
127
- <BbButton variant="outline" icon="lucide:triangle-alert">Warning</BbButton>
127
+ <BbButton variant="outline" icon-only prepend:icon="lucide:triangle-alert">Warning</BbButton>
128
128
  </BbIndicator>
129
129
  <BbIndicator :text="5" variant="destructive">
130
- <BbButton variant="outline" icon="lucide:x">Error</BbButton>
130
+ <BbButton variant="outline" icon-only prepend:icon="lucide:x">Error</BbButton>
131
131
  </BbIndicator>
132
132
  </div>
133
133
  ```
@@ -162,13 +162,13 @@ closest, capped at `2xl`.
162
162
  ```vue
163
163
  <div class="flex items-center gap-5">
164
164
  <BbIndicator size="xs" :text="9" variant="destructive">
165
- <BbButton variant="outline" icon="lucide:bell">xs</BbButton>
165
+ <BbButton variant="outline" icon-only prepend:icon="lucide:bell">xs</BbButton>
166
166
  </BbIndicator>
167
167
  <BbIndicator size="md" :text="9" variant="destructive">
168
- <BbButton variant="outline" icon="lucide:bell">md</BbButton>
168
+ <BbButton variant="outline" icon-only prepend:icon="lucide:bell">md</BbButton>
169
169
  </BbIndicator>
170
170
  <BbIndicator size="xl" :text="9" variant="destructive">
171
- <BbButton variant="outline" icon="lucide:bell">xl</BbButton>
171
+ <BbButton variant="outline" icon-only prepend:icon="lucide:bell">xl</BbButton>
172
172
  </BbIndicator>
173
173
  </div>
174
174
  ```
@@ -187,7 +187,7 @@ the fill and `--fg` for the text — inline:
187
187
  <BbAvatar size="40">ZK</BbAvatar>
188
188
  </BbIndicator>
189
189
  <BbIndicator :text="7" :style="{ '--bg': '#0891b2', '--fg': '#fff' }">
190
- <BbButton variant="outline" icon="lucide:bell">Alerts</BbButton>
190
+ <BbButton variant="outline" icon-only prepend:icon="lucide:bell">Alerts</BbButton>
191
191
  </BbIndicator>
192
192
  </div>
193
193
  ```
@@ -222,7 +222,9 @@ clears.
222
222
  </div>
223
223
  <div class="flex items-center gap-1.5">
224
224
  <BbIndicator :text="count || undefined" variant="destructive">
225
- <BbButton icon="lucide:bell" variant="ghost">Notifications</BbButton>
225
+ <BbButton icon-only prepend:icon="lucide:bell" variant="ghost"
226
+ >Notifications</BbButton
227
+ >
226
228
  </BbIndicator>
227
229
  <BbButton size="xs" variant="secondary" @click="onNotify"
228
230
  >Notify</BbButton
@@ -281,7 +283,7 @@ The notification-bell pattern: wrap the bell, never the reverse. A ring on
281
283
  :text="3"
282
284
  variant="destructive"
283
285
  >
284
- <BbButton icon="lucide:bell" variant="ghost">Notifications</BbButton>
286
+ <BbButton icon-only prepend:icon="lucide:bell" variant="ghost">Notifications</BbButton>
285
287
  </BbIndicator>
286
288
  ```
287
289
 
@@ -31,7 +31,6 @@
31
31
 
32
32
  | Variable | Set through | Declared by | What it is |
33
33
  | --- | --- | --- | --- |
34
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
35
34
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
36
35
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
37
36
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -335,20 +334,22 @@ stays free while the buttons move in fixed increments.
335
334
  >
336
335
  <template #prepend="{ decrease, decreaseDisabled }">
337
336
  <BbButton
338
- aria-label="Decrease quantity"
339
337
  :disabled="decreaseDisabled"
340
- icon="lucide:minus"
338
+ icon-only
339
+ prepend:icon="lucide:minus"
341
340
  size="xs"
341
+ text="Decrease quantity"
342
342
  variant="ghost"
343
343
  @click="decrease"
344
344
  />
345
345
  </template>
346
346
  <template #append="{ increase, increaseDisabled }">
347
347
  <BbButton
348
- aria-label="Increase quantity"
349
348
  :disabled="increaseDisabled"
350
- icon="lucide:plus"
349
+ icon-only
350
+ prepend:icon="lucide:plus"
351
351
  size="xs"
352
+ text="Increase quantity"
352
353
  variant="ghost"
353
354
  @click="increase"
354
355
  />
@@ -882,9 +883,9 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
882
883
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
883
884
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
884
885
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
885
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
886
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
886
887
  | `label` | `string` | | yes | Text content of the label of the element. |
887
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
888
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
888
889
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
889
890
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
890
891
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
@@ -990,8 +991,8 @@ Set these on the element, or on a class you put on it, to retune this component
990
991
  - Listed nodes are the ones `BbNumberInput`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbNumberInput.tree.json` (a public component in it is a name: its own tree file has the rest).
991
992
 
992
993
  - `BbNumberInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-number-input__input`, `input` → `input.bb-number-input__input`, `controlAttrs` → `input`
993
- - `CommonField` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
994
- - `CommonFieldInput` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
994
+ - `CommonField` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
995
+ - `CommonFieldInput` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
995
996
 
996
997
  ## See Also
997
998
 
@@ -266,8 +266,26 @@ before it paints.
266
266
  ### Header, footer and body
267
267
 
268
268
  A `title` prop renders the standard header (title text + close button) and wires
269
- `aria-labelledby` for you. Put content in the `default` slot and actions in the
270
- `footer` slot: slot the buttons straight in and the footer lays them out in a
269
+ `aria-labelledby` for you. Put content in the `default` slot. The footer
270
+ buttons are props, exactly as on `BbDialog` (BbDialog § Footer buttons):
271
+ `cancel`, `ok` (submits the one `BbForm` inside and completes with what the
272
+ save resolved; no form: completes with `data`) and `actions`, off unless
273
+ written, plus `@complete` for the panel's own completion hook:
274
+
275
+ ```vue
276
+ <BbOffCanvas
277
+ id="filters"
278
+ v-slot="{ data }"
279
+ cancel
280
+ ok="Apply"
281
+ title="Filters"
282
+ @complete="apply"
283
+ >
284
+ <BbCheckbox v-model="data.archived" label="Show archived" />
285
+ </BbOffCanvas>
286
+ ```
287
+
288
+ For anything else, the `footer` slot replaces them: slot the buttons straight in and the footer lays them out in a
271
289
  row at the end, 8px apart, wrapping (`class="me-auto"` pushes one to the
272
290
  start; a single wrapping `<div>` of yours stretches and keeps its own layout),
273
291
  the same footer as `BbDialog`'s. The body area scrolls internally when content
@@ -619,11 +637,11 @@ treatment in the list, and account/sign-out sit in the footer.
619
637
  </div>
620
638
  <BbButton
621
639
  v-bb-off-canvas="'mobile-nav'"
622
- aria-label="Open navigation"
623
- icon="lucide:menu"
640
+ icon-only
641
+ prepend:icon="lucide:menu"
624
642
  variant="outline"
625
643
  >
626
- Menu
644
+ Open navigation
627
645
  </BbButton>
628
646
  </div>
629
647
  <BbOffCanvas id="mobile-nav" side="left" size="xs" title="Acme Billing">
@@ -1023,8 +1041,8 @@ is kept).
1023
1041
  Edit the opening's `data` directly: every opening holds its own reactive copy
1024
1042
  of what it was given (arrays and plain objects copied all the way down), so
1025
1043
  Cancel is a real discard and reopening starts fresh, with no draft to reseed on
1026
- `@show`. Save hands the copy back with `complete(data)` (or
1027
- `complete(await save(data))` after a request). See
1044
+ `@show`. `ok` hands the copy back (or, with a form inside, what its save
1045
+ resolved). See
1028
1046
  [BbDialog § The data is a copy](./BbDialog.md#the-data-is-a-copy).
1029
1047
 
1030
1048
  **Cancel discards: the panel edits a copy**
@@ -1419,6 +1437,8 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1419
1437
  | Prop | Type | Default | Required | Description |
1420
1438
  | --- | --- | --- | --- | --- |
1421
1439
  | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `close`, `content`, `description`, `footer`, `header`, `root`, `title`. States: `fullscreen`, `open`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbOffCanvasProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
1440
+ | `actions` | `false \| readonly ActionButtonConfig[] \| undefined` | `undefined` | | Footer buttons replacing `ok` / `cancel`, in order: each runs its `onClick`, then completes the panel with `data`. `false`: none. |
1441
+ | `cancel` | `BbAction \| undefined` | | | The dismiss button, before `ok`: `true` (the locale's Cancel), a label, or a button config. Clicked: its `onClick`, then the panel closes as a dismissal (`reason: 'close'`). Unset: no button. |
1422
1442
  | `defaultData` | `Record<string, any> \| undefined` | | | What `data` is when an opening passes none (a create): an object, copied at once, so inputs bind `data.x` with no guard. An opening's data lays over it (`{ ...defaultData, ...row }`, one level). `reset()` restores its keys but keeps an edit's `id`; a close restores it. |
1423
1443
  | `description` | `string \| undefined` | | | One short line under the title, muted (the shadcn `DialogDescription` shape), and the only element `aria-describedby` points at. Keep it to a sentence; anything longer belongs in the body. |
1424
1444
  | `draggable` | `boolean \| undefined` | `false` | | Drag-to-dismiss: a ~50px swipe toward the exit edge (also from the body once it is scrolled to its edge), with a grab handle as the cue. A gesture that starts inside `data-bb-no-drag` never drags the panel. |
@@ -1429,6 +1449,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1429
1449
  | `id` | `string \| undefined` | | | Names the panel for `v-bb-off-canvas="'filters'"` and `useBbOffCanvas`, found nearest to the trigger, so two pages may reuse an id. Also the DOM `id`: one panel per id. |
1430
1450
  | `modelValue` | `boolean \| undefined` | `false` | | Used by v-model to open / close the panel. A panel with no `v-model` starts closed. |
1431
1451
  | `navigation` | `boolean \| undefined` | `false` | | Syncs the open state with the URL: opening writes `?<queryKey>=true`, closing removes it, a URL with the key opens the panel on load, and Back closes it (refused whenever Escape is). Template panels only; keep a record id in your own query. |
1452
+ | `ok` | `BbAction \| undefined` | | | The primary footer button: `true` (the locale's OK), a label, or a button config. Clicked: its `onClick`, else it submits the one `BbForm` inside, else `complete(data)`. Unset: no button. Config sets its look. |
1432
1453
  | `persistent` | `boolean \| undefined` | `false` | | Blocks closing by an outside click, Escape or drag-to-dismiss. The header close (×) STILL closes a persistent drawer, the documented escape hatch: add `hideClose` to remove it, or use `preventClose` to block every dismissal. Programmatic close still works. |
1433
1454
  | `preventClose` | `boolean \| undefined` | ``undefined` (follows a saving form inside)` | | Refuses every user close (backdrop, Escape, drag, the ✕, the slots' `close`) with the deny nudge; `v-model` still closes. Unset: locked while a `BbForm` inside saves (an async `@submit`). `true`: always; `false`: never, not even mid-save. Beside a form: `busy \|\| undefined`. |
1434
1455
  | `queryKey` | `string \| undefined` | `"offcanvas"` | | The query key `navigation` writes. |
@@ -1465,6 +1486,7 @@ States are listed in precedence order: when two are on at once and their entries
1465
1486
 
1466
1487
  ## Events
1467
1488
 
1489
+ - `complete` — `(value: any): void` — The panel completes (`ok`, `complete(value)`): the same value as the opener's `onComplete`, before it. Return a promise to keep the panel open and locked until it settles; `false` or a throw keeps it open.
1468
1490
  - `hidden` — `(): void` — Emitted after the close transition completes and the offcanvas is fully dismissed.
1469
1491
  - `hide` — `(result: BbDialogResult): void` — Emitted as soon as the panel starts to close (model becomes false), with the opening's result: the same object its promise settles with, `{ completed: true, value }` or `{ completed: false, reason }`.
1470
1492
  - `show` — `(): void` — Emitted as soon as the user triggers the open action (model becomes true).
@@ -301,11 +301,11 @@ import type { BbTableColumn } from 'bitboss-ui';
301
301
 
302
302
  type AuditEvent = { id: number; action: string; actor: string; time: string };
303
303
 
304
- const columns: Array<BbTableColumn<AuditEvent>> = [
304
+ const columns = [
305
305
  { key: 'action', label: 'Action' },
306
306
  { key: 'actor', label: 'Actor' },
307
307
  { key: 'time', label: 'When', align: 'right', width: 120 },
308
- ];
308
+ ] satisfies Array<BbTableColumn<AuditEvent>>;
309
309
 
310
310
  const actions = [
311
311
  'member.invited',
@@ -130,9 +130,10 @@ a record and closes itself on save via the `close` callback.
130
130
  <template #activator="{ props }">
131
131
  <BbButton
132
132
  v-bind="props"
133
- aria-label="Rename"
134
- icon="lucide:pencil"
133
+ icon-only
134
+ prepend:icon="lucide:pencil"
135
135
  size="sm"
136
+ text="Rename"
136
137
  variant="ghost"
137
138
  />
138
139
  </template>
@@ -310,9 +311,10 @@ dismissible.
310
311
  <template #activator="{ props }">
311
312
  <BbButton
312
313
  v-bind="props"
313
- aria-label="About retention period"
314
314
  class="shrink-0"
315
- icon="lucide:circle-question-mark"
315
+ icon-only
316
+ prepend:icon="lucide:circle-question-mark"
317
+ text="About retention period"
316
318
  variant="ghost"
317
319
  />
318
320
  </template>
@@ -412,9 +414,10 @@ is `any` per key, so `data.report.title` needs no cast.
412
414
  width: 260,
413
415
  offCanvasProps: { hideClose: true },
414
416
  }"
415
- aria-label="Rename"
416
- icon="lucide:pencil"
417
+ icon-only
418
+ prepend:icon="lucide:pencil"
417
419
  size="sm"
420
+ text="Rename"
418
421
  variant="ghost"
419
422
  />
420
423
  </li>
@@ -542,9 +545,10 @@ utility (BbButton centers labels by default).
542
545
  <template #activator="{ props }">
543
546
  <BbButton
544
547
  v-bind="props"
545
- aria-label="Notifications"
546
- icon="lucide:bell"
548
+ icon-only
549
+ prepend:icon="lucide:bell"
547
550
  size="sm"
551
+ text="Notifications"
548
552
  variant="ghost"
549
553
  />
550
554
  </template>
@@ -646,7 +650,9 @@ declare the ref):
646
650
 
647
651
  ```vue
648
652
  <template>
649
- <BbButton ref="triggerRef" icon="lucide:settings">Options</BbButton>
653
+ <BbButton ref="triggerRef" icon-only prepend:icon="lucide:settings"
654
+ >Options</BbButton
655
+ >
650
656
  <BbPopover :activator="triggerRef">
651
657
  <div class="grid gap-1">
652
658
  <BbSwitch v-model="notify" label="Email me" />
@@ -26,4 +26,4 @@
26
26
 
27
27
  - [BbPopover](./BbPopover.md) — Anchors floating content to reference elements; also the v-bb-popover directive (its body is a BbPopoverPortal or a component).
28
28
  - [BbHoverCardPortal](./BbHoverCardPortal.md) — Registers named slot content that `v-bb-hover-card="'name'"` (or `{ portal: 'name' }`) renders in the card; slot `{ data, close }`.
29
- - [BbConfirmPortal](./BbConfirmPortal.md) — Registers named slot content that confirm() renders via `portal`; slot `{ data, yes, no }`.
29
+ - [BbConfirmPortal](./BbConfirmPortal.md) — Registers named slot content that confirm() renders via `portal`; slot `{ data, ok, cancel }`.
@@ -32,7 +32,6 @@
32
32
  | `--t` | `pt:icon` | `BbBaseRadioIcon` | State-change time: the fill fade and the dot scaling in. |
33
33
  | `--elev` | `pt:icon` | `BbBaseRadioIcon` | Same resting lift as the checkbox glyph — see BbBaseCheckboxIcon. |
34
34
  | `--bg` | `pt:icon` | `BbBaseRadioIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
35
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
36
35
 
37
36
  ## Usage & Guidelines
38
37
 
@@ -318,8 +317,8 @@ ring itself.
318
317
  physical.
319
318
  - `input-align` / `label-align` (`'top' | 'center' | 'bottom'`) are the
320
319
  vertical axis of a side-by-side row. Omitted, the button sits on the
321
- label's first line; `input-align="center"` puts it on the middle of a
322
- described label.
320
+ label's first line (the label column itself sits at the row's top);
321
+ `input-align="center"` puts it on the middle of a described label.
323
322
  - `hide-label` keeps the label for screen readers but hides it visually.
324
323
  - **`reverse`** swaps the label in front of the button. It is an ordinary
325
324
  opt-in boolean: unset and `:reverse="false"` both put the button first,
@@ -538,10 +537,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
538
537
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. |
539
538
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
540
539
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
541
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
540
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
542
541
  | `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
543
542
  | `label` | `string` | | yes | Text content of the label of the element. |
544
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
543
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
545
544
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
546
545
  | `layout` | `Responsive<FieldLayout> \| undefined` | `'auto'` | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
547
546
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
@@ -606,7 +605,7 @@ States are listed in precedence order: when two are on at once and their entries
606
605
  - Listed nodes are the ones `BbRadio`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbRadio.tree.json` (a public component in it is a name: its own tree file has the rest).
607
606
 
608
607
  - `BbRadio` _(this component)_ — its own template binds: `icon` → `BbBaseRadioIcon`
609
- - `CommonField` _(internal — not importable, reach it through `BbRadio`)_ — `BbRadio`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
608
+ - `CommonField` _(internal — not importable, reach it through `BbRadio`)_ — `BbRadio`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
610
609
  - Also mounts `BbBaseRadioIcon`
611
610
 
612
611
  ## See Also
@@ -36,7 +36,6 @@
36
36
  | `--t` | `pt:icon` | `BbBaseRadioIcon` | State-change time: the fill fade and the dot scaling in. |
37
37
  | `--elev` | `pt:icon` | `BbBaseRadioIcon` | Same resting lift as the checkbox glyph — see BbBaseCheckboxIcon. |
38
38
  | `--bg` | `pt:icon` | `BbBaseRadioIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
39
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
40
39
  | `--list-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip behind the triggers |
41
40
  | `--list-border` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border |
42
41
  | `--p` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | strip inner padding — the gutter the indicator sits in, and the scroll inset |
@@ -58,8 +57,6 @@
58
57
  | `--indicator-inset` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge |
59
58
  | `--elev` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The theme's resting lift, composed UNDER the indicator's own shadow |
60
59
  | `--indicator-shadow` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Indicator lift, painted on top of --elev |
61
- | `--divider` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Each button's frame |
62
- | `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked button under the pointer |
63
60
 
64
61
  ## Usage & Guidelines
65
62
 
@@ -93,7 +90,8 @@ included). An object with none of those fields falls back to
93
90
 
94
91
  Pass domain objects to `items` and resolve the display text and stored value
95
92
  with `item-text` / `item-value` — a dot-path or a function. The bound model
96
- holds only the mapped value (an id), which is what you persist. Primitive
93
+ holds only the mapped value (an id), which is what you persist. A typo in a path
94
+ is a type error; under `strictVModel` the `v-model` is typed from it. Primitive
97
95
  `items` (`string[]`) need no mapping and bind to the string itself. Values match
98
96
  by **deep equality**, and duplicate `item-value`s collapse to one button (first
99
97
  wins) — see the
@@ -232,9 +230,24 @@ const plan = ref<string | null>(null); // correct
232
230
  const plan = ref<string[]>([]); // wrong — radio groups don't bind arrays
233
231
  ```
234
232
 
235
- Picking an option **replaces** the value; a radio group can't be emptied by the
236
- user (there's no uncheck). If "none" is a legitimate answer, add an explicit
237
- option for it rather than expecting a cleared model.
233
+ Picking an option **replaces** the value. By default the user can't empty the
234
+ group. When "no answer" is a valid state, set `clearable`: a click on the
235
+ checked option, or **Space** on it, sets the model back to `null`, and a
236
+ double-click picks without clearing. It works under `required` too, and
237
+ validation then flags the empty value. If "none" is an answer of its own, add it
238
+ as an option instead.
239
+
240
+ **Optional yes/no question**
241
+
242
+ ```vue
243
+ <BbRadioGroup
244
+ v-model="state.smoker"
245
+ legend="Do you smoke?"
246
+ :items="['Yes', 'No']"
247
+ clearable
248
+ hint="Click your answer again to clear it."
249
+ />
250
+ ```
238
251
 
239
252
  ### Layout and density
240
253
 
@@ -360,16 +373,18 @@ value a form or a filter submits (a status filter, a period) is still a
360
373
  radiogroup (arrow keys, "2 of 4"), so give the group a tab strip's look:
361
374
  `variant="pill"` (a muted strip, a raised pill under the pick),
362
375
  `variant="line"` (a baseline across the field, a bar under the pick) or
363
- `variant="outline"` (outline buttons side by side, the pick in the button's
364
- pressed state). The
365
- strip, its triggers and the indicator measure exactly as BbTabs', and the
366
- indicator slides as a tab strip's does. The dot is hidden (an `icon` slot
376
+ `variant="outline"` (a set of outline BbButtons, the pick in the button's
377
+ pressed state). On `pill` and `line` the strip, its triggers and the
378
+ indicator measure exactly as BbTabs', and the indicator slides as a tab
379
+ strip's does; `outline` has no indicator, each button paints its own pick,
380
+ so it looks and behaves exactly like a row of `BbButton variant="outline"`
381
+ (`compact` takes the button's `sm` size). The dot is hidden (an `icon` slot
367
382
  shows before the label, like a tab's icon) and the strip never wraps (it
368
383
  scrolls; `outline` buttons wrap onto further lines instead); `list-layout="vertical"` stacks it into a column (the indicator
369
384
  slides on the Y axis), `block` spans the field (the triggers share its width
370
385
  equally on a row, by content on `outline`), and the other layouts and `item-layout` do not apply. The legend, errors, `compact` and
371
386
  `hide-legend` work as on any group. `pt:indicator` reaches the pill or the
372
- bar (the pressed fill on `outline`), and `pt:<part>:pill` /
387
+ bar (`outline` has none), and `pt:<part>:pill` /
373
388
  `pt:<part>:line` / `pt:<part>:outline` style a part in one look only.
374
389
 
375
390
  **Pick a value with a strip look**
@@ -408,8 +423,9 @@ import { BbRadioGroup } from 'bitboss-ui';
408
423
 
409
424
  // Three strip looks on a value picker: `pill` (a muted strip, a raised pill
410
425
  // under the pick), `line` (a baseline across the field, a bar under the pick)
411
- // and `outline` (outline buttons, the pick filled; `block` spans the field in
412
- // equal shares). The indicator slides like a tab strip's, and it is still a
426
+ // and `outline` (outline buttons, the pick in the pressed state; `block`
427
+ // spans the field). On pill and line the indicator slides like a tab strip's;
428
+ // outline buttons paint their own pick. It is still a
413
429
  // radiogroup: arrow keys move and pick, a form submits the value.
414
430
  const statuses = ['All', 'Open', 'Closed', 'Archived'];
415
431
  const status = ref('Open');
@@ -540,6 +556,8 @@ value has to post under a known key in a native (non-JS) form submit.
540
556
  Down/Right to the next, Up/Left to the previous — wrapping around the ends.
541
557
  This is why a radio group is one exclusive choice: moving focus selects.
542
558
  - Disabled options are skipped during arrow navigation.
559
+ - With `clearable`, **Space** on the checked option clears it and keeps focus
560
+ there. Backspace and Delete do nothing.
543
561
 
544
562
  Keep the set short enough that arrow-cycling stays quick; past ~6 options prefer
545
563
  `BbSelect`.
@@ -838,7 +856,7 @@ layered build, `pt:list="[--gap:8px]"` tightens them anywhere.
838
856
  list-layout="horizontal"
839
857
  name="plan"
840
858
  :pt="{
841
- item: 'flex flex-1 flex-col items-start gap-0.5 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2',
859
+ item: 'min-w-28 flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2',
842
860
  }"
843
861
  :pt:item="
844
862
  ({ item }) => item.tier === 'paid' && 'border-amber-300 bg-amber-50'
@@ -847,8 +865,10 @@ layered build, `pt:list="[--gap:8px]"` tightens them anywhere.
847
865
  pt:list="[--gap:8px]"
848
866
  >
849
867
  <template #label="{ item, text }">
850
- <span class="text-sm font-medium">{{ text }}</span>
851
- <span class="text-xs text-(--bb-text-muted)">{{ item.price }}</span>
868
+ <span class="flex flex-col gap-0.5">
869
+ <span class="text-sm font-medium">{{ text }}</span>
870
+ <span class="text-xs text-(--bb-text-muted)">{{ item.price }}</span>
871
+ </span>
852
872
  </template>
853
873
  </BbRadioGroup>
854
874
  </div>
@@ -948,8 +968,8 @@ for a preset that fits any row type (never `<any>`), not an imported
948
968
 
949
969
  - Don't seed the model with an array — radio groups bind a single value; seed
950
970
  `null`.
951
- - Don't expect the user to clear the selection; add an explicit "none" option if
952
- that's a valid answer.
971
+ - Don't expect the user to clear the selection unless the group is `clearable`;
972
+ when "none" is an answer of its own, add it as an option.
953
973
  - Don't reach for standalone `BbRadio` just to stack a few options in a box —
954
974
  that's this component (fieldset + roving focus + item mapping for free).
955
975
  - A `disabled` field on an item object does nothing — it is inert data. Gate
@@ -987,6 +1007,9 @@ for a preset that fits any row type (never `<any>`), not an imported
987
1007
  actually has copy. Messages _also_ render in an `aria-live="polite"` region,
988
1008
  so they are announced the moment they appear — announced on change, re-read
989
1009
  on focus. Keep messages meaningful, not decorative.
1010
+ - A `clearable` group adds a hidden "press Space to clear" hint to each radio's
1011
+ `aria-describedby` (key `radioGroup.clearHint`), dropped while `disabled` or
1012
+ `readonly`.
990
1013
  - `readonly` exposes `aria-readonly` on the `radiogroup` (the `radio` role does
991
1014
  not support it) and still submits; prefer it (with a nearby explanation) over
992
1015
  a silent `disabled`.
@@ -1002,6 +1025,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1002
1025
  | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `description`, `hint`, `icon`, `indicator`, `item`, `itemDescription`, `label`, `legend`, `list`, `message`, `root`. States: `disabled`, `errors`, `hasValue`, `line`, `loading`, `outline`, `pill`, `readonly`, `warnings`, `checked`, `focused`, `focusVisible`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbRadioGroupProps<Row>['pt']` (`BbRadioGroupProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
1003
1026
  | `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
1004
1027
  | `block` | `boolean \| undefined` | `undefined` | | The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`. |
1028
+ | `clearable` | `boolean \| undefined` | `false` | | Clicking the checked option (or Space on it) clears the value to `null`. Off: a radio group can't be emptied. |
1005
1029
  | `compact` | `boolean \| undefined` | `undefined` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one. |
1006
1030
  | `dependencies` | `unknown[] \| undefined` | | | Defines an array of dependencies that will trigger actions in the component upon change. |
1007
1031
  | `depsDebounceTime` | `number \| undefined` | | | Timeout used to debounce response to changes to dependencies. |
@@ -1018,7 +1042,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1018
1042
  | `hideLegend` | `boolean \| undefined` | `false` | | Visually hides the legend of the fieldset while maintaining accessibility. |
1019
1043
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1020
1044
  | `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
1021
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
1045
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1022
1046
  | `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
1023
1047
  | `itemInputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line. |
1024
1048
  | `itemLabelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's label in its row. Omitted, it stays as it is. |
@@ -1028,7 +1052,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1028
1052
  | `items` | `T[] \| ((context: BbRadioGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. |
1029
1053
  | `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
1030
1054
  | `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
1031
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
1055
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1032
1056
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
1033
1057
  | `legend` | `string` | | yes | Text content of the legend. |
1034
1058
  | `legendMode` | `"outside" \| "inside" \| undefined` | | | Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for radio groups. |
@@ -1096,7 +1120,7 @@ States are listed in precedence order: when two are on at once and their entries
1096
1120
  - `keydown` — `(event: KeyboardEvent): void` — Emitted for keyboard interaction on generated radio inputs. Forwards the original DOM `KeyboardEvent`.
1097
1121
  - `mousedown` — `(event: MouseEvent): void` — Emitted when a pointing device button is pressed over a radio input. Forwards the original DOM `MouseEvent`.
1098
1122
  - `mouseup` — `(event: MouseEvent): void` — Emitted when a pointing device button is released over a radio input. Forwards the original DOM `MouseEvent`.
1099
- - `update:modelValue` — `(value: any): void` — Emitted with the newly selected value when the selection changes.
1123
+ - `update:modelValue` — `(value: any): void` — Emitted with the newly selected value when the selection changes; `null` when a `clearable` group is cleared.
1100
1124
 
1101
1125
  ## Slots
1102
1126
 
@@ -1153,22 +1177,14 @@ Set these on the element, or on a class you put on it, to retune this component
1153
1177
  | `--elev` | `.bb-radio-group__list--line` | `none` | |
1154
1178
  | `--list-bg` | `.bb-radio-group__list--outline` | `transparent` | |
1155
1179
  | `--list-border` | `.bb-radio-group__list--outline` | `transparent` | |
1156
- | `--list-h` | `.bb-radio-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | A button's height: BbButton `md` sits one step under the control height. |
1180
+ | `--list-h` | `.bb-radio-group__list--outline` | `auto` | |
1157
1181
  | `--p` | `.bb-radio-group__list--outline` | `0px` | |
1158
1182
  | `--trigger-gap` | `.bb-radio-group__list--outline` | `8px` | |
1159
- | `--trigger-r` | `.bb-radio-group__list--outline` | `var(--bb-radius)` | |
1183
+ | `--trigger-min-h` | `.bb-radio-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | BbButton md |
1160
1184
  | `--trigger-px` | `.bb-radio-group__list--outline` | `12px` | |
1161
- | `--list-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
1162
- | `--hover-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
1163
- | `--active-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
1164
- | `--active-fw` | `.bb-radio-group__list--outline` | `500` | |
1165
- | `--indicator-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline-pressed)` | |
1166
- | `--indicator-border` | `.bb-radio-group__list--outline` | `transparent` | |
1167
- | `--indicator-r` | `.bb-radio-group__list--outline` | `var(--trigger-r)` | |
1168
- | `--indicator-shadow` | `.bb-radio-group__list--outline` | `none` | |
1169
- | `--elev` | `.bb-radio-group__list--outline` | `none` | |
1170
- | `--divider` | `.bb-radio-group__list--outline` | `var(--bb-outline-border)` | Each button's frame |
1171
- | `--hover-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline-hover)` | An unpicked button under the pointer |
1185
+ | `--fs` | `.bb-radio-group__list--outline` | `var(--bb-fs)` | |
1186
+ | `--trigger-r` | `.bb-radio-group__list--outline` | `var(--bb-radius)` | |
1187
+ | `--elev` | `.bb-radio-group__list--outline` | `var(--bb-elev)` | |
1172
1188
 
1173
1189
  ## Component tree
1174
1190
 
@@ -1180,8 +1196,8 @@ Set these on the element, or on a class you put on it, to retune this component
1180
1196
  - Listed nodes are the ones `BbRadioGroup`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbRadioGroup.tree.json` (a public component in it is a name: its own tree file has the rest).
1181
1197
 
1182
1198
  - `BbRadioGroup` _(this component)_ — its own template binds: `indicator` → `span.bb-radio-group__indicator`, `icon` → `BbBaseRadioIcon`
1183
- - `CommonField` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
1184
- - `OptionsContainer` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--list-h`, `--divider`, `--hover-bg`
1199
+ - `CommonField` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
1200
+ - `OptionsContainer` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--trigger-min-h`
1185
1201
  - Also mounts `BbBaseRadioIcon`
1186
1202
 
1187
1203
  ## See Also