bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.69

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 (1027) hide show
  1. package/README.md +230 -91
  2. package/bin/bitboss-ui-mcp.mjs +368 -142
  3. package/bin/bitboss-ui.mjs +24 -2073
  4. package/bin/cli.mjs +1922 -0
  5. package/dist/ai/BbAccordion.md +1 -1
  6. package/dist/ai/BbAlert.md +16 -12
  7. package/dist/ai/BbAsterisk.md +1 -1
  8. package/dist/ai/BbAvatar.md +3 -3
  9. package/dist/ai/BbBadge.md +5 -5
  10. package/dist/ai/BbBadgeButton.md +1 -1
  11. package/dist/ai/BbBaseButton.md +1 -1
  12. package/dist/ai/BbBaseCheckboxIcon.md +4 -0
  13. package/dist/ai/BbBaseRadioIcon.md +7 -3
  14. package/dist/ai/BbBaseSwitchIcon.md +11 -2
  15. package/dist/ai/BbBreadcrumbs.md +3 -3
  16. package/dist/ai/BbButton.md +63 -10
  17. package/dist/ai/BbCalendar.md +15 -2
  18. package/dist/ai/BbCarousel.md +1093 -0
  19. package/dist/ai/BbCheckbox.md +28 -8
  20. package/dist/ai/BbCheckboxGroup.md +65 -32
  21. package/dist/ai/BbColorInput.md +18 -15
  22. package/dist/ai/BbColorPalette.md +9 -6
  23. package/dist/ai/BbConfigScope.md +218 -0
  24. package/dist/ai/BbConfirm.md +25 -22
  25. package/dist/ai/BbDatePicker.md +12 -6
  26. package/dist/ai/BbDatePickerInput.md +29 -18
  27. package/dist/ai/BbDialog.md +11 -10
  28. package/dist/ai/BbDropdown.md +36 -29
  29. package/dist/ai/BbDropdownButton.md +21 -21
  30. package/dist/ai/BbDropzone.md +5 -16
  31. package/dist/ai/BbForm.md +14 -8
  32. package/dist/ai/BbHost.md +20 -14
  33. package/dist/ai/BbHoverCard.md +2 -2
  34. package/dist/ai/BbIcon.md +3 -3
  35. package/dist/ai/BbIndicator.md +4 -4
  36. package/dist/ai/BbNumberInput.md +20 -16
  37. package/dist/ai/BbOffCanvas.md +15 -10
  38. package/dist/ai/BbPagination.md +15 -6
  39. package/dist/ai/BbPopover.md +16 -9
  40. package/dist/ai/BbRadio.md +30 -9
  41. package/dist/ai/BbRadioGroup.md +78 -35
  42. package/dist/ai/BbRating.md +13 -11
  43. package/dist/ai/BbSelect.md +84 -49
  44. package/dist/ai/BbSelectPopover.md +33 -31
  45. package/dist/ai/BbSlider.md +266 -66
  46. package/dist/ai/BbSpinner.md +3 -3
  47. package/dist/ai/BbSwitch.md +33 -9
  48. package/dist/ai/BbSwitchGroup.md +27 -18
  49. package/dist/ai/BbTable.md +28 -25
  50. package/dist/ai/BbTabs.md +29 -32
  51. package/dist/ai/BbTabsList.md +4 -4
  52. package/dist/ai/BbTabsRoot.md +2 -2
  53. package/dist/ai/BbTag.md +15 -14
  54. package/dist/ai/BbTextInput.md +32 -22
  55. package/dist/ai/BbTextarea.md +20 -18
  56. package/dist/ai/BbTimePicker.md +5 -5
  57. package/dist/ai/BbTimePickerInput.md +15 -14
  58. package/dist/ai/BbToast.md +72 -28
  59. package/dist/ai/BbTooltip.md +7 -6
  60. package/dist/ai/BbTree.md +1 -1
  61. package/dist/ai/ChipsBox.md +1 -1
  62. package/dist/ai/ClearableButton.md +1 -1
  63. package/dist/ai/CommonField.md +5 -5
  64. package/dist/ai/CommonFieldInput.md +3 -2
  65. package/dist/ai/CommonPopover.md +4 -4
  66. package/dist/ai/CommonTimeSelector.md +1 -1
  67. package/dist/ai/ErrorIcon.md +1 -1
  68. package/dist/ai/FlatListBox.md +5 -4
  69. package/dist/ai/GroupedListBox.md +5 -4
  70. package/dist/ai/ListBox.md +6 -5
  71. package/dist/ai/OptionsContainer.md +20 -4
  72. package/dist/ai/WarningIcon.md +1 -1
  73. package/dist/ai/changelog.json +1002 -39
  74. package/dist/ai/components.json +117 -246
  75. package/dist/ai/composables/useBbConfig.md +3 -3
  76. package/dist/ai/composables/useBbDialog.md +1 -1
  77. package/dist/ai/composables/useBbFormField.md +1 -1
  78. package/dist/ai/composables/useConfirm.md +1 -1
  79. package/dist/ai/composables/useToast.md +16 -16
  80. package/dist/ai/design-tokens.json +10 -5
  81. package/dist/ai/guides/agent-contract.md +15 -10
  82. package/dist/ai/guides/ai-router.md +15 -10
  83. package/dist/ai/guides/app-layout.md +1 -1
  84. package/dist/ai/guides/calendars-and-digits.md +123 -0
  85. package/dist/ai/guides/component-picker.md +1 -1
  86. package/dist/ai/guides/design-language.md +18 -14
  87. package/dist/ai/guides/design-tokens.md +85 -43
  88. package/dist/ai/guides/eslint-rules.md +21 -2
  89. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  90. package/dist/ai/guides/icons-policy.md +1 -1
  91. package/dist/ai/guides/inertia-helpers.md +322 -41
  92. package/dist/ai/guides/inline-edit-playbook.md +1 -1
  93. package/dist/ai/guides/installation-and-plugin-setup.md +498 -189
  94. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  95. package/dist/ai/guides/migration/components/bb-alert.md +2 -2
  96. package/dist/ai/guides/migration/components/bb-badge.md +1 -1
  97. package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
  98. package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
  99. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
  100. package/dist/ai/guides/migration/components/bb-host.md +10 -8
  101. package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
  102. package/dist/ai/guides/migration/components/bb-rating.md +1 -1
  103. package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
  104. package/dist/ai/guides/migration/components/bb-select.md +3 -3
  105. package/dist/ai/guides/migration/components/bb-slider.md +17 -2
  106. package/dist/ai/guides/migration/components/bb-table.md +1 -0
  107. package/dist/ai/guides/migration/components/bb-tabs.md +33 -15
  108. package/dist/ai/guides/migration/components/bb-toast.md +10 -9
  109. package/dist/ai/guides/migration/components/use-confirm.md +1 -1
  110. package/dist/ai/guides/migration/v2-to-v3.md +345 -76
  111. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -0
  112. package/dist/ai/guides/migration/v3-beta-tooling.md +30 -13
  113. package/dist/ai/guides/options-items-playbook.md +5 -1
  114. package/dist/ai/guides/passthrough.md +150 -135
  115. package/dist/ai/guides/ssr-prefill.md +7 -1
  116. package/dist/ai/guides/typescript-generic-components.md +7 -7
  117. package/dist/ai/guides/validated-forms.md +14 -5
  118. package/dist/ai/guides/validation-libraries.md +4 -4
  119. package/dist/ai/helpers/inertia/manifest.json +23 -14
  120. package/dist/ai/helpers/inertia/useQuery.ts +74 -0
  121. package/dist/ai/helpers/inertia/useQueryObject.ts +33 -1
  122. package/dist/ai/helpers/inertia/useRouteQuery.ts +158 -30
  123. package/dist/ai/index.md +5 -3
  124. package/dist/ai/manifest/common.json +13 -15
  125. package/dist/ai/manifest/components/BbAccordion.tree.json +22 -4
  126. package/dist/ai/manifest/components/BbAlert.json +3 -2
  127. package/dist/ai/manifest/components/BbAlert.tree.json +26 -3
  128. package/dist/ai/manifest/components/BbAsterisk.tree.json +7 -1
  129. package/dist/ai/manifest/components/BbAvatar.json +2 -1
  130. package/dist/ai/manifest/components/BbAvatar.tree.json +16 -2
  131. package/dist/ai/manifest/components/BbBadge.json +4 -3
  132. package/dist/ai/manifest/components/BbBadge.tree.json +39 -4
  133. package/dist/ai/manifest/components/BbBadgeButton.tree.json +2 -2
  134. package/dist/ai/manifest/components/BbBaseButton.tree.json +16 -1
  135. package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +23 -2
  136. package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +21 -4
  137. package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +26 -2
  138. package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
  139. package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +34 -4
  140. package/dist/ai/manifest/components/BbButton.json +5 -4
  141. package/dist/ai/manifest/components/BbButton.tree.json +78 -5
  142. package/dist/ai/manifest/components/BbCalendar.json +2 -2
  143. package/dist/ai/manifest/components/BbCalendar.tree.json +81 -5
  144. package/dist/ai/manifest/components/BbCarousel.json +59 -0
  145. package/dist/ai/manifest/components/BbCarousel.tree.json +135 -0
  146. package/dist/ai/manifest/components/BbCheckbox.json +5 -4
  147. package/dist/ai/manifest/components/BbCheckbox.tree.json +31 -2
  148. package/dist/ai/manifest/components/BbCheckboxGroup.json +18 -15
  149. package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
  150. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +89 -5
  151. package/dist/ai/manifest/components/BbCollapsible.tree.json +11 -1
  152. package/dist/ai/manifest/components/BbColorInput.json +7 -6
  153. package/dist/ai/manifest/components/BbColorInput.tree.json +49 -4
  154. package/dist/ai/manifest/components/BbColorPalette.json +4 -3
  155. package/dist/ai/manifest/components/BbColorPalette.tree.json +36 -2
  156. package/dist/ai/manifest/components/BbConfigScope.json +23 -0
  157. package/dist/ai/manifest/components/BbConfirm.json +3 -2
  158. package/dist/ai/manifest/components/BbConfirm.tree.json +27 -3
  159. package/dist/ai/manifest/components/BbDatePicker.json +7 -6
  160. package/dist/ai/manifest/components/BbDatePicker.tree.json +42 -3
  161. package/dist/ai/manifest/components/BbDatePickerInput.json +7 -6
  162. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +86 -5
  163. package/dist/ai/manifest/components/BbDialog.json +3 -2
  164. package/dist/ai/manifest/components/BbDialog.tree.json +28 -3
  165. package/dist/ai/manifest/components/BbDropdown.json +14 -10
  166. package/dist/ai/manifest/components/BbDropdown.tree.json +80 -3
  167. package/dist/ai/manifest/components/BbDropdownButton.json +14 -11
  168. package/dist/ai/manifest/components/BbDropdownButton.tree.json +47 -4
  169. package/dist/ai/manifest/components/BbDropzone.json +2 -1
  170. package/dist/ai/manifest/components/BbDropzone.tree.json +27 -1
  171. package/dist/ai/manifest/components/BbForm.json +2 -2
  172. package/dist/ai/manifest/components/BbHost.tree.json +1 -1
  173. package/dist/ai/manifest/components/BbHoverCard.json +3 -3
  174. package/dist/ai/manifest/components/BbHoverCard.tree.json +18 -1
  175. package/dist/ai/manifest/components/BbIcon.json +2 -1
  176. package/dist/ai/manifest/components/BbIcon.tree.json +7 -1
  177. package/dist/ai/manifest/components/BbIndicator.json +2 -1
  178. package/dist/ai/manifest/components/BbIndicator.tree.json +27 -1
  179. package/dist/ai/manifest/components/BbNumberInput.json +6 -5
  180. package/dist/ai/manifest/components/BbNumberInput.tree.json +40 -3
  181. package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
  182. package/dist/ai/manifest/components/BbOffCanvas.tree.json +55 -2
  183. package/dist/ai/manifest/components/BbPagination.json +1 -1
  184. package/dist/ai/manifest/components/BbPagination.tree.json +23 -3
  185. package/dist/ai/manifest/components/BbPopover.json +5 -4
  186. package/dist/ai/manifest/components/BbPopover.tree.json +20 -2
  187. package/dist/ai/manifest/components/BbProgress.tree.json +9 -1
  188. package/dist/ai/manifest/components/BbRadio.json +3 -2
  189. package/dist/ai/manifest/components/BbRadio.tree.json +30 -2
  190. package/dist/ai/manifest/components/BbRadioGroup.json +22 -19
  191. package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
  192. package/dist/ai/manifest/components/BbRadioGroup.tree.json +88 -5
  193. package/dist/ai/manifest/components/BbRating.json +6 -5
  194. package/dist/ai/manifest/components/BbRating.removed.json +1 -0
  195. package/dist/ai/manifest/components/BbRating.tree.json +37 -2
  196. package/dist/ai/manifest/components/BbSelect.json +13 -11
  197. package/dist/ai/manifest/components/BbSelect.tree.json +70 -7
  198. package/dist/ai/manifest/components/BbSelectPopover.json +17 -13
  199. package/dist/ai/manifest/components/BbSelectPopover.tree.json +94 -8
  200. package/dist/ai/manifest/components/BbSlider.json +30 -27
  201. package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
  202. package/dist/ai/manifest/components/BbSlider.tree.json +48 -3
  203. package/dist/ai/manifest/components/BbSmoothHeight.tree.json +10 -1
  204. package/dist/ai/manifest/components/BbSpinner.tree.json +21 -2
  205. package/dist/ai/manifest/components/BbSwitch.json +3 -2
  206. package/dist/ai/manifest/components/BbSwitch.tree.json +31 -2
  207. package/dist/ai/manifest/components/BbSwitchGroup.json +9 -7
  208. package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
  209. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +65 -3
  210. package/dist/ai/manifest/components/BbTable.json +10 -9
  211. package/dist/ai/manifest/components/BbTable.tree.json +144 -5
  212. package/dist/ai/manifest/components/BbTabs.json +7 -6
  213. package/dist/ai/manifest/components/BbTabs.removed.json +5 -1
  214. package/dist/ai/manifest/components/BbTabs.tree.json +34 -3
  215. package/dist/ai/manifest/components/BbTabsList.json +4 -4
  216. package/dist/ai/manifest/components/BbTabsList.removed.json +5 -1
  217. package/dist/ai/manifest/components/BbTabsList.tree.json +24 -2
  218. package/dist/ai/manifest/components/BbTabsPanels.tree.json +16 -1
  219. package/dist/ai/manifest/components/BbTabsRoot.json +3 -3
  220. package/dist/ai/manifest/components/BbTag.json +7 -6
  221. package/dist/ai/manifest/components/BbTag.tree.json +49 -4
  222. package/dist/ai/manifest/components/BbTextInput.json +6 -5
  223. package/dist/ai/manifest/components/BbTextInput.tree.json +43 -3
  224. package/dist/ai/manifest/components/BbTextarea.json +7 -6
  225. package/dist/ai/manifest/components/BbTextarea.tree.json +46 -3
  226. package/dist/ai/manifest/components/BbTimePicker.json +7 -6
  227. package/dist/ai/manifest/components/BbTimePicker.tree.json +30 -3
  228. package/dist/ai/manifest/components/BbTimePickerInput.json +7 -6
  229. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +58 -6
  230. package/dist/ai/manifest/components/BbToast.json +3 -2
  231. package/dist/ai/manifest/components/BbToast.tree.json +46 -2
  232. package/dist/ai/manifest/components/BbTooltip.json +4 -3
  233. package/dist/ai/manifest/components/BbTooltip.tree.json +17 -1
  234. package/dist/ai/manifest/components/BbTree.tree.json +14 -1
  235. package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
  236. package/dist/ai/manifest/components/ClearableButton.tree.json +8 -2
  237. package/dist/ai/manifest/components/CommonField.json +2 -2
  238. package/dist/ai/manifest/components/CommonField.tree.json +68 -1
  239. package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
  240. package/dist/ai/manifest/components/CommonFieldInput.tree.json +38 -6
  241. package/dist/ai/manifest/components/CommonPopover.json +7 -5
  242. package/dist/ai/manifest/components/CommonPopover.tree.json +11 -1
  243. package/dist/ai/manifest/components/CommonTimeSelector.tree.json +18 -2
  244. package/dist/ai/manifest/components/ErrorIcon.tree.json +8 -2
  245. package/dist/ai/manifest/components/FlatListBox.json +1 -1
  246. package/dist/ai/manifest/components/FlatListBox.tree.json +4 -3
  247. package/dist/ai/manifest/components/GroupedListBox.json +1 -1
  248. package/dist/ai/manifest/components/GroupedListBox.tree.json +4 -3
  249. package/dist/ai/manifest/components/ListBox.json +1 -1
  250. package/dist/ai/manifest/components/ListBox.tree.json +2 -2
  251. package/dist/ai/manifest/components/OptionsContainer.json +4 -3
  252. package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
  253. package/dist/ai/manifest/components/WarningIcon.tree.json +8 -2
  254. package/dist/ai/manifest/index.json +6 -5
  255. package/dist/ai/manifest/meta.json +23 -153
  256. package/dist/ai/manifest/types.advanced.json +78 -77
  257. package/dist/ai/manifest/types.api.json +29 -19
  258. package/dist/ai/manifest/types.wrapper.json +115 -112
  259. package/dist/ai/recipes/inertia/approvals-inbox.md +10 -10
  260. package/dist/ai/recipes/inertia/inline-edit-workspace.md +24 -20
  261. package/dist/ai/recipes/inertia/onboarding.md +10 -10
  262. package/dist/ai/recipes/inertia/ownership-atlas.md +8 -8
  263. package/dist/ai/recipes/inertia/record-form.md +16 -16
  264. package/dist/ai/recipes/inertia/records-workspace.md +13 -12
  265. package/dist/ai/recipes/inertia/settings-workspace.md +16 -15
  266. package/dist/ai/recipes/inertia/upload-center.md +13 -13
  267. package/dist/ai/recipes/inertia/wizard-form.md +16 -16
  268. package/dist/ai/recipes/nuxt/approvals-inbox.md +13 -13
  269. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +26 -22
  270. package/dist/ai/recipes/nuxt/onboarding.md +10 -10
  271. package/dist/ai/recipes/nuxt/ownership-atlas.md +12 -12
  272. package/dist/ai/recipes/nuxt/record-form.md +16 -16
  273. package/dist/ai/recipes/nuxt/records-workspace.md +16 -15
  274. package/dist/ai/recipes/nuxt/settings-workspace.md +15 -14
  275. package/dist/ai/recipes/nuxt/upload-center.md +15 -15
  276. package/dist/ai/recipes/nuxt/wizard-form.md +17 -17
  277. package/dist/ai/recipes/vue/approvals-inbox.md +15 -13
  278. package/dist/ai/recipes/vue/inline-edit-workspace.md +26 -22
  279. package/dist/ai/recipes/vue/onboarding.md +16 -11
  280. package/dist/ai/recipes/vue/ownership-atlas.md +12 -12
  281. package/dist/ai/recipes/vue/record-form.md +18 -16
  282. package/dist/ai/recipes/vue/records-workspace.md +18 -15
  283. package/dist/ai/recipes/vue/settings-workspace.md +18 -15
  284. package/dist/ai/recipes/vue/upload-center.md +15 -15
  285. package/dist/ai/recipes/vue/wizard-form.md +18 -16
  286. package/dist/ai/source/BbAccordion.md +11 -14
  287. package/dist/ai/source/BbAlert.md +103 -91
  288. package/dist/ai/source/BbAsterisk.md +6 -7
  289. package/dist/ai/source/BbAvatar.md +42 -41
  290. package/dist/ai/source/BbBadge.md +100 -89
  291. package/dist/ai/source/BbBadgeButton.md +80 -76
  292. package/dist/ai/source/BbBaseButton.md +284 -276
  293. package/dist/ai/source/BbBaseCheckboxIcon.md +76 -68
  294. package/dist/ai/source/BbBaseRadioIcon.md +80 -68
  295. package/dist/ai/source/BbBaseSwitchIcon.md +98 -74
  296. package/dist/ai/source/BbBreadcrumbs.md +76 -63
  297. package/dist/ai/source/BbButton.md +101 -77
  298. package/dist/ai/source/BbCalendar.md +166 -176
  299. package/dist/ai/source/BbCarousel.md +2897 -0
  300. package/dist/ai/source/BbCheckbox.md +230 -192
  301. package/dist/ai/source/BbCheckboxGroup.md +172 -79
  302. package/dist/ai/source/BbCollapsible.md +7 -10
  303. package/dist/ai/source/BbColorInput.md +256 -243
  304. package/dist/ai/source/BbColorPalette.md +239 -160
  305. package/dist/ai/source/BbConfigScope.md +123 -0
  306. package/dist/ai/source/BbConfirm.md +38 -32
  307. package/dist/ai/source/BbConfirmPortal.md +30 -26
  308. package/dist/ai/source/BbDatePicker.md +218 -187
  309. package/dist/ai/source/BbDatePickerInput.md +789 -428
  310. package/dist/ai/source/BbDialog.md +207 -191
  311. package/dist/ai/source/BbDropdown.md +326 -234
  312. package/dist/ai/source/BbDropdownButton.md +115 -68
  313. package/dist/ai/source/BbDropdownGroup.md +271 -216
  314. package/dist/ai/source/BbDropzone.md +101 -100
  315. package/dist/ai/source/BbForm.md +29 -29
  316. package/dist/ai/source/BbHost.md +6 -6
  317. package/dist/ai/source/BbHoverCard.md +34 -20
  318. package/dist/ai/source/BbHoverCardPortal.md +9 -12
  319. package/dist/ai/source/BbIcon.md +32 -30
  320. package/dist/ai/source/BbIndicator.md +76 -70
  321. package/dist/ai/source/BbNumberInput.md +334 -313
  322. package/dist/ai/source/BbOffCanvas.md +245 -216
  323. package/dist/ai/source/BbPagination.md +144 -116
  324. package/dist/ai/source/BbPopover.md +49 -31
  325. package/dist/ai/source/BbPopoverPortal.md +11 -14
  326. package/dist/ai/source/BbProgress.md +20 -12
  327. package/dist/ai/source/BbRadio.md +205 -181
  328. package/dist/ai/source/BbRadioGroup.md +461 -364
  329. package/dist/ai/source/BbRating.md +212 -177
  330. package/dist/ai/source/BbSelect.md +514 -482
  331. package/dist/ai/source/BbSelectPopover.md +497 -413
  332. package/dist/ai/source/BbSlider.md +1208 -777
  333. package/dist/ai/source/BbSmoothHeight.md +8 -9
  334. package/dist/ai/source/BbSpinner.md +20 -20
  335. package/dist/ai/source/BbSwitch.md +25 -13
  336. package/dist/ai/source/BbSwitchGroup.md +115 -34
  337. package/dist/ai/source/BbTable.md +577 -531
  338. package/dist/ai/source/BbTabs.md +134 -116
  339. package/dist/ai/source/BbTabsList.md +164 -136
  340. package/dist/ai/source/BbTabsPanels.md +128 -113
  341. package/dist/ai/source/BbTabsRoot.md +125 -110
  342. package/dist/ai/source/BbTag.md +286 -281
  343. package/dist/ai/source/BbTextInput.md +59 -50
  344. package/dist/ai/source/BbTextarea.md +85 -71
  345. package/dist/ai/source/BbTimePicker.md +145 -126
  346. package/dist/ai/source/BbTimePickerInput.md +383 -316
  347. package/dist/ai/source/BbToast.md +97 -44
  348. package/dist/ai/source/BbToastPortal.md +56 -36
  349. package/dist/ai/source/BbTooltip.md +155 -129
  350. package/dist/ai/source/BbTree.md +16 -12
  351. package/dist/ai/source/CommonField.md +94 -59
  352. package/dist/ai/source/CommonFieldInput.md +18 -13
  353. package/dist/ai/source/CommonPopover.md +28 -9
  354. package/dist/ai/source/CommonTimeSelector.md +41 -8
  355. package/dist/ai/source/FlatListBox.md +16 -5
  356. package/dist/ai/source/GroupedListBox.md +18 -6
  357. package/dist/ai/source/ListBox.md +2 -1
  358. package/dist/ai/source/OptionsContainer.md +82 -4
  359. package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
  360. package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
  361. package/dist/assets/svgs/chevron_left.svg_raw.js +3 -0
  362. package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
  363. package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
  364. package/dist/assets/svgs/close.svg_raw.js +3 -0
  365. package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
  366. package/dist/assets/svgs/move.svg_raw.js +3 -0
  367. package/dist/assets/svgs/pause.svg_raw.js +3 -0
  368. package/dist/assets/svgs/play.svg_raw.js +3 -0
  369. package/dist/assets/svgs/star.svg_raw.js +1 -1
  370. package/dist/assets/svgs/x.svg_raw.js +3 -0
  371. package/dist/calendar-runtime.js +112 -0
  372. package/dist/calendars.js +83 -0
  373. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +2 -2
  374. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +4 -4
  375. package/dist/components/BbAccordion/ptKeys.generated.d.ts +44 -0
  376. package/dist/components/BbAccordion/types.d.ts +5 -6
  377. package/dist/components/BbAlert/BbAlert.vue.d.ts +5 -4
  378. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +52 -48
  379. package/dist/components/BbAlert/ptKeys.generated.d.ts +104 -0
  380. package/dist/components/BbAlert/types.d.ts +16 -9
  381. package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +2 -2
  382. package/dist/components/BbAsterisk/ptKeys.generated.d.ts +8 -0
  383. package/dist/components/BbAsterisk/types.d.ts +4 -5
  384. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +3 -3
  385. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
  386. package/dist/components/BbAvatar/ptKeys.generated.d.ts +12 -0
  387. package/dist/components/BbAvatar/types.d.ts +5 -6
  388. package/dist/components/BbBadge/BbBadge.vue.d.ts +4 -4
  389. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +75 -71
  390. package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +2 -2
  391. package/dist/components/BbBadge/badgeButtonContext.d.ts +5 -5
  392. package/dist/components/BbBadge/ptKeys.generated.d.ts +160 -0
  393. package/dist/components/BbBadge/types.d.ts +17 -10
  394. package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +2 -2
  395. package/dist/components/BbBaseButton/ptKeys.generated.d.ts +20 -0
  396. package/dist/components/BbBaseButton/types.d.ts +13 -6
  397. package/dist/components/BbBaseButton/useLinkState.d.ts +1 -1
  398. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +2 -2
  399. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +4 -4
  400. package/dist/components/BbBaseCheckboxIcon/ptKeys.generated.d.ts +40 -0
  401. package/dist/components/BbBaseCheckboxIcon/types.d.ts +12 -6
  402. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +2 -2
  403. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +4 -4
  404. package/dist/components/BbBaseRadioIcon/ptKeys.generated.d.ts +36 -0
  405. package/dist/components/BbBaseRadioIcon/types.d.ts +12 -6
  406. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +2 -2
  407. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +4 -4
  408. package/dist/components/BbBaseSwitchIcon/ptKeys.generated.d.ts +40 -0
  409. package/dist/components/BbBaseSwitchIcon/types.d.ts +12 -6
  410. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +2 -2
  411. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +5 -5
  412. package/dist/components/BbBreadcrumbs/ptKeys.generated.d.ts +48 -0
  413. package/dist/components/BbBreadcrumbs/types.d.ts +15 -8
  414. package/dist/components/BbButton/BbButton.vue.d.ts +6 -4
  415. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +130 -118
  416. package/dist/components/BbButton/ptKeys.generated.d.ts +196 -0
  417. package/dist/components/BbButton/toggleRoving.js +29 -28
  418. package/dist/components/BbButton/types.d.ts +29 -21
  419. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +9 -71
  420. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +327 -340
  421. package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +67 -65
  422. package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +76 -67
  423. package/dist/components/BbCalendar/calendarHost.d.ts +1 -1
  424. package/dist/components/BbCalendar/calendarMath.d.ts +102 -0
  425. package/dist/components/BbCalendar/calendarMath.js +124 -0
  426. package/dist/components/BbCalendar/ptKeys.generated.d.ts +248 -0
  427. package/dist/components/BbCalendar/types.d.ts +15 -9
  428. package/dist/components/BbCalendar/useCalendarContext.d.ts +43 -17
  429. package/dist/components/BbCalendar/useCalendarGrid.d.ts +71 -4
  430. package/dist/components/BbCalendar/useCalendarGrid.js +264 -209
  431. package/dist/components/BbCalendar/useDayGrid.d.ts +26 -8
  432. package/dist/components/BbCalendar/useDayGrid.js +178 -172
  433. package/dist/components/BbCalendar/useDayjsLocale.d.ts +18 -3
  434. package/dist/components/BbCalendar/useDayjsLocale.js +28 -28
  435. package/dist/components/BbCalendar/useToday.d.ts +5 -3
  436. package/dist/components/BbCalendar/useToday.js +22 -12
  437. package/dist/components/BbCarousel/BbCarousel.vue.d.ts +51 -0
  438. package/dist/components/BbCarousel/BbCarousel.vue.js +5 -0
  439. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +818 -0
  440. package/dist/components/BbCarousel/ptKeys.generated.d.ts +60 -0
  441. package/dist/components/BbCarousel/types.d.ts +213 -0
  442. package/dist/components/BbCarousel/types.js +27 -0
  443. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +8 -6
  444. package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +123 -111
  445. package/dist/components/BbCheckbox/ptKeys.generated.d.ts +220 -0
  446. package/dist/components/BbCheckbox/types.d.ts +30 -14
  447. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +167 -306
  448. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +222 -189
  449. package/dist/components/BbCheckboxGroup/ptKeys.generated.d.ts +492 -0
  450. package/dist/components/BbCheckboxGroup/types.d.ts +42 -28
  451. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +4 -4
  452. package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +1 -1
  453. package/dist/components/BbCollapsible/ptKeys.generated.d.ts +20 -0
  454. package/dist/components/BbCollapsible/types.d.ts +5 -6
  455. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +16 -14
  456. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +206 -195
  457. package/dist/components/BbColorInput/ptKeys.generated.d.ts +656 -0
  458. package/dist/components/BbColorInput/types.d.ts +30 -20
  459. package/dist/components/BbColorInput/types.js +1 -1
  460. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +4 -4
  461. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +331 -296
  462. package/dist/components/BbColorPalette/ptKeys.generated.d.ts +40 -0
  463. package/dist/components/BbColorPalette/types.d.ts +17 -10
  464. package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
  465. package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
  466. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
  467. package/dist/components/BbConfigScope/types.d.ts +20 -0
  468. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -1
  469. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +27 -27
  470. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -1
  471. package/dist/components/BbConfirm/confirmEntry.d.ts +2 -2
  472. package/dist/components/BbConfirm/ptKeys.generated.d.ts +184 -0
  473. package/dist/components/BbConfirm/types.d.ts +14 -7
  474. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -97
  475. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +201 -197
  476. package/dist/components/BbDatePicker/ptKeys.generated.d.ts +324 -0
  477. package/dist/components/BbDatePicker/types.d.ts +22 -15
  478. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +20 -309
  479. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +793 -660
  480. package/dist/components/BbDatePickerInput/calendarFields.d.ts +91 -0
  481. package/dist/components/BbDatePickerInput/calendarFields.js +188 -0
  482. package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +6 -0
  483. package/dist/components/BbDatePickerInput/dateFieldLayout.js +11 -1
  484. package/dist/components/BbDatePickerInput/ptKeys.generated.d.ts +1156 -0
  485. package/dist/components/BbDatePickerInput/types.d.ts +36 -26
  486. package/dist/components/BbDatePickerInput/types.js +1 -1
  487. package/dist/components/BbDialog/BbDialog.vue.d.ts +9 -8
  488. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +211 -204
  489. package/dist/components/BbDialog/ptKeys.generated.d.ts +100 -0
  490. package/dist/components/BbDialog/types.d.ts +26 -20
  491. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +1 -1
  492. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +7 -6
  493. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +399 -377
  494. package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +2 -2
  495. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +1 -1
  496. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +297 -292
  497. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
  498. package/dist/components/BbDropdown/DropdownRow.vue.d.ts +3 -3
  499. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
  500. package/dist/components/BbDropdown/normalizeGroups.d.ts +2 -2
  501. package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
  502. package/dist/components/BbDropdown/pointerTrail.js +26 -0
  503. package/dist/components/BbDropdown/ptKeys.generated.d.ts +228 -0
  504. package/dist/components/BbDropdown/types.d.ts +65 -48
  505. package/dist/components/BbDropdown/types.js +11 -2
  506. package/dist/components/BbDropdown/useDropdownContext.d.ts +3 -3
  507. package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +5 -5
  508. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +7 -6
  509. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +168 -144
  510. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +616 -0
  511. package/dist/components/BbDropdownButton/types.d.ts +47 -23
  512. package/dist/components/BbDropdownButton/types.js +7 -3
  513. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +7 -26
  514. package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +14 -14
  515. package/dist/components/BbDropzone/ptKeys.generated.d.ts +76 -0
  516. package/dist/components/BbDropzone/types.d.ts +15 -8
  517. package/dist/components/BbForm/BbForm.vue.d.ts +5 -5
  518. package/dist/components/BbForm/BbFormCustomField.d.ts +1 -1
  519. package/dist/components/BbForm/BbFormCustomField.js +2 -2
  520. package/dist/components/BbForm/bindFormField.d.ts +4 -4
  521. package/dist/components/BbForm/bindFormField.js +66 -66
  522. package/dist/components/BbForm/formFields.d.ts +5 -5
  523. package/dist/components/BbForm/formSchema.d.ts +4 -4
  524. package/dist/components/BbHost/BbHost.vue.d.ts +1 -1
  525. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
  526. package/dist/components/BbHost/BbHostOpening.d.ts +4 -4
  527. package/dist/components/BbHost/types.d.ts +3 -3
  528. package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +4 -4
  529. package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +169 -162
  530. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +1 -1
  531. package/dist/components/BbHoverCard/ptKeys.generated.d.ts +44 -0
  532. package/dist/components/BbHoverCard/types.d.ts +8 -9
  533. package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -3
  534. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
  535. package/dist/components/BbIcon/ptKeys.generated.d.ts +8 -0
  536. package/dist/components/BbIcon/types.d.ts +7 -8
  537. package/dist/components/BbIndicator/BbIndicator.vue.d.ts +4 -4
  538. package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +1 -1
  539. package/dist/components/BbIndicator/ptKeys.generated.d.ts +52 -0
  540. package/dist/components/BbIndicator/types.d.ts +15 -8
  541. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +15 -12
  542. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +327 -311
  543. package/dist/components/BbNumberInput/numberDisplay.d.ts +10 -11
  544. package/dist/components/BbNumberInput/ptKeys.generated.d.ts +476 -0
  545. package/dist/components/BbNumberInput/types.d.ts +33 -22
  546. package/dist/components/BbNumberInput/types.js +1 -1
  547. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
  548. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +408 -406
  549. package/dist/components/BbOffCanvas/ptKeys.generated.d.ts +88 -0
  550. package/dist/components/BbOffCanvas/sheetAttrs.d.ts +1 -1
  551. package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -2
  552. package/dist/components/BbOffCanvas/types.d.ts +30 -23
  553. package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +1 -1
  554. package/dist/components/BbPagination/BbPagination.vue.d.ts +3 -3
  555. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +110 -114
  556. package/dist/components/BbPagination/paginationFit.d.ts +1 -1
  557. package/dist/components/BbPagination/ptKeys.generated.d.ts +48 -0
  558. package/dist/components/BbPagination/types.d.ts +16 -8
  559. package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
  560. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +121 -115
  561. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +1 -1
  562. package/dist/components/BbPopover/ptKeys.generated.d.ts +52 -0
  563. package/dist/components/BbPopover/types.d.ts +10 -11
  564. package/dist/components/BbProgress/BbProgress.vue.d.ts +2 -2
  565. package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +1 -1
  566. package/dist/components/BbProgress/ptKeys.generated.d.ts +20 -0
  567. package/dist/components/BbProgress/types.d.ts +4 -5
  568. package/dist/components/BbRadio/BbRadio.vue.d.ts +8 -6
  569. package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +134 -122
  570. package/dist/components/BbRadio/ptKeys.generated.d.ts +196 -0
  571. package/dist/components/BbRadio/types.d.ts +24 -13
  572. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +152 -248
  573. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +248 -215
  574. package/dist/components/BbRadioGroup/ptKeys.generated.d.ts +492 -0
  575. package/dist/components/BbRadioGroup/types.d.ts +41 -24
  576. package/dist/components/BbRating/BbRating.vue.d.ts +9 -7
  577. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +153 -142
  578. package/dist/components/BbRating/ptKeys.generated.d.ts +152 -0
  579. package/dist/components/BbRating/types.d.ts +31 -20
  580. package/dist/components/BbRating/types.js +1 -1
  581. package/dist/components/BbSelect/BbSelect.vue.d.ts +269 -483
  582. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +362 -341
  583. package/dist/components/BbSelect/ptKeys.generated.d.ts +960 -0
  584. package/dist/components/BbSelect/types.d.ts +50 -37
  585. package/dist/components/BbSelect/types.js +4 -2
  586. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +23 -50
  587. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +750 -730
  588. package/dist/components/BbSelectPopover/knownItems.d.ts +4 -4
  589. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +148 -0
  590. package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
  591. package/dist/components/BbSelectPopover/reclickClears.js +4 -0
  592. package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +1 -1
  593. package/dist/components/BbSelectPopover/types.d.ts +44 -31
  594. package/dist/components/BbSelectPopover/types.js +3 -1
  595. package/dist/components/BbSlider/BbSlider.vue.d.ts +27 -86
  596. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +414 -331
  597. package/dist/components/BbSlider/ptKeys.generated.d.ts +316 -0
  598. package/dist/components/BbSlider/types.d.ts +162 -61
  599. package/dist/components/BbSlider/types.js +2 -0
  600. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -3
  601. package/dist/components/BbSmoothHeight/ptKeys.generated.d.ts +8 -0
  602. package/dist/components/BbSmoothHeight/types.d.ts +5 -6
  603. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +3 -3
  604. package/dist/components/BbSpinner/ptKeys.generated.d.ts +8 -0
  605. package/dist/components/BbSpinner/types.d.ts +5 -6
  606. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +6 -6
  607. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +30 -30
  608. package/dist/components/BbSwitch/ptKeys.generated.d.ts +220 -0
  609. package/dist/components/BbSwitch/types.d.ts +15 -5
  610. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +38 -116
  611. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +13 -10
  612. package/dist/components/BbSwitchGroup/ptKeys.generated.d.ts +332 -0
  613. package/dist/components/BbSwitchGroup/types.d.ts +14 -5
  614. package/dist/components/BbTable/BbTable.vue.d.ts +13 -13
  615. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1360 -1366
  616. package/dist/components/BbTable/BbTableDataRow.d.ts +4 -4
  617. package/dist/components/BbTable/BbTableEdgeRow.d.ts +5 -5
  618. package/dist/components/BbTable/BbTableExpandRow.d.ts +2 -2
  619. package/dist/components/BbTable/BbTableSelectToggle.d.ts +3 -3
  620. package/dist/components/BbTable/estimatedFloors.golden.d.ts +1 -1
  621. package/dist/components/BbTable/gridWidgets.d.ts +1 -1
  622. package/dist/components/BbTable/measuredFloors.d.ts +1 -1
  623. package/dist/components/BbTable/measuredFloorsTestKit.d.ts +1 -1
  624. package/dist/components/BbTable/ptKeys.generated.d.ts +280 -0
  625. package/dist/components/BbTable/types.d.ts +30 -22
  626. package/dist/components/BbTable/utils.d.ts +5 -5
  627. package/dist/components/BbTable/utils.js +89 -88
  628. package/dist/components/BbTabs/BbTabs.vue.d.ts +41 -69
  629. package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +21 -15
  630. package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -3
  631. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +121 -122
  632. package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +3 -3
  633. package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +1 -1
  634. package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +2 -2
  635. package/dist/components/BbTabs/ptKeys.generated.d.ts +226 -0
  636. package/dist/components/BbTabs/types.d.ts +41 -23
  637. package/dist/components/BbTag/BbTag.vue.d.ts +18 -16
  638. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +248 -238
  639. package/dist/components/BbTag/ptKeys.generated.d.ts +540 -0
  640. package/dist/components/BbTag/types.d.ts +28 -18
  641. package/dist/components/BbTag/types.js +1 -1
  642. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +19 -171
  643. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +176 -165
  644. package/dist/components/BbTextInput/ptKeys.generated.d.ts +608 -0
  645. package/dist/components/BbTextInput/types.d.ts +30 -21
  646. package/dist/components/BbTextInput/types.js +1 -1
  647. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +19 -171
  648. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +206 -196
  649. package/dist/components/BbTextarea/ptKeys.generated.d.ts +608 -0
  650. package/dist/components/BbTextarea/types.d.ts +29 -20
  651. package/dist/components/BbTextarea/types.js +1 -1
  652. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +13 -33
  653. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +137 -136
  654. package/dist/components/BbTimePicker/ptKeys.generated.d.ts +80 -0
  655. package/dist/components/BbTimePicker/types.d.ts +19 -13
  656. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +18 -201
  657. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +421 -397
  658. package/dist/components/BbTimePickerInput/ptKeys.generated.d.ts +732 -0
  659. package/dist/components/BbTimePickerInput/types.d.ts +35 -23
  660. package/dist/components/BbTimePickerInput/types.js +1 -1
  661. package/dist/components/BbToast/BbToast.vue.d.ts +2 -2
  662. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +60 -53
  663. package/dist/components/BbToast/BbToastMessage.vue.d.ts +2 -2
  664. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
  665. package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -1
  666. package/dist/components/BbToast/BbToastRegion.vue.d.ts +5 -3
  667. package/dist/components/BbToast/ptKeys.generated.d.ts +232 -0
  668. package/dist/components/BbToast/types.d.ts +22 -13
  669. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +6 -6
  670. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +99 -88
  671. package/dist/components/BbTooltip/ptKeys.generated.d.ts +36 -0
  672. package/dist/components/BbTooltip/tooltipWarmup.d.ts +2 -2
  673. package/dist/components/BbTooltip/types.d.ts +16 -9
  674. package/dist/components/BbTree/BbTree.vue.d.ts +7 -11
  675. package/dist/components/BbTree/BbTreeLevel.vue.d.ts +1 -1
  676. package/dist/components/BbTree/context.d.ts +2 -2
  677. package/dist/components/BbTree/ptKeys.generated.d.ts +16 -0
  678. package/dist/components/BbTree/types.d.ts +5 -6
  679. package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -2
  680. package/dist/components/ChipsBox/types.d.ts +2 -2
  681. package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -2
  682. package/dist/components/CloseIcon/CloseButton.vue.d.ts +2 -2
  683. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  684. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
  685. package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -2
  686. package/dist/components/CommaBox/types.d.ts +2 -2
  687. package/dist/components/CommonField/CommonField.vue.d.ts +7 -7
  688. package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +9 -4
  689. package/dist/components/CommonField/messageHeightMatrix.d.ts +1 -1
  690. package/dist/components/CommonField/types.d.ts +18 -14
  691. package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +3 -3
  692. package/dist/components/CommonFieldInput/types.d.ts +4 -4
  693. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +4 -4
  694. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +56 -55
  695. package/dist/components/CommonPopover/resolvePlacement.d.ts +9 -0
  696. package/dist/components/CommonPopover/resolvePlacement.js +9 -0
  697. package/dist/components/CommonPopover/types.d.ts +5 -5
  698. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +2 -2
  699. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +110 -99
  700. package/dist/components/CommonTimeSelector/useMeridiem.d.ts +1 -1
  701. package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -2
  702. package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -2
  703. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
  704. package/dist/components/FlatListBox/types.d.ts +3 -3
  705. package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -2
  706. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
  707. package/dist/components/GroupedListBox/types.d.ts +3 -3
  708. package/dist/components/ListBox/ListBox.vue.d.ts +2 -2
  709. package/dist/components/ListBox/types.d.ts +3 -3
  710. package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -1
  711. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +101 -69
  712. package/dist/components/OptionsContainer/types.d.ts +8 -3
  713. package/dist/components/Transitions/Slide.vue.d.ts +5 -3
  714. package/dist/components/Transitions/Slide.vue.js +1 -1
  715. package/dist/components/WarningIcon/WarningIcon.vue.d.ts +2 -2
  716. package/dist/composables/autoHost.d.ts +1 -1
  717. package/dist/composables/formSubmitLock.d.ts +5 -5
  718. package/dist/composables/hostOpenings.d.ts +6 -6
  719. package/dist/composables/hostRegistry.d.ts +2 -2
  720. package/dist/composables/overlayRegistry.d.ts +25 -25
  721. package/dist/composables/overlayRegistry.js +13 -7
  722. package/dist/composables/useBaseOptions.d.ts +2 -2
  723. package/dist/composables/useBbConfig.d.ts +5 -5
  724. package/dist/composables/useBbDialog.d.ts +17 -17
  725. package/dist/composables/useBbDialog.js +2 -1
  726. package/dist/composables/useBbDropdown.d.ts +1 -1
  727. package/dist/composables/useBbForm.d.ts +2 -2
  728. package/dist/composables/useBbFormField.d.ts +4 -4
  729. package/dist/composables/useBbOffCanvas.d.ts +6 -6
  730. package/dist/composables/useBbTable.d.ts +4 -4
  731. package/dist/composables/useBbTabs.d.ts +4 -4
  732. package/dist/composables/useBbTabs.js +99 -94
  733. package/dist/composables/useBreakpoint.d.ts +1 -1
  734. package/dist/composables/useCharacterCounter.d.ts +2 -2
  735. package/dist/composables/useChoiceIndicator.d.ts +2 -2
  736. package/dist/composables/useClosingInert.d.ts +1 -1
  737. package/dist/composables/useConfig.d.ts +3 -3
  738. package/dist/composables/useConfig.js +2 -9
  739. package/dist/composables/useConfigDefaults.d.ts +54 -0
  740. package/dist/composables/useConfigDefaults.js +56 -0
  741. package/dist/composables/useConfirm.d.ts +18 -18
  742. package/dist/composables/useDirection.d.ts +43 -0
  743. package/dist/composables/useDirection.js +12 -0
  744. package/dist/composables/useFormBinding.d.ts +5 -5
  745. package/dist/composables/useFormBinding.js +3 -3
  746. package/dist/composables/useId.d.ts +1 -1
  747. package/dist/composables/useItemsGetter.d.ts +3 -3
  748. package/dist/composables/useKeyboardInset.d.ts +1 -1
  749. package/dist/composables/useListboxFocus.d.ts +1 -1
  750. package/dist/composables/useLocale.d.ts +2 -2
  751. package/dist/composables/useOnDemandOpener.d.ts +3 -3
  752. package/dist/composables/useOverlayNavigation.d.ts +1 -1
  753. package/dist/composables/useOverlayYield.d.ts +1 -1
  754. package/dist/composables/usePassthrough.d.ts +13 -11
  755. package/dist/composables/usePassthrough.js +137 -133
  756. package/dist/composables/useQuery.d.ts +1 -1
  757. package/dist/composables/useRefusedCloseAnnouncement.d.ts +1 -1
  758. package/dist/composables/useSafeArea.d.ts +1 -1
  759. package/dist/composables/useSafeAreaInternal.d.ts +1 -1
  760. package/dist/composables/useSegmentedFields.d.ts +25 -0
  761. package/dist/composables/useSegmentedFields.js +165 -115
  762. package/dist/composables/useServerPrefetch.d.ts +2 -2
  763. package/dist/composables/useSheetSurface.d.ts +1 -1
  764. package/dist/composables/useSsrState.d.ts +2 -2
  765. package/dist/composables/useToast.d.ts +13 -5
  766. package/dist/composables/useToast.js +52 -38
  767. package/dist/composables/useTypeahead.js +22 -21
  768. package/dist/deprecation/ai-deprecations.json.d.ts +160 -15
  769. package/dist/deprecation/ai-deprecations.json.js +1 -1
  770. package/dist/deprecation/removedProps.d.ts +1 -1
  771. package/dist/directives/bbColor.d.ts +1 -1
  772. package/dist/directives/bbDate.d.ts +1 -1
  773. package/dist/directives/bbDialog.d.ts +3 -3
  774. package/dist/directives/bbDropdown.d.ts +1 -1
  775. package/dist/directives/bbDropdown.js +7 -7
  776. package/dist/directives/bbHoverCard.d.ts +3 -3
  777. package/dist/directives/bbOffCanvas.d.ts +2 -2
  778. package/dist/directives/bbPopover.d.ts +3 -3
  779. package/dist/directives/bbTime.d.ts +1 -1
  780. package/dist/directives/bbTooltip.d.ts +4 -4
  781. package/dist/directives/directivePortal.d.ts +4 -4
  782. package/dist/directives/overlayTrigger.d.ts +4 -4
  783. package/dist/directives/overlayTrigger.js +2 -1
  784. package/dist/i18n/eraNames.d.ts +2 -0
  785. package/dist/i18n/eraNames.js +2013 -0
  786. package/dist/i18n/index.d.ts +9 -7
  787. package/dist/i18n/localeTags.d.ts +36 -0
  788. package/dist/i18n/locales/ar.json +176 -0
  789. package/dist/i18n/locales/cs.json +23 -3
  790. package/dist/i18n/locales/da.json +23 -3
  791. package/dist/i18n/locales/de-CH.json +23 -3
  792. package/dist/i18n/locales/de.json +23 -3
  793. package/dist/i18n/locales/el.json +23 -3
  794. package/dist/i18n/locales/en-GB.json +23 -3
  795. package/dist/i18n/locales/en.json +23 -3
  796. package/dist/i18n/locales/es-MX.json +23 -3
  797. package/dist/i18n/locales/es.json +23 -3
  798. package/dist/i18n/locales/fa.json +176 -0
  799. package/dist/i18n/locales/fi.json +23 -3
  800. package/dist/i18n/locales/fr.json +23 -3
  801. package/dist/i18n/locales/he.json +176 -0
  802. package/dist/i18n/locales/hu.json +23 -3
  803. package/dist/i18n/locales/it.json +23 -3
  804. package/dist/i18n/locales/ja.json +23 -3
  805. package/dist/i18n/locales/ko.json +23 -3
  806. package/dist/i18n/locales/nb.json +23 -3
  807. package/dist/i18n/locales/nl.json +23 -3
  808. package/dist/i18n/locales/pl.json +23 -3
  809. package/dist/i18n/locales/pt-BR.json +23 -3
  810. package/dist/i18n/locales/pt-PT.json +23 -3
  811. package/dist/i18n/locales/ro.json +23 -3
  812. package/dist/i18n/locales/ru.json +23 -3
  813. package/dist/i18n/locales/sv.json +23 -3
  814. package/dist/i18n/locales/tr.json +23 -3
  815. package/dist/i18n/locales/uk.json +23 -3
  816. package/dist/i18n/locales/zh-CN.json +23 -3
  817. package/dist/i18n/locales/zh-HK.json +23 -3
  818. package/dist/i18n/locales/zh-TW.json +23 -3
  819. package/dist/i18n/regionHints.js +22 -22
  820. package/dist/i18n/regions.d.ts +73 -24
  821. package/dist/i18n/regions.js +57 -12
  822. package/dist/index.d.ts +192 -190
  823. package/dist/index.js +55 -54
  824. package/dist/llms-full.txt +8848 -5872
  825. package/dist/llms-medium.txt +830 -506
  826. package/dist/llms.txt +6 -5
  827. package/dist/locale-blueprint.json +26 -3
  828. package/dist/locale-tags.js +81 -0
  829. package/dist/mcp-sdk.LICENSES.txt +210 -0
  830. package/dist/mcp-sdk.mjs +78 -0
  831. package/dist/nuxt-auto-imports.d.ts +1 -1
  832. package/dist/nuxt-auto-imports.js +1 -1
  833. package/dist/nuxt-module.d.ts +5 -5
  834. package/dist/nuxt.js +26 -23
  835. package/dist/plugin.d.ts +2 -2
  836. package/dist/project-dts.d.ts +76 -14
  837. package/dist/project-dts.js +117 -63
  838. package/dist/setup-kit.LICENSES.txt +23 -0
  839. package/dist/setup-kit.mjs +9 -0
  840. package/dist/styles.css +2 -2
  841. package/dist/types/ActionButton.d.ts +3 -3
  842. package/dist/types/AlertVariant.d.ts +2 -2
  843. package/dist/types/BadgeVariant.d.ts +2 -2
  844. package/dist/types/ButtonVariant.d.ts +2 -2
  845. package/dist/types/CheckboxVariant.d.ts +9 -6
  846. package/dist/types/CheckboxVariant.js +5 -1
  847. package/dist/types/ColumnName.d.ts +1 -1
  848. package/dist/types/CommonProps.d.ts +25 -3
  849. package/dist/types/Config.d.ts +24 -110
  850. package/dist/types/ConfigDefaults.d.ts +352 -0
  851. package/dist/types/ConfigDefaults.js +115 -0
  852. package/dist/types/ConfirmVariant.d.ts +2 -2
  853. package/dist/types/DatePickerType.d.ts +29 -2
  854. package/dist/types/DatePickerType.js +6 -2
  855. package/dist/types/DropdownItemVariant.d.ts +2 -2
  856. package/dist/types/FieldLayout.d.ts +3 -3
  857. package/dist/types/IndicatorVariant.d.ts +2 -2
  858. package/dist/types/InputVariant.d.ts +58 -25
  859. package/dist/types/ItemAccessor.d.ts +7 -1
  860. package/dist/types/ItemProps.d.ts +3 -3
  861. package/dist/types/ItemsProvider.d.ts +2 -2
  862. package/dist/types/Placement.d.ts +7 -2
  863. package/dist/types/RadioVariant.d.ts +9 -6
  864. package/dist/types/RadioVariant.js +5 -1
  865. package/dist/types/ShapeErased.d.ts +1 -1
  866. package/dist/types/SizeScale.d.ts +4 -0
  867. package/dist/types/SizeScale.js +17 -0
  868. package/dist/types/TabsVariant.d.ts +2 -2
  869. package/dist/types/ToastVariant.d.ts +2 -2
  870. package/dist/types/TooltipVariant.d.ts +2 -2
  871. package/dist/types/fallthrough.d.ts +1 -1
  872. package/dist/types/passthrough.d.ts +23 -23
  873. package/dist/types/ptComponentMap.d.ts +29 -28
  874. package/dist/utilities/calendar/canonicalParts.d.ts +29 -0
  875. package/dist/utilities/calendar/canonicalParts.js +12 -0
  876. package/dist/utilities/calendar/digits.d.ts +18 -0
  877. package/dist/utilities/calendar/digits.js +26 -0
  878. package/dist/utilities/calendar/gregorian.d.ts +2 -0
  879. package/dist/utilities/calendar/gregorian.js +36 -0
  880. package/dist/utilities/calendar/index.d.ts +3 -0
  881. package/dist/utilities/calendar/index.js +1 -0
  882. package/dist/utilities/calendar/international.d.ts +19 -0
  883. package/dist/utilities/calendar/resolve.d.ts +32 -0
  884. package/dist/utilities/calendar/resolve.js +12 -0
  885. package/dist/utilities/calendar/runtime.d.ts +49 -0
  886. package/dist/utilities/calendar/types.d.ts +140 -0
  887. package/dist/utilities/calendar/types.js +83 -0
  888. package/dist/utilities/functions/convertDateValue.d.ts +15 -2
  889. package/dist/utilities/functions/convertDateValue.js +22 -17
  890. package/dist/utilities/functions/elementLabel.d.ts +1 -1
  891. package/dist/utilities/functions/extractDomContainer.d.ts +1 -1
  892. package/dist/utilities/functions/isDateDisabled.d.ts +9 -1
  893. package/dist/utilities/functions/isDateDisabled.js +38 -21
  894. package/dist/utilities/functions/itemProps.d.ts +1 -1
  895. package/dist/utilities/functions/normalizeDateBound.d.ts +45 -2
  896. package/dist/utilities/functions/normalizeDateBound.js +52 -11
  897. package/dist/utilities/functions/parseSize.d.ts +2 -2
  898. package/dist/utilities/functions/readableValue.d.ts +1 -1
  899. package/dist/utilities/functions/responsiveDefault.d.ts +1 -1
  900. package/dist/utilities/functions/searchRank.d.ts +19 -0
  901. package/dist/utilities/functions/searchRank.js +76 -0
  902. package/dist/utilities/functions/slotKey.d.ts +1 -1
  903. package/dist/utilities/functions/toggleInput.d.ts +1 -1
  904. package/dist/utilities/functions/warnRemovedAttrs.d.ts +3 -3
  905. package/dist/utilities/functions/when.d.ts +1 -1
  906. package/dist/utilities/misc/autofocus.d.ts +2 -2
  907. package/dist/utilities/misc/listboxMetrics.d.ts +2 -2
  908. package/dist/utilities/misc/maskaDataOptions.d.ts +1 -1
  909. package/dist/utilities/misc/ssrStateInjectionKey.d.ts +1 -1
  910. package/dist/utilities/misc/ssrValue.d.ts +1 -1
  911. package/dist/utils/configDefaults.d.ts +43 -0
  912. package/dist/utils/configDefaults.js +170 -0
  913. package/dist/utils/configScope.d.ts +43 -0
  914. package/dist/utils/configScope.js +13 -0
  915. package/dist/utils/copyData.d.ts +2 -2
  916. package/dist/utils/cssLayers.d.ts +1 -1
  917. package/dist/utils/focusVisibility.d.ts +1 -1
  918. package/dist/utils/injectLibraryStyles.d.ts +1 -1
  919. package/dist/utils/overlayEscapeStack.d.ts +1 -1
  920. package/dist/utils/passthrough.d.ts +5 -8
  921. package/dist/utils/passthrough.js +31 -29
  922. package/dist/utils/passthroughDeduper.d.ts +1 -1
  923. package/dist/utils/releasedActivator.d.ts +20 -0
  924. package/dist/utils/releasedActivator.js +11 -0
  925. package/dist/utils/versionCheck.d.ts +1 -1
  926. package/dist/utils/versionCheck.js +1 -1
  927. package/dist/vite-plugin.d.ts +139 -218
  928. package/dist/vite.js +451 -425
  929. package/llms.txt +6 -5
  930. package/package.json +51 -19
  931. package/scripts/README.md +2 -1
  932. package/scripts/lib/adoption-checklist.json +2 -2
  933. package/scripts/lib/agent-manifest.mjs +107 -22
  934. package/scripts/lib/agent-refresh.mjs +151 -0
  935. package/scripts/lib/agent-setup.mjs +679 -0
  936. package/scripts/lib/carousel-items-without-slide.mjs +263 -0
  937. package/scripts/lib/carousel-prop-or-local.mjs +117 -0
  938. package/scripts/lib/check-fix.mjs +1 -1
  939. package/scripts/lib/collapsible-trigger-aria.mjs +1 -1
  940. package/scripts/lib/css-class-check.mjs +3 -3
  941. package/scripts/lib/css-local-check.mjs +25 -17
  942. package/scripts/lib/css-surface-answer.mjs +117 -0
  943. package/scripts/lib/define-preset-copy.mjs +1 -1
  944. package/scripts/lib/distributed-alias.mjs +81 -0
  945. package/scripts/lib/doc-sections.mjs +12 -4
  946. package/scripts/lib/dropdown-default-slot.mjs +1 -1
  947. package/scripts/lib/eslint-disable.mjs +60 -2
  948. package/scripts/lib/eslint-plugin.d.ts +13 -2
  949. package/scripts/lib/eslint-plugin.mjs +609 -64
  950. package/scripts/lib/form-v-model.mjs +1 -1
  951. package/scripts/lib/hand-imported-styles.mjs +2 -2
  952. package/scripts/lib/hand-roll-hints.mjs +25 -3
  953. package/scripts/lib/helper-canon.mjs +4 -4
  954. package/scripts/lib/helpers-add.mjs +39 -24
  955. package/scripts/lib/hidden-label-placeholder.mjs +1 -1
  956. package/scripts/lib/idiom-scan.mjs +12 -11
  957. package/scripts/lib/is-direct-run.mjs +20 -0
  958. package/scripts/lib/items-provider-context.mjs +1 -1
  959. package/scripts/lib/linked-target.mjs +26 -2
  960. package/scripts/lib/local-components.mjs +2 -2
  961. package/scripts/lib/locale-check.mjs +109 -13
  962. package/scripts/lib/mcp-config.mjs +140 -75
  963. package/scripts/lib/mcp-sdk.mjs +199 -0
  964. package/scripts/lib/migrate-fix.mjs +3 -3
  965. package/scripts/lib/plugin-options-check.mjs +170 -0
  966. package/scripts/lib/pnp.mjs +165 -0
  967. package/scripts/lib/portal-names.mjs +4 -4
  968. package/scripts/lib/prefer-v-bb-dialog.mjs +1 -1
  969. package/scripts/lib/project-variant-dts.mjs +182 -48
  970. package/scripts/lib/reactive-v-model.mjs +2 -2
  971. package/scripts/lib/redundant-item-accessor.mjs +1 -1
  972. package/scripts/lib/renamed-item-field.mjs +1 -1
  973. package/scripts/lib/renamed-slot-prop.mjs +524 -0
  974. package/scripts/lib/rule-registry.mjs +1 -1
  975. package/scripts/lib/setup-edits.mjs +1845 -0
  976. package/scripts/lib/setup.mjs +440 -0
  977. package/scripts/lib/slot-key.mjs +1 -1
  978. package/scripts/lib/slot-renames.mjs +3 -3
  979. package/scripts/lib/squashed-slot-words.mjs +1 -1
  980. package/scripts/lib/tab-links.mjs +2 -2
  981. package/scripts/lib/text-null-value.mjs +1 -1
  982. package/scripts/lib/toolchain-check.mjs +3 -3
  983. package/scripts/lib/tooling-options.mjs +87 -0
  984. package/scripts/lib/unimported-components.mjs +1 -1
  985. package/scripts/lib/unstyled-variants.mjs +1 -1
  986. package/scripts/lib/valid-locale.mjs +119 -0
  987. package/scripts/lib/validate-bb-markup.mjs +219 -115
  988. package/scripts/lib/wrapper-props.mjs +2 -2
  989. package/dist/ai/BbPtScope.md +0 -138
  990. package/dist/ai/manifest/components/BbPtScope.json +0 -21
  991. package/dist/ai/source/BbPtScope.md +0 -54
  992. package/dist/components/BbNumberInput/warroom/corpus.d.ts +0 -58
  993. package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +0 -28
  994. package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +0 -2
  995. package/dist/components/BbNumberInput/warroom/harness.d.ts +0 -217
  996. package/dist/components/BbNumberInput/warroom/oracle.d.ts +0 -150
  997. package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
  998. package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
  999. package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
  1000. package/dist/components/BbPtScope/types.d.ts +0 -15
  1001. package/dist/components/BbTable/warroom/harness.d.ts +0 -260
  1002. package/dist/types/PtScope.d.ts +0 -15
  1003. package/dist/utilities/functions/head.js +0 -3
  1004. package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
  1005. package/dist/utilities/functions/matchAnyKey.js +0 -14
  1006. package/dist/utilities/functions/pipe.d.ts +0 -3
  1007. package/dist/utilities/functions/range.js +0 -7
  1008. package/dist/utils/ptScope.d.ts +0 -8
  1009. package/dist/utils/ptScope.js +0 -3
  1010. package/scripts/lib/check-queue.mjs +0 -102
  1011. package/scripts/lib/component-attr-targets.ts +0 -123
  1012. package/scripts/lib/component-tree.ts +0 -648
  1013. package/scripts/lib/consumer-install.mjs +0 -64
  1014. package/scripts/lib/css-class-surface.mjs +0 -328
  1015. package/scripts/lib/css-color-resolve.mjs +0 -296
  1016. package/scripts/lib/css-comment-text.mjs +0 -16
  1017. package/scripts/lib/design-token-manifest.mjs +0 -506
  1018. package/scripts/lib/ensure-manifest.mjs +0 -135
  1019. package/scripts/lib/example-checks.mjs +0 -337
  1020. package/scripts/lib/guide-claims.mjs +0 -452
  1021. package/scripts/lib/manifest-pointers.mjs +0 -71
  1022. package/scripts/lib/pack.mjs +0 -55
  1023. package/scripts/lib/public-type-exports.mjs +0 -273
  1024. package/scripts/lib/quiet-gate.mjs +0 -385
  1025. package/scripts/lib/recipe-excerpts.mjs +0 -98
  1026. package/scripts/lib/swap-noun.mjs +0 -33
  1027. package/scripts/lib/token-color-mix.mjs +0 -114
