bitboss-ui 3.0.0-beta.32 → 3.0.0-beta.35

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 (346) hide show
  1. package/README.md +49 -27
  2. package/bin/bitboss-ui.mjs +94 -6
  3. package/dist/ai/BbAccordion.md +19 -19
  4. package/dist/ai/BbAsterisk.md +3 -2
  5. package/dist/ai/BbAvatar.md +1 -0
  6. package/dist/ai/BbBadge.md +13 -12
  7. package/dist/ai/BbBadgeButton.md +8 -7
  8. package/dist/ai/BbBreadcrumbs.md +3 -3
  9. package/dist/ai/BbButton.md +29 -7
  10. package/dist/ai/BbCalendar.md +5 -4
  11. package/dist/ai/BbCheckbox.md +7 -4
  12. package/dist/ai/BbCheckboxGroup.md +256 -15
  13. package/dist/ai/BbColorInput.md +5 -5
  14. package/dist/ai/BbColorPalette.md +9 -1
  15. package/dist/ai/BbConfirm.md +7 -4
  16. package/dist/ai/BbDatePicker.md +9 -9
  17. package/dist/ai/BbDatePickerInput.md +7 -7
  18. package/dist/ai/BbDialog.md +20 -10
  19. package/dist/ai/BbDropdown.md +103 -16
  20. package/dist/ai/BbDropdownButton.md +26 -12
  21. package/dist/ai/BbDropdownGroup.md +4 -3
  22. package/dist/ai/BbDropzone.md +1 -1
  23. package/dist/ai/BbIndicator.md +6 -6
  24. package/dist/ai/BbNumberInput.md +10 -10
  25. package/dist/ai/BbOffCanvas.md +35 -14
  26. package/dist/ai/BbPagination.md +32 -18
  27. package/dist/ai/BbPopover.md +5 -5
  28. package/dist/ai/BbProgress.md +38 -24
  29. package/dist/ai/BbRadio.md +5 -3
  30. package/dist/ai/BbRadioGroup.md +162 -51
  31. package/dist/ai/BbRating.md +109 -27
  32. package/dist/ai/BbSelect.md +20 -9
  33. package/dist/ai/BbSelectPopover.md +15 -14
  34. package/dist/ai/BbSlider.md +46 -28
  35. package/dist/ai/BbSmoothHeight.md +2 -2
  36. package/dist/ai/BbSwitch.md +20 -21
  37. package/dist/ai/BbSwitchGroup.md +70 -10
  38. package/dist/ai/BbTable.md +6 -6
  39. package/dist/ai/BbTabs.md +3 -3
  40. package/dist/ai/BbTabsList.md +1 -1
  41. package/dist/ai/BbTabsPanes.md +1 -1
  42. package/dist/ai/BbTabsRoot.md +1 -1
  43. package/dist/ai/BbTag.md +12 -9
  44. package/dist/ai/BbTextInput.md +15 -10
  45. package/dist/ai/BbTextarea.md +6 -6
  46. package/dist/ai/BbTimePicker.md +9 -1
  47. package/dist/ai/BbTimePickerInput.md +18 -3
  48. package/dist/ai/BbToast.md +1 -1
  49. package/dist/ai/BbTree.md +7 -0
  50. package/dist/ai/ChipsBox.md +7 -6
  51. package/dist/ai/CommonField.md +2 -2
  52. package/dist/ai/OptionsContainer.md +4 -2
  53. package/dist/ai/changelog.json +387 -4
  54. package/dist/ai/components.json +3105 -566
  55. package/dist/ai/composables/useBbDropdownContext.md +168 -0
  56. package/dist/ai/composables/useBbFormContext.md +15 -1
  57. package/dist/ai/composables/useBbTableContext.md +30 -14
  58. package/dist/ai/composables/useConfirm.md +2 -1
  59. package/dist/ai/composables/useMobile.md +17 -10
  60. package/dist/ai/composables/useToast.md +3 -0
  61. package/dist/ai/guides/agent-contract.md +4 -2
  62. package/dist/ai/guides/design-language.md +20 -17
  63. package/dist/ai/guides/design-tokens.md +49 -34
  64. package/dist/ai/guides/icons-policy.md +1 -1
  65. package/dist/ai/guides/inline-edit-playbook.md +6 -1
  66. package/dist/ai/guides/installation-and-plugin-setup.md +58 -21
  67. package/dist/ai/guides/migration/components/bb-accordion.md +8 -0
  68. package/dist/ai/guides/migration/components/bb-button.md +3 -3
  69. package/dist/ai/guides/migration/components/bb-checkbox-group.md +43 -29
  70. package/dist/ai/guides/migration/components/bb-checkbox.md +1 -0
  71. package/dist/ai/guides/migration/components/bb-color-input.md +5 -5
  72. package/dist/ai/guides/migration/components/bb-date-picker-input.md +10 -9
  73. package/dist/ai/guides/migration/components/bb-dropdown-button.md +7 -1
  74. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
  75. package/dist/ai/guides/migration/components/bb-dropzone.md +8 -0
  76. package/dist/ai/guides/migration/components/bb-intersection.md +1 -1
  77. package/dist/ai/guides/migration/components/bb-popover.md +7 -0
  78. package/dist/ai/guides/migration/components/bb-rating.md +8 -7
  79. package/dist/ai/guides/migration/components/bb-select-popover.md +1 -1
  80. package/dist/ai/guides/migration/components/bb-select.md +2 -1
  81. package/dist/ai/guides/migration/components/bb-slider.md +7 -6
  82. package/dist/ai/guides/migration/components/bb-table.md +6 -4
  83. package/dist/ai/guides/migration/components/bb-tag.md +1 -0
  84. package/dist/ai/guides/migration/components/bb-text-input.md +6 -6
  85. package/dist/ai/guides/migration/components/bb-toast.md +1 -1
  86. package/dist/ai/guides/migration/components/bb-tree.md +8 -8
  87. package/dist/ai/guides/migration/components/use-confirm.md +8 -0
  88. package/dist/ai/guides/migration/v2-to-v3.md +150 -115
  89. package/dist/ai/guides/options-items-playbook.md +12 -4
  90. package/dist/ai/guides/page-shell.md +1 -1
  91. package/dist/ai/guides/passthrough.md +59 -23
  92. package/dist/ai/guides/validated-forms.md +8 -2
  93. package/dist/ai/index.md +2 -1
  94. package/dist/ai/recipes/inertia/approvals-inbox.md +21 -4
  95. package/dist/ai/recipes/inertia/inline-edit-workspace.md +26 -9
  96. package/dist/ai/recipes/inertia/onboarding.md +28 -6
  97. package/dist/ai/recipes/inertia/ownership-atlas.md +1 -0
  98. package/dist/ai/recipes/inertia/record-form.md +9 -1
  99. package/dist/ai/recipes/inertia/records-workspace.md +52 -25
  100. package/dist/ai/recipes/inertia/upload-center.md +16 -4
  101. package/dist/ai/recipes/inertia/wizard-form.md +16 -3
  102. package/dist/ai/recipes/nuxt/approvals-inbox.md +21 -4
  103. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +26 -9
  104. package/dist/ai/recipes/nuxt/onboarding.md +28 -6
  105. package/dist/ai/recipes/nuxt/record-form.md +22 -4
  106. package/dist/ai/recipes/nuxt/records-workspace.md +48 -24
  107. package/dist/ai/recipes/nuxt/upload-center.md +15 -3
  108. package/dist/ai/recipes/nuxt/wizard-form.md +16 -3
  109. package/dist/ai/recipes/vue/approvals-inbox.md +21 -4
  110. package/dist/ai/recipes/vue/inline-edit-workspace.md +26 -9
  111. package/dist/ai/recipes/vue/onboarding.md +30 -6
  112. package/dist/ai/recipes/vue/record-form.md +22 -4
  113. package/dist/ai/recipes/vue/records-workspace.md +53 -25
  114. package/dist/ai/recipes/vue/upload-center.md +16 -4
  115. package/dist/ai/recipes/vue/wizard-form.md +18 -3
  116. package/dist/ai/source/BbAccordion.md +7 -4
  117. package/dist/ai/source/BbAvatar.md +4 -0
  118. package/dist/ai/source/BbBadge.md +41 -38
  119. package/dist/ai/source/BbBadgeButton.md +41 -38
  120. package/dist/ai/source/BbButton.md +39 -13
  121. package/dist/ai/source/BbCalendar.md +18 -10
  122. package/dist/ai/source/BbCheckbox.md +10 -7
  123. package/dist/ai/source/BbCheckboxGroup.md +214 -70
  124. package/dist/ai/source/BbColorInput.md +13 -6
  125. package/dist/ai/source/BbColorPalette.md +22 -8
  126. package/dist/ai/source/BbDatePicker.md +12 -12
  127. package/dist/ai/source/BbDatePickerInput.md +24 -6
  128. package/dist/ai/source/BbDialog.md +84 -24
  129. package/dist/ai/source/BbDropdown.md +48 -17
  130. package/dist/ai/source/BbDropdownButton.md +55 -14
  131. package/dist/ai/source/BbDropdownGroup.md +29 -8
  132. package/dist/ai/source/BbDropzone.md +30 -9
  133. package/dist/ai/source/BbIndicator.md +23 -18
  134. package/dist/ai/source/BbNumberInput.md +17 -7
  135. package/dist/ai/source/BbOffCanvas.md +192 -15
  136. package/dist/ai/source/BbPagination.md +48 -20
  137. package/dist/ai/source/BbPopover.md +4 -4
  138. package/dist/ai/source/BbProgress.md +43 -29
  139. package/dist/ai/source/BbRadio.md +10 -7
  140. package/dist/ai/source/BbRadioGroup.md +207 -68
  141. package/dist/ai/source/BbRating.md +64 -41
  142. package/dist/ai/source/BbSelect.md +47 -22
  143. package/dist/ai/source/BbSelectPopover.md +141 -16
  144. package/dist/ai/source/BbSlider.md +172 -104
  145. package/dist/ai/source/BbSwitch.md +4 -4
  146. package/dist/ai/source/BbSwitchGroup.md +178 -61
  147. package/dist/ai/source/BbTable.md +28 -21
  148. package/dist/ai/source/BbTabsList.md +12 -3
  149. package/dist/ai/source/BbTag.md +15 -8
  150. package/dist/ai/source/BbTextInput.md +29 -24
  151. package/dist/ai/source/BbTextarea.md +12 -6
  152. package/dist/ai/source/BbTimePicker.md +11 -4
  153. package/dist/ai/source/BbTimePickerInput.md +14 -5
  154. package/dist/ai/source/BbTooltip.md +32 -6
  155. package/dist/ai/source/CommonField.md +138 -50
  156. package/dist/ai/source/CommonFieldInput.md +6 -1
  157. package/dist/ai/source/CommonTimeSelector.md +4 -2
  158. package/dist/ai/source/GroupedListBox.md +80 -85
  159. package/dist/ai/source/OptionsContainer.md +148 -93
  160. package/dist/assets/svgs/star.svg_raw.js +4 -0
  161. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +10 -10
  162. package/dist/components/BbAccordion/types.d.ts +1 -1
  163. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +5 -4
  164. package/dist/components/BbCalendar/types.d.ts +1 -1
  165. package/dist/components/BbCalendar/useCalendarGrid.js +21 -21
  166. package/dist/components/BbCalendar/useDayGrid.js +14 -14
  167. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +7 -7
  168. package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +3 -3
  169. package/dist/components/BbCheckbox/types.d.ts +6 -3
  170. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +77 -71
  171. package/dist/components/BbCheckboxGroup/types.d.ts +33 -8
  172. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +14 -14
  173. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +3 -3
  174. package/dist/components/BbColorInput/types.d.ts +11 -4
  175. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +1 -1
  176. package/dist/components/BbDatePicker/types.d.ts +1 -1
  177. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -4
  178. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +3 -3
  179. package/dist/components/BbDatePickerInput/types.d.ts +11 -4
  180. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +138 -138
  181. package/dist/components/BbDialog/types.d.ts +6 -1
  182. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +279 -279
  183. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +333 -305
  184. package/dist/components/BbDropdown/normalizeGroups.js +1 -0
  185. package/dist/components/BbDropdown/types.d.ts +16 -3
  186. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +5 -0
  187. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +55 -25
  188. package/dist/components/BbDropdownButton/types.d.ts +19 -7
  189. package/dist/components/BbDropdownButton/types.js +2 -0
  190. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +2 -2
  191. package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +143 -140
  192. package/dist/components/BbDropzone/types.d.ts +2 -1
  193. package/dist/components/BbIcon/iconCache.js +2 -2
  194. package/dist/components/BbIndicator/types.d.ts +1 -1
  195. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +6 -6
  196. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +4 -4
  197. package/dist/components/BbNumberInput/types.d.ts +11 -4
  198. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +217 -211
  199. package/dist/components/BbOffCanvas/types.d.ts +6 -1
  200. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +59 -55
  201. package/dist/components/BbPagination/types.d.ts +16 -10
  202. package/dist/components/BbPagination/types.js +2 -0
  203. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +13 -13
  204. package/dist/components/BbPopover/types.d.ts +2 -2
  205. package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +14 -13
  206. package/dist/components/BbProgress/types.d.ts +8 -4
  207. package/dist/components/BbProgress/types.js +1 -1
  208. package/dist/components/BbRadio/BbRadio.vue.d.ts +7 -7
  209. package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +3 -3
  210. package/dist/components/BbRadio/types.d.ts +6 -3
  211. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +37 -31
  212. package/dist/components/BbRadioGroup/types.d.ts +33 -8
  213. package/dist/components/BbRating/BbRating.vue.d.ts +6 -6
  214. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +111 -112
  215. package/dist/components/BbRating/types.d.ts +16 -5
  216. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +190 -166
  217. package/dist/components/BbSelect/types.d.ts +18 -8
  218. package/dist/components/BbSelect/types.js +2 -0
  219. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +442 -408
  220. package/dist/components/BbSlider/BbSlider.vue.d.ts +4 -4
  221. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +232 -193
  222. package/dist/components/BbSlider/types.d.ts +28 -10
  223. package/dist/components/BbSlider/types.js +5 -0
  224. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +7 -7
  225. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +3 -3
  226. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +77 -71
  227. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +103 -100
  228. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +21 -21
  229. package/dist/components/BbTag/BbTag.vue.d.ts +6 -6
  230. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +91 -91
  231. package/dist/components/BbTag/types.d.ts +11 -5
  232. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +6 -6
  233. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +9 -16
  234. package/dist/components/BbTextInput/types.d.ts +11 -5
  235. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +6 -6
  236. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +3 -3
  237. package/dist/components/BbTextarea/types.d.ts +11 -5
  238. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
  239. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -4
  240. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +3 -3
  241. package/dist/components/BbTimePickerInput/types.d.ts +13 -4
  242. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +91 -90
  243. package/dist/components/CommonField/CommonField.vue.d.ts +1 -1
  244. package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +60 -53
  245. package/dist/components/CommonField/types.d.ts +7 -6
  246. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +1 -1
  247. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +137 -124
  248. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +49 -33
  249. package/dist/components/OptionsContainer/types.d.ts +15 -3
  250. package/dist/composables/useBaseOptions.js +47 -39
  251. package/dist/composables/useBbTableContext.js +7 -6
  252. package/dist/composables/useBbTabsContext.js +64 -64
  253. package/dist/composables/useClosingInert.d.ts +4 -4
  254. package/dist/composables/useCoherence.js +1 -1
  255. package/dist/composables/useConfirm.js +48 -42
  256. package/dist/composables/useKeyboardInset.d.ts +28 -0
  257. package/dist/composables/useKeyboardInset.js +32 -0
  258. package/dist/composables/usePassthrough.js +14 -4
  259. package/dist/deprecation/ai-deprecations.json.d.ts +336 -104
  260. package/dist/deprecation/ai-deprecations.json.js +1 -1
  261. package/dist/i18n/index.d.ts +10 -16
  262. package/dist/index.d.ts +1 -18
  263. package/dist/llms-full.txt +2482 -927
  264. package/dist/llms-medium.txt +83 -41
  265. package/dist/llms.txt +4 -3
  266. package/dist/nuxt-module.d.ts +0 -17
  267. package/dist/nuxt.js +1 -1
  268. package/dist/plugin.js +18 -17
  269. package/dist/project-dts.d.ts +48 -0
  270. package/dist/project-dts.js +99 -0
  271. package/dist/runtime/nuxt-plugin.js +24 -23
  272. package/dist/styles.css +3 -2
  273. package/dist/types/AlertVariant.d.ts +10 -1
  274. package/dist/types/BadgeVariant.d.ts +10 -1
  275. package/dist/types/ButtonVariant.d.ts +12 -1
  276. package/dist/types/ConfirmVariant.d.ts +8 -1
  277. package/dist/types/DropdownItemVariant.d.ts +8 -1
  278. package/dist/types/FieldLayout.d.ts +32 -0
  279. package/dist/types/IndicatorVariant.d.ts +11 -1
  280. package/dist/types/InputVariant.d.ts +9 -1
  281. package/dist/types/PtScope.d.ts +8 -6
  282. package/dist/types/RegistryKey.d.ts +10 -0
  283. package/dist/types/TabsVariant.d.ts +9 -1
  284. package/dist/types/ToastVariant.d.ts +11 -1
  285. package/dist/types/TooltipVariant.d.ts +8 -1
  286. package/dist/types/ptComponentMap.d.ts +5 -5
  287. package/dist/utilities/functions/isImeComposing.d.ts +7 -0
  288. package/dist/utilities/functions/isImeComposing.js +4 -0
  289. package/dist/utils/overlayEscapeStack.d.ts +10 -0
  290. package/dist/utils/overlayEscapeStack.js +5 -3
  291. package/dist/utils/versionCheck.d.ts +19 -0
  292. package/dist/utils/versionCheck.js +18 -0
  293. package/dist/validated/BbCheckbox.vue.d.ts +2 -2
  294. package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +1 -1
  295. package/dist/validated/BbCheckboxGroup.vue.d.ts +4 -2
  296. package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +4 -2
  297. package/dist/validated/BbColorInput.vue.d.ts +2 -2
  298. package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +1 -1
  299. package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +1 -1
  300. package/dist/validated/BbDropzone.vue.d.ts +2 -2
  301. package/dist/validated/BbNumberInput.vue.d.ts +2 -2
  302. package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
  303. package/dist/validated/BbRadioGroup.vue.d.ts +4 -2
  304. package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +4 -2
  305. package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +1 -1
  306. package/dist/validated/BbSelect.vue.d.ts +19 -1
  307. package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +19 -1
  308. package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +36 -1
  309. package/dist/validated/BbSwitch.vue.d.ts +2 -2
  310. package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +1 -1
  311. package/dist/validated/BbSwitchGroup.vue.d.ts +4 -2
  312. package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +4 -2
  313. package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +1 -1
  314. package/dist/validated/BbTextInput.vue.d.ts +2 -2
  315. package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +1 -1
  316. package/dist/validated/BbTextarea.vue.d.ts +2 -2
  317. package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +1 -1
  318. package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +1 -1
  319. package/dist/validated/index.d.ts +0 -17
  320. package/dist/vite-plugin.d.ts +71 -29
  321. package/dist/vite.js +337 -342
  322. package/llms.txt +4 -3
  323. package/package.json +8 -5
  324. package/scripts/lib/check-fix.mjs +129 -0
  325. package/scripts/lib/component-attr-targets.ts +117 -0
  326. package/scripts/lib/component-tree.ts +43 -6
  327. package/scripts/lib/eslint-disable.mjs +119 -0
  328. package/scripts/lib/eslint-plugin.d.ts +3 -1
  329. package/scripts/lib/eslint-plugin.mjs +159 -0
  330. package/scripts/lib/html-attributes.mjs +221 -1
  331. package/scripts/lib/validate-bb-markup.mjs +17 -3
  332. package/dist/alert-variants.d.ts +0 -19
  333. package/dist/badge-variants.d.ts +0 -19
  334. package/dist/button-variants.d.ts +0 -21
  335. package/dist/confirm-variants.d.ts +0 -17
  336. package/dist/dropdown-item-variants.d.ts +0 -17
  337. package/dist/indicator-variants.d.ts +0 -20
  338. package/dist/input-variants.d.ts +0 -18
  339. package/dist/locale-registry.d.ts +0 -37
  340. package/dist/pt-scope-registry.d.ts +0 -15
  341. package/dist/tabs-variants.d.ts +0 -18
  342. package/dist/toast-variants.d.ts +0 -20
  343. package/dist/tooltip-variants.d.ts +0 -17
  344. package/dist/types/InputDirection.d.ts +0 -15
  345. package/dist/utils/passthroughTestKit.d.ts +0 -54
  346. package/dist/utils/swipeTestKit.d.ts +0 -9
