bitboss-ui 3.0.0-beta.21 → 3.0.0-beta.22

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 (183) hide show
  1. package/README.md +55 -3
  2. package/bin/bitboss-ui-mcp.mjs +419 -9
  3. package/bin/bitboss-ui.mjs +293 -22
  4. package/dist/ai/BbAccordion.md +21 -23
  5. package/dist/ai/BbAlert.md +6 -12
  6. package/dist/ai/BbAvatar.md +60 -24
  7. package/dist/ai/BbBadge.md +12 -20
  8. package/dist/ai/BbBaseButton.md +14 -16
  9. package/dist/ai/BbBaseCheckboxIcon.md +6 -10
  10. package/dist/ai/BbBaseRadioIcon.md +6 -10
  11. package/dist/ai/BbBaseSwitchIcon.md +5 -9
  12. package/dist/ai/BbBreadcrumbs.md +23 -34
  13. package/dist/ai/BbButton.md +35 -47
  14. package/dist/ai/BbCheckbox.md +21 -37
  15. package/dist/ai/BbCheckboxGroup.md +13 -13
  16. package/dist/ai/BbCollapsible.md +14 -26
  17. package/dist/ai/BbColorInput.md +13 -23
  18. package/dist/ai/BbColorPalette.md +23 -35
  19. package/dist/ai/BbConfirm.md +17 -32
  20. package/dist/ai/BbDatePickerInput.md +15 -21
  21. package/dist/ai/BbDialog.md +159 -62
  22. package/dist/ai/BbDropdown.md +21 -25
  23. package/dist/ai/BbDropdownButton.md +13 -30
  24. package/dist/ai/BbDropzone.md +9 -11
  25. package/dist/ai/BbIcon.md +44 -33
  26. package/dist/ai/BbIndicator.md +2 -2
  27. package/dist/ai/BbNumberInput.md +18 -20
  28. package/dist/ai/BbOffCanvas.md +42 -42
  29. package/dist/ai/BbPagination.md +21 -23
  30. package/dist/ai/BbPopover.md +15 -17
  31. package/dist/ai/BbProgress.md +40 -51
  32. package/dist/ai/BbRadio.md +9 -9
  33. package/dist/ai/BbRadioGroup.md +7 -11
  34. package/dist/ai/BbRating.md +8 -12
  35. package/dist/ai/BbSelect.md +32 -36
  36. package/dist/ai/BbSelectPopover.md +19 -31
  37. package/dist/ai/BbSlider.md +15 -19
  38. package/dist/ai/BbSmoothHeight.md +16 -31
  39. package/dist/ai/BbSpinner.md +118 -74
  40. package/dist/ai/BbSwitch.md +25 -18
  41. package/dist/ai/BbSwitchGroup.md +9 -14
  42. package/dist/ai/BbTable.md +102 -55
  43. package/dist/ai/BbTabs.md +59 -82
  44. package/dist/ai/BbTag.md +12 -23
  45. package/dist/ai/BbTextInput.md +20 -26
  46. package/dist/ai/BbTextarea.md +28 -34
  47. package/dist/ai/BbToast.md +14 -34
  48. package/dist/ai/BbTooltip.md +22 -20
  49. package/dist/ai/BbTree.md +46 -72
  50. package/dist/ai/changelog.json +169 -62
  51. package/dist/ai/components.json +1467 -9
  52. package/dist/ai/composables/useConfirm.md +5 -2
  53. package/dist/ai/composables/useToast.md +4 -2
  54. package/dist/ai/guides/agent-contract.md +7 -4
  55. package/dist/ai/guides/ai-router.md +37 -22
  56. package/dist/ai/guides/component-picker.md +23 -18
  57. package/dist/ai/guides/design-language.md +141 -13
  58. package/dist/ai/guides/design-tokens.md +29 -4
  59. package/dist/ai/guides/icons-policy.md +46 -21
  60. package/dist/ai/guides/installation-and-plugin-setup.md +253 -17
  61. package/dist/ai/guides/migration/components/bb-rating.md +26 -1
  62. package/dist/ai/guides/migration/components/bb-tooltip.md +18 -0
  63. package/dist/ai/guides/migration/v2-to-v3.md +50 -23
  64. package/dist/ai/index.md +1 -1
  65. package/dist/ai/recipes/inertia/approvals-inbox.md +3 -3
  66. package/dist/ai/recipes/inertia/inline-edit-workspace.md +2 -2
  67. package/dist/ai/recipes/inertia/onboarding.md +2 -2
  68. package/dist/ai/recipes/inertia/ownership-atlas.md +6 -6
  69. package/dist/ai/recipes/inertia/record-form.md +5 -5
  70. package/dist/ai/recipes/inertia/records-workspace.md +4 -4
  71. package/dist/ai/recipes/inertia/upload-center.md +6 -6
  72. package/dist/ai/recipes/inertia/wizard-form.md +5 -5
  73. package/dist/ai/recipes/nuxt/approvals-inbox.md +3 -3
  74. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +2 -2
  75. package/dist/ai/recipes/nuxt/onboarding.md +2 -2
  76. package/dist/ai/recipes/nuxt/record-form.md +5 -5
  77. package/dist/ai/recipes/nuxt/records-workspace.md +4 -4
  78. package/dist/ai/recipes/nuxt/upload-center.md +6 -6
  79. package/dist/ai/recipes/nuxt/wizard-form.md +5 -5
  80. package/dist/ai/recipes/vue/approvals-inbox.md +3 -3
  81. package/dist/ai/recipes/vue/inline-edit-workspace.md +2 -2
  82. package/dist/ai/recipes/vue/onboarding.md +2 -2
  83. package/dist/ai/recipes/vue/record-form.md +10 -10
  84. package/dist/ai/recipes/vue/records-workspace.md +4 -4
  85. package/dist/ai/recipes/vue/upload-center.md +6 -6
  86. package/dist/ai/recipes/vue/wizard-form.md +5 -5
  87. package/dist/ai/source/BbBadge.md +1 -1
  88. package/dist/ai/source/BbBaseCheckbox.md +1 -1
  89. package/dist/ai/source/BbBaseDatePicker.md +5 -5
  90. package/dist/ai/source/BbBaseDatePickerInput.md +2 -2
  91. package/dist/ai/source/BbBaseRadio.md +1 -1
  92. package/dist/ai/source/BbBaseRating.md +5 -5
  93. package/dist/ai/source/BbBaseSelect.md +1 -1
  94. package/dist/ai/source/BbBaseSlider.md +5 -5
  95. package/dist/ai/source/BbBaseSwitch.md +1 -1
  96. package/dist/ai/source/BbBaseTimePickerInput.md +1 -1
  97. package/dist/ai/source/BbBreadcrumbs.md +20 -1
  98. package/dist/ai/source/BbButton.md +2 -2
  99. package/dist/ai/source/BbDialog.md +39 -8
  100. package/dist/ai/source/BbDropdown.md +1 -1
  101. package/dist/ai/source/BbDropzone.md +5 -5
  102. package/dist/ai/source/BbIcon.md +23 -10
  103. package/dist/ai/source/BbOffCanvas.md +50 -28
  104. package/dist/ai/source/BbPagination.md +2 -2
  105. package/dist/ai/source/BbPopover.md +12 -1
  106. package/dist/ai/source/BbSelectPopover.md +45 -7
  107. package/dist/ai/source/BbSpinner.md +2 -2
  108. package/dist/ai/source/BbTable.md +11 -11
  109. package/dist/ai/source/BbTooltip.md +57 -10
  110. package/dist/ai/source/ChipsBox.md +1 -1
  111. package/dist/ai/source/CommaBox.md +1 -1
  112. package/dist/ai/source/GuidesComponent.md +14 -7
  113. package/dist/ai/source/OptionsContainer.md +1 -1
  114. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +1 -1
  115. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +1 -1
  116. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +1 -1
  117. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +4 -4
  118. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +1 -1
  119. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +1 -1
  120. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.d.ts +1 -1
  121. package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +1 -1
  122. package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +3 -3
  123. package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +1 -1
  124. package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +3 -3
  125. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +1 -1
  126. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +1 -1
  127. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +71 -71
  128. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +2 -2
  129. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +102 -97
  130. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +1 -1
  131. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +58 -58
  132. package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +2 -2
  133. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +33 -35
  134. package/dist/components/BbIcon/iconCache.d.ts +30 -0
  135. package/dist/components/BbIcon/iconCache.js +21 -3
  136. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +57 -56
  137. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +2 -2
  138. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +138 -138
  139. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +43 -43
  140. package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +1 -1
  141. package/dist/components/BbSpinner/types.d.ts +1 -1
  142. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +8 -8
  143. package/dist/components/BbTable/BbTableDataRow.js +2 -2
  144. package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +62 -62
  145. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +81 -78
  146. package/dist/components/BbTooltip/types.d.ts +8 -1
  147. package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +1 -1
  148. package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +1 -1
  149. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +1 -1
  150. package/dist/composables/useConfirm.d.ts +22 -0
  151. package/dist/composables/useConfirm.js +43 -40
  152. package/dist/composables/useSafeAreaInternal.js +1 -1
  153. package/dist/composables/useToast.d.ts +16 -0
  154. package/dist/composables/useToast.js +20 -16
  155. package/dist/composables/useViewportWidth.d.ts +20 -6
  156. package/dist/composables/useViewportWidth.js +8 -7
  157. package/dist/icon-scan.d.ts +276 -0
  158. package/dist/icon-scan.js +485 -0
  159. package/dist/icons-whitelist.d.ts +5 -4
  160. package/dist/llms-full.txt +1979 -1527
  161. package/dist/llms-medium.txt +461 -74
  162. package/dist/llms.txt +1 -1
  163. package/dist/nuxt.js +10 -7
  164. package/dist/plugin.js +1 -0
  165. package/dist/runtime/nuxt-plugin.js +2 -1
  166. package/dist/styles.css +1 -1
  167. package/dist/types/Config.d.ts +18 -0
  168. package/dist/utils/cssLayers.d.ts +91 -0
  169. package/dist/utils/cssLayers.js +43 -0
  170. package/dist/utils/injectLibraryStyles.d.ts +3 -1
  171. package/dist/utils/injectLibraryStyles.js +24 -23
  172. package/dist/vite-plugin.d.ts +74 -11
  173. package/dist/vite.js +292 -253
  174. package/llms.txt +1 -1
  175. package/package.json +7 -5
  176. package/scripts/lib/ensure-manifest.mjs +28 -5
  177. package/scripts/lib/eslint-plugin.d.ts +35 -0
  178. package/scripts/lib/eslint-plugin.mjs +299 -3
  179. package/scripts/lib/hand-roll-hints.mjs +50 -6
  180. package/scripts/lib/html-attributes.mjs +42 -0
  181. package/scripts/lib/mcp-config.mjs +38 -34
  182. package/scripts/lib/public-type-exports.mjs +246 -0
  183. package/scripts/lib/validate-bb-markup.mjs +205 -12
