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/BbTextarea.md
CHANGED
|
@@ -63,7 +63,7 @@ Pick a sibling when the shape of the data is different:
|
|
|
63
63
|
- a calendar date → `BbDatePickerInput`;
|
|
64
64
|
- a value from a known set → `BbSelect` / `BbRadioGroup`.
|
|
65
65
|
|
|
66
|
-
`v-model` binds a `string | null` — an emptied field emits `null` by default, or `''` when the plugin
|
|
66
|
+
`v-model` binds a `string | null` — an emptied field emits `null` by default, or `''` when the plugin's `components: { BbTextarea: { 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'`).
|
|
67
67
|
`label` is required (hide it visually with `hideLabel`, never drop it).
|
|
68
68
|
|
|
69
69
|
### Label
|
|
@@ -80,7 +80,7 @@ form or read from `FormData`.
|
|
|
80
80
|
inputs: `outside` (above/beside the field, the library default), `floating`
|
|
81
81
|
(rests in the field and lifts on focus/fill) or `inside` (pinned small
|
|
82
82
|
inside the top edge). Unset, it falls back to
|
|
83
|
-
`
|
|
83
|
+
`all.labelMode` — so a project that floats its single-line
|
|
84
84
|
inputs gets floating textarea labels for free.
|
|
85
85
|
- The **`label` slot** replaces the label text and receives `{ text, hasErrors, hasWarnings }`
|
|
86
86
|
— e.g. to append a required marker that turns red in the error state.
|
|
@@ -811,7 +811,7 @@ const notes = ref<string | null>(null);
|
|
|
811
811
|
|
|
812
812
|
### Events & v-model
|
|
813
813
|
|
|
814
|
-
- `update:modelValue` — every value change; `string`, or the empty value when emptied (the `null-value` policy, else `
|
|
814
|
+
- `update:modelValue` — every value change; `string`, or the empty value when emptied (the `null-value` policy, else `components.BbTextarea.nullValue`, else `'null'`; `'string'` emits `''`).
|
|
815
815
|
- `focus` / `blur` — forwarded `FocusEvent`s; they also drive the hint's
|
|
816
816
|
show-on-focus behavior.
|
|
817
817
|
- `input` — every keystroke (raw DOM event); `change` — on commit (blur), the
|
|
@@ -829,7 +829,7 @@ reaches a form's own listeners.
|
|
|
829
829
|
|
|
830
830
|
- `compact`, `layout`, `reverse`, `labelMode`, `labelPosition` are the
|
|
831
831
|
layout knobs; there is no size scale. An unset `labelMode` falls back to
|
|
832
|
-
`
|
|
832
|
+
`all.labelMode`, keeping textarea labels in step with the
|
|
833
833
|
rest of the form.
|
|
834
834
|
- The component wraps a plain controlled `<textarea>`: SSR-safe in Nuxt, no
|
|
835
835
|
teleports or portals.
|
|
@@ -856,7 +856,7 @@ affordance, the focus ring still shows, and errors or warnings surface through
|
|
|
856
856
|
the icon and the message rather than a tinted edge. `ghost` is the inline-edit
|
|
857
857
|
table cell (`<BbTextarea compact hide-label variant="ghost" />`) — no
|
|
858
858
|
`:deep()` needed. The names and tokens are the `BbButton` ones; extra names
|
|
859
|
-
register through the plugin's `
|
|
859
|
+
register through the plugin's each field's `components.<C>.variants` option. The full ladder is in
|
|
860
860
|
the `BbTextInput` guide.
|
|
861
861
|
|
|
862
862
|
### Restyling with passthrough
|
|
@@ -987,7 +987,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
987
987
|
floor; the field starts there and never shrinks below it.
|
|
988
988
|
- Avoid `labelMode="floating"` with `placeholder` — the resting label and the
|
|
989
989
|
placeholder occupy the same spot.
|
|
990
|
-
- An emptied field emits `null` by default (`''` with `null-value="string"` or the `
|
|
990
|
+
- An emptied field emits `null` by default (`''` with `null-value="string"` or the plugin's `components.BbTextarea.nullValue`) — write `value ?? ''` when feeding
|
|
991
991
|
APIs that require strings.
|
|
992
992
|
- `counter` counts what `maxlength` counts: UTF-16 code units, so an emoji
|
|
993
993
|
counts 2, and a line break counts 1 in the browser but 2 once a form
|
|
@@ -1030,9 +1030,9 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1030
1030
|
| `append:icon` | `string \| undefined` | | | Name of the icon to be added at the end of the input. |
|
|
1031
1031
|
| `autocomplete` | `string \| undefined` | | | Guides to the browser as to the type of information expected in the field. |
|
|
1032
1032
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
1033
|
-
| `autoGrow` | `boolean \| undefined` | `
|
|
1033
|
+
| `autoGrow` | `boolean \| undefined` | `undefined` | | Expands the textarea to match its content. Empty, it is one BbTextInput tall (text on the same line); it never shrinks below that, or below `rows`. |
|
|
1034
1034
|
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. |
|
|
1035
|
-
| `compact` | `boolean \| undefined` | `
|
|
1035
|
+
| `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`). |
|
|
1036
1036
|
| `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. |
|
|
1037
1037
|
| `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`. |
|
|
1038
1038
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
@@ -1047,23 +1047,23 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1047
1047
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
1048
1048
|
| `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. |
|
|
1049
1049
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. `'outside'` (default) sits the label above/beside the field; `'floating'`/`'inside'` overlay it, like the other text inputs. |
|
|
1050
|
-
| `labelPosition` | `"
|
|
1050
|
+
| `labelPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
1051
1051
|
| `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' }`). |
|
|
1052
1052
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
1053
1053
|
| `modelValue` | `string \| null \| undefined` | | | Used by v-model. |
|
|
1054
1054
|
| `name` | `string \| undefined` | | | Defines the name of the input. |
|
|
1055
|
-
| `nullValue` | `'null' \| 'string'` | | | What the field emits once the user empties it (typing it empty, the clear button): `'null'` emits `null`, `'string'` emits `''`. Unset, the
|
|
1055
|
+
| `nullValue` | `'null' \| 'string'` | | | What the field emits once the user empties it (typing it empty, the clear button): `'null'` emits `null`, `'string'` emits `''`. Unset, the plugin's `components.BbTextarea.nullValue` applies (`'null'` by default). Also types the `update:modelValue` payload: with `'string'` it is `string`. |
|
|
1056
1056
|
| `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
|
|
1057
1057
|
| `placeholder` | `string \| undefined` | | | Text shown while the field is empty. |
|
|
1058
1058
|
| `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
|
|
1059
1059
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
1060
1060
|
| `required` | `boolean \| undefined` | `false` | | Sets the input as required. Outside a BbForm it forwards to the native textarea; inside one it only marks the field (asterisk, aria-required) and nothing enforces it: use `rules="required"` or the form schema. |
|
|
1061
|
-
| `reverse` | `boolean \| undefined` | `
|
|
1061
|
+
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
|
|
1062
1062
|
| `rows` | `string \| number \| undefined` | | | Sets the number of visible text lines for the control. |
|
|
1063
1063
|
| `rules` | `RuleExpression<string \| null>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
1064
1064
|
| `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. |
|
|
1065
|
-
| `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 `
|
|
1066
|
-
| `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 `
|
|
1065
|
+
| `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. |
|
|
1066
|
+
| `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.BbTextarea.variants`. |
|
|
1067
1067
|
| `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. |
|
|
1068
1068
|
|
|
1069
1069
|
## Passthrough parts and states
|
|
@@ -1139,6 +1139,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1139
1139
|
| `--inner-h` | `.bb-textarea__field` | `max( calc(var(--bb-leading) + var(--bb-input-py) * 2), calc(var(--bb-input-h) - …` | The first text row's height: the tallest of one line plus its vertical padding, the input height less its borders, and the icon box. |
|
|
1140
1140
|
| `--floating-py` | `.bb-textarea__field` | `calc((var(--inner-h) - var(--bb-input-icon)) / 2)` | Top offset that centres the icons, affixes, spinner and clear button on that first row — the shell top-aligns them for a textarea. |
|
|
1141
1141
|
| `--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`). |
|
|
1142
|
+
| `--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. |
|
|
1142
1143
|
|
|
1143
1144
|
## Component tree
|
|
1144
1145
|
|
|
@@ -1151,7 +1152,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1151
1152
|
|
|
1152
1153
|
- `BbTextarea` _(this component)_ — its own template binds: `controlAttrs` → `textarea.bb-textarea__input`, `input` → `textarea.bb-textarea__input`
|
|
1153
1154
|
- `CommonField` _(internal — not importable, reach it through `BbTextarea`)_ — `BbTextarea`'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`
|
|
1154
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbTextarea`)_ — `BbTextarea`'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`
|
|
1155
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbTextarea`)_ — `BbTextarea`'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`
|
|
1155
1156
|
- Also mounts `BbSmoothHeight`
|
|
1156
1157
|
|
|
1157
1158
|
## See Also
|
package/dist/ai/BbTimePicker.md
CHANGED
|
@@ -162,7 +162,7 @@ const shift = ref<string[] | null>(['09:00', '17:00']);
|
|
|
162
162
|
### Adaptive and positioning
|
|
163
163
|
|
|
164
164
|
On mobile the columns open in a bottom off-canvas sheet instead of a floating
|
|
165
|
-
popover (`adaptive`, on by default via `
|
|
165
|
+
popover (`adaptive`, on by default via `all.adaptive`; forward extra sheet
|
|
166
166
|
props with `offCanvasProps`). Position the desktop popover with `placement`,
|
|
167
167
|
`offset`, `padding`, `boundary`, and `disableFlip` — the same knobs as the other
|
|
168
168
|
overlays (`placement` is read at open: a change while open applies at the next
|
|
@@ -303,7 +303,7 @@ typeahead. Always pass a `label` when the trigger is an unlabelled cell or icon.
|
|
|
303
303
|
| `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: `cellColumnHeader`, `header`, `item`, `panel`, `root`, `sheet`. States: `disabled`, `open`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbTimePickerProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
304
304
|
| `activator` | `ElementOrComponentRef \| undefined` | | | External activator element or component ref. When provided, the `activator` slot is not rendered and click + ARIA are attached programmatically to the referenced element — mirroring `BbDatePicker`. |
|
|
305
305
|
| `activeSegment` | `'start'` \| `'end'` | | | Which end the columns edit in range mode (`v-model:active-segment`). Standalone use manages this internally via the in-panel toggle; a host can drive it. Ignored outside `range`. |
|
|
306
|
-
| `adaptive` | `boolean \| undefined` | ``
|
|
306
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile, open in a bottom off-canvas sheet instead of a floating popover. When unset, falls back to the global `all.adaptive`. |
|
|
307
307
|
| `ampm` | `boolean \| undefined` | `false` | | 12-hour display with an AM/PM column; emitted values stay 24-hour. |
|
|
308
308
|
| `anchor` | `ElementOrComponentRef \| undefined` | | | Element or component ref the popover positions itself relative to. Defaults to the activator when omitted (anchor to a larger row while a smaller element stays the click target). |
|
|
309
309
|
| `boundary` | `ElementOrComponentRefOrSelector \| undefined` | | | Constrains the popover within a bounding element or CSS selector: sideways only, alongside the trigger; it flips at the viewport. |
|
|
@@ -382,7 +382,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
382
382
|
- `CommonTimeSelector` _(internal — not importable, reach it through `BbTimePicker`)_ — `BbTimePicker`'s pt parts land here: `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`
|
|
383
383
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
384
384
|
- `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`
|
|
385
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
385
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
386
386
|
- Also mounts `CommonPopover`
|
|
387
387
|
|
|
388
388
|
## See Also
|
|
@@ -154,7 +154,7 @@ end]`; typing an inverted pair swaps it on blur with the usual
|
|
|
154
154
|
### Platform behaviour
|
|
155
155
|
|
|
156
156
|
The popover follows the family's adaptive pattern: on mobile (with the global
|
|
157
|
-
`
|
|
157
|
+
`all.adaptive`, or the `adaptive` prop) the columns open in a bottom sheet
|
|
158
158
|
that drags down to dismiss and shows no ✕ (the wheels never drag it;
|
|
159
159
|
`offCanvasProps` is spread over those defaults — `{ hideClose: false }` brings
|
|
160
160
|
the ✕ back, and a `pt` inside it is the only way to style the sheet's header,
|
|
@@ -182,7 +182,7 @@ affordance, the focus ring still shows, and errors or warnings surface through
|
|
|
182
182
|
the icon and the message rather than a tinted edge. `ghost` is the inline-edit
|
|
183
183
|
table cell (`<BbTimePickerInput compact hide-label variant="ghost" />`) — no
|
|
184
184
|
`:deep()` needed. The names and tokens are the `BbButton` ones; extra names
|
|
185
|
-
register through the plugin's `
|
|
185
|
+
register through the plugin's each field's `components.<C>.variants` option. The full ladder is in
|
|
186
186
|
the `BbTextInput` guide.
|
|
187
187
|
|
|
188
188
|
### Restyling with passthrough
|
|
@@ -302,13 +302,13 @@ Messages _also_ render in an `aria-live="polite"` region.
|
|
|
302
302
|
| Prop | Type | Default | Required | Description |
|
|
303
303
|
| --- | --- | --- | --- | --- |
|
|
304
304
|
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `activator`, `box`, `cellColumnHeader`, `clear`, `description`, `header`, `hint`, `icon`, `input`, `item`, `label`, `message`, `panel`, `prefix`, `root`, `sheet`, `spinner`, `suffix`. States: `disabled`, `errors`, `ghost`, `hasValue`, `loading`, `open`, `outline`, `readonly`, `secondary`, `warnings`, `selected`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbTimePickerInputProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
305
|
-
| `adaptive` | `boolean \| undefined` | ``
|
|
305
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile the time columns open inside a bottom off-canvas sheet instead of a floating popover. When unset, falls back to the global `all.adaptive`. |
|
|
306
306
|
| `ampm` | `boolean \| undefined` | `false` | | 12-hour display with an AM/PM segment. Purely a field-composition concern: the model stays 24-hour. Type `A`/`P` (or ArrowUp/Down) to set the meridiem. |
|
|
307
307
|
| `append:icon` | `string \| undefined` | | | Name of the icon to be added at the end of the input. |
|
|
308
|
-
| `autocomplete` | `string \| undefined` | `
|
|
308
|
+
| `autocomplete` | `string \| undefined` | `'off'` | | Guides the browser as to the type of information expected in the field. |
|
|
309
309
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
310
310
|
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. |
|
|
311
|
-
| `compact` | `boolean \| undefined` | `
|
|
311
|
+
| `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`). |
|
|
312
312
|
| `description` | `string \| undefined` | | | Descriptive text displayed below the label and above the input. Always visible and linked to the input via `aria-describedby` (after any `errors` / `warnings`, before the `hint`). |
|
|
313
313
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
314
314
|
| `disableWriting` | `boolean \| "mobile" \| "desktop" \| undefined` | `false` | | Disables typing into the input. Use `'mobile'` / `'desktop'` to disable typing on one platform only. |
|
|
@@ -323,7 +323,7 @@ Messages _also_ render in an `aria-live="polite"` region.
|
|
|
323
323
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
324
324
|
| `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. |
|
|
325
325
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
326
|
-
| `labelPosition` | `"
|
|
326
|
+
| `labelPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
327
327
|
| `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' }`). |
|
|
328
328
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
329
329
|
| `max` | `string \| undefined` | | | Maximum selectable time, `HH:mm` (other shapes throw at setup). The columns disable the entries no in-range time can use; a typed value (or an hour beside an out-of-range minute) is clamped with a `disabled_time` error. |
|
|
@@ -337,14 +337,14 @@ Messages _also_ render in an `aria-live="polite"` region.
|
|
|
337
337
|
| `range` | `boolean` | `false` | | Range selection: v-model expects a two-element array `[start, end]`. An inverted pair swaps on finalize with an `end_before_start` error. |
|
|
338
338
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
339
339
|
| `required` | `boolean \| undefined` | `false` | | Sets the input as required. |
|
|
340
|
-
| `reverse` | `boolean \| undefined` | `
|
|
340
|
+
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout: the order of the label and the input is swapped. |
|
|
341
341
|
| `rules` | `RuleExpression<string \| string[] \| null>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
342
342
|
| `seconds` | `boolean \| undefined` | `false` | | Adds the seconds segment. Without it an incoming value carrying seconds displays truncated and zeroes out on the next user commit. |
|
|
343
343
|
| `step` | `number \| undefined` | `1` | | Minute granularity for the popover minute column. Constrains what the columns produce, never what typing accepts; ArrowUp/Down on a segment always step by 1. |
|
|
344
344
|
| `transitionDuration` | `number \| undefined` | | | Transition duration, in milliseconds, for the popover appearance. |
|
|
345
345
|
| `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. |
|
|
346
|
-
| `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 `
|
|
347
|
-
| `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 `
|
|
346
|
+
| `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. |
|
|
347
|
+
| `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.BbTimePickerInput.variants`. |
|
|
348
348
|
| `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. |
|
|
349
349
|
|
|
350
350
|
## Passthrough parts and states
|
|
@@ -418,6 +418,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
418
418
|
| Property | Set on | Default | What it is |
|
|
419
419
|
| --- | --- | --- | --- |
|
|
420
420
|
| `--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`). |
|
|
421
|
+
| `--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. |
|
|
421
422
|
|
|
422
423
|
## Component tree
|
|
423
424
|
|
|
@@ -430,9 +431,9 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
430
431
|
|
|
431
432
|
- `BbTimePickerInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-segmented-field__input`, `input` → `input.bb-segmented-field__input`, `activator` → `button.bb-segmented-field__activator`, `suffix` → `span.bb-field-input__suffix`, `panel` → `div`, `panel` → `CommonPopover`; hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs)
|
|
432
433
|
- `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`
|
|
433
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
434
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
434
435
|
- `CommonField` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'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`
|
|
435
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'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`
|
|
436
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'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`
|
|
436
437
|
- `CommonTimeSelector` _(internal — not importable, reach it through `BbTimePickerInput`)_ — `BbTimePickerInput`'s pt parts land here: `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`
|
|
437
438
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
438
439
|
- Also mounts `BbIcon`, `CommonPopover`
|
package/dist/ai/BbToast.md
CHANGED
|
@@ -51,8 +51,8 @@ toast({ text: 'Saved', variant: 'success' });
|
|
|
51
51
|
|
|
52
52
|
**Areas with their own look.** A toast takes the passthrough scope and the
|
|
53
53
|
tokens of the place its HOST is mounted, not of the code that fired it. The
|
|
54
|
-
plugin's host does not see a `<
|
|
55
|
-
the app is split into areas that each wrap their pages in `<
|
|
54
|
+
plugin's host does not see a `<BbConfigScope>` or `provide` in `App.vue`. When
|
|
55
|
+
the app is split into areas that each wrap their pages in `<BbConfigScope>`
|
|
56
56
|
([passthrough guide](./guides/passthrough.md) § Named scopes), place one
|
|
57
57
|
`<BbHost />` inside each area's layout, within its scope. A placed host takes
|
|
58
58
|
over from the plugin's while it is mounted and hands back when it unmounts,
|
|
@@ -66,7 +66,7 @@ resolved requests, never during SSR/setup — on the server there is nothing to
|
|
|
66
66
|
render them into.
|
|
67
67
|
|
|
68
68
|
`<BbHost />` takes no props: the default corner for toasts that don't specify
|
|
69
|
-
their own is the plugin's `
|
|
69
|
+
their own is the plugin's `BbToast.position` (see Positioning).
|
|
70
70
|
|
|
71
71
|
### Firing a toast
|
|
72
72
|
|
|
@@ -165,7 +165,8 @@ Three things worth internalising:
|
|
|
165
165
|
variant its icon **once**, in the build config (see Variant icons below),
|
|
166
166
|
instead of on every call. The library implies none: dev builds warn when a
|
|
167
167
|
built-in variant shows no icon, since the tone is otherwise dropped with no
|
|
168
|
-
trace
|
|
168
|
+
trace (once per variant per session; `hideIcon: true` says no icon is meant
|
|
169
|
+
and silences it).
|
|
169
170
|
- `toast(...)` returns the message `id`. Keep it to `update(...)` or
|
|
170
171
|
`dismiss(...)` that toast later; `dismiss()` with no argument clears the
|
|
171
172
|
whole stack.
|
|
@@ -177,7 +178,7 @@ Three things worth internalising:
|
|
|
177
178
|
#### Variant icons
|
|
178
179
|
|
|
179
180
|
A default icon per variant, set once: the object form of the plugin's
|
|
180
|
-
`
|
|
181
|
+
`components.BbToast.variants` option sets each variant's icon for
|
|
181
182
|
the whole app. A toast without its own `icon` uses its variant's; its own
|
|
182
183
|
`icon` wins; `hideIcon: true` hides either (and does nothing when there is no
|
|
183
184
|
icon). The loading spinner still shows with `hideIcon`: it is state, not
|
|
@@ -186,10 +187,14 @@ decoration.
|
|
|
186
187
|
```ts
|
|
187
188
|
// vite.config.ts (Nuxt: the `bitboss` key)
|
|
188
189
|
bitbossUi({
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
components: {
|
|
191
|
+
BbToast: {
|
|
192
|
+
variants: {
|
|
193
|
+
success: { icon: 'lucide:circle-check' },
|
|
194
|
+
destructive: { icon: 'lucide:circle-x' },
|
|
195
|
+
billing: {}, // a project variant, no icon
|
|
196
|
+
},
|
|
197
|
+
},
|
|
193
198
|
},
|
|
194
199
|
});
|
|
195
200
|
```
|
|
@@ -206,7 +211,7 @@ icon scan like any other.
|
|
|
206
211
|
|
|
207
212
|
#### Project variants
|
|
208
213
|
|
|
209
|
-
The plugin's `
|
|
214
|
+
The plugin's `components.BbToast.variants` option appends names to the typed union, and any
|
|
210
215
|
plain string is accepted at the call site for one-offs. A custom variant only
|
|
211
216
|
buys you the `bb-toast__panel--<variant>` class hook — style it yourself
|
|
212
217
|
(the built-ins just set `--icon-color`). Custom variants announce politely;
|
|
@@ -341,7 +346,7 @@ A toast renders in one of six corners: `top-left`, `top-center`, `top-right`,
|
|
|
341
346
|
`bottom-left`, `bottom-center`, `bottom-right`. Resolution order per message:
|
|
342
347
|
|
|
343
348
|
1. `toast({ position })` — per-message override;
|
|
344
|
-
2. the plugin's `
|
|
349
|
+
2. the plugin's `BbToast.position` config (library default `bottom-right`).
|
|
345
350
|
|
|
346
351
|
```ts
|
|
347
352
|
// A single toast, bottom-centre, regardless of the global default:
|
|
@@ -642,34 +647,65 @@ parts (`panel:loading`, `icon:loading`, …) — a toast is showing for as
|
|
|
642
647
|
long as it is mounted, so there is no `open`.
|
|
643
648
|
|
|
644
649
|
`<BbHost />` takes no `pt`: every toast is styled from the build plugin's
|
|
645
|
-
global map, under `BbToast` (or a named scope's, with `<
|
|
650
|
+
global map, under `BbToast` (or a named scope's, with `<BbConfigScope>` around the
|
|
646
651
|
host). A muted wash on `panel` (the card — not a colored left border),
|
|
647
652
|
`text-sm` on `text`, a muted ✕ on `close`; the actions row pushed right on
|
|
648
653
|
`footer`, each button given a floor on `action`, and while a toast is
|
|
649
654
|
`loading` the icon muted and the card faded:
|
|
650
655
|
|
|
651
656
|
```ts
|
|
652
|
-
// bitboss-ui.
|
|
653
|
-
import {
|
|
657
|
+
// bitboss-ui.components.ts
|
|
658
|
+
import type { BbComponentsMap } from 'bitboss-ui/vite'; // 'bitboss-ui/nuxt' in a Nuxt app
|
|
654
659
|
|
|
655
|
-
export const
|
|
660
|
+
export const components = {
|
|
656
661
|
BbToast: {
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
662
|
+
pt: {
|
|
663
|
+
panel: 'bg-(--bb-muted)',
|
|
664
|
+
text: 'text-sm',
|
|
665
|
+
close: 'text-(--bb-text-muted)',
|
|
666
|
+
footer: 'justify-end',
|
|
667
|
+
action: 'min-w-20',
|
|
668
|
+
icon: 'text-(--bb-primary)',
|
|
669
|
+
'icon:loading': 'text-(--bb-text-muted)',
|
|
670
|
+
'panel:loading': 'opacity-80',
|
|
671
|
+
},
|
|
665
672
|
},
|
|
666
|
-
}
|
|
673
|
+
} satisfies BbComponentsMap;
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
The row inside the card (the icon, the text and the ✕) is not a part: it is
|
|
677
|
+
the box the stack measures and the one that fades behind the pile. Its gap
|
|
678
|
+
and its vertical alignment are two locals on the card, set through `panel`:
|
|
679
|
+
`--gap` (default `12px`) and `--align` (default `flex-start`, the icon on the
|
|
680
|
+
title's line). A one-line toast with a centred icon:
|
|
681
|
+
|
|
682
|
+
```ts
|
|
683
|
+
import type { BbComponentsMap } from 'bitboss-ui/vite';
|
|
684
|
+
|
|
685
|
+
export const components = {
|
|
686
|
+
BbToast: { pt: { panel: '[--gap:8px] [--align:center]' } },
|
|
687
|
+
} satisfies BbComponentsMap;
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
The card's `--gap` is the row's; the space between stacked toasts is the
|
|
691
|
+
toaster's own `--gap` (on `root`), which the cards never change.
|
|
692
|
+
|
|
693
|
+
**Width.** A stack has one width, `--width` on `root` (default `356px`; edge
|
|
694
|
+
to edge under 600px wide): the cards pile on top of each other, so one wider
|
|
695
|
+
card would stick out of the pile. Set it on the region, never on a card:
|
|
696
|
+
|
|
697
|
+
```ts
|
|
698
|
+
import type { BbComponentsMap } from 'bitboss-ui/vite';
|
|
699
|
+
|
|
700
|
+
export const components = {
|
|
701
|
+
BbToast: { pt: { root: '[--width:420px]' } },
|
|
702
|
+
} satisfies BbComponentsMap;
|
|
667
703
|
```
|
|
668
704
|
|
|
669
705
|
The full grammar, the merge rules and the global map are in the
|
|
670
706
|
[passthrough guide](./guides/passthrough.md).
|
|
671
707
|
|
|
672
|
-
The map is typed where you write it by `
|
|
708
|
+
The map is typed where you write it by `satisfies BbComponentsMap`, never with an imported
|
|
673
709
|
`PtValue`: see [passthrough § The global map](./guides/passthrough.md#the-global-map).
|
|
674
710
|
|
|
675
711
|
### Works well with
|
|
@@ -761,6 +797,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
761
797
|
| Property | Set on | Default | What it is |
|
|
762
798
|
| --- | --- | --- | --- |
|
|
763
799
|
| `--gap` | `.bb-toast` | `14px` | space between stacked toasts (the peek in the collapsed pile) |
|
|
800
|
+
| `--pile-gap` | `.bb-toast` | `var(--gap)` | The same value under a name the cards do not shadow: a card's own `--gap` is its row's (set `--gap` here, never this). |
|
|
764
801
|
| `--offset` | `.bb-toast` | `20px` | distance from the viewport corner; 14px under 600px wide |
|
|
765
802
|
| `--width` | `.bb-toast` | `356px` | stack width; `auto` (edge to edge) under 600px |
|
|
766
803
|
| `--lift` | `.bb-toast__panel` | `-1` | Direction sign, not elevation: +1 for a top-anchored stack, -1 for a bottom-anchored one. Every vertical term (stack offset, enter/exit slide) is multiplied by it, so one set of formulas serves both corners. |
|
|
@@ -776,6 +813,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
776
813
|
| `--bw` | `.bb-toast__panel` | `var(--bb-border-w)` | Edge width: a real `border`, counted in the measured height; the inner padding and the × take it back, so the card keeps its size. |
|
|
777
814
|
| `--fg` | `.bb-toast__panel` | `var(--bb-text)` | title, text and close glyph |
|
|
778
815
|
| `--icon-color` | `.bb-toast__panel` | `var(--bb-text)` | The status glyph only — the variants below re-point this and nothing else |
|
|
816
|
+
| `--gap` | `.bb-toast__panel` | `12px` | The row inside the card (icon, text, close): its gap and its vertical alignment. Read by the row, which is not a part: it is the stack's height-measure box and the pile fade, so it stays nested. |
|
|
817
|
+
| `--align` | `.bb-toast__panel` | `flex-start` | |
|
|
779
818
|
| `--ring-t` | `.bb-toast__close` | `var(--bb-transition-medium)` | |
|
|
780
819
|
| `--icon-color` | `.bb-toast__panel--success` | `var(--bb-success)` | |
|
|
781
820
|
| `--icon-color` | `.bb-toast__panel--info` | `var(--bb-info)` | |
|
|
@@ -795,7 +834,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
795
834
|
- `BbToast` _(this component)_
|
|
796
835
|
- `BbToastRegion` _(internal — not importable, reach it through `BbToast`)_ — `BbToast`'s pt parts land here: `root` → `ol.bb-toast`
|
|
797
836
|
- `BbToastMessage` _(internal — not importable, reach it through `BbToast`)_ — also mounts `BbIcon`, `BbSpinner`
|
|
798
|
-
- `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`
|
|
837
|
+
- `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`
|
|
799
838
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
800
839
|
|
|
801
840
|
## See Also
|
package/dist/ai/BbTooltip.md
CHANGED
|
@@ -115,7 +115,7 @@ always uses the element it sits on.
|
|
|
115
115
|
- `'default'` — the inverted (primary) bubble.
|
|
116
116
|
- `'destructive'` — danger-tinted, for a warning-flavored hint.
|
|
117
117
|
|
|
118
|
-
Registering a name in the vite plugin's `
|
|
118
|
+
Registering a name in the vite plugin's `components.BbTooltip.variants` array is **not
|
|
119
119
|
optional**: `variant` is typed `keyof TooltipVariantRegistry`, so out of the box
|
|
120
120
|
only `default` and `destructive` compile and `variant="info"` is a type error —
|
|
121
121
|
`info` and `success` being exactly the names people invent. Register the name
|
|
@@ -146,7 +146,7 @@ through; the class is still emitted.
|
|
|
146
146
|
|
|
147
147
|
```ts
|
|
148
148
|
// vite.config.ts — register project variants for type-safe autocomplete
|
|
149
|
-
bitbossUi({
|
|
149
|
+
bitbossUi({ components: { BbTooltip: { variants: ['info', 'success'] } } });
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
### A toolbar of labelled icon buttons
|
package/dist/ai/CommonField.md
CHANGED
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
| `hint` | `string \| undefined` | | | Hint text rendered below the input. While shown, its id is exposed to the input slot via `ariaDescribedby` — last in the list, after any error/warning ids and the description id. |
|
|
26
26
|
| `id` | `string \| undefined` | | | Explicit id for the container and associated input. Falls back to an auto-generated id when omitted. |
|
|
27
27
|
| `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. |
|
|
28
|
-
| `inputPosition` | `"
|
|
28
|
+
| `inputPosition` | `"center" \| "left" \| "right" \| undefined` | `'left'` | | Horizontal alignment of the input column in a side-by-side layout. Unset, it follows the layout: `'right'` in a horizontal/ratio split (beside the left-hand label), else `'left'`; `layout` defaults to `'vertical'`, so the effective default is `'left'`. |
|
|
29
29
|
| `label` | `string` | | yes | Visible label text for the field. Also used to derive a fallback name. |
|
|
30
30
|
| `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. |
|
|
31
31
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
32
|
-
| `labelPosition` | `"
|
|
32
|
+
| `labelPosition` | `"center" \| "left" \| "right" \| undefined` | `"left"` | | Horizontal alignment for the label column. |
|
|
33
33
|
| `labelTag` | `'span'` \| `'label'` \| `'legend'` | `"label"` | | Element used for the label: `label` (default), `legend` inside a `fieldset` container, or `span` when the text must not steal the click because the control already carries its own label. |
|
|
34
34
|
| `layout` | `Responsive<FieldLayout> \| undefined` | `"vertical"` | | Label/input layout: `'vertical'`, `'horizontal'`, `'auto'`, `'label-fill'`, `'input-fill'`, a two-token ratio like `"xx xxxxx"` (columns sized by token length), or a per-breakpoint map of those. An unknown value warns and falls back to `'auto'`. |
|
|
35
35
|
| `loading` | `boolean \| undefined` | `false` | | Whether the inner control is in a loading state. |
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
| `preventFocus` | `boolean \| undefined` | `false` | | Prevents the wrapper from focusing the inner input on click. |
|
|
43
43
|
| `readonly` | `boolean \| undefined` | `false` | | Whether the input is readonly. |
|
|
44
44
|
| `reserveAppendSpace` | `boolean \| undefined` | `false` | | Keeps trailing action/icon space reserved even when currently empty. |
|
|
45
|
-
| `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
|
|
45
|
+
| `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 each field's `components.<C>.variants`. |
|
|
46
46
|
|
|
47
47
|
## Events
|
|
48
48
|
|
|
@@ -76,6 +76,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
76
76
|
| `--ring-color` | `.bb-field-input` | `var(--bb-ring)` | ring colour; state owns it, not variants |
|
|
77
77
|
| `--elev` | `.bb-field-input` | `0 0 0 0 transparent` | Resting lift, alone in `box-shadow`: the ring is the box's outline, so a theme's `--elev: none` never takes the ring with it. |
|
|
78
78
|
| `--frost` | `.bb-field-input` | `none` | Plate frost — a full `backdrop-filter` value (see --bb-surface-filter). Routed through a local rather than read from the token directly, so a chrome-less variant can decline it: frosting a ghost field gives it the plate it is contractually not supposed to have. |
|
|
79
|
+
| `--ph` | `.bb-field-input` | `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. |
|
|
79
80
|
| `--inside-label-clearance` | `.bb-field-input__box` | `0px` | Height and top padding added above the text for a label rendered inside the box. Zero here; the `--inside-label` rules at the bottom of this file raise it to one label line, or two with a description. |
|
|
80
81
|
| `--ring-t` | `.bb-field-input__box` | `var(--bb-transition-medium)` | |
|
|
81
82
|
|
package/dist/ai/FlatListBox.md
CHANGED
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
| pt part | Lands on | In |
|
|
16
16
|
| --- | --- | --- |
|
|
17
17
|
| `pt:itemIcon` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
18
|
+
| `pt:check` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
18
19
|
|
|
19
20
|
**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 `FlatListBox`'s root:
|
|
20
21
|
|
|
21
22
|
| Variable | Set through | Declared by | What it is |
|
|
22
23
|
| --- | --- | --- | --- |
|
|
23
|
-
| `--w` | `pt:itemIcon` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
24
|
+
| `--w` | `pt:itemIcon`, `pt:check` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
24
25
|
|
|
25
26
|
## Props
|
|
26
27
|
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
| `open` | `boolean \| undefined` | `false` | | Whether the listbox is open (visible). |
|
|
41
42
|
| `optionHeight` | `number \| undefined` | | | Fixed height (in px) for each option row. Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport. |
|
|
42
43
|
| `options` | `Option<Item>[]` | | yes | List of options to display. |
|
|
43
|
-
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
|
|
44
|
+
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
|
|
44
45
|
| `transitionDuration` | `number \| undefined` | `250` | | Duration of open/close transition in milliseconds. |
|
|
45
46
|
|
|
46
47
|
## Events
|
|
@@ -66,5 +67,5 @@
|
|
|
66
67
|
- **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 `FlatListBox`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
67
68
|
- Listed nodes are the ones `FlatListBox`'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/FlatListBox.tree.json`.
|
|
68
69
|
|
|
69
|
-
- `FlatListBox` _(this component)_ — its own template binds: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`
|
|
70
|
+
- `FlatListBox` _(this component)_ — its own template binds: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`
|
|
70
71
|
- Also mounts `BbIcon`, `ErrorIcon`
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
| pt part | Lands on | In |
|
|
16
16
|
| --- | --- | --- |
|
|
17
17
|
| `pt:itemIcon` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
18
|
+
| `pt:check` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
18
19
|
|
|
19
20
|
**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 `GroupedListBox`'s root:
|
|
20
21
|
|
|
21
22
|
| Variable | Set through | Declared by | What it is |
|
|
22
23
|
| --- | --- | --- | --- |
|
|
23
|
-
| `--w` | `pt:itemIcon` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
24
|
+
| `--w` | `pt:itemIcon`, `pt:check` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
24
25
|
|
|
25
26
|
## Props
|
|
26
27
|
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
| `multiple` | `boolean \| undefined` | `false` | | Allows multiple options to be selected simultaneously. |
|
|
42
43
|
| `open` | `boolean \| undefined` | `false` | | Whether the listbox is open (visible). |
|
|
43
44
|
| `optionHeight` | `number \| undefined` | | | Fixed height (in px) for each option row. Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport. |
|
|
44
|
-
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
|
|
45
|
+
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
|
|
45
46
|
| `transitionDuration` | `number \| undefined` | `250` | | Duration of open/close transition in milliseconds. |
|
|
46
47
|
|
|
47
48
|
## Events
|
|
@@ -68,5 +69,5 @@
|
|
|
68
69
|
- **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 `GroupedListBox`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
69
70
|
- Listed nodes are the ones `GroupedListBox`'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/GroupedListBox.tree.json`.
|
|
70
71
|
|
|
71
|
-
- `GroupedListBox` _(this component)_ — its own template binds: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`
|
|
72
|
+
- `GroupedListBox` _(this component)_ — its own template binds: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`
|
|
72
73
|
- Also mounts `BbIcon`, `ErrorIcon`
|
package/dist/ai/ListBox.md
CHANGED
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
| `pt:itemIcon` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
20
20
|
| `pt:itemText` | `span.bb-listbox__item-text` | `FlatListBox` _(internal)_ |
|
|
21
21
|
| `pt:itemDescription` | `span.bb-listbox__item-description` | `FlatListBox` _(internal)_ |
|
|
22
|
+
| `pt:check` | the root of `BbIcon` | `BbIcon` ([contract](./BbIcon.md)) |
|
|
22
23
|
|
|
23
24
|
**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 `ListBox`'s root:
|
|
24
25
|
|
|
25
26
|
| Variable | Set through | Declared by | What it is |
|
|
26
27
|
| --- | --- | --- | --- |
|
|
27
|
-
| `--w` | `pt:itemIcon` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
28
|
+
| `--w` | `pt:itemIcon`, `pt:check` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
28
29
|
|
|
29
30
|
## Props
|
|
30
31
|
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
| `open` | `boolean \| undefined` | `false` | | Whether the listbox is open (visible). |
|
|
47
48
|
| `optionHeight` | `number \| undefined` | | | Fixed height (in px) for each option row. Defaults to 28px (24px compact; 44px / 36px on mobile viewports). An explicit value wins on every viewport. |
|
|
48
49
|
| `options` | `Option<Item>[] \| undefined` | | | Flat option list. Used when `groups` is not provided. |
|
|
49
|
-
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
|
|
50
|
+
| `passthrough` | `PtBindings<"option" \| "list" \| "itemDescription" \| "itemText" \| "itemIcon" \| "check", "disabled" \| "selected"> \| undefined` | | | Passthrough resolver handed down by the select popover: `list` is the `role="listbox"` node (bound whole); `option` is one option, resolved per node with its own `selected` / `disabled`. Internal. |
|
|
50
51
|
| `transitionDuration` | `number \| undefined` | | | Duration of open/close transition in milliseconds. |
|
|
51
52
|
|
|
52
53
|
## Events
|
|
@@ -74,5 +75,5 @@
|
|
|
74
75
|
- Listed nodes are the ones `ListBox`'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/ListBox.tree.json`.
|
|
75
76
|
|
|
76
77
|
- `ListBox` _(this component)_
|
|
77
|
-
- `FlatListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`; also mounts `BbIcon`, `ErrorIcon`
|
|
78
|
-
- `GroupedListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`; also mounts `BbIcon`, `ErrorIcon`
|
|
78
|
+
- `FlatListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|
|
79
|
+
- `GroupedListBox` _(internal — not importable, reach it through `ListBox`)_ — `ListBox`'s pt parts land here: `list` → `span.bb-listbox__list`, `option` → `span.bb-listbox__option`, `itemIcon` → `BbIcon`, `itemText` → `span.bb-listbox__item-text`, `itemDescription` → `span.bb-listbox__item-description`, `check` → `BbIcon`; also mounts `BbIcon`, `ErrorIcon`
|