bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.73

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 (363) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +9 -3
  3. package/dist/ai/BbAccordion.md +38 -19
  4. package/dist/ai/BbBadge.md +25 -22
  5. package/dist/ai/BbBreadcrumbs.md +1 -1
  6. package/dist/ai/BbButton.md +32 -27
  7. package/dist/ai/BbCalendar.md +1 -0
  8. package/dist/ai/BbCarousel.md +6 -4
  9. package/dist/ai/BbCheckboxGroup.md +2 -1
  10. package/dist/ai/BbColorInput.md +1 -1
  11. package/dist/ai/BbConfirm.md +65 -81
  12. package/dist/ai/BbConfirmPortal.md +2 -2
  13. package/dist/ai/BbDatePicker.md +1 -6
  14. package/dist/ai/BbDatePickerInput.md +2 -2
  15. package/dist/ai/BbDialog.md +233 -164
  16. package/dist/ai/BbDropdown.md +52 -16
  17. package/dist/ai/BbDropdownButton.md +11 -12
  18. package/dist/ai/BbDropzone.md +12 -8
  19. package/dist/ai/BbForm.md +100 -13
  20. package/dist/ai/BbHost.md +2 -2
  21. package/dist/ai/BbHoverCardPortal.md +1 -1
  22. package/dist/ai/BbIcon.md +1 -1
  23. package/dist/ai/BbIndicator.md +17 -15
  24. package/dist/ai/BbNumberInput.md +7 -5
  25. package/dist/ai/BbOffCanvas.md +29 -7
  26. package/dist/ai/BbPagination.md +2 -2
  27. package/dist/ai/BbPopover.md +15 -9
  28. package/dist/ai/BbPopoverPortal.md +1 -1
  29. package/dist/ai/BbRadioGroup.md +29 -7
  30. package/dist/ai/BbRating.md +8 -7
  31. package/dist/ai/BbSelect.md +29 -8
  32. package/dist/ai/BbSelectPopover.md +9 -3
  33. package/dist/ai/BbSlider.md +12 -8
  34. package/dist/ai/BbSpinner.md +3 -2
  35. package/dist/ai/BbSwitch.md +3 -3
  36. package/dist/ai/BbSwitchGroup.md +7 -6
  37. package/dist/ai/BbTable.md +205 -82
  38. package/dist/ai/BbTabs.md +29 -4
  39. package/dist/ai/BbTag.md +1 -1
  40. package/dist/ai/BbTextInput.md +7 -5
  41. package/dist/ai/BbTextarea.md +4 -3
  42. package/dist/ai/BbTimePickerInput.md +1 -1
  43. package/dist/ai/BbToast.md +3 -2
  44. package/dist/ai/BbTooltip.md +22 -17
  45. package/dist/ai/BbTree.md +49 -24
  46. package/dist/ai/CommonFieldInput.md +1 -1
  47. package/dist/ai/changelog.json +242 -9
  48. package/dist/ai/components.json +52 -51
  49. package/dist/ai/composables/useBbDialog.md +5 -8
  50. package/dist/ai/composables/useBbForm.md +3 -0
  51. package/dist/ai/composables/useConfirm.md +65 -56
  52. package/dist/ai/composables/useToast.md +2 -1
  53. package/dist/ai/guides/agent-contract.md +3 -3
  54. package/dist/ai/guides/app-layout.md +3 -2
  55. package/dist/ai/guides/eslint-rules.md +3 -1
  56. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  57. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  58. package/dist/ai/guides/icons-policy.md +7 -5
  59. package/dist/ai/guides/inertia-helpers.md +35 -30
  60. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  61. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  62. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  63. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  64. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  65. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  67. package/dist/ai/guides/migration/components/use-confirm.md +72 -26
  68. package/dist/ai/guides/migration/v2-to-v3.md +52 -10
  69. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  70. package/dist/ai/guides/options-items-playbook.md +4 -3
  71. package/dist/ai/guides/passthrough.md +2 -2
  72. package/dist/ai/helpers/inertia/manifest.json +28 -15
  73. package/dist/ai/helpers/inertia/messages.ts +3 -3
  74. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  75. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  76. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  77. package/dist/ai/index.md +3 -3
  78. package/dist/ai/manifest/common.json +3 -3
  79. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  80. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  81. package/dist/ai/manifest/components/BbBadge.json +8 -7
  82. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  83. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  84. package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
  85. package/dist/ai/manifest/components/BbButton.json +5 -6
  86. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  87. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  88. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  89. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  90. package/dist/ai/manifest/components/BbColorInput.json +1 -1
  91. package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
  92. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  93. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  94. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  95. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  96. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  97. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  98. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  99. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  100. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
  101. package/dist/ai/manifest/components/BbDialog.json +6 -1
  102. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  103. package/dist/ai/manifest/components/BbDropdown.json +9 -8
  104. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  105. package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
  106. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  107. package/dist/ai/manifest/components/BbForm.json +3 -1
  108. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  109. package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
  110. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  111. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  112. package/dist/ai/manifest/components/BbPagination.json +1 -1
  113. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  114. package/dist/ai/manifest/components/BbRating.json +2 -2
  115. package/dist/ai/manifest/components/BbSelect.json +16 -15
  116. package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
  117. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  118. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  119. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  120. package/dist/ai/manifest/components/BbTable.json +15 -14
  121. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  122. package/dist/ai/manifest/components/BbTabs.json +3 -3
  123. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  124. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  125. package/dist/ai/manifest/components/BbTag.json +1 -1
  126. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  127. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  128. package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
  129. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  130. package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
  131. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  132. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  133. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  135. package/dist/ai/manifest/components/BbTree.json +2 -2
  136. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  137. package/dist/ai/manifest/index.json +4 -4
  138. package/dist/ai/manifest/meta.json +5 -1
  139. package/dist/ai/manifest/types.advanced.json +9 -9
  140. package/dist/ai/manifest/types.api.json +6 -5
  141. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  142. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  143. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  144. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  145. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  146. package/dist/ai/recipes/inertia/record-form.md +12 -8
  147. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  148. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  149. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  150. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  151. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  152. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  153. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  154. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  155. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  156. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  157. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  158. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  159. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  160. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  161. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/vue/onboarding.md +5 -4
  165. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/vue/record-form.md +14 -10
  167. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  168. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  169. package/dist/ai/recipes/vue/upload-center.md +17 -9
  170. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  171. package/dist/ai/source/BbAccordion.md +50 -16
  172. package/dist/ai/source/BbBadge.md +420 -26
  173. package/dist/ai/source/BbBadgeButton.md +378 -12
  174. package/dist/ai/source/BbButton.md +205 -55
  175. package/dist/ai/source/BbCalendar.md +5 -0
  176. package/dist/ai/source/BbCheckboxGroup.md +38 -13
  177. package/dist/ai/source/BbConfigScope.md +19 -2
  178. package/dist/ai/source/BbConfirm.md +74 -80
  179. package/dist/ai/source/BbConfirmPortal.md +6 -6
  180. package/dist/ai/source/BbDatePicker.md +9 -2
  181. package/dist/ai/source/BbDatePickerInput.md +3 -1
  182. package/dist/ai/source/BbDialog.md +53 -2
  183. package/dist/ai/source/BbDropdown.md +350 -98
  184. package/dist/ai/source/BbDropdownButton.md +20 -12
  185. package/dist/ai/source/BbDropdownGroup.md +136 -58
  186. package/dist/ai/source/BbForm.md +152 -11
  187. package/dist/ai/source/BbOffCanvas.md +53 -2
  188. package/dist/ai/source/BbPagination.md +1 -1
  189. package/dist/ai/source/BbRadioGroup.md +72 -10
  190. package/dist/ai/source/BbRating.md +30 -22
  191. package/dist/ai/source/BbSelect.md +11 -1
  192. package/dist/ai/source/BbSelectPopover.md +105 -34
  193. package/dist/ai/source/BbSwitch.md +23 -8
  194. package/dist/ai/source/BbSwitchGroup.md +67 -21
  195. package/dist/ai/source/BbTable.md +359 -48
  196. package/dist/ai/source/BbTabs.md +6 -0
  197. package/dist/ai/source/BbTabsList.md +10 -0
  198. package/dist/ai/source/BbTabsPanels.md +6 -0
  199. package/dist/ai/source/BbTabsRoot.md +6 -0
  200. package/dist/ai/source/BbTree.md +14 -4
  201. package/dist/ai/source/CommonFieldInput.md +2 -1
  202. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  203. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  204. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  205. package/dist/components/BbAccordion/types.d.ts +21 -7
  206. package/dist/components/BbAccordion/types.js +1 -1
  207. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  208. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  209. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  210. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  211. package/dist/components/BbBadge/types.d.ts +15 -12
  212. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  213. package/dist/components/BbButton/types.d.ts +7 -6
  214. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  215. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  216. package/dist/components/BbCalendar/types.d.ts +5 -0
  217. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  218. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  219. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  220. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  221. package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
  222. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  223. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  224. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  225. package/dist/components/BbConfirm/types.d.ts +5 -5
  226. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  227. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  228. package/dist/components/BbDatePicker/types.d.ts +5 -0
  229. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  230. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  231. package/dist/components/BbDatePickerInput/types.d.ts +2 -1
  232. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  233. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  234. package/dist/components/BbDialog/overlayActions.js +94 -0
  235. package/dist/components/BbDialog/types.d.ts +24 -0
  236. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  237. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
  238. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  239. package/dist/components/BbDropdown/normalizeGroups.js +58 -48
  240. package/dist/components/BbDropdown/types.d.ts +107 -48
  241. package/dist/components/BbDropdown/types.js +2 -2
  242. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
  243. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  244. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  245. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +241 -199
  246. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  247. package/dist/components/BbForm/recognizeValidation.js +55 -0
  248. package/dist/components/BbForm/validationError.d.ts +10 -0
  249. package/dist/components/BbForm/validationError.js +11 -0
  250. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  251. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  252. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  253. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  254. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  255. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  256. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  257. package/dist/components/BbRadioGroup/types.d.ts +9 -3
  258. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
  259. package/dist/components/BbRating/types.d.ts +3 -2
  260. package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
  261. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  262. package/dist/components/BbSelect/types.d.ts +8 -0
  263. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  264. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  265. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  266. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  267. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  268. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  269. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  270. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  271. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  272. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  273. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  274. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  275. package/dist/components/BbTable/types.d.ts +32 -17
  276. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  277. package/dist/components/BbTabs/types.d.ts +6 -0
  278. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  279. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  280. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  281. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  282. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  283. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  284. package/dist/components/BbTree/types.d.ts +8 -2
  285. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  286. package/dist/composables/formSubmitLock.js +15 -8
  287. package/dist/composables/overlayRegistry.d.ts +5 -0
  288. package/dist/composables/overlayRegistry.js +154 -148
  289. package/dist/composables/useBbDropdown.d.ts +8 -0
  290. package/dist/composables/useBbDropdown.js +3 -1
  291. package/dist/composables/useBbTabs.js +138 -138
  292. package/dist/composables/useConfirm.d.ts +63 -52
  293. package/dist/composables/useConfirm.js +22 -18
  294. package/dist/deprecation/ai-deprecations.json.js +1 -1
  295. package/dist/directives/bbDropdown.d.ts +7 -7
  296. package/dist/directives/bbDropdown.js +21 -14
  297. package/dist/directives/bbTooltip.d.ts +3 -3
  298. package/dist/directives/createPopoverDirective.js +57 -35
  299. package/dist/i18n/locales/ar.json +5 -1
  300. package/dist/i18n/locales/cs.json +5 -1
  301. package/dist/i18n/locales/da.json +5 -1
  302. package/dist/i18n/locales/de-CH.json +5 -1
  303. package/dist/i18n/locales/de.json +5 -1
  304. package/dist/i18n/locales/el.json +5 -1
  305. package/dist/i18n/locales/en-GB.json +5 -1
  306. package/dist/i18n/locales/en.json +5 -1
  307. package/dist/i18n/locales/es-MX.json +5 -1
  308. package/dist/i18n/locales/es.json +5 -1
  309. package/dist/i18n/locales/fa.json +5 -1
  310. package/dist/i18n/locales/fi.json +5 -1
  311. package/dist/i18n/locales/fr.json +5 -1
  312. package/dist/i18n/locales/he.json +5 -1
  313. package/dist/i18n/locales/hu.json +5 -1
  314. package/dist/i18n/locales/it.json +5 -1
  315. package/dist/i18n/locales/ja.json +5 -1
  316. package/dist/i18n/locales/ko.json +5 -1
  317. package/dist/i18n/locales/nb.json +5 -1
  318. package/dist/i18n/locales/nl.json +5 -1
  319. package/dist/i18n/locales/pl.json +5 -1
  320. package/dist/i18n/locales/pt-BR.json +5 -1
  321. package/dist/i18n/locales/pt-PT.json +5 -1
  322. package/dist/i18n/locales/ro.json +5 -1
  323. package/dist/i18n/locales/ru.json +5 -1
  324. package/dist/i18n/locales/sv.json +5 -1
  325. package/dist/i18n/locales/tr.json +5 -1
  326. package/dist/i18n/locales/uk.json +5 -1
  327. package/dist/i18n/locales/zh-CN.json +5 -1
  328. package/dist/i18n/locales/zh-HK.json +5 -1
  329. package/dist/i18n/locales/zh-TW.json +5 -1
  330. package/dist/index.d.ts +2 -0
  331. package/dist/index.js +4 -3
  332. package/dist/llms-full.txt +1997 -1151
  333. package/dist/llms-medium.txt +21 -18
  334. package/dist/llms.txt +2 -2
  335. package/dist/locale-blueprint.json +5 -1
  336. package/dist/plugin.js +17 -40
  337. package/dist/pluginCore.js +30 -0
  338. package/dist/styles.css +2 -2
  339. package/dist/types/ActionButton.d.ts +26 -5
  340. package/dist/types/ActionButton.js +11 -0
  341. package/dist/types/ConfigDefaults.d.ts +34 -3
  342. package/dist/types/ConfigDefaults.js +14 -8
  343. package/dist/types/ItemPath.d.ts +33 -4
  344. package/dist/types/ptComponentMap.d.ts +1 -1
  345. package/dist/utilities/functions/clickCount.js +14 -0
  346. package/dist/utilities/functions/hash.js +90 -3
  347. package/dist/utilities/functions/isEqual.js +61 -3
  348. package/dist/utils/versionCheck.js +1 -1
  349. package/dist/vite.js +0 -1
  350. package/llms.txt +2 -2
  351. package/package.json +12 -2
  352. package/scripts/README.md +43 -39
  353. package/scripts/lib/adoption-checklist.json +2 -2
  354. package/scripts/lib/eslint-disable.mjs +5 -3
  355. package/scripts/lib/eslint-plugin.d.ts +2 -0
  356. package/scripts/lib/eslint-plugin.mjs +213 -1
  357. package/scripts/lib/helpers-add.mjs +21 -2
  358. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  359. package/scripts/lib/release-results.mjs +180 -5
  360. package/scripts/lib/renamed-item-field.mjs +4 -1
  361. package/scripts/lib/tab-links.mjs +4 -1
  362. package/scripts/lib/tree-default-expandable.mjs +53 -0
  363. package/scripts/lib/validate-bb-markup.mjs +536 -52
