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/BbSwitchGroup.md
CHANGED
|
@@ -33,7 +33,11 @@
|
|
|
33
33
|
| `--accent` | `pt:icon` | `BbBaseSwitchIcon` | Track fill and border once checked or indeterminate; --errors, --warnings and --disabled re-point it. |
|
|
34
34
|
| `--bg` | `pt:icon` | `BbBaseSwitchIcon` | track fill while off |
|
|
35
35
|
| `--ring-color` | `pt:icon` | `BbBaseSwitchIcon` | focus ring; follows the accent colour (a consumer text colour too) — --errors / --warnings set their own |
|
|
36
|
-
| `--r` | `pt:icon` | `BbBaseSwitchIcon` | track corners
|
|
36
|
+
| `--r` | `pt:icon` | `BbBaseSwitchIcon` | track corners |
|
|
37
|
+
| `--border-color` | `pt:icon` | `BbBaseSwitchIcon` | Resting track edge; checked, errors and warnings paint their own. |
|
|
38
|
+
| `--thumb-bg` | `pt:icon` | `BbBaseSwitchIcon` | the knob's colour, on and off |
|
|
39
|
+
| `--thumb-r` | `pt:icon` | `BbBaseSwitchIcon` | the knob's corners |
|
|
40
|
+
| `--t` | `pt:icon` | `BbBaseSwitchIcon` | State-change time: the knob's slide and the track's fill fade. |
|
|
37
41
|
| `--bw` | `pt:icon` | `BbBaseSwitchIcon` | Geometry — change --h / --w / --thumb freely: everything else is derived, so the thumb stays vertically centred and travels flush-to-flush at any size. --bw is the track border; the box is border-box, so the border eats into the inner track and has to be subtracted here. Nested hairline (`--bb-border-w-sm`) so a 3px plate theme does not swallow an 18px track; a theme that wants the full plate stroke sets `--bw` on this class. |
|
|
38
42
|
| `--h` | `pt:icon` | `BbBaseSwitchIcon` | track height, border included (border-box) |
|
|
39
43
|
| `--w` | `pt:icon` | `BbBaseSwitchIcon` | track width, border included |
|
|
@@ -62,6 +66,8 @@
|
|
|
62
66
|
| `--indicator-inset` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge |
|
|
63
67
|
| `--elev` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The theme's resting lift, composed UNDER the indicator's own shadow |
|
|
64
68
|
| `--indicator-shadow` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Indicator lift, painted on top of --elev |
|
|
69
|
+
| `--divider` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The frame and the lines between the segments |
|
|
70
|
+
| `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked segment under the pointer |
|
|
65
71
|
|
|
66
72
|
## Usage & Guidelines
|
|
67
73
|
|
|
@@ -294,12 +300,13 @@ prop; when a dead row adds nothing, filter the item out of `items`.
|
|
|
294
300
|
|
|
295
301
|
- `list-layout` arranges the **switches** within the fieldset: `'horizontal'`
|
|
296
302
|
(the default — a wrapping row, for compact filter bars), `'vertical'` (a
|
|
297
|
-
stack, each row its own width)
|
|
298
|
-
|
|
299
|
-
|
|
303
|
+
stack, each row its own width) or `'tiles'` (equal-size boxes that wrap as
|
|
304
|
+
the field narrows; `pt:list="[--tile-min-width:160px]"` sets how narrow one
|
|
305
|
+
gets). `block` gives the rows the list's full width: on a line they share it
|
|
306
|
+
equally, stacked each row is as wide as the list.
|
|
300
307
|
- `item-layout` arranges **each row** — its input against its label — with the
|
|
301
308
|
same keywords as `layout`; `item-reverse` swaps the two. A settings list is
|
|
302
|
-
`list-layout="vertical
|
|
309
|
+
`list-layout="vertical" block item-layout="label-fill" item-reverse`: the
|
|
303
310
|
label takes the row, the input sits at the trailing edge.
|
|
304
311
|
- `compact` tightens spacing so a group of quick toggles fits inline.
|
|
305
312
|
- `layout` splits the legend against the options block (`'auto'`,
|
|
@@ -340,7 +347,7 @@ const enabled = ref<string[]>(['Word wrap', 'Line numbers']);
|
|
|
340
347
|
#### Layout recipe: the settings list
|
|
341
348
|
|
|
342
349
|
Label first, switch on the trailing edge, a rule between rows —
|
|
343
|
-
`list-layout="vertical
|
|
350
|
+
`list-layout="vertical" block item-layout="label-fill" item-reverse`, with
|
|
344
351
|
`pt:list` drawing the card and `pt:item` padding the rows:
|
|
345
352
|
|
|
346
353
|
**Notification settings list**
|
|
@@ -350,6 +357,7 @@ Label first, switch on the trailing edge, a rule between rows —
|
|
|
350
357
|
<div class="max-w-md">
|
|
351
358
|
<BbSwitchGroup
|
|
352
359
|
v-model="enabled"
|
|
360
|
+
block
|
|
353
361
|
item-layout="label-fill"
|
|
354
362
|
:item-props="{ description: 'effect' }"
|
|
355
363
|
item-reverse
|
|
@@ -357,7 +365,7 @@ Label first, switch on the trailing edge, a rule between rows —
|
|
|
357
365
|
item-value="id"
|
|
358
366
|
:items="channels"
|
|
359
367
|
legend="Notifications"
|
|
360
|
-
list-layout="vertical
|
|
368
|
+
list-layout="vertical"
|
|
361
369
|
name="notifications"
|
|
362
370
|
pt:item="px-4 py-3"
|
|
363
371
|
pt:list="[--row-gap:0px] divide-y rounded-(--bb-radius) border"
|
|
@@ -370,7 +378,7 @@ import { BbSwitchGroup } from 'bitboss-ui';
|
|
|
370
378
|
|
|
371
379
|
type Channel = { id: string; name: string; effect: string };
|
|
372
380
|
|
|
373
|
-
// The settings list: `list-layout="vertical
|
|
381
|
+
// The settings list: `list-layout="vertical" block` gives every row the
|
|
374
382
|
// card's width, `item-layout="label-fill"` hands the label the free space and
|
|
375
383
|
// `item-reverse` puts it first — so each switch sits on the trailing edge and
|
|
376
384
|
// a long label or description wraps inside its cell. `pt:list` draws the card
|
|
@@ -768,6 +776,7 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
768
776
|
| --- | --- | --- | --- | --- |
|
|
769
777
|
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `description`, `hint`, `icon`, `item`, `itemDescription`, `label`, `legend`, `list`, `message`, `root`. States: `disabled`, `errors`, `hasValue`, `loading`, `readonly`, `warnings`, `checked`, `focused`, `focusVisible`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbSwitchGroupProps<Row>['pt']` (`BbSwitchGroupProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
770
778
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
779
|
+
| `block` | `boolean \| undefined` | `false` | | The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`. |
|
|
771
780
|
| `compact` | `boolean \| undefined` | `false` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one. |
|
|
772
781
|
| `dependencies` | `unknown[] \| undefined` | | | Defines an array of dependencies that will trigger actions in the component upon change. |
|
|
773
782
|
| `depsDebounceTime` | `number \| undefined` | | | Timeout used to debounce response to changes to dependencies. |
|
|
@@ -785,7 +794,7 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
785
794
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
786
795
|
| `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
|
|
787
796
|
| `inputAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
|
|
788
|
-
| `inputPosition` | `"
|
|
797
|
+
| `inputPosition` | `"center" \| "left" \| "right" \| undefined` | `"left"` | | Sets the alignment of the input. Since inputs are inline block they can be aligned just as text can. |
|
|
789
798
|
| `itemInputAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line. |
|
|
790
799
|
| `itemLabelAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of each option's label in its row. Omitted, it stays as it is. |
|
|
791
800
|
| `itemLayout` | `FieldLayout \| undefined` | `'auto'` | | How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`. |
|
|
@@ -798,8 +807,8 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
798
807
|
| `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' }`). |
|
|
799
808
|
| `legend` | `string` | | yes | Text content of the legend. |
|
|
800
809
|
| `legendMode` | `"outside" \| "inside" \| undefined` | | | Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for option groups (checkbox, radio or switch) — there is no single field for the legend to float against. |
|
|
801
|
-
| `legendPosition` | `"
|
|
802
|
-
| `listLayout` | `'horizontal'` \| `'vertical'` \| `'
|
|
810
|
+
| `legendPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
811
|
+
| `listLayout` | `'horizontal'` \| `'vertical'` \| `'tiles'` | `'horizontal'` | | How the rows sit in the list: `'horizontal'` (on a line, wrapping), `'vertical'` (stacked) or `'tiles'` (equal boxes; `--tile-min-width` on `pt:list` sets the narrowest). `block` makes the rows full width. |
|
|
803
812
|
| `loadingText` | `string \| undefined` | | | String displayed while items are being loaded. |
|
|
804
813
|
| `max` | `number \| undefined` | | | Maximum number of selected items. |
|
|
805
814
|
| `modelValue` | `any` | | | Used by v-model. Can be an array of any serializable type. |
|
|
@@ -812,7 +821,7 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
812
821
|
| `rules` | `RuleExpression<any>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
813
822
|
| `selectable` | `boolean \| ((item: T) => boolean) \| undefined` | `true` | | Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled. |
|
|
814
823
|
| `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. |
|
|
815
|
-
| `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 `
|
|
824
|
+
| `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. |
|
|
816
825
|
| `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. |
|
|
817
826
|
|
|
818
827
|
## Passthrough parts and states
|
|
@@ -892,7 +901,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
892
901
|
|
|
893
902
|
- `BbSwitchGroup` _(this component)_ — its own template binds: `icon` → `BbBaseSwitchIcon`
|
|
894
903
|
- `CommonField` _(internal — not importable, reach it through `BbSwitchGroup`)_ — `BbSwitchGroup`'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`
|
|
895
|
-
- `OptionsContainer` _(internal — not importable, reach it through `BbSwitchGroup`)_ — `BbSwitchGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`
|
|
904
|
+
- `OptionsContainer` _(internal — not importable, reach it through `BbSwitchGroup`)_ — `BbSwitchGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--divider`, `--hover-bg`
|
|
896
905
|
- Also mounts `BbBaseSwitchIcon`
|
|
897
906
|
|
|
898
907
|
## See Also
|
package/dist/ai/BbTable.md
CHANGED
|
@@ -14,18 +14,23 @@
|
|
|
14
14
|
|
|
15
15
|
| pt part | Lands on | In |
|
|
16
16
|
| --- | --- | --- |
|
|
17
|
+
| `pt:dragIcon` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
17
18
|
| `pt:selectIcon` | the root of `BbBaseCheckboxIcon` | `BbBaseCheckboxIcon` ([contract](./BbBaseCheckboxIcon.md)) |
|
|
19
|
+
| `pt:sortIcon` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
18
20
|
|
|
19
21
|
**CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `BbTable`'s root:
|
|
20
22
|
|
|
21
23
|
| Variable | Set through | Declared by | What it is |
|
|
22
24
|
| --- | --- | --- | --- |
|
|
25
|
+
| `--w` | `pt:dragIcon`, `pt:sortIcon` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
23
26
|
| `--accent` | `pt:selectIcon` | `BbBaseCheckboxIcon` | Fill and border colour when checked or indeterminate. |
|
|
24
27
|
| `--check-color` | `pt:selectIcon` | `BbBaseCheckboxIcon` | Colour of the checkmark / dash drawn on the accent fill. |
|
|
25
28
|
| `--size` | `pt:selectIcon` | `BbBaseCheckboxIcon` | Width and height of the glyph box. |
|
|
26
29
|
| `--r` | `pt:selectIcon` | `BbBaseCheckboxIcon` | The checkbox corner, capped by the master radius so a zero- or small-radius theme reaches it. Not `--bb-radius-sm`: that tier is 4.8px at the shipped radius and this glyph ships at 4px. |
|
|
27
30
|
| `--ring-color` | `pt:selectIcon` | `BbBaseCheckboxIcon` | The focus ring's colour, re-pointed by errors and warnings. Both ring declarations read it, so a focused glyph grows its ring in its own colour instead of tweening from a different one. |
|
|
28
31
|
| `--elev` | `pt:selectIcon` | `BbBaseCheckboxIcon` | Resting lift; a no-op until a theme pins `--bb-elev`. |
|
|
32
|
+
| `--bw` | `pt:selectIcon` | `BbBaseCheckboxIcon` | The box's border width: the nested hairline, like the switch track. |
|
|
33
|
+
| `--t` | `pt:selectIcon` | `BbBaseCheckboxIcon` | State-change time: the fill fade and the check / dash drawing in. |
|
|
29
34
|
| `--bg` | `pt:selectIcon` | `BbBaseCheckboxIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
|
|
30
35
|
| `--border-color` | `pt:selectIcon` | `BbBaseCheckboxIcon` | Resting border colour of the glyph; re-pointed by error and warning states. |
|
|
31
36
|
|
|
@@ -3278,7 +3283,7 @@ const labelFor = (status: Status) =>
|
|
|
3278
3283
|
```
|
|
3279
3284
|
|
|
3280
3285
|
The status colors are the registered `soft-*` badge variants: the plugin's
|
|
3281
|
-
`
|
|
3286
|
+
`components.BbBadge.variants` option makes the names type-check, and the example carries
|
|
3282
3287
|
their CSS in its own style block — the sanctioned consumer path. The
|
|
3283
3288
|
canonical palette lives in the
|
|
3284
3289
|
[design language guide](./guides/design-language.md).
|
|
@@ -4267,10 +4272,10 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
4267
4272
|
| `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: `body`, `caption`, `cell`, `cellColumnHeader`, `dragHandle`, `dragIcon`, `expand`, `firstRow`, `foot`, `head`, `headerRow`, `lastRow`, `root`, `row`, `selectIcon`, `sortIcon`, `table`. States: `empty`, `loading`, `disabled`, `expanded`, `highlighted`, `placeholder`, `selected`, `value`, `sorted`, `sortedDesc`, `indeterminate`. 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 `BbTableProps<Row>['pt']` (`BbTableProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
4268
4273
|
| `accessibleLabel` | `((columns: MappedCell[], item: any) => string) \| undefined` | | | The label of each row's selection checkbox, from `(columns, item)`. Unset: the row's name in the locale's select template (its `rowHeader` cells, else its first column: "Select INV-1041"). The cells arrive in render order: look one up by `key`, never by position. |
|
|
4269
4274
|
| `actionsText` | `string \| undefined` | | | Label used in the header of the actions column. |
|
|
4270
|
-
| `align` | `"
|
|
4275
|
+
| `align` | `"center" \| "left" \| "right" \| undefined` | `"left"` | | Text alignment of the columns. |
|
|
4271
4276
|
| `caption` | `string \| undefined` | | | Caption describing the table's content, for accessibility. |
|
|
4272
4277
|
| `columns` | `BbTableColumn<T>[] \| undefined` | `[]` | | Array of definitions of how the columns should be rendered. |
|
|
4273
|
-
| `compact` | `boolean \| undefined` | `
|
|
4278
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Adds a CSS class that applies a compact style to the component. |
|
|
4274
4279
|
| `dependencies` | `unknown[] \| undefined` | `[]` | | Defines an array of dependencies that will trigger actions in the component upon change. |
|
|
4275
4280
|
| `depsDebounceTime` | `number \| undefined` | `0` | | Timeout used to debounce response to changes to dependencies. |
|
|
4276
4281
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component |
|
|
@@ -4449,9 +4454,9 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
4449
4454
|
- **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 `BbTable`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
4450
4455
|
- Listed nodes are the ones `BbTable`'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/BbTable.tree.json`.
|
|
4451
4456
|
|
|
4452
|
-
- `BbTable` _(this component)_ — its own template binds: `caption` → `div.bb-table__caption`, `dragIcon` → `
|
|
4457
|
+
- `BbTable` _(this component)_ — its own template binds: `caption` → `div.bb-table__caption`, `dragIcon` → `BbIcon`, `table` → `div`, `head` → `div.bb-table__head`, `headerRow` → `div.bb-table__header-row`, `cellColumnHeader` → `div.bb-table__cell-column-header`, `selectIcon` → `BbBaseCheckboxIcon`, `sortIcon` → `BbIcon`, `body` → `div.bb-table__body`, `foot` → `div.bb-table__foot`
|
|
4453
4458
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
4454
|
-
- Also mounts `BbBaseCheckboxIcon`
|
|
4459
|
+
- Also mounts `BbIcon`, `BbBaseCheckboxIcon`
|
|
4455
4460
|
|
|
4456
4461
|
## See Also
|
|
4457
4462
|
|
package/dist/ai/BbTabs.md
CHANGED
|
@@ -923,7 +923,7 @@ type-checks —
|
|
|
923
923
|
|
|
924
924
|
```ts
|
|
925
925
|
// vite.config.ts (or the `bitboss` key of nuxt.config.ts)
|
|
926
|
-
bitbossUi({
|
|
926
|
+
bitbossUi({ components: { BbTabs: { variants: ['soft', 'outline'] } } });
|
|
927
927
|
```
|
|
928
928
|
|
|
929
929
|
— then give the class hook `.bb-tabs-list--<name>` its tokens in a stylesheet
|
|
@@ -937,7 +937,7 @@ recipe is the `<style>` of the example:
|
|
|
937
937
|
<template>
|
|
938
938
|
<div class="max-w-md rounded-(--bb-radius) border border-(--bb-border) p-3">
|
|
939
939
|
<p class="mb-2 text-xs text-(--bb-text-muted)">Inbox filters</p>
|
|
940
|
-
<!-- `soft` is a registered variant (`
|
|
940
|
+
<!-- `soft` is a registered variant (`components: { BbTabs: { variants: ['soft'] } }`); its look is
|
|
941
941
|
the token block in this file's <style>. -->
|
|
942
942
|
<BbTabs v-model="filter" compact :items="filters" variant="soft">
|
|
943
943
|
<template #all>
|
|
@@ -1000,7 +1000,7 @@ tablist beside its tokens:
|
|
|
1000
1000
|
<template>
|
|
1001
1001
|
<div class="max-w-md rounded-(--bb-radius) border border-(--bb-border) p-3">
|
|
1002
1002
|
<p class="mb-2 text-xs text-(--bb-text-muted)">Editor panel</p>
|
|
1003
|
-
<!-- `outline` is a registered variant (`
|
|
1003
|
+
<!-- `outline` is a registered variant (`components: { BbTabs: { variants: ['outline'] } }`); its
|
|
1004
1004
|
look is the token block in this file's <style>. -->
|
|
1005
1005
|
<BbTabs v-model="panel" compact :items="panels" variant="outline">
|
|
1006
1006
|
<template #code>
|
|
@@ -1903,8 +1903,8 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1903
1903
|
| Prop | Type | Default | Required | Description |
|
|
1904
1904
|
| --- | --- | --- | --- | --- |
|
|
1905
1905
|
| `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: `indicator`, `item`, `list`, `panel`, `panels`, `root`, `wrapper`. States: `disabled`, `line`, `none`, `pill`, `active`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbTabsProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
1906
|
-
| `block` | `boolean \| undefined` | `
|
|
1907
|
-
| `compact` | `boolean \| undefined` | `
|
|
1906
|
+
| `block` | `boolean \| undefined` | `undefined` | | Displays the component as full width. |
|
|
1907
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Adds a CSS class that applies a compact style to the component. |
|
|
1908
1908
|
| `direction` | `"horizontal" \| "vertical" \| undefined` | `"horizontal"` | | Direction of the tabs component. |
|
|
1909
1909
|
| `disableAnimateX` | `boolean \| undefined` | `false` | | Disables the horizontal slide transition between tab panels (enabled by default). |
|
|
1910
1910
|
| `disableAnimateY` | `boolean \| undefined` | `false` | | Disables the smooth height animation when switching between tab panels (enabled by default). |
|
|
@@ -1929,7 +1929,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1929
1929
|
| `queryKey` | `string \| undefined` | `"tab"` | | Defines the query key used for URL-based navigation. |
|
|
1930
1930
|
| `replace` | `boolean \| undefined` | `false` | | Replaces the history entry instead of pushing one when the tab changes. Recommended with `navigation`: the query keeps the tab while Back leaves the page. Leave it off when a tab is a destination of its own (a `server` visit). |
|
|
1931
1931
|
| `server` | `boolean \| undefined` | `false` | | When true and in an Inertia context, triggers a real server-side Inertia visit instead of a client-only `history.pushState`. |
|
|
1932
|
-
| `variant` | `'none'` \| `'pill'` \| `'line'` | `"pill"` | | Look of the tab strip: `pill` (segmented, a sliding raised pill), `line` (a baseline with a sliding underline) or `none` (no chrome). Each is a preset of the strip's tokens; register more with the vite plugin's `
|
|
1932
|
+
| `variant` | `'none'` \| `'pill'` \| `'line'` | `"pill"` | | Look of the tab strip: `pill` (segmented, a sliding raised pill), `line` (a baseline with a sliding underline) or `none` (no chrome). Each is a preset of the strip's tokens; register more with the vite plugin's `components.BbTabs.variants` and style `.bb-tabs-list--<variant>`. |
|
|
1933
1933
|
|
|
1934
1934
|
## Passthrough parts and states
|
|
1935
1935
|
|
package/dist/ai/BbTabsRoot.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
| `queryKey` | `string \| undefined` | `"tab"` | | Defines the query key used for URL-based navigation. |
|
|
43
43
|
| `replace` | `boolean \| undefined` | `false` | | Replaces the history entry instead of pushing one when the tab changes. Recommended with `navigation`: the query keeps the tab while Back leaves the page. Leave it off when a tab is a destination of its own (a `server` visit). |
|
|
44
44
|
| `server` | `boolean \| undefined` | `false` | | When true and in an Inertia context, triggers a real server-side Inertia visit instead of a client-only `history.pushState`. |
|
|
45
|
-
| `variant` | `'none'` \| `'pill'` \| `'line'` | `"pill"` | | Look of the tab strip: `pill` (segmented, a sliding raised pill), `line` (a baseline with a sliding underline) or `none` (no chrome). Each is a preset of the strip's tokens; register more with the vite plugin's `
|
|
45
|
+
| `variant` | `'none'` \| `'pill'` \| `'line'` | `"pill"` | | Look of the tab strip: `pill` (segmented, a sliding raised pill), `line` (a baseline with a sliding underline) or `none` (no chrome). Each is a preset of the strip's tokens; register more with the vite plugin's `components.BbTabs.variants` and style `.bb-tabs-list--<variant>`. |
|
|
46
46
|
|
|
47
47
|
## Events
|
|
48
48
|
|
package/dist/ai/BbTag.md
CHANGED
|
@@ -360,14 +360,14 @@ affordance, the focus ring still shows, and errors or warnings surface through
|
|
|
360
360
|
the icon and the message rather than a tinted edge. `ghost` is the inline-edit
|
|
361
361
|
table cell (`<BbTag compact hide-label variant="ghost" />`) — no
|
|
362
362
|
`:deep()` needed. The names and tokens are the `BbButton` ones; extra names
|
|
363
|
-
register through the plugin's `
|
|
363
|
+
register through the plugin's each field's `components.<C>.variants` option. The full ladder is in
|
|
364
364
|
the `BbTextInput` guide.
|
|
365
365
|
|
|
366
366
|
### Restyling with passthrough
|
|
367
367
|
|
|
368
368
|
`pt` reaches a named part of the control with a class list — or, in the
|
|
369
369
|
object form, a style and attributes — optionally only while a state is on.
|
|
370
|
-
Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `input` (the native control), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `badge` — each chip, the `BbBadge` root (the chip ✕ is chrome) — and `comma` — each entry in `comma` mode; both resolved per tag, and both also take a per-item function called with the tag: `:pt:badge="({ item }) => item.startsWith('urgent') && 'text-(--bb-danger)'"`. The same two words as `BbSelect
|
|
370
|
+
Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `input` (the native control), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `badge` — each chip, the `BbBadge` root (the chip ✕ is chrome) — and `comma` — each entry in `comma` mode; both resolved per tag, and both also take a per-item function called with the tag: `:pt:badge="({ item }) => item.startsWith('urgent') && 'text-(--bb-danger)'"`. The same two words as `BbSelect`, and the same way to make the chips look like your app's badges (`pt:badge="bb-badge--soft-blue"`, a variant your app registers; see [BbSelect § Restyling with passthrough](./BbSelect.md#restyling-with-passthrough) for the cascade between two variant classes).
|
|
371
371
|
States: `errors`, `warnings` (never beside errors), `loading`, `disabled`, `readonly`, `hasValue` (written `pt:box:has-value`), and `highlighted` on `badge` / `comma` only — the tag the arrow keys are on (focus stays in the input, so this is a cursor, not focus). A name outside that list is a type error and an
|
|
372
372
|
ESLint error.
|
|
373
373
|
|
|
@@ -463,7 +463,7 @@ teleport). It renders SSR-safe markup in Nuxt and Inertia apps.
|
|
|
463
463
|
|
|
464
464
|
`labelMode` places the label like on every other input — `outside` (above the
|
|
465
465
|
field), `inside`, or `floating` — and falls back to the plugin's
|
|
466
|
-
`
|
|
466
|
+
`all.labelMode` when unset, so a tag field matches the rest of the form
|
|
467
467
|
without being configured separately. It is orthogonal to `labelPosition`, which
|
|
468
468
|
only sets the label's text alignment.
|
|
469
469
|
|
|
@@ -495,12 +495,12 @@ only sets the label's text alignment.
|
|
|
495
495
|
| --- | --- | --- | --- | --- |
|
|
496
496
|
| `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: `badge`, `box`, `clear`, `comma`, `description`, `hint`, `icon`, `input`, `label`, `message`, `prefix`, `root`, `spinner`, `suffix`. States: `disabled`, `errors`, `hasValue`, `highlighted`, `loading`, `readonly`, `warnings`, `ghost`, `outline`, `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 `BbTagProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
497
497
|
| `append:icon` | `string \| undefined` | | | Name of the icon to be added at the end of the input. |
|
|
498
|
-
| `autocomplete` | `string \| undefined` | `
|
|
498
|
+
| `autocomplete` | `string \| undefined` | `'off'` | | Guides to the browser as to the type of information expected in the field. |
|
|
499
499
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
500
500
|
| `caseSensitive` | `boolean \| undefined` | `false` | | Compares tags case-sensitively when rejecting duplicates (`Vue` and `vue` both allowed); by default case folds. A tag keeps the casing typed either way, and entries are trimmed first. |
|
|
501
501
|
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. |
|
|
502
502
|
| `comma` | `boolean \| undefined` | `false` | | Sets the display model for selected values to a list of comma separated string. In this mode the user cannot deselect an option by pressing the close button. |
|
|
503
|
-
| `compact` | `boolean \| undefined` | `
|
|
503
|
+
| `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`). |
|
|
504
504
|
| `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`. |
|
|
505
505
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
506
506
|
| `divider` | `string \| string[] \| undefined` | `"Enter"` | | The divider key used to separate values from one another. By default it is "Enter". Accepts a single key or an array of keys (e.g. `['Enter', ',']`) — any of them commits the current text, split on every single-character divider in the set into one tag per trimmed, non-empty piece. |
|
|
@@ -514,8 +514,8 @@ only sets the label's text alignment.
|
|
|
514
514
|
| `inputAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, the control's first line meets the label's. |
|
|
515
515
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
516
516
|
| `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. |
|
|
517
|
-
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Where the label sits relative to the field: `outside` above it, `inside` within the control, or `floating` (starts inside, lifts on focus/value). Defaults to `
|
|
518
|
-
| `labelPosition` | `"
|
|
517
|
+
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Where the label sits relative to the field: `outside` above it, `inside` within the control, or `floating` (starts inside, lifts on focus/value). Defaults to `all.labelMode`, like the other inputs. |
|
|
518
|
+
| `labelPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
519
519
|
| `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' }`). |
|
|
520
520
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
521
521
|
| `max` | `number \| undefined` | | | Maximum number of selected items. |
|
|
@@ -526,11 +526,11 @@ only sets the label's text alignment.
|
|
|
526
526
|
| `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
|
|
527
527
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
528
528
|
| `required` | `boolean \| undefined` | `false` | | Sets the input as required. |
|
|
529
|
-
| `reverse` | `boolean \| undefined` | `
|
|
529
|
+
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
|
|
530
530
|
| `rules` | `RuleExpression<string[]>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
531
531
|
| `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. |
|
|
532
|
-
| `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 `
|
|
533
|
-
| `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 `
|
|
532
|
+
| `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. |
|
|
533
|
+
| `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.BbTag.variants`. |
|
|
534
534
|
| `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. |
|
|
535
535
|
|
|
536
536
|
## Passthrough parts and states
|
|
@@ -608,6 +608,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
608
608
|
| --- | --- | --- | --- |
|
|
609
609
|
| `--compensation-multiplier` | `.bb-tag__field` | `0.3` | Fraction of the shell's inner padding the chip row is pulled back by when no prepend icon precedes it (see the negative margin below). |
|
|
610
610
|
| `--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`). |
|
|
611
|
+
| `--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. |
|
|
611
612
|
|
|
612
613
|
## Component tree
|
|
613
614
|
|
|
@@ -620,7 +621,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
620
621
|
|
|
621
622
|
- `BbTag` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-tag__input`, `input` → `input.bb-tag__input`
|
|
622
623
|
- `CommonField` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'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`
|
|
623
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'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`
|
|
624
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'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`
|
|
624
625
|
- `ChipsBox` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `badge` → `BbBadge`
|
|
625
626
|
- `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`
|
|
626
627
|
- `CommaBox` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `comma` → `span.bb-tag__comma`
|
package/dist/ai/BbTextInput.md
CHANGED
|
@@ -62,7 +62,7 @@ Pick a sibling when the shape of the data is different:
|
|
|
62
62
|
- calendar dates → `BbDatePickerInput`;
|
|
63
63
|
- choosing from a known set of options → `BbSelect` / `BbRadioGroup`.
|
|
64
64
|
|
|
65
|
-
`v-model` binds a `string | null` — an emptied field emits `null` by default, or `''` when the plugin
|
|
65
|
+
`v-model` binds a `string | null` — an emptied field emits `null` by default, or `''` when the plugin's `components: { BbTextInput: { nullValue: 'string' } }` sets the `'string'` policy (see the installation guide § `defaults`). One field can differ from the app with `null-value="string"` or `null-value="null"`; the `update:modelValue` payload types to match (`string` with `'string'`).
|
|
66
66
|
`label` is required (hide it visually with `hideLabel`, never drop it).
|
|
67
67
|
|
|
68
68
|
### Label & label modes
|
|
@@ -76,7 +76,7 @@ read from `FormData`.
|
|
|
76
76
|
- **`labelMode`** sets where the label sits: `outside` (above the field),
|
|
77
77
|
`floating` (rests inside like a placeholder at reduced opacity, lifts on
|
|
78
78
|
focus/fill) or `inside` (pinned small inside the top of the field). When you
|
|
79
|
-
don't set it, the project-wide `
|
|
79
|
+
don't set it, the project-wide `all.labelMode` applies
|
|
80
80
|
(library default: `outside`) — so a project can go all-floating without
|
|
81
81
|
touching call sites.
|
|
82
82
|
- **`labelPosition`** aligns the label text `left` / `center` / `right`.
|
|
@@ -617,7 +617,7 @@ const revealed = ref(false);
|
|
|
617
617
|
|
|
618
618
|
### Events & v-model
|
|
619
619
|
|
|
620
|
-
- `update:modelValue` — every value change; `string`, or the empty value when emptied (the `null-value` policy, else `
|
|
620
|
+
- `update:modelValue` — every value change; `string`, or the empty value when emptied (the `null-value` policy, else `components.BbTextInput.nullValue`, else `'null'`; `'string'` emits `''`)
|
|
621
621
|
(with a mask: the unmasked/masked string per `emitMasked`).
|
|
622
622
|
- `focus` / `blur` — forwarded `FocusEvent`s; they also drive the hint's
|
|
623
623
|
show-on-focus behavior.
|
|
@@ -657,11 +657,11 @@ The API also exposes `layout` (horizontal/pattern layouts), `reverse` and
|
|
|
657
657
|
`labelPosition`. `layout` works whenever the **resolved** label mode is
|
|
658
658
|
`'outside'` — which is the config default, so it works out of the box. With
|
|
659
659
|
`labelMode="floating"` or `"inside"` (via prop or
|
|
660
|
-
`
|
|
660
|
+
`all.labelMode`) the label is embedded in the field, so those
|
|
661
661
|
modes force the vertical layout and ignore `layout`. The same rule applies
|
|
662
662
|
to `BbNumberInput`, `BbSelect`, `BbDatePickerInput` and `BbTextarea` — all
|
|
663
663
|
five carry `labelMode` and all five fall back to
|
|
664
|
-
`
|
|
664
|
+
`all.labelMode` when it is unset.
|
|
665
665
|
|
|
666
666
|
**A squeezed field keeps a small floor, never a layout size.** A field in a
|
|
667
667
|
flex row with no width shrinks to fit, down to a floor that keeps it usable:
|
|
@@ -796,7 +796,7 @@ reads one vocabulary for buttons and fields:
|
|
|
796
796
|
- **`none`** — structure only: every colour transparent and **no focus
|
|
797
797
|
ring**. An escape hatch for a fully custom look: you then own hover, focus,
|
|
798
798
|
disabled and the error / warning states. Fine for a one-off with short
|
|
799
|
-
inline styling; when the look recurs, register a variant (`
|
|
799
|
+
inline styling; when the look recurs, register a variant (each field's `components.<C>.variants`),
|
|
800
800
|
which keeps the ring.
|
|
801
801
|
|
|
802
802
|
**The variant ladder**
|
|
@@ -817,13 +817,13 @@ reads one vocabulary for buttons and fields:
|
|
|
817
817
|
|
|
818
818
|
`variant` is the same prop on `BbTextarea`, `BbNumberInput`, `BbSelect`,
|
|
819
819
|
`BbTag`, `BbDatePickerInput`, `BbTimePickerInput` and `BbColorInput`. Extra
|
|
820
|
-
names are registered through the plugin's `
|
|
820
|
+
names are registered through the plugin's each field's `components.<C>.variants` option and styled
|
|
821
821
|
as a token block on `bb-field-input--<name>` — see the installation
|
|
822
822
|
guide.
|
|
823
823
|
|
|
824
824
|
### Global config & platforms
|
|
825
825
|
|
|
826
|
-
- `
|
|
826
|
+
- `all.labelMode` — project-wide default for `labelMode`
|
|
827
827
|
(also read by `BbNumberInput`, `BbSelect` and `BbDatePickerInput`).
|
|
828
828
|
- The component is a plain controlled `<input>`: SSR-safe in Nuxt, no teleports
|
|
829
829
|
or portals, nothing to hydrate carefully.
|
|
@@ -1214,7 +1214,14 @@ A listener on `pt:input` concatenates after the control's own handler, never
|
|
|
1214
1214
|
instead of it. Pick a `variant` first — `ghost` or `none` — when the whole box
|
|
1215
1215
|
should change; `pt:box` is for the one-off, and
|
|
1216
1216
|
`:pt:box="{ style: { '--bg': … } }"` is the sanctioned way to hand the box a
|
|
1217
|
-
look variable.
|
|
1217
|
+
look variable. A hover border is the resting-border token under `hover:`,
|
|
1218
|
+
`pt:box="hover:[--border-color:…]"` (a plain `hover:border-*` hides the error
|
|
1219
|
+
frame), and per state `pt:box:errors="hover:border-red-700"`; see
|
|
1220
|
+
[design tokens § The field box](./guides/design-tokens.md#the-field-box-the-resting-border-sits-under-the-state).
|
|
1221
|
+
The placeholder colour is one too: `pt:box="[--ph:…]"`
|
|
1222
|
+
(default `--bb-text-muted`; every field reads it, see
|
|
1223
|
+
[design tokens § The field box](./guides/design-tokens.md#the-field-box-the-resting-border-sits-under-the-state)).
|
|
1224
|
+
`pt:input` carries native attributes (`autocomplete`,
|
|
1218
1225
|
`inputmode`, `data-*`) as well as classes. Classes append to ours, an
|
|
1219
1226
|
attribute in `attrs` wins over ours. The full grammar, the merge rules and
|
|
1220
1227
|
the global map are in the [passthrough guide](./guides/passthrough.md).
|
|
@@ -1237,7 +1244,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1237
1244
|
|
|
1238
1245
|
### Gotchas & anti-patterns
|
|
1239
1246
|
|
|
1240
|
-
- An emptied field emits `null` by default (`''` with `null-value="string"` or the `
|
|
1247
|
+
- An emptied field emits `null` by default (`''` with `null-value="string"` or the plugin's `components.BbTextInput.nullValue`) — write `value ?? ''` when feeding
|
|
1241
1248
|
APIs that require strings.
|
|
1242
1249
|
- `layout` is ignored under `labelMode="floating"`/`"inside"` — those modes
|
|
1243
1250
|
embed the label in the field and force the vertical layout (see _Density &
|
|
@@ -1286,7 +1293,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1286
1293
|
| `autocomplete` | `string \| undefined` | | | Guides to the browser as to the type of information expected in the field. |
|
|
1287
1294
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
1288
1295
|
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. |
|
|
1289
|
-
| `compact` | `boolean \| undefined` | `
|
|
1296
|
+
| `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`). |
|
|
1290
1297
|
| `counter` | `boolean \| undefined` | `false` | | Shows a character count at the end of the hint row: `42`, or `42 / 140` with the native `maxlength` (which also stops input). It brightens from 90 % and takes the warning colour at the limit; screen readers hear it only when it crosses 90 % or the limit. |
|
|
1291
1298
|
| `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`. |
|
|
1292
1299
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
@@ -1303,24 +1310,24 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1303
1310
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
1304
1311
|
| `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. |
|
|
1305
1312
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
1306
|
-
| `labelPosition` | `"
|
|
1313
|
+
| `labelPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
1307
1314
|
| `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' }`). |
|
|
1308
1315
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
1309
1316
|
| `mask` | `MaskInputOptions \| undefined` | | | A maska options object, not a string: `{ mask: '#### #### #### ####' }`. Please visit https://beholdr.github.io/maska/v3 for syntax examples. |
|
|
1310
1317
|
| `modelValue` | `string \| null \| undefined` | | | Used by v-model. |
|
|
1311
1318
|
| `name` | `string \| undefined` | | | Defines the name of the input. |
|
|
1312
|
-
| `nullValue` | `'null' \| 'string'` | | | What the field emits once emptied (typing, the clear button, an empty mask): `'null'` emits `null`, `'string'` emits `''`. Unset: `
|
|
1319
|
+
| `nullValue` | `'null' \| 'string'` | | | What the field emits once emptied (typing, the clear button, an empty mask): `'null'` emits `null`, `'string'` emits `''`. Unset: the plugin's `components.BbTextInput.nullValue` (`'null'`). With `'string'`, the `update:modelValue` payload types as `string`. |
|
|
1313
1320
|
| `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
|
|
1314
1321
|
| `placeholder` | `string \| undefined` | | | Text shown while the field is empty. |
|
|
1315
1322
|
| `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
|
|
1316
1323
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
1317
1324
|
| `required` | `boolean \| undefined` | `false` | | Sets the native `required` attribute, for a plain `<form>`. Inside a `BbForm` it is an error (nothing enforces it): use `rules="required"` or the form `schema` instead. |
|
|
1318
|
-
| `reverse` | `boolean \| undefined` | `
|
|
1325
|
+
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
|
|
1319
1326
|
| `rules` | `RuleExpression<string \| null>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
1320
1327
|
| `type` | `"text" \| "search" \| "tel" \| "url" \| "email" \| "password" \| undefined` | `"text"` | | Type of the input. Restricted to the textual input types this component supports — use `BbNumberInput` for numbers and `BbDatePickerInput` for dates. |
|
|
1321
1328
|
| `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. |
|
|
1322
|
-
| `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 `
|
|
1323
|
-
| `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 `
|
|
1329
|
+
| `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. |
|
|
1330
|
+
| `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.BbTextInput.variants`. |
|
|
1324
1331
|
| `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. |
|
|
1325
1332
|
|
|
1326
1333
|
## Passthrough parts and states
|
|
@@ -1393,6 +1400,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1393
1400
|
| Property | Set on | Default | What it is |
|
|
1394
1401
|
| --- | --- | --- | --- |
|
|
1395
1402
|
| `--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`). |
|
|
1403
|
+
| `--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. |
|
|
1396
1404
|
|
|
1397
1405
|
## Component tree
|
|
1398
1406
|
|
|
@@ -1405,7 +1413,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1405
1413
|
|
|
1406
1414
|
- `BbTextInput` _(this component)_ — its own template binds: `input` → `input.bb-text-input__input`, `controlAttrs` → `input.bb-text-input__input`
|
|
1407
1415
|
- `CommonField` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'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`
|
|
1408
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'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`
|
|
1416
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'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`
|
|
1409
1417
|
|
|
1410
1418
|
## See Also
|
|
1411
1419
|
|