bitboss-ui 3.0.0-beta.2 → 3.0.0-beta.20

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 (337) hide show
  1. package/README.md +72 -33
  2. package/dist/ai/BbAccordion.md +3 -3
  3. package/dist/ai/BbAlert.md +9 -5
  4. package/dist/ai/BbAsterisk.md +17 -0
  5. package/dist/ai/BbAvatar.md +12 -3
  6. package/dist/ai/BbBadge.md +15 -10
  7. package/dist/ai/BbBadgeButton.md +16 -16
  8. package/dist/ai/BbBaseButton.md +16 -16
  9. package/dist/ai/BbBaseCheckbox.md +8 -8
  10. package/dist/ai/BbBaseCheckboxGroup.md +13 -13
  11. package/dist/ai/BbBaseCheckboxIcon.md +26 -9
  12. package/dist/ai/BbBaseColorInput.md +11 -11
  13. package/dist/ai/BbBaseDatePicker.md +6 -6
  14. package/dist/ai/BbBaseDatePickerInput.md +15 -15
  15. package/dist/ai/BbBaseInputContainer.md +12 -12
  16. package/dist/ai/BbBaseNumberInput.md +8 -8
  17. package/dist/ai/BbBaseRadio.md +5 -5
  18. package/dist/ai/BbBaseRadioGroup.md +7 -7
  19. package/dist/ai/BbBaseRadioIcon.md +25 -9
  20. package/dist/ai/BbBaseRating.md +5 -5
  21. package/dist/ai/BbBaseSelect.md +22 -21
  22. package/dist/ai/BbBaseSlider.md +9 -9
  23. package/dist/ai/BbBaseSwitch.md +8 -8
  24. package/dist/ai/BbBaseSwitchGroup.md +13 -13
  25. package/dist/ai/BbBaseSwitchIcon.md +28 -10
  26. package/dist/ai/BbBaseTag.md +10 -10
  27. package/dist/ai/BbBaseTextInput.md +9 -9
  28. package/dist/ai/BbBaseTextarea.md +9 -9
  29. package/dist/ai/BbBaseTimePickerInput.md +13 -13
  30. package/dist/ai/BbBreadcrumbs.md +2 -2
  31. package/dist/ai/BbButton.md +15 -15
  32. package/dist/ai/BbCheckbox.md +18 -17
  33. package/dist/ai/BbCheckboxGroup.md +15 -14
  34. package/dist/ai/BbCollapsible.md +11 -9
  35. package/dist/ai/BbColorInput.md +15 -15
  36. package/dist/ai/BbColorPalette.md +12 -6
  37. package/dist/ai/BbConfirm.md +12 -5
  38. package/dist/ai/BbDatePicker.md +13 -13
  39. package/dist/ai/BbDatePickerInput.md +20 -20
  40. package/dist/ai/BbDialog.md +78 -12
  41. package/dist/ai/BbDropdown.md +132 -22
  42. package/dist/ai/BbDropdownButton.md +12 -12
  43. package/dist/ai/BbDropdownGroup.md +1 -1
  44. package/dist/ai/BbDropzone.md +4 -4
  45. package/dist/ai/BbForm.md +49 -14
  46. package/dist/ai/BbIcon.md +6 -0
  47. package/dist/ai/BbIndicator.md +5 -5
  48. package/dist/ai/BbNumberInput.md +11 -11
  49. package/dist/ai/BbOffCanvas.md +90 -20
  50. package/dist/ai/BbPagination.md +3 -3
  51. package/dist/ai/BbPopover.md +32 -17
  52. package/dist/ai/BbProgress.md +7 -4
  53. package/dist/ai/BbRadio.md +16 -15
  54. package/dist/ai/BbRadioGroup.md +20 -17
  55. package/dist/ai/BbRating.md +11 -11
  56. package/dist/ai/BbSelect.md +138 -37
  57. package/dist/ai/BbSelectPopover.md +40 -41
  58. package/dist/ai/BbSlider.md +37 -22
  59. package/dist/ai/BbSmoothHeight.md +1 -1
  60. package/dist/ai/BbSwitch.md +25 -10
  61. package/dist/ai/BbSwitchGroup.md +17 -14
  62. package/dist/ai/BbTable.md +791 -88
  63. package/dist/ai/BbTabs.md +28 -14
  64. package/dist/ai/BbTabsList.md +1 -1
  65. package/dist/ai/BbTabsPanes.md +1 -1
  66. package/dist/ai/BbTabsRoot.md +10 -10
  67. package/dist/ai/BbTag.md +14 -14
  68. package/dist/ai/BbTextInput.md +16 -15
  69. package/dist/ai/BbTextarea.md +13 -13
  70. package/dist/ai/BbTimePicker.md +10 -10
  71. package/dist/ai/BbTimePickerInput.md +17 -17
  72. package/dist/ai/BbToast.md +1 -1
  73. package/dist/ai/BbToastPortal.md +1 -1
  74. package/dist/ai/BbTooltip.md +12 -10
  75. package/dist/ai/BbTree.md +1 -1
  76. package/dist/ai/ChipsBox.md +1 -1
  77. package/dist/ai/CommonInputWrapper.md +10 -10
  78. package/dist/ai/CommonPopover.md +6 -6
  79. package/dist/ai/FlatListBox.md +5 -5
  80. package/dist/ai/GroupedListBox.md +5 -5
  81. package/dist/ai/ListBox.md +4 -4
  82. package/dist/ai/OptionsContainer.md +4 -4
  83. package/dist/ai/changelog.json +110 -2
  84. package/dist/ai/components.json +882 -90
  85. package/dist/ai/composables/useBbConfig.md +72 -11
  86. package/dist/ai/composables/useConfirm.md +5 -3
  87. package/dist/ai/guides/ai-router.md +9 -4
  88. package/dist/ai/guides/component-picker.md +2 -2
  89. package/dist/ai/guides/design-language.md +14 -14
  90. package/dist/ai/guides/design-tokens.md +25 -18
  91. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  92. package/dist/ai/guides/icons-policy.md +4 -2
  93. package/dist/ai/guides/installation-and-plugin-setup.md +74 -9
  94. package/dist/ai/guides/migration/components/bb-checkbox-group.md +30 -0
  95. package/dist/ai/guides/migration/components/bb-checkbox.md +37 -3
  96. package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
  97. package/dist/ai/guides/migration/components/bb-dialog.md +62 -34
  98. package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -13
  99. package/dist/ai/guides/migration/components/bb-rating.md +8 -2
  100. package/dist/ai/guides/migration/components/bb-select.md +5 -2
  101. package/dist/ai/guides/migration/components/bb-table.md +446 -28
  102. package/dist/ai/guides/migration/components/bb-text-input.md +6 -6
  103. package/dist/ai/guides/migration/v2-to-v3.md +260 -89
  104. package/dist/ai/guides/ssr-prefill.md +120 -0
  105. package/dist/ai/index.md +10 -9
  106. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -1
  107. package/dist/ai/recipes/inertia/ownership-atlas.md +41 -20
  108. package/dist/ai/recipes/inertia/records-workspace.md +26 -7
  109. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -1
  110. package/dist/ai/recipes/nuxt/records-workspace.md +26 -7
  111. package/dist/ai/recipes/vue/layout-scaffold.md +5 -1
  112. package/dist/ai/recipes/vue/records-workspace.md +26 -7
  113. package/dist/ai/source/BbAlert.md +60 -2
  114. package/dist/ai/source/BbAvatar.md +3 -3
  115. package/dist/ai/source/BbBadge.md +60 -15
  116. package/dist/ai/source/BbBadgeButton.md +8 -2
  117. package/dist/ai/source/BbBaseButton.md +3 -1
  118. package/dist/ai/source/BbBaseCheckboxGroup.md +6 -2
  119. package/dist/ai/source/BbBaseDatePicker.md +3 -1
  120. package/dist/ai/source/BbBaseDatePickerInput.md +5 -1
  121. package/dist/ai/source/BbBaseInputContainer.md +52 -1
  122. package/dist/ai/source/BbBaseRadioGroup.md +4 -0
  123. package/dist/ai/source/BbBaseRating.md +3 -1
  124. package/dist/ai/source/BbBaseSelect.md +71 -16
  125. package/dist/ai/source/BbBaseSwitchGroup.md +4 -0
  126. package/dist/ai/source/BbBaseTimePickerInput.md +5 -1
  127. package/dist/ai/source/BbBreadcrumbs.md +31 -0
  128. package/dist/ai/source/BbButton.md +51 -24
  129. package/dist/ai/source/BbCheckbox.md +15 -1
  130. package/dist/ai/source/BbCheckboxGroup.md +2 -1
  131. package/dist/ai/source/BbCollapsible.md +7 -1
  132. package/dist/ai/source/BbColorInput.md +3 -4
  133. package/dist/ai/source/BbColorPalette.md +3 -4
  134. package/dist/ai/source/BbDatePicker.md +5 -1
  135. package/dist/ai/source/BbDatePickerInput.md +5 -1
  136. package/dist/ai/source/BbDialog.md +175 -19
  137. package/dist/ai/source/BbDropdown.md +376 -69
  138. package/dist/ai/source/BbDropdownGroup.md +330 -59
  139. package/dist/ai/source/BbForm.md +93 -5
  140. package/dist/ai/source/BbIcon.md +46 -36
  141. package/dist/ai/source/BbNumberInput.md +3 -4
  142. package/dist/ai/source/BbOffCanvas.md +474 -194
  143. package/dist/ai/source/BbPopover.md +24 -17
  144. package/dist/ai/source/BbProgress.md +2 -2
  145. package/dist/ai/source/BbRadio.md +15 -1
  146. package/dist/ai/source/BbRadioGroup.md +3 -1
  147. package/dist/ai/source/BbSelect.md +50 -2
  148. package/dist/ai/source/BbSelectPopover.md +171 -23
  149. package/dist/ai/source/BbSlider.md +3 -4
  150. package/dist/ai/source/BbSwitch.md +15 -1
  151. package/dist/ai/source/BbSwitchGroup.md +8 -5
  152. package/dist/ai/source/BbTable.md +4642 -1387
  153. package/dist/ai/source/BbTabs.md +6 -7
  154. package/dist/ai/source/BbTabsList.md +6 -7
  155. package/dist/ai/source/BbTabsPanes.md +6 -7
  156. package/dist/ai/source/BbTabsRoot.md +6 -7
  157. package/dist/ai/source/BbTag.md +3 -4
  158. package/dist/ai/source/BbTextInput.md +3 -4
  159. package/dist/ai/source/BbTextarea.md +3 -4
  160. package/dist/ai/source/BbTimePicker.md +4 -1
  161. package/dist/ai/source/BbTimePickerInput.md +5 -1
  162. package/dist/ai/source/BbToast.md +3 -1
  163. package/dist/ai/source/BbTooltip.md +5 -1
  164. package/dist/ai/source/CommonInputWrapper.md +4 -0
  165. package/dist/ai/source/CommonPopover.md +6 -0
  166. package/dist/ai/source/FlatListBox.md +11 -5
  167. package/dist/ai/source/GroupedListBox.md +7 -5
  168. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +4 -4
  169. package/dist/components/BbAlert/types.d.ts +10 -1
  170. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
  171. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +33 -33
  172. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +22 -16
  173. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +36 -15
  174. package/dist/components/BbBadge/badgeButtonContext.d.ts +21 -8
  175. package/dist/components/BbBadge/types.d.ts +8 -2
  176. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +47 -47
  177. package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +14 -14
  178. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +30 -28
  179. package/dist/components/BbBaseCheckboxGroup/types.d.ts +2 -2
  180. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +167 -167
  181. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +9 -9
  182. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +78 -78
  183. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +64 -64
  184. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +1 -1
  185. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +138 -138
  186. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +2 -2
  187. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +24 -22
  188. package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +40 -40
  189. package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +74 -65
  190. package/dist/components/BbBaseSelect/types.d.ts +22 -0
  191. package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +5 -5
  192. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +30 -28
  193. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +1 -1
  194. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +104 -104
  195. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +35 -35
  196. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +85 -81
  197. package/dist/components/BbCheckboxGroup/types.d.ts +2 -1
  198. package/dist/components/BbCollapsible/types.d.ts +7 -1
  199. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +1 -1
  200. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +18 -18
  201. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
  202. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +50 -50
  203. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +17 -17
  204. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  205. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +100 -100
  206. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +21 -21
  207. package/dist/components/BbDialog/BbDialog.vue.d.ts +1 -1
  208. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +133 -107
  209. package/dist/components/BbDialog/types.d.ts +29 -2
  210. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
  211. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +99 -100
  212. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
  213. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +208 -201
  214. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +225 -208
  215. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +21 -21
  216. package/dist/components/BbDropdown/types.d.ts +20 -5
  217. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +5 -5
  218. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +46 -46
  219. package/dist/components/BbIcon/iconCache.d.ts +33 -0
  220. package/dist/components/BbIcon/iconCache.js +17 -0
  221. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  222. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +15 -15
  223. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  224. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +254 -208
  225. package/dist/components/BbOffCanvas/types.d.ts +30 -5
  226. package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
  227. package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
  228. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +149 -146
  229. package/dist/components/BbPopover/types.d.ts +3 -2
  230. package/dist/components/BbRadioGroup/types.d.ts +3 -1
  231. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +27 -23
  232. package/dist/components/BbSelect/types.d.ts +32 -0
  233. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +221 -213
  234. package/dist/components/BbSlider/BbSlider.vue.d.ts +1 -1
  235. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +20 -20
  236. package/dist/components/BbTable/BbTable.vue.d.ts +8 -4
  237. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1319 -616
  238. package/dist/components/BbTable/BbTableDataRow.d.ts +162 -0
  239. package/dist/components/BbTable/BbTableDataRow.js +136 -0
  240. package/dist/components/BbTable/BbTableExpandRow.d.ts +73 -0
  241. package/dist/components/BbTable/BbTableExpandRow.js +52 -0
  242. package/dist/components/BbTable/types.d.ts +247 -86
  243. package/dist/components/BbTable/utils.d.ts +87 -4
  244. package/dist/components/BbTable/utils.js +71 -36
  245. package/dist/components/BbTabs/types.d.ts +0 -8
  246. package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
  247. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +18 -18
  248. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  249. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +18 -18
  250. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  251. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +54 -54
  252. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
  253. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +80 -80
  254. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +61 -61
  255. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +17 -17
  256. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +13 -13
  257. package/dist/components/BbTooltip/types.d.ts +5 -1
  258. package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +17 -17
  259. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
  260. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +2 -1
  261. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +83 -83
  262. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +56 -56
  263. package/dist/composables/useBaseOptions.js +30 -20
  264. package/dist/composables/useBbConfig.d.ts +27 -6
  265. package/dist/composables/useBbConfig.js +8 -2
  266. package/dist/composables/useConfig.d.ts +59 -0
  267. package/dist/composables/useConfig.js +9 -0
  268. package/dist/composables/useItemsGetter.d.ts +11 -0
  269. package/dist/composables/useItemsGetter.js +44 -18
  270. package/dist/composables/useLocale.js +10 -7
  271. package/dist/composables/useMobile.js +5 -5
  272. package/dist/composables/usePrefill.d.ts +21 -2
  273. package/dist/composables/usePrefill.js +25 -19
  274. package/dist/composables/useSsrState.d.ts +20 -0
  275. package/dist/composables/useSsrState.js +13 -0
  276. package/dist/composables/useToast.js +5 -5
  277. package/dist/deprecation/ai-deprecations.json.d.ts +99 -11
  278. package/dist/deprecation/ai-deprecations.json.js +1 -1
  279. package/dist/directives/bbDropdown.d.ts +15 -4
  280. package/dist/directives/bbDropdown.js +31 -9
  281. package/dist/directives/createPopoverDirective.d.ts +62 -0
  282. package/dist/directives/createPopoverDirective.js +63 -23
  283. package/dist/i18n/locales/cs.json +4 -1
  284. package/dist/i18n/locales/da.json +4 -1
  285. package/dist/i18n/locales/de.json +4 -1
  286. package/dist/i18n/locales/el.json +4 -1
  287. package/dist/i18n/locales/en.json +4 -1
  288. package/dist/i18n/locales/es.json +4 -1
  289. package/dist/i18n/locales/fi.json +4 -1
  290. package/dist/i18n/locales/fr.json +4 -1
  291. package/dist/i18n/locales/hu.json +4 -1
  292. package/dist/i18n/locales/it.json +4 -1
  293. package/dist/i18n/locales/ja.json +4 -1
  294. package/dist/i18n/locales/ko.json +4 -1
  295. package/dist/i18n/locales/nb.json +4 -1
  296. package/dist/i18n/locales/nl.json +4 -1
  297. package/dist/i18n/locales/pl.json +4 -1
  298. package/dist/i18n/locales/pt.json +4 -1
  299. package/dist/i18n/locales/ro.json +4 -1
  300. package/dist/i18n/locales/ru.json +4 -1
  301. package/dist/i18n/locales/sv.json +4 -1
  302. package/dist/i18n/locales/tr.json +4 -1
  303. package/dist/i18n/locales/uk.json +4 -1
  304. package/dist/i18n/locales/zh-cn.json +4 -1
  305. package/dist/index.d.ts +7 -2
  306. package/dist/index.js +69 -67
  307. package/dist/llms-full.txt +3712 -1381
  308. package/dist/llms-medium.txt +113 -43
  309. package/dist/llms.txt +7 -6
  310. package/dist/locale-blueprint.json +4 -1
  311. package/dist/nuxt-auto-imports.d.ts +100 -0
  312. package/dist/nuxt-auto-imports.js +55 -0
  313. package/dist/nuxt-module.d.ts +22 -1
  314. package/dist/nuxt.js +22 -8
  315. package/dist/plugin.d.ts +10 -1
  316. package/dist/plugin.js +20 -19
  317. package/dist/runtime/nuxt-plugin.js +28 -21
  318. package/dist/styles.css +1 -1
  319. package/dist/utilities/misc/listboxMetrics.d.ts +3 -3
  320. package/dist/utilities/misc/listboxMetrics.js +2 -2
  321. package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
  322. package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
  323. package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +45 -27
  324. package/dist/validated/BbSelect.vue.d.ts +2 -0
  325. package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +1 -0
  326. package/dist/validated/useValidatedField.js +25 -23
  327. package/dist/vite.js +6 -2
  328. package/llms.txt +8 -7
  329. package/package.json +2 -2
  330. package/scripts/lib/eslint-plugin.d.ts +19 -1
  331. package/scripts/lib/eslint-plugin.mjs +146 -0
  332. package/scripts/lib/html-attributes.mjs +91 -0
  333. package/scripts/lib/validate-bb-markup.mjs +59 -4
  334. package/dist/assets/svgs/sort.svg_raw.js +0 -4
  335. package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
  336. package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
  337. package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
