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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +6 -1
  3. package/dist/ai/BbAccordion.md +38 -19
  4. package/dist/ai/BbBadge.md +25 -22
  5. package/dist/ai/BbBreadcrumbs.md +4 -1
  6. package/dist/ai/BbButton.md +32 -27
  7. package/dist/ai/BbCalendar.md +1 -0
  8. package/dist/ai/BbCarousel.md +6 -4
  9. package/dist/ai/BbCheckbox.md +5 -6
  10. package/dist/ai/BbCheckboxGroup.md +27 -27
  11. package/dist/ai/BbColorInput.md +4 -5
  12. package/dist/ai/BbConfirm.md +65 -81
  13. package/dist/ai/BbConfirmPortal.md +2 -2
  14. package/dist/ai/BbDatePicker.md +1 -6
  15. package/dist/ai/BbDatePickerInput.md +5 -6
  16. package/dist/ai/BbDialog.md +230 -164
  17. package/dist/ai/BbDropdown.md +87 -17
  18. package/dist/ai/BbDropdownButton.md +15 -15
  19. package/dist/ai/BbDropzone.md +12 -8
  20. package/dist/ai/BbForm.md +93 -7
  21. package/dist/ai/BbHost.md +2 -2
  22. package/dist/ai/BbHoverCardPortal.md +1 -1
  23. package/dist/ai/BbIcon.md +1 -1
  24. package/dist/ai/BbIndicator.md +17 -15
  25. package/dist/ai/BbNumberInput.md +10 -9
  26. package/dist/ai/BbOffCanvas.md +29 -7
  27. package/dist/ai/BbPagination.md +2 -2
  28. package/dist/ai/BbPopover.md +15 -9
  29. package/dist/ai/BbPopoverPortal.md +1 -1
  30. package/dist/ai/BbRadio.md +5 -6
  31. package/dist/ai/BbRadioGroup.md +53 -37
  32. package/dist/ai/BbRating.md +11 -16
  33. package/dist/ai/BbSelect.md +25 -5
  34. package/dist/ai/BbSelectPopover.md +9 -3
  35. package/dist/ai/BbSlider.md +15 -17
  36. package/dist/ai/BbSpinner.md +3 -2
  37. package/dist/ai/BbSwitch.md +9 -9
  38. package/dist/ai/BbSwitchGroup.md +11 -13
  39. package/dist/ai/BbTable.md +205 -82
  40. package/dist/ai/BbTabs.md +29 -4
  41. package/dist/ai/BbTag.md +4 -5
  42. package/dist/ai/BbTextInput.md +18 -16
  43. package/dist/ai/BbTextarea.md +12 -11
  44. package/dist/ai/BbTimePickerInput.md +4 -5
  45. package/dist/ai/BbToast.md +3 -2
  46. package/dist/ai/BbTooltip.md +39 -30
  47. package/dist/ai/BbTree.md +49 -24
  48. package/dist/ai/CommonField.md +2 -10
  49. package/dist/ai/CommonFieldInput.md +1 -1
  50. package/dist/ai/OptionsContainer.md +5 -13
  51. package/dist/ai/changelog.json +278 -10
  52. package/dist/ai/components.json +59 -58
  53. package/dist/ai/composables/useBbDialog.md +5 -8
  54. package/dist/ai/composables/useBbForm.md +3 -0
  55. package/dist/ai/composables/useConfirm.md +65 -56
  56. package/dist/ai/composables/useToast.md +2 -1
  57. package/dist/ai/guides/agent-contract.md +3 -3
  58. package/dist/ai/guides/app-layout.md +3 -2
  59. package/dist/ai/guides/eslint-rules.md +3 -1
  60. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  61. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  62. package/dist/ai/guides/icons-policy.md +7 -5
  63. package/dist/ai/guides/inertia-helpers.md +35 -30
  64. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  65. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  67. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  68. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  69. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  70. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  71. package/dist/ai/guides/migration/components/use-confirm.md +69 -26
  72. package/dist/ai/guides/migration/v2-to-v3.md +78 -12
  73. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  74. package/dist/ai/guides/options-items-playbook.md +4 -3
  75. package/dist/ai/guides/passthrough.md +2 -2
  76. package/dist/ai/guides/preset-components.md +35 -10
  77. package/dist/ai/helpers/definePreset.json +8 -1
  78. package/dist/ai/helpers/definePreset.ts +35 -10
  79. package/dist/ai/helpers/inertia/manifest.json +28 -15
  80. package/dist/ai/helpers/inertia/messages.ts +3 -3
  81. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  82. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  83. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  84. package/dist/ai/index.md +3 -3
  85. package/dist/ai/manifest/common.json +5 -5
  86. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  87. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  88. package/dist/ai/manifest/components/BbBadge.json +8 -7
  89. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  90. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  91. package/dist/ai/manifest/components/BbBreadcrumbs.json +2 -2
  92. package/dist/ai/manifest/components/BbButton.json +5 -6
  93. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  94. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  95. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  96. package/dist/ai/manifest/components/BbCheckbox.json +2 -2
  97. package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
  98. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  99. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +9 -19
  100. package/dist/ai/manifest/components/BbColorInput.json +3 -3
  101. package/dist/ai/manifest/components/BbColorInput.tree.json +2 -2
  102. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  103. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  104. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  105. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  106. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  107. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  108. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  109. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  110. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +2 -2
  111. package/dist/ai/manifest/components/BbDialog.json +6 -1
  112. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  113. package/dist/ai/manifest/components/BbDropdown.json +10 -9
  114. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  115. package/dist/ai/manifest/components/BbDropdownButton.json +9 -10
  116. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  117. package/dist/ai/manifest/components/BbForm.json +3 -1
  118. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  119. package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -2
  120. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  121. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  122. package/dist/ai/manifest/components/BbPagination.json +1 -1
  123. package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
  124. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  125. package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -18
  126. package/dist/ai/manifest/components/BbRating.json +2 -2
  127. package/dist/ai/manifest/components/BbRating.tree.json +1 -1
  128. package/dist/ai/manifest/components/BbSelect.json +2 -1
  129. package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
  130. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  131. package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
  132. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  133. package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  135. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
  136. package/dist/ai/manifest/components/BbTable.json +15 -14
  137. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  138. package/dist/ai/manifest/components/BbTabs.json +3 -3
  139. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  140. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  141. package/dist/ai/manifest/components/BbTag.json +1 -1
  142. package/dist/ai/manifest/components/BbTag.tree.json +2 -2
  143. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  144. package/dist/ai/manifest/components/BbTextInput.tree.json +2 -2
  145. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  146. package/dist/ai/manifest/components/BbTextarea.tree.json +2 -2
  147. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  148. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  149. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +2 -2
  150. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  151. package/dist/ai/manifest/components/BbTooltip.json +1 -1
  152. package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
  153. package/dist/ai/manifest/components/BbTree.json +2 -2
  154. package/dist/ai/manifest/components/CommonField.tree.json +5 -10
  155. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  156. package/dist/ai/manifest/components/OptionsContainer.tree.json +5 -13
  157. package/dist/ai/manifest/index.json +4 -4
  158. package/dist/ai/manifest/meta.json +5 -1
  159. package/dist/ai/manifest/types.advanced.json +9 -9
  160. package/dist/ai/manifest/types.api.json +7 -6
  161. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  165. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/inertia/record-form.md +12 -8
  167. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  168. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  169. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  170. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  171. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  172. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  173. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  174. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  175. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  176. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  177. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  178. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  179. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  180. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  181. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  182. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  183. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  184. package/dist/ai/recipes/vue/onboarding.md +5 -4
  185. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  186. package/dist/ai/recipes/vue/record-form.md +14 -10
  187. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  188. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  189. package/dist/ai/recipes/vue/upload-center.md +17 -9
  190. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  191. package/dist/ai/source/BbAccordion.md +50 -16
  192. package/dist/ai/source/BbBadge.md +420 -26
  193. package/dist/ai/source/BbBadgeButton.md +378 -12
  194. package/dist/ai/source/BbBreadcrumbs.md +31 -12
  195. package/dist/ai/source/BbButton.md +205 -55
  196. package/dist/ai/source/BbCalendar.md +5 -0
  197. package/dist/ai/source/BbCheckbox.md +36 -42
  198. package/dist/ai/source/BbCheckboxGroup.md +40 -17
  199. package/dist/ai/source/BbColorInput.md +2 -4
  200. package/dist/ai/source/BbConfigScope.md +19 -2
  201. package/dist/ai/source/BbConfirm.md +74 -80
  202. package/dist/ai/source/BbConfirmPortal.md +6 -6
  203. package/dist/ai/source/BbDatePicker.md +9 -2
  204. package/dist/ai/source/BbDatePickerInput.md +5 -5
  205. package/dist/ai/source/BbDialog.md +53 -2
  206. package/dist/ai/source/BbDropdown.md +360 -99
  207. package/dist/ai/source/BbDropdownButton.md +24 -13
  208. package/dist/ai/source/BbDropdownGroup.md +145 -60
  209. package/dist/ai/source/BbForm.md +144 -10
  210. package/dist/ai/source/BbNumberInput.md +2 -4
  211. package/dist/ai/source/BbOffCanvas.md +53 -2
  212. package/dist/ai/source/BbPagination.md +1 -1
  213. package/dist/ai/source/BbRadio.md +36 -42
  214. package/dist/ai/source/BbRadioGroup.md +74 -14
  215. package/dist/ai/source/BbRating.md +32 -36
  216. package/dist/ai/source/BbSelect.md +40 -13
  217. package/dist/ai/source/BbSelectPopover.md +105 -34
  218. package/dist/ai/source/BbSlider.md +2 -4
  219. package/dist/ai/source/BbSwitch.md +57 -46
  220. package/dist/ai/source/BbSwitchGroup.md +67 -21
  221. package/dist/ai/source/BbTable.md +363 -49
  222. package/dist/ai/source/BbTabs.md +6 -0
  223. package/dist/ai/source/BbTabsList.md +10 -0
  224. package/dist/ai/source/BbTabsPanels.md +6 -0
  225. package/dist/ai/source/BbTabsRoot.md +6 -0
  226. package/dist/ai/source/BbTag.md +2 -4
  227. package/dist/ai/source/BbTextInput.md +2 -4
  228. package/dist/ai/source/BbTextarea.md +2 -4
  229. package/dist/ai/source/BbTimePickerInput.md +2 -4
  230. package/dist/ai/source/BbTooltip.md +9 -3
  231. package/dist/ai/source/BbTree.md +14 -4
  232. package/dist/ai/source/CommonField.md +17 -106
  233. package/dist/ai/source/CommonFieldInput.md +2 -1
  234. package/dist/ai/source/GuidesComponent.md +3 -0
  235. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  236. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  237. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  238. package/dist/components/BbAccordion/types.d.ts +21 -7
  239. package/dist/components/BbAccordion/types.js +1 -1
  240. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  241. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  242. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  243. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  244. package/dist/components/BbBadge/types.d.ts +15 -12
  245. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
  246. package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
  247. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  248. package/dist/components/BbButton/types.d.ts +7 -6
  249. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  250. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  251. package/dist/components/BbCalendar/types.d.ts +5 -0
  252. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  253. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  254. package/dist/components/BbCheckbox/types.d.ts +2 -4
  255. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  256. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  257. package/dist/components/BbCheckboxGroup/types.d.ts +4 -6
  258. package/dist/components/BbColorInput/types.d.ts +2 -4
  259. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  260. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  261. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  262. package/dist/components/BbConfirm/types.d.ts +5 -5
  263. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  264. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  265. package/dist/components/BbDatePicker/types.d.ts +5 -0
  266. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  267. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  268. package/dist/components/BbDatePickerInput/types.d.ts +4 -5
  269. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  270. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  271. package/dist/components/BbDialog/overlayActions.js +94 -0
  272. package/dist/components/BbDialog/types.d.ts +24 -0
  273. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  274. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +384 -332
  275. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
  276. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  277. package/dist/components/BbDropdown/normalizeGroups.js +58 -44
  278. package/dist/components/BbDropdown/types.d.ts +116 -50
  279. package/dist/components/BbDropdown/types.js +2 -2
  280. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +105 -104
  281. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  282. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  283. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +240 -198
  284. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  285. package/dist/components/BbForm/recognizeValidation.js +55 -0
  286. package/dist/components/BbForm/validationError.d.ts +10 -0
  287. package/dist/components/BbForm/validationError.js +11 -0
  288. package/dist/components/BbNumberInput/types.d.ts +2 -4
  289. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  290. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  291. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  292. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  293. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  294. package/dist/components/BbRadio/types.d.ts +2 -4
  295. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  296. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  297. package/dist/components/BbRadioGroup/types.d.ts +11 -7
  298. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +126 -119
  299. package/dist/components/BbRating/types.d.ts +5 -6
  300. package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -10
  301. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  302. package/dist/components/BbSelect/types.d.ts +12 -6
  303. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  304. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  305. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  306. package/dist/components/BbSlider/types.d.ts +2 -4
  307. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  308. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  309. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  310. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  311. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  312. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  313. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  314. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  315. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  316. package/dist/components/BbTable/types.d.ts +33 -18
  317. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  318. package/dist/components/BbTabs/types.d.ts +6 -0
  319. package/dist/components/BbTag/types.d.ts +2 -4
  320. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  321. package/dist/components/BbTextInput/types.d.ts +2 -4
  322. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  323. package/dist/components/BbTextarea/types.d.ts +2 -4
  324. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  325. package/dist/components/BbTimePickerInput/types.d.ts +2 -4
  326. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  327. package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
  328. package/dist/components/BbTooltip/types.d.ts +3 -1
  329. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  330. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  331. package/dist/components/BbTree/types.d.ts +8 -2
  332. package/dist/components/CommonField/types.d.ts +2 -4
  333. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  334. package/dist/composables/formSubmitLock.js +15 -8
  335. package/dist/composables/overlayRegistry.d.ts +5 -0
  336. package/dist/composables/overlayRegistry.js +154 -148
  337. package/dist/composables/useBbDropdown.d.ts +8 -0
  338. package/dist/composables/useBbDropdown.js +3 -1
  339. package/dist/composables/useBbTabs.js +138 -138
  340. package/dist/composables/useChoiceIndicator.js +67 -64
  341. package/dist/composables/useConfirm.d.ts +63 -52
  342. package/dist/composables/useConfirm.js +22 -18
  343. package/dist/deprecation/ai-deprecations.json.js +1 -1
  344. package/dist/directives/bbDropdown.d.ts +7 -7
  345. package/dist/directives/bbDropdown.js +22 -15
  346. package/dist/directives/bbTooltip.d.ts +3 -3
  347. package/dist/directives/createPopoverDirective.js +57 -35
  348. package/dist/i18n/locales/ar.json +5 -1
  349. package/dist/i18n/locales/cs.json +5 -1
  350. package/dist/i18n/locales/da.json +5 -1
  351. package/dist/i18n/locales/de-CH.json +5 -1
  352. package/dist/i18n/locales/de.json +5 -1
  353. package/dist/i18n/locales/el.json +5 -1
  354. package/dist/i18n/locales/en-GB.json +5 -1
  355. package/dist/i18n/locales/en.json +5 -1
  356. package/dist/i18n/locales/es-MX.json +5 -1
  357. package/dist/i18n/locales/es.json +5 -1
  358. package/dist/i18n/locales/fa.json +5 -1
  359. package/dist/i18n/locales/fi.json +5 -1
  360. package/dist/i18n/locales/fr.json +5 -1
  361. package/dist/i18n/locales/he.json +5 -1
  362. package/dist/i18n/locales/hu.json +5 -1
  363. package/dist/i18n/locales/it.json +5 -1
  364. package/dist/i18n/locales/ja.json +5 -1
  365. package/dist/i18n/locales/ko.json +5 -1
  366. package/dist/i18n/locales/nb.json +5 -1
  367. package/dist/i18n/locales/nl.json +5 -1
  368. package/dist/i18n/locales/pl.json +5 -1
  369. package/dist/i18n/locales/pt-BR.json +5 -1
  370. package/dist/i18n/locales/pt-PT.json +5 -1
  371. package/dist/i18n/locales/ro.json +5 -1
  372. package/dist/i18n/locales/ru.json +5 -1
  373. package/dist/i18n/locales/sv.json +5 -1
  374. package/dist/i18n/locales/tr.json +5 -1
  375. package/dist/i18n/locales/uk.json +5 -1
  376. package/dist/i18n/locales/zh-CN.json +5 -1
  377. package/dist/i18n/locales/zh-HK.json +5 -1
  378. package/dist/i18n/locales/zh-TW.json +5 -1
  379. package/dist/index.d.ts +2 -0
  380. package/dist/index.js +4 -3
  381. package/dist/llms-full.txt +2216 -1332
  382. package/dist/llms-medium.txt +21 -18
  383. package/dist/llms.txt +2 -2
  384. package/dist/locale-blueprint.json +5 -1
  385. package/dist/plugin.js +17 -40
  386. package/dist/pluginCore.js +30 -0
  387. package/dist/styles.css +2 -2
  388. package/dist/types/ActionButton.d.ts +26 -5
  389. package/dist/types/ActionButton.js +11 -0
  390. package/dist/types/ConfigDefaults.d.ts +34 -3
  391. package/dist/types/ConfigDefaults.js +14 -8
  392. package/dist/types/FieldLayout.d.ts +4 -1
  393. package/dist/types/ItemAccessor.d.ts +3 -1
  394. package/dist/types/ItemPath.d.ts +62 -0
  395. package/dist/types/ptComponentMap.d.ts +1 -1
  396. package/dist/utilities/functions/clickCount.js +14 -0
  397. package/dist/utils/versionCheck.js +1 -1
  398. package/llms.txt +2 -2
  399. package/package.json +16 -4
  400. package/scripts/README.md +35 -29
  401. package/scripts/lib/adoption-checklist.json +2 -2
  402. package/scripts/lib/define-preset-copy.mjs +1 -1
  403. package/scripts/lib/eslint-disable.mjs +5 -3
  404. package/scripts/lib/eslint-plugin.d.ts +2 -0
  405. package/scripts/lib/eslint-plugin.mjs +213 -1
  406. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  407. package/scripts/lib/release-results.mjs +32 -1
  408. package/scripts/lib/renamed-item-field.mjs +4 -1
  409. package/scripts/lib/setup.mjs +8 -0
  410. package/scripts/lib/tab-links.mjs +4 -1
  411. package/scripts/lib/toolchain-check.mjs +125 -7
  412. package/scripts/lib/tree-default-expandable.mjs +53 -0
  413. package/scripts/lib/validate-bb-markup.mjs +537 -53
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
@@ -33,7 +33,6 @@
33
33
 
