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/BbOffCanvas.md
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
| --- | --- | --- | --- |
|
|
23
23
|
| `--size` | `pt:close` | `CloseButton` | the button box — the hit target, not the glyph |
|
|
24
24
|
| `--p` | `pt:close` | `CloseButton` | padding inside that box; what is left of --size is the glyph |
|
|
25
|
+
| `--icon-size` | `pt:close` | `CloseButton` | Glyph: whatever the padding leaves, but never under 10px — a tight --size with the default padding would otherwise collapse it. Declared here, not on the svg: the glyph is a BbIcon, whose own `--size` local would shadow the button's there. |
|
|
25
26
|
|
|
26
27
|
## Usage & Guidelines
|
|
27
28
|
|
|
@@ -691,7 +692,7 @@ const navItems: NavItem[] = [
|
|
|
691
692
|
|
|
692
693
|
`size` runs the shared `xs`–`2xl` scale **plus `auto`**, and controls the
|
|
693
694
|
panel's extent along its travel axis — width for `left`/`right`, height for
|
|
694
|
-
`top`/`bottom`. The presets map to `
|
|
695
|
+
`top`/`bottom`. The presets map to `components.BbOffCanvas.sizeMap` (320px for
|
|
695
696
|
`xs` up to 672px for `2xl`; the default `sm` is 384px, overridable in the plugin
|
|
696
697
|
options). A number is pixels, a string passes through as a CSS size, and `auto`
|
|
697
698
|
hugs the content (`fit-content`) — the basis of a content-sized sheet.
|
|
@@ -1428,7 +1429,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1428
1429
|
| `preventClose` | `boolean \| undefined` | ``undefined` (follows a saving form inside)` | | Refuses every user close (backdrop, Escape, drag, the ✕, the slots' `close`) with the deny nudge; `v-model` still closes. Unset: locked while a `BbForm` inside saves (an async `@submit`). `true`: always; `false`: never, not even mid-save. Beside a form: `busy \|\| undefined`. |
|
|
1429
1430
|
| `queryKey` | `string \| undefined` | `"offcanvas"` | | The query key `navigation` writes. |
|
|
1430
1431
|
| `replace` | `boolean \| undefined` | `false` | | With `navigation`, replaces the history entry instead of pushing one, so Back leaves the page instead of closing the panel. |
|
|
1431
|
-
| `side` | `Responsive<"
|
|
1432
|
+
| `side` | `Responsive<"top" \| "bottom" \| "left" \| "right"> \| undefined` | `'left'` | | Which viewport edge the offcanvas docks to (and slides in from). Also a per-breakpoint map (e.g. `{ default: 'bottom', md: 'right' }`), resolved when the panel opens: an open panel keeps its side through a resize. |
|
|
1432
1433
|
| `size` | `Responsive<OffCanvasSize> \| undefined` | `"sm"` | | The panel's extent along its axis: a left/right panel's width (shrinks with a narrower viewport) or a top/bottom one's height (capped at the viewport). A preset `'xs'`–`'2xl'`, `'auto'`, a CSS size, a pixel number, or a per-breakpoint map (e.g. `{ default: 'sm', lg: 'lg' }`). |
|
|
1433
1434
|
| `snap` | `BbSnapPoint \| undefined` | | | The snap stop the sheet rests at, written as one of the `snapPoints` entries. Updated once the sheet settles on another stop; setting it moves the sheet there. Unbound, every opening starts at the first stop. |
|
|
1434
1435
|
| `snapPoints` | `BbSnapPoint[] \| undefined` | | | Heights a draggable bottom sheet rests at, smallest first: a fraction of the screen (`0.5`, `1` = full) or `'240px'`. The first is the opening height; `v-model:snap` holds the stop. Ignored on other sides and `fullscreen` (guide § Snap points). |
|
|
@@ -1520,7 +1521,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1520
1521
|
- Listed nodes are the ones `BbOffCanvas`'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/BbOffCanvas.tree.json`.
|
|
1521
1522
|
|
|
1522
1523
|
- `BbOffCanvas` _(this component)_ — its own template binds: `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`
|
|
1523
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
1524
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
1524
1525
|
|
|
1525
1526
|
## See Also
|
|
1526
1527
|
|
package/dist/ai/BbPagination.md
CHANGED
|
@@ -15,8 +15,15 @@
|
|
|
15
15
|
| pt part | Lands on | In |
|
|
16
16
|
| --- | --- | --- |
|
|
17
17
|
| `pt:arrow` | the root of `BbBaseButton` | `BbBaseButton` ([contract](./BbBaseButton.md)) |
|
|
18
|
+
| `pt:icon` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
18
19
|
| `pt:item` | the root of `BbBaseButton` | `BbBaseButton` ([contract](./BbBaseButton.md)) |
|
|
19
20
|
|
|
21
|
+
**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 `BbPagination`'s root:
|
|
22
|
+
|
|
23
|
+
| Variable | Set through | Declared by | What it is |
|
|
24
|
+
| --- | --- | --- | --- |
|
|
25
|
+
| `--w` | `pt:icon` | `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. |
|
|
26
|
+
|
|
20
27
|
## Usage & Guidelines
|
|
21
28
|
|
|
22
29
|
### When to use
|
|
@@ -612,7 +619,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
612
619
|
| Prop | Type | Default | Required | Description |
|
|
613
620
|
| --- | --- | --- | --- | --- |
|
|
614
621
|
| `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: `arrow`, `ellipsis`, `icon`, `item`, `root`. States: `disabled`, `active`. 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 `BbPaginationProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
615
|
-
| `align` | `"
|
|
622
|
+
| `align` | `"center" \| "left" \| "right" \| undefined` | `"right"` | | Alignment of the pagination control. |
|
|
616
623
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component |
|
|
617
624
|
| `ellipsis` | `string \| undefined` | `"..."` | | String of text displayed in place of hidden pages. |
|
|
618
625
|
| `label` | `string \| undefined` | | | Label of the pagination navigation landmark. When unset, falls back to the localized `pagination.label` (`'Pagination'` / `'Paginazione'`). |
|
|
@@ -686,8 +693,9 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
686
693
|
- **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 `BbPagination`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
687
694
|
- Listed nodes are the ones `BbPagination`'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/BbPagination.tree.json`.
|
|
688
695
|
|
|
689
|
-
- `BbPagination` _(this component)_ — its own template binds: `arrow` → `BbBaseButton`, `icon` → `
|
|
696
|
+
- `BbPagination` _(this component)_ — its own template binds: `arrow` → `BbBaseButton`, `icon` → `BbIcon`, `ellipsis` → `span.bb-pagination__ellipsis`, `item` → `BbBaseButton`
|
|
690
697
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
698
|
+
- Also mounts `BbIcon`
|
|
691
699
|
|
|
692
700
|
## See Also
|
|
693
701
|
|
package/dist/ai/BbPopover.md
CHANGED
|
@@ -379,7 +379,7 @@ inline: a component portal injects from where the trigger is, a named portal
|
|
|
379
379
|
from where its `<BbPopoverPortal>` is declared. So **a popover opened inside a
|
|
380
380
|
`BbForm` joins that form**, just as an inline `BbPopover` does: a field in a
|
|
381
381
|
component portal whose trigger sits in the form registers with it, and so does
|
|
382
|
-
a field in a named portal declared inside the form. A `<
|
|
382
|
+
a field in a named portal declared inside the form. A `<BbConfigScope>` around the
|
|
383
383
|
trigger styles the popover too. A component portal remounts on every open, so keep anything that must
|
|
384
384
|
survive between openings outside it.
|
|
385
385
|
|
|
@@ -702,7 +702,7 @@ tethered to the trigger, not left floating over the page.
|
|
|
702
702
|
|
|
703
703
|
### Adaptive: a bottom sheet on mobile
|
|
704
704
|
|
|
705
|
-
By default (`
|
|
705
|
+
By default (`all.adaptive`, `true` out of the box) a popover opened on a small
|
|
706
706
|
viewport (below `config.mobileMaxWidth`, 768px) renders as a bottom-anchored,
|
|
707
707
|
draggable `BbOffCanvas` sheet instead of a floating panel — better ergonomics
|
|
708
708
|
for thumbs. The surface is **latched when the popover opens** and stays fixed for
|
|
@@ -721,7 +721,7 @@ that session, so a mid-session resize never swaps panel ↔ sheet.
|
|
|
721
721
|
forces the sheet on regardless of the global config.
|
|
722
722
|
|
|
723
723
|
Leave `adaptive` unset unless the project asks otherwise — the tri-state default
|
|
724
|
-
falls back to `
|
|
724
|
+
falls back to `all.adaptive`.
|
|
725
725
|
|
|
726
726
|
### Restyling with passthrough
|
|
727
727
|
|
|
@@ -884,7 +884,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
884
884
|
| --- | --- | --- | --- | --- |
|
|
885
885
|
| `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: `content`, `footer`, `header`, `panel`, `root`, `sheet`. States: `open`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbPopoverProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
886
886
|
| `activator` | `ElementOrComponentRef \| undefined` | | | External activator element or component ref. When provided, the activator slot is not rendered and click events are attached programmatically to the referenced element. |
|
|
887
|
-
| `adaptive` | `boolean \| undefined` | ``
|
|
887
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`), renders as a bottom sheet instead of a floating panel, with the same `header`, `default` and `footer` slots. `width` is ignored there: size the sheet with `offCanvasProps`. Unset: the global `all.adaptive`. |
|
|
888
888
|
| `boundary` | `ElementOrComponentRefOrSelector \| undefined` | | | Constrains the popover within a bounding element: it stays inside it alongside its trigger (sideways for a popover above or below); away from the trigger it may pass the edge, and it flips at the viewport only. Accepts an HTMLElement, a Vue component ref, or a CSS selector string. |
|
|
889
889
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
890
890
|
| `eager` | `boolean \| undefined` | `false` | | Renders the panel's content at mount instead of on the first open (the phone sheet's too). |
|
|
@@ -946,7 +946,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
946
946
|
|
|
947
947
|
- `BbPopover` _(this component)_ — its own template binds: `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-popover__header`, `content` → `div.bb-popover__content`, `footer` → `div.bb-popover__footer`; hands `BbOffCanvas` the pt map `{ header: 'header', content: 'content', footer: 'footer', panel: 'root', sheet: 'root', }` (ours → theirs)
|
|
948
948
|
- `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`
|
|
949
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
949
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
950
950
|
- Also mounts `CommonPopover`
|
|
951
951
|
|
|
952
952
|
## See Also
|
package/dist/ai/BbRadio.md
CHANGED
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
|
|
27
27
|
| Variable | Set through | Declared by | What it is |
|
|
28
28
|
| --- | --- | --- | --- |
|
|
29
|
+
| `--space` | `pt:icon` | `BbBaseRadioIcon` | the gap between the ring and the checked dot, per side |
|
|
30
|
+
| `--ring-color` | `pt:icon` | `BbBaseRadioIcon` | the gap between the ring and the checked dot, per side |
|
|
31
|
+
| `--bw` | `pt:icon` | `BbBaseRadioIcon` | The ring's border width: the nested hairline, like the switch track. |
|
|
32
|
+
| `--t` | `pt:icon` | `BbBaseRadioIcon` | State-change time: the fill fade and the dot scaling in. |
|
|
29
33
|
| `--elev` | `pt:icon` | `BbBaseRadioIcon` | Same resting lift as the checkbox glyph — see BbBaseCheckboxIcon. |
|
|
30
34
|
| `--bg` | `pt:icon` | `BbBaseRadioIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
|
|
31
35
|
| `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
|
|
@@ -441,6 +445,21 @@ const strategy = ref<MergeMethod>('squash');
|
|
|
441
445
|
</script>
|
|
442
446
|
```
|
|
443
447
|
|
|
448
|
+
**The drawing is set through CSS locals on `icon`**
|
|
449
|
+
(`pt:icon="[--size:20px] [--space:4px]"`):
|
|
450
|
+
|
|
451
|
+
| Local | Default | What it sets |
|
|
452
|
+
| ---------------- | ------------------------ | ----------------------------------------------------- |
|
|
453
|
+
| `--size` | `16px` | Ring width and height |
|
|
454
|
+
| `--bg` | `--bb-panel` | Fill inside the ring |
|
|
455
|
+
| `--accent` | `--bb-primary` | The checked dot |
|
|
456
|
+
| `--border-color` | `--bb-border` | The ring's edge |
|
|
457
|
+
| `--bw` | `--bb-border-w-sm` | The ring's border width |
|
|
458
|
+
| `--space` | `2px` | The gap between the ring and the dot, per side |
|
|
459
|
+
| `--elev` | `--bb-elev-sm` | Resting lift |
|
|
460
|
+
| `--t` | `--bb-transition-medium` | State-change time: the fill fade, the dot scaling in |
|
|
461
|
+
| `--ring-color` | `--bb-ring` | Focus ring colour (errors and warnings set their own) |
|
|
462
|
+
|
|
444
463
|
An attribute in `attrs` wins over ours. The invisible native input under the glyph is
|
|
445
464
|
not a part — plain attributes on the component land on the root. A listener in `attrs` runs after the control's own
|
|
446
465
|
handler, never instead of it. The full grammar, the merge rules and the global
|
|
@@ -508,7 +527,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
508
527
|
| `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: `description`, `hint`, `icon`, `label`, `message`, `root`. States: `checked`, `disabled`, `errors`, `focused`, `focusVisible`, `readonly`, `warnings`. 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 `BbRadioProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
509
528
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
510
529
|
| `checked` | `boolean \| undefined` | `undefined` | | Defines the input as checked. |
|
|
511
|
-
| `compact` | `boolean \| undefined` | `
|
|
530
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact field's label gap with the `-compact` token, not the base one. The same meaning as on the checkbox, radio and switch groups. |
|
|
512
531
|
| `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`. |
|
|
513
532
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
514
533
|
| `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. |
|
|
@@ -518,11 +537,11 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
518
537
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
519
538
|
| `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
|
|
520
539
|
| `inputAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
|
|
521
|
-
| `inputPosition` | `"
|
|
540
|
+
| `inputPosition` | `"center" \| "left" \| "right" \| undefined` | `'left'` | | Sets the alignment of the input. Since inputs are inline block they can be aligned just as text can. |
|
|
522
541
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
523
542
|
| `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. |
|
|
524
|
-
| `labelPosition` | `"
|
|
525
|
-
| `layout` | `Responsive<FieldLayout> \| undefined` | `
|
|
543
|
+
| `labelPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
544
|
+
| `layout` | `Responsive<FieldLayout> \| undefined` | `'auto'` | | 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' }`). |
|
|
526
545
|
| `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
|
|
527
546
|
| `name` | `string \| undefined` | | | Name of the input. Optional: a generated one is unique to this radio, so radios that form ONE exclusive group must share an explicit `name`. Pass one too for a native (non-JS) form post under a known key. |
|
|
528
547
|
| `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
|
package/dist/ai/BbRadioGroup.md
CHANGED
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
|
|
31
31
|
| Variable | Set through | Declared by | What it is |
|
|
32
32
|
| --- | --- | --- | --- |
|
|
33
|
+
| `--space` | `pt:icon` | `BbBaseRadioIcon` | the gap between the ring and the checked dot, per side |
|
|
34
|
+
| `--ring-color` | `pt:icon` | `BbBaseRadioIcon` | the gap between the ring and the checked dot, per side |
|
|
35
|
+
| `--bw` | `pt:icon` | `BbBaseRadioIcon` | The ring's border width: the nested hairline, like the switch track. |
|
|
36
|
+
| `--t` | `pt:icon` | `BbBaseRadioIcon` | State-change time: the fill fade and the dot scaling in. |
|
|
33
37
|
| `--elev` | `pt:icon` | `BbBaseRadioIcon` | Same resting lift as the checkbox glyph — see BbBaseCheckboxIcon. |
|
|
34
38
|
| `--bg` | `pt:icon` | `BbBaseRadioIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
|
|
35
39
|
| `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
|
|
@@ -54,6 +58,8 @@
|
|
|
54
58
|
| `--indicator-inset` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge |
|
|
55
59
|
| `--elev` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The theme's resting lift, composed UNDER the indicator's own shadow |
|
|
56
60
|
| `--indicator-shadow` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Indicator lift, painted on top of --elev |
|
|
61
|
+
| `--divider` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The frame and the lines between the segments |
|
|
62
|
+
| `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked segment under the pointer |
|
|
57
63
|
|
|
58
64
|
## Usage & Guidelines
|
|
59
65
|
|
|
@@ -236,13 +242,14 @@ Options flow in a **wrapping row by default** — `list-layout` falls back
|
|
|
236
242
|
to `'horizontal'`, which suits segmented-style choices (shipping
|
|
237
243
|
speed, billing cycle). Pass `list-layout="vertical"` to stack them one per
|
|
238
244
|
line, which is what you want for long option text or a scannable list;
|
|
239
|
-
`'
|
|
240
|
-
makes equal-size boxes that wrap as the field narrows
|
|
245
|
+
`'tiles'` makes equal-size boxes that wrap as the field narrows
|
|
241
246
|
(`pt:list="[--tile-min-width:160px]"` sets how narrow one gets). `list-layout`
|
|
242
247
|
is layout only, with no card look: the radio cards and selection tiles below
|
|
243
|
-
draw theirs with `pt`. `
|
|
248
|
+
draw theirs with `pt`. `block` gives the rows the list's full width: on a
|
|
249
|
+
line they share it equally, stacked each row is field-wide (every look, the
|
|
250
|
+
`variant` strips included). `item-layout` arranges each row's input against its
|
|
244
251
|
label with the keywords of `layout`, and `item-reverse` swaps the two; a
|
|
245
|
-
settings list is `list-layout="vertical
|
|
252
|
+
settings list is `list-layout="vertical" block item-layout="label-fill"
|
|
246
253
|
item-reverse` (the label takes the row, the radio sits at the trailing edge). `item-input-align` / `item-label-align`
|
|
247
254
|
(`top | center | bottom`) aim each row's cells vertically, as in the switch
|
|
248
255
|
group's settings list; the field's `input-align` / `label-align` move the
|
|
@@ -298,13 +305,14 @@ by side, see "Selection tiles" below.
|
|
|
298
305
|
<div class="max-w-md">
|
|
299
306
|
<BbRadioGroup
|
|
300
307
|
v-model="method"
|
|
308
|
+
block
|
|
301
309
|
item-layout="label-fill"
|
|
302
310
|
:item-props="{ description: 'eta' }"
|
|
303
311
|
item-text="name"
|
|
304
312
|
item-value="id"
|
|
305
313
|
:items="methods"
|
|
306
314
|
legend="Shipping"
|
|
307
|
-
list-layout="vertical
|
|
315
|
+
list-layout="vertical"
|
|
308
316
|
name="shipping"
|
|
309
317
|
pt:item="rounded-(--bb-radius) border px-4 py-3"
|
|
310
318
|
pt:item:checked="border-(--bb-primary) bg-(--bb-muted)"
|
|
@@ -326,7 +334,7 @@ import { BbRadioGroup } from 'bitboss-ui';
|
|
|
326
334
|
type Method = { id: string; name: string; price: string; eta: string };
|
|
327
335
|
|
|
328
336
|
// Radio cards: one full-width bordered row per option
|
|
329
|
-
// (`list-layout="vertical
|
|
337
|
+
// (`list-layout="vertical" block`), the radio first and the label cell
|
|
330
338
|
// filling the rest (`item-layout="label-fill"`), so a flex row in `#label`
|
|
331
339
|
// pushes the price to the trailing edge. The delivery time is the row's
|
|
332
340
|
// `itemProps.description`, which sits under the label, beside the radio.
|
|
@@ -350,18 +358,21 @@ const method = ref<string>('standard');
|
|
|
350
358
|
Pick a value → `BbRadioGroup`; switch views → `BbTabs`. A strip that picks a
|
|
351
359
|
value a form or a filter submits (a status filter, a period) is still a
|
|
352
360
|
radiogroup (arrow keys, "2 of 4"), so give the group a tab strip's look:
|
|
353
|
-
`variant="pill"` (a muted strip, a raised pill under the pick)
|
|
354
|
-
`variant="line"` (a baseline across the field, a bar under the pick)
|
|
361
|
+
`variant="pill"` (a muted strip, a raised pill under the pick),
|
|
362
|
+
`variant="line"` (a baseline across the field, a bar under the pick) or
|
|
363
|
+
`variant="outline"` (outline buttons side by side, the pick filled with the
|
|
364
|
+
primary colour). The
|
|
355
365
|
strip, its triggers and the indicator measure exactly as BbTabs', and the
|
|
356
366
|
indicator slides as a tab strip's does. The dot is hidden (an `icon` slot
|
|
357
367
|
shows before the label, like a tab's icon) and the strip never wraps (it
|
|
358
368
|
scrolls); `list-layout="vertical"` stacks it into a column (the indicator
|
|
359
|
-
slides on the Y axis), `
|
|
360
|
-
layouts and `item-layout` do not apply. The legend, errors, `compact` and
|
|
369
|
+
slides on the Y axis), `block` spans the field (the triggers share its width
|
|
370
|
+
equally on a row), and the other layouts and `item-layout` do not apply. The legend, errors, `compact` and
|
|
361
371
|
`hide-legend` work as on any group. `pt:indicator` reaches the pill or the
|
|
362
|
-
bar, and `pt:<part>:pill` /
|
|
372
|
+
bar (the filled segment on `outline`), and `pt:<part>:pill` /
|
|
373
|
+
`pt:<part>:line` / `pt:<part>:outline` style a part in one look only.
|
|
363
374
|
|
|
364
|
-
**Pick a value with
|
|
375
|
+
**Pick a value with a strip look**
|
|
365
376
|
|
|
366
377
|
```vue
|
|
367
378
|
<template>
|
|
@@ -380,6 +391,14 @@ bar, and `pt:<part>:pill` / `pt:<part>:line` style a part in one look only.
|
|
|
380
391
|
legend="Period"
|
|
381
392
|
variant="line"
|
|
382
393
|
/>
|
|
394
|
+
<BbRadioGroup
|
|
395
|
+
v-model="cycle"
|
|
396
|
+
block
|
|
397
|
+
hide-legend
|
|
398
|
+
:items="cycles"
|
|
399
|
+
legend="Billing cycle"
|
|
400
|
+
variant="outline"
|
|
401
|
+
/>
|
|
383
402
|
</div>
|
|
384
403
|
</template>
|
|
385
404
|
|
|
@@ -387,14 +406,17 @@ bar, and `pt:<part>:pill` / `pt:<part>:line` style a part in one look only.
|
|
|
387
406
|
import { ref } from 'vue';
|
|
388
407
|
import { BbRadioGroup } from 'bitboss-ui';
|
|
389
408
|
|
|
390
|
-
//
|
|
391
|
-
// under the pick)
|
|
392
|
-
//
|
|
409
|
+
// Three strip looks on a value picker: `pill` (a muted strip, a raised pill
|
|
410
|
+
// under the pick), `line` (a baseline across the field, a bar under the pick)
|
|
411
|
+
// and `outline` (outline buttons, the pick filled; `block` spans the field in
|
|
412
|
+
// equal shares). The indicator slides like a tab strip's, and it is still a
|
|
393
413
|
// radiogroup: arrow keys move and pick, a form submits the value.
|
|
394
414
|
const statuses = ['All', 'Open', 'Closed', 'Archived'];
|
|
395
415
|
const status = ref('Open');
|
|
396
416
|
const periods = ['Day', 'Week', 'Month', 'Year'];
|
|
397
417
|
const period = ref('Week');
|
|
418
|
+
const cycles = ['Monthly', 'Yearly'];
|
|
419
|
+
const cycle = ref('Yearly');
|
|
398
420
|
</script>
|
|
399
421
|
```
|
|
400
422
|
|
|
@@ -405,7 +427,7 @@ set them on `pt:list` to retune one group. A strip has no `size`: it is
|
|
|
405
427
|
it with `--list-h`, `--list-r`, `--fs`, `--p` and `--trigger-px` on
|
|
406
428
|
`.bb-radio-group__list--strip`; beside an `sm` button that is
|
|
407
429
|
`pt:list="[--list-h:24px] [--fs:12px] [--p:2px]"`. A look of your own app-wide is a
|
|
408
|
-
registered variant: `
|
|
430
|
+
registered variant: `components: { BbRadioGroup: { variants: ['brand'] } }` in the build plugin, then the
|
|
409
431
|
same tokens on `.bb-radio-group__list--brand` in your CSS. A tabs theme does
|
|
410
432
|
not reach a choice strip, nor the other way round.
|
|
411
433
|
|
|
@@ -742,7 +764,7 @@ Two width facts worth knowing before you reach for `width: 100%` anywhere:
|
|
|
742
764
|
outright on a layered build.
|
|
743
765
|
- The list fills its column (`.bb-field__input-wrapper`, the whole field unless
|
|
744
766
|
`layout` puts the legend beside it): tiles share the field,
|
|
745
|
-
`
|
|
767
|
+
`block` rows are field-wide, and
|
|
746
768
|
`pt:list="grid grid-cols-3"` spreads its tracks across it. The exception is
|
|
747
769
|
`input-position="right"` / `"center"`: there the list shrink-wraps its rows
|
|
748
770
|
and sits at that edge, so stacked rows keep one shared left edge.
|
|
@@ -781,8 +803,8 @@ The theme tiles above, restyled through those parts. The layout is two props
|
|
|
781
803
|
— `list-layout="tiles"` for equal boxes, `item-layout="vertical"` to stack the
|
|
782
804
|
glyph over the caption — so `pt:item` is only the tile's look, a broadcast;
|
|
783
805
|
the selected accent is `pt:item:checked`. For full-width tiles stacked one per
|
|
784
|
-
line,
|
|
785
|
-
|
|
806
|
+
line, set `list-layout="vertical" block` and change nothing else: the list
|
|
807
|
+
becomes a column and every tile fills it.
|
|
786
808
|
|
|
787
809
|
**The glyph is the row's input cell** — there is no wrapper around it, so
|
|
788
810
|
whatever you would do to that cell, do on `pt:icon`: `pt:icon="self-start"`
|
|
@@ -889,7 +911,7 @@ type Theme = { id: string; label: string; icon: string };
|
|
|
889
911
|
// The layout is two props — `list-layout="tiles"` for equal boxes,
|
|
890
912
|
// `item-layout="vertical"` to stack the glyph over the caption — so `pt:item`
|
|
891
913
|
// is only the tile's look (centred, bordered) and `pt:item:checked` the
|
|
892
|
-
// accent.
|
|
914
|
+
// accent. Set `list-layout="vertical" block` and the same tiles stack,
|
|
893
915
|
// each as wide as the field — nothing else changes. `#icon` replaces the
|
|
894
916
|
// radio dot, and with it the dot's focus ring, so `pt:item:focus-visible`
|
|
895
917
|
// rings the tile for keyboard users.
|
|
@@ -973,9 +995,10 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
973
995
|
|
|
974
996
|
| Prop | Type | Default | Required | Description |
|
|
975
997
|
| --- | --- | --- | --- | --- |
|
|
976
|
-
| `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: `description`, `hint`, `icon`, `indicator`, `item`, `itemDescription`, `label`, `legend`, `list`, `message`, `root`. States: `disabled`, `errors`, `hasValue`, `line`, `loading`, `pill`, `readonly`, `warnings`, `checked`, `focused`, `focusVisible`. 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 `BbRadioGroupProps<Row>['pt']` (`BbRadioGroupProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
998
|
+
| `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: `description`, `hint`, `icon`, `indicator`, `item`, `itemDescription`, `label`, `legend`, `list`, `message`, `root`. States: `disabled`, `errors`, `hasValue`, `line`, `loading`, `outline`, `pill`, `readonly`, `warnings`, `checked`, `focused`, `focusVisible`. 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 `BbRadioGroupProps<Row>['pt']` (`BbRadioGroupProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
977
999
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
978
|
-
| `
|
|
1000
|
+
| `block` | `boolean \| undefined` | `undefined` | | The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`. |
|
|
1001
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one. |
|
|
979
1002
|
| `dependencies` | `unknown[] \| undefined` | | | Defines an array of dependencies that will trigger actions in the component upon change. |
|
|
980
1003
|
| `depsDebounceTime` | `number \| undefined` | | | Timeout used to debounce response to changes to dependencies. |
|
|
981
1004
|
| `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`. |
|
|
@@ -992,12 +1015,12 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
992
1015
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
993
1016
|
| `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
|
|
994
1017
|
| `inputAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
|
|
995
|
-
| `inputPosition` | `"
|
|
1018
|
+
| `inputPosition` | `"center" \| "left" \| "right" \| undefined` | `'left'` | | Sets the alignment of the input. Since inputs are inline block they can be aligned just as text can. |
|
|
996
1019
|
| `itemInputAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line. |
|
|
997
1020
|
| `itemLabelAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of each option's label in its row. Omitted, it stays as it is. |
|
|
998
1021
|
| `itemLayout` | `FieldLayout \| undefined` | `'auto'` | | How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`. |
|
|
999
1022
|
| `itemProps` | `BbOptionGroupItemProps<T> \| undefined` | | | ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly. |
|
|
1000
|
-
| `itemReverse` | `boolean \| undefined` | `
|
|
1023
|
+
| `itemReverse` | `boolean \| undefined` | `undefined` | | Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead. |
|
|
1001
1024
|
| `items` | `T[] \| ((context: BbRadioGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. |
|
|
1002
1025
|
| `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
|
|
1003
1026
|
| `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
|
|
@@ -1005,8 +1028,8 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
1005
1028
|
| `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' }`). |
|
|
1006
1029
|
| `legend` | `string` | | yes | Text content of the legend. |
|
|
1007
1030
|
| `legendMode` | `"outside" \| "inside" \| undefined` | | | Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for radio groups. |
|
|
1008
|
-
| `legendPosition` | `"
|
|
1009
|
-
| `listLayout` | `'horizontal'` \| `'vertical'` \| `'
|
|
1031
|
+
| `legendPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
1032
|
+
| `listLayout` | `'horizontal'` \| `'vertical'` \| `'tiles'` | `'horizontal'` | | How the rows sit in the list: `'horizontal'` (on a line, wrapping), `'vertical'` (stacked) or `'tiles'` (equal boxes; `--tile-min-width` on `pt:list` sets the narrowest). `block` makes the rows full width. Layout only: the cards are `pt` (guide § Radio cards). |
|
|
1010
1033
|
| `loadingText` | `string \| undefined` | | | String displayed while items are being loaded. |
|
|
1011
1034
|
| `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
|
|
1012
1035
|
| `modelValueDebounceTime` | `number \| undefined` | | | Timeout used to debounce response to changes to modelValue. |
|
|
@@ -1014,12 +1037,12 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
1014
1037
|
| `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
|
|
1015
1038
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
1016
1039
|
| `required` | `boolean \| undefined` | `false` | | Sets the input as required. |
|
|
1017
|
-
| `reverse` | `boolean \| undefined` | `
|
|
1040
|
+
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
|
|
1018
1041
|
| `rules` | `RuleExpression<any>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
1019
1042
|
| `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. |
|
|
1020
1043
|
| `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. |
|
|
1021
|
-
| `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 `
|
|
1022
|
-
| `variant` | `'pill'` \| `'line'` | | | A tab-strip look: `'pill'` (a raised pill under the pick) or `'line'` (a bar on a baseline); the indicator slides like a tab strip's. `list-layout="vertical"` stacks it. Register more with `
|
|
1044
|
+
| `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. |
|
|
1045
|
+
| `variant` | `'outline'` \| `'pill'` \| `'line'` | | | A tab-strip look: `'pill'` (a raised pill under the pick) or `'line'` (a bar on a baseline); the indicator slides like a tab strip's. `list-layout="vertical"` stacks it. Register more with `components.BbRadioGroup.variants`. Unset: the group's own rows. |
|
|
1023
1046
|
| `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. |
|
|
1024
1047
|
|
|
1025
1048
|
## Passthrough parts and states
|
|
@@ -1054,6 +1077,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
1054
1077
|
| `focusVisible` | Per row, on the row parts: that option's focus is keyboard-visible — where a focus ring belongs. |
|
|
1055
1078
|
| `loading` | Component-wide: the items are being fetched. |
|
|
1056
1079
|
| `line` | On every part: `variant: 'line'`. Below the real states, like every variant. |
|
|
1080
|
+
| `outline` | On every part: `variant: 'outline'`. Below the real states, like every variant. |
|
|
1057
1081
|
| `pill` | On every part: `variant: 'pill'`. Merged after the part's base entry and before its states, so the real states still win. |
|
|
1058
1082
|
|
|
1059
1083
|
## Events
|
|
@@ -1123,6 +1147,21 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1123
1147
|
| `--indicator-h` | `.bb-radio-group__list--line` | `2px` | |
|
|
1124
1148
|
| `--indicator-shadow` | `.bb-radio-group__list--line` | `none` | |
|
|
1125
1149
|
| `--elev` | `.bb-radio-group__list--line` | `none` | |
|
|
1150
|
+
| `--list-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline)` | |
|
|
1151
|
+
| `--list-border` | `.bb-radio-group__list--outline` | `transparent` | |
|
|
1152
|
+
| `--p` | `.bb-radio-group__list--outline` | `0px` | |
|
|
1153
|
+
| `--trigger-r` | `.bb-radio-group__list--outline` | `0px` | |
|
|
1154
|
+
| `--trigger-px` | `.bb-radio-group__list--outline` | `12px` | |
|
|
1155
|
+
| `--list-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
|
|
1156
|
+
| `--hover-fg` | `.bb-radio-group__list--outline` | `var(--bb-outline-fg)` | |
|
|
1157
|
+
| `--active-fg` | `.bb-radio-group__list--outline` | `var(--bb-primary-fg)` | |
|
|
1158
|
+
| `--active-fw` | `.bb-radio-group__list--outline` | `500` | |
|
|
1159
|
+
| `--indicator-bg` | `.bb-radio-group__list--outline` | `var(--bb-primary)` | |
|
|
1160
|
+
| `--indicator-border` | `.bb-radio-group__list--outline` | `transparent` | |
|
|
1161
|
+
| `--indicator-r` | `.bb-radio-group__list--outline` | `0px` | |
|
|
1162
|
+
| `--indicator-shadow` | `.bb-radio-group__list--outline` | `none` | |
|
|
1163
|
+
| `--divider` | `.bb-radio-group__list--outline` | `var(--bb-outline-border)` | The frame and the lines between the segments |
|
|
1164
|
+
| `--hover-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline-hover)` | An unpicked segment under the pointer |
|
|
1126
1165
|
|
|
1127
1166
|
## Component tree
|
|
1128
1167
|
|
|
@@ -1135,7 +1174,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1135
1174
|
|
|
1136
1175
|
- `BbRadioGroup` _(this component)_ — its own template binds: `indicator` → `span.bb-radio-group__indicator`, `icon` → `BbBaseRadioIcon`
|
|
1137
1176
|
- `CommonField` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'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`
|
|
1138
|
-
- `OptionsContainer` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`
|
|
1177
|
+
- `OptionsContainer` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--divider`, `--hover-bg`
|
|
1139
1178
|
- Also mounts `BbBaseRadioIcon`
|
|
1140
1179
|
|
|
1141
1180
|
## See Also
|
package/dist/ai/BbRating.md
CHANGED
|
@@ -484,7 +484,7 @@ renders SSR-safe markup in Nuxt and Inertia apps.
|
|
|
484
484
|
| `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: `description`, `hint`, `item`, `label`, `message`, `root`. States: `disabled`, `errors`, `hasValue`, `readonly`, `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 `BbRatingProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
485
485
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
486
486
|
| `clearable` | `boolean \| undefined` | `false` | | Allows clearing the selected rating by clicking the current value. |
|
|
487
|
-
| `compact` | `boolean \| undefined` | `
|
|
487
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one. |
|
|
488
488
|
| `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`. |
|
|
489
489
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
490
490
|
| `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. |
|
|
@@ -495,23 +495,23 @@ renders SSR-safe markup in Nuxt and Inertia apps.
|
|
|
495
495
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
496
496
|
| `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
|
|
497
497
|
| `inputAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
|
|
498
|
-
| `inputPosition` | `"
|
|
498
|
+
| `inputPosition` | `"center" \| "left" \| "right" \| undefined` | `'left'` | | Sets the alignment of the input. Since inputs are inline block they can be aligned just as text can. |
|
|
499
499
|
| `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. |
|
|
500
500
|
| `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' }`). |
|
|
501
501
|
| `legend` | `string` | | yes | Text content of the legend. |
|
|
502
502
|
| `legendMode` | `"outside" \| "inside" \| undefined` | | | Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for rating groups. |
|
|
503
|
-
| `legendPosition` | `"
|
|
503
|
+
| `legendPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the legend. |
|
|
504
504
|
| `modelValue` | `number \| null \| undefined` | | | Used by v-model. |
|
|
505
505
|
| `name` | `string \| undefined` | | | Name of the star radio inputs. Optional: the stars live in one component instance, so an omitted name falls back to a generated one that groups them correctly. Pass one only when a native (non-JS) form post must submit the value under a known key. |
|
|
506
506
|
| `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
|
|
507
507
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
508
508
|
| `required` | `boolean \| undefined` | `false` | | Sets the input as required. |
|
|
509
|
-
| `reverse` | `boolean \| undefined` | `
|
|
509
|
+
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
|
|
510
510
|
| `rules` | `RuleExpression<number \| null>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
511
511
|
| `size` | `number \| CssSize \| keyof Sizes \| undefined` | `'md'` | | Defines the component size. Accepted values: - A key from the provided size map (`keyof T`), e.g. `'sm' \| 'md' \| 'lg'` - A custom CSS size string (e.g. `'20px'`, `'1.5rem'`, `'2em'`) - A number, typically interpreted as pixels by size parsers |
|
|
512
512
|
| `stars` | `number \| undefined` | `5` | | Maximum number of stars to render and maximum value of the component. |
|
|
513
513
|
| `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. |
|
|
514
|
-
| `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 `
|
|
514
|
+
| `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. |
|
|
515
515
|
| `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. |
|
|
516
516
|
|
|
517
517
|
## Passthrough parts and states
|