bitboss-ui 3.0.0-beta.2 → 3.0.0-beta.20

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 (337) hide show
  1. package/README.md +72 -33
  2. package/dist/ai/BbAccordion.md +3 -3
  3. package/dist/ai/BbAlert.md +9 -5
  4. package/dist/ai/BbAsterisk.md +17 -0
  5. package/dist/ai/BbAvatar.md +12 -3
  6. package/dist/ai/BbBadge.md +15 -10
  7. package/dist/ai/BbBadgeButton.md +16 -16
  8. package/dist/ai/BbBaseButton.md +16 -16
  9. package/dist/ai/BbBaseCheckbox.md +8 -8
  10. package/dist/ai/BbBaseCheckboxGroup.md +13 -13
  11. package/dist/ai/BbBaseCheckboxIcon.md +26 -9
  12. package/dist/ai/BbBaseColorInput.md +11 -11
  13. package/dist/ai/BbBaseDatePicker.md +6 -6
  14. package/dist/ai/BbBaseDatePickerInput.md +15 -15
  15. package/dist/ai/BbBaseInputContainer.md +12 -12
  16. package/dist/ai/BbBaseNumberInput.md +8 -8
  17. package/dist/ai/BbBaseRadio.md +5 -5
  18. package/dist/ai/BbBaseRadioGroup.md +7 -7
  19. package/dist/ai/BbBaseRadioIcon.md +25 -9
  20. package/dist/ai/BbBaseRating.md +5 -5
  21. package/dist/ai/BbBaseSelect.md +22 -21
  22. package/dist/ai/BbBaseSlider.md +9 -9
  23. package/dist/ai/BbBaseSwitch.md +8 -8
  24. package/dist/ai/BbBaseSwitchGroup.md +13 -13
  25. package/dist/ai/BbBaseSwitchIcon.md +28 -10
  26. package/dist/ai/BbBaseTag.md +10 -10
  27. package/dist/ai/BbBaseTextInput.md +9 -9
  28. package/dist/ai/BbBaseTextarea.md +9 -9
  29. package/dist/ai/BbBaseTimePickerInput.md +13 -13
  30. package/dist/ai/BbBreadcrumbs.md +2 -2
  31. package/dist/ai/BbButton.md +15 -15
  32. package/dist/ai/BbCheckbox.md +18 -17
  33. package/dist/ai/BbCheckboxGroup.md +15 -14
  34. package/dist/ai/BbCollapsible.md +11 -9
  35. package/dist/ai/BbColorInput.md +15 -15
  36. package/dist/ai/BbColorPalette.md +12 -6
  37. package/dist/ai/BbConfirm.md +12 -5
  38. package/dist/ai/BbDatePicker.md +13 -13
  39. package/dist/ai/BbDatePickerInput.md +20 -20
  40. package/dist/ai/BbDialog.md +78 -12
  41. package/dist/ai/BbDropdown.md +132 -22
  42. package/dist/ai/BbDropdownButton.md +12 -12
  43. package/dist/ai/BbDropdownGroup.md +1 -1
  44. package/dist/ai/BbDropzone.md +4 -4
  45. package/dist/ai/BbForm.md +49 -14
  46. package/dist/ai/BbIcon.md +6 -0
  47. package/dist/ai/BbIndicator.md +5 -5
  48. package/dist/ai/BbNumberInput.md +11 -11
  49. package/dist/ai/BbOffCanvas.md +90 -20
  50. package/dist/ai/BbPagination.md +3 -3
  51. package/dist/ai/BbPopover.md +32 -17
  52. package/dist/ai/BbProgress.md +7 -4
  53. package/dist/ai/BbRadio.md +16 -15
  54. package/dist/ai/BbRadioGroup.md +20 -17
  55. package/dist/ai/BbRating.md +11 -11
  56. package/dist/ai/BbSelect.md +138 -37
  57. package/dist/ai/BbSelectPopover.md +40 -41
  58. package/dist/ai/BbSlider.md +37 -22
  59. package/dist/ai/BbSmoothHeight.md +1 -1
  60. package/dist/ai/BbSwitch.md +25 -10
  61. package/dist/ai/BbSwitchGroup.md +17 -14
  62. package/dist/ai/BbTable.md +791 -88
  63. package/dist/ai/BbTabs.md +28 -14
  64. package/dist/ai/BbTabsList.md +1 -1
  65. package/dist/ai/BbTabsPanes.md +1 -1
  66. package/dist/ai/BbTabsRoot.md +10 -10
  67. package/dist/ai/BbTag.md +14 -14
  68. package/dist/ai/BbTextInput.md +16 -15
  69. package/dist/ai/BbTextarea.md +13 -13
  70. package/dist/ai/BbTimePicker.md +10 -10
  71. package/dist/ai/BbTimePickerInput.md +17 -17
  72. package/dist/ai/BbToast.md +1 -1
  73. package/dist/ai/BbToastPortal.md +1 -1
  74. package/dist/ai/BbTooltip.md +12 -10
  75. package/dist/ai/BbTree.md +1 -1
  76. package/dist/ai/ChipsBox.md +1 -1
  77. package/dist/ai/CommonInputWrapper.md +10 -10
  78. package/dist/ai/CommonPopover.md +6 -6
  79. package/dist/ai/FlatListBox.md +5 -5
  80. package/dist/ai/GroupedListBox.md +5 -5
  81. package/dist/ai/ListBox.md +4 -4
  82. package/dist/ai/OptionsContainer.md +4 -4
  83. package/dist/ai/changelog.json +110 -2
  84. package/dist/ai/components.json +882 -90
  85. package/dist/ai/composables/useBbConfig.md +72 -11
  86. package/dist/ai/composables/useConfirm.md +5 -3
  87. package/dist/ai/guides/ai-router.md +9 -4
  88. package/dist/ai/guides/component-picker.md +2 -2
  89. package/dist/ai/guides/design-language.md +14 -14
  90. package/dist/ai/guides/design-tokens.md +25 -18
  91. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  92. package/dist/ai/guides/icons-policy.md +4 -2
  93. package/dist/ai/guides/installation-and-plugin-setup.md +74 -9
  94. package/dist/ai/guides/migration/components/bb-checkbox-group.md +30 -0
  95. package/dist/ai/guides/migration/components/bb-checkbox.md +37 -3
  96. package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
  97. package/dist/ai/guides/migration/components/bb-dialog.md +62 -34
  98. package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -13
  99. package/dist/ai/guides/migration/components/bb-rating.md +8 -2
  100. package/dist/ai/guides/migration/components/bb-select.md +5 -2
  101. package/dist/ai/guides/migration/components/bb-table.md +446 -28
  102. package/dist/ai/guides/migration/components/bb-text-input.md +6 -6
  103. package/dist/ai/guides/migration/v2-to-v3.md +260 -89
  104. package/dist/ai/guides/ssr-prefill.md +120 -0
  105. package/dist/ai/index.md +10 -9
  106. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -1
  107. package/dist/ai/recipes/inertia/ownership-atlas.md +41 -20
  108. package/dist/ai/recipes/inertia/records-workspace.md +26 -7
  109. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -1
  110. package/dist/ai/recipes/nuxt/records-workspace.md +26 -7
  111. package/dist/ai/recipes/vue/layout-scaffold.md +5 -1
  112. package/dist/ai/recipes/vue/records-workspace.md +26 -7
  113. package/dist/ai/source/BbAlert.md +60 -2
  114. package/dist/ai/source/BbAvatar.md +3 -3
  115. package/dist/ai/source/BbBadge.md +60 -15
  116. package/dist/ai/source/BbBadgeButton.md +8 -2
  117. package/dist/ai/source/BbBaseButton.md +3 -1
  118. package/dist/ai/source/BbBaseCheckboxGroup.md +6 -2
  119. package/dist/ai/source/BbBaseDatePicker.md +3 -1
  120. package/dist/ai/source/BbBaseDatePickerInput.md +5 -1
  121. package/dist/ai/source/BbBaseInputContainer.md +52 -1
  122. package/dist/ai/source/BbBaseRadioGroup.md +4 -0
  123. package/dist/ai/source/BbBaseRating.md +3 -1
  124. package/dist/ai/source/BbBaseSelect.md +71 -16
  125. package/dist/ai/source/BbBaseSwitchGroup.md +4 -0
  126. package/dist/ai/source/BbBaseTimePickerInput.md +5 -1
  127. package/dist/ai/source/BbBreadcrumbs.md +31 -0
  128. package/dist/ai/source/BbButton.md +51 -24
  129. package/dist/ai/source/BbCheckbox.md +15 -1
  130. package/dist/ai/source/BbCheckboxGroup.md +2 -1
  131. package/dist/ai/source/BbCollapsible.md +7 -1
  132. package/dist/ai/source/BbColorInput.md +3 -4
  133. package/dist/ai/source/BbColorPalette.md +3 -4
  134. package/dist/ai/source/BbDatePicker.md +5 -1
  135. package/dist/ai/source/BbDatePickerInput.md +5 -1
  136. package/dist/ai/source/BbDialog.md +175 -19
  137. package/dist/ai/source/BbDropdown.md +376 -69
  138. package/dist/ai/source/BbDropdownGroup.md +330 -59
  139. package/dist/ai/source/BbForm.md +93 -5
  140. package/dist/ai/source/BbIcon.md +46 -36
  141. package/dist/ai/source/BbNumberInput.md +3 -4
  142. package/dist/ai/source/BbOffCanvas.md +474 -194
  143. package/dist/ai/source/BbPopover.md +24 -17
  144. package/dist/ai/source/BbProgress.md +2 -2
  145. package/dist/ai/source/BbRadio.md +15 -1
  146. package/dist/ai/source/BbRadioGroup.md +3 -1
  147. package/dist/ai/source/BbSelect.md +50 -2
  148. package/dist/ai/source/BbSelectPopover.md +171 -23
  149. package/dist/ai/source/BbSlider.md +3 -4
  150. package/dist/ai/source/BbSwitch.md +15 -1
  151. package/dist/ai/source/BbSwitchGroup.md +8 -5
  152. package/dist/ai/source/BbTable.md +4642 -1387
  153. package/dist/ai/source/BbTabs.md +6 -7
  154. package/dist/ai/source/BbTabsList.md +6 -7
  155. package/dist/ai/source/BbTabsPanes.md +6 -7
  156. package/dist/ai/source/BbTabsRoot.md +6 -7
  157. package/dist/ai/source/BbTag.md +3 -4
  158. package/dist/ai/source/BbTextInput.md +3 -4
  159. package/dist/ai/source/BbTextarea.md +3 -4
  160. package/dist/ai/source/BbTimePicker.md +4 -1
  161. package/dist/ai/source/BbTimePickerInput.md +5 -1
  162. package/dist/ai/source/BbToast.md +3 -1
  163. package/dist/ai/source/BbTooltip.md +5 -1
  164. package/dist/ai/source/CommonInputWrapper.md +4 -0
  165. package/dist/ai/source/CommonPopover.md +6 -0
  166. package/dist/ai/source/FlatListBox.md +11 -5
  167. package/dist/ai/source/GroupedListBox.md +7 -5
  168. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +4 -4
  169. package/dist/components/BbAlert/types.d.ts +10 -1
  170. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
  171. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +33 -33
  172. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +22 -16
  173. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +36 -15
  174. package/dist/components/BbBadge/badgeButtonContext.d.ts +21 -8
  175. package/dist/components/BbBadge/types.d.ts +8 -2
  176. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +47 -47
  177. package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +14 -14
  178. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +30 -28
  179. package/dist/components/BbBaseCheckboxGroup/types.d.ts +2 -2
  180. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +167 -167
  181. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +9 -9
  182. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +78 -78
  183. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +64 -64
  184. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +1 -1
  185. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +138 -138
  186. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +2 -2
  187. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +24 -22
  188. package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +40 -40
  189. package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +74 -65
  190. package/dist/components/BbBaseSelect/types.d.ts +22 -0
  191. package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +5 -5
  192. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +30 -28
  193. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +1 -1
  194. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +104 -104
  195. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +35 -35
  196. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +85 -81
  197. package/dist/components/BbCheckboxGroup/types.d.ts +2 -1
  198. package/dist/components/BbCollapsible/types.d.ts +7 -1
  199. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +1 -1
  200. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +18 -18
  201. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
  202. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +50 -50
  203. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +17 -17
  204. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  205. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +100 -100
  206. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +21 -21
  207. package/dist/components/BbDialog/BbDialog.vue.d.ts +1 -1
  208. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +133 -107
  209. package/dist/components/BbDialog/types.d.ts +29 -2
  210. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
  211. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +99 -100
  212. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
  213. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +208 -201
  214. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +225 -208
  215. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +21 -21
  216. package/dist/components/BbDropdown/types.d.ts +20 -5
  217. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +5 -5
  218. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +46 -46
  219. package/dist/components/BbIcon/iconCache.d.ts +33 -0
  220. package/dist/components/BbIcon/iconCache.js +17 -0
  221. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  222. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +15 -15
  223. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  224. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +254 -208
  225. package/dist/components/BbOffCanvas/types.d.ts +30 -5
  226. package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
  227. package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
  228. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +149 -146
  229. package/dist/components/BbPopover/types.d.ts +3 -2
  230. package/dist/components/BbRadioGroup/types.d.ts +3 -1
  231. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +27 -23
  232. package/dist/components/BbSelect/types.d.ts +32 -0
  233. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +221 -213
  234. package/dist/components/BbSlider/BbSlider.vue.d.ts +1 -1
  235. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +20 -20
  236. package/dist/components/BbTable/BbTable.vue.d.ts +8 -4
  237. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1319 -616
  238. package/dist/components/BbTable/BbTableDataRow.d.ts +162 -0
  239. package/dist/components/BbTable/BbTableDataRow.js +136 -0
  240. package/dist/components/BbTable/BbTableExpandRow.d.ts +73 -0
  241. package/dist/components/BbTable/BbTableExpandRow.js +52 -0
  242. package/dist/components/BbTable/types.d.ts +247 -86
  243. package/dist/components/BbTable/utils.d.ts +87 -4
  244. package/dist/components/BbTable/utils.js +71 -36
  245. package/dist/components/BbTabs/types.d.ts +0 -8
  246. package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
  247. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +18 -18
  248. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  249. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +18 -18
  250. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  251. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +54 -54
  252. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
  253. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +80 -80
  254. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +61 -61
  255. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +17 -17
  256. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +13 -13
  257. package/dist/components/BbTooltip/types.d.ts +5 -1
  258. package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +17 -17
  259. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
  260. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +2 -1
  261. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +83 -83
  262. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +56 -56
  263. package/dist/composables/useBaseOptions.js +30 -20
  264. package/dist/composables/useBbConfig.d.ts +27 -6
  265. package/dist/composables/useBbConfig.js +8 -2
  266. package/dist/composables/useConfig.d.ts +59 -0
  267. package/dist/composables/useConfig.js +9 -0
  268. package/dist/composables/useItemsGetter.d.ts +11 -0
  269. package/dist/composables/useItemsGetter.js +44 -18
  270. package/dist/composables/useLocale.js +10 -7
  271. package/dist/composables/useMobile.js +5 -5
  272. package/dist/composables/usePrefill.d.ts +21 -2
  273. package/dist/composables/usePrefill.js +25 -19
  274. package/dist/composables/useSsrState.d.ts +20 -0
  275. package/dist/composables/useSsrState.js +13 -0
  276. package/dist/composables/useToast.js +5 -5
  277. package/dist/deprecation/ai-deprecations.json.d.ts +99 -11
  278. package/dist/deprecation/ai-deprecations.json.js +1 -1
  279. package/dist/directives/bbDropdown.d.ts +15 -4
  280. package/dist/directives/bbDropdown.js +31 -9
  281. package/dist/directives/createPopoverDirective.d.ts +62 -0
  282. package/dist/directives/createPopoverDirective.js +63 -23
  283. package/dist/i18n/locales/cs.json +4 -1
  284. package/dist/i18n/locales/da.json +4 -1
  285. package/dist/i18n/locales/de.json +4 -1
  286. package/dist/i18n/locales/el.json +4 -1
  287. package/dist/i18n/locales/en.json +4 -1
  288. package/dist/i18n/locales/es.json +4 -1
  289. package/dist/i18n/locales/fi.json +4 -1
  290. package/dist/i18n/locales/fr.json +4 -1
  291. package/dist/i18n/locales/hu.json +4 -1
  292. package/dist/i18n/locales/it.json +4 -1
  293. package/dist/i18n/locales/ja.json +4 -1
  294. package/dist/i18n/locales/ko.json +4 -1
  295. package/dist/i18n/locales/nb.json +4 -1
  296. package/dist/i18n/locales/nl.json +4 -1
  297. package/dist/i18n/locales/pl.json +4 -1
  298. package/dist/i18n/locales/pt.json +4 -1
  299. package/dist/i18n/locales/ro.json +4 -1
  300. package/dist/i18n/locales/ru.json +4 -1
  301. package/dist/i18n/locales/sv.json +4 -1
  302. package/dist/i18n/locales/tr.json +4 -1
  303. package/dist/i18n/locales/uk.json +4 -1
  304. package/dist/i18n/locales/zh-cn.json +4 -1
  305. package/dist/index.d.ts +7 -2
  306. package/dist/index.js +69 -67
  307. package/dist/llms-full.txt +3712 -1381
  308. package/dist/llms-medium.txt +113 -43
  309. package/dist/llms.txt +7 -6
  310. package/dist/locale-blueprint.json +4 -1
  311. package/dist/nuxt-auto-imports.d.ts +100 -0
  312. package/dist/nuxt-auto-imports.js +55 -0
  313. package/dist/nuxt-module.d.ts +22 -1
  314. package/dist/nuxt.js +22 -8
  315. package/dist/plugin.d.ts +10 -1
  316. package/dist/plugin.js +20 -19
  317. package/dist/runtime/nuxt-plugin.js +28 -21
  318. package/dist/styles.css +1 -1
  319. package/dist/utilities/misc/listboxMetrics.d.ts +3 -3
  320. package/dist/utilities/misc/listboxMetrics.js +2 -2
  321. package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
  322. package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
  323. package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +45 -27
  324. package/dist/validated/BbSelect.vue.d.ts +2 -0
  325. package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +1 -0
  326. package/dist/validated/useValidatedField.js +25 -23
  327. package/dist/vite.js +6 -2
  328. package/llms.txt +8 -7
  329. package/package.json +2 -2
  330. package/scripts/lib/eslint-plugin.d.ts +19 -1
  331. package/scripts/lib/eslint-plugin.mjs +146 -0
  332. package/scripts/lib/html-attributes.mjs +91 -0
  333. package/scripts/lib/validate-bb-markup.mjs +59 -4
  334. package/dist/assets/svgs/sort.svg_raw.js +0 -4
  335. package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
  336. package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
  337. package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
