bitboss-ui 3.0.0-beta.70 → 3.0.0-beta.72

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 (413) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +6 -1
  3. package/dist/ai/BbAccordion.md +38 -19
  4. package/dist/ai/BbBadge.md +25 -22
  5. package/dist/ai/BbBreadcrumbs.md +4 -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/BbCheckbox.md +5 -6
  10. package/dist/ai/BbCheckboxGroup.md +27 -27
  11. package/dist/ai/BbColorInput.md +4 -5
  12. package/dist/ai/BbConfirm.md +65 -81
  13. package/dist/ai/BbConfirmPortal.md +2 -2
  14. package/dist/ai/BbDatePicker.md +1 -6
  15. package/dist/ai/BbDatePickerInput.md +5 -6
  16. package/dist/ai/BbDialog.md +230 -164
  17. package/dist/ai/BbDropdown.md +87 -17
  18. package/dist/ai/BbDropdownButton.md +15 -15
  19. package/dist/ai/BbDropzone.md +12 -8
  20. package/dist/ai/BbForm.md +93 -7
  21. package/dist/ai/BbHost.md +2 -2
  22. package/dist/ai/BbHoverCardPortal.md +1 -1
  23. package/dist/ai/BbIcon.md +1 -1
  24. package/dist/ai/BbIndicator.md +17 -15
  25. package/dist/ai/BbNumberInput.md +10 -9
  26. package/dist/ai/BbOffCanvas.md +29 -7
  27. package/dist/ai/BbPagination.md +2 -2
  28. package/dist/ai/BbPopover.md +15 -9
  29. package/dist/ai/BbPopoverPortal.md +1 -1
  30. package/dist/ai/BbRadio.md +5 -6
  31. package/dist/ai/BbRadioGroup.md +53 -37
  32. package/dist/ai/BbRating.md +11 -16
  33. package/dist/ai/BbSelect.md +25 -5
  34. package/dist/ai/BbSelectPopover.md +9 -3
  35. package/dist/ai/BbSlider.md +15 -17
  36. package/dist/ai/BbSpinner.md +3 -2
  37. package/dist/ai/BbSwitch.md +9 -9
  38. package/dist/ai/BbSwitchGroup.md +11 -13
  39. package/dist/ai/BbTable.md +205 -82
  40. package/dist/ai/BbTabs.md +29 -4
  41. package/dist/ai/BbTag.md +4 -5
  42. package/dist/ai/BbTextInput.md +18 -16
  43. package/dist/ai/BbTextarea.md +12 -11
  44. package/dist/ai/BbTimePickerInput.md +4 -5
  45. package/dist/ai/BbToast.md +3 -2
  46. package/dist/ai/BbTooltip.md +39 -30
  47. package/dist/ai/BbTree.md +49 -24
  48. package/dist/ai/CommonField.md +2 -10
  49. package/dist/ai/CommonFieldInput.md +1 -1
  50. package/dist/ai/OptionsContainer.md +5 -13
  51. package/dist/ai/changelog.json +278 -10
  52. package/dist/ai/components.json +59 -58
  53. package/dist/ai/composables/useBbDialog.md +5 -8
  54. package/dist/ai/composables/useBbForm.md +3 -0
  55. package/dist/ai/composables/useConfirm.md +65 -56
  56. package/dist/ai/composables/useToast.md +2 -1
  57. package/dist/ai/guides/agent-contract.md +3 -3
  58. package/dist/ai/guides/app-layout.md +3 -2
  59. package/dist/ai/guides/eslint-rules.md +3 -1
  60. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  61. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  62. package/dist/ai/guides/icons-policy.md +7 -5
  63. package/dist/ai/guides/inertia-helpers.md +35 -30
  64. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  65. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  67. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  68. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  69. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  70. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  71. package/dist/ai/guides/migration/components/use-confirm.md +69 -26
  72. package/dist/ai/guides/migration/v2-to-v3.md +78 -12
  73. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  74. package/dist/ai/guides/options-items-playbook.md +4 -3
  75. package/dist/ai/guides/passthrough.md +2 -2
  76. package/dist/ai/guides/preset-components.md +35 -10
  77. package/dist/ai/helpers/definePreset.json +8 -1
  78. package/dist/ai/helpers/definePreset.ts +35 -10
  79. package/dist/ai/helpers/inertia/manifest.json +28 -15
  80. package/dist/ai/helpers/inertia/messages.ts +3 -3
  81. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  82. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  83. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  84. package/dist/ai/index.md +3 -3
  85. package/dist/ai/manifest/common.json +5 -5
  86. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  87. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  88. package/dist/ai/manifest/components/BbBadge.json +8 -7
  89. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  90. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  91. package/dist/ai/manifest/components/BbBreadcrumbs.json +2 -2
  92. package/dist/ai/manifest/components/BbButton.json +5 -6
  93. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  94. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  95. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  96. package/dist/ai/manifest/components/BbCheckbox.json +2 -2
  97. package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
  98. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  99. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +9 -19
  100. package/dist/ai/manifest/components/BbColorInput.json +3 -3
  101. package/dist/ai/manifest/components/BbColorInput.tree.json +2 -2
  102. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  103. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  104. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  105. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  106. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  107. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  108. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  109. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  110. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +2 -2
  111. package/dist/ai/manifest/components/BbDialog.json +6 -1
  112. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  113. package/dist/ai/manifest/components/BbDropdown.json +10 -9
  114. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  115. package/dist/ai/manifest/components/BbDropdownButton.json +9 -10
  116. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  117. package/dist/ai/manifest/components/BbForm.json +3 -1
  118. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  119. package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -2
  120. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  121. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  122. package/dist/ai/manifest/components/BbPagination.json +1 -1
  123. package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
  124. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  125. package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -18
  126. package/dist/ai/manifest/components/BbRating.json +2 -2
  127. package/dist/ai/manifest/components/BbRating.tree.json +1 -1
  128. package/dist/ai/manifest/components/BbSelect.json +2 -1
  129. package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
  130. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  131. package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
  132. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  133. package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  135. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
  136. package/dist/ai/manifest/components/BbTable.json +15 -14
  137. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  138. package/dist/ai/manifest/components/BbTabs.json +3 -3
  139. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  140. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  141. package/dist/ai/manifest/components/BbTag.json +1 -1
  142. package/dist/ai/manifest/components/BbTag.tree.json +2 -2
  143. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  144. package/dist/ai/manifest/components/BbTextInput.tree.json +2 -2
  145. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  146. package/dist/ai/manifest/components/BbTextarea.tree.json +2 -2
  147. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  148. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  149. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +2 -2
  150. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  151. package/dist/ai/manifest/components/BbTooltip.json +1 -1
  152. package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
  153. package/dist/ai/manifest/components/BbTree.json +2 -2
  154. package/dist/ai/manifest/components/CommonField.tree.json +5 -10
  155. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  156. package/dist/ai/manifest/components/OptionsContainer.tree.json +5 -13
  157. package/dist/ai/manifest/index.json +4 -4
  158. package/dist/ai/manifest/meta.json +5 -1
  159. package/dist/ai/manifest/types.advanced.json +9 -9
  160. package/dist/ai/manifest/types.api.json +7 -6
  161. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  165. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/inertia/record-form.md +12 -8
  167. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  168. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  169. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  170. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  171. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  172. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  173. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  174. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  175. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  176. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  177. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  178. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  179. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  180. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  181. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  182. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  183. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  184. package/dist/ai/recipes/vue/onboarding.md +5 -4
  185. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  186. package/dist/ai/recipes/vue/record-form.md +14 -10
  187. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  188. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  189. package/dist/ai/recipes/vue/upload-center.md +17 -9
  190. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  191. package/dist/ai/source/BbAccordion.md +50 -16
  192. package/dist/ai/source/BbBadge.md +420 -26
  193. package/dist/ai/source/BbBadgeButton.md +378 -12
  194. package/dist/ai/source/BbBreadcrumbs.md +31 -12
  195. package/dist/ai/source/BbButton.md +205 -55
  196. package/dist/ai/source/BbCalendar.md +5 -0
  197. package/dist/ai/source/BbCheckbox.md +36 -42
  198. package/dist/ai/source/BbCheckboxGroup.md +40 -17
  199. package/dist/ai/source/BbColorInput.md +2 -4
  200. package/dist/ai/source/BbConfigScope.md +19 -2
  201. package/dist/ai/source/BbConfirm.md +74 -80
  202. package/dist/ai/source/BbConfirmPortal.md +6 -6
  203. package/dist/ai/source/BbDatePicker.md +9 -2
  204. package/dist/ai/source/BbDatePickerInput.md +5 -5
  205. package/dist/ai/source/BbDialog.md +53 -2
  206. package/dist/ai/source/BbDropdown.md +360 -99
  207. package/dist/ai/source/BbDropdownButton.md +24 -13
  208. package/dist/ai/source/BbDropdownGroup.md +145 -60
  209. package/dist/ai/source/BbForm.md +144 -10
  210. package/dist/ai/source/BbNumberInput.md +2 -4
  211. package/dist/ai/source/BbOffCanvas.md +53 -2
  212. package/dist/ai/source/BbPagination.md +1 -1
  213. package/dist/ai/source/BbRadio.md +36 -42
  214. package/dist/ai/source/BbRadioGroup.md +74 -14
  215. package/dist/ai/source/BbRating.md +32 -36
  216. package/dist/ai/source/BbSelect.md +40 -13
  217. package/dist/ai/source/BbSelectPopover.md +105 -34
  218. package/dist/ai/source/BbSlider.md +2 -4
  219. package/dist/ai/source/BbSwitch.md +57 -46
  220. package/dist/ai/source/BbSwitchGroup.md +67 -21
  221. package/dist/ai/source/BbTable.md +363 -49
  222. package/dist/ai/source/BbTabs.md +6 -0
  223. package/dist/ai/source/BbTabsList.md +10 -0
  224. package/dist/ai/source/BbTabsPanels.md +6 -0
  225. package/dist/ai/source/BbTabsRoot.md +6 -0
  226. package/dist/ai/source/BbTag.md +2 -4
  227. package/dist/ai/source/BbTextInput.md +2 -4
  228. package/dist/ai/source/BbTextarea.md +2 -4
  229. package/dist/ai/source/BbTimePickerInput.md +2 -4
  230. package/dist/ai/source/BbTooltip.md +9 -3
  231. package/dist/ai/source/BbTree.md +14 -4
  232. package/dist/ai/source/CommonField.md +17 -106
  233. package/dist/ai/source/CommonFieldInput.md +2 -1
  234. package/dist/ai/source/GuidesComponent.md +3 -0
  235. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  236. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  237. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  238. package/dist/components/BbAccordion/types.d.ts +21 -7
  239. package/dist/components/BbAccordion/types.js +1 -1
  240. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  241. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  242. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  243. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  244. package/dist/components/BbBadge/types.d.ts +15 -12
  245. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
  246. package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
  247. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  248. package/dist/components/BbButton/types.d.ts +7 -6
  249. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  250. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  251. package/dist/components/BbCalendar/types.d.ts +5 -0
  252. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  253. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  254. package/dist/components/BbCheckbox/types.d.ts +2 -4
  255. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  256. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  257. package/dist/components/BbCheckboxGroup/types.d.ts +4 -6
  258. package/dist/components/BbColorInput/types.d.ts +2 -4
  259. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  260. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  261. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  262. package/dist/components/BbConfirm/types.d.ts +5 -5
  263. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  264. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  265. package/dist/components/BbDatePicker/types.d.ts +5 -0
  266. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  267. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  268. package/dist/components/BbDatePickerInput/types.d.ts +4 -5
  269. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  270. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  271. package/dist/components/BbDialog/overlayActions.js +94 -0
  272. package/dist/components/BbDialog/types.d.ts +24 -0
  273. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  274. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +384 -332
  275. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
  276. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  277. package/dist/components/BbDropdown/normalizeGroups.js +58 -44
  278. package/dist/components/BbDropdown/types.d.ts +116 -50
  279. package/dist/components/BbDropdown/types.js +2 -2
  280. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +105 -104
  281. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  282. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  283. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +240 -198
  284. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  285. package/dist/components/BbForm/recognizeValidation.js +55 -0
  286. package/dist/components/BbForm/validationError.d.ts +10 -0
  287. package/dist/components/BbForm/validationError.js +11 -0
  288. package/dist/components/BbNumberInput/types.d.ts +2 -4
  289. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  290. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  291. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  292. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  293. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  294. package/dist/components/BbRadio/types.d.ts +2 -4
  295. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  296. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  297. package/dist/components/BbRadioGroup/types.d.ts +11 -7
  298. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +126 -119
  299. package/dist/components/BbRating/types.d.ts +5 -6
  300. package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -10
  301. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  302. package/dist/components/BbSelect/types.d.ts +12 -6
  303. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  304. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  305. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  306. package/dist/components/BbSlider/types.d.ts +2 -4
  307. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  308. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  309. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  310. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  311. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  312. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  313. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  314. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  315. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  316. package/dist/components/BbTable/types.d.ts +33 -18
  317. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  318. package/dist/components/BbTabs/types.d.ts +6 -0
  319. package/dist/components/BbTag/types.d.ts +2 -4
  320. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  321. package/dist/components/BbTextInput/types.d.ts +2 -4
  322. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  323. package/dist/components/BbTextarea/types.d.ts +2 -4
  324. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  325. package/dist/components/BbTimePickerInput/types.d.ts +2 -4
  326. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  327. package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
  328. package/dist/components/BbTooltip/types.d.ts +3 -1
  329. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  330. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  331. package/dist/components/BbTree/types.d.ts +8 -2
  332. package/dist/components/CommonField/types.d.ts +2 -4
  333. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  334. package/dist/composables/formSubmitLock.js +15 -8
  335. package/dist/composables/overlayRegistry.d.ts +5 -0
  336. package/dist/composables/overlayRegistry.js +154 -148
  337. package/dist/composables/useBbDropdown.d.ts +8 -0
  338. package/dist/composables/useBbDropdown.js +3 -1
  339. package/dist/composables/useBbTabs.js +138 -138
  340. package/dist/composables/useChoiceIndicator.js +67 -64
  341. package/dist/composables/useConfirm.d.ts +63 -52
  342. package/dist/composables/useConfirm.js +22 -18
  343. package/dist/deprecation/ai-deprecations.json.js +1 -1
  344. package/dist/directives/bbDropdown.d.ts +7 -7
  345. package/dist/directives/bbDropdown.js +22 -15
  346. package/dist/directives/bbTooltip.d.ts +3 -3
  347. package/dist/directives/createPopoverDirective.js +57 -35
  348. package/dist/i18n/locales/ar.json +5 -1
  349. package/dist/i18n/locales/cs.json +5 -1
  350. package/dist/i18n/locales/da.json +5 -1
  351. package/dist/i18n/locales/de-CH.json +5 -1
  352. package/dist/i18n/locales/de.json +5 -1
  353. package/dist/i18n/locales/el.json +5 -1
  354. package/dist/i18n/locales/en-GB.json +5 -1
  355. package/dist/i18n/locales/en.json +5 -1
  356. package/dist/i18n/locales/es-MX.json +5 -1
  357. package/dist/i18n/locales/es.json +5 -1
  358. package/dist/i18n/locales/fa.json +5 -1
  359. package/dist/i18n/locales/fi.json +5 -1
  360. package/dist/i18n/locales/fr.json +5 -1
  361. package/dist/i18n/locales/he.json +5 -1
  362. package/dist/i18n/locales/hu.json +5 -1
  363. package/dist/i18n/locales/it.json +5 -1
  364. package/dist/i18n/locales/ja.json +5 -1
  365. package/dist/i18n/locales/ko.json +5 -1
  366. package/dist/i18n/locales/nb.json +5 -1
  367. package/dist/i18n/locales/nl.json +5 -1
  368. package/dist/i18n/locales/pl.json +5 -1
  369. package/dist/i18n/locales/pt-BR.json +5 -1
  370. package/dist/i18n/locales/pt-PT.json +5 -1
  371. package/dist/i18n/locales/ro.json +5 -1
  372. package/dist/i18n/locales/ru.json +5 -1
  373. package/dist/i18n/locales/sv.json +5 -1
  374. package/dist/i18n/locales/tr.json +5 -1
  375. package/dist/i18n/locales/uk.json +5 -1
  376. package/dist/i18n/locales/zh-CN.json +5 -1
  377. package/dist/i18n/locales/zh-HK.json +5 -1
  378. package/dist/i18n/locales/zh-TW.json +5 -1
  379. package/dist/index.d.ts +2 -0
  380. package/dist/index.js +4 -3
  381. package/dist/llms-full.txt +2216 -1332
  382. package/dist/llms-medium.txt +21 -18
  383. package/dist/llms.txt +2 -2
  384. package/dist/locale-blueprint.json +5 -1
  385. package/dist/plugin.js +17 -40
  386. package/dist/pluginCore.js +30 -0
  387. package/dist/styles.css +2 -2
  388. package/dist/types/ActionButton.d.ts +26 -5
  389. package/dist/types/ActionButton.js +11 -0
  390. package/dist/types/ConfigDefaults.d.ts +34 -3
  391. package/dist/types/ConfigDefaults.js +14 -8
  392. package/dist/types/FieldLayout.d.ts +4 -1
  393. package/dist/types/ItemAccessor.d.ts +3 -1
  394. package/dist/types/ItemPath.d.ts +62 -0
  395. package/dist/types/ptComponentMap.d.ts +1 -1
  396. package/dist/utilities/functions/clickCount.js +14 -0
  397. package/dist/utils/versionCheck.js +1 -1
  398. package/llms.txt +2 -2
  399. package/package.json +16 -4
  400. package/scripts/README.md +35 -29
  401. package/scripts/lib/adoption-checklist.json +2 -2
  402. package/scripts/lib/define-preset-copy.mjs +1 -1
  403. package/scripts/lib/eslint-disable.mjs +5 -3
  404. package/scripts/lib/eslint-plugin.d.ts +2 -0
  405. package/scripts/lib/eslint-plugin.mjs +213 -1
  406. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  407. package/scripts/lib/release-results.mjs +32 -1
  408. package/scripts/lib/renamed-item-field.mjs +4 -1
  409. package/scripts/lib/setup.mjs +8 -0
  410. package/scripts/lib/tab-links.mjs +4 -1
  411. package/scripts/lib/toolchain-check.mjs +125 -7
  412. package/scripts/lib/tree-default-expandable.mjs +53 -0
  413. package/scripts/lib/validate-bb-markup.mjs +537 -53