@@ -1189,12 +1189,12 @@ affected; the dictionaries themselves ship with the library.
1189
1189
 
1190
1190
  **Dialogs, off-canvas, popovers**
1191
1191
 
1192
- | v2 | v3 |
1193
- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1194
- | `.bb-base-dialog` (+ `--deny-close --fullscreen --open`, `__header __title __body __body-content __footer`) | `.bb-dialog` / `.bb-dialog__*` — 1:1 on every one of those |
1195
- | `.bb-base-dialog__close` / `__close-icon`, `.bb-offcanvas__close` / `__close-icon`, `.bb-popover__close` | `.bb-close-button` — one shared button, used by the dialog, the off-canvas and the popover alike |
1196
- | `.bb-common-popover--scrollable` | `.bb-popover__panel--scrollable` (the rest of `.bb-common-popover*` is unchanged) |
1197
- | `.bb-confirm__no` | **removed** — the cancel button is a plain `BbButton` with no class of its own. Restyle it through `no: { variant: … }` on the call, or through the root's `.bb-confirm--<variant>` modifier. `.bb-confirm__text` and `.bb-confirm__content` are unchanged and still the right targets for body copy. |
1192
+ | v2 | v3 |
1193
+ | ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1194
+ | `.bb-base-dialog` (+ `--deny-close --fullscreen --open`, `__header __title __body __body-content __footer`) | `.bb-dialog` / `.bb-dialog__*` — 1:1 on every one of those |
1195
+ | `.bb-base-dialog__close` / `__close-icon`, `.bb-offcanvas__close` / `__close-icon`, `.bb-popover__close` | `.bb-close-button` — one shared button, used by the dialog, the off-canvas and the popover alike |
1196
+ | `.bb-common-popover--scrollable` | `.bb-popover__panel--scrollable` (the rest of `.bb-common-popover*` is unchanged) |
1197
+ | `.bb-confirm__no` | **removed** — the cancel button is a plain `BbButton` with no class of its own. Restyle it through `cancel: { variant: … }` on the call, or through the root's `.bb-confirm--<variant>` modifier. `.bb-confirm__text` and `.bb-confirm__content` are unchanged and still the right targets for body copy. |
1198
1198
 
