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

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 (495) hide show
  1. package/README.md +20 -11
  2. package/bin/bitboss-ui-mcp.mjs +7 -4
  3. package/bin/bitboss-ui.mjs +0 -0
  4. package/bin/cli.mjs +47 -28
  5. package/dist/ai/BbBaseButton.md +4 -4
  6. package/dist/ai/BbBreadcrumbs.md +3 -0
  7. package/dist/ai/BbCarousel.md +32 -29
  8. package/dist/ai/BbCheckbox.md +5 -6
  9. package/dist/ai/BbCheckboxGroup.md +28 -26
  10. package/dist/ai/BbColorInput.md +9 -14
  11. package/dist/ai/BbDatePickerInput.md +3 -4
  12. package/dist/ai/BbDropdown.md +35 -1
  13. package/dist/ai/BbDropdownButton.md +4 -3
  14. package/dist/ai/BbDropzone.md +3 -3
  15. package/dist/ai/BbGallery.md +2034 -0
  16. package/dist/ai/BbNumberInput.md +3 -4
  17. package/dist/ai/BbPopover.md +12 -6
  18. package/dist/ai/BbRadio.md +5 -6
  19. package/dist/ai/BbRadioGroup.md +28 -31
  20. package/dist/ai/BbRating.md +6 -16
  21. package/dist/ai/BbSelect.md +10 -11
  22. package/dist/ai/BbSlider.md +3 -9
  23. package/dist/ai/BbSwitch.md +6 -6
  24. package/dist/ai/BbSwitchGroup.md +4 -7
  25. package/dist/ai/BbTag.md +3 -4
  26. package/dist/ai/BbTextInput.md +19 -19
  27. package/dist/ai/BbTextarea.md +8 -8
  28. package/dist/ai/BbTimePickerInput.md +3 -4
  29. package/dist/ai/BbTooltip.md +17 -13
  30. package/dist/ai/CommonField.md +2 -10
  31. package/dist/ai/OptionsContainer.md +7 -12
  32. package/dist/ai/changelog.json +119 -4
  33. package/dist/ai/components.json +37 -32
  34. package/dist/ai/guides/ai-router.md +3 -2
  35. package/dist/ai/guides/component-picker.md +1 -0
  36. package/dist/ai/guides/eslint-rules.md +3 -3
  37. package/dist/ai/guides/installation-and-plugin-setup.md +5 -5
  38. package/dist/ai/guides/migration/v2-to-v3.md +53 -1
  39. package/dist/ai/guides/migration/v3-beta-tooling.md +25 -15
  40. package/dist/ai/guides/passthrough.md +2 -1
  41. package/dist/ai/guides/preset-components.md +53 -19
  42. package/dist/ai/helpers/definePreset.json +8 -1
  43. package/dist/ai/helpers/definePreset.ts +42 -13
  44. package/dist/ai/helpers/inertia/manifest.json +1 -1
  45. package/dist/ai/index.md +2 -1
  46. package/dist/ai/manifest/common.json +2 -2
  47. package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
  48. package/dist/ai/manifest/components/BbCarousel.json +3 -2
  49. package/dist/ai/manifest/components/BbCarousel.tree.json +7 -0
  50. package/dist/ai/manifest/components/BbCheckbox.json +2 -2
  51. package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
  52. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +10 -18
  53. package/dist/ai/manifest/components/BbColorInput.json +2 -2
  54. package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
  55. package/dist/ai/manifest/components/BbConfigScope.json +1 -1
  56. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
  57. package/dist/ai/manifest/components/BbDropdown.json +2 -2
  58. package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
  59. package/dist/ai/manifest/components/BbGallery.json +54 -0
  60. package/dist/ai/manifest/components/BbGallery.tree.json +139 -0
  61. package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
  62. package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
  63. package/dist/ai/manifest/components/BbRadioGroup.tree.json +9 -17
  64. package/dist/ai/manifest/components/BbRating.removed.json +1 -1
  65. package/dist/ai/manifest/components/BbRating.tree.json +1 -1
  66. package/dist/ai/manifest/components/BbSelect.json +15 -15
  67. package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
  68. package/dist/ai/manifest/components/BbSlider.json +1 -1
  69. package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
  70. package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
  71. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
  72. package/dist/ai/manifest/components/BbTabs.removed.json +4 -4
  73. package/dist/ai/manifest/components/BbTabsList.removed.json +4 -4
  74. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  75. package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
  76. package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
  77. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
  78. package/dist/ai/manifest/components/BbTooltip.json +1 -1
  79. package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
  80. package/dist/ai/manifest/components/CommonField.tree.json +5 -10
  81. package/dist/ai/manifest/components/OptionsContainer.tree.json +7 -12
  82. package/dist/ai/manifest/index.json +4 -3
  83. package/dist/ai/manifest/meta.json +5 -1
  84. package/dist/ai/manifest/types.advanced.json +4 -2
  85. package/dist/ai/manifest/types.api.json +3 -3
  86. package/dist/ai/manifest/types.wrapper.json +1 -0
  87. package/dist/ai/recipes/inertia/onboarding.md +5 -8
  88. package/dist/ai/recipes/inertia/record-form.md +33 -12
  89. package/dist/ai/recipes/nuxt/onboarding.md +5 -8
  90. package/dist/ai/recipes/nuxt/record-form.md +27 -11
  91. package/dist/ai/recipes/vue/onboarding.md +5 -8
  92. package/dist/ai/recipes/vue/record-form.md +25 -11
  93. package/dist/ai/source/BbBreadcrumbs.md +31 -12
  94. package/dist/ai/source/BbCalendar.md +2 -0
  95. package/dist/ai/source/BbCarousel.md +135 -32
  96. package/dist/ai/source/BbCheckbox.md +36 -42
  97. package/dist/ai/source/BbCheckboxGroup.md +2 -4
  98. package/dist/ai/source/BbColorInput.md +2 -4
  99. package/dist/ai/source/BbDatePickerInput.md +2 -4
  100. package/dist/ai/source/BbDropdown.md +13 -2
  101. package/dist/ai/source/BbDropdownButton.md +4 -1
  102. package/dist/ai/source/BbDropdownGroup.md +11 -2
  103. package/dist/ai/source/BbGallery.md +2027 -0
  104. package/dist/ai/source/BbNumberInput.md +2 -4
  105. package/dist/ai/source/BbRadio.md +36 -42
  106. package/dist/ai/source/BbRadioGroup.md +4 -6
  107. package/dist/ai/source/BbRating.md +2 -14
  108. package/dist/ai/source/BbSelect.md +30 -13
  109. package/dist/ai/source/BbSelectPopover.md +1 -0
  110. package/dist/ai/source/BbSlider.md +2 -4
  111. package/dist/ai/source/BbSwitch.md +34 -38
  112. package/dist/ai/source/BbSwitchGroup.md +1 -0
  113. package/dist/ai/source/BbTable.md +15 -8
  114. package/dist/ai/source/BbTag.md +2 -4
  115. package/dist/ai/source/BbTextInput.md +2 -4
  116. package/dist/ai/source/BbTextarea.md +2 -4
  117. package/dist/ai/source/BbTimePickerInput.md +2 -4
  118. package/dist/ai/source/BbTooltip.md +9 -3
  119. package/dist/ai/source/BbTree.md +7 -3
  120. package/dist/ai/source/CommonField.md +17 -106
  121. package/dist/ai/source/CommonPopover.md +13 -3
  122. package/dist/ai/source/FlatListBox.md +3 -3
  123. package/dist/ai/source/GroupedListBox.md +3 -3
  124. package/dist/ai/source/GuidesComponent.md +3 -0
  125. package/dist/ai/source/ListBox.md +4 -4
  126. package/dist/ai/source/OptionsContainer.md +4 -4
  127. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
  128. package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
  129. package/dist/components/BbCalendar/useDayjsLocale.js +5 -3
  130. package/dist/components/BbCarousel/BbCarousel.vue.d.ts +1 -1
  131. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +506 -481
  132. package/dist/components/BbCarousel/dragRelease.js +14 -0
  133. package/dist/components/BbCarousel/ptKeys.generated.d.ts +4 -0
  134. package/dist/components/BbCarousel/types.d.ts +11 -6
  135. package/dist/components/BbCarousel/types.js +1 -0
  136. package/dist/components/BbCheckbox/types.d.ts +2 -4
  137. package/dist/components/BbCheckboxGroup/types.d.ts +2 -4
  138. package/dist/components/BbColorInput/types.d.ts +2 -4
  139. package/dist/components/BbDatePickerInput/types.d.ts +2 -4
  140. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +2 -0
  141. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
  142. package/dist/components/BbDropdown/normalizeGroups.js +37 -33
  143. package/dist/components/BbDropdown/types.d.ts +9 -2
  144. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +95 -94
  145. package/dist/components/BbGallery/BbGallery.vue.d.ts +50 -0
  146. package/dist/components/BbGallery/BbGallery.vue.js +5 -0
  147. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +587 -0
  148. package/dist/components/BbGallery/findItem.js +41 -0
  149. package/dist/components/BbGallery/ptKeys.generated.d.ts +112 -0
  150. package/dist/components/BbGallery/types.d.ts +177 -0
  151. package/dist/components/BbGallery/types.js +29 -0
  152. package/dist/components/BbNumberInput/types.d.ts +2 -4
  153. package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -0
  154. package/dist/components/BbOffCanvas/sheetSnap.js +5 -5
  155. package/dist/components/BbRadio/types.d.ts +2 -4
  156. package/dist/components/BbRadioGroup/types.d.ts +4 -6
  157. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +116 -118
  158. package/dist/components/BbRating/types.d.ts +2 -4
  159. package/dist/components/BbSelect/BbSelect.vue.d.ts +10 -4
  160. package/dist/components/BbSelect/types.d.ts +4 -6
  161. package/dist/components/BbSlider/types.d.ts +2 -4
  162. package/dist/components/BbTable/types.d.ts +8 -8
  163. package/dist/components/BbTag/types.d.ts +2 -4
  164. package/dist/components/BbTextInput/types.d.ts +2 -4
  165. package/dist/components/BbTextarea/types.d.ts +2 -4
  166. package/dist/components/BbTimePickerInput/types.d.ts +2 -4
  167. package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
  168. package/dist/components/BbTooltip/types.d.ts +3 -1
  169. package/dist/components/BbTree/types.d.ts +3 -3
  170. package/dist/components/CommonField/types.d.ts +2 -4
  171. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +28 -26
  172. package/dist/composables/overlayRegistry.d.ts +17 -0
  173. package/dist/composables/overlayRegistry.js +16 -9
  174. package/dist/composables/useChoiceIndicator.js +66 -63
  175. package/dist/deprecation/ai-deprecations.json.js +1 -1
  176. package/dist/directives/bbDropdown.js +1 -1
  177. package/dist/directives/bbGallery.d.ts +64 -0
  178. package/dist/directives/bbGallery.js +38 -0
  179. package/dist/i18n/locales/ar.json +3 -1
  180. package/dist/i18n/locales/cs.json +3 -1
  181. package/dist/i18n/locales/da.json +3 -1
  182. package/dist/i18n/locales/de-CH.json +3 -1
  183. package/dist/i18n/locales/de.json +3 -1
  184. package/dist/i18n/locales/el.json +3 -1
  185. package/dist/i18n/locales/en-GB.json +3 -1
  186. package/dist/i18n/locales/en.json +3 -1
  187. package/dist/i18n/locales/es-MX.json +3 -1
  188. package/dist/i18n/locales/es.json +3 -1
  189. package/dist/i18n/locales/fa.json +3 -1
  190. package/dist/i18n/locales/fi.json +3 -1
  191. package/dist/i18n/locales/fr.json +3 -1
  192. package/dist/i18n/locales/he.json +3 -1
  193. package/dist/i18n/locales/hu.json +3 -1
  194. package/dist/i18n/locales/it.json +3 -1
  195. package/dist/i18n/locales/ja.json +3 -1
  196. package/dist/i18n/locales/ko.json +3 -1
  197. package/dist/i18n/locales/nb.json +3 -1
  198. package/dist/i18n/locales/nl.json +3 -1
  199. package/dist/i18n/locales/pl.json +3 -1
  200. package/dist/i18n/locales/pt-BR.json +3 -1
  201. package/dist/i18n/locales/pt-PT.json +3 -1
  202. package/dist/i18n/locales/ro.json +3 -1
  203. package/dist/i18n/locales/ru.json +3 -1
  204. package/dist/i18n/locales/sv.json +3 -1
  205. package/dist/i18n/locales/tr.json +3 -1
  206. package/dist/i18n/locales/uk.json +3 -1
  207. package/dist/i18n/locales/zh-CN.json +3 -1
  208. package/dist/i18n/locales/zh-HK.json +3 -1
  209. package/dist/i18n/locales/zh-TW.json +3 -1
  210. package/dist/index.d.ts +4 -0
  211. package/dist/index.js +38 -36
  212. package/dist/llms-full.txt +2534 -346
  213. package/dist/llms-medium.txt +10 -7
  214. package/dist/llms.txt +1 -1
  215. package/dist/locale-blueprint.json +3 -1
  216. package/dist/nuxt-auto-imports.js +1 -1
  217. package/dist/plugin.js +18 -17
  218. package/dist/project-dts.js +17 -16
  219. package/dist/runtime/nuxt-plugin.js +22 -21
  220. package/dist/scripts/lib/atomic-write.js +42 -0
  221. package/dist/styles.css +2 -2
  222. package/dist/types/FieldLayout.d.ts +4 -1
  223. package/dist/types/ItemAccessor.d.ts +3 -1
  224. package/dist/types/ItemPath.d.ts +33 -0
  225. package/dist/types/passthrough.d.ts +2 -2
  226. package/dist/types/ptComponentMap.d.ts +2 -1
  227. package/dist/utilities/calendar/canonicalParts.js +10 -2
  228. package/dist/utils/versionCheck.js +1 -1
  229. package/dist/vite.js +361 -331
  230. package/llms.txt +2 -2
  231. package/package.json +7 -4
  232. package/scripts/README.md +31 -29
  233. package/scripts/lib/agent-refresh.mjs +15 -9
  234. package/scripts/lib/agent-setup.mjs +46 -15
  235. package/scripts/lib/atomic-write.d.mts +6 -0
  236. package/scripts/lib/atomic-write.mjs +85 -0
  237. package/scripts/lib/define-preset-copy.mjs +24 -4
  238. package/scripts/lib/eslint-plugin.mjs +74 -36
  239. package/scripts/lib/hand-imported-styles.mjs +44 -99
  240. package/scripts/lib/helpers-add.mjs +3 -1
  241. package/scripts/lib/linked-target.mjs +1 -1
  242. package/scripts/lib/locale-check.mjs +41 -25
  243. package/scripts/lib/mcp-config.mjs +250 -133
  244. package/scripts/lib/mcp-sdk.mjs +24 -0
  245. package/scripts/lib/plugin-options-check.mjs +22 -15
  246. package/scripts/lib/pnp.mjs +1 -1
  247. package/scripts/lib/project-variant-dts.mjs +80 -136
  248. package/scripts/lib/release-results.mjs +331 -0
  249. package/scripts/lib/setup.mjs +61 -3
  250. package/scripts/lib/toolchain-check.mjs +134 -14
  251. package/scripts/lib/tooling-options.mjs +357 -38
  252. package/scripts/lib/validate-bb-markup.mjs +1 -1
  253. package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +0 -15
  254. package/dist/components/BbBadge/badgeButtonContext.d.ts +0 -55
  255. package/dist/components/BbBaseButton/RouterComponent.vue.d.ts +0 -18
  256. package/dist/components/BbBaseButton/useLinkState.d.ts +0 -43
  257. package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.d.ts +0 -18
  258. package/dist/components/BbButton/toggleRoving.d.ts +0 -6
  259. package/dist/components/BbCalendar/CalendarMonthPanel.vue.d.ts +0 -5
  260. package/dist/components/BbCalendar/CalendarYearPanel.vue.d.ts +0 -5
  261. package/dist/components/BbCalendar/calendarHost.d.ts +0 -29
  262. package/dist/components/BbCalendar/calendarMath.d.ts +0 -102
  263. package/dist/components/BbCalendar/useCalendarContext.d.ts +0 -116
  264. package/dist/components/BbCalendar/useCalendarGrid.d.ts +0 -411
  265. package/dist/components/BbCalendar/useDayGrid.d.ts +0 -122
  266. package/dist/components/BbCalendar/useDayjsLocale.d.ts +0 -93
  267. package/dist/components/BbCalendar/useToday.d.ts +0 -25
  268. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +0 -4
  269. package/dist/components/BbConfirm/BbConfirmHost.d.ts +0 -10
  270. package/dist/components/BbConfirm/confirmEntry.d.ts +0 -4
  271. package/dist/components/BbDatePickerInput/calendarFields.d.ts +0 -91
  272. package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +0 -29
  273. package/dist/components/BbDialog/useDialogStack.d.ts +0 -19
  274. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +0 -26
  275. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +0 -38
  276. package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +0 -16
  277. package/dist/components/BbDropdown/DropdownRow.vue.d.ts +0 -41
  278. package/dist/components/BbDropdown/normalizeGroups.d.ts +0 -39
  279. package/dist/components/BbDropdown/pointerTrail.d.ts +0 -5
  280. package/dist/components/BbDropdown/useDropdownContext.d.ts +0 -131
  281. package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +0 -170
  282. package/dist/components/BbForm/BbFormCustomField.d.ts +0 -14
  283. package/dist/components/BbForm/bindFormField.d.ts +0 -56
  284. package/dist/components/BbForm/formFields.d.ts +0 -77
  285. package/dist/components/BbHost/BbHostOpening.d.ts +0 -27
  286. package/dist/components/BbHoverCard/hoverCardFocus.d.ts +0 -29
  287. package/dist/components/BbIcon/iconCache.d.ts +0 -63
  288. package/dist/components/BbNumberInput/numberDisplay.d.ts +0 -255
  289. package/dist/components/BbNumberInput/platform.d.ts +0 -7
  290. package/dist/components/BbOffCanvas/hostCloseLabel.d.ts +0 -3
  291. package/dist/components/BbOffCanvas/sheetAttrs.d.ts +0 -9
  292. package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +0 -37
  293. package/dist/components/BbPagination/paginationFit.d.ts +0 -38
  294. package/dist/components/BbSelectPopover/knownItems.d.ts +0 -65
  295. package/dist/components/BbSelectPopover/reclickClears.d.ts +0 -17
  296. package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +0 -18
  297. package/dist/components/BbTable/BbTableDataRow.d.ts +0 -204
  298. package/dist/components/BbTable/BbTableEdgeRow.d.ts +0 -112
  299. package/dist/components/BbTable/BbTableExpandRow.d.ts +0 -84
  300. package/dist/components/BbTable/BbTableSelectToggle.d.ts +0 -128
  301. package/dist/components/BbTable/estimatedFloors.golden.d.ts +0 -25
  302. package/dist/components/BbTable/gridWidgets.d.ts +0 -30
  303. package/dist/components/BbTable/measuredFloors.d.ts +0 -46
  304. package/dist/components/BbTable/measuredFloorsTestKit.d.ts +0 -27
  305. package/dist/components/BbTable/textRuler.d.ts +0 -73
  306. package/dist/components/BbTable/useRowReorder.d.ts +0 -60
  307. package/dist/components/BbTable/utils.d.ts +0 -375
  308. package/dist/components/BbTabs/tablistName.d.ts +0 -4
  309. package/dist/components/BbToast/BbToast.vue.d.ts +0 -5
  310. package/dist/components/BbToast/BbToastMessage.vue.d.ts +0 -22
  311. package/dist/components/BbToast/BbToastRegion.vue.d.ts +0 -15
  312. package/dist/components/BbTooltip/tooltipWarmup.d.ts +0 -23
  313. package/dist/components/BbTree/BbTreeLevel.vue.d.ts +0 -19
  314. package/dist/components/BbTree/context.d.ts +0 -25
  315. package/dist/components/ChipsBox/ChipsBox.vue.d.ts +0 -21
  316. package/dist/components/ChipsBox/types.d.ts +0 -28
  317. package/dist/components/ClearableButton/ClearableButton.vue.d.ts +0 -6
  318. package/dist/components/ClearableButton/types.d.ts +0 -9
  319. package/dist/components/CloseIcon/CloseButton.vue.d.ts +0 -7
  320. package/dist/components/CloseIcon/types.d.ts +0 -2
  321. package/dist/components/CommaBox/CommaBox.vue.d.ts +0 -21
  322. package/dist/components/CommaBox/types.d.ts +0 -20
  323. package/dist/components/CommonField/CommonField.vue.d.ts +0 -20
  324. package/dist/components/CommonField/messageHeightMatrix.d.ts +0 -2
  325. package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +0 -22
  326. package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +0 -10
  327. package/dist/components/CommonFieldInput/types.d.ts +0 -114
  328. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +0 -42
  329. package/dist/components/CommonPopover/resolvePlacement.d.ts +0 -9
  330. package/dist/components/CommonPopover/types.d.ts +0 -120
  331. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +0 -48
  332. package/dist/components/CommonTimeSelector/useMeridiem.d.ts +0 -19
  333. package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +0 -7
  334. package/dist/components/ErrorIcon/types.d.ts +0 -3
  335. package/dist/components/FlatListBox/FlatListBox.vue.d.ts +0 -39
  336. package/dist/components/FlatListBox/types.d.ts +0 -140
  337. package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +0 -39
  338. package/dist/components/GroupedListBox/types.d.ts +0 -163
  339. package/dist/components/ListBox/ListBox.vue.d.ts +0 -39
  340. package/dist/components/ListBox/types.d.ts +0 -180
  341. package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +0 -20
  342. package/dist/components/OptionsContainer/types.d.ts +0 -168
  343. package/dist/components/Transitions/ScaleFade.vue.d.ts +0 -28
  344. package/dist/components/Transitions/Slide.vue.d.ts +0 -39
  345. package/dist/components/WarningIcon/WarningIcon.vue.d.ts +0 -7
  346. package/dist/components/WarningIcon/types.d.ts +0 -3
  347. package/dist/composables/__testResets.d.ts +0 -1
  348. package/dist/composables/autoHost.d.ts +0 -22
  349. package/dist/composables/formSubmitLock.d.ts +0 -48
  350. package/dist/composables/hostOpenings.d.ts +0 -88
  351. package/dist/composables/hostRegistry.d.ts +0 -47
  352. package/dist/composables/ssrMarker.d.ts +0 -15
  353. package/dist/composables/useActiveInactiveState.d.ts +0 -4
  354. package/dist/composables/useArray.d.ts +0 -7
  355. package/dist/composables/useBaseOptions.d.ts +0 -51
  356. package/dist/composables/useBodyScrollLock.d.ts +0 -4
  357. package/dist/composables/useBreakpoint.d.ts +0 -13
  358. package/dist/composables/useCancelableFunction.d.ts +0 -17
  359. package/dist/composables/useChoiceIndicator.d.ts +0 -58
  360. package/dist/composables/useClosingInert.d.ts +0 -28
  361. package/dist/composables/useCoarsePointer.d.ts +0 -9
  362. package/dist/composables/useCoherence.d.ts +0 -21
  363. package/dist/composables/useConfig.d.ts +0 -59
  364. package/dist/composables/useConfigDefaults.d.ts +0 -54
  365. package/dist/composables/useDirection.d.ts +0 -43
  366. package/dist/composables/useEscapeStackEntry.d.ts +0 -13
  367. package/dist/composables/useFrameworkDetection.d.ts +0 -12
  368. package/dist/composables/useHashedWatcher.d.ts +0 -19
  369. package/dist/composables/useHydrated.d.ts +0 -37
  370. package/dist/composables/useImeDismissBlur.d.ts +0 -103
  371. package/dist/composables/useIndexById.d.ts +0 -11
  372. package/dist/composables/useInertiaPage.d.ts +0 -10
  373. package/dist/composables/useItemText.d.ts +0 -17
  374. package/dist/composables/useItemValue.d.ts +0 -7
  375. package/dist/composables/useItemsGetter.d.ts +0 -83
  376. package/dist/composables/useKeyboardInset.d.ts +0 -28
  377. package/dist/composables/useListboxFocus.d.ts +0 -21
  378. package/dist/composables/useLocale.d.ts +0 -5
  379. package/dist/composables/useLogger.d.ts +0 -5
  380. package/dist/composables/useMinimalQueue.d.ts +0 -9
  381. package/dist/composables/useOnFalsy.d.ts +0 -2
  382. package/dist/composables/useOnTruthy.d.ts +0 -7
  383. package/dist/composables/useOverlayNavigation.d.ts +0 -37
  384. package/dist/composables/useOverlayYield.d.ts +0 -23
  385. package/dist/composables/usePrefill.d.ts +0 -44
  386. package/dist/composables/useQuery.d.ts +0 -39
  387. package/dist/composables/useRefusedCloseAnnouncement.d.ts +0 -13
  388. package/dist/composables/useRoute.d.ts +0 -3
  389. package/dist/composables/useRouter.d.ts +0 -2
  390. package/dist/composables/useSegmentedFields.d.ts +0 -129
  391. package/dist/composables/useServerPrefetch.d.ts +0 -28
  392. package/dist/composables/useSheetSurface.d.ts +0 -39
  393. package/dist/composables/useSsrState.d.ts +0 -28
  394. package/dist/composables/useTableWidthContext.d.ts +0 -73
  395. package/dist/composables/useToggleInput.d.ts +0 -44
  396. package/dist/composables/useTopLayer.d.ts +0 -9
  397. package/dist/composables/useTypeahead.d.ts +0 -112
  398. package/dist/composables/useUntil.d.ts +0 -7
  399. package/dist/composables/useUrlQueryParam.d.ts +0 -21
  400. package/dist/composables/useViewportWidth.d.ts +0 -14
  401. package/dist/deprecation/ai-deprecations.json.d.ts +0 -2984
  402. package/dist/deprecation/removedProps.d.ts +0 -3
  403. package/dist/directives/createPopoverDirective.d.ts +0 -111
  404. package/dist/directives/renderingInstance.d.ts +0 -2
  405. package/dist/i18n/eraNames.d.ts +0 -2
  406. package/dist/i18n/regionHints.d.ts +0 -16
  407. package/dist/icons-whitelist.d.ts +0 -9
  408. package/dist/reset.d.ts +0 -0
  409. package/dist/runtime/nuxt-plugin.d.ts +0 -2
  410. package/dist/styles.d.ts +0 -0
  411. package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -2
  412. package/dist/types/ExtractGenericFromRef.d.ts +0 -2
  413. package/dist/types/NestedKeyOf.d.ts +0 -3
  414. package/dist/types/PrefixWith.d.ts +0 -1
  415. package/dist/types/ShapeErased.d.ts +0 -15
  416. package/dist/types/Simplify.d.ts +0 -6
  417. package/dist/utilities/calendar/canonicalParts.d.ts +0 -29
  418. package/dist/utilities/calendar/digits.d.ts +0 -18
  419. package/dist/utilities/calendar/gregorian.d.ts +0 -2
  420. package/dist/utilities/calendar/index.d.ts +0 -3
  421. package/dist/utilities/calendar/international.d.ts +0 -19
  422. package/dist/utilities/calendar/resolve.d.ts +0 -32
  423. package/dist/utilities/calendar/runtime.d.ts +0 -49
  424. package/dist/utilities/functions/animationsSettled.d.ts +0 -7
  425. package/dist/utilities/functions/bytesToUnit.d.ts +0 -2
  426. package/dist/utilities/functions/chunk.d.ts +0 -1
  427. package/dist/utilities/functions/clamp.d.ts +0 -9
  428. package/dist/utilities/functions/clampPrecision.d.ts +0 -1
  429. package/dist/utilities/functions/convertDateValue.d.ts +0 -57
  430. package/dist/utilities/functions/curry.d.ts +0 -6
  431. package/dist/utilities/functions/deburr.d.ts +0 -1
  432. package/dist/utilities/functions/elementLabel.d.ts +0 -8
  433. package/dist/utilities/functions/empty.d.ts +0 -1
  434. package/dist/utilities/functions/extractDomContainer.d.ts +0 -20
  435. package/dist/utilities/functions/findInTree.d.ts +0 -4
  436. package/dist/utilities/functions/flattenTree.d.ts +0 -1
  437. package/dist/utilities/functions/get.d.ts +0 -3
  438. package/dist/utilities/functions/hasVnodeListener.d.ts +0 -16
  439. package/dist/utilities/functions/hash.d.ts +0 -1
  440. package/dist/utilities/functions/head.d.ts +0 -2
  441. package/dist/utilities/functions/identity.d.ts +0 -1
  442. package/dist/utilities/functions/indexBy.d.ts +0 -11
  443. package/dist/utilities/functions/isDateDisabled.d.ts +0 -25
  444. package/dist/utilities/functions/isEqual.d.ts +0 -1
  445. package/dist/utilities/functions/isHex.d.ts +0 -1
  446. package/dist/utilities/functions/isImeComposing.d.ts +0 -7
  447. package/dist/utilities/functions/isNil.d.ts +0 -6
  448. package/dist/utilities/functions/isNotEmpty.d.ts +0 -1
  449. package/dist/utilities/functions/isNotNil.d.ts +0 -6
  450. package/dist/utilities/functions/isTextEntry.d.ts +0 -5
  451. package/dist/utilities/functions/isoWeek.d.ts +0 -36
  452. package/dist/utilities/functions/itemProps.d.ts +0 -46
  453. package/dist/utilities/functions/last.d.ts +0 -2
  454. package/dist/utilities/functions/negative.d.ts +0 -1
  455. package/dist/utilities/functions/noop.d.ts +0 -1
  456. package/dist/utilities/functions/normalizeDateBound.d.ts +0 -69
  457. package/dist/utilities/functions/parsePaginationNumber.d.ts +0 -22
  458. package/dist/utilities/functions/parseSize.d.ts +0 -3
  459. package/dist/utilities/functions/parseWidthString.d.ts +0 -6
  460. package/dist/utilities/functions/percentage.d.ts +0 -26
  461. package/dist/utilities/functions/pickBy.d.ts +0 -1
  462. package/dist/utilities/functions/range.d.ts +0 -1
  463. package/dist/utilities/functions/readableValue.d.ts +0 -6
  464. package/dist/utilities/functions/reject.d.ts +0 -25
  465. package/dist/utilities/functions/resolveEnumProp.d.ts +0 -19
  466. package/dist/utilities/functions/responsiveDefault.d.ts +0 -7
  467. package/dist/utilities/functions/searchRank.d.ts +0 -19
  468. package/dist/utilities/functions/settlesVisible.d.ts +0 -20
  469. package/dist/utilities/functions/snapToStep.d.ts +0 -1
  470. package/dist/utilities/functions/sort.d.ts +0 -6
  471. package/dist/utilities/functions/throttle.d.ts +0 -1
  472. package/dist/utilities/functions/toggleInput.d.ts +0 -114
  473. package/dist/utilities/functions/transpose.d.ts +0 -1
  474. package/dist/utilities/functions/validateDateFormat.d.ts +0 -8
  475. package/dist/utilities/functions/wait.d.ts +0 -2
  476. package/dist/utilities/functions/waitFor.d.ts +0 -9
  477. package/dist/utilities/functions/warnRemovedAttrs.d.ts +0 -49
  478. package/dist/utilities/functions/when.d.ts +0 -9
  479. package/dist/utilities/misc/autofocus.d.ts +0 -20
  480. package/dist/utilities/misc/iconsInjectionKey.d.ts +0 -15
  481. package/dist/utilities/misc/listboxMetrics.d.ts +0 -47
  482. package/dist/utilities/misc/maskaDataOptions.d.ts +0 -12
  483. package/dist/utilities/misc/pageText.d.ts +0 -16
  484. package/dist/utilities/misc/ssrValue.d.ts +0 -20
  485. package/dist/utilities/misc/transitions.d.ts +0 -5
  486. package/dist/utils/configDefaults.d.ts +0 -43
  487. package/dist/utils/configScope.d.ts +0 -43
  488. package/dist/utils/copyData.d.ts +0 -13
  489. package/dist/utils/focusVisibility.d.ts +0 -15
  490. package/dist/utils/injectLibraryStyles.d.ts +0 -8
  491. package/dist/utils/overlayEscapeStack.d.ts +0 -52
  492. package/dist/utils/overlaySurfaceIsolation.d.ts +0 -1
  493. package/dist/utils/passthroughDeduper.d.ts +0 -16
  494. package/dist/utils/releasedActivator.d.ts +0 -20
  495. package/dist/utils/versionCheck.d.ts +0 -19
