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
@@ -334,20 +334,22 @@ stays free while the buttons move in fixed increments.
334
334
  >
335
335
  <template #prepend="{ decrease, decreaseDisabled }">
336
336
  <BbButton
337
- aria-label="Decrease quantity"
338
337
  :disabled="decreaseDisabled"
339
- icon="lucide:minus"
338
+ icon-only
339
+ prepend:icon="lucide:minus"
340
340
  size="xs"
341
+ text="Decrease quantity"
341
342
  variant="ghost"
342
343
  @click="decrease"
343
344
  />
344
345
  </template>
345
346
  <template #append="{ increase, increaseDisabled }">
346
347
  <BbButton
347
- aria-label="Increase quantity"
348
348
  :disabled="increaseDisabled"
349
- icon="lucide:plus"
349
+ icon-only
350
+ prepend:icon="lucide:plus"
350
351
  size="xs"
352
+ text="Increase quantity"
351
353
  variant="ghost"
352
354
  @click="increase"
353
355
  />
@@ -990,7 +992,7 @@ Set these on the element, or on a class you put on it, to retune this component
990
992
 
991
993
  - `BbNumberInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-number-input__input`, `input` → `input.bb-number-input__input`, `controlAttrs` → `input`
992
994
  - `CommonField` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
993
- - `CommonFieldInput` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
995
+ - `CommonFieldInput` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
994
996
 
995
997
  ## See Also
996
998
 
@@ -266,8 +266,26 @@ before it paints.
266
266
  ### Header, footer and body
267
267
 
268
268
  A `title` prop renders the standard header (title text + close button) and wires
269
- `aria-labelledby` for you. Put content in the `default` slot and actions in the
270
- `footer` slot: slot the buttons straight in and the footer lays them out in a
269
+ `aria-labelledby` for you. Put content in the `default` slot. The footer
270
+ buttons are props, exactly as on `BbDialog` (BbDialog § Footer buttons):
271
+ `cancel`, `ok` (submits the one `BbForm` inside and completes with what the
272
+ save resolved; no form: completes with `data`) and `actions`, off unless
273
+ written, plus `@complete` for the panel's own completion hook:
274
+
275
+ ```vue
276
+ <BbOffCanvas
277
+ id="filters"
278
+ v-slot="{ data }"
279
+ cancel
280
+ ok="Apply"
281
+ title="Filters"
282
+ @complete="apply"
283
+ >
284
+ <BbCheckbox v-model="data.archived" label="Show archived" />
285
+ </BbOffCanvas>
286
+ ```
287
+
288
+ For anything else, the `footer` slot replaces them: slot the buttons straight in and the footer lays them out in a
271
289
  row at the end, 8px apart, wrapping (`class="me-auto"` pushes one to the
272
290
  start; a single wrapping `<div>` of yours stretches and keeps its own layout),
273
291
  the same footer as `BbDialog`'s. The body area scrolls internally when content
@@ -619,11 +637,11 @@ treatment in the list, and account/sign-out sit in the footer.
619
637
  </div>
620
638
  <BbButton
621
639
  v-bb-off-canvas="'mobile-nav'"
622
- aria-label="Open navigation"
623
- icon="lucide:menu"
640
+ icon-only
641
+ prepend:icon="lucide:menu"
624
642
  variant="outline"
625
643
  >
626
- Menu
644
+ Open navigation
627
645
  </BbButton>
628
646
  </div>
629
647
  <BbOffCanvas id="mobile-nav" side="left" size="xs" title="Acme Billing">
@@ -1023,8 +1041,8 @@ is kept).
1023
1041
  Edit the opening's `data` directly: every opening holds its own reactive copy
1024
1042
  of what it was given (arrays and plain objects copied all the way down), so
1025
1043
  Cancel is a real discard and reopening starts fresh, with no draft to reseed on
