bitboss-ui 3.0.0-beta.71 → 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 (359) 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 +1 -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/BbCheckboxGroup.md +2 -1
  10. package/dist/ai/BbColorInput.md +1 -1
  11. package/dist/ai/BbConfirm.md +65 -81
  12. package/dist/ai/BbConfirmPortal.md +2 -2
  13. package/dist/ai/BbDatePicker.md +1 -6
  14. package/dist/ai/BbDatePickerInput.md +2 -2
  15. package/dist/ai/BbDialog.md +230 -164
  16. package/dist/ai/BbDropdown.md +52 -16
  17. package/dist/ai/BbDropdownButton.md +11 -12
  18. package/dist/ai/BbDropzone.md +12 -8
  19. package/dist/ai/BbForm.md +93 -7
  20. package/dist/ai/BbHost.md +2 -2
  21. package/dist/ai/BbHoverCardPortal.md +1 -1
  22. package/dist/ai/BbIcon.md +1 -1
  23. package/dist/ai/BbIndicator.md +17 -15
  24. package/dist/ai/BbNumberInput.md +7 -5
  25. package/dist/ai/BbOffCanvas.md +29 -7
  26. package/dist/ai/BbPagination.md +2 -2
  27. package/dist/ai/BbPopover.md +15 -9
  28. package/dist/ai/BbPopoverPortal.md +1 -1
  29. package/dist/ai/BbRadioGroup.md +29 -7
  30. package/dist/ai/BbRating.md +8 -7
  31. package/dist/ai/BbSelect.md +29 -8
  32. package/dist/ai/BbSelectPopover.md +9 -3
  33. package/dist/ai/BbSlider.md +12 -8
  34. package/dist/ai/BbSpinner.md +3 -2
  35. package/dist/ai/BbSwitch.md +3 -3
  36. package/dist/ai/BbSwitchGroup.md +7 -6
  37. package/dist/ai/BbTable.md +205 -82
  38. package/dist/ai/BbTabs.md +29 -4
  39. package/dist/ai/BbTag.md +1 -1
  40. package/dist/ai/BbTextInput.md +7 -5
  41. package/dist/ai/BbTextarea.md +4 -3
  42. package/dist/ai/BbTimePickerInput.md +1 -1
  43. package/dist/ai/BbToast.md +3 -2
  44. package/dist/ai/BbTooltip.md +22 -17
  45. package/dist/ai/BbTree.md +49 -24
  46. package/dist/ai/CommonFieldInput.md +1 -1
  47. package/dist/ai/changelog.json +238 -9
  48. package/dist/ai/components.json +52 -51
  49. package/dist/ai/composables/useBbDialog.md +5 -8
  50. package/dist/ai/composables/useBbForm.md +3 -0
  51. package/dist/ai/composables/useConfirm.md +65 -56
  52. package/dist/ai/composables/useToast.md +2 -1
  53. package/dist/ai/guides/agent-contract.md +3 -3
  54. package/dist/ai/guides/app-layout.md +3 -2
  55. package/dist/ai/guides/eslint-rules.md +3 -1
  56. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  57. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  58. package/dist/ai/guides/icons-policy.md +7 -5
  59. package/dist/ai/guides/inertia-helpers.md +35 -30
  60. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  61. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  62. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  63. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  64. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  65. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  67. package/dist/ai/guides/migration/components/use-confirm.md +69 -26
  68. package/dist/ai/guides/migration/v2-to-v3.md +52 -10
  69. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  70. package/dist/ai/guides/options-items-playbook.md +4 -3
  71. package/dist/ai/guides/passthrough.md +2 -2
  72. package/dist/ai/helpers/inertia/manifest.json +28 -15
  73. package/dist/ai/helpers/inertia/messages.ts +3 -3
  74. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  75. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  76. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  77. package/dist/ai/index.md +3 -3
  78. package/dist/ai/manifest/common.json +3 -3
  79. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  80. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  81. package/dist/ai/manifest/components/BbBadge.json +8 -7
  82. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  83. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  84. package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
  85. package/dist/ai/manifest/components/BbButton.json +5 -6
  86. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  87. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  88. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  89. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  90. package/dist/ai/manifest/components/BbColorInput.json +1 -1
  91. package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
  92. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  93. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  94. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  95. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  96. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  97. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  98. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  99. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  100. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
  101. package/dist/ai/manifest/components/BbDialog.json +6 -1
  102. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  103. package/dist/ai/manifest/components/BbDropdown.json +9 -8
  104. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  105. package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
  106. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  107. package/dist/ai/manifest/components/BbForm.json +3 -1
  108. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  109. package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
  110. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  111. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  112. package/dist/ai/manifest/components/BbPagination.json +1 -1
  113. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  114. package/dist/ai/manifest/components/BbRating.json +2 -2
  115. package/dist/ai/manifest/components/BbSelect.json +16 -15
  116. package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
  117. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  118. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  119. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  120. package/dist/ai/manifest/components/BbTable.json +15 -14
  121. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  122. package/dist/ai/manifest/components/BbTabs.json +3 -3
  123. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  124. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  125. package/dist/ai/manifest/components/BbTag.json +1 -1
  126. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  127. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  128. package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
  129. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  130. package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
  131. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  132. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  133. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  135. package/dist/ai/manifest/components/BbTree.json +2 -2
  136. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  137. package/dist/ai/manifest/index.json +4 -4
  138. package/dist/ai/manifest/meta.json +5 -1
  139. package/dist/ai/manifest/types.advanced.json +9 -9
  140. package/dist/ai/manifest/types.api.json +6 -5
  141. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  142. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  143. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  144. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  145. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  146. package/dist/ai/recipes/inertia/record-form.md +12 -8
  147. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  148. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  149. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  150. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  151. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  152. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  153. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  154. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  155. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  156. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  157. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  158. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  159. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  160. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  161. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/vue/onboarding.md +5 -4
  165. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/vue/record-form.md +14 -10
  167. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  168. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  169. package/dist/ai/recipes/vue/upload-center.md +17 -9
  170. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  171. package/dist/ai/source/BbAccordion.md +50 -16
  172. package/dist/ai/source/BbBadge.md +420 -26
  173. package/dist/ai/source/BbBadgeButton.md +378 -12
  174. package/dist/ai/source/BbButton.md +205 -55
  175. package/dist/ai/source/BbCalendar.md +5 -0
  176. package/dist/ai/source/BbCheckboxGroup.md +38 -13
  177. package/dist/ai/source/BbConfigScope.md +19 -2
  178. package/dist/ai/source/BbConfirm.md +74 -80
  179. package/dist/ai/source/BbConfirmPortal.md +6 -6
  180. package/dist/ai/source/BbDatePicker.md +9 -2
  181. package/dist/ai/source/BbDatePickerInput.md +3 -1
  182. package/dist/ai/source/BbDialog.md +53 -2
  183. package/dist/ai/source/BbDropdown.md +350 -98
  184. package/dist/ai/source/BbDropdownButton.md +20 -12
  185. package/dist/ai/source/BbDropdownGroup.md +136 -58
  186. package/dist/ai/source/BbForm.md +144 -10
  187. package/dist/ai/source/BbOffCanvas.md +53 -2
  188. package/dist/ai/source/BbPagination.md +1 -1
  189. package/dist/ai/source/BbRadioGroup.md +72 -10
  190. package/dist/ai/source/BbRating.md +30 -22
  191. package/dist/ai/source/BbSelect.md +11 -1
  192. package/dist/ai/source/BbSelectPopover.md +105 -34
  193. package/dist/ai/source/BbSwitch.md +23 -8
  194. package/dist/ai/source/BbSwitchGroup.md +67 -21
  195. package/dist/ai/source/BbTable.md +359 -48
  196. package/dist/ai/source/BbTabs.md +6 -0
  197. package/dist/ai/source/BbTabsList.md +10 -0
  198. package/dist/ai/source/BbTabsPanels.md +6 -0
  199. package/dist/ai/source/BbTabsRoot.md +6 -0
  200. package/dist/ai/source/BbTree.md +14 -4
  201. package/dist/ai/source/CommonFieldInput.md +2 -1
  202. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  203. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  204. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  205. package/dist/components/BbAccordion/types.d.ts +21 -7
  206. package/dist/components/BbAccordion/types.js +1 -1
  207. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  208. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  209. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  210. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  211. package/dist/components/BbBadge/types.d.ts +15 -12
  212. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  213. package/dist/components/BbButton/types.d.ts +7 -6
  214. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  215. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  216. package/dist/components/BbCalendar/types.d.ts +5 -0
  217. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  218. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  219. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  220. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  221. package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
  222. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  223. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  224. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  225. package/dist/components/BbConfirm/types.d.ts +5 -5
  226. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  227. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  228. package/dist/components/BbDatePicker/types.d.ts +5 -0
  229. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  230. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  231. package/dist/components/BbDatePickerInput/types.d.ts +2 -1
  232. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  233. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  234. package/dist/components/BbDialog/overlayActions.js +94 -0
  235. package/dist/components/BbDialog/types.d.ts +24 -0
  236. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  237. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
  238. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  239. package/dist/components/BbDropdown/normalizeGroups.js +58 -48
  240. package/dist/components/BbDropdown/types.d.ts +107 -48
  241. package/dist/components/BbDropdown/types.js +2 -2
  242. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
  243. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  244. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  245. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +240 -198
  246. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  247. package/dist/components/BbForm/recognizeValidation.js +55 -0
  248. package/dist/components/BbForm/validationError.d.ts +10 -0
  249. package/dist/components/BbForm/validationError.js +11 -0
  250. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  251. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  252. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  253. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  254. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  255. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  256. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  257. package/dist/components/BbRadioGroup/types.d.ts +9 -3
  258. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
  259. package/dist/components/BbRating/types.d.ts +3 -2
  260. package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
  261. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  262. package/dist/components/BbSelect/types.d.ts +8 -0
  263. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  264. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  265. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  266. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  267. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  268. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  269. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  270. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  271. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  272. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  273. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  274. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  275. package/dist/components/BbTable/types.d.ts +32 -17
  276. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  277. package/dist/components/BbTabs/types.d.ts +6 -0
  278. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  279. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  280. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  281. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  282. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  283. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  284. package/dist/components/BbTree/types.d.ts +8 -2
  285. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  286. package/dist/composables/formSubmitLock.js +15 -8
  287. package/dist/composables/overlayRegistry.d.ts +5 -0
  288. package/dist/composables/overlayRegistry.js +154 -148
  289. package/dist/composables/useBbDropdown.d.ts +8 -0
  290. package/dist/composables/useBbDropdown.js +3 -1
  291. package/dist/composables/useBbTabs.js +138 -138
  292. package/dist/composables/useConfirm.d.ts +63 -52
  293. package/dist/composables/useConfirm.js +22 -18
  294. package/dist/deprecation/ai-deprecations.json.js +1 -1
  295. package/dist/directives/bbDropdown.d.ts +7 -7
  296. package/dist/directives/bbDropdown.js +21 -14
  297. package/dist/directives/bbTooltip.d.ts +3 -3
  298. package/dist/directives/createPopoverDirective.js +57 -35
  299. package/dist/i18n/locales/ar.json +5 -1
  300. package/dist/i18n/locales/cs.json +5 -1
  301. package/dist/i18n/locales/da.json +5 -1
  302. package/dist/i18n/locales/de-CH.json +5 -1
  303. package/dist/i18n/locales/de.json +5 -1
  304. package/dist/i18n/locales/el.json +5 -1
  305. package/dist/i18n/locales/en-GB.json +5 -1
  306. package/dist/i18n/locales/en.json +5 -1
  307. package/dist/i18n/locales/es-MX.json +5 -1
  308. package/dist/i18n/locales/es.json +5 -1
  309. package/dist/i18n/locales/fa.json +5 -1
  310. package/dist/i18n/locales/fi.json +5 -1
  311. package/dist/i18n/locales/fr.json +5 -1
  312. package/dist/i18n/locales/he.json +5 -1
  313. package/dist/i18n/locales/hu.json +5 -1
  314. package/dist/i18n/locales/it.json +5 -1
  315. package/dist/i18n/locales/ja.json +5 -1
  316. package/dist/i18n/locales/ko.json +5 -1
  317. package/dist/i18n/locales/nb.json +5 -1
  318. package/dist/i18n/locales/nl.json +5 -1
  319. package/dist/i18n/locales/pl.json +5 -1
  320. package/dist/i18n/locales/pt-BR.json +5 -1
  321. package/dist/i18n/locales/pt-PT.json +5 -1
  322. package/dist/i18n/locales/ro.json +5 -1
  323. package/dist/i18n/locales/ru.json +5 -1
  324. package/dist/i18n/locales/sv.json +5 -1
  325. package/dist/i18n/locales/tr.json +5 -1
  326. package/dist/i18n/locales/uk.json +5 -1
  327. package/dist/i18n/locales/zh-CN.json +5 -1
  328. package/dist/i18n/locales/zh-HK.json +5 -1
  329. package/dist/i18n/locales/zh-TW.json +5 -1
  330. package/dist/index.d.ts +2 -0
  331. package/dist/index.js +4 -3
  332. package/dist/llms-full.txt +1984 -1145
  333. package/dist/llms-medium.txt +21 -18
  334. package/dist/llms.txt +2 -2
  335. package/dist/locale-blueprint.json +5 -1
  336. package/dist/plugin.js +17 -40
  337. package/dist/pluginCore.js +30 -0
  338. package/dist/styles.css +2 -2
  339. package/dist/types/ActionButton.d.ts +26 -5
  340. package/dist/types/ActionButton.js +11 -0
  341. package/dist/types/ConfigDefaults.d.ts +34 -3
  342. package/dist/types/ConfigDefaults.js +14 -8
  343. package/dist/types/ItemPath.d.ts +33 -4
  344. package/dist/types/ptComponentMap.d.ts +1 -1
  345. package/dist/utilities/functions/clickCount.js +14 -0
  346. package/dist/utils/versionCheck.js +1 -1
  347. package/llms.txt +2 -2
  348. package/package.json +11 -1
  349. package/scripts/README.md +31 -27
  350. package/scripts/lib/adoption-checklist.json +2 -2
  351. package/scripts/lib/eslint-disable.mjs +5 -3
  352. package/scripts/lib/eslint-plugin.d.ts +2 -0
  353. package/scripts/lib/eslint-plugin.mjs +213 -1
  354. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  355. package/scripts/lib/release-results.mjs +32 -1
  356. package/scripts/lib/renamed-item-field.mjs +4 -1
  357. package/scripts/lib/tab-links.mjs +4 -1
  358. package/scripts/lib/tree-default-expandable.mjs +53 -0
  359. package/scripts/lib/validate-bb-markup.mjs +536 -52