package/README.md CHANGED
@@ -132,8 +132,11 @@ magnitude, not a contract.
132
132
  - [Component API files](https://llms-bitboss-ui.bitboss.it/dist/ai/manifest/index.json) — machine-readable API, one file per component (`manifest/components/<Name>.json`), each one read. The same data in one file for tools: [components.json](https://llms-bitboss-ui.bitboss.it/dist/ai/components.json) (about 1.2 MB).
133
133
  - [Complete knowledge base](https://llms-bitboss-ui.bitboss.it/dist/llms-full.txt) (about 5 MB) — everything concatenated. Bulk ingestion only; too large to prompt with.
134
134
 
135
- Already installed? Prefer the local copy under `node_modules/bitboss-ui/dist/ai/`
136
- (`npx bitboss-ui@beta setup` points your agents at it) and run
135
+ Already installed? Prefer the local copy in the installed package's
136
+ `dist/ai/` folder — `node_modules/bitboss-ui/dist/ai/` in a plain install;
137
+ under Yarn PnP, its `.yarn/unplugged` copy (there is no `node_modules`
138
+ copy). From your project root, the `AGENTS.md` block that
139
+ `npx bitboss-ui@beta setup` writes names the path either way. Run
137
140
  `npx bitboss-ui check` to validate markup against the installed version.
138
141
 
139
142
  ---
@@ -276,9 +279,10 @@ export default defineNuxtConfig({
276
279
 
277
280
  This package ships a machine-readable knowledge base alongside the compiled library. It is designed for **any** coding agent (Cursor, Claude Code, Copilot, Windsurf, Codex, …) — not a single vendor.
278
281
 
279
- **Start here (tiny hop map):** `node_modules/bitboss-ui/dist/ai/guides/ai-router.md`
282
+ **Start here (tiny hop map):** `dist/ai/guides/ai-router.md`, in the
283
+ installed package (from your project root, `AGENTS.md` names its folder).
280
284
 
281
- Then the catalogue: `node_modules/bitboss-ui/dist/ai/index.md`
285
+ Then the catalogue: `dist/ai/index.md`
282
286
 
283
287
  ### Agent setup
284
288
 
@@ -350,9 +354,12 @@ take an SDK fix before a bitboss-ui release, install both as dev dependencies
350
354
  is at least the bundled version and both share one zod copy. When it passes
351
355
  over an installed SDK, it says why on stderr.
352
356
 
353
- The agent harness launches the server itself (`node node_modules/bitboss-ui/bin/bitboss-ui.mjs mcp`,
354
- the installed binary rather than `npx`, so it can never fetch from the registry and it cannot
355
- drift behind an upgrade) on demand — you never run it by hand.
357
+ The agent harness launches the server itself on demand — you never run it
358
+ by hand. It launches the installed binary, never `npx`, so it can never
359
+ fetch from the registry or drift behind an upgrade:
360
+ `node node_modules/bitboss-ui/bin/bitboss-ui.mjs mcp` in a plain install;
361
+ under Yarn PnP, through Yarn (`yarn bitboss-ui mcp`, or the project's
362
+ committed Yarn release).
356
363
 
357
364
  The server is optional: it reads the `dist/ai/` files the install put on disk,
358
365
  so an agent that opens `dist/ai/guides/ai-router.md` itself has the same
@@ -929,10 +936,11 @@ literal: `bitbossUi({ allowComponents: ['BbCustom'] })` (Nuxt:
929
936
  for a component registered globally: one the file imports from your own path
930
937
  needs no entry.
931
938
 
932
- A standard `llms.txt` discovery file is also published at:
939
+ A standard `llms.txt` discovery file is also published in the installed
940
+ package, at its root and in `dist/`:
933
941
 
934
- - `node_modules/bitboss-ui/llms.txt` — package-root discovery file
935
- - `node_modules/bitboss-ui/dist/llms.txt` — dist-level copy
942
+ - `llms.txt` — package-root discovery file
943
+ - `dist/llms.txt` — dist-level copy
936
944
 
937
945
  ### Knowledge-base layout
938
946
 
@@ -963,7 +971,8 @@ files directly:
963
971
  | `bitboss-ui/ai/manifest/index.json` | `dist/ai/manifest/index.json` |
964
972
  | `bitboss-ui/ai/guides/ai-router.md` | `dist/ai/guides/ai-router.md` |
965
973
 
966
- Agents can also read paths under `node_modules/bitboss-ui/dist/ai/` directly.
974
+ Agents can also read the files under the installed package's `dist/ai/`
975
+ directly.
967
976
 
968
977
  ## Local development (this repository)
969
978
 
@@ -17,8 +17,9 @@
17
17
  * copies fail each other's brand checks.
18
18
  *
19
19
  * Run standalone: `npx bitboss-ui mcp` (delegated from bin/bitboss-ui.mjs).
20
- * Registered with every MCP-capable harness by `npx bitboss-ui setup` / `update`
21
- * (on by default; `--no-mcp` skips it).
20
+ * Registered for each detected harness by the agent setup (`setup`,
21
+ * `update --no-install`, the app's postinstall); `ai: false` in the plugin
22
+ * options removes the registration.
22
23
  */
23
24
 
24
25
  import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
@@ -46,6 +47,7 @@ import { stringControlsFor } from '../scripts/lib/text-null-value.mjs';
46
47
  import { projectResolution } from '../scripts/lib/unimported-components.mjs';
47
48
  import { isDirectRun as isDirectRunOf } from '../scripts/lib/is-direct-run.mjs';
48
49
  import { loadMcpSdk } from '../scripts/lib/mcp-sdk.mjs';
50
+ import { definePresetCpSource } from '../scripts/lib/define-preset-copy.mjs';
49
51
 
50
52
  const SDK = await loadMcpSdk();
51
53
  const { McpServer, StdioServerTransport, z } = SDK;
@@ -669,7 +671,7 @@ function seeAlso(entry, contract) {
669
671
  // where "write a MemberSelect around BbSelect" is answered.
670
672
  if (/options-items-playbook\.md/.test(contract) && isGeneric(entry))
671
673
  out.push(
672
- `Your own ${entry.name} with fixed items (a CustomerSelect): a preset, one call to definePreset (a helper you copy with: cp node_modules/bitboss-ui/dist/ai/helpers/definePreset.ts src/lib/definePreset.ts; not a bitboss-ui export): get_guide({ name: 'preset-components.md' }). Wrapping BbSelect in your own component with its own logic: get_guide({ name: 'options-items-playbook.md', sections: ['Wrapping BbSelect in your own component'] })`
674
+ `Your own ${entry.name} with fixed items (a CustomerSelect): a preset, one call to definePreset (a helper you copy with: cp ${definePresetCpSource(AI_ROOT, process.cwd())} src/lib/definePreset.ts; not a bitboss-ui export): get_guide({ name: 'preset-components.md' }). Wrapping BbSelect in your own component with its own logic: get_guide({ name: 'options-items-playbook.md', sections: ['Wrapping BbSelect in your own component'] })`
673
675
  );
674
676
  if (entry.validated)
675
677
  out.push(
@@ -2033,7 +2035,8 @@ function getGuide({ name, sections, maxChars } = {}) {
2033
2035
  *
2034
2036
  * WHY. The facts Haiku missed were all shipped — the
2035
2037
  * `.dark` class, `cssLayers`, `passthroughDeduper`, `ssrViewportWidth`, the
2036
- * `ai-init` and `changelog` commands, `prefill: false` — but each sat in one
2038
+ * `ai-init` (now `setup` / `update`) and `changelog` commands,
2039
+ * `prefill: false` — but each sat in one
2037
2040
  * section of a long document, and no tool could say which. Each result is a
2038
2041
  * snippet plus the exact call that reads the whole section.
2039
2042
  */
File without changes
package/bin/cli.mjs CHANGED
@@ -2,20 +2,25 @@
2
2
  * bitboss-ui CLI — AI-affordance utilities for consumer projects.
3
3
  *
4
4
  * Commands:
5
- * ai-init Inject bitboss-ui knowledge-base pointers into the current
6
- * project so coding agents discover and follow the library's
7
- * agent contract — harness-agnostic, not Claude-only. Writes:
8
- * - AGENTS.md fragment (Cursor, Codex, many others)
9
- * - CLAUDE.md fragment importing AGENTS.md (Claude Code)
10
- * - .cursor/rules/bitboss-ui.mdc (Cursor)
11
- * - .github/copilot-instructions.md fragment (GitHub Copilot)
12
- * - .claude/skills/bitboss-ui/SKILL.md (Claude Code)
13
- * - .windsurf/rules/bitboss-ui.md (Windsurf)
5
+ * setup One-time onboarding (scripts/lib/setup.mjs, on the slim entry
6
+ * in bin/bitboss-ui.mjs): installs bitboss-ui, wires the build
7
+ * plugin, adds the app's `postinstall` refresh below, and runs
8
+ * the agent setup. `--no-ai` skips the agent setup.
9
+ * update Install the newest release on the app's channel, refresh the
10
+ * agent setup, and list the breaking changes since the old
11
+ * version. `--no-install` — what the app's `postinstall` runs on
12
+ * every install — only refreshes, quietly, and never fails the
13
+ * install. The agent setup (scripts/lib/agent-setup.mjs) writes:
14
+ * - a marked block in AGENTS.md (most harnesses) and an
15
+ * `@AGENTS.md` import in CLAUDE.md (Claude Code)
16
+ * - per detected harness, its MCP file registering the
17
+ * `bitboss-ui mcp` server (its MCP SDK ships bundled, nothing
18
+ * to install) and the skill folder it reads (`--all`: every
19
+ * harness)
14
20
  * - `vueCompilerOptions.checkUnknownComponents: true` in the
15
21
  * tsconfig, unless the project already names it
16
- * Also registers the `bitboss-ui mcp` server for Claude Code,
17
- * Cursor, VS Code and Zed (its MCP SDK ships bundled, nothing
18
- * to install); pass --no-mcp to skip it.
22
+ * `ai: false` in the plugin options removes the agent setup;
23
+ * `BITBOSS_UI_AI=0` skips it on this machine.
19
24
  * check Validate Bb* markup in .vue/.md files against the installed
20
25
  * components.json manifest (unknown props, removed props, bad
21
26
  * v-models, unknown `<template #slot>` names, `href`/`to`/
@@ -108,9 +113,11 @@ import {
108
113
  unknownPluginOptionFindings,
109
114
  } from '../scripts/lib/plugin-options-check.mjs';
110
115
  import {
116
+ definePresetCpSource,
111
117
  readShippedDefinePreset,
112
118
  staleDefinePresetFindings,
113
119
  } from '../scripts/lib/define-preset-copy.mjs';
120
+ import { agentPaths } from '../scripts/lib/pnp.mjs';
114
121
  import {
115
122
  readOptionsApiOff,
116
123
  readRegisteredVariants,
@@ -124,7 +131,9 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
124
131
  import { parseArgs } from 'node:util';
125
132
  import { createRequire } from 'node:module';
126
133
  import { detectPackageManager, mcpLaunch } from '../scripts/lib/mcp-config.mjs';
134
+ import { mcpSdkFailureMessage } from '../scripts/lib/mcp-sdk.mjs';
127
135
  import { loadI18n, refreshAgentSetup } from '../scripts/lib/agent-refresh.mjs';
136
+ import { restartNoteForVersionChange } from '../scripts/lib/setup.mjs';
128
137
  import {
129
138
  readToolingOptions,
130
139
  toolingNotice,
@@ -233,7 +242,14 @@ async function updateCommand({ install, since, all = false }) {
233
242
  if (!insideInstall) process.exitCode = 1;
234
243
  }
235
244
  if (insideInstall) process.exitCode = 0;
236
- if (since && !insideInstall) changelogCommand({ since });
245
+ if (since && !insideInstall) {
246
+ // This copy is the version the install just landed on; `--since`
247
+ // is where the app came from. A dev server still running serves
248
+ // through the old copy's build plugin until it restarts.
249
+ const restartNote = restartNoteForVersionChange(since, packageVersion());
250
+ if (restartNote) console.log(restartNote);
251
+ changelogCommand({ since });
252
+ }
237
253
  return;
238
254
  }
239
255
  const before = installedBitboss(root);
@@ -1195,7 +1211,8 @@ async function checkCommand(
1195
1211
  ...staleDefinePresetFindings(
1196
1212
  styleScan.map((path) => ({ path, relPath: relative(projectRoot, path) })),
1197
1213
  readText,
1198
- readShippedDefinePreset(dirname(manifestPath))
1214
+ readShippedDefinePreset(dirname(manifestPath)),
1215
+ definePresetCpSource(dirname(manifestPath), projectRoot)
1199
1216
  )
1200
1217
  );
1201
1218
  // `.bb-*` selectors in the app's stylesheets (the `.vue` `<style>`
@@ -1267,8 +1284,14 @@ async function checkCommand(
1267
1284
  );
1268
1285
  for (const idiom of idioms)
1269
1286
  console.log(` ${idiom.file}:${idiom.line} [${idiom.id}] → ${idiom.use}`);
1287
+ // The knowledge base as this project names it (the unplugged copy
1288
+ // under Yarn PnP, where no node_modules path exists).
1289
+ const knowledgeBase = agentPaths(
1290
+ projectRoot,
1291
+ join(dirname(manifestPath), '..', '..')
1292
+ ).knowledgeBase;
1270
1293
  console.log(
1271
- ' Rows, replacements and the scope rule: node_modules/bitboss-ui/dist/ai/guides/migration/adoption-checklist.md.\n' +
1294
+ ` Rows, replacements and the scope rule: ${knowledgeBase}/guides/migration/adoption-checklist.md.\n` +
1272
1295
  ' Kept on purpose? Say why in one line of a HANDROLLED note.'
1273
1296
  );
1274
1297
  };
@@ -1671,7 +1694,9 @@ Commands:
1671
1694
  \`stale-define-preset\` (a copy of the definePreset
1672
1695
  recipe whose \`// bitboss-ui definePreset rev N\` stamp
1673
1696
  is older than the shipped one, or missing; update it
1674
- with \`cp node_modules/bitboss-ui/dist/ai/helpers/definePreset.ts <file>\`),
1697
+ with \`cp <knowledge-base>/helpers/definePreset.ts <file>\`
1698
+ — AGENTS.md names the knowledge base, and the finding
1699
+ itself prints the exact path for this project),
1675
1700
  \`wrapper-drops-props\` (a wrapper whose
1676
1701
  \`defineProps\` declares a \`Bb*Props\` type, bare,
1677
1702
  \`Omit\` or \`Pick\`, and never binds or reads some
@@ -1846,22 +1871,16 @@ switch (command) {
1846
1871
  case 'mcp': {
1847
1872
  // The SDK + zod pair ships bundled (dist/mcp-sdk.mjs), so the server
1848
1873
  // starts with nothing else installed; an app's own pair in range wins
1849
- // (scripts/lib/mcp-sdk.mjs). The one failure left is a
1850
- // package with no dist/ and no SDK installed: say so.
1874
+ // (scripts/lib/mcp-sdk.mjs). The failures left are a
1875
+ // package with no dist/ and no SDK installed, and a forced installed
1876
+ // pair that is not there: mcpSdkFailureMessage tells them apart.
1851
1877
  let main;
1852
1878
  try {
1853
1879
  ({ main } = await import('./bitboss-ui-mcp.mjs'));
1854
1880
  } catch (error) {
1855
- if (
1856
- error?.code !== 'ERR_MODULE_NOT_FOUND' ||
1857
- !/dist[/\\]mcp-sdk\.mjs|@modelcontextprotocol\/sdk/.test(
1858
- String(error.message)
1859
- )
1860
- )
1861
- throw error;
1862
- console.error(
1863
- 'bitboss-ui mcp: dist/mcp-sdk.mjs is missing — reinstall bitboss-ui (in the library repo: `npm run build`).'
1864
- );
1881
+ const failure = mcpSdkFailureMessage(error, process.env);
1882
+ if (!failure) throw error;
1883
+ console.error(failure);
1865
1884
  process.exitCode = 1;
1866
1885
  break;
1867
1886
  }
@@ -440,9 +440,9 @@ When it renders as a native button you can retune the element:
440
440
 
441
441
  ```vue
442
442
  <template>
443
- <form
443
+ <BbForm
444
444
  class="grid max-w-xs gap-2 rounded-(--bb-radius) border border-(--bb-border) bg-(--bb-panel) p-3"
445
- @submit.prevent="sent = true"
445
+ @submit="sent = true"
446
446
  >
447
447
  <p class="text-sm font-medium">New workspace</p>
448
448
  <p class="text-xs text-(--bb-text-muted)">
@@ -459,12 +459,12 @@ When it renders as a native button you can retune the element:
459
459
  >
460
460
  Create workspace
461
461
  </BbBaseButton>
462
- </form>
462
+ </BbForm>
463
463
  </template>
464
464
 
465
465
  <script setup lang="ts">
466
466
  import { ref } from 'vue';
467
- import { BbBaseButton } from 'bitboss-ui';
467
+ import { BbBaseButton, BbForm } from 'bitboss-ui';
468
468
 
469
469
  const sent = ref(false);
470
470
  </script>
@@ -150,6 +150,9 @@ const members = [
150
150
  </script>
151
151
  ```
152
152
 
153
+ A crumb with `hidden: true` is left out of the trail and the overflow menu,
154
+ the same flag a dropdown row takes.
155
+
153
156
  ### Long trails collapse on their own
154
157
 
155
158
  You do not manage overflow. When the trail is wider than its container the
@@ -207,16 +207,20 @@ const quotes = [
207
207
  ```
208
208
 
209
209
  A slide can hold a carousel of its own: each card swipes its photos, the row
210
- swipes the cards, and a drag moves only the carousel it starts on.
210
+ swipes the cards, and a drag moves only the carousel it starts on. The photos
211
+ keep only their dots and the row's arrows sit above the cards, so the two sets
212
+ of controls can't be confused.
211
213
 
212
214
  **Listings, a photo carousel in each card**
213
215
 
214
216
  ```vue
215
217
  <template>
216
218
  <BbCarousel
217
- class="[--per-view:1.1] md:[--per-view:2]"
219
+ class="pt-12 [--per-view:1.1] md:[--per-view:2]"
218
220
  :items="listings"
219
221
  label="Homes for rent"
222
+ pt:next="top-0 right-0 bottom-auto opacity-100 pointer-events-auto aria-disabled:opacity-40"
223
+ pt:prev="top-0 right-12 bottom-auto left-auto opacity-100 pointer-events-auto aria-disabled:opacity-40"
220
224
  >
221
225
  <template #slide="{ item: listing }">
222
226
  <article class="grid gap-2">
@@ -225,6 +229,8 @@ swipes the cards, and a drag moves only the carousel it starts on.
225
229
  :items="listing.photos"
226
230
  :label="`Photos of ${listing.title}`"
227
231
  loop
232
+ pt:next="hidden"
233
+ pt:prev="hidden"
228
234
  >
229
235
  <template #overlay="{ index }">
230
236
  <span
@@ -494,6 +500,11 @@ inside it pauses autoplay. The rest is yours:
494
500
  - Animate with `motion-safe:` variants, so reduced motion gets none.
495
501
  - A slide change announces "2 of 5", not the overlay's text: readers reach it
496
502
  by reading the slide.
503
+ - With `loop`, the overlay renders on the clone slides too, inert and hidden
504
+ with them: five photos can hold more than five overlay buttons, in track
505
+ order, not photo order. A test (or an agent) picking "the third button"
506
+ can open the wrong photo — pick the control inside its real slide instead
507
+ (the current one is `.bb-carousel__slide--current`, never `--clone`).
497
508
 
498
509
  ### A thumbnail strip
499
510
 
@@ -504,6 +515,17 @@ keeping it in the middle slot with the ends clamped, the arrow keys step one
504
515
  thumbnail at a time, and a swipe only browses. The value is the photo, so the
505
516
  main carousel can show one or several per view.
506
517
 
518
+ A strip of built-in images needs no slot: with `picker`, each image is a
519
+ button that picks its slide (`pt:thumb` styles it), named by its `alt`, or
520
+ "Go to slide 3" when it has none, and the current one carries
521
+ `aria-current` and a border in the surface's text colour (a dark border on a
522
+ light page, a light one on a dark page or in a dark viewer). Your own `slide`
523
+ slot is left as it is. A picker's own
524
+ arrows and dots stay hidden — the thumbnails are the control. Bring them
525
+ back through `pt` where a strip wants them: a `pt` style works everywhere
526
+ (`:pt:dots="{ style: 'display: flex' }"`), a display utility only where
527
+ utilities outrank the library sheet (the layered setup).
528
+
507
529
  **A gallery with a picker strip**
508
530
 
509
531
  ```vue
@@ -517,32 +539,11 @@ main carousel can show one or several per view.
517
539
  />
518
540
  <BbCarousel
519
541
  v-model="photo"
520
- class="[--gap:8px] [--per-view:4.5] [--py:4px] md:[--per-view:6]"
542
+ class="[--gap:8px] [--per-view:4.5] [--ratio:3/2] md:[--per-view:6]"
521
543
  :items="photos"
522
544
  label="Thumbnails"
523
545
  picker
524
- pt:dots="hidden"
525
- >
526
- <template #slide="{ item, index, current }">
527
- <button
528
- :aria-current="current || undefined"
529
- :aria-label="`Show photo ${index + 1}: ${item.alt}`"
530
- class="relative block w-full overflow-hidden rounded-(--bb-radius) transition after:absolute after:inset-0 after:rounded-[inherit] after:border-2 after:border-transparent focus-visible:outline-none focus-visible:after:border-(--bb-ring)"
531
- :class="
532
- current
533
- ? 'after:border-(--bb-primary)'
534
- : 'opacity-60 hover:opacity-100'
535
- "
536
- type="button"
537
- >
538
- <img
539
- alt=""
540
- class="aspect-[3/2] w-full object-cover"
541
- :src="item.src"
542
- />
543
- </button>
544
- </template>
545
- </BbCarousel>
546
+ />
546
547
  </div>
547
548
  </template>
548
549
 
@@ -929,7 +930,8 @@ const headlines = [
929
930
 
930
931
  ### Restyling with passthrough
931
932
 
932
- Parts: `root`, `slide`, `image`, `prev`, `next`, `dots`, `dot`, `pause`.
933
+ Parts: `root`, `slide`, `image`, `thumb` (a picker's built-in thumbnail
934
+ buttons), `prev`, `next`, `dots`, `dot`, `pause`.
933
935
  States: `active` (the slides in view, the current page's dot), `current` (the
934
936
  `v-model` slide) and `disabled` (`prev` /
935
937
  `next` at an end without `loop`). The slides' corner radius is the `--r`
@@ -1002,7 +1004,7 @@ side it goes to and release the other.
1002
1004
 
1003
1005
  | Prop | Type | Default | Required | Description |
1004
1006
  | --- | --- | --- | --- | --- |
1005
- | `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: `dot`, `dots`, `image`, `next`, `overlay`, `pause`, `prev`, `root`, `slide`. States: `active`, `disabled`, `current`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbCarouselProps<Row>['pt']` (`BbCarouselProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
1007
+ | `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: `dot`, `dots`, `image`, `next`, `overlay`, `pause`, `prev`, `root`, `slide`, `thumb`. States: `active`, `disabled`, `current`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbCarouselProps<Row>['pt']` (`BbCarouselProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
1006
1008
  | `align` | `"start" \| "center" \| undefined` | ``undefined` (the local's own default: `start`)` | | Where the current slide sits: `start` (the column's start edge) or `center` (the middle, neighbours peeking on both sides). Sets the `--align` local; leave it out to set the local yourself, never both (`bitboss-ui/carousel-prop-or-local`). |
1007
1009
  | `autoplay` | `number \| boolean \| undefined` | `false` | | Advance on a timer, in ms (`true` = 5000). Pauses while hovered, while focus is inside and with the pause button; never runs under `prefers-reduced-motion`. |
1008
1010
  | `bleed` | `boolean \| undefined` | ``undefined` (no bleed)` | | Lets the slides run past the carousel to the page edge, while they still snap to and size from the carousel (`--bleed: auto`). Leave it out to set the `--bleed` locals yourself (a length, one side, per breakpoint); never both (`bitboss-ui/carousel-prop-or-local`). |
@@ -1011,7 +1013,7 @@ side it goes to and release the other.
1011
1013
  | `loop` | `boolean \| undefined` | `false` | | An endless run: buttons, keys, autoplay, a swipe and a mouse drag all carry on past the last slide into the first (and back), with no rewind. |
1012
1014
  | `modelValue` | `number \| undefined` | `0` | | The current slide, 0-based, never clamped to a scroll position: the view shows the page that holds it. Out of range, it is brought back and written back. The current slide: any slide, 0 to the last. The view shows the page that holds it; a value out of range is brought back in and written back. |
1013
1015
  | `perView` | `number \| undefined` | ``undefined` (the local's own default: 1)` | | Slides in view; a fraction shows a peek of the next (`1.2`). Sets the `--per-view` local. Leave it out to set the local yourself, for instance per breakpoint (`class="[--per-view:1.2] md:[--per-view:3]"`); never both (`bitboss-ui/carousel-prop-or-local`). |
1014
- | `picker` | `boolean \| undefined` | `false` | | A strip that picks the current slide, typically thumbnails under a big photo on the same `v-model` (also dates, colour swatches): it steps one slide at a time (arrows, keys), follows the current one, keeping it in the middle slot with the ends clamped, and a swipe only browses. |
1016
+ | `picker` | `boolean \| undefined` | `false` | | A strip that picks the current slide (thumbnails under a big photo on the same `v-model`): steps one at a time, keeps the current one in the middle slot, a swipe only browses. Its arrows and dots stay hidden (`pt` brings them back); without a `slide` slot each built-in image is a button. |
1015
1017
 
1016
1018
  ## Passthrough parts and states
1017
1019
 
@@ -1022,6 +1024,7 @@ side it goes to and release the other.
1022
1024
  | `root` | The carousel region (`aria-roledescription="carousel"`). Its locals size the slides: `--per-view` (slides in view, default `1`) and `--gap` (between slides, default `16px`). Set them per breakpoint with utilities (`class="md:[--per-view:2]"`). `--bleed` (`auto` or a length; per side `--bleed-start` / `--bleed-end`) lets the slides run past the root to the page edge while they still snap to the root's edge. `--speed` (default `300ms`) is how long a move takes. The root also carries what looks like the strip's own styling: a background behind the slides, a border or a shadow around them, the corners (`--r`). |
1023
1025
  | `slide` | One slide (`aria-roledescription="slide"`, "3 of 8"). |
1024
1026
  | `image` | The image an image-URL entry of `items`, or an entry with a `src` or a `srcset`, renders without a `slide` slot. Its crop is the root's `--ratio` local (default `16 / 9`), or the root's height when it has one. The track (the scroller between the root and the slides) is deliberately NOT a part: its gap, overflow, snapping and padding are the carousel's geometry (the slide widths, the snap points and the bleed are computed from the same values), so a class there breaks the carousel, and the root already covers every look a consumer needs. Weigh any change that would expose it, or add to what it does, against that. |
1027
+ | `thumb` | The button a `picker` wraps each built-in image in (never around `slide` slot content): named by the image's `alt`, else the go-to-slide text, with the current slide's carrying `aria-current`. Only with `picker`. |
1025
1028
  | `overlay` | The layer the `overlay` slot renders on top of each slide: the slide's size, empty by default, letting taps through where it has no content. |
1026
1029
  | `prev` | The previous-slide button. |
1027
1030
  | `next` | The next-slide button. |
@@ -1085,7 +1088,7 @@ Set these on the element, or on a class you put on it, to retune this component
1085
1088
  - **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 `BbCarousel`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
1086
1089
  - Listed nodes are the ones `BbCarousel`'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/BbCarousel.tree.json` (a public component in it is a name: its own tree file has the rest).
1087
1090
 
1088
- - `BbCarousel` _(this component)_ — its own template binds: `dots` → `div.bb-carousel__dots`, `pause` → `button.bb-carousel__pause`, `dot` → `button.bb-carousel__dot`, `prev` → `button.bb-carousel__arrow`, `next` → `button.bb-carousel__arrow`, `slide` → `div.bb-carousel__slide`, `image` → `img.bb-carousel__image`, `overlay` → `div.bb-carousel__overlay`
1091
+ - `BbCarousel` _(this component)_ — its own template binds: `dots` → `div.bb-carousel__dots`, `pause` → `button.bb-carousel__pause`, `dot` → `button.bb-carousel__dot`, `prev` → `button.bb-carousel__arrow`, `next` → `button.bb-carousel__arrow`, `slide` → `div.bb-carousel__slide`, `thumb` → `button.bb-carousel__thumb`, `image` → `img.bb-carousel__image`, `overlay` → `div.bb-carousel__overlay`
1089
1092
  - Also mounts `BbIcon`
1090
1093
 
1091
1094
  ## See Also
@@ -36,7 +36,6 @@
36
36
  | `--t` | `pt:icon` | `BbBaseCheckboxIcon` | State-change time: the fill fade and the check / dash drawing in. |
37
37
  | `--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. |
38
38
  | `--border-color` | `pt:icon` | `BbBaseCheckboxIcon` | Resting border colour of the glyph; re-pointed by error and warning states. |
39
- | `--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. |
40
39
 
41
40
  ## Usage & Guidelines
42
41
 
@@ -526,8 +525,8 @@ const toggleAll = (checked: boolean) => {
526
525
  `right` stay physical.
527
526
  - `input-align` / `label-align` (`'top' | 'center' | 'bottom'`) are the
528
527
  vertical axis of a side-by-side row. Omitted, the box sits on the label's
529
- first line; `input-align="center"` puts it on the middle of a described
530
- label.
528
+ first line (the label column itself sits at the row's top);
529
+ `input-align="center"` puts it on the middle of a described label.
531
530
  - `hide-label` keeps the label for screen readers but hides it visually — only
532
531
  for dense composites where visible text lives elsewhere.
533
532
  - `compact` tightens the field's label spacing (`--bb-label-spacing-y-compact` instead of `--bb-label-spacing-y`), the same as on the groups — for dense forms and settings panels.
@@ -747,10 +746,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
747
746
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
748
747
  | `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. |
749
748
  | `indeterminate` | `boolean \| undefined` | `false` | | Sets the input in an indeterminate state. |
750
- | `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. |
749
+ | `inputAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
751
750
  | `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. |
752
751
  | `label` | `string` | | yes | Text content of the label of the element. |
753
- | `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. |
752
+ | `labelAlign` | `FieldCrossAlign \| undefined` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
754
753
  | `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. |
755
754
  | `layout` | `Responsive<FieldLayout> \| undefined` | `'auto'` | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
756
755
  | `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
@@ -820,7 +819,7 @@ States are listed in precedence order: when two are on at once and their entries
820
819
  - Listed nodes are the ones `BbCheckbox`'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/BbCheckbox.tree.json` (a public component in it is a name: its own tree file has the rest).
821
820
 
822
821
  - `BbCheckbox` _(this component)_ — its own template binds: `icon` → `BbBaseCheckboxIcon`
823
- - `CommonField` _(internal — not importable, reach it through `BbCheckbox`)_ — `BbCheckbox`'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`
822
+ - `CommonField` _(internal — not importable, reach it through `BbCheckbox`)_ — `BbCheckbox`'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`
824
823
  - Also mounts `BbBaseCheckboxIcon`
825
824
 
826
825
  ## See Also
@@ -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` | The frame and the lines between the segments |
66
- | `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked segment under the pointer |
67
64
 
68
65
  ## Usage & Guidelines
69
66
 
@@ -666,15 +663,17 @@ option shortens it, unticking a middle option splits it (the hole opens in
666
663
  place), a lone pick pops a new pill in, and a pill whose options are all
667
664
  unticked shrinks to its centre and fades. Two pills that come to touch stay
668
665
  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
- filled with the primary colour (adjacent picks fill as one block). The strip
671
- and its triggers measure exactly as BbTabs'.
666
+ adjacent bars join. `outline` is a set of outline BbButtons, each pick in
667
+ the button's pressed state, painted on that button (no indicator): it looks
668
+ and behaves exactly like a row of `BbButton variant="outline"` (`compact`
669
+ takes the button's `sm` size). The `pill` and `line` strips and their
670
+ triggers measure exactly as BbTabs'.
672
671
  It is still a checkbox group (native checkboxes, `max`, forms, validation);
673
672
  the box is hidden (an `icon` slot shows before the label) and the strip
674
- never wraps (it scrolls); `list-layout="vertical"` stacks it into a column
673
+ never wraps (it scrolls; `outline` buttons wrap onto further lines instead); `list-layout="vertical"` stacks it into a column
675
674
  (runs stack on the Y axis), `block` spans the field (the triggers share its
676
675
  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
676
+ apply. `pt:indicator` reaches every pill or bar (`outline` has none), and
678
677
  `pt:<part>:pill` / `pt:<part>:line` / `pt:<part>:outline` style a part in one
679
678
  look only. The strip's tokens are its own, named and valued as a tab strip's. A
680
679
  strip has no `size`: it is `--bb-control-h` tall like a field (`compact` drops
@@ -700,6 +699,12 @@ is `pt:list="[--list-h:24px] [--fs:12px] [--p:2px]"`. A registered `components:
700
699
  legend="Notify by"
701
700
  variant="line"
702
701
  />
702
+ <BbCheckboxGroup
703
+ v-model="amenities"
704
+ :items="['Wi-Fi', 'Parking', 'Breakfast', 'Pet friendly', 'Pool']"
705
+ legend="Amenities"
706
+ variant="outline"
707
+ />
703
708
  </div>
704
709
  </template>
705
710
 
@@ -709,10 +714,12 @@ import { BbCheckboxGroup } from 'bitboss-ui';
709
714
 
710
715
  // BbTabs' looks on a multi-pick. `pill`: one pill per run of adjacent picks,
711
716
  // 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.
717
+ // it splits. `line`: a bar under each pick, adjacent bars join. `outline`: a
718
+ // set of outline buttons, each pick in the button's pressed state.
713
719
  const weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
714
720
  const days = ref(['Mon', 'Tue', 'Wed', 'Fri']);
715
721
  const channels = ref(['Email', 'Push']);
722
+ const amenities = ref(['Wi-Fi', 'Breakfast']);
716
723
  </script>
717
724
  ```
718
725
 
@@ -978,7 +985,7 @@ too.
978
985
  legend="Cadence"
979
986
  list-layout="horizontal"
980
987
  name="cadence"
981
- pt:item="flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2"
988
+ pt:item="min-w-fit flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2"
982
989
  pt:item:checked="border-(--bb-primary) bg-(--bb-muted)"
983
990
  />
984
991
  </div>
@@ -1104,7 +1111,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1104
1111
  | `hideLegend` | `boolean \| undefined` | `false` | | Visually hides the legend of the fieldset while maintaining accessibility. |
1105
1112
  | `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
1106
1113
  | `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. |
1114
+ | `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
1108
1115
  | `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
1116
  | `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
1117
  | `itemLabelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's label in its row. Omitted, it stays as it is. |
@@ -1114,7 +1121,7 @@ for a preset that fits any row type (never `<any>`), not an imported
1114
1121
  | `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
1122
  | `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
1123
  | `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. |
1124
+ | `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
1118
1125
  | `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
1126
  | `legend` | `string` | | yes | Text content of the legend. |
1120
1127
  | `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. |
@@ -1238,21 +1245,16 @@ Set these on the element, or on a class you put on it, to retune this component
1238
1245
  | `--indicator-h` | `.bb-checkbox-group__list--line` | `2px` | |
1239
1246
  | `--indicator-shadow` | `.bb-checkbox-group__list--line` | `none` | |
1240
1247
  | `--elev` | `.bb-checkbox-group__list--line` | `none` | |
1241
- | `--list-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline)` | |
1248
+ | `--list-bg` | `.bb-checkbox-group__list--outline` | `transparent` | |
1242
1249
  | `--list-border` | `.bb-checkbox-group__list--outline` | `transparent` | |
1250
+ | `--list-h` | `.bb-checkbox-group__list--outline` | `auto` | |
1243
1251
  | `--p` | `.bb-checkbox-group__list--outline` | `0px` | |
1244
- | `--trigger-r` | `.bb-checkbox-group__list--outline` | `0px` | |
1252
+ | `--trigger-gap` | `.bb-checkbox-group__list--outline` | `8px` | |
1253
+ | `--trigger-min-h` | `.bb-checkbox-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | BbButton md |
1245
1254
  | `--trigger-px` | `.bb-checkbox-group__list--outline` | `12px` | |
1246
- | `--list-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1247
- | `--hover-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1248
- | `--active-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-primary-fg)` | |
1249
- | `--active-fw` | `.bb-checkbox-group__list--outline` | `500` | |
1250
- | `--indicator-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-primary)` | |
1251
- | `--indicator-border` | `.bb-checkbox-group__list--outline` | `transparent` | |
1252
- | `--indicator-r` | `.bb-checkbox-group__list--outline` | `0px` | |
1253
- | `--indicator-shadow` | `.bb-checkbox-group__list--outline` | `none` | |
1254
- | `--divider` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-border)` | The frame and the lines between the segments |
1255
- | `--hover-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-hover)` | An unpicked segment under the pointer |
1255
+ | `--fs` | `.bb-checkbox-group__list--outline` | `var(--bb-fs)` | |
1256
+ | `--trigger-r` | `.bb-checkbox-group__list--outline` | `var(--bb-radius)` | |
1257
+ | `--elev` | `.bb-checkbox-group__list--outline` | `var(--bb-elev)` | |
1256
1258
 
1257
1259
  ## Component tree
1258
1260
 
@@ -1264,8 +1266,8 @@ Set these on the element, or on a class you put on it, to retune this component
1264
1266
  - 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).
1265
1267
 
1266
1268
  - `BbCheckboxGroup` _(this component)_ — its own template binds: `indicator` → `span.bb-checkbox-group__indicator`, `icon` → `BbBaseCheckboxIcon`
1267
- - `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`
1268
- - `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`, `--divider`, `--hover-bg`
1269
+ - `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`
1270
+ - `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`
1269
1271
  - Also mounts `BbBaseCheckboxIcon`
1270
1272
 
1271
1273
  ## See Also