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/BbIndicator.md
CHANGED
|
@@ -34,7 +34,7 @@ render a bubble, or `dot` for a plain presence marker with no content.
|
|
|
34
34
|
```vue
|
|
35
35
|
<div class="flex items-center gap-5">
|
|
36
36
|
<BbIndicator :text="4" variant="destructive">
|
|
37
|
-
<BbButton variant="outline" icon="lucide:bell">Notifications</BbButton>
|
|
37
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:bell">Notifications</BbButton>
|
|
38
38
|
</BbIndicator>
|
|
39
39
|
<BbIndicator dot variant="success">
|
|
40
40
|
<BbAvatar size="40">AL</BbAvatar>
|
|
@@ -54,10 +54,10 @@ passes through untouched.
|
|
|
54
54
|
```vue
|
|
55
55
|
<div class="flex items-center gap-5">
|
|
56
56
|
<BbIndicator :text="128" :max="99" variant="destructive">
|
|
57
|
-
<BbButton variant="outline" icon="lucide:bell">Notifications</BbButton>
|
|
57
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:bell">Notifications</BbButton>
|
|
58
58
|
</BbIndicator>
|
|
59
59
|
<BbIndicator :text="8" :max="99" variant="destructive">
|
|
60
|
-
<BbButton variant="outline" icon="lucide:mail">Inbox</BbButton>
|
|
60
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:mail">Inbox</BbButton>
|
|
61
61
|
</BbIndicator>
|
|
62
62
|
</div>
|
|
63
63
|
```
|
|
@@ -97,7 +97,7 @@ move it:
|
|
|
97
97
|
<BbAvatar size="40">TR</BbAvatar>
|
|
98
98
|
</BbIndicator>
|
|
99
99
|
<BbIndicator :text="9" left variant="info">
|
|
100
|
-
<BbButton variant="outline" icon="lucide:git-branch">Branches</BbButton>
|
|
100
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:git-branch">Branches</BbButton>
|
|
101
101
|
</BbIndicator>
|
|
102
102
|
</div>
|
|
103
103
|
```
|
|
@@ -115,19 +115,19 @@ same name) — that extends the TypeScript union and gives you a
|
|
|
115
115
|
```vue
|
|
116
116
|
<div class="flex items-center gap-5">
|
|
117
117
|
<BbIndicator :text="1" variant="default">
|
|
118
|
-
<BbButton variant="outline" icon="lucide:bell">Default</BbButton>
|
|
118
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:bell">Default</BbButton>
|
|
119
119
|
</BbIndicator>
|
|
120
120
|
<BbIndicator :text="2" variant="success">
|
|
121
|
-
<BbButton variant="outline" icon="lucide:check">Success</BbButton>
|
|
121
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:check">Success</BbButton>
|
|
122
122
|
</BbIndicator>
|
|
123
123
|
<BbIndicator :text="3" variant="info">
|
|
124
|
-
<BbButton variant="outline" icon="lucide:info">Info</BbButton>
|
|
124
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:info">Info</BbButton>
|
|
125
125
|
</BbIndicator>
|
|
126
126
|
<BbIndicator :text="4" variant="warning">
|
|
127
|
-
<BbButton variant="outline" icon="lucide:triangle-alert">Warning</BbButton>
|
|
127
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:triangle-alert">Warning</BbButton>
|
|
128
128
|
</BbIndicator>
|
|
129
129
|
<BbIndicator :text="5" variant="destructive">
|
|
130
|
-
<BbButton variant="outline" icon="lucide:x">Error</BbButton>
|
|
130
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:x">Error</BbButton>
|
|
131
131
|
</BbIndicator>
|
|
132
132
|
</div>
|
|
133
133
|
```
|
|
@@ -162,13 +162,13 @@ closest, capped at `2xl`.
|
|
|
162
162
|
```vue
|
|
163
163
|
<div class="flex items-center gap-5">
|
|
164
164
|
<BbIndicator size="xs" :text="9" variant="destructive">
|
|
165
|
-
<BbButton variant="outline" icon="lucide:bell">xs</BbButton>
|
|
165
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:bell">xs</BbButton>
|
|
166
166
|
</BbIndicator>
|
|
167
167
|
<BbIndicator size="md" :text="9" variant="destructive">
|
|
168
|
-
<BbButton variant="outline" icon="lucide:bell">md</BbButton>
|
|
168
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:bell">md</BbButton>
|
|
169
169
|
</BbIndicator>
|
|
170
170
|
<BbIndicator size="xl" :text="9" variant="destructive">
|
|
171
|
-
<BbButton variant="outline" icon="lucide:bell">xl</BbButton>
|
|
171
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:bell">xl</BbButton>
|
|
172
172
|
</BbIndicator>
|
|
173
173
|
</div>
|
|
174
174
|
```
|
|
@@ -187,7 +187,7 @@ the fill and `--fg` for the text — inline:
|
|
|
187
187
|
<BbAvatar size="40">ZK</BbAvatar>
|
|
188
188
|
</BbIndicator>
|
|
189
189
|
<BbIndicator :text="7" :style="{ '--bg': '#0891b2', '--fg': '#fff' }">
|
|
190
|
-
<BbButton variant="outline" icon="lucide:bell">Alerts</BbButton>
|
|
190
|
+
<BbButton variant="outline" icon-only prepend:icon="lucide:bell">Alerts</BbButton>
|
|
191
191
|
</BbIndicator>
|
|
192
192
|
</div>
|
|
193
193
|
```
|
|
@@ -222,7 +222,9 @@ clears.
|
|
|
222
222
|
</div>
|
|
223
223
|
<div class="flex items-center gap-1.5">
|
|
224
224
|
<BbIndicator :text="count || undefined" variant="destructive">
|
|
225
|
-
<BbButton icon="lucide:bell" variant="ghost"
|
|
225
|
+
<BbButton icon-only prepend:icon="lucide:bell" variant="ghost"
|
|
226
|
+
>Notifications</BbButton
|
|
227
|
+
>
|
|
226
228
|
</BbIndicator>
|
|
227
229
|
<BbButton size="xs" variant="secondary" @click="onNotify"
|
|
228
230
|
>Notify</BbButton
|
|
@@ -281,7 +283,7 @@ The notification-bell pattern: wrap the bell, never the reverse. A ring on
|
|
|
281
283
|
:text="3"
|
|
282
284
|
variant="destructive"
|
|
283
285
|
>
|
|
284
|
-
<BbButton icon="lucide:bell" variant="ghost">Notifications</BbButton>
|
|
286
|
+
<BbButton icon-only prepend:icon="lucide:bell" variant="ghost">Notifications</BbButton>
|
|
285
287
|
</BbIndicator>
|
|
286
288
|
```
|
|
287
289
|
|
package/dist/ai/BbNumberInput.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 |
|
|
@@ -335,20 +334,22 @@ stays free while the buttons move in fixed increments.
|
|
|
335
334
|
>
|
|
336
335
|
<template #prepend="{ decrease, decreaseDisabled }">
|
|
337
336
|
<BbButton
|
|
338
|
-
aria-label="Decrease quantity"
|
|
339
337
|
:disabled="decreaseDisabled"
|
|
340
|
-
icon
|
|
338
|
+
icon-only
|
|
339
|
+
prepend:icon="lucide:minus"
|
|
341
340
|
size="xs"
|
|
341
|
+
text="Decrease quantity"
|
|
342
342
|
variant="ghost"
|
|
343
343
|
@click="decrease"
|
|
344
344
|
/>
|
|
345
345
|
</template>
|
|
346
346
|
<template #append="{ increase, increaseDisabled }">
|
|
347
347
|
<BbButton
|
|
348
|
-
aria-label="Increase quantity"
|
|
349
348
|
:disabled="increaseDisabled"
|
|
350
|
-
icon
|
|
349
|
+
icon-only
|
|
350
|
+
prepend:icon="lucide:plus"
|
|
351
351
|
size="xs"
|
|
352
|
+
text="Increase quantity"
|
|
352
353
|
variant="ghost"
|
|
353
354
|
@click="increase"
|
|
354
355
|
/>
|
|
@@ -882,9 +883,9 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
882
883
|
| `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. |
|
|
883
884
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
884
885
|
| `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. |
|
|
885
|
-
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted,
|
|
886
|
+
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
|
|
886
887
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
887
|
-
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted,
|
|
888
|
+
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
888
889
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
889
890
|
| `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. |
|
|
890
891
|
| `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' }`). |
|
|
@@ -990,8 +991,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
990
991
|
- Listed nodes are the ones `BbNumberInput`'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/BbNumberInput.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
991
992
|
|
|
992
993
|
- `BbNumberInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-number-input__input`, `input` → `input.bb-number-input__input`, `controlAttrs` → `input`
|
|
993
|
-
- `CommonField` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`;
|
|
994
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `
|
|
994
|
+
- `CommonField` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
|
|
995
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbNumberInput`)_ — `BbNumberInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `BbIcon`, `BbSpinner`, `ErrorIcon`, `WarningIcon`, `ClearableButton`
|
|
995
996
|
|
|
996
997
|
## See Also
|
|
997
998
|
|
package/dist/ai/BbOffCanvas.md
CHANGED
|
@@ -266,8 +266,26 @@ before it paints.
|
|
|
266
266
|
### Header, footer and body
|
|
267
267
|
|
|
268
268
|
A `title` prop renders the standard header (title text + close button) and wires
|
|
269
|
-
`aria-labelledby` for you. Put content in the `default` slot
|
|
270
|
-
|
|
269
|
+
`aria-labelledby` for you. Put content in the `default` slot. The footer
|
|
270
|
+
buttons are props, exactly as on `BbDialog` (BbDialog § Footer buttons):
|
|
271
|
+
`cancel`, `ok` (submits the one `BbForm` inside and completes with what the
|
|
272
|
+
save resolved; no form: completes with `data`) and `actions`, off unless
|
|
273
|
+
written, plus `@complete` for the panel's own completion hook:
|
|
274
|
+
|
|
275
|
+
```vue
|
|
276
|
+
<BbOffCanvas
|
|
277
|
+
id="filters"
|
|
278
|
+
v-slot="{ data }"
|
|
279
|
+
cancel
|
|
280
|
+
ok="Apply"
|
|
281
|
+
title="Filters"
|
|
282
|
+
@complete="apply"
|
|
283
|
+
>
|
|
284
|
+
<BbCheckbox v-model="data.archived" label="Show archived" />
|
|
285
|
+
</BbOffCanvas>
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
For anything else, the `footer` slot replaces them: slot the buttons straight in and the footer lays them out in a
|
|
271
289
|
row at the end, 8px apart, wrapping (`class="me-auto"` pushes one to the
|
|
272
290
|
start; a single wrapping `<div>` of yours stretches and keeps its own layout),
|
|
273
291
|
the same footer as `BbDialog`'s. The body area scrolls internally when content
|
|
@@ -619,11 +637,11 @@ treatment in the list, and account/sign-out sit in the footer.
|
|
|
619
637
|
</div>
|
|
620
638
|
<BbButton
|
|
621
639
|
v-bb-off-canvas="'mobile-nav'"
|
|
622
|
-
|
|
623
|
-
icon="lucide:menu"
|
|
640
|
+
icon-only
|
|
641
|
+
prepend:icon="lucide:menu"
|
|
624
642
|
variant="outline"
|
|
625
643
|
>
|
|
626
|
-
|
|
644
|
+
Open navigation
|
|
627
645
|
</BbButton>
|
|
628
646
|
</div>
|
|
629
647
|
<BbOffCanvas id="mobile-nav" side="left" size="xs" title="Acme Billing">
|
|
@@ -1023,8 +1041,8 @@ is kept).
|
|
|
1023
1041
|
Edit the opening's `data` directly: every opening holds its own reactive copy
|
|
1024
1042
|
of what it was given (arrays and plain objects copied all the way down), so
|
|
1025
1043
|
Cancel is a real discard and reopening starts fresh, with no draft to reseed on
|
|
1026
|
-
`@show`.
|
|
1027
|
-
|
|
1044
|
+
`@show`. `ok` hands the copy back (or, with a form inside, what its save
|
|
1045
|
+
resolved). See
|
|
1028
1046
|
[BbDialog § The data is a copy](./BbDialog.md#the-data-is-a-copy).
|
|
1029
1047
|
|
|
1030
1048
|
**Cancel discards: the panel edits a copy**
|
|
@@ -1419,6 +1437,8 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1419
1437
|
| Prop | Type | Default | Required | Description |
|
|
1420
1438
|
| --- | --- | --- | --- | --- |
|
|
1421
1439
|
| `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: `close`, `content`, `description`, `footer`, `header`, `root`, `title`. States: `fullscreen`, `open`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbOffCanvasProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
1440
|
+
| `actions` | `false \| readonly ActionButtonConfig[] \| undefined` | `undefined` | | Footer buttons replacing `ok` / `cancel`, in order: each runs its `onClick`, then completes the panel with `data`. `false`: none. |
|
|
1441
|
+
| `cancel` | `BbAction \| undefined` | | | The dismiss button, before `ok`: `true` (the locale's Cancel), a label, or a button config. Clicked: its `onClick`, then the panel closes as a dismissal (`reason: 'close'`). Unset: no button. |
|
|
1422
1442
|
| `defaultData` | `Record<string, any> \| undefined` | | | What `data` is when an opening passes none (a create): an object, copied at once, so inputs bind `data.x` with no guard. An opening's data lays over it (`{ ...defaultData, ...row }`, one level). `reset()` restores its keys but keeps an edit's `id`; a close restores it. |
|
|
1423
1443
|
| `description` | `string \| undefined` | | | One short line under the title, muted (the shadcn `DialogDescription` shape), and the only element `aria-describedby` points at. Keep it to a sentence; anything longer belongs in the body. |
|
|
1424
1444
|
| `draggable` | `boolean \| undefined` | `false` | | Drag-to-dismiss: a ~50px swipe toward the exit edge (also from the body once it is scrolled to its edge), with a grab handle as the cue. A gesture that starts inside `data-bb-no-drag` never drags the panel. |
|
|
@@ -1429,6 +1449,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1429
1449
|
| `id` | `string \| undefined` | | | Names the panel for `v-bb-off-canvas="'filters'"` and `useBbOffCanvas`, found nearest to the trigger, so two pages may reuse an id. Also the DOM `id`: one panel per id. |
|
|
1430
1450
|
| `modelValue` | `boolean \| undefined` | `false` | | Used by v-model to open / close the panel. A panel with no `v-model` starts closed. |
|
|
1431
1451
|
| `navigation` | `boolean \| undefined` | `false` | | Syncs the open state with the URL: opening writes `?<queryKey>=true`, closing removes it, a URL with the key opens the panel on load, and Back closes it (refused whenever Escape is). Template panels only; keep a record id in your own query. |
|
|
1452
|
+
| `ok` | `BbAction \| undefined` | | | The primary footer button: `true` (the locale's OK), a label, or a button config. Clicked: its `onClick`, else it submits the one `BbForm` inside, else `complete(data)`. Unset: no button. Config sets its look. |
|
|
1432
1453
|
| `persistent` | `boolean \| undefined` | `false` | | Blocks closing by an outside click, Escape or drag-to-dismiss. The header close (×) STILL closes a persistent drawer, the documented escape hatch: add `hideClose` to remove it, or use `preventClose` to block every dismissal. Programmatic close still works. |
|
|
1433
1454
|
| `preventClose` | `boolean \| undefined` | ``undefined` (follows a saving form inside)` | | Refuses every user close (backdrop, Escape, drag, the ✕, the slots' `close`) with the deny nudge; `v-model` still closes. Unset: locked while a `BbForm` inside saves (an async `@submit`). `true`: always; `false`: never, not even mid-save. Beside a form: `busy \|\| undefined`. |
|
|
1434
1455
|
| `queryKey` | `string \| undefined` | `"offcanvas"` | | The query key `navigation` writes. |
|
|
@@ -1465,6 +1486,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
1465
1486
|
|
|
1466
1487
|
## Events
|
|
1467
1488
|
|
|
1489
|
+
- `complete` — `(value: any): void` — The panel completes (`ok`, `complete(value)`): the same value as the opener's `onComplete`, before it. Return a promise to keep the panel open and locked until it settles; `false` or a throw keeps it open.
|
|
1468
1490
|
- `hidden` — `(): void` — Emitted after the close transition completes and the offcanvas is fully dismissed.
|
|
1469
1491
|
- `hide` — `(result: BbDialogResult): void` — Emitted as soon as the panel starts to close (model becomes false), with the opening's result: the same object its promise settles with, `{ completed: true, value }` or `{ completed: false, reason }`.
|
|
1470
1492
|
- `show` — `(): void` — Emitted as soon as the user triggers the open action (model becomes true).
|
package/dist/ai/BbPagination.md
CHANGED
|
@@ -301,11 +301,11 @@ import type { BbTableColumn } from 'bitboss-ui';
|
|
|
301
301
|
|
|
302
302
|
type AuditEvent = { id: number; action: string; actor: string; time: string };
|
|
303
303
|
|
|
304
|
-
const columns
|
|
304
|
+
const columns = [
|
|
305
305
|
{ key: 'action', label: 'Action' },
|
|
306
306
|
{ key: 'actor', label: 'Actor' },
|
|
307
307
|
{ key: 'time', label: 'When', align: 'right', width: 120 },
|
|
308
|
-
]
|
|
308
|
+
] satisfies Array<BbTableColumn<AuditEvent>>;
|
|
309
309
|
|
|
310
310
|
const actions = [
|
|
311
311
|
'member.invited',
|
package/dist/ai/BbPopover.md
CHANGED
|
@@ -130,9 +130,10 @@ a record and closes itself on save via the `close` callback.
|
|
|
130
130
|
<template #activator="{ props }">
|
|
131
131
|
<BbButton
|
|
132
132
|
v-bind="props"
|
|
133
|
-
|
|
134
|
-
icon="lucide:pencil"
|
|
133
|
+
icon-only
|
|
134
|
+
prepend:icon="lucide:pencil"
|
|
135
135
|
size="sm"
|
|
136
|
+
text="Rename"
|
|
136
137
|
variant="ghost"
|
|
137
138
|
/>
|
|
138
139
|
</template>
|
|
@@ -310,9 +311,10 @@ dismissible.
|
|
|
310
311
|
<template #activator="{ props }">
|
|
311
312
|
<BbButton
|
|
312
313
|
v-bind="props"
|
|
313
|
-
aria-label="About retention period"
|
|
314
314
|
class="shrink-0"
|
|
315
|
-
icon
|
|
315
|
+
icon-only
|
|
316
|
+
prepend:icon="lucide:circle-question-mark"
|
|
317
|
+
text="About retention period"
|
|
316
318
|
variant="ghost"
|
|
317
319
|
/>
|
|
318
320
|
</template>
|
|
@@ -412,9 +414,10 @@ is `any` per key, so `data.report.title` needs no cast.
|
|
|
412
414
|
width: 260,
|
|
413
415
|
offCanvasProps: { hideClose: true },
|
|
414
416
|
}"
|
|
415
|
-
|
|
416
|
-
icon="lucide:pencil"
|
|
417
|
+
icon-only
|
|
418
|
+
prepend:icon="lucide:pencil"
|
|
417
419
|
size="sm"
|
|
420
|
+
text="Rename"
|
|
418
421
|
variant="ghost"
|
|
419
422
|
/>
|
|
420
423
|
</li>
|
|
@@ -542,9 +545,10 @@ utility (BbButton centers labels by default).
|
|
|
542
545
|
<template #activator="{ props }">
|
|
543
546
|
<BbButton
|
|
544
547
|
v-bind="props"
|
|
545
|
-
|
|
546
|
-
icon="lucide:bell"
|
|
548
|
+
icon-only
|
|
549
|
+
prepend:icon="lucide:bell"
|
|
547
550
|
size="sm"
|
|
551
|
+
text="Notifications"
|
|
548
552
|
variant="ghost"
|
|
549
553
|
/>
|
|
550
554
|
</template>
|
|
@@ -646,7 +650,9 @@ declare the ref):
|
|
|
646
650
|
|
|
647
651
|
```vue
|
|
648
652
|
<template>
|
|
649
|
-
<BbButton ref="triggerRef" icon="lucide:settings"
|
|
653
|
+
<BbButton ref="triggerRef" icon-only prepend:icon="lucide:settings"
|
|
654
|
+
>Options</BbButton
|
|
655
|
+
>
|
|
650
656
|
<BbPopover :activator="triggerRef">
|
|
651
657
|
<div class="grid gap-1">
|
|
652
658
|
<BbSwitch v-model="notify" label="Email me" />
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
|
|
27
27
|
- [BbPopover](./BbPopover.md) — Anchors floating content to reference elements; also the v-bb-popover directive (its body is a BbPopoverPortal or a component).
|
|
28
28
|
- [BbHoverCardPortal](./BbHoverCardPortal.md) — Registers named slot content that `v-bb-hover-card="'name'"` (or `{ portal: 'name' }`) renders in the card; slot `{ data, close }`.
|
|
29
|
-
- [BbConfirmPortal](./BbConfirmPortal.md) — Registers named slot content that confirm() renders via `portal`; slot `{ data,
|
|
29
|
+
- [BbConfirmPortal](./BbConfirmPortal.md) — Registers named slot content that confirm() renders via `portal`; slot `{ data, ok, cancel }`.
|
package/dist/ai/BbRadio.md
CHANGED
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
| `--t` | `pt:icon` | `BbBaseRadioIcon` | State-change time: the fill fade and the dot scaling in. |
|
|
33
33
|
| `--elev` | `pt:icon` | `BbBaseRadioIcon` | Same resting lift as the checkbox glyph — see BbBaseCheckboxIcon. |
|
|
34
34
|
| `--bg` | `pt:icon` | `BbBaseRadioIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
|
|
35
|
-
| `--ctrl-line` | `pt:label` | `CommonField` | Where the control's first line is centred, from the top of the control column (half the box height by default); the label's first line aligns to it in side-by-side layouts. |
|
|
36
35
|
|
|
37
36
|
## Usage & Guidelines
|
|
38
37
|
|
|
@@ -318,8 +317,8 @@ ring itself.
|
|
|
318
317
|
physical.
|
|
319
318
|
- `input-align` / `label-align` (`'top' | 'center' | 'bottom'`) are the
|
|
320
319
|
vertical axis of a side-by-side row. Omitted, the button sits on the
|
|
321
|
-
label's first line
|
|
322
|
-
described label.
|
|
320
|
+
label's first line (the label column itself sits at the row's top);
|
|
321
|
+
`input-align="center"` puts it on the middle of a described label.
|
|
323
322
|
- `hide-label` keeps the label for screen readers but hides it visually.
|
|
324
323
|
- **`reverse`** swaps the label in front of the button. It is an ordinary
|
|
325
324
|
opt-in boolean: unset and `:reverse="false"` both put the button first,
|
|
@@ -538,10 +537,10 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
538
537
|
| `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. |
|
|
539
538
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
540
539
|
| `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. |
|
|
541
|
-
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted,
|
|
540
|
+
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
|
|
542
541
|
| `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Alignment of the input in its column. `'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. |
|
|
543
542
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
544
|
-
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted,
|
|
543
|
+
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
545
544
|
| `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. |
|
|
546
545
|
| `layout` | `Responsive<FieldLayout> \| undefined` | `'auto'` | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
|
|
547
546
|
| `modelValue` | `any` | | | Used by v-model. Can be any serializable type. |
|
|
@@ -606,7 +605,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
606
605
|
- Listed nodes are the ones `BbRadio`'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/BbRadio.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
607
606
|
|
|
608
607
|
- `BbRadio` _(this component)_ — its own template binds: `icon` → `BbBaseRadioIcon`
|
|
609
|
-
- `CommonField` _(internal — not importable, reach it through `BbRadio`)_ — `BbRadio`'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`;
|
|
608
|
+
- `CommonField` _(internal — not importable, reach it through `BbRadio`)_ — `BbRadio`'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`
|
|
610
609
|
- Also mounts `BbBaseRadioIcon`
|
|
611
610
|
|
|
612
611
|
## See Also
|
package/dist/ai/BbRadioGroup.md
CHANGED
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
| `--t` | `pt:icon` | `BbBaseRadioIcon` | State-change time: the fill fade and the dot scaling in. |
|
|
37
37
|
| `--elev` | `pt:icon` | `BbBaseRadioIcon` | Same resting lift as the checkbox glyph — see BbBaseCheckboxIcon. |
|
|
38
38
|
| `--bg` | `pt:icon` | `BbBaseRadioIcon` | The glyph plate. DECLARED here, not consumed bare, because this glyph renders inside surfaces that declare `--bg` themselves — a table row or header cell, a dialog, an off-canvas sheet. Without the declaration it would inherit that surface's fill, which happens to match at the shipped default and would diverge the moment anyone writes `.my-table { --bg: … }`. Identical to the raw tokens it replaces at every theme. |
|
|
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
|
| `--list-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip behind the triggers |
|
|
41
40
|
| `--list-border` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The strip's edge line, --bb-border-w thick, painted inside the strip: under the triggers (beside them when vertical). `pill` draws none; `line` sets it to --bb-border |
|
|
42
41
|
| `--p` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | strip inner padding — the gutter the indicator sits in, and the scroll inset |
|
|
@@ -58,8 +57,6 @@
|
|
|
58
57
|
| `--indicator-inset` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Inset of the indicator from the trigger box — shrinks the pill; a bar keeps its thickness, shortens by it at both ends and floats it above the edge |
|
|
59
58
|
| `--elev` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | The theme's resting lift, composed UNDER the indicator's own shadow |
|
|
60
59
|
| `--indicator-shadow` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Indicator lift, painted on top of --elev |
|
|
61
|
-
| `--divider` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | Each button's frame |
|
|
62
|
-
| `--hover-bg` | `pt:list`, `pt:item`, `pt:label`, `pt:itemDescription` | `OptionsContainer` | An unpicked button under the pointer |
|
|
63
60
|
|
|
64
61
|
## Usage & Guidelines
|
|
65
62
|
|
|
@@ -93,7 +90,8 @@ included). An object with none of those fields falls back to
|
|
|
93
90
|
|
|
94
91
|
Pass domain objects to `items` and resolve the display text and stored value
|
|
95
92
|
with `item-text` / `item-value` — a dot-path or a function. The bound model
|
|
96
|
-
holds only the mapped value (an id), which is what you persist.
|
|
93
|
+
holds only the mapped value (an id), which is what you persist. A typo in a path
|
|
94
|
+
is a type error; under `strictVModel` the `v-model` is typed from it. Primitive
|
|
97
95
|
`items` (`string[]`) need no mapping and bind to the string itself. Values match
|
|
98
96
|
by **deep equality**, and duplicate `item-value`s collapse to one button (first
|
|
99
97
|
wins) — see the
|
|
@@ -232,9 +230,24 @@ const plan = ref<string | null>(null); // correct
|
|
|
232
230
|
const plan = ref<string[]>([]); // wrong — radio groups don't bind arrays
|
|
233
231
|
```
|
|
234
232
|
|
|
235
|
-
Picking an option **replaces** the value
|
|
236
|
-
|
|
237
|
-
option
|
|
233
|
+
Picking an option **replaces** the value. By default the user can't empty the
|
|
234
|
+
group. When "no answer" is a valid state, set `clearable`: a click on the
|
|
235
|
+
checked option, or **Space** on it, sets the model back to `null`, and a
|
|
236
|
+
double-click picks without clearing. It works under `required` too, and
|
|
237
|
+
validation then flags the empty value. If "none" is an answer of its own, add it
|
|
238
|
+
as an option instead.
|
|
239
|
+
|
|
240
|
+
**Optional yes/no question**
|
|
241
|
+
|
|
242
|
+
```vue
|
|
243
|
+
<BbRadioGroup
|
|
244
|
+
v-model="state.smoker"
|
|
245
|
+
legend="Do you smoke?"
|
|
246
|
+
:items="['Yes', 'No']"
|
|
247
|
+
clearable
|
|
248
|
+
hint="Click your answer again to clear it."
|
|
249
|
+
/>
|
|
250
|
+
```
|
|
238
251
|
|
|
239
252
|
### Layout and density
|
|
240
253
|
|
|
@@ -360,16 +373,18 @@ value a form or a filter submits (a status filter, a period) is still a
|
|
|
360
373
|
radiogroup (arrow keys, "2 of 4"), so give the group a tab strip's look:
|
|
361
374
|
`variant="pill"` (a muted strip, a raised pill under the pick),
|
|
362
375
|
`variant="line"` (a baseline across the field, a bar under the pick) or
|
|
363
|
-
`variant="outline"` (
|
|
364
|
-
pressed state).
|
|
365
|
-
|
|
366
|
-
|
|
376
|
+
`variant="outline"` (a set of outline BbButtons, the pick in the button's
|
|
377
|
+
pressed state). On `pill` and `line` the strip, its triggers and the
|
|
378
|
+
indicator measure exactly as BbTabs', and the indicator slides as a tab
|
|
379
|
+
strip's does; `outline` has no indicator, each button paints its own pick,
|
|
380
|
+
so it looks and behaves exactly like a row of `BbButton variant="outline"`
|
|
381
|
+
(`compact` takes the button's `sm` size). The dot is hidden (an `icon` slot
|
|
367
382
|
shows before the label, like a tab's icon) and the strip never wraps (it
|
|
368
383
|
scrolls; `outline` buttons wrap onto further lines instead); `list-layout="vertical"` stacks it into a column (the indicator
|
|
369
384
|
slides on the Y axis), `block` spans the field (the triggers share its width
|
|
370
385
|
equally on a row, by content on `outline`), and the other layouts and `item-layout` do not apply. The legend, errors, `compact` and
|
|
371
386
|
`hide-legend` work as on any group. `pt:indicator` reaches the pill or the
|
|
372
|
-
bar (
|
|
387
|
+
bar (`outline` has none), and `pt:<part>:pill` /
|
|
373
388
|
`pt:<part>:line` / `pt:<part>:outline` style a part in one look only.
|
|
374
389
|
|
|
375
390
|
**Pick a value with a strip look**
|
|
@@ -408,8 +423,9 @@ import { BbRadioGroup } from 'bitboss-ui';
|
|
|
408
423
|
|
|
409
424
|
// Three strip looks on a value picker: `pill` (a muted strip, a raised pill
|
|
410
425
|
// under the pick), `line` (a baseline across the field, a bar under the pick)
|
|
411
|
-
// and `outline` (outline buttons, the pick
|
|
412
|
-
//
|
|
426
|
+
// and `outline` (outline buttons, the pick in the pressed state; `block`
|
|
427
|
+
// spans the field). On pill and line the indicator slides like a tab strip's;
|
|
428
|
+
// outline buttons paint their own pick. It is still a
|
|
413
429
|
// radiogroup: arrow keys move and pick, a form submits the value.
|
|
414
430
|
const statuses = ['All', 'Open', 'Closed', 'Archived'];
|
|
415
431
|
const status = ref('Open');
|
|
@@ -540,6 +556,8 @@ value has to post under a known key in a native (non-JS) form submit.
|
|
|
540
556
|
Down/Right to the next, Up/Left to the previous — wrapping around the ends.
|
|
541
557
|
This is why a radio group is one exclusive choice: moving focus selects.
|
|
542
558
|
- Disabled options are skipped during arrow navigation.
|
|
559
|
+
- With `clearable`, **Space** on the checked option clears it and keeps focus
|
|
560
|
+
there. Backspace and Delete do nothing.
|
|
543
561
|
|
|
544
562
|
Keep the set short enough that arrow-cycling stays quick; past ~6 options prefer
|
|
545
563
|
`BbSelect`.
|
|
@@ -838,7 +856,7 @@ layered build, `pt:list="[--gap:8px]"` tightens them anywhere.
|
|
|
838
856
|
list-layout="horizontal"
|
|
839
857
|
name="plan"
|
|
840
858
|
:pt="{
|
|
841
|
-
item: '
|
|
859
|
+
item: 'min-w-28 flex-1 rounded-(--bb-radius) border border-(--bb-border) px-3 py-2',
|
|
842
860
|
}"
|
|
843
861
|
:pt:item="
|
|
844
862
|
({ item }) => item.tier === 'paid' && 'border-amber-300 bg-amber-50'
|
|
@@ -847,8 +865,10 @@ layered build, `pt:list="[--gap:8px]"` tightens them anywhere.
|
|
|
847
865
|
pt:list="[--gap:8px]"
|
|
848
866
|
>
|
|
849
867
|
<template #label="{ item, text }">
|
|
850
|
-
<span class="
|
|
851
|
-
|
|
868
|
+
<span class="flex flex-col gap-0.5">
|
|
869
|
+
<span class="text-sm font-medium">{{ text }}</span>
|
|
870
|
+
<span class="text-xs text-(--bb-text-muted)">{{ item.price }}</span>
|
|
871
|
+
</span>
|
|
852
872
|
</template>
|
|
853
873
|
</BbRadioGroup>
|
|
854
874
|
</div>
|
|
@@ -948,8 +968,8 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
948
968
|
|
|
949
969
|
- Don't seed the model with an array — radio groups bind a single value; seed
|
|
950
970
|
`null`.
|
|
951
|
-
- Don't expect the user to clear the selection
|
|
952
|
-
|
|
971
|
+
- Don't expect the user to clear the selection unless the group is `clearable`;
|
|
972
|
+
when "none" is an answer of its own, add it as an option.
|
|
953
973
|
- Don't reach for standalone `BbRadio` just to stack a few options in a box —
|
|
954
974
|
that's this component (fieldset + roving focus + item mapping for free).
|
|
955
975
|
- A `disabled` field on an item object does nothing — it is inert data. Gate
|
|
@@ -987,6 +1007,9 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
987
1007
|
actually has copy. Messages _also_ render in an `aria-live="polite"` region,
|
|
988
1008
|
so they are announced the moment they appear — announced on change, re-read
|
|
989
1009
|
on focus. Keep messages meaningful, not decorative.
|
|
1010
|
+
- A `clearable` group adds a hidden "press Space to clear" hint to each radio's
|
|
1011
|
+
`aria-describedby` (key `radioGroup.clearHint`), dropped while `disabled` or
|
|
1012
|
+
`readonly`.
|
|
990
1013
|
- `readonly` exposes `aria-readonly` on the `radiogroup` (the `radio` role does
|
|
991
1014
|
not support it) and still submits; prefer it (with a nearby explanation) over
|
|
992
1015
|
a silent `disabled`.
|
|
@@ -1002,6 +1025,7 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
1002
1025
|
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `description`, `hint`, `icon`, `indicator`, `item`, `itemDescription`, `label`, `legend`, `list`, `message`, `root`. States: `disabled`, `errors`, `hasValue`, `line`, `loading`, `outline`, `pill`, `readonly`, `warnings`, `checked`, `focused`, `focusVisible`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbRadioGroupProps<Row>['pt']` (`BbRadioGroupProps<object>['pt']` for a preset that fits any row type, never `<any>`) (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
1003
1026
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
1004
1027
|
| `block` | `boolean \| undefined` | `undefined` | | The rows take the list's full width: on a line (`horizontal`, a `variant` strip) they share it equally, stacked (`vertical`) each row is full width. Every look: plain rows, `pill`, `line`, `outline`. |
|
|
1028
|
+
| `clearable` | `boolean \| undefined` | `false` | | Clicking the checked option (or Space on it) clears the value to `null`. Off: a radio group can't be emptied. |
|
|
1005
1029
|
| `compact` | `boolean \| undefined` | `undefined` | | Compact density. Swaps `--bb-label-spacing-y` for `--bb-label-spacing-y-compact`, so tune a compact group's label gap with the `-compact` token, not the base one. |
|
|
1006
1030
|
| `dependencies` | `unknown[] \| undefined` | | | Defines an array of dependencies that will trigger actions in the component upon change. |
|
|
1007
1031
|
| `depsDebounceTime` | `number \| undefined` | | | Timeout used to debounce response to changes to dependencies. |
|
|
@@ -1018,7 +1042,7 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
1018
1042
|
| `hideLegend` | `boolean \| undefined` | `false` | | Visually hides the legend of the fieldset while maintaining accessibility. |
|
|
1019
1043
|
| `hint` | `string \| undefined` | | | Text box to be displayed near the input, usually to indicate instructions. |
|
|
1020
1044
|
| `id` | `string \| undefined` | | | Prefix for the ids of each option's input and of the label, description and message. Generated when omitted. |
|
|
1021
|
-
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted,
|
|
1045
|
+
| `inputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the control in a side-by-side row; not `inputPosition`, the horizontal one. Omitted, `'top'`. |
|
|
1022
1046
|
| `inputPosition` | `"end" \| "start" \| "center" \| "left" \| "right" \| undefined` | `'start'` | | Alignment of the input in its column. `'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. |
|
|
1023
1047
|
| `itemInputAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's control in its row; `'center'` is the middle of the label plus its description. Omitted, it sits on the label's first line. |
|
|
1024
1048
|
| `itemLabelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of each option's label in its row. Omitted, it stays as it is. |
|
|
@@ -1028,7 +1052,7 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
1028
1052
|
| `items` | `T[] \| ((context: BbRadioGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and `#empty` gets the `error`. |
|
|
1029
1053
|
| `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
|
|
1030
1054
|
| `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
|
|
1031
|
-
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted,
|
|
1055
|
+
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
1032
1056
|
| `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' }`). |
|
|
1033
1057
|
| `legend` | `string` | | yes | Text content of the legend. |
|
|
1034
1058
|
| `legendMode` | `"outside" \| "inside" \| undefined` | | | Legend rendering mode. `'outside'` renders the legend above the fieldset in the normal flow; `'inside'` overlays the legend inside the fieldset border. Floating mode is not supported for radio groups. |
|
|
@@ -1096,7 +1120,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
1096
1120
|
- `keydown` — `(event: KeyboardEvent): void` — Emitted for keyboard interaction on generated radio inputs. Forwards the original DOM `KeyboardEvent`.
|
|
1097
1121
|
- `mousedown` — `(event: MouseEvent): void` — Emitted when a pointing device button is pressed over a radio input. Forwards the original DOM `MouseEvent`.
|
|
1098
1122
|
- `mouseup` — `(event: MouseEvent): void` — Emitted when a pointing device button is released over a radio input. Forwards the original DOM `MouseEvent`.
|
|
1099
|
-
- `update:modelValue` — `(value: any): void` — Emitted with the newly selected value when the selection changes.
|
|
1123
|
+
- `update:modelValue` — `(value: any): void` — Emitted with the newly selected value when the selection changes; `null` when a `clearable` group is cleared.
|
|
1100
1124
|
|
|
1101
1125
|
## Slots
|
|
1102
1126
|
|
|
@@ -1153,22 +1177,14 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1153
1177
|
| `--elev` | `.bb-radio-group__list--line` | `none` | |
|
|
1154
1178
|
| `--list-bg` | `.bb-radio-group__list--outline` | `transparent` | |
|
|
1155
1179
|
| `--list-border` | `.bb-radio-group__list--outline` | `transparent` | |
|
|
1156
|
-
| `--list-h` | `.bb-radio-group__list--outline` | `
|
|
1180
|
+
| `--list-h` | `.bb-radio-group__list--outline` | `auto` | |
|
|
1157
1181
|
| `--p` | `.bb-radio-group__list--outline` | `0px` | |
|
|
1158
1182
|
| `--trigger-gap` | `.bb-radio-group__list--outline` | `8px` | |
|
|
1159
|
-
| `--trigger-
|
|
1183
|
+
| `--trigger-min-h` | `.bb-radio-group__list--outline` | `calc(var(--bb-control-h) - 4px)` | BbButton md |
|
|
1160
1184
|
| `--trigger-px` | `.bb-radio-group__list--outline` | `12px` | |
|
|
1161
|
-
| `--
|
|
1162
|
-
| `--
|
|
1163
|
-
| `--
|
|
1164
|
-
| `--active-fw` | `.bb-radio-group__list--outline` | `500` | |
|
|
1165
|
-
| `--indicator-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline-pressed)` | |
|
|
1166
|
-
| `--indicator-border` | `.bb-radio-group__list--outline` | `transparent` | |
|
|
1167
|
-
| `--indicator-r` | `.bb-radio-group__list--outline` | `var(--trigger-r)` | |
|
|
1168
|
-
| `--indicator-shadow` | `.bb-radio-group__list--outline` | `none` | |
|
|
1169
|
-
| `--elev` | `.bb-radio-group__list--outline` | `none` | |
|
|
1170
|
-
| `--divider` | `.bb-radio-group__list--outline` | `var(--bb-outline-border)` | Each button's frame |
|
|
1171
|
-
| `--hover-bg` | `.bb-radio-group__list--outline` | `var(--bb-outline-hover)` | An unpicked button under the pointer |
|
|
1185
|
+
| `--fs` | `.bb-radio-group__list--outline` | `var(--bb-fs)` | |
|
|
1186
|
+
| `--trigger-r` | `.bb-radio-group__list--outline` | `var(--bb-radius)` | |
|
|
1187
|
+
| `--elev` | `.bb-radio-group__list--outline` | `var(--bb-elev)` | |
|
|
1172
1188
|
|
|
1173
1189
|
## Component tree
|
|
1174
1190
|
|
|
@@ -1180,8 +1196,8 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1180
1196
|
- Listed nodes are the ones `BbRadioGroup`'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/BbRadioGroup.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
1181
1197
|
|
|
1182
1198
|
- `BbRadioGroup` _(this component)_ — its own template binds: `indicator` → `span.bb-radio-group__indicator`, `icon` → `BbBaseRadioIcon`
|
|
1183
|
-
- `CommonField` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`;
|
|
1184
|
-
- `OptionsContainer` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--
|
|
1199
|
+
- `CommonField` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; also mounts `BbAsterisk`
|
|
1200
|
+
- `OptionsContainer` _(internal — not importable, reach it through `BbRadioGroup`)_ — `BbRadioGroup`'s pt parts land here: `list` → `span`, `item` → `label`, `label` → `span`, `itemDescription` → `span`; documented CSS variables: `--list-bg`, `--list-border`, `--p`, `--list-r`, `--list-h`, `--fs`, `--trigger-gap`, `--trigger-px`, `--trigger-r`, `--trigger-min-h`, `--list-fg`, `--hover-fg`, `--active-fg`, `--active-fw`, `--indicator-bg`, `--indicator-border`, `--indicator-r`, `--indicator-h`, `--indicator-inset`, `--elev`, `--indicator-shadow`, `--trigger-min-h`
|
|
1185
1201
|
- Also mounts `BbBaseRadioIcon`
|
|
1186
1202
|
|
|
1187
1203
|
## See Also
|