@@ -40,7 +40,6 @@
40
40
  | `--t` | `pt:icon` | `BbBaseCheckboxIcon` | State-change time: the fill fade and the check / dash drawing in. |
41
41
  | `--bg` | `pt:icon` | `BbBaseCheckboxIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
42
42
  | `--border-color` | `pt:icon` | `BbBaseCheckboxIcon` | Resting border colour of the glyph; re-pointed by error and warning states. |
43
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
44
43
  | `--list-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip behind the triggers |
45
44
  | `--list-border` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border |
46
45
  | `--p` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | strip inner padding — the gutter the indicator sits in, and the scroll inset |
@@ -62,8 +61,6 @@
62
61
  | `--indicator-inset` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge |
63
62
  | `--elev` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The theme's resting lift, composed UNDER the indicator's own shadow |
64
63
  | `--indicator-shadow` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Indicator lift, painted on top of --elev |
65
- | `--divider` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Each button's frame |
66
- | `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked button under the pointer |
67
64
 
68
65
  ## Usage & Guidelines
69
66
 
@@ -153,7 +150,8 @@ The mapping grammar (shared by every items-driven component — see the
153
150
 
154
151
  - **Primitive `items`** (`string[]` / `number[]`): omit both props; the value is
155
152
  the primitive itself.
156
- - **Dot path**: `item-value="id"`, `item-text="profile.fullName"`.
153
+ - **Dot path**: `item-value="id"`, `item-text="profile.fullName"`. A typo is
154
+ a type error; under `strictVModel` the `v-model` is typed from the path.
157
155
  - **Extractor function** when a path can't express it:
158
156
  `:item-text="(c) => c.label + ' (' + c.region + ')'"`.
159
157
 
@@ -666,15 +664,17 @@ option shortens it, unticking a middle option splits it (the hole opens in
666
664
  place), a lone pick pops a new pill in, and a pill whose options are all
667
665
  unticked shrinks to its centre and fades. Two pills that come to touch stay
668
666
  two pills, drawn as one shape. `line` draws a bar under each pick across a baseline that spans the field;
669
- adjacent bars join. `outline` sets outline buttons side by side, each pick
670
- in the button's pressed state. The strip
671
- and its triggers measure exactly as BbTabs'.
667
+ adjacent bars join. `outline` is a set of outline BbButtons, each pick in
668
+ the button's pressed state, painted on that button (no indicator): it looks
669
+ and behaves exactly like a row of `BbButton variant="outline"` (`compact`
670
+ takes the button's `sm` size). The `pill` and `line` strips and their
671
+ triggers measure exactly as BbTabs'.
672
672
  It is still a checkbox group (native checkboxes, `max`, forms, validation);
673
673
  the box is hidden (an `icon` slot shows before the label) and the strip
674
674
  never wraps (it scrolls; `outline` buttons wrap onto further lines instead); `list-layout="vertical"` stacks it into a column
675
675
  (runs stack on the Y axis), `block` spans the field (the triggers share its
676
676
  width equally on a row), and the other layouts and `item-layout` do not
677
- apply. `pt:indicator` reaches every pill, bar or filled run, and
677
+ apply. `pt:indicator` reaches every pill or bar (`outline` has none), and
678
678
  `pt:<part>:pill` / `pt:<part>:line` / `pt:<part>:outline` style a part in one
679
679
  look only. The strip's tokens are its own, named and valued as a tab strip's. A
680
680
  strip has no `size`: it is `--bb-control-h` tall like a field (`compact` drops
@@ -700,6 +700,12 @@ is `pt:list="[--list-h:24px] [--fs:12px] [--p:2px]"`. A registered `components:
700
700
  legend="Notify by"
