bitboss-ui 3.0.0-beta.3 → 3.0.0-beta.31
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 +220 -65
- package/bin/bitboss-ui-mcp.mjs +474 -17
- package/bin/bitboss-ui.mjs +348 -50
- package/dist/ai/BbAccordion.md +150 -32
- package/dist/ai/BbAlert.md +124 -21
- package/dist/ai/BbAsterisk.md +53 -1
- package/dist/ai/BbAvatar.md +179 -27
- package/dist/ai/BbBadge.md +228 -37
- package/dist/ai/BbBadgeButton.md +68 -16
- package/dist/ai/BbBaseButton.md +123 -46
- package/dist/ai/BbBaseCheckboxIcon.md +114 -26
- package/dist/ai/BbBaseRadioIcon.md +111 -26
- package/dist/ai/BbBaseSwitchIcon.md +119 -28
- package/dist/ai/BbBreadcrumbs.md +195 -43
- package/dist/ai/BbButton.md +323 -76
- package/dist/ai/BbCalendar.md +621 -0
- package/dist/ai/BbCheckbox.md +216 -56
- package/dist/ai/BbCheckboxGroup.md +267 -30
- package/dist/ai/BbCollapsible.md +154 -39
- package/dist/ai/BbColorInput.md +280 -44
- package/dist/ai/BbColorPalette.md +228 -45
- package/dist/ai/BbConfirm.md +201 -41
- package/dist/ai/BbDatePicker.md +253 -25
- package/dist/ai/BbDatePickerInput.md +297 -54
- package/dist/ai/BbDialog.md +464 -73
- package/dist/ai/BbDropdown.md +938 -77
- package/dist/ai/BbDropdownButton.md +188 -48
- package/dist/ai/BbDropdownGroup.md +9 -1
- package/dist/ai/BbDropzone.md +122 -16
- package/dist/ai/BbForm.md +49 -14
- package/dist/ai/BbIcon.md +93 -32
- package/dist/ai/BbIndicator.md +73 -10
- package/dist/ai/BbNumberInput.md +211 -45
- package/dist/ai/BbOffCanvas.md +357 -66
- package/dist/ai/BbPagination.md +165 -26
- package/dist/ai/BbPopover.md +189 -34
- package/dist/ai/BbProgress.md +96 -55
- package/dist/ai/BbPtScope.md +136 -0
- package/dist/ai/BbRadio.md +205 -26
- package/dist/ai/BbRadioGroup.md +346 -39
- package/dist/ai/BbRating.md +130 -25
- package/dist/ai/BbSelect.md +583 -77
- package/dist/ai/BbSelectPopover.md +351 -82
- package/dist/ai/BbSlider.md +226 -51
- package/dist/ai/BbSmoothHeight.md +136 -32
- package/dist/ai/BbSpinner.md +166 -74
- package/dist/ai/BbSwitch.md +219 -31
- package/dist/ai/BbSwitchGroup.md +267 -29
- package/dist/ai/BbTable.md +1314 -162
- package/dist/ai/BbTabs.md +586 -114
- package/dist/ai/BbTabsList.md +58 -3
- package/dist/ai/BbTabsPanes.md +34 -2
- package/dist/ai/BbTabsRoot.md +61 -10
- package/dist/ai/BbTag.md +220 -42
- package/dist/ai/BbTextInput.md +429 -55
- package/dist/ai/BbTextarea.md +263 -51
- package/dist/ai/BbTimePicker.md +126 -11
- package/dist/ai/BbTimePickerInput.md +237 -22
- package/dist/ai/BbToast.md +183 -38
- package/dist/ai/BbToastPortal.md +28 -1
- package/dist/ai/BbTooltip.md +170 -30
- package/dist/ai/BbTree.md +236 -74
- package/dist/ai/ChipsBox.md +41 -1
- package/dist/ai/ClearableButton.md +12 -0
- package/dist/ai/CommaBox.md +1 -0
- package/dist/ai/{BbBaseInputContainer.md → CommonField.md} +19 -17
- package/dist/ai/CommonFieldInput.md +90 -0
- package/dist/ai/CommonPopover.md +12 -7
- package/dist/ai/CommonTimeSelector.md +61 -0
- package/dist/ai/ErrorIcon.md +20 -0
- package/dist/ai/FlatListBox.md +33 -5
- package/dist/ai/GroupedListBox.md +33 -5
- package/dist/ai/ListBox.md +37 -4
- package/dist/ai/OptionsContainer.md +6 -5
- package/dist/ai/WarningIcon.md +20 -0
- package/dist/ai/changelog.json +1212 -44
- package/dist/ai/components.json +41488 -9859
- package/dist/ai/composables/useBbConfig.md +72 -11
- package/dist/ai/composables/useConfirm.md +10 -5
- package/dist/ai/composables/useToast.md +4 -2
- package/dist/ai/guides/agent-contract.md +95 -10
- package/dist/ai/guides/ai-router.md +57 -31
- package/dist/ai/guides/app-layout.md +3 -1
- package/dist/ai/guides/component-picker.md +27 -20
- package/dist/ai/guides/design-language.md +217 -61
- package/dist/ai/guides/design-tokens.md +448 -105
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +55 -23
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +621 -45
- package/dist/ai/guides/migration/components/bb-accordion.md +29 -0
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-avatar.md +13 -14
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +8 -7
- package/dist/ai/guides/migration/components/bb-button.md +80 -20
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +61 -28
- package/dist/ai/guides/migration/components/bb-checkbox.md +45 -10
- package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
- package/dist/ai/guides/migration/components/bb-color-palette.md +9 -9
- package/dist/ai/guides/migration/components/bb-date-picker-input.md +39 -29
- package/dist/ai/guides/migration/components/bb-dialog.md +68 -35
- package/dist/ai/guides/migration/components/bb-dropdown.md +30 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -13
- package/dist/ai/guides/migration/components/bb-popover.md +12 -11
- package/dist/ai/guides/migration/components/bb-rating.md +52 -17
- package/dist/ai/guides/migration/components/bb-select-popover.md +8 -0
- package/dist/ai/guides/migration/components/bb-select.md +18 -2
- package/dist/ai/guides/migration/components/bb-table.md +560 -28
- package/dist/ai/guides/migration/components/bb-tabs.md +56 -14
- package/dist/ai/guides/migration/components/bb-text-input.md +12 -12
- package/dist/ai/guides/migration/components/bb-tooltip.md +18 -0
- package/dist/ai/guides/migration/v2-to-v3.md +526 -192
- package/dist/ai/guides/options-items-playbook.md +57 -1
- package/dist/ai/guides/passthrough.md +748 -0
- package/dist/ai/guides/ssr-prefill.md +120 -0
- package/dist/ai/guides/validated-forms.md +5 -0
- package/dist/ai/index.md +24 -36
- package/dist/ai/recipes/inertia/approvals-inbox.md +3 -4
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +10 -11
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -1
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +66 -44
- package/dist/ai/recipes/inertia/record-form.md +5 -6
- package/dist/ai/recipes/inertia/records-workspace.md +133 -12
- package/dist/ai/recipes/inertia/upload-center.md +8 -9
- package/dist/ai/recipes/inertia/wizard-form.md +68 -5
- package/dist/ai/recipes/nuxt/approvals-inbox.md +3 -4
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +10 -11
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -1
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +5 -6
- package/dist/ai/recipes/nuxt/records-workspace.md +135 -12
- package/dist/ai/recipes/nuxt/upload-center.md +8 -9
- package/dist/ai/recipes/nuxt/wizard-form.md +68 -5
- package/dist/ai/recipes/vue/approvals-inbox.md +3 -4
- package/dist/ai/recipes/vue/inline-edit-workspace.md +10 -11
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +10 -10
- package/dist/ai/recipes/vue/records-workspace.md +129 -12
- package/dist/ai/recipes/vue/upload-center.md +8 -9
- package/dist/ai/recipes/vue/wizard-form.md +65 -5
- package/dist/ai/source/BbAccordion.md +83 -21
- package/dist/ai/source/BbAlert.md +188 -60
- package/dist/ai/source/BbAsterisk.md +54 -4
- package/dist/ai/source/BbAvatar.md +63 -16
- package/dist/ai/source/BbBadge.md +196 -60
- package/dist/ai/source/BbBadgeButton.md +150 -43
- package/dist/ai/source/BbBaseButton.md +103 -9
- package/dist/ai/source/BbBaseCheckboxIcon.md +151 -36
- package/dist/ai/source/BbBaseRadioIcon.md +121 -17
- package/dist/ai/source/BbBaseSwitchIcon.md +138 -28
- package/dist/ai/source/BbBreadcrumbs.md +246 -57
- package/dist/ai/source/BbButton.md +457 -165
- package/dist/ai/source/BbCalendar.md +1621 -0
- package/dist/ai/source/BbCheckbox.md +433 -59
- package/dist/ai/source/BbCheckboxGroup.md +722 -77
- package/dist/ai/source/BbCollapsible.md +90 -8
- package/dist/ai/source/BbColorInput.md +505 -58
- package/dist/ai/source/BbColorPalette.md +1169 -51
- package/dist/ai/source/BbConfirm.md +134 -4
- package/dist/ai/source/BbConfirmPortal.md +83 -0
- package/dist/ai/source/BbDatePicker.md +471 -369
- package/dist/ai/source/BbDatePickerInput.md +1973 -106
- package/dist/ai/source/BbDialog.md +435 -45
- package/dist/ai/source/BbDropdown.md +777 -135
- package/dist/ai/source/BbDropdownButton.md +305 -74
- package/dist/ai/source/BbDropdownGroup.md +605 -68
- package/dist/ai/source/BbDropzone.md +93 -14
- package/dist/ai/source/BbForm.md +95 -7
- package/dist/ai/source/BbIcon.md +114 -48
- package/dist/ai/source/BbIndicator.md +85 -42
- package/dist/ai/source/BbNumberInput.md +574 -73
- package/dist/ai/source/BbOffCanvas.md +789 -249
- package/dist/ai/source/BbPagination.md +124 -19
- package/dist/ai/source/BbPopover.md +227 -79
- package/dist/ai/source/BbProgress.md +53 -5
- package/dist/ai/source/BbPtScope.md +54 -0
- package/dist/ai/source/BbRadio.md +369 -52
- package/dist/ai/source/BbRadioGroup.md +707 -91
- package/dist/ai/source/BbRating.md +645 -73
- package/dist/ai/source/BbSelect.md +939 -76
- package/dist/ai/source/BbSelectPopover.md +614 -66
- package/dist/ai/source/BbSlider.md +1205 -81
- package/dist/ai/source/BbSmoothHeight.md +48 -2
- package/dist/ai/source/BbSpinner.md +62 -6
- package/dist/ai/source/BbSwitch.md +277 -55
- package/dist/ai/source/BbSwitchGroup.md +568 -77
- package/dist/ai/source/BbTable.md +5754 -1777
- package/dist/ai/source/BbTabs.md +189 -90
- package/dist/ai/source/BbTabsList.md +219 -90
- package/dist/ai/source/BbTabsPanes.md +191 -85
- package/dist/ai/source/BbTabsRoot.md +183 -84
- package/dist/ai/source/BbTag.md +670 -76
- package/dist/ai/source/BbTextInput.md +439 -59
- package/dist/ai/source/BbTextarea.md +483 -54
- package/dist/ai/source/BbTimePicker.md +305 -56
- package/dist/ai/source/BbTimePickerInput.md +1145 -91
- package/dist/ai/source/BbToast.md +121 -36
- package/dist/ai/source/BbToastPortal.md +77 -27
- package/dist/ai/source/BbTooltip.md +147 -22
- package/dist/ai/source/BbTree.md +61 -3
- package/dist/ai/source/ChipsBox.md +12 -2
- package/dist/ai/source/CommaBox.md +10 -2
- package/dist/ai/source/{BbBaseInputContainer.md → CommonField.md} +318 -210
- package/dist/ai/source/CommonFieldInput.md +799 -0
- package/dist/ai/source/CommonPopover.md +108 -26
- package/dist/ai/source/CommonTimeSelector.md +642 -0
- package/dist/ai/source/ErrorIcon.md +2 -2
- package/dist/ai/source/FlatListBox.md +172 -11
- package/dist/ai/source/GroupedListBox.md +198 -11
- package/dist/ai/source/GuidesComponent.md +14 -7
- package/dist/ai/source/ListBox.md +29 -2
- package/dist/ai/source/OptionsContainer.md +197 -26
- package/dist/ai/source/WarningIcon.md +2 -2
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +49 -32
- package/dist/components/BbAccordion/types.d.ts +32 -1
- package/dist/components/BbAccordion/types.js +11 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +45 -29
- package/dist/components/BbAlert/types.d.ts +35 -1
- package/dist/components/BbAlert/types.js +13 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -1
- package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +23 -8
- package/dist/components/BbAsterisk/types.d.ts +18 -0
- package/dist/components/BbAsterisk/types.js +7 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +57 -44
- package/dist/components/BbAvatar/types.d.ts +23 -0
- package/dist/components/BbAvatar/types.js +7 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +22 -16
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +95 -52
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +27 -8
- package/dist/components/BbBadge/badgeButtonContext.d.ts +25 -8
- package/dist/components/BbBadge/types.d.ts +46 -3
- package/dist/components/BbBadge/types.js +13 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +110 -97
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/components/BbBaseButton/types.d.ts +28 -0
- package/dist/components/BbBaseButton/types.js +9 -2
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +50 -18
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +31 -2
- package/dist/components/BbBaseCheckboxIcon/types.js +8 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +45 -15
- package/dist/components/BbBaseRadioIcon/types.d.ts +31 -2
- package/dist/components/BbBaseRadioIcon/types.js +8 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +48 -16
- package/dist/components/BbBaseSwitchIcon/types.d.ts +31 -2
- package/dist/components/BbBaseSwitchIcon/types.js +8 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +151 -110
- package/dist/components/BbBreadcrumbs/types.d.ts +40 -0
- package/dist/components/BbBreadcrumbs/types.js +12 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +104 -77
- package/dist/components/BbButton/types.d.ts +49 -2
- package/dist/components/BbButton/types.js +12 -0
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +34 -0
- package/dist/components/BbCalendar/BbCalendar.vue.js +6 -0
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +576 -0
- package/dist/components/BbCalendar/CalendarMonthPanel.vue.js +5 -0
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +124 -0
- package/dist/components/BbCalendar/CalendarYearPanel.vue.js +5 -0
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/components/BbCalendar/calendarHost.d.ts +29 -0
- package/dist/components/BbCalendar/calendarHost.js +10 -0
- package/dist/components/BbCalendar/types.d.ts +215 -0
- package/dist/components/BbCalendar/types.js +28 -0
- package/dist/components/{BbBaseDatePicker/useDatePickerContext.d.ts → BbCalendar/useCalendarContext.d.ts} +10 -7
- package/dist/components/BbCalendar/useCalendarContext.js +11 -0
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +208 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +269 -0
- package/dist/components/BbCalendar/useDayGrid.d.ts +79 -0
- package/dist/components/BbCalendar/useDayGrid.js +203 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +1 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +194 -67
- package/dist/components/BbCheckbox/types.d.ts +164 -9
- package/dist/components/BbCheckbox/types.js +8 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +3 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +310 -80
- package/dist/components/BbCheckboxGroup/types.d.ts +152 -8
- package/dist/components/BbCheckboxGroup/types.js +10 -0
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +41 -19
- package/dist/components/BbCollapsible/types.d.ts +44 -1
- package/dist/components/BbCollapsible/types.js +7 -0
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +11 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +306 -81
- package/dist/components/BbColorInput/types.d.ts +204 -6
- package/dist/components/BbColorInput/types.js +24 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +10 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +508 -104
- package/dist/components/BbColorPalette/types.d.ts +72 -3
- package/dist/components/BbColorPalette/types.js +12 -0
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +2 -1
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +116 -76
- package/dist/components/BbConfirm/types.d.ts +49 -0
- package/dist/components/BbConfirm/types.js +17 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -10
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +294 -218
- package/dist/components/BbDatePicker/types.d.ts +98 -15
- package/dist/components/BbDatePicker/types.js +32 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +14 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +1148 -82
- package/dist/components/BbDatePickerInput/types.d.ts +201 -11
- package/dist/components/BbDatePickerInput/types.js +38 -0
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -4
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +218 -136
- package/dist/components/BbDialog/types.d.ts +86 -2
- package/dist/components/BbDialog/types.js +16 -0
- package/dist/components/BbDialog/useDialogStack.d.ts +12 -0
- package/dist/components/BbDialog/useDialogStack.js +9 -2
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +108 -96
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +10 -2
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +354 -290
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +6 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +330 -281
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +100 -89
- package/dist/components/BbDropdown/normalizeGroups.js +35 -31
- package/dist/components/BbDropdown/types.d.ts +230 -12
- package/dist/components/BbDropdown/types.js +20 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +7 -1
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +13 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +123 -37
- package/dist/components/BbDropdownButton/types.d.ts +105 -3
- package/dist/components/BbDropdownButton/types.js +30 -0
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +169 -138
- package/dist/components/BbDropzone/types.d.ts +32 -1
- package/dist/components/BbDropzone/types.js +16 -0
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +58 -48
- package/dist/components/BbIcon/iconCache.d.ts +63 -0
- package/dist/components/BbIcon/iconCache.js +35 -0
- package/dist/components/BbIcon/types.d.ts +22 -2
- package/dist/components/BbIcon/types.js +7 -0
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +33 -20
- package/dist/components/BbIndicator/types.d.ts +24 -0
- package/dist/components/BbIndicator/types.js +7 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +6 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +272 -80
- package/dist/components/BbNumberInput/types.d.ts +178 -11
- package/dist/components/BbNumberInput/types.js +8 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +4 -4
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +294 -207
- package/dist/components/BbOffCanvas/types.d.ts +73 -5
- package/dist/components/BbOffCanvas/types.js +15 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +119 -96
- package/dist/components/BbPagination/types.d.ts +32 -0
- package/dist/components/BbPagination/types.js +11 -0
- package/dist/components/BbPopover/BbPopover.vue.d.ts +5 -5
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +151 -121
- package/dist/components/BbPopover/types.d.ts +47 -2
- package/dist/components/BbPopover/types.js +14 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +27 -15
- package/dist/components/BbProgress/types.d.ts +21 -0
- package/dist/components/BbProgress/types.js +7 -0
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +12 -0
- package/dist/components/BbPtScope/BbPtScope.vue.js +5 -0
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/BbPtScope/types.d.ts +15 -0
- package/dist/components/BbRadio/BbRadio.vue.d.ts +1 -1
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +166 -56
- package/dist/components/BbRadio/types.d.ts +137 -9
- package/dist/components/BbRadio/types.js +8 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +2 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +292 -82
- package/dist/components/BbRadioGroup/types.d.ts +155 -10
- package/dist/components/BbRadioGroup/types.js +10 -0
- package/dist/components/BbRating/BbRating.vue.d.ts +4 -2
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +244 -73
- package/dist/components/BbRating/types.d.ts +152 -6
- package/dist/components/BbRating/types.js +21 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -3
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +474 -75
- package/dist/components/BbSelect/types.d.ts +174 -8
- package/dist/components/BbSelect/types.js +26 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +461 -349
- package/dist/components/BbSelectPopover/types.d.ts +114 -4
- package/dist/components/BbSelectPopover/types.js +24 -0
- package/dist/components/BbSlider/BbSlider.vue.d.ts +10 -4
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +396 -92
- package/dist/components/BbSlider/types.d.ts +175 -6
- package/dist/components/BbSlider/types.js +21 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +60 -48
- package/dist/components/BbSmoothHeight/types.d.ts +19 -0
- package/dist/components/BbSmoothHeight/types.js +7 -0
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +27 -14
- package/dist/components/BbSpinner/types.d.ts +22 -1
- package/dist/components/BbSpinner/types.js +7 -0
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +1 -1
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +202 -75
- package/dist/components/BbSwitch/types.d.ts +25 -10
- package/dist/components/BbSwitch/types.js +5 -0
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +310 -80
- package/dist/components/BbSwitchGroup/types.d.ts +29 -6
- package/dist/components/BbSwitchGroup/types.js +5 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +10 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1583 -655
- package/dist/components/BbTable/BbTableDataRow.d.ts +169 -0
- package/dist/components/BbTable/BbTableDataRow.js +133 -0
- package/dist/components/BbTable/BbTableExpandRow.d.ts +73 -0
- package/dist/components/BbTable/BbTableExpandRow.js +52 -0
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +103 -0
- package/dist/components/BbTable/BbTableSelectToggle.js +114 -0
- package/dist/components/BbTable/types.d.ts +372 -111
- package/dist/components/BbTable/types.js +18 -0
- package/dist/components/BbTable/utils.d.ts +92 -4
- package/dist/components/BbTable/utils.js +72 -37
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +32 -20
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -10
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +39 -33
- package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +14 -13
- package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +12 -1
- package/dist/components/BbTabs/types.d.ts +84 -11
- package/dist/components/BbTabs/types.js +11 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +7 -4
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +350 -88
- package/dist/components/BbTag/types.d.ts +90 -5
- package/dist/components/BbTag/types.js +8 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -2
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +245 -80
- package/dist/components/BbTextInput/types.d.ts +147 -6
- package/dist/components/BbTextInput/types.js +8 -0
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +273 -91
- package/dist/components/BbTextarea/types.d.ts +134 -6
- package/dist/components/BbTextarea/types.js +8 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +10 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +159 -107
- package/dist/components/BbTimePicker/types.d.ts +66 -3
- package/dist/components/BbTimePicker/types.js +12 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +12 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +708 -83
- package/dist/components/BbTimePickerInput/types.d.ts +128 -12
- package/dist/components/BbTimePickerInput/types.js +23 -0
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +51 -25
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +3 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +48 -47
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +3 -0
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +72 -64
- package/dist/components/BbToast/types.d.ts +28 -0
- package/dist/components/BbToast/types.js +13 -0
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +100 -84
- package/dist/components/BbTooltip/types.d.ts +40 -2
- package/dist/components/BbTooltip/types.js +7 -0
- package/dist/components/BbTree/BbTree.vue.d.ts +11 -1
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +44 -28
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +13 -12
- package/dist/components/BbTree/context.d.ts +4 -1
- package/dist/components/BbTree/types.d.ts +36 -1
- package/dist/components/BbTree/types.js +7 -0
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/ChipsBox/types.d.ts +6 -0
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +11 -7
- package/dist/components/CommaBox/types.d.ts +6 -0
- package/dist/components/{BbBaseInputContainer/BbBaseInputContainer.vue.d.ts → CommonField/CommonField.vue.d.ts} +4 -4
- package/dist/components/{BbBaseRadio/BbBaseRadio.vue.js → CommonField/CommonField.vue.js} +2 -2
- package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/components/CommonField/messageHeightMatrix.d.ts +2 -0
- package/dist/components/{BbBaseInputContainer → CommonField}/types.d.ts +33 -10
- package/dist/components/{CommonInputWrapper/CommonInputWrapper.vue.d.ts → CommonFieldInput/CommonFieldInput.vue.d.ts} +5 -4
- package/dist/components/{BbBaseRadioGroup/BbBaseRadioGroup.vue.js → CommonFieldInput/CommonFieldInput.vue.js} +2 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +10 -0
- package/dist/components/{CommonInputWrapper → CommonFieldInput}/types.d.ts +25 -6
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +11 -2
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +76 -63
- package/dist/components/CommonPopover/types.d.ts +27 -8
- package/dist/components/{BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts → CommonTimeSelector/CommonTimeSelector.vue.d.ts} +4 -1
- package/dist/components/{BbBaseColorPalette/BbBaseColorPalette.vue.js → CommonTimeSelector/CommonTimeSelector.vue.js} +2 -2
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +207 -0
- package/dist/components/CommonTimeSelector/types.d.ts +6 -0
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +163 -100
- package/dist/components/FlatListBox/types.d.ts +15 -0
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +190 -127
- package/dist/components/GroupedListBox/types.d.ts +15 -0
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +82 -66
- package/dist/components/ListBox/types.d.ts +15 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +89 -35
- package/dist/components/OptionsContainer/types.d.ts +37 -5
- package/dist/composables/useBaseOptions.d.ts +12 -1
- package/dist/composables/useBaseOptions.js +63 -31
- package/dist/composables/useBbConfig.d.ts +27 -6
- package/dist/composables/useBbConfig.js +8 -2
- package/dist/composables/useBbDropdownContext.d.ts +5 -0
- package/dist/composables/useBbTabsContext.d.ts +16 -2
- package/dist/composables/useBbTabsContext.js +157 -145
- package/dist/composables/useConfig.d.ts +59 -0
- package/dist/composables/useConfig.js +11 -0
- package/dist/composables/useConfirm.d.ts +33 -2
- package/dist/composables/useConfirm.js +43 -40
- package/dist/composables/useItemsGetter.d.ts +11 -0
- package/dist/composables/useItemsGetter.js +44 -18
- package/dist/composables/useLocale.js +10 -7
- package/dist/composables/useMobile.js +5 -5
- package/dist/composables/usePassthrough.d.ts +206 -0
- package/dist/composables/usePassthrough.js +224 -0
- package/dist/composables/usePrefill.d.ts +22 -2
- package/dist/composables/usePrefill.js +35 -19
- package/dist/composables/useSafeAreaInternal.js +1 -1
- package/dist/composables/useSegmentedFields.d.ts +2 -2
- package/dist/composables/useSsrState.d.ts +20 -0
- package/dist/composables/useSsrState.js +13 -0
- package/dist/composables/useTableWidthContext.d.ts +24 -4
- package/dist/composables/useTableWidthContext.js +31 -28
- package/dist/composables/useToast.d.ts +18 -1
- package/dist/composables/useToast.js +22 -18
- package/dist/composables/useToggleInput.d.ts +44 -0
- package/dist/composables/useToggleInput.js +39 -0
- package/dist/composables/useViewportWidth.d.ts +20 -6
- package/dist/composables/useViewportWidth.js +8 -7
- package/dist/deprecation/ai-deprecations.json.d.ts +352 -11
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +15 -4
- package/dist/directives/bbDropdown.js +31 -9
- package/dist/directives/createPopoverDirective.d.ts +62 -0
- package/dist/directives/createPopoverDirective.js +92 -37
- package/dist/i18n/locales/cs.json +6 -3
- package/dist/i18n/locales/da.json +6 -3
- package/dist/i18n/locales/de.json +6 -3
- package/dist/i18n/locales/el.json +6 -3
- package/dist/i18n/locales/en.json +6 -3
- package/dist/i18n/locales/es.json +6 -3
- package/dist/i18n/locales/fi.json +6 -3
- package/dist/i18n/locales/fr.json +6 -3
- package/dist/i18n/locales/hu.json +6 -3
- package/dist/i18n/locales/it.json +6 -3
- package/dist/i18n/locales/ja.json +6 -3
- package/dist/i18n/locales/ko.json +6 -3
- package/dist/i18n/locales/nb.json +6 -3
- package/dist/i18n/locales/nl.json +6 -3
- package/dist/i18n/locales/pl.json +6 -3
- package/dist/i18n/locales/pt.json +6 -3
- package/dist/i18n/locales/ro.json +6 -3
- package/dist/i18n/locales/ru.json +6 -3
- package/dist/i18n/locales/sv.json +6 -3
- package/dist/i18n/locales/tr.json +6 -3
- package/dist/i18n/locales/uk.json +6 -3
- package/dist/i18n/locales/zh-cn.json +6 -3
- package/dist/icon-scan.d.ts +276 -0
- package/dist/icon-scan.js +485 -0
- package/dist/icons-whitelist.d.ts +5 -4
- package/dist/index.d.ts +25 -4
- package/dist/index.js +71 -67
- package/dist/input-variants.d.ts +18 -0
- package/dist/llms-full.txt +19548 -4738
- package/dist/llms-medium.txt +1036 -184
- package/dist/llms.txt +14 -11
- package/dist/locale-blueprint.json +6 -3
- package/dist/nuxt-auto-imports.d.ts +100 -0
- package/dist/nuxt-auto-imports.js +55 -0
- package/dist/nuxt-module.d.ts +26 -1
- package/dist/nuxt.js +26 -9
- package/dist/passthrough-deduper.js +5 -0
- package/dist/plugin.d.ts +10 -1
- package/dist/plugin.js +21 -19
- package/dist/pt-scope-registry.d.ts +15 -0
- package/dist/runtime/nuxt-plugin.js +29 -21
- package/dist/styles.css +1 -1
- package/dist/tabs-variants.d.ts +18 -0
- package/dist/types/BadgeVariant.d.ts +6 -4
- package/dist/types/ColumnName.d.ts +1 -1
- package/dist/types/CommonProps.d.ts +2 -2
- package/dist/types/Config.d.ts +47 -0
- package/dist/types/InputVariant.d.ts +22 -0
- package/dist/types/ItemProps.d.ts +50 -0
- package/dist/types/Option.d.ts +6 -0
- package/dist/types/PtScope.d.ts +13 -0
- package/dist/types/TabsVariant.d.ts +17 -0
- package/dist/types/passthrough.d.ts +332 -0
- package/dist/types/passthrough.js +78 -0
- package/dist/types/ptComponentMap.d.ts +60 -0
- package/dist/utilities/functions/hasVnodeListener.d.ts +16 -0
- package/dist/utilities/functions/hasVnodeListener.js +12 -0
- package/dist/utilities/functions/itemProps.d.ts +46 -0
- package/dist/utilities/functions/itemProps.js +47 -0
- package/dist/utilities/functions/slotKey.d.ts +5 -5
- package/dist/utilities/functions/slotKey.js +1 -1
- package/dist/utilities/functions/toggleInput.d.ts +98 -0
- package/dist/utilities/functions/toggleInput.js +56 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +9 -3
- package/dist/utilities/misc/listboxMetrics.js +5 -2
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
- package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
- package/dist/utils/cssLayers.d.ts +91 -0
- package/dist/utils/cssLayers.js +43 -0
- package/dist/utils/injectLibraryStyles.d.ts +3 -1
- package/dist/utils/injectLibraryStyles.js +24 -23
- package/dist/utils/passthrough.d.ts +70 -0
- package/dist/utils/passthrough.js +100 -0
- package/dist/utils/passthroughDeduper.d.ts +2 -0
- package/dist/utils/passthroughTestKit.d.ts +54 -0
- package/dist/utils/ptScope.d.ts +8 -0
- package/dist/utils/ptScope.js +4 -0
- package/dist/utils/swipeTestKit.d.ts +9 -0
- package/dist/validated/BbCheckbox.vue.d.ts +3 -1
- package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +82 -23
- package/dist/validated/BbCheckboxGroup.vue.d.ts +125 -2
- package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +113 -25
- package/dist/validated/BbColorInput.vue.d.ts +9 -7
- package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +145 -25
- package/dist/validated/BbDatePickerInput.vue.d.ts +11 -9
- package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +417 -27
- package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +17 -1
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +45 -28
- package/dist/validated/BbNumberInput.vue.d.ts +9 -7
- package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +115 -25
- package/dist/validated/BbRadioGroup.vue.d.ts +124 -2
- package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +113 -25
- package/dist/validated/BbRating.vue.d.ts +6 -4
- package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +69 -22
- package/dist/validated/BbSelect.vue.d.ts +235 -2
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -32
- package/dist/validated/BbSlider.vue.d.ts +9 -7
- package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +72 -25
- package/dist/validated/BbSwitch.vue.d.ts +3 -1
- package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +82 -23
- package/dist/validated/BbSwitchGroup.vue.d.ts +125 -2
- package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +113 -25
- package/dist/validated/BbTag.vue.d.ts +9 -7
- package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +122 -25
- package/dist/validated/BbTextInput.vue.d.ts +9 -7
- package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +115 -25
- package/dist/validated/BbTextarea.vue.d.ts +9 -7
- package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +115 -25
- package/dist/validated/BbTimePickerInput.vue.d.ts +9 -7
- package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +175 -25
- package/dist/validated/index.d.ts +3 -0
- package/dist/validated/useValidatedField.js +25 -23
- package/dist/vite-plugin.d.ts +233 -27
- package/dist/vite.js +517 -303
- package/llms.txt +15 -12
- package/package.json +15 -11
- package/scripts/lib/component-tree.ts +611 -0
- package/scripts/lib/ensure-manifest.mjs +28 -5
- package/scripts/lib/eslint-plugin.d.ts +58 -1
- package/scripts/lib/eslint-plugin.mjs +899 -17
- package/scripts/lib/hand-roll-hints.mjs +50 -6
- package/scripts/lib/html-attributes.mjs +133 -0
- package/scripts/lib/mcp-config.mjs +87 -58
- package/scripts/lib/public-type-exports.mjs +246 -0
- package/scripts/lib/validate-bb-markup.mjs +318 -34
- package/dist/ai/BbBaseCheckbox.md +0 -49
- package/dist/ai/BbBaseCheckboxGroup.md +0 -64
- package/dist/ai/BbBaseColorInput.md +0 -65
- package/dist/ai/BbBaseColorPalette.md +0 -39
- package/dist/ai/BbBaseDatePicker.md +0 -43
- package/dist/ai/BbBaseDatePickerInput.md +0 -73
- package/dist/ai/BbBaseNumberInput.md +0 -71
- package/dist/ai/BbBaseRadio.md +0 -46
- package/dist/ai/BbBaseRadioGroup.md +0 -64
- package/dist/ai/BbBaseRating.md +0 -52
- package/dist/ai/BbBaseSelect.md +0 -88
- package/dist/ai/BbBaseSlider.md +0 -56
- package/dist/ai/BbBaseSwitch.md +0 -49
- package/dist/ai/BbBaseSwitchGroup.md +0 -64
- package/dist/ai/BbBaseTag.md +0 -68
- package/dist/ai/BbBaseTextInput.md +0 -75
- package/dist/ai/BbBaseTextarea.md +0 -62
- package/dist/ai/BbBaseTimePickerInput.md +0 -62
- package/dist/ai/CommonInputWrapper.md +0 -42
- package/dist/ai/source/BbBaseCheckbox.md +0 -461
- package/dist/ai/source/BbBaseCheckboxGroup.md +0 -554
- package/dist/ai/source/BbBaseColorInput.md +0 -431
- package/dist/ai/source/BbBaseColorPalette.md +0 -942
- package/dist/ai/source/BbBaseDatePicker.md +0 -1448
- package/dist/ai/source/BbBaseDatePickerInput.md +0 -1940
- package/dist/ai/source/BbBaseNumberInput.md +0 -617
- package/dist/ai/source/BbBaseRadio.md +0 -381
- package/dist/ai/source/BbBaseRadioGroup.md +0 -539
- package/dist/ai/source/BbBaseRating.md +0 -607
- package/dist/ai/source/BbBaseSelect.md +0 -945
- package/dist/ai/source/BbBaseSlider.md +0 -1144
- package/dist/ai/source/BbBaseSwitch.md +0 -246
- package/dist/ai/source/BbBaseSwitchGroup.md +0 -302
- package/dist/ai/source/BbBaseTag.md +0 -694
- package/dist/ai/source/BbBaseTextInput.md +0 -511
- package/dist/ai/source/BbBaseTextarea.md +0 -504
- package/dist/ai/source/BbBaseTimePickerInput.md +0 -1037
- package/dist/ai/source/CommonInputWrapper.md +0 -584
- package/dist/assets/svgs/sort.svg_raw.js +0 -4
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +0 -40
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +0 -6
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +0 -145
- package/dist/components/BbBaseCheckbox/types.d.ts +0 -224
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +0 -19
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +0 -6
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +0 -257
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +0 -43
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +0 -6
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +0 -184
- package/dist/components/BbBaseColorInput/types.d.ts +0 -219
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +0 -13
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +0 -395
- package/dist/components/BbBaseColorPalette/types.d.ts +0 -40
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.d.ts +0 -20
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +0 -6
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +0 -407
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +0 -47
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +0 -5
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +0 -318
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +0 -5
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +0 -115
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +0 -5
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +0 -116
- package/dist/components/BbBaseDatePicker/types.d.ts +0 -108
- package/dist/components/BbBaseDatePicker/useDatePickerContext.js +0 -11
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +0 -31
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +0 -6
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -737
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +0 -6
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +0 -204
- package/dist/components/BbBaseDatePickerInput/types.d.ts +0 -325
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +0 -6
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +0 -52
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +0 -6
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +0 -215
- package/dist/components/BbBaseNumberInput/types.d.ts +0 -211
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +0 -33
- package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +0 -113
- package/dist/components/BbBaseRadio/types.d.ts +0 -179
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +0 -19
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -179
- package/dist/components/BbBaseRadioGroup/types.d.ts +0 -223
- package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +0 -38
- package/dist/components/BbBaseRating/BbBaseRating.vue.js +0 -6
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +0 -192
- package/dist/components/BbBaseRating/types.d.ts +0 -176
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +0 -19
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +0 -6
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +0 -311
- package/dist/components/BbBaseSelect/types.d.ts +0 -297
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +0 -35
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +0 -6
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +0 -340
- package/dist/components/BbBaseSlider/types.d.ts +0 -200
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +0 -35
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.js +0 -6
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +0 -146
- package/dist/components/BbBaseSwitch/types.d.ts +0 -10
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +0 -19
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +0 -6
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/BbBaseSwitchGroup/types.d.ts +0 -8
- package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +0 -50
- package/dist/components/BbBaseTag/BbBaseTag.vue.js +0 -6
- package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +0 -266
- package/dist/components/BbBaseTag/types.d.ts +0 -160
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +0 -45
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +0 -6
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +0 -200
- package/dist/components/BbBaseTextInput/types.d.ts +0 -209
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +0 -39
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +0 -6
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +0 -187
- package/dist/components/BbBaseTextarea/types.d.ts +0 -170
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +0 -27
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +0 -6
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -519
- package/dist/components/BbBaseTimePickerInput/types.d.ts +0 -151
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +0 -6
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +0 -107
- /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts → BbCalendar/CalendarMonthPanel.vue.d.ts} +0 -0
- /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts → BbCalendar/CalendarYearPanel.vue.d.ts} +0 -0
- /package/dist/{components/BbBaseDatePicker/typeahead.d.ts → composables/useTypeahead.d.ts} +0 -0
- /package/dist/{components/BbBaseDatePicker/typeahead.js → composables/useTypeahead.js} +0 -0
|
@@ -1,96 +1,104 @@
|
|
|
1
1
|
import { overlaySurfaceIsolation as e } from "../../utils/overlaySurfaceIsolation.js";
|
|
2
|
-
import {
|
|
3
|
-
import { topLayerHost as
|
|
4
|
-
import { useSafeAreaInternal as
|
|
5
|
-
import { dismissToast as
|
|
6
|
-
import
|
|
7
|
-
import { Fragment as
|
|
2
|
+
import { viewportClientHeight as t, viewportClientWidth as n, viewportWidth as r } from "../../composables/useViewportWidth.js";
|
|
3
|
+
import { topLayerHost as i } from "../../composables/useTopLayer.js";
|
|
4
|
+
import { useSafeAreaInternal as a } from "../../composables/useSafeAreaInternal.js";
|
|
5
|
+
import { dismissToast as o } from "../../composables/useToast.js";
|
|
6
|
+
import s from "./BbToastMessage.vue.js";
|
|
7
|
+
import { Fragment as c, computed as l, createBlock as u, createElementBlock as d, defineComponent as f, mergeProps as p, onBeforeUnmount as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, toHandlers as b, unref as x, watch as S, watchEffect as C } from "vue";
|
|
8
8
|
//#region src/components/BbToast/BbToastRegion.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
9
|
+
var w = /*@__PURE__*/ f({
|
|
10
10
|
__name: "BbToastRegion",
|
|
11
11
|
props: {
|
|
12
12
|
position: {},
|
|
13
|
-
toasts: {}
|
|
13
|
+
toasts: {},
|
|
14
|
+
passthrough: {}
|
|
14
15
|
},
|
|
15
|
-
setup(
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
let e =
|
|
16
|
+
setup(f) {
|
|
17
|
+
let w = f, T = v(), E = v(!1), D = v(!1), O = _({}), k = l(() => E.value), A = l(() => E.value || D.value), j = v(0), M = v(0), N = _({});
|
|
18
|
+
C(() => {
|
|
19
|
+
let e = w.toasts.filter((e) => !e.removed), t = e.length - 1;
|
|
19
20
|
e.forEach((n, r) => {
|
|
20
21
|
let i = 0;
|
|
21
|
-
for (let n = r + 1; n <= t; n++) i +=
|
|
22
|
-
|
|
22
|
+
for (let n = r + 1; n <= t; n++) i += O[e[n].id] ?? 0;
|
|
23
|
+
N[n.id] = {
|
|
23
24
|
frontIndex: t - r,
|
|
24
25
|
heightBefore: i
|
|
25
26
|
};
|
|
26
|
-
}),
|
|
27
|
-
let n = new Set(
|
|
28
|
-
for (let e of Object.keys(
|
|
29
|
-
for (let e of Object.keys(
|
|
27
|
+
}), j.value = e.length, M.value = t >= 0 ? O[e[t].id] ?? 0 : 0;
|
|
28
|
+
let n = new Set(w.toasts.map((e) => e.id));
|
|
29
|
+
for (let e of Object.keys(N)) n.has(e) || delete N[e];
|
|
30
|
+
for (let e of Object.keys(O)) n.has(e) || delete O[e];
|
|
30
31
|
});
|
|
31
|
-
let { occupied:
|
|
32
|
-
let e =
|
|
33
|
-
return
|
|
34
|
-
}),
|
|
35
|
-
let e =
|
|
32
|
+
let { occupied: P } = a(), F = l(() => r.value < 640 ? 14 : 20), I = l(() => {
|
|
33
|
+
let e = w.toasts.filter((e) => !e.removed);
|
|
34
|
+
return k.value && e.length ? e.reduce((e, t) => e + (O[t.id] ?? 0), 0) : M.value;
|
|
35
|
+
}), L = l(() => {
|
|
36
|
+
let e = F.value * 2, r = w.position.startsWith("top") ? P.top.value : P.bottom.value, i = r + I.value + e <= t.value, a = w.position.endsWith("right") ? P.right.value : w.position.endsWith("left") ? P.left.value : 0, o = a + (T.value?.offsetWidth ?? 356) + e <= n.value;
|
|
36
37
|
return {
|
|
37
38
|
"--safe-v": `${i ? r : 0}px`,
|
|
38
39
|
"--safe-h": `${o ? a : 0}px`
|
|
39
40
|
};
|
|
40
|
-
}),
|
|
41
|
-
height: `${
|
|
42
|
-
...
|
|
43
|
-
})),
|
|
44
|
-
let e =
|
|
45
|
-
!
|
|
41
|
+
}), R = l(() => ({
|
|
42
|
+
height: `${I.value}px`,
|
|
43
|
+
...L.value
|
|
44
|
+
})), z = () => !!T.value?.isConnected, B = () => {
|
|
45
|
+
let e = T.value;
|
|
46
|
+
!z() || e.matches(":popover-open") || e.showPopover();
|
|
47
|
+
}, V = () => {
|
|
48
|
+
let e = T.value;
|
|
49
|
+
!z() || !e.matches(":popover-open") || e.hidePopover();
|
|
50
|
+
}, H = () => {
|
|
51
|
+
V(), B();
|
|
46
52
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
S([
|
|
54
|
+
l(() => w.toasts.filter((e) => !e.removed).length),
|
|
55
|
+
l(() => P.top.value + P.right.value + P.bottom.value + P.left.value),
|
|
56
|
+
i
|
|
51
57
|
], ([e, t, n], [r, i, a]) => {
|
|
52
|
-
e !== 0 && (e > r || t !== i || n !== a) &&
|
|
58
|
+
e !== 0 && (e > r || t !== i || n !== a) && H();
|
|
53
59
|
}, { flush: "post" });
|
|
54
|
-
let
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
60
|
+
let U = (e, t) => {
|
|
61
|
+
O[e] = t;
|
|
62
|
+
}, W = (e, t) => {
|
|
63
|
+
o(e, t);
|
|
64
|
+
}, G = (e) => {
|
|
65
|
+
T.value?.contains(e.relatedTarget) || (E.value = !1);
|
|
66
|
+
}, K = () => {
|
|
67
|
+
D.value = document.hidden;
|
|
62
68
|
};
|
|
63
|
-
return
|
|
64
|
-
|
|
65
|
-
}),
|
|
66
|
-
|
|
67
|
-
}), (t, n) => (
|
|
69
|
+
return h(() => {
|
|
70
|
+
B(), document.addEventListener("visibilitychange", K);
|
|
71
|
+
}), m(() => {
|
|
72
|
+
V(), document.removeEventListener("visibilitychange", K);
|
|
73
|
+
}), (t, n) => (g(), d("ol", p({
|
|
68
74
|
ref_key: "regionEl",
|
|
69
|
-
ref:
|
|
70
|
-
class: ["bb-toast", [`bb-toast--${t.position}`, { "bb-toast--expanded":
|
|
75
|
+
ref: T,
|
|
76
|
+
class: ["bb-toast", [`bb-toast--${t.position}`, { "bb-toast--expanded": k.value }]],
|
|
71
77
|
popover: "manual",
|
|
72
|
-
style:
|
|
78
|
+
style: R.value,
|
|
73
79
|
tabindex: "-1"
|
|
74
|
-
},
|
|
75
|
-
onFocusin: n[0] ||= (e) =>
|
|
76
|
-
onFocusout:
|
|
77
|
-
onPointerenter: n[1] ||= (e) =>
|
|
78
|
-
onPointerleave: n[2] ||= (e) =>
|
|
79
|
-
}), [(
|
|
80
|
+
}, b(x(e), !0), {
|
|
81
|
+
onFocusin: n[0] ||= (e) => E.value = !0,
|
|
82
|
+
onFocusout: G,
|
|
83
|
+
onPointerenter: n[1] ||= (e) => E.value = !0,
|
|
84
|
+
onPointerleave: n[2] ||= (e) => E.value = !1
|
|
85
|
+
}, t.passthrough?.rootAttrs ?? t.passthrough?.root), [(g(!0), d(c, null, y(t.toasts, (e) => (g(), u(s, {
|
|
80
86
|
key: e.id,
|
|
81
|
-
"front-height":
|
|
82
|
-
"front-index":
|
|
83
|
-
"height-before":
|
|
84
|
-
|
|
87
|
+
"front-height": M.value,
|
|
88
|
+
"front-index": N[e.id]?.frontIndex ?? 0,
|
|
89
|
+
"height-before": N[e.id]?.heightBefore ?? 0,
|
|
90
|
+
passthrough: t.passthrough,
|
|
91
|
+
paused: A.value,
|
|
85
92
|
position: t.position,
|
|
86
93
|
toast: e,
|
|
87
|
-
total:
|
|
88
|
-
onDismiss:
|
|
89
|
-
onHeight:
|
|
94
|
+
total: j.value,
|
|
95
|
+
onDismiss: W,
|
|
96
|
+
onHeight: U
|
|
90
97
|
}, null, 8, [
|
|
91
98
|
"front-height",
|
|
92
99
|
"front-index",
|
|
93
100
|
"height-before",
|
|
101
|
+
"passthrough",
|
|
94
102
|
"paused",
|
|
95
103
|
"position",
|
|
96
104
|
"toast",
|
|
@@ -99,4 +107,4 @@ var C = /*@__PURE__*/ d({
|
|
|
99
107
|
}
|
|
100
108
|
});
|
|
101
109
|
//#endregion
|
|
102
|
-
export {
|
|
110
|
+
export { w as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
+
import { PtMap, PtValue } from '../../types/passthrough';
|
|
2
3
|
import { IconType } from '../../types/Icon';
|
|
3
4
|
import { ToastVariantType } from '../../types/ToastVariant';
|
|
4
5
|
import { ActionButtonConfig } from '../../types/ActionButton';
|
|
@@ -66,7 +67,34 @@ export type BbToastPortalContext = {
|
|
|
66
67
|
* Mount it once, near the root of your app. It renders every toast enqueued via
|
|
67
68
|
* `useToast().toast(...)`, grouped into stacks by position.
|
|
68
69
|
*/
|
|
70
|
+
/**
|
|
71
|
+
* Passthrough parts of `BbToast` (plans/passthrough/BbToast.md). The host
|
|
72
|
+
* renders one region per corner in use and one card per toast. A toast is
|
|
73
|
+
* showing for as long as it is mounted, so there is no state.
|
|
74
|
+
*
|
|
75
|
+
* @part root - One region per corner in use — a broadcast over the corners.
|
|
76
|
+
* @part panel - One toast card — a broadcast.
|
|
77
|
+
* @part title - A toast's heading. A portal toast renders its own body and
|
|
78
|
+
* has neither `title` nor `text`.
|
|
79
|
+
* @part text - A toast's body copy.
|
|
80
|
+
* @part close - A toast's ✕.
|
|
81
|
+
*/
|
|
82
|
+
export type BbToastPtPart = 'root' | 'panel' | 'title' | 'text' | 'close';
|
|
83
|
+
/** Passthrough states of `BbToast`, true while the matching `--` modifier is on. */
|
|
84
|
+
export type BbToastPtState = never;
|
|
85
|
+
/** The runtime lists the resolver is wired with — kept next to the types so the two cannot drift. */
|
|
86
|
+
export declare const BB_TOAST_PT: {
|
|
87
|
+
readonly parts: readonly ["root", "panel", "title", "text", "close"];
|
|
88
|
+
readonly states: readonly [];
|
|
89
|
+
};
|
|
69
90
|
export type BbToastProps = {
|
|
91
|
+
[K in `pt:${BbToastPtPart}`]?: PtValue;
|
|
92
|
+
} & {
|
|
93
|
+
/**
|
|
94
|
+
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
95
|
+
* without the prefix. See the `pt:<part>` row.
|
|
96
|
+
*/
|
|
97
|
+
pt?: PtMap<BbToastPtPart, never>;
|
|
70
98
|
position?: BbToastPosition;
|
|
71
99
|
};
|
|
72
100
|
export {};
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { usePassthrough as e } from "../../composables/usePassthrough.js";
|
|
2
|
+
import { useId as t } from "../../composables/useId.js";
|
|
3
|
+
import { useUntil as n } from "../../composables/useUntil.js";
|
|
4
|
+
import { removedPropsFor as r } from "../../deprecation/removedProps.js";
|
|
4
5
|
import { warnRemovedAttrs as ee } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
5
|
-
import { extractDomContainer as
|
|
6
|
-
import { transitions as
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { Comment as
|
|
10
|
-
import { useElementSize as
|
|
6
|
+
import { extractDomContainer as i } from "../../utilities/functions/extractDomContainer.js";
|
|
7
|
+
import { transitions as a } from "../../utilities/misc/transitions.js";
|
|
8
|
+
import o from "../CommonPopover/CommonPopover.vue.js";
|
|
9
|
+
import { BB_TOOLTIP_PT as s } from "./types.js";
|
|
10
|
+
import { Comment as c, Fragment as te, computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, mergeProps as _, normalizeProps as ne, onBeforeUnmount as re, onDeactivated as ie, onMounted as ae, openBlock as v, ref as y, renderSlot as b, toDisplayString as x, unref as S, useModel as oe, useSlots as C, useTemplateRef as w, watch as T, withCtx as se } from "vue";
|
|
11
|
+
import { useElementSize as ce } from "@vueuse/core";
|
|
11
12
|
//#region src/components/BbTooltip/BbTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
13
|
+
var E = /*@__PURE__*/ h({
|
|
13
14
|
inheritAttrs: !1,
|
|
14
15
|
__name: "BbTooltip",
|
|
15
|
-
props: /*@__PURE__*/
|
|
16
|
+
props: /*@__PURE__*/ g({
|
|
17
|
+
"pt:root": {},
|
|
18
|
+
"pt:panel": {},
|
|
19
|
+
"pt:root:open": {},
|
|
20
|
+
"pt:panel:open": {},
|
|
21
|
+
pt: {},
|
|
16
22
|
arrowPadding: { default: 10 },
|
|
17
23
|
disabled: { type: Boolean },
|
|
18
24
|
eager: { type: Boolean },
|
|
@@ -21,7 +27,7 @@ var k = /*@__PURE__*/ p({
|
|
|
21
27
|
padding: { default: 10 },
|
|
22
28
|
placement: { default: "top" },
|
|
23
29
|
text: {},
|
|
24
|
-
transitionDuration: { default:
|
|
30
|
+
transitionDuration: { default: a.medium },
|
|
25
31
|
activator: {},
|
|
26
32
|
boundary: {},
|
|
27
33
|
variant: { default: "default" },
|
|
@@ -35,98 +41,108 @@ var k = /*@__PURE__*/ p({
|
|
|
35
41
|
modelModifiers: {}
|
|
36
42
|
}),
|
|
37
43
|
emits: ["update:modelValue"],
|
|
38
|
-
setup(
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
setup(a) {
|
|
45
|
+
let h = oe(a, "modelValue"), g = a, E = C(), D = e({
|
|
46
|
+
component: "BbTooltip",
|
|
47
|
+
props: g,
|
|
48
|
+
parts: s.parts,
|
|
49
|
+
states: s.states,
|
|
50
|
+
active: { open: () => h.value }
|
|
51
|
+
});
|
|
52
|
+
process.env.NODE_ENV !== "production" && ee("BbTooltip", r("BbTooltip"));
|
|
53
|
+
let O = `bb_${g.id ?? t().id.value}`, k = `${O}_desc`, A = (e) => {
|
|
42
54
|
if (!e) return "";
|
|
43
55
|
let t = "";
|
|
44
56
|
for (let n of e) {
|
|
45
|
-
if (n.type ===
|
|
57
|
+
if (n.type === c) continue;
|
|
46
58
|
let e = n.children;
|
|
47
|
-
typeof e == "string" ? t += e : Array.isArray(e) && (t +=
|
|
59
|
+
typeof e == "string" ? t += e : Array.isArray(e) && (t += A(e));
|
|
48
60
|
}
|
|
49
61
|
return t;
|
|
50
|
-
},
|
|
51
|
-
let t =
|
|
52
|
-
t && (
|
|
53
|
-
}, B, V
|
|
54
|
-
clearTimeout(
|
|
62
|
+
}, j = y(!1), M = l(() => (g.text ?? (j.value ? A(E.default?.({})) : "")).replace(/\s+/g, " ").trim()), N = y(), P = l(() => g.activator != null), F = w("popover"), I = l(() => i(F.value)), L = n(h), R = (e) => {
|
|
63
|
+
let t = i(e);
|
|
64
|
+
t && (N.value = t);
|
|
65
|
+
}, z, B, V = () => {
|
|
66
|
+
clearTimeout(B);
|
|
67
|
+
}, H = () => {
|
|
68
|
+
clearTimeout(z), clearTimeout(B), h.value = !1;
|
|
55
69
|
}, U = () => {
|
|
56
|
-
clearTimeout(
|
|
70
|
+
clearTimeout(z), clearTimeout(B), B = setTimeout(H, 50);
|
|
57
71
|
}, W = () => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
72
|
+
V(), !(h.value || g.disabled) && (z = setTimeout(() => {
|
|
73
|
+
h.value = !0;
|
|
74
|
+
}, g.delay));
|
|
75
|
+
}, G = (e) => {
|
|
76
|
+
e.key === "Escape" && H();
|
|
63
77
|
}, K = (e) => {
|
|
64
|
-
e.
|
|
65
|
-
}, q = (e) => {
|
|
66
|
-
e.currentTarget?.matches(":focus-visible") && G();
|
|
78
|
+
e.currentTarget?.matches(":focus-visible") && W();
|
|
67
79
|
};
|
|
68
|
-
|
|
69
|
-
e ? document.addEventListener("keydown",
|
|
70
|
-
}),
|
|
71
|
-
e &&
|
|
72
|
-
}),
|
|
73
|
-
e &&
|
|
80
|
+
T(h, (e) => {
|
|
81
|
+
e ? document.addEventListener("keydown", G) : document.removeEventListener("keydown", G);
|
|
82
|
+
}), T(() => g.disabled, (e) => {
|
|
83
|
+
e && H();
|
|
84
|
+
}), T(() => g.activator, (e) => {
|
|
85
|
+
e && R(e);
|
|
74
86
|
}, { immediate: !0 });
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
e.removeEventListener("mouseenter",
|
|
87
|
+
let q = null;
|
|
88
|
+
T(N, (e) => {
|
|
89
|
+
q &&= (q(), null), e && (e.addEventListener("mouseenter", W, { passive: !0 }), e.addEventListener("mouseleave", U, { passive: !0 }), e.addEventListener("focus", K, { passive: !0 }), e.addEventListener("blur", H, { passive: !0 }), q = () => {
|
|
90
|
+
e.removeEventListener("mouseenter", W), e.removeEventListener("mouseleave", U), e.removeEventListener("focus", K), e.removeEventListener("blur", H);
|
|
79
91
|
});
|
|
80
92
|
}, { immediate: !0 });
|
|
81
|
-
let
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
e.removeEventListener("mouseenter",
|
|
93
|
+
let J = null;
|
|
94
|
+
T(I, (e) => {
|
|
95
|
+
J &&= (J(), null), e && (e.addEventListener("mouseenter", V, { passive: !0 }), e.addEventListener("mouseleave", U, { passive: !0 }), J = () => {
|
|
96
|
+
e.removeEventListener("mouseenter", V), e.removeEventListener("mouseleave", U);
|
|
85
97
|
});
|
|
86
98
|
}, { immediate: !0 });
|
|
87
|
-
let
|
|
88
|
-
let n = (e.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((e) => e && !
|
|
99
|
+
let le = /* @__PURE__ */ new Set([O, k]), Y = null, X = (e, t) => {
|
|
100
|
+
let n = (e.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((e) => e && !le.has(e));
|
|
89
101
|
t && n.push(t), n.length ? e.setAttribute("aria-describedby", n.join(" ")) : e.removeAttribute("aria-describedby");
|
|
90
|
-
},
|
|
91
|
-
let e =
|
|
92
|
-
|
|
102
|
+
}, Z = () => {
|
|
103
|
+
let e = N.value ?? null;
|
|
104
|
+
Y && Y !== e && X(Y, null), Y = e, e && (M.value ? X(e, k) : X(e, L.value ? O : null));
|
|
93
105
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
],
|
|
101
|
-
|
|
106
|
+
ae(() => {
|
|
107
|
+
Z(), j.value = !0;
|
|
108
|
+
}), T([
|
|
109
|
+
N,
|
|
110
|
+
L,
|
|
111
|
+
M
|
|
112
|
+
], Z, { flush: "post" }), re(() => {
|
|
113
|
+
q?.(), J?.(), Y &&= (X(Y, null), null), H(), document.removeEventListener("keydown", G);
|
|
102
114
|
});
|
|
103
|
-
let
|
|
104
|
-
if (
|
|
105
|
-
let
|
|
106
|
-
return
|
|
107
|
-
}), { width:
|
|
115
|
+
let ue = /^-?\d*\.?\d+$/, de = /^(-?\d*\.?\d+)%$/, Q = l(() => {
|
|
116
|
+
if (typeof g.width != "string") return;
|
|
117
|
+
let e = g.width.trim().match(de);
|
|
118
|
+
return e ? parseFloat(e[1]) : void 0;
|
|
119
|
+
}), { width: $ } = ce(l(() => Q.value == null ? void 0 : N.value), {
|
|
108
120
|
width: 0,
|
|
109
121
|
height: 0
|
|
110
|
-
}, { box: "border-box" }),
|
|
111
|
-
if (
|
|
122
|
+
}, { box: "border-box" }), fe = l(() => {
|
|
123
|
+
if (g.width == null || g.width === "") return;
|
|
124
|
+
if (Q.value != null) return $.value ? `${$.value * (Q.value / 100)}px` : void 0;
|
|
125
|
+
if (typeof g.width == "number") return Number.isFinite(g.width) ? `${g.width}px` : void 0;
|
|
126
|
+
let e = g.width.trim();
|
|
127
|
+
return ue.test(e) ? `${e}px` : e;
|
|
112
128
|
});
|
|
113
|
-
return (e, t) => (
|
|
114
|
-
|
|
129
|
+
return ie(H), (e, t) => (v(), d(te, null, [
|
|
130
|
+
M.value ? (v(), d("span", {
|
|
115
131
|
key: 0,
|
|
116
|
-
id:
|
|
117
|
-
class: "sr-only"
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
props: { ref:
|
|
132
|
+
id: k,
|
|
133
|
+
class: "bb-sr-only"
|
|
134
|
+
}, x(M.value), 1)) : u("", !0),
|
|
135
|
+
P.value ? u("", !0) : b(e.$slots, "activator", ne(_({ key: 1 }, {
|
|
136
|
+
props: { ref: R },
|
|
121
137
|
disabled: e.disabled,
|
|
122
|
-
open:
|
|
138
|
+
open: h.value,
|
|
123
139
|
placement: e.placement
|
|
124
140
|
}))),
|
|
125
|
-
|
|
141
|
+
m(o, _({
|
|
126
142
|
ref: "popover",
|
|
127
|
-
modelValue:
|
|
128
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
129
|
-
anchor:
|
|
143
|
+
modelValue: h.value,
|
|
144
|
+
"onUpdate:modelValue": t[0] ||= (e) => h.value = e,
|
|
145
|
+
anchor: N.value,
|
|
130
146
|
"arrow-padding": e.arrowPadding,
|
|
131
147
|
boundary: e.boundary,
|
|
132
148
|
class: ["bb-tooltip", { [`bb-tooltip--${e.variant}`]: !0 }],
|
|
@@ -136,13 +152,13 @@ var k = /*@__PURE__*/ p({
|
|
|
136
152
|
placement: e.placement,
|
|
137
153
|
tag: "span",
|
|
138
154
|
"transition-duration": e.transitionDuration
|
|
139
|
-
}, e.$attrs), {
|
|
140
|
-
default:
|
|
141
|
-
id:
|
|
155
|
+
}, _(e.$attrs, S(D).root)), {
|
|
156
|
+
default: se(() => [f("span", _({
|
|
157
|
+
id: O,
|
|
142
158
|
class: "bb-tooltip__content",
|
|
143
159
|
role: "tooltip",
|
|
144
|
-
style:
|
|
145
|
-
},
|
|
160
|
+
style: { "--max-w": fe.value }
|
|
161
|
+
}, S(D).panel), [b(e.$slots, "default", {}, () => [p(x(e.text), 1)])], 16)]),
|
|
146
162
|
_: 3
|
|
147
163
|
}, 16, [
|
|
148
164
|
"modelValue",
|
|
@@ -160,4 +176,4 @@ var k = /*@__PURE__*/ p({
|
|
|
160
176
|
}
|
|
161
177
|
});
|
|
162
178
|
//#endregion
|
|
163
|
-
export {
|
|
179
|
+
export { E as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TooltipVariantType } from '../../types/TooltipVariant';
|
|
2
|
+
import { PtMap, PtValue } from '../../types/passthrough';
|
|
2
3
|
import { ElementOrComponentRef, ElementOrComponentRefOrSelector } from '../../types/CommonProps';
|
|
3
4
|
import { Placement } from '../../types/Placement';
|
|
4
5
|
/**
|
|
@@ -7,7 +8,33 @@ import { Placement } from '../../types/Placement';
|
|
|
7
8
|
* hook for consumer CSS.
|
|
8
9
|
*/
|
|
9
10
|
export type BbTooltipVariant = TooltipVariantType;
|
|
11
|
+
/**
|
|
12
|
+
* Passthrough parts of `BbTooltip` (plans/passthrough/BbTooltip.md).
|
|
13
|
+
*
|
|
14
|
+
* @part root - The floating element, arrow included; a `class` on the
|
|
15
|
+
* component lands here.
|
|
16
|
+
* @part panel - The bubble that holds the text.
|
|
17
|
+
*/
|
|
18
|
+
export type BbTooltipPtPart = 'root' | 'panel';
|
|
19
|
+
/**
|
|
20
|
+
* Passthrough states of `BbTooltip`, true while the matching `--` modifier is on.
|
|
21
|
+
*
|
|
22
|
+
* @state open - Component-wide: the tooltip is showing.
|
|
23
|
+
*/
|
|
24
|
+
export type BbTooltipPtState = 'open';
|
|
25
|
+
/** The runtime lists the resolver is wired with — kept next to the types so the two cannot drift. */
|
|
26
|
+
export declare const BB_TOOLTIP_PT: {
|
|
27
|
+
readonly parts: readonly ["root", "panel"];
|
|
28
|
+
readonly states: readonly ["open"];
|
|
29
|
+
};
|
|
10
30
|
export type BbTooltipProps = {
|
|
31
|
+
[K in `pt:${BbTooltipPtPart}` | `pt:${BbTooltipPtPart}:${BbTooltipPtState}`]?: PtValue;
|
|
32
|
+
} & {
|
|
33
|
+
/**
|
|
34
|
+
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
35
|
+
* without the prefix. See the `pt:<part>` row.
|
|
36
|
+
*/
|
|
37
|
+
pt?: PtMap<BbTooltipPtPart, BbTooltipPtState>;
|
|
11
38
|
/**
|
|
12
39
|
* Space the arrow will maintain to the edge of the tooltip bubble.
|
|
13
40
|
* Useful when the floating element has border radius so it won't appear broken
|
|
@@ -32,7 +59,11 @@ export type BbTooltipProps = {
|
|
|
32
59
|
*/
|
|
33
60
|
hideArrow?: boolean;
|
|
34
61
|
/**
|
|
35
|
-
*
|
|
62
|
+
* Seed for the tooltip's internal id. It is **prefixed** (`bb_<id>`) and set
|
|
63
|
+
* on the inner content element, not on the root — so
|
|
64
|
+
* `document.getElementById(theIdYouPassed)` finds nothing. Pass it to make
|
|
65
|
+
* the generated id stable (SSR snapshots, tests), not to look the element
|
|
66
|
+
* up.
|
|
36
67
|
*/
|
|
37
68
|
id?: string;
|
|
38
69
|
/**
|
|
@@ -84,7 +115,14 @@ export type BbTooltipProps = {
|
|
|
84
115
|
*/
|
|
85
116
|
delay?: number;
|
|
86
117
|
/**
|
|
87
|
-
*
|
|
118
|
+
* Caps the width of the tooltip bubble: it wraps at this measure but still
|
|
119
|
+
* shrinks to its text, so a short hint never sits in an oversized bubble.
|
|
120
|
+
* A bare number is read as pixels, a percentage is measured against the
|
|
121
|
+
* activator, and any other CSS length (`'20rem'`, `'min(320px, 90vw)'`)
|
|
122
|
+
* is passed through.
|
|
123
|
+
*
|
|
124
|
+
* Replaces the default cap of `40ch`, which is also reachable in CSS as
|
|
125
|
+
* `--max-w` on the tooltip root.
|
|
88
126
|
*/
|
|
89
127
|
width?: number | string;
|
|
90
128
|
};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { BbTreeEvents, BbTreeItem, BbTreeNodeSlotProps, BbTreeProps, BbTreeSlots, TreeItem } from './types';
|
|
2
2
|
export type { BbTreeEvents, BbTreeItem, BbTreeNodeSlotProps, BbTreeProps, BbTreeSlots, TreeItem, };
|
|
3
3
|
declare const __VLS_export: <Meta>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: __VLS_PrettifyLocal<(
|
|
4
|
+
props: __VLS_PrettifyLocal<({
|
|
5
|
+
"pt:root"?: import('../../types/passthrough').PtValue | undefined;
|
|
6
|
+
"pt:root:open"?: import('../../types/passthrough').PtValue | undefined;
|
|
7
|
+
"pt:item:open"?: import('../../types/passthrough').PtValue | undefined;
|
|
8
|
+
"pt:item"?: import('../../types/passthrough').PtValue | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
pt?: import('../../types/passthrough').PtMap<import('./types').BbTreePtPart, import('./types').BbTreePtState>;
|
|
11
|
+
items: BbTreeItem<Meta>[];
|
|
12
|
+
itemValue?: import('../../types/ItemAccessor').ItemAccessor<Meta> | undefined;
|
|
13
|
+
expandable?: import('./types').BbTreeExpandable<Meta> | undefined;
|
|
14
|
+
} & {
|
|
5
15
|
/**
|
|
6
16
|
* Live expansion state: the list of expanded node values (see `itemValue`).
|
|
7
17
|
* Branch nodes not explicitly collapsed via `expanded: false` seed the list
|