34
34
  | Variable | Set through | Declared by | What it is |
35
35
  | --- | --- | --- | --- |
36
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
37
36
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
38
37
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
39
38
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -511,9 +510,9 @@ only sets the label's text alignment.
511
510
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
512
511
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
513
512
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
514
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
513
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
515
514
  | `label` | `string` | | yes | Text content of the label of the element. |
516
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
515
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
517
516
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Where the label sits relative to the field: `outside` above it, `inside` within the control, or `floating` (starts inside, lifts on focus/value). Defaults to `all.labelMode`, like the other inputs. |
518
517
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
519
518
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
@@ -620,8 +619,8 @@ Set these on the element, or on a class you put on it, to retune this component
620
619
  - Listed nodes are the ones `BbTag`'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/BbTag.tree.json` (a public component in it is a name: its own tree file has the rest).
621
620
 
622
621
  - `BbTag` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-tag__input`, `input` → `input.bb-tag__input`
623
- - `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`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
624
- - `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`
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 `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
625
624
  - `ChipsBox` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `badge` → `BbBadge`
626
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`
627
626
  - `CommaBox` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `comma` → `span.bb-tag__comma`
@@ -31,7 +31,6 @@
31
31
 
32
32
  | Variable | Set through | Declared by | What it is |
33
33
  | --- | --- | --- | --- |
34
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
35
34
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
36
35
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
37
36
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -389,8 +388,9 @@ The full slot ring, inside → out:
389
388
  >
390
389
  <template #append:outer>
391
390
  <BbButton
392
- aria-label="Copy API key"
393
- icon="lucide:copy"
391
+ icon-only
392
+ prepend:icon="lucide:copy"
393
+ text="Copy API key"
394
394
  variant="ghost"
395
395
  />
396
396
  </template>
@@ -598,9 +598,10 @@ in the `#append` slot to flip it:
598
598
  >
