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
|
@@ -20,6 +20,10 @@ import type {
|
|
|
20
20
|
} from './types';
|
|
21
21
|
export type { BbDropdownGroupModel, BbDropdownGroupProps };
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* The group's selection: one value for a single group, an array for a
|
|
25
|
+
* `multiple` one. Read by the owning BbDropdown through the group's `id`.
|
|
26
|
+
*/
|
|
23
27
|
const model = defineModel<BbDropdownGroupModel>();
|
|
24
28
|
|
|
25
29
|
/**
|
|
@@ -30,7 +34,7 @@ const model = defineModel<BbDropdownGroupModel>();
|
|
|
30
34
|
* slot.
|
|
31
35
|
*
|
|
32
36
|
* This is **only** a selection affordance. Resolving a group's items — async
|
|
33
|
-
* fetching, `item-text`/`item-value` mapping, loading/
|
|
37
|
+
* fetching, `item-text`/`item-value` mapping, loading/empty, `max`,
|
|
34
38
|
* coherence — is owned by `BbDropdown` itself (it auto-mounts an internal
|
|
35
39
|
* resolver per pipeline group), so a group renders from `:items` with or without
|
|
36
40
|
* this companion. The companion just translates selection keys ⇄ `v-model`
|
|
@@ -126,10 +130,17 @@ if (registry) {
|
|
|
126
130
|
|
|
127
131
|
```ts
|
|
128
132
|
import type { BbBaseButtonProps } from '../BbBaseButton/types';
|
|
133
|
+
import type {
|
|
134
|
+
PtItemCtx,
|
|
135
|
+
PtItemMap,
|
|
136
|
+
PtItemResult,
|
|
137
|
+
PtValue,
|
|
138
|
+
} from '@/types/passthrough';
|
|
129
139
|
import type { Placement } from '@/types/Placement';
|
|
130
140
|
import type { IconType } from '@/types/Icon';
|
|
131
141
|
import type { DropdownItemVariantType } from '@/types/DropdownItemVariant';
|
|
132
142
|
import type { BbOffCanvasProps } from '../BbOffCanvas/types';
|
|
143
|
+
import type { ItemProps } from '@/types/ItemProps';
|
|
133
144
|
|
|
134
145
|
export type { DropdownItemVariantType };
|
|
135
146
|
|
|
@@ -142,15 +153,33 @@ export type DropdownTrigger = 'click' | 'contextMenu';
|
|
|
142
153
|
*/
|
|
143
154
|
type DropdownEntryBase = {
|
|
144
155
|
/**
|
|
145
|
-
* Icon to be displayed after the text.
|
|
146
|
-
* submenu (
|
|
156
|
+
* Icon to be displayed after the text. Not shown when the item opens a
|
|
157
|
+
* submenu (the chevron is), when it is the selected row of a selectable
|
|
158
|
+
* group (the check is), or when an append slot fills the region.
|
|
147
159
|
*/
|
|
148
160
|
'append:icon'?: IconType;
|
|
149
161
|
/**
|
|
150
|
-
* Key used to identify the entry.
|
|
151
|
-
*
|
|
162
|
+
* Key used to identify the entry. REQUIRED when anything outside the menu
|
|
163
|
+
* reads it: a row in a `selectable` group (the v-model holds it), a row or
|
|
164
|
+
* group with its own slot (`#<key>` is named by it), a group bound by a
|
|
165
|
+
* `<BbDropdownGroup id>` or selectable. Optional on a plain action row (it
|
|
166
|
+
* runs its `onClick`) and a layout-only group: the dropdown then derives an
|
|
167
|
+
* internal identity from the text that nothing outside ever sees. A keyless
|
|
168
|
+
* row in a selectable group renders but can't be selected. Load-bearing
|
|
169
|
+
* identifiers are written, never derived — `bitboss-ui check` flags a
|
|
170
|
+
* missing required key where the items are in the same file.
|
|
171
|
+
*/
|
|
172
|
+
key?: string;
|
|
173
|
+
/** @internal Set by the dropdown on a row it derived a key for (Q53.17). */
|
|
174
|
+
keyless?: true;
|
|
175
|
+
/**
|
|
176
|
+
* Your own data for this entry, carried untouched to its slots (as
|
|
177
|
+
* `item.meta`) and to per-item `pt` functions. The dropdown never reads it
|
|
178
|
+
* and never puts it on the DOM. Typically the record the entry stands for,
|
|
179
|
+
* e.g. `{ key: clinic.id, text: clinic.name, meta: clinic }`; a fetched
|
|
180
|
+
* group sets it through `itemProps` (`(clinic) => ({ meta: clinic })`).
|
|
152
181
|
*/
|
|
153
|
-
|
|
182
|
+
meta?: any;
|
|
154
183
|
/** Click handler. */
|
|
155
184
|
onClick?: (...args: any[]) => any;
|
|
156
185
|
/** Icon to be displayed before the text. */
|
|
@@ -164,6 +193,28 @@ type DropdownEntryBase = {
|
|
|
164
193
|
variant?: DropdownItemVariantType;
|
|
165
194
|
};
|
|
166
195
|
|
|
196
|
+
/**
|
|
197
|
+
* The `itemProps` fields of a fetched (pipeline) dropdown group: everything a
|
|
198
|
+
* hand-written row accepts except its identity and structure (`key`, `text`,
|
|
199
|
+
* `items`, `group`) and `disabled`. See {@link InternalGroup.itemProps}.
|
|
200
|
+
*/
|
|
201
|
+
export type DropdownItemFields = Omit<
|
|
202
|
+
BbBaseButtonProps,
|
|
203
|
+
'block' | 'tag' | 'type' | 'text' | 'disabled'
|
|
204
|
+
> &
|
|
205
|
+
Omit<DropdownEntryBase, 'key'> & {
|
|
206
|
+
/** Muted second line under the row text. */
|
|
207
|
+
description: string;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* `itemProps` of a fetched (pipeline) dropdown group — the ADDITIONAL fields of
|
|
212
|
+
* each fetched row (never its text or value). Public: type a standalone mapper
|
|
213
|
+
* with it, e.g.
|
|
214
|
+
* `const memberProps: BbDropdownItemProps<Member> = { description: 'email' }`.
|
|
215
|
+
*/
|
|
216
|
+
export type BbDropdownItemProps<T = any> = ItemProps<T, DropdownItemFields>;
|
|
217
|
+
|
|
167
218
|
/**
|
|
168
219
|
* A single actionable menu entry. Extends BbBaseButton (minus layout props) and
|
|
169
220
|
* can open a recursive submenu via `items`.
|
|
@@ -224,11 +275,18 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type'> &
|
|
|
224
275
|
multiple?: never;
|
|
225
276
|
/**
|
|
226
277
|
* Marks a synthetic placeholder row produced for a pipeline group while its
|
|
227
|
-
* async items load (`'loading'`) or when it resolved empty (`'
|
|
278
|
+
* async items load (`'loading'`) or when it resolved empty (`'empty'`).
|
|
228
279
|
* Rendered as a non-interactive row that shows `text` or, when provided, the
|
|
229
|
-
* dropdown's `loading` / `
|
|
280
|
+
* dropdown's `loading` / `empty` slot. Internal — set by `BbDropdownGroup`.
|
|
230
281
|
*/
|
|
231
|
-
placeholder?: 'loading' | '
|
|
282
|
+
placeholder?: 'loading' | 'empty';
|
|
283
|
+
/**
|
|
284
|
+
* Marks a row built by the pipeline resolver from a fetched item. Its
|
|
285
|
+
* `selectable` predicate already ran against the RAW item there, so
|
|
286
|
+
* `normalizeGroups` must not run it again against this row object.
|
|
287
|
+
* Internal.
|
|
288
|
+
*/
|
|
289
|
+
fetched?: true;
|
|
232
290
|
/**
|
|
233
291
|
* Optional slot token used to resolve per-item named slots. Primarily set
|
|
234
292
|
* by the pipeline resolver so slot names can be derived from the resolved
|
|
@@ -313,12 +371,36 @@ export type InternalGroup = DropdownEntryBase & {
|
|
|
313
371
|
/**
|
|
314
372
|
* Pipeline groups only. Path/getter producing each item's display text.
|
|
315
373
|
* Defaults to `JSON.stringify(item)` (or the string itself for strings).
|
|
374
|
+
*
|
|
375
|
+
* @defaultValue `JSON.stringify(item)`
|
|
316
376
|
*/
|
|
317
377
|
itemText?: string | ((item: any) => string);
|
|
378
|
+
/**
|
|
379
|
+
* Pipeline groups only. The ADDITIONAL fields of each fetched row — never its
|
|
380
|
+
* text or value, which stay on `itemText` / `itemValue`. A fetched row takes
|
|
381
|
+
* every field a hand-written row accepts except its identity and structure
|
|
382
|
+
* (`key`, `text`, `items`, `group`) and `disabled`: `description`, the icons,
|
|
383
|
+
* `variant`, `onClick`, `href` / `to` and the rest of the link and Inertia
|
|
384
|
+
* options.
|
|
385
|
+
*
|
|
386
|
+
* Either an object with a path or getter per field
|
|
387
|
+
* (`{ description: 'email', href: 'url' }`) or one function returning the
|
|
388
|
+
* fields (`(user) => ({ description: user.email, href: user.url })`). In
|
|
389
|
+
* the object form a function is always a getter, so a handler field returns
|
|
390
|
+
* the handler: `onClick: (user) => () => open(user)`.
|
|
391
|
+
*
|
|
392
|
+
* Nothing is read off the raw item implicitly — without `itemProps` a row
|
|
393
|
+
* has only its text. An empty value means the field is absent. To disable
|
|
394
|
+
* individual rows use a `selectable` predicate on the group; fetched groups
|
|
395
|
+
* are for selection (see plans/ITEM-DESCRIPTION.md v2.4).
|
|
396
|
+
*/
|
|
397
|
+
itemProps?: BbDropdownItemProps;
|
|
318
398
|
/**
|
|
319
399
|
* Pipeline groups only. Path/getter producing each item's value — what
|
|
320
400
|
* `v-model` surfaces; its hash is the internal selection key. Defaults to the
|
|
321
401
|
* whole item (so the key is the hash of the entire object).
|
|
402
|
+
*
|
|
403
|
+
* @defaultValue the whole item
|
|
322
404
|
*/
|
|
323
405
|
itemValue?: string | ((item: any) => any);
|
|
324
406
|
/** Pipeline groups only. Placeholder row text while async items load. */
|
|
@@ -333,11 +415,14 @@ export type InternalGroup = DropdownEntryBase & {
|
|
|
333
415
|
* predictable size regardless of row content. A `number` is pixels; a `string`
|
|
334
416
|
* is any CSS length (`'50vh'`, `'20rem'`). `'none'` (or `0`) removes the cap.
|
|
335
417
|
*
|
|
336
|
-
* `searchable` groups default to `280` (≈ 10 rows of 28px)
|
|
337
|
-
* list is usually long; set your own value to tweak, or
|
|
338
|
-
*
|
|
418
|
+
* `searchable` groups default to `280` (≈ 10 rows of 28px) **on the flyout**,
|
|
419
|
+
* since a searched list is usually long; set your own value to tweak, or
|
|
420
|
+
* `'none'` to uncap. The adaptive sheet ignores the cap so the OffCanvas
|
|
421
|
+
* body stays the only scroller (nested group overflow trapped swipes that
|
|
422
|
+
* started on a row). Non-searchable flyout groups are uncapped unless you
|
|
423
|
+
* set this.
|
|
339
424
|
*
|
|
340
|
-
* @defaultValue `280` for `searchable` groups, otherwise unset
|
|
425
|
+
* @defaultValue `280` for `searchable` flyout groups, otherwise unset
|
|
341
426
|
*/
|
|
342
427
|
maxHeight?: number | string;
|
|
343
428
|
/**
|
|
@@ -346,8 +431,17 @@ export type InternalGroup = DropdownEntryBase & {
|
|
|
346
431
|
* @defaultValue `false`
|
|
347
432
|
*/
|
|
348
433
|
multiple?: boolean;
|
|
434
|
+
/**
|
|
435
|
+
* Single selectable groups only: re-clicking the selected row clears the
|
|
436
|
+
* group (`item:unselected`, `v-model` → `null`). Without it a single group
|
|
437
|
+
* behaves like a radio group, and a re-click keeps the pick. Means nothing
|
|
438
|
+
* on a `multiple` group, where a checkbox always unchecks.
|
|
439
|
+
*
|
|
440
|
+
* @defaultValue `false`
|
|
441
|
+
*/
|
|
442
|
+
clearable?: boolean;
|
|
349
443
|
/** Pipeline groups only. Placeholder row text when there are no items. */
|
|
350
|
-
|
|
444
|
+
emptyText?: string;
|
|
351
445
|
/**
|
|
352
446
|
* Pipeline groups only. When the group's async items are fetched — same
|
|
353
447
|
* three-state contract as `BbSelect`'s `prefill`:
|
|
@@ -374,10 +468,20 @@ export type InternalGroup = DropdownEntryBase & {
|
|
|
374
468
|
/** Placeholder for this group's search field. Defaults to the localized label. */
|
|
375
469
|
searchPlaceholder?: string;
|
|
376
470
|
/**
|
|
377
|
-
* When
|
|
378
|
-
*
|
|
471
|
+
* When set, items act as selectable options that render a check on the right
|
|
472
|
+
* and keep the menu open when toggled.
|
|
473
|
+
*
|
|
474
|
+
* Pass a function `(item) => boolean` to gate individual rows — the same
|
|
475
|
+
* contract as `BbSelect` and the option groups. The group is still a
|
|
476
|
+
* selectable group; a row the function rejects renders disabled (clicks do
|
|
477
|
+
* nothing, keyboard navigation skips it), and the lock holds on a row that is
|
|
478
|
+
* already selected. `max` stays a soft cap on top. The function receives the
|
|
479
|
+
* raw fetched item in a fetched group, the row object in a hand-written one.
|
|
480
|
+
*
|
|
481
|
+
* This is how a fetched row is disabled: fetched groups are for selection, so
|
|
482
|
+
* their `itemProps` has no `disabled` (see the guide).
|
|
379
483
|
*/
|
|
380
|
-
selectable?: boolean;
|
|
484
|
+
selectable?: boolean | ((item: any) => boolean);
|
|
381
485
|
/**
|
|
382
486
|
* Searchable pipeline groups only. Accumulate the items behind *selected* keys
|
|
383
487
|
* so they stay resolvable across searches. Without it, selecting an item in one
|
|
@@ -435,6 +539,23 @@ export type FlatItem<T> = T extends Array<infer U> ? U : T;
|
|
|
435
539
|
* item's `items` is a submenu array). Without this last case such an entry would
|
|
436
540
|
* be treated as a plain item and its function `items` iterated ("not iterable").
|
|
437
541
|
*/
|
|
542
|
+
/**
|
|
543
|
+
* Whether a declared group is selectable: `selectable` set (a boolean, or a
|
|
544
|
+
* predicate — which counts as `true`), or `multiple` given an explicit value.
|
|
545
|
+
* Both unset ⇒ non-selectable. Value-based, not key presence: companion merges
|
|
546
|
+
* write `multiple: undefined` keys that must not read as selectable.
|
|
547
|
+
*/
|
|
548
|
+
export const isSelectableGroup = (
|
|
549
|
+
entry: Pick<InternalGroup, 'selectable' | 'multiple'>
|
|
550
|
+
): boolean =>
|
|
551
|
+
entry.selectable != null ? !!entry.selectable : entry.multiple != null;
|
|
552
|
+
|
|
553
|
+
/** The group's per-row `selectable` predicate, when it passed one. */
|
|
554
|
+
export const selectablePredicateOf = (
|
|
555
|
+
entry: Pick<InternalGroup, 'selectable'>
|
|
556
|
+
): ((item: any) => boolean) | undefined =>
|
|
557
|
+
typeof entry.selectable === 'function' ? entry.selectable : undefined;
|
|
558
|
+
|
|
438
559
|
export const isGroup = (entry: Item): entry is InternalGroup =>
|
|
439
560
|
!Array.isArray(entry) &&
|
|
440
561
|
((entry as InternalGroup).group === true ||
|
|
@@ -447,17 +568,27 @@ export const isGroup = (entry: Item): entry is InternalGroup =>
|
|
|
447
568
|
* non-selectable groups; {@link InternalGroup} objects keep their metadata. Selection
|
|
448
569
|
* defaults are resolved here. Produced by `normalizeGroups`.
|
|
449
570
|
*/
|
|
571
|
+
/**
|
|
572
|
+
* A row after normalization: its `key` is always set — the consumer's, or one
|
|
573
|
+
* the dropdown derived for a keyless action row (`keyless`, Q53.17).
|
|
574
|
+
*/
|
|
575
|
+
export type KeyedItem = InternalItem & { key: string };
|
|
576
|
+
|
|
450
577
|
export type NormalizedGroup = {
|
|
451
578
|
'append:icon'?: IconType;
|
|
579
|
+
/** Single groups: a re-click on the selected row clears it. */
|
|
580
|
+
clearable?: boolean;
|
|
452
581
|
/** Whether a divider is rendered before this group. */
|
|
453
582
|
divider: boolean;
|
|
454
583
|
/** Keys matched against each raw item when searching (empty ⇒ match text). */
|
|
455
584
|
filterBy?: string[];
|
|
456
|
-
items:
|
|
585
|
+
items: KeyedItem[];
|
|
457
586
|
/** Group key (when it originated from a {@link InternalGroup} object). */
|
|
458
587
|
key?: string;
|
|
459
588
|
/** Fixed max-height (px number or CSS length) of this group's item region. */
|
|
460
589
|
maxHeight?: number | string;
|
|
590
|
+
/** The group's own `meta`, untouched. */
|
|
591
|
+
meta?: any;
|
|
461
592
|
multiple: boolean;
|
|
462
593
|
onClick?: (...args: any[]) => any;
|
|
463
594
|
'prepend:icon'?: IconType;
|
|
@@ -486,7 +617,123 @@ export type MappedItem = InternalItem & {
|
|
|
486
617
|
onKeydown: (event: KeyboardEvent) => void;
|
|
487
618
|
};
|
|
488
619
|
|
|
620
|
+
/**
|
|
621
|
+
* Passthrough parts of `BbDropdown` (plans/passthrough/BbDropdown.md). Groups,
|
|
622
|
+
* headings and dividers are not parts.
|
|
623
|
+
*
|
|
624
|
+
* Per-item functions: on the instance, an entry part (`item`, `itemText`, `itemIcon`, `itemDescription`) also accepts `({ item, selected, … }) => PtValue | false | null | undefined` — `item` is the menu entry (an `Item`: its `text`, `key`, `description`, whatever else you put on it), and every state a boolean beside it, on for it (`selected`, `disabled`, …) — in the `pt` object or the `:pt:<part>` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the entry as it was. See the passthrough guide, _Per-item functions_.
|
|
625
|
+
*
|
|
626
|
+
* @part root - The floating element — an invisible positioning wrapper; a
|
|
627
|
+
* `class` on the component lands here. No node on the phone sheet: style
|
|
628
|
+
* what you see with `panel`.
|
|
629
|
+
* @part panel - The menu surface you see — the bordered flyout box on
|
|
630
|
+
* desktop, the sheet itself on a phone.
|
|
631
|
+
* @part sheet - The bottom sheet the menu becomes on a phone (the
|
|
632
|
+
* `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.
|
|
633
|
+
* @part header - The menu's header band.
|
|
634
|
+
* @part footer - The menu's footer band.
|
|
635
|
+
* @part input - A searchable group's search field — a broadcast: it lands on
|
|
636
|
+
* every searchable group's field, desktop and phone alike. Its magnifier
|
|
637
|
+
* glyph is chrome.
|
|
638
|
+
* @part list - The top-level items container between the bands — the node
|
|
639
|
+
* that lays the entries out (a flex column with a 1px gap; on a phone, the
|
|
640
|
+
* sheet's items container). A submenu's list is not reached. Groups,
|
|
641
|
+
* headings and dividers are not parts.
|
|
642
|
+
* @part item - One menu entry, submenus included — a broadcast resolved per
|
|
643
|
+
* entry. Also takes a per-item function, called with the entry.
|
|
644
|
+
* @part itemText - An entry's label (its `text`) — resolved with that
|
|
645
|
+
* entry's states. A per-entry `#<key>` slot replaces it. Also takes a
|
|
646
|
+
* per-item function.
|
|
647
|
+
* @part itemIcon - An entry's prepend / append icons — resolved with that
|
|
648
|
+
* entry's states. Also takes a per-item function.
|
|
649
|
+
* @part itemDescription - An entry's muted second line (its `description`) —
|
|
650
|
+
* resolved with that entry's states. A per-entry `#<key>` slot replaces it.
|
|
651
|
+
* Also takes a per-item function.
|
|
652
|
+
*/
|
|
653
|
+
export type BbDropdownPtPart =
|
|
654
|
+
| 'root'
|
|
655
|
+
| 'panel'
|
|
656
|
+
| 'sheet'
|
|
657
|
+
| 'header'
|
|
658
|
+
| 'footer'
|
|
659
|
+
| 'input'
|
|
660
|
+
| 'list'
|
|
661
|
+
| 'item'
|
|
662
|
+
| 'itemText'
|
|
663
|
+
| 'itemIcon'
|
|
664
|
+
| 'itemDescription';
|
|
665
|
+
/** The surface parts — they take a `PtValue` only. Spelled flat (T20). */
|
|
666
|
+
export type BbDropdownSurfacePtPart =
|
|
667
|
+
| 'root'
|
|
668
|
+
| 'panel'
|
|
669
|
+
| 'sheet'
|
|
670
|
+
| 'header'
|
|
671
|
+
| 'footer'
|
|
672
|
+
| 'input'
|
|
673
|
+
| 'list';
|
|
674
|
+
/** The entry parts — broadcasts resolved per entry; their base key also takes a per-item function. Spelled flat (T20). */
|
|
675
|
+
export type BbDropdownItemPtPart =
|
|
676
|
+
| 'item'
|
|
677
|
+
| 'itemText'
|
|
678
|
+
| 'itemIcon'
|
|
679
|
+
| 'itemDescription';
|
|
680
|
+
/**
|
|
681
|
+
* Passthrough states of `BbDropdown`, true while the matching `--` modifier is on.
|
|
682
|
+
*
|
|
683
|
+
* @state selected - Per node, on the entry parts: a selectable group's
|
|
684
|
+
* checked entry.
|
|
685
|
+
* @state disabled - Per node, on the entry parts: an entry that is disabled.
|
|
686
|
+
* @state open - Component-wide: the menu is open.
|
|
687
|
+
*/
|
|
688
|
+
export type BbDropdownPtState = 'open' | 'selected' | 'disabled';
|
|
689
|
+
/** The runtime lists the resolver is wired with — kept next to the types so the two cannot drift. */
|
|
690
|
+
export const BB_DROPDOWN_PT = {
|
|
691
|
+
parts: [
|
|
692
|
+
'root',
|
|
693
|
+
'panel',
|
|
694
|
+
'sheet',
|
|
695
|
+
'header',
|
|
696
|
+
'footer',
|
|
697
|
+
'input',
|
|
698
|
+
'list',
|
|
699
|
+
'item',
|
|
700
|
+
'itemText',
|
|
701
|
+
'itemIcon',
|
|
702
|
+
'itemDescription',
|
|
703
|
+
],
|
|
704
|
+
states: ['selected', 'disabled', 'open'],
|
|
705
|
+
} as const satisfies {
|
|
706
|
+
parts: readonly BbDropdownPtPart[];
|
|
707
|
+
states: readonly BbDropdownPtState[];
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
// Spelled INLINE with this component's own unions (Vue's SFC type resolver
|
|
711
|
+
// does not substitute a generic alias's type parameters — PASSTHROUGH.md T20).
|
|
712
|
+
// Two mapped types, never `Partial<Record<…>>`: the lint autofix rewrites one
|
|
713
|
+
// into the other and the SFC resolver reads only the mapped spelling (T23).
|
|
714
|
+
/* eslint-disable @typescript-eslint/consistent-indexed-object-style */
|
|
489
715
|
export type BbDropdownProps = {
|
|
716
|
+
[K in
|
|
717
|
+
| `pt:${BbDropdownSurfacePtPart}`
|
|
718
|
+
| `pt:${BbDropdownPtPart}:${BbDropdownPtState}`]?: PtValue;
|
|
719
|
+
} & {
|
|
720
|
+
// The entry parts also take a per-item function, called with the menu
|
|
721
|
+
// entry — a literal function type, not `PtItemFn` (T23).
|
|
722
|
+
[K in `pt:${BbDropdownItemPtPart}`]?:
|
|
723
|
+
| PtValue
|
|
724
|
+
| ((ctx: PtItemCtx<InternalItem, BbDropdownPtState>) => PtItemResult);
|
|
725
|
+
} & {
|
|
726
|
+
/* eslint-enable @typescript-eslint/consistent-indexed-object-style */
|
|
727
|
+
/**
|
|
728
|
+
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
729
|
+
* without the prefix. See the `pt:<part>` row.
|
|
730
|
+
*/
|
|
731
|
+
pt?: PtItemMap<
|
|
732
|
+
BbDropdownPtPart,
|
|
733
|
+
BbDropdownItemPtPart,
|
|
734
|
+
BbDropdownPtState,
|
|
735
|
+
InternalItem
|
|
736
|
+
>;
|
|
490
737
|
/**
|
|
491
738
|
* External activator element or component ref.
|
|
492
739
|
* When provided, the activator slot is not rendered and event listeners
|
|
@@ -506,6 +753,17 @@ export type BbDropdownProps = {
|
|
|
506
753
|
* @defaultValue `config.adaptive` (`true`)
|
|
507
754
|
*/
|
|
508
755
|
adaptive?: boolean;
|
|
756
|
+
/**
|
|
757
|
+
* Apply the compact density variant — the same ladder `BbSelect` uses, on
|
|
758
|
+
* both surfaces: flyout rows go 28px → 24px, sheet rows 44px → 36px. The
|
|
759
|
+
* label size does not change; density here is height, as it is for a select.
|
|
760
|
+
*
|
|
761
|
+
* A menu row is a touch target in a way a select option is not quite — a
|
|
762
|
+
* mis-tap fires the neighbouring COMMAND rather than picking the wrong value
|
|
763
|
+
* — so the compact sheet stops at 36px and never follows the flyout down to
|
|
764
|
+
* 24px. That is the same floor the select's sheet holds.
|
|
765
|
+
*/
|
|
766
|
+
compact?: boolean;
|
|
509
767
|
/**
|
|
510
768
|
* Element the panel positions itself against, when it should differ from the
|
|
511
769
|
* activator — e.g. a wrapper that the activator is only a part of, so the menu
|
|
@@ -537,7 +795,9 @@ export type BbDropdownProps = {
|
|
|
537
795
|
*/
|
|
538
796
|
enforceCoherence?: boolean;
|
|
539
797
|
/**
|
|
540
|
-
*
|
|
798
|
+
* Names this dropdown: the activator's id (unless it already has one),
|
|
799
|
+
* the menu's `menu_<id>`, and the key `useBbDropdownContext(id)` and a
|
|
800
|
+
* companion `BbDropdownGroup` pair by. Generated when omitted.
|
|
541
801
|
*/
|
|
542
802
|
id?: string;
|
|
543
803
|
/**
|
|
@@ -560,21 +820,31 @@ export type BbDropdownProps = {
|
|
|
560
820
|
loadingText?: string;
|
|
561
821
|
/**
|
|
562
822
|
* Default placeholder text shown when a pipeline group resolves to no items.
|
|
563
|
-
* A group's own `
|
|
564
|
-
* `common.
|
|
823
|
+
* A group's own `emptyText` overrides this; both fall back to the localized
|
|
824
|
+
* `common.emptyText` (`'No data to display'`).
|
|
565
825
|
*/
|
|
566
|
-
|
|
826
|
+
emptyText?: string;
|
|
567
827
|
/**
|
|
828
|
+
* Props for the phone sheet. A `pt` inside it, object or colon keys, styles
|
|
829
|
+
* only that sheet.
|
|
830
|
+
*
|
|
568
831
|
* Overrides forwarded to the underlying `BbOffCanvas` when `adaptive` renders
|
|
569
832
|
* the sheet on mobile. Merged over the adaptive defaults
|
|
570
|
-
* (`
|
|
833
|
+
* (`side: 'bottom'`, `size: 'auto'`, `draggable: true`). Ignored when
|
|
571
834
|
* `adaptive` is `false`.
|
|
835
|
+
*
|
|
836
|
+
* A `pt` inside it styles ONLY the sheet, in `BbOffCanvas`'s part words
|
|
837
|
+
* (`root`, `header`, `title`, `description`, `content`, `footer`, `close`;
|
|
838
|
+
* state `open`), object (`{ pt: { header: '…' } }`) or colon keys
|
|
839
|
+
* (`{ 'pt:header': '…' }`) alike. It merges after what this component
|
|
840
|
+
* forwards to its sheet, so it wins a conflict and drops nothing — see the
|
|
841
|
+
* passthrough guide § Inside the sheet.
|
|
572
842
|
*/
|
|
573
843
|
offCanvasProps?: Partial<BbOffCanvasProps>;
|
|
574
844
|
/**
|
|
575
845
|
* Space the floating container will maintain from the activator.
|
|
576
846
|
*
|
|
577
|
-
* @defaultValue `
|
|
847
|
+
* @defaultValue `4`
|
|
578
848
|
*/
|
|
579
849
|
offset?: number;
|
|
580
850
|
/**
|
|
@@ -585,7 +855,8 @@ export type BbDropdownProps = {
|
|
|
585
855
|
padding?: number;
|
|
586
856
|
/**
|
|
587
857
|
* Position of the dropdown relative to the activator.
|
|
588
|
-
* Use `'cursor'` to anchor at the mouse/touch coordinates
|
|
858
|
+
* Use `'cursor'` to anchor at the mouse/touch coordinates.
|
|
859
|
+
* (No arrow is drawn either way — arrows are tooltip-only in v3.)
|
|
589
860
|
*
|
|
590
861
|
* @defaultValue `'bottom'`
|
|
591
862
|
*/
|
|
@@ -599,7 +870,9 @@ export type BbDropdownProps = {
|
|
|
599
870
|
queryDebounceTime?: number;
|
|
600
871
|
/**
|
|
601
872
|
* How long the transition has to last in milliseconds. Menus use the fast
|
|
602
|
-
* transition rather than the medium one the other popovers
|
|
873
|
+
* transition (150) rather than the medium one (250) the other popovers
|
|
874
|
+
* default to: a menu is opened to pick one command and is gone again, so
|
|
875
|
+
* it answers faster than a panel the user reads or edits in.
|
|
603
876
|
*
|
|
604
877
|
* @defaultValue `150`
|
|
605
878
|
*/
|
|
@@ -622,6 +895,14 @@ export type BbDropdownProps = {
|
|
|
622
895
|
};
|
|
623
896
|
|
|
624
897
|
export type BbDropdownEvents = {
|
|
898
|
+
/** Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open. */
|
|
899
|
+
(e: 'show'): void;
|
|
900
|
+
/** Emitted once the menu is open and its open transition has finished. */
|
|
901
|
+
(e: 'shown'): void;
|
|
902
|
+
/** Emitted as soon as the menu starts to close. */
|
|
903
|
+
(e: 'hide'): void;
|
|
904
|
+
/** Emitted once the menu has finished closing. */
|
|
905
|
+
(e: 'hidden'): void;
|
|
625
906
|
/**
|
|
626
907
|
* Fired when an item in any selectable group becomes selected. The payload is
|
|
627
908
|
* the item's resolved value (its `item-value` for pipeline groups, else its
|
|
@@ -668,12 +949,45 @@ export type BbDropdownEdgeSlotProps = {
|
|
|
668
949
|
placement: BbDropdownProps['placement'];
|
|
669
950
|
};
|
|
670
951
|
|
|
952
|
+
/**
|
|
953
|
+
* The group a slot renders in, as item slots see it. Anonymous groups (loose
|
|
954
|
+
* items, plain arrays) have no `key` and no `label`.
|
|
955
|
+
*/
|
|
956
|
+
export type BbDropdownSlotGroup = {
|
|
957
|
+
/** The group's key, when it was declared as a group object. */
|
|
958
|
+
key?: string;
|
|
959
|
+
/** The group's label, when it has one (also when `hideLabel` hides it). */
|
|
960
|
+
label?: string;
|
|
961
|
+
/** The group's own `meta`. */
|
|
962
|
+
meta?: any;
|
|
963
|
+
/** Whether the group is multi-select. */
|
|
964
|
+
multiple: boolean;
|
|
965
|
+
/** Whether the group's rows are choices. */
|
|
966
|
+
selectable: boolean;
|
|
967
|
+
};
|
|
968
|
+
|
|
671
969
|
/** Props exposed by the `item:prepend` and `item:append` slots, and named item slots. */
|
|
672
970
|
export type BbDropdownItemSlotProps = {
|
|
673
971
|
/** The item's muted description line, when set. */
|
|
674
972
|
description?: InternalItem['description'];
|
|
675
973
|
/** Whether this item is disabled. */
|
|
676
974
|
disabled?: InternalItem['disabled'];
|
|
975
|
+
/**
|
|
976
|
+
* The group this row sits in. On a group's title line (`groupTitle`), the
|
|
977
|
+
* group itself.
|
|
978
|
+
*/
|
|
979
|
+
group: BbDropdownSlotGroup;
|
|
980
|
+
/**
|
|
981
|
+
* `true` when the slot is drawing a group's title line rather than a row.
|
|
982
|
+
* The shared `item:prepend` / `item:append` slots run for both, with the
|
|
983
|
+
* group passed as `item` on a title line.
|
|
984
|
+
*/
|
|
985
|
+
groupTitle: boolean;
|
|
986
|
+
/**
|
|
987
|
+
* Nesting depth of the menu the slot renders in: `0` for the root menu,
|
|
988
|
+
* `1` for a submenu, and so on — the same on the flyout and the phone sheet.
|
|
989
|
+
*/
|
|
990
|
+
level: number;
|
|
677
991
|
/** The zero-based index of this item among the flattened items. */
|
|
678
992
|
index: number;
|
|
679
993
|
/** The raw item object from the `items` prop. */
|
|
@@ -693,14 +1007,33 @@ export type BbDropdownItemSlotProps = {
|
|
|
693
1007
|
text: InternalItem['text'];
|
|
694
1008
|
};
|
|
695
1009
|
|
|
696
|
-
/** Props exposed by the `loading` and `
|
|
1010
|
+
/** Props exposed by the `loading` and `empty` placeholder slots. */
|
|
697
1011
|
export type BbDropdownPlaceholderSlotProps = {
|
|
698
1012
|
/** Key of the group this placeholder belongs to. */
|
|
699
1013
|
groupKey?: string;
|
|
700
|
-
/** Resolved placeholder text (group `loadingText`/`
|
|
1014
|
+
/** Resolved placeholder text (group `loadingText`/`emptyText` → dropdown default). */
|
|
701
1015
|
text: string;
|
|
702
1016
|
};
|
|
703
1017
|
|
|
1018
|
+
/**
|
|
1019
|
+
* Besides the fixed slots, every entry gets named slots from its key run
|
|
1020
|
+
* through `slotKey` (`'practice-switcher'` → `practice_switcher`). The most
|
|
1021
|
+
* specific slot a row has wins: its own, then its group's, then the shared
|
|
1022
|
+
* `item:prepend` / `item:append`. Each edge has ONE occupant: a slot replaces
|
|
1023
|
+
* the `prepend:icon` / `append:icon`. On the trailing edge the selected row's
|
|
1024
|
+
* check beats every slot, a row's own `#<key>:append` beats the submenu
|
|
1025
|
+
* chevron, and the chevron beats the group-wide and shared slots.
|
|
1026
|
+
*
|
|
1027
|
+
* @dynamicSlot `<key>` {BbDropdownItemSlotProps} - One row's content (text and description), by its key; in a fetched group, by its resolved `itemValue`.
|
|
1028
|
+
* @dynamicSlot `<key>:prepend` {BbDropdownItemSlotProps} - One row's leading region; replaces its `prepend:icon`.
|
|
1029
|
+
* @dynamicSlot `<key>:append` {BbDropdownItemSlotProps} - One row's trailing region; replaces its `append:icon` and its submenu chevron. The check takes its place on the selected row.
|
|
1030
|
+
* @dynamicSlot `<groupKey>:item` {BbDropdownItemSlotProps} - The content of every row of that group, and no other; a row's own `#<key>` still wins.
|
|
1031
|
+
* @dynamicSlot `<groupKey>:item:prepend` {BbDropdownItemSlotProps} - The leading region of every row of that group — e.g. an avatar per record, drawn from `item.meta`, while other rows keep their `prepend:icon`.
|
|
1032
|
+
* @dynamicSlot `<groupKey>:item:append` {BbDropdownItemSlotProps} - The trailing region of every row of that group; replaces their `append:icon`. The check takes its place on the selected row.
|
|
1033
|
+
* @dynamicSlot `<groupKey>` {BbDropdownItemSlotProps} - That group's title line (the group is passed as `item`, `groupTitle` is `true`).
|
|
1034
|
+
* @dynamicSlot `<groupKey>:prepend` {BbDropdownItemSlotProps} - The leading region of that group's title line.
|
|
1035
|
+
* @dynamicSlot `<groupKey>:append` {BbDropdownItemSlotProps} - The trailing region of that group's title line.
|
|
1036
|
+
*/
|
|
704
1037
|
export type BbDropdownSlots = {
|
|
705
1038
|
/**
|
|
706
1039
|
* Hosts `<BbDropdownGroup>` companions. They register their group with the
|
|
@@ -716,7 +1049,7 @@ export type BbDropdownSlots = {
|
|
|
716
1049
|
* Replaces the default "no data" placeholder row shown in a pipeline group
|
|
717
1050
|
* that resolved to no items. Rendered once per empty group.
|
|
718
1051
|
*/
|
|
719
|
-
|
|
1052
|
+
empty?: (props: BbDropdownPlaceholderSlotProps) => any;
|
|
720
1053
|
/**
|
|
721
1054
|
* The element that triggers the dropdown to open. Spread `props` onto your trigger element.
|
|
722
1055
|
*/
|
|
@@ -728,11 +1061,14 @@ export type BbDropdownSlots = {
|
|
|
728
1061
|
*/
|
|
729
1062
|
header?: (props: BbDropdownEdgeSlotProps) => any;
|
|
730
1063
|
/**
|
|
731
|
-
*
|
|
1064
|
+
* The leading region of every row (and group title line), replacing its
|
|
1065
|
+
* `prepend:icon`. A row's own or its group's named slot wins over it.
|
|
732
1066
|
*/
|
|
733
1067
|
'item:prepend'?: (props: BbDropdownItemSlotProps) => any;
|
|
734
1068
|
/**
|
|
735
|
-
*
|
|
1069
|
+
* The trailing region of every row (and group title line), replacing its
|
|
1070
|
+
* `append:icon`. A named slot wins over it; the submenu chevron and the
|
|
1071
|
+
* check on a selected row take its place.
|
|
736
1072
|
*/
|
|
737
1073
|
'item:append'?: (props: BbDropdownItemSlotProps) => any;
|
|
738
1074
|
/**
|
|
@@ -786,7 +1122,16 @@ export type BbDropdownGroupEvents = {
|
|
|
786
1122
|
## Styles
|
|
787
1123
|
|
|
788
1124
|
```css
|
|
789
|
-
/*
|
|
1125
|
+
/* Sealed fill (Q44.15): the plate paints `--bg`, defaulted to the panel at
|
|
1126
|
+
specificity 0 — a `pt` class or a theme island retints this one surface
|
|
1127
|
+
without moving `--bb-panel` for every panel on the page. */
|
|
1128
|
+
:where(.bb-dropdown__group-search) {
|
|
1129
|
+
--bg: var(--bb-panel);
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/* @inherit --transition-duration — set inline by the adaptive surface;
|
|
1133
|
+
@inherit --py — the adaptive sheet's rules target BbOffCanvas elements, which
|
|
1134
|
+
declare it on the panel */
|
|
790
1135
|
.bb-dropdown {
|
|
791
1136
|
overflow: visible;
|
|
792
1137
|
|
|
@@ -796,7 +1141,7 @@ export type BbDropdownGroupEvents = {
|
|
|
796
1141
|
}
|
|
797
1142
|
|
|
798
1143
|
/* Inset between the menu's outer chrome and its first item — owned here and
|
|
799
|
-
* consumed by both `.bb-
|
|
1144
|
+
* consumed by both `.bb-dropdown__list`'s padding and the submenu
|
|
800
1145
|
* lead-in below, so the two can never drift apart. */
|
|
801
1146
|
--menu-inset: 4px;
|
|
802
1147
|
|
|
@@ -806,7 +1151,9 @@ export type BbDropdownGroupEvents = {
|
|
|
806
1151
|
* BOTH: the previous `-4px` covered the padding only and left every submenu
|
|
807
1152
|
* sitting exactly 1px low (measured, GROK-BTG-035). */
|
|
808
1153
|
&.bb-dropdown--submenu > .bb-common-popover__bubble {
|
|
809
|
-
margin-top: calc(
|
|
1154
|
+
margin-top: calc(
|
|
1155
|
+
-1 * (var(--menu-inset) + var(--bubble-border-w, var(--bb-border-w)))
|
|
1156
|
+
);
|
|
810
1157
|
}
|
|
811
1158
|
|
|
812
1159
|
/* Submenus: shadcn-style soft zoom + a slight sideways slide from the side
|
|
@@ -840,12 +1187,23 @@ export type BbDropdownGroupEvents = {
|
|
|
840
1187
|
}
|
|
841
1188
|
}
|
|
842
1189
|
|
|
843
|
-
/* Root panel
|
|
844
|
-
*
|
|
845
|
-
*
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
1190
|
+
/* Root panel = CommonPopover's bubble itself (bound through `bubble-attrs`,
|
|
1191
|
+
* as on BbPopover): a flex column so `header`/`footer` pin outside the
|
|
1192
|
+
* scrolling items region. Owns the height cap for the root menu; submenus
|
|
1193
|
+
* have no panel and cap on the items-container itself (below).
|
|
1194
|
+
*
|
|
1195
|
+
* Compounded with the bubble class: the bubble's own `display: block` is
|
|
1196
|
+
* (0,2,0) too, so a plain `.bb-dropdown .bb-dropdown__panel` would be decided
|
|
1197
|
+
* by sheet order. No `border-radius` here — the bubble's radius is the one
|
|
1198
|
+
* that paints.
|
|
1199
|
+
*
|
|
1200
|
+
* `content-box`, deliberately: `--w`, `min-width` and `--max-h` size the box
|
|
1201
|
+
* INSIDE the border, exactly as they did when the panel was a borderless box
|
|
1202
|
+
* nested in the bubble. The items container below also takes `--w` and
|
|
1203
|
+
* `min-width` as its own border-box width, so a border-box panel would be
|
|
1204
|
+
* 2px narrower inside than its items and `overflow: clip` would cut them. */
|
|
1205
|
+
.bb-dropdown__panel.bb-common-popover__bubble {
|
|
1206
|
+
box-sizing: content-box;
|
|
849
1207
|
color: var(--bb-text);
|
|
850
1208
|
display: flex;
|
|
851
1209
|
flex-direction: column;
|
|
@@ -871,11 +1229,11 @@ export type BbDropdownGroupEvents = {
|
|
|
871
1229
|
}
|
|
872
1230
|
|
|
873
1231
|
.bb-dropdown__header {
|
|
874
|
-
border-bottom:
|
|
1232
|
+
border-bottom: var(--bb-border-w) solid var(--bb-border);
|
|
875
1233
|
}
|
|
876
1234
|
|
|
877
1235
|
.bb-dropdown__footer {
|
|
878
|
-
border-top:
|
|
1236
|
+
border-top: var(--bb-border-w) solid var(--bb-border);
|
|
879
1237
|
}
|
|
880
1238
|
|
|
881
1239
|
/* Per-group search row: rendered at the top of a `searchable` group's list
|
|
@@ -883,8 +1241,8 @@ export type BbDropdownGroupEvents = {
|
|
|
883
1241
|
* put while that group's rows scroll under it. */
|
|
884
1242
|
.bb-dropdown__group-search {
|
|
885
1243
|
align-items: center;
|
|
886
|
-
background: var(--
|
|
887
|
-
border-bottom:
|
|
1244
|
+
background: var(--bg);
|
|
1245
|
+
border-bottom: var(--bb-border-w) solid var(--bb-border);
|
|
888
1246
|
box-sizing: border-box;
|
|
889
1247
|
color: var(--bb-text-muted);
|
|
890
1248
|
display: flex;
|
|
@@ -988,7 +1346,7 @@ export type BbDropdownGroupEvents = {
|
|
|
988
1346
|
}
|
|
989
1347
|
}
|
|
990
1348
|
|
|
991
|
-
.bb-
|
|
1349
|
+
.bb-dropdown__list {
|
|
992
1350
|
border-radius: var(--bb-radius);
|
|
993
1351
|
box-sizing: border-box;
|
|
994
1352
|
color: var(--bb-text);
|
|
@@ -999,7 +1357,11 @@ export type BbDropdownGroupEvents = {
|
|
|
999
1357
|
* is inert there and `max-height` alone caps it. */
|
|
1000
1358
|
flex: 1 1 auto;
|
|
1001
1359
|
flex-direction: column;
|
|
1002
|
-
|
|
1360
|
+
/* `--bb-fs`, matching the select's option label. These two menus sit at
|
|
1361
|
+
the same 28px row height on the same screen and their labels were a
|
|
1362
|
+
pixel apart (13 against 14) — the desktop twin of the sheet drift, and
|
|
1363
|
+
the kind of difference nobody can name but everybody sees. */
|
|
1364
|
+
font-size: var(--bb-fs);
|
|
1003
1365
|
gap: 1px;
|
|
1004
1366
|
line-height: 1.2;
|
|
1005
1367
|
max-height: var(--max-h, none);
|
|
@@ -1025,9 +1387,10 @@ export type BbDropdownGroupEvents = {
|
|
|
1025
1387
|
|
|
1026
1388
|
.bb-dropdown__group-title {
|
|
1027
1389
|
align-items: center;
|
|
1028
|
-
/* Same
|
|
1029
|
-
*
|
|
1030
|
-
|
|
1390
|
+
/* Same token as BbSelectPopover's group headers (parity ruling), so
|
|
1391
|
+
* the two menus can never drift. Muted, not faint: a title is read
|
|
1392
|
+
* (and can be clicked), and faint fails AA on live text (Q44.18). */
|
|
1393
|
+
color: var(--bb-text-muted);
|
|
1031
1394
|
column-gap: 6px;
|
|
1032
1395
|
display: inline-flex;
|
|
1033
1396
|
/* Don't let the flex column squash rows when `max-height` kicks in —
|
|
@@ -1073,7 +1436,7 @@ export type BbDropdownGroupEvents = {
|
|
|
1073
1436
|
/* Negative inline margins cancel the container padding so the rule
|
|
1074
1437
|
* spans the full width of the dropdown panel, edge to edge. */
|
|
1075
1438
|
border: none;
|
|
1076
|
-
border-top:
|
|
1439
|
+
border-top: var(--bb-border-w) solid var(--bb-border);
|
|
1077
1440
|
height: 0;
|
|
1078
1441
|
margin: var(--menu-inset) calc(-1 * var(--menu-inset));
|
|
1079
1442
|
}
|
|
@@ -1151,7 +1514,7 @@ export type BbDropdownGroupEvents = {
|
|
|
1151
1514
|
white-space: nowrap;
|
|
1152
1515
|
}
|
|
1153
1516
|
|
|
1154
|
-
.
|
|
1517
|
+
.bb-dropdown__item-description {
|
|
1155
1518
|
color: var(--bb-text-muted);
|
|
1156
1519
|
display: block;
|
|
1157
1520
|
font-size: calc(var(--bb-fs) - 2px);
|
|
@@ -1261,7 +1624,7 @@ export type BbDropdownGroupEvents = {
|
|
|
1261
1624
|
/* The group search is a real text field: below 16px mobile Safari force-zooms
|
|
1262
1625
|
the page when it takes focus. `--bb-input-fs-mobile` is the existing
|
|
1263
1626
|
`max(--bb-input-fs, 16px)` token the wrapped controls use — this is a bare
|
|
1264
|
-
`<input>` outside
|
|
1627
|
+
`<input>` outside CommonFieldInput, so it never inherited that rule.
|
|
1265
1628
|
Gated on the pointer rather than `--mobile` so it also covers touch devices
|
|
1266
1629
|
above `mobileMaxWidth`, and so it can never feed back into the width signal
|
|
1267
1630
|
(see `useMobile`). */
|
|
@@ -1271,6 +1634,24 @@ export type BbDropdownGroupEvents = {
|
|
|
1271
1634
|
}
|
|
1272
1635
|
}
|
|
1273
1636
|
|
|
1637
|
+
/* ---- Compact density --------------------------------------------------
|
|
1638
|
+
* The same ladder `BbSelect` walks, so a dense toolbar can hold a select and a
|
|
1639
|
+
* menu that agree: the flyout drops 28px → 24px here, and the SHEET drops
|
|
1640
|
+
* 44px → 36px through `--sheet-row-h` (AdaptiveDropdown reads
|
|
1641
|
+
* `listboxOptionHeight`, the helper the listbox reads, so neither can drift).
|
|
1642
|
+
* The label does not shrink — density is height, exactly as it is for a select
|
|
1643
|
+
* — and the sheet never follows the flyout to 24px, because a menu row is a
|
|
1644
|
+
* touch target whose mis-tap fires the neighbouring COMMAND. */
|
|
1645
|
+
.bb-dropdown.bb-dropdown--compact {
|
|
1646
|
+
.bb-dropdown__item {
|
|
1647
|
+
height: 24px;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
.bb-dropdown__placeholder {
|
|
1651
|
+
min-height: 24px;
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1274
1655
|
/* ---- Adaptive drill-down sheet ----------------------------------------
|
|
1275
1656
|
* The mobile surface (`AdaptiveDropdown`) reuses the `.bb-dropdown` classes
|
|
1276
1657
|
* above by carrying `.bb-dropdown` on the off-canvas root; these rules only
|
|
@@ -1280,7 +1661,102 @@ export type BbDropdownGroupEvents = {
|
|
|
1280
1661
|
/* Shrink the off-canvas chrome so the sheet reads as compact as the desktop
|
|
1281
1662
|
panel rather than a full dialog. */
|
|
1282
1663
|
--dialog-gap: 8px;
|
|
1283
|
-
|
|
1664
|
+
/* The title tracks the row label rather than the off-canvas default. It was
|
|
1665
|
+
pulled DOWN to `--bb-fs - 1` (13px) once, which put it under the rows it
|
|
1666
|
+
heads; the default (`--bb-fs + 2`) fixed that until the rows moved to 18px
|
|
1667
|
+
and passed it again. Tied to the same constant, a title can no longer end
|
|
1668
|
+
up smaller than the list beneath it whatever that constant becomes. */
|
|
1669
|
+
--dialog-title-fs: var(--sheet-option-fs, 1rem);
|
|
1670
|
+
|
|
1671
|
+
/* Root sheet title via `offCanvasProps.title` (no drill nav / custom
|
|
1672
|
+
`#header`): centre it and tighten the title→divider air like BbSelect.
|
|
1673
|
+
`:not(:has(.bb-dropdown__nav))` keeps consumer `#header` content and the
|
|
1674
|
+
drill nav on their own layouts. */
|
|
1675
|
+
.bb-offcanvas__header:not(:has(.bb-dropdown__nav)) {
|
|
1676
|
+
border-bottom: var(--bb-border-w) solid var(--bb-border);
|
|
1677
|
+
padding-bottom: calc(var(--py) - 6px);
|
|
1678
|
+
|
|
1679
|
+
> .bb-offcanvas__title {
|
|
1680
|
+
flex: 1 1 auto;
|
|
1681
|
+
text-align: center;
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
/* Drill nav owns the title→body air. Drop the OffCanvas header's own bottom
|
|
1686
|
+
pad so it does not stack under the nav and push chips / search below
|
|
1687
|
+
BbSelect's. */
|
|
1688
|
+
.bb-offcanvas__header:has(.bb-dropdown__nav--drill) {
|
|
1689
|
+
padding-bottom: 0;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
/* Body used to start flush under the header. Match BbSelect's step down
|
|
1693
|
+
from the title rule. Specificity beats OffCanvas's nested shorthand.
|
|
1694
|
+
Skip headerless sheets (`--no-header`): OffCanvas already supplies the
|
|
1695
|
+
top inset (and the handle clearance) that this would otherwise crush to
|
|
1696
|
+
0.5rem — the filters root with no title / drill nav / `#header`. */
|
|
1697
|
+
&.bb-offcanvas:not(.bb-offcanvas--no-header) .bb-offcanvas__content {
|
|
1698
|
+
padding-top: 0.5rem;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
/* Flat multi-group sheets: space a following section after the previous
|
|
1702
|
+
group's items/search. */
|
|
1703
|
+
.bb-dropdown__group-items + .bb-dropdown__group-title,
|
|
1704
|
+
.bb-dropdown__group-search + .bb-dropdown__group-title,
|
|
1705
|
+
.bb-dropdown__divider + .bb-dropdown__group-title {
|
|
1706
|
+
margin-top: 0.5rem;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
/* Group headers on the sheet read as BbSelect's sheet label — centred title
|
|
1710
|
+
weight/size, not the flyout's faint left-aligned section caption. No
|
|
1711
|
+
hairline here: the select sheet label's rule lives on the OffCanvas
|
|
1712
|
+
header, and repeating it under every group stacked like extra chrome.
|
|
1713
|
+
Nested drills with `hideLabel` skip this entirely; the drill nav title is
|
|
1714
|
+
already that label. */
|
|
1715
|
+
.bb-dropdown__group-title {
|
|
1716
|
+
align-items: center;
|
|
1717
|
+
border-bottom: 0;
|
|
1718
|
+
color: var(--bb-text);
|
|
1719
|
+
column-gap: 6px;
|
|
1720
|
+
display: flex;
|
|
1721
|
+
font-size: var(--dialog-title-fs, var(--sheet-option-fs, 1rem));
|
|
1722
|
+
font-weight: 500;
|
|
1723
|
+
justify-content: center;
|
|
1724
|
+
letter-spacing: normal;
|
|
1725
|
+
/* Match select's title→body air (`padding-bottom: calc(var(--py) - 6px)`
|
|
1726
|
+
on the OffCanvas header) so the label sits above the soft search the
|
|
1727
|
+
same way City sits above its field. */
|
|
1728
|
+
padding: 0.25rem 0 calc(var(--py, var(--bb-panel-p)) - 6px);
|
|
1729
|
+
|
|
1730
|
+
.group-title__content {
|
|
1731
|
+
flex: 1 1 auto;
|
|
1732
|
+
line-height: normal;
|
|
1733
|
+
overflow-x: clip;
|
|
1734
|
+
overflow-y: visible;
|
|
1735
|
+
text-align: center;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.group-title__prepend-icon,
|
|
1739
|
+
.group-title__append-icon {
|
|
1740
|
+
--size: 1.25rem;
|
|
1741
|
+
font-size: var(--size);
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
/* Headerless sheet: the first group title IS the sheet label (Flat filters'
|
|
1746
|
+
"Status" beside BbSelect's "City"). Body already clears the handle via
|
|
1747
|
+
`--no-header` padding (`calc(var(--py) + 12px)`); the items-container's
|
|
1748
|
+
4px (meant for air under a nav divider) and the title's own 0.25rem top
|
|
1749
|
+
pad were stacking on top and dropping the label ~8px below City.
|
|
1750
|
+
Measured: City title @29px, Flat Status @33–37px before this. */
|
|
1751
|
+
&.bb-offcanvas--no-header .bb-dropdown__list {
|
|
1752
|
+
padding-top: 0;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
&.bb-offcanvas--no-header
|
|
1756
|
+
.bb-dropdown__list
|
|
1757
|
+
> .bb-dropdown__group-title:first-child {
|
|
1758
|
+
padding-top: 0;
|
|
1759
|
+
}
|
|
1284
1760
|
|
|
1285
1761
|
/* Clip the sideways level slide so it never spills a horizontal scrollbar. */
|
|
1286
1762
|
.bb-dropdown__adaptive-body {
|
|
@@ -1310,55 +1786,132 @@ export type BbDropdownGroupEvents = {
|
|
|
1310
1786
|
* construction, so this selector needs no viewport clause of its own. The
|
|
1311
1787
|
* JS half lives in `useTouchRowLadder`, for the virtualized option lists
|
|
1312
1788
|
* whose row heights feed a virtualizer instead of a stylesheet. */
|
|
1313
|
-
|
|
1314
|
-
|
|
1789
|
+
/* Belt for an explicit `maxHeight` leaking onto the sheet: never nest a
|
|
1790
|
+
second scrollport inside the OffCanvas body. */
|
|
1791
|
+
.bb-dropdown__group-items--capped {
|
|
1792
|
+
display: contents;
|
|
1793
|
+
max-height: none;
|
|
1794
|
+
overflow: visible;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
.bb-dropdown__list {
|
|
1798
|
+
/* Published by AdaptiveDropdown from `listboxMetrics`, the same helpers the
|
|
1799
|
+
select's sheet reads. The fallbacks are the shipped touch values, so the
|
|
1800
|
+
stylesheet still reads on its own. */
|
|
1801
|
+
font-size: var(--sheet-option-fs, 1rem);
|
|
1315
1802
|
max-height: none;
|
|
1316
1803
|
min-width: 0;
|
|
1317
1804
|
overflow-y: visible;
|
|
1318
|
-
|
|
1805
|
+
/* Horizontal inset is the OffCanvas body's `--px`. Do not re-pad here
|
|
1806
|
+
(or on the rows) to fake alignment with search/chips. */
|
|
1807
|
+
padding: 4px 0 0;
|
|
1319
1808
|
width: 100%;
|
|
1320
1809
|
|
|
1321
1810
|
.bb-dropdown__item {
|
|
1322
|
-
height: 44px;
|
|
1323
|
-
|
|
1811
|
+
height: var(--sheet-row-h, 44px);
|
|
1812
|
+
/* Flyout rows are `2px 6px`. +4px start so the label shares the
|
|
1813
|
+
search field's text edge (`padding-inline: 0.75rem` on the fill). */
|
|
1814
|
+
padding-left: calc(6px + 4px);
|
|
1815
|
+
/* iOS treats a <button> as a tap target and will not hand the pan to
|
|
1816
|
+
the sheet body unless the control itself opts into vertical panning.
|
|
1817
|
+
Without this, dismiss/scroll work on the handle and miss on rows. */
|
|
1818
|
+
touch-action: pan-y;
|
|
1324
1819
|
|
|
1325
1820
|
&.bb-dropdown__item--description {
|
|
1326
|
-
min-height: 44px;
|
|
1821
|
+
min-height: var(--sheet-row-h, 44px);
|
|
1327
1822
|
}
|
|
1328
1823
|
|
|
1329
|
-
.
|
|
1330
|
-
|
|
1824
|
+
.item__content {
|
|
1825
|
+
line-height: normal;
|
|
1826
|
+
overflow-x: clip;
|
|
1827
|
+
overflow-y: visible;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
/* One step under the row label, the same step the listbox puts between
|
|
1831
|
+
an option and its group header — so the two sheets' secondary text
|
|
1832
|
+
agrees as well as their primary. */
|
|
1833
|
+
.bb-dropdown__item-description {
|
|
1834
|
+
font-size: calc(var(--sheet-option-fs, 1rem) - 2px);
|
|
1331
1835
|
line-height: 18px;
|
|
1332
1836
|
}
|
|
1333
1837
|
}
|
|
1334
1838
|
|
|
1335
1839
|
.bb-dropdown__placeholder {
|
|
1336
|
-
min-height: 44px;
|
|
1337
|
-
padding:
|
|
1840
|
+
min-height: var(--sheet-row-h, 44px);
|
|
1841
|
+
padding-left: calc(6px + 4px);
|
|
1338
1842
|
}
|
|
1339
1843
|
|
|
1340
|
-
.
|
|
1341
|
-
|
|
1342
|
-
|
|
1844
|
+
/* Icons scale with the label they sit beside. The desktop sizes (16px
|
|
1845
|
+
glyphs against a 13px label) were tuned for a 28px row; left alone in a
|
|
1846
|
+
44px row with an 18px label they read as undersized — the chevron that
|
|
1847
|
+
says "this opens another level" ended up the smallest thing in the row.
|
|
1848
|
+
One step up, so the glyph keeps roughly the proportion to its label that
|
|
1849
|
+
it has on the desktop panel. BbIcon reads `--size`; keep `font-size` on
|
|
1850
|
+
the same token so the glyph box and the type size cannot drift. */
|
|
1851
|
+
.item__prepend-icon,
|
|
1852
|
+
.item__append-icon,
|
|
1853
|
+
.item__check,
|
|
1854
|
+
.item__chevron {
|
|
1855
|
+
--size: 1.25rem;
|
|
1856
|
+
font-size: var(--size);
|
|
1343
1857
|
}
|
|
1858
|
+
|
|
1859
|
+
/* Group titles are restyled as select-sheet labels on `--adaptive`
|
|
1860
|
+
(see block above); do not re-apply the flyout caption metrics here. */
|
|
1344
1861
|
}
|
|
1345
1862
|
|
|
1863
|
+
/* Soft filled search — mirrors BbSelectPopover's sheet field: no underline
|
|
1864
|
+
rule, faint `--bb-muted` wash, and the same inset as sheet chips / row
|
|
1865
|
+
padding so the fill lines up. */
|
|
1346
1866
|
.bb-dropdown__group-search {
|
|
1347
|
-
|
|
1867
|
+
background-color: var(--bb-muted);
|
|
1868
|
+
border-bottom: 0;
|
|
1869
|
+
border-radius: var(--bb-radius);
|
|
1870
|
+
/* Undo the flyout's full-bleed negative margins. No extra inline inset —
|
|
1871
|
+
the OffCanvas body already pads `--px`. */
|
|
1872
|
+
margin: 0 0 0.25rem;
|
|
1873
|
+
padding: 0.625rem 0.75rem;
|
|
1874
|
+
position: relative;
|
|
1875
|
+
top: auto;
|
|
1876
|
+
transition: background-color var(--bb-transition-fast) ease;
|
|
1877
|
+
/* Flyout search is sticky `z-index: 1`; that same stacking painted over
|
|
1878
|
+
the sheet's grab handle once the body scrolled. */
|
|
1879
|
+
z-index: auto;
|
|
1880
|
+
|
|
1881
|
+
/* One emphasis stop above the resting --bb-muted (6%) fill. */
|
|
1882
|
+
&:focus-within {
|
|
1883
|
+
background-color: color-mix(in oklab, var(--bb-text) 8%, var(--bb-panel));
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
/* Lens on the trailing edge, same side as BbSelect's sheet search. */
|
|
1887
|
+
.bb-dropdown__search-icon {
|
|
1888
|
+
order: 1;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
.bb-dropdown__search-input {
|
|
1892
|
+
font-size: var(--bb-input-fs);
|
|
1893
|
+
order: 0;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
/* Busy strip sits on the field's bottom edge (no border to overlay). */
|
|
1897
|
+
.bb-dropdown__group-loading {
|
|
1898
|
+
border-radius: 0 0 var(--bb-radius) var(--bb-radius);
|
|
1899
|
+
bottom: 0;
|
|
1900
|
+
}
|
|
1348
1901
|
}
|
|
1349
1902
|
|
|
1350
1903
|
/* Removable selection chips for the current multi-select level — sit above the
|
|
1351
1904
|
menu (and its search), mirroring BbSelect's sheet. */
|
|
1352
1905
|
.bb-dropdown__sheet-selection {
|
|
1353
1906
|
flex-shrink: 0;
|
|
1354
|
-
padding: 0
|
|
1907
|
+
padding: 0 0 0.5rem;
|
|
1355
1908
|
text-align: left;
|
|
1356
1909
|
}
|
|
1357
1910
|
|
|
1358
1911
|
.bb-dropdown__sheet-chips {
|
|
1359
1912
|
display: flex;
|
|
1360
1913
|
flex-wrap: wrap;
|
|
1361
|
-
gap:
|
|
1914
|
+
gap: 0.5rem;
|
|
1362
1915
|
}
|
|
1363
1916
|
|
|
1364
1917
|
/* Touch target: the xl badge is a ~24px pill — fine inline on desktop, too
|
|
@@ -1367,9 +1920,9 @@ export type BbDropdownGroupEvents = {
|
|
|
1367
1920
|
padding and a bigger clear glyph; the badge API stays untouched. Mirrors
|
|
1368
1921
|
BbSelectPopover's sheet chips. */
|
|
1369
1922
|
.bb-dropdown__sheet-chip {
|
|
1370
|
-
--min-size:
|
|
1371
|
-
--
|
|
1372
|
-
--clear-size:
|
|
1923
|
+
--min-size: 2.125rem;
|
|
1924
|
+
--px: 0.75rem;
|
|
1925
|
+
--clear-size: 1.25rem;
|
|
1373
1926
|
}
|
|
1374
1927
|
|
|
1375
1928
|
.bb-dropdown__nav {
|
|
@@ -1377,42 +1930,69 @@ export type BbDropdownGroupEvents = {
|
|
|
1377
1930
|
column-gap: 6px;
|
|
1378
1931
|
display: flex;
|
|
1379
1932
|
width: 100%;
|
|
1380
|
-
}
|
|
1381
1933
|
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1934
|
+
/* Drilled in: a navigation bar. The TITLE LINE sets the bar height — same
|
|
1935
|
+
as BbSelect's OffCanvas title — so City and Status share one baseline.
|
|
1936
|
+
The back control is a BbButton ghost sm, absolutely pinned to the
|
|
1937
|
+
OffCanvas header with equal inset from the sheet's top and left. */
|
|
1938
|
+
&--drill {
|
|
1939
|
+
/* Title line sets the bar height — same as BbSelect's OffCanvas title.
|
|
1940
|
+
Sit in the header's `--px`; do not pull out and re-pad to fake a
|
|
1941
|
+
full-bleed bar. Bottom pad matches BbSelect's
|
|
1942
|
+
`calc(var(--py) - 6px)`. No `position: relative` — the back button's
|
|
1943
|
+
containing block is the header. */
|
|
1944
|
+
display: block;
|
|
1945
|
+
padding-bottom: calc(var(--py, var(--bb-panel-p)) - 6px);
|
|
1946
|
+
|
|
1947
|
+
/* Equal inset from the sheet edges. Header is `position: relative`
|
|
1948
|
+
in OffCanvas. Size/chrome come from BbButton ghost sm.
|
|
1949
|
+
Use `--bb-panel-p`, not `--px`: BbButton redefines `--px` as its
|
|
1950
|
+
own padding token, which collapsed the inset to 10px. */
|
|
1951
|
+
.bb-dropdown__nav-back {
|
|
1952
|
+
left: var(--bb-panel-p);
|
|
1953
|
+
position: absolute;
|
|
1954
|
+
top: var(--bb-panel-p);
|
|
1396
1955
|
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1956
|
+
/* Same chevron_right asset the submenu rows use, pointed back. */
|
|
1957
|
+
.bb-button__icon {
|
|
1958
|
+
transform: rotate(180deg);
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1400
1961
|
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1962
|
+
/* Spacer kept in the DOM for the drill a11y tests; layout is now the
|
|
1963
|
+
title's equal inline gutters below. */
|
|
1964
|
+
.bb-dropdown__nav-gutter {
|
|
1965
|
+
display: none;
|
|
1966
|
+
}
|
|
1405
1967
|
}
|
|
1406
1968
|
}
|
|
1407
1969
|
|
|
1408
|
-
|
|
1970
|
+
/* Pure spacer, mirroring the back button's box (root / non-drill layouts). */
|
|
1971
|
+
.bb-dropdown__nav-gutter {
|
|
1972
|
+
height: 24px;
|
|
1973
|
+
width: 24px;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
.bb-offcanvas__title.bb-dropdown__nav-title {
|
|
1409
1977
|
flex: auto;
|
|
1410
1978
|
font-weight: 500;
|
|
1979
|
+
/* Same 1em line box as BbSelect's sheet title so the cap sits on the
|
|
1980
|
+
same baseline. Descenders ("Tags") paint into the drill nav's bottom
|
|
1981
|
+
pad — `overflow-y: visible`; ellipsis still clips on X only. */
|
|
1411
1982
|
min-width: 0;
|
|
1412
|
-
overflow:
|
|
1983
|
+
overflow-x: clip;
|
|
1984
|
+
overflow-y: visible;
|
|
1413
1985
|
text-overflow: ellipsis;
|
|
1414
1986
|
white-space: nowrap;
|
|
1415
1987
|
}
|
|
1988
|
+
|
|
1989
|
+
.bb-dropdown__nav--drill .bb-dropdown__nav-title {
|
|
1990
|
+
/* Equal side gutters matching BbButton sm icon-only (24px) so the label
|
|
1991
|
+
centres. */
|
|
1992
|
+
display: block;
|
|
1993
|
+
padding-inline: 24px;
|
|
1994
|
+
text-align: center;
|
|
1995
|
+
}
|
|
1416
1996
|
}
|
|
1417
1997
|
|
|
1418
1998
|
/* Level slide: drilling in enters from the right and the old level exits left;
|
|
@@ -1448,4 +2028,15 @@ export type BbDropdownGroupEvents = {
|
|
|
1448
2028
|
opacity: 0;
|
|
1449
2029
|
transform: translateX(28px);
|
|
1450
2030
|
}
|
|
2031
|
+
|
|
2032
|
+
/*
|
|
2033
|
+
* Q14.3 — see `reservesCheckSpace` in BbDropdown.vue for why this is scoped to
|
|
2034
|
+
* an auto-width panel. `:has(.item__check)` targets exactly the rows a
|
|
2035
|
+
* selectable group mounts a check on, so a non-selectable group in the same
|
|
2036
|
+
* menu is untouched. The value matches the `--selected` rule's clearance; when
|
|
2037
|
+
* both apply they agree, so nothing shifts on selection.
|
|
2038
|
+
*/
|
|
2039
|
+
.bb-dropdown__panel--reserve-check .bb-dropdown__item:has(.item__check) {
|
|
2040
|
+
padding-inline-end: calc(6px + 16px + 4px);
|
|
2041
|
+
}
|
|
1451
2042
|
```
|