bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.75

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 (249) hide show
  1. package/dist/ai/BbAvatar.md +86 -58
  2. package/dist/ai/BbBadge.md +1 -1
  3. package/dist/ai/BbBreadcrumbs.md +2 -2
  4. package/dist/ai/BbButton.md +2 -2
  5. package/dist/ai/BbCalendar.md +5 -2
  6. package/dist/ai/BbCheckboxGroup.md +5 -4
  7. package/dist/ai/BbColorInput.md +12 -0
  8. package/dist/ai/BbColorPalette.md +11 -6
  9. package/dist/ai/BbDatePicker.md +12 -0
  10. package/dist/ai/BbDatePickerInput.md +17 -1
  11. package/dist/ai/BbDialog.md +3 -1
  12. package/dist/ai/BbDropdown.md +155 -60
  13. package/dist/ai/BbDropdownButton.md +25 -6
  14. package/dist/ai/BbNumberInput.md +3 -1
  15. package/dist/ai/BbRadioGroup.md +4 -4
  16. package/dist/ai/BbSelect.md +79 -67
  17. package/dist/ai/BbSelectPopover.md +24 -5
  18. package/dist/ai/BbSwitchGroup.md +5 -4
  19. package/dist/ai/BbTable.md +17 -16
  20. package/dist/ai/BbTimePicker.md +12 -0
  21. package/dist/ai/BbTimePickerInput.md +15 -1
  22. package/dist/ai/BbToast.md +3 -2
  23. package/dist/ai/BbTree.md +5 -1
  24. package/dist/ai/CommonPopover.md +1 -0
  25. package/dist/ai/FlatListBox.md +1 -0
  26. package/dist/ai/GroupedListBox.md +1 -0
  27. package/dist/ai/ListBox.md +1 -0
  28. package/dist/ai/OptionsContainer.md +4 -4
  29. package/dist/ai/changelog.json +163 -6
  30. package/dist/ai/components.json +32 -34
  31. package/dist/ai/composables/useToast.md +2 -2
  32. package/dist/ai/design-tokens.json +60 -0
  33. package/dist/ai/guides/agent-contract.md +8 -4
  34. package/dist/ai/guides/design-tokens.md +13 -0
  35. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  36. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  37. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  38. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  39. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  40. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  41. package/dist/ai/guides/migration/v2-to-v3.md +22 -5
  42. package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
  43. package/dist/ai/guides/passthrough.md +3 -3
  44. package/dist/ai/helpers/inertia/manifest.json +1 -1
  45. package/dist/ai/index.md +1 -1
  46. package/dist/ai/manifest/common.json +1 -0
  47. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  48. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  49. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  50. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  51. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  52. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  53. package/dist/ai/manifest/components/BbColorPalette.json +5 -2
  54. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  55. package/dist/ai/manifest/components/BbDatePicker.json +3 -0
  56. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  57. package/dist/ai/manifest/components/BbDialog.tree.json +2 -0
  58. package/dist/ai/manifest/components/BbDropdown.json +20 -14
  59. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  60. package/dist/ai/manifest/components/BbDropdown.tree.json +13 -3
  61. package/dist/ai/manifest/components/BbDropdownButton.json +13 -7
  62. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  63. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  64. package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
  65. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  66. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  67. package/dist/ai/manifest/components/BbSelect.json +10 -7
  68. package/dist/ai/manifest/components/BbSelectPopover.json +6 -3
  69. package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
  70. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  71. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  72. package/dist/ai/manifest/components/BbTable.json +6 -6
  73. package/dist/ai/manifest/components/BbTable.tree.json +4 -0
  74. package/dist/ai/manifest/components/BbTimePicker.json +5 -2
  75. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  76. package/dist/ai/manifest/components/BbTree.json +1 -1
  77. package/dist/ai/manifest/components/CommonPopover.json +1 -0
  78. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  79. package/dist/ai/manifest/components/GroupedListBox.json +2 -1
  80. package/dist/ai/manifest/components/ListBox.json +2 -1
  81. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  82. package/dist/ai/manifest/index.json +2 -2
  83. package/dist/ai/manifest/meta.json +0 -3
  84. package/dist/ai/manifest/types.advanced.json +6 -6
  85. package/dist/ai/manifest/types.api.json +1 -3
  86. package/dist/ai/source/BbAvatar.md +119 -9
  87. package/dist/ai/source/BbBadge.md +12 -5
  88. package/dist/ai/source/BbBreadcrumbs.md +52 -54
  89. package/dist/ai/source/BbButton.md +41 -25
  90. package/dist/ai/source/BbCarousel.md +31 -28
  91. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  92. package/dist/ai/source/BbColorInput.md +19 -0
  93. package/dist/ai/source/BbColorPalette.md +18 -0
  94. package/dist/ai/source/BbDatePicker.md +18 -0
  95. package/dist/ai/source/BbDatePickerInput.md +40 -1
  96. package/dist/ai/source/BbDialog.md +14 -1
  97. package/dist/ai/source/BbDropdown.md +211 -39
  98. package/dist/ai/source/BbDropdownButton.md +27 -2
  99. package/dist/ai/source/BbDropdownGroup.md +104 -38
  100. package/dist/ai/source/BbGallery.md +76 -55
  101. package/dist/ai/source/BbHost.md +12 -0
  102. package/dist/ai/source/BbNumberInput.md +17 -10
  103. package/dist/ai/source/BbOffCanvas.md +14 -1
  104. package/dist/ai/source/BbRadioGroup.md +12 -5
  105. package/dist/ai/source/BbSelect.md +35 -20
  106. package/dist/ai/source/BbSelectPopover.md +116 -8
  107. package/dist/ai/source/BbSwitchGroup.md +11 -4
  108. package/dist/ai/source/BbTable.md +72 -26
  109. package/dist/ai/source/BbTimePicker.md +19 -0
  110. package/dist/ai/source/BbTimePickerInput.md +15 -0
  111. package/dist/ai/source/BbToast.md +2 -2
  112. package/dist/ai/source/BbToastPortal.md +2 -2
  113. package/dist/ai/source/BbTree.md +1 -1
  114. package/dist/ai/source/CommonPopover.md +24 -1
  115. package/dist/ai/source/FlatListBox.md +26 -5
  116. package/dist/ai/source/GroupedListBox.md +63 -11
  117. package/dist/ai/source/ListBox.md +4 -0
  118. package/dist/ai/source/OptionsContainer.md +29 -11
  119. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  120. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
  121. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  122. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  123. package/dist/components/BbAvatar/types.d.ts +24 -5
  124. package/dist/components/BbAvatar/types.js +5 -1
  125. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  126. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
  127. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
  128. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  129. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  130. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
  131. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  132. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  133. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  134. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  135. package/dist/components/BbColorInput/types.d.ts +7 -0
  136. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  137. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +213 -202
  138. package/dist/components/BbColorPalette/types.d.ts +7 -0
  139. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
  140. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
  141. package/dist/components/BbDatePicker/types.d.ts +7 -0
  142. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  143. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +495 -510
  144. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  145. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
  146. package/dist/components/BbDialog/leaveGhost.js +22 -17
  147. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
  148. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  149. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +412 -369
  150. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +382 -338
  151. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  152. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  153. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
  154. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
  155. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  156. package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
  157. package/dist/components/BbDropdown/types.d.ts +65 -41
  158. package/dist/components/BbDropdown/types.js +1 -0
  159. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
  160. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
  161. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
  162. package/dist/components/BbDropdownButton/types.d.ts +13 -2
  163. package/dist/components/BbDropdownButton/types.js +2 -0
  164. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
  165. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  166. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
  167. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
  168. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
  169. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  170. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
  171. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
  172. package/dist/components/BbSelect/types.d.ts +23 -20
  173. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
  174. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
  175. package/dist/components/BbSelectPopover/types.d.ts +10 -4
  176. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  177. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  178. package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
  179. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1086 -1069
  180. package/dist/components/BbTable/types.d.ts +11 -10
  181. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +3 -1
  182. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
  183. package/dist/components/BbTimePicker/types.d.ts +7 -0
  184. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
  185. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +268 -259
  186. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  187. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
  188. package/dist/components/BbToast/types.d.ts +2 -2
  189. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  190. package/dist/components/BbTree/types.d.ts +1 -1
  191. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
  192. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
  193. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
  194. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  195. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  196. package/dist/composables/useItemsGetter.js +34 -32
  197. package/dist/composables/useOpenModel.js +20 -0
  198. package/dist/deprecation/ai-deprecations.json.js +1 -1
  199. package/dist/i18n/locales/ar.json +2 -0
  200. package/dist/i18n/locales/cs.json +2 -0
  201. package/dist/i18n/locales/da.json +2 -0
  202. package/dist/i18n/locales/de-CH.json +2 -0
  203. package/dist/i18n/locales/de.json +2 -0
  204. package/dist/i18n/locales/el.json +2 -0
  205. package/dist/i18n/locales/en-GB.json +2 -0
  206. package/dist/i18n/locales/en.json +2 -0
  207. package/dist/i18n/locales/es-MX.json +2 -0
  208. package/dist/i18n/locales/es.json +2 -0
  209. package/dist/i18n/locales/fa.json +2 -0
  210. package/dist/i18n/locales/fi.json +2 -0
  211. package/dist/i18n/locales/fr.json +2 -0
  212. package/dist/i18n/locales/he.json +2 -0
  213. package/dist/i18n/locales/hu.json +2 -0
  214. package/dist/i18n/locales/it.json +2 -0
  215. package/dist/i18n/locales/ja.json +2 -0
  216. package/dist/i18n/locales/ko.json +2 -0
  217. package/dist/i18n/locales/nb.json +2 -0
  218. package/dist/i18n/locales/nl.json +2 -0
  219. package/dist/i18n/locales/pl.json +2 -0
  220. package/dist/i18n/locales/pt-BR.json +2 -0
  221. package/dist/i18n/locales/pt-PT.json +2 -0
  222. package/dist/i18n/locales/ro.json +2 -0
  223. package/dist/i18n/locales/ru.json +2 -0
  224. package/dist/i18n/locales/sv.json +2 -0
  225. package/dist/i18n/locales/tr.json +2 -0
  226. package/dist/i18n/locales/uk.json +2 -0
  227. package/dist/i18n/locales/zh-CN.json +2 -0
  228. package/dist/i18n/locales/zh-HK.json +2 -0
  229. package/dist/i18n/locales/zh-TW.json +2 -0
  230. package/dist/icon-scan.js +68 -61
  231. package/dist/index.d.ts +2 -2
  232. package/dist/llms-full.txt +573 -276
  233. package/dist/llms-medium.txt +8 -4
  234. package/dist/llms.txt +1 -1
  235. package/dist/locale-blueprint.json +2 -0
  236. package/dist/styles.css +2 -2
  237. package/dist/types/ActionButton.d.ts +2 -3
  238. package/dist/types/Option.d.ts +10 -0
  239. package/dist/types/ptComponentMap.d.ts +3 -3
  240. package/dist/utilities/functions/slotContent.js +19 -0
  241. package/dist/utils/loadRetry.js +8 -0
  242. package/dist/utils/versionCheck.js +1 -1
  243. package/dist/vite.js +4 -1
  244. package/llms.txt +1 -1
  245. package/package.json +3 -1
  246. package/scripts/README.md +2 -0
  247. package/scripts/lib/agent-setup.mjs +44 -26
  248. package/scripts/lib/validate-bb-markup.mjs +20 -0
  249. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