599
599
  <template #append>
600
600
  <BbButton
601
- :aria-label="revealed ? 'Hide password' : 'Show password'"
602
- :icon="revealed ? 'lucide:eye-off' : 'lucide:eye'"
601
+ icon-only
602
+ :prepend:icon="revealed ? 'lucide:eye-off' : 'lucide:eye'"
603
603
  size="sm"
604
+ :text="revealed ? 'Hide password' : 'Show password'"
604
605
  variant="ghost"
605
606
  @click="revealed = !revealed"
606
607
  />
@@ -674,13 +675,14 @@ and three digits), and the chrome plus two characters for `BbSelect`
674
675
  70px postal code is 70px). Size the field for the layout you want; set
675
676
  `--min-w` on it to change the floor (`--min-w: 0px` removes it).
676
677
 
677
- Side by side, the label's **first line** sits on the field's text line, and
678
- the field stays at the top of the row: a description under the label, or a
679
- label that wraps, never pulls the field down to the middle of the label
680
- column. Every form control follows the same rule (a toggle lines up with its
681
- glyph, a group with its first option, a textarea with its first row), so a
682
- column of mixed fields reads as one line per field. No `pt:label` padding is
683
- needed for it.
678
+ Side by side, the label aligns to the **top**: its top meets the field's top,
679
+ and the field stays at the top of the row — a description under the label, or
680
+ a label that wraps, never pulls the field down to the middle of the label
681
+ column. Every form control follows the same column rule, so a column of
682
+ mixed fields lines up; inside its own column, a toggle's glyph (and a group
683
+ row's) still centres on its label's first line. `label-align="center"`
684
+ centres the label on a taller field instead. No `pt:label` padding is
685
+ needed for any of it.
684
686
 