@@ -0,0 +1,120 @@
1
+ # SSR prefill
2
+
3
+ Five components load their options from a function you give them — `BbSelect`,
4
+ `BbSelectPopover`, `BbTable`, and the checkbox / radio / switch groups. This
5
+ page is about one question: **does that function run on the server?**
6
+
7
+ The short answer: **only when the host installed an SSR-state adapter.**
8
+ `bitboss-ui/nuxt` installs one for you. Nothing else does, and that is a
9
+ deliberate design, not a gap.
10
+
11
+ ## Why it is conditional
12
+
13
+ Server-side resolution is only useful if the client starts from the same data.
14
+ The server can resolve `loadCities()` and paint "Milan"; if the client boots
15
+ with an empty list, its first render paints the placeholder instead — and the
16
+ two disagree. Vue calls that a hydration mismatch: a console error in dev, and
17
+ in production the stale server HTML is simply kept, because Vue does not
18
+ re-patch text it did not expect to differ.
19
+
20
+ So the rule the library follows is:
21
+
22
+ > Resolve on the server only if the result can reach the client.
23
+ > Otherwise do not resolve on the server at all.
24
+
25
+ A cold panel for one tick is a much cheaper failure than markup nobody can
26
+ reproduce.
27
+
28
+ ## What happens on each platform
29
+
30
+ | Host | Provider runs on the server? | Client re-fetches on mount? |
31
+ | ---------------------------- | ---------------------------- | --------------------------- |
32
+ | **Nuxt** (`bitboss-ui/nuxt`) | yes | no — it reads the payload |
33
+ | Plain Vue SSR | no | yes |
34
+ | Inertia SSR | no | yes |
35
+ | Any client-only app (SPA) | n/a | yes, as always |
36
+
37
+ In every row hydration is clean. The difference is only whether the first paint
38
+ already has the data.
39
+
40
+ ## Nuxt: nothing to do
41
+
42
+ Install the module and you are done.
43
+
44
+ ```ts
45
+ // nuxt.config.ts
46
+ export default defineNuxtConfig({ modules: ['bitboss-ui/nuxt'] });
47
+ ```
48
+
49
+ ```vue
50
+ <BbSelect v-model="city" :items="loadCities" item-text="name" item-value="id" />
51
+ ```
52
+
53
+ On the server the provider runs inside `onServerPrefetch`, its rows are written
54
+ into `nuxtApp.payload` under a `bb-items:` key, and the client picks them up
55
+ during setup — before its first render. The provider is called **once, on the
56
+ server**, and the seeded model resolves to its label in the server HTML.
57
+
58
+ ## Any other SSR host: opt in with an adapter
59
+
60
+ The library cannot import from your framework, so it asks for two methods:
61
+
62
+ ```ts
63
+ import { SSR_STATE_INJECTION_KEY, type SsrStateAdapter } from 'bitboss-ui';
64
+
65
+ const adapter: SsrStateAdapter = {
66
+ get: (key) => myPayload[key],
67
+ set: (key, value) => {
68
+ myPayload[key] = value;
69
+ },
70
+ };
71
+
72
+ app.provide(SSR_STATE_INJECTION_KEY, adapter);
73
+ ```
74
+
75
+ The contract:
76
+
77
+ - `set` is called on the **server only**, during `onServerPrefetch`, before the
78
+ component renders.
79
+ - `get` is called on the **client only**, during setup of the same component,
80
+ before its first render — so whatever the server wrote must already be
81
+ readable by then. (This is the hard part: your payload has to be rehydrated
82
+ before the Vue app mounts. Nuxt does this; a hand-rolled SSR setup must too.)
83
+ - Keys are opaque strings namespaced with `bb-items:`, unique per component
84
+ instance, and identical on both sides.
85
+
86
+ Provide it at the **app** level (`app.provide`), not inside a component.
87
+
88
+ ## Rules for your provider
89
+
90
+ - **Return plain, serializable rows.** They go through the host's payload
91
+ serializer — under Nuxt that is devalue: objects, arrays, dates, maps, sets.
92
+ Not class instances, not ORM models, not anything carrying methods. If the
93
+ library spots a function or symbol on a row it warns in dev, drops the
94
+ server-rendered rows, and lets the client fetch instead — hydration stays
95
+ clean, you just lose the server-side head start.
96
+ - **Keep it isomorphic.** No `window`, no `document`.
97
+ - **Let it reject safely.** If the provider throws on the server the error is
98
+ logged, nothing is transferred, and the client loads normally.
99
+
100
+ ## What is NOT transferred
101
+
102
+ Only the **first** load — the prefill. Everything after it is client-side by
103
+ nature and stays that way:
104
+
105
+ - a search query the user types,
106
+ - a `dependencies` change re-running the fetch,
107
+ - a page change in `BbTable`.
108
+
109
+ That is the intent: the transfer exists to make the first paint correct, not to
110
+ cache a session.
111
+
112
+ ## Payload size
113
+
114
+ Every provider-backed control on an SSR page adds its resolved rows to the
115
+ page payload. For a select that is a handful of options; for a `BbTable` it is
116
+ a page of rows, which is the same data you would otherwise fetch immediately
117
+ after hydration — traded from a second request into first-paint bytes. If a
118
+ particular control's list is large and it is not worth server-rendering, set
119
+ `prefill="interaction"` (or `false` for a search-first select) and it will not
120
+ load on the server at all.
package/dist/ai/index.md CHANGED
@@ -59,12 +59,12 @@ Start from a recipe when building a whole page or flow — they encode the idiom
59
59
  ### Feedback
