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/dist/ai/BbTabs.md CHANGED
@@ -187,6 +187,29 @@ const stages: BbTabsItem[] = [
187
187
  </script>
188
188
  ```
189
189
 
190
+ #### Tabs a user may not see: `hidden`
191
+
192
+ Gate tabs by permission or record state with one `hidden` expression per tab,
193
+ instead of building `items` with `push` or conditional spreads. A hidden tab
194
+ has no trigger and no panel (`eager` included), and neither the arrow keys nor
195
+ a `?tab=` URL reach it. The selection is never moved for you: a `v-model` (or
196
+ a `useBbTabs` `select`) naming a hidden tab keeps it, and the strip then shows
197
+ no active tab and no panel until the model changes or the tab shows again. In
198
+ link mode a hidden current page marks no link current. With no `v-model`, the
199
+ first enabled tab shown is selected.
200
+
201
+ ```ts
202
+ import type { BbTabsItem } from 'bitboss-ui';
203
+
204
+ declare const can: (privilege: string) => boolean;
205
+
206
+ const items: BbTabsItem[] = [
207
+ { value: 'profile', label: 'Profile' },
208
+ { value: 'billing', label: 'Billing', hidden: !can('billing') },
209
+ { value: 'audit', label: 'Audit log', hidden: !can('audit') },
210
+ ];
211
+ ```
212
+
190
213
  ### Rich labels and badges
191
214
 
192
215
  Replace a tab's plain text with the `<value>:label` slot (one specific tab) or
@@ -1087,22 +1110,24 @@ so they dim at the ends.
1087
1110
  <BbTabs v-model="active" block compact :items="releases">
1088
1111
  <template #wrapper:prepend="{ canScrollStart, scroll }">
1089
1112
  <BbButton
1090
- aria-label="Scroll tabs back"
1091
1113
  class="me-1 shrink-0 rtl:-scale-x-100"
1092
1114
  :disabled="!canScrollStart"
1093
- icon="lucide:chevron-left"
1115
+ icon-only
1116
+ prepend:icon="lucide:chevron-left"
1094
1117
  size="sm"
1118
+ text="Scroll tabs back"
1095
1119
  variant="ghost"
1096
1120
  @click="scroll('start')"
1097
1121
  />
1098
1122
  </template>
1099
1123
  <template #wrapper:append="{ canScrollEnd, scroll }">
1100
1124
  <BbButton
1101
- aria-label="Scroll tabs forward"
1102
1125
  class="ms-1 shrink-0 rtl:-scale-x-100"
1103
1126
  :disabled="!canScrollEnd"
1104
- icon="lucide:chevron-right"
1127
+ icon-only
1128
+ prepend:icon="lucide:chevron-right"
1105
1129
  size="sm"
1130
+ text="Scroll tabs forward"
1106
1131
  variant="ghost"
1107
1132
  @click="scroll('end')"
1108
1133
  />
package/dist/ai/BbTag.md CHANGED
@@ -620,7 +620,7 @@ Set these on the element, or on a class you put on it, to retune this component
620
620
 
621
621
  - `BbTag` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-tag__input`, `input` → `input.bb-tag__input`
622
622
  - `CommonField` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'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`
623
- - `CommonFieldInput` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'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`
623
+ - `CommonFieldInput` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'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`
624
624
  - `ChipsBox` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `badge` → `BbBadge`
625
625
  - `BbBadge` _(public — [contract](./BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
626
626
  - `CommaBox` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `comma` → `span.bb-tag__comma`
@@ -388,8 +388,9 @@ The full slot ring, inside → out:
388
388
  >
389
389
  <template #append:outer>
390
390
  <BbButton
391
- aria-label="Copy API key"
392
- icon="lucide:copy"
391
+ icon-only
392
+ prepend:icon="lucide:copy"
393
+ text="Copy API key"
393
394
  variant="ghost"
394
395
  />
395
396
  </template>
@@ -597,9 +598,10 @@ in the `#append` slot to flip it:
597
598
  >
598
599
  <template #append>
599
600
  <BbButton
600
- :aria-label="revealed ? 'Hide password' : 'Show password'"
601
- :icon="revealed ? 'lucide:eye-off' : 'lucide:eye'"
601
+ icon-only
602
+ :prepend:icon="revealed ? 'lucide:eye-off' : 'lucide:eye'"
602
603
  size="sm"
604
+ :text="revealed ? 'Hide password' : 'Show password'"
603
605
  variant="ghost"
604
606
  @click="revealed = !revealed"
605
607
  />
@@ -1415,7 +1417,7 @@ Set these on the element, or on a class you put on it, to retune this component
1415
1417
 
1416
1418
  - `BbTextInput` _(this component)_ — its own template binds: `input` → `input.bb-text-input__input`, `controlAttrs` → `input.bb-text-input__input`
1417
1419
  - `CommonField` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'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`
1418
- - `CommonFieldInput` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'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`
1420
+ - `CommonFieldInput` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'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`
1419
1421
 
1420
1422
  ## See Also
1421
1423
 
@@ -591,8 +591,9 @@ The full slot ring, inside → out:
591
591
  >
592
592
  <template #append:outer>
593
593
  <BbButton
594
- aria-label="Copy install snippet"
595
- icon="lucide:copy"
594
+ icon-only
595
+ prepend:icon="lucide:copy"
596
+ text="Copy install snippet"
596
597
  variant="ghost"
597
598
  />
598
599
  </template>
@@ -1153,7 +1154,7 @@ Set these on the element, or on a class you put on it, to retune this component
1153
1154
 
1154
1155
  - `BbTextarea` _(this component)_ — its own template binds: `controlAttrs` → `textarea.bb-textarea__input`, `input` → `textarea.bb-textarea__input`
1155
1156
  - `CommonField` _(internal — not importable, reach it through `BbTextarea`)_ — `BbTextarea`'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`
1156
- - `CommonFieldInput` _(internal — not importable, reach it through `BbTextarea`)_ — `BbTextarea`'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`
1157
+ - `CommonFieldInput` _(internal — not importable, reach it through `BbTextarea`)_ — `BbTextarea`'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`
1157
1158
  - Also mounts `BbSmoothHeight`
1158
1159
 
1159
1160
  ## See Also
@@ -432,7 +432,7 @@ Set these on the element, or on a class you put on it, to retune this component
432
432
  - `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`
433
433
  - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
434
434
  - `CommonField` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
435
- - `CommonFieldInput` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
435
+ - `CommonFieldInput` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
436
436
  - `CommonTimeSelector` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`
437
437
  - `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
438
438
  - Also mounts `BbIcon`, `CommonPopover`
@@ -396,7 +396,8 @@ toast expires, the delete simply stands.
396
396
  >
397
397
  <span class="truncate text-sm">{{ reply.title }}</span>
398
398
  <BbButton
399
- icon="lucide:trash-2"
399
+ icon-only
400
+ prepend:icon="lucide:trash-2"
400
401
  size="xs"
401
402
  variant="ghost"
402
403
  @click="removeReply(reply)"
@@ -839,7 +840,7 @@ Set these on the element, or on a class you put on it, to retune this component
839
840
  - `BbToast` _(this component)_
840
841
  - `BbToastRegion` _(internal — not importable, reach it through `BbToast`)_ — `BbToast`'s pt parts land here: `root` → `ol.bb-toast`
841
842
  - `BbToastMessage` _(internal — not importable, reach it through `BbToast`)_ — also mounts `BbIcon`, `BbSpinner`
842
- - `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`, `BbSpinner`
843
+ - `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 `BbSpinner`, `BbIcon`
843
844
  - `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
844
845
 
845
846
  ## See Also
@@ -57,8 +57,8 @@ label in a real SFC, use `v-bb-tooltip`, as the toolbar companion below does.
57
57
  <template #activator="{ props }">
58
58
  <BbButton
59
59
  v-bind="props"
60
- aria-label="Download CSV"
61
- icon="lucide:download"
60
+ text="Download CSV"
61
+ icon-only prepend:icon="lucide:download"
62
62
  size="sm"
63
63
  variant="outline"
64
64
  />
@@ -129,14 +129,14 @@ through; the class is still emitted.
129
129
  <div class="flex gap-1.5">
130
130
  <BbTooltip text="Duplicate this record">
131
131
  <template #activator="{ props }">
132
- <BbButton v-bind="props" icon="lucide:copy" size="sm" variant="ghost">
132
+ <BbButton v-bind="props" icon-only prepend:icon="lucide:copy" size="sm" variant="ghost">
133
133
  Duplicate
134
134
  </BbButton>
135
135
  </template>
136
136
  </BbTooltip>
137
137
  <BbTooltip text="This permanently deletes the record" variant="destructive">
138
138
  <template #activator="{ props }">
139
- <BbButton v-bind="props" icon="lucide:trash-2" size="sm" variant="ghost">
139
+ <BbButton v-bind="props" icon-only prepend:icon="lucide:trash-2" size="sm" variant="ghost">
140
140
  Delete
141
141
  </BbButton>
142
142
  </template>
@@ -187,9 +187,10 @@ hint shows, its neighbours open at once (the skip delay, below).
187
187
  ></span>
188
188
  <BbButton
189
189
  v-bb-tooltip="{ text: action.label, delay: 400 }"
190
- :aria-label="action.label"
191
- :icon="action.icon"
190
+ icon-only
191
+ :prepend:icon="action.icon"
192
192
  size="xs"
193
+ :text="action.label"
193
194
  variant="ghost"
194
195
  />
195
196
  </template>
@@ -231,8 +232,8 @@ works on any variant.
231
232
  <template #activator="{ props }">
232
233
  <BbButton
233
234
  v-bind="props"
234
- aria-label="Search"
235
- icon="lucide:search"
235
+ text="Search"
236
+ icon-only prepend:icon="lucide:search"
236
237
  size="sm"
237
238
  variant="ghost"
238
239
  />
@@ -246,8 +247,8 @@ works on any variant.
246
247
  <template #activator="{ props }">
247
248
  <BbButton
248
249
  v-bind="props"
249
- aria-label="Toggle sidebar"
250
- icon="lucide:panel-left"
250
+ text="Toggle sidebar"
251
+ icon-only prepend:icon="lucide:panel-left"
251
252
  size="sm"
252
253
  variant="ghost"
253
254
  />
@@ -355,7 +356,8 @@ The value grammar has three forms, plus a directive argument for placement:
355
356
  <!-- string (or number) shorthand: the value is the tooltip text -->
356
357
  <BbButton
357
358
  variant="ghost"
358
- icon="lucide:info"
359
+ icon-only
360
+ prepend:icon="lucide:info"
359
361
  v-bb-tooltip="'Prices include VAT'"
360
362
  >
361
363
  About prices
@@ -364,8 +366,9 @@ The value grammar has three forms, plus a directive argument for placement:
364
366
  <!-- the directive argument sets placement -->
365
367
  <BbButton
366
368
  v-bb-tooltip:bottom="'Saved automatically'"
367
- aria-label="Saved"
368
- icon="lucide:check"
369
+ text="Saved"
370
+ icon-only
371
+ prepend:icon="lucide:check"
369
372
  />
370
373
 
371
374
  <!-- object form: a required `text` plus any BbTooltip prop
@@ -378,7 +381,8 @@ The value grammar has three forms, plus a directive argument for placement:
378
381
  variant: 'destructive',
379
382
  }"
380
383
  variant="ghost"
381
- icon="lucide:trash-2"
384
+ icon-only
385
+ prepend:icon="lucide:trash-2"
382
386
  >
383
387
  Delete draft
384
388
  </BbButton>
@@ -394,7 +398,7 @@ everyone can. On a non-interactive element (a bare `BbIcon`, a `<span>`, an
394
398
  it, so use that only when the tip repeats text already on the page (the
395
399
  truncated cell above). An info icon is an icon-only ghost `BbButton`, its slot
396
400
  text the name and the tip the description:
397
- `<BbButton variant="ghost" icon="lucide:info" v-bb-tooltip="'Prices include VAT'">About prices</BbButton>`.
401
+ `<BbButton variant="ghost" icon-only prepend:icon="lucide:info" v-bb-tooltip="'Prices include VAT'">About prices</BbButton>`.
398
402
  Text that must be readable on touch belongs in a `BbPopover` toggletip
399
403
  (see the BbPopover guide, "Inline field help"). Never add a `tabindex` to an
400
404
  icon to make it reachable: a focusable icon is a tab stop with no role, and it
@@ -543,9 +547,10 @@ bubble. Hover a glyph; delay 400 matches dense toolbars.
543
547
  <template #activator="{ props }">
544
548
  <BbButton
545
549
  v-bind="props"
546
- :aria-label="action.label"
547
- :icon="action.icon"
550
+ icon-only
551
+ :prepend:icon="action.icon"
548
552
  size="xs"
553
+ :text="action.label"
549
554
  variant="ghost"
550
555
  />
551
556
  </template>
package/dist/ai/BbTree.md CHANGED
@@ -38,6 +38,7 @@ type BbTreeItem<Meta> = {
38
38
  children?: BbTreeItem<Meta>[]; // presence makes the node a branch
39
39
  expanded?: boolean; // INITIAL state only; branches default to expanded
40
40
  expandable?: boolean | ((item, depth, parent) => boolean); // per-node override
41
+ hidden?: boolean; // leaves the node out with its subtree
41
42
  };
42
43
  ```
43
44
 
@@ -46,21 +47,28 @@ Rules the component lives by:
46
47
  - A node with `children` is a branch; one without is a leaf. **Leaves always
47
48
  report `expanded: true`** — they have nothing to hide. (This matters for
48
49
  lazy loading; see the placeholder-child pattern below.)
49
- - By default every node's slot `expandable` is `false`, so a template gated on
50
- it renders no toggle. `toggleExpanded` and `expandProps` still work, and the
51
- node follows `v-model:expandedItems`. Pass `expandable` — a boolean, or a
52
- function `(item, depth, parent) => boolean` — to choose which nodes get a
53
- toggle. The everyday idiom is
54
- `:expandable="(n) => !!n.children?.length"`; a function can also lock levels
55
- (`depth > 2`) or gate on `item.meta`. A node's own `expandable` field
56
- overrides the tree-level prop for that node.
50
+ - By default a node's slot `expandable` is `true` when it has a child that is
51
+ not `hidden`, so a template gated on it renders a toggle on every branch
52
+ and none on leaves. Pass `expandable` to choose otherwise: `false` for no
53
+ toggles, `true` for all, or a function `(item, depth, parent) => boolean`
54
+ that can lock levels (`depth > 2`) or gate on `item.meta`. A node's own
55
+ `expandable` field overrides the tree-level prop for that node. Without a
56
+ toggle, `toggleExpanded` and `expandProps` still work and the node follows
57
+ `v-model:expandedItems`.
57
58
  - Non-expandable branches still render their children (expanded, frozen);
58
59
  `expandable` controls the _toggle_, not the rendering.
59
60
  - `expanded` on an item is the initial state only — live state belongs to
60
61
  `v-model:expandedItems` (next sections).
62
+ - `hidden: true` leaves a node out with its whole subtree: gate nodes by
63
+ permission with one expression per node instead of filtering the tree
64
+ yourself. `expandedItems` keeps what it holds for a hidden node, so it comes
65
+ back as it was. A branch whose children are all hidden shows as a leaf, and
66
+ the slot's `index` counts the nodes shown. The slot's `item` is still your
67
+ full node, so a checked state you compute over `item.children` must skip
68
+ hidden children itself.
61
69
 
62
70
  The per-node override earns its keep in mixed hierarchies. This team
63
- directory gates toggles with the tree-level function, then pins the
71
+ directory leaves toggles to the default, then pins the
64
72
  Leadership branch with `expandable: false` on the node itself — its members
65
73
  render expanded and frozen, no chevron, while departments and teams toggle
66
74
  normally:
@@ -82,7 +90,6 @@ normally:
82
90
 
83
91
  <BbTree
84
92
  class="p-1.5"
85
- :expandable="(node) => !!node.children?.length"
86
93
  item-value="id"
87
94
  :items="org"
88
95
  style="--indent: 0.875rem; --gap: 0.125rem"
@@ -230,7 +237,6 @@ as plain rows.
230
237
 
231
238
  <BbTree
232
239
  class="p-1.5"
233
- :expandable="(node) => !!node.children?.length"
234
240
  item-value="path"
235
241
  :items="items"
236
242
  style="--indent: 0.875rem; --gap: 0.125rem"
@@ -358,7 +364,6 @@ persist it and want it tidy.
358
364
  <BbTree
359
365
  v-model:expanded-items="expandedSections"
360
366
  class="rounded-(--bb-radius) border border-(--bb-border) p-1.5"
361
- :expandable="(node) => !!node.children?.length"
362
367
  item-value="id"
363
368
  :items="sections"
364
369
  style="--indent: 0.75rem; --gap: 0.125rem"
@@ -472,7 +477,6 @@ useful for a custom layout or an inline empty state under one branch.
472
477
  <template>
473
478
  <BbTree
474
479
  class="w-full max-w-xs rounded-(--bb-radius) border border-(--bb-border) p-1.5"
475
- :expandable="(n) => !!n.children?.length"
476
480
  item-value="id"
477
481
  :items="pages"
478
482
  style="--indent: 0.875rem; --gap: 0.125rem"
@@ -644,7 +648,6 @@ out of the box: collapsing is a smooth CSS grid-rows transition, not a remount.
644
648
  ],
645
649
  },
646
650
  ]"
647
- :expandable="(n) => !!n.children?.length"
648
651
  class="max-w-xs rounded-(--bb-radius) border border-(--bb-border) p-1.5"
649
652
  style="--indent:1.5rem; --gap:.375rem"
650
653
  >
@@ -682,7 +685,6 @@ scoped under a wrapper class so it stays local.
682
685
  <template>
683
686
  <BbTree
684
687
  class="connector-tree w-full max-w-xs rounded-(--bb-radius) border border-(--bb-border) p-1.5"
685
- :expandable="(node) => !!node.children?.length"
686
688
  item-value="path"
687
689
  :items="items"
688
690
  >
@@ -814,7 +816,8 @@ that always reports `expanded: true`, so a chevron driven by `expanded` would
814
816
  render open before any load. Mark those folders `expanded: false`, or the
815
817
  seeding rules open them at first sight and every fetch fires at mount. Then
816
818
  watch `expandedItems`: when an unloaded folder's identity enters the model,
817
- fetch and swap its children.
819
+ find it at any depth (a loaded folder brings folders of its own), fetch and
820
+ swap its children.
818
821
 
819
822
  **Folders that load on first expand**
820
823
 
@@ -908,12 +911,22 @@ const tree = ref<Array<BbTreeItem<Node>>>([
908
911
  const expanded = ref<string[]>([]);
909
912
  const loaded = new Set<string>();
910
913
 
911
- // Fake fetch — swap in a directory listing keyed by the folder id.
914
+ // Fake fetch — swap in a directory listing keyed by the folder id. A
915
+ // top-level folder holds a `lib` folder of its own, unloaded like its parent.
912
916
  const fetchChildren = (id: string): Promise<Array<BbTreeItem<Node>>> =>
913
917
  new Promise((resolve) =>
914
918
  setTimeout(
915
919
  () =>
916
920
  resolve([
921
+ ...(id.includes('/')
922
+ ? []
923
+ : [
924
+ {
925
+ meta: { id: `${id}/lib`, label: 'lib' },
926
+ expanded: false,
927
+ children: [placeholder(`${id}/lib`)],
928
+ },
929
+ ]),
917
930
  { meta: { id: `${id}/index.ts`, label: 'index.ts', leaf: true } },
918
931
  { meta: { id: `${id}/utils.ts`, label: 'utils.ts', leaf: true } },
919
932
  ]),
@@ -921,11 +934,24 @@ const fetchChildren = (id: string): Promise<Array<BbTreeItem<Node>>> =>
921
934
  )
922
935
  );
923
936
 
937
+ // A folder at any depth: a loaded folder's own folders load the same way.
938
+ const findFolder = (
939
+ items: Array<BbTreeItem<Node>>,
940
+ id: string
941
+ ): BbTreeItem<Node> | undefined => {
942
+ for (const item of items) {
943
+ if (item.meta.id === id) return item;
944
+ const inside = item.children && findFolder(item.children, id);
945
+ if (inside) return inside;
946
+ }
947
+ return undefined;
948
+ };
949
+
924
950
  // When an unloaded folder's identity first enters the model, load and swap.
925
951
  watch(expanded, async (ids) => {
926
952
  for (const id of ids) {
927
953
  if (loaded.has(id)) continue;
928
- const branch = tree.value.find((node) => node.meta.id === id);
954
+ const branch = findFolder(tree.value, id);
929
955
  if (!branch) continue;
930
956
  loaded.add(id);
931
957
  branch.children = await fetchChildren(id);
@@ -966,7 +992,6 @@ a collapsed team does not.
966
992
  </div>
967
993
 
968
994
  <BbTree
969
- :expandable="(node) => !!node.children?.length"
970
995
  item-value="id"
971
996
  :items="org"
972
997
  pt:item="rounded-(--bb-radius-sm)"
@@ -1104,10 +1129,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1104
1129
  that node, but you can no longer tell the two apart in markup. Give nodes
1105
1130
  string identities (`'folder-1'`) when you use per-node slots. `:children`
1106
1131
  slots also render for leaves, which have no children of their own.
1107
- - No `expandable` prop means the slot's `expandable` is `false` for every
1108
- node, so a toggle gated on it (`v-if="expandable"`) never renders and the
1109
- tree shows fully expanded. Bind `expandProps` without the gate, or pass
1110
- `expandable`.
1132
+ - Don't write `:expandable="(n) => !!n.children?.length"`: it is the
1133
+ default, and it still gives a toggle to a branch whose children are all
1134
+ `hidden`. For a tree shown fully open with no toggles, pass
1135
+ `:expandable="false"`.
1111
1136
  - Don't track expansion in your own `ref` next to the model, and don't decide
1112
1137
  "expandedness" from your own state — `expanded` in the slot payload is
1113
1138
  already live.
@@ -1162,7 +1187,7 @@ row) with that in mind.
1162
1187
  | Prop | Type | Default | Required | Description |
1163
1188
  | --- | --- | --- | --- | --- |
1164
1189
  | `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: `item`, `root`. States: `expanded`. 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 `BbTreeProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
1165
- | `expandable` | `BbTreeExpandable<Meta> \| undefined` | `undefined` | | Defines nodes as expandable. It can be a global boolean, or a function that receives the node, its depth, and its parent and returns a boolean. |
1190
+ | `expandable` | `BbTreeExpandable<Meta> \| undefined` | `undefined` | | Which nodes get a toggle: a boolean for all, or a function of the node, its depth and its parent. Unset: every node with a child that is not `hidden`. |
1166
1191
  | `expandedItems` | `any[] \| undefined` | `[]` | | Live expansion state: the list of expanded node values (see `itemValue`). Branch nodes not explicitly collapsed via `expanded: false` seed the list when they first appear in `items`; from then on this model is the single source of truth. |
1167
1192
  | `items` | `BbTreeItem<Meta>[]` | `[]` | yes | Tree-like structure of nodes to render. |
1168
1193
  | `itemValue` | `ItemAccessor<Meta>` | | yes | A node's identity, the field telling nodes apart (e.g. `"id"`). Required: it decides which nodes `expandedItems` keeps open and names the per-node slots, a load-bearing id you write, never derived. A string reads that key from `meta`; a function maps `meta` to the value. |
@@ -90,4 +90,4 @@ Set these on the element, or on a class you put on it, to retune this component
90
90
  - Listed nodes are the ones `CommonFieldInput`'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/CommonFieldInput.tree.json` (a public component in it is a name: its own tree file has the rest).
91
91
 
92
92
  - `CommonFieldInput` _(this component)_ — its own template binds: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`
93
- - Also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
93
+ - Also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`