bitboss-ui 2.1.135 → 3.0.0-alpha.4

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 (1369) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +274 -24
  3. package/bin/bitboss-ui-mcp.mjs +662 -0
  4. package/bin/bitboss-ui.mjs +710 -0
  5. package/bin/bitboss-ui.node.test.mjs +113 -0
  6. package/dist/ai/BbAccordion.md +528 -113
  7. package/dist/ai/BbAlert.md +380 -197
  8. package/dist/ai/BbAsterisk.md +46 -0
  9. package/dist/ai/BbAvatar.md +458 -178
  10. package/dist/ai/BbBadge.md +697 -225
  11. package/dist/ai/BbBadgeButton.md +54 -0
  12. package/dist/ai/BbBaseButton.md +491 -0
  13. package/dist/ai/BbBaseCheckbox.md +49 -0
  14. package/dist/ai/BbBaseCheckboxGroup.md +64 -0
  15. package/dist/ai/BbBaseCheckboxIcon.md +176 -0
  16. package/dist/ai/BbBaseColorInput.md +64 -0
  17. package/dist/ai/BbBaseColorPalette.md +39 -0
  18. package/dist/ai/BbBaseDatePicker.md +42 -0
  19. package/dist/ai/BbBaseDatePickerInput.md +73 -0
  20. package/dist/ai/BbBaseInputContainer.md +48 -0
  21. package/dist/ai/BbBaseNumberInput.md +71 -0
  22. package/dist/ai/BbBaseRadio.md +46 -0
  23. package/dist/ai/BbBaseRadioGroup.md +64 -0
  24. package/dist/ai/BbBaseRadioIcon.md +191 -0
  25. package/dist/ai/BbBaseRating.md +51 -0
  26. package/dist/ai/BbBaseSelect.md +88 -0
  27. package/dist/ai/BbBaseSlider.md +56 -0
  28. package/dist/ai/BbBaseSwitch.md +49 -0
  29. package/dist/ai/BbBaseSwitchGroup.md +64 -0
  30. package/dist/ai/BbBaseSwitchIcon.md +186 -0
  31. package/dist/ai/BbBaseTag.md +68 -0
  32. package/dist/ai/BbBaseTextInput.md +75 -0
  33. package/dist/ai/BbBaseTextarea.md +62 -0
  34. package/dist/ai/BbBaseTimePickerInput.md +62 -0
  35. package/dist/ai/BbBreadcrumbs.md +553 -503
  36. package/dist/ai/BbButton.md +841 -636
  37. package/dist/ai/BbCheckbox.md +585 -254
  38. package/dist/ai/BbCheckboxGroup.md +573 -361
  39. package/dist/ai/BbCollapsible.md +425 -103
  40. package/dist/ai/BbColorInput.md +536 -323
  41. package/dist/ai/BbColorPalette.md +569 -330
  42. package/dist/ai/BbConfirm.md +659 -136
  43. package/dist/ai/BbConfirmPortal.md +28 -0
  44. package/dist/ai/BbDatePicker.md +244 -0
  45. package/dist/ai/BbDatePickerInput.md +720 -388
  46. package/dist/ai/BbDialog.md +778 -99
  47. package/dist/ai/BbDropdown.md +1072 -763
  48. package/dist/ai/BbDropdownButton.md +525 -614
  49. package/dist/ai/BbDropdownGroup.md +34 -0
  50. package/dist/ai/BbDropzone.md +1206 -436
  51. package/dist/ai/BbForm.md +239 -0
  52. package/dist/ai/BbIcon.md +382 -212
  53. package/dist/ai/BbIndicator.md +283 -0
  54. package/dist/ai/BbNumberInput.md +717 -355
  55. package/dist/ai/BbOffCanvas.md +897 -498
  56. package/dist/ai/BbPagination.md +489 -535
  57. package/dist/ai/BbPopover.md +591 -546
  58. package/dist/ai/BbProgress.md +462 -69
  59. package/dist/ai/BbRadio.md +352 -229
  60. package/dist/ai/BbRadioGroup.md +437 -353
  61. package/dist/ai/BbRating.md +372 -225
  62. package/dist/ai/BbSelect.md +1399 -536
  63. package/dist/ai/BbSelectPopover.md +1255 -1578
  64. package/dist/ai/BbSlider.md +500 -256
  65. package/dist/ai/BbSmoothHeight.md +485 -139
  66. package/dist/ai/BbSpinner.md +718 -131
  67. package/dist/ai/BbSwitch.md +573 -119
  68. package/dist/ai/BbSwitchGroup.md +521 -214
  69. package/dist/ai/BbTable.md +1996 -2365
  70. package/dist/ai/BbTabs.md +1147 -0
  71. package/dist/ai/BbTabsList.md +29 -0
  72. package/dist/ai/BbTabsPanes.md +27 -0
  73. package/dist/ai/BbTabsRoot.md +57 -0
  74. package/dist/ai/BbTag.md +416 -292
  75. package/dist/ai/BbTextInput.md +878 -333
  76. package/dist/ai/BbTextarea.md +850 -255
  77. package/dist/ai/BbTimePicker.md +231 -0
  78. package/dist/ai/BbTimePickerInput.md +200 -0
  79. package/dist/ai/BbToast.md +669 -196
  80. package/dist/ai/BbToastPortal.md +28 -0
  81. package/dist/ai/BbTooltip.md +453 -346
  82. package/dist/ai/BbTree.md +993 -234
  83. package/dist/ai/ChipsBox.md +27 -199
  84. package/dist/ai/ClearableButton.md +21 -55
  85. package/dist/ai/CommaBox.md +25 -200
  86. package/dist/ai/CommonInputWrapper.md +42 -0
  87. package/dist/ai/CommonPopover.md +30 -510
  88. package/dist/ai/ErrorIcon.md +19 -56
  89. package/dist/ai/FlatListBox.md +35 -379
  90. package/dist/ai/GroupedListBox.md +37 -535
  91. package/dist/ai/GuidesComponent.md +21 -0
  92. package/dist/ai/ListBox.md +38 -231
  93. package/dist/ai/OptionsContainer.md +34 -253
  94. package/dist/ai/WarningIcon.md +21 -0
  95. package/dist/ai/components.json +15897 -0
  96. package/dist/ai/composables/useBbConfig.md +80 -0
  97. package/dist/ai/composables/useBbFormContext.md +110 -0
  98. package/dist/ai/composables/useBbTableContext.md +167 -0
  99. package/dist/ai/composables/useBbTabsContext.md +118 -0
  100. package/dist/ai/composables/useBroadcastChannelInstance.md +97 -0
  101. package/dist/ai/composables/useConfirm.md +313 -0
  102. package/dist/ai/composables/useCountdown.md +86 -0
  103. package/dist/ai/composables/useId.md +60 -0
  104. package/dist/ai/composables/useMobile.md +85 -0
  105. package/dist/ai/composables/useToast.md +238 -0
  106. package/dist/ai/guides/agent-contract.md +165 -0
  107. package/dist/ai/guides/ai-router.md +113 -0
  108. package/dist/ai/guides/app-layout.md +318 -0
  109. package/dist/ai/guides/coherence-playbook.md +136 -0
  110. package/dist/ai/guides/component-picker.md +236 -0
  111. package/dist/ai/guides/design-language.md +478 -0
  112. package/dist/ai/guides/design-tokens.md +450 -0
  113. package/dist/ai/guides/fetch-items-playbook.md +161 -0
  114. package/dist/ai/guides/floating-bottom-panel.md +130 -0
  115. package/dist/ai/guides/icons-policy.md +257 -0
  116. package/dist/ai/guides/inertia-helpers.md +1443 -0
  117. package/dist/ai/guides/inline-edit-playbook.md +267 -0
  118. package/dist/ai/guides/installation-and-plugin-setup.md +440 -0
  119. package/dist/ai/guides/migration/components/bb-alert.md +37 -0
  120. package/dist/ai/guides/migration/components/bb-avatar.md +24 -0
  121. package/dist/ai/guides/migration/components/bb-badge.md +110 -0
  122. package/dist/ai/guides/migration/components/bb-breadcrumbs.md +26 -0
  123. package/dist/ai/guides/migration/components/bb-button.md +55 -0
  124. package/dist/ai/guides/migration/components/bb-checkbox-group.md +54 -0
  125. package/dist/ai/guides/migration/components/bb-checkbox.md +45 -0
  126. package/dist/ai/guides/migration/components/bb-chip.md +35 -0
  127. package/dist/ai/guides/migration/components/bb-collapsible.md +26 -0
  128. package/dist/ai/guides/migration/components/bb-color-input.md +23 -0
  129. package/dist/ai/guides/migration/components/bb-color-palette.md +31 -0
  130. package/dist/ai/guides/migration/components/bb-date-picker-input.md +84 -0
  131. package/dist/ai/guides/migration/components/bb-dialog.md +46 -0
  132. package/dist/ai/guides/migration/components/bb-dropdown-button.md +31 -0
  133. package/dist/ai/guides/migration/components/bb-dropdown.md +36 -0
  134. package/dist/ai/guides/migration/components/bb-dropzone.md +27 -0
  135. package/dist/ai/guides/migration/components/bb-icon.md +27 -0
  136. package/dist/ai/guides/migration/components/bb-offcanvas.md +63 -0
  137. package/dist/ai/guides/migration/components/bb-pagination.md +24 -0
  138. package/dist/ai/guides/migration/components/bb-popover.md +52 -0
  139. package/dist/ai/guides/migration/components/bb-rating.md +24 -0
  140. package/dist/ai/guides/migration/components/bb-select-popover.md +59 -0
  141. package/dist/ai/guides/migration/components/bb-select.md +69 -0
  142. package/dist/ai/guides/migration/components/bb-slider.md +25 -0
  143. package/dist/ai/guides/migration/components/bb-smooth-height.md +45 -0
  144. package/dist/ai/guides/migration/components/bb-spinner.md +23 -0
  145. package/dist/ai/guides/migration/components/bb-table.md +66 -0
  146. package/dist/ai/guides/migration/components/bb-tabs.md +47 -0
  147. package/dist/ai/guides/migration/components/bb-tag.md +29 -0
  148. package/dist/ai/guides/migration/components/bb-text-input.md +37 -0
  149. package/dist/ai/guides/migration/components/bb-toast.md +47 -0
  150. package/dist/ai/guides/migration/components/bb-tooltip.md +34 -0
  151. package/dist/ai/guides/migration/components/bb-tree.md +77 -0
  152. package/dist/ai/guides/migration/components/use-confirm.md +46 -0
  153. package/dist/ai/guides/migration/v2-to-v3.md +649 -0
  154. package/dist/ai/guides/options-items-playbook.md +222 -0
  155. package/dist/ai/guides/page-shell.md +113 -0
  156. package/dist/ai/guides/validated-forms.md +177 -0
  157. package/dist/ai/index.md +158 -32
  158. package/dist/ai/recipes/inertia/approvals-inbox.md +1635 -0
  159. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1765 -0
  160. package/dist/ai/recipes/inertia/layout-scaffold.md +385 -0
  161. package/dist/ai/recipes/inertia/onboarding.md +1791 -0
  162. package/dist/ai/recipes/inertia/ownership-atlas.md +1327 -0
  163. package/dist/ai/recipes/inertia/record-form.md +1489 -0
  164. package/dist/ai/recipes/inertia/records-workspace.md +1416 -0
  165. package/dist/ai/recipes/inertia/upload-center.md +2003 -0
  166. package/dist/ai/recipes/inertia/wizard-form.md +1500 -0
  167. package/dist/ai/recipes/nuxt/approvals-inbox.md +1578 -0
  168. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1703 -0
  169. package/dist/ai/recipes/nuxt/layout-scaffold.md +385 -0
  170. package/dist/ai/recipes/nuxt/onboarding.md +1724 -0
  171. package/dist/ai/recipes/nuxt/record-form.md +1502 -0
  172. package/dist/ai/recipes/nuxt/records-workspace.md +1329 -0
  173. package/dist/ai/recipes/nuxt/upload-center.md +1886 -0
  174. package/dist/ai/recipes/nuxt/wizard-form.md +1509 -0
  175. package/dist/ai/recipes/vue/approvals-inbox.md +1496 -0
  176. package/dist/ai/recipes/vue/inline-edit-workspace.md +1594 -0
  177. package/dist/ai/recipes/vue/layout-scaffold.md +385 -0
  178. package/dist/ai/recipes/vue/onboarding.md +1679 -0
  179. package/dist/ai/recipes/vue/record-form.md +1586 -0
  180. package/dist/ai/recipes/vue/records-workspace.md +1245 -0
  181. package/dist/ai/recipes/vue/upload-center.md +1845 -0
  182. package/dist/ai/recipes/vue/wizard-form.md +1441 -0
  183. package/dist/ai/source/BbAccordion.md +123 -0
  184. package/dist/ai/source/BbAlert.md +401 -0
  185. package/dist/ai/source/BbAsterisk.md +32 -0
  186. package/dist/ai/source/BbAvatar.md +258 -0
  187. package/dist/ai/source/BbBadge.md +560 -0
  188. package/dist/ai/source/BbBadgeButton.md +490 -0
  189. package/dist/ai/source/BbBaseButton.md +682 -0
  190. package/dist/ai/source/BbBaseCheckbox.md +461 -0
  191. package/dist/ai/source/BbBaseCheckboxGroup.md +554 -0
  192. package/dist/ai/source/BbBaseCheckboxIcon.md +201 -0
  193. package/dist/ai/source/BbBaseColorInput.md +416 -0
  194. package/dist/ai/source/BbBaseColorPalette.md +934 -0
  195. package/dist/ai/source/BbBaseDatePicker.md +1001 -0
  196. package/dist/ai/source/BbBaseDatePickerInput.md +1785 -0
  197. package/dist/ai/source/BbBaseInputContainer.md +1210 -0
  198. package/dist/ai/source/BbBaseNumberInput.md +617 -0
  199. package/dist/ai/source/BbBaseRadio.md +377 -0
  200. package/dist/ai/source/BbBaseRadioGroup.md +533 -0
  201. package/dist/ai/source/BbBaseRadioIcon.md +153 -0
  202. package/dist/ai/source/BbBaseRating.md +573 -0
  203. package/dist/ai/source/BbBaseSelect.md +898 -0
  204. package/dist/ai/source/BbBaseSlider.md +1085 -0
  205. package/dist/ai/source/BbBaseSwitch.md +246 -0
  206. package/dist/ai/source/BbBaseSwitchGroup.md +302 -0
  207. package/dist/ai/source/BbBaseSwitchIcon.md +206 -0
  208. package/dist/ai/source/BbBaseTag.md +694 -0
  209. package/dist/ai/source/BbBaseTextInput.md +511 -0
  210. package/dist/ai/source/BbBaseTextarea.md +480 -0
  211. package/dist/ai/source/BbBaseTimePickerInput.md +1031 -0
  212. package/dist/ai/source/BbBreadcrumbs.md +815 -0
  213. package/dist/ai/source/BbButton.md +1006 -0
  214. package/dist/ai/source/BbCheckbox.md +326 -0
  215. package/dist/ai/source/BbCheckboxGroup.md +419 -0
  216. package/dist/ai/source/BbCollapsible.md +137 -0
  217. package/dist/ai/source/BbColorInput.md +322 -0
  218. package/dist/ai/source/BbColorPalette.md +371 -0
  219. package/dist/ai/source/BbConfirm.md +193 -0
  220. package/dist/ai/source/BbConfirmPortal.md +74 -0
  221. package/dist/ai/source/BbDatePicker.md +729 -0
  222. package/dist/ai/source/BbDatePickerInput.md +525 -0
  223. package/dist/ai/source/BbDialog.md +818 -0
  224. package/dist/ai/source/BbDropdown.md +2387 -0
  225. package/dist/ai/source/BbDropdownButton.md +315 -0
  226. package/dist/ai/source/BbDropdownGroup.md +1259 -0
  227. package/dist/ai/source/BbDropzone.md +864 -0
  228. package/dist/ai/source/BbForm.md +100 -0
  229. package/dist/ai/source/BbIcon.md +214 -0
  230. package/dist/ai/source/BbIndicator.md +298 -0
  231. package/dist/ai/source/BbNumberInput.md +374 -0
  232. package/dist/ai/source/BbOffCanvas.md +1266 -0
  233. package/dist/ai/source/BbPagination.md +835 -0
  234. package/dist/ai/source/BbPopover.md +860 -0
  235. package/dist/ai/source/BbProgress.md +140 -0
  236. package/dist/ai/source/BbRadio.md +303 -0
  237. package/dist/ai/source/BbRadioGroup.md +420 -0
  238. package/dist/ai/source/BbRating.md +369 -0
  239. package/dist/ai/source/BbSelect.md +688 -0
  240. package/dist/ai/source/BbSelectPopover.md +2234 -0
  241. package/dist/ai/source/BbSlider.md +378 -0
  242. package/dist/ai/source/BbSmoothHeight.md +265 -0
  243. package/dist/ai/source/BbSpinner.md +127 -0
  244. package/dist/ai/source/BbSwitch.md +175 -0
  245. package/dist/ai/source/BbSwitchGroup.md +240 -0
  246. package/dist/ai/source/BbTable.md +3433 -0
  247. package/dist/ai/source/BbTabs.md +403 -0
  248. package/dist/ai/source/BbTabsList.md +578 -0
  249. package/dist/ai/source/BbTabsPanes.md +368 -0
  250. package/dist/ai/source/BbTabsRoot.md +372 -0
  251. package/dist/ai/source/BbTag.md +390 -0
  252. package/dist/ai/source/BbTextInput.md +352 -0
  253. package/dist/ai/source/BbTextarea.md +337 -0
  254. package/dist/ai/source/BbTimePicker.md +595 -0
  255. package/dist/ai/source/BbTimePickerInput.md +376 -0
  256. package/dist/ai/source/BbToast.md +525 -0
  257. package/dist/ai/source/BbToastPortal.md +482 -0
  258. package/dist/ai/source/BbTooltip.md +522 -0
  259. package/dist/ai/source/BbTree.md +323 -0
  260. package/dist/ai/source/ChipsBox.md +201 -0
  261. package/dist/ai/source/ClearableButton.md +70 -0
  262. package/dist/ai/source/CommaBox.md +202 -0
  263. package/dist/ai/source/CommonInputWrapper.md +554 -0
  264. package/dist/ai/source/CommonPopover.md +616 -0
  265. package/dist/ai/source/ErrorIcon.md +43 -0
  266. package/dist/ai/source/FlatListBox.md +396 -0
  267. package/dist/ai/source/GroupedListBox.md +540 -0
  268. package/dist/ai/source/GuidesComponent.md +383 -0
  269. package/dist/ai/source/ListBox.md +238 -0
  270. package/dist/ai/source/OptionsContainer.md +191 -0
  271. package/dist/ai/source/WarningIcon.md +47 -0
  272. package/dist/alert-variants.d.ts +19 -0
  273. package/dist/assets/css/reset.css_inline.js +4 -0
  274. package/dist/assets/svgs/alert.svg_raw.js +4 -0
  275. package/dist/assets/svgs/calendar.svg_raw.js +4 -0
  276. package/dist/assets/svgs/check_stroke.svg_raw.js +4 -0
  277. package/dist/assets/svgs/chevron_down.svg_raw.js +4 -0
  278. package/dist/assets/svgs/chevron_right.svg_raw.js +4 -0
  279. package/dist/assets/svgs/clear.svg_raw.js +4 -0
  280. package/dist/assets/svgs/clock.svg_raw.js +4 -0
  281. package/dist/assets/svgs/error.svg_raw.js +4 -0
  282. package/dist/assets/svgs/search.svg_raw.js +4 -0
  283. package/dist/assets/svgs/sort.svg_raw.js +4 -0
  284. package/dist/assets/svgs/spinner.svg_raw.js +4 -0
  285. package/dist/assets/svgs/user.svg_raw.js +4 -0
  286. package/dist/badge-variants.d.ts +19 -0
  287. package/dist/button-variants.d.ts +21 -0
  288. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +9 -3
  289. package/dist/components/BbAccordion/BbAccordion.vue.js +6 -0
  290. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +66 -0
  291. package/dist/components/BbAccordion/types.d.ts +12 -8
  292. package/dist/components/BbAlert/BbAlert.vue.d.ts +12 -3
  293. package/dist/components/BbAlert/BbAlert.vue.js +6 -0
  294. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +65 -0
  295. package/dist/components/BbAlert/types.d.ts +56 -12
  296. package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -0
  297. package/dist/components/BbAsterisk/BbAsterisk.vue.js +6 -0
  298. package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +13 -0
  299. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -0
  300. package/dist/components/BbAvatar/BbAvatar.vue.js +6 -0
  301. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +78 -0
  302. package/dist/components/BbAvatar/types.d.ts +6 -5
  303. package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +3 -0
  304. package/dist/components/BbBadge/BadgeAppendIcon.vue.js +5 -0
  305. package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +22 -0
  306. package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +15 -0
  307. package/dist/components/BbBadge/BadgeBodyContent.vue.js +5 -0
  308. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +34 -0
  309. package/dist/components/BbBadge/BbBadge.vue.d.ts +8 -1
  310. package/dist/components/BbBadge/BbBadge.vue.js +6 -0
  311. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +83 -0
  312. package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +12 -0
  313. package/dist/components/BbBadge/BbBadgeButton.vue.js +5 -0
  314. package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +54 -0
  315. package/dist/components/BbBadge/badgeButtonContext.d.ts +27 -0
  316. package/dist/components/BbBadge/badgeButtonContext.js +5 -0
  317. package/dist/components/BbBadge/types.d.ts +61 -16
  318. package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +13 -0
  319. package/dist/components/BbBaseButton/BbBaseButton.vue.js +6 -0
  320. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +171 -0
  321. package/dist/components/BbBaseButton/RouterComponent.vue.js +5 -0
  322. package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +29 -0
  323. package/dist/components/BbBaseButton/types.d.ts +191 -0
  324. package/dist/components/BbBaseButton/types.js +33 -0
  325. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +40 -0
  326. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +6 -0
  327. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +145 -0
  328. package/dist/components/BbBaseCheckbox/types.d.ts +224 -0
  329. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +19 -0
  330. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +6 -0
  331. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
  332. package/dist/components/BbBaseCheckboxGroup/types.d.ts +257 -0
  333. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +4 -0
  334. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.js +6 -0
  335. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +43 -0
  336. package/dist/components/BbBaseCheckboxIcon/types.d.ts +47 -0
  337. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +42 -0
  338. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +6 -0
  339. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +178 -0
  340. package/dist/components/BbBaseColorInput/types.d.ts +210 -0
  341. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +13 -0
  342. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.js +6 -0
  343. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +395 -0
  344. package/dist/components/BbBaseColorPalette/types.d.ts +40 -0
  345. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +6 -0
  346. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +300 -0
  347. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +44 -0
  348. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +5 -0
  349. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +310 -0
  350. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts +5 -0
  351. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +5 -0
  352. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +63 -0
  353. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts +5 -0
  354. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +5 -0
  355. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +75 -0
  356. package/dist/components/BbBaseDatePicker/typeahead.d.ts +112 -0
  357. package/dist/components/BbBaseDatePicker/typeahead.js +37 -0
  358. package/dist/components/BbBaseDatePicker/types.d.ts +97 -0
  359. package/dist/components/BbBaseDatePicker/useDatePickerContext.d.ts +58 -0
  360. package/dist/components/BbBaseDatePicker/useDatePickerContext.js +11 -0
  361. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +30 -0
  362. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +6 -0
  363. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +716 -0
  364. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts +30 -0
  365. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +6 -0
  366. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +204 -0
  367. package/dist/components/BbBaseDatePickerInput/types.d.ts +311 -0
  368. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.d.ts +17 -0
  369. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +6 -0
  370. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +191 -0
  371. package/dist/components/BbBaseInputContainer/types.d.ts +197 -0
  372. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +52 -0
  373. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +6 -0
  374. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +215 -0
  375. package/dist/components/BbBaseNumberInput/types.d.ts +211 -0
  376. package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +33 -0
  377. package/dist/components/BbBaseRadio/BbBaseRadio.vue.js +6 -0
  378. package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +114 -0
  379. package/dist/components/BbBaseRadio/types.d.ts +179 -0
  380. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +19 -0
  381. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.js +6 -0
  382. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +177 -0
  383. package/dist/components/BbBaseRadioGroup/types.d.ts +223 -0
  384. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +4 -0
  385. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.js +6 -0
  386. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +28 -0
  387. package/dist/components/BbBaseRadioIcon/types.d.ts +41 -0
  388. package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +38 -0
  389. package/dist/components/BbBaseRating/BbBaseRating.vue.js +6 -0
  390. package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +184 -0
  391. package/dist/components/BbBaseRating/types.d.ts +168 -0
  392. package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +19 -0
  393. package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +6 -0
  394. package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +307 -0
  395. package/dist/components/BbBaseSelect/types.d.ts +297 -0
  396. package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +35 -0
  397. package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +6 -0
  398. package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +324 -0
  399. package/dist/components/BbBaseSlider/types.d.ts +200 -0
  400. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +35 -0
  401. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.js +6 -0
  402. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +146 -0
  403. package/dist/components/BbBaseSwitch/types.d.ts +10 -0
  404. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +19 -0
  405. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +6 -0
  406. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
  407. package/dist/components/BbBaseSwitchGroup/types.d.ts +8 -0
  408. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +4 -0
  409. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js +6 -0
  410. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +30 -0
  411. package/dist/components/BbBaseSwitchIcon/types.d.ts +48 -0
  412. package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +50 -0
  413. package/dist/components/BbBaseTag/BbBaseTag.vue.js +6 -0
  414. package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +266 -0
  415. package/dist/components/BbBaseTag/types.d.ts +160 -0
  416. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +45 -0
  417. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +6 -0
  418. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +200 -0
  419. package/dist/components/BbBaseTextInput/types.d.ts +209 -0
  420. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +39 -0
  421. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +6 -0
  422. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +175 -0
  423. package/dist/components/BbBaseTextarea/types.d.ts +170 -0
  424. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +27 -0
  425. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +6 -0
  426. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +522 -0
  427. package/dist/components/BbBaseTimePickerInput/types.d.ts +151 -0
  428. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +0 -1
  429. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.js +6 -0
  430. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +224 -0
  431. package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.js +47 -0
  432. package/dist/components/BbBreadcrumbs/types.d.ts +37 -22
  433. package/dist/components/BbButton/BbButton.vue.d.ts +6 -5
  434. package/dist/components/BbButton/BbButton.vue.js +6 -0
  435. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +181 -0
  436. package/dist/components/BbButton/types.d.ts +48 -47
  437. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -3
  438. package/dist/components/BbCheckbox/BbCheckbox.vue.js +6 -0
  439. package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +146 -0
  440. package/dist/components/BbCheckbox/types.d.ts +31 -10
  441. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -13
  442. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.js +6 -0
  443. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
  444. package/dist/components/BbCheckboxGroup/types.d.ts +51 -23
  445. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
  446. package/dist/components/BbCollapsible/BbCollapsible.vue.js +6 -0
  447. package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +31 -0
  448. package/dist/components/BbCollapsible/types.d.ts +13 -8
  449. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +10 -1
  450. package/dist/components/BbColorInput/BbColorInput.vue.js +6 -0
  451. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +177 -0
  452. package/dist/components/BbColorInput/types.d.ts +44 -11
  453. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +5 -8
  454. package/dist/components/BbColorPalette/BbColorPalette.vue.js +5 -0
  455. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +126 -0
  456. package/dist/components/BbColorPalette/types.d.ts +71 -52
  457. package/dist/components/BbConfirm/BbConfirm.vue.js +6 -0
  458. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +138 -0
  459. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +5 -6
  460. package/dist/components/BbConfirm/BbConfirmPortal.vue.js +5 -0
  461. package/dist/components/BbConfirm/BbConfirmPortal.vue_vue_type_script_setup_true_lang.js +19 -0
  462. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +37 -0
  463. package/dist/components/BbDatePicker/BbDatePicker.vue.js +6 -0
  464. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +319 -0
  465. package/dist/components/BbDatePicker/types.d.ts +159 -0
  466. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  467. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.js +6 -0
  468. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +179 -0
  469. package/dist/components/BbDatePickerInput/types.d.ts +134 -16
  470. package/dist/components/BbDialog/BbDialog.vue.d.ts +14 -6
  471. package/dist/components/BbDialog/BbDialog.vue.js +6 -0
  472. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +214 -0
  473. package/dist/components/BbDialog/types.d.ts +146 -1
  474. package/dist/components/BbDialog/useDialogStack.d.ts +5 -0
  475. package/dist/components/BbDialog/useDialogStack.js +20 -0
  476. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +24 -0
  477. package/dist/components/BbDropdown/AdaptiveDropdown.vue.js +6 -0
  478. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +116 -0
  479. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +14 -7
  480. package/dist/components/BbDropdown/BbDropdown.vue.js +6 -0
  481. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +561 -0
  482. package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +44 -0
  483. package/dist/components/BbDropdown/BbDropdownGroup.vue.js +5 -0
  484. package/dist/components/BbDropdown/BbDropdownGroup.vue_vue_type_script_setup_true_lang.js +36 -0
  485. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +31 -0
  486. package/dist/components/BbDropdown/BbDropdownList.vue.js +6 -0
  487. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +470 -0
  488. package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +16 -0
  489. package/dist/components/BbDropdown/DropdownPipelineResolver.vue.js +5 -0
  490. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +168 -0
  491. package/dist/components/BbDropdown/normalizeGroups.d.ts +18 -0
  492. package/dist/components/BbDropdown/normalizeGroups.js +46 -0
  493. package/dist/components/BbDropdown/types.d.ts +468 -46
  494. package/dist/components/BbDropdown/types.js +4 -0
  495. package/dist/components/BbDropdown/useDropdownContext.d.ts +89 -0
  496. package/dist/components/BbDropdown/useDropdownContext.js +9 -0
  497. package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +108 -0
  498. package/dist/components/BbDropdown/useDropdownGroupRegistry.js +5 -0
  499. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -3
  500. package/dist/components/BbDropdownButton/BbDropdownButton.vue.js +6 -0
  501. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +119 -0
  502. package/dist/components/BbDropdownButton/types.d.ts +47 -52
  503. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -4
  504. package/dist/components/BbDropzone/BbDropzone.vue.js +6 -0
  505. package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +308 -0
  506. package/dist/components/BbDropzone/types.d.ts +77 -8
  507. package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -2
  508. package/dist/components/BbIcon/BbIcon.vue.js +6 -0
  509. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +65 -0
  510. package/dist/components/BbIcon/types.d.ts +6 -19
  511. package/dist/components/BbIndicator/BbIndicator.vue.d.ts +14 -0
  512. package/dist/components/BbIndicator/BbIndicator.vue.js +6 -0
  513. package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +56 -0
  514. package/dist/components/BbIndicator/types.d.ts +49 -0
  515. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -6
  516. package/dist/components/BbNumberInput/BbNumberInput.vue.js +6 -0
  517. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +194 -0
  518. package/dist/components/BbNumberInput/types.d.ts +40 -4
  519. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +16 -10
  520. package/dist/components/BbOffCanvas/BbOffCanvas.vue.js +6 -0
  521. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +284 -0
  522. package/dist/components/BbOffCanvas/types.d.ts +71 -39
  523. package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +25 -0
  524. package/dist/components/BbOffCanvas/useOffCanvasStack.js +68 -0
  525. package/dist/components/BbPagination/BbPagination.vue.d.ts +9 -4
  526. package/dist/components/BbPagination/BbPagination.vue.js +6 -0
  527. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +244 -0
  528. package/dist/components/BbPagination/paginationFit.d.ts +38 -0
  529. package/dist/components/BbPagination/paginationFit.js +13 -0
  530. package/dist/components/BbPagination/types.d.ts +51 -16
  531. package/dist/components/BbPopover/BbPopover.vue.d.ts +16 -15
  532. package/dist/components/BbPopover/BbPopover.vue.js +6 -0
  533. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +309 -0
  534. package/dist/components/BbPopover/escapeStack.d.ts +6 -0
  535. package/dist/components/BbPopover/escapeStack.js +10 -0
  536. package/dist/components/BbPopover/types.d.ts +90 -31
  537. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -0
  538. package/dist/components/BbProgress/BbProgress.vue.js +6 -0
  539. package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +36 -0
  540. package/dist/components/BbProgress/types.d.ts +15 -1
  541. package/dist/components/BbRadio/BbRadio.vue.d.ts +5 -3
  542. package/dist/components/BbRadio/BbRadio.vue.js +6 -0
  543. package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +133 -0
  544. package/dist/components/BbRadio/types.d.ts +32 -9
  545. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -14
  546. package/dist/components/BbRadioGroup/BbRadioGroup.vue.js +6 -0
  547. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +186 -0
  548. package/dist/components/BbRadioGroup/types.d.ts +48 -22
  549. package/dist/components/BbRating/BbRating.vue.d.ts +4 -1
  550. package/dist/components/BbRating/BbRating.vue.js +6 -0
  551. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +150 -0
  552. package/dist/components/BbRating/types.d.ts +44 -10
  553. package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -11
  554. package/dist/components/BbSelect/BbSelect.vue.js +6 -0
  555. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +241 -0
  556. package/dist/components/BbSelect/types.d.ts +112 -59
  557. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +1 -10
  558. package/dist/components/BbSelectPopover/BbSelectPopover.vue.js +6 -0
  559. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +639 -0
  560. package/dist/components/BbSelectPopover/types.d.ts +197 -105
  561. package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -6
  562. package/dist/components/BbSlider/BbSlider.vue.js +6 -0
  563. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +166 -0
  564. package/dist/components/BbSlider/types.d.ts +44 -13
  565. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -1
  566. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.js +6 -0
  567. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +79 -0
  568. package/dist/components/BbSmoothHeight/types.d.ts +17 -2
  569. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
  570. package/dist/components/BbSpinner/BbSpinner.vue.js +6 -0
  571. package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +30 -0
  572. package/dist/components/BbSpinner/types.d.ts +10 -3
  573. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +5 -3
  574. package/dist/components/BbSwitch/BbSwitch.vue.js +6 -0
  575. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +142 -0
  576. package/dist/components/BbSwitch/types.d.ts +3 -1
  577. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +4 -14
  578. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.js +6 -0
  579. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
  580. package/dist/components/BbSwitchGroup/types.d.ts +3 -22
  581. package/dist/components/BbTable/BbTable.vue.d.ts +58 -31
  582. package/dist/components/BbTable/BbTable.vue.js +6 -0
  583. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +900 -0
  584. package/dist/components/BbTable/types.d.ts +213 -37
  585. package/dist/components/BbTable/utils.d.ts +9 -1
  586. package/dist/components/BbTable/utils.js +53 -0
  587. package/dist/components/BbTabs/BbTabs.vue.d.ts +20 -0
  588. package/dist/components/BbTabs/BbTabs.vue.js +6 -0
  589. package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +64 -0
  590. package/dist/components/BbTabs/BbTabsList.vue.d.ts +19 -0
  591. package/dist/components/BbTabs/BbTabsList.vue.js +6 -0
  592. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +123 -0
  593. package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +16 -0
  594. package/dist/components/BbTabs/BbTabsPanes.vue.js +6 -0
  595. package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +35 -0
  596. package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +20 -0
  597. package/dist/components/BbTabs/BbTabsRoot.vue.js +5 -0
  598. package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +55 -0
  599. package/dist/components/BbTabs/types.d.ts +264 -0
  600. package/dist/components/BbTag/BbTag.vue.d.ts +19 -6
  601. package/dist/components/BbTag/BbTag.vue.js +6 -0
  602. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +187 -0
  603. package/dist/components/BbTag/types.d.ts +55 -17
  604. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -1
  605. package/dist/components/BbTextInput/BbTextInput.vue.js +6 -0
  606. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +195 -0
  607. package/dist/components/BbTextInput/types.d.ts +31 -4
  608. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -1
  609. package/dist/components/BbTextarea/BbTextarea.vue.js +6 -0
  610. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +178 -0
  611. package/dist/components/BbTextarea/types.d.ts +33 -2
  612. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +33 -0
  613. package/dist/components/BbTimePicker/BbTimePicker.vue.js +6 -0
  614. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +244 -0
  615. package/dist/components/BbTimePicker/types.d.ts +133 -0
  616. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +25 -0
  617. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.js +6 -0
  618. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +157 -0
  619. package/dist/components/BbTimePickerInput/types.d.ts +174 -0
  620. package/dist/components/BbToast/BbToast.vue.d.ts +2 -3
  621. package/dist/components/BbToast/BbToast.vue.js +6 -0
  622. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +39 -0
  623. package/dist/components/BbToast/BbToastMessage.vue.d.ts +17 -8
  624. package/dist/components/BbToast/BbToastMessage.vue.js +5 -0
  625. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +170 -0
  626. package/dist/components/BbToast/BbToastPortal.vue.d.ts +30 -0
  627. package/dist/components/BbToast/BbToastPortal.vue.js +5 -0
  628. package/dist/components/BbToast/BbToastPortal.vue_vue_type_script_setup_true_lang.js +19 -0
  629. package/dist/components/BbToast/BbToastRegion.vue.d.ts +8 -0
  630. package/dist/components/BbToast/BbToastRegion.vue.js +5 -0
  631. package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +100 -0
  632. package/dist/components/BbToast/types.d.ts +69 -5
  633. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +10 -3
  634. package/dist/components/BbTooltip/BbTooltip.vue.js +6 -0
  635. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +160 -0
  636. package/dist/components/BbTooltip/types.d.ts +69 -11
  637. package/dist/components/BbTree/BbTree.vue.d.ts +28 -13
  638. package/dist/components/BbTree/BbTree.vue.js +6 -0
  639. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +55 -0
  640. package/dist/components/BbTree/BbTreeLevel.vue.d.ts +19 -0
  641. package/dist/components/BbTree/BbTreeLevel.vue.js +5 -0
  642. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +94 -0
  643. package/dist/components/BbTree/context.d.ts +17 -0
  644. package/dist/components/BbTree/context.js +4 -0
  645. package/dist/components/BbTree/types.d.ts +94 -41
  646. package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -1
  647. package/dist/components/ChipsBox/ChipsBox.vue.js +5 -0
  648. package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +98 -0
  649. package/dist/components/ChipsBox/types.d.ts +12 -5
  650. package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -1
  651. package/dist/components/ClearableButton/ClearableButton.vue.js +6 -0
  652. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +19 -0
  653. package/dist/components/ClearableButton/types.d.ts +7 -1
  654. package/dist/components/CloseIcon/CloseButton.vue.d.ts +5 -0
  655. package/dist/components/CloseIcon/CloseButton.vue.js +7 -0
  656. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +23 -0
  657. package/dist/components/CloseIcon/types.d.ts +2 -0
  658. package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -1
  659. package/dist/components/CommaBox/CommaBox.vue.js +6 -0
  660. package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +81 -0
  661. package/dist/components/CommaBox/types.d.ts +6 -7
  662. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.d.ts +19 -0
  663. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +6 -0
  664. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +107 -0
  665. package/dist/components/CommonInputWrapper/types.d.ts +96 -0
  666. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +9 -3
  667. package/dist/components/CommonPopover/CommonPopover.vue.js +6 -0
  668. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +160 -0
  669. package/dist/components/CommonPopover/types.d.ts +65 -16
  670. package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -0
  671. package/dist/components/ErrorIcon/ErrorIcon.vue.js +6 -0
  672. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +16 -0
  673. package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -5
  674. package/dist/components/FlatListBox/FlatListBox.vue.js +5 -0
  675. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +167 -0
  676. package/dist/components/FlatListBox/types.d.ts +1 -1
  677. package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -5
  678. package/dist/components/GroupedListBox/GroupedListBox.vue.js +5 -0
  679. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +218 -0
  680. package/dist/components/ListBox/ListBox.vue.d.ts +3 -6
  681. package/dist/components/ListBox/ListBox.vue.js +5 -0
  682. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +112 -0
  683. package/dist/components/ListBox/types.d.ts +1 -1
  684. package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -0
  685. package/dist/components/OptionsContainer/OptionsContainer.vue.js +5 -0
  686. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +52 -0
  687. package/dist/components/OptionsContainer/types.d.ts +14 -24
  688. package/dist/components/Transitions/ScaleFade.vue.d.ts +2 -2
  689. package/dist/components/Transitions/ScaleFade.vue.js +5 -0
  690. package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +47 -0
  691. package/dist/components/Transitions/Slide.vue.d.ts +15 -0
  692. package/dist/components/Transitions/Slide.vue.js +7 -0
  693. package/dist/components/Transitions/Slide.vue_vue_type_script_setup_true_lang.js +28 -0
  694. package/dist/components/WarningIcon/WarningIcon.vue.d.ts +5 -0
  695. package/dist/components/WarningIcon/WarningIcon.vue.js +6 -0
  696. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +16 -0
  697. package/dist/components/WarningIcon/types.d.ts +3 -0
  698. package/dist/composables/__testResets.d.ts +1 -0
  699. package/dist/composables/useActiveInactiveState.d.ts +4 -0
  700. package/dist/composables/useActiveInactiveState.js +21 -0
  701. package/dist/composables/useBaseOptions.d.ts +3 -3
  702. package/dist/composables/useBaseOptions.js +31 -0
  703. package/dist/composables/useBbConfig.d.ts +8 -37
  704. package/dist/composables/useBbConfig.js +5 -0
  705. package/dist/composables/useBbDropdownContext.d.ts +89 -0
  706. package/dist/composables/useBbDropdownContext.js +46 -0
  707. package/dist/composables/useBbFormContext.d.ts +90 -0
  708. package/dist/composables/useBbFormContext.js +69 -0
  709. package/dist/composables/useBbTableContext.d.ts +195 -0
  710. package/dist/composables/useBbTableContext.js +208 -0
  711. package/dist/composables/useBbTabsContext.d.ts +111 -0
  712. package/dist/composables/useBbTabsContext.js +225 -0
  713. package/dist/composables/useBreakpoint.d.ts +13 -0
  714. package/dist/composables/useBreakpoint.js +39 -0
  715. package/dist/composables/useBroadcastChannelInstance.d.ts +1 -3
  716. package/dist/composables/useBroadcastChannelInstance.js +39 -0
  717. package/dist/composables/useCancelableFunction.js +37 -0
  718. package/dist/composables/useClosingInert.d.ts +28 -0
  719. package/dist/composables/useClosingInert.js +23 -0
  720. package/dist/composables/useCoherence.js +16 -0
  721. package/dist/composables/useConfirm.d.ts +278 -68
  722. package/dist/composables/useConfirm.js +130 -0
  723. package/dist/composables/useCountdown.js +42 -0
  724. package/dist/composables/useHashedWatcher.d.ts +17 -0
  725. package/dist/composables/useHashedWatcher.js +14 -0
  726. package/dist/composables/useId.d.ts +3 -2
  727. package/dist/composables/useIndexById.js +16 -0
  728. package/dist/composables/useInertiaPage.d.ts +10 -0
  729. package/dist/composables/useInertiaPage.js +8 -0
  730. package/dist/composables/useItemText.js +17 -0
  731. package/dist/composables/useItemValue.js +9 -0
  732. package/dist/composables/useItemsGetter.d.ts +1 -1
  733. package/dist/composables/useItemsGetter.js +30 -0
  734. package/dist/composables/useListboxFocus.js +66 -0
  735. package/dist/composables/useLocale.d.ts +1 -1
  736. package/dist/composables/useLocale.js +11 -0
  737. package/dist/composables/useLogger.d.ts +1 -1
  738. package/dist/composables/useLogger.js +10 -0
  739. package/dist/composables/useMinimalQueue.d.ts +1 -1
  740. package/dist/composables/useMobile.js +7 -0
  741. package/dist/composables/useOnFalsy.d.ts +2 -0
  742. package/dist/composables/useOnFalsy.js +9 -0
  743. package/dist/composables/useOnTruthy.d.ts +7 -0
  744. package/dist/composables/useOnTruthy.js +9 -0
  745. package/dist/composables/usePrefill.d.ts +2 -1
  746. package/dist/composables/usePrefill.js +24 -0
  747. package/dist/composables/useQuery.d.ts +15 -3
  748. package/dist/composables/useQuery.js +42 -0
  749. package/dist/composables/useRoute.js +11 -0
  750. package/dist/composables/useRouter.js +8 -0
  751. package/dist/composables/useSafeArea.d.ts +51 -0
  752. package/dist/composables/useSafeArea.js +16 -0
  753. package/dist/composables/useSegmentedFields.d.ts +104 -0
  754. package/dist/composables/useSegmentedFields.js +159 -0
  755. package/dist/composables/useTableWidthContext.d.ts +5 -0
  756. package/dist/composables/useTableWidthContext.js +42 -0
  757. package/dist/composables/useToast.d.ts +40 -70
  758. package/dist/composables/useToast.js +58 -0
  759. package/dist/composables/useTopLayer.d.ts +9 -0
  760. package/dist/composables/useTopLayer.js +7 -0
  761. package/dist/composables/useUntil.js +13 -0
  762. package/dist/composables/useViewportWidth.d.ts +17 -0
  763. package/dist/composables/useViewportWidth.js +6 -0
  764. package/dist/confirm-variants.d.ts +17 -0
  765. package/dist/deprecation/ai-deprecations.json.d.ts +784 -0
  766. package/dist/deprecation/ai-deprecations.json.js +4 -0
  767. package/dist/deprecation/removedProps.d.ts +3 -0
  768. package/dist/deprecation/removedProps.js +13 -0
  769. package/dist/directives/bbColor.d.ts +65 -0
  770. package/dist/directives/bbColor.js +24 -0
  771. package/dist/directives/bbDate.d.ts +66 -0
  772. package/dist/directives/bbDate.js +24 -0
  773. package/dist/directives/bbDropdown.d.ts +15 -11
  774. package/dist/directives/bbDropdown.js +23 -0
  775. package/dist/directives/bbTime.d.ts +64 -0
  776. package/dist/directives/bbTime.js +24 -0
  777. package/dist/directives/bbTooltip.d.ts +16 -11
  778. package/dist/directives/bbTooltip.js +24 -0
  779. package/dist/directives/createPopoverDirective.js +54 -0
  780. package/dist/dropdown-item-variants.d.ts +17 -0
  781. package/dist/i18n/index.d.ts +51 -3
  782. package/dist/i18n/index.js +27 -0
  783. package/dist/i18n/locales/cs.json +115 -0
  784. package/dist/i18n/locales/da.json +115 -0
  785. package/dist/i18n/locales/de.json +115 -0
  786. package/dist/i18n/locales/el.json +115 -0
  787. package/dist/i18n/locales/en.json +115 -0
  788. package/dist/i18n/locales/es.json +115 -0
  789. package/dist/i18n/locales/fi.json +115 -0
  790. package/dist/i18n/locales/fr.json +115 -0
  791. package/dist/i18n/locales/hu.json +115 -0
  792. package/dist/i18n/locales/it.json +115 -0
  793. package/dist/i18n/locales/ja.json +115 -0
  794. package/dist/i18n/locales/ko.json +115 -0
  795. package/dist/i18n/locales/nb.json +115 -0
  796. package/dist/i18n/locales/nl.json +115 -0
  797. package/dist/i18n/locales/pl.json +115 -0
  798. package/dist/i18n/locales/pt.json +115 -0
  799. package/dist/i18n/locales/ro.json +115 -0
  800. package/dist/i18n/locales/ru.json +115 -0
  801. package/dist/i18n/locales/sv.json +115 -0
  802. package/dist/i18n/locales/tr.json +115 -0
  803. package/dist/i18n/locales/uk.json +115 -0
  804. package/dist/i18n/locales/zh-cn.json +115 -0
  805. package/dist/icons-whitelist.d.ts +8 -0
  806. package/dist/index.d.ts +96 -79
  807. package/dist/index.js +76 -82
  808. package/dist/indicator-variants.d.ts +20 -0
  809. package/dist/llms-full.txt +79703 -0
  810. package/dist/llms-medium.txt +1514 -0
  811. package/dist/llms.txt +105 -0
  812. package/dist/locale-blueprint.json +141 -0
  813. package/dist/locale-registry.d.ts +37 -0
  814. package/dist/nuxt-module.d.ts +3 -0
  815. package/dist/nuxt.js +19 -0
  816. package/dist/plugin.d.ts +4 -0
  817. package/dist/plugin.js +22 -0
  818. package/dist/reset.css +1 -0
  819. package/dist/reset.d.ts +0 -0
  820. package/dist/runtime/nuxt-plugin.d.ts +2 -0
  821. package/dist/runtime/nuxt-plugin.js +24 -0
  822. package/dist/styles.css +2 -0
  823. package/dist/styles.d.ts +0 -0
  824. package/dist/toast-variants.d.ts +20 -0
  825. package/dist/tooltip-variants.d.ts +17 -0
  826. package/dist/types/ActionButton.d.ts +32 -0
  827. package/dist/types/AlertVariant.d.ts +16 -0
  828. package/dist/types/BadgeVariant.d.ts +16 -0
  829. package/dist/types/ButtonVariant.d.ts +17 -0
  830. package/dist/types/Classes.d.ts +1 -1
  831. package/dist/types/ColumnName.d.ts +1 -1
  832. package/dist/types/CommonProps.d.ts +68 -277
  833. package/dist/types/Config.d.ts +84 -0
  834. package/dist/types/ConfirmVariant.d.ts +15 -0
  835. package/dist/types/DropdownItemVariant.d.ts +18 -0
  836. package/dist/types/Icon.d.ts +5 -7
  837. package/dist/types/IndicatorVariant.d.ts +16 -0
  838. package/dist/types/InputDirection.d.ts +15 -0
  839. package/dist/types/ItemAccessor.d.ts +21 -0
  840. package/dist/types/Placement.d.ts +6 -0
  841. package/dist/types/ResponsiveSize.d.ts +20 -0
  842. package/dist/types/SizeScale.d.ts +8 -0
  843. package/dist/types/ToastVariant.d.ts +17 -0
  844. package/dist/types/TooltipVariant.d.ts +18 -0
  845. package/dist/utilities/functions/bytesToUnit.d.ts +2 -0
  846. package/dist/utilities/functions/bytesToUnit.js +18 -0
  847. package/dist/utilities/functions/clampPrecision.js +10 -0
  848. package/dist/utilities/functions/convertDateValue.d.ts +23 -10
  849. package/dist/utilities/functions/convertDateValue.js +12 -0
  850. package/dist/utilities/functions/deburr.js +5 -0
  851. package/dist/utilities/functions/empty.js +5 -0
  852. package/dist/utilities/functions/flattenTree.d.ts +1 -1
  853. package/dist/utilities/functions/hash.js +5 -0
  854. package/dist/utilities/functions/isDateDisabled.d.ts +1 -0
  855. package/dist/utilities/functions/isDateDisabled.js +20 -0
  856. package/dist/utilities/functions/isEqual.js +5 -0
  857. package/dist/utilities/functions/isNotEmpty.js +5 -0
  858. package/dist/utilities/functions/matchAnyKey.d.ts +1 -1
  859. package/dist/utilities/functions/matchAnyKey.js +15 -0
  860. package/dist/utilities/functions/parseSize.d.ts +1 -1
  861. package/dist/utilities/functions/parseSize.js +15 -0
  862. package/dist/utilities/functions/percentage.js +11 -0
  863. package/dist/utilities/functions/pipe.d.ts +1 -1
  864. package/dist/utilities/functions/reject.d.ts +25 -0
  865. package/dist/utilities/functions/reject.js +28 -0
  866. package/dist/utilities/functions/resolveEnumProp.d.ts +19 -0
  867. package/dist/utilities/functions/resolveEnumProp.js +5 -0
  868. package/dist/utilities/functions/slotKey.d.ts +13 -0
  869. package/dist/utilities/functions/slotKey.js +4 -0
  870. package/dist/utilities/functions/sort.d.ts +2 -2
  871. package/dist/utilities/functions/sort.js +19 -0
  872. package/dist/utilities/functions/throttle.js +5 -0
  873. package/dist/utilities/functions/waitFor.d.ts +9 -2
  874. package/dist/utilities/functions/waitFor.js +14 -0
  875. package/dist/utilities/functions/warnRemovedAttrs.d.ts +11 -0
  876. package/dist/utilities/functions/warnRemovedAttrs.js +20 -0
  877. package/dist/utilities/functions/when.js +5 -0
  878. package/dist/utilities/misc/iconsInjectionKey.d.ts +15 -0
  879. package/dist/utilities/misc/iconsInjectionKey.js +4 -0
  880. package/dist/utilities/misc/transitions.d.ts +5 -0
  881. package/dist/utilities/misc/transitions.js +8 -0
  882. package/dist/utils/injectLibraryStyles.d.ts +6 -0
  883. package/dist/utils/injectLibraryStyles.js +38 -0
  884. package/dist/validated/BbCheckbox.vue.d.ts +29 -0
  885. package/dist/validated/BbCheckbox.vue.js +5 -0
  886. package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +75 -0
  887. package/dist/validated/BbCheckboxGroup.vue.d.ts +34 -0
  888. package/dist/validated/BbCheckboxGroup.vue.js +5 -0
  889. package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +82 -0
  890. package/dist/validated/BbColorInput.vue.d.ts +36 -0
  891. package/dist/validated/BbColorInput.vue.js +5 -0
  892. package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +71 -0
  893. package/dist/validated/BbDatePickerInput.vue.d.ts +41 -0
  894. package/dist/validated/BbDatePickerInput.vue.js +5 -0
  895. package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +90 -0
  896. package/dist/validated/BbDropzone.vue.d.ts +24 -0
  897. package/dist/validated/BbDropzone.vue.js +5 -0
  898. package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +45 -0
  899. package/dist/validated/BbForm.vue.d.ts +28 -0
  900. package/dist/validated/BbForm.vue.js +5 -0
  901. package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +42 -0
  902. package/dist/validated/BbNumberInput.vue.d.ts +36 -0
  903. package/dist/validated/BbNumberInput.vue.js +5 -0
  904. package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +72 -0
  905. package/dist/validated/BbRadioGroup.vue.d.ts +34 -0
  906. package/dist/validated/BbRadioGroup.vue.js +5 -0
  907. package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +78 -0
  908. package/dist/validated/BbRating.vue.d.ts +30 -0
  909. package/dist/validated/BbRating.vue.js +5 -0
  910. package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +63 -0
  911. package/dist/validated/BbSelect.vue.d.ts +46 -0
  912. package/dist/validated/BbSelect.vue.js +5 -0
  913. package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +109 -0
  914. package/dist/validated/BbSlider.vue.d.ts +36 -0
  915. package/dist/validated/BbSlider.vue.js +5 -0
  916. package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +69 -0
  917. package/dist/validated/BbSwitch.vue.d.ts +29 -0
  918. package/dist/validated/BbSwitch.vue.js +5 -0
  919. package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +75 -0
  920. package/dist/validated/BbSwitchGroup.vue.d.ts +34 -0
  921. package/dist/validated/BbSwitchGroup.vue.js +5 -0
  922. package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +82 -0
  923. package/dist/validated/BbTag.vue.d.ts +36 -0
  924. package/dist/validated/BbTag.vue.js +5 -0
  925. package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +72 -0
  926. package/dist/validated/BbTextInput.vue.d.ts +36 -0
  927. package/dist/validated/BbTextInput.vue.js +5 -0
  928. package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +72 -0
  929. package/dist/validated/BbTextarea.vue.d.ts +36 -0
  930. package/dist/validated/BbTextarea.vue.js +5 -0
  931. package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +70 -0
  932. package/dist/validated/BbTimePickerInput.vue.d.ts +37 -0
  933. package/dist/validated/BbTimePickerInput.vue.js +5 -0
  934. package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +81 -0
  935. package/dist/validated/index.d.ts +29 -0
  936. package/dist/validated/useValidatedField.d.ts +93 -0
  937. package/dist/validated/useValidatedField.js +51 -0
  938. package/dist/validated.js +21 -0
  939. package/dist/vite-plugin.d.ts +261 -0
  940. package/dist/vite.js +603 -0
  941. package/llms.txt +107 -0
  942. package/package.json +181 -60
  943. package/scripts/lib/__fixtures__/validated-manifest.json +65 -0
  944. package/scripts/lib/ensure-manifest.mjs +39 -0
  945. package/scripts/lib/eslint-plugin-autofix.node.test.mjs +109 -0
  946. package/scripts/lib/eslint-plugin-recommended.node.test.mjs +87 -0
  947. package/scripts/lib/eslint-plugin-slots.node.test.mjs +271 -0
  948. package/scripts/lib/eslint-plugin.mjs +702 -0
  949. package/scripts/lib/eslint-plugin.node.test.mjs +193 -0
  950. package/scripts/lib/html-attributes.mjs +191 -0
  951. package/scripts/lib/mcp-config.mjs +126 -0
  952. package/scripts/lib/migrate-fix.mjs +115 -0
  953. package/scripts/lib/validate-bb-markup.mjs +488 -0
  954. package/dist/ai/BaseButton.md +0 -449
  955. package/dist/ai/BaseCheckbox.md +0 -512
  956. package/dist/ai/BaseCheckboxGroup.md +0 -597
  957. package/dist/ai/BaseColorInput.md +0 -461
  958. package/dist/ai/BaseDatePicker.md +0 -739
  959. package/dist/ai/BaseDatePickerInput.md +0 -1517
  960. package/dist/ai/BaseDialog.md +0 -610
  961. package/dist/ai/BaseInputContainer.md +0 -570
  962. package/dist/ai/BaseNumberInput.md +0 -509
  963. package/dist/ai/BaseRadio.md +0 -405
  964. package/dist/ai/BaseRadioGroup.md +0 -535
  965. package/dist/ai/BaseRating.md +0 -489
  966. package/dist/ai/BaseSelect.md +0 -1742
  967. package/dist/ai/BaseSlider.md +0 -871
  968. package/dist/ai/BaseSwitch.md +0 -322
  969. package/dist/ai/BaseSwitchGroup.md +0 -298
  970. package/dist/ai/BaseTag.md +0 -623
  971. package/dist/ai/BaseTextInput.md +0 -392
  972. package/dist/ai/BaseTextarea.md +0 -398
  973. package/dist/ai/BbChip.md +0 -147
  974. package/dist/ai/BbIntersection.md +0 -120
  975. package/dist/ai/BbRatio.md +0 -61
  976. package/dist/ai/BbRows.md +0 -307
  977. package/dist/ai/BbTab.md +0 -950
  978. package/dist/ai/CommonInputInnerContainer.md +0 -414
  979. package/dist/ai/CommonInputOuterContainer.md +0 -55
  980. package/dist/components/BaseButton/BaseButton.vue.d.ts +0 -14
  981. package/dist/components/BaseButton/types.d.ts +0 -159
  982. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -39
  983. package/dist/components/BaseCheckbox/types.d.ts +0 -213
  984. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +0 -30
  985. package/dist/components/BaseCheckboxGroup/types.d.ts +0 -282
  986. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +0 -35
  987. package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +0 -13
  988. package/dist/components/BaseColorInput/types.d.ts +0 -233
  989. package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +0 -15
  990. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +0 -58
  991. package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +0 -12
  992. package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +0 -12
  993. package/dist/components/BaseDatePicker/types.d.ts +0 -100
  994. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -26
  995. package/dist/components/BaseDatePickerInput/types.d.ts +0 -206
  996. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -37
  997. package/dist/components/BaseDialog/types.d.ts +0 -180
  998. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +0 -18
  999. package/dist/components/BaseInputContainer/types.d.ts +0 -126
  1000. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +0 -46
  1001. package/dist/components/BaseNumberInput/types.d.ts +0 -191
  1002. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +0 -31
  1003. package/dist/components/BaseRadio/types.d.ts +0 -173
  1004. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +0 -30
  1005. package/dist/components/BaseRadioGroup/types.d.ts +0 -240
  1006. package/dist/components/BaseRating/BaseRating.vue.d.ts +0 -35
  1007. package/dist/components/BaseRating/types.d.ts +0 -144
  1008. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -28
  1009. package/dist/components/BaseSelect/types.d.ts +0 -470
  1010. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +0 -38
  1011. package/dist/components/BaseSlider/types.d.ts +0 -201
  1012. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +0 -34
  1013. package/dist/components/BaseSwitch/types.d.ts +0 -25
  1014. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +0 -30
  1015. package/dist/components/BaseSwitchGroup/types.d.ts +0 -8
  1016. package/dist/components/BaseTag/BaseTag.vue.d.ts +0 -37
  1017. package/dist/components/BaseTag/types.d.ts +0 -136
  1018. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +0 -33
  1019. package/dist/components/BaseTextInput/types.d.ts +0 -166
  1020. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +0 -31
  1021. package/dist/components/BaseTextarea/types.d.ts +0 -151
  1022. package/dist/components/BbChip/BbChip.vue.d.ts +0 -17
  1023. package/dist/components/BbChip/types.d.ts +0 -23
  1024. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +0 -23
  1025. package/dist/components/BbIntersection/types.d.ts +0 -36
  1026. package/dist/components/BbRatio/BbRatio.vue.d.ts +0 -14
  1027. package/dist/components/BbRatio/types.d.ts +0 -15
  1028. package/dist/components/BbRows/BbRows.vue.d.ts +0 -62
  1029. package/dist/components/BbRows/types.d.ts +0 -21
  1030. package/dist/components/BbTab/BbTab.vue.d.ts +0 -27
  1031. package/dist/components/BbTab/types.d.ts +0 -186
  1032. package/dist/components/CommonInputInnerContainer/CommonInputInnerContainer.vue.d.ts +0 -15
  1033. package/dist/components/CommonInputInnerContainer/types.d.ts +0 -47
  1034. package/dist/components/CommonInputOuterContainer/CommonInputOuterContainer.vue.d.ts +0 -11
  1035. package/dist/components/CommonInputOuterContainer/types.d.ts +0 -16
  1036. package/dist/composables/useModalsState.d.ts +0 -5
  1037. package/dist/composables/useQueue.d.ts +0 -58
  1038. package/dist/composables/useWizard.d.ts +0 -85
  1039. package/dist/i18n/en.d.ts +0 -67
  1040. package/dist/i18n/it.d.ts +0 -67
  1041. package/dist/index.css +0 -2
  1042. package/dist/index100.js +0 -6
  1043. package/dist/index101.js +0 -300
  1044. package/dist/index102.js +0 -16
  1045. package/dist/index103.js +0 -16
  1046. package/dist/index104.js +0 -27
  1047. package/dist/index109.js +0 -19
  1048. package/dist/index11.js +0 -42
  1049. package/dist/index110.js +0 -12
  1050. package/dist/index111.js +0 -19
  1051. package/dist/index112.js +0 -25
  1052. package/dist/index114.js +0 -7
  1053. package/dist/index115.js +0 -241
  1054. package/dist/index116.js +0 -5
  1055. package/dist/index117.js +0 -42
  1056. package/dist/index118.js +0 -5
  1057. package/dist/index119.js +0 -53
  1058. package/dist/index120.js +0 -5
  1059. package/dist/index121.js +0 -32
  1060. package/dist/index122.js +0 -5
  1061. package/dist/index124.js +0 -52
  1062. package/dist/index125.js +0 -5
  1063. package/dist/index126.js +0 -223
  1064. package/dist/index128.js +0 -6
  1065. package/dist/index129.js +0 -162
  1066. package/dist/index13.js +0 -92
  1067. package/dist/index130.js +0 -25
  1068. package/dist/index131.js +0 -51
  1069. package/dist/index132.js +0 -5
  1070. package/dist/index133.js +0 -607
  1071. package/dist/index135.js +0 -6
  1072. package/dist/index136.js +0 -14
  1073. package/dist/index137.js +0 -153
  1074. package/dist/index139.js +0 -6
  1075. package/dist/index14.js +0 -306
  1076. package/dist/index140.js +0 -224
  1077. package/dist/index141.js +0 -5
  1078. package/dist/index143.js +0 -128
  1079. package/dist/index145.js +0 -6
  1080. package/dist/index146.js +0 -8
  1081. package/dist/index147.js +0 -182
  1082. package/dist/index149.js +0 -6
  1083. package/dist/index15.js +0 -10
  1084. package/dist/index151.js +0 -4
  1085. package/dist/index152.js +0 -95
  1086. package/dist/index154.js +0 -6
  1087. package/dist/index155.js +0 -168
  1088. package/dist/index157.js +0 -6
  1089. package/dist/index158.js +0 -145
  1090. package/dist/index16.js +0 -59
  1091. package/dist/index160.js +0 -6
  1092. package/dist/index161.js +0 -53
  1093. package/dist/index163.js +0 -6
  1094. package/dist/index164.js +0 -16
  1095. package/dist/index166.js +0 -35
  1096. package/dist/index168.js +0 -6
  1097. package/dist/index169.js +0 -89
  1098. package/dist/index171.js +0 -6
  1099. package/dist/index172.js +0 -82
  1100. package/dist/index174.js +0 -6
  1101. package/dist/index175.js +0 -38
  1102. package/dist/index176.js +0 -461
  1103. package/dist/index177.js +0 -28
  1104. package/dist/index178.js +0 -66
  1105. package/dist/index18.js +0 -35
  1106. package/dist/index180.js +0 -162
  1107. package/dist/index181.js +0 -5
  1108. package/dist/index182.js +0 -217
  1109. package/dist/index183.js +0 -5
  1110. package/dist/index184.js +0 -112
  1111. package/dist/index185.js +0 -5
  1112. package/dist/index186.js +0 -459
  1113. package/dist/index188.js +0 -6
  1114. package/dist/index19.js +0 -4
  1115. package/dist/index192.js +0 -268
  1116. package/dist/index194.js +0 -6
  1117. package/dist/index195.js +0 -124
  1118. package/dist/index197.js +0 -6
  1119. package/dist/index198.js +0 -174
  1120. package/dist/index2.js +0 -20
  1121. package/dist/index20.js +0 -9
  1122. package/dist/index200.js +0 -6
  1123. package/dist/index201.js +0 -224
  1124. package/dist/index203.js +0 -6
  1125. package/dist/index204.js +0 -135
  1126. package/dist/index206.js +0 -6
  1127. package/dist/index207.js +0 -5
  1128. package/dist/index208.js +0 -170
  1129. package/dist/index21.js +0 -35
  1130. package/dist/index210.js +0 -6
  1131. package/dist/index211.js +0 -37
  1132. package/dist/index213.js +0 -6
  1133. package/dist/index214.js +0 -63
  1134. package/dist/index216.js +0 -6
  1135. package/dist/index217.js +0 -74
  1136. package/dist/index219.js +0 -6
  1137. package/dist/index22.js +0 -6
  1138. package/dist/index220.js +0 -65
  1139. package/dist/index222.js +0 -6
  1140. package/dist/index223.js +0 -67
  1141. package/dist/index225.js +0 -6
  1142. package/dist/index226.js +0 -41
  1143. package/dist/index228.js +0 -6
  1144. package/dist/index229.js +0 -10
  1145. package/dist/index23.js +0 -7
  1146. package/dist/index230.js +0 -22
  1147. package/dist/index232.js +0 -8
  1148. package/dist/index233.js +0 -297
  1149. package/dist/index235.js +0 -6
  1150. package/dist/index236.js +0 -47
  1151. package/dist/index237.js +0 -165
  1152. package/dist/index239.js +0 -6
  1153. package/dist/index24.js +0 -9
  1154. package/dist/index241.js +0 -159
  1155. package/dist/index243.js +0 -6
  1156. package/dist/index244.js +0 -134
  1157. package/dist/index246.js +0 -6
  1158. package/dist/index247.js +0 -167
  1159. package/dist/index249.js +0 -6
  1160. package/dist/index25.js +0 -24
  1161. package/dist/index250.js +0 -147
  1162. package/dist/index252.js +0 -6
  1163. package/dist/index253.js +0 -35
  1164. package/dist/index255.js +0 -6
  1165. package/dist/index256.js +0 -65
  1166. package/dist/index258.js +0 -6
  1167. package/dist/index259.js +0 -19
  1168. package/dist/index260.js +0 -5
  1169. package/dist/index261.js +0 -160
  1170. package/dist/index263.js +0 -6
  1171. package/dist/index264.js +0 -60
  1172. package/dist/index266.js +0 -6
  1173. package/dist/index267.js +0 -134
  1174. package/dist/index269.js +0 -6
  1175. package/dist/index27.js +0 -4
  1176. package/dist/index271.js +0 -206
  1177. package/dist/index273.js +0 -6
  1178. package/dist/index274.js +0 -85
  1179. package/dist/index275.js +0 -5
  1180. package/dist/index276.js +0 -55
  1181. package/dist/index277.js +0 -5
  1182. package/dist/index278.js +0 -164
  1183. package/dist/index28.js +0 -8
  1184. package/dist/index280.js +0 -6
  1185. package/dist/index281.js +0 -145
  1186. package/dist/index283.js +0 -6
  1187. package/dist/index284.js +0 -11
  1188. package/dist/index285.js +0 -200
  1189. package/dist/index287.js +0 -6
  1190. package/dist/index288.js +0 -241
  1191. package/dist/index29.js +0 -7
  1192. package/dist/index290.js +0 -6
  1193. package/dist/index291.js +0 -21
  1194. package/dist/index293.js +0 -6
  1195. package/dist/index294.js +0 -125
  1196. package/dist/index296.js +0 -6
  1197. package/dist/index297.js +0 -161
  1198. package/dist/index299.js +0 -6
  1199. package/dist/index30.js +0 -118
  1200. package/dist/index300.js +0 -127
  1201. package/dist/index302.js +0 -6
  1202. package/dist/index303.js +0 -20
  1203. package/dist/index305.js +0 -6
  1204. package/dist/index306.js +0 -116
  1205. package/dist/index307.js +0 -5
  1206. package/dist/index308.js +0 -507
  1207. package/dist/index31.js +0 -10
  1208. package/dist/index310.js +0 -6
  1209. package/dist/index311.js +0 -196
  1210. package/dist/index313.js +0 -6
  1211. package/dist/index314.js +0 -142
  1212. package/dist/index316.js +0 -6
  1213. package/dist/index317.js +0 -134
  1214. package/dist/index319.js +0 -6
  1215. package/dist/index32.js +0 -28
  1216. package/dist/index320.js +0 -162
  1217. package/dist/index322.js +0 -6
  1218. package/dist/index323.js +0 -319
  1219. package/dist/index325.js +0 -6
  1220. package/dist/index326.js +0 -40
  1221. package/dist/index327.js +0 -43
  1222. package/dist/index328.js +0 -665
  1223. package/dist/index33.js +0 -5
  1224. package/dist/index330.js +0 -6
  1225. package/dist/index331.js +0 -155
  1226. package/dist/index333.js +0 -6
  1227. package/dist/index334.js +0 -142
  1228. package/dist/index336.js +0 -6
  1229. package/dist/index337.js +0 -155
  1230. package/dist/index339.js +0 -6
  1231. package/dist/index34.js +0 -112
  1232. package/dist/index340.js +0 -58
  1233. package/dist/index341.js +0 -5
  1234. package/dist/index342.js +0 -20
  1235. package/dist/index344.js +0 -6
  1236. package/dist/index345.js +0 -142
  1237. package/dist/index347.js +0 -6
  1238. package/dist/index349.js +0 -109
  1239. package/dist/index351.js +0 -6
  1240. package/dist/index352.js +0 -55
  1241. package/dist/index353.js +0 -24
  1242. package/dist/index354.js +0 -23
  1243. package/dist/index355.js +0 -839
  1244. package/dist/index356.js +0 -474
  1245. package/dist/index357.js +0 -52
  1246. package/dist/index358.js +0 -7
  1247. package/dist/index36.js +0 -6
  1248. package/dist/index38.js +0 -63
  1249. package/dist/index39.js +0 -63
  1250. package/dist/index40.js +0 -9
  1251. package/dist/index42.js +0 -8
  1252. package/dist/index43.js +0 -179
  1253. package/dist/index44.js +0 -21
  1254. package/dist/index46.js +0 -385
  1255. package/dist/index48.js +0 -6
  1256. package/dist/index49.js +0 -33
  1257. package/dist/index5.js +0 -34
  1258. package/dist/index50.js +0 -12
  1259. package/dist/index51.js +0 -8
  1260. package/dist/index52.js +0 -106
  1261. package/dist/index53.js +0 -330
  1262. package/dist/index54.js +0 -97
  1263. package/dist/index55.js +0 -328
  1264. package/dist/index56.js +0 -28
  1265. package/dist/index57.js +0 -102
  1266. package/dist/index58.js +0 -157
  1267. package/dist/index6.js +0 -38
  1268. package/dist/index60.js +0 -6
  1269. package/dist/index61.js +0 -131
  1270. package/dist/index62.js +0 -5
  1271. package/dist/index65.js +0 -35
  1272. package/dist/index66.js +0 -26
  1273. package/dist/index68.js +0 -6
  1274. package/dist/index69.js +0 -54
  1275. package/dist/index7.js +0 -58
  1276. package/dist/index71.js +0 -6
  1277. package/dist/index72.js +0 -14
  1278. package/dist/index74.js +0 -6
  1279. package/dist/index75.js +0 -159
  1280. package/dist/index77.js +0 -6
  1281. package/dist/index78.js +0 -4
  1282. package/dist/index79.js +0 -4
  1283. package/dist/index80.js +0 -54
  1284. package/dist/index81.js +0 -5
  1285. package/dist/index82.js +0 -5
  1286. package/dist/index83.js +0 -141
  1287. package/dist/index85.js +0 -6
  1288. package/dist/index86.js +0 -65
  1289. package/dist/index88.js +0 -6
  1290. package/dist/index89.js +0 -30
  1291. package/dist/index9.js +0 -11
  1292. package/dist/index90.js +0 -19
  1293. package/dist/index91.js +0 -17
  1294. package/dist/index92.js +0 -9
  1295. package/dist/index93.js +0 -34
  1296. package/dist/index95.js +0 -16
  1297. package/dist/index96.js +0 -10
  1298. package/dist/index97.js +0 -18
  1299. package/dist/index98.js +0 -189
  1300. package/dist/types/VoidHtmlElements.d.ts +0 -1
  1301. package/dist/utilities/functions/add.d.ts +0 -1
  1302. package/dist/utilities/functions/booleanishToBoolean.d.ts +0 -6
  1303. package/dist/utilities/functions/capitalize.d.ts +0 -4
  1304. package/dist/utilities/functions/cloneDeep.d.ts +0 -1
  1305. package/dist/utilities/functions/debounce.d.ts +0 -1
  1306. package/dist/utilities/functions/drop.d.ts +0 -1
  1307. package/dist/utilities/functions/exceedsPrecision.d.ts +0 -1
  1308. package/dist/utilities/functions/findRight.d.ts +0 -4
  1309. package/dist/utilities/functions/findRightIndex.d.ts +0 -4
  1310. package/dist/utilities/functions/flow.d.ts +0 -1
  1311. package/dist/utilities/functions/getHueFromRGB.d.ts +0 -9
  1312. package/dist/utilities/functions/groupBy.d.ts +0 -6
  1313. package/dist/utilities/functions/gt.d.ts +0 -7
  1314. package/dist/utilities/functions/hexToRGB.d.ts +0 -7
  1315. package/dist/utilities/functions/hslToHex.d.ts +0 -1
  1316. package/dist/utilities/functions/includes.d.ts +0 -1
  1317. package/dist/utilities/functions/initial.d.ts +0 -1
  1318. package/dist/utilities/functions/isCssColor.d.ts +0 -5
  1319. package/dist/utilities/functions/lt.d.ts +0 -7
  1320. package/dist/utilities/functions/makeUrl.d.ts +0 -1
  1321. package/dist/utilities/functions/mapKeys.d.ts +0 -5
  1322. package/dist/utilities/functions/mapValues.d.ts +0 -1
  1323. package/dist/utilities/functions/matchesPropertyInsensitive.d.ts +0 -1
  1324. package/dist/utilities/functions/max.d.ts +0 -2
  1325. package/dist/utilities/functions/mean.d.ts +0 -4
  1326. package/dist/utilities/functions/merge.d.ts +0 -11
  1327. package/dist/utilities/functions/millisecondsTo.d.ts +0 -1
  1328. package/dist/utilities/functions/negate.d.ts +0 -4
  1329. package/dist/utilities/functions/normalizeItemGroups.d.ts +0 -13
  1330. package/dist/utilities/functions/omit.d.ts +0 -2
  1331. package/dist/utilities/functions/overEvery.d.ts +0 -4
  1332. package/dist/utilities/functions/pick.d.ts +0 -1
  1333. package/dist/utilities/functions/replace.d.ts +0 -1
  1334. package/dist/utilities/functions/replaceInTree.d.ts +0 -4
  1335. package/dist/utilities/functions/retry.d.ts +0 -5
  1336. package/dist/utilities/functions/roundToTheNearest.d.ts +0 -8
  1337. package/dist/utilities/functions/set.d.ts +0 -15
  1338. package/dist/utilities/functions/stub.d.ts +0 -6
  1339. package/dist/utilities/functions/transposePercent.d.ts +0 -9
  1340. package/dist/utilities/functions/tryTo.d.ts +0 -2
  1341. package/dist/utilities/functions/uniqBy.d.ts +0 -1
  1342. /package/dist/{index64.js → _virtual/_plugin-vue_export-helper.js} +0 -0
  1343. /package/dist/components/{BaseButton → BbBaseButton}/RouterComponent.vue.d.ts +0 -0
  1344. /package/dist/components/{BaseDatePicker/BaseDatePicker.vue.d.ts → BbBaseDatePicker/BbBaseDatePicker.vue.d.ts} +0 -0
  1345. /package/dist/{index165.js → composables/useArray.js} +0 -0
  1346. /package/dist/{index17.js → composables/useFrameworkDetection.js} +0 -0
  1347. /package/dist/{index12.js → composables/useId.js} +0 -0
  1348. /package/dist/{index107.js → utilities/functions/chunk.js} +0 -0
  1349. /package/dist/{index8.js → utilities/functions/clamp.js} +0 -0
  1350. /package/dist/{index150.js → utilities/functions/curry.js} +0 -0
  1351. /package/dist/{index45.js → utilities/functions/extractDomContainer.js} +0 -0
  1352. /package/dist/{index270.js → utilities/functions/findInTree.js} +0 -0
  1353. /package/dist/{index348.js → utilities/functions/flattenTree.js} +0 -0
  1354. /package/dist/{index41.js → utilities/functions/get.js} +0 -0
  1355. /package/dist/{index189.js → utilities/functions/head.js} +0 -0
  1356. /package/dist/{index108.js → utilities/functions/identity.js} +0 -0
  1357. /package/dist/{index179.js → utilities/functions/indexBy.js} +0 -0
  1358. /package/dist/{index37.js → utilities/functions/isHex.js} +0 -0
  1359. /package/dist/{index94.js → utilities/functions/isNil.js} +0 -0
  1360. /package/dist/{index26.js → utilities/functions/isNotNil.js} +0 -0
  1361. /package/dist/{index105.js → utilities/functions/last.js} +0 -0
  1362. /package/dist/{index142.js → utilities/functions/noop.js} +0 -0
  1363. /package/dist/{index231.js → utilities/functions/parseWidthString.js} +0 -0
  1364. /package/dist/{index240.js → utilities/functions/pickBy.js} +0 -0
  1365. /package/dist/{index123.js → utilities/functions/range.js} +0 -0
  1366. /package/dist/{index190.js → utilities/functions/snapToStep.js} +0 -0
  1367. /package/dist/{index191.js → utilities/functions/transpose.js} +0 -0
  1368. /package/dist/{index106.js → utilities/functions/validateDateFormat.js} +0 -0
  1369. /package/dist/{index10.js → utilities/functions/wait.js} +0 -0