701
701
  variant="line"
702
702
  />
703
+ <BbCheckboxGroup
704
+ v-model="amenities"
705
+ :items="['Wi-Fi', 'Parking', 'Breakfast', 'Pet friendly', 'Pool']"
706
+ legend="Amenities"
707
+ variant="outline"
708
+ />
703
709
  </div>
704
710
  </template>
705
711
 
@@ -709,10 +715,12 @@ import { BbCheckboxGroup } from 'bitboss-ui';
709
715
 
710
716
  // BbTabs' looks on a multi-pick. `pill`: one pill per run of adjacent picks,
711
717
  // so Mon–Wed reads as one block; tick Thu and the pill grows, untick Tue and
712
- // it splits. `line`: a bar under each pick, adjacent bars join.
718
+ // it splits. `line`: a bar under each pick, adjacent bars join. `outline`: a
719
+ // set of outline buttons, each pick in the button's pressed state.
713
720
  const weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
714
721
  const days = ref(['Mon', 'Tue', 'Wed', 'Fri']);
715
722
  const channels = ref(['Email', 'Push']);
723
+ const amenities = ref(['Wi-Fi', 'Breakfast']);
716
724
  </script>
717
725
  ```
718
726
 
@@ -978,7 +986,7 @@ too.
978
986
  legend="Cadence"
979
987
  list-layout="horizontal"
980
988
  name="cadence"
981
- pt:item="flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2"
989
+ pt:item="min-w-fit flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2"
982
990
  pt:item:checked="border-(--bb-primary) bg-(--bb-muted)"
983
991
  />
984
992
  </div>
@@ -1104,7 +1112,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1104
1112
  | `hideLegend` | `boolean \| undefined` | `false` | | Visually hides the legend of the fieldset while maintaining accessibility. |
1105
1113
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1106
1114
  | `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