package/README.md CHANGED
@@ -532,11 +532,11 @@ entry is the state itself and is never reported:
532
532
  `bitboss-ui/require-accessible-name` flags an icon-only `BbButton` with no
533
533
  words (no default-slot content, no `text`, no `aria-label` / `aria-labelledby`
534
534
  / `title`), an icon-only `BbBadge` with an empty default slot (its label), and
535
- a `BbProgress` with no `label`: all three render with no accessible name. Put the words in the slot; with `icon` set they are visually hidden and
535
+ a `BbProgress` with no `label`: all three render with no accessible name. Put the words in the slot; with `icon-only` they are visually hidden and
536
536
  still name the button:
537
537
 
538
538
  ```vue
539
- <BbButton icon="lucide:trash">Delete</BbButton>
539
+ <BbButton icon-only prepend:icon="lucide:trash">Delete</BbButton>
540
540
  <BbProgress label="Upload" :model-value="progress" />
541
541
  ```
542
542
 
package/bin/cli.mjs CHANGED
@@ -1712,7 +1712,12 @@ Commands:
1712
1712
  \`text\` field and no \`item-text\`; reads only
1713
1713
  an inline array, or a \`const\` array, \`ref([…])\` or
1714
1714
  \`reactive([…])\` in the same file's
1715
- \`<script setup>\`), \`reserved-key\` (a column
1715
+ \`<script setup>\`), \`unknown-item-key\` (an
1716
+ \`item-text\` / \`item-value\` — or a dropdown group's
1717
+ \`itemText\` / \`itemValue\` / string \`itemProps\` path —
1718
+ naming a field no row has; read only when every row
1719
+ is a plain object literal in the same file),
1720
+ \`reserved-key\` (a column
1716
1721
  \`key\` or item \`value\` whose slot name is one of
1717
1722
  the component's own slots, e.g. a BbTable column keyed
1718
1723
  \`actions\`; read from the manifest, same-file items
@@ -34,8 +34,8 @@ it for FAQs, settings sections, and any "click a title to reveal detail" pattern
34
34
 
35
35
  Each `BbAccordion` is **one** panel controlled by a boolean `v-model`. Compose
36
36
  several for a list; there is no group wrapper. That keeps the model explicit: for
37
- independent panels give each its own boolean, and for single-open behaviour track
38
- one active key yourself (shown below).
37
+ independent panels give each its own boolean; for single-open, give each a
38
+ `value` and share one `v-model` (shown below).
39
39
 
40
40
  Step down the ladder when the composed header doesn't fit:
41
41
 
@@ -45,9 +45,9 @@ Step down the ladder when the composed header doesn't fit:
45
45
  - You only need to animate a height change, with no hide/show state at all →
46
46
  **`BbSmoothHeight`** (`./BbSmoothHeight.md`).
47
47
 
48
- The public surface is small on purpose: `v-model` (boolean), `title`,
49
- `eager`, `transition-duration`, `id`, `heading-level`, three slots, and the
50
- `update:modelValue` event.
48
+ The public surface is small on purpose: `v-model` (boolean, or a shared key
49
+ with `value`), `title`, `disabled`, `eager`, `transition-duration`, `id`,
50
+ `heading-level`, three slots, and the `update:modelValue` event.
51
51
  Everything else is composition.
52
52
 
53
53
  ### Composing an FAQ
@@ -297,10 +297,11 @@ first open); the open/close itself needs no handler.
297
297
 
298
298
  ### Single-open (exclusive) accordions
299
299
 
300
- Track the open index/key and derive
301
- each panel's state from it; opening one closes the rest, and clicking the open
302
- header closes all (the `update:modelValue` payload is `false`, so the key resets
303
- to `null`). Prefer a stable key over an index when the list can reorder.
300
+ Give each panel a `value` and bind one shared `v-model`: a panel is open while
301
+ the model equals its `value`, opening one closes the rest, and clicking the open
302
+ header sets the model to `null`. Use a stable key, not an index, when the list
303
+ can reorder. Several open at once is a boolean per panel
304
+ (`v-model="open[item.id]"` over a `reactive({})`).
304
305
 
305
306
  **Only one plan expanded at a time**
306
307
 
@@ -308,10 +309,10 @@ to `null`). Prefer a stable key over an index when the list can reorder.
308
309
  <template>
309
310
  <div class="max-w-md">
310
311
  <BbAccordion
311
- v-for="(plan, index) in plans"
312
+ v-for="plan in plans"
312
313
  :key="plan.name"
313
- :model-value="openIndex === index"
314
- @update:model-value="openIndex = $event ? index : null"
314
+ v-model="openPlan"
315
+ :value="plan.name"
315
316
  >
316
317
  <template #title>
317
318
  <span class="flex items-center justify-between gap-2">
@@ -353,11 +354,24 @@ const plans: Plan[] = [
353
354
  },
354
355
  ];
355
356
 
356
- // Only one panel open at a time — a plain index keeps them mutually exclusive.
357
- const openIndex = ref<number | null>(0);
357
+ // One shared key: the panel whose `value` it holds is open.
358
+ const openPlan = ref<string | null>('Starter');
358
359
  </script>
359
360
  ```
