bitboss-ui 3.0.0-beta.70 → 3.0.0-beta.72
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 +2 -2
- package/bin/cli.mjs +6 -1
- package/dist/ai/BbAccordion.md +38 -19
- package/dist/ai/BbBadge.md +25 -22
- package/dist/ai/BbBreadcrumbs.md +4 -1
- package/dist/ai/BbButton.md +32 -27
- package/dist/ai/BbCalendar.md +1 -0
- package/dist/ai/BbCarousel.md +6 -4
- package/dist/ai/BbCheckbox.md +5 -6
- package/dist/ai/BbCheckboxGroup.md +27 -27
- package/dist/ai/BbColorInput.md +4 -5
- package/dist/ai/BbConfirm.md +65 -81
- package/dist/ai/BbConfirmPortal.md +2 -2
- package/dist/ai/BbDatePicker.md +1 -6
- package/dist/ai/BbDatePickerInput.md +5 -6
- package/dist/ai/BbDialog.md +230 -164
- package/dist/ai/BbDropdown.md +87 -17
- package/dist/ai/BbDropdownButton.md +15 -15
- package/dist/ai/BbDropzone.md +12 -8
- package/dist/ai/BbForm.md +93 -7
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbIcon.md +1 -1
- package/dist/ai/BbIndicator.md +17 -15
- package/dist/ai/BbNumberInput.md +10 -9
- package/dist/ai/BbOffCanvas.md +29 -7
- package/dist/ai/BbPagination.md +2 -2
- package/dist/ai/BbPopover.md +15 -9
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadio.md +5 -6
- package/dist/ai/BbRadioGroup.md +53 -37
- package/dist/ai/BbRating.md +11 -16
- package/dist/ai/BbSelect.md +25 -5
- package/dist/ai/BbSelectPopover.md +9 -3
- package/dist/ai/BbSlider.md +15 -17
- package/dist/ai/BbSpinner.md +3 -2
- package/dist/ai/BbSwitch.md +9 -9
- package/dist/ai/BbSwitchGroup.md +11 -13
- package/dist/ai/BbTable.md +205 -82
- package/dist/ai/BbTabs.md +29 -4
- package/dist/ai/BbTag.md +4 -5
- package/dist/ai/BbTextInput.md +18 -16
- package/dist/ai/BbTextarea.md +12 -11
- package/dist/ai/BbTimePickerInput.md +4 -5
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTooltip.md +39 -30
- package/dist/ai/BbTree.md +49 -24
- package/dist/ai/CommonField.md +2 -10
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/OptionsContainer.md +5 -13
- package/dist/ai/changelog.json +278 -10
- package/dist/ai/components.json +59 -58
- package/dist/ai/composables/useBbDialog.md +5 -8
- package/dist/ai/composables/useBbForm.md +3 -0
- package/dist/ai/composables/useConfirm.md +65 -56
- package/dist/ai/composables/useToast.md +2 -1
- package/dist/ai/guides/agent-contract.md +3 -3
- package/dist/ai/guides/app-layout.md +3 -2
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/floating-bottom-panel.md +3 -2
- package/dist/ai/guides/icons-policy.md +7 -5
- package/dist/ai/guides/inertia-helpers.md +35 -30
- package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
- package/dist/ai/guides/migration/adoption-checklist.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +12 -1
- package/dist/ai/guides/migration/components/bb-button.md +24 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
- package/dist/ai/guides/migration/components/bb-toast.md +11 -0
- package/dist/ai/guides/migration/components/use-confirm.md +69 -26
- package/dist/ai/guides/migration/v2-to-v3.md +78 -12
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
- package/dist/ai/guides/options-items-playbook.md +4 -3
- package/dist/ai/guides/passthrough.md +2 -2
- package/dist/ai/guides/preset-components.md +35 -10
- package/dist/ai/helpers/definePreset.json +8 -1
- package/dist/ai/helpers/definePreset.ts +35 -10
- package/dist/ai/helpers/inertia/manifest.json +28 -15
- package/dist/ai/helpers/inertia/messages.ts +3 -3
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
- package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
- package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +5 -5
- package/dist/ai/manifest/components/BbAccordion.json +8 -5
- package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
- package/dist/ai/manifest/components/BbBadge.json +8 -7
- package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
- package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
- package/dist/ai/manifest/components/BbBreadcrumbs.json +2 -2
- package/dist/ai/manifest/components/BbButton.json +5 -6
- package/dist/ai/manifest/components/BbButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbButton.tree.json +24 -7
- package/dist/ai/manifest/components/BbCalendar.json +2 -1
- package/dist/ai/manifest/components/BbCheckbox.json +2 -2
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +9 -19
- package/dist/ai/manifest/components/BbColorInput.json +3 -3
- package/dist/ai/manifest/components/BbColorInput.tree.json +2 -2
- package/dist/ai/manifest/components/BbConfirm.json +2 -2
- package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
- package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
- package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
- package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +2 -2
- package/dist/ai/manifest/components/BbDialog.json +6 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
- package/dist/ai/manifest/components/BbDropdown.json +10 -9
- package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
- package/dist/ai/manifest/components/BbDropdownButton.json +9 -10
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbForm.json +3 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -18
- package/dist/ai/manifest/components/BbRating.json +2 -2
- package/dist/ai/manifest/components/BbRating.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelect.json +2 -1
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitch.json +4 -4
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
- package/dist/ai/manifest/components/BbTable.json +15 -14
- package/dist/ai/manifest/components/BbTable.tree.json +2 -0
- package/dist/ai/manifest/components/BbTabs.json +3 -3
- package/dist/ai/manifest/components/BbTabsList.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
- package/dist/ai/manifest/components/BbTag.json +1 -1
- package/dist/ai/manifest/components/BbTag.tree.json +2 -2
- package/dist/ai/manifest/components/BbTextInput.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +2 -2
- package/dist/ai/manifest/components/BbTextarea.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +2 -2
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +2 -2
- package/dist/ai/manifest/components/BbToast.removed.json +2 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
- package/dist/ai/manifest/components/BbTree.json +2 -2
- package/dist/ai/manifest/components/CommonField.tree.json +5 -10
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
- package/dist/ai/manifest/components/OptionsContainer.tree.json +5 -13
- package/dist/ai/manifest/index.json +4 -4
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +9 -9
- package/dist/ai/manifest/types.api.json +7 -6
- package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
- package/dist/ai/recipes/inertia/onboarding.md +23 -12
- package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
- package/dist/ai/recipes/inertia/record-form.md +12 -8
- package/dist/ai/recipes/inertia/records-workspace.md +14 -7
- package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
- package/dist/ai/recipes/inertia/upload-center.md +17 -9
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
- package/dist/ai/recipes/nuxt/onboarding.md +5 -4
- package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
- package/dist/ai/recipes/nuxt/record-form.md +14 -10
- package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
- package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
- package/dist/ai/recipes/nuxt/upload-center.md +17 -9
- package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
- package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
- package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
- package/dist/ai/recipes/vue/onboarding.md +5 -4
- package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
- package/dist/ai/recipes/vue/record-form.md +14 -10
- package/dist/ai/recipes/vue/records-workspace.md +14 -7
- package/dist/ai/recipes/vue/settings-workspace.md +70 -60
- package/dist/ai/recipes/vue/upload-center.md +17 -9
- package/dist/ai/recipes/vue/wizard-form.md +4 -4
- package/dist/ai/source/BbAccordion.md +50 -16
- package/dist/ai/source/BbBadge.md +420 -26
- package/dist/ai/source/BbBadgeButton.md +378 -12
- package/dist/ai/source/BbBreadcrumbs.md +31 -12
- package/dist/ai/source/BbButton.md +205 -55
- package/dist/ai/source/BbCalendar.md +5 -0
- package/dist/ai/source/BbCheckbox.md +36 -42
- package/dist/ai/source/BbCheckboxGroup.md +40 -17
- package/dist/ai/source/BbColorInput.md +2 -4
- package/dist/ai/source/BbConfigScope.md +19 -2
- package/dist/ai/source/BbConfirm.md +74 -80
- package/dist/ai/source/BbConfirmPortal.md +6 -6
- package/dist/ai/source/BbDatePicker.md +9 -2
- package/dist/ai/source/BbDatePickerInput.md +5 -5
- package/dist/ai/source/BbDialog.md +53 -2
- package/dist/ai/source/BbDropdown.md +360 -99
- package/dist/ai/source/BbDropdownButton.md +24 -13
- package/dist/ai/source/BbDropdownGroup.md +145 -60
- package/dist/ai/source/BbForm.md +144 -10
- package/dist/ai/source/BbNumberInput.md +2 -4
- package/dist/ai/source/BbOffCanvas.md +53 -2
- package/dist/ai/source/BbPagination.md +1 -1
- package/dist/ai/source/BbRadio.md +36 -42
- package/dist/ai/source/BbRadioGroup.md +74 -14
- package/dist/ai/source/BbRating.md +32 -36
- package/dist/ai/source/BbSelect.md +40 -13
- package/dist/ai/source/BbSelectPopover.md +105 -34
- package/dist/ai/source/BbSlider.md +2 -4
- package/dist/ai/source/BbSwitch.md +57 -46
- package/dist/ai/source/BbSwitchGroup.md +67 -21
- package/dist/ai/source/BbTable.md +363 -49
- package/dist/ai/source/BbTabs.md +6 -0
- package/dist/ai/source/BbTabsList.md +10 -0
- package/dist/ai/source/BbTabsPanels.md +6 -0
- package/dist/ai/source/BbTabsRoot.md +6 -0
- package/dist/ai/source/BbTag.md +2 -4
- package/dist/ai/source/BbTextInput.md +2 -4
- package/dist/ai/source/BbTextarea.md +2 -4
- package/dist/ai/source/BbTimePickerInput.md +2 -4
- package/dist/ai/source/BbTooltip.md +9 -3
- package/dist/ai/source/BbTree.md +14 -4
- package/dist/ai/source/CommonField.md +17 -106
- package/dist/ai/source/CommonFieldInput.md +2 -1
- package/dist/ai/source/GuidesComponent.md +3 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbAccordion/types.d.ts +21 -7
- package/dist/components/BbAccordion/types.js +1 -1
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
- package/dist/components/BbBadge/types.d.ts +15 -12
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
- package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
- package/dist/components/BbButton/types.d.ts +7 -6
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbCalendar/types.d.ts +5 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
- package/dist/components/BbCalendar/useDayGrid.js +1 -1
- package/dist/components/BbCheckbox/types.d.ts +2 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbCheckboxGroup/types.d.ts +4 -6
- package/dist/components/BbColorInput/types.d.ts +2 -4
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
- package/dist/components/BbConfirm/types.d.ts +5 -5
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbDatePicker/types.d.ts +5 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/BbDatePickerInput/types.d.ts +4 -5
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
- package/dist/components/BbDialog/overlayActions.js +94 -0
- package/dist/components/BbDialog/types.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +384 -332
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
- package/dist/components/BbDropdown/dropdownHandle.js +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +58 -44
- package/dist/components/BbDropdown/types.d.ts +116 -50
- package/dist/components/BbDropdown/types.js +2 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +105 -104
- package/dist/components/BbDropdownButton/types.d.ts +2 -4
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +240 -198
- package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
- package/dist/components/BbForm/recognizeValidation.js +55 -0
- package/dist/components/BbForm/validationError.d.ts +10 -0
- package/dist/components/BbForm/validationError.js +11 -0
- package/dist/components/BbNumberInput/types.d.ts +2 -4
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
- package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
- package/dist/components/BbOffCanvas/types.d.ts +24 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbRadio/types.d.ts +2 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
- package/dist/components/BbRadioGroup/types.d.ts +11 -7
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +126 -119
- package/dist/components/BbRating/types.d.ts +5 -6
- package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -10
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/BbSelect/types.d.ts +12 -6
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
- package/dist/components/BbSelectPopover/types.d.ts +10 -2
- package/dist/components/BbSlider/types.d.ts +2 -4
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
- package/dist/components/BbSwitchGroup/types.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
- package/dist/components/BbTable/BbTableDataRow.js +2 -1
- package/dist/components/BbTable/BbTableRowMenu.js +36 -0
- package/dist/components/BbTable/types.d.ts +33 -18
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbTabs/types.d.ts +6 -0
- package/dist/components/BbTag/types.d.ts +2 -4
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextInput/types.d.ts +2 -4
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTextarea/types.d.ts +2 -4
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbTimePickerInput/types.d.ts +2 -4
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
- package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
- package/dist/components/BbTooltip/types.d.ts +3 -1
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/components/BbTree/types.d.ts +8 -2
- package/dist/components/CommonField/types.d.ts +2 -4
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/composables/formSubmitLock.js +15 -8
- package/dist/composables/overlayRegistry.d.ts +5 -0
- package/dist/composables/overlayRegistry.js +154 -148
- package/dist/composables/useBbDropdown.d.ts +8 -0
- package/dist/composables/useBbDropdown.js +3 -1
- package/dist/composables/useBbTabs.js +138 -138
- package/dist/composables/useChoiceIndicator.js +67 -64
- package/dist/composables/useConfirm.d.ts +63 -52
- package/dist/composables/useConfirm.js +22 -18
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +7 -7
- package/dist/directives/bbDropdown.js +22 -15
- package/dist/directives/bbTooltip.d.ts +3 -3
- package/dist/directives/createPopoverDirective.js +57 -35
- package/dist/i18n/locales/ar.json +5 -1
- package/dist/i18n/locales/cs.json +5 -1
- package/dist/i18n/locales/da.json +5 -1
- package/dist/i18n/locales/de-CH.json +5 -1
- package/dist/i18n/locales/de.json +5 -1
- package/dist/i18n/locales/el.json +5 -1
- package/dist/i18n/locales/en-GB.json +5 -1
- package/dist/i18n/locales/en.json +5 -1
- package/dist/i18n/locales/es-MX.json +5 -1
- package/dist/i18n/locales/es.json +5 -1
- package/dist/i18n/locales/fa.json +5 -1
- package/dist/i18n/locales/fi.json +5 -1
- package/dist/i18n/locales/fr.json +5 -1
- package/dist/i18n/locales/he.json +5 -1
- package/dist/i18n/locales/hu.json +5 -1
- package/dist/i18n/locales/it.json +5 -1
- package/dist/i18n/locales/ja.json +5 -1
- package/dist/i18n/locales/ko.json +5 -1
- package/dist/i18n/locales/nb.json +5 -1
- package/dist/i18n/locales/nl.json +5 -1
- package/dist/i18n/locales/pl.json +5 -1
- package/dist/i18n/locales/pt-BR.json +5 -1
- package/dist/i18n/locales/pt-PT.json +5 -1
- package/dist/i18n/locales/ro.json +5 -1
- package/dist/i18n/locales/ru.json +5 -1
- package/dist/i18n/locales/sv.json +5 -1
- package/dist/i18n/locales/tr.json +5 -1
- package/dist/i18n/locales/uk.json +5 -1
- package/dist/i18n/locales/zh-CN.json +5 -1
- package/dist/i18n/locales/zh-HK.json +5 -1
- package/dist/i18n/locales/zh-TW.json +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -3
- package/dist/llms-full.txt +2216 -1332
- package/dist/llms-medium.txt +21 -18
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +5 -1
- package/dist/plugin.js +17 -40
- package/dist/pluginCore.js +30 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +26 -5
- package/dist/types/ActionButton.js +11 -0
- package/dist/types/ConfigDefaults.d.ts +34 -3
- package/dist/types/ConfigDefaults.js +14 -8
- package/dist/types/FieldLayout.d.ts +4 -1
- package/dist/types/ItemAccessor.d.ts +3 -1
- package/dist/types/ItemPath.d.ts +62 -0
- package/dist/types/ptComponentMap.d.ts +1 -1
- package/dist/utilities/functions/clickCount.js +14 -0
- package/dist/utils/versionCheck.js +1 -1
- package/llms.txt +2 -2
- package/package.json +16 -4
- package/scripts/README.md +35 -29
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/define-preset-copy.mjs +1 -1
- package/scripts/lib/eslint-disable.mjs +5 -3
- package/scripts/lib/eslint-plugin.d.ts +2 -0
- package/scripts/lib/eslint-plugin.mjs +213 -1
- package/scripts/lib/redundant-item-accessor.mjs +4 -1
- package/scripts/lib/release-results.mjs +32 -1
- package/scripts/lib/renamed-item-field.mjs +4 -1
- package/scripts/lib/setup.mjs +8 -0
- package/scripts/lib/tab-links.mjs +4 -1
- package/scripts/lib/toolchain-check.mjs +125 -7
- package/scripts/lib/tree-default-expandable.mjs +53 -0
- package/scripts/lib/validate-bb-markup.mjs +537 -53
package/dist/ai/BbTabs.md
CHANGED
|
@@ -187,6 +187,29 @@ const stages: BbTabsItem[] = [
|
|
|
187
187
|
</script>
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
+
#### Tabs a user may not see: `hidden`
|
|
191
|
+
|
|
192
|
+
Gate tabs by permission or record state with one `hidden` expression per tab,
|
|
193
|
+
instead of building `items` with `push` or conditional spreads. A hidden tab
|
|
194
|
+
has no trigger and no panel (`eager` included), and neither the arrow keys nor
|
|
195
|
+
a `?tab=` URL reach it. The selection is never moved for you: a `v-model` (or
|
|
196
|
+
a `useBbTabs` `select`) naming a hidden tab keeps it, and the strip then shows
|
|
197
|
+
no active tab and no panel until the model changes or the tab shows again. In
|
|
198
|
+
link mode a hidden current page marks no link current. With no `v-model`, the
|
|
199
|
+
first enabled tab shown is selected.
|
|
200
|
+
|
|
201
|
+
```ts
|
|
202
|
+
import type { BbTabsItem } from 'bitboss-ui';
|
|
203
|
+
|
|
204
|
+
declare const can: (privilege: string) => boolean;
|
|
205
|
+
|
|
206
|
+
const items: BbTabsItem[] = [
|
|
207
|
+
{ value: 'profile', label: 'Profile' },
|
|
208
|
+
{ value: 'billing', label: 'Billing', hidden: !can('billing') },
|
|
209
|
+
{ value: 'audit', label: 'Audit log', hidden: !can('audit') },
|
|
210
|
+
];
|
|
211
|
+
```
|
|
212
|
+
|
|
190
213
|
### Rich labels and badges
|
|
191
214
|
|
|
192
215
|
Replace a tab's plain text with the `<value>:label` slot (one specific tab) or
|
|
@@ -1087,22 +1110,24 @@ so they dim at the ends.
|
|
|
1087
1110
|
<BbTabs v-model="active" block compact :items="releases">
|
|
1088
1111
|
<template #wrapper:prepend="{ canScrollStart, scroll }">
|
|
1089
1112
|
<BbButton
|
|
1090
|
-
aria-label="Scroll tabs back"
|
|
1091
1113
|
class="me-1 shrink-0 rtl:-scale-x-100"
|
|
1092
1114
|
:disabled="!canScrollStart"
|
|
1093
|
-
icon
|
|
1115
|
+
icon-only
|
|
1116
|
+
prepend:icon="lucide:chevron-left"
|
|
1094
1117
|
size="sm"
|
|
1118
|
+
text="Scroll tabs back"
|
|
1095
1119
|
variant="ghost"
|
|
1096
1120
|
@click="scroll('start')"
|
|
1097
1121
|
/>
|
|
1098
1122
|
</template>
|
|
1099
1123
|
<template #wrapper:append="{ canScrollEnd, scroll }">
|
|
1100
1124
|
<BbButton
|
|
1101
|
-
aria-label="Scroll tabs forward"
|
|
1102
1125
|
class="ms-1 shrink-0 rtl:-scale-x-100"
|
|
1103
1126
|
:disabled="!canScrollEnd"
|
|
1104
|
-
icon
|
|
1127
|
+
icon-only
|
|
1128
|
+
prepend:icon="lucide:chevron-right"
|
|
1105
1129
|
size="sm"
|
|
1130
|
+
text="Scroll tabs forward"
|
|
1106
1131
|
variant="ghost"
|
|
1107
1132
|
@click="scroll('end')"
|
|
1108
1133
|
/>
|
package/dist/ai/BbTag.md
CHANGED
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
|
|
34
34
|
| Variable | Set through | Declared by | What it is |
|
|
35
35
|
| --- | --- | --- | --- |
|
|
36
|
-
| `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
|
|
37
36
|
| `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
|
|
38
37
|
| `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
|
|
39
38
|
| `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
|
|
@@ -511,9 +510,9 @@ only sets the label's text alignment.
|
|
|
511
510
|
| `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
|
|
512
511
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
513
512
|
| `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
|
|
514
|
-
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted,
|
|
513
|
+
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
|
|
515
514
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
516
|
-
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted,
|
|
515
|
+
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
517
516
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Where the label sits relative to the field: `outside` above it, `inside` within the control, or `floating` (starts inside, lifts on focus/value). Defaults to `all.labelMode`, like the other inputs. |
|
|
518
517
|
| `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
|
|
519
518
|
| `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' }`). |
|
|
@@ -620,8 +619,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
620
619
|
- Listed nodes are the ones `BbTag`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbTag.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
621
620
|
|
|
622
621
|
- `BbTag` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-tag__input`, `input` → `input.bb-tag__input`
|
|
623
|
-
- `CommonField` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`;
|
|
624
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `
|
|
622
|
+
- `CommonField` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
|
|
623
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
|
|
625
624
|
- `ChipsBox` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `badge` → `BbBadge`
|
|
626
625
|
- `BbBadge` _(public — [contract](./BbBadge.md))_ — its own pt parts (`BbBadge`): `spinner` → `BbSpinner`, `icon` → `span.bb-badge__append-icon`, `icon` → `BbIcon`, `clear` → `button.bb-badge__clear`; documented CSS variables: `--bg`, `--fg`, `--bw`, `--ring-color`, `--ring-size`, `--min-size-md`, `--min-size`, `--elev`, `--r`, `--fs`, `--icon-size`, `--gap`, `--px`, `--clear-size`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--pad-left`; also mounts `BbIcon`, `BbSpinner`, `BadgeBodyContent`
|
|
627
626
|
- `CommaBox` _(internal — not importable, reach it through `BbTag`)_ — `BbTag`'s pt parts land here: `comma` → `span.bb-tag__comma`
|
package/dist/ai/BbTextInput.md
CHANGED
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
|
|
32
32
|
| Variable | Set through | Declared by | What it is |
|
|
33
33
|
| --- | --- | --- | --- |
|
|
34
|
-
| `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
|
|
35
34
|
| `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
|
|
36
35
|
| `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
|
|
37
36
|
| `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
|
|
@@ -389,8 +388,9 @@ The full slot ring, inside → out:
|
|
|
389
388
|
>
|
|
390
389
|
<template #append:outer>
|
|
391
390
|
<BbButton
|
|
392
|
-
|
|
393
|
-
icon="lucide:copy"
|
|
391
|
+
icon-only
|
|
392
|
+
prepend:icon="lucide:copy"
|
|
393
|
+
text="Copy API key"
|
|
394
394
|
variant="ghost"
|
|
395
395
|
/>
|
|
396
396
|
</template>
|
|
@@ -598,9 +598,10 @@ in the `#append` slot to flip it:
|
|
|
598
598
|
>
|
|
599
599
|
<template #append>
|
|
600
600
|
<BbButton
|
|
601
|
-
|
|
602
|
-
:icon="revealed ? 'lucide:eye-off' : 'lucide:eye'"
|
|
601
|
+
icon-only
|
|
602
|
+
:prepend:icon="revealed ? 'lucide:eye-off' : 'lucide:eye'"
|
|
603
603
|
size="sm"
|
|
604
|
+
:text="revealed ? 'Hide password' : 'Show password'"
|
|
604
605
|
variant="ghost"
|
|
605
606
|
@click="revealed = !revealed"
|
|
606
607
|
/>
|
|
@@ -674,13 +675,14 @@ and three digits), and the chrome plus two characters for `BbSelect`
|
|
|
674
675
|
70px postal code is 70px). Size the field for the layout you want; set
|
|
675
676
|
`--min-w` on it to change the floor (`--min-w: 0px` removes it).
|
|
676
677
|
|
|
677
|
-
Side by side, the label
|
|
678
|
-
the field stays at the top of the row
|
|
679
|
-
label that wraps, never pulls the field down to the middle of the label
|
|
680
|
-
column. Every form control follows the same rule
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
678
|
+
Side by side, the label aligns to the **top**: its top meets the field's top,
|
|
679
|
+
and the field stays at the top of the row — a description under the label, or
|
|
680
|
+
a label that wraps, never pulls the field down to the middle of the label
|
|
681
|
+
column. Every form control follows the same column rule, so a column of
|
|
682
|
+
mixed fields lines up; inside its own column, a toggle's glyph (and a group
|
|
683
|
+
row's) still centres on its label's first line. `label-align="center"`
|
|
684
|
+
centres the label on a taller field instead. No `pt:label` padding is
|
|
685
|
+
needed for any of it.
|
|
684
686
|
|
|
685
687
|
**Horizontal row via layout (outside label)**
|
|
686
688
|
|
|
@@ -1307,10 +1309,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1307
1309
|
| `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
|
|
1308
1310
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
1309
1311
|
| `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
|
|
1310
|
-
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted,
|
|
1312
|
+
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
|
|
1311
1313
|
| `inputMode` | `"text" \| "search" \| "none" \| "tel" \| "url" \| "email" \| "numeric" \| "decimal" \| undefined` | | | The inputmode of the input. |
|
|
1312
1314
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
1313
|
-
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted,
|
|
1315
|
+
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
1314
1316
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
1315
1317
|
| `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
|
|
1316
1318
|
| `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' }`). |
|
|
@@ -1414,8 +1416,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1414
1416
|
- Listed nodes are the ones `BbTextInput`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbTextInput.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
1415
1417
|
|
|
1416
1418
|
- `BbTextInput` _(this component)_ — its own template binds: `input` → `input.bb-text-input__input`, `controlAttrs` → `input.bb-text-input__input`
|
|
1417
|
-
- `CommonField` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`;
|
|
1418
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `
|
|
1419
|
+
- `CommonField` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
|
|
1420
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbTextInput`)_ — `BbTextInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
|
|
1419
1421
|
|
|
1420
1422
|
## See Also
|
|
1421
1423
|
|
package/dist/ai/BbTextarea.md
CHANGED
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
|
|
32
32
|
| Variable | Set through | Declared by | What it is |
|
|
33
33
|
| --- | --- | --- | --- |
|
|
34
|
-
| `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
|
|
35
34
|
| `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
|
|
36
35
|
| `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
|
|
37
36
|
| `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
|
|
@@ -592,8 +591,9 @@ The full slot ring, inside → out:
|
|
|
592
591
|
>
|
|
593
592
|
<template #append:outer>
|
|
594
593
|
<BbButton
|
|
595
|
-
|
|
596
|
-
icon="lucide:copy"
|
|
594
|
+
icon-only
|
|
595
|
+
prepend:icon="lucide:copy"
|
|
596
|
+
text="Copy install snippet"
|
|
597
597
|
variant="ghost"
|
|
598
598
|
/>
|
|
599
599
|
</template>
|
|
@@ -777,9 +777,10 @@ const changelog = ref<string | null>(
|
|
|
777
777
|
```
|
|
778
778
|
|
|
779
779
|
- `label-align` / `input-align` (`top | center | bottom`) set where each
|
|
780
|
-
column sits vertically in a side-by-side row. Omitted,
|
|
781
|
-
|
|
782
|
-
the tall column, so `label-align="center"` puts the label,
|
|
780
|
+
column sits vertically in a side-by-side row. Omitted, both sit at the
|
|
781
|
+
top: the label's top meets the textarea's top. With a fixed `rows` the
|
|
782
|
+
textarea is the tall column, so `label-align="center"` puts the label,
|
|
783
|
+
description
|
|
783
784
|
included, on its middle; `input-align` would not move it. Not
|
|
784
785
|
`label-position`, which aligns the label text horizontally.
|
|
785
786
|
|
|
@@ -790,7 +791,7 @@ const changelog = ref<string | null>(
|
|
|
790
791
|
<div class="grid max-w-md gap-3 rounded-(--bb-radius) border p-4">
|
|
791
792
|
<!-- A fixed `rows` makes the textarea the tall column: `label-align`
|
|
792
793
|
moves the short one, so the label (and its description) sits on the
|
|
793
|
-
textarea's middle instead of its
|
|
794
|
+
textarea's middle instead of its top. -->
|
|
794
795
|
<BbTextarea
|
|
795
796
|
v-model="notes"
|
|
796
797
|
description="Visible to your team only."
|
|
@@ -1044,9 +1045,9 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1044
1045
|
| `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
|
|
1045
1046
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
1046
1047
|
| `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
|
|
1047
|
-
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted,
|
|
1048
|
+
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
|
|
1048
1049
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
1049
|
-
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted,
|
|
1050
|
+
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
1050
1051
|
| `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. |
|
|
1051
1052
|
| `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
|
|
1052
1053
|
| `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' }`). |
|
|
@@ -1152,8 +1153,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1152
1153
|
- Listed nodes are the ones `BbTextarea`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, undocumented locals included, is `manifest/components/BbTextarea.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
1153
1154
|
|
|
1154
1155
|
- `BbTextarea` _(this component)_ — its own template binds: `controlAttrs` → `textarea.bb-textarea__input`, `input` → `textarea.bb-textarea__input`
|
|
1155
|
-
- `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`;
|
|
1156
|
-
- `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 `
|
|
1156
|
+
- `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`; also mounts `BbAsterisk`
|
|
1157
|
+
- `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 `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
|
|
1157
1158
|
- Also mounts `BbSmoothHeight`
|
|
1158
1159
|
|
|
1159
1160
|
## See Also
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
|
|
37
37
|
| Variable | Set through | Declared by | What it is |
|
|
38
38
|
| --- | --- | --- | --- |
|
|
39
|
-
| `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
|
|
40
39
|
| `--bg` | `pt:box` | `CommonFieldInput` | the shell's fill |
|
|
41
40
|
| `--bg-hover` | `pt:box` | `CommonFieldInput` | fill under the pointer |
|
|
42
41
|
| `--bg-focus` | `pt:box` | `CommonFieldInput` | fill while focus is inside, and under --active |
|
|
@@ -319,9 +318,9 @@ Messages _also_ render in an `aria-live="polite"` region.
|
|
|
319
318
|
| `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. Pair it with a `placeholder`: an empty field otherwise shows nothing saying what it is for. |
|
|
320
319
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
321
320
|
| `id` | `string \| undefined` | | | The `id` of the native control; the label's `for` and the description and message ids derive from it. Generated when omitted. |
|
|
322
|
-
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted,
|
|
321
|
+
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
|
|
323
322
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
324
|
-
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted,
|
|
323
|
+
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
325
324
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
326
325
|
| `labelPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Text alignment of the label. `'start'` / `'end'` follow the page direction (the inline start is the left in a left-to-right page, the right in a right-to-left one); `'left'` / `'right'` stay physical; `'center'` centres it. The default, `'start'`, follows the page direction. |
|
|
327
326
|
| `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' }`). |
|
|
@@ -432,8 +431,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
432
431
|
- `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)
|
|
433
432
|
- `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`
|
|
434
433
|
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
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`;
|
|
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 `
|
|
434
|
+
- `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`; 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`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
|
|
437
436
|
- `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`
|
|
438
437
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
439
438
|
- Also mounts `BbIcon`, `CommonPopover`
|
package/dist/ai/BbToast.md
CHANGED
|
@@ -396,7 +396,8 @@ toast expires, the delete simply stands.
|
|
|
396
396
|
>
|
|
397
397
|
<span class="truncate text-sm">{{ reply.title }}</span>
|
|
398
398
|
<BbButton
|
|
399
|
-
icon
|
|
399
|
+
icon-only
|
|
400
|
+
prepend:icon="lucide:trash-2"
|
|
400
401
|
size="xs"
|
|
401
402
|
variant="ghost"
|
|
402
403
|
@click="removeReply(reply)"
|
|
@@ -839,7 +840,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
839
840
|
- `BbToast` _(this component)_
|
|
840
841
|
- `BbToastRegion` _(internal — not importable, reach it through `BbToast`)_ — `BbToast`'s pt parts land here: `root` → `ol.bb-toast`
|
|
841
842
|
- `BbToastMessage` _(internal — not importable, reach it through `BbToast`)_ — also mounts `BbIcon`, `BbSpinner`
|
|
842
|
-
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-
|
|
843
|
+
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__prepend-icon`, `icon` → `BbIcon`, `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 `BbSpinner`, `BbIcon`
|
|
843
844
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
844
845
|
|
|
845
846
|
## See Also
|
package/dist/ai/BbTooltip.md
CHANGED
|
@@ -57,8 +57,8 @@ label in a real SFC, use `v-bb-tooltip`, as the toolbar companion below does.
|
|
|
57
57
|
<template #activator="{ props }">
|
|
58
58
|
<BbButton
|
|
59
59
|
v-bind="props"
|
|
60
|
-
|
|
61
|
-
icon="lucide:download"
|
|
60
|
+
text="Download CSV"
|
|
61
|
+
icon-only prepend:icon="lucide:download"
|
|
62
62
|
size="sm"
|
|
63
63
|
variant="outline"
|
|
64
64
|
/>
|
|
@@ -129,14 +129,14 @@ through; the class is still emitted.
|
|
|
129
129
|
<div class="flex gap-1.5">
|
|
130
130
|
<BbTooltip text="Duplicate this record">
|
|
131
131
|
<template #activator="{ props }">
|
|
132
|
-
<BbButton v-bind="props" icon="lucide:copy" size="sm" variant="ghost">
|
|
132
|
+
<BbButton v-bind="props" icon-only prepend:icon="lucide:copy" size="sm" variant="ghost">
|
|
133
133
|
Duplicate
|
|
134
134
|
</BbButton>
|
|
135
135
|
</template>
|
|
136
136
|
</BbTooltip>
|
|
137
137
|
<BbTooltip text="This permanently deletes the record" variant="destructive">
|
|
138
138
|
<template #activator="{ props }">
|
|
139
|
-
<BbButton v-bind="props" icon="lucide:trash-2" size="sm" variant="ghost">
|
|
139
|
+
<BbButton v-bind="props" icon-only prepend:icon="lucide:trash-2" size="sm" variant="ghost">
|
|
140
140
|
Delete
|
|
141
141
|
</BbButton>
|
|
142
142
|
</template>
|
|
@@ -187,9 +187,10 @@ hint shows, its neighbours open at once (the skip delay, below).
|
|
|
187
187
|
></span>
|
|
188
188
|
<BbButton
|
|
189
189
|
v-bb-tooltip="{ text: action.label, delay: 400 }"
|
|
190
|
-
|
|
191
|
-
:icon="action.icon"
|
|
190
|
+
icon-only
|
|
191
|
+
:prepend:icon="action.icon"
|
|
192
192
|
size="xs"
|
|
193
|
+
:text="action.label"
|
|
193
194
|
variant="ghost"
|
|
194
195
|
/>
|
|
195
196
|
</template>
|
|
@@ -231,8 +232,8 @@ works on any variant.
|
|
|
231
232
|
<template #activator="{ props }">
|
|
232
233
|
<BbButton
|
|
233
234
|
v-bind="props"
|
|
234
|
-
|
|
235
|
-
icon="lucide:search"
|
|
235
|
+
text="Search"
|
|
236
|
+
icon-only prepend:icon="lucide:search"
|
|
236
237
|
size="sm"
|
|
237
238
|
variant="ghost"
|
|
238
239
|
/>
|
|
@@ -246,8 +247,8 @@ works on any variant.
|
|
|
246
247
|
<template #activator="{ props }">
|
|
247
248
|
<BbButton
|
|
248
249
|
v-bind="props"
|
|
249
|
-
|
|
250
|
-
icon="lucide:panel-left"
|
|
250
|
+
text="Toggle sidebar"
|
|
251
|
+
icon-only prepend:icon="lucide:panel-left"
|
|
251
252
|
size="sm"
|
|
252
253
|
variant="ghost"
|
|
253
254
|
/>
|
|
@@ -355,7 +356,8 @@ The value grammar has three forms, plus a directive argument for placement:
|
|
|
355
356
|
<!-- string (or number) shorthand: the value is the tooltip text -->
|
|
356
357
|
<BbButton
|
|
357
358
|
variant="ghost"
|
|
358
|
-
icon
|
|
359
|
+
icon-only
|
|
360
|
+
prepend:icon="lucide:info"
|
|
359
361
|
v-bb-tooltip="'Prices include VAT'"
|
|
360
362
|
>
|
|
361
363
|
About prices
|
|
@@ -364,8 +366,9 @@ The value grammar has three forms, plus a directive argument for placement:
|
|
|
364
366
|
<!-- the directive argument sets placement -->
|
|
365
367
|
<BbButton
|
|
366
368
|
v-bb-tooltip:bottom="'Saved automatically'"
|
|
367
|
-
|
|
368
|
-
icon
|
|
369
|
+
text="Saved"
|
|
370
|
+
icon-only
|
|
371
|
+
prepend:icon="lucide:check"
|
|
369
372
|
/>
|
|
370
373
|
|
|
371
374
|
<!-- object form: a required `text` plus any BbTooltip prop
|
|
@@ -378,7 +381,8 @@ The value grammar has three forms, plus a directive argument for placement:
|
|
|
378
381
|
variant: 'destructive',
|
|
379
382
|
}"
|
|
380
383
|
variant="ghost"
|
|
381
|
-
icon
|
|
384
|
+
icon-only
|
|
385
|
+
prepend:icon="lucide:trash-2"
|
|
382
386
|
>
|
|
383
387
|
Delete draft
|
|
384
388
|
</BbButton>
|
|
@@ -394,7 +398,7 @@ everyone can. On a non-interactive element (a bare `BbIcon`, a `<span>`, an
|
|
|
394
398
|
it, so use that only when the tip repeats text already on the page (the
|
|
395
399
|
truncated cell above). An info icon is an icon-only ghost `BbButton`, its slot
|
|
396
400
|
text the name and the tip the description:
|
|
397
|
-
`<BbButton variant="ghost" icon="lucide:info" v-bb-tooltip="'Prices include VAT'">About prices</BbButton>`.
|
|
401
|
+
`<BbButton variant="ghost" icon-only prepend:icon="lucide:info" v-bb-tooltip="'Prices include VAT'">About prices</BbButton>`.
|
|
398
402
|
Text that must be readable on touch belongs in a `BbPopover` toggletip
|
|
399
403
|
(see the BbPopover guide, "Inline field help"). Never add a `tabindex` to an
|
|
400
404
|
icon to make it reachable: a focusable icon is a tab stop with no role, and it
|
|
@@ -496,15 +500,17 @@ const files: SharedFile[] = [
|
|
|
496
500
|
|
|
497
501
|
`pt` reaches a named part of the tooltip with a class list — or, in the
|
|
498
502
|
object form, a style and attributes — optionally only while a state is on.
|
|
499
|
-
Parts: `root` (the floating element, arrow included) and `panel` (the
|
|
500
|
-
bubble). State: `open`. A `class`,
|
|
501
|
-
itself lands on `root` too.
|
|
503
|
+
Parts: `root` (the floating element, arrow included) and `panel` (the text
|
|
504
|
+
box inside the bubble, for spacing and type). State: `open`. A `class`,
|
|
505
|
+
`style` or attribute on `<BbTooltip>` itself lands on `root` too.
|
|
502
506
|
|
|
503
|
-
The document-toolbar hints, restyled through those parts:
|
|
504
|
-
|
|
505
|
-
while `pt:root:open`.
|
|
507
|
+
The document-toolbar hints, restyled through those parts: `pt:root` sets the
|
|
508
|
+
paint tokens (`--bg`, `--border-color`, `--fg`), so the bubble and its arrow
|
|
509
|
+
turn muted with a border together, plus a drop shadow while `pt:root:open`. A
|
|
510
|
+
background on `pt:panel` would paint only the text box, inside the primary
|
|
511
|
+
bubble. Hover a glyph; delay 400 matches dense toolbars.
|
|
506
512
|
|
|
507
|
-
**pt:
|
|
513
|
+
**pt:root — toolbar hints, a muted bubble**
|
|
508
514
|
|
|
509
515
|
```vue
|
|
510
516
|
<template>
|
|
@@ -534,16 +540,17 @@ while `pt:root:open`. Hover a glyph; delay 400 matches dense toolbars.
|
|
|
534
540
|
></span>
|
|
535
541
|
<BbTooltip
|
|
536
542
|
:delay="400"
|
|
537
|
-
pt:
|
|
543
|
+
pt:root="[--bg:var(--bb-muted)] [--border-color:var(--bb-border)] [--fg:var(--bb-text)]"
|
|
538
544
|
pt:root:open="drop-shadow-md"
|
|
539
545
|
:text="action.label"
|
|
540
546
|
>
|
|
541
547
|
<template #activator="{ props }">
|
|
542
548
|
<BbButton
|
|
543
549
|
v-bind="props"
|
|
544
|
-
|
|
545
|
-
:icon="action.icon"
|
|
550
|
+
icon-only
|
|
551
|
+
:prepend:icon="action.icon"
|
|
546
552
|
size="xs"
|
|
553
|
+
:text="action.label"
|
|
547
554
|
variant="ghost"
|
|
548
555
|
/>
|
|
549
556
|
</template>
|
|
@@ -563,8 +570,10 @@ type ToolbarAction = {
|
|
|
563
570
|
};
|
|
564
571
|
|
|
565
572
|
// Same document-toolbar hints as `IconButtonTooltips.vue`, restyled through
|
|
566
|
-
// passthrough:
|
|
567
|
-
//
|
|
573
|
+
// passthrough: `pt:root` sets the paint tokens (`--bg`, `--border-color`,
|
|
574
|
+
// `--fg`), so the bubble AND its arrow turn muted with a border together (a
|
|
575
|
+
// background on `pt:panel` would paint only the text box inside the primary
|
|
576
|
+
// bubble); `pt:root:open` adds a drop shadow while showing. Hover
|
|
568
577
|
// a glyph to see the pt; `delay` 400 (the default is 100) holds the first hint
|
|
569
578
|
// back in a dense toolbar, and the next glyph's hint opens at once (skip delay).
|
|
570
579
|
const actions: ToolbarAction[] = [
|
|
@@ -680,7 +689,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
680
689
|
| Part | What it is |
|
|
681
690
|
| --- | --- |
|
|
682
691
|
| `root` | The floating element, arrow included; a `class` on the component lands here. |
|
|
683
|
-
| `panel` | The
|
|
692
|
+
| `panel` | The text box inside the bubble: spacing and type. The bubble's and arrow's paint come from `--bg` / `--border-color` / `--fg` on root. |
|
|
684
693
|
|
|
685
694
|
States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
|
|
686
695
|
|
|
@@ -710,8 +719,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
710
719
|
| `--border-color` | `var(--bb-primary)` | |
|
|
711
720
|
| `--fs` | `calc(var(--bb-fs) - 2px)` | |
|
|
712
721
|
| `--max-w` | `40ch` | Default measure. CommonPopover caps the bubble at the viewport minus its `padding`, which on a wide screen is a single line running the width of the page — unreadable, and the reason a hint needs a cap of its own. `ch` (not px) so the column tracks the font: the same 40ch measure the dropdown item description uses. The `width` prop overrides it by writing `--max-w` inline on the content; a consumer can override it in CSS on this root. |
|
|
713
|
-
| `--px` | `
|
|
714
|
-
| `--py` | `
|
|
722
|
+
| `--px` | `8px` | |
|
|
723
|
+
| `--py` | `2px` | |
|
|
715
724
|
|
|
716
725
|
## Component tree
|
|
717
726
|
|