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
@@ -0,0 +1,1441 @@
1
+ ---
2
+ title: Wizard Form (Vue)
3
+ summary: Mailchimp-grade 4-step campaign wizard — BbBaseButton stepper with done/current/upcoming/locked states, per-step validation gating Next behind a BbAlert summary, BbSmoothHeight step swaps, the step in the URL, save-draft everywhere and a dirty route-leave guard, all through one coopting page context.
4
+ ---
5
+
6
+ # Recipe: Wizard Form (Vue)
7
+
8
+ A Mailchimp-grade "Create campaign" wizard for a **plain Vue SPA with
9
+ vue-router**: four steps (Audience → Content → Schedule → Review) behind a
10
+ custom stepper header, per-step validation gating forward progress, the
11
+ active step mirrored into the URL, save-draft everywhere, and a dirty-state
12
+ leave guard — all driven by one coopting page context so every leaf
13
+ component takes zero props beyond the id the segment peek renders.
14
+
15
+ Sibling recipes: [Nuxt](../nuxt/wizard-form.md) ·
16
+ [Inertia](../inertia/wizard-form.md).
17
+
18
+ ## Prerequisites
19
+
20
+ - **[Layout Scaffold](./layout-scaffold.md) — build it first.** This recipe
21
+ imports `PageShell` and `usePageShellContext` from your own app.
22
+ They are not package exports; the scaffold recipe is their source. Copy
23
+ those files before anything below, and do not hand-roll replacements —
24
+ the peek stack, the close semantics and the sidebar's out-of-flow
25
+ behaviour are all load-bearing here.
26
+ - `<BbConfirm />` and `<BbToast />` mounted once in the app root (`App.vue`) — never in a page.
27
+ - [App Layout](../../guides/app-layout.md) and
28
+ [Page Shell](../../guides/page-shell.md) copied into
29
+ `src/components/layout/` per their guides — the page renders inside this
30
+ chrome.
31
+
32
+ ## Key ideas
33
+
34
+ - **One coopting page context.** `provideCampaignWizard()` joins the
35
+ page-shell stack once and owns the draft, the current step, the live
36
+ validation, and every action. All seven leaves call
37
+ `useCampaignWizard()` and nothing else — the only prop on the page is
38
+ the id the segment peek renders.
39
+ - **The stepper is derived state, not navigation chrome.** A step is
40
+ reachable exactly when every step before it validates — the same
41
+ predicate `goNext()` uses — so jumping from the header can never outrun
42
+ the validation gate. Steps already passed show `done` (checkmarked),
43
+ reachable future steps stay numbered (`upcoming`), and `locked` steps
44
+ render as disabled `BbBaseButton`s.
45
+ - **Validation is computed live, surfaced on demand.** `issues`
46
+ recomputes on every keystroke, but the `BbAlert` summary and the inline
47
+ field errors appear only after a blocked Next (`attempted`), and shrink
48
+ live as the user fixes each problem.
49
+ - **The step lives in the URL, the draft lives on the server.** `?step=3`
50
+ is mirrored with `router.replace`; on refresh the saved draft is
51
+ re-fetched and the requested step is clamped to the first incomplete
52
+ one, so a shared link can never open a locked step.
53
+ - **One `BbSmoothHeight` wraps the alert + step outlet together**, so the
54
+ step swap _and_ the validation summary appearing both glide instead of
55
+ snapping. Conditional regions inside a step (the scheduled-date fields)
56
+ need no wrapper of their own — the same resize observer catches them.
57
+ - **Back and Save draft are always free; validation only guards forward.**
58
+ The page's one `variant="primary"` is the final Send/Schedule submit,
59
+ with `:loading` riding `ctx.submitting`.
60
+ - **Leaving is guarded by a snapshot compare.** `dirty` is a JSON diff
61
+ against the last saved draft; `onBeforeRouteLeave` + `useConfirm` ask
62
+ before losing changes, and both submit and discard reset the snapshot so
63
+ they never double-prompt.
64
+
65
+ ## Page anatomy
66
+
67
+ ```
68
+ CampaignWizard/
69
+ Index.vue ← assembly: PageShell slots, stepper, BbSmoothHeight outlet, footer
70
+ context.ts ← coopting page context (shell + draft + step + validation + actions)
71
+ StepperHeader.vue ← BbBaseButton steps with done/current/upcoming/locked states
72
+ AudienceStep.vue ← segment select, audience filters, live recipient estimate
73
+ ContentStep.vue ← subject/preheader, body, template picker, send-test
74
+ ScheduleStep.vue ← send-now vs scheduled, date + timezone
75
+ ReviewStep.vue ← read-only summary with per-section Edit links
76
+ WizardFooter.vue ← Back · Save draft · Next / Send with :loading
77
+ SegmentPeek.vue ← sidebar workbench for the selected segment
78
+ ```
79
+
80
+ Chrome assumed from the guides: [App Layout](../../guides/app-layout.md)
81
+ (left nav + fat footer) and [Page Shell](../../guides/page-shell.md).
82
+ Wizard archetype: no filter rail, no tabs, no table, no pagination, no bulk
83
+ bar — the work surface is the step outlet.
84
+
85
+ ## Action inventory
86
+
87
+ | # | Action | Trigger | Mechanism |
88
+ | --- | --------------------------- | -------------------------------- | -------------------------------------------------------------- |
89
+ | 1 | Advance a step (validated) | footer **Next** (secondary) | `goNext()` — blocks and raises the `BbAlert` summary on issues |
90
+ | 2 | Go back | footer **Back** (ghost) | `goBack()` — never validated |
91
+ | 3 | Jump to an unlocked step | stepper header | `goToStep()`; locked steps are disabled `BbBaseButton`s |
92
+ | 4 | Edit a section from Review | per-section **Edit** links | `goToStep()` back to that step |
93
+ | 5 | Save draft | footer ghost, on every step | `saveDraft()` → API + snapshot reset + toast |
94
+ | 6 | Send a test email | Content step ghost | `sendTest()` — validates content first, auto-loading button |
95
+ | 7 | Send / schedule campaign | Review, the page's one `primary` | `submit()` with `:loading`, whole-wizard validation |
96
+ | 8 | Discard draft | topbar, destructive | `useConfirm` → delete + navigate to `/campaigns` |
97
+ | 9 | Peek the segment | segment name (Audience & Review) | `peekSegment()` → shell stack |
98
+ | 10 | Leave with unsaved changes | any route navigation | `onBeforeRouteLeave` guard → `useConfirm` |
99
+ | 11 | Restore position on refresh | URL `?step=N` | step mirrored via `router.replace`, clamped on load |
100
+
101
+ ## The code
102
+
103
+ ### context.ts
104
+
105
+ ```ts
106
+ // CampaignWizard/context.ts
107
+ import {
108
+ computed,
109
+ inject,
110
+ provide,
111
+ reactive,
112
+ ref,
113
+ watch,
114
+ watchEffect,
115
+ type ComputedRef,
116
+ type InjectionKey,
117
+ type Ref,
118
+ } from 'vue';
119
+ import { onBeforeRouteLeave, useRoute, useRouter } from 'vue-router';
120
+ import { useConfirm, useToast } from 'bitboss-ui';
121
+ import {
122
+ usePageShellContext,
123
+ type PageShellContext,
124
+ } from '@/components/layout/usePageShellContext';
125
+ import { api } from '@/api';
126
+ import type { Campaign, Segment } from '@/types';
127
+
128
+ /**
129
+ * What the sidebar can show: the audience segment behind the campaign.
130
+ * `title` is what `PageShell`'s `#sidebar-title` slot renders — without it the
131
+ * peek opens with an empty header.
132
+ */
133
+ export type PeekItem = { type: 'segment'; id: number; title: string };
134
+
135
+ export type StepKey = 'audience' | 'content' | 'schedule' | 'review';
136
+ export type StepStatus = 'done' | 'current' | 'upcoming' | 'locked';
137
+ export type SendMode = 'now' | 'scheduled';
138
+
139
+ export const STEPS: Array<{ key: StepKey; label: string }> = [
140
+ { key: 'audience', label: 'Audience' },
141
+ { key: 'content', label: 'Content' },
142
+ { key: 'schedule', label: 'Schedule' },
143
+ { key: 'review', label: 'Review' },
144
+ ];
145
+
146
+ export interface CampaignTemplate {
147
+ id: string;
148
+ name: string;
149
+ description: string;
150
+ }
151
+
152
+ export const TEMPLATES: CampaignTemplate[] = [
153
+ {
154
+ id: 'product-update',
155
+ name: 'Product update',
156
+ description: 'Hero image, feature blocks, one CTA.',
157
+ },
158
+ {
159
+ id: 'newsletter',
160
+ name: 'Newsletter',
161
+ description: 'Multi-story digest with section dividers.',
162
+ },
163
+ {
164
+ id: 'plain-text',
165
+ name: 'Plain text',
166
+ description: 'No chrome — reads like a personal email.',
167
+ },
168
+ ];
169
+
170
+ export const TIMEZONES = [
171
+ { label: 'Rome (CET)', value: 'Europe/Rome' },
172
+ { label: 'London (GMT)', value: 'Europe/London' },
173
+ { label: 'New York (ET)', value: 'America/New_York' },
174
+ { label: 'Chicago (CT)', value: 'America/Chicago' },
175
+ { label: 'Los Angeles (PT)', value: 'America/Los_Angeles' },
176
+ { label: 'Tokyo (JST)', value: 'Asia/Tokyo' },
177
+ { label: 'Sydney (AEST)', value: 'Australia/Sydney' },
178
+ ];
179
+
180
+ export const COUNTRIES = [
181
+ { label: 'Italy', value: 'IT' },
182
+ { label: 'France', value: 'FR' },
183
+ { label: 'Germany', value: 'DE' },
184
+ { label: 'United Kingdom', value: 'GB' },
185
+ { label: 'United States', value: 'US' },
186
+ { label: 'Canada', value: 'CA' },
187
+ ];
188
+
189
+ /** Everything the four steps edit. Persisted verbatim by saveDraft/submit. */
190
+ export interface CampaignDraft {
191
+ // Audience
192
+ segmentId: number | null;
193
+ /** Empty array = every country in the segment. */
194
+ countries: string[];
195
+ /** Skip contacts already emailed in the last 7 days. */
196
+ excludeRecent: boolean;
197
+ // Content
198
+ subject: string;
199
+ preheader: string;
200
+ body: string;
201
+ templateId: string | null;
202
+ // Schedule
203
+ sendMode: SendMode;
204
+ /** ISO string from BbDatePickerInput; only meaningful when scheduled. */
205
+ sendAt: string | null;
206
+ timezone: string;
207
+ }
208
+
209
+ export interface StepIssue {
210
+ /** Draft field the issue belongs to — leaves match on it for inline errors. */
211
+ field: string;
212
+ message: string;
213
+ }
214
+
215
+ export interface CampaignWizardContext {
216
+ // -- Coopted contexts ------------------------------------------------------
217
+ shell: PageShellContext<PeekItem>;
218
+ // -- Wizard state ----------------------------------------------------------
219
+ loading: Ref<boolean>;
220
+ campaign: Ref<Campaign | null>;
221
+ draft: CampaignDraft;
222
+ step: Ref<StepKey>;
223
+ dirty: ComputedRef<boolean>;
224
+ lastSavedAt: Ref<string | null>;
225
+ submitting: Ref<boolean>;
226
+ // -- Validation ------------------------------------------------------------
227
+ issues: ComputedRef<Record<StepKey, StepIssue[]>>;
228
+ /** Steps whose Next was blocked at least once — only they show errors. */
229
+ attempted: Record<StepKey, boolean>;
230
+ stepStatus: (key: StepKey) => StepStatus;
231
+ fieldErrors: (step: StepKey, field: string) => string[];
232
+ // -- Audience intel --------------------------------------------------------
233
+ selectedSegment: Ref<Segment | null>;
234
+ estimatedRecipients: Ref<number | null>;
235
+ // -- Peek grammar ----------------------------------------------------------
236
+ peekSegment: () => void;
237
+ // -- Actions (complete: API + state + toast) --------------------------------
238
+ goToStep: (key: StepKey) => void;
239
+ goBack: () => void;
240
+ goNext: () => void;
241
+ saveDraft: () => Promise<void>;
242
+ sendTest: () => Promise<void>;
243
+ submit: () => Promise<void>;
244
+ discardDraft: () => Promise<void>;
245
+ }
246
+
247
+ const key: InjectionKey<CampaignWizardContext> = Symbol('campaign-wizard');
248
+
249
+ export function provideCampaignWizard(): CampaignWizardContext {
250
+ const { toast } = useToast();
251
+ const { confirm } = useConfirm();
252
+ const route = useRoute();
253
+ const router = useRouter();
254
+
255
+ // -- Coopt the specific contexts: once, here, for the whole page. ----------
256
+ const shell = usePageShellContext<PeekItem>();
257
+
258
+ // -- Wizard state -----------------------------------------------------------
259
+ // Route: `{ path: '/campaigns/:id/edit', component: … }` — the param name
260
+ // here must match the one your route declares.
261
+ const campaignId = Number(route.params.id);
262
+ const campaign = ref<Campaign | null>(null);
263
+ const loading = ref(true);
264
+
265
+ const draft = reactive<CampaignDraft>({
266
+ segmentId: null,
267
+ countries: [],
268
+ excludeRecent: true,
269
+ subject: '',
270
+ preheader: '',
271
+ body: '',
272
+ templateId: null,
273
+ sendMode: 'now',
274
+ sendAt: null,
275
+ timezone: 'Europe/Rome',
276
+ });
277
+
278
+ // -- Validation ---------------------------------------------------------------
279
+ // Live on every keystroke; SURFACED only per `attempted` (set when a Next
280
+ // or submit is blocked), so untouched steps never open covered in red.
281
+ const issues = computed<Record<StepKey, StepIssue[]>>(() => {
282
+ const audience: StepIssue[] = [];
283
+ if (draft.segmentId === null)
284
+ audience.push({
285
+ field: 'segmentId',
286
+ message: 'Choose the segment this campaign goes to.',
287
+ });
288
+
289
+ const content: StepIssue[] = [];
290
+ if (!draft.subject.trim())
291
+ content.push({ field: 'subject', message: 'Write a subject line.' });
292
+ else if (draft.subject.length > 150)
293
+ content.push({
294
+ field: 'subject',
295
+ message: 'Keep the subject under 150 characters.',
296
+ });
297
+ if (!draft.body.trim())
298
+ content.push({
299
+ field: 'body',
300
+ message: 'The email body cannot be empty.',
301
+ });
302
+ if (draft.templateId === null)
303
+ content.push({ field: 'templateId', message: 'Pick a template.' });
304
+
305
+ const schedule: StepIssue[] = [];
306
+ if (draft.sendMode === 'scheduled') {
307
+ if (!draft.sendAt)
308
+ schedule.push({ field: 'sendAt', message: 'Pick a send date.' });
309
+ if (!draft.timezone)
310
+ schedule.push({ field: 'timezone', message: 'Pick a timezone.' });
311
+ }
312
+
313
+ return { audience, content, schedule, review: [] };
314
+ });
315
+
316
+ const attempted = reactive<Record<StepKey, boolean>>({
317
+ audience: false,
318
+ content: false,
319
+ schedule: false,
320
+ review: false,
321
+ });
322
+
323
+ const fieldErrors = (stepKey: StepKey, field: string): string[] =>
324
+ attempted[stepKey]
325
+ ? issues.value[stepKey]
326
+ .filter((issue) => issue.field === field)
327
+ .map((issue) => issue.message)
328
+ : [];
329
+
330
+ // -- Step machine ---------------------------------------------------------------
331
+ const step = ref<StepKey>('audience');
332
+
333
+ const indexOf = (stepKey: StepKey) =>
334
+ STEPS.findIndex((item) => item.key === stepKey);
335
+
336
+ // The single gating predicate: a step is reachable when every step
337
+ // before it validates. Next, the stepper, and submit all derive from it.
338
+ const unlocked = (stepKey: StepKey) =>
339
+ STEPS.slice(0, indexOf(stepKey)).every(
340
+ (item) => issues.value[item.key].length === 0
341
+ );
342
+
343
+ const stepStatus = (stepKey: StepKey): StepStatus => {
344
+ if (stepKey === step.value) return 'current';
345
+ // Only steps already passed count as done — unlocked future steps stay
346
+ // numbered (upcoming), not checkmarked.
347
+ if (indexOf(stepKey) < indexOf(step.value)) return 'done';
348
+ return unlocked(stepKey) ? 'upcoming' : 'locked';
349
+ };
350
+
351
+ const firstIncompleteStep = (): StepKey =>
352
+ STEPS.find((item) => issues.value[item.key].length > 0)?.key ?? 'review';
353
+
354
+ const goToStep = (stepKey: StepKey) => {
355
+ if (stepKey !== step.value && stepStatus(stepKey) === 'locked') return;
356
+ step.value = stepKey;
357
+ };
358
+
359
+ const goBack = () => {
360
+ const previous = STEPS[indexOf(step.value) - 1];
361
+ if (previous) step.value = previous.key;
362
+ };
363
+
364
+ const goNext = () => {
365
+ const current = step.value;
366
+ if (issues.value[current].length > 0) {
367
+ attempted[current] = true; // raises the alert + inline errors
368
+ return;
369
+ }
370
+ attempted[current] = false;
371
+ const next = STEPS[indexOf(current) + 1];
372
+ if (next) step.value = next.key;
373
+ };
374
+
375
+ // Mirror the step into the URL so refresh and shared links restore it.
376
+ watch(step, (next) => {
377
+ void router.replace({
378
+ query: { ...route.query, step: String(indexOf(next) + 1) },
379
+ });
380
+ });
381
+
382
+ // -- Audience intel ---------------------------------------------------------------
383
+ // The select's v-model holds only the id; Review and the summary box need
384
+ // the record. Same resolve-by-id pattern as the flagship's customer pill.
385
+ const selectedSegment = ref<Segment | null>(null);
386
+ watchEffect(async () => {
387
+ selectedSegment.value =
388
+ draft.segmentId === null ? null : await api.segments.get(draft.segmentId);
389
+ });
390
+
391
+ const estimatedRecipients = ref<number | null>(null);
392
+ watchEffect(async () => {
393
+ if (draft.segmentId === null) {
394
+ estimatedRecipients.value = null;
395
+ return;
396
+ }
397
+ estimatedRecipients.value = await api.segments.estimate(draft.segmentId, {
398
+ countries: [...draft.countries],
399
+ excludeRecent: draft.excludeRecent,
400
+ });
401
+ });
402
+
403
+ // -- Peek grammar ----------------------------------------------------------------
404
+ const peekSegment = () => {
405
+ if (draft.segmentId !== null)
406
+ shell.push({ type: 'segment', id: draft.segmentId }, true);
407
+ };
408
+
409
+ // -- Persistence + dirty guard ------------------------------------------------------
410
+ const snapshot = ref('');
411
+ const lastSavedAt = ref<string | null>(null);
412
+ const dirty = computed(
413
+ () => !loading.value && JSON.stringify(draft) !== snapshot.value
414
+ );
415
+
416
+ // Registered here because provideCampaignWizard() runs in the setup of the
417
+ // route component (Index.vue) — exactly where vue-router allows it.
418
+ onBeforeRouteLeave(async () => {
419
+ if (!dirty.value) return true;
420
+ return confirm({
421
+ variant: 'destructive',
422
+ title: 'Leave campaign setup?',
423
+ text: 'You have unsaved changes. Leave and lose them, or stay and save the draft.',
424
+ yes: 'Leave',
425
+ no: 'Keep editing',
426
+ });
427
+ });
428
+
429
+ // The client gate only guards FORWARD navigation — it never blocks this call.
430
+ // The endpoint, though, runs the same whole-draft validation the final submit
431
+ // runs, so saving a half-filled draft rejects with 422. Handle it: an
432
+ // unhandled rejection here surfaces as a console error and the user gets no
433
+ // feedback at all.
434
+ const saveDraft = async () => {
435
+ try {
436
+ await api.campaigns.update(campaignId, { ...draft });
437
+ } catch (error) {
438
+ const err = error as { status?: number };
439
+ if (err.status === 422) {
440
+ toast({
441
+ title: 'Finish the highlighted fields before saving.',
442
+ variant: 'destructive',
443
+ });
444
+ return;
445
+ }
446
+ toast({
447
+ title: 'Something went wrong. Try again.',
448
+ variant: 'destructive',
449
+ });
450
+ return;
451
+ }
452
+ snapshot.value = JSON.stringify(draft);
453
+ lastSavedAt.value = new Date().toISOString();
454
+ toast({ title: 'Draft saved.', variant: 'success' });
455
+ };
456
+
457
+ const sendTest = async () => {
458
+ if (issues.value.content.length > 0) {
459
+ attempted.content = true; // same surfacing as a blocked Next
460
+ return;
461
+ }
462
+ await api.campaigns.sendTest(campaignId, { ...draft });
463
+ toast({ title: 'Test email sent to your address.', variant: 'success' });
464
+ };
465
+
466
+ const submitting = ref(false);
467
+ const submit = async () => {
468
+ // Whole-wizard validation: land the user on the first broken step.
469
+ const incomplete = STEPS.find((item) => issues.value[item.key].length > 0);
470
+ if (incomplete) {
471
+ attempted[incomplete.key] = true;
472
+ step.value = incomplete.key;
473
+ return;
474
+ }
475
+ submitting.value = true;
476
+ try {
477
+ await api.campaigns.update(campaignId, { ...draft });
478
+ await api.campaigns.send(campaignId);
479
+ snapshot.value = JSON.stringify(draft); // the guard has nothing left to protect
480
+ toast({
481
+ title:
482
+ draft.sendMode === 'now'
483
+ ? 'Campaign is on its way.'
484
+ : 'Campaign scheduled.',
485
+ variant: 'success',
486
+ });
487
+ await router.push('/campaigns');
488
+ } finally {
489
+ submitting.value = false;
490
+ }
491
+ };
492
+
493
+ const discardDraft = async () => {
494
+ const ok = await confirm({
495
+ variant: 'destructive',
496
+ title: 'Discard draft',
497
+ text: `Delete "${campaign.value?.name ?? 'this campaign'}" and everything entered so far? This cannot be undone.`,
498
+ yes: 'Discard',
499
+ no: 'Keep draft',
500
+ });
501
+ if (!ok) return;
502
+ snapshot.value = JSON.stringify(draft); // don't double-prompt via the leave guard
503
+ await api.campaigns.delete(campaignId);
504
+ toast({ title: 'Draft discarded.', variant: 'success' });
505
+ await router.push('/campaigns');
506
+ };
507
+
508
+ // -- Load ------------------------------------------------------------------------
509
+ // The wizard edits a server-side draft (the list page created it before
510
+ // navigating here, Mailchimp-style), so a refresh restores every field —
511
+ // and ?step restores the position, clamped so it can't open a locked step.
512
+ const initialize = async () => {
513
+ // `get` resolves `null` for an unknown id (a hand-typed URL), so it cannot
514
+ // be destructured blind — that both fails to type-check and throws at
515
+ // runtime. Baseline the snapshot either way, otherwise an empty draft
516
+ // reads as "unsaved changes" and the leave guard fires on a dead page.
517
+ const loaded = await api.campaigns.get(campaignId);
518
+ if (loaded) {
519
+ campaign.value = loaded.campaign;
520
+ Object.assign(draft, loaded.draft);
521
+ }
522
+ snapshot.value = JSON.stringify(draft);
523
+ const requested = STEPS[Number(route.query.step) - 1]?.key ?? 'audience';
524
+ step.value =
525
+ stepStatus(requested) === 'locked' ? firstIncompleteStep() : requested;
526
+ loading.value = false;
527
+ };
528
+ void initialize();
529
+
530
+ const ctx: CampaignWizardContext = {
531
+ shell,
532
+ loading,
533
+ campaign,
534
+ draft,
535
+ step,
536
+ dirty,
537
+ lastSavedAt,
538
+ submitting,
539
+ issues,
540
+ attempted,
541
+ stepStatus,
542
+ fieldErrors,
543
+ selectedSegment,
544
+ estimatedRecipients,
545
+ peekSegment,
546
+ goToStep,
547
+ goBack,
548
+ goNext,
549
+ saveDraft,
550
+ sendTest,
551
+ submit,
552
+ discardDraft,
553
+ };
554
+ provide(key, ctx);
555
+ return ctx;
556
+ }
557
+
558
+ export function useCampaignWizard(): CampaignWizardContext {
559
+ const ctx = inject(key);
560
+ if (!ctx)
561
+ throw new Error('useCampaignWizard() called outside CampaignWizard');
562
+ return ctx;
563
+ }
564
+ ```
565
+
566
+ ### Index.vue — the assembly
567
+
568
+ ```vue
569
+ <!-- CampaignWizard/Index.vue -->
570
+ <template>
571
+ <PageShell>
572
+ <!-- Topbar: breadcrumbs left; save state + the destructive escape right.
573
+ Wizard archetype: no page search, no filter rail, no tabs. -->
574
+ <template #topbar>
575
+ <div class="flex items-center justify-between gap-4 border-b px-4 py-2">
576
+ <!-- Breadcrumbs take the row's slack on a stable basis (min-w-0 flex-auto);
577
+ without it their overflow recompute fights the flex layout every frame. -->
578
+ <BbBreadcrumbs class="min-w-0 flex-auto" :items="crumbs" />
579
+ <div class="flex shrink-0 items-center gap-3">
580
+ <span
581
+ v-if="savedLabel"
582
+ class="text-xs text-[color:var(--bb-text-muted)]"
583
+ >{{ savedLabel }}</span
584
+ >
585
+ <BbButton
586
+ prepend:icon="lucide:trash-2"
587
+ variant="destructive"
588
+ @click="ctx.discardDraft"
589
+ >
590
+ Discard draft
591
+ </BbButton>
592
+ </div>
593
+ </div>
594
+ </template>
595
+
596
+ <div class="mx-auto flex w-full max-w-3xl flex-col gap-5 p-4">
597
+ <header class="flex flex-col gap-0.5">
598
+ <h1 class="text-lg font-semibold">
599
+ {{ ctx.campaign.value?.name ?? 'New campaign' }}
600
+ </h1>
601
+ <p class="text-sm text-[color:var(--bb-text-muted)]">
602
+ Set up the audience, content and schedule, then review and send.
603
+ </p>
604
+ </header>
605
+
606
+ <StepperHeader />
607
+
608
+ <!-- One wrapper around the alert AND the step outlet: the step swap
609
+ and the validation summary appearing/shrinking both glide. -->
610
+ <!-- Enable height motion only after mount so first paint does not
611
+ animate in; later step swaps still glide. -->
612
+ <BbSmoothHeight :disabled="!stepHeightReady">
613
+ <div class="flex flex-col gap-4">
614
+ <BbAlert
615
+ v-if="summaryIssues.length"
616
+ hide-close
617
+ icon="lucide:circle-x"
618
+ :title="`Fix ${summaryIssues.length} ${summaryIssues.length === 1 ? 'issue' : 'issues'} to continue`"
619
+ variant="destructive"
620
+ >
621
+ <template #text>
622
+ <ul class="list-disc pl-4">
623
+ <li v-for="issue in summaryIssues" :key="issue.field">
624
+ {{ issue.message }}
625
+ </li>
626
+ </ul>
627
+ </template>
628
+ </BbAlert>
629
+
630
+ <div v-if="ctx.loading.value" class="flex justify-center p-10">
631
+ <BbSpinner />
632
+ </div>
633
+ <AudienceStep v-else-if="ctx.step.value === 'audience'" />
634
+ <ContentStep v-else-if="ctx.step.value === 'content'" />
635
+ <ScheduleStep v-else-if="ctx.step.value === 'schedule'" />
636
+ <ReviewStep v-else />
637
+ </div>
638
+ </BbSmoothHeight>
639
+
640
+ <WizardFooter />
641
+ </div>
642
+
643
+ <!-- Clicking the segment's NAME peeks it — Audience step and Review. -->
644
+ <template #sidebar>
645
+ <SegmentPeek
646
+ v-if="ctx.shell.current.value?.type === 'segment'"
647
+ :segment-id="ctx.shell.current.value.id"
648
+ />
649
+ </template>
650
+ </PageShell>
651
+ </template>
652
+
653
+ <script setup lang="ts">
654
+ import { computed, onMounted, ref } from 'vue';
655
+ import {
656
+ BbAlert,
657
+ BbBreadcrumbs,
658
+ BbButton,
659
+ BbSmoothHeight,
660
+ BbSpinner,
661
+ } from 'bitboss-ui';
662
+ import PageShell from '@/components/layout/PageShell.vue';
663
+ import { provideCampaignWizard } from './context';
664
+ import AudienceStep from './AudienceStep.vue';
665
+ import ContentStep from './ContentStep.vue';
666
+ import ReviewStep from './ReviewStep.vue';
667
+ import ScheduleStep from './ScheduleStep.vue';
668
+ import SegmentPeek from './SegmentPeek.vue';
669
+ import StepperHeader from './StepperHeader.vue';
670
+ import WizardFooter from './WizardFooter.vue';
671
+
672
+ const ctx = provideCampaignWizard();
673
+
674
+ /** Keep SmoothHeight off while the first paint settles (initial load swaps
675
+ * spinner → step content); enable after 300ms for step-to-step glides. */
676
+ const stepHeightReady = ref(false);
677
+ onMounted(() => {
678
+ setTimeout(() => {
679
+ stepHeightReady.value = true;
680
+ }, 300);
681
+ });
682
+
683
+ const crumbs = computed(() => [
684
+ { key: 'dashboard', text: 'Dashboard', to: '/dashboard' },
685
+ { key: 'campaigns', text: 'Campaigns', to: '/campaigns' },
686
+ { key: 'setup', text: ctx.campaign.value?.name ?? 'New campaign' },
687
+ ]);
688
+
689
+ // The summary shows only the CURRENT step's issues, and only once the user
690
+ // tried to leave it — it shrinks live as each problem is fixed.
691
+ const summaryIssues = computed(() =>
692
+ ctx.attempted[ctx.step.value] ? ctx.issues.value[ctx.step.value] : []
693
+ );
694
+
695
+ const savedLabel = computed(() => {
696
+ if (ctx.dirty.value) return 'Unsaved changes';
697
+ if (!ctx.lastSavedAt.value) return null;
698
+ const time = new Date(ctx.lastSavedAt.value).toLocaleTimeString('en-US', {
699
+ hour: 'numeric',
700
+ minute: '2-digit',
701
+ });
702
+ return `Draft saved at ${time}`;
703
+ });
704
+ </script>
705
+ ```
706
+
707
+ ### StepperHeader.vue
708
+
709
+ ```vue
710
+ <!-- CampaignWizard/StepperHeader.vue -->
711
+ <template>
712
+ <nav aria-label="Campaign setup steps" class="flex items-center gap-1">
713
+ <template v-for="(stepMeta, index) in STEPS" :key="stepMeta.key">
714
+ <!-- Connector line between steps. -->
715
+ <div
716
+ v-if="index > 0"
717
+ aria-hidden="true"
718
+ class="h-px min-w-3 flex-1 bg-[var(--bb-border)]"
719
+ />
720
+
721
+ <!-- The primitive gives element semantics + disabled handling; the
722
+ look is entirely ours. Done and upcoming steps jump, locked
723
+ steps are inert. -->
724
+ <BbBaseButton
725
+ :aria-current="status(stepMeta.key) === 'current' ? 'step' : undefined"
726
+ class="flex items-center gap-2 rounded-[var(--bb-radius)] px-2 py-1.5 text-sm focus-visible:ring-2 focus-visible:ring-[var(--bb-primary)]"
727
+ :class="{
728
+ 'bg-[var(--bb-hover)] font-medium':
729
+ status(stepMeta.key) === 'current',
730
+ 'hover:bg-[var(--bb-hover)]': ['done', 'upcoming'].includes(
731
+ status(stepMeta.key)
732
+ ),
733
+ 'text-[color:var(--bb-text-muted)]':
734
+ status(stepMeta.key) === 'locked',
735
+ }"
736
+ :disabled="status(stepMeta.key) === 'locked'"
737
+ @click="() => ctx.goToStep(stepMeta.key)"
738
+ >
739
+ <span
740
+ class="flex size-5 shrink-0 items-center justify-center rounded-full border text-xs"
741
+ :class="{
742
+ 'border-transparent bg-[var(--bb-primary)] text-[var(--bb-primary-fg)]':
743
+ status(stepMeta.key) === 'done',
744
+ 'border-[var(--bb-primary)] text-[color:var(--bb-primary)]':
745
+ status(stepMeta.key) === 'current',
746
+ 'border-[var(--bb-border)]': status(stepMeta.key) === 'locked',
747
+ }"
748
+ >
749
+ <BbIcon
750
+ v-if="status(stepMeta.key) === 'done'"
751
+ icon="lucide:check"
752
+ size="12"
753
+ />
754
+ <template v-else>{{ index + 1 }}</template>
755
+ </span>
756
+ {{ stepMeta.label }}
757
+ </BbBaseButton>
758
+ </template>
759
+ </nav>
760
+ </template>
761
+
762
+ <script setup lang="ts">
763
+ import { BbBaseButton, BbIcon } from 'bitboss-ui';
764
+ import { STEPS, useCampaignWizard, type StepKey } from './context';
765
+
766
+ const ctx = useCampaignWizard();
767
+
768
+ const status = (key: StepKey) => ctx.stepStatus(key);
769
+ </script>
770
+ ```
771
+
772
+ ### AudienceStep.vue
773
+
774
+ ```vue
775
+ <!-- CampaignWizard/AudienceStep.vue -->
776
+ <template>
777
+ <section class="flex flex-col gap-4">
778
+ <div class="flex flex-col gap-0.5">
779
+ <h2 class="text-base font-semibold">Who gets this email?</h2>
780
+ <p class="text-sm text-[color:var(--bb-text-muted)]">
781
+ Pick a segment, then narrow it with delivery filters.
782
+ </p>
783
+ </div>
784
+
785
+ <!-- Query-aware items function: the select searches the API as you type. -->
786
+ <BbSelect
787
+ v-model="ctx.draft.segmentId"
788
+ :errors="segmentErrors"
789
+ item-text="name"
790
+ item-value="id"
791
+ :items="searchSegments"
792
+ label="Segment"
793
+ label-mode="outside"
794
+ placeholder="Search segments…"
795
+ required
796
+ />
797
+
798
+ <!-- Resolved segment + live estimate: the context owns both fetches. -->
799
+ <div
800
+ v-if="ctx.selectedSegment.value"
801
+ class="flex flex-col gap-1 rounded-[var(--bb-radius)] border p-3 text-sm"
802
+ >
803
+ <div class="flex items-center justify-between gap-2">
804
+ <BbButton size="sm" variant="link" @click="ctx.peekSegment">
805
+ {{ ctx.selectedSegment.value.name }}
806
+ </BbButton>
807
+ <span class="text-xs text-[color:var(--bb-text-muted)]">
808
+ Last synced {{ shortDate(ctx.selectedSegment.value.lastSyncedAt) }}
809
+ </span>
810
+ </div>
811
+ <p class="text-[color:var(--bb-text-muted)]">
812
+ {{ number.format(ctx.selectedSegment.value.contactCount) }} contacts in
813
+ the segment ·
814
+ <strong class="text-[var(--bb-text)]">
815
+ {{
816
+ ctx.estimatedRecipients.value === null
817
+ ? '…'
818
+ : number.format(ctx.estimatedRecipients.value)
819
+ }}
820
+ </strong>
821
+ estimated recipients after filters
822
+ </p>
823
+ </div>
824
+
825
+ <BbSelect
826
+ v-model="ctx.draft.countries"
827
+ :items="COUNTRIES"
828
+ item-text="label"
829
+ item-value="value"
830
+ label="Limit to countries"
831
+ label-mode="outside"
832
+ multiple
833
+ placeholder="All countries"
834
+ />
835
+
836
+ <BbSwitch
837
+ v-model="ctx.draft.excludeRecent"
838
+ description="Avoids fatigue: anyone who already received a campaign this week is skipped."
839
+ label="Skip contacts emailed in the last 7 days"
840
+ />
841
+ </section>
842
+ </template>
843
+
844
+ <script setup lang="ts">
845
+ import { computed } from 'vue';
846
+ import { BbButton, BbSelect, BbSwitch } from 'bitboss-ui';
847
+ import { COUNTRIES, useCampaignWizard } from './context';
848
+ import { api } from '@/api';
849
+ import type { Segment } from '@/types';
850
+
851
+ const ctx = useCampaignWizard();
852
+
853
+ const searchSegments = (query: string): Promise<Segment[]> =>
854
+ api.segments.list({ search: query });
855
+
856
+ // Inline errors appear only after a blocked Next (attempted), per the context.
857
+ const segmentErrors = computed(() => ctx.fieldErrors('audience', 'segmentId'));
858
+
859
+ const number = new Intl.NumberFormat('en-US');
860
+ const shortDate = (value: string) =>
861
+ new Date(value).toLocaleDateString('en-US', {
862
+ month: 'short',
863
+ day: 'numeric',
864
+ });
865
+ </script>
866
+ ```
867
+
868
+ ### ContentStep.vue
869
+
870
+ ```vue
871
+ <!-- CampaignWizard/ContentStep.vue -->
872
+ <template>
873
+ <section class="flex flex-col gap-4">
874
+ <div class="flex flex-col gap-0.5">
875
+ <h2 class="text-base font-semibold">What does it say?</h2>
876
+ <p class="text-sm text-[color:var(--bb-text-muted)]">
877
+ Subject and preheader are what people see in the inbox list.
878
+ </p>
879
+ </div>
880
+
881
+ <BbTextInput
882
+ v-model="ctx.draft.subject"
883
+ :description="`${ctx.draft.subject.length}/150 characters`"
884
+ :errors="errorsFor('subject')"
885
+ label="Subject line"
886
+ label-mode="outside"
887
+ placeholder="The July roast drop is here — 20% off subscriptions"
888
+ required
889
+ />
890
+
891
+ <BbTextInput
892
+ v-model="ctx.draft.preheader"
893
+ description="Optional. Shows after the subject in most inboxes — keep it under 90 characters."
894
+ label="Preheader"
895
+ label-mode="outside"
896
+ placeholder="Three new single origins, roasted this week."
897
+ />
898
+
899
+ <!-- Fixed rows on purpose: an auto-growing textarea inside BbSmoothHeight
900
+ would re-animate the outlet on every line break while typing. -->
901
+ <BbTextarea
902
+ v-model="ctx.draft.body"
903
+ :errors="errorsFor('body')"
904
+ label="Body"
905
+ label-mode="outside"
906
+ placeholder="Write the email…"
907
+ required
908
+ :rows="10"
909
+ />
910
+
911
+ <BbRadioGroup
912
+ v-model="ctx.draft.templateId"
913
+ :errors="errorsFor('templateId')"
914
+ item-text="name"
915
+ item-value="id"
916
+ :items="TEMPLATES"
917
+ legend="Template"
918
+ name="template"
919
+ required
920
+ >
921
+ <!-- Name + one-line description per option, from the same items. -->
922
+ <template #label="{ item, text }">
923
+ <span class="flex flex-col">
924
+ <span>{{ text }}</span>
925
+ <span class="text-xs text-[color:var(--bb-text-muted)]">{{
926
+ item.description
927
+ }}</span>
928
+ </span>
929
+ </template>
930
+ </BbRadioGroup>
931
+
932
+ <!-- Auto-loading: the button tracks the async handler by itself. -->
933
+ <div>
934
+ <BbButton
935
+ prepend:icon="lucide:send"
936
+ variant="ghost"
937
+ @click="ctx.sendTest"
938
+ >
939
+ Send test email
940
+ </BbButton>
941
+ </div>
942
+ </section>
943
+ </template>
944
+
945
+ <script setup lang="ts">
946
+ import { BbButton, BbRadioGroup, BbTextarea, BbTextInput } from 'bitboss-ui';
947
+ import { TEMPLATES, useCampaignWizard } from './context';
948
+
949
+ const ctx = useCampaignWizard();
950
+
951
+ const errorsFor = (field: string) => ctx.fieldErrors('content', field);
952
+ </script>
953
+ ```
954
+
955
+ ### ScheduleStep.vue
956
+
957
+ ```vue
958
+ <!-- CampaignWizard/ScheduleStep.vue -->
959
+ <template>
960
+ <section class="flex flex-col gap-4">
961
+ <div class="flex flex-col gap-0.5">
962
+ <h2 class="text-base font-semibold">When does it go out?</h2>
963
+ <p class="text-sm text-[color:var(--bb-text-muted)]">
964
+ Send it as soon as you confirm, or pick a date.
965
+ </p>
966
+ </div>
967
+
968
+ <BbRadioGroup
969
+ v-model="ctx.draft.sendMode"
970
+ item-text="label"
971
+ item-value="value"
972
+ :items="[
973
+ {
974
+ label: 'Send now — goes out as soon as you confirm on Review',
975
+ value: 'now',
976
+ },
977
+ { label: 'Schedule for later', value: 'scheduled' },
978
+ ]"
979
+ legend="When to send"
980
+ name="send-mode"
981
+ />
982
+
983
+ <!-- No inner BbSmoothHeight: the page-level wrapper's resize observer
984
+ already animates this region appearing and disappearing. -->
985
+ <div
986
+ v-if="ctx.draft.sendMode === 'scheduled'"
987
+ class="grid gap-4 sm:grid-cols-2"
988
+ >
989
+ <BbDatePickerInput
990
+ v-model="ctx.draft.sendAt"
991
+ description="Campaigns go out at 9:00 AM local to the timezone you pick."
992
+ :errors="errorsFor('sendAt')"
993
+ label="Send date"
994
+ label-mode="outside"
995
+ :min="today"
996
+ required
997
+ />
998
+ <BbSelect
999
+ v-model="ctx.draft.timezone"
1000
+ :errors="errorsFor('timezone')"
1001
+ item-text="label"
1002
+ item-value="value"
1003
+ :items="TIMEZONES"
1004
+ label="Timezone"
1005
+ label-mode="outside"
1006
+ required
1007
+ />
1008
+ </div>
1009
+ </section>
1010
+ </template>
1011
+
1012
+ <script setup lang="ts">
1013
+ import { BbDatePickerInput, BbRadioGroup, BbSelect } from 'bitboss-ui';
1014
+ import { TIMEZONES, useCampaignWizard } from './context';
1015
+
1016
+ const ctx = useCampaignWizard();
1017
+
1018
+ const errorsFor = (field: string) => ctx.fieldErrors('schedule', field);
1019
+
1020
+ // BbDatePickerInput's min takes YYYY-MM-DD.
1021
+ const today = new Date().toISOString().slice(0, 10);
1022
+ </script>
1023
+ ```
1024
+
1025
+ ### ReviewStep.vue
1026
+
1027
+ ```vue
1028
+ <!-- CampaignWizard/ReviewStep.vue -->
1029
+ <template>
1030
+ <section class="flex flex-col gap-5">
1031
+ <div class="flex flex-col gap-0.5">
1032
+ <h2 class="text-base font-semibold">Review and send</h2>
1033
+ <p class="text-sm text-[color:var(--bb-text-muted)]">
1034
+ Everything below is what goes out. Edit any section — your progress is
1035
+ kept.
1036
+ </p>
1037
+ </div>
1038
+
1039
+ <!-- Audience -->
1040
+ <section
1041
+ class="flex flex-col gap-2 rounded-[var(--bb-radius)] border p-3 text-sm"
1042
+ >
1043
+ <div class="flex items-center justify-between gap-2">
1044
+ <h3
1045
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1046
+ >
1047
+ Audience
1048
+ </h3>
1049
+ <BbButton
1050
+ prepend:icon="lucide:pencil"
1051
+ size="sm"
1052
+ variant="ghost"
1053
+ @click="() => ctx.goToStep('audience')"
1054
+ >
1055
+ Edit
1056
+ </BbButton>
1057
+ </div>
1058
+ <dl class="grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5">
1059
+ <dt class="text-[color:var(--bb-text-muted)]">Segment</dt>
1060
+ <dd>
1061
+ <BbButton size="sm" variant="link" @click="ctx.peekSegment">
1062
+ {{ ctx.selectedSegment.value?.name ?? '—' }}
1063
+ </BbButton>
1064
+ </dd>
1065
+ <dt class="text-[color:var(--bb-text-muted)]">Countries</dt>
1066
+ <dd>{{ countryNames || 'All countries' }}</dd>
1067
+ <dt class="text-[color:var(--bb-text-muted)]">Fatigue filter</dt>
1068
+ <dd>
1069
+ {{
1070
+ ctx.draft.excludeRecent
1071
+ ? 'Skipping contacts emailed in the last 7 days'
1072
+ : 'Off'
1073
+ }}
1074
+ </dd>
1075
+ <dt class="text-[color:var(--bb-text-muted)]">Estimated recipients</dt>
1076
+ <dd class="font-medium">
1077
+ {{
1078
+ ctx.estimatedRecipients.value === null
1079
+ ? '—'
1080
+ : number.format(ctx.estimatedRecipients.value)
1081
+ }}
1082
+ </dd>
1083
+ </dl>
1084
+ </section>
1085
+
1086
+ <!-- Content -->
1087
+ <section
1088
+ class="flex flex-col gap-2 rounded-[var(--bb-radius)] border p-3 text-sm"
1089
+ >
1090
+ <div class="flex items-center justify-between gap-2">
1091
+ <h3
1092
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1093
+ >
1094
+ Content
1095
+ </h3>
1096
+ <BbButton
1097
+ prepend:icon="lucide:pencil"
1098
+ size="sm"
1099
+ variant="ghost"
1100
+ @click="() => ctx.goToStep('content')"
1101
+ >
1102
+ Edit
1103
+ </BbButton>
1104
+ </div>
1105
+ <dl class="grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5">
1106
+ <dt class="text-[color:var(--bb-text-muted)]">Subject</dt>
1107
+ <dd class="font-medium">{{ ctx.draft.subject }}</dd>
1108
+ <dt class="text-[color:var(--bb-text-muted)]">Preheader</dt>
1109
+ <dd>{{ ctx.draft.preheader || '—' }}</dd>
1110
+ <dt class="text-[color:var(--bb-text-muted)]">Template</dt>
1111
+ <dd>{{ templateName }}</dd>
1112
+ <dt class="text-[color:var(--bb-text-muted)]">Body</dt>
1113
+ <dd class="text-[color:var(--bb-text-muted)]">{{ bodyExcerpt }}</dd>
1114
+ </dl>
1115
+ </section>
1116
+
1117
+ <!-- Schedule -->
1118
+ <section
1119
+ class="flex flex-col gap-2 rounded-[var(--bb-radius)] border p-3 text-sm"
1120
+ >
1121
+ <div class="flex items-center justify-between gap-2">
1122
+ <h3
1123
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1124
+ >
1125
+ Schedule
1126
+ </h3>
1127
+ <BbButton
1128
+ prepend:icon="lucide:pencil"
1129
+ size="sm"
1130
+ variant="ghost"
1131
+ @click="() => ctx.goToStep('schedule')"
1132
+ >
1133
+ Edit
1134
+ </BbButton>
1135
+ </div>
1136
+ <p>{{ scheduleSummary }}</p>
1137
+ </section>
1138
+ </section>
1139
+ </template>
1140
+
1141
+ <script setup lang="ts">
1142
+ import { computed } from 'vue';
1143
+ import { BbButton } from 'bitboss-ui';
1144
+ import { COUNTRIES, TEMPLATES, TIMEZONES, useCampaignWizard } from './context';
1145
+
1146
+ const ctx = useCampaignWizard();
1147
+
1148
+ const number = new Intl.NumberFormat('en-US');
1149
+
1150
+ const countryNames = computed(() =>
1151
+ ctx.draft.countries
1152
+ .map(
1153
+ (code) =>
1154
+ COUNTRIES.find((country) => country.value === code)?.label ?? code
1155
+ )
1156
+ .join(', ')
1157
+ );
1158
+
1159
+ const templateName = computed(
1160
+ () =>
1161
+ TEMPLATES.find((template) => template.id === ctx.draft.templateId)?.name ??
1162
+ '—'
1163
+ );
1164
+
1165
+ const bodyExcerpt = computed(() =>
1166
+ ctx.draft.body.length > 140
1167
+ ? `${ctx.draft.body.slice(0, 140)}…`
1168
+ : ctx.draft.body
1169
+ );
1170
+
1171
+ const scheduleSummary = computed(() => {
1172
+ if (ctx.draft.sendMode === 'now')
1173
+ return 'Sends immediately after you confirm.';
1174
+ if (!ctx.draft.sendAt) return '—';
1175
+ const date = new Date(ctx.draft.sendAt).toLocaleDateString('en-US', {
1176
+ weekday: 'short',
1177
+ month: 'short',
1178
+ day: 'numeric',
1179
+ year: 'numeric',
1180
+ });
1181
+ const zone =
1182
+ TIMEZONES.find((timezone) => timezone.value === ctx.draft.timezone)
1183
+ ?.label ?? ctx.draft.timezone;
1184
+ return `Scheduled for ${date} · 9:00 AM · ${zone}`;
1185
+ });
1186
+ </script>
1187
+ ```
1188
+
1189
+ ### WizardFooter.vue
1190
+
1191
+ ```vue
1192
+ <!-- CampaignWizard/WizardFooter.vue -->
1193
+ <template>
1194
+ <footer class="flex items-center justify-between gap-2 border-t pt-4">
1195
+ <!-- Back is always free — never validated, only bounded. -->
1196
+ <BbButton
1197
+ :disabled="isFirst"
1198
+ prepend:icon="lucide:chevron-left"
1199
+ variant="ghost"
1200
+ @click="ctx.goBack"
1201
+ >
1202
+ Back
1203
+ </BbButton>
1204
+
1205
+ <div class="flex items-center gap-2">
1206
+ <!-- On every step, whatever the validation state. -->
1207
+ <BbButton
1208
+ prepend:icon="lucide:save"
1209
+ variant="ghost"
1210
+ @click="ctx.saveDraft"
1211
+ >
1212
+ Save draft
1213
+ </BbButton>
1214
+
1215
+ <BbButton
1216
+ v-if="!isReview"
1217
+ append:icon="lucide:chevron-right"
1218
+ variant="secondary"
1219
+ @click="ctx.goNext"
1220
+ >
1221
+ Next
1222
+ </BbButton>
1223
+
1224
+ <!-- The page's single primary. -->
1225
+ <BbButton
1226
+ v-else
1227
+ :loading="ctx.submitting.value"
1228
+ prepend:icon="lucide:send"
1229
+ variant="primary"
1230
+ @click="ctx.submit"
1231
+ >
1232
+ {{
1233
+ ctx.draft.sendMode === 'now' ? 'Send campaign' : 'Schedule campaign'
1234
+ }}
1235
+ </BbButton>
1236
+ </div>
1237
+ </footer>
1238
+ </template>
1239
+
1240
+ <script setup lang="ts">
1241
+ import { computed } from 'vue';
1242
+ import { BbButton } from 'bitboss-ui';
1243
+ import { STEPS, useCampaignWizard } from './context';
1244
+
1245
+ const ctx = useCampaignWizard();
1246
+
1247
+ const isFirst = computed(() => ctx.step.value === STEPS[0].key);
1248
+ const isReview = computed(() => ctx.step.value === 'review');
1249
+ </script>
1250
+ ```
1251
+
1252
+ ### SegmentPeek.vue
1253
+
1254
+ ```vue
1255
+ <!-- CampaignWizard/SegmentPeek.vue -->
1256
+ <template>
1257
+ <div v-if="segment" class="flex flex-col gap-4 text-sm">
1258
+ <header class="flex flex-col gap-0.5">
1259
+ <h2 class="text-base font-semibold">{{ segment.name }}</h2>
1260
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
1261
+ {{ number.format(segment.contactCount) }} contacts · last synced
1262
+ {{ longDate(segment.lastSyncedAt) }}
1263
+ </p>
1264
+ </header>
1265
+
1266
+ <!-- Stat strip. -->
1267
+ <div class="grid grid-cols-3 gap-2">
1268
+ <div class="rounded-[var(--bb-radius)] border p-2">
1269
+ <p class="text-xs text-[color:var(--bb-text-muted)]">Avg. open rate</p>
1270
+ <p class="font-semibold">{{ percent(segment.openRate) }}</p>
1271
+ </div>
1272
+ <div class="rounded-[var(--bb-radius)] border p-2">
1273
+ <p class="text-xs text-[color:var(--bb-text-muted)]">Avg. click rate</p>
1274
+ <p class="font-semibold">{{ percent(segment.clickRate) }}</p>
1275
+ </div>
1276
+ <div class="rounded-[var(--bb-radius)] border p-2">
1277
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
1278
+ Unsubscribes / mo
1279
+ </p>
1280
+ <p class="font-semibold">
1281
+ {{ number.format(segment.monthlyUnsubscribes) }}
1282
+ </p>
1283
+ </div>
1284
+ </div>
1285
+
1286
+ <!-- The segment's definition, so "who is in here" is answerable in place. -->
1287
+ <section class="flex flex-col gap-1.5">
1288
+ <h3
1289
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1290
+ >
1291
+ Conditions
1292
+ </h3>
1293
+ <ul class="flex flex-col gap-1">
1294
+ <li v-for="rule in segment.rules" :key="rule" class="flex gap-2">
1295
+ <BbIcon
1296
+ class="mt-0.5 shrink-0 text-[color:var(--bb-text-muted)]"
1297
+ icon="lucide:filter"
1298
+ size="14"
1299
+ />
1300
+ <span>{{ rule }}</span>
1301
+ </li>
1302
+ </ul>
1303
+ </section>
1304
+
1305
+ <!-- Recent campaigns to this segment: fatigue check before sending. -->
1306
+ <section class="flex flex-col gap-1.5">
1307
+ <h3
1308
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1309
+ >
1310
+ Recent campaigns
1311
+ </h3>
1312
+ <ul class="flex flex-col">
1313
+ <li
1314
+ v-for="recent in segment.recentCampaigns"
1315
+ :key="recent.id"
1316
+ class="flex items-center justify-between gap-2 border-b py-1.5 last:border-b-0"
1317
+ >
1318
+ <span>{{ recent.name }}</span>
1319
+ <span class="text-xs text-[color:var(--bb-text-muted)]">{{
1320
+ longDate(recent.sentAt)
1321
+ }}</span>
1322
+ </li>
1323
+ </ul>
1324
+ </section>
1325
+
1326
+ <footer class="mt-2 flex items-center gap-2 border-t pt-3">
1327
+ <BbButton
1328
+ append:icon="lucide:arrow-up-right"
1329
+ size="sm"
1330
+ :to="`/segments/${segment.id}`"
1331
+ variant="ghost"
1332
+ >
1333
+ Open segment
1334
+ </BbButton>
1335
+ </footer>
1336
+ </div>
1337
+
1338
+ <div v-else class="flex justify-center p-8">
1339
+ <BbSpinner />
1340
+ </div>
1341
+ </template>
1342
+
1343
+ <script setup lang="ts">
1344
+ import { ref, watchEffect } from 'vue';
1345
+ import { BbButton, BbIcon, BbSpinner } from 'bitboss-ui';
1346
+ import { api } from '@/api';
1347
+ import type { SegmentDetail } from '@/types';
1348
+
1349
+ const props = defineProps<{ segmentId: number }>();
1350
+
1351
+ const segment = ref<SegmentDetail | null>(null);
1352
+ watchEffect(async () => {
1353
+ segment.value = await api.segments.getDetail(props.segmentId);
1354
+ });
1355
+
1356
+ const number = new Intl.NumberFormat('en-US');
1357
+ const percent = (value: number) => `${(value * 100).toFixed(1)}%`;
1358
+ const longDate = (value: string) =>
1359
+ new Date(value).toLocaleDateString('en-US', {
1360
+ month: 'short',
1361
+ day: 'numeric',
1362
+ year: 'numeric',
1363
+ });
1364
+ </script>
1365
+ ```
1366
+
1367
+ ## Why it is built this way
1368
+
1369
+ - **The context coopts, leaves consume.** `shell` is joined once in
1370
+ `provideCampaignWizard()`; seven components share the draft, the step
1371
+ machine, validation and every action through one `useCampaignWizard()`
1372
+ call. The only data prop on the page is `SegmentPeek`'s `segment-id`;
1373
+ no component receives a callback.
1374
+ - **One gating predicate rules everything.** `unlocked(step)` — every
1375
+ step before it validates — drives the stepper's `upcoming`/`locked`
1376
+ states, `goToStep`'s guard, and (via `issues[current]`) `goNext`. A
1377
+ stepper jump is therefore exactly as safe as pressing Next the right
1378
+ number of times; the header can never smuggle the user past validation.
1379
+ Only steps already passed count as `done` — a defaulted step (Schedule
1380
+ starts valid on "send now") stays numbered (`upcoming`), not
1381
+ checkmarked, until the user actually moves past it, though it is
1382
+ jumpable straight away: there is genuinely nothing left to do there.
1383
+ - **Live issues, deferred surfacing.** Recomputing `issues` on every
1384
+ keystroke keeps the stepper and the summary truthful, but errors render
1385
+ only for `attempted` steps — a form that opens covered in red before the
1386
+ user typed anything is the classic wizard failure. Once raised, the
1387
+ summary and inline errors shrink live as each fix lands, and the inputs
1388
+ take plain `:errors` arrays (a non-empty `errors` prop already implies
1389
+ the error state — no separate `has-errors` wiring).
1390
+ - **Steps are four components, not one with a `type` prop.** Each step
1391
+ owns its inputs, its formatting helpers, and nothing else; the assembly
1392
+ is a `v-if` chain inside the `BbSmoothHeight` outlet. A single
1393
+ `WizardStep` with a renderer switch is the API-monster seed.
1394
+ - **`BbBaseButton` is the right stepper primitive.** The steps are
1395
+ clickable surfaces whose look is entirely bespoke — token-styled pills
1396
+ with a number/check bullet — and the primitive contributes what CSS
1397
+ can't: a real `<button>`, native `disabled` for locked steps, and a
1398
+ focus scaffold (the visible ring is ours, per its guide). `aria-current="step"`
1399
+ is set manually — the prop-based `ariaCurrentValue` only applies to
1400
+ exact-active _links_.
1401
+ - **One `BbSmoothHeight`, wrapping alert + outlet.** Both height changes
1402
+ on this page — the step swap and the summary toggling — animate through
1403
+ the same wrapper, so they compose into one glide when Next is blocked.
1404
+ Regions that appear _inside_ a step (the scheduled-date grid) are caught
1405
+ by the same resize observer; and the body textarea keeps fixed `rows`
1406
+ because an auto-growing textarea inside the wrapper would re-animate the
1407
+ outlet on every line break. Height motion is enabled only after mount
1408
+ (`:disabled` until a 300ms `onMounted` flag flips), so the first paint
1409
+ never animates in.
1410
+ - **Refresh restores everything** because the two halves of wizard state
1411
+ live in the right places: field values on the server (the list page
1412
+ created the draft record before navigating here, so `saveDraft` is an
1413
+ update, not a create), position in the URL. On load the requested
1414
+ `?step` is clamped to the first incomplete step, so a stale or forged
1415
+ link degrades to the right place instead of an unusable locked screen.
1416
+ - **The guard, submit and discard share one snapshot.** `dirty` is a JSON
1417
+ compare against the last save; `submit` and `discardDraft` reset the
1418
+ snapshot before navigating so the route-leave confirm never re-asks
1419
+ about changes that were just sent or deliberately destroyed.
1420
+ - **Sizing:** everything follows `md`-first — footer, topbar and step
1421
+ forms use default-size buttons and regular inputs; `sm` appears only on
1422
+ the dense inline surfaces (Review's Edit/segment links, the peek
1423
+ footer). One `variant="primary"` (Send/Schedule); Next is `secondary`;
1424
+ Save draft, Back and Send test are ghosts; the two destructive actions
1425
+ (discard, leave-with-changes) both ride `useConfirm`.
1426
+
1427
+ ## Variations
1428
+
1429
+ - **Branching steps**: make `STEPS` a computed — e.g. an A/B test
1430
+ campaign inserts a "Variants" step after Content. The status predicate,
1431
+ URL mapping and footer already work off the array, so nothing else
1432
+ changes.
1433
+ - **Autosave**: debounce a watcher on `draft` that calls a silent
1434
+ `saveDraft` (no toast); the footer button and the topbar save-state stay
1435
+ as the manual escape, and the leave guard almost never fires.
1436
+ - **Vertical checklist stepper** (Mailchimp's actual layout): swap
1437
+ `StepperHeader` for a left rail where each step row also shows its
1438
+ one-line summary and the step bodies expand in place — the context and
1439
+ its predicate are unchanged.
1440
+ - **Send time**: add an hour `BbSelect` beside the timezone and fold it
1441
+ into `sendAt` on save, replacing the fixed 9:00 AM policy.