@@ -109,7 +109,7 @@ restate a state:
109
109
  --bg-hover: color-mix(in oklab, var(--bb-primary) 90%, black);
110
110
  --bg-pressed: color-mix(in oklab, var(--bb-primary) 80%, black);
111
111
  --fg: var(--bb-primary-fg);
112
- --ring: var(--bb-ring);
112
+ --ring-color: var(--bb-ring);
113
113
  }
114
114
  ```
115
115
 
@@ -156,10 +156,10 @@ design and never reads the disabled trio — see _Loading and async actions_.)
156
156
  Never use a variant name that is neither built-in nor registered in the
157
157
  project's `vite.config.*` / `nuxt.config.*`. Unsure what's currently legal in
158
158
  a given project (built-ins plus whatever it has registered)? Don't guess from
159
- an example — the plugin regenerates
160
- `node_modules/bitboss-ui/button-variants.d.ts` on every build; that file
161
- **is** the closed, machine-readable list of every legal `variant` value for
162
- that project, registrations included (see
159
+ an example: the built-ins are `primary`, `outline`, `secondary`, `ghost`,
160
+ `destructive` and `link`, and the project's own names are the
161
+ `ButtonVariantRegistry` entries in its committed `bitboss-ui.d.ts` (the file
162
+ the plugin writes from `buttonVariants`; see
163
163
  [Installation and Plugin Setup](./guides/installation-and-plugin-setup.md) §
164
164
  variants).
165
165
 
@@ -590,7 +590,9 @@ Escape hatches, when the default isn't right:
590
590
  handler opens a dialog and you don't want a spinner flash).
591
591
  - `interactive-while-loading` — keeps the button clickable while it shows the
592
592
  loading state, for controls that must stay interactive (this is how the
593
- `BbDropdownButton` caret stays usable while the primary action runs).
593
+ `BbDropdownButton` caret stays usable while the primary action runs). The
594
+ soft-disable is dropped whole: no `aria-disabled`, the button stays in the tab
595
+ order, and the pointer still reaches it.
594
596
 
595
597
  The visually-hidden loading announcement is localized via the plugin's `locale`
596
598
  option. `disabled` and `loading` are independent props, and setting both is
@@ -848,6 +850,25 @@ never instead of it. The full grammar, the merge rules and the global map are
848
850
  in the [passthrough guide](./guides/passthrough.md); a look several
849
851
  buttons share is a `variant`, not a `pt`.
850
852
 
853
+ **Padding, radius, font size and gap are the button's own.** `root` declares
854
+ `padding-left` / `padding-right`, `border-radius`, `font-size` and `gap`,
855
+ reading them from the active locals `--px`, `--r`, `--fs` and `--gap`, which
856
+ the size class (`.bb-button--md` by default) sets. So in the default,
857
+ unlayered build `pt:root="px-6 rounded-lg text-lg gap-2"` changes nothing, and
858
+ `p-4` half-applies (top and bottom only) — measured in
859
+ [Installation](./guides/installation-and-plugin-setup.md) § _What "the utility
860
+ loses" actually means_. An arbitrary-property class (`[--r:12px]`) loses the
861
+ same way: the size class out-specifies it. The object prop above, like any
862
+ such class, only lands with `cssLayers: TAILWIND_V4_LAYERS`, where every
863
+ utility wins. What works in every build:
864
+
865
+ - a different `size` step, which moves height, padding, font, radius and icon
866
+ together;
867
+ - the locals as an inline style, which nothing in the sheet outranks —
868
+ `:pt:root="{ style: { '--r': '9999px', '--px': '20px' } }"`;
869
+ - a utility with Tailwind's important suffix (`px-6!`, `[--r:12px]!`), or a
870
+ rule of your own on `.bb-button` that out-specifies the size class.
871
+
851
872
  ### Works well with
852
873
 
853
874
  - `BbDropdownButton` — escalate to it when a primary action grows close
@@ -1162,7 +1183,8 @@ Set these on the element, or on a class you put on it, to retune this component
1162
1183
  | `--bg-pressed` | `var(--bg)` | fill while [aria-pressed='true'] |
1163
1184
  | `--fg` | `initial` | label and icons (icons paint currentColor) |
1164
1185
  | `--border-color` | `transparent` | the frame; its width is --bw |
1165
- | `--ring` | `transparent` | focus ring, drawn --bb-ring-size outside the border |
1186
+ | `--ring-color` | `transparent` | focus ring colour, per variant |
1187
+ | `--ring-size` | `var(--bb-ring-size)` | focus ring width, outside the border |
1166
1188
  | `--bw` | `var(--bb-border-w)` | border width |
1167
1189
  | `--fg-hover` | `var(--fg)` | label and icons on hover (and focus-visible) |
1168
1190
  | `--border-hover` | `var(--border-color)` | the frame on hover (and focus-visible) |
@@ -468,7 +468,7 @@ box carries no role of its own and only the grid inside is announced.
468
468
  `pt` reaches a named part with a class list — or, in the object form, a style
469
469
  and attributes — optionally only while a state is on. Parts: `root` (the
470
470
  calendar's box, where a consumer `class` lands too; it carries the sizing
471
- tokens, so `pt:root="[--pad-x:2px]"` tightens the padding and the grid width
471
+ tokens, so `pt:root="[--px:2px]"` tightens the padding and the grid width
472
472
  follows), `header` (the navigation bar), `arrow` (the previous / next
473
473
  buttons), `month` and `year` (the heading buttons), `columnHeader` (each
474
474
  weekday letter), `day` (one whole day cell) and `dayButton` (the button
@@ -547,7 +547,7 @@ the page is `BbDatePicker`.
547
547
 
548
548
  | Part | What it is |
549
549
  | --- | --- |
550
- | `root` | The calendar's box: the grid and, with `type="datetime"`, the time rail beside it. A consumer `class` lands here. It carries the sizing tokens — `pt:root="[--cell:36px]"` widens the whole calendar, `pt:root="[--pad-x:2px]"` tightens its padding — and the grid's width follows. |
550
+ | `root` | The calendar's box: the grid and, with `type="datetime"`, the time rail beside it. A consumer `class` lands here. It carries the sizing tokens — `pt:root="[--cell:36px]"` widens the whole calendar, `pt:root="[--px:2px]"` tightens its padding — and the grid's width follows. |
551
551
  | `header` | The navigation bar: the previous / next arrows and the month / year headings. |
552
552
  | `arrow` | The previous / next buttons — a broadcast. |
553
553
  | `month` | The month heading button; it opens the month panel. |
@@ -593,9 +593,10 @@ Set these on the element, or on a class you put on it, to retune this component
593
593
 
594
594
  | Property | Set on | Default | What it is |
595
595
  | --- | --- | --- | --- |
596
+ | `--bg` | `.bb-calendar__button-menu` | `var(--bb-panel)` | |
596
597
  | `--cell` | `.bb-calendar` | `28px` | Cell size drives all grid math: 224px ÷ 7 = 32px exactly |
597
- | `--pad-x` | `.bb-calendar` | `6px` | |
598
- | `--pad-y` | `.bb-calendar` | `8px` | |
598
+ | `--px` | `.bb-calendar` | `6px` | |
599
+ | `--py` | `.bb-calendar` | `8px` | |
599
600
  | `--nav-button-h` | `.bb-calendar` | `24px` | |
600
601
  | `--day-slot-allowance` | `.bb-calendar` | `0px` | Allowance for the day slot append area - needed for the slot to be visible |
601
602
  | `--unit-row` | `.bb-calendar` | `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. |