685
687
  **Horizontal row via layout (outside label)**
686
688
 
@@ -1307,10 +1309,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1307
1309
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
1308
1310
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1309
1311
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
1310
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
1312
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1311
1313
  | `inputMode` | `"text" \| "search" \| "none" \| "tel" \| "url" \| "email" \| "numeric" \| "decimal" \| undefined` | | | The inputmode of the input. |
1312
1314
  | `label` | `string` | | yes | Text content of the label of the element. |
1313
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
1315
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1314
1316
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
1315
1317
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
1316
1318
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
@@ -1414,8 +1416,8 @@ Set these on the element, or on a class you put on it, to retune this component
1414
1416
  - Listed nodes are the ones `BbTextInput`'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/BbTextInput.tree.json` (a public component in it is a name: its own tree file has the rest).
1415
1417
 
1416
1418
  - `BbTextInput` _(this component)_ — its own template binds: `input` → `input.bb-text-input__input`, `controlAttrs` → `input.bb-text-input__input`
1417
- - `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`; documented CSS variables: `--ctrl-line`; 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`
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`
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
 
@@ -31,7 +31,6 @@
31
31
 
32
32
  | Variable | Set through | Declared by | What it is |
33
33
  | --- | --- | --- | --- |
34
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
35
34
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
36
35
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
37
36
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -592,8 +591,9 @@ The full slot ring, inside → out:
592
591
  >
593
592
  <template #append:outer>
594
593
  <BbButton
595
- aria-label="Copy install snippet"
596
- icon="lucide:copy"
594
+ icon-only
595
+ prepend:icon="lucide:copy"
596
+ text="Copy install snippet"
597
597
  variant="ghost"
598
598
  />
599
599
  </template>
@@ -777,9 +777,10 @@ const changelog = ref<string | null>(
777
777
  ```
778
778
 
779
779
  - `label-align` / `input-align` (`top | center | bottom`) set where each
780
- column sits vertically in a side-by-side row. Omitted, the label's first
781
- line meets the textarea's first row. With a fixed `rows` the textarea is
782
- the tall column, so `label-align="center"` puts the label, description
780
+ column sits vertically in a side-by-side row. Omitted, both sit at the
781
+ top: the label's top meets the textarea's top. With a fixed `rows` the
782
+ textarea is the tall column, so `label-align="center"` puts the label,
783
+ description
783
784
  included, on its middle; `input-align` would not move it. Not
784
785
  `label-position`, which aligns the label text horizontally.
785
786
 
@@ -790,7 +791,7 @@ const changelog = ref<string | null>(
790
791
  <div class="grid max-w-md gap-3 rounded-(--bb-radius) border p-4">
791
792
  <!-- A fixed `rows` makes the textarea the tall column: `label-align`
792
793
  moves the short one, so the label (and its description) sits on the
793
- textarea's middle instead of its first line. -->
794
+ textarea's middle instead of its top. -->
794
795
  <BbTextarea
795
796
  v-model="notes"
796
797
  description="Visible to your team only."
@@ -1044,9 +1045,9 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1044
1045
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
1045
1046
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1046
1047
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
1047
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
1048
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1048
1049
  | `label` | `string` | | yes | Text content of the label of the element. |
1049
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
1050
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1050
1051
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. `'outside'` (default) sits the label above/beside the field; `'floating'`/`'inside'` overlay it, like the other text inputs. |
1051
1052
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
1052
1053
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
@@ -1152,8 +1153,8 @@ Set these on the element, or on a class you put on it, to retune this component
1152
1153
  - Listed nodes are the ones `BbTextarea`'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/BbTextarea.tree.json` (a public component in it is a name: its own tree file has the rest).
1153
1154
 
1154
1155
  - `BbTextarea` _(this component)_ — its own template binds: `controlAttrs` → `textarea.bb-textarea__input`, `input` → `textarea.bb-textarea__input`
1155
- - `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`; documented CSS variables: `--ctrl-line`; 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`
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`
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
@@ -36,7 +36,6 @@
36
36
 
37
37
  | Variable | Set through | Declared by | What it is |
38
38
  | --- | --- | --- | --- |
39
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
40
39
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
41
40
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
42
41
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -319,9 +318,9 @@ Messages _also_ render in an `aria-live="polite"` region.
319
318
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
320
319
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
321
320
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
322
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
321
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
323
322
  | `label` | `string` | | yes | Text content of the label of the element. |
324
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
323
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
325
324
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
326
325
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
327
326
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
@@ -432,8 +431,8 @@ Set these on the element, or on a class you put on it, to retune this component
432
431
  - `BbTimePickerInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-segmented-field__input`, `input` → `input.bb-segmented-field__input`, `activator` → `button.bb-segmented-field__activator`, `suffix` → `span.bb-field-input__suffix`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs)