@@ -221,7 +221,7 @@ Two runtime options control CSS:
221
221
 
222
222
  Guaranteed order when injected: **reset → library styles → all other stylesheets**, so app-local CSS can always override the library.
223
223
 
224
- `resetCss` stays opt-in because Tailwind projects already ship Preflight — a second reset is usually unnecessary.
224
+ `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.
225
225
 
226
226
  **Tailwind v4 cascade layers vs. scoped `<style>`:** Tailwind v4's `@import
227
227
  'tailwindcss'` puts every utility class in `@layer utilities`. A Vue SFC's
@@ -290,23 +290,193 @@ Leave `resetCss` at `false` here — Preflight already reset everything.
290
290
  Nothing else about the plugin changes; `injectStyles` controls only whether the
291
291
  library injects its own `<style>`.
292
292
 
293
- **Tailwind v4 apps do not need this** — source order does not decide their ties
294
- at all. `@import 'tailwindcss'` puts Preflight in a real `@layer base` and
295
- utilities in `@layer utilities`, and layered rules lose to unlayered rules of
296
- equal specificity **regardless of source order**. `dist/styles.css` declares no
297
- `@layer`, so the library wins those ties wherever it is injected: leave
298
- auto-injection on. The same mechanic bites the other way, and silently — a
299
- utility cannot re-size a Bb component either. `<BbButton class="h-12 px-6">`
300
- loses to the library's own `.bb-button { height: var(--h); padding-left:
301
- var(--px); padding-right: var(--px) }` (equal specificity, unlayered), with no
302
- warning from anything. Size Bb components through their props and tokens, never
303
- utilities. (Same trap as the scoped-`<style>` case above, one level up.)
293
+ **Tailwind v4 apps do not need `injectStyles: false`** — source order does not
294
+ decide their ties at all. `@import 'tailwindcss'` puts Preflight in a real
295
+ `@layer base` and utilities in `@layer utilities`, and **a layered rule loses to
296
+ an unlayered one regardless of source order**. Leave auto-injection on and use
297
+ `cssLayers` below.
298
+
299
+ ### Cascade layers — the switch that decides who wins a tie
300
+
301
+ The cascade weighs **layer before specificity**. Unlayered CSS beats every
302
+ layered rule, however specific the layered one is. That one fact means there is
303
+ no single correct default, so the option is opt-in and you tell the library
304
+ where it sits:
305
+
306
+ | your CSS | `cssLayers` | who wins a tie |
307
+ | -------------------------------------------- | ----------------------------------- | ---------------------------------------------- |
308
+ | no layers (plain CSS, Tailwind v3) | unset (default) | source order — library first, so your CSS wins |
309
+ | Tailwind v4, or any layered CSS | your full order, ours in it (below) | exactly what your array says |
310
+ | no layers, and you want to override anything | `['bitboss-ui']` | you do, always |
311
+
312
+ The value is always an array: your complete layer order with `bitboss-ui` in
313
+ it, and `bitboss-ui-reset` immediately before it **when `resetCss` is on**.
314
+ With the reset off you may list `bitboss-ui-reset` anyway — an unused layer is
315
+ just empty — so the constant below works in every project, and you do not need
316
+ to know that Tailwind carries a reset of its own to use it.
317
+
318
+ **We do not ask you to add an `@layer` line to your stylesheet.** The plugin
319
+ injects the declaration ahead of its own rules, and a layer's position is fixed
320
+ by its first mention — so the order you configure is the order you get.
321
+
322
+ #### Tailwind v4
323
+
324
+ ```ts
325
+ // vite.config.ts — or the `bitboss` key in nuxt.config.ts
326
+ import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
327
+
328
+ bitbossUi({
329
+ iconDir: './assets/icons',
330
+ cssLayers: TAILWIND_V4_LAYERS,
331
+ });
332
+ ```
333
+
334
+ `TAILWIND_V4_LAYERS` is
335
+ `['theme', 'base', 'bitboss-ui-reset', 'bitboss-ui', 'components', 'utilities']`:
336
+ Tailwind's own order with ours **after `base`**, so Preflight cannot outrank
337
+ the components, and **before `utilities`**, so `<BbButton class="px-6">`
338
+ works. Prefer the constant to the literal — a six-item array that has to be
339
+ exactly right is the kind of thing a typo turns into a silent loss of every
340
+ tie.
341
+
342
+ #### Tailwind v3, or plain CSS
343
+
344
+ Leave `cssLayers` unset. v3 emits unlayered CSS, and two unlayered stylesheets
345
+ are decided by source order — which auto-injection already puts in your favour.
346
+
347
+ #### Tailwind v3 — making utilities win anyway (opt-in)
348
+
349
+ v3 has no native layers of its own, but you can put its output into real ones
350
+ by wrapping the directives yourself. This is the shape PrimeVue documents, and
351
+ it is the only way to get v4's behaviour on v3:
352
+
353
+ ```css
354
+ /* your Tailwind entry, e.g. app.css */
355
+ @layer tailwind-base, bitboss-ui-reset, bitboss-ui, tailwind-utilities;
356
+
357
+ @layer tailwind-base {
358
+ @tailwind base;
359
+ }
360
+
361
+ @layer tailwind-utilities {
362
+ @tailwind components;
363
+ @tailwind utilities;
364
+ }
365
+ ```
366
+
367
+ ```ts
368
+ bitbossUi({
369
+ iconDir: './assets/icons',
370
+ cssLayers: [
371
+ 'tailwind-base',
372
+ 'bitboss-ui-reset',
373
+ 'bitboss-ui',
374
+ 'tailwind-utilities',
375
+ ],
376
+ });
377
+ ```
378
+
379
+ Both halves are required and they must agree: the CSS puts Tailwind's expanded
380
+ output INTO the layers, and `cssLayers` puts us between them. Verified against
381
+ a real v3 build — `.p-4` on a `Bb*` component wins, and Preflight no longer
382
+ outranks the components.
383
+
384
+ This is the one case where you write an `@layer` line yourself, because the
385
+ line has to wrap YOUR directives and we cannot reach them. Ours is emitted as
386
+ usual; the two declarations name the same order, and a layer's position is
387
+ fixed by its first mention, so they agree rather than fight.
388
+
389
+ #### "I just want to override things and not think about it"
390
+
391
+ ```ts
392
+ bitbossUi({
393
+ iconDir: './assets/icons',
394
+ cssLayers: ['bitboss-ui'], // ['bitboss-ui-reset', 'bitboss-ui'] with resetCss: true
395
+ });
396
+ ```
397
+
398
+ Declares our layer(s) and nothing else. All of your unlayered CSS then wins,
399
+ whatever its specificity.
400
+
401
+ > **Do not use this if your app loads a baseline stylesheet.** A reset is
402
+ > unlayered CSS made of element selectors, which is the exact combination this
403
+ > value inverts: `normalize.css`, your own `baseline.css`, or **Tailwind v3's
404
+ > Preflight** stop losing to our components on specificity and start outranking
405
+ > them outright. Measured on a real v3 build, a component rule of
406
+ > `margin: 5px` renders as `0px` — Preflight's `margin: 0` wins. The library
407
+ > does not look "overridable", it looks broken: controls lose their height,
408
+ > padding and borders, and nothing warns. If you want utilities to win on v3,
409
+ > use the layer hack above, which keeps the reset below us where it belongs.
410
+
411
+ Two further consequences: your global element rules (`button {}`, `input {}`)
412
+ now outrank component internals too — and this is the **wrong** value for a
413
+ layered app, because your own layers are declared later and land above ours,
414
+ Preflight included. A Tailwind v4 app uses the array above.
415
+
416
+ #### What "the utility loses" actually means
417
+
418
+ Not "utilities stop working on `Bb*` components". The cascade picks a winner
419
+ **per property**, so a layered utility loses only where we declare that exact
420
+ property on that element. Anything we leave alone is uncontested and simply
421
+ applies. Measured against the shipped sheet, v4 with `cssLayers` unset:
422
+
423
+ | on a `BbButton` | outcome | why |
424
+ | --------------- | ---------------- | ------------------------------------- |
425
+ | `w-20` | applies | we never declare `width` |
426
+ | `h-12` | applies | we declare `min-height`, not `height` |
427
+ | `m-4` | applies | we never declare `margin` |
428
+ | `p-4` | **half applies** | top/bottom land, left/right lose |
429
+ | `px-6` | no effect | we declare both padding longhands |
430
+ | `rounded-lg` | no effect | we declare `border-radius` |
431
+ | `text-lg` | no effect | we declare `font-size` |
432
+ | `gap-2` | no effect | we declare `gap` |
433
+
434
+ **The shorthand row is the one that hurts.** A clean loss is legible: you write
435
+ `px-6`, nothing moves, you go looking. `p-4` expands to four longhands, we
436
+ declare only the horizontal two, so their vertical padding applies while our
437
+ horizontal survives — a component nobody designed, with no signal that anything
438
+ was overridden.
439
+
440
+ So `cssLayers` does not turn utilities from broken into working. It turns them
441
+ from a per-property lottery into "always wins". **Predictability is the
442
+ feature, not capability** — and it is why the fix is worth taking even in an app
443
+ where the handful of utilities you tried happened to land.
444
+
445
+ #### Symptoms and what they mean
446
+
447
+ | what you see | cause | fix |
448
+ | --------------------------------------------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------- |
449
+ | 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` |
450
+ | every component lost its background / border | you listed only our two layers in a layered (v4) app | `cssLayers: TAILWIND_V4_LAYERS` |
451
+ | 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 |
452
+ | 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 |
453
+ | 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` |
454
+ | 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 |
455
+
456
+ A malformed value **fails the build**, never the browser: a wrong layer order is
457
+ invisible at runtime, because the CSS still parses and merely loses every tie.
458
+
459
+ #### The one thing layers do not fix
460
+
461
+ Layers decide ties between rules. They do not help when a component's own
462
+ inline `style` sets a property, because inline styles beat every layer. Where a
463
+ component needs to be positioned or sized by its parent, it exposes a CSS
464
+ variable, and that hook works in every configuration:
465
+
466
+ ```html
467
+ <!-- takes the row's slack; works on v3, v4, layered or not -->
468
+ <BbBreadcrumbs class="min-w-0" style="--flex-grow: 1" :items="crumbs" />
469
+ ```
470
+
471
+ Reach for the documented variable before reaching for a utility.
304
472
 
305
473
  ## 6) Icons
306
474
 
307
- - `iconDir` (required) is scanned recursively for `.svg` files; each file becomes `local:<basename>`.
308
- - Provider icons (`lucide:pencil`, `mdi:home`, …) require the matching `@iconify-json/<prefix>` package installed in the consumer app. In dev, every `prefix:name` the registry does not know produces a Vite error overlay with the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, 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 is a missing file in `iconDir` and surfaces as `BbIcon`'s runtime error naming it. Production builds report none of this — the scan simply drops what does not resolve, so a wrong name fails at runtime there.
309
- - Production builds bundle **only statically referenced** provider icons — write icon names as literal strings (`icon="lucide:trash-2"`), never assemble them dynamically.
475
+ - `iconDir` (required) is scanned recursively for `.svg` files; each file becomes `local:<basename>`. **`local:` ships everything.**
476
+ - 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.
477
+ - **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.
478
+ - **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.
479
+ - **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.
310
480
  - 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.
311
481
 
312
482
  Policy for choosing icons: [Icons Policy](./icons-policy.md).
@@ -317,7 +487,37 @@ Options are the same for `bitboss-ui/vite` and the `bitboss` key in Nuxt.
317
487
 
318
488
  ### `iconDir: string` (required)
319
489
 
320
- 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>`.
490
+ 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.
491
+
492
+ ### `iconsScanner?: { include?: string[]; exclude?: string[]; maxFileSize?: number }`
493
+
494
+ Tunes the provider-icon source scan (see [Icons](#6-icons)). All three are optional and additive to the defaults; the root is always scanned.
495
+
496
+ - `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/`.
497
+ - `exclude` — globs removed from the scan on top of the defaults, in gitignore syntax, relative to the root (`['resources/legacy/**', '**/*.sql']`).
498
+ - `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.
499
+
500
+ ```ts
501
+ bitbossUi({
502
+ iconDir: './resources/icons',
503
+ iconsScanner: {
504
+ include: ['vendor/acme/ui-kit/src'],
505
+ exclude: ['database/dumps/**'],
506
+ },
507
+ });
508
+ ```
509
+
510
+ ### `iconWhitelist?: string[]`
511
+
512
+ 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).
513
+
514
+ ```ts
515
+ bitbossUi({
516
+ iconDir: './resources/icons',
517
+ // `icon` is stored per category in the database; the admin picks from these.
518
+ iconWhitelist: ['tabler:category', 'tabler:tag', 'tabler:calendar-*'],
519
+ });
520
+ ```
321
521
 
322
522
  ### `injectStyles?: boolean` (default: `true`)
323
523
 
@@ -327,6 +527,28 @@ Auto-inject the library stylesheet at runtime. If `false`, you must `import 'bit
327
527
 
328
528
  Inject the reset stylesheet (always ordered before the library stylesheet). Keep `false` and import `bitboss-ui/reset.css` if you prefer explicit control.
329
529
 
530
+ ### `cssLayers?: string[]` (default: unset)
531
+
532
+ Wraps the library's stylesheets in CSS cascade layers and declares where they
533
+ sit. Opt-in. Full guide with copy-paste blocks in §5 → _Cascade layers_.
534
+
535
+ The value is your app's **complete** layer order with `bitboss-ui` in it, and
536
+ `bitboss-ui-reset` before it when `resetCss` is on (listing it anyway is fine).
537
+ Unset means unlayered, today's behaviour, right for plain CSS and Tailwind v3.
538
+
539
+ ```ts
540
+ import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
541
+
542
+ // Tailwind v4 — ['theme', 'base', 'bitboss-ui-reset', 'bitboss-ui', 'components', 'utilities']
543
+ cssLayers: TAILWIND_V4_LAYERS;
544
+ // no layers of your own, and you want to override anything
545
+ cssLayers: ['bitboss-ui']; // ['bitboss-ui-reset', 'bitboss-ui'] with resetCss: true
546
+ ```
547
+
548
+ You do not add an `@layer` line to your own CSS — the plugin emits the
549
+ declaration ahead of its rules. An invalid array, or a boolean, fails the build
550
+ with a message containing a working replacement.
551
+
330
552
  ### `injectDirectives?: boolean` (default: `true`)
331
553
 
332
554
  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.
@@ -564,10 +786,12 @@ when the contract cannot answer the question — the usual case is rebuilding
564
786
  chrome around a control the library does not ship, since the class names such a
565
787
  template emits are already styled by the public `bitboss-ui/styles.css`.
566
788
 
567
- 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).
789
+ Add `--mcp` to also register a live MCP server (`node node_modules/bitboss-ui/bin/bitboss-ui.mjs mcp` — the installed binary, not `npx`, so it can never fetch from the registry, its optional peers resolve in your project rather than in an npx cache, and it cannot drift behind an upgrade) the harness launches on demand — it merges the entry (never overwriting other servers) into `.mcp.json` (Claude Code), `.cursor/mcp.json` (Cursor), `.vscode/mcp.json` (VS Code / Copilot), and `~/.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).
568
790
 
569
791
  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. 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.
570
792
 
793
+ 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.
794
+
571
795
  **The manifest ships with the package** — `dist/ai/components.json` is inside
572
796
  the tarball, and the rules resolve it relative to their own file, so a normal
573
797
  install needs no configuration. If it ever cannot be read (a broken install, a
@@ -576,6 +800,18 @@ nothing), the rules cannot check anything: they now **warn once** saying they
576
800
  are inactive rather than passing silently. Pass `failClosed: true` to a rule's
577
801
  options if you would rather CI stop than under-check.
578
802
 
803
+ Alongside `components` the manifest carries a `types` array: the public TYPE
804
+ exports (`BbTableColumn`, `BbDropdownItem`, …), each with the component and prop
805
+ it is written on. That is how `check`, the ESLint rules and the MCP server tell
806
+ a type used as a tag from a typo and from a component your app owns — three
807
+ cases that used to share one message and one (usually wrong) remedy.
808
+
809
+ **`allowComponents` is a per-tag off switch, not the suppression of one
810
+ message.** An allowlisted name is skipped whole: no unknown-component finding,
811
+ and no prop, event, v-model or slot check on that tag, permanently. Right for an
812
+ app-owned `<BbRichEditor>`; wrong for everything else — never reach for it to
813
+ quieten a `Bb*` name the library itself exports.
814
+
579
815
  `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](../guides/migration/components/bb-checkbox.md).