1107
- | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
1115
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1108
1116
  | `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. |
1109
1117
  | `itemInputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line. |
1110
1118
  | `itemLabelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's label in its row. Omitted, it stays as it is. |
@@ -1114,7 +1122,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1114
1122
  | `items` | `T[] \| ((context: BbCheckboxGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbCheckboxGroupItemsContext` (`BbSwitchGroupItemsContext` on a switch group) (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. |
1115
1123
  | `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). |
1116
1124
  | `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`. |
1117
- | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
1125
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1118
1126
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | 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' }`). |
1119
1127
  | `legend` | `string` | | yes | Text content of the legend. |
1120
1128
  | `legendMode` | `"outside" \| "inside" \| undefined` | | | Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for option groups (checkbox, radio or switch) — there is no single field for the legend to float against. |
@@ -1240,22 +1248,14 @@ Set these on the element, or on a class you put on it, to retune this component
1240
1248
  | `--elev` | `.bb-checkbox-group__list--line` | `none` | |
1241
1249
  | `--list-bg` | `.bb-checkbox-group__list--outline` | `transparent` | |
1242
1250
  | `--list-border` | `.bb-checkbox-group__list--outline` | `transparent` | |
1243
- | `--list-h` | `.bb-checkbox-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | A button's height: BbButton `md` sits one step under the control height. |
1251
+ | `--list-h` | `.bb-checkbox-group__list--outline` | `auto` | |
1244
1252
  | `--p` | `.bb-checkbox-group__list--outline` | `0px` | |
1245
1253
  | `--trigger-gap` | `.bb-checkbox-group__list--outline` | `8px` | |
1246
- | `--trigger-r` | `.bb-checkbox-group__list--outline` | `var(--bb-radius)` | |
1254
+ | `--trigger-min-h` | `.bb-checkbox-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | BbButton md |
1247
1255
  | `--trigger-px` | `.bb-checkbox-group__list--outline` | `12px` | |
1248
- | `--list-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1249
- | `--hover-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1250
- | `--active-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1251
- | `--active-fw` | `.bb-checkbox-group__list--outline` | `500` | |
1252
- | `--indicator-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-pressed)` | |
1253
- | `--indicator-border` | `.bb-checkbox-group__list--outline` | `transparent` | |
1254
- | `--indicator-r` | `.bb-checkbox-group__list--outline` | `var(--trigger-r)` | |
1255
- | `--indicator-shadow` | `.bb-checkbox-group__list--outline` | `none` | |
1256
- | `--elev` | `.bb-checkbox-group__list--outline` | `none` | |
1257
- | `--divider` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-border)` | Each button's frame |
1258
- | `--hover-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-hover)` | An unpicked button under the pointer |
1256
+ | `--fs` | `.bb-checkbox-group__list--outline` | `var(--bb-fs)` | |
1257
+ | `--trigger-r` | `.bb-checkbox-group__list--outline` | `var(--bb-radius)` | |
1258
+ | `--elev` | `.bb-checkbox-group__list--outline` | `var(--bb-elev)` | |
1259
1259
 
1260
1260
  ## Component tree
1261
1261
 
@@ -1267,8 +1267,8 @@ Set these on the element, or on a class you put on it, to retune this component
1267
1267
  - Listed nodes are the ones `BbCheckboxGroup`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbCheckboxGroup.tree.json` (a public component in it is a name: its own tree file has the rest).
1268
1268
 
1269
1269
  - `BbCheckboxGroup` _(this component)_ — its own template binds: `indicator` → `span.bb-checkbox-group__indicator`, `icon` → `BbBaseCheckboxIcon`
1270
- - `CommonField` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'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`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
1271
- - `OptionsContainer` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--list-h`, `--divider`, `--hover-bg`
1270
+ - `CommonField` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'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`
1271
+ - `OptionsContainer` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--trigger-min-h`
1272
1272
  - Also mounts `BbBaseCheckboxIcon`
1273
1273
 
1274
1274
  ## See Also
@@ -33,7 +33,6 @@
33
33
 
34
34
  | Variable | Set through | Declared by | What it is |
35
35
  | --- | --- | --- | --- |
36
- | `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
37
36
  | `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
38
37
  | `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
39
38
  | `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
@@ -698,9 +697,9 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
698
697
  | `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
699
698
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
700
699
  | `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. |
701
- | `inputAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
700
+ | `inputAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
702
701
  | `label` | `string` | | yes | Text content of the label of the element. |
703
- | `labelAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
702
+ | `labelAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
704
703
  | `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode: `outside` places the label above the input, `floating` overlays it on the field and shrinks it when a value is set, `inside` keeps it inside the field. |
705
704
  | `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. |
706
705
  | `layout` | `Responsive<FieldLayout> \| undefined` | | | 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' }`). |