60
60
 
61
61
  - [BbAlert](./BbAlert.md) - Shows contextual status messages.
62
- - [BbBadge](./BbBadge.md) - Displays compact status counters or labels, the floating mode acts as notification dot.
62
+ - [BbBadge](./BbBadge.md) - Displays a compact inline status counter or label. It sits in the flow — for a bubble or dot anchored OVER another element, use BbIndicator (includes the co-located BbBadgeButton export).
63
63
  - [BbBadgeButton](./BbBadgeButton.md) - Makes a badge's body interactive: slotted as a direct child of BbBadge it renders the badge body as a real button/link with full BbBaseButton parity, leaving `clearable` free to remain a separate control.
64
- - [BbIndicator](./BbIndicator.md) - Anchors a notification bubble (count/short text) or a dot over a wrapped element, with floating and corner-placement options.
64
+ - [BbIndicator](./BbIndicator.md) - Anchors a notification bubble (count/short text) or a dot over a wrapped element.
65
65
  - [BbProgress](./BbProgress.md) - Visualizes task or operation progress state.
66
66
  - [BbSpinner](./BbSpinner.md) - Indicates ongoing loading or pending operations.
67
- - [BbToast](./BbToast.md) - Shows transient notification messages.
67
+ - [BbToast](./BbToast.md) - Shows transient notification messages (includes the co-located BbToastPortal export).
68
68
  - [BbToastPortal](./BbToastPortal.md) - Registers named slot content that toast() renders via `portal`.
