bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.69
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 +230 -91
- package/bin/bitboss-ui-mcp.mjs +368 -142
- package/bin/bitboss-ui.mjs +24 -2073
- package/bin/cli.mjs +1922 -0
- package/dist/ai/BbAccordion.md +1 -1
- package/dist/ai/BbAlert.md +16 -12
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +3 -3
- package/dist/ai/BbBadge.md +5 -5
- package/dist/ai/BbBadgeButton.md +1 -1
- package/dist/ai/BbBaseButton.md +1 -1
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +3 -3
- package/dist/ai/BbButton.md +63 -10
- package/dist/ai/BbCalendar.md +15 -2
- package/dist/ai/BbCarousel.md +1093 -0
- package/dist/ai/BbCheckbox.md +28 -8
- package/dist/ai/BbCheckboxGroup.md +65 -32
- package/dist/ai/BbColorInput.md +18 -15
- package/dist/ai/BbColorPalette.md +9 -6
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +25 -22
- package/dist/ai/BbDatePicker.md +12 -6
- package/dist/ai/BbDatePickerInput.md +29 -18
- package/dist/ai/BbDialog.md +11 -10
- package/dist/ai/BbDropdown.md +36 -29
- package/dist/ai/BbDropdownButton.md +21 -21
- package/dist/ai/BbDropzone.md +5 -16
- package/dist/ai/BbForm.md +14 -8
- package/dist/ai/BbHost.md +20 -14
- package/dist/ai/BbHoverCard.md +2 -2
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +20 -16
- package/dist/ai/BbOffCanvas.md +15 -10
- package/dist/ai/BbPagination.md +15 -6
- package/dist/ai/BbPopover.md +16 -9
- package/dist/ai/BbRadio.md +30 -9
- package/dist/ai/BbRadioGroup.md +78 -35
- package/dist/ai/BbRating.md +13 -11
- package/dist/ai/BbSelect.md +84 -49
- package/dist/ai/BbSelectPopover.md +33 -31
- package/dist/ai/BbSlider.md +266 -66
- package/dist/ai/BbSpinner.md +3 -3
- package/dist/ai/BbSwitch.md +33 -9
- package/dist/ai/BbSwitchGroup.md +27 -18
- package/dist/ai/BbTable.md +28 -25
- package/dist/ai/BbTabs.md +29 -32
- package/dist/ai/BbTabsList.md +4 -4
- package/dist/ai/BbTabsRoot.md +2 -2
- package/dist/ai/BbTag.md +15 -14
- package/dist/ai/BbTextInput.md +32 -22
- package/dist/ai/BbTextarea.md +20 -18
- package/dist/ai/BbTimePicker.md +5 -5
- package/dist/ai/BbTimePickerInput.md +15 -14
- package/dist/ai/BbToast.md +72 -28
- package/dist/ai/BbTooltip.md +7 -6
- package/dist/ai/BbTree.md +1 -1
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/ClearableButton.md +1 -1
- package/dist/ai/CommonField.md +5 -5
- package/dist/ai/CommonFieldInput.md +3 -2
- package/dist/ai/CommonPopover.md +4 -4
- package/dist/ai/CommonTimeSelector.md +1 -1
- package/dist/ai/ErrorIcon.md +1 -1
- package/dist/ai/FlatListBox.md +5 -4
- package/dist/ai/GroupedListBox.md +5 -4
- package/dist/ai/ListBox.md +6 -5
- package/dist/ai/OptionsContainer.md +20 -4
- package/dist/ai/WarningIcon.md +1 -1
- package/dist/ai/changelog.json +1002 -39
- package/dist/ai/components.json +117 -246
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +15 -10
- package/dist/ai/guides/ai-router.md +15 -10
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/calendars-and-digits.md +123 -0
- package/dist/ai/guides/component-picker.md +1 -1
- package/dist/ai/guides/design-language.md +18 -14
- package/dist/ai/guides/design-tokens.md +85 -43
- package/dist/ai/guides/eslint-rules.md +21 -2
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inertia-helpers.md +322 -41
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +498 -189
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-rating.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-table.md +1 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +33 -15
- package/dist/ai/guides/migration/components/bb-toast.md +10 -9
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +345 -76
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +30 -13
- package/dist/ai/guides/options-items-playbook.md +5 -1
- package/dist/ai/guides/passthrough.md +150 -135
- package/dist/ai/guides/ssr-prefill.md +7 -1
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +14 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +23 -14
- package/dist/ai/helpers/inertia/useQuery.ts +74 -0
- package/dist/ai/helpers/inertia/useQueryObject.ts +33 -1
- package/dist/ai/helpers/inertia/useRouteQuery.ts +158 -30
- package/dist/ai/index.md +5 -3
- package/dist/ai/manifest/common.json +13 -15
- package/dist/ai/manifest/components/BbAccordion.tree.json +22 -4
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAlert.tree.json +26 -3
- package/dist/ai/manifest/components/BbAsterisk.tree.json +7 -1
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbAvatar.tree.json +16 -2
- package/dist/ai/manifest/components/BbBadge.json +4 -3
- package/dist/ai/manifest/components/BbBadge.tree.json +39 -4
- package/dist/ai/manifest/components/BbBadgeButton.tree.json +2 -2
- package/dist/ai/manifest/components/BbBaseButton.tree.json +16 -1
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +23 -2
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +21 -4
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +26 -2
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +34 -4
- package/dist/ai/manifest/components/BbButton.json +5 -4
- package/dist/ai/manifest/components/BbButton.tree.json +78 -5
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbCalendar.tree.json +81 -5
- package/dist/ai/manifest/components/BbCarousel.json +59 -0
- package/dist/ai/manifest/components/BbCarousel.tree.json +135 -0
- package/dist/ai/manifest/components/BbCheckbox.json +5 -4
- package/dist/ai/manifest/components/BbCheckbox.tree.json +31 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.json +18 -15
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +89 -5
- package/dist/ai/manifest/components/BbCollapsible.tree.json +11 -1
- package/dist/ai/manifest/components/BbColorInput.json +7 -6
- package/dist/ai/manifest/components/BbColorInput.tree.json +49 -4
- package/dist/ai/manifest/components/BbColorPalette.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.tree.json +36 -2
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +3 -2
- package/dist/ai/manifest/components/BbConfirm.tree.json +27 -3
- package/dist/ai/manifest/components/BbDatePicker.json +7 -6
- package/dist/ai/manifest/components/BbDatePicker.tree.json +42 -3
- package/dist/ai/manifest/components/BbDatePickerInput.json +7 -6
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +86 -5
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +28 -3
- package/dist/ai/manifest/components/BbDropdown.json +14 -10
- package/dist/ai/manifest/components/BbDropdown.tree.json +80 -3
- package/dist/ai/manifest/components/BbDropdownButton.json +14 -11
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +47 -4
- package/dist/ai/manifest/components/BbDropzone.json +2 -1
- package/dist/ai/manifest/components/BbDropzone.tree.json +27 -1
- package/dist/ai/manifest/components/BbForm.json +2 -2
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +3 -3
- package/dist/ai/manifest/components/BbHoverCard.tree.json +18 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIcon.tree.json +7 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.tree.json +27 -1
- package/dist/ai/manifest/components/BbNumberInput.json +6 -5
- package/dist/ai/manifest/components/BbNumberInput.tree.json +40 -3
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +55 -2
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +23 -3
- package/dist/ai/manifest/components/BbPopover.json +5 -4
- package/dist/ai/manifest/components/BbPopover.tree.json +20 -2
- package/dist/ai/manifest/components/BbProgress.tree.json +9 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +30 -2
- package/dist/ai/manifest/components/BbRadioGroup.json +22 -19
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +88 -5
- package/dist/ai/manifest/components/BbRating.json +6 -5
- package/dist/ai/manifest/components/BbRating.removed.json +1 -0
- package/dist/ai/manifest/components/BbRating.tree.json +37 -2
- package/dist/ai/manifest/components/BbSelect.json +13 -11
- package/dist/ai/manifest/components/BbSelect.tree.json +70 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +17 -13
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +94 -8
- package/dist/ai/manifest/components/BbSlider.json +30 -27
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +48 -3
- package/dist/ai/manifest/components/BbSmoothHeight.tree.json +10 -1
- package/dist/ai/manifest/components/BbSpinner.tree.json +21 -2
- package/dist/ai/manifest/components/BbSwitch.json +3 -2
- package/dist/ai/manifest/components/BbSwitch.tree.json +31 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +9 -7
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +65 -3
- package/dist/ai/manifest/components/BbTable.json +10 -9
- package/dist/ai/manifest/components/BbTable.tree.json +144 -5
- package/dist/ai/manifest/components/BbTabs.json +7 -6
- package/dist/ai/manifest/components/BbTabs.removed.json +5 -1
- package/dist/ai/manifest/components/BbTabs.tree.json +34 -3
- package/dist/ai/manifest/components/BbTabsList.json +4 -4
- package/dist/ai/manifest/components/BbTabsList.removed.json +5 -1
- package/dist/ai/manifest/components/BbTabsList.tree.json +24 -2
- package/dist/ai/manifest/components/BbTabsPanels.tree.json +16 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +3 -3
- package/dist/ai/manifest/components/BbTag.json +7 -6
- package/dist/ai/manifest/components/BbTag.tree.json +49 -4
- package/dist/ai/manifest/components/BbTextInput.json +6 -5
- package/dist/ai/manifest/components/BbTextInput.tree.json +43 -3
- package/dist/ai/manifest/components/BbTextarea.json +7 -6
- package/dist/ai/manifest/components/BbTextarea.tree.json +46 -3
- package/dist/ai/manifest/components/BbTimePicker.json +7 -6
- package/dist/ai/manifest/components/BbTimePicker.tree.json +30 -3
- package/dist/ai/manifest/components/BbTimePickerInput.json +7 -6
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +58 -6
- package/dist/ai/manifest/components/BbToast.json +3 -2
- package/dist/ai/manifest/components/BbToast.tree.json +46 -2
- package/dist/ai/manifest/components/BbTooltip.json +4 -3
- package/dist/ai/manifest/components/BbTooltip.tree.json +17 -1
- package/dist/ai/manifest/components/BbTree.tree.json +14 -1
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/ClearableButton.tree.json +8 -2
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonField.tree.json +68 -1
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +38 -6
- package/dist/ai/manifest/components/CommonPopover.json +7 -5
- package/dist/ai/manifest/components/CommonPopover.tree.json +11 -1
- package/dist/ai/manifest/components/CommonTimeSelector.tree.json +18 -2
- package/dist/ai/manifest/components/ErrorIcon.tree.json +8 -2
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +4 -3
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +4 -3
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +4 -3
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/components/WarningIcon.tree.json +8 -2
- package/dist/ai/manifest/index.json +6 -5
- package/dist/ai/manifest/meta.json +23 -153
- package/dist/ai/manifest/types.advanced.json +78 -77
- package/dist/ai/manifest/types.api.json +29 -19
- package/dist/ai/manifest/types.wrapper.json +115 -112
- package/dist/ai/recipes/inertia/approvals-inbox.md +10 -10
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +24 -20
- package/dist/ai/recipes/inertia/onboarding.md +10 -10
- package/dist/ai/recipes/inertia/ownership-atlas.md +8 -8
- package/dist/ai/recipes/inertia/record-form.md +16 -16
- package/dist/ai/recipes/inertia/records-workspace.md +13 -12
- package/dist/ai/recipes/inertia/settings-workspace.md +16 -15
- package/dist/ai/recipes/inertia/upload-center.md +13 -13
- package/dist/ai/recipes/inertia/wizard-form.md +16 -16
- package/dist/ai/recipes/nuxt/approvals-inbox.md +13 -13
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +26 -22
- package/dist/ai/recipes/nuxt/onboarding.md +10 -10
- package/dist/ai/recipes/nuxt/ownership-atlas.md +12 -12
- package/dist/ai/recipes/nuxt/record-form.md +16 -16
- package/dist/ai/recipes/nuxt/records-workspace.md +16 -15
- package/dist/ai/recipes/nuxt/settings-workspace.md +15 -14
- package/dist/ai/recipes/nuxt/upload-center.md +15 -15
- package/dist/ai/recipes/nuxt/wizard-form.md +17 -17
- package/dist/ai/recipes/vue/approvals-inbox.md +15 -13
- package/dist/ai/recipes/vue/inline-edit-workspace.md +26 -22
- package/dist/ai/recipes/vue/onboarding.md +16 -11
- package/dist/ai/recipes/vue/ownership-atlas.md +12 -12
- package/dist/ai/recipes/vue/record-form.md +18 -16
- package/dist/ai/recipes/vue/records-workspace.md +18 -15
- package/dist/ai/recipes/vue/settings-workspace.md +18 -15
- package/dist/ai/recipes/vue/upload-center.md +15 -15
- package/dist/ai/recipes/vue/wizard-form.md +18 -16
- package/dist/ai/source/BbAccordion.md +11 -14
- package/dist/ai/source/BbAlert.md +103 -91
- package/dist/ai/source/BbAsterisk.md +6 -7
- package/dist/ai/source/BbAvatar.md +42 -41
- package/dist/ai/source/BbBadge.md +100 -89
- package/dist/ai/source/BbBadgeButton.md +80 -76
- package/dist/ai/source/BbBaseButton.md +284 -276
- package/dist/ai/source/BbBaseCheckboxIcon.md +76 -68
- package/dist/ai/source/BbBaseRadioIcon.md +80 -68
- package/dist/ai/source/BbBaseSwitchIcon.md +98 -74
- package/dist/ai/source/BbBreadcrumbs.md +76 -63
- package/dist/ai/source/BbButton.md +101 -77
- package/dist/ai/source/BbCalendar.md +166 -176
- package/dist/ai/source/BbCarousel.md +2897 -0
- package/dist/ai/source/BbCheckbox.md +230 -192
- package/dist/ai/source/BbCheckboxGroup.md +172 -79
- package/dist/ai/source/BbCollapsible.md +7 -10
- package/dist/ai/source/BbColorInput.md +256 -243
- package/dist/ai/source/BbColorPalette.md +239 -160
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +38 -32
- package/dist/ai/source/BbConfirmPortal.md +30 -26
- package/dist/ai/source/BbDatePicker.md +218 -187
- package/dist/ai/source/BbDatePickerInput.md +789 -428
- package/dist/ai/source/BbDialog.md +207 -191
- package/dist/ai/source/BbDropdown.md +326 -234
- package/dist/ai/source/BbDropdownButton.md +115 -68
- package/dist/ai/source/BbDropdownGroup.md +271 -216
- package/dist/ai/source/BbDropzone.md +101 -100
- package/dist/ai/source/BbForm.md +29 -29
- package/dist/ai/source/BbHost.md +6 -6
- package/dist/ai/source/BbHoverCard.md +34 -20
- package/dist/ai/source/BbHoverCardPortal.md +9 -12
- package/dist/ai/source/BbIcon.md +32 -30
- package/dist/ai/source/BbIndicator.md +76 -70
- package/dist/ai/source/BbNumberInput.md +334 -313
- package/dist/ai/source/BbOffCanvas.md +245 -216
- package/dist/ai/source/BbPagination.md +144 -116
- package/dist/ai/source/BbPopover.md +49 -31
- package/dist/ai/source/BbPopoverPortal.md +11 -14
- package/dist/ai/source/BbProgress.md +20 -12
- package/dist/ai/source/BbRadio.md +205 -181
- package/dist/ai/source/BbRadioGroup.md +461 -364
- package/dist/ai/source/BbRating.md +212 -177
- package/dist/ai/source/BbSelect.md +514 -482
- package/dist/ai/source/BbSelectPopover.md +497 -413
- package/dist/ai/source/BbSlider.md +1208 -777
- package/dist/ai/source/BbSmoothHeight.md +8 -9
- package/dist/ai/source/BbSpinner.md +20 -20
- package/dist/ai/source/BbSwitch.md +25 -13
- package/dist/ai/source/BbSwitchGroup.md +115 -34
- package/dist/ai/source/BbTable.md +577 -531
- package/dist/ai/source/BbTabs.md +134 -116
- package/dist/ai/source/BbTabsList.md +164 -136
- package/dist/ai/source/BbTabsPanels.md +128 -113
- package/dist/ai/source/BbTabsRoot.md +125 -110
- package/dist/ai/source/BbTag.md +286 -281
- package/dist/ai/source/BbTextInput.md +59 -50
- package/dist/ai/source/BbTextarea.md +85 -71
- package/dist/ai/source/BbTimePicker.md +145 -126
- package/dist/ai/source/BbTimePickerInput.md +383 -316
- package/dist/ai/source/BbToast.md +97 -44
- package/dist/ai/source/BbToastPortal.md +56 -36
- package/dist/ai/source/BbTooltip.md +155 -129
- package/dist/ai/source/BbTree.md +16 -12
- package/dist/ai/source/CommonField.md +94 -59
- package/dist/ai/source/CommonFieldInput.md +18 -13
- package/dist/ai/source/CommonPopover.md +28 -9
- package/dist/ai/source/CommonTimeSelector.md +41 -8
- package/dist/ai/source/FlatListBox.md +16 -5
- package/dist/ai/source/GroupedListBox.md +18 -6
- package/dist/ai/source/ListBox.md +2 -1
- package/dist/ai/source/OptionsContainer.md +82 -4
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/pause.svg_raw.js +3 -0
- package/dist/assets/svgs/play.svg_raw.js +3 -0
- package/dist/assets/svgs/star.svg_raw.js +1 -1
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/calendar-runtime.js +112 -0
- package/dist/calendars.js +83 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +2 -2
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +44 -0
- package/dist/components/BbAccordion/types.d.ts +5 -6
- package/dist/components/BbAlert/BbAlert.vue.d.ts +5 -4
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +52 -48
- package/dist/components/BbAlert/ptKeys.generated.d.ts +104 -0
- package/dist/components/BbAlert/types.d.ts +16 -9
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +2 -2
- package/dist/components/BbAsterisk/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbAsterisk/types.d.ts +4 -5
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +3 -3
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +12 -0
- package/dist/components/BbAvatar/types.d.ts +5 -6
- package/dist/components/BbBadge/BbBadge.vue.d.ts +4 -4
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +75 -71
- package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +2 -2
- package/dist/components/BbBadge/badgeButtonContext.d.ts +5 -5
- package/dist/components/BbBadge/ptKeys.generated.d.ts +160 -0
- package/dist/components/BbBadge/types.d.ts +17 -10
- package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +2 -2
- package/dist/components/BbBaseButton/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbBaseButton/types.d.ts +13 -6
- package/dist/components/BbBaseButton/useLinkState.d.ts +1 -1
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseCheckboxIcon/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +12 -6
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseRadioIcon/ptKeys.generated.d.ts +36 -0
- package/dist/components/BbBaseRadioIcon/types.d.ts +12 -6
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseSwitchIcon/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbBaseSwitchIcon/types.d.ts +12 -6
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +2 -2
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBreadcrumbs/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbBreadcrumbs/types.d.ts +15 -8
- package/dist/components/BbButton/BbButton.vue.d.ts +6 -4
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +130 -118
- package/dist/components/BbButton/ptKeys.generated.d.ts +196 -0
- package/dist/components/BbButton/toggleRoving.js +29 -28
- package/dist/components/BbButton/types.d.ts +29 -21
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +9 -71
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +327 -340
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +67 -65
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +76 -67
- package/dist/components/BbCalendar/calendarHost.d.ts +1 -1
- package/dist/components/BbCalendar/calendarMath.d.ts +102 -0
- package/dist/components/BbCalendar/calendarMath.js +124 -0
- package/dist/components/BbCalendar/ptKeys.generated.d.ts +248 -0
- package/dist/components/BbCalendar/types.d.ts +15 -9
- package/dist/components/BbCalendar/useCalendarContext.d.ts +43 -17
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +71 -4
- package/dist/components/BbCalendar/useCalendarGrid.js +264 -209
- package/dist/components/BbCalendar/useDayGrid.d.ts +26 -8
- package/dist/components/BbCalendar/useDayGrid.js +178 -172
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +18 -3
- package/dist/components/BbCalendar/useDayjsLocale.js +28 -28
- package/dist/components/BbCalendar/useToday.d.ts +5 -3
- package/dist/components/BbCalendar/useToday.js +22 -12
- package/dist/components/BbCarousel/BbCarousel.vue.d.ts +51 -0
- package/dist/components/BbCarousel/BbCarousel.vue.js +5 -0
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +818 -0
- package/dist/components/BbCarousel/ptKeys.generated.d.ts +60 -0
- package/dist/components/BbCarousel/types.d.ts +213 -0
- package/dist/components/BbCarousel/types.js +27 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +8 -6
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +123 -111
- package/dist/components/BbCheckbox/ptKeys.generated.d.ts +220 -0
- package/dist/components/BbCheckbox/types.d.ts +30 -14
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +167 -306
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +222 -189
- package/dist/components/BbCheckboxGroup/ptKeys.generated.d.ts +492 -0
- package/dist/components/BbCheckboxGroup/types.d.ts +42 -28
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +4 -4
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbCollapsible/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbCollapsible/types.d.ts +5 -6
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +16 -14
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +206 -195
- package/dist/components/BbColorInput/ptKeys.generated.d.ts +656 -0
- package/dist/components/BbColorInput/types.d.ts +30 -20
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +4 -4
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +331 -296
- package/dist/components/BbColorPalette/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbColorPalette/types.d.ts +17 -10
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -1
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -1
- package/dist/components/BbConfirm/confirmEntry.d.ts +2 -2
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +184 -0
- package/dist/components/BbConfirm/types.d.ts +14 -7
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -97
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +201 -197
- package/dist/components/BbDatePicker/ptKeys.generated.d.ts +324 -0
- package/dist/components/BbDatePicker/types.d.ts +22 -15
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +20 -309
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +793 -660
- package/dist/components/BbDatePickerInput/calendarFields.d.ts +91 -0
- package/dist/components/BbDatePickerInput/calendarFields.js +188 -0
- package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +6 -0
- package/dist/components/BbDatePickerInput/dateFieldLayout.js +11 -1
- package/dist/components/BbDatePickerInput/ptKeys.generated.d.ts +1156 -0
- package/dist/components/BbDatePickerInput/types.d.ts +36 -26
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +9 -8
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +211 -204
- package/dist/components/BbDialog/ptKeys.generated.d.ts +100 -0
- package/dist/components/BbDialog/types.d.ts +26 -20
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +1 -1
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +7 -6
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +399 -377
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +1 -1
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +297 -292
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +3 -3
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/normalizeGroups.d.ts +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +228 -0
- package/dist/components/BbDropdown/types.d.ts +65 -48
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +3 -3
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +5 -5
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +7 -6
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +168 -144
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +616 -0
- package/dist/components/BbDropdownButton/types.d.ts +47 -23
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +7 -26
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/BbDropzone/ptKeys.generated.d.ts +76 -0
- package/dist/components/BbDropzone/types.d.ts +15 -8
- package/dist/components/BbForm/BbForm.vue.d.ts +5 -5
- package/dist/components/BbForm/BbFormCustomField.d.ts +1 -1
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.d.ts +4 -4
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbForm/formFields.d.ts +5 -5
- package/dist/components/BbForm/formSchema.d.ts +4 -4
- package/dist/components/BbHost/BbHost.vue.d.ts +1 -1
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +4 -4
- package/dist/components/BbHost/types.d.ts +3 -3
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +4 -4
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +169 -162
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +1 -1
- package/dist/components/BbHoverCard/ptKeys.generated.d.ts +44 -0
- package/dist/components/BbHoverCard/types.d.ts +8 -9
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -3
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIcon/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbIcon/types.d.ts +7 -8
- package/dist/components/BbIndicator/BbIndicator.vue.d.ts +4 -4
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbIndicator/ptKeys.generated.d.ts +52 -0
- package/dist/components/BbIndicator/types.d.ts +15 -8
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +15 -12
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +327 -311
- package/dist/components/BbNumberInput/numberDisplay.d.ts +10 -11
- package/dist/components/BbNumberInput/ptKeys.generated.d.ts +476 -0
- package/dist/components/BbNumberInput/types.d.ts +33 -22
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +408 -406
- package/dist/components/BbOffCanvas/ptKeys.generated.d.ts +88 -0
- package/dist/components/BbOffCanvas/sheetAttrs.d.ts +1 -1
- package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -2
- package/dist/components/BbOffCanvas/types.d.ts +30 -23
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.d.ts +3 -3
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +110 -114
- package/dist/components/BbPagination/paginationFit.d.ts +1 -1
- package/dist/components/BbPagination/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbPagination/types.d.ts +16 -8
- package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +121 -115
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +1 -1
- package/dist/components/BbPopover/ptKeys.generated.d.ts +52 -0
- package/dist/components/BbPopover/types.d.ts +10 -11
- package/dist/components/BbProgress/BbProgress.vue.d.ts +2 -2
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbProgress/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbProgress/types.d.ts +4 -5
- package/dist/components/BbRadio/BbRadio.vue.d.ts +8 -6
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +134 -122
- package/dist/components/BbRadio/ptKeys.generated.d.ts +196 -0
- package/dist/components/BbRadio/types.d.ts +24 -13
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +152 -248
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +248 -215
- package/dist/components/BbRadioGroup/ptKeys.generated.d.ts +492 -0
- package/dist/components/BbRadioGroup/types.d.ts +41 -24
- package/dist/components/BbRating/BbRating.vue.d.ts +9 -7
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +153 -142
- package/dist/components/BbRating/ptKeys.generated.d.ts +152 -0
- package/dist/components/BbRating/types.d.ts +31 -20
- package/dist/components/BbRating/types.js +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +269 -483
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +362 -341
- package/dist/components/BbSelect/ptKeys.generated.d.ts +960 -0
- package/dist/components/BbSelect/types.d.ts +50 -37
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +23 -50
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +750 -730
- package/dist/components/BbSelectPopover/knownItems.d.ts +4 -4
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +148 -0
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +1 -1
- package/dist/components/BbSelectPopover/types.d.ts +44 -31
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +27 -86
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +414 -331
- package/dist/components/BbSlider/ptKeys.generated.d.ts +316 -0
- package/dist/components/BbSlider/types.d.ts +162 -61
- package/dist/components/BbSlider/types.js +2 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -3
- package/dist/components/BbSmoothHeight/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbSmoothHeight/types.d.ts +5 -6
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +3 -3
- package/dist/components/BbSpinner/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbSpinner/types.d.ts +5 -6
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +6 -6
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/components/BbSwitch/ptKeys.generated.d.ts +220 -0
- package/dist/components/BbSwitch/types.d.ts +15 -5
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +38 -116
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +13 -10
- package/dist/components/BbSwitchGroup/ptKeys.generated.d.ts +332 -0
- package/dist/components/BbSwitchGroup/types.d.ts +14 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +13 -13
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1360 -1366
- package/dist/components/BbTable/BbTableDataRow.d.ts +4 -4
- package/dist/components/BbTable/BbTableEdgeRow.d.ts +5 -5
- package/dist/components/BbTable/BbTableExpandRow.d.ts +2 -2
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +3 -3
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +1 -1
- package/dist/components/BbTable/gridWidgets.d.ts +1 -1
- package/dist/components/BbTable/measuredFloors.d.ts +1 -1
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +1 -1
- package/dist/components/BbTable/ptKeys.generated.d.ts +280 -0
- package/dist/components/BbTable/types.d.ts +30 -22
- package/dist/components/BbTable/utils.d.ts +5 -5
- package/dist/components/BbTable/utils.js +89 -88
- package/dist/components/BbTabs/BbTabs.vue.d.ts +41 -69
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +21 -15
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -3
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +121 -122
- package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +3 -3
- package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +2 -2
- package/dist/components/BbTabs/ptKeys.generated.d.ts +226 -0
- package/dist/components/BbTabs/types.d.ts +41 -23
- package/dist/components/BbTag/BbTag.vue.d.ts +18 -16
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +248 -238
- package/dist/components/BbTag/ptKeys.generated.d.ts +540 -0
- package/dist/components/BbTag/types.d.ts +28 -18
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +19 -171
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +176 -165
- package/dist/components/BbTextInput/ptKeys.generated.d.ts +608 -0
- package/dist/components/BbTextInput/types.d.ts +30 -21
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +19 -171
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +206 -196
- package/dist/components/BbTextarea/ptKeys.generated.d.ts +608 -0
- package/dist/components/BbTextarea/types.d.ts +29 -20
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +13 -33
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +137 -136
- package/dist/components/BbTimePicker/ptKeys.generated.d.ts +80 -0
- package/dist/components/BbTimePicker/types.d.ts +19 -13
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +18 -201
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +421 -397
- package/dist/components/BbTimePickerInput/ptKeys.generated.d.ts +732 -0
- package/dist/components/BbTimePickerInput/types.d.ts +35 -23
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue.d.ts +2 -2
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +60 -53
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +2 -2
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +5 -3
- package/dist/components/BbToast/ptKeys.generated.d.ts +232 -0
- package/dist/components/BbToast/types.d.ts +22 -13
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +6 -6
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +99 -88
- package/dist/components/BbTooltip/ptKeys.generated.d.ts +36 -0
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +2 -2
- package/dist/components/BbTooltip/types.d.ts +16 -9
- package/dist/components/BbTree/BbTree.vue.d.ts +7 -11
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +1 -1
- package/dist/components/BbTree/context.d.ts +2 -2
- package/dist/components/BbTree/ptKeys.generated.d.ts +16 -0
- package/dist/components/BbTree/types.d.ts +5 -6
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -2
- package/dist/components/ChipsBox/types.d.ts +2 -2
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -2
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +2 -2
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -2
- package/dist/components/CommaBox/types.d.ts +2 -2
- package/dist/components/CommonField/CommonField.vue.d.ts +7 -7
- package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +9 -4
- package/dist/components/CommonField/messageHeightMatrix.d.ts +1 -1
- package/dist/components/CommonField/types.d.ts +18 -14
- package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +3 -3
- package/dist/components/CommonFieldInput/types.d.ts +4 -4
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +4 -4
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +56 -55
- package/dist/components/CommonPopover/resolvePlacement.d.ts +9 -0
- package/dist/components/CommonPopover/resolvePlacement.js +9 -0
- package/dist/components/CommonPopover/types.d.ts +5 -5
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +2 -2
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +110 -99
- package/dist/components/CommonTimeSelector/useMeridiem.d.ts +1 -1
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -2
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -2
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +3 -3
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -2
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +3 -3
- package/dist/components/ListBox/ListBox.vue.d.ts +2 -2
- package/dist/components/ListBox/types.d.ts +3 -3
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +101 -69
- package/dist/components/OptionsContainer/types.d.ts +8 -3
- package/dist/components/Transitions/Slide.vue.d.ts +5 -3
- package/dist/components/Transitions/Slide.vue.js +1 -1
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +2 -2
- package/dist/composables/autoHost.d.ts +1 -1
- package/dist/composables/formSubmitLock.d.ts +5 -5
- package/dist/composables/hostOpenings.d.ts +6 -6
- package/dist/composables/hostRegistry.d.ts +2 -2
- package/dist/composables/overlayRegistry.d.ts +25 -25
- package/dist/composables/overlayRegistry.js +13 -7
- package/dist/composables/useBaseOptions.d.ts +2 -2
- package/dist/composables/useBbConfig.d.ts +5 -5
- package/dist/composables/useBbDialog.d.ts +17 -17
- package/dist/composables/useBbDialog.js +2 -1
- package/dist/composables/useBbDropdown.d.ts +1 -1
- package/dist/composables/useBbForm.d.ts +2 -2
- package/dist/composables/useBbFormField.d.ts +4 -4
- package/dist/composables/useBbOffCanvas.d.ts +6 -6
- package/dist/composables/useBbTable.d.ts +4 -4
- package/dist/composables/useBbTabs.d.ts +4 -4
- package/dist/composables/useBbTabs.js +99 -94
- package/dist/composables/useBreakpoint.d.ts +1 -1
- package/dist/composables/useCharacterCounter.d.ts +2 -2
- package/dist/composables/useChoiceIndicator.d.ts +2 -2
- package/dist/composables/useClosingInert.d.ts +1 -1
- package/dist/composables/useConfig.d.ts +3 -3
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +18 -18
- package/dist/composables/useDirection.d.ts +43 -0
- package/dist/composables/useDirection.js +12 -0
- package/dist/composables/useFormBinding.d.ts +5 -5
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/useId.d.ts +1 -1
- package/dist/composables/useItemsGetter.d.ts +3 -3
- package/dist/composables/useKeyboardInset.d.ts +1 -1
- package/dist/composables/useListboxFocus.d.ts +1 -1
- package/dist/composables/useLocale.d.ts +2 -2
- package/dist/composables/useOnDemandOpener.d.ts +3 -3
- package/dist/composables/useOverlayNavigation.d.ts +1 -1
- package/dist/composables/useOverlayYield.d.ts +1 -1
- package/dist/composables/usePassthrough.d.ts +13 -11
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useQuery.d.ts +1 -1
- package/dist/composables/useRefusedCloseAnnouncement.d.ts +1 -1
- package/dist/composables/useSafeArea.d.ts +1 -1
- package/dist/composables/useSafeAreaInternal.d.ts +1 -1
- package/dist/composables/useSegmentedFields.d.ts +25 -0
- package/dist/composables/useSegmentedFields.js +165 -115
- package/dist/composables/useServerPrefetch.d.ts +2 -2
- package/dist/composables/useSheetSurface.d.ts +1 -1
- package/dist/composables/useSsrState.d.ts +2 -2
- package/dist/composables/useToast.d.ts +13 -5
- package/dist/composables/useToast.js +52 -38
- package/dist/composables/useTypeahead.js +22 -21
- package/dist/deprecation/ai-deprecations.json.d.ts +160 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.d.ts +1 -1
- package/dist/directives/bbColor.d.ts +1 -1
- package/dist/directives/bbDate.d.ts +1 -1
- package/dist/directives/bbDialog.d.ts +3 -3
- package/dist/directives/bbDropdown.d.ts +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/directives/bbHoverCard.d.ts +3 -3
- package/dist/directives/bbOffCanvas.d.ts +2 -2
- package/dist/directives/bbPopover.d.ts +3 -3
- package/dist/directives/bbTime.d.ts +1 -1
- package/dist/directives/bbTooltip.d.ts +4 -4
- package/dist/directives/directivePortal.d.ts +4 -4
- package/dist/directives/overlayTrigger.d.ts +4 -4
- package/dist/directives/overlayTrigger.js +2 -1
- package/dist/i18n/eraNames.d.ts +2 -0
- package/dist/i18n/eraNames.js +2013 -0
- package/dist/i18n/index.d.ts +9 -7
- package/dist/i18n/localeTags.d.ts +36 -0
- package/dist/i18n/locales/ar.json +176 -0
- package/dist/i18n/locales/cs.json +23 -3
- package/dist/i18n/locales/da.json +23 -3
- package/dist/i18n/locales/de-CH.json +23 -3
- package/dist/i18n/locales/de.json +23 -3
- package/dist/i18n/locales/el.json +23 -3
- package/dist/i18n/locales/en-GB.json +23 -3
- package/dist/i18n/locales/en.json +23 -3
- package/dist/i18n/locales/es-MX.json +23 -3
- package/dist/i18n/locales/es.json +23 -3
- package/dist/i18n/locales/fa.json +176 -0
- package/dist/i18n/locales/fi.json +23 -3
- package/dist/i18n/locales/fr.json +23 -3
- package/dist/i18n/locales/he.json +176 -0
- package/dist/i18n/locales/hu.json +23 -3
- package/dist/i18n/locales/it.json +23 -3
- package/dist/i18n/locales/ja.json +23 -3
- package/dist/i18n/locales/ko.json +23 -3
- package/dist/i18n/locales/nb.json +23 -3
- package/dist/i18n/locales/nl.json +23 -3
- package/dist/i18n/locales/pl.json +23 -3
- package/dist/i18n/locales/pt-BR.json +23 -3
- package/dist/i18n/locales/pt-PT.json +23 -3
- package/dist/i18n/locales/ro.json +23 -3
- package/dist/i18n/locales/ru.json +23 -3
- package/dist/i18n/locales/sv.json +23 -3
- package/dist/i18n/locales/tr.json +23 -3
- package/dist/i18n/locales/uk.json +23 -3
- package/dist/i18n/locales/zh-CN.json +23 -3
- package/dist/i18n/locales/zh-HK.json +23 -3
- package/dist/i18n/locales/zh-TW.json +23 -3
- package/dist/i18n/regionHints.js +22 -22
- package/dist/i18n/regions.d.ts +73 -24
- package/dist/i18n/regions.js +57 -12
- package/dist/index.d.ts +192 -190
- package/dist/index.js +55 -54
- package/dist/llms-full.txt +8848 -5872
- package/dist/llms-medium.txt +830 -506
- package/dist/llms.txt +6 -5
- package/dist/locale-blueprint.json +26 -3
- package/dist/locale-tags.js +81 -0
- package/dist/mcp-sdk.LICENSES.txt +210 -0
- package/dist/mcp-sdk.mjs +78 -0
- package/dist/nuxt-auto-imports.d.ts +1 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +5 -5
- package/dist/nuxt.js +26 -23
- package/dist/plugin.d.ts +2 -2
- package/dist/project-dts.d.ts +76 -14
- package/dist/project-dts.js +117 -63
- package/dist/setup-kit.LICENSES.txt +23 -0
- package/dist/setup-kit.mjs +9 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +3 -3
- package/dist/types/AlertVariant.d.ts +2 -2
- package/dist/types/BadgeVariant.d.ts +2 -2
- package/dist/types/ButtonVariant.d.ts +2 -2
- package/dist/types/CheckboxVariant.d.ts +9 -6
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/ColumnName.d.ts +1 -1
- package/dist/types/CommonProps.d.ts +25 -3
- package/dist/types/Config.d.ts +24 -110
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +2 -2
- package/dist/types/DatePickerType.d.ts +29 -2
- package/dist/types/DatePickerType.js +6 -2
- package/dist/types/DropdownItemVariant.d.ts +2 -2
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +2 -2
- package/dist/types/InputVariant.d.ts +58 -25
- package/dist/types/ItemAccessor.d.ts +7 -1
- package/dist/types/ItemProps.d.ts +3 -3
- package/dist/types/ItemsProvider.d.ts +2 -2
- package/dist/types/Placement.d.ts +7 -2
- package/dist/types/RadioVariant.d.ts +9 -6
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/ShapeErased.d.ts +1 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +2 -2
- package/dist/types/ToastVariant.d.ts +2 -2
- package/dist/types/TooltipVariant.d.ts +2 -2
- package/dist/types/fallthrough.d.ts +1 -1
- package/dist/types/passthrough.d.ts +23 -23
- package/dist/types/ptComponentMap.d.ts +29 -28
- package/dist/utilities/calendar/canonicalParts.d.ts +29 -0
- package/dist/utilities/calendar/canonicalParts.js +12 -0
- package/dist/utilities/calendar/digits.d.ts +18 -0
- package/dist/utilities/calendar/digits.js +26 -0
- package/dist/utilities/calendar/gregorian.d.ts +2 -0
- package/dist/utilities/calendar/gregorian.js +36 -0
- package/dist/utilities/calendar/index.d.ts +3 -0
- package/dist/utilities/calendar/index.js +1 -0
- package/dist/utilities/calendar/international.d.ts +19 -0
- package/dist/utilities/calendar/resolve.d.ts +32 -0
- package/dist/utilities/calendar/resolve.js +12 -0
- package/dist/utilities/calendar/runtime.d.ts +49 -0
- package/dist/utilities/calendar/types.d.ts +140 -0
- package/dist/utilities/calendar/types.js +83 -0
- package/dist/utilities/functions/convertDateValue.d.ts +15 -2
- package/dist/utilities/functions/convertDateValue.js +22 -17
- package/dist/utilities/functions/elementLabel.d.ts +1 -1
- package/dist/utilities/functions/extractDomContainer.d.ts +1 -1
- package/dist/utilities/functions/isDateDisabled.d.ts +9 -1
- package/dist/utilities/functions/isDateDisabled.js +38 -21
- package/dist/utilities/functions/itemProps.d.ts +1 -1
- package/dist/utilities/functions/normalizeDateBound.d.ts +45 -2
- package/dist/utilities/functions/normalizeDateBound.js +52 -11
- package/dist/utilities/functions/parseSize.d.ts +2 -2
- package/dist/utilities/functions/readableValue.d.ts +1 -1
- package/dist/utilities/functions/responsiveDefault.d.ts +1 -1
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/functions/slotKey.d.ts +1 -1
- package/dist/utilities/functions/toggleInput.d.ts +1 -1
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +3 -3
- package/dist/utilities/functions/when.d.ts +1 -1
- package/dist/utilities/misc/autofocus.d.ts +2 -2
- package/dist/utilities/misc/listboxMetrics.d.ts +2 -2
- package/dist/utilities/misc/maskaDataOptions.d.ts +1 -1
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +1 -1
- package/dist/utilities/misc/ssrValue.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +43 -0
- package/dist/utils/configDefaults.js +170 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/copyData.d.ts +2 -2
- package/dist/utils/cssLayers.d.ts +1 -1
- package/dist/utils/focusVisibility.d.ts +1 -1
- package/dist/utils/injectLibraryStyles.d.ts +1 -1
- package/dist/utils/overlayEscapeStack.d.ts +1 -1
- package/dist/utils/passthrough.d.ts +5 -8
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/passthroughDeduper.d.ts +1 -1
- package/dist/utils/releasedActivator.d.ts +20 -0
- package/dist/utils/releasedActivator.js +11 -0
- package/dist/utils/versionCheck.d.ts +1 -1
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +139 -218
- package/dist/vite.js +451 -425
- package/llms.txt +6 -5
- package/package.json +51 -19
- package/scripts/README.md +2 -1
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +107 -22
- package/scripts/lib/agent-refresh.mjs +151 -0
- package/scripts/lib/agent-setup.mjs +679 -0
- package/scripts/lib/carousel-items-without-slide.mjs +263 -0
- package/scripts/lib/carousel-prop-or-local.mjs +117 -0
- package/scripts/lib/check-fix.mjs +1 -1
- package/scripts/lib/collapsible-trigger-aria.mjs +1 -1
- package/scripts/lib/css-class-check.mjs +3 -3
- package/scripts/lib/css-local-check.mjs +25 -17
- package/scripts/lib/css-surface-answer.mjs +117 -0
- package/scripts/lib/define-preset-copy.mjs +1 -1
- package/scripts/lib/distributed-alias.mjs +81 -0
- package/scripts/lib/doc-sections.mjs +12 -4
- package/scripts/lib/dropdown-default-slot.mjs +1 -1
- package/scripts/lib/eslint-disable.mjs +60 -2
- package/scripts/lib/eslint-plugin.d.ts +13 -2
- package/scripts/lib/eslint-plugin.mjs +609 -64
- package/scripts/lib/form-v-model.mjs +1 -1
- package/scripts/lib/hand-imported-styles.mjs +2 -2
- package/scripts/lib/hand-roll-hints.mjs +25 -3
- package/scripts/lib/helper-canon.mjs +4 -4
- package/scripts/lib/helpers-add.mjs +39 -24
- package/scripts/lib/hidden-label-placeholder.mjs +1 -1
- package/scripts/lib/idiom-scan.mjs +12 -11
- package/scripts/lib/is-direct-run.mjs +20 -0
- package/scripts/lib/items-provider-context.mjs +1 -1
- package/scripts/lib/linked-target.mjs +26 -2
- package/scripts/lib/local-components.mjs +2 -2
- package/scripts/lib/locale-check.mjs +109 -13
- package/scripts/lib/mcp-config.mjs +140 -75
- package/scripts/lib/mcp-sdk.mjs +199 -0
- package/scripts/lib/migrate-fix.mjs +3 -3
- package/scripts/lib/plugin-options-check.mjs +170 -0
- package/scripts/lib/pnp.mjs +165 -0
- package/scripts/lib/portal-names.mjs +4 -4
- package/scripts/lib/prefer-v-bb-dialog.mjs +1 -1
- package/scripts/lib/project-variant-dts.mjs +182 -48
- package/scripts/lib/reactive-v-model.mjs +2 -2
- package/scripts/lib/redundant-item-accessor.mjs +1 -1
- package/scripts/lib/renamed-item-field.mjs +1 -1
- package/scripts/lib/renamed-slot-prop.mjs +524 -0
- package/scripts/lib/rule-registry.mjs +1 -1
- package/scripts/lib/setup-edits.mjs +1845 -0
- package/scripts/lib/setup.mjs +440 -0
- package/scripts/lib/slot-key.mjs +1 -1
- package/scripts/lib/slot-renames.mjs +3 -3
- package/scripts/lib/squashed-slot-words.mjs +1 -1
- package/scripts/lib/tab-links.mjs +2 -2
- package/scripts/lib/text-null-value.mjs +1 -1
- package/scripts/lib/toolchain-check.mjs +3 -3
- package/scripts/lib/tooling-options.mjs +87 -0
- package/scripts/lib/unimported-components.mjs +1 -1
- package/scripts/lib/unstyled-variants.mjs +1 -1
- package/scripts/lib/valid-locale.mjs +119 -0
- package/scripts/lib/validate-bb-markup.mjs +219 -115
- package/scripts/lib/wrapper-props.mjs +2 -2
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbNumberInput/warroom/corpus.d.ts +0 -58
- package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +0 -28
- package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +0 -2
- package/dist/components/BbNumberInput/warroom/harness.d.ts +0 -217
- package/dist/components/BbNumberInput/warroom/oracle.d.ts +0 -150
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/components/BbTable/warroom/harness.d.ts +0 -260
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utilities/functions/pipe.d.ts +0 -3
- package/dist/utilities/functions/range.js +0 -7
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
- package/scripts/lib/check-queue.mjs +0 -102
- package/scripts/lib/component-attr-targets.ts +0 -123
- package/scripts/lib/component-tree.ts +0 -648
- package/scripts/lib/consumer-install.mjs +0 -64
- package/scripts/lib/css-class-surface.mjs +0 -328
- package/scripts/lib/css-color-resolve.mjs +0 -296
- package/scripts/lib/css-comment-text.mjs +0 -16
- package/scripts/lib/design-token-manifest.mjs +0 -506
- package/scripts/lib/ensure-manifest.mjs +0 -135
- package/scripts/lib/example-checks.mjs +0 -337
- package/scripts/lib/guide-claims.mjs +0 -452
- package/scripts/lib/manifest-pointers.mjs +0 -71
- package/scripts/lib/pack.mjs +0 -55
- package/scripts/lib/public-type-exports.mjs +0 -273
- package/scripts/lib/quiet-gate.mjs +0 -385
- package/scripts/lib/recipe-excerpts.mjs +0 -98
- package/scripts/lib/swap-noun.mjs +0 -33
- package/scripts/lib/token-color-mix.mjs +0 -114
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
v-bind="passthrough.rootAttrs"
|
|
61
61
|
>
|
|
62
62
|
<!-- eslint-enable vue/attributes-order -->
|
|
63
|
-
<!--
|
|
63
|
+
<!-- each part keyed by the opening, so a new opening (a reopen
|
|
64
64
|
mid-leave included) mounts a fresh body. -->
|
|
65
65
|
<template v-if="bodyMounted">
|
|
66
66
|
<div
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
></slot>
|
|
130
130
|
|
|
131
131
|
<!--
|
|
132
|
-
|
|
132
|
+
the headerless close.
|
|
133
133
|
Without it a panel with no `title` and no `#header` had NO close
|
|
134
134
|
control at all: for an adaptive BbDialog that meant a floating ×
|
|
135
135
|
on desktop and none on the phone, from one template. The
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
</div>
|
|
174
174
|
</template>
|
|
175
175
|
<!--
|
|
176
|
-
|
|
176
|
+
with snap stops the grab handle is a slider. LAST in the DOM
|
|
177
177
|
(absolutely placed at the top, like the headerless ✕) so showModal()
|
|
178
178
|
never gives it the opening focus.
|
|
179
179
|
-->
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
@pointermove="onGrabberPointerMove"
|
|
197
197
|
@pointerup="onGrabberPointerUp"
|
|
198
198
|
></div>
|
|
199
|
-
<!-- A refused close is announced, not only shaken
|
|
199
|
+
<!-- A refused close is announced, not only shaken. -->
|
|
200
200
|
<span aria-live="polite" class="bb-sr-only">{{ refusal.text.value }}</span>
|
|
201
201
|
</dialog>
|
|
202
202
|
</template>
|
|
@@ -231,6 +231,7 @@ import { useLogger } from '@/composables/useLogger';
|
|
|
231
231
|
import { useMobile } from '@/composables/useMobile';
|
|
232
232
|
import { viewportWidth, viewportHeight } from '@/composables/useViewportWidth';
|
|
233
233
|
import { useBreakpoint } from '@/composables/useBreakpoint';
|
|
234
|
+
import { resolveSide } from '@/composables/useDirection';
|
|
234
235
|
import { hydrationGate } from '@/composables/useHydrated';
|
|
235
236
|
import { useUntil } from '../../composables/useUntil';
|
|
236
237
|
import { removedPropsFor } from '@/deprecation/removedProps';
|
|
@@ -241,7 +242,8 @@ import { transitions } from '@/utilities/misc/transitions';
|
|
|
241
242
|
import { pageText } from '@/utilities/misc/pageText';
|
|
242
243
|
import { firstFocusableMatch } from '@/utils/focusVisibility';
|
|
243
244
|
import { overlaySurfaceIsolation } from '@/utils/overlaySurfaceIsolation';
|
|
244
|
-
import {
|
|
245
|
+
import { useSizeMap, useConfigDefaults } from '@/composables/useConfigDefaults';
|
|
246
|
+
import { PANEL_SIZES } from '@/types/SizeScale';
|
|
245
247
|
import CloseButton from '../CloseIcon/CloseButton.vue';
|
|
246
248
|
import { useHostCloseLabel } from './hostCloseLabel';
|
|
247
249
|
import { useOffCanvasStack } from './useOffCanvasStack';
|
|
@@ -307,25 +309,28 @@ const props = withDefaults(
|
|
|
307
309
|
>
|
|
308
310
|
>(),
|
|
309
311
|
{
|
|
310
|
-
side:
|
|
312
|
+
side: undefined,
|
|
311
313
|
size: 'sm',
|
|
312
314
|
transitionDuration: transitions.medium,
|
|
313
315
|
draggable: false,
|
|
314
316
|
stackGap: 60,
|
|
315
|
-
// Three-state
|
|
317
|
+
// Three-state: unset follows a saving BbForm inside, `true`
|
|
316
318
|
// always locks, `false` stays closable mid-save. `undefined` declared, not
|
|
317
319
|
// omitted, so Vue's absent→`false` Boolean cast does not erase "unset".
|
|
318
320
|
preventClose: undefined,
|
|
319
321
|
queryKey: 'offcanvas',
|
|
320
322
|
}
|
|
321
323
|
);
|
|
322
|
-
|
|
323
324
|
const emit = defineEmits<BbOffCanvasEvents>();
|
|
324
325
|
|
|
325
326
|
const slots = defineSlots<BbOffCanvasSlots>();
|
|
326
327
|
|
|
328
|
+
const configDefaults = useConfigDefaults('BbOffCanvas', props, {
|
|
329
|
+
side: 'start',
|
|
330
|
+
});
|
|
331
|
+
|
|
327
332
|
/*
|
|
328
|
-
* Open by id
|
|
333
|
+
* Open by id: `v-bb-off-canvas` and `useBbOffCanvas` reach
|
|
329
334
|
* this panel through its `id`, write `model` (a bound `v-model` still wins)
|
|
330
335
|
* and hand data to the slots. An adaptive BbDialog's sheet is that
|
|
331
336
|
* dialog: the dialog registers, not the sheet.
|
|
@@ -340,7 +345,7 @@ const overlay = useOverlayHost('offCanvas', {
|
|
|
340
345
|
defaultData: () => props.defaultData,
|
|
341
346
|
});
|
|
342
347
|
/*
|
|
343
|
-
*
|
|
348
|
+
* URL panels (`navigation`): the open state proxies `?<queryKey>`.
|
|
344
349
|
* The adaptive BbDialog's sheet never syncs (the dialog owns its URL); it
|
|
345
350
|
* answers that dialog's Back instead, with its own gates.
|
|
346
351
|
*/
|
|
@@ -364,7 +369,7 @@ useOverlayNavigation({
|
|
|
364
369
|
});
|
|
365
370
|
|
|
366
371
|
/**
|
|
367
|
-
* Passthrough
|
|
372
|
+
* Passthrough. `root` is the `<dialog>` element, bound LAST in the template; the ✕ merges `pt:close` after its own click handler.
|
|
368
373
|
*/
|
|
369
374
|
const ownAttrs = useAttrs();
|
|
370
375
|
const passthrough = usePassthrough({
|
|
@@ -387,7 +392,7 @@ const closeBindings = computed(() =>
|
|
|
387
392
|
passthrough.close
|
|
388
393
|
)
|
|
389
394
|
);
|
|
390
|
-
const
|
|
395
|
+
const sizeMap = useSizeMap('BbOffCanvas', PANEL_SIZES);
|
|
391
396
|
export type { BbOffCanvasProps, BbOffCanvasEvents, BbOffCanvasSlots, Sizes };
|
|
392
397
|
|
|
393
398
|
if (process.env.NODE_ENV !== 'production')
|
|
@@ -395,7 +400,7 @@ if (process.env.NODE_ENV !== 'production')
|
|
|
395
400
|
|
|
396
401
|
const { t } = useLocale();
|
|
397
402
|
const hostCloseLabel = useHostCloseLabel();
|
|
398
|
-
/** The ✕'s name: the host surface's when one stands behind this panel
|
|
403
|
+
/** The ✕'s name: the host surface's when one stands behind this panel. */
|
|
399
404
|
const closeLabel = computed(
|
|
400
405
|
() => hostCloseLabel() ?? t('offCanvas.closeLabel').value
|
|
401
406
|
);
|
|
@@ -413,14 +418,14 @@ const hasTitle = () => !!props.title || !!slots.title;
|
|
|
413
418
|
// `hasTitle()` while the header keys off both.
|
|
414
419
|
const renderHeader = () => hasTitle() || !!slots.header || hasDescription();
|
|
415
420
|
/*
|
|
416
|
-
*
|
|
417
|
-
* `prevent-close` says otherwise (`true` always, `false` never).
|
|
418
|
-
*
|
|
421
|
+
* a BbForm inside with a pending save locks the drawer unless
|
|
422
|
+
* `prevent-close` says otherwise (`true` always, `false` never). The switch:
|
|
423
|
+
* OFF_CANVAS_FOLLOWS_FORM_LOCK, see formSubmitLock.ts.
|
|
419
424
|
*/
|
|
420
425
|
const formSaving = OFF_CANVAS_FOLLOWS_FORM_LOCK
|
|
421
426
|
? provideOverlaySubmitGuard()
|
|
422
427
|
: () => false;
|
|
423
|
-
//
|
|
428
|
+
// an opener's `onComplete` promise locks it like a saving form.
|
|
424
429
|
const isLocked = computed(
|
|
425
430
|
() => props.preventClose ?? (formSaving() || overlay.completing.value)
|
|
426
431
|
);
|
|
@@ -430,7 +435,7 @@ const hasDocument = () => typeof document !== 'undefined';
|
|
|
430
435
|
const dialog = ref<HTMLDialogElement | null>(null);
|
|
431
436
|
|
|
432
437
|
/**
|
|
433
|
-
* The on-screen keyboard
|
|
438
|
+
* The on-screen keyboard: how much of the layout it covers while a
|
|
434
439
|
* text field in this panel has focus. The CSS lifts a panel that reaches the
|
|
435
440
|
* bottom edge above it (`bb-offcanvas--keyboard`, `--keyboard`).
|
|
436
441
|
*/
|
|
@@ -445,7 +450,7 @@ const hasRenderedAtLeastOnce: Ref<boolean> = useUntil(
|
|
|
445
450
|
}
|
|
446
451
|
);
|
|
447
452
|
/*
|
|
448
|
-
*
|
|
453
|
+
* the body lives while the surface is open or leaving, then unmounts
|
|
449
454
|
* (after `@hidden`, in the same turn `data` clears and focus went back), and
|
|
450
455
|
* the next opening renders it fresh. `eager` keeps it mounted throughout.
|
|
451
456
|
* The latch above only gates the one-time header check.
|
|
@@ -454,10 +459,10 @@ const bodyMounted = computed(
|
|
|
454
459
|
() => !!props.eager || model.value || isVisible.value
|
|
455
460
|
);
|
|
456
461
|
/*
|
|
457
|
-
*
|
|
462
|
+
* every NEW opening gets a fresh body, a reopen during the
|
|
458
463
|
* leave transition included (the body is still mounted then): the key moves
|
|
459
464
|
* on the model's false → true edge, before the render. `eager` keeps its body
|
|
460
|
-
* (kept by definition); a show() while open changes no model
|
|
465
|
+
* (kept by definition); a show() while open changes no model.
|
|
461
466
|
*/
|
|
462
467
|
const bodyKey = ref(0);
|
|
463
468
|
watch(
|
|
@@ -519,7 +524,7 @@ const onBackdropClick = (event: MouseEvent) => {
|
|
|
519
524
|
};
|
|
520
525
|
|
|
521
526
|
let denyCloseTimer: ReturnType<typeof setTimeout> | undefined;
|
|
522
|
-
// The shake is visual only: say it too, politely, once per burst
|
|
527
|
+
// The shake is visual only: say it too, politely, once per burst.
|
|
523
528
|
// The adaptive BbDialog's sheet is this panel, so it speaks for the dialog.
|
|
524
529
|
const refusal = useRefusedCloseAnnouncement(
|
|
525
530
|
() => t('dialog.closeRefused').value
|
|
@@ -545,7 +550,7 @@ let mountingOpen = false;
|
|
|
545
550
|
const addEscapeListener = () => {
|
|
546
551
|
// Registration is NOT gated on `hasDocument()` — see BbDialog for why.
|
|
547
552
|
// The element: the surfaces that give way to an open dialog still work
|
|
548
|
-
// inside it
|
|
553
|
+
// inside it.
|
|
549
554
|
const surface = { element: () => dialog.value };
|
|
550
555
|
if (mountingOpen) insertEscapeEntry(escapeKey, escapeDepthAtSetup, surface);
|
|
551
556
|
else pushEscapeEntry(escapeKey, surface);
|
|
@@ -571,8 +576,8 @@ const handleKeyDown = (e: KeyboardEvent) => {
|
|
|
571
576
|
if (isCovered.value) return;
|
|
572
577
|
// Something opened after this panel — a menu, a flyout, a nested modal — so
|
|
573
578
|
// that surface owns Escape. Replaces the old event-target sniffing, which
|
|
574
|
-
// missed dialog-mode flyouts, activator-focused flyouts and sibling modals
|
|
575
|
-
//
|
|
579
|
+
// missed dialog-mode flyouts, activator-focused flyouts and sibling modals;
|
|
580
|
+
// open order answers all three.
|
|
576
581
|
// Bail WITHOUT touching the event — see BbDialog for why `preventDefault()`
|
|
577
582
|
// here would sabotage the surface that actually owns the key.
|
|
578
583
|
if (!isTopEscapeEntry(escapeKey)) return;
|
|
@@ -589,7 +594,7 @@ const pageStyle = ref<Record<string, string>>();
|
|
|
589
594
|
let releaseTopLayer: (() => void) | null = null;
|
|
590
595
|
const toggleDialog = async (value: boolean) => {
|
|
591
596
|
if (value) {
|
|
592
|
-
side.value =
|
|
597
|
+
side.value = resolveOpeningSide();
|
|
593
598
|
emit('show');
|
|
594
599
|
openedTimes.value++;
|
|
595
600
|
pageStyle.value = pageText();
|
|
@@ -614,12 +619,12 @@ const toggleDialog = async (value: boolean) => {
|
|
|
614
619
|
await animationsSettled(dialog.value);
|
|
615
620
|
if (opening === openedTimes.value && model.value) emit('shown');
|
|
616
621
|
} else {
|
|
617
|
-
//
|
|
622
|
+
// the opening's result, the object its promise settles with.
|
|
618
623
|
emit('hide', overlay.closingResult());
|
|
619
624
|
// Leave the stack NOW, not after the slide-out. The parents' push offsets
|
|
620
625
|
// derive from the stack registry, so releasing it here lets them slide
|
|
621
626
|
// back in lockstep with this panel leaving — instead of staying pushed
|
|
622
|
-
// for the whole transition and only then starting their own
|
|
627
|
+
// for the whole transition and only then starting their own.
|
|
623
628
|
// Safe to do early: Escape ownership lives in the overlay escape stack,
|
|
624
629
|
// not in `openOrder`, and stays with this panel until the listener is
|
|
625
630
|
// removed below; while still natively open, the modal algorithm keeps
|
|
@@ -649,7 +654,7 @@ const toggleDialog = async (value: boolean) => {
|
|
|
649
654
|
};
|
|
650
655
|
|
|
651
656
|
/*
|
|
652
|
-
*
|
|
657
|
+
* see the twin in BbDialog. `aria-labelledby` points at `titleId` as
|
|
653
658
|
* soon as a `#header` slot exists, but the heading inside it is the author's,
|
|
654
659
|
* so a forgotten id leaves the panel announcing as unnamed with no signal.
|
|
655
660
|
* Warn once, in dev, after the header is in the DOM.
|
|
@@ -659,7 +664,7 @@ const warnIfHeaderNameIsDangling = () => {
|
|
|
659
664
|
if (!slots.header || props.title) return;
|
|
660
665
|
// A caller that names the surface itself (BbPopover's phone sheet points
|
|
661
666
|
// at its activator) makes `titleId` irrelevant, so there is nothing to
|
|
662
|
-
// check
|
|
667
|
+
// check.
|
|
663
668
|
if (ownAttrs['aria-labelledby'] != null) return;
|
|
664
669
|
nextTick(() => {
|
|
665
670
|
if (!dialog.value || document.getElementById(titleId)) return;
|
|
@@ -681,7 +686,7 @@ onMounted(() => {
|
|
|
681
686
|
});
|
|
682
687
|
// After the header has rendered, not on mount: a closed, non-eager surface
|
|
683
688
|
// renders no header yet, so the mount-time check warned on every correct
|
|
684
|
-
// `#header` slot
|
|
689
|
+
// `#header` slot. Once, the first time it renders.
|
|
685
690
|
watch(
|
|
686
691
|
hasRenderedAtLeastOnce,
|
|
687
692
|
(rendered) => {
|
|
@@ -712,7 +717,7 @@ const maxSize = computed(() => {
|
|
|
712
717
|
// a per-breakpoint map reacts to resize. `'auto'` can sit in any entry.
|
|
713
718
|
const size = resolveResponsive(props.size);
|
|
714
719
|
if (size === 'auto') return 'fit-content';
|
|
715
|
-
return parseSize(size,
|
|
720
|
+
return parseSize(size, sizeMap.value);
|
|
716
721
|
});
|
|
717
722
|
|
|
718
723
|
/**
|
|
@@ -742,7 +747,7 @@ const systemClose = (reason: 'escape' | 'backdrop') => {
|
|
|
742
747
|
return true;
|
|
743
748
|
};
|
|
744
749
|
|
|
745
|
-
/** Every close goes through here with its reason (
|
|
750
|
+
/** Every close goes through here with its reason (the opening's result). */
|
|
746
751
|
const closeWith = (reason: OverlayCloseReason) => {
|
|
747
752
|
overlay.record(reason);
|
|
748
753
|
model.value = false;
|
|
@@ -763,7 +768,7 @@ const requestClose = () => {
|
|
|
763
768
|
closeWith('close');
|
|
764
769
|
};
|
|
765
770
|
|
|
766
|
-
/** A native `commandfor` invoker goes through our paths
|
|
771
|
+
/** A native `commandfor` invoker goes through our paths. */
|
|
767
772
|
const onNativeCommand = (event: Event) =>
|
|
768
773
|
routeNativeCommand(event, {
|
|
769
774
|
show: overlay.show,
|
|
@@ -777,22 +782,26 @@ const { isMobile } = useMobile();
|
|
|
777
782
|
const { resolve: resolveResponsive } = useBreakpoint();
|
|
778
783
|
|
|
779
784
|
/**
|
|
780
|
-
* The side of the current opening
|
|
785
|
+
* The side of the current opening. A per-breakpoint `side` is
|
|
781
786
|
* resolved when the panel opens and then FROZEN: an open panel never swings
|
|
782
787
|
* on a resize; the next opening resolves it again. Everything that reads the
|
|
783
788
|
* side (the side class the CSS keys off: the slide, insets, rounding; the
|
|
784
789
|
* drag axis; the stack; the snap) reads this. A new `side` value from the
|
|
785
|
-
* author still applies at once.
|
|
790
|
+
* author still applies at once. `start` / `end` become `left` / `right` at
|
|
791
|
+
* the same moment, by the direction the panel is laid out in (before mount,
|
|
792
|
+
* with no element to ask, left to right: the server's answer too).
|
|
786
793
|
*/
|
|
787
|
-
const
|
|
794
|
+
const resolveOpeningSide = (): OffCanvasSide =>
|
|
795
|
+
resolveSide(resolveResponsive(configDefaults.side), dialog.value);
|
|
796
|
+
const side = ref<OffCanvasSide>(resolveOpeningSide());
|
|
788
797
|
watch(
|
|
789
|
-
() => JSON.stringify(
|
|
790
|
-
() => (side.value =
|
|
798
|
+
() => JSON.stringify(configDefaults.side),
|
|
799
|
+
() => (side.value = resolveOpeningSide())
|
|
791
800
|
);
|
|
792
801
|
// Before hydration the width is the server's answer (`ssrViewportWidth`),
|
|
793
802
|
// not a measurement: a panel opened then (open on load) takes the real one
|
|
794
803
|
// as the gate opens, before its first paint.
|
|
795
|
-
watch(hydrationGate, () => (side.value =
|
|
804
|
+
watch(hydrationGate, () => (side.value = resolveOpeningSide()));
|
|
796
805
|
|
|
797
806
|
const isFullscreen = computed(
|
|
798
807
|
() =>
|
|
@@ -903,7 +912,7 @@ const isCovered = computed(() => {
|
|
|
903
912
|
* `toggleDialog`) but keeps painting its backdrop for the whole fade, so it
|
|
904
913
|
* must keep its `--above` dress until it is gone — otherwise the blur and
|
|
905
914
|
* the full dim would snap onto it, over the parent, for the length of the
|
|
906
|
-
* fade. The same holds for the panels above it
|
|
915
|
+
* fade. The same holds for the panels above it: a parent closing
|
|
907
916
|
* under its child re-ranks the child to the bottom, which would paint the
|
|
908
917
|
* full dim over the parent's fading one. So while any panel slides out, the
|
|
909
918
|
* others can take the role but not lose it; the live order rules again once
|
|
@@ -1241,7 +1250,7 @@ const { lengthX, lengthY } = useSwipe(dialog, {
|
|
|
1241
1250
|
swipeCandidate = true;
|
|
1242
1251
|
swipeStartedInBody = !!target.closest('.bb-offcanvas__content');
|
|
1243
1252
|
// At a lower snap stop the content never scrolls by touch: the finger
|
|
1244
|
-
// moves the sheet (
|
|
1253
|
+
// moves the sheet (§5). At the top stop the usual latch decides.
|
|
1245
1254
|
swipeLockedToScroll =
|
|
1246
1255
|
swipeStartedInBody && !isBelowTopStop() && scrollLocksThisGesture(target);
|
|
1247
1256
|
if (snapActive.value) snapGestureStart();
|
|
@@ -1299,7 +1308,7 @@ const { lengthX, lengthY } = useSwipe(dialog, {
|
|
|
1299
1308
|
});
|
|
1300
1309
|
|
|
1301
1310
|
// ---------------------------------------------------------------------------
|
|
1302
|
-
// Snap points
|
|
1311
|
+
// Snap points — a bottom sheet that
|
|
1303
1312
|
// rests at several heights.
|
|
1304
1313
|
//
|
|
1305
1314
|
// The sheet is laid out at its TOP stop's height (`--snap-h`); a lower stop
|
|
@@ -1752,10 +1761,11 @@ onDeactivated(() => closeWith('unmounted'));
|
|
|
1752
1761
|
```ts
|
|
1753
1762
|
import type { BbDialogResult } from '@/composables/overlayRegistry';
|
|
1754
1763
|
import type { Size } from '@/types/CommonProps';
|
|
1755
|
-
import type { PtCompoundProps, PtMap
|
|
1764
|
+
import type { PtCompoundProps, PtMap } from '@/types/passthrough';
|
|
1756
1765
|
import type { Sizes } from '@/types/SizeScale';
|
|
1757
1766
|
import type { Responsive } from '@/types/ResponsiveSize';
|
|
1758
1767
|
import type { BbSnapPoint } from './sheetSnap';
|
|
1768
|
+
import type { BbOffCanvasPtKeys } from './ptKeys.generated';
|
|
1759
1769
|
export type { Sizes, BbSnapPoint };
|
|
1760
1770
|
type OffCanvasSize = NonNullable<Size<Sizes>['size']> | 'auto';
|
|
1761
1771
|
|
|
@@ -1763,7 +1773,7 @@ type OffCanvasSize = NonNullable<Size<Sizes>['size']> | 'auto';
|
|
|
1763
1773
|
export type OffCanvasSide = 'left' | 'top' | 'right' | 'bottom';
|
|
1764
1774
|
|
|
1765
1775
|
/**
|
|
1766
|
-
* Passthrough parts of `BbOffCanvas
|
|
1776
|
+
* Passthrough parts of `BbOffCanvas`.
|
|
1767
1777
|
*
|
|
1768
1778
|
* @part root - The `<dialog>` — the sheet itself (no separate `panel`). The
|
|
1769
1779
|
* backdrop is `::backdrop`: CSS, not `pt`.
|
|
@@ -1817,148 +1827,156 @@ export const BB_OFF_CANVAS_PT = {
|
|
|
1817
1827
|
wide: readonly BbOffCanvasPtState[];
|
|
1818
1828
|
};
|
|
1819
1829
|
|
|
1830
|
+
/**
|
|
1831
|
+
* BbOffCanvas's `pt:*` attributes: the documented keys, and the patterns
|
|
1832
|
+
* Vue's SFC resolver skips (compound keys, an app's own variant states; the
|
|
1833
|
+
* vue-ignore marker). This alias keeps the marker on a member right after its
|
|
1834
|
+
* `=`: the declaration emit drops it at the start of a line or ahead of a whole type.
|
|
1835
|
+
*/
|
|
1836
|
+
type BbOffCanvasPtProps = /* @vue-ignore */ PtCompoundProps<
|
|
1837
|
+
typeof BB_OFF_CANVAS_PT
|
|
1838
|
+
> &
|
|
1839
|
+
BbOffCanvasPtKeys;
|
|
1840
|
+
|
|
1820
1841
|
// Spelled INLINE with this component's own unions (Vue's SFC type resolver
|
|
1821
1842
|
// does not substitute a generic alias's type parameters — PASSTHROUGH.md T20).
|
|
1822
|
-
|
|
1823
|
-
export type BbOffCanvasProps = {
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
*/
|
|
1960
|
-
side?: Responsive<'left' | 'top' | 'right' | 'bottom'>;
|
|
1961
|
-
};
|
|
1843
|
+
|
|
1844
|
+
export type BbOffCanvasProps = BbOffCanvasPtProps & {
|
|
1845
|
+
/**
|
|
1846
|
+
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
1847
|
+
* without the prefix. See the `pt:<part>` row.
|
|
1848
|
+
*/
|
|
1849
|
+
pt?: PtMap<BbOffCanvasPtPart, BbOffCanvasPtState>;
|
|
1850
|
+
/**
|
|
1851
|
+
* One short line under the title, muted (the shadcn `DialogDescription`
|
|
1852
|
+
* shape), and the only element `aria-describedby` points at. Keep it to a
|
|
1853
|
+
* sentence; anything longer belongs in the body.
|
|
1854
|
+
*/
|
|
1855
|
+
description?: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* Keep the body mounted while closed, from before the first opening.
|
|
1858
|
+
* Without it the body mounts per opening and unmounts after `@hidden`.
|
|
1859
|
+
* `data` still clears while closed, so an eager body guards its reads.
|
|
1860
|
+
*/
|
|
1861
|
+
eager?: boolean;
|
|
1862
|
+
/**
|
|
1863
|
+
* What `data` is when an opening passes none (a create): an object, copied
|
|
1864
|
+
* at once, so inputs bind `data.x` with no guard. An opening's data lays
|
|
1865
|
+
* over it (`{ ...defaultData, ...row }`, one level).
|
|
1866
|
+
* `reset()` restores its keys but keeps an edit's `id`; a close restores it.
|
|
1867
|
+
*/
|
|
1868
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `data` is `any` in the slots
|
|
1869
|
+
defaultData?: Record<string, any>;
|
|
1870
|
+
/**
|
|
1871
|
+
* Names the panel for `v-bb-off-canvas="'filters'"` and
|
|
1872
|
+
* `useBbOffCanvas`, found nearest to the trigger, so two pages may
|
|
1873
|
+
* reuse an id. Also the DOM `id`: one panel per id.
|
|
1874
|
+
*/
|
|
1875
|
+
id?: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* CSS selector of the element to focus after opening. Defaults to the first tabbable element.
|
|
1878
|
+
*/
|
|
1879
|
+
focusTarget?: string;
|
|
1880
|
+
/**
|
|
1881
|
+
* Display the offcanvas fullscreen. Use `'mobile'` to restrict fullscreen to small devices.
|
|
1882
|
+
*/
|
|
1883
|
+
fullscreen?: boolean | 'mobile';
|
|
1884
|
+
/**
|
|
1885
|
+
* Drag-to-dismiss: a ~50px swipe toward the exit edge (also from the body
|
|
1886
|
+
* once it is scrolled to its edge), with a grab handle as the cue. A
|
|
1887
|
+
* gesture that starts inside `data-bb-no-drag` never drags the panel.
|
|
1888
|
+
*
|
|
1889
|
+
* @defaultValue `false`
|
|
1890
|
+
*/
|
|
1891
|
+
draggable?: boolean;
|
|
1892
|
+
/**
|
|
1893
|
+
* Heights a draggable bottom sheet rests at, smallest first: a fraction of
|
|
1894
|
+
* the screen (`0.5`, `1` = full) or `'240px'`. The first is the opening
|
|
1895
|
+
* height; `v-model:snap` holds the stop. Ignored on other sides and
|
|
1896
|
+
* `fullscreen` (guide § Snap points).
|
|
1897
|
+
*/
|
|
1898
|
+
snapPoints?: BbSnapPoint[];
|
|
1899
|
+
/**
|
|
1900
|
+
* Name of the stack this drawer belongs to. Drawers sharing the same `stack`
|
|
1901
|
+
* value step back behind one another as later ones open; drawers in different
|
|
1902
|
+
* stacks never affect each other. When omitted, the drawer stacks with nothing.
|
|
1903
|
+
*/
|
|
1904
|
+
stack?: string;
|
|
1905
|
+
/**
|
|
1906
|
+
* Syncs the open state with the URL: opening writes `?<queryKey>=true`,
|
|
1907
|
+
* closing removes it, a URL with the key opens the panel on load, and
|
|
1908
|
+
* Back closes it (refused whenever Escape is). Template panels only;
|
|
1909
|
+
* keep a record id in your own query.
|
|
1910
|
+
*/
|
|
1911
|
+
navigation?: boolean;
|
|
1912
|
+
/**
|
|
1913
|
+
* The query key `navigation` writes.
|
|
1914
|
+
*
|
|
1915
|
+
* @defaultValue `'offcanvas'`
|
|
1916
|
+
*/
|
|
1917
|
+
queryKey?: string;
|
|
1918
|
+
/**
|
|
1919
|
+
* With `navigation`, replaces the history entry instead of pushing one,
|
|
1920
|
+
* so Back leaves the page instead of closing the panel.
|
|
1921
|
+
*/
|
|
1922
|
+
replace?: boolean;
|
|
1923
|
+
/**
|
|
1924
|
+
* Pixels each stacked parent drawer shifts inward when a child opens on top,
|
|
1925
|
+
* leaving a peeking band of the parent visible.
|
|
1926
|
+
* @defaultValue `60`
|
|
1927
|
+
*/
|
|
1928
|
+
stackGap?: number;
|
|
1929
|
+
/**
|
|
1930
|
+
* Blocks closing by an outside click, Escape or drag-to-dismiss. The
|
|
1931
|
+
* header close (×) STILL closes a persistent drawer, the documented
|
|
1932
|
+
* escape hatch: add `hideClose` to remove it, or use `preventClose` to
|
|
1933
|
+
* block every dismissal. Programmatic close still works.
|
|
1934
|
+
*/
|
|
1935
|
+
persistent?: boolean;
|
|
1936
|
+
/**
|
|
1937
|
+
* Refuses every user close (backdrop, Escape, drag, the ✕, the slots'
|
|
1938
|
+
* `close`) with the deny nudge; `v-model` still closes. Unset: locked
|
|
1939
|
+
* while a `BbForm` inside saves (an async `@submit`). `true`: always;
|
|
1940
|
+
* `false`: never, not even mid-save. Beside a form: `busy || undefined`.
|
|
1941
|
+
*
|
|
1942
|
+
* @defaultValue `undefined` (follows a saving form inside)
|
|
1943
|
+
*/
|
|
1944
|
+
preventClose?: boolean;
|
|
1945
|
+
/**
|
|
1946
|
+
* Hides the default close (×) button in the header (e.g. for a `persistent`
|
|
1947
|
+
* drawer you don't want dismissible — the × otherwise still closes a
|
|
1948
|
+
* persistent drawer).
|
|
1949
|
+
* @defaultValue `false`
|
|
1950
|
+
*/
|
|
1951
|
+
hideClose?: boolean;
|
|
1952
|
+
/**
|
|
1953
|
+
* The panel's extent along its axis: a left/right panel's width (shrinks
|
|
1954
|
+
* with a narrower viewport) or a top/bottom one's height (capped at the
|
|
1955
|
+
* viewport). A preset `'xs'`–`'2xl'`, `'auto'`, a CSS size, a pixel number, or
|
|
1956
|
+
* a per-breakpoint map (e.g. `{ default: 'sm', lg: 'lg' }`).
|
|
1957
|
+
* @defaultValue `'sm'`
|
|
1958
|
+
*/
|
|
1959
|
+
size?: Responsive<OffCanvasSize>;
|
|
1960
|
+
/**
|
|
1961
|
+
* Title text announced to assistive technologies. If omitted, no header is rendered and
|
|
1962
|
+
* accessibility must be handled manually.
|
|
1963
|
+
*/
|
|
1964
|
+
title?: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* Controls the duration of the open and close animations.
|
|
1967
|
+
* @defaultValue `250`
|
|
1968
|
+
*/
|
|
1969
|
+
transitionDuration?: number;
|
|
1970
|
+
/**
|
|
1971
|
+
* Which viewport edge the panel docks to and slides in from. `start` /
|
|
1972
|
+
* `end` follow the reading direction; `left` / `right` are physical.
|
|
1973
|
+
* Also a per-breakpoint map (`{ default: 'bottom', md: 'end' }`),
|
|
1974
|
+
* resolved at open: an open panel keeps its side.
|
|
1975
|
+
*
|
|
1976
|
+
* @defaultValue `'start'`
|
|
1977
|
+
*/
|
|
1978
|
+
side?: Responsive<'start' | 'end' | 'left' | 'top' | 'right' | 'bottom'>;
|
|
1979
|
+
};
|
|
1962
1980
|
|
|
1963
1981
|
export type BbOffCanvasEvents = {
|
|
1964
1982
|
/** Emitted as soon as the user triggers the open action (model becomes true). */
|
|
@@ -1989,10 +2007,10 @@ export type BbOffCanvasHeaderSlotProps = {
|
|
|
1989
2007
|
/**
|
|
1990
2008
|
* Closes with a value: the opening (`useBbOffCanvas(id).show()`, or the
|
|
1991
2009
|
* directive's `onComplete`) resolves `{ completed: true, value }`. Wins over
|
|
1992
|
-
* `preventClose`, like `hide()
|
|
1993
|
-
* returns, locked; rejected, it stays open and this rejects
|
|
2010
|
+
* `preventClose`, like `hide()`. Waits on a promise `onComplete`
|
|
2011
|
+
* returns, locked; rejected, it stays open and this rejects.
|
|
1994
2012
|
*/
|
|
1995
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the slot hands out `any`, like `data`
|
|
2013
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the slot hands out `any`, like `data`
|
|
1996
2014
|
complete: (value?: any) => Promise<void>;
|
|
1997
2015
|
/** Restores the keys `defaultData` declares, fresh; keeps the rest (an edit's `id`). Without it, nothing. */
|
|
1998
2016
|
reset: () => void;
|
|
@@ -2005,7 +2023,7 @@ export type BbOffCanvasHeaderSlotProps = {
|
|
|
2005
2023
|
* `v-model`), unless `defaultData` is set: then a copy of it, the row laid
|
|
2006
2024
|
* over it. Typed `any`, so `data.name` reads with no cast.
|
|
2007
2025
|
*/
|
|
2008
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2026
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2009
2027
|
data: any;
|
|
2010
2028
|
};
|
|
2011
2029
|
|
|
@@ -2016,10 +2034,10 @@ export type BbOffCanvasFooterSlotProps = {
|
|
|
2016
2034
|
/**
|
|
2017
2035
|
* Closes with a value: the opening (`useBbOffCanvas(id).show()`, or the
|
|
2018
2036
|
* directive's `onComplete`) resolves `{ completed: true, value }`. Wins over
|
|
2019
|
-
* `preventClose`, like `hide()
|
|
2020
|
-
* returns, locked; rejected, it stays open and this rejects
|
|
2037
|
+
* `preventClose`, like `hide()`. Waits on a promise `onComplete`
|
|
2038
|
+
* returns, locked; rejected, it stays open and this rejects.
|
|
2021
2039
|
*/
|
|
2022
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the slot hands out `any`, like `data`
|
|
2040
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the slot hands out `any`, like `data`
|
|
2023
2041
|
complete: (value?: any) => Promise<void>;
|
|
2024
2042
|
/** Restores the keys `defaultData` declares, fresh; keeps the rest (an edit's `id`). Without it, nothing. */
|
|
2025
2043
|
reset: () => void;
|
|
@@ -2030,7 +2048,7 @@ export type BbOffCanvasFooterSlotProps = {
|
|
|
2030
2048
|
* `v-model`), unless `defaultData` is set: then a copy of it, the row laid
|
|
2031
2049
|
* over it. Typed `any`, so `data.name` reads with no cast.
|
|
2032
2050
|
*/
|
|
2033
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2051
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2034
2052
|
data: any;
|
|
2035
2053
|
};
|
|
2036
2054
|
|
|
@@ -2041,10 +2059,10 @@ export type BbOffCanvasDefaultSlotProps = {
|
|
|
2041
2059
|
/**
|
|
2042
2060
|
* Closes with a value: the opening (`useBbOffCanvas(id).show()`, or the
|
|
2043
2061
|
* directive's `onComplete`) resolves `{ completed: true, value }`. Wins over
|
|
2044
|
-
* `preventClose`, like `hide()
|
|
2045
|
-
* returns, locked; rejected, it stays open and this rejects
|
|
2062
|
+
* `preventClose`, like `hide()`. Waits on a promise `onComplete`
|
|
2063
|
+
* returns, locked; rejected, it stays open and this rejects.
|
|
2046
2064
|
*/
|
|
2047
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the slot hands out `any`, like `data`
|
|
2065
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the slot hands out `any`, like `data`
|
|
2048
2066
|
complete: (value?: any) => Promise<void>;
|
|
2049
2067
|
/** Restores the keys `defaultData` declares, fresh; keeps the rest (an edit's `id`). Without it, nothing. */
|
|
2050
2068
|
reset: () => void;
|
|
@@ -2055,7 +2073,7 @@ export type BbOffCanvasDefaultSlotProps = {
|
|
|
2055
2073
|
* `v-model`), unless `defaultData` is set: then a copy of it, the row laid
|
|
2056
2074
|
* over it. Typed `any`, so `data.name` reads with no cast.
|
|
2057
2075
|
*/
|
|
2058
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2076
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2059
2077
|
data: any;
|
|
2060
2078
|
};
|
|
2061
2079
|
|
|
@@ -2065,9 +2083,9 @@ export type BbOffCanvasDescriptionSlotProps = {
|
|
|
2065
2083
|
text: BbOffCanvasProps['description'];
|
|
2066
2084
|
/**
|
|
2067
2085
|
* This opening's own copy of its `data`, as in the `default` slot: a
|
|
2068
|
-
* `title` / `description` prop can't read it, this slot can
|
|
2086
|
+
* `title` / `description` prop can't read it, this slot can.
|
|
2069
2087
|
*/
|
|
2070
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2088
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2071
2089
|
data: any;
|
|
2072
2090
|
};
|
|
2073
2091
|
|
|
@@ -2077,9 +2095,9 @@ export type BbOffCanvasTitleSlotProps = {
|
|
|
2077
2095
|
text: BbOffCanvasProps['title'];
|
|
2078
2096
|
/**
|
|
2079
2097
|
* This opening's own copy of its `data`, as in the `default` slot: a
|
|
2080
|
-
* `title` / `description` prop can't read it, this slot can
|
|
2098
|
+
* `title` / `description` prop can't read it, this slot can.
|
|
2081
2099
|
*/
|
|
2082
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2100
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `any`, so `data.name` reads with no cast
|
|
2083
2101
|
data: any;
|
|
2084
2102
|
};
|
|
2085
2103
|
|
|
@@ -2212,7 +2230,7 @@ export type BbOffCanvasSlots = {
|
|
|
2212
2230
|
box-shadow: none;
|
|
2213
2231
|
}
|
|
2214
2232
|
|
|
2215
|
-
/*
|
|
2233
|
+
/* once the close transition has ended
|
|
2216
2234
|
(`--visible` drops after it) the panel leaves layout. Laid out off-screen,
|
|
2217
2235
|
a fixed panel moved by `translate` still counts toward the page's
|
|
2218
2236
|
scrollable overflow, so a closed drawer widened the page;
|
|
@@ -2373,7 +2391,7 @@ export type BbOffCanvasSlots = {
|
|
|
2373
2391
|
--inset-left: 0px;
|
|
2374
2392
|
|
|
2375
2393
|
/*
|
|
2376
|
-
* The on-screen keyboard
|
|
2394
|
+
* The on-screen keyboard. BbOffCanvas measures how much of the
|
|
2377
2395
|
* layout it covers (`--keyboard`, via visualViewport, only while a text
|
|
2378
2396
|
* field inside the panel has focus) and a panel reaching the bottom edge
|
|
2379
2397
|
* lifts above it — a bottom sheet rides up, a side drawer or a fullscreen
|
|
@@ -2399,7 +2417,7 @@ export type BbOffCanvasSlots = {
|
|
|
2399
2417
|
with a home indicator its last row lands partly under it. The room is
|
|
2400
2418
|
exactly the inset the OS reports, with no floor: an 8px minimum read as
|
|
2401
2419
|
an off-center footer on a plain screen or above a mobile browser's bottom
|
|
2402
|
-
toolbar
|
|
2420
|
+
toolbar. `env()` is 0px when unsupported or when the
|
|
2403
2421
|
page lacks `viewport-fit=cover`. It is added to the LAST band's own
|
|
2404
2422
|
bottom padding — the footer, or the body when the footer is empty
|
|
2405
2423
|
(hidden by `:empty`) — never to the panel: panel padding left a strip of panel color under a band with
|
|
@@ -2407,8 +2425,8 @@ export type BbOffCanvasSlots = {
|
|
|
2407
2425
|
screen edge and the content still clears the indicator; on the body the
|
|
2408
2426
|
room scrolls in with the last row. A consumer's bottom padding on that
|
|
2409
2427
|
band (`pt:footer="pb-*"`) replaces the whole value, chin included.
|
|
2410
|
-
|
|
2411
|
-
/*
|
|
2428
|
+
*/
|
|
2429
|
+
/* The same rule serves every side: `--inset-bottom` is the
|
|
2412
2430
|
bottom inset on a panel that touches the bottom edge, 0 elsewhere. */
|
|
2413
2431
|
/* The side class keeps this above the bands' own `padding` shorthand
|
|
2414
2432
|
(same specificity otherwise, and they come later). */
|
|
@@ -2435,7 +2453,7 @@ export type BbOffCanvasSlots = {
|
|
|
2435
2453
|
}
|
|
2436
2454
|
|
|
2437
2455
|
/*
|
|
2438
|
-
* Snap points
|
|
2456
|
+
* Snap points. Laid out at the top stop's height; a lower stop is
|
|
2439
2457
|
* `--snap-y` further down on the same `translate` the sheet opens on. The
|
|
2440
2458
|
* footer moves back up by as much (never past the first stop's offset, so
|
|
2441
2459
|
* a dismiss drag takes it along) and stays on screen at every stop.
|
|
@@ -2485,7 +2503,7 @@ export type BbOffCanvasSlots = {
|
|
|
2485
2503
|
the sheet's edge so it never covers the header. */
|
|
2486
2504
|
.bb-offcanvas__handle--slider {
|
|
2487
2505
|
cursor: grab;
|
|
2488
|
-
/* The focus ring is the outline
|
|
2506
|
+
/* The focus ring is the outline: full width from rest, transparent; only its colour fades, in on the focused state's `--ring-t`, out on this one's */
|
|
2489
2507
|
outline: var(--bb-ring-size) solid transparent;
|
|
2490
2508
|
outline-offset: 0;
|
|
2491
2509
|
--ring-t: var(--bb-transition-medium);
|
|
@@ -2774,7 +2792,7 @@ export type BbOffCanvasSlots = {
|
|
|
2774
2792
|
|
|
2775
2793
|
.bb-offcanvas__title {
|
|
2776
2794
|
font-size: var(--dialog-title-fs, calc(var(--bb-fs) + 2px));
|
|
2777
|
-
/* Knob beside `--dialog-title-fs
|
|
2795
|
+
/* Knob beside `--dialog-title-fs`: a theme retitles dialogs and
|
|
2778
2796
|
sheets in one declaration, no reach into the header selector. */
|
|
2779
2797
|
font-weight: var(--dialog-title-fw, 500);
|
|
2780
2798
|
line-height: var(--dialog-title-fs, calc(var(--bb-fs) + 2px));
|
|
@@ -2825,9 +2843,15 @@ export type BbOffCanvasSlots = {
|
|
|
2825
2843
|
> .bb-close-button {
|
|
2826
2844
|
--size: var(--close-size);
|
|
2827
2845
|
--p: 7px;
|
|
2828
|
-
|
|
2846
|
+
/* Clears the safe area of the corner it sits in, like the title: the
|
|
2847
|
+
inline end is the right edge left to right, the left right to left. */
|
|
2848
|
+
inset-inline-end: calc(var(--px) - var(--p) + var(--inset-right));
|
|
2829
2849
|
position: absolute;
|
|
2830
|
-
top: calc(var(--py) - var(--p));
|
|
2850
|
+
top: calc(var(--py) - var(--p) + var(--inset-top));
|
|
2851
|
+
|
|
2852
|
+
&:dir(rtl) {
|
|
2853
|
+
inset-inline-end: calc(var(--px) - var(--p) + var(--inset-left));
|
|
2854
|
+
}
|
|
2831
2855
|
}
|
|
2832
2856
|
}
|
|
2833
2857
|
|
|
@@ -2881,9 +2905,14 @@ export type BbOffCanvasSlots = {
|
|
|
2881
2905
|
> .bb-close-button {
|
|
2882
2906
|
--size: 28px;
|
|
2883
2907
|
--p: 7px;
|
|
2884
|
-
|
|
2908
|
+
/* The header's ✕ rule: clear the corner's safe area. */
|
|
2909
|
+
inset-inline-end: calc(var(--px) - var(--p) + var(--inset-right));
|
|
2885
2910
|
position: absolute;
|
|
2886
|
-
top: calc(var(--py) - var(--p));
|
|
2911
|
+
top: calc(var(--py) - var(--p) + var(--inset-top));
|
|
2912
|
+
|
|
2913
|
+
&:dir(rtl) {
|
|
2914
|
+
inset-inline-end: calc(var(--px) - var(--p) + var(--inset-left));
|
|
2915
|
+
}
|
|
2887
2916
|
}
|
|
2888
2917
|
}
|
|
2889
2918
|
|
|
@@ -2895,8 +2924,8 @@ export type BbOffCanvasSlots = {
|
|
|
2895
2924
|
}
|
|
2896
2925
|
|
|
2897
2926
|
/*
|
|
2898
|
-
* The actions row, the same as BbDialog's footer
|
|
2899
|
-
*
|
|
2927
|
+
* The actions row, the same as BbDialog's footer:
|
|
2928
|
+
* an adaptive dialog renders this sheet below 768px, so the
|
|
2900
2929
|
* two footers are one surface. End-aligned, 8px apart, wrapping; `me-auto`
|
|
2901
2930
|
* pushes one to the start; a single wrapping `<div>` stretches to the
|
|
2902
2931
|
* full width and keeps its own layout.
|
|
@@ -2924,7 +2953,7 @@ export type BbOffCanvasSlots = {
|
|
|
2924
2953
|
}
|
|
2925
2954
|
|
|
2926
2955
|
/*
|
|
2927
|
-
* Reduced motion
|
|
2956
|
+
* Reduced motion: no slide, same feedback. The panel appears in
|
|
2928
2957
|
* place and fades in; closing holds it in place while it fades out and only
|
|
2929
2958
|
* then moves it off-screen, in one step (`translate` 0s, delayed by the fade).
|
|
2930
2959
|
* The fade runs over the same `--transition-duration`, so the JS timers stay
|