bitboss-ui 3.0.0-beta.4 → 3.0.0-beta.41
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/README.md +317 -98
- package/bin/bitboss-ui-mcp.mjs +1566 -75
- package/bin/bitboss-ui.mjs +716 -72
- package/dist/ai/BbAccordion.md +178 -56
- package/dist/ai/BbAlert.md +140 -28
- package/dist/ai/BbAsterisk.md +61 -4
- package/dist/ai/BbAvatar.md +194 -53
- package/dist/ai/BbBadge.md +250 -50
- package/dist/ai/BbBadgeButton.md +74 -21
- package/dist/ai/BbBaseButton.md +132 -51
- package/dist/ai/BbBaseCheckboxIcon.md +118 -26
- package/dist/ai/BbBaseRadioIcon.md +115 -26
- package/dist/ai/BbBaseSwitchIcon.md +123 -28
- package/dist/ai/BbBreadcrumbs.md +221 -51
- package/dist/ai/BbButton.md +389 -107
- package/dist/ai/BbCalendar.md +667 -0
- package/dist/ai/BbCheckbox.md +242 -80
- package/dist/ai/BbCheckboxGroup.md +575 -66
- package/dist/ai/BbCollapsible.md +158 -39
- package/dist/ai/BbColorInput.md +322 -82
- package/dist/ai/BbColorPalette.md +261 -61
- package/dist/ai/BbConfirm.md +220 -51
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +272 -37
- package/dist/ai/BbDatePickerInput.md +321 -92
- package/dist/ai/BbDialog.md +492 -87
- package/dist/ai/BbDropdown.md +1182 -104
- package/dist/ai/BbDropdownButton.md +239 -61
- package/dist/ai/BbDropdownGroup.md +5 -5
- package/dist/ai/BbDropzone.md +140 -36
- package/dist/ai/BbForm.md +1165 -40
- package/dist/ai/BbIcon.md +100 -33
- package/dist/ai/BbIndicator.md +79 -12
- package/dist/ai/BbNumberInput.md +257 -87
- package/dist/ai/BbOffCanvas.md +396 -91
- package/dist/ai/BbPagination.md +199 -32
- package/dist/ai/BbPopover.md +219 -54
- package/dist/ai/BbProgress.md +137 -71
- package/dist/ai/BbPtScope.md +136 -0
- package/dist/ai/BbRadio.md +234 -43
- package/dist/ai/BbRadioGroup.md +529 -91
- package/dist/ai/BbRating.md +243 -61
- package/dist/ai/BbSelect.md +690 -120
- package/dist/ai/BbSelectPopover.md +434 -122
- package/dist/ai/BbSlider.md +275 -79
- package/dist/ai/BbSmoothHeight.md +142 -34
- package/dist/ai/BbSpinner.md +179 -81
- package/dist/ai/BbSwitch.md +249 -63
- package/dist/ai/BbSwitchGroup.md +394 -65
- package/dist/ai/BbTable.md +1666 -222
- package/dist/ai/BbTabs.md +898 -178
- package/dist/ai/BbTabsList.md +81 -7
- package/dist/ai/BbTabsPanels.md +77 -0
- package/dist/ai/BbTabsRoot.md +16 -15
- package/dist/ai/BbTag.md +256 -76
- package/dist/ai/BbTextInput.md +480 -102
- package/dist/ai/BbTextarea.md +310 -96
- package/dist/ai/BbTimePicker.md +159 -24
- package/dist/ai/BbTimePickerInput.md +277 -46
- package/dist/ai/BbToast.md +286 -40
- package/dist/ai/BbToastPortal.md +3 -3
- package/dist/ai/BbTooltip.md +187 -34
- package/dist/ai/BbTree.md +260 -85
- package/dist/ai/ChipsBox.md +43 -2
- package/dist/ai/ClearableButton.md +12 -0
- package/dist/ai/CommaBox.md +2 -1
- package/dist/ai/CommonField.md +63 -0
- package/dist/ai/CommonFieldInput.md +90 -0
- package/dist/ai/CommonPopover.md +17 -12
- package/dist/ai/CommonTimeSelector.md +63 -0
- package/dist/ai/ErrorIcon.md +20 -0
- package/dist/ai/FlatListBox.md +41 -11
- package/dist/ai/GroupedListBox.md +42 -12
- package/dist/ai/ListBox.md +46 -11
- package/dist/ai/OptionsContainer.md +13 -10
- package/dist/ai/WarningIcon.md +20 -0
- package/dist/ai/changelog.json +4025 -141
- package/dist/ai/components.json +51872 -10136
- package/dist/ai/composables/useBbConfig.md +72 -11
- package/dist/ai/composables/useBbDropdownContext.md +168 -0
- package/dist/ai/composables/useBbFormContext.md +51 -24
- package/dist/ai/composables/useBbFormField.md +134 -0
- package/dist/ai/composables/useBbTableContext.md +41 -19
- package/dist/ai/composables/useConfirm.md +16 -8
- package/dist/ai/composables/useCountdown.md +1 -1
- package/dist/ai/composables/useId.md +10 -10
- package/dist/ai/composables/useMobile.md +17 -10
- package/dist/ai/composables/useToast.md +25 -19
- package/dist/ai/design-tokens.json +940 -0
- package/dist/ai/design-tokens.manifest.yaml +175 -0
- package/dist/ai/guides/agent-contract.md +168 -22
- package/dist/ai/guides/ai-router.md +79 -40
- package/dist/ai/guides/app-layout.md +8 -4
- package/dist/ai/guides/coherence-playbook.md +8 -8
- package/dist/ai/guides/component-picker.md +42 -34
- package/dist/ai/guides/design-language.md +274 -97
- package/dist/ai/guides/design-tokens.md +493 -105
- package/dist/ai/guides/fetch-items-playbook.md +22 -16
- package/dist/ai/guides/icons-policy.md +67 -35
- package/dist/ai/guides/inertia-helpers.md +4 -1
- package/dist/ai/guides/inline-edit-playbook.md +13 -6
- package/dist/ai/guides/installation-and-plugin-setup.md +817 -73
- package/dist/ai/guides/migration/components/bb-accordion.md +37 -0
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-avatar.md +13 -14
- package/dist/ai/guides/migration/components/bb-badge.md +5 -5
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +9 -8
- package/dist/ai/guides/migration/components/bb-button.md +80 -20
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +116 -29
- package/dist/ai/guides/migration/components/bb-checkbox.md +53 -10
- package/dist/ai/guides/migration/components/bb-chip.md +6 -6
- package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
- package/dist/ai/guides/migration/components/bb-color-input.md +5 -5
- package/dist/ai/guides/migration/components/bb-color-palette.md +16 -9
- package/dist/ai/guides/migration/components/bb-date-picker-input.md +45 -35
- package/dist/ai/guides/migration/components/bb-dialog.md +69 -36
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +7 -1
- package/dist/ai/guides/migration/components/bb-dropdown.md +31 -8
- package/dist/ai/guides/migration/components/bb-dropzone.md +8 -0
- package/dist/ai/guides/migration/components/bb-icon.md +7 -7
- package/dist/ai/guides/migration/components/bb-intersection.md +1 -1
- package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -31
- package/dist/ai/guides/migration/components/bb-pagination.md +10 -0
- package/dist/ai/guides/migration/components/bb-popover.md +19 -11
- package/dist/ai/guides/migration/components/bb-radio-group.md +14 -0
- package/dist/ai/guides/migration/components/bb-rating.md +61 -24
- package/dist/ai/guides/migration/components/bb-select-popover.md +9 -1
- package/dist/ai/guides/migration/components/bb-select.md +21 -4
- package/dist/ai/guides/migration/components/bb-slider.md +14 -6
- package/dist/ai/guides/migration/components/bb-switch-group.md +14 -0
- package/dist/ai/guides/migration/components/bb-table.md +574 -33
- package/dist/ai/guides/migration/components/bb-tabs.md +91 -41
- package/dist/ai/guides/migration/components/bb-tag.md +9 -7
- package/dist/ai/guides/migration/components/bb-text-input.md +12 -12
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/components/bb-tooltip.md +18 -0
- package/dist/ai/guides/migration/components/bb-tree.md +11 -9
- package/dist/ai/guides/migration/components/use-confirm.md +9 -1
- package/dist/ai/guides/migration/v2-to-v3.md +828 -240
- package/dist/ai/guides/migration/v3-beta-css-classes.md +751 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +119 -0
- package/dist/ai/guides/options-items-playbook.md +161 -12
- package/dist/ai/guides/page-shell.md +1 -1
- package/dist/ai/guides/passthrough.md +958 -0
- package/dist/ai/guides/preset-components.md +361 -0
- package/dist/ai/guides/ssr-prefill.md +127 -0
- package/dist/ai/guides/validated-forms.md +466 -55
- package/dist/ai/guides/validation-libraries.md +171 -0
- package/dist/ai/guides/validation-providers.md +113 -0
- package/dist/ai/index.md +45 -44
- package/dist/ai/recipes/inertia/approvals-inbox.md +26 -10
- package/dist/ai/recipes/inertia/command-palette.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +46 -30
- package/dist/ai/recipes/inertia/layout-scaffold.md +6 -2
- package/dist/ai/recipes/inertia/onboarding.md +30 -8
- package/dist/ai/recipes/inertia/ownership-atlas.md +72 -49
- package/dist/ai/recipes/inertia/record-form.md +53 -19
- package/dist/ai/recipes/inertia/records-workspace.md +201 -49
- package/dist/ai/recipes/inertia/settings-workspace.md +3809 -0
- package/dist/ai/recipes/inertia/upload-center.md +54 -43
- package/dist/ai/recipes/inertia/wizard-form.md +98 -14
- package/dist/ai/recipes/nuxt/approvals-inbox.md +26 -10
- package/dist/ai/recipes/nuxt/command-palette.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +68 -52
- package/dist/ai/recipes/nuxt/layout-scaffold.md +6 -2
- package/dist/ai/recipes/nuxt/onboarding.md +30 -8
- package/dist/ai/recipes/nuxt/record-form.md +66 -22
- package/dist/ai/recipes/nuxt/records-workspace.md +199 -48
- package/dist/ai/recipes/nuxt/settings-workspace.md +3898 -0
- package/dist/ai/recipes/nuxt/upload-center.md +52 -41
- package/dist/ai/recipes/nuxt/wizard-form.md +98 -14
- package/dist/ai/recipes/vue/approvals-inbox.md +28 -12
- package/dist/ai/recipes/vue/command-palette.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +69 -53
- package/dist/ai/recipes/vue/layout-scaffold.md +6 -2
- package/dist/ai/recipes/vue/onboarding.md +32 -8
- package/dist/ai/recipes/vue/record-form.md +81 -54
- package/dist/ai/recipes/vue/records-workspace.md +198 -49
- package/dist/ai/recipes/vue/settings-workspace.md +3836 -0
- package/dist/ai/recipes/vue/upload-center.md +53 -42
- package/dist/ai/recipes/vue/wizard-form.md +97 -14
- package/dist/ai/source/BbAccordion.md +90 -24
- package/dist/ai/source/BbAlert.md +209 -62
- package/dist/ai/source/BbAsterisk.md +54 -4
- package/dist/ai/source/BbAvatar.md +73 -16
- package/dist/ai/source/BbBadge.md +265 -97
- package/dist/ai/source/BbBadgeButton.md +218 -79
- package/dist/ai/source/BbBaseButton.md +108 -12
- package/dist/ai/source/BbBaseCheckboxIcon.md +151 -36
- package/dist/ai/source/BbBaseRadioIcon.md +121 -17
- package/dist/ai/source/BbBaseSwitchIcon.md +138 -28
- package/dist/ai/source/BbBreadcrumbs.md +363 -69
- package/dist/ai/source/BbButton.md +563 -174
- package/dist/ai/source/BbCalendar.md +1744 -0
- package/dist/ai/source/BbCheckbox.md +470 -68
- package/dist/ai/source/BbCheckboxGroup.md +976 -95
- package/dist/ai/source/BbCollapsible.md +96 -8
- package/dist/ai/source/BbColorInput.md +597 -67
- package/dist/ai/source/BbColorPalette.md +1284 -65
- package/dist/ai/source/BbConfirm.md +149 -7
- package/dist/ai/source/BbConfirmPortal.md +89 -3
- package/dist/ai/source/BbDatePicker.md +527 -381
- package/dist/ai/source/BbDatePickerInput.md +2015 -118
- package/dist/ai/source/BbDialog.md +531 -64
- package/dist/ai/source/BbDropdown.md +885 -175
- package/dist/ai/source/BbDropdownButton.md +377 -79
- package/dist/ai/source/BbDropdownGroup.md +687 -96
- package/dist/ai/source/BbDropzone.md +140 -31
- package/dist/ai/source/BbForm.md +875 -17
- package/dist/ai/source/BbIcon.md +130 -52
- package/dist/ai/source/BbIndicator.md +117 -60
- package/dist/ai/source/BbNumberInput.md +667 -84
- package/dist/ai/source/BbOffCanvas.md +1007 -261
- package/dist/ai/source/BbPagination.md +203 -31
- package/dist/ai/source/BbPopover.md +267 -90
- package/dist/ai/source/BbProgress.md +88 -26
- package/dist/ai/source/BbPtScope.md +54 -0
- package/dist/ai/source/BbRadio.md +388 -58
- package/dist/ai/source/BbRadioGroup.md +940 -109
- package/dist/ai/source/BbRating.md +736 -84
- package/dist/ai/source/BbSelect.md +1096 -96
- package/dist/ai/source/BbSelectPopover.md +807 -114
- package/dist/ai/source/BbSlider.md +1390 -98
- package/dist/ai/source/BbSmoothHeight.md +48 -2
- package/dist/ai/source/BbSpinner.md +62 -6
- package/dist/ai/source/BbSwitch.md +297 -60
- package/dist/ai/source/BbSwitchGroup.md +761 -83
- package/dist/ai/source/BbTable.md +6950 -1864
- package/dist/ai/source/BbTabs.md +368 -111
- package/dist/ai/source/BbTabsList.md +503 -146
- package/dist/ai/source/BbTabsPanels.md +625 -0
- package/dist/ai/source/BbTabsRoot.md +319 -100
- package/dist/ai/source/BbTag.md +796 -87
- package/dist/ai/source/BbTextInput.md +497 -68
- package/dist/ai/source/BbTextarea.md +550 -65
- package/dist/ai/source/BbTimePicker.md +395 -69
- package/dist/ai/source/BbTimePickerInput.md +1233 -106
- package/dist/ai/source/BbToast.md +250 -74
- package/dist/ai/source/BbToastPortal.md +210 -66
- package/dist/ai/source/BbTooltip.md +181 -30
- package/dist/ai/source/BbTree.md +76 -11
- package/dist/ai/source/ChipsBox.md +25 -5
- package/dist/ai/source/CommaBox.md +21 -6
- package/dist/ai/source/{BbBaseInputContainer.md → CommonField.md} +467 -250
- package/dist/ai/source/CommonFieldInput.md +848 -0
- package/dist/ai/source/CommonPopover.md +116 -30
- package/dist/ai/source/CommonTimeSelector.md +726 -0
- package/dist/ai/source/ErrorIcon.md +2 -2
- package/dist/ai/source/FlatListBox.md +188 -17
- package/dist/ai/source/GroupedListBox.md +236 -44
- package/dist/ai/source/GuidesComponent.md +14 -7
- package/dist/ai/source/ListBox.md +46 -8
- package/dist/ai/source/OptionsContainer.md +288 -60
- package/dist/ai/source/WarningIcon.md +2 -2
- package/dist/assets/css/reset.css_inline.js +1 -1
- package/dist/assets/svgs/star.svg_raw.js +4 -0
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +49 -32
- package/dist/components/BbAccordion/types.d.ts +35 -3
- package/dist/components/BbAccordion/types.js +11 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +46 -30
- package/dist/components/BbAlert/types.d.ts +37 -3
- package/dist/components/BbAlert/types.js +13 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -1
- package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +23 -8
- package/dist/components/BbAsterisk/types.d.ts +18 -0
- package/dist/components/BbAsterisk/types.js +7 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +57 -44
- package/dist/components/BbAvatar/types.d.ts +23 -0
- package/dist/components/BbAvatar/types.js +7 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -18
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +96 -53
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +27 -8
- package/dist/components/BbBadge/badgeButtonContext.d.ts +25 -8
- package/dist/components/BbBadge/types.d.ts +46 -3
- package/dist/components/BbBadge/types.js +13 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +109 -96
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/components/BbBaseButton/types.d.ts +33 -3
- package/dist/components/BbBaseButton/types.js +9 -2
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +50 -18
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +31 -2
- package/dist/components/BbBaseCheckboxIcon/types.js +8 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +45 -15
- package/dist/components/BbBaseRadioIcon/types.d.ts +31 -2
- package/dist/components/BbBaseRadioIcon/types.js +8 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +48 -16
- package/dist/components/BbBaseSwitchIcon/types.d.ts +31 -2
- package/dist/components/BbBaseSwitchIcon/types.js +8 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +187 -132
- package/dist/components/BbBreadcrumbs/types.d.ts +45 -3
- package/dist/components/BbBreadcrumbs/types.js +12 -0
- package/dist/components/BbButton/BbButton.vue.d.ts +5 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +107 -81
- package/dist/components/BbButton/types.d.ts +113 -2
- package/dist/components/BbButton/types.js +12 -0
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +34 -0
- package/dist/components/BbCalendar/BbCalendar.vue.js +6 -0
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +608 -0
- package/dist/components/BbCalendar/CalendarMonthPanel.vue.js +5 -0
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +124 -0
- package/dist/components/BbCalendar/CalendarYearPanel.vue.js +5 -0
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/components/BbCalendar/calendarHost.d.ts +29 -0
- package/dist/components/BbCalendar/calendarHost.js +10 -0
- package/dist/components/BbCalendar/types.d.ts +225 -0
- package/dist/components/BbCalendar/types.js +29 -0
- package/dist/components/{BbBaseDatePicker/useDatePickerContext.d.ts → BbCalendar/useCalendarContext.d.ts} +10 -7
- package/dist/components/BbCalendar/useCalendarContext.js +11 -0
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +208 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +274 -0
- package/dist/components/BbCalendar/useDayGrid.d.ts +79 -0
- package/dist/components/BbCalendar/useDayGrid.js +204 -0
- package/dist/components/BbCalendar/useToday.d.ts +23 -0
- package/dist/components/BbCalendar/useToday.js +21 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +7 -7
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +214 -72
- package/dist/components/BbCheckbox/types.d.ts +180 -13
- package/dist/components/BbCheckbox/types.js +8 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +15 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +338 -90
- package/dist/components/BbCheckboxGroup/types.d.ts +195 -20
- package/dist/components/BbCheckboxGroup/types.js +10 -0
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +41 -19
- package/dist/components/BbCollapsible/types.d.ts +44 -1
- package/dist/components/BbCollapsible/types.js +7 -0
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +17 -7
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +330 -86
- package/dist/components/BbColorInput/types.d.ts +230 -12
- package/dist/components/BbColorInput/types.js +24 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +10 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +515 -108
- package/dist/components/BbColorPalette/types.d.ts +76 -7
- package/dist/components/BbColorPalette/types.js +12 -0
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +2 -1
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +125 -76
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -0
- package/dist/components/BbConfirm/types.d.ts +49 -0
- package/dist/components/BbConfirm/types.js +17 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -10
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +320 -223
- package/dist/components/BbDatePicker/types.d.ts +111 -17
- package/dist/components/BbDatePicker/types.js +33 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -4
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +1172 -87
- package/dist/components/BbDatePickerInput/types.d.ts +224 -19
- package/dist/components/BbDatePickerInput/types.js +39 -0
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +227 -136
- package/dist/components/BbDialog/types.d.ts +92 -3
- package/dist/components/BbDialog/types.js +16 -0
- package/dist/components/BbDialog/useDialogStack.d.ts +12 -0
- package/dist/components/BbDialog/useDialogStack.js +9 -2
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +108 -96
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +10 -2
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +337 -268
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +5 -1
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +8 -2
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +377 -293
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +129 -118
- package/dist/components/BbDropdown/normalizeGroups.js +55 -31
- package/dist/components/BbDropdown/types.d.ts +288 -30
- package/dist/components/BbDropdown/types.js +21 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +10 -4
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +18 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +172 -40
- package/dist/components/BbDropdownButton/types.d.ts +137 -8
- package/dist/components/BbDropdownButton/types.js +35 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +2 -2
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +186 -144
- package/dist/components/BbDropzone/types.d.ts +38 -4
- package/dist/components/BbDropzone/types.js +16 -0
- package/dist/components/BbForm/BbForm.vue.d.ts +94 -0
- package/dist/{validated → components/BbForm}/BbForm.vue.js +1 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +317 -0
- package/dist/components/BbForm/BbFormCustomField.d.ts +14 -0
- package/dist/components/BbForm/BbFormCustomField.js +43 -0
- package/dist/components/BbForm/bindFormField.d.ts +16 -0
- package/dist/components/BbForm/bindFormField.js +85 -0
- package/dist/components/BbForm/formFields.d.ts +64 -0
- package/dist/components/BbForm/formFields.js +11 -0
- package/dist/components/BbForm/formSchema.d.ts +56 -0
- package/dist/components/BbForm/formSchema.js +196 -0
- package/dist/components/BbForm/standardSchema.d.ts +59 -0
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +58 -48
- package/dist/components/BbIcon/iconCache.d.ts +63 -0
- package/dist/components/BbIcon/iconCache.js +35 -0
- package/dist/components/BbIcon/types.d.ts +22 -2
- package/dist/components/BbIcon/types.js +7 -0
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +34 -21
- package/dist/components/BbIndicator/types.d.ts +24 -0
- package/dist/components/BbIndicator/types.js +7 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -8
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +308 -85
- package/dist/components/BbNumberInput/types.d.ts +201 -18
- package/dist/components/BbNumberInput/types.js +8 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +311 -210
- package/dist/components/BbOffCanvas/types.d.ts +79 -6
- package/dist/components/BbOffCanvas/types.js +15 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +125 -90
- package/dist/components/BbPagination/types.d.ts +38 -0
- package/dist/components/BbPagination/types.js +13 -0
- package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +219 -179
- package/dist/components/BbPopover/types.d.ts +51 -5
- package/dist/components/BbPopover/types.js +14 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +29 -16
- package/dist/components/BbProgress/types.d.ts +25 -0
- package/dist/components/BbProgress/types.js +7 -0
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +12 -0
- package/dist/components/BbPtScope/BbPtScope.vue.js +5 -0
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/BbPtScope/types.d.ts +15 -0
- package/dist/components/BbRadio/BbRadio.vue.d.ts +7 -7
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +172 -59
- package/dist/components/BbRadio/types.d.ts +152 -13
- package/dist/components/BbRadio/types.js +8 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +14 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +319 -92
- package/dist/components/BbRadioGroup/types.d.ts +198 -22
- package/dist/components/BbRadioGroup/types.js +10 -0
- package/dist/components/BbRating/BbRating.vue.d.ts +10 -8
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +259 -78
- package/dist/components/BbRating/types.d.ts +174 -13
- package/dist/components/BbRating/types.js +21 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -3
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +553 -83
- package/dist/components/BbSelect/types.d.ts +235 -20
- package/dist/components/BbSelect/types.js +41 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +15 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +541 -391
- package/dist/components/BbSelectPopover/types.d.ts +124 -8
- package/dist/components/BbSelectPopover/types.js +24 -0
- package/dist/components/BbSlider/BbSlider.vue.d.ts +13 -8
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +472 -96
- package/dist/components/BbSlider/types.d.ts +202 -13
- package/dist/components/BbSlider/types.js +26 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +60 -48
- package/dist/components/BbSmoothHeight/types.d.ts +19 -0
- package/dist/components/BbSmoothHeight/types.js +7 -0
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +27 -14
- package/dist/components/BbSpinner/types.d.ts +22 -1
- package/dist/components/BbSpinner/types.js +7 -0
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +7 -7
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +220 -78
- package/dist/components/BbSwitch/types.d.ts +25 -10
- package/dist/components/BbSwitch/types.js +5 -0
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +14 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +338 -90
- package/dist/components/BbSwitchGroup/types.d.ts +30 -7
- package/dist/components/BbSwitchGroup/types.js +5 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +27 -6
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +2013 -685
- package/dist/components/BbTable/BbTableDataRow.d.ts +196 -0
- package/dist/components/BbTable/BbTableDataRow.js +151 -0
- package/dist/components/BbTable/BbTableExpandRow.d.ts +84 -0
- package/dist/components/BbTable/BbTableExpandRow.js +62 -0
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +120 -0
- package/dist/components/BbTable/BbTableSelectToggle.js +122 -0
- package/dist/components/BbTable/gridWidgets.d.ts +30 -0
- package/dist/components/BbTable/gridWidgets.js +14 -0
- package/dist/components/BbTable/types.d.ts +473 -123
- package/dist/components/BbTable/types.js +31 -0
- package/dist/components/BbTable/utils.d.ts +145 -4
- package/dist/components/BbTable/utils.js +154 -37
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -1
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +62 -26
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -10
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +143 -81
- package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +12 -0
- package/dist/components/{BbBaseSwitch/BbBaseSwitch.vue.js → BbTabs/BbTabsPanels.vue.js} +2 -2
- package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +3 -1
- package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbTabs/types.d.ts +183 -23
- package/dist/components/BbTabs/types.js +34 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +13 -10
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +383 -92
- package/dist/components/BbTag/types.d.ts +139 -14
- package/dist/components/BbTag/types.js +22 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -8
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +257 -84
- package/dist/components/BbTextInput/types.d.ts +168 -13
- package/dist/components/BbTextInput/types.js +8 -0
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +7 -7
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +291 -94
- package/dist/components/BbTextarea/types.d.ts +158 -14
- package/dist/components/BbTextarea/types.js +8 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -4
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +199 -122
- package/dist/components/BbTimePicker/types.d.ts +94 -7
- package/dist/components/BbTimePicker/types.js +18 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +14 -4
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +749 -86
- package/dist/components/BbTimePickerInput/types.d.ts +171 -22
- package/dist/components/BbTimePickerInput/types.js +25 -0
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +63 -25
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +4 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -76
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -0
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +4 -1
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +72 -64
- package/dist/components/BbToast/types.d.ts +54 -1
- package/dist/components/BbToast/types.js +28 -0
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +104 -87
- package/dist/components/BbTooltip/types.d.ts +40 -2
- package/dist/components/BbTooltip/types.js +7 -0
- package/dist/components/BbTree/BbTree.vue.d.ts +15 -3
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +51 -29
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +17 -16
- package/dist/components/BbTree/context.d.ts +9 -1
- package/dist/components/BbTree/types.d.ts +40 -5
- package/dist/components/BbTree/types.js +7 -0
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +46 -44
- package/dist/components/ChipsBox/types.d.ts +7 -0
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +11 -7
- package/dist/components/CommaBox/types.d.ts +7 -0
- package/dist/components/{BbBaseInputContainer/BbBaseInputContainer.vue.d.ts → CommonField/CommonField.vue.d.ts} +5 -5
- package/dist/components/{BbBaseRadio/BbBaseRadio.vue.js → CommonField/CommonField.vue.js} +2 -2
- package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +189 -0
- package/dist/components/CommonField/messageHeightMatrix.d.ts +2 -0
- package/dist/components/{BbBaseInputContainer → CommonField}/types.d.ts +52 -16
- package/dist/components/{CommonInputWrapper/CommonInputWrapper.vue.d.ts → CommonFieldInput/CommonFieldInput.vue.d.ts} +5 -4
- package/dist/components/{BbBaseRadioGroup/BbBaseRadioGroup.vue.js → CommonFieldInput/CommonFieldInput.vue.js} +2 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +120 -0
- package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +10 -0
- package/dist/components/{CommonInputWrapper → CommonFieldInput}/types.d.ts +27 -8
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +11 -2
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +76 -63
- package/dist/components/CommonPopover/types.d.ts +27 -8
- package/dist/components/{BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts → CommonTimeSelector/CommonTimeSelector.vue.d.ts} +21 -2
- package/dist/components/{BbBaseColorPalette/BbBaseColorPalette.vue.js → CommonTimeSelector/CommonTimeSelector.vue.js} +2 -2
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +232 -0
- package/dist/components/CommonTimeSelector/types.d.ts +6 -0
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +5 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +165 -95
- package/dist/components/FlatListBox/types.d.ts +24 -2
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +5 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +217 -134
- package/dist/components/GroupedListBox/types.d.ts +24 -2
- package/dist/components/ListBox/ListBox.vue.d.ts +5 -1
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +95 -69
- package/dist/components/ListBox/types.d.ts +24 -2
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +109 -37
- package/dist/components/OptionsContainer/types.d.ts +53 -9
- package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/Transitions/Slide.vue.js +1 -1
- package/dist/composables/useBaseOptions.d.ts +12 -1
- package/dist/composables/useBaseOptions.js +77 -37
- package/dist/composables/useBbConfig.d.ts +27 -6
- package/dist/composables/useBbConfig.js +8 -2
- package/dist/composables/useBbDropdownContext.d.ts +5 -0
- package/dist/composables/useBbFormContext.d.ts +131 -8
- package/dist/composables/useBbFormContext.js +49 -30
- package/dist/composables/useBbFormField.d.ts +40 -0
- package/dist/composables/useBbFormField.js +39 -0
- package/dist/composables/useBbTableContext.d.ts +45 -1
- package/dist/composables/useBbTableContext.js +93 -87
- package/dist/composables/useBbTabsContext.d.ts +15 -9
- package/dist/composables/useBbTabsContext.js +121 -90
- package/dist/composables/useClosingInert.d.ts +4 -4
- package/dist/composables/useCoarsePointer.js +7 -10
- package/dist/composables/useCoherence.js +1 -1
- package/dist/composables/useConfig.d.ts +59 -0
- package/dist/composables/useConfig.js +15 -0
- package/dist/composables/useConfirm.d.ts +39 -7
- package/dist/composables/useConfirm.js +50 -41
- package/dist/composables/useEscapeStackEntry.d.ts +13 -0
- package/dist/composables/useEscapeStackEntry.js +16 -0
- package/dist/composables/useFormBinding.d.ts +116 -0
- package/dist/composables/useFormBinding.js +34 -0
- package/dist/composables/useHydrated.d.ts +18 -0
- package/dist/composables/useHydrated.js +13 -7
- package/dist/composables/useId.d.ts +4 -3
- package/dist/composables/useId.js +1 -7
- package/dist/composables/useItemsGetter.d.ts +11 -0
- package/dist/composables/useItemsGetter.js +44 -18
- package/dist/composables/useKeyboardInset.d.ts +28 -0
- package/dist/composables/useKeyboardInset.js +32 -0
- package/dist/composables/useLocale.js +10 -7
- package/dist/composables/useMobile.js +7 -10
- package/dist/composables/usePassthrough.d.ts +228 -0
- package/dist/composables/usePassthrough.js +247 -0
- package/dist/composables/usePrefill.d.ts +22 -2
- package/dist/composables/usePrefill.js +35 -19
- package/dist/composables/useSafeAreaInternal.js +1 -1
- package/dist/composables/useSegmentedFields.d.ts +2 -2
- package/dist/composables/useSsrState.d.ts +20 -0
- package/dist/composables/useSsrState.js +13 -0
- package/dist/composables/useTableWidthContext.d.ts +24 -4
- package/dist/composables/useTableWidthContext.js +31 -28
- package/dist/composables/useToast.d.ts +18 -1
- package/dist/composables/useToast.js +31 -18
- package/dist/composables/useToggleInput.d.ts +44 -0
- package/dist/composables/useToggleInput.js +39 -0
- package/dist/composables/useViewportWidth.d.ts +5 -25
- package/dist/composables/useViewportWidth.js +14 -7
- package/dist/deprecation/ai-deprecations.json.d.ts +1977 -289
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.js +9 -4
- package/dist/directives/bbDropdown.d.ts +15 -4
- package/dist/directives/bbDropdown.js +31 -9
- package/dist/directives/bbTooltip.d.ts +6 -0
- package/dist/directives/createPopoverDirective.d.ts +62 -0
- package/dist/directives/createPopoverDirective.js +92 -37
- package/dist/i18n/index.d.ts +10 -16
- package/dist/i18n/locales/cs.json +9 -5
- package/dist/i18n/locales/da.json +9 -5
- package/dist/i18n/locales/de.json +9 -5
- package/dist/i18n/locales/el.json +9 -5
- package/dist/i18n/locales/en.json +9 -5
- package/dist/i18n/locales/es.json +9 -5
- package/dist/i18n/locales/fi.json +9 -5
- package/dist/i18n/locales/fr.json +9 -5
- package/dist/i18n/locales/hu.json +9 -5
- package/dist/i18n/locales/it.json +9 -5
- package/dist/i18n/locales/ja.json +9 -5
- package/dist/i18n/locales/ko.json +9 -5
- package/dist/i18n/locales/nb.json +9 -5
- package/dist/i18n/locales/nl.json +9 -5
- package/dist/i18n/locales/pl.json +9 -5
- package/dist/i18n/locales/pt.json +9 -5
- package/dist/i18n/locales/ro.json +9 -5
- package/dist/i18n/locales/ru.json +9 -5
- package/dist/i18n/locales/sv.json +9 -5
- package/dist/i18n/locales/tr.json +9 -5
- package/dist/i18n/locales/uk.json +9 -5
- package/dist/i18n/locales/zh-cn.json +9 -5
- package/dist/icon-scan.d.ts +276 -0
- package/dist/icon-scan.js +485 -0
- package/dist/icons-whitelist.d.ts +5 -4
- package/dist/index.d.ts +40 -21
- package/dist/index.js +78 -71
- package/dist/llms-full.txt +61164 -27972
- package/dist/llms-medium.txt +1482 -366
- package/dist/llms.txt +32 -15
- package/dist/locale-blueprint.json +9 -5
- package/dist/nuxt-auto-imports.d.ts +76 -0
- package/dist/nuxt-auto-imports.js +32 -0
- package/dist/nuxt-module.d.ts +30 -15
- package/dist/nuxt.js +35 -9
- package/dist/passthrough-deduper.js +5 -0
- package/dist/plugin.d.ts +10 -1
- package/dist/plugin.js +29 -19
- package/dist/project-dts.d.ts +84 -0
- package/dist/project-dts.js +170 -0
- package/dist/reset.css +1 -1
- package/dist/runtime/nuxt-plugin.js +34 -21
- package/dist/styles.css +3 -2
- package/dist/types/AlertVariant.d.ts +10 -1
- package/dist/types/BadgeVariant.d.ts +16 -5
- package/dist/types/ButtonVariant.d.ts +12 -1
- package/dist/types/ColumnName.d.ts +30 -3
- package/dist/types/CommonProps.d.ts +2 -2
- package/dist/types/Config.d.ts +94 -1
- package/dist/types/ConfirmVariant.d.ts +8 -1
- package/dist/types/DropdownItemVariant.d.ts +8 -1
- package/dist/types/FieldLayout.d.ts +32 -0
- package/dist/types/IndicatorVariant.d.ts +11 -1
- package/dist/types/InputVariant.d.ts +30 -0
- package/dist/types/ItemProps.d.ts +50 -0
- package/dist/types/Option.d.ts +6 -0
- package/dist/types/PtScope.d.ts +15 -0
- package/dist/types/RegistryKey.d.ts +10 -0
- package/dist/types/TabsVariant.d.ts +25 -0
- package/dist/types/ToastVariant.d.ts +12 -2
- package/dist/types/TooltipVariant.d.ts +8 -1
- package/dist/types/passthrough.d.ts +362 -0
- package/dist/types/passthrough.js +78 -0
- package/dist/types/ptComponentMap.d.ts +62 -0
- package/dist/utilities/functions/hasVnodeListener.d.ts +16 -0
- package/dist/utilities/functions/hasVnodeListener.js +12 -0
- package/dist/utilities/functions/isImeComposing.d.ts +7 -0
- package/dist/utilities/functions/isImeComposing.js +4 -0
- package/dist/utilities/functions/itemProps.d.ts +46 -0
- package/dist/utilities/functions/itemProps.js +47 -0
- package/dist/utilities/functions/slotKey.d.ts +13 -8
- package/dist/utilities/functions/slotKey.js +78 -2
- package/dist/utilities/functions/snapToStep.js +2 -1
- package/dist/utilities/functions/toggleInput.d.ts +98 -0
- package/dist/utilities/functions/toggleInput.js +56 -0
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +27 -1
- package/dist/utilities/functions/warnRemovedAttrs.js +75 -14
- package/dist/utilities/misc/listboxMetrics.d.ts +9 -3
- package/dist/utilities/misc/listboxMetrics.js +5 -2
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
- package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
- package/dist/utils/cssLayers.d.ts +91 -0
- package/dist/utils/cssLayers.js +43 -0
- package/dist/utils/injectLibraryStyles.d.ts +3 -1
- package/dist/utils/injectLibraryStyles.js +24 -23
- package/dist/utils/overlayEscapeStack.d.ts +10 -0
- package/dist/utils/overlayEscapeStack.js +5 -3
- package/dist/utils/passthrough.d.ts +67 -0
- package/dist/utils/passthrough.js +100 -0
- package/dist/utils/passthroughDeduper.d.ts +2 -0
- package/dist/utils/ptScope.d.ts +8 -0
- package/dist/utils/ptScope.js +4 -0
- package/dist/utils/versionCheck.d.ts +19 -0
- package/dist/utils/versionCheck.js +18 -0
- package/dist/vite-plugin.d.ts +301 -53
- package/dist/vite.js +547 -375
- package/llms.txt +33 -16
- package/package.json +49 -27
- package/scripts/lib/check-fix.mjs +129 -0
- package/scripts/lib/component-attr-targets.ts +123 -0
- package/scripts/lib/component-tree.ts +648 -0
- package/scripts/lib/css-class-check.mjs +326 -0
- package/scripts/lib/css-class-surface.mjs +292 -0
- package/scripts/lib/css-color-resolve.mjs +172 -0
- package/scripts/lib/css-local-check.mjs +267 -0
- package/scripts/lib/design-token-manifest.mjs +499 -0
- package/scripts/lib/doc-sections.mjs +248 -0
- package/scripts/lib/ensure-manifest.mjs +28 -5
- package/scripts/lib/eslint-disable.mjs +141 -0
- package/scripts/lib/eslint-plugin.d.ts +64 -1
- package/scripts/lib/eslint-plugin.mjs +1285 -30
- package/scripts/lib/hand-imported-styles.mjs +326 -0
- package/scripts/lib/hand-roll-hints.mjs +50 -6
- package/scripts/lib/html-attributes.mjs +353 -0
- package/scripts/lib/local-components.mjs +177 -0
- package/scripts/lib/mcp-config.mjs +87 -58
- package/scripts/lib/migrate-fix.mjs +62 -3
- package/scripts/lib/project-variant-dts.mjs +122 -0
- package/scripts/lib/public-type-exports.mjs +273 -0
- package/scripts/lib/slot-key.mjs +147 -0
- package/scripts/lib/slot-renames.mjs +46 -0
- package/scripts/lib/squashed-slot-words.mjs +133 -0
- package/scripts/lib/validate-bb-markup.mjs +2213 -76
- package/scripts/lib/wrapper-props.mjs +188 -0
- package/dist/ai/BbBaseCheckbox.md +0 -49
- package/dist/ai/BbBaseCheckboxGroup.md +0 -64
- package/dist/ai/BbBaseColorInput.md +0 -65
- package/dist/ai/BbBaseColorPalette.md +0 -39
- package/dist/ai/BbBaseDatePicker.md +0 -43
- package/dist/ai/BbBaseDatePickerInput.md +0 -73
- package/dist/ai/BbBaseInputContainer.md +0 -48
- package/dist/ai/BbBaseNumberInput.md +0 -71
- package/dist/ai/BbBaseRadio.md +0 -46
- package/dist/ai/BbBaseRadioGroup.md +0 -64
- package/dist/ai/BbBaseRating.md +0 -52
- package/dist/ai/BbBaseSelect.md +0 -88
- package/dist/ai/BbBaseSlider.md +0 -56
- package/dist/ai/BbBaseSwitch.md +0 -49
- package/dist/ai/BbBaseSwitchGroup.md +0 -64
- package/dist/ai/BbBaseTag.md +0 -68
- package/dist/ai/BbBaseTextInput.md +0 -75
- package/dist/ai/BbBaseTextarea.md +0 -62
- package/dist/ai/BbBaseTimePickerInput.md +0 -62
- package/dist/ai/BbTabsPanes.md +0 -27
- package/dist/ai/CommonInputWrapper.md +0 -42
- package/dist/ai/source/BbBaseCheckbox.md +0 -461
- package/dist/ai/source/BbBaseCheckboxGroup.md +0 -554
- package/dist/ai/source/BbBaseColorInput.md +0 -431
- package/dist/ai/source/BbBaseColorPalette.md +0 -942
- package/dist/ai/source/BbBaseDatePicker.md +0 -1448
- package/dist/ai/source/BbBaseDatePickerInput.md +0 -1940
- package/dist/ai/source/BbBaseNumberInput.md +0 -617
- package/dist/ai/source/BbBaseRadio.md +0 -381
- package/dist/ai/source/BbBaseRadioGroup.md +0 -539
- package/dist/ai/source/BbBaseRating.md +0 -607
- package/dist/ai/source/BbBaseSelect.md +0 -945
- package/dist/ai/source/BbBaseSlider.md +0 -1144
- package/dist/ai/source/BbBaseSwitch.md +0 -246
- package/dist/ai/source/BbBaseSwitchGroup.md +0 -302
- package/dist/ai/source/BbBaseTag.md +0 -694
- package/dist/ai/source/BbBaseTextInput.md +0 -511
- package/dist/ai/source/BbBaseTextarea.md +0 -504
- package/dist/ai/source/BbBaseTimePickerInput.md +0 -1037
- package/dist/ai/source/BbTabsPanes.md +0 -377
- package/dist/ai/source/CommonInputWrapper.md +0 -584
- package/dist/alert-variants.d.ts +0 -19
- package/dist/assets/svgs/sort.svg_raw.js +0 -4
- package/dist/badge-variants.d.ts +0 -19
- package/dist/button-variants.d.ts +0 -21
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +0 -40
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +0 -6
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +0 -145
- package/dist/components/BbBaseCheckbox/types.d.ts +0 -224
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +0 -19
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +0 -6
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +0 -257
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +0 -43
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +0 -6
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +0 -184
- package/dist/components/BbBaseColorInput/types.d.ts +0 -219
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +0 -13
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +0 -395
- package/dist/components/BbBaseColorPalette/types.d.ts +0 -40
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.d.ts +0 -20
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +0 -6
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +0 -407
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +0 -47
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +0 -5
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +0 -318
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +0 -5
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +0 -115
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +0 -5
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +0 -116
- package/dist/components/BbBaseDatePicker/types.d.ts +0 -108
- package/dist/components/BbBaseDatePicker/useDatePickerContext.js +0 -11
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +0 -31
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +0 -6
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -737
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +0 -6
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +0 -204
- package/dist/components/BbBaseDatePickerInput/types.d.ts +0 -325
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +0 -6
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +0 -52
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +0 -6
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +0 -215
- package/dist/components/BbBaseNumberInput/types.d.ts +0 -211
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +0 -33
- package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +0 -113
- package/dist/components/BbBaseRadio/types.d.ts +0 -179
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +0 -19
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -179
- package/dist/components/BbBaseRadioGroup/types.d.ts +0 -223
- package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +0 -38
- package/dist/components/BbBaseRating/BbBaseRating.vue.js +0 -6
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +0 -192
- package/dist/components/BbBaseRating/types.d.ts +0 -176
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +0 -19
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +0 -6
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +0 -311
- package/dist/components/BbBaseSelect/types.d.ts +0 -297
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +0 -35
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +0 -6
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +0 -340
- package/dist/components/BbBaseSlider/types.d.ts +0 -200
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +0 -35
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +0 -146
- package/dist/components/BbBaseSwitch/types.d.ts +0 -10
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +0 -19
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +0 -6
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/BbBaseSwitchGroup/types.d.ts +0 -8
- package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +0 -50
- package/dist/components/BbBaseTag/BbBaseTag.vue.js +0 -6
- package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +0 -266
- package/dist/components/BbBaseTag/types.d.ts +0 -160
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +0 -45
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +0 -6
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +0 -200
- package/dist/components/BbBaseTextInput/types.d.ts +0 -209
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +0 -39
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +0 -6
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +0 -187
- package/dist/components/BbBaseTextarea/types.d.ts +0 -170
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +0 -27
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +0 -6
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -519
- package/dist/components/BbBaseTimePickerInput/types.d.ts +0 -151
- package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +0 -16
- package/dist/components/BbTabs/BbTabsPanes.vue.js +0 -6
- package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +0 -35
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +0 -6
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +0 -107
- package/dist/confirm-variants.d.ts +0 -17
- package/dist/dropdown-item-variants.d.ts +0 -17
- package/dist/indicator-variants.d.ts +0 -20
- package/dist/locale-registry.d.ts +0 -37
- package/dist/toast-variants.d.ts +0 -20
- package/dist/tooltip-variants.d.ts +0 -17
- package/dist/types/InputDirection.d.ts +0 -15
- package/dist/validated/BbCheckbox.vue.d.ts +0 -29
- package/dist/validated/BbCheckbox.vue.js +0 -5
- package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +0 -75
- package/dist/validated/BbCheckboxGroup.vue.d.ts +0 -34
- package/dist/validated/BbCheckboxGroup.vue.js +0 -5
- package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -82
- package/dist/validated/BbColorInput.vue.d.ts +0 -37
- package/dist/validated/BbColorInput.vue.js +0 -5
- package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +0 -75
- package/dist/validated/BbDatePickerInput.vue.d.ts +0 -41
- package/dist/validated/BbDatePickerInput.vue.js +0 -5
- package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -90
- package/dist/validated/BbDropzone.vue.d.ts +0 -24
- package/dist/validated/BbDropzone.vue.js +0 -5
- package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/validated/BbForm.vue.d.ts +0 -28
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +0 -42
- package/dist/validated/BbNumberInput.vue.d.ts +0 -36
- package/dist/validated/BbNumberInput.vue.js +0 -5
- package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/validated/BbRadioGroup.vue.d.ts +0 -34
- package/dist/validated/BbRadioGroup.vue.js +0 -5
- package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -78
- package/dist/validated/BbRating.vue.d.ts +0 -30
- package/dist/validated/BbRating.vue.js +0 -5
- package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/validated/BbSelect.vue.d.ts +0 -46
- package/dist/validated/BbSelect.vue.js +0 -5
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +0 -109
- package/dist/validated/BbSlider.vue.d.ts +0 -36
- package/dist/validated/BbSlider.vue.js +0 -5
- package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +0 -69
- package/dist/validated/BbSwitch.vue.d.ts +0 -29
- package/dist/validated/BbSwitch.vue.js +0 -5
- package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +0 -75
- package/dist/validated/BbSwitchGroup.vue.d.ts +0 -34
- package/dist/validated/BbSwitchGroup.vue.js +0 -5
- package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -82
- package/dist/validated/BbTag.vue.d.ts +0 -36
- package/dist/validated/BbTag.vue.js +0 -5
- package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/validated/BbTextInput.vue.d.ts +0 -36
- package/dist/validated/BbTextInput.vue.js +0 -5
- package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/validated/BbTextarea.vue.d.ts +0 -36
- package/dist/validated/BbTextarea.vue.js +0 -5
- package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +0 -70
- package/dist/validated/BbTimePickerInput.vue.d.ts +0 -37
- package/dist/validated/BbTimePickerInput.vue.js +0 -5
- package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -81
- package/dist/validated/index.d.ts +0 -43
- package/dist/validated/useValidatedField.d.ts +0 -93
- package/dist/validated/useValidatedField.js +0 -51
- package/dist/validated.js +0 -21
- /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts → BbCalendar/CalendarMonthPanel.vue.d.ts} +0 -0
- /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts → BbCalendar/CalendarYearPanel.vue.d.ts} +0 -0
- /package/dist/{components/BbBaseDatePicker/typeahead.d.ts → composables/useTypeahead.d.ts} +0 -0
- /package/dist/{components/BbBaseDatePicker/typeahead.js → composables/useTypeahead.js} +0 -0
package/dist/ai/BbDialog.md
CHANGED
|
@@ -8,6 +8,29 @@
|
|
|
8
8
|
- Usage rule: Prefer this component for consumer-facing implementations.
|
|
9
9
|
- Implementation source (only when the contract below is not enough): [source/BbDialog.md](./source/BbDialog.md)
|
|
10
10
|
|
|
11
|
+
## Reachable through `BbDialog`
|
|
12
|
+
|
|
13
|
+
`BbDialog` mounts other components (all of them: _Component tree_, near the end). These are the parts of its API that land inside them. Prefer these over `:deep()` on an inner class (allowed, unsupported: it can break on upgrade) — and never an import of an internal component.
|
|
14
|
+
|
|
15
|
+
| pt part | Lands on | In |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| `pt:close` | the root of `CloseButton` | `CloseButton` _(internal)_ |
|
|
18
|
+
| `pt:root` | `pt:root` of `BbOffCanvas` | `BbOffCanvas` ([contract](./BbOffCanvas.md)) |
|
|
19
|
+
| `pt:header` | `pt:header` of `BbOffCanvas` | `BbOffCanvas` ([contract](./BbOffCanvas.md)) |
|
|
20
|
+
| `pt:title` | `pt:title` of `BbOffCanvas` | `BbOffCanvas` ([contract](./BbOffCanvas.md)) |
|
|
21
|
+
| `pt:description` | `pt:description` of `BbOffCanvas` | `BbOffCanvas` ([contract](./BbOffCanvas.md)) |
|
|
22
|
+
| `pt:content` | `pt:content` of `BbOffCanvas` | `BbOffCanvas` ([contract](./BbOffCanvas.md)) |
|
|
23
|
+
| `pt:footer` | `pt:footer` of `BbOffCanvas` | `BbOffCanvas` ([contract](./BbOffCanvas.md)) |
|
|
24
|
+
| `pt:close` | `pt:close` of `BbOffCanvas` | `BbOffCanvas` ([contract](./BbOffCanvas.md)) |
|
|
25
|
+
| `pt:sheet` | `pt:root` of `BbOffCanvas` | `BbOffCanvas` ([contract](./BbOffCanvas.md)) |
|
|
26
|
+
|
|
27
|
+
**CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `BbDialog`'s root:
|
|
28
|
+
|
|
29
|
+
| Variable | Set through | Declared by | What it is |
|
|
30
|
+
| --- | --- | --- | --- |
|
|
31
|
+
| `--size` | `pt:close` | `CloseButton` | the button box — the hit target, not the glyph |
|
|
32
|
+
| `--p` | `pt:close` | `CloseButton` | padding inside that box; what is left of --size is the glyph |
|
|
33
|
+
|
|
11
34
|
## Usage & Guidelines
|
|
12
35
|
|
|
13
36
|
### When to use
|
|
@@ -33,20 +56,21 @@ Pick a sibling instead when the shape fits it better:
|
|
|
33
56
|
|
|
34
57
|
`v-model` owns visibility — there is no imperative `open()`. Bind a boolean and
|
|
35
58
|
flip it. The dialog dismisses itself on the header close button, the `Escape`
|
|
36
|
-
key, and a backdrop click
|
|
37
|
-
|
|
38
|
-
`
|
|
59
|
+
key, and a backdrop click. The `default`, `header` and `footer` slots also
|
|
60
|
+
receive a `close` callback, so a Cancel button in the footer is
|
|
61
|
+
`<template #footer="{ close }">` with `@click="close"` — or it sets the model
|
|
62
|
+
back to `false`, which is the same thing.
|
|
39
63
|
|
|
40
64
|
**A create-record dialog**
|
|
41
65
|
|
|
42
66
|
```vue
|
|
43
67
|
<template>
|
|
44
68
|
<div
|
|
45
|
-
class="flex w-full max-w-sm flex-col gap-3 rounded-
|
|
69
|
+
class="flex w-full max-w-sm flex-col gap-3 rounded-(--bb-radius) border p-4"
|
|
46
70
|
>
|
|
47
71
|
<div>
|
|
48
72
|
<p class="m-0 text-sm font-medium">Issue labels</p>
|
|
49
|
-
<p class="m-0 text-xs text-
|
|
73
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
50
74
|
12 labels · used across Northwind issues
|
|
51
75
|
</p>
|
|
52
76
|
</div>
|
|
@@ -68,7 +92,7 @@ for buttons inside the body. Footer buttons simply set the model back to
|
|
|
68
92
|
label="Label name"
|
|
69
93
|
placeholder="e.g. Priority"
|
|
70
94
|
/>
|
|
71
|
-
<p class="m-0 text-xs text-
|
|
95
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
72
96
|
Names are unique per workspace and show up in filters.
|
|
73
97
|
</p>
|
|
74
98
|
</div>
|
|
@@ -108,35 +132,56 @@ A `title` prop renders the standard header (title text + close button) and wires
|
|
|
108
132
|
`aria-labelledby` for you. Put form fields in the `default` slot and actions in
|
|
109
133
|
the `footer` slot — keep exactly one primary action there and align the group to
|
|
110
134
|
the end. The body area scrolls internally when content overflows; header and
|
|
111
|
-
footer stay pinned. This edit-record dialog
|
|
112
|
-
record on `@show
|
|
113
|
-
|
|
135
|
+
footer stay pinned. This edit-record dialog builds a fresh draft from the
|
|
136
|
+
selected record on `@show`, drops it on `@hidden`, and copies it back on save —
|
|
137
|
+
so a canceled edit never leaks into the next session, and neither does a field
|
|
138
|
+
the next record happens not to have.
|
|
114
139
|
|
|
115
140
|
**Edit-record dialog with a footer action**
|
|
116
141
|
|
|
117
142
|
```vue
|
|
118
143
|
<template>
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<p class="m-0 truncate text-xs text-[color:var(--bb-text-muted)]">
|
|
125
|
-
{{ contact.email }}
|
|
126
|
-
</p>
|
|
127
|
-
</div>
|
|
128
|
-
<BbButton
|
|
129
|
-
prepend:icon="lucide:pencil"
|
|
130
|
-
variant="outline"
|
|
131
|
-
@click="open = true"
|
|
144
|
+
<ul class="m-0 flex w-full max-w-sm list-none flex-col gap-2 p-0">
|
|
145
|
+
<li
|
|
146
|
+
v-for="contact in contacts"
|
|
147
|
+
:key="contact.id"
|
|
148
|
+
class="flex items-center justify-between gap-3 rounded-(--bb-radius) border p-3"
|
|
132
149
|
>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
150
|
+
<div class="min-w-0">
|
|
151
|
+
<p class="m-0 truncate text-sm font-medium">{{ contact.name }}</p>
|
|
152
|
+
<p class="m-0 truncate text-xs text-(--bb-text-muted)">
|
|
153
|
+
{{ contact.email
|
|
154
|
+
}}<template v-if="contact.phone"> · {{ contact.phone }}</template>
|
|
155
|
+
</p>
|
|
156
|
+
</div>
|
|
157
|
+
<BbButton
|
|
158
|
+
:aria-label="`Edit ${contact.name}`"
|
|
159
|
+
prepend:icon="lucide:pencil"
|
|
160
|
+
size="sm"
|
|
161
|
+
variant="outline"
|
|
162
|
+
@click="edit(contact)"
|
|
163
|
+
>
|
|
164
|
+
Edit
|
|
165
|
+
</BbButton>
|
|
166
|
+
</li>
|
|
167
|
+
</ul>
|
|
168
|
+
<BbDialog
|
|
169
|
+
v-model="open"
|
|
170
|
+
size="md"
|
|
171
|
+
title="Edit contact"
|
|
172
|
+
@hidden="clear"
|
|
173
|
+
@show="seed"
|
|
174
|
+
>
|
|
175
|
+
<div v-if="draft" class="grid gap-3">
|
|
138
176
|
<BbTextInput v-model="draft.name" compact label="Full name" />
|
|
139
177
|
<BbTextInput v-model="draft.email" compact label="Email" type="email" />
|
|
178
|
+
<BbTextInput
|
|
179
|
+
v-model="draft.phone"
|
|
180
|
+
compact
|
|
181
|
+
label="Phone"
|
|
182
|
+
placeholder="Optional"
|
|
183
|
+
type="tel"
|
|
184
|
+
/>
|
|
140
185
|
<BbSwitch v-model="draft.subscribed" label="Subscribed to updates" />
|
|
141
186
|
</div>
|
|
142
187
|
<template #footer>
|
|
@@ -149,33 +194,100 @@ copies it back on save.
|
|
|
149
194
|
</template>
|
|
150
195
|
|
|
151
196
|
<script setup lang="ts">
|
|
152
|
-
import {
|
|
197
|
+
import { ref } from 'vue';
|
|
153
198
|
import { BbButton, BbDialog, BbSwitch, BbTextInput } from 'bitboss-ui';
|
|
154
199
|
|
|
200
|
+
// `phone` is optional on the record: some contacts simply do not have one.
|
|
155
201
|
type Contact = {
|
|
202
|
+
id: number;
|
|
156
203
|
name: string;
|
|
157
204
|
email: string;
|
|
205
|
+
phone?: string;
|
|
158
206
|
subscribed: boolean;
|
|
159
207
|
};
|
|
160
208
|
|
|
161
|
-
// The
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
209
|
+
// The records being edited — in a real app these come from your store/API.
|
|
210
|
+
// Two of them on purpose, one WITHOUT the optional field: that is the case a
|
|
211
|
+
// single-record demo can never show going wrong.
|
|
212
|
+
const contacts = ref<Contact[]>([
|
|
213
|
+
{
|
|
214
|
+
id: 1,
|
|
215
|
+
name: 'Ada Lovelace',
|
|
216
|
+
email: 'ada@analytical.co',
|
|
217
|
+
phone: '+44 20 7946 0958',
|
|
218
|
+
subscribed: true,
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
id: 2,
|
|
222
|
+
name: 'Grace Hopper',
|
|
223
|
+
email: 'grace@navy.mil',
|
|
224
|
+
subscribed: false,
|
|
225
|
+
},
|
|
226
|
+
]);
|
|
227
|
+
|
|
228
|
+
// The form binds every field, so the draft must always carry every field.
|
|
229
|
+
// A blank factory guarantees that; the record only overrides what it has.
|
|
230
|
+
type Draft = {
|
|
231
|
+
name: string;
|
|
232
|
+
email: string;
|
|
233
|
+
phone: string;
|
|
234
|
+
subscribed: boolean;
|
|
235
|
+
};
|
|
236
|
+
const blank = (): Draft => ({
|
|
237
|
+
name: '',
|
|
238
|
+
email: '',
|
|
239
|
+
phone: '',
|
|
240
|
+
subscribed: false,
|
|
166
241
|
});
|
|
167
242
|
|
|
168
243
|
const open = ref(false);
|
|
169
|
-
const
|
|
244
|
+
const editing = ref<Contact | null>(null);
|
|
245
|
+
const draft = ref<Draft | null>(null);
|
|
170
246
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
247
|
+
const edit = (contact: Contact) => {
|
|
248
|
+
editing.value = contact;
|
|
249
|
+
open.value = true;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
// Seed on `@show`, and REPLACE the draft rather than merging into it.
|
|
253
|
+
// `Object.assign(draft, record)` copies only the keys the record has: open Grace
|
|
254
|
+
// (no phone) right after Ada (phone set) and Ada's phone is still in the input.
|
|
255
|
+
const seed = () => {
|
|
256
|
+
const record = editing.value;
|
|
257
|
+
if (!record) return;
|
|
258
|
+
draft.value = {
|
|
259
|
+
...blank(),
|
|
260
|
+
name: record.name,
|
|
261
|
+
email: record.email,
|
|
262
|
+
phone: record.phone ?? '',
|
|
263
|
+
subscribed: record.subscribed,
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
// Drop the draft once the close transition ends, so nothing waits around for
|
|
268
|
+
// the next record — `@hidden` is the teardown hook, not `@hide`.
|
|
269
|
+
const clear = () => {
|
|
270
|
+
draft.value = null;
|
|
271
|
+
editing.value = null;
|
|
174
272
|
};
|
|
175
273
|
|
|
176
274
|
const save = () => {
|
|
177
|
-
|
|
178
|
-
|
|
275
|
+
const record = editing.value;
|
|
276
|
+
const next = draft.value;
|
|
277
|
+
if (!record || !next) return;
|
|
278
|
+
// Persist here, then dismiss. The optional field goes back to "absent"
|
|
279
|
+
// when it was cleared, so the record never grows an empty string.
|
|
280
|
+
contacts.value = contacts.value.map((contact) =>
|
|
281
|
+
contact.id === record.id
|
|
282
|
+
? {
|
|
283
|
+
...contact,
|
|
284
|
+
name: next.name,
|
|
285
|
+
email: next.email,
|
|
286
|
+
phone: next.phone.trim() || undefined,
|
|
287
|
+
subscribed: next.subscribed,
|
|
288
|
+
}
|
|
289
|
+
: contact
|
|
290
|
+
);
|
|
179
291
|
open.value = false;
|
|
180
292
|
};
|
|
181
293
|
</script>
|
|
@@ -186,6 +298,65 @@ Use the `title` slot to restyle just the title text — it stays wired to
|
|
|
186
298
|
removes the whole header (the close button then floats over the body corner
|
|
187
299
|
unless `hide-close`), and you own the accessible name.
|
|
188
300
|
|
|
301
|
+
Add `description` for one muted line under the title — the dialog's subtitle,
|
|
302
|
+
and the only thing `aria-describedby` points at:
|
|
303
|
+
|
|
304
|
+
**A described dialog**
|
|
305
|
+
|
|
306
|
+
```vue
|
|
307
|
+
<template>
|
|
308
|
+
<div
|
|
309
|
+
class="flex w-full max-w-sm flex-col gap-3 rounded-(--bb-radius) border p-4"
|
|
310
|
+
>
|
|
311
|
+
<div>
|
|
312
|
+
<p class="m-0 text-sm font-medium">INV-2044</p>
|
|
313
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
314
|
+
Northwind Traders · €1,280.00 · paid
|
|
315
|
+
</p>
|
|
316
|
+
</div>
|
|
317
|
+
<div>
|
|
318
|
+
<BbButton
|
|
319
|
+
prepend:icon="lucide:trash-2"
|
|
320
|
+
variant="outline"
|
|
321
|
+
@click="open = true"
|
|
322
|
+
>
|
|
323
|
+
Delete invoice
|
|
324
|
+
</BbButton>
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
<BbDialog
|
|
328
|
+
v-model="open"
|
|
329
|
+
description="This permanently removes the invoice and its payment history."
|
|
330
|
+
title="Delete invoice INV-2044"
|
|
331
|
+
>
|
|
332
|
+
<p class="m-0">
|
|
333
|
+
Anything that does not fit in one line belongs here, in the body — which
|
|
334
|
+
is deliberately not what <code>aria-describedby</code> points at.
|
|
335
|
+
</p>
|
|
336
|
+
<template #footer>
|
|
337
|
+
<div class="flex justify-end gap-2">
|
|
338
|
+
<BbButton variant="ghost" @click="open = false">Cancel</BbButton>
|
|
339
|
+
<BbButton variant="destructive" @click="open = false">Delete</BbButton>
|
|
340
|
+
</div>
|
|
341
|
+
</template>
|
|
342
|
+
</BbDialog>
|
|
343
|
+
</template>
|
|
344
|
+
|
|
345
|
+
<script setup lang="ts">
|
|
346
|
+
import { ref } from 'vue';
|
|
347
|
+
import { BbButton, BbDialog } from 'bitboss-ui';
|
|
348
|
+
|
|
349
|
+
const open = ref(false);
|
|
350
|
+
</script>
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
Keep it to a sentence; the detail belongs in the body, which is deliberately
|
|
354
|
+
**not** described (pointing `aria-describedby` at arbitrary markup makes a
|
|
355
|
+
screen reader read a whole form as the dialog's description). Use the
|
|
356
|
+
`description` slot when the line needs markup — it receives the prop as `text`.
|
|
357
|
+
A dialog with no `description` keeps its original single-row header, so nothing
|
|
358
|
+
shifts unless you opt in.
|
|
359
|
+
|
|
189
360
|
Prefer `title` (or the `title` slot) for the standard header. The `header` slot
|
|
190
361
|
replaces the entire header on both surfaces — you own the close control and must
|
|
191
362
|
wire `titleId` for `aria-labelledby`. Give your root element `flex-1` so it fills
|
|
@@ -204,11 +375,11 @@ dismissed invite doesn't resurface half-typed:
|
|
|
204
375
|
```vue
|
|
205
376
|
<template>
|
|
206
377
|
<div
|
|
207
|
-
class="flex w-full max-w-sm flex-col gap-3 rounded-
|
|
378
|
+
class="flex w-full max-w-sm flex-col gap-3 rounded-(--bb-radius) border p-4"
|
|
208
379
|
>
|
|
209
380
|
<div>
|
|
210
381
|
<p class="m-0 text-sm font-medium">Team · Northwind Labs</p>
|
|
211
|
-
<p class="m-0 text-xs text-
|
|
382
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
212
383
|
4 members · 1 pending invite
|
|
213
384
|
</p>
|
|
214
385
|
</div>
|
|
@@ -239,7 +410,7 @@ dismissed invite doesn't resurface half-typed:
|
|
|
239
410
|
:items="roles"
|
|
240
411
|
label="Role"
|
|
241
412
|
/>
|
|
242
|
-
<p class="m-0 text-xs text-
|
|
413
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
243
414
|
They'll get an email with a link that expires in 7 days.
|
|
244
415
|
</p>
|
|
245
416
|
</div>
|
|
@@ -290,10 +461,18 @@ const send = () => {
|
|
|
290
461
|
</script>
|
|
291
462
|
```
|
|
292
463
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
-
|
|
296
|
-
|
|
464
|
+
Three rules keep dialog forms honest:
|
|
465
|
+
|
|
466
|
+
- Seed the draft when the dialog opens (`@show` is the hook), and **replace
|
|
467
|
+
it, never merge into it**. `Object.assign(draft, record)` copies only the
|
|
468
|
+
keys the record has, so opening a record whose optional field is absent
|
|
469
|
+
right after one where it was set leaves the previous value in the input —
|
|
470
|
+
nothing warns. Build the draft from a blank factory so every field the form
|
|
471
|
+
binds is always present, then overlay the record
|
|
472
|
+
(`{ ...blank(), phone: record.phone ?? '' }`).
|
|
473
|
+
- Clear the draft on `@hidden` as well. A close must leave nothing behind for
|
|
474
|
+
the next caller; `@hidden` fires after the close transition, so the form
|
|
475
|
+
does not blank mid-fade.
|
|
297
476
|
- On success, do the work first, then set the model to `false`; the close
|
|
298
477
|
transition runs while your toast/refresh happens.
|
|
299
478
|
|
|
@@ -302,7 +481,8 @@ Two rules keep dialog forms honest:
|
|
|
302
481
|
Four events bracket the transitions — `show` fires as the model turns `true`,
|
|
303
482
|
`shown` after the native `showModal()` call and initial focus, `hide` as the
|
|
304
483
|
model turns `false`, and `hidden` after the close transition completes. Use
|
|
305
|
-
`@show` to (re)seed form state, `@hidden` to tear down
|
|
484
|
+
`@show` to (re)seed form state, `@hidden` to drop a draft and tear down
|
|
485
|
+
expensive content.
|
|
306
486
|
|
|
307
487
|
Body content is **lazy**: nothing inside the dialog renders until the first
|
|
308
488
|
open. Set `eager` to render it immediately (e.g. so a chart can pre-measure, or
|
|
@@ -355,10 +535,17 @@ Every dismissal path is governed by two props:
|
|
|
355
535
|
- `disabled` — same guard, different intent: the surface is busy (a save in
|
|
356
536
|
flight). Combine with disabling your footer actions.
|
|
357
537
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
538
|
+
Under `prefers-reduced-motion: reduce` the dialog opens and closes in place
|
|
539
|
+
(the fade stays, the scale goes), and the deny nudge becomes a flash of the
|
|
540
|
+
focus ring, so a refused close still shows.
|
|
541
|
+
|
|
542
|
+
The header **close button bypasses `persistent`, but respects `disabled`**
|
|
543
|
+
(`onCloseButtonClick` in `BbDialog.vue`): while `disabled` is set the × plays the same deny
|
|
544
|
+
nudge as the backdrop and does not close. So for the common case — a dialog
|
|
545
|
+
that must stay put while a save is in flight — `disabled` alone is enough and
|
|
546
|
+
you keep the ×. Reach for `hide-close` only when the dialog must be resolved
|
|
547
|
+
from the footer _permanently_; pair it with `persistent` and keep a visible
|
|
548
|
+
Cancel so users are never trapped.
|
|
362
549
|
|
|
363
550
|
Backdrop clicks are drag-protected: a text selection that starts inside the
|
|
364
551
|
dialog and releases over the backdrop does not close it — only a genuine click
|
|
@@ -373,11 +560,11 @@ element.
|
|
|
373
560
|
```vue
|
|
374
561
|
<template>
|
|
375
562
|
<div
|
|
376
|
-
class="flex w-full max-w-sm flex-col gap-3 rounded-
|
|
563
|
+
class="flex w-full max-w-sm flex-col gap-3 rounded-(--bb-radius) border p-4"
|
|
377
564
|
>
|
|
378
565
|
<div>
|
|
379
566
|
<p class="m-0 text-sm font-medium">Finish setting up</p>
|
|
380
|
-
<p class="m-0 text-xs text-
|
|
567
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
381
568
|
Add your company so invoices and invites look right.
|
|
382
569
|
</p>
|
|
383
570
|
</div>
|
|
@@ -451,13 +638,11 @@ automatically; close only once the work resolves:
|
|
|
451
638
|
```vue
|
|
452
639
|
<template>
|
|
453
640
|
<div
|
|
454
|
-
class="flex w-full max-w-sm items-center justify-between gap-3 rounded-
|
|
641
|
+
class="flex w-full max-w-sm items-center justify-between gap-3 rounded-(--bb-radius) border p-4"
|
|
455
642
|
>
|
|
456
643
|
<div class="min-w-0">
|
|
457
644
|
<p class="m-0 truncate text-sm font-medium">{{ projectName }}</p>
|
|
458
|
-
<p class="m-0 text-xs text-
|
|
459
|
-
Project · private
|
|
460
|
-
</p>
|
|
645
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">Project · private</p>
|
|
461
646
|
</div>
|
|
462
647
|
<BbButton
|
|
463
648
|
prepend:icon="lucide:pencil"
|
|
@@ -533,20 +718,30 @@ const save = async () => {
|
|
|
533
718
|
|
|
534
719
|
Dialogs sharing a `stack` name **replace** one another: only the most recently
|
|
535
720
|
opened member is visible, the ones beneath are hidden until it closes — the
|
|
536
|
-
stack reads as a single surface whose content swaps as you drill in.
|
|
537
|
-
|
|
538
|
-
|
|
721
|
+
stack reads as a single surface whose content swaps as you drill in. When a
|
|
722
|
+
member closes, the one beneath crossfades in as it fades out. Each stacked
|
|
723
|
+
member dims what lies beneath it (via `--bb-overlay-stacked`, the same
|
|
724
|
+
dim as `--bb-overlay` by default); only the bottom member blurs, and its backdrop is
|
|
725
|
+
never handed off while members swap above it, so the page behind never
|
|
726
|
+
re-blurs between them. Set `--bb-overlay-stacked: transparent` for a single
|
|
727
|
+
dim under the whole stack. The backdrop split follows the **open order of
|
|
728
|
+
every dialog**, whatever its `stack` name or none, exactly as for
|
|
729
|
+
off-canvases: the bottom-most open dialog blurs and dims, each one opened
|
|
730
|
+
above it adds the stacked dim. The `stack` name only decides
|
|
731
|
+
cover/replace. Dialogs with different names (or none) therefore pile up
|
|
732
|
+
visibly, each dimming the one beneath. Use a stack for a two-step flow that
|
|
733
|
+
should not read as two boxes piling up.
|
|
539
734
|
|
|
540
735
|
**Drill into advanced options**
|
|
541
736
|
|
|
542
737
|
```vue
|
|
543
738
|
<template>
|
|
544
739
|
<div
|
|
545
|
-
class="flex w-full max-w-sm flex-col gap-3 rounded-
|
|
740
|
+
class="flex w-full max-w-sm flex-col gap-3 rounded-(--bb-radius) border p-4"
|
|
546
741
|
>
|
|
547
742
|
<div>
|
|
548
743
|
<p class="m-0 text-sm font-medium">Workspace settings</p>
|
|
549
|
-
<p class="m-0 text-xs text-
|
|
744
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
550
745
|
Storage, backups, retention
|
|
551
746
|
</p>
|
|
552
747
|
</div>
|
|
@@ -559,7 +754,7 @@ Use a stack for a two-step flow that should not read as two boxes piling up.
|
|
|
559
754
|
<BbDialog v-model="first" stack="settings" title="Storage">
|
|
560
755
|
<div class="grid gap-3">
|
|
561
756
|
<BbSwitch v-model="autoBackup" label="Automatic backups" />
|
|
562
|
-
<p class="m-0 text-xs text-
|
|
757
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
563
758
|
Nightly snapshots keep the last 30 days of changes.
|
|
564
759
|
</p>
|
|
565
760
|
<BbButton
|
|
@@ -574,7 +769,7 @@ Use a stack for a two-step flow that should not read as two boxes piling up.
|
|
|
574
769
|
<BbDialog v-model="second" stack="settings" title="Advanced retention">
|
|
575
770
|
<div class="grid gap-3">
|
|
576
771
|
<BbSwitch v-model="keepForever" label="Keep monthly snapshots" />
|
|
577
|
-
<p class="m-0 text-xs text-
|
|
772
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
578
773
|
Monthly snapshots stay available for 12 months after creation.
|
|
579
774
|
</p>
|
|
580
775
|
</div>
|
|
@@ -616,6 +811,14 @@ consequences an agent should design around:
|
|
|
616
811
|
appears above it and works — no special wiring. `BbToast` regions re-home
|
|
617
812
|
themselves into the open modal so toasts fired from a dialog stay clickable.
|
|
618
813
|
|
|
814
|
+
**Don't teleport overlays out of an open dialog or sheet.** A
|
|
815
|
+
`<Teleport to="body">` (or any `z-index` layer) opened from inside renders
|
|
816
|
+
_under_ the modal and is inert: no clicks, no focus. For anything that floats,
|
|
817
|
+
use a component that joins the top layer: `BbPopover` for anchored content,
|
|
818
|
+
`BbDropdown` for menus, a nested `BbOffCanvas` / `BbDialog` for panels,
|
|
819
|
+
`useToast` for notifications. Opened later, they paint above the current modal
|
|
820
|
+
and stay interactive.
|
|
821
|
+
|
|
619
822
|
Nested overlays are fine in moderation (a select, a confirm on top of a form
|
|
620
823
|
dialog). A second full dialog on top of another usually means the flow wants a
|
|
621
824
|
`stack` (above) or a page of its own.
|
|
@@ -632,11 +835,11 @@ link.
|
|
|
632
835
|
```vue
|
|
633
836
|
<template>
|
|
634
837
|
<div
|
|
635
|
-
class="flex w-full max-w-sm flex-col gap-3 rounded-
|
|
838
|
+
class="flex w-full max-w-sm flex-col gap-3 rounded-(--bb-radius) border p-4"
|
|
636
839
|
>
|
|
637
840
|
<div>
|
|
638
841
|
<p class="m-0 text-sm font-medium">Projects</p>
|
|
639
|
-
<p class="m-0 text-xs text-
|
|
842
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
640
843
|
Free plan · {{ used }} of {{ limit }} used
|
|
641
844
|
</p>
|
|
642
845
|
</div>
|
|
@@ -657,7 +860,7 @@ link.
|
|
|
657
860
|
using all of them. Upgrade to <strong>Pro</strong> for unlimited
|
|
658
861
|
projects and priority support.
|
|
659
862
|
</p>
|
|
660
|
-
<p class="m-0 text-xs text-
|
|
863
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
661
864
|
Billing starts when you confirm — you can cancel anytime.
|
|
662
865
|
</p>
|
|
663
866
|
</div>
|
|
@@ -709,20 +912,161 @@ surface is **latched when the dialog opens** and stays fixed for that session,
|
|
|
709
912
|
so a mid-flow resize never swaps modal ↔ sheet.
|
|
710
913
|
|
|
711
914
|
- The sheet defaults to a bottom, draggable, content-sized drawer
|
|
712
|
-
(`
|
|
915
|
+
(`side: 'bottom'`, `draggable: true`, `size: 'auto'`); the dialog's
|
|
713
916
|
`size` is intentionally **not** forwarded (width and drawer extent mean
|
|
714
917
|
different things).
|
|
715
918
|
- `title`, `persistent`, `disabled`, `hide-close`, `focus-target`, `eager`,
|
|
716
919
|
`fullscreen`, `stack` and `transition-duration` carry over; the four
|
|
717
920
|
lifecycle events fire the same either way.
|
|
718
921
|
- `off-canvas-props` merges last over the sheet's props — use it to change
|
|
719
|
-
|
|
922
|
+
the `side`, the size, `stack-gap`, or disable dragging on the mobile surface only.
|
|
923
|
+
A `pt` inside it is **sheet-only styling**:
|
|
924
|
+
`:off-canvas-props="{ 'pt:header': 'pt-10' }"` next to
|
|
925
|
+
`pt:header="bg-(--bb-muted) pt-1"` keeps `pt-1` on the desktop dialog and
|
|
926
|
+
gives the phone sheet the same muted header with `pt-10`. The object form
|
|
927
|
+
`{ pt: { header: 'pt-10' } }` does the same; both merge after what the
|
|
928
|
+
dialog forwards, so nothing of yours is lost (passthrough guide § Inside
|
|
929
|
+
the sheet).
|
|
720
930
|
- `:adaptive="false"` keeps the centered dialog everywhere; a bare `adaptive`
|
|
721
931
|
forces the sheet behavior on regardless of the global config.
|
|
722
932
|
|
|
723
933
|
Leave `adaptive` unset unless the project asks otherwise — the tri-state
|
|
724
934
|
default falls back to `config.adaptive`.
|
|
725
935
|
|
|
936
|
+
### Restyling with passthrough
|
|
937
|
+
|
|
938
|
+
`pt` reaches a named part of the dialog with a class list — or, in the
|
|
939
|
+
object form, a style and attributes — optionally only while a state is on.
|
|
940
|
+
Parts: `root` (the `<dialog>` — the surface itself, so there is no separate
|
|
941
|
+
`panel`), `sheet` (the bottom sheet the dialog becomes on a phone — only that
|
|
942
|
+
sheet, applied after `root` so it wins a conflict there), `header`, `title`
|
|
943
|
+
and `description` (the two lines inside the header — a `#header` slot replaces
|
|
944
|
+
them), `content` (the scrolling body, which carries the body's padding —
|
|
945
|
+
`pt:content="px-8"` or `[--py:20px]` sets it), `footer` and `close` (the ✕, in the header or floating
|
|
946
|
+
when there is none). States: `open`, and `fullscreen` while the dialog fills
|
|
947
|
+
the viewport — with `fullscreen="mobile"` it flips with the viewport, and it
|
|
948
|
+
wins a conflict with `open` (`pt:root:fullscreen="ring-0"` drops an
|
|
949
|
+
open-state ring a full-viewport dialog cannot show). The backdrop
|
|
950
|
+
is the `::backdrop` pseudo-element — style it in CSS (`.bb-dialog::backdrop`),
|
|
951
|
+
it has no node for `pt`. When the dialog renders as a phone sheet (`adaptive`),
|
|
952
|
+
every part is forwarded to the `BbOffCanvas` it renders.
|
|
953
|
+
|
|
954
|
+
The invoices record-payment dialog, restyled through those parts: a muted wash
|
|
955
|
+
on `pt:header`, footer actions laid out on `pt:footer` (the band is not flex
|
|
956
|
+
by default), a muted ✕ on `pt:close`, a primary ring with offset while
|
|
957
|
+
`pt:root:open`. There is no `panel` — the `<dialog>` is the surface.
|
|
958
|
+
|
|
959
|
+
**pt:header — record payment, a wash on the band**
|
|
960
|
+
|
|
961
|
+
```vue
|
|
962
|
+
<template>
|
|
963
|
+
<div
|
|
964
|
+
class="flex w-full max-w-sm flex-col gap-3 rounded-(--bb-radius) border border-(--bb-border) p-4"
|
|
965
|
+
>
|
|
966
|
+
<div>
|
|
967
|
+
<p class="m-0 text-sm font-medium">INV-2048</p>
|
|
968
|
+
<p class="m-0 text-xs text-(--bb-text-muted)">
|
|
969
|
+
Acme Studio · €1,280.00 due
|
|
970
|
+
</p>
|
|
971
|
+
</div>
|
|
972
|
+
<BbButton
|
|
973
|
+
prepend:icon="lucide:banknote"
|
|
974
|
+
variant="secondary"
|
|
975
|
+
@click="open = true"
|
|
976
|
+
>
|
|
977
|
+
Record payment
|
|
978
|
+
</BbButton>
|
|
979
|
+
</div>
|
|
980
|
+
<BbDialog
|
|
981
|
+
v-model="open"
|
|
982
|
+
:adaptive="false"
|
|
983
|
+
pt:close="text-(--bb-text-muted)"
|
|
984
|
+
pt:footer="flex justify-end gap-2"
|
|
985
|
+
pt:header="bg-(--bb-muted)"
|
|
986
|
+
pt:root:open="ring-2 ring-offset-2 ring-(--bb-primary)"
|
|
987
|
+
title="Record payment — INV-2048"
|
|
988
|
+
@show="seed"
|
|
989
|
+
>
|
|
990
|
+
<div class="grid gap-3">
|
|
991
|
+
<BbNumberInput
|
|
992
|
+
v-model="draft.amount"
|
|
993
|
+
label="Amount"
|
|
994
|
+
label-mode="outside"
|
|
995
|
+
:max-precision="2"
|
|
996
|
+
:min="0"
|
|
997
|
+
>
|
|
998
|
+
<template #prefix>€</template>
|
|
999
|
+
</BbNumberInput>
|
|
1000
|
+
<BbDatePickerInput
|
|
1001
|
+
v-model="draft.paidAt"
|
|
1002
|
+
label="Paid on"
|
|
1003
|
+
label-mode="outside"
|
|
1004
|
+
/>
|
|
1005
|
+
<BbSelect
|
|
1006
|
+
v-model="draft.method"
|
|
1007
|
+
:items="['bank transfer', 'card', 'check']"
|
|
1008
|
+
label="Method"
|
|
1009
|
+
label-mode="outside"
|
|
1010
|
+
/>
|
|
1011
|
+
</div>
|
|
1012
|
+
<template #footer>
|
|
1013
|
+
<BbButton variant="ghost" @click="open = false">Cancel</BbButton>
|
|
1014
|
+
<BbButton variant="secondary" @click="open = false">
|
|
1015
|
+
Record payment
|
|
1016
|
+
</BbButton>
|
|
1017
|
+
</template>
|
|
1018
|
+
</BbDialog>
|
|
1019
|
+
</template>
|
|
1020
|
+
|
|
1021
|
+
<script setup lang="ts">
|
|
1022
|
+
import { reactive, ref } from 'vue';
|
|
1023
|
+
import {
|
|
1024
|
+
BbButton,
|
|
1025
|
+
BbDatePickerInput,
|
|
1026
|
+
BbDialog,
|
|
1027
|
+
BbNumberInput,
|
|
1028
|
+
BbSelect,
|
|
1029
|
+
} from 'bitboss-ui';
|
|
1030
|
+
|
|
1031
|
+
type PaymentDraft = {
|
|
1032
|
+
amount: number | null;
|
|
1033
|
+
paidAt: string | null;
|
|
1034
|
+
method: string | null;
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
// Same record-payment dialog as the invoices workspace, restyled through
|
|
1038
|
+
// passthrough: a muted wash on `pt:header`, footer actions laid out on
|
|
1039
|
+
// `pt:footer` (the band is not flex by default), muted ✕ on `pt:close`, a
|
|
1040
|
+
// primary ring with offset while `pt:root:open`. There is no `panel` — the
|
|
1041
|
+
// `<dialog>` is the surface. Backdrop is `::backdrop`, CSS not pt.
|
|
1042
|
+
const open = ref(false);
|
|
1043
|
+
const draft = reactive<PaymentDraft>({
|
|
1044
|
+
amount: null,
|
|
1045
|
+
paidAt: null,
|
|
1046
|
+
method: null,
|
|
1047
|
+
});
|
|
1048
|
+
|
|
1049
|
+
/** Re-seed on `@show` so a canceled draft never leaks into the next open. */
|
|
1050
|
+
const seed = () => {
|
|
1051
|
+
draft.amount = 1280;
|
|
1052
|
+
draft.paidAt = new Date().toISOString();
|
|
1053
|
+
draft.method = 'bank transfer';
|
|
1054
|
+
};
|
|
1055
|
+
</script>
|
|
1056
|
+
```
|
|
1057
|
+
|
|
1058
|
+
The title's size and weight are two knobs a theme sets once for every dialog
|
|
1059
|
+
and sheet: `--dialog-title-fs` and `--dialog-title-fw` (default `500`) —
|
|
1060
|
+
`.bb-theme { --dialog-title-fw: 650 }`, no reach into the header's classes.
|
|
1061
|
+
|
|
1062
|
+
A listener on `pt:close` runs AFTER the dialog's own close — it can observe
|
|
1063
|
+
the close, never cancel it. The full grammar, the merge rules and the global
|
|
1064
|
+
map are in the [passthrough guide](./guides/passthrough.md).
|
|
1065
|
+
|
|
1066
|
+
A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
1067
|
+
`pt` prop) is typed as `BbDialogProps['pt']`, never an imported `PtValue`: see
|
|
1068
|
+
[passthrough § Typing `pt` in `<script>`](./guides/passthrough.md#typing-pt-in-script).
|
|
1069
|
+
|
|
726
1070
|
### Works well with
|
|
727
1071
|
|
|
728
1072
|
- `BbConfirm` + `useConfirm` — a destructive action inside your dialog should
|
|
@@ -747,6 +1091,13 @@ default falls back to `config.adaptive`.
|
|
|
747
1091
|
default ×, so you must render your own wired to `close`.
|
|
748
1092
|
- **Don't query dialog content before it has opened** unless you set `eager` —
|
|
749
1093
|
the body renders lazily.
|
|
1094
|
+
- **Don't forget `viewport-fit=cover`** in the page's viewport meta when the
|
|
1095
|
+
dialog is `adaptive`: on a phone its sheet keeps its bands clear of the
|
|
1096
|
+
notch and home indicator with band padding (and lifts above the on-screen
|
|
1097
|
+
keyboard while a field has focus), and without it iOS keeps the inset
|
|
1098
|
+
strips out of the page. A bottom padding of your own on
|
|
1099
|
+
that band (`pt:footer="pb-4"`) replaces that room too; see the BbOffCanvas
|
|
1100
|
+
guide.
|
|
750
1101
|
- A dialog is not a router surface: if the task grows tabs, lists and
|
|
751
1102
|
sub-navigation, it wants a page (or an `BbOffCanvas` detail panel), not a
|
|
752
1103
|
bigger modal.
|
|
@@ -759,6 +1110,8 @@ default falls back to `config.adaptive`.
|
|
|
759
1110
|
- The dialog is a true modal (`showModal()`): the browser contains focus within
|
|
760
1111
|
it, the page behind is inert, and focus returns to the trigger when it
|
|
761
1112
|
closes. `focus-target` only chooses where focus **starts**.
|
|
1113
|
+
- `description` is what `aria-describedby` points at, so the dialog announces
|
|
1114
|
+
its purpose and not just its name. Nothing else is described — see above.
|
|
762
1115
|
- The header close button carries a localized `aria-label` out of the box
|
|
763
1116
|
(`config.locale`).
|
|
764
1117
|
- Don't lean on `persistent` to trap users. Keep a visible way out (a Cancel or
|
|
@@ -772,34 +1125,86 @@ default falls back to `config.adaptive`.
|
|
|
772
1125
|
|
|
773
1126
|
| Prop | Type | Default | Required | Description |
|
|
774
1127
|
| --- | --- | --- | --- | --- |
|
|
775
|
-
| `
|
|
776
|
-
| `
|
|
777
|
-
| `
|
|
1128
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `close`, `content`, `description`, `footer`, `header`, `root`, `sheet`, `title`. States: `fullscreen`, `open`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDialogProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
1129
|
+
| `adaptive` | `boolean \| undefined` | ``config.adaptive` (`true`)` | | Adapt the surface to the viewport: render as a `BbOffCanvas` drawer on mobile instead of a centered dialog. The surface is resolved when the dialog opens and stays fixed for that session: resizing across the mobile breakpoint while open never swaps it. When unset, falls back to the global `config.adaptive`. |
|
|
1130
|
+
| `description` | `string \| undefined` | | | One short line under the title, in the header — the shadcn `DialogDescription` shape: same block as the title, lower hierarchy, muted. It is also what `aria-describedby` points at. That wiring was dropped in v3 along with the old `description` prop, on the reasoning that pointing it at arbitrary body content would read whole forms aloud — true, and the reason it aims at THIS element only. Keep it to a sentence; anything longer belongs in the body. |
|
|
1131
|
+
| `disabled` | `boolean \| undefined` | `false` | | Disable EVERY user-initiated dismissal: backdrop click, Escape AND the header close (×) button (denied attempts play the deny nudge). Use it while an operation is in flight (e.g. a save) so the dialog cannot be dismissed mid-work. Compare `persistent`, which blocks backdrop/Escape but leaves the × working. Programmatic close (v-model) is still allowed. |
|
|
1132
|
+
| `eager` | `boolean \| undefined` | `false` | | Render dialog content immediately instead of waiting for the first open. |
|
|
778
1133
|
| `focusTarget` | `string \| undefined` | | | CSS selector of the element to focus after opening. Defaults to the first tabbable element. |
|
|
779
1134
|
| `fullscreen` | `boolean \| "mobile" \| undefined` | | | Display the dialog fullscreen. Use `'mobile'` to restrict fullscreen to small devices. |
|
|
780
|
-
| `hideClose` | `boolean \| undefined` |
|
|
1135
|
+
| `hideClose` | `boolean \| undefined` | `false` | | Hide the default close (×) button. The button is shown by default; set this to remove it (e.g. for a `persistent` dialog you don't want dismissible — the × otherwise still closes a persistent dialog). |
|
|
781
1136
|
| `modelValue` | `boolean \| undefined` | `false` | | Used by v-model to open / close the dialog. A dialog with no `v-model` starts closed. |
|
|
782
|
-
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Overrides merged over the offcanvas (mobile) surface's props. The drawer defaults to a bottom, draggable, content-sized sheet (`
|
|
783
|
-
| `persistent` | `boolean \| undefined` |
|
|
784
|
-
| `size` | `Responsive<NonNullable<number \| ({ size?: any; } & string) \| keyof
|
|
785
|
-
| `stack` | `string \| undefined` | | | Name of the stack this dialog belongs to. Dialogs sharing the same `stack` value replace one another: only the most recently opened stays visible while the others in the stack are hidden beneath it. Dialogs in different stacks — or with no
|
|
1137
|
+
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet. A `pt` inside it, object or colon keys, styles only that sheet. Overrides merged over the offcanvas (mobile) surface's props. The drawer defaults to a bottom, draggable, content-sized sheet (`side: 'bottom'`, `draggable: true`, `size: 'auto'`); use this to override those, set other drawer-only options (`stackGap`), or override shared props whose meaning differs on the drawer (`stack`). Ignored on the desktop dialog surface. A `pt` inside it styles ONLY the sheet, in `BbOffCanvas`'s part words (`root`, `header`, `title`, `description`, `content`, `footer`, `close`; state `open`), object (`{ pt: { header: '…' } }`) or colon keys (`{ 'pt:header': '…' }`) alike. It merges after what this component forwards to its sheet, so it wins a conflict and drops nothing — see the passthrough guide § Inside the sheet. |
|
|
1138
|
+
| `persistent` | `boolean \| undefined` | `false` | | Prevent closing via outside clicks or Escape key. The header close (×) button STILL closes a persistent dialog — that is the documented escape hatch; combine with `hideClose` to remove it, or use `disabled` to block every dismissal. Programmatic close is still allowed. |
|
|
1139
|
+
| `size` | `Responsive<NonNullable<number \| ({ size?: any; } & string) \| keyof BbDialogSizes \| undefined>> \| undefined` | `"sm"` | | Controls the maximum width of the dialog. Accepts named presets from `'xs'` to `'2xl'`, a custom CSS width string, or a numeric pixel value — or a per-breakpoint map (e.g. `{ default: 'sm', lg: 'lg' }`) to switch width responsively. |
|
|
1140
|
+
| `stack` | `string \| undefined` | | | Name of the stack this dialog belongs to. Dialogs sharing the same `stack` value replace one another: only the most recently opened stays visible while the others in the stack are hidden beneath it. Dialogs in different stacks — or with no `stack` — never affect each other and remain fully visible. |
|
|
786
1141
|
| `title` | `string \| undefined` | | | Title text announced to assistive technologies. If omitted, no header is rendered (unless a `header` slot is supplied) and accessibility must be handled manually. |
|
|
787
|
-
| `transitionDuration` | `number \| undefined` | `
|
|
1142
|
+
| `transitionDuration` | `number \| undefined` | `250` | | Controls the duration of the open and close animations. |
|
|
1143
|
+
|
|
1144
|
+
## Passthrough parts and states
|
|
1145
|
+
|
|
1146
|
+
`pt:<part>="…"` restyles a part; `pt:<part>:<state>="…"` applies only while the state is on. A component-wide state is on for every part at once; a _per node_ state resolves on each node of a broadcast part (one row, one option, one day). Grammar and merge rules: `guides/passthrough.md`. In `<script>`, type a `pt` value as `<Component>Props['pt']` (`<Component>Props<Row>['pt']` on a generic component); `PtValue` is not exported: `guides/passthrough.md` § Typing `pt` in `<script>`.
|
|
1147
|
+
|
|
1148
|
+
| Part | What it is |
|
|
1149
|
+
| --- | --- |
|
|
1150
|
+
| `root` | The `<dialog>` — the surface itself, so there is no separate `panel`. The backdrop is `::backdrop`: style it in CSS (`.bb-dialog::backdrop`), it has no node for `pt`. |
|
|
1151
|
+
| `sheet` | The bottom sheet on the adaptive `surface="canvas"` (the `BbOffCanvas` root) — never the desktop `<dialog>`. Applied after `root`, so it wins a conflict there. |
|
|
1152
|
+
| `header` | The header band. |
|
|
1153
|
+
| `title` | The title line inside the header. Not rendered when a `#header` slot replaces the header. |
|
|
1154
|
+
| `description` | The description line inside the header. Not rendered when a `#header` slot replaces the header. |
|
|
1155
|
+
| `content` | The scrolling body. It carries the body's padding (`--px`, `--py`, `--dialog-gap`), so `pt:content="px-8"` or `[--py:20px]` sets it. |
|
|
1156
|
+
| `footer` | The footer band. |
|
|
1157
|
+
| `close` | The ✕ — in the header, or floating when there is none. |
|
|
1158
|
+
|
|
1159
|
+
States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
|
|
1160
|
+
|
|
1161
|
+
| State | When it is on |
|
|
1162
|
+
| --- | --- |
|
|
1163
|
+
| `open` | Component-wide: the dialog is open (follows `v-model`). |
|
|
1164
|
+
| `fullscreen` | Component-wide: the dialog fills the viewport — always with `fullscreen`, and with `fullscreen="mobile"` only while the viewport is a phone, so it can flip at runtime. Listed after `open`, so a `pt:root:fullscreen` entry wins a conflict with `pt:root:open` (drop an open-state ring or radius that a full-viewport surface cannot show). Forwarded to the sheet on the adaptive `surface="canvas"`. |
|
|
788
1165
|
|
|
789
1166
|
## Events
|
|
790
1167
|
|
|
791
|
-
- `hidden` — `(
|
|
792
|
-
- `hide` — `(
|
|
793
|
-
- `show` — `(
|
|
794
|
-
- `shown` — `(
|
|
795
|
-
- `update:modelValue` — `(
|
|
1168
|
+
- `hidden` — `(): void` — Emitted after the close transition completes and the dialog is fully dismissed.
|
|
1169
|
+
- `hide` — `(): void` — Emitted as soon as the dialog starts to close (model becomes false).
|
|
1170
|
+
- `show` — `(): void` — Emitted as soon as the dialog starts to open (model becomes true).
|
|
1171
|
+
- `shown` — `(): void` — Emitted after the dialog is fully opened via `showModal()`.
|
|
1172
|
+
- `update:modelValue` — `(value: boolean): void` — Emitted with the new value whenever `v-model` changes.
|
|
796
1173
|
|
|
797
1174
|
## Slots
|
|
798
1175
|
|
|
799
|
-
- `default` — scope: `BbDialogDefaultSlotProps` — Primary body content of the dialog, rendered in the scrollable body area.
|
|
800
|
-
- `
|
|
801
|
-
- `
|
|
802
|
-
- `
|
|
1176
|
+
- `default` — scope: `BbDialogDefaultSlotProps` `{ close: () => void }` — Primary body content of the dialog, rendered in the scrollable body area.
|
|
1177
|
+
- `description` — scope: `BbDialogDescriptionSlotProps` `{ text: string }` — Replaces the description text under the title. Renders the header even when `title` and `description` are unset — a slotted description is a description, the same rule `#title` follows.
|
|
1178
|
+
- `footer` — scope: `BbDialogFooterSlotProps` `{ close: () => void }` — Content rendered in the dialog footer, below the body area. Typically used for action buttons.
|
|
1179
|
+
- `header` — scope: `BbDialogHeaderSlotProps` `{ titleId: string; close: () => void; title: string }` — Replaces the entire dialog header section (title + close button) on both surfaces — the desktop `<dialog>` and the mobile off-canvas. Because it replaces the default close (✕), the slot owns closing: render your own control wired to the `close` prop, and wire `titleId` onto your title element to keep `aria-labelledby` intact. Providing this slot renders a header even when `title` is unset. Layout: the header container is a flex row (`justify-content: space-between`), so your root element is a flex item and shrinks to its content by default — give it `flex: auto` (Tailwind `flex-1`) to fill the width, or it renders squeezed against the left edge.
|
|
1180
|
+
- `title` — scope: `BbDialogTitleSlotProps` `{ text: string }` — Replaces the default title text inside the header. Remains linked to the dialog through `aria-labelledby`. Providing this slot renders the header even when `title` is unset — a slotted title is a title.
|
|
1181
|
+
|
|
1182
|
+
## CSS custom properties
|
|
1183
|
+
|
|
1184
|
+
Set these on the element, or on a class you put on it, to retune this component alone — the sanctioned alternative to reaching past the API with `:deep()`. They are this component's own locals — a **Set on** of `pt:<part>` means the local lives on that part's element, so set it through that entry (`pt:box="[--border-color:var(--color-green-500)]"`); the global `--bb-*` theme tokens are a separate tier (see the [design-tokens guide](./guides/design-tokens.md), or the MCP `list_tokens` tool).
|
|
1185
|
+
|
|
1186
|
+
| Property | Set on | Default | What it is |
|
|
1187
|
+
| --- | --- | --- | --- |
|
|
1188
|
+
| `--px` | `.bb-dialog` | `var(--bb-panel-p)` | Axis split of --bb-panel-p: --px (inline) / --py (block), each branching off it. Set the pair only when the axes differ; setting --bb-panel-p alone keeps them equal. Local on this root class (not :root) so scoped --bb-panel-p overrides keep reaching the slots; for per-part asymmetry, scope --py to the part class. |
|
|
1189
|
+
| `--py` | `.bb-dialog` | `var(--bb-panel-p)` | |
|
|
1190
|
+
| `--page-padding` | `.bb-dialog` | `20px` | |
|
|
1191
|
+
| `--transition-timing-function` | `.bb-dialog` | `var(--bb-ease)` | |
|
|
1192
|
+
| `--bg` | `.bb-dialog` | `var(--bb-panel)` | |
|
|
1193
|
+
| `--fg` | `.bb-dialog` | `var(--bb-text)` | |
|
|
1194
|
+
| `--close-size` | `.bb-dialog__header` | `28px` | Shared by the close control and by the space the title reserves for it, * so the two can never drift apart. |
|
|
1195
|
+
|
|
1196
|
+
## Component tree
|
|
1197
|
+
|
|
1198
|
+
`BbDialog` is not one component: rendering it mounts every component below, and each one is live inside it. **Read this before styling, theming or debugging `BbDialog`, and before concluding a part, a token or a behaviour does not exist** — it may live on a component further down. How to read it:
|
|
1199
|
+
|
|
1200
|
+
- **_internal_** nodes are building blocks with no API of their own: you reach them only through `BbDialog`. A pt part listed as landing there is set on `BbDialog` (`pt:<part>`).
|
|
1201
|
+
- **_public_** nodes are components with their own contract. `BbDialog` reaches one only through a pt part of its own that lands on it (shown on the parent node as `part → Component`, e.g. `spinner → BbSpinner`) or through a pt map it hands it (shown as "hands … the pt map", in `BbDialog`'s words → the child's). The child's other props and parts are not exposed; its contract explains what it renders.
|
|
1202
|
+
- **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `BbDialog`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
1203
|
+
- Listed nodes are the ones `BbDialog`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, repeats and undocumented locals included, is the `tree` field of this component in `components.json`.
|
|
1204
|
+
|
|
1205
|
+
- `BbDialog` _(this component)_ — its own template binds: `header` → `div.bb-dialog__header`, `title` → `span.bb-dialog__title`, `description` → `p.bb-dialog__description`, `close` → `CloseButton`, `content` → `div.bb-dialog__content`, `footer` → `div.bb-dialog__footer`; hands `BbOffCanvas` the pt map `{ root: 'root', header: 'header', title: 'title', description: 'description', content: 'content', footer: 'footer', close: 'close', sheet: 'root', }` (ours → theirs)
|
|
1206
|
+
- `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`
|
|
1207
|
+
- `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`; also mounts `CloseButton`
|
|
803
1208
|
|
|
804
1209
|
## See Also
|
|
805
1210
|
|