bitboss-ui 3.0.0-beta.63 → 3.0.0-beta.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -20
- package/bin/bitboss-ui.mjs +73 -7
- package/dist/ai/BbAlert.md +10 -1
- package/dist/ai/BbBadge.md +35 -3
- package/dist/ai/BbBadgeButton.md +4 -2
- package/dist/ai/BbBaseButton.md +9 -3
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +113 -8
- package/dist/ai/BbCheckbox.md +1 -1
- package/dist/ai/BbCheckboxGroup.md +94 -6
- package/dist/ai/BbColorInput.md +4 -1
- package/dist/ai/BbColorPalette.md +2 -1
- package/dist/ai/BbConfirm.md +7 -3
- package/dist/ai/BbDatePicker.md +2 -1
- package/dist/ai/BbDatePickerInput.md +4 -1
- package/dist/ai/BbDialog.md +12 -11
- package/dist/ai/BbDropdown.md +189 -38
- package/dist/ai/BbDropdownButton.md +27 -7
- package/dist/ai/BbForm.md +55 -22
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCard.md +7 -3
- package/dist/ai/BbIcon.md +12 -6
- package/dist/ai/BbIndicator.md +11 -1
- package/dist/ai/BbNumberInput.md +4 -1
- package/dist/ai/BbOffCanvas.md +37 -3
- package/dist/ai/BbPopover.md +2 -1
- package/dist/ai/BbRadio.md +1 -1
- package/dist/ai/BbRadioGroup.md +102 -10
- package/dist/ai/BbSelect.md +52 -17
- package/dist/ai/BbSelectPopover.md +93 -26
- package/dist/ai/BbSwitch.md +1 -1
- package/dist/ai/BbSwitchGroup.md +30 -3
- package/dist/ai/BbTable.md +17 -10
- package/dist/ai/BbTabs.md +8 -3
- package/dist/ai/BbTabsList.md +4 -1
- package/dist/ai/BbTag.md +5 -2
- package/dist/ai/BbTextInput.md +4 -1
- package/dist/ai/BbTextarea.md +4 -1
- package/dist/ai/BbTimePicker.md +2 -1
- package/dist/ai/BbTimePickerInput.md +4 -1
- package/dist/ai/BbToast.md +9 -3
- package/dist/ai/BbTooltip.md +71 -9
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/CommonField.md +1 -1
- package/dist/ai/OptionsContainer.md +42 -0
- package/dist/ai/changelog.json +494 -6
- package/dist/ai/components.json +50 -48
- package/dist/ai/composables/useBbConfig.md +8 -1
- package/dist/ai/composables/useConfirm.md +39 -1
- package/dist/ai/design-tokens.json +6 -6
- package/dist/ai/guides/agent-contract.md +2 -2
- package/dist/ai/guides/ai-router.md +24 -23
- package/dist/ai/guides/app-layout.md +5 -0
- package/dist/ai/guides/component-picker.md +9 -2
- package/dist/ai/guides/design-language.md +24 -24
- package/dist/ai/guides/design-tokens.md +15 -8
- package/dist/ai/guides/icons-policy.md +9 -2
- package/dist/ai/guides/inertia-helpers.md +1183 -301
- package/dist/ai/guides/installation-and-plugin-setup.md +12 -2
- package/dist/ai/guides/migration/adoption-checklist.md +235 -0
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +9 -9
- package/dist/ai/guides/migration/components/bb-dropdown.md +7 -2
- package/dist/ai/guides/migration/components/bb-popover.md +4 -2
- package/dist/ai/guides/migration/components/bb-select.md +19 -0
- package/dist/ai/guides/migration/components/bb-table.md +1 -0
- package/dist/ai/guides/migration/components/bb-toast.md +4 -0
- package/dist/ai/guides/migration/components/bb-tooltip.md +15 -12
- package/dist/ai/guides/migration/components/use-confirm.md +25 -2
- package/dist/ai/guides/migration/v2-to-v3.md +211 -9
- package/dist/ai/guides/migration/v3-beta-css-classes.md +7 -3
- package/dist/ai/guides/options-items-playbook.md +2 -1
- package/dist/ai/guides/passthrough.md +149 -85
- package/dist/ai/guides/preset-components.md +140 -15
- package/dist/ai/helpers/definePreset.json +7 -0
- package/dist/ai/helpers/definePreset.ts +123 -11
- package/dist/ai/helpers/inertia/manifest.json +151 -62
- package/dist/ai/helpers/inertia/messages.ts +33 -0
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +120 -20
- package/dist/ai/helpers/inertia/useHasChanged.ts +34 -16
- package/dist/ai/helpers/inertia/useLazyProp.ts +102 -36
- package/dist/ai/helpers/inertia/useLazyPropGetter.ts +3 -1
- package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +154 -34
- package/dist/ai/helpers/inertia/usePromiseForm.ts +121 -14
- package/dist/ai/helpers/inertia/useQuery.ts +133 -11
- package/dist/ai/helpers/inertia/useQueryObject.ts +74 -67
- package/dist/ai/helpers/inertia/useResourceContext.ts +60 -14
- package/dist/ai/helpers/inertia/useRouteQuery.ts +38 -27
- package/dist/ai/helpers/inertia/useScreenSizes.ts +9 -7
- package/dist/ai/helpers/inertia/useTableContext.ts +5 -2
- package/dist/ai/helpers/inertia/utils.ts +14 -0
- package/dist/ai/index.md +1 -0
- package/dist/ai/manifest/common.json +0 -1
- package/dist/ai/manifest/components/BbAlert.json +7 -2
- package/dist/ai/manifest/components/BbBadge.json +13 -4
- package/dist/ai/manifest/components/BbBadge.tree.json +2 -0
- package/dist/ai/manifest/components/BbBadgeButton.json +4 -2
- package/dist/ai/manifest/components/BbBaseButton.json +4 -2
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +14 -3
- package/dist/ai/manifest/components/BbButton.tree.json +5 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +13 -8
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +11 -1
- package/dist/ai/manifest/components/BbColorInput.json +18 -15
- package/dist/ai/manifest/components/BbColorPalette.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +4 -2
- package/dist/ai/manifest/components/BbConfirm.tree.json +1 -1
- package/dist/ai/manifest/components/BbDatePicker.json +1 -1
- package/dist/ai/manifest/components/BbDatePickerInput.json +17 -14
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.json +24 -19
- package/dist/ai/manifest/components/BbDropdown.tree.json +9 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +33 -20
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +2 -2
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbIndicator.json +8 -2
- package/dist/ai/manifest/components/BbNumberInput.json +5 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -2
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +17 -12
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -1
- package/dist/ai/manifest/components/BbSelect.json +21 -18
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +10 -10
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +3 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +3 -1
- package/dist/ai/manifest/components/BbTable.tree.json +14 -1
- package/dist/ai/manifest/components/BbTabs.json +9 -6
- package/dist/ai/manifest/components/BbTabs.tree.json +1 -1
- package/dist/ai/manifest/components/BbTabsList.json +6 -3
- package/dist/ai/manifest/components/BbTag.json +19 -16
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +6 -3
- package/dist/ai/manifest/components/BbTextarea.json +6 -3
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +10 -7
- package/dist/ai/manifest/components/BbToast.json +7 -2
- package/dist/ai/manifest/components/BbToast.tree.json +4 -2
- package/dist/ai/manifest/components/BbTooltip.json +6 -5
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/CommonField.json +1 -1
- package/dist/ai/manifest/components/OptionsContainer.json +3 -1
- package/dist/ai/manifest/components/OptionsContainer.tree.json +38 -0
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +5 -3
- package/dist/ai/manifest/types.advanced.json +5 -2
- package/dist/ai/manifest/types.api.json +9 -7
- package/dist/ai/recipes/inertia/approvals-inbox.md +1 -1
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/layout-scaffold.md +19 -6
- package/dist/ai/recipes/inertia/ownership-atlas.md +1 -1
- package/dist/ai/recipes/inertia/records-workspace.md +50 -14
- package/dist/ai/recipes/inertia/upload-center.md +1 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +19 -6
- package/dist/ai/recipes/nuxt/records-workspace.md +42 -12
- package/dist/ai/recipes/vue/layout-scaffold.md +19 -6
- package/dist/ai/recipes/vue/records-workspace.md +42 -12
- package/dist/ai/source/BbAlert.md +94 -76
- package/dist/ai/source/BbBadge.md +174 -72
- package/dist/ai/source/BbBadgeButton.md +130 -65
- package/dist/ai/source/BbBaseButton.md +46 -124
- package/dist/ai/source/BbBaseCheckboxIcon.md +38 -0
- package/dist/ai/source/BbBaseRadioIcon.md +18 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +51 -0
- package/dist/ai/source/BbButton.md +153 -36
- package/dist/ai/source/BbCheckboxGroup.md +142 -18
- package/dist/ai/source/BbColorInput.md +240 -204
- package/dist/ai/source/BbColorPalette.md +7 -4
- package/dist/ai/source/BbConfirm.md +34 -11
- package/dist/ai/source/BbConfirmPortal.md +24 -9
- package/dist/ai/source/BbDatePicker.md +11 -7
- package/dist/ai/source/BbDatePickerInput.md +306 -269
- package/dist/ai/source/BbDialog.md +49 -14
- package/dist/ai/source/BbDropdown.md +314 -197
- package/dist/ai/source/BbDropdownButton.md +197 -31
- package/dist/ai/source/BbDropdownGroup.md +274 -176
- package/dist/ai/source/BbForm.md +50 -6
- package/dist/ai/source/BbHoverCard.md +12 -5
- package/dist/ai/source/BbIcon.md +4 -3
- package/dist/ai/source/BbIndicator.md +73 -52
- package/dist/ai/source/BbNumberInput.md +293 -257
- package/dist/ai/source/BbOffCanvas.md +55 -29
- package/dist/ai/source/BbPopover.md +14 -10
- package/dist/ai/source/BbRadioGroup.md +413 -297
- package/dist/ai/source/BbSelect.md +549 -435
- package/dist/ai/source/BbSelectPopover.md +153 -34
- package/dist/ai/source/BbSwitchGroup.md +70 -10
- package/dist/ai/source/BbTable.md +369 -37
- package/dist/ai/source/BbTabs.md +115 -39
- package/dist/ai/source/BbTabsList.md +106 -38
- package/dist/ai/source/BbTabsPanels.md +96 -36
- package/dist/ai/source/BbTabsRoot.md +96 -36
- package/dist/ai/source/BbTag.md +267 -233
- package/dist/ai/source/BbTextInput.md +261 -225
- package/dist/ai/source/BbTextarea.md +251 -215
- package/dist/ai/source/BbTimePicker.md +11 -7
- package/dist/ai/source/BbTimePickerInput.md +257 -220
- package/dist/ai/source/BbToast.md +73 -32
- package/dist/ai/source/BbToastPortal.md +65 -30
- package/dist/ai/source/BbTooltip.md +148 -113
- package/dist/ai/source/CommonPopover.md +6 -1
- package/dist/ai/source/FlatListBox.md +19 -9
- package/dist/ai/source/GroupedListBox.md +19 -9
- package/dist/ai/source/OptionsContainer.md +25 -9
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +61 -36
- package/dist/components/BbAlert/types.d.ts +9 -5
- package/dist/components/BbAlert/types.js +8 -3
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +3 -3
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +26 -17
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +103 -50
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +20 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +12 -1
- package/dist/components/BbBadge/types.d.ts +45 -15
- package/dist/components/BbBadge/types.js +12 -3
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +89 -126
- package/dist/components/BbBaseButton/types.d.ts +23 -4
- package/dist/components/BbBaseButton/types.js +7 -1
- package/dist/components/BbBaseButton/useLinkState.d.ts +41 -0
- package/dist/components/BbBaseButton/useLinkState.js +70 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +130 -74
- package/dist/components/BbButton/types.d.ts +50 -13
- package/dist/components/BbButton/types.js +10 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +148 -95
- package/dist/components/BbCheckboxGroup/types.d.ts +34 -11
- package/dist/components/BbCheckboxGroup/types.js +9 -4
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +134 -93
- package/dist/components/BbColorInput/types.d.ts +11 -4
- package/dist/components/BbColorInput/types.js +9 -3
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +82 -59
- package/dist/components/BbConfirm/types.d.ts +9 -4
- package/dist/components/BbConfirm/types.js +8 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +68 -67
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +259 -215
- package/dist/components/BbDatePickerInput/types.d.ts +12 -5
- package/dist/components/BbDatePickerInput/types.js +9 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +223 -219
- package/dist/components/BbDialog/useDialogStack.d.ts +1 -1
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +104 -89
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +323 -285
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +1 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +411 -319
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +100 -98
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +4 -3
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +49 -28
- package/dist/components/BbDropdown/normalizeGroups.d.ts +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +21 -15
- package/dist/components/BbDropdown/types.d.ts +59 -12
- package/dist/components/BbDropdown/types.js +16 -3
- package/dist/components/BbDropdown/useDropdownContext.d.ts +6 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +179 -68
- package/dist/components/BbDropdownButton/types.d.ts +44 -16
- package/dist/components/BbDropdownButton/types.js +28 -3
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +111 -89
- package/dist/components/BbForm/formSchema.d.ts +13 -0
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +100 -100
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +40 -25
- package/dist/components/BbIndicator/types.d.ts +9 -5
- package/dist/components/BbIndicator/types.js +8 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +243 -202
- package/dist/components/BbNumberInput/types.d.ts +12 -5
- package/dist/components/BbNumberInput/types.js +9 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +401 -399
- package/dist/components/BbOffCanvas/types.d.ts +6 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +158 -105
- package/dist/components/BbRadioGroup/types.d.ts +21 -7
- package/dist/components/BbRadioGroup/types.js +9 -4
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -3
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +181 -137
- package/dist/components/BbSelect/types.d.ts +36 -22
- package/dist/components/BbSelect/types.js +22 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +4 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +600 -577
- package/dist/components/BbSelectPopover/knownItems.d.ts +5 -0
- package/dist/components/BbSelectPopover/types.d.ts +46 -12
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbSwitchGroup/types.d.ts +14 -4
- package/dist/components/BbSwitchGroup/types.js +8 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1102 -995
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +25 -0
- package/dist/components/BbTable/measuredFloors.d.ts +46 -0
- package/dist/components/BbTable/measuredFloors.js +322 -0
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +27 -0
- package/dist/components/BbTable/textRuler.d.ts +71 -0
- package/dist/components/BbTable/textRuler.js +121 -0
- package/dist/components/BbTable/utils.d.ts +113 -6
- package/dist/components/BbTable/utils.js +118 -65
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +53 -35
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +62 -45
- package/dist/components/BbTabs/types.d.ts +26 -11
- package/dist/components/BbTabs/types.js +23 -8
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +205 -164
- package/dist/components/BbTag/types.d.ts +11 -4
- package/dist/components/BbTag/types.js +9 -3
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +98 -57
- package/dist/components/BbTextInput/types.d.ts +12 -5
- package/dist/components/BbTextInput/types.js +9 -3
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +137 -96
- package/dist/components/BbTextarea/types.d.ts +12 -5
- package/dist/components/BbTextarea/types.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +105 -104
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +241 -197
- package/dist/components/BbTimePickerInput/types.d.ts +12 -5
- package/dist/components/BbTimePickerInput/types.js +9 -3
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +74 -32
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +47 -47
- package/dist/components/BbToast/types.d.ts +10 -5
- package/dist/components/BbToast/types.js +18 -3
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +85 -71
- package/dist/components/BbTooltip/types.d.ts +13 -8
- package/dist/components/BbTooltip/types.js +8 -3
- package/dist/components/CommonField/CommonField.vue.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +53 -50
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +146 -143
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/components/OptionsContainer/types.d.ts +14 -3
- package/dist/composables/useBbConfig.d.ts +1 -0
- package/dist/composables/useBbConfig.js +11 -7
- package/dist/composables/useBbFormContext.d.ts +4 -3
- package/dist/composables/useBbTabsContext.js +99 -85
- package/dist/composables/useChoiceIndicator.d.ts +58 -0
- package/dist/composables/useChoiceIndicator.js +197 -0
- package/dist/composables/useConfirm.d.ts +4 -4
- package/dist/composables/usePassthrough.d.ts +54 -1
- package/dist/composables/usePassthrough.js +100 -71
- package/dist/directives/bbTooltip.d.ts +12 -6
- package/dist/directives/createPopoverDirective.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/llms-full.txt +3467 -801
- package/dist/llms-medium.txt +71 -53
- package/dist/llms.txt +2 -1
- package/dist/passthrough-deduper.js +6 -3
- package/dist/project-dts.d.ts +24 -0
- package/dist/project-dts.js +43 -17
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +14 -0
- package/dist/types/AlertVariant.js +9 -0
- package/dist/types/BadgeVariant.d.ts +14 -0
- package/dist/types/BadgeVariant.js +9 -0
- package/dist/types/ButtonVariant.d.ts +16 -0
- package/dist/types/ButtonVariant.js +11 -0
- package/dist/types/CheckboxVariant.d.ts +38 -0
- package/dist/types/CheckboxVariant.js +4 -0
- package/dist/types/CommonProps.d.ts +4 -3
- package/dist/types/Config.d.ts +7 -0
- package/dist/types/ConfirmVariant.d.ts +12 -0
- package/dist/types/ConfirmVariant.js +4 -0
- package/dist/types/DropdownItemVariant.d.ts +12 -0
- package/dist/types/DropdownItemVariant.js +4 -0
- package/dist/types/IndicatorVariant.d.ts +15 -0
- package/dist/types/IndicatorVariant.js +10 -0
- package/dist/types/InputVariant.d.ts +13 -0
- package/dist/types/InputVariant.js +8 -0
- package/dist/types/RadioVariant.d.ts +38 -0
- package/dist/types/RadioVariant.js +4 -0
- package/dist/types/TabsVariant.d.ts +13 -0
- package/dist/types/TabsVariant.js +8 -0
- package/dist/types/ToastVariant.d.ts +15 -0
- package/dist/types/ToastVariant.js +10 -0
- package/dist/types/TooltipVariant.d.ts +12 -0
- package/dist/types/TooltipVariant.js +4 -0
- package/dist/types/passthrough.d.ts +83 -15
- package/dist/types/passthrough.js +2 -2
- package/dist/types/ptComponentMap.d.ts +35 -23
- package/dist/utilities/functions/extractDomContainer.d.ts +20 -1
- package/dist/utilities/functions/extractDomContainer.js +8 -3
- package/dist/utils/focusVisibility.d.ts +6 -0
- package/dist/utils/focusVisibility.js +4 -1
- package/dist/utils/passthroughDeduper.d.ts +14 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +64 -7
- package/dist/vite.js +385 -259
- package/llms.txt +2 -1
- package/package.json +5 -4
- package/scripts/lib/adoption-checklist.json +312 -0
- package/scripts/lib/eslint-plugin.d.ts +13 -0
- package/scripts/lib/eslint-plugin.mjs +75 -11
- package/scripts/lib/helpers-add.mjs +26 -2
- package/scripts/lib/idiom-scan.mjs +65 -0
- package/scripts/lib/mcp-config.mjs +203 -9
- package/scripts/lib/migrate-fix.mjs +42 -1
- package/scripts/lib/project-variant-dts.mjs +18 -0
- package/scripts/lib/validate-bb-markup.mjs +99 -2
package/dist/ai/source/BbForm.md
CHANGED
|
@@ -70,6 +70,7 @@ import {
|
|
|
70
70
|
ref,
|
|
71
71
|
shallowReactive,
|
|
72
72
|
shallowRef,
|
|
73
|
+
toRaw,
|
|
73
74
|
unref,
|
|
74
75
|
useTemplateRef,
|
|
75
76
|
watch,
|
|
@@ -173,9 +174,10 @@ const emit = defineEmits<{
|
|
|
173
174
|
*/
|
|
174
175
|
submit: [values: BbFormSubmitValues<S>, meta: BbFormSubmitMeta];
|
|
175
176
|
/**
|
|
176
|
-
* Fired when a submit fails validation
|
|
177
|
-
*
|
|
178
|
-
*
|
|
177
|
+
* Fired when a submit fails validation (`source: 'submit'`) or server
|
|
178
|
+
* errors land (`'server'`: `setErrors()`, a new `field-errors` message),
|
|
179
|
+
* before the form's own focus; a handler that moves focus keeps it.
|
|
180
|
+
* `unmatched`: the paths no field claims.
|
|
179
181
|
*/
|
|
180
182
|
invalid: [payload: BbFormInvalidPayload];
|
|
181
183
|
}>();
|
|
@@ -422,8 +424,8 @@ const errorsView = computed<Record<string, string[]>>(() => {
|
|
|
422
424
|
/**
|
|
423
425
|
* `setErrors` — a server's errors onto the fields, by identity path. A pure
|
|
424
426
|
* lookup against `fields`: a key naming an entry (mounted or preserved) lands
|
|
425
|
-
* on it; any other key lives only in `unmatchedErrors`. Returns nothing
|
|
426
|
-
*
|
|
427
|
+
* on it; any other key lives only in `unmatchedErrors`. Returns nothing; a
|
|
428
|
+
* non-empty map emits `invalid` (`source: 'server'`), focus or not.
|
|
427
429
|
*/
|
|
428
430
|
const unmatchedErrors = ref<Record<string, string[]>>({});
|
|
429
431
|
|
|
@@ -476,10 +478,48 @@ const setServerErrors = (
|
|
|
476
478
|
unmatchedErrors.value = missed;
|
|
477
479
|
// The caller reads `fields` straight back: publish now, not next tick.
|
|
478
480
|
publishContext();
|
|
481
|
+
emitServerInvalid(messagesByKey(serverErrors));
|
|
479
482
|
if (options.focus !== false && Object.keys(landed).length)
|
|
480
483
|
void focusServerErrors(landed, focusedBefore);
|
|
481
484
|
};
|
|
482
485
|
|
|
486
|
+
/**
|
|
487
|
+
* ATT-13 — `invalid` for server errors, emitted before the form's own focus
|
|
488
|
+
* (`focusServerErrors` keeps a focus the handler moved). Keyed like a failed
|
|
489
|
+
* submit's; `unmatched` is what no entry in `fields` claims.
|
|
490
|
+
*/
|
|
491
|
+
const emitServerInvalid = (serverErrors: Record<string, string[]>) => {
|
|
492
|
+
const errors: Record<string, string[]> = {};
|
|
493
|
+
for (const [key, messages] of Object.entries(serverErrors))
|
|
494
|
+
errors[nameToPath(key)] = messages;
|
|
495
|
+
if (!Object.keys(errors).length) return;
|
|
496
|
+
emit('invalid', {
|
|
497
|
+
errors,
|
|
498
|
+
values: copyValues(),
|
|
499
|
+
unmatched: unclaimed(errors),
|
|
500
|
+
source: 'server',
|
|
501
|
+
});
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
/** The paths of `failing` no entry in `fields` (mounted or kept) has. */
|
|
505
|
+
const unclaimed = (failing: Record<string, string[]>) => {
|
|
506
|
+
const known = new Set(
|
|
507
|
+
Object.keys(fieldsView.value).map((key) => normalisePath(nameToPath(key)))
|
|
508
|
+
);
|
|
509
|
+
return Object.fromEntries(
|
|
510
|
+
Object.entries(failing).filter(([path]) => !known.has(normalisePath(path)))
|
|
511
|
+
);
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
/** The values now, as a copy (a value structuredClone refuses: a shallow one). */
|
|
515
|
+
const copyValues = (): Record<string, unknown> => {
|
|
516
|
+
try {
|
|
517
|
+
return structuredClone(toRaw(values));
|
|
518
|
+
} catch {
|
|
519
|
+
return { ...values };
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
|
|
483
523
|
/**
|
|
484
524
|
* Q53.30 — `setErrors` focuses the first failing field on screen, the way a
|
|
485
525
|
* failed client submit does (`focusFirstInvalid`: document order, hidden /
|
|
@@ -530,13 +570,15 @@ watch(
|
|
|
530
570
|
const resubmitted = submitCount.value !== focusedForSubmit;
|
|
531
571
|
if (!Object.keys(next).length || (!added && !resubmitted)) return;
|
|
532
572
|
focusedForSubmit = submitCount.value;
|
|
573
|
+
const focusedBefore = document.activeElement;
|
|
574
|
+
emitServerInvalid(next);
|
|
533
575
|
const landed: Record<string, string[]> = {};
|
|
534
576
|
for (const field of fields) {
|
|
535
577
|
const messages = fieldErrorsAt(field.name());
|
|
536
578
|
if (messages.length) landed[field.name()] = messages;
|
|
537
579
|
}
|
|
538
580
|
if (Object.keys(landed).length)
|
|
539
|
-
void focusServerErrors(landed,
|
|
581
|
+
void focusServerErrors(landed, focusedBefore);
|
|
540
582
|
}
|
|
541
583
|
);
|
|
542
584
|
|
|
@@ -623,6 +665,8 @@ const onInvalidSubmit = async (context: InvalidSubmissionContext) => {
|
|
|
623
665
|
const payload: BbFormInvalidPayload = {
|
|
624
666
|
errors: failing,
|
|
625
667
|
values: context.values,
|
|
668
|
+
unmatched: unclaimed(failing),
|
|
669
|
+
source: 'submit',
|
|
626
670
|
};
|
|
627
671
|
const focusedBefore = document.activeElement;
|
|
628
672
|
emit('invalid', payload);
|
|
@@ -112,7 +112,12 @@ import { useClosingInert } from '@/composables/useClosingInert';
|
|
|
112
112
|
import { useOverlayYield } from '@/composables/useOverlayYield';
|
|
113
113
|
import CommonPopover from '../CommonPopover/CommonPopover.vue';
|
|
114
114
|
import type { CommonPopoverAvailableSpace } from '../CommonPopover/types';
|
|
115
|
-
import {
|
|
115
|
+
import {
|
|
116
|
+
domElement,
|
|
117
|
+
extractDomContainer,
|
|
118
|
+
extractHtmlContainer,
|
|
119
|
+
type DomHost,
|
|
120
|
+
} from '@/utilities/functions/extractDomContainer';
|
|
116
121
|
import { parseWidthString } from '@/utilities/functions/parseWidthString';
|
|
117
122
|
import {
|
|
118
123
|
BB_HOVER_CARD_PT,
|
|
@@ -157,9 +162,9 @@ const { id } = useId();
|
|
|
157
162
|
const activatorId = props.id ?? id.value;
|
|
158
163
|
const cardId = `bbhc_${activatorId}`;
|
|
159
164
|
|
|
160
|
-
const activatorEl = ref<
|
|
165
|
+
const activatorEl = ref<DomHost>();
|
|
161
166
|
const popoverRef = useTemplateRef('popover-ref');
|
|
162
|
-
const popoverEl = computed(() =>
|
|
167
|
+
const popoverEl = computed(() => extractHtmlContainer(popoverRef.value));
|
|
163
168
|
|
|
164
169
|
const hasExternalActivator = computed(() => props.activator != null);
|
|
165
170
|
/**
|
|
@@ -348,7 +353,7 @@ watch(popoverEl, (el, _, onCleanup) => {
|
|
|
348
353
|
|
|
349
354
|
// Close when activator scrolls out of view (BbPopover's rule, same tolerance).
|
|
350
355
|
useIntersectionObserver(
|
|
351
|
-
activatorEl,
|
|
356
|
+
() => domElement(activatorEl.value),
|
|
352
357
|
([{ intersectionRatio }]) => {
|
|
353
358
|
if (intersectionRatio < 0.99 && isOpen.value) close();
|
|
354
359
|
},
|
|
@@ -674,7 +679,9 @@ const needsReactiveWidth = computed(() => {
|
|
|
674
679
|
});
|
|
675
680
|
|
|
676
681
|
const { width: activatorWidth } = useElementSize(
|
|
677
|
-
computed(() =>
|
|
682
|
+
computed(() =>
|
|
683
|
+
domElement(needsReactiveWidth.value ? activatorEl.value : undefined)
|
|
684
|
+
),
|
|
678
685
|
{ width: 0, height: 0 },
|
|
679
686
|
{ box: 'border-box' }
|
|
680
687
|
);
|
package/dist/ai/source/BbIcon.md
CHANGED
|
@@ -245,9 +245,10 @@ const iconAttributes = computed(() => {
|
|
|
245
245
|
base['role'] = 'img';
|
|
246
246
|
base['aria-label'] = props.label.trim();
|
|
247
247
|
// Deliberately NO `title` attribute (dropped 2026-07-30, owner ruling):
|
|
248
|
-
// it triggered the browser's native tooltip, which double-tooltips
|
|
249
|
-
//
|
|
250
|
-
// `aria-label` alone
|
|
248
|
+
// it triggered the browser's native tooltip, which double-tooltips a
|
|
249
|
+
// `v-bb-tooltip` on the icon or on the button around it (the info-tip
|
|
250
|
+
// shape is an icon-only ghost BbButton, Q76.15). `aria-label` alone
|
|
251
|
+
// carries the accessible name.
|
|
251
252
|
} else {
|
|
252
253
|
// Decorative icon - hide it from assistive tech entirely
|
|
253
254
|
base['aria-hidden'] = 'true';
|
|
@@ -35,9 +35,13 @@ import {
|
|
|
35
35
|
type BbIndicatorProps,
|
|
36
36
|
type BbIndicatorSlots,
|
|
37
37
|
} from './types';
|
|
38
|
-
import { usePassthrough } from '@/composables/usePassthrough';
|
|
38
|
+
import { usePassthrough, variantPt } from '@/composables/usePassthrough';
|
|
39
39
|
|
|
40
|
-
defineOptions({
|
|
40
|
+
defineOptions({
|
|
41
|
+
// An app's own variants as declared `pt:<part>:<name>` props (Q76.7).
|
|
42
|
+
mixins: [variantPt(BB_INDICATOR_PT)],
|
|
43
|
+
inheritAttrs: false,
|
|
44
|
+
});
|
|
41
45
|
const props = withDefaults(defineProps<BbIndicatorProps>(), {
|
|
42
46
|
size: 'md',
|
|
43
47
|
variant: 'default',
|
|
@@ -54,6 +58,7 @@ const passthrough = usePassthrough({
|
|
|
54
58
|
parts: BB_INDICATOR_PT.parts,
|
|
55
59
|
states: BB_INDICATOR_PT.states,
|
|
56
60
|
active: {},
|
|
61
|
+
variant: { ...BB_INDICATOR_PT.variant, current: () => props.variant },
|
|
57
62
|
});
|
|
58
63
|
const logger = useLogger();
|
|
59
64
|
const SIZES = ['xs', 'sm', 'md', 'lg', 'xl', '2xl'] as const;
|
|
@@ -107,8 +112,13 @@ const rootClasses = computed(() => [
|
|
|
107
112
|
|
|
108
113
|
```ts
|
|
109
114
|
import type { Sizes } from '@/types/SizeScale';
|
|
110
|
-
import type { PtMap, PtValue } from '@/types/passthrough';
|
|
111
|
-
import
|
|
115
|
+
import type { PtMap, PtValue, PtVariantAttrs } from '@/types/passthrough';
|
|
116
|
+
import {
|
|
117
|
+
INDICATOR_VARIANTS,
|
|
118
|
+
type IndicatorVariantBuiltIn,
|
|
119
|
+
type IndicatorVariantRegistry,
|
|
120
|
+
type IndicatorVariantType,
|
|
121
|
+
} from '@/types/IndicatorVariant';
|
|
112
122
|
|
|
113
123
|
/**
|
|
114
124
|
* Passthrough parts of `BbIndicator` (plans/passthrough/BbIndicator.md).
|
|
@@ -125,63 +135,74 @@ export type BbIndicatorPtPart = 'root' | 'bubble';
|
|
|
125
135
|
export const BB_INDICATOR_PT = {
|
|
126
136
|
parts: ['root', 'bubble'],
|
|
127
137
|
states: [],
|
|
138
|
+
// The `variant` is a state on every part (Q76.7).
|
|
139
|
+
variant: { names: INDICATOR_VARIANTS, option: 'indicatorVariants' },
|
|
128
140
|
} as const satisfies {
|
|
129
141
|
parts: readonly BbIndicatorPtPart[];
|
|
130
142
|
states: readonly never[];
|
|
143
|
+
variant: { names: readonly IndicatorVariantBuiltIn[]; option: string };
|
|
131
144
|
};
|
|
132
145
|
|
|
133
146
|
// Spelled INLINE with this component's own union (Vue's SFC type resolver
|
|
134
147
|
// does not substitute a generic alias's type parameters — PASSTHROUGH.md T20).
|
|
135
|
-
//
|
|
148
|
+
// Its one state axis is the variant (Q76.7).
|
|
136
149
|
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
|
|
137
150
|
export type BbIndicatorProps = {
|
|
138
|
-
[K in
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
151
|
+
[K in
|
|
152
|
+
| `pt:${BbIndicatorPtPart}`
|
|
153
|
+
| `pt:${BbIndicatorPtPart}:${IndicatorVariantBuiltIn}`]?: PtValue;
|
|
154
|
+
} & /* @vue-ignore */ PtVariantAttrs<
|
|
155
|
+
BbIndicatorPtPart,
|
|
156
|
+
keyof IndicatorVariantRegistry
|
|
157
|
+
> & {
|
|
158
|
+
/**
|
|
159
|
+
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
160
|
+
* without the prefix. See the `pt:<part>` row.
|
|
161
|
+
*/
|
|
162
|
+
pt?: PtMap<
|
|
163
|
+
BbIndicatorPtPart,
|
|
164
|
+
IndicatorVariantBuiltIn | keyof IndicatorVariantRegistry
|
|
165
|
+
>;
|
|
166
|
+
/**
|
|
167
|
+
* Content shown inside the indicator bubble. A `number` is accepted for count
|
|
168
|
+
* ergonomics (e.g. `:text="unread"`). When omitted the indicator renders only
|
|
169
|
+
* if `dot` is set.
|
|
170
|
+
*/
|
|
171
|
+
text?: string | number;
|
|
172
|
+
/**
|
|
173
|
+
* Caps a numeric `text` count: values above `max` render as `${max}+`
|
|
174
|
+
* (e.g. `max: 99` shows `99+`). Ignored for string `text`.
|
|
175
|
+
*/
|
|
176
|
+
max?: number;
|
|
177
|
+
/**
|
|
178
|
+
* Renders a small contentless dot instead of a labelled bubble. Takes
|
|
179
|
+
* precedence over `text`.
|
|
180
|
+
*/
|
|
181
|
+
dot?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Anchors the indicator to the bottom edge of the wrapped element instead of
|
|
184
|
+
* the top.
|
|
185
|
+
*/
|
|
186
|
+
bottom?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Anchors the indicator to the left edge of the wrapped element instead of
|
|
189
|
+
* the right.
|
|
190
|
+
*/
|
|
191
|
+
left?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Preset size of the indicator.
|
|
194
|
+
* @defaultValue `'md'`
|
|
195
|
+
*/
|
|
196
|
+
size?: keyof Sizes;
|
|
197
|
+
/**
|
|
198
|
+
* Visual variant. `default` uses the primary color; `success`, `info`,
|
|
199
|
+
* `warning` and `destructive` map to the shared status colors.
|
|
200
|
+
* Register more via the vite plugin `indicatorVariants` option and style
|
|
201
|
+
* `.bb-indicator--<variant>`.
|
|
202
|
+
* @defaultValue `'default'`
|
|
203
|
+
*/
|
|
204
|
+
variant?: IndicatorVariantType;
|
|
205
|
+
};
|
|
185
206
|
|
|
186
207
|
export type BbIndicatorSlots = {
|
|
187
208
|
/**
|