580
816
 
581
817
  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.
@@ -76,6 +76,31 @@ override off `:root` and onto the block — the value itself is yours to keep:
76
76
 
77
77
  Set it on `.bb-base-rating` itself (or on a rule that also matches it) — the
78
78
  local is declared on that block, so a value inherited from an ancestor is
79
- overridden before it is read. `--spacing` (star gap) is the companion local;
79
+ overridden before it is read. `--space` (star gap) is the companion local;
80
80
  v2's `--bb-base-rating-spacing` was referenced but never declared anywhere in
81
81
  the shipped sheet, so it never worked.
82
+
83
+ ### `--spacing` → `--space` (hard rename, no alias)
84
+
85
+ The star-gap local was called `--spacing` until 2026-09-09. **Tailwind v4 built
86
+ its entire spacing scale on a variable of that exact name** — `p-4` compiles to
87
+ `padding: calc(var(--spacing) * 4)`, where v3 emitted a literal `1rem`. Custom
88
+ properties inherit, so `--spacing: 0px` on `.bb-base-rating` silently zeroed
89
+ **every** spacing utility a Tailwind v4 app used inside the component's slots:
90
+
91
+ ```html
92
+ <!-- on Tailwind v4, before the rename: padding, gap and size all resolved to 0 -->
93
+ <BbRating>
94
+ <template #icon><Icon class="size-5 p-1" /></template>
95
+ </BbRating>
96
+ ```
97
+
98
+ If you overrode the gap, rename the property. The value is unchanged:
99
+
100
+ ```diff
101
+ - .bb-base-rating { --spacing: 4px; }
102
+ + .bb-base-rating { --space: 4px; }
103
+ ```
104
+
105
+ Nothing else changes. `--space` is not a Tailwind theme namespace, so it cannot
106
+ collide the same way.
@@ -15,6 +15,7 @@ summary: timeout renamed to delay; theme replaced by typed variant; hideArrow is
15
15
  | `activator` / `boundary` loose types | `ElementOrComponentRef*` | transparent in templates |