360
361
 
362
+ ### A section that cannot be opened: `disabled`
363
+
364
+ `disabled` locks the header: it says `aria-disabled` and stays focusable (so a
365
+ screen reader still finds it and a tooltip can say why), but neither a click
366
+ nor the slot's `toggle` opens or closes it. An open panel stays open. Restyle it
367
+ with `pt:header:disabled`.
368
+
369
+ ```vue
370
+ <template>
371
+ <BbAccordion title="Billing" disabled>Billing details</BbAccordion>
372
+ </template>
373
+ ```
374
+
361
375
  ### Nesting accordions
362
376
 
363
377
  Panels nest without extra wiring: the body animates with CSS grid rows, so an
@@ -541,7 +555,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
541
555
  a nested button/link is invalid HTML and splits the click target. Actions
542
556
  belong in the body.
543
557
  - **Don't build a group wrapper** with watchers that force-close siblings —
544
- derive `model-value` from one active key instead (single-open above).
558
+ share one `v-model` with a `value` per panel instead (single-open above).
545
559
  - **Don't add `v-if`/`v-show` around the body** to "optimize" — deferred
546
560
  mounting is already the default; `eager` is the explicit opt-out.
547
561
  - **Hover styles on non-interactive header children won't fire** (they are
@@ -557,6 +571,8 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
557
571
  the accordion in your own `<hN>` instead.