69
69
 
70
70
  ### Inputs
@@ -91,7 +91,7 @@ Start from a recipe when building a whole page or flow — they encode the idiom
91
91
  - [BbBreadcrumbs](./BbBreadcrumbs.md) - Renders hierarchical navigation paths.
92
92
  - [BbCollapsible](./BbCollapsible.md) - Toggles visibility of collapsible content blocks.
93
93
  - [BbPagination](./BbPagination.md) - Navigates paginated data sets by page index.
94
- - [BbTabs](./BbTabs.md) - Switches between tabbed content views (shadcn-like strip; BbTabRoot enables split layouts).
94
+ - [BbTabs](./BbTabs.md) - Switches between tabbed content views (shadcn-like strip; the co-located BbTabsRoot / BbTabsList / BbTabsPanes exports enable split layouts).
95
95
  - [BbTabsList](./BbTabsList.md) - The trigger strip of a split BbTabsRoot layout (renders the tab buttons only).
96
96
  - [BbTabsPanes](./BbTabsPanes.md) - The pane host of a split BbTabsRoot layout (renders the tab content only).
97
97
  - [BbTabsRoot](./BbTabsRoot.md) - Provide/inject root that lets BbTabsList and BbTabsPanes live in separate layout slots.
@@ -108,7 +108,7 @@ Start from a recipe when building a whole page or flow — they encode the idiom
108
108
  - [BbConfirmPortal](./BbConfirmPortal.md) - Registers named slot content that confirm() renders via `portal`.
109
109
  - [BbDatePicker](./BbDatePicker.md) - Opens an anchored calendar (and optional time rail) popover on a trigger you own — the date analog of BbColorPalette; also the v-bb-date directive.
110
110
  - [BbDialog](./BbDialog.md) - Presents modal dialogs for focused user interactions.
111
- - [BbDropdown](./BbDropdown.md) - Displays contextual action menus and menu content.
111
+ - [BbDropdown](./BbDropdown.md) - Displays contextual action menus and menu content (includes the co-located BbDropdownGroup export, which is how a selectable group is bound).
112
112
  - [BbDropdownButton](./BbDropdownButton.md) - A button with primary action and all other actions collected in a dropdown.
113
113
  - [BbDropdownGroup](./BbDropdownGroup.md) - Renderless v-model companion for a group declared in BbDropdown.items, bound by id.
114
114
  - [BbOffCanvas](./BbOffCanvas.md) - Shows side-panel overlay content outside normal layout flow.
@@ -222,17 +222,17 @@ Do not use these components directly in consumer code unless the user explicitly
222
222
  - [Migration v2→v3: BbCheckbox / BbRadio / BbSwitch](./guides/migration/components/bb-checkbox.md) - reverse polarity inverted (explicit values flip, default layout unchanged), checked narrowed to boolean, color removed, BbRadio's name no longer required.
223
223
  - [Migration v2→v3: BbCheckboxGroup / BbRadioGroup / BbSwitchGroup](./guides/migration/components/bb-checkbox-group.md) - labelPosition renamed legendPosition, per-item disabled is now inert (use selectable), color and the option affix slots removed, BbRadioGroup's name no longer required, and the shared bb-cr-container CSS block split into one per group.