16
16
  | `showClose?: boolean` (default `true`) | removed | **the tooltip has no close button.** ⚠ Do **not** rewrite to `hide-close` — that prop does not exist here. Delete it. |
17
17
  | `block` | removed | dead prop — it styled nothing (same as `BbPopover.block`) |
18
+ | `width` = a fixed bubble width | `width` = a **maximum** width (default cap `40ch`) | behavior change — same prop name, see below |
18
19
  | — | `modelValue` + `update:modelValue` | additive — a tooltip can now be opened/closed programmatically |
19
20
 
20
21
  The tooltip is the **only** surface that kept its arrow — popovers, selects,
@@ -43,6 +44,23 @@ If you were passing `:show-close="false"` you already had the v3 behaviour —
43
44
  deleting the prop changes nothing visually. `npx bitboss-ui check` flags both
44
45
  spellings and names this file.
45
46
 
47
+ ### `width` caps the bubble instead of fixing it
48
+
49
+ In v2 `width` set the bubble's width outright, so `:width="300"` on a 150px
50
+ hint left half the bubble empty. In v3 it compiles to `max-width`: the bubble
51
+ wraps at that measure but still shrinks to its text. Nothing to rewrite — the
52
+ prop keeps its name and its values, and long hints look the same. Short ones
53
+ get narrower, which is the point.
54
+
55
+ Two consequences worth knowing:
56
+
57
+ - A tooltip with **no** `width` is now capped at `40ch` rather than running the
58
+ full width of the viewport. Override it in CSS with `--max-w` on
59
+ `.bb-tooltip` (or per instance with the prop).
60
+ - Values v2 mis-parsed now work. `'20rem'` used to render a 20**px** bubble;
61
+ `'auto'` and `calc()`/`min()` values threw during render. All of them are
62
+ passed to CSS as written.
63
+
46
64
  ## Edits