@@ -812,8 +811,8 @@ Set these on the element, or on a class you put on it, to retune this component
812
811
  - Listed nodes are the ones `BbColorInput`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbColorInput.tree.json` (a public component in it is a name: its own tree file has the rest).
813
812
 
814
813
  - `BbColorInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-color-input__input`, `input` → `input.bb-color-input__input`, `indicator` → `button.bb-color-input__indicator`, `suffix` → `span.bb-field-input__suffix`; hands `BbColorPalette` the pt map `{ panel: 'panel', sheet: 'sheet', swatch: 'swatch' }` (ours → theirs)
815
- - `CommonField` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'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`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
816
- - `CommonFieldInput` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'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`
814
+ - `CommonField` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'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`
815
+ - `CommonFieldInput` _(internal — not importable, reach it through `BbColorInput`)_ — `BbColorInput`'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`
817
816
  - `BbColorPalette` _(public — [contract](./BbColorPalette.md))_ — its own pt parts (`BbColorPalette`): `swatch` → `button.bb-color-palette__swatch`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs); documented CSS variables: `--edge`; also mounts `BbIcon`, `CommonPopover`
818
817
  - `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`
819
818
  - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
@@ -14,38 +14,14 @@
14
14
 
15
15
  | pt part | Lands on | In |
16
16
  | --- | --- | --- |
17
- | `pt:action` | the root of `BbButton` | `BbButton` ([contract](./BbButton.md)) |
17
+ | `pt:action` | the root of `BbDialog` | `BbDialog` ([contract](./BbDialog.md)) |
18
18
 
19
19
  **CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `BbConfirm`'s root:
20
20
 
21
21
  | Variable | Set through | Declared by | What it is |
22
22
  | --- | --- | --- | --- |
23
- | `--h-xs` | `pt:action` | `BbButton` | ── Scale tokens (height / icon / px / font-size) ─────── Heights and font sizes derive from the global scale knobs so retuning `--bb-control-h` / `--bb-fs` resizes the whole button scale coherently (md sits one step under the input height, lg matches it). The ladder is one block per size, six locals each, always the same six: `--h-*` min-height, `--icon-size-*` the icon/spinner box, `--px-*` the left and right padding, `--fs-*` font-size (which is also the line-height), `--r-*` border-radius, `--gap-*` the space between icon and label. Nothing paints from a `-<size>` local: the `.bb-button--<size>` class copies its block into the active `--h / --icon-size / --px / --fs / --r / --gap` below, and those are what the rules read. So retune a whole size here, or one button through the active six. Three places the ladder does not simply step: - radius is flat from md up (`--bb-radius`); only xs (`--bb-radius-sm`) and sm (0.8×) come off that value; - lg repeats md's icon size, font size, radius and gap — between those two sizes only height and padding grow; - 2xl repeats xl's gap. `--bw` and `--elev-tier` are size-dependent too but have no `-<size>` entries; the size classes assign them directly (xs and sm take the small border and shadow tiers, md and up the full ones). |
24
- | `--h` | `pt:action` | `BbButton` | min-height, and the min-width of an icon-only button |
25
- | `--icon-size` | `pt:action` | `BbButton` | every icon, and the spinner over it |
26
- | `--px` | `pt:action` | `BbButton` | left/right padding |
27
- | `--ipx` | `pt:action` | `BbButton` | The padding on a side that carries an icon: a length of its own, 65% of --px by default (it follows a --px change). |
28
- | `--fs` | `pt:action` | `BbButton` | font-size, and line-height |
29
- | `--r` | `pt:action` | `BbButton` | border-radius |
30
- | `--gap` | `pt:action` | `BbButton` | between icon and label |
31
- | `--bg` | `pt:action` | `BbButton` | the plate |
32
- | `--bg-hover` | `pt:action` | `BbButton` | also the focus-visible fill; no change by default |
33
- | `--bg-pressed` | `pt:action` | `BbButton` | fill while pressed, or open (aria-expanded) |
34
- | `--fg` | `pt:action` | `BbButton` | label and icons (icons paint currentColor) |
35
- | `--border-color` | `pt:action` | `BbButton` | the frame; its width is --bw |
36
- | `--ring-color` | `pt:action` | `BbButton` | focus ring colour, per variant |
37
- | `--ring-size` | `pt:action` | `BbButton` | focus ring width, outside the border |
38
- | `--bw` | `pt:action` | `BbButton` | border width |
39
- | `--fg-hover` | `pt:action` | `BbButton` | label and icons on hover (and focus-visible) |
40
- | `--border-hover` | `pt:action` | `BbButton` | the frame on hover (and focus-visible) |
41
- | `--fg-pressed` | `pt:action` | `BbButton` | label and icons while pressed or open |
42
- | `--border-pressed` | `pt:action` | `BbButton` | the frame while pressed or open |
43
- | `--bg-disabled` | `pt:action` | `BbButton` | the plate while disabled (not loading) |
44
- | `--fg-disabled` | `pt:action` | `BbButton` | label and icons while disabled |
45
- | `--border-disabled` | `pt:action` | `BbButton` | the frame while disabled |
46
- | `--opacity-disabled` | `pt:action` | `BbButton` | whole-button opacity while disabled — `.5` with the three above set to the resting tokens gives "fade instead of grey" |
47
- | `--elev-tier` | `pt:action` | `BbButton` | the shadow a plate variant may take |
48
- | `--elev` | `pt:action` | `BbButton` | the shadow painted; flat variants keep this |
23
+ | `--px` | `pt:action` | `BbDialog` | Axis split of --bb-panel-p: --px (inline) / --py (block), each branching off it. Set the pair only when the axes differ; setting --bb-panel-p alone keeps them equal. Local on this root class (not :root) so scoped --bb-panel-p overrides keep reaching the slots; for per-part asymmetry, scope --py to the part class. |
24
+ | `--close-size` | `pt:action` | `BbDialog` | Shared by the close control and by the space the title reserves for it, so the two can never drift apart. |
49
25
 
50
26
  ## Usage & Guidelines
51
27
 
@@ -102,10 +78,10 @@ otherwise).
102
78
 
103
79
  ### The destructive flow
104
80
 
105
- Pick by where the work runs. A server call or a visit goes in Yes's `onClick`
81
+ Pick by where the work runs. A server call or a visit goes in OK's `onClick`
106
82
  (next section): it spins there, and a failure rejects `confirm()`. A local,
107
83
  instant step (removing a row you hold, leaving a page) is `await confirm(...)`,
108
- then act only on a truthy result, as below. Set `variant: 'destructive'` so the dialog reads as dangerous and the Yes button
84
+ then act only on a truthy result, as below. Set `variant: 'destructive'` so the dialog reads as dangerous and the OK button
109
85
  inherits the destructive button style automatically. Everything after the
110
86
  `await` is your normal code — the dialog has already resolved. A `BbButton`
111
87
  whose click awaits `confirm()` spins until it is answered, like any async
@@ -172,15 +148,15 @@ const revoke = async (key: ApiKey) => {
172
148
  title: 'Revoke API key?',
173
149
  text: `${key.label} (${key.masked}) stops working immediately. This cannot be undone.`,
174
150
  variant: 'destructive',
175
- yes: { text: 'Revoke', 'prepend:icon': 'lucide:trash-2' },
176
- no: 'Cancel',
151
+ ok: { text: 'Revoke', 'prepend:icon': 'lucide:trash-2' },
152
+ cancel: 'Cancel',
177
153
  });
178
154
  if (ok) keys.value = keys.value.filter((k) => k.id !== key.id);
