bitboss-ui 3.0.0-beta.4 → 3.0.0-beta.41

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 (937) hide show
  1. package/README.md +317 -98
  2. package/bin/bitboss-ui-mcp.mjs +1566 -75
  3. package/bin/bitboss-ui.mjs +716 -72
  4. package/dist/ai/BbAccordion.md +178 -56
  5. package/dist/ai/BbAlert.md +140 -28
  6. package/dist/ai/BbAsterisk.md +61 -4
  7. package/dist/ai/BbAvatar.md +194 -53
  8. package/dist/ai/BbBadge.md +250 -50
  9. package/dist/ai/BbBadgeButton.md +74 -21
  10. package/dist/ai/BbBaseButton.md +132 -51
  11. package/dist/ai/BbBaseCheckboxIcon.md +118 -26
  12. package/dist/ai/BbBaseRadioIcon.md +115 -26
  13. package/dist/ai/BbBaseSwitchIcon.md +123 -28
  14. package/dist/ai/BbBreadcrumbs.md +221 -51
  15. package/dist/ai/BbButton.md +389 -107
  16. package/dist/ai/BbCalendar.md +667 -0
  17. package/dist/ai/BbCheckbox.md +242 -80
  18. package/dist/ai/BbCheckboxGroup.md +575 -66
  19. package/dist/ai/BbCollapsible.md +158 -39
  20. package/dist/ai/BbColorInput.md +322 -82
  21. package/dist/ai/BbColorPalette.md +261 -61
  22. package/dist/ai/BbConfirm.md +220 -51
  23. package/dist/ai/BbConfirmPortal.md +1 -1
  24. package/dist/ai/BbDatePicker.md +272 -37
  25. package/dist/ai/BbDatePickerInput.md +321 -92
  26. package/dist/ai/BbDialog.md +492 -87
  27. package/dist/ai/BbDropdown.md +1182 -104
  28. package/dist/ai/BbDropdownButton.md +239 -61
  29. package/dist/ai/BbDropdownGroup.md +5 -5
  30. package/dist/ai/BbDropzone.md +140 -36
  31. package/dist/ai/BbForm.md +1165 -40
  32. package/dist/ai/BbIcon.md +100 -33
  33. package/dist/ai/BbIndicator.md +79 -12
  34. package/dist/ai/BbNumberInput.md +257 -87
  35. package/dist/ai/BbOffCanvas.md +396 -91
  36. package/dist/ai/BbPagination.md +199 -32
  37. package/dist/ai/BbPopover.md +219 -54
  38. package/dist/ai/BbProgress.md +137 -71
  39. package/dist/ai/BbPtScope.md +136 -0
  40. package/dist/ai/BbRadio.md +234 -43
  41. package/dist/ai/BbRadioGroup.md +529 -91
  42. package/dist/ai/BbRating.md +243 -61
  43. package/dist/ai/BbSelect.md +690 -120
  44. package/dist/ai/BbSelectPopover.md +434 -122
  45. package/dist/ai/BbSlider.md +275 -79
  46. package/dist/ai/BbSmoothHeight.md +142 -34
  47. package/dist/ai/BbSpinner.md +179 -81
  48. package/dist/ai/BbSwitch.md +249 -63
  49. package/dist/ai/BbSwitchGroup.md +394 -65
  50. package/dist/ai/BbTable.md +1666 -222
  51. package/dist/ai/BbTabs.md +898 -178
  52. package/dist/ai/BbTabsList.md +81 -7
  53. package/dist/ai/BbTabsPanels.md +77 -0
  54. package/dist/ai/BbTabsRoot.md +16 -15
  55. package/dist/ai/BbTag.md +256 -76
  56. package/dist/ai/BbTextInput.md +480 -102
  57. package/dist/ai/BbTextarea.md +310 -96
  58. package/dist/ai/BbTimePicker.md +159 -24
  59. package/dist/ai/BbTimePickerInput.md +277 -46
  60. package/dist/ai/BbToast.md +286 -40
  61. package/dist/ai/BbToastPortal.md +3 -3
  62. package/dist/ai/BbTooltip.md +187 -34
  63. package/dist/ai/BbTree.md +260 -85
  64. package/dist/ai/ChipsBox.md +43 -2
  65. package/dist/ai/ClearableButton.md +12 -0
  66. package/dist/ai/CommaBox.md +2 -1
  67. package/dist/ai/CommonField.md +63 -0
  68. package/dist/ai/CommonFieldInput.md +90 -0
  69. package/dist/ai/CommonPopover.md +17 -12
  70. package/dist/ai/CommonTimeSelector.md +63 -0
  71. package/dist/ai/ErrorIcon.md +20 -0
  72. package/dist/ai/FlatListBox.md +41 -11
  73. package/dist/ai/GroupedListBox.md +42 -12
  74. package/dist/ai/ListBox.md +46 -11
  75. package/dist/ai/OptionsContainer.md +13 -10
  76. package/dist/ai/WarningIcon.md +20 -0
  77. package/dist/ai/changelog.json +4025 -141
  78. package/dist/ai/components.json +51872 -10136
  79. package/dist/ai/composables/useBbConfig.md +72 -11
  80. package/dist/ai/composables/useBbDropdownContext.md +168 -0
  81. package/dist/ai/composables/useBbFormContext.md +51 -24
  82. package/dist/ai/composables/useBbFormField.md +134 -0
  83. package/dist/ai/composables/useBbTableContext.md +41 -19
  84. package/dist/ai/composables/useConfirm.md +16 -8
  85. package/dist/ai/composables/useCountdown.md +1 -1
  86. package/dist/ai/composables/useId.md +10 -10
  87. package/dist/ai/composables/useMobile.md +17 -10
  88. package/dist/ai/composables/useToast.md +25 -19
  89. package/dist/ai/design-tokens.json +940 -0
  90. package/dist/ai/design-tokens.manifest.yaml +175 -0
  91. package/dist/ai/guides/agent-contract.md +168 -22
  92. package/dist/ai/guides/ai-router.md +79 -40
  93. package/dist/ai/guides/app-layout.md +8 -4
  94. package/dist/ai/guides/coherence-playbook.md +8 -8
  95. package/dist/ai/guides/component-picker.md +42 -34
  96. package/dist/ai/guides/design-language.md +274 -97
  97. package/dist/ai/guides/design-tokens.md +493 -105
  98. package/dist/ai/guides/fetch-items-playbook.md +22 -16
  99. package/dist/ai/guides/icons-policy.md +67 -35
  100. package/dist/ai/guides/inertia-helpers.md +4 -1
  101. package/dist/ai/guides/inline-edit-playbook.md +13 -6
  102. package/dist/ai/guides/installation-and-plugin-setup.md +817 -73
  103. package/dist/ai/guides/migration/components/bb-accordion.md +37 -0
  104. package/dist/ai/guides/migration/components/bb-alert.md +2 -2
  105. package/dist/ai/guides/migration/components/bb-avatar.md +13 -14
  106. package/dist/ai/guides/migration/components/bb-badge.md +5 -5
  107. package/dist/ai/guides/migration/components/bb-breadcrumbs.md +9 -8
  108. package/dist/ai/guides/migration/components/bb-button.md +80 -20
  109. package/dist/ai/guides/migration/components/bb-checkbox-group.md +116 -29
  110. package/dist/ai/guides/migration/components/bb-checkbox.md +53 -10
  111. package/dist/ai/guides/migration/components/bb-chip.md +6 -6
  112. package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
  113. package/dist/ai/guides/migration/components/bb-color-input.md +5 -5
  114. package/dist/ai/guides/migration/components/bb-color-palette.md +16 -9
  115. package/dist/ai/guides/migration/components/bb-date-picker-input.md +45 -35
  116. package/dist/ai/guides/migration/components/bb-dialog.md +69 -36
  117. package/dist/ai/guides/migration/components/bb-dropdown-button.md +7 -1
  118. package/dist/ai/guides/migration/components/bb-dropdown.md +31 -8
  119. package/dist/ai/guides/migration/components/bb-dropzone.md +8 -0
  120. package/dist/ai/guides/migration/components/bb-icon.md +7 -7
  121. package/dist/ai/guides/migration/components/bb-intersection.md +1 -1
  122. package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -31
  123. package/dist/ai/guides/migration/components/bb-pagination.md +10 -0
  124. package/dist/ai/guides/migration/components/bb-popover.md +19 -11
  125. package/dist/ai/guides/migration/components/bb-radio-group.md +14 -0
  126. package/dist/ai/guides/migration/components/bb-rating.md +61 -24
  127. package/dist/ai/guides/migration/components/bb-select-popover.md +9 -1
  128. package/dist/ai/guides/migration/components/bb-select.md +21 -4
  129. package/dist/ai/guides/migration/components/bb-slider.md +14 -6
  130. package/dist/ai/guides/migration/components/bb-switch-group.md +14 -0
  131. package/dist/ai/guides/migration/components/bb-table.md +574 -33
  132. package/dist/ai/guides/migration/components/bb-tabs.md +91 -41
  133. package/dist/ai/guides/migration/components/bb-tag.md +9 -7
  134. package/dist/ai/guides/migration/components/bb-text-input.md +12 -12
  135. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  136. package/dist/ai/guides/migration/components/bb-tooltip.md +18 -0
  137. package/dist/ai/guides/migration/components/bb-tree.md +11 -9
  138. package/dist/ai/guides/migration/components/use-confirm.md +9 -1
  139. package/dist/ai/guides/migration/v2-to-v3.md +828 -240
  140. package/dist/ai/guides/migration/v3-beta-css-classes.md +751 -0
  141. package/dist/ai/guides/migration/v3-beta-tooling.md +119 -0
  142. package/dist/ai/guides/options-items-playbook.md +161 -12
  143. package/dist/ai/guides/page-shell.md +1 -1
  144. package/dist/ai/guides/passthrough.md +958 -0
  145. package/dist/ai/guides/preset-components.md +361 -0
  146. package/dist/ai/guides/ssr-prefill.md +127 -0
  147. package/dist/ai/guides/validated-forms.md +466 -55
  148. package/dist/ai/guides/validation-libraries.md +171 -0
  149. package/dist/ai/guides/validation-providers.md +113 -0
  150. package/dist/ai/index.md +45 -44
  151. package/dist/ai/recipes/inertia/approvals-inbox.md +26 -10
  152. package/dist/ai/recipes/inertia/command-palette.md +2 -2
  153. package/dist/ai/recipes/inertia/inline-edit-workspace.md +46 -30
  154. package/dist/ai/recipes/inertia/layout-scaffold.md +6 -2
  155. package/dist/ai/recipes/inertia/onboarding.md +30 -8
  156. package/dist/ai/recipes/inertia/ownership-atlas.md +72 -49
  157. package/dist/ai/recipes/inertia/record-form.md +53 -19
  158. package/dist/ai/recipes/inertia/records-workspace.md +201 -49
  159. package/dist/ai/recipes/inertia/settings-workspace.md +3809 -0
  160. package/dist/ai/recipes/inertia/upload-center.md +54 -43
  161. package/dist/ai/recipes/inertia/wizard-form.md +98 -14
  162. package/dist/ai/recipes/nuxt/approvals-inbox.md +26 -10
  163. package/dist/ai/recipes/nuxt/command-palette.md +2 -2
  164. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +68 -52
  165. package/dist/ai/recipes/nuxt/layout-scaffold.md +6 -2
  166. package/dist/ai/recipes/nuxt/onboarding.md +30 -8
  167. package/dist/ai/recipes/nuxt/record-form.md +66 -22
  168. package/dist/ai/recipes/nuxt/records-workspace.md +199 -48
  169. package/dist/ai/recipes/nuxt/settings-workspace.md +3898 -0
  170. package/dist/ai/recipes/nuxt/upload-center.md +52 -41
  171. package/dist/ai/recipes/nuxt/wizard-form.md +98 -14
  172. package/dist/ai/recipes/vue/approvals-inbox.md +28 -12
  173. package/dist/ai/recipes/vue/command-palette.md +2 -2
  174. package/dist/ai/recipes/vue/inline-edit-workspace.md +69 -53
  175. package/dist/ai/recipes/vue/layout-scaffold.md +6 -2
  176. package/dist/ai/recipes/vue/onboarding.md +32 -8
  177. package/dist/ai/recipes/vue/record-form.md +81 -54
  178. package/dist/ai/recipes/vue/records-workspace.md +198 -49
  179. package/dist/ai/recipes/vue/settings-workspace.md +3836 -0
  180. package/dist/ai/recipes/vue/upload-center.md +53 -42
  181. package/dist/ai/recipes/vue/wizard-form.md +97 -14
  182. package/dist/ai/source/BbAccordion.md +90 -24
  183. package/dist/ai/source/BbAlert.md +209 -62
  184. package/dist/ai/source/BbAsterisk.md +54 -4
  185. package/dist/ai/source/BbAvatar.md +73 -16
  186. package/dist/ai/source/BbBadge.md +265 -97
  187. package/dist/ai/source/BbBadgeButton.md +218 -79
  188. package/dist/ai/source/BbBaseButton.md +108 -12
  189. package/dist/ai/source/BbBaseCheckboxIcon.md +151 -36
  190. package/dist/ai/source/BbBaseRadioIcon.md +121 -17
  191. package/dist/ai/source/BbBaseSwitchIcon.md +138 -28
  192. package/dist/ai/source/BbBreadcrumbs.md +363 -69
  193. package/dist/ai/source/BbButton.md +563 -174
  194. package/dist/ai/source/BbCalendar.md +1744 -0
  195. package/dist/ai/source/BbCheckbox.md +470 -68
  196. package/dist/ai/source/BbCheckboxGroup.md +976 -95
  197. package/dist/ai/source/BbCollapsible.md +96 -8
  198. package/dist/ai/source/BbColorInput.md +597 -67
  199. package/dist/ai/source/BbColorPalette.md +1284 -65
  200. package/dist/ai/source/BbConfirm.md +149 -7
  201. package/dist/ai/source/BbConfirmPortal.md +89 -3
  202. package/dist/ai/source/BbDatePicker.md +527 -381
  203. package/dist/ai/source/BbDatePickerInput.md +2015 -118
  204. package/dist/ai/source/BbDialog.md +531 -64
  205. package/dist/ai/source/BbDropdown.md +885 -175
  206. package/dist/ai/source/BbDropdownButton.md +377 -79
  207. package/dist/ai/source/BbDropdownGroup.md +687 -96
  208. package/dist/ai/source/BbDropzone.md +140 -31
  209. package/dist/ai/source/BbForm.md +875 -17
  210. package/dist/ai/source/BbIcon.md +130 -52
  211. package/dist/ai/source/BbIndicator.md +117 -60
  212. package/dist/ai/source/BbNumberInput.md +667 -84
  213. package/dist/ai/source/BbOffCanvas.md +1007 -261
  214. package/dist/ai/source/BbPagination.md +203 -31
  215. package/dist/ai/source/BbPopover.md +267 -90
  216. package/dist/ai/source/BbProgress.md +88 -26
  217. package/dist/ai/source/BbPtScope.md +54 -0
  218. package/dist/ai/source/BbRadio.md +388 -58
  219. package/dist/ai/source/BbRadioGroup.md +940 -109
  220. package/dist/ai/source/BbRating.md +736 -84
  221. package/dist/ai/source/BbSelect.md +1096 -96
  222. package/dist/ai/source/BbSelectPopover.md +807 -114
  223. package/dist/ai/source/BbSlider.md +1390 -98
  224. package/dist/ai/source/BbSmoothHeight.md +48 -2
  225. package/dist/ai/source/BbSpinner.md +62 -6
  226. package/dist/ai/source/BbSwitch.md +297 -60
  227. package/dist/ai/source/BbSwitchGroup.md +761 -83
  228. package/dist/ai/source/BbTable.md +6950 -1864
  229. package/dist/ai/source/BbTabs.md +368 -111
  230. package/dist/ai/source/BbTabsList.md +503 -146
  231. package/dist/ai/source/BbTabsPanels.md +625 -0
  232. package/dist/ai/source/BbTabsRoot.md +319 -100
  233. package/dist/ai/source/BbTag.md +796 -87
  234. package/dist/ai/source/BbTextInput.md +497 -68
  235. package/dist/ai/source/BbTextarea.md +550 -65
  236. package/dist/ai/source/BbTimePicker.md +395 -69
  237. package/dist/ai/source/BbTimePickerInput.md +1233 -106
  238. package/dist/ai/source/BbToast.md +250 -74
  239. package/dist/ai/source/BbToastPortal.md +210 -66
  240. package/dist/ai/source/BbTooltip.md +181 -30
  241. package/dist/ai/source/BbTree.md +76 -11
  242. package/dist/ai/source/ChipsBox.md +25 -5
  243. package/dist/ai/source/CommaBox.md +21 -6
  244. package/dist/ai/source/{BbBaseInputContainer.md → CommonField.md} +467 -250
  245. package/dist/ai/source/CommonFieldInput.md +848 -0
  246. package/dist/ai/source/CommonPopover.md +116 -30
  247. package/dist/ai/source/CommonTimeSelector.md +726 -0
  248. package/dist/ai/source/ErrorIcon.md +2 -2
  249. package/dist/ai/source/FlatListBox.md +188 -17
  250. package/dist/ai/source/GroupedListBox.md +236 -44
  251. package/dist/ai/source/GuidesComponent.md +14 -7
  252. package/dist/ai/source/ListBox.md +46 -8
  253. package/dist/ai/source/OptionsContainer.md +288 -60
  254. package/dist/ai/source/WarningIcon.md +2 -2
  255. package/dist/assets/css/reset.css_inline.js +1 -1
  256. package/dist/assets/svgs/star.svg_raw.js +4 -0
  257. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +49 -32
  258. package/dist/components/BbAccordion/types.d.ts +35 -3
  259. package/dist/components/BbAccordion/types.js +11 -0
  260. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +46 -30
  261. package/dist/components/BbAlert/types.d.ts +37 -3
  262. package/dist/components/BbAlert/types.js +13 -0
  263. package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -1
  264. package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +23 -8
  265. package/dist/components/BbAsterisk/types.d.ts +18 -0
  266. package/dist/components/BbAsterisk/types.js +7 -0
  267. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
  268. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +57 -44
  269. package/dist/components/BbAvatar/types.d.ts +23 -0
  270. package/dist/components/BbAvatar/types.js +7 -0
  271. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -18
  272. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +96 -53
  273. package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +27 -8
  274. package/dist/components/BbBadge/badgeButtonContext.d.ts +25 -8
  275. package/dist/components/BbBadge/types.d.ts +46 -3
  276. package/dist/components/BbBadge/types.js +13 -0
  277. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +109 -96
  278. package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +11 -11
  279. package/dist/components/BbBaseButton/types.d.ts +33 -3
  280. package/dist/components/BbBaseButton/types.js +9 -2
  281. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +50 -18
  282. package/dist/components/BbBaseCheckboxIcon/types.d.ts +31 -2
  283. package/dist/components/BbBaseCheckboxIcon/types.js +8 -0
  284. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +45 -15
  285. package/dist/components/BbBaseRadioIcon/types.d.ts +31 -2
  286. package/dist/components/BbBaseRadioIcon/types.js +8 -0
  287. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +48 -16
  288. package/dist/components/BbBaseSwitchIcon/types.d.ts +31 -2
  289. package/dist/components/BbBaseSwitchIcon/types.js +8 -0
  290. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +187 -132
  291. package/dist/components/BbBreadcrumbs/types.d.ts +45 -3
  292. package/dist/components/BbBreadcrumbs/types.js +12 -0
  293. package/dist/components/BbButton/BbButton.vue.d.ts +5 -0
  294. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +107 -81
  295. package/dist/components/BbButton/types.d.ts +113 -2
  296. package/dist/components/BbButton/types.js +12 -0
  297. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +34 -0
  298. package/dist/components/BbCalendar/BbCalendar.vue.js +6 -0
  299. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +608 -0
  300. package/dist/components/BbCalendar/CalendarMonthPanel.vue.js +5 -0
  301. package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +124 -0
  302. package/dist/components/BbCalendar/CalendarYearPanel.vue.js +5 -0
  303. package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +126 -0
  304. package/dist/components/BbCalendar/calendarHost.d.ts +29 -0
  305. package/dist/components/BbCalendar/calendarHost.js +10 -0
  306. package/dist/components/BbCalendar/types.d.ts +225 -0
  307. package/dist/components/BbCalendar/types.js +29 -0
  308. package/dist/components/{BbBaseDatePicker/useDatePickerContext.d.ts → BbCalendar/useCalendarContext.d.ts} +10 -7
  309. package/dist/components/BbCalendar/useCalendarContext.js +11 -0
  310. package/dist/components/BbCalendar/useCalendarGrid.d.ts +208 -0
  311. package/dist/components/BbCalendar/useCalendarGrid.js +274 -0
  312. package/dist/components/BbCalendar/useDayGrid.d.ts +79 -0
  313. package/dist/components/BbCalendar/useDayGrid.js +204 -0
  314. package/dist/components/BbCalendar/useToday.d.ts +23 -0
  315. package/dist/components/BbCalendar/useToday.js +21 -0
  316. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +7 -7
  317. package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +214 -72
  318. package/dist/components/BbCheckbox/types.d.ts +180 -13
  319. package/dist/components/BbCheckbox/types.js +8 -0
  320. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +15 -3
  321. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +338 -90
  322. package/dist/components/BbCheckboxGroup/types.d.ts +195 -20
  323. package/dist/components/BbCheckboxGroup/types.js +10 -0
  324. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
  325. package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +41 -19
  326. package/dist/components/BbCollapsible/types.d.ts +44 -1
  327. package/dist/components/BbCollapsible/types.js +7 -0
  328. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +17 -7
  329. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +330 -86
  330. package/dist/components/BbColorInput/types.d.ts +230 -12
  331. package/dist/components/BbColorInput/types.js +24 -0
  332. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +10 -2
  333. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +515 -108
  334. package/dist/components/BbColorPalette/types.d.ts +76 -7
  335. package/dist/components/BbColorPalette/types.js +12 -0
  336. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +2 -1
  337. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +125 -76
  338. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -0
  339. package/dist/components/BbConfirm/types.d.ts +49 -0
  340. package/dist/components/BbConfirm/types.js +17 -0
  341. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -10
  342. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +320 -223
  343. package/dist/components/BbDatePicker/types.d.ts +111 -17
  344. package/dist/components/BbDatePicker/types.js +33 -0
  345. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -4
  346. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +1172 -87
  347. package/dist/components/BbDatePickerInput/types.d.ts +224 -19
  348. package/dist/components/BbDatePickerInput/types.js +39 -0
  349. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -3
  350. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +227 -136
  351. package/dist/components/BbDialog/types.d.ts +92 -3
  352. package/dist/components/BbDialog/types.js +16 -0
  353. package/dist/components/BbDialog/useDialogStack.d.ts +12 -0
  354. package/dist/components/BbDialog/useDialogStack.js +9 -2
  355. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
  356. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +108 -96
  357. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +10 -2
  358. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +337 -268
  359. package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +5 -1
  360. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +8 -2
  361. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +377 -293
  362. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +129 -118
  363. package/dist/components/BbDropdown/normalizeGroups.js +55 -31
  364. package/dist/components/BbDropdown/types.d.ts +288 -30
  365. package/dist/components/BbDropdown/types.js +21 -2
  366. package/dist/components/BbDropdown/useDropdownContext.d.ts +10 -4
  367. package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +1 -0
  368. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +18 -3
  369. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +172 -40
  370. package/dist/components/BbDropdownButton/types.d.ts +137 -8
  371. package/dist/components/BbDropdownButton/types.js +35 -0
  372. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +2 -2
  373. package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +186 -144
  374. package/dist/components/BbDropzone/types.d.ts +38 -4
  375. package/dist/components/BbDropzone/types.js +16 -0
  376. package/dist/components/BbForm/BbForm.vue.d.ts +94 -0
  377. package/dist/{validated → components/BbForm}/BbForm.vue.js +1 -1
  378. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +317 -0
  379. package/dist/components/BbForm/BbFormCustomField.d.ts +14 -0
  380. package/dist/components/BbForm/BbFormCustomField.js +43 -0
  381. package/dist/components/BbForm/bindFormField.d.ts +16 -0
  382. package/dist/components/BbForm/bindFormField.js +85 -0
  383. package/dist/components/BbForm/formFields.d.ts +64 -0
  384. package/dist/components/BbForm/formFields.js +11 -0
  385. package/dist/components/BbForm/formSchema.d.ts +56 -0
  386. package/dist/components/BbForm/formSchema.js +196 -0
  387. package/dist/components/BbForm/standardSchema.d.ts +59 -0
  388. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +58 -48
  389. package/dist/components/BbIcon/iconCache.d.ts +63 -0
  390. package/dist/components/BbIcon/iconCache.js +35 -0
  391. package/dist/components/BbIcon/types.d.ts +22 -2
  392. package/dist/components/BbIcon/types.js +7 -0
  393. package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +34 -21
  394. package/dist/components/BbIndicator/types.d.ts +24 -0
  395. package/dist/components/BbIndicator/types.js +7 -0
  396. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -8
  397. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +308 -85
  398. package/dist/components/BbNumberInput/types.d.ts +201 -18
  399. package/dist/components/BbNumberInput/types.js +8 -0
  400. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -3
  401. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +311 -210
  402. package/dist/components/BbOffCanvas/types.d.ts +79 -6
  403. package/dist/components/BbOffCanvas/types.js +15 -0
  404. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  405. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +125 -90
  406. package/dist/components/BbPagination/types.d.ts +38 -0
  407. package/dist/components/BbPagination/types.js +13 -0
  408. package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
  409. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +219 -179
  410. package/dist/components/BbPopover/types.d.ts +51 -5
  411. package/dist/components/BbPopover/types.js +14 -0
  412. package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +29 -16
  413. package/dist/components/BbProgress/types.d.ts +25 -0
  414. package/dist/components/BbProgress/types.js +7 -0
  415. package/dist/components/BbPtScope/BbPtScope.vue.d.ts +12 -0
  416. package/dist/components/BbPtScope/BbPtScope.vue.js +5 -0
  417. package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +13 -0
  418. package/dist/components/BbPtScope/types.d.ts +15 -0
  419. package/dist/components/BbRadio/BbRadio.vue.d.ts +7 -7
  420. package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +172 -59
  421. package/dist/components/BbRadio/types.d.ts +152 -13
  422. package/dist/components/BbRadio/types.js +8 -0
  423. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +14 -2
  424. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +319 -92
  425. package/dist/components/BbRadioGroup/types.d.ts +198 -22
  426. package/dist/components/BbRadioGroup/types.js +10 -0
  427. package/dist/components/BbRating/BbRating.vue.d.ts +10 -8
  428. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +259 -78
  429. package/dist/components/BbRating/types.d.ts +174 -13
  430. package/dist/components/BbRating/types.js +21 -0
  431. package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -3
  432. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +553 -83
  433. package/dist/components/BbSelect/types.d.ts +235 -20
  434. package/dist/components/BbSelect/types.js +41 -0
  435. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +15 -1
  436. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +541 -391
  437. package/dist/components/BbSelectPopover/types.d.ts +124 -8
  438. package/dist/components/BbSelectPopover/types.js +24 -0
  439. package/dist/components/BbSlider/BbSlider.vue.d.ts +13 -8
  440. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +472 -96
  441. package/dist/components/BbSlider/types.d.ts +202 -13
  442. package/dist/components/BbSlider/types.js +26 -0
  443. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
  444. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +60 -48
  445. package/dist/components/BbSmoothHeight/types.d.ts +19 -0
  446. package/dist/components/BbSmoothHeight/types.js +7 -0
  447. package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +27 -14
  448. package/dist/components/BbSpinner/types.d.ts +22 -1
  449. package/dist/components/BbSpinner/types.js +7 -0
  450. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +7 -7
  451. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +220 -78
  452. package/dist/components/BbSwitch/types.d.ts +25 -10
  453. package/dist/components/BbSwitch/types.js +5 -0
  454. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +14 -2
  455. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +338 -90
  456. package/dist/components/BbSwitchGroup/types.d.ts +30 -7
  457. package/dist/components/BbSwitchGroup/types.js +5 -0
  458. package/dist/components/BbTable/BbTable.vue.d.ts +27 -6
  459. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +2013 -685
  460. package/dist/components/BbTable/BbTableDataRow.d.ts +196 -0
  461. package/dist/components/BbTable/BbTableDataRow.js +151 -0
  462. package/dist/components/BbTable/BbTableExpandRow.d.ts +84 -0
  463. package/dist/components/BbTable/BbTableExpandRow.js +62 -0
  464. package/dist/components/BbTable/BbTableSelectToggle.d.ts +120 -0
  465. package/dist/components/BbTable/BbTableSelectToggle.js +122 -0
  466. package/dist/components/BbTable/gridWidgets.d.ts +30 -0
  467. package/dist/components/BbTable/gridWidgets.js +14 -0
  468. package/dist/components/BbTable/types.d.ts +473 -123
  469. package/dist/components/BbTable/types.js +31 -0
  470. package/dist/components/BbTable/utils.d.ts +145 -4
  471. package/dist/components/BbTable/utils.js +154 -37
  472. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -1
  473. package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +62 -26
  474. package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -10
  475. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +143 -81
  476. package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +12 -0
  477. package/dist/components/{BbBaseSwitch/BbBaseSwitch.vue.js → BbTabs/BbTabsPanels.vue.js} +2 -2
  478. package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +59 -0
  479. package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +3 -1
  480. package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +2 -1
  481. package/dist/components/BbTabs/types.d.ts +183 -23
  482. package/dist/components/BbTabs/types.js +34 -0
  483. package/dist/components/BbTag/BbTag.vue.d.ts +13 -10
  484. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +383 -92
  485. package/dist/components/BbTag/types.d.ts +139 -14
  486. package/dist/components/BbTag/types.js +22 -0
  487. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -8
  488. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +257 -84
  489. package/dist/components/BbTextInput/types.d.ts +168 -13
  490. package/dist/components/BbTextInput/types.js +8 -0
  491. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +7 -7
  492. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +291 -94
  493. package/dist/components/BbTextarea/types.d.ts +158 -14
  494. package/dist/components/BbTextarea/types.js +8 -0
  495. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -4
  496. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +199 -122
  497. package/dist/components/BbTimePicker/types.d.ts +94 -7
  498. package/dist/components/BbTimePicker/types.js +18 -0
  499. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +14 -4
  500. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +749 -86
  501. package/dist/components/BbTimePickerInput/types.d.ts +171 -22
  502. package/dist/components/BbTimePickerInput/types.js +25 -0
  503. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +63 -25
  504. package/dist/components/BbToast/BbToastMessage.vue.d.ts +4 -1
  505. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -76
  506. package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -0
  507. package/dist/components/BbToast/BbToastRegion.vue.d.ts +4 -1
  508. package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +72 -64
  509. package/dist/components/BbToast/types.d.ts +54 -1
  510. package/dist/components/BbToast/types.js +28 -0
  511. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +104 -87
  512. package/dist/components/BbTooltip/types.d.ts +40 -2
  513. package/dist/components/BbTooltip/types.js +7 -0
  514. package/dist/components/BbTree/BbTree.vue.d.ts +15 -3
  515. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +51 -29
  516. package/dist/components/BbTree/BbTreeLevel.vue.d.ts +1 -1
  517. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +17 -16
  518. package/dist/components/BbTree/context.d.ts +9 -1
  519. package/dist/components/BbTree/types.d.ts +40 -5
  520. package/dist/components/BbTree/types.js +7 -0
  521. package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +46 -44
  522. package/dist/components/ChipsBox/types.d.ts +7 -0
  523. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
  524. package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +11 -7
  525. package/dist/components/CommaBox/types.d.ts +7 -0
  526. package/dist/components/{BbBaseInputContainer/BbBaseInputContainer.vue.d.ts → CommonField/CommonField.vue.d.ts} +5 -5
  527. package/dist/components/{BbBaseRadio/BbBaseRadio.vue.js → CommonField/CommonField.vue.js} +2 -2
  528. package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +189 -0
  529. package/dist/components/CommonField/messageHeightMatrix.d.ts +2 -0
  530. package/dist/components/{BbBaseInputContainer → CommonField}/types.d.ts +52 -16
  531. package/dist/components/{CommonInputWrapper/CommonInputWrapper.vue.d.ts → CommonFieldInput/CommonFieldInput.vue.d.ts} +5 -4
  532. package/dist/components/{BbBaseRadioGroup/BbBaseRadioGroup.vue.js → CommonFieldInput/CommonFieldInput.vue.js} +2 -2
  533. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +120 -0
  534. package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +10 -0
  535. package/dist/components/{CommonInputWrapper → CommonFieldInput}/types.d.ts +27 -8
  536. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +11 -2
  537. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +76 -63
  538. package/dist/components/CommonPopover/types.d.ts +27 -8
  539. package/dist/components/{BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts → CommonTimeSelector/CommonTimeSelector.vue.d.ts} +21 -2
  540. package/dist/components/{BbBaseColorPalette/BbBaseColorPalette.vue.js → CommonTimeSelector/CommonTimeSelector.vue.js} +2 -2
  541. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +232 -0
  542. package/dist/components/CommonTimeSelector/types.d.ts +6 -0
  543. package/dist/components/FlatListBox/FlatListBox.vue.d.ts +5 -1
  544. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +165 -95
  545. package/dist/components/FlatListBox/types.d.ts +24 -2
  546. package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +5 -1
  547. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +217 -134
  548. package/dist/components/GroupedListBox/types.d.ts +24 -2
  549. package/dist/components/ListBox/ListBox.vue.d.ts +5 -1
  550. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +95 -69
  551. package/dist/components/ListBox/types.d.ts +24 -2
  552. package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -1
  553. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +109 -37
  554. package/dist/components/OptionsContainer/types.d.ts +53 -9
  555. package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +8 -8
  556. package/dist/components/Transitions/Slide.vue.js +1 -1
  557. package/dist/composables/useBaseOptions.d.ts +12 -1
  558. package/dist/composables/useBaseOptions.js +77 -37
  559. package/dist/composables/useBbConfig.d.ts +27 -6
  560. package/dist/composables/useBbConfig.js +8 -2
  561. package/dist/composables/useBbDropdownContext.d.ts +5 -0
  562. package/dist/composables/useBbFormContext.d.ts +131 -8
  563. package/dist/composables/useBbFormContext.js +49 -30
  564. package/dist/composables/useBbFormField.d.ts +40 -0
  565. package/dist/composables/useBbFormField.js +39 -0
  566. package/dist/composables/useBbTableContext.d.ts +45 -1
  567. package/dist/composables/useBbTableContext.js +93 -87
  568. package/dist/composables/useBbTabsContext.d.ts +15 -9
  569. package/dist/composables/useBbTabsContext.js +121 -90
  570. package/dist/composables/useClosingInert.d.ts +4 -4
  571. package/dist/composables/useCoarsePointer.js +7 -10
  572. package/dist/composables/useCoherence.js +1 -1
  573. package/dist/composables/useConfig.d.ts +59 -0
  574. package/dist/composables/useConfig.js +15 -0
  575. package/dist/composables/useConfirm.d.ts +39 -7
  576. package/dist/composables/useConfirm.js +50 -41
  577. package/dist/composables/useEscapeStackEntry.d.ts +13 -0
  578. package/dist/composables/useEscapeStackEntry.js +16 -0
  579. package/dist/composables/useFormBinding.d.ts +116 -0
  580. package/dist/composables/useFormBinding.js +34 -0
  581. package/dist/composables/useHydrated.d.ts +18 -0
  582. package/dist/composables/useHydrated.js +13 -7
  583. package/dist/composables/useId.d.ts +4 -3
  584. package/dist/composables/useId.js +1 -7
  585. package/dist/composables/useItemsGetter.d.ts +11 -0
  586. package/dist/composables/useItemsGetter.js +44 -18
  587. package/dist/composables/useKeyboardInset.d.ts +28 -0
  588. package/dist/composables/useKeyboardInset.js +32 -0
  589. package/dist/composables/useLocale.js +10 -7
  590. package/dist/composables/useMobile.js +7 -10
  591. package/dist/composables/usePassthrough.d.ts +228 -0
  592. package/dist/composables/usePassthrough.js +247 -0
  593. package/dist/composables/usePrefill.d.ts +22 -2
  594. package/dist/composables/usePrefill.js +35 -19
  595. package/dist/composables/useSafeAreaInternal.js +1 -1
  596. package/dist/composables/useSegmentedFields.d.ts +2 -2
  597. package/dist/composables/useSsrState.d.ts +20 -0
  598. package/dist/composables/useSsrState.js +13 -0
  599. package/dist/composables/useTableWidthContext.d.ts +24 -4
  600. package/dist/composables/useTableWidthContext.js +31 -28
  601. package/dist/composables/useToast.d.ts +18 -1
  602. package/dist/composables/useToast.js +31 -18
  603. package/dist/composables/useToggleInput.d.ts +44 -0
  604. package/dist/composables/useToggleInput.js +39 -0
  605. package/dist/composables/useViewportWidth.d.ts +5 -25
  606. package/dist/composables/useViewportWidth.js +14 -7
  607. package/dist/deprecation/ai-deprecations.json.d.ts +1977 -289
  608. package/dist/deprecation/ai-deprecations.json.js +1 -1
  609. package/dist/deprecation/removedProps.js +9 -4
  610. package/dist/directives/bbDropdown.d.ts +15 -4
  611. package/dist/directives/bbDropdown.js +31 -9
  612. package/dist/directives/bbTooltip.d.ts +6 -0
  613. package/dist/directives/createPopoverDirective.d.ts +62 -0
  614. package/dist/directives/createPopoverDirective.js +92 -37
  615. package/dist/i18n/index.d.ts +10 -16
  616. package/dist/i18n/locales/cs.json +9 -5
  617. package/dist/i18n/locales/da.json +9 -5
  618. package/dist/i18n/locales/de.json +9 -5
  619. package/dist/i18n/locales/el.json +9 -5
  620. package/dist/i18n/locales/en.json +9 -5
  621. package/dist/i18n/locales/es.json +9 -5
  622. package/dist/i18n/locales/fi.json +9 -5
  623. package/dist/i18n/locales/fr.json +9 -5
  624. package/dist/i18n/locales/hu.json +9 -5
  625. package/dist/i18n/locales/it.json +9 -5
  626. package/dist/i18n/locales/ja.json +9 -5
  627. package/dist/i18n/locales/ko.json +9 -5
  628. package/dist/i18n/locales/nb.json +9 -5
  629. package/dist/i18n/locales/nl.json +9 -5
  630. package/dist/i18n/locales/pl.json +9 -5
  631. package/dist/i18n/locales/pt.json +9 -5
  632. package/dist/i18n/locales/ro.json +9 -5
  633. package/dist/i18n/locales/ru.json +9 -5
  634. package/dist/i18n/locales/sv.json +9 -5
  635. package/dist/i18n/locales/tr.json +9 -5
  636. package/dist/i18n/locales/uk.json +9 -5
  637. package/dist/i18n/locales/zh-cn.json +9 -5
  638. package/dist/icon-scan.d.ts +276 -0
  639. package/dist/icon-scan.js +485 -0
  640. package/dist/icons-whitelist.d.ts +5 -4
  641. package/dist/index.d.ts +40 -21
  642. package/dist/index.js +78 -71
  643. package/dist/llms-full.txt +61164 -27972
  644. package/dist/llms-medium.txt +1482 -366
  645. package/dist/llms.txt +32 -15
  646. package/dist/locale-blueprint.json +9 -5
  647. package/dist/nuxt-auto-imports.d.ts +76 -0
  648. package/dist/nuxt-auto-imports.js +32 -0
  649. package/dist/nuxt-module.d.ts +30 -15
  650. package/dist/nuxt.js +35 -9
  651. package/dist/passthrough-deduper.js +5 -0
  652. package/dist/plugin.d.ts +10 -1
  653. package/dist/plugin.js +29 -19
  654. package/dist/project-dts.d.ts +84 -0
  655. package/dist/project-dts.js +170 -0
  656. package/dist/reset.css +1 -1
  657. package/dist/runtime/nuxt-plugin.js +34 -21
  658. package/dist/styles.css +3 -2
  659. package/dist/types/AlertVariant.d.ts +10 -1
  660. package/dist/types/BadgeVariant.d.ts +16 -5
  661. package/dist/types/ButtonVariant.d.ts +12 -1
  662. package/dist/types/ColumnName.d.ts +30 -3
  663. package/dist/types/CommonProps.d.ts +2 -2
  664. package/dist/types/Config.d.ts +94 -1
  665. package/dist/types/ConfirmVariant.d.ts +8 -1
  666. package/dist/types/DropdownItemVariant.d.ts +8 -1
  667. package/dist/types/FieldLayout.d.ts +32 -0
  668. package/dist/types/IndicatorVariant.d.ts +11 -1
  669. package/dist/types/InputVariant.d.ts +30 -0
  670. package/dist/types/ItemProps.d.ts +50 -0
  671. package/dist/types/Option.d.ts +6 -0
  672. package/dist/types/PtScope.d.ts +15 -0
  673. package/dist/types/RegistryKey.d.ts +10 -0
  674. package/dist/types/TabsVariant.d.ts +25 -0
  675. package/dist/types/ToastVariant.d.ts +12 -2
  676. package/dist/types/TooltipVariant.d.ts +8 -1
  677. package/dist/types/passthrough.d.ts +362 -0
  678. package/dist/types/passthrough.js +78 -0
  679. package/dist/types/ptComponentMap.d.ts +62 -0
  680. package/dist/utilities/functions/hasVnodeListener.d.ts +16 -0
  681. package/dist/utilities/functions/hasVnodeListener.js +12 -0
  682. package/dist/utilities/functions/isImeComposing.d.ts +7 -0
  683. package/dist/utilities/functions/isImeComposing.js +4 -0
  684. package/dist/utilities/functions/itemProps.d.ts +46 -0
  685. package/dist/utilities/functions/itemProps.js +47 -0
  686. package/dist/utilities/functions/slotKey.d.ts +13 -8
  687. package/dist/utilities/functions/slotKey.js +78 -2
  688. package/dist/utilities/functions/snapToStep.js +2 -1
  689. package/dist/utilities/functions/toggleInput.d.ts +98 -0
  690. package/dist/utilities/functions/toggleInput.js +56 -0
  691. package/dist/utilities/functions/warnRemovedAttrs.d.ts +27 -1
  692. package/dist/utilities/functions/warnRemovedAttrs.js +75 -14
  693. package/dist/utilities/misc/listboxMetrics.d.ts +9 -3
  694. package/dist/utilities/misc/listboxMetrics.js +5 -2
  695. package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
  696. package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
  697. package/dist/utils/cssLayers.d.ts +91 -0
  698. package/dist/utils/cssLayers.js +43 -0
  699. package/dist/utils/injectLibraryStyles.d.ts +3 -1
  700. package/dist/utils/injectLibraryStyles.js +24 -23
  701. package/dist/utils/overlayEscapeStack.d.ts +10 -0
  702. package/dist/utils/overlayEscapeStack.js +5 -3
  703. package/dist/utils/passthrough.d.ts +67 -0
  704. package/dist/utils/passthrough.js +100 -0
  705. package/dist/utils/passthroughDeduper.d.ts +2 -0
  706. package/dist/utils/ptScope.d.ts +8 -0
  707. package/dist/utils/ptScope.js +4 -0
  708. package/dist/utils/versionCheck.d.ts +19 -0
  709. package/dist/utils/versionCheck.js +18 -0
  710. package/dist/vite-plugin.d.ts +301 -53
  711. package/dist/vite.js +547 -375
  712. package/llms.txt +33 -16
  713. package/package.json +49 -27
  714. package/scripts/lib/check-fix.mjs +129 -0
  715. package/scripts/lib/component-attr-targets.ts +123 -0
  716. package/scripts/lib/component-tree.ts +648 -0
  717. package/scripts/lib/css-class-check.mjs +326 -0
  718. package/scripts/lib/css-class-surface.mjs +292 -0
  719. package/scripts/lib/css-color-resolve.mjs +172 -0
  720. package/scripts/lib/css-local-check.mjs +267 -0
  721. package/scripts/lib/design-token-manifest.mjs +499 -0
  722. package/scripts/lib/doc-sections.mjs +248 -0
  723. package/scripts/lib/ensure-manifest.mjs +28 -5
  724. package/scripts/lib/eslint-disable.mjs +141 -0
  725. package/scripts/lib/eslint-plugin.d.ts +64 -1
  726. package/scripts/lib/eslint-plugin.mjs +1285 -30
  727. package/scripts/lib/hand-imported-styles.mjs +326 -0
  728. package/scripts/lib/hand-roll-hints.mjs +50 -6
  729. package/scripts/lib/html-attributes.mjs +353 -0
  730. package/scripts/lib/local-components.mjs +177 -0
  731. package/scripts/lib/mcp-config.mjs +87 -58
  732. package/scripts/lib/migrate-fix.mjs +62 -3
  733. package/scripts/lib/project-variant-dts.mjs +122 -0
  734. package/scripts/lib/public-type-exports.mjs +273 -0
  735. package/scripts/lib/slot-key.mjs +147 -0
  736. package/scripts/lib/slot-renames.mjs +46 -0
  737. package/scripts/lib/squashed-slot-words.mjs +133 -0
  738. package/scripts/lib/validate-bb-markup.mjs +2213 -76
  739. package/scripts/lib/wrapper-props.mjs +188 -0
  740. package/dist/ai/BbBaseCheckbox.md +0 -49
  741. package/dist/ai/BbBaseCheckboxGroup.md +0 -64
  742. package/dist/ai/BbBaseColorInput.md +0 -65
  743. package/dist/ai/BbBaseColorPalette.md +0 -39
  744. package/dist/ai/BbBaseDatePicker.md +0 -43
  745. package/dist/ai/BbBaseDatePickerInput.md +0 -73
  746. package/dist/ai/BbBaseInputContainer.md +0 -48
  747. package/dist/ai/BbBaseNumberInput.md +0 -71
  748. package/dist/ai/BbBaseRadio.md +0 -46
  749. package/dist/ai/BbBaseRadioGroup.md +0 -64
  750. package/dist/ai/BbBaseRating.md +0 -52
  751. package/dist/ai/BbBaseSelect.md +0 -88
  752. package/dist/ai/BbBaseSlider.md +0 -56
  753. package/dist/ai/BbBaseSwitch.md +0 -49
  754. package/dist/ai/BbBaseSwitchGroup.md +0 -64
  755. package/dist/ai/BbBaseTag.md +0 -68
  756. package/dist/ai/BbBaseTextInput.md +0 -75
  757. package/dist/ai/BbBaseTextarea.md +0 -62
  758. package/dist/ai/BbBaseTimePickerInput.md +0 -62
  759. package/dist/ai/BbTabsPanes.md +0 -27
  760. package/dist/ai/CommonInputWrapper.md +0 -42
  761. package/dist/ai/source/BbBaseCheckbox.md +0 -461
  762. package/dist/ai/source/BbBaseCheckboxGroup.md +0 -554
  763. package/dist/ai/source/BbBaseColorInput.md +0 -431
  764. package/dist/ai/source/BbBaseColorPalette.md +0 -942
  765. package/dist/ai/source/BbBaseDatePicker.md +0 -1448
  766. package/dist/ai/source/BbBaseDatePickerInput.md +0 -1940
  767. package/dist/ai/source/BbBaseNumberInput.md +0 -617
  768. package/dist/ai/source/BbBaseRadio.md +0 -381
  769. package/dist/ai/source/BbBaseRadioGroup.md +0 -539
  770. package/dist/ai/source/BbBaseRating.md +0 -607
  771. package/dist/ai/source/BbBaseSelect.md +0 -945
  772. package/dist/ai/source/BbBaseSlider.md +0 -1144
  773. package/dist/ai/source/BbBaseSwitch.md +0 -246
  774. package/dist/ai/source/BbBaseSwitchGroup.md +0 -302
  775. package/dist/ai/source/BbBaseTag.md +0 -694
  776. package/dist/ai/source/BbBaseTextInput.md +0 -511
  777. package/dist/ai/source/BbBaseTextarea.md +0 -504
  778. package/dist/ai/source/BbBaseTimePickerInput.md +0 -1037
  779. package/dist/ai/source/BbTabsPanes.md +0 -377
  780. package/dist/ai/source/CommonInputWrapper.md +0 -584
  781. package/dist/alert-variants.d.ts +0 -19
  782. package/dist/assets/svgs/sort.svg_raw.js +0 -4
  783. package/dist/badge-variants.d.ts +0 -19
  784. package/dist/button-variants.d.ts +0 -21
  785. package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
  786. package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
  787. package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
  788. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +0 -40
  789. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +0 -6
  790. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +0 -145
  791. package/dist/components/BbBaseCheckbox/types.d.ts +0 -224
  792. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +0 -19
  793. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +0 -6
  794. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -190
  795. package/dist/components/BbBaseCheckboxGroup/types.d.ts +0 -257
  796. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +0 -43
  797. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +0 -6
  798. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +0 -184
  799. package/dist/components/BbBaseColorInput/types.d.ts +0 -219
  800. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +0 -13
  801. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +0 -395
  802. package/dist/components/BbBaseColorPalette/types.d.ts +0 -40
  803. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.d.ts +0 -20
  804. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +0 -6
  805. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +0 -407
  806. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +0 -47
  807. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +0 -5
  808. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +0 -318
  809. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +0 -5
  810. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +0 -115
  811. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +0 -5
  812. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +0 -116
  813. package/dist/components/BbBaseDatePicker/types.d.ts +0 -108
  814. package/dist/components/BbBaseDatePicker/useDatePickerContext.js +0 -11
  815. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +0 -31
  816. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +0 -6
  817. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -737
  818. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +0 -6
  819. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +0 -204
  820. package/dist/components/BbBaseDatePickerInput/types.d.ts +0 -325
  821. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +0 -6
  822. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +0 -190
  823. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +0 -52
  824. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +0 -6
  825. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +0 -215
  826. package/dist/components/BbBaseNumberInput/types.d.ts +0 -211
  827. package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +0 -33
  828. package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +0 -113
  829. package/dist/components/BbBaseRadio/types.d.ts +0 -179
  830. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +0 -19
  831. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -179
  832. package/dist/components/BbBaseRadioGroup/types.d.ts +0 -223
  833. package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +0 -38
  834. package/dist/components/BbBaseRating/BbBaseRating.vue.js +0 -6
  835. package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +0 -192
  836. package/dist/components/BbBaseRating/types.d.ts +0 -176
  837. package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +0 -19
  838. package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +0 -6
  839. package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +0 -311
  840. package/dist/components/BbBaseSelect/types.d.ts +0 -297
  841. package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +0 -35
  842. package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +0 -6
  843. package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +0 -340
  844. package/dist/components/BbBaseSlider/types.d.ts +0 -200
  845. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +0 -35
  846. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +0 -146
  847. package/dist/components/BbBaseSwitch/types.d.ts +0 -10
  848. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +0 -19
  849. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +0 -6
  850. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -190
  851. package/dist/components/BbBaseSwitchGroup/types.d.ts +0 -8
  852. package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +0 -50
  853. package/dist/components/BbBaseTag/BbBaseTag.vue.js +0 -6
  854. package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +0 -266
  855. package/dist/components/BbBaseTag/types.d.ts +0 -160
  856. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +0 -45
  857. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +0 -6
  858. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +0 -200
  859. package/dist/components/BbBaseTextInput/types.d.ts +0 -209
  860. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +0 -39
  861. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +0 -6
  862. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +0 -187
  863. package/dist/components/BbBaseTextarea/types.d.ts +0 -170
  864. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +0 -27
  865. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +0 -6
  866. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -519
  867. package/dist/components/BbBaseTimePickerInput/types.d.ts +0 -151
  868. package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +0 -16
  869. package/dist/components/BbTabs/BbTabsPanes.vue.js +0 -6
  870. package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +0 -35
  871. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +0 -6
  872. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +0 -107
  873. package/dist/confirm-variants.d.ts +0 -17
  874. package/dist/dropdown-item-variants.d.ts +0 -17
  875. package/dist/indicator-variants.d.ts +0 -20
  876. package/dist/locale-registry.d.ts +0 -37
  877. package/dist/toast-variants.d.ts +0 -20
  878. package/dist/tooltip-variants.d.ts +0 -17
  879. package/dist/types/InputDirection.d.ts +0 -15
  880. package/dist/validated/BbCheckbox.vue.d.ts +0 -29
  881. package/dist/validated/BbCheckbox.vue.js +0 -5
  882. package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +0 -75
  883. package/dist/validated/BbCheckboxGroup.vue.d.ts +0 -34
  884. package/dist/validated/BbCheckboxGroup.vue.js +0 -5
  885. package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -82
  886. package/dist/validated/BbColorInput.vue.d.ts +0 -37
  887. package/dist/validated/BbColorInput.vue.js +0 -5
  888. package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +0 -75
  889. package/dist/validated/BbDatePickerInput.vue.d.ts +0 -41
  890. package/dist/validated/BbDatePickerInput.vue.js +0 -5
  891. package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -90
  892. package/dist/validated/BbDropzone.vue.d.ts +0 -24
  893. package/dist/validated/BbDropzone.vue.js +0 -5
  894. package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +0 -45
  895. package/dist/validated/BbForm.vue.d.ts +0 -28
  896. package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +0 -42
  897. package/dist/validated/BbNumberInput.vue.d.ts +0 -36
  898. package/dist/validated/BbNumberInput.vue.js +0 -5
  899. package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +0 -72
  900. package/dist/validated/BbRadioGroup.vue.d.ts +0 -34
  901. package/dist/validated/BbRadioGroup.vue.js +0 -5
  902. package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -78
  903. package/dist/validated/BbRating.vue.d.ts +0 -30
  904. package/dist/validated/BbRating.vue.js +0 -5
  905. package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +0 -63
  906. package/dist/validated/BbSelect.vue.d.ts +0 -46
  907. package/dist/validated/BbSelect.vue.js +0 -5
  908. package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +0 -109
  909. package/dist/validated/BbSlider.vue.d.ts +0 -36
  910. package/dist/validated/BbSlider.vue.js +0 -5
  911. package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +0 -69
  912. package/dist/validated/BbSwitch.vue.d.ts +0 -29
  913. package/dist/validated/BbSwitch.vue.js +0 -5
  914. package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +0 -75
  915. package/dist/validated/BbSwitchGroup.vue.d.ts +0 -34
  916. package/dist/validated/BbSwitchGroup.vue.js +0 -5
  917. package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -82
  918. package/dist/validated/BbTag.vue.d.ts +0 -36
  919. package/dist/validated/BbTag.vue.js +0 -5
  920. package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +0 -72
  921. package/dist/validated/BbTextInput.vue.d.ts +0 -36
  922. package/dist/validated/BbTextInput.vue.js +0 -5
  923. package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +0 -72
  924. package/dist/validated/BbTextarea.vue.d.ts +0 -36
  925. package/dist/validated/BbTextarea.vue.js +0 -5
  926. package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +0 -70
  927. package/dist/validated/BbTimePickerInput.vue.d.ts +0 -37
  928. package/dist/validated/BbTimePickerInput.vue.js +0 -5
  929. package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -81
  930. package/dist/validated/index.d.ts +0 -43
  931. package/dist/validated/useValidatedField.d.ts +0 -93
  932. package/dist/validated/useValidatedField.js +0 -51
  933. package/dist/validated.js +0 -21
  934. /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts → BbCalendar/CalendarMonthPanel.vue.d.ts} +0 -0
  935. /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts → BbCalendar/CalendarYearPanel.vue.d.ts} +0 -0
  936. /package/dist/{components/BbBaseDatePicker/typeahead.d.ts → composables/useTypeahead.d.ts} +0 -0
  937. /package/dist/{components/BbBaseDatePicker/typeahead.js → composables/useTypeahead.js} +0 -0