47
65
 
48
66
  ```diff
@@ -39,6 +39,25 @@ explicitly (section 8).
39
39
 
40
40
  ## 0. Upgrade strategy — do it in this order
41
41
 
42
+ > **Already on v3, bumping between prereleases?** This guide is the v2 → v3
43
+ > move; you want the much shorter answer instead:
44
+ >
45
+ > ```bash
46
+ > npx bitboss-ui changelog --since 3.0.0-beta.20 # what BREAKS in the bump
47
+ > ```
48
+ >
49
+ > Then turn that list into **your** files, before you install anything:
50
+ >
51
+ > ```bash
52
+ > npm pack bitboss-ui@3.0.0-beta.21 && tar -xzf bitboss-ui-3.0.0-beta.21.tgz
53
+ > npx bitboss-ui check --manifest package/dist/ai/components.json
54
+ > ```
55
+ >
56
+ > `check` normally judges the INSTALLED version, which can only tell you what
57
+ > an upgrade broke after you took it. `--manifest` points it at the version you
58
+ > are moving to, so the damage is visible first. Agents with the MCP server get
59
+ > the same answer from `list_changes({ since })`.
60
+
42
61
  1. **Swap the setup** (section 1): install the build plugin and the runtime
43
62
  plugin. Nothing renders correctly until this is done.
44
63
  2. **Move your config** (section 2): everything you passed to
@@ -52,6 +71,13 @@ explicitly (section 8).
52
71
  fail loudly. Fix them component by component with the per-component guides.
53
72
  5. **Audit what the compiler cannot find** (section 8): untyped templates,
54
73
  `v-bind` objects, and behavioral flips are silent. Run the grep playbook.
74
+ **Your stylesheets are the silent half.** `vue-tsc` never reads CSS, so a
75
+ rule targeting a renamed or deleted class simply stops matching — no error,
76
+ no warning, and the page often still looks close enough to pass review. A
77
+ v2-era theme file can carry hundreds of lines that have done nothing since
78
+ the upgrade. Section 5.6 has the rename table and the grep that finds them;
79
+ run it before you conclude a component "has no token for this", because a
80
+ dead override and a missing affordance look identical from the browser.
55
81
  6. **Convert class overrides to variants** (section 7): userland
56
82
  `class="bb-button--outline"`-style overrides keep _working_ but are now the
57
83
  wrong pattern — the variant prop exists, is typed, and is the only form the
@@ -1031,28 +1057,29 @@ markup contract and the layout drift that comes with the substrate:
1031
1057
 
1032
1058
  **Everything else**
1033
1059
 
1034
- | v2 | v3 |
1035
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1036
- | `.bb-chip*` | `.bb-badge*` (component replaced) |
1037
- | `.bb-badge*` used as a floating count/dot (`--dot --floating --positioned --left --bottom --empty`, `__wrapper`, `__content-container`) | `.bb-indicator*` (component renamed) |
1038
- | `.bb-color-palette__*` (canvas, canvas-thumb, canvas-wrap, controls, eyedropper, preview, preview--alpha, preview-wrap, slider-thumb, slider-track, slider-wrap, slider-wrap--alpha, sliders, swatch, swatch--active, swatch-group, swatches) | `.bb-base-color-palette__*` — 1:1 on every one |
1039
- | `.bb-toast--top-start` / `--top` / `--top-end` / `--bottom-start` / `--bottom` / `--bottom-end` | `.bb-toast--top-left` / `--top-center` / `--top-right` / `--bottom-left` / `--bottom-center` / `--bottom-right` (matching the `position` prop's corner set) |
1040
- | `.bb-toast-message__icon-container` | **removed** — style `.bb-toast-message__icon` directly |
1041
- | `.bb-tree--open` | `.bb-tree__node--expanded` |
1042
- | `.bb-tree-row` | `.bb-tree__row` |
1043
- | `.bb-tree-main-content` | `.bb-tree__content` |
1044
- | `.bb-dropdown-button__dropdown-chevron` | `.bb-dropdown-button__chevron` |
1045
- | `.bb-dropdown-button--loading` / `__content` / `__icon` / `__prepend-icon` / `__append-icon` | **removed** — the split button delegates to `BbButton`'s internals; target `.bb-button__*` inside it |
1046
- | `.bb-dropdown__wrapper` | **removed** — the extra wrapper element is gone |
1047
- | `.bb-select-popover__search-spinner` | `.bb-select-popover__search-icon` (one element, spinner state included) |
1048
- | `.bb-base-date-picker__header` (the tinted banner holding the month/year controls) | `.bb-base-date-picker__controls` (+ the inner `__nav-center`) — the banner is gone; the controls sit on the calendar surface. `__header-container` and `__header-cell` are unrelated and unchanged: they are the weekday row. |
1049
- | `.bb-base-date-picker__control` / `__year-control` | `.bb-base-date-picker__nav-btn` |
1050
- | `.bb-base-date-picker__month-button` / `__year-button` | `.bb-base-date-picker__heading-btn` (+ `--active`) |
1051
- | `.bb-base-date-picker__weekday` | `.bb-base-date-picker__header-cell` |
1052
- | `.bb-base-date-picker__monthday` | `.bb-base-date-picker__date` (+ the inner `__date-button`) |
1053
- | `.bb-base-date-picker__year-container` | `.bb-base-date-picker__year-selector` |
1054
- | `.bb-base-date-picker__header--hidden`, `__selected-day-label` | **removed** |
1055
- | `.bb-commabox-item--has-comma` | the select's comma list renders `.bb-base-select__comma-item` (`.bb-commabox-item` itself survives; `--has-comma` and `.bb-chipsbox-item--focused` do not) |
1060
+ | v2 | v3 |
1061
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1062
+ | `.bb-chip*` | `.bb-badge*` (component replaced) |
1063
+ | `.bb-badge*` used as a floating count/dot (`--dot --floating --positioned --left --bottom --empty`, `__wrapper`, `__content-container`) | `.bb-indicator*` (component renamed) |
1064
+ | `.bb-color-palette__*` (canvas, canvas-thumb, canvas-wrap, controls, eyedropper, preview, preview--alpha, preview-wrap, slider-thumb, slider-track, slider-wrap, slider-wrap--alpha, sliders, swatch, swatch--active, swatch-group, swatches) | `.bb-base-color-palette__*` — 1:1 on every one |
1065
+ | `.bb-toast--top-start` / `--top` / `--top-end` / `--bottom-start` / `--bottom` / `--bottom-end` | `.bb-toast--top-left` / `--top-center` / `--top-right` / `--bottom-left` / `--bottom-center` / `--bottom-right` (matching the `position` prop's corner set) |
1066
+ | `.bb-toast-message__icon-container` | **removed** — style `.bb-toast-message__icon` directly |
1067
+ | `.bb-tree--open` | `.bb-tree__node--expanded` |
1068
+ | `.bb-tree-row` | `.bb-tree__row` |
1069
+ | `.bb-tree-main-content` | `.bb-tree__content` |
1070
+ | `.bb-dropdown-button__dropdown-chevron` | `.bb-dropdown-button__chevron` |
1071
+ | `.bb-dropdown-button--loading` / `__content` / `__icon` / `__prepend-icon` / `__append-icon` | **removed** — the split button delegates to `BbButton`'s internals; target `.bb-button__*` inside it |
1072
+ | `.bb-dropdown__wrapper` | **removed** — the extra wrapper element is gone |
1073
+ | `.bb-select-popover__search-spinner` | `.bb-select-popover__search-icon` (one element, spinner state included) |
1074
+ | `.bb-base-date-picker__header` (the tinted banner holding the month/year controls) | `.bb-base-date-picker__controls` (+ the inner `__nav-center`) — the banner is gone; the controls sit on the calendar surface. `__header-container` and `__header-cell` are unrelated and unchanged: they are the weekday row. |
1075
+ | `.bb-base-date-picker__control` / `__year-control` | `.bb-base-date-picker__nav-btn` |
1076
+ | `.bb-base-date-picker__month-button` / `__year-button` | `.bb-base-date-picker__heading-btn` (+ `--active`) |
1077
+ | `.bb-base-date-picker__weekday` | `.bb-base-date-picker__header-cell` |
1078
+ | `.bb-base-date-picker__monthday` | `.bb-base-date-picker__date` (+ the inner `__date-button`) |
1079
+ | `.bb-base-date-picker__year-container` | `.bb-base-date-picker__year-selector` |
1080
+ | `.bb-base-date-picker__header--hidden`, `__selected-day-label` | **removed** |
1081
+ | `.bb-commabox-item--has-comma` | the select's comma list renders `.bb-base-select__comma-item` (`.bb-commabox-item` itself survives; `--has-comma` and `.bb-chipsbox-item--focused` do not) |
1082
+ | `.sr-only` — the visually-hidden helper every component uses for accessible names and status text (it shared Tailwind's class name) | `.bb-sr-only`. Only a selector reaching **into** a component (`.bb-table .sr-only`) breaks; your own Tailwind `sr-only` in your markup is untouched — which is why this one is deliberately **not** in the §8 grep: a hit there would be your code, not ours |
1056
1083
 
1057
1084
  The date **input**'s own field tree (`.bb-base-date-picker-input__field`,
1058
1085
  `__fields`, `__placeholder`, `__separator`, `__calendar-btn`) moved to a shared
@@ -1283,7 +1310,7 @@ rg -n 'disabled-while-loading|disabledWhileLoading' # removed
1283
1310
  rg -n 'animate-x|animate-y|animateX|animateY' # → disableAnimate*, now default-on
1284
1311
  rg -n 'thumb-translate|thumbTranslate' # → disable-thumb-translate
1285
1312
  rg -n ':flip=|flip="' # → disable-flip on palette/select-popover
1286
- rg -n 'hide-arrow|show-arrow|arrow-padding|hideArrow|showArrow|arrowPadding' # removed off tooltips
1313
+ rg -n 'hide-arrow|show-arrow|arrow-padding|hideArrow|showArrow|arrowPadding' # removed EVERYWHERE EXCEPT BbTooltip, which keeps hide-arrow + arrow-padding — hits on a tooltip are fine
1287
1314
  rg -n '<BbChip' # component removed → BbBadge clearable
1288
1315
  rg -n '<BbBadge' # v2 badges are v3 indicators — review each
1289
1316
  rg -n '<BbTab\b' # → BbTabs (\b so a tag name alone on its line still matches, and <BbTabs does not)
package/dist/ai/index.md CHANGED
@@ -12,7 +12,7 @@ This index helps agents quickly find component intent and authored guides before
12
12
  - Setup policy: verify installation + plugin setup before proposing usage code.
13
13
  - Icon policy: discover available icons first and use only existing icon names.
14
14
  - Contract-first policy: each component link below is a typed contract (props/events/slots/v-model). Read `source/<Name>.md` only when the contract is not enough.
15
- - Machine-readable manifest: [components.json](./components.json) lists every component API surface for programmatic validation.
15
+ - Machine-readable manifest: [components.json](./components.json) lists every component API surface for programmatic validation, plus a `types` array of the public TYPE exports (`BbTableColumn`, `BbDropdownItem`, …) naming the prop each one types and a `usage` tier — `api` is the two dozen you actually reach for, `wrapper` is for wrapping our components in yours, `advanced` is registries and contexts. Those are not components: import them, never write them as a tag.
16
16
  - Package path: use `dist/ai/guides/ai-router.md` (then `dist/ai/index.md`) inside the installed `bitboss-ui` package (`node_modules/bitboss-ui/dist/ai/`).
17
17
 
18
18
  ## Recipes (Page-Level Assemblies)
@@ -1286,7 +1286,7 @@ const selectedCount = computed(() =>
1286
1286
  <!-- Receipt: bigger than the row thumbnail, with a full-size link out. -->
1287
1287
  <section class="flex flex-col gap-1.5">
1288
1288
  <h3
1289
- class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1289
+ class="text-xs font-semibold tracking-wide text-[color:var(--bb-text-muted)] uppercase"
1290
1290
  >
1291
1291
  Receipt
1292
1292
  </h3>
@@ -1333,7 +1333,7 @@ const selectedCount = computed(() =>
1333
1333
  <!-- Activity feed. -->
1334
1334
  <section class="flex flex-col gap-1.5">
1335
1335
  <h3
1336
- class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1336
+ class="text-xs font-semibold tracking-wide text-[color:var(--bb-text-muted)] uppercase"
1337
1337
  >
1338
1338
  Activity
1339
1339
  </h3>
@@ -1487,7 +1487,7 @@ const statusLabel = (status: ExpenseStatus) =>
1487
1487
  <!-- Recent expenses: names drill down again — the stack keeps growing. -->
1488
1488
  <section class="flex flex-col gap-1.5">
1489
1489
  <h3
1490
- class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1490
+ class="text-xs font-semibold tracking-wide text-[color:var(--bb-text-muted)] uppercase"
1491
1491
  >
1492
1492
  Recent expenses
1493
1493
  </h3>
@@ -1585,7 +1585,7 @@ const selectedCount = computed(() =>
1585
1585
  <!-- Description. -->
1586
1586
  <section class="flex flex-col gap-1.5">
1587
1587
  <h3
1588
- class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1588
+ class="text-xs font-semibold tracking-wide text-[color:var(--bb-text-muted)] uppercase"
1589
1589
  >
1590
1590
  Description
1591
1591
  </h3>
@@ -1597,7 +1597,7 @@ const selectedCount = computed(() =>
1597
1597
  <!-- Activity feed. -->
1598
1598
  <section class="flex flex-col gap-1.5">
1599
1599
  <h3
1600
- class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1600
+ class="text-xs font-semibold tracking-wide text-[color:var(--bb-text-muted)] uppercase"
1601
1601
  >
1602
1602
  Activity
1603
1603
  </h3>
@@ -841,7 +841,7 @@ const ctx = useOnboardingWorkspace();
841
841
  </span>
842
842
  <span
843
843
  v-if="step.status === 'skipped'"
844
- class="shrink-0 text-xs uppercase tracking-wide text-[color:var(--bb-text-muted)]"
844
+ class="shrink-0 text-xs tracking-wide text-[color:var(--bb-text-muted)] uppercase"
845
845
  >
846
846
  Skipped
847
847
  </span>
@@ -1467,7 +1467,7 @@ const cadences: { value: ReminderCadence; label: string }[] = [
1467
1467
  <!-- What you'll get. -->
1468
1468
  <section class="flex flex-col gap-2.5">
1469
1469
  <h3
1470
- class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1470
+ class="text-xs font-semibold tracking-wide text-[color:var(--bb-text-muted)] uppercase"
1471
1471
  >
1472
1472
  What you'll get
1473
1473
  </h3>