@@ -476,12 +476,15 @@ const toggleAll = (checked: boolean) => {
476
476
  </script>
477
477
  ```
478
478
 
479
- ### Layout: direction, alignment, `reverse`
479
+ ### Layout: `layout`, alignment, `reverse`
480
480
 
481
- - `direction` defaults to `'auto'` (label and box size to their content, on one
481
+ - `layout` defaults to `'auto'` (label and box size to their content, on one
482
482
  line). `'horizontal'` splits label/box 50-50; `'vertical'` stacks them; a
483
483
  two-token pattern like `"x xxxxxxx"` splits proportionally by token length —
484
484
  the first token sizes the **visually first** element, the second the other.
485
+ `'label-fill'` hands the label the free space and keeps the box at its own
486
+ size; with `reverse` that is the settings row — label on the left, box on
487
+ the trailing edge. `'input-fill'` is the other way round.
485
488
  - The box renders **before** the label by default — the conventional checkbox
486
489
  arrangement. Setting `reverse` swaps the label in front of the box. It is an
487
490
  ordinary opt-in boolean: unset and `:reverse="false"` both give box-first,
@@ -490,7 +493,7 @@ const toggleAll = (checked: boolean) => {
490
493
  invisible from outside. Earlier revisions of this guide described that
491
494
  negation as a consumer-facing quirk — it is not.)
492
495
  - `input-position` / `label-position` (`'left' | 'center' | 'right'`) align box
493
- and label text inside their columns — useful with percentage directions.
496
+ and label text inside their columns — useful with ratio layouts.
494
497
  - `hide-label` keeps the label for screen readers but hides it visually — only
495
498
  for dense composites where visible text lives elsewhere.
496
499
  - `id` is auto-generated for the label→input wiring; pass your own only when
@@ -674,7 +677,6 @@ map are in the [passthrough guide](./guides/passthrough.md).
674
677
  | `autofocus` | `Booleanish \| undefined` | | | Sets autofocus on page load. |
675
678
  | `checked` | `boolean \| undefined` | `undefined` | | Defines the input as checked. |
676
679
  | `description` | `string \| undefined` | | | Descriptive text displayed below the label and above the input. Unlike the hint it is always visible, and it is linked to the input via `aria-describedby` (after any `errors` / `warnings`, before the `hint`). |
677
- | `direction` | `InputDirection \| undefined` | `"auto"` | | Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`. |
678
680
  | `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
679
681
  | `errors` | `string \| string[] \| undefined` | | | Can be a string or an array of string containing the messages to display. They render in an `aria-live="polite"` region (announced when they appear) and, while the list is non-empty, are referenced FIRST from the control's `aria-describedby… |
680
682
  | `falseValue` | `any` | | | Value of the input when unchecked. It handles any kind of serializable object. |
@@ -687,6 +689,7 @@ map are in the [passthrough guide](./guides/passthrough.md).
687
689
  | `inputPosition` | `"left" \| "center" \| "right" \| undefined` | `"left"` | | Sets the alignment of the input. Since inputs are inline block they can be aligned just as text can. |
688
690
  | `label` | `string` | | yes | Text content of the label of the element. |
689
691
  | `labelPosition` | `"left" \| "center" \| "right" \| undefined` | | | Sets the text alignment of the label. |
692
+ | `layout` | `FieldLayout \| undefined` | `"auto"` | | How the label and the input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'` (the label takes the free space, the input keeps its size), `'input-fill'` (the other way round), or a two-word ratio pattern like `'xx… |
690
693
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
691
694
  | `name` | `string \| undefined` | | | Defines the name of the input. |
692
695
  | `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
@@ -148,12 +148,12 @@ control.
148
148
  <div class="grid max-w-sm gap-3 rounded-(--bb-radius) border p-3">
149
149
  <BbCheckboxGroup
150
150
  v-model="addons"
151
- input-direction="vertical"
152
151
  :item-props="{ description: 'summary' }"
153
152
  item-text="name"
154
153
  item-value="id"
155
154
  :items="catalog"
156
155
  legend="Add-ons"
156
+ list-layout="vertical"
157
157
  name="addons"
158
158
  >
159
159
  <!-- The group's OWN description, under the legend. A slot, so it can
@@ -265,9 +265,9 @@ choice out. Pair it with a `hint` that states the limit.
265
265
  v-model="topics"
266
266
  compact
267
267
  hint="You can change these anytime."
268
- input-direction="horizontal"
269
268
  :items="allTopics"
270
269
  legend="Topics"
270
+ list-layout="horizontal"
271
271
  :max="3"
272
272
  name="topics"
273
273
  persistent-hint
@@ -354,11 +354,18 @@ disabling it.
354
354
 
355
355
  ### Layout and density
356
356
 
357
- - `input-direction` (`'horizontal' | 'vertical'`) arranges the **options**
358
- within the fieldset — a row for compact filter bars, a stack for readability.
359
- - `direction` arranges the **legend against the options block** (the outer
360
- label/control split): `'auto'`, `'horizontal'`, `'vertical'`, or a
361
- proportional pattern like `'xx xxxxxx'`.
357
+ - `list-layout` arranges the **options** within the fieldset: `'horizontal'`
358
+ (the default — a wrapping row, for compact filter bars), `'vertical'` (a
359
+ stack, each row its own width), `'vertical-stretch'` (a stack, each row as
360
+ wide as the list) or `'tiles'` (equal-size boxes that wrap as the field
361
+ narrows; `pt:list="[--tile-min-width:160px]"` sets how narrow one gets).
362
+ - `item-layout` arranges **each row** — its input against its label — with the
363
+ same keywords as `layout`; `item-reverse` swaps the two. A settings list is
364
+ `list-layout="vertical-stretch" item-layout="label-fill" item-reverse`: the
365
+ label takes the row, the input sits at the trailing edge.
366
+ - `layout` arranges the **legend against the options block** (the outer
367
+ split): `'auto'`, `'horizontal'`, `'vertical'`, `'label-fill'`,
368
+ `'input-fill'`, or a proportional pattern like `'xx xxxxxx'`.
362
369
  - `compact` tightens per-option spacing for dense groups.
363
370
  - `input-position` / `legend-position` (`'left' | 'center' | 'right'`) align the
364
371
  options and the legend text within their columns.
@@ -368,6 +375,238 @@ disabling it.
368
375
  - `hide-legend` keeps the legend for assistive tech but hides it visually;
369
376
  `hide-label` hides the individual option labels (dense composites only).
370
377
 
378
+ #### Layout recipes
379
+
380
+ Three ready compositions, each driven by `list-layout` / `item-layout` with
381
+ `pt` only for the look.
382
+
383
+ A **filter facet** — every row as wide as the panel, the label cell filling it
384
+ so the count sits on the trailing edge:
385
+
386
+ **Filter facet with counts**
387
+
388
+ ```vue
389
+ <template>
390
+ <div class="w-64 rounded-(--bb-radius) border bg-(--bb-panel) p-1.5">
391
+ <div class="flex items-center justify-between px-2 pt-1 pb-1.5">
392
+ <span class="text-sm font-medium">Status</span>
393
+ <BbButton
394
+ :disabled="!statuses.length"
395
+ size="xs"
396
+ variant="ghost"
397
+ @click="statuses = []"
398
+ >Clear</BbButton
399
+ >
400
+ </div>
401
+ <BbCheckboxGroup
402
+ v-model="statuses"
403
+ hide-legend
404
+ item-layout="label-fill"
405
+ item-text="name"
406
+ item-value="id"
407
+ :items="options"
408
+ legend="Status"
409
+ list-layout="vertical-stretch"
410
+ name="status"
411
+ pt:item="rounded-[calc(var(--bb-radius)-4px)] px-2 py-1.5 hover:bg-(--bb-muted)"
412
+ pt:label="text-sm"
413
+ pt:list="[--row-gap:0px]"
414
+ >
415
+ <template #label="{ item }">
416
+ <span class="flex items-baseline justify-between gap-3">
417
+ <span>{{ item.name }}</span>
418
+ <span class="text-xs text-(--bb-text-muted) tabular-nums">{{
419
+ item.count
420
+ }}</span>
421
+ </span>
422
+ </template>
423
+ </BbCheckboxGroup>
424
+ </div>
425
+ </template>
426
+ <script setup lang="ts">
427
+ import { ref } from 'vue';
428
+ import { BbButton, BbCheckboxGroup } from 'bitboss-ui';
429
+
430
+ type Status = { id: string; name: string; count: number };
431
+
432
+ // A filter facet. `list-layout="vertical-stretch"` makes every row as wide as
433
+ // the panel (the whole row is the hit area, so the hover wash reads as one
434
+ // target) and `item-layout="label-fill"` hands the label cell the free space,
435
+ // so a flex row inside the `#label` slot pushes the count to the trailing
436
+ // edge. The visible heading is our own, beside the Clear action; the legend
437
+ // stays for assistive tech (`hide-legend`).
438
+ const options: Status[] = [
439
+ { id: 'draft', name: 'Draft', count: 12 },
440
+ { id: 'open', name: 'Open', count: 48 },
441
+ { id: 'overdue', name: 'Overdue', count: 7 },
442
+ { id: 'paid', name: 'Paid', count: 214 },
443
+ { id: 'void', name: 'Void', count: 3 },
444
+ ];
445
+
446
+ const statuses = ref<string[]>(['open', 'overdue']);
447
+ </script>
448
+ ```
449
+
450
+ A **weekday picker** — seven equal toggles with the box hidden
451
+ (`pt:icon="hidden"`; an empty `#icon` slot would fall back to the box), the
452
+ checked day painted, the hint reading the choice back:
453
+
454
+ **Weekday picker**
455
+
456
+ ```vue
457
+ <template>
458
+ <div class="max-w-md">
459
+ <BbCheckboxGroup
460
+ v-model="days"
461
+ :hint="summary"
462
+ item-layout="vertical"
463
+ item-text="short"
464
+ item-value="id"
465
+ :items="weekdays"
466
+ legend="Send reminders on"
467
+ list-layout="tiles"
468
+ name="reminder-days"
469
+ persistent-hint
470
+ pt:icon="hidden"
471
+ pt:item="justify-items-center gap-0 rounded-(--bb-radius) border py-2 hover:bg-(--bb-muted)"
472
+ pt:item:checked="border-(--bb-primary) bg-(--bb-primary) hover:bg-(--bb-primary-hover)"
473
+ pt:item:focus-visible="ring-2 ring-(--bb-primary-ring)"
474
+ pt:label="text-sm font-medium"
475
+ pt:label:checked="text-(--bb-primary-fg)"
476
+ pt:list="[--gap:6px] [--tile-min-width:0px]"
477
+ />
478
+ </div>
479
+ </template>
480
+ <script setup lang="ts">
481
+ import { computed, ref } from 'vue';
482
+ import { BbCheckboxGroup } from 'bitboss-ui';
483
+
484
+ type Weekday = { id: number; short: string; long: string };
485
+
486
+ // Seven equal toggles: `list-layout="tiles"` with `--tile-min-width: 0` keeps
487
+ // them on one line, `item-layout="vertical"` stacks the (hidden) glyph cell
488
+ // over the label so the label centres. `pt:icon="hidden"` removes the box —
489
+ // an empty `#icon` slot would not: Vue renders a slot's fallback when the
490
+ // slot is empty. The native input stays, so Tab / Space / screen readers work
491
+ // as on any checkbox. The label cell paints its own colour, so the checked
492
+ // text colour goes on `pt:label:checked`, not on `pt:item`.
493
+ const weekdays: Weekday[] = [
494
+ { id: 1, short: 'Mon', long: 'Monday' },
495
+ { id: 2, short: 'Tue', long: 'Tuesday' },
496
+ { id: 3, short: 'Wed', long: 'Wednesday' },
497
+ { id: 4, short: 'Thu', long: 'Thursday' },
498
+ { id: 5, short: 'Fri', long: 'Friday' },
499
+ { id: 6, short: 'Sat', long: 'Saturday' },
500
+ { id: 7, short: 'Sun', long: 'Sunday' },
501
+ ];
502
+
503
+ const days = ref<number[]>([1, 3, 5]);
504
+
505
+ // The hint reads the choice back in words.
506
+ const summary = computed(() => {
507
+ const picked = [...days.value].sort((a, b) => a - b);
508
+ if (!picked.length) return 'No reminders will be sent.';
509
+ if (picked.length === 7) return 'Every day.';
510
+ if (picked.join() === '1,2,3,4,5') return 'Every weekday.';
511
+ if (picked.join() === '6,7') return 'Weekends only.';
512
+ const names = picked.map((id) => weekdays[id - 1]!.long);
513
+ return `Every ${names.join(', ').replace(/, ([^,]*)$/, ' and $1')}.`;
514
+ });
515
+ </script>
516
+ ```
517
+
518
+ **Priced cards** — equal tiles that wrap, the box in the corner
519
+ (`item-layout="label-fill" item-reverse`), the price pinned to the bottom edge
520
+ by a stretched `pt:label`, a running total under the grid:
521
+
522
+ **Add-on cards with a total**
523
+
524
+ ```vue
525
+ <template>
526
+ <div class="grid max-w-2xl gap-2">
527
+ <BbCheckboxGroup
528
+ v-model="selected"
529
+ description="Billed monthly with your plan. Cancel any add-on at renewal."
530
+ item-layout="label-fill"
531
+ item-reverse
532
+ item-text="name"
533
+ item-value="id"
534
+ :items="addons"
535
+ legend="Add-ons"
536
+ list-layout="tiles"
537
+ name="addons"
538
+ pt:item="items-start rounded-(--bb-radius) border p-3.5 hover:border-(--bb-text-faint)"
539
+ pt:item:checked="border-(--bb-primary) ring-1 ring-(--bb-primary) hover:border-(--bb-primary)"
540
+ pt:label="flex flex-col gap-0.5 self-stretch"
541
+ pt:list="[--gap:10px] [--row-gap:10px] [--tile-min-width:240px]"
542
+ >
543
+ <template #label="{ item }">
544
+ <span class="text-sm font-medium">{{ item.name }}</span>
545
+ <span class="text-xs leading-snug text-(--bb-text-muted)">{{
546
+ item.detail
547
+ }}</span>
548
+ <span class="mt-auto pt-3 text-sm tabular-nums"
549
+ >€{{ item.price
550
+ }}<span class="text-xs text-(--bb-text-muted)"> / month</span></span
551
+ >
552
+ </template>
553
+ </BbCheckboxGroup>
554
+ <div class="flex items-baseline justify-between border-t pt-2 text-sm">
555
+ <span class="text-(--bb-text-muted)"
556
+ >{{ selected.length }} of {{ addons.length }} selected</span
557
+ >
558
+ <span class="font-medium tabular-nums">€{{ total }} / month</span>
559
+ </div>
560
+ </div>
561
+ </template>
562
+ <script setup lang="ts">
563
+ import { computed, ref } from 'vue';
564
+ import { BbCheckboxGroup } from 'bitboss-ui';
565
+
566
+ type Addon = { id: string; name: string; detail: string; price: number };
567
+
568
+ // Priced cards. `list-layout="tiles"` makes equal boxes (every row as tall as
569
+ // the tallest) that wrap when the field narrows — `--tile-min-width: 240px`
570
+ // gives two columns here and one on a phone. `item-layout="label-fill"` +
571
+ // `item-reverse` puts the text first and the box in the corner. To pin the
572
+ // price to the card's bottom edge, `pt:label` stretches the label cell to the
573
+ // row's height and makes it a column; the price takes `mt-auto`.
574
+ const addons: Addon[] = [
575
+ {
576
+ id: 'sso',
577
+ name: 'Single sign-on',
578
+ detail: 'SAML and OIDC for every workspace.',
579
+ price: 9,
580
+ },
581
+ {
582
+ id: 'audit',
583
+ name: 'Audit log',
584
+ detail: 'Every change, kept for two years.',
585
+ price: 6,
586
+ },
587
+ {
588
+ id: 'guests',
589
+ name: 'Guest seats',
590
+ detail: 'Ten read-only collaborators.',
591
+ price: 4,
592
+ },
593
+ {
594
+ id: 'support',
595
+ name: 'Priority support',
596
+ detail: 'Answers within four working hours.',
597
+ price: 12,
598
+ },
599
+ ];
600
+
601
+ const selected = ref<string[]>(['sso', 'audit']);
602
+ const total = computed(() =>
603
+ addons
604
+ .filter((addon) => selected.value.includes(addon.id))
605
+ .reduce((sum, addon) => sum + addon.price, 0)
606
+ );
607
+ </script>
608
+ ```
609
+
371
610
  ### Legend, description and validation
372
611
 
373
612
  The `legend` is the group's accessible name — always set it. `description` is
@@ -471,11 +710,11 @@ Read-only, with no cleanup code.
471
710
  <BbRadioGroup
472
711
  v-model="role"
473
712
  compact
474
- input-direction="horizontal"
475
713
  item-text="label"
476
714
  item-value="id"
477
715
  :items="roles"
478
716
  legend="Token role"
717
+ list-layout="horizontal"
479
718
  name="token-role"
480
719
  />
481
720
  <BbCheckboxGroup
@@ -599,8 +838,8 @@ row's own `disabled` — the states a standalone control has. A name outside
599
838
  that list is a type error and an ESLint error.
600
839
 
601
840
  Digest cadence as option tiles: `pt:item` is a broadcast over every row,
602
- `pt:item:checked` resolves per row. `flex-1` is what shares the row — size
603
- the group itself (`class="w-full"`), not a nested width.
841
+ `pt:item:checked` resolves per row. `flex-1` is what shares the row — the
842
+ list already spans the field, so the tiles do too.
604
843
 
605
844
  **Text-only tiles:** hide the box with `pt:icon="hidden"`. An empty `#icon`
606
845
  slot does not remove it: the default box is the slot's fallback and renders
@@ -613,10 +852,9 @@ whenever the slot is empty.
613
852
  <div class="w-full max-w-md rounded-(--bb-radius) border p-3">
614
853
  <BbCheckboxGroup
615
854
  v-model="cadence"
616
- class="w-full"
617
- input-direction="horizontal"
618
855
  :items="items"
619
856
  legend="Cadence"
857
+ list-layout="horizontal"
620
858
  name="cadence"
621
859
  pt:item="flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2"
622
860
  pt:item:checked="border-(--bb-primary) bg-(--bb-muted)"
@@ -705,11 +943,10 @@ and the global map are in the [passthrough guide](./guides/passthrough.md).
705
943
  | --- | --- | --- | --- | --- |
706
944
  | `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`, `item`, `itemDescription`, `label`, `legend`, `list`, `message`, `root`. States: `disabled`, `errors`, `hasValue`, `loading`, `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`. |
707
945
  | `autofocus` | `Booleanish \| undefined` | | | Sets autofocus on page load. |
708
- | `compact` | `boolean \| undefined` | `false` | | Displays the component in a compact version. |
946
+ | `compact` | `boolean \| undefined` | `false` | | 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. |
709
947
  | `dependencies` | `unknown[] \| undefined` | | | Defines an array of dependencies that will trigger actions in the component upon change. |
710
948
  | `depsDebounceTime` | `number \| undefined` | | | Timeout used to debounce response to changes to dependencies. |
711
949
  | `description` | `string \| undefined` | | | Descriptive text displayed below the label and above the input. Unlike the hint it is always visible, and it is linked to the input via `aria-describedby` (after any `errors` / `warnings`, before the `hint`). |
712
- | `direction` | `InputDirection \| undefined` | | | Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`. |
713
950
  | `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
714
951
  | `enforceCoherence` | `boolean \| undefined` | `false` | | If coherence is enforced the input cannot have a modelValue that is incoherent with its current items. e.g. You cannot set v-model to a user that is not present in the items passed. modelValue will be reset upon incoherence. |
715
952
  | `errors` | `string \| string[] \| undefined` | | | Can be a string or an array of string containing the messages to display. They render in an `aria-live="polite"` region (announced when they appear) and, while the list is non-empty, are referenced FIRST from the control's `aria-describedby… |
@@ -719,15 +956,18 @@ and the global map are in the [passthrough guide](./guides/passthrough.md).
719
956
  | `hideLegend` | `boolean \| undefined` | `false` | | Visually hides the legend of the fieldset while maintaining accessibility. |
720
957
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
721
958
  | `id` | `string \| undefined` | | | The identifier of the component. |
722
- | `inputDirection` | `"horizontal" \| "vertical" \| undefined` | | | Defines the direction of the inputs in the fieldset. |
723
959
  | `inputPosition` | `"left" \| "center" \| "right" \| undefined` | `"left"` | | Sets the alignment of the input. Since inputs are inline block they can be aligned just as text can. |
960
+ | `itemLayout` | `FieldLayout \| undefined` | `'auto'` | | How each row's input and label sit together — the keywords of `layout`: `'auto'`, `'vertical'` (the input above the label), `'horizontal'` (50/50), `'label-fill'` (the label takes the row's free space — pair it with `list-layout="vertical-s… |
724
961
  | `itemProps` | `BbOptionGroupItemProps<T> \| undefined` | | | ADDITIONAL row fields resolved from each item — never its text or value (those stay on `itemText` / `itemValue`). Option groups accept one field: - `description` — a muted line under the option label, beside the control; it may wrap. Either… |
962
+ | `itemReverse` | `boolean \| undefined` | `false` | | Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead. |
725
963
  | `items` | `T[] \| ((prefill: boolean, modelValue?: any) => T[] \| Promise<T[]>)` | | yes | Used to retrieve items; can be an array or a function. |
726
964
  | `itemText` | `ItemAccessor<T, string> \| undefined` | | | Defines a path that returns a property of the object to use as text or a function that returns a string. |
727
965
  | `itemValue` | `ItemAccessor<T> \| undefined` | | | Defines a path that returns a property of the object to use as value or a function that returns any value. |
966
+ | `layout` | `FieldLayout \| undefined` | | | How the label and the input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'` (the label takes the free space, the input keeps its size), `'input-fill'` (the other way round), or a two-word ratio pattern like `'xx… |
728
967
  | `legend` | `string` | | yes | Text content of the legend. |
729
968
  | `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 … |
730
969
  | `legendPosition` | `"left" \| "center" \| "right" \| undefined` | | | Sets the text alignment of the label. |
970
+ | `listLayout` | `ListLayout \| undefined` | `'horizontal'` | | How the rows sit inside the list: `'horizontal'` (on a line, wrapping, each row its own size), `'vertical'` (stacked, each row its own size), `'vertical-stretch'` (stacked, each row as wide as the list) or `'tiles'` (equal-size boxes, wrapp… |
731
971
  | `loadingText` | `string \| undefined` | | | String displayed while items are being loaded. |
732
972
  | `max` | `number \| undefined` | | | Maximum number of selected items. |
733
973
  | `modelValue` | `any` | | yes | Used by v-model. Can be an array of any serializable type. |
@@ -815,6 +1055,7 @@ Set these on the element, or on a class you put on it, to retune this component
815
1055
  | --- | --- | --- |
816
1056
  | `--gap` | `24px` | Space between rows on one line. |
817
1057
  | `--row-gap` | `10px` | Space between wrapped lines. |
1058
+ | `--tile-min-width` | `96px` | How narrow a tile may get before the tiles wrap (`tiles` only). |
818
1059
 
819
1060
  ## Component tree
820
1061
 
@@ -392,7 +392,7 @@ The full common-field surface applies:
392
392
  visible, no edits, picker blocked), `loading` (progress styling on the
393
393
  wrapper), `required`, `autofocus`, `placeholder`, `name` and `autocomplete`
394
394
  (defaults to `off`) for form plumbing.
395
- - **Layout** — `compact` for a denser control; `direction`
395
+ - **Layout** — `compact` for a denser control; `layout`
396
396
  (`horizontal` | `vertical` | `auto`, or a pattern like `xx xxxxx` splitting
397
397
  label/input columns) and `reverse` to swap label and input order.
398
398
  - **Icons & slots** — `prepend:icon`/`append:icon` add `lucide:*` icons inside
@@ -671,9 +671,8 @@ of it. The full grammar, the merge rules and the global map are in the
671
671
  | `autocomplete` | `string \| undefined` | `"off"` | | Guides the browser as to the type of information expected in the field. |
672
672
  | `autofocus` | `Booleanish \| undefined` | | | Sets autofocus on page load. |
673
673
  | `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. |
674
- | `compact` | `boolean \| undefined` | `false` | | Displays the component in a compact version. |
674
+ | `compact` | `boolean \| undefined` | `false` | | Compact density. Swaps `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y` for their `-compact` twins on the field, so a `--bb-input-h` you set on the component is ignored while `compact` is on: size a compact field with `--bb-input-… |
675
675
  | `description` | `string \| undefined` | | | Descriptive text displayed below the label and above the input. Unlike the hint it is always visible, and it is linked to the input via `aria-describedby` (after any `errors` / `warnings`, before the `hint`). |
676
- | `direction` | `InputDirection \| undefined` | | | Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`. |
677
676
  | `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
678
677
  | `errors` | `string \| string[] \| undefined` | | | Can be a string or an array of string containing the messages to display. They render in an `aria-live="polite"` region (announced when they appear) and, while the list is non-empty, are referenced FIRST from the control's `aria-describedby… |
679
678
  | `eyeDropper` | `boolean \| undefined` | `false` | | Show an eyedropper button to sample any color on screen. Uses the native EyeDropper API — hidden automatically on unsupported browsers. |
@@ -685,6 +684,7 @@ of it. The full grammar, the merge rules and the global map are in the
685
684
  | `label` | `string` | | yes | Text content of the label of the element. |
686
685
  | `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. |
687
686
  | `labelPosition` | `"left" \| "center" \| "right" \| undefined` | | | Sets the text alignment of the label. |
687
+ | `layout` | `FieldLayout \| undefined` | | | How the label and the input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'` (the label takes the free space, the input keeps its size), `'input-fill'` (the other way round), or a two-word ratio pattern like `'xx… |
688
688
  | `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
689
689
  | `modelValue` | `string \| null` | `null` | yes | Used by v-model. |
690
690
  | `name` | `string \| undefined` | | | Defines the name of the input. |
@@ -796,8 +796,8 @@ Set these on the element, or on a class you put on it, to retune this component
796
796
  - `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)
797
797
  - `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-text`, `message` → `div.bb-field__errors`, `message` → `div.bb-field__warnings`
798
798
  - `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`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
799
- - `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); also mounts `CommonPopover`
800
- - `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__body`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--close-size`
799
+ - `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 `CommonPopover`
800
+ - `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__body`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
801
801
  - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
