bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/bitboss-ui-mcp.mjs +87 -19
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/ai/BbAlert.md +15 -11
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +2 -2
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +62 -9
- package/dist/ai/BbCalendar.md +1 -1
- package/dist/ai/BbCheckbox.md +23 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +13 -12
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +24 -21
- package/dist/ai/BbDatePicker.md +4 -4
- package/dist/ai/BbDatePickerInput.md +16 -15
- package/dist/ai/BbDialog.md +10 -9
- package/dist/ai/BbDropdown.md +26 -16
- package/dist/ai/BbDropdownButton.md +18 -18
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +6 -4
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +17 -13
- package/dist/ai/BbOffCanvas.md +4 -3
- package/dist/ai/BbPagination.md +10 -2
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +23 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +5 -5
- package/dist/ai/BbSelect.md +74 -39
- package/dist/ai/BbSelectPopover.md +28 -26
- package/dist/ai/BbSlider.md +258 -61
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +27 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +10 -5
- package/dist/ai/BbTabs.md +6 -6
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +12 -11
- package/dist/ai/BbTextInput.md +25 -17
- package/dist/ai/BbTextarea.md +15 -14
- package/dist/ai/BbTimePicker.md +3 -3
- package/dist/ai/BbTimePickerInput.md +12 -11
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +2 -2
- package/dist/ai/CommonField.md +2 -2
- package/dist/ai/CommonFieldInput.md +2 -1
- package/dist/ai/FlatListBox.md +4 -3
- package/dist/ai/GroupedListBox.md +4 -3
- package/dist/ai/ListBox.md +5 -4
- package/dist/ai/OptionsContainer.md +17 -1
- package/dist/ai/changelog.json +454 -7
- package/dist/ai/components.json +77 -69
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/design-language.md +17 -13
- package/dist/ai/guides/design-tokens.md +81 -42
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +191 -56
- package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
- package/dist/ai/guides/passthrough.md +140 -131
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +5 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +9 -11
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbBadge.json +3 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +4 -3
- package/dist/ai/manifest/components/BbButton.tree.json +3 -1
- package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
- package/dist/ai/manifest/components/BbCheckbox.json +4 -3
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +6 -5
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -1
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +2 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +7 -4
- package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +5 -4
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +3 -2
- package/dist/ai/manifest/components/BbSelect.json +11 -9
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
- package/dist/ai/manifest/components/BbSlider.json +20 -18
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +3 -2
- package/dist/ai/manifest/components/BbTable.tree.json +4 -3
- package/dist/ai/manifest/components/BbTabs.json +3 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +5 -4
- package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextarea.json +6 -5
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +2 -1
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +2 -1
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +3 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +5 -6
- package/dist/ai/manifest/types.api.json +15 -6
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +5 -4
- package/dist/ai/source/BbBadge.md +16 -9
- package/dist/ai/source/BbBadgeButton.md +1 -1
- package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
- package/dist/ai/source/BbBaseRadioIcon.md +17 -11
- package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
- package/dist/ai/source/BbButton.md +38 -22
- package/dist/ai/source/BbCalendar.md +5 -30
- package/dist/ai/source/BbCheckbox.md +20 -7
- package/dist/ai/source/BbCheckboxGroup.md +66 -27
- package/dist/ai/source/BbColorInput.md +29 -22
- package/dist/ai/source/BbColorPalette.md +23 -22
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +5 -3
- package/dist/ai/source/BbDatePicker.md +18 -8
- package/dist/ai/source/BbDatePickerInput.md +44 -27
- package/dist/ai/source/BbDialog.md +23 -13
- package/dist/ai/source/BbDropdown.md +61 -25
- package/dist/ai/source/BbDropdownButton.md +67 -25
- package/dist/ai/source/BbDropdownGroup.md +38 -15
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +44 -30
- package/dist/ai/source/BbOffCanvas.md +17 -10
- package/dist/ai/source/BbPagination.md +10 -18
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +18 -7
- package/dist/ai/source/BbRadioGroup.md +67 -27
- package/dist/ai/source/BbRating.md +21 -11
- package/dist/ai/source/BbSelect.md +51 -32
- package/dist/ai/source/BbSelectPopover.md +81 -38
- package/dist/ai/source/BbSlider.md +929 -565
- package/dist/ai/source/BbSwitchGroup.md +28 -9
- package/dist/ai/source/BbTable.md +17 -30
- package/dist/ai/source/BbTabs.md +5 -2
- package/dist/ai/source/BbTabsList.md +1 -1
- package/dist/ai/source/BbTabsPanels.md +1 -1
- package/dist/ai/source/BbTabsRoot.md +1 -1
- package/dist/ai/source/BbTag.md +27 -20
- package/dist/ai/source/BbTextInput.md +29 -26
- package/dist/ai/source/BbTextarea.md +53 -45
- package/dist/ai/source/BbTimePicker.md +19 -7
- package/dist/ai/source/BbTimePickerInput.md +34 -21
- package/dist/ai/source/BbToast.md +18 -9
- package/dist/ai/source/BbToastPortal.md +14 -6
- package/dist/ai/source/BbTooltip.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +9 -4
- package/dist/ai/source/FlatListBox.md +11 -1
- package/dist/ai/source/GroupedListBox.md +12 -1
- package/dist/ai/source/ListBox.md +1 -1
- package/dist/ai/source/OptionsContainer.md +48 -1
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
- package/dist/components/BbBadge/types.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
- package/dist/components/BbButton/types.d.ts +12 -10
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
- package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
- package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
- package/dist/components/BbColorInput/types.d.ts +8 -8
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
- package/dist/components/BbColorPalette/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
- package/dist/components/BbDatePickerInput/types.d.ts +8 -8
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
- package/dist/components/BbDialog/types.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +25 -13
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
- package/dist/components/BbDropdownButton/types.d.ts +30 -13
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
- package/dist/components/BbNumberInput/types.d.ts +12 -11
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
- package/dist/components/BbRadioGroup/types.d.ts +11 -5
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
- package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
- package/dist/components/BbSelect/types.d.ts +23 -19
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/types.d.ts +21 -16
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
- package/dist/components/BbSlider/types.d.ts +136 -47
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/BbTabs/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
- package/dist/components/BbTag/types.d.ts +7 -7
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
- package/dist/components/BbTextInput/types.d.ts +9 -9
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
- package/dist/components/BbTextarea/types.d.ts +8 -8
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
- package/dist/components/BbTimePickerInput/types.d.ts +8 -8
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +1 -1
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
- package/dist/components/OptionsContainer/types.d.ts +5 -0
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useBbTabs.js +94 -90
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +7 -7
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +47 -37
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/i18n/locales/cs.json +2 -1
- package/dist/i18n/locales/da.json +2 -1
- package/dist/i18n/locales/de-CH.json +2 -1
- package/dist/i18n/locales/de.json +2 -1
- package/dist/i18n/locales/el.json +2 -1
- package/dist/i18n/locales/en-GB.json +2 -1
- package/dist/i18n/locales/en.json +2 -1
- package/dist/i18n/locales/es-MX.json +2 -1
- package/dist/i18n/locales/es.json +2 -1
- package/dist/i18n/locales/fi.json +2 -1
- package/dist/i18n/locales/fr.json +2 -1
- package/dist/i18n/locales/hu.json +2 -1
- package/dist/i18n/locales/it.json +2 -1
- package/dist/i18n/locales/ja.json +2 -1
- package/dist/i18n/locales/ko.json +2 -1
- package/dist/i18n/locales/nb.json +2 -1
- package/dist/i18n/locales/nl.json +2 -1
- package/dist/i18n/locales/pl.json +2 -1
- package/dist/i18n/locales/pt-BR.json +2 -1
- package/dist/i18n/locales/pt-PT.json +2 -1
- package/dist/i18n/locales/ro.json +2 -1
- package/dist/i18n/locales/ru.json +2 -1
- package/dist/i18n/locales/sv.json +2 -1
- package/dist/i18n/locales/tr.json +2 -1
- package/dist/i18n/locales/uk.json +2 -1
- package/dist/i18n/locales/zh-CN.json +2 -1
- package/dist/i18n/locales/zh-HK.json +2 -1
- package/dist/i18n/locales/zh-TW.json +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +2273 -1243
- package/dist/llms-medium.txt +362 -184
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +2 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +17 -17
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +69 -21
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/passthrough.d.ts +6 -6
- package/dist/types/ptComponentMap.d.ts +14 -14
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +54 -191
- package/dist/vite.js +318 -367
- package/llms.txt +4 -4
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +67 -0
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/validate-bb-markup.mjs +73 -13
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
:item-label-align="itemLabelAlign"
|
|
64
64
|
:item-layout="itemLayout"
|
|
65
65
|
:item-reverse="itemReverse"
|
|
66
|
+
:list-block="block"
|
|
66
67
|
:list-layout="listLayout"
|
|
67
68
|
:loading="!!loading"
|
|
68
69
|
:loading-text="loadingText"
|
|
@@ -730,8 +731,9 @@ export type BbSwitchGroupSlots<T> = {
|
|
|
730
731
|
*
|
|
731
732
|
* `listLayout` picks the arrangement (`--<listLayout>`): `horizontal` puts
|
|
732
733
|
* the rows on a line and wraps, `vertical` stacks them at their own width,
|
|
733
|
-
* `
|
|
734
|
-
*
|
|
734
|
+
* `tiles` makes equal-size boxes that wrap as the field narrows. `block`
|
|
735
|
+
* (`--block`) gives the rows the list's width: equal shares on a line, full
|
|
736
|
+
* width stacked (the whole row is the hit area).
|
|
735
737
|
* A row never takes layout from an ancestor, which is what lets `pt:list`
|
|
736
738
|
* re-lay the rows without reaching into them.
|
|
737
739
|
*/
|
|
@@ -756,8 +758,10 @@ export type BbSwitchGroupSlots<T> = {
|
|
|
756
758
|
flex-direction: column;
|
|
757
759
|
}
|
|
758
760
|
|
|
759
|
-
|
|
760
|
-
|
|
761
|
+
/* `block` stacked: every row as wide as the list. `:where` keeps it at
|
|
762
|
+
one class. */
|
|
763
|
+
&--block:where(.bb-switch-group__list--vertical) {
|
|
764
|
+
align-items: stretch;
|
|
761
765
|
}
|
|
762
766
|
|
|
763
767
|
/* Equal columns that wrap: as many `--tile-min-width` tracks as fit, and
|
|
@@ -778,6 +782,13 @@ export type BbSwitchGroupSlots<T> = {
|
|
|
778
782
|
}
|
|
779
783
|
}
|
|
780
784
|
|
|
785
|
+
/* `block` on a line: the rows share the list's width equally (and still
|
|
786
|
+
wrap once a row reaches its content's width). At the row's one class. */
|
|
787
|
+
:where(.bb-switch-group__list--block.bb-switch-group__list--horizontal)
|
|
788
|
+
> .bb-switch-group__item {
|
|
789
|
+
flex: 1 1 0;
|
|
790
|
+
}
|
|
791
|
+
|
|
781
792
|
/* A per-breakpoint `layout` (Q67.3) places the list per tier, as
|
|
782
793
|
`--right` / `--center` do above: `--ly-lj` / `--ly-ls` from CommonField, at
|
|
783
794
|
the list's own one-class weight; a left tier sets neither (`initial`), so
|
|
@@ -840,7 +851,7 @@ export type BbSwitchGroupSlots<T> = {
|
|
|
840
851
|
}
|
|
841
852
|
|
|
842
853
|
/* One side takes the free space — only visible once the row is wider than
|
|
843
|
-
its content (`
|
|
854
|
+
its content (`block`, `tiles`, a `pt:item` width). */
|
|
844
855
|
&--label-fill {
|
|
845
856
|
grid-template-columns: auto minmax(0, 1fr);
|
|
846
857
|
justify-content: stretch;
|
|
@@ -1077,8 +1088,10 @@ export type BbSwitchGroupSlots<T> = {
|
|
|
1077
1088
|
* A row is one label line (`--bb-label-lh`, 18px) and the rows sit
|
|
1078
1089
|
* `--row-gap` (10px) apart. On a coarse pointer only, each row gets an
|
|
1079
1090
|
* invisible 44px `::after`, and the stacked (or wrapped) rows open to exactly
|
|
1080
|
-
* the gap that keeps those areas apart: `44px - the
|
|
1081
|
-
* `--row-gap` when wider.
|
|
1091
|
+
* the gap that keeps those areas apart: `44px - the row's height`, or the
|
|
1092
|
+
* consumer's `--row-gap` when wider. The height is the shortest row's, as
|
|
1093
|
+
* measured (`--row-h`, set by the list after mount), so a 32px `pt:item`
|
|
1094
|
+
* pill opens 12px, not 26px; until then one label line is assumed. That gap is the one visual change, and the least
|
|
1082
1095
|
* that fits a full target per row; a list of rows at a 44px pitch is the
|
|
1083
1096
|
* platform's own list rhythm. Sideways the area stops at half `--gap`, so
|
|
1084
1097
|
* rows on one line never overlap either. A described row is already taller,
|
|
@@ -1087,11 +1100,17 @@ export type BbSwitchGroupSlots<T> = {
|
|
|
1087
1100
|
@media (pointer: coarse) {
|
|
1088
1101
|
.bb-switch-group__list {
|
|
1089
1102
|
--hit: 44px;
|
|
1090
|
-
--tap-row-gap: max(
|
|
1103
|
+
--tap-row-gap: max(
|
|
1104
|
+
var(--row-gap),
|
|
1105
|
+
calc(var(--hit) - var(--row-h, var(--bb-label-lh)))
|
|
1106
|
+
);
|
|
1091
1107
|
row-gap: var(--tap-row-gap);
|
|
1092
1108
|
|
|
1093
1109
|
&:has(.bb-switch-group__item--description) {
|
|
1094
|
-
--tap-row-gap: max(
|
|
1110
|
+
--tap-row-gap: max(
|
|
1111
|
+
var(--row-gap),
|
|
1112
|
+
calc(var(--hit) - var(--row-h, calc(var(--hit) - 8px)))
|
|
1113
|
+
);
|
|
1095
1114
|
}
|
|
1096
1115
|
|
|
1097
1116
|
&.bb-switch-group__list--tiles {
|
|
@@ -92,23 +92,12 @@
|
|
|
92
92
|
>
|
|
93
93
|
<!-- The four-way move glyph AG Grid puts on its drag chip: "this column
|
|
94
94
|
is being moved", distinct from the sort arrow. -->
|
|
95
|
-
<
|
|
96
|
-
aria-hidden="true"
|
|
95
|
+
<BbIcon
|
|
97
96
|
class="bb-table__drag-icon"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
stroke="currentColor"
|
|
101
|
-
stroke-linecap="round"
|
|
102
|
-
stroke-linejoin="round"
|
|
103
|
-
stroke-width="2"
|
|
104
|
-
viewBox="0 0 24 24"
|
|
105
|
-
width="1em"
|
|
97
|
+
:icon="moveSvg"
|
|
98
|
+
size="1em"
|
|
106
99
|
v-bind="passthrough.dragIcon"
|
|
107
|
-
|
|
108
|
-
<path
|
|
109
|
-
d="M12 2v20M2 12h20M5 9l-3 3 3 3M9 5l3-3 3 3M15 19l-3 3-3-3M19 9l3 3-3 3"
|
|
110
|
-
/>
|
|
111
|
-
</svg>
|
|
100
|
+
/>
|
|
112
101
|
<span>{{ dragGhostLabel }}</span>
|
|
113
102
|
</div>
|
|
114
103
|
</template>
|
|
@@ -327,23 +316,14 @@
|
|
|
327
316
|
<!-- One up arrow (ascending, AG Grid convention); the desc state
|
|
328
317
|
rotates it 180° (the glyph is its own mirror), so the flip
|
|
329
318
|
between directions animates. -->
|
|
330
|
-
<
|
|
331
|
-
aria-hidden="true"
|
|
319
|
+
<BbIcon
|
|
332
320
|
class="bb-table__sort-icon"
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
stroke="currentColor"
|
|
336
|
-
stroke-linecap="round"
|
|
337
|
-
stroke-linejoin="round"
|
|
338
|
-
stroke-width="2"
|
|
339
|
-
viewBox="0 0 24 24"
|
|
340
|
-
width="1em"
|
|
321
|
+
:icon="arrowUpSvg"
|
|
322
|
+
size="1em"
|
|
341
323
|
v-bind="
|
|
342
324
|
passthrough.part('sortIcon', sortStates(header.sortOrder))
|
|
343
325
|
"
|
|
344
|
-
|
|
345
|
-
<path d="M12 20V4m-7 7l7-7l7 7" />
|
|
346
|
-
</svg>
|
|
326
|
+
/>
|
|
347
327
|
</BbBaseButton>
|
|
348
328
|
<span v-else class="bb-table-header__content">{{
|
|
349
329
|
header.label
|
|
@@ -638,7 +618,11 @@
|
|
|
638
618
|
lang="ts"
|
|
639
619
|
generic="Item = any, T extends ItemKey<Item> = string & {}"
|
|
640
620
|
>
|
|
621
|
+
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
622
|
+
import moveSvg from '@/assets/svgs/move.svg?raw';
|
|
623
|
+
import arrowUpSvg from '@/assets/svgs/arrow_up.svg?raw';
|
|
641
624
|
import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
625
|
+
import { useConfigDefaults } from '@/composables/useConfigDefaults';
|
|
642
626
|
import {
|
|
643
627
|
computed,
|
|
644
628
|
getCurrentInstance,
|
|
@@ -824,9 +808,10 @@ const props = withDefaults(
|
|
|
824
808
|
unselectedItems: () => [],
|
|
825
809
|
// Unset follows the binding: on exactly when `highlighted` is bound.
|
|
826
810
|
highlightable: undefined,
|
|
811
|
+
// Tri-state: unset lets the components map show through.
|
|
812
|
+
compact: undefined,
|
|
827
813
|
}
|
|
828
814
|
);
|
|
829
|
-
|
|
830
815
|
const emit = defineEmits<BbTableEvents>();
|
|
831
816
|
|
|
832
817
|
const slots = defineSlots<
|
|
@@ -848,6 +833,8 @@ const slots = defineSlots<
|
|
|
848
833
|
>
|
|
849
834
|
>();
|
|
850
835
|
|
|
836
|
+
const configDefaults = useConfigDefaults('BbTable', props, { compact: false });
|
|
837
|
+
|
|
851
838
|
/**
|
|
852
839
|
* Passthrough (plans/passthrough/BbTable.md). `row`, `cell` and the rows'
|
|
853
840
|
* `selectIcon` are resolved per row inside BbTableDataRow through the row
|
|
@@ -4116,7 +4103,7 @@ const hasProvidedAccessibilityData = computed(
|
|
|
4116
4103
|
const containerClass = computed(() => ({
|
|
4117
4104
|
'bb-table': true,
|
|
4118
4105
|
[`bb-table--align-${props.align}`]: true,
|
|
4119
|
-
'bb-table--compact':
|
|
4106
|
+
'bb-table--compact': configDefaults.compact,
|
|
4120
4107
|
'bb-table--reorderable': !!props.reorderable,
|
|
4121
4108
|
'bb-table--rows-reorderable': rowDragActive.value,
|
|
4122
4109
|
'bb-table--resizable': canResize.value,
|
package/dist/ai/source/BbTabs.md
CHANGED
|
@@ -106,9 +106,12 @@ const props = withDefaults(
|
|
|
106
106
|
manualActivation: undefined,
|
|
107
107
|
queryKey: 'tab',
|
|
108
108
|
variant: 'pill',
|
|
109
|
+
// Tri-state: unset lets the components map show through.
|
|
110
|
+
compact: undefined,
|
|
111
|
+
// Tri-state: unset lets the components map show through.
|
|
112
|
+
block: undefined,
|
|
109
113
|
}
|
|
110
114
|
);
|
|
111
|
-
|
|
112
115
|
const emit = defineEmits<BbTabsEvents<K>>();
|
|
113
116
|
|
|
114
117
|
defineSlots<BbTabsSlots<K>>();
|
|
@@ -630,7 +633,7 @@ export type BbTabsRootProps<K extends string = string> =
|
|
|
630
633
|
* Look of the tab strip: `pill` (segmented, a sliding raised pill),
|
|
631
634
|
* `line` (a baseline with a sliding underline) or `none` (no chrome).
|
|
632
635
|
* Each is a preset of the strip's tokens; register more with the vite
|
|
633
|
-
* plugin's `
|
|
636
|
+
* plugin's `components.BbTabs.variants` and style `.bb-tabs-list--<variant>`.
|
|
634
637
|
*
|
|
635
638
|
* @defaultValue `'pill'`
|
|
636
639
|
*/
|
|
@@ -915,7 +915,7 @@ export type BbTabsRootProps<K extends string = string> =
|
|
|
915
915
|
* Look of the tab strip: `pill` (segmented, a sliding raised pill),
|
|
916
916
|
* `line` (a baseline with a sliding underline) or `none` (no chrome).
|
|
917
917
|
* Each is a preset of the strip's tokens; register more with the vite
|
|
918
|
-
* plugin's `
|
|
918
|
+
* plugin's `components.BbTabs.variants` and style `.bb-tabs-list--<variant>`.
|
|
919
919
|
*
|
|
920
920
|
* @defaultValue `'pill'`
|
|
921
921
|
*/
|
|
@@ -556,7 +556,7 @@ export type BbTabsRootProps<K extends string = string> =
|
|
|
556
556
|
* Look of the tab strip: `pill` (segmented, a sliding raised pill),
|
|
557
557
|
* `line` (a baseline with a sliding underline) or `none` (no chrome).
|
|
558
558
|
* Each is a preset of the strip's tokens; register more with the vite
|
|
559
|
-
* plugin's `
|
|
559
|
+
* plugin's `components.BbTabs.variants` and style `.bb-tabs-list--<variant>`.
|
|
560
560
|
*
|
|
561
561
|
* @defaultValue `'pill'`
|
|
562
562
|
*/
|
|
@@ -514,7 +514,7 @@ export type BbTabsRootProps<K extends string = string> =
|
|
|
514
514
|
* Look of the tab strip: `pill` (segmented, a sliding raised pill),
|
|
515
515
|
* `line` (a baseline with a sliding underline) or `none` (no chrome).
|
|
516
516
|
* Each is a preset of the strip's tokens; register more with the vite
|
|
517
|
-
* plugin's `
|
|
517
|
+
* plugin's `components.BbTabs.variants` and style `.bb-tabs-list--<variant>`.
|
|
518
518
|
*
|
|
519
519
|
* @defaultValue `'pill'`
|
|
520
520
|
*/
|
package/dist/ai/source/BbTag.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:id="id"
|
|
11
11
|
class="bb-tag"
|
|
12
12
|
:clearable="clearable && hasValue"
|
|
13
|
-
:compact="compact"
|
|
13
|
+
:compact="configDefaults.compact"
|
|
14
14
|
:description="description"
|
|
15
15
|
:disabled="disabled"
|
|
16
16
|
:errors="fieldErrors"
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
:label-align="labelAlign"
|
|
25
25
|
:label-mode="resolvedLabelMode"
|
|
26
26
|
:label-position="labelPosition"
|
|
27
|
-
:layout="layout"
|
|
27
|
+
:layout="configDefaults.layout"
|
|
28
28
|
:loading="loading"
|
|
29
29
|
:name="name"
|
|
30
30
|
:passthrough="passthrough"
|
|
31
31
|
:readonly="fieldReadonly"
|
|
32
|
-
:reverse="reverse"
|
|
32
|
+
:reverse="configDefaults.reverse"
|
|
33
33
|
:show-asterisk="showAsterisk"
|
|
34
34
|
:show-hint="showHint"
|
|
35
35
|
:warnings="warnings"
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
class="bb-tag__field"
|
|
56
56
|
:class="{
|
|
57
57
|
'bb-tag__field--active': active,
|
|
58
|
-
'bb-tag__field--compact': compact,
|
|
58
|
+
'bb-tag__field--compact': configDefaults.compact,
|
|
59
59
|
}"
|
|
60
60
|
:clearable="clearable"
|
|
61
|
-
:compact="compact"
|
|
61
|
+
:compact="configDefaults.compact"
|
|
62
62
|
:disabled="disabled"
|
|
63
63
|
:has-errors="fieldHasErrors"
|
|
64
64
|
:has-value="hasValue"
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
:aria-invalid="fieldHasErrors || undefined"
|
|
107
107
|
:aria-labelledby="ariaLabelledby"
|
|
108
108
|
:aria-readonly="fieldReadonly || undefined"
|
|
109
|
-
:autocomplete="autocomplete"
|
|
109
|
+
:autocomplete="configDefaults.autocomplete"
|
|
110
110
|
v-autofocus
|
|
111
111
|
:autofocus="autofocus"
|
|
112
112
|
class="bb-tag__input"
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
variantPt,
|
|
163
163
|
} from '@/composables/usePassthrough';
|
|
164
164
|
import { useBaseOptions } from '@/composables/useBaseOptions';
|
|
165
|
-
import {
|
|
165
|
+
import { useConfigDefaults } from '@/composables/useConfigDefaults';
|
|
166
166
|
import { useFormBinding } from '@/composables/useFormBinding';
|
|
167
167
|
import { useIndexById } from '../../composables/useIndexById';
|
|
168
168
|
import { useLogger } from '@/composables/useLogger';
|
|
@@ -192,8 +192,12 @@ const declaredProps = withDefaults(
|
|
|
192
192
|
>
|
|
193
193
|
>(),
|
|
194
194
|
{
|
|
195
|
-
autocomplete:
|
|
195
|
+
autocomplete: undefined,
|
|
196
196
|
divider: 'Enter',
|
|
197
|
+
// Tri-state: unset lets the components map show through.
|
|
198
|
+
compact: undefined,
|
|
199
|
+
// Tri-state: unset lets the components map show through.
|
|
200
|
+
reverse: undefined,
|
|
197
201
|
}
|
|
198
202
|
);
|
|
199
203
|
const declaredEmit = defineEmits<BbTagEvents>();
|
|
@@ -221,7 +225,6 @@ const inputAriaRequired = computed(
|
|
|
221
225
|
fieldAriaRequired.value ??
|
|
222
226
|
(fieldRequired.value && fieldModel.value.length ? true : undefined)
|
|
223
227
|
);
|
|
224
|
-
const config = useConfig();
|
|
225
228
|
export type { BbTagProps, BbTagEvents, BbTagSlots };
|
|
226
229
|
|
|
227
230
|
if (process.env.NODE_ENV !== 'production')
|
|
@@ -255,9 +258,13 @@ const hasValue = computed(() => (props.modelValue?.length ?? 0) > 0);
|
|
|
255
258
|
|
|
256
259
|
// Same resolution as the rest of the input family: explicit prop wins, else the
|
|
257
260
|
// plugin-configured default.
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
+
const configDefaults = useConfigDefaults('BbTag', props, {
|
|
262
|
+
labelMode: 'outside',
|
|
263
|
+
autocomplete: 'off',
|
|
264
|
+
compact: false,
|
|
265
|
+
reverse: false,
|
|
266
|
+
});
|
|
267
|
+
const resolvedLabelMode = computed(() => configDefaults.labelMode);
|
|
261
268
|
|
|
262
269
|
/**
|
|
263
270
|
* Passthrough (plans/passthrough/BbTag.md). The frame binds `root` / `label` /
|
|
@@ -679,8 +686,8 @@ import type { Responsive } from '@/types/ResponsiveSize';
|
|
|
679
686
|
import {
|
|
680
687
|
INPUT_VARIANTS,
|
|
681
688
|
type InputVariantBuiltIn,
|
|
682
|
-
type
|
|
683
|
-
type
|
|
689
|
+
type TagVariantRegistry,
|
|
690
|
+
type InputVariantOf,
|
|
684
691
|
} from '@/types/InputVariant';
|
|
685
692
|
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
686
693
|
import {
|
|
@@ -769,7 +776,7 @@ export const BB_TAG_PT = {
|
|
|
769
776
|
// the real states; a picker's panel and rows are not the field's.
|
|
770
777
|
variant: {
|
|
771
778
|
names: INPUT_VARIANTS,
|
|
772
|
-
option: '
|
|
779
|
+
option: 'tagVariants',
|
|
773
780
|
parts: TEXT_CONTROL_PT_PARTS,
|
|
774
781
|
},
|
|
775
782
|
} as const satisfies {
|
|
@@ -800,7 +807,7 @@ export type BbTagProps = {
|
|
|
800
807
|
| `pt:${TextControlPtPart}:${InputVariantBuiltIn}`]?: PtValue;
|
|
801
808
|
} & /* @vue-ignore */ PtCompoundProps<
|
|
802
809
|
typeof BB_TAG_PT,
|
|
803
|
-
PtVariantAttrs<TextControlPtPart, keyof
|
|
810
|
+
PtVariantAttrs<TextControlPtPart, keyof TagVariantRegistry>
|
|
804
811
|
> & {
|
|
805
812
|
// The tag parts also take a per-item function, called with the tag — a
|
|
806
813
|
// literal function type, not `PtItemFn` (T23).
|
|
@@ -813,7 +820,7 @@ export type BbTagProps = {
|
|
|
813
820
|
* without the prefix. See the `pt:<part>` row.
|
|
814
821
|
*/
|
|
815
822
|
pt?: PtScopedItemMap<BbTagPtKey, BbTagItemPtPart, BbTagPtState, string> & {
|
|
816
|
-
[K in `${TextControlPtPart}:${InputVariantBuiltIn | keyof
|
|
823
|
+
[K in `${TextControlPtPart}:${InputVariantBuiltIn | keyof TagVariantRegistry}`]?: PtValue;
|
|
817
824
|
};
|
|
818
825
|
/* eslint-enable @typescript-eslint/consistent-indexed-object-style */
|
|
819
826
|
/**
|
|
@@ -868,11 +875,11 @@ export type BbTagProps = {
|
|
|
868
875
|
* The field box's look, with `BbButton`'s names and tokens. Colours only,
|
|
869
876
|
* so a form never reflows; `'ghost'` has no border in any state, `'none'`
|
|
870
877
|
* no look at all (you own hover, focus and the states). Register more with
|
|
871
|
-
* the plugin's `
|
|
878
|
+
* the plugin's `components.BbTag.variants`.
|
|
872
879
|
*
|
|
873
880
|
* @defaultValue `'outline'`
|
|
874
881
|
*/
|
|
875
|
-
variant?:
|
|
882
|
+
variant?: InputVariantOf<TagVariantRegistry>;
|
|
876
883
|
|
|
877
884
|
/**
|
|
878
885
|
* Text between the label and the input. Unlike the hint it is always
|
|
@@ -970,7 +977,7 @@ export type BbTagProps = {
|
|
|
970
977
|
/**
|
|
971
978
|
* Where the label sits relative to the field: `outside` above it, `inside`
|
|
972
979
|
* within the control, or `floating` (starts inside, lifts on focus/value).
|
|
973
|
-
* Defaults to `
|
|
980
|
+
* Defaults to `all.labelMode`, like the other inputs.
|
|
974
981
|
*/
|
|
975
982
|
labelMode?: 'outside' | 'floating' | 'inside';
|
|
976
983
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:id="id"
|
|
11
11
|
class="bb-text-input"
|
|
12
12
|
:clearable="isClearable"
|
|
13
|
-
:compact="compact"
|
|
13
|
+
:compact="defaults.compact"
|
|
14
14
|
:counter="characterCounter"
|
|
15
15
|
:description="description"
|
|
16
16
|
:disabled="disabled"
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
:label-align="labelAlign"
|
|
26
26
|
:label-mode="resolvedLabelMode"
|
|
27
27
|
:label-position="labelPosition"
|
|
28
|
-
:layout="layout"
|
|
28
|
+
:layout="defaults.layout"
|
|
29
29
|
:loading="loading"
|
|
30
30
|
:mobile="isMobile"
|
|
31
31
|
:name="name"
|
|
32
32
|
:passthrough="passthrough"
|
|
33
33
|
:readonly="fieldReadonly"
|
|
34
|
-
:reverse="reverse"
|
|
34
|
+
:reverse="defaults.reverse"
|
|
35
35
|
:show-asterisk="showAsterisk"
|
|
36
36
|
:show-hint="showHint"
|
|
37
37
|
:warnings="warnings"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<CommonFieldInput
|
|
54
54
|
:append:icon="declaredProps['append:icon']"
|
|
55
55
|
:clearable="clearable"
|
|
56
|
-
:compact="compact"
|
|
56
|
+
:compact="defaults.compact"
|
|
57
57
|
:disabled="disabled"
|
|
58
58
|
:has-errors="fieldHasErrors"
|
|
59
59
|
:has-value="hasValue"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
:aria-invalid="fieldHasErrors || undefined"
|
|
79
79
|
:aria-labelledby="ariaLabelledby"
|
|
80
80
|
:aria-readonly="fieldReadonly || undefined"
|
|
81
|
-
:autocomplete="autocomplete"
|
|
81
|
+
:autocomplete="defaults.autocomplete"
|
|
82
82
|
v-autofocus
|
|
83
83
|
:autofocus="autofocus"
|
|
84
84
|
class="bb-text-input__input"
|
|
@@ -128,7 +128,7 @@ import { maskaDataOptions } from '@/utilities/misc/maskaDataOptions';
|
|
|
128
128
|
import CommonField from '../CommonField/CommonField.vue';
|
|
129
129
|
import CommonFieldInput from '../CommonFieldInput/CommonFieldInput.vue';
|
|
130
130
|
import { useMobile } from '@/composables/useMobile';
|
|
131
|
-
import {
|
|
131
|
+
import { useConfigDefaults } from '@/composables/useConfigDefaults';
|
|
132
132
|
import type {
|
|
133
133
|
NullValueOf,
|
|
134
134
|
NullValuePolicy,
|
|
@@ -171,6 +171,10 @@ const declaredProps = withDefaults(
|
|
|
171
171
|
>(),
|
|
172
172
|
{
|
|
173
173
|
type: 'text',
|
|
174
|
+
// Tri-state: unset lets the components map show through.
|
|
175
|
+
compact: undefined,
|
|
176
|
+
// Tri-state: unset lets the components map show through.
|
|
177
|
+
reverse: undefined,
|
|
174
178
|
}
|
|
175
179
|
);
|
|
176
180
|
|
|
@@ -192,19 +196,20 @@ const {
|
|
|
192
196
|
});
|
|
193
197
|
if (process.env.NODE_ENV !== 'production')
|
|
194
198
|
warnRemovedAttrs('BbTextInput', removedPropsFor('BbTextInput'));
|
|
195
|
-
const
|
|
199
|
+
const defaults = useConfigDefaults('BbTextInput', declaredProps, {
|
|
200
|
+
labelMode: 'outside',
|
|
201
|
+
nullValue: 'null',
|
|
202
|
+
compact: false,
|
|
203
|
+
reverse: false,
|
|
204
|
+
});
|
|
196
205
|
|
|
197
206
|
/**
|
|
198
207
|
* What the field emits once emptied (typed empty, cleared, an empty mask):
|
|
199
|
-
* the `null-value` policy, else `
|
|
208
|
+
* the `null-value` policy, else `components.BbTextInput.nullValue`, else
|
|
200
209
|
* `'null'`; `'string'` emits `''`.
|
|
201
|
-
* Read per emit, so a per-app override applies without a remount.
|
|
202
210
|
*/
|
|
203
211
|
const emptyValue = () =>
|
|
204
|
-
(
|
|
205
|
-
'string'
|
|
206
|
-
? ''
|
|
207
|
-
: null) as NullValueOf<E>;
|
|
212
|
+
(defaults.nullValue === 'string' ? '' : null) as NullValueOf<E>;
|
|
208
213
|
|
|
209
214
|
/** `''` and `null` both mean "empty", so neither counts as a change of the other. */
|
|
210
215
|
const sameValue = (
|
|
@@ -217,9 +222,7 @@ const showHint = computed(() => props.persistentHint || active.value);
|
|
|
217
222
|
const { isMobile } = useMobile();
|
|
218
223
|
const hasValue = computed(() => isNotEmpty(props.modelValue));
|
|
219
224
|
const isClearable = computed(() => Boolean(props.clearable) && hasValue.value);
|
|
220
|
-
const resolvedLabelMode = computed(
|
|
221
|
-
() => props.labelMode ?? config.defaultInputLabelMode
|
|
222
|
-
);
|
|
225
|
+
const resolvedLabelMode = computed(() => defaults.labelMode);
|
|
223
226
|
|
|
224
227
|
/**
|
|
225
228
|
* Passthrough (plans/passthrough/BbTextInput.md). The frame binds `root` /
|
|
@@ -479,8 +482,8 @@ import type { Responsive } from '@/types/ResponsiveSize';
|
|
|
479
482
|
import {
|
|
480
483
|
INPUT_VARIANTS,
|
|
481
484
|
type InputVariantBuiltIn,
|
|
482
|
-
type
|
|
483
|
-
type
|
|
485
|
+
type TextInputVariantRegistry,
|
|
486
|
+
type InputVariantOf,
|
|
484
487
|
} from '@/types/InputVariant';
|
|
485
488
|
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
486
489
|
import type { FieldCrossAlign, FieldLayout } from '@/types/FieldLayout';
|
|
@@ -554,7 +557,7 @@ export const BB_TEXT_INPUT_PT = {
|
|
|
554
557
|
// the real states; a picker's panel and rows are not the field's.
|
|
555
558
|
variant: {
|
|
556
559
|
names: INPUT_VARIANTS,
|
|
557
|
-
option: '
|
|
560
|
+
option: 'textInputVariants',
|
|
558
561
|
parts: TEXT_CONTROL_PT_PARTS,
|
|
559
562
|
},
|
|
560
563
|
} as const satisfies {
|
|
@@ -587,7 +590,7 @@ export type BbTextInputProps<E extends NullValuePolicy = AppPolicy> = {
|
|
|
587
590
|
| `pt:${TextControlPtPart}:${InputVariantBuiltIn}`]?: PtValue;
|
|
588
591
|
} & /* @vue-ignore */ PtCompoundProps<
|
|
589
592
|
typeof BB_TEXT_INPUT_PT,
|
|
590
|
-
PtVariantAttrs<TextControlPtPart, keyof
|
|
593
|
+
PtVariantAttrs<TextControlPtPart, keyof TextInputVariantRegistry>
|
|
591
594
|
> & {
|
|
592
595
|
/**
|
|
593
596
|
* Passthrough, object form: `{ box: '…', 'box:errors': '…' }` — the same
|
|
@@ -597,7 +600,7 @@ export type BbTextInputProps<E extends NullValuePolicy = AppPolicy> = {
|
|
|
597
600
|
pt?: {
|
|
598
601
|
[K in BbTextInputPtKey]?: PtValue;
|
|
599
602
|
} & {
|
|
600
|
-
[K in `${TextControlPtPart}:${InputVariantBuiltIn | keyof
|
|
603
|
+
[K in `${TextControlPtPart}:${InputVariantBuiltIn | keyof TextInputVariantRegistry}`]?: PtValue;
|
|
601
604
|
};
|
|
602
605
|
/* eslint-enable @typescript-eslint/consistent-indexed-object-style */
|
|
603
606
|
/**
|
|
@@ -642,11 +645,11 @@ export type BbTextInputProps<E extends NullValuePolicy = AppPolicy> = {
|
|
|
642
645
|
* The field box's look, with `BbButton`'s names and tokens. Colours only,
|
|
643
646
|
* so a form never reflows; `'ghost'` has no border in any state, `'none'`
|
|
644
647
|
* no look at all (you own hover, focus and the states). Register more with
|
|
645
|
-
* the plugin's `
|
|
648
|
+
* the plugin's `components.BbTextInput.variants`.
|
|
646
649
|
*
|
|
647
650
|
* @defaultValue `'outline'`
|
|
648
651
|
*/
|
|
649
|
-
variant?:
|
|
652
|
+
variant?: InputVariantOf<TextInputVariantRegistry>;
|
|
650
653
|
|
|
651
654
|
/**
|
|
652
655
|
* Text between the label and the input. Unlike the hint it is always
|
|
@@ -774,9 +777,9 @@ export type BbTextInputProps<E extends NullValuePolicy = AppPolicy> = {
|
|
|
774
777
|
|
|
775
778
|
/**
|
|
776
779
|
* What the field emits once emptied (typing, the clear button, an empty
|
|
777
|
-
* mask): `'null'` emits `null`, `'string'` emits `''`. Unset:
|
|
778
|
-
* `
|
|
779
|
-
* `update:modelValue` payload types as `string`.
|
|
780
|
+
* mask): `'null'` emits `null`, `'string'` emits `''`. Unset: the
|
|
781
|
+
* plugin's `components.BbTextInput.nullValue` (`'null'`). With `'string'`,
|
|
782
|
+
* the `update:modelValue` payload types as `string`.
|
|
780
783
|
*/
|
|
781
784
|
nullValue?: E;
|
|
782
785
|
|