179
155
  };
180
156
  </script>
181
157
  ```
182
158
 
183
- **Irreversible and large — "type the name to confirm":** a yes/no is one
159
+ **Irreversible and large — "type the name to confirm":** an OK/Cancel is one
184
160
  reflexive click away from deleting a workspace, so that case is not a
185
161
  `confirm()`. Build a `BbDialog` with a text field and a destructive button
186
162
  disabled until the typed text matches the name, clearing the text each time
@@ -203,8 +179,8 @@ is blocked until it settles. Add `returning: true` to resolve with the
203
179
  callback's own return value rather than a plain boolean. One sharp edge:
204
180
  `confirm()` **rejects** when a button's `onClick` throws — wrap the await in
205
181
  `try/catch` when the work can fail. An Inertia visit returns no promise: make
206
- it with the Inertia helpers' `usePromiseRouter`, whose promise rejects with the
207
- error bag itself on a validation error (not `{ errors }`), rather than calling
182
+ it with the Inertia helpers' `usePromiseRouter`, whose promise rejects with a
183
+ `BbValidationError` (the bag under `.errors`) on a validation error, rather than calling
208
184
  `close()` from its callbacks (`ai/composables/useConfirm.md` § Async work).
209
185
 
210
186
  **Async publish with a spinner**
@@ -242,7 +218,7 @@ const publish = async () => {
242
218
  title: 'Publish article?',
243
219
  text: 'It becomes visible to everyone with the link.',
244
220
  returning: true,
245
- yes: {
221
+ ok: {
246
222
  text: 'Publish',
247
223
  'prepend:icon': 'lucide:rocket',
248
224
  onClick: async () => {
@@ -250,7 +226,7 @@ const publish = async () => {
250
226
  return 'Published';
251
227
  },
252
228
  },
253
- no: { text: 'Keep as draft', onClick: () => 'Draft' },
229
+ cancel: { text: 'Keep as draft', onClick: () => 'Draft' },
254
230
  });
255
231
  // `false` when the dialog closed without a choice (Escape, the backdrop).
256
232
  status.value = result || 'Unchanged';
@@ -260,33 +236,43 @@ const publish = async () => {
260
236
 
261
237
  ### Customising the buttons
262
238
 
263
- `yes` and `no` each accept three forms: `false` hides the button, a string
264
- relabels it, and a full `ConfirmButtonConfig` object gives complete control —
265
- `text`, `variant`, `size` (default `'md'`), `prepend:icon` / `append:icon`,
266
- `icon` (standalone icon button, no label), `block` (fill the footer width),
267
- and the `onClick` described above. Defaults: Yes is the `confirm.ok` locale
268
- string (`'OK'` with the default `'en'` locale), `primary` (`destructive` when
269
- the dialog variant is); No is the `confirm.cancel` locale string (`'Cancel'`
270
- with the default `'en'` locale), `outline`. Prefer your own verb-first labels
271
- over the generic defaults.
239
+ `ok` and `cancel` each accept four forms: `false` hides the button, `true`
240
+ keeps the default, a string relabels it, and a full `ConfirmButtonConfig`
241
+ object gives complete control — `text`, `variant`, `size` (default `'md'`),
242
+ `prepend:icon` / `append:icon`, `iconOnly` (show only the icon; `text` stays
243
+ the accessible name), `block` (fill the footer width), and the `onClick`
244
+ described above. Defaults: OK is the `confirm.ok` locale string (`'OK'` with
245
+ the default `'en'` locale), `primary` (`destructive` when the dialog variant
246
+ is); Cancel is the `confirm.cancel` locale string (`'Cancel'` with the default
247
+ `'en'` locale), `outline`, and comes first in the footer. Prefer your own
248
+ verb-first labels over the generic defaults.
249
+
250
+ The plugin sets the app-wide look of both:
251
+ `components: { BbConfirm: { okProps: { variant: 'primary' }, cancelProps: { variant: 'ghost' } } }`
252
+ (the look only: `text`, `variant`, `size`, icons, `iconOnly`, `block`). The
253
+ call wins, and the config never shows a button the call hides.
272
254
 
273
255
  ```ts
274
256
  // Acknowledgement — one button.
275
- await confirm({ title: 'Saved', text: 'Your changes are live.', no: false });
257
+ await confirm({
258
+ title: 'Saved',
259
+ text: 'Your changes are live.',
260
+ cancel: false,
261
+ });
276
262
 
277
263
  // Full control over each button.
278
264
  await confirm({
279
265
  title: 'Archive project?',
280
266
  text: 'You can restore it later from the archive.',
281
- yes: { text: 'Archive', 'prepend:icon': 'lucide:archive' },
282
- no: { text: 'Cancel', variant: 'ghost' },
267
+ ok: { text: 'Archive', 'prepend:icon': 'lucide:archive' },
268
+ cancel: { text: 'Cancel', variant: 'ghost' },
283
269
  });
284
270
  ```
285
271
 
286
- ### More than yes/no: custom actions
272
+ ### More than OK/Cancel: custom actions
287
273
 
288
274
  When the decision has more than two outcomes, pass an `actions` array — it
289
- replaces the Yes/No footer entirely (`yes` / `no` are ignored, with a dev
275
+ replaces the OK/Cancel footer entirely (`ok` / `cancel` are ignored, with a dev
290
276
  warning). Each entry is the same `ConfirmButtonConfig` shape as above; defaults
291
277
  per button are `variant: 'outline'`, `size: 'md'`. Clicking any action resolves
292
278
  the promise `true`; every implicit dismissal still resolves `false` without
@@ -325,7 +311,7 @@ const decision = ref('none yet');
325
311
  const { confirm } = useConfirm();
326
312
 
327
313
  /**
328
- * An `actions` array replaces the Yes/No footer. With `returning: true` the
314
+ * An `actions` array replaces the OK/Cancel footer. With `returning: true` the
329
315
  * promise resolves with the clicked handler's return value — `as const` keeps
330
316
  * the literals, so `res` is 'discard' | 'draft' | 'publish' | false.
331
317
  */
@@ -356,7 +342,7 @@ const closeEditor = async () => {
356
342
  </script>
357
343
  ```
358
344
 
359
- The rest of the contract carries over from yes/no unchanged:
345
+ The rest of the contract carries over from OK/Cancel unchanged:
360
346
 
361
347
  - A **throwing handler rejects** the `confirm()` promise and closes the dialog
362
348
  — wrap multi-outcome confirms in `try/catch` when a handler can fail.
@@ -373,21 +359,21 @@ A confirm can end without a button click — backdrop click, `Escape`, the X,
373
359
  a `duration` timeout, or the owning component unmounting. All of these resolve
374
360
  the promise `false`, so your `if (ok)` branch is never reached accidentally.
375
361
  `false` therefore means _not confirmed_, not necessarily _declined_ — put
376
- decline-only behavior in `no.onClick`, not in the `if (!ok)` branch. The rule
377
- that decides whether `no.onClick` runs: **user-initiated** dismissals
378
- (backdrop, `Escape`, the X) honor `dismissAsNo`; **system-initiated** ones
362
+ decline-only behavior in `cancel.onClick`, not in the `if (!ok)` branch. The rule
363
+ that decides whether `cancel.onClick` runs: **user-initiated** dismissals
364
+ (backdrop, `Escape`, the X) honor `dismissAsCancel`; **system-initiated** ones
379
365
  (`duration` timeout, owner unmount, `dismissAll()`)