@@ -51,7 +51,8 @@ pinned to the prerelease channel rather than following it.
51
51
  `'en'` and there is no build-time warning for leaving it unset. **On
52
52
  Tailwind v4, set `cssLayers: TAILWIND_V4_LAYERS`** (from `bitboss-ui/vite`)
53
53
  in the same plugin call, or your utilities on `Bb*` components lose to the
54
- library's CSS.
54
+ library's CSS. **Forms (`BbForm`) need `vee-validate` installed**
55
+ (`npm i vee-validate`).
55
56
  3. **Choose intent:**
56
57
  - Whole page / flow → hop to **Recipes** below (one platform folder: the
57
58
  layout scaffold plus your page recipe).
@@ -68,6 +69,10 @@ pinned to the prerelease channel rather than following it.
68
69
  Usage & Guidelines. The **Component tree** is near the end. A part or token
69
70
  you cannot find on the top component usually lives in that tree —
70
71
  [Agent contract](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md) § Component Tree Rule.
72
+ 6. **An emptied text field hands back `null`.** `BbTextInput` and `BbTextarea`
73
+ bind `string | null`, so a `v-model` ref is `ref<string | null>(…)`; a plain
74
+ `ref('')` fails `vue-tsc`. If the value must stay a string, put
75
+ `null-value="string"` on the field (it then emits `''`).
71
76
 
