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
@@ -154,7 +154,8 @@ under it.
154
154
  <header class="page-shell__sidebar-chrome">
155
155
  <BbButton
156
156
  v-if="shell.depth.value > 1"
157
- icon="lucide:arrow-left"
157
+ icon-only
158
+ prepend:icon="lucide:arrow-left"
158
159
  size="sm"
159
160
  variant="ghost"
160
161
  @click="shell.pop"
@@ -170,7 +171,8 @@ under it.
170
171
  </h2>
171
172
  <span v-else class="page-shell__sidebar-spacer" />
172
173
  <BbButton
173
- icon="lucide:x"
174
+ icon-only
175
+ prepend:icon="lucide:x"
174
176
  size="sm"
175
177
  variant="ghost"
176
178
  @click="shell.close"
@@ -753,7 +755,7 @@ read once. Default to a **topbar affordance**: a keyboard icon in
753
755
  ```vue
754
756
  <BbPopover>
755
757
  <template #activator="{ props }">
756
- <BbButton v-bind="props" aria-label="Keyboard shortcuts" icon="lucide:keyboard" size="sm" variant="ghost" />
758
+ <BbButton v-bind="props" text="Keyboard shortcuts" icon-only prepend:icon="lucide:keyboard" size="sm" variant="ghost" />
757
759
  </template>
758
760
  <dl class="shortcuts">…</dl>
759
761
  </BbPopover>
@@ -652,8 +652,8 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
652
652
  variant: 'destructive',
653
653
  title: 'Dismiss onboarding',
654
654
  text: 'Hide the setup checklist for everyone in this workspace? Unfinished steps stay available under Settings → Setup.',
655
- yes: 'Dismiss',
656
- no: 'Keep it',
655
+ ok: 'Dismiss',
656
+ cancel: 'Keep it',
657
657
  });
658
658
  if (!ok) return;
659
659
  // A full visit, not a partial reload: the server redirects to the
@@ -1110,7 +1110,7 @@ const ctx = useOnboardingWorkspace();
1110
1110
 
1111
1111
  <script setup lang="ts">
1112
1112
  import { ref } from 'vue';
1113
- import { BbButton, BbSelect, BbTag } from 'bitboss-ui';
1113
+ import { BbButton, BbSelect, BbTag, BbValidationError } from 'bitboss-ui';
1114
1114
  import { useOnboardingWorkspace } from './context';
1115
1115
  import type { InviteRole } from '@/types';
1116
1116
 
@@ -1148,9 +1148,11 @@ const send = async () => {
1148
1148
  // false: the visit was cancelled; keep what was typed.
1149
1149
  if (await ctx.sendInvites(emails.value, role.value)) emails.value = [];
1150
1150
  } catch (errors) {
1151
- // Server-side (422) validation lands here as Laravel's field-keyed
1152
- // error bag — usePromiseForm rejects with it unchanged.
1153
- const bag = errors as Record<string, string | string[]>;
1151
+ // Server-side (422) validation lands here as a BbValidationError
1152
+ // carrying Laravel's field-keyed error bag.
1153
+ const bag = (
1154
+ errors instanceof BbValidationError ? errors.errors : {}
1155
+ ) as Record<string, string | string[] | undefined>;
1154
1156
  const message = bag.emails ?? bag.role;
1155
1157
  inviteError.value = Array.isArray(message)
1156
1158
  ? message[0]
@@ -1213,7 +1215,13 @@ const send = async () => {
1213
1215
 
1214
1216
  <script setup lang="ts">
1215
1217
  import { reactive, ref } from 'vue';
1216
- import { BbButton, BbForm, BbIcon, BbTextInput } from 'bitboss-ui';
1218
+ import {
1219
+ BbButton,
1220
+ BbForm,
1221
+ BbIcon,
1222
+ BbTextInput,
1223
+ BbValidationError,
1224
+ } from 'bitboss-ui';
1217
1225
  import { useOnboardingWorkspace } from './context';
1218
1226
 
1219
1227
  const ctx = useOnboardingWorkspace();
@@ -1235,9 +1243,11 @@ const submit = async () => {
1235
1243
  try {
1236
1244
  await ctx.createProject({ name: draft.name, client: draft.client ?? '' });
1237
1245
  } catch (errors) {
1238
- // Server-side (422) validation lands here as Laravel's field-keyed
1239
- // error bag — usePromiseForm rejects with it unchanged.
1240
- const bag = errors as Record<string, string | string[]>;
1246
+ // Server-side (422) validation lands here as a BbValidationError
1247
+ // carrying Laravel's field-keyed error bag.
1248
+ const bag = (
1249
+ errors instanceof BbValidationError ? errors.errors : {}
1250
+ ) as Record<string, string | string[] | undefined>;
1241
1251
  const message = bag.name ?? bag.client;
1242
1252
  nameError.value = Array.isArray(message)
1243
1253
  ? message[0]
@@ -1326,10 +1336,11 @@ const submit = async () => {
1326
1336
  >
1327
1337
  </span>
1328
1338
  <BbButton
1329
- aria-label="Remove selected file"
1330
1339
  :disabled="ctx.importState.uploading"
1331
- icon="lucide:x"
1340
+ icon-only
1341
+ prepend:icon="lucide:x"
1332
1342
  size="sm"
1343
+ text="Remove selected file"
1333
1344
  variant="ghost"
1334
1345
  @click="() => (file = null)"
1335
1346
  />
@@ -500,15 +500,14 @@ export function useOwnershipAtlas(): OwnershipAtlasContext {
500
500
  text: ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all',
501
501
  delay: 400,
502
502
  }"
503
- :aria-label="
504
- ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all'
505
- "
506
- :icon="
503
+ icon-only
504
+ :prepend:icon="
507
505
  ctx.allExpandedOnPage.value
508
506
  ? 'lucide:chevrons-down-up'
509
507
  : 'lucide:chevrons-up-down'
510
508
  "
511
509
  size="sm"
510
+ :text="ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all'"
512
511
  variant="ghost"
513
512
  @click="ctx.toggleExpandAll"
514
513
  />
@@ -741,12 +740,15 @@ const { isMobile } = useMobile();
741
740
  * control in the actions column. On a phone Team and Region leave (the BbTable
742
741
  * guide's "hide columns, don't scroll"): four equal tracks at 390px would
743
742
  * break names mid-word. */
744
- const columns = computed<Array<BbTableColumn<Owner>>>(() => [
745
- { key: 'name', label: 'Owner' },
746
- { key: 'team', label: 'Team', hidden: isMobile.value },
747
- { key: 'region', label: 'Region', hidden: isMobile.value },
748
- { key: 'monthlyTotal', label: '$ / mo', align: 'right' },
749
- ]);
743
+ const columns = computed(
744
+ () =>
745
+ [
746
+ { key: 'name', label: 'Owner' },
747
+ { key: 'team', label: 'Team', hidden: isMobile.value },
748
+ { key: 'region', label: 'Region', hidden: isMobile.value },
749
+ { key: 'monthlyTotal', label: '$ / mo', align: 'right' },
750
+ ] satisfies Array<BbTableColumn<Owner>>
751
+ );
750
752
 
751
753
  const money = (value: number) =>
752
754
  new Intl.NumberFormat('en-US', {
@@ -896,12 +898,25 @@ const { isMobile } = useMobile();
896
898
  * columns that snap onto them hide too: a hidden parent column has no track
897
899
  * for a child cell to land on.
898
900
  */
899
- const columns = computed<Array<BbTableColumn<Holding>>>(() => [
900
- { key: 'name', label: 'Resource', snap: 'name' },
901
- { key: 'kind', label: 'Type', snap: 'team', hidden: isMobile.value },
902
- { key: 'status', label: 'Status', snap: 'region', hidden: isMobile.value },
903
- { key: 'monthlyCost', label: '$ / mo', align: 'right', snap: 'monthlyTotal' },
904
- ]);
901
+ const columns = computed(
902
+ () =>
903
+ [
904
+ { key: 'name', label: 'Resource', snap: 'name' },
905
+ { key: 'kind', label: 'Type', snap: 'team', hidden: isMobile.value },
906
+ {
907
+ key: 'status',
908
+ label: 'Status',
909
+ snap: 'region',
910
+ hidden: isMobile.value,
911
+ },
912
+ {
913
+ key: 'monthlyCost',
914
+ label: '$ / mo',
915
+ align: 'right',
916
+ snap: 'monthlyTotal',
917
+ },
918
+ ] satisfies Array<BbTableColumn<Holding>>
919
+ );
905
920
 
906
921
  const money = (value: number) =>
907
922
  value === 0
@@ -1041,9 +1056,10 @@ const kindOptions = (
1041
1056
  <div class="floating-bottom-panel__right flex items-center gap-1">
1042
1057
  <BbButton
1043
1058
  v-bb-tooltip="{ text: 'Clear selection', delay: 400 }"
1044
- aria-label="Clear selection"
1045
- icon="lucide:x"
1059
+ icon-only
1060
+ prepend:icon="lucide:x"
1046
1061
  size="sm"
1062
+ text="Clear selection"
1047
1063
  variant="ghost"
1048
1064
  @click="ctx.table.resetSelection"
1049
1065
  />
@@ -603,8 +603,8 @@ export function provideInvoiceForm(): InvoiceFormContext {
603
603
  variant: 'destructive',
604
604
  title: 'Delete invoice',
605
605
  text: `Delete ${invoiceNumber.value}? This cannot be undone.`,
606
- yes: 'Delete',
607
- no: 'Cancel',
606
+ ok: 'Delete',
607
+ cancel: 'Cancel',
608
608
  });
609
609
  if (!ok) return;
610
610
  if (!(await orToast(remove(submitUrl())))) return;
@@ -1032,7 +1032,8 @@ const currency = new Intl.NumberFormat('en-US', {
1032
1032
 
1033
1033
  <div class="flex shrink-0 items-center gap-1">
1034
1034
  <BbButton
1035
- icon="lucide:copy"
1035
+ icon-only
1036
+ prepend:icon="lucide:copy"
1036
1037
  size="sm"
1037
1038
  variant="ghost"
1038
1039
  @click="() => ctx.duplicateLineItem(line)"
@@ -1040,7 +1041,8 @@ const currency = new Intl.NumberFormat('en-US', {
1040
1041
  Duplicate line
1041
1042
  </BbButton>
1042
1043
  <BbButton
1043
- icon="lucide:trash-2"
1044
+ icon-only
1045
+ prepend:icon="lucide:trash-2"
1044
1046
  size="sm"
1045
1047
  variant="ghost"
1046
1048
  @click="() => ctx.removeLineItem(line)"
@@ -1182,9 +1184,10 @@ const revert = () => {
1182
1184
  doesn't commit/unmount before the click lands. -->
1183
1185
  <template #prepend:outer="{ decrease }">
1184
1186
  <BbButton
1185
- aria-label="Decrease quantity"
1186
- icon="lucide:minus"
1187
+ icon-only
1188
+ prepend:icon="lucide:minus"
1187
1189
  size="xs"
1190
+ text="Decrease quantity"
1188
1191
  variant="ghost"
1189
1192
  @click="decrease"
1190
1193
  @mousedown.prevent
@@ -1192,9 +1195,10 @@ const revert = () => {
1192
1195
  </template>
1193
1196
  <template #append:outer="{ increase }">
1194
1197
  <BbButton
1195
- aria-label="Increase quantity"
1196
- icon="lucide:plus"
1198
+ icon-only
1199
+ prepend:icon="lucide:plus"
1197
1200
  size="xs"
1201
+ text="Increase quantity"
1198
1202
  variant="ghost"
1199
1203
  @click="increase"
1200
1204
  @mousedown.prevent
@@ -483,8 +483,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
483
483
  variant: 'destructive',
484
484
  title: 'Delete invoice',
485
485
  text: `Delete ${invoice.number}? This cannot be undone.`,
486
- yes: 'Delete',
487
- no: 'Cancel',
486
+ ok: 'Delete',
487
+ cancel: 'Cancel',
488
488
  });
489
489
  if (!ok) return;
490
490
  if (!(await orToast(remove(`/invoices/${invoice.id}`)))) return;
@@ -535,8 +535,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
535
535
  variant: 'destructive',
536
536
  title: 'Archive invoices',
537
537
  text: `Archive ${count} invoices? They move out of every tab except Archived.`,
538
- yes: 'Archive',
539
- no: 'Cancel',
538
+ ok: 'Archive',
539
+ cancel: 'Cancel',
540
540
  });
541
541
  if (!ok) return;
542
542
  if (!(await orToast(patch('/invoices/bulk/archive', bulkPayload()))))
@@ -1417,7 +1417,13 @@ const pillLabel = computed(() =>
1417
1417
  ]"
1418
1418
  >
1419
1419
  <template #activator="{ props }">
1420
- <BbButton v-bind="props" icon="lucide:ellipsis" size="sm" variant="ghost">
1420
+ <BbButton
1421
+ v-bind="props"
1422
+ icon-only
1423
+ prepend:icon="lucide:ellipsis"
1424
+ size="sm"
1425
+ variant="ghost"
1426
+ >
1421
1427
  Invoice actions
1422
1428
  </BbButton>
1423
1429
  </template>
@@ -1467,9 +1473,10 @@ const ctx = useInvoicesWorkspace();
1467
1473
  >Archive</BbButton
1468
1474
  >
1469
1475
  <BbButton
1470
- aria-label="Clear selection"
1471
- icon="lucide:x"
1476
+ icon-only
1477
+ prepend:icon="lucide:x"
1472
1478
  size="sm"
1479
+ text="Clear selection"
1473
1480
  variant="ghost"
1474
1481
  @click="ctx.table.resetSelection"
1475
1482
  />
@@ -225,7 +225,12 @@ import {
225
225
  type Ref,
226
226
  } from 'vue';
227
227
  import { useEventListener } from '@vueuse/core';
228
- import { useBbDialog, useConfirm, useToast } from 'bitboss-ui';
228
+ import {
229
+ BbValidationError,
230
+ useBbDialog,
231
+ useConfirm,
232
+ useToast,
233
+ } from 'bitboss-ui';
229
234
  import { useConfirmOnRouteLeave } from '@/composables/inertia-helpers/useConfirmOnRouteLeave';
230
235
  import { useProp } from '@/composables/inertia-helpers/useProp';
231
236
  import type {
@@ -261,7 +266,7 @@ export type ServerErrors = Record<string, string | string[]> | null;
261
266
 
262
267
  /** The error bag of a rejected visit; an `Error` (no Inertia answer) has none. */
263
268
  const bagOf = (error: unknown): ServerErrors =>
264
- error instanceof Error ? null : (error as ServerErrors);
269
+ error instanceof BbValidationError ? (error.errors as ServerErrors) : null;
265
270
 
266
271
  export const ROLE_OPTIONS: Array<{
267
272
  value: InvitableRole;
@@ -674,8 +679,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
674
679
  text: invited
675
680
  ? `The link sent to ${member.email} stops working. You can invite them again later.`
676
681
  : `${member.name} loses access to Fennel & Hart immediately. Invoices they created stay.`,
677
- yes: invited ? 'Revoke invitation' : 'Remove member',
678
- no: 'Cancel',
682
+ ok: invited ? 'Revoke invitation' : 'Remove member',
683
+ cancel: 'Cancel',
679
684
  });
680
685
  if (!ok) return;
681
686
  if (
@@ -699,8 +704,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
699
704
  variant: 'destructive',
700
705
  title: `Make ${member.name} the owner`,
701
706
  text: `${member.name} gets full control of Fennel & Hart, including deleting it. You stay on as an admin, and only the new owner can undo this.`,
702
- yes: 'Transfer ownership',
703
- no: 'Cancel',
707
+ ok: 'Transfer ownership',
708
+ cancel: 'Cancel',
704
709
  });
705
710
  if (!ok) return;
706
711
  if (
@@ -744,8 +749,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
744
749
  variant: 'destructive',
745
750
  title: `Revoke ${apiKey.name}`,
746
751
  text: `Requests signed with ${apiKey.preview} start failing immediately. This cannot be undone.`,
747
- yes: 'Revoke key',
748
- no: 'Cancel',
752
+ ok: 'Revoke key',
753
+ cancel: 'Cancel',
749
754
  });
750
755
  if (!ok) return;
751
756
  if (
@@ -1829,31 +1834,34 @@ const seatsLeft = computed(() =>
1829
1834
 
1830
1835
  // Rank the columns: identity + role stay on a phone; activity folds into the
1831
1836
  // identity cell (the BbTable guide's "hide columns, don't scroll").
1832
- const columns = computed<Array<BbTableColumn<WorkspaceMember>>>(() => [
1833
- // On a phone the identity track may shrink (long emails ellipse) instead of
1834
- // pushing the row menu off screen.
1835
- {
1836
- key: 'name',
1837
- label: 'Member',
1838
- skeleton: 'avatar-text',
1839
- width: isMobile.value ? '1fr' : undefined,
1840
- // The identity cell may shrink below its content, so a long email
1841
- // ellipses instead of widening the track.
1842
- tdClass: 'min-w-0 overflow-hidden',
1843
- },
1844
- {
1845
- key: 'role',
1846
- label: 'Role',
1847
- width: isMobile.value ? undefined : '10rem',
1848
- skeleton: 'badge',
1849
- },
1850
- {
1851
- key: 'lastActiveAt',
1852
- label: 'Last active',
1853
- width: '9rem',
1854
- hidden: isMobile.value,
1855
- },
1856
- ]);
1837
+ const columns = computed(
1838
+ () =>
1839
+ [
1840
+ // On a phone the identity track may shrink (long emails ellipse) instead of
1841
+ // pushing the row menu off screen.
1842
+ {
1843
+ key: 'name',
1844
+ label: 'Member',
1845
+ skeleton: 'avatar-text',
1846
+ width: isMobile.value ? '1fr' : undefined,
1847
+ // The identity cell may shrink below its content, so a long email
1848
+ // ellipses instead of widening the track.
1849
+ tdClass: 'min-w-0 overflow-hidden',
1850
+ },
1851
+ {
1852
+ key: 'role',
1853
+ label: 'Role',
1854
+ width: isMobile.value ? undefined : '10rem',
1855
+ skeleton: 'badge',
1856
+ },
1857
+ {
1858
+ key: 'lastActiveAt',
1859
+ label: 'Last active',
1860
+ width: '9rem',
1861
+ hidden: isMobile.value,
1862
+ },
1863
+ ] satisfies Array<BbTableColumn<WorkspaceMember>>
1864
+ );
1857
1865
 
1858
1866
  const activity = (member: WorkspaceMember) =>
1859
1867
  member.status === 'invited'
@@ -1936,11 +1944,12 @@ The row menu (v-bb-dropdown).
1936
1944
  <!-- The row's "…" menu (resend, copy, transfer, remove). -->
1937
1945
  <template>
1938
1946
  <!-- A plain items menu on a trigger we already have: the directive, not a
1939
- BbDropdown wrapper. The owner and you get no menu at all. -->
1947
+ BbDropdown wrapper. The owner and you get no menu: with no rows the
1948
+ directive hides the button itself. -->
1940
1949
  <BbButton
1941
- v-if="items.length"
1942
1950
  v-bb-dropdown:bottom-end="{ items, width: 220 }"
1943
- icon="lucide:ellipsis"
1951
+ icon-only
1952
+ prepend:icon="lucide:ellipsis"
1944
1953
  size="sm"
1945
1954
  variant="ghost"
1946
1955
  >
@@ -2307,24 +2316,27 @@ const INVOICE_BADGE: Record<
2307
2316
  refunded: { label: 'Refunded', variant: 'soft-gray' },
2308
2317
  };
2309
2318
 
2310
- const columns = computed<Array<BbTableColumn<BillingInvoice>>>(() => [
2311
- { key: 'number', label: 'Invoice' },
2312
- {
2313
- key: 'date',
2314
- label: 'Date',
2315
- formatter: (date) => formatDate(String(date)),
2316
- hidden: isMobile.value,
2317
- },
2318
- {
2319
- key: 'amount',
2320
- label: 'Amount',
2321
- align: 'right',
2322
- formatter: (amount) =>
2323
- formatMoney(Number(amount), ctx.billing.value?.currency ?? 'EUR'),
2324
- tdClass: 'tabular-nums',
2325
- },
2326
- { key: 'status', label: 'Status', skeleton: 'badge', width: '7rem' },
2327
- ]);
2319
+ const columns = computed(
2320
+ () =>
2321
+ [
2322
+ { key: 'number', label: 'Invoice' },
2323
+ {
2324
+ key: 'date',
2325
+ label: 'Date',
2326
+ formatter: (date) => formatDate(String(date)),
2327
+ hidden: isMobile.value,
2328
+ },
2329
+ {
2330
+ key: 'amount',
2331
+ label: 'Amount',
2332
+ align: 'right',
2333
+ formatter: (amount) =>
2334
+ formatMoney(Number(amount), ctx.billing.value?.currency ?? 'EUR'),
2335
+ tdClass: 'tabular-nums',
2336
+ },
2337
+ { key: 'status', label: 'Status', skeleton: 'badge', width: '7rem' },
2338
+ ] satisfies Array<BbTableColumn<BillingInvoice>>
2339
+ );
2328
2340
  </script>
2329
2341
  ```