433
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`
434
433
  - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
435
- - `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`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
436
- - `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`
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 `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
437
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`
438
437
  - `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
439
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
@@ -496,15 +500,17 @@ const files: SharedFile[] = [
496
500
 
497
501
  `pt` reaches a named part of the tooltip with a class list — or, in the
498
502
  object form, a style and attributes — optionally only while a state is on.
499
- Parts: `root` (the floating element, arrow included) and `panel` (the
500
- bubble). State: `open`. A `class`, `style` or attribute on `<BbTooltip>`
501
- itself lands on `root` too.
503
+ Parts: `root` (the floating element, arrow included) and `panel` (the text
504
+ box inside the bubble, for spacing and type). State: `open`. A `class`,
505
+ `style` or attribute on `<BbTooltip>` itself lands on `root` too.
502
506
 
503
- The document-toolbar hints, restyled through those parts: a muted wash on
504
- `pt:panel` (the bubble — default is the inverted primary), a drop shadow
505
- while `pt:root:open`. Hover a glyph; delay 400 matches dense toolbars.
507
+ The document-toolbar hints, restyled through those parts: `pt:root` sets the
508
+ paint tokens (`--bg`, `--border-color`, `--fg`), so the bubble and its arrow
509
+ turn muted with a border together, plus a drop shadow while `pt:root:open`. A
510
+ background on `pt:panel` would paint only the text box, inside the primary
511
+ bubble. Hover a glyph; delay 400 matches dense toolbars.
506
512
 
507
- **pt:panel — toolbar hints, a muted bubble**
513
+ **pt:root — toolbar hints, a muted bubble**
508
514
 
509
515
  ```vue
510
516
  <template>
@@ -534,16 +540,17 @@ while `pt:root:open`. Hover a glyph; delay 400 matches dense toolbars.
534
540
  ></span>
535
541
  <BbTooltip
536
542
  :delay="400"
537
- pt:panel="bg-(--bb-muted) text-(--bb-text)"
543
+ pt:root="[--bg:var(--bb-muted)] [--border-color:var(--bb-border)] [--fg:var(--bb-text)]"
538
544
  pt:root:open="drop-shadow-md"
539
545
  :text="action.label"
540
546
  >
541
547
  <template #activator="{ props }">
542
548
  <BbButton
543
549
  v-bind="props"
544
- :aria-label="action.label"
545
- :icon="action.icon"
550
+ icon-only
551
+ :prepend:icon="action.icon"
546
552
  size="xs"
553
+ :text="action.label"
547
554
  variant="ghost"
548
555
  />
549
556
  </template>
@@ -563,8 +570,10 @@ type ToolbarAction = {
563
570
  };
564
571
 
565
572
  // Same document-toolbar hints as `IconButtonTooltips.vue`, restyled through
566
- // passthrough: a muted wash on `pt:panel` (the bubble — default is the
567
- // inverted primary), `pt:root:open` adds a drop shadow while showing. Hover
573
+ // passthrough: `pt:root` sets the paint tokens (`--bg`, `--border-color`,
574
+ // `--fg`), so the bubble AND its arrow turn muted with a border together (a
575
+ // background on `pt:panel` would paint only the text box inside the primary
576
+ // bubble); `pt:root:open` adds a drop shadow while showing. Hover
568
577
  // a glyph to see the pt; `delay` 400 (the default is 100) holds the first hint
569
578
  // back in a dense toolbar, and the next glyph's hint opens at once (skip delay).
570
579
  const actions: ToolbarAction[] = [
@@ -680,7 +689,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
680
689
  | Part | What it is |
681
690
  | --- | --- |
682
691
  | `root` | The floating element, arrow included; a `class` on the component lands here. |
683
- | `panel` | The bubble that holds the text. |
692
+ | `panel` | The text box inside the bubble: spacing and type. The bubble's and arrow's paint come from `--bg` / `--border-color` / `--fg` on root. |
684
693
 
685
694
  States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
686
695
 
@@ -710,8 +719,8 @@ Set these on the element, or on a class you put on it, to retune this component
710
719
  | `--border-color` | `var(--bb-primary)` | |
711
720
  | `--fs` | `calc(var(--bb-fs) - 2px)` | |
712
721
  | `--max-w` | `40ch` | Default measure. CommonPopover caps the bubble at the viewport minus its `padding`, which on a wide screen is a single line running the width of the page — unreadable, and the reason a hint needs a cap of its own. `ch` (not px) so the column tracks the font: the same 40ch measure the dropdown item description uses. The `width` prop overrides it by writing `--max-w` inline on the content; a consumer can override it in CSS on this root. |
713
- | `--px` | `12px` | |
714
- | `--py` | `6px` | |
722
+ | `--px` | `8px` | |
723
+ | `--py` | `2px` | |
715
724
 
716
725
  ## Component tree
717
726