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

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 (407) 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/BbCarousel.md +32 -29
  7. package/dist/ai/BbCheckboxGroup.md +15 -12
  8. package/dist/ai/BbColorInput.md +6 -10
  9. package/dist/ai/BbDropzone.md +3 -3
  10. package/dist/ai/BbGallery.md +2034 -0
  11. package/dist/ai/BbPopover.md +12 -6
  12. package/dist/ai/BbRadioGroup.md +18 -15
  13. package/dist/ai/BbRating.md +3 -7
  14. package/dist/ai/BbSwitchGroup.md +3 -3
  15. package/dist/ai/BbTextInput.md +8 -8
  16. package/dist/ai/OptionsContainer.md +10 -7
  17. package/dist/ai/changelog.json +80 -4
  18. package/dist/ai/components.json +19 -14
  19. package/dist/ai/guides/ai-router.md +3 -2
  20. package/dist/ai/guides/component-picker.md +1 -0
  21. package/dist/ai/guides/eslint-rules.md +3 -3
  22. package/dist/ai/guides/installation-and-plugin-setup.md +5 -5
  23. package/dist/ai/guides/migration/v2-to-v3.md +29 -1
  24. package/dist/ai/guides/migration/v3-beta-tooling.md +25 -15
  25. package/dist/ai/guides/passthrough.md +2 -1
  26. package/dist/ai/guides/preset-components.md +19 -10
  27. package/dist/ai/helpers/definePreset.ts +8 -4
  28. package/dist/ai/helpers/inertia/manifest.json +1 -1
  29. package/dist/ai/index.md +2 -1
  30. package/dist/ai/manifest/components/BbCarousel.json +3 -2
  31. package/dist/ai/manifest/components/BbCarousel.tree.json +7 -0
  32. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +13 -11
  33. package/dist/ai/manifest/components/BbConfigScope.json +1 -1
  34. package/dist/ai/manifest/components/BbGallery.json +54 -0
  35. package/dist/ai/manifest/components/BbGallery.tree.json +139 -0
  36. package/dist/ai/manifest/components/BbRadioGroup.tree.json +12 -10
  37. package/dist/ai/manifest/components/BbRating.removed.json +1 -1
  38. package/dist/ai/manifest/components/BbSlider.json +1 -1
  39. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +1 -1
  40. package/dist/ai/manifest/components/BbTabs.removed.json +4 -4
  41. package/dist/ai/manifest/components/BbTabsList.removed.json +4 -4
  42. package/dist/ai/manifest/components/OptionsContainer.tree.json +10 -7
  43. package/dist/ai/manifest/index.json +4 -3
  44. package/dist/ai/manifest/meta.json +5 -1
  45. package/dist/ai/manifest/types.advanced.json +3 -1
  46. package/dist/ai/manifest/types.api.json +1 -1
  47. package/dist/ai/manifest/types.wrapper.json +1 -0
  48. package/dist/ai/recipes/inertia/onboarding.md +5 -8
  49. package/dist/ai/recipes/inertia/record-form.md +33 -12
  50. package/dist/ai/recipes/nuxt/onboarding.md +5 -8
  51. package/dist/ai/recipes/nuxt/record-form.md +27 -11
  52. package/dist/ai/recipes/vue/onboarding.md +5 -8
  53. package/dist/ai/recipes/vue/record-form.md +25 -11
  54. package/dist/ai/source/BbCalendar.md +2 -0
  55. package/dist/ai/source/BbCarousel.md +135 -32
  56. package/dist/ai/source/BbDropdown.md +2 -0
  57. package/dist/ai/source/BbDropdownGroup.md +2 -0
  58. package/dist/ai/source/BbGallery.md +2027 -0
  59. package/dist/ai/source/BbRadioGroup.md +2 -2
  60. package/dist/ai/source/BbSelectPopover.md +1 -0
  61. package/dist/ai/source/BbSwitchGroup.md +1 -0
  62. package/dist/ai/source/BbTable.md +11 -7
  63. package/dist/ai/source/BbTree.md +7 -3
  64. package/dist/ai/source/CommonPopover.md +13 -3
  65. package/dist/ai/source/FlatListBox.md +3 -3
  66. package/dist/ai/source/GroupedListBox.md +3 -3
  67. package/dist/ai/source/ListBox.md +4 -4
  68. package/dist/ai/source/OptionsContainer.md +4 -4
  69. package/dist/components/BbCalendar/useDayjsLocale.js +5 -3
  70. package/dist/components/BbCarousel/BbCarousel.vue.d.ts +1 -1
  71. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +506 -481
  72. package/dist/components/BbCarousel/dragRelease.js +14 -0
  73. package/dist/components/BbCarousel/ptKeys.generated.d.ts +4 -0
  74. package/dist/components/BbCarousel/types.d.ts +11 -6
  75. package/dist/components/BbCarousel/types.js +1 -0
  76. package/dist/components/BbGallery/BbGallery.vue.d.ts +50 -0
  77. package/dist/components/BbGallery/BbGallery.vue.js +5 -0
  78. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +587 -0
  79. package/dist/components/BbGallery/findItem.js +41 -0
  80. package/dist/components/BbGallery/ptKeys.generated.d.ts +112 -0
  81. package/dist/components/BbGallery/types.d.ts +177 -0
  82. package/dist/components/BbGallery/types.js +29 -0
  83. package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -0
  84. package/dist/components/BbOffCanvas/sheetSnap.js +5 -5
  85. package/dist/components/BbRadioGroup/types.d.ts +2 -2
  86. package/dist/components/BbTable/types.d.ts +7 -7
  87. package/dist/components/BbTree/types.d.ts +3 -3
  88. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +28 -26
  89. package/dist/composables/overlayRegistry.d.ts +17 -0
  90. package/dist/composables/overlayRegistry.js +16 -9
  91. package/dist/composables/useChoiceIndicator.js +1 -1
  92. package/dist/deprecation/ai-deprecations.json.js +1 -1
  93. package/dist/directives/bbGallery.d.ts +64 -0
  94. package/dist/directives/bbGallery.js +38 -0
  95. package/dist/i18n/locales/ar.json +3 -1
  96. package/dist/i18n/locales/cs.json +3 -1
  97. package/dist/i18n/locales/da.json +3 -1
  98. package/dist/i18n/locales/de-CH.json +3 -1
  99. package/dist/i18n/locales/de.json +3 -1
  100. package/dist/i18n/locales/el.json +3 -1
  101. package/dist/i18n/locales/en-GB.json +3 -1
  102. package/dist/i18n/locales/en.json +3 -1
  103. package/dist/i18n/locales/es-MX.json +3 -1
  104. package/dist/i18n/locales/es.json +3 -1
  105. package/dist/i18n/locales/fa.json +3 -1
  106. package/dist/i18n/locales/fi.json +3 -1
  107. package/dist/i18n/locales/fr.json +3 -1
  108. package/dist/i18n/locales/he.json +3 -1
  109. package/dist/i18n/locales/hu.json +3 -1
  110. package/dist/i18n/locales/it.json +3 -1
  111. package/dist/i18n/locales/ja.json +3 -1
  112. package/dist/i18n/locales/ko.json +3 -1
  113. package/dist/i18n/locales/nb.json +3 -1
  114. package/dist/i18n/locales/nl.json +3 -1
  115. package/dist/i18n/locales/pl.json +3 -1
  116. package/dist/i18n/locales/pt-BR.json +3 -1
  117. package/dist/i18n/locales/pt-PT.json +3 -1
  118. package/dist/i18n/locales/ro.json +3 -1
  119. package/dist/i18n/locales/ru.json +3 -1
  120. package/dist/i18n/locales/sv.json +3 -1
  121. package/dist/i18n/locales/tr.json +3 -1
  122. package/dist/i18n/locales/uk.json +3 -1
  123. package/dist/i18n/locales/zh-CN.json +3 -1
  124. package/dist/i18n/locales/zh-HK.json +3 -1
  125. package/dist/i18n/locales/zh-TW.json +3 -1
  126. package/dist/index.d.ts +4 -0
  127. package/dist/index.js +38 -36
  128. package/dist/llms-full.txt +2328 -185
  129. package/dist/llms-medium.txt +10 -7
  130. package/dist/llms.txt +1 -1
  131. package/dist/locale-blueprint.json +3 -1
  132. package/dist/nuxt-auto-imports.js +1 -1
  133. package/dist/plugin.js +18 -17
  134. package/dist/project-dts.js +17 -16
  135. package/dist/runtime/nuxt-plugin.js +22 -21
  136. package/dist/scripts/lib/atomic-write.js +42 -0
  137. package/dist/styles.css +2 -2
  138. package/dist/types/passthrough.d.ts +2 -2
  139. package/dist/types/ptComponentMap.d.ts +2 -1
  140. package/dist/utilities/calendar/canonicalParts.js +10 -2
  141. package/dist/utils/versionCheck.js +1 -1
  142. package/dist/vite.js +361 -331
  143. package/llms.txt +2 -2
  144. package/package.json +2 -1
  145. package/scripts/README.md +25 -25
  146. package/scripts/lib/agent-refresh.mjs +15 -9
  147. package/scripts/lib/agent-setup.mjs +46 -15
  148. package/scripts/lib/atomic-write.d.mts +6 -0
  149. package/scripts/lib/atomic-write.mjs +85 -0
  150. package/scripts/lib/define-preset-copy.mjs +23 -3
  151. package/scripts/lib/eslint-plugin.mjs +74 -36
  152. package/scripts/lib/hand-imported-styles.mjs +44 -99
  153. package/scripts/lib/helpers-add.mjs +3 -1
  154. package/scripts/lib/linked-target.mjs +1 -1
  155. package/scripts/lib/locale-check.mjs +41 -25
  156. package/scripts/lib/mcp-config.mjs +250 -133
  157. package/scripts/lib/mcp-sdk.mjs +24 -0
  158. package/scripts/lib/plugin-options-check.mjs +22 -15
  159. package/scripts/lib/pnp.mjs +1 -1
  160. package/scripts/lib/project-variant-dts.mjs +80 -136
  161. package/scripts/lib/release-results.mjs +331 -0
  162. package/scripts/lib/setup.mjs +53 -3
  163. package/scripts/lib/toolchain-check.mjs +10 -8
  164. package/scripts/lib/tooling-options.mjs +357 -38
  165. package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +0 -15
  166. package/dist/components/BbBadge/badgeButtonContext.d.ts +0 -55
  167. package/dist/components/BbBaseButton/RouterComponent.vue.d.ts +0 -18
  168. package/dist/components/BbBaseButton/useLinkState.d.ts +0 -43
  169. package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.d.ts +0 -18
  170. package/dist/components/BbButton/toggleRoving.d.ts +0 -6
  171. package/dist/components/BbCalendar/CalendarMonthPanel.vue.d.ts +0 -5
  172. package/dist/components/BbCalendar/CalendarYearPanel.vue.d.ts +0 -5
  173. package/dist/components/BbCalendar/calendarHost.d.ts +0 -29
  174. package/dist/components/BbCalendar/calendarMath.d.ts +0 -102
  175. package/dist/components/BbCalendar/useCalendarContext.d.ts +0 -116
  176. package/dist/components/BbCalendar/useCalendarGrid.d.ts +0 -411
  177. package/dist/components/BbCalendar/useDayGrid.d.ts +0 -122
  178. package/dist/components/BbCalendar/useDayjsLocale.d.ts +0 -93
  179. package/dist/components/BbCalendar/useToday.d.ts +0 -25
  180. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +0 -4
  181. package/dist/components/BbConfirm/BbConfirmHost.d.ts +0 -10
  182. package/dist/components/BbConfirm/confirmEntry.d.ts +0 -4
  183. package/dist/components/BbDatePickerInput/calendarFields.d.ts +0 -91
  184. package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +0 -29
  185. package/dist/components/BbDialog/useDialogStack.d.ts +0 -19
  186. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +0 -26
  187. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +0 -38
  188. package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +0 -16
  189. package/dist/components/BbDropdown/DropdownRow.vue.d.ts +0 -41
  190. package/dist/components/BbDropdown/normalizeGroups.d.ts +0 -39
  191. package/dist/components/BbDropdown/pointerTrail.d.ts +0 -5
  192. package/dist/components/BbDropdown/useDropdownContext.d.ts +0 -131
  193. package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +0 -170
  194. package/dist/components/BbForm/BbFormCustomField.d.ts +0 -14
  195. package/dist/components/BbForm/bindFormField.d.ts +0 -56
  196. package/dist/components/BbForm/formFields.d.ts +0 -77
  197. package/dist/components/BbHost/BbHostOpening.d.ts +0 -27
  198. package/dist/components/BbHoverCard/hoverCardFocus.d.ts +0 -29
  199. package/dist/components/BbIcon/iconCache.d.ts +0 -63
  200. package/dist/components/BbNumberInput/numberDisplay.d.ts +0 -255
  201. package/dist/components/BbNumberInput/platform.d.ts +0 -7
  202. package/dist/components/BbOffCanvas/hostCloseLabel.d.ts +0 -3
  203. package/dist/components/BbOffCanvas/sheetAttrs.d.ts +0 -9
  204. package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +0 -37
  205. package/dist/components/BbPagination/paginationFit.d.ts +0 -38
  206. package/dist/components/BbSelectPopover/knownItems.d.ts +0 -65
  207. package/dist/components/BbSelectPopover/reclickClears.d.ts +0 -17
  208. package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +0 -18
  209. package/dist/components/BbTable/BbTableDataRow.d.ts +0 -204
  210. package/dist/components/BbTable/BbTableEdgeRow.d.ts +0 -112
  211. package/dist/components/BbTable/BbTableExpandRow.d.ts +0 -84
  212. package/dist/components/BbTable/BbTableSelectToggle.d.ts +0 -128
  213. package/dist/components/BbTable/estimatedFloors.golden.d.ts +0 -25
  214. package/dist/components/BbTable/gridWidgets.d.ts +0 -30
  215. package/dist/components/BbTable/measuredFloors.d.ts +0 -46
  216. package/dist/components/BbTable/measuredFloorsTestKit.d.ts +0 -27
  217. package/dist/components/BbTable/textRuler.d.ts +0 -73
  218. package/dist/components/BbTable/useRowReorder.d.ts +0 -60
  219. package/dist/components/BbTable/utils.d.ts +0 -375
  220. package/dist/components/BbTabs/tablistName.d.ts +0 -4
  221. package/dist/components/BbToast/BbToast.vue.d.ts +0 -5
  222. package/dist/components/BbToast/BbToastMessage.vue.d.ts +0 -22
  223. package/dist/components/BbToast/BbToastRegion.vue.d.ts +0 -15
  224. package/dist/components/BbTooltip/tooltipWarmup.d.ts +0 -23
  225. package/dist/components/BbTree/BbTreeLevel.vue.d.ts +0 -19
  226. package/dist/components/BbTree/context.d.ts +0 -25
  227. package/dist/components/ChipsBox/ChipsBox.vue.d.ts +0 -21
  228. package/dist/components/ChipsBox/types.d.ts +0 -28
  229. package/dist/components/ClearableButton/ClearableButton.vue.d.ts +0 -6
  230. package/dist/components/ClearableButton/types.d.ts +0 -9
  231. package/dist/components/CloseIcon/CloseButton.vue.d.ts +0 -7
  232. package/dist/components/CloseIcon/types.d.ts +0 -2
  233. package/dist/components/CommaBox/CommaBox.vue.d.ts +0 -21
  234. package/dist/components/CommaBox/types.d.ts +0 -20
  235. package/dist/components/CommonField/CommonField.vue.d.ts +0 -20
  236. package/dist/components/CommonField/messageHeightMatrix.d.ts +0 -2
  237. package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +0 -22
  238. package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +0 -10
  239. package/dist/components/CommonFieldInput/types.d.ts +0 -114
  240. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +0 -42
  241. package/dist/components/CommonPopover/resolvePlacement.d.ts +0 -9
  242. package/dist/components/CommonPopover/types.d.ts +0 -120
  243. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +0 -48
  244. package/dist/components/CommonTimeSelector/useMeridiem.d.ts +0 -19
  245. package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +0 -7
  246. package/dist/components/ErrorIcon/types.d.ts +0 -3
  247. package/dist/components/FlatListBox/FlatListBox.vue.d.ts +0 -39
  248. package/dist/components/FlatListBox/types.d.ts +0 -140
  249. package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +0 -39
  250. package/dist/components/GroupedListBox/types.d.ts +0 -163
  251. package/dist/components/ListBox/ListBox.vue.d.ts +0 -39
  252. package/dist/components/ListBox/types.d.ts +0 -180
  253. package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +0 -20
  254. package/dist/components/OptionsContainer/types.d.ts +0 -168
  255. package/dist/components/Transitions/ScaleFade.vue.d.ts +0 -28
  256. package/dist/components/Transitions/Slide.vue.d.ts +0 -39
  257. package/dist/components/WarningIcon/WarningIcon.vue.d.ts +0 -7
  258. package/dist/components/WarningIcon/types.d.ts +0 -3
  259. package/dist/composables/__testResets.d.ts +0 -1
  260. package/dist/composables/autoHost.d.ts +0 -22
  261. package/dist/composables/formSubmitLock.d.ts +0 -48
  262. package/dist/composables/hostOpenings.d.ts +0 -88
  263. package/dist/composables/hostRegistry.d.ts +0 -47
  264. package/dist/composables/ssrMarker.d.ts +0 -15
  265. package/dist/composables/useActiveInactiveState.d.ts +0 -4
  266. package/dist/composables/useArray.d.ts +0 -7
  267. package/dist/composables/useBaseOptions.d.ts +0 -51
  268. package/dist/composables/useBodyScrollLock.d.ts +0 -4
  269. package/dist/composables/useBreakpoint.d.ts +0 -13
  270. package/dist/composables/useCancelableFunction.d.ts +0 -17
  271. package/dist/composables/useChoiceIndicator.d.ts +0 -58
  272. package/dist/composables/useClosingInert.d.ts +0 -28
  273. package/dist/composables/useCoarsePointer.d.ts +0 -9
  274. package/dist/composables/useCoherence.d.ts +0 -21
  275. package/dist/composables/useConfig.d.ts +0 -59
  276. package/dist/composables/useConfigDefaults.d.ts +0 -54
  277. package/dist/composables/useDirection.d.ts +0 -43
  278. package/dist/composables/useEscapeStackEntry.d.ts +0 -13
  279. package/dist/composables/useFrameworkDetection.d.ts +0 -12
  280. package/dist/composables/useHashedWatcher.d.ts +0 -19
  281. package/dist/composables/useHydrated.d.ts +0 -37
  282. package/dist/composables/useImeDismissBlur.d.ts +0 -103
  283. package/dist/composables/useIndexById.d.ts +0 -11
  284. package/dist/composables/useInertiaPage.d.ts +0 -10
  285. package/dist/composables/useItemText.d.ts +0 -17
  286. package/dist/composables/useItemValue.d.ts +0 -7
  287. package/dist/composables/useItemsGetter.d.ts +0 -83
  288. package/dist/composables/useKeyboardInset.d.ts +0 -28
  289. package/dist/composables/useListboxFocus.d.ts +0 -21
  290. package/dist/composables/useLocale.d.ts +0 -5
  291. package/dist/composables/useLogger.d.ts +0 -5
  292. package/dist/composables/useMinimalQueue.d.ts +0 -9
  293. package/dist/composables/useOnFalsy.d.ts +0 -2
  294. package/dist/composables/useOnTruthy.d.ts +0 -7
  295. package/dist/composables/useOverlayNavigation.d.ts +0 -37
  296. package/dist/composables/useOverlayYield.d.ts +0 -23
  297. package/dist/composables/usePrefill.d.ts +0 -44
  298. package/dist/composables/useQuery.d.ts +0 -39
  299. package/dist/composables/useRefusedCloseAnnouncement.d.ts +0 -13
  300. package/dist/composables/useRoute.d.ts +0 -3
  301. package/dist/composables/useRouter.d.ts +0 -2
  302. package/dist/composables/useSegmentedFields.d.ts +0 -129
  303. package/dist/composables/useServerPrefetch.d.ts +0 -28
  304. package/dist/composables/useSheetSurface.d.ts +0 -39
  305. package/dist/composables/useSsrState.d.ts +0 -28
  306. package/dist/composables/useTableWidthContext.d.ts +0 -73
  307. package/dist/composables/useToggleInput.d.ts +0 -44
  308. package/dist/composables/useTopLayer.d.ts +0 -9
  309. package/dist/composables/useTypeahead.d.ts +0 -112
  310. package/dist/composables/useUntil.d.ts +0 -7
  311. package/dist/composables/useUrlQueryParam.d.ts +0 -21
  312. package/dist/composables/useViewportWidth.d.ts +0 -14
  313. package/dist/deprecation/ai-deprecations.json.d.ts +0 -2984
  314. package/dist/deprecation/removedProps.d.ts +0 -3
  315. package/dist/directives/createPopoverDirective.d.ts +0 -111
  316. package/dist/directives/renderingInstance.d.ts +0 -2
  317. package/dist/i18n/eraNames.d.ts +0 -2
  318. package/dist/i18n/regionHints.d.ts +0 -16
  319. package/dist/icons-whitelist.d.ts +0 -9
  320. package/dist/reset.d.ts +0 -0
  321. package/dist/runtime/nuxt-plugin.d.ts +0 -2
  322. package/dist/styles.d.ts +0 -0
  323. package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -2
  324. package/dist/types/ExtractGenericFromRef.d.ts +0 -2
  325. package/dist/types/NestedKeyOf.d.ts +0 -3
  326. package/dist/types/PrefixWith.d.ts +0 -1
  327. package/dist/types/ShapeErased.d.ts +0 -15
  328. package/dist/types/Simplify.d.ts +0 -6
  329. package/dist/utilities/calendar/canonicalParts.d.ts +0 -29
  330. package/dist/utilities/calendar/digits.d.ts +0 -18
  331. package/dist/utilities/calendar/gregorian.d.ts +0 -2
  332. package/dist/utilities/calendar/index.d.ts +0 -3
  333. package/dist/utilities/calendar/international.d.ts +0 -19
  334. package/dist/utilities/calendar/resolve.d.ts +0 -32
  335. package/dist/utilities/calendar/runtime.d.ts +0 -49
  336. package/dist/utilities/functions/animationsSettled.d.ts +0 -7
  337. package/dist/utilities/functions/bytesToUnit.d.ts +0 -2
  338. package/dist/utilities/functions/chunk.d.ts +0 -1
  339. package/dist/utilities/functions/clamp.d.ts +0 -9
  340. package/dist/utilities/functions/clampPrecision.d.ts +0 -1
  341. package/dist/utilities/functions/convertDateValue.d.ts +0 -57
  342. package/dist/utilities/functions/curry.d.ts +0 -6
  343. package/dist/utilities/functions/deburr.d.ts +0 -1
  344. package/dist/utilities/functions/elementLabel.d.ts +0 -8
  345. package/dist/utilities/functions/empty.d.ts +0 -1
  346. package/dist/utilities/functions/extractDomContainer.d.ts +0 -20
  347. package/dist/utilities/functions/findInTree.d.ts +0 -4
  348. package/dist/utilities/functions/flattenTree.d.ts +0 -1
  349. package/dist/utilities/functions/get.d.ts +0 -3
  350. package/dist/utilities/functions/hasVnodeListener.d.ts +0 -16
  351. package/dist/utilities/functions/hash.d.ts +0 -1
  352. package/dist/utilities/functions/head.d.ts +0 -2
  353. package/dist/utilities/functions/identity.d.ts +0 -1
  354. package/dist/utilities/functions/indexBy.d.ts +0 -11
  355. package/dist/utilities/functions/isDateDisabled.d.ts +0 -25
  356. package/dist/utilities/functions/isEqual.d.ts +0 -1
  357. package/dist/utilities/functions/isHex.d.ts +0 -1
  358. package/dist/utilities/functions/isImeComposing.d.ts +0 -7
  359. package/dist/utilities/functions/isNil.d.ts +0 -6
  360. package/dist/utilities/functions/isNotEmpty.d.ts +0 -1
  361. package/dist/utilities/functions/isNotNil.d.ts +0 -6
  362. package/dist/utilities/functions/isTextEntry.d.ts +0 -5
  363. package/dist/utilities/functions/isoWeek.d.ts +0 -36
  364. package/dist/utilities/functions/itemProps.d.ts +0 -46
  365. package/dist/utilities/functions/last.d.ts +0 -2
  366. package/dist/utilities/functions/negative.d.ts +0 -1
  367. package/dist/utilities/functions/noop.d.ts +0 -1
  368. package/dist/utilities/functions/normalizeDateBound.d.ts +0 -69
  369. package/dist/utilities/functions/parsePaginationNumber.d.ts +0 -22
  370. package/dist/utilities/functions/parseSize.d.ts +0 -3
  371. package/dist/utilities/functions/parseWidthString.d.ts +0 -6
  372. package/dist/utilities/functions/percentage.d.ts +0 -26
  373. package/dist/utilities/functions/pickBy.d.ts +0 -1
  374. package/dist/utilities/functions/range.d.ts +0 -1
  375. package/dist/utilities/functions/readableValue.d.ts +0 -6
  376. package/dist/utilities/functions/reject.d.ts +0 -25
  377. package/dist/utilities/functions/resolveEnumProp.d.ts +0 -19
  378. package/dist/utilities/functions/responsiveDefault.d.ts +0 -7
  379. package/dist/utilities/functions/searchRank.d.ts +0 -19
  380. package/dist/utilities/functions/settlesVisible.d.ts +0 -20
  381. package/dist/utilities/functions/snapToStep.d.ts +0 -1
  382. package/dist/utilities/functions/sort.d.ts +0 -6
  383. package/dist/utilities/functions/throttle.d.ts +0 -1
  384. package/dist/utilities/functions/toggleInput.d.ts +0 -114
  385. package/dist/utilities/functions/transpose.d.ts +0 -1
  386. package/dist/utilities/functions/validateDateFormat.d.ts +0 -8
  387. package/dist/utilities/functions/wait.d.ts +0 -2
  388. package/dist/utilities/functions/waitFor.d.ts +0 -9
  389. package/dist/utilities/functions/warnRemovedAttrs.d.ts +0 -49
  390. package/dist/utilities/functions/when.d.ts +0 -9
  391. package/dist/utilities/misc/autofocus.d.ts +0 -20
  392. package/dist/utilities/misc/iconsInjectionKey.d.ts +0 -15
  393. package/dist/utilities/misc/listboxMetrics.d.ts +0 -47
  394. package/dist/utilities/misc/maskaDataOptions.d.ts +0 -12
  395. package/dist/utilities/misc/pageText.d.ts +0 -16
  396. package/dist/utilities/misc/ssrValue.d.ts +0 -20
  397. package/dist/utilities/misc/transitions.d.ts +0 -5
  398. package/dist/utils/configDefaults.d.ts +0 -43
  399. package/dist/utils/configScope.d.ts +0 -43
  400. package/dist/utils/copyData.d.ts +0 -13
  401. package/dist/utils/focusVisibility.d.ts +0 -15
  402. package/dist/utils/injectLibraryStyles.d.ts +0 -8
  403. package/dist/utils/overlayEscapeStack.d.ts +0 -52
  404. package/dist/utils/overlaySurfaceIsolation.d.ts +0 -1
  405. package/dist/utils/passthroughDeduper.d.ts +0 -16
  406. package/dist/utils/releasedActivator.d.ts +0 -20
  407. 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>