802
802
 
803
803
  ## See Also
@@ -787,6 +787,14 @@ States are listed in precedence order: when two are on at once and their entries
787
787
 
788
788
  - `activator` — scope: `BbColorPaletteActivatorSlotProps` — Custom activator element. Apply `v-bind="props"` to the element you want to use as the trigger — this wires up the ref callback that lets BbColorPalette track the element.
789
789
 
790
+ ## CSS custom properties
791
+
792
+ Set these on the element, or on a class you put on it, to retune this component alone — the sanctioned alternative to reaching past the API with `:deep()`. They are this component's own locals — a **Set on** of `pt:<part>` means the local lives on that part's element, so set it through that entry (`pt:box="[--border-color:var(--color-green-500)]"`); the global `--bb-*` theme tokens are a separate tier (see the [design-tokens guide](./guides/design-tokens.md), or the MCP `list_tokens` tool).
793
+
794
+ | Property | Default | What it is |
795
+ | --- | --- | --- |
796
+ | `--edge` | `color-mix(in oklab, var(--bb-text) 8%, transparent)` | The swatch's own edge: a text-tone hairline, so a pale swatch reads on a light panel AND a deep one (green-900, indigo-900) on a dark panel — a fixed black 8% vanished there. |
797
+
790
798
  ## Component tree
