bitboss-ui 3.0.0-beta.71 → 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 +1 -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/BbCheckboxGroup.md +2 -1
- package/dist/ai/BbColorInput.md +1 -1
- 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 +2 -2
- package/dist/ai/BbDialog.md +230 -164
- package/dist/ai/BbDropdown.md +52 -16
- package/dist/ai/BbDropdownButton.md +11 -12
- 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 +7 -5
- 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/BbRadioGroup.md +29 -7
- package/dist/ai/BbRating.md +8 -7
- package/dist/ai/BbSelect.md +29 -8
- package/dist/ai/BbSelectPopover.md +9 -3
- package/dist/ai/BbSlider.md +12 -8
- package/dist/ai/BbSpinner.md +3 -2
- package/dist/ai/BbSwitch.md +3 -3
- package/dist/ai/BbSwitchGroup.md +7 -6
- package/dist/ai/BbTable.md +205 -82
- package/dist/ai/BbTabs.md +29 -4
- package/dist/ai/BbTag.md +1 -1
- package/dist/ai/BbTextInput.md +7 -5
- package/dist/ai/BbTextarea.md +4 -3
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTooltip.md +22 -17
- package/dist/ai/BbTree.md +49 -24
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/changelog.json +238 -9
- package/dist/ai/components.json +52 -51
- 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 +52 -10
- 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/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 +3 -3
- 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 +1 -1
- 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/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.json +1 -1
- package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
- 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 +1 -1
- 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 +9 -8
- package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
- package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
- 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 +1 -1
- 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/BbRadioGroup.json +4 -3
- package/dist/ai/manifest/components/BbRating.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +16 -15
- package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
- package/dist/ai/manifest/components/BbSwitch.json +4 -4
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
- 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 +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
- 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 +1 -1
- package/dist/ai/manifest/components/BbToast.removed.json +2 -1
- package/dist/ai/manifest/components/BbTree.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
- 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 +6 -5
- 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/BbButton.md +205 -55
- package/dist/ai/source/BbCalendar.md +5 -0
- package/dist/ai/source/BbCheckboxGroup.md +38 -13
- 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 +3 -1
- package/dist/ai/source/BbDialog.md +53 -2
- package/dist/ai/source/BbDropdown.md +350 -98
- package/dist/ai/source/BbDropdownButton.md +20 -12
- package/dist/ai/source/BbDropdownGroup.md +136 -58
- package/dist/ai/source/BbForm.md +144 -10
- package/dist/ai/source/BbOffCanvas.md +53 -2
- package/dist/ai/source/BbPagination.md +1 -1
- package/dist/ai/source/BbRadioGroup.md +72 -10
- package/dist/ai/source/BbRating.md +30 -22
- package/dist/ai/source/BbSelect.md +11 -1
- package/dist/ai/source/BbSelectPopover.md +105 -34
- package/dist/ai/source/BbSwitch.md +23 -8
- package/dist/ai/source/BbSwitchGroup.md +67 -21
- package/dist/ai/source/BbTable.md +359 -48
- 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/BbTree.md +14 -4
- package/dist/ai/source/CommonFieldInput.md +2 -1
- 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/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/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 +2 -2
- 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 +2 -1
- 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 +382 -332
- package/dist/components/BbDropdown/dropdownHandle.js +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +58 -48
- package/dist/components/BbDropdown/types.d.ts +107 -48
- package/dist/components/BbDropdown/types.js +2 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
- 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/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/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 +9 -3
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
- package/dist/components/BbRating/types.d.ts +3 -2
- package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/BbSelect/types.d.ts +8 -0
- 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/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 +32 -17
- 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/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
- 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/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/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 +21 -14
- 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 +1984 -1145
- 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/ItemPath.d.ts +33 -4
- 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 +11 -1
- package/scripts/README.md +31 -27
- package/scripts/lib/adoption-checklist.json +2 -2
- 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/tab-links.mjs +4 -1
- package/scripts/lib/tree-default-expandable.mjs +53 -0
- package/scripts/lib/validate-bb-markup.mjs +536 -52
package/dist/ai/BbConfirm.md
CHANGED
|
@@ -14,38 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
| pt part | Lands on | In |
|
|
16
16
|
| --- | --- | --- |
|
|
17
|
-
| `pt:action` | the root of `
|
|
17
|
+
| `pt:action` | the root of `BbDialog` | `BbDialog` ([contract](./BbDialog.md)) |
|
|
18
18
|
|
|
19
19
|
**CSS variables you can set through those parts** — declared deeper in the tree, so set one on the part that reads it (`pt:<part>="[--name:value]"`), never on `BbConfirm`'s root:
|
|
20
20
|
|
|
21
21
|
| Variable | Set through | Declared by | What it is |
|
|
22
22
|
| --- | --- | --- | --- |
|
|
23
|
-
| `--
|
|
24
|
-
| `--
|
|
25
|
-
| `--icon-size` | `pt:action` | `BbButton` | every icon, and the spinner over it |
|
|
26
|
-
| `--px` | `pt:action` | `BbButton` | left/right padding |
|
|
27
|
-
| `--ipx` | `pt:action` | `BbButton` | The padding on a side that carries an icon: a length of its own, 65% of --px by default (it follows a --px change). |
|
|
28
|
-
| `--fs` | `pt:action` | `BbButton` | font-size, and line-height |
|
|
29
|
-
| `--r` | `pt:action` | `BbButton` | border-radius |
|
|
30
|
-
| `--gap` | `pt:action` | `BbButton` | between icon and label |
|
|
31
|
-
| `--bg` | `pt:action` | `BbButton` | the plate |
|
|
32
|
-
| `--bg-hover` | `pt:action` | `BbButton` | also the focus-visible fill; no change by default |
|
|
33
|
-
| `--bg-pressed` | `pt:action` | `BbButton` | fill while pressed, or open (aria-expanded) |
|
|
34
|
-
| `--fg` | `pt:action` | `BbButton` | label and icons (icons paint currentColor) |
|
|
35
|
-
| `--border-color` | `pt:action` | `BbButton` | the frame; its width is --bw |
|
|
36
|
-
| `--ring-color` | `pt:action` | `BbButton` | focus ring colour, per variant |
|
|
37
|
-
| `--ring-size` | `pt:action` | `BbButton` | focus ring width, outside the border |
|
|
38
|
-
| `--bw` | `pt:action` | `BbButton` | border width |
|
|
39
|
-
| `--fg-hover` | `pt:action` | `BbButton` | label and icons on hover (and focus-visible) |
|
|
40
|
-
| `--border-hover` | `pt:action` | `BbButton` | the frame on hover (and focus-visible) |
|
|
41
|
-
| `--fg-pressed` | `pt:action` | `BbButton` | label and icons while pressed or open |
|
|
42
|
-
| `--border-pressed` | `pt:action` | `BbButton` | the frame while pressed or open |
|
|
43
|
-
| `--bg-disabled` | `pt:action` | `BbButton` | the plate while disabled (not loading) |
|
|
44
|
-
| `--fg-disabled` | `pt:action` | `BbButton` | label and icons while disabled |
|
|
45
|
-
| `--border-disabled` | `pt:action` | `BbButton` | the frame while disabled |
|
|
46
|
-
| `--opacity-disabled` | `pt:action` | `BbButton` | whole-button opacity while disabled — `.5` with the three above set to the resting tokens gives "fade instead of grey" |
|
|
47
|
-
| `--elev-tier` | `pt:action` | `BbButton` | the shadow a plate variant may take |
|
|
48
|
-
| `--elev` | `pt:action` | `BbButton` | the shadow painted; flat variants keep this |
|
|
23
|
+
| `--px` | `pt:action` | `BbDialog` | Axis split of --bb-panel-p: --px (inline) / --py (block), each branching off it. Set the pair only when the axes differ; setting --bb-panel-p alone keeps them equal. Local on this root class (not :root) so scoped --bb-panel-p overrides keep reaching the slots; for per-part asymmetry, scope --py to the part class. |
|
|
24
|
+
| `--close-size` | `pt:action` | `BbDialog` | Shared by the close control and by the space the title reserves for it, so the two can never drift apart. |
|
|
49
25
|
|
|
50
26
|
## Usage & Guidelines
|
|
51
27
|
|
|
@@ -102,10 +78,10 @@ otherwise).
|
|
|
102
78
|
|
|
103
79
|
### The destructive flow
|
|
104
80
|
|
|
105
|
-
Pick by where the work runs. A server call or a visit goes in
|
|
81
|
+
Pick by where the work runs. A server call or a visit goes in OK's `onClick`
|
|
106
82
|
(next section): it spins there, and a failure rejects `confirm()`. A local,
|
|
107
83
|
instant step (removing a row you hold, leaving a page) is `await confirm(...)`,
|
|
108
|
-
then act only on a truthy result, as below. Set `variant: 'destructive'` so the dialog reads as dangerous and the
|
|
84
|
+
then act only on a truthy result, as below. Set `variant: 'destructive'` so the dialog reads as dangerous and the OK button
|
|
109
85
|
inherits the destructive button style automatically. Everything after the
|
|
110
86
|
`await` is your normal code — the dialog has already resolved. A `BbButton`
|
|
111
87
|
whose click awaits `confirm()` spins until it is answered, like any async
|
|
@@ -172,15 +148,15 @@ const revoke = async (key: ApiKey) => {
|
|
|
172
148
|
title: 'Revoke API key?',
|
|
173
149
|
text: `${key.label} (${key.masked}) stops working immediately. This cannot be undone.`,
|
|
174
150
|
variant: 'destructive',
|
|
175
|
-
|
|
176
|
-
|
|
151
|
+
ok: { text: 'Revoke', 'prepend:icon': 'lucide:trash-2' },
|
|
152
|
+
cancel: 'Cancel',
|
|
177
153
|
});
|
|
178
154
|
if (ok) keys.value = keys.value.filter((k) => k.id !== key.id);
|
|
179
155
|
};
|
|
180
156
|
</script>
|
|
181
157
|
```
|
|
182
158
|
|
|
183
|
-
**Irreversible and large — "type the name to confirm":**
|
|
159
|
+
**Irreversible and large — "type the name to confirm":** an OK/Cancel is one
|
|
184
160
|
reflexive click away from deleting a workspace, so that case is not a
|
|
185
161
|
`confirm()`. Build a `BbDialog` with a text field and a destructive button
|
|
186
162
|
disabled until the typed text matches the name, clearing the text each time
|
|
@@ -203,8 +179,8 @@ is blocked until it settles. Add `returning: true` to resolve with the
|
|
|
203
179
|
callback's own return value rather than a plain boolean. One sharp edge:
|
|
204
180
|
`confirm()` **rejects** when a button's `onClick` throws — wrap the await in
|
|
205
181
|
`try/catch` when the work can fail. An Inertia visit returns no promise: make
|
|
206
|
-
it with the Inertia helpers' `usePromiseRouter`, whose promise rejects with
|
|
207
|
-
|
|
182
|
+
it with the Inertia helpers' `usePromiseRouter`, whose promise rejects with a
|
|
183
|
+
`BbValidationError` (the bag under `.errors`) on a validation error, rather than calling
|
|
208
184
|
`close()` from its callbacks (`ai/composables/useConfirm.md` § Async work).
|
|
209
185
|
|
|
210
186
|
**Async publish with a spinner**
|
|
@@ -242,7 +218,7 @@ const publish = async () => {
|
|
|
242
218
|
title: 'Publish article?',
|
|
243
219
|
text: 'It becomes visible to everyone with the link.',
|
|
244
220
|
returning: true,
|
|
245
|
-
|
|
221
|
+
ok: {
|
|
246
222
|
text: 'Publish',
|
|
247
223
|
'prepend:icon': 'lucide:rocket',
|
|
248
224
|
onClick: async () => {
|
|
@@ -250,7 +226,7 @@ const publish = async () => {
|
|
|
250
226
|
return 'Published';
|
|
251
227
|
},
|
|
252
228
|
},
|
|
253
|
-
|
|
229
|
+
cancel: { text: 'Keep as draft', onClick: () => 'Draft' },
|
|
254
230
|
});
|
|
255
231
|
// `false` when the dialog closed without a choice (Escape, the backdrop).
|
|
256
232
|
status.value = result || 'Unchanged';
|
|
@@ -260,33 +236,43 @@ const publish = async () => {
|
|
|
260
236
|
|
|
261
237
|
### Customising the buttons
|
|
262
238
|
|
|
263
|
-
`
|
|
264
|
-
relabels it, and a full `ConfirmButtonConfig`
|
|
265
|
-
`text`, `variant`, `size` (default `'md'`),
|
|
266
|
-
`icon`
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
the
|
|
270
|
-
|
|
271
|
-
|
|
239
|
+
`ok` and `cancel` each accept four forms: `false` hides the button, `true`
|
|
240
|
+
keeps the default, a string relabels it, and a full `ConfirmButtonConfig`
|
|
241
|
+
object gives complete control — `text`, `variant`, `size` (default `'md'`),
|
|
242
|
+
`prepend:icon` / `append:icon`, `iconOnly` (show only the icon; `text` stays
|
|
243
|
+
the accessible name), `block` (fill the footer width), and the `onClick`
|
|
244
|
+
described above. Defaults: OK is the `confirm.ok` locale string (`'OK'` with
|
|
245
|
+
the default `'en'` locale), `primary` (`destructive` when the dialog variant
|
|
246
|
+
is); Cancel is the `confirm.cancel` locale string (`'Cancel'` with the default
|
|
247
|
+
`'en'` locale), `outline`, and comes first in the footer. Prefer your own
|
|
248
|
+
verb-first labels over the generic defaults.
|
|
249
|
+
|
|
250
|
+
The plugin sets the app-wide look of both:
|
|
251
|
+
`components: { BbConfirm: { okProps: { variant: 'primary' }, cancelProps: { variant: 'ghost' } } }`
|
|
252
|
+
(the look only: `text`, `variant`, `size`, icons, `iconOnly`, `block`). The
|
|
253
|
+
call wins, and the config never shows a button the call hides.
|
|
272
254
|
|
|
273
255
|
```ts
|
|
274
256
|
// Acknowledgement — one button.
|
|
275
|
-
await confirm({
|
|
257
|
+
await confirm({
|
|
258
|
+
title: 'Saved',
|
|
259
|
+
text: 'Your changes are live.',
|
|
260
|
+
cancel: false,
|
|
261
|
+
});
|
|
276
262
|
|
|
277
263
|
// Full control over each button.
|
|
278
264
|
await confirm({
|
|
279
265
|
title: 'Archive project?',
|
|
280
266
|
text: 'You can restore it later from the archive.',
|
|
281
|
-
|
|
282
|
-
|
|
267
|
+
ok: { text: 'Archive', 'prepend:icon': 'lucide:archive' },
|
|
268
|
+
cancel: { text: 'Cancel', variant: 'ghost' },
|
|
283
269
|
});
|
|
284
270
|
```
|
|
285
271
|
|
|
286
|
-
### More than
|
|
272
|
+
### More than OK/Cancel: custom actions
|
|
287
273
|
|
|
288
274
|
When the decision has more than two outcomes, pass an `actions` array — it
|
|
289
|
-
replaces the
|
|
275
|
+
replaces the OK/Cancel footer entirely (`ok` / `cancel` are ignored, with a dev
|
|
290
276
|
warning). Each entry is the same `ConfirmButtonConfig` shape as above; defaults
|
|
291
277
|
per button are `variant: 'outline'`, `size: 'md'`. Clicking any action resolves
|
|
292
278
|
the promise `true`; every implicit dismissal still resolves `false` without
|
|
@@ -325,7 +311,7 @@ const decision = ref('none yet');
|
|
|
325
311
|
const { confirm } = useConfirm();
|
|
326
312
|
|
|
327
313
|
/**
|
|
328
|
-
* An `actions` array replaces the
|
|
314
|
+
* An `actions` array replaces the OK/Cancel footer. With `returning: true` the
|
|
329
315
|
* promise resolves with the clicked handler's return value — `as const` keeps
|
|
330
316
|
* the literals, so `res` is 'discard' | 'draft' | 'publish' | false.
|
|
331
317
|
*/
|
|
@@ -356,7 +342,7 @@ const closeEditor = async () => {
|
|
|
356
342
|
</script>
|
|
357
343
|
```
|
|
358
344
|
|
|
359
|
-
The rest of the contract carries over from
|
|
345
|
+
The rest of the contract carries over from OK/Cancel unchanged:
|
|
360
346
|
|
|
361
347
|
- A **throwing handler rejects** the `confirm()` promise and closes the dialog
|
|
362
348
|
— wrap multi-outcome confirms in `try/catch` when a handler can fail.
|
|
@@ -373,21 +359,21 @@ A confirm can end without a button click — backdrop click, `Escape`, the X,
|
|
|
373
359
|
a `duration` timeout, or the owning component unmounting. All of these resolve
|
|
374
360
|
the promise `false`, so your `if (ok)` branch is never reached accidentally.
|
|
375
361
|
`false` therefore means _not confirmed_, not necessarily _declined_ — put
|
|
376
|
-
decline-only behavior in `
|
|
377
|
-
that decides whether `
|
|
378
|
-
(backdrop, `Escape`, the X) honor `
|
|
362
|
+
decline-only behavior in `cancel.onClick`, not in the `if (!ok)` branch. The rule
|
|
363
|
+
that decides whether `cancel.onClick` runs: **user-initiated** dismissals
|
|
364
|
+
(backdrop, `Escape`, the X) honor `dismissAsCancel`; **system-initiated** ones
|
|
379
365
|
(`duration` timeout, owner unmount, `dismissAll()`)
|
|
380
366
|
always resolve quietly, never running any callback. The knobs:
|
|
381
367
|
|
|
382
|
-
- `
|
|
383
|
-
`
|
|
368
|
+
- `dismissAsCancel` (default `true`) — user-initiated implicit dismissals also run
|
|
369
|
+
`cancel.onClick` (and, with `returning`, resolve with its return value). Set
|
|
384
370
|
`false` to resolve `false` quietly without running the callback; an explicit
|
|
385
|
-
|
|
371
|
+
Cancel click always runs it.
|
|
386
372
|
- `persistent` blocks backdrop and Escape dismissal. The X button ignores
|
|
387
373
|
`persistent` and follows `hideClose` (hidden while a callback runs). The
|
|
388
374
|
confirm closes itself after a callback through the dialog's model, so a
|
|
389
375
|
busy confirm never refuses its own close.
|
|
390
|
-
Combine `persistent` with `hideClose` (and explicit `
|
|
376
|
+
Combine `persistent` with `hideClose` (and explicit `ok`/`cancel`) to force a
|
|
391
377
|
real choice. Both are forced on automatically while a button callback runs.
|
|
392
378
|
- `duration: ms` auto-dismisses after a timeout, resolving `false` quietly —
|
|
393
379
|
useful for self-expiring prompts. It implies `autoClose: true`.
|
|
@@ -459,8 +445,8 @@ const cancel = async () => {
|
|
|
459
445
|
variant: 'destructive',
|
|
460
446
|
persistent: true,
|
|
461
447
|
hideClose: true,
|
|
462
|
-
|
|
463
|
-
|
|
448
|
+
ok: 'Discard',
|
|
449
|
+
cancel: 'Keep editing',
|
|
464
450
|
});
|
|
465
451
|
if (ok) draft.value = saved.value;
|
|
466
452
|
};
|
|
@@ -474,7 +460,7 @@ By default the dialog closes as soon as the promise settles. Set
|
|
|
474
460
|
(progress feedback, a follow-up step) — and end the flow yourself with
|
|
475
461
|
`useConfirm().close()`. Two things to internalize, for **either** outcome:
|
|
476
462
|
|
|
477
|
-
- `autoClose: false` applies to
|
|
463
|
+
- `autoClose: false` applies to Cancel/dismiss too — call `close()` on both
|
|
478
464
|
branches.
|
|
479
465
|
- `close()` only hides the dialog; **it never resolves anything**. Calling it
|
|
480
466
|
on a dialog whose buttons haven't run yet leaves that `confirm()` promise
|
|
@@ -532,8 +518,8 @@ const exportWorkspace = async () => {
|
|
|
532
518
|
title: 'Export workspace?',
|
|
533
519
|
portal: 'export-flow',
|
|
534
520
|
autoClose: false,
|
|
535
|
-
|
|
536
|
-
|
|
521
|
+
ok: 'Export',
|
|
522
|
+
cancel: 'Cancel',
|
|
537
523
|
});
|
|
538
524
|
if (!ok) {
|
|
539
525
|
status.value = 'Cancelled';
|
|
@@ -570,7 +556,7 @@ const discard = await confirm({
|
|
|
570
556
|
title: 'Discard your changes?',
|
|
571
557
|
stack: 'editor', // the editor's <BbDialog stack="editor">
|
|
572
558
|
variant: 'destructive',
|
|
573
|
-
|
|
559
|
+
ok: 'Discard',
|
|
574
560
|
});
|
|
575
561
|
```
|
|
576
562
|
|
|
@@ -578,8 +564,8 @@ const discard = await confirm({
|
|
|
578
564
|
|
|
579
565
|
When plain `text` isn't enough, render custom content in the dialog body via a
|
|
580
566
|
**portal**. A named portal is declared inline with `<BbConfirmPortal>` and
|
|
581
|
-
activated by name — its slot receives `{
|
|
582
|
-
the `data` you passed and `
|
|
567
|
+
activated by name — its slot receives `{ ok, cancel, data }`, where `data` is
|
|
568
|
+
the `data` you passed and `ok`/`cancel` resolve the dialog from inside the slot.
|
|
583
569
|
Named-portal content is a live closure over your component's state (the
|
|
584
570
|
multi-step example above exploits exactly that). For reusable bodies, pass a
|
|
585
571
|
component as `portal` instead; the keys of `data` are then forwarded to it as
|
|
@@ -607,7 +593,7 @@ portal never renders.
|
|
|
607
593
|
</p>
|
|
608
594
|
|
|
609
595
|
<!-- Register named content anywhere in the tree. The slot receives
|
|
610
|
-
`{
|
|
596
|
+
`{ ok, cancel, data }`; `data` is whatever the confirm passed as `data`. -->
|
|
611
597
|
<BbConfirmPortal name="remove-member">
|
|
612
598
|
<template #default="{ data }">
|
|
613
599
|
<div class="flex flex-col items-center gap-1 text-center">
|
|
@@ -637,8 +623,8 @@ const removeMember = async () => {
|
|
|
637
623
|
portal: 'remove-member',
|
|
638
624
|
data: { name: 'Sofia Esposito', role: 'Editor' },
|
|
639
625
|
variant: 'destructive',
|
|
640
|
-
|
|
641
|
-
|
|
626
|
+
ok: 'Remove',
|
|
627
|
+
cancel: 'Cancel',
|
|
642
628
|
});
|
|
643
629
|
result.value = ok
|
|
644
630
|
? 'Removed from the workspace'
|
|
@@ -648,7 +634,7 @@ const removeMember = async () => {
|
|
|
648
634
|
```
|
|
649
635
|
|
|
650
636
|
When the portal owns its own action buttons, pass `actions: false` to hide the
|
|
651
|
-
standard footer and resolve from inside the slot with its `
|
|
637
|
+
standard footer and resolve from inside the slot with its `ok` / `cancel` helpers.
|
|
652
638
|
|
|
653
639
|
**Names are checked.** `bitboss-ui check` and the ESLint rule
|
|
654
640
|
`bitboss-ui/portal-names` (in `recommended`) read every literal
|
|
@@ -680,13 +666,13 @@ confirm dialog — no separate `panel`), `sheet` (the bottom sheet on a phone
|
|
|
680
666
|
only), `header`, `title`, `content` (the body),
|
|
681
667
|
`footer` (the action buttons' band) and `close` (the ✕) are forwarded to the
|
|
682
668
|
`BbDialog` it renders; `text` reaches the confirm's plain-text message (not a
|
|
683
|
-
portal's content); `action` reaches every footer button —
|
|
669
|
+
portal's content); `action` reaches every footer button — OK, Cancel and each
|
|
684
670
|
custom `actions` entry — at the button's root (a listener runs after the
|
|
685
671
|
button's own). State `open`. Backdrop is `::backdrop` — CSS, not pt.
|
|
686
672
|
|
|
687
673
|
`<BbHost />` takes no `pt`: every confirm is styled from the build plugin's
|
|
688
674
|
global map, under `BbConfirm` (or a named scope's, for a confirm called
|
|
689
|
-
inside a `<BbConfigScope>`). A muted wash on `header`,
|
|
675
|
+
inside a `<BbConfigScope>`). A muted wash on `header`, OK/Cancel spread on `footer`, a muted ✕ on
|
|
690
676
|
`close`, a primary ring with offset while `root:open`:
|
|
691
677
|
|
|
692
678
|
```ts
|
|
@@ -723,7 +709,7 @@ The map is typed where you write it by `satisfies BbComponentsMap`, never with a
|
|
|
723
709
|
|
|
724
710
|
### Gotchas and anti-patterns
|
|
725
711
|
|
|
726
|
-
- **Don't hand-build
|
|
712
|
+
- **Don't hand-build an OK/Cancel dialog** out of `BbDialog` + buttons — busy
|
|
727
713
|
states, dismissal semantics, ownership and focus handling already live here.
|
|
728
714
|
- **Two `confirm()` calls without an `await` between them ask both, newest
|
|
729
715
|
first** — the second covers the first. `await` each one when the questions
|
|
@@ -736,7 +722,7 @@ The map is typed where you write it by `satisfies BbComponentsMap`, never with a
|
|
|
736
722
|
warning).
|
|
737
723
|
- `text` beats `portal` — remove `text` when you want the portal body.
|
|
738
724
|
- With `returning: true`, an implicit dismiss under the default
|
|
739
|
-
`
|
|
725
|
+
`dismissAsCancel: true` resolves with `cancel.onClick`'s return value — give Cancel a
|
|
740
726
|
callback that returns a sensible "declined" value.
|
|
741
727
|
System dismissals (`duration`, `dismissAll()`, owner unmount) still resolve
|
|
742
728
|
`false`, so handle `false` too.
|
|
@@ -749,10 +735,10 @@ The map is typed where you write it by `satisfies BbComponentsMap`, never with a
|
|
|
749
735
|
- Keep `title` and `text` specific — name the object and the consequence
|
|
750
736
|
("Delete invoice INV-2048? This cannot be undone."), not a generic "Are you
|
|
751
737
|
sure?".
|
|
752
|
-
- The
|
|
738
|
+
- The OK button label should be a verb that matches the action (_Delete_,
|
|
753
739
|
_Publish_), not "OK" — the defaults are placeholders, not recommendations.
|
|
754
740
|
- Focus is trapped in the dialog and returns to the trigger on close. `Escape`
|
|
755
|
-
and the backdrop dismiss it (as a
|
|
741
|
+
and the backdrop dismiss it (as a Cancel) unless you set `persistent`. The X
|
|
756
742
|
button is separate: `persistent` does not hide it, `hideClose` does. Use
|
|
757
743
|
`focusTarget` to focus a specific element (e.g. an input in a portal).
|
|
758
744
|
- While a callback runs, the dialog blocks every escape hatch by design —
|
|
@@ -778,7 +764,7 @@ The map is typed where you write it by `satisfies BbComponentsMap`, never with a
|
|
|
778
764
|
| `text` | The confirm's plain-text body — not a portal's content. |
|
|
779
765
|
| `footer` | The action buttons' band. |
|
|
780
766
|
| `close` | The ✕. |
|
|
781
|
-
| `action` | Every footer button —
|
|
767
|
+
| `action` | Every footer button — ok, cancel and each custom `actions` entry — at the button's root. A broadcast. |
|
|
782
768
|
|
|
783
769
|
States are listed in precedence order: when two are on at once and their entries conflict, the later one wins.
|
|
784
770
|
|
|
@@ -806,12 +792,10 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
806
792
|
- **CSS custom properties** listed on a node are declared on THAT node's root and read by elements inside it. Set one on that node's root or on the element inside it that reads it — the pt part that lands there is how you reach it (`pt:box="[--border-color:…]"` on a text input) — never on `BbConfirm`'s root, where the node's own declaration masks it (design-tokens guide, _Overriding one from a consumer app_, rule 0).
|
|
807
793
|
- Listed nodes are the ones `BbConfirm`'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/BbConfirm.tree.json` (a public component in it is a name: its own tree file has the rest).
|
|
808
794
|
|
|
809
|
-
- `BbConfirm` _(this component)_ — its own template binds: `
|
|
795
|
+
- `BbConfirm` _(this component)_ — its own template binds: `action` → `BbDialog`, `text` → `div.bb-confirm__text`; hands `BbDialog` the pt map `passthrough.forward(DIALOG_PARTS, BB_DIALOG_PT.states)` (ours → theirs)
|
|
810
796
|
- `BbDialog` _(public — [contract](./BbDialog.md))_ — its own pt parts (`BbDialog`): `header` → `div.bb-dialog__header`, `title` → `span.bb-dialog__title`, `description` → `p.bb-dialog__description`, `close` → `CloseButton`, `content` → `div.bb-dialog__content`, `footer` → `div.bb-dialog__footer`; hands `BbOffCanvas` the pt map `{ root: 'root', header: 'header', title: 'title', description: 'description', content: 'content', footer: 'footer', close: 'close', sheet: 'root', }` (ours → theirs); documented CSS variables: `--px`, `--close-size`
|
|
811
797
|
- `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
812
798
|
- `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`; also mounts `CloseButton`
|
|
813
|
-
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
|
|
814
|
-
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
815
799
|
|
|
816
800
|
## See Also
|
|
817
801
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- Safety level: **Consumer API**
|
|
6
6
|
- Group: **Overlay**
|
|
7
|
-
- Description: Registers named slot content that confirm() renders via `portal`; slot `{ data,
|
|
7
|
+
- Description: Registers named slot content that confirm() renders via `portal`; slot `{ data, ok, cancel }`.
|
|
8
8
|
- Usage rule: Prefer this component for consumer-facing implementations.
|
|
9
9
|
- Implementation source (only when the contract below is not enough): [source/BbConfirmPortal.md](./source/BbConfirmPortal.md)
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
## Slots
|
|
22
22
|
|
|
23
|
-
- `default` — scope: `BbConfirmPortalSlotProps` `{ data: P;
|
|
23
|
+
- `default` — scope: `BbConfirmPortalSlotProps` `{ data: P; ok: () => void; cancel: () => void }`
|
|
24
24
|
|
|
25
25
|
## See Also
|
|
26
26
|
|
package/dist/ai/BbDatePicker.md
CHANGED
|
@@ -476,6 +476,7 @@ and digit typeahead; the time rail exposes labelled columns. Always pass a
|
|
|
476
476
|
| `ampm` | `boolean \| undefined` | `false` | | 12-hour display with an AM/PM column (requires `type="datetime"`); emits stay 24h. |
|
|
477
477
|
| `anchor` | `ElementOrComponentRef \| undefined` | | | Element or component ref the popover positions itself relative to. Defaults to the activator when omitted (anchor to a larger row while a smaller element stays the click target). |
|
|
478
478
|
| `boundary` | `ElementOrComponentRefOrSelector \| undefined` | | | Constrains the popover within a bounding element or CSS selector: sideways only, alongside the trigger; it flips at the viewport. |
|
|
479
|
+
| `clearable` | `boolean \| undefined` | `false` | | Clicking the selected date (week, month, year) again clears a single value. Off: re-picking keeps it. `multiple` and `range` ignore it. |
|
|
479
480
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the activator and the calendar. |
|
|
480
481
|
| `disableFlip` | `boolean \| undefined` | `false` | | Disable the automatic flip to the opposite side on overflow. |
|
|
481
482
|
| `eager` | `boolean \| undefined` | `false` | | Render popover content before it is first shown. |
|
|
@@ -569,12 +570,6 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
569
570
|
| `--py` | `.bb-date-picker__panel` | `8px` | |
|
|
570
571
|
| `--nav-button-h` | `.bb-date-picker__panel` | `24px` | |
|
|
571
572
|
| `--unit-row` | `.bb-date-picker__panel` | `calc(var(--cell) * 1.25)` | Row pitch for the coarse grids (month/year), where a "row" is one of four month rows rather than a week. Roomier than --cell because twelve months in a 4×3 grid have space the 6×7 day grid does not. |
|
|
572
|
-
| `--sheet-cell` | `.bb-date-picker__sheet` | `40px` | |
|
|
573
|
-
| `--cell` | `.bb-date-picker__sheet` | `var(--sheet-cell)` | |
|
|
574
|
-
| `--px` | `.bb-date-picker__sheet` | `6px` | |
|
|
575
|
-
| `--py` | `.bb-date-picker__sheet` | `8px` | |
|
|
576
|
-
| `--nav-button-h` | `.bb-date-picker__sheet` | `40px` | |
|
|
577
|
-
| `--unit-row` | `.bb-date-picker__sheet` | `calc(var(--cell) * 1.25)` | |
|
|
578
573
|
| `--sheet-cell` | `.bb-date-picker__panel--sheet` | `inherit` | |
|
|
579
574
|
| `--cell` | `.bb-date-picker__panel--sheet` | `inherit` | |
|
|
580
575
|
| `--px` | `.bb-date-picker__panel--sheet` | `inherit` | |
|
|
@@ -984,7 +984,7 @@ label>')` matches nothing; query each segment by its own label instead. See
|
|
|
984
984
|
| `append:icon` | `string \| undefined` | | | Name of the icon to be added at the end of the input. |
|
|
985
985
|
| `autocomplete` | `string \| undefined` | `'off'` | | Guides the browser as to the type of information expected in the field. |
|
|
986
986
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
987
|
-
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. |
|
|
987
|
+
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with, and lets re-picking the selected date clear it. |
|
|
988
988
|
| `compact` | `boolean \| undefined` | `undefined` | | Compact density: the field uses the `-compact` twins of `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y`, so a `--bb-input-h` set on the component is ignored while it is on. Size a compact field with `--bb-input-h-compact` (and `--bb-input-py-compact`). |
|
|
989
989
|
| `description` | `string \| undefined` | | | Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`. |
|
|
990
990
|
| `disableCalendar` | `boolean \| "mobile" \| "desktop" \| undefined` | `false` | | Disables the calendar: hides the trigger button and prevents the popover from opening. Use `'desktop'` to disable it on desktop only (keeping the calendar for mobile, complementing `disableWriting: 'mobile'`) or `'mobile'` to disable it on mobile only. |
|
|
@@ -1143,7 +1143,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1143
1143
|
- `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`
|
|
1144
1144
|
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
1145
1145
|
- `CommonField` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'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`
|
|
1146
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'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 `
|
|
1146
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'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`
|
|
1147
1147
|
- Also mounts `BbIcon`
|
|
1148
1148
|
|
|
1149
1149
|
## See Also
|