@@ -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
@@ -62,8 +62,8 @@
62
62
  | `--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
63
  | `--elev` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The theme's resting lift, composed UNDER the indicator's own shadow |
64
64
  | `--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 |
65
+ | `--divider` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Each button's frame |
66
+ | `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked button under the pointer |
67
67
 
68
68
  ## Usage & Guidelines
69
69
 
@@ -667,11 +667,11 @@ place), a lone pick pops a new pill in, and a pill whose options are all
667
667
  unticked shrinks to its centre and fades. Two pills that come to touch stay
668
668
  two pills, drawn as one shape. `line` draws a bar under each pick across a baseline that spans the field;
669
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
670
+ in the button's pressed state. The strip
671
671
  and its triggers measure exactly as BbTabs'.
672
672
  It is still a checkbox group (native checkboxes, `max`, forms, validation);
673
673
  the box is hidden (an `icon` slot shows before the label) and the strip
674
- never wraps (it scrolls); `list-layout="vertical"` stacks it into a column
674
+ never wraps (it scrolls; `outline` buttons wrap onto further lines instead); `list-layout="vertical"` stacks it into a column
675
675
  (runs stack on the Y axis), `block` spans the field (the triggers share its
676
676
  width equally on a row), and the other layouts and `item-layout` do not
677
677
  apply. `pt:indicator` reaches every pill, bar or filled run, and
@@ -1238,21 +1238,24 @@ Set these on the element, or on a class you put on it, to retune this component
1238
1238
  | `--indicator-h` | `.bb-checkbox-group__list--line` | `2px` | |
1239
1239
  | `--indicator-shadow` | `.bb-checkbox-group__list--line` | `none` | |
1240
1240
  | `--elev` | `.bb-checkbox-group__list--line` | `none` | |
1241
- | `--list-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline)` | |
1241
+ | `--list-bg` | `.bb-checkbox-group__list--outline` | `transparent` | |
1242
1242
  | `--list-border` | `.bb-checkbox-group__list--outline` | `transparent` | |
1243
+ | `--list-h` | `.bb-checkbox-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | A button's height: BbButton `md` sits one step under the control height. |
1243
1244
  | `--p` | `.bb-checkbox-group__list--outline` | `0px` | |