791
799
 
792
800
  `BbColorPalette` is not one component: rendering it mounts every component below, and each one is live inside it. **Read this before styling, theming or debugging `BbColorPalette`, and before concluding a part, a token or a behaviour does not exist** — it may live on a component further down. How to read it:
@@ -797,7 +805,7 @@ States are listed in precedence order: when two are on at once and their entries
797
805
  - Listed nodes are the ones `BbColorPalette`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, repeats and undocumented locals included, is the `tree` field of this component in `components.json`.
798
806
 
799
807
  - `BbColorPalette` _(this component)_ — its own template binds: `swatch` → `button.bb-color-palette__swatch`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs)
800
- - `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__body`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--close-size`
808
+ - `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__body`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
801
809
  - `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
802
810
  - Also mounts `CommonPopover`
803
811
 
@@ -32,7 +32,8 @@
32
32
  | `--bg-pressed` | `pt:action` | `BbButton` | fill while [aria-pressed='true'] |
33
33
  | `--fg` | `pt:action` | `BbButton` | label and icons (icons paint currentColor) |
34
34
  | `--border-color` | `pt:action` | `BbButton` | the frame; its width is --bw |
35
- | `--ring` | `pt:action` | `BbButton` | focus ring, drawn --bb-ring-size outside the border |
35
+ | `--ring-color` | `pt:action` | `BbButton` | focus ring colour, per variant |
36
+ | `--ring-size` | `pt:action` | `BbButton` | focus ring width, outside the border |
36
37
  | `--bw` | `pt:action` | `BbButton` | border width |