1199
1199
  **Tabs** — the whole tree was renamed, and v2's block name was `bb-tab`, not
1200
1200
  `bb-tabs`, so nothing of a v2 tab theme survives untouched:
@@ -1402,7 +1402,7 @@ Nothing here fails to compile — these change what existing code does.
1402
1402
  `resolve`/`reject` the dialog stayed up until you called `close()`. In v3 it
1403
1403
  defaults to `true`. ⚠ silent: the promise settles exactly as before, the
1404
1404
  dialog just disappears. A v2 flow that ran a request and then called
1405
- `close()` moves the request into `yes.onClick`: Yes spins and the dialog
1405
+ `close()` moves the request into `ok.onClick`: OK spins and the dialog
1406
1406
  closes when it settles (`ai/composables/useConfirm.md` § async work). Only
1407
1407
  a flow that shows further steps in the dialog passes `autoClose: false`.
1408
1408
  11. **Invalid enum-ish prop values** (`size`, `direction`, `BbSlider.labelMode`)
@@ -1956,8 +1956,8 @@ Nothing here fails to compile — these change what existing code does.
1956
1956
  62. **`useConfirm` with `returning: true` is typed with `false`** (after
1957
1957
  3.0.0-beta.53). A dismissal the user did not choose (a `duration` timeout,
1958
1958
  `dismissAll()`, a newer `confirm()`, an unmounted owner, or any implicit
1959
- dismiss under `dismissAsNo: false`) always resolved `false`, but the type
1960
- left it out when a `no.onClick` was given. Code that assigns the result to
1959
+ dismiss under `dismissAsCancel: false`) always resolved `false`, but the type
1960
+ left it out when a `cancel.onClick` was given. Code that assigns the result to
1961
1961
  the callback's own type now fails type-checking: handle `false`, e.g.
1962
1962
  `status.value = result || 'Unchanged'`. Runtime behaviour is unchanged.
1963
1963
  63. **The required asterisk is on by default** (after 3.0.0-beta.53). The
@@ -2056,7 +2056,7 @@ Nothing here fails to compile — these change what existing code does.
2056
2056
 
2057
2057
  74. **`confirm()` rejects unknown option keys** (after 3.0.0-beta.53). A
2058
2058
  misspelt or leftover key (`titel`, `varient`, `portalProps`) on the
2059
- message, on `yes` / `no` or on an action is a type error, also on a
2059
+ message, on `ok` / `cancel` or on an action is a type error, also on a
2060
2060
  pre-built message variable whose type carries extra keys. Pass only
2061
2061
  `BbConfirmMessage` fields.
2062
2062
 
@@ -2898,6 +2898,48 @@ nullValue }, BbTextarea: { nullValue } }`, same values (`'null'` /
2898
2898
  and neither does `--star` on a `BbRating` root. Vertical layouts
2899
2899
  are unchanged.
2900
2900
 
2901
+ 161. **Re-picking a date keeps it** (after 3.0.0-beta.71, BbCalendar,
2902
+ BbDatePicker, BbDatePickerInput). Clicking the selected date (week,
2903
+ month, year) of a single value used to clear it; it now keeps it, and
2904
+ clears only with `clearable`, new on BbCalendar and BbDatePicker
2905
+ (BbDatePickerInput's covers it too). `multiple` and `range` are
2906
+ unchanged.
2907
+
2908
+ 162. **BbRating clears with Space** (after 3.0.0-beta.71). On a
2909
+ `clearable` rating, Delete and Backspace no longer clear; Space on the
2910
+ selected star does, like a click on it. A double-click picks without
2911
+ clearing. Update hint copy that names Delete or Backspace.
2912
+
2913
+ 163. **A dropdown with no visible row hides its trigger** (after
2914
+ 3.0.0-beta.71, BbDropdown, `v-bb-dropdown`). When every row is
2915
+ `hidden`, `items` is empty, or a fetched group resolves all hidden,
2916
+ the menu never opens and the trigger drops its popup ARIA. The
2917
+ activator slot is not rendered; an `activator` element or a
2918
+ `v-bb-dropdown` host gets an inline `display: none` until rows
2919
+ return. Delete `v-if="items.length"` guards around triggers. Where
2920
+ the trigger must stay (a disabled button with a tooltip, a column
2921
+ placeholder) add `keep-activator` and style it from the slot's
2922
+ `empty`. A `contextMenu` surface is never hidden. Tests that opened
2923
+ an empty menu, or looked for its trigger, change.
2924
+
2925
+ 164. **BbTree branches are expandable by default** (after 3.0.0-beta.71).
2926
+ With `expandable` unset, a node with a child that is not `hidden` now
2927
+ gets `expandable: true` in its slot (it used to be `false` for every
2928
+ node), so a toggle gated on it shows on every branch. Delete
2929
+ `:expandable="(n) => !!n.children?.length"`: it is the default, and it
2930
+ still gave a toggle to a branch whose children are all hidden. A tree
2931
+ that relied on no toggles passes `:expandable="false"`.
2932
+
2933
+ 165. **`confirm()` takes `ok` / `cancel`** (after 3.0.0-beta.72). The
2934
+ options `yes` / `no` / `dismissAsNo` are `ok` / `cancel` /
2935
+ `dismissAsCancel`, and the `<BbConfirmPortal>` slot gives
2936
+ `{ ok, cancel, data }`. `ok` and `cancel` also take `true` (the default
2937
+ label). A confirm or toast action has no `icon` field: an icon-only
2938
+ button writes `text`, `'prepend:icon'` and `iconOnly: true`, the text
2939
+ being its accessible name. The old keys are a type error; in JS they are
2940
+ ignored and the default buttons show
2941
+ ([use-confirm](./components/use-confirm.md)).
2942
+
2901
2943
  ## 7. Class overrides → variants
2902
2944
 
2903
2945
  ### The v2 pattern to hunt down
@@ -596,7 +596,7 @@ removed.
596
596
  | `.bb-pagination__ellipsis` | `ellipsis` | BbPagination | the gap marker — keeps `bb-pagination__page` |
597
597
  | `.bb-table__select-icon` | `selectIcon` | BbTable | each selection checkbox / radio glyph and the select-all glyph |
598
598
  | `.bb-toast__action` | `action` | BbToast | each `actions` button |
599
- | `.bb-confirm__action` | `action` | BbConfirm | each footer button (yes, no, custom) |
599
+ | `.bb-confirm__action` | `action` | BbConfirm | each footer button (ok, cancel, custom) |
600
600
  | `.bb-dialog__close` | `close` | BbDialog, BbConfirm | the ✕ — keeps `bb-close-button` |
601
601
  | `.bb-offcanvas__close` | `close` | BbOffCanvas | the ✕ — keeps `bb-close-button` |
602
602
  | `.bb-dialog__sheet` | `sheet` | BbDialog, BbConfirm | the bottom sheet it opens as on a phone |
@@ -77,7 +77,7 @@ Never pre-map accessor-mode items into `{ label, value }` arrays: point `item-te
77
77
 