1244
- | `--trigger-r` | `.bb-checkbox-group__list--outline` | `0px` | |
1245
+ | `--trigger-gap` | `.bb-checkbox-group__list--outline` | `8px` | |
1246
+ | `--trigger-r` | `.bb-checkbox-group__list--outline` | `var(--bb-radius)` | |
1245
1247
  | `--trigger-px` | `.bb-checkbox-group__list--outline` | `12px` | |
1246
1248
  | `--list-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1247
1249
  | `--hover-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1248
- | `--active-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-primary-fg)` | |
1250
+ | `--active-fg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-fg)` | |
1249
1251
  | `--active-fw` | `.bb-checkbox-group__list--outline` | `500` | |
1250
- | `--indicator-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-primary)` | |
1252
+ | `--indicator-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-pressed)` | |
1251
1253
  | `--indicator-border` | `.bb-checkbox-group__list--outline` | `transparent` | |
1252
- | `--indicator-r` | `.bb-checkbox-group__list--outline` | `0px` | |
1254
+ | `--indicator-r` | `.bb-checkbox-group__list--outline` | `var(--trigger-r)` | |
1253
1255
  | `--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 |
1256
+ | `--elev` | `.bb-checkbox-group__list--outline` | `none` | |
1257
+ | `--divider` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-border)` | Each button's frame |
1258
+ | `--hover-bg` | `.bb-checkbox-group__list--outline` | `var(--bb-outline-hover)` | An unpicked button under the pointer |
1256
1259
 