72
77
  ---
73
78
 
@@ -83,18 +88,18 @@ app-owned chrome files — the peek-stack context, the `PageShell` frame and the
83
88
  `@/components/layout/*` imports resolve to. Open it **with** your page recipe;
84
89
  the pair counts as one hop.
85
90
 
86
- | Intent | Recipe file (kebab) |
87
- | ----------------------------------------- | ----------------------------------------- |
88
- | App chrome every recipe imports (**1st**) | `layout-scaffold.md` |
89
- | Filterable listing + bulk/peek | `records-workspace.md` |
90
- | Create/edit form | `record-form.md` |
91
- | Inline-edit table / backlog | `inline-edit-workspace.md` |
92
- | Hierarchy drill-down (nested tables) | `ownership-atlas.md` (Inertia only today) |
93
- | Approvals / triage inbox | `approvals-inbox.md` |
94
- | Uploads + editable queue | `upload-center.md` |
95
- | Multi-step wizard | `wizard-form.md` |
96
- | Onboarding checklist | `onboarding.md` |
97
- | Settings area (profile, members, keys) | `settings-workspace.md` |
91
+ | Intent | Recipe file (kebab) |
92
+ | --- | --- |
93
+ | App chrome every recipe imports (**1st**) | `layout-scaffold.md` |
94
+ | Filterable listing + bulk/peek | `records-workspace.md` |
95
+ | Create/edit form | `record-form.md` |
96
+ | Inline-edit table / backlog | `inline-edit-workspace.md` |
97
+ | Hierarchy drill-down (nested tables) | `ownership-atlas.md` (Inertia only today) |
98
+ | Approvals / triage inbox | `approvals-inbox.md` |
99
+ | Uploads + editable queue | `upload-center.md` |
100
+ | Multi-step wizard | `wizard-form.md` |
101
+ | Onboarding checklist | `onboarding.md` |
102
+ | Settings area (profile, members, keys) | `settings-workspace.md` |
98
103
 
99
104
  That table is the complete set — every file in each platform folder appears in
100
105
  it, so a directory listing (or the MCP `list_recipes`) can add nothing.
@@ -111,30 +116,30 @@ inline-edit playbook) instead of inventing a new shape.
111
116
 
112
117
  ## Playbooks (only when the pattern applies)
113
118
 