@@ -5,16 +5,16 @@
5
5
  > how to choose a component, and the design language — plus a catalogue
6
6
  > of every public component.
7
7
 
8
- Canonical URL: https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/llms-medium.txt
8
+ Canonical URL: https://llms-bitboss-ui.bitboss.it/dist/llms-medium.txt
9
9
 
10
10
  Need more? Fetch the specific component contract you need — one hop, not
11
- the whole catalogue: https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/<ComponentName>.md
12
- Machine-readable API surface: https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/components.json
11
+ the whole catalogue: https://llms-bitboss-ui.bitboss.it/dist/ai/<ComponentName>.md
12
+ Machine-readable API surface: https://llms-bitboss-ui.bitboss.it/dist/ai/components.json
13
13
 
14
14
  ---
15
15
 
16
16
  <!-- dist/ai/guides/ai-router.md -->
17
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/ai-router.md -->
17
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/ai-router.md -->
18
18
 
19
19
  # AI Router
20
20
 
@@ -27,13 +27,18 @@ Knowledge base root (installed package):
27
27
  Package export entry: `bitboss-ui/ai` → `dist/ai/index.md`.
28
28
  Subpaths: `bitboss-ui/ai/components.json`, `bitboss-ui/ai/guides/…`, etc.
29
29
 