1026
- `@show`. Save hands the copy back with `complete(data)` (or
1027
- `complete(await save(data))` after a request). See
1044
+ `@show`. `ok` hands the copy back (or, with a form inside, what its save
1045
+ resolved). See
1028
1046
  [BbDialog § The data is a copy](./BbDialog.md#the-data-is-a-copy).
1029
1047
 
1030
1048
  **Cancel discards: the panel edits a copy**
@@ -1419,6 +1437,8 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1419
1437
  | Prop | Type | Default | Required | Description |
1420
1438
  | --- | --- | --- | --- | --- |
1421
1439
  | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `close`, `content`, `description`, `footer`, `header`, `root`, `title`. States: `fullscreen`, `open`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbOffCanvasProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
1440
+ | `actions` | `false \| readonly ActionButtonConfig[] \| undefined` | `undefined` | | Footer buttons replacing `ok` / `cancel`, in order: each runs its `onClick`, then completes the panel with `data`. `false`: none. |
1441
+ | `cancel` | `BbAction \| undefined` | | | The dismiss button, before `ok`: `true` (the locale's Cancel), a label, or a button config. Clicked: its `onClick`, then the panel closes as a dismissal (`reason: 'close'`). Unset: no button. |
1422
1442
  | `defaultData` | `Record<string, any> \| undefined` | | | What `data` is when an opening passes none (a create): an object, copied at once, so inputs bind `data.x` with no guard. An opening's data lays over it (`{ ...defaultData, ...row }`, one level). `reset()` restores its keys but keeps an edit's `id`; a close restores it. |
1423
1443
  | `description` | `string \| undefined` | | | One short line under the title, muted (the shadcn `DialogDescription` shape), and the only element `aria-describedby` points at. Keep it to a sentence; anything longer belongs in the body. |
1424
1444
  | `draggable` | `boolean \| undefined` | `false` | | Drag-to-dismiss: a ~50px swipe toward the exit edge (also from the body once it is scrolled to its edge), with a grab handle as the cue. A gesture that starts inside `data-bb-no-drag` never drags the panel. |
@@ -1429,6 +1449,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1429
1449
  | `id` | `string \| undefined` | | | Names the panel for `v-bb-off-canvas="'filters'"` and `useBbOffCanvas`, found nearest to the trigger, so two pages may reuse an id. Also the DOM `id`: one panel per id. |
1430
1450
  | `modelValue` | `boolean \| undefined` | `false` | | Used by v-model to open / close the panel. A panel with no `v-model` starts closed. |
1431
1451
  | `navigation` | `boolean \| undefined` | `false` | | Syncs the open state with the URL: opening writes `?<queryKey>=true`, closing removes it, a URL with the key opens the panel on load, and Back closes it (refused whenever Escape is). Template panels only; keep a record id in your own query. |
1452
+ | `ok` | `BbAction \| undefined` | | | The primary footer button: `true` (the locale's OK), a label, or a button config. Clicked: its `onClick`, else it submits the one `BbForm` inside, else `complete(data)`. Unset: no button. Config sets its look. |
1432
1453
  | `persistent` | `boolean \| undefined` | `false` | | Blocks closing by an outside click, Escape or drag-to-dismiss. The header close (×) STILL closes a persistent drawer, the documented escape hatch: add `hideClose` to remove it, or use `preventClose` to block every dismissal. Programmatic close still works. |
1433
1454
  | `preventClose` | `boolean \| undefined` | ``undefined` (follows a saving form inside)` | | Refuses every user close (backdrop, Escape, drag, the ✕, the slots' `close`) with the deny nudge; `v-model` still closes. Unset: locked while a `BbForm` inside saves (an async `@submit`). `true`: always; `false`: never, not even mid-save. Beside a form: `busy \|\| undefined`. |
1434
1455
  | `queryKey` | `string \| undefined` | `"offcanvas"` | | The query key `navigation` writes. |
@@ -1465,6 +1486,7 @@ States are listed in precedence order: when two are on at once and their entries
1465
1486
 
1466
1487
  ## Events
1467
1488
 
1489
+ - `complete` — `(value: any): void` — The panel completes (`ok`, `complete(value)`): the same value as the opener's `onComplete`, before it. Return a promise to keep the panel open and locked until it settles; `false` or a throw keeps it open.
1468
1490
  - `hidden` — `(): void` — Emitted after the close transition completes and the offcanvas is fully dismissed.
1469
1491
  - `hide` — `(result: BbDialogResult): void` — Emitted as soon as the panel starts to close (model becomes false), with the opening's result: the same object its promise settles with, `{ completed: true, value }` or `{ completed: false, reason }`.
1470
1492
  - `show` — `(): void` — Emitted as soon as the user triggers the open action (model becomes true).
@@ -301,11 +301,11 @@ import type { BbTableColumn } from 'bitboss-ui';
301
301
 
302
302
  type AuditEvent = { id: number; action: string; actor: string; time: string };
303
303
 
304
- const columns: Array<BbTableColumn<AuditEvent>> = [
304
+ const columns = [
305
305
  { key: 'action', label: 'Action' },
306
306
  { key: 'actor', label: 'Actor' },
307
307
  { key: 'time', label: 'When', align: 'right', width: 120 },
308
- ];
308
+ ] satisfies Array<BbTableColumn<AuditEvent>>;
309
309
 
310
310
  const actions = [
311
311
  'member.invited',
@@ -130,9 +130,10 @@ a record and closes itself on save via the `close` callback.
130
130
  <template #activator="{ props }">
131
131
  <BbButton
132
132
  v-bind="props"
133
- aria-label="Rename"
134
- icon="lucide:pencil"
133
+ icon-only
134
+ prepend:icon="lucide:pencil"
135
135
  size="sm"
136
+ text="Rename"
136
137
  variant="ghost"
137
138
  />
138
139
  </template>
@@ -310,9 +311,10 @@ dismissible.
310
311
  <template #activator="{ props }">
311
312
  <BbButton
312
313
  v-bind="props"
313
- aria-label="About retention period"
314
314
  class="shrink-0"
315
- icon="lucide:circle-question-mark"
315
+ icon-only
316
+ prepend:icon="lucide:circle-question-mark"
317
+ text="About retention period"
316
318
  variant="ghost"
317
319
  />
318
320
  </template>
@@ -412,9 +414,10 @@ is `any` per key, so `data.report.title` needs no cast.
412
414
  width: 260,
413
415
  offCanvasProps: { hideClose: true },
414
416
  }"
415
- aria-label="Rename"
416
- icon="lucide:pencil"
417
+ icon-only
418
+ prepend:icon="lucide:pencil"
417
419
  size="sm"
420
+ text="Rename"
418
421
  variant="ghost"
419
422
  />
420
423
  </li>
@@ -542,9 +545,10 @@ utility (BbButton centers labels by default).
542
545
  <template #activator="{ props }">
543
546
  <BbButton
544
547
  v-bind="props"
545
- aria-label="Notifications"
546
- icon="lucide:bell"
548
+ icon-only
549
+ prepend:icon="lucide:bell"
547
550
  size="sm"
551
+ text="Notifications"
548
552
  variant="ghost"
549
553
  />
550
554
  </template>
@@ -646,7 +650,9 @@ declare the ref):
646
650
 
647
651
  ```vue
648
652
  <template>
649
- <BbButton ref="triggerRef" icon="lucide:settings">Options</BbButton>
653
+ <BbButton ref="triggerRef" icon-only prepend:icon="lucide:settings"
654
+ >Options</BbButton
655
+ >
650
656
  <BbPopover :activator="triggerRef">
651
657
  <div class="grid gap-1">
652
658
  <BbSwitch v-model="notify" label="Email me" />
@@ -26,4 +26,4 @@
26
26
 
27
27
  - [BbPopover](./BbPopover.md) — Anchors floating content to reference elements; also the v-bb-popover directive (its body is a BbPopoverPortal or a component).
28
28
  - [BbHoverCardPortal](./BbHoverCardPortal.md) — Registers named slot content that `v-bb-hover-card="'name'"` (or `{ portal: 'name' }`) renders in the card; slot `{ data, close }`.
29
- - [BbConfirmPortal](./BbConfirmPortal.md) — Registers named slot content that confirm() renders via `portal`; slot `{ data, yes, no }`.
29
+ - [BbConfirmPortal](./BbConfirmPortal.md) — Registers named slot content that confirm() renders via `portal`; slot `{ data, ok, cancel }`.
@@ -90,7 +90,8 @@ included). An object with none of those fields falls back to
90
90
 
91
91
  Pass domain objects to `items` and resolve the display text and stored value
92
92
  with `item-text` / `item-value` — a dot-path or a function. The bound model
93
- holds only the mapped value (an id), which is what you persist. Primitive
93
+ holds only the mapped value (an id), which is what you persist. A typo in a path
94
+ is a type error; under `strictVModel` the `v-model` is typed from it. Primitive
94
95
  `items` (`string[]`) need no mapping and bind to the string itself. Values match
95
96
  by **deep equality**, and duplicate `item-value`s collapse to one button (first
96
97
  wins) — see the
@@ -229,9 +230,24 @@ const plan = ref<string | null>(null); // correct
229
230
  const plan = ref<string[]>([]); // wrong — radio groups don't bind arrays
230
231
  ```
231
232
 
232
- Picking an option **replaces** the value; a radio group can't be emptied by the
233
- user (there's no uncheck). If "none" is a legitimate answer, add an explicit
234
- option for it rather than expecting a cleared model.
233
+ Picking an option **replaces** the value. By default the user can't empty the
234
+ group. When "no answer" is a valid state, set `clearable`: a click on the
235
+ checked option, or **Space** on it, sets the model back to `null`, and a
236
+ double-click picks without clearing. It works under `required` too, and
237
+ validation then flags the empty value. If "none" is an answer of its own, add it
238
+ as an option instead.
239
+
240
+ **Optional yes/no question**
241
+
242
+ ```vue
243
+ <BbRadioGroup
244
+ v-model="state.smoker"
245
+ legend="Do you smoke?"
246
+ :items="['Yes', 'No']"
247
+ clearable
248
+ hint="Click your answer again to clear it."
249
+ />
250
+ ```
235
251
 
236
252
  ### Layout and density
237
253
 
@@ -540,6 +556,8 @@ value has to post under a known key in a native (non-JS) form submit.
540
556
  Down/Right to the next, Up/Left to the previous — wrapping around the ends.
541
557
  This is why a radio group is one exclusive choice: moving focus selects.
542
558
  - Disabled options are skipped during arrow navigation.
559
+ - With `clearable`, **Space** on the checked option clears it and keeps focus
560
+ there. Backspace and Delete do nothing.
543
561
 
544
562
  Keep the set short enough that arrow-cycling stays quick; past ~6 options prefer
545
563
  `BbSelect`.
@@ -950,8 +968,8 @@ for a preset that fits any row type (never `<any>`), not an imported
950
968
 
951
969
  - Don't seed the model with an array — radio groups bind a single value; seed
952
970
  `null`.
953
- - Don't expect the user to clear the selection; add an explicit "none" option if
954
- that's a valid answer.
971
+ - Don't expect the user to clear the selection unless the group is `clearable`;
972
+ when "none" is an answer of its own, add it as an option.
955
973
  - Don't reach for standalone `BbRadio` just to stack a few options in a box —
956
974
  that's this component (fieldset + roving focus + item mapping for free).
957
975
  - A `disabled` field on an item object does nothing — it is inert data. Gate
@@ -989,6 +1007,9 @@ for a preset that fits any row type (never `<any>`), not an imported
989
1007
  actually has copy. Messages _also_ render in an `aria-live="polite"` region,
990
1008
  so they are announced the moment they appear — announced on change, re-read
991
1009
  on focus. Keep messages meaningful, not decorative.
1010
+ - A `clearable` group adds a hidden "press Space to clear" hint to each radio's
1011
+ `aria-describedby` (key `radioGroup.clearHint`), dropped while `disabled` or
1012
+ `readonly`.
992
1013
  - `readonly` exposes `aria-readonly` on the `radiogroup` (the `radio` role does
993
1014
  not support it) and still submits; prefer it (with a nearby explanation) over
994
1015
  a silent `disabled`.
@@ -1004,6 +1025,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1004
1025
  | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `description`, `hint`, `icon`, `indicator`, `item`, `itemDescription`, `label`, `legend`, `list`, `message`, `root`. States: `disabled`, `errors`, `hasValue`, `line`, `loading`, `outline`, `pill`, `readonly`, `warnings`, `checked`, `focused`, `focusVisible`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbRadioGroupProps<Row>['pt']` (`BbRadioGroupProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
1005
1026
  | `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
1006
1027
  | `block` | `boolean \| undefined` | `undefined` | | The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`. |
1028
+ | `clearable` | `boolean \| undefined` | `false` | | Clicking the checked option (or Space on it) clears the value to `null`. Off: a radio group can't be emptied. |
1007
1029
  | `compact` | `boolean \| undefined` | `undefined` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one. |
1008
1030
  | `dependencies` | `unknown[] \| undefined` | | | Defines an array of dependencies that will trigger actions in the component upon change. |
1009
1031
  | `depsDebounceTime` | `number \| undefined` | | | Timeout used to debounce response to changes to dependencies. |
@@ -1098,7 +1120,7 @@ States are listed in precedence order: when two are on at once and their entries
1098
1120
  - `keydown` — `(event: KeyboardEvent): void` — Emitted for keyboard interaction on generated radio inputs. Forwards the original DOM `KeyboardEvent`.
1099
1121
  - `mousedown` — `(event: MouseEvent): void` — Emitted when a pointing device button is pressed over a radio input. Forwards the original DOM `MouseEvent`.
1100
1122
  - `mouseup` — `(event: MouseEvent): void` — Emitted when a pointing device button is released over a radio input. Forwards the original DOM `MouseEvent`.
1101
- - `update:modelValue` — `(value: any): void` — Emitted with the newly selected value when the selection changes.
1123
+ - `update:modelValue` — `(value: any): void` — Emitted with the newly selected value when the selection changes; `null` when a `clearable` group is cleared.
1102
1124
 
1103
1125
  ## Slots
1104
1126
 
@@ -59,9 +59,9 @@ Besides `update:modelValue` the component re-emits the native interaction events
59
59
 
60
60
  ### Clearing a rating
61
61
 
62
- By default a radio group cannot be un-picked. Set `clearable` to let the user
62
+ By default a rating cannot be un-picked. Set `clearable` to let the user
63
63
  reset to unrated (`null`): clicking the **currently selected** star again clears
64
- it, and so does pressing **Delete** or **Backspace** while it is focused. The
64
+ it, and so does **Space** on it. A double-click picks without clearing. The
65
65
  gesture isn't obvious, so pair it with a hint.
66
66
 
67
67
  **Clearable rating**
@@ -202,9 +202,10 @@ const love = ref<number | null>(4);
202
202
 
203
203
  The stars are a standard radio group, so keyboard behaviour is the native one:
204
204
  **Arrow** keys move the selection between adjacent stars and **Tab** moves in and
205
- out of the group. When `clearable` is set, **Delete** / **Backspace** on the
206
- selected star clears it to `null`. A `readonly` rating swallows those keys so the
207
- displayed score can't be nudged while remaining focusable.
205
+ out of the group. When `clearable` is set, **Space** on the selected star clears
206
+ it to `null`; **Delete** and **Backspace** do nothing. A `readonly` rating
207
+ swallows the keys so the displayed score can't be nudged while remaining
208
+ focusable.
208
209
 
209
210
  ### A rating inside a form
210
211
 
@@ -475,7 +476,7 @@ renders SSR-safe markup in Nuxt and Inertia apps.
475
476
  | --- | --- | --- | --- | --- |
476
477
  | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `description`, `hint`, `item`, `legend`, `message`, `root`. States: `disabled`, `errors`, `hasValue`, `readonly`, `warnings`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbRatingProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
477
478
  | `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
478
- | `clearable` | `boolean \| undefined` | `false` | | Allows clearing the selected rating by clicking the current value. |
479
+ | `clearable` | `boolean \| undefined` | `false` | | Allows clearing the selected rating: click the selected star, or Space on it. |
479
480
  | `compact` | `boolean \| undefined` | `undefined` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one. |
480
481
  | `description` | `string \| undefined` | | | 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`. |
481
482
  | `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
@@ -542,7 +543,7 @@ States are listed in precedence order: when two are on at once and their entries
542
543
  - `keydown` — `(event: KeyboardEvent): void` — Emitted for keyboard interaction on a star input. Forwards the original DOM `KeyboardEvent`.
543
544
  - `mousedown` — `(event: MouseEvent): void` — Emitted when a pointing device button is pressed over a star input. Forwards the original DOM `MouseEvent`.
544
545
  - `mouseup` — `(event: MouseEvent): void` — Emitted when a pointing device button is released over a star input. Forwards the original DOM `MouseEvent`.
545
- - `update:modelValue` — `(value: number \| null): void` — Emitted with the selected rating (1 to `stars`) when clicked. Emits `null` only when `clearable` is enabled and the already-selected star is clicked.
546
+ - `update:modelValue` — `(value: number \| null): void` — Emitted with the selected rating (1 to `stars`) when clicked. Emits `null` only when `clearable` is enabled and the already-selected star is clicked (or gets Space).
546
547
 
547
548
  ## Slots
548
549
 
@@ -1070,6 +1070,26 @@ the empty query is not a request to browse: `if (!query.trim()) return []` on
1070
1070
  `'search'` calls, and keep the ids half for the select's own calls (a seeded
1071
1071
  model still resolves on its first load).
1072
1072
 
1073
+ **A minimum query** (`min-query-length`). Don't guard `query.length < 3` in the
1074
+ provider: the select's own empty state would then say "No data" instead of how
1075
+ much to type.
1076
+
1077
+ ```vue
1078
+ <BbSelect
1079
+ :items="searchPatients"
1080
+ :prefill="false"
1081
+ :min-query-length="3"
1082
+ label="Patient"
1083
+ />
1084
+ ```
1085
+
1086
+ Below the minimum (trimmed characters) the query counts as empty: no
1087
+ `'search'` call, no filtering of array items, the search-first hint says
1088
+ "Type at least 3 characters", and a prefilled list stays unfiltered. Loads for
1089
+ other reasons still run, so a seeded model resolves. Enter does not emit
1090
+ `option:add`. Slots still receive the typed `query`: it is what was typed,
1091
+ not what was searched.
1092
+
1073
1093
  #### `signal`
1074
1094
 
1075
1095
  Cancellation never depended on it — a superseded response is dropped whether or
@@ -2435,10 +2455,10 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
2435
2455
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
2436
2456
  | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
2437
2457
  | `itemHeight` | `number \| undefined` | `28` | | Height of the options in the listbox (px). Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport. |
2438
- | `itemProps` | `BbSelectItemProps \| undefined` | | | ADDITIONAL row fields, never the text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. An object of paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or the chips. |
2458
+ | `itemProps` | `BbSelectItemProps<T> \| undefined` | | | ADDITIONAL row fields, never the text or value: `description` (a muted line under the label), `prepend:icon`, `append:icon`. An object of paths or getters per field, or a function of the item. Nothing is read implicitly; none shows in the trigger or the chips. |
2439
2459
  | `items` | `T[] \| ((context: BbSelectItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`), sync or async. Branch on `reason !== 'search'` to resolve the selection by id. A provider fails by THROWING, never by returning `[]`. |
2440
- | `itemText` | `(ItemAccessor<T, string>) \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
2441
- | `itemValue` | `ItemAccessor \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
2460
+ | `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
2461
+ | `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
2442
2462
  | `knownItems` | `([Known] extends [undefined] ? BbSelectKnownItems : Known) \| undefined` | | | `{ value, label }` rows naming the value the app already holds, whatever the options' shape: no request until the first open (`prefill: true` still loads). Not options; the options' accessors never run on them; slots get the row as `item`, with `known: true`, until the list brings its own. |
2443
2463
  | `label` | `string` | | yes | Text content of the label of the element. |
2444
2464
  | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
@@ -2449,9 +2469,10 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
2449
2469
  | `loadingText` | `string \| undefined` | | | String displayed while items are being loaded. |
2450
2470
  | `max` | `number \| undefined` | | | Maximum number of selectable items when the multiple flag is set. |
2451
2471
  | `maxSelectedLabels` | `number \| undefined` | `Infinity` | | Maximum number of labels shown before collapsing to a count summary. Unset, the labels collapse only when they overflow the field. |
2472
+ | `minQueryLength` | `number \| undefined` | `0` | | Characters to type (trimmed) before the query searches. Below it the query counts as empty: no `'search'` call, no filtering, and the panel says how many characters to type. Slots still get the typed `query`. |
2452
2473
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
2453
2474
  | `modelValueDebounceTime` | `number \| undefined` | `0` | | Timeout used to debounce response to changes to modelValue. |
2454
- | `multiple` | `boolean \| undefined` | | | Allows the selection of multiple items. |
2475
+ | `multiple` | `boolean \| undefined` | `false` | | Allows the selection of multiple items. |
2455
2476
  | `name` | `string \| undefined` | | | Defines the name of the input. |
2456
2477
  | `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). |
2457
2478
  | `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
@@ -2540,15 +2561,15 @@ States are listed in precedence order: when two are on at once and their entries
2540
2561
 
2541
2562
  - `append` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content appended inside the input field, after the value area.
2542
2563
  - `append:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content appended outside the input field wrapper.
2543
- - `chip` — scope: `BbSelectChipSlotProps` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` — Replaces the default badge rendered for each selection in `multiple` mode. Not called in `comma` mode, nor for the collapsed "+N" summary. With `known-items` bound, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one.
2564
+ - `chip` — scope: `BbSelectChipSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` — Replaces the default badge rendered for each selection in `multiple` mode. Not called in `comma` mode, nor for the collapsed "+N" summary. With `known-items` bound, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one.
2544
2565
  - `description` — scope: `BbSelectDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`.
2545
2566
  - `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; error: unknown; }` — Content shown when no options match the query or the list is empty. `error` is what the latest failed load threw, untouched (`null` when none). `close()` closes the panel, for an action that does not move focus out of it.
2546
2567
  - `footer` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Content pinned to the bottom of the options panel, below the options list. Rendered in both the desktop popover and the adaptive sheet.
2547
- - `group` — scope: `BbSelectGroupSlotProps` `{ text: string; item: T; index: number; length: number; disabled: boolean }` — Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header.
2568
+ - `group` — scope: `BbSelectGroupSlotProps<T>` `{ text: string; item: T; index: number; length: number; disabled: boolean }` — Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header.
2548
2569
  - `header` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Content pinned to the top of the options panel, above the search field. Rendered in both the desktop popover and the adaptive sheet.
2549
2570
  - `label` — scope: `BbSelectLabelSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default label text rendered above the input.
2550
2571
  - `loading` — scope: `{ query: string; }` — Content shown inside the options dropdown while items are loading.
2551
- - `option` — scope: `BbSelectOptionSlotProps` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` — Replaces the default rendering of each option row in the dropdown. With `known-items` bound, a row the list has not brought yet is the known `{ value, label }` row, `known: true`: check `known` before reading an option field off `item`.
2572
+ - `option` — scope: `BbSelectOptionSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` — Replaces the default rendering of each option row in the dropdown. With `known-items` bound, a row the list has not brought yet is the known `{ value, label }` row, `known: true`: check `known` before reading an option field off `item`.
2552
2573
  - `prefix` — scope: `object` — Content rendered as an inline prefix inside the input field.
2553
2574
  - `prepend` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content prepended inside the input field, before the value area.
2554
2575
  - `prepend:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content prepended outside the input field wrapper.
@@ -2575,7 +2596,7 @@ Set these on the element, or on a class you put on it, to retune this component
2575
2596
 
2576
2597
  - `BbSelect` _(this component)_ — its own template binds: `badge` → `CommonField`, `activator` → `input.bb-select__activator`, `badge` → `input.bb-select__activator`, `comma` → `span.bb-select__comma`, `badge` → `span.bb-select__comma`, `badge` → `BbBadge`, `controlAttrs` → `input`, `badge` → `input`; hands `BbSelectPopover` the pt map `{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }` (ours → theirs)
2577
2598
  - `CommonField` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
2578
- - `CommonFieldInput` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
2599
+ - `CommonFieldInput` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
2579
2600
  - `BbBadge` _(public — [contract](./BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
2580
2601
  - `BbSelectPopover` _(public — [contract](./BbSelectPopover.md))_ — its own pt parts (`BbSelectPopover`): `input` → `input.bb-select-popover__input`, `clear` → `ClearableButton`, `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-select-popover__header`, `footer` → `div.bb-select-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbBadge`, `BbIcon`, `ClearableButton`, `CommonPopover`, `ErrorIcon`, `WarningIcon`, `BbSmoothHeight`
2581
2602
  - `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
@@ -73,7 +73,8 @@ included). An object with none of those fields falls back to
73
73
 
74
74
  Pass your domain objects to `items` as they are and name the display/value
75
75
  fields with `item-text` / `item-value` (dot-paths or extractor functions). The
76
- `v-model` holds the resolved **value**, not the whole object. The value-identity
76
+ `v-model` holds the resolved **value**, not the whole object. A typo in a path
77
+ is a type error; under `strictVModel` the `v-model` is typed from it. The value-identity
77
78
  rules are the shared ones (see the Options and Items playbook), in brief:
78
79
 
79
80
  - Primitive `items` (`string[]` / `number[]`) and `{ label, value }` /
@@ -578,6 +579,10 @@ but only on a host that can transfer the result — see
578
579
  Opening the panel is not a search, so it loads nothing; until the first query the
579
580
  list shows a _"search to begin"_ hint instead of "no data".
580
581
 
582
+ `:min-query-length="3"` makes a shorter query (trimmed) count as empty: no
583
+ `'search'` call and no filtering, the hint says "Type at least 3 characters",
584
+ and Enter emits no `option:add`. Slots still get the typed `query`.
585
+
581
586
  Opening never waits for the first load: the panel shows its loading state and the
582
587
  search field (or, with writing disabled, the focus proxy) takes focus at once, so
583
588
  keys typed while the first load runs land in the search.
@@ -939,11 +944,11 @@ const tickets = ref<Ticket[]>([
939
944
  },
940
945
  ]);
941
946
 
942
- const columns: Array<BbTableColumn<Ticket>> = [
947
+ const columns = [
943
948
  { key: 'ref', label: 'Ref', width: 90 },
944
949
  { key: 'title', label: 'Title' },
945
950
  { key: 'status', label: 'Status', width: 140 },
946
- ];
951
+ ] satisfies Array<BbTableColumn<Ticket>>;
947
952
 
948
953
  /* Draft map: the edit lives here, never on the row. */
949
954
 
@@ -1923,6 +1928,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
1923
1928
  | `loading` | `boolean \| undefined` | `false` | | Display the loading state styles. |
1924
1929
  | `loadingText` | `string \| undefined` | | | Message shown while items are being loaded. |
1925
1930
  | `max` | `number \| undefined` | `Infinity` | | Maximum number of selectable items (limits selection when `multiple` is true). |
1931
+ | `minQueryLength` | `number \| undefined` | `0` | | Characters to type (trimmed) before the query searches. Below it the query counts as empty: no `'search'` call, no filtering, and the panel says how many characters to type. Slots still get the typed `query`. |
1926
1932
  | `modelValue` | `any` | | yes | v-model value. Single value for single select, array for multiple select. |
1927
1933
  | `modelValueDebounceTime` | `number \| undefined` | `0` | | Debounce delay (ms) for modelValue change handling. |
1928
1934
  | `multiple` | `boolean \| undefined` | `false` | | Enable multiple item selection. When true, modelValue must be an array. |
@@ -378,20 +378,22 @@ a stepper around a multi-thumb slider.
378
378
  is disabled or readonly), so a button never sits there inert. -->
379
379
  <template #prepend="{ decrease, disabled }">
380
380
  <BbButton
381
- aria-label="Quieter"
382
381
  :disabled="disabled"
383
- icon="lucide:minus"
382
+ icon-only
383
+ prepend:icon="lucide:minus"
384
384
  size="xs"
385
+ text="Quieter"
385
386
  variant="ghost"
386
387
  @click="decrease"
387
388
  />
388
389
  </template>
389
390
  <template #append="{ increase, disabled }">
390
391
  <BbButton
391
- aria-label="Louder"
392
392
  :disabled="disabled"
393
- icon="lucide:plus"
393
+ icon-only
394
+ prepend:icon="lucide:plus"
394
395
  size="xs"
396
+ text="Louder"
395
397
  variant="ghost"
396
398
  @click="increase"
397
399
  />
@@ -717,20 +719,22 @@ The volume stepper above, restyled through those parts: a thicker rail on
717
719
  >
718
720
  <template #prepend="{ decrease, disabled }">
719
721
  <BbButton
720
- aria-label="Quieter"
721
722
  :disabled="disabled"
722
- icon="lucide:minus"
723
+ icon-only
724
+ prepend:icon="lucide:minus"
723
725
  size="xs"
726
+ text="Quieter"
724
727
  variant="ghost"
725
728
  @click="decrease"
726
729
  />
727
730
  </template>
728
731
  <template #append="{ increase, disabled }">
729
732
  <BbButton
730
- aria-label="Louder"
731
733
  :disabled="disabled"
732
- icon="lucide:plus"
734
+ icon-only
735
+ prepend:icon="lucide:plus"
733
736
  size="xs"
737
+ text="Louder"
734
738
  variant="ghost"
735
739
  @click="increase"
736
740
  />
@@ -434,9 +434,10 @@ on the container makes the state audible to assistive tech, per the
434
434
  <!-- Demo control: plays the save response. In an app the
435
435
  request's completion clears `pendingId`; nothing ticks. -->
436
436
  <BbButton
437
- aria-label="Mark as saved"
438
- icon="lucide:check"
437
+ icon-only
438
+ prepend:icon="lucide:check"
439
439
  size="sm"
440
+ text="Mark as saved"
440
441
  variant="ghost"
441
442
  @click="onSaved"
442
443
  />
@@ -753,7 +753,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
753
753
  | `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `description`, `hint`, `icon`, `label`, `message`, `root`. States: `checked`, `disabled`, `errors`, `focused`, `focusVisible`, `indeterminate`, `readonly`, `warnings`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSwitchProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
754
754
  | `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
755
755
  | `checked` | `boolean \| undefined` | `undefined` | | Defines the input as checked. |
756
- | `compact` | `boolean \| undefined` | `false` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact field's label gap with the `-compact` token, not the base one. The same meaning as on the checkbox, radio and switch groups. |
756
+ | `compact` | `boolean \| undefined` | `undefined` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact field's label gap with the `-compact` token, not the base one. The same meaning as on the checkbox, radio and switch groups. |
757
757
  | `description` | `string \| undefined` | | | 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`. |
758
758
  | `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
759
759
  | `errors` | `string \| string[] \| undefined` | | | 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. |
@@ -766,11 +766,11 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
766
766
  | `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
767
767
  | `indeterminate` | `boolean \| undefined` | `false` | | Sets the input in an indeterminate state. |
768
768
  | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
769
- | `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `"start"` | | 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. |
769
+ | `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | 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. |
770
770
  | `label` | `string` | | yes | Text content of the label of the element. |
771
771
  | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
772
772
  | `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | 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. |
773
- | `layout` | `Responsive<FieldLayout> \| undefined` | `"auto"` | | 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' }`). |
773
+ | `layout` | `Responsive<FieldLayout> \| undefined` | `'auto'` | | 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' }`). |
774
774
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
775
775
  | `name` | `string \| undefined` | | | Defines the name of the input. |
776
776
  | `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |