bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68
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 +1 -1
- package/bin/bitboss-ui-mcp.mjs +87 -19
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/ai/BbAlert.md +15 -11
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +2 -2
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +62 -9
- package/dist/ai/BbCalendar.md +1 -1
- package/dist/ai/BbCheckbox.md +23 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +13 -12
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +24 -21
- package/dist/ai/BbDatePicker.md +4 -4
- package/dist/ai/BbDatePickerInput.md +16 -15
- package/dist/ai/BbDialog.md +10 -9
- package/dist/ai/BbDropdown.md +26 -16
- package/dist/ai/BbDropdownButton.md +18 -18
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +6 -4
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +17 -13
- package/dist/ai/BbOffCanvas.md +4 -3
- package/dist/ai/BbPagination.md +10 -2
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +23 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +5 -5
- package/dist/ai/BbSelect.md +74 -39
- package/dist/ai/BbSelectPopover.md +28 -26
- package/dist/ai/BbSlider.md +258 -61
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +27 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +10 -5
- package/dist/ai/BbTabs.md +6 -6
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +12 -11
- package/dist/ai/BbTextInput.md +25 -17
- package/dist/ai/BbTextarea.md +15 -14
- package/dist/ai/BbTimePicker.md +3 -3
- package/dist/ai/BbTimePickerInput.md +12 -11
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +2 -2
- package/dist/ai/CommonField.md +2 -2
- package/dist/ai/CommonFieldInput.md +2 -1
- package/dist/ai/FlatListBox.md +4 -3
- package/dist/ai/GroupedListBox.md +4 -3
- package/dist/ai/ListBox.md +5 -4
- package/dist/ai/OptionsContainer.md +17 -1
- package/dist/ai/changelog.json +454 -7
- package/dist/ai/components.json +77 -69
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/design-language.md +17 -13
- package/dist/ai/guides/design-tokens.md +81 -42
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +191 -56
- package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
- package/dist/ai/guides/passthrough.md +140 -131
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +5 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +9 -11
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbBadge.json +3 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +4 -3
- package/dist/ai/manifest/components/BbButton.tree.json +3 -1
- package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
- package/dist/ai/manifest/components/BbCheckbox.json +4 -3
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +6 -5
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -1
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +2 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +7 -4
- package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +5 -4
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +3 -2
- package/dist/ai/manifest/components/BbSelect.json +11 -9
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
- package/dist/ai/manifest/components/BbSlider.json +20 -18
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +3 -2
- package/dist/ai/manifest/components/BbTable.tree.json +4 -3
- package/dist/ai/manifest/components/BbTabs.json +3 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +5 -4
- package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextarea.json +6 -5
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +2 -1
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +2 -1
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +3 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +5 -6
- package/dist/ai/manifest/types.api.json +15 -6
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +5 -4
- package/dist/ai/source/BbBadge.md +16 -9
- package/dist/ai/source/BbBadgeButton.md +1 -1
- package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
- package/dist/ai/source/BbBaseRadioIcon.md +17 -11
- package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
- package/dist/ai/source/BbButton.md +38 -22
- package/dist/ai/source/BbCalendar.md +5 -30
- package/dist/ai/source/BbCheckbox.md +20 -7
- package/dist/ai/source/BbCheckboxGroup.md +66 -27
- package/dist/ai/source/BbColorInput.md +29 -22
- package/dist/ai/source/BbColorPalette.md +23 -22
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +5 -3
- package/dist/ai/source/BbDatePicker.md +18 -8
- package/dist/ai/source/BbDatePickerInput.md +44 -27
- package/dist/ai/source/BbDialog.md +23 -13
- package/dist/ai/source/BbDropdown.md +61 -25
- package/dist/ai/source/BbDropdownButton.md +67 -25
- package/dist/ai/source/BbDropdownGroup.md +38 -15
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +44 -30
- package/dist/ai/source/BbOffCanvas.md +17 -10
- package/dist/ai/source/BbPagination.md +10 -18
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +18 -7
- package/dist/ai/source/BbRadioGroup.md +67 -27
- package/dist/ai/source/BbRating.md +21 -11
- package/dist/ai/source/BbSelect.md +51 -32
- package/dist/ai/source/BbSelectPopover.md +81 -38
- package/dist/ai/source/BbSlider.md +929 -565
- package/dist/ai/source/BbSwitchGroup.md +28 -9
- package/dist/ai/source/BbTable.md +17 -30
- package/dist/ai/source/BbTabs.md +5 -2
- package/dist/ai/source/BbTabsList.md +1 -1
- package/dist/ai/source/BbTabsPanels.md +1 -1
- package/dist/ai/source/BbTabsRoot.md +1 -1
- package/dist/ai/source/BbTag.md +27 -20
- package/dist/ai/source/BbTextInput.md +29 -26
- package/dist/ai/source/BbTextarea.md +53 -45
- package/dist/ai/source/BbTimePicker.md +19 -7
- package/dist/ai/source/BbTimePickerInput.md +34 -21
- package/dist/ai/source/BbToast.md +18 -9
- package/dist/ai/source/BbToastPortal.md +14 -6
- package/dist/ai/source/BbTooltip.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +9 -4
- package/dist/ai/source/FlatListBox.md +11 -1
- package/dist/ai/source/GroupedListBox.md +12 -1
- package/dist/ai/source/ListBox.md +1 -1
- package/dist/ai/source/OptionsContainer.md +48 -1
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
- package/dist/components/BbBadge/types.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
- package/dist/components/BbButton/types.d.ts +12 -10
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
- package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
- package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
- package/dist/components/BbColorInput/types.d.ts +8 -8
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
- package/dist/components/BbColorPalette/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
- package/dist/components/BbDatePickerInput/types.d.ts +8 -8
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
- package/dist/components/BbDialog/types.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +25 -13
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
- package/dist/components/BbDropdownButton/types.d.ts +30 -13
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
- package/dist/components/BbNumberInput/types.d.ts +12 -11
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
- package/dist/components/BbRadioGroup/types.d.ts +11 -5
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
- package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
- package/dist/components/BbSelect/types.d.ts +23 -19
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/types.d.ts +21 -16
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
- package/dist/components/BbSlider/types.d.ts +136 -47
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/BbTabs/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
- package/dist/components/BbTag/types.d.ts +7 -7
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
- package/dist/components/BbTextInput/types.d.ts +9 -9
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
- package/dist/components/BbTextarea/types.d.ts +8 -8
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
- package/dist/components/BbTimePickerInput/types.d.ts +8 -8
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +1 -1
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
- package/dist/components/OptionsContainer/types.d.ts +5 -0
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useBbTabs.js +94 -90
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +7 -7
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +47 -37
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/i18n/locales/cs.json +2 -1
- package/dist/i18n/locales/da.json +2 -1
- package/dist/i18n/locales/de-CH.json +2 -1
- package/dist/i18n/locales/de.json +2 -1
- package/dist/i18n/locales/el.json +2 -1
- package/dist/i18n/locales/en-GB.json +2 -1
- package/dist/i18n/locales/en.json +2 -1
- package/dist/i18n/locales/es-MX.json +2 -1
- package/dist/i18n/locales/es.json +2 -1
- package/dist/i18n/locales/fi.json +2 -1
- package/dist/i18n/locales/fr.json +2 -1
- package/dist/i18n/locales/hu.json +2 -1
- package/dist/i18n/locales/it.json +2 -1
- package/dist/i18n/locales/ja.json +2 -1
- package/dist/i18n/locales/ko.json +2 -1
- package/dist/i18n/locales/nb.json +2 -1
- package/dist/i18n/locales/nl.json +2 -1
- package/dist/i18n/locales/pl.json +2 -1
- package/dist/i18n/locales/pt-BR.json +2 -1
- package/dist/i18n/locales/pt-PT.json +2 -1
- package/dist/i18n/locales/ro.json +2 -1
- package/dist/i18n/locales/ru.json +2 -1
- package/dist/i18n/locales/sv.json +2 -1
- package/dist/i18n/locales/tr.json +2 -1
- package/dist/i18n/locales/uk.json +2 -1
- package/dist/i18n/locales/zh-CN.json +2 -1
- package/dist/i18n/locales/zh-HK.json +2 -1
- package/dist/i18n/locales/zh-TW.json +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +2273 -1243
- package/dist/llms-medium.txt +362 -184
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +2 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +17 -17
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +69 -21
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/passthrough.d.ts +6 -6
- package/dist/types/ptComponentMap.d.ts +14 -14
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +54 -191
- package/dist/vite.js +318 -367
- package/llms.txt +4 -4
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +67 -0
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/validate-bb-markup.mjs +73 -13
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
package/dist/ai/BbSelect.md
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
| `pt:itemText` | `pt:itemText` of `BbSelectPopover` | `BbSelectPopover` ([contract](./BbSelectPopover.md)) |
|
|
27
27
|
| `pt:itemIcon` | `pt:itemIcon` of `BbSelectPopover` | `BbSelectPopover` ([contract](./BbSelectPopover.md)) |
|
|
28
28
|
| `pt:itemDescription` | `pt:itemDescription` of `BbSelectPopover` | `BbSelectPopover` ([contract](./BbSelectPopover.md)) |
|
|
29
|
+
| `pt:check` | `pt:check` of `BbSelectPopover` | `BbSelectPopover` ([contract](./BbSelectPopover.md)) |
|
|
29
30
|
| `pt:root` | `div.bb-field` | `CommonField` _(internal)_ |
|
|
30
31
|
| `pt:label` | `component` | `CommonField` _(internal)_ |
|
|
31
32
|
| `pt:description` | `span.bb-field__description` | `CommonField` _(internal)_ |
|
|
@@ -359,7 +360,7 @@ markup needed:
|
|
|
359
360
|
|
|
360
361
|
- **Label**: `label` (required), `hide-label`, `label-position`
|
|
361
362
|
(`left`/`center`/`right`), and `label-mode` — `outside` (the default via
|
|
362
|
-
global config `
|
|
363
|
+
global config `all.labelMode`), `floating`, or `inside`. `reverse`
|
|
363
364
|
swaps the order of label and control.
|
|
364
365
|
- **Guidance**: `description` renders always-visible helper text linked via
|
|
365
366
|
`aria-describedby`; `hint` shows contextual guidance while the field is
|
|
@@ -386,7 +387,9 @@ markup needed:
|
|
|
386
387
|
- **Affixes**: `prepend:icon` / `append:icon` place icons in the control —
|
|
387
388
|
`append:icon` replaces the default chevron (there is no `#chevron` slot).
|
|
388
389
|
- **Value display**: `placeholder` shows while nothing is picked, in single and
|
|
389
|
-
multiple mode (chips or `comma`) alike, and goes with the first pick.
|
|
390
|
+
multiple mode (chips or `comma`) alike, and goes with the first pick. Its
|
|
391
|
+
colour is the field's `--ph` (`pt:box="[--ph:…]"`, default
|
|
392
|
+
`--bb-text-muted`), the same local a text input's placeholder reads.
|
|
390
393
|
|
|
391
394
|
This select sits outside a `BbForm`, so `required` only marks it; inside a
|
|
392
395
|
`BbForm` use `rules="required"` instead.
|
|
@@ -442,7 +445,8 @@ the active locale). You can steer that display:
|
|
|
442
445
|
- Under `disabled` / `readonly`, chips become non-removable badges.
|
|
443
446
|
|
|
444
447
|
`clearable` shows a clear affix once there is a value; clearing resets the
|
|
445
|
-
model to `[]` (or `null` in single mode).
|
|
448
|
+
model to `[]` (or `null` in single mode). A single `clearable` select also
|
|
449
|
+
clears when the picked option is clicked again.
|
|
446
450
|
|
|
447
451
|
**Multi-select with a maximum and collapsed labels**
|
|
448
452
|
|
|
@@ -673,9 +677,14 @@ const summary = computed(() => {
|
|
|
673
677
|
The panel carries a search field (role `searchbox`). How typing filters depends
|
|
674
678
|
on your setup:
|
|
675
679
|
|
|
676
|
-
- **Array `items`**: typing filters locally
|
|
677
|
-
|
|
678
|
-
|
|
680
|
+
- **Array `items`**: typing filters locally against each option's display
|
|
681
|
+
text and, when it has one, its `item-props` description: a ranked search, case and accents ignored: the option that IS the query
|
|
682
|
+
first, then options starting with it, then options whose words start with
|
|
683
|
+
the query's words (in any order; `deluca` finds "De Luca"), then options
|
|
684
|
+
containing it, then a code typed without its separators (`IT20240045` finds
|
|
685
|
+
"IT-2024-0045"); one typo per word of 5+ letters is forgiven only when
|
|
686
|
+
nothing else matched. Options keep their order inside each rank, and groups
|
|
687
|
+
keep theirs. A query of punctuation alone matches nothing.
|
|
679
688
|
- **`filter-by: ['path', ...]`**: the listed item paths are searched **instead
|
|
680
689
|
of** the display text (no fallback union with the text). Every path must
|
|
681
690
|
exist on every item, or matching throws. Use it to also match a city by its
|
|
@@ -688,8 +697,8 @@ on your setup:
|
|
|
688
697
|
all; the provider's answer is the list. Set it on every select whose
|
|
689
698
|
provider sends `query` to the server, so rows the server matched on a field
|
|
690
699
|
the row doesn't show (typing an email, a phone number, an id) or by its own
|
|
691
|
-
rules (
|
|
692
|
-
|
|
700
|
+
rules (synonyms, stemming, more typo tolerance than the local search's)
|
|
701
|
+
are not hidden as "No results". It is explicit: a provider does
|
|
693
702
|
not imply it. On array `items` it shows every option whatever is typed —
|
|
694
703
|
you rarely want that.
|
|
695
704
|
- **Single-mode exception**: when the query equals the selected option's text
|
|
@@ -710,7 +719,7 @@ on your setup:
|
|
|
710
719
|
creatable select keeps its field however short the list. An explicit
|
|
711
720
|
`disable-writing` on the instance — any value, the valueless shorthand
|
|
712
721
|
included — always wins. The threshold is the only global knob: set
|
|
713
|
-
`autoDisableWritingThreshold: 0` in the plugin to keep every search field;
|
|
722
|
+
`components: { all: { autoDisableWritingThreshold: 0 } }` in the plugin to keep every search field;
|
|
714
723
|
there is deliberately no option that hides them all.
|
|
715
724
|
|
|
716
725
|
**Match on fields other than the display text**
|
|
@@ -929,7 +938,7 @@ Three rules that fall out of this shape:
|
|
|
929
938
|
|
|
930
939
|
- **The server matched `query`, so set `:filter-by="false"`.** Otherwise the
|
|
931
940
|
select filters the answer again by display text, and a row the server
|
|
932
|
-
matched on another field (an email) or
|
|
941
|
+
matched on another field (an email) or by its own rules is hidden (see
|
|
933
942
|
[Search and filtering semantics](#search-and-filtering-semantics)).
|
|
934
943
|
- **With `enforce-coherence`, the ids request is required — create forms
|
|
935
944
|
included.** Enforcement checks the model against the fetched rows alone
|
|
@@ -2009,7 +2018,7 @@ is all you need.
|
|
|
2009
2018
|
for fields whose options the user might still need to browse (they can't).
|
|
2010
2019
|
- `loading` — external loading state: shows the control spinner and suspends
|
|
2011
2020
|
keyboard opening. Fetch-driven loading is automatic; don't mirror it here.
|
|
2012
|
-
- `clearable` — clear affix when a value exists; emits `null` / `[]`.
|
|
2021
|
+
- `clearable` — clear affix when a value exists; emits `null` / `[]`. Single: re-clicking the pick clears too.
|
|
2013
2022
|
- Empty panel — `empty-text` or `#empty`.
|
|
2014
2023
|
|
|
2015
2024
|
### Events and v-model
|
|
@@ -2084,7 +2093,7 @@ Shipped behavior — never reimplement it:
|
|
|
2084
2093
|
|
|
2085
2094
|
### Adaptive mobile sheet
|
|
2086
2095
|
|
|
2087
|
-
With `adaptive` (default: global `
|
|
2096
|
+
With `adaptive` (default: global `all.adaptive`, which is `true`), the panel
|
|
2088
2097
|
opens as a bottom off-canvas sheet on mobile viewports (below
|
|
2089
2098
|
`config.mobileMaxWidth`) instead of a floating popover — same search, options
|
|
2090
2099
|
and header/footer slots, plus a chips row of the current selection above the
|
|
@@ -2101,12 +2110,12 @@ swaps popover ↔ sheet.
|
|
|
2101
2110
|
|
|
2102
2111
|
From the vite/nuxt plugin options:
|
|
2103
2112
|
|
|
2104
|
-
- `
|
|
2113
|
+
- `all.adaptive` — default for `adaptive` (see above).
|
|
2105
2114
|
- `config.autoDisableWritingThreshold` — the option count below which an
|
|
2106
2115
|
unset `disable-writing` (`'auto'`) hides the search field (`6`; `0` turns
|
|
2107
2116
|
it off). See § Search and filtering semantics.
|
|
2108
2117
|
- `config.mobileMaxWidth` — the viewport threshold for "mobile".
|
|
2109
|
-
- `
|
|
2118
|
+
- `all.labelMode` — default `label-mode`.
|
|
2110
2119
|
- `config.locale` — built-in strings: the collapsed-chips summary ("N items
|
|
2111
2120
|
selected") and the panel loading/empty defaults. The library ships 22
|
|
2112
2121
|
built-in dictionaries — see
|
|
@@ -2139,14 +2148,14 @@ affordance, the focus ring still shows, and errors or warnings surface through
|
|
|
2139
2148
|
the icon and the message rather than a tinted edge. `ghost` is the inline-edit
|
|
2140
2149
|
table cell (`<BbSelect compact hide-label variant="ghost" />`) — no
|
|
2141
2150
|
`:deep()` needed. The names and tokens are the `BbButton` ones; extra names
|
|
2142
|
-
register through the plugin's `
|
|
2151
|
+
register through the plugin's each field's `components.<C>.variants` option. The full ladder is in
|
|
2143
2152
|
the `BbTextInput` guide.
|
|
2144
2153
|
|
|
2145
2154
|
### Restyling with passthrough
|
|
2146
2155
|
|
|
2147
2156
|
`pt` reaches a named part of the control with a class list — or, in the
|
|
2148
2157
|
object form, a style and attributes — optionally only while a state is on.
|
|
2149
|
-
Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `activator` (the button that opens the options — BbSelect's control; the text controls call theirs `input`), `input` (the search field in the options surface, when it shows one), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `panel` (the options surface you see — the popover's painted bubble on desktop, the sheet itself on a phone), `sheet` (the bottom sheet on a phone only), `option` (one listbox option, a broadcast), `itemText` (that option's label), `itemIcon` (its `itemProps` prepend / append icons — never the field's `icon`) and `itemDescription` (its muted second line from `itemProps.description` — never the field's `description`), all with the option's `selected` / `disabled`; a custom `#option` slot replaces the label and description. With `multiple`, the selected values are `badge` (each chip's `BbBadge` root, in the field and on the phone sheet — in the field, not rendered when the `#chip` slot replaces it; the sheet's chips are always badges) or `comma` (each entry in `comma` mode) — the same two words as `BbTag`. The chevron and the clear ✕ are chrome.
|
|
2158
|
+
Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `activator` (the button that opens the options — BbSelect's control; the text controls call theirs `input`), `input` (the search field in the options surface, when it shows one), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `panel` (the options surface you see — the popover's painted bubble on desktop, the sheet itself on a phone), `sheet` (the bottom sheet on a phone only), `option` (one listbox option, a broadcast), `itemText` (that option's label), `itemIcon` (its `itemProps` prepend / append icons — never the field's `icon`) and `itemDescription` (its muted second line from `itemProps.description` — never the field's `description`), and `check` (the tick on a chosen option, at the row's end), all with the option's `selected` / `disabled`; a custom `#option` slot replaces the label and description, never the tick. With `multiple`, the selected values are `badge` (each chip's `BbBadge` root, in the field and on the phone sheet — in the field, not rendered when the `#chip` slot replaces it; the sheet's chips are always badges) or `comma` (each entry in `comma` mode) — the same two words as `BbTag`. The chevron and the clear ✕ are chrome.
|
|
2150
2159
|
States: `errors`, `warnings` (never beside errors), `loading`, `disabled`, `readonly`, `hasValue` (written `pt:box:has-value`). Plus `open` (the options surface is showing) and `selected`, resolved per option. A name outside that list is a type error and an
|
|
2151
2160
|
ESLint error.
|
|
2152
2161
|
|
|
@@ -2156,7 +2165,7 @@ where the selection is known, `pt:panel` / `pt:panel:open` forward to the
|
|
|
2156
2165
|
popover (the sheet on mobile).
|
|
2157
2166
|
|
|
2158
2167
|
Every one of the per-value parts — `option`, `itemText`, `itemIcon`,
|
|
2159
|
-
`itemDescription`, `badge`, `comma` — also takes a **per-item function**,
|
|
2168
|
+
`itemDescription`, `check`, `badge`, `comma` — also takes a **per-item function**,
|
|
2160
2169
|
called with that value's raw item and every state as a boolean:
|
|
2161
2170
|
`:pt:badge="({ item }) => item.role === 'owner' && 'font-semibold'"`.
|
|
2162
2171
|
|
|
@@ -2217,12 +2226,35 @@ const assignee = ref<string | null>('ada');
|
|
|
2217
2226
|
</script>
|
|
2218
2227
|
```
|
|
2219
2228
|
|
|
2229
|
+
**Chips that look like your app's badges.** Each chip is a `BbBadge` (the
|
|
2230
|
+
`secondary` one), so `pt:badge` takes the same classes your badges use, or a
|
|
2231
|
+
badge variant's class: `pt:badge="bb-badge--destructive"`. Mind the cascade:
|
|
2232
|
+
the chip's own `bb-badge--secondary` stays on, so of two variant classes the
|
|
2233
|
+
rule that comes LATER in the CSS wins. `destructive` and `outline` come after
|
|
2234
|
+
`secondary` in the library sheet and win; `primary` comes before it and loses.
|
|
2235
|
+
A variant your app registers (`components.BbBadge.variants`) is styled in your own
|
|
2236
|
+
stylesheet, which loads after the library's, so it always wins:
|
|
2237
|
+
`pt:badge="bb-badge--soft-blue"`.
|
|
2238
|
+
|
|
2239
|
+
The tick is `check`: recolour it (`pt:check="text-emerald-600"`), or drop it
|
|
2240
|
+
when your `#option` slot draws its own mark. `pt:check="hidden"` reaches the
|
|
2241
|
+
library's tick only, so the glyph in your slot stays:
|
|
2242
|
+
|
|
2243
|
+
```vue
|
|
2244
|
+
<BbSelect v-model="state.plan" :items="plans" pt:check="hidden">
|
|
2245
|
+
<template #option="{ text, selected }">
|
|
2246
|
+
<span class="flex-1">{{ text }}</span>
|
|
2247
|
+
<BbIcon v-if="selected" icon="lucide:circle-check" />
|
|
2248
|
+
</template>
|
|
2249
|
+
</BbSelect>
|
|
2250
|
+
```
|
|
2251
|
+
|
|
2220
2252
|
A look that depends on the OPTION'S DATA — a VIP member, an archived project
|
|
2221
2253
|
— is a per-item function on an option part:
|
|
2222
2254
|
`:pt:option="({ item, selected }) => item.vip && 'text-amber-700'"`, called
|
|
2223
2255
|
in the popover with the raw item (typed as your item) and every state as a
|
|
2224
2256
|
boolean (the option's `selected` / `disabled`, …), merged after `pt:option:selected`. Option parts
|
|
2225
|
-
only (`option`, `itemText`, `itemIcon`, `itemDescription`); `list` is the
|
|
2257
|
+
only (`option`, `itemText`, `itemIcon`, `itemDescription`, `check`); `list` is the
|
|
2226
2258
|
listbox node itself. A listener on `pt:activator` concatenates after the
|
|
2227
2259
|
activator's own handler, never
|
|
2228
2260
|
instead of it. Pick a `variant` first — `ghost` or `none` — when the whole box
|
|
@@ -2276,9 +2308,10 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2276
2308
|
on and stay on the field root like any attribute.
|
|
2277
2309
|
|
|
2278
2310
|
- **Clicking the selected option does not clear a single select** — it re-picks
|
|
2279
|
-
it and closes the panel
|
|
2280
|
-
|
|
2281
|
-
|
|
2311
|
+
it and closes the panel; a required status field should not empty itself
|
|
2312
|
+
because someone clicked twice. With `clearable` the re-click clears it (and
|
|
2313
|
+
closes), beside the ✕, like a `clearable` BbDropdown group. Multiple mode
|
|
2314
|
+
still toggles a selected option off.
|
|
2282
2315
|
- `multiple` with a non-array model **throws at setup** — seed `ref([])`.
|
|
2283
2316
|
- `placeholder` shows in single and multiple mode (chips or `comma`) while
|
|
2284
2317
|
nothing is picked, and goes with the first pick.
|
|
@@ -2292,8 +2325,8 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2292
2325
|
can resolve. Array `items` need nothing: they are never lazy. (Note `clear`
|
|
2293
2326
|
then also produces `null`, i.e. it selects "All" — use a sentinel like `'all'`
|
|
2294
2327
|
if the two must stay distinct.)
|
|
2295
|
-
- The local
|
|
2296
|
-
|
|
2328
|
+
- The local search also applies to provider results — server matches whose
|
|
2329
|
+
text doesn't match the query are hidden — unless you set
|
|
2297
2330
|
`:filter-by="false"`, which a provider that searches on the server needs
|
|
2298
2331
|
(see Search semantics).
|
|
2299
2332
|
- `filter-by` is `string[]` or `false` (no function, no bare string). An array
|
|
@@ -2375,14 +2408,14 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2375
2408
|
|
|
2376
2409
|
| Prop | Type | Default | Required | Description |
|
|
2377
2410
|
| --- | --- | --- | --- | --- |
|
|
2378
|
-
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `activator`, `badge`, `box`, `clear`, `comma`, `description`, `footer`, `header`, `hint`, `icon`, `input`, `itemDescription`, `itemIcon`, `itemText`, `label`, `list`, `message`, `option`, `panel`, `prefix`, `root`, `sheet`, `spinner`, `suffix`. States: `disabled`, `errors`, `ghost`, `hasValue`, `loading`, `open`, `outline`, `readonly`, `secondary`, `warnings`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectProps<Row>['pt']` (`BbSelectProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
2379
|
-
| `adaptive` | `boolean \| undefined` | ``
|
|
2411
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `activator`, `badge`, `box`, `check`, `clear`, `comma`, `description`, `footer`, `header`, `hint`, `icon`, `input`, `itemDescription`, `itemIcon`, `itemText`, `label`, `list`, `message`, `option`, `panel`, `prefix`, `root`, `sheet`, `spinner`, `suffix`. States: `disabled`, `errors`, `ghost`, `hasValue`, `loading`, `open`, `outline`, `readonly`, `secondary`, `warnings`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectProps<Row>['pt']` (`BbSelectProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
2412
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | When `true`, the options panel opens as a bottom off-canvas sheet on mobile viewports instead of a floating popover; on desktop it stays a popover. When unset, falls back to the global `all.adaptive`. |
|
|
2380
2413
|
| `append:icon` | `string \| undefined` | `the chevron-down glyph` | | Name of the icon to be added at the end of the input. |
|
|
2381
2414
|
| `autocomplete` | `string \| undefined` | | | Guides to the browser as to the type of information expected in the field. |
|
|
2382
2415
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
2383
|
-
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. |
|
|
2416
|
+
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. A single select also clears when the picked option is clicked again. |
|
|
2384
2417
|
| `comma` | `boolean \| undefined` | `false` | | Sets the display model for selected values to a list of comma separated string. In this mode the user cannot deselect an option by pressing the close button. |
|
|
2385
|
-
| `compact` | `boolean \| undefined` | `
|
|
2418
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Compact density: the field uses the `-compact` twins of `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y`, so a `--bb-input-h` set on the component is ignored while it is on. Size a compact field with `--bb-input-h-compact` (and `--bb-input-py-compact`). |
|
|
2386
2419
|
| `dependencies` | `unknown[] \| undefined` | | | Defines an array of dependencies that will trigger actions in the component upon change. |
|
|
2387
2420
|
| `depsDebounceTime` | `number \| undefined` | `0` | | Timeout used to debounce response to changes to dependencies. |
|
|
2388
2421
|
| `description` | `string \| undefined` | | | Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`. |
|
|
@@ -2392,7 +2425,7 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2392
2425
|
| `enforceCoherence` | `boolean \| undefined` | `false` | | After every successful load that is not a search, removes the picks the fetched rows do not contain (a single model resets to `null`). A `stash` does not count, a value a `known-items` row names is kept until a parent change; a search or a failed load never prunes. |
|
|
2393
2426
|
| `errors` | `string \| string[] \| undefined` | | | Error messages under the field, a string or array, in an `aria-live="polite"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus. |
|
|
2394
2427
|
| `failedText` | `string \| undefined` | `the localized `common.failedText` ("Couldn't load items")` | | String displayed in the empty state while the latest load FAILED (the provider threw): the twin of `emptyText` for that case. |
|
|
2395
|
-
| `filterBy` | `false \| string[] \| undefined` | `[]` | | What typing filters on: empty = the display text and description; item paths = those fields (`['name', 'email']`); `false` = no filtering. Use `false` when the provider matched the query on the server, or its email
|
|
2428
|
+
| `filterBy` | `false \| string[] \| undefined` | `[]` | | What typing filters on: empty = the display text and description; item paths = those fields (`['name', 'email']`); `false` = no filtering. Ranked, case and accents ignored (guide § Search). Use `false` when the provider matched the query on the server, or its email matches show as "No results". |
|
|
2396
2429
|
| `formless` | `boolean \| undefined` | `false` | | Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a "show advanced" switch). |
|
|
2397
2430
|
| `groupBy` | `string \| ((item: T) => string \| number \| symbol) \| undefined` | | | Path to item property for grouping options. |
|
|
2398
2431
|
| `hasErrors` | `boolean \| undefined` | `false` | | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
|
|
@@ -2411,7 +2444,7 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2411
2444
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
2412
2445
|
| `labelAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
|
|
2413
2446
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
2414
|
-
| `labelPosition` | `"
|
|
2447
|
+
| `labelPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
2415
2448
|
| `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
|
|
2416
2449
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
2417
2450
|
| `loadingText` | `string \| undefined` | | | String displayed while items are being loaded. |
|
|
@@ -2429,15 +2462,15 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2429
2462
|
| `queryDebounceTime` | `number \| undefined` | `500` | | Time to wait when the user stops writing in the input before querying data. |
|
|
2430
2463
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
2431
2464
|
| `required` | `boolean \| undefined` | `false` | | Sets the input as required. |
|
|
2432
|
-
| `reverse` | `boolean \| undefined` | `
|
|
2465
|
+
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
|
|
2433
2466
|
| `rules` | `RuleExpression<any>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
2434
2467
|
| `selectable` | `boolean \| ((item: T) => boolean) \| undefined` | `true` | | Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled. |
|
|
2435
2468
|
| `selectedLabelsFn` | `((count: number) => string) \| undefined` | | | Function that returns a string to be displayed when the number of selected labels is greater than `maxSelectedLabels`. |
|
|
2436
2469
|
| `stash` | `boolean \| undefined` | `false` | | Keeps picked options named across searches: a pick stays resolvable (its chip keeps its text) when a later search or a failed load no longer returns it. It follows the model, and does not keep a pick valid: `enforce-coherence` still prunes it. |
|
|
2437
2470
|
| `transitionDuration` | `number \| undefined` | `250` | | How long the transition has to last in milliseconds. |
|
|
2438
2471
|
| `validationLabel` | `string \| undefined` | | | The field's name in validation messages (`{field}`): "Email is not valid". Defaults to the `label` (or `legend`), then "This field"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only. |
|
|
2439
|
-
| `validationMode` | `'aggressive'` \| `'balanced'` \| `'lazy'` \| `'submit-only'` \| `'submit-live'` | | | When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `
|
|
2440
|
-
| `variant` | `'outline'` \| `'secondary'` \| `'none'` \| `'ghost'` | `'outline'` | | The field box's look, with `BbButton`'s names and tokens. Colours only, so a form never reflows; `'ghost'` has no border in any state, `'none'` no look at all (you own hover, focus and the states). Register more with the plugin's `
|
|
2472
|
+
| `validationMode` | `'aggressive'` \| `'balanced'` \| `'lazy'` \| `'submit-only'` \| `'submit-live'` | | | When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only. |
|
|
2473
|
+
| `variant` | `'outline'` \| `'secondary'` \| `'none'` \| `'ghost'` | `'outline'` | | The field box's look, with `BbButton`'s names and tokens. Colours only, so a form never reflows; `'ghost'` has no border in any state, `'none'` no look at all (you own hover, focus and the states). Register more with the plugin's `components.BbSelect.variants`. |
|
|
2441
2474
|
| `warnings` | `string \| string[] \| undefined` | | | Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set. |
|
|
2442
2475
|
|
|
2443
2476
|
## Passthrough parts and states
|
|
@@ -2468,6 +2501,7 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2468
2501
|
| `itemText` | An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
|
|
2469
2502
|
| `itemIcon` | An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function. |
|
|
2470
2503
|
| `itemDescription` | An option's second line (its description) — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
|
|
2504
|
+
| `check` | The tick on the chosen option, at the row's end — mounted on every option and drawn on the chosen ones; a custom `#option` slot keeps it. `pt:check="hidden"` removes it and leaves a glyph your slot draws alone. Also takes a per-item function. |
|
|
2471
2505
|
| `badge` | Each selected value's `BbBadge` root with `multiple` — a broadcast resolved per value, on the field's chips and on the phone sheet's. The badge's own ✕ is chrome, never `clear`. In the field, not rendered when the `#chip` slot replaces it, nor in `comma` mode; the sheet's chips are always badges. |
|
|
2472
2506
|
| `comma` | Each selected value with `multiple` and `comma` — a broadcast resolved per value. |
|
|
2473
2507
|
|
|
@@ -2476,9 +2510,9 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
2476
2510
|
| State | When it is on |
|
|
2477
2511
|
| --- | --- |
|
|
2478
2512
|
| `hasValue` | Component-wide: the control holds a value, by its own rule (`0` counts on `BbNumberInput`, `''` on `BbColorInput`). |
|
|
2479
|
-
| `selected` | Per node, on `option
|
|
2513
|
+
| `selected` | Per node, on `option`, its `item-*` parts and `check`: a chosen option. |
|
|
2480
2514
|
| `readonly` | Component-wide: the control is `readonly` — shown, focusable, not editable. |
|
|
2481
|
-
| `disabled` | Component-wide while the select is `disabled`; also per node, on `option
|
|
2515
|
+
| `disabled` | Component-wide while the select is `disabled`; also per node, on `option`, its `item-*` parts and `check`: an option that is disabled. |
|
|
2482
2516
|
| `warnings` | Component-wide: the control is in its warning state (`warnings` / `has-warnings`) and not in an error state — errors win, so the two are never on together. |
|
|
2483
2517
|
| `errors` | Component-wide: the control is in its error state (`errors` / `has-errors`, or its validation) — the message line and the box turn red. |
|
|
2484
2518
|
| `open` | Component-wide: the options surface is showing. |
|
|
@@ -2529,6 +2563,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
2529
2563
|
| --- | --- | --- | --- |
|
|
2530
2564
|
| `--compensation-multiplier` | `.bb-select__field` | `0.3` | Fraction of the shell's inner padding the chips row is pulled back by when no prepend icon precedes it (see the negative margin below). |
|
|
2531
2565
|
| `--border-color` | `pt:box` | `per variant` | The resting border, at the fixed --bb-border-w. Errors and warnings paint their frame over it, so `pt:box="[--border-color:…]"` recolours the rest without hiding the state; a plain `border-*` utility on the base pt:box would hide it (ESLint `no-box-border-color`). |
|
|
2566
|
+
| `--ph` | `pt:box` | `var(--bb-text-muted)` | Placeholder colour, one local for every field: the native `::placeholder`, BbSelect's activator text and the picker inputs' empty segments. Set it through `pt:box="[--ph:…]"`; app-wide, the same entry in the global pt map. |
|
|
2532
2567
|
|
|
2533
2568
|
## Component tree
|
|
2534
2569
|
|
|
@@ -2539,16 +2574,16 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
2539
2574
|
- **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `BbSelect`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
2540
2575
|
- Listed nodes are the ones `BbSelect`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, repeats and undocumented locals included, is `manifest/components/BbSelect.tree.json`.
|
|
2541
2576
|
|
|
2542
|
-
- `BbSelect` _(this component)_ — its own template binds: `badge` → `CommonField`, `activator` → `input.bb-select__activator`, `badge` → `input.bb-select__activator`, `comma` → `span.bb-select__comma`, `badge` → `span.bb-select__comma`, `badge` → `BbBadge`, `controlAttrs` → `input`, `badge` → `input`; hands `BbSelectPopover` the pt map `{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription' }` (ours → theirs)
|
|
2577
|
+
- `BbSelect` _(this component)_ — its own template binds: `badge` → `CommonField`, `activator` → `input.bb-select__activator`, `badge` → `input.bb-select__activator`, `comma` → `span.bb-select__comma`, `badge` → `span.bb-select__comma`, `badge` → `BbBadge`, `controlAttrs` → `input`, `badge` → `input`; hands `BbSelectPopover` the pt map `{ panel: 'panel', sheet: 'sheet', header: 'header', footer: 'footer', input: 'input', list: 'list', option: 'option', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }` (ours → theirs)
|
|
2543
2578
|
- `CommonField` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
|
|
2544
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
|
|
2579
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbSelect`)_ — `BbSelect`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
|
|
2545
2580
|
- `BbBadge` _(public — [contract](./BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
|
|
2546
2581
|
- `BbSelectPopover` _(public — [contract](./BbSelectPopover.md))_ — its own pt parts (`BbSelectPopover`): `input` → `input.bb-select-popover__input`, `clear` → `ClearableButton`, `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-select-popover__header`, `footer` → `div.bb-select-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbBadge`, `BbIcon`, `ClearableButton`, `CommonPopover`, `ErrorIcon`, `WarningIcon`, `BbSmoothHeight`
|
|
2547
2582
|
- `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
2548
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
2583
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
2549
2584
|
- `ListBox` _(internal — not importable, reach it through `BbSelectPopover`)_
|
|
2550
|
-
- `FlatListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`; also mounts `BbIcon`, `ErrorIcon`
|
|
2551
|
-
- `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`; also mounts `BbIcon`, `ErrorIcon`
|
|
2585
|
+
- `FlatListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
2586
|
+
- `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — its own pt parts (`BbSelectPopover`): `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
2552
2587
|
|
|
2553
2588
|
## See Also
|
|
2554
2589
|
|
|
@@ -26,12 +26,13 @@
|
|
|
26
26
|
| `pt:itemIcon` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
27
27
|
| `pt:itemText` | `span.bb-listbox__item-text` | `FlatListBox` _(internal)_ |
|
|
28
28
|
| `pt:itemDescription` | `span.bb-listbox__item-description` | `FlatListBox` _(internal)_ |
|
|
29
|
+
| `pt:check` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
29
30
|
|
|
30
31
|
**CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `BbSelectPopover`'s root:
|
|
31
32
|
|
|
32
33
|
| Variable | Set through | Declared by | What it is |
|
|
33
34
|
| --- | --- | --- | --- |
|
|
34
|
-
| `--w` | `pt:itemIcon` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
35
|
+
| `--w` | `pt:itemIcon`, `pt:check` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
35
36
|
|
|
36
37
|
## Usage & Guidelines
|
|
37
38
|
|
|
@@ -1394,17 +1395,17 @@ const cityLabel = computed(
|
|
|
1394
1395
|
### Search field and filtering
|
|
1395
1396
|
|
|
1396
1397
|
The panel carries a search field (role `searchbox`). Filtering follows the shared
|
|
1397
|
-
semantics (Options/Fetch playbooks): array items filter locally
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
applies on top of** the
|
|
1398
|
+
semantics (Options/Fetch playbooks): array items filter locally against the
|
|
1399
|
+
display text with `BbSelect`'s ranked search (case and accents ignored, best
|
|
1400
|
+
matches first; groups keep their order). `filter-by: ['path', …]` searches the listed paths
|
|
1401
|
+
**instead of** the text (every path must exist on every item or matching
|
|
1402
|
+
throws); with a provider, the local search **still applies on top of** the
|
|
1403
|
+
response by default.
|
|
1402
1404
|
|
|
1403
1405
|
`:filter-by="false"` turns the local filter off: the provider's answer is the
|
|
1404
1406
|
list. Set it whenever the provider sends `query` to the server, so a row the
|
|
1405
1407
|
server matched on a field the row doesn't show (an email, an id) or by its own
|
|
1406
|
-
rules (
|
|
1407
|
-
results". It is explicit — a provider does not imply it — and on array `items`
|
|
1408
|
+
rules (synonyms, stemming) is not hidden as "No results". It is explicit — a provider does not imply it — and on array `items`
|
|
1408
1409
|
it shows every option whatever is typed.
|
|
1409
1410
|
|
|
1410
1411
|
`disable-writing` removes the search field entirely — `true` everywhere, or
|
|
@@ -1424,7 +1425,7 @@ the user; the next open re-decides. It never applies to a **provider** `items`
|
|
|
1424
1425
|
**`option:add`** — a creatable popover keeps its field however short the list.
|
|
1425
1426
|
An explicit `disable-writing` on the instance — any value, the valueless
|
|
1426
1427
|
shorthand included — always wins. The threshold is the only global knob: set
|
|
1427
|
-
`autoDisableWritingThreshold: 0` in the plugin to keep every search field;
|
|
1428
|
+
`components: { all: { autoDisableWritingThreshold: 0 } }` in the plugin to keep every search field;
|
|
1428
1429
|
there is deliberately no option that hides them all.
|
|
1429
1430
|
|
|
1430
1431
|
**`clearable`** (off by default) puts a clear button in the search field's
|
|
@@ -1622,7 +1623,7 @@ const roleLabel = computed(
|
|
|
1622
1623
|
|
|
1623
1624
|
### Adaptive mobile sheet
|
|
1624
1625
|
|
|
1625
|
-
With `adaptive` (default: global `
|
|
1626
|
+
With `adaptive` (default: global `all.adaptive`, which is `true`), the panel
|
|
1626
1627
|
opens as a bottom off-canvas sheet on mobile viewports (below
|
|
1627
1628
|
`config.mobileMaxWidth`) instead of a floating popover — same search, options and
|
|
1628
1629
|
`#header`/`#footer` slots. In **multiple** mode the current selection also shows
|
|
@@ -1652,7 +1653,7 @@ floating popover everywhere.
|
|
|
1652
1653
|
not portalled to `<body>`), so it inherits your CSS context and is directly
|
|
1653
1654
|
queryable (handy for tests: the open panel is `.bb-listbox--open` on the same
|
|
1654
1655
|
root, no portal hop).
|
|
1655
|
-
- **Global config** — `
|
|
1656
|
+
- **Global config** — `all.adaptive` (default for `adaptive`),
|
|
1656
1657
|
`config.autoDisableWritingThreshold` (the option count below which an unset
|
|
1657
1658
|
`disable-writing` — `'auto'` — hides the search field, `6`; `0` turns it
|
|
1658
1659
|
off — see § Search field and filtering), `config.mobileMaxWidth` (the mobile threshold), `config.locale`
|
|
@@ -1670,7 +1671,7 @@ floating popover everywhere.
|
|
|
1670
1671
|
`pt` reaches a named part of the popover with a class list — or, in the
|
|
1671
1672
|
object form, a style and attributes — optionally only while a state is on.
|
|
1672
1673
|
Parts: `root` (the floating element — an invisible positioning wrapper, no node on a phone), `panel` (the options surface you see: the popover's painted bubble on desktop, the sheet itself on a phone), `sheet` (the bottom sheet the surface becomes on a phone — only that sheet, never the desktop surface; applied after `panel`, so it wins a conflict there), `input` (the search
|
|
1673
|
-
field), `option` (every listbox option, a broadcast resolved per option), `itemText` (that option's label), `itemIcon` (its `itemProps` icons)
|
|
1674
|
+
field), `option` (every listbox option, a broadcast resolved per option), `itemText` (that option's label), `itemIcon` (its `itemProps` icons) `itemDescription` (its muted second line, `itemProps.description`) and `check` (the tick on a chosen option) — all with the option's states; a custom `#option` slot replaces the label and description, never the tick (`pt:check="hidden"` drops it and leaves a mark your slot draws alone),
|
|
1674
1675
|
`header`, `footer`. States: `open`, and `selected` / `disabled` per option.
|
|
1675
1676
|
`BbSelect` forwards its own `panel` / `sheet` / `option` here.
|
|
1676
1677
|
|
|
@@ -1750,7 +1751,7 @@ tinted — is a **per-item function** on an option part:
|
|
|
1750
1751
|
`:pt:option="({ item, selected }) => item.away && 'opacity-60'"`, called with
|
|
1751
1752
|
the option's raw item (typed as your item) and every state as a boolean for
|
|
1752
1753
|
that option, its result merged after `pt:option:selected`. Option parts only
|
|
1753
|
-
(`option`, `itemText`, `itemIcon`, `itemDescription`), on the instance only —
|
|
1754
|
+
(`option`, `itemText`, `itemIcon`, `itemDescription`, `check`), on the instance only —
|
|
1754
1755
|
never in the plugin's global map or a scope.
|
|
1755
1756
|
|
|
1756
1757
|
A listener on `pt:input` concatenates after the search field's own handler,
|
|
@@ -1779,8 +1780,8 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1779
1780
|
- A seeded model shows **no trigger `text`** until the first load (no eager
|
|
1780
1781
|
prefill upgrade, by design) — pass `known-items`, or resolve the label from
|
|
1781
1782
|
your own state. Array `items` resolve on mount, so this only bites providers.
|
|
1782
|
-
- The local
|
|
1783
|
-
|
|
1783
|
+
- The local search also applies to provider results — server matches whose
|
|
1784
|
+
text doesn't match the query are hidden — unless you set
|
|
1784
1785
|
`:filter-by="false"`, which a provider that searches on the server needs.
|
|
1785
1786
|
- `filter-by` is `string[]` or `false`. An array matches exactly those paths,
|
|
1786
1787
|
and each must exist on every item or matching throws; `false` filters nothing.
|
|
@@ -1889,16 +1890,16 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1889
1890
|
|
|
1890
1891
|
| Prop | Type | Default | Required | Description |
|
|
1891
1892
|
| --- | --- | --- | --- | --- |
|
|
1892
|
-
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `clear`, `footer`, `header`, `input`, `itemDescription`, `itemIcon`, `itemText`, `list`, `option`, `panel`, `root`, `sheet`. States: `
|
|
1893
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `check`, `clear`, `footer`, `header`, `input`, `itemDescription`, `itemIcon`, `itemText`, `list`, `option`, `panel`, `root`, `sheet`. States: `disabled`, `open`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSelectPopoverProps<Row>['pt']` (`BbSelectPopoverProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
1893
1894
|
| `activator` | `Record<string, any> \| HTMLElement \| null \| undefined` | | | External activator element or component ref. When provided, the activator slot is not rendered and event listeners are attached programmatically to the referenced element. |
|
|
1894
|
-
| `adaptive` | `boolean \| undefined` | ``
|
|
1895
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile, the panel opens as a bottom sheet instead of a floating popover, with the same search and list. Unset, the global `all.adaptive` applies. |
|
|
1895
1896
|
| `anchor` | `Record<string, any> \| HTMLElement \| null \| undefined` | `null` | | Override the element used for popover positioning and width measurement. Useful when the focusable activator is narrower than its visual container (e.g. a button inside a wrapper). Falls back to `activatorEl` when omitted. |
|
|
1896
1897
|
| `ariaDescribedby` | `string \| string[] \| undefined` | | | Space-separated IDREF(s) that describe this field for assistive technologies. Accepts either a string or array of ids. |
|
|
1897
1898
|
| `ariaInvalid` | `boolean \| undefined` | `undefined` | | Explicit invalid state for accessibility semantics. Falls back to `hasErrors` when not provided. |
|
|
1898
1899
|
| `autocomplete` | `string \| undefined` | `"off"` | | Browser autocomplete hint for the popover search input. |
|
|
1899
|
-
| `boundary` | `string \| Record<string, any> \| HTMLElement \| null \| undefined` | | |
|
|
1900
|
+
| `boundary` | `string \| Record<string, any> \| HTMLElement \| null \| undefined` | | | An element the popover stays inside alongside its trigger (sideways for one above or below). Away from the trigger it may pass the edge, and it flips at the viewport only. |
|
|
1900
1901
|
| `clearable` | `boolean \| undefined` | `false` | | Shows a clear button in the search field, in the lens' place while there is a query or a selection; it resets both. None without a search field. Leave it off when the activator already clears (as BbSelect's does). |
|
|
1901
|
-
| `compact` | `boolean \| undefined` | `
|
|
1902
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Apply the compact density variant. |
|
|
1902
1903
|
| `dependencies` | `unknown[] \| undefined` | `[]` | | Additional dependencies that trigger item reloading when changed. |
|
|
1903
1904
|
| `depsDebounceTime` | `number \| undefined` | `0` | | Debounce delay (ms) for dependency-triggered reloads. |
|
|
1904
1905
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
@@ -1907,7 +1908,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1907
1908
|
| `emptyText` | `string \| undefined` | | | Message displayed when no items are available. |
|
|
1908
1909
|
| `enforceCoherence` | `boolean \| undefined` | `false` | | Drops the picks the items no longer contain (single: `null`). Checked after every applied, successful load whose `reason` is not `'search'` (an empty one included), against the FETCHED rows only (a `stash` does not count); a search or failed load never prunes. |
|
|
1909
1910
|
| `failedText` | `string \| undefined` | `the localized `common.failedText` ("Couldn't load items")` | | Message displayed in the empty state while the latest load FAILED (the provider threw): the twin of `emptyText` for that case. |
|
|
1910
|
-
| `filterBy` | `false \| string[] \| undefined` | `[]` | | What typing filters on: empty = the display text and description; item paths = those fields (`['name', 'email']`); `false` = no filtering. Use `false` when the provider matched the query on the server, or its email
|
|
1911
|
+
| `filterBy` | `false \| string[] \| undefined` | `[]` | | What typing filters on: empty = the display text and description; item paths = those fields (`['name', 'email']`); `false` = no filtering. Use `false` when the provider matched the query on the server, or its email matches show as "No results". |
|
|
1911
1912
|
| `groupBy` | `string \| ((item: Item) => string \| number \| symbol) \| undefined` | | | Path to item property for grouping options. |
|
|
1912
1913
|
| `hasErrors` | `boolean \| undefined` | `false` | | Marks the component as being in error state. |
|
|
1913
1914
|
| `hasWarnings` | `boolean \| undefined` | `false` | | Marks the component as being in a warning state. Visually mirrors `hasErrors` but uses `--bb-warn` chrome; errors take priority when both are set. |
|
|
@@ -1936,7 +1937,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1936
1937
|
| `selectable` | `boolean \| ((item: Item) => boolean) \| undefined` | `true` | | Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled. |
|
|
1937
1938
|
| `stash` | `boolean \| undefined` | `false` | | Keeps picked options named across searches: a pick stays resolvable when a later search or a failed load no longer returns it. It follows the model, and does not keep a pick valid: `enforce-coherence` still prunes it. |
|
|
1938
1939
|
| `transitionDuration` | `number \| undefined` | `250` | | Transition duration (ms) for popover show/hide animations. |
|
|
1939
|
-
| `width` | `string \| number \| undefined` | `"200"` | | Width of the popover
|
|
1940
|
+
| `width` | `string \| number \| undefined` | `"200"` | | Width of the popover: a bare number or `'200'` is pixels, else a CSS width, a percentage or `'auto'`. The default is the string `'200'`. |
|
|
1940
1941
|
|
|
1941
1942
|
## Passthrough parts and states
|
|
1942
1943
|
|
|
@@ -1954,6 +1955,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1954
1955
|
| `itemText` | An option's label — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
|
|
1955
1956
|
| `itemIcon` | An option's prepend / append icons (`itemProps`) — resolved with that option's states. Also takes a per-item function. |
|
|
1956
1957
|
| `itemDescription` | An option's second line (its description) — resolved with that option's states. A custom `#option` slot replaces it. Also takes a per-item function. |
|
|
1958
|
+
| `check` | The tick on the chosen option, at the row's end — mounted on every option and drawn on the chosen ones; a custom `#option` slot keeps it. `pt:check="hidden"` removes it and leaves a glyph your slot draws alone. Also takes a per-item function. |
|
|
1957
1959
|
| `header` | The flyout's header band. |
|
|
1958
1960
|
| `footer` | The flyout's footer band. |
|
|
1959
1961
|
|
|
@@ -1961,8 +1963,8 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
1961
1963
|
|
|
1962
1964
|
| State | When it is on |
|
|
1963
1965
|
| --- | --- |
|
|
1964
|
-
| `selected` | Per node, on `option
|
|
1965
|
-
| `disabled` | Per node, on `option
|
|
1966
|
+
| `selected` | Per node, on `option`, its `item-*` parts and `check`: a chosen option. |
|
|
1967
|
+
| `disabled` | Per node, on `option`, its `item-*` parts and `check`: an option that is disabled. |
|
|
1966
1968
|
| `open` | Component-wide: the options surface is showing. |
|
|
1967
1969
|
|
|
1968
1970
|
## Events
|
|
@@ -2014,10 +2016,10 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
2014
2016
|
- `BbSelectPopover` _(this component)_ — its own template binds: `input` → `input.bb-select-popover__input`, `clear` → `ClearableButton`, `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-select-popover__header`, `footer` → `div.bb-select-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs)
|
|
2015
2017
|
- `BbBadge` _(public — [contract](./BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
|
|
2016
2018
|
- `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
2017
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
2019
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
2018
2020
|
- `ListBox` _(internal — not importable, reach it through `BbSelectPopover`)_
|
|
2019
|
-
- `FlatListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`; also mounts `BbIcon`, `ErrorIcon`
|
|
2020
|
-
- `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`; also mounts `BbIcon`, `ErrorIcon`
|
|
2021
|
+
- `FlatListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
2022
|
+
- `GroupedListBox` _(internal — not importable, reach it through `BbSelectPopover`)_ — `BbSelectPopover`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
2021
2023
|
- Also mounts `BbIcon`, `ClearableButton`, `CommonPopover`, `ErrorIcon`, `WarningIcon`, `BbSmoothHeight`
|
|
2022
2024
|
|
|
2023
2025
|
## See Also
|