30
- **Not installed, or can only fetch URLs?** The same files are served from the
31
- published package at `https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/…`.
32
- If you can make only one request, fetch
33
- [`…@beta/dist/llms-medium.txt`](https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/llms-medium.txt)
30
+ **Not installed, or can only fetch URLs?** The same files are served at
31
+ `https://llms-bitboss-ui.bitboss.it/dist/ai/…`. If you can make only one
32
+ request, fetch
33
+ [`/dist/llms-medium.txt`](https://llms-bitboss-ui.bitboss.it/dist/llms-medium.txt)
34
34
  — this router plus the agent contract, setup, component picker, design language
35
35
  and the full component catalogue, in ~110 KB.
36
36
 
37
+ That host is a thin proxy in front of the published npm tarball. If it is ever
38
+ unreachable, the same paths work directly against
39
+ `https://cdn.jsdelivr.net/npm/bitboss-ui@beta/…` — one hop further from us, and
40
+ pinned to the prerelease channel rather than following it.
41
+
37
42
  ---
38
43
 
39
44
  ## Mandatory order (every UI task)
@@ -133,7 +138,7 @@ nothing else); the command names them if they are missing.
133
138
  ---
134
139
 
135
140
  <!-- dist/ai/guides/agent-contract.md -->
136
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/agent-contract.md -->
141
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/agent-contract.md -->
137
142
 
138
143
  # Agent Contract
139
144
 
@@ -391,7 +396,7 @@ case is not decidable from markup and has no hint.
391
396
  ---
392
397
 
393
398
  <!-- dist/ai/guides/installation-and-plugin-setup.md -->
394
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/installation-and-plugin-setup.md -->
399
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/installation-and-plugin-setup.md -->
395
400
 
396
401
  # Installation and Plugin Setup
397
402
 