558
572
  - Keyboard comes free with the native button: Tab to the header, Enter/Space
559
573
  toggles. Closed content is `inert`, so it can never be tabbed into.
574
+ - `disabled` uses `aria-disabled`, not the native attribute, so the header
575
+ stays in the Tab order and is announced as unavailable.
560
576
  - Provide a visible, meaningful header label (`title`); the built-in chevron
561
577
  is decorative and hidden from assistive tech (mark your own SVGs in a
562
578
  `#header` `aria-hidden`).
@@ -564,19 +580,21 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
564
580
 
565
581
  ## v-model
566
582
 
567
- - `v-model` — type: `boolean \| undefined`
583
+ - `v-model` — type: `any`
568
584
 
569
585
  ## Props
570
586
 
571
587
  | Prop | Type | Default | Required | Description |
572
588
  | --- | --- | --- | --- | --- |
573
- | `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: `header`, `icon`, `panel`, `root`, `title`. States: `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 `BbAccordionProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
589
+ | `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: `header`, `icon`, `panel`, `root`, `title`. States: `disabled`, `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 `BbAccordionProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
590
+ | `disabled` | `boolean \| undefined` | `false` | | The header does not toggle and says `aria-disabled` (it stays focusable); an open panel stays open. |
574
591
  | `eager` | `boolean \| undefined` | `false` | | Renders the content at mount, while closed, instead of on the first open. Closed content is `inert` and `aria-hidden` either way. |
575
592
  | `headingLevel` | `1 \| 2 \| 3 \| 4 \| 5 \| 6 \| undefined` | | | Wraps the header button in a heading of this level (`<h1>`–`<h6>`, the APG accordion shape) so it joins the page outline: under an `<h2>`, pass `3`. Its margins and font are reset. Omitted, no heading. |
576
593
  | `id` | `string \| undefined` | | | The root's `id`; the header button's id (`<id>_header`) derives from it. Generated when omitted. |
577
- | `modelValue` | `boolean \| undefined` | `false` | | Used by v-model to trigger opening / closing the collapsible. An accordion with no `v-model` starts closed. |
594
+ | `modelValue` | `any` | `false` | | Open (`true`) or closed. With `value`, the key a group of accordions shares: open while it equals `value`, `null` when none is. An accordion with no `v-model` starts closed. Open / closed, or with `value` the key a group of accordions shares: open while it equals `value`. |
578
595
  | `title` | `string \| undefined` | | | The trigger's text, with a chevron at its end that turns when open, in the default look (padding, a hairline under the item). `#title` replaces the text only; `#header` replaces the whole trigger (no chevron, no default look). |
579
596
  | `transitionDuration` | `number \| undefined` | `250` | | How long the transition has to last in milliseconds |
597
+ | `value` | `string \| number \| undefined` | | | This accordion's key in a group sharing one `v-model`: open while the model equals it; a click sets the model to it, or to `null` to close. One open at a time. |
580
598
 
581
599
  ## Passthrough parts and states
582
600
 
@@ -594,11 +612,12 @@ States are listed in precedence order: when two are on at once and their entries
594
612
 
595
613
  | State | When it is on |
596
614
  | --- | --- |
615
+ | `disabled` | Component-wide: `disabled` is set. |
597
616
  | `open` | Component-wide: the panel is open (follows `v-model`). |
598
617
 
599
618
  ## Events
600
619
 
601
- - `update:modelValue` — `(value: boolean): void` — Emitted with the new value whenever `v-model` changes.
620
+ - `update:modelValue` — `(value: any): void` — Emitted with the new value whenever `v-model` changes.
602
621
 
603
622
  ## Slots
604
623
 
@@ -250,10 +250,10 @@ const folders: Folder[] = [
250
250
 
251
251
  ### Icons and icon-only badges
252
252
 
253
- Add `prepend:icon` / `append:icon` to a labelled badge, or `icon` for an
254
- icon-only badge. `icon` takes precedence: when set, `prepend:icon` /
255
- `append:icon` are ignored, and the default slot becomes the badge's visually
256
- hidden accessible label — always supply it.
253
+ Add `prepend:icon` / `append:icon` to a labelled badge. `icon-only` shows
254
+ just its icon (the `prepend:icon` one when it has both), and the label (the
255
+ default slot, or `text`: the slot wins, as on BbButton) becomes its visually
256
+ hidden accessible name — always write it.
257
257
 
258
258
  **Leading icon, trailing icon, and icon-only**
259
259
 
@@ -261,11 +261,11 @@ hidden accessible label — always supply it.
261
261
  <div class="flex flex-wrap items-center gap-2">
262
262
  <BbBadge variant="primary" prepend:icon="lucide:credit-card">Paid</BbBadge>
263
263
  <BbBadge variant="outline" append:icon="lucide:arrow-right">Continue</BbBadge>
264
- <BbBadge variant="secondary" icon="lucide:badge-check">Verified</BbBadge>
264
+ <BbBadge variant="secondary" icon-only prepend:icon="lucide:badge-check">Verified</BbBadge>
265
265
  </div>
266
266
  ```
267
267
 
268
- The slots named after the props (`#icon`, `#prepend:icon`, `#append:icon`)
268
+ The slots named after the props (`#prepend:icon`, `#append:icon`)
269
269
  replace them and render inside the `icon` part, so `pt:icon`, `--icon-size`
270
270
  and the loading spinner still apply. Their scope is the badge's states,
271
271
  `{ activeLink, exactActiveLink, loading }`: a filter chip linking to a page
@@ -307,7 +307,7 @@ while the picked value saves.
307
307
  Both icons
308
308
  </BbBadge>
309
309
  <BbBadge loading variant="outline">Syncing</BbBadge>
310
- <BbBadge icon="lucide:badge-check" loading variant="secondary">
310
+ <BbBadge icon-only prepend:icon="lucide:badge-check" loading variant="secondary">
311
311
  Verifying
312
312
  </BbBadge>
313
313
  </div>
@@ -343,7 +343,7 @@ skipped and the button falls back to the bare localized `badge.clearLabel`.
343
343
  Icons combine with `clearable`: a **`prepend:icon`** stays (it leads the label);
344
344
  an **`append:icon`** shares the trailing slot with the clear button — the icon
345
345
  shows at rest and the clear button reveals over it on **hover/focus** (the same
346
- swap the inputs use); and **`icon`** (icon-only) becomes a removable glyph.
346
+ swap the inputs use); and an **`icon-only`** badge becomes a removable glyph.
347
347
 