@@ -5,16 +5,16 @@
5
5
  > how to choose a component, and the design language — plus a catalogue
6
6
  > of every public component.
7
7
 
8
- Canonical URL: https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/llms-medium.txt
8
+ Canonical URL: https://llms-bitboss-ui.bitboss.it/dist/llms-medium.txt
9
9
 
10
10
  Need more? Fetch the specific component contract you need — one hop, not
11
- the whole catalogue: https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/<ComponentName>.md
12
- Machine-readable API surface: https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/components.json
11
+ the whole catalogue: https://llms-bitboss-ui.bitboss.it/dist/ai/<ComponentName>.md
12
+ Machine-readable API surface: https://llms-bitboss-ui.bitboss.it/dist/ai/components.json
13
13
 
14
14
  ---
15
15
 
16
16
  <!-- dist/ai/guides/ai-router.md -->
17
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/ai-router.md -->
17
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/ai-router.md -->
18
18
 
19
19
  # AI Router
20
20
 
@@ -27,29 +27,44 @@ Knowledge base root (installed package):
27
27
  Package export entry: `bitboss-ui/ai` → `dist/ai/index.md`.
28
28
  Subpaths: `bitboss-ui/ai/components.json`, `bitboss-ui/ai/guides/…`, etc.
29
29
 