78
78
  1. **`{ label, value }` objects** (or `{ text, value }`): omit both props; the text is the own `label` (else `text`), the value the own `value`.
79
79
  2. **Primitive items** (`string[]`, `number[]`): omit both props; the value is the primitive itself. Label them with a function `item-text`.
80
- 3. **Dot paths** for nested objects: `item-text="profile.fullName"`, `item-value="profile.id"`.
80
+ 3. **Dot paths** for nested objects: `item-text="profile.fullName"`, `item-value="profile.id"`. On the selects and the choice groups a typo in a path is a type error, and under `strictVModel` the `v-model` ref must take the value the path reads.
81
81
  4. **Extractor functions** only when a path can't express it:
82
82
 
83
83
  ```vue
@@ -261,8 +261,9 @@ const items = [
261
261
  <template #activator="{ props }">
262
262
  <BbButton
263
263
  v-bind="props"
264
- aria-label="Invoice actions"
265
- icon="lucide:ellipsis-vertical"
264
+ text="Invoice actions"
265
+ icon-only
266
+ prepend:icon="lucide:ellipsis-vertical"
266
267
  variant="ghost"
267
268
  />
268
269
  </template>
@@ -163,7 +163,7 @@ Two axes, never mixed. The **name** says where; the **value** says what.
163
163
  such as `id` on a broadcast part duplicates; that is documented, not
164
164
  prevented.
165
165
  - **A slot replaces the node, and `pt` for that part with it.** Your own
166
- `#icon` markup is yours: put the class on it directly. `pt:icon` (from the
166
+ `#prepend:icon` markup is yours: put the class on it directly. `pt:icon` (from the
167
167
  instance, a scope or the global map) no longer has a node to land on.
168
168
  - **The words are camelCase; a template may write them kebab.** A two-word
169
169
  part or state is one camelCase word — `itemIcon`, `dayButton`, `hasValue`,
@@ -1010,7 +1010,7 @@ _Passthrough parts and states_ table in that component's contract
1010
1010
 
1011
1011
  | component | parts | states |
1012
1012
  | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1013
- | `BbAccordion` | `root`, `header`, `title`, `icon`, `panel` | `open` |
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
1016
  | `BbAvatar` | `root`, `icon` | — |
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "3.0.0-beta.71",
3
+ "version": "3.0.0-beta.73",
4
4
  "canon": "bb-canon/2",
5
5
  "folder": "inertia-helpers",
6
6
  "helpers": {
@@ -261,7 +261,7 @@
261
261
  },
262
262
  "files": {
263
263
  "messages.ts": {
264
- "sha256": "da39a86e896a4b969b7d15a0a81cfa2739be2bd2a413661e4b5cbdabc1111296",
264
+ "sha256": "e00fc8952af18af6072812a176dc93dc51299f4b2bf159a2850f214acac22715",
265
265
  "local": [],
266
266
  "packages": [
267
267
  "bitboss-ui",
@@ -270,12 +270,15 @@
270
270
  "typePackages": [],
271
271
  "published": {
272
272
  "bytes": [
273
- "da39a86e896a4b969b7d15a0a81cfa2739be2bd2a413661e4b5cbdabc1111296"
273
+ "da39a86e896a4b969b7d15a0a81cfa2739be2bd2a413661e4b5cbdabc1111296",
274
+ "e00fc8952af18af6072812a176dc93dc51299f4b2bf159a2850f214acac22715"
274
275
  ],
275
276
  "babel7": [
276
- "95180d195be333454b936a4a8aa0d1f07737ebfd99ca0906be567b3a81e89d49"
277
+ "95180d195be333454b936a4a8aa0d1f07737ebfd99ca0906be567b3a81e89d49",
278
+ "792d4e3cb2b43459d38f4f91aeb3098d4323eafdc53755dcaca300d071231160"
277
279
  ],
278
280
  "comments": [
281
+ "30d4d0688a9ab8e1",
279
282
  "30d4d0688a9ab8e1"
280
283
  ]
281
284
  }
@@ -325,7 +328,7 @@
325
328
  }
326
329
  },
327
330
  "useConfirmOnRouteLeave.ts": {
328
- "sha256": "e7951060217daee77bd349d4628081eb1416820b0ce521c8e2955517c860229d",
331
+ "sha256": "3f639be1badb007ee1faef3217af5f5fad6909b8551755a67f64c8c622dad30b",
329
332
  "local": [
330
333
  "messages.ts"
331
334
  ],
@@ -347,7 +350,8 @@
347
350
  "b25662a8675194ca2fe62e272f88a6a20c56377b1c3f4958a0f74bce5f68409a",
348
351
  "6c2cc07e8207c360fb296305f381a081b626f4ff50021de4b99e487452acaf55",
349
352
  "9f67146544d7b1db75997dce3a9483d9c23427b679da6f499886dd13f20f53c5",
350
- "e7951060217daee77bd349d4628081eb1416820b0ce521c8e2955517c860229d"
353
+ "e7951060217daee77bd349d4628081eb1416820b0ce521c8e2955517c860229d",
354
+ "3f639be1badb007ee1faef3217af5f5fad6909b8551755a67f64c8c622dad30b"
351
355
  ],
352
356
  "babel7": [
353
357
  "ade19572a6ecf2f3ef442148da5fefa09be779bd0f463cbadbc4e287cb93157d",
@@ -360,7 +364,8 @@
360
364
  "309080020fcd9db17b29c8483c59e11a535188f1a2ded9af67fa1da1a90f5507",
361
365
  "0eab9c418e635d05f1136de10f7a14cf74e03ff10159ee323701afcf056b50ae",
362
366
  "328e8787da87f129f69f66f792dfe0136ef657be4737b0936f63854265b2069d",
363
- "d70dcbb71a1b2606a403fda7fdceb8cd7e38ef488a365e1f848712a0c785444f"
367
+ "d70dcbb71a1b2606a403fda7fdceb8cd7e38ef488a365e1f848712a0c785444f",
368
+ "fbfa4928d76214ad37a5cbcb11f13bd729fe25730704ef3bdf074a1fc4305af8"
364
369
  ],
365
370
  "comments": [
366
371
  "2189e445a7604d9d",
@@ -373,6 +378,7 @@
373
378
  "39a811ea4484a0c7",
374
379
  "7828a0e06cf5bb76",
375
380
  "7828a0e06cf5bb76",
381
+ "af6b29e5b4e0968e",
376
382
  "af6b29e5b4e0968e"
377
383
  ]
378
384
  }