348
348
  **Clearable with icons (hover the middle one)**
349
349
 
@@ -351,7 +351,7 @@ swap the inputs use); and **`icon`** (icon-only) becomes a removable glyph.
351
351
  <div class="flex flex-wrap items-center gap-2">
352
352
  <BbBadge clearable prepend:icon="lucide:tag" variant="secondary">Frontend</BbBadge>
353
353
  <BbBadge clearable append:icon="lucide:chevron-down" variant="secondary">Priority</BbBadge>
354
- <BbBadge clearable icon="lucide:user" variant="secondary">Ada Lovelace</BbBadge>
354
+ <BbBadge clearable icon-only prepend:icon="lucide:user" variant="secondary">Ada Lovelace</BbBadge>
355
355
  </div>
356
356
  ```
357
357
 
@@ -475,7 +475,7 @@ popover/tooltip anchor), and directives apply to it.
475
475
 
476
476
  Three structural rules follow from the takeover:
477
477
 
478
- - **The badge's icons move inside the button.** `prepend:icon`, `icon` and the
478
+ - **The badge's icons move inside the button.** `prepend:icon`, the icon-only glyph and the
479
479
  `loading` spinner render within the hit target, so clicking the icon fires the
480
480
  action — they are part of the control, not decoration beside it.
481
481
  - **The label is the companion's slot**, not the badge's. Write
@@ -545,14 +545,14 @@ Clicking the clear button never fires the body's `@click`.
545
545
 
546
546
  #### Icon-only, interactive
547
547
 
548
- With `icon`, the glyph and the visually hidden label both move inside the
548
+ With `icon-only`, the glyph and the visually hidden label both move inside the
549
549
  button — so the slot text becomes the button's accessible name. Never leave it
550
550
  empty here: an icon-only interactive badge with no label is an unnamed control.
551
551
 
552
552
  **An icon-only action pill**
553
553
 
554
554
  ```vue
555
- <BbBadge icon="lucide:bell" variant="outline">
555
+ <BbBadge icon-only prepend:icon="lucide:bell" variant="outline">
556
556
  <BbBadgeButton @click="() => {}">Notification settings</BbBadgeButton>
557
557
  </BbBadge>
558
558
  ```
@@ -621,7 +621,10 @@ const onPick = (option: Status) => {
621
621
  ### Sizes
622
622
 
623
623
  Badges follow the shared `xs → 2xl` scale (default `md`; an invalid size warns
624
- in dev and falls back to `md`). Keep one size per cluster.
624
+ in dev and falls back to `md`). Keep one size per cluster. Like BbButton's,
625
+ `size` takes a breakpoint map (`:size="{ default: 'sm', lg: 'md' }"`), and so
626
+ does `icon-only` (`:icon-only="{ default: true, md: false }"`), switched by CSS
627
+ alone.
625
628
 
626
629
  #### Beside a control: match the button
627
630
 
@@ -716,7 +719,7 @@ selectors like `.bb-badge > .bb-badge__text`, which no longer match.
716
719
 
717
720
  `pt` reaches a named part with a class list — or, in the object form, a
718
721
  style and attributes — optionally only while a state is on. Parts: `root`,
719
- `icon` (every content glyph — the `icon`-mode glyph, `prepend:icon`,
722
+ `icon` (every content glyph — the icon-only glyph, `prepend:icon`,
720
723
  `append:icon`; a broadcast), `spinner` (the loading glyph, which stands in
721
724
  for whichever icon it replaces), `text` (the label span, which owns the
722
725
  truncation) and `clear` (the ✕ that removes the badge). The `__body` wrapper
@@ -871,13 +874,13 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
871
874
  - A plain badge is inline text to assistive tech (no live region) — fine for
872
875
  static pills. For an announced dynamic count pinned to a control, use
873
876
  `BbIndicator` (which is a `role="status"` live region).
874
- - An icon-only badge (`icon`) has no visible text; the default slot is rendered
877
+ - An `icon-only` badge has no visible text; the default slot is rendered
875
878
  as a screen-reader-only label — never leave it empty. In button mode that
876
879
  label is also the **button's accessible name**, so it is doubly required.
877
880
  `bitboss-ui check` and the ESLint rule `bitboss-ui/require-accessible-name`
878
881
  report an empty one as an error. The exception is a purely decorative tile
879
882
  hidden from assistive tech with `aria-hidden="true"` (it lands on the root),
880
- e.g. `<BbBadge aria-hidden="true" icon="lucide:star" />`: nothing to name,
883
+ e.g. `<BbBadge aria-hidden="true" icon-only prepend:icon="lucide:star" />`: nothing to name,
881
884
  so neither tool reports it.
882
885
  - The `clearable` button's accessible name is composed by default: the
883
886
  localized `badge.clearLabel` verb plus the badge body's text ("Remove
@@ -898,10 +901,11 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
898
901
  | `append:icon` | `string \| undefined` | | | Icon rendered after the label. On a `clearable` badge it shares the trailing slot with the clear button: the icon shows at rest and the clear button reveals over it on hover/focus. |
899
902
  | `clearable` | `boolean \| undefined` | `false` | | Renders a trailing clear button and emits `click:clear` when pressed — turns the badge into a dismissible token (the pattern formerly served by `BbChip`). |
900
903
  | `clearableLabel` | `string \| undefined` | | | Accessible name of the clear button, whole: set, it is the name on any body ("Remove the filter Deleted"). Rarely needed: unset, the name is composed from the localized `badge.clearLabel` verb and the badge text ("Remove Italy"), or the verb alone when a `BbBadgeButton` owns the body. |
901
- | `icon` | `string \| undefined` | | | Renders an icon-only badge. When set, `prepend:icon` / `append:icon` are ignored and the default slot becomes the badge's visually hidden accessible label — always provide it. |
902
- | `loading` | `boolean \| undefined` | `false` | | Shows a spinner in place of the leftmost icon (`icon` or `prepend:icon`; the `append:icon` when it is the only one; else the leading slot), as `BbButton` does, with a hidden loading announcement. |
904
+ | `iconOnly` | `Responsive<boolean> \| undefined` | | | Shows only the badge's icon (`prepend:icon` when it has both); the label (`text` or the slot) stays its visually hidden accessible name, so always write it. `true`, or per breakpoint: `{ default: true, md: false }`. |
905
+ | `loading` | `boolean \| undefined` | `false` | | Shows a spinner in place of the leftmost icon (`prepend:icon`; the `append:icon` when it is the only one; else the leading slot), as `BbButton` does, with a hidden loading announcement. |
903
906
  | `prepend:icon` | `string \| undefined` | | | Icon rendered before the label. |
904
- | `size` | `'xs'` \| `'sm'` \| `'md'` \| `'lg'` \| `'xl'` \| `'2xl'` | `'md'` | | Preset size of the badge. |
907
+ | `size` | `Responsive<keyof Sizes> \| undefined` | `'md'` | | Preset size of the badge: one size, or per breakpoint (`{ default: 'sm', lg: 'md' }`), as on `BbButton`. |
908
+ | `text` | `string \| undefined` | | | The label, when the default slot is empty (the slot wins), as on `BbButton`. |
905
909
  | `variant` | `'outline'` \| `'primary'` \| `'destructive'` \| `'secondary'` \| `'none'` | `'primary'` | | Visual variant: `primary`, `secondary`, `destructive`, or `outline`. Status colours are a registration (vite plugin `components.BbBadge.variants`, the `soft-*` palette in design-language.md) styled as `.bb-badge--<variant>`. `'none'` renders no variant class: set `--bg` / `--fg` on the element. |
906
910
 
907
911
  ## Passthrough parts and states
@@ -935,9 +939,8 @@ States are listed in precedence order: when two are on at once and their entries
935
939
  ## Slots
936
940
 
937
941
  - `append:icon` — scope: `BbBadgeIconSlotProps` `{ activeLink: boolean; exactActiveLink: boolean; loading: boolean }` — The trailing icon, replacing `append:icon`; inside the `icon` part.
938
- - `default` — scope: `object` — The badge's label content. When `icon` is set this becomes the visually hidden accessible label. Render a `BbBadgeButton` here to make the badge body interactive (the wrapper stays a passive `<span>`).
939
- - `icon` — scope: `BbBadgeIconSlotProps` `{ activeLink: boolean; exactActiveLink: boolean; loading: boolean }` — The glyph of an icon-only badge, replacing the `icon` prop. Renders inside the `icon` part: `pt:icon`, `--icon-size` and the loading spinner apply.
940
- - `prepend:icon` — scope: `BbBadgeIconSlotProps` `{ activeLink: boolean; exactActiveLink: boolean; loading: boolean }` — The leading icon, replacing `prepend:icon`; inside the `icon` part.
942
+ - `default` — scope: `object` — The badge's label content. With `icon-only` this becomes the visually hidden accessible label. Render a `BbBadgeButton` here to make the badge body interactive (the wrapper stays a passive `<span>`).
943
+ - `prepend:icon` — scope: `BbBadgeIconSlotProps` `{ activeLink: boolean; exactActiveLink: boolean; loading: boolean }` — The leading icon, replacing `prepend:icon` (the one `icon-only` shows). Renders inside the `icon` part: `pt:icon`, `--icon-size` and the loading spinner apply.
941
944
 
942
945
  ## CSS custom properties
943
946
 
@@ -763,7 +763,7 @@ Set these on the element, or on a class you put on it, to retune this component
763
763
  - `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbDropdownList`
764
764
  - `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