380
366
  always resolve quietly, never running any callback. The knobs:
381
367
 
382
- - `dismissAsNo` (default `true`) — user-initiated implicit dismissals also run
383
- `no.onClick` (and, with `returning`, resolve with its return value). Set
368
+ - `dismissAsCancel` (default `true`) — user-initiated implicit dismissals also run
369
+ `cancel.onClick` (and, with `returning`, resolve with its return value). Set
384
370
  `false` to resolve `false` quietly without running the callback; an explicit
385
- No click always runs it.
371
+ Cancel click always runs it.
386
372
  - `persistent` blocks backdrop and Escape dismissal. The X button ignores
387
373
  `persistent` and follows `hideClose` (hidden while a callback runs). The
388
374
  confirm closes itself after a callback through the dialog's model, so a
389
375
  busy confirm never refuses its own close.
390
- Combine `persistent` with `hideClose` (and explicit `yes`/`no`) to force a
376
+ Combine `persistent` with `hideClose` (and explicit `ok`/`cancel`) to force a
391
377
  real choice. Both are forced on automatically while a button callback runs.
392
378
  - `duration: ms` auto-dismisses after a timeout, resolving `false` quietly —
393
379
  useful for self-expiring prompts. It implies `autoClose: true`.
@@ -459,8 +445,8 @@ const cancel = async () => {
459
445
  variant: 'destructive',
460
446
  persistent: true,
461
447
  hideClose: true,
462
- yes: 'Discard',
463
- no: 'Keep editing',
448
+ ok: 'Discard',
449
+ cancel: 'Keep editing',
464
450
  });
465
451
  if (ok) draft.value = saved.value;
466
452
  };
@@ -474,7 +460,7 @@ By default the dialog closes as soon as the promise settles. Set
474
460
  (progress feedback, a follow-up step) — and end the flow yourself with
475
461
  `useConfirm().close()`. Two things to internalize, for **either** outcome:
476
462
 
477
- - `autoClose: false` applies to No/dismiss too — call `close()` on both
463
+ - `autoClose: false` applies to Cancel/dismiss too — call `close()` on both
478
464
  branches.
479
465
  - `close()` only hides the dialog; **it never resolves anything**. Calling it
480
466
  on a dialog whose buttons haven't run yet leaves that `confirm()` promise
@@ -532,8 +518,8 @@ const exportWorkspace = async () => {
532
518
  title: 'Export workspace?',
533
519
  portal: 'export-flow',
534
520
  autoClose: false,
535
- yes: 'Export',
536
- no: 'Cancel',
521
+ ok: 'Export',
522
+ cancel: 'Cancel',
537
523
  });
538
524
  if (!ok) {
539
525
  status.value = 'Cancelled';
@@ -570,7 +556,7 @@ const discard = await confirm({
570
556
  title: 'Discard your changes?',
571
557
  stack: 'editor', // the editor's <BbDialog stack="editor">
572
558
  variant: 'destructive',
573
- yes: 'Discard',
559
+ ok: 'Discard',
574
560
  });
575
561
  ```
576
562
 
@@ -578,8 +564,8 @@ const discard = await confirm({
578
564
 
579
565
  When plain `text` isn't enough, render custom content in the dialog body via a
580
566
  **portal**. A named portal is declared inline with `<BbConfirmPortal>` and
581
- activated by name — its slot receives `{ yes, no, data }`, where `data` is
582
- the `data` you passed and `yes`/`no` resolve the dialog from inside the slot.
567
+ activated by name — its slot receives `{ ok, cancel, data }`, where `data` is
568
+ the `data` you passed and `ok`/`cancel` resolve the dialog from inside the slot.
583
569
  Named-portal content is a live closure over your component's state (the
584
570
  multi-step example above exploits exactly that). For reusable bodies, pass a
585
571
  component as `portal` instead; the keys of `data` are then forwarded to it as
@@ -607,7 +593,7 @@ portal never renders.
607
593
  </p>
608
594
 
609
595
  <!-- Register named content anywhere in the tree. The slot receives
610
- `{ yes, no, data }`; `data` is whatever the confirm passed as `data`. -->
596
+ `{ ok, cancel, data }`; `data` is whatever the confirm passed as `data`. -->
611
597
  <BbConfirmPortal name="remove-member">
612
598
  <template #default="{ data }">
613
599
  <div class="flex flex-col items-center gap-1 text-center">
@@ -637,8 +623,8 @@ const removeMember = async () => {
637
623
  portal: 'remove-member',
638
624
  data: { name: 'Sofia Esposito', role: 'Editor' },
639
625
  variant: 'destructive',
640
- yes: 'Remove',
641
- no: 'Cancel',
626
+ ok: 'Remove',
627
+ cancel: 'Cancel',
642
628
  });
643
629
  result.value = ok
644
630
  ? 'Removed from the workspace'
@@ -648,7 +634,7 @@ const removeMember = async () => {
648
634
  ```
649
635
 
650
636
  When the portal owns its own action buttons, pass `actions: false` to hide the
651
- standard footer and resolve from inside the slot with its `yes` / `no` helpers.
637
+ standard footer and resolve from inside the slot with its `ok` / `cancel` helpers.
652
638
 
653
639
  **Names are checked.** `bitboss-ui check` and the ESLint rule
654
640
  `bitboss-ui/portal-names` (in `recommended`) read every literal
@@ -680,13 +666,13 @@ confirm dialog — no separate `panel`), `sheet` (the bottom sheet on a phone
680
666
  only), `header`, `title`, `content` (the body),
681
667
  `footer` (the action buttons' band) and `close` (the ✕) are forwarded to the
682
668
  `BbDialog` it renders; `text` reaches the confirm's plain-text message (not a
683
- portal's content); `action` reaches every footer button — Yes, No and each
669
+ portal's content); `action` reaches every footer button — OK, Cancel and each
684
670
  custom `actions` entry — at the button's root (a listener runs after the
685
671
  button's own). State `open`. Backdrop is `::backdrop` — CSS, not pt.
686
672
 
687
673
  `<BbHost />` takes no `pt`: every confirm is styled from the build plugin's
688
674
  global map, under `BbConfirm` (or a named scope's, for a confirm called
689
- inside a `<BbConfigScope>`). A muted wash on `header`, Yes/No spread on `footer`, a muted ✕ on
675
+ inside a `<BbConfigScope>`). A muted wash on `header`, OK/Cancel spread on `footer`, a muted ✕ on
690
676
  `close`, a primary ring with offset while `root:open`:
691
677
 