@@ -156,8 +156,8 @@ buttons: `text`, `variant` — default `'primary'` —, `size` — default `'sm'
156
156
  `prepend:icon`/`append:icon`, `iconOnly` (the icon alone, `text` its
157
157
  accessible name), `block`, `onClick`; confirm buttons
158
158
  default to `'outline'` / `'md'` instead). While a button's
159
- `onClick` runs it shows a spinner, siblings are disabled, and the auto-dismiss
160
- countdown is held; the toast dismisses itself (reason `'action'`) when the
159
+ `onClick` runs it shows a spinner, siblings ignore clicks (keeping their look),
160
+ and the auto-dismiss countdown is held; the toast dismisses itself (reason `'action'`) when the
161
161
  callback resolves. A rejected callback keeps the toast open and the countdown
162
162
  resumes.
163
163
 
@@ -41,6 +41,66 @@
41
41
  "css": "--bb-arrow",
42
42
  "light": "1"
43
43
  },
44
+ "--bb-avatar-bg-c": {
45
+ "css": "--bb-avatar-bg-c",
46
+ "light": "0.065",
47
+ "dark": "0.095"
48
+ },
49
+ "--bb-avatar-bg-l": {
50
+ "css": "--bb-avatar-bg-l",
51
+ "light": "0.93",
52
+ "dark": "0.4"
53
+ },
54
+ "--bb-avatar-hue-blue": {
55
+ "css": "--bb-avatar-hue-blue",
56
+ "light": "260"
57
+ },
58
+ "--bb-avatar-hue-coral": {
59
+ "css": "--bb-avatar-hue-coral",
60
+ "light": "25"
61
+ },
62
+ "--bb-avatar-hue-mint": {
63
+ "css": "--bb-avatar-hue-mint",
64
+ "light": "165"
65
+ },
66
+ "--bb-avatar-hue-orchid": {
67
+ "css": "--bb-avatar-hue-orchid",
68
+ "light": "325"
69
+ },
70
+ "--bb-avatar-hue-rose": {
71
+ "css": "--bb-avatar-hue-rose",
72
+ "light": "355"
73
+ },
74
+ "--bb-avatar-hue-sky": {
75
+ "css": "--bb-avatar-hue-sky",
76
+ "light": "230"
77
+ },
78
+ "--bb-avatar-hue-sunflower": {
79
+ "css": "--bb-avatar-hue-sunflower",
80
+ "light": "85"
81
+ },
82
+ "--bb-avatar-hue-tangerine": {
83
+ "css": "--bb-avatar-hue-tangerine",
84
+ "light": "55"
85
+ },
86
+ "--bb-avatar-hue-teal": {
87
+ "css": "--bb-avatar-hue-teal",
88
+ "light": "195"
89
+ },
90
+ "--bb-avatar-hue-violet": {
91
+ "css": "--bb-avatar-hue-violet",
92
+ "light": "295"
93
+ },
94
+ "--bb-avatar-ink-c": {
95
+ "css": "--bb-avatar-ink-c",
96
+ "light": "0.13",
97
+ "dark": "0.06"
98
+ },
99
+ "--bb-avatar-ink-l": {
100
+ "css": "--bb-avatar-ink-l",
101
+ "light": "0.42",
102
+ "dark": "0.93"
103
+ },
44
104
  "--bb-border": {
45
105
  "css": "--bb-border",
46
106
  "light": "rgb(212 212 216)",
@@ -264,7 +264,7 @@ Where the option goes: [Installation and Plugin Setup](./installation-and-plugin
264
264
 
265
265
  ## Overlay Open-State Rule
266
266
 
267
- Open a dialog or sheet **without** owning its state: give `BbDialog` / `BbOffCanvas` an `id` and put `v-bb-dialog="'edit'"` / `v-bb-off-canvas="'filters'"` on the button (`useBbDialog('edit')` in code); a dialog in its own file, or one per row's data, opens on demand with `useBbDialog(Component).show(data)`; a yes/no is `useConfirm`. Which one: [BbDialog](../BbDialog.md) § Which one?. A boolean `v-model` is the fallback for state your page already holds — never a separate `v-model:open`. `BbPopover` and `BbTooltip` also take a boolean `v-model`. The popover-embedded surfaces (`BbDropdown`, `BbSelectPopover`, `BbColorPalette`) keep open state **internal** — drive them through their trigger/activator, not a bound open flag. There is no `v-model:open` anywhere in the library, by design; do not reach for one.
267
+ Open a dialog or sheet **without** owning its state: give `BbDialog` / `BbOffCanvas` an `id` and put `v-bb-dialog="'edit'"` / `v-bb-off-canvas="'filters'"` on the button (`useBbDialog('edit')` in code); a dialog in its own file, or one per row's data, opens on demand with `useBbDialog(Component).show(data)`; a yes/no is `useConfirm`. Which one: [BbDialog](../BbDialog.md) § Which one?. A boolean `v-model` is the fallback for state your page already holds — never a separate `v-model:open`. `BbPopover`, `BbTooltip` and `BbDropdown` also take a boolean `v-model`. A component whose `v-model` is its value (`BbSelect`, `BbSelectPopover`, `BbDropdownButton`, the date / time / colour pickers and inputs) takes `v-model:open` for its panel; a value-less overlay never does.
268
268
 
269
269
  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.
270
270
 
@@ -330,13 +330,17 @@ the field keeps it a string (`''`).
330
330
  Boolean props default to `false` so the bare `<Comp foo>` shorthand turns the feature **on**. A few props deliberately default to `true` for cross-library keyword clarity — pass `:prop="false"` to opt out:
331
331
 
332
332
  - `multiple` on `BbTable`, `BbCheckboxGroup`, `BbSwitchGroup` — multi-select is the expected default; `:multiple="false"` forces single-select.
333
- - `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".
334
- - `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.
333
+ - `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 renders the selection column, so off means no checkboxes.
334
+ - `modelValue` on `BbAlert` — an uncontrolled alert shows on mount; its `v-model` exists to dismiss it.
335
335
  - `trueValue` on `BbButton` — the value a `v-model` toggle commits when on (`true` is the natural on-value), not a feature flag.
