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
|
@@ -0,0 +1,1514 @@
|
|
|
1
|
+
# bitboss-ui — core knowledge base (medium tier)
|
|
2
|
+
|
|
3
|
+
> Vue 3 component library by BitBoss. This single file is the mandatory
|
|
4
|
+
> reading before writing any bitboss-ui markup: the hard rules, setup,
|
|
5
|
+
> how to choose a component, and the design language — plus a catalogue
|
|
6
|
+
> of every public component.
|
|
7
|
+
|
|
8
|
+
Canonical URL: https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/llms-medium.txt
|
|
9
|
+
|
|
10
|
+
Need more? Fetch the specific component contract you need — one hop, not
|
|
11
|
+
the whole catalogue: https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/ai/<ComponentName>.md
|
|
12
|
+
Machine-readable API surface: https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/ai/components.json
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<!-- dist/ai/guides/ai-router.md -->
|
|
17
|
+
<!-- https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/ai/guides/ai-router.md -->
|
|
18
|
+
|
|
19
|
+
# AI Router
|
|
20
|
+
|
|
21
|
+
Read this file first. Open **at most one** deeper file per hop. Do not load
|
|
22
|
+
every recipe or every component contract into context.
|
|
23
|
+
|
|
24
|
+
Knowledge base root (installed package):
|
|
25
|
+
`node_modules/bitboss-ui/dist/ai/`
|
|
26
|
+
|
|
27
|
+
Package export entry: `bitboss-ui/ai` → `dist/ai/index.md`.
|
|
28
|
+
Subpaths: `bitboss-ui/ai/components.json`, `bitboss-ui/ai/guides/…`, etc.
|
|
29
|
+
|
|
30
|
+
**Not installed, or can only fetch URLs?** The same files are served from the
|
|
31
|
+
published package at `https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/ai/…`.
|
|
32
|
+
If you can make only one request, fetch
|
|
33
|
+
[`…@alpha/dist/llms-medium.txt`](https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/llms-medium.txt)
|
|
34
|
+
— this router plus the agent contract, setup, component picker, design language
|
|
35
|
+
and the full component catalogue, in ~74 KB.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Mandatory order (every UI task)
|
|
40
|
+
|
|
41
|
+
1. **[Agent contract](./agent-contract.md)** — hard rules (Bb\* boundary,
|
|
42
|
+
setup-first, `href`/`to` navigation, icons, coherence).
|
|
43
|
+
2. **Setup?** If the project may not have the plugin yet →
|
|
44
|
+
[Installation & Plugin Setup](./installation-and-plugin-setup.md). **Set
|
|
45
|
+
`locale` explicitly if the app is not Italian** — the plugin defaults to
|
|
46
|
+
`'it'` and there is no build-time warning for leaving it unset.
|
|
47
|
+
3. **Choose intent:**
|
|
48
|
+
- Whole page / flow → hop to **Recipes** below (one platform file only).
|
|
49
|
+
- Single control → [Component picker](./component-picker.md), then open
|
|
50
|
+
**one** `../<ComponentName>.md` contract (Usage & Guidelines first).
|
|
51
|
+
4. **Never invent props.** Confirm names in that contract or in
|
|
52
|
+
[`../components.json`](../components.json).
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Recipes (page-level — pick one platform)
|
|
57
|
+
|
|
58
|
+
Folders: `../recipes/vue/`, `../recipes/nuxt/`, `../recipes/inertia/`.
|
|
59
|
+
|
|
60
|
+
Same page shapes on each platform; only the data/mutation layer differs.
|
|
61
|
+
|
|
62
|
+
| Intent | Recipe file (kebab) |
|
|
63
|
+
| ------------------------------------ | ----------------------------------------- |
|
|
64
|
+
| Filterable listing + bulk/peek | `records-workspace.md` |
|
|
65
|
+
| Create/edit form | `record-form.md` |
|
|
66
|
+
| Inline-edit table / backlog | `inline-edit-workspace.md` |
|
|
67
|
+
| Hierarchy drill-down (nested tables) | `ownership-atlas.md` (Inertia only today) |
|
|
68
|
+
| Approvals / triage inbox | `approvals-inbox.md` |
|
|
69
|
+
| Uploads + editable queue | `upload-center.md` |
|
|
70
|
+
| Multi-step wizard | `wizard-form.md` |
|
|
71
|
+
| Onboarding checklist | `onboarding.md` |
|
|
72
|
+
|
|
73
|
+
No recipe for detail-with-tabs, settings, dashboards, or profile pages —
|
|
74
|
+
compose those from the closest listing/form recipe plus the guides
|
|
75
|
+
(page shell, tabs, inline-edit playbook) instead of inventing a new shape.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Playbooks (only when the pattern applies)
|
|
80
|
+
|
|
81
|
+
| Need | Guide |
|
|
82
|
+
| -------------------------------------- | ----------------------------------------------------- |
|
|
83
|
+
| Tied selects / stale model cleanup | [coherence-playbook](./coherence-playbook.md) |
|
|
84
|
+
| Async `items` providers / prefill | [fetch-items-playbook](./fetch-items-playbook.md) |
|
|
85
|
+
| `item-text` / `item-value` / disabled | [options-items-playbook](./options-items-playbook.md) |
|
|
86
|
+
| Table cell edit ownership | [inline-edit-playbook](./inline-edit-playbook.md) |
|
|
87
|
+
| Icons (`lucide:*`, never invent names) | [icons-policy](./icons-policy.md) |
|
|
88
|
+
| Tokens / styling around components | [design-language](./design-language.md) |
|
|
89
|
+
| Upgrading from bitboss-ui 2.x | [migration/v2-to-v3](./migration/v2-to-v3.md) |
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Full catalogue (last resort)
|
|
94
|
+
|
|
95
|
+
- [Component index](../index.md) — every consumer + reference-only entry
|
|
96
|
+
- [components.json](../components.json) — machine-readable API for validation
|
|
97
|
+
- Composables: `../composables/` (`useToast`, `useConfirm`, table/tabs context, …)
|
|
98
|
+
|
|
99
|
+
Reference-only (`BbBase*` form primitives, listbox internals, …) — **do not
|
|
100
|
+
import in consumer apps** unless the user explicitly asks for internals.
|
|
101
|
+
Exception documented in the agent contract: **`BbBaseButton` is consumer API**.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Consumer kickstart
|
|
106
|
+
|
|
107
|
+
In the app repo (once), after installing `bitboss-ui`:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
npx bitboss-ui ai-init
|
|
111
|
+
# optional: also register the MCP server
|
|
112
|
+
npx bitboss-ui ai-init --mcp
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Writes harness-agnostic pointers (`AGENTS.md`) plus Cursor / Copilot / Claude /
|
|
116
|
+
Windsurf rules so agents find this router without being told.
|
|
117
|
+
|
|
118
|
+
After writing Bb\* markup, validate against the installed contract:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
npx bitboss-ui check
|
|
122
|
+
# or: npx bitboss-ui check 'src/**/*.{vue,md}' --json
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Optional MCP (`npx bitboss-ui mcp`): search/get components, list/get recipes,
|
|
126
|
+
validate snippets — version-matched to the installed package.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
<!-- dist/ai/guides/agent-contract.md -->
|
|
131
|
+
<!-- https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/ai/guides/agent-contract.md -->
|
|
132
|
+
|
|
133
|
+
# Agent Contract
|
|
134
|
+
|
|
135
|
+
Use this contract before generating any UI code with `bitboss-ui`.
|
|
136
|
+
|
|
137
|
+
## Default API Boundary
|
|
138
|
+
|
|
139
|
+
1. Prefer `Bb*` components in consumer-facing code.
|
|
140
|
+
2. Treat low-level primitives (`Base*`, `BbBase*`, `Common*`, listbox internals) as reference-only — **except `BbBaseButton`**, which is a first-class consumer component: the unstyled navigable primitive for any clickable surface (cards, rows, custom links) that isn't a variant-first `BbButton`.
|
|
141
|
+
3. Use the other reference-only components only when the user explicitly asks for internal composition details.
|
|
142
|
+
|
|
143
|
+
## Setup-First Rule
|
|
144
|
+
|
|
145
|
+
Before writing component usage code, verify:
|
|
146
|
+
|
|
147
|
+
- `bitboss-ui` is installed;
|
|
148
|
+
- the build plugin is configured (`bitboss-ui/vite` in Vite/Inertia apps, `bitboss-ui/nuxt` in Nuxt apps) — it serves the `virtual:bitboss-ui/icons` and `virtual:bitboss-ui/config` modules;
|
|
149
|
+
- the runtime plugin is installed (`app.use(bitbossUiPlugin)`; the Nuxt module does this for you), which injects `bitboss-ui/styles.css` unless `injectStyles: false`.
|
|
150
|
+
- **the plugin's `locale` option is set, if the app is not Italian.** It
|
|
151
|
+
**defaults to `'it'`** — every built-in string (date formats and per-segment
|
|
152
|
+
labels on the date/time pickers, select-all text, `useConfirm`'s OK/Annulla
|
|
153
|
+
labels, and more) ships Italian until `locale` is set explicitly. There is
|
|
154
|
+
no build-time warning for an unset `locale`, only for an unknown one, so
|
|
155
|
+
this ships silently. Set `locale: 'en'` (or the target locale) in
|
|
156
|
+
`vite.config.*` / `nuxt.config.*`, and if the app switches locale at
|
|
157
|
+
runtime, list every locale it can switch to in `enabledLocales` up front —
|
|
158
|
+
narrowing `locale` alone narrows the bundle and makes any other locale a
|
|
159
|
+
compile error at `useBbConfig().setConfig({ locale })`. Details:
|
|
160
|
+
[Installation and Plugin Setup](./installation-and-plugin-setup.md) §
|
|
161
|
+
`locale`.
|
|
162
|
+
|
|
163
|
+
If setup is missing, provide setup code first ([Installation and Plugin Setup](./installation-and-plugin-setup.md)), then component examples.
|
|
164
|
+
|
|
165
|
+
## Knowledge Base: Router First, Then Curated Guides
|
|
166
|
+
|
|
167
|
+
Read the installed package knowledge base before recommending components:
|
|
168
|
+
|
|
169
|
+
1. **`dist/ai/guides/ai-router.md`** — tiny hop map (which file to open next).
|
|
170
|
+
2. **`dist/ai/index.md`** — full catalogue only when the router is not enough.
|
|
171
|
+
|
|
172
|
+
Every component doc (`dist/ai/<Name>.md`) **leads with a "Usage & Guidelines" section** — a curated, runtime-tested guide with live examples. Read it before the raw props/events/slots tables, and prefer its idioms over anything you would infer from the API surface alone. If a guide shows one way to do something, that is the idiomatic way.
|
|
173
|
+
|
|
174
|
+
Consumer projects should run `npx bitboss-ui ai-init` once so AGENTS.md / Cursor / Copilot / Claude / Windsurf all point at this corpus.
|
|
175
|
+
|
|
176
|
+
## Navigation Rule
|
|
177
|
+
|
|
178
|
+
Offload navigation to the component. The navigation engine lives in `BbBaseButton`, the primitive every button wraps — so `BbButton`, `BbDropdownButton`, `BbBaseButton` itself, and every item-driven surface built on the same core (dropdown items, breadcrumb items, tabs items, pagination in `navigation` mode) all navigate by themselves. Push _as much navigation as possible_ onto this surface — any click whose result is a destination belongs here, not in an `@click` handler:
|
|
179
|
+
|
|
180
|
+
- `href` — renders an anchor; in an Inertia app it becomes an Inertia visit and accepts `method`, `data`, `headers`, `preserveScroll`, `replace`, …;
|
|
181
|
+
- `to` — vue-router `RouteLocationRaw`, rendered as a router link (tabs items use `href`; pagination `navigation` builds per-page `to`/`href` links itself).
|
|
182
|
+
|
|
183
|
+
**NEVER** write `@click="router.push(...)"` (or `window.location = ...`) for something the component can navigate to itself. Click handlers are for actions; destinations go in `href`/`to`.
|
|
184
|
+
|
|
185
|
+
## Item-Driven Components Rule
|
|
186
|
+
|
|
187
|
+
For components accepting `items`:
|
|
188
|
+
|
|
189
|
+
- prefer declarative mapping with `item-text` and `item-value`;
|
|
190
|
+
- use `dependencies` and `deps-debounce-time` for tied fields;
|
|
191
|
+
- use `enforce-coherence` instead of custom watchers for stale model cleanup.
|
|
192
|
+
|
|
193
|
+
## Icons Rule
|
|
194
|
+
|
|
195
|
+
External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `iconDir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Full workflow: [Icons Policy](./icons-policy.md).
|
|
196
|
+
|
|
197
|
+
## Variants Rule
|
|
198
|
+
|
|
199
|
+
Unlike icons, variants are **not** a fixed vocabulary you must stay inside. The
|
|
200
|
+
shipped names (`primary`, `secondary`, `destructive`, `outline`, …) are the
|
|
201
|
+
**floor**; the registries are open on purpose so an app can add the tones its
|
|
202
|
+
design needs. When a design calls for a colour the library does not ship — soft
|
|
203
|
+
semantic status badges, a brand button tone — **add it, in both halves**:
|
|
204
|
+
|
|
205
|
+
1. **Register the name** in the build plugin: `badgeVariants`, `buttonVariants`,
|
|
206
|
+
`alertVariants`, `confirmVariants`, `dropdownItemVariants`, `tooltipVariants`,
|
|
207
|
+
`toastVariants`, `indicatorVariants` (`bitboss-ui/vite` or `bitboss-ui/nuxt`).
|
|
208
|
+
The plugin regenerates the typed registry, so the name type-checks.
|
|
209
|
+
2. **Style the class** — `.bb-badge.bb-badge--<name>`, `.bb-button--<name>`, … —
|
|
210
|
+
in a project stylesheet loaded **after** `bitboss-ui/styles.css`. The library
|
|
211
|
+
ships no CSS for names it does not own.
|
|
212
|
+
|
|
213
|
+
Half the job is a bug in both directions: a registered name with no CSS renders
|
|
214
|
+
an unstyled pill (the original "warning badge" hallucination), and CSS with no
|
|
215
|
+
registration fails `vue-tsc`. Equally, **do not downgrade the design** — falling
|
|
216
|
+
back to `secondary`/`outline` because a status palette "isn't available" is the
|
|
217
|
+
wrong fix; registering it is a two-file change you are expected to make.
|
|
218
|
+
|
|
219
|
+
Never write a variant name that is neither shipped nor registered. Canonical
|
|
220
|
+
soft status palette (accents, the shared treatment, and why the selectors are
|
|
221
|
+
doubled): [Design Language](./design-language.md) § Getting soft semantic badges.
|
|
222
|
+
Where the option goes: [Installation and Plugin Setup](./installation-and-plugin-setup.md).
|
|
223
|
+
|
|
224
|
+
## Overlay Open-State Rule
|
|
225
|
+
|
|
226
|
+
Overlay visibility is controlled by the component's **primary `v-model`** — never a separate `v-model:open`. The standalone overlays (`BbDialog`, `BbOffCanvas`, `BbPopover`, `BbTooltip`) expose a boolean `v-model` for open state. The popover-embedded surfaces (`BbDropdown`, `BbSelectPopover`, `BbColorPalette`) keep open state **internal** — drive them through their trigger/activator, not a bound open flag. There is no `v-model:open` anywhere in the library, by design; do not reach for one.
|
|
227
|
+
|
|
228
|
+
## Global Host Rule
|
|
229
|
+
|
|
230
|
+
`useToast()` and `useConfirm()` write to **module-level singleton state**, not to a component instance. `<BbToast />` and `<BbConfirm />` are the only things that render that state, and each mounted host renders _all_ of it.
|
|
231
|
+
|
|
232
|
+
**Mount exactly one `<BbToast />` and one `<BbConfirm />` for the whole application, at the app root** — `App.vue` under Vue, `app.vue` under Nuxt, the `createInertiaApp` render root under Inertia. Never one per page, per route, per layout branch or per component; a page that calls `toast()` or `confirm()` mounts nothing.
|
|
233
|
+
|
|
234
|
+
- **Zero hosts** — `toast(...)` enqueues silently and the message never expires (the dismiss timer lives inside the host); `await confirm(...)` never settles, so the caller hangs. Neither throws.
|
|
235
|
+
- **Two hosts** — every toast and every dialog renders once per host: duplicated DOM, duplicated `role="status"` live regions, duplicated focus traps. `BbToast` warns in DEV; `BbConfirm` does not warn at all.
|
|
236
|
+
|
|
237
|
+
Standalone examples in this repo (`src/components/*/examples/*.vue`, stories, dev showcases) mount a host inline **because each one is a self-contained root with no application around it**. That is a property of the example harness, not a pattern to copy — in a real app the host is already mounted at the root, and the page must not mount a second one.
|
|
238
|
+
|
|
239
|
+
## Boolean Prop Defaults Rule
|
|
240
|
+
|
|
241
|
+
Boolean props default to `false` so the bare `<Comp foo>` shorthand turns the feature **on**. A few props deliberately default to `true` for cross-library keyword clarity — pass `:prop="false"` to opt out:
|
|
242
|
+
|
|
243
|
+
- `multiple` on `BbTable`, `BbCheckboxGroup`, `BbSwitchGroup` — multi-select is the expected default; `:multiple="false"` forces single-select.
|
|
244
|
+
- `selectable` on the item-driven components (`BbSelect`, `BbCheckboxGroup`, `BbRadioGroup`, `BbSwitchGroup`, `BbTable`) — items are selectable by default; pass a predicate or `false` to restrict.
|
|
245
|
+
|
|
246
|
+
These are the only intentional default-`true` booleans; anywhere else, `true` default is a bug (`check-api` flags it).
|
|
247
|
+
|
|
248
|
+
**Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette`, and `BbDropdown` (leftover bindings land silently in `$attrs`). Only `BbTooltip` keeps `hideArrow` (default `false` — arrow shown). See [bb-popover.md](./migration/components/bb-popover.md).
|
|
249
|
+
|
|
250
|
+
## Testing Against bitboss-ui
|
|
251
|
+
|
|
252
|
+
Two DOM realities of this library trip up headless-browser tests written
|
|
253
|
+
against otherwise-correct selectors:
|
|
254
|
+
|
|
255
|
+
- **Closed floating panels stay in the DOM, not hidden.** Popovers, dropdown
|
|
256
|
+
panels, and select listboxes render `inert` and off-screen when closed
|
|
257
|
+
(`position: fixed; top: -2000px; width: max-content`) rather than being
|
|
258
|
+
removed or `display: none`d — a closed panel is inert, not absent. Two
|
|
259
|
+
consequences: (1) a bare text/role query can match content inside a closed
|
|
260
|
+
panel elsewhere on the page — scope queries to `:not([inert])` or a known
|
|
261
|
+
open root, and wait for the `[inert]` attribute (not `hidden`/detached) to
|
|
262
|
+
assert a panel is closed; (2) because these panels are `position: fixed`
|
|
263
|
+
and can be as wide as their longest option, they inflate
|
|
264
|
+
`document.documentElement.scrollWidth` by however wide the _widest ever
|
|
265
|
+
rendered_ panel is, with zero visible effect on the page. **Measure page
|
|
266
|
+
overflow with `document.body.scrollWidth`, never
|
|
267
|
+
`document.documentElement.scrollWidth`.**
|
|
268
|
+
- **Segmented date/time inputs are not one field.** `BbDatePickerInput` /
|
|
269
|
+
`BbTimePickerInput` render one native input per segment (day/month/year,
|
|
270
|
+
hour/minute/second/period); the field's own `label` is wired via `for` to
|
|
271
|
+
only the first segment, and every segment additionally carries its own,
|
|
272
|
+
localized `aria-label` ("Month"/"Day"/"Year", or "Mese"/"Giorno"/"Anno"
|
|
273
|
+
under `locale: 'it'`), which wins the accessible-name computation. So
|
|
274
|
+
`getByLabel('<the field's label>')` matches nothing — query each segment by
|
|
275
|
+
its own accessible name (`getByLabel('Month')`, etc., which is
|
|
276
|
+
locale-coupled: it breaks if the app under test switches locale) or by its
|
|
277
|
+
role/position within the field. `aria-valuetext` is **not** emitted by the
|
|
278
|
+
date/time picker family — that signal exists only on `BbSelectPopover`'s
|
|
279
|
+
activator; don't expect it on a segmented input.
|
|
280
|
+
|
|
281
|
+
## Safety Checklist
|
|
282
|
+
|
|
283
|
+
- [ ] Started from the AI Router (or already knows the next hop).
|
|
284
|
+
- [ ] Recommends `Bb*` components by default.
|
|
285
|
+
- [ ] Uses only existing props/events/slots from library types.
|
|
286
|
+
- [ ] Read the component's "Usage & Guidelines" section before writing usage code.
|
|
287
|
+
- [ ] Navigation goes through `href`/`to` on buttons and items — no `router.push` click handlers for plain destinations.
|
|
288
|
+
- [ ] Uses only icons from installed `@iconify-json/*` providers or existing `local:*` files.
|
|
289
|
+
- [ ] Avoids reference-only imports unless explicitly requested.
|
|
290
|
+
- [ ] Uses declarative coherence/dependencies before manual watchers.
|
|
291
|
+
- [ ] Mounts exactly one `<BbToast />` and one `<BbConfirm />` host, at the app root — never inside a page or component.
|
|
292
|
+
- [ ] Confirmed the plugin's `locale` is set explicitly if the app isn't Italian (default is `'it'`) — see Setup-First Rule.
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
<!-- dist/ai/guides/installation-and-plugin-setup.md -->
|
|
297
|
+
<!-- https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/ai/guides/installation-and-plugin-setup.md -->
|
|
298
|
+
|
|
299
|
+
# Installation and Plugin Setup
|
|
300
|
+
|
|
301
|
+
Source of truth for integrating `bitboss-ui`. Two pieces are always required:
|
|
302
|
+
|
|
303
|
+
1. a **build plugin** (`bitboss-ui/vite` or `bitboss-ui/nuxt`) that serves the `virtual:bitboss-ui/icons` and `virtual:bitboss-ui/config` modules, scans local SVG icons, and generates typed variant registries;
|
|
304
|
+
2. the **runtime plugin** (`bitbossUiPlugin` — installed automatically by the Nuxt module) that injects styles, provides the icon registry, and registers the `v-bb-tooltip` / `v-bb-dropdown` directives.
|
|
305
|
+
|
|
306
|
+
## 1) Install
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
# v3 is a prerelease — the `@alpha` tag is REQUIRED.
|
|
310
|
+
# A bare `npm install bitboss-ui` still resolves to v2, which has no build
|
|
311
|
+
# plugin and no `dist/ai` knowledge base, so everything below silently fails.
|
|
312
|
+
npm install bitboss-ui@alpha
|
|
313
|
+
# recommended default icon set (any @iconify-json/* works)
|
|
314
|
+
npm install -D @iconify-json/lucide
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
Confirm you got v3 before continuing — `npm ls bitboss-ui` must report a
|
|
318
|
+
`3.0.0-alpha.*` version. If it reports `2.x`, nothing in this guide applies.
|
|
319
|
+
|
|
320
|
+
Peer dependencies: `vue ^3.5.12` and `@iconify/collections` (auto-installed by npm 7+; powers dev-time icon-name validation). `@inertiajs/vue3` is an **optional** peer — only needed in Inertia apps.
|
|
321
|
+
|
|
322
|
+
**Known-good toolchain:** TypeScript **5.x** if your build gate runs `vue-tsc`
|
|
323
|
+
— TypeScript 7 changed its package layout in a way `vue-tsc` (not a peer of
|
|
324
|
+
this library, but the typical `--noEmit` gate) cannot load, and fails with an
|
|
325
|
+
`ERR_PACKAGE_PATH_NOT_EXPORTED` on `./lib/tsc`. This library doesn't pin
|
|
326
|
+
TypeScript for you (it isn't `vue-tsc`'s maintainer), but a bare
|
|
327
|
+
`npm i -D typescript` in a fresh project can resolve to 7.x today — pin
|
|
328
|
+
`typescript: ^5.x` yourself if `vue-tsc` is part of your gate.
|
|
329
|
+
|
|
330
|
+
### Browser support
|
|
331
|
+
|
|
332
|
+
The library targets **evergreen browsers** and ships **no polyfills**. The
|
|
333
|
+
floor is set by the native [Popover API](https://developer.mozilla.org/docs/Web/API/Popover_API),
|
|
334
|
+
which every floating surface (selects, dropdowns, popovers, tooltips, color
|
|
335
|
+
palette) renders through:
|
|
336
|
+
|
|
337
|
+
| Engine | Minimum |
|
|
338
|
+
| ------------- | ------------------ |
|
|
339
|
+
| Chrome / Edge | **114** (May 2023) |
|
|
340
|
+
| Safari | **17** (Sep 2023) |
|
|
341
|
+
| Firefox | **125** (Apr 2024) |
|
|
342
|
+
|
|
343
|
+
Also relied on, all older than that floor: `<dialog>`, the `inert` attribute,
|
|
344
|
+
`ResizeObserver`, and CSS `grid-template-rows` transitions. On older engines
|
|
345
|
+
the floating surfaces simply don't render — there is no degraded mode — so if
|
|
346
|
+
your fleet includes browsers below the floor, this library is not a fit
|
|
347
|
+
without your own polyfill strategy (untested, unsupported).
|
|
348
|
+
|
|
349
|
+
## 2) Vite + Vue
|
|
350
|
+
|
|
351
|
+
```ts
|
|
352
|
+
// vite.config.ts
|
|
353
|
+
import { defineConfig } from 'vite';
|
|
354
|
+
import vue from '@vitejs/plugin-vue';
|
|
355
|
+
import { bitbossUi } from 'bitboss-ui/vite';
|
|
356
|
+
|
|
357
|
+
export default defineConfig({
|
|
358
|
+
plugins: [
|
|
359
|
+
vue(),
|
|
360
|
+
bitbossUi({
|
|
361
|
+
iconDir: './src/assets/icons',
|
|
362
|
+
}),
|
|
363
|
+
],
|
|
364
|
+
});
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
```ts
|
|
368
|
+
// main.ts
|
|
369
|
+
import { createApp } from 'vue';
|
|
370
|
+
import App from './App.vue';
|
|
371
|
+
import { bitbossUiPlugin } from 'bitboss-ui';
|
|
372
|
+
|
|
373
|
+
const app = createApp(App);
|
|
374
|
+
app.use(bitbossUiPlugin);
|
|
375
|
+
app.mount('#app');
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `iconDir`.
|
|
379
|
+
|
|
380
|
+
## 3) Nuxt
|
|
381
|
+
|
|
382
|
+
The Nuxt module wraps the same Vite plugin and auto-registers the runtime plugin — no `app.use` needed:
|
|
383
|
+
|
|
384
|
+
```ts
|
|
385
|
+
// nuxt.config.ts
|
|
386
|
+
export default defineNuxtConfig({
|
|
387
|
+
modules: ['bitboss-ui/nuxt'],
|
|
388
|
+
bitboss: {
|
|
389
|
+
iconDir: './assets/icons', // module default
|
|
390
|
+
},
|
|
391
|
+
});
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
All options below go under the `bitboss` config key. `nuxtLinkName` controls which globally registered component renders router links (default `'NuxtLink'`).
|
|
395
|
+
|
|
396
|
+
## 4) Inertia
|
|
397
|
+
|
|
398
|
+
Inertia apps are Vite apps: configure `bitboss-ui/vite` exactly as in section 2, install `@inertiajs/vue3`, then install the runtime plugin in `createInertiaApp`:
|
|
399
|
+
|
|
400
|
+
```ts
|
|
401
|
+
createInertiaApp({
|
|
402
|
+
// ...resolve/setup
|
|
403
|
+
setup({ el, App, props, plugin }) {
|
|
404
|
+
createApp({ render: () => h(App, props) })
|
|
405
|
+
.use(plugin)
|
|
406
|
+
.use(bitbossUiPlugin)
|
|
407
|
+
.mount(el);
|
|
408
|
+
},
|
|
409
|
+
});
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
That is the whole setup — **you do not need to register a link component**. When
|
|
413
|
+
the build plugin sees `@inertiajs/vue3` in your app, it imports Inertia's `Link`
|
|
414
|
+
on your behalf, so `href` on buttons/items performs Inertia visits (`method`,
|
|
415
|
+
`data`, `headers`, `preserveScroll`, …) out of the box.
|
|
416
|
+
|
|
417
|
+
If your app registers its **own** link wrapper globally — one with baked-in
|
|
418
|
+
defaults, analytics, whatever — that keeps winning: a component registered under
|
|
419
|
+
`inertiaLinkName` (default `'Link'`) is always preferred over the imported one.
|
|
420
|
+
Register it under a different name and point `inertiaLinkName` at it.
|
|
421
|
+
|
|
422
|
+
## 5) Styling
|
|
423
|
+
|
|
424
|
+
Two runtime options control CSS:
|
|
425
|
+
|
|
426
|
+
- `injectStyles` (default `true`) — auto-injects the library stylesheet (equivalent to `bitboss-ui/styles.css`: base styles + design tokens);
|
|
427
|
+
- `resetCss` (default `false`) — opt-in injection of the reset stylesheet.
|
|
428
|
+
|
|
429
|
+
Guaranteed order when injected: **reset → library styles → all other stylesheets**, so app-local CSS can always override the library.
|
|
430
|
+
|
|
431
|
+
`resetCss` stays opt-in because Tailwind projects already ship Preflight — a second reset is usually unnecessary.
|
|
432
|
+
|
|
433
|
+
**Tailwind v4 cascade layers vs. scoped `<style>`:** Tailwind v4's `@import
|
|
434
|
+
'tailwindcss'` puts every utility class in `@layer utilities`. A Vue SFC's
|
|
435
|
+
`<style scoped>` block is **unlayered** CSS, and per the cascade, unlayered
|
|
436
|
+
rules always beat layered rules of equal specificity — regardless of source
|
|
437
|
+
order. So a component with its own scoped layout-affecting rule silently
|
|
438
|
+
defeats a Tailwind utility applied to it from outside, with no warning from
|
|
439
|
+
`bitboss-ui check`, `eslint`, or `vue-tsc`:
|
|
440
|
+
|
|
441
|
+
```vue
|
|
442
|
+
<!-- Parent -->
|
|
443
|
+
<CategoryTree class="hidden lg:block" />
|
|
444
|
+
|
|
445
|
+
<!-- CategoryTree.vue -->
|
|
446
|
+
<style scoped>
|
|
447
|
+
.category-tree {
|
|
448
|
+
display: flex; /* unlayered — always wins over the layered `hidden` utility */
|
|
449
|
+
}
|
|
450
|
+
</style>
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
`CategoryTree` never actually hides. Prefer `v-if`/JS conditionals over
|
|
454
|
+
utility classes for hide/show behavior on components (yours or ones built on
|
|
455
|
+
top of `bitboss-ui`) that carry their own layout-affecting scoped styles:
|
|
456
|
+
|
|
457
|
+
```vue
|
|
458
|
+
<CategoryTree v-if="showSidebar" />
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
Manual alternatives:
|
|
462
|
+
|
|
463
|
+
```ts
|
|
464
|
+
// with injectStyles: false — import once, before your own CSS
|
|
465
|
+
import 'bitboss-ui/styles.css';
|
|
466
|
+
// explicit reset instead of resetCss: true
|
|
467
|
+
import 'bitboss-ui/reset.css';
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
## 6) Icons
|
|
471
|
+
|
|
472
|
+
- `iconDir` (required) is scanned recursively for `.svg` files; each file becomes `local:<basename>`.
|
|
473
|
+
- Provider icons (`lucide:pencil`, `mdi:home`, …) require the matching `@iconify-json/<prefix>` package installed in the consumer app. Missing packages/icons produce actionable dev-overlay errors.
|
|
474
|
+
- Production builds bundle **only statically referenced** provider icons — write icon names as literal strings (`icon="lucide:trash-2"`), never assemble them dynamically.
|
|
475
|
+
- The plugin also writes `node_modules/.bitboss-ui/local-icons.json` and wires `.vscode/settings.json` so the Iconify editor extension previews local icons.
|
|
476
|
+
|
|
477
|
+
Policy for choosing icons: [Icons Policy](./icons-policy.md).
|
|
478
|
+
|
|
479
|
+
## 7) Complete Option Reference
|
|
480
|
+
|
|
481
|
+
Options are the same for `bitboss-ui/vite` and the `bitboss` key in Nuxt.
|
|
482
|
+
|
|
483
|
+
### `iconDir: string` (required)
|
|
484
|
+
|
|
485
|
+
Path to local SVG icons, absolute or relative to project root. Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`.
|
|
486
|
+
|
|
487
|
+
### `injectStyles?: boolean` (default: `true`)
|
|
488
|
+
|
|
489
|
+
Auto-inject the library stylesheet at runtime. If `false`, you must `import 'bitboss-ui/styles.css'` manually.
|
|
490
|
+
|
|
491
|
+
### `resetCss?: boolean` (default: `false`)
|
|
492
|
+
|
|
493
|
+
Inject the reset stylesheet (always ordered before the library stylesheet). Keep `false` and import `bitboss-ui/reset.css` if you prefer explicit control.
|
|
494
|
+
|
|
495
|
+
### `injectDirectives?: boolean` (default: `true`)
|
|
496
|
+
|
|
497
|
+
Registers the global `v-bb-tooltip` and `v-bb-dropdown` directives when the runtime plugin installs. Disable only if the names collide with your own directives.
|
|
498
|
+
|
|
499
|
+
### `adaptive?: boolean` (default: `true`)
|
|
500
|
+
|
|
501
|
+
Default for the `adaptive` prop of surface components (BbDialog, BbPopover, BbDropdown, BbSelect): when true they open as a bottom sheet on mobile (below `mobileMaxWidth`) instead of their floating surface. An explicit per-component `adaptive` prop always wins.
|
|
502
|
+
|
|
503
|
+
### `mcp?: boolean` (default: `false`)
|
|
504
|
+
|
|
505
|
+
When `true`, the **dev server** registers the bitboss-ui MCP server in each project-scoped agent-harness config on boot — `.mcp.json` (Claude Code), `.cursor/mcp.json` (Cursor), and `.vscode/mcp.json` (VS Code / Copilot) — so agents can query the knowledge base with no manual setup. The write is merge-safe (leaves other servers alone) and idempotent (only logs when it actually changes a file). Windsurf is intentionally **not** written here: its config is global (`~/.codeium`), and silently editing a home-dir file that affects every project on the machine from a dev-server boot would be surprising — run `npx bitboss-ui ai-init --mcp` to register Windsurf too. This flag is the zero-command equivalent of that command's project-scoped writes.
|
|
506
|
+
|
|
507
|
+
### `inertiaLinkName?: string` (default: `'Link'`)
|
|
508
|
+
|
|
509
|
+
Global component name used for Inertia links. **Optional** — when nothing is
|
|
510
|
+
registered under this name, the library falls back to the `Link` the build
|
|
511
|
+
plugin imported from your `@inertiajs/vue3` install. Set it only when you want a
|
|
512
|
+
wrapper of your own to be used instead.
|
|
513
|
+
|
|
514
|
+
### `nuxtLinkName?: string` (default: `'NuxtLink'`)
|
|
515
|
+
|
|
516
|
+
Global component name used for Nuxt link rendering.
|
|
517
|
+
|
|
518
|
+
### `linkActiveClass?: string` (default: `'router-link-active'`)
|
|
519
|
+
|
|
520
|
+
### `linkExactActiveClass?: string` (default: `'router-link-exact-active'`)
|
|
521
|
+
|
|
522
|
+
Class names applied to active / exact-active links in router-aware components. Align them with your router configuration.
|
|
523
|
+
|
|
524
|
+
### `mobileMaxWidth?: number` (default: `768`)
|
|
525
|
+
|
|
526
|
+
Pixel breakpoint for the library's mobile behavior (including `adaptive` surfaces).
|
|
527
|
+
|
|
528
|
+
### `ssrViewportWidth?: number` (default: `1024`)
|
|
529
|
+
|
|
530
|
+
The viewport width the library assumes while rendering **on the server**, where
|
|
531
|
+
the real screen size is unknowable. The default `1024` is a desktop width, so
|
|
532
|
+
server output is desktop-first. On the client the real `window.innerWidth` is
|
|
533
|
+
used from the first paint.
|
|
534
|
+
|
|
535
|
+
**Client-only SPA?** Ignore this — the real width is known from the first paint,
|
|
536
|
+
so `adaptive` surfaces are correct immediately.
|
|
537
|
+
|
|
538
|
+
**Server-rendering (Nuxt / Inertia SSR)?** By default the server renders
|
|
539
|
+
desktop-shaped; a mobile visitor's first paint is desktop-shaped and adjusts
|
|
540
|
+
once the client measures the real width (for closed overlays this is invisible —
|
|
541
|
+
they're not on screen yet; a Vue hydration warning may appear in dev). Set this
|
|
542
|
+
to a different width if your app is primarily consumed on a known form factor:
|
|
543
|
+
|
|
544
|
+
```ts
|
|
545
|
+
// vite.config.ts — build-time, applied to every server render.
|
|
546
|
+
bitbossUi({
|
|
547
|
+
// ...other options,
|
|
548
|
+
ssrViewportWidth: 768,
|
|
549
|
+
});
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
This is a **single global default baked in at build time** (it comes from the
|
|
553
|
+
Vite plugin config), so it is the same for every request — it is _not_ a
|
|
554
|
+
per-request value. There is no per-request/per-visitor override today: the
|
|
555
|
+
viewport signal is a process-wide singleton, so a mobile layout that must be
|
|
556
|
+
correct on the server's first paint (e.g. a modal already open on load) needs a
|
|
557
|
+
client adjustment after hydration, or a fixed `ssrViewportWidth` matching your
|
|
558
|
+
audience.
|
|
559
|
+
|
|
560
|
+
### `defaultInputLabelMode?: 'outside' | 'floating' | 'inside'` (default: `'outside'`)
|
|
561
|
+
|
|
562
|
+
Default label rendering mode for input-like components; set globally instead of repeating per field.
|
|
563
|
+
|
|
564
|
+
### `locale?: LocaleKey` (default: `'it'`)
|
|
565
|
+
|
|
566
|
+
Global locale for the library's built-in strings (empty states, close/clear
|
|
567
|
+
labels, screen-reader announcements, confirm buttons, …). The library ships
|
|
568
|
+
**22 built-in dictionaries** — it, en, es, fr, de, pt (Brazilian-leaning), nl,
|
|
569
|
+
pl, tr, ru, uk, cs, ro, hu, el, sv, da, nb, fi, ja, ko, zh-cn — but shipping ≠
|
|
570
|
+
bundling: only the **enabled** locales enter your build (next option). Runtime
|
|
571
|
+
switching: `useBbConfig().setConfig({ locale })` — to a locale you enabled.
|
|
572
|
+
|
|
573
|
+
### `enabledLocales?: BuiltinLocaleKey[]` (default: your `locale` + `'en'`)
|
|
574
|
+
|
|
575
|
+
Which built-in dictionaries (and their dayjs calendar packs) actually ship in
|
|
576
|
+
the bundle. The unset default is the minimal set — the `locale` you configured
|
|
577
|
+
plus `en` (the per-key fallback anchor) — roughly 4KB of strings, so a
|
|
578
|
+
single-language app pays for exactly what it uses without configuring
|
|
579
|
+
anything. Apps that switch locales at runtime list what they offer:
|
|
580
|
+
|
|
581
|
+
```ts
|
|
582
|
+
bitbossUi({
|
|
583
|
+
iconDir: './src/assets/icons',
|
|
584
|
+
locale: 'it',
|
|
585
|
+
enabledLocales: ['it', 'en', 'de', 'fr'], // ~4 dictionaries + 4 dayjs packs
|
|
586
|
+
});
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
Your `locale` and `'en'` are always auto-included, so the list never needs to
|
|
590
|
+
repeat them; custom `additionalLocales` keys are always enabled and don't
|
|
591
|
+
belong here.
|
|
592
|
+
There is deliberately **no catch-all** ("all") value — it would hide the
|
|
593
|
+
bundle cost. Wanting every built-in means writing the list, so the cost is
|
|
594
|
+
visible in your config where reviewers can see it.
|
|
595
|
+
|
|
596
|
+
**Selecting a non-enabled locale is a compile error**, not a silent runtime
|
|
597
|
+
fallback: the generated `locale-registry.d.ts` registers only enabled
|
|
598
|
+
built-ins + custom keys, so `setConfig({ locale: 'ja' })` fails to type-check
|
|
599
|
+
until `'ja'` is enabled. Run dev once after changing the list.
|
|
600
|
+
|
|
601
|
+
### `additionalLocales?: CustomLocales` (default: `{}`)
|
|
602
|
+
|
|
603
|
+
**Additional** locale dictionaries, keyed by locale. Strictly additive:
|
|
604
|
+
built-in locales cannot be overridden — a built-in key here is a type error,
|
|
605
|
+
and one smuggled past the compiler is ignored with a build-time warning.
|
|
606
|
+
|
|
607
|
+
The full flow for adding a locale (using Georgian, which the library doesn't
|
|
608
|
+
ship):
|
|
609
|
+
|
|
610
|
+
```bash
|
|
611
|
+
# 1. Generate a translation blueprint (English strings) at the project root
|
|
612
|
+
npx bitboss-ui locale ka
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
```ts
|
|
616
|
+
// 2. Translate ka.locale.ts, then register it
|
|
617
|
+
import ka from './ka.locale';
|
|
618
|
+
|
|
619
|
+
bitbossUi({
|
|
620
|
+
iconDir: './src/assets/icons',
|
|
621
|
+
locale: 'ka',
|
|
622
|
+
additionalLocales: { ka },
|
|
623
|
+
});
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
That's the whole setup — on build start the plugin:
|
|
627
|
+
|
|
628
|
+
- **verifies the dictionary against the library's English template** and warns
|
|
629
|
+
about `missing` keys (strings the library requires that your translation
|
|
630
|
+
doesn't cover — this is how a library upgrade that adds new strings alerts
|
|
631
|
+
you instead of silently falling back to the default locale forever) and
|
|
632
|
+
`unknown` keys (typos, or strings an upgrade removed).
|
|
633
|
+
|
|
634
|
+
- **regenerates `locale-registry.d.ts`**, augmenting `LocaleRegistry` with
|
|
635
|
+
your keys (exactly like the variant registries), so `'ka'` is a valid
|
|
636
|
+
`locale` value everywhere — the plugin option and `setConfig({ locale })`
|
|
637
|
+
alike. Run dev once after adding a key so the file exists.
|
|
638
|
+
- **wires the matching dayjs locale** (`dayjs/locale/ka`) so calendars follow
|
|
639
|
+
your locale's month/day names and week start. Any dayjs-shipped name works.
|
|
640
|
+
If dayjs has no locale under your key, the plugin **warns at build time**
|
|
641
|
+
and calendars fall back to English (there is no runtime warning) — when a
|
|
642
|
+
nearby dayjs name exists (`zh-cn`, `pt-br`, …), prefer it as your key.
|
|
643
|
+
|
|
644
|
+
Keys you delete from the blueprint fall back per-key to the default locale
|
|
645
|
+
(your `locale` when it's a built-in, otherwise `en` — always bundled, always
|
|
646
|
+
complete) — and are reported by the completeness warning above, which is the
|
|
647
|
+
point: partial is allowed, silent-partial is not.
|
|
648
|
+
|
|
649
|
+
Locale dictionaries are **build-time only**: `setConfig` accepts `locale` but
|
|
650
|
+
deliberately not `additionalLocales` — a runtime path would bypass every check
|
|
651
|
+
the plugin performs (built-in collision, completeness verification, dayjs
|
|
652
|
+
wiring, registry typing). Only the active `locale` switches at runtime, among
|
|
653
|
+
what the build enabled.
|
|
654
|
+
|
|
655
|
+
### `toastPosition?: BbToastPosition` (default: `'bottom-right'`)
|
|
656
|
+
|
|
657
|
+
Default viewport corner for toasts when neither the toast nor the `<BbToast>` host specify one. One of `'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'`.
|
|
658
|
+
|
|
659
|
+
### `iconDefaultSizes?: Partial<Sizes>`
|
|
660
|
+
|
|
661
|
+
Default icon size scale used by `BbIcon` and avatar dimensions. Partial overrides merge onto:
|
|
662
|
+
|
|
663
|
+
`{ xs: 12, sm: 16, md: 24, lg: 28, xl: 36, '2xl': 40 }`
|
|
664
|
+
|
|
665
|
+
### `dialogDefaultSizes?: Partial<Sizes>`
|
|
666
|
+
|
|
667
|
+
### `offCanvasDefaultSizes?: Partial<Sizes>`
|
|
668
|
+
|
|
669
|
+
Global size maps (pixels) for BbDialog / BbOffCanvas. Both default to:
|
|
670
|
+
|
|
671
|
+
`{ xs: 320, sm: 384, md: 448, lg: 512, xl: 576, '2xl': 672 }`
|
|
672
|
+
|
|
673
|
+
Provide only the keys you want to override, e.g. `dialogDefaultSizes: { md: 500, xl: 680 }`.
|
|
674
|
+
|
|
675
|
+
### Variant registries
|
|
676
|
+
|
|
677
|
+
Each option **appends** custom names to the default set (trimmed, deduplicated) and regenerates a typed union (`*-variants.d.ts`) on build start. Unstyled custom variants only add a class hook — supply their CSS yourself.
|
|
678
|
+
|
|
679
|
+
**The generated `*-variants.d.ts` files are per-project output, not a portable
|
|
680
|
+
variant list.** They mirror the plugin config of the project that last ran the
|
|
681
|
+
plugin in that folder, and are rewritten by every build/dev/test process. Your
|
|
682
|
+
project's registry is what **your** plugin config declares — never trust names
|
|
683
|
+
read out of another checkout's copy (e.g. the library repo's own tracked seeds
|
|
684
|
+
list variants that exist only in its dev showcase). Each generated file now
|
|
685
|
+
says this in its header.
|
|
686
|
+
|
|
687
|
+
| Option | Defaults | Class hook for custom entries |
|
|
688
|
+
| ---------------------- | ------------------------------------------------------- | ----------------------------------- |
|
|
689
|
+
| `buttonVariants` | `primary, outline, secondary, ghost, destructive, link` | `bb-button--<name>` |
|
|
690
|
+
| `alertVariants` | `outline, primary, destructive, warning` | `bb-alert--<name>` |
|
|
691
|
+
| `badgeVariants` | `primary, secondary, destructive, outline` | `bb-badge--<name>` |
|
|
692
|
+
| `indicatorVariants` | `default, success, info, warning, destructive` | `bb-indicator--<name>` |
|
|
693
|
+
| `confirmVariants` | `default, destructive` | `bb-confirm--<name>` |
|
|
694
|
+
| `dropdownItemVariants` | `default, destructive` | `bb-dropdown__item--variant-<name>` |
|
|
695
|
+
| `tooltipVariants` | `default, destructive` | `bb-tooltip--<name>` |
|
|
696
|
+
| `toastVariants` | `default, success, info, warning, destructive` | `bb-toast-message--<name>` |
|
|
697
|
+
|
|
698
|
+
Variant props are locked to the registered set (`keyof <X>VariantRegistry`):
|
|
699
|
+
an unregistered name is a compile error, not a silently unstyled render.
|
|
700
|
+
Register custom names here (typed, autocompleted), or force a one-off with an
|
|
701
|
+
explicit cast — the runtime class is still plain interpolation, so its CSS
|
|
702
|
+
applies either way.
|
|
703
|
+
|
|
704
|
+
**Adding a variant is a normal, expected consumer change** — the defaults are a
|
|
705
|
+
floor, not a vocabulary you must stay inside. A page that needs a tone the
|
|
706
|
+
library doesn't ship registers it here **and** styles its class hook in a
|
|
707
|
+
project stylesheet loaded after `bitboss-ui/styles.css`; both halves, or you get
|
|
708
|
+
an unstyled pill (CSS missing) or a compile error (registration missing). If the
|
|
709
|
+
design calls for semantic status colors, take the canonical palette from
|
|
710
|
+
[Design Language](./design-language.md) § Getting soft semantic badges rather
|
|
711
|
+
than inventing hues.
|
|
712
|
+
|
|
713
|
+
## 8) AI Knowledge Base
|
|
714
|
+
|
|
715
|
+
The package ships its agent docs in `node_modules/bitboss-ui/dist/ai/`. **Start at** `guides/ai-router.md`, then the catalogue `index.md`. Run `npx bitboss-ui ai-init` in the consumer project to inject harness-agnostic pointers (AGENTS.md, Cursor rules, Copilot instructions, Claude skill, Windsurf rules) so coding agents discover them without a vendor lock-in. After generating Bb\* markup, run `npx bitboss-ui check` (supports `--json`) so unknown props fail before review.
|
|
716
|
+
|
|
717
|
+
Add `--mcp` to also register a live MCP server (`npx bitboss-ui mcp`) the harness launches on demand — it merges the entry (never overwriting other servers) into `.mcp.json` (Claude Code), `.cursor/mcp.json` (Cursor), `.vscode/mcp.json` (VS Code / Copilot), and `~/.codeium/windsurf/mcp_config.json` (Windsurf). **Windsurf's config is global** — it has no per-project scope, so registering it affects every project on the machine; that is why only the explicit `ai-init --mcp` command writes it, while the plugin's `mcp: true` dev-server flag (§7) auto-registers the project-scoped harnesses only.
|
|
718
|
+
|
|
719
|
+
For a human-in-the-loop (and agent) safety net, add the `bitboss-ui/eslint-plugin` flat-config plugin (`...bitbossUi.configs.recommended`) so unknown/removed `Bb*` props surface as ESLint errors in the editor and CI — the same manifest checks as `bitboss-ui check`, reusing your `eslint-plugin-vue` parser. Real HTML attributes fall through untouched; escape hatches are the standard `<!-- eslint-disable-next-line bitboss-ui/no-unknown-attributes -->` and the rule's `allowAttributes` / `allowComponents` options. **`eslint --fix` also auto-migrates deprecated v2 props** (renames, boolean-polarity inversions like `allowWriting`→`disableWriting`, value remaps like BbToast `placement`→`position`, and deletion of inert removed props); structural migrations that need a slot/directive/CSS are reported but left by hand. **This library is TS-first (recipes ship `<script setup lang="ts">`, some with `generic="T"`), so wire `@typescript-eslint/parser` for both `.ts` and `.vue` files** — without it `vue-eslint-parser` throws a `Parsing error` on those files, which means no rule (including `no-unknown-attributes`) runs on them at all. See the README "ESLint plugin" section for the full config snippet (both parser blocks + the `npm i -D @typescript-eslint/parser` line) and the fix table.
|
|
720
|
+
|
|
721
|
+
## 9) Setup Verification Checklist
|
|
722
|
+
|
|
723
|
+
- [ ] package installed (plus `@iconify-json/*` packages for every provider prefix used);
|
|
724
|
+
- [ ] build plugin configured: `bitboss-ui/vite` plugin or `bitboss-ui/nuxt` module (`bitboss` config key);
|
|
725
|
+
- [ ] `iconDir` points at an existing SVG folder;
|
|
726
|
+
- [ ] runtime plugin installed: `app.use(bitbossUiPlugin)` (automatic in Nuxt);
|
|
727
|
+
- [ ] style strategy chosen: auto injection (default) or `injectStyles: false` + `import 'bitboss-ui/styles.css'`;
|
|
728
|
+
- [ ] if a reset is required: `resetCss: true` or `import 'bitboss-ui/reset.css'`;
|
|
729
|
+
- [ ] Inertia apps: `@inertiajs/vue3` installed (no link registration needed; set `inertiaLinkName` only if you register your own link wrapper).
|
|
730
|
+
- [ ] building the [Layout Scaffold](../recipes/vue/layout-scaffold.md)? `npm i @vueuse/core` — `usePageShellContext.ts` imports `injectLocal`/`provideLocal` from it. This library depends on it too, so it can resolve via hoisting without being declared — don't rely on that; declare it in your own `package.json` or a strict installer (pnpm, Yarn PnP) will fail to resolve it.
|
|
731
|
+
- [ ] `vite.config.ts` (and any other build config, e.g. `eslint.config.js`) is inside your project's type-check scope — a `tsconfig.node.json` project reference is the conventional shape. Otherwise `bitbossUi(...)`'s typed options (`locale`, the `*Variants` registries, `iconDefaultSizes`, …) are never checked by `vue-tsc --noEmit`, silently defeating the compile-time guarantees this guide documents (e.g. "selecting a non-enabled locale is a compile error").
|
|
732
|
+
|
|
733
|
+
If one of the checks fails, fix setup before creating component examples.
|
|
734
|
+
|
|
735
|
+
---
|
|
736
|
+
|
|
737
|
+
<!-- dist/ai/guides/component-picker.md -->
|
|
738
|
+
<!-- https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/ai/guides/component-picker.md -->
|
|
739
|
+
|
|
740
|
+
# Component Picker
|
|
741
|
+
|
|
742
|
+
Use this guide to map a UI requirement to the correct `bitboss-ui` component before writing any code.
|
|
743
|
+
|
|
744
|
+
## Rule
|
|
745
|
+
|
|
746
|
+
Always pick from the **Consumer API** (`Bb*`) components first. Only fall back to base primitives when the user explicitly requests internal composition. Each linked doc leads with a "Usage & Guidelines" section — read it before the API tables.
|
|
747
|
+
|
|
748
|
+
---
|
|
749
|
+
|
|
750
|
+
## Text Input
|
|
751
|
+
|
|
752
|
+
| Need | Component |
|
|
753
|
+
| --------------------------------------- | -------------------------------------------- |
|
|
754
|
+
| Single-line text | [BbTextInput](../BbTextInput.md) |
|
|
755
|
+
| Multi-line text | [BbTextarea](../BbTextarea.md) |
|
|
756
|
+
| Numeric value with clamping/stepping | [BbNumberInput](../BbNumberInput.md) |
|
|
757
|
+
| Color value in a form | [BbColorInput](../BbColorInput.md) |
|
|
758
|
+
| Calendar date or date range | [BbDatePickerInput](../BbDatePickerInput.md) |
|
|
759
|
+
| Time or time range | [BbTimePickerInput](../BbTimePickerInput.md) |
|
|
760
|
+
| Free-form tags / tokens typed by user | [BbTag](../BbTag.md) |
|
|
761
|
+
| File selection via drag-and-drop/picker | [BbDropzone](../BbDropzone.md) |
|
|
762
|
+
|
|
763
|
+
- `BbTag` is for **open vocabularies** (skills, keywords, recipients the user invents). If values come from a known set, use `BbSelect` in multiple mode instead.
|
|
764
|
+
- `BbDropzone` captures and validates files; it does **not** upload — pair it with your request layer plus `BbProgress`/`useToast`.
|
|
765
|
+
|
|
766
|
+
---
|
|
767
|
+
|
|
768
|
+
## Selection from a List of Options
|
|
769
|
+
|
|
770
|
+
| Need | Component |
|
|
771
|
+
| --------------------------------------------------- | ---------------------------------------- |
|
|
772
|
+
| Dropdown search, single or multi-select | [BbSelect](../BbSelect.md) |
|
|
773
|
+
| Picker on a custom trigger (no inline form input) | [BbSelectPopover](../BbSelectPopover.md) |
|
|
774
|
+
| Few exclusive options (radio semantics) | [BbRadioGroup](../BbRadioGroup.md) |
|
|
775
|
+
| Multiple non-exclusive options (checkbox semantics) | [BbCheckboxGroup](../BbCheckboxGroup.md) |
|
|
776
|
+
| Multiple options as live on/off settings | [BbSwitchGroup](../BbSwitchGroup.md) |
|
|
777
|
+
| Approximate value or range from a bounded interval | [BbSlider](../BbSlider.md) |
|
|
778
|
+
| Whole-number score out of N (stars, rating) | [BbRating](../BbRating.md) |
|
|
779
|
+
|
|
780
|
+
**Choosing between BbSelect, BbRadioGroup, BbCheckboxGroup, BbSwitchGroup:**
|
|
781
|
+
|
|
782
|
+
- Large, dynamic, or searchable option sets → `BbSelect` (search and async fetch baked in).
|
|
783
|
+
- Small static exclusive choice (≤6 items, worth showing in full) → `BbRadioGroup`.
|
|
784
|
+
- Small static multi-choice submitted with a form → `BbCheckboxGroup`.
|
|
785
|
+
- Each option is a live setting that applies the moment it flips → `BbSwitchGroup`.
|
|
786
|
+
- The trigger is a status pill, avatar stack, or table-cell chip rather than a form field → `BbSelectPopover` (same search/options engine as `BbSelect`, you own the trigger).
|
|
787
|
+
|
|
788
|
+
Never hand-assemble a row of `BbCheckbox`/`BbRadio` — the groups give you fieldset semantics, item mapping, and validation for free.
|
|
789
|
+
|
|
790
|
+
---
|
|
791
|
+
|
|
792
|
+
## Single Toggle
|
|
793
|
+
|
|
794
|
+
| Need | Component |
|
|
795
|
+
| ------------------------------------------------- | ------------------------------ |
|
|
796
|
+
| An answer or an agreement (accept terms, opt in) | [BbCheckbox](../BbCheckbox.md) |
|
|
797
|
+
| The on/off state of a thing (notifications, sync) | [BbSwitch](../BbSwitch.md) |
|
|
798
|
+
| One option interleaved with other markup | [BbRadio](../BbRadio.md) |
|
|
799
|
+
|
|
800
|
+
**BbCheckbox vs BbSwitch — choose on what the control _means_, not on when it commits.** A switch is the on/off **state of a thing**: "Email notifications", "Anyone with the link can view", "Auto-renew". A checkbox is an **answer or a selection**: "I accept the terms", "Also send me a copy", a selected row.
|
|
801
|
+
|
|
802
|
+
**A switch inside a submit-gated form is correct** — it commits with the form, exactly like every other field. This library ships `BbSwitch` from `bitboss-ui/validated` for that case, its own fixtures put one inside `<BbForm>`, and its wizard recipes put one behind a Next button. Do not downgrade a state toggle to a checkbox just because a Save button exists.
|
|
803
|
+
|
|
804
|
+
The one thing to avoid is **mixing commit models on one surface**: switches that already took effect the moment they were flipped, sitting under a Save button that implies they had not. Pick one — either the whole panel is live, or the whole form commits on submit.
|
|
805
|
+
|
|
806
|
+
A lone `BbRadio` is an escape hatch only — for a plain stacked group use `BbRadioGroup`.
|
|
807
|
+
|
|
808
|
+
---
|
|
809
|
+
|
|
810
|
+
## Buttons and Actions
|
|
811
|
+
|
|
812
|
+
| Need | Component |
|
|
813
|
+
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
|
|
814
|
+
| A single action (or link-shaped button) | [BbButton](../BbButton.md) |
|
|
815
|
+
| A clickable/navigable surface that is not a variant button (card, row, tile, custom link) | [BbBaseButton](../BbBaseButton.md) |
|
|
816
|
+
| One dominant action + close alternates | [BbDropdownButton](../BbDropdownButton.md) |
|
|
817
|
+
| Menu of actions with no dominant one | [BbDropdown](../BbDropdown.md) |
|
|
818
|
+
| Dangerous action requiring confirmation | [BbConfirm](../BbConfirm.md) + [useConfirm](../composables/useConfirm.md) |
|
|
819
|
+
|
|
820
|
+
**Choosing by intent:**
|
|
821
|
+
|
|
822
|
+
- `BbButton` — a single action, nothing else. Also a navigation trigger via `href`/`to` (see Navigation below). It is variant-first: use it when you want something that looks like a button.
|
|
823
|
+
- `BbBaseButton` — any clickable/navigable surface that is _not_ a variant button: a whole card or list row that links somewhere, or a control styled entirely by your own CSS. It carries the same navigation engine as `BbButton` (`href`/`to`/Inertia/active classes) with zero chrome. Prefer it over hand-rolling `@click="router.push(...)"` on a `<div>`/`<a>`.
|
|
824
|
+
- `BbDropdownButton` — _Save / Save as draft / Save as template_: the primary action is one tap away, alternates behind a chevron. If the "alternates" are unrelated commands, it's a plain menu.
|
|
825
|
+
- `BbDropdown` — overflow "…" menus, account menus, context menus. Declare rows through `items`; never rebuild rows, dividers, or keyboard handling in markup. When the menu is just an `items` array with no header/footer/per-item slots, attach the `v-bb-dropdown` directive to the trigger instead of importing the component (see the directive note under Overlays).
|
|
826
|
+
- Every destructive action must pass through `useConfirm` first.
|
|
827
|
+
|
|
828
|
+
---
|
|
829
|
+
|
|
830
|
+
## Feedback and Status
|
|
831
|
+
|
|
832
|
+
| Need | Component |
|
|
833
|
+
| ----------------------------------- | ----------------------------------------------------------------- |
|
|
834
|
+
| Inline persistent status message | [BbAlert](../BbAlert.md) |
|
|
835
|
+
| Transient notification (toast) | [BbToast](../BbToast.md) + [useToast](../composables/useToast.md) |
|
|
836
|
+
| Passive status pill, count, or dot | [BbBadge](../BbBadge.md) |
|
|
837
|
+
| Removable token (filter, selection) | [BbBadge](../BbBadge.md) (with `clearable`) |
|
|
838
|
+
| Clickable pill / filter chip | [BbBadge](../BbBadge.md) + `BbBadgeButton` in its default slot |
|
|
839
|
+
| Determinate progress bar | [BbProgress](../BbProgress.md) |
|
|
840
|
+
| Indeterminate loading spinner | [BbSpinner](../BbSpinner.md) |
|
|
841
|
+
|
|
842
|
+
**BbAlert vs BbToast:** `BbToast` for _what just happened_ (saved, copied, uploaded — transient, floating, self-dismissing, fired via `useToast`); `BbAlert` for _the current state of the page_ (form error summary, quota banner — in normal document flow, stays until read or dismissed).
|
|
843
|
+
|
|
844
|
+
**BbAlert has no default slot.** The body is the `text` prop (or the `#text` slot); children passed directly (`<BbAlert>some text</BbAlert>`) render nothing, silently — Vue drops an unconsumed default slot with no warning. Use `title`/`text` (or `#title`/`#text`) instead.
|
|
845
|
+
|
|
846
|
+
**BbBadge vs BbTag vs BbIndicator:** `BbTag` _creates_ tokens (an input); `BbBadge` _displays_ tokens — passive by default, removable with `clearable` (renders a clear button), and interactive when a `BbBadgeButton` is slotted into it (the body becomes a real button/link; combine with `clearable` for the press-to-edit / ×-to-remove filter chip); `BbIndicator` pins a count/dot _over_ another element.
|
|
847
|
+
|
|
848
|
+
**BbBadgeButton vs BbButton:** both are real buttons — pick by the shape the user should see. `BbButton` looks like a button (variant chrome, button sizing); `BbBadgeButton` makes a **pill** clickable, and only exists inside a `BbBadge`.
|
|
849
|
+
|
|
850
|
+
**BbProgress vs BbSpinner:** `BbProgress` is for measurable completion (`min`→`max`); passing `null` renders an empty bar, not an indeterminate animation — use `BbSpinner` for waits with no measurable end.
|
|
851
|
+
|
|
852
|
+
---
|
|
853
|
+
|
|
854
|
+
## Overlays
|
|
855
|
+
|
|
856
|
+
| Need | Component |
|
|
857
|
+
| ----------------------------------------- | -------------------------------------- |
|
|
858
|
+
| Modal dialog (one focused task) | [BbDialog](../BbDialog.md) |
|
|
859
|
+
| Side panel / drawer | [BbOffCanvas](../BbOffCanvas.md) |
|
|
860
|
+
| Yes/No confirmation dialog | [BbConfirm](../BbConfirm.md) |
|
|
861
|
+
| Anchored floating interactive content | [BbPopover](../BbPopover.md) |
|
|
862
|
+
| Hover/focus label | [BbTooltip](../BbTooltip.md) |
|
|
863
|
+
| Color picker on a trigger you own | [BbColorPalette](../BbColorPalette.md) |
|
|
864
|
+
| Date/calendar picker on a trigger you own | [BbDatePicker](../BbDatePicker.md) |
|
|
865
|
+
| Time picker on a trigger you own | [BbTimePicker](../BbTimePicker.md) |
|
|
866
|
+
|
|
867
|
+
**BbDialog vs BbOffCanvas:** `BbDialog` for one focused task the user must finish (a form, a blocking announcement) — centred, takes focus. `BbOffCanvas` for supplementary content beside the main task (filters, a record's detail panel, settings). They share the same API (v-model, `title`, `header`/`default`/`footer` slots, `size`, `persistent`), so moving between them is mostly a tag swap. A plain yes/no is `BbConfirm`, not a hand-built dialog.
|
|
868
|
+
|
|
869
|
+
**BbPopover vs BbTooltip:** `BbTooltip` is a short, non-interactive label on hover/focus — never put links, buttons, or fields in it. `BbPopover` opens on click, stays open, and supports interactive content. A standard list of actions is `BbDropdown`, not a popover.
|
|
870
|
+
|
|
871
|
+
**Prefer the directive over the component for tooltips and dropdowns.** For the common case — plain-text tooltips and menus declared from an `items` array — attach `v-bb-tooltip` / `v-bb-dropdown` directly to the element instead of importing `BbTooltip`/`BbDropdown` and wiring an `activator`. The directives are registered globally by the plugin (`injectDirectives`, on by default), so no import is needed, and they render no wrapper element. Reach for the **component** only when you need something the directive can't express: for tooltips, a markup label (default slot) or the `activator` slot's scope; for dropdowns, `header`/`footer` or per-item slots, or `<BbDropdownGroup>` companions. When you already hold an element/ref, `BbDropdown`'s `activator` **prop** gives the same no-wrapper wiring without a slot. See [BbTooltip](../BbTooltip.md) and [BbDropdown](../BbDropdown.md).
|
|
872
|
+
|
|
873
|
+
There are also **`v-bb-color`**, **`v-bb-date`**, and **`v-bb-time`** directives for the narrower case of a value picker on a bare trigger in a table cell — a color dot, a date cell, or a schedule cell — attach the directive instead of wrapping each cell in `BbColorPalette` / `BbDatePicker` / `BbTimePicker`. Unlike tooltip/dropdown this is _not_ a blanket "prefer the directive": these components (and `BbColorInput` / `BbDatePickerInput` / `BbTimePickerInput`) have a real `v-model`, so use the component for form fields; the directive is only for bare per-row triggers. A directive can't two-way bind, so write-back rides an `onUpdate:modelValue` callback in the binding value (plus `onUpdate:time` for a datetime picker). See [BbColorPalette](../BbColorPalette.md), [BbDatePicker](../BbDatePicker.md), and [BbTimePicker](../BbTimePicker.md).
|
|
874
|
+
|
|
875
|
+
---
|
|
876
|
+
|
|
877
|
+
## Navigation
|
|
878
|
+
|
|
879
|
+
| Need | Component |
|
|
880
|
+
| ------------------------------------- | ------------------------------------ |
|
|
881
|
+
| Peer views of the same screen (tabs) | [BbTabs](../BbTabs.md) |
|
|
882
|
+
| Collapsible section (accordion style) | [BbAccordion](../BbAccordion.md) |
|
|
883
|
+
| Togglable region, custom trigger | [BbCollapsible](../BbCollapsible.md) |
|
|
884
|
+
| Breadcrumb path (where am I) | [BbBreadcrumbs](../BbBreadcrumbs.md) |
|
|
885
|
+
| Pagination controls | [BbPagination](../BbPagination.md) |
|
|
886
|
+
| Hierarchical tree | [BbTree](../BbTree.md) |
|
|
887
|
+
|
|
888
|
+
**Offload navigation to the component.** `BbButton`, dropdown items, and breadcrumb items accept `href` (anchor, or Inertia visit with `method`/`data`/`preserveScroll`/…) and `to` (vue-router); tabs items accept `href`; `BbPagination` with `navigation` builds per-page links itself. Never wire `@click="router.push(...)"` for a plain destination.
|
|
889
|
+
|
|
890
|
+
**Picking the pattern:** `BbTabs` switches peer sections of _one_ subject (Overview / Activity / Settings) — not steps in a flow, not hierarchy. `BbBreadcrumbs` answers "where am I and how do I get back up". `BbPagination` steps through a paged result set — prefer it over infinite scroll when users need to find their place again.
|
|
891
|
+
|
|
892
|
+
**Disclosure ladder (BbAccordion vs BbCollapsible vs BbSmoothHeight):**
|
|
893
|
+
|
|
894
|
+
- `BbAccordion` — composed header button + collapsible body, ARIA wired for you. The default for FAQ/settings sections.
|
|
895
|
+
- `BbCollapsible` — v-model region with **no header**; you bring the trigger (inline "read more" link, toolbar toggle).
|
|
896
|
+
- `BbSmoothHeight` — no hide/show at all; only animates height changes (wizard steps, growing lists).
|
|
897
|
+
|
|
898
|
+
---
|
|
899
|
+
|
|
900
|
+
## Data Display
|
|
901
|
+
|
|
902
|
+
| Need | Component |
|
|
903
|
+
| ----------------------------- | -------------------------- |
|
|
904
|
+
| Rows of records with columns | [BbTable](../BbTable.md) |
|
|
905
|
+
| Hierarchical expandable nodes | [BbTree](../BbTree.md) |
|
|
906
|
+
| User or entity avatar | [BbAvatar](../BbAvatar.md) |
|
|
907
|
+
| Standalone SVG icon | [BbIcon](../BbIcon.md) |
|
|
908
|
+
|
|
909
|
+
**BbTable vs BbTree:** flat rows with one level of detail → `BbTable` with its `#expand` slot; genuinely recursive data of unbounded depth (file browser, nested categories) → `BbTree`. For a select-a-value list in a form, use the Selection components — not a selectable table.
|
|
910
|
+
|
|
911
|
+
Prefer icon **props** (`icon`, `prepend:icon`, item `icon`) on components over standalone `BbIcon`; reach for `BbIcon` only for iconography the design owns (status glyphs, empty states).
|
|
912
|
+
|
|
913
|
+
---
|
|
914
|
+
|
|
915
|
+
## Layout and Utility
|
|
916
|
+
|
|
917
|
+
| Need | Component |
|
|
918
|
+
| -------------------------- | -------------------------------------- |
|
|
919
|
+
| Animated height transition | [BbSmoothHeight](../BbSmoothHeight.md) |
|
|
920
|
+
|
|
921
|
+
---
|
|
922
|
+
|
|
923
|
+
## Not in this library
|
|
924
|
+
|
|
925
|
+
The 58 public `Bb*` components are the whole surface. Everything below is a
|
|
926
|
+
component agents routinely assume exists, invent a name for, and then work
|
|
927
|
+
around — usually by hand-rolling something the library already covers under a
|
|
928
|
+
different name. **If a component you want is not in the tables above, it is not
|
|
929
|
+
here.** Check this list before inventing a name; if the need is genuinely
|
|
930
|
+
absent, compose it or write it yourself.
|
|
931
|
+
|
|
932
|
+
| Assumed component | Reality |
|
|
933
|
+
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
934
|
+
| `BbColumnManager` — show/hide/reorder columns | Does not exist. Compose `BbPopover` + `BbCheckbox` and persist the ordered visible keys yourself. |
|
|
935
|
+
| `BbKanban` / drag-and-drop board | Does not exist. There is no DnD primitive in the library at all — compose the board from `BbTable` (a table/list view of the same data) or hand-roll the drag-and-drop interaction yourself. |
|
|
936
|
+
| `BbModal` | It is [BbDialog](../BbDialog.md). |
|
|
937
|
+
| `BbDrawer` / `BbSheet` | It is [BbOffCanvas](../BbOffCanvas.md). |
|
|
938
|
+
| `BbCombobox` / `BbAutocomplete` | It is [BbSelect](../BbSelect.md) / [BbSelectPopover](../BbSelectPopover.md) — search is built in, see `disable-writing`. |
|
|
939
|
+
| `BbToggle` / `BbToggleGroup` | It is [BbButton](../BbButton.md) with `v-model` (+ `true-value` / `false-value`), which owns `aria-pressed` and the active class. |
|
|
940
|
+
| `TagChip` / colored, read-only tag chip | It is [BbBadge](../BbBadge.md) — [BbTag](../BbTag.md) is a tags-_input_ only, not a display component. Use `BbBadge` with a registered `soft-*` variant for a fixed palette, or a one-off `--bg`/`--color` override per row for arbitrary/data-driven colors (BbBadge.md § One-off colors) — not a registered variant per distinct color. |
|
|
941
|
+
| `BbTab` (singular) | The consumer API is [BbTabs](../BbTabs.md) / `BbTabsRoot`. `BbTab` appears only as the **v2 "before" side** of the migration diffs. |
|
|
942
|
+
| `BbCard` | Does not exist — a card is a `<div>` with tokens. See [design-language](./design-language.md). |
|
|
943
|
+
| `BbStepper` / `BbWizard` | Does not exist as a component; the wizard-form recipe composes one. |
|
|
944
|
+
| `BbSkeleton` (standalone) | Only `BbTable` ships skeletons, via the column `skeleton` field. |
|
|
945
|
+
| `BbCommand` / command palette | Does not exist. Compose `BbDialog` + `BbSelectPopover`. |
|
|
946
|
+
| `BbCalendar` (month / scheduling view) | Does not exist. [BbDatePicker](../BbDatePicker.md) is a picker, not a calendar surface. |
|
|
947
|
+
| `BbChart` / `BbGraph`, `BbCarousel`, `BbTimeline`, `BbDivider` | Do not exist. No charting, carousel or timeline primitive ships here. |
|
|
948
|
+
|
|
949
|
+
App chrome — an app shell, sidebar, page header, selection dock — is
|
|
950
|
+
deliberately **not** a component: it is yours to own. The per-platform
|
|
951
|
+
[Layout Scaffold](../recipes/inertia/layout-scaffold.md) recipe ships the source
|
|
952
|
+
to copy.
|
|
953
|
+
|
|
954
|
+
---
|
|
955
|
+
|
|
956
|
+
## Item-Driven Components
|
|
957
|
+
|
|
958
|
+
The following components accept an `items` prop (array or async provider function) with `item-text`/`item-value` mapping. Consult the items playbooks before wiring them:
|
|
959
|
+
|
|
960
|
+
- [BbSelect](../BbSelect.md), [BbSelectPopover](../BbSelectPopover.md)
|
|
961
|
+
- [BbCheckboxGroup](../BbCheckboxGroup.md), [BbRadioGroup](../BbRadioGroup.md), [BbSwitchGroup](../BbSwitchGroup.md)
|
|
962
|
+
- [BbTable](../BbTable.md)
|
|
963
|
+
|
|
964
|
+
`BbDropdown`, `BbBreadcrumbs`, `BbTabs`, and `BbTree` are also declared through `items`, but with typed item objects (label/key/href/…) rather than arbitrary domain objects.
|
|
965
|
+
|
|
966
|
+
See:
|
|
967
|
+
|
|
968
|
+
- [Options and Items Playbook](./options-items-playbook.md)
|
|
969
|
+
- [Fetch Data Items Playbook](./fetch-items-playbook.md)
|
|
970
|
+
- [Coherence Playbook](./coherence-playbook.md)
|
|
971
|
+
|
|
972
|
+
---
|
|
973
|
+
|
|
974
|
+
<!-- dist/ai/guides/design-language.md -->
|
|
975
|
+
<!-- https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/ai/guides/design-language.md -->
|
|
976
|
+
|
|
977
|
+
# Design Language
|
|
978
|
+
|
|
979
|
+
How to make anything built with `bitboss-ui` look like it belongs to the same
|
|
980
|
+
product. Follow these rules whenever you write custom CSS next to the
|
|
981
|
+
components or choose component variants.
|
|
982
|
+
|
|
983
|
+
## Hard Rules
|
|
984
|
+
|
|
985
|
+
1. **Never hardcode colors** in custom CSS around components. Use the `--bb-*`
|
|
986
|
+
custom properties below so your surfaces follow theme and dark mode.
|
|
987
|
+
2. **Never override component internals** (`.bb-*__*` element classes) from
|
|
988
|
+
consumer code. Restyle via tokens, variants, or documented props — the only
|
|
989
|
+
exceptions are extension points a component's own doc sanctions.
|
|
990
|
+
3. **One primary action per view region.** Everything else is `secondary`,
|
|
991
|
+
`outline`, or `ghost`.
|
|
992
|
+
4. **`destructive` is only for irreversible actions**, and destructive flows
|
|
993
|
+
must go through `useConfirm` first.
|
|
994
|
+
5. **Respect the radius**: use `var(--bb-radius)` for any custom container that
|
|
995
|
+
sits next to components; do not invent new corner radii.
|
|
996
|
+
|
|
997
|
+
## How to style around the library
|
|
998
|
+
|
|
999
|
+
Three lanes, in order of preference:
|
|
1000
|
+
|
|
1001
|
+
1. **Component look → props.** Pick a variant, `size`, `compact`. Never write
|
|
1002
|
+
CSS to make a component look different.
|
|
1003
|
+
2. **Page layout & spacing → Tailwind utilities** (or your project's
|
|
1004
|
+
equivalent) on your own wrapper elements — `flex items-end gap-3`,
|
|
1005
|
+
`grid gap-6`, `max-w-3xl`. Components size themselves; you only place them.
|
|
1006
|
+
3. **Genuinely custom visuals → `--bb-*` tokens.** The few CSS rules that
|
|
1007
|
+
remain (a custom panel, a status dot) use theme tokens so they follow
|
|
1008
|
+
theming and dark mode automatically.
|
|
1009
|
+
|
|
1010
|
+
Treat everything inside a component as private API. Where a component is
|
|
1011
|
+
designed to be extended visually, its own doc names the extension point —
|
|
1012
|
+
[BbTree](../BbTree.md) has you draw connector lines in consumer CSS anchored
|
|
1013
|
+
to its `--indent`/`--gap` tokens; [BbTabs](../BbTabs.md) exposes `--list-h`.
|
|
1014
|
+
Read the per-component doc before writing any CSS that mentions a `.bb-`
|
|
1015
|
+
class.
|
|
1016
|
+
|
|
1017
|
+
## Token Vocabulary
|
|
1018
|
+
|
|
1019
|
+
All theme tokens are CSS custom properties defined on `:root` (imported via
|
|
1020
|
+
`bitboss-ui/styles.css`). One name per token — `.dark` re-declares the knobs
|
|
1021
|
+
that change and everything derived follows. The full architecture (tiers,
|
|
1022
|
+
naming rules, the emphasis ladder) lives in
|
|
1023
|
+
[design-tokens.md](./design-tokens.md); this is the consumer summary.
|
|
1024
|
+
|
|
1025
|
+
### Surfaces & structure
|
|
1026
|
+
|
|
1027
|
+
| Token | Meaning |
|
|
1028
|
+
| --------------------- | ----------------------------------------------------------------- |
|
|
1029
|
+
| `--bb-panel` | Surface/background color of panels, popovers, dialogs |
|
|
1030
|
+
| `--bb-muted` | Subtle/disabled surface (derived, neutral) |
|
|
1031
|
+
| `--bb-hover` | Hover fill for **affordances** (buttons, links, controls) |
|
|
1032
|
+
| `--bb-surface-hover` | Hover fill for **passive surfaces** (rows, cells, days) — fainter |
|
|
1033
|
+
| `--bb-pressed` | Neutral pressed/active fill |
|
|
1034
|
+
| `--bb-border` | Border color; pair with `--bb-border-w` (1px) |
|
|
1035
|
+
| `--bb-radius` | Corner radius of controls (8px) |
|
|
1036
|
+
| `--bb-radius-surface` | Corner radius of large surfaces (derived, ×1.8) |
|
|
1037
|
+
| `--bb-radius-sm` | Corner radius of small nested elements (derived) |
|
|
1038
|
+
| `--bb-shadow` | Global elevation shadow |
|
|
1039
|
+
| `--bb-panel-p` | Content padding of large surfaces (dialog, off-canvas) |
|
|
1040
|
+
| `--bb-z-overlay` | Z-index for overlays (10) |
|
|
1041
|
+
|
|
1042
|
+
### Color semantics
|
|
1043
|
+
|
|
1044
|
+
| Token | Meaning |
|
|
1045
|
+
| ------------------ | ------------------------------------------------------------------ |
|
|
1046
|
+
| `--bb-primary` | Brand/primary accent (black in light, white in dark by default) |
|
|
1047
|
+
| `--bb-primary-fg` | Foreground on primary surfaces |
|
|
1048
|
+
| `--bb-danger` | Errors and destructive intent |
|
|
1049
|
+
| `--bb-warn` | Warning **input state** (`hasWarning`) — amber, ranks below danger |
|
|
1050
|
+
| `--bb-text` | Global text color |
|
|
1051
|
+
| `--bb-text-muted` | Secondary text, hints, placeholders, icons (derived) |
|
|
1052
|
+
| `--bb-text-faint` | Disabled foregrounds (derived) |
|
|
1053
|
+
| `--bb-ring` | Focus ring color (derived from primary) |
|
|
1054
|
+
| `--bb-ring-danger` | Focus ring in error states (derived from danger) |
|
|
1055
|
+
| `--bb-ring-warn` | Focus ring in the warning input state (derived from `--bb-warn`) |
|
|
1056
|
+
|
|
1057
|
+
Rule of thumb: **hover/pressed chrome is neutral; primary tint means
|
|
1058
|
+
selected.** Never build a hover state from `--bb-primary` — use `--bb-hover`
|
|
1059
|
+
so themes with loud brand colors keep gray chrome.
|
|
1060
|
+
|
|
1061
|
+
### Scale
|
|
1062
|
+
|
|
1063
|
+
| Token | Meaning |
|
|
1064
|
+
| ---------------- | -------------------------------------------------------- |
|
|
1065
|
+
| `--bb-control-h` | Master control height (32px); inputs/buttons/tabs derive |
|
|
1066
|
+
| `--bb-fs` | Master font size (14px); component sizes derive |
|
|
1067
|
+
|
|
1068
|
+
### Motion
|
|
1069
|
+
|
|
1070
|
+
| Token | Meaning |
|
|
1071
|
+
| ------------------------ | --------------------------------------------- |
|
|
1072
|
+
| `--bb-transition-fast` | 150ms — micro-interactions |
|
|
1073
|
+
| `--bb-transition-medium` | 250ms — overlays, most components |
|
|
1074
|
+
| `--bb-transition-slow` | 350ms — large consumer surfaces |
|
|
1075
|
+
| `--bb-ease` | The single easing curve; do not invent others |
|
|
1076
|
+
|
|
1077
|
+
Input-family tokens also exist (`--bb-input-h`, `--bb-input-px`,
|
|
1078
|
+
`--bb-label-fs`…) — see design-tokens.md. Component-specific tokens are
|
|
1079
|
+
**unprefixed** and defined on each component's root class (e.g. BbTabs'
|
|
1080
|
+
`--list-h`); override them per instance or at a scope to retune a whole area
|
|
1081
|
+
coherently instead of styling individual components.
|
|
1082
|
+
|
|
1083
|
+
## Dark Mode
|
|
1084
|
+
|
|
1085
|
+
Adding the `dark` class on `<html>` or any ancestor flips every token. There
|
|
1086
|
+
is no JS involved. Custom consumer CSS that uses tokens gets dark mode for
|
|
1087
|
+
free; custom CSS with hardcoded colors breaks it — which is why Hard Rule 1
|
|
1088
|
+
exists.
|
|
1089
|
+
|
|
1090
|
+
To crossfade instead of switching instantly, add `theme-animated` to the
|
|
1091
|
+
**same element** that carries the scheme class
|
|
1092
|
+
(`<html class="dark theme-animated">`) — the color knobs are typed with
|
|
1093
|
+
`@property`, so they interpolate and everything derived follows.
|
|
1094
|
+
|
|
1095
|
+
## Variants
|
|
1096
|
+
|
|
1097
|
+
Variant names are typed per family. Built-in sets:
|
|
1098
|
+
|
|
1099
|
+
| Family | Built-in variants |
|
|
1100
|
+
| ---------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
1101
|
+
| `BbButton` / `BbDropdownButton` | `primary` `secondary` `outline` `ghost` `destructive` `link` (+ `none` unstyled escape hatch) |
|
|
1102
|
+
| `BbBadge` | `primary` `secondary` `outline` `ghost` `destructive` |
|
|
1103
|
+
| `BbAlert` | `primary` `outline` `destructive` `warning` |
|
|
1104
|
+
| `BbToast` / `useToast` | `default` `success` `info` `warning` `destructive` |
|
|
1105
|
+
| `BbConfirm` / `useConfirm`, dropdown items, tooltips | `default` `destructive` |
|
|
1106
|
+
|
|
1107
|
+
What the shared names mean (shadcn-style vocabulary):
|
|
1108
|
+
|
|
1109
|
+
| Variant | Use for |
|
|
1110
|
+
| ------------- | ---------------------------------------------- |
|
|
1111
|
+
| `primary` | The single main action of a view region |
|
|
1112
|
+
| `secondary` | Supporting actions |
|
|
1113
|
+
| `outline` | Neutral actions on busy surfaces |
|
|
1114
|
+
| `ghost` | Low-emphasis, inline, or icon-only actions |
|
|
1115
|
+
| `destructive` | Irreversible/dangerous actions (confirm first) |
|
|
1116
|
+
| `link` | Navigation disguised as text (buttons only) |
|
|
1117
|
+
| `none` | Unstyled escape hatch — avoid |
|
|
1118
|
+
|
|
1119
|
+
Projects can register extra variants through the Vite/Nuxt plugin
|
|
1120
|
+
(`buttonVariants`, `badgeVariants`, `alertVariants`, `confirmVariants`,
|
|
1121
|
+
`dropdownItemVariants`, `tooltipVariants`, `toastVariants` options).
|
|
1122
|
+
Registered names become typed values, but the library ships no CSS for them —
|
|
1123
|
+
the project styles `.bb-button--<name>` (etc.) itself, following the state
|
|
1124
|
+
recipe in [design-tokens.md](./design-tokens.md).
|
|
1125
|
+
Never invent a variant name that is not built-in or registered in the
|
|
1126
|
+
project's plugin config — check `vite.config.*` / `nuxt.config.*` first.
|
|
1127
|
+
|
|
1128
|
+
## Using color
|
|
1129
|
+
|
|
1130
|
+
**Reach for color more than the monochrome default suggests — but make it mean
|
|
1131
|
+
something.** A calm, mostly-neutral surface with a few deliberate spots of color
|
|
1132
|
+
reads as modern and confident; color sprinkled for decoration reads as noise.
|
|
1133
|
+
Add color for one of three reasons, never for prettiness:
|
|
1134
|
+
|
|
1135
|
+
1. **Semantic status** — `info`, `success`, `warning`, `error/danger`. A build
|
|
1136
|
+
passed, a payment failed, a token is low.
|
|
1137
|
+
2. **State** — selected / active / dirty / pending / just-changed. Color is a
|
|
1138
|
+
fast, pre-verbal "this updated."
|
|
1139
|
+
3. **Differentiating a small, closed set** — a few statuses, priorities, or
|
|
1140
|
+
categories the eye should tell apart at a glance. Only when the set is small
|
|
1141
|
+
and fixed; a per-row rainbow of unique colors is noise, not signal.
|
|
1142
|
+
|
|
1143
|
+
Keep it **soft and calm**:
|
|
1144
|
+
|
|
1145
|
+
- **Chrome stays neutral.** Hover, pressed, and focus chrome use
|
|
1146
|
+
`--bb-hover`/`--bb-pressed`/`--bb-ring`; selection uses the primary tint (the
|
|
1147
|
+
existing rule). Semantic color goes on the **content** — a status dot, a soft
|
|
1148
|
+
badge, a tinted alert — not on interactive chrome. This is what keeps color
|
|
1149
|
+
from feeling jarring.
|
|
1150
|
+
- **Prefer soft tints over saturated fills** on anything bigger than a dot. The
|
|
1151
|
+
library's own recipe is `color-mix(in oklab, <hue> ~10–15%, var(--bb-panel))`
|
|
1152
|
+
for the fill with the hue itself as text — exactly how `--bb-destructive` is
|
|
1153
|
+
built. Mixing toward `--bb-panel` keeps it theme- and dark-mode-aware. Small
|
|
1154
|
+
dots may be saturated.
|
|
1155
|
+
- **One primary action per region still holds.** Semantic color is not a licence
|
|
1156
|
+
for five loud buttons.
|
|
1157
|
+
- **Never color as the _only_ signal.** Pair it with text or an icon — color
|
|
1158
|
+
alone fails color-blind users and Hard Rule territory.
|
|
1159
|
+
|
|
1160
|
+
### What carries semantic color today (use these first)
|
|
1161
|
+
|
|
1162
|
+
| Need | Reach for |
|
|
1163
|
+
| --------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
|
1164
|
+
| A status marker next to a label/row | **BbIndicator** dot — `default` / `success` / `info` / `warning` / `destructive` |
|
|
1165
|
+
| A persistent message | **BbAlert** — `primary` / `outline` / `warning` / `destructive` (soft tints) |
|
|
1166
|
+
| Transient feedback | **BbToast** / `useToast` — `default` / `success` / `info` / `warning` / `destructive` |
|
|
1167
|
+
| A removable/error tag | **BbBadge** `destructive` (soft); neutral tags use `secondary` / `outline` |
|
|
1168
|
+
| A form field that needs attention but isn't invalid | any form control's **`warnings`** / **`hasWarning`** props — see below |
|
|
1169
|
+
|
|
1170
|
+
### Meters, ramps, gauges — the project owns every hue (ruled 2026-07-30)
|
|
1171
|
+
|
|
1172
|
+
The library ships **no** status-color vocabulary beyond `--bb-danger` and
|
|
1173
|
+
`--bb-warn` (which exist for its own error/warning states), and it never will —
|
|
1174
|
+
no `--bb-success`, no `--bb-good`, no graded ramps. So when a design needs
|
|
1175
|
+
multi-step color — a password-strength meter, a health score, an SLA bar, a
|
|
1176
|
+
capacity gauge — the palette is **project CSS, minted by you**, exactly like
|
|
1177
|
+
the soft badge palette below: local custom properties (`--accent`-style hues,
|
|
1178
|
+
mixed toward theme tokens with `color-mix(in oklab, …)` so they stay
|
|
1179
|
+
dark-mode-aware), applied through the component's CSS hooks — e.g.
|
|
1180
|
+
`BbProgress`'s `--fill`. Reusing `--bb-danger` / `--bb-warn` for the low end of
|
|
1181
|
+
a ramp is fine if the project chooses to — they are ordinary custom properties —
|
|
1182
|
+
but that choice, and its contrast, belongs to the project. Do not wait for, or
|
|
1183
|
+
invent, a library token for the positive end: there isn't one, by ruling.
|
|
1184
|
+
|
|
1185
|
+
### Warning input state
|
|
1186
|
+
|
|
1187
|
+
Every form control (`BbTextInput`, `BbTextarea`, `BbSelect`, `BbNumberInput`,
|
|
1188
|
+
`BbColorInput`, the date/time pickers, `BbSlider`, `BbRating`, `BbTag`,
|
|
1189
|
+
`BbCheckbox`/`BbRadio`/their groups, `BbDropzone`, …) exposes a warning state
|
|
1190
|
+
that mirrors the error state exactly — two props, parallel to `errors` /
|
|
1191
|
+
`hasErrors`:
|
|
1192
|
+
|
|
1193
|
+
- **`warnings`** (string | string[]) — one or more messages rendered below the
|
|
1194
|
+
field in their own `aria-live="polite"` region, in amber, and referenced from
|
|
1195
|
+
the control's `aria-describedby` while displayed (after any `errors`). A non-empty
|
|
1196
|
+
`warnings` **implies the warning state** (just as `errors` implies the error
|
|
1197
|
+
state), so you rarely set `hasWarning` by hand.
|
|
1198
|
+
- **`hasWarning`** (boolean) — forces the warning chrome without a message, to
|
|
1199
|
+
pre-style a field.
|
|
1200
|
+
|
|
1201
|
+
Either way the field gets the **same chrome as the error state** — tinted border
|
|
1202
|
+
and focus ring, a warning icon in the append stack — but in amber (`--bb-warn` /
|
|
1203
|
+
`--bb-ring-warn`) instead of danger red.
|
|
1204
|
+
|
|
1205
|
+
Use it for a field that is valid but deserves a second look — a value that is
|
|
1206
|
+
unusual, near a limit, or soft-flagged — where a hard error (which also sets
|
|
1207
|
+
`aria-invalid` and blocks submit-shaped flows) would overstate the problem.
|
|
1208
|
+
|
|
1209
|
+
- **Errors win when both are set** — a field is never amber and red at once. The
|
|
1210
|
+
error chrome takes over and the warning **messages are suppressed** (the
|
|
1211
|
+
`warnings` region collapses to zero height); show `errors` and `warnings`
|
|
1212
|
+
together and the user sees only the errors.
|
|
1213
|
+
- Unlike `errors`, `warnings` do **not** set `aria-invalid` — it's a soft "needs
|
|
1214
|
+
a second look" state, not an invalid one.
|
|
1215
|
+
- It is a **field state**, not the badge/button `warning` _variant_ (those stay
|
|
1216
|
+
locked — see [the sanctioned custom-variant path](#getting-soft-semantic-badges-the-sanctioned-custom-variant-path)).
|
|
1217
|
+
- Prefer `warnings` (which carries its own text) over bare `hasWarning` + a
|
|
1218
|
+
`hint` — color alone is never the only signal. `warnings` are announced the
|
|
1219
|
+
moment they appear (live region) **and** re-read on focus (`aria-describedby`,
|
|
1220
|
+
ahead of the hint); a `hint` only ever reads as static description.
|
|
1221
|
+
|
|
1222
|
+
```vue
|
|
1223
|
+
<!-- valid, but worth flagging — amber message, no aria-invalid, no submit block -->
|
|
1224
|
+
<BbTextInput
|
|
1225
|
+
v-model="rate"
|
|
1226
|
+
label="Discount"
|
|
1227
|
+
:warnings="rate > 50 ? 'That is an unusually large discount.' : undefined"
|
|
1228
|
+
/>
|
|
1229
|
+
```
|
|
1230
|
+
|
|
1231
|
+
### Badges label state; buttons are actions
|
|
1232
|
+
|
|
1233
|
+
A **badge is the right affordance for a status/state marker** — not a `BbButton`,
|
|
1234
|
+
which is a distinct affordance (an action to perform). When a status marker must
|
|
1235
|
+
also be **clickable** (opens an editor, filters a list), slot a
|
|
1236
|
+
**`BbBadgeButton`** into the badge. The badge body becomes a real button in
|
|
1237
|
+
place, so the pill _is_ the control:
|
|
1238
|
+
|
|
1239
|
+
```vue
|
|
1240
|
+
<BbBadge variant="soft-green" append:icon="lucide:chevron-down">
|
|
1241
|
+
<BbBadgeButton v-bind="activatorProps">Done</BbBadgeButton>
|
|
1242
|
+
</BbBadge>
|
|
1243
|
+
```
|
|
1244
|
+
|
|
1245
|
+
Do **not** wrap the badge in an outer `BbBaseButton` to achieve this (the v2
|
|
1246
|
+
habit). It nests the interactive element outside the pill, so the hit area and
|
|
1247
|
+
the focus ring disagree with the visual boundary, and on a `clearable` badge it
|
|
1248
|
+
nests a button inside a button — invalid markup. `BbBadgeButton` has full
|
|
1249
|
+
`BbBaseButton` parity (`href`/`to`, Inertia, `disabled`, …), so nothing is lost
|
|
1250
|
+
by moving the interaction inside.
|
|
1251
|
+
|
|
1252
|
+
The badge owns the color, meaning and chrome; the companion owns the
|
|
1253
|
+
interaction and the focus ring is drawn on the whole pill for you — no
|
|
1254
|
+
`.my-trigger` class needed. Signal changeability with an **internal** trailing chevron
|
|
1255
|
+
(`append:icon` on the badge itself) — not a prepend icon and not a separate caret
|
|
1256
|
+
sitting outside the badge. Make the editable badge a **self-contained component**
|
|
1257
|
+
with an `editable` prop that hosts its own picker — don't split "button" and
|
|
1258
|
+
"badge" into two components at the call site. While the picked value saves, set
|
|
1259
|
+
the badge's `loading` prop: the spinner takes the chevron's place (same size,
|
|
1260
|
+
nothing shifts) — and in button mode it lands inside the hit target, so the
|
|
1261
|
+
control never changes shape. Shipped references: the BbTable guide's
|
|
1262
|
+
inline-editing example ([BbTable](../BbTable.md)) and the
|
|
1263
|
+
[Inline Edit Playbook](./inline-edit-playbook.md); in-repo live reference:
|
|
1264
|
+
`src/dev/inline-edit/` — `StatusBadge.vue`, `PriorityBadge.vue`, `AssigneeBadge.vue`
|
|
1265
|
+
(each a plain badge when not `editable`, a clickable picker when it is). Those
|
|
1266
|
+
three still use the older wrap-in-`BbBaseButton` form and predate
|
|
1267
|
+
`BbBadgeButton`; follow the snippet above, not their activator markup.
|
|
1268
|
+
|
|
1269
|
+
### Getting soft semantic badges (the sanctioned custom-variant path)
|
|
1270
|
+
|
|
1271
|
+
`BbButton` and `BbBadge` ship **no** `success` / `info` / `warning` variants.
|
|
1272
|
+
The only shared status token besides `--bb-danger` is `--bb-warn`, and it is
|
|
1273
|
+
**not** a variant vocabulary — it colors the [warning input state](#warning-input-state)
|
|
1274
|
+
(the `hasWarning` prop) and nothing else. There is still **no `--bb-success` /
|
|
1275
|
+
`--bb-info` token**, and BbIndicator hardcodes its status hues. So:
|
|
1276
|
+
|
|
1277
|
+
- **Do not** write `variant="success"` on a badge or button, or invent
|
|
1278
|
+
`bb-badge--warning`, **without registering it first** — an unregistered name
|
|
1279
|
+
type-errors now, and before the registries existed it shipped no CSS at all
|
|
1280
|
+
(the real "warning badge" hallucination that rendered an unstyled pill).
|
|
1281
|
+
- **Do** register the name via the plugin (`badgeVariants` / `buttonVariants`),
|
|
1282
|
+
then style `.bb-badge--<name>` in a **project stylesheet kept separate from the
|
|
1283
|
+
library defaults** — the plugin makes the name type-check; you own its CSS.
|
|
1284
|
+
Follow the soft recipe above. That is the permanent path — a first-class
|
|
1285
|
+
semantic set (`success`/`info`/`warning` variants) was considered and
|
|
1286
|
+
rejected (DECISIONS §C 18b): shadcn carries no such vocabulary, and neither
|
|
1287
|
+
do we.
|
|
1288
|
+
|
|
1289
|
+
**"Locked" means typed, not closed — and registering is part of the job.** The
|
|
1290
|
+
registries are open by design so each app owns its own tones. If the page you
|
|
1291
|
+
are writing needs a status palette and the project has not registered one yet,
|
|
1292
|
+
**add it**: the plugin option and the stylesheet block below are the whole
|
|
1293
|
+
change, and both belong in the answer. Do not settle for `secondary`/`outline`
|
|
1294
|
+
because the palette "isn't available" — that silently drops the design intent
|
|
1295
|
+
(three statuses that must be told apart at a glance become three grey pills).
|
|
1296
|
+
Just don't do half of it: a registered name with no CSS is the unstyled-pill
|
|
1297
|
+
bug, and CSS with no registration fails `vue-tsc`.
|
|
1298
|
+
|
|
1299
|
+
#### The soft status palette (canonical)
|
|
1300
|
+
|
|
1301
|
+
This is the palette to reach for when a design needs semantic status colors on
|
|
1302
|
+
badges — in examples, recipes, and real apps alike. Five accents, one shared
|
|
1303
|
+
soft treatment. It mirrors `BbIndicator`'s built-in status hues, plus a slate
|
|
1304
|
+
neutral the indicator doesn't have:
|
|
1305
|
+
|
|
1306
|
+
| Variant | Accent | Means | Mirrors |
|
|
1307
|
+
| ------------ | --------- | --------------------------- | ----------------------------------- |
|
|
1308
|
+
| `soft-gray` | `#64748b` | neutral / idle / paused | — (slate; no indicator counterpart) |
|
|
1309
|
+
| `soft-blue` | `#2563eb` | active / in progress / info | `BbIndicator` `info` |
|
|
1310
|
+
| `soft-green` | `#16a34a` | success / done | `BbIndicator` `success` |
|
|
1311
|
+
| `soft-amber` | `#d97706` | attention / high / pending | `BbIndicator` `warning` |
|
|
1312
|
+
| `soft-red` | `#dc2626` | danger / blocked / failed | `BbIndicator` `destructive` |
|
|
1313
|
+
|
|
1314
|
+
Register the names in the plugin config, then drop this block into your project
|
|
1315
|
+
stylesheet (this section is the canonical source — copies elsewhere point back
|
|
1316
|
+
here):
|
|
1317
|
+
|
|
1318
|
+
```css
|
|
1319
|
+
/* Per-variant accent — the one project-chosen hue each soft variant mixes from.
|
|
1320
|
+
Only the library mints `--bb-*` tokens, so the hue lives in a local
|
|
1321
|
+
`--accent`; everything derived mixes toward theme tokens, which keeps every
|
|
1322
|
+
variant dark-mode-aware with no `.dark` overrides. */
|
|
1323
|
+
.bb-badge.bb-badge--soft-gray {
|
|
1324
|
+
--accent: #64748b;
|
|
1325
|
+
}
|
|
1326
|
+
.bb-badge.bb-badge--soft-blue {
|
|
1327
|
+
--accent: #2563eb;
|
|
1328
|
+
}
|
|
1329
|
+
.bb-badge.bb-badge--soft-green {
|
|
1330
|
+
--accent: #16a34a;
|
|
1331
|
+
}
|
|
1332
|
+
.bb-badge.bb-badge--soft-amber {
|
|
1333
|
+
--accent: #d97706;
|
|
1334
|
+
}
|
|
1335
|
+
.bb-badge.bb-badge--soft-red {
|
|
1336
|
+
--accent: #dc2626;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/* Shared soft treatment — reads the local --accent set above. Percentages sit
|
|
1340
|
+
on the emphasis ladder (see design-tokens.md). */
|
|
1341
|
+
.bb-badge.bb-badge--soft-gray,
|
|
1342
|
+
.bb-badge.bb-badge--soft-blue,
|
|
1343
|
+
.bb-badge.bb-badge--soft-green,
|
|
1344
|
+
.bb-badge.bb-badge--soft-amber,
|
|
1345
|
+
.bb-badge.bb-badge--soft-red {
|
|
1346
|
+
--bg: color-mix(in oklab, var(--accent) 15%, var(--bb-panel));
|
|
1347
|
+
--color: color-mix(in oklab, var(--accent) 80%, var(--bb-text));
|
|
1348
|
+
--border-width: 1px;
|
|
1349
|
+
--border-color: color-mix(in oklab, var(--accent) 25%, var(--bb-panel));
|
|
1350
|
+
--ring: color-mix(in oklab, var(--accent) 45%, transparent);
|
|
1351
|
+
}
|
|
1352
|
+
```
|
|
1353
|
+
|
|
1354
|
+
Two gotchas the block already encodes:
|
|
1355
|
+
|
|
1356
|
+
- **Selectors are doubled (`.bb-badge.bb-badge--x`) on purpose.** The built-in
|
|
1357
|
+
variants compile to 2-class specificity (they're nested under `.bb-badge`), so
|
|
1358
|
+
a flat `.bb-badge--x` would tie the base `.bb-badge { --bg }` rule and lose on
|
|
1359
|
+
injection order. Match their specificity and this layer wins.
|
|
1360
|
+
- **The accent hex is the project's own hue, held in a local `--accent`** — it
|
|
1361
|
+
is not a `--bb-*` token and must not become one (Hard Rule 1: only the library
|
|
1362
|
+
mints those). Everything derived mixes toward `--bb-panel` / `--bb-text`, so
|
|
1363
|
+
themes and dark mode keep working for free.
|
|
1364
|
+
|
|
1365
|
+
## Sizing
|
|
1366
|
+
|
|
1367
|
+
The named scale is `xs | sm | md | lg | xl | 2xl`. It applies to `BbButton` /
|
|
1368
|
+
`BbDropdownButton`, `BbBadge`, `BbIndicator`, `BbDialog`, and `BbOffCanvas`
|
|
1369
|
+
(off-canvas adds `'auto'`; dialog and off-canvas also accept a CSS length
|
|
1370
|
+
string or pixel number as escape hatch). Buttons, dialogs, and off-canvas
|
|
1371
|
+
also accept a responsive record keyed by breakpoint, e.g.
|
|
1372
|
+
`:size="{ default: 'sm', lg: 'md' }"`. Rules:
|
|
1373
|
+
|
|
1374
|
+
- Stay on the named scale; use numeric/custom CSS sizes only when a named
|
|
1375
|
+
preset genuinely cannot work.
|
|
1376
|
+
- **Buttons prefer `md`** — the default (28px, one step under the 32px
|
|
1377
|
+
input height). `md` is exactly the height of a `compact` input, so an
|
|
1378
|
+
`md` button sits flush beside compact fields in a filter bar or inline
|
|
1379
|
+
form. Since it's the default, idiomatic code omits the `size` prop.
|
|
1380
|
+
Reach for `sm`/`xs` only inside genuinely dense surfaces — table row
|
|
1381
|
+
actions, toolbars, bulk-action bars — and for `lg`+ only on a rare hero
|
|
1382
|
+
action.
|
|
1383
|
+
- Keep pages compact through **density, not button shrinking**: tight gaps
|
|
1384
|
+
and the `compact` boolean, not `size="sm"` everywhere.
|
|
1385
|
+
- Form controls have no `size` prop — they all share `--bb-control-h`. Density
|
|
1386
|
+
is the `compact` boolean, shared by the whole input family plus `BbTable`
|
|
1387
|
+
and `BbTabs`; use it together across a whole view, not on single
|
|
1388
|
+
components.
|
|
1389
|
+
|
|
1390
|
+
## Adaptive Behavior
|
|
1391
|
+
|
|
1392
|
+
Surface components (`BbDialog`, `BbPopover`, `BbDropdown`, `BbSelect`,
|
|
1393
|
+
`BbSelectPopover`…) accept an `adaptive` prop: on mobile viewports the surface
|
|
1394
|
+
renders as a bottom sheet (`BbOffCanvas`) instead of a floating
|
|
1395
|
+
popover/dialog. The global default comes from the plugin config
|
|
1396
|
+
(`config.adaptive`); the prop overrides it per component. Guidance:
|
|
1397
|
+
|
|
1398
|
+
- Leave `adaptive` unset unless the user asks otherwise — the project default
|
|
1399
|
+
is usually right.
|
|
1400
|
+
- If you set it, set it deliberately per surface, not globally in a page.
|
|
1401
|
+
|
|
1402
|
+
## Layout
|
|
1403
|
+
|
|
1404
|
+
The library deliberately ships **no layout primitives** (no grid, container,
|
|
1405
|
+
or stack components). Compose pages with plain CSS flex/grid in consumer code,
|
|
1406
|
+
using tokens for anything visual:
|
|
1407
|
+
|
|
1408
|
+
```css
|
|
1409
|
+
.page__filters {
|
|
1410
|
+
display: flex;
|
|
1411
|
+
gap: 12px;
|
|
1412
|
+
flex-wrap: wrap;
|
|
1413
|
+
align-items: flex-end;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.page__card {
|
|
1417
|
+
background: var(--bb-panel);
|
|
1418
|
+
border: var(--bb-border-w) solid var(--bb-border);
|
|
1419
|
+
border-radius: var(--bb-radius);
|
|
1420
|
+
box-shadow: var(--bb-shadow);
|
|
1421
|
+
}
|
|
1422
|
+
```
|
|
1423
|
+
|
|
1424
|
+
### Guide helper: `.plain-link`
|
|
1425
|
+
|
|
1426
|
+
Recipe fixtures define a project-owned `.plain-link` class (not a library
|
|
1427
|
+
variant) for inline text links in tables, peeks, and property grids. Pair it
|
|
1428
|
+
with `BbBaseButton` so there is no button chrome — faint underline at rest,
|
|
1429
|
+
`currentColor` underline on hover/focus:
|
|
1430
|
+
|
|
1431
|
+
```vue
|
|
1432
|
+
<BbBaseButton class="plain-link" @click="peekInvoice(item.id)">
|
|
1433
|
+
{{ item.number }}
|
|
1434
|
+
</BbBaseButton>
|
|
1435
|
+
```
|
|
1436
|
+
|
|
1437
|
+
Do not use `BbButton` `ghost`/`link` for those cells; reserve those variants for
|
|
1438
|
+
real actions and chrome buttons.
|
|
1439
|
+
|
|
1440
|
+
Spacing convention: use multiples of 4px, favoring 8/12/16/24 gaps. Form
|
|
1441
|
+
fields stack with 16px gaps; sections separate with 24px.
|
|
1442
|
+
|
|
1443
|
+
## Typography
|
|
1444
|
+
|
|
1445
|
+
Component typography is token-driven (`--bb-fs`: 14px, from which
|
|
1446
|
+
`--bb-label-fs` and `--bb-input-fs` derive). For consumer text next to
|
|
1447
|
+
components: 14px body in data-dense UIs, `--bb-text-muted` for secondary
|
|
1448
|
+
text, `--bb-label-weight`
|
|
1449
|
+
(500) for emphasis. Don't introduce new font sizes below 12px.
|
|
1450
|
+
|
|
1451
|
+
---
|
|
1452
|
+
|
|
1453
|
+
## Component catalogue
|
|
1454
|
+
|
|
1455
|
+
Every public component. Open one contract at `https://cdn.jsdelivr.net/npm/bitboss-ui@alpha/dist/ai/<Name>.md` before using it — never guess a prop name.
|
|
1456
|
+
|
|
1457
|
+
- **BbAccordion** — Expands and collapses a content panel.
|
|
1458
|
+
- **BbAlert** — Shows contextual status messages.
|
|
1459
|
+
- **BbAsterisk** — Presentational required-field marker (red "*"). No props/slots/events; placed in custom label content.
|
|
1460
|
+
- **BbAvatar** — Displays an avatar and has a fallback content slot.
|
|
1461
|
+
- **BbBadge** — Displays compact status counters or labels, the floating mode acts as notification dot.
|
|
1462
|
+
- **BbBadgeButton** — Makes a badge's body interactive: slotted as a direct child of BbBadge it renders the badge body as a real button/link with full BbBaseButton parity, leaving `clearable` free to remain a separate control.
|
|
1463
|
+
- **BbBaseButton** — Unstyled button/link primitive: element resolution (button/anchor/router link) and the full navigation engine, with no visual chrome. Use for any clickable or navigable surface that is not a variant-first BbButton — cards, list rows, custom links.
|
|
1464
|
+
- **BbBaseCheckboxIcon** — Standalone checkbox glyph (box + checkmark SVG). Presentational only — no input, no events. Compose it into a fully custom checkbox design, or let BbCheckbox/BbBaseCheckbox render it.
|
|
1465
|
+
- **BbBaseRadioIcon** — Standalone radio glyph (ring + dot). Presentational only — no input, no events. Compose it into a fully custom radio design, or let BbRadio/BbBaseRadio render it.
|
|
1466
|
+
- **BbBaseSwitchIcon** — Standalone switch glyph (track + thumb). Presentational only — no input, no events. Compose it into a fully custom switch design, or let BbSwitch/BbBaseSwitch render it.
|
|
1467
|
+
- **BbBreadcrumbs** — Renders hierarchical navigation paths.
|
|
1468
|
+
- **BbButton** — Button with loading state, tooltip, and icon support.
|
|
1469
|
+
- **BbCheckbox** — Toggles a single boolean option.
|
|
1470
|
+
- **BbCheckboxGroup** — Manages multiple checkbox options as a group.
|
|
1471
|
+
- **BbCollapsible** — Toggles visibility of collapsible content blocks.
|
|
1472
|
+
- **BbColorInput** — Captures color values through input controls.
|
|
1473
|
+
- **BbColorPalette** — Opens an anchored popover color palette for color picking interactions.
|
|
1474
|
+
- **BbConfirm** — Prompts users to confirm or cancel critical actions (includes co-located BbConfirmPortal export).
|
|
1475
|
+
- **BbConfirmPortal** — Registers named slot content that confirm() renders via `portal`.
|
|
1476
|
+
- **BbDatePicker** — Opens an anchored calendar (and optional time rail) popover on a trigger you own — the date analog of BbColorPalette; also the v-bb-date directive.
|
|
1477
|
+
- **BbDatePickerInput** — Combines date selection with text input behavior.
|
|
1478
|
+
- **BbDialog** — Presents modal dialogs for focused user interactions.
|
|
1479
|
+
- **BbDropdown** — Displays contextual action menus and menu content.
|
|
1480
|
+
- **BbDropdownButton** — A button with primary action and all other actions collected in a dropdown.
|
|
1481
|
+
- **BbDropdownGroup** — Renderless v-model companion for a group declared in BbDropdown.items, bound by id.
|
|
1482
|
+
- **BbDropzone** — Supports drag-and-drop file input flows.
|
|
1483
|
+
- **BbForm** — Form host for `bitboss-ui/validated`: owns the vee-validate form (useForm), validates every field on submit, and emits `submit` with the collected values only when the form is valid.
|
|
1484
|
+
- **BbIcon** — Renders an icon either from the local icon folder or from a provider.
|
|
1485
|
+
- **BbIndicator** — Anchors a notification bubble (count/short text) or a dot over a wrapped element, with floating and corner-placement options.
|
|
1486
|
+
- **BbNumberInput** — Captures and validates numeric form values, emits a number value.
|
|
1487
|
+
- **BbOffCanvas** — Shows side-panel overlay content outside normal layout flow.
|
|
1488
|
+
- **BbPagination** — Navigates paginated data sets by page index.
|
|
1489
|
+
- **BbPopover** — Anchors floating content to reference elements.
|
|
1490
|
+
- **BbProgress** — Visualizes task or operation progress state.
|
|
1491
|
+
- **BbRadio** — Represents a single choice in exclusive options.
|
|
1492
|
+
- **BbRadioGroup** — Coordinates exclusive selection among radio options.
|
|
1493
|
+
- **BbRating** — Collects scalar ratings through interactive icons.
|
|
1494
|
+
- **BbSelect** — Selects one or many options from structured data.
|
|
1495
|
+
- **BbSelectPopover** — Provides popover-driven option selection and search.
|
|
1496
|
+
- **BbSlider** — Selects numeric values across a bounded range.
|
|
1497
|
+
- **BbSmoothHeight** — Animates height transitions for dynamic content.
|
|
1498
|
+
- **BbSpinner** — Indicates ongoing loading or pending operations.
|
|
1499
|
+
- **BbSwitch** — Toggles two-state values with switch semantics.
|
|
1500
|
+
- **BbSwitchGroup** — Manages grouped switch options with shared behavior.
|
|
1501
|
+
- **BbTable** — Displays tabular data, configurable columns and data mapper.
|
|
1502
|
+
- **BbTabs** — Switches between tabbed content views (shadcn-like strip; BbTabRoot enables split layouts).
|
|
1503
|
+
- **BbTabsList** — The trigger strip of a split BbTabsRoot layout (renders the tab buttons only).
|
|
1504
|
+
- **BbTabsPanes** — The pane host of a split BbTabsRoot layout (renders the tab content only).
|
|
1505
|
+
- **BbTabsRoot** — Provide/inject root that lets BbTabsList and BbTabsPanes live in separate layout slots.
|
|
1506
|
+
- **BbTag** — Captures and displays tag-like token values.
|
|
1507
|
+
- **BbTextarea** — Captures multi-line text values.
|
|
1508
|
+
- **BbTextInput** — Captures single-line text values.
|
|
1509
|
+
- **BbTimePicker** — Opens hour/minute(/second) columns in a popover on a trigger you own — the time analog of BbDatePicker; also the v-bb-time directive.
|
|
1510
|
+
- **BbTimePickerInput** — Segmented time field with hour/minute columns; 24-hour string model.
|
|
1511
|
+
- **BbToast** — Shows transient notification messages.
|
|
1512
|
+
- **BbToastPortal** — Registers named slot content that toast() renders via `portal`.
|
|
1513
|
+
- **BbTooltip** — Displays contextual helper text on interaction.
|
|
1514
|
+
- **BbTree** — Renders hierarchical expandable tree structures.
|