765
765
  - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
766
- - `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbBaseButton`, `BbSpinner`
766
+ - `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__prepend-icon`, `icon` → `BbIcon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbBaseButton`, `BbSpinner`, `BbIcon`
767
767
  - Also mounts `BbIcon`
768
768
 
769
769
  ## See Also
@@ -385,15 +385,18 @@ padding, icon size and radius stay at the `default` entry's values.
385
385
 
386
386
  ### Icons
387
387
 
388
- Use `prepend:icon` / `append:icon` for labelled buttons, and `icon` for
389
- icon-only buttons. Accessibility here is **symmetric**: the label content still
390
- matters, it is just rendered visually hidden (`bb-sr-only`) when `icon` is set. So give an icon-only
391
- button its accessible name the same way as any other — through the default slot
392
- (or `text`): `<BbButton icon="lucide:settings">Settings</BbButton>` renders no
393
- visible text but announces "Settings". `aria-label` is plan B — an override for
394
- when the accessible name must differ from (or you can't supply) slot content.
395
- Just don't ship an icon-only button with neither. When `icon` is set,
396
- `append:icon` is ignored. Icons scale with the button's `size`. Icon names come
388
+ Use `prepend:icon` / `append:icon` beside the label. A button always writes
389
+ its label; `icon-only` shows just its icon and keeps the label as the
390
+ accessible name, visually hidden:
391
+ `<BbButton icon-only prepend:icon="lucide:settings">Settings</BbButton>`
392
+ renders no visible text but announces "Settings". With both icons it shows
393
+ the `prepend:icon` one. `aria-label` is plan B, an override for when the name
394
+ must differ from the label. Icons scale with the button's `size`.
395
+
396
+ `icon-only` also takes a breakpoint map, switched by CSS alone (no render,
397
+ SSR-safe): `:icon-only="{ default: true, md: false }"` is the icon below
398
+ 768px and the label from there up. Each value holds from its breakpoint up,
399
+ as `size`'s do. Icon names come
397
400
  from an installed provider set (e.g. `lucide:*`) or from your own SVGs as
398
401
  `local:<file-name>` (see the icons policy) — a brand mark or a custom glyph is
399
402
  a `local:` file in your `iconDir`, not a hand-made icon component wrapped in a
@@ -416,14 +419,14 @@ a `local:` file in your `iconDir`, not a hand-made icon component wrapped in a
416
419
  <BbButton variant="primary" prepend:icon="lucide:plus">New invoice</BbButton>
417
420
  <BbButton variant="outline" append:icon="lucide:download">Export</BbButton>
418
421
  <!-- Label comes from slot content, rendered visually hidden — no aria-label needed. -->
419
- <BbButton variant="ghost" icon="lucide:settings">Settings</BbButton>
422
+ <BbButton variant="ghost" icon-only prepend:icon="lucide:settings">Settings</BbButton>
420
423
  </div>
421
424
  </div>
422
425
  ```
423
426
 
424
427
  To change the glyph with the button's state (a filled star while a toggle is
425
428
  on, a solid icon on the current page's link), use the slot named after the
426
- prop: `#icon`, `#prepend:icon`, `#append:icon`. The slot replaces the prop and
429
+ prop: `#prepend:icon`, `#append:icon`. The slot replaces the prop and
427
430
  renders inside the `icon` part, so `pt:icon`, `--icon-size` and the loading
428
431
  spinner work as they do on the prop's glyph. Its scope is the button's states:
429
432
  `{ activeLink, exactActiveLink, pressed, loading, disabled }`. What you put in
@@ -561,7 +564,7 @@ handled. For form-ish multi-selection prefer `BbCheckboxGroup` /
561
564
 
562
565
  Toggles don't have to be exclusive. Give each button its own seeded boolean
563
566
  model for independent on/off state — the classic formatting toolbar. Combine
564
- with `icon` and `size="xs"` for the dense icon-only look; the slot content
567
+ with `icon-only` and `size="xs"` for the dense icon-only look; the slot content
565
568
  stays on as the accessible name:
566
569
 
567
570
  **Icon-only formatting toolbar**
@@ -577,7 +580,8 @@ stays on as the accessible name:
577
580
  <BbButton
578
581
  v-model="bold"
579
582
  group
580
- icon="lucide:bold"
583
+ icon-only
584
+ prepend:icon="lucide:bold"
581
585
  size="xs"
582
586
  variant="outline"
583
587
  >
@@ -586,7 +590,8 @@ stays on as the accessible name:
586
590
  <BbButton
587
591
  v-model="italic"
588
592
  group
589
- icon="lucide:italic"
593
+ icon-only
594
+ prepend:icon="lucide:italic"
590
595
  size="xs"
591
596
  variant="outline"
592
597
  >
@@ -595,7 +600,8 @@ stays on as the accessible name:
595
600
  <BbButton
596
601
  v-model="underline"
597
602
  group
598
- icon="lucide:underline"
603
+ icon-only
604
+ prepend:icon="lucide:underline"
599
605
  size="xs"
600
606
  variant="outline"
601
607
  >
@@ -1035,7 +1041,7 @@ library's public types are not allowed to import.
1035
1041
  `pt` reaches a named part of the button with a class list — or, in the
1036
1042
  object form, a style and attributes — optionally only while a state is on.
1037
1043
  Parts: `root` (the button), `icon` (every content icon the button renders:
1038
- `icon`, `prepend:icon`, `append:icon` — a broadcast), `spinner`, `text` (the
1044
+ `prepend:icon`, `append:icon` — a broadcast), `spinner`, `text` (the
1039
1045
  label span). Typography inherits from `root`, so reach for `text` only when a
1040
1046
  class must apply to the label ALONE — a mono font, say (it already ends a long
1041
1047
  label in "…" without clipping the icons beside it). That span also carries the margin the label slides by
@@ -1209,8 +1215,8 @@ const revoke = async (key: ApiKey) => {
1209
1215
  title: `Revoke "${key.label}"?`,
1210
1216
  text: 'Integrations using this key will stop working immediately. This cannot be undone.',
1211
1217
  variant: 'destructive',
1212
- yes: { text: 'Revoke key', 'prepend:icon': 'lucide:trash-2' },
1213
- no: 'Keep key',
1218
+ ok: { text: 'Revoke key', 'prepend:icon': 'lucide:trash-2' },
1219
+ cancel: 'Keep key',
1214
1220
  });
