bitboss-ui 2.1.135 → 3.0.0-alpha.4
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/LICENSE +21 -0
- package/README.md +274 -24
- package/bin/bitboss-ui-mcp.mjs +662 -0
- package/bin/bitboss-ui.mjs +710 -0
- package/bin/bitboss-ui.node.test.mjs +113 -0
- package/dist/ai/BbAccordion.md +528 -113
- package/dist/ai/BbAlert.md +380 -197
- package/dist/ai/BbAsterisk.md +46 -0
- package/dist/ai/BbAvatar.md +458 -178
- package/dist/ai/BbBadge.md +697 -225
- package/dist/ai/BbBadgeButton.md +54 -0
- package/dist/ai/BbBaseButton.md +491 -0
- package/dist/ai/BbBaseCheckbox.md +49 -0
- package/dist/ai/BbBaseCheckboxGroup.md +64 -0
- package/dist/ai/BbBaseCheckboxIcon.md +176 -0
- package/dist/ai/BbBaseColorInput.md +64 -0
- package/dist/ai/BbBaseColorPalette.md +39 -0
- package/dist/ai/BbBaseDatePicker.md +42 -0
- package/dist/ai/BbBaseDatePickerInput.md +73 -0
- package/dist/ai/BbBaseInputContainer.md +48 -0
- package/dist/ai/BbBaseNumberInput.md +71 -0
- package/dist/ai/BbBaseRadio.md +46 -0
- package/dist/ai/BbBaseRadioGroup.md +64 -0
- package/dist/ai/BbBaseRadioIcon.md +191 -0
- package/dist/ai/BbBaseRating.md +51 -0
- package/dist/ai/BbBaseSelect.md +88 -0
- package/dist/ai/BbBaseSlider.md +56 -0
- package/dist/ai/BbBaseSwitch.md +49 -0
- package/dist/ai/BbBaseSwitchGroup.md +64 -0
- package/dist/ai/BbBaseSwitchIcon.md +186 -0
- package/dist/ai/BbBaseTag.md +68 -0
- package/dist/ai/BbBaseTextInput.md +75 -0
- package/dist/ai/BbBaseTextarea.md +62 -0
- package/dist/ai/BbBaseTimePickerInput.md +62 -0
- package/dist/ai/BbBreadcrumbs.md +553 -503
- package/dist/ai/BbButton.md +841 -636
- package/dist/ai/BbCheckbox.md +585 -254
- package/dist/ai/BbCheckboxGroup.md +573 -361
- package/dist/ai/BbCollapsible.md +425 -103
- package/dist/ai/BbColorInput.md +536 -323
- package/dist/ai/BbColorPalette.md +569 -330
- package/dist/ai/BbConfirm.md +659 -136
- package/dist/ai/BbConfirmPortal.md +28 -0
- package/dist/ai/BbDatePicker.md +244 -0
- package/dist/ai/BbDatePickerInput.md +720 -388
- package/dist/ai/BbDialog.md +778 -99
- package/dist/ai/BbDropdown.md +1072 -763
- package/dist/ai/BbDropdownButton.md +525 -614
- package/dist/ai/BbDropdownGroup.md +34 -0
- package/dist/ai/BbDropzone.md +1206 -436
- package/dist/ai/BbForm.md +239 -0
- package/dist/ai/BbIcon.md +382 -212
- package/dist/ai/BbIndicator.md +283 -0
- package/dist/ai/BbNumberInput.md +717 -355
- package/dist/ai/BbOffCanvas.md +897 -498
- package/dist/ai/BbPagination.md +489 -535
- package/dist/ai/BbPopover.md +591 -546
- package/dist/ai/BbProgress.md +462 -69
- package/dist/ai/BbRadio.md +352 -229
- package/dist/ai/BbRadioGroup.md +437 -353
- package/dist/ai/BbRating.md +372 -225
- package/dist/ai/BbSelect.md +1399 -536
- package/dist/ai/BbSelectPopover.md +1255 -1578
- package/dist/ai/BbSlider.md +500 -256
- package/dist/ai/BbSmoothHeight.md +485 -139
- package/dist/ai/BbSpinner.md +718 -131
- package/dist/ai/BbSwitch.md +573 -119
- package/dist/ai/BbSwitchGroup.md +521 -214
- package/dist/ai/BbTable.md +1996 -2365
- package/dist/ai/BbTabs.md +1147 -0
- package/dist/ai/BbTabsList.md +29 -0
- package/dist/ai/BbTabsPanes.md +27 -0
- package/dist/ai/BbTabsRoot.md +57 -0
- package/dist/ai/BbTag.md +416 -292
- package/dist/ai/BbTextInput.md +878 -333
- package/dist/ai/BbTextarea.md +850 -255
- package/dist/ai/BbTimePicker.md +231 -0
- package/dist/ai/BbTimePickerInput.md +200 -0
- package/dist/ai/BbToast.md +669 -196
- package/dist/ai/BbToastPortal.md +28 -0
- package/dist/ai/BbTooltip.md +453 -346
- package/dist/ai/BbTree.md +993 -234
- package/dist/ai/ChipsBox.md +27 -199
- package/dist/ai/ClearableButton.md +21 -55
- package/dist/ai/CommaBox.md +25 -200
- package/dist/ai/CommonInputWrapper.md +42 -0
- package/dist/ai/CommonPopover.md +30 -510
- package/dist/ai/ErrorIcon.md +19 -56
- package/dist/ai/FlatListBox.md +35 -379
- package/dist/ai/GroupedListBox.md +37 -535
- package/dist/ai/GuidesComponent.md +21 -0
- package/dist/ai/ListBox.md +38 -231
- package/dist/ai/OptionsContainer.md +34 -253
- package/dist/ai/WarningIcon.md +21 -0
- package/dist/ai/components.json +15897 -0
- package/dist/ai/composables/useBbConfig.md +80 -0
- package/dist/ai/composables/useBbFormContext.md +110 -0
- package/dist/ai/composables/useBbTableContext.md +167 -0
- package/dist/ai/composables/useBbTabsContext.md +118 -0
- package/dist/ai/composables/useBroadcastChannelInstance.md +97 -0
- package/dist/ai/composables/useConfirm.md +313 -0
- package/dist/ai/composables/useCountdown.md +86 -0
- package/dist/ai/composables/useId.md +60 -0
- package/dist/ai/composables/useMobile.md +85 -0
- package/dist/ai/composables/useToast.md +238 -0
- package/dist/ai/guides/agent-contract.md +165 -0
- package/dist/ai/guides/ai-router.md +113 -0
- package/dist/ai/guides/app-layout.md +318 -0
- package/dist/ai/guides/coherence-playbook.md +136 -0
- package/dist/ai/guides/component-picker.md +236 -0
- package/dist/ai/guides/design-language.md +478 -0
- package/dist/ai/guides/design-tokens.md +450 -0
- package/dist/ai/guides/fetch-items-playbook.md +161 -0
- package/dist/ai/guides/floating-bottom-panel.md +130 -0
- package/dist/ai/guides/icons-policy.md +257 -0
- package/dist/ai/guides/inertia-helpers.md +1443 -0
- package/dist/ai/guides/inline-edit-playbook.md +267 -0
- package/dist/ai/guides/installation-and-plugin-setup.md +440 -0
- package/dist/ai/guides/migration/components/bb-alert.md +37 -0
- package/dist/ai/guides/migration/components/bb-avatar.md +24 -0
- package/dist/ai/guides/migration/components/bb-badge.md +110 -0
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +26 -0
- package/dist/ai/guides/migration/components/bb-button.md +55 -0
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +54 -0
- package/dist/ai/guides/migration/components/bb-checkbox.md +45 -0
- package/dist/ai/guides/migration/components/bb-chip.md +35 -0
- package/dist/ai/guides/migration/components/bb-collapsible.md +26 -0
- package/dist/ai/guides/migration/components/bb-color-input.md +23 -0
- package/dist/ai/guides/migration/components/bb-color-palette.md +31 -0
- package/dist/ai/guides/migration/components/bb-date-picker-input.md +84 -0
- package/dist/ai/guides/migration/components/bb-dialog.md +46 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +31 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +36 -0
- package/dist/ai/guides/migration/components/bb-dropzone.md +27 -0
- package/dist/ai/guides/migration/components/bb-icon.md +27 -0
- package/dist/ai/guides/migration/components/bb-offcanvas.md +63 -0
- package/dist/ai/guides/migration/components/bb-pagination.md +24 -0
- package/dist/ai/guides/migration/components/bb-popover.md +52 -0
- package/dist/ai/guides/migration/components/bb-rating.md +24 -0
- package/dist/ai/guides/migration/components/bb-select-popover.md +59 -0
- package/dist/ai/guides/migration/components/bb-select.md +69 -0
- package/dist/ai/guides/migration/components/bb-slider.md +25 -0
- package/dist/ai/guides/migration/components/bb-smooth-height.md +45 -0
- package/dist/ai/guides/migration/components/bb-spinner.md +23 -0
- package/dist/ai/guides/migration/components/bb-table.md +66 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +47 -0
- package/dist/ai/guides/migration/components/bb-tag.md +29 -0
- package/dist/ai/guides/migration/components/bb-text-input.md +37 -0
- package/dist/ai/guides/migration/components/bb-toast.md +47 -0
- package/dist/ai/guides/migration/components/bb-tooltip.md +34 -0
- package/dist/ai/guides/migration/components/bb-tree.md +77 -0
- package/dist/ai/guides/migration/components/use-confirm.md +46 -0
- package/dist/ai/guides/migration/v2-to-v3.md +649 -0
- package/dist/ai/guides/options-items-playbook.md +222 -0
- package/dist/ai/guides/page-shell.md +113 -0
- package/dist/ai/guides/validated-forms.md +177 -0
- package/dist/ai/index.md +158 -32
- package/dist/ai/recipes/inertia/approvals-inbox.md +1635 -0
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1765 -0
- package/dist/ai/recipes/inertia/layout-scaffold.md +385 -0
- package/dist/ai/recipes/inertia/onboarding.md +1791 -0
- package/dist/ai/recipes/inertia/ownership-atlas.md +1327 -0
- package/dist/ai/recipes/inertia/record-form.md +1489 -0
- package/dist/ai/recipes/inertia/records-workspace.md +1416 -0
- package/dist/ai/recipes/inertia/upload-center.md +2003 -0
- package/dist/ai/recipes/inertia/wizard-form.md +1500 -0
- package/dist/ai/recipes/nuxt/approvals-inbox.md +1578 -0
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1703 -0
- package/dist/ai/recipes/nuxt/layout-scaffold.md +385 -0
- package/dist/ai/recipes/nuxt/onboarding.md +1724 -0
- package/dist/ai/recipes/nuxt/record-form.md +1502 -0
- package/dist/ai/recipes/nuxt/records-workspace.md +1329 -0
- package/dist/ai/recipes/nuxt/upload-center.md +1886 -0
- package/dist/ai/recipes/nuxt/wizard-form.md +1509 -0
- package/dist/ai/recipes/vue/approvals-inbox.md +1496 -0
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1594 -0
- package/dist/ai/recipes/vue/layout-scaffold.md +385 -0
- package/dist/ai/recipes/vue/onboarding.md +1679 -0
- package/dist/ai/recipes/vue/record-form.md +1586 -0
- package/dist/ai/recipes/vue/records-workspace.md +1245 -0
- package/dist/ai/recipes/vue/upload-center.md +1845 -0
- package/dist/ai/recipes/vue/wizard-form.md +1441 -0
- package/dist/ai/source/BbAccordion.md +123 -0
- package/dist/ai/source/BbAlert.md +401 -0
- package/dist/ai/source/BbAsterisk.md +32 -0
- package/dist/ai/source/BbAvatar.md +258 -0
- package/dist/ai/source/BbBadge.md +560 -0
- package/dist/ai/source/BbBadgeButton.md +490 -0
- package/dist/ai/source/BbBaseButton.md +682 -0
- package/dist/ai/source/BbBaseCheckbox.md +461 -0
- package/dist/ai/source/BbBaseCheckboxGroup.md +554 -0
- package/dist/ai/source/BbBaseCheckboxIcon.md +201 -0
- package/dist/ai/source/BbBaseColorInput.md +416 -0
- package/dist/ai/source/BbBaseColorPalette.md +934 -0
- package/dist/ai/source/BbBaseDatePicker.md +1001 -0
- package/dist/ai/source/BbBaseDatePickerInput.md +1785 -0
- package/dist/ai/source/BbBaseInputContainer.md +1210 -0
- package/dist/ai/source/BbBaseNumberInput.md +617 -0
- package/dist/ai/source/BbBaseRadio.md +377 -0
- package/dist/ai/source/BbBaseRadioGroup.md +533 -0
- package/dist/ai/source/BbBaseRadioIcon.md +153 -0
- package/dist/ai/source/BbBaseRating.md +573 -0
- package/dist/ai/source/BbBaseSelect.md +898 -0
- package/dist/ai/source/BbBaseSlider.md +1085 -0
- package/dist/ai/source/BbBaseSwitch.md +246 -0
- package/dist/ai/source/BbBaseSwitchGroup.md +302 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +206 -0
- package/dist/ai/source/BbBaseTag.md +694 -0
- package/dist/ai/source/BbBaseTextInput.md +511 -0
- package/dist/ai/source/BbBaseTextarea.md +480 -0
- package/dist/ai/source/BbBaseTimePickerInput.md +1031 -0
- package/dist/ai/source/BbBreadcrumbs.md +815 -0
- package/dist/ai/source/BbButton.md +1006 -0
- package/dist/ai/source/BbCheckbox.md +326 -0
- package/dist/ai/source/BbCheckboxGroup.md +419 -0
- package/dist/ai/source/BbCollapsible.md +137 -0
- package/dist/ai/source/BbColorInput.md +322 -0
- package/dist/ai/source/BbColorPalette.md +371 -0
- package/dist/ai/source/BbConfirm.md +193 -0
- package/dist/ai/source/BbConfirmPortal.md +74 -0
- package/dist/ai/source/BbDatePicker.md +729 -0
- package/dist/ai/source/BbDatePickerInput.md +525 -0
- package/dist/ai/source/BbDialog.md +818 -0
- package/dist/ai/source/BbDropdown.md +2387 -0
- package/dist/ai/source/BbDropdownButton.md +315 -0
- package/dist/ai/source/BbDropdownGroup.md +1259 -0
- package/dist/ai/source/BbDropzone.md +864 -0
- package/dist/ai/source/BbForm.md +100 -0
- package/dist/ai/source/BbIcon.md +214 -0
- package/dist/ai/source/BbIndicator.md +298 -0
- package/dist/ai/source/BbNumberInput.md +374 -0
- package/dist/ai/source/BbOffCanvas.md +1266 -0
- package/dist/ai/source/BbPagination.md +835 -0
- package/dist/ai/source/BbPopover.md +860 -0
- package/dist/ai/source/BbProgress.md +140 -0
- package/dist/ai/source/BbRadio.md +303 -0
- package/dist/ai/source/BbRadioGroup.md +420 -0
- package/dist/ai/source/BbRating.md +369 -0
- package/dist/ai/source/BbSelect.md +688 -0
- package/dist/ai/source/BbSelectPopover.md +2234 -0
- package/dist/ai/source/BbSlider.md +378 -0
- package/dist/ai/source/BbSmoothHeight.md +265 -0
- package/dist/ai/source/BbSpinner.md +127 -0
- package/dist/ai/source/BbSwitch.md +175 -0
- package/dist/ai/source/BbSwitchGroup.md +240 -0
- package/dist/ai/source/BbTable.md +3433 -0
- package/dist/ai/source/BbTabs.md +403 -0
- package/dist/ai/source/BbTabsList.md +578 -0
- package/dist/ai/source/BbTabsPanes.md +368 -0
- package/dist/ai/source/BbTabsRoot.md +372 -0
- package/dist/ai/source/BbTag.md +390 -0
- package/dist/ai/source/BbTextInput.md +352 -0
- package/dist/ai/source/BbTextarea.md +337 -0
- package/dist/ai/source/BbTimePicker.md +595 -0
- package/dist/ai/source/BbTimePickerInput.md +376 -0
- package/dist/ai/source/BbToast.md +525 -0
- package/dist/ai/source/BbToastPortal.md +482 -0
- package/dist/ai/source/BbTooltip.md +522 -0
- package/dist/ai/source/BbTree.md +323 -0
- package/dist/ai/source/ChipsBox.md +201 -0
- package/dist/ai/source/ClearableButton.md +70 -0
- package/dist/ai/source/CommaBox.md +202 -0
- package/dist/ai/source/CommonInputWrapper.md +554 -0
- package/dist/ai/source/CommonPopover.md +616 -0
- package/dist/ai/source/ErrorIcon.md +43 -0
- package/dist/ai/source/FlatListBox.md +396 -0
- package/dist/ai/source/GroupedListBox.md +540 -0
- package/dist/ai/source/GuidesComponent.md +383 -0
- package/dist/ai/source/ListBox.md +238 -0
- package/dist/ai/source/OptionsContainer.md +191 -0
- package/dist/ai/source/WarningIcon.md +47 -0
- package/dist/alert-variants.d.ts +19 -0
- package/dist/assets/css/reset.css_inline.js +4 -0
- package/dist/assets/svgs/alert.svg_raw.js +4 -0
- package/dist/assets/svgs/calendar.svg_raw.js +4 -0
- package/dist/assets/svgs/check_stroke.svg_raw.js +4 -0
- package/dist/assets/svgs/chevron_down.svg_raw.js +4 -0
- package/dist/assets/svgs/chevron_right.svg_raw.js +4 -0
- package/dist/assets/svgs/clear.svg_raw.js +4 -0
- package/dist/assets/svgs/clock.svg_raw.js +4 -0
- package/dist/assets/svgs/error.svg_raw.js +4 -0
- package/dist/assets/svgs/search.svg_raw.js +4 -0
- package/dist/assets/svgs/sort.svg_raw.js +4 -0
- package/dist/assets/svgs/spinner.svg_raw.js +4 -0
- package/dist/assets/svgs/user.svg_raw.js +4 -0
- package/dist/badge-variants.d.ts +19 -0
- package/dist/button-variants.d.ts +21 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +9 -3
- package/dist/components/BbAccordion/BbAccordion.vue.js +6 -0
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/components/BbAccordion/types.d.ts +12 -8
- package/dist/components/BbAlert/BbAlert.vue.d.ts +12 -3
- package/dist/components/BbAlert/BbAlert.vue.js +6 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/BbAlert/types.d.ts +56 -12
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue.js +6 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -0
- package/dist/components/BbAvatar/BbAvatar.vue.js +6 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/BbAvatar/types.d.ts +6 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +3 -0
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +5 -0
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +15 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue.js +5 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/BbBadge/BbBadge.vue.d.ts +8 -1
- package/dist/components/BbBadge/BbBadge.vue.js +6 -0
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +12 -0
- package/dist/components/BbBadge/BbBadgeButton.vue.js +5 -0
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/components/BbBadge/badgeButtonContext.d.ts +27 -0
- package/dist/components/BbBadge/badgeButtonContext.js +5 -0
- package/dist/components/BbBadge/types.d.ts +61 -16
- package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +13 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue.js +6 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +171 -0
- package/dist/components/BbBaseButton/RouterComponent.vue.js +5 -0
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/components/BbBaseButton/types.d.ts +191 -0
- package/dist/components/BbBaseButton/types.js +33 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +40 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +6 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +145 -0
- package/dist/components/BbBaseCheckbox/types.d.ts +224 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +6 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +257 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.js +6 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +47 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +42 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +6 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/components/BbBaseColorInput/types.d.ts +210 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +13 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.js +6 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +395 -0
- package/dist/components/BbBaseColorPalette/types.d.ts +40 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +6 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +300 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +44 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +310 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/BbBaseDatePicker/typeahead.d.ts +112 -0
- package/dist/components/BbBaseDatePicker/typeahead.js +37 -0
- package/dist/components/BbBaseDatePicker/types.d.ts +97 -0
- package/dist/components/BbBaseDatePicker/useDatePickerContext.d.ts +58 -0
- package/dist/components/BbBaseDatePicker/useDatePickerContext.js +11 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +30 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +6 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +716 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts +30 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +6 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +204 -0
- package/dist/components/BbBaseDatePickerInput/types.d.ts +311 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.d.ts +17 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +6 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +191 -0
- package/dist/components/BbBaseInputContainer/types.d.ts +197 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +52 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +6 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +215 -0
- package/dist/components/BbBaseNumberInput/types.d.ts +211 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +33 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.js +6 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/components/BbBaseRadio/types.d.ts +179 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.js +6 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +177 -0
- package/dist/components/BbBaseRadioGroup/types.d.ts +223 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.js +6 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/BbBaseRadioIcon/types.d.ts +41 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +38 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue.js +6 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +184 -0
- package/dist/components/BbBaseRating/types.d.ts +168 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +19 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +6 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +307 -0
- package/dist/components/BbBaseSelect/types.d.ts +297 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +35 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +6 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +324 -0
- package/dist/components/BbBaseSlider/types.d.ts +200 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +35 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.js +6 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/BbBaseSwitch/types.d.ts +10 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +6 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbBaseSwitchGroup/types.d.ts +8 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js +6 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/BbBaseSwitchIcon/types.d.ts +48 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +50 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue.js +6 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +266 -0
- package/dist/components/BbBaseTag/types.d.ts +160 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +45 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +6 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +200 -0
- package/dist/components/BbBaseTextInput/types.d.ts +209 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +39 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +6 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +175 -0
- package/dist/components/BbBaseTextarea/types.d.ts +170 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +27 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +6 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +522 -0
- package/dist/components/BbBaseTimePickerInput/types.d.ts +151 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +0 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.js +6 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +224 -0
- package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.js +47 -0
- package/dist/components/BbBreadcrumbs/types.d.ts +37 -22
- package/dist/components/BbButton/BbButton.vue.d.ts +6 -5
- package/dist/components/BbButton/BbButton.vue.js +6 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +181 -0
- package/dist/components/BbButton/types.d.ts +48 -47
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -3
- package/dist/components/BbCheckbox/BbCheckbox.vue.js +6 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/BbCheckbox/types.d.ts +31 -10
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -13
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.js +6 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbCheckboxGroup/types.d.ts +51 -23
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue.js +6 -0
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/BbCollapsible/types.d.ts +13 -8
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +10 -1
- package/dist/components/BbColorInput/BbColorInput.vue.js +6 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +177 -0
- package/dist/components/BbColorInput/types.d.ts +44 -11
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +5 -8
- package/dist/components/BbColorPalette/BbColorPalette.vue.js +5 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/components/BbColorPalette/types.d.ts +71 -52
- package/dist/components/BbConfirm/BbConfirm.vue.js +6 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +5 -6
- package/dist/components/BbConfirm/BbConfirmPortal.vue.js +5 -0
- package/dist/components/BbConfirm/BbConfirmPortal.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +37 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.js +6 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +319 -0
- package/dist/components/BbDatePicker/types.d.ts +159 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.js +6 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +179 -0
- package/dist/components/BbDatePickerInput/types.d.ts +134 -16
- package/dist/components/BbDialog/BbDialog.vue.d.ts +14 -6
- package/dist/components/BbDialog/BbDialog.vue.js +6 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +214 -0
- package/dist/components/BbDialog/types.d.ts +146 -1
- package/dist/components/BbDialog/useDialogStack.d.ts +5 -0
- package/dist/components/BbDialog/useDialogStack.js +20 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.js +6 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +14 -7
- package/dist/components/BbDropdown/BbDropdown.vue.js +6 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +561 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +44 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue.js +5 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +31 -0
- package/dist/components/BbDropdown/BbDropdownList.vue.js +6 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +470 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +16 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.js +5 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/components/BbDropdown/normalizeGroups.d.ts +18 -0
- package/dist/components/BbDropdown/normalizeGroups.js +46 -0
- package/dist/components/BbDropdown/types.d.ts +468 -46
- package/dist/components/BbDropdown/types.js +4 -0
- package/dist/components/BbDropdown/useDropdownContext.d.ts +89 -0
- package/dist/components/BbDropdown/useDropdownContext.js +9 -0
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +108 -0
- package/dist/components/BbDropdown/useDropdownGroupRegistry.js +5 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.js +6 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/components/BbDropdownButton/types.d.ts +47 -52
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -4
- package/dist/components/BbDropzone/BbDropzone.vue.js +6 -0
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +308 -0
- package/dist/components/BbDropzone/types.d.ts +77 -8
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -2
- package/dist/components/BbIcon/BbIcon.vue.js +6 -0
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/BbIcon/types.d.ts +6 -19
- package/dist/components/BbIndicator/BbIndicator.vue.d.ts +14 -0
- package/dist/components/BbIndicator/BbIndicator.vue.js +6 -0
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/BbIndicator/types.d.ts +49 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -6
- package/dist/components/BbNumberInput/BbNumberInput.vue.js +6 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +194 -0
- package/dist/components/BbNumberInput/types.d.ts +40 -4
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +16 -10
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.js +6 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +284 -0
- package/dist/components/BbOffCanvas/types.d.ts +71 -39
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +25 -0
- package/dist/components/BbOffCanvas/useOffCanvasStack.js +68 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +9 -4
- package/dist/components/BbPagination/BbPagination.vue.js +6 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BbPagination/paginationFit.d.ts +38 -0
- package/dist/components/BbPagination/paginationFit.js +13 -0
- package/dist/components/BbPagination/types.d.ts +51 -16
- package/dist/components/BbPopover/BbPopover.vue.d.ts +16 -15
- package/dist/components/BbPopover/BbPopover.vue.js +6 -0
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +309 -0
- package/dist/components/BbPopover/escapeStack.d.ts +6 -0
- package/dist/components/BbPopover/escapeStack.js +10 -0
- package/dist/components/BbPopover/types.d.ts +90 -31
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -0
- package/dist/components/BbProgress/BbProgress.vue.js +6 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/BbProgress/types.d.ts +15 -1
- package/dist/components/BbRadio/BbRadio.vue.d.ts +5 -3
- package/dist/components/BbRadio/BbRadio.vue.js +6 -0
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +133 -0
- package/dist/components/BbRadio/types.d.ts +32 -9
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -14
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.js +6 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +186 -0
- package/dist/components/BbRadioGroup/types.d.ts +48 -22
- package/dist/components/BbRating/BbRating.vue.d.ts +4 -1
- package/dist/components/BbRating/BbRating.vue.js +6 -0
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +150 -0
- package/dist/components/BbRating/types.d.ts +44 -10
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -11
- package/dist/components/BbSelect/BbSelect.vue.js +6 -0
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +241 -0
- package/dist/components/BbSelect/types.d.ts +112 -59
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +1 -10
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.js +6 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +639 -0
- package/dist/components/BbSelectPopover/types.d.ts +197 -105
- package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -6
- package/dist/components/BbSlider/BbSlider.vue.js +6 -0
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +166 -0
- package/dist/components/BbSlider/types.d.ts +44 -13
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -1
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.js +6 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/components/BbSmoothHeight/types.d.ts +17 -2
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbSpinner/BbSpinner.vue.js +6 -0
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/BbSpinner/types.d.ts +10 -3
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +5 -3
- package/dist/components/BbSwitch/BbSwitch.vue.js +6 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +142 -0
- package/dist/components/BbSwitch/types.d.ts +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +4 -14
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.js +6 -0
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbSwitchGroup/types.d.ts +3 -22
- package/dist/components/BbTable/BbTable.vue.d.ts +58 -31
- package/dist/components/BbTable/BbTable.vue.js +6 -0
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +900 -0
- package/dist/components/BbTable/types.d.ts +213 -37
- package/dist/components/BbTable/utils.d.ts +9 -1
- package/dist/components/BbTable/utils.js +53 -0
- package/dist/components/BbTabs/BbTabs.vue.d.ts +20 -0
- package/dist/components/BbTabs/BbTabs.vue.js +6 -0
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +19 -0
- package/dist/components/BbTabs/BbTabsList.vue.js +6 -0
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +123 -0
- package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +16 -0
- package/dist/components/BbTabs/BbTabsPanes.vue.js +6 -0
- package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +20 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.js +5 -0
- package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/BbTabs/types.d.ts +264 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +19 -6
- package/dist/components/BbTag/BbTag.vue.js +6 -0
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +187 -0
- package/dist/components/BbTag/types.d.ts +55 -17
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -1
- package/dist/components/BbTextInput/BbTextInput.vue.js +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +195 -0
- package/dist/components/BbTextInput/types.d.ts +31 -4
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -1
- package/dist/components/BbTextarea/BbTextarea.vue.js +6 -0
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/components/BbTextarea/types.d.ts +33 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +33 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue.js +6 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BbTimePicker/types.d.ts +133 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +25 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.js +6 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +157 -0
- package/dist/components/BbTimePickerInput/types.d.ts +174 -0
- package/dist/components/BbToast/BbToast.vue.d.ts +2 -3
- package/dist/components/BbToast/BbToast.vue.js +6 -0
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +17 -8
- package/dist/components/BbToast/BbToastMessage.vue.js +5 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +30 -0
- package/dist/components/BbToast/BbToastPortal.vue.js +5 -0
- package/dist/components/BbToast/BbToastPortal.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +8 -0
- package/dist/components/BbToast/BbToastRegion.vue.js +5 -0
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/components/BbToast/types.d.ts +69 -5
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +10 -3
- package/dist/components/BbTooltip/BbTooltip.vue.js +6 -0
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/components/BbTooltip/types.d.ts +69 -11
- package/dist/components/BbTree/BbTree.vue.d.ts +28 -13
- package/dist/components/BbTree/BbTree.vue.js +6 -0
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +19 -0
- package/dist/components/BbTree/BbTreeLevel.vue.js +5 -0
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/BbTree/context.d.ts +17 -0
- package/dist/components/BbTree/context.js +4 -0
- package/dist/components/BbTree/types.d.ts +94 -41
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -1
- package/dist/components/ChipsBox/ChipsBox.vue.js +5 -0
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/components/ChipsBox/types.d.ts +12 -5
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -1
- package/dist/components/ClearableButton/ClearableButton.vue.js +6 -0
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/ClearableButton/types.d.ts +7 -1
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +5 -0
- package/dist/components/CloseIcon/CloseButton.vue.js +7 -0
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/components/CloseIcon/types.d.ts +2 -0
- package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -1
- package/dist/components/CommaBox/CommaBox.vue.js +6 -0
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/components/CommaBox/types.d.ts +6 -7
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.d.ts +19 -0
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +6 -0
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/components/CommonInputWrapper/types.d.ts +96 -0
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +9 -3
- package/dist/components/CommonPopover/CommonPopover.vue.js +6 -0
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/components/CommonPopover/types.d.ts +65 -16
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -0
- package/dist/components/ErrorIcon/ErrorIcon.vue.js +6 -0
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -5
- package/dist/components/FlatListBox/FlatListBox.vue.js +5 -0
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -5
- package/dist/components/GroupedListBox/GroupedListBox.vue.js +5 -0
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +218 -0
- package/dist/components/ListBox/ListBox.vue.d.ts +3 -6
- package/dist/components/ListBox/ListBox.vue.js +5 -0
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue.js +5 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/OptionsContainer/types.d.ts +14 -24
- package/dist/components/Transitions/ScaleFade.vue.d.ts +2 -2
- package/dist/components/Transitions/ScaleFade.vue.js +5 -0
- package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/Transitions/Slide.vue.d.ts +15 -0
- package/dist/components/Transitions/Slide.vue.js +7 -0
- package/dist/components/Transitions/Slide.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +5 -0
- package/dist/components/WarningIcon/WarningIcon.vue.js +6 -0
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/WarningIcon/types.d.ts +3 -0
- package/dist/composables/__testResets.d.ts +1 -0
- package/dist/composables/useActiveInactiveState.d.ts +4 -0
- package/dist/composables/useActiveInactiveState.js +21 -0
- package/dist/composables/useBaseOptions.d.ts +3 -3
- package/dist/composables/useBaseOptions.js +31 -0
- package/dist/composables/useBbConfig.d.ts +8 -37
- package/dist/composables/useBbConfig.js +5 -0
- package/dist/composables/useBbDropdownContext.d.ts +89 -0
- package/dist/composables/useBbDropdownContext.js +46 -0
- package/dist/composables/useBbFormContext.d.ts +90 -0
- package/dist/composables/useBbFormContext.js +69 -0
- package/dist/composables/useBbTableContext.d.ts +195 -0
- package/dist/composables/useBbTableContext.js +208 -0
- package/dist/composables/useBbTabsContext.d.ts +111 -0
- package/dist/composables/useBbTabsContext.js +225 -0
- package/dist/composables/useBreakpoint.d.ts +13 -0
- package/dist/composables/useBreakpoint.js +39 -0
- package/dist/composables/useBroadcastChannelInstance.d.ts +1 -3
- package/dist/composables/useBroadcastChannelInstance.js +39 -0
- package/dist/composables/useCancelableFunction.js +37 -0
- package/dist/composables/useClosingInert.d.ts +28 -0
- package/dist/composables/useClosingInert.js +23 -0
- package/dist/composables/useCoherence.js +16 -0
- package/dist/composables/useConfirm.d.ts +278 -68
- package/dist/composables/useConfirm.js +130 -0
- package/dist/composables/useCountdown.js +42 -0
- package/dist/composables/useHashedWatcher.d.ts +17 -0
- package/dist/composables/useHashedWatcher.js +14 -0
- package/dist/composables/useId.d.ts +3 -2
- package/dist/composables/useIndexById.js +16 -0
- package/dist/composables/useInertiaPage.d.ts +10 -0
- package/dist/composables/useInertiaPage.js +8 -0
- package/dist/composables/useItemText.js +17 -0
- package/dist/composables/useItemValue.js +9 -0
- package/dist/composables/useItemsGetter.d.ts +1 -1
- package/dist/composables/useItemsGetter.js +30 -0
- package/dist/composables/useListboxFocus.js +66 -0
- package/dist/composables/useLocale.d.ts +1 -1
- package/dist/composables/useLocale.js +11 -0
- package/dist/composables/useLogger.d.ts +1 -1
- package/dist/composables/useLogger.js +10 -0
- package/dist/composables/useMinimalQueue.d.ts +1 -1
- package/dist/composables/useMobile.js +7 -0
- package/dist/composables/useOnFalsy.d.ts +2 -0
- package/dist/composables/useOnFalsy.js +9 -0
- package/dist/composables/useOnTruthy.d.ts +7 -0
- package/dist/composables/useOnTruthy.js +9 -0
- package/dist/composables/usePrefill.d.ts +2 -1
- package/dist/composables/usePrefill.js +24 -0
- package/dist/composables/useQuery.d.ts +15 -3
- package/dist/composables/useQuery.js +42 -0
- package/dist/composables/useRoute.js +11 -0
- package/dist/composables/useRouter.js +8 -0
- package/dist/composables/useSafeArea.d.ts +51 -0
- package/dist/composables/useSafeArea.js +16 -0
- package/dist/composables/useSegmentedFields.d.ts +104 -0
- package/dist/composables/useSegmentedFields.js +159 -0
- package/dist/composables/useTableWidthContext.d.ts +5 -0
- package/dist/composables/useTableWidthContext.js +42 -0
- package/dist/composables/useToast.d.ts +40 -70
- package/dist/composables/useToast.js +58 -0
- package/dist/composables/useTopLayer.d.ts +9 -0
- package/dist/composables/useTopLayer.js +7 -0
- package/dist/composables/useUntil.js +13 -0
- package/dist/composables/useViewportWidth.d.ts +17 -0
- package/dist/composables/useViewportWidth.js +6 -0
- package/dist/confirm-variants.d.ts +17 -0
- package/dist/deprecation/ai-deprecations.json.d.ts +784 -0
- package/dist/deprecation/ai-deprecations.json.js +4 -0
- package/dist/deprecation/removedProps.d.ts +3 -0
- package/dist/deprecation/removedProps.js +13 -0
- package/dist/directives/bbColor.d.ts +65 -0
- package/dist/directives/bbColor.js +24 -0
- package/dist/directives/bbDate.d.ts +66 -0
- package/dist/directives/bbDate.js +24 -0
- package/dist/directives/bbDropdown.d.ts +15 -11
- package/dist/directives/bbDropdown.js +23 -0
- package/dist/directives/bbTime.d.ts +64 -0
- package/dist/directives/bbTime.js +24 -0
- package/dist/directives/bbTooltip.d.ts +16 -11
- package/dist/directives/bbTooltip.js +24 -0
- package/dist/directives/createPopoverDirective.js +54 -0
- package/dist/dropdown-item-variants.d.ts +17 -0
- package/dist/i18n/index.d.ts +51 -3
- package/dist/i18n/index.js +27 -0
- package/dist/i18n/locales/cs.json +115 -0
- package/dist/i18n/locales/da.json +115 -0
- package/dist/i18n/locales/de.json +115 -0
- package/dist/i18n/locales/el.json +115 -0
- package/dist/i18n/locales/en.json +115 -0
- package/dist/i18n/locales/es.json +115 -0
- package/dist/i18n/locales/fi.json +115 -0
- package/dist/i18n/locales/fr.json +115 -0
- package/dist/i18n/locales/hu.json +115 -0
- package/dist/i18n/locales/it.json +115 -0
- package/dist/i18n/locales/ja.json +115 -0
- package/dist/i18n/locales/ko.json +115 -0
- package/dist/i18n/locales/nb.json +115 -0
- package/dist/i18n/locales/nl.json +115 -0
- package/dist/i18n/locales/pl.json +115 -0
- package/dist/i18n/locales/pt.json +115 -0
- package/dist/i18n/locales/ro.json +115 -0
- package/dist/i18n/locales/ru.json +115 -0
- package/dist/i18n/locales/sv.json +115 -0
- package/dist/i18n/locales/tr.json +115 -0
- package/dist/i18n/locales/uk.json +115 -0
- package/dist/i18n/locales/zh-cn.json +115 -0
- package/dist/icons-whitelist.d.ts +8 -0
- package/dist/index.d.ts +96 -79
- package/dist/index.js +76 -82
- package/dist/indicator-variants.d.ts +20 -0
- package/dist/llms-full.txt +79703 -0
- package/dist/llms-medium.txt +1514 -0
- package/dist/llms.txt +105 -0
- package/dist/locale-blueprint.json +141 -0
- package/dist/locale-registry.d.ts +37 -0
- package/dist/nuxt-module.d.ts +3 -0
- package/dist/nuxt.js +19 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/plugin.js +22 -0
- package/dist/reset.css +1 -0
- package/dist/reset.d.ts +0 -0
- package/dist/runtime/nuxt-plugin.d.ts +2 -0
- package/dist/runtime/nuxt-plugin.js +24 -0
- package/dist/styles.css +2 -0
- package/dist/styles.d.ts +0 -0
- package/dist/toast-variants.d.ts +20 -0
- package/dist/tooltip-variants.d.ts +17 -0
- package/dist/types/ActionButton.d.ts +32 -0
- package/dist/types/AlertVariant.d.ts +16 -0
- package/dist/types/BadgeVariant.d.ts +16 -0
- package/dist/types/ButtonVariant.d.ts +17 -0
- package/dist/types/Classes.d.ts +1 -1
- package/dist/types/ColumnName.d.ts +1 -1
- package/dist/types/CommonProps.d.ts +68 -277
- package/dist/types/Config.d.ts +84 -0
- package/dist/types/ConfirmVariant.d.ts +15 -0
- package/dist/types/DropdownItemVariant.d.ts +18 -0
- package/dist/types/Icon.d.ts +5 -7
- package/dist/types/IndicatorVariant.d.ts +16 -0
- package/dist/types/InputDirection.d.ts +15 -0
- package/dist/types/ItemAccessor.d.ts +21 -0
- package/dist/types/Placement.d.ts +6 -0
- package/dist/types/ResponsiveSize.d.ts +20 -0
- package/dist/types/SizeScale.d.ts +8 -0
- package/dist/types/ToastVariant.d.ts +17 -0
- package/dist/types/TooltipVariant.d.ts +18 -0
- package/dist/utilities/functions/bytesToUnit.d.ts +2 -0
- package/dist/utilities/functions/bytesToUnit.js +18 -0
- package/dist/utilities/functions/clampPrecision.js +10 -0
- package/dist/utilities/functions/convertDateValue.d.ts +23 -10
- package/dist/utilities/functions/convertDateValue.js +12 -0
- package/dist/utilities/functions/deburr.js +5 -0
- package/dist/utilities/functions/empty.js +5 -0
- package/dist/utilities/functions/flattenTree.d.ts +1 -1
- package/dist/utilities/functions/hash.js +5 -0
- package/dist/utilities/functions/isDateDisabled.d.ts +1 -0
- package/dist/utilities/functions/isDateDisabled.js +20 -0
- package/dist/utilities/functions/isEqual.js +5 -0
- package/dist/utilities/functions/isNotEmpty.js +5 -0
- package/dist/utilities/functions/matchAnyKey.d.ts +1 -1
- package/dist/utilities/functions/matchAnyKey.js +15 -0
- package/dist/utilities/functions/parseSize.d.ts +1 -1
- package/dist/utilities/functions/parseSize.js +15 -0
- package/dist/utilities/functions/percentage.js +11 -0
- package/dist/utilities/functions/pipe.d.ts +1 -1
- package/dist/utilities/functions/reject.d.ts +25 -0
- package/dist/utilities/functions/reject.js +28 -0
- package/dist/utilities/functions/resolveEnumProp.d.ts +19 -0
- package/dist/utilities/functions/resolveEnumProp.js +5 -0
- package/dist/utilities/functions/slotKey.d.ts +13 -0
- package/dist/utilities/functions/slotKey.js +4 -0
- package/dist/utilities/functions/sort.d.ts +2 -2
- package/dist/utilities/functions/sort.js +19 -0
- package/dist/utilities/functions/throttle.js +5 -0
- package/dist/utilities/functions/waitFor.d.ts +9 -2
- package/dist/utilities/functions/waitFor.js +14 -0
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +11 -0
- package/dist/utilities/functions/warnRemovedAttrs.js +20 -0
- package/dist/utilities/functions/when.js +5 -0
- package/dist/utilities/misc/iconsInjectionKey.d.ts +15 -0
- package/dist/utilities/misc/iconsInjectionKey.js +4 -0
- package/dist/utilities/misc/transitions.d.ts +5 -0
- package/dist/utilities/misc/transitions.js +8 -0
- package/dist/utils/injectLibraryStyles.d.ts +6 -0
- package/dist/utils/injectLibraryStyles.js +38 -0
- package/dist/validated/BbCheckbox.vue.d.ts +29 -0
- package/dist/validated/BbCheckbox.vue.js +5 -0
- package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/validated/BbCheckboxGroup.vue.d.ts +34 -0
- package/dist/validated/BbCheckboxGroup.vue.js +5 -0
- package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/validated/BbColorInput.vue.d.ts +36 -0
- package/dist/validated/BbColorInput.vue.js +5 -0
- package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/validated/BbDatePickerInput.vue.d.ts +41 -0
- package/dist/validated/BbDatePickerInput.vue.js +5 -0
- package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +90 -0
- package/dist/validated/BbDropzone.vue.d.ts +24 -0
- package/dist/validated/BbDropzone.vue.js +5 -0
- package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/validated/BbForm.vue.d.ts +28 -0
- package/dist/validated/BbForm.vue.js +5 -0
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/validated/BbNumberInput.vue.d.ts +36 -0
- package/dist/validated/BbNumberInput.vue.js +5 -0
- package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbRadioGroup.vue.d.ts +34 -0
- package/dist/validated/BbRadioGroup.vue.js +5 -0
- package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/validated/BbRating.vue.d.ts +30 -0
- package/dist/validated/BbRating.vue.js +5 -0
- package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/validated/BbSelect.vue.d.ts +46 -0
- package/dist/validated/BbSelect.vue.js +5 -0
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/validated/BbSlider.vue.d.ts +36 -0
- package/dist/validated/BbSlider.vue.js +5 -0
- package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/validated/BbSwitch.vue.d.ts +29 -0
- package/dist/validated/BbSwitch.vue.js +5 -0
- package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/validated/BbSwitchGroup.vue.d.ts +34 -0
- package/dist/validated/BbSwitchGroup.vue.js +5 -0
- package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/validated/BbTag.vue.d.ts +36 -0
- package/dist/validated/BbTag.vue.js +5 -0
- package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbTextInput.vue.d.ts +36 -0
- package/dist/validated/BbTextInput.vue.js +5 -0
- package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbTextarea.vue.d.ts +36 -0
- package/dist/validated/BbTextarea.vue.js +5 -0
- package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/validated/BbTimePickerInput.vue.d.ts +37 -0
- package/dist/validated/BbTimePickerInput.vue.js +5 -0
- package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/validated/index.d.ts +29 -0
- package/dist/validated/useValidatedField.d.ts +93 -0
- package/dist/validated/useValidatedField.js +51 -0
- package/dist/validated.js +21 -0
- package/dist/vite-plugin.d.ts +261 -0
- package/dist/vite.js +603 -0
- package/llms.txt +107 -0
- package/package.json +181 -60
- package/scripts/lib/__fixtures__/validated-manifest.json +65 -0
- package/scripts/lib/ensure-manifest.mjs +39 -0
- package/scripts/lib/eslint-plugin-autofix.node.test.mjs +109 -0
- package/scripts/lib/eslint-plugin-recommended.node.test.mjs +87 -0
- package/scripts/lib/eslint-plugin-slots.node.test.mjs +271 -0
- package/scripts/lib/eslint-plugin.mjs +702 -0
- package/scripts/lib/eslint-plugin.node.test.mjs +193 -0
- package/scripts/lib/html-attributes.mjs +191 -0
- package/scripts/lib/mcp-config.mjs +126 -0
- package/scripts/lib/migrate-fix.mjs +115 -0
- package/scripts/lib/validate-bb-markup.mjs +488 -0
- package/dist/ai/BaseButton.md +0 -449
- package/dist/ai/BaseCheckbox.md +0 -512
- package/dist/ai/BaseCheckboxGroup.md +0 -597
- package/dist/ai/BaseColorInput.md +0 -461
- package/dist/ai/BaseDatePicker.md +0 -739
- package/dist/ai/BaseDatePickerInput.md +0 -1517
- package/dist/ai/BaseDialog.md +0 -610
- package/dist/ai/BaseInputContainer.md +0 -570
- package/dist/ai/BaseNumberInput.md +0 -509
- package/dist/ai/BaseRadio.md +0 -405
- package/dist/ai/BaseRadioGroup.md +0 -535
- package/dist/ai/BaseRating.md +0 -489
- package/dist/ai/BaseSelect.md +0 -1742
- package/dist/ai/BaseSlider.md +0 -871
- package/dist/ai/BaseSwitch.md +0 -322
- package/dist/ai/BaseSwitchGroup.md +0 -298
- package/dist/ai/BaseTag.md +0 -623
- package/dist/ai/BaseTextInput.md +0 -392
- package/dist/ai/BaseTextarea.md +0 -398
- package/dist/ai/BbChip.md +0 -147
- package/dist/ai/BbIntersection.md +0 -120
- package/dist/ai/BbRatio.md +0 -61
- package/dist/ai/BbRows.md +0 -307
- package/dist/ai/BbTab.md +0 -950
- package/dist/ai/CommonInputInnerContainer.md +0 -414
- package/dist/ai/CommonInputOuterContainer.md +0 -55
- package/dist/components/BaseButton/BaseButton.vue.d.ts +0 -14
- package/dist/components/BaseButton/types.d.ts +0 -159
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -39
- package/dist/components/BaseCheckbox/types.d.ts +0 -213
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +0 -30
- package/dist/components/BaseCheckboxGroup/types.d.ts +0 -282
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +0 -35
- package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +0 -13
- package/dist/components/BaseColorInput/types.d.ts +0 -233
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +0 -15
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +0 -58
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +0 -12
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +0 -12
- package/dist/components/BaseDatePicker/types.d.ts +0 -100
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -26
- package/dist/components/BaseDatePickerInput/types.d.ts +0 -206
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -37
- package/dist/components/BaseDialog/types.d.ts +0 -180
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +0 -18
- package/dist/components/BaseInputContainer/types.d.ts +0 -126
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +0 -46
- package/dist/components/BaseNumberInput/types.d.ts +0 -191
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +0 -31
- package/dist/components/BaseRadio/types.d.ts +0 -173
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +0 -30
- package/dist/components/BaseRadioGroup/types.d.ts +0 -240
- package/dist/components/BaseRating/BaseRating.vue.d.ts +0 -35
- package/dist/components/BaseRating/types.d.ts +0 -144
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -28
- package/dist/components/BaseSelect/types.d.ts +0 -470
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +0 -38
- package/dist/components/BaseSlider/types.d.ts +0 -201
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +0 -34
- package/dist/components/BaseSwitch/types.d.ts +0 -25
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +0 -30
- package/dist/components/BaseSwitchGroup/types.d.ts +0 -8
- package/dist/components/BaseTag/BaseTag.vue.d.ts +0 -37
- package/dist/components/BaseTag/types.d.ts +0 -136
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +0 -33
- package/dist/components/BaseTextInput/types.d.ts +0 -166
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +0 -31
- package/dist/components/BaseTextarea/types.d.ts +0 -151
- package/dist/components/BbChip/BbChip.vue.d.ts +0 -17
- package/dist/components/BbChip/types.d.ts +0 -23
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +0 -23
- package/dist/components/BbIntersection/types.d.ts +0 -36
- package/dist/components/BbRatio/BbRatio.vue.d.ts +0 -14
- package/dist/components/BbRatio/types.d.ts +0 -15
- package/dist/components/BbRows/BbRows.vue.d.ts +0 -62
- package/dist/components/BbRows/types.d.ts +0 -21
- package/dist/components/BbTab/BbTab.vue.d.ts +0 -27
- package/dist/components/BbTab/types.d.ts +0 -186
- package/dist/components/CommonInputInnerContainer/CommonInputInnerContainer.vue.d.ts +0 -15
- package/dist/components/CommonInputInnerContainer/types.d.ts +0 -47
- package/dist/components/CommonInputOuterContainer/CommonInputOuterContainer.vue.d.ts +0 -11
- package/dist/components/CommonInputOuterContainer/types.d.ts +0 -16
- package/dist/composables/useModalsState.d.ts +0 -5
- package/dist/composables/useQueue.d.ts +0 -58
- package/dist/composables/useWizard.d.ts +0 -85
- package/dist/i18n/en.d.ts +0 -67
- package/dist/i18n/it.d.ts +0 -67
- package/dist/index.css +0 -2
- package/dist/index100.js +0 -6
- package/dist/index101.js +0 -300
- package/dist/index102.js +0 -16
- package/dist/index103.js +0 -16
- package/dist/index104.js +0 -27
- package/dist/index109.js +0 -19
- package/dist/index11.js +0 -42
- package/dist/index110.js +0 -12
- package/dist/index111.js +0 -19
- package/dist/index112.js +0 -25
- package/dist/index114.js +0 -7
- package/dist/index115.js +0 -241
- package/dist/index116.js +0 -5
- package/dist/index117.js +0 -42
- package/dist/index118.js +0 -5
- package/dist/index119.js +0 -53
- package/dist/index120.js +0 -5
- package/dist/index121.js +0 -32
- package/dist/index122.js +0 -5
- package/dist/index124.js +0 -52
- package/dist/index125.js +0 -5
- package/dist/index126.js +0 -223
- package/dist/index128.js +0 -6
- package/dist/index129.js +0 -162
- package/dist/index13.js +0 -92
- package/dist/index130.js +0 -25
- package/dist/index131.js +0 -51
- package/dist/index132.js +0 -5
- package/dist/index133.js +0 -607
- package/dist/index135.js +0 -6
- package/dist/index136.js +0 -14
- package/dist/index137.js +0 -153
- package/dist/index139.js +0 -6
- package/dist/index14.js +0 -306
- package/dist/index140.js +0 -224
- package/dist/index141.js +0 -5
- package/dist/index143.js +0 -128
- package/dist/index145.js +0 -6
- package/dist/index146.js +0 -8
- package/dist/index147.js +0 -182
- package/dist/index149.js +0 -6
- package/dist/index15.js +0 -10
- package/dist/index151.js +0 -4
- package/dist/index152.js +0 -95
- package/dist/index154.js +0 -6
- package/dist/index155.js +0 -168
- package/dist/index157.js +0 -6
- package/dist/index158.js +0 -145
- package/dist/index16.js +0 -59
- package/dist/index160.js +0 -6
- package/dist/index161.js +0 -53
- package/dist/index163.js +0 -6
- package/dist/index164.js +0 -16
- package/dist/index166.js +0 -35
- package/dist/index168.js +0 -6
- package/dist/index169.js +0 -89
- package/dist/index171.js +0 -6
- package/dist/index172.js +0 -82
- package/dist/index174.js +0 -6
- package/dist/index175.js +0 -38
- package/dist/index176.js +0 -461
- package/dist/index177.js +0 -28
- package/dist/index178.js +0 -66
- package/dist/index18.js +0 -35
- package/dist/index180.js +0 -162
- package/dist/index181.js +0 -5
- package/dist/index182.js +0 -217
- package/dist/index183.js +0 -5
- package/dist/index184.js +0 -112
- package/dist/index185.js +0 -5
- package/dist/index186.js +0 -459
- package/dist/index188.js +0 -6
- package/dist/index19.js +0 -4
- package/dist/index192.js +0 -268
- package/dist/index194.js +0 -6
- package/dist/index195.js +0 -124
- package/dist/index197.js +0 -6
- package/dist/index198.js +0 -174
- package/dist/index2.js +0 -20
- package/dist/index20.js +0 -9
- package/dist/index200.js +0 -6
- package/dist/index201.js +0 -224
- package/dist/index203.js +0 -6
- package/dist/index204.js +0 -135
- package/dist/index206.js +0 -6
- package/dist/index207.js +0 -5
- package/dist/index208.js +0 -170
- package/dist/index21.js +0 -35
- package/dist/index210.js +0 -6
- package/dist/index211.js +0 -37
- package/dist/index213.js +0 -6
- package/dist/index214.js +0 -63
- package/dist/index216.js +0 -6
- package/dist/index217.js +0 -74
- package/dist/index219.js +0 -6
- package/dist/index22.js +0 -6
- package/dist/index220.js +0 -65
- package/dist/index222.js +0 -6
- package/dist/index223.js +0 -67
- package/dist/index225.js +0 -6
- package/dist/index226.js +0 -41
- package/dist/index228.js +0 -6
- package/dist/index229.js +0 -10
- package/dist/index23.js +0 -7
- package/dist/index230.js +0 -22
- package/dist/index232.js +0 -8
- package/dist/index233.js +0 -297
- package/dist/index235.js +0 -6
- package/dist/index236.js +0 -47
- package/dist/index237.js +0 -165
- package/dist/index239.js +0 -6
- package/dist/index24.js +0 -9
- package/dist/index241.js +0 -159
- package/dist/index243.js +0 -6
- package/dist/index244.js +0 -134
- package/dist/index246.js +0 -6
- package/dist/index247.js +0 -167
- package/dist/index249.js +0 -6
- package/dist/index25.js +0 -24
- package/dist/index250.js +0 -147
- package/dist/index252.js +0 -6
- package/dist/index253.js +0 -35
- package/dist/index255.js +0 -6
- package/dist/index256.js +0 -65
- package/dist/index258.js +0 -6
- package/dist/index259.js +0 -19
- package/dist/index260.js +0 -5
- package/dist/index261.js +0 -160
- package/dist/index263.js +0 -6
- package/dist/index264.js +0 -60
- package/dist/index266.js +0 -6
- package/dist/index267.js +0 -134
- package/dist/index269.js +0 -6
- package/dist/index27.js +0 -4
- package/dist/index271.js +0 -206
- package/dist/index273.js +0 -6
- package/dist/index274.js +0 -85
- package/dist/index275.js +0 -5
- package/dist/index276.js +0 -55
- package/dist/index277.js +0 -5
- package/dist/index278.js +0 -164
- package/dist/index28.js +0 -8
- package/dist/index280.js +0 -6
- package/dist/index281.js +0 -145
- package/dist/index283.js +0 -6
- package/dist/index284.js +0 -11
- package/dist/index285.js +0 -200
- package/dist/index287.js +0 -6
- package/dist/index288.js +0 -241
- package/dist/index29.js +0 -7
- package/dist/index290.js +0 -6
- package/dist/index291.js +0 -21
- package/dist/index293.js +0 -6
- package/dist/index294.js +0 -125
- package/dist/index296.js +0 -6
- package/dist/index297.js +0 -161
- package/dist/index299.js +0 -6
- package/dist/index30.js +0 -118
- package/dist/index300.js +0 -127
- package/dist/index302.js +0 -6
- package/dist/index303.js +0 -20
- package/dist/index305.js +0 -6
- package/dist/index306.js +0 -116
- package/dist/index307.js +0 -5
- package/dist/index308.js +0 -507
- package/dist/index31.js +0 -10
- package/dist/index310.js +0 -6
- package/dist/index311.js +0 -196
- package/dist/index313.js +0 -6
- package/dist/index314.js +0 -142
- package/dist/index316.js +0 -6
- package/dist/index317.js +0 -134
- package/dist/index319.js +0 -6
- package/dist/index32.js +0 -28
- package/dist/index320.js +0 -162
- package/dist/index322.js +0 -6
- package/dist/index323.js +0 -319
- package/dist/index325.js +0 -6
- package/dist/index326.js +0 -40
- package/dist/index327.js +0 -43
- package/dist/index328.js +0 -665
- package/dist/index33.js +0 -5
- package/dist/index330.js +0 -6
- package/dist/index331.js +0 -155
- package/dist/index333.js +0 -6
- package/dist/index334.js +0 -142
- package/dist/index336.js +0 -6
- package/dist/index337.js +0 -155
- package/dist/index339.js +0 -6
- package/dist/index34.js +0 -112
- package/dist/index340.js +0 -58
- package/dist/index341.js +0 -5
- package/dist/index342.js +0 -20
- package/dist/index344.js +0 -6
- package/dist/index345.js +0 -142
- package/dist/index347.js +0 -6
- package/dist/index349.js +0 -109
- package/dist/index351.js +0 -6
- package/dist/index352.js +0 -55
- package/dist/index353.js +0 -24
- package/dist/index354.js +0 -23
- package/dist/index355.js +0 -839
- package/dist/index356.js +0 -474
- package/dist/index357.js +0 -52
- package/dist/index358.js +0 -7
- package/dist/index36.js +0 -6
- package/dist/index38.js +0 -63
- package/dist/index39.js +0 -63
- package/dist/index40.js +0 -9
- package/dist/index42.js +0 -8
- package/dist/index43.js +0 -179
- package/dist/index44.js +0 -21
- package/dist/index46.js +0 -385
- package/dist/index48.js +0 -6
- package/dist/index49.js +0 -33
- package/dist/index5.js +0 -34
- package/dist/index50.js +0 -12
- package/dist/index51.js +0 -8
- package/dist/index52.js +0 -106
- package/dist/index53.js +0 -330
- package/dist/index54.js +0 -97
- package/dist/index55.js +0 -328
- package/dist/index56.js +0 -28
- package/dist/index57.js +0 -102
- package/dist/index58.js +0 -157
- package/dist/index6.js +0 -38
- package/dist/index60.js +0 -6
- package/dist/index61.js +0 -131
- package/dist/index62.js +0 -5
- package/dist/index65.js +0 -35
- package/dist/index66.js +0 -26
- package/dist/index68.js +0 -6
- package/dist/index69.js +0 -54
- package/dist/index7.js +0 -58
- package/dist/index71.js +0 -6
- package/dist/index72.js +0 -14
- package/dist/index74.js +0 -6
- package/dist/index75.js +0 -159
- package/dist/index77.js +0 -6
- package/dist/index78.js +0 -4
- package/dist/index79.js +0 -4
- package/dist/index80.js +0 -54
- package/dist/index81.js +0 -5
- package/dist/index82.js +0 -5
- package/dist/index83.js +0 -141
- package/dist/index85.js +0 -6
- package/dist/index86.js +0 -65
- package/dist/index88.js +0 -6
- package/dist/index89.js +0 -30
- package/dist/index9.js +0 -11
- package/dist/index90.js +0 -19
- package/dist/index91.js +0 -17
- package/dist/index92.js +0 -9
- package/dist/index93.js +0 -34
- package/dist/index95.js +0 -16
- package/dist/index96.js +0 -10
- package/dist/index97.js +0 -18
- package/dist/index98.js +0 -189
- package/dist/types/VoidHtmlElements.d.ts +0 -1
- package/dist/utilities/functions/add.d.ts +0 -1
- package/dist/utilities/functions/booleanishToBoolean.d.ts +0 -6
- package/dist/utilities/functions/capitalize.d.ts +0 -4
- package/dist/utilities/functions/cloneDeep.d.ts +0 -1
- package/dist/utilities/functions/debounce.d.ts +0 -1
- package/dist/utilities/functions/drop.d.ts +0 -1
- package/dist/utilities/functions/exceedsPrecision.d.ts +0 -1
- package/dist/utilities/functions/findRight.d.ts +0 -4
- package/dist/utilities/functions/findRightIndex.d.ts +0 -4
- package/dist/utilities/functions/flow.d.ts +0 -1
- package/dist/utilities/functions/getHueFromRGB.d.ts +0 -9
- package/dist/utilities/functions/groupBy.d.ts +0 -6
- package/dist/utilities/functions/gt.d.ts +0 -7
- package/dist/utilities/functions/hexToRGB.d.ts +0 -7
- package/dist/utilities/functions/hslToHex.d.ts +0 -1
- package/dist/utilities/functions/includes.d.ts +0 -1
- package/dist/utilities/functions/initial.d.ts +0 -1
- package/dist/utilities/functions/isCssColor.d.ts +0 -5
- package/dist/utilities/functions/lt.d.ts +0 -7
- package/dist/utilities/functions/makeUrl.d.ts +0 -1
- package/dist/utilities/functions/mapKeys.d.ts +0 -5
- package/dist/utilities/functions/mapValues.d.ts +0 -1
- package/dist/utilities/functions/matchesPropertyInsensitive.d.ts +0 -1
- package/dist/utilities/functions/max.d.ts +0 -2
- package/dist/utilities/functions/mean.d.ts +0 -4
- package/dist/utilities/functions/merge.d.ts +0 -11
- package/dist/utilities/functions/millisecondsTo.d.ts +0 -1
- package/dist/utilities/functions/negate.d.ts +0 -4
- package/dist/utilities/functions/normalizeItemGroups.d.ts +0 -13
- package/dist/utilities/functions/omit.d.ts +0 -2
- package/dist/utilities/functions/overEvery.d.ts +0 -4
- package/dist/utilities/functions/pick.d.ts +0 -1
- package/dist/utilities/functions/replace.d.ts +0 -1
- package/dist/utilities/functions/replaceInTree.d.ts +0 -4
- package/dist/utilities/functions/retry.d.ts +0 -5
- package/dist/utilities/functions/roundToTheNearest.d.ts +0 -8
- package/dist/utilities/functions/set.d.ts +0 -15
- package/dist/utilities/functions/stub.d.ts +0 -6
- package/dist/utilities/functions/transposePercent.d.ts +0 -9
- package/dist/utilities/functions/tryTo.d.ts +0 -2
- package/dist/utilities/functions/uniqBy.d.ts +0 -1
- /package/dist/{index64.js → _virtual/_plugin-vue_export-helper.js} +0 -0
- /package/dist/components/{BaseButton → BbBaseButton}/RouterComponent.vue.d.ts +0 -0
- /package/dist/components/{BaseDatePicker/BaseDatePicker.vue.d.ts → BbBaseDatePicker/BbBaseDatePicker.vue.d.ts} +0 -0
- /package/dist/{index165.js → composables/useArray.js} +0 -0
- /package/dist/{index17.js → composables/useFrameworkDetection.js} +0 -0
- /package/dist/{index12.js → composables/useId.js} +0 -0
- /package/dist/{index107.js → utilities/functions/chunk.js} +0 -0
- /package/dist/{index8.js → utilities/functions/clamp.js} +0 -0
- /package/dist/{index150.js → utilities/functions/curry.js} +0 -0
- /package/dist/{index45.js → utilities/functions/extractDomContainer.js} +0 -0
- /package/dist/{index270.js → utilities/functions/findInTree.js} +0 -0
- /package/dist/{index348.js → utilities/functions/flattenTree.js} +0 -0
- /package/dist/{index41.js → utilities/functions/get.js} +0 -0
- /package/dist/{index189.js → utilities/functions/head.js} +0 -0
- /package/dist/{index108.js → utilities/functions/identity.js} +0 -0
- /package/dist/{index179.js → utilities/functions/indexBy.js} +0 -0
- /package/dist/{index37.js → utilities/functions/isHex.js} +0 -0
- /package/dist/{index94.js → utilities/functions/isNil.js} +0 -0
- /package/dist/{index26.js → utilities/functions/isNotNil.js} +0 -0
- /package/dist/{index105.js → utilities/functions/last.js} +0 -0
- /package/dist/{index142.js → utilities/functions/noop.js} +0 -0
- /package/dist/{index231.js → utilities/functions/parseWidthString.js} +0 -0
- /package/dist/{index240.js → utilities/functions/pickBy.js} +0 -0
- /package/dist/{index123.js → utilities/functions/range.js} +0 -0
- /package/dist/{index190.js → utilities/functions/snapToStep.js} +0 -0
- /package/dist/{index191.js → utilities/functions/transpose.js} +0 -0
- /package/dist/{index106.js → utilities/functions/validateDateFormat.js} +0 -0
- /package/dist/{index10.js → utilities/functions/wait.js} +0 -0
|
@@ -1,359 +1,598 @@
|
|
|
1
1
|
# BbColorPalette
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Agent Contract
|
|
4
|
+
|
|
5
|
+
- Safety level: **Consumer API**
|
|
6
|
+
- Group: **Overlay**
|
|
7
|
+
- Description: Opens an anchored popover color palette for color picking interactions.
|
|
8
|
+
- Usage rule: Prefer this component for consumer-facing implementations.
|
|
9
|
+
- Implementation source (only when the contract below is not enough): [source/BbColorPalette.md](./source/BbColorPalette.md)
|
|
10
|
+
|
|
11
|
+
## Usage & Guidelines
|
|
12
|
+
|
|
13
|
+
### When to use
|
|
14
|
+
|
|
15
|
+
`BbColorPalette` is a **picker popover**, not a form field. It renders an
|
|
16
|
+
activator _you_ supply and opens a floating palette — a gradient canvas, hue
|
|
17
|
+
slider, optional swatches, optional alpha slider and optional eyedropper. The
|
|
18
|
+
value is a hex string via `v-model` (`string | null`). Reach for it wherever a
|
|
19
|
+
color is _chosen off a trigger you control_: a color dot beside a calendar
|
|
20
|
+
category, a label swatch in a context menu, a brand-accent chip in a toolbar.
|
|
21
|
+
|
|
22
|
+
Choose between the two color components by _what the color is_:
|
|
23
|
+
|
|
24
|
+
- A **typed value in a form** — a settings row, a brand color, anything with a
|
|
25
|
+
label, hint, validation and a text representation the user can read and edit →
|
|
26
|
+
**`BbColorInput`** (`./BbColorInput.md`). It embeds this exact palette as its
|
|
27
|
+
swatch dot and adds the whole labelled-input surface around it.
|
|
28
|
+
- A color **assigned to an entity off your own trigger**, no text field, no
|
|
29
|
+
wrapper chrome, no validation → **`BbColorPalette`** (here). Think "paint this
|
|
30
|
+
thing", not "fill in this field".
|
|
31
|
+
|
|
32
|
+
Give it a `label`: it becomes the activator's `aria-label`, essential because
|
|
33
|
+
your trigger is often an unlabelled color dot.
|
|
34
|
+
|
|
35
|
+
> Swatch dots in these examples bind their fill with `:style="{ backgroundColor }"`
|
|
36
|
+
> because the color is a runtime value — the one place a static utility class
|
|
37
|
+
> cannot express what you need. Everything else is layout-only Tailwind.
|
|
38
|
+
|
|
39
|
+
### The value: hex in, hex out
|
|
40
|
+
|
|
41
|
+
The model is hex-only and lowercase on emit: `#RRGGBB`, or `#RRGGBBAA` when
|
|
42
|
+
`alpha` is enabled. There is no rgb()/hsl() mode — convert at the edges if your
|
|
43
|
+
store uses another format. Unlike `BbColorInput` (which only commits a
|
|
44
|
+
_complete, valid_ hex and never surfaces half-typed values), the palette has no
|
|
45
|
+
text field, so **`update:modelValue` fires continuously** as the user drags the
|
|
46
|
+
gradient, hue or alpha handle, and once per swatch/eyedropper pick. Treat it
|
|
47
|
+
like an `input`-frequency event: cheap handlers, or debounce your own
|
|
48
|
+
persistence.
|
|
49
|
+
|
|
50
|
+
`modelValue` is **required** — seed it explicitly as `ref<string | null>(null)`.
|
|
51
|
+
Leaving it `undefined` is a real omission (Vue warns about the missing required
|
|
52
|
+
prop), so always initialise it; `null` is the correct "no color yet" value.
|
|
53
|
+
`null` renders an "empty" trigger (nothing painted) and is what you get when
|
|
54
|
+
nothing is chosen yet.
|
|
55
|
+
|
|
56
|
+
The label manager below embraces the emit frequency instead of fighting it: the
|
|
57
|
+
chip repaints on every drag frame (cheap — it's one style binding), while the
|
|
58
|
+
_persistence_ is debounced behind a short timer, so only the trailing edge of a
|
|
59
|
+
drag would hit your backend.
|
|
60
|
+
|
|
61
|
+
**Issue labels — live repaint, debounced save**
|
|
4
62
|
|
|
5
63
|
```vue
|
|
6
64
|
<template>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
v-if="!hasExternalActivator"
|
|
10
|
-
name="activator"
|
|
11
|
-
v-bind="{
|
|
12
|
-
props: { ref: setActivatorRef },
|
|
13
|
-
anchorProps: { ref: setAnchorRef },
|
|
14
|
-
open: isOpen,
|
|
15
|
-
color: modelValue,
|
|
16
|
-
disabled,
|
|
17
|
-
}"
|
|
18
|
-
/>
|
|
19
|
-
|
|
20
|
-
<!-- Palette popover -->
|
|
21
|
-
<CommonPopover
|
|
22
|
-
v-model="isOpen"
|
|
23
|
-
:anchor="effectiveAnchor"
|
|
24
|
-
:aria-label="t('colorInput.dialogLabel').value"
|
|
25
|
-
:arrow-padding="arrowPadding"
|
|
26
|
-
:boundary="boundary"
|
|
27
|
-
class="bb-color-palette__popover"
|
|
28
|
-
dialog
|
|
29
|
-
:eager="eager"
|
|
30
|
-
:flip="flip"
|
|
31
|
-
:hide-arrow="!showArrow"
|
|
32
|
-
:offset="offset"
|
|
33
|
-
:padding="padding"
|
|
34
|
-
:placement="placement"
|
|
35
|
-
:transition-duration="transitionDuration"
|
|
65
|
+
<div
|
|
66
|
+
class="flex max-w-sm flex-col gap-2 rounded-[var(--bb-radius)] border p-3"
|
|
36
67
|
>
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
68
|
+
<div class="flex items-center justify-between gap-3">
|
|
69
|
+
<div class="flex flex-col gap-0.5">
|
|
70
|
+
<span class="text-sm font-medium">Repository labels</span>
|
|
71
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]"
|
|
72
|
+
>bitboss/ui · paint from the row</span
|
|
73
|
+
>
|
|
74
|
+
</div>
|
|
75
|
+
<span class="shrink-0 text-xs text-[color:var(--bb-text-muted)]">
|
|
76
|
+
{{ pending ? 'Saving…' : 'All changes saved' }}
|
|
77
|
+
</span>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<ul class="flex flex-col gap-0.5">
|
|
81
|
+
<li
|
|
82
|
+
v-for="label in labels"
|
|
83
|
+
:key="label.name"
|
|
84
|
+
class="flex items-center gap-2 rounded-[var(--bb-radius)] px-1 py-1 hover:bg-[color:var(--bb-surface-hover)]"
|
|
85
|
+
>
|
|
86
|
+
<span
|
|
87
|
+
class="shrink-0 rounded-full px-2 py-0.5 text-xs font-medium"
|
|
88
|
+
:style="{
|
|
89
|
+
backgroundColor: label.color,
|
|
90
|
+
color: contrastOn(label.color),
|
|
91
|
+
}"
|
|
92
|
+
>
|
|
93
|
+
{{ label.name }}
|
|
94
|
+
</span>
|
|
95
|
+
<span
|
|
96
|
+
class="mr-auto truncate text-xs text-[color:var(--bb-text-muted)]"
|
|
97
|
+
>
|
|
98
|
+
{{ label.description }}
|
|
99
|
+
</span>
|
|
100
|
+
|
|
101
|
+
<BbColorPalette
|
|
102
|
+
v-model="label.color"
|
|
103
|
+
:label="`Color for ${label.name}`"
|
|
104
|
+
placement="bottom-end"
|
|
105
|
+
:swatches="labelSwatches"
|
|
106
|
+
@update:model-value="queueSave"
|
|
107
|
+
>
|
|
108
|
+
<template #activator="{ props, value, open }">
|
|
109
|
+
<button
|
|
110
|
+
v-bind="props"
|
|
111
|
+
class="h-4 w-4 shrink-0 rounded-full border border-[color:var(--bb-border)] outline-none ring-offset-1 focus-visible:ring-2 focus-visible:ring-[color:var(--bb-ring)]"
|
|
112
|
+
:class="open ? 'ring-2 ring-[color:var(--bb-ring)]' : ''"
|
|
113
|
+
:style="{ backgroundColor: value ?? 'transparent' }"
|
|
114
|
+
type="button"
|
|
115
|
+
/>
|
|
116
|
+
</template>
|
|
117
|
+
</BbColorPalette>
|
|
118
|
+
</li>
|
|
119
|
+
</ul>
|
|
120
|
+
</div>
|
|
47
121
|
</template>
|
|
48
122
|
|
|
49
123
|
<script setup lang="ts">
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import { useLocale } from '@/composables/useLocale';
|
|
53
|
-
import ColorPallette from '../BaseColorInput/ColorPalette.vue';
|
|
54
|
-
import CommonPopover from '../CommonPopover/CommonPopover.vue';
|
|
55
|
-
import type {
|
|
56
|
-
BbColorPaletteProps,
|
|
57
|
-
BbColorPaletteEvents,
|
|
58
|
-
BbColorPaletteSlots,
|
|
59
|
-
} from './types';
|
|
60
|
-
|
|
61
|
-
const props = withDefaults(defineProps<BbColorPaletteProps>(), {
|
|
62
|
-
alpha: false,
|
|
63
|
-
flip: true,
|
|
64
|
-
offset: 4,
|
|
65
|
-
padding: 6,
|
|
66
|
-
picker: false,
|
|
67
|
-
showArrow: false,
|
|
68
|
-
transitionDuration: 250,
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
const emit = defineEmits<BbColorPaletteEvents>();
|
|
72
|
-
|
|
73
|
-
defineSlots<BbColorPaletteSlots>();
|
|
74
|
-
|
|
75
|
-
const { t } = useLocale();
|
|
76
|
-
|
|
77
|
-
// ---- Palette ref (for focus management) ----------------------------------------
|
|
78
|
-
|
|
79
|
-
const paletteRef = ref<{ el: HTMLElement | null } | null>(null);
|
|
80
|
-
|
|
81
|
-
// ---- Activator element ---------------------------------------------------------
|
|
82
|
-
|
|
83
|
-
const activatorEl = ref<HTMLElement | undefined>();
|
|
84
|
-
const anchorEl = ref<HTMLElement | undefined>();
|
|
85
|
-
const hasExternalActivator = computed(() => props.activator != null);
|
|
86
|
-
|
|
87
|
-
/** Ref callback passed to the activator slot. */
|
|
88
|
-
const setActivatorRef = (reference: unknown) => {
|
|
89
|
-
activatorEl.value = extractDomContainer(reference) ?? undefined;
|
|
90
|
-
};
|
|
124
|
+
import { ref } from 'vue';
|
|
125
|
+
import { BbColorPalette } from 'bitboss-ui';
|
|
91
126
|
|
|
92
|
-
|
|
93
|
-
const setAnchorRef = (reference: unknown) => {
|
|
94
|
-
anchorEl.value = extractDomContainer(reference) ?? undefined;
|
|
95
|
-
};
|
|
127
|
+
type Label = { name: string; description: string; color: string };
|
|
96
128
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
129
|
+
const labels = ref<Label[]>([
|
|
130
|
+
{ name: 'bug', description: "Something isn't working", color: '#d73a4a' },
|
|
131
|
+
{
|
|
132
|
+
name: 'enhancement',
|
|
133
|
+
description: 'New feature or request',
|
|
134
|
+
color: '#2563eb',
|
|
102
135
|
},
|
|
103
|
-
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
watch(
|
|
108
|
-
() => props.anchor,
|
|
109
|
-
(val) => {
|
|
110
|
-
anchorEl.value =
|
|
111
|
-
val != null ? (extractDomContainer(val) ?? undefined) : undefined;
|
|
136
|
+
{
|
|
137
|
+
name: 'documentation',
|
|
138
|
+
description: 'Improvements to the docs',
|
|
139
|
+
color: '#0e8a16',
|
|
112
140
|
},
|
|
113
|
-
|
|
114
|
-
|
|
141
|
+
]);
|
|
142
|
+
|
|
143
|
+
// Each inner array is a COLUMN of shades.
|
|
144
|
+
const labelSwatches: string[][] = [
|
|
145
|
+
['#d73a4a', '#b91c1c', '#7f1d1d'],
|
|
146
|
+
['#0e8a16', '#047857', '#065f46'],
|
|
147
|
+
['#2563eb', '#4f46e5', '#6d28d9'],
|
|
148
|
+
];
|
|
149
|
+
|
|
150
|
+
const pending = ref(false);
|
|
151
|
+
let saveTimer: ReturnType<typeof setTimeout> | undefined;
|
|
152
|
+
|
|
153
|
+
/** Contrast-aware text on a label chip fill. */
|
|
154
|
+
const contrastOn = (hex: string) => {
|
|
155
|
+
const r = parseInt(hex.slice(1, 3), 16);
|
|
156
|
+
const g = parseInt(hex.slice(3, 5), 16);
|
|
157
|
+
const b = parseInt(hex.slice(5, 7), 16);
|
|
158
|
+
const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
|
|
159
|
+
return luminance > 0.6 ? 'var(--bb-text)' : 'var(--bb-panel)';
|
|
160
|
+
};
|
|
115
161
|
|
|
116
|
-
|
|
117
|
-
|
|
162
|
+
/**
|
|
163
|
+
* `update:modelValue` fires on every drag frame — the chip repaints from the
|
|
164
|
+
* model for free, but the (simulated) persistence only runs on the trailing
|
|
165
|
+
* edge of the stream.
|
|
166
|
+
*/
|
|
167
|
+
const queueSave = () => {
|
|
168
|
+
pending.value = true;
|
|
169
|
+
clearTimeout(saveTimer);
|
|
170
|
+
saveTimer = setTimeout(() => {
|
|
171
|
+
pending.value = false;
|
|
172
|
+
}, 600);
|
|
173
|
+
};
|
|
174
|
+
</script>
|
|
175
|
+
```
|
|
118
176
|
|
|
119
|
-
|
|
177
|
+
### The activator contract
|
|
120
178
|
|
|
121
|
-
|
|
122
|
-
|
|
179
|
+
Provide your trigger through the `#activator` slot. The scope hands you
|
|
180
|
+
everything to render and wire it:
|
|
123
181
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
182
|
+
- `props` — **spread onto your clickable element** (`v-bind="props"`). This
|
|
183
|
+
registers the element as the popover reference and lets the component attach
|
|
184
|
+
the click handler and the ARIA attributes (`aria-haspopup="dialog"`,
|
|
185
|
+
`aria-expanded`, `aria-label`) directly to it.
|
|
186
|
+
- `anchorProps` — spread onto a _wrapping_ element when the popover should align
|
|
187
|
+
to something larger than the click target (next section). When unused, the
|
|
188
|
+
activator is also the anchor.
|
|
189
|
+
- `open` — whether the palette is currently shown (read-only; drive a caret or a
|
|
190
|
+
focus ring from it).
|
|
191
|
+
- `value` — the current color, mirroring `modelValue` (use it to paint the dot).
|
|
192
|
+
- `disabled` — mirrors the `disabled` prop, for styling the trigger's inert
|
|
193
|
+
state.
|
|
129
194
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
if (event.target instanceof HTMLDialogElement) {
|
|
133
|
-
isOpen.value = false;
|
|
134
|
-
}
|
|
135
|
-
};
|
|
195
|
+
Each `BbColorPalette` instance owns exactly one value, so per-entity assignment
|
|
196
|
+
is one instance per row.
|
|
136
197
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
// Runs for both slot and external-activator paths whenever the element, open
|
|
180
|
-
// state, or label changes — keeping attributes always in sync.
|
|
181
|
-
|
|
182
|
-
const effectiveLabel = computed(
|
|
183
|
-
() => props.label ?? t('colorInput.openPicker').value
|
|
184
|
-
);
|
|
185
|
-
|
|
186
|
-
watch(
|
|
187
|
-
[activatorEl, isOpen, effectiveLabel] as const,
|
|
188
|
-
([el, open, label]) => {
|
|
189
|
-
if (!el) return;
|
|
190
|
-
el.setAttribute('aria-haspopup', 'dialog');
|
|
191
|
-
el.setAttribute('aria-expanded', open ? 'true' : 'false');
|
|
192
|
-
el.setAttribute('aria-label', label);
|
|
193
|
-
},
|
|
194
|
-
{ immediate: true }
|
|
195
|
-
);
|
|
198
|
+
**Per-category color dots (a calendar's legend)**
|
|
199
|
+
|
|
200
|
+
```vue
|
|
201
|
+
<template>
|
|
202
|
+
<div
|
|
203
|
+
class="flex max-w-xs flex-col gap-2 rounded-[var(--bb-radius)] border p-3"
|
|
204
|
+
>
|
|
205
|
+
<div class="flex flex-col gap-0.5">
|
|
206
|
+
<span class="text-sm font-medium">My calendars</span>
|
|
207
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
208
|
+
Dot triggers — one palette instance per category.
|
|
209
|
+
</span>
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
<ul class="flex flex-col gap-0.5">
|
|
213
|
+
<li
|
|
214
|
+
v-for="category in categories"
|
|
215
|
+
:key="category.name"
|
|
216
|
+
class="flex items-center justify-between gap-3 rounded-[var(--bb-radius)] px-1 py-1 hover:bg-[color:var(--bb-surface-hover)]"
|
|
217
|
+
>
|
|
218
|
+
<span class="text-sm">{{ category.name }}</span>
|
|
219
|
+
|
|
220
|
+
<BbColorPalette
|
|
221
|
+
v-model="category.color"
|
|
222
|
+
:label="`Choose a color for ${category.name}`"
|
|
223
|
+
placement="bottom-end"
|
|
224
|
+
:swatches="calendarSwatches"
|
|
225
|
+
>
|
|
226
|
+
<template #activator="{ props, value, open }">
|
|
227
|
+
<button
|
|
228
|
+
v-bind="props"
|
|
229
|
+
class="h-4 w-4 shrink-0 rounded-full border border-[color:var(--bb-border)] outline-none ring-offset-1 focus-visible:ring-2 focus-visible:ring-[color:var(--bb-ring)]"
|
|
230
|
+
:class="open ? 'ring-2 ring-[color:var(--bb-ring)]' : ''"
|
|
231
|
+
:style="{ backgroundColor: value ?? 'transparent' }"
|
|
232
|
+
type="button"
|
|
233
|
+
/>
|
|
234
|
+
</template>
|
|
235
|
+
</BbColorPalette>
|
|
236
|
+
</li>
|
|
237
|
+
</ul>
|
|
238
|
+
</div>
|
|
239
|
+
</template>
|
|
196
240
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
241
|
+
<script setup lang="ts">
|
|
242
|
+
import { ref } from 'vue';
|
|
243
|
+
import { BbColorPalette } from 'bitboss-ui';
|
|
244
|
+
|
|
245
|
+
type Category = { name: string; color: string | null };
|
|
246
|
+
|
|
247
|
+
const categories = ref<Category[]>([
|
|
248
|
+
{ name: 'Work', color: '#3b82f6' },
|
|
249
|
+
{ name: 'Personal', color: '#22c55e' },
|
|
250
|
+
{ name: 'Focus time', color: '#f59e0b' },
|
|
251
|
+
{ name: 'Travel', color: '#8b5cf6' },
|
|
252
|
+
]);
|
|
253
|
+
|
|
254
|
+
const calendarSwatches: string[][] = [
|
|
255
|
+
['#ef4444', '#f97316', '#f59e0b'],
|
|
256
|
+
['#22c55e', '#10b981', '#14b8a6'],
|
|
257
|
+
['#3b82f6', '#6366f1', '#8b5cf6'],
|
|
258
|
+
];
|
|
201
259
|
</script>
|
|
202
260
|
```
|
|
203
261
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
```ts
|
|
207
|
-
import type { CommonProps } from '@/types/CommonProps';
|
|
208
|
-
|
|
209
|
-
export type BbColorPaletteProps = Pick<
|
|
210
|
-
CommonProps,
|
|
211
|
-
| 'arrowPadding'
|
|
212
|
-
| 'eager'
|
|
213
|
-
| 'offset'
|
|
214
|
-
| 'padding'
|
|
215
|
-
| 'placement'
|
|
216
|
-
| 'transitionDuration'
|
|
217
|
-
> & {
|
|
218
|
-
/**
|
|
219
|
-
* v-model: the current color as a `#RRGGBB` hex string (or `#RRGGBBAA` when
|
|
220
|
-
* `alpha` is enabled), or `null` when empty.
|
|
221
|
-
*/
|
|
222
|
-
modelValue: string | null;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Enable the alpha channel. The picker shows an opacity slider and emits
|
|
226
|
-
* `#RRGGBBAA` hex8 values.
|
|
227
|
-
*
|
|
228
|
-
* @defaultValue `false`
|
|
229
|
-
*/
|
|
230
|
-
alpha?: boolean;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Controls swatches display in the picker:
|
|
234
|
-
* - `true` — show the built-in Material-palette swatches
|
|
235
|
-
* - `string[][]` — show custom swatches (each inner array = a column of shades)
|
|
236
|
-
* - `false` / omitted — no swatches section
|
|
237
|
-
*/
|
|
238
|
-
swatches?: boolean | string[][];
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* External activator element or component ref.
|
|
242
|
-
* When provided, the `activator` slot is not rendered and click listeners are
|
|
243
|
-
* attached programmatically to the referenced element — mirroring the
|
|
244
|
-
* BbDropdown activator API.
|
|
245
|
-
*/
|
|
246
|
-
activator?: HTMLElement | Record<string, any> | null;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Element or component ref the popover positions itself relative to.
|
|
250
|
-
* Defaults to the activator element when omitted, allowing the popover to
|
|
251
|
-
* be anchored to a larger container (e.g. the full input row) while a
|
|
252
|
-
* smaller element (e.g. a color dot) remains the click target.
|
|
253
|
-
*/
|
|
254
|
-
anchor?: HTMLElement | Record<string, any> | null;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Constrains the popover within a bounding element.
|
|
258
|
-
* Accepts an HTMLElement, a Vue component ref, or a CSS selector string.
|
|
259
|
-
*/
|
|
260
|
-
boundary?: HTMLElement | Record<string, any> | string | null;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Whether to flip the popover to the opposite side when there is not enough space.
|
|
264
|
-
*
|
|
265
|
-
* @defaultValue `true`
|
|
266
|
-
*/
|
|
267
|
-
flip?: boolean;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Show the popover arrow. Hidden by default since the palette has its own visual frame.
|
|
271
|
-
*
|
|
272
|
-
* @defaultValue `false`
|
|
273
|
-
*/
|
|
274
|
-
showArrow?: boolean;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Disable all interaction (activator and palette).
|
|
278
|
-
*/
|
|
279
|
-
disabled?: boolean;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Prevent opening the palette while keeping the activator visible.
|
|
283
|
-
*/
|
|
284
|
-
readonly?: boolean;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Accessible label applied to the activator element via `aria-label`.
|
|
288
|
-
* Defaults to the locale string for "Open color picker" when omitted.
|
|
289
|
-
*/
|
|
290
|
-
label?: string;
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Show an eyedropper button inside the palette to sample any color on screen.
|
|
294
|
-
* Uses the native EyeDropper API — hidden automatically on unsupported browsers.
|
|
295
|
-
*
|
|
296
|
-
* @defaultValue `false`
|
|
297
|
-
*/
|
|
298
|
-
picker?: boolean;
|
|
299
|
-
};
|
|
262
|
+
#### Attaching to an element you already have
|
|
300
263
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
264
|
+
When the trigger is an existing element or component (not markup you author in
|
|
265
|
+
the slot), pass it to the `activator` prop instead of using the slot — the same
|
|
266
|
+
click and ARIA wiring is attached programmatically, mirroring the `BbDropdown`
|
|
267
|
+
activator API. `anchor` does the same for the positioning element. This is the
|
|
268
|
+
escape hatch for composing the palette onto a third-party control or a ref you
|
|
269
|
+
hold.
|
|
307
270
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
};
|
|
271
|
+
```vue
|
|
272
|
+
<script setup lang="ts">
|
|
273
|
+
import { ref } from 'vue';
|
|
274
|
+
import { BbColorPalette, BbButton } from 'bitboss-ui';
|
|
313
275
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
ref: (el: unknown) => void;
|
|
318
|
-
};
|
|
276
|
+
const color = ref<string | null>('#4f46e5');
|
|
277
|
+
const triggerRef = ref();
|
|
278
|
+
</script>
|
|
319
279
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
* something larger than the click target (e.g. the full input row).
|
|
331
|
-
* When unused the activator element is also the anchor.
|
|
332
|
-
*/
|
|
333
|
-
anchorProps: BbColorPaletteAnchorProps;
|
|
334
|
-
/** Whether the palette popover is currently open. */
|
|
335
|
-
open: boolean;
|
|
336
|
-
/** The current color value (mirrors `modelValue`). */
|
|
337
|
-
color: string | null;
|
|
338
|
-
/** Whether the palette is disabled. */
|
|
339
|
-
disabled?: boolean;
|
|
340
|
-
};
|
|
280
|
+
<template>
|
|
281
|
+
<BbButton ref="triggerRef" variant="outline">Accent color</BbButton>
|
|
282
|
+
<BbColorPalette
|
|
283
|
+
v-model="color"
|
|
284
|
+
label="Accent color"
|
|
285
|
+
:activator="triggerRef"
|
|
286
|
+
:swatches="true"
|
|
287
|
+
/>
|
|
288
|
+
</template>
|
|
289
|
+
```
|
|
341
290
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
291
|
+
#### The `v-bb-color` directive
|
|
292
|
+
|
|
293
|
+
For the leanest case — a color dot in a table cell, a swatch you don't want to
|
|
294
|
+
wrap in a component per row — attach the `v-bb-color` directive to the element
|
|
295
|
+
instead of importing `BbColorPalette`. It is registered globally by the plugin
|
|
296
|
+
(`injectDirectives`, on by default) and renders no wrapper; click and ARIA wire
|
|
297
|
+
onto the host directly, exactly like the `activator` prop above.
|
|
298
|
+
|
|
299
|
+
The value is the palette's **props bag**, spread straight onto the component
|
|
300
|
+
(same model as `v-bb-dropdown`). A directive has no `v-model`, so bind write-back
|
|
301
|
+
with an `onUpdate:modelValue` callback — the palette always emits a concrete hex,
|
|
302
|
+
never `null`. A directive argument sets placement (`v-bb-color:top`); a nullish
|
|
303
|
+
value attaches nothing, so it is safe to bind conditionally.
|
|
304
|
+
|
|
305
|
+
```vue
|
|
306
|
+
<span
|
|
307
|
+
class="dot"
|
|
308
|
+
:style="{ background: row.color ?? 'transparent' }"
|
|
309
|
+
v-bb-color="{
|
|
310
|
+
modelValue: row.color,
|
|
311
|
+
'onUpdate:modelValue': (c) => patch(row, { color: c }),
|
|
312
|
+
alpha: true,
|
|
313
|
+
}"
|
|
314
|
+
/>
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
Reach for the **component** (slot or `activator` prop) when you want the
|
|
318
|
+
`#activator` slot's scope (`open`/`value`/`disabled` for styling the trigger) or
|
|
319
|
+
a separate `anchor`. The directive is the shortcut for the bare-trigger cell
|
|
320
|
+
case, not a replacement for the component's `v-model` in a form.
|
|
321
|
+
|
|
322
|
+
### Swatches, alpha and the eyedropper
|
|
323
|
+
|
|
324
|
+
Three independent enrichments to the palette body:
|
|
325
|
+
|
|
326
|
+
- **`swatches`** — the preset grid. `true` shows the built-in Material palette;
|
|
327
|
+
`string[][]` shows your own, where **each inner array is a column of shades**
|
|
328
|
+
(design ramps vertically); `false`/omitted hides the section. The swatch
|
|
329
|
+
matching the current value is highlighted, compared on the `#RRGGBB` part
|
|
330
|
+
case-insensitively (so alpha doesn't break the highlight).
|
|
331
|
+
- **`alpha`** — adds an opacity slider and switches the emitted format to
|
|
332
|
+
`#RRGGBBAA`. Enable it wherever 8-digit values can occur, or an incoming
|
|
333
|
+
`#RRGGBBAA` won't round-trip.
|
|
334
|
+
- **`eye-dropper`** — adds a native **eyedropper** to sample any on-screen pixel. It
|
|
335
|
+
is guarded by `'EyeDropper' in window`: on browsers without the API (anything
|
|
336
|
+
non-Chromium) the button simply **does not render** — treat it as an
|
|
337
|
+
enhancement, never the only path to a color. A cancelled sample (user presses
|
|
338
|
+
Esc) is swallowed silently, and a sampled color is always **opaque** (alpha
|
|
339
|
+
resets to full, since the API returns a 6-digit sRGB hex).
|
|
340
|
+
|
|
341
|
+
**Overlay tint — alpha, swatches, eyedropper**
|
|
342
|
+
|
|
343
|
+
```vue
|
|
344
|
+
<template>
|
|
345
|
+
<div
|
|
346
|
+
class="flex max-w-sm flex-col gap-3 rounded-[var(--bb-radius)] border p-3"
|
|
347
|
+
>
|
|
348
|
+
<div class="flex flex-col gap-0.5">
|
|
349
|
+
<span class="text-sm font-medium">Overlay tint</span>
|
|
350
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
351
|
+
Custom columns, alpha channel, and eyedropper when the browser supports
|
|
352
|
+
it.
|
|
353
|
+
</span>
|
|
354
|
+
</div>
|
|
355
|
+
|
|
356
|
+
<div
|
|
357
|
+
class="flex h-16 items-end overflow-hidden rounded-[var(--bb-radius)] border"
|
|
358
|
+
style="
|
|
359
|
+
background-image:
|
|
360
|
+
linear-gradient(45deg, var(--bb-muted) 25%, transparent 25%),
|
|
361
|
+
linear-gradient(-45deg, var(--bb-muted) 25%, transparent 25%),
|
|
362
|
+
linear-gradient(45deg, transparent 75%, var(--bb-muted) 75%),
|
|
363
|
+
linear-gradient(-45deg, transparent 75%, var(--bb-muted) 75%);
|
|
364
|
+
background-position:
|
|
365
|
+
0 0,
|
|
366
|
+
0 6px,
|
|
367
|
+
6px -6px,
|
|
368
|
+
-6px 0;
|
|
369
|
+
background-size: 12px 12px;
|
|
370
|
+
"
|
|
371
|
+
>
|
|
372
|
+
<div
|
|
373
|
+
class="h-full w-full"
|
|
374
|
+
:style="{ backgroundColor: overlay ?? 'transparent' }"
|
|
375
|
+
/>
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
<BbColorPalette
|
|
379
|
+
v-model="overlay"
|
|
380
|
+
alpha
|
|
381
|
+
eye-dropper
|
|
382
|
+
label="Overlay color"
|
|
383
|
+
:swatches="overlaySwatches"
|
|
384
|
+
>
|
|
385
|
+
<template #activator="{ props, value, open }">
|
|
386
|
+
<button
|
|
387
|
+
v-bind="props"
|
|
388
|
+
class="inline-flex w-full items-center gap-2 rounded-[var(--bb-radius)] border border-[color:var(--bb-border)] px-3 py-1.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--bb-ring)]"
|
|
389
|
+
type="button"
|
|
390
|
+
>
|
|
391
|
+
<span
|
|
392
|
+
class="h-4 w-4 shrink-0 rounded-full border border-[color:var(--bb-border)]"
|
|
393
|
+
:style="{ backgroundColor: value ?? 'transparent' }"
|
|
394
|
+
/>
|
|
395
|
+
<span class="mr-auto tabular-nums">{{
|
|
396
|
+
value ?? 'Pick a color'
|
|
397
|
+
}}</span>
|
|
398
|
+
<BbIcon
|
|
399
|
+
:icon="open ? 'lucide:chevron-up' : 'lucide:chevron-down'"
|
|
400
|
+
size="sm"
|
|
401
|
+
/>
|
|
402
|
+
</button>
|
|
403
|
+
</template>
|
|
404
|
+
</BbColorPalette>
|
|
405
|
+
</div>
|
|
406
|
+
</template>
|
|
407
|
+
|
|
408
|
+
<script setup lang="ts">
|
|
409
|
+
import { ref } from 'vue';
|
|
410
|
+
import { BbColorPalette, BbIcon } from 'bitboss-ui';
|
|
411
|
+
|
|
412
|
+
// With `alpha` enabled the model round-trips 8-digit #RRGGBBAA values.
|
|
413
|
+
const overlay = ref<string | null>('#1d4ed8cc');
|
|
414
|
+
|
|
415
|
+
// Each inner array is a column of shades (design ramps vertically).
|
|
416
|
+
const overlaySwatches: string[][] = [
|
|
417
|
+
['#fef3c7', '#f59e0b', '#b45309'],
|
|
418
|
+
['#fee2e2', '#ef4444', '#b91c1c'],
|
|
419
|
+
['#dbeafe', '#3b82f6', '#1d4ed8'],
|
|
420
|
+
];
|
|
421
|
+
</script>
|
|
359
422
|
```
|
|
423
|
+
|
|
424
|
+
### Anchoring and positioning the popover
|
|
425
|
+
|
|
426
|
+
The click target and the element the popover aligns to can differ. Spread
|
|
427
|
+
`anchorProps` onto a wrapping element and `props` onto the small trigger inside
|
|
428
|
+
it — the palette positions against the wrapper while only the dot is clickable.
|
|
429
|
+
|
|
430
|
+
The float itself is tuned with the popover props:
|
|
431
|
+
|
|
432
|
+
- `placement` (`'bottom'`, `'bottom-start'`, `'top-end'`, …) — the preferred
|
|
433
|
+
side; the popover **auto-flips** to the opposite side when it would overflow,
|
|
434
|
+
unless you set `disable-flip`.
|
|
435
|
+
- `offset` (default 4) — gap between anchor and popover; `padding` (default 6) —
|
|
436
|
+
minimum space kept from the viewport edge.
|
|
437
|
+
- `boundary` — constrain the popover inside an element (ref or CSS selector),
|
|
438
|
+
e.g. a scrolling panel.
|
|
439
|
+
- `transition-duration` (default 250ms) and `eager` — render the palette content
|
|
440
|
+
before it is first shown (useful for SSR/measurement; off by default so the
|
|
441
|
+
body mounts lazily).
|
|
442
|
+
|
|
443
|
+
**Brand accent row — anchor vs click target**
|
|
444
|
+
|
|
445
|
+
```vue
|
|
446
|
+
<template>
|
|
447
|
+
<div
|
|
448
|
+
class="flex max-w-sm flex-col gap-2 rounded-[var(--bb-radius)] border p-3"
|
|
449
|
+
>
|
|
450
|
+
<div class="flex flex-col gap-0.5">
|
|
451
|
+
<span class="text-sm font-medium">Brand settings</span>
|
|
452
|
+
<span class="text-xs text-[color:var(--bb-text-muted)]">
|
|
453
|
+
Row anchors the popover; only the swatch is clickable.
|
|
454
|
+
</span>
|
|
455
|
+
</div>
|
|
456
|
+
|
|
457
|
+
<BbColorPalette
|
|
458
|
+
v-model="brand"
|
|
459
|
+
label="Brand accent"
|
|
460
|
+
placement="bottom-start"
|
|
461
|
+
swatches
|
|
462
|
+
>
|
|
463
|
+
<template #activator="{ props, anchorProps, value, open }">
|
|
464
|
+
<span
|
|
465
|
+
v-bind="anchorProps"
|
|
466
|
+
class="flex items-center justify-between gap-3 rounded-[var(--bb-radius)] border border-[color:var(--bb-border)] px-3 py-2 hover:bg-[color:var(--bb-surface-hover)]"
|
|
467
|
+
>
|
|
468
|
+
<span class="flex min-w-0 flex-col gap-0.5">
|
|
469
|
+
<span class="text-sm font-medium">Brand accent</span>
|
|
470
|
+
<span
|
|
471
|
+
class="truncate text-xs tabular-nums text-[color:var(--bb-text-muted)]"
|
|
472
|
+
>
|
|
473
|
+
{{ value ?? 'No color' }}
|
|
474
|
+
</span>
|
|
475
|
+
</span>
|
|
476
|
+
<button
|
|
477
|
+
v-bind="props"
|
|
478
|
+
class="h-5 w-5 shrink-0 rounded-full border border-[color:var(--bb-border)] outline-none ring-offset-1 focus-visible:ring-2 focus-visible:ring-[color:var(--bb-ring)]"
|
|
479
|
+
:class="open ? 'ring-2 ring-[color:var(--bb-ring)]' : ''"
|
|
480
|
+
:style="{ backgroundColor: value ?? 'transparent' }"
|
|
481
|
+
type="button"
|
|
482
|
+
/>
|
|
483
|
+
</span>
|
|
484
|
+
</template>
|
|
485
|
+
</BbColorPalette>
|
|
486
|
+
</div>
|
|
487
|
+
</template>
|
|
488
|
+
|
|
489
|
+
<script setup lang="ts">
|
|
490
|
+
import { ref } from 'vue';
|
|
491
|
+
import { BbColorPalette } from 'bitboss-ui';
|
|
492
|
+
|
|
493
|
+
// The whole row is the anchor (anchorProps); only the dot is the click target.
|
|
494
|
+
const brand = ref<string | null>('#4f46e5');
|
|
495
|
+
</script>
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
### Open state, disabled and readonly
|
|
499
|
+
|
|
500
|
+
The palette **owns its open state** — there is no `open` prop or `v-model:open`
|
|
501
|
+
to force it. Clicking the activator toggles it; a click on the dialog backdrop or
|
|
502
|
+
outside closes it; you _observe_ the state through the slot's `open` flag for
|
|
503
|
+
styling (a caret, a highlight). Two props gate interaction:
|
|
504
|
+
|
|
505
|
+
- `disabled` — blocks the activator entirely (no open) and marks it inert; the
|
|
506
|
+
slot's `disabled` flag lets you grey the trigger out.
|
|
507
|
+
- `readonly` — keeps the activator visible and focusable but the palette never
|
|
508
|
+
opens. Use it for review states where the color is shown but not editable.
|
|
509
|
+
|
|
510
|
+
### Config and platform
|
|
511
|
+
|
|
512
|
+
- **Locale** — the palette's built-in strings (the dialog's accessible label,
|
|
513
|
+
the default "Open color picker" `aria-label` when you omit `label`, and the
|
|
514
|
+
eyedropper's label) follow the plugin's `config.locale` (`'en'` / `'it'`).
|
|
515
|
+
- **Overlay mechanics** — the popover renders as a `<dialog>` via `CommonPopover`
|
|
516
|
+
and is **not teleported to `<body>`**: it lives in the component's own subtree,
|
|
517
|
+
so it inherits your CSS context and is queryable in tests without a portal
|
|
518
|
+
hop.
|
|
519
|
+
- **SSR / Nuxt** — nothing platform-specific; `eager` pre-renders the body on the
|
|
520
|
+
server if you need it warm on hydration. The palette itself carries no
|
|
521
|
+
navigation, so there is no `href`/`to` surface here.
|
|
522
|
+
|
|
523
|
+
### Works well with
|
|
524
|
+
|
|
525
|
+
- `BbColorInput` — the same palette wrapped in a full form field; switch to it
|
|
526
|
+
the moment you need a label, a readable/editable text value, or validation.
|
|
527
|
+
- `useToast` — confirm a saved entity color after you persist the change.
|
|
528
|
+
- Calendars, label/tag managers, chart legends — the canonical hosts: one
|
|
529
|
+
palette instance per entity row, the model bound to the entity's color.
|
|
530
|
+
|
|
531
|
+
### Gotchas and anti-patterns
|
|
532
|
+
|
|
533
|
+
- **Don't collect form values with it** — a color that submits with a form wants
|
|
534
|
+
a label and validation; that is `BbColorInput`.
|
|
535
|
+
- **Don't treat `update:modelValue` as a commit** — it fires continuously while
|
|
536
|
+
dragging. Debounce your own persistence; don't write to a backend on every
|
|
537
|
+
emit.
|
|
538
|
+
- **Don't pass swatches as a flat array** — the type is `string[][]`; each inner
|
|
539
|
+
array is one _column_ of shades.
|
|
540
|
+
- **Don't rely on the eyedropper** — it is absent outside Chromium; keep the
|
|
541
|
+
swatches/gradient as the primary path.
|
|
542
|
+
- **Alpha mismatch** — without `alpha`, an incoming `#RRGGBBAA` value can't be
|
|
543
|
+
represented; enable `alpha` wherever 8-digit values occur.
|
|
544
|
+
- **Don't forget to seed the model** — `modelValue` is required; an `undefined`
|
|
545
|
+
binding warns in dev. Start it at `null`.
|
|
546
|
+
- **Don't try to force it open via a prop** — the open state is internal; gate
|
|
547
|
+
with `disabled`/`readonly`, observe with the slot's `open`.
|
|
548
|
+
|
|
549
|
+
### Accessibility
|
|
550
|
+
|
|
551
|
+
- Always pass `label`. It is applied to the activator as `aria-label` (the only
|
|
552
|
+
accessible name when the trigger is a bare color dot); `aria-haspopup="dialog"`
|
|
553
|
+
and a live `aria-expanded` are set for you on the element you spread `props`
|
|
554
|
+
onto.
|
|
555
|
+
- Focus moves into the palette when it opens (to the first focusable control) and
|
|
556
|
+
is **restored to the activator** on close — you don't manage focus yourself.
|
|
557
|
+
- Inside the palette, the gradient canvas and the hue/alpha sliders are
|
|
558
|
+
keyboard-operable (arrow keys; Shift for coarse steps).
|
|
559
|
+
- Use `readonly` (not a disabled-looking custom style) when the color must be
|
|
560
|
+
shown but not changed, so the activator stays in the reading order.
|
|
561
|
+
|
|
562
|
+
## v-model
|
|
563
|
+
|
|
564
|
+
- `v-model` — type: `string \| null`
|
|
565
|
+
|
|
566
|
+
## Props
|
|
567
|
+
|
|
568
|
+
| Prop | Type | Default | Required | Description |
|
|
569
|
+
| --- | --- | --- | --- | --- |
|
|
570
|
+
| `activator` | `ElementOrComponentRef \| undefined` | | | External activator element or component ref. When provided, the `activator` slot is not rendered and click listeners are attached programmatically to the referenced element — mirroring the BbDropdown activator API. |
|
|
571
|
+
| `alpha` | `boolean \| undefined` | `false` | | Enable the alpha channel. The picker shows an opacity slider and emits `#RRGGBBAA` hex8 values. |
|
|
572
|
+
| `anchor` | `ElementOrComponentRef \| undefined` | | | Element or component ref the popover positions itself relative to. Defaults to the activator element when omitted, allowing the popover to be anchored to a larger container (e.g. the full input row) while a smaller element (e.g. a color dot… |
|
|
573
|
+
| `boundary` | `ElementOrComponentRefOrSelector \| undefined` | | | Constrains the popover within a bounding element. Accepts an HTMLElement, a Vue component ref, or a CSS selector string. |
|
|
574
|
+
| `disabled` | `boolean \| undefined` | | | Disable all interaction (activator and palette). |
|
|
575
|
+
| `disableFlip` | `boolean \| undefined` | | | Disables the automatic flip to the opposite side when the popover would overflow (flipping is on by default). |
|
|
576
|
+
| `eager` | `boolean \| undefined` | | | Prevents rendering content before it's made visible. |
|
|
577
|
+
| `eyeDropper` | `boolean \| undefined` | `false` | | Show an eyedropper button inside the palette to sample any color on screen. Uses the native EyeDropper API — hidden automatically on unsupported browsers. |
|
|
578
|
+
| `label` | `string \| undefined` | | | Accessible label applied to the activator element via `aria-label`. Defaults to the locale string for "Open color picker" when omitted. |
|
|
579
|
+
| `modelValue` | `string \| null` | | yes | v-model: the current color as a `#RRGGBB` hex string (or `#RRGGBBAA` when `alpha` is enabled), or `null` when empty. |
|
|
580
|
+
| `offset` | `number \| undefined` | `4` | | Space the floating container will maintain from the activator. |
|
|
581
|
+
| `padding` | `number \| undefined` | `6` | | Minimum empty space to keep from the edge of the page |
|
|
582
|
+
| `placement` | `Placement \| undefined` | | | Position of the overlay in respect to the related activator. |
|
|
583
|
+
| `readonly` | `boolean \| undefined` | | | Prevent opening the palette while keeping the activator visible. |
|
|
584
|
+
| `swatches` | `boolean \| string[][] \| undefined` | | | Controls swatches display in the picker: - `true` — show the built-in Material-palette swatches - `string[][]` — show custom swatches (each inner array = a column of shades) - `false` / omitted — no swatches section |
|
|
585
|
+
| `transitionDuration` | `number \| undefined` | `transitions.medium` | | How long the transition has to last in milliseconds |
|
|
586
|
+
|
|
587
|
+
## Events
|
|
588
|
+
|
|
589
|
+
- `update:modelValue` — `(event: "update:modelValue", value: string): void`
|
|
590
|
+
|
|
591
|
+
## Slots
|
|
592
|
+
|
|
593
|
+
- `activator` — scope: `BbColorPaletteActivatorSlotProps` — Custom activator element. Apply `v-bind="props"` to the element you want to use as the trigger — this wires up the ref callback that lets BbColorPalette track the element.
|
|
594
|
+
|
|
595
|
+
## See Also
|
|
596
|
+
|
|
597
|
+
- [BbColorInput](./BbColorInput.md) — Captures color values through input controls.
|
|
598
|
+
- [BbPopover](./BbPopover.md) — Anchors floating content to reference elements.
|