1257
1260
  ## Component tree
1258
1261
 
@@ -1265,7 +1268,7 @@ Set these on the element, or on a class you put on it, to retune this component
1265
1268
 
1266
1269
  - `BbCheckboxGroup` _(this component)_ — its own template binds: `indicator` → `span.bb-checkbox-group__indicator`, `icon` → `BbBaseCheckboxIcon`
1267
1270
  - `CommonField` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
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`
1271
+ - `OptionsContainer` _(internal — not importable, reach it through `BbCheckboxGroup`)_ — `BbCheckboxGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--list-h`, `--divider`, `--hover-bg`
1269
1272
  - Also mounts `BbBaseCheckboxIcon`
1270
1273
 
1271
1274
  ## See Also
@@ -96,10 +96,7 @@ users can type or pick — both paths land in the same `v-model`.
96
96
 
97
97
  ```vue
98
98
  <template>
99
- <form
100
- class="flex max-w-sm flex-col gap-3 rounded-(--bb-radius) border p-3"
101
- @submit.prevent
102
- >
99
+ <BbForm class="flex max-w-sm flex-col gap-3 rounded-(--bb-radius) border p-3">
103
100
  <div class="flex flex-col gap-0.5">
104
101
  <span class="text-sm font-medium">Workspace appearance</span>
