bitboss-ui 3.0.0-beta.4 → 3.0.0-beta.41
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 +317 -98
- package/bin/bitboss-ui-mcp.mjs +1566 -75
- package/bin/bitboss-ui.mjs +716 -72
- package/dist/ai/BbAccordion.md +178 -56
- package/dist/ai/BbAlert.md +140 -28
- package/dist/ai/BbAsterisk.md +61 -4
- package/dist/ai/BbAvatar.md +194 -53
- package/dist/ai/BbBadge.md +250 -50
- package/dist/ai/BbBadgeButton.md +74 -21
- package/dist/ai/BbBaseButton.md +132 -51
- package/dist/ai/BbBaseCheckboxIcon.md +118 -26
- package/dist/ai/BbBaseRadioIcon.md +115 -26
- package/dist/ai/BbBaseSwitchIcon.md +123 -28
- package/dist/ai/BbBreadcrumbs.md +221 -51
- package/dist/ai/BbButton.md +389 -107
- package/dist/ai/BbCalendar.md +667 -0
- package/dist/ai/BbCheckbox.md +242 -80
- package/dist/ai/BbCheckboxGroup.md +575 -66
- package/dist/ai/BbCollapsible.md +158 -39
- package/dist/ai/BbColorInput.md +322 -82
- package/dist/ai/BbColorPalette.md +261 -61
- package/dist/ai/BbConfirm.md +220 -51
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +272 -37
- package/dist/ai/BbDatePickerInput.md +321 -92
- package/dist/ai/BbDialog.md +492 -87
- package/dist/ai/BbDropdown.md +1182 -104
- package/dist/ai/BbDropdownButton.md +239 -61
- package/dist/ai/BbDropdownGroup.md +5 -5
- package/dist/ai/BbDropzone.md +140 -36
- package/dist/ai/BbForm.md +1165 -40
- package/dist/ai/BbIcon.md +100 -33
- package/dist/ai/BbIndicator.md +79 -12
- package/dist/ai/BbNumberInput.md +257 -87
- package/dist/ai/BbOffCanvas.md +396 -91
- package/dist/ai/BbPagination.md +199 -32
- package/dist/ai/BbPopover.md +219 -54
- package/dist/ai/BbProgress.md +137 -71
- package/dist/ai/BbPtScope.md +136 -0
- package/dist/ai/BbRadio.md +234 -43
- package/dist/ai/BbRadioGroup.md +529 -91
- package/dist/ai/BbRating.md +243 -61
- package/dist/ai/BbSelect.md +690 -120
- package/dist/ai/BbSelectPopover.md +434 -122
- package/dist/ai/BbSlider.md +275 -79
- package/dist/ai/BbSmoothHeight.md +142 -34
- package/dist/ai/BbSpinner.md +179 -81
- package/dist/ai/BbSwitch.md +249 -63
- package/dist/ai/BbSwitchGroup.md +394 -65
- package/dist/ai/BbTable.md +1666 -222
- package/dist/ai/BbTabs.md +898 -178
- package/dist/ai/BbTabsList.md +81 -7
- package/dist/ai/BbTabsPanels.md +77 -0
- package/dist/ai/BbTabsRoot.md +16 -15
- package/dist/ai/BbTag.md +256 -76
- package/dist/ai/BbTextInput.md +480 -102
- package/dist/ai/BbTextarea.md +310 -96
- package/dist/ai/BbTimePicker.md +159 -24
- package/dist/ai/BbTimePickerInput.md +277 -46
- package/dist/ai/BbToast.md +286 -40
- package/dist/ai/BbToastPortal.md +3 -3
- package/dist/ai/BbTooltip.md +187 -34
- package/dist/ai/BbTree.md +260 -85
- package/dist/ai/ChipsBox.md +43 -2
- package/dist/ai/ClearableButton.md +12 -0
- package/dist/ai/CommaBox.md +2 -1
- package/dist/ai/CommonField.md +63 -0
- package/dist/ai/CommonFieldInput.md +90 -0
- package/dist/ai/CommonPopover.md +17 -12
- package/dist/ai/CommonTimeSelector.md +63 -0
- package/dist/ai/ErrorIcon.md +20 -0
- package/dist/ai/FlatListBox.md +41 -11
- package/dist/ai/GroupedListBox.md +42 -12
- package/dist/ai/ListBox.md +46 -11
- package/dist/ai/OptionsContainer.md +13 -10
- package/dist/ai/WarningIcon.md +20 -0
- package/dist/ai/changelog.json +4025 -141
- package/dist/ai/components.json +51872 -10136
- package/dist/ai/composables/useBbConfig.md +72 -11
- package/dist/ai/composables/useBbDropdownContext.md +168 -0
- package/dist/ai/composables/useBbFormContext.md +51 -24
- package/dist/ai/composables/useBbFormField.md +134 -0
- package/dist/ai/composables/useBbTableContext.md +41 -19
- package/dist/ai/composables/useConfirm.md +16 -8
- package/dist/ai/composables/useCountdown.md +1 -1
- package/dist/ai/composables/useId.md +10 -10
- package/dist/ai/composables/useMobile.md +17 -10
- package/dist/ai/composables/useToast.md +25 -19
- package/dist/ai/design-tokens.json +940 -0
- package/dist/ai/design-tokens.manifest.yaml +175 -0
- package/dist/ai/guides/agent-contract.md +168 -22
- package/dist/ai/guides/ai-router.md +79 -40
- package/dist/ai/guides/app-layout.md +8 -4
- package/dist/ai/guides/coherence-playbook.md +8 -8
- package/dist/ai/guides/component-picker.md +42 -34
- package/dist/ai/guides/design-language.md +274 -97
- package/dist/ai/guides/design-tokens.md +493 -105
- package/dist/ai/guides/fetch-items-playbook.md +22 -16
- package/dist/ai/guides/icons-policy.md +67 -35
- package/dist/ai/guides/inertia-helpers.md +4 -1
- package/dist/ai/guides/inline-edit-playbook.md +13 -6
- package/dist/ai/guides/installation-and-plugin-setup.md +817 -73
- package/dist/ai/guides/migration/components/bb-accordion.md +37 -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-badge.md +5 -5
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +9 -8
- package/dist/ai/guides/migration/components/bb-button.md +80 -20
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +116 -29
- package/dist/ai/guides/migration/components/bb-checkbox.md +53 -10
- package/dist/ai/guides/migration/components/bb-chip.md +6 -6
- package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
- package/dist/ai/guides/migration/components/bb-color-input.md +5 -5
- package/dist/ai/guides/migration/components/bb-color-palette.md +16 -9
- package/dist/ai/guides/migration/components/bb-date-picker-input.md +45 -35
- package/dist/ai/guides/migration/components/bb-dialog.md +69 -36
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +7 -1
- package/dist/ai/guides/migration/components/bb-dropdown.md +31 -8
- package/dist/ai/guides/migration/components/bb-dropzone.md +8 -0
- package/dist/ai/guides/migration/components/bb-icon.md +7 -7
- package/dist/ai/guides/migration/components/bb-intersection.md +1 -1
- package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -31
- package/dist/ai/guides/migration/components/bb-pagination.md +10 -0
- package/dist/ai/guides/migration/components/bb-popover.md +19 -11
- package/dist/ai/guides/migration/components/bb-radio-group.md +14 -0
- package/dist/ai/guides/migration/components/bb-rating.md +61 -24
- package/dist/ai/guides/migration/components/bb-select-popover.md +9 -1
- package/dist/ai/guides/migration/components/bb-select.md +21 -4
- package/dist/ai/guides/migration/components/bb-slider.md +14 -6
- package/dist/ai/guides/migration/components/bb-switch-group.md +14 -0
- package/dist/ai/guides/migration/components/bb-table.md +574 -33
- package/dist/ai/guides/migration/components/bb-tabs.md +91 -41
- package/dist/ai/guides/migration/components/bb-tag.md +9 -7
- package/dist/ai/guides/migration/components/bb-text-input.md +12 -12
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/components/bb-tooltip.md +18 -0
- package/dist/ai/guides/migration/components/bb-tree.md +11 -9
- package/dist/ai/guides/migration/components/use-confirm.md +9 -1
- package/dist/ai/guides/migration/v2-to-v3.md +828 -240
- package/dist/ai/guides/migration/v3-beta-css-classes.md +751 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +119 -0
- package/dist/ai/guides/options-items-playbook.md +161 -12
- package/dist/ai/guides/page-shell.md +1 -1
- package/dist/ai/guides/passthrough.md +958 -0
- package/dist/ai/guides/preset-components.md +361 -0
- package/dist/ai/guides/ssr-prefill.md +127 -0
- package/dist/ai/guides/validated-forms.md +466 -55
- package/dist/ai/guides/validation-libraries.md +171 -0
- package/dist/ai/guides/validation-providers.md +113 -0
- package/dist/ai/index.md +45 -44
- package/dist/ai/recipes/inertia/approvals-inbox.md +26 -10
- package/dist/ai/recipes/inertia/command-palette.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +46 -30
- package/dist/ai/recipes/inertia/layout-scaffold.md +6 -2
- package/dist/ai/recipes/inertia/onboarding.md +30 -8
- package/dist/ai/recipes/inertia/ownership-atlas.md +72 -49
- package/dist/ai/recipes/inertia/record-form.md +53 -19
- package/dist/ai/recipes/inertia/records-workspace.md +201 -49
- package/dist/ai/recipes/inertia/settings-workspace.md +3809 -0
- package/dist/ai/recipes/inertia/upload-center.md +54 -43
- package/dist/ai/recipes/inertia/wizard-form.md +98 -14
- package/dist/ai/recipes/nuxt/approvals-inbox.md +26 -10
- package/dist/ai/recipes/nuxt/command-palette.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +68 -52
- package/dist/ai/recipes/nuxt/layout-scaffold.md +6 -2
- package/dist/ai/recipes/nuxt/onboarding.md +30 -8
- package/dist/ai/recipes/nuxt/record-form.md +66 -22
- package/dist/ai/recipes/nuxt/records-workspace.md +199 -48
- package/dist/ai/recipes/nuxt/settings-workspace.md +3898 -0
- package/dist/ai/recipes/nuxt/upload-center.md +52 -41
- package/dist/ai/recipes/nuxt/wizard-form.md +98 -14
- package/dist/ai/recipes/vue/approvals-inbox.md +28 -12
- package/dist/ai/recipes/vue/command-palette.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +69 -53
- package/dist/ai/recipes/vue/layout-scaffold.md +6 -2
- package/dist/ai/recipes/vue/onboarding.md +32 -8
- package/dist/ai/recipes/vue/record-form.md +81 -54
- package/dist/ai/recipes/vue/records-workspace.md +198 -49
- package/dist/ai/recipes/vue/settings-workspace.md +3836 -0
- package/dist/ai/recipes/vue/upload-center.md +53 -42
- package/dist/ai/recipes/vue/wizard-form.md +97 -14
- package/dist/ai/source/BbAccordion.md +90 -24
- package/dist/ai/source/BbAlert.md +209 -62
- package/dist/ai/source/BbAsterisk.md +54 -4
- package/dist/ai/source/BbAvatar.md +73 -16
- package/dist/ai/source/BbBadge.md +265 -97
- package/dist/ai/source/BbBadgeButton.md +218 -79
- package/dist/ai/source/BbBaseButton.md +108 -12
- 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 +363 -69
- package/dist/ai/source/BbButton.md +563 -174
- package/dist/ai/source/BbCalendar.md +1744 -0
- package/dist/ai/source/BbCheckbox.md +470 -68
- package/dist/ai/source/BbCheckboxGroup.md +976 -95
- package/dist/ai/source/BbCollapsible.md +96 -8
- package/dist/ai/source/BbColorInput.md +597 -67
- package/dist/ai/source/BbColorPalette.md +1284 -65
- package/dist/ai/source/BbConfirm.md +149 -7
- package/dist/ai/source/BbConfirmPortal.md +89 -3
- package/dist/ai/source/BbDatePicker.md +527 -381
- package/dist/ai/source/BbDatePickerInput.md +2015 -118
- package/dist/ai/source/BbDialog.md +531 -64
- package/dist/ai/source/BbDropdown.md +885 -175
- package/dist/ai/source/BbDropdownButton.md +377 -79
- package/dist/ai/source/BbDropdownGroup.md +687 -96
- package/dist/ai/source/BbDropzone.md +140 -31
- package/dist/ai/source/BbForm.md +875 -17
- package/dist/ai/source/BbIcon.md +130 -52
- package/dist/ai/source/BbIndicator.md +117 -60
- package/dist/ai/source/BbNumberInput.md +667 -84
- package/dist/ai/source/BbOffCanvas.md +1007 -261
- package/dist/ai/source/BbPagination.md +203 -31
- package/dist/ai/source/BbPopover.md +267 -90
- package/dist/ai/source/BbProgress.md +88 -26
- package/dist/ai/source/BbPtScope.md +54 -0
- package/dist/ai/source/BbRadio.md +388 -58
- package/dist/ai/source/BbRadioGroup.md +940 -109
- package/dist/ai/source/BbRating.md +736 -84
- package/dist/ai/source/BbSelect.md +1096 -96
- package/dist/ai/source/BbSelectPopover.md +807 -114
- package/dist/ai/source/BbSlider.md +1390 -98
- package/dist/ai/source/BbSmoothHeight.md +48 -2
- package/dist/ai/source/BbSpinner.md +62 -6
- package/dist/ai/source/BbSwitch.md +297 -60
- package/dist/ai/source/BbSwitchGroup.md +761 -83
- package/dist/ai/source/BbTable.md +6950 -1864
- package/dist/ai/source/BbTabs.md +368 -111
- package/dist/ai/source/BbTabsList.md +503 -146
- package/dist/ai/source/BbTabsPanels.md +625 -0
- package/dist/ai/source/BbTabsRoot.md +319 -100
- package/dist/ai/source/BbTag.md +796 -87
- package/dist/ai/source/BbTextInput.md +497 -68
- package/dist/ai/source/BbTextarea.md +550 -65
- package/dist/ai/source/BbTimePicker.md +395 -69
- package/dist/ai/source/BbTimePickerInput.md +1233 -106
- package/dist/ai/source/BbToast.md +250 -74
- package/dist/ai/source/BbToastPortal.md +210 -66
- package/dist/ai/source/BbTooltip.md +181 -30
- package/dist/ai/source/BbTree.md +76 -11
- package/dist/ai/source/ChipsBox.md +25 -5
- package/dist/ai/source/CommaBox.md +21 -6
- package/dist/ai/source/{BbBaseInputContainer.md → CommonField.md} +467 -250
- package/dist/ai/source/CommonFieldInput.md +848 -0
- package/dist/ai/source/CommonPopover.md +116 -30
- package/dist/ai/source/CommonTimeSelector.md +726 -0
- package/dist/ai/source/ErrorIcon.md +2 -2
- package/dist/ai/source/FlatListBox.md +188 -17
- package/dist/ai/source/GroupedListBox.md +236 -44
- package/dist/ai/source/GuidesComponent.md +14 -7
- package/dist/ai/source/ListBox.md +46 -8
- package/dist/ai/source/OptionsContainer.md +288 -60
- package/dist/ai/source/WarningIcon.md +2 -2
- package/dist/assets/css/reset.css_inline.js +1 -1
- package/dist/assets/svgs/star.svg_raw.js +4 -0
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +49 -32
- package/dist/components/BbAccordion/types.d.ts +35 -3
- package/dist/components/BbAccordion/types.js +11 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +46 -30
- package/dist/components/BbAlert/types.d.ts +37 -3
- 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 +24 -18
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +96 -53
- 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 +109 -96
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/components/BbBaseButton/types.d.ts +33 -3
- 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 +187 -132
- package/dist/components/BbBreadcrumbs/types.d.ts +45 -3
- package/dist/components/BbBreadcrumbs/types.js +12 -0
- package/dist/components/BbButton/BbButton.vue.d.ts +5 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +107 -81
- package/dist/components/BbButton/types.d.ts +113 -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 +608 -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 +225 -0
- package/dist/components/BbCalendar/types.js +29 -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 +274 -0
- package/dist/components/BbCalendar/useDayGrid.d.ts +79 -0
- package/dist/components/BbCalendar/useDayGrid.js +204 -0
- package/dist/components/BbCalendar/useToday.d.ts +23 -0
- package/dist/components/BbCalendar/useToday.js +21 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +7 -7
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +214 -72
- package/dist/components/BbCheckbox/types.d.ts +180 -13
- package/dist/components/BbCheckbox/types.js +8 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +15 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +338 -90
- package/dist/components/BbCheckboxGroup/types.d.ts +195 -20
- 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 +17 -7
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +330 -86
- package/dist/components/BbColorInput/types.d.ts +230 -12
- 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 +515 -108
- package/dist/components/BbColorPalette/types.d.ts +76 -7
- 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 +125 -76
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -0
- 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 +320 -223
- package/dist/components/BbDatePicker/types.d.ts +111 -17
- package/dist/components/BbDatePicker/types.js +33 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -4
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +1172 -87
- package/dist/components/BbDatePickerInput/types.d.ts +224 -19
- package/dist/components/BbDatePickerInput/types.js +39 -0
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +227 -136
- package/dist/components/BbDialog/types.d.ts +92 -3
- 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 +337 -268
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +5 -1
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +8 -2
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +377 -293
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +129 -118
- package/dist/components/BbDropdown/normalizeGroups.js +55 -31
- package/dist/components/BbDropdown/types.d.ts +288 -30
- package/dist/components/BbDropdown/types.js +21 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +10 -4
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +18 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +172 -40
- package/dist/components/BbDropdownButton/types.d.ts +137 -8
- package/dist/components/BbDropdownButton/types.js +35 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +2 -2
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +186 -144
- package/dist/components/BbDropzone/types.d.ts +38 -4
- package/dist/components/BbDropzone/types.js +16 -0
- package/dist/components/BbForm/BbForm.vue.d.ts +94 -0
- package/dist/{validated → components/BbForm}/BbForm.vue.js +1 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +317 -0
- package/dist/components/BbForm/BbFormCustomField.d.ts +14 -0
- package/dist/components/BbForm/BbFormCustomField.js +43 -0
- package/dist/components/BbForm/bindFormField.d.ts +16 -0
- package/dist/components/BbForm/bindFormField.js +85 -0
- package/dist/components/BbForm/formFields.d.ts +64 -0
- package/dist/components/BbForm/formFields.js +11 -0
- package/dist/components/BbForm/formSchema.d.ts +56 -0
- package/dist/components/BbForm/formSchema.js +196 -0
- package/dist/components/BbForm/standardSchema.d.ts +59 -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 +34 -21
- 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 +12 -8
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +308 -85
- package/dist/components/BbNumberInput/types.d.ts +201 -18
- package/dist/components/BbNumberInput/types.js +8 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +311 -210
- package/dist/components/BbOffCanvas/types.d.ts +79 -6
- package/dist/components/BbOffCanvas/types.js +15 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +125 -90
- package/dist/components/BbPagination/types.d.ts +38 -0
- package/dist/components/BbPagination/types.js +13 -0
- package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +219 -179
- package/dist/components/BbPopover/types.d.ts +51 -5
- package/dist/components/BbPopover/types.js +14 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +29 -16
- package/dist/components/BbProgress/types.d.ts +25 -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 +7 -7
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +172 -59
- package/dist/components/BbRadio/types.d.ts +152 -13
- package/dist/components/BbRadio/types.js +8 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +14 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +319 -92
- package/dist/components/BbRadioGroup/types.d.ts +198 -22
- package/dist/components/BbRadioGroup/types.js +10 -0
- package/dist/components/BbRating/BbRating.vue.d.ts +10 -8
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +259 -78
- package/dist/components/BbRating/types.d.ts +174 -13
- package/dist/components/BbRating/types.js +21 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -3
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +553 -83
- package/dist/components/BbSelect/types.d.ts +235 -20
- package/dist/components/BbSelect/types.js +41 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +15 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +541 -391
- package/dist/components/BbSelectPopover/types.d.ts +124 -8
- package/dist/components/BbSelectPopover/types.js +24 -0
- package/dist/components/BbSlider/BbSlider.vue.d.ts +13 -8
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +472 -96
- package/dist/components/BbSlider/types.d.ts +202 -13
- package/dist/components/BbSlider/types.js +26 -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 +7 -7
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +220 -78
- 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 +14 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +338 -90
- package/dist/components/BbSwitchGroup/types.d.ts +30 -7
- package/dist/components/BbSwitchGroup/types.js +5 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +27 -6
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +2013 -685
- package/dist/components/BbTable/BbTableDataRow.d.ts +196 -0
- package/dist/components/BbTable/BbTableDataRow.js +151 -0
- package/dist/components/BbTable/BbTableExpandRow.d.ts +84 -0
- package/dist/components/BbTable/BbTableExpandRow.js +62 -0
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +120 -0
- package/dist/components/BbTable/BbTableSelectToggle.js +122 -0
- package/dist/components/BbTable/gridWidgets.d.ts +30 -0
- package/dist/components/BbTable/gridWidgets.js +14 -0
- package/dist/components/BbTable/types.d.ts +473 -123
- package/dist/components/BbTable/types.js +31 -0
- package/dist/components/BbTable/utils.d.ts +145 -4
- package/dist/components/BbTable/utils.js +154 -37
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -1
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +62 -26
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -10
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +143 -81
- package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +12 -0
- package/dist/components/{BbBaseSwitch/BbBaseSwitch.vue.js → BbTabs/BbTabsPanels.vue.js} +2 -2
- package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +3 -1
- package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbTabs/types.d.ts +183 -23
- package/dist/components/BbTabs/types.js +34 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +13 -10
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +383 -92
- package/dist/components/BbTag/types.d.ts +139 -14
- package/dist/components/BbTag/types.js +22 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -8
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +257 -84
- package/dist/components/BbTextInput/types.d.ts +168 -13
- package/dist/components/BbTextInput/types.js +8 -0
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +7 -7
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +291 -94
- package/dist/components/BbTextarea/types.d.ts +158 -14
- package/dist/components/BbTextarea/types.js +8 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -4
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +199 -122
- package/dist/components/BbTimePicker/types.d.ts +94 -7
- package/dist/components/BbTimePicker/types.js +18 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +14 -4
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +749 -86
- package/dist/components/BbTimePickerInput/types.d.ts +171 -22
- package/dist/components/BbTimePickerInput/types.js +25 -0
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +63 -25
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +4 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -76
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -0
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +4 -1
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +72 -64
- package/dist/components/BbToast/types.d.ts +54 -1
- package/dist/components/BbToast/types.js +28 -0
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +104 -87
- 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 +15 -3
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +51 -29
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +17 -16
- package/dist/components/BbTree/context.d.ts +9 -1
- package/dist/components/BbTree/types.d.ts +40 -5
- package/dist/components/BbTree/types.js +7 -0
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +46 -44
- package/dist/components/ChipsBox/types.d.ts +7 -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 +7 -0
- package/dist/components/{BbBaseInputContainer/BbBaseInputContainer.vue.d.ts → CommonField/CommonField.vue.d.ts} +5 -5
- 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 +189 -0
- package/dist/components/CommonField/messageHeightMatrix.d.ts +2 -0
- package/dist/components/{BbBaseInputContainer → CommonField}/types.d.ts +52 -16
- 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 +120 -0
- package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +10 -0
- package/dist/components/{CommonInputWrapper → CommonFieldInput}/types.d.ts +27 -8
- 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} +21 -2
- 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 +232 -0
- package/dist/components/CommonTimeSelector/types.d.ts +6 -0
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +5 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +165 -95
- package/dist/components/FlatListBox/types.d.ts +24 -2
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +5 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +217 -134
- package/dist/components/GroupedListBox/types.d.ts +24 -2
- package/dist/components/ListBox/ListBox.vue.d.ts +5 -1
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +95 -69
- package/dist/components/ListBox/types.d.ts +24 -2
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +109 -37
- package/dist/components/OptionsContainer/types.d.ts +53 -9
- package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/Transitions/Slide.vue.js +1 -1
- package/dist/composables/useBaseOptions.d.ts +12 -1
- package/dist/composables/useBaseOptions.js +77 -37
- 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/useBbFormContext.d.ts +131 -8
- package/dist/composables/useBbFormContext.js +49 -30
- package/dist/composables/useBbFormField.d.ts +40 -0
- package/dist/composables/useBbFormField.js +39 -0
- package/dist/composables/useBbTableContext.d.ts +45 -1
- package/dist/composables/useBbTableContext.js +93 -87
- package/dist/composables/useBbTabsContext.d.ts +15 -9
- package/dist/composables/useBbTabsContext.js +121 -90
- package/dist/composables/useClosingInert.d.ts +4 -4
- package/dist/composables/useCoarsePointer.js +7 -10
- package/dist/composables/useCoherence.js +1 -1
- package/dist/composables/useConfig.d.ts +59 -0
- package/dist/composables/useConfig.js +15 -0
- package/dist/composables/useConfirm.d.ts +39 -7
- package/dist/composables/useConfirm.js +50 -41
- package/dist/composables/useEscapeStackEntry.d.ts +13 -0
- package/dist/composables/useEscapeStackEntry.js +16 -0
- package/dist/composables/useFormBinding.d.ts +116 -0
- package/dist/composables/useFormBinding.js +34 -0
- package/dist/composables/useHydrated.d.ts +18 -0
- package/dist/composables/useHydrated.js +13 -7
- package/dist/composables/useId.d.ts +4 -3
- package/dist/composables/useId.js +1 -7
- package/dist/composables/useItemsGetter.d.ts +11 -0
- package/dist/composables/useItemsGetter.js +44 -18
- package/dist/composables/useKeyboardInset.d.ts +28 -0
- package/dist/composables/useKeyboardInset.js +32 -0
- package/dist/composables/useLocale.js +10 -7
- package/dist/composables/useMobile.js +7 -10
- package/dist/composables/usePassthrough.d.ts +228 -0
- package/dist/composables/usePassthrough.js +247 -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 +31 -18
- package/dist/composables/useToggleInput.d.ts +44 -0
- package/dist/composables/useToggleInput.js +39 -0
- package/dist/composables/useViewportWidth.d.ts +5 -25
- package/dist/composables/useViewportWidth.js +14 -7
- package/dist/deprecation/ai-deprecations.json.d.ts +1977 -289
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.js +9 -4
- package/dist/directives/bbDropdown.d.ts +15 -4
- package/dist/directives/bbDropdown.js +31 -9
- package/dist/directives/bbTooltip.d.ts +6 -0
- package/dist/directives/createPopoverDirective.d.ts +62 -0
- package/dist/directives/createPopoverDirective.js +92 -37
- package/dist/i18n/index.d.ts +10 -16
- package/dist/i18n/locales/cs.json +9 -5
- package/dist/i18n/locales/da.json +9 -5
- package/dist/i18n/locales/de.json +9 -5
- package/dist/i18n/locales/el.json +9 -5
- package/dist/i18n/locales/en.json +9 -5
- package/dist/i18n/locales/es.json +9 -5
- package/dist/i18n/locales/fi.json +9 -5
- package/dist/i18n/locales/fr.json +9 -5
- package/dist/i18n/locales/hu.json +9 -5
- package/dist/i18n/locales/it.json +9 -5
- package/dist/i18n/locales/ja.json +9 -5
- package/dist/i18n/locales/ko.json +9 -5
- package/dist/i18n/locales/nb.json +9 -5
- package/dist/i18n/locales/nl.json +9 -5
- package/dist/i18n/locales/pl.json +9 -5
- package/dist/i18n/locales/pt.json +9 -5
- package/dist/i18n/locales/ro.json +9 -5
- package/dist/i18n/locales/ru.json +9 -5
- package/dist/i18n/locales/sv.json +9 -5
- package/dist/i18n/locales/tr.json +9 -5
- package/dist/i18n/locales/uk.json +9 -5
- package/dist/i18n/locales/zh-cn.json +9 -5
- 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 +40 -21
- package/dist/index.js +78 -71
- package/dist/llms-full.txt +61164 -27972
- package/dist/llms-medium.txt +1482 -366
- package/dist/llms.txt +32 -15
- package/dist/locale-blueprint.json +9 -5
- package/dist/nuxt-auto-imports.d.ts +76 -0
- package/dist/nuxt-auto-imports.js +32 -0
- package/dist/nuxt-module.d.ts +30 -15
- package/dist/nuxt.js +35 -9
- package/dist/passthrough-deduper.js +5 -0
- package/dist/plugin.d.ts +10 -1
- package/dist/plugin.js +29 -19
- package/dist/project-dts.d.ts +84 -0
- package/dist/project-dts.js +170 -0
- package/dist/reset.css +1 -1
- package/dist/runtime/nuxt-plugin.js +34 -21
- package/dist/styles.css +3 -2
- package/dist/types/AlertVariant.d.ts +10 -1
- package/dist/types/BadgeVariant.d.ts +16 -5
- package/dist/types/ButtonVariant.d.ts +12 -1
- package/dist/types/ColumnName.d.ts +30 -3
- package/dist/types/CommonProps.d.ts +2 -2
- package/dist/types/Config.d.ts +94 -1
- package/dist/types/ConfirmVariant.d.ts +8 -1
- package/dist/types/DropdownItemVariant.d.ts +8 -1
- package/dist/types/FieldLayout.d.ts +32 -0
- package/dist/types/IndicatorVariant.d.ts +11 -1
- package/dist/types/InputVariant.d.ts +30 -0
- package/dist/types/ItemProps.d.ts +50 -0
- package/dist/types/Option.d.ts +6 -0
- package/dist/types/PtScope.d.ts +15 -0
- package/dist/types/RegistryKey.d.ts +10 -0
- package/dist/types/TabsVariant.d.ts +25 -0
- package/dist/types/ToastVariant.d.ts +12 -2
- package/dist/types/TooltipVariant.d.ts +8 -1
- package/dist/types/passthrough.d.ts +362 -0
- package/dist/types/passthrough.js +78 -0
- package/dist/types/ptComponentMap.d.ts +62 -0
- package/dist/utilities/functions/hasVnodeListener.d.ts +16 -0
- package/dist/utilities/functions/hasVnodeListener.js +12 -0
- package/dist/utilities/functions/isImeComposing.d.ts +7 -0
- package/dist/utilities/functions/isImeComposing.js +4 -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 +13 -8
- package/dist/utilities/functions/slotKey.js +78 -2
- package/dist/utilities/functions/snapToStep.js +2 -1
- package/dist/utilities/functions/toggleInput.d.ts +98 -0
- package/dist/utilities/functions/toggleInput.js +56 -0
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +27 -1
- package/dist/utilities/functions/warnRemovedAttrs.js +75 -14
- 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/overlayEscapeStack.d.ts +10 -0
- package/dist/utils/overlayEscapeStack.js +5 -3
- package/dist/utils/passthrough.d.ts +67 -0
- package/dist/utils/passthrough.js +100 -0
- package/dist/utils/passthroughDeduper.d.ts +2 -0
- package/dist/utils/ptScope.d.ts +8 -0
- package/dist/utils/ptScope.js +4 -0
- package/dist/utils/versionCheck.d.ts +19 -0
- package/dist/utils/versionCheck.js +18 -0
- package/dist/vite-plugin.d.ts +301 -53
- package/dist/vite.js +547 -375
- package/llms.txt +33 -16
- package/package.json +49 -27
- package/scripts/lib/check-fix.mjs +129 -0
- package/scripts/lib/component-attr-targets.ts +123 -0
- package/scripts/lib/component-tree.ts +648 -0
- package/scripts/lib/css-class-check.mjs +326 -0
- package/scripts/lib/css-class-surface.mjs +292 -0
- package/scripts/lib/css-color-resolve.mjs +172 -0
- package/scripts/lib/css-local-check.mjs +267 -0
- package/scripts/lib/design-token-manifest.mjs +499 -0
- package/scripts/lib/doc-sections.mjs +248 -0
- package/scripts/lib/ensure-manifest.mjs +28 -5
- package/scripts/lib/eslint-disable.mjs +141 -0
- package/scripts/lib/eslint-plugin.d.ts +64 -1
- package/scripts/lib/eslint-plugin.mjs +1285 -30
- package/scripts/lib/hand-imported-styles.mjs +326 -0
- package/scripts/lib/hand-roll-hints.mjs +50 -6
- package/scripts/lib/html-attributes.mjs +353 -0
- package/scripts/lib/local-components.mjs +177 -0
- package/scripts/lib/mcp-config.mjs +87 -58
- package/scripts/lib/migrate-fix.mjs +62 -3
- package/scripts/lib/project-variant-dts.mjs +122 -0
- package/scripts/lib/public-type-exports.mjs +273 -0
- package/scripts/lib/slot-key.mjs +147 -0
- package/scripts/lib/slot-renames.mjs +46 -0
- package/scripts/lib/squashed-slot-words.mjs +133 -0
- package/scripts/lib/validate-bb-markup.mjs +2213 -76
- package/scripts/lib/wrapper-props.mjs +188 -0
- 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/BbBaseInputContainer.md +0 -48
- 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/BbTabsPanes.md +0 -27
- 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/BbTabsPanes.md +0 -377
- package/dist/ai/source/CommonInputWrapper.md +0 -584
- package/dist/alert-variants.d.ts +0 -19
- package/dist/assets/svgs/sort.svg_raw.js +0 -4
- package/dist/badge-variants.d.ts +0 -19
- package/dist/button-variants.d.ts +0 -21
- 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_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/BbTabs/BbTabsPanes.vue.d.ts +0 -16
- package/dist/components/BbTabs/BbTabsPanes.vue.js +0 -6
- package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +0 -35
- 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/confirm-variants.d.ts +0 -17
- package/dist/dropdown-item-variants.d.ts +0 -17
- package/dist/indicator-variants.d.ts +0 -20
- package/dist/locale-registry.d.ts +0 -37
- package/dist/toast-variants.d.ts +0 -20
- package/dist/tooltip-variants.d.ts +0 -17
- package/dist/types/InputDirection.d.ts +0 -15
- package/dist/validated/BbCheckbox.vue.d.ts +0 -29
- package/dist/validated/BbCheckbox.vue.js +0 -5
- package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +0 -75
- package/dist/validated/BbCheckboxGroup.vue.d.ts +0 -34
- package/dist/validated/BbCheckboxGroup.vue.js +0 -5
- package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -82
- package/dist/validated/BbColorInput.vue.d.ts +0 -37
- package/dist/validated/BbColorInput.vue.js +0 -5
- package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +0 -75
- package/dist/validated/BbDatePickerInput.vue.d.ts +0 -41
- package/dist/validated/BbDatePickerInput.vue.js +0 -5
- package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -90
- package/dist/validated/BbDropzone.vue.d.ts +0 -24
- package/dist/validated/BbDropzone.vue.js +0 -5
- package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/validated/BbForm.vue.d.ts +0 -28
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +0 -42
- package/dist/validated/BbNumberInput.vue.d.ts +0 -36
- package/dist/validated/BbNumberInput.vue.js +0 -5
- package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/validated/BbRadioGroup.vue.d.ts +0 -34
- package/dist/validated/BbRadioGroup.vue.js +0 -5
- package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -78
- package/dist/validated/BbRating.vue.d.ts +0 -30
- package/dist/validated/BbRating.vue.js +0 -5
- package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/validated/BbSelect.vue.d.ts +0 -46
- package/dist/validated/BbSelect.vue.js +0 -5
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +0 -109
- package/dist/validated/BbSlider.vue.d.ts +0 -36
- package/dist/validated/BbSlider.vue.js +0 -5
- package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +0 -69
- package/dist/validated/BbSwitch.vue.d.ts +0 -29
- package/dist/validated/BbSwitch.vue.js +0 -5
- package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +0 -75
- package/dist/validated/BbSwitchGroup.vue.d.ts +0 -34
- package/dist/validated/BbSwitchGroup.vue.js +0 -5
- package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -82
- package/dist/validated/BbTag.vue.d.ts +0 -36
- package/dist/validated/BbTag.vue.js +0 -5
- package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/validated/BbTextInput.vue.d.ts +0 -36
- package/dist/validated/BbTextInput.vue.js +0 -5
- package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/validated/BbTextarea.vue.d.ts +0 -36
- package/dist/validated/BbTextarea.vue.js +0 -5
- package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +0 -70
- package/dist/validated/BbTimePickerInput.vue.d.ts +0 -37
- package/dist/validated/BbTimePickerInput.vue.js +0 -5
- package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -81
- package/dist/validated/index.d.ts +0 -43
- package/dist/validated/useValidatedField.d.ts +0 -93
- package/dist/validated/useValidatedField.js +0 -51
- package/dist/validated.js +0 -21
- /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
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# Generated from src/assets/css/variables.css by scripts/lib/design-token-manifest.mjs.
|
|
2
|
+
# Do not edit by hand. fixtures/inertia/DESIGN.md is the Inertia fixture, not this file.
|
|
3
|
+
name: "bitboss-ui"
|
|
4
|
+
description: "Library theme surface (--bb-*). Not a consumer DESIGN.md and not the Inertia fixture DESIGN.md (fixtures/inertia/DESIGN.md)."
|
|
5
|
+
colors:
|
|
6
|
+
primary: "#000000"
|
|
7
|
+
primary-fg: "#ffffff"
|
|
8
|
+
primary-border: "#000000"
|
|
9
|
+
danger: "#d93b30"
|
|
10
|
+
danger-fg: "#ffffff"
|
|
11
|
+
success: "#15803d"
|
|
12
|
+
success-fg: "#ffffff"
|
|
13
|
+
info: "#2563eb"
|
|
14
|
+
info-fg: "#ffffff"
|
|
15
|
+
warn: "#f08358"
|
|
16
|
+
text-warn: "#b45309"
|
|
17
|
+
warn-fg: "#ffffff"
|
|
18
|
+
panel: "#ffffff"
|
|
19
|
+
text: "#000000"
|
|
20
|
+
border: "#d4d4d8"
|
|
21
|
+
overlay: "#0000001a"
|
|
22
|
+
link: "#000000"
|
|
23
|
+
muted: "#ebebeb"
|
|
24
|
+
track: "#cecece"
|
|
25
|
+
hover: "#f2f2f2"
|
|
26
|
+
surface-hover: "#f8f8f8"
|
|
27
|
+
pressed: "#e4e4e4"
|
|
28
|
+
text-muted: "#00000099"
|
|
29
|
+
text-faint: "#00000073"
|
|
30
|
+
secondary: "#f2f2f2"
|
|
31
|
+
secondary-fg: "#000000"
|
|
32
|
+
destructive: "#fff0ee"
|
|
33
|
+
destructive-fg: "#d93b30"
|
|
34
|
+
outline: "#00000000"
|
|
35
|
+
outline-fg: "#000000"
|
|
36
|
+
ghost: "#00000000"
|
|
37
|
+
ghost-fg: "#000000"
|
|
38
|
+
dark:
|
|
39
|
+
colors:
|
|
40
|
+
primary: "#ffffff"
|
|
41
|
+
primary-fg: "#000000"
|
|
42
|
+
primary-border: "#ffffff"
|
|
43
|
+
danger: "#fb7185"
|
|
44
|
+
danger-fg: "#000000"
|
|
45
|
+
success: "#15803d"
|
|
46
|
+
success-fg: "#ffffff"
|
|
47
|
+
info: "#2563eb"
|
|
48
|
+
info-fg: "#ffffff"
|
|
49
|
+
warn: "#f59e0b"
|
|
50
|
+
text-warn: "#f59e0b"
|
|
51
|
+
warn-fg: "#ffffff"
|
|
52
|
+
panel: "#313638"
|
|
53
|
+
text: "#ffffff"
|
|
54
|
+
border: "#52525b"
|
|
55
|
+
overlay: "#00000080"
|
|
56
|
+
link: "#ffffff"
|
|
57
|
+
muted: "#3c4042"
|
|
58
|
+
track: "#4c5052"
|
|
59
|
+
hover: "#383d3f"
|
|
60
|
+
surface-hover: "#34393b"
|
|
61
|
+
pressed: "#3f4446"
|
|
62
|
+
text-muted: "#ffffff99"
|
|
63
|
+
text-faint: "#ffffff73"
|
|
64
|
+
secondary: "#383d3f"
|
|
65
|
+
secondary-fg: "#ffffff"
|
|
66
|
+
destructive: "#413b3e"
|
|
67
|
+
destructive-fg: "#fb7185"
|
|
68
|
+
outline: "#00000000"
|
|
69
|
+
outline-fg: "#ffffff"
|
|
70
|
+
ghost: "#00000000"
|
|
71
|
+
ghost-fg: "#ffffff"
|
|
72
|
+
typography:
|
|
73
|
+
ui:
|
|
74
|
+
fontSize: "14px"
|
|
75
|
+
fontWeight: 400
|
|
76
|
+
lineHeight: "calc(var(--bb-input-fs) * 1.5)"
|
|
77
|
+
label:
|
|
78
|
+
fontSize: "var(--bb-fs)"
|
|
79
|
+
fontWeight: 500
|
|
80
|
+
label-sm:
|
|
81
|
+
fontSize: "calc(var(--bb-fs) - 2px)"
|
|
82
|
+
fontWeight: 500
|
|
83
|
+
rounded:
|
|
84
|
+
control: "8px"
|
|
85
|
+
sm: "min(var(--bb-radius), max(4px, calc(var(--bb-radius) * 0.6)))"
|
|
86
|
+
surface: "calc(var(--bb-radius) * 1.8)"
|
|
87
|
+
spacing:
|
|
88
|
+
control-h: "32px"
|
|
89
|
+
panel: "16px"
|
|
90
|
+
input-px: "8px"
|
|
91
|
+
input-py: "3px"
|
|
92
|
+
input-spacing: "8px"
|
|
93
|
+
label-y: "6px"
|
|
94
|
+
label-x: "8px"
|
|
95
|
+
border-w: "1px"
|
|
96
|
+
ring-size: "2px"
|
|
97
|
+
shadow:
|
|
98
|
+
overlay: "0 2px 4px rgb(0 0 0 / 0.08), 0 4px 10px rgb(0 0 0 / 0.1)"
|
|
99
|
+
overlay-sm: "0 1px 2px 0 rgb(0 0 0 / 0.06), 0 1px 3px 0 rgb(0 0 0 / 0.08)"
|
|
100
|
+
elev: "0 0 0 0 transparent"
|
|
101
|
+
components:
|
|
102
|
+
button-primary:
|
|
103
|
+
backgroundColor: "{colors.primary}"
|
|
104
|
+
textColor: "{colors.primary-fg}"
|
|
105
|
+
rounded: "{rounded.control}"
|
|
106
|
+
height: "calc(var(--bb-control-h) - 4px)"
|
|
107
|
+
button-outline:
|
|
108
|
+
backgroundColor: "{colors.outline}"
|
|
109
|
+
textColor: "{colors.outline-fg}"
|
|
110
|
+
rounded: "{rounded.control}"
|
|
111
|
+
height: "calc(var(--bb-control-h) - 4px)"
|
|
112
|
+
button-secondary:
|
|
113
|
+
backgroundColor: "{colors.secondary}"
|
|
114
|
+
textColor: "{colors.secondary-fg}"
|
|
115
|
+
rounded: "{rounded.control}"
|
|
116
|
+
height: "calc(var(--bb-control-h) - 4px)"
|
|
117
|
+
button-ghost:
|
|
118
|
+
backgroundColor: "{colors.ghost}"
|
|
119
|
+
textColor: "{colors.ghost-fg}"
|
|
120
|
+
rounded: "{rounded.control}"
|
|
121
|
+
height: "calc(var(--bb-control-h) - 4px)"
|
|
122
|
+
button-destructive:
|
|
123
|
+
backgroundColor: "{colors.destructive}"
|
|
124
|
+
textColor: "{colors.destructive-fg}"
|
|
125
|
+
rounded: "{rounded.control}"
|
|
126
|
+
height: "calc(var(--bb-control-h) - 4px)"
|
|
127
|
+
button-link:
|
|
128
|
+
backgroundColor: "transparent"
|
|
129
|
+
textColor: "{colors.link}"
|
|
130
|
+
height: "calc(var(--bb-control-h) - 4px)"
|
|
131
|
+
badge-primary:
|
|
132
|
+
backgroundColor: "{colors.primary}"
|
|
133
|
+
textColor: "{colors.primary-fg}"
|
|
134
|
+
rounded: "{rounded.control}"
|
|
135
|
+
badge-secondary:
|
|
136
|
+
backgroundColor: "{colors.secondary}"
|
|
137
|
+
textColor: "{colors.secondary-fg}"
|
|
138
|
+
rounded: "{rounded.control}"
|
|
139
|
+
badge-destructive:
|
|
140
|
+
backgroundColor: "{colors.destructive}"
|
|
141
|
+
textColor: "{colors.destructive-fg}"
|
|
142
|
+
rounded: "{rounded.control}"
|
|
143
|
+
badge-outline:
|
|
144
|
+
backgroundColor: "{colors.outline}"
|
|
145
|
+
textColor: "{colors.outline-fg}"
|
|
146
|
+
rounded: "{rounded.control}"
|
|
147
|
+
alert-outline:
|
|
148
|
+
backgroundColor: "{colors.panel}"
|
|
149
|
+
textColor: "{colors.text}"
|
|
150
|
+
rounded: "{rounded.surface}"
|
|
151
|
+
padding: "{spacing.panel}"
|
|
152
|
+
alert-primary:
|
|
153
|
+
backgroundColor: "{colors.primary}"
|
|
154
|
+
textColor: "{colors.primary-fg}"
|
|
155
|
+
rounded: "{rounded.surface}"
|
|
156
|
+
padding: "{spacing.panel}"
|
|
157
|
+
alert-destructive:
|
|
158
|
+
backgroundColor: "{colors.destructive}"
|
|
159
|
+
textColor: "{colors.destructive-fg}"
|
|
160
|
+
rounded: "{rounded.surface}"
|
|
161
|
+
padding: "{spacing.panel}"
|
|
162
|
+
meta:
|
|
163
|
+
cssPrefix: "--bb-"
|
|
164
|
+
source: "src/assets/css/variables.css"
|
|
165
|
+
grep: "Search --bb-*. Do not search --color-, --radius-, --font-, --spacing-, or --shadow-."
|
|
166
|
+
notLibraryDesign: "fixtures/inertia/DESIGN.md is the Inertia fixture visual world. Do not use it as the bitboss-ui theme."
|
|
167
|
+
registries:
|
|
168
|
+
button: [primary, outline, secondary, ghost, destructive, link]
|
|
169
|
+
badge: [primary, secondary, destructive, outline]
|
|
170
|
+
alert: [outline, primary, destructive, warning]
|
|
171
|
+
exceptions:
|
|
172
|
+
alert-warning: "BbAlert warning fill is a hardcoded plate (#fffbea / #2a2112), not --bb-warn. --bb-warn is chrome and indicator paint."
|
|
173
|
+
badge-ghost: "BbBadge has no ghost variant. ghost is a button and input variant only."
|
|
174
|
+
fontFamily: "The library does not ship a font token. Typography in the manifest is size and weight only."
|
|
175
|
+
primaryFgWhenSupported: "contrast-color(var(--bb-primary))"
|
|
@@ -7,11 +7,44 @@ summary: Mandatory rules for AI agents using bitboss-ui in consumer projects.
|
|
|
7
7
|
|
|
8
8
|
Use this contract before generating any UI code with `bitboss-ui`.
|
|
9
9
|
|
|
10
|
+
## Coming from another library
|
|
11
|
+
|
|
12
|
+
The names agents guess most often, and the real ones. There are no aliases:
|
|
13
|
+
a guessed name is an error (`npx bitboss-ui check` or `vue-tsc` says so).
|
|
14
|
+
|
|
15
|
+
| You'd guess | bitboss-ui |
|
|
16
|
+
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| `toast.success('Saved')`, `{ message }`, `{ description }`, `type` | `const { toast } = useToast(); toast({ title, text, variant: 'success' })`; variants `default` `success` `info` `warning` `destructive` |
|
|
18
|
+
| `<BbToastStack>`, a toaster per page | one `<BbToast />` (and one `<BbConfirm />` for `useConfirm`) at the app root |
|
|
19
|
+
| BbDialog `v-model:open`, `:open` | `v-model` (a boolean) |
|
|
20
|
+
| BbDialog `@close`, `@confirm`, `@cancel`, `#actions` | `@hide` (closing starts) / `@hidden` (closed); your own buttons in `#footer="{ close }"` |
|
|
21
|
+
| BbTable `sortable`, `v-model:sorted`, `sort-order`, `@sort` | `sortable: true` per column + `v-model:sort` (a `BbTableSortEntry[]`, `[key, 'asc' \| 'desc']`); the table never sorts: you do |
|
|
22
|
+
| `@row-click`, `@row:click` | `@click:row="(event, item) => …"` |
|
|
23
|
+
| `row-key` | `item-value` |
|
|
24
|
+
| column `title`, `header` | column `label` |
|
|
25
|
+
| `#cell:createdAt`, `#createdAt`, `{ row }` | `#<key>` in kebab-case (`createdAt` → `#created-at`), scope `{ item, value }` |
|
|
26
|
+
| a column keyed `actions` | reserved: the `#actions="{ item }"` slot creates the actions column |
|
|
27
|
+
| BbPagination `current-page`, `v-model:page`, `page-size` | `v-model` (the 1-based page) + `per-page` + `total-items` (or `total-pages`) |
|
|
28
|
+
| `BbDateInput` | `BbDatePickerInput` |
|
|
29
|
+
| `<BbDropdownItem>`, `<BbTableColumn>` | types, not components: rows are `items` objects (`{ key, text, onClick }`), columns are `columns` objects |
|
|
30
|
+
| BbDropdown `#trigger`, `#button` | `#activator="{ props }"`, spread `v-bind="props"` on your button |
|
|
31
|
+
| a menu row's click via `@select` / `@item:selected` | the item's `onClick` (or `href` / `to`); `@item:selected` fires only for `selectable` groups |
|
|
32
|
+
| `icon` on BbTextInput / BbDropdownButton, `#icon` on BbButton | `prepend:icon` / `append:icon`; BbButton's `icon` is the icon-only button |
|
|
33
|
+
| badge `success` / `warning` / `info` / `danger` | built-ins `primary` `secondary` `destructive` `outline`; register more (§ Variants Rule) |
|
|
34
|
+
| BbBadge `text` / `label` prop | the default slot: `<BbBadge>Paid</BbBadge>` |
|
|
35
|
+
| BbSelect `searchable` | search is on by default; `disable-writing` hides it; `multiple` for a multi-select |
|
|
36
|
+
| a native `<input>` in a filter bar (to skip the label) | `<BbTextInput label="Search" hide-label />`: the label stays for screen readers |
|
|
37
|
+
| `--bb-text-secondary` | `--bb-text-muted` |
|
|
38
|
+
| a 422 through each field's `errors` prop | inside `BbForm`: `setErrors(errors)` ([validated-forms § 4](./validated-forms.md#4-server-errors-seterrors-fields-unmatchederrors)) |
|
|
39
|
+
|
|
10
40
|
## Default API Boundary
|
|
11
41
|
|
|
12
42
|
1. Prefer `Bb*` components in consumer-facing code.
|
|
13
|
-
2. Treat
|
|
43
|
+
2. Treat internal building blocks (`Common*`, listbox internals) as reference-only. The `BbBase*` names that remain are public: **`BbBaseButton`** is a first-class consumer component — the unstyled navigable primitive for any clickable surface (cards, rows, custom links) that isn't a variant-first `BbButton` — and `BbBaseCheckboxIcon` / `BbBaseRadioIcon` / `BbBaseSwitchIcon` are presentational glyphs for custom toggle designs.
|
|
14
44
|
3. Use the other reference-only components only when the user explicitly asks for internal composition details.
|
|
45
|
+
4. **Not every `Bb*` export is a component.** `BbTableColumn`, `BbDropdownItem`, `BbTabsItem` and `BbBreadcrumbsItem` are TYPES: they describe the objects you pass to a prop (`columns`, `items`), and they never render. Import one with `import type { … } from 'bitboss-ui'`; writing `<BbTableColumn>` is always wrong. The `types` array in `components.json` lists every one with the prop it belongs to, and `npx bitboss-ui check` says so by name if you slip.
|
|
46
|
+
5. **Two dozen of those types are the ones to reach for.** Each carries a `usage` tier: `api` means it appears in a component's own props or events, so it is what you annotate the value you build — `get_component` returns the list for the component you asked about. `wrapper` (`BbButtonProps` / `BbButtonEvents` / `BbButtonSlots` and siblings) is only for wrapping one of our components in one of yours, and `advanced` is everything left over — contexts, directive values, config shapes, the `…VariantType` unions. The tier is decided by that one rule and nothing else, so do not sort by what a name sounds like: `AlertVariantRegistry` reads like a registry but is `api`, because `BbAlert`'s `variant` prop is typed by it. Only `api` entries carry `usedBy`; if a type has one, it is `api`. Types the library does NOT export are that way on purpose: a size or a trigger is a string literal you write directly (`size="lg"`), so there is no name to import and none is missing.
|
|
47
|
+
6. **Never name your own components `Bb…` —** that prefix is bitboss-ui's. Use your app's prefix (`App…`, `Acme…`). `bitboss-ui check` leaves an app's own `Bb*` component alone (a local import, or a `.vue` in the app's `components/`), but warns: a future bitboss-ui component could take the name.
|
|
15
48
|
|
|
16
49
|
## Setup-First Rule
|
|
17
50
|
|
|
@@ -20,18 +53,45 @@ Before writing component usage code, verify:
|
|
|
20
53
|
- `bitboss-ui` is installed;
|
|
21
54
|
- the build plugin is configured (`bitboss-ui/vite` in Vite/Inertia apps, `bitboss-ui/nuxt` in Nuxt apps) — it serves the `virtual:bitboss-ui/icons` and `virtual:bitboss-ui/config` modules;
|
|
22
55
|
- the runtime plugin is installed (`app.use(bitbossUiPlugin)`; the Nuxt module does this for you), which injects `bitboss-ui/styles.css` unless `injectStyles: false`.
|
|
23
|
-
- **the plugin's `locale` option is set, if the app is not
|
|
24
|
-
**defaults to `'
|
|
25
|
-
labels on the date/time pickers,
|
|
26
|
-
labels, and more) ships
|
|
27
|
-
no build-time warning for an
|
|
28
|
-
|
|
29
|
-
`vite.config.*` / `nuxt.config.*`, and if the app switches locale at
|
|
56
|
+
- **the plugin's `locale` option is set, if the app is not English.** It
|
|
57
|
+
**defaults to `'en'`** (since 3.0.0-beta.41; it was `'it'`) — every built-in
|
|
58
|
+
string (date formats and per-segment labels on the date/time pickers,
|
|
59
|
+
select-all text, `useConfirm`'s OK/Cancel labels, and more) ships English
|
|
60
|
+
until `locale` is set explicitly. There is no build-time warning for an
|
|
61
|
+
unset `locale`, only for an unknown one. Set `locale: 'it'` (or the target
|
|
62
|
+
locale) in `vite.config.*` / `nuxt.config.*`, and if the app switches locale at
|
|
30
63
|
runtime, list every locale it can switch to in `enabledLocales` up front —
|
|
31
64
|
narrowing `locale` alone narrows the bundle and makes any other locale a
|
|
32
65
|
compile error at `useBbConfig().setConfig({ locale })`. Details:
|
|
33
66
|
[Installation and Plugin Setup](./installation-and-plugin-setup.md) §
|
|
34
67
|
`locale`.
|
|
68
|
+
- **Tailwind v4: `cssLayers: TAILWIND_V4_LAYERS` is set in the build plugin.**
|
|
69
|
+
Do it when you install bitboss-ui, not after a class "doesn't work".
|
|
70
|
+
Tailwind v4 puts its utilities in `@layer utilities`, and the cascade ranks
|
|
71
|
+
unlayered CSS above every layered rule whatever the specificity; the
|
|
72
|
+
library's CSS is unlayered until you set this, so every utility on a `Bb*`
|
|
73
|
+
component or a `pt:*` part loses. With it, your utilities win.
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
// vite.config.ts (Nuxt: the same value under `bitboss`, same import)
|
|
77
|
+
import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
|
|
78
|
+
bitbossUi({ cssLayers: TAILWIND_V4_LAYERS });
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
The runtime plugin (`app.use(bitbossUiPlugin)`, bullet above) is what
|
|
82
|
+
injects the sheet, into that layer. **Do not also import
|
|
83
|
+
`bitboss-ui/styles.css`** (in CSS or JS): a hand import adds a second,
|
|
84
|
+
unlayered copy and undoes the setting. Tailwind v3 or plain CSS: leave
|
|
85
|
+
`cssLayers` unset. Details:
|
|
86
|
+
[Installation and Plugin Setup](./installation-and-plugin-setup.md) §
|
|
87
|
+
Cascade layers.
|
|
88
|
+
|
|
89
|
+
- **a `font-family` is set on `body`** (components inherit it; e.g.
|
|
90
|
+
`font-family: system-ui, sans-serif`). There is no font token, so an app
|
|
91
|
+
that sets none renders in the browser's default serif, library controls
|
|
92
|
+
included. The optional reset (`resetCss: true` / `bitboss-ui/reset.css`)
|
|
93
|
+
sets `system-ui` on `body` at zero specificity, so with it this holds
|
|
94
|
+
unless you pick another font.
|
|
35
95
|
|
|
36
96
|
If setup is missing, provide setup code first ([Installation and Plugin Setup](./installation-and-plugin-setup.md)), then component examples.
|
|
37
97
|
|
|
@@ -39,13 +99,53 @@ If setup is missing, provide setup code first ([Installation and Plugin Setup](.
|
|
|
39
99
|
|
|
40
100
|
Read the installed package knowledge base before recommending components:
|
|
41
101
|
|
|
42
|
-
1. **`dist/ai/guides/ai-router.md`** —
|
|
43
|
-
2.
|
|
102
|
+
1. **`dist/ai/guides/ai-router.md`** — the hop map. If you opened this contract first, go there and follow it. Do not also load the full catalogue.
|
|
103
|
+
2. **One** `dist/ai/<Name>.md` contract, or one recipe. `dist/ai/index.md` is a last resort.
|
|
104
|
+
3. **Paint** is `dist/ai/design-tokens.json` and `dist/ai/design-tokens.manifest.yaml`. A `DESIGN.md` in an app is that app's brand. The `DESIGN.md` in `fixtures/inertia/` of this repository is the Inertia fixture, not the library theme.
|
|
44
105
|
|
|
45
|
-
Every component doc (`dist/ai/<Name>.md`)
|
|
106
|
+
Every component doc (`dist/ai/<Name>.md`) opens with **Reachable through**, then **Usage & Guidelines**. Read both before the raw props/events/slots tables. Prefer the guide's idioms over anything you would infer from the API surface alone. If a guide shows one way to do something, that is the idiomatic way.
|
|
46
107
|
|
|
47
108
|
Consumer projects should run `npx bitboss-ui ai-init` once so AGENTS.md / Cursor / Copilot / Claude / Windsurf all point at this corpus.
|
|
48
109
|
|
|
110
|
+
## Component Tree Rule
|
|
111
|
+
|
|
112
|
+
**A `Bb*` component is a tree, not one component.** `BbTextInput` mounts
|
|
113
|
+
`CommonField` and `CommonFieldInput` → `BbIcon` / `BbSpinner` /
|
|
114
|
+
`ClearableButton`; `BbSelect` adds `BbSelectPopover`,
|
|
115
|
+
which mounts `BbOffCanvas`, `ListBox` → `FlatListBox`, `BbBadge` chips. The
|
|
116
|
+
field box, its border token, the spinner and the listbox rows all live in that
|
|
117
|
+
tree, several levels below the tag you write. Before you style, theme, debug
|
|
118
|
+
or wrap a component — and **before you conclude that a part, a CSS variable
|
|
119
|
+
or a behaviour does not exist** — read its tree:
|
|
120
|
+
|
|
121
|
+
- **Where:** start with **Reachable through `<Name>`**, right under the
|
|
122
|
+
Agent Contract header of every contract (`dist/ai/<Name>.md`): one row per pt
|
|
123
|
+
part that lands inside the tree, and the documented CSS variables you can
|
|
124
|
+
set through each — the answer to "how do I style that?". The pruned
|
|
125
|
+
**Component tree** near the end shows the whole structure; the complete tree
|
|
126
|
+
(repeats and undocumented locals included) is the `tree` field of the entry
|
|
127
|
+
in `components.json`, returned whole by the MCP `get_component` tool.
|
|
128
|
+
- **Internal nodes** (`Common*`, listbox internals) have no API of
|
|
129
|
+
their own. What reaches them is listed on the node: "`BbTextInput`'s pt parts
|
|
130
|
+
land here: `box` → `span.bb-field-input__box`" means you write
|
|
131
|
+
`pt:box` on `BbTextInput`. Never import an internal node to get at it.
|
|
132
|
+
- **Public nodes** (`BbSpinner`, `BbIcon`, `BbSelectPopover`, `BbOffCanvas`, …)
|
|
133
|
+
have their own contract and pt vocabulary. The parent reaches one only
|
|
134
|
+
through its own part that lands on it (`spinner` → `BbSpinner` is
|
|
135
|
+
`pt:spinner`) or a pt map it hands down (`{ panel: 'panel' }`: the parent's
|
|
136
|
+
`pt:panel` is the popover's `panel`, the painted bubble — the same word on
|
|
137
|
+
both sides since 3.0.0-beta.27). Their other props are not exposed through
|
|
138
|
+
the parent.
|
|
139
|
+
- **CSS custom properties are listed on the node that declares them.** Set one
|
|
140
|
+
on that node's root or on the element inside it that reads it — the pt part
|
|
141
|
+
that lands there is how you reach it — never on the outer component's root,
|
|
142
|
+
where the inner declaration silently masks it
|
|
143
|
+
([design-tokens](./design-tokens.md), rule 0).
|
|
144
|
+
- **Behaviour lives in the tree too.** Loading, prefill, the adaptive sheet and
|
|
145
|
+
keyboard handling of a select are the popover's; a text input's clear button
|
|
146
|
+
and state icons are the wrapper's. When a contract does not explain a
|
|
147
|
+
behaviour, open the contract of the public node that owns it.
|
|
148
|
+
|
|
49
149
|
## Navigation Rule
|
|
50
150
|
|
|
51
151
|
Offload navigation to the component. The navigation engine lives in `BbBaseButton`, the primitive every button wraps — so `BbButton`, `BbDropdownButton`, `BbBaseButton` itself, and every item-driven surface built on the same core (dropdown items, breadcrumb items, tabs items, pagination in `navigation` mode) all navigate by themselves. Push _as much navigation as possible_ onto this surface — any click whose result is a destination belongs here, not in an `@click` handler:
|
|
@@ -73,7 +173,10 @@ CSS** — e.g. a `.plain-link` class that adds only an underline. Use it for:
|
|
|
73
173
|
- a link whose appearance is a plain text link, not a button.
|
|
74
174
|
|
|
75
175
|
Rule: **inline text link → `BbBaseButton` + your own link class; never `BbButton`
|
|
76
|
-
(including `variant="link"`).**
|
|
176
|
+
(including `variant="link"`).** Clickable **cards**: an overlay `BbBaseButton`
|
|
177
|
+
(`absolute inset-0`, `sr-only` name) inside the card, not a `BbBaseButton`
|
|
178
|
+
wrapping the card's content — see [BbBaseButton](../BbBaseButton.md) § A
|
|
179
|
+
clickable card. Reserve `BbButton variant="link"` for a
|
|
77
180
|
standalone, button-spaced navigation control sitting among other buttons ("See
|
|
78
181
|
pricing", "Forgot password?"). See [BbButton](../BbButton.md) § Choosing a
|
|
79
182
|
variant and [design-language](./design-language.md) § the `.plain-link` helper.
|
|
@@ -109,11 +212,17 @@ For components accepting `items`:
|
|
|
109
212
|
|
|
110
213
|
- prefer declarative mapping with `item-text` and `item-value`;
|
|
111
214
|
- use `dependencies` and `deps-debounce-time` for tied fields;
|
|
112
|
-
- use `enforce-coherence` instead of custom watchers for stale model cleanup
|
|
215
|
+
- use `enforce-coherence` instead of custom watchers for stale model cleanup;
|
|
216
|
+
- to style a row BY ITS DATA (a destructive entry, a tile by tier, a row by
|
|
217
|
+
status), give the row part a per-item function on the instance —
|
|
218
|
+
`:pt:item="({ item, disabled }) => item.danger && 'text-red-600'"` — never a
|
|
219
|
+
custom row slot just for a class. Row parts only (`item` / `option` /
|
|
220
|
+
`row` and their `item-*`), never a state key, never the global map. See
|
|
221
|
+
[passthrough](./passthrough.md) § Per-item functions.
|
|
113
222
|
|
|
114
223
|
## Icons Rule
|
|
115
224
|
|
|
116
|
-
External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `iconDir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Full workflow: [Icons Policy](./icons-policy.md).
|
|
225
|
+
External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `iconDir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Provider icons ship only when written as a `prefix:name` literal somewhere in the project (any file type, PHP included) or listed in the plugin's `iconWhitelist`; the same rule applies in dev, and a name that does not resolve renders a placeholder and logs an error instead of throwing. Full workflow: [Icons Policy](./icons-policy.md).
|
|
117
226
|
|
|
118
227
|
## Variants Rule
|
|
119
228
|
|
|
@@ -125,9 +234,10 @@ semantic status badges, a brand button tone — **add it, in both halves**:
|
|
|
125
234
|
|
|
126
235
|
1. **Register the name** in the build plugin: `badgeVariants`, `buttonVariants`,
|
|
127
236
|
`alertVariants`, `confirmVariants`, `dropdownItemVariants`, `tooltipVariants`,
|
|
128
|
-
`toastVariants`, `indicatorVariants
|
|
237
|
+
`toastVariants`, `indicatorVariants`, `inputVariants`, `tabsVariants`
|
|
238
|
+
(`bitboss-ui/vite` or `bitboss-ui/nuxt`).
|
|
129
239
|
The plugin regenerates the typed registry, so the name type-checks.
|
|
130
|
-
2. **Style the class** — `.bb-badge
|
|
240
|
+
2. **Style the class** — `.bb-badge--<name>`, `.bb-button--<name>`, … —
|
|
131
241
|
in a project stylesheet loaded **after** `bitboss-ui/styles.css`. The library
|
|
132
242
|
ships no CSS for names it does not own.
|
|
133
243
|
|
|
@@ -148,14 +258,46 @@ Overlay visibility is controlled by the component's **primary `v-model`** — ne
|
|
|
148
258
|
|
|
149
259
|
These overlays also return focus to their trigger element on close, by documented default — a consumer `@focus`-reopen handler on that trigger will fight the restore and can loop.
|
|
150
260
|
|
|
261
|
+
**Don't teleport overlays out of an open dialog or sheet.** A `<Teleport to="body">` (or any `z-index` layer) opened from inside a `BbDialog` / `BbOffCanvas` renders _under_ the modal and is inert: no clicks, no focus. Anything that floats uses a component that joins the top layer — `BbPopover` for anchored content, `BbDropdown` for menus, a nested `BbOffCanvas` / `BbDialog` for panels, `useToast` for notifications — and paints above the current modal, interactive.
|
|
262
|
+
|
|
263
|
+
## Date Controls Rule
|
|
264
|
+
|
|
265
|
+
Three date components, chosen by **what the control is** — never by which one
|
|
266
|
+
you can bend into the shape:
|
|
267
|
+
|
|
268
|
+
- **`BbCalendar`** — a calendar that is **always visible**, in a page, panel or
|
|
269
|
+
sheet: a booking / scheduling / availability page, a dashboard's date panel,
|
|
270
|
+
a range picked under From / To fields in a mobile filter sheet. It is bare —
|
|
271
|
+
no `label` / `hint` / `errors` chrome — so name it with `aria-label` (which
|
|
272
|
+
gives its root `role="group"`).
|
|
273
|
+
- **`BbDatePickerInput`** — a date **field** in a form or a filter rail: label,
|
|
274
|
+
typed segments, validation.
|
|
275
|
+
- **`BbDatePicker`** — a calendar **popover** on a trigger you own (a table
|
|
276
|
+
cell, a chip, a button).
|
|
277
|
+
|
|
278
|
+
**Never force a `BbDatePicker` open — or pin any popover open — to fake an
|
|
279
|
+
inline calendar.** The picker has no `inline` prop on purpose; a calendar in the
|
|
280
|
+
page is `BbCalendar`. See [BbCalendar](../BbCalendar.md) § When to use.
|
|
281
|
+
|
|
151
282
|
## Global Host Rule
|
|
152
283
|
|
|
153
284
|
`useToast()` and `useConfirm()` write to **module-level singleton state**, not to a component instance. `<BbToast />` and `<BbConfirm />` are the only things that render that state, and each mounted host renders _all_ of it.
|
|
154
285
|
|
|
155
286
|
**Mount exactly one `<BbToast />` and one `<BbConfirm />` for the whole application, at the app root** — `App.vue` under Vue, `app.vue` under Nuxt, the `createInertiaApp` render root under Inertia. Never one per page, per route, per layout branch or per component; a page that calls `toast()` or `confirm()` mounts nothing.
|
|
156
287
|
|
|
157
|
-
|
|
158
|
-
|
|
288
|
+
**One exception: areas with their own look.** When the app is split into
|
|
289
|
+
areas that each wrap their pages in a `<BbPtScope>` (a backoffice and a member
|
|
290
|
+
area — see [passthrough](./passthrough.md) § Named scopes), mount one
|
|
291
|
+
`<BbToast />` and one `<BbConfirm />` **inside each area's layout** and none at
|
|
292
|
+
the app root, so messages take that area's scope and tokens. It holds only if
|
|
293
|
+
**every** page renders inside exactly one of those layouts — a login page or
|
|
294
|
+
error page with no area layout gets one too — so there is still exactly one
|
|
295
|
+
host at a time; a message fired while switching areas waits for the next
|
|
296
|
+
host.
|
|
297
|
+
|
|
298
|
+
- **Zero hosts** — `toast(...)` enqueues and the message never expires (the dismiss timer lives inside the host); `await confirm(...)` never settles, so the caller hangs. Neither throws. Both warn once per process in DEV.
|
|
299
|
+
- **Two hosts** — every toast and every dialog renders once per host: duplicated DOM, duplicated `role="status"` live regions, duplicated focus traps. Both warn in DEV, naming the host count.
|
|
300
|
+
- **A host that mounts and then unmounts also warns** (since 2026-09-09). This is the failure mode of mounting a host anywhere but the app root: one in a layout works right up until a route renders outside that layout, and the promise then hangs forever. The warning is **deferred by one second**, not immediate, because a late-mounting host renders the pending dialog and settles the promise normally — so a host that unmounts and remounts across a route change is not a failure and stays quiet. What the warning means is "one second later, still nothing to render this". **A confirm that is already OPEN when its last host unmounts does not hang** (since 2026-09-22): if no host comes back within that same second, it resolves `false` quietly — no button callback runs, like `dismissAll()` — and DEV warns; a host that comes back in time keeps the dialog.
|
|
159
301
|
|
|
160
302
|
Standalone examples in this repo (`src/components/*/examples/*.vue`, stories, dev showcases) mount a host inline **because each one is a self-contained root with no application around it**. That is a property of the example harness, not a pattern to copy — in a real app the host is already mounted at the root, and the page must not mount a second one.
|
|
161
303
|
|
|
@@ -165,10 +307,12 @@ Boolean props default to `false` so the bare `<Comp foo>` shorthand turns the fe
|
|
|
165
307
|
|
|
166
308
|
- `multiple` on `BbTable`, `BbCheckboxGroup`, `BbSwitchGroup` — multi-select is the expected default; `:multiple="false"` forces single-select.
|
|
167
309
|
- `selectable` on the option components (`BbSelect`, `BbSelectPopover`, `BbCheckboxGroup`, `BbRadioGroup`, `BbSwitchGroup`) — options are selectable by default; pass a predicate or `false` to restrict. **Not `BbTable`**: there `selectable` is unset by default and is what renders the selection column at all, so leaving it off means "no checkboxes", not "every row selectable".
|
|
310
|
+
- `modelValue` on `BbAlert` — an uncontrolled alert is visible on mount; its `v-model` exists to dismiss it. Defaulting to `false` would hide every alert with no binding.
|
|
311
|
+
- `trueValue` on `BbButton` — the value a `v-model` toggle commits when on (`true` is the natural on-value), not a feature flag.
|
|
168
312
|
|
|
169
|
-
These are the only intentional default-`true` booleans; anywhere else, `true` default is a bug (`check-api` flags it).
|
|
313
|
+
These are the only intentional default-`true` booleans — exactly the exemptions `check-api` whitelists; anywhere else, `true` default is a bug (`check-api` flags it).
|
|
170
314
|
|
|
171
|
-
**Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette`, and `BbDropdown` (leftover bindings land silently in `$attrs`).
|
|
315
|
+
**Arrows are tooltip-only in v3.** `hideArrow` / `showArrow` / `arrowPadding` were removed from `BbPopover`, `BbSelectPopover`, `BbColorPalette`, and `BbDropdown` (leftover bindings land silently in `$attrs`). `BbTooltip` keeps **both** — `hideArrow` (default `false`, so the arrow shows) and `arrowPadding` (default `10`). See [bb-popover.md](./migration/components/bb-popover.md).
|
|
172
316
|
|
|
173
317
|
## Testing Against bitboss-ui
|
|
174
318
|
|
|
@@ -248,10 +392,12 @@ case is not decidable from markup and has no hint.
|
|
|
248
392
|
- [ ] Recommends `Bb*` components by default.
|
|
249
393
|
- [ ] Uses only existing props/events/slots from library types.
|
|
250
394
|
- [ ] Read the component's "Usage & Guidelines" section before writing usage code.
|
|
395
|
+
- [ ] Styled, themed or debugged through the component's **Component tree** (contract section / `tree` in `components.json`) — never concluded a part or token is missing from the top-level SFC alone.
|
|
251
396
|
- [ ] Navigation goes through `href`/`to` on buttons and items — no `router.push` click handlers for plain destinations.
|
|
252
397
|
- [ ] Uses only icons from installed `@iconify-json/*` providers or existing `local:*` files.
|
|
253
398
|
- [ ] Avoids reference-only imports unless explicitly requested.
|
|
254
399
|
- [ ] Uses declarative coherence/dependencies before manual watchers.
|
|
255
|
-
- [ ]
|
|
256
|
-
- [ ]
|
|
400
|
+
- [ ] An always-visible calendar is `BbCalendar` (named with `aria-label`) — never a `BbDatePicker` forced open; a date field is `BbDatePickerInput` (see § Date Controls Rule).
|
|
401
|
+
- [ ] Mounts exactly one `<BbToast />` and one `<BbConfirm />` host, at the app root — never inside a page or component (areas scoped with `<BbPtScope>`: one per area layout instead, see § Global Host Rule).
|
|
402
|
+
- [ ] Confirmed the plugin's `locale` is set explicitly if the app isn't English (default is `'en'`) — see Setup-First Rule.
|
|
257
403
|
- [ ] Ran the Rebuild Check over the hand-written markup — nothing reimplements `BbAvatar`, `BbSpinner` or `BbBadge`.
|