224
224
  - [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.
225
- - [Migration v2→v3: BbCollapsible](./guides/migration/components/bb-collapsible.md) - The tag prop is removed; the root is always a div.
225
+ - [Migration v2→v3: BbCollapsible](./guides/migration/components/bb-collapsible.md) - The tag prop is removed; the root is always a span.
226
226
  - [Migration v2→v3: BbColorInput](./guides/migration/components/bb-color-input.md) - picker renamed to eyeDropper.
227
227
  - [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.
228
228
  - [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).
229
- - [Migration v2→v3: BbDialog](./guides/migration/components/bb-dialog.md) - showClose inverted to hideClose, several presentation props and the #close/#description slots removed, default widths changed, adaptive bottom sheet on mobile by default, --bb-dialog-* tokens replaced by --bb-panel-p plus locals.
229
+ - [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.
230
230
  - [Migration v2→v3: BbDropdown](./guides/migration/components/bb-dropdown.md) - Items now expect text as the label and can carry variants/submenus; arrowPadding removed; adaptive mobile sheet on by default.
231
231
  - [Migration v2→v3: BbDropdownButton](./guides/migration/components/bb-dropdown-button.md) - autoLoading renamed to disableAutoLoading, disabledWhileLoading and theme removed.
232
232
  - [Migration v2→v3: BbDropzone](./guides/migration/components/bb-dropzone.md) - modelValue is typed, accept no longer throws and takes bare tokens, and the hidden native-submit input only renders when name is set.
233
233
  - [Migration v2→v3: BbIcon](./guides/migration/components/bb-icon.md) - The required prop is renamed type→icon, color is removed, and the xxl size key becomes 2xl.
234
234
  - [Migration v2→v3: BbIntersection](./guides/migration/components/bb-intersection.md) - Removed with no replacement — it wrapped IntersectionObserver and carried no styling; use @vueuse/core's useIntersectionObserver.
235
- - [Migration v2→v3: BbOffCanvas](./guides/migration/components/bb-offcanvas.md) - direction→side; showClose→hideClose; description and the #close/#description slots removed; size defaults change; adaptive drawer configs unify on offCanvasProps.
235
+ - [Migration v2→v3: BbOffCanvas](./guides/migration/components/bb-offcanvas.md) - direction→side; showClose→hideClose; #close removed (description restored in beta.19); size defaults change; adaptive drawer configs unify on offCanvasProps.
236
236
  - [Migration v2→v3: BbPagination](./guides/migration/components/bb-pagination.md) - querykey renamed to queryKey; the loading prop is removed.
237
237
  - [Migration v2→v3: BbPopover](./guides/migration/components/bb-popover.md) - Built-in close button, restoreFocus, theme, and the arrow are gone; close affordances move into your content.
238
238
  - [Migration v2→v3: BbRating](./guides/migration/components/bb-rating.md) - color removed; name no longer required; the star state modifier renamed --highlighted to --filled/--empty; --bb-rating-size demoted to a local --size; input-position finally works.
@@ -241,7 +241,7 @@ Do not use these components directly in consumer code unless the user explicitly
241
241
  - [Migration v2→v3: BbSlider](./guides/migration/components/bb-slider.md) - thumbTranslate inverted to disableThumbTranslate; string model values and color removed.
242
242
  - [Migration v2→v3: BbSmoothHeight](./guides/migration/components/bb-smooth-height.md) - The `tag` prop is narrowed to `div | span`, and the inner measuring element now mirrors it instead of always being a `<div>`.
243
243
  - [Migration v2→v3: BbSpinner](./guides/migration/components/bb-spinner.md) - The color prop is removed; spinners follow currentColor.
244
- - [Migration v2→v3: BbTable](./guides/migration/components/bb-table.md) - allowSelectAll inverted to disableSelectAll; loading no longer blanks populated tables and now inerts rows; #loading is first-load-only; #no-data fills a full-width table cell instead of replacing the row; columns gained sortable + rowClass, which collide with same-named consumer fields.
244
+ - [Migration v2→v3: BbTable](./guides/migration/components/bb-table.md) - The table renders as a CSS grid of divs with ARIA roles, not a <table> — every element selector (table/thead/tbody/tr/th/td) under .bb-table matches nothing, #thead/#tbody/#tfoot take role-complete div rows, --fill/--natural-width are gone, column widths drift within documented bounds, copy-to-spreadsheet and print header repetition degrade; allowSelectAll inverted to disableSelectAll; loading no longer blanks populated tables and now inerts rows; #loading is first-load-only; #no-data fills a full-width cell instead of replacing the row; row events drop the selected argument; columns gained sortable + rowClass, which collide with same-named consumer fields.
245
245
  - [Migration v2→v3: BbTabs (was BbTab)](./guides/migration/components/bb-tabs.md) - Component renamed; querykey→queryKey; animations default on; label slots renamed and all dynamic names/URL slugs normalized; the entire .bb-tab BEM tree renamed to .bb-tabs / .bb-tabs-list / .bb-tabs-panes.
246
246
  - [Migration v2→v3: BbTag](./guides/migration/components/bb-tag.md) - modelValue is strictly string[] now, multiple is removed, and duplicates are rejected case-insensitively by default.
247
247
  - [Migration v2→v3: BbTextInput](./guides/migration/components/bb-text-input.md) - The type prop narrows to the text-like input types — number/date values must move to their dedicated components; a bare `floating` attribute was never a prop, the spelling is label-mode="floating".
@@ -252,4 +252,5 @@ Do not use these components directly in consumer code unless the user explicitly
252
252
  - [Migration v2→v3: useBroadcastChannelInstance](./guides/migration/components/use-broadcast-channel-instance.md) - Removed — cross-tab messaging is not a UI concern; use useBroadcastChannel from @vueuse/core.
253
253
  - [Options and Items Playbook](./guides/options-items-playbook.md) - How item-driven components turn raw domain items into options — mapping, value identity, model seeding, and the supported ways to disable choices.
254
254
  - [Page Shell](./guides/page-shell.md) - App-side page layout — topbar, content, and a right details sidebar driven by a stack-based context (push a record to peek it, pop to go back). The implementation ships in the per-platform Layout Scaffold recipe; this guide covers when and how to use it.
255
+ - [ssr-prefill](./guides/ssr-prefill.md) - Guide for ssr-prefill usage and decision-making context.
255
256
  - [Validated Forms (vee-validate)](./guides/validated-forms.md) - The `bitboss-ui/validated` entrypoint — form controls pre-wired to vee-validate. Global rules give an effort-free `rules="required|email"` string syntax; BbForm hosts the form; requiredAsterisk marks required fields.
@@ -648,7 +648,11 @@ paints a selected row but opens nothing is a dead affordance.
648
648
 
649
649
  `.plain-link`, `.table-flush` and the row tints are project CSS by design (the
650
650
  library ships no such classes), but they are the _same_ project CSS on every
651
- workspace page. Author them **once**, next to the layout, and import that file
651
+ workspace page. (`.table-flush`'s edge-inset rules address the table through
652
+ its grid containers — `> .bb-table__table > .bb-table__body > [role='row'] >
653
+ :first-child` — never through `table`/`tbody`/`tr`/`td`, which the table no
654
+ longer renders; the canonical block is in the BbTable guide § Styling hooks.)
655
+ Author them **once**, next to the layout, and import that file
652
656
  from the app entry — not per page, and never copy-pasted into a page's
653
657
  `<style scoped>`, which is how three pages end up with three underline colours.
654
658
 
@@ -72,10 +72,12 @@ OwnerPaginator::make(...), 'tabCounts' => [...], 'ownerOptions' => [...]])` —
72
72
  parent").
73
73
  - **Page-level cell-padding overrides are scoped with direct-child
74
74
  combinators.** The full-bleed treatment (`.table-flush`) pads the outer
75
- table's first/last cells via `:deep(> table > thead > tr > th:first-child)`
76
- — a bare descendant selector would also hit the nested table and clobber
77
- the structural offset padding it computes to stay flush with the parent
78
- grid.
75
+ table's first/last cells via
76
+ `:deep(> .bb-table__table > .bb-table__head > [role='row'] > :first-child)`
77
+ — the table is a CSS grid of roled `div`s, not a `<table>`, so the chain
78
+ runs through its container classes, and a bare descendant selector would
79
+ also hit the nested table (inside `.bb-table-expand__cell`) and clobber the
80
+ structural offset padding it computes to stay flush with the parent grid.
79
81
  - **Expansion is page state, not table-internal state.** `expanded` (owner
80
82
  ids) lives in the context and binds through `v-model:expanded-items`, so
81
83
  the toolbar (expand-all/collapse-all), the bulk bar (expand selected) and
@@ -190,7 +192,8 @@ one-off pixel inset per page:
190
192
 
191
193
  `--table-identity-lead` is the width of the identity cell's toggle track, so
192
194
  the two can never drift. Set the knob on the nest container — never pad the
193
- child's `tbody` alone, which reintroduces the edge mismatch the snap removed.
195
+ child's body (`.bb-table__body`) alone, which reintroduces the edge mismatch
196
+ the snap removed.
194
197
 
195
198
  ## The code
196
199
 
@@ -780,25 +783,42 @@ const rowClass = (item: Owner) => {
780
783
  }
781
784
 
782
785
  /* Direct-child combinators keep these overrides on the OWNER table's own
783
- cells. A bare `:deep(tbody td:first-child)` would also match the nested
784
- holdings table and clobber the structural offset padding it computes to
785
- stay flush with the parent grid — the one selector mistake that silently
786
- breaks nested-table alignment. */
787
- .table-flush :deep(> table > thead > tr > th:first-child),
786
+ cells. The table is a CSS grid of roled divs (no <table>/<tr>/<td>), so the
787
+ chain runs through its container classes. A bare
788
+ `:deep([role='cell']:first-child)` would also match the nested holdings
789
+ table and clobber the structural offset padding it computes to stay flush
790
+ with the parent grid — the one selector mistake that silently breaks
791
+ nested-table alignment. */
788
792
  .table-flush
789
- :deep(> table > tbody > tr > td:first-child:not(.bb-table-expand__cell)) {
793
+ :deep(> .bb-table__table > .bb-table__head > [role='row'] > :first-child),
794
+ .table-flush
795
+ :deep(
796
+ > .bb-table__table
797
+ > .bb-table__body
798
+ > [role='row']
799
+ > :first-child:not(.bb-table-expand__cell)
800
+ ) {
790
801
  padding-inline-start: var(--page-inset);
791
802
  }
792
803
 
793
- .table-flush :deep(> table > thead > tr > th:last-child),
794
804
  .table-flush
795
- :deep(> table > tbody > tr > td:last-child:not(.bb-table-expand__cell)) {
805
+ :deep(> .bb-table__table > .bb-table__head > [role='row'] > :last-child),
806
+ .table-flush
807
+ :deep(
808
+ > .bb-table__table
809
+ > .bb-table__body
810
+ > [role='row']
811
+ > :last-child:not(.bb-table-expand__cell)
812
+ ) {
796
813
  padding-inline-end: var(--page-inset);
797
814
  }
798
815
 
799
816
  /* Expand rows stay edge-to-edge so the nested table can inherit the parent
800
817
  tracks without an extra inset shifting everything sideways. */
801
- .table-flush :deep(> table > tbody > tr > td.bb-table-expand__cell) {
818
+ .table-flush
819
+ :deep(
820
+ > .bb-table__table > .bb-table__body > [role='row'] > .bb-table-expand__cell
821
+ ) {
802
822
  padding-inline: 0;
803
823
  }
804
824
 
@@ -1304,7 +1324,7 @@ export interface OwnerDetail extends Owner {
1304
1324
  widths.** `inherit-column-widths` is the whole alignment mechanism: the
1305
1325
  holdings table reads the owners table's measured tracks, so Resource sits
1306
1326
  under Owner and both $/mo columns share one right edge at every viewport
1307
- width. Two hand-maintained `<colgroup>`s (or two tables that merely look
1327
+ width. Two hand-maintained width lists (or two tables that merely look
1308
1328
  similar) drift apart the first time a label changes; the inheritance
1309
1329
  cannot.
1310
1330
  - **Every child column snaps, and the base is 1.** The parent is
@@ -1321,11 +1341,12 @@ export interface OwnerDetail extends Owner {
1321
1341
  - **Cell-padding overrides use direct-child combinators.** `.table-flush`
1322
1342
  bleeds the owner table past the page padding and re-adds the inset on the
1323
1343
  outermost cells — but only via
1324
- `:deep(> table > tbody > tr > td:first-child)`. A bare descendant
1325
- selector would also hit the nested table's cells and clobber the offset
1326
- padding it computes to stay on the parent grid. The expand cell itself is
1327
- excluded from the inset and zero-padded, so the nested table gets the full
1328
- row width to snap within.
1344
+ `:deep(> .bb-table__table > .bb-table__body > [role='row'] > :first-child)`
1345
+ (the table is a CSS grid of roled `div`s; `table`/`tbody`/`tr`/`td`
1346
+ selectors match nothing). A bare descendant selector would also hit the
1347
+ nested table's cells and clobber the offset padding it computes to stay on
1348
+ the parent grid. The expand cell itself is excluded from the inset and
1349
+ zero-padded, so the nested table gets the full row width to snap within.
1329
1350
  - **Expansion is rung-3 page state.** `expanded` lives in the context
1330
1351
  because four surfaces touch it: the per-row control, the toolbar's
1331
1352
  expand-all/collapse-all, the bulk bar's Expand, and the peek's "Expand in
@@ -814,7 +814,11 @@ const statusGroup: BbDropdownItem = {
814
814
 
815
815
  // Pipeline facet: `prefill: true` resolves a picked customer's name eagerly,
816
816
  // so a chip never sits on a bare id while this group's own submenu (inside
817
- // the Filters menu) has never been opened.
817
+ // the Filters menu) has never been opened. The eager flag belongs HERE, on
818
+ // the menu's copy only — the chip derives its own copy with
819
+ // `prefill: 'interaction'` (see FilterChip.vue), because a second dropdown
820
+ // redeclaring `prefill: true` would fetch every seeded facet twice on page
821
+ // load for nothing.
818
822
  const customerGroup: BbDropdownItem = {
819
823
  key: 'customer',
820
824
  label: 'Customer',
@@ -866,10 +870,10 @@ const menu = computed<BbDropdownItem[]>(() => [
866
870
  component sitting between `BbBadge` and `BbBadgeButton` breaks the
867
871
  badge's direct-child vnode scan (the companion must be a literal
868
872
  child). This IS "the chip is itself a dropdown onto the same filter
869
- group": `group` is the exact descriptor FilterRail declared, reused
870
- rather than redeclared, so this scoped picker and the Filters menu's
871
- own submenu can never drift apart. -->
872
- <BbDropdown :activator="chipRef" :items="[group]" :width="220">
873
+ group": `chipGroup` is derived from the exact descriptor FilterRail
874
+ declared (spread, one override — never redeclared), so this scoped
875
+ picker and the Filters menu's own submenu can never drift apart. -->
876
+ <BbDropdown :activator="chipRef" :items="[chipGroup]" :width="220">
873
877
  <BbDropdownGroup
874
878
  :id="groupKey"
875
879
  :model-value="modelValue"
@@ -903,9 +907,24 @@ const emit = defineEmits<{ 'update:modelValue': [value: unknown] }>();
903
907
 
904
908
  const chipRef = useTemplateRef('chipRef');
905
909
 
910
+ // The chip's own copy of the shared descriptor, one override: `prefill:
911
+ // 'interaction'`. BbDropdown mounts a pipeline resolver for every group it
912
+ // declares at its own root, independent of the panel ever opening — so if
913
+ // this second dropdown repeated the menu's `prefill: true` verbatim, each
914
+ // seeded pipeline facet would be fetched TWICE on page load, and the chip's
915
+ // copy of the result would feed nothing (the label below comes from the
916
+ // menu's resolution via context). `'interaction'` defers this copy's fetch
917
+ // to the moment the chip's dropdown is actually opened. For static array
918
+ // facets the override is inert — arrays resolve synchronously either way.
919
+ const chipGroup = computed<BbDropdownItem>(() => ({
920
+ ...props.group,
921
+ prefill: 'interaction',
922
+ }));
923
+
906
924
  // Reads the Filters menu's already-resolved selection — no twin fetch. A
907
- // pipeline group needs `prefill: true` (set on `group` by FilterRail) so this
908
- // never sits on a bare id/value while the menu's own submenu is unopened.
925
+ // pipeline group needs `prefill: true` (set on the MENU's copy of `group` by
926
+ // FilterRail) so this never sits on a bare id/value while the menu's own
927
+ // submenu is unopened.
909
928
  const dropdownFilters = useBbDropdownContext('invoice-filters');
910
929
  const chipText = computed(() => {
911
930
  const options =
@@ -648,7 +648,11 @@ paints a selected row but opens nothing is a dead affordance.
648
648
 
649
649
  `.plain-link`, `.table-flush` and the row tints are project CSS by design (the
650
650
  library ships no such classes), but they are the _same_ project CSS on every
651
- workspace page. Author them **once**, next to the layout, and import that file
651
+ workspace page. (`.table-flush`'s edge-inset rules address the table through
652
+ its grid containers — `> .bb-table__table > .bb-table__body > [role='row'] >
653
+ :first-child` — never through `table`/`tbody`/`tr`/`td`, which the table no
654
+ longer renders; the canonical block is in the BbTable guide § Styling hooks.)
655
+ Author them **once**, next to the layout, and import that file
652
656
  from the app entry — not per page, and never copy-pasted into a page's
653
657
  `<style scoped>`, which is how three pages end up with three underline colours.
654
658
 
@@ -802,7 +802,11 @@ const statusGroup: BbDropdownItem = {
802
802
 
803
803
  // Pipeline facet: `prefill: true` resolves a picked customer's name eagerly,
804
804
  // so a chip never sits on a bare id while this group's own submenu (inside
805
- // the Filters menu) has never been opened.
805
+ // the Filters menu) has never been opened. The eager flag belongs HERE, on
806
+ // the menu's copy only — the chip derives its own copy with
807
+ // `prefill: 'interaction'` (see FilterChip.vue), because a second dropdown
808
+ // redeclaring `prefill: true` would fetch every seeded facet twice on page
809
+ // load for nothing.
806
810
  const customerGroup: BbDropdownItem = {
807
811
  key: 'customer',
808
812
  label: 'Customer',
@@ -854,10 +858,10 @@ const menu = computed<BbDropdownItem[]>(() => [
854
858
  component sitting between `BbBadge` and `BbBadgeButton` breaks the
855
859
  badge's direct-child vnode scan (the companion must be a literal
856
860
  child). This IS "the chip is itself a dropdown onto the same filter
857
- group": `group` is the exact descriptor FilterRail declared, reused
858
- rather than redeclared, so this scoped picker and the Filters menu's
859
- own submenu can never drift apart. -->
860
- <BbDropdown :activator="chipRef" :items="[group]" :width="220">
861
+ group": `chipGroup` is derived from the exact descriptor FilterRail
862
+ declared (spread, one override — never redeclared), so this scoped
863
+ picker and the Filters menu's own submenu can never drift apart. -->
864
+ <BbDropdown :activator="chipRef" :items="[chipGroup]" :width="220">
861
865
  <BbDropdownGroup
862
866
  :id="groupKey"
863
867
  :model-value="modelValue"
@@ -891,9 +895,24 @@ const emit = defineEmits<{ 'update:modelValue': [value: unknown] }>();
891
895
 
892
896
  const chipRef = useTemplateRef('chipRef');
893
897
 
898
+ // The chip's own copy of the shared descriptor, one override: `prefill:
899
+ // 'interaction'`. BbDropdown mounts a pipeline resolver for every group it
900
+ // declares at its own root, independent of the panel ever opening — so if
901
+ // this second dropdown repeated the menu's `prefill: true` verbatim, each
902
+ // seeded pipeline facet would be fetched TWICE on page load, and the chip's
903
+ // copy of the result would feed nothing (the label below comes from the
904
+ // menu's resolution via context). `'interaction'` defers this copy's fetch
905
+ // to the moment the chip's dropdown is actually opened. For static array
906
+ // facets the override is inert — arrays resolve synchronously either way.
907
+ const chipGroup = computed<BbDropdownItem>(() => ({
908
+ ...props.group,
909
+ prefill: 'interaction',
910
+ }));
911
+
894
912
  // Reads the Filters menu's already-resolved selection — no twin fetch. A
895
- // pipeline group needs `prefill: true` (set on `group` by FilterRail) so this
896
- // never sits on a bare id/value while the menu's own submenu is unopened.
913
+ // pipeline group needs `prefill: true` (set on the MENU's copy of `group` by
914
+ // FilterRail) so this never sits on a bare id/value while the menu's own
915
+ // submenu is unopened.
897
916
  const dropdownFilters = useBbDropdownContext('invoice-filters');
898
917
  const chipText = computed(() => {
899
918
  const options =
@@ -648,7 +648,11 @@ paints a selected row but opens nothing is a dead affordance.
648
648
 
649
649
  `.plain-link`, `.table-flush` and the row tints are project CSS by design (the
650
650
  library ships no such classes), but they are the _same_ project CSS on every
651
- workspace page. Author them **once**, next to the layout, and import that file
651
+ workspace page. (`.table-flush`'s edge-inset rules address the table through
652
+ its grid containers — `> .bb-table__table > .bb-table__body > [role='row'] >
653
+ :first-child` — never through `table`/`tbody`/`tr`/`td`, which the table no
654
+ longer renders; the canonical block is in the BbTable guide § Styling hooks.)
655
+ Author them **once**, next to the layout, and import that file
652
656
  from the app entry — not per page, and never copy-pasted into a page's
653
657
  `<style scoped>`, which is how three pages end up with three underline colours.
654
658
 
@@ -735,7 +735,11 @@ const statusGroup: BbDropdownItem = {
735
735
 
736
736
  // Pipeline facet: `prefill: true` resolves a picked customer's name eagerly,
737
737
  // so a chip never sits on a bare id while this group's own submenu (inside
738
- // the Filters menu) has never been opened.
738
+ // the Filters menu) has never been opened. The eager flag belongs HERE, on
739
+ // the menu's copy only — the chip derives its own copy with
740
+ // `prefill: 'interaction'` (see FilterChip.vue), because a second dropdown
741
+ // redeclaring `prefill: true` would fetch every seeded facet twice on page
742
+ // load for nothing.
739
743
  const customerGroup: BbDropdownItem = {
740
744
  key: 'customer',
741
745
  label: 'Customer',
@@ -787,10 +791,10 @@ const menu = computed<BbDropdownItem[]>(() => [
787
791
  component sitting between `BbBadge` and `BbBadgeButton` breaks the
788
792
  badge's direct-child vnode scan (the companion must be a literal
789
793
  child). This IS "the chip is itself a dropdown onto the same filter
790
- group": `group` is the exact descriptor FilterRail declared, reused
791
- rather than redeclared, so this scoped picker and the Filters menu's
792
- own submenu can never drift apart. -->
793
- <BbDropdown :activator="chipRef" :items="[group]" :width="220">
794
+ group": `chipGroup` is derived from the exact descriptor FilterRail
795
+ declared (spread, one override — never redeclared), so this scoped
796
+ picker and the Filters menu's own submenu can never drift apart. -->
797
+ <BbDropdown :activator="chipRef" :items="[chipGroup]" :width="220">
794
798
  <BbDropdownGroup
795
799
  :id="groupKey"
796
800
  :model-value="modelValue"
@@ -824,9 +828,24 @@ const emit = defineEmits<{ 'update:modelValue': [value: unknown] }>();
824
828
 
825
829
  const chipRef = useTemplateRef('chipRef');
826
830
 
831
+ // The chip's own copy of the shared descriptor, one override: `prefill:
832
+ // 'interaction'`. BbDropdown mounts a pipeline resolver for every group it
833
+ // declares at its own root, independent of the panel ever opening — so if
834
+ // this second dropdown repeated the menu's `prefill: true` verbatim, each
835
+ // seeded pipeline facet would be fetched TWICE on page load, and the chip's
836
+ // copy of the result would feed nothing (the label below comes from the
837
+ // menu's resolution via context). `'interaction'` defers this copy's fetch
838
+ // to the moment the chip's dropdown is actually opened. For static array
839
+ // facets the override is inert — arrays resolve synchronously either way.
840
+ const chipGroup = computed<BbDropdownItem>(() => ({
841
+ ...props.group,
842
+ prefill: 'interaction',
843
+ }));
844
+
827
845
  // Reads the Filters menu's already-resolved selection — no twin fetch. A
828
- // pipeline group needs `prefill: true` (set on `group` by FilterRail) so this
829
- // never sits on a bare id/value while the menu's own submenu is unopened.
846
+ // pipeline group needs `prefill: true` (set on the MENU's copy of `group` by
847
+ // FilterRail) so this never sits on a bare id/value while the menu's own
848
+ // submenu is unopened.
830
849
  const dropdownFilters = useBbDropdownContext('invoice-filters');
831
850
  const chipText = computed(() => {
832
851
  const options =
@@ -190,7 +190,16 @@ export type BbAlertEvents =
190
190
 
191
191
  /** Props exposed by the `title` slot. */
192
192
  export type BbAlertTitleSlotProps = {
193
- /** The `title` prop value. */
193
+ /**
194
+ * The `title` prop's value — despite the scope being named `text`.
195
+ *
196
+ * Both slots name their payload `text` (each meaning "the text of THIS
197
+ * slot"), so `#title="{ text }"` gives you the title and
198
+ * `#text="{ text }"` gives you the body. Worth stating because the v2 bug
199
+ * this replaced was the opposite mix-up: v2's `#text` slot passed the
200
+ * *title*. Renaming the scope now would be another break, so the rule is
201
+ * simply: the payload belongs to the slot you are in.
202
+ */
194
203
  text: BbAlertProps['title'];
195
204
  };
196
205
 
@@ -290,9 +299,23 @@ export type BbAlertSlots = {
290
299
  }
291
300
  }
292
301
 
302
+ /*
303
+ * Q17.1 — the body is the danger colour at FULL strength, not a mix.
304
+ *
305
+ * The 75%-of-main formula the quiet variants use holds for `outline` and
306
+ * `primary`, whose `--main-color` is already a text colour. It does not hold
307
+ * for a STATUS colour: 75% of `--bb-danger` measures 3.18:1 light / 3.17:1
308
+ * dark against the panel, under the 4.5:1 budget real message text carries.
309
+ *
310
+ * Dropping the mix fixes that without changing what the variant IS: 4.55:1
311
+ * in both schemes, and the body stays red — which is also what shadcn does,
312
+ * colouring title and description alike. (A neutral grey body was tried and
313
+ * reverted: it cleared contrast comfortably but read as a different
314
+ * component.) Hierarchy comes from the title's font-weight, as before.
315
+ */
293
316
  &--destructive {
294
317
  --main-color: var(--bb-danger);
295
- --muted-color: color-mix(in oklab, var(--main-color) 75%, transparent);
318
+ --muted-color: var(--main-color);
296
319
  background-color: transparent;
297
320
  border-color: var(--bb-border);
298
321
 
@@ -316,6 +339,31 @@ export type BbAlertSlots = {
316
339
  }
317
340
  }
318
341
 
342
+ /*
343
+ * Warning keeps the shadcn amber it has always had — the owner's call, and
344
+ * the palette is deliberate. What changed is HOW the two schemes are
345
+ * selected (Q4.1).
346
+ *
347
+ * The old rule paired a light block with `:where(.dark) &--warning`. Because
348
+ * `:where()` contributes no specificity, that tied the light rule at (0,1,0)
349
+ * and won on source order — so it matched through ANY `.dark` ancestor. A
350
+ * `.light` island inside a dark page (the docs theme builder's light preview
351
+ * pane is exactly this) flipped every other component back to light and left
352
+ * the warning Alert dark on a white panel. No scope class could beat it at
353
+ * any nesting depth.
354
+ *
355
+ * `light-dark()` keys off the element's computed `color-scheme`, which
356
+ * variables.css already sets on `.light` / `.dark`. That makes the choice
357
+ * INHERITED rather than selector-matched, so the nearest scheme scope wins
358
+ * — a dark card inside a light island inside a dark page resolves correctly,
359
+ * which is the case a second selector can never get right.
360
+ *
361
+ * The two rules below it are the pre-`light-dark()` fallback, kept exactly
362
+ * as they shipped: on a browser without it (pre-Chrome 123 / Safari 17.5 /
363
+ * Firefox 120) the `@supports` block simply does not apply and behaviour is
364
+ * identical to before, island leak included. Nothing regresses; modern
365
+ * browsers just stop leaking.
366
+ */
319
367
  &--warning {
320
368
  --main-color: #7b3306;
321
369
  --muted-color: #737373;
@@ -349,6 +397,16 @@ export type BbAlertSlots = {
349
397
  border-color: #7c5f1f;
350
398
  }
351
399
 
400
+ /* Wins over both of the above wherever it is understood. */
401
+ @supports (color: light-dark(red, blue)) {
402
+ &--warning {
403
+ --main-color: light-dark(#7b3306, #facc15);
404
+ --muted-color: light-dark(#737373, #d6d3d1);
405
+ background-color: light-dark(#fffbea, #2a2112);
406
+ border-color: light-dark(#fee685, #7c5f1f);
407
+ }
408
+ }
409
+
352
410
  .bb-alert__inner-container {
353
411
  align-items: start;
354
412
  display: grid;
@@ -36,22 +36,22 @@
36
36
  import { computed, onMounted, ref, watch } from 'vue';
37
37
  import { parseSize } from '@/utilities/functions/parseSize';
38
38
  import { wait } from '@/utilities/functions/wait';
39
- import { config } from 'virtual:bitboss-ui/config';
39
+ import { useConfig } from '@/composables/useConfig';
40
40
  import { useLogger } from '@/composables/useLogger';
41
41
  import { removedPropsFor } from '@/deprecation/removedProps';
42
42
  import { warnRemovedAttrs } from '@/utilities/functions/warnRemovedAttrs';
43
43
  import BbIcon from '../BbIcon/BbIcon.vue';
44
44
  import defaultFallbackIcon from '@/assets/svgs/user.svg?raw';
45
45
  import type { BbAvatarProps, BbAvatarSlots } from './types';
46
- export type { BbAvatarProps, BbAvatarSlots };
47
46
 
48
47
  const props = withDefaults(defineProps<BbAvatarProps>(), {
49
48
  alt: '',
50
49
  timeout: 400,
51
50
  size: 'md',
52
51
  });
53
-
54
52
  defineSlots<BbAvatarSlots>();
53
+ const config = useConfig();
54
+ export type { BbAvatarProps, BbAvatarSlots };
55
55
 
56
56
  if (process.env.NODE_ENV !== 'production')
57
57
  warnRemovedAttrs('BbAvatar', removedPropsFor('BbAvatar'));