336
336
 
337
337
  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).
338
338
 
339
- **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](./migration/components/bb-popover.md).
339
+ **Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette` and `BbDropdown` (leftovers land in `$attrs`). `BbTooltip` keeps `hideArrow` (default `false`) and `arrowPadding` (default `10`). See [bb-popover.md](./migration/components/bb-popover.md).
340
+
341
+ ## Empty Slot Rule
342
+
343
+ A slot that renders nothing (a `v-if` false there) counts as absent: the next more general slot draws, then the default (`prepend:icon`, label, children). Exception: a `BbTable` `#<key>` cell slot owns its cell.
340
344
 
341
345
  ## Testing Against bitboss-ui
342
346
 
@@ -515,6 +515,19 @@ zero specificity, so a class you put on the panel (`pt:panel`, `pt:root`,
515
515
  `class` on a dialog) or on its content wins. To style a surface like its
516
516
  activator again, set the styles on that part.
517
517
 
518
+ ### Avatar palette
519
+
520
+ `BbAvatar`'s `color` paints the fallback from a palette: ten hues, one picked
521
+ per person from a stable hash of the `name`, and one fill / ink pair per
522
+ scheme built as `oklch(L C <hue>)`. Every pair measures over 6:1. A theme
523
+ moves a hue or the pair; keep the 4.5:1 budget.
524
+
525
+ | Token | Default (light) | Dark | Meaning |
526
+ | ------------------------------------------------ | ---------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
527
+ | `--bb-avatar-hue-coral` … `--bb-avatar-hue-rose` | 25 … 355 | same | The ten hues in degrees: coral 25, tangerine 55, sunflower 85, mint 165, teal 195, sky 230, blue 260, violet 295, orchid 325, rose 355 |
528
+ | `--bb-avatar-bg-l` / `--bb-avatar-bg-c` | `0.93` / `0.065` | `0.4` / `0.095` | The fill's OKLCH lightness and chroma |
529
+ | `--bb-avatar-ink-l` / `--bb-avatar-ink-c` | `0.42` / `0.13` | `0.93` / `0.06` | The initials' and icon's OKLCH lightness and chroma |
530
+
518
531
  ### Input family
519
532
 
520
533
  Form controls are ~half the library and must agree with each other, so their
@@ -88,7 +88,7 @@ Four cases ignore `prefill` and load anyway, because deferring would buy nothing
88
88
 
89
89
  - **Race protection**: a newer call aborts the one in flight (`signal`), and a superseded answer — resolution or rejection — is dropped. Nothing runs after a superseded call: no prune, no stash.
90
90
  - **Loading**: the component tracks in-flight requests itself, and the loading state ends the moment a call is aborted; don't add your own `loading` ref for option fetching.