114
- | Need | Guide |
115
- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
116
- | ⌘K / Ctrl+K global command palette | [BbSelectPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md#a-k-command-palette) § A ⌘K command palette |
117
- | Tied selects / stale model cleanup | [coherence-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/coherence-playbook.md) |
118
- | Async `items` providers / prefill | [fetch-items-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/fetch-items-playbook.md) |
119
- | `item-text` / `item-value` / the default `label` / `value` keys / disabled | [options-items-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/options-items-playbook.md) |
120
- | Table cell edit ownership | [inline-edit-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/inline-edit-playbook.md) |
121
- | Table row → detail (identity cells) | [agent-contract](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md) § Inline Links |
122
- | Peek that drills into related records | [agent-contract](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md) § Consult-Stack |
123
- | Icons (`lucide:*`, never invent names) | [icons-policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md) |
124
- | Tokens / styling around components | [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) |
125
- | Inertia app-side helpers (`useProp`, `useQuery`, `useQueryObject`, `useTableContext`, …) the Inertia recipes import | [inertia-helpers](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/inertia-helpers.md) |
126
- | Theming a whole app / retuning a component | [design-tokens](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-tokens.md) — the two tiers, and why most restyling is a component token, not a `--bb-*` one |
127
- | Paint as data (DESIGN.md, impeccable, design-taste) | [design-tokens.json](https://llms-bitboss-ui.bitboss.it/dist/ai/design-tokens.json) and [design-tokens.manifest.yaml](https://llms-bitboss-ui.bitboss.it/dist/ai/design-tokens.manifest.yaml), generated from `variables.css`. Grep `--bb-*`, not `--color-*` or `--radius-*`. Root `DESIGN.md` is the Inertia fixture, not this library. |
128
- | A Tailwind utility on a `Bb*` component does nothing, or half-applies | [installation](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md) § Cascade layers — v4 is layered, we are not by default. It is per PROPERTY: a utility loses only where we declare the same one, and a shorthand like `p-4` can half-apply. `cssLayers: TAILWIND_V4_LAYERS` in the build plugin |
129
- | Restyling ONE part of a component (its icon, its spinner, its field box) — or a `:deep()` you are about to write | [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) — the first choice: `pt:<part>` / `pt:<part>:<state>`, typed and linted; classes append, attributes win, listeners concatenate. A look many places need is a **variant**, not `pt`. No part for it? A CSS override on the internal class is allowed but can break in any release (a part's class is stable within 3.x) — [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) § Hard Rules |
130
- | Styling the SELECTED option, the HIGHLIGHTED row, the CURRENT tab — a state a modifier class used to carry | [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Parts that resolve per node — `pt:option:selected`, `pt:row:highlighted`, `pt:item:active`; every component's parts and states are in its table |
131
- | Typing a `pt` value in `<script>` (a const, a preset, a wrapper's `pt` prop, a global map split across files) | [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Typing `pt` in `<script>` — `<Component>Props<Row>['pt']` with `satisfies`, `definePt` for map fragments. `PtValue` / `PtMap` are not exported |
132
- | `InstanceType<typeof BbSelect>` fails, a Storybook `Meta` or `findComponent` won't type, a `ref('')` on a text field | [typescript-generic-components](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/typescript-generic-components.md) — the generic components and their four script-side differences |
133
- | Wrapping a `Bb*` component in your own (`MemberSelect`, `PriceListSelect`) | A preset (fixed items, label, option row): [preset-components](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/preset-components.md), one `definePreset` call. With its own logic: [options-items-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/options-items-playbook.md) § Wrapping BbSelect in your own component |
134
- | Forms with validation (`BbForm`) | [validated-forms](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validated-forms.md); the schema library (Zod, Valibot, ArkType, Yup, Joi, Effect, string rules) and switching between them: [validation-libraries](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validation-libraries.md); server errors from Inertia, a Laravel 422, Precognition, vee-validate or Nuxt UI into `setErrors`: [validation-providers](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validation-providers.md); porting an Element Plus / Naive UI / Ant Design Vue form (`rules` objects, async-validator): [from-async-validator](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/from-async-validator.md) |
135
- | Finishing a migration (from v2 or another library): the hand-rolled controls to move onto the library, `check --idioms` | [migration/adoption-checklist](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/adoption-checklist.md) |
136
- | Upgrading from bitboss-ui 2.x | [migration/v2-to-v3](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v2-to-v3.md) |
137
- | Bumping between two v3 prereleases | `npx bitboss-ui changelog --since <your version>` (MCP `list_changes`) — what BREAKS in the bump, and in which release each break first shipped (`firstReleasedIn`); then `check --manifest` for the files it breaks |
119
+ | Need | Guide |
120
+ | --- | --- |
121
+ | ⌘K / Ctrl+K global command palette | [BbSelectPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md#a-k-command-palette) § A ⌘K command palette |
122
+ | Tied selects / stale model cleanup | [coherence-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/coherence-playbook.md) |
123
+ | Async `items` providers / prefill | [fetch-items-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/fetch-items-playbook.md) |
124
+ | `item-text` / `item-value` / the default `label` / `value` keys / disabled | [options-items-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/options-items-playbook.md) |
125
+ | Table cell edit ownership | [inline-edit-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/inline-edit-playbook.md) |
126
+ | Table row → detail (identity cells) | [agent-contract](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md) § Inline Links |
127
+ | Peek that drills into related records | [agent-contract](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md) § Consult-Stack |
128
+ | Icons (`lucide:*`, never invent names) | [icons-policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md) |
129
+ | Tokens / styling around components | [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) |
130
+ | Inertia app-side helpers (`useProp`, `useQuery`, `useQueryObject`, `useTableContext`, …) the Inertia recipes import | [inertia-helpers](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/inertia-helpers.md) |
131
+ | Theming a whole app / retuning a component | [design-tokens](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-tokens.md) — the two tiers, and why most restyling is a component token, not a `--bb-*` one |
132
+ | Paint as data (DESIGN.md, impeccable, design-taste) | [design-tokens.json](https://llms-bitboss-ui.bitboss.it/dist/ai/design-tokens.json) and [design-tokens.manifest.yaml](https://llms-bitboss-ui.bitboss.it/dist/ai/design-tokens.manifest.yaml), generated from `variables.css`. Grep `--bb-*`, not `--color-*` or `--radius-*`. Root `DESIGN.md` is the Inertia fixture, not this library. |
133
+ | A Tailwind utility on a `Bb*` component does nothing, or half-applies | [installation](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md) § Cascade layers — v4 is layered, we are not by default. It is per PROPERTY: a utility loses only where we declare the same one, and a shorthand like `p-4` can half-apply. `cssLayers: TAILWIND_V4_LAYERS` in the build plugin |
134
+ | Restyling ONE part of a component (its icon, its spinner, its field box) — or a `:deep()` you are about to write | [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) — the first choice: `pt:<part>` / `pt:<part>:<state>`, typed and linted; classes append, attributes win, listeners concatenate. A look many places need is a **variant**, not `pt`. No part for it? A CSS override on the internal class is allowed but can break in any release (a part's class is stable within 3.x) — [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) § Hard Rules |
135
+ | Styling the SELECTED option, the HIGHLIGHTED row, the CURRENT tab — a state a modifier class used to carry | [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Parts that resolve per node — `pt:option:selected`, `pt:row:highlighted`, `pt:item:active`; every component's parts and states are in its table |
136
+ | Typing a `pt` value in `<script>` (a const, a preset, a wrapper's `pt` prop, a global map split across files) | [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Typing `pt` in `<script>` — `<Component>Props<Row>['pt']` with `satisfies`, `satisfies BbComponentsMap` for map fragments. `PtValue` / `PtMap` are not exported |
137
+ | `InstanceType<typeof BbSelect>` fails, a Storybook `Meta` or `findComponent` won't type, a `ref('')` on a text field | [typescript-generic-components](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/typescript-generic-components.md) — the generic components and their four script-side differences |
138
+ | Wrapping a `Bb*` component in your own (`MemberSelect`, `PriceListSelect`) | A preset (fixed items, label, option row): [preset-components](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/preset-components.md), one `definePreset` call. With its own logic: [options-items-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/options-items-playbook.md) § Wrapping BbSelect in your own component |
139
+ | Forms, validated or not (`BbForm`) | [validated-forms](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validated-forms.md); the schema library (Zod, Valibot, ArkType, Yup, Joi, Effect, string rules) and switching between them: [validation-libraries](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validation-libraries.md); server errors from Inertia, a Laravel 422, Precognition, vee-validate or Nuxt UI into `setErrors`: [validation-providers](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validation-providers.md); porting an Element Plus / Naive UI / Ant Design Vue form (`rules` objects, async-validator): [from-async-validator](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/from-async-validator.md) |
140
+ | Finishing a migration (from v2 or another library): the hand-rolled controls to move onto the library, `check --idioms` | [migration/adoption-checklist](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/adoption-checklist.md) |
141
+ | Upgrading from bitboss-ui 2.x | [migration/v2-to-v3](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v2-to-v3.md) |
142
+ | Bumping between two v3 prereleases | `npx bitboss-ui changelog --since <your version>` (MCP `list_changes`) — what BREAKS in the bump, and in which release each break first shipped (`firstReleasedIn`); then `check --manifest` for the files it breaks |
138
143
 
139
144
  ---
140
145
 
@@ -153,15 +158,16 @@ Exception documented in the agent contract: **`BbBaseButton` is consumer API**.
153
158
 
154
159
  ## Consumer kickstart
155
160
 
156
- In the app repo (once), after installing `bitboss-ui`:
161
+ In the app root, once:
157
162
 
158
163
  ```bash
159
- npx bitboss-ui ai-init # --no-mcp skips the MCP server and its peers
164
+ npx bitboss-ui@beta setup # --no-ai: no agent files
160
165
  ```
161
166
 
162
- Writes harness-agnostic pointers (`AGENTS.md`) plus Cursor / Copilot / Claude /
163
- Windsurf rules so agents find this router without being told, registers the
164
- bitboss-ui MCP server in each harness's config and installs its optional peers.
167
+ Installs and wires the library, and writes `AGENTS.md` (plus a `CLAUDE.md`
168
+ import, the skill and the MCP server for each harness found) so agents find
169
+ this router without being told. Every install keeps them current
170
+ (`"postinstall": "bitboss-ui update --no-install || exit 0"`). To upgrade: `npx bitboss-ui update`.
165
171
 
166
172
  After writing Bb\* markup, validate against the installed contract:
167
173
 
@@ -173,8 +179,7 @@ npx bitboss-ui check
173
179
 
174
180
  Optional MCP (`npx bitboss-ui mcp`): search/get components, list/get recipes,
175
181
  validate snippets — version-matched to the installed package.
176
- Needs the optional peers `@modelcontextprotocol/sdk` + `zod` (~12 MB, used by
177
- nothing else); the command names them if they are missing.
182
+ Nothing to install: its MCP SDK ships bundled.
178
183
 
179
184
  ---
180
185
 
@@ -190,33 +195,33 @@ Use this contract before generating any UI code with `bitboss-ui`.
190
195
  The names agents guess most often, and the real ones. There are no aliases:
191
196
  a guessed name is an error (`npx bitboss-ui check` or `vue-tsc` says so).
192
197
 
193
- | You'd guess | bitboss-ui |
194
- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
195
- | `toast.success('Saved')`, `{ message }`, `{ description }`, `type` | `const { toast } = useToast(); toast({ title, text, variant: 'success' })`; variants `default` `success` `info` `warning` `destructive` |
196
- | `<BbToastStack>`, a toaster per page | nothing: the plugin renders the `<BbHost />` |
197
- | BbDialog `v-model:open`, `:open` | `v-bb-dialog="'id'"` on the button or `useBbDialog('id')`; own file / per row: `useBbDialog(Component).show(data)` |
198
- | BbDialog `@close`, `@confirm`, `@cancel`, `#actions` | `@hide` (closing starts) / `@hidden` (closed); your own buttons in `#footer="{ close }"` |
199
- | BbTable `sortable`, `v-model:sorted`, `sort-order`, `@sort` | `sortable: true` per column + `v-model:sort` (a `BbTableSortEntry[]`, `[key, 'asc' \| 'desc']`); the table never sorts: you do |
200
- | `@row-click`, `@row:click` | `@click:row="(event, item) => …"` |
201
- | `row-key` | `item-value` |
202
- | column `title`, `header` | column `label` |
203
- | `#cell:createdAt`, `#createdAt`, `{ row }` | `#<key>` in kebab-case (`createdAt` → `#created-at`), scope `{ item, value }` |
204
- | `item as Invoice` casts in BbTable slots | none: slot props are typed from `:items` |
205
- | a column keyed `actions` | reserved: the `#actions="{ item }"` slot creates the actions column |
206
- | BbPagination `current-page`, `v-model:page`, `page-size` | `v-model` (the 1-based page) + `per-page` + `total-items` (or `total-pages`) |
207
- | `BbDateInput` | `BbDatePickerInput` |
208
- | `<BbDropdownItem>`, `<BbTableColumn>` | types, not components: rows are `items` objects (`{ value, label, onClick }`), columns are `columns` objects |
209
- | BbDropdown `#trigger`, `#button` | `#activator="{ props }"`, spread `v-bind="props"` on your button |
210
- | a menu row's click via `@select` / `@item:selected` | the item's `onClick` (or `href` / `to`); `@item:selected` fires only for `selectable` groups |
211
- | `icon` on BbTextInput, `#icon` on BbButton | `prepend:icon` / `append:icon`; BbButton's (and BbDropdownButton's) `icon` is the icon-only button |
212
- | badge `success` / `warning` / `info` / `danger` | built-ins `primary` `secondary` `destructive` `outline`; register more (§ Variants Rule) |
213
- | BbBadge `text` / `label` prop | the default slot: `<BbBadge>Paid</BbBadge>` |
214
- | `label` on BbCheckboxGroup / BbRadioGroup / BbSwitchGroup / BbRating, a `selectable` BbTable | `legend` (they render a `<fieldset>`; the legend is its name) |
215
- | `{ label, value }` items as they are | they work as they are, and so do `{ text, value }`: any other shape needs `item-text` / `item-value` (BbSelect, BbSelectPopover, the groups) |
216
- | BbSelect `searchable` | search is on by default; `disable-writing` hides it; `multiple` for a multi-select |
217
- | a native `<input>` in a filter bar (to skip the label) | `<BbTextInput label="Search" hide-label placeholder="Search…" />`: the label stays for screen readers, the placeholder shows sighted users what the box is for |
218
- | `--bb-text-secondary` | `--bb-text-muted` |
219
- | a 422 through each field's `errors` prop | inside `BbForm`: `setErrors(errors)` ([validated-forms § 4](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validated-forms.md#4-server-errors-seterrors-fields-unmatchederrors)) |
198
+ | You'd guess | bitboss-ui |
199
+ | --- | --- |
200
+ | `toast.success('Saved')`, `{ message }`, `{ description }`, `type` | `const { toast } = useToast(); toast({ title, text, variant: 'success' })`; variants `default` `success` `info` `warning` `destructive` |
201
+ | `<BbToastStack>`, a toaster per page | nothing: the plugin renders the `<BbHost />` |
202
+ | BbDialog `v-model:open`, `:open` | `v-bb-dialog="'id'"` on the button or `useBbDialog('id')`; own file / per row: `useBbDialog(Component).show(data)` |
203
+ | BbDialog `@close`, `@confirm`, `@cancel`, `#actions` | `@hide` (closing starts) / `@hidden` (closed); your own buttons in `#footer="{ close }"` |
204
+ | BbTable `sortable`, `v-model:sorted`, `sort-order`, `@sort` | `sortable: true` per column + `v-model:sort` (a `BbTableSortEntry[]`, `[key, 'asc' \| 'desc']`); the table never sorts: you do |
205
+ | `@row-click`, `@row:click` | `@click:row="(event, item) => …"` |
206
+ | `row-key` | `item-value` |
207
+ | column `title`, `header` | column `label` |
208
+ | `#cell:createdAt`, `#createdAt`, `{ row }` | `#<key>` in kebab-case (`createdAt` → `#created-at`), scope `{ item, value }` |
209
+ | `item as Invoice` casts in BbTable slots | none: slot props are typed from `:items` |
210
+ | a column keyed `actions` | reserved: the `#actions="{ item }"` slot creates the actions column |
211
+ | BbPagination `current-page`, `v-model:page`, `page-size` | `v-model` (the 1-based page) + `per-page` + `total-items` (or `total-pages`) |
212
+ | `BbDateInput` | `BbDatePickerInput` |
213
+ | `<BbDropdownItem>`, `<BbTableColumn>` | types, not components: rows are `items` objects (`{ value, label, onClick }`), columns are `columns` objects |
214
+ | BbDropdown `#trigger`, `#button` | `#activator="{ props }"`, spread `v-bind="props"` on your button |
215
+ | a menu row's click via `@select` / `@item:selected` | the item's `onClick` (or `href` / `to`); `@item:selected` fires only for `selectable` groups |
216
+ | `icon` on BbTextInput, `#icon` on BbButton | `prepend:icon` / `append:icon`; BbButton's (and BbDropdownButton's) `icon` is the icon-only button |
217
+ | badge `success` / `warning` / `info` / `danger` | built-ins `primary` `secondary` `destructive` `outline`; register more (§ Variants Rule) |
218
+ | BbBadge `text` / `label` prop | the default slot: `<BbBadge>Paid</BbBadge>` |
219
+ | `label` on BbCheckboxGroup / BbRadioGroup / BbSwitchGroup / BbRating, a `selectable` BbTable | `legend` (they render a `<fieldset>`; the legend is its name) |
220
+ | `{ label, value }` items as they are | they work as they are, and so do `{ text, value }`: any other shape needs `item-text` / `item-value` (BbSelect, BbSelectPopover, the groups) |
221
+ | BbSelect `searchable` | search is on by default; `disable-writing` hides it; `multiple` for a multi-select |
222
+ | a native `<input>` in a filter bar (to skip the label) | `<BbTextInput label="Search" hide-label placeholder="Search…" />`: the label stays for screen readers, the placeholder shows sighted users what the box is for |
223
+ | `--bb-text-secondary` | `--bb-text-muted` |
224
+ | a 422 through each field's `errors` prop | inside `BbForm`: `setErrors(errors)` ([validated-forms § 4](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validated-forms.md#4-server-errors-seterrors-fields-unmatchederrors)) |
220
225
 
221
226
  ## Default API Boundary
222
227
 
@@ -225,7 +230,8 @@ a guessed name is an error (`npx bitboss-ui check` or `vue-tsc` says so).
225
230
  3. Use the other reference-only components only when the user explicitly asks for internal composition details.
226
231
  4. **Not every `Bb*` export is a component.** `BbTableColumn`, `BbDropdownItem`, `BbTabsItem` and `BbBreadcrumbsItem` are TYPES: they describe the objects you pass to a prop (`columns`, `items`), and they never render. Import one with `import type { … } from 'bitboss-ui'`; writing `<BbTableColumn>` is always wrong. The `types` of each component's API file (`manifest/components/<Name>.json`) list every one with the prop it belongs to, and `npx bitboss-ui check` says so by name if you slip.
227
232
  5. **Two dozen of those types are the ones to reach for.** Each carries a `usage` tier: `api` means it appears in a component's own props or events, so it is what you annotate the value you build — `get_component` returns the list for the component you asked about. `wrapper` (`BbButtonProps` / `BbButtonEvents` / `BbButtonSlots` and siblings) is only for wrapping one of our components in one of yours, and `advanced` is everything left over — contexts, directive values, config shapes, the `…VariantType` unions. The tier is decided by that one rule and nothing else, so do not sort by what a name sounds like: `AlertVariantRegistry` reads like a registry but is `api`, because `BbAlert`'s `variant` prop is typed by it. Only `api` entries carry `usedBy`; if a type has one, it is `api`. Types the library does NOT export are that way on purpose: a size or a trigger is a string literal you write directly (`size="lg"`), so there is no name to import and none is missing.
228
- 6. **Never name your own components `Bb…` —** that prefix is bitboss-ui's. Use your app's prefix (`App…`, `Acme…`). `bitboss-ui check` leaves an app's own `Bb*` component alone (a local import, or a `.vue` in the app's `components/`), but warns: a future bitboss-ui component could take the name.
233
+ 6. **Import every `Bb*` component a file renders:** `import { BbButton, BbTable } from 'bitboss-ui'` in each `<script setup>`. The snippets in the component guides leave that line out; outside Nuxt with `autoImport: true` nothing registers the components globally, and a tag with no import renders as an empty element.
234
+ 7. **Never name your own components `Bb…` —** that prefix is bitboss-ui's. Use your app's prefix (`App…`, `Acme…`). `bitboss-ui check` leaves an app's own `Bb*` component alone (a local import, or a `.vue` in the app's `components/`), but warns: a future bitboss-ui component could take the name.
229
235
 
230
236
  ## Setup-First Rule
231
237
 
@@ -289,7 +295,7 @@ Read the installed package knowledge base before recommending components:
289
295
 
290
296
  Every component doc (`dist/ai/<Name>.md`) opens with **Reachable through**, then **Usage & Guidelines**. Read both before the raw props/events/slots tables. Prefer the guide's idioms over anything you would infer from the API surface alone. If a guide shows one way to do something, that is the idiomatic way.
291
297
 
292
- Consumer projects should run `npx bitboss-ui ai-init` once so AGENTS.md / Cursor / Copilot / Claude / Windsurf all point at this corpus.
298
+ An app set up with `npx bitboss-ui@beta setup` points every agent at this corpus (`AGENTS.md`, a `CLAUDE.md` import, the skill, the MCP server), and each install refreshes it. Upgrade with `npx bitboss-ui update`: it lists the breaking changes since the old version.
293
299
 
294
300
  ## Component Tree Rule
295
301
 
@@ -419,10 +425,10 @@ shipped names (`primary`, `secondary`, `destructive`, `outline`, …) are the
419
425
  design needs. When a design calls for a colour the library does not ship — soft
420
426
  semantic status badges, a brand button tone — **add it, in both halves**:
421
427
 
422
- 1. **Register the name** in the build plugin: `badgeVariants`, `buttonVariants`,
423
- `alertVariants`, `confirmVariants`, `dropdownItemVariants`, `tooltipVariants`,
424
- `toastVariants`, `indicatorVariants`, `inputVariants`, `tabsVariants`,
425
- `radioVariants`, `checkboxVariants` (`bitboss-ui/vite` or `bitboss-ui/nuxt`).
428
+ 1. **Register the name** in the build plugin: `components.BbBadge.variants`, `components.BbButton.variants`,
429
+ `components.BbAlert.variants`, `components.BbConfirm.variants`, `components.BbDropdown.variants`, `components.BbTooltip.variants`,
430
+ `components.BbToast.variants`, `components.BbIndicator.variants`, each field's `components.<C>.variants`, `components.BbTabs.variants`,
431
+ `components.BbRadioGroup.variants`, `components.BbCheckboxGroup.variants` (`bitboss-ui/vite` or `bitboss-ui/nuxt`).
426
432
  The plugin regenerates the typed registry, so the name type-checks.
427
433
  2. **Style the class** — `.bb-badge--<name>`, `.bb-button--<name>`, … —
428
434
  in a project stylesheet loaded **after** `bitboss-ui/styles.css`. The library
@@ -470,16 +476,16 @@ page is `BbCalendar`. See [BbCalendar](https://llms-bitboss-ui.bitboss.it/dist/a
470
476
 
471
477
  `useToast()` and `useConfirm()` write to **module-level singleton state**, not to a component instance. `<BbHost />` is the only thing that renders that state: every `toast()` and every `confirm()`, and every on-demand dialog (`useBbDialog(Component).show()`, `v-bb-dialog="{ component }"`).
472
478
 
473
- **Mount nothing: the plugin renders the host.** `app.use(bitbossUiPlugin)` (and the Nuxt module) renders one `<BbHost />` beside the app when it mounts, under Vue, Nuxt and Inertia alike. Never place one per page, per route or per component; a page that calls `toast()` or `confirm()` mounts nothing. It takes no props: the confirm width is the plugin's `confirm: { defaultSize }`, the toast corner is `toastPosition`, the styling is the build-time `pt.BbConfirm` / `pt.BbToast`.
479
+ **Mount nothing: the plugin renders the host.** `app.use(bitbossUiPlugin)` (and the Nuxt module) renders one `<BbHost />` beside the app when it mounts, under Vue, Nuxt and Inertia alike. Never place one per page, per route or per component; a page that calls `toast()` or `confirm()` mounts nothing. It takes no props: the confirm width is the plugin's `BbConfirm: { size }`, the toast corner is `BbToast.position`, the styling is the build-time `pt.BbConfirm` / `pt.BbToast`.
474
480
 
475
481
  **One exception: areas with their own look.** When the app is split into
476
- areas that each wrap their pages in a `<BbPtScope>` (a backoffice and a member
482
+ areas that each wrap their pages in a `<BbConfigScope>` (a backoffice and a member
477
483
  area — see [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Named scopes), place one
478
484
  `<BbHost />` **inside each area's layout**, within its scope, so toasts take
479
485
  that area's scope and tokens (a confirm already takes the scope of the
480
486
  component that called `useConfirm()`). A placed host takes over from the
481
487
  plugin's while it is mounted; a page outside every area falls back to the
482
- plugin's. The plugin's host does not see a `<BbPtScope>` or `provide` in
488
+ plugin's. The plugin's host does not see a `<BbConfigScope>` or `provide` in
483
489
  `App.vue`: that is the case for a placed host too.
484
490
 
485
491
  - **Zero hosts** (only without the plugin) — `toast(...)` stays queued and shows once a host mounts (the dismiss timer lives inside the host); `await confirm(...)` resolves `false` after one second. Neither throws. Both warn once per process in DEV.
@@ -498,6 +504,10 @@ input: it keeps what the user types or picks, and a `:model-value` only seeds it
498
504
  with no `v-model` is the form's. To show a value the user cannot change, use
499
505
  `readonly`, not a one-way `:model-value`.
500
506
 
507
+ An emptied `BbTextInput` or `BbTextarea` writes `null`, so the ref it binds is
508
+ `ref<string | null>(…)`, never a plain `ref('')`, or `null-value="string"` on
509
+ the field keeps it a string (`''`).
510
+
501
511
  ## Boolean Prop Defaults Rule
502
512
 
503
513
  Boolean props default to `false` so the bare `<Comp foo>` shorthand turns the feature **on**. A few props deliberately default to `true` for cross-library keyword clarity — pass `:prop="false"` to opt out:
@@ -609,7 +619,7 @@ Picks agents get wrong, one line each; the linked guide has the how:
609
619
  - [ ] Avoids reference-only imports unless explicitly requested.
610
620
  - [ ] Uses declarative coherence/dependencies before manual watchers.
611
621
  - [ ] An always-visible calendar is `BbCalendar` (named with `aria-label`) — never a `BbDatePicker` forced open; a date field is `BbDatePickerInput` (see § Date Controls Rule).
612
- - [ ] Places no `<BbHost />` (the plugin renders it) — except one per area layout when areas scoped with `<BbPtScope>` need their own toast look (see § Global Host Rule).
622
+ - [ ] Places no `<BbHost />` (the plugin renders it) — except one per area layout when areas scoped with `<BbConfigScope>` need their own toast look (see § Global Host Rule).
613
623
  - [ ] Confirmed the plugin's `locale` is set explicitly if the app isn't English (default is `'en'`) — see Setup-First Rule.
614
624
  - [ ] Ran the Rebuild Check over the hand-written markup — nothing reimplements `BbAvatar`, `BbSpinner` or `BbBadge`.
615
625
 
@@ -625,7 +635,9 @@ Source of truth for integrating `bitboss-ui`. Two pieces are always required:
625
635
  1. a **build plugin** (`bitboss-ui/vite` or `bitboss-ui/nuxt`) that serves the `virtual:bitboss-ui/icons` and `virtual:bitboss-ui/config` modules, scans local SVG icons, and generates typed variant registries;
626
636
  2. the **runtime plugin** (`bitbossUiPlugin` — installed automatically by the Nuxt module) that injects styles, provides the icon registry, and registers the `v-bb-tooltip`, `v-bb-dropdown`, `v-bb-color`, `v-bb-date`, `v-bb-time`, `v-bb-hover-card`, `v-bb-popover`, `v-bb-dialog` and `v-bb-off-canvas` directives.
627
637
 
628
- ## Quick start: the 10 things you need
638
+ ## Quick start: the 11 things you need
639
+
640
+ `npx bitboss-ui@beta setup` in the app root does 1 to 4, the locale of 5, the icon set of 6 and 9 for you ([§1](#1-install)). The list is the manual setup, and what to check after it.
629
641
 
630
642
  1. [Install the package](#1-install): `npm install bitboss-ui@beta` (the dist-tag is required).
631
643
  2. [Add the build plugin](#2-vite--vue): `bitboss-ui/vite` in `vite.config.ts`, or [`bitboss-ui/nuxt`](#3-nuxt) in `modules`.
@@ -634,12 +646,44 @@ Source of truth for integrating `bitboss-ui`. Two pieces are always required:
634
646
  5. [Locale](#locale-localekey-default-en): set `locale` (default `'en'`) and list any others in `enabledLocales`.
635
647
  6. [Icons](#6-icons): install an `@iconify-json/*` set, and point `iconDir` at your own SVG folder if you use `local:` icons.
636
648
  7. [SSR and Inertia notes](#4-inertia): the build plugin handles `noExternal` and the Inertia `Link`; in Nuxt do not call `app.use`.
637
- 8. [Run `npx bitboss-ui ai-init`](#8-ai-knowledge-base) so coding agents find the docs and the MCP server.
638
- 9. [Run `npx bitboss-ui check`](#8-ai-knowledge-base) (and add the ESLint plugin) to catch unknown props before review.
639
- 10. [Walk the verification checklist](#9-setup-verification-checklist) before you write component examples.
649
+ 8. [App-wide defaults and area looks](#the-components-map): one `components` map (and `configScopes` / `<BbConfigScope>` for an area) instead of repeating props.
650
+ 9. [Set up coding agents](#8-ai-knowledge-base) so they find the docs and the MCP server: `setup` does it, every install keeps it current.
651
+ 10. [Run `npx bitboss-ui check`](#8-ai-knowledge-base) (and add the ESLint plugin) to catch unknown props before review.
652
+ 11. [Walk the verification checklist](#9-setup-verification-checklist) before you write component examples.
640
653
 
641
654
  ## 1) Install
642
655
 
656
+ ### One command: `setup`
657
+
658
+ ```bash
659
+ npx bitboss-ui@beta setup
660
+ ```
661
+
662
+ In a Vue 3 + Vite, Nuxt or Laravel + Inertia (Vue) app, with the app's package manager:
663
+
664
+ - installs `bitboss-ui` on the current channel, `vee-validate` and `@iconify-json/lucide` (dev), plus the schema library `--validation` names;
665
+ - adds `bitbossUi({ … })` to `vite.config.*` (Nuxt: `'bitboss-ui/nuxt'` in `modules` and the `bitboss` key) with `resetCss: true` when it wires an app that has no Tailwind (Preflight already resets), `locale` when the app's language is not English, and `cssLayers: TAILWIND_V4_LAYERS` on Tailwind 4;
666
+ - adds `app.use(bitbossUiPlugin)` to the entry (not in Nuxt);
667
+ - adds `...bitbossUi.configs.recommended` to the ESLint config when the app has ESLint;
668
+ - adds `"postinstall": "bitboss-ui update --no-install || exit 0"` to `package.json` (after an existing one, with `&&`);
669
+ - sets up coding agents (§8) and `vueCompilerOptions.checkUnknownComponents`.
670
+
671
+ A file whose shape it does not recognise is left alone and the snippet to paste is printed. It commits nothing, and a second run changes nothing; review with `git diff`.
672
+
673
+ In a terminal it asks auto or manual. Auto is the default, and the only mode without a terminal (an agent, a script). Manual asks three questions: the validation library, the ESLint rules (only when the app has ESLint), agent setup.
674
+
675
+ | Flag | Effect |
676
+ | --- | --- |
677
+ | `--yes`, `-y` | auto, no question |
678
+ | `--manual` | the three questions |
679
+ | `--validation zod\|yup\|valibot\|vee-validate\|none` | zod, yup or valibot with vee-validate; vee-validate alone; none |
680
+ | `--eslint` / `--no-eslint` | the ESLint rules, or not |
681
+ | `--no-ai` | no agent setup: writes `ai: false` |
682
+
683
+ Upgrade later with `npx bitboss-ui update` (§8).
684
+
685
+ ### Manual setup
686
+
643
687
  ```bash
644
688
  # v3 is a prerelease — a dist-tag is REQUIRED.
645
689
  # A bare `npm install bitboss-ui` still resolves to v2, which has no build
@@ -657,7 +701,7 @@ frozen at the last alpha and does not receive fixes — it is not simply an olde
657
701
  copy of the same line. `@latest` is the **v2** line and always will be until v3
658
702
  goes stable, so never reach for it here.
659
703
 
660
- Peer dependency: `vue ^3.5.42` — the only required one. `@inertiajs/vue3` is an **optional** peer, needed only in Inertia apps.
704
+ Peer dependency: `vue ^3.5.42` — the only required one. `vee-validate` is an **optional** peer that `BbForm` needs: an app with forms runs `npm install vee-validate` (the build stops with that command if it is missing). `@inertiajs/vue3` is an **optional** peer, needed only in Inertia apps.
661
705
 
662
706
  You do **not** need `@iconify/collections`. It is declared as an optional peer
663
707
  for one reason only: when it happens to be installed, the dev-overlay message
@@ -718,11 +762,11 @@ floor is set by the native [Popover API](https://developer.mozilla.org/docs/Web/
718
762
  which every floating surface (selects, dropdowns, popovers, tooltips, color
719
763
  palette) renders through:
720
764
 
721
- | Engine | Minimum |
722
- | ------------- | ------------------ |
765
+ | Engine | Minimum |
766
+ | --- | --- |
723
767
  | Chrome / Edge | **114** (May 2023) |
724
- | Safari | **17** (Sep 2023) |
725
- | Firefox | **125** (Apr 2024) |
768
+ | Safari | **17** (Sep 2023) |
769
+ | Firefox | **125** (Apr 2024) |
726
770
 
727
771
  Also relied on, all older than that floor: `<dialog>`, the `inert` attribute,
728
772
  `ResizeObserver`, and CSS `grid-template-rows` transitions. On older engines
@@ -805,7 +849,10 @@ resolve — see `ssrViewportWidth` below), and Nuxt already does that: every
805
849
  package listed in `modules` goes on `build.transpile`, and since the module
806
850
  ships inside `bitboss-ui` the whole package is inlined into both the dev and the
807
851
  production server bundle. Verified against a registry-style (tarball) install
808
- on Nuxt 4.5; the plugin's own `ssr.noExternal` entry is a no-op there.
852
+ on Nuxt 4.6.3; the plugin's own `ssr.noExternal` entry is a no-op there.
853
+ The module needs Nuxt 4.6.3 or later (the `@nuxt/kit` peer): older Nuxt
854
+ drops `onServerPrefetch` from the client build, so `useId()` ids (a label's
855
+ `for`, `aria-describedby`) differ between server and client HTML.
809
856
 
810
857
  ### `autoImport?: boolean | { components?: boolean; composables?: boolean }` (default: `false`, Nuxt only)
811
858
 
@@ -976,11 +1023,11 @@ layered rule, however specific the layered one is. That one fact means there is
976
1023
  no single correct default, so the option is opt-in and you tell the library
977
1024
  where it sits:
978
1025
 
979
- | your CSS | `cssLayers` | who wins a tie |
980
- | -------------------------------------------- | ----------------------------------- | ---------------------------------------------- |
981
- | no layers (plain CSS, Tailwind v3) | unset (default) | source order — library first, so your CSS wins |
982
- | Tailwind v4, or any layered CSS | your full order, ours in it (below) | exactly what your array says |
983
- | no layers, and you want to override anything | `['bitboss-ui']` | you do, always |
1026
+ | your CSS | `cssLayers` | who wins a tie |
1027
+ | --- | --- | --- |
1028
+ | no layers (plain CSS, Tailwind v3) | unset (default) | source order — library first, so your CSS wins |
1029
+ | Tailwind v4, or any layered CSS | your full order, ours in it (below) | exactly what your array says |
1030
+ | no layers, and you want to override anything | `['bitboss-ui']` | you do, always |
984
1031
 
985
1032
  The value is always an array: your complete layer order with `bitboss-ui` in
986
1033
  it, and `bitboss-ui-reset` immediately before it **when `resetCss` is on**.
@@ -1157,16 +1204,16 @@ Not "utilities stop working on `Bb*` components". The cascade picks a winner
1157
1204
  property on that element. Anything we leave alone is uncontested and simply
1158
1205
  applies. Measured against the shipped sheet, v4 with `cssLayers` unset:
1159
1206
 
1160
- | on a `BbButton` | outcome | why |
1161
- | --------------- | ---------------- | ------------------------------------- |
1162
- | `w-20` | applies | we never declare `width` |
1163
- | `h-12` | applies | we declare `min-height`, not `height` |
1164
- | `m-4` | applies | we never declare `margin` |
1165
- | `p-4` | **half applies** | top/bottom land, left/right lose |
1166
- | `px-6` | no effect | we declare both padding longhands |
1167
- | `rounded-lg` | no effect | we declare `border-radius` |
1168
- | `text-lg` | no effect | we declare `font-size` |
1169
- | `gap-2` | no effect | we declare `gap` |
1207
+ | on a `BbButton` | outcome | why |
1208
+ | --- | --- | --- |
1209
+ | `w-20` | applies | we never declare `width` |
1210
+ | `h-12` | applies | we declare `min-height`, not `height` |
1211
+ | `m-4` | applies | we never declare `margin` |
1212
+ | `p-4` | **half applies** | top/bottom land, left/right lose |
1213
+ | `px-6` | no effect | we declare both padding longhands |
1214
+ | `rounded-lg` | no effect | we declare `border-radius` |
1215
+ | `text-lg` | no effect | we declare `font-size` |
1216
+ | `gap-2` | no effect | we declare `gap` |
1170
1217
 
1171
1218
  **The shorthand row is the one that hurts.** A clean loss is legible: you write
1172
1219
  `px-6`, nothing moves, you go looking. `p-4` expands to four longhands, we
@@ -1181,14 +1228,14 @@ where the handful of utilities you tried happened to land.
1181
1228
 
1182
1229
  #### Symptoms and what they mean
1183
1230
 
1184
- | what you see | cause | fix |
1185
- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------- |
1186
- | a Tailwind utility on a `Bb*` component does nothing, or half-applies | v4 utilities are layered, the library is not — see the per-property table above | `cssLayers: TAILWIND_V4_LAYERS` |
1187
- | every component lost its background / border | you listed only our two layers in a layered (v4) app | `cssLayers: TAILWIND_V4_LAYERS` |
1188
- | your global `button {}` reset suddenly restyles component internals | you listed only our two layers in an unlayered app | that is what it does — use the full order, or unset |
1189
- | components lost their height / padding / borders on **v3** | you listed only our layers while a reset or Preflight is unlayered | use the v3 layer hack, or leave `cssLayers` unset |
1190
- | nothing changed after setting `cssLayers` | the option lives in the **build plugin**, not in `app.use()` | set it in `vite.config.ts` / `nuxt.config.ts` |
1191
- | build fails naming a layer | your array omits `bitboss-ui` (or the reset layer with `resetCss: true`) | the error prints a working array — copy it |
1231
+ | what you see | cause | fix |
1232
+ | --- | --- | --- |
1233
+ | a Tailwind utility on a `Bb*` component does nothing, or half-applies | v4 utilities are layered, the library is not — see the per-property table above | `cssLayers: TAILWIND_V4_LAYERS` |
1234
+ | every component lost its background / border | you listed only our two layers in a layered (v4) app | `cssLayers: TAILWIND_V4_LAYERS` |
1235
+ | your global `button {}` reset suddenly restyles component internals | you listed only our two layers in an unlayered app | that is what it does — use the full order, or unset |
1236
+ | components lost their height / padding / borders on **v3** | you listed only our layers while a reset or Preflight is unlayered | use the v3 layer hack, or leave `cssLayers` unset |
1237
+ | nothing changed after setting `cssLayers` | the option lives in the **build plugin**, not in `app.use()` | set it in `vite.config.ts` / `nuxt.config.ts` |
1238
+ | build fails naming a layer | your array omits `bitboss-ui` (or the reset layer with `resetCss: true`) | the error prints a working array — copy it |
1192
1239
 
1193
1240
  A malformed value **fails the build**, never the browser: a wrong layer order is
1194
1241
  invisible at runtime, because the CSS still parses and merely loses every tie.
@@ -1218,6 +1265,278 @@ Reach for the documented variable before reaching for a utility.
1218
1265
 
1219
1266
  Policy for choosing icons: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
1220
1267
 
1268
+ ## The components map
1269
+
1270
+ Everything a component reads from your build config lives in one place:
1271
+ `components`, keyed by component and written with the component's own prop
1272
+ names. The same map, minus two app-wide keys, makes a **config scope** for one
1273
+ area of the app: named in `configScopes`, or inline on `<BbConfigScope>`.
1274
+ This section is the reference for all three; the other guides link here.
1275
+
1276
+ ### The five things you will write
1277
+
1278
+ **1. An app-wide default.** A back office that is dense everywhere, with
1279
+ floating labels:
1280
+
1281
+ ```ts
1282
+ // vite.config.ts (Nuxt: the same object under `bitboss` in nuxt.config.ts)
1283
+ bitbossUi({
1284
+ components: {
1285
+ all: { compact: true, labelMode: 'floating' },
1286
+ BbButton: { size: 'sm' },
1287
+ },
1288
+ });
1289
+ ```
1290
+
1291
+ `all` reaches every component that **owns** the prop, and nothing else:
1292
+ `compact` above makes every component with a `compact` prop dense, and
1293
+ `labelMode` every text-like field. `size` is not shared, so it goes on the
1294
+ component (`all: { size: 'sm' }` fails the build and says so).
1295
+
1296
+ **2. Your own variant, used as the default.** Register the name in the same
1297
+ entry and pick it; the editor suggests it, and a misspelt one is a type error:
1298
+
1299
+ ```ts
1300
+ bitbossUi({
1301
+ components: {
1302
+ BbButton: { variants: ['brand'], variant: 'brand' },
1303
+ },
1304
+ });
1305
+ ```
1306
+
1307
+ The library ships no CSS for a name you register: style `.bb-button--brand`
1308
+ yourself ([BbButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md) § variants). Registration is app-wide;
1309
+ a scope can pick `variant: 'brand'`, never register a name of its own.
1310
+
1311
+ **3. A size scale, partly.** Name only the sizes you change; the others keep
1312
+ the built-in values:
1313
+
1314
+ ```ts
1315
+ bitbossUi({
1316
+ components: {
1317
+ BbIcon: { sizeMap: { md: 20 } }, // xs, sm, lg, xl, 2xl unchanged
1318
+ BbDialog: { sizeMap: { lg: 720 } },
1319
+ },
1320
+ });
1321
+ ```
1322
+
1323
+ **4. A named scope for an area.** A settings page whose fields sit beside
1324
+ their labels, switched on by one wrapper:
1325
+
1326
+ ```ts
1327
+ bitbossUi({
1328
+ configScopes: {
1329
+ settings: { all: { layout: 'horizontal', inputPosition: 'right' } },
1330
+ },
1331
+ });
1332
+ ```
1333
+
1334
+ ```vue
1335
+ <template>
1336
+ <BbConfigScope name="settings">
1337
+ <BbTextInput v-model="name" label="Display name" name="name" />
1338
+ <BbSwitch v-model="digest" label="Weekly digest" name="digest" />
1339
+ </BbConfigScope>
1340
+ </template>
1341
+
1342
+ <script setup lang="ts">
1343
+ import { ref } from 'vue';
1344
+ import { BbConfigScope, BbSwitch, BbTextInput } from 'bitboss-ui';
1345
+
1346
+ const name = ref<string | null>('');
1347
+ const digest = ref(true);
1348
+ </script>
1349
+ ```
1350
+
1351
+ **5. An inline scope for one group.** A card of switches, compact and with the
1352
+ label first, without a name in the plugin config:
1353
+
1354
+ ```vue
1355
+ <template>
1356
+ <BbConfigScope :config="{ all: { compact: true, reverse: true } }">
1357
+ <BbSwitch v-model="email" label="Email" name="email" />
1358
+ <BbSwitch v-model="push" label="Push" name="push" />
1359
+ </BbConfigScope>
1360
+ </template>
1361
+
1362
+ <script setup lang="ts">
1363
+ import { ref } from 'vue';
1364
+ import { BbConfigScope, BbSwitch } from 'bitboss-ui';
1365
+
1366
+ const email = ref(true);
1367
+ const push = ref(false);
1368
+ </script>
1369
+ ```
1370
+
1371
+ Reuse a look → a named scope. One group → an inline one. Both nest; the
1372
+ [BbConfigScope guide](https://llms-bitboss-ui.bitboss.it/dist/ai/BbConfigScope.md) has the component's own details
1373
+ (overlays, directives, toasts and confirms inside a scope).
1374
+
1375
+ ### Which value wins
1376
+
1377
+ Per prop, the first that sets it:
1378
+
1379
+ 1. the instance's own prop (`:compact="false"` undoes a default for one),
1380
+ 2. the nearest `<BbConfigScope>`: its entry for the component, then its `all`
1381
+ (an inline `:config` sits on top of the same scope's `name`),
1382
+ 3. outer scopes, the same way,
1383
+ 4. the `components` map: the component's entry, then `all`,
1384
+ 5. the component's own default.
1385
+
1386
+ `pt` merges instead of winning: the map's, then each active scope's from the
1387
+ outermost in, then the instance's `class` / `pt` / `pt:*` (classes append, a
1388
+ conflicting utility is replaced, styles merge, attributes win; see
1389
+ [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md)).
1390
+
1391
+ ### What an entry takes
1392
+
1393
+ Every key at every level is optional: write only what you change. The props
1394
+ (generated from the library's own table):
1395
+
1396
+ <!-- generated:config-props -->
1397
+
1398
+ - `adaptive` (also through `all`): `BbColorInput`, `BbColorPalette`, `BbDatePicker`, `BbDatePickerInput`, `BbDialog`, `BbDropdown`, `BbPopover`, `BbSelect`, `BbSelectPopover`, `BbTimePicker`, `BbTimePickerInput`
1399
+ - `autocomplete` (also through `all`): `BbColorInput`, `BbDatePickerInput`, `BbNumberInput`, `BbSelect`, `BbTag`, `BbTextInput`, `BbTextarea`, `BbTimePickerInput`
1400
+ - `block` (also through `all`): `BbButton`, `BbCheckboxGroup`, `BbDropdownButton`, `BbRadioGroup`, `BbTabs`
1401
+ - `compact` (also through `all`): `BbCheckbox`, `BbCheckboxGroup`, `BbColorInput`, `BbDatePickerInput`, `BbDropdown`, `BbNumberInput`, `BbRadio`, `BbRadioGroup`, `BbRating`, `BbSelect`, `BbSelectPopover`, `BbSlider`, `BbTable`, `BbTabs`, `BbTag`, `BbTextInput`, `BbTextarea`, `BbTimePickerInput`
1402
+ - `inputPosition` (also through `all`): `BbCheckbox`, `BbCheckboxGroup`, `BbRadio`, `BbRadioGroup`, `BbRating`
1403
+ - `itemLayout` (also through `all`): `BbCheckboxGroup`, `BbRadioGroup`
1404
+ - `itemReverse` (also through `all`): `BbCheckboxGroup`, `BbRadioGroup`
1405
+ - `labelMode` (also through `all`): `BbColorInput`, `BbDatePickerInput`, `BbNumberInput`, `BbSelect`, `BbSlider`, `BbTag`, `BbTextInput`, `BbTextarea`, `BbTimePickerInput`
1406
+ - `layout` (also through `all`): `BbCheckbox`, `BbCheckboxGroup`, `BbColorInput`, `BbDatePickerInput`, `BbNumberInput`, `BbRadio`, `BbRadioGroup`, `BbRating`, `BbSelect`, `BbSlider`, `BbTag`, `BbTextInput`, `BbTextarea`, `BbTimePickerInput`
1407
+ - `listLayout` (also through `all`): `BbCheckboxGroup`, `BbRadioGroup`
1408
+ - `reverse` (also through `all`): `BbCheckbox`, `BbCheckboxGroup`, `BbColorInput`, `BbDatePickerInput`, `BbNumberInput`, `BbRadio`, `BbRadioGroup`, `BbRating`, `BbSelect`, `BbSlider`, `BbTag`, `BbTextInput`, `BbTextarea`, `BbTimePickerInput`
1409
+ - `validationMode` (also through `all`): `BbCheckbox`, `BbCheckboxGroup`, `BbColorInput`, `BbDatePickerInput`, `BbDropzone`, `BbNumberInput`, `BbRadioGroup`, `BbRating`, `BbSelect`, `BbSlider`, `BbSwitch`, `BbSwitchGroup`, `BbTag`, `BbTextInput`, `BbTextarea`, `BbTimePickerInput`
1410
+ - `autoGrow`: `BbTextarea`
1411
+ - `disableAutoLoading`: `BbButton`
1412
+ - `disableFormatting`: `BbNumberInput`
1413
+ - `floating`: `BbDatePickerInput`
1414
+ - `fullscreen`: `BbDialog`
1415
+ - `hideClose`: `BbAlert`
1416
+ - `maxPrecision`: `BbNumberInput`
1417
+ - `nullValue` (app-wide only): `BbTextInput`, `BbTextarea`
1418
+ - `side`: `BbOffCanvas`
1419
+ - `size`: `BbBadge`, `BbButton`
1420
+ - `variant`: `BbBadge`, `BbButton`
1421
+
1422
+ <!-- /generated:config-props -->
1423
+
1424
+ The keys that are not props:
1425
+
1426
+ <!-- generated:config-keys -->
1427
+
1428
+ - `pt`: every component
1429
+ - `variants` (app-wide only): `BbAlert`, `BbBadge`, `BbButton`, `BbCheckboxGroup`, `BbColorInput`, `BbConfirm`, `BbDatePickerInput`, `BbDropdown`, `BbIndicator`, `BbNumberInput`, `BbRadioGroup`, `BbSelect`, `BbTabs`, `BbTag`, `BbTextInput`, `BbTextarea`, `BbTimePickerInput`, `BbToast`, `BbTooltip`
1430
+ - `sizeMap`: `BbAvatar`, `BbDialog`, `BbIcon`, `BbOffCanvas`, `BbRating`
1431
+ - `size`: `BbConfirm`
1432
+ - `position`: `BbToast`
1433
+ - only in `all`: `requiredAsterisk`, `autoDisableWritingThreshold`, `popoverOffset`
1434
+
1435
+ <!-- /generated:config-keys -->
1436
+
1437
+ The `all`-only settings:
1438
+
1439
+ - `requiredAsterisk` (default `true`): the red asterisk beside required
1440
+ fields' labels. Presentational only: outside a `BbForm` the `required`
1441
+ prop raises it; inside one a `required` rule, a key the `schema` requires,
1442
+ or the `required` prop. `false` turns it off. A control you build
1443
+ yourself (`useBbFormField`) renders the exported `BbAsterisk`.
1444
+ - `autoDisableWritingThreshold` (default `6`): an unset `disable-writing` on
1445
+ BbSelect / BbSelectPopover means `'auto'`, and an **array** `items` with
1446
+ **fewer** options than this (disabled ones count, group headers don't)
1447
+ opens without a search field, decided when the panel opens. A provider
1448
+ `items`, or a listener on `option:add`, keeps the field. `0` keeps every
1449
+ field; hiding or forcing one field is its own `disable-writing`.
1450
+ - `popoverOffset` (default `4`): the gap in px between every floating surface
1451
+ and its trigger; an instance's `offset` wins.
1452
+
1453
+ The MCP `get_component` answer lists the same keys per component (`config`).
1454
+
1455
+ ### App-wide only: `variants` and `nullValue`
1456
+
1457
+ A scope (named or inline) takes the whole map except these two, because both
1458
+ change **types**: the plugin writes the registered names and the empty-value
1459
+ policy into your project's `bitboss-ui.d.ts`, and TypeScript cannot know which
1460
+ scope a template sits in. In a scope they are a type error, and a build error
1461
+ (or a dev warning, inline) naming the path. A scope's size scales,
1462
+ `BbToast.position` and `BbConfirm.size` do apply to what is called inside it
1463
+ (a toast from `useToast()`, a confirm from `useConfirm()`).
1464
+
1465
+ **`nullValue`: what an emptied text field emits.** `BbTextInput` /
1466
+ `BbTextarea` emit `null` when they are emptied (typed empty, the clear button,
1467
+ an empty mask); `'string'` makes them emit `''`. Pick what your backend and
1468
+ your validation expect: with `'string'`, a schema such as
1469
+ `z.string().min(1, 'Required')` shows your message on an emptied field instead
1470
+ of the library's type error for `null` (see
1471
+ [validation-libraries](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validation-libraries.md) § What needs a tweak). It
1472
+ changes only what an EMPTIED field emits: a field nobody touched keeps the
1473
+ value your page gave it, so in `'string'` mode start text values as `''`. With
1474
+ `nullValue: 'string'` the field's `update:modelValue` types as `string`
1475
+ (commit the regenerated `bitboss-ui.d.ts`); one field can still differ with its
1476
+ own `null-value` prop. Without the Vite plugin, write the augmentation by hand:
1477
+
1478
+ ```ts
1479
+ export {};
1480
+ declare module 'bitboss-ui' {
1481
+ interface EmptyStringControlRegistry {
1482
+ BbTextInput: true;
1483
+ BbTextarea: true;
1484
+ }
1485
+ }
1486
+ ```
1487
+
1488
+ ### A map in its own file
1489
+
1490
+ A real map grows; keep it beside `vite.config.ts` and type it with
1491
+ `satisfies`:
1492
+
1493
+ ```ts
1494
+ // bitboss-ui.components.ts
1495
+ import type { BbComponentsMap } from 'bitboss-ui/vite'; // 'bitboss-ui/nuxt' in a Nuxt app
1496
+
1497
+ export const components = {
1498
+ all: { compact: true },
1499
+ BbTextInput: { pt: { label: 'text-xs' } },
1500
+ } satisfies BbComponentsMap;
1501
+
1502
+ export const configScopes = {
1503
+ settings: { all: { layout: 'horizontal' } },
1504
+ } satisfies Record<string, BbComponentsMap<'scope'>>;
1505
+ ```
1506
+
1507
+ ```ts
1508
+ // vite.config.ts
1509
+ import { defineConfig } from 'vite';
1510
+ import { bitbossUi } from 'bitboss-ui/vite';
1511
+ import { components, configScopes } from './bitboss-ui.components';
1512
+
1513
+ export default defineConfig({
1514
+ plugins: [bitbossUi({ components, configScopes })],
1515
+ });
1516
+ ```
1517
+
1518
+ There, a `variant` takes any string while you type (nothing tells the type
1519
+ which names you registered); the build check reports a name no registry has.
1520
+
1521
+ ### What the build catches
1522
+
1523
+ The map ships as JSON inside the config module: **data only** (a function
1524
+ fails the build, naming the path) and **build-time only** (no per-app option,
1525
+ no `setConfig`; `useConfig().components` reports it). A key in the wrong place
1526
+ fails the build naming its home:
1527
+
1528
+ - `BbDialog: { sizes: … }` → the size scale is `sizeMap`;
1529
+ - `BbButton: { adaptive: … }` → BbButton has no `adaptive` prop (`all.adaptive`
1530
+ reaches only the components that do);
1531
+ - `all: { variants: … }` → `variants` belongs to one component;
1532
+ - a removed top-level option (`pt`, `variants`, `adaptive`, `toastPosition`, …)
1533
+ → its new path. Coming from those: the
1534
+ [migration guide](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v2-to-v3.md) § 6 item 142 has every one.
1535
+ - any other top-level key the plugin does not take (`component: …`) → the
1536
+ build fails naming it and the closest option (`components`), in
1537
+ `bitbossUi({ … })` and in Nuxt's `bitboss: { … }`. `npx bitboss-ui check`
1538
+ reports the same key before you start the dev server.
1539
+
1221
1540
  ## 7) Complete Option Reference
1222
1541
 
1223
1542
  Options are the same for `bitboss-ui/vite` and the `bitboss` key in Nuxt.
@@ -1286,56 +1605,15 @@ You do not add an `@layer` line to your own CSS — the plugin emits the
1286
1605
  declaration ahead of its rules. An invalid array, or a boolean, fails the build
1287
1606
  with a message containing a working replacement.
1288
1607
 
1289
- ### `pt?: PtGlobalMap` (default: `{}`)
1608
+ ### `components?: BbComponentsMap` (default: none)
1290
1609
 
1291
- The global passthrough map — what every instance of a component starts from,
1292
- keyed by component name, then by `part` or `part:state`:
1610
+ Per component its allowlisted prop defaults, `pt`, `variants` and
1611
+ `sizeMap`, plus `all`. See [The components map](#the-components-map).
1293
1612
 
1294
- ```ts
1295
- bitbossUi({
1296
- pt: {
1297
- BbButton: {
1298
- icon: 'text-slate-500',
1299
- 'icon:loading': { class: 'opacity-50', attrs: { 'data-track': 'busy' } },
1300
- },
1301
- },
1302
- });
1303
- ```
1304
-
1305
- Every component has an entry available — the parts and states of each are in
1306
- the passthrough guide's table (form controls share one family vocabulary, so
1307
- "every field box is square" is one line per control today). A per-instance
1308
- `pt` / `pt:<part>` merges after it: classes append (a conflicting utility is
1309
- replaced — see `passthroughDeduper`), styles merge, attributes win. It ships as JSON inside the config module, so it is
1310
- **data only** — a function anywhere in it fails the build, naming the path and
1311
- the per-instance form to bind the listener with instead. Component names and
1312
- part words are typed (wrap a map kept in its own file in `definePt`, exported
1313
- from `bitboss-ui/vite` and `bitboss-ui/nuxt`) and checked against the manifest
1314
- at build time. **Build-time only**: this option is the single source — there
1315
- is no per-app plugin option, no `setConfig`, and `useConfig().pt` is frozen.
1316
- Grammar, merge rules and the part/state vocabulary:
1317
- [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md).
1318
-
1319
- ### `ptScopes?: Record<string, PtGlobalMap>` (default: none)
1320
-
1321
- Named maps with the same shape and rules as `pt`, applied only inside a
1322
- `<BbPtScope name="…">` subtree — a backoffice and a member area sharing every
1323
- component but not a look. Per key: `pt`, then the active scopes from the
1324
- outermost `<BbPtScope>` in, then the instance's `class` / `pt` / `pt:*`. The
1325
- names become the `BbPtScopeName` union `<BbPtScope name>` accepts, generated
1326
- when the dev server or a build runs. Order, nesting, overlays and where the
1327
- toast / confirm hosts go: [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Named scopes.
1328
-
1329
- ```ts
1330
- import { definePt } from 'bitboss-ui/vite';
1613
+ ### `configScopes?: Record<string, BbComponentsMap<'scope'>>` (default: none)
1331
1614
 
1332
- bitbossUi({
1333
- ptScopes: {
1334
- webapp: definePt({ BbButton: { root: 'rounded-full' } }),
1335
- backoffice: definePt({ BbButton: { root: 'rounded-md' } }),
1336
- },
1337
- });
1338
- ```
1615
+ Named config scopes, switched on by `<BbConfigScope name>`. See
1616
+ [The components map](#the-components-map).
1339
1617
 
1340
1618
  ### `injectDirectives?: boolean` (default: `true`)
1341
1619
 
@@ -1374,14 +1652,6 @@ It only touches passthrough classes — the component's own BEM classes are
1374
1652
  kept — and a class of yours shaped like a utility is treated as one. Details:
1375
1653
  [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Conflicting utilities.
1376
1654
 
1377
- ### `adaptive?: boolean` (default: `true`)
1378
-
1379
- Default for the `adaptive` prop of surface components (BbDialog, BbPopover, BbDropdown, BbSelect): when true they open as a bottom sheet on mobile (below `mobileMaxWidth`) instead of their floating surface. An explicit per-component `adaptive` prop always wins.
1380
-
1381
- ### `autoDisableWritingThreshold?: number` (default: `6`)
1382
-
1383
- The select family (BbSelect and BbSelectPopover) hides the search field under this many options by default: an unset `disable-writing` means `'auto'`, and an **array** `items` with **fewer** options than the threshold (disabled options count, group headers don't) opens without a field — decided when the panel opens and held until it closes. A provider (function) `items`, or a consumer listening to `option:add`, always keeps the field. A non-negative integer — the build fails on anything else. Set `autoDisableWritingThreshold: 0` to keep every search field (the behaviour before `'auto'`). There is deliberately no global "hide every search field" option: hiding or forcing a field is the per-instance `disable-writing` (`true` / `false` / `'mobile'` / `'desktop'`), which always wins over `'auto'`.
1384
-
1385
1655
  ### `vscodeSettings?: boolean` (default: `true`)
1386
1656
 
1387
1657
  When `true`, the **dev server** writes three editor hints into the project's `.vscode/settings.json` on boot:
@@ -1468,18 +1738,21 @@ The write is idempotent (it happens at most once per missing entry) and splice-b
1468
1738
 
1469
1739
  Reload the window once after the first write. See [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Tailwind IntelliSense.
1470
1740
 
1471
- ### `mcp?: boolean` (default: `false`)
1741
+ ### `ai?: boolean` (default: `true`)
1742
+
1743
+ Agent setup: the `AGENTS.md` block, the `CLAUDE.md` import, the skill folders and the bitboss-ui MCP server in each agent harness's project config (§8). `npx bitboss-ui update` keeps them current: the app's `postinstall`, and the dev server on start. `false` removes everything the setup wrote, for everyone, on the next install or dev start. To skip it on one machine, set `BITBOSS_UI_AI=0` there instead: nothing is removed.
1472
1744
 
1473
- When `true`, the **dev server** registers the bitboss-ui MCP server in each project-scoped agent-harness config on boot — `.mcp.json` (Claude Code), `.cursor/mcp.json` (Cursor), `.vscode/mcp.json` (VS Code / Copilot), and `.zed/settings.json` (Zed, under `context_servers`) — so agents can query the knowledge base with no manual setup. The write is merge-safe (leaves other servers alone) and idempotent (only logs when it actually changes a file). This flag is the zero-command equivalent of `npx bitboss-ui ai-init`'s registration; unlike that command it never installs anything. The MCP server's own runtime — `@modelcontextprotocol/sdk` and `zod` — ships as **optional peer dependencies** (~12 MB, more than every runtime dependency of the library combined, and loaded by nothing else), so they must be installed before the harness first launches the server — `ai-init` installs them with your package manager, and this flag warns when they are missing.
1745
+ Write it as a literal. The CLI reads it from the config as text, without running it; a computed value counts as `true` (`bitboss-ui/static-plugin-options` reports it).
1474
1746
 
1475
- **MCP is a convenience, not a requirement, and skipping it costs no
1476
- knowledge.** The server is a reader over files the install already put on disk
1477
- — every tool `readFileSync`s out of `node_modules/bitboss-ui/dist/ai/` (plus
1478
- `dist/styles.css` for the token lookup). An agent that opens that directory
1479
- itself has the identical knowledge base, `npx bitboss-ui check` runs without the
1480
- peers, and `ai-init --no-mcp` still writes the harness pointers. If you are
1481
- migrating under a "no new dependencies" constraint, leave `mcp` at `false`,
1482
- run `ai-init --no-mcp`, and point your agent at `dist/ai/guides/ai-router.md`.
1747
+ **The MCP server is a convenience, not a requirement.** It reads the files the install already put in `node_modules/bitboss-ui/dist/ai/` (plus `dist/styles.css` for the token lookup). An agent pointed at `dist/ai/guides/ai-router.md` has the same knowledge base.
1748
+
1749
+ ### `allowComponents?: string[]` (default: `[]`)
1750
+
1751
+ Your own `Bb…` components that `bitboss-ui check` cannot tell are yours: ones registered globally, so no import shows. A listed tag is skipped whole: no finding, no prop, event or slot check. Write it as a literal array of names (the CLI reads it as text); `check --allow-component <Name>` adds one for a run. The ESLint rules take their own `allowComponents` option. See [Your own components named `Bb…`](#your-own-components-named-bb).
1752
+
1753
+ ```ts
1754
+ bitbossUi({ allowComponents: ['BbRichEditor'] });
1755
+ ```
1483
1756
 
1484
1757
  ### `inertiaLinkName?: string` (default: `'Link'`)
1485
1758
 
@@ -1551,51 +1824,6 @@ renders its `adaptive` surfaces from the live width from its first render. On
1551
1824
  a phone, give that app the same mobile answer on the server, or accept one
1552
1825
  mismatch warning in dev.
1553
1826
 
1554
- ### `defaultInputLabelMode?: 'outside' | 'floating' | 'inside'` (default: `'outside'`)
1555
-
1556
- Default label rendering mode for input-like components; set globally instead of repeating per field.
1557
-
1558
- ### `requiredAsterisk?: boolean` (default: `true`)
1559
-
1560
- Marks required fields with a red asterisk beside the label/legend. Presentational only — it changes neither validation nor native `required` semantics. The marker is applied by the form controls (see [Validated Forms](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validated-forms.md)) — outside a `BbForm` a field with the `required` prop; inside one a field whose `rules` contain a `required` rule or whose key the `schema` requires or that has the `required` prop, which there is a hint and checks nothing; other rules never raise it, because they only apply once a value exists. Set `false` to turn the marker off app-wide. A control you build yourself (`useBbFormField`) renders the exported `BbAsterisk` in its own label content.
1561
-
1562
- ### `formControls?: { textInputNullValue?: 'null' | 'string'; textareaNullValue?: 'null' | 'string'; validationMode?: ValidationMode }` (default: `'null'`, `'null'`, `'balanced'`)
1563
-
1564
- What an emptied `BbTextInput` / `BbTextarea` emits (typed empty, the clear
1565
- button, an empty mask), as a policy: `'null'`, the default, emits `null`;
1566
- `'string'` emits `''`. Pick what your backend and your validation expect.
1567
- With `'string'`, a schema such as
1568
- `z.string().min(1, 'Required')` shows your message on an emptied field
1569
- instead of the library's type error for `null` — see
1570
- [validation-libraries](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validation-libraries.md) § What needs a tweak. Set it
1571
- once here, or per app with `app.use(bitbossUiPlugin, { formControls: { … } })`
1572
- (merged key by key). It changes only what an EMPTIED field emits: a field
1573
- nobody touched keeps the value your page gave it, so in `'string'` mode start
1574
- text values as `''`.
1575
-
1576
- The policy set in the Vite plugin also reaches the types: with
1577
- `textInputNullValue: 'string'` the plugin registers `BbTextInput` in the project's
1578
- `bitboss-ui.d.ts` (`EmptyStringControlRegistry`), and its `update:modelValue`
1579
- payload types as `string` instead of `string | null` (likewise for
1580
- `BbTextarea`). Commit the regenerated file. Without the Vite plugin, write the
1581
- same augmentation by hand:
1582
-
1583
- ```ts
1584
- export {};
1585
- declare module 'bitboss-ui' {
1586
- interface EmptyStringControlRegistry {
1587
- BbTextInput: true;
1588
- BbTextarea: true;
1589
- }
1590
- }
1591
- ```
1592
-
1593
- `app.use(bitbossUiPlugin, { formControls })` changes only the runtime, so keep
1594
- it the same as the Vite option, or the types describe the other policy. One
1595
- field can differ from the app with the `null-value` prop, same values
1596
- (`null-value="string"` or `null-value="null"`), which types that field's
1597
- payload the same way.
1598
-
1599
1827
  ### `locale?: LocaleKey` (default: `'en'`)
1600
1828
 
1601
1829
  The default is English: an Italian app sets `locale: 'it'`.
@@ -1605,7 +1833,9 @@ labels, screen-reader announcements, confirm buttons, …) and for the formats
1605
1833
  around them (dates, numbers, week start). The list is fixed and typed (see
1606
1834
  [Locales](#locales) below): a language (`it`, `de`, …), a region (`en-GB`,
1607
1835
  `de-CH`, `fr-CA`, …), or a language with its own dictionaries per
1608
- region: `es-MX`, `pt-BR` / `pt-PT`, `zh-CN` / `zh-TW` / `zh-HK`. Shipping ≠
1836
+ region: `es-MX`, `pt-BR` / `pt-PT`, `zh-CN` / `zh-TW` / `zh-HK`. Arabic (`ar`),
1837
+ Hebrew (`he`) and Persian (`fa`) are right-to-left: see
1838
+ [Right-to-left](#right-to-left). Shipping ≠
1609
1839
  bundling: only the **enabled** locales enter your build (next option). Runtime
1610
1840
  switching: `useBbConfig().setConfig({ locale })` — to a locale you enabled.
1611
1841
 
@@ -1678,18 +1908,18 @@ One fixed list. A bare language is its default
1678
1908
  region (CLDR likely subtags): `it` is `it-IT`, `de` `de-DE`, `en` `en-US`, `pt`
1679
1909
  `pt-BR`, `zh` `zh-CN` (Simplified).
1680
1910
 
1681
- | Language | Default | Regions (same words, own formats) | Own dictionary |
1682
- | --------------- | ---------------------------------------------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------- |
1683
- | English | `en` (US) | `en-GB`, `en-AU`, `en-CA`, `en-IE` (British spelling: colour) | |
1684
- | German | `de` | `de-AT` | `de-CH` (ss for ß) |
1685
- | French | `fr` | `fr-BE`, `fr-CA`, `fr-CH` | |
1686
- | Italian | `it` | `it-CH` | |
1687
- | Dutch | `nl` | `nl-BE` | |
1688
- | Swedish | `sv` | `sv-FI` | |
1689
- | Spanish | `es` (Spain) | | `es-MX` (Mexico) |
1690
- | Portuguese | `pt-BR` | | `pt-PT` (European; week from Sunday, CLDR) |
1691
- | Chinese | `zh-CN` (Simplified) | | `zh-TW` (Traditional, Taiwan), `zh-HK` (Traditional, Hong Kong) |
1692
- | One region each | `cs` `da` `el` `fi` `hu` `ja` `ko` `nb` `pl` `ro` `ru` `tr` `uk` | | |
1911
+ | Language | Default | Regions (same words, own formats) | Own dictionary |
1912
+ | --- | --- | --- | --- |
1913
+ | English | `en` (US) | `en-GB`, `en-AU`, `en-CA`, `en-IE` (British spelling: colour) | |
1914
+ | German | `de` | `de-AT` | `de-CH` (ss for ß) |
1915
+ | French | `fr` | `fr-BE`, `fr-CA`, `fr-CH` | |
1916
+ | Italian | `it` | `it-CH` | |
1917
+ | Dutch | `nl` | `nl-BE` | |
1918
+ | Swedish | `sv` | `sv-FI` | |
1919
+ | Spanish | `es` (Spain) | | `es-MX` (Mexico) |
1920
+ | Portuguese | `pt-BR` | | `pt-PT` (European; week from Sunday, CLDR) |
1921
+ | Chinese | `zh-CN` (Simplified) | | `zh-TW` (Traditional, Taiwan), `zh-HK` (Traditional, Hong Kong) |
1922
+ | One region each | `ar` `cs` `da` `el` `fa` `fi` `he` `hu` `ja` `ko` `nb` `pl` `ro` `ru` `tr` `uk` | | |
1693
1923
 
1694
1924
  A region reads its language's dictionary and follows its own formats: the
1695
1925
  long date and the number grouping (`Intl`, through the region's tag:
@@ -1699,6 +1929,13 @@ types `AAAA-MM-JJ`, `en-GB` `DD/MM/YYYY`). A region is on the list only where
1699
1929
  its language's words are right there; where they are not (`es-MX`, `zh-HK`),
1700
1930
  the region has its own dictionary.
1701
1931
 
1932
+ The right-to-left languages are one region each too: `ar` is `ar-EG` (Arabic-Indic
1933
+ digits, week from Saturday), `he` is `he-IL` (week from Sunday), `fa` is
1934
+ `fa-IR` (Persian digits, week from Saturday). Their dictionaries are
1935
+ machine-reviewed (an independent back-translation compared line by line, plus
1936
+ a second model's read), not yet by a native speaker: report a wording that
1937
+ reads wrong upstream.
1938
+
1702
1939
  Codes are case-insensitive (`zh-cn` and `zh-CN` are the same locale), and the full code of a default region is the same locale (`it-IT` is
1703
1940
  `it`). A code on the list but missing from `enabledLocales` is a type error
1704
1941
  too (`… is not assignable to type 'keyof LocaleRegistry'`): enable it, it
@@ -1714,38 +1951,80 @@ to be added upstream rather than to author a dictionary in your app.
1714
1951
  Locale selection is **build-time**: `enabledLocales` decides what ships, and
1715
1952
  only the active `locale` switches at runtime, among what the build enabled.
1716
1953
 
1717
- ### `toastPosition?: BbToastPosition` (default: `'bottom-right'`)
1954
+ ### Right-to-left
1718
1955
 
1719
- Default viewport corner for toasts when the toast names no `position` of its own. One of `'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'`. (It replaces the removed `<BbToast position>` prop.)
1956
+ There is no direction option. The components follow the page: put `dir="rtl"`
1957
+ on `<html>` (or on the element that wraps a right-to-left region) and they
1958
+ lay out from the right, because their CSS is written in logical properties
1959
+ (`inline-start` / `inline-end`). Set `dir` with the locale; picking `ar`,
1960
+ `he` or `fa` changes the words, not the direction.
1720
1961
 
1721
- ### `confirm?: { defaultSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' }` (default: `{}`)
1722
-
1723
- Settings of the confirm dialog `<BbHost />` renders. `defaultSize` is the maximum width of every confirm, a `dialogDefaultSizes` preset; a per-call `confirm({ size })` wins, and unset leaves the dialog default (`'sm'`). Set it here, or per app with `app.use(bitbossUiPlugin, { confirm: { defaultSize: 'lg' } })`, merged key by key. (It replaces the removed `<BbConfirm size>` prop.)
1724
-
1725
- ### `iconDefaultSizes?: Partial<Sizes>`
1726
-
1727
- Default icon size scale used by `BbIcon` and avatar dimensions. Partial overrides merge onto:
1728
-
1729
- `{ xs: 12, sm: 16, md: 24, lg: 28, xl: 36, '2xl': 40 }`
1730
-
1731
- ### `dialogDefaultSizes?: Partial<Sizes>`
1732
-
1733
- ### `offCanvasDefaultSizes?: Partial<Sizes>`
1734
-
1735
- Global size maps (pixels) for BbDialog / BbOffCanvas. Both default to:
1736
-
1737
- `{ xs: 320, sm: 384, md: 448, lg: 512, xl: 576, '2xl': 672 }`
1962
+ ```ts
1963
+ document.documentElement.dir = ['ar', 'he', 'fa'].includes(locale)
1964
+ ? 'rtl'
1965
+ : 'ltr';
1966
+ ```
1738
1967
 
1739
- Provide only the keys you want to override, e.g. `dialogDefaultSizes: { md: 500, xl: 680 }`.
1968
+ Under SSR, write the same `dir` into the server's `<html>` so the first paint is
1969
+ already mirrored.
1970
+
1971
+ - **Direction is read when it is used.** Keyboard handlers and placements read
1972
+ the computed `direction` at the moment of the key press or the opening, so a
1973
+ `dir` that changes at runtime takes effect on the next interaction, with no
1974
+ remount. A popover, menu or sheet takes the direction of the element that
1975
+ opened it.
1976
+ - **Arrow keys follow what you see.** `ArrowRight` moves right on screen: to the
1977
+ previous day, tab, chip or column under `rtl`, and a slider thumb moves
1978
+ right, which lowers its value. `ArrowUp` / `ArrowDown`, Home and End keep
1979
+ their meaning. The keyboard help the components announce names no side.
1980
+ - **`start` / `end` follow the direction; `left` / `right` stay where they
1981
+ say.** BbOffCanvas `side`, toast `position` (`top-start`, `bottom-end`, …),
1982
+ popover placements (`start`, `end-start`, …) and the alignment props
1983
+ (`labelPosition`, `inputPosition`, `legendPosition`, table and pagination
1984
+ `align`, default `start`) take logical values, resolved when the surface
1985
+ opens or renders. A `left` you write is left in both directions.
1986
+ - **Which icons flip.** Icons that point along the reading direction mirror:
1987
+ the calendar's previous / next month, pagination previous / next, the
1988
+ breadcrumb separator, a menu row's submenu chevron. Icons that point up or
1989
+ down, or that are not about direction, do not: sort and accordion carets,
1990
+ checkmarks, the spinner. Colour areas (saturation, hue, opacity) are colour
1991
+ spaces and do not mirror; the swatch grid's arrows do. An icon you pass in a
1992
+ slot is yours: mirror it with `:dir(rtl) .my-icon { transform: scaleX(-1); }`.
1993
+ - **Older engines.** The icon mirroring uses `:dir(rtl)`, which Chrome and Edge
1994
+ read from version 120; on 114–119 those chevrons keep their left-to-right
1995
+ orientation. Layout and keyboard are unaffected.
1996
+ - **Dates.** The calendar and the digits follow the locale (`fa` is
1997
+ Persian): see [Calendars and digits](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/calendars-and-digits.md).
1998
+
1999
+ ### Variant registries: `components.<C>.variants`
2000
+
2001
+ Each component's `variants` registers your own variant names for it:
1740
2002
 
1741
- ### Variant registries
2003
+ ```ts
2004
+ bitbossUi({
2005
+ components: {
2006
+ BbButton: { variants: ['brand'] },
2007
+ BbBadge: { variants: ['soft-green', 'soft-red'] },
2008
+ BbDropdown: { variants: ['warning'] },
2009
+ BbTextInput: { variants: ['filled'] },
2010
+ },
2011
+ });
2012
+ ```
1742
2013
 
1743
- Each option **appends** custom names to the default set (trimmed, deduplicated). Unstyled custom variants only add a class hook — supply their CSS yourself. `toastVariants` and `alertVariants` also take an object form that sets a default icon per variant (see below the table).
2014
+ Each entry **appends** custom names to that component's default set (trimmed,
2015
+ deduplicated). Unstyled custom variants only add a class hook — supply their
2016
+ CSS yourself. `BbDropdown`'s are the menu rows' variants; each text-like field
2017
+ registers its own (`BbTextInput`, `BbSelect`, … one entry each); `BbConfirm`'s
2018
+ are the confirm dialog's. `BbToast` and `BbAlert` also take an object form
2019
+ that sets a default icon per variant (see below the table). Siblings share:
2020
+ `BbDropdownButton` takes BbButton's and BbDropdown's, `BbTabsList` BbTabs',
2021
+ `v-bb-tooltip` BbTooltip's. The names are app-wide: a config scope picks a
2022
+ default `variant` among them, never a set of its own.
1744
2023
 
1745
2024
  **The types come from one file in your project: `bitboss-ui.d.ts`. Commit
1746
2025
  it.** The plugin writes it when the dev server starts, on `vite build`, and
1747
2026
  under Vitest, from your `bitbossUi()` options: your custom variant names, the
1748
- enabled locales, and your `ptScopes` names. It lands next to your first script
2027
+ enabled locales, and your `configScopes` names. It lands next to your first script
1749
2028
  entry (`resources/js/bitboss-ui.d.ts` in a Laravel app), else in `src/`, else
1750
2029
  at the Vite root (`app/` under Nuxt 4); the `dts` option moves it, or
1751
2030
  `dts: false` turns it off. Commit it with the config change, and a teammate's
@@ -1754,17 +2033,17 @@ or Sail container agree, because the file lives in the project tree they
1754
2033
  share; nothing about types is read from `node_modules`.
1755
2034
 
1756
2035
  - **Built-in variants need no file.** They are declared in the package.
1757
- - **Custom variants, narrowed locales and `ptScopes` need the committed file.**
2036
+ - **Custom variants, narrowed locales and `configScopes` need the committed file.**
1758
2037
  Without it, a custom name fails exactly like a typo
1759
2038
  (`Type '"brand"' is not assignable to type 'ButtonVariantType'`).
1760
2039
  **`npx bitboss-ui check` writes it too**, without starting Vite: after you
1761
2040
  register a name in `vite.config.*` / `nuxt.config.*`, run `check` and the
1762
2041
  name type-checks (it reads the variant options when they are an inline
1763
- object of string literals, and leaves the locales and `ptScopes` as the
2042
+ object of string literals, and leaves the locales and `configScopes` as the
1764
2043
  plugin last wrote them). The next dev start completes the file. Commit it.
1765
- - **With no `ptScopes` at all**, every `<BbPtScope name>` is rejected, and the
1766
- error text says so: `not assignable to type 'bitboss-ui: no ptScopes
1767
- configured — …'`.
2044
+ - **With no `configScopes` at all**, every `<BbConfigScope name>` is
2045
+ rejected, and the error text says so: `not assignable to type 'bitboss-ui:
2046
+ no configScopes configured — …'`.
1768
2047
  - The plugin rewrites the file only when its names change, so a formatter that
1769
2048
  restyles it does not cause churn. It prints one line when it writes, and
1770
2049
  warns once if the file sits outside your TypeScript project (then point `dts`
@@ -1813,37 +2092,37 @@ variant names) and commit it. CI that type-checks before building needs that
1813
2092
  commit. Coming from an older beta that wrote files under `node_modules/bitboss-ui/`:
1814
2093
  see [Migration 3.0 betas](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v3-beta-tooling.md#install-and-plugin-setup).
1815
2094
 
1816
- | Option | Defaults | Class hook for custom entries |
1817
- | ---------------------- | ------------------------------------------------------- | ----------------------------------- |
1818
- | `buttonVariants` | `primary, outline, secondary, ghost, destructive, link` | `bb-button--<name>` |
1819
- | `alertVariants` | `outline, primary, destructive, warning` | `bb-alert--<name>` |
1820
- | `badgeVariants` | `primary, secondary, destructive, outline` | `bb-badge--<name>` |
1821
- | `indicatorVariants` | `default, success, info, warning, destructive` | `bb-indicator--<name>` |
1822
- | `confirmVariants` | `default, destructive` | `bb-confirm--<name>` |
1823
- | `dropdownItemVariants` | `default, destructive` | `bb-dropdown__item--variant-<name>` |
1824
- | `tooltipVariants` | `default, destructive` | `bb-tooltip--<name>` |
1825
- | `toastVariants` | `default, success, info, warning, destructive` | `bb-toast__panel--<name>` |
1826
- | `inputVariants` | `outline, secondary, ghost` | `bb-field-input--<name>` |
1827
- | `tabsVariants` | `pill, line, none` | `bb-tabs-list--<name>` |
1828
- | `radioVariants` | `pill, line` | `bb-radio-group__list--<name>` |
1829
- | `checkboxVariants` | `pill, line` | `bb-checkbox-group__list--<name>` |
1830
-
1831
- `toastVariants` and `alertVariants` also take an object, keyed by name, that
2095
+ | Entry `variants` of | Defaults | Class hook for custom entries |
2096
+ | --- | --- | --- |
2097
+ | `BbButton` | `primary, outline, secondary, ghost, destructive, link` | `bb-button--<name>` |
2098
+ | `BbAlert` | `outline, primary, destructive, warning` | `bb-alert--<name>` |
2099
+ | `BbBadge` | `primary, secondary, destructive, outline` | `bb-badge--<name>` |
2100
+ | `BbIndicator` | `default, success, info, warning, destructive` | `bb-indicator--<name>` |
2101
+ | `BbConfirm` | `default, destructive` | `bb-confirm--<name>` |
2102
+ | `BbDropdown` | `default, destructive` | `bb-dropdown__item--variant-<name>` |
2103
+ | `BbTooltip` | `default, destructive` | `bb-tooltip--<name>` |
2104
+ | `BbToast` | `default, success, info, warning, destructive` | `bb-toast__panel--<name>` |
2105
+ | `BbTextInput`, `BbSelect`, … (each field) | `outline, secondary, ghost` | `bb-field-input--<name>` |
2106
+ | `BbTabs` | `pill, line, none` | `bb-tabs-list--<name>` |
2107
+ | `BbRadioGroup` | `pill, line, outline` | `bb-radio-group__list--<name>` |
2108
+ | `BbCheckboxGroup` | `pill, line, outline` | `bb-checkbox-group__list--<name>` |
2109
+
2110
+ `BbToast` and `BbAlert` `variants` also take an object, keyed by name, that
1832
2111
  sets each variant's icon for the whole app:
1833
- `toastVariants: { success: { icon: 'lucide:circle-check' }, billing: {} }`.
2112
+ `components: { BbToast: { variants: { success: { icon: 'lucide:circle-check' }, billing: {} } } }`.
1834
2113
  A toast or alert without its own `icon` uses its variant's, and `hideIcon` /
1835
2114
  `hide-icon` hides either ([BbToast § Variant icons](https://llms-bitboss-ui.bitboss.it/dist/ai/BbToast.md),
1836
2115
  [BbAlert § Variant icons](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAlert.md)).
1837
2116
 
1838
- `tabsVariants` is the `variant` prop of `BbTabs` / `BbTabsList` (the class
1839
- lands on the strip). Like `inputVariants`, a custom entry is a **token block,
2117
+ `BbTabs`' `variants` are the `variant` prop of `BbTabs` / `BbTabsList` (the class
2118
+ lands on the strip). Like a field's, a custom entry is a **token block,
1840
2119
  not a rule set**: the shipped looks are presets of the strip's own custom
1841
2120
  properties (`--list-bg`, `--list-border`, `--trigger-gap`, `--active-fg`,
1842
2121
  `--active-fw`, `--indicator-bg`, `--indicator-h`, …), and a registered name
1843
2122
  sets the same ones —
1844
2123
 
1845
2124
  ```css
1846
- /* a registered `tabsVariants: ['brand-line']` — an underline in the brand colour */
2125
+ /* a registered `components: { BbTabs: { variants: ['brand-line'] } }` — an underline in the brand colour */
1847
2126
  .bb-tabs-list--brand-line {
1848
2127
  --list-bg: transparent;
1849
2128
  --list-border: var(--bb-border);
@@ -1861,7 +2140,7 @@ sets the same ones —
1861
2140
  The `BbTabs` guide (_Variants_) has the whole token table and two more
1862
2141
  recipes (`soft`, `outline`).
1863
2142
 
1864
- `radioVariants` and `checkboxVariants` are the `variant` prop of
2143
+ `BbRadioGroup`'s and `BbCheckboxGroup`'s `variants` are the `variant` prop of
1865
2144
  `BbRadioGroup` / `BbCheckboxGroup`: the group as a tab strip (the class lands
1866
2145
  on the group's list). The tokens are named and valued as the tab strip's, but
1867
2146
  they are the groups' own: a tab-strip variant does not restyle a choice strip.
@@ -1869,15 +2148,16 @@ A registered name is the same kind of token block on
1869
2148
  `.bb-radio-group__list--<name>` / `.bb-checkbox-group__list--<name>`; a
1870
2149
  checkbox one draws a pill per run of adjacent picks, as `pill` does.
1871
2150
 
1872
- `inputVariants` is the `variant` prop of the eight text-like controls
1873
- (`BbTextInput`, `BbTextarea`, `BbNumberInput`, `BbSelect`, `BbTag`,
1874
- `BbDatePickerInput`, `BbTimePickerInput`, `BbColorInput`). Its class hook is
1875
- the shared field box, and a custom entry is a **token block, not a rule set**:
2151
+ A text-like control's `variants` (`BbTextInput`, `BbTextarea`,
2152
+ `BbNumberInput`, `BbSelect`, `BbTag`, `BbDatePickerInput`,
2153
+ `BbTimePickerInput`, `BbColorInput`: one entry each, registered on that
2154
+ control alone) are its `variant` prop. Their class hook is the shared field
2155
+ box, and a custom entry is a **token block, not a rule set**:
1876
2156
  the box's geometry (height, padding, border width) never changes with the
1877
2157
  variant, so a variant only assigns the look variables the box reads —
1878
2158
 
1879
2159
  ```css
1880
- /* a registered `inputVariants: ['brand']` */
2160
+ /* a registered `components: { BbTextInput: { variants: ['brand'] } }` */
1881
2161
  .bb-field-input--brand {
1882
2162
  --bg: color-mix(in oklab, var(--bb-primary) 8%, var(--bb-panel));
1883
2163
  --bg-hover: color-mix(in oklab, var(--bb-primary) 12%, var(--bb-panel));
@@ -1926,9 +2206,43 @@ than inventing hues.
1926
2206
 
1927
2207
  ## 8) AI Knowledge Base
1928
2208
 
1929
- The package ships its agent docs in `node_modules/bitboss-ui/dist/ai/`. **Start at** `guides/ai-router.md`. Open one contract or one recipe next. The catalogue `index.md` is a last resort. Paint tokens are `design-tokens.json` (DESIGN.md-shaped twin: `design-tokens.manifest.yaml`), not a repo-root `DESIGN.md`. Run `npx bitboss-ui ai-init` in the consumer project to inject harness-agnostic pointers (AGENTS.md, Cursor rules, Copilot instructions, Claude skill, Windsurf rules) so coding agents discover them without a vendor lock-in. After generating Bb\* markup, run `npx bitboss-ui check` (supports `--json`) so unknown props fail before review.
2209
+ The package ships its agent docs in `node_modules/bitboss-ui/dist/ai/`. **Start at** `guides/ai-router.md`. Open one contract or one recipe next. The catalogue `index.md` is a last resort. Paint tokens are `design-tokens.json` (DESIGN.md-shaped twin: `design-tokens.manifest.yaml`), not a repo-root `DESIGN.md`. After generating Bb\* markup, run `npx bitboss-ui check` (supports `--json`) so unknown props fail before review.
2210
+
2211
+ ### Agent setup
2212
+
2213
+ `npx bitboss-ui@beta setup` points coding agents at those docs, and `npx bitboss-ui update` keeps the files current. The app's `"postinstall": "bitboss-ui update --no-install || exit 0"` (written by `setup`) runs it on every install, on every machine; the dev server does the same on start. Always:
2214
+
2215
+ - a marked block in `AGENTS.md` (the rest of the file is yours), read by Codex, Cursor, Copilot, Zed, Devin / Windsurf, Junie, Antigravity, Roo, Amp, Kiro and Muse;
2216
+ - a marked `@AGENTS.md` import in `CLAUDE.md` (Claude Code reads `AGENTS.md` only when there is no `CLAUDE.md`).
2217
+
2218
+ For each harness found in the repo or in the home folder, its project MCP file and the skill (`bitboss-ui/SKILL.md`) in the folder it reads:
1930
2219
 
1931
- Some starter kits (Laravel's vue-starter-kit among them) list `AGENTS.md`, `CLAUDE.md`, `.claude`, `.cursor` and `.mcp.json` in their `.gitignore`, so the files `ai-init` writes stay on your machine and teammates never see them until you un-ignore the ones you want committed.
2220
+ | Harness | MCP file | Skill |
2221
+ | --- | --- | --- |
2222
+ | Claude Code | `.mcp.json` | `.claude/skills` |
2223
+ | Cursor | `.cursor/mcp.json` | `.agents/skills` |
2224
+ | VS Code / GitHub Copilot | `.vscode/mcp.json` (`servers`) | `.agents/skills` |
2225
+ | Codex | `.codex/config.toml` | `.agents/skills` |
2226
+ | Antigravity | `.agents/mcp_config.json` | `.agents/skills` |
2227
+ | Gemini CLI | `.gemini/settings.json` (+ `GEMINI.md`) | `.agents/skills` |
2228
+ | Devin Desktop (Windsurf) | `.devin/mcp_config.json` | `.agents/skills` |
2229
+ | Zed | `.zed/settings.json` (`context_servers`) | `.agents/skills` |
2230
+ | Junie | `.junie/mcp/mcp.json` | `.agents/skills` |
2231
+ | Roo Code | `.roo/mcp.json` | `.agents/skills` |
2232
+ | Amp | `.amp/settings.json` (`amp.mcpServers`) | `.agents/skills` |
2233
+ | Kiro | `.kiro/settings/mcp.json` | none |
2234
+
2235
+ `npx bitboss-ui update --no-install --all` writes every row, found or not. A teammate's first install adds their harness; nothing is removed when a harness is not found. The MCP entry is merged (other servers stay, JSONC comments are kept) and launches the installed binary, `node node_modules/bitboss-ui/bin/bitboss-ui.mjs mcp`, never `npx`: it cannot fetch from the registry or drift behind an upgrade. Yarn PnP apps get the paths of their unplugged copy. Amp: run `amp mcp approve bitboss-ui` once. Zed starts the server once you trust the project. Muse loads `AGENTS.md` and the skill only in a trusted workspace (its prompt, or `muse --trust-workspace`).
2236
+
2237
+ Harnesses whose MCP config is global only (Cline, Muse, JetBrains AI Assistant, the GitHub Copilot coding agent) get instructions in the `AGENTS.md` block: the agent registers the server in its own settings after asking you. Nothing is written outside the project.
2238
+
2239
+ The files carry no version, so an upgrade does not rewrite them. Commit them and restart your agent once. Some starter kits (Laravel's vue-starter-kit among them) list `AGENTS.md`, `CLAUDE.md`, `.claude`, `.cursor` and `.mcp.json` in their `.gitignore`: un-ignore the ones teammates should share.
2240
+
2241
+ Earlier betas wrote `.cursor/rules/bitboss-ui.mdc`, `.windsurf/rules/bitboss-ui.md` and a block in `.github/copilot-instructions.md`; the setup removes them (`AGENTS.md` covers those harnesses, and Zed reads only the first instruction file it finds, which was the Copilot one).
2242
+
2243
+ **Off switches.** `ai: false` in the build plugin (§7) removes everything above, for everyone, on the next install or dev start. `BITBOSS_UI_AI=0` in one machine's environment skips the setup there and removes nothing. An install or a dev start also skips CI and a folder outside any git repository (a Docker build context), and an install never fails on it.
2244
+
2245
+ **`update`.** `npx bitboss-ui update` installs the newest release on the app's channel (`beta` while you are on a beta), refreshes these files and prints the breaking changes since the version you had (`npx bitboss-ui changelog --since <version>` prints them again). `--no-install` only refreshes; `ai-init` is the same command.
1932
2246
 
1933
2247
  **Three tiers ship under `dist/ai/`**, and the third one is easy to miss:
1934
2248
  `guides/` + `recipes/` are the authored prose; `<Name>.md` at the root is the
@@ -1937,7 +2251,7 @@ generated typed contract for each component (props, slots, events, examples);
1937
2251
  `.vue` template, `types.ts` and `index.css` in one file, one per component
1938
2252
  including the internal ones the package does not export. Open `source/<Name>.md` only when you are rebuilding chrome the library does not ship. It is not the second hop after the picker.
1939
2253
 
1940
- `ai-init` also registers a live MCP server (on by default; `--no-mcp` skips it) (`node node_modules/bitboss-ui/bin/bitboss-ui.mjs mcp` — the installed binary, not `npx`, so it can never fetch from the registry, its optional peers resolve in your project rather than in an npx cache, and it cannot drift behind an upgrade) the harness launches on demand — it merges the entry (never overwriting other servers) into `.mcp.json` (Claude Code), `.cursor/mcp.json` (Cursor), `.vscode/mcp.json` (VS Code / Copilot), and `.zed/settings.json` (Zed, under `context_servers`; it starts the server once you trust the project) — comments in these JSONC files are kept — the same four the plugin's `mcp: true` dev-server flag (§7) writes. Windsurf reads only a global home-dir config, so it is not registered; add the entry to `~/.codeium/windsurf/mcp_config.json` yourself if you use it. Muse loads `AGENTS.md` and the `.claude/skills` skill only once you trust the workspace (its prompt, or `muse --trust-workspace`), and it reads MCP servers from its user settings only: add `bitboss-ui` under `mcpServers` in `~/.config/muse/settings.json`, or ask Muse to migrate it from `.mcp.json`. `ai-init` also installs the server's optional peers — `@modelcontextprotocol/sdk` and `zod`, ~12 MB used only by the MCP server and not dependencies of the library — as dev dependencies with your package manager (from the lockfile), and prints the command if the install fails. **The server is optional and `--no-mcp` loses you nothing but the transport** — the server only reads the `dist/ai/` files listed above, so run `ai-init --no-mcp` (no config, no install) and let the agent read that directory if you cannot add the peers (see `mcp?: boolean` in §7).
2254
+ The server needs nothing else installed: it runs on a copy of `@modelcontextprotocol/sdk` and `zod` bundled into the package (`dist/mcp-sdk.mjs`). When the app installs both itself (`npm i -D @modelcontextprotocol/sdk zod`), the server uses them as long as the SDK is at least the bundled version and both share one zod copy, which is how you take an SDK fix before a bitboss-ui release; when it passes over an installed SDK, it says why on stderr. **The server is optional**: it only reads the `dist/ai/` files listed above (see `ai?: boolean` in §7).
1941
2255
 
1942
2256
  Add the `bitboss-ui/eslint-plugin` flat-config plugin (`...bitbossUi.configs.recommended`) so unknown and removed `Bb*` props fail as ESLint errors in the editor and in CI. It runs the same manifest checks as `bitboss-ui check` and reuses your `eslint-plugin-vue` parser. Wire `@typescript-eslint/parser` for both `.ts` and `.vue` files, or a parsing error stops every rule on those files; the README "ESLint plugin" section has the full config. Silence one site with `<!-- eslint-disable-next-line bitboss-ui/<rule> -->`; `check` honours the same comments. `eslint --fix` (and `check --fix`) applies the registered v2 to v3 migrations only, never a "did you mean" hint.
1943
2257
 
@@ -1958,6 +2272,8 @@ Every rule in `recommended`, in one line each. The whole list with the long expl
1958
2272
  - `text-null-value`: a `string` ref bound to a text input whose policy is `null`. Fix: `ref<string | null>(...)`.
1959
2273
  - `dropdown-default-slot`: a trigger placed in a `BbDropdown` default slot. Fix: use the `activator` slot or `v-bb-dropdown`.
1960
2274
  - `collapsible-trigger-aria`: a `BbCollapsible` toggle with no `aria-expanded`. Fix: add `:aria-expanded` and `aria-controls`, or use `BbAccordion`.
2275
+ - `carousel-prop-or-local`: a `BbCarousel` layout prop and its CSS local together. Fix: keep one.
2276
+ - `carousel-items-without-slide`: `BbCarousel` `items` objects with no `src` and no `#slide`. Fix: add either.
1961
2277
  - `hidden-label-placeholder` (warn): a field or select with `hide-label` and no `placeholder`, an empty unlabelled box to a sighted user. Fix: add a `placeholder`.
1962
2278
  - `prefer-v-bb-dialog` (warn): a `ref(false)` that only a `BbDialog` / `BbOffCanvas` `v-model` and `@click="x = true"` use. Fix: an `id` on the dialog and `v-bb-dialog` on the trigger (autofixed when nothing else uses the ref; silent when anything reads it).
1963
2279
  - `no-dialog-in-panel`: `v-bb-dialog` / `v-bb-off-canvas` opening a component (any value but a literal id) inside a `BbSelect` / `BbSelectPopover` / `BbDropdown` panel slot (`#empty`, `#footer`, a row slot…), which unmounts as the panel closes. Fix: `useBbDialog(Component)` / `useBbOffCanvas(Component)` in `<script setup>` and a plain `@click`.
@@ -1967,6 +2283,9 @@ Every rule in `recommended`, in one line each. The whole list with the long expl
1967
2283
  - `require-slot-key` (warn): a computed slot name (`#[column.key]`) on `BbTable` and the other per-key slot components, over keys the rule cannot see, not spelled through `slotKey`. Fix: `#[slotKey(column.key)]`, or ``#[`${slotKey(column.key)}:header`]``.
1968
2284
  - `items-provider-context` (error) and `items-provider-reason` (warn): a positional `items` provider, and a provider that compares `reason` with one cause. Fix: take the one context object `({ query, reason, modelValue, signal })`, and check `reason !== 'search'`.
1969
2285
  - `require-partner-prop`: an opt-in prop set without its required partner (`loading-text` without `loading`, `method` without `href`). Fix: add the partner.
2286
+ - `no-conflicting-props`: two props that replace each other set together (`BbSlider` `items` beside `step` / `min` / `max`). Fix: remove the one you did not mean.
2287
+ - `valid-locale` (warn): a locale whose `-u-` extension the build plugin drops or does not honour (`fa-u-ca-gregorian`). Fix: the spelling the message names.
2288
+ - `static-plugin-options` (warn, `vite.config.*` / `nuxt.config.*` only): a plugin option the CLI reads from the config as text (`ai`, `allowComponents`, `locale`, `enabledLocales`, `injectStyles`, `dts`, `components.<Component>.variants`, `nullValue`) written as a computed value, a variable or a spread; the CLI falls back (`ai` counts as on). Fix: write the value out; for `ai` on one machine, set `BITBOSS_UI_AI=0`.
1970
2289
 
1971
2290
  `bitboss-ui check` has one finding with no ESLint twin, `object-items-without-text`: object `items` with no `item-text` where an item has neither `label` nor `text`. Fix: give each item a `label`, or set `item-text`. Two hints (a hand-rolled avatar or spinner) are advisory in `check` only.
1972
2291
 
@@ -2011,11 +2330,11 @@ leave it alone with no configuration, as long as they can see it is yours:
2011
2330
  - [ ] if a reset is required: `resetCss: true` or `import 'bitboss-ui/reset.css'`;
2012
2331
  - [ ] Inertia apps: `@inertiajs/vue3` installed (no link registration needed; set `inertiaLinkName` only if you register your own link wrapper).
2013
2332
  - [ ] building the [Layout Scaffold](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/vue/layout-scaffold.md)? `npm i @vueuse/core` — `usePageShellContext.ts` imports `injectLocal`/`provideLocal` from it. This library depends on it too, so it can resolve via hoisting without being declared — don't rely on that; declare it in your own `package.json` or a strict installer (pnpm, Yarn PnP) will fail to resolve it.
2014
- - [ ] `vite.config.ts` (and any other build config, e.g. `eslint.config.js`) is inside your project's type-check scope — a `tsconfig.node.json` project reference is the conventional shape. Otherwise `bitbossUi(...)`'s typed options (`locale`, the `*Variants` registries, `iconDefaultSizes`, …) are never checked by `vue-tsc --noEmit`, silently defeating the compile-time guarantees this guide documents (e.g. "selecting a non-enabled locale is a compile error").
2333
+ - [ ] `vite.config.ts` (and any other build config, e.g. `eslint.config.js`) is inside your project's type-check scope — a `tsconfig.node.json` project reference is the conventional shape. Otherwise `bitbossUi(...)`'s typed options (`locale`, the `*Variants` registries, `components.BbIcon.sizeMap`, …) are never checked by `vue-tsc --noEmit`, silently defeating the compile-time guarantees this guide documents (e.g. "selecting a non-enabled locale is a compile error").
2015
2334
  - [ ] `vue-tsc` is **3.x** (`npx vue-tsc --version`). On 2.x the template type-checker cannot read props off the generic-function declarations this library emits for `BbSelect`, `BbSelectPopover`, `BbTable`, `BbTabs`, `BbTree`, `BbRadioGroup`, `BbCheckboxGroup`, `BbSwitchGroup` and `BbForm`, so their props go **entirely unchecked** — missing, misspelled and wrongly-typed props all pass — while unknown-component checking and every non-generic component keep erroring normally, which is exactly why a 2.x gate reads as healthy. See "Known-good toolchain" in [1) Install](#1-install). `npx bitboss-ui check` warns when `package.json` pins a `vue-tsc` below 3.
2016
- - [ ] `tsconfig.json` sets `"vueCompilerOptions": { "strictTemplates": true, "strictVModel": true, "dataAttributes": ["data-*"] }`. Without `strictTemplates` Vue Language Tools 3 lets an unknown ATTRIBUTE through on any component — a misspelt prop, a `pt:icno` — with no error; with it every `Bb*` template attribute is checked against the declared props (`pt:<part>` and `pt:<part>:<state>` included) and the attributes of the element it lands on (`aria-*`, `id`, `@click`… — an `<input>`-only attribute on a field's root still errors). `strictVModel`: a `v-model` ref must take every value the component emits. An emptied text field reports `null`, so type its ref `string | null`; a date, time, slider or dropzone model follows `range` / `multiple`; your own `defineModel<T>()` without a default emits `T | undefined`, so give it a default or widen the ref. `dataAttributes`: Vue's element types carry no `data-*`, not even on a plain `<div>`. The ESLint rule catches the same misspellings, but only where it runs. `npx bitboss-ui ai-init` prints this set as a suggestion and never writes it: turning it on can surface errors in your own templates to fix first.
2335
+ - [ ] `tsconfig.json` sets `"vueCompilerOptions": { "strictTemplates": true, "strictVModel": true, "dataAttributes": ["data-*"] }`. Without `strictTemplates` Vue Language Tools 3 lets an unknown ATTRIBUTE through on any component — a misspelt prop, a `pt:icno` — with no error; with it every `Bb*` template attribute is checked against the declared props (`pt:<part>` and `pt:<part>:<state>` included) and the attributes of the element it lands on (`aria-*`, `id`, `@click`… — an `<input>`-only attribute on a field's root still errors). `strictVModel`: a `v-model` ref must take every value the component emits. An emptied text field reports `null`, so type its ref `string | null`; a date, time, slider or dropzone model follows `range` / `multiple`; your own `defineModel<T>()` without a default emits `T | undefined`, so give it a default or widen the ref. `dataAttributes`: Vue's element types carry no `data-*`, not even on a plain `<div>`. The ESLint rule catches the same misspellings, but only where it runs. `setup` and `update` print this set as a suggestion and never write it: turning it on can surface errors in your own templates to fix first.
2017
2336
  - [ ] Loosening a child of a strict base `tsconfig`: `"strictTemplates": false` alone keeps the checks it turned on (they are inherited and only defaulted from it). Set `checkUnknownProps`, `checkUnknownEvents`, `checkUnknownDirectives` and `checkUnknownComponents` to `false` there too.
2018
- - [ ] An unimported `Bb*` tag is caught. A `<BbTabs>` used without its import renders as a silent, unregistered custom element: no error, just a missing widget. Nothing in `bitboss-ui`'s runtime plugin registers `Bb*` components globally (only the `v-bb-*` directives are global), so every tag must resolve through an import, Nuxt's `autoImport`, or your own registration. The main net is **`bitboss-ui/no-unimported-component`** (in `recommended`) and `bitboss-ui check` (`unimported-component`): they report a real library tag that neither the file imports nor the project registers (Nuxt's `.nuxt/components.d.ts`, an unplugin `components.d.ts`, `app.component('BbX', …)`). A typo is `unknown-component`'s, with a did-you-mean. **Recommended second net:** `"vueCompilerOptions": { "checkUnknownComponents": true }` (`npx bitboss-ui ai-init` writes it, in `tsconfig.app.json` when the project has one; Nuxt: `typescript.tsConfig.vueCompilerOptions` in `nuxt.config`), which makes `vue-tsc --noEmit` name the tag and line. The flag is project-wide, so it also reports your own untyped global components (an `app.component('Link', …)` with no `GlobalComponents` typing): type those through `GlobalComponents`, or leave the flag off.
2337
+ - [ ] An unimported `Bb*` tag is caught. A `<BbTabs>` used without its import renders as a silent, unregistered custom element: no error, just a missing widget. Nothing in `bitboss-ui`'s runtime plugin registers `Bb*` components globally (only the `v-bb-*` directives are global), so every tag must resolve through an import, Nuxt's `autoImport`, or your own registration. The main net is **`bitboss-ui/no-unimported-component`** (in `recommended`) and `bitboss-ui check` (`unimported-component`): they report a real library tag that neither the file imports nor the project registers (Nuxt's `.nuxt/components.d.ts`, an unplugin `components.d.ts`, `app.component('BbX', …)`). A typo is `unknown-component`'s, with a did-you-mean. **Recommended second net:** `"vueCompilerOptions": { "checkUnknownComponents": true }` (`setup` and `update` write it, in `tsconfig.app.json` when the project has one; Nuxt: `typescript.tsConfig.vueCompilerOptions` in `nuxt.config`), which makes `vue-tsc --noEmit` name the tag and line. The flag is project-wide, so it also reports your own untyped global components (an `app.component('Link', …)` with no `GlobalComponents` typing): type those through `GlobalComponents`, or leave the flag off.
2019
2338
 
2020
2339
  If one of the checks fails, fix setup before creating component examples.
2021
2340
 
@@ -2043,11 +2362,11 @@ this picker four times and hand-rolled an avatar twice while `BbAvatar` sat in
2043
2362
  the Data Display table below. So this section is indexed by **symptom**: match it
2044
2363
  against the markup you are about to write, not against a need.
2045
2364
 
2046
- | You are about to write | Stop — use |
2047
- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
2048
- | An `<img>` with an initials/icon fallback branch, `border-radius: 50%`, `object-fit: cover` | [BbAvatar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAvatar.md) — `src`/`alt`/size, initials slot, icon fallback, load-error handling |
2049
- | `@keyframes spin` / `animation: … spin` on an element that means "waiting" | [BbSpinner](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSpinner.md) — sized off the control scale, honours `prefers-reduced-motion` |
2050
- | A `<span>` pill with a tinted background standing for a status | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) with a registered `soft-*` variant (design-language § Getting soft semantic badges) |
2365
+ | You are about to write | Stop — use |
2366
+ | --- | --- |
2367
+ | An `<img>` with an initials/icon fallback branch, `border-radius: 50%`, `object-fit: cover` | [BbAvatar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAvatar.md) — `src`/`alt`/size, initials slot, icon fallback, load-error handling |
2368
+ | `@keyframes spin` / `animation: … spin` on an element that means "waiting" | [BbSpinner](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSpinner.md) — sized off the control scale, honours `prefers-reduced-motion` |
2369
+ | A `<span>` pill with a tinted background standing for a status | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) with a registered `soft-*` variant (design-language § Getting soft semantic badges) |
2051
2370
 
2052
2371
  **`BbAvatar` is circle-only.** Its `border-radius: 50%` is in the component's own
2053
2372
  CSS and no prop changes it, so a rounded-**square** avatar genuinely has no answer
@@ -2071,19 +2390,19 @@ over the app (report-only).
2071
2390
 
2072
2391
  ## Text Input
2073
2392
 
2074
- | Need | Component |
2075
- | --------------------------------------- | -------------------------------------------------------------------------------- |
2076
- | Single-line text | [BbTextInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTextInput.md) |
2077
- | Multi-line text | [BbTextarea](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTextarea.md) |
2078
- | Numeric value with clamping/stepping | [BbNumberInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbNumberInput.md) |
2079
- | Color value in a form | [BbColorInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbColorInput.md) |
2080
- | Calendar date or date range | [BbDatePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePickerInput.md) |
2081
- | An ISO week (a delivery week, a sprint) | [BbDatePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePickerInput.md) with `type="week"` |
2082
- | Month or year (a reporting period) | [BbDatePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePickerInput.md) with `type="month"` / `type="year"` |
2083
- | A calendar shown in place (no popover) | [BbCalendar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCalendar.md) — same `v-model` / `type` / `range` as the picker |
2084
- | Time or time range | [BbTimePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTimePickerInput.md) |
2085
- | Free-form tags / tokens typed by user | [BbTag](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTag.md) |
2086
- | File selection via drag-and-drop/picker | [BbDropzone](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropzone.md) |
2393
+ | Need | Component |
2394
+ | --- | --- |
2395
+ | Single-line text | [BbTextInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTextInput.md) |
2396
+ | Multi-line text | [BbTextarea](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTextarea.md) |
2397
+ | Numeric value with clamping/stepping | [BbNumberInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbNumberInput.md) |
2398
+ | Color value in a form | [BbColorInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbColorInput.md) |
2399
+ | Calendar date or date range | [BbDatePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePickerInput.md) |
2400
+ | An ISO week (a delivery week, a sprint) | [BbDatePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePickerInput.md) with `type="week"` |
2401
+ | Month or year (a reporting period) | [BbDatePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePickerInput.md) with `type="month"` / `type="year"` |
2402
+ | A calendar shown in place (no popover) | [BbCalendar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCalendar.md) — same `v-model` / `type` / `range` as the picker |
2403
+ | Time or time range | [BbTimePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTimePickerInput.md) |
2404
+ | Free-form tags / tokens typed by user | [BbTag](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTag.md) |
2405
+ | File selection via drag-and-drop/picker | [BbDropzone](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropzone.md) |
2087
2406
 
2088
2407
  - `BbTag` is for **open vocabularies** (skills, keywords, recipients the user invents). If values come from a known set, use `BbSelect` in multiple mode instead.
2089
2408
  - `BbDropzone` captures and validates files; it does **not** upload — pair it with your request layer plus `BbProgress`/`useToast`.
@@ -2092,15 +2411,15 @@ over the app (report-only).
2092
2411
 
2093
2412
  ## Selection from a List of Options
2094
2413
 
2095
- | Need | Component |
2096
- | --------------------------------------------------- | ---------------------------------------- |
2097
- | Dropdown search, single or multi-select | [BbSelect](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelect.md) |
2098
- | Picker on a custom trigger (no inline form input) | [BbSelectPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md) |
2099
- | Few exclusive options (radio semantics) | [BbRadioGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRadioGroup.md) |
2414
+ | Need | Component |
2415
+ | --- | --- |
2416
+ | Dropdown search, single or multi-select | [BbSelect](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelect.md) |
2417
+ | Picker on a custom trigger (no inline form input) | [BbSelectPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md) |
2418
+ | Few exclusive options (radio semantics) | [BbRadioGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRadioGroup.md) |
2100
2419
  | Multiple non-exclusive options (checkbox semantics) | [BbCheckboxGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCheckboxGroup.md) |
2101
- | Multiple options as on/off settings | [BbSwitchGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSwitchGroup.md) |
2102
- | Approximate value or range from a bounded interval | [BbSlider](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSlider.md) |
2103
- | Whole-number score out of N (stars, rating) | [BbRating](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRating.md) |
2420
+ | Multiple options as on/off settings | [BbSwitchGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSwitchGroup.md) |
2421
+ | Approximate value or range from a bounded interval | [BbSlider](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSlider.md) |
2422
+ | Whole-number score out of N (stars, rating) | [BbRating](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRating.md) |
2104
2423
 
2105
2424
  **Choosing between BbSelect, BbRadioGroup, BbCheckboxGroup, BbSwitchGroup:**
2106
2425
 
@@ -2117,11 +2436,11 @@ Never hand-assemble a row of `BbCheckbox`/`BbRadio` — the groups give you fiel
2117
2436
 
2118
2437
  ## Single Toggle
2119
2438
 
2120
- | Need | Component |
2121
- | ------------------------------------------------- | ------------------------------ |
2122
- | An answer or an agreement (accept terms, opt in) | [BbCheckbox](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCheckbox.md) |
2123
- | The on/off state of a thing (notifications, sync) | [BbSwitch](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSwitch.md) |
2124
- | One option interleaved with other markup | [BbRadio](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRadio.md) |
2439
+ | Need | Component |
2440
+ | --- | --- |
2441
+ | An answer or an agreement (accept terms, opt in) | [BbCheckbox](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCheckbox.md) |
2442
+ | The on/off state of a thing (notifications, sync) | [BbSwitch](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSwitch.md) |
2443
+ | One option interleaved with other markup | [BbRadio](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRadio.md) |
2125
2444
 
2126
2445
  **BbCheckbox vs BbSwitch — choose on what the control _means_, not on when it commits.** A switch is the on/off **state of a thing**: "Email notifications", "Anyone with the link can view", "Auto-renew". A checkbox is an **answer or a selection**: "I accept the terms", "Also send me a copy", a selected row.
2127
2446
 
@@ -2135,13 +2454,13 @@ A lone `BbRadio` is an escape hatch only — for a plain stacked group use `BbRa
2135
2454
 
2136
2455
  ## Buttons and Actions
2137
2456
 
2138
- | Need | Component |
2139
- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
2140
- | A single action (or link-shaped button) | [BbButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md) |
2141
- | A clickable/navigable surface that is not a variant button (card, row, tile, custom link) | [BbBaseButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md) |
2142
- | One dominant action + close alternates | [BbDropdownButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdownButton.md) |
2143
- | Menu of actions with no dominant one | [BbDropdown](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md) |
2144
- | Dangerous action requiring confirmation | [BbConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/BbConfirm.md) + [useConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useConfirm.md) |
2457
+ | Need | Component |
2458
+ | --- | --- |
2459
+ | A single action (or link-shaped button) | [BbButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md) |
2460
+ | A clickable/navigable surface that is not a variant button (card, row, tile, custom link) | [BbBaseButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md) |
2461
+ | One dominant action + close alternates | [BbDropdownButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdownButton.md) |
2462
+ | Menu of actions with no dominant one | [BbDropdown](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md) |
2463
+ | Dangerous action requiring confirmation | [BbConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/BbConfirm.md) + [useConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useConfirm.md) |
2145
2464
 
2146
2465
  **Choosing by intent:**
2147
2466
 
@@ -2155,15 +2474,15 @@ A lone `BbRadio` is an escape hatch only — for a plain stacked group use `BbRa
2155
2474
 
2156
2475
  ## Feedback and Status
2157
2476
 
2158
- | Need | Component |
2159
- | ----------------------------------- | ----------------------------------------------------------------- |
2160
- | Inline persistent status message | [BbAlert](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAlert.md) |
2161
- | Transient notification (toast) | [BbToast](https://llms-bitboss-ui.bitboss.it/dist/ai/BbToast.md) + [useToast](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useToast.md) |
2162
- | Passive status pill, count, or dot | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) |
2163
- | Removable token (filter, selection) | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) (with `clearable`) |
2164
- | Clickable pill / filter chip | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) + `BbBadgeButton` in its default slot |
2165
- | Determinate progress bar | [BbProgress](https://llms-bitboss-ui.bitboss.it/dist/ai/BbProgress.md) |
2166
- | Indeterminate loading spinner | [BbSpinner](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSpinner.md) |
2477
+ | Need | Component |
2478
+ | --- | --- |
2479
+ | Inline persistent status message | [BbAlert](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAlert.md) |
2480
+ | Transient notification (toast) | [BbToast](https://llms-bitboss-ui.bitboss.it/dist/ai/BbToast.md) + [useToast](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useToast.md) |
2481
+ | Passive status pill, count, or dot | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) |
2482
+ | Removable token (filter, selection) | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) (with `clearable`) |
2483
+ | Clickable pill / filter chip | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) + `BbBadgeButton` in its default slot |
2484
+ | Determinate progress bar | [BbProgress](https://llms-bitboss-ui.bitboss.it/dist/ai/BbProgress.md) |
2485
+ | Indeterminate loading spinner | [BbSpinner](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSpinner.md) |
2167
2486
 
2168
2487
  **BbAlert vs BbToast:** `BbToast` for _what just happened_ (saved, copied, uploaded — transient, floating, self-dismissing, fired via `useToast`); `BbAlert` for _the current state of the page_ (form error summary, quota banner — in normal document flow, stays until read or dismissed).
2169
2488
 
@@ -2179,19 +2498,19 @@ A lone `BbRadio` is an escape hatch only — for a plain stacked group use `BbRa
2179
2498
 
2180
2499
  ## Overlays
2181
2500
 
2182
- | Need | Component |
2183
- | ------------------------------------------------------ | --------------------------------------------------------------------------- |
2184
- | Modal dialog (one focused task) | [BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md) |
2185
- | Side panel / drawer | [BbOffCanvas](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md) |
2186
- | Yes/No confirmation dialog | [BbConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/BbConfirm.md) |
2187
- | Anchored floating interactive content | [BbPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbPopover.md) |
2501
+ | Need | Component |
2502
+ | --- | --- |
2503
+ | Modal dialog (one focused task) | [BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md) |
2504
+ | Side panel / drawer | [BbOffCanvas](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md) |
2505
+ | Yes/No confirmation dialog | [BbConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/BbConfirm.md) |
2506
+ | Anchored floating interactive content | [BbPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbPopover.md) |
2188
2507
  | The same panel on many triggers (a form per table row) | `v-bb-popover` + [BbPopoverPortal](https://llms-bitboss-ui.bitboss.it/dist/ai/BbPopover.md) — dormant until clicked |
2189
- | Hover/focus label | [BbTooltip](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTooltip.md) |
2190
- | Hover/focus preview of a link (person, event, record) | [BbHoverCard](https://llms-bitboss-ui.bitboss.it/dist/ai/BbHoverCard.md) |
2191
- | Color picker on a trigger you own | [BbColorPalette](https://llms-bitboss-ui.bitboss.it/dist/ai/BbColorPalette.md) |
2192
- | Date/calendar picker on a trigger you own | [BbDatePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePicker.md) |
2193
- | Month/year picker on a trigger you own | [BbDatePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePicker.md) with `type="month"` / `type="year"` |
2194
- | Time picker on a trigger you own | [BbTimePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTimePicker.md) |
2508
+ | Hover/focus label | [BbTooltip](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTooltip.md) |
2509
+ | Hover/focus preview of a link (person, event, record) | [BbHoverCard](https://llms-bitboss-ui.bitboss.it/dist/ai/BbHoverCard.md) |
2510
+ | Color picker on a trigger you own | [BbColorPalette](https://llms-bitboss-ui.bitboss.it/dist/ai/BbColorPalette.md) |
2511
+ | Date/calendar picker on a trigger you own | [BbDatePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePicker.md) |
2512
+ | Month/year picker on a trigger you own | [BbDatePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePicker.md) with `type="month"` / `type="year"` |
2513
+ | Time picker on a trigger you own | [BbTimePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTimePicker.md) |
2195
2514
 
2196
2515
  **BbDialog vs BbOffCanvas:** `BbDialog` for one focused task the user must finish (a form, a blocking announcement) — centred, takes focus. `BbOffCanvas` for supplementary content beside the main task (filters, settings, a record's detail that needs more room than a narrow column). A record opened from a list row goes in PageShell's peek sidebar ([Page Shell](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/page-shell.md)) when its detail fits about 300px: it does not cover the page, and moving between records stays smooth. Open a `BbOffCanvas` from the row only for a wide form, a table or a long editor. They share the same API (v-model, `title`, `header`/`default`/`footer` slots, `size`, `persistent`), so moving between them is mostly a tag swap. Neither needs a `v-model` just to open: give it an `id` and open it with `v-bb-dialog="'edit'"` / `v-bb-off-canvas="'filters'"` on the button, or `useBbDialog('edit')` / `useBbOffCanvas('filters')` in code. A dialog in its own file whose state must start fresh, or one opened with a row's data, opens on demand instead: `useBbDialog(EditMember).show(member)` mounts a fresh instance per opening ([BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md) § Which one?). The lookup starts in the component that writes the trigger and the components it renders (so a dialog wrapped in its own component is found), then goes up through its parents. A plain yes/no is `BbConfirm`, not a hand-built dialog.
2197
2516
 
@@ -2209,15 +2528,15 @@ There are also **`v-bb-color`**, **`v-bb-date`**, and **`v-bb-time`** directives
2209
2528
 
2210
2529
  ## Navigation
2211
2530
 
2212
- | Need | Component |
2213
- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2214
- | Peer views of the same screen (tabs) | [BbTabs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTabs.md) |
2215
- | Settings / section side nav | [BbTabs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTabs.md) `direction="vertical"` `variant="none"` + tokens via `pt` ([§ Your own look starts from `none`](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTabs.md#your-own-look-starts-from-none)) |
2216
- | Collapsible section (accordion style) | [BbAccordion](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAccordion.md) |
2217
- | Togglable region, custom trigger | [BbCollapsible](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCollapsible.md) |
2218
- | Breadcrumb path (where am I) | [BbBreadcrumbs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBreadcrumbs.md) |
2219
- | Pagination controls | [BbPagination](https://llms-bitboss-ui.bitboss.it/dist/ai/BbPagination.md) |
2220
- | Hierarchical tree | [BbTree](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTree.md) |
2531
+ | Need | Component |
2532
+ | --- | --- |
2533
+ | Peer views of the same screen (tabs) | [BbTabs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTabs.md) |
2534
+ | Settings / section side nav | [BbTabs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTabs.md) `direction="vertical"` `variant="none"` + tokens via `pt` ([§ Your own look starts from `none`](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTabs.md#your-own-look-starts-from-none)) |
2535
+ | Collapsible section (accordion style) | [BbAccordion](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAccordion.md) |
2536
+ | Togglable region, custom trigger | [BbCollapsible](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCollapsible.md) |
2537
+ | Breadcrumb path (where am I) | [BbBreadcrumbs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBreadcrumbs.md) |
2538
+ | Pagination controls | [BbPagination](https://llms-bitboss-ui.bitboss.it/dist/ai/BbPagination.md) |
2539
+ | Hierarchical tree | [BbTree](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTree.md) |
2221
2540
 
2222
2541
  **Offload navigation to the component.** `BbButton`, dropdown items, and breadcrumb items accept `href` (anchor, or Inertia visit with `method`/`data`/`preserveScroll`/…) and `to` (vue-router); tabs items with `href` (Inertia) or `to` (vue-router) make the strip a nav of links, one page per tab, the current one by `model-value`; `BbPagination` with `navigation` builds per-page links itself. Never wire `@click="router.push(...)"` for a plain destination.
2223
2542
 
@@ -2233,12 +2552,12 @@ There are also **`v-bb-color`**, **`v-bb-date`**, and **`v-bb-time`** directives
2233
2552
 
2234
2553
  ## Data Display
2235
2554
 
2236
- | Need | Component |
2237
- | ----------------------------- | -------------------------- |
2238
- | Rows of records with columns | [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) |
2239
- | Hierarchical expandable nodes | [BbTree](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTree.md) |
2240
- | User or entity avatar | [BbAvatar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAvatar.md) |
2241
- | Standalone SVG icon | [BbIcon](https://llms-bitboss-ui.bitboss.it/dist/ai/BbIcon.md) |
2555
+ | Need | Component |
2556
+ | --- | --- |
2557
+ | Rows of records with columns | [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) |
2558
+ | Hierarchical expandable nodes | [BbTree](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTree.md) |
2559
+ | User or entity avatar | [BbAvatar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAvatar.md) |
2560
+ | Standalone SVG icon | [BbIcon](https://llms-bitboss-ui.bitboss.it/dist/ai/BbIcon.md) |
2242
2561
 
2243
2562
  **BbTable vs BbTree:** flat rows with one level of detail → `BbTable` with its `#expand` slot; genuinely recursive data of unbounded depth (file browser, nested categories) → `BbTree`. For a select-a-value list in a form, use the Selection components — not a selectable table.
2244
2563
 
@@ -2252,8 +2571,8 @@ Prefer icon **props** (`icon`, `prepend:icon`, item `icon`) on components over s
2252
2571
 
2253
2572
  ## Layout and Utility
2254
2573
 
2255
- | Need | Component |
2256
- | -------------------------- | -------------------------------------- |
2574
+ | Need | Component |
2575
+ | --- | --- |
2257
2576
  | Animated height transition | [BbSmoothHeight](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSmoothHeight.md) |
2258
2577
 
2259
2578
  ---
@@ -2268,35 +2587,35 @@ a composable you want is not in this corpus's `composables/` folder — it is no
2268
2587
  here.** Check this list before inventing a name; if the need is genuinely absent,
2269
2588
  compose it or write it yourself.
2270
2589
 
2271
- | Assumed component or composable | Reality |
2272
- | ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2273
- | `BbColumnManager` — show/hide/reorder columns | Does not exist as a component. Order is `v-model:order` on `BbTable` (an array of keys any panel can write; `reorderable` adds the built-in header drag + keyboard handle); visibility is `hidden: true` on the column definition (the column stays declared and keeps its slot in the order; header slots get a `hideColumn()` that fires `hide:column`). Compose the panel from `BbPopover` + `BbCheckbox`. |
2274
- | `BbKanban` / drag-and-drop board | Does not exist. There is no reusable DnD primitive in the library (`BbTable`'s header drag and row drag are internal to the table) — compose the board from `BbTable` (a table/list view of the same data) or hand-roll the drag-and-drop interaction yourself. |
2275
- | `BbSortableList` / drag rows to reorder | [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) with `reorderable-rows`: a drag handle per row (mouse, pen, touch, keyboard), and `reorder:rows` reports `{ item, from, to }` — the table never reorders `items`, your handler splices it. A list without columns is a one-column table. |
2276
- | `BbModal` | It is [BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md). |
2277
- | `useOverlay` / `DialogService` / `createDiscreteApi` / open a dialog component from code and await its result | It is [useBbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useBbDialog.md): pass the component (`useBbDialog<In, Out>(UserCreateDialog).show(data)`) and it mounts in `<BbHost />` and resolves with the result; `v-bb-dialog` is the template twin. A yes / no question is [useConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useConfirm.md), a notice is [useToast](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useToast.md); all three render in the `<BbHost />` the plugin renders, nothing to mount. |
2278
- | `useDisplay` / `useBreakpoints` / breakpoint flags | [useMobile](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useMobile.md) gives `isMobile`, on the same breakpoint the adaptive components use. For other widths use `useBreakpoints` from `@vueuse/core` (already a bitboss-ui dependency). |
2279
- | `useFormat*` / number, date or currency formatter composables | Do not exist. Use `Intl.NumberFormat` / `Intl.DateTimeFormat` with the app's locale. |
2280
- | `BbDrawer` / `BbSheet` | It is [BbOffCanvas](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md). |
2281
- | `BbCombobox` / `BbAutocomplete` | It is [BbSelect](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelect.md) / [BbSelectPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md) — search is built in, see `disable-writing`. |
2282
- | `BbToggle` / `BbToggleGroup` | It is [BbButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md) with `v-model` (+ `true-value` / `false-value`), which owns `aria-pressed` and the active class. A group is several buttons: a boolean per button for independent toggles, one shared `v-model` with `:false-value="null"` for an optional choice, `group` to fuse them ([BbButton § Toggle buttons](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md#toggle-buttons)); exactly one always active is a `BbRadioGroup` `variant="pill"` or `BbTabs`. |
2283
- | `TagChip` / colored, read-only tag chip | It is [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) — [BbTag](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTag.md) is a tags-_input_ only, not a display component. Use `BbBadge` with a registered `soft-*` variant for a fixed palette, or a one-off `--bg`/`--fg` override per row for arbitrary/data-driven colors (BbBadge.md § One-off colors) — not a registered variant per distinct color. |
2284
- | `BbTab` (singular) | The consumer API is [BbTabs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTabs.md) / `BbTabsRoot`. `BbTab` appears only as the **v2 "before" side** of the migration diffs. |
2285
- | `BbCard` | Does not exist — a card is a `<div>` with tokens. See [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md). |
2286
- | `BbList` / `BbListItem` / `BbDescriptionList` | Do not exist — a list row is an `<li>` with tokens, and [BbBaseButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md) makes the whole row navigable. See the note under Data Display. |
2287
- | `useLiveFeed` / any polling or cross-tab feed helper | Does not exist, and neither does a cross-tab helper — `useBroadcastChannelInstance` was removed (cross-tab messaging is not a UI concern). Use `useBroadcastChannel` from `@vueuse/core`; the polling and the merge are yours. |
2288
- | `BbStepper` / `BbWizard` | Does not exist as a component; the wizard-form recipe under `recipes/<platform>/wizard-form.md` ([Vue](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/vue/wizard-form.md) · [Nuxt](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/nuxt/wizard-form.md) · [Inertia](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/inertia/wizard-form.md)) composes one. |
2289
- | `BbSkeleton` (standalone) | Only `BbTable` ships skeletons, via the column `skeleton` field. |
2290
- | `BbWorkspaceSwitcher` / `BbTeamSwitcher` / `BbAccountSwitcher` / org, tenant or project switcher | Does not exist as a component — it is a [BbDropdown](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md) pattern: a row for the current record whose submenu is a `selectable` (single), `searchable`, fetched group bound to the current id with `<BbDropdownGroup v-model>`. Carry each record to the slots with `meta` (`itemProps: (w) => ({ meta: w })`) and draw it with `#<groupId>:item:prepend`, so the other rows keep their icons. See BbDropdown.md § Rows that stand for records. |
2291
- | `BbCommand` / command palette | Does not exist. Compose `BbDialog` + `BbSelectPopover` — do not hand-roll the search: [BbSelectPopover § A ⌘K command palette](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md#a-k-command-palette) is the worked example (⌘K / Ctrl+K, grouped server results, debouncing and race protection from the popover, navigation per platform). |
2292
- | `BbSeatMap` / `BbSeatPicker` / `BbSeatGrid` / a seat map, desk or parking-bay picker | Does not exist, on purpose (a niche need), and there is no recipe for it. Build it in your app as a WAI-ARIA grid with one tab stop (roving `tabindex`, arrow keys move between positions) styled with the library tokens; do not give every seat its own tab stop. |
2293
- | `BbCalendar` as a scheduling / events view | [BbCalendar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCalendar.md) is the picker's calendar rendered in place — a value control (day, range, set, week, month, year, datetime), not an events grid. Put per-day content in its `#day` / `#day:append` slots; an agenda or booking board is your own layout around it. |
2294
- | `BbDataTable` / `BbDataGrid` / data grid | It is [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) — sorting, selection, column order/resize, virtual scrolling and inline edit all live there. |
2295
- | `filter` / `filter-method` prop on BbTable, column filters | No `filter` prop, and its absence is not a missing feature. A filter is an input to the FETCH: put your filter state in `dependencies` and the provider refetches (debounced, value-hashed, races discarded). Per-column filter UI goes in `#<key>:header:append`, which keeps the built-in sort button. A whole filtered listing is the records-workspace recipe. Client-side over a plain array, use a computed: `:items="filteredItems"`. See [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) § Filtering. |
2296
- | `BbSnackbar` / `BbNotification` / flash message | It is [BbToast](https://llms-bitboss-ui.bitboss.it/dist/ai/BbToast.md), raised through the `useToast` composable. |
2297
- | `BbRichTextEditor` / `BbEditor` / WYSIWYG | Does not exist, and no rich-text or markdown editor ships here. [BbTextarea](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTextarea.md) is plain text only; bring your own editor — [Tiptap](https://tiptap.dev/docs/editor/getting-started/install/vue3) (`@tiptap/vue-3`) is the usual pick for Vue 3. |
2298
- | `BbEmptyState` / `BbPlaceholder` / no-results panel | Does not exist as a component. [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) has a `#empty` slot; elsewhere an empty state is your own markup with tokens. |
2299
- | `BbChart` / `BbGraph`, `BbCarousel`, `BbTimeline`, `BbDivider` | Do not exist. No charting, carousel or timeline primitive ships here. |
2590
+ | Assumed component or composable | Reality |
2591
+ | --- | --- |
2592
+ | `BbColumnManager` — show/hide/reorder columns | Does not exist as a component. Order is `v-model:order` on `BbTable` (an array of keys any panel can write; `reorderable` adds the built-in header drag + keyboard handle); visibility is `hidden: true` on the column definition (the column stays declared and keeps its slot in the order; header slots get a `hideColumn()` that fires `hide:column`). Compose the panel from `BbPopover` + `BbCheckbox`. |
2593
+ | `BbKanban` / drag-and-drop board | Does not exist. There is no reusable DnD primitive in the library (`BbTable`'s header drag and row drag are internal to the table) — compose the board from `BbTable` (a table/list view of the same data) or hand-roll the drag-and-drop interaction yourself. |
2594
+ | `BbSortableList` / drag rows to reorder | [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) with `reorderable-rows`: a drag handle per row (mouse, pen, touch, keyboard), and `reorder:rows` reports `{ item, from, to }` — the table never reorders `items`, your handler splices it. A list without columns is a one-column table. |
2595
+ | `BbModal` | It is [BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md). |
2596
+ | `useOverlay` / `DialogService` / `createDiscreteApi` / open a dialog component from code and await its result | It is [useBbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useBbDialog.md): pass the component (`useBbDialog<In, Out>(UserCreateDialog).show(data)`) and it mounts in `<BbHost />` and resolves with the result; `v-bb-dialog` is the template twin. A yes / no question is [useConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useConfirm.md), a notice is [useToast](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useToast.md); all three render in the `<BbHost />` the plugin renders, nothing to mount. |
2597
+ | `useDisplay` / `useBreakpoints` / breakpoint flags | [useMobile](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useMobile.md) gives `isMobile`, on the same breakpoint the adaptive components use. For other widths use `useBreakpoints` from `@vueuse/core` (already a bitboss-ui dependency). |
2598
+ | `useFormat*` / number, date or currency formatter composables | Do not exist. Use `Intl.NumberFormat` / `Intl.DateTimeFormat` with the app's locale. |
2599
+ | `BbDrawer` / `BbSheet` | It is [BbOffCanvas](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md). |
2600
+ | `BbCombobox` / `BbAutocomplete` | It is [BbSelect](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelect.md) / [BbSelectPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md) — search is built in, see `disable-writing`. |
2601
+ | `BbToggle` / `BbToggleGroup` | It is [BbButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md) with `v-model` (+ `true-value` / `false-value`), which owns `aria-pressed` and the active class. A group is several buttons: a boolean per button for independent toggles, one shared `v-model` with `:false-value="null"` for an optional choice, `group` to fuse them ([BbButton § Toggle buttons](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md#toggle-buttons)); exactly one always active is a `BbRadioGroup` `variant="pill"` or `BbTabs`. |
2602
+ | `TagChip` / colored, read-only tag chip | It is [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) — [BbTag](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTag.md) is a tags-_input_ only, not a display component. Use `BbBadge` with a registered `soft-*` variant for a fixed palette, or a one-off `--bg`/`--fg` override per row for arbitrary/data-driven colors (BbBadge.md § One-off colors) — not a registered variant per distinct color. |
2603
+ | `BbTab` (singular) | The consumer API is [BbTabs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTabs.md) / `BbTabsRoot`. `BbTab` appears only as the **v2 "before" side** of the migration diffs. |
2604
+ | `BbCard` | Does not exist — a card is a `<div>` with tokens. See [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md). |
2605
+ | `BbList` / `BbListItem` / `BbDescriptionList` | Do not exist — a list row is an `<li>` with tokens, and [BbBaseButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md) makes the whole row navigable. See the note under Data Display. |
2606
+ | `useLiveFeed` / any polling or cross-tab feed helper | Does not exist, and neither does a cross-tab helper — `useBroadcastChannelInstance` was removed (cross-tab messaging is not a UI concern). Use `useBroadcastChannel` from `@vueuse/core`; the polling and the merge are yours. |
2607
+ | `BbStepper` / `BbWizard` | Does not exist as a component; the wizard-form recipe under `recipes/<platform>/wizard-form.md` ([Vue](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/vue/wizard-form.md) · [Nuxt](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/nuxt/wizard-form.md) · [Inertia](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/inertia/wizard-form.md)) composes one. |
2608
+ | `BbSkeleton` (standalone) | Only `BbTable` ships skeletons, via the column `skeleton` field. |
2609
+ | `BbWorkspaceSwitcher` / `BbTeamSwitcher` / `BbAccountSwitcher` / org, tenant or project switcher | Does not exist as a component — it is a [BbDropdown](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md) pattern: a row for the current record whose submenu is a `selectable` (single), `searchable`, fetched group bound to the current id with `<BbDropdownGroup v-model>`. Carry each record to the slots with `meta` (`itemProps: (w) => ({ meta: w })`) and draw it with `#<groupId>:item:prepend`, so the other rows keep their icons. See BbDropdown.md § Rows that stand for records. |
2610
+ | `BbCommand` / command palette | Does not exist. Compose `BbDialog` + `BbSelectPopover` — do not hand-roll the search: [BbSelectPopover § A ⌘K command palette](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md#a-k-command-palette) is the worked example (⌘K / Ctrl+K, grouped server results, debouncing and race protection from the popover, navigation per platform). |
2611
+ | `BbSeatMap` / `BbSeatPicker` / `BbSeatGrid` / a seat map, desk or parking-bay picker | Does not exist, on purpose (a niche need), and there is no recipe for it. Build it in your app as a WAI-ARIA grid with one tab stop (roving `tabindex`, arrow keys move between positions) styled with the library tokens; do not give every seat its own tab stop. |
2612
+ | `BbCalendar` as a scheduling / events view | [BbCalendar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCalendar.md) is the picker's calendar rendered in place — a value control (day, range, set, week, month, year, datetime), not an events grid. Put per-day content in its `#day` / `#day:append` slots; an agenda or booking board is your own layout around it. |
2613
+ | `BbDataTable` / `BbDataGrid` / data grid | It is [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) — sorting, selection, column order/resize, virtual scrolling and inline edit all live there. |
2614
+ | `filter` / `filter-method` prop on BbTable, column filters | No `filter` prop, and its absence is not a missing feature. A filter is an input to the FETCH: put your filter state in `dependencies` and the provider refetches (debounced, value-hashed, races discarded). Per-column filter UI goes in `#<key>:header:append`, which keeps the built-in sort button. A whole filtered listing is the records-workspace recipe. Client-side over a plain array, use a computed: `:items="filteredItems"`. See [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) § Filtering. |
2615
+ | `BbSnackbar` / `BbNotification` / flash message | It is [BbToast](https://llms-bitboss-ui.bitboss.it/dist/ai/BbToast.md), raised through the `useToast` composable. |
2616
+ | `BbRichTextEditor` / `BbEditor` / WYSIWYG | Does not exist, and no rich-text or markdown editor ships here. [BbTextarea](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTextarea.md) is plain text only; bring your own editor — [Tiptap](https://tiptap.dev/docs/editor/getting-started/install/vue3) (`@tiptap/vue-3`) is the usual pick for Vue 3. |
2617
+ | `BbEmptyState` / `BbPlaceholder` / no-results panel | Does not exist as a component. [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) has a `#empty` slot; elsewhere an empty state is your own markup with tokens. |
2618
+ | `BbChart` / `BbGraph`, `BbTimeline`, `BbDivider` | Do not exist. No charting or timeline primitive ships here. |
2300
2619
 
2301
2620
  App chrome — an app shell, sidebar, page header, selection dock — is
2302
2621
  deliberately **not** a component: it is yours to own. The Layout Scaffold
@@ -2341,12 +2660,12 @@ components or choose component variants.
2341
2660
  only the first two rows of this ladder come with a stability promise
2342
2661
  (a part's class is as stable as the part):
2343
2662
 
2344
- | Target | Status |
2345
- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2346
- | tokens (`--bb-*`, and a component's own `--*` set on the node that declares them), variants, props, `pt` parts and states | **supported** — covered by semver, typed and linted |
2347
- | a component's root class, each `pt` part's class and its state modifiers (`.bb-table`, `.bb-table__row`, `.bb-table__row--highlighted`), documented modifiers (`.bb-button--destructive`, `.bb-field-input--secondary`); the four public `BbBase*` classes — `.bb-base-button` and the glyphs `.bb-base-checkbox-icon` / `.bb-base-radio-icon` / `.bb-base-switch-icon` with their `--*` state modifiers | **stable** — consumer API within 3.x: renamed only with a changelog entry (`npx bitboss-ui changelog`) and a migration-guide line ([CSS classes follow the `pt` parts](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v3-beta-css-classes.md)) |
2348
- | every other `bb-` class: an element no part names, an undocumented modifier | **internal** — allowed for fine-tuning, may change in any release without notice; you own the override |
2349
- | the reference-only families: `.bb-common-*`, `.bb-field*` / `.bb-field-input*`, listbox internals | **allowed, expect it to break** — the CSS twin of the `Common*` import boundary; they get restructured wholesale, not renamed one class at a time |
2663
+ | Target | Status |
2664
+ | --- | --- |
2665
+ | tokens (`--bb-*`, and a component's own `--*` set on the node that declares them), variants, props, `pt` parts and states | **supported** — covered by semver, typed and linted |
2666
+ | a component's root class, each `pt` part's class and its state modifiers (`.bb-table`, `.bb-table__row`, `.bb-table__row--highlighted`), documented modifiers (`.bb-button--destructive`, `.bb-field-input--secondary`); the four public `BbBase*` classes — `.bb-base-button` and the glyphs `.bb-base-checkbox-icon` / `.bb-base-radio-icon` / `.bb-base-switch-icon` with their `--*` state modifiers | **stable** — consumer API within 3.x: renamed only with a changelog entry (`npx bitboss-ui changelog`) and a migration-guide line ([CSS classes follow the `pt` parts](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v3-beta-css-classes.md)) |
2667
+ | every other `bb-` class: an element no part names, an undocumented modifier | **internal** — allowed for fine-tuning, may change in any release without notice; you own the override |
2668
+ | the reference-only families: `.bb-common-*`, `.bb-field*` / `.bb-field-input*`, listbox internals | **allowed, expect it to break** — the CSS twin of the `Common*` import boundary; they get restructured wholesale, not renamed one class at a time |
2350
2669
 
2351
2670
  Prefer, in order: **variant → token → `pt` → CSS override**. When an
2352
2671
  override is the right call, keep it findable and upgrade-safe: one project
@@ -2396,7 +2715,7 @@ earlier one has no obvious knob — check the lane first.
2396
2715
  ```
2397
2716
 
2398
2717
  ```vue
2399
- <BbTree style="--indent: 14px" />
2718
+ <BbTree :items="nodes" item-value="id" style="--indent: 14px" />
2400
2719
  ```
2401
2720
 
2402
2721
  ⚠ **silent** — a component made of several elements declares some tokens on
@@ -2455,47 +2774,47 @@ one renders with no value at all rather than erroring.
2455
2774
 
2456
2775
  ### Surfaces & structure
2457
2776
 
2458
- | Token | Meaning |
2459
- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2460
- | `--bb-panel` | Surface/background color of panels, popovers, dialogs |
2461
- | `--bb-muted` | Subtle/disabled surface (derived, neutral) |
2462
- | `--bb-hover` | Hover fill for **affordances** (buttons, links, controls) |
2463
- | `--bb-surface-hover` | Hover fill for **passive surfaces** (rows, cells, days) — fainter |
2464
- | `--bb-pressed` | Neutral pressed/active fill |
2465
- | `--bb-border` | Border color; pair with `--bb-border-w` (1px) |
2466
- | `--bb-field-border` | Resting border of every form field (the default input box and the group / rating / slider shells); follows `--bb-border` until set |
2467
- | `--bb-border-w` | Hairline thickness — plates **and** internal dividers (dialog/off-canvas footers, menu rules, popover headers) |
2468
- | `--bb-border-w-sm` | Nested / small hairline (xs/sm buttons, badges, glyphs) — half of `--bb-border-w`, floored at 1px and capped by it |
2469
- | `--bb-radius` | Corner radius of controls (8px) |
2470
- | `--bb-radius-surface` | Corner radius of large surfaces (derived, ×1.8) |
2471
- | `--bb-radius-sm` | Corner radius of small nested elements (derived) |
2472
- | `--bb-shadow` | Overlay elevation (dialogs, popovers, menus, toasts) |
2473
- | `--bb-elev` | Resting lift on controls — a full `box-shadow`, default a transparent layer. Covers a soft lift and a hard offset alike |
2474
- | `--bb-elev-sm` | The same lift on small chrome (badges, glyphs, xs/sm buttons); inherits `--bb-elev` unless a hard-offset theme splits it |
2475
- | `--bb-panel-p` | Content padding of large surfaces (dialog, off-canvas); axis split via the locals `--px`/`--py` on `.bb-dialog` / `.bb-offcanvas` |
2476
- | `--bb-overlay-blur` | Backdrop dim blur (2px) — on the bottom-most open panel's backdrop only |
2477
- | `--bb-overlay-above` | Dim painted by a panel stacked over another open one (derived, equal to `--bb-overlay`; `transparent` = one dim under the pile); none on a dialog replacing a member of its own `stack` |
2478
- | `--bb-surface-filter` | Frost on raised plates — dialog, off-canvas, popover bubble, toast, input shell, alert, table. A full `backdrop-filter` value, default `none` |
2479
- | `--bb-z-overlay` | Z-index for overlays (10) |
2777
+ | Token | Meaning |
2778
+ | --- | --- |
2779
+ | `--bb-panel` | Surface/background color of panels, popovers, dialogs |
2780
+ | `--bb-muted` | Subtle/disabled surface (derived, neutral) |
2781
+ | `--bb-hover` | Hover fill for **affordances** (buttons, links, controls) |
2782
+ | `--bb-surface-hover` | Hover fill for **passive surfaces** (rows, cells, days) — fainter |
2783
+ | `--bb-pressed` | Neutral pressed/active fill |
2784
+ | `--bb-border` | Border color; pair with `--bb-border-w` (1px) |
2785
+ | `--bb-field-border` | Resting border of every form field (the default input box and the group / rating / slider shells); follows `--bb-border` until set |
2786
+ | `--bb-border-w` | Hairline thickness — plates **and** internal dividers (dialog/off-canvas footers, menu rules, popover headers) |
2787
+ | `--bb-border-w-sm` | Nested / small hairline (xs/sm buttons, badges, glyphs) — half of `--bb-border-w`, floored at 1px and capped by it |
2788
+ | `--bb-radius` | Corner radius of controls (8px) |
2789
+ | `--bb-radius-surface` | Corner radius of large surfaces (derived, ×1.8) |
2790
+ | `--bb-radius-sm` | Corner radius of small nested elements (derived) |
2791
+ | `--bb-shadow` | Overlay elevation (dialogs, popovers, menus, toasts) |
2792
+ | `--bb-elev` | Resting lift on controls — a full `box-shadow`, default a transparent layer. Covers a soft lift and a hard offset alike |
2793
+ | `--bb-elev-sm` | The same lift on small chrome (badges, glyphs, xs/sm buttons); inherits `--bb-elev` unless a hard-offset theme splits it |
2794
+ | `--bb-panel-p` | Content padding of large surfaces (dialog, off-canvas); axis split via the locals `--px`/`--py` on `.bb-dialog` / `.bb-offcanvas` |
2795
+ | `--bb-overlay-blur` | Backdrop dim blur (2px) — on the bottom-most open panel's backdrop only |
2796
+ | `--bb-overlay-above` | Dim painted by a panel stacked over another open one (derived, equal to `--bb-overlay`; `transparent` = one dim under the pile); none on a dialog replacing a member of its own `stack` |
2797
+ | `--bb-surface-filter` | Frost on raised plates — dialog, off-canvas, popover bubble, toast, input shell, alert, table. A full `backdrop-filter` value, default `none` |
2798
+ | `--bb-z-overlay` | Z-index for overlays (10) |
2480
2799
 
2481
2800
  ### Color semantics
2482
2801
 
2483
- | Token | Meaning |
2484
- | --------------------- | ------------------------------------------------------------------- |
2485
- | `--bb-primary` | Brand/primary accent (black in light, white in dark by default) |
2486
- | `--bb-primary-fg` | Foreground on primary surfaces |
2487
- | `--bb-primary-border` | Outline of a primary plate — tracks primary until pinned |
2488
- | `--bb-link-fg` | Link-style button text — tracks primary until pinned |
2489
- | `--bb-danger` | Errors and destructive intent |
2490
- | `--bb-warn` | Warning **chrome/icons** (`hasWarnings`) — warm, ranks below danger |
2491
- | `--bb-text-warn` | Warning **message text** — deeper amber (knob, not derived) |
2492
- | `--bb-text` | Global text color |
2493
- | `--bb-text-muted` | Secondary text, hints, placeholders, icons (derived) |
2494
- | `--bb-text-faint` | Disabled foregrounds (derived) |
2495
- | `--bb-ring` | Focus ring color (derived from primary) |
2496
- | `--bb-ring-danger` | Focus ring in error states (derived from danger) |
2497
- | `--bb-ring-warn` | Focus ring in the warning input state (derived from `--bb-warn`) |
2498
- | `--bb-ring-neutral` | Focus ring of the neutral variants (derived from `--bb-text`) |
2802
+ | Token | Meaning |
2803
+ | --- | --- |
2804
+ | `--bb-primary` | Brand/primary accent (black in light, white in dark by default) |
2805
+ | `--bb-primary-fg` | Foreground on primary surfaces |
2806
+ | `--bb-primary-border` | Outline of a primary plate — tracks primary until pinned |
2807
+ | `--bb-link-fg` | Link-style button text — tracks primary until pinned |
2808
+ | `--bb-danger` | Errors and destructive intent |
2809
+ | `--bb-warn` | Warning **chrome/icons** (`hasWarnings`) — warm, ranks below danger |
2810
+ | `--bb-text-warn` | Warning **message text** — deeper amber (knob, not derived) |
2811
+ | `--bb-text` | Global text color |
2812
+ | `--bb-text-muted` | Secondary text, hints, placeholders, icons (derived) |
2813
+ | `--bb-text-faint` | Disabled foregrounds (derived) |
2814
+ | `--bb-ring` | Focus ring color (derived from primary) |
2815
+ | `--bb-ring-danger` | Focus ring in error states (derived from danger) |
2816
+ | `--bb-ring-warn` | Focus ring in the warning input state (derived from `--bb-warn`) |
2817
+ | `--bb-ring-neutral` | Focus ring of the neutral variants (derived from `--bb-text`) |
2499
2818
 
2500
2819
  Rule of thumb: **hover/pressed chrome is neutral; primary tint means
2501
2820
  selected.** Never build a hover state from `--bb-primary` — use `--bb-hover`
@@ -2503,19 +2822,19 @@ so themes with loud brand colors keep gray chrome.
2503
2822
 
2504
2823
  ### Scale
2505
2824
 
2506
- | Token | Meaning |
2507
- | ---------------- | -------------------------------------------------------- |
2825
+ | Token | Meaning |
2826
+ | --- | --- |
2508
2827
  | `--bb-control-h` | Master control height (32px); inputs/buttons/tabs derive |
2509
- | `--bb-fs` | Master font size (14px); component sizes derive |
2828
+ | `--bb-fs` | Master font size (14px); component sizes derive |
2510
2829
 
2511
2830
  ### Motion
2512
2831
 
2513
- | Token | Meaning |
2514
- | ------------------------ | --------------------------------------------- |
2515
- | `--bb-transition-fast` | 150ms — micro-interactions |
2516
- | `--bb-transition-medium` | 250ms — overlays, most components |
2517
- | `--bb-transition-slow` | 350ms — large consumer surfaces |
2518
- | `--bb-ease` | The single easing curve; do not invent others |
2832
+ | Token | Meaning |
2833
+ | --- | --- |
2834
+ | `--bb-transition-fast` | 150ms — micro-interactions |
2835
+ | `--bb-transition-medium` | 250ms — overlays, most components |
2836
+ | `--bb-transition-slow` | 350ms — large consumer surfaces |
2837
+ | `--bb-ease` | The single easing curve; do not invent others |
2519
2838
 
2520
2839
  Input-family tokens also exist (`--bb-input-h`, `--bb-input-px`,
2521
2840
  `--bb-label-fs`…) — see design-tokens.md. Component-specific tokens are
@@ -2541,31 +2860,31 @@ To crossfade instead of switching instantly, add `theme-animated` to the
2541
2860
 
2542
2861
  Variant names are typed per family. Built-in sets:
2543
2862
 
2544
- | Family | Built-in variants |
2545
- | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2546
- | `BbButton` / `BbDropdownButton` | `primary` `secondary` `outline` `ghost` `destructive` `link` (+ `none`, a blank starting point) |
2547
- | `BbBadge` | `primary` `secondary` `destructive` `outline` |
2548
- | `BbAlert` | `primary` `outline` `destructive` `warning` |
2549
- | `BbToast` / `useToast` | `default` `success` `info` `warning` `destructive` |
2550
- | `BbConfirm` / `useConfirm`, dropdown items, tooltips | `default` `destructive` |
2863
+ | Family | Built-in variants |
2864
+ | --- | --- |
2865
+ | `BbButton` / `BbDropdownButton` | `primary` `secondary` `outline` `ghost` `destructive` `link` (+ `none`, a blank starting point) |
2866
+ | `BbBadge` | `primary` `secondary` `destructive` `outline` |
2867
+ | `BbAlert` | `primary` `outline` `destructive` `warning` |
2868
+ | `BbToast` / `useToast` | `default` `success` `info` `warning` `destructive` |
2869
+ | `BbConfirm` / `useConfirm`, dropdown items, tooltips | `default` `destructive` |
2551
2870
  | Text-like form controls (`BbTextInput`, `BbTextarea`, `BbNumberInput`, `BbSelect`, `BbTag`, date/time/color inputs) | `outline` (default) `secondary` `ghost` (+ `none`, a blank starting point) — same names, same tokens as the button; `ghost` draws no border in any state, errors show through icon + message |
2552
2871
 
2553
2872
  What the shared names mean (shadcn-style vocabulary):
2554
2873
 
2555
- | Variant | Use for |
2556
- | ------------- | ------------------------------------------------------------ |
2557
- | `primary` | The single main action of a view region |
2558
- | `secondary` | Supporting actions |
2559
- | `outline` | Neutral actions on busy surfaces |
2560
- | `ghost` | Low-emphasis, inline, or icon-only actions |
2561
- | `destructive` | Irreversible/dangerous actions (confirm first) |
2562
- | `link` | Navigation disguised as text (buttons only) |
2563
- | `none` | Blank start for one-off styling; recurs → register a variant |
2874
+ | Variant | Use for |
2875
+ | --- | --- |
2876
+ | `primary` | The single main action of a view region |
2877
+ | `secondary` | Supporting actions |
2878
+ | `outline` | Neutral actions on busy surfaces |
2879
+ | `ghost` | Low-emphasis, inline, or icon-only actions |
2880
+ | `destructive` | Irreversible/dangerous actions (confirm first) |
2881
+ | `link` | Navigation disguised as text (buttons only) |
2882
+ | `none` | Blank start for one-off styling; recurs → register a variant |
2564
2883
 
2565
2884
  Projects can register extra variants through the Vite/Nuxt plugin
2566
- (`buttonVariants`, `badgeVariants`, `alertVariants`, `confirmVariants`,
2567
- `dropdownItemVariants`, `tooltipVariants`, `toastVariants`, `inputVariants`,
2568
- `tabsVariants`, `radioVariants`, `checkboxVariants` options).
2885
+ (`components.BbButton.variants`, `components.BbBadge.variants`, `components.BbAlert.variants`, `components.BbConfirm.variants`,
2886
+ `components.BbDropdown.variants`, `components.BbTooltip.variants`, `components.BbToast.variants`, each field's `components.<C>.variants`,
2887
+ `components.BbTabs.variants`, `components.BbRadioGroup.variants`, `components.BbCheckboxGroup.variants` options).
2569
2888
  Registered names become typed values, but the library ships no CSS for them —
2570
2889
  the project styles `.bb-button--<name>` (etc.) itself, following the state
2571
2890
  recipe in [design-tokens.md](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-tokens.md).
@@ -2610,12 +2929,12 @@ CSS" but **how far the change should reach**:
2610
2929
  fine) → re-point that family's locals. The names are the same (`--bg` /
2611
2930
  `--fg`); what differs is which extras the variant block sets:
2612
2931
 
2613
- | Family | Variant extras beyond `--bg` / `--fg` | So a re-skin is… |
2614
- | ---------------------- | -------------------------------------------------------------- | ------------------------------------ |
2615
- | `BbBadge`, `BbTooltip` | `--border-color`, `--ring-color` | re-point those tokens |
2616
- | `BbButton` | `--bg-hover`, `--bg-pressed`, `--border-color`, `--ring-color` | re-point those tokens |
2617
- | `BbAlert` | `--fg-muted`, `--border-color` | re-point those tokens |
2618
- | `BbToast` | `--icon-color` (the card stays panel) | re-point the card, or just the glyph |
2932
+ | Family | Variant extras beyond `--bg` / `--fg` | So a re-skin is… |
2933
+ | --- | --- | --- |
2934
+ | `BbBadge`, `BbTooltip` | `--border-color`, `--ring-color` | re-point those tokens |
2935
+ | `BbButton` | `--bg-hover`, `--bg-pressed`, `--border-color`, `--ring-color` | re-point those tokens |
2936
+ | `BbAlert` | `--fg-muted`, `--border-color` | re-point those tokens |
2937
+ | `BbToast` | `--icon-color` (the card stays panel) | re-point the card, or just the glyph |
2619
2938
 
2620
2939
  Read the block in `dist/ai/source/<Name>.md` before writing the rule.
2621
2940
  `.bb-button--primary { --bg: … }` retints rest, hover, and press together
@@ -2657,7 +2976,7 @@ of ours, replace the paint and keep the behaviour, in three layers:
2657
2976
  root) paint what is left; on Tailwind v4 set `cssLayers` (above) so a
2658
2977
  utility beats the component's own rule.
2659
2978
 
2660
- A look that recurs becomes a registered variant (`buttonVariants`, …) with
2979
+ A look that recurs becomes a registered variant (`components.BbButton.variants`, …) with
2661
2980
  its rule in your stylesheet, not the same `pt` strings on every instance. A
2662
2981
  dialog's or off-canvas's backdrop is the native `::backdrop`, with no node
2663
2982
  and no `pt` part: its dim and blur are `--bb-overlay`, `--bb-overlay-above`
@@ -2698,13 +3017,13 @@ Keep it **soft and calm**:
2698
3017
 
2699
3018
  ### What carries semantic color today (use these first)
2700
3019
 
2701
- | Need | Reach for |
2702
- | --------------------------------------------------- | ------------------------------------------------------------------------------------- |
2703
- | A status marker next to a label/row | **BbIndicator** dot — `default` / `success` / `info` / `warning` / `destructive` |
2704
- | A persistent message | **BbAlert** — `primary` / `outline` / `warning` / `destructive` (soft tints) |
2705
- | Transient feedback | **BbToast** / `useToast` — `default` / `success` / `info` / `warning` / `destructive` |
2706
- | A removable/error tag | **BbBadge** `destructive` (soft); neutral tags use `secondary` / `outline` |
2707
- | A form field that needs attention but isn't invalid | any form control's **`warnings`** / **`hasWarnings`** props — see below |
3020
+ | Need | Reach for |
3021
+ | --- | --- |
3022
+ | A status marker next to a label/row | **BbIndicator** dot — `default` / `success` / `info` / `warning` / `destructive` |
3023
+ | A persistent message | **BbAlert** — `primary` / `outline` / `warning` / `destructive` (soft tints) |
3024
+ | Transient feedback | **BbToast** / `useToast` — `default` / `success` / `info` / `warning` / `destructive` |
3025
+ | A removable/error tag | **BbBadge** `destructive` (soft); neutral tags use `secondary` / `outline` |
3026
+ | A form field that needs attention but isn't invalid | any form control's **`warnings`** / **`hasWarnings`** props — see below |
2708
3027
 
2709
3028
  ### Meters, ramps, gauges — the project owns every hue
2710
3029
 
@@ -2822,7 +3141,7 @@ or button vocabulary. So:
2822
3141
  `bb-badge--warning`, **without registering it first** — an unregistered name
2823
3142
  type-errors now, and before the registries existed it shipped no CSS at all
2824
3143
  (the real "warning badge" hallucination that rendered an unstyled pill).
2825
- - **Do** register the name via the plugin (`badgeVariants` / `buttonVariants`),
3144
+ - **Do** register the name via the plugin (`components.BbBadge.variants` / `components.BbButton.variants`),
2826
3145
  then style `.bb-badge--<name>` in a **project stylesheet kept separate from the
2827
3146
  library defaults** — the plugin makes the name type-check; you own its CSS.
2828
3147
  Follow the soft recipe above. That is the permanent path — a first-class
@@ -2847,13 +3166,13 @@ badges — in examples, recipes, and real apps alike. Five accents, one shared
2847
3166
  soft treatment. It mirrors `BbIndicator`'s built-in status hues, plus a slate
2848
3167
  neutral the indicator doesn't have:
2849
3168
 
2850
- | Variant | Accent | Means | Mirrors |
2851
- | ------------ | ---------------------- | --------------------------- | ----------------------------------- |
2852
- | `soft-gray` | `var(--bb-text-muted)` | neutral / idle / paused | — (slate; no indicator counterpart) |
2853
- | `soft-blue` | `var(--bb-info)` | active / in progress / info | `BbIndicator` `info` |
2854
- | `soft-green` | `var(--bb-success)` | success / done | `BbIndicator` `success` |
2855
- | `soft-amber` | `var(--bb-warn)` | attention / high / pending | `BbIndicator` `warning` |
2856
- | `soft-red` | `var(--bb-danger)` | danger / blocked / failed | `BbIndicator` `destructive` |
3169
+ | Variant | Accent | Means | Mirrors |
3170
+ | --- | --- | --- | --- |
3171
+ | `soft-gray` | `var(--bb-text-muted)` | neutral / idle / paused | — (slate; no indicator counterpart) |
3172
+ | `soft-blue` | `var(--bb-info)` | active / in progress / info | `BbIndicator` `info` |
3173
+ | `soft-green` | `var(--bb-success)` | success / done | `BbIndicator` `success` |
3174
+ | `soft-amber` | `var(--bb-warn)` | attention / high / pending | `BbIndicator` `warning` |
3175
+ | `soft-red` | `var(--bb-danger)` | danger / blocked / failed | `BbIndicator` `destructive` |
2857
3176
 
2858
3177
  Register the names in the plugin config (`bitboss-ui/nuxt` takes the same
2859
3178
  option):
@@ -2861,13 +3180,17 @@ option):
2861
3180
  ```ts
2862
3181
  // vite.config.ts
2863
3182
  bitbossUi({
2864
- badgeVariants: [
2865
- 'soft-gray',
2866
- 'soft-blue',
2867
- 'soft-green',
2868
- 'soft-amber',
2869
- 'soft-red',
2870
- ],
3183
+ components: {
3184
+ BbBadge: {
3185
+ variants: [
3186
+ 'soft-gray',
3187
+ 'soft-blue',
3188
+ 'soft-green',
3189
+ 'soft-amber',
3190
+ 'soft-red',
3191
+ ],
3192
+ },
3193
+ },
2871
3194
  });
2872
3195
  ```
2873
3196
 
@@ -2956,7 +3279,7 @@ Surface components (`BbDialog`, `BbPopover`, `BbDropdown`, `BbSelect`,
2956
3279
  accept an `adaptive` prop: on mobile viewports the surface
2957
3280
  renders as a bottom sheet (`BbOffCanvas`) instead of a floating
2958
3281
  popover/dialog. The global default comes from the plugin config
2959
- (`config.adaptive`); the prop overrides it per component. Guidance:
3282
+ (`all.adaptive`); the prop overrides it per component. Guidance:
2960
3283
 
2961
3284
  - Leave `adaptive` unset unless the user asks otherwise — the project default
2962
3285
  is usually right.
@@ -3139,11 +3462,13 @@ Every public component. Open one contract at `https://llms-bitboss-ui.bitboss.it
3139
3462
  - **BbBreadcrumbs** — Renders hierarchical navigation paths.
3140
3463
  - **BbButton** — Button with loading state, tooltip, and icon support.
3141
3464
  - **BbCalendar** — A calendar in place — the month grid (or month / year grid, or day grid plus time rail) with no popover and no field chrome; v-model of a day, range, set, month, year or datetime.
3465
+ - **BbCarousel** — Slides moved by swipe, arrows and dots.
3142
3466
  - **BbCheckbox** — Toggles a single boolean option.
3143
3467
  - **BbCheckboxGroup** — Manages multiple checkbox options as a group.
3144
3468
  - **BbCollapsible** — Toggles visibility of collapsible content blocks.
3145
3469
  - **BbColorInput** — Captures color values through input controls.
3146
3470
  - **BbColorPalette** — Opens an anchored popover color palette for color picking interactions.
3471
+ - **BbConfigScope** — Renderless provider that switches on a named config scope (`configScopes` in the plugin config) for its subtree: its `pt` entries and prop defaults (or an inline `:config`) (a backoffice and a member area with different looks in one app).
3147
3472
  - **BbConfirmPortal** — Registers named slot content that confirm() renders via `portal`; slot `{ data, yes, no }`.
3148
3473
  - **BbDatePicker** — Opens an anchored calendar (and optional time rail) popover on a trigger you own — the date analog of BbColorPalette; also the v-bb-date directive.
3149
3474
  - **BbDatePickerInput** — Combines date selection with text input behavior.
@@ -3164,7 +3489,6 @@ Every public component. Open one contract at `https://llms-bitboss-ui.bitboss.it
3164
3489
  - **BbPopover** — Anchors floating content to reference elements; also the v-bb-popover directive (its body is a BbPopoverPortal or a component).
3165
3490
  - **BbPopoverPortal** — Registers named slot content that `v-bb-popover="'name'"` (or `{ portal: 'name' }`) renders in the popover; slot `{ data, close }`.
3166
3491
  - **BbProgress** — Visualizes task or operation progress state.
3167
- - **BbPtScope** — Renderless provider that switches on a named passthrough scope (`ptScopes` in the plugin config) for its subtree — a backoffice and a member area with different looks in one app.
3168
3492
  - **BbRadio** — Represents a single choice in exclusive options.
3169
3493
  - **BbRadioGroup** — Coordinates exclusive selection among radio options.
3170
3494
  - **BbRating** — Collects scalar ratings through interactive icons.