692
678
  ```ts
@@ -723,7 +709,7 @@ The map is typed where you write it by `satisfies BbComponentsMap`, never with a
723
709
 
724
710
  ### Gotchas and anti-patterns
725
711
 
726
- - **Don't hand-build a yes/no dialog** out of `BbDialog` + buttons — busy
712
+ - **Don't hand-build an OK/Cancel dialog** out of `BbDialog` + buttons — busy
727
713
  states, dismissal semantics, ownership and focus handling already live here.
728
714
  - **Two `confirm()` calls without an `await` between them ask both, newest
729
715
  first** — the second covers the first. `await` each one when the questions
@@ -736,7 +722,7 @@ The map is typed where you write it by `satisfies BbComponentsMap`, never with a
736
722
  warning).
737
723
  - `text` beats `portal` — remove `text` when you want the portal body.
738
724
  - With `returning: true`, an implicit dismiss under the default
739
- `dismissAsNo: true` resolves with `no.onClick`'s return value — give No a
725
+ `dismissAsCancel: true` resolves with `cancel.onClick`'s return value — give Cancel a
740
726
  callback that returns a sensible "declined" value.
741
727
  System dismissals (`duration`, `dismissAll()`, owner unmount) still resolve
742
728
  `false`, so handle `false` too.
@@ -749,10 +735,10 @@ The map is typed where you write it by `satisfies BbComponentsMap`, never with a
749
735
  - Keep `title` and `text` specific — name the object and the consequence
750
736
  ("Delete invoice INV-2048? This cannot be undone."), not a generic "Are you
751
737
  sure?".
752
- - The Yes button label should be a verb that matches the action (_Delete_,
738
+ - The OK button label should be a verb that matches the action (_Delete_,
753
739
  _Publish_), not "OK" — the defaults are placeholders, not recommendations.
754
740
  - Focus is trapped in the dialog and returns to the trigger on close. `Escape`
755
- and the backdrop dismiss it (as a No) unless you set `persistent`. The X
741
+ and the backdrop dismiss it (as a Cancel) unless you set `persistent`. The X
756
742
  button is separate: `persistent` does not hide it, `hideClose` does. Use
757
743
  `focusTarget` to focus a specific element (e.g. an input in a portal).
758
744
  - While a callback runs, the dialog blocks every escape hatch by design —
@@ -778,7 +764,7 @@ The map is typed where you write it by `satisfies BbComponentsMap`, never with a
778
764
  | `text` | The confirm's plain-text body — not a portal's content. |
779
765
  | `footer` | The action buttons' band. |
780
766
  | `close` | The ✕. |
781
- | `action` | Every footer button — yes, no and each custom `actions` entry — at the button's root. A broadcast. |
767
+ | `action` | Every footer button — ok, cancel and each custom `actions` entry — at the button's root. A broadcast. |
782
768
 
783
769
  States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
784
770
 
@@ -806,12 +792,10 @@ States are listed in precedence order: when two are on at once and their entries
806
792
  - **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `BbConfirm`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
807
793
  - Listed nodes are the ones `BbConfirm`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbConfirm.tree.json` (a public component in it is a name: its own tree file has the rest).
808
794
 
809
- - `BbConfirm` _(this component)_ — its own template binds: `text` → `div.bb-confirm__text`, `action` → `BbButton`; hands `BbDialog` the pt map `passthrough.forward(DIALOG_PARTS, BB_DIALOG_PT.states)` (ours → theirs)
795
+ - `BbConfirm` _(this component)_ — its own template binds: `action` → `BbDialog`, `text` → `div.bb-confirm__text`; hands `BbDialog` the pt map `passthrough.forward(DIALOG_PARTS, BB_DIALOG_PT.states)` (ours → theirs)
810
796
  - `BbDialog` _(public — [contract](./BbDialog.md))_ — its own pt parts (`BbDialog`): `header` → `div.bb-dialog__header`, `title` → `span.bb-dialog__title`, `description` → `p.bb-dialog__description`, `close` → `CloseButton`, `content` → `div.bb-dialog__content`, `footer` → `div.bb-dialog__footer`; hands `BbOffCanvas` the pt map `{ root: 'root', header: 'header', title: 'title', description: 'description', content: 'content', footer: 'footer', close: 'close', sheet: 'root', }` (ours → theirs); documented CSS variables: `--px`, `--close-size`
811
797
  - `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
812
798
  - `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`; also mounts `CloseButton`
813
- - `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
814
- - `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
815
799
 
816
800
  ## See Also
817
801
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  - Safety level: **Consumer API**
6
6
  - Group: **Overlay**
7
- - Description: Registers named slot content that confirm() renders via `portal`; slot `{ data, yes, no }`.
7
+ - Description: Registers named slot content that confirm() renders via `portal`; slot `{ data, ok, cancel }`.
8
8
  - Usage rule: Prefer this component for consumer-facing implementations.
9
9
  - Implementation source (only when the contract below is not enough): [source/BbConfirmPortal.md](./source/BbConfirmPortal.md)
10
10
 
@@ -20,7 +20,7 @@
20
20
 
21
21
  ## Slots
22
22
 
23
- - `default` — scope: `BbConfirmPortalSlotProps` `{ data: P; yes: () => void; no: () => void }`
23
+ - `default` — scope: `BbConfirmPortalSlotProps` `{ data: P; ok: () => void; cancel: () => void }`
24
24
 
25
25
  ## See Also
26
26
 
@@ -476,6 +476,7 @@ and digit typeahead; the time rail exposes labelled columns. Always pass a
476
476
  | `ampm` | `boolean \| undefined` | `false` | | 12-hour display with an AM/PM column (requires `type="datetime"`); emits stay 24h. |
477
477
  | `anchor` | `ElementOrComponentRef \| undefined` | | | Element or component ref the popover positions itself relative to. Defaults to the activator when omitted (anchor to a larger row while a smaller element stays the click target). |
478
478
  | `boundary` | `ElementOrComponentRefOrSelector \| undefined` | | | Constrains the popover within a bounding element or CSS selector: sideways only, alongside the trigger; it flips at the viewport. |
479
+ | `clearable` | `boolean \| undefined` | `false` | | Clicking the selected date (week, month, year) again clears a single value. Off: re-picking keeps it. `multiple` and `range` ignore it. |
479
480
  | `disabled` | `boolean \| undefined` | `false` | | Disables the activator and the calendar. |
480
481
  | `disableFlip` | `boolean \| undefined` | `false` | | Disable the automatic flip to the opposite side on overflow. |
481
482
  | `eager` | `boolean \| undefined` | `false` | | Render popover content before it is first shown. |
@@ -569,12 +570,6 @@ Set these on the element, or on a class you put on it, to retune this component
569
570
  | `--py` | `.bb-date-picker__panel` | `8px` | |
570
571
  | `--nav-button-h` | `.bb-date-picker__panel` | `24px` | |
571
572
  | `--unit-row` | `.bb-date-picker__panel` | `calc(var(--cell) * 1.25)` | Row pitch for the coarse grids (month/year), where a "row" is one of four month rows rather than a week. Roomier than --cell because twelve months in a 4×3 grid have space the 6×7 day grid does not. |
572
- | `--sheet-cell` | `.bb-date-picker__sheet` | `40px` | |
573
- | `--cell` | `.bb-date-picker__sheet` | `var(--sheet-cell)` | |
574
- | `--px` | `.bb-date-picker__sheet` | `6px` | |
575
- | `--py` | `.bb-date-picker__sheet` | `8px` | |
576
- | `--nav-button-h` | `.bb-date-picker__sheet` | `40px` | |
577
- | `--unit-row` | `.bb-date-picker__sheet` | `calc(var(--cell) * 1.25)` | |
578
573
  | `--sheet-cell` | `.bb-date-picker__panel--sheet` | `inherit` | |
579
574
  | `--cell` | `.bb-date-picker__panel--sheet` | `inherit` | |
580
575
  | `--px` | `.bb-date-picker__panel--sheet` | `inherit` | |