2330
2342
 
@@ -2462,12 +2474,15 @@ const SCOPE_BADGE: Record<
2462
2474
  admin: { label: 'Full access', variant: 'soft-amber' },
2463
2475
  };
2464
2476
 
2465
- const columns = computed<Array<BbTableColumn<ApiKey>>>(() => [
2466
- { key: 'name', label: 'Key' },
2467
- { key: 'scope', label: 'Access', skeleton: 'badge', width: '9rem' },
2468
- { key: 'createdAt', label: 'Created', hidden: isMobile.value },
2469
- { key: 'lastUsedAt', label: 'Last used', hidden: isMobile.value },
2470
- ]);
2477
+ const columns = computed(
2478
+ () =>
2479
+ [
2480
+ { key: 'name', label: 'Key' },
2481
+ { key: 'scope', label: 'Access', skeleton: 'badge', width: '9rem' },
2482
+ { key: 'createdAt', label: 'Created', hidden: isMobile.value },
2483
+ { key: 'lastUsedAt', label: 'Last used', hidden: isMobile.value },
2484
+ ] satisfies Array<BbTableColumn<ApiKey>>
2485
+ );
2471
2486
  </script>
2472
2487
  ```
2473
2488
 
@@ -532,8 +532,8 @@ export function provideUploadCenter(): UploadCenterContext {
532
532
  variant: 'destructive',
533
533
  title: 'Remove receipt',
534
534
  text: `Remove ${receipt.filename}? The file is deleted and cannot be recovered.`,
535
- yes: 'Remove',
536
- no: 'Cancel',
535
+ ok: 'Remove',
536
+ cancel: 'Cancel',
537
537
  });
538
538
  if (!ok) return false;
539
539
  if (!(await orToast(remove(`/receipts/${receipt.id}`)))) return false;
@@ -583,8 +583,8 @@ export function provideUploadCenter(): UploadCenterContext {
583
583
  variant: 'destructive',
584
584
  title: 'Remove receipts',
585
585
  text: `Remove ${count} receipts? Their files are deleted and cannot be recovered.`,
586
- yes: 'Remove',
587
- no: 'Cancel',
586
+ ok: 'Remove',
587
+ cancel: 'Cancel',
588
588
  });
589
589
  if (!ok) return;
590
590
  if (!(await orToast(post('/receipts/bulk/delete', bulkPayload())))) return;
@@ -1449,9 +1449,10 @@ const commit = (value: string | string[] | null) => {
1449
1449
  <!-- Queue rows: one explicit remove (aborts the transfer). -->
1450
1450
  <BbButton
1451
1451
  v-if="row.kind === 'upload'"
1452
- :aria-label="`Remove ${row.filename} from the queue`"
1453
- icon="lucide:x"
1452
+ icon-only
1453
+ prepend:icon="lucide:x"
1454
1454
  size="sm"
1455
+ :text="`Remove ${row.filename} from the queue`"
1455
1456
  variant="ghost"
1456
1457
  @click="() => ctx.removeUpload(row.id)"
1457
1458
  />
@@ -1459,7 +1460,13 @@ const commit = (value: string | string[] | null) => {
1459
1460
  <!-- Server receipts: contextual dropdown, entries vary by status. -->
1460
1461
  <BbDropdown v-else :items="items">
1461
1462
  <template #activator="{ props }">
1462
- <BbButton v-bind="props" icon="lucide:ellipsis" size="sm" variant="ghost">
1463
+ <BbButton
1464
+ v-bind="props"
1465
+ icon-only
1466
+ prepend:icon="lucide:ellipsis"
1467
+ size="sm"
1468
+ variant="ghost"
1469
+ >
1463
1470
  Receipt actions
1464
1471
  </BbButton>
1465
1472
  </template>
@@ -1561,9 +1568,10 @@ const items = computed(() => {
1561
1568
  >
1562
1569
  <BbButton
1563
1570
  v-bb-tooltip="{ text: 'Clear selection', delay: 400 }"
1564
- aria-label="Clear selection"
1565
- icon="lucide:x"
1571
+ icon-only
1572
+ prepend:icon="lucide:x"
1566
1573
  size="sm"
1574
+ text="Clear selection"
1567
1575
  variant="ghost"
1568
1576
  @click="ctx.table.resetSelection"
1569
1577
  />
@@ -606,8 +606,8 @@ export function provideCampaignWizard(): CampaignWizardContext {
606
606
  variant: 'destructive',
607
607
  title: 'Discard draft',
608
608
  text: `Delete "${campaign.value?.name ?? 'this campaign'}" and everything entered so far? This cannot be undone.`,
609
- yes: 'Discard',
610
- no: 'Keep draft',
609
+ ok: 'Discard',
610
+ cancel: 'Keep draft',
611
611
  });
612
612
  if (!ok) return;
613
613
  discarded.value = true; // don't double-prompt via the leave guard