@@ -540,6 +545,45 @@ export default defineNuxtConfig({
540
545
 
541
546
  All options below go under the `bitboss` config key. `nuxtLinkName` controls which globally registered component renders router links (default `'NuxtLink'`).
542
547
 
548
+ This module supersedes the standalone `@bitboss-dev/bitboss-ui-nuxt` package, which was the v2 Nuxt integration — uninstall it (see [Migration v2 → v3](./migration/v2-to-v3.md)).
549
+
550
+ ### `autoImport?: boolean | { components?: boolean; composables?: boolean; validated?: boolean }` (default: `false`, Nuxt only)
551
+
552
+ Registers the library's components and composables with Nuxt's auto-import system, so templates write `<BbButton>` and `useToast()` with no import line:
553
+
554
+ ```ts
555
+ // nuxt.config.ts
556
+ export default defineNuxtConfig({
557
+ modules: ['bitboss-ui/nuxt'],
558
+ bitboss: {
559
+ iconDir: './assets/icons',
560
+ autoImport: true,
561
+ },
562
+ });
563
+ ```
564
+
565
+ `true` means `{ components: true, composables: true }`. Pass the object form to
566
+ narrow it, or to add `validated: true` — which resolves the form controls from
567
+ [`bitboss-ui/validated`](./validated-forms.md) instead of `bitboss-ui`, so
568
+ `<BbTextInput>` is the vee-validate-bound wrapper and takes `rules`, and adds
569
+ `BbForm`, `BbAsterisk`, `useBbFormContext` and `useValidatedField`. It needs the
570
+ `vee-validate` peer installed.
571
+
572
+ **It is off by default on purpose, and leaving it off is the better setup.**
573
+ Explicit imports are what make `vueCompilerOptions.checkUnknownComponents` (see
574
+ section 9) able to fail the build on a mistyped or unimported `Bb*` tag; with
575
+ auto-imports on, every `Bb*` tag resolves and that gate goes quiet. Reach for it
576
+ when you are moving an app off `@bitboss-dev/bitboss-ui-nuxt`, whose templates
577
+ were written against auto-imported components, and adding the imports is a
578
+ separate commit from the upgrade.
579
+
580
+ Two things it deliberately does not do. It never overrides your own components:
581
+ a `~/components/BbButton.vue` in the app keeps winning, and the library only
582
+ fills names the app has not claimed. And it never registers the library's
583
+ `useId` — Nuxt already auto-imports Vue's, and shadowing it would silently
584
+ redirect every existing `useId()` call in the app; import that one explicitly if
585
+ you want it.
586
+
543
587
  ## 4) Inertia
544
588
 
545
589
  Inertia apps are Vite apps: configure `bitboss-ui/vite` exactly as in section 2, install `@inertiajs/vue3`, then install the runtime plugin in `createInertiaApp`:
@@ -753,11 +797,12 @@ bitbossUi({
753
797
 
754
798
  This is a **single global default baked in at build time** (it comes from the
755
799
  Vite plugin config), so it is the same for every request — it is _not_ a
756
- per-request value. There is no per-request/per-visitor override today: the
757
- viewport signal is a process-wide singleton, so a mobile layout that must be
758
- correct on the server's first paint (e.g. a modal already open on load) needs a
759
- client adjustment after hydration, or a fixed `ssrViewportWidth` matching your
760
- audience.
800
+ per-request value. There is no per-request/per-visitor override: the viewport
801
+ signal is a process-wide singleton, so a mobile layout that must be correct on
802
+ the server's first paint (e.g. a modal already open on load) needs a client
803
+ adjustment after hydration, or a fixed `ssrViewportWidth` matching your
804
+ audience. (Unlike `locale`, which **is** per-request — see below. A width
805
+ cannot be derived from a request without UA sniffing; a locale can.)
761
806
 
762
807
  ### `defaultInputLabelMode?: 'outside' | 'floating' | 'inside'` (default: `'outside'`)
763
808
 
@@ -775,9 +820,32 @@ labels, screen-reader announcements, confirm buttons, …). The library ships
775
820
  pl, tr, ru, uk, cs, ro, hu, el, sv, da, nb, fi, ja, ko, zh-cn — but shipping ≠
776
821
  bundling: only the **enabled** locales enter your build (next option). Runtime
777
822
  switching: `useBbConfig().setConfig({ locale })` — to a locale you enabled.
778
- `setConfig` is client-only: on an SSR server the config is a process-wide
779
- singleton (same rule as `ssrViewportWidth` — no per-request override), so a
780
- per-request call would leak one visitor's locale into other renders.
823
+
824
+ **Per-request locale under SSR** is supported as of 3.0.0-beta.15: the config
825
+ is held per Vue app, and SSR builds one app per request, so pass it where you
826
+ create the app — `app.use(bitbossUiPlugin, { locale: localeFor(request) })`.
827
+ That is correct on the server's first paint, which is what crawlers index and
828
+ what a JS-disabled reader keeps.
829
+
830
+ **In Nuxt, do not call `app.use`** — the module registers the runtime plugin,
831
+ which provides the per-app config itself (fixed in 3.0.0-beta.19, Q20.4;
832
+ before that Nuxt had no per-app config at all and every `setConfig` wrote the
833
+ process-global). Set a per-request locale from your own Nuxt plugin, which
834
+ runs per request on the server:
835
+ `nuxtApp.vueApp.runWithContext(() => useBbConfig().setConfig({ locale }))` —
836
+ the `runWithContext` is what hands the write this app's injection context,
837
+ since a plugin has an app but no component instance.
838
+
839
+ `setConfig` still works for runtime switching; during a server render call it
840
+ from a component's `setup` (or inside `runWithContext`), where it can resolve
841
+ the current app. With neither there is no app to address, the write lands on
842
+ the build-time defaults, and it leaks between concurrent visitors — it warns in
843
+ dev when it sees that, keyed off where the write actually landed rather than
844
+ the call site. See [useBbConfig](../composables/useBbConfig.md).
845
+
846
+ Note this is a **different rule** from `ssrViewportWidth` above, which really
847
+ is a build-time global: a width cannot be known per request without sniffing,
848
+ a locale can.
781
849
 
782
850
  ### `enabledLocales?: BuiltinLocaleKey[]` (default: your `locale` + `'en'`)
783
851
 
@@ -896,7 +964,7 @@ template emits are already styled by the public `bitboss-ui/styles.css`.
896
964
 
897
965
  Add `--mcp` to also register a live MCP server (`npx bitboss-ui@<installed version> mcp`, pinned so npx can never fetch a different version from the registry) the harness launches on demand — it merges the entry (never overwriting other servers) into `.mcp.json` (Claude Code), `.cursor/mcp.json` (Cursor), `.vscode/mcp.json` (VS Code / Copilot), and `~/.codeium/windsurf/mcp_config.json` (Windsurf). **Windsurf's config is global** — it has no per-project scope, so registering it affects every project on the machine; that is why only the explicit `ai-init --mcp` command writes it, while the plugin's `mcp: true` dev-server flag (§7) auto-registers the project-scoped harnesses only. Install the server's optional peers first — `npm i -D @modelcontextprotocol/sdk zod` — they are not dependencies of the library (~12 MB used only by the MCP server); the command warns if they are absent. **`--mcp` is optional and skipping it loses you nothing but the transport** — the server only reads the `dist/ai/` files listed above, so run plain `ai-init` and let the agent read that directory if you cannot add the peers (see `mcp?: boolean` in §7).
898
966
 
899
- For a human-in-the-loop (and agent) safety net, add the `bitboss-ui/eslint-plugin` flat-config plugin (`...bitbossUi.configs.recommended`) so unknown/removed `Bb*` props surface as ESLint errors in the editor and CI — the same manifest checks as `bitboss-ui check`, reusing your `eslint-plugin-vue` parser. Real HTML attributes fall through untouched; escape hatches are the standard `<!-- eslint-disable-next-line bitboss-ui/no-unknown-attributes -->` and the rule's `allowAttributes` / `allowComponents` options. **`eslint --fix` also auto-migrates deprecated v2 props** (renames, boolean-polarity inversions like `allowWriting`→`disableWriting`, value remaps like BbToast `placement`→`position`, and deletion of inert removed props); structural migrations that need a slot/directive/CSS are reported but left by hand. **This library is TS-first (recipes ship `<script setup lang="ts">`, some with `generic="T"`), so wire `@typescript-eslint/parser` for both `.ts` and `.vue` files** — without it `vue-eslint-parser` throws a `Parsing error` on those files, which means no rule (including `no-unknown-attributes`) runs on them at all. See the README "ESLint plugin" section for the full config snippet (both parser blocks + the `npm i -D @typescript-eslint/parser` line) and the fix table. `recommended` also enables `bitboss-ui/no-active-class-on-root-link`: `active-class` on a link-capable `Bb*` component (`BbButton`/`BbBaseButton`/`BbBadgeButton`) matches by path PREFIX, so a link whose target is the literal root (`href="/"` / `to="/"`) reads as "active" on every URL — the rule flags that combination and points you at `exact-active-class` instead.
967
+ For a human-in-the-loop (and agent) safety net, add the `bitboss-ui/eslint-plugin` flat-config plugin (`...bitbossUi.configs.recommended`) so unknown/removed `Bb*` props surface as ESLint errors in the editor and CI — the same manifest checks as `bitboss-ui check`, reusing your `eslint-plugin-vue` parser. Real HTML attributes fall through untouched; escape hatches are the standard `<!-- eslint-disable-next-line bitboss-ui/no-unknown-attributes -->` and the rule's `allowAttributes` / `allowComponents` options. **`eslint --fix` also auto-migrates deprecated v2 props** (renames, boolean-polarity inversions like `allowWriting`→`disableWriting`, value remaps like BbToast `placement`→`position`, and deletion of inert removed props); structural migrations that need a slot/directive/CSS are reported but left by hand. One deliberate boundary: the rule's "did you mean `<prop>`?" hints for a mistyped/unknown attribute are advisory message text, not fixes — `eslint --fix` (including an unattended run in a pre-commit hook) never applies them; only the registered v2→v3 migrations above are auto-fixed. A guess applied blind across a codebase would be a silent behavior change, so acting on a hint is always a per-site decision. **This library is TS-first (recipes ship `<script setup lang="ts">`, some with `generic="T"`), so wire `@typescript-eslint/parser` for both `.ts` and `.vue` files** — without it `vue-eslint-parser` throws a `Parsing error` on those files, which means no rule (including `no-unknown-attributes`) runs on them at all. See the README "ESLint plugin" section for the full config snippet (both parser blocks + the `npm i -D @typescript-eslint/parser` line) and the fix table. `recommended` also enables `bitboss-ui/no-active-class-on-root-link`: `active-class` on a link-capable `Bb*` component (`BbButton`/`BbBaseButton`/`BbBadgeButton`) matches by path PREFIX, so a link whose target is the literal root (`href="/"` / `to="/"`) reads as "active" on every URL — the rule flags that combination and points you at `exact-active-class` instead.
900
968
 
901
969
  **The manifest ships with the package** — `dist/ai/components.json` is inside
902
970
  the tarball, and the rules resolve it relative to their own file, so a normal
@@ -906,6 +974,8 @@ nothing), the rules cannot check anything: they now **warn once** saying they
906
974
  are inactive rather than passing silently. Pass `failClosed: true` to a rule's
907
975
  options if you would rather CI stop than under-check.
908
976
 
977
+ `recommended` also enables **`bitboss-ui/no-reverse-false`**, which covers the one v2 break a rename table cannot: `reverse` on `BbCheckbox` / `BbRadio` / `BbSwitch` kept its NAME and inverted its MEANING in v3, so the v2 spelling `:reverse="false"` (control on the right) is now a no-op that renders the control on the LEFT. Nothing else catches it — it is a declared prop, correctly typed, holding its own default value — and it cannot be expressed as a rename, because a rename entry is keyed by prop name and would rewrite the legitimate v3 spellings too. The rule flags only a LITERAL `:reverse="false"` (a dynamic `:reverse="isRtl"` that evaluates false is left alone) and offers both corrections as editor suggestions; pass `{ assumeV2: true }` to promote the v2-intent rewrite to a real `--fix` for a bulk sweep, then remove it — the two readings produce opposite layouts, so it must never be on by default. See [the migration guide](../guides/migration/components/bb-checkbox.md).
978
+
909
979
  It also enables `bitboss-ui/require-partner-prop`: an opt-in prop set without its documented required partner — BbTable `keyboard-navigation` / `v-model:highlighted` without `row-class` (the shipped tint says "current row"; `row-class` says why, and is how you override it), or `loading-text` without `:loading` bound — compiles and mounts clean and just does nothing; the rule names the missing partner and quotes why.
910
980
 
911
981
  ## 9) Setup Verification Checklist
@@ -927,7 +997,7 @@ If one of the checks fails, fix setup before creating component examples.
927
997
  ---
928
998
 
929
999
  <!-- dist/ai/guides/component-picker.md -->
930
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/component-picker.md -->
1000
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/component-picker.md -->
931
1001
 
932
1002
  # Component Picker
933
1003
 
@@ -1159,8 +1229,8 @@ compose it or write it yourself.
1159
1229
 
1160
1230
  | Assumed component or composable | Reality |
1161
1231
  | -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1162
- | `BbColumnManager` — show/hide/reorder columns | Does not exist. Compose `BbPopover` + `BbCheckbox` and persist the ordered visible keys yourself. |
1163
- | `BbKanban` / drag-and-drop board | Does not exist. There is no DnD primitive in the library at all — compose the board from `BbTable` (a table/list view of the same data) or hand-roll the drag-and-drop interaction yourself. |
1232
+ | `BbColumnManager` — show/hide/reorder columns | Does not exist as a component. Order is `v-model:order` on `BbTable` (an array of keys any panel can write; `reorderable` adds the built-in header drag + keyboard handle); visibility is still filtering `columns` — the hidden key keeps its slot in the order. Compose the panel from `BbPopover` + `BbCheckbox`. |
1233
+ | `BbKanban` / drag-and-drop board | Does not exist. There is no reusable DnD primitive in the library (`BbTable`'s header drag is internal to the table) — compose the board from `BbTable` (a table/list view of the same data) or hand-roll the drag-and-drop interaction yourself. |
1164
1234
  | `BbModal` | It is [BbDialog](../BbDialog.md). |
1165
1235
  | `BbDrawer` / `BbSheet` | It is [BbOffCanvas](../BbOffCanvas.md). |
1166
1236
  | `BbCombobox` / `BbAutocomplete` | It is [BbSelect](../BbSelect.md) / [BbSelectPopover](../BbSelectPopover.md) — search is built in, see `disable-writing`. |
@@ -1202,7 +1272,7 @@ See:
1202
1272
  ---
1203
1273
 
1204
1274
  <!-- dist/ai/guides/design-language.md -->
1205
- <!-- https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/guides/design-language.md -->
1275
+ <!-- https://llms-bitboss-ui.bitboss.it/dist/ai/guides/design-language.md -->
1206
1276
 
1207
1277
  # Design Language
1208
1278
 
@@ -1254,20 +1324,20 @@ naming rules, the emphasis ladder) lives in
1254
1324
 
1255
1325
  ### Surfaces & structure
1256
1326
 
1257
- | Token | Meaning |
1258
- | --------------------- | ----------------------------------------------------------------- |
1259
- | `--bb-panel` | Surface/background color of panels, popovers, dialogs |
1260
- | `--bb-muted` | Subtle/disabled surface (derived, neutral) |
1261
- | `--bb-hover` | Hover fill for **affordances** (buttons, links, controls) |
1262
- | `--bb-surface-hover` | Hover fill for **passive surfaces** (rows, cells, days) — fainter |
1263
- | `--bb-pressed` | Neutral pressed/active fill |
1264
- | `--bb-border` | Border color; pair with `--bb-border-w` (1px) |
1265
- | `--bb-radius` | Corner radius of controls (8px) |
1266
- | `--bb-radius-surface` | Corner radius of large surfaces (derived, ×1.8) |
1267
- | `--bb-radius-sm` | Corner radius of small nested elements (derived) |
1268
- | `--bb-shadow` | Global elevation shadow |
1269
- | `--bb-panel-p` | Content padding of large surfaces (dialog, off-canvas) |
1270
- | `--bb-z-overlay` | Z-index for overlays (10) |
1327
+ | Token | Meaning |
1328
+ | --------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
1329
+ | `--bb-panel` | Surface/background color of panels, popovers, dialogs |
1330
+ | `--bb-muted` | Subtle/disabled surface (derived, neutral) |
1331
+ | `--bb-hover` | Hover fill for **affordances** (buttons, links, controls) |
1332
+ | `--bb-surface-hover` | Hover fill for **passive surfaces** (rows, cells, days) — fainter |
1333
+ | `--bb-pressed` | Neutral pressed/active fill |
1334
+ | `--bb-border` | Border color; pair with `--bb-border-w` (1px) |
1335
+ | `--bb-radius` | Corner radius of controls (8px) |
1336
+ | `--bb-radius-surface` | Corner radius of large surfaces (derived, ×1.8) |
1337
+ | `--bb-radius-sm` | Corner radius of small nested elements (derived) |
1338
+ | `--bb-shadow` | Global elevation shadow |
1339
+ | `--bb-panel-p` | Content padding of large surfaces (dialog, off-canvas); axis split via the locals `--px`/`--py` on `.bb-dialog` / `.bb-offcanvas` |
1340
+ | `--bb-z-overlay` | Z-index for overlays (10) |
1271
1341
 
1272
1342
  ### Color semantics
1273
1343
 
@@ -1787,13 +1857,13 @@ text, `--bb-label-weight`
1787
1857
 
1788
1858
  ## Component catalogue
1789
1859
 
1790
- Every public component. Open one contract at `https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/ai/<Name>.md` before using it — never guess a prop name.
1860
+ Every public component. Open one contract at `https://llms-bitboss-ui.bitboss.it/dist/ai/<Name>.md` before using it — never guess a prop name.
1791
1861
 
1792
1862
  - **BbAccordion** — Expands and collapses a content panel.
1793
1863
  - **BbAlert** — Shows contextual status messages.
1794
1864
  - **BbAsterisk** — Presentational required-field marker (red "*"). No props/slots/events; placed in custom label content.
1795
1865
  - **BbAvatar** — Displays an avatar and has a fallback content slot.
1796
- - **BbBadge** — Displays compact status counters or labels, the floating mode acts as notification dot.
1866
+ - **BbBadge** — Displays a compact inline status counter or label. It sits in the flow — for a bubble or dot anchored OVER another element, use BbIndicator (includes the co-located BbBadgeButton export).
1797
1867
  - **BbBadgeButton** — Makes a badge's body interactive: slotted as a direct child of BbBadge it renders the badge body as a real button/link with full BbBaseButton parity, leaving `clearable` free to remain a separate control.
1798
1868
  - **BbBaseButton** — Unstyled button/link primitive: element resolution (button/anchor/router link) and the full navigation engine, with no visual chrome. Use for any clickable or navigable surface that is not a variant-first BbButton — cards, list rows, custom links.
1799
1869
  - **BbBaseCheckboxIcon** — Standalone checkbox glyph (box + checkmark SVG). Presentational only — no input, no events. Compose it into a fully custom checkbox design, or let BbCheckbox/BbBaseCheckbox render it.
@@ -1811,13 +1881,13 @@ Every public component. Open one contract at `https://cdn.jsdelivr.net/npm/bitbo
1811
1881
  - **BbDatePicker** — Opens an anchored calendar (and optional time rail) popover on a trigger you own — the date analog of BbColorPalette; also the v-bb-date directive.
1812
1882
  - **BbDatePickerInput** — Combines date selection with text input behavior.
1813
1883
  - **BbDialog** — Presents modal dialogs for focused user interactions.
1814
- - **BbDropdown** — Displays contextual action menus and menu content.
1884
+ - **BbDropdown** — Displays contextual action menus and menu content (includes the co-located BbDropdownGroup export, which is how a selectable group is bound).
1815
1885
  - **BbDropdownButton** — A button with primary action and all other actions collected in a dropdown.
1816
1886
  - **BbDropdownGroup** — Renderless v-model companion for a group declared in BbDropdown.items, bound by id.
1817
1887
  - **BbDropzone** — Supports drag-and-drop file input flows.
1818
1888
  - **BbForm** — Form host for `bitboss-ui/validated`: owns the vee-validate form (useForm), validates every field on submit, and emits `submit` with the collected values only when the form is valid.
1819
1889
  - **BbIcon** — Renders an icon either from the local icon folder or from a provider.
1820
- - **BbIndicator** — Anchors a notification bubble (count/short text) or a dot over a wrapped element, with floating and corner-placement options.
1890
+ - **BbIndicator** — Anchors a notification bubble (count/short text) or a dot over a wrapped element.
1821
1891
  - **BbNumberInput** — Captures and validates numeric form values, emits a number value.
1822
1892
  - **BbOffCanvas** — Shows side-panel overlay content outside normal layout flow.
1823
1893
  - **BbPagination** — Navigates paginated data sets by page index.
@@ -1834,7 +1904,7 @@ Every public component. Open one contract at `https://cdn.jsdelivr.net/npm/bitbo
1834
1904
  - **BbSwitch** — Toggles two-state values with switch semantics.
1835
1905
  - **BbSwitchGroup** — Manages grouped switch options with shared behavior.
1836
1906
  - **BbTable** — Displays tabular data, configurable columns and data mapper.
1837
- - **BbTabs** — Switches between tabbed content views (shadcn-like strip; BbTabRoot enables split layouts).
1907
+ - **BbTabs** — Switches between tabbed content views (shadcn-like strip; the co-located BbTabsRoot / BbTabsList / BbTabsPanes exports enable split layouts).
1838
1908
  - **BbTabsList** — The trigger strip of a split BbTabsRoot layout (renders the tab buttons only).
1839
1909
  - **BbTabsPanes** — The pane host of a split BbTabsRoot layout (renders the tab content only).
1840
1910
  - **BbTabsRoot** — Provide/inject root that lets BbTabsList and BbTabsPanes live in separate layout slots.
@@ -1843,7 +1913,7 @@ Every public component. Open one contract at `https://cdn.jsdelivr.net/npm/bitbo
1843
1913
  - **BbTextInput** — Captures single-line text values.
1844
1914
  - **BbTimePicker** — Opens hour/minute(/second) columns in a popover on a trigger you own — the time analog of BbDatePicker; also the v-bb-time directive.
1845
1915
  - **BbTimePickerInput** — Segmented time field with hour/minute columns; 24-hour string model.
1846
- - **BbToast** — Shows transient notification messages.
1916
+ - **BbToast** — Shows transient notification messages (includes the co-located BbToastPortal export).
1847
1917
  - **BbToastPortal** — Registers named slot content that toast() renders via `portal`.
1848
1918
  - **BbTooltip** — Displays contextual helper text on interaction.
1849
1919
  - **BbTree** — Renders hierarchical expandable tree structures.
package/dist/llms.txt CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  ## AI Knowledge Base
6
6
 
7
- - [Core knowledge base](https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/llms-medium.txt): **Fetch this if you can only fetch one file** — hard rules, setup, component picker, design language, and the full component catalogue in ~70 KB.
8
- - [Complete knowledge base](https://cdn.jsdelivr.net/npm/bitboss-ui@beta/dist/llms-full.txt): Everything concatenated (~2 MB). Bulk ingestion only — too large to prompt with.
7
+ - [Core knowledge base](https://llms-bitboss-ui.bitboss.it/dist/llms-medium.txt): **Fetch this if you can only fetch one file** — hard rules, setup, component picker, design language, and the full component catalogue in ~70 KB.
8
+ - [Complete knowledge base](https://llms-bitboss-ui.bitboss.it/dist/llms-full.txt): Everything concatenated (~2 MB). Bulk ingestion only — too large to prompt with.
9
9
  - [AI Router](ai/guides/ai-router.md): **Start here** — tiny hop map for any coding agent (which file to open next).
10
10
  - [Component index](ai/index.md): Full component catalogue with agent rules, grouped by category. Each entry links a typed contract (props/events/slots/v-model).
11
11
  - [Component manifest](ai/components.json): Machine-readable API surface of every component, for programmatic validation.
@@ -32,17 +32,17 @@
32
32
  - [Migration v2→v3: BbCheckbox / BbRadio / BbSwitch](ai/guides/migration/components/bb-checkbox.md): reverse polarity inverted (explicit values flip, default layout unchanged), checked narrowed to boolean, color removed, BbRadio's name no longer required.
33
33
  - [Migration v2→v3: BbCheckboxGroup / BbRadioGroup / BbSwitchGroup](ai/guides/migration/components/bb-checkbox-group.md): labelPosition renamed legendPosition, per-item disabled is now inert (use selectable), color and the option affix slots removed, BbRadioGroup's name no longer required, and the shared bb-cr-container CSS block split into one per group.
34
34
  - [Migration v2→v3: BbChip (removed)](ai/guides/migration/components/bb-chip.md): BbChip is gone — BbBadge with clearable is the replacement; non-clearable chips were badges all along.
35
- - [Migration v2→v3: BbCollapsible](ai/guides/migration/components/bb-collapsible.md): The tag prop is removed; the root is always a div.
35
+ - [Migration v2→v3: BbCollapsible](ai/guides/migration/components/bb-collapsible.md): The tag prop is removed; the root is always a span.
36
36
  - [Migration v2→v3: BbColorInput](ai/guides/migration/components/bb-color-input.md): picker renamed to eyeDropper.
37
37
  - [Migration v2→v3: BbColorPalette](ai/guides/migration/components/bb-color-palette.md): flip inverted to disableFlip, showArrow removed, picker renamed eyeDropper, update:open dropped, model updates never emit null.
38
38
  - [Migration v2→v3: BbDatePickerInput](ai/guides/migration/components/bb-date-picker-input.md): allowWriting inverted to disableWriting and hidePopover renamed to disableCalendar, both with a changed token set; the width prop is removed; adaptive mobile sheet by default; non-floating output carries the local offset instead of UTC `Z` (new `utc` prop restores v2 output).
39
- - [Migration v2→v3: BbDialog](ai/guides/migration/components/bb-dialog.md): showClose inverted to hideClose, several presentation props and the #close/#description slots removed, default widths changed, adaptive bottom sheet on mobile by default, --bb-dialog-* tokens replaced by --bb-panel-p plus locals.
39
+ - [Migration v2→v3: BbDialog](ai/guides/migration/components/bb-dialog.md): showClose inverted to hideClose, #close removed (description restored in beta.19), default widths changed, adaptive bottom sheet on mobile by default, --bb-dialog-* tokens replaced by --bb-panel-p plus locals.
40
40
  - [Migration v2→v3: BbDropdown](ai/guides/migration/components/bb-dropdown.md): Items now expect text as the label and can carry variants/submenus; arrowPadding removed; adaptive mobile sheet on by default.
41
41
  - [Migration v2→v3: BbDropdownButton](ai/guides/migration/components/bb-dropdown-button.md): autoLoading renamed to disableAutoLoading, disabledWhileLoading and theme removed.
42
42
  - [Migration v2→v3: BbDropzone](ai/guides/migration/components/bb-dropzone.md): modelValue is typed, accept no longer throws and takes bare tokens, and the hidden native-submit input only renders when name is set.
43
43
  - [Migration v2→v3: BbIcon](ai/guides/migration/components/bb-icon.md): The required prop is renamed type→icon, color is removed, and the xxl size key becomes 2xl.
44
44
  - [Migration v2→v3: BbIntersection](ai/guides/migration/components/bb-intersection.md): Removed with no replacement — it wrapped IntersectionObserver and carried no styling; use @vueuse/core's useIntersectionObserver.
45
- - [Migration v2→v3: BbOffCanvas](ai/guides/migration/components/bb-offcanvas.md): direction→side; showClose→hideClose; description and the #close/#description slots removed; size defaults change; adaptive drawer configs unify on offCanvasProps.
45
+ - [Migration v2→v3: BbOffCanvas](ai/guides/migration/components/bb-offcanvas.md): direction→side; showClose→hideClose; #close removed (description restored in beta.19); size defaults change; adaptive drawer configs unify on offCanvasProps.
46
46
  - [Migration v2→v3: BbPagination](ai/guides/migration/components/bb-pagination.md): querykey renamed to queryKey; the loading prop is removed.
47
47
  - [Migration v2→v3: BbPopover](ai/guides/migration/components/bb-popover.md): Built-in close button, restoreFocus, theme, and the arrow are gone; close affordances move into your content.
48
48
  - [Migration v2→v3: BbRating](ai/guides/migration/components/bb-rating.md): color removed; name no longer required; the star state modifier renamed --highlighted to --filled/--empty; --bb-rating-size demoted to a local --size; input-position finally works.
@@ -51,7 +51,7 @@
51
51
  - [Migration v2→v3: BbSlider](ai/guides/migration/components/bb-slider.md): thumbTranslate inverted to disableThumbTranslate; string model values and color removed.
52
52
  - [Migration v2→v3: BbSmoothHeight](ai/guides/migration/components/bb-smooth-height.md): The `tag` prop is narrowed to `div | span`, and the inner measuring element now mirrors it instead of always being a `<div>`.
53
53
  - [Migration v2→v3: BbSpinner](ai/guides/migration/components/bb-spinner.md): The color prop is removed; spinners follow currentColor.
54
- - [Migration v2→v3: BbTable](ai/guides/migration/components/bb-table.md): allowSelectAll inverted to disableSelectAll; loading no longer blanks populated tables and now inerts rows; #loading is first-load-only; #no-data fills a full-width table cell instead of replacing the row; columns gained sortable + rowClass, which collide with same-named consumer fields.
54
+ - [Migration v2→v3: BbTable](ai/guides/migration/components/bb-table.md): The table renders as a CSS grid of divs with ARIA roles, not a <table> — every element selector (table/thead/tbody/tr/th/td) under .bb-table matches nothing, #thead/#tbody/#tfoot take role-complete div rows, --fill/--natural-width are gone, column widths drift within documented bounds, copy-to-spreadsheet and print header repetition degrade; allowSelectAll inverted to disableSelectAll; loading no longer blanks populated tables and now inerts rows; #loading is first-load-only; #no-data fills a full-width cell instead of replacing the row; row events drop the selected argument; columns gained sortable + rowClass, which collide with same-named consumer fields.
55
55
  - [Migration v2→v3: BbTabs (was BbTab)](ai/guides/migration/components/bb-tabs.md): Component renamed; querykey→queryKey; animations default on; label slots renamed and all dynamic names/URL slugs normalized; the entire .bb-tab BEM tree renamed to .bb-tabs / .bb-tabs-list / .bb-tabs-panes.
56
56
  - [Migration v2→v3: BbTag](ai/guides/migration/components/bb-tag.md): modelValue is strictly string[] now, multiple is removed, and duplicates are rejected case-insensitively by default.
57
57
  - [Migration v2→v3: BbTextInput](ai/guides/migration/components/bb-text-input.md): The type prop narrows to the text-like input types — number/date values must move to their dedicated components; a bare `floating` attribute was never a prop, the spelling is label-mode="floating".
@@ -61,6 +61,7 @@
61
61
  - [Migration v2→v3: confirm() / useConfirm](ai/guides/migration/components/use-confirm.md): yesText/onYes/noText/onNo collapse into yes/no configs, actions becomes an array-or-false, theme→variant, timeout→duration, autoClose flips to default-true, labels are localized, footer buttons default md.
62
62
  - [Migration v2→v3: useBroadcastChannelInstance](ai/guides/migration/components/use-broadcast-channel-instance.md): Removed — cross-tab messaging is not a UI concern; use useBroadcastChannel from @vueuse/core.
63
63
  - [Page Shell](ai/guides/page-shell.md): App-side page layout — topbar, content, and a right details sidebar driven by a stack-based context (push a record to peek it, pop to go back). The implementation ships in the per-platform Layout Scaffold recipe; this guide covers when and how to use it.
64
+ - [ssr-prefill](ai/guides/ssr-prefill.md): Guide for ssr-prefill usage and decision-making context.
64
65
  - [Validated Forms (vee-validate)](ai/guides/validated-forms.md): The `bitboss-ui/validated` entrypoint — form controls pre-wired to vee-validate. Global rules give an effort-free `rules="required|email"` string syntax; BbForm hosts the form; requiredAsterisk marks required fields.
65
66
 
66
67
  ## Recipes (Page-Level Assemblies)
@@ -138,7 +138,10 @@
138
138
  "selectAllLabel": "Select all items on this page",
139
139
  "selectText": "Select an item",
140
140
  "select": "Select",
141
- "selectableLegend": "Select items"
141
+ "selectableLegend": "Select items",
142
+ "reorderInstructions": "Use the left and right arrow keys to move between columns; hold Shift to move the column, with Home and End for the ends. Enter sorts a sortable column.",
143
+ "columnMoved": "{0} moved to position {1} of {2}",
144
+ "resizeInstructions": "Alt + left or right arrow resizes the column; double-click its edge to restore the declared width."
142
145
  },
143
146
  "baseTimePickerInput": {
144
147
  "emptySelection": "Select a time",
@@ -0,0 +1,100 @@
1
+ /**
2
+ * The name registry behind the `bitboss-ui/nuxt` module's `autoImport` option.
3
+ *
4
+ * v3's default stance is EXPLICIT imports: nothing is globally registered, so
5
+ * `vueCompilerOptions.checkUnknownComponents` turns a typo'd or unimported
6
+ * `<BbTabs>` into a `vue-tsc` error instead of a silently missing widget (see
7
+ * ai/guides/installation-and-plugin-setup.md). `autoImport` deliberately trades
8
+ * that gate away for Nuxt's zero-import ergonomics — it exists so an app coming
9
+ * from `@bitboss-dev/bitboss-ui-nuxt`, whose templates were written against
10
+ * auto-imported components, does not have to add ~60 imports per page in the
11
+ * same commit that moves it to v3.
12
+ *
13
+ * Nuxt needs the names at config time and the published package is `dist/` —
14
+ * there is no source tree to read them from — so they are written out here.
15
+ * `nuxt-auto-imports.node.test.ts` diffs these lists against the actual exports
16
+ * of `src/index.ts` and `src/validated/index.ts` on every run, so a component
17
+ * added to the library and not to this file fails the suite rather than
18
+ * quietly never auto-importing.
19
+ */
20
+ /** The entrypoints an auto-imported name can be pulled from. */
21
+ export declare const CORE_ENTRYPOINT: "bitboss-ui";
22
+ export declare const VALIDATED_ENTRYPOINT: "bitboss-ui/validated";
23
+ export type AutoImportEntrypoint = typeof CORE_ENTRYPOINT | typeof VALIDATED_ENTRYPOINT;
24
+ /**
25
+ * Every component `bitboss-ui` exports. Mirrors the `export { default as … }`
26
+ * lines of `src/index.ts`, in the order Nuxt will see them (sorted).
27
+ */
28
+ export declare const CORE_COMPONENTS: readonly string[];
29
+ /**
30
+ * Every component `bitboss-ui/validated` exports — the vee-validate-bound form
31
+ * controls, their `BbForm` host, and `BbAsterisk` (re-exported there so a
32
+ * validated app gets the required marker from the same entrypoint as the
33
+ * controls that render it).
34
+ *
35
+ * With `validated: true` these SHADOW their core namesakes: `<BbTextInput>` in
36
+ * a template resolves to the validated wrapper, which is the whole point — the
37
+ * template stays identical and gains `rules` / `vid` / `validateOn`.
38
+ */
39
+ export declare const VALIDATED_COMPONENTS: readonly string[];
40
+ /**
41
+ * Composables `bitboss-ui` exports that are deliberately NOT auto-imported.
42
+ *
43
+ * `useId` collides head-on with the `useId` Nuxt already auto-imports from Vue.
44
+ * Registering ours would silently redirect every `useId()` call in the app —
45
+ * including ones written long before bitboss-ui was installed — to a different
46
+ * generator. Apps that want the library's still `import { useId } from
47
+ * 'bitboss-ui'` explicitly.
48
+ */
49
+ export declare const EXCLUDED_COMPOSABLES: readonly string[];
50
+ /** Composables auto-imported from `bitboss-ui`. */
51
+ export declare const CORE_COMPOSABLES: readonly string[];
52
+ /** Composables auto-imported from `bitboss-ui/validated` under `validated`. */
53
+ export declare const VALIDATED_COMPOSABLES: readonly string[];
54
+ /**
55
+ * `autoImport` as written in `nuxt.config.ts`. `true` is shorthand for
56
+ * `{ components: true, composables: true }` — validated wrappers are opt-in on
57
+ * top, because swapping them in changes what a `<BbTextInput>` tag resolves to.
58
+ */
59
+ export type BitbossAutoImportOptions = {
60
+ /**
61
+ * Register every `bitboss-ui` component with Nuxt so templates can use them
62
+ * without an import.
63
+ *
64
+ * @defaultValue `true` when `autoImport` is enabled
65
+ */
66
+ components?: boolean;
67
+ /**
68
+ * Add the library's composables to Nuxt's auto-import presets.
69
+ *
70
+ * @defaultValue `true` when `autoImport` is enabled
71
+ */
72
+ composables?: boolean;
73
+ /**
74
+ * Resolve the form controls from `bitboss-ui/validated` instead of
75
+ * `bitboss-ui`, and add `BbForm`, `BbAsterisk`, `useBbFormContext` and
76
+ * `useValidatedField`. Requires the `vee-validate` peer.
77
+ *
78
+ * @defaultValue `false`
79
+ */
80
+ validated?: boolean;
81
+ };
82
+ export type BitbossAutoImport = boolean | BitbossAutoImportOptions;
83
+ /** One resolved registration: the name Nuxt registers and where it comes from. */
84
+ export type AutoImportEntry = {
85
+ name: string;
86
+ from: AutoImportEntrypoint;
87
+ };
88
+ export type ResolvedAutoImports = {
89
+ components: AutoImportEntry[];
90
+ composables: AutoImportEntry[];
91
+ };
92
+ /**
93
+ * Turn the `autoImport` option into the exact list of names the Nuxt module
94
+ * hands to `addComponent` / `addImports`.
95
+ *
96
+ * Kept a pure function — no `@nuxt/kit`, no I/O — so the mapping that decides
97
+ * whether `<BbTextInput>` is the plain or the validated control is testable on
98
+ * its own, without booting Nuxt.
99
+ */
100
+ export declare const resolveAutoImports: (autoImport: BitbossAutoImport | undefined) => ResolvedAutoImports;
@@ -0,0 +1,55 @@
1
+ //#region src/nuxt-auto-imports.ts
2
+ var e = "bitboss-ui", t = "bitboss-ui/validated", n = /* @__PURE__ */ "BbAccordion.BbAlert.BbAsterisk.BbAvatar.BbBadge.BbBadgeButton.BbBaseButton.BbBaseCheckboxIcon.BbBaseRadioIcon.BbBaseSwitchIcon.BbBreadcrumbs.BbButton.BbCheckbox.BbCheckboxGroup.BbCollapsible.BbColorInput.BbColorPalette.BbConfirm.BbConfirmPortal.BbDatePicker.BbDatePickerInput.BbDialog.BbDropdown.BbDropdownButton.BbDropdownGroup.BbDropzone.BbIcon.BbIndicator.BbNumberInput.BbOffCanvas.BbPagination.BbPopover.BbProgress.BbRadio.BbRadioGroup.BbRating.BbSelect.BbSelectPopover.BbSlider.BbSmoothHeight.BbSpinner.BbSwitch.BbSwitchGroup.BbTable.BbTabs.BbTabsList.BbTabsPanes.BbTabsRoot.BbTag.BbTextInput.BbTextarea.BbTimePicker.BbTimePickerInput.BbToast.BbToastPortal.BbTooltip.BbTree".split("."), r = [
3
+ "BbAsterisk",
4
+ "BbCheckbox",
5
+ "BbCheckboxGroup",
6
+ "BbColorInput",
7
+ "BbDatePickerInput",
8
+ "BbDropzone",
9
+ "BbForm",
10
+ "BbNumberInput",
11
+ "BbRadioGroup",
12
+ "BbRating",
13
+ "BbSelect",
14
+ "BbSlider",
15
+ "BbSwitch",
16
+ "BbSwitchGroup",
17
+ "BbTag",
18
+ "BbTextInput",
19
+ "BbTextarea",
20
+ "BbTimePickerInput"
21
+ ], i = [
22
+ "useBbConfig",
23
+ "useBbDropdownContext",
24
+ "useBbTableContext",
25
+ "useBbTabsContext",
26
+ "useConfirm",
27
+ "useCountdown",
28
+ "useMobile",
29
+ "useSafeArea",
30
+ "useToast"
31
+ ], a = ["useBbFormContext", "useValidatedField"], o = (e, t) => e.name.localeCompare(t.name), s = (s) => {
32
+ if (!s) return {
33
+ components: [],
34
+ composables: []
35
+ };
36
+ let c = s === !0 ? {} : s, l = c.components ?? !0, u = c.composables ?? !0, d = c.validated ?? !1, f = new Set(r), p = new Set(n);
37
+ return {
38
+ components: l ? [...n.map((n) => ({
39
+ name: n,
40
+ from: d && f.has(n) ? t : e
41
+ })), ...d ? r.filter((e) => !p.has(e)).map((e) => ({
42
+ name: e,
43
+ from: t
44
+ })) : []].sort(o) : [],
45
+ composables: u ? [...i.map((t) => ({
46
+ name: t,
47
+ from: e
48
+ })), ...d ? a.map((e) => ({
49
+ name: e,
50
+ from: t
51
+ })) : []].sort(o) : []
52
+ };
53
+ };
54
+ //#endregion
55
+ export { n as CORE_COMPONENTS, i as CORE_COMPOSABLES, e as CORE_ENTRYPOINT, r as VALIDATED_COMPONENTS, a as VALIDATED_COMPOSABLES, t as VALIDATED_ENTRYPOINT, s as resolveAutoImports };
@@ -13,5 +13,26 @@
13
13
  /// <reference path="./toast-variants.d.ts" />
14
14
  /// <reference path="./tooltip-variants.d.ts" />
15
15
  import { BitbossUiOptions } from './vite-plugin';
16
- declare const _default: import('@nuxt/schema').NuxtModule<BitbossUiOptions, BitbossUiOptions, false>;
16
+ import { BitbossAutoImport } from './nuxt-auto-imports';
17
+ export type { BitbossAutoImport, BitbossAutoImportOptions, } from './nuxt-auto-imports';
18
+ /**
19
+ * The `bitboss` key in `nuxt.config.ts`: every build-plugin option, plus the
20
+ * Nuxt-only `autoImport`.
21
+ */
22
+ export type BitbossNuxtOptions = BitbossUiOptions & {
23
+ /**
24
+ * Register the library's components and composables with Nuxt's auto-import
25
+ * system, so templates use `<BbButton>` and `useToast()` with no import
26
+ * line. `true` takes components and composables; pass an object to narrow
27
+ * it, or to opt into the `bitboss-ui/validated` controls.
28
+ *
29
+ * Off by default: v3 expects explicit imports so that
30
+ * `vueCompilerOptions.checkUnknownComponents` can catch an unresolved
31
+ * `Bb*` tag at type-check time. Turning this on gives that gate up.
32
+ *
33
+ * @defaultValue `false`
34
+ */
35
+ autoImport?: BitbossAutoImport;
36
+ };
37
+ declare const _default: import('@nuxt/schema').NuxtModule<BitbossNuxtOptions, BitbossNuxtOptions, false>;
17
38
  export default _default;
package/dist/nuxt.js CHANGED
@@ -1,19 +1,33 @@
1
1
  import { bitbossUi as e } from "./vite.js";
2
- import { addPlugin as t, createResolver as n, defineNuxtModule as r } from "@nuxt/kit";
2
+ import { resolveAutoImports as t } from "./nuxt-auto-imports.js";
3
+ import { addComponent as n, addImports as r, addPlugin as i, createResolver as a, defineNuxtModule as o } from "@nuxt/kit";
3
4
  //#region src/nuxt-module.ts
4
- var i = r({
5
+ var s = o({
5
6
  meta: {
6
7
  name: "bitboss-ui:icons",
7
8
  configKey: "bitboss"
8
9
  },
9
10
  defaults: { iconDir: "./assets/icons" },
10
- setup(r, i) {
11
- i.hook("vite:extendConfig", (t) => {
12
- t.plugins ??= [], t.plugins.push(e(r));
11
+ setup(o, s) {
12
+ let { autoImport: c, ...l } = o;
13
+ s.hook("vite:extendConfig", (t) => {
14
+ t.plugins ??= [], t.plugins.push(e(l));
15
+ });
16
+ let { resolve: u } = a(import.meta.url);
17
+ i(u("./runtime/nuxt-plugin"));
18
+ let { components: d, composables: f } = t(c);
19
+ for (let { name: e, from: t } of d) n({
20
+ name: e,
21
+ filePath: t,
22
+ export: e,
23
+ priority: -1
24
+ });
25
+ for (let { name: e, from: t } of f) r({
26
+ name: e,
27
+ as: e,
28
+ from: t
13
29
  });
14
- let { resolve: a } = n(import.meta.url);
15
- t(a("./runtime/nuxt-plugin"));
16
30
  }
17
31
  });
18
32
  //#endregion
19
- export { i as default };
33
+ export { s as default };
package/dist/plugin.d.ts CHANGED
@@ -1,4 +1,13 @@
1
1
  import { App } from 'vue';
2
+ import { ResolvedConfig } from './types/Config';
2
3
  export declare const bitbossUiPlugin: {
3
- install(app: App): void;
4
+ /**
5
+ * `options` are PER-APP runtime overrides of the build-time config — the
6
+ * per-request entry point under SSR, where every request already builds its
7
+ * own app (Q18.2). `app.use(bitbossUiPlugin, { locale: req.locale })` is now
8
+ * the correct way to serve more than one language from one server; the old
9
+ * route, `setConfig()` during a server render, wrote a process-global that
10
+ * leaked into whoever else was being served at that moment.
11
+ */
12
+ install(app: App, options?: Partial<ResolvedConfig>): void;
4
13
  };