105
102
  <span class="text-xs text-(--bb-text-muted)">
@@ -155,12 +152,12 @@ users can type or pick — both paths land in the same `v-model`.
155
152
  Reset to defaults
156
153
  </BbButton>
157
154
  </div>
158
- </form>
155
+ </BbForm>
159
156
  </template>
160
157
 
161
158
  <script setup lang="ts">
162
159
  import { ref } from 'vue';
163
- import { BbButton, BbColorInput } from 'bitboss-ui';
160
+ import { BbButton, BbColorInput, BbForm } from 'bitboss-ui';
164
161
 
165
162
  const DEFAULT_BRAND = '#4f46e5';
166
163
  const DEFAULT_ACCENT = '#f59e0b';
@@ -534,9 +531,8 @@ icon such as `prepend:icon`.
534
531
 
535
532
  ```vue
536
533
  <template>
537
- <form
534
+ <BbForm
538
535
  class="flex max-w-sm flex-col gap-3 rounded-(--bb-radius) border border-(--bb-border) p-3"
539
- @submit.prevent
540
536
  >
541
537
  <div class="flex flex-col gap-0.5">
542
538
  <span class="text-sm font-medium">Workspace appearance</span>
@@ -598,12 +594,12 @@ icon such as `prepend:icon`.
598
594
  Reset to defaults
599
595
  </BbButton>
600
596
  </div>
601
- </form>
597
+ </BbForm>
602
598
  </template>
603
599
 
604
600
  <script setup lang="ts">
605
601
  import { ref } from 'vue';
606
- import { BbButton, BbColorInput } from 'bitboss-ui';
602
+ import { BbButton, BbColorInput, BbForm } from 'bitboss-ui';
607
603
 
608
604
  const DEFAULT_BRAND = '#4f46e5';
609
605
  const DEFAULT_ACCENT = '#f59e0b';
@@ -1207,7 +1207,7 @@ form library can mark the field touched and run blur-time validation.
1207
1207
 
1208
1208
  ```vue
1209
1209
  <template>
1210
- <form class="document-form" @submit.prevent="submit">
1210
+ <BbForm class="document-form" @submit="submit">
1211
1211
  <BbTextInput
1212
1212
  v-model="title"
1213
1213
  compact
@@ -1274,12 +1274,12 @@ form library can mark the field touched and run blur-time validation.
1274
1274
  Prepared multipart POST with {{ submitted.fileCount }} file(s) under
1275
1275
  <code>documents[]</code> plus the request title.
1276
1276
  </p>
1277
- </form>
1277
+ </BbForm>
1278
1278
  </template>
1279
1279
 
1280
1280
  <script setup lang="ts">
1281
1281
  import { ref } from 'vue';
1282
- import { BbDropzone, BbButton, BbIcon, BbTextInput } from 'bitboss-ui';
1282
+ import { BbDropzone, BbButton, BbForm, BbIcon, BbTextInput } from 'bitboss-ui';
1283
1283
  import type { DropZoneError } from 'bitboss-ui';
1284
1284
 
1285
1285
  const title = ref<string | null>('');