@@ -567,7 +573,7 @@
567
573
  }
568
574
  },
569
575
  "usePromiseForm.ts": {
570
- "sha256": "a0c6cb594d4333f680f61bf374234212a06fd70bceaf5532874d9205a196ea24",
576
+ "sha256": "8c3fff15c06e636dce4bdf31aa85041e336cfc203cefa4412e733b3c5aaf5576",
571
577
  "local": [
572
578
  "useLoading.ts",
573
579
  "usePromiseRouter.ts"
@@ -582,13 +588,15 @@
582
588
  "bb13bb773189f65c6b3602ec37e8f552f0ebed245625f1e8eee00c7fd2fce151",
583
589
  "c2bb7edd770dffd74779cac7ba53cd69149a19d2976bdf0a2e52a032750bf347",
584
590
  "28c84f3bc631dc60b6aa206e3b68ce38de87396e80b1c473b76c6334c76c29c2",
585
- "a0c6cb594d4333f680f61bf374234212a06fd70bceaf5532874d9205a196ea24"
591
+ "a0c6cb594d4333f680f61bf374234212a06fd70bceaf5532874d9205a196ea24",
592
+ "8c3fff15c06e636dce4bdf31aa85041e336cfc203cefa4412e733b3c5aaf5576"
586
593
  ],
587
594
  "babel7": [
588
595
  "d576df76e40f84d1801720c5727bcbba3755701f49ece96ee634885ad3988ff6",
589
596
  "4680bd3fec7c449632468fd0e6b82ae80c12b61d791f6407079edf558984ac7c",
590
597
  "a5301b0aedaeff800d3f9283985441de35d91c3c1909dd3620f5f36770075b07",
591
598
  "2c92ec780171372e0e03936840cf5f1b3ccdbb7b49ed7a8d90011ce0aa797f8d",
599
+ "0cb4c34ec0c81e10bd018cf4647a80ef995205330b8df0f1708ccf539eb48042",
592
600
  "0cb4c34ec0c81e10bd018cf4647a80ef995205330b8df0f1708ccf539eb48042"
593
601
  ],
594
602
  "comments": [
@@ -596,30 +604,35 @@
596
604
  "55f3c08fe0685fbc",
597
605
  "24961bc495c6d2ee",
598
606
  "20b2ab6811b26b54",
599
- "f169320a58b77cbe"
607
+ "f169320a58b77cbe",
608
+ "42b151d9759a7a85"
600
609
  ]
601
610
  }
602
611
  },
603
612
  "usePromiseRouter.ts": {
604
- "sha256": "67d7012383f9997c53338e4252e63f6f416e9f9d67d98af25d6b968c37bcb1ec",
613
+ "sha256": "d5a6726505b0938d713e6c513c48012dc8f4668ced1295954338743f029087db",
605
614
  "local": [
606
615
  "useLoading.ts"
607
616
  ],
608
617
  "packages": [
609
- "@inertiajs/vue3"
618
+ "@inertiajs/vue3",
619
+ "bitboss-ui"
610
620
  ],
611
621
  "typePackages": [
612
622
  "@inertiajs/core"
613
623
  ],
614
624
  "published": {
615
625
  "bytes": [
616
- "67d7012383f9997c53338e4252e63f6f416e9f9d67d98af25d6b968c37bcb1ec"
626
+ "67d7012383f9997c53338e4252e63f6f416e9f9d67d98af25d6b968c37bcb1ec",
627
+ "d5a6726505b0938d713e6c513c48012dc8f4668ced1295954338743f029087db"
617
628
  ],
618
629
  "babel7": [
619
- "50dd54ed17870ad4cea84e2ea11e9921c53cd2c0af006d3140029e4e434bd4a1"
630
+ "50dd54ed17870ad4cea84e2ea11e9921c53cd2c0af006d3140029e4e434bd4a1",
631
+ "2895452ab5790947c9381d17a7a7e4762275663da7c619cc8eaffe79b8f2d1ff"
620
632
  ],
621
633
  "comments": [
622
- "6f3cf9d7ab70b42a"
634
+ "6f3cf9d7ab70b42a",
635
+ "639497bb2175d061"
623
636
  ]
624
637
  }
625
638
  },
@@ -7,7 +7,7 @@ import { useBbConfig } from 'bitboss-ui';
7
7
  import { computed } from 'vue';
8
8
 
9
9
  export type HelperMessages = {
10
- leave: { title: string; text: string; yes: string; no: string };
10
+ leave: { title: string; text: string; ok: string; cancel: string };
11
11
  };
12
12
 
13
13
  export const messages: Record<string, HelperMessages> = {
@@ -15,8 +15,8 @@ export const messages: Record<string, HelperMessages> = {
15
15
  leave: {
16
16
  title: 'Unsaved changes',
17
17
  text: 'You have unsaved changes. Leave without saving?',
18
- yes: 'Discard changes',
19
- no: 'Keep editing',
18
+ ok: 'Discard changes',
19
+ cancel: 'Keep editing',
20
20
  },
21
21
  },
22
22
  };