@@ -1,498 +1,1268 @@
1
1
  # BbDropzone
2
2
 
3
- ## Template & Script
3
+ ## Agent Contract
4
+
5
+ - Safety level: **Consumer API**
6
+ - Group: **Inputs**
7
+ - Description: Supports drag-and-drop file input flows.
8
+ - Usage rule: Prefer this component for consumer-facing implementations.
9
+ - Implementation source (only when the contract below is not enough): [source/BbDropzone.md](./source/BbDropzone.md)
10
+
11
+ ## Usage & Guidelines
12
+
13
+ ### When to use
14
+
15
+ Reach for `BbDropzone` whenever the user hands you files: avatars, receipts,
16
+ attachments, imports, galleries. It captures files both by drag-and-drop and by
17
+ the native picker, validates them against the limits you set, and hands you back
18
+ a `File | File[] | null` through `v-model`.
19
+
20
+ - **A single hidden `<input type="file">` with no drop target and no previews?**
21
+ A bare input is enough — `BbDropzone` earns its keep when you want a drop
22
+ surface, live validation (type, size, count, duplicates), a rendered list of
23
+ what was picked, and an accessible labelled control for free.
24
+ - **It captures and validates; it does _not_ upload.** There is no request,
25
+ progress, or completion surface inside the component. Pair it with your own
26
+ request layer plus [`BbProgress`](./BbProgress.md) and `useToast` — see
27
+ _Uploading the captured files_.
28
+ - For a free-form token/tag entry (skills, recipients the user invents) that is
29
+ not about files, use [`BbTag`](./BbTag.md), not this.
30
+
31
+ ### The drop area and its slot
32
+
33
+ `BbDropzone` renders **no visible surface of its own** — the `default` slot _is_
34
+ the drop area. It renders inside the `<label>` that wraps a visually-hidden
35
+ `<input type="file">`, so a click, tap, or keyboard activation anywhere in your
36
+ slot opens the native picker, and the whole area is a single focusable, labelled
37
+ control with no extra work.
38
+
39
+ The slot scope carries five things:
40
+
41
+ - `dragging: boolean` — a file is being dragged over this zone. Style your
42
+ drag-over affordance off it. (There is a 100 ms debounce on drag-leave so the
43
+ highlight doesn't flicker as the pointer crosses child elements.)
44
+ - `focused: boolean` — the input has keyboard focus. Use it to paint a focus
45
+ ring on your custom surface, since the real input is visually hidden.
46
+ - `id: string` — the id of the interactive file input, for associating an
47
+ _external_ `<label :for="id">` elsewhere on the page. Do **not** wrap another
48
+ `<label for>` _inside_ the slot — you'd be nesting labels.
49
+ - `labelId: string` — put it on the one element whose text should be the
50
+ control's accessible name (see _Accessibility_). Optional; omit it and the
51
+ localized default names the field.
52
+ - `open: () => void` — opens the native file dialog programmatically (a no-op
53
+ while `disabled`). Wire it to your own "Browse" button.
54
+
55
+ **Drag-and-drop or click to browse**
4
56
 
5
57
  ```vue
6
58
  <template>
7
- <component :is="tag" :id="containerId" :class="classes">
8
- <label
9
- @dragenter.prevent="setDragging"
10
- @dragleave.prevent="unsetDragging"
11
- @dragover.prevent="onDragOver"
12
- @drop.prevent="onDrop"
13
- >
14
- <input
15
- :accept="acceptedMimeTypesString"
16
- :autofocus="autofocus"
17
- class="sr-only"
18
- :disabled="disabled"
19
- :multiple="multiple"
20
- type="file"
21
- @blur="onBlur"
22
- @change="onChange"
23
- @focus="onFocus"
24
- />
25
- <slot v-bind="slotAttributes"></slot>
26
- </label>
27
- <label class="bb-dropzone__submittable-label">
28
- Server files
29
- <input
30
- :id="id"
31
- ref="submittable"
32
- class="bb-dropzone__submittable-input"
33
- :disabled="disabled"
34
- :multiple="multiple"
35
- :name="name"
36
- type="file"
59
+ <BbDropzone v-model="file">
60
+ <template #default="{ dragging, focused, labelId, open }">
61
+ <div
62
+ class="drag-or-browse"
63
+ :class="{
64
+ 'drag-or-browse--dragging': dragging,
65
+ 'drag-or-browse--focused': focused,
66
+ }"
67
+ >
68
+ <BbIcon class="drag-or-browse__icon" icon="lucide:upload" size="lg" />
69
+ <!-- `labelId` goes on the headline ALONE: its text joins the input's
70
+ accessible name ("Drag a file here Select files"). Putting it on
71
+ the wrapper would drag the browse button and the filename in. -->
72
+ <p :id="labelId" class="text-sm font-medium">
73
+ {{ dragging ? 'Drop to upload' : 'Drag a file here' }}
74
+ </p>
75
+ <BbButton variant="ghost" @click="open">or browse</BbButton>
76
+ <p v-if="file" class="text-xs text-[color:var(--bb-text-muted)]">
77
+ Selected: {{ file.name }}
78
+ </p>
79
+ </div>
80
+ </template>
81
+ </BbDropzone>
82
+ </template>
83
+
84
+ <script setup lang="ts">
85
+ import { ref } from 'vue';
86
+ import { BbButton, BbDropzone, BbIcon } from 'bitboss-ui';
87
+
88
+ // Single mode: the model is File | null and each pick REPLACES it.
89
+ const file = ref<File | null>(null);
90
+ </script>
91
+
92
+ <style scoped>
93
+ /* Solid sheet hairline at rest; mark wash only while dragging. */
94
+ .drag-or-browse {
95
+ @apply flex max-w-md flex-col items-center gap-2 p-4 text-center;
96
+ background: var(--bb-panel);
97
+ border: var(--bb-border-w) solid var(--bb-border);
98
+ border-radius: var(--bb-radius);
99
+ transition:
100
+ border-color var(--bb-transition-fast) var(--bb-ease),
101
+ background-color var(--bb-transition-fast) var(--bb-ease);
102
+ }
103
+
104
+ .drag-or-browse--dragging {
105
+ background: color-mix(in oklab, var(--bb-primary) 8%, var(--bb-panel));
106
+ border-color: var(--bb-primary);
107
+ }
108
+
109
+ .drag-or-browse--focused {
110
+ box-shadow: 0 0 0 var(--bb-ring-size) var(--bb-ring);
111
+ }
112
+
113
+ .drag-or-browse__icon {
114
+ color: var(--bb-text-muted);
115
+ }
116
+ </style>
117
+ ```
118
+
119
+ You never _need_ your own button — the whole area already opens the picker — but
120
+ a visible affordance like the one above is good practice.
121
+
122
+ ### Single vs. multiple, and the model shape
123
+
124
+ `multiple` decides both the input mode and the `v-model` shape:
125
+
126
+ - **Off (default):** the model is `File | null`. Each new selection **replaces**
127
+ the previous file. Bind a `ref<File | null>(null)`.
128
+ - **On:** the model is `File[]`. New selections are **appended** to the array
129
+ (validated first). Bind a `ref<File[]>([])` — an array model needs a typed,
130
+ seeded ref, so use a companion SFC, not an inline `state.*`.
131
+
132
+ Single mode is the profile-photo shape: replace-on-select means "upload a new
133
+ photo" needs no clear-first step, and the preview is just an object URL created
134
+ from the model (revoke the stale one when it changes) handed to
135
+ [`BbAvatar`](./BbAvatar.md):
136
+
137
+ **Profile photo — single file, replace-on-select, avatar preview**
138
+
139
+ ```vue
140
+ <template>
141
+ <div class="avatar-uploader">
142
+ <div class="avatar-uploader__identity">
143
+ <BbAvatar alt="Profile photo" size="xl" :src="preview">
144
+ <BbIcon icon="lucide:user-round" />
145
+ </BbAvatar>
146
+ <div class="min-w-0 flex-1">
147
+ <p class="text-sm font-medium">Ada Moreau</p>
148
+ <p class="truncate text-xs text-[color:var(--bb-text-muted)]">
149
+ ada.moreau@acme.dev
150
+ </p>
151
+ </div>
152
+ <BbButton
153
+ v-if="photo"
154
+ aria-label="Remove photo"
155
+ icon="lucide:trash-2"
156
+ size="sm"
157
+ variant="ghost"
158
+ @click="photo = null"
37
159
  />
38
- </label>
160
+ </div>
39
161
 
40
- <span class="bb-dropzone__errors">
41
- <BbSmoothHeight tag="span">
42
- <span
43
- v-for="error in computedErrors"
44
- :key="error"
45
- class="bb-dropzone__error"
46
- >{{ error }}</span
162
+ <BbDropzone
163
+ v-model="photo"
164
+ :accept="['image/png', '.png', 'image/jpeg', '.jpg', '.jpeg']"
165
+ :errors="errors"
166
+ :max-size="2 * 1024 * 1024"
167
+ @error="onError"
168
+ >
169
+ <template #default="{ dragging, focused, labelId, open }">
170
+ <div
171
+ class="avatar-uploader__drop"
172
+ :class="{
173
+ 'avatar-uploader__drop--dragging': dragging,
174
+ 'avatar-uploader__drop--focused': focused,
175
+ }"
47
176
  >
48
- </BbSmoothHeight>
49
- </span>
50
- </component>
177
+ <BbIcon
178
+ class="avatar-uploader__icon"
179
+ icon="lucide:image-plus"
180
+ size="sm"
181
+ />
182
+ <span :id="labelId" class="text-sm">{{
183
+ dragging
184
+ ? 'Drop to set photo'
185
+ : photo
186
+ ? 'Drop a new photo to replace it'
187
+ : 'Drag a photo here'
188
+ }}</span>
189
+ <BbButton variant="ghost" @click="open">Browse</BbButton>
190
+ </div>
191
+ </template>
192
+ </BbDropzone>
193
+
194
+ <p class="avatar-uploader__hint">
195
+ PNG or JPG · up to 2 MB · square images crop best
196
+ </p>
197
+ </div>
51
198
  </template>
52
199
 
53
200
  <script setup lang="ts">
54
- import { computed, ref, watch } from 'vue';
55
- import { findInTree } from '@/utilities/functions/findInTree';
56
- import { useId } from '@/composables/useId';
57
- import BbSmoothHeight from '../BbSmoothHeight/BbSmoothHeight.vue';
58
- import type {
59
- BbDropzoneProps,
60
- BbDropzoneEvents,
61
- BbDropzoneSlots,
62
- DropZoneError,
63
- } from './types';
64
-
65
- // This is the dynamic import for mime
66
- let mime: any;
67
-
68
- const props = withDefaults(defineProps<BbDropzoneProps>(), {
69
- tag: 'div',
201
+ import { onBeforeUnmount, ref, watch } from 'vue';
202
+ import { BbAvatar, BbButton, BbDropzone, BbIcon } from 'bitboss-ui';
203
+ import type { DropZoneError } from 'bitboss-ui';
204
+
205
+ const photo = ref<File | null>(null);
206
+ const preview = ref<string>();
207
+ const errors = ref<string[]>([]);
208
+
209
+ /* Single mode: each selection REPLACES the model. Mirror that in the
210
+ object URL feeding the avatar preview, and revoke the stale one. */
211
+ watch(photo, (next) => {
212
+ if (preview.value) URL.revokeObjectURL(preview.value);
213
+ preview.value = next ? URL.createObjectURL(next) : undefined;
214
+ errors.value = [];
215
+ });
216
+
217
+ onBeforeUnmount(() => {
218
+ if (preview.value) URL.revokeObjectURL(preview.value);
70
219
  });
71
220
 
72
- const emit = defineEmits<BbDropzoneEvents>();
221
+ const onError = (error: DropZoneError) => {
222
+ errors.value = [
223
+ error.type === 'maxSize'
224
+ ? `"${error.filename}" is larger than ${error.formattedMaxSize} — pick a smaller image.`
225
+ : error.type === 'accept'
226
+ ? `"${error.filename}" is not a PNG or JPG image.`
227
+ : `"${error.filename}" could not be used.`,
228
+ ];
229
+ };
230
+ </script>
231
+
232
+ <style scoped>
233
+ .avatar-uploader {
234
+ @apply flex w-full max-w-md flex-col gap-3 rounded-[var(--bb-radius)] border p-3;
235
+ }
73
236
 
74
- defineSlots<BbDropzoneSlots>();
237
+ .avatar-uploader__identity {
238
+ @apply flex items-center gap-3;
239
+ }
75
240
 
76
- const submittable = ref<any | null>(null);
241
+ /* Solid sheet hairline at rest; mark wash only while dragging. */
242
+ .avatar-uploader__drop {
243
+ @apply flex items-center justify-center gap-2 px-3 py-2;
244
+ background: var(--bb-panel);
245
+ border: var(--bb-border-w) solid var(--bb-border);
246
+ border-radius: var(--bb-radius);
247
+ transition:
248
+ border-color var(--bb-transition-fast) var(--bb-ease),
249
+ background-color var(--bb-transition-fast) var(--bb-ease);
250
+ }
77
251
 
78
- if (props.accept) {
79
- if (!Array.isArray(props.accept)) {
80
- throw new Error('Property accept is not an array');
81
- }
252
+ .avatar-uploader__drop--dragging {
253
+ background: color-mix(in oklab, var(--bb-primary) 8%, var(--bb-panel));
254
+ border-color: var(--bb-primary);
82
255
  }
83
- if (props.multiple) {
84
- if (!Array.isArray(props.modelValue)) {
85
- throw new Error(
86
- 'Component is set to multiple but modelValue is not an array'
87
- );
88
- }
256
+
257
+ .avatar-uploader__drop--focused {
258
+ box-shadow: 0 0 0 var(--bb-ring-size) var(--bb-ring);
89
259
  }
90
260
 
91
- const hasFocus = ref(false);
92
- const onFocus = (event: FocusEvent) => {
93
- hasFocus.value = true;
94
- emit('focus', event);
261
+ .avatar-uploader__icon {
262
+ color: var(--bb-text-muted);
263
+ }
264
+
265
+ .avatar-uploader__hint {
266
+ @apply text-xs text-[color:var(--bb-text-muted)];
267
+ }
268
+ </style>
269
+ ```
270
+
271
+ Because the model only ever holds files that **passed validation**, listing the
272
+ selection — and removing from it — is just rendering the array and filtering it;
273
+ there is no separate "selected files" API. Removal is a plain
274
+ `files = files.filter(f => f !== target)`.
275
+
276
+ **Receipt uploader — multiple, limits, listing and removal**
277
+
278
+ ```vue
279
+ <template>
280
+ <div class="receipt-uploader">
281
+ <BbDropzone
282
+ v-model="receipts"
283
+ :accept="[
284
+ 'image/png',
285
+ '.png',
286
+ 'image/jpeg',
287
+ '.jpg',
288
+ '.jpeg',
289
+ 'application/pdf',
290
+ '.pdf',
291
+ ]"
292
+ :errors="errors"
293
+ :max-files="5"
294
+ :max-size="5 * 1024 * 1024"
295
+ multiple
296
+ @error="onError"
297
+ >
298
+ <template #default="{ dragging, focused, labelId, open }">
299
+ <div
300
+ class="receipt-uploader__drop"
301
+ :class="{
302
+ 'receipt-uploader__drop--dragging': dragging,
303
+ 'receipt-uploader__drop--focused': focused,
304
+ }"
305
+ >
306
+ <BbIcon
307
+ class="receipt-uploader__icon"
308
+ icon="lucide:receipt"
309
+ size="lg"
310
+ />
311
+ <p :id="labelId" class="text-sm font-medium">
312
+ {{ dragging ? 'Drop to attach' : 'Drag receipts here' }}
313
+ </p>
314
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
315
+ PNG, JPG or PDF · up to 5 files · 5 MB each
316
+ </p>
317
+ <BbButton variant="outline" @click="open">Browse files</BbButton>
318
+ </div>
319
+ </template>
320
+ </BbDropzone>
321
+
322
+ <ul v-if="receipts.length" class="receipt-uploader__list">
323
+ <li
324
+ v-for="file in receipts"
325
+ :key="fileKey(file)"
326
+ class="receipt-uploader__item"
327
+ >
328
+ <BbIcon
329
+ class="receipt-uploader__icon"
330
+ icon="lucide:file-text"
331
+ size="sm"
332
+ />
333
+ <span class="min-w-0 flex-1 truncate text-sm font-medium">{{
334
+ file.name
335
+ }}</span>
336
+ <span class="shrink-0 text-xs text-[color:var(--bb-text-muted)]">{{
337
+ formatSize(file.size)
338
+ }}</span>
339
+ <BbButton
340
+ :aria-label="`Remove ${file.name}`"
341
+ icon="lucide:x"
342
+ size="sm"
343
+ variant="ghost"
344
+ @click="remove(file)"
345
+ />
346
+ </li>
347
+ </ul>
348
+ </div>
349
+ </template>
350
+
351
+ <script setup lang="ts">
352
+ import { ref } from 'vue';
353
+ import { BbDropzone, BbButton, BbIcon } from 'bitboss-ui';
354
+ import type { DropZoneError } from 'bitboss-ui';
355
+
356
+ const receipts = ref<File[]>([]);
357
+ const errors = ref<string[]>([]);
358
+
359
+ const fileKey = (file: File) =>
360
+ `${file.name}-${file.size}-${file.lastModified}`;
361
+
362
+ const formatSize = (bytes: number) =>
363
+ bytes < 1024 * 1024
364
+ ? `${Math.max(1, Math.round(bytes / 1024))} KB`
365
+ : `${(bytes / 1024 / 1024).toFixed(1)} MB`;
366
+
367
+ /* Translate the typed DropZoneError union into a human message. */
368
+ const onError = (error: DropZoneError) => {
369
+ const message =
370
+ error.type === 'maxSize'
371
+ ? `"${error.filename}" is larger than ${error.formattedMaxSize}.`
372
+ : error.type === 'maxFiles'
373
+ ? `You can attach at most ${error.maxFiles} receipts.`
374
+ : error.type === 'accept'
375
+ ? `"${error.filename}" is not a receipt (PNG, JPG or PDF only).`
376
+ : `"${error.filename}" is already attached.`;
377
+ errors.value = [message];
95
378
  };
96
- const onBlur = (event: FocusEvent) => {
97
- hasFocus.value = false;
98
- emit('blur', event);
379
+
380
+ const remove = (file: File) => {
381
+ receipts.value = receipts.value.filter((entry) => entry !== file);
382
+ errors.value = [];
99
383
  };
384
+ </script>
100
385
 
101
- /** Allow dropzone to be submittable (this is flimsy and might break) */
102
- watch(
103
- () => props.modelValue,
104
- () => {
105
- let container = new DataTransfer();
106
- if (Array.isArray(props.modelValue)) {
107
- if (props.modelValue.length) {
108
- props.modelValue.forEach((file) => container.items.add(file));
109
- }
110
- } else {
111
- if (props.modelValue) container.items.add(props.modelValue);
112
- }
113
- if (submittable.value) {
114
- if (container.items.length) {
115
- submittable.value.files = container.files;
116
- } else {
117
- submittable.value.files = null;
118
- }
119
- }
120
- }
121
- );
386
+ <style scoped>
387
+ .receipt-uploader {
388
+ @apply flex w-full max-w-md flex-col gap-3;
389
+ }
122
390
 
123
- const acceptedMimeTypes = ref<string[]>([]);
124
- const acceptedMimeTypesString = computed(() =>
125
- acceptedMimeTypes.value.join(',')
126
- );
127
- watch(
128
- () => props.accept,
129
- async () => {
130
- if (props.accept) {
131
- let accumulated = [];
132
- for (let i = 0; i < props.accept.length; i++) {
133
- const element = props.accept[i];
134
- if (element.includes('/')) accumulated.push(element);
135
- else {
136
- if (!mime) {
137
- const mod = await import('mime');
138
- mime = mod.default;
139
- }
140
- const foundMime = mime.getType(element);
141
- if (!foundMime) {
142
- throw new Error(
143
- `Could not detect the correct mime associated with ${element}`
144
- );
145
- }
146
- accumulated.push(foundMime);
147
- }
148
- }
149
- acceptedMimeTypes.value = accumulated;
150
- }
151
- },
152
- { immediate: true }
153
- );
391
+ /* Solid sheet hairline at rest; mark wash only while dragging. */
392
+ .receipt-uploader__drop {
393
+ @apply flex flex-col items-center gap-2 p-4 text-center;
394
+ background: var(--bb-panel);
395
+ border: var(--bb-border-w) solid var(--bb-border);
396
+ border-radius: var(--bb-radius);
397
+ transition:
398
+ border-color var(--bb-transition-fast) var(--bb-ease),
399
+ background-color var(--bb-transition-fast) var(--bb-ease);
400
+ }
154
401
 
155
- /**
156
- * Component state
157
- */
158
- const id = props.id || `${useId().id.value}`;
159
- const containerId = `bb_dz_${id}`;
160
-
161
- const dragging = ref(false);
162
- // Add a timeout to prevent browser flickering
163
- let draggingTimeout: ReturnType<typeof setTimeout>;
164
-
165
- const classes = computed(() => {
166
- return {
167
- 'bb-dropzone': true,
168
- 'bb-dropzone--errors': hasErrors.value,
169
- 'bb-dropzone--dragging': dragging.value,
170
- };
171
- });
172
- const slotAttributes = computed(() => {
173
- return {
174
- dragging: dragging.value,
175
- focused: hasFocus.value,
176
- id: id,
177
- };
402
+ .receipt-uploader__drop--dragging {
403
+ background: color-mix(in oklab, var(--bb-primary) 8%, var(--bb-panel));
404
+ border-color: var(--bb-primary);
405
+ }
406
+
407
+ .receipt-uploader__drop--focused {
408
+ box-shadow: 0 0 0 var(--bb-ring-size) var(--bb-ring);
409
+ }
410
+
411
+ .receipt-uploader__icon {
412
+ color: var(--bb-text-muted);
413
+ }
414
+
415
+ .receipt-uploader__list {
416
+ @apply m-0 flex list-none flex-col gap-1.5 p-0;
417
+ }
418
+
419
+ .receipt-uploader__item {
420
+ @apply flex items-center gap-2 px-3 py-1.5;
421
+ background: var(--bb-muted);
422
+ border: var(--bb-border-w) solid var(--bb-border);
423
+ border-radius: var(--bb-radius);
424
+ }
425
+ </style>
426
+ ```
427
+
428
+ Duplicate files (identical `name`, `size`, `lastModified` and `type`) are
429
+ rejected automatically with a `uniqueness` error, so re-dropping the same
430
+ receipt never double-counts.
431
+
432
+ ### Restricting what's accepted — `accept`, `maxSize`, `maxFiles`
433
+
434
+ Constrain the input with four independent rules. Every rule is enforced on
435
+ **both** paths — the native picker _and_ drag-drop — because the browser's
436
+ `accept` attribute is only an advisory filter in the picker and does nothing for
437
+ dropped files; the component re-validates everything itself.
438
+
439
+ - **`accept: string[]`** — the type allow-list. Three grammars are supported:
440
+ - **MIME type** — `'image/png'`, `'application/pdf'`. Matched against the
441
+ file's `type`.
442
+ - **Wildcard** — `'image/*'`, `'video/*'`. Matches any file whose major type
443
+ is `image`, `video`, etc.
444
+ - **Extension** — `'.pdf'`, `'.csv'`. Matched by filename suffix
445
+ (case-insensitive `endsWith`).
446
+
447
+ A `.ext` entry is rendered **verbatim** on the native input's `accept` and is
448
+ matched **by filename**, not resolved to a MIME type — so on a drag-drop where
449
+ the OS leaves `file.type` empty, the extension rule is what still catches it.
450
+ For robustness, **pair each extension with its explicit MIME type**
451
+ (`['application/pdf', '.pdf']`): the MIME rule matches by content type, the
452
+ `.ext` rule matches by name, and together they cover both browsers that set
453
+ `file.type` and those that don't.
454
+
455
+ A **bare token** like `'pdf'` (no dot, no slash) gets that pairing built for
456
+ it: it upgrades to its extension (`.pdf`) instantly, and to the matching MIME
457
+ type (`application/pdf`, via the lazily-imported `mime` database) as soon as
458
+ the database loads at mount. A drop or pick that lands before the database
459
+ resolves is **queued and validated against the complete rule set** — never a
460
+ partial one. A token the database doesn't know keeps its extension upgrade
461
+ and logs a dev warning (use a `.ext` or `type/subtype` entry to silence it).
462
+ Explicit entries never load the database.
463
+
464
+ - **`maxSize: number`** — per-file ceiling in **bytes** (`5 * 1024 * 1024` = 5 MB).
465
+ - **`maxFiles: number`** — cap on the total selection (existing + new). Only
466
+ meaningful with `multiple`.
467
+
468
+ Anything failing a rule is **rejected before it reaches `v-model`** and surfaces
469
+ as one `@error` event per rejected file (see the next section). Validation runs
470
+ per file in order: size → duplicate → type → count.
471
+
472
+ The MIME + extension pairing matters most for formats browsers report
473
+ inconsistently — CSV is the classic case (Excel exports often carry
474
+ `application/vnd.ms-excel` or an empty `type`, so `'text/csv'` alone would
475
+ reject them; the `'.csv'` rule is what actually admits the file). A
476
+ contacts-import flow shows the pairing plus a header-row preview read straight
477
+ from the validated model:
478
+
479
+ **CSV contact import — MIME + extension pairing**
480
+
481
+ ```vue
482
+ <template>
483
+ <div class="csv-import">
484
+ <div class="csv-import__header">
485
+ <p class="text-sm font-medium">Import contacts</p>
486
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
487
+ CSV export from your previous CRM · a header row is required
488
+ </p>
489
+ </div>
490
+
491
+ <BbDropzone
492
+ v-model="csv"
493
+ :accept="['text/csv', '.csv']"
494
+ :errors="errors"
495
+ :max-size="1024 * 1024"
496
+ @error="onError"
497
+ >
498
+ <template #default="{ dragging, focused, labelId, open }">
499
+ <div
500
+ class="csv-import__drop"
501
+ :class="{
502
+ 'csv-import__drop--dragging': dragging,
503
+ 'csv-import__drop--focused': focused,
504
+ }"
505
+ >
506
+ <BbIcon
507
+ class="csv-import__icon"
508
+ icon="lucide:file-spreadsheet"
509
+ size="lg"
510
+ />
511
+ <p :id="labelId" class="text-sm font-medium">
512
+ {{ dragging ? 'Drop your CSV' : 'Drag a CSV export here' }}
513
+ </p>
514
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
515
+ .csv only · up to 1 MB
516
+ </p>
517
+ <BbButton variant="outline" @click="open">Choose file</BbButton>
518
+ </div>
519
+ </template>
520
+ </BbDropzone>
521
+
522
+ <div v-if="csv" class="csv-import__preview">
523
+ <div class="csv-import__file">
524
+ <BbIcon class="csv-import__icon" icon="lucide:file-text" size="sm" />
525
+ <span class="min-w-0 flex-1 truncate text-sm font-medium">{{
526
+ csv.name
527
+ }}</span>
528
+ <span
529
+ v-if="columns.length"
530
+ class="shrink-0 text-xs text-[color:var(--bb-text-muted)]"
531
+ >
532
+ {{ columns.length }} columns detected
533
+ </span>
534
+ </div>
535
+ <div v-if="columns.length" class="csv-import__columns">
536
+ <span
537
+ v-for="column in columns"
538
+ :key="column"
539
+ class="csv-import__column"
540
+ >
541
+ {{ column }}
542
+ </span>
543
+ </div>
544
+ <div class="csv-import__actions">
545
+ <BbButton :disabled="!columns.length" variant="primary">
546
+ Import contacts
547
+ </BbButton>
548
+ <BbButton variant="ghost" @click="csv = null">Clear</BbButton>
549
+ </div>
550
+ </div>
551
+ </div>
552
+ </template>
553
+
554
+ <script setup lang="ts">
555
+ import { ref, watch } from 'vue';
556
+ import { BbButton, BbDropzone, BbIcon } from 'bitboss-ui';
557
+ import type { DropZoneError } from 'bitboss-ui';
558
+
559
+ const csv = ref<File | null>(null);
560
+ const columns = ref<string[]>([]);
561
+ const errors = ref<string[]>([]);
562
+
563
+ /* Read the header row to preview the columns the import would map.
564
+ The model only ever holds a file that already passed accept/maxSize. */
565
+ watch(csv, async (next) => {
566
+ errors.value = [];
567
+ columns.value = [];
568
+ if (!next) return;
569
+ const text = await next.text();
570
+ columns.value = (text.split(/\r?\n/)[0] ?? '')
571
+ .split(',')
572
+ .map((column) => column.trim())
573
+ .filter(Boolean);
178
574
  });
179
575
 
180
- /**
181
- * Component handlers
182
- */
183
- const onDrop = (event: DragEvent) => {
184
- dragging.value = false;
185
-
186
- if (event.dataTransfer) {
187
- event.stopImmediatePropagation();
188
- let files;
189
- files = Array.from(event.dataTransfer.files);
190
- files = parseFiles(files);
191
- if (props.multiple) {
192
- if (Array.isArray(props.modelValue)) {
193
- emit('update:modelValue', [...props.modelValue, ...files]);
194
- }
195
- } else {
196
- files = files[0];
197
- emit('update:modelValue', files);
198
- }
199
- if (event.currentTarget instanceof HTMLLabelElement) {
200
- const innerInput = event.currentTarget.querySelector('input[type=file]');
201
- if (innerInput instanceof HTMLInputElement) {
202
- innerInput.focus();
203
- }
204
- }
205
- }
576
+ const onError = (error: DropZoneError) => {
577
+ errors.value = [
578
+ error.type === 'accept'
579
+ ? `"${error.filename}" is not a .csv file — export your contacts as CSV first.`
580
+ : error.type === 'maxSize'
581
+ ? `"${error.filename}" is larger than ${error.formattedMaxSize}. Split the export and import in batches.`
582
+ : `"${error.filename}" could not be used.`,
583
+ ];
206
584
  };
207
- const onChange = (event: Event) => {
208
- if (event.target instanceof HTMLInputElement) {
209
- if (event.target.files) {
210
- let files;
211
- files = parseFiles(Array.from(event.target.files));
212
- if (props.multiple) {
213
- if (Array.isArray(props.modelValue)) {
214
- emit('update:modelValue', [...props.modelValue, ...files]);
215
- }
216
- } else {
217
- files = files[0];
218
- emit('update:modelValue', files);
219
- }
220
- }
221
- event.target.value = '';
222
- event.target.files = null;
585
+ </script>
586
+
587
+ <style scoped>
588
+ .csv-import {
589
+ @apply flex w-full max-w-md flex-col gap-3 rounded-[var(--bb-radius)] border p-3;
590
+ }
591
+
592
+ .csv-import__header {
593
+ @apply flex flex-col gap-0.5;
594
+ }
595
+
596
+ /* Solid sheet hairline at rest; mark wash only while dragging. */
597
+ .csv-import__drop {
598
+ @apply flex flex-col items-center gap-1.5 p-4 text-center;
599
+ background: var(--bb-panel);
600
+ border: var(--bb-border-w) solid var(--bb-border);
601
+ border-radius: var(--bb-radius);
602
+ transition:
603
+ border-color var(--bb-transition-fast) var(--bb-ease),
604
+ background-color var(--bb-transition-fast) var(--bb-ease);
605
+ }
606
+
607
+ .csv-import__drop--dragging {
608
+ background: color-mix(in oklab, var(--bb-primary) 8%, var(--bb-panel));
609
+ border-color: var(--bb-primary);
610
+ }
611
+
612
+ .csv-import__drop--focused {
613
+ box-shadow: 0 0 0 var(--bb-ring-size) var(--bb-ring);
614
+ }
615
+
616
+ .csv-import__icon {
617
+ color: var(--bb-text-muted);
618
+ }
619
+
620
+ .csv-import__preview {
621
+ @apply flex flex-col gap-2;
622
+ }
623
+
624
+ .csv-import__file {
625
+ @apply flex items-center gap-2;
626
+ }
627
+
628
+ .csv-import__columns {
629
+ @apply flex flex-wrap gap-1.5;
630
+ }
631
+
632
+ .csv-import__column {
633
+ @apply px-1.5 py-0.5 text-xs;
634
+ border: var(--bb-border-w) solid var(--bb-border);
635
+ border-radius: var(--bb-radius-sm);
636
+ color: var(--bb-text-muted);
637
+ }
638
+
639
+ .csv-import__actions {
640
+ @apply flex gap-2;
641
+ }
642
+ </style>
643
+ ```
644
+
645
+ ### Rejections and how you display them
646
+
647
+ Rejects never mutate the model — instead each one emits an `@error` carrying a
648
+ typed `DropZoneError`. The union is discriminated by `type`, and every variant
649
+ carries the offending `file` and its `filename`:
650
+
651
+ | `type` | Extra payload | Fires when |
652
+ | -------------- | ---------------------------------------------------- | --------------------------------------- |
653
+ | `'maxSize'` | `formattedSize`, `formattedMaxSize` (human-readable) | a file is larger than `maxSize` |
654
+ | `'uniqueness'` | — | an identical file is already selected |
655
+ | `'accept'` | `mimeType`, `acceptedMimeTypes: string[]` | the file's type/extension isn't allowed |
656
+ | `'maxFiles'` | `maxFiles`, `totalFiles` | adding the file would exceed `maxFiles` |
657
+
658
+ The component does **not** self-populate its own error display from these — the
659
+ `errors` prop is the round-trip. Listen to `@error`, turn the typed error into a
660
+ human message, and feed it back through `errors` (a `string | string[]`), which
661
+ the component renders inside its built-in `aria-live` region and points the
662
+ input's `aria-describedby` at. Use `hasErrors`
663
+ (boolean) when you only want the error _styling_ (the `bb-dropzone--errors`
664
+ class and `aria-invalid`) driven by your own validity state — e.g. a form-level
665
+ "this field is required" from your schema — without a message string. `warnings`
666
+ is the amber counterpart of `errors`: a `string | string[]` rendered in its own
667
+ `aria-live="polite"` region (also `aria-describedby`-referenced while shown)
668
+ for a valid-but-noteworthy selection, and a
669
+ non-empty `warnings` implies the warning state just as `errors` implies the
670
+ error state. Use `hasWarning` (boolean) to force that same amber chrome without a
671
+ message. `hasErrors` takes priority when both are set (the warning messages are
672
+ then suppressed), and unlike it neither warning prop sets `aria-invalid` — a soft
673
+ "needs a second look", not a validation failure.
674
+
675
+ Because a batch drop emits one error per rejected file, decide whether to show
676
+ the last message (simplest — what the example does), accumulate them, or count
677
+ them ("3 files were too large"). The `ReceiptUploader` above shows the map from
678
+ each `DropZoneError` variant to a sentence.
679
+
680
+ The map from variant to sentence is deliberately **project-level code** — the
681
+ wording, tone and i18n belong to your app, not the library. The exhaustive
682
+ `switch` below is the whole pattern; copy it once per project and route the
683
+ string wherever you display errors (the `errors` round-trip, a `toast()`, a
684
+ custom node):
685
+
686
+ ```ts
687
+ // dropzone-errors.ts — project-level: your wording, your i18n.
688
+ import type { DropZoneError } from 'bitboss-ui';
689
+
690
+ export const formatDropzoneError = (error: DropZoneError): string => {
691
+ switch (error.type) {
692
+ case 'accept':
693
+ return `${error.filename} is not an accepted file type (accepted: ${error.acceptedMimeTypes.join(', ')}).`;
694
+ case 'maxFiles':
695
+ return `${error.filename} exceeds the maximum of ${error.maxFiles} files.`;
696
+ case 'maxSize':
697
+ return `${error.filename} is ${error.formattedSize}, over the ${error.formattedMaxSize} limit.`;
698
+ case 'uniqueness':
699
+ return `${error.filename} has already been added.`;
223
700
  }
224
701
  };
702
+ ```
225
703
 
226
- const parseFiles = (files: File[]) => {
227
- return files.filter((file, index) => {
228
- // Sizecheck
229
- if (props.maxSize) {
230
- let passing = file.size <= props.maxSize;
231
- if (!passing) {
232
- emit('error', createError.maxSize(file));
233
- return false;
234
- }
235
- }
236
- // Uniqueness check
237
- let alreadyExists = false;
238
- if (props.modelValue) {
239
- if (Array.isArray(props.modelValue)) {
240
- alreadyExists = props.modelValue.some((current) =>
241
- compareFiles(current, file)
242
- );
243
- } else {
244
- alreadyExists = compareFiles(props.modelValue, file);
245
- }
246
- }
247
- if (alreadyExists) {
248
- emit('error', createError.uniqueness(file));
249
- return false;
250
- }
251
- // Mime type check
252
- if (props.accept) {
253
- const mimePassed = acceptedMimeTypes.value.some((mime) => {
254
- let found = false;
255
- if (mime.includes('*'))
256
- found = found || mime.split('/')[0] === file.type.split('/')[0];
257
- else found = found || mime === file.type;
258
- return found;
704
+ The union is closed, so the `switch` is exhaustive — if a future version adds a
705
+ variant, TypeScript flags the missing branch here.
706
+
707
+ ### States
708
+
709
+ - **`disabled`** — disables both inputs, blanks the drag-over highlight and
710
+ focus flag, sets `cursor: not-allowed` / `pointer-events: none` on the label,
711
+ and makes `open()`, drop, and change no-ops. Disable the zone while an upload
712
+ is in flight so the selection can't change mid-transfer.
713
+ - **Error** — driven by `errors` / `hasErrors` as above.
714
+ - **Empty** — the natural initial state; render your own placeholder/hint text
715
+ in the slot. There is no built-in empty illustration.
716
+
717
+ There is no `readonly` or `loading` state — model a busy upload with `disabled`
718
+ plus a `BbProgress` bar you drive yourself.
719
+
720
+ ### Uploading the captured files
721
+
722
+ `BbDropzone` stops at "these files are valid" — driving the upload is yours.
723
+ Reflect the transfer with [`BbProgress`](./BbProgress.md) (a plain `v-model`
724
+ number), confirm the result with `useToast`, and disable the zone while the
725
+ transfer is in flight.
726
+
727
+ **Upload with BbProgress, cancel/retry and a completion toast**
728
+
729
+ ```vue
730
+ <template>
731
+ <div class="upload-progress">
732
+ <BbDropzone
733
+ v-model="file"
734
+ :accept="['image/*', '.pdf']"
735
+ :disabled="uploading"
736
+ >
737
+ <template #default="{ dragging, focused, labelId, open }">
738
+ <div
739
+ class="upload-progress__drop"
740
+ :class="{
741
+ 'upload-progress__drop--dragging': dragging,
742
+ 'upload-progress__drop--focused': focused,
743
+ }"
744
+ >
745
+ <BbIcon
746
+ class="upload-progress__icon"
747
+ icon="lucide:upload"
748
+ size="lg"
749
+ />
750
+ <p :id="labelId" class="text-sm font-medium">
751
+ {{ dragging ? 'Drop to upload' : 'Drag a document here' }}
752
+ </p>
753
+ <BbButton :disabled="uploading" variant="outline" @click="open">
754
+ Choose file
755
+ </BbButton>
756
+ </div>
757
+ </template>
758
+ </BbDropzone>
759
+
760
+ <div v-if="file" class="upload-progress__status">
761
+ <div class="upload-progress__meta">
762
+ <span class="min-w-0 truncate text-sm font-medium">{{
763
+ file.name
764
+ }}</span>
765
+ <span class="shrink-0 text-xs text-[color:var(--bb-text-muted)]">{{
766
+ statusLabel
767
+ }}</span>
768
+ </div>
769
+ <BbProgress v-model="progress" />
770
+ <div class="upload-progress__actions">
771
+ <BbButton v-if="uploading" variant="ghost" @click="cancel">
772
+ Cancel
773
+ </BbButton>
774
+ <BbButton v-else-if="!done" variant="outline" @click="startUpload">
775
+ Retry
776
+ </BbButton>
777
+ </div>
778
+ </div>
779
+ </div>
780
+ </template>
781
+
782
+ <script setup lang="ts">
783
+ import { computed, ref, watch } from 'vue';
784
+ import { BbDropzone, BbProgress, BbButton, BbIcon, useToast } from 'bitboss-ui';
785
+
786
+ const { toast } = useToast();
787
+
788
+ const file = ref<File | null>(null);
789
+ const progress = ref(0);
790
+ const uploading = ref(false);
791
+ const done = ref(false);
792
+
793
+ let timer: ReturnType<typeof setInterval> | undefined;
794
+
795
+ const statusLabel = computed(() =>
796
+ uploading.value ? `${progress.value}%` : done.value ? 'Done' : 'Cancelled'
797
+ );
798
+
799
+ /* Fake an upload: BbProgress reflects the transfer, useToast confirms the
800
+ completion. In a real app this drives off your XHR/fetch progress events,
801
+ and Cancel calls an AbortController's abort() instead of clearing a timer. */
802
+ const startUpload = () => {
803
+ const current = file.value;
804
+ if (!current) return;
805
+ clearInterval(timer);
806
+ progress.value = 0;
807
+ done.value = false;
808
+ uploading.value = true;
809
+ timer = setInterval(() => {
810
+ progress.value = Math.min(100, progress.value + 20);
811
+ if (progress.value >= 100) {
812
+ clearInterval(timer);
813
+ uploading.value = false;
814
+ done.value = true;
815
+ toast({
816
+ text: `"${current.name}" uploaded.`,
817
+ variant: 'success',
818
+ duration: 3000,
259
819
  });
260
- if (!mimePassed) {
261
- emit('error', createError.accept(file));
262
- return false;
263
- }
264
- }
265
- // Max files check
266
- if (props.maxFiles) {
267
- if (Array.isArray(props.modelValue)) {
268
- if (props.modelValue.length + index + 1 > props.maxFiles) {
269
- emit(
270
- 'error',
271
- createError.maxFiles(file, props.modelValue.length + index + 1)
272
- );
273
- return false;
274
- }
275
- }
276
820
  }
277
- return true;
278
- });
821
+ }, 250);
279
822
  };
280
823
 
281
- const onDragOver = (event: Event) => {
282
- // Find the closest dropzone in case of nested dropzones
283
- const target = event.target;
284
- if (target instanceof HTMLElement) {
285
- const closestDropzone = findInTree([target], 'parentElement', (el) =>
286
- el.classList.contains('bb-dropzone')
287
- );
288
- if (closestDropzone) {
289
- /* When dragging over this dropzone set as dragging */
290
- if (closestDropzone.id === containerId) {
291
- setDragging();
292
- /* When dragging over a nested dropzone do not highlight this dropzone */
293
- } else {
294
- unsetDragging();
295
- }
296
- }
297
- }
824
+ const cancel = () => {
825
+ clearInterval(timer);
826
+ uploading.value = false;
827
+ done.value = false;
298
828
  };
299
829
 
300
- const setDragging = () => {
301
- clearTimeout(draggingTimeout);
302
- dragging.value = true;
303
- };
830
+ /* A fresh selection restarts the transfer; clearing the file resets state. */
831
+ watch(file, (next) => {
832
+ clearInterval(timer);
833
+ progress.value = 0;
834
+ done.value = false;
835
+ uploading.value = false;
836
+ if (next) startUpload();
837
+ });
838
+ </script>
304
839
 
305
- const unsetDragging = () => {
306
- draggingTimeout = setTimeout(() => {
307
- dragging.value = false;
308
- }, 100);
309
- };
840
+ <style scoped>
841
+ .upload-progress {
842
+ @apply flex w-full max-w-md flex-col gap-3;
843
+ }
310
844
 
311
- const bytesToUnit = (bytes: number, decimals = 2) => {
312
- if (!bytes) return '0 B';
313
- const k = 1024;
314
- const dm = decimals || 0;
315
- const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
316
- const i = Math.floor(Math.log(bytes) / Math.log(k));
317
- return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
318
- };
845
+ /* Solid sheet hairline at rest; mark wash only while dragging. */
846
+ .upload-progress__drop {
847
+ @apply flex flex-col items-center gap-2 p-4 text-center;
848
+ background: var(--bb-panel);
849
+ border: var(--bb-border-w) solid var(--bb-border);
850
+ border-radius: var(--bb-radius);
851
+ transition:
852
+ border-color var(--bb-transition-fast) var(--bb-ease),
853
+ background-color var(--bb-transition-fast) var(--bb-ease);
854
+ }
319
855
 
320
- /**
321
- * Returns true if files are identical by the properties that are accessible
322
- * @param file The file to check
323
- * @param otherFile The file to check against
324
- */
325
- const compareFiles = (file: File, otherFile: File) => {
326
- const properties: (keyof File)[] = ['name', 'size', 'lastModified', 'type'];
327
- return !properties.some((key) => file[key] !== otherFile[key]);
328
- };
856
+ .upload-progress__drop--dragging {
857
+ background: color-mix(in oklab, var(--bb-primary) 8%, var(--bb-panel));
858
+ border-color: var(--bb-primary);
859
+ }
329
860
 
330
- /**
331
- * Helper that creates errors based on component properties
332
- */
333
- const createError = {
334
- maxSize: (file: File) => {
335
- // Todo update to isNil
336
- if (props.maxSize) {
337
- return {
338
- type: 'maxSize',
339
- file: file,
340
- formattedMaxSize: bytesToUnit(+props.maxSize),
341
- formattedSize: bytesToUnit(file.size),
342
- filename: file.name,
343
- } as const;
344
- } else
345
- throw new Error(
346
- 'Requested to create an error for maxSize without providing a maxSize.'
347
- );
348
- },
349
- uniqueness: (file: File) => {
350
- return {
351
- type: 'uniqueness',
352
- file: file,
353
- filename: file.name,
354
- } as const;
355
- },
356
- accept: (file: File) => {
357
- return {
358
- type: 'accept',
359
- file: file,
360
- acceptedMimeTypes: acceptedMimeTypes.value,
361
- mimeType: file.type,
362
- filename: file.name,
363
- } as const;
364
- },
365
- maxFiles: (file: File, totalFiles: number) => {
366
- return {
367
- type: 'maxFiles',
368
- file: file,
369
- maxFiles: props.maxFiles,
370
- totalFiles,
371
- filename: file.name,
372
- } as const;
373
- },
374
- };
861
+ .upload-progress__drop--focused {
862
+ box-shadow: 0 0 0 var(--bb-ring-size) var(--bb-ring);
863
+ }
375
864
 
376
- const computedErrors = computed(() => {
377
- return props.errors ? ([] as string[]).concat(props.errors) : [];
378
- });
865
+ .upload-progress__icon {
866
+ color: var(--bb-text-muted);
867
+ }
379
868
 
380
- const hasErrors = computed(
381
- () => Boolean(computedErrors.value.length) || props.hasErrors
382
- );
383
- </script>
869
+ .upload-progress__status {
870
+ @apply flex flex-col gap-2 p-3;
871
+ border: var(--bb-border-w) solid var(--bb-border);
872
+ border-radius: var(--bb-radius);
873
+ }
874
+
875
+ .upload-progress__meta {
876
+ @apply flex items-center justify-between gap-2;
877
+ }
384
878
 
385
- <style lang="postcss">
386
- @import './index.css';
879
+ .upload-progress__actions {
880
+ @apply flex justify-end gap-2;
881
+ }
387
882
  </style>
388
883
  ```
389
884
 
390
- ## Types
885
+ `useToast` needs `<BbToast />` mounted once in your app layout — without it,
886
+ toasts are enqueued but never shown. This demo fakes the transfer with a timer;
887
+ the wiring is identical against real `XHR`/`fetch` progress events. **Abort and
888
+ retry live in your request layer, not in `BbDropzone`** — the component has no
889
+ cancel/retry API. Use an `AbortController` for cancellation and re-issue the
890
+ request to retry:
391
891
 
392
892
  ```ts
393
- import type { CommonProps, NonVoidElementTag } from '@/types/CommonProps';
394
-
395
- export type DropZoneError =
396
- | {
397
- type: 'maxSize';
398
- file: File;
399
- formattedMaxSize: string;
400
- formattedSize: string;
401
- filename: string;
402
- }
403
- | { type: 'uniqueness'; file: File; filename: string }
404
- | {
405
- type: 'accept';
406
- file: File;
407
- acceptedMimeTypes: string[];
408
- mimeType: string;
409
- filename: string;
410
- }
411
- | {
412
- type: 'maxFiles';
413
- file: File;
414
- maxFiles: number | undefined;
415
- totalFiles: number;
416
- filename: string;
417
- };
418
-
419
- export type BbDropzoneProps = Pick<
420
- CommonProps,
421
- 'autofocus' | 'disabled' | 'errors' | 'hasErrors' | 'id' | 'multiple' | 'name'
422
- > & {
423
- /**
424
- * Array of mime-types or extensions to filter selectable files.
425
- */
426
- accept?: string[];
427
- /**
428
- * Maximum number of acceptable files.
429
- */
430
- maxFiles?: number;
431
- /**
432
- * Max size of the files in bytes.
433
- */
434
- maxSize?: number;
435
- /**
436
- * Used by v-model.
437
- */
438
- modelValue: any;
439
- } & NonVoidElementTag;
440
-
441
- export type BbDropzoneEvents = {
442
- /** Emitted when the file input loses focus. Forwards the original DOM `FocusEvent`. */
443
- (e: 'blur', event: FocusEvent): void;
444
- /** Emitted when a file validation error occurs (e.g. size, type, uniqueness, max count). */
445
- (e: 'error', data: DropZoneError): void;
446
- /** Emitted when the file input receives focus. Forwards the original DOM `FocusEvent`. */
447
- (e: 'focus', event: FocusEvent): void;
448
- /** Emitted when the selected files change. Payload is the new file or file array. */
449
- (e: 'update:modelValue', data: any): void;
893
+ const progress = ref(0);
894
+ let controller: AbortController | null = null;
895
+
896
+ async function upload(file: File) {
897
+ controller = new AbortController();
898
+ const body = new FormData();
899
+ body.append('file', file);
900
+ await axios.post('/uploads', body, {
901
+ signal: controller.signal,
902
+ onUploadProgress: (e) =>
903
+ (progress.value = Math.round((e.loaded / (e.total ?? 1)) * 100)),
904
+ });
905
+ }
906
+
907
+ function cancel() {
908
+ controller?.abort();
909
+ }
910
+ ```
911
+
912
+ ### Form integration
913
+
914
+ The validated files reach your submit **straight from the model** — hold the
915
+ `v-model` in your form state and assemble a `FormData` when you send. The
916
+ component also forwards the input's native `focus` / `blur` `FocusEvent`s, so a
917
+ form library can mark the field touched and run blur-time validation.
918
+
919
+ **A form that assembles a multipart payload**
920
+
921
+ ```vue
922
+ <template>
923
+ <form class="document-form" @submit.prevent="submit">
924
+ <BbTextInput
925
+ v-model="title"
926
+ compact
927
+ label="Request title"
928
+ placeholder="e.g. Q3 expense report"
929
+ />
930
+
931
+ <BbDropzone
932
+ v-model="documents"
933
+ :accept="['application/pdf', '.pdf']"
934
+ :errors="errors"
935
+ :max-files="4"
936
+ :max-size="10 * 1024 * 1024"
937
+ multiple
938
+ name="documents"
939
+ @error="onError"
940
+ >
941
+ <template #default="{ dragging, focused, labelId, open }">
942
+ <div
943
+ class="document-form__drop"
944
+ :class="{
945
+ 'document-form__drop--dragging': dragging,
946
+ 'document-form__drop--focused': focused,
947
+ }"
948
+ >
949
+ <BbIcon class="document-form__icon" icon="lucide:file-up" size="lg" />
950
+ <p :id="labelId" class="text-sm font-medium">
951
+ {{ dragging ? 'Drop to attach' : 'Attach supporting PDFs' }}
952
+ </p>
953
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
954
+ PDF only · up to 4 files · 10 MB each
955
+ </p>
956
+ <BbButton variant="outline" @click="open">Browse</BbButton>
957
+ </div>
958
+ </template>
959
+ </BbDropzone>
960
+
961
+ <ul v-if="documents.length" class="document-form__list">
962
+ <li
963
+ v-for="file in documents"
964
+ :key="fileKey(file)"
965
+ class="document-form__item"
966
+ >
967
+ <BbIcon class="document-form__icon" icon="lucide:file" size="sm" />
968
+ <span class="min-w-0 flex-1 truncate text-sm font-medium">{{
969
+ file.name
970
+ }}</span>
971
+ <BbButton
972
+ :aria-label="`Remove ${file.name}`"
973
+ icon="lucide:x"
974
+ size="sm"
975
+ variant="ghost"
976
+ @click="remove(file)"
977
+ />
978
+ </li>
979
+ </ul>
980
+
981
+ <BbButton :disabled="!documents.length || !title" type="submit">
982
+ Submit request
983
+ </BbButton>
984
+
985
+ <p v-if="submitted" class="document-form__result">
986
+ Prepared multipart POST with {{ submitted.fileCount }} file(s) under
987
+ <code>documents[]</code> plus the request title.
988
+ </p>
989
+ </form>
990
+ </template>
991
+
992
+ <script setup lang="ts">
993
+ import { ref } from 'vue';
994
+ import { BbDropzone, BbButton, BbIcon, BbTextInput } from 'bitboss-ui';
995
+ import type { DropZoneError } from 'bitboss-ui';
996
+
997
+ const title = ref('');
998
+ const documents = ref<File[]>([]);
999
+ const errors = ref<string[]>([]);
1000
+ const submitted = ref<{ field: string; fileCount: number } | null>(null);
1001
+
1002
+ const fileKey = (file: File) =>
1003
+ `${file.name}-${file.size}-${file.lastModified}`;
1004
+
1005
+ const onError = (error: DropZoneError) => {
1006
+ errors.value = [
1007
+ error.type === 'maxSize'
1008
+ ? `"${error.filename}" exceeds ${error.formattedMaxSize}.`
1009
+ : error.type === 'maxFiles'
1010
+ ? `Attach at most ${error.maxFiles} documents.`
1011
+ : error.type === 'accept'
1012
+ ? `"${error.filename}" must be a PDF.`
1013
+ : `"${error.filename}" is already attached.`,
1014
+ ];
450
1015
  };
451
1016
 
452
- /** Props exposed by the `default` slot. */
453
- export type BbDropzoneDefaultSlotProps = {
454
- /** Whether a file is currently being dragged over the drop zone. */
455
- dragging: boolean;
456
- /** Whether the file input currently has keyboard focus. */
457
- focused: boolean;
458
- /** The `id` of the underlying file input, useful for custom label association. */
459
- id: string;
1017
+ const remove = (file: File) => {
1018
+ documents.value = documents.value.filter((entry) => entry !== file);
1019
+ errors.value = [];
460
1020
  };
461
1021
 
462
- export type BbDropzoneSlots = {
463
- /**
464
- * The drop zone area content. Renders inside the `<label>` that captures drag and file input events.
465
- */
466
- default?: (props: BbDropzoneDefaultSlotProps) => any;
1022
+ /* The captured, already-validated files reach your submit straight from the
1023
+ model — assemble a FormData and hand it to your request layer. */
1024
+ const submit = () => {
1025
+ const body = new FormData();
1026
+ body.append('title', title.value);
1027
+ documents.value.forEach((file) => body.append('documents[]', file));
1028
+ submitted.value = { field: 'documents[]', fileCount: documents.value.length };
467
1029
  };
1030
+ </script>
1031
+
1032
+ <style scoped>
1033
+ .document-form {
1034
+ @apply flex w-full max-w-md flex-col gap-3;
1035
+ }
1036
+
1037
+ /* Solid sheet hairline at rest; mark wash only while dragging. */
1038
+ .document-form__drop {
1039
+ @apply flex flex-col items-center gap-2 p-4 text-center;
1040
+ background: var(--bb-panel);
1041
+ border: var(--bb-border-w) solid var(--bb-border);
1042
+ border-radius: var(--bb-radius);
1043
+ transition:
1044
+ border-color var(--bb-transition-fast) var(--bb-ease),
1045
+ background-color var(--bb-transition-fast) var(--bb-ease);
1046
+ }
1047
+
1048
+ .document-form__drop--dragging {
1049
+ background: color-mix(in oklab, var(--bb-primary) 8%, var(--bb-panel));
1050
+ border-color: var(--bb-primary);
1051
+ }
1052
+
1053
+ .document-form__drop--focused {
1054
+ box-shadow: 0 0 0 var(--bb-ring-size) var(--bb-ring);
1055
+ }
1056
+
1057
+ .document-form__icon {
1058
+ color: var(--bb-text-muted);
1059
+ }
1060
+
1061
+ .document-form__list {
1062
+ @apply m-0 flex list-none flex-col gap-1.5 p-0;
1063
+ }
1064
+
1065
+ .document-form__item {
1066
+ @apply flex items-center gap-2 px-3 py-1.5;
1067
+ background: var(--bb-muted);
1068
+ border: var(--bb-border-w) solid var(--bb-border);
1069
+ border-radius: var(--bb-radius);
1070
+ }
1071
+
1072
+ .document-form__result {
1073
+ @apply text-sm text-[color:var(--bb-text-muted)];
1074
+ }
1075
+ </style>
468
1076
  ```
469
1077
 
470
- ## Styles
1078
+ On Inertia, bind the model into a `useForm` and let it serialize the `File[]` as
1079
+ multipart automatically:
471
1080
 
472
- ```css
473
- .bb-dropzone {
474
- & > .bb-dropzone__submittable-label {
475
- display: none;
476
- }
1081
+ ```ts
1082
+ import { useForm } from '@inertiajs/vue3';
477
1083
 
478
- & > label {
479
- display: grid;
480
- }
1084
+ const form = useForm({ title: '', documents: [] as File[] });
1085
+ // <BbDropzone v-model="form.documents" multiple :accept="['application/pdf', '.pdf']" name="documents" />
1086
+ form.post('/documents'); // File[] is sent as multipart/form-data
1087
+ ```
481
1088
 
482
- &.bb-dropzone--dragging {
483
- }
1089
+ On Nuxt, build the `FormData` yourself and `$fetch` it:
484
1090
 
485
- &__errors {
486
- color: var(--bb-danger);
487
- display: grid;
488
- font-size: 14px;
489
- line-height: 18px;
490
- width: 100%;
491
- }
1091
+ ```ts
1092
+ const documents = ref<File[]>([]);
492
1093
 
493
- &__error {
494
- display: inline-block;
495
- width: 100%;
496
- }
1094
+ async function submit() {
1095
+ const body = new FormData();
1096
+ documents.value.forEach((file) => body.append('documents[]', file));
1097
+ await $fetch('/api/documents', { method: 'POST', body });
497
1098
  }
498
1099
  ```
1100
+
1101
+ There is also a lighter path for **classic server-rendered forms**: set `name`
1102
+ and the component mirrors the model into a single hidden
1103
+ `<input type="file" :name>`, so a plain
1104
+ `<form method="post" enctype="multipart/form-data">` submit posts the files
1105
+ under that name with no JS. The mirror tracks `v-model` exactly — a model
1106
+ seeded before mount, files added by drag & drop (which never touch a native
1107
+ FileList), and every later mutation all land in it; without `name` the input
1108
+ is not rendered at all, and it is never focusable, so it adds nothing to the
1109
+ tab order. Building `FormData` from the model stays the idiomatic path for
1110
+ SPA/Inertia/Nuxt flows — `name` is for genuinely no-JS forms.
1111
+
1112
+ ### Layout, `tag`, and global config
1113
+
1114
+ - **No size, `block`, or `compact` props.** The drop area is entirely your slot
1115
+ markup — size and lay it out with Tailwind utilities as any other block.
1116
+ - **`tag`** picks the wrapper element — `div` (default) or `span` when the
1117
+ surrounding markup only accepts phrasing content; it does not change behavior.
1118
+ - **`autofocus`** focuses the input on mount — reserve it for a page whose sole
1119
+ purpose is the upload; don't steal focus inside a larger form.
1120
+ - **`locale`** (plugin config) supplies the input's accessible name
1121
+ (`"Select files"`) and the hidden submittable label (`"Files to send to the
1122
+ server"`); both are translated via the library's i18n, so set `locale` rather
1123
+ than hard-coding an `aria-label`.
1124
+ - **No `adaptive` mobile-sheet behavior** — this is a native file input, so on
1125
+ mobile a tap opens the OS picker (and the camera/photo library when the
1126
+ accepted types allow it) for free. No teleport or top-layer concerns.
1127
+ - **Nested dropzones** are handled: on drag-over only the innermost
1128
+ `.bb-dropzone` under the pointer highlights, so a zone inside a zone won't both
1129
+ light up.
1130
+
1131
+ ### Works well with
1132
+
1133
+ - [`BbProgress`](./BbProgress.md) — reflect the transfer you drive; pair it with
1134
+ [`BbSpinner`](./BbSpinner.md) for the server-side processing phase you can't
1135
+ measure.
1136
+ - `useToast` (`<BbToast />`) — announce completion or a failed upload; the bar
1137
+ alone is silent.
1138
+ - [`BbButton`](./BbButton.md) — the "Browse" trigger wired to `open()`; carries
1139
+ the usual `href`/`to` nav surface for links elsewhere in the flow.
1140
+ - `useConfirm` / [`BbConfirm`](./BbConfirm.md) — gate a destructive "remove all
1141
+ attachments" before clearing the model.
1142
+ - [`BbAvatar`](./BbAvatar.md) — the natural preview target for a single-image
1143
+ profile-photo dropzone; the _Profile photo_ example wires the object-URL
1144
+ round-trip.
1145
+
1146
+ ### Gotchas & anti-patterns
1147
+
1148
+ - **`.ext` is not resolved to a MIME type.** `accept: ['.pdf']` renders `.pdf`
1149
+ verbatim on the input and matches by filename, not `application/pdf` — pair
1150
+ the extension with its explicit MIME for content-type matching. (Documented
1151
+ skipped test in `BbDropzone.test.ts`.)
1152
+ - **`errors` does not auto-fill from `@error`.** You must map the typed error to
1153
+ a message and feed it back — the display is a round-trip, not automatic.
1154
+ - **The model holds only valid files.** Don't build your own accept/size gate in
1155
+ the slot; rejects never reach `v-model`. Read the array to know what's in.
1156
+ - **Don't rebuild removal/listing** — it's `filter` over the model array; there
1157
+ is no dedicated files API to call.
1158
+ - **Don't expect upload/progress/cancel from the component** — capture only.
1159
+ Drive the request, bar, and abort yourself.
1160
+ - **Bare type tokens are shorthand, not precision.** `'png'` expands to
1161
+ `.png` + `image/png` for you, but an explicit `'image/png'` / `'.png'` pair
1162
+ says exactly what you mean, skips the `mime` database import entirely, and
1163
+ can't hit the unknown-token dev warning.
1164
+ - **Don't nest a `<label for>` inside the slot** — the drop area is already a
1165
+ label; use the `id` slot prop for an external label instead.
1166
+ - **Don't put `labelId` on the slot wrapper.** Every descendant's text is
1167
+ concatenated into the accessible name, so a wrapper drags the hints, the Browse
1168
+ button and the file list in with it. It belongs on the headline alone.
1169
+
1170
+ ### Accessibility
1171
+
1172
+ - The control is the real `<input type="file">`, visually hidden inside the
1173
+ `<label>` that is your drop area — Tab focuses it, Space/Enter opens the
1174
+ picker, with no extra work. The label carries **no** `role="button"` and no
1175
+ `aria-roledescription`: the label isn't focusable, so the role was a phantom,
1176
+ and the roledescription announced English in every locale.
1177
+
1178
+ **The naming contract.** The slot is a _region_, not a label — it holds
1179
+ drag-state copy, hints, a Browse button and often the list of picked files.
1180
+ Naming the input from that whole subtree would give it a name that repeats the
1181
+ button, grows with every file added, and changes mid-drag. So:
1182
+
1183
+ - **By default** the accessible name is the localized `dropzone.selectFiles`
1184
+ string ("Select files" / "Seleziona file"), carried on the input's
1185
+ `aria-label`. Your slot copy is not part of it.
1186
+ - **To make your visible copy the name** — which is what WCAG 2.5.3 _Label in
1187
+ Name_ asks for once the zone has a visible headline — put the `labelId` slot
1188
+ prop on the one element that carries it. The input is then `aria-labelledby`-ed
1189
+ to that element **plus** an sr-only copy of the localized instruction, in that
1190
+ order, so the computed name is e.g. `"Drag your invoices here Select files"`:
1191
+ the visible copy first (speech input matches what the user reads), and the name
1192
+ still says the control takes files.
1193
+
1194
+ ```vue
1195
+ <BbDropzone v-model="files" multiple>
1196
+ <template #default="{ labelId, open }">
1197
+ <div class="zone">
1198
+ <!-- Only this element's text joins the name. -->
1199
+ <h3 :id="labelId">Drag your invoices here</h3>
1200
+ <p>PDF or PNG · up to 10 MB</p>
1201
+ <BbButton variant="ghost" @click="open">Browse files</BbButton>
1202
+ </div>
1203
+ </template>
1204
+ </BbDropzone>
1205
+ ```
1206
+
1207
+ - **Everything inside the element you tag ends up in the name.** Put `labelId` on
1208
+ the headline, never on a wrapper that also contains the hints, the Browse
1209
+ button or the file list.
1210
+ - Leave `labelId` unused and **no `aria-labelledby` is emitted at all** — there
1211
+ is no dangling IDREF for axe's `aria-valid-attr-value` to flag.
1212
+
1213
+ - Messages passed via `errors` (and, when no errors win, `warnings`) render
1214
+ inside an `aria-live="polite"` region and are referenced from the input's
1215
+ `aria-describedby` — errors first — but only while that channel actually has
1216
+ copy, so a clean dropzone carries no `aria-describedby` at all. The input gets
1217
+ `aria-invalid="true"` in the error state — surface validation failures there rather than in a
1218
+ detached toast so assistive tech announces them in context. `disabled` sets
1219
+ `aria-disabled` accordingly.
1220
+ - Give your slot content that reads as an action ("Drag a file here", "Browse
1221
+ files") — activating anywhere in the zone opens the picker, so the visible text
1222
+ should describe what that does.
1223
+ - Icon-only controls inside your slot (e.g. a remove button) still need an
1224
+ `aria-label`; the examples label each with the file it removes.
1225
+
1226
+ ## v-model
1227
+
1228
+ - `v-model` — type: `File \| File[] \| null`
1229
+
1230
+ ## Props
1231
+
1232
+ | Prop | Type | Default | Required | Description |
1233
+ | --- | --- | --- | --- | --- |
1234
+ | `accept` | `string[] \| undefined` | | | Array of MIME types (`'image/png'`), wildcards (`'image/*'`), extensions (`'.png'`) or bare tokens (`'png'`) to filter selectable files. A bare token upgrades to its extension instantly and is enriched with its MIME type from the lazily-imp… |
1235
+ | `autofocus` | `Booleanish \| undefined` | | | Sets autofocus on page load. |
1236
+ | `disabled` | `boolean \| undefined` | | | Disables the component |
1237
+ | `errors` | `string \| string[] \| undefined` | | | Can be a string or an array of string containing the messages to display. They render in an `aria-live="polite"` region (announced when they appear) and, while the list is non-empty, are referenced FIRST from the control's `aria-describedby… |
1238
+ | `hasErrors` | `boolean \| undefined` | | | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
1239
+ | `hasWarning` | `boolean \| undefined` | | | Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority. |
1240
+ | `id` | `string \| undefined` | | | The identifier of the component. |
1241
+ | `maxFiles` | `number \| undefined` | | | Maximum number of acceptable files. |
1242
+ | `maxSize` | `number \| undefined` | | | Max size of the files in bytes. |
1243
+ | `modelValue` | `File \| File[] \| null` | | yes | Used by v-model. |
1244
+ | `multiple` | `boolean \| undefined` | | | Allows the selection of multiple items. |
1245
+ | `name` | `string \| undefined` | | | Defines the name of the input. |
1246
+ | `tag` | `LayoutTag \| undefined` | `"div"` | | Element rendered as the component's wrapper. |
1247
+ | `warnings` | `string \| string[] \| undefined` | | | Warning messages to display beneath the dropzone, in their own `aria-live` region and amber (`--bb-warn`). A string or array; a non-empty list implies the warning state. Errors suppress warnings when both are set. While displayed they are a… |
1248
+
1249
+ ## Events
1250
+
1251
+ - `blur` — `(event: "blur", event: FocusEvent): void`
1252
+ - `error` — `(event: "error", data: DropZoneError): void`
1253
+ - `focus` — `(event: "focus", event: FocusEvent): void`
1254
+ - `update:modelValue` — `(event: "update:modelValue", data: File \| File[] \| null): void`
1255
+
1256
+ ## Slots
1257
+
1258
+ - `default` — scope: `BbDropzoneDefaultSlotProps` — The drop zone area content. Renders inside the `<label>` that captures drag and file input events. It is a region, not a label: its text does not name the input unless you mark one node with the `labelId` slot prop.
1259
+
1260
+ ## Validated variant
1261
+
1262
+ Importing this component from `bitboss-ui/validated` instead of `bitboss-ui` binds it to a vee-validate field. Same props, same events, same slots — plus the ones below. Requires the `vee-validate` peer dependency and a `<BbForm>` (or `useForm()`) ancestor. Full guide: [validated-forms](./guides/validated-forms.md).
1263
+
1264
+ | Prop | Type | Description |
1265
+ | --- | --- | --- |
1266
+ | `rules` | `RuleExpression<File \| File[] \| null>` | vee-validate rules for this field. |
1267
+ | `validateOn` | `ValidateTiming[] \| undefined` | Which interactions trigger validation (see `ValidatedFieldProps.validateOn` for the timing vocabulary). |
1268
+ | `vid` | `string \| undefined` | Explicit vee-validate field name. **Usually omit it** — the name is derived automatically from the control's `label`/`legend`. Only set `vid` when that derivation wouldn't be unique (e.g. v-for rows, or array `v-model`s that share a label).… |