30
- **Not installed, or can only fetch URLs?** The same files are served from the
31
- published package at `https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/…`.
32
- If you can make only one request, fetch
33
- [`…@beta/dist/llms-medium.txt`](https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/llms-medium.txt)
30
+ **Not installed, or can only fetch URLs?** The same files are served at
31
+ `https://llms-bitboss-ui.bitboss.it/dist/ai/…`. If you can make only one
32
+ request, fetch
33
+ [`/dist/llms-medium.txt`](https://llms-bitboss-ui.bitboss.it/dist/llms-medium.txt)
34
34
  — this router plus the agent contract, setup, component picker, design language
35
- and the full component catalogue, in ~110 KB.
35
+ and the full component catalogue, in about 200 KB.
36
+
37
+ That host is a thin proxy in front of the published npm tarball. If it is ever
38
+ unreachable, the same paths work directly against
39
+ `https://cdn.jsdelivr.net/npm/bitboss-ui@beta/…` — one hop further from us, and
40
+ pinned to the prerelease channel rather than following it.
36
41
 
37
42
  ---
38
43
 
39
44
  ## Mandatory order (every UI task)
40
45
 
41
- 1. **[Agent contract](./agent-contract.md)** — hard rules (Bb\* boundary,
46
+ 1. **[Agent contract](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md)** — hard rules (Bb\* boundary,
42
47
  setup-first, `href`/`to` navigation, icons, coherence).
43
48
  2. **Setup?** If the project may not have the plugin yet →
44
- [Installation & Plugin Setup](./installation-and-plugin-setup.md). **Set
45
- `locale` explicitly if the app is not Italian** — the plugin defaults to
46
- `'it'` and there is no build-time warning for leaving it unset.
49
+ [Installation & Plugin Setup](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md). **Set
50
+ `locale` explicitly if the app is not English** — the plugin defaults to
51
+ `'en'` and there is no build-time warning for leaving it unset. **On
52
+ Tailwind v4, set `cssLayers: TAILWIND_V4_LAYERS`** (from `bitboss-ui/vite`)
53
+ in the same plugin call, or your utilities on `Bb*` components lose to the
54
+ library's CSS.
47
55
  3. **Choose intent:**
48
- - Whole page / flow → hop to **Recipes** below (one platform file only).
49
- - Single control → [Component picker](./component-picker.md), then open
56
+ - Whole page / flow → hop to **Recipes** below (one platform folder: the
57
+ layout scaffold plus your page recipe).
58
+ - Single control → [Component picker](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/component-picker.md), then open
50
59
  **one** `../<ComponentName>.md` contract (Usage & Guidelines first).
51
60
  4. **Never invent props.** Confirm names in that contract or in
52
- [`../components.json`](../components.json).
61
+ [`../components.json`](https://llms-bitboss-ui.bitboss.it/dist/ai/components.json).
62
+ 5. **Read the tree before styling or debugging.** Every contract opens with a
63
+ **Reachable through `<Name>`** table (every pt part that lands inside the
64
+ components it mounts, and the CSS variables you can set through each), then
65
+ Usage & Guidelines. The **Component tree** is near the end. A part or token
66
+ you cannot find on the top component usually lives in that tree —
67
+ [Agent contract](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md) § Component Tree Rule.
53
68
 
54
69
  ---
55
70
 
@@ -59,43 +74,69 @@ Folders: `../recipes/vue/`, `../recipes/nuxt/`, `../recipes/inertia/`.
59
74
 
60
75
  Same page shapes on each platform; only the data/mutation layer differs.
61
76
 
62
- | Intent | Recipe file (kebab) |
63
- | ------------------------------------ | ----------------------------------------- |
64
- | Filterable listing + bulk/peek | `records-workspace.md` |
65
- | Create/edit form | `record-form.md` |
66
- | Inline-edit table / backlog | `inline-edit-workspace.md` |
67
- | Hierarchy drill-down (nested tables) | `ownership-atlas.md` (Inertia only today) |
68
- | Approvals / triage inbox | `approvals-inbox.md` |
69
- | Uploads + editable queue | `upload-center.md` |
70
- | Multi-step wizard | `wizard-form.md` |
71
- | Onboarding checklist | `onboarding.md` |
72
-
73
- No recipe for detail-with-tabs, settings, dashboards, or profile pages —
74
- compose those from the closest listing/form recipe plus the guides
75
- (page shell, tabs, inline-edit playbook) instead of inventing a new shape.
77
+ **`layout-scaffold.md` is a prerequisite, not an option.** It is the three
78
+ app-owned chrome files — the peek-stack context, the `PageShell` frame and the
79
+ `FloatingBottomPanel` selection dock — that every other recipe's
80
+ `@/components/layout/*` imports resolve to. Open it **with** your page recipe;
81
+ the pair counts as one hop.
82
+
83
+ | Intent | Recipe file (kebab) |
84
+ | ----------------------------------------- | ----------------------------------------- |
85
+ | App chrome every recipe imports (**1st**) | `layout-scaffold.md` |
86
+ | Filterable listing + bulk/peek | `records-workspace.md` |
87
+ | Create/edit form | `record-form.md` |
88
+ | Inline-edit table / backlog | `inline-edit-workspace.md` |
89
+ | Hierarchy drill-down (nested tables) | `ownership-atlas.md` (Inertia only today) |
90
+ | Approvals / triage inbox | `approvals-inbox.md` |
91
+ | Uploads + editable queue | `upload-center.md` |
92
+ | Multi-step wizard | `wizard-form.md` |
93
+ | Onboarding checklist | `onboarding.md` |
94
+ | Settings area (profile, members, keys) | `settings-workspace.md` |
95
+ | ⌘K / Ctrl+K global command palette | `command-palette.md` |
96
+
97
+ That table is the complete set — every file in each platform folder appears in
98
+ it, so a directory listing (or the MCP `list_recipes`) can add nothing.
99
+
100
+ `settings-workspace.md` is the settings shape: one BbTabs side nav in
101
+ `?section=`, and the rule for which settings save on an explicit Save
102
+ (typed fields) and which save instantly (switches, roles, a file).
103
+
104
+ No recipe for detail-with-tabs, dashboards, or profile pages — compose those
105
+ from the closest listing/form recipe plus the guides (page shell, tabs,
106
+ inline-edit playbook) instead of inventing a new shape.
76
107
 
77
108
  ---
78
109
 
79
110
  ## Playbooks (only when the pattern applies)
80
111
 
81
- | Need | Guide |
82
- | -------------------------------------- | ----------------------------------------------------- |
83
- | Tied selects / stale model cleanup | [coherence-playbook](./coherence-playbook.md) |
84
- | Async `items` providers / prefill | [fetch-items-playbook](./fetch-items-playbook.md) |
85
- | `item-text` / `item-value` / disabled | [options-items-playbook](./options-items-playbook.md) |
86
- | Table cell edit ownership | [inline-edit-playbook](./inline-edit-playbook.md) |
87
- | Table row → detail (identity cells) | [agent-contract](./agent-contract.md) § Inline Links |
88
- | Peek that drills into related records | [agent-contract](./agent-contract.md) § Consult-Stack |
89
- | Icons (`lucide:*`, never invent names) | [icons-policy](./icons-policy.md) |
90
- | Tokens / styling around components | [design-language](./design-language.md) |
91
- | Upgrading from bitboss-ui 2.x | [migration/v2-to-v3](./migration/v2-to-v3.md) |
112
+ | Need | Guide |
113
+ | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
114
+ | Tied selects / stale model cleanup | [coherence-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/coherence-playbook.md) |
115
+ | Async `items` providers / prefill | [fetch-items-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/fetch-items-playbook.md) |
116
+ | `item-text` / `item-value` / disabled | [options-items-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/options-items-playbook.md) |
117
+ | Table cell edit ownership | [inline-edit-playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/inline-edit-playbook.md) |
118
+ | Table row → detail (identity cells) | [agent-contract](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md) § Inline Links |
119
+ | Peek that drills into related records | [agent-contract](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md) § Consult-Stack |
120
+ | Icons (`lucide:*`, never invent names) | [icons-policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md) |
121
+ | Tokens / styling around components | [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) |
122
+ | 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 |
123
+ | 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. |
124
+ | 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 |
125
+ | 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 unsupported — [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) § Hard Rules |
126
+ | 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 |
127
+ | 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 |
128
+ | 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 |
129
+ | 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) |
130
+ | Upgrading from bitboss-ui 2.x | [migration/v2-to-v3](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v2-to-v3.md) |
131
+ | 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 |
92
132
 
93
133
  ---
94
134
 
95
135
  ## Full catalogue (last resort)
96
136
 
97
- - [Component index](../index.md) — every consumer + reference-only entry
98
- - [components.json](../components.json) — machine-readable API for validation
137
+ - [Component index](https://llms-bitboss-ui.bitboss.it/dist/ai/index.md) — every consumer + reference-only entry
138
+ - [components.json](https://llms-bitboss-ui.bitboss.it/dist/ai/components.json) — machine-readable **API** (props, events, slots) for validation
139
+ - [design-tokens.json](https://llms-bitboss-ui.bitboss.it/dist/ai/design-tokens.json) — machine-readable **paint** (`--bb-*`). Not the fixture `DESIGN.md`
99
140
  - Composables: `../composables/` (`useToast`, `useConfirm`, table/tabs context, …)
100
141
 
101
142
  Reference-only (`BbBase*` form primitives, listbox internals, …) — **do not
@@ -109,20 +150,18 @@ Exception documented in the agent contract: **`BbBaseButton` is consumer API**.
109
150
  In the app repo (once), after installing `bitboss-ui`:
110
151
 
111
152
  ```bash
112
- npx bitboss-ui ai-init
113
- # optional: also register the MCP server (its peers are not installed with the library)
114
- npm i -D @modelcontextprotocol/sdk zod
115
- npx bitboss-ui ai-init --mcp
153
+ npx bitboss-ui ai-init # --no-mcp skips the MCP server and its peers
116
154
  ```
117
155
 
118
156
  Writes harness-agnostic pointers (`AGENTS.md`) plus Cursor / Copilot / Claude /
119
- Windsurf rules so agents find this router without being told.
157
+ Windsurf rules so agents find this router without being told, registers the
158
+ bitboss-ui MCP server in each harness's config and installs its optional peers.
120
159
 
121
160
  After writing Bb\* markup, validate against the installed contract:
122
161
 
123
162
  ```bash
124
163
  npx bitboss-ui check
125
- # or: npx bitboss-ui check 'src/**/*.{vue,md}' --json
164
+ # or: npx bitboss-ui check src --json (a directory, not a quoted glob: globs need Node 22)
126
165
  ```
127
166
 
128
167
  Optional MCP (`npx bitboss-ui mcp`): search/get components, list/get recipes,
@@ -133,17 +172,50 @@ nothing else); the command names them if they are missing.
133
172
  ---
134
173
 
135
174
  <!-- dist/ai/guides/agent-contract.md -->
136
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/agent-contract.md -->
175
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md -->
137
176
 
138
177
  # Agent Contract
139
178
 
140
179
  Use this contract before generating any UI code with `bitboss-ui`.
141
180
 
181
+ ## Coming from another library
182
+
183
+ The names agents guess most often, and the real ones. There are no aliases:
184
+ a guessed name is an error (`npx bitboss-ui check` or `vue-tsc` says so).
185
+
186
+ | You'd guess | bitboss-ui |
187
+ | ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
188
+ | `toast.success('Saved')`, `{ message }`, `{ description }`, `type` | `const { toast } = useToast(); toast({ title, text, variant: 'success' })`; variants `default` `success` `info` `warning` `destructive` |
189
+ | `<BbToastStack>`, a toaster per page | one `<BbToast />` (and one `<BbConfirm />` for `useConfirm`) at the app root |
190
+ | BbDialog `v-model:open`, `:open` | `v-model` (a boolean) |
191
+ | BbDialog `@close`, `@confirm`, `@cancel`, `#actions` | `@hide` (closing starts) / `@hidden` (closed); your own buttons in `#footer="{ close }"` |
192
+ | 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 |
193
+ | `@row-click`, `@row:click` | `@click:row="(event, item) => …"` |
194
+ | `row-key` | `item-value` |
195
+ | column `title`, `header` | column `label` |
196
+ | `#cell:createdAt`, `#createdAt`, `{ row }` | `#<key>` in kebab-case (`createdAt` → `#created-at`), scope `{ item, value }` |
197
+ | a column keyed `actions` | reserved: the `#actions="{ item }"` slot creates the actions column |
198
+ | BbPagination `current-page`, `v-model:page`, `page-size` | `v-model` (the 1-based page) + `per-page` + `total-items` (or `total-pages`) |
199
+ | `BbDateInput` | `BbDatePickerInput` |
200
+ | `<BbDropdownItem>`, `<BbTableColumn>` | types, not components: rows are `items` objects (`{ key, text, onClick }`), columns are `columns` objects |
201
+ | BbDropdown `#trigger`, `#button` | `#activator="{ props }"`, spread `v-bind="props"` on your button |
202
+ | a menu row's click via `@select` / `@item:selected` | the item's `onClick` (or `href` / `to`); `@item:selected` fires only for `selectable` groups |
203
+ | `icon` on BbTextInput / BbDropdownButton, `#icon` on BbButton | `prepend:icon` / `append:icon`; BbButton's `icon` is the icon-only button |
204
+ | badge `success` / `warning` / `info` / `danger` | built-ins `primary` `secondary` `destructive` `outline`; register more (§ Variants Rule) |
205
+ | BbBadge `text` / `label` prop | the default slot: `<BbBadge>Paid</BbBadge>` |
206
+ | BbSelect `searchable` | search is on by default; `disable-writing` hides it; `multiple` for a multi-select |
207
+ | a native `<input>` in a filter bar (to skip the label) | `<BbTextInput label="Search" hide-label />`: the label stays for screen readers |
208
+ | `--bb-text-secondary` | `--bb-text-muted` |
209
+ | 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)) |
210
+
142
211
  ## Default API Boundary
143
212
 
144
213
  1. Prefer `Bb*` components in consumer-facing code.
145
- 2. Treat low-level primitives (`Base*`, `BbBase*`, `Common*`, listbox internals) as reference-only — **except `BbBaseButton`**, which is a first-class consumer component: the unstyled navigable primitive for any clickable surface (cards, rows, custom links) that isn't a variant-first `BbButton`.
214
+ 2. Treat internal building blocks (`Common*`, listbox internals) as reference-only. The `BbBase*` names that remain are public: **`BbBaseButton`** is a first-class consumer component — the unstyled navigable primitive for any clickable surface (cards, rows, custom links) that isn't a variant-first `BbButton` — and `BbBaseCheckboxIcon` / `BbBaseRadioIcon` / `BbBaseSwitchIcon` are presentational glyphs for custom toggle designs.
146
215
  3. Use the other reference-only components only when the user explicitly asks for internal composition details.
216
+ 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` array in `components.json` lists every one with the prop it belongs to, and `npx bitboss-ui check` says so by name if you slip.
217
+ 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.
218
+ 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.
147
219
 
148
220
  ## Setup-First Rule
149
221
 
@@ -152,32 +224,99 @@ Before writing component usage code, verify:
152
224
  - `bitboss-ui` is installed;
153
225
  - the build plugin is configured (`bitboss-ui/vite` in Vite/Inertia apps, `bitboss-ui/nuxt` in Nuxt apps) — it serves the `virtual:bitboss-ui/icons` and `virtual:bitboss-ui/config` modules;
154
226
  - the runtime plugin is installed (`app.use(bitbossUiPlugin)`; the Nuxt module does this for you), which injects `bitboss-ui/styles.css` unless `injectStyles: false`.
155
- - **the plugin's `locale` option is set, if the app is not Italian.** It
156
- **defaults to `'it'`** — every built-in string (date formats and per-segment
157
- labels on the date/time pickers, select-all text, `useConfirm`'s OK/Annulla
158
- labels, and more) ships Italian until `locale` is set explicitly. There is
159
- no build-time warning for an unset `locale`, only for an unknown one, so
160
- this ships silently. Set `locale: 'en'` (or the target locale) in
161
- `vite.config.*` / `nuxt.config.*`, and if the app switches locale at
227
+ - **the plugin's `locale` option is set, if the app is not English.** It
228
+ **defaults to `'en'`** (since 3.0.0-beta.41; it was `'it'`) — every built-in
229
+ string (date formats and per-segment labels on the date/time pickers,
230
+ select-all text, `useConfirm`'s OK/Cancel labels, and more) ships English
231
+ until `locale` is set explicitly. There is no build-time warning for an
232
+ unset `locale`, only for an unknown one. Set `locale: 'it'` (or the target
233
+ locale) in `vite.config.*` / `nuxt.config.*`, and if the app switches locale at
162
234
  runtime, list every locale it can switch to in `enabledLocales` up front —
163
235
  narrowing `locale` alone narrows the bundle and makes any other locale a
164
236
  compile error at `useBbConfig().setConfig({ locale })`. Details:
165
- [Installation and Plugin Setup](./installation-and-plugin-setup.md) §
237
+ [Installation and Plugin Setup](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md) §
166
238
  `locale`.
167
-
168
- If setup is missing, provide setup code first ([Installation and Plugin Setup](./installation-and-plugin-setup.md)), then component examples.
239
+ - **Tailwind v4: `cssLayers: TAILWIND_V4_LAYERS` is set in the build plugin.**
240
+ Do it when you install bitboss-ui, not after a class "doesn't work".
241
+ Tailwind v4 puts its utilities in `@layer utilities`, and the cascade ranks
242
+ unlayered CSS above every layered rule whatever the specificity; the
243
+ library's CSS is unlayered until you set this, so every utility on a `Bb*`
244
+ component or a `pt:*` part loses. With it, your utilities win.
245
+
246
+ ```ts
247
+ // vite.config.ts (Nuxt: the same value under `bitboss`, same import)
248
+ import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
249
+ bitbossUi({ cssLayers: TAILWIND_V4_LAYERS });
250
+ ```
251
+
252
+ The runtime plugin (`app.use(bitbossUiPlugin)`, bullet above) is what
253
+ injects the sheet, into that layer. **Do not also import
254
+ `bitboss-ui/styles.css`** (in CSS or JS): a hand import adds a second,
255
+ unlayered copy and undoes the setting. Tailwind v3 or plain CSS: leave
256
+ `cssLayers` unset. Details:
257
+ [Installation and Plugin Setup](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md) §
258
+ Cascade layers.
259
+
260
+ - **a `font-family` is set on `body`** (components inherit it; e.g.
261
+ `font-family: system-ui, sans-serif`). There is no font token, so an app
262
+ that sets none renders in the browser's default serif, library controls
263
+ included. The optional reset (`resetCss: true` / `bitboss-ui/reset.css`)
264
+ sets `system-ui` on `body` at zero specificity, so with it this holds
265
+ unless you pick another font.
266
+
267
+ If setup is missing, provide setup code first ([Installation and Plugin Setup](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md)), then component examples.
169
268
 
170
269
  ## Knowledge Base: Router First, Then Curated Guides
171
270
 
172
271
  Read the installed package knowledge base before recommending components:
173
272
 
174
- 1. **`dist/ai/guides/ai-router.md`** — tiny hop map (which file to open next).
175
- 2. **`dist/ai/index.md`** — full catalogue only when the router is not enough.
273
+ 1. **`dist/ai/guides/ai-router.md`** — the hop map. If you opened this contract first, go there and follow it. Do not also load the full catalogue.
274
+ 2. **One** `dist/ai/<Name>.md` contract, or one recipe. `dist/ai/index.md` is a last resort.
275
+ 3. **Paint** is `dist/ai/design-tokens.json` and `dist/ai/design-tokens.manifest.yaml`. A `DESIGN.md` in an app is that app's brand. The `DESIGN.md` in `fixtures/inertia/` of this repository is the Inertia fixture, not the library theme.
176
276
 
177
- Every component doc (`dist/ai/<Name>.md`) **leads with a "Usage & Guidelines" section** — a curated, runtime-tested guide with live examples. Read it before the raw props/events/slots tables, and prefer its 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.
277
+ 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.
178
278
 
179
279
  Consumer projects should run `npx bitboss-ui ai-init` once so AGENTS.md / Cursor / Copilot / Claude / Windsurf all point at this corpus.
180
280
 
281
+ ## Component Tree Rule
282
+
283
+ **A `Bb*` component is a tree, not one component.** `BbTextInput` mounts
284
+ `CommonField` and `CommonFieldInput` → `BbIcon` / `BbSpinner` /
285
+ `ClearableButton`; `BbSelect` adds `BbSelectPopover`,
286
+ which mounts `BbOffCanvas`, `ListBox` → `FlatListBox`, `BbBadge` chips. The
287
+ field box, its border token, the spinner and the listbox rows all live in that
288
+ tree, several levels below the tag you write. Before you style, theme, debug
289
+ or wrap a component — and **before you conclude that a part, a CSS variable
290
+ or a behaviour does not exist** — read its tree:
291
+
292
+ - **Where:** start with **Reachable through `<Name>`**, right under the
293
+ Agent Contract header of every contract (`dist/ai/<Name>.md`): one row per pt
294
+ part that lands inside the tree, and the documented CSS variables you can
295
+ set through each — the answer to "how do I style that?". The pruned
296
+ **Component tree** near the end shows the whole structure; the complete tree
297
+ (repeats and undocumented locals included) is the `tree` field of the entry
298
+ in `components.json`, returned whole by the MCP `get_component` tool.
299
+ - **Internal nodes** (`Common*`, listbox internals) have no API of
300
+ their own. What reaches them is listed on the node: "`BbTextInput`'s pt parts
301
+ land here: `box` → `span.bb-field-input__box`" means you write
302
+ `pt:box` on `BbTextInput`. Never import an internal node to get at it.
303
+ - **Public nodes** (`BbSpinner`, `BbIcon`, `BbSelectPopover`, `BbOffCanvas`, …)
304
+ have their own contract and pt vocabulary. The parent reaches one only
305
+ through its own part that lands on it (`spinner` → `BbSpinner` is
306
+ `pt:spinner`) or a pt map it hands down (`{ panel: 'panel' }`: the parent's
307
+ `pt:panel` is the popover's `panel`, the painted bubble — the same word on
308
+ both sides since 3.0.0-beta.27). Their other props are not exposed through
309
+ the parent.
310
+ - **CSS custom properties are listed on the node that declares them.** Set one
311
+ on that node's root or on the element inside it that reads it — the pt part
312
+ that lands there is how you reach it — never on the outer component's root,
313
+ where the inner declaration silently masks it
314
+ ([design-tokens](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-tokens.md), rule 0).
315
+ - **Behaviour lives in the tree too.** Loading, prefill, the adaptive sheet and
316
+ keyboard handling of a select are the popover's; a text input's clear button
317
+ and state icons are the wrapper's. When a contract does not explain a
318
+ behaviour, open the contract of the public node that owns it.
319
+
181
320
  ## Navigation Rule
182
321
 
183
322
  Offload navigation to the component. The navigation engine lives in `BbBaseButton`, the primitive every button wraps — so `BbButton`, `BbDropdownButton`, `BbBaseButton` itself, and every item-driven surface built on the same core (dropdown items, breadcrumb items, tabs items, pagination in `navigation` mode) all navigate by themselves. Push _as much navigation as possible_ onto this surface — any click whose result is a destination belongs here, not in an `@click` handler:
@@ -205,10 +344,13 @@ CSS** — e.g. a `.plain-link` class that adds only an underline. Use it for:
205
344
  - a link whose appearance is a plain text link, not a button.
206
345
 
207
346
  Rule: **inline text link → `BbBaseButton` + your own link class; never `BbButton`
208
- (including `variant="link"`).** Reserve `BbButton variant="link"` for a
347
+ (including `variant="link"`).** Clickable **cards**: an overlay `BbBaseButton`
348
+ (`absolute inset-0`, `sr-only` name) inside the card, not a `BbBaseButton`
349
+ wrapping the card's content — see [BbBaseButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBaseButton.md) § A
350
+ clickable card. Reserve `BbButton variant="link"` for a
209
351
  standalone, button-spaced navigation control sitting among other buttons ("See
210
- pricing", "Forgot password?"). See [BbButton](../BbButton.md) § Choosing a
211
- variant and [design-language](./design-language.md) § the `.plain-link` helper.
352
+ pricing", "Forgot password?"). See [BbButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md) § Choosing a
353
+ variant and [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) § the `.plain-link` helper.
212
354
 
213
355
  ## Consult-Stack Rule (records listings)
214
356
 
@@ -232,7 +374,7 @@ navigable and the peek stacks.** Concretely:
232
374
  4. `#sidebar-title` follows the top of the stack; the row highlight follows its
233
375
  root, so drilling does not un-highlight the row the consult started from.
234
376
 
235
- See [page-shell](./page-shell.md) § The consult stack and the records-workspace
377
+ See [page-shell](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/page-shell.md) § The consult stack and the records-workspace
236
378
  recipe's conformance checklist.
237
379
 
238
380
  ## Item-Driven Components Rule
@@ -241,11 +383,17 @@ For components accepting `items`:
241
383
 
242
384
  - prefer declarative mapping with `item-text` and `item-value`;
243
385
  - use `dependencies` and `deps-debounce-time` for tied fields;
244
- - use `enforce-coherence` instead of custom watchers for stale model cleanup.
386
+ - use `enforce-coherence` instead of custom watchers for stale model cleanup;
387
+ - to style a row BY ITS DATA (a destructive entry, a tile by tier, a row by
388
+ status), give the row part a per-item function on the instance —
389
+ `:pt:item="({ item, disabled }) => item.danger && 'text-red-600'"` — never a
390
+ custom row slot just for a class. Row parts only (`item` / `option` /
391
+ `row` and their `item-*`), never a state key, never the global map. See
392
+ [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Per-item functions.
245
393
 
246
394
  ## Icons Rule
247
395
 
248
- External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `iconDir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Full workflow: [Icons Policy](./icons-policy.md).
396
+ External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `iconDir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Provider icons ship only when written as a `prefix:name` literal somewhere in the project (any file type, PHP included) or listed in the plugin's `iconWhitelist`; the same rule applies in dev, and a name that does not resolve renders a placeholder and logs an error instead of throwing. Full workflow: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
249
397
 
250
398
  ## Variants Rule
251
399
 
@@ -257,9 +405,10 @@ semantic status badges, a brand button tone — **add it, in both halves**:
257
405
 
258
406
  1. **Register the name** in the build plugin: `badgeVariants`, `buttonVariants`,
259
407
  `alertVariants`, `confirmVariants`, `dropdownItemVariants`, `tooltipVariants`,
260
- `toastVariants`, `indicatorVariants` (`bitboss-ui/vite` or `bitboss-ui/nuxt`).
408
+ `toastVariants`, `indicatorVariants`, `inputVariants`, `tabsVariants`
409
+ (`bitboss-ui/vite` or `bitboss-ui/nuxt`).
261
410
  The plugin regenerates the typed registry, so the name type-checks.
262
- 2. **Style the class** — `.bb-badge.bb-badge--<name>`, `.bb-button--<name>`, … —
411
+ 2. **Style the class** — `.bb-badge--<name>`, `.bb-button--<name>`, … —
263
412
  in a project stylesheet loaded **after** `bitboss-ui/styles.css`. The library
264
413
  ships no CSS for names it does not own.
265
414
 
@@ -271,8 +420,8 @@ wrong fix; registering it is a two-file change you are expected to make.
271
420
 
272
421
  Never write a variant name that is neither shipped nor registered. Canonical
273
422
  soft status palette (accents, the shared treatment, and why the selectors are
274
- doubled): [Design Language](./design-language.md) § Getting soft semantic badges.
275
- Where the option goes: [Installation and Plugin Setup](./installation-and-plugin-setup.md).
423
+ doubled): [Design Language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) § Getting soft semantic badges.
424
+ Where the option goes: [Installation and Plugin Setup](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md).
276
425
 
277
426
  ## Overlay Open-State Rule
278
427
 
@@ -280,14 +429,46 @@ Overlay visibility is controlled by the component's **primary `v-model`** — ne
280
429
 
281
430
  These overlays also return focus to their trigger element on close, by documented default — a consumer `@focus`-reopen handler on that trigger will fight the restore and can loop.
282
431
 
432
+ **Don't teleport overlays out of an open dialog or sheet.** A `<Teleport to="body">` (or any `z-index` layer) opened from inside a `BbDialog` / `BbOffCanvas` renders _under_ the modal and is inert: no clicks, no focus. Anything that floats uses a component that joins the top layer — `BbPopover` for anchored content, `BbDropdown` for menus, a nested `BbOffCanvas` / `BbDialog` for panels, `useToast` for notifications — and paints above the current modal, interactive.
433
+
434
+ ## Date Controls Rule
435
+
436
+ Three date components, chosen by **what the control is** — never by which one
437
+ you can bend into the shape:
438
+
439
+ - **`BbCalendar`** — a calendar that is **always visible**, in a page, panel or
440
+ sheet: a booking / scheduling / availability page, a dashboard's date panel,
441
+ a range picked under From / To fields in a mobile filter sheet. It is bare —
442
+ no `label` / `hint` / `errors` chrome — so name it with `aria-label` (which
443
+ gives its root `role="group"`).
444
+ - **`BbDatePickerInput`** — a date **field** in a form or a filter rail: label,
445
+ typed segments, validation.
446
+ - **`BbDatePicker`** — a calendar **popover** on a trigger you own (a table
447
+ cell, a chip, a button).
448
+
449
+ **Never force a `BbDatePicker` open — or pin any popover open — to fake an
450
+ inline calendar.** The picker has no `inline` prop on purpose; a calendar in the
451
+ page is `BbCalendar`. See [BbCalendar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCalendar.md) § When to use.
452
+
283
453
  ## Global Host Rule
284
454
 
285
455
  `useToast()` and `useConfirm()` write to **module-level singleton state**, not to a component instance. `<BbToast />` and `<BbConfirm />` are the only things that render that state, and each mounted host renders _all_ of it.
286
456
 
287
457
  **Mount exactly one `<BbToast />` and one `<BbConfirm />` for the whole application, at the app root** — `App.vue` under Vue, `app.vue` under Nuxt, the `createInertiaApp` render root under Inertia. Never one per page, per route, per layout branch or per component; a page that calls `toast()` or `confirm()` mounts nothing.
288
458
 
289
- - **Zero hosts** — `toast(...)` enqueues silently and the message never expires (the dismiss timer lives inside the host); `await confirm(...)` never settles, so the caller hangs. Neither throws.
290
- - **Two hosts** — every toast and every dialog renders once per host: duplicated DOM, duplicated `role="status"` live regions, duplicated focus traps. `BbToast` warns in DEV; `BbConfirm` does not warn at all.
459
+ **One exception: areas with their own look.** When the app is split into
460
+ areas that each wrap their pages in a `<BbPtScope>` (a backoffice and a member
461
+ area — see [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Named scopes), mount one
462
+ `<BbToast />` and one `<BbConfirm />` **inside each area's layout** and none at
463
+ the app root, so messages take that area's scope and tokens. It holds only if
464
+ **every** page renders inside exactly one of those layouts — a login page or
465
+ error page with no area layout gets one too — so there is still exactly one
466
+ host at a time; a message fired while switching areas waits for the next
467
+ host.
468
+
469
+ - **Zero hosts** — `toast(...)` enqueues and the message never expires (the dismiss timer lives inside the host); `await confirm(...)` never settles, so the caller hangs. Neither throws. Both warn once per process in DEV.
470
+ - **Two hosts** — every toast and every dialog renders once per host: duplicated DOM, duplicated `role="status"` live regions, duplicated focus traps. Both warn in DEV, naming the host count.
471
+ - **A host that mounts and then unmounts also warns** (since 2026-09-09). This is the failure mode of mounting a host anywhere but the app root: one in a layout works right up until a route renders outside that layout, and the promise then hangs forever. The warning is **deferred by one second**, not immediate, because a late-mounting host renders the pending dialog and settles the promise normally — so a host that unmounts and remounts across a route change is not a failure and stays quiet. What the warning means is "one second later, still nothing to render this". **A confirm that is already OPEN when its last host unmounts does not hang** (since 2026-09-22): if no host comes back within that same second, it resolves `false` quietly — no button callback runs, like `dismissAll()` — and DEV warns; a host that comes back in time keeps the dialog.
291
472
 
292
473
  Standalone examples in this repo (`src/components/*/examples/*.vue`, stories, dev showcases) mount a host inline **because each one is a self-contained root with no application around it**. That is a property of the example harness, not a pattern to copy — in a real app the host is already mounted at the root, and the page must not mount a second one.
293
474
 
@@ -297,10 +478,12 @@ Boolean props default to `false` so the bare `<Comp foo>` shorthand turns the fe
297
478
 
298
479
  - `multiple` on `BbTable`, `BbCheckboxGroup`, `BbSwitchGroup` — multi-select is the expected default; `:multiple="false"` forces single-select.
299
480
  - `selectable` on the option components (`BbSelect`, `BbSelectPopover`, `BbCheckboxGroup`, `BbRadioGroup`, `BbSwitchGroup`) — options are selectable by default; pass a predicate or `false` to restrict. **Not `BbTable`**: there `selectable` is unset by default and is what renders the selection column at all, so leaving it off means "no checkboxes", not "every row selectable".
481
+ - `modelValue` on `BbAlert` — an uncontrolled alert is visible on mount; its `v-model` exists to dismiss it. Defaulting to `false` would hide every alert with no binding.
482
+ - `trueValue` on `BbButton` — the value a `v-model` toggle commits when on (`true` is the natural on-value), not a feature flag.
300
483
 
301
- These are the only intentional default-`true` booleans; anywhere else, `true` default is a bug (`check-api` flags it).
484
+ These are the only intentional default-`true` booleans — exactly the exemptions `check-api` whitelists; anywhere else, `true` default is a bug (`check-api` flags it).
302
485
 
303
- **Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette`, and `BbDropdown` (leftover bindings land silently in `$attrs`). Only `BbTooltip` keeps `hideArrow` (default `false` — arrow shown). See [bb-popover.md](./migration/components/bb-popover.md).
486
+ **Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette`, and `BbDropdown` (leftover bindings land silently in `$attrs`). `BbTooltip` keeps **both** — `hideArrow` (default `false`, so the arrow shows) and `arrowPadding` (default `10`). See [bb-popover.md](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-popover.md).
304
487
 
305
488
  ## Testing Against bitboss-ui
306
489
 
@@ -367,7 +550,7 @@ Symptoms that mean stop: an `<img>` with an initials/icon fallback →
367
550
  `BbAvatar` (**circle-only** — a rounded-square avatar really is yours to build);
368
551
  a hand-written spin animation → `BbSpinner`; a tinted `<span>` pill standing for
369
552
  a status → `BbBadge` with a registered `soft-*` variant. Full symptom index:
370
- [Component Picker](./component-picker.md) § Am I about to rebuild one of ours?
553
+ [Component Picker](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/component-picker.md) § Am I about to rebuild one of ours?
371
554
 
372
555
  `npx bitboss-ui check` prints the avatar and spinner shapes
373
556
  as **advisory hints** — never a build failure, because a round `<img>` is
@@ -380,18 +563,20 @@ case is not decidable from markup and has no hint.
380
563
  - [ ] Recommends `Bb*` components by default.
381
564
  - [ ] Uses only existing props/events/slots from library types.
382
565
  - [ ] Read the component's "Usage & Guidelines" section before writing usage code.
566
+ - [ ] Styled, themed or debugged through the component's **Component tree** (contract section / `tree` in `components.json`) — never concluded a part or token is missing from the top-level SFC alone.
383
567
  - [ ] Navigation goes through `href`/`to` on buttons and items — no `router.push` click handlers for plain destinations.
384
568
  - [ ] Uses only icons from installed `@iconify-json/*` providers or existing `local:*` files.
385
569
  - [ ] Avoids reference-only imports unless explicitly requested.
386
570
  - [ ] Uses declarative coherence/dependencies before manual watchers.
387
- - [ ] Mounts exactly one `<BbToast />` and one `<BbConfirm />` host, at the app root — never inside a page or component.
388
- - [ ] Confirmed the plugin's `locale` is set explicitly if the app isn't Italian (default is `'it'`) — see Setup-First Rule.
571
+ - [ ] An always-visible calendar is `BbCalendar` (named with `aria-label`) — never a `BbDatePicker` forced open; a date field is `BbDatePickerInput` (see § Date Controls Rule).
572
+ - [ ] Mounts exactly one `<BbToast />` and one `<BbConfirm />` host, at the app root — never inside a page or component (areas scoped with `<BbPtScope>`: one per area layout instead, see § Global Host Rule).
573
+ - [ ] Confirmed the plugin's `locale` is set explicitly if the app isn't English (default is `'en'`) — see Setup-First Rule.
389
574
  - [ ] Ran the Rebuild Check over the hand-written markup — nothing reimplements `BbAvatar`, `BbSpinner` or `BbBadge`.
390
575
 
391
576
  ---
392
577
 
393
578
  <!-- dist/ai/guides/installation-and-plugin-setup.md -->
394
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/installation-and-plugin-setup.md -->
579
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md -->
395
580
 
396
581
  # Installation and Plugin Setup
397
582
 
@@ -421,19 +606,16 @@ goes stable, so never reach for it here.
421
606
 
422
607
  Peer dependency: `vue ^3.5.12` — the only required one. `@inertiajs/vue3` is an **optional** peer, needed only in Inertia apps.
423
608
 
424
- `@iconify/collections` is an **optional** peer too, and npm never installs
425
- optional peers automatically — install it yourself if you want the dev-time
426
- provider-icon diagnostics:
427
-
428
- ```bash
429
- npm install -D @iconify/collections
430
- ```
431
-
432
- Without it the plugin has no list of valid Iconify prefixes, so the dev-overlay
433
- errors below (the "install `@iconify-json/<prefix>`" hint and the "did you
434
- mean …?" suggestion for a mistyped icon name) never fire — a wrong provider
435
- icon then surfaces only as `BbIcon`'s generic runtime `Icon "…" does not exist.`
436
- Nothing else changes: icons that resolve still render, in dev and in production.
609
+ You do **not** need `@iconify/collections`. It is declared as an optional peer
610
+ for one reason only: when it happens to be installed, the dev-overlay message
611
+ for an unknown icon prefix can say for certain whether that prefix is a real
612
+ Iconify set ("requires `@iconify-json/mdi`, run …") or not ("neither an
613
+ installed set nor a known Iconify prefix"). Without it the same overlay fires
614
+ with a hedged wording ("no installed icon set has the prefix `mdi`; if it is an
615
+ Iconify set, run …"). A mistyped name inside a set you **have** installed
616
+ (`lucide:eye-misspelled`) is diagnosed from the set's own data in both cases,
617
+ with a "did you mean …?" suggestion. Nothing else changes: icons that resolve
618
+ still render, in dev and in production.
437
619
 
438
620
  **Known-good toolchain:** TypeScript **5.x or 6.x** if your build gate runs
439
621
  `vue-tsc`. Both type-check cleanly against the shipped `.d.ts`; the library
@@ -452,17 +634,19 @@ declared with `generic="T"` emits as a generic _function_ (`declare const
452
634
  __VLS_export: <T = any>(__VLS_props …) => VNode`) rather than the
453
635
  `DefineComponent<…>` object non-generic components get. Vue Language Tools 2
454
636
  does not read props out of that shape, so under `vue-tsc` 2 the template
455
- type-checker silently type-checks **nothing** about the props of these nine
637
+ type-checker silently type-checks **nothing** about the props of these ten
456
638
  public components:
457
639
 
458
640
  `BbSelect` · `BbSelectPopover` · `BbTable` · `BbTabs` · `BbTabsRoot` ·
459
- `BbTree` · `BbRadioGroup` · `BbCheckboxGroup` · `BbSwitchGroup`
641
+ `BbTree` · `BbRadioGroup` · `BbCheckboxGroup` · `BbSwitchGroup` · `BbForm`
642
+ (generic over its `schema` so
643
+ `@submit` is typed from the schema)
460
644
 
461
645
  (and their `BbBase*` primitives). Missing required props, misspelled props,
462
646
  wrong value types — all pass. The trap is that the failure is partial and
463
647
  invisible: unknown-**component** checking still fires, non-generic components
464
648
  like `BbButton` and `BbTextInput` still reject bad props, so the gate is
465
- visibly working and you conclude the generic nine are covered too. A real
649
+ visibly working and you conclude the generic ten are covered too. A real
466
650
  consumer shipped `<BbRadioGroup label="…">` (the prop is `legend`) through six
467
651
  release slices on `vue-tsc@^2.2.12` with a green `--noEmit`; the same file under
468
652
  `vue-tsc` 3.2.8 fails immediately with TS2345 + TS2322.
@@ -499,18 +683,30 @@ without your own polyfill strategy (untested, unsupported).
499
683
  // vite.config.ts
500
684
  import { defineConfig } from 'vite';
501
685
  import vue from '@vitejs/plugin-vue';
502
- import { bitbossUi } from 'bitboss-ui/vite';
686
+ import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
503
687
 
504
688
  export default defineConfig({
505
689
  plugins: [
506
690
  vue(),
507
691
  bitbossUi({
508
692
  iconDir: './src/assets/icons',
693
+ // Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
694
+ cssLayers: TAILWIND_V4_LAYERS,
509
695
  }),
510
696
  ],
511
697
  });
512
698
  ```
513
699
 
700
+ **On Tailwind v4, `cssLayers` is not optional in practice.** Tailwind v4 puts
701
+ its utilities in a cascade layer, and unlayered CSS beats every layered rule;
702
+ without the line above the library's CSS is unlayered, so a utility on a
703
+ `Bb*` component or a `pt:*` part does nothing. §5 has the full story.
704
+
705
+ **Do not import `bitboss-ui/styles.css` yourself** while `injectStyles` is on
706
+ (the default): `app.use(bitbossUiPlugin)` below injects it, into its layer. A hand import
707
+ adds a second, unlayered copy, and that copy outranks your utilities again.
708
+ `npx bitboss-ui check` reports one (`hand-imported-styles`).
709
+
514
710
  ```ts
515
711
  // main.ts
516
712
  import { createApp } from 'vue';
@@ -522,6 +718,10 @@ app.use(bitbossUiPlugin);
522
718
  app.mount('#app');
523
719
  ```
524
720
 
721
+ The plugin registers no components globally: import each one where you use it
722
+ (`import { BbButton, BbSelect } from 'bitboss-ui'`). Guide examples leave those
723
+ imports out. In Nuxt, `autoImport: true` registers them instead (§3).
724
+
525
725
  If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `iconDir`.
526
726
 
527
727
  ## 3) Nuxt
@@ -530,16 +730,65 @@ The Nuxt module wraps the same Vite plugin and auto-registers the runtime plugin
530
730
 
531
731
  ```ts
532
732
  // nuxt.config.ts
733
+ import { TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
734
+
533
735
  export default defineNuxtConfig({
534
736
  modules: ['bitboss-ui/nuxt'],
535
737
  bitboss: {
536
738
  iconDir: './assets/icons', // module default
739
+ // Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
740
+ cssLayers: TAILWIND_V4_LAYERS,
537
741
  },
538
742
  });
539
743
  ```
540
744
 
541
745
  All options below go under the `bitboss` config key. `nuxtLinkName` controls which globally registered component renders router links (default `'NuxtLink'`).
542
746
 
747
+ This module supersedes the standalone `@bitboss-dev/bitboss-ui-nuxt` package, which was the v2 Nuxt integration — uninstall it (see [Migration v2 → v3](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/v2-to-v3.md)).
748
+
749
+ **SSR needs nothing from you.** The library must be bundled into the server
750
+ build (it imports `virtual:bitboss-ui/*` modules only the build plugin can
751
+ resolve — see `ssrViewportWidth` below), and Nuxt already does that: every
752
+ package listed in `modules` goes on `build.transpile`, and since the module
753
+ ships inside `bitboss-ui` the whole package is inlined into both the dev and the
754
+ production server bundle. Verified against a registry-style (tarball) install
755
+ on Nuxt 4.5; the plugin's own `ssr.noExternal` entry is a no-op there.
756
+
757
+ ### `autoImport?: boolean | { components?: boolean; composables?: boolean; validated?: boolean }` (default: `false`, Nuxt only)
758
+
759
+ Registers the library's components and composables with Nuxt's auto-import system, so templates write `<BbButton>` and `useToast()` with no import line:
760
+
761
+ ```ts
762
+ // nuxt.config.ts
763
+ export default defineNuxtConfig({
764
+ modules: ['bitboss-ui/nuxt'],
765
+ bitboss: {
766
+ iconDir: './assets/icons',
767
+ autoImport: true,
768
+ },
769
+ });
770
+ ```
771
+
772
+ `true` means `{ components: true, composables: true }`, `BbForm` and
773
+ `useBbFormContext` included; pass the object form to narrow it. (The
774
+ `validated: true` option is gone since 3.0.0-beta.41: the form controls are the
775
+ form-aware ones everywhere.)
776
+
777
+ **It is off by default on purpose, and leaving it off is the better setup.**
778
+ Explicit imports are what make `vueCompilerOptions.checkUnknownComponents` (see
779
+ section 9) able to fail the build on a mistyped or unimported `Bb*` tag; with
780
+ auto-imports on, every `Bb*` tag resolves and that gate goes quiet. Reach for it
781
+ when you are moving an app off `@bitboss-dev/bitboss-ui-nuxt`, whose templates
782
+ were written against auto-imported components, and adding the imports is a
783
+ separate commit from the upgrade.
784
+
785
+ Two things it deliberately does not do. It never overrides your own components:
786
+ a `~/components/BbButton.vue` in the app keeps winning, and the library only
787
+ fills names the app has not claimed. And it never registers the library's
788
+ `useId` — Nuxt already auto-imports Vue's, and shadowing it would silently
789
+ redirect every existing `useId()` call in the app; import that one explicitly if
790
+ you want it.
791
+
543
792
  ## 4) Inertia
544
793
 
545
794
  Inertia apps are Vite apps: configure `bitboss-ui/vite` exactly as in section 2, install `@inertiajs/vue3`, then install the runtime plugin in `createInertiaApp`:
@@ -566,6 +815,23 @@ defaults, analytics, whatever — that keeps winning: a component registered und
566
815
  `inertiaLinkName` (default `'Link'`) is always preferred over the imported one.
567
816
  Register it under a different name and point `inertiaLinkName` at it.
568
817
 
818
+ **Inertia SSR** (`build:ssr` and the dev SSR endpoint alike) needs no extra
819
+ config: the build plugin adds `ssr: { noExternal: ['bitboss-ui'] }` for you,
820
+ because the library imports `virtual:bitboss-ui/*` modules that only the
821
+ plugin can resolve — externalised to Node, a server render fails with
822
+ `ERR_UNSUPPORTED_ESM_URL_SCHEME … 'virtual:'` and Inertia silently falls back
823
+ to client rendering. If your `vite.config.ts` still carries that line from
824
+ before 3.0.0-beta.29, it can go (the plugin never duplicates yours).
825
+
826
+ **Upgrading under Docker / Laravel Sail.** After `npm install` of a new
827
+ version, stop the dev server, delete `node_modules/.vite`, and start it again
828
+ — all inside the container that runs Vite. A server started before the
829
+ install keeps serving the previous version's pre-bundled JS next to the new
830
+ CSS, which looks exactly like a regression. From 3.0.0-beta.35 on, the page says so in dev: a console warning names both versions when the JS and `styles.css` disagree, and the first dev start after an upgrade prints the `npx bitboss-ui changelog --since <old version>` command that lists what broke. The `bitboss-ui` CLI (`check`,
831
+ `changelog`) runs on Node 20.19 or later, so the container's Node works; a
832
+ quoted glob argument (`check 'resources/**/*.vue'`) needs Node 22, so pass
833
+ the directory instead (`check resources/js`).
834
+
569
835
  ## 5) Styling
570
836
 
571
837
  Two runtime options control CSS:
@@ -575,7 +841,7 @@ Two runtime options control CSS:
575
841
 
576
842
  Guaranteed order when injected: **reset → library styles → all other stylesheets**, so app-local CSS can always override the library.
577
843
 
578
- `resetCss` stays opt-in because Tailwind projects already ship Preflight — a second reset is usually unnecessary.
844
+ `resetCss` stays opt-in because Tailwind projects already ship Preflight — a second reset is usually unnecessary. A reset of SOME kind is a prerequisite of the components, not a nicety: every size in the component sheets is written for `border-box`, and native controls and fieldsets are expected to arrive without their browser chrome. Preflight provides all of that; on a page with neither Preflight nor this file, a selectable table's fieldset grows a groove border and a 36px cell renders 49px. `reset.css` is optional only in the sense that you may bring your own — the component test suite runs against this file, with no Tailwind on the page.
579
845
 
580
846
  **Tailwind v4 cascade layers vs. scoped `<style>`:** Tailwind v4's `@import
581
847
  'tailwindcss'` puts every utility class in `@layer utilities`. A Vue SFC's
@@ -644,34 +910,279 @@ Leave `resetCss` at `false` here — Preflight already reset everything.
644
910
  Nothing else about the plugin changes; `injectStyles` controls only whether the
645
911
  library injects its own `<style>`.
646
912
 
647
- **Tailwind v4 apps do not need this** — source order does not decide their ties
648
- at all. `@import 'tailwindcss'` puts Preflight in a real `@layer base` and
649
- utilities in `@layer utilities`, and layered rules lose to unlayered rules of
650
- equal specificity **regardless of source order**. `dist/styles.css` declares no
651
- `@layer`, so the library wins those ties wherever it is injected: leave
652
- auto-injection on. The same mechanic bites the other way, and silently — a
653
- utility cannot re-size a Bb component either. `<BbButton class="h-12 px-6">`
654
- loses to the library's own `.bb-button { height: var(--h); padding-left:
655
- var(--px); padding-right: var(--px) }` (equal specificity, unlayered), with no
656
- warning from anything. Size Bb components through their props and tokens, never
657
- utilities. (Same trap as the scoped-`<style>` case above, one level up.)
913
+ **Tailwind v4 apps do not need `injectStyles: false`** — source order does not
914
+ decide their ties at all. `@import 'tailwindcss'` puts Preflight in a real
915
+ `@layer base` and utilities in `@layer utilities`, and **a layered rule loses to
916
+ an unlayered one regardless of source order**. Leave auto-injection on and use
917
+ `cssLayers` below.
918
+
919
+ ### Cascade layers — the switch that decides who wins a tie
920
+
921
+ The cascade weighs **layer before specificity**. Unlayered CSS beats every
922
+ layered rule, however specific the layered one is. That one fact means there is
923
+ no single correct default, so the option is opt-in and you tell the library
924
+ where it sits:
925
+
926
+ | your CSS | `cssLayers` | who wins a tie |
927
+ | -------------------------------------------- | ----------------------------------- | ---------------------------------------------- |
928
+ | no layers (plain CSS, Tailwind v3) | unset (default) | source order — library first, so your CSS wins |
929
+ | Tailwind v4, or any layered CSS | your full order, ours in it (below) | exactly what your array says |
930
+ | no layers, and you want to override anything | `['bitboss-ui']` | you do, always |
931
+
932
+ The value is always an array: your complete layer order with `bitboss-ui` in
933
+ it, and `bitboss-ui-reset` immediately before it **when `resetCss` is on**.
934
+ With the reset off you may list `bitboss-ui-reset` anyway — an unused layer is
935
+ just empty — so the constant below works in every project, and you do not need
936
+ to know that Tailwind carries a reset of its own to use it.
937
+
938
+ **We do not ask you to add an `@layer` line to your stylesheet.** The plugin
939
+ injects the declaration ahead of its own rules, and a layer's position is fixed
940
+ by its first mention — so the order you configure is the order you get.
941
+
942
+ #### Tailwind v4
943
+
944
+ ```ts
945
+ // vite.config.ts — or the `bitboss` key in nuxt.config.ts
946
+ import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
947
+
948
+ bitbossUi({
949
+ iconDir: './assets/icons',
950
+ cssLayers: TAILWIND_V4_LAYERS,
951
+ });
952
+ ```
953
+
954
+ `TAILWIND_V4_LAYERS` is
955
+ `['theme', 'base', 'bitboss-ui-reset', 'bitboss-ui', 'components', 'utilities']`:
956
+ Tailwind's own order with ours **after `base`**, so Preflight cannot outrank
957
+ the components, and **before `utilities`**, so `<BbButton class="px-6">`
958
+ works. Prefer the constant to the literal — a six-item array that has to be
959
+ exactly right is the kind of thing a typo turns into a silent loss of every
960
+ tie.
961
+
962
+ The same order decides your own CSS overrides on library classes (allowed for
963
+ fine-tuning, unsupported — [design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) § Hard
964
+ Rules): a rule written in a layer that comes **after** `bitboss-ui` in this
965
+ array (`components`, `utilities`), or left unlayered, beats the library's
966
+ declaration with no specificity games — a single class selector is enough.
967
+ Keep those overrides in one project stylesheet or one `@layer` block so an
968
+ upgrade has a single place to re-check.
969
+
970
+ #### Server-rendered apps (Nuxt, Inertia SSR)
971
+
972
+ The runtime plugin injects the stylesheet **in the browser only**, so a server
973
+ render needs the sheet from somewhere else.
974
+
975
+ **Nuxt: nothing to do.** With `cssLayers` set, the module adds the layered
976
+ sheet to `nuxt.options.css` itself, first, so the server's HTML is styled and
977
+ the layer order is declared before Tailwind's; the browser injection is
978
+ switched off so the sheet loads once. Set `injectStyles: false` to opt out and
979
+ import the CSS yourself, as below.
980
+
981
+ **Vite SSR, Inertia SSR:** import the sheet from your CSS entry, into its
982
+ layer, and switch the injection off:
983
+
984
+ ```css
985
+ /* app.css — the order line FIRST: a layer's place is fixed by its first
986
+ mention, and with the injection off nothing else declares ours. */
987
+ @layer theme, base, bitboss-ui-reset, bitboss-ui, components, utilities;
988
+ @import 'tailwindcss';
989
+ @import 'bitboss-ui/styles.css' layer(bitboss-ui);
990
+ ```
991
+
992
+ ```ts
993
+ bitbossUi({ cssLayers: TAILWIND_V4_LAYERS, injectStyles: false });
994
+ ```
995
+
996
+ The order line is `TAILWIND_V4_LAYERS` written out. Without it `bitboss-ui`
997
+ would be first mentioned after Tailwind's own layers and outrank every
998
+ utility. Before
999
+ 3.0.0-beta.36 the package exported the sheets under the `import` condition
1000
+ only, so Tailwind's resolver refused this `@import` and a `node_modules/…`
1001
+ path was the only way in.
1002
+
1003
+ #### Tailwind v3, or plain CSS
1004
+
1005
+ Leave `cssLayers` unset. v3 emits unlayered CSS, and two unlayered stylesheets
1006
+ are decided by source order — which auto-injection already puts in your favour.
1007
+
1008
+ On Tailwind v3, also point `passthroughDeduper` at a module using
1009
+ `tailwind-merge@2` (the bundled v3 speaks Tailwind v4 class names), or set it
1010
+ to `false`.
1011
+
1012
+ #### Tailwind v3 — making utilities win anyway (opt-in)
1013
+
1014
+ v3 has no native layers of its own, but you can put its output into real ones
1015
+ by wrapping the directives yourself. This is the shape PrimeVue documents, and
1016
+ it is the only way to get v4's behaviour on v3:
1017
+
1018
+ ```css
1019
+ /* your Tailwind entry, e.g. app.css */
1020
+ @layer tailwind-base, bitboss-ui-reset, bitboss-ui, tailwind-utilities;
1021
+
1022
+ @layer tailwind-base {
1023
+ @tailwind base;
1024
+ }
1025
+
1026
+ @layer tailwind-utilities {
1027
+ @tailwind components;
1028
+ @tailwind utilities;
1029
+ }
1030
+ ```
1031
+
1032
+ ```ts
1033
+ bitbossUi({
1034
+ iconDir: './assets/icons',
1035
+ cssLayers: [
1036
+ 'tailwind-base',
1037
+ 'bitboss-ui-reset',
1038
+ 'bitboss-ui',
1039
+ 'tailwind-utilities',
1040
+ ],
1041
+ });
1042
+ ```
1043
+
1044
+ Both halves are required and they must agree: the CSS puts Tailwind's expanded
1045
+ output INTO the layers, and `cssLayers` puts us between them. Verified against
1046
+ a real v3 build — `.p-4` on a `Bb*` component wins, and Preflight no longer
1047
+ outranks the components.
1048
+
1049
+ This is the one case where you write an `@layer` line yourself, because the
1050
+ line has to wrap YOUR directives and we cannot reach them. Ours is emitted as
1051
+ usual; the two declarations name the same order, and a layer's position is
1052
+ fixed by its first mention, so they agree rather than fight.
1053
+
1054
+ #### "I just want to override things and not think about it"
1055
+
1056
+ ```ts
1057
+ bitbossUi({
1058
+ iconDir: './assets/icons',
1059
+ cssLayers: ['bitboss-ui'], // ['bitboss-ui-reset', 'bitboss-ui'] with resetCss: true
1060
+ });
1061
+ ```
1062
+
1063
+ Declares our layer(s) and nothing else. All of your unlayered CSS then wins,
1064
+ whatever its specificity.
1065
+
1066
+ > **Do not use this if your app loads a baseline stylesheet.** A reset is
1067
+ > unlayered CSS made of element selectors, which is the exact combination this
1068
+ > value inverts: `normalize.css`, your own `baseline.css`, or **Tailwind v3's
1069
+ > Preflight** stop losing to our components on specificity and start outranking
1070
+ > them outright. Measured on a real v3 build, a component rule of
1071
+ > `margin: 5px` renders as `0px` — Preflight's `margin: 0` wins. The library
1072
+ > does not look "overridable", it looks broken: controls lose their height,
1073
+ > padding and borders, and nothing warns. If you want utilities to win on v3,
1074
+ > use the layer hack above, which keeps the reset below us where it belongs.
1075
+
1076
+ Two further consequences: your global element rules (`button {}`, `input {}`)
1077
+ now outrank component internals too — and this is the **wrong** value for a
1078
+ layered app, because your own layers are declared later and land above ours,
1079
+ Preflight included. A Tailwind v4 app uses the array above.
1080
+
1081
+ #### What "the utility loses" actually means
1082
+
1083
+ Not "utilities stop working on `Bb*` components". The cascade picks a winner
1084
+ **per property**, so a layered utility loses only where we declare that exact
1085
+ property on that element. Anything we leave alone is uncontested and simply
1086
+ applies. Measured against the shipped sheet, v4 with `cssLayers` unset:
1087
+
1088
+ | on a `BbButton` | outcome | why |
1089
+ | --------------- | ---------------- | ------------------------------------- |
1090
+ | `w-20` | applies | we never declare `width` |
1091
+ | `h-12` | applies | we declare `min-height`, not `height` |
1092
+ | `m-4` | applies | we never declare `margin` |
1093
+ | `p-4` | **half applies** | top/bottom land, left/right lose |
1094
+ | `px-6` | no effect | we declare both padding longhands |
1095
+ | `rounded-lg` | no effect | we declare `border-radius` |
1096
+ | `text-lg` | no effect | we declare `font-size` |
1097
+ | `gap-2` | no effect | we declare `gap` |
1098
+
1099
+ **The shorthand row is the one that hurts.** A clean loss is legible: you write
1100
+ `px-6`, nothing moves, you go looking. `p-4` expands to four longhands, we
1101
+ declare only the horizontal two, so their vertical padding applies while our
1102
+ horizontal survives — a component nobody designed, with no signal that anything
1103
+ was overridden.
1104
+
1105
+ So `cssLayers` does not turn utilities from broken into working. It turns them
1106
+ from a per-property lottery into "always wins". **Predictability is the
1107
+ feature, not capability** — and it is why the fix is worth taking even in an app
1108
+ where the handful of utilities you tried happened to land.
1109
+
1110
+ #### Symptoms and what they mean
1111
+
1112
+ | what you see | cause | fix |
1113
+ | --------------------------------------------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------- |
1114
+ | 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` |
1115
+ | every component lost its background / border | you listed only our two layers in a layered (v4) app | `cssLayers: TAILWIND_V4_LAYERS` |
1116
+ | 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 |
1117
+ | 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 |
1118
+ | 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` |
1119
+ | 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 |
1120
+
1121
+ A malformed value **fails the build**, never the browser: a wrong layer order is
1122
+ invisible at runtime, because the CSS still parses and merely loses every tie.
1123
+
1124
+ #### The one thing layers do not fix
1125
+
1126
+ Layers decide ties between rules. They do not help when a component's own
1127
+ inline `style` sets a property, because inline styles beat every layer. Where a
1128
+ component needs to be positioned or sized by its parent, it exposes a CSS
1129
+ variable, and that hook works in every configuration:
1130
+
1131
+ ```html
1132
+ <!-- takes the row's slack; works on v3, v4, layered or not -->
1133
+ <BbBreadcrumbs class="min-w-0" style="--flex-grow: 1" :items="crumbs" />
1134
+ ```
1135
+
1136
+ Reach for the documented variable before reaching for a utility.
658
1137
 
659
1138
  ## 6) Icons
660
1139
 
661
- - `iconDir` (required) is scanned recursively for `.svg` files; each file becomes `local:<basename>`.
662
- - Provider icons (`lucide:pencil`, `mdi:home`, …) require the matching `@iconify-json/<prefix>` package installed in the consumer app. Missing packages/icons produce actionable dev-overlay errors **only when the optional `@iconify/collections` peer is installed** (see [Install](#1-install)); otherwise you get `BbIcon`'s generic runtime error instead. Production builds report neither — this is a dev-time aid.
663
- - Production builds bundle **only statically referenced** provider icons — write icon names as literal strings (`icon="lucide:trash-2"`), never assemble them dynamically.
664
- - The plugin also writes `node_modules/.bitboss-ui/local-icons.json` and (in dev, unless `vscodeSettings: false`) wires `.vscode/settings.json` so the Iconify editor extension previews local icons.
1140
+ - `iconDir` (default `'./assets/icons'`) is scanned recursively for `.svg` files; each file becomes `local:<basename>`. **`local:` ships everything.**
1141
+ - Provider icons (`lucide:pencil`, `mdi:home`, …) require the matching `@iconify-json/<prefix>` package installed in the consumer app. **Providers ship only what is scanned or whitelisted**: the plugin reads the whole project as bytes — every file under the Vite root, PHP and Blade and JSON and SQL included — for `<prefix>:<name>` literals of the installed sets, and emits one lazy chunk per name that resolves. Skipped: gitignored paths (every `.gitignore` level), `node_modules`, `vendor`, `storage`, the build `outDir`, hidden paths, binaries, and `iconsScanner.exclude` globs; `iconsScanner.include` adds locations. The scan is cached by content hash under `node_modules/.cache/bitboss-ui/`, runs on 2–4 worker threads once a project passes ~1500 files (a cold scan is disk-bound, and the threads let a slow disk serve reads in parallel — roughly 0.2 s for 10k files on a laptop), prints one line (file count, elapsed, threads) after a cold scan, and stays silent when warm.
1142
+ - **This holds in dev exactly as in prod.** Dev registers the same scanned-plus-whitelisted set, re-scans a file on every save, and hot-updates the registry — a new literal renders without a restart, and a name that is neither scanned nor whitelisted fails on first render in dev instead of after deploy.
1143
+ - **Names the scanner cannot see** — composed at runtime, stored in a database, chosen in an admin UI — go in `iconWhitelist` (exact names or globs). An entry that resolves in no installed set fails the build with the actionable message.
1144
+ - **A name that does not resolve renders the built-in placeholder** (a question mark in a circle, sized and coloured like the icon it replaces, with `data-bb-icon-missing="<name>"`) and logs one `console.error` per name per page load, in both environments; dev also raises the Vite error overlay. The message is the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, a real icon nobody wrote as a literal is told to use `iconWhitelist`, and an uninstalled prefix gets the list of installed sets plus the `npm install -D @iconify-json/<prefix>` command (the optional `@iconify/collections` peer only sharpens that wording, see [Install](#1-install)). A missing `local:` icon names the `.svg` that is not in `iconDir`. `BbIcon` never throws for a missing name, so the surrounding tree stays mounted.
1145
+ - In dev (unless `vscodeSettings: false`) the plugin also writes `.vscode/bitboss-ui.local-icons.json` and wires `.vscode/settings.json` so the Iconify editor extension previews local icons and Tailwind IntelliSense completes inside `pt:*` / `:pt`. The collection lives in the project tree, not under `node_modules`, so a host editor sees what a container (Sail, a named `node_modules` volume) wrote.
665
1146
 
666
- Policy for choosing icons: [Icons Policy](./icons-policy.md).
1147
+ Policy for choosing icons: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
667
1148
 
668
1149
  ## 7) Complete Option Reference
669
1150
 
670
1151
  Options are the same for `bitboss-ui/vite` and the `bitboss` key in Nuxt.
671
1152
 
672
- ### `iconDir: string` (required)
1153
+ ### `iconDir?: string` (default: `'./assets/icons'`)
1154
+
1155
+ Path to local SVG icons, absolute or relative to project root. Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`. Every file in it ships. Only needed when you use `local:` icons: a missing folder at the default path is silent, while a custom `iconDir` that resolves to a missing or SVG-less folder logs a build warning.
1156
+
1157
+ ### `iconsScanner?: { include?: string[]; exclude?: string[]; maxFileSize?: number }`
1158
+
1159
+ Tunes the provider-icon source scan (see [Icons](#6-icons)). All three are optional and additive to the defaults; the root is always scanned.
1160
+
1161
+ - `include` — extra paths or globs scanned **in addition** to the Vite root: a vendor package that carries icon names, a directory outside the root (`'../shared/ui'`, `'vendor/acme/ui-kit/**/*.php'`). Relative entries resolve against the root. An entry is explicit, so the built-in skips (`vendor`, hidden segments, `.gitignore` files above it) do not apply to the entry itself — only to what lies beneath it. The Nuxt module adds the project `rootDir` here automatically, because Nuxt roots Vite at `app/`.
1162
+ - `exclude` — globs removed from the scan on top of the defaults, in gitignore syntax, relative to the root (`['resources/legacy/**', '**/*.sql']`).
1163
+ - `maxFileSize` — bytes. Exists only so a database dump is not read into memory; the default is 256 MiB, so a real source file is never skipped for its size.
1164
+
1165
+ ```ts
1166
+ bitbossUi({
1167
+ iconDir: './resources/icons',
1168
+ iconsScanner: {
1169
+ include: ['vendor/acme/ui-kit/src'],
1170
+ exclude: ['database/dumps/**'],
1171
+ },
1172
+ });
1173
+ ```
1174
+
1175
+ ### `iconWhitelist?: string[]`
673
1176
 
674
- Path to local SVG icons, absolute or relative to project root. Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`.
1177
+ Provider icons that **always** ship, scanned or not — exact names (`'tabler:crown'`) and globs (`'tabler:calendar-*'`, expanded against the installed set). This is the home of every name the scanner cannot see as a literal: composed at runtime, read from a database, picked by an admin. An entry that resolves in no installed set — a typo, an uninstalled prefix, a glob matching nothing — **fails the build** with the same actionable message the dev overlay shows for a missing icon. `local:` names never belong here (they all ship already).
1178
+
1179
+ ```ts
1180
+ bitbossUi({
1181
+ iconDir: './resources/icons',
1182
+ // `icon` is stored per category in the database; the admin picks from these.
1183
+ iconWhitelist: ['tabler:category', 'tabler:tag', 'tabler:calendar-*'],
1184
+ });
1185
+ ```
675
1186
 
676
1187
  ### `injectStyles?: boolean` (default: `true`)
677
1188
 
@@ -679,32 +1190,224 @@ Auto-inject the library stylesheet at runtime. If `false`, you must `import 'bit
679
1190
 
680
1191
  ### `resetCss?: boolean` (default: `false`)
681
1192
 
682
- Inject the reset stylesheet (always ordered before the library stylesheet). Keep `false` and import `bitboss-ui/reset.css` if you prefer explicit control.
1193
+ Inject the reset stylesheet (always ordered before the library stylesheet). Keep `false` and import `bitboss-ui/reset.css` if you prefer explicit control. Besides the box-model and form-control resets it sets a `system-ui` font stack on `body` (zero specificity: any `font-family` you set wins).
1194
+
1195
+ ### `cssLayers?: string[]` (default: unset)
1196
+
1197
+ Wraps the library's stylesheets in CSS cascade layers and declares where they
1198
+ sit. Opt-in. Full guide with copy-paste blocks in §5 → _Cascade layers_.
1199
+
1200
+ The value is your app's **complete** layer order with `bitboss-ui` in it, and
1201
+ `bitboss-ui-reset` before it when `resetCss` is on (listing it anyway is fine).
1202
+ Unset means unlayered, today's behaviour, right for plain CSS and Tailwind v3.
1203
+
1204
+ ```ts
1205
+ import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
1206
+
1207
+ // Tailwind v4 — ['theme', 'base', 'bitboss-ui-reset', 'bitboss-ui', 'components', 'utilities']
1208
+ cssLayers: TAILWIND_V4_LAYERS;
1209
+ // no layers of your own, and you want to override anything
1210
+ cssLayers: ['bitboss-ui']; // ['bitboss-ui-reset', 'bitboss-ui'] with resetCss: true
1211
+ ```
1212
+
1213
+ You do not add an `@layer` line to your own CSS — the plugin emits the
1214
+ declaration ahead of its rules. An invalid array, or a boolean, fails the build
1215
+ with a message containing a working replacement.
1216
+
1217
+ ### `pt?: PtGlobalMap` (default: `{}`)
1218
+
1219
+ The global passthrough map — what every instance of a component starts from,
1220
+ keyed by component name, then by `part` or `part:state`:
1221
+
1222
+ ```ts
1223
+ bitbossUi({
1224
+ pt: {
1225
+ BbButton: {
1226
+ icon: 'text-slate-500',
1227
+ 'icon:loading': { class: 'opacity-50', attrs: { 'data-track': 'busy' } },
1228
+ },
1229
+ },
1230
+ });
1231
+ ```
1232
+
1233
+ Every component has an entry available — the parts and states of each are in
1234
+ the passthrough guide's table (form controls share one family vocabulary, so
1235
+ "every field box is square" is one line per control today). A per-instance
1236
+ `pt` / `pt:<part>` merges after it: classes append (a conflicting utility is
1237
+ replaced — see `passthroughDeduper`), styles merge, attributes win. It ships as JSON inside the config module, so it is
1238
+ **data only** — a function anywhere in it fails the build, naming the path and
1239
+ the per-instance form to bind the listener with instead. Component names and
1240
+ part words are typed (wrap a map kept in its own file in `definePt`, exported
1241
+ from `bitboss-ui/vite` and `bitboss-ui/nuxt`) and checked against the manifest
1242
+ at build time. **Build-time only**: this option is the single source — there
1243
+ is no per-app plugin option, no `setConfig`, and `useConfig().pt` is frozen.
1244
+ Grammar, merge rules and the part/state vocabulary:
1245
+ [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md).
1246
+
1247
+ ### `ptScopes?: Record<string, PtGlobalMap>` (default: none)
1248
+
1249
+ Named maps with the same shape and rules as `pt`, applied only inside a
1250
+ `<BbPtScope name="…">` subtree — a backoffice and a member area sharing every
1251
+ component but not a look. Per key: `pt`, then the active scopes from the
1252
+ outermost `<BbPtScope>` in, then the instance's `class` / `pt` / `pt:*`. The
1253
+ names become the `BbPtScopeName` union `<BbPtScope name>` accepts, generated
1254
+ when the dev server or a build runs. Order, nesting, overlays and where the
1255
+ toast / confirm hosts go: [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Named scopes.
1256
+
1257
+ ```ts
1258
+ import { definePt } from 'bitboss-ui/vite';
1259
+
1260
+ bitbossUi({
1261
+ ptScopes: {
1262
+ webapp: definePt({ BbButton: { root: 'rounded-full' } }),
1263
+ backoffice: definePt({ BbButton: { root: 'rounded-md' } }),
1264
+ },
1265
+ });
1266
+ ```
683
1267
 
684
1268
  ### `injectDirectives?: boolean` (default: `true`)
685
1269
 
686
1270
  Registers the global `v-bb-tooltip`, `v-bb-dropdown`, `v-bb-color`, `v-bb-date` and `v-bb-time` directives when the runtime plugin installs — all five, on both the Vue and the Nuxt runtime. Each registration is skipped if the app already declared a directive under that name, so disable the option only if you want none of them.
687
1271
 
1272
+ ### `passthroughDeduper?: false | string` (default: the bundled `tailwind-merge`)
1273
+
1274
+ Removes conflicting utilities from every resolved passthrough class list, so
1275
+ a later source wins by precedence rather than by stylesheet order:
1276
+ `pt:icon="text-slate-400"` with `pt:icon:loading="text-red-500"` leaves only
1277
+ `text-red-500` on the icon while loading.
1278
+
1279
+ - **Unset** — the bundled `tailwind-merge` v3, which understands Tailwind v4.
1280
+ It is a regular dependency of `bitboss-ui`; there is nothing to install.
1281
+ - **`false`** — off. Classes append and the stylesheet decides conflicts.
1282
+ - **A module path** (relative to the project root) or a package name whose
1283
+ default export is `(className: string) => string`, pure and idempotent.
1284
+ Use it for Tailwind v3 (`tailwind-merge@2`), a Tailwind `prefix`, or custom
1285
+ theme tokens:
1286
+
1287
+ ```ts
1288
+ // src/utils/pt-merge.ts
1289
+ import { extendTailwindMerge } from 'tailwind-merge';
1290
+
1291
+ const merge = extendTailwindMerge({
1292
+ extend: { classGroups: { 'font-size': [{ text: ['body', 'caption'] }] } },
1293
+ });
1294
+ export default (className: string) => merge(className);
1295
+ ```
1296
+
1297
+ ```ts
1298
+ bitbossUi({ passthroughDeduper: './src/utils/pt-merge.ts' });
1299
+ ```
1300
+
1301
+ It only touches passthrough classes — the component's own BEM classes are
1302
+ kept — and a class of yours shaped like a utility is treated as one. Details:
1303
+ [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Conflicting utilities.
1304
+
688
1305
  ### `adaptive?: boolean` (default: `true`)
689
1306
 
690
1307
  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.
691
1308
 
1309
+ ### `autoDisableWritingThreshold?: number` (default: `6`)
1310
+
1311
+ 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'`.
1312
+
692
1313
  ### `vscodeSettings?: boolean` (default: `true`)
693
1314
 
694
- When `true`, the **dev server** adds `./node_modules/.bitboss-ui/local-icons.json` to `"iconify.customCollectionJsonPaths"` in the project's `.vscode/settings.json` on boot, so the Iconify IntelliSense extension previews your local icons. The write is idempotent (it happens at most once) and splice-based — comments, formatting, and key order in a hand-written JSONC file all survive — and the plugin logs exactly what it changed the one time it does. Set to `false` if the plugin should never touch `.vscode/settings.json`; in that case add the entry manually to keep the previews.
1315
+ When `true`, the **dev server** writes three editor hints into the project's `.vscode/settings.json` on boot:
1316
+
1317
+ 1. `./.vscode/bitboss-ui.local-icons.json` on `"iconify.customCollectionJsonPaths"`, so the Iconify IntelliSense extension previews your local icons. The plugin writes that collection too (regenerated on every SVG change) — into the project tree rather than `node_modules`, because a container-owned `node_modules` (Sail, a named volume, a separate host install for the IDE) is invisible to the host editor. Earlier betas wrote it to `./node_modules/.bitboss-ui/local-icons.json`; if your settings still list that path, drop the entry by hand (the plugin does not migrate it).
1318
+ 2. Tailwind `"classAttributes"` / `"experimental.classRegex"` so completions, hovers and linting run inside passthrough — the static attribute form (`pt:icon="…"`), bound expressions (`:pt:icon="open ? '…' : '…'"`), the object forms (`:pt="{ icon: '…' }"`, `:pt:icon="{ class: '…' }"`), and the global map in `bitbossUi({ pt })`.
1319
+ 3. `"editor.quickSuggestions": { "strings": "on" }`, so those completions trigger while typing (VS Code leaves string suggestions off by default).
1320
+
1321
+ The write is idempotent (it happens at most once per missing entry) and splice-based — comments, formatting, and key order in a hand-written JSONC file all survive — and the plugin logs exactly what it changed the one time it does. Replacing `classAttributes` would drop the defaults (`class`, `className`, `ngClass`, `class:list`), so the plugin keeps them when it inserts the key. Set to `false` if the plugin should never touch `.vscode/` (the settings file and the local-icons collection alike); in that case add the entries manually (and install [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)):
1322
+
1323
+ ```json
1324
+ {
1325
+ "iconify.customCollectionJsonPaths": [
1326
+ "./.vscode/bitboss-ui.local-icons.json"
1327
+ ],
1328
+ "tailwindCSS.classAttributes": [
1329
+ "class",
1330
+ "className",
1331
+ "ngClass",
1332
+ "class:list",
1333
+ "pt(?::[\\w-]+)*"
1334
+ ],
1335
+ "tailwindCSS.experimental.classRegex": [
1336
+ [
1337
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*\"([\\s\\S]*?)\"",
1338
+ "\\?\\s*'([^\\s':][^']*)'"
1339
+ ],
1340
+ [
1341
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*\"([\\s\\S]*?)\"",
1342
+ "'([^\\s':][^']*)'(?!\\s*:)"
1343
+ ],
1344
+ [
1345
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*\"([\\s\\S]*?)\"",
1346
+ "\\?\\s*\"([^\\s\":][^\"]*)\""
1347
+ ],
1348
+ [
1349
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*\"([\\s\\S]*?)\"",
1350
+ "\"([^\\s\":][^\"]*)\"(?!\\s*:)"
1351
+ ],
1352
+ [
1353
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*\"([\\s\\S]*?)\"",
1354
+ "\\?\\s*`([^\\s`:][^`]*)`"
1355
+ ],
1356
+ [
1357
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*\"([\\s\\S]*?)\"",
1358
+ "`([^\\s`:][^`]*)`(?!\\s*:)"
1359
+ ],
1360
+ [
1361
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*'([\\s\\S]*?)'",
1362
+ "\\?\\s*'([^\\s':][^']*)'"
1363
+ ],
1364
+ [
1365
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*'([\\s\\S]*?)'",
1366
+ "'([^\\s':][^']*)'(?!\\s*:)"
1367
+ ],
1368
+ [
1369
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*'([\\s\\S]*?)'",
1370
+ "\\?\\s*\"([^\\s\":][^\"]*)\""
1371
+ ],
1372
+ [
1373
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*'([\\s\\S]*?)'",
1374
+ "\"([^\\s\":][^\"]*)\"(?!\\s*:)"
1375
+ ],
1376
+ [
1377
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*'([\\s\\S]*?)'",
1378
+ "\\?\\s*`([^\\s`:][^`]*)`"
1379
+ ],
1380
+ [
1381
+ "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w-]+)*\\s*=\\s*'([\\s\\S]*?)'",
1382
+ "`([^\\s`:][^`]*)`(?!\\s*:)"
1383
+ ],
1384
+ ["\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}", "\\?\\s*'([^\\s':][^']*)'"],
1385
+ ["\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}", "'([^\\s':][^']*)'(?!\\s*:)"],
1386
+ ["\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}", "\\?\\s*\"([^\\s\":][^\"]*)\""],
1387
+ ["\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}", "\"([^\\s\":][^\"]*)\"(?!\\s*:)"],
1388
+ ["\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}", "\\?\\s*`([^\\s`:][^`]*)`"],
1389
+ ["\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}", "`([^\\s`:][^`]*)`(?!\\s*:)"]
1390
+ ],
1391
+ "editor.quickSuggestions": {
1392
+ "strings": "on"
1393
+ }
1394
+ }
1395
+ ```
1396
+
1397
+ Reload the window once after the first write. See [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Tailwind IntelliSense.
695
1398
 
696
1399
  ### `mcp?: boolean` (default: `false`)
697
1400
 
698
- 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), and `.vscode/mcp.json` (VS Code / Copilot) — 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). Windsurf is intentionally **not** written here: its config is global (`~/.codeium`), and silently editing a home-dir file that affects every project on the machine from a dev-server boot would be surprising — run `npx bitboss-ui ai-init --mcp` to register Windsurf too. This flag is the zero-command equivalent of that command's project-scoped writes. 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 install them with `npm i -D @modelcontextprotocol/sdk zod` before the harness first launches the server; both this flag and `ai-init --mcp` warn when they are missing.
1401
+ 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), and `.vscode/mcp.json` (VS Code / Copilot) — 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.
699
1402
 
700
1403
  **MCP is a convenience, not a requirement, and skipping it costs no
701
1404
  knowledge.** The server is a reader over files the install already put on disk
702
1405
  — every tool `readFileSync`s out of `node_modules/bitboss-ui/dist/ai/` (plus
703
1406
  `dist/styles.css` for the token lookup). An agent that opens that directory
704
1407
  itself has the identical knowledge base, `npx bitboss-ui check` runs without the
705
- peers, and `ai-init` (no `--mcp`) still writes the harness pointers. If you are
1408
+ peers, and `ai-init --no-mcp` still writes the harness pointers. If you are
706
1409
  migrating under a "no new dependencies" constraint, leave `mcp` at `false`,
707
- skip `--mcp`, and point your agent at `dist/ai/guides/ai-router.md`.
1410
+ run `ai-init --no-mcp`, and point your agent at `dist/ai/guides/ai-router.md`.
708
1411
 
709
1412
  ### `inertiaLinkName?: string` (default: `'Link'`)
710
1413
 
@@ -737,7 +1440,14 @@ used from the first paint.
737
1440
  **Client-only SPA?** Ignore this — the real width is known from the first paint,
738
1441
  so `adaptive` surfaces are correct immediately.
739
1442
 
740
- **Server-rendering (Nuxt / Inertia SSR)?** By default the server renders
1443
+ **Server-rendering (Nuxt / Inertia SSR)?** One thing to know about the server
1444
+ bundle first: `bitboss-ui` must be **bundled into it**, never left as an
1445
+ external Node import, because the library imports `virtual:bitboss-ui/*`
1446
+ modules that only the build plugin can resolve — the plugin's `config()` hook
1447
+ therefore returns `ssr: { noExternal: ['bitboss-ui'] }` (merged with any
1448
+ `noExternal` you set; `true` is left alone), and a custom SSR setup that
1449
+ bypasses Vite's config merging has to keep that invariant itself. Then, by
1450
+ default the server renders
741
1451
  desktop-shaped; a mobile visitor's first paint is desktop-shaped and adjusts
742
1452
  once the client measures the real width (for closed overlays this is invisible —
743
1453
  they're not on screen yet; a Vue hydration warning may appear in dev). Set this
@@ -753,11 +1463,12 @@ bitbossUi({
753
1463
 
754
1464
  This is a **single global default baked in at build time** (it comes from the
755
1465
  Vite plugin config), so it is the same for every request — it is _not_ a
756
- per-request value. There is no per-request/per-visitor override today: the
757
- viewport signal is a process-wide singleton, so a mobile layout that must be
758
- correct on the server's first paint (e.g. a modal already open on load) needs a
759
- client adjustment after hydration, or a fixed `ssrViewportWidth` matching your
760
- audience.
1466
+ per-request value. There is no per-request/per-visitor override: the viewport
1467
+ signal is a process-wide singleton, so a mobile layout that must be correct on
1468
+ the server's first paint (e.g. a modal already open on load) needs a client
1469
+ adjustment after hydration, or a fixed `ssrViewportWidth` matching your
1470
+ audience. (Unlike `locale`, which **is** per-request — see below. A width
1471
+ cannot be derived from a request without UA sniffing; a locale can.)
761
1472
 
762
1473
  ### `defaultInputLabelMode?: 'outside' | 'floating' | 'inside'` (default: `'outside'`)
763
1474
 
@@ -765,9 +1476,24 @@ Default label rendering mode for input-like components; set globally instead of
765
1476
 
766
1477
  ### `requiredAsterisk?: boolean` (default: `false`)
767
1478
 
768
- Marks required fields with a red asterisk beside the label/legend. Presentational only — it keys off the standard `required` prop and changes neither validation nor native `required` semantics. The marker is applied by the [`bitboss-ui/validated`](./validated-forms.md) controls — a field that is `required`, or whose `rules` contain a `required` rule; other rules never raise it, because they only apply once a value exists. Core controls ignore the flag, so on a hand-wired form render the exported `BbAsterisk` in your own label content.
1479
+ Marks required fields with a red asterisk beside the label/legend. Presentational only — it keys off the standard `required` prop and 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)) — a field that is `required`, or, inside a `BbForm`, whose `rules` contain a `required` rule; other rules never raise it, because they only apply once a value exists. Core controls ignore the flag, so on a hand-wired form render the exported `BbAsterisk` in your own label content.
1480
+
1481
+ ### `formControls?: { textInputNullValue?: null | ''; textareaNullValue?: null | ''; validationMode?: ValidationMode }` (default: `null`, `null`, `'balanced'`)
1482
+
1483
+ What an emptied `BbTextInput` / `BbTextarea` emits (typed empty, the clear
1484
+ button, an empty mask): `null`, the default, or `''`. Pick what your backend
1485
+ and your validation expect. With `''`, a schema such as
1486
+ `z.string().min(1, 'Required')` shows your message on an emptied field
1487
+ instead of the library's type error for `null` — see
1488
+ [validation-libraries](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/validation-libraries.md) § What needs a tweak. Set it
1489
+ once here, or per app with `app.use(bitbossUiPlugin, { formControls: { … } })`
1490
+ (merged key by key). It changes only what an EMPTIED field emits: a field
1491
+ nobody touched keeps the value your page gave it, so in `''` mode start text
1492
+ values as `''`.
1493
+
1494
+ ### `locale?: LocaleKey` (default: `'en'`)
769
1495
 
770
- ### `locale?: LocaleKey` (default: `'it'`)
1496
+ English since 3.0.0-beta.41 (it was `'it'`): an Italian app sets `locale: 'it'`.
771
1497
 
772
1498
  Global locale for the library's built-in strings (empty states, close/clear
773
1499
  labels, screen-reader announcements, confirm buttons, …). The library ships
@@ -775,9 +1501,32 @@ labels, screen-reader announcements, confirm buttons, …). The library ships
775
1501
  pl, tr, ru, uk, cs, ro, hu, el, sv, da, nb, fi, ja, ko, zh-cn — but shipping ≠
776
1502
  bundling: only the **enabled** locales enter your build (next option). Runtime
777
1503
  switching: `useBbConfig().setConfig({ locale })` — to a locale you enabled.
778
- `setConfig` is client-only: on an SSR server the config is a process-wide
779
- singleton (same rule as `ssrViewportWidth` — no per-request override), so a
780
- per-request call would leak one visitor's locale into other renders.
1504
+
1505
+ **Per-request locale under SSR** is supported as of 3.0.0-beta.15: the config
1506
+ is held per Vue app, and SSR builds one app per request, so pass it where you
1507
+ create the app — `app.use(bitbossUiPlugin, { locale: localeFor(request) })`.
1508
+ That is correct on the server's first paint, which is what crawlers index and
1509
+ what a JS-disabled reader keeps.
1510
+
1511
+ **In Nuxt, do not call `app.use`** — the module registers the runtime plugin,
1512
+ which provides the per-app config itself (fixed in 3.0.0-beta.19, Q20.4;
1513
+ before that Nuxt had no per-app config at all and every `setConfig` wrote the
1514
+ process-global). Set a per-request locale from your own Nuxt plugin, which
1515
+ runs per request on the server:
1516
+ `nuxtApp.vueApp.runWithContext(() => useBbConfig().setConfig({ locale }))` —
1517
+ the `runWithContext` is what hands the write this app's injection context,
1518
+ since a plugin has an app but no component instance.
1519
+
1520
+ `setConfig` still works for runtime switching; during a server render call it
1521
+ from a component's `setup` (or inside `runWithContext`), where it can resolve
1522
+ the current app. With neither there is no app to address, the write lands on
1523
+ the build-time defaults, and it leaks between concurrent visitors — it warns in
1524
+ dev when it sees that, keyed off where the write actually landed rather than
1525
+ the call site. See [useBbConfig](https://llms-bitboss-ui.bitboss.it/dist/ai/composables/useBbConfig.md).
1526
+
1527
+ Note this is a **different rule** from `ssrViewportWidth` above, which really
1528
+ is a build-time global: a width cannot be known per request without sniffing,
1529
+ a locale can.
781
1530
 
782
1531
  ### `enabledLocales?: BuiltinLocaleKey[]` (default: your `locale` + `'en'`)
783
1532
 
@@ -802,9 +1551,11 @@ bundle cost. Wanting every built-in means writing the list, so the cost is
802
1551
  visible in your config where reviewers can see it.
803
1552
 
804
1553
  **Selecting a non-enabled locale is a compile error**, not a silent runtime
805
- fallback: the generated `locale-registry.d.ts` registers only the enabled
806
- built-ins, so `setConfig({ locale: 'ja' })` fails to type-check until `'ja'` is
807
- enabled. Run dev once after changing the list.
1554
+ fallback: your project's `bitboss-ui.d.ts` (see
1555
+ [Variant registries](#variant-registries)) lists only the enabled locales, so
1556
+ `setConfig({ locale: 'ja' })` fails to type-check until `'ja'` is enabled.
1557
+ Start the dev server or run a build once after changing the list, and commit
1558
+ the file. Before that file exists, every built-in locale type-checks.
808
1559
 
809
1560
  ### Custom locales are not a supported surface
810
1561
 
@@ -844,15 +1595,79 @@ Provide only the keys you want to override, e.g. `dialogDefaultSizes: { md: 500,
844
1595
 
845
1596
  ### Variant registries
846
1597
 
847
- Each option **appends** custom names to the default set (trimmed, deduplicated) and regenerates a typed union (`*-variants.d.ts`) on build start. Unstyled custom variants only add a class hook — supply their CSS yourself.
1598
+ Each option **appends** custom names to the default set (trimmed, deduplicated). Unstyled custom variants only add a class hook — supply their CSS yourself.
1599
+
1600
+ **The types come from one file in your project: `bitboss-ui.d.ts`. Commit
1601
+ it.** The plugin writes it when the dev server starts, on `vite build`, and
1602
+ under Vitest, from your `bitbossUi()` options: your custom variant names, the
1603
+ enabled locales, and your `ptScopes` names. It lands next to your first script
1604
+ entry (`resources/js/bitboss-ui.d.ts` in a Laravel app), else in `src/`, else
1605
+ at the Vite root (`app/` under Nuxt 4); the `dts` option moves it, or
1606
+ `dts: false` turns it off. Commit it with the config change, and a teammate's
1607
+ or CI's `vue-tsc` is correct without running Vite. A host editor and a Docker
1608
+ or Sail container agree, because the file lives in the project tree they
1609
+ share; nothing about types is read from `node_modules`.
1610
+
1611
+ - **Built-in variants need no file.** They are declared in the package.
1612
+ - **Custom variants, narrowed locales and `ptScopes` need the committed file.**
1613
+ Without it, a custom name fails exactly like a typo
1614
+ (`Type '"brand"' is not assignable to type 'ButtonVariantType'`).
1615
+ **`npx bitboss-ui check` writes it too**, without starting Vite: after you
1616
+ register a name in `vite.config.*` / `nuxt.config.*`, run `check` and the
1617
+ name type-checks (it reads the variant options when they are an inline
1618
+ object of string literals, and leaves the locales and `ptScopes` as the
1619
+ plugin last wrote them). The next dev start completes the file. Commit it.
1620
+ - **With no `ptScopes` at all**, every `<BbPtScope name>` is rejected, and the
1621
+ error text says so: `not assignable to type 'bitboss-ui: no ptScopes
1622
+ configured — …'`.
1623
+ - The plugin rewrites the file only when its names change, so a formatter that
1624
+ restyles it does not cause churn. It prints one line when it writes, and
1625
+ warns once if the file sits outside your TypeScript project (then point `dts`
1626
+ at your app sources, for example `resources/js/`).
1627
+ - Do not edit it by hand, and do not add a second `declare module` for these
1628
+ interfaces elsewhere.
1629
+
1630
+ **A variant computed in script widens to `string`.** A ternary or a `.map()`
1631
+ that returns variant names infers `string`, and `string` is not a variant
1632
+ type: the list is locked on purpose, so a typo is a compile error. There is
1633
+ no `string` fallback. Every variant component exports its type, which
1634
+ includes your registered names (`ButtonVariantType`, `BadgeVariantType`,
1635
+ `AlertVariantType`, `InputVariantType`, `TabsVariantType`, …): annotate the
1636
+ function or the field with it, or cast one value (`as BadgeVariantType`).
1637
+ The same question for a `pt` object built in script has its own answer:
1638
+ [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Typing `pt` in `<script>`.
1639
+
1640
+ ```ts
1641
+ import type { BadgeVariantType } from 'bitboss-ui';
1642
+
1643
+ type Invoice = { id: number; status: 'paid' | 'overdue' | 'draft' };
1644
+
1645
+ export const statusVariant = (status: Invoice['status']): BadgeVariantType =>
1646
+ status === 'overdue'
1647
+ ? 'destructive'
1648
+ : status === 'paid'
1649
+ ? 'primary'
1650
+ : 'outline';
1651
+
1652
+ export const badges = (invoices: Invoice[]) =>
1653
+ invoices.map((invoice) => ({
1654
+ id: invoice.id,
1655
+ variant: statusVariant(invoice.status),
1656
+ }));
1657
+ ```
1658
+
1659
+ A one-off look that is not worth registering: `variant="none"` (BbButton,
1660
+ BbBadge, the text-like inputs, BbTabs) drops the variant class and keeps the
1661
+ base tokens, so set the component's `--bg` / `--fg` yourself. A cast to an
1662
+ unregistered name also works at runtime (its class is still emitted for your
1663
+ CSS), but a registered name is the supported way.
848
1664
 
849
- **The generated `*-variants.d.ts` files are per-project output, not a portable
850
- variant list.** They mirror the plugin config of the project that last ran the
851
- plugin in that folder, and are rewritten by every build/dev/test process. Your
852
- project's registry is what **your** plugin config declares — never trust names
853
- read out of another checkout's copy (e.g. the library repo's own tracked seeds
854
- list variants that exist only in its dev showcase). Each generated file now
855
- says this in its header.
1665
+ **Upgrading from 3.0.0-beta.33 or earlier:** the old `*-variants.d.ts`,
1666
+ `locale-registry.d.ts` and `pt-scope-registry.d.ts` files under
1667
+ `node_modules/bitboss-ui/` are gone. After upgrading, start the dev server or
1668
+ run a build once (or `npx bitboss-ui check`, for the variant names) and commit
1669
+ the new `bitboss-ui.d.ts`. CI that type-checks
1670
+ before building needs that commit.
856
1671
 
857
1672
  | Option | Defaults | Class hook for custom entries |
858
1673
  | ---------------------- | ------------------------------------------------------- | ----------------------------------- |
@@ -863,7 +1678,75 @@ says this in its header.
863
1678
  | `confirmVariants` | `default, destructive` | `bb-confirm--<name>` |
864
1679
  | `dropdownItemVariants` | `default, destructive` | `bb-dropdown__item--variant-<name>` |
865
1680
  | `tooltipVariants` | `default, destructive` | `bb-tooltip--<name>` |
866
- | `toastVariants` | `default, success, info, warning, destructive` | `bb-toast-message--<name>` |
1681
+ | `toastVariants` | `default, success, info, warning, destructive` | `bb-toast__panel--<name>` |
1682
+ | `inputVariants` | `outline, secondary, ghost` | `bb-field-input--<name>` |
1683
+ | `tabsVariants` | `pill, line, none` | `bb-tabs-list--<name>` |
1684
+
1685
+ `tabsVariants` is the `variant` prop of `BbTabs` / `BbTabsList` (the class
1686
+ lands on the strip). Like `inputVariants`, a custom entry is a **token block,
1687
+ not a rule set**: the shipped looks are presets of the strip's own custom
1688
+ properties (`--list-bg`, `--list-border`, `--trigger-gap`, `--active-fg`,
1689
+ `--active-fw`, `--indicator-bg`, `--indicator-h`, …), and a registered name
1690
+ sets the same ones —
1691
+
1692
+ ```css
1693
+ /* a registered `tabsVariants: ['brand-line']` — an underline in the brand colour */
1694
+ .bb-tabs-list--brand-line {
1695
+ --list-bg: transparent;
1696
+ --list-border: var(--bb-border);
1697
+ --p: 0px;
1698
+ --indicator-bg: var(--bb-primary);
1699
+ --indicator-border: transparent;
1700
+ --indicator-shadow: none;
1701
+ --elev: none;
1702
+ --indicator-h: 2px; /* a bar on the bottom edge; `initial` is the full pill */
1703
+ --active-fg: var(--bb-primary);
1704
+ --active-fw: 700;
1705
+ }
1706
+ ```
1707
+
1708
+ The `BbTabs` guide (_Variants_) has the whole token table and two more
1709
+ recipes (`soft`, `outline`).
1710
+
1711
+ `inputVariants` is the `variant` prop of the eight text-like controls
1712
+ (`BbTextInput`, `BbTextarea`, `BbNumberInput`, `BbSelect`, `BbTag`,
1713
+ `BbDatePickerInput`, `BbTimePickerInput`, `BbColorInput`). Its class hook is
1714
+ the shared field box, and a custom entry is a **token block, not a rule set**:
1715
+ the box's geometry (height, padding, border width) never changes with the
1716
+ variant, so a variant only assigns the look variables the box reads —
1717
+
1718
+ ```css
1719
+ /* a registered `inputVariants: ['brand']` */
1720
+ .bb-field-input--brand {
1721
+ --bg: color-mix(in oklab, var(--bb-primary) 8%, var(--bb-panel));
1722
+ --bg-hover: color-mix(in oklab, var(--bb-primary) 12%, var(--bb-panel));
1723
+ --bg-disabled: var(--bb-muted);
1724
+ /* resting colours only — errors / warnings paint over them (below) */
1725
+ --border-color: color-mix(in oklab, var(--bb-primary) 40%, var(--bb-border));
1726
+ --border-focus: var(--bb-primary);
1727
+ /* the focus ring: leave this out and the variant has none, like `none` */
1728
+ --ring-size: var(--bb-ring-size);
1729
+ /* what the box paints under the ring (ghost/secondary use their hover wash) */
1730
+ --bg-focus: var(--bg-hover);
1731
+ /* the resting lift and the plate frost: a variant that draws a shell takes
1732
+ both, the way `outline` and `secondary` do. Leave them out and the
1733
+ variant is flat and unfrosted, like `ghost` and `none`. Both are no-ops
1734
+ until a theme sets `--bb-elev` / `--bb-surface-filter`, so omitting them
1735
+ looks correct until someone themes the material. */
1736
+ --elev: var(--bb-elev);
1737
+ --frost: var(--bb-surface-filter);
1738
+ }
1739
+ /* take the errors / warnings frame like `outline`; leave this rule out to
1740
+ stay unframed like `ghost` */
1741
+ .bb-field-input--brand > .bb-field-input__box {
1742
+ --state-frame: var(--state-border);
1743
+ }
1744
+ ```
1745
+
1746
+ The ring's **colour** is state-owned (primary, danger under errors, warn under
1747
+ warnings) and never a variant's business; whether a ring is **drawn** is the
1748
+ variant's call through `--ring-size` — the three built-ins draw it, `none` does
1749
+ not, and a custom variant chooses.
867
1750
 
868
1751
  Variant props are locked to the registered set (`keyof <X>VariantRegistry`):
869
1752
  an unregistered name is a compile error, not a silently unstyled render.
@@ -877,26 +1760,27 @@ library doesn't ship registers it here **and** styles its class hook in a
877
1760
  project stylesheet loaded after `bitboss-ui/styles.css`; both halves, or you get
878
1761
  an unstyled pill (CSS missing) or a compile error (registration missing). If the
879
1762
  design calls for semantic status colors, take the canonical palette from
880
- [Design Language](./design-language.md) § Getting soft semantic badges rather
1763
+ [Design Language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) § Getting soft semantic badges rather
881
1764
  than inventing hues.
882
1765
 
883
1766
  ## 8) AI Knowledge Base
884
1767
 
885
- The package ships its agent docs in `node_modules/bitboss-ui/dist/ai/`. **Start at** `guides/ai-router.md`, then the catalogue `index.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.
1768
+ 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.
886
1769
 
887
1770
  **Three tiers ship under `dist/ai/`**, and the third one is easy to miss:
888
1771
  `guides/` + `recipes/` are the authored prose; `<Name>.md` at the root is the
889
1772
  generated typed contract for each component (props, slots, events, examples);
890
1773
  `source/<Name>.md` is that same component's **complete implementation** —
891
1774
  `.vue` template, `types.ts` and `index.css` in one file, one per component
892
- including the internal ones the package does not export. Read the source tier
893
- when the contract cannot answer the question — the usual case is rebuilding
894
- chrome around a control the library does not ship, since the class names such a
895
- template emits are already styled by the public `bitboss-ui/styles.css`.
1775
+ 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.
896
1776
 
897
- Add `--mcp` to also register a live MCP server (`npx bitboss-ui@<installed version> mcp`, pinned so npx can never fetch a different version from the registry) 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 `~/.codeium/windsurf/mcp_config.json` (Windsurf). **Windsurf's config is global** — it has no per-project scope, so registering it affects every project on the machine; that is why only the explicit `ai-init --mcp` command writes it, while the plugin's `mcp: true` dev-server flag (§7) auto-registers the project-scoped harnesses only. Install the server's optional peers first — `npm i -D @modelcontextprotocol/sdk zod` — they are not dependencies of the library (~12 MB used only by the MCP server); the command warns if they are absent. **`--mcp` is optional and skipping it loses you nothing but the transport** — the server only reads the `dist/ai/` files listed above, so run plain `ai-init` and let the agent read that directory if you cannot add the peers (see `mcp?: boolean` in §7).
1777
+ `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), and `.vscode/mcp.json` (VS Code / Copilot) — the same three 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. `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).
898
1778
 
899
- For a human-in-the-loop (and agent) safety net, add the `bitboss-ui/eslint-plugin` flat-config plugin (`...bitbossUi.configs.recommended`) so unknown/removed `Bb*` props surface as ESLint errors in the editor and CI — the same manifest checks as `bitboss-ui check`, reusing your `eslint-plugin-vue` parser. Real HTML attributes fall through untouched; escape hatches are the standard `<!-- eslint-disable-next-line bitboss-ui/no-unknown-attributes -->` and the rule's `allowAttributes` / `allowComponents` options. **`eslint --fix` also auto-migrates deprecated v2 props** (renames, boolean-polarity inversions like `allowWriting`→`disableWriting`, value remaps like BbToast `placement`→`position`, and deletion of inert removed props); structural migrations that need a slot/directive/CSS are reported but left by hand. **This library is TS-first (recipes ship `<script setup lang="ts">`, some with `generic="T"`), so wire `@typescript-eslint/parser` for both `.ts` and `.vue` files** — without it `vue-eslint-parser` throws a `Parsing error` on those files, which means no rule (including `no-unknown-attributes`) runs on them at all. See the README "ESLint plugin" section for the full config snippet (both parser blocks + the `npm i -D @typescript-eslint/parser` line) and the fix table. `recommended` also enables `bitboss-ui/no-active-class-on-root-link`: `active-class` on a link-capable `Bb*` component (`BbButton`/`BbBaseButton`/`BbBadgeButton`) matches by path PREFIX, so a link whose target is the literal root (`href="/"` / `to="/"`) reads as "active" on every URL — the rule flags that combination and points you at `exact-active-class` instead.
1779
+ For a human-in-the-loop (and agent) safety net, add the `bitboss-ui/eslint-plugin` flat-config plugin (`...bitbossUi.configs.recommended`) so unknown/removed `Bb*` props surface as ESLint errors in the editor and CI — the same manifest checks as `bitboss-ui check`, reusing your `eslint-plugin-vue` parser. Real HTML attributes fall through untouched; escape hatches are the standard `<!-- eslint-disable-next-line bitboss-ui/no-unknown-attributes -->` and the rule's `allowAttributes` / `allowComponents` options. `bitboss-ui check` honours the same disable comments in `.vue` files (`-line`, `-next-line`, and `disable`/`enable` ranges, bare or naming the `bitboss-ui/*` rule), so a finding you silenced on purpose does not fail the CLI either; it prints a count of what it skipped. `npx bitboss-ui check --fix` applies the same auto-migrations without touching your ESLint config: it runs only the `bitboss-ui/*` rules' fixes on the matched `.vue` files (it needs `eslint` and `vue-eslint-parser` installed, which any `eslint-plugin-vue` setup has), then reports whatever is left. **`eslint --fix` also auto-migrates deprecated v2 props** (renames, boolean-polarity inversions like `allowWriting`→`disableWriting`, value remaps like BbToast `placement`→`position`, and deletion of inert removed props); structural migrations that need a slot/directive/CSS are reported but left by hand. One deliberate boundary: the rule's "did you mean `<prop>`?" hints for a mistyped/unknown attribute are advisory message text, not fixes — `eslint --fix` (including an unattended run in a pre-commit hook) never applies them; only the registered v2→v3 migrations above are auto-fixed. A guess applied blind across a codebase would be a silent behavior change, so acting on a hint is always a per-site decision. **This library is TS-first (recipes ship `<script setup lang="ts">`, some with `generic="T"`), so wire `@typescript-eslint/parser` for both `.ts` and `.vue` files** — without it `vue-eslint-parser` throws a `Parsing error` on those files, which means no rule (including `no-unknown-attributes`) runs on them at all. See the README "ESLint plugin" section for the full config snippet (both parser blocks + the `npm i -D @typescript-eslint/parser` line) and the fix table. `recommended` also enables `bitboss-ui/no-active-class-on-root-link`: `active-class` on a link-capable `Bb*` component (`BbButton`/`BbBaseButton`/`BbBadgeButton`) matches by path PREFIX, so a link whose target is the literal root (`href="/"` / `to="/"`) reads as "active" on every URL — the rule flags that combination and points you at `exact-active-class` instead.
1780
+
1781
+ Two rules in `recommended` are `warn` rather than `error`, because each describes markup that may be deliberate. `bitboss-ui/no-unknown-event` flags an `@event` the component does not emit (it falls through to the root element, so it may be a considered native listener). `bitboss-ui/no-unknown-token` flags a bare `var(--bb-…)` naming a token the installed package does not declare, in a `<style>` block or a static `style="…"` attribute — an undefined custom property is invalid-at-computed-value-time, so CSS discards the **entire declaration** and the rule silently does nothing at runtime. Supplying a fallback (`var(--bb-canvas, #f8fafc)`) is defined behaviour and is never reported; `allowTokens` exempts names you define yourself. The token list is read from the `dist/styles.css` you installed, so it cannot claim a token is invented when your version declares it, and with no stylesheet present the rule stays silent. Before reaching for a `--bb-*` name at all, re-read the two tiers above: a name the library does not declare usually means the knob you want is a **component** token, not a gap in the global set. `bitboss-ui check` carries two further advisory hints that are deliberately not ESLint rules — the hand-rolled avatar and spinner detectors — because both are guesses, and a lint rule that fires on correct code teaches people to ignore all of them.
1782
+
1783
+ `bitboss-ui check` also has one finding with no ESLint twin: `object-items-without-text`. It flags object `items` on an item-driven control (`BbSelect`, `BbSelectPopover`, `BbRadioGroup`, `BbCheckboxGroup`, `BbSwitchGroup`, and each `BbDropdown` group with `group: true`) when `item-text` (a group's `itemText`) is not set. Without it every label is `JSON.stringify(item)`, and without `item-value` the whole object is the value. Setting `item-text` without `item-value` is a deliberate whole-object value and is not flagged, and string items never are. **Its reach is the same file only:** an inline `:items="[…]"`, or a top-level `const x = […]` (or `ref([…])` / `reactive([…])`) in the file's `<script setup>` bound as `:items="x"`. An imported array, a computed or a fetched list is not read, and `check` never guesses at one. Silence one site with `<!-- eslint-disable-next-line bitboss-ui/require-partner-prop -->`.
900
1784
 
901
1785
  **The manifest ships with the package** — `dist/ai/components.json` is inside
902
1786
  the tarball, and the rules resolve it relative to their own file, so a normal
@@ -906,20 +1790,65 @@ nothing), the rules cannot check anything: they now **warn once** saying they
906
1790
  are inactive rather than passing silently. Pass `failClosed: true` to a rule's
907
1791
  options if you would rather CI stop than under-check.
908
1792
 
909
- It also enables `bitboss-ui/require-partner-prop`: an opt-in prop set without its documented required partner — BbTable `keyboard-navigation` / `v-model:highlighted` without `row-class` (the shipped tint says "current row"; `row-class` says why, and is how you override it), or `loading-text` without `:loading` bound — compiles and mounts clean and just does nothing; the rule names the missing partner and quotes why.
1793
+ Alongside `components` the manifest carries a `types` array: the public TYPE
1794
+ exports (`BbTableColumn`, `BbDropdownItem`, …), each with the component and prop
1795
+ it is written on. That is how `check`, the ESLint rules and the MCP server tell
1796
+ a type used as a tag from a typo and from a component your app owns — three
1797
+ cases that used to share one message and one (usually wrong) remedy.
1798
+
1799
+ #### Your own components named `Bb…`
1800
+
1801
+ **In short: `check` leaves your own `<BbRichEditor>` alone (no findings, never
1802
+ rewritten) and prints ONE warning, `local-bb-component`, suggesting a rename
1803
+ to your app's prefix (`AppRichEditor`).** Don't name them that way: `Bb` is bitboss-ui's prefix, and a future release
1804
+ could ship a component with the same name. Use your app's prefix (`App…`,
1805
+ `Acme…`). If you already have one, `check`, the ESLint rules and `check --fix`
1806
+ leave it alone with no configuration, as long as they can see it is yours:
1807
+
1808
+ - it is imported from a path that is not `bitboss-ui`, in the file that uses it
1809
+ (`import BbRichEditor from './BbRichEditor.vue'`), or
1810
+ - a `.vue` file in the project's `components/` directories has that name, by
1811
+ file name or by Nuxt's path-prefix naming (`components/bb/RichEditor.vue` is
1812
+ `BbRichEditor`).
1813
+
1814
+ Such a tag gets no findings and is never rewritten. `check` prints one warning
1815
+ per component (`local-bb-component`) suggesting the rename. A library component
1816
+ imported under another name (`import { BbButton as BbSave } from 'bitboss-ui'`)
1817
+ is checked as `BbButton`. A `Bb*` tag that is neither in the manifest nor
1818
+ provably yours stays an `unknown-component` error: that is how a typo
1819
+ (`<BbButon>`), an invented name or a removed component is caught.
1820
+
1821
+ **`allowComponents` is for the rest — a component registered globally (so no
1822
+ import shows), and a per-tag off switch, not the suppression of one message.**
1823
+ An allowlisted name is skipped whole: no unknown-component finding, no warning,
1824
+ and no prop, event, v-model or slot check on that tag, permanently. Never reach
1825
+ for it to quieten a `Bb*` name the library itself exports.
1826
+
1827
+ `recommended` also enables **`bitboss-ui/no-reverse-false`**, which covers the one v2 break a rename table cannot: `reverse` on `BbCheckbox` / `BbRadio` / `BbSwitch` kept its NAME and inverted its MEANING in v3, so the v2 spelling `:reverse="false"` (control on the right) is now a no-op that renders the control on the LEFT. Nothing else catches it — it is a declared prop, correctly typed, holding its own default value — and it cannot be expressed as a rename, because a rename entry is keyed by prop name and would rewrite the legitimate v3 spellings too. The rule flags only a LITERAL `:reverse="false"` (a dynamic `:reverse="isRtl"` that evaluates false is left alone) and offers both corrections as editor suggestions; pass `{ assumeV2: true }` to promote the v2-intent rewrite to a real `--fix` for a bulk sweep, then remove it — the two readings produce opposite layouts, so it must never be on by default. See [the migration guide](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/migration/components/bb-checkbox.md).
1828
+
1829
+ `recommended` also enables **`bitboss-ui/no-box-border-color`**: a colour-shade `border-*` utility (`border-green-500`, never `border-2`) in the **base** `pt:box` of a text-like control hides the errors / warnings frame, because a border utility beats the state colour. It suggests `[--border-color:var(--color-green-500)]`, the resting-border token the frame outranks. State entries (`pt:box:errors="border-red-800"`) are the state itself and are never reported. Literal classes only.
1830
+
1831
+ `recommended` also enables **`bitboss-ui/no-star-color`**: any colour utility (`text-*`, `fill-*`, `stroke-*`: a shade, a keyword, `text-(--var)` or an arbitrary colour; never `text-sm` or `stroke-2`) in `BbRating`'s `pt:item`, base or any state, freezes the stars, because the rating paints each star's colour per state (filled, the hover preview, errors) and a colour utility beats that. Set `--accent` / `--empty` / `--border-color` on `pt:root` instead. No autofix: the fix moves to another attribute.
1832
+
1833
+ `recommended` also enables **`bitboss-ui/no-state-text-color`**: a colour-shade `text-*` utility (`text-red-800`, never `text-xs`) in `pt:icon:errors` / `warnings` / `disabled` on `BbCheckbox` / `BbRadio` / `BbSwitch` and their groups (or `pt:root:<state>` on their glyphs) paints nothing, because those states paint from the glyph's own `--accent`, not from `color` — and CSS cannot tell a state entry's colour from the resting `pt:icon` one. For errors and warnings the rule suggests `[--accent:var(--color-red-800)]`, which does recolour the state; for disabled it explains and suggests a fill or border utility. Literal classes only.
1834
+
1835
+ `recommended` also enables **`bitboss-ui/require-accessible-name`**: an icon-only `BbButton` (an `icon`, `prepend:icon` or `append:icon`, and no words in the default slot, no `text`, no `aria-label` / `aria-labelledby` / `title`), an icon-only `BbBadge` (`icon` and an empty default slot, which is its label) or a `BbProgress` with no `label` / `aria-label` / `aria-labelledby` renders with no accessible name, so a screen reader announces a bare "button" or "progress bar". The fix is words in the slot, `<BbButton icon="lucide:trash">Elimina</BbButton>`: with `icon` set they are visually hidden and still name the button. `BbSpinner` has no such rule: without `label` it is decorative, which is correct. `bitboss-ui check` reports the same finding as `nameless-control`. For raw HTML controls, use `eslint-plugin-vuejs-accessibility`.
1836
+
1837
+ It also enables `bitboss-ui/require-partner-prop`: an opt-in prop set without its documented required partner — BbTable `keyboard-navigation` / `v-model:highlighted` without `row-class` (the shipped tint says "current row"; `row-class` says why, and is how you override it), `loading-text` without `:loading` bound, or `method` on BbButton / BbBadgeButton / BbBaseButton without `href` (only an `href` becomes an Inertia visit; `to` is a RouterLink) — compiles and mounts clean and just does nothing; the rule names the missing partner and quotes why.
910
1838
 
911
1839
  ## 9) Setup Verification Checklist
912
1840
 
913
1841
  - [ ] package installed (plus `@iconify-json/*` packages for every provider prefix used);
914
1842
  - [ ] build plugin configured: `bitboss-ui/vite` plugin or `bitboss-ui/nuxt` module (`bitboss` config key);
915
- - [ ] `iconDir` points at an existing SVG folder;
1843
+ - [ ] using `local:` icons? `iconDir` points at an existing SVG folder;
916
1844
  - [ ] runtime plugin installed: `app.use(bitbossUiPlugin)` (automatic in Nuxt);
917
1845
  - [ ] style strategy chosen: auto injection (default) or `injectStyles: false` + `import 'bitboss-ui/styles.css'` — auto injection is always library-first, so a Tailwind **v3** app that needs Preflight to load before the library must take the second option (§5);
918
1846
  - [ ] if a reset is required: `resetCss: true` or `import 'bitboss-ui/reset.css'`;
919
1847
  - [ ] Inertia apps: `@inertiajs/vue3` installed (no link registration needed; set `inertiaLinkName` only if you register your own link wrapper).
920
- - [ ] building the [Layout Scaffold](../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.
1848
+ - [ ] 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.
921
1849
  - [ ] `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").
922
- - [ ] `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` and `BbSwitchGroup`, 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).
1850
+ - [ ] `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).
1851
+ - [ ] `tsconfig.json` sets `"vueCompilerOptions": { "strictTemplates": true }`. Without it 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). The ESLint rule catches the same misspellings, but only where it runs.
923
1852
  - [ ] `tsconfig.json` sets `"vueCompilerOptions": { "checkUnknownComponents": true }`. Vue Language Tools 3 (`vue-tsc`) treats unknown-component checking as **opt-in** — without this flag, a `<BbTabs>` used without its import (or after a typo, or dropped by a bad auto-import config) type-checks clean, lints clean, and passes `bitboss-ui check` (none of the three gates resolve component tags), then renders as a silent unregistered custom element in the browser: no error anywhere, just a missing widget in production. With the flag, `vue-tsc --noEmit` names the exact tag and line (`Property 'BbTabs' does not exist on type '{}'.`) on the offending file, with no false positives from the library itself — nothing in `bitboss-ui`'s runtime plugin globally registers `Bb*` components (only the `v-bb-*` directives are global), so every `Bb*` tag in your templates is expected to resolve through an explicit import.
924
1853
 
925
1854
  If one of the checks fails, fix setup before creating component examples.
@@ -927,7 +1856,7 @@ If one of the checks fails, fix setup before creating component examples.
927
1856
  ---
928
1857
 
929
1858
  <!-- dist/ai/guides/component-picker.md -->
930
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/component-picker.md -->
1859
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/component-picker.md -->
931
1860
 
932
1861
  # Component Picker
933
1862
 
@@ -950,9 +1879,9 @@ against the markup you are about to write, not against a need.
950
1879
 
951
1880
  | You are about to write | Stop — use |
952
1881
  | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
953
- | An `<img>` with an initials/icon fallback branch, `border-radius: 50%`, `object-fit: cover` | [BbAvatar](../BbAvatar.md) — `src`/`alt`/size, initials slot, icon fallback, load-error handling |
954
- | `@keyframes spin` / `animation: … spin` on an element that means "waiting" | [BbSpinner](../BbSpinner.md) — sized off the control scale, honours `prefers-reduced-motion` |
955
- | A `<span>` pill with a tinted background standing for a status | [BbBadge](../BbBadge.md) with a registered `soft-*` variant (design-language § Getting soft semantic badges) |
1882
+ | 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 |
1883
+ | `@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` |
1884
+ | 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) |
956
1885
 
957
1886
  **`BbAvatar` is circle-only.** Its `border-radius: 50%` is in the component's own
958
1887
  CSS and no prop changes it, so a rounded-**square** avatar genuinely has no answer
@@ -972,15 +1901,16 @@ pill is as often decoration as status), so it has no hint and stays your job.
972
1901
 
973
1902
  | Need | Component |
974
1903
  | --------------------------------------- | -------------------------------------------------------------------------------- |
975
- | Single-line text | [BbTextInput](../BbTextInput.md) |
976
- | Multi-line text | [BbTextarea](../BbTextarea.md) |
977
- | Numeric value with clamping/stepping | [BbNumberInput](../BbNumberInput.md) |
978
- | Color value in a form | [BbColorInput](../BbColorInput.md) |
979
- | Calendar date or date range | [BbDatePickerInput](../BbDatePickerInput.md) |
980
- | Month or year (a reporting period) | [BbDatePickerInput](../BbDatePickerInput.md) with `type="month"` / `type="year"` |
981
- | Time or time range | [BbTimePickerInput](../BbTimePickerInput.md) |
982
- | Free-form tags / tokens typed by user | [BbTag](../BbTag.md) |
983
- | File selection via drag-and-drop/picker | [BbDropzone](../BbDropzone.md) |
1904
+ | Single-line text | [BbTextInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTextInput.md) |
1905
+ | Multi-line text | [BbTextarea](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTextarea.md) |
1906
+ | Numeric value with clamping/stepping | [BbNumberInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbNumberInput.md) |
1907
+ | Color value in a form | [BbColorInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbColorInput.md) |
1908
+ | Calendar date or date range | [BbDatePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePickerInput.md) |
1909
+ | Month or year (a reporting period) | [BbDatePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePickerInput.md) with `type="month"` / `type="year"` |
1910
+ | 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 |
1911
+ | Time or time range | [BbTimePickerInput](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTimePickerInput.md) |
1912
+ | Free-form tags / tokens typed by user | [BbTag](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTag.md) |
1913
+ | File selection via drag-and-drop/picker | [BbDropzone](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropzone.md) |
984
1914
 
985
1915
  - `BbTag` is for **open vocabularies** (skills, keywords, recipients the user invents). If values come from a known set, use `BbSelect` in multiple mode instead.
986
1916
  - `BbDropzone` captures and validates files; it does **not** upload — pair it with your request layer plus `BbProgress`/`useToast`.
@@ -991,13 +1921,13 @@ pill is as often decoration as status), so it has no hint and stays your job.
991
1921
 
992
1922
  | Need | Component |
993
1923
  | --------------------------------------------------- | ---------------------------------------- |
994
- | Dropdown search, single or multi-select | [BbSelect](../BbSelect.md) |
995
- | Picker on a custom trigger (no inline form input) | [BbSelectPopover](../BbSelectPopover.md) |
996
- | Few exclusive options (radio semantics) | [BbRadioGroup](../BbRadioGroup.md) |
997
- | Multiple non-exclusive options (checkbox semantics) | [BbCheckboxGroup](../BbCheckboxGroup.md) |
998
- | Multiple options as live on/off settings | [BbSwitchGroup](../BbSwitchGroup.md) |
999
- | Approximate value or range from a bounded interval | [BbSlider](../BbSlider.md) |
1000
- | Whole-number score out of N (stars, rating) | [BbRating](../BbRating.md) |
1924
+ | Dropdown search, single or multi-select | [BbSelect](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelect.md) |
1925
+ | Picker on a custom trigger (no inline form input) | [BbSelectPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md) |
1926
+ | Few exclusive options (radio semantics) | [BbRadioGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRadioGroup.md) |
1927
+ | Multiple non-exclusive options (checkbox semantics) | [BbCheckboxGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCheckboxGroup.md) |
1928
+ | Multiple options as live on/off settings | [BbSwitchGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSwitchGroup.md) |
1929
+ | Approximate value or range from a bounded interval | [BbSlider](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSlider.md) |
1930
+ | Whole-number score out of N (stars, rating) | [BbRating](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRating.md) |
1001
1931
 
1002
1932
  **Choosing between BbSelect, BbRadioGroup, BbCheckboxGroup, BbSwitchGroup:**
1003
1933
 
@@ -1015,13 +1945,13 @@ Never hand-assemble a row of `BbCheckbox`/`BbRadio` — the groups give you fiel
1015
1945
 
1016
1946
  | Need | Component |
1017
1947
  | ------------------------------------------------- | ------------------------------ |
1018
- | An answer or an agreement (accept terms, opt in) | [BbCheckbox](../BbCheckbox.md) |
1019
- | The on/off state of a thing (notifications, sync) | [BbSwitch](../BbSwitch.md) |
1020
- | One option interleaved with other markup | [BbRadio](../BbRadio.md) |
1948
+ | An answer or an agreement (accept terms, opt in) | [BbCheckbox](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCheckbox.md) |
1949
+ | The on/off state of a thing (notifications, sync) | [BbSwitch](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSwitch.md) |
1950
+ | One option interleaved with other markup | [BbRadio](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRadio.md) |
1021
1951
 
1022
1952
  **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.
1023
1953
 
1024
- **A switch inside a submit-gated form is correct** — it commits with the form, exactly like every other field. This library ships `BbSwitch` from `bitboss-ui/validated` for that case, its own fixtures put one inside `<BbForm>`, and its wizard recipes put one behind a Next button. Do not downgrade a state toggle to a checkbox just because a Save button exists.
1954
+ **A switch inside a submit-gated form is correct** — it commits with the form, exactly like every other field. `BbSwitch` joins a `BbForm` like any form control, its own fixtures put one inside `<BbForm>`, and its wizard recipes put one behind a Next button. Do not downgrade a state toggle to a checkbox just because a Save button exists.
1025
1955
 
1026
1956
  The one thing to avoid is **mixing commit models on one surface**: switches that already took effect the moment they were flipped, sitting under a Save button that implies they had not. Pick one — either the whole panel is live, or the whole form commits on submit.
1027
1957
 
@@ -1033,18 +1963,18 @@ A lone `BbRadio` is an escape hatch only — for a plain stacked group use `BbRa
1033
1963
 
1034
1964
  | Need | Component |
1035
1965
  | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
1036
- | A single action (or link-shaped button) | [BbButton](../BbButton.md) |
1037
- | A clickable/navigable surface that is not a variant button (card, row, tile, custom link) | [BbBaseButton](../BbBaseButton.md) |
1038
- | One dominant action + close alternates | [BbDropdownButton](../BbDropdownButton.md) |
1039
- | Menu of actions with no dominant one | [BbDropdown](../BbDropdown.md) |
1040
- | Dangerous action requiring confirmation | [BbConfirm](../BbConfirm.md) + [useConfirm](../composables/useConfirm.md) |
1966
+ | A single action (or link-shaped button) | [BbButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md) |
1967
+ | 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) |
1968
+ | One dominant action + close alternates | [BbDropdownButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdownButton.md) |
1969
+ | Menu of actions with no dominant one | [BbDropdown](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md) |
1970
+ | 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) |
1041
1971
 
1042
1972
  **Choosing by intent:**
1043
1973
 
1044
1974
  - `BbButton` — a single action, nothing else. Also a navigation trigger via `href`/`to` (see Navigation below). It is variant-first: use it when you want something that looks like a button. It is **not an inline link** — even `variant="link"` keeps the full button box (height + padding) and only recolors it, so it breaks the line height and text flow of a table cell, sentence, or property-grid value. For an inline text link, use `BbBaseButton` (next row).
1045
1975
  - `BbBaseButton` — any clickable/navigable surface that is _not_ a variant button: a whole card or list row that links somewhere, an inline **record-identity cell** (a row's name that must truncate and flow at cell width), an in-text link, or a control styled entirely by your own CSS. It carries the same navigation engine as `BbButton` (`href`/`to`/Inertia/active classes) with **zero chrome — the project owns its look** (e.g. a `.plain-link` underline class). Prefer it over hand-rolling `@click="router.push(...)"` on a `<div>`/`<a>`, and over `BbButton variant="link"` for anything inline.
1046
1976
  - `BbDropdownButton` — _Save / Save as draft / Save as template_: the primary action is one tap away, alternates behind a chevron. If the "alternates" are unrelated commands, it's a plain menu.
1047
- - `BbDropdown` — overflow "…" menus, account menus, context menus. Declare rows through `items`; never rebuild rows, dividers, or keyboard handling in markup. When the menu is just an `items` array with no header/footer/per-item slots, attach the `v-bb-dropdown` directive to the trigger instead of importing the component (see the directive note under Overlays).
1977
+ - `BbDropdown` — overflow "…" menus, account menus, context menus, workspace / team / tenant switchers. Declare rows through `items`; never rebuild rows, dividers, or keyboard handling in markup. When the menu is just an `items` array with no header/footer/per-item slots, attach the `v-bb-dropdown` directive to the trigger instead of importing the component (see the directive note under Overlays).
1048
1978
  - Every destructive action must pass through `useConfirm` first.
1049
1979
 
1050
1980
  ---
@@ -1053,13 +1983,13 @@ A lone `BbRadio` is an escape hatch only — for a plain stacked group use `BbRa
1053
1983
 
1054
1984
  | Need | Component |
1055
1985
  | ----------------------------------- | ----------------------------------------------------------------- |
1056
- | Inline persistent status message | [BbAlert](../BbAlert.md) |
1057
- | Transient notification (toast) | [BbToast](../BbToast.md) + [useToast](../composables/useToast.md) |
1058
- | Passive status pill, count, or dot | [BbBadge](../BbBadge.md) |
1059
- | Removable token (filter, selection) | [BbBadge](../BbBadge.md) (with `clearable`) |
1060
- | Clickable pill / filter chip | [BbBadge](../BbBadge.md) + `BbBadgeButton` in its default slot |
1061
- | Determinate progress bar | [BbProgress](../BbProgress.md) |
1062
- | Indeterminate loading spinner | [BbSpinner](../BbSpinner.md) |
1986
+ | Inline persistent status message | [BbAlert](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAlert.md) |
1987
+ | 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) |
1988
+ | Passive status pill, count, or dot | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) |
1989
+ | Removable token (filter, selection) | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) (with `clearable`) |
1990
+ | Clickable pill / filter chip | [BbBadge](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBadge.md) + `BbBadgeButton` in its default slot |
1991
+ | Determinate progress bar | [BbProgress](https://llms-bitboss-ui.bitboss.it/dist/ai/BbProgress.md) |
1992
+ | Indeterminate loading spinner | [BbSpinner](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSpinner.md) |
1063
1993
 
1064
1994
  **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).
1065
1995
 
@@ -1077,40 +2007,41 @@ A lone `BbRadio` is an escape hatch only — for a plain stacked group use `BbRa
1077
2007
 
1078
2008
  | Need | Component |
1079
2009
  | ----------------------------------------- | ---------------------------------------------------------------------- |
1080
- | Modal dialog (one focused task) | [BbDialog](../BbDialog.md) |
1081
- | Side panel / drawer | [BbOffCanvas](../BbOffCanvas.md) |
1082
- | Yes/No confirmation dialog | [BbConfirm](../BbConfirm.md) |
1083
- | Anchored floating interactive content | [BbPopover](../BbPopover.md) |
1084
- | Hover/focus label | [BbTooltip](../BbTooltip.md) |
1085
- | Color picker on a trigger you own | [BbColorPalette](../BbColorPalette.md) |
1086
- | Date/calendar picker on a trigger you own | [BbDatePicker](../BbDatePicker.md) |
1087
- | Month/year picker on a trigger you own | [BbDatePicker](../BbDatePicker.md) with `type="month"` / `type="year"` |
1088
- | Time picker on a trigger you own | [BbTimePicker](../BbTimePicker.md) |
2010
+ | Modal dialog (one focused task) | [BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md) |
2011
+ | Side panel / drawer | [BbOffCanvas](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md) |
2012
+ | Yes/No confirmation dialog | [BbConfirm](https://llms-bitboss-ui.bitboss.it/dist/ai/BbConfirm.md) |
2013
+ | Anchored floating interactive content | [BbPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbPopover.md) |
2014
+ | Hover/focus label | [BbTooltip](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTooltip.md) |
2015
+ | Color picker on a trigger you own | [BbColorPalette](https://llms-bitboss-ui.bitboss.it/dist/ai/BbColorPalette.md) |
2016
+ | Date/calendar picker on a trigger you own | [BbDatePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePicker.md) |
2017
+ | Month/year picker on a trigger you own | [BbDatePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePicker.md) with `type="month"` / `type="year"` |
2018
+ | Time picker on a trigger you own | [BbTimePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTimePicker.md) |
1089
2019
 
1090
2020
  **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, a record's detail panel, settings). They share the same API (v-model, `title`, `header`/`default`/`footer` slots, `size`, `persistent`), so moving between them is mostly a tag swap. A plain yes/no is `BbConfirm`, not a hand-built dialog.
1091
2021
 
1092
2022
  **BbPopover vs BbTooltip:** `BbTooltip` is a short, non-interactive label on hover/focus — never put links, buttons, or fields in it. `BbPopover` opens on click, stays open, and supports interactive content. A standard list of actions is `BbDropdown`, not a popover.
1093
2023
 
1094
- **Prefer the directive over the component for tooltips and dropdowns.** For the common case — plain-text tooltips and menus declared from an `items` array — attach `v-bb-tooltip` / `v-bb-dropdown` directly to the element instead of importing `BbTooltip`/`BbDropdown` and wiring an `activator`. The directives are registered globally by the plugin (`injectDirectives`, on by default), so no import is needed, and they render no wrapper element. Reach for the **component** only when you need something the directive can't express: for tooltips, a markup label (default slot) or the `activator` slot's scope; for dropdowns, `header`/`footer` or per-item slots, or `<BbDropdownGroup>` companions. When you already hold an element/ref, `BbDropdown`'s `activator` **prop** gives the same no-wrapper wiring without a slot. See [BbTooltip](../BbTooltip.md) and [BbDropdown](../BbDropdown.md).
2024
+ **Prefer the directive over the component for tooltips and dropdowns.** For the common case — plain-text tooltips and menus declared from an `items` array — attach `v-bb-tooltip` / `v-bb-dropdown` directly to the element instead of importing `BbTooltip`/`BbDropdown` and wiring an `activator`. The directives are registered globally by the plugin (`injectDirectives`, on by default), so no import is needed, and they render no wrapper element. Reach for the **component** only when you need something the directive can't express: for tooltips, a markup label (default slot) or the `activator` slot's scope; for dropdowns, `header`/`footer` or per-item slots, or `<BbDropdownGroup>` companions. When you already hold an element/ref, `BbDropdown`'s `activator` **prop** gives the same no-wrapper wiring without a slot. See [BbTooltip](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTooltip.md) and [BbDropdown](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDropdown.md).
1095
2025
 
1096
- There are also **`v-bb-color`**, **`v-bb-date`**, and **`v-bb-time`** directives for the narrower case of a value picker on a bare trigger in a table cell — a color dot, a date cell, or a schedule cell — attach the directive instead of wrapping each cell in `BbColorPalette` / `BbDatePicker` / `BbTimePicker`. Unlike tooltip/dropdown this is _not_ a blanket "prefer the directive": these components (and `BbColorInput` / `BbDatePickerInput` / `BbTimePickerInput`) have a real `v-model`, so use the component for form fields; the directive is only for bare per-row triggers. A directive can't two-way bind, so write-back rides an `onUpdate:modelValue` callback in the binding value (plus `onUpdate:time` for a datetime picker). See [BbColorPalette](../BbColorPalette.md), [BbDatePicker](../BbDatePicker.md), and [BbTimePicker](../BbTimePicker.md).
2026
+ There are also **`v-bb-color`**, **`v-bb-date`**, and **`v-bb-time`** directives for the narrower case of a value picker on a bare trigger in a table cell — a color dot, a date cell, or a schedule cell — attach the directive instead of wrapping each cell in `BbColorPalette` / `BbDatePicker` / `BbTimePicker`. Unlike tooltip/dropdown this is _not_ a blanket "prefer the directive": these components (and `BbColorInput` / `BbDatePickerInput` / `BbTimePickerInput`) have a real `v-model`, so use the component for form fields; the directive is only for bare per-row triggers. A directive can't two-way bind, so write-back rides an `onUpdate:modelValue` callback in the binding value (plus `onUpdate:time` for a datetime picker). See [BbColorPalette](https://llms-bitboss-ui.bitboss.it/dist/ai/BbColorPalette.md), [BbDatePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDatePicker.md), and [BbTimePicker](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTimePicker.md).
1097
2027
 
1098
2028
  ---
1099
2029
 
1100
2030
  ## Navigation
1101
2031
 
1102
- | Need | Component |
1103
- | ------------------------------------- | ------------------------------------ |
1104
- | Peer views of the same screen (tabs) | [BbTabs](../BbTabs.md) |
1105
- | Collapsible section (accordion style) | [BbAccordion](../BbAccordion.md) |
1106
- | Togglable region, custom trigger | [BbCollapsible](../BbCollapsible.md) |
1107
- | Breadcrumb path (where am I) | [BbBreadcrumbs](../BbBreadcrumbs.md) |
1108
- | Pagination controls | [BbPagination](../BbPagination.md) |
1109
- | Hierarchical tree | [BbTree](../BbTree.md) |
2032
+ | Need | Component |
2033
+ | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2034
+ | Peer views of the same screen (tabs) | [BbTabs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTabs.md) |
2035
+ | 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)) |
2036
+ | Collapsible section (accordion style) | [BbAccordion](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAccordion.md) |
2037
+ | Togglable region, custom trigger | [BbCollapsible](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCollapsible.md) |
2038
+ | Breadcrumb path (where am I) | [BbBreadcrumbs](https://llms-bitboss-ui.bitboss.it/dist/ai/BbBreadcrumbs.md) |
2039
+ | Pagination controls | [BbPagination](https://llms-bitboss-ui.bitboss.it/dist/ai/BbPagination.md) |
2040
+ | Hierarchical tree | [BbTree](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTree.md) |
1110
2041
 
1111
2042
  **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 accept `href`; `BbPagination` with `navigation` builds per-page links itself. Never wire `@click="router.push(...)"` for a plain destination.
1112
2043
 
1113
- **Picking the pattern:** `BbTabs` switches peer sections of _one_ subject (Overview / Activity / Settings) — not steps in a flow, not hierarchy. `BbBreadcrumbs` answers "where am I and how do I get back up". `BbPagination` steps through a paged result set — prefer it over infinite scroll when users need to find their place again.
2044
+ **Picking the pattern:** `BbTabs` switches peer sections of _one_ subject (Overview / Activity / Settings) — not steps in a flow, not hierarchy. A look the shipped variants don't have (a side nav, a filter row) starts from `variant="none"` plus the strip's tokens in `pt.wrapper.style` (inline, so no stylesheet and no scoped-style trap); the library does not add a variant per need. `BbBreadcrumbs` answers "where am I and how do I get back up". `BbPagination` steps through a paged result set — prefer it over infinite scroll when users need to find their place again.
1114
2045
 
1115
2046
  **Disclosure ladder (BbAccordion vs BbCollapsible vs BbSmoothHeight):**
1116
2047
 
@@ -1124,14 +2055,14 @@ There are also **`v-bb-color`**, **`v-bb-date`**, and **`v-bb-time`** directives
1124
2055
 
1125
2056
  | Need | Component |
1126
2057
  | ----------------------------- | -------------------------- |
1127
- | Rows of records with columns | [BbTable](../BbTable.md) |
1128
- | Hierarchical expandable nodes | [BbTree](../BbTree.md) |
1129
- | User or entity avatar | [BbAvatar](../BbAvatar.md) |
1130
- | Standalone SVG icon | [BbIcon](../BbIcon.md) |
2058
+ | Rows of records with columns | [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md) |
2059
+ | Hierarchical expandable nodes | [BbTree](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTree.md) |
2060
+ | User or entity avatar | [BbAvatar](https://llms-bitboss-ui.bitboss.it/dist/ai/BbAvatar.md) |
2061
+ | Standalone SVG icon | [BbIcon](https://llms-bitboss-ui.bitboss.it/dist/ai/BbIcon.md) |
1131
2062
 
1132
2063
  **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.
1133
2064
 
1134
- **A list of records _without_ columns is not a component here** — it is a `<ul>`/`<dl>` styled with tokens ([design-language](./design-language.md) § Layout), with `BbBaseButton` making the whole row navigable. Reach back for `BbTable` with one or two columns when you want what it owns beyond layout: sorting, skeletons, the empty state, selection.
2065
+ **A list of records _without_ columns is not a component here** — it is a `<ul>`/`<dl>` styled with tokens ([design-language](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md) § Layout), with `BbBaseButton` making the whole row navigable. Reach back for `BbTable` with one or two columns when you want what it owns beyond layout: sorting, skeletons, the empty state, selection.
1135
2066
 
1136
2067
  Whatever you put _inside_ those rows, check the symptom index at the top of this guide first — `BbAvatar` is on this page and still gets rebuilt by hand more often than any other component.
1137
2068
 
@@ -1143,13 +2074,13 @@ Prefer icon **props** (`icon`, `prepend:icon`, item `icon`) on components over s
1143
2074
 
1144
2075
  | Need | Component |
1145
2076
  | -------------------------- | -------------------------------------- |
1146
- | Animated height transition | [BbSmoothHeight](../BbSmoothHeight.md) |
2077
+ | Animated height transition | [BbSmoothHeight](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSmoothHeight.md) |
1147
2078
 
1148
2079
  ---
1149
2080
 
1150
2081
  ## Not in this library
1151
2082
 
1152
- The 58 public `Bb*` components plus the exported `use*` composables are the whole
2083
+ The public `Bb*` components plus the exported `use*` composables are the whole
1153
2084
  surface. Everything below is a name agents routinely assume exists, invent, and
1154
2085
  then work around — usually by hand-rolling something the library already covers
1155
2086
  under a different name. **If a component you want is not in the tables above — or
@@ -1157,29 +2088,35 @@ a composable you want is not in this corpus's `composables/` folder — it is no
1157
2088
  here.** Check this list before inventing a name; if the need is genuinely absent,
1158
2089
  compose it or write it yourself.
1159
2090
 
1160
- | Assumed component or composable | Reality |
1161
- | -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1162
- | `BbColumnManager` — show/hide/reorder columns | Does not exist. Compose `BbPopover` + `BbCheckbox` and persist the ordered visible keys yourself. |
1163
- | `BbKanban` / drag-and-drop board | Does not exist. There is no DnD primitive in the library at all — compose the board from `BbTable` (a table/list view of the same data) or hand-roll the drag-and-drop interaction yourself. |
1164
- | `BbModal` | It is [BbDialog](../BbDialog.md). |
1165
- | `BbDrawer` / `BbSheet` | It is [BbOffCanvas](../BbOffCanvas.md). |
1166
- | `BbCombobox` / `BbAutocomplete` | It is [BbSelect](../BbSelect.md) / [BbSelectPopover](../BbSelectPopover.md) — search is built in, see `disable-writing`. |
1167
- | `BbToggle` / `BbToggleGroup` | It is [BbButton](../BbButton.md) with `v-model` (+ `true-value` / `false-value`), which owns `aria-pressed` and the active class. |
1168
- | `TagChip` / colored, read-only tag chip | It is [BbBadge](../BbBadge.md) — [BbTag](../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`/`--color` override per row for arbitrary/data-driven colors (BbBadge.md § One-off colors) — not a registered variant per distinct color. |
1169
- | `BbTab` (singular) | The consumer API is [BbTabs](../BbTabs.md) / `BbTabsRoot`. `BbTab` appears only as the **v2 "before" side** of the migration diffs. |
1170
- | `BbCard` | Does not exist — a card is a `<div>` with tokens. See [design-language](./design-language.md). |
1171
- | `BbList` / `BbListItem` / `BbDescriptionList` | Do not exist — a list row is an `<li>` with tokens, and [BbBaseButton](../BbBaseButton.md) makes the whole row navigable. See the note under Data Display. |
1172
- | `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. |
1173
- | `BbStepper` / `BbWizard` | Does not exist as a component; the wizard-form recipe composes one. |
1174
- | `BbSkeleton` (standalone) | Only `BbTable` ships skeletons, via the column `skeleton` field. |
1175
- | `BbCommand` / command palette | Does not exist. Compose `BbDialog` + `BbSelectPopover`. |
1176
- | `BbCalendar` (month / scheduling view) | Does not exist. [BbDatePicker](../BbDatePicker.md) is a picker, not a calendar surface. |
1177
- | `BbChart` / `BbGraph`, `BbCarousel`, `BbTimeline`, `BbDivider` | Do not exist. No charting, carousel or timeline primitive ships here. |
2091
+ | Assumed component or composable | Reality |
2092
+ | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2093
+ | `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`. |
2094
+ | `BbKanban` / drag-and-drop board | Does not exist. There is no reusable DnD primitive in the library (`BbTable`'s header drag is 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. |
2095
+ | `BbModal` | It is [BbDialog](https://llms-bitboss-ui.bitboss.it/dist/ai/BbDialog.md). |
2096
+ | `BbDrawer` / `BbSheet` | It is [BbOffCanvas](https://llms-bitboss-ui.bitboss.it/dist/ai/BbOffCanvas.md). |
2097
+ | `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`. |
2098
+ | `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. |
2099
+ | `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. |
2100
+ | `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. |
2101
+ | `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). |
2102
+ | `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. |
2103
+ | `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. |
2104
+ | `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. |
2105
+ | `BbSkeleton` (standalone) | Only `BbTable` ships skeletons, via the column `skeleton` field. |
2106
+ | `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 `#<groupKey>:item:prepend`, so the other rows keep their icons. See BbDropdown.md § Rows that stand for records. |
2107
+ | `BbCommand` / command palette | Does not exist. Compose `BbDialog` + `BbSelectPopover` — do not hand-roll the search: the command-palette recipe under `recipes/<platform>/command-palette.md` ([Vue](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/vue/command-palette.md) · [Nuxt](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/nuxt/command-palette.md) · [Inertia](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/inertia/command-palette.md)) already wires debouncing, race protection, grouping and keyboard nav. |
2108
+ | `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. |
2109
+ | `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, month, year, datetime), not an events grid. Put per-day content in its `#day` / `#append:day` slots; an agenda or booking board is your own layout around it. |
2110
+ | `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. |
2111
+ | `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 `#header:<key>: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. |
2112
+ | `BbSnackbar` / `BbNotification` / flash message | It is [BbToast](https://llms-bitboss-ui.bitboss.it/dist/ai/BbToast.md), raised through the `useToast` composable. |
2113
+ | `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. |
2114
+ | `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. |
2115
+ | `BbChart` / `BbGraph`, `BbCarousel`, `BbTimeline`, `BbDivider` | Do not exist. No charting, carousel or timeline primitive ships here. |
1178
2116
 
1179
2117
  App chrome — an app shell, sidebar, page header, selection dock — is
1180
- deliberately **not** a component: it is yours to own. The per-platform
1181
- [Layout Scaffold](../recipes/inertia/layout-scaffold.md) recipe ships the source
1182
- to copy.
2118
+ deliberately **not** a component: it is yours to own. The Layout Scaffold
2119
+ recipe under `recipes/<platform>/layout-scaffold.md` ([Vue](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/vue/layout-scaffold.md) · [Nuxt](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/nuxt/layout-scaffold.md) · [Inertia](https://llms-bitboss-ui.bitboss.it/dist/ai/recipes/inertia/layout-scaffold.md)) ships the source to copy — open the one for your stack.
1183
2120
 
1184
2121
  ---
1185
2122
 
@@ -1187,22 +2124,22 @@ to copy.
1187
2124
 
1188
2125
  The following components accept an `items` prop (array or async provider function) with `item-text`/`item-value` mapping. Consult the items playbooks before wiring them:
1189
2126
 
1190
- - [BbSelect](../BbSelect.md), [BbSelectPopover](../BbSelectPopover.md)
1191
- - [BbCheckboxGroup](../BbCheckboxGroup.md), [BbRadioGroup](../BbRadioGroup.md), [BbSwitchGroup](../BbSwitchGroup.md)
1192
- - [BbTable](../BbTable.md)
2127
+ - [BbSelect](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelect.md), [BbSelectPopover](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSelectPopover.md)
2128
+ - [BbCheckboxGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbCheckboxGroup.md), [BbRadioGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbRadioGroup.md), [BbSwitchGroup](https://llms-bitboss-ui.bitboss.it/dist/ai/BbSwitchGroup.md)
2129
+ - [BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md)
1193
2130
 
1194
- `BbDropdown`, `BbBreadcrumbs`, `BbTabs`, and `BbTree` are also declared through `items`, but with typed item objects (label/key/href/…) rather than arbitrary domain objects.
2131
+ `BbDropdown`, `BbBreadcrumbs`, `BbTabs`, and `BbTree` are also declared through `items`, but with typed item objects (label/key/href/…) rather than arbitrary domain objects. `BbDropdown` bridges the two: a fetched group maps domain objects through `itemText` / `itemValue` / `itemProps`, and any row carries its domain object to the slots in `meta`.
1195
2132
 
1196
2133
  See:
1197
2134
 
1198
- - [Options and Items Playbook](./options-items-playbook.md)
1199
- - [Fetch Data Items Playbook](./fetch-items-playbook.md)
1200
- - [Coherence Playbook](./coherence-playbook.md)
2135
+ - [Options and Items Playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/options-items-playbook.md)
2136
+ - [Fetch Data Items Playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/fetch-items-playbook.md)
2137
+ - [Coherence Playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/coherence-playbook.md)
1201
2138
 
1202
2139
  ---
1203
2140
 
1204
2141
  <!-- dist/ai/guides/design-language.md -->
1205
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/design-language.md -->
2142
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md -->
1206
2143
 
1207
2144
  # Design Language
1208
2145
 
@@ -1214,9 +2151,33 @@ components or choose component variants.
1214
2151
 
1215
2152
  1. **Never hardcode colors** in custom CSS around components. Use the `--bb-*`
1216
2153
  custom properties below so your surfaces follow theme and dark mode.
1217
- 2. **Never override component internals** (`.bb-*__*` element classes) from
1218
- consumer code. Restyle via tokens, variants, or documented props — the only
1219
- exceptions are extension points a component's own doc sanctions.
2154
+ 2. **An override on an internal class is a signal: check whether a `pt` part
2155
+ exists, or request one.** That is the rule. CSS on the library's own
2156
+ classes is allowed for fine-tuning — `pt` and CSS work together — but
2157
+ only the first two rows of this ladder come with a stability promise:
2158
+
2159
+ | Target | Status |
2160
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
2161
+ | 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 |
2162
+ | a component's root and documented modifier classes (`.bb-badge`, `.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 | **supported hooks** — consumer API; the restyling hook for a registered variant and for custom toggle designs |
2163
+ | element classes (`.bb-*__*`), undocumented modifiers | **allowed, unsupported** — may change in any release without a rename table; you own the override |
2164
+ | 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 |
2165
+
2166
+ Prefer, in order: **variant → token → `pt` → CSS override**. When an
2167
+ override is the right call, keep it findable and upgrade-safe: one project
2168
+ stylesheet or `@layer`, each block commented with what it targets and why
2169
+ `pt` was not enough; re-check the file after every upgrade
2170
+ (`npx bitboss-ui changelog --since <version>`); `npx bitboss-ui check` also
2171
+ flags a selector on a `.bb-*` class the library does not render (a typo or
2172
+ a guessed internal class), with the real one, and a token or local that
2173
+ nothing reads (a retired `--bb-*`, `--color` on `.bb-badge`). `:deep()` in a scoped style
2174
+ is fine for this — [passthrough](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/passthrough.md) § Migrating a `:deep()`
2175
+ is the upgrade path, not a prohibition. An override written in a layer
2176
+ above the library's, or unlayered, wins without specificity games
2177
+ ([installation](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md) § Cascade layers). A
2178
+ component's **root** class (`.bb-table`, `.bb-badge`) is also where you set
2179
+ that component's own tokens — see "How to style around the library" below.
2180
+
1220
2181
  3. **One primary action per view region.** Everything else is `secondary`,
1221
2182
  `outline`, or `ghost`.
1222
2183
  4. **`destructive` is only for irreversible actions**, and destructive flows
@@ -1226,23 +2187,67 @@ components or choose component variants.
1226
2187
 
1227
2188
  ## How to style around the library
1228
2189
 
1229
- Three lanes, in order of preference:
2190
+ Four lanes, in order of preference. Do not skip to a later lane because an
2191
+ earlier one has no obvious knob — check the lane first.
1230
2192
 
1231
- 1. **Component look → props.** Pick a variant, `size`, `compact`. Never write
1232
- CSS to make a component look different.
2193
+ 1. **Component look → props.** Pick a variant, `size`, `compact`. Do not write
2194
+ CSS to make a component look different when a variant already does it.
1233
2195
  2. **Page layout & spacing → Tailwind utilities** (or your project's
1234
2196
  equivalent) on your own wrapper elements — `flex items-end gap-3`,
1235
2197
  `grid gap-6`, `max-w-3xl`. Components size themselves; you only place them.
1236
- 3. **Genuinely custom visuals → `--bb-*` tokens.** The few CSS rules that
2198
+ 3. **Retuning one component → its own component tokens.** Every component
2199
+ declares unprefixed `--*` tokens: cell height, padding, badge fill, tab
2200
+ strip height. **Set the token on the element that declares it** — that is
2201
+ usually the component's root class, and an inline style on the component
2202
+ then works too:
2203
+
2204
+ ```css
2205
+ .bb-table {
2206
+ --cell-h: 32px;
2207
+ --px: 8px;
2208
+ }
2209
+ ```
2210
+
2211
+ ```vue
2212
+ <BbTree style="--indent: 14px" />
2213
+ ```
2214
+
2215
+ ⚠ **silent** — a component made of several elements declares some tokens on
2216
+ an inner one, and a value you set further out is _masked_, not inherited:
2217
+ the inner element's own declaration wins. `BbTabs` keeps `--list-h` on
2218
+ `.bb-tabs-list`, so `<BbTabs style="--list-h: 40px">` does nothing and
2219
+ `.bb-tabs-list { --list-h: 40px }` is the working form. Check which selector
2220
+ declares the token before you set it.
2221
+
2222
+ 4. **Genuinely custom visuals → `--bb-*` tokens.** The few CSS rules that
1237
2223
  remain (a custom panel, a status dot) use theme tokens so they follow
1238
2224
  theming and dark mode automatically.
1239
2225
 
1240
- Treat everything inside a component as private API. Where a component is
1241
- designed to be extended visually, its own doc names the extension point —
1242
- [BbTree](../BbTree.md) has you draw connector lines in consumer CSS anchored
1243
- to its `--indent`/`--gap` tokens; [BbTabs](../BbTabs.md) exposes `--list-h`.
1244
- Read the per-component doc before writing any CSS that mentions a `.bb-`
1245
- class.
2226
+ **Finding a component's tokens.** They are not in the `--bb-*` inventory below
2227
+ — that tier is the brand knobs only, and it is deliberately small. Component
2228
+ tokens live in the component's own CSS, on whichever element consumes them.
2229
+ Read `dist/ai/source/<Name>.md`, which carries that CSS verbatim, and grep it
2230
+ for the declaration rather than assuming the root. Some components also call
2231
+ theirs out in the contract, as [BbTree](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTree.md) does for the
2232
+ `--indent`/`--gap` pair you anchor connector lines to.
2233
+
2234
+ **A missing `--bb-*` token is not a gap in the library.** If you want a shorter
2235
+ table row and there is no `--bb-table-row-h`, that is lane 3 telling you to set
2236
+ `--cell-h` on `.bb-table`, not an invitation to write element-class overrides.
2237
+ The full rules, including how per-size lookup tables interact with specificity,
2238
+ are in [design-tokens.md](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-tokens.md) § "Overriding one from a consumer
2239
+ app".
2240
+
2241
+ **A utility class on a component that does nothing is a layer problem, not a
2242
+ token problem.** Tailwind v4 puts its utilities in `@layer utilities`, and the
2243
+ cascade ranks any unlayered rule above any layered one regardless of
2244
+ specificity — so `<BbButton class="px-6">` loses to the library's own padding
2245
+ until the library is layered too. That is a build-plugin setting, not CSS:
2246
+ `cssLayers: TAILWIND_V4_LAYERS` (exported from `bitboss-ui/vite`) places the
2247
+ library after Preflight and before the utilities, and the utility wins. Opt-in,
2248
+ and the whole story is in
2249
+ [installation-and-plugin-setup](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md) § Cascade
2250
+ layers.
1246
2251
 
1247
2252
  ## Token Vocabulary
1248
2253
 
@@ -1250,40 +2255,57 @@ All theme tokens are CSS custom properties defined on `:root` (imported via
1250
2255
  `bitboss-ui/styles.css`). One name per token — `.dark` re-declares the knobs
1251
2256
  that change and everything derived follows. The full architecture (tiers,
1252
2257
  naming rules, the emphasis ladder) lives in
1253
- [design-tokens.md](./design-tokens.md); this is the consumer summary.
2258
+ [design-tokens.md](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-tokens.md); this is the consumer summary.
2259
+
2260
+ **This list is closed.** There is no Tailwind-style numeric ramp — no
2261
+ `--bb-primary-800`, no `--bb-gray-100`. Emphasis comes from the derived tokens
2262
+ below (`--bb-muted`, `--bb-text-muted`, `--bb-surface-hover`) and from
2263
+ `color-mix()` against a knob, not from a shade number. A `--bb-*` name that is
2264
+ not in these tables resolves to nothing and fails silently, so a rule built on
2265
+ one renders with no value at all rather than erroring.
1254
2266
 
1255
2267
  ### Surfaces & structure
1256
2268
 
1257
- | Token | Meaning |
1258
- | --------------------- | ----------------------------------------------------------------- |
1259
- | `--bb-panel` | Surface/background color of panels, popovers, dialogs |
1260
- | `--bb-muted` | Subtle/disabled surface (derived, neutral) |
1261
- | `--bb-hover` | Hover fill for **affordances** (buttons, links, controls) |
1262
- | `--bb-surface-hover` | Hover fill for **passive surfaces** (rows, cells, days) — fainter |
1263
- | `--bb-pressed` | Neutral pressed/active fill |
1264
- | `--bb-border` | Border color; pair with `--bb-border-w` (1px) |
1265
- | `--bb-radius` | Corner radius of controls (8px) |
1266
- | `--bb-radius-surface` | Corner radius of large surfaces (derived, ×1.8) |
1267
- | `--bb-radius-sm` | Corner radius of small nested elements (derived) |
1268
- | `--bb-shadow` | Global elevation shadow |
1269
- | `--bb-panel-p` | Content padding of large surfaces (dialog, off-canvas) |
1270
- | `--bb-z-overlay` | Z-index for overlays (10) |
2269
+ | Token | Meaning |
2270
+ | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
2271
+ | `--bb-panel` | Surface/background color of panels, popovers, dialogs |
2272
+ | `--bb-muted` | Subtle/disabled surface (derived, neutral) |
2273
+ | `--bb-hover` | Hover fill for **affordances** (buttons, links, controls) |
2274
+ | `--bb-surface-hover` | Hover fill for **passive surfaces** (rows, cells, days) — fainter |
2275
+ | `--bb-pressed` | Neutral pressed/active fill |
2276
+ | `--bb-border` | Border color; pair with `--bb-border-w` (1px) |
2277
+ | `--bb-field-border` | Resting border of every form field (the default input box and the group / rating / slider shells); follows `--bb-border` until set |
2278
+ | `--bb-border-w` | Hairline thickness — plates **and** internal dividers (dialog/off-canvas footers, menu rules, popover headers) |
2279
+ | `--bb-border-w-sm` | Nested / small hairline (xs/sm buttons, badges, glyphs) — half of `--bb-border-w`, floored at 1px and capped by it |
2280
+ | `--bb-radius` | Corner radius of controls (8px) |
2281
+ | `--bb-radius-surface` | Corner radius of large surfaces (derived, ×1.8) |
2282
+ | `--bb-radius-sm` | Corner radius of small nested elements (derived) |
2283
+ | `--bb-shadow` | Overlay elevation (dialogs, popovers, menus, toasts) |
2284
+ | `--bb-elev` | Resting lift on controls — a full `box-shadow`, default a transparent layer. Covers a soft lift and a hard offset alike |
2285
+ | `--bb-elev-sm` | The same lift on small chrome (badges, glyphs, xs/sm buttons); inherits `--bb-elev` unless a hard-offset theme splits it |
2286
+ | `--bb-panel-p` | Content padding of large surfaces (dialog, off-canvas); axis split via the locals `--px`/`--py` on `.bb-dialog` / `.bb-offcanvas` |
2287
+ | `--bb-overlay-blur` | Backdrop dim blur (2px) — on the bottom-most open panel's backdrop only |
2288
+ | `--bb-overlay-stacked` | Dim painted by a panel stacked over another open one (derived, equal to `--bb-overlay`; `transparent` = one dim under the pile) |
2289
+ | `--bb-surface-filter` | Frost on raised plates — dialog, off-canvas, popover bubble, toast, input shell, alert, table. A full `backdrop-filter` value, default `none` |
2290
+ | `--bb-z-overlay` | Z-index for overlays (10) |
1271
2291
 
1272
2292
  ### Color semantics
1273
2293
 
1274
- | Token | Meaning |
1275
- | ------------------ | ------------------------------------------------------------------ |
1276
- | `--bb-primary` | Brand/primary accent (black in light, white in dark by default) |
1277
- | `--bb-primary-fg` | Foreground on primary surfaces |
1278
- | `--bb-danger` | Errors and destructive intent |
1279
- | `--bb-warn` | Warning **chrome/icons** (`hasWarning`) — warm, ranks below danger |
1280
- | `--bb-text-warn` | Warning **message text** — deeper amber (knob, not derived) |
1281
- | `--bb-text` | Global text color |
1282
- | `--bb-text-muted` | Secondary text, hints, placeholders, icons (derived) |
1283
- | `--bb-text-faint` | Disabled foregrounds (derived) |
1284
- | `--bb-ring` | Focus ring color (derived from primary) |
1285
- | `--bb-ring-danger` | Focus ring in error states (derived from danger) |
1286
- | `--bb-ring-warn` | Focus ring in the warning input state (derived from `--bb-warn`) |
2294
+ | Token | Meaning |
2295
+ | --------------------- | ------------------------------------------------------------------- |
2296
+ | `--bb-primary` | Brand/primary accent (black in light, white in dark by default) |
2297
+ | `--bb-primary-fg` | Foreground on primary surfaces |
2298
+ | `--bb-primary-border` | Outline of a primary plate — tracks primary until pinned |
2299
+ | `--bb-link-fg` | Link-style button text — tracks primary until pinned |
2300
+ | `--bb-danger` | Errors and destructive intent |
2301
+ | `--bb-warn` | Warning **chrome/icons** (`hasWarnings`) — warm, ranks below danger |
2302
+ | `--bb-text-warn` | Warning **message text** — deeper amber (knob, not derived) |
2303
+ | `--bb-text` | Global text color |
2304
+ | `--bb-text-muted` | Secondary text, hints, placeholders, icons (derived) |
2305
+ | `--bb-text-faint` | Disabled foregrounds (derived) |
2306
+ | `--bb-ring` | Focus ring color (derived from primary) |
2307
+ | `--bb-ring-danger` | Focus ring in error states (derived from danger) |
2308
+ | `--bb-ring-warn` | Focus ring in the warning input state (derived from `--bb-warn`) |
1287
2309
 
1288
2310
  Rule of thumb: **hover/pressed chrome is neutral; primary tint means
1289
2311
  selected.** Never build a hover state from `--bb-primary` — use `--bb-hover`
@@ -1307,9 +2329,11 @@ so themes with loud brand colors keep gray chrome.
1307
2329
 
1308
2330
  Input-family tokens also exist (`--bb-input-h`, `--bb-input-px`,
1309
2331
  `--bb-label-fs`…) — see design-tokens.md. Component-specific tokens are
1310
- **unprefixed** and defined on each component's root class (e.g. BbTabs'
1311
- `--list-h`); override them per instance or at a scope to retune a whole area
1312
- coherently instead of styling individual components.
2332
+ **unprefixed** and defined on the element that consumes them, usually the
2333
+ component's root class (e.g. BbTree's `--indent`). Override them per instance
2334
+ or at a scope to retune a whole area coherently instead of styling individual
2335
+ components, and set them on the declaring element — see lane 3 above for the
2336
+ masking trap.
1313
2337
 
1314
2338
  ## Dark Mode
1315
2339
 
@@ -1327,35 +2351,106 @@ To crossfade instead of switching instantly, add `theme-animated` to the
1327
2351
 
1328
2352
  Variant names are typed per family. Built-in sets:
1329
2353
 
1330
- | Family | Built-in variants |
1331
- | ---------------------------------------------------- | --------------------------------------------------------------------------------------------- |
1332
- | `BbButton` / `BbDropdownButton` | `primary` `secondary` `outline` `ghost` `destructive` `link` (+ `none` unstyled escape hatch) |
1333
- | `BbBadge` | `primary` `secondary` `outline` `ghost` `destructive` |
1334
- | `BbAlert` | `primary` `outline` `destructive` `warning` |
1335
- | `BbToast` / `useToast` | `default` `success` `info` `warning` `destructive` |
1336
- | `BbConfirm` / `useConfirm`, dropdown items, tooltips | `default` `destructive` |
2354
+ | Family | Built-in variants |
2355
+ | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2356
+ | `BbButton` / `BbDropdownButton` | `primary` `secondary` `outline` `ghost` `destructive` `link` (+ `none`, a blank starting point) |
2357
+ | `BbBadge` | `primary` `secondary` `destructive` `outline` |
2358
+ | `BbAlert` | `primary` `outline` `destructive` `warning` |
2359
+ | `BbToast` / `useToast` | `default` `success` `info` `warning` `destructive` |
2360
+ | `BbConfirm` / `useConfirm`, dropdown items, tooltips | `default` `destructive` |
2361
+ | 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 |
1337
2362
 
1338
2363
  What the shared names mean (shadcn-style vocabulary):
1339
2364
 
1340
- | Variant | Use for |
1341
- | ------------- | ---------------------------------------------- |
1342
- | `primary` | The single main action of a view region |
1343
- | `secondary` | Supporting actions |
1344
- | `outline` | Neutral actions on busy surfaces |
1345
- | `ghost` | Low-emphasis, inline, or icon-only actions |
1346
- | `destructive` | Irreversible/dangerous actions (confirm first) |
1347
- | `link` | Navigation disguised as text (buttons only) |
1348
- | `none` | Unstyled escape hatch — avoid |
2365
+ | Variant | Use for |
2366
+ | ------------- | ------------------------------------------------------------ |
2367
+ | `primary` | The single main action of a view region |
2368
+ | `secondary` | Supporting actions |
2369
+ | `outline` | Neutral actions on busy surfaces |
2370
+ | `ghost` | Low-emphasis, inline, or icon-only actions |
2371
+ | `destructive` | Irreversible/dangerous actions (confirm first) |
2372
+ | `link` | Navigation disguised as text (buttons only) |
2373
+ | `none` | Blank start for one-off styling; recurs → register a variant |
1349
2374
 
1350
2375
  Projects can register extra variants through the Vite/Nuxt plugin
1351
2376
  (`buttonVariants`, `badgeVariants`, `alertVariants`, `confirmVariants`,
1352
- `dropdownItemVariants`, `tooltipVariants`, `toastVariants` options).
2377
+ `dropdownItemVariants`, `tooltipVariants`, `toastVariants`, `inputVariants`
2378
+ options).
1353
2379
  Registered names become typed values, but the library ships no CSS for them —
1354
2380
  the project styles `.bb-button--<name>` (etc.) itself, following the state
1355
- recipe in [design-tokens.md](./design-tokens.md).
2381
+ recipe in [design-tokens.md](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-tokens.md).
1356
2382
  Never invent a variant name that is not built-in or registered in the
1357
2383
  project's plugin config — check `vite.config.*` / `nuxt.config.*` first.
1358
2384
 
2385
+ ### Re-skinning a variant the library already ships
2386
+
2387
+ Registering a variant covers a name we do **not** ship. Changing how an
2388
+ existing one looks is a different job, and the first question is not "which
2389
+ CSS" but **how far the change should reach**:
2390
+
2391
+ 1. **The colour itself is wrong for this brand** (primary is blue, not black) →
2392
+ override the **theme knobs**, not any component. `--bb-primary` and its
2393
+ family feed every surface, and every derived value and dark-mode variant
2394
+ follows. This is the theme builder's path and the only one that stays
2395
+ coherent.
2396
+ 2. **One area should look different** (a toolbar, a marketing header) →
2397
+ re-point the same knobs **on a `.bb-theme` island**. Custom properties
2398
+ inherit, and `.bb-theme` re-runs the derived formulas against the knobs on
2399
+ that element, so rings, hovers, radius tiers and input metrics follow
2400
+ without copying `--bb-primary-hover` by hand:
2401
+
2402
+ ```html
2403
+ <div class="bb-theme toolbar" style="--bb-primary: #2563eb">…</div>
2404
+ ```
2405
+
2406
+ ```css
2407
+ .toolbar.bb-theme {
2408
+ --bb-primary: #2563eb;
2409
+ }
2410
+ ```
2411
+
2412
+ Prefer this to per-component rules. It cannot desynchronise states. It
2413
+ keeps the page's scheme (dark panel, dark text) unless you also add
2414
+ `.light` / `.dark`. `--bb-primary-fg` inherits; pin it on the island
2415
+ when the new primary needs a different foreground. A knob set on a scope
2416
+ **without** `.bb-theme` does not re-derive — that is the one-line trap
2417
+ this class exists to close.
2418
+
2419
+ 3. **One component's take on one variant is wrong** (badges too loud, buttons
2420
+ fine) → re-point that family's locals. The names are the same (`--bg` /
2421
+ `--fg`); what differs is which extras the variant block sets:
2422
+
2423
+ | Family | Variant extras beyond `--bg` / `--fg` | So a re-skin is… |
2424
+ | ---------------------- | -------------------------------------------------------------- | ------------------------------------ |
2425
+ | `BbBadge`, `BbTooltip` | `--border-color`, `--ring-color` | re-point those tokens |
2426
+ | `BbButton` | `--bg-hover`, `--bg-pressed`, `--border-color`, `--ring-color` | re-point those tokens |
2427
+ | `BbAlert` | `--fg-muted`, `--border-color` | re-point those tokens |
2428
+ | `BbToast` | `--icon-color` (the card stays panel) | re-point the card, or just the glyph |
2429
+
2430
+ Read the block in `dist/ai/source/<Name>.md` before writing the rule.
2431
+ `.bb-button--primary { --bg: … }` retints rest, hover, and press together
2432
+ because those states read the locals. Setting `background-color` alone leaves
2433
+ hover on `--bg-hover`.
2434
+
2435
+ **Three traps, all of which fail quietly.**
2436
+
2437
+ **1. A variant is not one declaration.** `primary` on a button sets `--bg`,
2438
+ `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, _and_ an
2439
+ adjacent group border. Override `background-color` alone and the old brand
2440
+ survives in hover and focus — visible only on interaction, which is why this
2441
+ one reaches production. Re-point the locals (or the `--bb-*` knobs in 1 / 2)
2442
+ and every state follows.
2443
+
2444
+ **2. Hover paint lives on the root.** `.bb-button:hover` is two in specificity
2445
+ and reads `--bg-hover`. A rest-only `background-color` on `.bb-button--primary`
2446
+ wins at rest and loses on hover. Set `--bg-hover` too, or don't fight the
2447
+ property.
2448
+
2449
+ **3. Override the knob, not the derived value.** Values built with
2450
+ `color-mix()` off a knob re-derive per theme. Replacing the derived value
2451
+ hardcodes it for both schemes, and the bug surfaces as "dark mode looks wrong"
2452
+ months later.
2453
+
1359
2454
  ## Using color
1360
2455
 
1361
2456
  **Reach for color more than the monochrome default suggests — but make it mean
@@ -1396,20 +2491,22 @@ Keep it **soft and calm**:
1396
2491
  | A persistent message | **BbAlert** — `primary` / `outline` / `warning` / `destructive` (soft tints) |
1397
2492
  | Transient feedback | **BbToast** / `useToast` — `default` / `success` / `info` / `warning` / `destructive` |
1398
2493
  | A removable/error tag | **BbBadge** `destructive` (soft); neutral tags use `secondary` / `outline` |
1399
- | A form field that needs attention but isn't invalid | any form control's **`warnings`** / **`hasWarning`** props — see below |
2494
+ | A form field that needs attention but isn't invalid | any form control's **`warnings`** / **`hasWarnings`** props — see below |
1400
2495
 
1401
2496
  ### Meters, ramps, gauges — the project owns every hue (ruled 2026-07-30)
1402
2497
 
1403
- The library ships **no** status-color vocabulary beyond `--bb-danger`,
1404
- `--bb-warn`, and `--bb-text-warn` (which exist for its own error/warning
1405
- states), and it never will —
1406
- no `--bb-success`, no `--bb-good`, no graded ramps. So when a design needs
2498
+ The library ships **no** status-color vocabulary for your UI beyond
2499
+ `--bb-danger`, `--bb-warn`, and `--bb-text-warn` (which exist for its own
2500
+ error/warning states), and it never will — no graded ramps, no `--bb-good`.
2501
+ `--bb-success` / `--bb-info` (and their `-fg`) do exist, but only as the knobs
2502
+ behind BbToast's and BbIndicator's `success` / `info` hues: retheme those two
2503
+ with them, never build a success/info variant on them. So when a design needs
1407
2504
  multi-step color — a password-strength meter, a health score, an SLA bar, a
1408
2505
  capacity gauge — the palette is **project CSS, minted by you**, exactly like
1409
2506
  the soft badge palette below: local custom properties (`--accent`-style hues,
1410
2507
  mixed toward theme tokens with `color-mix(in oklab, …)` so they stay
1411
2508
  dark-mode-aware), applied through the component's CSS hooks — e.g.
1412
- `BbProgress`'s `--fill`. Reusing `--bb-danger` / `--bb-warn` /
2509
+ `BbProgress`'s `--accent`. Reusing `--bb-danger` / `--bb-warn` /
1413
2510
  `--bb-text-warn` for the low end of
1414
2511
  a ramp is fine if the project chooses to — they are ordinary custom properties —
1415
2512
  but that choice, and its contrast, belongs to the project. Do not wait for, or
@@ -1428,8 +2525,8 @@ that mirrors the error state exactly — two props, parallel to `errors` /
1428
2525
  and referenced from
1429
2526
  the control's `aria-describedby` while displayed (after any `errors`). A non-empty
1430
2527
  `warnings` **implies the warning state** (just as `errors` implies the error
1431
- state), so you rarely set `hasWarning` by hand.
1432
- - **`hasWarning`** (boolean) — forces the warning chrome without a message, to
2528
+ state), so you rarely set `hasWarnings` by hand.
2529
+ - **`hasWarnings`** (boolean) — forces the warning chrome without a message, to
1433
2530
  pre-style a field.
1434
2531
 
1435
2532
  Either way the field gets the **same chrome as the error state** — tinted border
@@ -1450,7 +2547,7 @@ unusual, near a limit, or soft-flagged — where a hard error (which also sets
1450
2547
  a second look" state, not an invalid one.
1451
2548
  - It is a **field state**, not the badge/button `warning` _variant_ (those stay
1452
2549
  locked — see [the sanctioned custom-variant path](#getting-soft-semantic-badges-the-sanctioned-custom-variant-path)).
1453
- - Prefer `warnings` (which carries its own text) over bare `hasWarning` + a
2550
+ - Prefer `warnings` (which carries its own text) over bare `hasWarnings` + a
1454
2551
  `hint` — color alone is never the only signal. `warnings` are announced the
1455
2552
  moment they appear (live region) **and** re-read on focus (`aria-describedby`,
1456
2553
  ahead of the hint); a `hint` only ever reads as static description.
@@ -1495,8 +2592,8 @@ with an `editable` prop that hosts its own picker — don't split "button" and
1495
2592
  the badge's `loading` prop: the spinner takes the chevron's place (same size,
1496
2593
  nothing shifts) — and in button mode it lands inside the hit target, so the
1497
2594
  control never changes shape. Shipped references: the BbTable guide's
1498
- inline-editing example ([BbTable](../BbTable.md)) and the
1499
- [Inline Edit Playbook](./inline-edit-playbook.md); in-repo live reference:
2595
+ inline-editing example ([BbTable](https://llms-bitboss-ui.bitboss.it/dist/ai/BbTable.md)) and the
2596
+ [Inline Edit Playbook](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/inline-edit-playbook.md); in-repo live reference:
1500
2597
  `src/dev/inline-edit/` — `StatusBadge.vue`, `PriorityBadge.vue`, `AssigneeBadge.vue`
1501
2598
  (each a plain badge when not `editable`, a clickable picker when it is). Those
1502
2599
  three still use the older wrap-in-`BbBaseButton` form and predate
@@ -1508,8 +2605,9 @@ three still use the older wrap-in-`BbBaseButton` form and predate
1508
2605
  The shared status tokens besides `--bb-danger` are `--bb-warn` /
1509
2606
  `--bb-text-warn`, and they are
1510
2607
  **not** a variant vocabulary — they color the [warning input state](#warning-input-state)
1511
- (the `hasWarning` prop and `warnings` messages) and nothing else. There is still **no `--bb-success` /
1512
- `--bb-info` token**, and BbIndicator hardcodes its status hues. So:
2608
+ (the `hasWarnings` prop and `warnings` messages) and nothing else. `--bb-success` /
2609
+ `--bb-info` exist only as BbToast's and BbIndicator's hue knobs — not a badge
2610
+ or button vocabulary. So:
1513
2611
 
1514
2612
  - **Do not** write `variant="success"` on a badge or button, or invent
1515
2613
  `bb-badge--warning`, **without registering it first** — an unregistered name
@@ -1540,37 +2638,52 @@ badges — in examples, recipes, and real apps alike. Five accents, one shared
1540
2638
  soft treatment. It mirrors `BbIndicator`'s built-in status hues, plus a slate
1541
2639
  neutral the indicator doesn't have:
1542
2640
 
1543
- | Variant | Accent | Means | Mirrors |
1544
- | ------------ | --------- | --------------------------- | ----------------------------------- |
1545
- | `soft-gray` | `#64748b` | neutral / idle / paused | — (slate; no indicator counterpart) |
1546
- | `soft-blue` | `#2563eb` | active / in progress / info | `BbIndicator` `info` |
1547
- | `soft-green` | `#16a34a` | success / done | `BbIndicator` `success` |
1548
- | `soft-amber` | `#d97706` | attention / high / pending | `BbIndicator` `warning` |
1549
- | `soft-red` | `#dc2626` | danger / blocked / failed | `BbIndicator` `destructive` |
2641
+ | Variant | Accent | Means | Mirrors |
2642
+ | ------------ | ---------------------- | --------------------------- | ----------------------------------- |
2643
+ | `soft-gray` | `var(--bb-text-muted)` | neutral / idle / paused | — (slate; no indicator counterpart) |
2644
+ | `soft-blue` | `var(--bb-info)` | active / in progress / info | `BbIndicator` `info` |
2645
+ | `soft-green` | `var(--bb-success)` | success / done | `BbIndicator` `success` |
2646
+ | `soft-amber` | `var(--bb-warn)` | attention / high / pending | `BbIndicator` `warning` |
2647
+ | `soft-red` | `var(--bb-danger)` | danger / blocked / failed | `BbIndicator` `destructive` |
2648
+
2649
+ Register the names in the plugin config (`bitboss-ui/nuxt` takes the same
2650
+ option):
2651
+
2652
+ ```ts
2653
+ // vite.config.ts
2654
+ bitbossUi({
2655
+ badgeVariants: [
2656
+ 'soft-gray',
2657
+ 'soft-blue',
2658
+ 'soft-green',
2659
+ 'soft-amber',
2660
+ 'soft-red',
2661
+ ],
2662
+ });
2663
+ ```
1550
2664
 
1551
- Register the names in the plugin config, then drop this block into your project
1552
- stylesheet (this section is the canonical source — copies elsewhere point back
1553
- here):
2665
+ then drop this block into your project stylesheet (this section is the
2666
+ canonical source — copies elsewhere point back here):
1554
2667
 
1555
2668
  ```css
1556
- /* Per-variant accent — the one project-chosen hue each soft variant mixes from.
1557
- Only the library mints `--bb-*` tokens, so the hue lives in a local
1558
- `--accent`; everything derived mixes toward theme tokens, which keeps every
1559
- variant dark-mode-aware with no `.dark` overrides. */
2669
+ /* Per-variant accent — the theme's status token each soft variant mixes from,
2670
+ so a theme that retunes --bb-success & co. retunes the badges too. It lives
2671
+ in a local `--accent`; everything derived mixes toward theme tokens, which
2672
+ keeps every variant dark-mode-aware with no `.dark` overrides. */
1560
2673
  .bb-badge.bb-badge--soft-gray {
1561
- --accent: #64748b;
2674
+ --accent: var(--bb-text-muted);
1562
2675
  }
1563
2676
  .bb-badge.bb-badge--soft-blue {
1564
- --accent: #2563eb;
2677
+ --accent: var(--bb-info);
1565
2678
  }
1566
2679
  .bb-badge.bb-badge--soft-green {
1567
- --accent: #16a34a;
2680
+ --accent: var(--bb-success);
1568
2681
  }
1569
2682
  .bb-badge.bb-badge--soft-amber {
1570
- --accent: #d97706;
2683
+ --accent: var(--bb-warn);
1571
2684
  }
1572
2685
  .bb-badge.bb-badge--soft-red {
1573
- --accent: #dc2626;
2686
+ --accent: var(--bb-danger);
1574
2687
  }
1575
2688
 
1576
2689
  /* Shared soft treatment — reads the local --accent set above. Percentages sit
@@ -1581,19 +2694,20 @@ here):
1581
2694
  .bb-badge.bb-badge--soft-amber,
1582
2695
  .bb-badge.bb-badge--soft-red {
1583
2696
  --bg: color-mix(in oklab, var(--accent) 15%, var(--bb-panel));
1584
- --color: color-mix(in oklab, var(--accent) 80%, var(--bb-text));
1585
- --border-width: 1px;
2697
+ --fg: color-mix(in oklab, var(--accent) 80%, var(--bb-text));
2698
+ --bw: 1px;
1586
2699
  --border-color: color-mix(in oklab, var(--accent) 25%, var(--bb-panel));
1587
- --ring: color-mix(in oklab, var(--accent) 45%, transparent);
2700
+ --ring-color: color-mix(in oklab, var(--accent) 45%, transparent);
1588
2701
  }
1589
2702
  ```
1590
2703
 
1591
2704
  Two gotchas the block already encodes:
1592
2705
 
1593
- - **Selectors are doubled (`.bb-badge.bb-badge--x`) on purpose.** The built-in
1594
- variants compile to 2-class specificity (they're nested under `.bb-badge`), so
1595
- a flat `.bb-badge--x` would tie the base `.bb-badge { --bg }` rule and lose on
1596
- injection order. Match their specificity and this layer wins.
2706
+ - **Doubled selectors are optional insurance.** Built-in paint variants are
2707
+ single-class (`.bb-badge--primary`). A flat `.bb-badge--soft-gray` ties the
2708
+ block `.bb-badge { --bg }` and wins when your sheet loads after `styles.css`
2709
+ (the documented order). Doubling (`.bb-badge.bb-badge--x`) still works and
2710
+ keeps a custom palette from following a later `.bb-badge { --bg }` retint.
1597
2711
  - **The accent hex is the project's own hue, held in a local `--accent`** — it
1598
2712
  is not a `--bb-*` token and must not become one (Hard Rule 1: only the library
1599
2713
  mints those). Everything derived mixes toward `--bb-panel` / `--bb-text`, so
@@ -1753,7 +2867,7 @@ underline on hover/focus:
1753
2867
  Do not use `BbButton` `ghost`/`link` for those cells; reserve those variants for
1754
2868
  real actions and chrome buttons. `link` in particular keeps button height and
1755
2869
  padding, so it never flows or truncates like inline text — wrong for a name
1756
- column at cell width (see [BbButton](../BbButton.md) § Choosing a variant).
2870
+ column at cell width (see [BbButton](https://llms-bitboss-ui.bitboss.it/dist/ai/BbButton.md) § Choosing a variant).
1757
2871
 
1758
2872
  Spacing convention: use multiples of 4px, favoring 8/12/16/24 gaps. Form
1759
2873
  fields stack with 16px gaps; sections separate with 24px.
@@ -1787,20 +2901,21 @@ text, `--bb-label-weight`
1787
2901
 
1788
2902
  ## Component catalogue
1789
2903
 
1790
- Every public component. Open one contract at `https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/<Name>.md` before using it — never guess a prop name.
2904
+ Every public component. Open one contract at `https://llms-bitboss-ui.bitboss.it/dist/ai/<Name>.md` before using it — never guess a prop name.
1791
2905
 
1792
2906
  - **BbAccordion** — Expands and collapses a content panel.
1793
2907
  - **BbAlert** — Shows contextual status messages.
1794
- - **BbAsterisk** — Presentational required-field marker (red "*"). No props/slots/events; placed in custom label content.
2908
+ - **BbAsterisk** — Presentational required-field marker (red "*"). No behaviour props/slots/events (only `pt`); placed in custom label content.
1795
2909
  - **BbAvatar** — Displays an avatar and has a fallback content slot.
1796
- - **BbBadge** — Displays compact status counters or labels, the floating mode acts as notification dot.
2910
+ - **BbBadge** — Displays a compact inline status counter or label. It sits in the flow — for a bubble or dot anchored OVER another element, use BbIndicator (includes the co-located BbBadgeButton export).
1797
2911
  - **BbBadgeButton** — Makes a badge's body interactive: slotted as a direct child of BbBadge it renders the badge body as a real button/link with full BbBaseButton parity, leaving `clearable` free to remain a separate control.
1798
2912
  - **BbBaseButton** — Unstyled button/link primitive: element resolution (button/anchor/router link) and the full navigation engine, with no visual chrome. Use for any clickable or navigable surface that is not a variant-first BbButton — cards, list rows, custom links.
1799
- - **BbBaseCheckboxIcon** — Standalone checkbox glyph (box + checkmark SVG). Presentational only — no input, no events. Compose it into a fully custom checkbox design, or let BbCheckbox/BbBaseCheckbox render it.
1800
- - **BbBaseRadioIcon** — Standalone radio glyph (ring + dot). Presentational only — no input, no events. Compose it into a fully custom radio design, or let BbRadio/BbBaseRadio render it.
1801
- - **BbBaseSwitchIcon** — Standalone switch glyph (track + thumb). Presentational only — no input, no events. Compose it into a fully custom switch design, or let BbSwitch/BbBaseSwitch render it.
2913
+ - **BbBaseCheckboxIcon** — Standalone checkbox glyph (box + checkmark SVG). Presentational only — no input, no events. Compose it into a fully custom checkbox design, or let BbCheckbox, BbCheckboxGroup or BbTable render it.
2914
+ - **BbBaseRadioIcon** — Standalone radio glyph (ring + dot). Presentational only — no input, no events. Compose it into a fully custom radio design, or let BbRadio, BbRadioGroup or BbTable render it.
2915
+ - **BbBaseSwitchIcon** — Standalone switch glyph (track + thumb). Presentational only — no input, no events. Compose it into a fully custom switch design, or let BbSwitch or BbSwitchGroup render it.
1802
2916
  - **BbBreadcrumbs** — Renders hierarchical navigation paths.
1803
2917
  - **BbButton** — Button with loading state, tooltip, and icon support.
2918
+ - **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.
1804
2919
  - **BbCheckbox** — Toggles a single boolean option.
1805
2920
  - **BbCheckboxGroup** — Manages multiple checkbox options as a group.
1806
2921
  - **BbCollapsible** — Toggles visibility of collapsible content blocks.
@@ -1811,18 +2926,19 @@ Every public component. Open one contract at `https://cdn.jsdelivr.net/npm/bitbo
1811
2926
  - **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.
1812
2927
  - **BbDatePickerInput** — Combines date selection with text input behavior.
1813
2928
  - **BbDialog** — Presents modal dialogs for focused user interactions.
1814
- - **BbDropdown** — Displays contextual action menus and menu content.
2929
+ - **BbDropdown** — Displays contextual action menus and menu content (includes the co-located BbDropdownGroup export, which is how a selectable group is bound).
1815
2930
  - **BbDropdownButton** — A button with primary action and all other actions collected in a dropdown.
1816
2931
  - **BbDropdownGroup** — Renderless v-model companion for a group declared in BbDropdown.items, bound by id.
1817
2932
  - **BbDropzone** — Supports drag-and-drop file input flows.
1818
- - **BbForm** — Form host for `bitboss-ui/validated`: owns the vee-validate form (useForm), validates every field on submit, and emits `submit` with the collected values only when the form is valid.
2933
+ - **BbForm** — Form host for the form controls inside it: owns the vee-validate form (useForm), validates every field on submit, and emits `submit` with the collected values only when the form is valid. `schema` takes any Standard Schema (Zod, Valibot, ArkType, Yup) as it is; a failed submit focuses the first invalid field on screen and emits `invalid`. Server errors (a 422): `setErrors(errors)` from the slot or `useBbFormContext(id)` puts each on its field.
1819
2934
  - **BbIcon** — Renders an icon either from the local icon folder or from a provider.
1820
- - **BbIndicator** — Anchors a notification bubble (count/short text) or a dot over a wrapped element, with floating and corner-placement options.
2935
+ - **BbIndicator** — Anchors a notification bubble (count/short text) or a dot over a wrapped element.
1821
2936
  - **BbNumberInput** — Captures and validates numeric form values, emits a number value.
1822
2937
  - **BbOffCanvas** — Shows side-panel overlay content outside normal layout flow.
1823
2938
  - **BbPagination** — Navigates paginated data sets by page index.
1824
2939
  - **BbPopover** — Anchors floating content to reference elements.
1825
2940
  - **BbProgress** — Visualizes task or operation progress state.
2941
+ - **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.
1826
2942
  - **BbRadio** — Represents a single choice in exclusive options.
1827
2943
  - **BbRadioGroup** — Coordinates exclusive selection among radio options.
1828
2944
  - **BbRating** — Collects scalar ratings through interactive icons.
@@ -1834,16 +2950,16 @@ Every public component. Open one contract at `https://cdn.jsdelivr.net/npm/bitbo
1834
2950
  - **BbSwitch** — Toggles two-state values with switch semantics.
1835
2951
  - **BbSwitchGroup** — Manages grouped switch options with shared behavior.
1836
2952
  - **BbTable** — Displays tabular data, configurable columns and data mapper.
1837
- - **BbTabs** — Switches between tabbed content views (shadcn-like strip; BbTabRoot enables split layouts).
2953
+ - **BbTabs** — Switches between tabbed content views (shadcn-like strip; the co-located BbTabsRoot / BbTabsList / BbTabsPanels exports enable split layouts).
1838
2954
  - **BbTabsList** — The trigger strip of a split BbTabsRoot layout (renders the tab buttons only).
1839
- - **BbTabsPanes** — The pane host of a split BbTabsRoot layout (renders the tab content only).
1840
- - **BbTabsRoot** — Provide/inject root that lets BbTabsList and BbTabsPanes live in separate layout slots.
2955
+ - **BbTabsPanels** — The panel host of a split BbTabsRoot layout (renders the tab content only).
2956
+ - **BbTabsRoot** — Provide/inject root that lets BbTabsList and BbTabsPanels live in separate layout slots.
1841
2957
  - **BbTag** — Captures and displays tag-like token values.
1842
2958
  - **BbTextarea** — Captures multi-line text values.
1843
2959
  - **BbTextInput** — Captures single-line text values.
1844
2960
  - **BbTimePicker** — Opens hour/minute(/second) columns in a popover on a trigger you own — the time analog of BbDatePicker; also the v-bb-time directive.
1845
2961
  - **BbTimePickerInput** — Segmented time field with hour/minute columns; 24-hour string model.
1846
- - **BbToast** — Shows transient notification messages.
2962
+ - **BbToast** — Shows transient notification messages (includes the co-located BbToastPortal export).
1847
2963
  - **BbToastPortal** — Registers named slot content that toast() renders via `portal`.
1848
2964
  - **BbTooltip** — Displays contextual helper text on interaction.
1849
2965
  - **BbTree** — Renders hierarchical expandable tree structures.