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
package/dist/ai/BbButton.md
CHANGED
|
@@ -1,685 +1,890 @@
|
|
|
1
1
|
# BbButton
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Agent Contract
|
|
4
|
+
|
|
5
|
+
- Safety level: **Consumer API**
|
|
6
|
+
- Group: **Inputs**
|
|
7
|
+
- Description: Button with loading state, tooltip, and icon support.
|
|
8
|
+
- Usage rule: Prefer this component for consumer-facing implementations.
|
|
9
|
+
- Implementation source (only when the contract below is not enough): [source/BbButton.md](./source/BbButton.md)
|
|
10
|
+
|
|
11
|
+
## Usage & Guidelines
|
|
12
|
+
|
|
13
|
+
### When to use
|
|
14
|
+
|
|
15
|
+
Reach for `BbButton` for any action the user _performs_ (submit, save, delete,
|
|
16
|
+
toggle) and for any navigation that must look like a button — including
|
|
17
|
+
`variant="link"`, which recolors a button rather than turning it into text.
|
|
18
|
+
Decision rules:
|
|
19
|
+
|
|
20
|
+
- One action, nothing else → `BbButton`.
|
|
21
|
+
- One dominant action plus close alternates (_Save / Save as draft_) →
|
|
22
|
+
`BbDropdownButton`.
|
|
23
|
+
- A menu with no dominant action (overflow "…", account menu) → `BbDropdown`.
|
|
24
|
+
- A completely unstyled clickable/navigable element → `BbBaseButton` (same
|
|
25
|
+
navigation surface, zero chrome).
|
|
26
|
+
|
|
27
|
+
`BbButton` is a thin wrapper over `BbBaseButton` — variant/size/loading/toggle
|
|
28
|
+
chrome on top of the base's element-resolution and **navigation** engine. That
|
|
29
|
+
navigation surface (`href`, `to`, Inertia visits, active classes — see below)
|
|
30
|
+
lives on `BbBaseButton`, so **every** control built on it navigates the same
|
|
31
|
+
way: `BbButton`, `BbDropdownButton`, dropdown/breadcrumb/tab items, and
|
|
32
|
+
`BbBaseButton` itself. Whenever a click should end in navigation, hand it to one
|
|
33
|
+
of these via `href`/`to` rather than an `@click` handler — the rule below is
|
|
34
|
+
library-wide, not `BbButton`-specific.
|
|
35
|
+
|
|
36
|
+
### Choosing a variant
|
|
37
|
+
|
|
38
|
+
Start with the built-in ladder: `primary`, `secondary`, `outline`, `ghost`,
|
|
39
|
+
`destructive`, and `link`. Use exactly one `variant="primary"` per view region;
|
|
40
|
+
everything else is `secondary`, `outline` or `ghost`. Reserve `destructive` for
|
|
41
|
+
irreversible actions (and gate them behind `useConfirm`). `link` is navigation
|
|
42
|
+
disguised as text — pair it with `href`/`to`, not with heavy actions.
|
|
43
|
+
`variant="none"` renders structure with no variant styling — an escape hatch,
|
|
44
|
+
avoid it.
|
|
45
|
+
|
|
46
|
+
**`link` changes color, not layout.** It keeps the button box: the size scale's
|
|
47
|
+
height and horizontal padding still apply, so it occupies button space and never
|
|
48
|
+
flows inline. That is right for a standalone navigation control sitting among
|
|
49
|
+
other buttons, and right for a clickable record name in a table cell. It is
|
|
50
|
+
wrong inside a sentence, a paragraph, or anywhere the text must wrap with the
|
|
51
|
+
copy around it — there, the padding and fixed height show. For genuinely inline
|
|
52
|
+
navigation use `BbBaseButton` with your own link class: it renders the same
|
|
53
|
+
`href`/`to` surface with no button chrome at all.
|
|
54
|
+
|
|
55
|
+
**The variant ladder**
|
|
4
56
|
|
|
5
57
|
```vue
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'bb-button--group': props.group,
|
|
16
|
-
'bb-button--icon': !!icon,
|
|
17
|
-
'bb-button--active': isToggle && isPressed,
|
|
18
|
-
}"
|
|
19
|
-
:disabled="disabled"
|
|
20
|
-
:tabindex="loading ? -1 : undefined"
|
|
21
|
-
@click="onClick"
|
|
22
|
-
>
|
|
23
|
-
<BbSpinner class="bb-button__spinner" />
|
|
24
|
-
<BbIcon
|
|
25
|
-
v-if="props['icon']"
|
|
26
|
-
class="bb-button__icon"
|
|
27
|
-
:type="props['icon']"
|
|
28
|
-
/>
|
|
29
|
-
<BbIcon
|
|
30
|
-
v-else-if="props['prepend:icon']"
|
|
31
|
-
class="bb-button__prepend-icon"
|
|
32
|
-
:type="props['prepend:icon']"
|
|
33
|
-
/>
|
|
34
|
-
<span class="bb-button__content" :class="{ 'sr-only': !!icon }"
|
|
35
|
-
><slot>{{ text }}</slot></span
|
|
36
|
-
>
|
|
37
|
-
<span v-if="loading" class="bb-button__loading-label sr-only">{{
|
|
38
|
-
t('common.loadingText')
|
|
39
|
-
}}</span>
|
|
40
|
-
|
|
41
|
-
<BbIcon
|
|
42
|
-
v-if="!icon && props['append:icon']"
|
|
43
|
-
class="bb-button__append-icon"
|
|
44
|
-
:type="props['append:icon']"
|
|
45
|
-
/>
|
|
46
|
-
|
|
47
|
-
<BbTooltipAsync
|
|
48
|
-
v-if="tooltip != null || $slots.tooltip"
|
|
49
|
-
:activator="buttonDom"
|
|
50
|
-
:placement="tooltipPlacement"
|
|
51
|
-
:timeout="tooltipTimeout"
|
|
52
|
-
>
|
|
53
|
-
<slot name="tooltip" :text="tooltip">{{ tooltip }}</slot>
|
|
54
|
-
</BbTooltipAsync>
|
|
55
|
-
</BaseButton>
|
|
56
|
-
</template>
|
|
58
|
+
<div class="flex flex-wrap items-center gap-2">
|
|
59
|
+
<BbButton variant="primary">Save</BbButton>
|
|
60
|
+
<BbButton variant="secondary">Duplicate</BbButton>
|
|
61
|
+
<BbButton variant="outline">Export</BbButton>
|
|
62
|
+
<BbButton variant="ghost">Cancel</BbButton>
|
|
63
|
+
<BbButton variant="destructive">Delete</BbButton>
|
|
64
|
+
<BbButton variant="link" href="#pricing">See pricing</BbButton>
|
|
65
|
+
</div>
|
|
66
|
+
```
|
|
57
67
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
import { computed, defineAsyncComponent, ref, toRef, useAttrs } from 'vue';
|
|
62
|
-
import { pickBy } from '@/utilities/functions/pickBy';
|
|
63
|
-
import { noop } from '@/utilities/functions/noop';
|
|
64
|
-
import { useLocale } from '@/composables/useLocale';
|
|
65
|
-
import { extractDomContainer } from '@/utilities/functions/extractDomContainer';
|
|
66
|
-
import { isEqual } from '@/utilities/functions/isEqual';
|
|
67
|
-
import type { BbButtonProps, BbButtonSlots } from './types';
|
|
68
|
-
|
|
69
|
-
const BbTooltipAsync = defineAsyncComponent(
|
|
70
|
-
() => import('../BbTooltip/BbTooltip.vue')
|
|
71
|
-
);
|
|
72
|
-
type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
73
|
-
|
|
74
|
-
defineOptions({
|
|
75
|
-
inheritAttrs: false,
|
|
76
|
-
});
|
|
68
|
+
If your product needs another semantic style, register it in the plugin config
|
|
69
|
+
instead of shipping one-off inline styling — registered names become typed
|
|
70
|
+
values of `variant`:
|
|
77
71
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
trueValue: true,
|
|
82
|
-
});
|
|
72
|
+
```ts
|
|
73
|
+
// vite.config.ts
|
|
74
|
+
bitbossUi({ buttonVariants: ['upgrade'] });
|
|
83
75
|
|
|
84
|
-
|
|
76
|
+
// nuxt.config.ts
|
|
77
|
+
export default defineNuxtConfig({ bitboss: { buttonVariants: ['upgrade'] } });
|
|
78
|
+
```
|
|
85
79
|
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
The library ships **no CSS for registered variants**: style
|
|
81
|
+
`.bb-button--upgrade` yourself, following the built-in state recipe (neutral
|
|
82
|
+
hover, `aria-pressed` for pressed, `--bb-ring` for focus):
|
|
88
83
|
|
|
89
|
-
|
|
84
|
+
```css
|
|
85
|
+
.bb-button.bb-button--upgrade {
|
|
86
|
+
background-color: var(--bb-primary);
|
|
90
87
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
&:hover:not(.bb-base-button--disabled) {
|
|
89
|
+
background-color: color-mix(in oklab, var(--bb-primary) 90%, black);
|
|
90
|
+
}
|
|
94
91
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
92
|
+
&:focus-visible {
|
|
93
|
+
box-shadow: 0 0 0 var(--bb-ring-size) var(--bb-ring);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
98
97
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
Never use a variant name that is neither built-in nor registered in the
|
|
99
|
+
project's `vite.config.*` / `nuxt.config.*`. Unsure what's currently legal in
|
|
100
|
+
a given project (built-ins plus whatever it has registered)? Don't guess from
|
|
101
|
+
an example — the plugin regenerates
|
|
102
|
+
`node_modules/bitboss-ui/button-variants.d.ts` on every build; that file
|
|
103
|
+
**is** the closed, machine-readable list of every legal `variant` value for
|
|
104
|
+
that project, registrations included (see
|
|
105
|
+
[Installation and Plugin Setup](./guides/installation-and-plugin-setup.md) §
|
|
106
|
+
variants).
|
|
107
|
+
|
|
108
|
+
### Label, tag and type
|
|
109
|
+
|
|
110
|
+
**Prefer the default slot for the label** — write `<BbButton>Save</BbButton>`,
|
|
111
|
+
not `:text="'Save'"`. The `text` prop renders identically (`<slot>{{ text }}</slot>`
|
|
112
|
+
under the hood) and exists mainly for `:items`-style loops that spread a config
|
|
113
|
+
object; when both are present the slot wins. Reach for `text` only when a string
|
|
114
|
+
is all you have; otherwise the slot reads cleaner and lets you compose markup.
|
|
115
|
+
`type` defaults to `'button'`, so a `BbButton` inside a form never submits by
|
|
116
|
+
accident; set `type="submit"` for the one that should, and let the form's
|
|
117
|
+
`@submit` handler own the logic:
|
|
118
|
+
|
|
119
|
+
**Submitting a form via type, not @click**
|
|
103
120
|
|
|
104
|
-
|
|
121
|
+
```vue
|
|
122
|
+
<form
|
|
123
|
+
class="flex max-w-sm flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
124
|
+
@submit.prevent="state.sent = true"
|
|
125
|
+
>
|
|
126
|
+
<div class="flex flex-col gap-0.5">
|
|
127
|
+
<span class="text-sm font-medium">Request workspace access</span>
|
|
128
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">Acme Studio · billing team</span>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="flex items-center gap-2">
|
|
131
|
+
<BbButton type="submit" variant="primary">Request access</BbButton>
|
|
132
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
133
|
+
{{ state.sent ? 'Request sent — check your email.' : 'Owner will approve by email.' }}
|
|
134
|
+
</span>
|
|
135
|
+
</div>
|
|
136
|
+
</form>
|
|
137
|
+
```
|
|
105
138
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
)
|
|
139
|
+
`tag` renders the button as one of `button` (default), `div`, `span` or `label`,
|
|
140
|
+
for the rare case where a native `<button>` is invalid in context (e.g. inside
|
|
141
|
+
another interactive element, or a `<label>` wrapping a hidden file input).
|
|
142
|
+
Non-`button` tags drop the native `type` and
|
|
143
|
+
`disabled` attributes (invalid there); disabled state is then conveyed only by
|
|
144
|
+
the `bb-base-button--disabled` class, so you lose native form/keyboard
|
|
145
|
+
semantics — keep the default unless you must not.
|
|
109
146
|
|
|
110
|
-
|
|
147
|
+
### Sizes and layout
|
|
111
148
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
if (isToggle.value) {
|
|
121
|
-
const trueVal = props.trueValue;
|
|
122
|
-
const falseVal = props.falseValue;
|
|
123
|
-
modelValue.value = isEqual(modelValue.value, trueVal) ? falseVal : trueVal;
|
|
124
|
-
}
|
|
125
|
-
internalLoading.value++;
|
|
126
|
-
await ((attrs.onClick ?? noop) as (...args: any[]) => any)(event);
|
|
127
|
-
internalLoading.value--;
|
|
128
|
-
};
|
|
149
|
+
Six sizes, `xs`–`2xl` (default `md`), derived from the global `--bb-control-h`
|
|
150
|
+
scale — height, padding, font, radius and icon size move together. **Prefer
|
|
151
|
+
`md`**: at 28px it sits one step under the 32px input height and exactly
|
|
152
|
+
matches a `compact` input, so an `md` button aligns flush beside compact
|
|
153
|
+
fields — and being the default, you simply omit the `size` prop. Use
|
|
154
|
+
`sm`/`xs` inside genuinely dense surfaces (table row actions, toolbars,
|
|
155
|
+
bulk-action bars) and `lg`+ only for a rare hero action. `block` stretches
|
|
156
|
+
the button to its container's width (e.g. mobile CTAs, dialog footers).
|
|
129
157
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
return acc;
|
|
143
|
-
},
|
|
144
|
-
{}
|
|
145
|
-
);
|
|
146
|
-
|
|
147
|
-
const propsToPass = toRef(() => ({
|
|
148
|
-
...forwardedAttrs.value,
|
|
149
|
-
...sizeAttributes,
|
|
150
|
-
...pickBy(
|
|
151
|
-
props,
|
|
152
|
-
(_, key) =>
|
|
153
|
-
![
|
|
154
|
-
'append:icon',
|
|
155
|
-
'autoLoading',
|
|
156
|
-
'disabled',
|
|
157
|
-
'enabledWhileLoading',
|
|
158
|
-
'falseValue',
|
|
159
|
-
'group',
|
|
160
|
-
'icon',
|
|
161
|
-
'loading',
|
|
162
|
-
'modelValue',
|
|
163
|
-
'prepend:icon',
|
|
164
|
-
'size',
|
|
165
|
-
'tooltip',
|
|
166
|
-
'tooltipPlacement',
|
|
167
|
-
'trueValue',
|
|
168
|
-
].includes(key)
|
|
169
|
-
),
|
|
170
|
-
}));
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Redefined so current implementation of other components
|
|
174
|
-
* which leverage this component can still access the button
|
|
175
|
-
* DOM element
|
|
176
|
-
*/
|
|
177
|
-
defineExpose({ $el: buttonDom });
|
|
178
|
-
</script>
|
|
179
|
-
<style lang="postcss">
|
|
180
|
-
@import './index.css';
|
|
181
|
-
</style>
|
|
158
|
+
**The size scale**
|
|
159
|
+
|
|
160
|
+
```vue
|
|
161
|
+
<div class="flex flex-wrap items-center gap-2">
|
|
162
|
+
<BbButton size="xs" variant="outline">xs</BbButton>
|
|
163
|
+
<BbButton size="sm" variant="outline">sm</BbButton>
|
|
164
|
+
<BbButton size="md" variant="outline">md</BbButton>
|
|
165
|
+
<BbButton size="lg" variant="outline">lg</BbButton>
|
|
166
|
+
<BbButton size="xl" variant="outline">xl</BbButton>
|
|
167
|
+
<BbButton size="2xl" variant="outline">2xl</BbButton>
|
|
168
|
+
</div>
|
|
182
169
|
```
|
|
183
170
|
|
|
184
|
-
|
|
171
|
+
`size` also accepts a responsive map keyed by breakpoint (`default` plus
|
|
172
|
+
Tailwind's `sm` 640 / `md` 768 / `lg` 1024 / `xl` 1280 / `2xl` 1536). It is
|
|
173
|
+
purely CSS-driven — no runtime breakpoint watching, so it is SSR-safe. Note:
|
|
174
|
+
breakpoint entries switch height, font size and content gap; horizontal
|
|
175
|
+
padding, icon size and radius stay at the `default` entry's values.
|
|
185
176
|
|
|
186
|
-
|
|
187
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
188
|
-
import type { Placement } from '@floating-ui/vue';
|
|
189
|
-
import type { IconType } from '@/types/Icon';
|
|
190
|
-
import type { InertiaLinkProps } from '@inertiajs/vue3';
|
|
191
|
-
|
|
192
|
-
type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
193
|
-
|
|
194
|
-
export type BbButtonProps = {
|
|
195
|
-
/**
|
|
196
|
-
* Tracks the loading status internally.
|
|
197
|
-
*/
|
|
198
|
-
autoLoading?: boolean;
|
|
199
|
-
/**
|
|
200
|
-
* Class to apply when the link is active.
|
|
201
|
-
*/
|
|
202
|
-
activeClass?: string;
|
|
203
|
-
/**
|
|
204
|
-
* Value passed to the attribute `aria-current` when the link is exact active.
|
|
205
|
-
*
|
|
206
|
-
* @defaultValue `'page'`
|
|
207
|
-
*/
|
|
208
|
-
ariaCurrentValue?:
|
|
209
|
-
| 'page'
|
|
210
|
-
| 'step'
|
|
211
|
-
| 'location'
|
|
212
|
-
| 'date'
|
|
213
|
-
| 'time'
|
|
214
|
-
| 'true'
|
|
215
|
-
| 'false';
|
|
216
|
-
/**
|
|
217
|
-
* Icon to be added on the right of the text.
|
|
218
|
-
*/
|
|
219
|
-
// eslint-disable-next-line vue/prop-name-casing
|
|
220
|
-
'append:icon'?: IconType;
|
|
221
|
-
/**
|
|
222
|
-
* Displays the component as full width.
|
|
223
|
-
*/
|
|
224
|
-
block?: boolean;
|
|
225
|
-
|
|
226
|
-
data?: object;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Disables the component.
|
|
230
|
-
*/
|
|
231
|
-
disabled?: boolean;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Disables the click handler while the component is loading.
|
|
235
|
-
*/
|
|
236
|
-
enabledWhileLoading?: boolean;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Class to apply when the link is exact active.
|
|
240
|
-
*/
|
|
241
|
-
exactActiveClass?: string;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Identifies the button as part of a button group.
|
|
245
|
-
*/
|
|
246
|
-
group?: boolean;
|
|
247
|
-
|
|
248
|
-
headers?: object;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Returns the hyperlink's URL.
|
|
252
|
-
*
|
|
253
|
-
* Can be set, to change the URL.
|
|
254
|
-
*/
|
|
255
|
-
href?: HTMLAnchorElement['href'];
|
|
256
|
-
/**
|
|
257
|
-
* Used when only an icon with no text should be displayed.
|
|
258
|
-
*/
|
|
259
|
-
icon?: IconType;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Triggers a loading indicator.
|
|
263
|
-
*/
|
|
264
|
-
loading?: boolean;
|
|
265
|
-
|
|
266
|
-
method?: 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
267
|
-
|
|
268
|
-
onBefore?: () => void;
|
|
269
|
-
|
|
270
|
-
onCancel?: () => void;
|
|
271
|
-
|
|
272
|
-
onCancelToken?: InertiaLinkProps['onCancelToken'];
|
|
273
|
-
|
|
274
|
-
onFinish?: () => void;
|
|
275
|
-
|
|
276
|
-
only?: string[];
|
|
277
|
-
|
|
278
|
-
onProgress?: (progress: { percentage: number | undefined }) => void;
|
|
279
|
-
|
|
280
|
-
onStart?: () => void;
|
|
281
|
-
|
|
282
|
-
onSuccess?: () => void;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Icon to be added on the left of the text.
|
|
286
|
-
*/
|
|
287
|
-
// eslint-disable-next-line vue/prop-name-casing
|
|
288
|
-
'prepend:icon'?: IconType;
|
|
289
|
-
|
|
290
|
-
preserveScroll?: boolean | ((props: { [key: string]: unknown }) => boolean);
|
|
291
|
-
|
|
292
|
-
preserveState?:
|
|
293
|
-
| boolean
|
|
294
|
-
| ((props: { [key: string]: unknown }) => boolean)
|
|
295
|
-
| null;
|
|
296
|
-
|
|
297
|
-
queryStringArrayFormat?: 'brackets' | 'indices';
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Calls `router.replace` instead of `router.push`.
|
|
301
|
-
*/
|
|
302
|
-
replace?: boolean;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Sets the size of the button. When the value is a string, it will be applied to all
|
|
306
|
-
* screen sizes. Otherwise, it will be applied to the screen size specified by the object.
|
|
307
|
-
*
|
|
308
|
-
* @defaultValue `'md'`
|
|
309
|
-
*/
|
|
310
|
-
size?:
|
|
311
|
-
| Sizes
|
|
312
|
-
| Partial<
|
|
313
|
-
Record<'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'default', Sizes>
|
|
314
|
-
>;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Any HTML tag corresponding to a non-void HTML element.
|
|
318
|
-
*/
|
|
319
|
-
tag?: string;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Sets or retrieves the window or frame at which to target content.
|
|
323
|
-
*/
|
|
324
|
-
target?: HTMLAnchorElement['target'];
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Text content of the component.
|
|
328
|
-
*/
|
|
329
|
-
text?: string;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Text content for a tooltip displayed on hover.
|
|
333
|
-
* When provided, a {@link BbTooltip} is lazily loaded and attached to the button.
|
|
334
|
-
*/
|
|
335
|
-
tooltip?: string;
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Placement of the tooltip relative to the button.
|
|
339
|
-
* Accepts any {@link Placement} value from Floating UI.
|
|
340
|
-
*
|
|
341
|
-
* @defaultValue `'top'`
|
|
342
|
-
*/
|
|
343
|
-
tooltipPlacement?: Placement;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* The delay in milliseconds before the tooltip is shown.
|
|
347
|
-
*
|
|
348
|
-
* @defaultValue `0`
|
|
349
|
-
*/
|
|
350
|
-
tooltipTimeout?: number;
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Route Location the link should navigate to when clicked on.
|
|
354
|
-
*/
|
|
355
|
-
to?: RouteLocationRaw;
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Value emitted when the toggle is activated.
|
|
359
|
-
*
|
|
360
|
-
* @defaultValue `true`
|
|
361
|
-
*/
|
|
362
|
-
trueValue?: any;
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* Value emitted when the toggle is deactivated.
|
|
366
|
-
*
|
|
367
|
-
* @defaultValue `false`
|
|
368
|
-
*/
|
|
369
|
-
falseValue?: any;
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Gets the classification and default behavior of the button.
|
|
373
|
-
*/
|
|
374
|
-
type?: HTMLButtonElement['type'];
|
|
375
|
-
};
|
|
177
|
+
**Responsive size — resize the preview**
|
|
376
178
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
179
|
+
```vue
|
|
180
|
+
<BbButton :size="{ default: 'sm', lg: 'lg' }" variant="primary">
|
|
181
|
+
Start free trial
|
|
182
|
+
</BbButton>
|
|
183
|
+
```
|
|
382
184
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
185
|
+
### Icons
|
|
186
|
+
|
|
187
|
+
Use `prepend:icon` / `append:icon` for labelled buttons, and `icon` for
|
|
188
|
+
icon-only buttons. Accessibility here is **symmetric**: the label content still
|
|
189
|
+
matters, it is just rendered `sr-only` when `icon` is set. So give an icon-only
|
|
190
|
+
button its accessible name the same way as any other — through the default slot
|
|
191
|
+
(or `text`): `<BbButton icon="lucide:settings">Settings</BbButton>` renders no
|
|
192
|
+
visible text but announces "Settings". `aria-label` is plan B — an override for
|
|
193
|
+
when the accessible name must differ from (or you can't supply) slot content.
|
|
194
|
+
Just don't ship an icon-only button with neither. When `icon` is set,
|
|
195
|
+
`append:icon` is ignored. Icons scale with the button's `size`; names come from
|
|
196
|
+
the `lucide:*` set (see the icons policy).
|
|
197
|
+
|
|
198
|
+
**Icons and icon-only**
|
|
199
|
+
|
|
200
|
+
```vue
|
|
201
|
+
<div
|
|
202
|
+
class="flex max-w-sm items-center justify-between gap-2 rounded-[var(--bb-radius)] border p-3"
|
|
203
|
+
>
|
|
204
|
+
<span class="text-sm font-medium">Invoices</span>
|
|
205
|
+
<div class="flex items-center gap-1.5">
|
|
206
|
+
<BbButton variant="primary" prepend:icon="lucide:plus">New invoice</BbButton>
|
|
207
|
+
<BbButton variant="outline" append:icon="lucide:download">Export</BbButton>
|
|
208
|
+
<!-- Label comes from slot content, rendered sr-only — no aria-label needed. -->
|
|
209
|
+
<BbButton variant="ghost" icon="lucide:settings">Settings</BbButton>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
393
212
|
```
|
|
394
213
|
|
|
395
|
-
|
|
214
|
+
### Toggle buttons
|
|
215
|
+
|
|
216
|
+
Binding `v-model` turns the button into a toggle: each click flips the model
|
|
217
|
+
between `true-value` and `false-value` (defaults `true`/`false`), and the
|
|
218
|
+
component manages `aria-pressed` plus the pressed styling for you. Values are
|
|
219
|
+
compared structurally, so object `true-value`s work. Because toggle mode is
|
|
220
|
+
detected by the model being defined, **seed the model** (`ref(false)`, not an
|
|
221
|
+
undefined `state.*`) — an undefined model is not a toggle yet and the first
|
|
222
|
+
click won't set it.
|
|
223
|
+
|
|
224
|
+
For an exclusive set, share one `v-model` across the buttons and give each its
|
|
225
|
+
own `true-value`. The `false-value` decides the selection policy:
|
|
226
|
+
|
|
227
|
+
- `:false-value="null"` — optional: clicking the active button clears the
|
|
228
|
+
selection.
|
|
229
|
+
- `false-value` **mirroring that same button's own `true-value`** — mandatory:
|
|
230
|
+
re-clicking the active button re-emits the same value, so one choice is
|
|
231
|
+
always selected.
|
|
232
|
+
|
|
233
|
+
**Point every button's `false-value` at its own `true-value`, never at a
|
|
234
|
+
sibling's.** Each button independently answers "what do I emit when I'm
|
|
235
|
+
clicked while I'm not the active one?" — under the mandatory policy the
|
|
236
|
+
answer is always "myself," never "whichever value the other button owns." Get
|
|
237
|
+
this backwards and the control inverts silently: the button that is
|
|
238
|
+
_currently pressed_ is the one whose click now emits the _other_ button's
|
|
239
|
+
value, so clicking the visibly-active segment switches away from it instead
|
|
240
|
+
of re-confirming it. Nothing catches this — both strings are legal
|
|
241
|
+
`false-value`s, so it passes `vue-tsc`, lint, and `bitboss-ui check`, and it
|
|
242
|
+
only shows up when someone clicks the segment that's already selected. A
|
|
243
|
+
two-button segmented toggle, written out explicitly rather than looped, is
|
|
244
|
+
the shape that trips this up most:
|
|
396
245
|
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
);
|
|
410
|
-
--font-size-xs: 12px;
|
|
411
|
-
--font-size-sm: 14px;
|
|
412
|
-
--font-size-md: 16px;
|
|
413
|
-
--font-size-lg: 18px;
|
|
414
|
-
--font-size-xl: 20px;
|
|
415
|
-
--bb-button-h-xs: 28px;
|
|
416
|
-
--bb-button-h-sm: 32px;
|
|
417
|
-
--bb-button-h-md: 36px;
|
|
418
|
-
--bb-button-h-lg: 40px;
|
|
419
|
-
--bb-button-h-xl: 44px;
|
|
420
|
-
align-items: center;
|
|
421
|
-
background-color: var(--color);
|
|
422
|
-
border-color: var(--border-color);
|
|
423
|
-
border-radius: var(--bb-radius);
|
|
424
|
-
border-width: 1px;
|
|
425
|
-
box-shadow: 0px 0px 0px 0px var(--bb-ring);
|
|
426
|
-
color: var(--text-color);
|
|
427
|
-
display: inline-flex;
|
|
428
|
-
font-size: var(--font-size);
|
|
429
|
-
font-weight: 500;
|
|
430
|
-
gap: var(--gap);
|
|
431
|
-
justify-content: center;
|
|
432
|
-
line-height: 1;
|
|
433
|
-
min-height: var(--bb-button-h);
|
|
434
|
-
padding-bottom: var(--py);
|
|
435
|
-
padding-left: var(--px);
|
|
436
|
-
padding-right: var(--px);
|
|
437
|
-
padding-top: var(--py);
|
|
438
|
-
transition: all 0.3s;
|
|
439
|
-
transition-duration: 150ms;
|
|
440
|
-
transition-property:
|
|
441
|
-
box-shadow, color, background-color, min-height, font-size;
|
|
442
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
443
|
-
vertical-align: top;
|
|
444
|
-
|
|
445
|
-
&[aria-pressed='true']:not(.base-btn--disabled) {
|
|
446
|
-
background-color: color-mix(in srgb, var(--color) 80%, black);
|
|
447
|
-
}
|
|
246
|
+
```vue
|
|
247
|
+
<!-- Mandatory exclusive set — each button's false-value mirrors ITS OWN
|
|
248
|
+
true-value. Board's false-value is "board", not "table"; Table's is
|
|
249
|
+
"table", not "board". Swapping them makes the pressed segment toggle
|
|
250
|
+
away to its sibling instead of staying selected. -->
|
|
251
|
+
<BbButton v-model="view" group true-value="board" false-value="board">
|
|
252
|
+
Board
|
|
253
|
+
</BbButton>
|
|
254
|
+
<BbButton v-model="view" group true-value="table" false-value="table">
|
|
255
|
+
Table
|
|
256
|
+
</BbButton>
|
|
257
|
+
```
|
|
448
258
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
259
|
+
A `v-for` over an options array gets this correct for free —
|
|
260
|
+
`:true-value="option.value"` and `:false-value="option.value"` both read the
|
|
261
|
+
_same_ loop item, so every rendered button automatically mirrors itself (the
|
|
262
|
+
live example below uses this shape). The mistake above only becomes possible
|
|
263
|
+
once that loop is unrolled into separate elements with their own literal
|
|
264
|
+
strings.
|
|
452
265
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
outline: none;
|
|
457
|
-
}
|
|
266
|
+
Add `group` to fuse adjacent buttons into one visual segment control. It is
|
|
267
|
+
purely visual (shared borders/radius between siblings) — each button keeps its
|
|
268
|
+
own semantics, and there is no arrow-key roving between them.
|
|
458
269
|
|
|
459
|
-
|
|
460
|
-
cursor: not-allowed;
|
|
270
|
+
**Exclusive toggle groups**
|
|
461
271
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
272
|
+
```vue
|
|
273
|
+
<template>
|
|
274
|
+
<div
|
|
275
|
+
class="flex max-w-md flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
276
|
+
>
|
|
277
|
+
<div class="flex flex-col gap-0.5">
|
|
278
|
+
<span class="text-sm font-medium">Issues</span>
|
|
279
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
280
|
+
Acme workspace ·
|
|
281
|
+
{{
|
|
282
|
+
statusFilter
|
|
283
|
+
? statuses.find((s) => s.value === statusFilter)?.label
|
|
284
|
+
: 'All statuses'
|
|
285
|
+
}}
|
|
286
|
+
· {{ views.find((v) => v.value === activeView)?.label }} view
|
|
287
|
+
</span>
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<div class="flex flex-col gap-1.5">
|
|
291
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">Status</span>
|
|
292
|
+
<div>
|
|
293
|
+
<BbButton
|
|
294
|
+
v-for="status in statuses"
|
|
295
|
+
:key="status.value"
|
|
296
|
+
v-model="statusFilter"
|
|
297
|
+
:false-value="null"
|
|
298
|
+
group
|
|
299
|
+
size="sm"
|
|
300
|
+
:true-value="status.value"
|
|
301
|
+
variant="outline"
|
|
302
|
+
>
|
|
303
|
+
{{ status.label }}
|
|
304
|
+
</BbButton>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
<div class="flex flex-col gap-1.5">
|
|
309
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">View</span>
|
|
310
|
+
<div>
|
|
311
|
+
<BbButton
|
|
312
|
+
v-for="view in views"
|
|
313
|
+
:key="view.value"
|
|
314
|
+
v-model="activeView"
|
|
315
|
+
:false-value="view.value"
|
|
316
|
+
group
|
|
317
|
+
:prepend:icon="view.icon"
|
|
318
|
+
size="sm"
|
|
319
|
+
:true-value="view.value"
|
|
320
|
+
variant="outline"
|
|
321
|
+
>
|
|
322
|
+
{{ view.label }}
|
|
323
|
+
</BbButton>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
</template>
|
|
328
|
+
<script setup lang="ts">
|
|
329
|
+
import { ref } from 'vue';
|
|
330
|
+
import { BbButton, type IconType } from 'bitboss-ui';
|
|
331
|
+
|
|
332
|
+
type IssueStatus = 'open' | 'in-progress' | 'done';
|
|
333
|
+
type IssueView = 'list' | 'board' | 'timeline';
|
|
334
|
+
|
|
335
|
+
const statuses: Array<{ label: string; value: IssueStatus }> = [
|
|
336
|
+
{ label: 'Open', value: 'open' },
|
|
337
|
+
{ label: 'In progress', value: 'in-progress' },
|
|
338
|
+
{ label: 'Done', value: 'done' },
|
|
339
|
+
];
|
|
340
|
+
|
|
341
|
+
const views: Array<{ label: string; value: IssueView; icon: IconType }> = [
|
|
342
|
+
{ label: 'List', value: 'list', icon: 'lucide:list' },
|
|
343
|
+
{ label: 'Board', value: 'board', icon: 'lucide:kanban' },
|
|
344
|
+
{ label: 'Timeline', value: 'timeline', icon: 'lucide:calendar-range' },
|
|
345
|
+
];
|
|
346
|
+
|
|
347
|
+
const statusFilter = ref<IssueStatus | null>('open');
|
|
348
|
+
const activeView = ref<IssueView>('list');
|
|
349
|
+
</script>
|
|
350
|
+
```
|
|
467
351
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
352
|
+
Listen to `update:modelValue` only if you need side effects; state itself is
|
|
353
|
+
handled. For form-ish multi-selection prefer `BbCheckboxGroup` /
|
|
354
|
+
`BbRadioGroup`; toggle buttons are for immediate, tool-bar-like state.
|
|
472
355
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
356
|
+
Toggles don't have to be exclusive. Give each button its own seeded boolean
|
|
357
|
+
model for independent on/off state — the classic formatting toolbar. Combine
|
|
358
|
+
with `icon` and `size="xs"` for the dense icon-only look; the slot content
|
|
359
|
+
stays on as the accessible name:
|
|
476
360
|
|
|
477
|
-
|
|
478
|
-
opacity: 0;
|
|
479
|
-
}
|
|
361
|
+
**Icon-only formatting toolbar**
|
|
480
362
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
363
|
+
```vue
|
|
364
|
+
<template>
|
|
365
|
+
<div
|
|
366
|
+
class="flex max-w-sm flex-col gap-2 rounded-[var(--bb-radius)] border p-3"
|
|
367
|
+
>
|
|
368
|
+
<div class="flex items-center justify-between gap-2">
|
|
369
|
+
<span class="text-xs font-medium text-[color:var(--bb-text-muted)]"
|
|
370
|
+
>Format</span
|
|
371
|
+
>
|
|
372
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">{{
|
|
373
|
+
summary
|
|
374
|
+
}}</span>
|
|
375
|
+
</div>
|
|
376
|
+
<div>
|
|
377
|
+
<BbButton
|
|
378
|
+
v-model="bold"
|
|
379
|
+
group
|
|
380
|
+
icon="lucide:bold"
|
|
381
|
+
size="xs"
|
|
382
|
+
variant="outline"
|
|
383
|
+
>
|
|
384
|
+
Bold
|
|
385
|
+
</BbButton>
|
|
386
|
+
<BbButton
|
|
387
|
+
v-model="italic"
|
|
388
|
+
group
|
|
389
|
+
icon="lucide:italic"
|
|
390
|
+
size="xs"
|
|
391
|
+
variant="outline"
|
|
392
|
+
>
|
|
393
|
+
Italic
|
|
394
|
+
</BbButton>
|
|
395
|
+
<BbButton
|
|
396
|
+
v-model="underline"
|
|
397
|
+
group
|
|
398
|
+
icon="lucide:underline"
|
|
399
|
+
size="xs"
|
|
400
|
+
variant="outline"
|
|
401
|
+
>
|
|
402
|
+
Underline
|
|
403
|
+
</BbButton>
|
|
404
|
+
</div>
|
|
405
|
+
<p
|
|
406
|
+
class="text-sm"
|
|
407
|
+
:class="{
|
|
408
|
+
'font-bold': bold,
|
|
409
|
+
italic: italic,
|
|
410
|
+
underline: underline,
|
|
411
|
+
}"
|
|
412
|
+
>
|
|
413
|
+
Q3 billing note for Acme Studio
|
|
414
|
+
</p>
|
|
415
|
+
</div>
|
|
416
|
+
</template>
|
|
417
|
+
<script setup lang="ts">
|
|
418
|
+
import { computed, ref } from 'vue';
|
|
419
|
+
import { BbButton } from 'bitboss-ui';
|
|
420
|
+
|
|
421
|
+
// Independent toggles: each button owns its own seeded boolean model.
|
|
422
|
+
const bold = ref(false);
|
|
423
|
+
const italic = ref(true);
|
|
424
|
+
const underline = ref(false);
|
|
425
|
+
|
|
426
|
+
const summary = computed(() => {
|
|
427
|
+
const active = [
|
|
428
|
+
bold.value && 'bold',
|
|
429
|
+
italic.value && 'italic',
|
|
430
|
+
underline.value && 'underline',
|
|
431
|
+
].filter(Boolean);
|
|
432
|
+
return active.length ? active.join(' + ') : 'plain text';
|
|
433
|
+
});
|
|
434
|
+
</script>
|
|
435
|
+
```
|
|
486
436
|
|
|
487
|
-
|
|
488
|
-
&:has(+ .bb-button--group) {
|
|
489
|
-
border-bottom-right-radius: 0;
|
|
490
|
-
border-top-right-radius: 0;
|
|
491
|
-
}
|
|
437
|
+
### Loading and async actions
|
|
492
438
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
439
|
+
Return a promise from `@click` and the button tracks it automatically: a
|
|
440
|
+
spinner appears, the label announces loading to screen readers, and the button
|
|
441
|
+
blocks re-clicks (for `type="submit"`, `href` and `to` the click is also
|
|
442
|
+
prevented) until the promise settles. Concurrent handlers are counted, so the
|
|
443
|
+
spinner stays until the last one resolves — no manual `isSaving` flag, no
|
|
444
|
+
hand-placed `BbSpinner`.
|
|
498
445
|
|
|
499
|
-
|
|
500
|
-
--bb-button-h: var(--bb-button-h-xs);
|
|
501
|
-
--font-size: var(--font-size-xs);
|
|
502
|
-
}
|
|
503
|
-
&[data-sm] {
|
|
504
|
-
--bb-button-h: var(--bb-button-h-sm);
|
|
505
|
-
--font-size: var(--font-size-sm);
|
|
506
|
-
}
|
|
446
|
+
**An async save, tracked automatically**
|
|
507
447
|
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
448
|
+
```vue
|
|
449
|
+
<template>
|
|
450
|
+
<div
|
|
451
|
+
class="flex max-w-sm flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
452
|
+
>
|
|
453
|
+
<div class="flex flex-col gap-0.5">
|
|
454
|
+
<span class="text-sm font-medium">Invoice INV-1042</span>
|
|
455
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
456
|
+
Acme Studio · draft · due Jul 31, 2026
|
|
457
|
+
</span>
|
|
458
|
+
</div>
|
|
459
|
+
<div class="flex items-center gap-2">
|
|
460
|
+
<BbButton prepend:icon="lucide:save" variant="primary" @click="save">
|
|
461
|
+
Save changes
|
|
462
|
+
</BbButton>
|
|
463
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">{{
|
|
464
|
+
status
|
|
465
|
+
}}</span>
|
|
466
|
+
</div>
|
|
467
|
+
</div>
|
|
468
|
+
</template>
|
|
469
|
+
<script setup lang="ts">
|
|
470
|
+
import { ref } from 'vue';
|
|
471
|
+
import { BbButton } from 'bitboss-ui';
|
|
512
472
|
|
|
513
|
-
|
|
514
|
-
--bb-button-h: var(--bb-button-h-lg);
|
|
515
|
-
--font-size: var(--font-size-lg);
|
|
516
|
-
}
|
|
473
|
+
const status = ref('Unsaved changes');
|
|
517
474
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
475
|
+
/** Stand-in mutation; the button spins until the promise settles. */
|
|
476
|
+
const save = async () => {
|
|
477
|
+
await new Promise((resolve) => setTimeout(resolve, 900));
|
|
478
|
+
status.value = `Saved at ${new Date().toLocaleTimeString()}`;
|
|
479
|
+
};
|
|
480
|
+
</script>
|
|
481
|
+
```
|
|
525
482
|
|
|
526
|
-
|
|
527
|
-
.bb-button__icon,
|
|
528
|
-
.bb-button__prepend-icon,
|
|
529
|
-
.bb-button__append-icon {
|
|
530
|
-
color: currentColor;
|
|
531
|
-
display: inline-block;
|
|
532
|
-
flex-shrink: 0;
|
|
533
|
-
transition: opacity 0.3s;
|
|
534
|
-
width: var(--bb-button-icon);
|
|
535
|
-
}
|
|
483
|
+
Escape hatches, when the default isn't right:
|
|
536
484
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
485
|
+
- `loading` — bind it when the pending state lives elsewhere (a store mutation,
|
|
486
|
+
a parent-owned request). While loading, the button exposes
|
|
487
|
+
`aria-disabled="true"` and leaves the tab order; it is not natively
|
|
488
|
+
`disabled`.
|
|
489
|
+
- `disable-auto-loading` — opts out of promise tracking entirely (e.g. the
|
|
490
|
+
handler opens a dialog and you don't want a spinner flash).
|
|
491
|
+
- `interactive-while-loading` — keeps the button clickable while it shows the
|
|
492
|
+
loading state, for controls that must stay interactive (this is how the
|
|
493
|
+
`BbDropdownButton` caret stays usable while the primary action runs).
|
|
541
494
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
495
|
+
The sr-only loading announcement is localized via the plugin's `locale`
|
|
496
|
+
option. `disabled` and `loading` are independent: `disabled` wins the muted
|
|
497
|
+
styling and native blocking; don't set both.
|
|
545
498
|
|
|
546
|
-
|
|
547
|
-
.bb-button {
|
|
548
|
-
&[data-sm\:xs] {
|
|
549
|
-
--bb-button-h: var(--bb-button-h-xs);
|
|
550
|
-
--font-size: var(--font-size-xs);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
&[data-sm\:sm] {
|
|
554
|
-
--bb-button-h: var(--bb-button-h-sm);
|
|
555
|
-
--font-size: var(--font-size-sm);
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
&[data-sm\:md] {
|
|
559
|
-
--bb-button-h: var(--bb-button-h-md);
|
|
560
|
-
--font-size: var(--font-size-md);
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
&[data-sm\:lg] {
|
|
564
|
-
--bb-button-h: var(--bb-button-h-lg);
|
|
565
|
-
--font-size: var(--font-size-lg);
|
|
566
|
-
}
|
|
567
|
-
&[data-sm\:xl] {
|
|
568
|
-
--bb-button-h: var(--bb-button-h-xl);
|
|
569
|
-
--font-size: var(--font-size-xl);
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
}
|
|
499
|
+
**Externally-owned loading state**
|
|
573
500
|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
&[data-md\:lg] {
|
|
592
|
-
--bb-button-h: var(--bb-button-h-lg);
|
|
593
|
-
--font-size: var(--font-size-lg);
|
|
594
|
-
}
|
|
595
|
-
&[data-md\:xl] {
|
|
596
|
-
--bb-button-h: var(--bb-button-h-xl);
|
|
597
|
-
--font-size: var(--font-size-xl);
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
}
|
|
501
|
+
```vue
|
|
502
|
+
<div
|
|
503
|
+
class="flex max-w-sm flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
504
|
+
>
|
|
505
|
+
<div class="flex flex-col gap-0.5">
|
|
506
|
+
<span class="text-sm font-medium">Release notes</span>
|
|
507
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">v2.4.0 · draft in review</span>
|
|
508
|
+
</div>
|
|
509
|
+
<div class="flex items-center gap-2">
|
|
510
|
+
<BbButton :loading="state.publishing" variant="primary">Publish</BbButton>
|
|
511
|
+
<BbButton variant="outline" @click="state.publishing = !state.publishing">
|
|
512
|
+
{{ state.publishing ? 'Stop simulating' : 'Simulate pending' }}
|
|
513
|
+
</BbButton>
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
516
|
+
```
|
|
601
517
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
--bb-button-h: var(--bb-button-h-xl);
|
|
625
|
-
--font-size: var(--font-size-xl);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
}
|
|
518
|
+
### Links and navigation
|
|
519
|
+
|
|
520
|
+
Navigation comes from `BbBaseButton`, the primitive `BbButton` wraps — so this
|
|
521
|
+
whole surface works identically on `BbButton`, `BbDropdownButton`, and the base
|
|
522
|
+
itself, and item-driven components (dropdowns, breadcrumbs, tabs) expose the
|
|
523
|
+
same fields on their items. The rule is absolute: whenever a click should end in
|
|
524
|
+
navigation, offload it to `href`/`to` — **never** write
|
|
525
|
+
`@click="router.push(...)"` or touch `window.location`. The rendered element
|
|
526
|
+
adapts to what you pass:
|
|
527
|
+
|
|
528
|
+
- `href` → a real `<a>`; in an Inertia app a same-origin `href` upgrades to an
|
|
529
|
+
Inertia link automatically (hash-only, protocol-relative and cross-origin
|
|
530
|
+
URLs stay plain anchors).
|
|
531
|
+
- `to` → `RouterLink` (or `NuxtLink` in Nuxt).
|
|
532
|
+
- `target` set → always a plain anchor, even under Inertia (Inertia can't open
|
|
533
|
+
new tabs); `target="_blank"` automatically merges `noopener noreferrer` into
|
|
534
|
+
`rel`.
|
|
535
|
+
- `disabled` on a link → the `href` is dropped and the element gets
|
|
536
|
+
`role="link"`, `aria-disabled="true"` and `tabindex="-1"`, so it cannot be
|
|
537
|
+
followed or tabbed to but keeps its place in the layout.
|
|
538
|
+
|
|
539
|
+
**Buttons that are links**
|
|
629
540
|
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}
|
|
541
|
+
```vue
|
|
542
|
+
<div
|
|
543
|
+
class="flex max-w-sm flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
544
|
+
>
|
|
545
|
+
<div class="flex flex-col gap-0.5">
|
|
546
|
+
<span class="text-sm font-medium">Q2 revenue report</span>
|
|
547
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">Ready · exported Jul 12, 2026</span>
|
|
548
|
+
</div>
|
|
549
|
+
<div class="flex flex-wrap items-center gap-1.5">
|
|
550
|
+
<BbButton variant="outline" href="#reports">View report</BbButton>
|
|
551
|
+
<BbButton
|
|
552
|
+
variant="ghost"
|
|
553
|
+
href="#help"
|
|
554
|
+
target="_blank"
|
|
555
|
+
append:icon="lucide:external-link"
|
|
556
|
+
>
|
|
557
|
+
Help center
|
|
558
|
+
</BbButton>
|
|
559
|
+
<BbButton variant="outline" href="#archive" disabled>
|
|
560
|
+
Archive (soon)
|
|
561
|
+
</BbButton>
|
|
562
|
+
</div>
|
|
563
|
+
</div>
|
|
564
|
+
```
|
|
657
565
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
566
|
+
#### Active state — highlighting the current page
|
|
567
|
+
|
|
568
|
+
The goal here is the "you are here" affordance: in a sidebar, tab bar, or nav
|
|
569
|
+
menu, the link pointing at the page you're on should stand out. This is exactly
|
|
570
|
+
what vue-router's `RouterLink` does with its `active-class` — and the library
|
|
571
|
+
**ports that same behavior to Inertia and to plain apps with no router at all**,
|
|
572
|
+
so one navigation link gets consistent active styling on every platform.
|
|
573
|
+
|
|
574
|
+
How it works: when a link's target matches the current location, the component
|
|
575
|
+
adds a **class name** to the rendered element. It attaches only the hook — it
|
|
576
|
+
ships **no styling of its own** — so you decide what "active" looks like by
|
|
577
|
+
writing CSS for that class. "Current location" comes from whichever model is in
|
|
578
|
+
play: vue-router computes it natively for `to` links; for an `href` link the
|
|
579
|
+
library matches against the Inertia page (under Inertia) or `window.location`
|
|
580
|
+
(a plain app). There are two classes, for two kinds of match:
|
|
581
|
+
|
|
582
|
+
- **`router-link-active`** — added when the current page is at or _below_ the target
|
|
583
|
+
(a path-prefix match). Good for a section link that should stay lit on child
|
|
584
|
+
pages (`/invoices` highlighted while on `/invoices/42`).
|
|
585
|
+
- **`router-link-exact-active`** — added only on an _exact_ match. Good for a specific
|
|
586
|
+
page link that should light up on that page alone.
|
|
587
|
+
|
|
588
|
+
Name them per link, or set project-wide defaults once via the plugin's
|
|
589
|
+
`linkActiveClass` / `linkExactActiveClass` options (defaults
|
|
590
|
+
`router-link-active` / `router-link-exact-active`). The library papers over the
|
|
591
|
+
platform differences — the same `active-class` works whether the link navigates
|
|
592
|
+
by `to`, by Inertia `href`, or by a plain `href`.
|
|
593
|
+
|
|
594
|
+
```vue
|
|
595
|
+
<template>
|
|
596
|
+
<!-- vue-router / Nuxt: active state computed natively from the route. -->
|
|
597
|
+
<BbButton
|
|
598
|
+
variant="ghost"
|
|
599
|
+
:to="{ name: 'invoices.index' }"
|
|
600
|
+
active-class="nav-active"
|
|
601
|
+
>
|
|
602
|
+
Invoices
|
|
603
|
+
</BbButton>
|
|
604
|
+
<!-- Inertia (or a plain app): the library matches the href against the
|
|
605
|
+
current URL and applies the same `nav-active` hook. -->
|
|
606
|
+
<BbButton
|
|
607
|
+
variant="ghost"
|
|
608
|
+
:href="route('invoices.index')"
|
|
609
|
+
active-class="nav-active"
|
|
610
|
+
>
|
|
611
|
+
Invoices
|
|
612
|
+
</BbButton>
|
|
613
|
+
</template>
|
|
614
|
+
|
|
615
|
+
<style scoped>
|
|
616
|
+
/* Nothing highlights until you style the class the component attached. */
|
|
617
|
+
.nav-active {
|
|
618
|
+
font-weight: 600;
|
|
619
|
+
color: var(--bb-primary);
|
|
684
620
|
}
|
|
621
|
+
</style>
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
#### Inertia visits
|
|
625
|
+
|
|
626
|
+
Under Inertia, `href` accepts the full visit surface as props, grouped by
|
|
627
|
+
concern:
|
|
628
|
+
|
|
629
|
+
- **Request shape** — `method` (`get`…`delete`), `data`, `headers`, `only`
|
|
630
|
+
(partial reloads), `query-string-array-format`.
|
|
631
|
+
- **History & scroll** — `replace`, `preserve-scroll`, `preserve-state` (each
|
|
632
|
+
also accepts a callback form).
|
|
633
|
+
- **Lifecycle hooks** — `onBefore`, `onStart`, `onProgress`, `onSuccess`,
|
|
634
|
+
`onCancel`, `onFinish`, plus `onCancelToken` to capture a cancel handle.
|
|
635
|
+
Bind them as props (`:on-success="..."`), not `@` listeners.
|
|
636
|
+
|
|
637
|
+
```vue
|
|
638
|
+
<!-- Inertia: href becomes a visit; the whole option set rides along -->
|
|
639
|
+
<BbButton
|
|
640
|
+
href="/invoices"
|
|
641
|
+
method="post"
|
|
642
|
+
:data="{ customerId }"
|
|
643
|
+
preserve-scroll
|
|
644
|
+
:only="['invoices']"
|
|
645
|
+
:on-success="() => drawer.close()"
|
|
646
|
+
>
|
|
647
|
+
Create invoice
|
|
648
|
+
</BbButton>
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
### Works well with
|
|
652
|
+
|
|
653
|
+
- `BbDropdownButton` — escalate to it when a primary action grows close
|
|
654
|
+
alternates; it shares this component's `variant`/`size`/loading language.
|
|
655
|
+
- `useConfirm` — gate every `destructive` button behind a confirm: mount the
|
|
656
|
+
`<BbConfirm />` host once (app root), `await confirm(...)` in the handler and
|
|
657
|
+
act only on a yes. The dialog's own buttons are `BbButton` configs (see the
|
|
658
|
+
composable doc), so the confirm speaks the same `variant`/icon language:
|
|
659
|
+
|
|
660
|
+
**Destructive action gated behind useConfirm**
|
|
661
|
+
|
|
662
|
+
```vue
|
|
663
|
+
<template>
|
|
664
|
+
<div
|
|
665
|
+
class="flex max-w-sm flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
666
|
+
>
|
|
667
|
+
<div class="flex flex-col gap-0.5">
|
|
668
|
+
<span class="text-sm font-medium">API keys</span>
|
|
669
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
670
|
+
<span data-count>{{ keys.length }}</span> active · revoking is immediate
|
|
671
|
+
</span>
|
|
672
|
+
</div>
|
|
673
|
+
<div
|
|
674
|
+
v-for="key in keys"
|
|
675
|
+
:key="key.id"
|
|
676
|
+
class="flex items-center gap-2"
|
|
677
|
+
data-key-row
|
|
678
|
+
>
|
|
679
|
+
<div class="flex min-w-0 flex-1 flex-col">
|
|
680
|
+
<span class="truncate text-sm font-medium">{{ key.label }}</span>
|
|
681
|
+
<span class="font-mono text-xs text-[color:var(--bb-text-muted)]">
|
|
682
|
+
{{ key.masked }} · created {{ key.created }}
|
|
683
|
+
</span>
|
|
684
|
+
</div>
|
|
685
|
+
<BbButton
|
|
686
|
+
prepend:icon="lucide:trash-2"
|
|
687
|
+
size="xs"
|
|
688
|
+
variant="destructive"
|
|
689
|
+
@click="revoke(key)"
|
|
690
|
+
>
|
|
691
|
+
Revoke
|
|
692
|
+
</BbButton>
|
|
693
|
+
</div>
|
|
694
|
+
<p
|
|
695
|
+
v-if="keys.length === 0"
|
|
696
|
+
class="text-xs text-[color:var(--bb-text-muted)]"
|
|
697
|
+
>
|
|
698
|
+
No active keys.
|
|
699
|
+
</p>
|
|
700
|
+
|
|
701
|
+
<!--
|
|
702
|
+
Standalone example: it mounts its own host because it has no app root.
|
|
703
|
+
A real app mounts exactly one <BbConfirm /> at the app root, and pages
|
|
704
|
+
mount none. See ai/guides/agent-contract.md § Global Host Rule.
|
|
705
|
+
-->
|
|
706
|
+
<BbConfirm />
|
|
707
|
+
</div>
|
|
708
|
+
</template>
|
|
709
|
+
<script setup lang="ts">
|
|
710
|
+
import { ref } from 'vue';
|
|
711
|
+
import { BbButton, BbConfirm, useConfirm } from 'bitboss-ui';
|
|
712
|
+
|
|
713
|
+
type ApiKey = { id: string; label: string; masked: string; created: string };
|
|
714
|
+
|
|
715
|
+
const keys = ref<ApiKey[]>([
|
|
716
|
+
{
|
|
717
|
+
id: 'key_prod',
|
|
718
|
+
label: 'Production',
|
|
719
|
+
masked: 'sk-live-…9f2c',
|
|
720
|
+
created: '2026-03-14',
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
id: 'key_stg',
|
|
724
|
+
label: 'Staging',
|
|
725
|
+
masked: 'sk-test-…41ab',
|
|
726
|
+
created: '2026-05-02',
|
|
727
|
+
},
|
|
728
|
+
]);
|
|
729
|
+
|
|
730
|
+
const { confirm } = useConfirm();
|
|
731
|
+
|
|
732
|
+
/** Gate the destructive action: await the decision, act only on a yes. */
|
|
733
|
+
const revoke = async (key: ApiKey) => {
|
|
734
|
+
const ok = await confirm({
|
|
735
|
+
title: `Revoke "${key.label}"?`,
|
|
736
|
+
text: 'Integrations using this key will stop working immediately. This cannot be undone.',
|
|
737
|
+
variant: 'destructive',
|
|
738
|
+
yes: { text: 'Revoke key', 'prepend:icon': 'lucide:trash-2' },
|
|
739
|
+
no: 'Keep key',
|
|
740
|
+
});
|
|
741
|
+
if (ok) keys.value = keys.value.filter((k) => k.id !== key.id);
|
|
742
|
+
};
|
|
743
|
+
</script>
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
- `BbIndicator` — wrap the button to anchor a count or a status dot to its
|
|
747
|
+
corner (the pinned-over-another-element sibling of `BbBadge`).
|
|
748
|
+
- `BbTooltip` / `v-bb-tooltip` — give an icon-only button a _visible_ name on
|
|
749
|
+
hover; the tooltip complements the accessible name (from slot content), it
|
|
750
|
+
does not replace it.
|
|
751
|
+
|
|
752
|
+
**Indicator count and tooltip on icon-only buttons**
|
|
753
|
+
|
|
754
|
+
```vue
|
|
755
|
+
<div
|
|
756
|
+
class="flex max-w-sm items-center justify-between gap-2 rounded-[var(--bb-radius)] border p-3"
|
|
757
|
+
>
|
|
758
|
+
<span class="text-sm font-medium">Acme Studio</span>
|
|
759
|
+
<div class="flex items-center gap-1.5">
|
|
760
|
+
<BbIndicator :text="3" variant="destructive">
|
|
761
|
+
<!-- Accessible name from slot content, rendered sr-only. -->
|
|
762
|
+
<BbButton variant="outline" icon="lucide:bell">Notifications</BbButton>
|
|
763
|
+
</BbIndicator>
|
|
764
|
+
<BbButton
|
|
765
|
+
v-bb-tooltip="'Workspace settings'"
|
|
766
|
+
variant="ghost"
|
|
767
|
+
icon="lucide:settings"
|
|
768
|
+
>
|
|
769
|
+
Workspace settings
|
|
770
|
+
</BbButton>
|
|
771
|
+
</div>
|
|
772
|
+
</div>
|
|
685
773
|
```
|
|
774
|
+
|
|
775
|
+
### Gotchas & anti-patterns
|
|
776
|
+
|
|
777
|
+
Gotchas (real behavior, verified against source):
|
|
778
|
+
|
|
779
|
+
- A `v-model` bound to an undefined value is not a toggle yet — the first click
|
|
780
|
+
won't set it. Seed the model.
|
|
781
|
+
- Every default-slot child lands inside one `.bb-button__content` span, so
|
|
782
|
+
sibling elements sit inline with no gap and the button's own flex layout
|
|
783
|
+
cannot space them — `class="justify-between"` on the button reaches the
|
|
784
|
+
content span, not its children, and `Label` + `142` renders as `Label142`.
|
|
785
|
+
Put the count in a `BbBadge`, or use `append:icon`, rather than two bare
|
|
786
|
+
spans.
|
|
787
|
+
- Binding `aria-pressed` yourself does nothing: the component owns that
|
|
788
|
+
attribute and drops yours. A hand-rolled toggle (`:aria-pressed` plus a
|
|
789
|
+
`variant` swap) therefore looks right and is invisible to assistive tech.
|
|
790
|
+
Use `v-model` — see [Toggle buttons](#toggle-buttons). Dev builds warn.
|
|
791
|
+
- `group` fuses looks only; it adds no radio semantics or arrow-key navigation.
|
|
792
|
+
- Responsive `size` maps change height/font/gap per breakpoint; padding, icon
|
|
793
|
+
size and radius follow the `default` entry.
|
|
794
|
+
- Auto-loading tracks the promise **returned** from `@click`; a handler that
|
|
795
|
+
fires work without returning it shows no spinner.
|
|
796
|
+
- Registered custom variants ship no CSS — unstyled until you write
|
|
797
|
+
`.bb-button--<name>`.
|
|
798
|
+
|
|
799
|
+
Anti-patterns:
|
|
800
|
+
|
|
801
|
+
- `@click` + `router.push`/`window.location` for plain navigation — use
|
|
802
|
+
`to`/`href`.
|
|
803
|
+
- Hand-rolling the pending state: `BbSpinner` in the slot or manual `isSaving`
|
|
804
|
+
flags — return the promise instead.
|
|
805
|
+
- More than one `variant="primary"` in a view region.
|
|
806
|
+
- A disabled button with no nearby explanation of how to enable it.
|
|
807
|
+
- Faking a split button with a flex row of `BbButton` + `BbDropdown` — that is
|
|
808
|
+
`BbDropdownButton`.
|
|
809
|
+
|
|
810
|
+
### Accessibility
|
|
811
|
+
|
|
812
|
+
- Icon-only buttons still need an accessible name, but it works like any other
|
|
813
|
+
button: put it in the default slot (or `text`) and it renders `sr-only` when
|
|
814
|
+
`icon` is set — not removed. Use `aria-label` only to override that name, not
|
|
815
|
+
as the default mechanism. Never ship an icon-only button with no name at all.
|
|
816
|
+
- Toggles expose `aria-pressed` (`true`/`false`) automatically — never add your
|
|
817
|
+
own.
|
|
818
|
+
- While loading: `aria-disabled="true"`, `tabindex="-1"`, and a localized
|
|
819
|
+
sr-only loading announcement.
|
|
820
|
+
- Disabled links render with `role="link"`, `aria-disabled="true"`, no `href`,
|
|
821
|
+
and leave the tab order.
|
|
822
|
+
- The exact-active link gets `aria-current` (default `"page"`) on every
|
|
823
|
+
platform — vue-router, Inertia, and plain apps alike.
|
|
824
|
+
- `target="_blank"` links are secured with `rel="noopener noreferrer"`
|
|
825
|
+
automatically.
|
|
826
|
+
- Prefer real actions over disabled buttons; when disabled, explain why nearby.
|
|
827
|
+
|
|
828
|
+
## v-model
|
|
829
|
+
|
|
830
|
+
- `v-model` — type: `any`
|
|
831
|
+
|
|
832
|
+
## Props
|
|
833
|
+
|
|
834
|
+
| Prop | Type | Default | Required | Description |
|
|
835
|
+
| --- | --- | --- | --- | --- |
|
|
836
|
+
| `activeClass` | `string \| undefined` | | | Class to apply when the link is active. |
|
|
837
|
+
| `append:icon` | `string \| undefined` | | | Icon to be added on the right of the text. |
|
|
838
|
+
| `ariaCurrentValue` | `"page" \| "step" \| "location" \| "date" \| "time" \| "true" \| "false" \| undefined` | | | Value passed to the attribute `aria-current` when the link is exact active. |
|
|
839
|
+
| `block` | `boolean \| undefined` | | | Displays the component as full width. |
|
|
840
|
+
| `data` | `object \| undefined` | | | |
|
|
841
|
+
| `disableAutoLoading` | `boolean \| undefined` | | | Disables the automatic loading state that tracks async click handlers (enabled by default). |
|
|
842
|
+
| `disabled` | `boolean \| undefined` | | | Disables the component. |
|
|
843
|
+
| `download` | `string \| boolean \| undefined` | | | Marks an `href` link as a download: renders a plain `<a download>` doing a native navigation (never an Inertia/router visit), so file downloads work. Pass a string for the suggested filename. A native-anchor signal alongside `target` and `e… |
|
|
844
|
+
| `exactActiveClass` | `string \| undefined` | | | Class to apply when the link is exact active. |
|
|
845
|
+
| `external` | `boolean \| undefined` | | | Forces an `href` link to render as a plain `<a>` (native navigation), bypassing Inertia/router interception — same intent as Nuxt's `external`. A native-anchor signal alongside `target` and `download`. |
|
|
846
|
+
| `falseValue` | `any` | `false` | | Value emitted when the toggle is deactivated. |
|
|
847
|
+
| `group` | `boolean \| undefined` | | | Identifies the button as part of a button group. |
|
|
848
|
+
| `headers` | `object \| undefined` | | | |
|
|
849
|
+
| `href` | `string \| undefined` | | | Returns the hyperlink's URL. Can be set, to change the URL. |
|
|
850
|
+
| `icon` | `string \| undefined` | | | Used when only an icon with no text should be displayed. |
|
|
851
|
+
| `interactiveWhileLoading` | `boolean \| undefined` | | | Keeps the button clickable while it is loading. Buttons are disabled while loading by default; this escape hatch exists for toggles that must stay interactive (e.g. the dropdown-button caret). |
|
|
852
|
+
| `loading` | `boolean \| undefined` | | | Triggers a loading indicator. |
|
|
853
|
+
| `method` | `"get" \| "post" \| "put" \| "patch" \| "delete" \| undefined` | | | |
|
|
854
|
+
| `modelValue` | `any` | | | |
|
|
855
|
+
| `onBefore` | `(() => void) \| undefined` | | | |
|
|
856
|
+
| `onCancel` | `(() => void) \| undefined` | | | |
|
|
857
|
+
| `onCancelToken` | `((cancelToken: unknown) => void) \| undefined` | | | |
|
|
858
|
+
| `onFinish` | `(() => void) \| undefined` | | | |
|
|
859
|
+
| `only` | `string[] \| undefined` | | | |
|
|
860
|
+
| `onProgress` | `((progress: { percentage: number \| undefined; }) => void) \| undefined` | | | |
|
|
861
|
+
| `onStart` | `(() => void) \| undefined` | | | |
|
|
862
|
+
| `onSuccess` | `(() => void) \| undefined` | | | |
|
|
863
|
+
| `prepend:icon` | `string \| undefined` | | | Icon to be added on the left of the text. |
|
|
864
|
+
| `preserveScroll` | `boolean \| ((props: Record<string, unknown>) => boolean) \| undefined` | | | |
|
|
865
|
+
| `preserveState` | `boolean \| ((props: Record<string, unknown>) => boolean) \| null \| undefined` | | | |
|
|
866
|
+
| `queryStringArrayFormat` | `"brackets" \| "indices" \| undefined` | | | |
|
|
867
|
+
| `replace` | `boolean \| undefined` | | | Calls `router.replace` instead of `router.push`. |
|
|
868
|
+
| `size` | `Responsive<Sizes> \| undefined` | `"md"` | | Sets the size of the button. A single value applies at every breakpoint; a per-breakpoint map (e.g. `{ default: 'sm', lg: 'md' }`) switches responsively. Purely CSS-driven — no runtime breakpoint watching. |
|
|
869
|
+
| `tag` | `ButtonTag \| undefined` | | | Element to render for the plain (non-link, non-router) button: `'button'` (default), `'div'`/`'span'` when nesting inside another button or link, or `'label'` for a file-upload trigger. Ignored when `href`/`to` make the button render as a l… |
|
|
870
|
+
| `target` | `string \| undefined` | | | Sets or retrieves the window or frame at which to target content. |
|
|
871
|
+
| `text` | `string \| undefined` | | | Text content of the component. |
|
|
872
|
+
| `to` | `string \| wt \| bt \| undefined` | | | Route Location the link should navigate to when clicked on. |
|
|
873
|
+
| `trueValue` | `any` | `true` | | Value emitted when the toggle is activated. |
|
|
874
|
+
| `type` | `"button" \| "submit" \| "reset" \| undefined` | | | Gets the classification and default behavior of the button. |
|
|
875
|
+
| `variant` | `ButtonVariantType \| undefined` | `"primary"` | | Visual variant of the button. Controls colors and surface style while keeping spacing and sizing unchanged. |
|
|
876
|
+
|
|
877
|
+
## Events
|
|
878
|
+
|
|
879
|
+
- `update:modelValue` — `(event: "update:modelValue", value: any): void`
|
|
880
|
+
|
|
881
|
+
## Slots
|
|
882
|
+
|
|
883
|
+
- `default` — scope: `object` — Primary content rendered inside the button. Falls back to the `text` prop when empty.
|
|
884
|
+
|
|
885
|
+
## See Also
|
|
886
|
+
|
|
887
|
+
- [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.
|
|
888
|
+
- [BbDropdownButton](./BbDropdownButton.md) — A button with primary action and all other actions collected in a dropdown.
|
|
889
|
+
- [BbDropdown](./BbDropdown.md) — Displays contextual action menus and menu content.
|
|
890
|
+
- [BbConfirm](./BbConfirm.md) — Prompts users to confirm or cancel critical actions (includes co-located BbConfirmPortal export).
|