@@ -32,8 +32,8 @@ type Options = {
32
32
  * or a full button config. Default words: `leave` in `messages.ts`, in the
33
33
  * library's `locale`; `variant: 'destructive'`.
34
34
  */
35
- yes?: BbConfirmMessage['yes'];
36
- no?: BbConfirmMessage['no'];
35
+ ok?: BbConfirmMessage['ok'];
36
+ cancel?: BbConfirmMessage['cancel'];
37
37
  variant?: BbConfirmMessage['variant'];
38
38
  /** The `BbDialog` stack the dialog joins (BbConfirm's `stack`). */
39
39
  stack?: BbConfirmMessage['stack'];
@@ -65,8 +65,8 @@ export const useConfirmOnRouteLeave = ({
65
65
  onLeave = () => true,
66
66
  title,
67
67
  text,
68
- yes,
69
- no,
68
+ ok,
69
+ cancel,
70
70
  variant = 'destructive',
71
71
  stack,
72
72
  }: Options = {}) => {
@@ -119,15 +119,15 @@ export const useConfirmOnRouteLeave = ({
119
119
  const confirmed = await confirm({
120
120
  title: title ?? words.title,
121
121
  text: text ?? words.text,
122
- yes: yes ?? words.yes,
123
- no: no ?? words.no,
122
+ ok: ok ?? words.ok,
123
+ cancel: cancel ?? words.cancel,
124
124
  variant,
125
125
  ...(stack && { stack }),
126
126
  });
127
127
  // "Keep editing" (or an `onLeave` that throws) ends the held visit
128
128
  // the way Inertia ends a cancelled one, so its own callbacks (a
129
129
  // form's processing state, a pending promise) settle.
130
- const cancel = () => {
130
+ const cancelVisit = () => {
131
131
  const callbacks = visit as {
132
132
  onCancel?: () => void;
133
133
  onFinish?: (visit: Visit) => void;
@@ -135,12 +135,12 @@ export const useConfirmOnRouteLeave = ({
135
135
  callbacks.onCancel?.();
136
136
  callbacks.onFinish?.({ ...visit, cancelled: true });
137
137
  };
138
- if (!confirmed) return cancel();
138
+ if (!confirmed) return cancelVisit();
139
139
 
140
140
  try {
141
141
  await onLeave(visit);
142
142
  } catch (error) {
143
- cancel();
143
+ cancelVisit();
144
144
  throw error;
145
145
  }
146
146
  // Re-sent as a plain visit: never as a prefetch or a background one,
@@ -164,7 +164,7 @@ export const useConfirmOnRouteLeave = ({
164
164
  });
165
165
  } catch (error) {
166
166
  // A re-send that throws before it starts finishes as cancelled.
167
- cancel();
167
+ cancelVisit();
168
168
  throw error;
169
169
  } finally {
170
170
  bypassNextVisit = false;
@@ -31,7 +31,7 @@ export const usePromiseForm = <T extends Record<string, FormValue>>(
31
31
  const { fn: send, loading: isSubmitting } = useLoading(
32
32
  (method: Method, url: string, options: Options = {}): Promise<boolean> =>
33
33
  // true: the server answered and the save went through. false: not
34
- // confirmed (cancelled, interrupted). Rejects with the error bag, or
34
+ // confirmed (cancelled, interrupted). Rejects with a BbValidationError, or
35
35
  // for an error page / a response that is not Inertia's
36
36
  // (usePromiseRouter.ts, `settleVisit`).
37
37
  settleVisit(
@@ -2,6 +2,7 @@
2
2
  import { useLoading } from './useLoading';
3
3
  import type { RequestPayload, VisitOptions } from '@inertiajs/core';
4
4
  import { router } from '@inertiajs/vue3';
5
+ import { BbValidationError } from 'bitboss-ui';
5
6
 
6
7
  type Method = 'get' | 'post' | 'put' | 'patch' | 'delete';
7
8
 
@@ -53,7 +54,8 @@ const sameRequest = (visit: Visit, config: NonNullable<RequestConfig>) =>
53
54
  * leaves with `onFinish` only).
54
55
  * - `false`: never sent (its `onBefore` or a `before` listener refused it),
55
56
  * cancelled, interrupted, or held by the leave guard and then kept.
56
- * - Rejects with the error bag on a validation error; with an `Error` on an
57
+ * - Rejects with a `BbValidationError` (the bag under `.errors`) on a
58
+ * validation error, which a `BbForm` `@submit` applies on its own; with an `Error` on an
57
59
  * error page (Inertia 3), a response that is not Inertia's (419, 423, an
58
60
  * HTML 500) or a network error; with the error a callback of yours threw.
59
61
  *
@@ -135,7 +137,10 @@ export const settleVisit = (
135
137
  const decide = () =>
136
138
  queueMicrotask(() => {
137
139
  if (settled || started > finished) return;
138
- if (answer && answer !== 'page') reject(answer.errors);
140
+ if (answer && answer !== 'page')
141
+ reject(
142
+ new BbValidationError(answer.errors as Record<string, unknown>)
143
+ );
139
144
  // An error page Inertia rendered (a 403 / 500 with `x-inertia`)
140
145
  // lands like a success: it is not a save.
141
146
  else if (failedStatus !== null && answer === 'page')
package/dist/ai/index.md CHANGED
@@ -110,7 +110,7 @@ Start from a recipe when building a whole page or flow — they encode the idiom
110
110
  ### Overlay
111
111
 
112
112
  - [BbColorPalette](./BbColorPalette.md) - Opens an anchored popover color palette for color picking interactions.
113
- - [BbConfirmPortal](./BbConfirmPortal.md) - Registers named slot content that confirm() renders via `portal`; slot `{ data, yes, no }`.
113
+ - [BbConfirmPortal](./BbConfirmPortal.md) - Registers named slot content that confirm() renders via `portal`; slot `{ data, ok, cancel }`.
114
114
  - [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.
115
115
  - [BbDialog](./BbDialog.md) - Presents modal dialogs; also the v-bb-dialog directive.
116
116
  - [BbDropdown](./BbDropdown.md) - Displays contextual action menus and menu content (includes the co-located BbDropdownGroup export, which is how a selectable group is bound).
@@ -189,7 +189,7 @@ Do not use these components directly in consumer code unless the user explicitly
189
189
  - [useBbOffCanvas](./composables/useBbOffCanvas.md) - Open, close and read a BbOffCanvas by id, with typed data, no v-model; the code twin of v-bb-off-canvas.
190
190
  - [useBbTable](./composables/useBbTable.md) - Drive and read a BbTable's state (selection, sort, column order, highlight, pagination) from anywhere by id — no prop drilling, no template refs.
191
191
  - [useBbTabs](./composables/useBbTabs.md) - Read and drive a BbTabs/BbTabsRoot group from anywhere by id — writable current tab, goTo/select, no template refs.
192
- - [useConfirm](./composables/useConfirm.md) - Promise-based confirm dialogs — await the user's yes/no, with yes/no button configs, async onClick busy states, and portal content. The plugin renders the <BbHost /> that shows them.
192
+ - [useConfirm](./composables/useConfirm.md) - Promise-based confirm dialogs — await the user's OK/Cancel, with ok/cancel button configs, async onClick busy states, and portal content. The plugin renders the <BbHost /> that shows them.
193
193
  - [useCountdown](./composables/useCountdown.md) - Reactive countdown timer with start, pause, reset, and formatted time output.
194
194
  - [useId](./composables/useId.md) - Generate a unique, hydration-safe DOM id (prefixed bb-ui-) for aria wiring in custom markup.
195
195
  - [useMobile](./composables/useMobile.md) - Reactive isMobile flag using the same viewport breakpoint the library's adaptive components use.
@@ -256,7 +256,7 @@ Do not use these components directly in consumer code unless the user explicitly
256
256
  - [Migration v2→v3: BbToast and toast()](./guides/migration/components/bb-toast.md) - Host placement becomes position with a corner-based value set; toast() options rewritten (variant, duration, actions, portal).
257
257
  - [Migration v2→v3: BbTooltip](./guides/migration/components/bb-tooltip.md) - timeout renamed to delay; theme replaced by typed variant; hideArrow is now a declared prop; block removed; modelValue is new.
258
258
  - [Migration v2→v3: BbTree](./guides/migration/components/bb-tree.md) - Item model rewritten — payload moves under meta, open becomes expanded, identifier becomes itemValue, expansion is a v-model.
259
- - [Migration v2→v3: confirm() / useConfirm](./guides/migration/components/use-confirm.md) - yesText/onYes/noText/onNo collapse into yes/no configs, actions becomes an array-or-false, theme→variant, timeout→duration, autoClose flips to default-true, labels are localized, footer buttons default md.
259
+ - [Migration v2→v3: confirm() / useConfirm](./guides/migration/components/use-confirm.md) - yes/yesText/onYes and no/noText/onNo collapse into ok/cancel configs, actions becomes an array-or-false, theme→variant, timeout→duration, autoClose flips to default-true, labels are localized, footer buttons default md.
260
260
  - [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.
261
261
  - [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.
262
262
  - [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.
@@ -34,11 +34,11 @@
34
34
  {"name":"hasErrors","type":"boolean","default":"false","description":"Define if the component should be in an error state. It usually attaches a CSS class for styling purposes."},
35
35
  {"name":"hasWarnings","type":"boolean","default":"false","description":"Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority."},
36
36
  {"name":"disabled","type":"boolean","default":"false","description":"Disables the component."},
37
- {"name":"block","type":"boolean","default":"undefined","description":"Displays the component as full width."},
38
37
  {"name":"text","type":"string","description":"Text content of the component."},
39
38
  {"name":"firstDayOfWeek","type":"0 | 1 | 2 | 3 | 4 | 5 | 6","default":"the locale's week start","description":"First day of the week (0 = Sunday … 6 = Saturday). Omitted, the active locale's week start: Monday for `it`, `de`, `fr`, `en-gb`…, Sunday for bare `en` (US) and `pt` (Brazil). Ignored under `type=\"week\"`: ISO weeks run Monday to Sunday, so a week grid always starts on Monday."},
40
39
  {"name":"autofocus","type":"Booleanish","description":"Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field."},
41
40
  {"name":"checked","type":"boolean","default":"undefined","description":"Defines the input as checked."},
41
+ {"name":"compact","type":"boolean","default":"undefined","description":"Compact density: the field uses the `-compact` twins of `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y`, so a `--bb-input-h` set on the component is ignored while it is on. Size a compact field with `--bb-input-h-compact` (and `--bb-input-py-compact`)."},
42
42
  {"name":"description","type":"string","description":"Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`."},
43
43
  {"name":"errors","type":"string | string[]","description":"Error messages under the field, a string or array, in an `aria-live=\"polite\"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus."},
44
44
  {"name":"formless","type":"boolean","default":"false","description":"Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a \"show advanced\" switch)."},
@@ -47,6 +47,7 @@
47
47
  {"name":"id","type":"string","description":"The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted."},
48
48
  {"name":"inputPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\"","default":"'start'","description":"Alignment of the input in its column. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},
49
49
  {"name":"labelPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\"","default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},
50
+ {"name":"layout","type":"Responsive<FieldLayout>","description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},
50
51
  {"name":"modelValue","type":"any","description":"Used by v-model. Can be any serializable type."},
51
52
  {"name":"name","type":"string","description":"Defines the name of the input."},
52
53
  {"name":"persistentHint","type":"boolean","default":"false","description":"Keeps the hint displayed."},
@@ -56,7 +57,6 @@
56
57
  {"name":"rules","type":"RuleExpression<any>","description":"vee-validate rules for this field. Only inside a `BbForm`."},
57
58
  {"name":"validationLabel","type":"string","description":"The field's name in validation messages (`{field}`): \"Email is not valid\". Defaults to the `label` (or `legend`), then \"This field\"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only."},
58
59
  {"name":"warnings","type":"string | string[]","description":"Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set."},
59
- {"name":"compact","type":"boolean","default":"undefined","description":"Compact density: the field uses the `-compact` twins of `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y`, so a `--bb-input-h` set on the component is ignored while it is on. Size a compact field with `--bb-input-h-compact` (and `--bb-input-py-compact`)."},
60
60
  {"name":"dependencies","type":"unknown[]","description":"Defines an array of dependencies that will trigger actions in the component upon change."},
61
61
  {"name":"depsDebounceTime","type":"number","description":"Timeout used to debounce response to changes to dependencies."},
62
62
  {"name":"emptyText","type":"string","description":"String displayed when there are no items to display."},
@@ -68,10 +68,10 @@
68
68
  {"name":"itemLabelAlign","type":"FieldCrossAlign","values":["center","top","bottom"],"description":"Vertical position of each option's label in its row. Omitted, it stays as it is."},
69
69
  {"name":"itemLayout","type":"FieldLayout","default":"'auto'","description":"How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`."},
70
70
  {"name":"itemProps","type":"BbOptionGroupItemProps<T>","description":"ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly."},
71
+ {"name":"itemReverse","type":"boolean","default":"undefined","description":"Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead."},
71
72
  {"name":"itemText","type":"ItemAccessor<T, string>","default":"own `label`, else `text`, else `JSON.stringify(item)`","description":"Defines a path that returns a property of the object to use as text or a function that returns a string.\n\nUnset: own `label`, else `text` (`{ label, value }` needs no accessor)."},
72
73
  {"name":"itemValue","type":"ItemAccessor<T>","default":"own `value`, else the whole item","description":"Defines a path that returns a property of the object to use as value or a function that returns any value.\n\nUnset: own `value`, even `null`."},
73
74
  {"name":"labelAlign","type":"FieldCrossAlign","values":["center","top","bottom"],"description":"Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`."},
74
- {"name":"layout","type":"Responsive<FieldLayout>","description":"How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`)."},
75
75
  {"name":"legendPosition","type":"\"end\" | \"start\" | \"center\" | \"left\" | \"right\"","default":"'start'","description":"Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction."},
76
76
  {"name":"loadingText","type":"string","description":"String displayed while items are being loaded."},
77
77
  {"name":"max","type":"number","description":"Maximum number of selected items."},
@@ -7,16 +7,18 @@
7
7
  "contract": "ai/BbAccordion.md",
8
8
  "source": "ai/source/BbAccordion.md",
9
9
  "props": [
10
+ {"name":"disabled","type":"boolean","default":"false","description":"The header does not toggle and says `aria-disabled` (it stays focusable); an open panel stays open."},
10
11
  {"name":"eager","type":"boolean","default":"false","description":"Renders the content at mount, while closed, instead of on the first open. Closed content is `inert` and `aria-hidden` either way."},
11
12
  {"name":"headingLevel","type":"1 | 2 | 3 | 4 | 5 | 6","description":"Wraps the header button in a heading of this level (`<h1>`–`<h6>`, the APG accordion shape) so it joins the page outline: under an `<h2>`, pass `3`. Its margins and font are reset. Omitted, no heading."},
12
13
  {"name":"id","type":"string","description":"The root's `id`; the header button's id (`<id>_header`) derives from it. Generated when omitted."},
13
- {"name":"modelValue","type":"boolean","default":"false","description":"Used by v-model to trigger opening / closing the collapsible. An accordion with no `v-model` starts closed."},
14
- {"name":"pt","type":"PtMap<BbAccordionPtPart, \"open\">","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
14
+ {"name":"modelValue","type":"any","default":"false","description":"Open (`true`) or closed. With `value`, the key a group of accordions shares: open while it equals `value`, `null` when none is. An accordion with no `v-model` starts closed. Open / closed, or with `value` the key a group of accordions shares: open while it equals `value`."},
15
+ {"name":"pt","type":"PtMap<BbAccordionPtPart, BbAccordionPtState>","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
15
16
  {"name":"title","type":"string","description":"The trigger's text, with a chevron at its end that turns when open, in the default look (padding, a hairline under the item). `#title` replaces the text only; `#header` replaces the whole trigger (no chevron, no default look)."},
16
- {"name":"transitionDuration","common":true}
17
+ {"name":"transitionDuration","common":true},
18
+ {"name":"value","type":"string | number","description":"This accordion's key in a group sharing one `v-model`: open while the model equals it; a click sets the model to it, or to `null` to close. One open at a time."}
17
19
  ],
18
20
  "events": [
19
- {"name":"update:modelValue","signature":"(value: boolean): void","description":"Emitted with the new value whenever `v-model` changes."}
21
+ {"name":"update:modelValue","signature":"(value: any): void","description":"Emitted with the new value whenever `v-model` changes."}
20
22
  ],
21
23
  "slots": [
22
24
  {"name":"default","type":"BbAccordionToggleSlotProps","fields":["open: boolean","toggle: () => void"],"description":"The collapsible body content shown when the accordion is open."},
@@ -25,7 +27,7 @@
25
27
  ],
26
28
  "exposed": [],
27
29
  "models": [
28
- {"name":"modelValue","type":"boolean | undefined"}
30
+ {"name":"modelValue","type":"any"}
29
31
  ],
30
32
  "pt": {
31
33
  "parts": [
@@ -36,6 +38,7 @@
36
38
  {"name":"panel","description":"The region the header controls (the ARIA accordion panel)."}
37
39
  ],
38
40
  "states": [
41
+ {"name":"disabled","description":"Component-wide: `disabled` is set."},
39
42
  {"name":"open","description":"Component-wide: the panel is open (follows `v-model`)."}
40
43
  ]
41
44
  },
@@ -44,6 +44,7 @@
44
44
  ],
45
45
  "unaligned": {
46
46
  "states": [
47
+ "disabled",
47
48
  "open"
48
49
  ]
49
50
  }
@@ -10,11 +10,12 @@
10
10
  {"name":"append:icon","type":"string","description":"Icon rendered after the label. On a `clearable` badge it shares the trailing slot with the clear button: the icon shows at rest and the clear button reveals over it on hover/focus."},
11
11
  {"name":"clearable","type":"boolean","default":"false","description":"Renders a trailing clear button and emits `click:clear` when pressed — turns the badge into a dismissible token (the pattern formerly served by `BbChip`)."},
12
12
  {"name":"clearableLabel","type":"string","description":"Accessible name of the clear button, whole: set, it is the name on any body (\"Remove the filter Deleted\"). Rarely needed: unset, the name is composed from the localized `badge.clearLabel` verb and the badge text (\"Remove Italy\"), or the verb alone when a `BbBadgeButton` owns the body."},
13
- {"name":"icon","type":"string","description":"Renders an icon-only badge. When set, `prepend:icon` / `append:icon` are ignored and the default slot becomes the badge's visually hidden accessible label — always provide it."},
14
- {"name":"loading","type":"boolean","default":"false","description":"Shows a spinner in place of the leftmost icon (`icon` or `prepend:icon`; the `append:icon` when it is the only one; else the leading slot), as `BbButton` does, with a hidden loading announcement."},
13
+ {"name":"iconOnly","type":"Responsive<boolean>","description":"Shows only the badge's icon (`prepend:icon` when it has both); the label (`text` or the slot) stays its visually hidden accessible name, so always write it. `true`, or per breakpoint: `{ default: true, md: false }`."},
14
+ {"name":"loading","type":"boolean","default":"false","description":"Shows a spinner in place of the leftmost icon (`prepend:icon`; the `append:icon` when it is the only one; else the leading slot), as `BbButton` does, with a hidden loading announcement."},
15
15
  {"name":"prepend:icon","type":"string","description":"Icon rendered before the label."},
16
16
  {"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"icon\", \"spinner\", \"text\", \"clear\"]; readonly states: readonly [\"activeLink\", \"exactActiveLink\", \"loading\"]; readonly wide: readonly [\"activeLink\", \"exactActiveLink\", \"loading\"]; readonly except: { readonly icon: readonly [\"loading\"]; }; readonly variant: { readonly names: readonly [\"primary\", \"secondary\", \"destructive\", \"outline\"]; readonly option: \"badgeVariants\"; }; }> & { text?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; spinner?: PtValue | undefined; clear?: PtValue | undefined; \"text:activeLink\"?: PtValue | undefined; \"text:exactActiveLink\"?: PtValue | undefined; \"text:loading\"?: PtValue | undefined; \"root:activeLink\"?: PtValue | undefined; \"root:exactActiveLink\"?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:activeLink\"?: PtValue | undefined; \"icon:exactActiveLink\"?: PtValue | undefined; \"spinner:activeLink\"?: PtValue | undefined; \"spinner:exactActiveLink\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"clear:activeLink\"?: PtValue | undefined; \"clear:exactActiveLink\"?: PtValue | undefined; \"clear:loading\"?: PtValue | undefined; } & { \"text:outline\"?: PtValue | undefined; \"text:primary\"?: PtValue | undefined; \"text:destructive\"?: PtValue | undefined; \"root:outline\"?: PtValue | undefined; \"root:primary\"?: PtValue | undefined; \"root:destructive\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"icon:primary\"?: PtValue | undefined; \"icon:destructive\"?: PtValue | undefined; \"text:secondary\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:primary\"?: PtValue | undefined; \"spinner:destructive\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"clear:outline\"?: PtValue | undefined; \"clear:primary\"?: PtValue | undefined; \"clear:destructive\"?: PtValue | undefined; \"clear:secondary\"?: PtValue | undefined; })","description":"Passthrough, object form: `{ icon: '…', 'icon:loading': '…' }` — the same keys as the `pt:*` attributes without the prefix. Parts: `root`, `icon`, `spinner`, `text`, `clear`. States: `loading` and the registered variants (an app's own included)."},
17
- {"name":"size","type":"keyof Sizes","default":"'md'","values":["xs","sm","md","lg","xl","2xl"],"description":"Preset size of the badge."},
17
+ {"name":"size","type":"Responsive<keyof Sizes>","default":"'md'","description":"Preset size of the badge: one size, or per breakpoint (`{ default: 'sm', lg: 'md' }`), as on `BbButton`."},
18
+ {"name":"text","type":"string","description":"The label, when the default slot is empty (the slot wins), as on `BbButton`."},
18
19
  {"name":"variant","type":"BadgeVariantType","default":"'primary'","values":["outline","primary","destructive","secondary","none"],"description":"Visual variant: `primary`, `secondary`, `destructive`, or `outline`. Status colours are a registration (vite plugin `components.BbBadge.variants`, the `soft-*` palette in design-language.md) styled as `.bb-badge--<variant>`. `'none'` renders no variant class: set `--bg` / `--fg` on the element."}
19
20
  ],
20
21
  "events": [
@@ -22,9 +23,8 @@
22
23
  ],
23
24
  "slots": [
24
25
  {"name":"append:icon","type":"BbBadgeIconSlotProps","fields":["activeLink: boolean","exactActiveLink: boolean","loading: boolean"],"description":"The trailing icon, replacing `append:icon`; inside the `icon` part."},
25
- {"name":"default","type":"object","description":"The badge's label content. When `icon` is set this becomes the visually hidden accessible label. Render a `BbBadgeButton` here to make the badge body interactive (the wrapper stays a passive `<span>`)."},
26
- {"name":"icon","type":"BbBadgeIconSlotProps","fields":["activeLink: boolean","exactActiveLink: boolean","loading: boolean"],"description":"The glyph of an icon-only badge, replacing the `icon` prop. Renders inside the `icon` part: `pt:icon`, `--icon-size` and the loading spinner apply."},
27
- {"name":"prepend:icon","type":"BbBadgeIconSlotProps","fields":["activeLink: boolean","exactActiveLink: boolean","loading: boolean"],"description":"The leading icon, replacing `prepend:icon`; inside the `icon` part."}
26
+ {"name":"default","type":"object","description":"The badge's label content. With `icon-only` this becomes the visually hidden accessible label. Render a `BbBadgeButton` here to make the badge body interactive (the wrapper stays a passive `<span>`)."},
27
+ {"name":"prepend:icon","type":"BbBadgeIconSlotProps","fields":["activeLink: boolean","exactActiveLink: boolean","loading: boolean"],"description":"The leading icon, replacing `prepend:icon` (the one `icon-only` shows). Renders inside the `icon` part: `pt:icon`, `--icon-size` and the loading spinner apply."}
28
28
  ],
29
29
  "exposed": [],
30
30
  "models": [],
@@ -51,6 +51,7 @@
51
51
  ],
52
52
  "config": "size, variant, variants",
53
53
  "types": [
54
- {"name":"BadgeVariantType","usedAs":["prop variant"],"definition":"type BadgeVariantType = BadgeVariantFromRegistry | 'none';","values":["primary","secondary","destructive","outline","none"],"extensibleVia":"BadgeVariantRegistry"}
54
+ {"name":"BadgeVariantType","usedAs":["prop variant"],"definition":"type BadgeVariantType = BadgeVariantFromRegistry | 'none';","values":["primary","secondary","destructive","outline","none"],"extensibleVia":"BadgeVariantRegistry"},
55
+ {"name":"Responsive","usedAs":["prop iconOnly","prop size"],"definition":"type Responsive<V> = V | Partial<Record<Breakpoint | 'default', V>>;"}
55
56
  ]
56
57
  }