91
- - **Failure is never "empty"**: a provider **throws** to fail — it never returns `[]` for one, because an empty array is a real, applied result. On a failed (not aborted) call the component clears the rows (stale rows never sit under a new filter), prunes nothing, publishes nothing to the SSR payload (the client loads again), logs the error, and shows `failed-text` (locale default "Couldn't load items") in its empty state; the `#empty` slot receives `error` (what you threw, untouched; `null` when nothing failed). There is no built-in retry: bump a counter you list in `dependencies`.
91
+ - **Failure is never "empty"**: a provider **throws** to fail — it never returns `[]` for one, because an empty array is a real, applied result. On a failed (not aborted) call the component clears the rows (stale rows never sit under a new filter), prunes nothing, publishes nothing to the SSR payload (the client loads again), logs the error, and shows its own failure row: `failed-text` (locale default "Couldn't load items"), announced, then a "Try again" button that runs the failed call again with the same query (on click only, never on its own). `#empty` means empty: it never renders for a failure and its scope has no `error`.
92
92
  - **Coherence** (`enforce-coherence`): prunes only after an applied, successful load whose reason is not `'search'` — an empty one included — against the fetched rows alone, except values a `known-items` row names (a select's `stash` does not count). Failures never prune. Details in the [Coherence playbook](./coherence-playbook.md).
93
93
  - **Dependency comparison is value-based** (hashed), not reference-based — `:dependencies="[filters]"` re-fetches only when the content actually changes, no matter how often the array identity does.
94
94
 
@@ -126,19 +126,15 @@ Pass it to every request; combine it with a timeout (`AbortSignal.any([signal, A
126
126
 
127
127
  ### Failure and retry
128
128
 
129
+ The failure row is the library's: set its message with `failed-text`, and keep `#empty` for the empty result. "Try again" is built in.
130
+
129
131
  ```vue
130
132
  <BbTable
131
133
  :items="fetchInvoices"
132
- :dependencies="[status, retry]"
133
- failed-text="The invoices could not be loaded"
134
+ :dependencies="[status]"
135
+ failed-text="The invoices could not be loaded."
134
136
  >
135
- <template #empty="{ error }">
136
- <template v-if="error">
137
- Couldn't load the invoices.
138
- <BbButton size="sm" variant="ghost" @click="retry++">Try again</BbButton>
139
- </template>
140
- <template v-else>No invoices match these filters.</template>
141
- </template>
137
+ <template #empty>No invoices match these filters.</template>
142
138
  </BbTable>
143
139
  ```
144
140
 
@@ -210,6 +206,6 @@ The same object, with `query` only on a `searchable` group. A getter for a searc
210
206
  - [ ] The provider takes ONE object typed with its component's context type, and `signal` reaches every request.
211
207
  - [ ] Selects: the current picks are named on every `reason !== 'search'` call (required with `enforce-coherence`), `stash` is on, the ids request fails soft.
212
208
  - [ ] A provider that matches `query` on the server has `:filter-by="false"` (dropdown group: `filterBy: false`).
213
- - [ ] Failures are thrown, not returned; `failed-text` / `#empty` `error` cover the failed state, and a retry bumps a `dependencies` counter.
209
+ - [ ] Failures are thrown, not returned; `failed-text` words the failure row (it has "Try again" built in), and `#empty` holds empty copy only.
214
210
  - [ ] All branches return the same item shape.
215
211
  - [ ] Field-tied fetching uses `dependencies` (+ `deps-debounce-time`), no manual watchers; dependent selects filter both requests by the parent.
@@ -1,26 +1,26 @@
1
1
  ---
2
2
  title: 'Migration v2→v3: BbColorPalette'
3
- summary: flip inverted to disableFlip, showArrow removed, picker renamed eyeDropper, update:open dropped, model updates never emit null.
3
+ summary: flip inverted to disableFlip, showArrow removed, picker renamed eyeDropper, update:open is v-model:open, model updates never emit null.
4
4
  ---
5
5
 
6
6
  # BbColorPalette — v2 → v3
7
7
 
8
8
  ## Changes
9
9
 
10
- | v2 | v3 | Kind |
11
- | -------------------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
12
- | `flip?: boolean` (default `true`) | `disableFlip?: boolean` (default `false`) | rename, polarity inverted |
13
- | `showArrow?: boolean` (default `false`) | removed | arrows are tooltip-only in v3; **⚠ silent** — a leftover `show-arrow` lands in `$attrs` |
14
- | `arrowPadding` | removed | dead with the arrow |
15
- | `picker?: boolean` | `eyeDropper?: boolean` | rename (same eyedropper feature) |
16
- | `update:open` event | removed | listen to `show` / `hide` (and `shown` / `hidden` after the transition), or read the activator slot's `open` |
17
- | `update:modelValue` payload `string \| null` | `string` — the palette always emits a concrete color, never `null` | **behavior** — clearing is the consumer's job now; handlers narrowing on `null` have dead branches |
18
- | activator slot prop `color` | `value` | rename |
10
+ | v2 | v3 | Kind |
11
+ | -------------------------------------------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
12
+ | `flip?: boolean` (default `true`) | `disableFlip?: boolean` (default `false`) | rename, polarity inverted |
13
+ | `showArrow?: boolean` (default `false`) | removed | arrows are tooltip-only in v3; **⚠ silent** — a leftover `show-arrow` lands in `$attrs` |
14
+ | `arrowPadding` | removed | dead with the arrow |
15
+ | `picker?: boolean` | `eyeDropper?: boolean` | rename (same eyedropper feature) |
16
+ | `update:open` event | `v-model:open` (since 3.0.0-beta.75) | the same event, now with an `open` prop: bind `v-model:open` to open the palette from code; `show` / `hide` still fire |
17
+ | `update:modelValue` payload `string \| null` | `string` — the palette always emits a concrete color, never `null` | **behavior** — clearing is the consumer's job now; handlers narrowing on `null` have dead branches |
18
+ | activator slot prop `color` | `value` | rename |
19
19
 
20
20
  ## Edits
21
21
 
22
22
  ```diff
23
- - <BbColorPalette v-model="color" :flip="false" show-arrow picker @update:open="track">
23
+ - <BbColorPalette v-model="color" :flip="false" show-arrow picker>
24
24
  - <template #activator="{ props, color }">
25
25
  - <button v-bind="props" :style="{ background: color }" />
26
26
  + <BbColorPalette v-model="color" disable-flip eye-dropper>
@@ -17,6 +17,7 @@ summary: The component is the main button (label in the default slot, @click, hr
17
17
  | items `{ key, text }` (v2, and v3 up to beta.48) | items `{ value, label }` — the same rows as `BbDropdown` | hard rename — `npx bitboss-ui check --fix` rewrites literal items; see [bb-dropdown.md](./bb-dropdown.md) |
18
18
  | `items[0]` was the main button (v2, and v3 up to beta.57) | the component is the main button: label in the default slot, `@click` / `href` / `to` / `type` / `form` on it; every item is a menu row | **break** — move the first item onto the component (below); `bitboss-ui check` flags a split button with no label |
19
19
  | default slot: `<BbDropdownGroup>` companions (v3 up to beta.57) | `#dropdown` slot; the default slot is the main button's label | **break** — wrap the companion in `<template #dropdown>` |
20
+ | `#<groupId>` (a group's title; up to beta.74) | `#<groupId>:label`; `#group` / `#<groupId>:group` draw `groupBy` headings | `check --fix` renames it for the group ids it sees |
20
21
 
21
22
  ## Edits
22
23
 
@@ -23,6 +23,7 @@ summary: Rows are { label, value } (v2 and v3 up to beta.48 { key, text }), grou
23
23
  | _(v3 prereleases up to beta.63; v2 had no submenus)_ `Escape` anywhere closed the whole menu; only `ArrowRight` drilled into a submenu with focus | `Escape` in a submenu closes that level and refocuses its row; `Enter`, `Space` and click open a submenu with focus inside (search box first); focus returns to the row when a submenu closes under it; `dir="rtl"` swaps the inline arrows | **⚠ silent**: drop hand-rolled per-level `Escape` handlers and `focus()` calls into submenus, which now fight the menu (`v2-to-v3.md` § 6 item 101) |
24
24
  | _(v3 prereleases up to beta.63)_ on the mobile sheet `Escape` closed the whole sheet from any level; going back focused the parent level's first row | `Escape` on a drilled-in level (row or search box) goes back one level, like the back control; going back focuses the row that opened the level; at the top level `Escape` closes the sheet | **⚠ silent**: update tests that expect `Escape` on a sheet level to close the menu (`v2-to-v3.md` § 6 item 107) |
25
25
  | _(v3 prereleases up to beta.63)_ an item's `data-*` / `aria-*` keys were copied onto its row | items take only the fields the menu reads; row attributes go through `pt:item` (function form per row) | **⚠ silent**: move them to `:pt:item="({ item }) => ({ attrs: { … } })"` (`v2-to-v3.md` § 6 item 108) |
26
+ | _(v3 prereleases up to beta.74)_ `#<groupId>`: a group's title content | `#<groupId>:label`; `#group` / `#<groupId>:group` draw the `groupBy` headings | rename the slot; `npx bitboss-ui check --fix` does it for the group ids it can see |
26
27
 
27
28
  ## Edits
28
29
 
@@ -378,7 +378,8 @@ from a cell slot on an unbound table does nothing and warns once.
378
378
  table has no search field). `reason` replaces the `prefill` flag: `'initial'`,
379
379
  `'dependencies'`, or `'pagination'` for a page or page-size move.
380
380
  Pass `signal` to the request; throw on a failure (never `return []`), and the
381
- `#empty` slot gets `error` while the empty state shows `failed-text`. **⚠ silent**
381
+ table shows its failure row: `failed-text` with a built-in "Try again"
382
+ (`#empty` is for empty results only). **⚠ silent**
382
383
  for untyped code: a `prefill ? a : b` always takes `a`. Details and the
383
384
  before/after in [§6 item 37](../v2-to-v3.md).
384
385
 
@@ -81,8 +81,8 @@ Nothing catches this for you — `dismissAll` is not a template attribute, so
81
81
  `rg -n 'dismissAll' --type ts --type js --type vue`. Hits on a `useConfirm()`
82
82
  destructure are fine: `dismissAll` is **new** there, and unrelated.
83
83
 
84
- Notes on `actions` (additive but with rules): handlers run with a spinner and
85
- sibling-disable, and hold the dismiss timer; portal toasts ignore `actions`.
84
+ Notes on `actions` (additive but with rules): handlers run with a spinner,
85
+ siblings ignore clicks meanwhile, and they hold the dismiss timer; portal toasts ignore `actions`.
86
86
  Styling hooks moved from `theme` classes to `bb-toast__panel--<variant>` —
87
87
  custom looks register through the plugin's `components.BbToast.variants` option
88
88
  ([main guide §4](../v2-to-v3.md)).
@@ -1018,6 +1018,14 @@ to the new name (`hide-close`).
1018
1018
  work. The v3 prereleases up to beta.32 exported this union as
1019
1019
  `InputDirection`; that type export is gone — import `FieldLayout` (for
1020
1020
  `layout` / `itemLayout`) or `ListLayout` (for `listLayout`) instead.
1021
+ - **Slot scope types**: each component exports its whole slots type
1022
+ (`BbCarouselSlots<T>`, `BbDropdownSlots`); index it for one slot. The v3
1023
+ prereleases up to beta.74 also exported `BbCarouselSlotProps` and
1024
+ `BbDropdownItemSlotProps`; those exports are gone — write
1025
+ `Parameters<BbCarouselSlots<Photo>['slide']>[0]` or
1026
+ `Parameters<BbDropdownSlots['item:prepend']>[0]`. The portal scopes
1027
+ (`BbConfirmPortalSlotProps`, `BbHoverCardPortalSlotProps`,
1028
+ `BbPopoverPortalSlotProps`, `DirectivePortalSlotProps`) stay.
1021
1029
 
1022
1030
  - **Fall-through attributes are typed** (after 3.0.0-beta.65): each
1023
1031
  component's props type carries Vue's attribute type of the element its
@@ -1674,11 +1682,13 @@ Nothing here fails to compile — these change what existing code does.
1674
1682
  Two behaviours moved with it. **A provider signals a failure by throwing**,
1675
1683
  never by returning `[]` (an empty array is a real, applied result): the
1676
1684
  rows are cleared so stale rows never sit under a new filter, nothing is
1677
- pruned, nothing reaches the SSR payload, and the `#empty` slot receives
1678
- `error` (what you threw, untouched; `null` when nothing failed) while the
1679
- empty state shows the new `failed-text` prop — default "Couldn't load
1680
- items" — in place of `empty-text`. Retry by bumping a counter you list in
1681
- `dependencies`. And **one coherence rule for every family**:
1685
+ pruned, nothing reaches the SSR payload, and the component shows its own
1686
+ failure row: the new `failed-text` prop — default "Couldn't load items"
1687
+ — then a "Try again" button that runs the failed call again. `#empty`
1688
+ means empty: it never renders for a failure, and its scope has no
1689
+ `error` (the v3 prereleases up to beta.74 handed it one; move that
1690
+ branch's copy to `failed-text` and drop any retry counter you listed in
1691
+ `dependencies`). And **one coherence rule for every family**:
1682
1692
  `enforce-coherence` prunes only after an applied, successful, non-search
1683
1693
  load — an EMPTY one included, so a legitimately empty dependent list drops
1684
1694
  its stale picks. `BbDropdown` used to skip empty results; if a group relied
@@ -2964,6 +2974,13 @@ nullValue }, BbTextarea: { nullValue } }`, same values (`'null'` /
2964
2974
  A nested table still paints nothing. A `background: var(--bg)` on a
2965
2975
  `.bb-table.card` class is now redundant.
2966
2976
 
2977
+ 168. **A creatable select shows a "Create «query»" row** (after
2978
+ 3.0.0-beta.74). With an `option:add` listener, a typed query that no
2979
+ option matches exactly gets a create row: last after the matches, or
2980
+ alone in place of the no-results text and `#empty`. Its click (and the
2981
+ arrow keys + Enter) emits `option:add`, as Enter already did. A
2982
+ `#empty` that offered a create link or button is redundant: drop it.
2983
+
2967
2984
  ## 7. Class overrides → variants
2968
2985
 
2969
2986
  ### The v2 pattern to hunt down
@@ -290,3 +290,4 @@ What changed in the install and build-plugin setup during the 3.0 betas, for an
290
290
  | `allowComponents` for `check` | `package.json` `"bitboss-ui": { "allowComponents": [...] }` or `bitboss-ui.check.json` | Read only from the build plugin, as a literal (3.0.0-beta.69); the old places are ignored, so those tags are reported again | Move the list into `bitbossUi({ allowComponents: [...] })` (Nuxt: `bitboss`). `registeredRules` and `dialogIdsWhitelist` stay in `bitboss-ui.check.json` |
291
291
  | Reporting opt-out | None: an app could not turn reporting off | `"bitboss-ui": { "report": false }` in `package.json` (3.0.0-beta.74): no `report` command, no MCP `report_issue`, no reporting section in the agent files | Add it to opt out; on by default |
292
292
  | Cursor, Windsurf and Copilot rule files | `ai-init` wrote `.cursor/rules/bitboss-ui.mdc`, `.windsurf/rules/bitboss-ui.md` and a block in `.github/copilot-instructions.md` | Removed by `setup` and `update` (3.0.0-beta.69): those harnesses read `AGENTS.md`, and Zed read the Copilot file instead of it | Commit the deletions |
293
+ | Agent files on a dev server start | Up to 3.0.0-beta.74 a dev, build or test start also deleted the old rule files and edited `CLAUDE.md` | Only installs (the postinstall) and `update` / `setup` delete files or edit `CLAUDE.md`; a dev start writes our own blocks and files | After changing `ai`, run `npx bitboss-ui update --no-install` |
@@ -1013,7 +1013,7 @@ _Passthrough parts and states_ table in that component's contract
1013
1013
  | `BbAccordion` | `root`, `header`, `title`, `icon`, `panel` | `disabled`, `open` |
1014
1014
  | `BbAlert` | `root`, `icon`, `title`, `text`, `close` | —; _(variants, every part: `outline`, `primary`, `destructive`, `warning`)_ |
1015
1015
  | `BbAsterisk` | `root` | — |
1016
- | `BbAvatar` | `root`, `icon` | — |
1016
+ | `BbAvatar` | `root`, `icon`, `initials` | — |
1017
1017
  | `BbBadge` | `root`, `icon`, `spinner`, `text`, `clear` | `activeLink`, `exactActiveLink` _(from its link body)_, `loading`; _(variants, every part: `primary`, `secondary`, `destructive`, `outline`)_ |
1018
1018
  | `BbBaseButton` | `root` | `activeLink`, `exactActiveLink`, `disabled` |
1019
1019
  | `BbBaseCheckboxIcon` | `root` | `errors`, `warnings`, `disabled`, `readonly`, `checked`, `indeterminate`, `focused`, `focusVisible` |
@@ -1032,8 +1032,8 @@ _Passthrough parts and states_ table in that component's contract
1032
1032
  | `BbDatePicker` | `root`, `panel`, `sheet`, `header`, `arrow`, `month`, `year`, `cellColumnHeader`, `week`, `weekNumber` _(`type="week"` rows)_, `day`, `dayButton`, `monthItem`, `yearItem`, `item` _(forwarded to the calendar)_ | `outside`, `today`, `inRange`, `selected`, `rangeStart`, `rangeEnd`, `disabled`, `highlighted` _(per cell)_, `active` _(month / year)_, `open` |
1033
1033
  | `BbDatePickerInput` | family + `activator`, `panel`, `sheet`, `header`, `arrow`, `month`, `year`, `cellColumnHeader`, `week`, `weekNumber` _(`type="week"` rows)_, `day`, `dayButton`, `monthItem`, `yearItem`, `item` _(forwarded to the calendar)_ | family + `open`, `outside`, `today`, `inRange`, `selected`, `rangeStart`, `rangeEnd`, `disabled`, `highlighted` _(per cell)_, `active` _(month / year)_ |
1034
1034
  | `BbDialog` | `root`, `sheet`, `header`, `title`, `description`, `content`, `footer`, `close` | `open`, `fullscreen` |
