bitboss-ui 3.0.0-beta.66 → 3.0.0-beta.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/bin/bitboss-ui-mcp.mjs +127 -28
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/_virtual/_plugin-vue_export-helper.js +1 -2
- 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 +2 -2
- 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 +69 -10
- package/dist/ai/BbCalendar.md +102 -22
- package/dist/ai/BbCheckbox.md +27 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +16 -14
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +26 -22
- package/dist/ai/BbDatePicker.md +33 -21
- package/dist/ai/BbDatePickerInput.md +99 -36
- package/dist/ai/BbDialog.md +16 -12
- package/dist/ai/BbDropdown.md +30 -20
- package/dist/ai/BbDropdownButton.md +22 -19
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +10 -8
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +33 -25
- package/dist/ai/BbOffCanvas.md +9 -8
- package/dist/ai/BbPagination.md +11 -3
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +27 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +9 -9
- package/dist/ai/BbSelect.md +78 -42
- package/dist/ai/BbSelectPopover.md +30 -29
- package/dist/ai/BbSlider.md +259 -62
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +31 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +29 -11
- package/dist/ai/BbTabs.md +7 -7
- package/dist/ai/BbTabsList.md +1 -1
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +14 -13
- package/dist/ai/BbTextInput.md +29 -21
- package/dist/ai/BbTextarea.md +16 -15
- package/dist/ai/BbTimePicker.md +6 -5
- package/dist/ai/BbTimePickerInput.md +19 -21
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +4 -4
- package/dist/ai/BbTree.md +2 -2
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/CommonField.md +4 -4
- package/dist/ai/CommonFieldInput.md +3 -2
- 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 +18 -2
- package/dist/ai/changelog.json +695 -540
- package/dist/ai/components.json +85 -77
- package/dist/ai/composables/useBbConfig.md +5 -5
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/component-picker.md +3 -2
- package/dist/ai/guides/design-language.md +41 -14
- package/dist/ai/guides/design-tokens.md +107 -54
- package/dist/ai/guides/eslint-rules.md +4 -2
- package/dist/ai/guides/fetch-items-playbook.md +2 -1
- package/dist/ai/guides/icons-policy.md +2 -2
- package/dist/ai/guides/inline-edit-playbook.md +2 -2
- package/dist/ai/guides/installation-and-plugin-setup.md +351 -177
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +4 -5
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-table.md +3 -3
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +240 -57
- package/dist/ai/guides/migration/v3-beta-tooling.md +5 -5
- package/dist/ai/guides/passthrough.md +186 -136
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +8 -8
- package/dist/ai/guides/validation-libraries.md +15 -17
- package/dist/ai/helpers/inertia/manifest.json +2 -2
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +12 -12
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbAvatar.tree.json +1 -1
- package/dist/ai/manifest/components/BbBadge.json +5 -4
- package/dist/ai/manifest/components/BbBadge.tree.json +1 -1
- package/dist/ai/manifest/components/BbBadgeButton.json +2 -2
- package/dist/ai/manifest/components/BbBadgeButton.tree.json +1 -1
- package/dist/ai/manifest/components/BbBaseButton.json +2 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.json +1 -1
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.json +1 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.json +1 -1
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.json +3 -3
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +6 -5
- package/dist/ai/manifest/components/BbButton.tree.json +8 -1
- package/dist/ai/manifest/components/BbCalendar.json +27 -25
- package/dist/ai/manifest/components/BbCalendar.tree.json +17 -2
- package/dist/ai/manifest/components/BbCheckbox.json +5 -4
- package/dist/ai/manifest/components/BbCheckbox.tree.json +5 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +23 -21
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +3 -2
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +4 -2
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +30 -27
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +41 -38
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +8 -5
- package/dist/ai/manifest/components/BbDialog.json +6 -5
- package/dist/ai/manifest/components/BbDialog.tree.json +6 -3
- package/dist/ai/manifest/components/BbDropdown.json +15 -12
- package/dist/ai/manifest/components/BbDropdown.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +13 -10
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +2 -1
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +12 -11
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +5 -4
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +7 -4
- package/dist/ai/manifest/components/BbPagination.json +2 -2
- package/dist/ai/manifest/components/BbPagination.tree.json +3 -2
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +4 -3
- package/dist/ai/manifest/components/BbRadio.tree.json +5 -2
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +10 -9
- package/dist/ai/manifest/components/BbRating.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +31 -29
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +19 -17
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +6 -2
- package/dist/ai/manifest/components/BbSlider.json +28 -26
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +3 -2
- package/dist/ai/manifest/components/BbSwitch.tree.json +5 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +8 -6
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +25 -24
- package/dist/ai/manifest/components/BbTable.tree.json +7 -4
- package/dist/ai/manifest/components/BbTabs.json +9 -8
- package/dist/ai/manifest/components/BbTabsList.json +4 -4
- package/dist/ai/manifest/components/BbTabsPanels.json +2 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +7 -6
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +8 -7
- package/dist/ai/manifest/components/BbTextInput.tree.json +5 -4
- package/dist/ai/manifest/components/BbTextarea.json +7 -6
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +8 -7
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +23 -22
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +3 -2
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
- package/dist/ai/manifest/components/BbTree.json +3 -3
- package/dist/ai/manifest/components/BbTree.tree.json +1 -1
- package/dist/ai/manifest/components/CommonField.json +4 -4
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -1
- package/dist/ai/manifest/components/CommonPopover.tree.json +3 -0
- package/dist/ai/manifest/components/FlatListBox.json +2 -2
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +2 -2
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +2 -2
- 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/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +6 -7
- package/dist/ai/manifest/types.api.json +16 -7
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +6 -5
- package/dist/ai/source/BbBadge.md +46 -19
- package/dist/ai/source/BbBadgeButton.md +31 -11
- package/dist/ai/source/BbBaseButton.md +270 -267
- package/dist/ai/source/BbBaseCheckboxIcon.md +62 -56
- package/dist/ai/source/BbBaseRadioIcon.md +66 -56
- package/dist/ai/source/BbBaseSwitchIcon.md +70 -61
- package/dist/ai/source/BbBreadcrumbs.md +62 -47
- package/dist/ai/source/BbButton.md +127 -26
- package/dist/ai/source/BbCalendar.md +513 -148
- package/dist/ai/source/BbCheckbox.md +235 -178
- package/dist/ai/source/BbCheckboxGroup.md +86 -43
- package/dist/ai/source/BbColorInput.md +102 -39
- package/dist/ai/source/BbColorPalette.md +156 -141
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +30 -10
- package/dist/ai/source/BbConfirmPortal.md +16 -6
- package/dist/ai/source/BbDatePicker.md +220 -167
- package/dist/ai/source/BbDatePickerInput.md +331 -48
- package/dist/ai/source/BbDialog.md +166 -142
- package/dist/ai/source/BbDropdown.md +109 -35
- package/dist/ai/source/BbDropdownButton.md +123 -38
- package/dist/ai/source/BbDropdownGroup.md +86 -25
- package/dist/ai/source/BbDropzone.md +86 -78
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +103 -51
- package/dist/ai/source/BbOffCanvas.md +172 -150
- package/dist/ai/source/BbPagination.md +107 -103
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +222 -167
- package/dist/ai/source/BbRadioGroup.md +84 -42
- package/dist/ai/source/BbRating.md +178 -155
- package/dist/ai/source/BbSelect.md +126 -38
- package/dist/ai/source/BbSelectPopover.md +453 -365
- package/dist/ai/source/BbSlider.md +1121 -744
- package/dist/ai/source/BbSwitch.md +79 -8
- package/dist/ai/source/BbSwitchGroup.md +48 -25
- package/dist/ai/source/BbTable.md +487 -416
- package/dist/ai/source/BbTabs.md +67 -24
- package/dist/ai/source/BbTabsList.md +63 -23
- package/dist/ai/source/BbTabsPanels.md +63 -23
- package/dist/ai/source/BbTabsRoot.md +63 -23
- package/dist/ai/source/BbTag.md +67 -40
- package/dist/ai/source/BbTextInput.md +73 -36
- package/dist/ai/source/BbTextarea.md +91 -51
- package/dist/ai/source/BbTimePicker.md +133 -108
- package/dist/ai/source/BbTimePickerInput.md +97 -28
- package/dist/ai/source/BbToast.md +44 -27
- package/dist/ai/source/BbToastPortal.md +40 -24
- package/dist/ai/source/BbTooltip.md +3 -3
- package/dist/ai/source/BbTree.md +16 -3
- package/dist/ai/source/CommonField.md +2 -2
- package/dist/ai/source/CommonFieldInput.md +11 -6
- package/dist/ai/source/CommonPopover.md +7 -0
- package/dist/ai/source/CommonTimeSelector.md +3 -1
- package/dist/ai/source/FlatListBox.md +12 -2
- package/dist/ai/source/GroupedListBox.md +13 -2
- package/dist/ai/source/ListBox.md +2 -2
- package/dist/ai/source/OptionsContainer.md +49 -2
- package/dist/assets/css/reset.css_inline.js +1 -2
- package/dist/assets/svgs/alert.svg_raw.js +1 -2
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/calendar.svg_raw.js +1 -2
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/check_stroke.svg_raw.js +1 -2
- package/dist/assets/svgs/chevron_down.svg_raw.js +1 -2
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right.svg_raw.js +1 -2
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/clear.svg_raw.js +1 -2
- package/dist/assets/svgs/clock.svg_raw.js +1 -2
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/error.svg_raw.js +1 -2
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/search.svg_raw.js +1 -2
- package/dist/assets/svgs/spinner.svg_raw.js +1 -2
- package/dist/assets/svgs/star.svg_raw.js +1 -2
- package/dist/assets/svgs/user.svg_raw.js +1 -2
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAccordion/BbAccordion.vue.js +1 -2
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +21 -22
- package/dist/components/BbAccordion/types.js +1 -2
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue.js +1 -2
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +46 -43
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAlert/types.js +1 -2
- package/dist/components/BbAsterisk/BbAsterisk.vue.js +1 -2
- package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/BbAsterisk/types.js +1 -2
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.js +1 -2
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +52 -52
- package/dist/components/BbAvatar/types.js +1 -2
- package/dist/components/BbBadge/BadgeBodyContent.vue.js +1 -2
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +13 -14
- package/dist/components/BbBadge/BbBadge.vue.js +1 -2
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +73 -71
- package/dist/components/BbBadge/BbBadgeButton.vue.js +1 -2
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/BbBadge/badgeButtonContext.js +1 -2
- package/dist/components/BbBadge/types.d.ts +21 -5
- package/dist/components/BbBadge/types.js +7 -2
- package/dist/components/BbBaseButton/BbBaseButton.vue.js +1 -2
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +12 -13
- package/dist/components/BbBaseButton/RouterComponent.vue.js +1 -2
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +8 -9
- package/dist/components/BbBaseButton/types.d.ts +4 -2
- package/dist/components/BbBaseButton/types.js +6 -2
- package/dist/components/BbBaseButton/useLinkState.js +5 -6
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.js +1 -2
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +16 -17
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +4 -2
- package/dist/components/BbBaseCheckboxIcon/types.js +3 -3
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.js +1 -2
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +13 -14
- package/dist/components/BbBaseRadioIcon/types.d.ts +4 -2
- package/dist/components/BbBaseRadioIcon/types.js +3 -3
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js +1 -2
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +15 -16
- package/dist/components/BbBaseSwitchIcon/types.d.ts +4 -2
- package/dist/components/BbBaseSwitchIcon/types.js +3 -3
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.js +1 -2
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +156 -167
- package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.js +1 -2
- package/dist/components/BbBreadcrumbs/types.d.ts +19 -5
- package/dist/components/BbBreadcrumbs/types.js +8 -3
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue.js +1 -2
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +122 -111
- package/dist/components/BbButton/toggleRoving.js +2 -3
- package/dist/components/BbButton/types.d.ts +16 -12
- package/dist/components/BbButton/types.js +8 -2
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +47 -77
- package/dist/components/BbCalendar/BbCalendar.vue.js +1 -2
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +340 -374
- package/dist/components/BbCalendar/CalendarMonthPanel.vue.js +1 -2
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +15 -17
- package/dist/components/BbCalendar/CalendarYearPanel.vue.js +1 -2
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +55 -57
- package/dist/components/BbCalendar/calendarHost.js +1 -2
- package/dist/components/BbCalendar/types.d.ts +75 -30
- package/dist/components/BbCalendar/types.js +54 -3
- package/dist/components/BbCalendar/useCalendarContext.js +1 -2
- package/dist/components/BbCalendar/useCalendarGrid.js +182 -194
- package/dist/components/BbCalendar/useDayGrid.d.ts +17 -0
- package/dist/components/BbCalendar/useDayGrid.js +159 -155
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +6 -0
- package/dist/components/BbCalendar/useDayjsLocale.js +10 -4
- package/dist/components/BbCalendar/useToday.js +1 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.js +1 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +99 -94
- package/dist/components/BbCheckbox/types.d.ts +4 -2
- package/dist/components/BbCheckbox/types.js +3 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +95 -54
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.js +1 -2
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +206 -179
- package/dist/components/BbCheckboxGroup/types.d.ts +22 -11
- package/dist/components/BbCheckboxGroup/types.js +8 -9
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue.js +1 -2
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +12 -13
- package/dist/components/BbCollapsible/types.js +1 -2
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue.js +1 -2
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +185 -154
- package/dist/components/BbColorInput/types.d.ts +33 -18
- package/dist/components/BbColorInput/types.js +19 -10
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue.js +1 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +269 -279
- package/dist/components/BbColorPalette/types.d.ts +14 -6
- package/dist/components/BbColorPalette/types.js +4 -3
- 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.js +1 -2
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +108 -97
- package/dist/components/BbConfirm/BbConfirmHost.js +9 -10
- package/dist/components/BbConfirm/BbConfirmPortal.vue.js +1 -2
- package/dist/components/BbConfirm/BbConfirmPortal.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/components/BbConfirm/confirmEntry.js +1 -2
- package/dist/components/BbConfirm/types.d.ts +8 -4
- package/dist/components/BbConfirm/types.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +61 -105
- package/dist/components/BbDatePicker/BbDatePicker.vue.js +1 -2
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +206 -263
- package/dist/components/BbDatePicker/types.d.ts +46 -21
- package/dist/components/BbDatePicker/types.js +6 -3
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +154 -278
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.js +1 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +562 -661
- package/dist/components/BbDatePickerInput/dateFieldLayout.js +1 -2
- package/dist/components/BbDatePickerInput/types.d.ts +69 -21
- package/dist/components/BbDatePickerInput/types.js +68 -8
- package/dist/components/BbDialog/BbDialog.vue.d.ts +5 -4
- package/dist/components/BbDialog/BbDialog.vue.js +1 -2
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +227 -223
- package/dist/components/BbDialog/types.d.ts +7 -5
- package/dist/components/BbDialog/types.js +3 -3
- package/dist/components/BbDialog/useDialogStack.js +1 -2
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.js +1 -2
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +56 -57
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue.js +1 -2
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +377 -396
- package/dist/components/BbDropdown/BbDropdownGroup.vue.js +1 -2
- package/dist/components/BbDropdown/BbDropdownGroup.vue_vue_type_script_setup_true_lang.js +19 -22
- package/dist/components/BbDropdown/BbDropdownList.vue.js +1 -2
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +386 -399
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.js +1 -2
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +114 -114
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue.js +1 -2
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +22 -23
- package/dist/components/BbDropdown/normalizeGroups.js +20 -21
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +44 -16
- package/dist/components/BbDropdown/types.js +39 -4
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdown/useDropdownContext.js +1 -2
- package/dist/components/BbDropdown/useDropdownGroupRegistry.js +1 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.js +1 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +126 -103
- package/dist/components/BbDropdownButton/types.d.ts +46 -18
- package/dist/components/BbDropdownButton/types.js +19 -10
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +13 -5
- package/dist/components/BbDropzone/BbDropzone.vue.js +1 -2
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +141 -150
- package/dist/components/BbDropzone/types.d.ts +4 -2
- package/dist/components/BbDropzone/types.js +8 -2
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbForm.vue.js +1 -2
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +154 -159
- package/dist/components/BbForm/BbFormCustomField.js +4 -5
- package/dist/components/BbForm/bindFormField.js +67 -68
- package/dist/components/BbForm/formFields.js +1 -2
- package/dist/components/BbForm/formSchema.js +15 -53
- package/dist/components/BbHost/BbHost.vue.js +1 -2
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/BbHostOpening.js +12 -14
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.js +1 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +149 -153
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.js +1 -2
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/BbHoverCard/hoverCardFocus.js +1 -2
- package/dist/components/BbHoverCard/types.js +1 -2
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue.js +1 -2
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +45 -45
- package/dist/components/BbIcon/iconCache.js +1 -2
- package/dist/components/BbIcon/types.js +1 -2
- package/dist/components/BbIndicator/BbIndicator.vue.js +1 -2
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +9 -10
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbIndicator/types.js +1 -2
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue.js +1 -2
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +357 -374
- package/dist/components/BbNumberInput/numberDisplay.js +1 -2
- package/dist/components/BbNumberInput/platform.js +1 -2
- package/dist/components/BbNumberInput/types.d.ts +38 -16
- package/dist/components/BbNumberInput/types.js +12 -11
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.js +1 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +407 -429
- package/dist/components/BbOffCanvas/hostCloseLabel.js +1 -2
- package/dist/components/BbOffCanvas/sheetAttrs.js +1 -2
- package/dist/components/BbOffCanvas/sheetSnap.js +3 -8
- package/dist/components/BbOffCanvas/types.d.ts +5 -3
- package/dist/components/BbOffCanvas/types.js +3 -3
- package/dist/components/BbOffCanvas/useOffCanvasStack.js +1 -2
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.js +1 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +123 -128
- package/dist/components/BbPagination/paginationFit.js +0 -1
- package/dist/components/BbPagination/types.d.ts +12 -4
- package/dist/components/BbPagination/types.js +4 -3
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue.js +1 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +144 -163
- package/dist/components/BbPopover/BbPopoverPortal.vue.js +1 -2
- package/dist/components/BbPopover/BbPopoverPortal.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbPopover/types.js +1 -2
- package/dist/components/BbProgress/BbProgress.vue.js +1 -2
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +16 -17
- package/dist/components/BbProgress/types.js +1 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue.js +1 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +106 -98
- package/dist/components/BbRadio/types.d.ts +4 -2
- package/dist/components/BbRadio/types.js +3 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +89 -48
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.js +1 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +183 -156
- package/dist/components/BbRadioGroup/types.d.ts +23 -11
- package/dist/components/BbRadioGroup/types.js +8 -9
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue.js +1 -2
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +171 -172
- package/dist/components/BbRating/types.d.ts +15 -5
- package/dist/components/BbRating/types.js +10 -3
- package/dist/components/BbSelect/BbSelect.vue.d.ts +203 -206
- package/dist/components/BbSelect/BbSelect.vue.js +1 -2
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +285 -296
- package/dist/components/BbSelect/types.d.ts +49 -21
- package/dist/components/BbSelect/types.js +20 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +40 -37
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.js +1 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +735 -783
- package/dist/components/BbSelectPopover/knownItems.js +1 -2
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/sheetChipAttrs.js +1 -2
- package/dist/components/BbSelectPopover/types.d.ts +41 -22
- package/dist/components/BbSelectPopover/types.js +11 -3
- package/dist/components/BbSlider/BbSlider.vue.d.ts +38 -30
- package/dist/components/BbSlider/BbSlider.vue.js +1 -2
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +412 -367
- package/dist/components/BbSlider/types.d.ts +143 -44
- package/dist/components/BbSlider/types.js +10 -3
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.js +1 -2
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +14 -21
- package/dist/components/BbSmoothHeight/types.js +1 -2
- package/dist/components/BbSpinner/BbSpinner.vue.js +1 -2
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +14 -15
- package/dist/components/BbSpinner/types.js +1 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitch/BbSwitch.vue.js +1 -2
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +110 -117
- package/dist/components/BbSwitch/types.d.ts +21 -2
- package/dist/components/BbSwitch/types.js +8 -5
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +42 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.js +1 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +158 -160
- package/dist/components/BbSwitchGroup/types.d.ts +11 -4
- package/dist/components/BbSwitchGroup/types.js +4 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue.js +1 -2
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1335 -1515
- package/dist/components/BbTable/BbTableDataRow.js +1 -2
- package/dist/components/BbTable/BbTableEdgeRow.js +1 -2
- package/dist/components/BbTable/BbTableExpandRow.js +1 -2
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTable/BbTableSelectToggle.js +17 -18
- package/dist/components/BbTable/gridWidgets.js +2 -7
- package/dist/components/BbTable/measuredFloors.js +67 -65
- package/dist/components/BbTable/textRuler.d.ts +3 -1
- package/dist/components/BbTable/textRuler.js +40 -39
- package/dist/components/BbTable/types.d.ts +40 -8
- package/dist/components/BbTable/types.js +45 -3
- package/dist/components/BbTable/useRowReorder.js +179 -203
- package/dist/components/BbTable/utils.d.ts +7 -1
- package/dist/components/BbTable/utils.js +35 -40
- package/dist/components/BbTabs/BbTabs.vue.d.ts +39 -32
- package/dist/components/BbTabs/BbTabs.vue.js +1 -2
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +32 -32
- package/dist/components/BbTabs/BbTabsList.vue.js +1 -2
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +19 -24
- package/dist/components/BbTabs/BbTabsPanels.vue.js +1 -2
- package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +4 -7
- package/dist/components/BbTabs/BbTabsRoot.vue.js +1 -2
- package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +6 -7
- package/dist/components/BbTabs/tablistName.js +1 -2
- package/dist/components/BbTabs/types.d.ts +38 -11
- package/dist/components/BbTabs/types.js +11 -3
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue.js +1 -2
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +232 -246
- package/dist/components/BbTag/types.d.ts +26 -18
- package/dist/components/BbTag/types.js +20 -10
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +49 -35
- package/dist/components/BbTextInput/BbTextInput.vue.js +1 -2
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +145 -140
- package/dist/components/BbTextInput/types.d.ts +23 -13
- package/dist/components/BbTextInput/types.js +23 -13
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +49 -35
- package/dist/components/BbTextarea/BbTextarea.vue.js +1 -2
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +146 -138
- package/dist/components/BbTextarea/types.d.ts +22 -12
- package/dist/components/BbTextarea/types.js +23 -13
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +24 -18
- package/dist/components/BbTimePicker/BbTimePicker.vue.js +1 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +151 -156
- package/dist/components/BbTimePicker/types.d.ts +16 -6
- package/dist/components/BbTimePicker/types.js +4 -3
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +99 -99
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.js +1 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +313 -332
- package/dist/components/BbTimePickerInput/types.d.ts +33 -12
- package/dist/components/BbTimePickerInput/types.js +18 -8
- package/dist/components/BbToast/BbToast.vue.js +1 -2
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +14 -19
- package/dist/components/BbToast/BbToastMessage.vue.js +1 -2
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +50 -57
- package/dist/components/BbToast/BbToastPortal.vue.js +1 -2
- package/dist/components/BbToast/BbToastPortal.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/components/BbToast/BbToastRegion.vue.js +1 -2
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +31 -32
- package/dist/components/BbToast/types.d.ts +19 -7
- package/dist/components/BbToast/types.js +12 -13
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/BbTooltip.vue.js +1 -2
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +120 -121
- package/dist/components/BbTooltip/tooltipWarmup.js +0 -1
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTooltip/types.js +1 -2
- package/dist/components/BbTree/BbTree.vue.d.ts +2 -3
- package/dist/components/BbTree/BbTree.vue.js +1 -2
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +28 -27
- package/dist/components/BbTree/BbTreeLevel.vue.js +1 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +12 -20
- package/dist/components/BbTree/context.js +1 -2
- package/dist/components/BbTree/types.d.ts +13 -3
- package/dist/components/BbTree/types.js +4 -3
- package/dist/components/ChipsBox/ChipsBox.vue.js +1 -2
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +24 -26
- package/dist/components/ClearableButton/ClearableButton.vue.js +1 -2
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/CloseIcon/CloseButton.vue.js +2 -3
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +12 -18
- package/dist/components/CommaBox/CommaBox.vue.js +1 -2
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +20 -22
- package/dist/components/CommonField/CommonField.vue.js +1 -2
- package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +78 -73
- package/dist/components/CommonField/types.d.ts +2 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue.js +1 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +20 -21
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue.js +1 -2
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +92 -91
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.js +1 -2
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +29 -38
- package/dist/components/CommonTimeSelector/useMeridiem.js +1 -2
- package/dist/components/ErrorIcon/ErrorIcon.vue.js +1 -2
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/FlatListBox/FlatListBox.vue.js +1 -2
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +153 -157
- package/dist/components/FlatListBox/types.d.ts +2 -2
- package/dist/components/GroupedListBox/GroupedListBox.vue.js +1 -2
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +108 -112
- package/dist/components/GroupedListBox/types.d.ts +2 -2
- package/dist/components/ListBox/ListBox.vue.js +1 -2
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +21 -22
- package/dist/components/ListBox/types.d.ts +2 -2
- package/dist/components/OptionsContainer/OptionsContainer.vue.js +1 -2
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +92 -78
- package/dist/components/OptionsContainer/types.d.ts +6 -1
- package/dist/components/Transitions/ScaleFade.vue.js +1 -2
- package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/components/Transitions/Slide.vue.js +4 -5
- package/dist/components/Transitions/Slide.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/components/WarningIcon/WarningIcon.vue.js +1 -2
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/composables/autoHost.js +1 -2
- package/dist/composables/formSubmitLock.js +1 -2
- package/dist/composables/hostOpenings.js +6 -11
- package/dist/composables/hostRegistry.js +1 -2
- package/dist/composables/overlayRegistry.js +2 -3
- package/dist/composables/ssrMarker.js +1 -2
- package/dist/composables/useActiveInactiveState.js +1 -2
- package/dist/composables/useArray.js +1 -2
- package/dist/composables/useBaseOptions.js +19 -20
- package/dist/composables/useBbConfig.js +1 -2
- package/dist/composables/useBbDialog.js +18 -22
- package/dist/composables/useBbDropdown.js +3 -4
- package/dist/composables/useBbForm.js +6 -10
- package/dist/composables/useBbFormField.js +1 -2
- package/dist/composables/useBbOffCanvas.js +4 -5
- package/dist/composables/useBbTable.js +2 -3
- package/dist/composables/useBbTabs.js +108 -116
- package/dist/composables/useBodyScrollLock.js +1 -2
- package/dist/composables/useBreakpoint.js +1 -2
- package/dist/composables/useCancelableFunction.js +1 -2
- package/dist/composables/useCharacterCounter.js +2 -3
- package/dist/composables/useChoiceIndicator.js +4 -9
- package/dist/composables/useClosingInert.js +3 -8
- package/dist/composables/useCoarsePointer.js +1 -2
- package/dist/composables/useCoherence.js +1 -2
- package/dist/composables/useConfig.js +3 -11
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +29 -31
- package/dist/composables/useConfirm.js +7 -8
- package/dist/composables/useCountdown.js +6 -7
- package/dist/composables/useEscapeStackEntry.js +1 -2
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +7 -10
- package/dist/composables/useFrameworkDetection.js +1 -2
- package/dist/composables/useHashedWatcher.js +1 -2
- package/dist/composables/useHydrated.js +1 -2
- package/dist/composables/useId.js +1 -2
- package/dist/composables/useImeDismissBlur.js +2 -7
- package/dist/composables/useIndexById.js +1 -2
- package/dist/composables/useInertiaPage.js +1 -2
- package/dist/composables/useItemText.js +3 -3
- package/dist/composables/useItemValue.js +1 -2
- package/dist/composables/useItemsGetter.js +12 -19
- package/dist/composables/useKeyboardInset.js +0 -1
- package/dist/composables/useListboxFocus.js +1 -2
- package/dist/composables/useLocale.js +7 -8
- package/dist/composables/useLogger.js +1 -2
- package/dist/composables/useMobile.js +1 -2
- package/dist/composables/useOnDemandOpener.js +12 -13
- package/dist/composables/useOnFalsy.js +1 -2
- package/dist/composables/useOnTruthy.js +1 -2
- package/dist/composables/useOverlayNavigation.js +6 -11
- package/dist/composables/useOverlayYield.js +1 -2
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +235 -147
- package/dist/composables/usePrefill.js +11 -16
- package/dist/composables/useQuery.js +9 -22
- package/dist/composables/useRefusedCloseAnnouncement.js +1 -2
- package/dist/composables/useRoute.js +1 -2
- package/dist/composables/useRouter.js +1 -2
- package/dist/composables/useSafeArea.js +10 -11
- package/dist/composables/useSafeAreaInternal.js +4 -5
- package/dist/composables/useSegmentedFields.js +5 -17
- package/dist/composables/useServerPrefetch.js +1 -2
- package/dist/composables/useSheetSurface.js +1 -2
- package/dist/composables/useSsrState.js +1 -2
- package/dist/composables/useTableWidthContext.js +2 -3
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +48 -39
- package/dist/composables/useToggleInput.js +1 -2
- package/dist/composables/useTopLayer.js +1 -2
- package/dist/composables/useTypeahead.js +0 -1
- package/dist/composables/useUntil.js +1 -2
- package/dist/composables/useUrlQueryParam.d.ts +1 -1
- package/dist/composables/useUrlQueryParam.js +1 -2
- package/dist/composables/useViewportWidth.js +2 -3
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +2 -3
- package/dist/deprecation/removedProps.js +1 -2
- package/dist/directives/bbColor.js +7 -8
- package/dist/directives/bbDate.js +7 -8
- package/dist/directives/bbDialog.js +1 -2
- package/dist/directives/bbDropdown.js +18 -19
- package/dist/directives/bbHoverCard.js +8 -9
- package/dist/directives/bbOffCanvas.js +1 -2
- package/dist/directives/bbPopover.js +12 -13
- package/dist/directives/bbTime.js +7 -8
- package/dist/directives/bbTooltip.js +1 -2
- package/dist/directives/createPopoverDirective.js +6 -17
- package/dist/directives/directivePortal.js +1 -2
- package/dist/directives/overlayTrigger.js +24 -25
- package/dist/directives/renderingInstance.js +4 -8
- package/dist/i18n/locales/cs.json +10 -2
- package/dist/i18n/locales/da.json +10 -2
- package/dist/i18n/locales/de-CH.json +10 -2
- package/dist/i18n/locales/de.json +10 -2
- package/dist/i18n/locales/el.json +10 -2
- package/dist/i18n/locales/en-GB.json +10 -2
- package/dist/i18n/locales/en.json +10 -2
- package/dist/i18n/locales/es-MX.json +10 -2
- package/dist/i18n/locales/es.json +10 -2
- package/dist/i18n/locales/fi.json +10 -2
- package/dist/i18n/locales/fr.json +10 -2
- package/dist/i18n/locales/hu.json +10 -2
- package/dist/i18n/locales/it.json +10 -2
- package/dist/i18n/locales/ja.json +10 -2
- package/dist/i18n/locales/ko.json +10 -2
- package/dist/i18n/locales/nb.json +10 -2
- package/dist/i18n/locales/nl.json +10 -2
- package/dist/i18n/locales/pl.json +10 -2
- package/dist/i18n/locales/pt-BR.json +10 -2
- package/dist/i18n/locales/pt-PT.json +10 -2
- package/dist/i18n/locales/ro.json +10 -2
- package/dist/i18n/locales/ru.json +10 -2
- package/dist/i18n/locales/sv.json +10 -2
- package/dist/i18n/locales/tr.json +10 -2
- package/dist/i18n/locales/uk.json +10 -2
- package/dist/i18n/locales/zh-CN.json +10 -2
- package/dist/i18n/locales/zh-HK.json +10 -2
- package/dist/i18n/locales/zh-TW.json +10 -2
- package/dist/i18n/regionHints.js +1 -2
- package/dist/i18n/regions.js +1 -2
- package/dist/icon-scan.js +6 -11
- package/dist/index.d.ts +5 -5
- package/dist/index.js +87 -87
- package/dist/llms-full.txt +2809 -1459
- package/dist/llms-medium.txt +405 -203
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +10 -2
- package/dist/nuxt-auto-imports.js +2 -3
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +25 -26
- package/dist/passthrough-deduper.js +1 -2
- package/dist/plugin.js +15 -16
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +70 -23
- package/dist/runtime/nuxt-plugin.js +25 -26
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/AlertVariant.js +1 -2
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.js +1 -2
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.js +1 -2
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +6 -3
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/ConfirmVariant.js +1 -2
- package/dist/types/DatePickerType.d.ts +10 -5
- package/dist/types/DatePickerType.js +3 -4
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.js +1 -2
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/FieldLayout.js +1 -2
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/IndicatorVariant.js +1 -2
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/InputVariant.js +1 -2
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +6 -3
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/TabsVariant.js +1 -2
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/ToastVariant.js +1 -2
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.js +1 -2
- package/dist/types/passthrough.d.ts +116 -6
- package/dist/types/passthrough.js +19 -13
- package/dist/types/ptComponentMap.d.ts +34 -34
- package/dist/utilities/functions/animationsSettled.js +1 -2
- package/dist/utilities/functions/bytesToUnit.js +1 -2
- package/dist/utilities/functions/chunk.js +1 -2
- package/dist/utilities/functions/clamp.js +1 -2
- package/dist/utilities/functions/clampPrecision.js +1 -2
- package/dist/utilities/functions/convertDateValue.d.ts +5 -2
- package/dist/utilities/functions/convertDateValue.js +19 -13
- package/dist/utilities/functions/curry.js +1 -2
- package/dist/utilities/functions/deburr.js +1 -2
- package/dist/utilities/functions/elementLabel.js +1 -2
- package/dist/utilities/functions/empty.js +1 -2
- package/dist/utilities/functions/extractDomContainer.js +1 -2
- package/dist/utilities/functions/findInTree.js +1 -2
- package/dist/utilities/functions/flattenTree.js +1 -2
- package/dist/utilities/functions/get.js +1 -2
- package/dist/utilities/functions/hasVnodeListener.js +1 -2
- package/dist/utilities/functions/hash.js +1 -2
- package/dist/utilities/functions/identity.js +1 -2
- package/dist/utilities/functions/indexBy.js +1 -2
- package/dist/utilities/functions/isDateDisabled.js +23 -19
- package/dist/utilities/functions/isEqual.js +1 -2
- package/dist/utilities/functions/isHex.js +1 -2
- package/dist/utilities/functions/isImeComposing.js +1 -2
- package/dist/utilities/functions/isNil.js +1 -2
- package/dist/utilities/functions/isNotEmpty.js +1 -2
- package/dist/utilities/functions/isNotNil.js +1 -2
- package/dist/utilities/functions/isTextEntry.js +1 -2
- package/dist/utilities/functions/isoWeek.d.ts +36 -0
- package/dist/utilities/functions/isoWeek.js +21 -0
- package/dist/utilities/functions/itemProps.js +1 -2
- package/dist/utilities/functions/last.js +1 -2
- package/dist/utilities/functions/noop.js +1 -2
- package/dist/utilities/functions/normalizeDateBound.d.ts +4 -0
- package/dist/utilities/functions/normalizeDateBound.js +11 -10
- package/dist/utilities/functions/parsePaginationNumber.js +1 -2
- package/dist/utilities/functions/parseSize.js +1 -2
- package/dist/utilities/functions/parseWidthString.js +1 -2
- package/dist/utilities/functions/percentage.js +1 -2
- package/dist/utilities/functions/pickBy.js +1 -2
- package/dist/utilities/functions/range.js +1 -2
- package/dist/utilities/functions/readableValue.js +1 -2
- package/dist/utilities/functions/reject.js +1 -2
- package/dist/utilities/functions/resolveEnumProp.js +1 -2
- package/dist/utilities/functions/responsiveDefault.js +1 -2
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/functions/settlesVisible.js +1 -2
- package/dist/utilities/functions/slotKey.js +1 -2
- package/dist/utilities/functions/snapToStep.js +1 -2
- package/dist/utilities/functions/sort.js +1 -2
- package/dist/utilities/functions/throttle.js +1 -2
- package/dist/utilities/functions/toggleInput.js +1 -2
- package/dist/utilities/functions/transpose.js +1 -2
- package/dist/utilities/functions/validateDateFormat.js +1 -2
- package/dist/utilities/functions/wait.js +1 -2
- package/dist/utilities/functions/waitFor.js +2 -7
- package/dist/utilities/functions/warnRemovedAttrs.js +2 -5
- package/dist/utilities/functions/when.js +1 -2
- package/dist/utilities/misc/autofocus.js +1 -2
- package/dist/utilities/misc/iconsInjectionKey.js +1 -2
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utilities/misc/listboxMetrics.js +1 -2
- package/dist/utilities/misc/maskaDataOptions.d.ts +12 -0
- package/dist/utilities/misc/maskaDataOptions.js +36 -0
- package/dist/utilities/misc/pageText.d.ts +16 -0
- package/dist/utilities/misc/pageText.js +10 -0
- package/dist/utilities/misc/ssrStateInjectionKey.js +1 -2
- package/dist/utilities/misc/ssrValue.js +1 -2
- package/dist/utilities/misc/transitions.js +1 -2
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/copyData.js +1 -2
- package/dist/utils/cssLayers.js +1 -2
- package/dist/utils/focusVisibility.js +1 -2
- package/dist/utils/injectLibraryStyles.js +3 -12
- package/dist/utils/overlayEscapeStack.js +1 -2
- package/dist/utils/overlaySurfaceIsolation.js +1 -2
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +32 -31
- package/dist/utils/versionCheck.js +2 -3
- package/dist/vite-plugin.d.ts +55 -192
- package/dist/vite.js +415 -537
- package/llms.txt +4 -4
- package/package.json +15 -11
- package/scripts/lib/adoption-checklist.json +3 -3
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/check-queue.mjs +102 -0
- package/scripts/lib/consumer-install.mjs +64 -0
- package/scripts/lib/css-comment-text.mjs +16 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +76 -7
- package/scripts/lib/hidden-label-placeholder.mjs +19 -6
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/mcp-config.mjs +1 -1
- package/scripts/lib/pack.mjs +55 -0
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/quiet-gate.mjs +385 -0
- package/scripts/lib/reactive-v-model.mjs +11 -5
- package/scripts/lib/validate-bb-markup.mjs +150 -16
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -5
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -13
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -4
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -15
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -4
package/dist/ai/BbConfirm.md
CHANGED
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
| `--h-xs` | `pt:action` | `BbButton` | ── Scale tokens (height / icon / px / font-size) ─────── Heights and font sizes derive from the global scale knobs so retuning `--bb-control-h` / `--bb-fs` resizes the whole button scale coherently (md sits one step under the input height, lg matches it). The ladder is one block per size, six locals each, always the same six: `--h-*` min-height, `--icon-size-*` the icon/spinner box, `--px-*` the left and right padding, `--fs-*` font-size (which is also the line-height), `--r-*` border-radius, `--gap-*` the space between icon and label. Nothing paints from a `-<size>` local: the `.bb-button--<size>` class copies its block into the active `--h / --icon-size / --px / --fs / --r / --gap` below, and those are what the rules read. So retune a whole size here, or one button through the active six. Three places the ladder does not simply step: - radius is flat from md up (`--bb-radius`); only xs (`--bb-radius-sm`) and sm (0.8×) come off that value; - lg repeats md's icon size, font size, radius and gap — between those two sizes only height and padding grow; - 2xl repeats xl's gap. `--bw` and `--elev-tier` are size-dependent too but have no `-<size>` entries; the size classes assign them directly (xs and sm take the small border and shadow tiers, md and up the full ones). |
|
|
24
24
|
| `--h` | `pt:action` | `BbButton` | min-height, and the min-width of an icon-only button |
|
|
25
25
|
| `--icon-size` | `pt:action` | `BbButton` | every icon, and the spinner over it |
|
|
26
|
-
| `--px` | `pt:action` | `BbButton` |
|
|
26
|
+
| `--px` | `pt:action` | `BbButton` | left/right padding |
|
|
27
|
+
| `--ipx` | `pt:action` | `BbButton` | The padding on a side that carries an icon: a length of its own, 65% of --px by default (it follows a --px change). |
|
|
27
28
|
| `--fs` | `pt:action` | `BbButton` | font-size, and line-height |
|
|
28
29
|
| `--r` | `pt:action` | `BbButton` | border-radius |
|
|
29
30
|
| `--gap` | `pt:action` | `BbButton` | between icon and label |
|
|
@@ -88,14 +89,14 @@ if (await confirm({ title: 'Delete this file?', variant: 'destructive' })) {
|
|
|
88
89
|
|
|
89
90
|
**Areas with their own look.** A confirm takes the passthrough scope and the
|
|
90
91
|
tokens of the component that called `useConfirm()`, wherever the host is
|
|
91
|
-
mounted: a page inside a `<
|
|
92
|
+
mounted: a page inside a `<BbConfigScope>` ([passthrough guide](./guides/passthrough.md) § Named scopes)
|
|
92
93
|
gets confirms in its area's look with nothing to set up. A component portal
|
|
93
94
|
injects from that component's tree too. A `useConfirm()` called outside a
|
|
94
95
|
component (a store, module level) takes the host's.
|
|
95
96
|
|
|
96
97
|
Everything — content, buttons, behavior — travels in the message you pass to
|
|
97
98
|
`confirm()`; the width every confirm defaults to is the plugin's
|
|
98
|
-
`
|
|
99
|
+
`BbConfirm.size` (see [Size, fullscreen and focus](#size-fullscreen-and-focus)).
|
|
99
100
|
At least one of `title`, `text`, `portal` should be set (dev warning
|
|
100
101
|
otherwise).
|
|
101
102
|
|
|
@@ -189,7 +190,7 @@ settings-workspace recipe (`./recipes/vue/settings-workspace.md`, also under
|
|
|
189
190
|
|
|
190
191
|
`variant` also lands on the dialog root as a `bb-confirm--<name>` class.
|
|
191
192
|
`default` and `destructive` ship with the library; the vite/nuxt plugin's
|
|
192
|
-
`
|
|
193
|
+
`components.BbConfirm.variants` option registers additional names as a typed union (any
|
|
193
194
|
plain string still works for one-offs) — you provide the
|
|
194
195
|
`.bb-confirm--<name>` CSS yourself.
|
|
195
196
|
|
|
@@ -660,15 +661,15 @@ The slot's `data` is `any` per key, so `data.member.name` needs no cast.
|
|
|
660
661
|
### Size, fullscreen and focus
|
|
661
662
|
|
|
662
663
|
- `size` picks a maximum-width preset (`'xs'` … `'2xl'`, resolvable through
|
|
663
|
-
the plugin config's `
|
|
664
|
-
To widen every confirm at once, set it in the plugin
|
|
665
|
-
`
|
|
666
|
-
|
|
664
|
+
the plugin config's `components.BbDialog.sizeMap`); default confirms are compact.
|
|
665
|
+
To widen every confirm at once, set it in the build plugin instead —
|
|
666
|
+
`components: { BbConfirm: { size: 'lg' } }` (a config scope's applies to
|
|
667
|
+
confirms called inside it) — and let individual messages override it.
|
|
667
668
|
- `fullscreen: true` takes over the whole screen; `fullscreen: 'mobile'`
|
|
668
669
|
restricts that to small viewports.
|
|
669
670
|
- `focusTarget` is a CSS selector focused after opening (default: the first
|
|
670
671
|
tabbable element) — point it at an input inside a portal body.
|
|
671
|
-
- On mobile viewports the dialog follows the global `
|
|
672
|
+
- On mobile viewports the dialog follows the global `all.adaptive` and
|
|
672
673
|
renders as a bottom sheet; there is no per-call override for this, so test
|
|
673
674
|
overlay assertions against both surfaces (or pin the viewport).
|
|
674
675
|
|
|
@@ -685,27 +686,29 @@ button's own). State `open`. Backdrop is `::backdrop` — CSS, not pt.
|
|
|
685
686
|
|
|
686
687
|
`<BbHost />` takes no `pt`: every confirm is styled from the build plugin's
|
|
687
688
|
global map, under `BbConfirm` (or a named scope's, for a confirm called
|
|
688
|
-
inside a `<
|
|
689
|
+
inside a `<BbConfigScope>`). A muted wash on `header`, Yes/No spread on `footer`, a muted ✕ on
|
|
689
690
|
`close`, a primary ring with offset while `root:open`:
|
|
690
691
|
|
|
691
692
|
```ts
|
|
692
|
-
// bitboss-ui.
|
|
693
|
-
import {
|
|
693
|
+
// bitboss-ui.components.ts
|
|
694
|
+
import type { BbComponentsMap } from 'bitboss-ui/vite'; // 'bitboss-ui/nuxt' in a Nuxt app
|
|
694
695
|
|
|
695
|
-
export const
|
|
696
|
+
export const components = {
|
|
696
697
|
BbConfirm: {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
698
|
+
pt: {
|
|
699
|
+
header: 'bg-(--bb-muted)',
|
|
700
|
+
footer: 'justify-between',
|
|
701
|
+
close: 'text-(--bb-text-muted)',
|
|
702
|
+
'root:open': 'ring-2 ring-offset-2 ring-(--bb-primary)',
|
|
703
|
+
},
|
|
701
704
|
},
|
|
702
|
-
}
|
|
705
|
+
} satisfies BbComponentsMap;
|
|
703
706
|
```
|
|
704
707
|
|
|
705
708
|
The full grammar, the merge rules and the global map are in the
|
|
706
709
|
[passthrough guide](./guides/passthrough.md).
|
|
707
710
|
|
|
708
|
-
The map is typed where you write it by `
|
|
711
|
+
The map is typed where you write it by `satisfies BbComponentsMap`, never with an imported
|
|
709
712
|
`PtValue`: see [passthrough § The global map](./guides/passthrough.md#the-global-map).
|
|
710
713
|
|
|
711
714
|
### Works well with
|
|
@@ -759,7 +762,7 @@ The map is typed where you write it by `definePt`, never with an imported
|
|
|
759
762
|
|
|
760
763
|
| Prop | Type | Default | Required | Description |
|
|
761
764
|
| --- | --- | --- | --- | --- |
|
|
762
|
-
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `action`, `close`, `content`, `footer`, `header`, `root`, `sheet`, `text`, `title`. States: `default`, `destructive`, `open`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbConfirmProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
765
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `action`, `close`, `content`, `footer`, `header`, `root`, `sheet`, `text`, `title`. States: `default`, `destructive`, `fullscreen`, `open`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbConfirmProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
763
766
|
|
|
764
767
|
## Passthrough parts and states
|
|
765
768
|
|
|
@@ -782,6 +785,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
782
785
|
| State | When it is on |
|
|
783
786
|
| --- | --- |
|
|
784
787
|
| `open` | Component-wide: a confirm is showing. |
|
|
788
|
+
| `fullscreen` | Component-wide: the showing confirm is fullscreen (its `fullscreen` option, or `'mobile'` on a phone). |
|
|
785
789
|
| `default` | Component-wide, from the message: `variant: 'default'`. Merged after the part's base entry and before its states, so the real states still win. |
|
|
786
790
|
| `destructive` | Component-wide, from the message: `variant: 'destructive'`. Below the real states, like every variant. |
|
|
787
791
|
|
|
@@ -804,9 +808,9 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
804
808
|
|
|
805
809
|
- `BbConfirm` _(this component)_ — its own template binds: `text` → `div.bb-confirm__text`, `action` → `BbButton`; hands `BbDialog` the pt map `passthrough.forward(DIALOG_PARTS, BB_DIALOG_PT.states)` (ours → theirs)
|
|
806
810
|
- `BbDialog` _(public — [contract](./BbDialog.md))_ — its own pt parts (`BbDialog`): `header` → `div.bb-dialog__header`, `title` → `span.bb-dialog__title`, `description` → `p.bb-dialog__description`, `close` → `CloseButton`, `content` → `div.bb-dialog__content`, `footer` → `div.bb-dialog__footer`; hands `BbOffCanvas` the pt map `{ root: 'root', header: 'header', title: 'title', description: 'description', content: 'content', footer: 'footer', close: 'close', sheet: 'root', }` (ours → theirs); documented CSS variables: `--px`, `--close-size`
|
|
807
|
-
- `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`
|
|
811
|
+
- `CloseButton` _(internal — not importable, reach it through `BbDialog`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
808
812
|
- `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`; also mounts `CloseButton`
|
|
809
|
-
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
|
|
813
|
+
- `BbButton` _(public — [contract](./BbButton.md))_ — its own pt parts (`BbButton`): `root` → `BbBaseButton`, `spinner` → `BbSpinner`, `icon` → `span.bb-button__icon`, `icon` → `BbIcon`, `icon` → `span.bb-button__prepend-icon`, `text` → `span.bb-button__text`, `icon` → `span.bb-button__append-icon`; documented CSS variables: `--h-xs`, `--h`, `--icon-size`, `--px`, `--ipx`, `--fs`, `--r`, `--gap`, `--bg`, `--bg-hover`, `--bg-pressed`, `--fg`, `--border-color`, `--ring-color`, `--ring-size`, `--bw`, `--fg-hover`, `--border-hover`, `--fg-pressed`, `--border-pressed`, `--bg-disabled`, `--fg-disabled`, `--border-disabled`, `--opacity-disabled`, `--elev-tier`, `--elev`; also mounts `BbIcon`, `BbSpinner`
|
|
810
814
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
811
815
|
|
|
812
816
|
## See Also
|
package/dist/ai/BbDatePicker.md
CHANGED
|
@@ -136,10 +136,11 @@ It mirrors `<input type="…">`, so the names should already be familiar:
|
|
|
136
136
|
| ------------------ | -------------------- | --------------------- | ------------- |
|
|
137
137
|
| `date` _(default)_ | the day grid | `2026-08-14` | ISO instant |
|
|
138
138
|
| `datetime` | day grid + time rail | `2026-08-14` + `time` | ISO instant |
|
|
139
|
+
| `week` | day grid, week rows | `2026-W44` | — |
|
|
139
140
|
| `month` | the 12-month grid | `2026-08` | — |
|
|
140
141
|
| `year` | the year list | `2026` | — |
|
|
141
142
|
|
|
142
|
-
`month` and `year` are **calendar labels, not instants**. A month has no
|
|
143
|
+
`week`, `month` and `year` are **calendar labels, not instants**. A month has no
|
|
143
144
|
timezone, and pinning one to an instant is how you lose it: the start of August
|
|
144
145
|
in Rome is the 31st of July in UTC, so a value stored that way reads back as the
|
|
145
146
|
wrong month. They force `floating`, ignore `utc`, and warn if you pass it.
|
|
@@ -163,6 +164,12 @@ selectable — it cannot silently delete the month you named.
|
|
|
163
164
|
The month grid pages by year and the year list by decade; arrows, Home/End and
|
|
164
165
|
PageUp/PageDown all keep working, one unit up.
|
|
165
166
|
|
|
167
|
+
`type="week"` keeps the day grid and its keyboard, adds a week-number column
|
|
168
|
+
(Monday first, always), and makes any day pick its ISO week: the value is
|
|
169
|
+
`2026-W44`, the activator slot's `text` reads "Week 44, 2026", and `min` /
|
|
170
|
+
`max` (a week or a date) enable a week only when all seven days are inside.
|
|
171
|
+
See [BbCalendar § Weeks](./BbCalendar.md#weeks).
|
|
172
|
+
|
|
166
173
|
### Multi-selection
|
|
167
174
|
|
|
168
175
|
`multiple` turns every pick into a toggle: the value is a **sorted array** and
|
|
@@ -283,7 +290,7 @@ has a worked example.
|
|
|
283
290
|
### Adaptive and positioning
|
|
284
291
|
|
|
285
292
|
On mobile the calendar opens in a bottom off-canvas sheet instead of a floating
|
|
286
|
-
popover (`adaptive`, on by default via `
|
|
293
|
+
popover (`adaptive`, on by default via `all.adaptive`; forward extra sheet
|
|
287
294
|
props with `offCanvasProps`). Position the desktop popover with `placement`,
|
|
288
295
|
`offset`, `padding`, `boundary`, and `disableFlip` — the same knobs as the other
|
|
289
296
|
overlays (`placement` is read at open: a change while open applies at the next
|
|
@@ -357,7 +364,8 @@ desktop, the sheet itself on a phone — it also carries the sizing tokens, so
|
|
|
357
364
|
bottom sheet on a phone only, applied after `panel`), `header` (the
|
|
358
365
|
navigation bar), `arrow` (the previous / next buttons), `month` and `year`
|
|
359
366
|
(the heading buttons), `cellColumnHeader` (each weekday letter), `day` (one whole
|
|
360
|
-
day cell) and `dayButton` (the button inside it), `
|
|
367
|
+
day cell) and `dayButton` (the button inside it), `week` (one row with
|
|
368
|
+
`type="week"`) and `weekNumber` (its ISO week number), `monthItem` and
|
|
361
369
|
`yearItem` (one button of the month / year panel).
|
|
362
370
|
|
|
363
371
|
States: `open` follows the surface; `arrow` is `disabled` at a `min` / `max`
|
|
@@ -365,7 +373,9 @@ bound; `month` and `year` are `active` while their panel is open. The cells
|
|
|
365
373
|
resolve per node — on `day` and `dayButton`: `selected`, `disabled`, `today`,
|
|
366
374
|
`outside` (a day of the previous or next month), `rangeStart` / `rangeEnd` /
|
|
367
375
|
`inRange` (a committed range) and `highlighted` (the keyboard cursor). The
|
|
368
|
-
panel items carry the same set without `today` and `outside
|
|
376
|
+
panel items carry the same set without `today` and `outside`; the week rows
|
|
377
|
+
(`week`, `weekNumber`) carry `selected`, `rangeStart`, `rangeEnd` and
|
|
378
|
+
`inRange`, per row.
|
|
369
379
|
|
|
370
380
|
`day` is the whole cell and `dayButton` the rounded mark inside it: a
|
|
371
381
|
background on `pt:day` paints the full cell square, so restyle the mark on
|
|
@@ -453,23 +463,23 @@ and digit typeahead; the time rail exposes labelled columns. Always pass a
|
|
|
453
463
|
|
|
454
464
|
| Prop | Type | Default | Required | Description |
|
|
455
465
|
| --- | --- | --- | --- | --- |
|
|
456
|
-
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `arrow`, `cellColumnHeader`, `day`, `dayButton`, `header`, `item`, `month`, `monthItem`, `panel`, `root`, `sheet`, `year`, `yearItem`. States: `
|
|
466
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `arrow`, `cellColumnHeader`, `day`, `dayButton`, `header`, `item`, `month`, `monthItem`, `panel`, `root`, `sheet`, `week`, `weekNumber`, `year`, `yearItem`. States: `disabled`, `open`, `highlighted`, `inRange`, `outside`, `rangeEnd`, `rangeStart`, `selected`, `today`, `active`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDatePickerProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
457
467
|
| `activator` | `ElementOrComponentRef \| undefined` | | | External activator element or component ref. When provided, the `activator` slot is not rendered and click + ARIA are attached programmatically to the referenced element — mirroring the `BbColorPalette` activator API. |
|
|
458
468
|
| `activeSegment` | `'start'` \| `'end'` | | | Which end the time rail edits in range + `type="datetime"` (`v-model:active-segment`). Standalone use manages this internally; an embedding host (the date input) drives it from its focused field. Ignored outside range + datetime. |
|
|
459
|
-
| `adaptive` | `boolean \| undefined` | ``
|
|
469
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile, open in a bottom off-canvas sheet instead of a floating popover. When unset, falls back to the global `all.adaptive`. |
|
|
460
470
|
| `ampm` | `boolean \| undefined` | `false` | | 12-hour display with an AM/PM column (requires `type="datetime"`); emits stay 24h. |
|
|
461
471
|
| `anchor` | `ElementOrComponentRef \| undefined` | | | Element or component ref the popover positions itself relative to. Defaults to the activator when omitted (anchor to a larger row while a smaller element stays the click target). |
|
|
462
472
|
| `boundary` | `ElementOrComponentRefOrSelector \| undefined` | | | Constrains the popover within a bounding element or CSS selector: sideways only, alongside the trigger; it flips at the viewport. |
|
|
463
473
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the activator and the calendar. |
|
|
464
474
|
| `disableFlip` | `boolean \| undefined` | `false` | | Disable the automatic flip to the opposite side on overflow. |
|
|
465
475
|
| `eager` | `boolean \| undefined` | `false` | | Render popover content before it is first shown. |
|
|
466
|
-
| `firstDayOfWeek` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| undefined` | `the locale's week start` | | First day of the week (0 = Sunday … 6 = Saturday). Omitted, the active locale's week start: Monday for `it`, `de`, `fr`, `en-gb`…, Sunday for bare `en` (US) and `pt` (Brazil). |
|
|
467
|
-
| `floating` | `boolean \| undefined` | `false` | | Emit plain calendar strings instead of zoned ISO instants. Implied (and forced) by `type="month"` and `type="year"`. |
|
|
476
|
+
| `firstDayOfWeek` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| undefined` | `the locale's week start` | | First day of the week (0 = Sunday … 6 = Saturday). Omitted, the active locale's week start: Monday for `it`, `de`, `fr`, `en-gb`…, Sunday for bare `en` (US) and `pt` (Brazil). Ignored under `type="week"`: ISO weeks run Monday to Sunday, so a week grid always starts on Monday. |
|
|
477
|
+
| `floating` | `boolean \| undefined` | `false` | | Emit plain calendar strings instead of zoned ISO instants. Implied (and forced) by `type="week"`, `type="month"` and `type="year"`. |
|
|
468
478
|
| `label` | `string \| undefined` | | | Accessible label. The activator is named by it followed by the activator's own text ("Due date 12 Sep"), through `aria-labelledby`. |
|
|
469
|
-
| `max` | `string \| undefined` | | | Maximum selectable value, in this `type`'s shape. A finer bound is accepted and ceiled to the unit, with a warning. |
|
|
470
|
-
| `min` | `string \| undefined` | | | Minimum selectable value, in this `type`'s shape — `YYYY-MM-DD` (`YYYY-MM-DDTHH:mm` with `datetime`, `YYYY-MM` with `month`, `YYYY` with `year`). A finer bound is accepted and floored to the unit, with a warning. |
|
|
471
|
-
| `modelValue` | `string \| string[] \| null` | | yes | v-model: `null` when empty, a string, a `[start, end]` pair with `range`, or a sorted array with `multiple`. The string is `YYYY-MM-DD` when `floating` (`YYYY-MM` / `YYYY` for `month` / `year`), otherwise a zoned ISO instant (carrying the time under `datetime`). |
|
|
472
|
-
| `multiple` | `boolean` | `false` | | Multi-selection: each pick toggles a value in a sorted array (days, months or years), and the panel stays open until dismissed. Needs an array `modelValue` (`[]` when empty, never `null`). Throws with `range` or `type="datetime"`. |
|
|
479
|
+
| `max` | `string \| undefined` | | | Maximum selectable value, in this `type`'s shape. A finer bound is accepted and ceiled to the unit, with a warning (`week`: as `min`). |
|
|
480
|
+
| `min` | `string \| undefined` | | | Minimum selectable value, in this `type`'s shape — `YYYY-MM-DD` (`YYYY-MM-DDTHH:mm` with `datetime`, `YYYY-MM` with `month`, `YYYY` with `year`; a week or a date with `week`, whole weeks only). A finer bound is accepted and floored to the unit, with a warning. |
|
|
481
|
+
| `modelValue` | `string \| string[] \| null` | | yes | v-model: `null` when empty, a string, a `[start, end]` pair with `range`, or a sorted array with `multiple`. The string is `YYYY-MM-DD` when `floating` (`YYYY-Www` / `YYYY-MM` / `YYYY` for `week` / `month` / `year`), otherwise a zoned ISO instant (carrying the time under `datetime`). |
|
|
482
|
+
| `multiple` | `boolean` | `false` | | Multi-selection: each pick toggles a value in a sorted array (days, weeks, months or years), and the panel stays open until dismissed. Needs an array `modelValue` (`[]` when empty, never `null`). Throws with `range` or `type="datetime"`. |
|
|
473
483
|
| `numberOfMonths` | `number \| undefined` | `1` | | How many months the popover shows side by side (day grids only); the phone sheet always shows one. Too narrow for them all, the months wrap. |
|
|
474
484
|
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
|
|
475
485
|
| `offset` | `number \| undefined` | `4` | | Space the popover keeps from the activator. |
|
|
@@ -478,12 +488,12 @@ and digit typeahead; the time rail exposes labelled columns. Always pass a
|
|
|
478
488
|
| `range` | `boolean` | `false` | | Enables range selection (`[start, end]`). |
|
|
479
489
|
| `readonly` | `boolean \| undefined` | `false` | | Prevents opening while keeping the activator visible. |
|
|
480
490
|
| `seconds` | `boolean \| undefined` | `false` | | Adds the seconds column (requires `type="datetime"`). |
|
|
481
|
-
| `selectable` | `((date: string) => boolean) \| undefined` | | | Predicate invoked per candidate; return `false` to disable it. Receives the value in this `type`'s shape — `YYYY-MM` under `month`, `YYYY` under `year`. |
|
|
491
|
+
| `selectable` | `((date: string) => boolean) \| undefined` | | | Predicate invoked per candidate; return `false` to disable it. Receives the value in this `type`'s shape — `YYYY-Www` under `week` (so a week is enabled or disabled whole), `YYYY-MM` under `month`, `YYYY` under `year`. |
|
|
482
492
|
| `step` | `number \| undefined` | `1` | | Minute-column granularity and arrow stepping (requires `type="datetime"`). |
|
|
483
493
|
| `time` | `string \| string[] \| null \| undefined` | | | Companion time model (`v-model:time`), 24-hour `HH:mm` / `HH:mm:ss`. With `floating` it is the only carrier of the time; otherwise it mirrors the time inside `modelValue`. Requires `type="datetime"`. |
|
|
484
494
|
| `transitionDuration` | `number \| undefined` | `250` | | Popover/sheet transition duration in milliseconds. |
|
|
485
|
-
| `type` | `'date'` \| `'month'` \| `'year'` \| `'datetime'` | `"date"` | | What the picker selects and emits: `date` (a day), `datetime` (a day plus a time rail), `month` (`YYYY-MM`) or `year` (`YYYY`). `month` / `year` force `floating`, ignore `utc`, and leave the time props inert. |
|
|
486
|
-
| `utc` | `boolean \| undefined` | `false` | | Emit UTC (`...Z`) instead of the local offset. Ignored with `floating`, and therefore with `type="month"`/`type="year"`. |
|
|
495
|
+
| `type` | `'date'` \| `'month'` \| `'year'` \| `'week'` \| `'datetime'` | `"date"` | | What the picker selects and emits: `date` (a day), `datetime` (a day plus a time rail), `week` (an ISO week, `YYYY-Www`: any day of a row picks its week), `month` (`YYYY-MM`) or `year` (`YYYY`). `week` / `month` / `year` force `floating`, ignore `utc`, and leave the time props inert. |
|
|
496
|
+
| `utc` | `boolean \| undefined` | `false` | | Emit UTC (`...Z`) instead of the local offset. Ignored with `floating`, and therefore with `type="week"`/`type="month"`/`type="year"`. |
|
|
487
497
|
|
|
488
498
|
## Passthrough parts and states
|
|
489
499
|
|
|
@@ -497,6 +507,8 @@ and digit typeahead; the time rail exposes labelled columns. Always pass a
|
|
|
497
507
|
| `month` | The month heading button; it opens the month panel. |
|
|
498
508
|
| `year` | The year heading button; it opens the year panel. |
|
|
499
509
|
| `cellColumnHeader` | Each weekday letter above the grid — a broadcast. |
|
|
510
|
+
| `week` | One row of seven days with `type="week"` — the band a picked week paints and the hover outline. A broadcast resolved per row. |
|
|
511
|
+
| `weekNumber` | The ISO week number heading each row with `type="week"` — a broadcast resolved per row. |
|
|
500
512
|
| `day` | One whole day cell — a broadcast resolved per day. A background here paints the full cell square; restyle the round mark on `dayButton`. |
|
|
501
513
|
| `dayButton` | The button inside a day cell — the mark that shows selection. A broadcast resolved per day. |
|
|
502
514
|
| `monthItem` | One month button of the month panel (the home grid of `type="month"`) — a broadcast resolved per month. |
|
|
@@ -511,10 +523,10 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
511
523
|
| --- | --- |
|
|
512
524
|
| `outside` | Per node, on `day` / `dayButton`: a day of the previous or next month, shown to fill the grid. |
|
|
513
525
|
| `today` | Per node, on `day` / `dayButton`: today. |
|
|
514
|
-
| `inRange` | Per node, on the cells (`day`, `dayButton`, `monthItem`, `yearItem`): inside a committed range, between its ends. |
|
|
515
|
-
| `selected` | Per node, on the cells: a chosen day, month or year; on `item`, the picked time's entry in each column. |
|
|
516
|
-
| `rangeStart` | Per node, on the cells: a committed range's first day, month or year. |
|
|
517
|
-
| `rangeEnd` | Per node, on the cells: a committed range's last day, month or year. |
|
|
526
|
+
| `inRange` | Per node, on the cells (`day`, `dayButton`, `monthItem`, `yearItem`) and the week rows (`week`, `weekNumber`): inside a committed range, between its ends. |
|
|
527
|
+
| `selected` | Per node, on the cells: a chosen day, month or year; on `week` / `weekNumber`, a chosen week (a range's ends too, as on its days); on `item`, the picked time's entry in each column. |
|
|
528
|
+
| `rangeStart` | Per node, on the cells and the week rows: a committed range's first day, week, month or year. |
|
|
529
|
+
| `rangeEnd` | Per node, on the cells and the week rows: a committed range's last day, week, month or year. |
|
|
518
530
|
| `disabled` | Component-wide while the picker is `disabled`. Also per node: on the cells, one outside `min` / `max` or refused by `selectable`; on `arrow`, at a bound or while the month / year panel is open. |
|
|
519
531
|
| `active` | Per node, on `month` / `year`: its panel is open. |
|
|
520
532
|
| `open` | Component-wide: the calendar is showing. |
|
|
@@ -574,11 +586,11 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
574
586
|
- Listed nodes are the ones `BbDatePicker`'s API reaches or that declare a documented CSS variable; the rest fold into "also mounts". The complete tree, repeats and undocumented locals included, is `manifest/components/BbDatePicker.tree.json`.
|
|
575
587
|
|
|
576
588
|
- `BbDatePicker` _(this component)_ — its own template binds: `panel` → `div`; hands `BbCalendar` the pt map ` passthrough.forward(DATE_PICKER_CALENDAR_PARTS, BB_CALENDAR_PT.states) ` (ours → theirs); hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs)
|
|
577
|
-
- `BbCalendar` _(public — [contract](./BbCalendar.md))_ — its own pt parts (`BbCalendar`): `header` → `div.bb-calendar__header`, `arrow` → `BbBaseButton`, `month` → `BbBaseButton`, `year` → `BbBaseButton`, `day` → `div.bb-calendar__day`, `dayButton` → `button.bb-calendar__day-button`; documented CSS variables: `--cell`, `--unit-row`; also mounts `ScaleFade`, `Slide`, `CalendarMonthPanel`, `CalendarYearPanel`
|
|
589
|
+
- `BbCalendar` _(public — [contract](./BbCalendar.md))_ — its own pt parts (`BbCalendar`): `header` → `div.bb-calendar__header`, `arrow` → `BbBaseButton`, `month` → `BbBaseButton`, `year` → `BbBaseButton`, `week` → `div.bb-calendar__week`, `weekNumber` → `div.bb-calendar__week-number`, `day` → `div.bb-calendar__day`, `dayButton` → `button.bb-calendar__day-button`; documented CSS variables: `--cell`, `--unit-row`, `--wk`; also mounts `BbIcon`, `ScaleFade`, `Slide`, `CalendarMonthPanel`, `CalendarYearPanel`
|
|
578
590
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
579
591
|
- `CommonTimeSelector` _(internal — not importable, reach it through `BbCalendar`)_ — its own pt parts (`BbCalendar`): `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`; also mounts `BbBaseButton`
|
|
580
592
|
- `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
581
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
593
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
582
594
|
- Also mounts `CommonPopover`
|
|
583
595
|
|
|
584
596
|
## See Also
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
| `--border-focus` | `pt:box` | `CommonFieldInput` | frame while focused, or --active |
|
|
41
41
|
| `--ring-size` | `pt:box` | `CommonFieldInput` | ring width; 0 is a variant declining the ring |
|
|
42
42
|
| `--ring-color` | `pt:box` | `CommonFieldInput` | ring colour; state owns it, not variants |
|
|
43
|
-
| `--elev` | `pt:box` | `CommonFieldInput` | Resting lift, alone in `box-shadow`: the ring is the box's outline
|
|
43
|
+
| `--elev` | `pt:box` | `CommonFieldInput` | Resting lift, alone in `box-shadow`: the ring is the box's outline, so a theme's `--elev: none` never takes the ring with it. |
|
|
44
44
|
| `--frost` | `pt:box` | `CommonFieldInput` | Plate frost — a full `backdrop-filter` value (see --bb-surface-filter). Routed through a local rather than read from the token directly, so a chrome-less variant can decline it: frosting a ghost field gives it the plate it is contractually not supposed to have. |
|
|
45
45
|
| `--inside-label-clearance` | `pt:box`, `pt:prefix`, `pt:suffix` | `CommonFieldInput` | Height and top padding added above the text for a label rendered inside the box. Zero here; the `--inside-label` rules at the bottom of this file raise it to one label line, or two with a description. |
|
|
46
46
|
| `--w` | `pt:icon` | `BbIcon` | `--w` is set inline by BbIcon from the size prop. The `initial` default seals it: without it an ancestor's `--w` (e.g. a dropdown's width bridge) would inherit in and size the icon. The `--size` indirection stays so higher-specificity rules (e.g. `.bb-badge .bb-icon`) can re-point it. |
|
|
@@ -78,7 +78,7 @@ The shared surface applies:
|
|
|
78
78
|
it visually while keeping the accessible name; **`labelPosition`** aligns
|
|
79
79
|
it; the **`label` slot** replaces it with `{ text, hasErrors }`.
|
|
80
80
|
- **`labelMode`** — `outside` / `floating` / `inside`. When unset it falls back
|
|
81
|
-
to the project-wide `
|
|
81
|
+
to the project-wide `all.labelMode` (library default:
|
|
82
82
|
`outside`), the same resolution as `BbTextInput` and `BbNumberInput`.
|
|
83
83
|
- **`description`** (always visible), **`hint`** (shows while the control is
|
|
84
84
|
active; `persistentHint` pins it), and **`errors`** + **`hasErrors`**
|
|
@@ -412,17 +412,18 @@ const setPreset = (days: number) => {
|
|
|
412
412
|
</script>
|
|
413
413
|
```
|
|
414
414
|
|
|
415
|
-
### `type` — day, month, year, or day + time
|
|
415
|
+
### `type` — day, week, month, year, or day + time
|
|
416
416
|
|
|
417
417
|
`type` decides which segments the field renders and what it emits. It mirrors
|
|
418
418
|
`<input type="…">`:
|
|
419
419
|
|
|
420
|
-
| `type` | segments | emits | range emits
|
|
421
|
-
| ------------------ | -------------- | --------------------- |
|
|
422
|
-
| `date` _(default)_ | `DD/MM/YYYY` | ISO / `YYYY-MM-DD` | `[start, end]`
|
|
423
|
-
| `datetime` | + `HH:mm(:ss)` | ISO carrying the time | `[start, end]`
|
|
424
|
-
| `
|
|
425
|
-
| `
|
|
420
|
+
| `type` | segments | emits | range emits |
|
|
421
|
+
| ------------------ | -------------- | --------------------- | -------------------------- |
|
|
422
|
+
| `date` _(default)_ | `DD/MM/YYYY` | ISO / `YYYY-MM-DD` | `[start, end]` |
|
|
423
|
+
| `datetime` | + `HH:mm(:ss)` | ISO carrying the time | `[start, end]` |
|
|
424
|
+
| `week` | `W44 2026` | `2026-W44` | `['2026-W41', '2026-W43']` |
|
|
425
|
+
| `month` | `MM/YYYY` | `2026-08` | `['2026-01', '2026-03']` |
|
|
426
|
+
| `year` | `YYYY` | `2026` | `['2026', '2028']` |
|
|
426
427
|
|
|
427
428
|
```vue
|
|
428
429
|
<BbDatePickerInput v-model="period" label="Reporting period" type="month" />
|
|
@@ -435,7 +436,7 @@ promising `DD/MM/YYYY` to a two-segment field would be worse than no hint at
|
|
|
435
436
|
all. The calendar button opens the matching terminal grid, so typing and
|
|
436
437
|
picking always produce the same shape.
|
|
437
438
|
|
|
438
|
-
`month` and `year` are **calendar labels, not instants**: they force `floating`,
|
|
439
|
+
`week`, `month` and `year` are **calendar labels, not instants**: they force `floating`,
|
|
439
440
|
ignore `utc`, and make the time props inert. This is deliberate rather than
|
|
440
441
|
squeamish — the start of August in Rome is the 31st of July in UTC, so a month
|
|
441
442
|
stored as an instant reads back as the wrong month for half the world.
|
|
@@ -446,6 +447,60 @@ a DEV warning, so `min="2026-03-15"` under `type="month"` leaves the whole of
|
|
|
446
447
|
March selectable instead of quietly deleting it. `selectable` receives the same
|
|
447
448
|
shape it emits.
|
|
448
449
|
|
|
450
|
+
#### Weeks
|
|
451
|
+
|
|
452
|
+
`type="week"` types and emits an ISO 8601 week. The field shows a literal `W`,
|
|
453
|
+
a week segment and a year segment (`W44 2026`, in every locale), and the
|
|
454
|
+
calendar picks the whole week of any day you click, with a week-number column
|
|
455
|
+
and Monday-first rows. The year segment is the **ISO week-year**: the week of
|
|
456
|
+
29 December 2025 is `W01 2026`. A typed `W53` in a year with 52 weeks snaps
|
|
457
|
+
to `W52` when the field is read, as 31 February snaps to the 28th.
|
|
458
|
+
|
|
459
|
+
`min` / `max` take a week (`max="2026-W52"`) or a date, and a week counts only
|
|
460
|
+
when all seven days are inside: `min="2026-10-28"` (a Wednesday) leaves that
|
|
461
|
+
week out, and a typed week below it moves to the first whole week inside, with
|
|
462
|
+
the usual `error` event. The trigger's accessible name reads the week and its
|
|
463
|
+
dates ("week 44, October 26 – November 1, 2026"); the dates are never shown.
|
|
464
|
+
The calendar side — the week rows, the hover outline, ranges of weeks — is
|
|
465
|
+
[BbCalendar § Weeks](./BbCalendar.md#weeks), and `pt:week` /
|
|
466
|
+
`pt:week-number` restyle its rows from this field.
|
|
467
|
+
|
|
468
|
+
**A delivery week and a sprint of weeks**
|
|
469
|
+
|
|
470
|
+
```vue
|
|
471
|
+
<template>
|
|
472
|
+
<div class="grid max-w-xs gap-4">
|
|
473
|
+
<BbDatePickerInput
|
|
474
|
+
v-model="delivery"
|
|
475
|
+
description="Orders ship on the Monday of the week you pick."
|
|
476
|
+
label="Delivery week"
|
|
477
|
+
min="2026-10-28"
|
|
478
|
+
type="week"
|
|
479
|
+
/>
|
|
480
|
+
<BbDatePickerInput
|
|
481
|
+
v-model="sprint"
|
|
482
|
+
label="Sprint"
|
|
483
|
+
max="2026-W52"
|
|
484
|
+
range
|
|
485
|
+
type="week"
|
|
486
|
+
/>
|
|
487
|
+
</div>
|
|
488
|
+
</template>
|
|
489
|
+
|
|
490
|
+
<script setup lang="ts">
|
|
491
|
+
import { ref } from 'vue';
|
|
492
|
+
import { BbDatePickerInput } from 'bitboss-ui';
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* `type="week"`: the value is the ISO week, `YYYY-Www`. Any day of a calendar
|
|
496
|
+
* row picks its week; the field types it as `W44 2026`. `min` on a Wednesday
|
|
497
|
+
* leaves that week out, because a week counts only when all seven days fit.
|
|
498
|
+
*/
|
|
499
|
+
const delivery = ref<string | null>('2026-W45');
|
|
500
|
+
const sprint = ref<string[]>(['2026-W45', '2026-W46']);
|
|
501
|
+
</script>
|
|
502
|
+
```
|
|
503
|
+
|
|
449
504
|
### Time selection
|
|
450
505
|
|
|
451
506
|
Set `type="datetime"` and the field grows 24-hour `HH:mm` segments after the date
|
|
@@ -584,7 +639,7 @@ const onError = (error: DatePickerInputError) => {
|
|
|
584
639
|
|
|
585
640
|
The picker adapts to touch vs pointer, and you can steer that explicitly:
|
|
586
641
|
|
|
587
|
-
- **`adaptive`** (defaults to the project's `
|
|
642
|
+
- **`adaptive`** (defaults to the project's `all.adaptive`): on mobile the
|
|
588
643
|
calendar opens in a bottom `BbOffCanvas` sheet instead of a floating popover.
|
|
589
644
|
The surface is **latched** when the panel opens, so a mid-session resize never
|
|
590
645
|
swaps a live popover into a sheet. The sheet drags down to dismiss and shows
|
|
@@ -725,7 +780,7 @@ sheet), its events differ from a plain input:
|
|
|
725
780
|
beside the field, and a per-breakpoint map
|
|
726
781
|
(`{ default: 'vertical', md: 'horizontal' }`) stacks it on narrow screens
|
|
727
782
|
([`BbTextInput` § Density & layout](./BbTextInput.md#density--layout)). With `labelMode="floating"` or `"inside"` (prop or
|
|
728
|
-
`
|
|
783
|
+
`all.labelMode`) the label is embedded in the field, so the
|
|
729
784
|
layout is forced vertical and `layout` is ignored — same rule as
|
|
730
785
|
`BbTextInput`/`BbSelect`/`BbNumberInput`.
|
|
731
786
|
- **`config.locale`** drives both the segment order and separator (from the
|
|
@@ -761,15 +816,20 @@ affordance, the focus ring still shows, and errors or warnings surface through
|
|
|
761
816
|
the icon and the message rather than a tinted edge. `ghost` is the inline-edit
|
|
762
817
|
table cell (`<BbDatePickerInput compact hide-label variant="ghost" />`) — no
|
|
763
818
|
`:deep()` needed. The names and tokens are the `BbButton` ones; extra names
|
|
764
|
-
register through the plugin's `
|
|
819
|
+
register through the plugin's each field's `components.<C>.variants` option. The full ladder is in
|
|
765
820
|
the `BbTextInput` guide.
|
|
766
821
|
|
|
822
|
+
The calendar panel renders inside the field, so it reads the field's
|
|
823
|
+
`--bb-radius`, capped at half a control height: a pill field
|
|
824
|
+
(`style="--bb-radius: 999px"`) gets a rounded panel, never a clipped one, and a
|
|
825
|
+
`0px` app stays square.
|
|
826
|
+
|
|
767
827
|
### Restyling with passthrough
|
|
768
828
|
|
|
769
829
|
`pt` reaches a named part of the control with a class list — or, in the
|
|
770
830
|
object form, a style and attributes — optionally only while a state is on.
|
|
771
|
-
Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `input` (the native control), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `panel` (the calendar surface you see — the popover's painted bubble on desktop, the sheet itself on a phone; it carries the sizing tokens, so `pt:panel="[--px:2px]"` tightens it), `sheet` (the bottom sheet on a phone only) and the calendar's own parts, forwarded to it: `header`, `arrow`, `month`, `year`, `cellColumnHeader`, `day` (the whole cell), `dayButton` (the mark inside it), `monthItem` and `yearItem` — the `BbDatePicker` guide describes each node. `input` is every segment field; the calendar trigger is `activator`.
|
|
772
|
-
States: `errors`, `warnings` (never beside errors), `loading`, `disabled`, `readonly`, `hasValue` (written `pt:box:has-value`). Plus `open` (the calendar is showing), and the calendar's per-node states: `selected`, `disabled`, `today`, `outside`, `rangeStart` / `rangeEnd` / `inRange` and `highlighted` on the cells, `active` on `month` / `year`. A name outside that list is a type error and an
|
|
831
|
+
Parts: `root` (the container), `label`, `description`, `message` (the errors / warnings region — one node each, only one ever shows), `hint` (the helper line — shown on focus, or always with `persistent-hint`), `box` (the bordered field box), `input` (the native control), `icon` (`prepend:icon` + `append:icon` — a broadcast; the state glyphs are chrome), `spinner` (the spinner shown while `loading`), `prefix`, `suffix`, `clear` (the ✕ that empties the field). Plus `panel` (the calendar surface you see — the popover's painted bubble on desktop, the sheet itself on a phone; it carries the sizing tokens, so `pt:panel="[--px:2px]"` tightens it), `sheet` (the bottom sheet on a phone only) and the calendar's own parts, forwarded to it: `header`, `arrow`, `month`, `year`, `cellColumnHeader`, `day` (the whole cell), `dayButton` (the mark inside it), `week` (one row with `type="week"`), `weekNumber` (its ISO week number), `monthItem` and `yearItem` — the `BbDatePicker` guide describes each node. `input` is every segment field; the calendar trigger is `activator`.
|
|
832
|
+
States: `errors`, `warnings` (never beside errors), `loading`, `disabled`, `readonly`, `hasValue` (written `pt:box:has-value`). Plus `open` (the calendar is showing), and the calendar's per-node states: `selected`, `disabled`, `today`, `outside`, `rangeStart` / `rangeEnd` / `inRange` and `highlighted` on the cells, `selected` / `rangeStart` / `rangeEnd` / `inRange` on the week rows (`pt:week:selected`, `pt:week-number`), `active` on `month` / `year`. A name outside that list is a type error and an
|
|
773
833
|
ESLint error.
|
|
774
834
|
|
|
775
835
|
The invoice due-date field above, restyled through those parts: a muted
|
|
@@ -909,21 +969,21 @@ label>')` matches nothing; query each segment by its own label instead. See
|
|
|
909
969
|
|
|
910
970
|
| Prop | Type | Default | Required | Description |
|
|
911
971
|
| --- | --- | --- | --- | --- |
|
|
912
|
-
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `activator`, `arrow`, `box`, `cellColumnHeader`, `clear`, `day`, `dayButton`, `description`, `header`, `hint`, `icon`, `input`, `item`, `label`, `message`, `month`, `monthItem`, `panel`, `prefix`, `root`, `sheet`, `spinner`, `suffix`, `year`, `yearItem`. States: `
|
|
913
|
-
| `adaptive` | `boolean \| undefined` | ``
|
|
972
|
+
| `pt:<part>`, `pt:<part>:<state>`, `pt` | `PtValue` | | | Passthrough — a class list, or `{ class, style, attrs }`, bound to one named part of the component; the state form applies only while that state is on. Parts: `activator`, `arrow`, `box`, `cellColumnHeader`, `clear`, `day`, `dayButton`, `description`, `header`, `hint`, `icon`, `input`, `item`, `label`, `message`, `month`, `monthItem`, `panel`, `prefix`, `root`, `sheet`, `spinner`, `suffix`, `week`, `weekNumber`, `year`, `yearItem`. States: `disabled`, `errors`, `ghost`, `hasValue`, `loading`, `open`, `outline`, `readonly`, `secondary`, `warnings`, `highlighted`, `inRange`, `outside`, `rangeEnd`, `rangeStart`, `selected`, `today`, `active`. What each one is: _Passthrough parts and states_ below. `pt` is the object form with the same keys minus the prefix (`{ icon: '…', 'icon:loading': '…' }`). See `guides/passthrough.md`. In `<script>` a `pt` value is typed `BbDatePickerInputProps['pt']` (`PtValue` is not exported): § Typing `pt` in `<script>`. |
|
|
973
|
+
| `adaptive` | `boolean \| undefined` | ``all.adaptive` (`true`)` | | On mobile the calendar opens inside a bottom off-canvas sheet instead of a floating popover, mirroring the adaptive behaviour of `BbPopover`/`BbSelect`. When unset, falls back to the global `all.adaptive`. |
|
|
914
974
|
| `ampm` | `boolean \| undefined` | `false` | | 12-hour display with an AM/PM segment (requires `type="datetime"`). Purely a field-composition concern: `modelValue` and the `time` model stay 24-hour regardless. Type `A`/`P` (or ArrowUp/Down) to set the meridiem. |
|
|
915
975
|
| `append:icon` | `string \| undefined` | | | Name of the icon to be added at the end of the input. |
|
|
916
|
-
| `autocomplete` | `string \| undefined` | `
|
|
976
|
+
| `autocomplete` | `string \| undefined` | `'off'` | | Guides the browser as to the type of information expected in the field. |
|
|
917
977
|
| `autofocus` | `Booleanish \| undefined` | | | Focuses the field when it mounts (a dialog already open included), unless the user is typing in another field. |
|
|
918
978
|
| `clearable` | `boolean \| undefined` | `false` | | Displays a clear button when the input has a value and is being interacted with. |
|
|
919
|
-
| `compact` | `boolean \| undefined` | `
|
|
979
|
+
| `compact` | `boolean \| undefined` | `undefined` | | Compact density: the field uses the `-compact` twins of `--bb-input-h`, `--bb-input-py` and `--bb-label-spacing-y`, so a `--bb-input-h` set on the component is ignored while it is on. Size a compact field with `--bb-input-h-compact` (and `--bb-input-py-compact`). |
|
|
920
980
|
| `description` | `string \| undefined` | | | Text between the label and the input. Unlike the hint it is always visible; it joins the input's `aria-describedby` after any `errors` / `warnings`, before the `hint`. |
|
|
921
981
|
| `disableCalendar` | `boolean \| "mobile" \| "desktop" \| undefined` | `false` | | Disables the calendar: hides the trigger button and prevents the popover from opening. Use `'desktop'` to disable it on desktop only (keeping the calendar for mobile, complementing `disableWriting: 'mobile'`) or `'mobile'` to disable it on mobile only. |
|
|
922
982
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
923
983
|
| `disableWriting` | `boolean \| "mobile" \| "desktop" \| undefined` | `false` | | Disables typing into the input. Use `'mobile'` to disable typing only on mobile, `'desktop'` to disable typing only on desktop. |
|
|
924
984
|
| `errors` | `string \| string[] \| undefined` | | | Error messages under the field, a string or array, in an `aria-live="polite"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus. |
|
|
925
|
-
| `firstDayOfWeek` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| undefined` | `the locale's week start` | | First day of the week (0 = Sunday … 6 = Saturday). Omitted, the active locale's week start: Monday for `it`, `de`, `fr`, `en-gb`…, Sunday for bare `en` (US) and `pt` (Brazil). |
|
|
926
|
-
| `floating` | `boolean \| undefined` | `
|
|
985
|
+
| `firstDayOfWeek` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| undefined` | `the locale's week start` | | First day of the week (0 = Sunday … 6 = Saturday). Omitted, the active locale's week start: Monday for `it`, `de`, `fr`, `en-gb`…, Sunday for bare `en` (US) and `pt` (Brazil). Ignored under `type="week"`: ISO weeks run Monday to Sunday, so a week grid always starts on Monday. |
|
|
986
|
+
| `floating` | `boolean \| undefined` | `undefined` | | If true the date will have a format YYYY-MM-DD instead of the default ISO string. |
|
|
927
987
|
| `formless` | `boolean \| undefined` | `false` | | Keep this control out of the enclosing `BbForm` entirely: not submitted, not dirty, not reset, not validated. For a control that is not form data (a filter, a "show advanced" switch). |
|
|
928
988
|
| `hasErrors` | `boolean \| undefined` | `false` | | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
|
|
929
989
|
| `hasWarnings` | `boolean \| undefined` | `false` | | Define if the component should be in a warning state. Same chrome as errors with `--bb-warn`; errors take priority. |
|
|
@@ -934,11 +994,11 @@ label>')` matches nothing; query each segment by its own label instead. See
|
|
|
934
994
|
| `label` | `string` | | yes | Text content of the label of the element. |
|
|
935
995
|
| `labelAlign` | `'top'` \| `'center'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, the label's first line meets the control's. |
|
|
936
996
|
| `labelMode` | `"outside" \| "floating" \| "inside" \| undefined` | | | Label rendering mode. |
|
|
937
|
-
| `labelPosition` | `"
|
|
997
|
+
| `labelPosition` | `"center" \| "left" \| "right" \| undefined` | | | Sets the text alignment of the label. |
|
|
938
998
|
| `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
|
|
939
999
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
940
|
-
| `max` | `string \| undefined` | | | Maximum selectable date in `YYYY-MM-DD` format — or, with `type="datetime"`, `YYYY-MM-DDTHH:mm` to tighten the boundary day to a minute. Values outside both patterns throw during setup to surface configuration mistakes. |
|
|
941
|
-
| `min` | `string \| undefined` | | | Minimum selectable date in `YYYY-MM-DD` format — or, with `type="datetime"`, `YYYY-MM-DDTHH:mm` to tighten the boundary day to a minute. Values outside both patterns throw during setup to surface configuration mistakes. |
|
|
1000
|
+
| `max` | `string \| undefined` | | | Maximum selectable date in `YYYY-MM-DD` format — or, with `type="datetime"`, `YYYY-MM-DDTHH:mm` to tighten the boundary day to a minute. Values outside both patterns throw during setup to surface configuration mistakes. `type="week"`: a week (`YYYY-Www`) or a date, whole weeks only. |
|
|
1001
|
+
| `min` | `string \| undefined` | | | Minimum selectable date in `YYYY-MM-DD` format — or, with `type="datetime"`, `YYYY-MM-DDTHH:mm` to tighten the boundary day to a minute. Values outside both patterns throw during setup to surface configuration mistakes. `type="week"`: a week (`YYYY-Www`) or a date, whole weeks only. |
|
|
942
1002
|
| `modelValue` | `string \| string[] \| null \| undefined` | | | Used by v-model. Can be null, a single string, or an array of strings based on whether a range or single date is needed. |
|
|
943
1003
|
| `name` | `string \| undefined` | | | Defines the name of the input. |
|
|
944
1004
|
| `numberOfMonths` | `number \| undefined` | `1` | | How many months the calendar popover shows side by side (day grids only); the phone sheet always shows one. Too narrow for them all, the months wrap. |
|
|
@@ -949,18 +1009,18 @@ label>')` matches nothing; query each segment by its own label instead. See
|
|
|
949
1009
|
| `range` | `boolean` | `false` | | Selects a range of dates between two dates. It selects all of the days between start and end. |
|
|
950
1010
|
| `readonly` | `boolean \| undefined` | `false` | | Sets the input in a readonly state. |
|
|
951
1011
|
| `required` | `boolean \| undefined` | `false` | | Sets the input as required. |
|
|
952
|
-
| `reverse` | `boolean \| undefined` | `
|
|
1012
|
+
| `reverse` | `boolean \| undefined` | `undefined` | | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
|
|
953
1013
|
| `rules` | `RuleExpression<string \| string[] \| null>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
954
1014
|
| `seconds` | `boolean \| undefined` | `false` | | Adds the seconds segment (requires `type="datetime"`). Without it, an incoming value carrying seconds displays truncated and is left untouched until the user commits an edit, at which point seconds zero out. |
|
|
955
|
-
| `selectable` | `((date: string) => boolean) \| undefined` | | | Function that accepts a `string` object and returns a boolean. `false` meaning the date cannot be selected. |
|
|
1015
|
+
| `selectable` | `((date: string) => boolean) \| undefined` | | | Function that accepts a `string` object and returns a boolean. `false` meaning the date cannot be selected. Under `type="week"` it receives the week value (`2026-W44`). |
|
|
956
1016
|
| `step` | `number \| undefined` | `1` | | Minute granularity for the calendar's minute column and arrow stepping (requires `type="datetime"`). Constrains what the component produces, never what it accepts: a typed off-grid value (e.g. `10:07` with `step: 15`) is emitted verbatim, and no column row highlights for it. |
|
|
957
1017
|
| `time` | `string \| string[] \| null \| undefined` | | | `v-model:time`: the time part, always 24-hour `HH:mm` / `HH:mm:ss`. With `floating` it is the only carrier of the time; otherwise it mirrors `modelValue`'s, and writing it rewrites that. Requires `type="datetime"`. |
|
|
958
1018
|
| `transitionDuration` | `number \| undefined` | | | Transition duration, in milliseconds, for the popover appearance. |
|
|
959
|
-
| `type` | `'date'` \| `'month'` \| `'year'` \| `'datetime'` | `"date"` | | What the field edits,
|
|
1019
|
+
| `type` | `'date'` \| `'month'` \| `'year'` \| `'week'` \| `'datetime'` | `"date"` | | What the field edits, so its segments and emitted shape: `date` (`DD/MM/YYYY`), `datetime` (adds the time segments and rail), `week` (`W44 2026`, emits `2026-W44`), `month` (`MM/YYYY`, emits `YYYY-MM`) or `year` (`YYYY`). The last three force `floating` and ignore `utc` and the time props. |
|
|
960
1020
|
| `utc` | `boolean \| undefined` | `false` | | Emits UTC ISO strings (`…Z`) instead of the local offset (`…+01:00`). Emission only: incoming values parse the same either way, and the field always displays local time. Ignored with `floating`. |
|
|
961
1021
|
| `validationLabel` | `string \| undefined` | | | The field's name in validation messages (`{field}`): "Email is not valid". Defaults to the `label` (or `legend`), then "This field"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only. |
|
|
962
|
-
| `validationMode` | `'aggressive'` \| `'balanced'` \| `'lazy'` \| `'submit-only'` \| `'submit-live'` | | | When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `
|
|
963
|
-
| `variant` | `'outline'` \| `'secondary'` \| `'none'` \| `'ghost'` | `'outline'` | | The field box's look, with `BbButton`'s names and tokens. Colours only, so a form never reflows; `'ghost'` has no border in any state, `'none'` no look at all (you own hover, focus and the states). Register more with the plugin's `
|
|
1022
|
+
| `validationMode` | `'aggressive'` \| `'balanced'` \| `'lazy'` \| `'submit-only'` \| `'submit-live'` | | | When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only. |
|
|
1023
|
+
| `variant` | `'outline'` \| `'secondary'` \| `'none'` \| `'ghost'` | `'outline'` | | The field box's look, with `BbButton`'s names and tokens. Colours only, so a form never reflows; `'ghost'` has no border in any state, `'none'` no look at all (you own hover, focus and the states). Register more with the plugin's `components.BbDatePickerInput.variants`. |
|
|
964
1024
|
| `warnings` | `string \| string[] \| undefined` | | | Warning messages under the field, a string or array: amber, in their own `aria-live` region and in the control's `aria-describedby` after the errors. Non-empty turns on the warning state; errors win when both are set. |
|
|
965
1025
|
|
|
966
1026
|
## Passthrough parts and states
|
|
@@ -989,6 +1049,8 @@ label>')` matches nothing; query each segment by its own label instead. See
|
|
|
989
1049
|
| `month` | The month heading button; it opens the month panel. |
|
|
990
1050
|
| `year` | The year heading button; it opens the year panel. |
|
|
991
1051
|
| `cellColumnHeader` | Each weekday letter above the grid — a broadcast. |
|
|
1052
|
+
| `week` | One row of seven days with `type="week"` — the band a picked week paints and the hover outline. A broadcast resolved per row. |
|
|
1053
|
+
| `weekNumber` | The ISO week number heading each row with `type="week"` — a broadcast resolved per row. |
|
|
992
1054
|
| `day` | One whole day cell — a broadcast resolved per day. A background here paints the full cell square; restyle the round mark on `dayButton`. |
|
|
993
1055
|
| `dayButton` | The button inside a day cell — the mark that shows selection. A broadcast resolved per day. |
|
|
994
1056
|
| `monthItem` | One month button of the month panel (the home grid of `type="month"`) — a broadcast resolved per month. |
|
|
@@ -1002,10 +1064,10 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
1002
1064
|
| `hasValue` | Component-wide: the control holds a value, by its own rule (`0` counts on `BbNumberInput`, `''` on `BbColorInput`). |
|
|
1003
1065
|
| `outside` | Per node, on `day` / `dayButton`: a day of the previous or next month, shown to fill the grid. |
|
|
1004
1066
|
| `today` | Per node, on `day` / `dayButton`: today. |
|
|
1005
|
-
| `inRange` | Per node, on the cells (`day`, `dayButton`, `monthItem`, `yearItem`): inside a committed range, between its ends. |
|
|
1006
|
-
| `selected` | Per node, on the cells: a chosen day, month or year; on `item`, the picked time's entry in each column. |
|
|
1007
|
-
| `rangeStart` | Per node, on the cells: a committed range's first day, month or year. |
|
|
1008
|
-
| `rangeEnd` | Per node, on the cells: a committed range's last day, month or year. |
|
|
1067
|
+
| `inRange` | Per node, on the cells (`day`, `dayButton`, `monthItem`, `yearItem`) and the week rows (`week`, `weekNumber`): inside a committed range, between its ends. |
|
|
1068
|
+
| `selected` | Per node, on the cells: a chosen day, month or year; on `week` / `weekNumber`, a chosen week (a range's ends too, as on its days); on `item`, the picked time's entry in each column. |
|
|
1069
|
+
| `rangeStart` | Per node, on the cells and the week rows: a committed range's first day, week, month or year. |
|
|
1070
|
+
| `rangeEnd` | Per node, on the cells and the week rows: a committed range's last day, week, month or year. |
|
|
1009
1071
|
| `readonly` | Component-wide: the control is `readonly` — shown, focusable, not editable. |
|
|
1010
1072
|
| `disabled` | Component-wide while the input is `disabled`. Also per node, on the calendar's cells: one outside `min` / `max` or refused by `selectable`; on `arrow`, at a bound or while the month / year panel is open. |
|
|
1011
1073
|
| `warnings` | Component-wide: the control is in its warning state (`warnings` / `has-warnings`) and not in an error state — errors win, so the two are never on together. |
|
|
@@ -1053,6 +1115,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1053
1115
|
| Property | Set on | Default | What it is |
|
|
1054
1116
|
| --- | --- | --- | --- |
|
|
1055
1117
|
| `--border-color` | `pt:box` | `per variant` | The resting border, at the fixed --bb-border-w. Errors and warnings paint their frame over it, so `pt:box="[--border-color:…]"` recolours the rest without hiding the state; a plain `border-*` utility on the base pt:box would hide it (ESLint `no-box-border-color`). |
|
|
1118
|
+
| `--ph` | `pt:box` | `var(--bb-text-muted)` | Placeholder colour, one local for every field: the native `::placeholder`, BbSelect's activator text and the picker inputs' empty segments. Set it through `pt:box="[--ph:…]"`; app-wide, the same entry in the global pt map. |
|
|
1056
1119
|
|
|
1057
1120
|
## Component tree
|
|
1058
1121
|
|
|
@@ -1065,13 +1128,13 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
1065
1128
|
|
|
1066
1129
|
- `BbDatePickerInput` _(this component)_ — its own template binds: `controlAttrs` → `input.bb-segmented-field__input`, `input` → `input.bb-segmented-field__input`, `activator` → `button.bb-segmented-field__activator`, `suffix` → `span.bb-field-input__suffix`; hands `BbDatePicker` the pt map `passthrough.forward(PICKER_PARTS, BB_DATE_PICKER_PT.states)` (ours → theirs)
|
|
1067
1130
|
- `BbDatePicker` _(public — [contract](./BbDatePicker.md))_ — its own pt parts (`BbDatePicker`): `panel` → `div`; hands `BbCalendar` the pt map ` passthrough.forward(DATE_PICKER_CALENDAR_PARTS, BB_CALENDAR_PT.states) ` (ours → theirs); hands `BbOffCanvas` the pt map `{ panel: 'root', sheet: 'root' }` (ours → theirs); documented CSS variables: `--cell`, `--unit-row`; also mounts `CommonPopover`
|
|
1068
|
-
- `BbCalendar` _(public — [contract](./BbCalendar.md))_ — its own pt parts (`BbCalendar`): `header` → `div.bb-calendar__header`, `arrow` → `BbBaseButton`, `month` → `BbBaseButton`, `year` → `BbBaseButton`, `day` → `div.bb-calendar__day`, `dayButton` → `button.bb-calendar__day-button`; documented CSS variables: `--cell`, `--unit-row`; also mounts `ScaleFade`, `Slide`, `CalendarMonthPanel`, `CalendarYearPanel`
|
|
1131
|
+
- `BbCalendar` _(public — [contract](./BbCalendar.md))_ — its own pt parts (`BbCalendar`): `header` → `div.bb-calendar__header`, `arrow` → `BbBaseButton`, `month` → `BbBaseButton`, `year` → `BbBaseButton`, `week` → `div.bb-calendar__week`, `weekNumber` → `div.bb-calendar__week-number`, `day` → `div.bb-calendar__day`, `dayButton` → `button.bb-calendar__day-button`; documented CSS variables: `--cell`, `--unit-row`, `--wk`; also mounts `BbIcon`, `ScaleFade`, `Slide`, `CalendarMonthPanel`, `CalendarYearPanel`
|
|
1069
1132
|
- `BbBaseButton` _(public — [contract](./BbBaseButton.md))_ — its own pt parts (`BbBaseButton`): `root` → `RouterComponent`, `root` → `a`, `root` → `component`; also mounts `RouterComponent`
|
|
1070
1133
|
- `CommonTimeSelector` _(internal — not importable, reach it through `BbCalendar`)_ — its own pt parts (`BbCalendar`): `header` → `div.bb-time-selector__header`, `cellColumnHeader` → `div.bb-time-selector__cell-column-header`, `item` → `BbBaseButton`; documented CSS variables: `--time-mark`; also mounts `BbBaseButton`
|
|
1071
1134
|
- `BbOffCanvas` _(public — [contract](./BbOffCanvas.md))_ — its own pt parts (`BbOffCanvas`): `header` → `div.bb-offcanvas__header`, `title` → `span.bb-offcanvas__title`, `description` → `p.bb-offcanvas__description`, `close` → `CloseButton`, `content` → `div.bb-offcanvas__content`, `footer` → `div.bb-offcanvas__footer`; documented CSS variables: `--stack-x`, `--snap-y`, `--stack-fill`, `--stack-transition-duration`, `--px`, `--handle-w`, `--handle-h`, `--handle-bg`, `--safe-top`, `--close-size`
|
|
1072
|
-
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`
|
|
1135
|
+
- `CloseButton` _(internal — not importable, reach it through `BbOffCanvas`)_ — documented CSS variables: `--size`, `--p`, `--icon-size`; also mounts `BbIcon`
|
|
1073
1136
|
- `CommonField` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `root` → `div.bb-field`, `label` → `component`, `description` → `span.bb-field__description`, `hint` → `span.bb-field__hint`, `counter` → `span.bb-field__counter`, `message` → `div.bb-field__message`; documented CSS variables: `--ctrl-line`; also mounts `BbAsterisk`
|
|
1074
|
-
- `CommonFieldInput` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
|
|
1137
|
+
- `CommonFieldInput` _(internal — not importable, reach it through `BbDatePickerInput`)_ — `BbDatePickerInput`'s pt parts land here: `box` → `span.bb-field-input__box`, `prefix` → `span.bb-field-input__prefix`, `icon` → `BbIcon`, `clear` → `ClearableButton`, `spinner` → `BbSpinner`, `suffix` → `span.bb-field-input__suffix`; documented CSS variables: `--bg`, `--bg-hover`, `--bg-focus`, `--bg-disabled`, `--fg-disabled`, `--border-color`, `--border-focus`, `--ring-size`, `--ring-color`, `--elev`, `--frost`, `--ph`, `--inside-label-clearance`; also mounts `ErrorIcon`, `WarningIcon`, `ClearableButton`, `BbIcon`, `BbSpinner`
|
|
1075
1138
|
- Also mounts `BbIcon`
|
|
1076
1139
|
|
|
1077
1140
|
## See Also
|