37
38
  | `--fg-hover` | `pt:action` | `BbButton` | label and icons on hover (and focus-visible) |
38
39
  | `--border-hover` | `pt:action` | `BbButton` | the frame on hover (and focus-visible) |
@@ -78,7 +79,9 @@ row show only the second, and the first silently answers "no". If you need both
78
79
  questions asked, `await` the first before opening the second.
79
80
  Mounting a second host renders every dialog twice
80
81
  (nothing warns you). Mounting none is worse: `await confirm(...)` never settles
81
- and the caller hangs.
82
+ and the caller hangs. A host that unmounts while its dialog is open (a layout
83
+ the user navigated out of) gets one second to come back; after that the open
84
+ confirm resolves `false` without running a callback, so it never hangs.
82
85
 
83
86
  **Areas with their own look.** The dialog takes the passthrough scope and the
84
87
  tokens of the place its HOST is mounted. When the app is split into areas that
@@ -832,8 +835,8 @@ States are listed in precedence order: when two are on at once and their entries
832
835
  - `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)
833
836
  - `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__body`, `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`
834
837
  - `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`
835
- - `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__body`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--close-size`; also mounts `CloseButton`
836
- - `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `BbIcon`, `text` → `span.bb-button__content`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
838
+ - `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__body`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`; also mounts `CloseButton`
839
+ - `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `BbIcon`, `text` → `span.bb-button__content`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--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`
837
840
  - `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
838
841
 
839
842
  ## See Also