1035
- | `BbDropdown` | `root`, `panel`, `sheet`, `header`, `footer`, `input` _(every searchable group's field)_, `list`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `submenu` _(each flyout box)_ | `open`, `activeLink`, `exactActiveLink`, `selected`, `disabled` _(per entry)_; _(variants, per entry, on the entry parts: `default`, `destructive`)_ |
1036
- | `BbDropdownButton` | `root`, `main`, `toggle` _(the two halves)_, `icon`, `spinner`, `text` _(the main button's)_, `panel`, `sheet`, `header`, `footer`, `input`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check`, `submenu` _(the menu's)_ | `activeLink`, `exactActiveLink` _(the main button's link; per entry on the entry parts)_, `loading`, `disabled`, `open`; `selected` _(entry parts only)_; _(variants: the button's on the control's parts — root, main, toggle, icon, spinner, text: `primary`, `outline`, `secondary`, `ghost`, `destructive`, `link`; each entry's on the entry parts: `default`, `destructive`)_ |
1035
+ | `BbDropdown` | `root`, `panel`, `sheet`, `header`, `footer`, `box` _(each search box)_, `input` _(every searchable group's field)_, `list`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check` _(the tick)_, `submenu` _(each flyout box)_ | `open`, `activeLink`, `exactActiveLink`, `selected`, `disabled` _(per entry)_; _(variants, per entry, on the entry parts: `default`, `destructive`)_ |
1036
+ | `BbDropdownButton` | `root`, `main`, `toggle` _(the two halves)_, `icon`, `spinner`, `text` _(the main button's)_, `panel`, `sheet`, `header`, `footer`, `box`, `input`, `list`, `item`, `itemText`, `itemIcon`, `itemDescription`, `check`, `submenu` _(the menu's)_ | `activeLink`, `exactActiveLink` _(the main button's link; per entry on the entry parts)_, `loading`, `disabled`, `open`; `selected` _(entry parts only)_; _(variants: the button's on the control's parts — root, main, toggle, icon, spinner, text: `primary`, `outline`, `secondary`, `ghost`, `destructive`, `link`; each entry's on the entry parts: `default`, `destructive`)_ |
1037
1037
  | `BbDropzone` | `root`, `content`, `message` | `active`, `errors`, `warnings`, `disabled`, `readonly` |
1038
1038
  | `BbGallery` | `root`, `header`, `title`, `close`, `slide` _(per photo)_, `image` _(per photo)_, `prev`, `next`, `footer`, `caption`, `more`, `counter` | `disabled` _(per node)_, `active` _(per node)_, `zoomed` |
1039
1039
  | `BbHoverCard` | `root`, `panel`, `header`, `content`, `footer` | `open` |
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "3.0.0-beta.74",
3
+ "version": "3.0.0-beta.75",
4
4
  "canon": "bb-canon/2",
5
5
  "folder": "inertia-helpers",
6
6
  "helpers": {
package/dist/ai/index.md CHANGED
@@ -229,7 +229,7 @@ Do not use these components directly in consumer code unless the user explicitly
229
229
  - [Migration v2→v3: BbChip (removed)](./guides/migration/components/bb-chip.md) - BbChip is gone — BbBadge with clearable is the replacement; non-clearable chips were badges all along.
230
230
  - [Migration v2→v3: BbCollapsible](./guides/migration/components/bb-collapsible.md) - `tag` narrows to `'span' | 'div'` and still defaults to `div`; the inner element mirrors it.
231
231
  - [Migration v2→v3: BbColorInput](./guides/migration/components/bb-color-input.md) - picker renamed to eyeDropper.
232
- - [Migration v2→v3: BbColorPalette](./guides/migration/components/bb-color-palette.md) - flip inverted to disableFlip, showArrow removed, picker renamed eyeDropper, update:open dropped, model updates never emit null.
232
+ - [Migration v2→v3: BbColorPalette](./guides/migration/components/bb-color-palette.md) - flip inverted to disableFlip, showArrow removed, picker renamed eyeDropper, update:open is v-model:open, model updates never emit null.
233
233
  - [Migration v2→v3: BbConfirm + BbToast → BbHost](./guides/migration/components/bb-host.md) - Delete the <BbConfirm /> and <BbToast /> tags — the plugin renders the <BbHost /> that replaces them; their size, position and pt props move to the plugin config; a second host renders nothing; confirm() with no host resolves false after 1s.
234
234
  - [Migration v2→v3: BbDatePickerInput](./guides/migration/components/bb-date-picker-input.md) - allowWriting inverted to disableWriting and hidePopover renamed to disableCalendar, both with a changed token set; the width prop is removed; adaptive mobile sheet by default; non-floating output carries the local offset instead of UTC `Z` (new `utc` prop restores v2 output).
235
235
  - [Migration v2→v3: BbDialog](./guides/migration/components/bb-dialog.md) - showClose inverted to hideClose, #close removed (description restored in beta.19), default widths changed, adaptive bottom sheet on mobile by default, --bb-dialog-* tokens replaced by --bb-panel-p plus locals.
@@ -83,6 +83,7 @@
83
83
  {"name":"clearable","type":"boolean","default":"false","description":"Displays a clear button when the input has a value and is being interacted with."},
84
84
  {"name":"loading","type":"boolean","default":"false","description":"Sets the component in a loading state, usually triggering some visual styles."},
85
85
  {"name":"offCanvasProps","type":"Partial<BbOffCanvasProps>","description":"Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back."},
86
+ {"name":"open","type":"boolean","default":"false","description":"Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state."},
86
87
  {"name":"placeholder","type":"string","description":"Text shown while the field is empty."},
87
88
  {"name":"prepend:icon","type":"string","description":"Name of the icon to be added at the start of the input."},
88
89
  {"name":"offset","type":"number","default":"4","description":"Space the floating container will maintain from the activator."},
@@ -7,7 +7,9 @@
7
7
  "contract": "ai/BbAvatar.md",
8
8
  "source": "ai/source/BbAvatar.md",
9
9
  "props": [
10
- {"name":"alt","type":"string","default":"\"\"","description":"Alternative text for the image, used for accessibility."},
10
+ {"name":"alt","type":"string","default":"\"\"","description":"Alternative text for the image, used for accessibility. Without it the avatar is labelled with `name`."},
11
+ {"name":"color","type":"string | boolean","default":"false","description":"Paints the fallback (initials or icon). `true`: a palette colour picked from `name`, stable across renders and the server. A string: any CSS colour or `var()` as the background, with black or white ink, whichever reads. Unset: the primary colour."},
12
+ {"name":"name","type":"string","description":"The person's name. With no image and no default slot, the avatar shows its initials (first letters of the first and last word; none: the person icon). Also the accessible name when `alt` is empty, and the input of `color`."},
11
13
  {"name":"pt","type":"PtMap<BbAvatarPtPart, never>","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
12
14
  {"name":"size","common":true},
13
15
  {"name":"sizes","type":"string","description":"Sizes attribute for the image, used with `srcset`."},
@@ -24,7 +26,8 @@
24
26
  "pt": {
25
27
  "parts": [
26
28
  {"name":"root","description":"The avatar frame, with the image or the fallback inside."},
27
- {"name":"icon","description":"The default user glyph — rendered only while there is no image to show and the default slot is not overridden, so it lands nowhere otherwise."}
29
+ {"name":"icon","description":"The default user glyph — rendered only while there is no image to show, the default slot is not overridden and `name` gives no initials, so it lands nowhere otherwise."},
30
+ {"name":"initials","description":"The initials from `name` — rendered only while there is no image to show and the default slot is not overridden."}
28
31
  ],
29
32
  "states": []
30
33
  },
@@ -2,6 +2,7 @@
2
2
  "name": "BbAvatar",
3
3
  "tree": {
4
4
  "bindings": [
5
+ {"part":"initials","target":"span.bb-avatar__initials"},
5
6
  {"part":"icon","target":"BbIcon"}
6
7
  ],
7
8
  "nodes": [
@@ -12,10 +13,24 @@
12
13
  "classes": {
13
14
  "bb-avatar": [
14
15
  "",
16
+ "--*",
17
+ "--blue",
18
+ "--colored",
19
+ "--coral",
20
+ "--custom",
21
+ "--mint",
22
+ "--orchid",
23
+ "--rose",
24
+ "--sky",
25
+ "--sunflower",
26
+ "--tangerine",
27
+ "--teal",
28
+ "--violet",
15
29
  "__default-icon",
16
30
  "__fallback",
17
31
  "__img",
18
- "__img--hidden"
32
+ "__img--hidden",
33
+ "__initials"
19
34
  ]
20
35
  },
21
36
  "locals": [
@@ -25,13 +40,27 @@
25
40
  "--elev",
26
41
  "--fg",
27
42
  "--fs",
43
+ "--hue",
28
44
  "--size"
29
45
  ],
30
46
  "surface": {
31
47
  "stable": [
32
- {"class":"bb-avatar","tag":"span","part":"root","reads":["--bg","--elev","--fg","--size"]}
48
+ {"class":"bb-avatar","tag":"span","part":"root","reads":["--bg","--elev","--fg","--hue","--size"]},
49
+ {"class":"bb-avatar__initials","tag":"span","part":"initials"}
33
50
  ],
34
51
  "internal": [
52
+ {"class":"bb-avatar--blue"},
53
+ {"class":"bb-avatar--colored","reads":["--hue"]},
54
+ {"class":"bb-avatar--coral"},
55
+ {"class":"bb-avatar--custom","reads":["--bg"]},
56
+ {"class":"bb-avatar--mint"},
57
+ {"class":"bb-avatar--orchid"},
58
+ {"class":"bb-avatar--rose"},
59
+ {"class":"bb-avatar--sky"},
60
+ {"class":"bb-avatar--sunflower"},
61
+ {"class":"bb-avatar--tangerine"},
62
+ {"class":"bb-avatar--teal"},
63
+ {"class":"bb-avatar--violet"},
35
64
  {"class":"bb-avatar__default-icon","tag":"BbIcon","reads":["--bg","--default-icon-size","--fg"]},
36
65
  {"class":"bb-avatar__fallback","tag":"span","reads":["--fs"]},
37
66
  {"class":"bb-avatar__img","tag":"img"},
@@ -47,6 +76,7 @@
47
76
  {"name":"--fg","value":"var(--bb-primary-fg)","selector":".bb-avatar","description":"Initials; the built-in icon is an 80/20 mix of this toward --bg"},
48
77
  {"name":"--default-icon-size","value":"clamp(14px, calc(var(--size) * 0.7), 48px)","selector":".bb-avatar","description":"Built-in fallback icon: 70% of the avatar, floored at 14px and capped at 48px. `--size` is the avatar's own box, set inline from the `size` prop."},
49
78
  {"name":"--fs","value":"max(8px, calc(var(--size) * 0.4))","selector":".bb-avatar","description":"Initials: 40% of the avatar, floored at 8px"},
79
+ {"name":"--hue","value":"0","selector":".bb-avatar","description":"The palette hue `color` picks (a modifier class sets it)."},
50
80
  {"name":"--elev","value":"var(--bb-elev-sm)","selector":".bb-avatar","description":"The theme's resting lift on small chrome, declared here so an ancestor's `--elev` cannot reach in; `--elev: none` flattens one."},
51
81
  {"name":"--size","value":"var(--default-icon-size)","selector":".bb-avatar__default-icon"}
52
82
  ]
@@ -53,8 +53,5 @@
53
53
  },
54
54
  "attrTargets": [
55
55
  "section"
56
- ],
57
- "types": [
58
- {"name":"BbCarouselSlotProps","usedAs":["slot overlay","slot slide","slot slide:footer","slot slide:header"],"definition":"type BbCarouselSlotProps<T = number> = { item: T; index: number; active: boolean; current: boolean; };"}
59
56
  ]
60
57
  }
@@ -32,7 +32,7 @@
32
32
  {"name":"itemLayout","common":true},
33
33
  {"name":"itemProps","common":true},
34
34
  {"name":"itemReverse","common":true},
35
- {"name":"items","type":"T[] | ((context: BbCheckboxGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbCheckboxGroupItemsContext` (`BbSwitchGroupItemsContext` on a switch group) (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`."},
35
+ {"name":"items","type":"T[] | ((context: BbCheckboxGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with `{ reason, modelValue, signal }`, sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and the failure row shows `failed-text` with \"Try again\"."},
36
36
  {"name":"itemText","common":true},
37
37
  {"name":"itemValue","common":true},
38
38
  {"name":"labelAlign","common":true},
@@ -74,7 +74,7 @@
74
74
  "slots": [
75
75
  {"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},
76
76
  {"name":"description","type":"BbCheckboxGroupDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},
77
- {"name":"empty","type":"{ error: unknown; }","description":"Content shown when no options are available (replaces the default \"no data\" text). `error` is what the latest failed load rejected with, untouched, and `null` when nothing failed — a failed load clears the rows, so this slot is where it shows."},
77
+ {"name":"empty","type":"object","description":"Content shown when no options are available (replaces the default \"no data\" text). Empty only: a failed load shows the library's failure row instead (its message is `failed-text`, and it ends with \"Try again\")."},
78
78
  {"name":"icon","type":"BbCheckboxGroupIconSlotProps<T>","fields":["disabled: boolean","readonly: boolean","checked: boolean","indeterminate?: boolean","focused: boolean","focusVisible: boolean","id: string","name: string","falseValue: any","hasErrors: boolean","hasWarnings: boolean","parsedValue: string","trueValue: any","value: any","item: T","text: string"],"description":"Replaces the default checkmark icon for each checkbox option."},
79
79
  {"name":"label","type":"BbCheckboxGroupLabelSlotProps<T>","fields":["item: T","text: string","checked: boolean","description: string"],"description":"Replaces the default label text for each option."},
80
80
  {"name":"legend","type":"BbCheckboxGroupLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text for the group."},
@@ -16,6 +16,7 @@
16
16
  "bb-checkbox-group": [
17
17
  "",
18
18
  "__empty",
19
+ "__empty--failed",
19
20
  "__indicator",
20
21
  "__item",
21
22
  "__item--*",
@@ -116,6 +117,7 @@
116
117
  ],
117
118
  "internal": [
118
119
  {"class":"bb-checkbox-group__empty"},
120
+ {"class":"bb-checkbox-group__empty--failed"},
119
121
  {"class":"bb-checkbox-group__item--aligned"},
120
122
  {"class":"bb-checkbox-group__item--description","reads":["--hit","--row-gap","--row-h"]},
121
123
  {"class":"bb-checkbox-group__item--input-align-bottom"},
@@ -34,6 +34,7 @@
34
34
  {"name":"modelValue","type":"string | null","default":"null","description":"Used by v-model."},
35
35
  {"name":"name","common":true},
36
36
  {"name":"offCanvasProps","common":true},
37
+ {"name":"open","common":true},
37
38
  {"name":"persistentHint","common":true},
38
39
  {"name":"placeholder","common":true},
39
40
  {"name":"prepend:icon","common":true},
@@ -65,7 +66,8 @@
65
66
  {"name":"paste","signature":"(event: ClipboardEvent): void","description":"Native clipboard paste. Forwards the original DOM `ClipboardEvent`."},
66
67
  {"name":"show","signature":"(): void","description":"Emitted as soon as the palette (the popover, or the sheet on a phone) starts to open."},
67
68
  {"name":"shown","signature":"(): void","description":"Emitted once the palette is open and its open transition has finished."},
68
- {"name":"update:modelValue","signature":"(value: string | null): void","description":"Emitted when the value becomes a valid hex color via typing/masking, when the field is cleared, or when the palette selects a color. Emits:\n- `#RRGGBB` (or `#RRGGBBAA` when `alpha` is enabled) for valid values\n- `null` when cleared"}
69
+ {"name":"update:modelValue","signature":"(value: string | null): void","description":"Emitted when the value becomes a valid hex color via typing/masking, when the field is cleared, or when the palette selects a color. Emits:\n- `#RRGGBB` (or `#RRGGBBAA` when `alpha` is enabled) for valid values\n- `null` when cleared"},
70
+ {"name":"update:open","signature":"(value: boolean): void","description":"The panel opened or closed (`v-model:open`)."}
69
71
  ],
70
72
  "slots": [
71
73
  {"name":"append","type":"Record<string, never>","description":"Content after the colour indicator button, at the end of the inner container. It replaces the `suffix` wrapper, so with `append` any `suffix` content is dropped. No scoped props."},
@@ -79,7 +81,8 @@
79
81
  ],
80
82
  "exposed": [],
81
83
  "models": [
82
- {"name":"modelValue","type":"string | null | undefined"}
84
+ {"name":"modelValue","type":"string | null | undefined"},
85
+ {"name":"open","type":"boolean | undefined"}
83
86
  ],
84
87
  "pt": {
85
88
  "parts": [