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.
- package/LICENSE +21 -0
- package/README.md +274 -24
- package/bin/bitboss-ui-mcp.mjs +662 -0
- package/bin/bitboss-ui.mjs +710 -0
- package/bin/bitboss-ui.node.test.mjs +113 -0
- package/dist/ai/BbAccordion.md +528 -113
- package/dist/ai/BbAlert.md +380 -197
- package/dist/ai/BbAsterisk.md +46 -0
- package/dist/ai/BbAvatar.md +458 -178
- package/dist/ai/BbBadge.md +697 -225
- package/dist/ai/BbBadgeButton.md +54 -0
- package/dist/ai/BbBaseButton.md +491 -0
- package/dist/ai/BbBaseCheckbox.md +49 -0
- package/dist/ai/BbBaseCheckboxGroup.md +64 -0
- package/dist/ai/BbBaseCheckboxIcon.md +176 -0
- package/dist/ai/BbBaseColorInput.md +64 -0
- package/dist/ai/BbBaseColorPalette.md +39 -0
- package/dist/ai/BbBaseDatePicker.md +42 -0
- package/dist/ai/BbBaseDatePickerInput.md +73 -0
- package/dist/ai/BbBaseInputContainer.md +48 -0
- package/dist/ai/BbBaseNumberInput.md +71 -0
- package/dist/ai/BbBaseRadio.md +46 -0
- package/dist/ai/BbBaseRadioGroup.md +64 -0
- package/dist/ai/BbBaseRadioIcon.md +191 -0
- package/dist/ai/BbBaseRating.md +51 -0
- package/dist/ai/BbBaseSelect.md +88 -0
- package/dist/ai/BbBaseSlider.md +56 -0
- package/dist/ai/BbBaseSwitch.md +49 -0
- package/dist/ai/BbBaseSwitchGroup.md +64 -0
- package/dist/ai/BbBaseSwitchIcon.md +186 -0
- package/dist/ai/BbBaseTag.md +68 -0
- package/dist/ai/BbBaseTextInput.md +75 -0
- package/dist/ai/BbBaseTextarea.md +62 -0
- package/dist/ai/BbBaseTimePickerInput.md +62 -0
- package/dist/ai/BbBreadcrumbs.md +553 -503
- package/dist/ai/BbButton.md +841 -636
- package/dist/ai/BbCheckbox.md +585 -254
- package/dist/ai/BbCheckboxGroup.md +573 -361
- package/dist/ai/BbCollapsible.md +425 -103
- package/dist/ai/BbColorInput.md +536 -323
- package/dist/ai/BbColorPalette.md +569 -330
- package/dist/ai/BbConfirm.md +659 -136
- package/dist/ai/BbConfirmPortal.md +28 -0
- package/dist/ai/BbDatePicker.md +244 -0
- package/dist/ai/BbDatePickerInput.md +720 -388
- package/dist/ai/BbDialog.md +778 -99
- package/dist/ai/BbDropdown.md +1072 -763
- package/dist/ai/BbDropdownButton.md +525 -614
- package/dist/ai/BbDropdownGroup.md +34 -0
- package/dist/ai/BbDropzone.md +1206 -436
- package/dist/ai/BbForm.md +239 -0
- package/dist/ai/BbIcon.md +382 -212
- package/dist/ai/BbIndicator.md +283 -0
- package/dist/ai/BbNumberInput.md +717 -355
- package/dist/ai/BbOffCanvas.md +897 -498
- package/dist/ai/BbPagination.md +489 -535
- package/dist/ai/BbPopover.md +591 -546
- package/dist/ai/BbProgress.md +462 -69
- package/dist/ai/BbRadio.md +352 -229
- package/dist/ai/BbRadioGroup.md +437 -353
- package/dist/ai/BbRating.md +372 -225
- package/dist/ai/BbSelect.md +1399 -536
- package/dist/ai/BbSelectPopover.md +1255 -1578
- package/dist/ai/BbSlider.md +500 -256
- package/dist/ai/BbSmoothHeight.md +485 -139
- package/dist/ai/BbSpinner.md +718 -131
- package/dist/ai/BbSwitch.md +573 -119
- package/dist/ai/BbSwitchGroup.md +521 -214
- package/dist/ai/BbTable.md +1996 -2365
- package/dist/ai/BbTabs.md +1147 -0
- package/dist/ai/BbTabsList.md +29 -0
- package/dist/ai/BbTabsPanes.md +27 -0
- package/dist/ai/BbTabsRoot.md +57 -0
- package/dist/ai/BbTag.md +416 -292
- package/dist/ai/BbTextInput.md +878 -333
- package/dist/ai/BbTextarea.md +850 -255
- package/dist/ai/BbTimePicker.md +231 -0
- package/dist/ai/BbTimePickerInput.md +200 -0
- package/dist/ai/BbToast.md +669 -196
- package/dist/ai/BbToastPortal.md +28 -0
- package/dist/ai/BbTooltip.md +453 -346
- package/dist/ai/BbTree.md +993 -234
- package/dist/ai/ChipsBox.md +27 -199
- package/dist/ai/ClearableButton.md +21 -55
- package/dist/ai/CommaBox.md +25 -200
- package/dist/ai/CommonInputWrapper.md +42 -0
- package/dist/ai/CommonPopover.md +30 -510
- package/dist/ai/ErrorIcon.md +19 -56
- package/dist/ai/FlatListBox.md +35 -379
- package/dist/ai/GroupedListBox.md +37 -535
- package/dist/ai/GuidesComponent.md +21 -0
- package/dist/ai/ListBox.md +38 -231
- package/dist/ai/OptionsContainer.md +34 -253
- package/dist/ai/WarningIcon.md +21 -0
- package/dist/ai/components.json +15897 -0
- package/dist/ai/composables/useBbConfig.md +80 -0
- package/dist/ai/composables/useBbFormContext.md +110 -0
- package/dist/ai/composables/useBbTableContext.md +167 -0
- package/dist/ai/composables/useBbTabsContext.md +118 -0
- package/dist/ai/composables/useBroadcastChannelInstance.md +97 -0
- package/dist/ai/composables/useConfirm.md +313 -0
- package/dist/ai/composables/useCountdown.md +86 -0
- package/dist/ai/composables/useId.md +60 -0
- package/dist/ai/composables/useMobile.md +85 -0
- package/dist/ai/composables/useToast.md +238 -0
- package/dist/ai/guides/agent-contract.md +165 -0
- package/dist/ai/guides/ai-router.md +113 -0
- package/dist/ai/guides/app-layout.md +318 -0
- package/dist/ai/guides/coherence-playbook.md +136 -0
- package/dist/ai/guides/component-picker.md +236 -0
- package/dist/ai/guides/design-language.md +478 -0
- package/dist/ai/guides/design-tokens.md +450 -0
- package/dist/ai/guides/fetch-items-playbook.md +161 -0
- package/dist/ai/guides/floating-bottom-panel.md +130 -0
- package/dist/ai/guides/icons-policy.md +257 -0
- package/dist/ai/guides/inertia-helpers.md +1443 -0
- package/dist/ai/guides/inline-edit-playbook.md +267 -0
- package/dist/ai/guides/installation-and-plugin-setup.md +440 -0
- package/dist/ai/guides/migration/components/bb-alert.md +37 -0
- package/dist/ai/guides/migration/components/bb-avatar.md +24 -0
- package/dist/ai/guides/migration/components/bb-badge.md +110 -0
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +26 -0
- package/dist/ai/guides/migration/components/bb-button.md +55 -0
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +54 -0
- package/dist/ai/guides/migration/components/bb-checkbox.md +45 -0
- package/dist/ai/guides/migration/components/bb-chip.md +35 -0
- package/dist/ai/guides/migration/components/bb-collapsible.md +26 -0
- package/dist/ai/guides/migration/components/bb-color-input.md +23 -0
- package/dist/ai/guides/migration/components/bb-color-palette.md +31 -0
- package/dist/ai/guides/migration/components/bb-date-picker-input.md +84 -0
- package/dist/ai/guides/migration/components/bb-dialog.md +46 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +31 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +36 -0
- package/dist/ai/guides/migration/components/bb-dropzone.md +27 -0
- package/dist/ai/guides/migration/components/bb-icon.md +27 -0
- package/dist/ai/guides/migration/components/bb-offcanvas.md +63 -0
- package/dist/ai/guides/migration/components/bb-pagination.md +24 -0
- package/dist/ai/guides/migration/components/bb-popover.md +52 -0
- package/dist/ai/guides/migration/components/bb-rating.md +24 -0
- package/dist/ai/guides/migration/components/bb-select-popover.md +59 -0
- package/dist/ai/guides/migration/components/bb-select.md +69 -0
- package/dist/ai/guides/migration/components/bb-slider.md +25 -0
- package/dist/ai/guides/migration/components/bb-smooth-height.md +45 -0
- package/dist/ai/guides/migration/components/bb-spinner.md +23 -0
- package/dist/ai/guides/migration/components/bb-table.md +66 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +47 -0
- package/dist/ai/guides/migration/components/bb-tag.md +29 -0
- package/dist/ai/guides/migration/components/bb-text-input.md +37 -0
- package/dist/ai/guides/migration/components/bb-toast.md +47 -0
- package/dist/ai/guides/migration/components/bb-tooltip.md +34 -0
- package/dist/ai/guides/migration/components/bb-tree.md +77 -0
- package/dist/ai/guides/migration/components/use-confirm.md +46 -0
- package/dist/ai/guides/migration/v2-to-v3.md +649 -0
- package/dist/ai/guides/options-items-playbook.md +222 -0
- package/dist/ai/guides/page-shell.md +113 -0
- package/dist/ai/guides/validated-forms.md +177 -0
- package/dist/ai/index.md +158 -32
- package/dist/ai/recipes/inertia/approvals-inbox.md +1635 -0
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1765 -0
- package/dist/ai/recipes/inertia/layout-scaffold.md +385 -0
- package/dist/ai/recipes/inertia/onboarding.md +1791 -0
- package/dist/ai/recipes/inertia/ownership-atlas.md +1327 -0
- package/dist/ai/recipes/inertia/record-form.md +1489 -0
- package/dist/ai/recipes/inertia/records-workspace.md +1416 -0
- package/dist/ai/recipes/inertia/upload-center.md +2003 -0
- package/dist/ai/recipes/inertia/wizard-form.md +1500 -0
- package/dist/ai/recipes/nuxt/approvals-inbox.md +1578 -0
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1703 -0
- package/dist/ai/recipes/nuxt/layout-scaffold.md +385 -0
- package/dist/ai/recipes/nuxt/onboarding.md +1724 -0
- package/dist/ai/recipes/nuxt/record-form.md +1502 -0
- package/dist/ai/recipes/nuxt/records-workspace.md +1329 -0
- package/dist/ai/recipes/nuxt/upload-center.md +1886 -0
- package/dist/ai/recipes/nuxt/wizard-form.md +1509 -0
- package/dist/ai/recipes/vue/approvals-inbox.md +1496 -0
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1594 -0
- package/dist/ai/recipes/vue/layout-scaffold.md +385 -0
- package/dist/ai/recipes/vue/onboarding.md +1679 -0
- package/dist/ai/recipes/vue/record-form.md +1586 -0
- package/dist/ai/recipes/vue/records-workspace.md +1245 -0
- package/dist/ai/recipes/vue/upload-center.md +1845 -0
- package/dist/ai/recipes/vue/wizard-form.md +1441 -0
- package/dist/ai/source/BbAccordion.md +123 -0
- package/dist/ai/source/BbAlert.md +401 -0
- package/dist/ai/source/BbAsterisk.md +32 -0
- package/dist/ai/source/BbAvatar.md +258 -0
- package/dist/ai/source/BbBadge.md +560 -0
- package/dist/ai/source/BbBadgeButton.md +490 -0
- package/dist/ai/source/BbBaseButton.md +682 -0
- package/dist/ai/source/BbBaseCheckbox.md +461 -0
- package/dist/ai/source/BbBaseCheckboxGroup.md +554 -0
- package/dist/ai/source/BbBaseCheckboxIcon.md +201 -0
- package/dist/ai/source/BbBaseColorInput.md +416 -0
- package/dist/ai/source/BbBaseColorPalette.md +934 -0
- package/dist/ai/source/BbBaseDatePicker.md +1001 -0
- package/dist/ai/source/BbBaseDatePickerInput.md +1785 -0
- package/dist/ai/source/BbBaseInputContainer.md +1210 -0
- package/dist/ai/source/BbBaseNumberInput.md +617 -0
- package/dist/ai/source/BbBaseRadio.md +377 -0
- package/dist/ai/source/BbBaseRadioGroup.md +533 -0
- package/dist/ai/source/BbBaseRadioIcon.md +153 -0
- package/dist/ai/source/BbBaseRating.md +573 -0
- package/dist/ai/source/BbBaseSelect.md +898 -0
- package/dist/ai/source/BbBaseSlider.md +1085 -0
- package/dist/ai/source/BbBaseSwitch.md +246 -0
- package/dist/ai/source/BbBaseSwitchGroup.md +302 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +206 -0
- package/dist/ai/source/BbBaseTag.md +694 -0
- package/dist/ai/source/BbBaseTextInput.md +511 -0
- package/dist/ai/source/BbBaseTextarea.md +480 -0
- package/dist/ai/source/BbBaseTimePickerInput.md +1031 -0
- package/dist/ai/source/BbBreadcrumbs.md +815 -0
- package/dist/ai/source/BbButton.md +1006 -0
- package/dist/ai/source/BbCheckbox.md +326 -0
- package/dist/ai/source/BbCheckboxGroup.md +419 -0
- package/dist/ai/source/BbCollapsible.md +137 -0
- package/dist/ai/source/BbColorInput.md +322 -0
- package/dist/ai/source/BbColorPalette.md +371 -0
- package/dist/ai/source/BbConfirm.md +193 -0
- package/dist/ai/source/BbConfirmPortal.md +74 -0
- package/dist/ai/source/BbDatePicker.md +729 -0
- package/dist/ai/source/BbDatePickerInput.md +525 -0
- package/dist/ai/source/BbDialog.md +818 -0
- package/dist/ai/source/BbDropdown.md +2387 -0
- package/dist/ai/source/BbDropdownButton.md +315 -0
- package/dist/ai/source/BbDropdownGroup.md +1259 -0
- package/dist/ai/source/BbDropzone.md +864 -0
- package/dist/ai/source/BbForm.md +100 -0
- package/dist/ai/source/BbIcon.md +214 -0
- package/dist/ai/source/BbIndicator.md +298 -0
- package/dist/ai/source/BbNumberInput.md +374 -0
- package/dist/ai/source/BbOffCanvas.md +1266 -0
- package/dist/ai/source/BbPagination.md +835 -0
- package/dist/ai/source/BbPopover.md +860 -0
- package/dist/ai/source/BbProgress.md +140 -0
- package/dist/ai/source/BbRadio.md +303 -0
- package/dist/ai/source/BbRadioGroup.md +420 -0
- package/dist/ai/source/BbRating.md +369 -0
- package/dist/ai/source/BbSelect.md +688 -0
- package/dist/ai/source/BbSelectPopover.md +2234 -0
- package/dist/ai/source/BbSlider.md +378 -0
- package/dist/ai/source/BbSmoothHeight.md +265 -0
- package/dist/ai/source/BbSpinner.md +127 -0
- package/dist/ai/source/BbSwitch.md +175 -0
- package/dist/ai/source/BbSwitchGroup.md +240 -0
- package/dist/ai/source/BbTable.md +3433 -0
- package/dist/ai/source/BbTabs.md +403 -0
- package/dist/ai/source/BbTabsList.md +578 -0
- package/dist/ai/source/BbTabsPanes.md +368 -0
- package/dist/ai/source/BbTabsRoot.md +372 -0
- package/dist/ai/source/BbTag.md +390 -0
- package/dist/ai/source/BbTextInput.md +352 -0
- package/dist/ai/source/BbTextarea.md +337 -0
- package/dist/ai/source/BbTimePicker.md +595 -0
- package/dist/ai/source/BbTimePickerInput.md +376 -0
- package/dist/ai/source/BbToast.md +525 -0
- package/dist/ai/source/BbToastPortal.md +482 -0
- package/dist/ai/source/BbTooltip.md +522 -0
- package/dist/ai/source/BbTree.md +323 -0
- package/dist/ai/source/ChipsBox.md +201 -0
- package/dist/ai/source/ClearableButton.md +70 -0
- package/dist/ai/source/CommaBox.md +202 -0
- package/dist/ai/source/CommonInputWrapper.md +554 -0
- package/dist/ai/source/CommonPopover.md +616 -0
- package/dist/ai/source/ErrorIcon.md +43 -0
- package/dist/ai/source/FlatListBox.md +396 -0
- package/dist/ai/source/GroupedListBox.md +540 -0
- package/dist/ai/source/GuidesComponent.md +383 -0
- package/dist/ai/source/ListBox.md +238 -0
- package/dist/ai/source/OptionsContainer.md +191 -0
- package/dist/ai/source/WarningIcon.md +47 -0
- package/dist/alert-variants.d.ts +19 -0
- package/dist/assets/css/reset.css_inline.js +4 -0
- package/dist/assets/svgs/alert.svg_raw.js +4 -0
- package/dist/assets/svgs/calendar.svg_raw.js +4 -0
- package/dist/assets/svgs/check_stroke.svg_raw.js +4 -0
- package/dist/assets/svgs/chevron_down.svg_raw.js +4 -0
- package/dist/assets/svgs/chevron_right.svg_raw.js +4 -0
- package/dist/assets/svgs/clear.svg_raw.js +4 -0
- package/dist/assets/svgs/clock.svg_raw.js +4 -0
- package/dist/assets/svgs/error.svg_raw.js +4 -0
- package/dist/assets/svgs/search.svg_raw.js +4 -0
- package/dist/assets/svgs/sort.svg_raw.js +4 -0
- package/dist/assets/svgs/spinner.svg_raw.js +4 -0
- package/dist/assets/svgs/user.svg_raw.js +4 -0
- package/dist/badge-variants.d.ts +19 -0
- package/dist/button-variants.d.ts +21 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +9 -3
- package/dist/components/BbAccordion/BbAccordion.vue.js +6 -0
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/components/BbAccordion/types.d.ts +12 -8
- package/dist/components/BbAlert/BbAlert.vue.d.ts +12 -3
- package/dist/components/BbAlert/BbAlert.vue.js +6 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/BbAlert/types.d.ts +56 -12
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue.js +6 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -0
- package/dist/components/BbAvatar/BbAvatar.vue.js +6 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/BbAvatar/types.d.ts +6 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +3 -0
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +5 -0
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +15 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue.js +5 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/BbBadge/BbBadge.vue.d.ts +8 -1
- package/dist/components/BbBadge/BbBadge.vue.js +6 -0
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +12 -0
- package/dist/components/BbBadge/BbBadgeButton.vue.js +5 -0
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/components/BbBadge/badgeButtonContext.d.ts +27 -0
- package/dist/components/BbBadge/badgeButtonContext.js +5 -0
- package/dist/components/BbBadge/types.d.ts +61 -16
- package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +13 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue.js +6 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +171 -0
- package/dist/components/BbBaseButton/RouterComponent.vue.js +5 -0
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/components/BbBaseButton/types.d.ts +191 -0
- package/dist/components/BbBaseButton/types.js +33 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +40 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +6 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +145 -0
- package/dist/components/BbBaseCheckbox/types.d.ts +224 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +6 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +257 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.js +6 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +47 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +42 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +6 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/components/BbBaseColorInput/types.d.ts +210 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +13 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.js +6 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +395 -0
- package/dist/components/BbBaseColorPalette/types.d.ts +40 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +6 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +300 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +44 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +310 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/BbBaseDatePicker/typeahead.d.ts +112 -0
- package/dist/components/BbBaseDatePicker/typeahead.js +37 -0
- package/dist/components/BbBaseDatePicker/types.d.ts +97 -0
- package/dist/components/BbBaseDatePicker/useDatePickerContext.d.ts +58 -0
- package/dist/components/BbBaseDatePicker/useDatePickerContext.js +11 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +30 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +6 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +716 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts +30 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +6 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +204 -0
- package/dist/components/BbBaseDatePickerInput/types.d.ts +311 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.d.ts +17 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +6 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +191 -0
- package/dist/components/BbBaseInputContainer/types.d.ts +197 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +52 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +6 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +215 -0
- package/dist/components/BbBaseNumberInput/types.d.ts +211 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +33 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.js +6 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/components/BbBaseRadio/types.d.ts +179 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.js +6 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +177 -0
- package/dist/components/BbBaseRadioGroup/types.d.ts +223 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.js +6 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/BbBaseRadioIcon/types.d.ts +41 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +38 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue.js +6 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +184 -0
- package/dist/components/BbBaseRating/types.d.ts +168 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +19 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +6 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +307 -0
- package/dist/components/BbBaseSelect/types.d.ts +297 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +35 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +6 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +324 -0
- package/dist/components/BbBaseSlider/types.d.ts +200 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +35 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.js +6 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/BbBaseSwitch/types.d.ts +10 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +6 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbBaseSwitchGroup/types.d.ts +8 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js +6 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/BbBaseSwitchIcon/types.d.ts +48 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +50 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue.js +6 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +266 -0
- package/dist/components/BbBaseTag/types.d.ts +160 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +45 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +6 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +200 -0
- package/dist/components/BbBaseTextInput/types.d.ts +209 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +39 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +6 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +175 -0
- package/dist/components/BbBaseTextarea/types.d.ts +170 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +27 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +6 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +522 -0
- package/dist/components/BbBaseTimePickerInput/types.d.ts +151 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +0 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.js +6 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +224 -0
- package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.js +47 -0
- package/dist/components/BbBreadcrumbs/types.d.ts +37 -22
- package/dist/components/BbButton/BbButton.vue.d.ts +6 -5
- package/dist/components/BbButton/BbButton.vue.js +6 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +181 -0
- package/dist/components/BbButton/types.d.ts +48 -47
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -3
- package/dist/components/BbCheckbox/BbCheckbox.vue.js +6 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/BbCheckbox/types.d.ts +31 -10
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -13
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.js +6 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbCheckboxGroup/types.d.ts +51 -23
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue.js +6 -0
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/BbCollapsible/types.d.ts +13 -8
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +10 -1
- package/dist/components/BbColorInput/BbColorInput.vue.js +6 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +177 -0
- package/dist/components/BbColorInput/types.d.ts +44 -11
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +5 -8
- package/dist/components/BbColorPalette/BbColorPalette.vue.js +5 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/components/BbColorPalette/types.d.ts +71 -52
- package/dist/components/BbConfirm/BbConfirm.vue.js +6 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +5 -6
- package/dist/components/BbConfirm/BbConfirmPortal.vue.js +5 -0
- package/dist/components/BbConfirm/BbConfirmPortal.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +37 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.js +6 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +319 -0
- package/dist/components/BbDatePicker/types.d.ts +159 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.js +6 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +179 -0
- package/dist/components/BbDatePickerInput/types.d.ts +134 -16
- package/dist/components/BbDialog/BbDialog.vue.d.ts +14 -6
- package/dist/components/BbDialog/BbDialog.vue.js +6 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +214 -0
- package/dist/components/BbDialog/types.d.ts +146 -1
- package/dist/components/BbDialog/useDialogStack.d.ts +5 -0
- package/dist/components/BbDialog/useDialogStack.js +20 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.js +6 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +14 -7
- package/dist/components/BbDropdown/BbDropdown.vue.js +6 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +561 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +44 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue.js +5 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +31 -0
- package/dist/components/BbDropdown/BbDropdownList.vue.js +6 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +470 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +16 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.js +5 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/components/BbDropdown/normalizeGroups.d.ts +18 -0
- package/dist/components/BbDropdown/normalizeGroups.js +46 -0
- package/dist/components/BbDropdown/types.d.ts +468 -46
- package/dist/components/BbDropdown/types.js +4 -0
- package/dist/components/BbDropdown/useDropdownContext.d.ts +89 -0
- package/dist/components/BbDropdown/useDropdownContext.js +9 -0
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +108 -0
- package/dist/components/BbDropdown/useDropdownGroupRegistry.js +5 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.js +6 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/components/BbDropdownButton/types.d.ts +47 -52
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -4
- package/dist/components/BbDropzone/BbDropzone.vue.js +6 -0
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +308 -0
- package/dist/components/BbDropzone/types.d.ts +77 -8
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -2
- package/dist/components/BbIcon/BbIcon.vue.js +6 -0
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/BbIcon/types.d.ts +6 -19
- package/dist/components/BbIndicator/BbIndicator.vue.d.ts +14 -0
- package/dist/components/BbIndicator/BbIndicator.vue.js +6 -0
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/BbIndicator/types.d.ts +49 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -6
- package/dist/components/BbNumberInput/BbNumberInput.vue.js +6 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +194 -0
- package/dist/components/BbNumberInput/types.d.ts +40 -4
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +16 -10
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.js +6 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +284 -0
- package/dist/components/BbOffCanvas/types.d.ts +71 -39
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +25 -0
- package/dist/components/BbOffCanvas/useOffCanvasStack.js +68 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +9 -4
- package/dist/components/BbPagination/BbPagination.vue.js +6 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BbPagination/paginationFit.d.ts +38 -0
- package/dist/components/BbPagination/paginationFit.js +13 -0
- package/dist/components/BbPagination/types.d.ts +51 -16
- package/dist/components/BbPopover/BbPopover.vue.d.ts +16 -15
- package/dist/components/BbPopover/BbPopover.vue.js +6 -0
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +309 -0
- package/dist/components/BbPopover/escapeStack.d.ts +6 -0
- package/dist/components/BbPopover/escapeStack.js +10 -0
- package/dist/components/BbPopover/types.d.ts +90 -31
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -0
- package/dist/components/BbProgress/BbProgress.vue.js +6 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/BbProgress/types.d.ts +15 -1
- package/dist/components/BbRadio/BbRadio.vue.d.ts +5 -3
- package/dist/components/BbRadio/BbRadio.vue.js +6 -0
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +133 -0
- package/dist/components/BbRadio/types.d.ts +32 -9
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -14
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.js +6 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +186 -0
- package/dist/components/BbRadioGroup/types.d.ts +48 -22
- package/dist/components/BbRating/BbRating.vue.d.ts +4 -1
- package/dist/components/BbRating/BbRating.vue.js +6 -0
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +150 -0
- package/dist/components/BbRating/types.d.ts +44 -10
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -11
- package/dist/components/BbSelect/BbSelect.vue.js +6 -0
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +241 -0
- package/dist/components/BbSelect/types.d.ts +112 -59
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +1 -10
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.js +6 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +639 -0
- package/dist/components/BbSelectPopover/types.d.ts +197 -105
- package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -6
- package/dist/components/BbSlider/BbSlider.vue.js +6 -0
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +166 -0
- package/dist/components/BbSlider/types.d.ts +44 -13
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -1
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.js +6 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/components/BbSmoothHeight/types.d.ts +17 -2
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbSpinner/BbSpinner.vue.js +6 -0
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/BbSpinner/types.d.ts +10 -3
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +5 -3
- package/dist/components/BbSwitch/BbSwitch.vue.js +6 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +142 -0
- package/dist/components/BbSwitch/types.d.ts +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +4 -14
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.js +6 -0
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbSwitchGroup/types.d.ts +3 -22
- package/dist/components/BbTable/BbTable.vue.d.ts +58 -31
- package/dist/components/BbTable/BbTable.vue.js +6 -0
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +900 -0
- package/dist/components/BbTable/types.d.ts +213 -37
- package/dist/components/BbTable/utils.d.ts +9 -1
- package/dist/components/BbTable/utils.js +53 -0
- package/dist/components/BbTabs/BbTabs.vue.d.ts +20 -0
- package/dist/components/BbTabs/BbTabs.vue.js +6 -0
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +19 -0
- package/dist/components/BbTabs/BbTabsList.vue.js +6 -0
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +123 -0
- package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +16 -0
- package/dist/components/BbTabs/BbTabsPanes.vue.js +6 -0
- package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +20 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.js +5 -0
- package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/BbTabs/types.d.ts +264 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +19 -6
- package/dist/components/BbTag/BbTag.vue.js +6 -0
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +187 -0
- package/dist/components/BbTag/types.d.ts +55 -17
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -1
- package/dist/components/BbTextInput/BbTextInput.vue.js +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +195 -0
- package/dist/components/BbTextInput/types.d.ts +31 -4
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -1
- package/dist/components/BbTextarea/BbTextarea.vue.js +6 -0
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/components/BbTextarea/types.d.ts +33 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +33 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue.js +6 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BbTimePicker/types.d.ts +133 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +25 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.js +6 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +157 -0
- package/dist/components/BbTimePickerInput/types.d.ts +174 -0
- package/dist/components/BbToast/BbToast.vue.d.ts +2 -3
- package/dist/components/BbToast/BbToast.vue.js +6 -0
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +17 -8
- package/dist/components/BbToast/BbToastMessage.vue.js +5 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +30 -0
- package/dist/components/BbToast/BbToastPortal.vue.js +5 -0
- package/dist/components/BbToast/BbToastPortal.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +8 -0
- package/dist/components/BbToast/BbToastRegion.vue.js +5 -0
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/components/BbToast/types.d.ts +69 -5
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +10 -3
- package/dist/components/BbTooltip/BbTooltip.vue.js +6 -0
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/components/BbTooltip/types.d.ts +69 -11
- package/dist/components/BbTree/BbTree.vue.d.ts +28 -13
- package/dist/components/BbTree/BbTree.vue.js +6 -0
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +19 -0
- package/dist/components/BbTree/BbTreeLevel.vue.js +5 -0
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/BbTree/context.d.ts +17 -0
- package/dist/components/BbTree/context.js +4 -0
- package/dist/components/BbTree/types.d.ts +94 -41
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -1
- package/dist/components/ChipsBox/ChipsBox.vue.js +5 -0
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/components/ChipsBox/types.d.ts +12 -5
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -1
- package/dist/components/ClearableButton/ClearableButton.vue.js +6 -0
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/ClearableButton/types.d.ts +7 -1
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +5 -0
- package/dist/components/CloseIcon/CloseButton.vue.js +7 -0
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/components/CloseIcon/types.d.ts +2 -0
- package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -1
- package/dist/components/CommaBox/CommaBox.vue.js +6 -0
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/components/CommaBox/types.d.ts +6 -7
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.d.ts +19 -0
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +6 -0
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/components/CommonInputWrapper/types.d.ts +96 -0
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +9 -3
- package/dist/components/CommonPopover/CommonPopover.vue.js +6 -0
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/components/CommonPopover/types.d.ts +65 -16
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -0
- package/dist/components/ErrorIcon/ErrorIcon.vue.js +6 -0
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -5
- package/dist/components/FlatListBox/FlatListBox.vue.js +5 -0
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -5
- package/dist/components/GroupedListBox/GroupedListBox.vue.js +5 -0
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +218 -0
- package/dist/components/ListBox/ListBox.vue.d.ts +3 -6
- package/dist/components/ListBox/ListBox.vue.js +5 -0
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue.js +5 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/OptionsContainer/types.d.ts +14 -24
- package/dist/components/Transitions/ScaleFade.vue.d.ts +2 -2
- package/dist/components/Transitions/ScaleFade.vue.js +5 -0
- package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/Transitions/Slide.vue.d.ts +15 -0
- package/dist/components/Transitions/Slide.vue.js +7 -0
- package/dist/components/Transitions/Slide.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +5 -0
- package/dist/components/WarningIcon/WarningIcon.vue.js +6 -0
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/WarningIcon/types.d.ts +3 -0
- package/dist/composables/__testResets.d.ts +1 -0
- package/dist/composables/useActiveInactiveState.d.ts +4 -0
- package/dist/composables/useActiveInactiveState.js +21 -0
- package/dist/composables/useBaseOptions.d.ts +3 -3
- package/dist/composables/useBaseOptions.js +31 -0
- package/dist/composables/useBbConfig.d.ts +8 -37
- package/dist/composables/useBbConfig.js +5 -0
- package/dist/composables/useBbDropdownContext.d.ts +89 -0
- package/dist/composables/useBbDropdownContext.js +46 -0
- package/dist/composables/useBbFormContext.d.ts +90 -0
- package/dist/composables/useBbFormContext.js +69 -0
- package/dist/composables/useBbTableContext.d.ts +195 -0
- package/dist/composables/useBbTableContext.js +208 -0
- package/dist/composables/useBbTabsContext.d.ts +111 -0
- package/dist/composables/useBbTabsContext.js +225 -0
- package/dist/composables/useBreakpoint.d.ts +13 -0
- package/dist/composables/useBreakpoint.js +39 -0
- package/dist/composables/useBroadcastChannelInstance.d.ts +1 -3
- package/dist/composables/useBroadcastChannelInstance.js +39 -0
- package/dist/composables/useCancelableFunction.js +37 -0
- package/dist/composables/useClosingInert.d.ts +28 -0
- package/dist/composables/useClosingInert.js +23 -0
- package/dist/composables/useCoherence.js +16 -0
- package/dist/composables/useConfirm.d.ts +278 -68
- package/dist/composables/useConfirm.js +130 -0
- package/dist/composables/useCountdown.js +42 -0
- package/dist/composables/useHashedWatcher.d.ts +17 -0
- package/dist/composables/useHashedWatcher.js +14 -0
- package/dist/composables/useId.d.ts +3 -2
- package/dist/composables/useIndexById.js +16 -0
- package/dist/composables/useInertiaPage.d.ts +10 -0
- package/dist/composables/useInertiaPage.js +8 -0
- package/dist/composables/useItemText.js +17 -0
- package/dist/composables/useItemValue.js +9 -0
- package/dist/composables/useItemsGetter.d.ts +1 -1
- package/dist/composables/useItemsGetter.js +30 -0
- package/dist/composables/useListboxFocus.js +66 -0
- package/dist/composables/useLocale.d.ts +1 -1
- package/dist/composables/useLocale.js +11 -0
- package/dist/composables/useLogger.d.ts +1 -1
- package/dist/composables/useLogger.js +10 -0
- package/dist/composables/useMinimalQueue.d.ts +1 -1
- package/dist/composables/useMobile.js +7 -0
- package/dist/composables/useOnFalsy.d.ts +2 -0
- package/dist/composables/useOnFalsy.js +9 -0
- package/dist/composables/useOnTruthy.d.ts +7 -0
- package/dist/composables/useOnTruthy.js +9 -0
- package/dist/composables/usePrefill.d.ts +2 -1
- package/dist/composables/usePrefill.js +24 -0
- package/dist/composables/useQuery.d.ts +15 -3
- package/dist/composables/useQuery.js +42 -0
- package/dist/composables/useRoute.js +11 -0
- package/dist/composables/useRouter.js +8 -0
- package/dist/composables/useSafeArea.d.ts +51 -0
- package/dist/composables/useSafeArea.js +16 -0
- package/dist/composables/useSegmentedFields.d.ts +104 -0
- package/dist/composables/useSegmentedFields.js +159 -0
- package/dist/composables/useTableWidthContext.d.ts +5 -0
- package/dist/composables/useTableWidthContext.js +42 -0
- package/dist/composables/useToast.d.ts +40 -70
- package/dist/composables/useToast.js +58 -0
- package/dist/composables/useTopLayer.d.ts +9 -0
- package/dist/composables/useTopLayer.js +7 -0
- package/dist/composables/useUntil.js +13 -0
- package/dist/composables/useViewportWidth.d.ts +17 -0
- package/dist/composables/useViewportWidth.js +6 -0
- package/dist/confirm-variants.d.ts +17 -0
- package/dist/deprecation/ai-deprecations.json.d.ts +784 -0
- package/dist/deprecation/ai-deprecations.json.js +4 -0
- package/dist/deprecation/removedProps.d.ts +3 -0
- package/dist/deprecation/removedProps.js +13 -0
- package/dist/directives/bbColor.d.ts +65 -0
- package/dist/directives/bbColor.js +24 -0
- package/dist/directives/bbDate.d.ts +66 -0
- package/dist/directives/bbDate.js +24 -0
- package/dist/directives/bbDropdown.d.ts +15 -11
- package/dist/directives/bbDropdown.js +23 -0
- package/dist/directives/bbTime.d.ts +64 -0
- package/dist/directives/bbTime.js +24 -0
- package/dist/directives/bbTooltip.d.ts +16 -11
- package/dist/directives/bbTooltip.js +24 -0
- package/dist/directives/createPopoverDirective.js +54 -0
- package/dist/dropdown-item-variants.d.ts +17 -0
- package/dist/i18n/index.d.ts +51 -3
- package/dist/i18n/index.js +27 -0
- package/dist/i18n/locales/cs.json +115 -0
- package/dist/i18n/locales/da.json +115 -0
- package/dist/i18n/locales/de.json +115 -0
- package/dist/i18n/locales/el.json +115 -0
- package/dist/i18n/locales/en.json +115 -0
- package/dist/i18n/locales/es.json +115 -0
- package/dist/i18n/locales/fi.json +115 -0
- package/dist/i18n/locales/fr.json +115 -0
- package/dist/i18n/locales/hu.json +115 -0
- package/dist/i18n/locales/it.json +115 -0
- package/dist/i18n/locales/ja.json +115 -0
- package/dist/i18n/locales/ko.json +115 -0
- package/dist/i18n/locales/nb.json +115 -0
- package/dist/i18n/locales/nl.json +115 -0
- package/dist/i18n/locales/pl.json +115 -0
- package/dist/i18n/locales/pt.json +115 -0
- package/dist/i18n/locales/ro.json +115 -0
- package/dist/i18n/locales/ru.json +115 -0
- package/dist/i18n/locales/sv.json +115 -0
- package/dist/i18n/locales/tr.json +115 -0
- package/dist/i18n/locales/uk.json +115 -0
- package/dist/i18n/locales/zh-cn.json +115 -0
- package/dist/icons-whitelist.d.ts +8 -0
- package/dist/index.d.ts +96 -79
- package/dist/index.js +76 -82
- package/dist/indicator-variants.d.ts +20 -0
- package/dist/llms-full.txt +79703 -0
- package/dist/llms-medium.txt +1514 -0
- package/dist/llms.txt +105 -0
- package/dist/locale-blueprint.json +141 -0
- package/dist/locale-registry.d.ts +37 -0
- package/dist/nuxt-module.d.ts +3 -0
- package/dist/nuxt.js +19 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/plugin.js +22 -0
- package/dist/reset.css +1 -0
- package/dist/reset.d.ts +0 -0
- package/dist/runtime/nuxt-plugin.d.ts +2 -0
- package/dist/runtime/nuxt-plugin.js +24 -0
- package/dist/styles.css +2 -0
- package/dist/styles.d.ts +0 -0
- package/dist/toast-variants.d.ts +20 -0
- package/dist/tooltip-variants.d.ts +17 -0
- package/dist/types/ActionButton.d.ts +32 -0
- package/dist/types/AlertVariant.d.ts +16 -0
- package/dist/types/BadgeVariant.d.ts +16 -0
- package/dist/types/ButtonVariant.d.ts +17 -0
- package/dist/types/Classes.d.ts +1 -1
- package/dist/types/ColumnName.d.ts +1 -1
- package/dist/types/CommonProps.d.ts +68 -277
- package/dist/types/Config.d.ts +84 -0
- package/dist/types/ConfirmVariant.d.ts +15 -0
- package/dist/types/DropdownItemVariant.d.ts +18 -0
- package/dist/types/Icon.d.ts +5 -7
- package/dist/types/IndicatorVariant.d.ts +16 -0
- package/dist/types/InputDirection.d.ts +15 -0
- package/dist/types/ItemAccessor.d.ts +21 -0
- package/dist/types/Placement.d.ts +6 -0
- package/dist/types/ResponsiveSize.d.ts +20 -0
- package/dist/types/SizeScale.d.ts +8 -0
- package/dist/types/ToastVariant.d.ts +17 -0
- package/dist/types/TooltipVariant.d.ts +18 -0
- package/dist/utilities/functions/bytesToUnit.d.ts +2 -0
- package/dist/utilities/functions/bytesToUnit.js +18 -0
- package/dist/utilities/functions/clampPrecision.js +10 -0
- package/dist/utilities/functions/convertDateValue.d.ts +23 -10
- package/dist/utilities/functions/convertDateValue.js +12 -0
- package/dist/utilities/functions/deburr.js +5 -0
- package/dist/utilities/functions/empty.js +5 -0
- package/dist/utilities/functions/flattenTree.d.ts +1 -1
- package/dist/utilities/functions/hash.js +5 -0
- package/dist/utilities/functions/isDateDisabled.d.ts +1 -0
- package/dist/utilities/functions/isDateDisabled.js +20 -0
- package/dist/utilities/functions/isEqual.js +5 -0
- package/dist/utilities/functions/isNotEmpty.js +5 -0
- package/dist/utilities/functions/matchAnyKey.d.ts +1 -1
- package/dist/utilities/functions/matchAnyKey.js +15 -0
- package/dist/utilities/functions/parseSize.d.ts +1 -1
- package/dist/utilities/functions/parseSize.js +15 -0
- package/dist/utilities/functions/percentage.js +11 -0
- package/dist/utilities/functions/pipe.d.ts +1 -1
- package/dist/utilities/functions/reject.d.ts +25 -0
- package/dist/utilities/functions/reject.js +28 -0
- package/dist/utilities/functions/resolveEnumProp.d.ts +19 -0
- package/dist/utilities/functions/resolveEnumProp.js +5 -0
- package/dist/utilities/functions/slotKey.d.ts +13 -0
- package/dist/utilities/functions/slotKey.js +4 -0
- package/dist/utilities/functions/sort.d.ts +2 -2
- package/dist/utilities/functions/sort.js +19 -0
- package/dist/utilities/functions/throttle.js +5 -0
- package/dist/utilities/functions/waitFor.d.ts +9 -2
- package/dist/utilities/functions/waitFor.js +14 -0
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +11 -0
- package/dist/utilities/functions/warnRemovedAttrs.js +20 -0
- package/dist/utilities/functions/when.js +5 -0
- package/dist/utilities/misc/iconsInjectionKey.d.ts +15 -0
- package/dist/utilities/misc/iconsInjectionKey.js +4 -0
- package/dist/utilities/misc/transitions.d.ts +5 -0
- package/dist/utilities/misc/transitions.js +8 -0
- package/dist/utils/injectLibraryStyles.d.ts +6 -0
- package/dist/utils/injectLibraryStyles.js +38 -0
- package/dist/validated/BbCheckbox.vue.d.ts +29 -0
- package/dist/validated/BbCheckbox.vue.js +5 -0
- package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/validated/BbCheckboxGroup.vue.d.ts +34 -0
- package/dist/validated/BbCheckboxGroup.vue.js +5 -0
- package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/validated/BbColorInput.vue.d.ts +36 -0
- package/dist/validated/BbColorInput.vue.js +5 -0
- package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/validated/BbDatePickerInput.vue.d.ts +41 -0
- package/dist/validated/BbDatePickerInput.vue.js +5 -0
- package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +90 -0
- package/dist/validated/BbDropzone.vue.d.ts +24 -0
- package/dist/validated/BbDropzone.vue.js +5 -0
- package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/validated/BbForm.vue.d.ts +28 -0
- package/dist/validated/BbForm.vue.js +5 -0
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/validated/BbNumberInput.vue.d.ts +36 -0
- package/dist/validated/BbNumberInput.vue.js +5 -0
- package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbRadioGroup.vue.d.ts +34 -0
- package/dist/validated/BbRadioGroup.vue.js +5 -0
- package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/validated/BbRating.vue.d.ts +30 -0
- package/dist/validated/BbRating.vue.js +5 -0
- package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/validated/BbSelect.vue.d.ts +46 -0
- package/dist/validated/BbSelect.vue.js +5 -0
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/validated/BbSlider.vue.d.ts +36 -0
- package/dist/validated/BbSlider.vue.js +5 -0
- package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/validated/BbSwitch.vue.d.ts +29 -0
- package/dist/validated/BbSwitch.vue.js +5 -0
- package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/validated/BbSwitchGroup.vue.d.ts +34 -0
- package/dist/validated/BbSwitchGroup.vue.js +5 -0
- package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/validated/BbTag.vue.d.ts +36 -0
- package/dist/validated/BbTag.vue.js +5 -0
- package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbTextInput.vue.d.ts +36 -0
- package/dist/validated/BbTextInput.vue.js +5 -0
- package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbTextarea.vue.d.ts +36 -0
- package/dist/validated/BbTextarea.vue.js +5 -0
- package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/validated/BbTimePickerInput.vue.d.ts +37 -0
- package/dist/validated/BbTimePickerInput.vue.js +5 -0
- package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/validated/index.d.ts +29 -0
- package/dist/validated/useValidatedField.d.ts +93 -0
- package/dist/validated/useValidatedField.js +51 -0
- package/dist/validated.js +21 -0
- package/dist/vite-plugin.d.ts +261 -0
- package/dist/vite.js +603 -0
- package/llms.txt +107 -0
- package/package.json +181 -60
- package/scripts/lib/__fixtures__/validated-manifest.json +65 -0
- package/scripts/lib/ensure-manifest.mjs +39 -0
- package/scripts/lib/eslint-plugin-autofix.node.test.mjs +109 -0
- package/scripts/lib/eslint-plugin-recommended.node.test.mjs +87 -0
- package/scripts/lib/eslint-plugin-slots.node.test.mjs +271 -0
- package/scripts/lib/eslint-plugin.mjs +702 -0
- package/scripts/lib/eslint-plugin.node.test.mjs +193 -0
- package/scripts/lib/html-attributes.mjs +191 -0
- package/scripts/lib/mcp-config.mjs +126 -0
- package/scripts/lib/migrate-fix.mjs +115 -0
- package/scripts/lib/validate-bb-markup.mjs +488 -0
- package/dist/ai/BaseButton.md +0 -449
- package/dist/ai/BaseCheckbox.md +0 -512
- package/dist/ai/BaseCheckboxGroup.md +0 -597
- package/dist/ai/BaseColorInput.md +0 -461
- package/dist/ai/BaseDatePicker.md +0 -739
- package/dist/ai/BaseDatePickerInput.md +0 -1517
- package/dist/ai/BaseDialog.md +0 -610
- package/dist/ai/BaseInputContainer.md +0 -570
- package/dist/ai/BaseNumberInput.md +0 -509
- package/dist/ai/BaseRadio.md +0 -405
- package/dist/ai/BaseRadioGroup.md +0 -535
- package/dist/ai/BaseRating.md +0 -489
- package/dist/ai/BaseSelect.md +0 -1742
- package/dist/ai/BaseSlider.md +0 -871
- package/dist/ai/BaseSwitch.md +0 -322
- package/dist/ai/BaseSwitchGroup.md +0 -298
- package/dist/ai/BaseTag.md +0 -623
- package/dist/ai/BaseTextInput.md +0 -392
- package/dist/ai/BaseTextarea.md +0 -398
- package/dist/ai/BbChip.md +0 -147
- package/dist/ai/BbIntersection.md +0 -120
- package/dist/ai/BbRatio.md +0 -61
- package/dist/ai/BbRows.md +0 -307
- package/dist/ai/BbTab.md +0 -950
- package/dist/ai/CommonInputInnerContainer.md +0 -414
- package/dist/ai/CommonInputOuterContainer.md +0 -55
- package/dist/components/BaseButton/BaseButton.vue.d.ts +0 -14
- package/dist/components/BaseButton/types.d.ts +0 -159
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -39
- package/dist/components/BaseCheckbox/types.d.ts +0 -213
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +0 -30
- package/dist/components/BaseCheckboxGroup/types.d.ts +0 -282
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +0 -35
- package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +0 -13
- package/dist/components/BaseColorInput/types.d.ts +0 -233
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +0 -15
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +0 -58
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +0 -12
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +0 -12
- package/dist/components/BaseDatePicker/types.d.ts +0 -100
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -26
- package/dist/components/BaseDatePickerInput/types.d.ts +0 -206
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -37
- package/dist/components/BaseDialog/types.d.ts +0 -180
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +0 -18
- package/dist/components/BaseInputContainer/types.d.ts +0 -126
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +0 -46
- package/dist/components/BaseNumberInput/types.d.ts +0 -191
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +0 -31
- package/dist/components/BaseRadio/types.d.ts +0 -173
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +0 -30
- package/dist/components/BaseRadioGroup/types.d.ts +0 -240
- package/dist/components/BaseRating/BaseRating.vue.d.ts +0 -35
- package/dist/components/BaseRating/types.d.ts +0 -144
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -28
- package/dist/components/BaseSelect/types.d.ts +0 -470
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +0 -38
- package/dist/components/BaseSlider/types.d.ts +0 -201
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +0 -34
- package/dist/components/BaseSwitch/types.d.ts +0 -25
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +0 -30
- package/dist/components/BaseSwitchGroup/types.d.ts +0 -8
- package/dist/components/BaseTag/BaseTag.vue.d.ts +0 -37
- package/dist/components/BaseTag/types.d.ts +0 -136
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +0 -33
- package/dist/components/BaseTextInput/types.d.ts +0 -166
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +0 -31
- package/dist/components/BaseTextarea/types.d.ts +0 -151
- package/dist/components/BbChip/BbChip.vue.d.ts +0 -17
- package/dist/components/BbChip/types.d.ts +0 -23
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +0 -23
- package/dist/components/BbIntersection/types.d.ts +0 -36
- package/dist/components/BbRatio/BbRatio.vue.d.ts +0 -14
- package/dist/components/BbRatio/types.d.ts +0 -15
- package/dist/components/BbRows/BbRows.vue.d.ts +0 -62
- package/dist/components/BbRows/types.d.ts +0 -21
- package/dist/components/BbTab/BbTab.vue.d.ts +0 -27
- package/dist/components/BbTab/types.d.ts +0 -186
- package/dist/components/CommonInputInnerContainer/CommonInputInnerContainer.vue.d.ts +0 -15
- package/dist/components/CommonInputInnerContainer/types.d.ts +0 -47
- package/dist/components/CommonInputOuterContainer/CommonInputOuterContainer.vue.d.ts +0 -11
- package/dist/components/CommonInputOuterContainer/types.d.ts +0 -16
- package/dist/composables/useModalsState.d.ts +0 -5
- package/dist/composables/useQueue.d.ts +0 -58
- package/dist/composables/useWizard.d.ts +0 -85
- package/dist/i18n/en.d.ts +0 -67
- package/dist/i18n/it.d.ts +0 -67
- package/dist/index.css +0 -2
- package/dist/index100.js +0 -6
- package/dist/index101.js +0 -300
- package/dist/index102.js +0 -16
- package/dist/index103.js +0 -16
- package/dist/index104.js +0 -27
- package/dist/index109.js +0 -19
- package/dist/index11.js +0 -42
- package/dist/index110.js +0 -12
- package/dist/index111.js +0 -19
- package/dist/index112.js +0 -25
- package/dist/index114.js +0 -7
- package/dist/index115.js +0 -241
- package/dist/index116.js +0 -5
- package/dist/index117.js +0 -42
- package/dist/index118.js +0 -5
- package/dist/index119.js +0 -53
- package/dist/index120.js +0 -5
- package/dist/index121.js +0 -32
- package/dist/index122.js +0 -5
- package/dist/index124.js +0 -52
- package/dist/index125.js +0 -5
- package/dist/index126.js +0 -223
- package/dist/index128.js +0 -6
- package/dist/index129.js +0 -162
- package/dist/index13.js +0 -92
- package/dist/index130.js +0 -25
- package/dist/index131.js +0 -51
- package/dist/index132.js +0 -5
- package/dist/index133.js +0 -607
- package/dist/index135.js +0 -6
- package/dist/index136.js +0 -14
- package/dist/index137.js +0 -153
- package/dist/index139.js +0 -6
- package/dist/index14.js +0 -306
- package/dist/index140.js +0 -224
- package/dist/index141.js +0 -5
- package/dist/index143.js +0 -128
- package/dist/index145.js +0 -6
- package/dist/index146.js +0 -8
- package/dist/index147.js +0 -182
- package/dist/index149.js +0 -6
- package/dist/index15.js +0 -10
- package/dist/index151.js +0 -4
- package/dist/index152.js +0 -95
- package/dist/index154.js +0 -6
- package/dist/index155.js +0 -168
- package/dist/index157.js +0 -6
- package/dist/index158.js +0 -145
- package/dist/index16.js +0 -59
- package/dist/index160.js +0 -6
- package/dist/index161.js +0 -53
- package/dist/index163.js +0 -6
- package/dist/index164.js +0 -16
- package/dist/index166.js +0 -35
- package/dist/index168.js +0 -6
- package/dist/index169.js +0 -89
- package/dist/index171.js +0 -6
- package/dist/index172.js +0 -82
- package/dist/index174.js +0 -6
- package/dist/index175.js +0 -38
- package/dist/index176.js +0 -461
- package/dist/index177.js +0 -28
- package/dist/index178.js +0 -66
- package/dist/index18.js +0 -35
- package/dist/index180.js +0 -162
- package/dist/index181.js +0 -5
- package/dist/index182.js +0 -217
- package/dist/index183.js +0 -5
- package/dist/index184.js +0 -112
- package/dist/index185.js +0 -5
- package/dist/index186.js +0 -459
- package/dist/index188.js +0 -6
- package/dist/index19.js +0 -4
- package/dist/index192.js +0 -268
- package/dist/index194.js +0 -6
- package/dist/index195.js +0 -124
- package/dist/index197.js +0 -6
- package/dist/index198.js +0 -174
- package/dist/index2.js +0 -20
- package/dist/index20.js +0 -9
- package/dist/index200.js +0 -6
- package/dist/index201.js +0 -224
- package/dist/index203.js +0 -6
- package/dist/index204.js +0 -135
- package/dist/index206.js +0 -6
- package/dist/index207.js +0 -5
- package/dist/index208.js +0 -170
- package/dist/index21.js +0 -35
- package/dist/index210.js +0 -6
- package/dist/index211.js +0 -37
- package/dist/index213.js +0 -6
- package/dist/index214.js +0 -63
- package/dist/index216.js +0 -6
- package/dist/index217.js +0 -74
- package/dist/index219.js +0 -6
- package/dist/index22.js +0 -6
- package/dist/index220.js +0 -65
- package/dist/index222.js +0 -6
- package/dist/index223.js +0 -67
- package/dist/index225.js +0 -6
- package/dist/index226.js +0 -41
- package/dist/index228.js +0 -6
- package/dist/index229.js +0 -10
- package/dist/index23.js +0 -7
- package/dist/index230.js +0 -22
- package/dist/index232.js +0 -8
- package/dist/index233.js +0 -297
- package/dist/index235.js +0 -6
- package/dist/index236.js +0 -47
- package/dist/index237.js +0 -165
- package/dist/index239.js +0 -6
- package/dist/index24.js +0 -9
- package/dist/index241.js +0 -159
- package/dist/index243.js +0 -6
- package/dist/index244.js +0 -134
- package/dist/index246.js +0 -6
- package/dist/index247.js +0 -167
- package/dist/index249.js +0 -6
- package/dist/index25.js +0 -24
- package/dist/index250.js +0 -147
- package/dist/index252.js +0 -6
- package/dist/index253.js +0 -35
- package/dist/index255.js +0 -6
- package/dist/index256.js +0 -65
- package/dist/index258.js +0 -6
- package/dist/index259.js +0 -19
- package/dist/index260.js +0 -5
- package/dist/index261.js +0 -160
- package/dist/index263.js +0 -6
- package/dist/index264.js +0 -60
- package/dist/index266.js +0 -6
- package/dist/index267.js +0 -134
- package/dist/index269.js +0 -6
- package/dist/index27.js +0 -4
- package/dist/index271.js +0 -206
- package/dist/index273.js +0 -6
- package/dist/index274.js +0 -85
- package/dist/index275.js +0 -5
- package/dist/index276.js +0 -55
- package/dist/index277.js +0 -5
- package/dist/index278.js +0 -164
- package/dist/index28.js +0 -8
- package/dist/index280.js +0 -6
- package/dist/index281.js +0 -145
- package/dist/index283.js +0 -6
- package/dist/index284.js +0 -11
- package/dist/index285.js +0 -200
- package/dist/index287.js +0 -6
- package/dist/index288.js +0 -241
- package/dist/index29.js +0 -7
- package/dist/index290.js +0 -6
- package/dist/index291.js +0 -21
- package/dist/index293.js +0 -6
- package/dist/index294.js +0 -125
- package/dist/index296.js +0 -6
- package/dist/index297.js +0 -161
- package/dist/index299.js +0 -6
- package/dist/index30.js +0 -118
- package/dist/index300.js +0 -127
- package/dist/index302.js +0 -6
- package/dist/index303.js +0 -20
- package/dist/index305.js +0 -6
- package/dist/index306.js +0 -116
- package/dist/index307.js +0 -5
- package/dist/index308.js +0 -507
- package/dist/index31.js +0 -10
- package/dist/index310.js +0 -6
- package/dist/index311.js +0 -196
- package/dist/index313.js +0 -6
- package/dist/index314.js +0 -142
- package/dist/index316.js +0 -6
- package/dist/index317.js +0 -134
- package/dist/index319.js +0 -6
- package/dist/index32.js +0 -28
- package/dist/index320.js +0 -162
- package/dist/index322.js +0 -6
- package/dist/index323.js +0 -319
- package/dist/index325.js +0 -6
- package/dist/index326.js +0 -40
- package/dist/index327.js +0 -43
- package/dist/index328.js +0 -665
- package/dist/index33.js +0 -5
- package/dist/index330.js +0 -6
- package/dist/index331.js +0 -155
- package/dist/index333.js +0 -6
- package/dist/index334.js +0 -142
- package/dist/index336.js +0 -6
- package/dist/index337.js +0 -155
- package/dist/index339.js +0 -6
- package/dist/index34.js +0 -112
- package/dist/index340.js +0 -58
- package/dist/index341.js +0 -5
- package/dist/index342.js +0 -20
- package/dist/index344.js +0 -6
- package/dist/index345.js +0 -142
- package/dist/index347.js +0 -6
- package/dist/index349.js +0 -109
- package/dist/index351.js +0 -6
- package/dist/index352.js +0 -55
- package/dist/index353.js +0 -24
- package/dist/index354.js +0 -23
- package/dist/index355.js +0 -839
- package/dist/index356.js +0 -474
- package/dist/index357.js +0 -52
- package/dist/index358.js +0 -7
- package/dist/index36.js +0 -6
- package/dist/index38.js +0 -63
- package/dist/index39.js +0 -63
- package/dist/index40.js +0 -9
- package/dist/index42.js +0 -8
- package/dist/index43.js +0 -179
- package/dist/index44.js +0 -21
- package/dist/index46.js +0 -385
- package/dist/index48.js +0 -6
- package/dist/index49.js +0 -33
- package/dist/index5.js +0 -34
- package/dist/index50.js +0 -12
- package/dist/index51.js +0 -8
- package/dist/index52.js +0 -106
- package/dist/index53.js +0 -330
- package/dist/index54.js +0 -97
- package/dist/index55.js +0 -328
- package/dist/index56.js +0 -28
- package/dist/index57.js +0 -102
- package/dist/index58.js +0 -157
- package/dist/index6.js +0 -38
- package/dist/index60.js +0 -6
- package/dist/index61.js +0 -131
- package/dist/index62.js +0 -5
- package/dist/index65.js +0 -35
- package/dist/index66.js +0 -26
- package/dist/index68.js +0 -6
- package/dist/index69.js +0 -54
- package/dist/index7.js +0 -58
- package/dist/index71.js +0 -6
- package/dist/index72.js +0 -14
- package/dist/index74.js +0 -6
- package/dist/index75.js +0 -159
- package/dist/index77.js +0 -6
- package/dist/index78.js +0 -4
- package/dist/index79.js +0 -4
- package/dist/index80.js +0 -54
- package/dist/index81.js +0 -5
- package/dist/index82.js +0 -5
- package/dist/index83.js +0 -141
- package/dist/index85.js +0 -6
- package/dist/index86.js +0 -65
- package/dist/index88.js +0 -6
- package/dist/index89.js +0 -30
- package/dist/index9.js +0 -11
- package/dist/index90.js +0 -19
- package/dist/index91.js +0 -17
- package/dist/index92.js +0 -9
- package/dist/index93.js +0 -34
- package/dist/index95.js +0 -16
- package/dist/index96.js +0 -10
- package/dist/index97.js +0 -18
- package/dist/index98.js +0 -189
- package/dist/types/VoidHtmlElements.d.ts +0 -1
- package/dist/utilities/functions/add.d.ts +0 -1
- package/dist/utilities/functions/booleanishToBoolean.d.ts +0 -6
- package/dist/utilities/functions/capitalize.d.ts +0 -4
- package/dist/utilities/functions/cloneDeep.d.ts +0 -1
- package/dist/utilities/functions/debounce.d.ts +0 -1
- package/dist/utilities/functions/drop.d.ts +0 -1
- package/dist/utilities/functions/exceedsPrecision.d.ts +0 -1
- package/dist/utilities/functions/findRight.d.ts +0 -4
- package/dist/utilities/functions/findRightIndex.d.ts +0 -4
- package/dist/utilities/functions/flow.d.ts +0 -1
- package/dist/utilities/functions/getHueFromRGB.d.ts +0 -9
- package/dist/utilities/functions/groupBy.d.ts +0 -6
- package/dist/utilities/functions/gt.d.ts +0 -7
- package/dist/utilities/functions/hexToRGB.d.ts +0 -7
- package/dist/utilities/functions/hslToHex.d.ts +0 -1
- package/dist/utilities/functions/includes.d.ts +0 -1
- package/dist/utilities/functions/initial.d.ts +0 -1
- package/dist/utilities/functions/isCssColor.d.ts +0 -5
- package/dist/utilities/functions/lt.d.ts +0 -7
- package/dist/utilities/functions/makeUrl.d.ts +0 -1
- package/dist/utilities/functions/mapKeys.d.ts +0 -5
- package/dist/utilities/functions/mapValues.d.ts +0 -1
- package/dist/utilities/functions/matchesPropertyInsensitive.d.ts +0 -1
- package/dist/utilities/functions/max.d.ts +0 -2
- package/dist/utilities/functions/mean.d.ts +0 -4
- package/dist/utilities/functions/merge.d.ts +0 -11
- package/dist/utilities/functions/millisecondsTo.d.ts +0 -1
- package/dist/utilities/functions/negate.d.ts +0 -4
- package/dist/utilities/functions/normalizeItemGroups.d.ts +0 -13
- package/dist/utilities/functions/omit.d.ts +0 -2
- package/dist/utilities/functions/overEvery.d.ts +0 -4
- package/dist/utilities/functions/pick.d.ts +0 -1
- package/dist/utilities/functions/replace.d.ts +0 -1
- package/dist/utilities/functions/replaceInTree.d.ts +0 -4
- package/dist/utilities/functions/retry.d.ts +0 -5
- package/dist/utilities/functions/roundToTheNearest.d.ts +0 -8
- package/dist/utilities/functions/set.d.ts +0 -15
- package/dist/utilities/functions/stub.d.ts +0 -6
- package/dist/utilities/functions/transposePercent.d.ts +0 -9
- package/dist/utilities/functions/tryTo.d.ts +0 -2
- package/dist/utilities/functions/uniqBy.d.ts +0 -1
- /package/dist/{index64.js → _virtual/_plugin-vue_export-helper.js} +0 -0
- /package/dist/components/{BaseButton → BbBaseButton}/RouterComponent.vue.d.ts +0 -0
- /package/dist/components/{BaseDatePicker/BaseDatePicker.vue.d.ts → BbBaseDatePicker/BbBaseDatePicker.vue.d.ts} +0 -0
- /package/dist/{index165.js → composables/useArray.js} +0 -0
- /package/dist/{index17.js → composables/useFrameworkDetection.js} +0 -0
- /package/dist/{index12.js → composables/useId.js} +0 -0
- /package/dist/{index107.js → utilities/functions/chunk.js} +0 -0
- /package/dist/{index8.js → utilities/functions/clamp.js} +0 -0
- /package/dist/{index150.js → utilities/functions/curry.js} +0 -0
- /package/dist/{index45.js → utilities/functions/extractDomContainer.js} +0 -0
- /package/dist/{index270.js → utilities/functions/findInTree.js} +0 -0
- /package/dist/{index348.js → utilities/functions/flattenTree.js} +0 -0
- /package/dist/{index41.js → utilities/functions/get.js} +0 -0
- /package/dist/{index189.js → utilities/functions/head.js} +0 -0
- /package/dist/{index108.js → utilities/functions/identity.js} +0 -0
- /package/dist/{index179.js → utilities/functions/indexBy.js} +0 -0
- /package/dist/{index37.js → utilities/functions/isHex.js} +0 -0
- /package/dist/{index94.js → utilities/functions/isNil.js} +0 -0
- /package/dist/{index26.js → utilities/functions/isNotNil.js} +0 -0
- /package/dist/{index105.js → utilities/functions/last.js} +0 -0
- /package/dist/{index142.js → utilities/functions/noop.js} +0 -0
- /package/dist/{index231.js → utilities/functions/parseWidthString.js} +0 -0
- /package/dist/{index240.js → utilities/functions/pickBy.js} +0 -0
- /package/dist/{index123.js → utilities/functions/range.js} +0 -0
- /package/dist/{index190.js → utilities/functions/snapToStep.js} +0 -0
- /package/dist/{index191.js → utilities/functions/transpose.js} +0 -0
- /package/dist/{index106.js → utilities/functions/validateDateFormat.js} +0 -0
- /package/dist/{index10.js → utilities/functions/wait.js} +0 -0
|
@@ -1,644 +1,555 @@
|
|
|
1
1
|
# BbDropdownButton
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Agent Contract
|
|
4
|
+
|
|
5
|
+
- Safety level: **Consumer API**
|
|
6
|
+
- Group: **Overlay**
|
|
7
|
+
- Description: A button with primary action and all other actions collected in a dropdown.
|
|
8
|
+
- Usage rule: Prefer this component for consumer-facing implementations.
|
|
9
|
+
- Implementation source (only when the contract below is not enough): [source/BbDropdownButton.md](./source/BbDropdownButton.md)
|
|
10
|
+
|
|
11
|
+
## Usage & Guidelines
|
|
12
|
+
|
|
13
|
+
### When to use
|
|
14
|
+
|
|
15
|
+
Use `BbDropdownButton` when there is **one obvious primary action** and a short
|
|
16
|
+
list of variations on it: _Save_ / Save as draft / Save as template, _Export_ /
|
|
17
|
+
Export as CSV, _Merge_ / Squash and merge. The primary action is one tap away;
|
|
18
|
+
the alternates hide behind a chevron.
|
|
19
|
+
|
|
20
|
+
Choose between the three action components by intent:
|
|
21
|
+
|
|
22
|
+
- **[BbButton](./BbButton.md)** — a single action, nothing else.
|
|
23
|
+
- **BbDropdownButton** — a dominant action _plus_ a few close alternates.
|
|
24
|
+
- **[BbDropdown](./BbDropdown.md)** — a menu with **no** single dominant action
|
|
25
|
+
(an overflow "…" menu, an account menu, a context menu).
|
|
26
|
+
|
|
27
|
+
If your "alternates" are unrelated commands, that's a plain menu — reach for
|
|
28
|
+
`BbDropdown` instead.
|
|
29
|
+
|
|
30
|
+
### The split pattern
|
|
31
|
+
|
|
32
|
+
`items[0]` is the primary action, rendered as the left-hand `BbButton` —
|
|
33
|
+
everything from its BbBaseButton surface passes straight through: `onClick`,
|
|
34
|
+
`href` / `to` (with Inertia `method`/`data`, `target`, active-class props),
|
|
35
|
+
and `disabled`. Every later item opens from the chevron toggle on the right.
|
|
36
|
+
It's the same item model as `BbDropdown`, so submenus, links, descriptions and
|
|
37
|
+
groups all work in the menu.
|
|
38
|
+
|
|
39
|
+
Two deliberate exceptions on the primary item: its `variant` and
|
|
40
|
+
`prepend:icon` / `append:icon` are ignored — the split control's look comes
|
|
41
|
+
from the component's own `variant` and icon props, so the two halves always
|
|
42
|
+
match. And keep `items[0]` a **plain leaf item**: if the first entry is a
|
|
43
|
+
group or nested array, only its first leaf is promoted to the button and the
|
|
44
|
+
entry's remaining rows are dropped from the menu.
|
|
45
|
+
|
|
46
|
+
**Save / Save as draft**
|
|
4
47
|
|
|
5
48
|
```vue
|
|
6
49
|
<template>
|
|
7
|
-
<
|
|
8
|
-
class="bb-
|
|
9
|
-
:class="{
|
|
10
|
-
'bb-dropdown-button--block': block,
|
|
11
|
-
'bb-dropdown-button--loading': loading,
|
|
12
|
-
[`bb-dropdown-button--${theme}`]: true,
|
|
13
|
-
}"
|
|
14
|
-
v-bind="sizeAttributes"
|
|
50
|
+
<div
|
|
51
|
+
class="flex max-w-sm flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
15
52
|
>
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/>
|
|
24
|
-
<span class="bb-
|
|
25
|
-
|
|
26
|
-
t('common.loadingText').value
|
|
53
|
+
<div class="flex flex-col gap-0.5">
|
|
54
|
+
<span class="text-sm font-medium">Invoice INV-2048</span>
|
|
55
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
56
|
+
Acme Studio · due Jul 31, 2026
|
|
57
|
+
</span>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="flex items-center gap-2">
|
|
60
|
+
<BbDropdownButton :items="items" prepend:icon="lucide:check" />
|
|
61
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]" data-last>{{
|
|
62
|
+
last
|
|
27
63
|
}}</span>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
67
|
+
<script setup lang="ts">
|
|
68
|
+
import { ref } from 'vue';
|
|
69
|
+
import { BbDropdownButton } from 'bitboss-ui';
|
|
70
|
+
import type { BbDropdownItem } from 'bitboss-ui';
|
|
71
|
+
|
|
72
|
+
const last = ref('Unsaved changes');
|
|
73
|
+
|
|
74
|
+
/** `items[0]` is the primary action; later rows open from the chevron. */
|
|
75
|
+
const items: BbDropdownItem[] = [
|
|
76
|
+
{ key: 'save', text: 'Save', onClick: () => (last.value = 'Saved') },
|
|
77
|
+
{
|
|
78
|
+
key: 'draft',
|
|
79
|
+
text: 'Save as draft',
|
|
80
|
+
'prepend:icon': 'lucide:pencil',
|
|
81
|
+
onClick: () => (last.value = 'Saved as draft'),
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
key: 'template',
|
|
85
|
+
text: 'Save as template',
|
|
86
|
+
'prepend:icon': 'lucide:copy',
|
|
87
|
+
onClick: () => (last.value = 'Saved as template'),
|
|
88
|
+
},
|
|
89
|
+
];
|
|
90
|
+
</script>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Export formats
|
|
94
|
+
|
|
95
|
+
The same shape covers download menus: one default Export on the main button,
|
|
96
|
+
format alternates behind the chevron. Prefer `href` / `to` on the format rows
|
|
97
|
+
so each export is a real navigation, not an `@click` that fakes a download.
|
|
28
98
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
99
|
+
**Export as CSV / JSON / PDF**
|
|
100
|
+
|
|
101
|
+
```vue
|
|
102
|
+
<template>
|
|
103
|
+
<div
|
|
104
|
+
class="flex max-w-sm flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
105
|
+
>
|
|
106
|
+
<div class="flex flex-col gap-0.5">
|
|
107
|
+
<span class="text-sm font-medium">Q2 revenue report</span>
|
|
108
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
109
|
+
Acme Studio · Jul 1 – Sep 30, 2026
|
|
110
|
+
</span>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="flex items-center gap-2">
|
|
113
|
+
<BbDropdownButton
|
|
114
|
+
:items="items"
|
|
115
|
+
prepend:icon="lucide:download"
|
|
116
|
+
variant="outline"
|
|
33
117
|
/>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
:disabled="disabled"
|
|
40
|
-
:eager="eager"
|
|
41
|
-
:items="mappedItems"
|
|
42
|
-
:offset="offset"
|
|
43
|
-
:padding="padding"
|
|
44
|
-
:placement="placement"
|
|
45
|
-
:theme="theme"
|
|
46
|
-
:transition-duration="transitionDuration"
|
|
47
|
-
:width="width"
|
|
48
|
-
>
|
|
49
|
-
<template #activator="{ props, open, disabled, placement }">
|
|
50
|
-
<slot
|
|
51
|
-
:disabled="disabled"
|
|
52
|
-
name="activator"
|
|
53
|
-
:open="open"
|
|
54
|
-
:placement="placement"
|
|
55
|
-
:props="props"
|
|
56
|
-
>
|
|
57
|
-
<BaseButton v-bind="props" class="bb-dropdown-button__dropdown-btn">
|
|
58
|
-
<span class="bb-dropdown-button__dropdown-label sr-only">{{
|
|
59
|
-
open
|
|
60
|
-
? t('dropdownButton.close').value
|
|
61
|
-
: t('dropdownButton.open').value
|
|
62
|
-
}}</span>
|
|
63
|
-
<slot
|
|
64
|
-
:disabled="disabled"
|
|
65
|
-
name="right-btn"
|
|
66
|
-
:open="open"
|
|
67
|
-
:placement="placement"
|
|
68
|
-
>
|
|
69
|
-
<svg
|
|
70
|
-
class="bb-dropdown-button__dropdown-chevron"
|
|
71
|
-
viewBox="0 0 24 24"
|
|
72
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
73
|
-
>
|
|
74
|
-
<path
|
|
75
|
-
d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z"
|
|
76
|
-
fill="currentColor"
|
|
77
|
-
/>
|
|
78
|
-
</svg>
|
|
79
|
-
</slot>
|
|
80
|
-
</BaseButton>
|
|
81
|
-
</slot>
|
|
82
|
-
</template>
|
|
83
|
-
<template #prepend="data"><slot name="prepend" v-bind="data" /></template>
|
|
84
|
-
<template #item:prepend="data">
|
|
85
|
-
<slot name="item:prepend" v-bind="data" />
|
|
86
|
-
</template>
|
|
87
|
-
<!-- @vue-ignore - wrong inferred type -->
|
|
88
|
-
<template v-for="item in flatMappedItems" #[item.key]="data">
|
|
89
|
-
<slot :name="item.key" v-bind="data" />
|
|
90
|
-
</template>
|
|
91
|
-
<template #item:append="data">
|
|
92
|
-
<slot name="item:append" v-bind="data" />
|
|
93
|
-
</template>
|
|
94
|
-
<template #append="data"><slot name="append" v-bind="data" /></template>
|
|
95
|
-
</BbDropdown>
|
|
96
|
-
</span>
|
|
118
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]" data-export>{{
|
|
119
|
+
last
|
|
120
|
+
}}</span>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
97
123
|
</template>
|
|
124
|
+
<script setup lang="ts">
|
|
125
|
+
import { ref } from 'vue';
|
|
126
|
+
import { BbDropdownButton } from 'bitboss-ui';
|
|
127
|
+
import type { BbDropdownItem } from 'bitboss-ui';
|
|
128
|
+
|
|
129
|
+
const last = ref('Not exported yet');
|
|
130
|
+
|
|
131
|
+
/** Primary Export (default CSV) plus format alternates via `href`. */
|
|
132
|
+
const items: BbDropdownItem[] = [
|
|
133
|
+
{
|
|
134
|
+
key: 'export',
|
|
135
|
+
text: 'Export',
|
|
136
|
+
onClick: () => (last.value = 'Exported as CSV'),
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
key: 'csv',
|
|
140
|
+
text: 'Export as CSV',
|
|
141
|
+
'prepend:icon': 'lucide:file-spreadsheet',
|
|
142
|
+
href: '#export-csv',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
key: 'json',
|
|
146
|
+
text: 'Export as JSON',
|
|
147
|
+
'prepend:icon': 'lucide:braces',
|
|
148
|
+
href: '#export-json',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
key: 'pdf',
|
|
152
|
+
text: 'Export as PDF',
|
|
153
|
+
'prepend:icon': 'lucide:file-text',
|
|
154
|
+
href: '#export-pdf',
|
|
155
|
+
},
|
|
156
|
+
];
|
|
157
|
+
</script>
|
|
158
|
+
```
|
|
98
159
|
|
|
160
|
+
### Variants and size
|
|
161
|
+
|
|
162
|
+
`variant` and `size` are shared across both halves of the control, so it always
|
|
163
|
+
reads as one button. Stay on the shadcn ladder (`primary`, `secondary`,
|
|
164
|
+
`outline`, `ghost`); omit `size` for the default `md` (28px, flush beside
|
|
165
|
+
`compact` inputs). `size` also takes the responsive map form
|
|
166
|
+
(`{ sm: 'sm', lg: 'md' }`) — reach for `sm` only in dense toolbars. Use `block`
|
|
167
|
+
to stretch the control full-width in a narrow column, and `disabled` to freeze
|
|
168
|
+
both halves at once.
|
|
169
|
+
|
|
170
|
+
**Shared variant and size**
|
|
171
|
+
|
|
172
|
+
```vue
|
|
173
|
+
<div class="flex flex-wrap items-center gap-2">
|
|
174
|
+
<BbDropdownButton
|
|
175
|
+
variant="outline"
|
|
176
|
+
:items="[
|
|
177
|
+
{ key: 'export', text: 'Export', href: '#export' },
|
|
178
|
+
{ key: 'csv', text: 'Export as CSV', href: '#csv' },
|
|
179
|
+
{ key: 'json', text: 'Export as JSON', href: '#json' },
|
|
180
|
+
]"
|
|
181
|
+
/>
|
|
182
|
+
<BbDropdownButton
|
|
183
|
+
:size="{ sm: 'sm', lg: 'md' }"
|
|
184
|
+
variant="secondary"
|
|
185
|
+
:items="[
|
|
186
|
+
{ key: 'invite', text: 'Invite member', href: '#invite' },
|
|
187
|
+
{ key: 'link', text: 'Copy invite link', href: '#link' },
|
|
188
|
+
]"
|
|
189
|
+
/>
|
|
190
|
+
</div>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Automatic loading — on both halves
|
|
194
|
+
|
|
195
|
+
When the primary action's `onClick` returns a promise, the main button shows a
|
|
196
|
+
spinner and blocks re-entry until it settles — you don't wire `loading`
|
|
197
|
+
yourself. The **toggle half does the same for menu actions**: while any menu
|
|
198
|
+
item's async `onClick` is in flight, the chevron button shows the busy state.
|
|
199
|
+
This keeps async submits honest with zero boilerplate. `disable-auto-loading`
|
|
200
|
+
opts the **main button** out of the automatic tracking (the toggle keeps
|
|
201
|
+
reflecting menu-action state), and the `loading` prop drives the main button
|
|
202
|
+
manually.
|
|
203
|
+
|
|
204
|
+
**Async primary action**
|
|
205
|
+
|
|
206
|
+
```vue
|
|
207
|
+
<template>
|
|
208
|
+
<div
|
|
209
|
+
class="flex max-w-sm flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
210
|
+
>
|
|
211
|
+
<div class="flex flex-col gap-0.5">
|
|
212
|
+
<span class="text-sm font-medium">July product changelog</span>
|
|
213
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
214
|
+
bitboss-ui · ready to publish
|
|
215
|
+
</span>
|
|
216
|
+
</div>
|
|
217
|
+
<div class="flex items-center gap-2">
|
|
218
|
+
<BbDropdownButton :items="items" prepend:icon="lucide:rocket" />
|
|
219
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]" data-status>{{
|
|
220
|
+
status
|
|
221
|
+
}}</span>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</template>
|
|
99
225
|
<script setup lang="ts">
|
|
100
|
-
import { computed } from 'vue';
|
|
101
|
-
import BaseButton from '../BaseButton/BaseButton.vue';
|
|
102
|
-
import BbDropdown from '../BbDropdown/BbDropdown.vue';
|
|
103
226
|
import { ref } from 'vue';
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
110
|
-
|
|
111
|
-
const props = withDefaults(defineProps<BbDropdownButtonProps>(), {
|
|
112
|
-
theme: 'default',
|
|
113
|
-
autoLoading: true,
|
|
114
|
-
disabledWhileLoading: true,
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
defineSlots<BbDropdownButtonSlots>();
|
|
118
|
-
|
|
119
|
-
const { t } = useLocale();
|
|
120
|
-
const internalLoading = ref(0);
|
|
121
|
-
|
|
122
|
-
const loading = computed(
|
|
123
|
-
() => props.loading || (!!internalLoading.value && props.autoLoading)
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
const wrapClick =
|
|
127
|
-
(fn: (...args: any[]) => any) =>
|
|
128
|
-
async (...args: any[]) => {
|
|
129
|
-
if (loading.value && props.disabledWhileLoading) return;
|
|
130
|
-
internalLoading.value++;
|
|
131
|
-
await fn(...args);
|
|
132
|
-
internalLoading.value--;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const transformItem = (el: InternalItem) => {
|
|
136
|
-
if (el.onClick)
|
|
137
|
-
return {
|
|
138
|
-
...el,
|
|
139
|
-
key: el.key.split(/\W+/g).join('_').toLowerCase(),
|
|
140
|
-
onClick: wrapClick(el.onClick),
|
|
141
|
-
};
|
|
142
|
-
return {
|
|
143
|
-
...el,
|
|
144
|
-
key: el.key.split(/\W+/g).join('_').toLowerCase(),
|
|
145
|
-
};
|
|
146
|
-
};
|
|
227
|
+
import { BbDropdownButton } from 'bitboss-ui';
|
|
228
|
+
import type { BbDropdownItem } from 'bitboss-ui';
|
|
229
|
+
|
|
230
|
+
const status = ref('Draft');
|
|
147
231
|
|
|
148
232
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
233
|
+
* Returning a promise from the primary `onClick` auto-spins the main button.
|
|
234
|
+
* Icons for `items[0]` are ignored — set `prepend:icon` on the control instead.
|
|
151
235
|
*/
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
)
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
const mainBtn = computed(() => {
|
|
162
|
-
const base = { ...flatMappedItems.value[0] };
|
|
163
|
-
base.disabled = base.disabled || props.disabled;
|
|
164
|
-
return base;
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
const baseSize: { default: Sizes } & Partial<Record<Sizes, Sizes>> =
|
|
168
|
-
typeof props.size === 'string'
|
|
169
|
-
? { default: props.size }
|
|
170
|
-
: { default: 'md', ...props.size };
|
|
171
|
-
|
|
172
|
-
const sizeAttributes = Object.entries<Sizes>(baseSize).reduce(
|
|
173
|
-
(acc: Record<string, string>, [key, value]) => {
|
|
174
|
-
if (key === 'default') {
|
|
175
|
-
acc[`data-${value}`] = '';
|
|
176
|
-
} else {
|
|
177
|
-
acc[`data-${key}:${value}`] = '';
|
|
178
|
-
}
|
|
179
|
-
return acc;
|
|
236
|
+
const items: BbDropdownItem[] = [
|
|
237
|
+
{
|
|
238
|
+
key: 'publish',
|
|
239
|
+
text: 'Publish',
|
|
240
|
+
onClick: async () => {
|
|
241
|
+
status.value = 'Publishing…';
|
|
242
|
+
await new Promise((resolve) => setTimeout(resolve, 700));
|
|
243
|
+
status.value = 'Published';
|
|
244
|
+
},
|
|
180
245
|
},
|
|
181
|
-
{
|
|
182
|
-
|
|
246
|
+
{
|
|
247
|
+
key: 'schedule',
|
|
248
|
+
text: 'Schedule…',
|
|
249
|
+
'prepend:icon': 'lucide:clock',
|
|
250
|
+
href: '#schedule',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
key: 'draft',
|
|
254
|
+
text: 'Revert to draft',
|
|
255
|
+
onClick: () => (status.value = 'Draft'),
|
|
256
|
+
},
|
|
257
|
+
];
|
|
183
258
|
</script>
|
|
259
|
+
```
|
|
184
260
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
261
|
+
### A destructive alternate, gated
|
|
262
|
+
|
|
263
|
+
A split button often hides its one dangerous variation behind the chevron —
|
|
264
|
+
delete the deployment, discard the draft. Mark that menu item with
|
|
265
|
+
`variant: 'destructive'` (the only item variant styled out of the box) and gate
|
|
266
|
+
its `onClick` behind [useConfirm](./composables/useConfirm.md): `await` the
|
|
267
|
+
decision and act only on a yes. The destructive entry never belongs in the
|
|
268
|
+
primary slot — the main button is for the action people reach for constantly,
|
|
269
|
+
not the one that needs a second thought.
|
|
270
|
+
|
|
271
|
+
**Destructive alternate behind useConfirm**
|
|
272
|
+
|
|
273
|
+
```vue
|
|
274
|
+
<template>
|
|
275
|
+
<div
|
|
276
|
+
class="flex max-w-md flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
277
|
+
>
|
|
278
|
+
<div class="flex items-center justify-between gap-3">
|
|
279
|
+
<div class="flex min-w-0 flex-col gap-0.5">
|
|
280
|
+
<span class="text-sm font-medium">acme-web · production</span>
|
|
281
|
+
<span
|
|
282
|
+
class="text-xs text-[color:var(--bb-text-muted)]"
|
|
283
|
+
data-deploy-status
|
|
284
|
+
>
|
|
285
|
+
{{ status }}
|
|
286
|
+
</span>
|
|
287
|
+
</div>
|
|
288
|
+
<BbDropdownButton
|
|
289
|
+
:items="items"
|
|
290
|
+
placement="bottom-end"
|
|
291
|
+
size="sm"
|
|
292
|
+
variant="outline"
|
|
293
|
+
/>
|
|
294
|
+
</div>
|
|
295
|
+
|
|
296
|
+
<!--
|
|
297
|
+
Standalone example: it mounts its own host because it has no app root.
|
|
298
|
+
A real app mounts exactly one <BbConfirm /> at the app root, and pages
|
|
299
|
+
mount none. See ai/guides/agent-contract.md § Global Host Rule.
|
|
300
|
+
-->
|
|
301
|
+
<BbConfirm />
|
|
302
|
+
</div>
|
|
303
|
+
</template>
|
|
304
|
+
<script setup lang="ts">
|
|
305
|
+
import { ref } from 'vue';
|
|
306
|
+
import { BbConfirm, BbDropdownButton, useConfirm } from 'bitboss-ui';
|
|
307
|
+
import type { BbDropdownItem } from 'bitboss-ui';
|
|
308
|
+
|
|
309
|
+
const status = ref('dpl_7k2f · deployed 2026-07-08 14:32');
|
|
310
|
+
|
|
311
|
+
const { confirm } = useConfirm();
|
|
312
|
+
|
|
313
|
+
/** Dangerous alternate stays behind the chevron, gated by `useConfirm`. */
|
|
314
|
+
const items: BbDropdownItem[] = [
|
|
315
|
+
{
|
|
316
|
+
key: 'redeploy',
|
|
317
|
+
text: 'Redeploy',
|
|
318
|
+
onClick: async () => {
|
|
319
|
+
status.value = 'Rebuilding…';
|
|
320
|
+
await new Promise((resolve) => setTimeout(resolve, 700));
|
|
321
|
+
status.value = 'dpl_9m4a · deployed just now';
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
{ key: 'logs', text: 'View build logs', href: '#logs' },
|
|
325
|
+
{
|
|
326
|
+
key: 'delete',
|
|
327
|
+
text: 'Delete deployment',
|
|
328
|
+
variant: 'destructive',
|
|
329
|
+
'prepend:icon': 'lucide:trash-2',
|
|
330
|
+
onClick: async () => {
|
|
331
|
+
const ok = await confirm({
|
|
332
|
+
title: 'Delete this deployment?',
|
|
333
|
+
text: 'The deployment and its build logs are removed permanently. This cannot be undone.',
|
|
334
|
+
variant: 'destructive',
|
|
335
|
+
yes: { text: 'Delete deployment', 'prepend:icon': 'lucide:trash-2' },
|
|
336
|
+
no: 'Keep it',
|
|
337
|
+
});
|
|
338
|
+
if (ok) status.value = 'Deployment deleted';
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
];
|
|
342
|
+
</script>
|
|
188
343
|
```
|
|
189
344
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
```ts
|
|
193
|
-
import type {
|
|
194
|
-
BbDropdownProps,
|
|
195
|
-
FlatItem,
|
|
196
|
-
MappedItem,
|
|
197
|
-
} from '../BbDropdown/types';
|
|
198
|
-
import type { IconType } from '@/types/Icon';
|
|
199
|
-
|
|
200
|
-
type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
201
|
-
|
|
202
|
-
export type BbDropdownButtonProps = Pick<
|
|
203
|
-
BbDropdownProps,
|
|
204
|
-
| 'arrowPadding'
|
|
205
|
-
| 'disabled'
|
|
206
|
-
| 'eager'
|
|
207
|
-
| 'id'
|
|
208
|
-
| 'items'
|
|
209
|
-
| 'offset'
|
|
210
|
-
| 'padding'
|
|
211
|
-
| 'placement'
|
|
212
|
-
| 'theme'
|
|
213
|
-
| 'transitionDuration'
|
|
214
|
-
| 'width'
|
|
215
|
-
> & {
|
|
216
|
-
/**
|
|
217
|
-
* Tracks the loading status internally.
|
|
218
|
-
*
|
|
219
|
-
* @defaultValue `true`
|
|
220
|
-
*/
|
|
221
|
-
autoLoading?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Icon to be added on the right of the text.
|
|
224
|
-
*/
|
|
225
|
-
// eslint-disable-next-line vue/prop-name-casing
|
|
226
|
-
'append:icon'?: IconType;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Displays the component as full width.
|
|
230
|
-
*/
|
|
231
|
-
block?: boolean;
|
|
232
|
-
/**
|
|
233
|
-
* Disables the click handler while the component is loading.
|
|
234
|
-
*
|
|
235
|
-
* @defaultValue `true`
|
|
236
|
-
*/
|
|
237
|
-
disabledWhileLoading?: boolean;
|
|
238
|
-
/**
|
|
239
|
-
* Triggers a loading indicator.
|
|
240
|
-
*/
|
|
241
|
-
loading?: boolean;
|
|
242
|
-
/**
|
|
243
|
-
* Icon to be added on the left of the text.
|
|
244
|
-
*/
|
|
245
|
-
// eslint-disable-next-line vue/prop-name-casing
|
|
246
|
-
'prepend:icon'?: IconType;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Sets the size of the button. When the value is a string, it will be applied to all screen sizes.
|
|
250
|
-
* Otherwise, it will be applied to the screen size specified by the object.
|
|
251
|
-
*/
|
|
252
|
-
size?:
|
|
253
|
-
| Sizes
|
|
254
|
-
| Partial<
|
|
255
|
-
Record<'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'default', Sizes>
|
|
256
|
-
>;
|
|
257
|
-
};
|
|
345
|
+
### Swapping the toggle icon
|
|
258
346
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
/** Whether the button is globally disabled. */
|
|
264
|
-
disabled?: boolean;
|
|
265
|
-
/** Whether the dropdown panel is currently open. */
|
|
266
|
-
open: boolean;
|
|
267
|
-
/** The current placement of the dropdown panel. */
|
|
268
|
-
placement: BbDropdownProps['placement'];
|
|
269
|
-
};
|
|
347
|
+
The right-hand toggle shows a chevron by default. `right:icon` swaps just that
|
|
348
|
+
glyph — a deliberately narrow alternative to a slot, so the toggle keeps its
|
|
349
|
+
button semantics. Use it for an overflow "…" affordance. There is **no**
|
|
350
|
+
activator slot: the toggle button is part of the component's contract.
|
|
270
351
|
|
|
271
|
-
|
|
272
|
-
export type BbDropdownButtonEdgeSlotProps = {
|
|
273
|
-
/** Whether the button is globally disabled. */
|
|
274
|
-
disabled?: boolean;
|
|
275
|
-
/** Whether the dropdown panel is currently open. */
|
|
276
|
-
open: boolean;
|
|
277
|
-
/** The current placement of the dropdown panel. */
|
|
278
|
-
placement: BbDropdownProps['placement'];
|
|
279
|
-
};
|
|
352
|
+
**Overflow-style toggle glyph**
|
|
280
353
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
/** The resolved display text for this item. */
|
|
294
|
-
text: MappedItem['text'];
|
|
295
|
-
};
|
|
354
|
+
```vue
|
|
355
|
+
<BbDropdownButton
|
|
356
|
+
right:icon="lucide:ellipsis"
|
|
357
|
+
size="sm"
|
|
358
|
+
variant="outline"
|
|
359
|
+
:items="[
|
|
360
|
+
{ key: 'open', text: 'Open', href: '#open' },
|
|
361
|
+
{ key: 'rename', text: 'Rename', href: '#rename' },
|
|
362
|
+
{ key: 'archive', text: 'Archive', href: '#archive' },
|
|
363
|
+
]"
|
|
364
|
+
/>
|
|
365
|
+
```
|
|
296
366
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
};
|
|
367
|
+
### Selectable groups in a split button
|
|
368
|
+
|
|
369
|
+
Because it shares `BbDropdown`'s items, a split button can also host a
|
|
370
|
+
`selectable` group bound to a `<BbDropdownGroup>` companion placed in the
|
|
371
|
+
default slot — a primary action with a configuration chooser tucked into the
|
|
372
|
+
menu. The canonical shape is a merge button: the menu picks the merge method,
|
|
373
|
+
and because `items` is a `computed`, the selection re-labels `items[0]` — the
|
|
374
|
+
main button itself — so the control always announces exactly what it will do.
|
|
306
375
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
[key: string]: (props: BbDropdownButtonItemSlotProps) => any;
|
|
376
|
+
**Merge pull request**
|
|
377
|
+
|
|
378
|
+
```vue
|
|
379
|
+
<template>
|
|
380
|
+
<div
|
|
381
|
+
class="flex max-w-md flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
382
|
+
>
|
|
383
|
+
<div class="flex flex-col gap-0.5">
|
|
384
|
+
<span class="text-sm font-medium">Add usage-based billing #482</span>
|
|
385
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]" data-merge-status>
|
|
386
|
+
{{ status }}
|
|
387
|
+
</span>
|
|
388
|
+
</div>
|
|
389
|
+
<BbDropdownButton :items="items" prepend:icon="lucide:git-merge">
|
|
390
|
+
<BbDropdownGroup id="method" v-model="method" />
|
|
391
|
+
</BbDropdownButton>
|
|
392
|
+
</div>
|
|
393
|
+
</template>
|
|
394
|
+
<script setup lang="ts">
|
|
395
|
+
import { computed, ref } from 'vue';
|
|
396
|
+
import { BbDropdownButton, BbDropdownGroup } from 'bitboss-ui';
|
|
397
|
+
import type { BbDropdownItem } from 'bitboss-ui';
|
|
398
|
+
|
|
399
|
+
type MergeMethod = 'merge' | 'squash' | 'rebase';
|
|
400
|
+
|
|
401
|
+
const labels: Record<MergeMethod, string> = {
|
|
402
|
+
merge: 'Merge pull request',
|
|
403
|
+
squash: 'Squash and merge',
|
|
404
|
+
rebase: 'Rebase and merge',
|
|
337
405
|
};
|
|
406
|
+
|
|
407
|
+
const method = ref<MergeMethod>('squash');
|
|
408
|
+
const status = ref('2 approvals · all checks passed');
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Selectable group parameterizes the primary action: `items` is a computed, so
|
|
412
|
+
* picking a method re-labels `items[0]` — the main button itself.
|
|
413
|
+
*/
|
|
414
|
+
const items = computed<BbDropdownItem[]>(() => [
|
|
415
|
+
{
|
|
416
|
+
key: 'merge-pr',
|
|
417
|
+
text: labels[method.value],
|
|
418
|
+
onClick: () => (status.value = `Merged into main (${method.value})`),
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
key: 'method',
|
|
422
|
+
label: 'Merge method',
|
|
423
|
+
selectable: true,
|
|
424
|
+
items: [
|
|
425
|
+
{ key: 'merge', text: 'Create a merge commit' },
|
|
426
|
+
{ key: 'squash', text: 'Squash and merge' },
|
|
427
|
+
{ key: 'rebase', text: 'Rebase and merge' },
|
|
428
|
+
],
|
|
429
|
+
},
|
|
430
|
+
]);
|
|
431
|
+
</script>
|
|
338
432
|
```
|
|
339
433
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
&[data-md] {
|
|
385
|
-
--bb-button-h: 36px;
|
|
386
|
-
--font-size: 16px;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
&[data-lg] {
|
|
390
|
-
--bb-button-h: 40px;
|
|
391
|
-
--font-size: 18px;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
&[data-xl] {
|
|
395
|
-
--bb-button-h: 44px;
|
|
396
|
-
--font-size: 20px;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.bb-dropdown-button__main-btn,
|
|
400
|
-
.bb-dropdown-button__dropdown-btn {
|
|
401
|
-
align-items: center;
|
|
402
|
-
background-color: var(--color);
|
|
403
|
-
border-color: var(--border-color);
|
|
404
|
-
border-radius: var(--bb-radius);
|
|
405
|
-
box-shadow: 0px 0px 0px 0px var(--bb-ring);
|
|
406
|
-
color: var(--text-color);
|
|
407
|
-
display: inline-flex;
|
|
408
|
-
font-size: var(--font-size);
|
|
409
|
-
font-weight: 500;
|
|
410
|
-
gap: var(--gap);
|
|
411
|
-
justify-content: center;
|
|
412
|
-
min-height: var(--bb-button-h);
|
|
413
|
-
padding-bottom: var(--py);
|
|
414
|
-
padding-left: var(--px);
|
|
415
|
-
padding-right: var(--px);
|
|
416
|
-
padding-top: var(--py);
|
|
417
|
-
transition: all 0.3s;
|
|
418
|
-
transition-duration: 150ms;
|
|
419
|
-
transition-property: box-shadow, color, background-color;
|
|
420
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
421
|
-
vertical-align: top;
|
|
422
|
-
|
|
423
|
-
&:hover:not(:disabled) {
|
|
424
|
-
background-color: color-mix(in srgb, var(--color) 90%, black);
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
&:focus-visible {
|
|
428
|
-
background-color: color-mix(in srgb, var(--color) 90%, black);
|
|
429
|
-
box-shadow: 0px 0px 0px var(--bb-ring-size) var(--ring-color);
|
|
430
|
-
outline: none;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
&:disabled {
|
|
434
|
-
cursor: not-allowed;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
&.bb-dropdown-button--loading {
|
|
439
|
-
.bb-spinner {
|
|
440
|
-
opacity: 1;
|
|
441
|
-
|
|
442
|
-
+ .bb-icon {
|
|
443
|
-
opacity: 0;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
+ .bb-dropdown-button__content {
|
|
447
|
-
margin-left: calc(var(--gap) + var(--bb-button-icon));
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
.bb-dropdown-button__main-btn {
|
|
453
|
-
border-bottom-right-radius: 0px;
|
|
454
|
-
border-right: 1px solid
|
|
455
|
-
color-mix(in srgb, var(--bb-border), transparent 40%);
|
|
456
|
-
border-top-right-radius: 0px;
|
|
457
|
-
}
|
|
458
|
-
.bb-dropdown-button__dropdown-btn {
|
|
459
|
-
border-bottom-left-radius: 0px;
|
|
460
|
-
border-top-left-radius: 0px;
|
|
461
|
-
&[aria-expanded='false'] .bb-dropdown-button__dropdown-chevron {
|
|
462
|
-
transform: rotate(180deg);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.bb-dropdown-button__content {
|
|
467
|
-
transition: margin-left 0.3s;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.bb-spinner,
|
|
471
|
-
.bb-dropdown-button__icon,
|
|
472
|
-
.bb-dropdown-button__prepend-icon,
|
|
473
|
-
.bb-dropdown-button__append-icon {
|
|
474
|
-
color: currentColor;
|
|
475
|
-
display: inline-block;
|
|
476
|
-
flex-shrink: 0;
|
|
477
|
-
transition: opacity 0.3s;
|
|
478
|
-
width: var(--bb-button-icon);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
.bb-spinner {
|
|
482
|
-
margin-right: calc((var(--gap) + var(--bb-button-icon)) * -1);
|
|
483
|
-
opacity: 0;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
.bb-dropdown-button__loading-label {
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
.bb-dropdown-button__dropdown-label {
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
.bb-dropdown-button__dropdown-chevron {
|
|
493
|
-
width: 16px;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
.bb-dropdown {
|
|
497
|
-
display: inline-flex;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
.bb-dropdown__wrapper {
|
|
501
|
-
display: inline-flex;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
@media (min-width: 640px) {
|
|
506
|
-
.bb-dropdown-button {
|
|
507
|
-
&[data-sm\:xs] {
|
|
508
|
-
--bb-button-h: 28px;
|
|
509
|
-
--font-size: 12px;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
&[data-sm\:sm] {
|
|
513
|
-
--bb-button-h: 32px;
|
|
514
|
-
--font-size: 14px;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
&[data-sm\:md] {
|
|
518
|
-
--bb-button-h: 36px;
|
|
519
|
-
--font-size: 16px;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
&[data-sm\:lg] {
|
|
523
|
-
--bb-button-h: 40px;
|
|
524
|
-
--font-size: 18px;
|
|
525
|
-
}
|
|
526
|
-
&[data-sm\:xl] {
|
|
527
|
-
--bb-button-h: 44px;
|
|
528
|
-
--font-size: 20px;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
@media (min-width: 768px) {
|
|
534
|
-
.bb-dropdown-button {
|
|
535
|
-
&[data-md\:xs] {
|
|
536
|
-
--bb-button-h: 28px;
|
|
537
|
-
--font-size: 12px;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
&[data-md\:sm] {
|
|
541
|
-
--bb-button-h: 32px;
|
|
542
|
-
--font-size: 14px;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
&[data-md\:md] {
|
|
546
|
-
--bb-button-h: 36px;
|
|
547
|
-
--font-size: 16px;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
&[data-md\:lg] {
|
|
551
|
-
--bb-button-h: 40px;
|
|
552
|
-
--font-size: 18px;
|
|
553
|
-
}
|
|
554
|
-
&[data-sm\:xl] {
|
|
555
|
-
--bb-button-h: 44px;
|
|
556
|
-
--font-size: 20px;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
@media (min-width: 1024px) {
|
|
562
|
-
.bb-dropdown-button {
|
|
563
|
-
&[data-lg\:xs] {
|
|
564
|
-
--bb-button-h: 28px;
|
|
565
|
-
--font-size: 12px;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
&[data-lg\:sm] {
|
|
569
|
-
--bb-button-h: 32px;
|
|
570
|
-
--font-size: 14px;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
&[data-lg\:md] {
|
|
574
|
-
--bb-button-h: 36px;
|
|
575
|
-
--font-size: 16px;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
&[data-lg\:lg] {
|
|
579
|
-
--bb-button-h: 40px;
|
|
580
|
-
--font-size: 18px;
|
|
581
|
-
}
|
|
582
|
-
&[data-lg\:xl] {
|
|
583
|
-
--bb-button-h: 44px;
|
|
584
|
-
--font-size: 20px;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
@media (min-width: 1280px) {
|
|
590
|
-
.bb-dropdown-button {
|
|
591
|
-
&[data-xl\:xs] {
|
|
592
|
-
--bb-button-h: 28px;
|
|
593
|
-
--font-size: 12px;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
&[data-xl\:sm] {
|
|
597
|
-
--bb-button-h: 32px;
|
|
598
|
-
--font-size: 14px;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
&[data-xl\:md] {
|
|
602
|
-
--bb-button-h: 36px;
|
|
603
|
-
--font-size: 16px;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
&[data-xl\:lg] {
|
|
607
|
-
--bb-button-h: 40px;
|
|
608
|
-
--font-size: 18px;
|
|
609
|
-
}
|
|
610
|
-
&[data-xl\:xl] {
|
|
611
|
-
--bb-button-h: 44px;
|
|
612
|
-
--font-size: 20px;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
@media (min-width: 1536px) {
|
|
618
|
-
.bb-dropdown-button {
|
|
619
|
-
&[data-2xl\:xs] {
|
|
620
|
-
--bb-button-h: 28px;
|
|
621
|
-
--font-size: 12px;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
&[data-2xl\:sm] {
|
|
625
|
-
--bb-button-h: 32px;
|
|
626
|
-
--font-size: 14px;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
&[data-2xl\:md] {
|
|
630
|
-
--bb-button-h: 36px;
|
|
631
|
-
--font-size: 16px;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
&[data-2xl\:lg] {
|
|
635
|
-
--bb-button-h: 40px;
|
|
636
|
-
--font-size: 18px;
|
|
637
|
-
}
|
|
638
|
-
&[data-2xl\:xl] {
|
|
639
|
-
--bb-button-h: 44px;
|
|
640
|
-
--font-size: 20px;
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
}
|
|
434
|
+
### Menu slots and positioning
|
|
435
|
+
|
|
436
|
+
Every slot except `activator` is forwarded into the inner `BbDropdown`:
|
|
437
|
+
`header` / `footer` pin content around the scrolling items, `item:prepend` /
|
|
438
|
+
`item:append` decorate every row, and per-key named slots replace a single
|
|
439
|
+
row's label (see the [BbDropdown guide](./BbDropdown.md) for payloads and
|
|
440
|
+
naming rules). One caveat: a per-key slot for `items[0]` does nothing — that
|
|
441
|
+
item is promoted into the main button and never renders as a menu row.
|
|
442
|
+
|
|
443
|
+
The dropdown's positioning surface passes through as props: `placement`,
|
|
444
|
+
`width` (default `'auto'`, sizes to menu content), `offset`, `padding`,
|
|
445
|
+
`eager`, `transition-duration` and `id`. The toggle opens the menu, but the menu
|
|
446
|
+
aligns to the **whole split control**: the default `bottom` centres it under the
|
|
447
|
+
pair rather than under the toggle half, and a percentage `width` resolves against
|
|
448
|
+
the pair's width (still floored at the menu's 128px minimum). What is **not** exposed: `trigger` (the toggle always opens on
|
|
449
|
+
click), `adaptive` / `offCanvasProps` (the menu follows the global
|
|
450
|
+
`config.adaptive`, becoming a bottom sheet on mobile), `anchor` (hard-wired to
|
|
451
|
+
the split control) and `boundary`.
|
|
452
|
+
|
|
453
|
+
**Forwarded menu slots**
|
|
454
|
+
|
|
455
|
+
```vue
|
|
456
|
+
<BbDropdownButton
|
|
457
|
+
placement="bottom-end"
|
|
458
|
+
variant="outline"
|
|
459
|
+
:width="230"
|
|
460
|
+
:items="[
|
|
461
|
+
{ key: 'new-doc', text: 'New document', href: '#new' },
|
|
462
|
+
{ key: 'from-template', text: 'From template…', href: '#template' },
|
|
463
|
+
{ key: 'import', text: 'Import file', href: '#import' },
|
|
464
|
+
]"
|
|
465
|
+
>
|
|
466
|
+
<template #item:prepend>
|
|
467
|
+
<BbIcon icon="lucide:file-text" />
|
|
468
|
+
</template>
|
|
469
|
+
<template #footer>
|
|
470
|
+
<div class="p-2">
|
|
471
|
+
<BbButton block href="#drafts" size="sm" variant="ghost">
|
|
472
|
+
Browse drafts
|
|
473
|
+
</BbButton>
|
|
474
|
+
</div>
|
|
475
|
+
</template>
|
|
476
|
+
</BbDropdownButton>
|
|
644
477
|
```
|
|
478
|
+
|
|
479
|
+
### Works well with
|
|
480
|
+
|
|
481
|
+
- [useConfirm](./composables/useConfirm.md) — gate a destructive alternate
|
|
482
|
+
inside its `onClick` before acting (see the deployment example above).
|
|
483
|
+
- [useToast](./composables/useToast.md) — confirm the async primary action's
|
|
484
|
+
outcome after the spinner settles.
|
|
485
|
+
- `BbDropdownGroup` — a chooser in the menu (see above); the selection can
|
|
486
|
+
then parameterize the primary action.
|
|
487
|
+
|
|
488
|
+
### Gotchas and anti-patterns
|
|
489
|
+
|
|
490
|
+
- **Don't put the most common action inside the menu** — that's the whole
|
|
491
|
+
point of the split; if no action dominates, use `BbDropdown`.
|
|
492
|
+
- **Don't style the halves apart** — one `variant`/`size` pair is the
|
|
493
|
+
contract; two visually different halves read as two controls.
|
|
494
|
+
- `items[0]`'s `variant` and icons are ignored — set `prepend:icon` /
|
|
495
|
+
`append:icon` / `variant` on the component instead.
|
|
496
|
+
- Keep `items[0]` a plain leaf item; a leading group/array silently loses its
|
|
497
|
+
remaining rows.
|
|
498
|
+
- Navigation belongs on the items (`href`/`to`), never in `onClick`.
|
|
499
|
+
- A `variant: 'destructive'` menu item without a `useConfirm` gate is a
|
|
500
|
+
one-tap disaster — always `await` the confirmation in its `onClick`.
|
|
501
|
+
|
|
502
|
+
### Accessibility
|
|
503
|
+
|
|
504
|
+
- The chevron toggle carries its own localized `aria-label` (from the
|
|
505
|
+
`locale` config) and reflects open state via `aria-expanded` — no extra
|
|
506
|
+
wiring needed.
|
|
507
|
+
- Keep the primary action's label a real verb; don't hide the most common
|
|
508
|
+
action inside the menu.
|
|
509
|
+
- The menu's keyboard model (arrows to rove, `ArrowDown`/`ArrowUp` on the
|
|
510
|
+
toggle to open, `Escape`, focus return) is inherited from `BbDropdown` —
|
|
511
|
+
don't reimplement it.
|
|
512
|
+
- While an async action runs, the busy half blocks re-entry automatically;
|
|
513
|
+
don't disable the other half yourself.
|
|
514
|
+
|
|
515
|
+
## Props
|
|
516
|
+
|
|
517
|
+
| Prop | Type | Default | Required | Description |
|
|
518
|
+
| --- | --- | --- | --- | --- |
|
|
519
|
+
| `append:icon` | `string \| undefined` | | | Icon to be added on the right of the text. |
|
|
520
|
+
| `block` | `boolean \| undefined` | | | Displays the component as full width. |
|
|
521
|
+
| `disableAutoLoading` | `boolean \| undefined` | | | Disables the automatic loading state that tracks async actions (enabled by default). Only affects the main action button: the split toggle half still mirrors the dropdown's internal async-action loading state. |
|
|
522
|
+
| `disabled` | `boolean \| undefined` | | | Disables the component |
|
|
523
|
+
| `eager` | `boolean \| undefined` | | | Prevents rendering content before it's made visible. |
|
|
524
|
+
| `id` | `string \| undefined` | | | The identifier of the component. |
|
|
525
|
+
| `items` | `Item[]` | | yes | Array used to render each dropdown button. They can act as `button`, as `a`, or as `router-link` as they are based on the functionality provided by `BbBaseButton`. Pass a flat array for a single group, nest arrays for divider-separated grou… |
|
|
526
|
+
| `loading` | `boolean \| undefined` | | | Triggers a loading indicator. |
|
|
527
|
+
| `offset` | `number \| undefined` | | | Space the floating container will maintain from the activator. |
|
|
528
|
+
| `padding` | `number \| undefined` | | | Minimum empty space to keep from the edge of the page |
|
|
529
|
+
| `placement` | `Placement \| "cursor" \| undefined` | | | Position of the dropdown relative to the activator. Use `'cursor'` to anchor at the mouse/touch coordinates (hides arrow). |
|
|
530
|
+
| `prepend:icon` | `string \| undefined` | | | Icon to be added on the left of the text. |
|
|
531
|
+
| `right:icon` | `string \| undefined` | | | Replaces the chevron shown inside the right-side dropdown toggle button. A constrained alternative to a slot: only the toggle's icon changes, so the button keeps its semantics. Named for consistency with `prepend:icon` / `append:icon`. |
|
|
532
|
+
| `size` | `Responsive<Sizes> \| undefined` | `"md"` | | Sets the size of the button. When the value is a string, it will be applied to all screen sizes. Otherwise, it will be applied to the screen size specified by the object. |
|
|
533
|
+
| `transitionDuration` | `number \| undefined` | | | How long the transition has to last in milliseconds. Menus use the fast transition rather than the medium one the other popovers default to. |
|
|
534
|
+
| `variant` | `ButtonVariantType \| undefined` | `"primary"` | | Visual variant shared by both buttons of the split control. |
|
|
535
|
+
| `width` | `string \| number \| undefined` | | | Width of the dropdown in pixels, percentage, or 'auto' to fit content. |
|
|
536
|
+
|
|
537
|
+
## Events
|
|
538
|
+
|
|
539
|
+
- None.
|
|
540
|
+
|
|
541
|
+
## Slots
|
|
542
|
+
|
|
543
|
+
- `default` — scope: `any` — Companion content forwarded into the dropdown (e.g. `<BbDropdownGroup>`).
|
|
544
|
+
- `footer` — scope: `BbDropdownButtonEdgeSlotProps` — Content pinned to the bottom of the dropdown panel, outside the scroll area.
|
|
545
|
+
- `header` — scope: `BbDropdownButtonEdgeSlotProps` — Content pinned to the top of the dropdown panel, outside the scroll area.
|
|
546
|
+
- `item:append` — scope: `BbDropdownButtonItemSlotProps` — Content rendered after each dropdown item's default content.
|
|
547
|
+
- `item:prepend` — scope: `BbDropdownButtonItemSlotProps` — Content rendered before each dropdown item's default content.
|
|
548
|
+
- `loading` — scope: `BbDropdownPlaceholderSlotProps` — Replaces the default loading placeholder row shown in a pipeline group while its async items load. Rendered once per loading group. Forwarded to the underlying `BbDropdown`.
|
|
549
|
+
- `no-data` — scope: `BbDropdownPlaceholderSlotProps` — Replaces the default "no data" placeholder row shown in a pipeline group that resolved to no items. Rendered once per empty group. Forwarded to the underlying `BbDropdown`.
|
|
550
|
+
|
|
551
|
+
## See Also
|
|
552
|
+
|
|
553
|
+
- [BbButton](./BbButton.md) — Button with loading state, tooltip, and icon support.
|
|
554
|
+
- [BbDropdown](./BbDropdown.md) — Displays contextual action menus and menu content.
|
|
555
|
+
- [BbBaseButton](./BbBaseButton.md) — Unstyled button/link primitive: element resolution (button/anchor/router link) and the full navigation engine, with no visual chrome. Use for any clickable or navigable surface that is not a variant-first BbButton — cards, list rows, custom links.
|