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/BbDropdown.md
CHANGED
|
@@ -88,7 +88,7 @@ check` flags both (`missing-value`, `duplicate-row-label`) when the items are
|
|
|
88
88
|
replaces them; the trailing icon also gives way to a submenu chevron and, on
|
|
89
89
|
the selected row, to the selection check (see § Per-item and per-group slots).
|
|
90
90
|
- `variant` — visual tone. Only `destructive` is styled out of the box; the
|
|
91
|
-
`
|
|
91
|
+
`components.BbDropdown.variants` plugin option registers more typed names, each
|
|
92
92
|
rendering a `bb-dropdown__item--variant-<name>` class hook you style yourself.
|
|
93
93
|
- `disabled` — non-interactive row, skipped by keyboard navigation.
|
|
94
94
|
|
|
@@ -1150,17 +1150,20 @@ group owns an independent query.
|
|
|
1150
1150
|
What each knob does:
|
|
1151
1151
|
|
|
1152
1152
|
- **`searchable`** puts the field at the top of that group — inside its submenu
|
|
1153
|
-
when the group is nested. Typing narrows the group's rows
|
|
1154
|
-
|
|
1153
|
+
when the group is nested. Typing narrows the group's rows with `BbSelect`'s
|
|
1154
|
+
ranked search (case and accents ignored; exact, then starts-with, then word
|
|
1155
|
+
starts, then contains, then a code typed without separators; one typo per
|
|
1156
|
+
word of 5+ letters only when nothing else matched; ranked inside each
|
|
1157
|
+
`groupBy` section), and on an async group passes the typed text to the getter as
|
|
1155
1158
|
`query` in its context object (`reason: 'search'`), the same shape
|
|
1156
1159
|
`BbSelect` uses, so one provider serves both.
|
|
1157
|
-
- **`filterBy`** picks which raw fields the local
|
|
1160
|
+
- **`filterBy`** picks which raw fields the local search reads. Empty
|
|
1158
1161
|
(the default) matches the resolved display text, plus the resolved
|
|
1159
1162
|
description when the group's `itemProps` gives one. The match also runs on
|
|
1160
1163
|
an async group's answer, so when the getter sends `query` to the server, set
|
|
1161
1164
|
**`filterBy: false`**: no local filter, the getter's rows are the list, and a
|
|
1162
|
-
row the server matched on a field it doesn't show (an email) or
|
|
1163
|
-
|
|
1165
|
+
row the server matched on a field it doesn't show (an email) or by its own
|
|
1166
|
+
rules (a synonym) is not hidden. To drop the field instead, leave
|
|
1164
1167
|
out `searchable`.
|
|
1165
1168
|
- **`searchPlaceholder`** overrides the field's placeholder; it defaults to the
|
|
1166
1169
|
localized label.
|
|
@@ -1857,7 +1860,7 @@ sheet. Selection, slots and events behave
|
|
|
1857
1860
|
exactly as on desktop. The surface is **latched per open**: resizing
|
|
1858
1861
|
mid-session never swaps a live menu between flyout and sheet.
|
|
1859
1862
|
|
|
1860
|
-
- The default comes from the global `
|
|
1863
|
+
- The default comes from the global `all.adaptive` (`true`); the `adaptive`
|
|
1861
1864
|
prop overrides it per component. Pin `:adaptive="false"` when a menu must
|
|
1862
1865
|
stay a flyout everywhere — e.g. deterministic UI tests or dense desktop-only
|
|
1863
1866
|
tooling.
|
|
@@ -1882,7 +1885,7 @@ broadcast, on the flyout and the phone sheet alike; its magnifier is chrome),
|
|
|
1882
1885
|
resolved per entry — and `itemText` / `itemIcon` / `itemDescription`, that
|
|
1883
1886
|
entry's label, its prepend / append icons and its muted second line (the item's
|
|
1884
1887
|
`label` / `prepend:icon` · `append:icon` / `description`), resolved with the entry's
|
|
1885
|
-
states (a per-entry `#<value>` slot replaces the label and description). States: `open`, and `selected` / `disabled` per entry.
|
|
1888
|
+
states (a per-entry `#<value>` slot replaces the label and description), and `check`, the tick at the end of a selectable group's checked entry (a row slot never replaces it; `pt:check="hidden"` drops it and leaves a mark your slot draws alone), and `submenu`, every submenu's flyout box at any depth (desktop: a phone sheet drills into submenus in place, so style what you see there with `panel`). States: `open`, and `selected` / `disabled` per entry.
|
|
1886
1889
|
Groups, headings and dividers are not parts.
|
|
1887
1890
|
|
|
1888
1891
|
The invoice View menu, restyled through those parts: a muted wash on
|
|
@@ -1985,7 +1988,7 @@ destructive entries only, after the base `item` entry and before `selected` /
|
|
|
1985
1988
|
`disabled`. So a base look never hides the red: a global
|
|
1986
1989
|
`item: 'text-ink hover:bg-tint'` plus `'item:destructive': 'text-red-700'`
|
|
1987
1990
|
keeps it, on the flyout and the phone sheet alike. An entry with no `variant`
|
|
1988
|
-
is `default`; a name of your own (`
|
|
1991
|
+
is `default`; a name of your own (`components: { BbDropdown: { variants: ['warning'] } }`) works in
|
|
1989
1992
|
every form, `pt:item:warning` included.
|
|
1990
1993
|
|
|
1991
1994
|
A look that depends on the ENTRY'S DATA — an entry flagged by the row it came
|
|
@@ -1993,7 +1996,12 @@ from — is a **per-item function** on an entry part:
|
|
|
1993
1996
|
`:pt:item="({ item, variant, selected, disabled }) => …"`, called with the menu
|
|
1994
1997
|
entry, every state as a boolean for it and its `variant` as a string, its
|
|
1995
1998
|
result merged after the state entries. Entry parts only (`item`, `itemText`,
|
|
1996
|
-
`itemIcon`, `itemDescription`), on the instance only.
|
|
1999
|
+
`itemIcon`, `itemDescription`, `check`), on the instance only.
|
|
2000
|
+
|
|
2001
|
+
`submenu` takes a function too, called with the entry that OPENS the flyout,
|
|
2002
|
+
so one submenu can look different from the rest:
|
|
2003
|
+
`:pt:submenu="({ item }) => item.value === 'export' && 'min-w-64'"`. A plain
|
|
2004
|
+
value styles every flyout (`pt:submenu="rounded-md"`).
|
|
1997
2005
|
|
|
1998
2006
|
**pt:item as a function — a destructive entry by its data**
|
|
1999
2007
|
|
|
@@ -2242,7 +2250,7 @@ own sizes.
|
|
|
2242
2250
|
- `width` defaults to `'auto'` (content-sized, ≥128px) — not a fixed pixel
|
|
2243
2251
|
width; pass a number when menus must align across rows.
|
|
2244
2252
|
- Item `variant`s other than `destructive` render only a class hook — register
|
|
2245
|
-
names via the `
|
|
2253
|
+
names via the `components.BbDropdown.variants` plugin option and ship their CSS.
|
|
2246
2254
|
- `<BbDropdownGroup>` must sit in a `BbDropdown`'s default slot (a
|
|
2247
2255
|
`BbDropdownButton`'s `#dropdown`), its `id` must match a group's `id`, and a `multiple` group's
|
|
2248
2256
|
model must be an array — all three misuses throw.
|
|
@@ -2325,13 +2333,13 @@ it, and at the top level closes the sheet.
|
|
|
2325
2333
|
|
|
2326
2334
|
| Prop | Type | Default | Required | Description |
|
|
2327
2335
|
| --- | --- | --- | --- | --- |
|
|
2328
|
-
| `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: `footer`, `header`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `list`, `panel`, `root`, `sheet`. States: `
|
|
2336
|
+
| `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`, `footer`, `header`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `list`, `panel`, `root`, `sheet`, `submenu`. States: `activeLink`, `default`, `destructive`, `disabled`, `exactActiveLink`, `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 `BbDropdownProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
2329
2337
|
| `activator` | `Record<string, any> \| HTMLElement \| null \| undefined` | | | An external activator element or component ref: the activator slot is not rendered, and the listeners and ARIA (`aria-haspopup` / `aria-expanded` / `aria-controls`) are attached to it; don't add your own. |
|
|
2330
|
-
| `adaptive` | `boolean \| undefined` | ``
|
|
2338
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`), renders the menu as a bottom sheet that drills into submenus one level at a time instead of hover flyouts; slots and selection are unchanged. Unset: the global `all.adaptive`. |
|
|
2331
2339
|
| `anchor` | `Record<string, any> \| HTMLElement \| null \| undefined` | `the activator element` | | The element the panel positions against when it should differ from the activator (a wrapper the activator is part of); an HTMLElement or component ref. It also drives a percentage `width`. Ignored with `placement="cursor"`. |
|
|
2332
2340
|
| `boundary` | `string \| Record<string, any> \| HTMLElement \| null \| undefined` | | | Keeps the panel inside this element alongside its trigger (sideways for a menu above or below); away from the trigger it may pass the edge, and only the viewport flips it. An HTMLElement, a component ref or a CSS selector: a `useTemplateRef`, never `$refs.x` (not reactive). |
|
|
2333
2341
|
| `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a change in a single-choice group closes it (an untick too, at any depth); a `multiple` group stays open. `true`: every selection change closes it. `false`: none does. |
|
|
2334
|
-
| `compact` | `boolean \| undefined` | `
|
|
2342
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Compact density, the `BbSelect` ladder: flyout rows 28px → 24px, sheet rows 44px → 36px (a sheet row stays a touch target). The label size does not change. |
|
|
2335
2343
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component |
|
|
2336
2344
|
| `eager` | `boolean \| undefined` | `false` | | Renders the menu panel at mount instead of on the first open (the phone sheet's too), and keeps its rows after a close. Without it the rows mount on each open and go once the menu has closed. |
|
|
2337
2345
|
| `emptyText` | `string \| undefined` | | | Default placeholder text shown when a pipeline group resolves to no items. A group's own `emptyText` overrides this; both fall back to the localized `common.emptyText` (`'No data to display'`). |
|
|
@@ -2366,6 +2374,8 @@ it, and at the top level closes the sheet.
|
|
|
2366
2374
|
| `itemText` | An entry's label (its `label`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
|
|
2367
2375
|
| `itemIcon` | An entry's prepend / append icons — resolved with that entry's states. Also takes a per-item function. |
|
|
2368
2376
|
| `itemDescription` | An entry's muted second line (its `description`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
|
|
2377
|
+
| `check` | A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. Also takes a per-item function. |
|
|
2378
|
+
| `submenu` | Every submenu's flyout box (desktop only). Also takes a per-item function, called with the entry that opens it. |
|
|
2369
2379
|
|
|
2370
2380
|
States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
|
|
2371
2381
|
|
|
@@ -2431,8 +2441,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
2431
2441
|
- `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`
|
|
2432
2442
|
- `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbDropdownList`
|
|
2433
2443
|
- `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`
|
|
2434
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
2435
|
-
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
|
|
2444
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
2445
|
+
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
|
|
2436
2446
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
2437
2447
|
- Also mounts `CommonPopover`, `DropdownPipelineResolver`
|
|
2438
2448
|
|
|
@@ -18,15 +18,11 @@
|
|
|
18
18
|
| `pt:icon` | `pt:icon` of `BbButton` | `BbButton` ([contract](./BbButton.md)) |
|
|
19
19
|
| `pt:spinner` | `pt:spinner` of `BbButton` | `BbButton` ([contract](./BbButton.md)) |
|
|
20
20
|
| `pt:text` | `pt:text` of `BbButton` | `BbButton` ([contract](./BbButton.md)) |
|
|
21
|
-
| `pt:panel` | `pt:panel` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
22
|
-
| `pt:sheet` | `pt:sheet` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
23
|
-
| `pt:header` | `pt:header` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
24
|
-
| `pt:footer` | `pt:footer` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
25
|
-
| `pt:input` | `pt:input` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
26
21
|
| `pt:item` | `pt:item` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
27
22
|
| `pt:itemText` | `pt:itemText` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
28
23
|
| `pt:itemIcon` | `pt:itemIcon` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
29
24
|
| `pt:itemDescription` | `pt:itemDescription` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
25
|
+
| `pt:check` | `pt:check` of `BbDropdown` | `BbDropdown` ([contract](./BbDropdown.md)) |
|
|
30
26
|
| `pt:toggle` | `pt:root` of `BbButton` | `BbButton` ([contract](./BbButton.md)) |
|
|
31
27
|
|
|
32
28
|
## Usage & Guidelines
|
|
@@ -503,8 +499,9 @@ its `pt:root`), `icon`, `spinner` and `text` (the main button's — handed to it
|
|
|
503
499
|
as its own `pt`; the toggle's chevron is chrome), `panel` (the menu), `sheet` (the bottom sheet
|
|
504
500
|
the menu becomes on a phone, only), `input` (every `searchable` group's
|
|
505
501
|
search field), `item` (every entry), and `itemText` /
|
|
506
|
-
`itemIcon` / `itemDescription` (an entry's label, its icons
|
|
507
|
-
second line
|
|
502
|
+
`itemIcon` / `itemDescription` / `check` (an entry's label, its icons, its muted
|
|
503
|
+
second line and a checked entry's tick), and `submenu` (every submenu's flyout
|
|
504
|
+
box) — all handed to the `BbDropdown` under the same words, so
|
|
508
505
|
`pt:panel:open`, `pt:item:disabled` and `pt:item-text` resolve there, on the
|
|
509
506
|
flyout and on the phone sheet alike. States: `loading`, `disabled`, `open` on
|
|
510
507
|
every part, and `selected` (a selectable group's checked entry) on the entry
|
|
@@ -587,7 +584,8 @@ is a **per-item function** on an entry part:
|
|
|
587
584
|
`:pt:item="({ item, selected }) => item.meta?.tone === 'warning' && 'text-amber-600'"`,
|
|
588
585
|
called with the menu entry and every state as a boolean for it, its result
|
|
589
586
|
merged after `pt:item:selected`. Entry parts only (`item`, `itemText`,
|
|
590
|
-
`itemIcon`, `itemDescription`),
|
|
587
|
+
`itemIcon`, `itemDescription`, `check`), plus `submenu`, called with the entry
|
|
588
|
+
that opens the flyout; on the instance only; the
|
|
591
589
|
[BbDropdown guide](./BbDropdown.md) has worked examples.
|
|
592
590
|
|
|
593
591
|
The full grammar, the merge rules and the global map are in the
|
|
@@ -640,13 +638,13 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
640
638
|
|
|
641
639
|
| Prop | Type | Default | Required | Description |
|
|
642
640
|
| --- | --- | --- | --- | --- |
|
|
643
|
-
| `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: `footer`, `header`, `icon`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `main`, `panel`, `root`, `sheet`, `spinner`, `text`, `toggle`. States: `activeLink`, `disabled`, `exactActiveLink`, `loading`, `open`, `
|
|
641
|
+
| `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`, `footer`, `header`, `icon`, `input`, `item`, `itemDescription`, `itemIcon`, `itemText`, `main`, `panel`, `root`, `sheet`, `spinner`, `submenu`, `text`, `toggle`. States: `activeLink`, `default`, `destructive`, `disabled`, `exactActiveLink`, `loading`, `open`, `selected`, `ghost`, `link`, `outline`, `primary`, `secondary`. 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 `BbDropdownButtonProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
644
642
|
| `activeClass` | `string \| undefined` | | | Class to apply when the link is active. |
|
|
645
|
-
| `adaptive` | `boolean \| undefined` | ``
|
|
643
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile (below `config.mobileMaxWidth`), renders the menu as a bottom sheet that drills into submenus one level at a time instead of hover flyouts; slots and selection are unchanged. Unset: the global `all.adaptive`. |
|
|
646
644
|
| `append:icon` | `string \| undefined` | | | Icon to be added on the right of the text. |
|
|
647
645
|
| `ariaCurrentValue` | `"time" \| "true" \| "false" \| "page" \| "step" \| "location" \| "date" \| undefined` | `'page'` | | Value passed to the attribute `aria-current` when the link is exact active. |
|
|
648
646
|
| `async` | `boolean \| undefined` | `false` | | Inertia: runs the visit without blocking — the page stays interactive and several async visits can be in flight at once. |
|
|
649
|
-
| `block` | `boolean \| undefined` | `
|
|
647
|
+
| `block` | `boolean \| undefined` | `undefined` | | Displays the component as full width. |
|
|
650
648
|
| `cacheFor` | `string \| number \| (string \| number)[] \| undefined` | | | Inertia: how long a prefetched response stays fresh before it is re-fetched. A single duration, or `[staleAfter, expiresAfter]`. Typed platform-agnostically (matching BbButton) so the library's types never require `@inertiajs/vue3` to be installed. |
|
|
651
649
|
| `cacheTags` | `string \| string[] \| undefined` | | | Inertia: tags to file this visit's prefetch cache under, so a later request can invalidate the whole tagged group. |
|
|
652
650
|
| `closeOnSelect` | `boolean \| undefined` | `unset (close after a single-choice change)` | | Whether a selection closes the menu. Unset: a change in a single-choice group closes it (an untick too, at any depth); a `multiple` group stays open. `true`: every selection change closes it. `false`: none does. |
|
|
@@ -693,7 +691,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
693
691
|
| `preserveUrl` | `boolean \| undefined` | `false` | | Inertia: keep the current URL in the address bar even though the page content changes. |
|
|
694
692
|
| `queryStringArrayFormat` | `"brackets" \| "indices" \| undefined` | `'brackets'` | | Format to use when serializing array values into the query string for Inertia requests. |
|
|
695
693
|
| `replace` | `boolean \| undefined` | `false` | | Calls `router.replace` instead of `router.push`. |
|
|
696
|
-
| `size` | `Responsive<Sizes> \| undefined` | `
|
|
694
|
+
| `size` | `Responsive<Sizes> \| undefined` | ``components.BbButton.size`, else `'md'`` | | Sets the size of the button. When the value is a string, it will be applied to all screen sizes. Otherwise, it will be applied to the screen size specified by the object. Unset: `BbButton`'s `components` entry (the app's or a config scope's). |
|
|
697
695
|
| `tag` | `'button'` \| `'div'` \| `'span'` \| `'label'` | `'button'` | | Element to render for the plain (non-link, non-router) button: `'button'` (default), `'div'`/`'span'` when nesting inside another button or link, or `'label'` for a file-upload trigger. Ignored when `href`/`to` make the button render as a link. |
|
|
698
696
|
| `target` | `string \| undefined` | | | Sets or retrieves the window or frame at which to target content. |
|
|
699
697
|
| `text` | `string \| undefined` | | | Text content of the component. |
|
|
@@ -701,7 +699,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
701
699
|
| `toggle:icon` | `string \| undefined` | | | Replaces the chevron shown inside the dropdown toggle button. A constrained alternative to a slot: only the toggle's icon changes, so the button keeps its semantics. Named after the part it sits in (the `toggle`), the way `prepend:icon` / `append:icon` name theirs. |
|
|
702
700
|
| `transitionDuration` | `number \| undefined` | `150` | | How long the transition has to last in milliseconds. Menus use the fast transition (150) rather than the medium one (250) the other popovers default to: a menu is opened to pick one command and is gone again, so it answers faster than a panel the user reads or edits in. |
|
|
703
701
|
| `type` | `"button" \| "reset" \| "submit" \| undefined` | | | Gets the classification and default behavior of the button. |
|
|
704
|
-
| `variant` | `'outline'` \| `'primary'` \| `'destructive'` \| `'secondary'` \| `'none'` \| `'ghost'` \| `'link'` | `
|
|
702
|
+
| `variant` | `'outline'` \| `'primary'` \| `'destructive'` \| `'secondary'` \| `'none'` \| `'ghost'` \| `'link'` | ``components.BbButton.variant`, else `'primary'`` | | Visual variant shared by both buttons of the split control. `'none'` takes no look (you own hover, focus and disabled); register a real one with the plugin's `components.BbButton.variants` and style `.bb-button--<name>`. Unset: `BbButton`'s `components` entry (the app's or a config scope's). |
|
|
705
703
|
| `viewTransition` | `boolean \| undefined` | `false` | | Inertia: run the page swap inside a View Transition, where the browser supports one. |
|
|
706
704
|
| `width` | `string \| number \| undefined` | `'auto'` | | Width of the dropdown in pixels, percentage, or 'auto' to fit content. |
|
|
707
705
|
|
|
@@ -726,6 +724,8 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
726
724
|
| `itemText` | An entry's label (its `label`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
|
|
727
725
|
| `itemIcon` | An entry's prepend / append icons — resolved with that entry's states. Also takes a per-item function. |
|
|
728
726
|
| `itemDescription` | An entry's muted second line (its `description`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function. |
|
|
727
|
+
| `check` | A checked entry's tick, outside the row slots: `pt:check="hidden"` spares your own glyph. Also takes a per-item function. |
|
|
728
|
+
| `submenu` | Every submenu's flyout box (desktop only). Also takes a per-item function, called with the entry that opens it. |
|
|
729
729
|
|
|
730
730
|
States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
|
|
731
731
|
|
|
@@ -733,17 +733,17 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
733
733
|
| --- | --- |
|
|
734
734
|
| `activeLink` | Component-wide while the main button is a link to the current page or one of its ancestors (its `activeClass` is on); also per node, on the entry parts: a menu entry whose link is. The weakest state. |
|
|
735
735
|
| `exactActiveLink` | Component-wide while the main button is a link to the current page itself (its `exactActiveClass` is on); also per node, on the entry parts. |
|
|
736
|
-
| `selected` | Per node, on the entry parts only (`item`, `itemText`, `itemIcon`, `itemDescription`): a selectable group's checked entry. `pt:root:selected` is a type error, not a silent no-op. |
|
|
736
|
+
| `selected` | Per node, on the entry parts only (`item`, `itemText`, `itemIcon`, `itemDescription`, `check`): a selectable group's checked entry. `pt:root:selected` is a type error, not a silent no-op. |
|
|
737
737
|
| `disabled` | Component-wide while the control is `disabled`; also per node, on the entry parts: a menu entry that is disabled. |
|
|
738
738
|
| `open` | Component-wide: the menu is open. |
|
|
739
739
|
| `loading` | Component-wide: `loading` is on — the main button shows its spinner. |
|
|
740
|
+
| `default` | Per entry, on the entry parts: an entry with `variant: 'default'` or none. Merged after the part's base entry and before its states, so the real states still win. |
|
|
740
741
|
| `destructive` | Per entry, on the entry parts: `variant: 'destructive'`. Below the real states, like every variant. |
|
|
741
742
|
| `ghost` | Component-wide: `variant="ghost"`. Below the real states, like every variant. |
|
|
742
743
|
| `link` | Component-wide: `variant="link"`. Below the real states, like every variant. |
|
|
743
744
|
| `outline` | Component-wide: `variant="outline"`. Below the real states, like every variant. |
|
|
744
745
|
| `primary` | Component-wide: `variant="primary"`. Merged after the part's base entry and before its states, so `disabled` / `loading` still win. |
|
|
745
746
|
| `secondary` | Component-wide: `variant="secondary"`. Below the real states, like every variant. |
|
|
746
|
-
| `default` | Per entry, on the entry parts: an entry with `variant: 'default'` or none. Merged after the part's base entry and before its states, so the real states still win. |
|
|
747
747
|
|
|
748
748
|
## Events
|
|
749
749
|
|
|
@@ -786,15 +786,15 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
786
786
|
- **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 `BbDropdownButton`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
787
787
|
- Listed nodes are the ones `BbDropdownButton`'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/BbDropdownButton.tree.json`.
|
|
788
788
|
|
|
789
|
-
- `BbDropdownButton` _(this component)_ — hands `BbButton` the pt map `{ main: 'root', icon: 'icon', spinner: 'spinner', text: 'text' }` (ours → theirs); hands `BbDropdown` the pt map `{
|
|
790
|
-
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
|
|
789
|
+
- `BbDropdownButton` _(this component)_ — hands `BbButton` the pt map `{ main: 'root', icon: 'icon', spinner: 'spinner', text: 'text' }` (ours → theirs); hands `BbDropdown` the pt map `{ item: 'item', itemText: 'itemText', itemIcon: 'itemIcon', itemDescription: 'itemDescription', check: 'check' }` (ours → theirs); hands `BbButton` the pt map `{ toggle: 'root' }` (ours → theirs)
|
|
790
|
+
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
|
|
791
791
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
792
792
|
- `BbDropdown` _(public — [contract](./BbDropdown.md))_ — its own pt parts (`BbDropdown`): `panel` → `CommonPopover`, `root` → `CommonPopover`, `header` → `div.bb-dropdown__header`, `list` → `span.bb-dropdown__list`, `footer` → `div.bb-dropdown__footer`; documented CSS variables: `--menu-inset`; also mounts `CommonPopover`, `DropdownPipelineResolver`
|
|
793
793
|
- `BbDropdownList` _(internal — not importable, reach it through `BbDropdown`)_ — also mounts `BbIcon`, `ErrorIcon`, `CommonPopover`, `BbDropdownList`
|
|
794
794
|
- `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`
|
|
795
795
|
- `AdaptiveDropdown` _(internal — not importable, reach it through `BbDropdown`)_ — hands `BbOffCanvas` the pt map `{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }` (ours → theirs); also mounts `BbSmoothHeight`, `BbButton`, `BbDropdownList`
|
|
796
796
|
- `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`
|
|
797
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
797
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
798
798
|
|
|
799
799
|
## See Also
|
|
800
800
|
|
package/dist/ai/BbDropzone.md
CHANGED
|
@@ -1677,7 +1677,7 @@ button, grows with every file added, and changes mid-drag. So:
|
|
|
1677
1677
|
| `rules` | `RuleExpression<File \| File[] \| null>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
1678
1678
|
| `tag` | `'div'` \| `'span'` | `"div"` | | Element rendered as the component's wrapper. |
|
|
1679
1679
|
| `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. |
|
|
1680
|
-
| `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 `
|
|
1680
|
+
| `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. |
|
|
1681
1681
|
| `warnings` | `string \| string[] \| undefined` | | | Warning messages under the dropzone, a string or string array: amber, in their own `aria-live` region, and in the control's `aria-describedby` after the errors. A non-empty list implies the warning state; errors win when both are set. |
|
|
1682
1682
|
|
|
1683
1683
|
## Passthrough parts and states
|
package/dist/ai/BbForm.md
CHANGED
|
@@ -328,8 +328,10 @@ Four things to know:
|
|
|
328
328
|
- **An emptied text field holds `null` by default**, not `''`. So
|
|
329
329
|
`z.string().min(1, 'Required')` alone answers an emptied field with the
|
|
330
330
|
library's own "expected string, received null". Two ways out:
|
|
331
|
-
- **Set the plugin option `
|
|
332
|
-
|
|
331
|
+
- **Set the plugin option `components: {
|
|
332
|
+
BbTextInput: { nullValue: 'string' },
|
|
333
|
+
BbTextarea: { nullValue: 'string' },
|
|
334
|
+
}`.** Emptied fields then emit `''` and the short
|
|
333
335
|
schema shows your message as written. Start text values as `''` too (a
|
|
334
336
|
field nobody touched keeps what your page gave it).
|
|
335
337
|
- **Or keep `null` and put the message on the type as well:**
|
|
@@ -1850,7 +1852,7 @@ cast, and does not depend on the root element staying a `<form>`.
|
|
|
1850
1852
|
|
|
1851
1853
|
A field whose rules include `required`, or that has the `required` hint,
|
|
1852
1854
|
renders a red asterisk beside its label ([`BbAsterisk`](./BbAsterisk.md) does the drawing). The plugin's
|
|
1853
|
-
`requiredAsterisk` option (default `true`) turns the marker off app-wide; see
|
|
1855
|
+
`all.requiredAsterisk` option (default `true`) turns the marker off app-wide; see
|
|
1854
1856
|
[Validated Forms § Required asterisk](./guides/validated-forms.md).
|
|
1855
1857
|
|
|
1856
1858
|
With a `schema`, the schema decides, with every Standard Schema
|
|
@@ -1886,7 +1888,7 @@ marker stays consistent with the rules.
|
|
|
1886
1888
|
| `keepValuesOnUnmount` | `boolean \| Ref<boolean, boolean> \| undefined` | | | Keep a field's value (and its place in `@submit`) when it unmounts — the `v-if` wizard step you left, a collapsed section. Off, an unmounted field drops out of the values. |
|
|
1887
1889
|
| `model` | `Record<string, any> \| undefined` | | | The object the fields edit in place (`reactive()`, a `ref`, Pinia state, Inertia `useForm()`): bind it one way, `:model`, never `v-model`. A field without its own `v-model` reads and writes the value at its `name` path. Nothing is written on mount. |
|
|
1888
1890
|
| `schema` | `MaybeRef<S \| undefined>` | | | One Standard Schema for the form (Zod, Valibot, ArkType, Yup, Joi, Effect), passed as is. An issue lands on the field whose `name` is its path; `@submit` gets the typed output. Set it at mount (a `computed` may change it); per-field `rules` are then ignored. |
|
|
1889
|
-
| `validationMode` | `ValidationMode \| undefined` | | | When the fields inside validate as the user works: `aggressive`, `balanced`, `lazy`, `submit-only` or `submit-live` (see `ValidationMode`). A field's own `validation-mode` wins. Unset: the app's `
|
|
1891
|
+
| `validationMode` | `ValidationMode \| undefined` | | | When the fields inside validate as the user works: `aggressive`, `balanced`, `lazy`, `submit-only` or `submit-live` (see `ValidationMode`). A field's own `validation-mode` wins. Unset: the app's `all.validationMode` (default `'balanced'`). |
|
|
1890
1892
|
|
|
1891
1893
|
## Events
|
|
1892
1894
|
|
package/dist/ai/BbHost.md
CHANGED
|
@@ -29,27 +29,33 @@ plugin's while it is mounted, and hands back when it unmounts.
|
|
|
29
29
|
The plugin's host sits right after the app's mount element (a
|
|
30
30
|
`<div data-bb-host>` with `display: contents`) and sees the app's
|
|
31
31
|
`app.provide`s, as a host beside the router outlet would; it does not see
|
|
32
|
-
what `App.vue` provides, nor a `<
|
|
32
|
+
what `App.vue` provides, nor a `<BbConfigScope>` around the app's template.
|
|
33
33
|
|
|
34
34
|
It replaces `<BbConfirm />` and `<BbToast />`, which are no longer exported.
|
|
35
35
|
`<BbConfirmPortal>` and `<BbToastPortal>` are unchanged.
|
|
36
36
|
|
|
37
37
|
### Settings
|
|
38
38
|
|
|
39
|
-
The host takes no props. Its settings live in the plugin
|
|
40
|
-
gets them without touching the tag:
|
|
39
|
+
The host takes no props. Its settings live in the build plugin's `components`
|
|
40
|
+
map, so every app gets them without touching the tag:
|
|
41
41
|
|
|
42
|
-
| Setting | Where
|
|
43
|
-
| ------------------------- |
|
|
44
|
-
| Confirm width | `
|
|
45
|
-
| Toast corner | `
|
|
46
|
-
| Confirm and toast styling |
|
|
42
|
+
| Setting | Where | Per message |
|
|
43
|
+
| ------------------------- | --------------------------------------- | --------------------- |
|
|
44
|
+
| Confirm width | `BbConfirm: { size: 'lg' }` | `confirm({ size })` |
|
|
45
|
+
| Toast corner | `BbToast: { position: 'top-right' }` | `toast({ position })` |
|
|
46
|
+
| Confirm and toast styling | `BbConfirm: { pt }` / `BbToast: { pt }` | — |
|
|
47
47
|
|
|
48
48
|
```ts
|
|
49
|
-
|
|
49
|
+
bitbossUi({
|
|
50
|
+
components: {
|
|
51
|
+
BbConfirm: { size: 'lg' },
|
|
52
|
+
BbToast: { position: 'top-right' },
|
|
53
|
+
},
|
|
54
|
+
});
|
|
50
55
|
```
|
|
51
56
|
|
|
52
|
-
|
|
57
|
+
A config scope's entries apply to what is called inside it: a confirm from
|
|
58
|
+
`useConfirm()`, a toast from `useToast()`.
|
|
53
59
|
|
|
54
60
|
### One host
|
|
55
61
|
|
|
@@ -79,7 +85,7 @@ A confirm takes the passthrough scope and tokens of the component that called
|
|
|
79
85
|
`useConfirm()`, wherever the host sits: nothing to set up. Toasts take the
|
|
80
86
|
scope and tokens of the place the HOST sits, which for the plugin's host is
|
|
81
87
|
the app's own level. When the app is split into areas that each wrap their
|
|
82
|
-
pages in `<
|
|
88
|
+
pages in `<BbConfigScope>` ([passthrough guide](./guides/passthrough.md) § Named
|
|
83
89
|
scopes) and toasts need each area's look, place one `<BbHost />` inside each
|
|
84
90
|
area's layout, within its scope. While an area's host is mounted it renders;
|
|
85
91
|
a page outside every area falls back to the plugin's host. See
|
|
@@ -131,10 +137,10 @@ without a mismatch.
|
|
|
131
137
|
- Listed nodes are the ones `BbHost`'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/BbHost.tree.json`.
|
|
132
138
|
|
|
133
139
|
- `BbHost` _(this component)_
|
|
134
|
-
- `BbToast` _(internal — not importable, reach it through `BbToast`)_ — documented CSS variables: `--gap`, `--offset`, `--width`, `--lift`, `--stack-y`, `--stack-scale`, `--enter-y`, `--swipe-amount`, `--z`, `--r`, `--ring-size`, `--bg`, `--border-color`, `--bw`, `--fg`, `--icon-color`
|
|
140
|
+
- `BbToast` _(internal — not importable, reach it through `BbToast`)_ — documented CSS variables: `--gap`, `--pile-gap`, `--offset`, `--width`, `--lift`, `--stack-y`, `--stack-scale`, `--enter-y`, `--swipe-amount`, `--z`, `--r`, `--ring-size`, `--bg`, `--border-color`, `--bw`, `--fg`, `--icon-color`, `--gap`
|
|
135
141
|
- `BbToastRegion` _(internal — not importable, reach it through `BbToast`)_ — its own pt parts (`BbToast`): `root` → `ol.bb-toast`
|
|
136
142
|
- `BbToastMessage` _(internal — not importable, reach it through `BbToast`)_ — also mounts `BbIcon`, `BbSpinner`
|
|
137
|
-
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
|
|
143
|
+
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
|
|
138
144
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
139
145
|
|
|
140
146
|
## See Also
|
package/dist/ai/BbIcon.md
CHANGED
|
@@ -343,7 +343,7 @@ unit (`"1.5rem"`, `"2em"`, `"50%"`). Any other string (`"huge"`) is a type
|
|
|
343
343
|
error. The scale defaults to **12 / 16 / 24 / 28 / 36 / 40 px**
|
|
344
344
|
(`xs`→`2xl`) and is the same scale `BbAvatar` and the icon-bearing components
|
|
345
345
|
read; consumers can retune it **library-wide** via the plugin's
|
|
346
|
-
`
|
|
346
|
+
`components.BbIcon.sizeMap` option, so prefer the named scale
|
|
347
347
|
over hard pixel numbers to stay consistent with any override. An invalid `size`
|
|
348
348
|
logs a warning and falls back to `md`.
|
|
349
349
|
|
|
@@ -370,7 +370,7 @@ deploy-stages companions both color the row wrapper; the icon tracks it.
|
|
|
370
370
|
|
|
371
371
|
### Config and platform
|
|
372
372
|
|
|
373
|
-
- **`
|
|
373
|
+
- **`components.BbIcon.sizeMap`** (Vite plugin / Nuxt module) — remaps the `xs`–`2xl`
|
|
374
374
|
scale library-wide; the defaults above apply when unset.
|
|
375
375
|
- **Plugin required** — `BbIcon` resolves names through the
|
|
376
376
|
`virtual:bitboss-ui/icons` module the platform plugin provides; without the
|
|
@@ -419,7 +419,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
419
419
|
props over a hand-placed `BbIcon`; the host sizes and aligns the glyph.
|
|
420
420
|
- `BbTabs` / `BbBreadcrumbs` / `BbRating` / `BbSwitch` — the slot surfaces where
|
|
421
421
|
`BbIcon` is the intended way to inject a glyph (no icon field on their items).
|
|
422
|
-
- `BbAvatar` — shares the `
|
|
422
|
+
- `BbAvatar` — shares the `components.BbIcon.sizeMap` scale, so icon and avatar sizes line
|
|
423
423
|
up on the same scale keys.
|
|
424
424
|
|
|
425
425
|
### Gotchas & anti-patterns
|
package/dist/ai/BbIndicator.md
CHANGED
|
@@ -106,7 +106,7 @@ move it:
|
|
|
106
106
|
|
|
107
107
|
`variant` maps to the shared status colors: `default` (primary), `success`,
|
|
108
108
|
`info`, `warning`, and `destructive`. Register more through the
|
|
109
|
-
`
|
|
109
|
+
`components.BbIndicator.variants` option (vite plugin options, or the Nuxt module key of the
|
|
110
110
|
same name) — that extends the TypeScript union and gives you a
|
|
111
111
|
`.bb-indicator--<name>` hook to style (set `--bg` / `--fg`).
|
|
112
112
|
|
|
@@ -139,7 +139,7 @@ warns in dev and falls back to `md`). Match the indicator to the element it
|
|
|
139
139
|
decorates.
|
|
140
140
|
|
|
141
141
|
On a `BbAvatar`, give the indicator the avatar's size key. The avatar's key
|
|
142
|
-
reads `
|
|
142
|
+
reads `components.BbIcon.sizeMap` (remappable in the plugin config); the indicator's is
|
|
143
143
|
fixed in its CSS. With the default avatar sizes:
|
|
144
144
|
|
|
145
145
|
| Size key | Avatar | Dot | Bubble (one digit) |
|
|
@@ -154,7 +154,7 @@ fixed in its CSS. With the default avatar sizes:
|
|
|
154
154
|
The dot stays a quarter to a third of the avatar's edge. A count bubble is
|
|
155
155
|
about half the avatar from `md` up, but as large as an `xs`/`sm` avatar: put a
|
|
156
156
|
`dot` on those. For a pixel avatar (`size="56"`), or a remapped
|
|
157
|
-
`
|
|
157
|
+
`components.BbIcon.sizeMap`, pick the indicator key whose avatar size in this table is
|
|
158
158
|
closest, capped at `2xl`.
|
|
159
159
|
|
|
160
160
|
**The size scale**
|
|
@@ -332,7 +332,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
332
332
|
| `max` | `number \| undefined` | | | Caps a numeric `text` count: values above `max` render as `${max}+` (e.g. `max: 99` shows `99+`). Ignored for string `text`. |
|
|
333
333
|
| `size` | `'xs'` \| `'sm'` \| `'md'` \| `'lg'` \| `'xl'` \| `'2xl'` | `"md"` | | Preset size of the indicator. |
|
|
334
334
|
| `text` | `string \| number \| undefined` | | | Content shown inside the indicator bubble. A `number` is accepted for count ergonomics (e.g. `:text="unread"`). When omitted the indicator renders only if `dot` is set. |
|
|
335
|
-
| `variant` | `'destructive'` \| `'warning'` \| `'default'` \| `'success'` \| `'info'` | `"default"` | | Visual variant. `default` uses the primary color; `success`, `info`, `warning` and `destructive` map to the shared status colors. Register more via the vite plugin `
|
|
335
|
+
| `variant` | `'destructive'` \| `'warning'` \| `'default'` \| `'success'` \| `'info'` | `"default"` | | Visual variant. `default` uses the primary color; `success`, `info`, `warning` and `destructive` map to the shared status colors. Register more via the vite plugin `components.BbIndicator.variants` option and style `.bb-indicator--<variant>`. |
|
|
336
336
|
|
|
337
337
|
## Passthrough parts and states
|
|
338
338
|
|
package/dist/ai/BbNumberInput.md
CHANGED
|
@@ -94,7 +94,7 @@ a native form or read from `FormData`. The shared label controls apply:
|
|
|
94
94
|
**`labelPosition`** aligns the text; the **`label` slot** replaces it and
|
|
95
95
|
receives `{ text, hasErrors }`.
|
|
96
96
|
|
|
97
|
-
When you don't set `labelMode`, the project-wide `
|
|
97
|
+
When you don't set `labelMode`, the project-wide `all.labelMode`
|
|
98
98
|
applies (library default: `outside`) — the same fallback as `BbTextInput`, so a
|
|
99
99
|
project can go all-floating without touching call sites.
|
|
100
100
|
|
|
@@ -257,7 +257,10 @@ The model is always a plain number, and a form posts the raw value (`10005.6`)
|
|
|
257
257
|
through a hidden input that carries `name`; the visible input has no `name`.
|
|
258
258
|
`event.target.value` and a `pt:input` listener see the formatted text.
|
|
259
259
|
`disable-formatting` shows the number as typed, with a period decimal and no
|
|
260
|
-
grouping, as the field did before.
|
|
260
|
+
grouping, as the field did before. For every field at once, set
|
|
261
|
+
`components: { BbNumberInput: { disableFormatting: true } }` in the plugin
|
|
262
|
+
options (or in a config scope's `defaults`, for one area);
|
|
263
|
+
`:disable-formatting="false"` then formats one field again.
|
|
261
264
|
|
|
262
265
|
**Clamped office setpoint, 16–28 °C**
|
|
263
266
|
|
|
@@ -591,7 +594,7 @@ const qtyErr = ref<number | null>(12);
|
|
|
591
594
|
`compact` reduces the control height — set it per view. `layout` works
|
|
592
595
|
whenever the resolved label mode is `'outside'` (the config default), so
|
|
593
596
|
`layout="horizontal"` lays the label beside the field out of the box. With
|
|
594
|
-
`labelMode="floating"` or `"inside"` (prop or `
|
|
597
|
+
`labelMode="floating"` or `"inside"` (prop or `all.labelMode`)
|
|
595
598
|
the label is embedded in the field, so the layout is forced vertical and
|
|
596
599
|
`layout` is ignored — same rule as `BbTextInput`/`BbSelect`/
|
|
597
600
|
`BbDatePickerInput`. A per-breakpoint map,
|
|
@@ -714,7 +717,7 @@ const timeoutSeconds = ref<number | null>(30);
|
|
|
714
717
|
### Global config & platforms
|
|
715
718
|
|
|
716
719
|
- No size scale — `compact` is the density knob. `labelMode` falls back to
|
|
717
|
-
`
|
|
720
|
+
`all.labelMode` when unset, like `BbTextInput`.
|
|
718
721
|
- Plain controlled input: SSR-safe in Nuxt, nothing teleported.
|
|
719
722
|
- Inertia validation binds straight in:
|
|
720
723
|
|
|
@@ -739,7 +742,7 @@ affordance, the focus ring still shows, and errors or warnings surface through
|
|
|
739
742
|
the icon and the message rather than a tinted edge. `ghost` is the inline-edit
|
|
740
743
|
table cell (`<BbNumberInput compact hide-label variant="ghost" />`) — no
|
|
741
744
|
`:deep()` needed. The names and tokens are the `BbButton` ones; extra names
|
|
742
|
-
register through the plugin's `
|
|
745
|
+
register through the plugin's each field's `components.<C>.variants` option. The full ladder is in
|
|
743
746
|
the `BbTextInput` guide.
|
|
744
747
|
|
|
745
748
|
### Restyling with passthrough
|
|
@@ -864,14 +867,14 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
864
867
|
| --- | --- | --- | --- | --- |
|
|
865
868
|
| `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: `box`, `clear`, `description`, `hint`, `icon`, `input`, `label`, `message`, `prefix`, `root`, `spinner`, `suffix`. States: `disabled`, `errors`, `ghost`, `hasValue`, `loading`, `outline`, `readonly`, `secondary`, `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 `BbNumberInputProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
866
869
|
| `append:icon` | `string \| undefined` | | | Name of the icon to be added at the end of the input. |
|
|
867
|
-
| `autocomplete` | `string \| undefined` | `
|
|
870
|
+
| `autocomplete` | `string \| undefined` | `'off'` | | Guides the browser as to the type of information expected in the field. |
|
|
868
871
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
869
872
|
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. |
|
|
870
|
-
| `compact` | `boolean \| undefined` | `
|
|
873
|
+
| `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`). |
|
|
871
874
|
| `currency` | `string \| undefined` | | | An ISO 4217 code (`'EUR'`): the amount shows the locale's way, symbol inside the text (`1.234,56 €`), leaving `#prefix` / `#suffix` free; the model is the number. Decimals default to the currency's; `minPrecision` / `maxPrecision` win. Not with `unit`. |
|
|
872
875
|
| `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`. |
|
|
873
876
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
874
|
-
| `disableFormatting` | `boolean \| undefined` | `false
|
|
877
|
+
| `disableFormatting` | `boolean \| undefined` | ``components.BbNumberInput.disableFormatting`, else `false`` | | Shows the number as typed (period decimal, no grouping), `name` on the visible input; off, the field formats the locale's way (`10.005,6`) and posts the raw value through a hidden input. Unset: the plugin's `defaults` (or the nearest config scope's), else `false`; `false` formats this field anyway. |
|
|
875
878
|
| `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. |
|
|
876
879
|
| `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). |
|
|
877
880
|
| `hasErrors` | `boolean \| undefined` | `false` | | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
|
|
@@ -883,7 +886,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
883
886
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
884
887
|
| `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. |
|
|
885
888
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
886
|
-
| `labelPosition` | `"
|
|
889
|
+
| `labelPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
887
890
|
| `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' }`). |
|
|
888
891
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
889
892
|
| `max` | `number \| undefined` | `Number.MAX_SAFE_INTEGER` | | Maximum value cap. |
|
|
@@ -897,13 +900,13 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
897
900
|
| `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
|
|
898
901
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
899
902
|
| `required` | `boolean \| undefined` | `false` | | Marks the input required (asterisk, aria-required, native validation in a plain form). Inside a BbForm it is not enforced; use rules="required" or the schema. |
|
|
900
|
-
| `reverse` | `boolean \| undefined` | `
|
|
903
|
+
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
|
|
901
904
|
| `rules` | `RuleExpression<string \| number \| null>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
902
905
|
| `step` | `number \| undefined` | `1` | | Incremental unit used by ArrowUp / ArrowDown and by the `increase` and `decrease` functions the slots receive. It is NOT applied to manual input as a step of 5 would prevent the user from inserting a value like `115` because of rounding down. |
|
|
903
906
|
| `unit` | `BbNumberUnit \| undefined` | | | A unit `Intl.NumberFormat` knows (`'kilogram'`, `'celsius'`, `'percent'`), shown the locale's way inside the text (`20 kg`). The model is the number you see: `percent` showing `15 %` holds `15`. Not with `currency` (which wins). |
|
|
904
907
|
| `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. |
|
|
905
|
-
| `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 `
|
|
906
|
-
| `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 `
|
|
908
|
+
| `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. |
|
|
909
|
+
| `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.BbNumberInput.variants`. |
|
|
907
910
|
| `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. |
|
|
908
911
|
|
|
909
912
|
## Passthrough parts and states
|
|
@@ -975,6 +978,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
975
978
|
| Property | Set on | Default | What it is |
|
|
976
979
|
| --- | --- | --- | --- |
|
|
977
980
|
| `--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`). |
|
|
981
|
+
| `--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. |
|
|
978
982
|
|
|
979
983
|
## Component tree
|
|
980
984
|
|
|
@@ -987,7 +991,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
987
991
|
|
|
988
992
|
- `BbNumberInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-number-input__input`, `input` → `input.bb-number-input__input`, `controlAttrs` → `input`
|
|
989
993
|
- `CommonField` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'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`
|
|
990
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'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`
|
|
994
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'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`
|
|
991
995
|
|
|
992
996
|
## See Also
|
|
993
997
|
|