1215
1221
  if (ok) keys.value = keys.value.filter((k) => k.id !== key.id);
1216
1222
  };
@@ -1233,12 +1239,12 @@ const revoke = async (key: ApiKey) => {
1233
1239
  <div class="flex items-center gap-1.5">
1234
1240
  <BbIndicator :text="3" variant="destructive">
1235
1241
  <!-- Accessible name from slot content, rendered visually hidden. -->
1236
- <BbButton variant="outline" icon="lucide:bell">Notifications</BbButton>
1242
+ <BbButton variant="outline" icon-only prepend:icon="lucide:bell">Notifications</BbButton>
1237
1243
  </BbIndicator>
1238
1244
  <BbButton
1239
1245
  v-bb-tooltip="'Workspace settings'"
1240
1246
  variant="ghost"
1241
- icon="lucide:settings"
1247
+ icon-only prepend:icon="lucide:settings"
1242
1248
  >
1243
1249
  Workspace settings
1244
1250
  </BbButton>
@@ -1293,8 +1299,8 @@ Anti-patterns:
1293
1299
  across a `group`'s shared edge, a table cell's padding in a table, and none
1294
1300
  on `variant="link"`. A mouse gets the visual box only.
1295
1301
  - Icon-only buttons still need an accessible name, but it works like any other
1296
- button: put it in the default slot (or `text`) and it renders visually hidden (`bb-sr-only`) when
1297
- `icon` is set — not removed. Use `aria-label` only to override that name, not
1302
+ button: put it in the default slot (or `text`) and `icon-only` renders it
1303
+ visually hidden — not removed. Use `aria-label` only to override that name, not
1298
1304
  as the default mechanism. Never ship an icon-only button with no name at all:
1299
1305
  `bitboss-ui check` and the ESLint rule `bitboss-ui/require-accessible-name`
1300
1306
  report one as an error.
@@ -1340,7 +1346,7 @@ Anti-patterns:
1340
1346
  | `group` | `boolean \| undefined` | `false` | | Identifies the button as part of a button group: adjacent `group` buttons fuse into one segment (shared borders and radius). Adjacent `group` toggles (each with a `v-model`) are also one Tab stop, with ArrowLeft / ArrowRight / Home / End moving between them. |
1341
1347
  | `headers` | `object \| undefined` | | | Additional HTTP headers forwarded to Inertia when navigating via `href` in an Inertia-enabled app. |
1342
1348
  | `href` | `string \| { url: string; method: "get" \| "post" \| "put" \| "patch" \| "delete"; } \| undefined` | | | The link target: renders an anchor (an Inertia `<Link>` under Inertia). Also takes Inertia's `{ url, method }`, a Wayfinder route: Inertia visits with its method; elsewhere the link is its `url`. |
1343
- | `icon` | `string \| undefined` | | | Used when only an icon with no text should be displayed. |
1349
+ | `iconOnly` | `Responsive<boolean> \| undefined` | | | Shows only the button's icon (`prepend:icon` when it has both); the label is hidden but stays its accessible name, so always write it. `true`, or per breakpoint: `{ default: true, md: false }`. |
1344
1350
  | `instant` | `boolean \| undefined` | `false` | | Inertia: navigate optimistically on click and reconcile when the response lands, instead of waiting for the round trip. |
1345
1351
  | `interactiveWhileLoading` | `boolean \| undefined` | `false` | | Keeps the button clickable while it is loading. Buttons are disabled while loading by default; this escape hatch exists for toggles that must stay interactive (e.g. the dropdown-button caret). |
1346
1352
  | `loading` | `boolean \| undefined` | `false` | | Triggers a loading indicator. A loading button is soft-disabled on its own (`aria-disabled`, out of the tab order, clicks and navigation blocked) and keeps its variant colours; with `disabled` set too, loading still wins the look. |
@@ -1410,8 +1416,7 @@ States are listed in precedence order: when two are on at once and their entries
1410
1416
 
1411
1417
  - `append:icon` — scope: `BbButtonIconSlotProps` `{ activeLink: boolean; exactActiveLink: boolean; pressed: boolean; loading: boolean; disabled: boolean }` — The trailing icon, replacing `append:icon`; inside the `icon` part.
1412
1418
  - `default` — scope: `BbLinkSlotProps` `{ activeLink: boolean; exactActiveLink: boolean }` — Primary content rendered inside the button. Falls back to the `text` prop when empty. A link's slot gets `{ activeLink, exactActiveLink }`: whether it points at the current page (both `false` on a button).
1413
- - `icon` — scope: `BbButtonIconSlotProps` `{ activeLink: boolean; exactActiveLink: boolean; pressed: boolean; loading: boolean; disabled: boolean }` — The icon of an icon-only button, replacing the `icon` prop. Renders inside the `icon` part: `pt:icon`, `--icon-size` and the loading spinner apply.
1414
- - `prepend:icon` — scope: `BbButtonIconSlotProps` `{ activeLink: boolean; exactActiveLink: boolean; pressed: boolean; loading: boolean; disabled: boolean }` — The leading icon, replacing `prepend:icon`; inside the `icon` part.
1419
+ - `prepend:icon` — scope: `BbButtonIconSlotProps` `{ activeLink: boolean; exactActiveLink: boolean; pressed: boolean; loading: boolean; disabled: boolean }` — The leading icon, replacing `prepend:icon` (the one `icon-only` shows). Renders inside the `icon` part: `pt:icon`, `--icon-size` and the loading spinner apply.
1415
1420
 
1416
1421
  ## Exposed (template ref)
1417
1422
 
@@ -1495,9 +1500,9 @@ Set these on the element, or on a class you put on it, to retune this component
1495
1500
  - **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `BbButton`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
1496
1501
  - Listed nodes are the ones `BbButton`'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/BbButton.tree.json` (a public component in it is a name: its own tree file has the rest).
1497
1502
 
1498
- - `BbButton` _(this component)_ — its own template binds: `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`
1503
+ - `BbButton` _(this component)_ — its own template binds: `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__prepend-icon`, `icon` → `BbIcon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`
1499
1504
  - `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
1500
- - Also mounts `BbIcon`, `BbSpinner`
1505
+ - Also mounts `BbSpinner`, `BbIcon`
1501
1506
 
1502
1507
  ## See Also
1503
1508
 
@@ -748,6 +748,7 @@ the page is `BbDatePicker`.
748
748
  | `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: `arrow`, `cellColumnHeader`, `day`, `dayButton`, `header`, `item`, `month`, `monthItem`, `root`, `week`, `weekNumber`, `year`, `yearItem`. States: `disabled`, `highlighted`, `inRange`, `outside`, `rangeEnd`, `rangeStart`, `selected`, `today`, `active`. 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 `BbCalendarProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
749
749
  | `activeSegment` | `'start'` \| `'end'` | | | Which end the time rail edits in range + `type="datetime"` (`v-model:active-segment`). Standalone use manages this internally; an embedding host (the date input) drives it from its focused field. Ignored outside range + datetime. |
750
750
  | `ampm` | `boolean \| undefined` | `false` | | 12-hour display with an AM/PM column (requires `type="datetime"`); emits stay 24h. |
751
+ | `clearable` | `boolean \| undefined` | `false` | | Clicking the selected date (week, month, year) again clears a single value. Off: re-picking keeps it. `multiple` and `range` ignore it. |
751
752
  | `disabled` | `boolean \| undefined` | `false` | | Disables every cell, the navigation and the time rail. |
752
753
  | `firstDayOfWeek` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| undefined` | `the locale's week start` | | First day of the week (0 = Sunday … 6 = Saturday). Omitted, the active locale's week start: Monday for `it`, `de`, `fr`, `en-gb`…, Sunday for bare `en` (US) and `pt` (Brazil). Ignored under `type="week"`: ISO weeks run Monday to Sunday, so a week grid always starts on Monday. |
753
754
  | `floating` | `boolean \| undefined` | `false` | | Emit plain calendar strings instead of zoned ISO instants. Implied (and forced) by `type="week"`, `type="month"` and `type="year"`. |
@@ -360,9 +360,10 @@ crop included; in a carousel given a height, it shrinks to make room.
360
360
  <template #overlay="{ item }">
361
361
  <div class="absolute inset-x-0 top-0 aspect-video">
362
362
  <BbButton
363
- :aria-label="`Play: ${item?.title}`"
364
363
  class="absolute top-1/2 left-1/2 -translate-1/2"
365
- icon="lucide:play"
364
+ icon-only
365
+ prepend:icon="lucide:play"
366
+ :text="`Play: ${item?.title}`"
366
367
  variant="secondary"
367
368
  />
368
369
  <span
@@ -664,10 +665,11 @@ edges, over the peeking slides.
664
665
  </BbBadge>
665
666
  <BbButton
666
667
  v-if="item"
667
- :aria-label="`Save ${item.name}`"
668
668
  class="absolute top-2 right-2"
669
- icon="lucide:heart"
669
+ icon-only
670
670
  :model-value="saved.has(item.id)"
671
+ prepend:icon="lucide:heart"
672
+ :text="`Save ${item.name}`"
671
673
  variant="secondary"
672
674
  @update:model-value="toggle(item.id)"
673
675
  />
@@ -150,7 +150,8 @@ The mapping grammar (shared by every items-driven component — see the
150
150
 
151
151
  - **Primitive `items`** (`string[]` / `number[]`): omit both props; the value is
152
152
  the primitive itself.
153
- - **Dot path**: `item-value="id"`, `item-text="profile.fullName"`.
153
+ - **Dot path**: `item-value="id"`, `item-text="profile.fullName"`. A typo is
154
+ a type error; under `strictVModel` the `v-model` is typed from the path.
154
155
  - **Extractor function** when a path can't express it:
155
156
  `:item-text="(c) => c.label + ' (' + c.region + ')'"`.
156
157
 
@@ -812,7 +812,7 @@ Set these on the element, or on a class you put on it, to retune this component
812
812
 
813
813
  - `BbColorInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-color-input__input`, `input` → `input.bb-color-input__input`, `indicator` → `button.bb-color-input__indicator`, `suffix` → `span.bb-field-input__suffix`; hands `BbColorPalette` the pt map `{ panel: 'panel', sheet: 'sheet', swatch: 'swatch' }` (ours → theirs)
814
814
  - `CommonField` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'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`
815
- - `CommonFieldInput` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
815
+ - `CommonFieldInput` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
816
816
  - `BbColorPalette` _(public — [contract](./BbColorPalette.md))_ — its own pt parts (`BbColorPalette`): `swatch` → `button.bb-color-palette__swatch`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs); documented CSS variables: `--edge`; also mounts `BbIcon`, `CommonPopover`
817
817
  - `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
818
818
  - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`