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
|
@@ -21,46 +21,54 @@ declare const __VLS_export: <E extends NullValuePolicy = RegisteredNullValue<"Bb
|
|
|
21
21
|
"pt:spinner:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
22
22
|
"pt:spinner:secondary"?: import('../../types/passthrough').PtValue | undefined;
|
|
23
23
|
"pt:spinner:ghost"?: import('../../types/passthrough').PtValue | undefined;
|
|
24
|
-
"pt:input"?: import('../../types/passthrough').PtValue | undefined;
|
|
25
|
-
"pt:description"?: import('../../types/passthrough').PtValue | undefined;
|
|
26
24
|
"pt:clear"?: import('../../types/passthrough').PtValue | undefined;
|
|
27
25
|
"pt:clear:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
28
26
|
"pt:clear:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
29
27
|
"pt:clear:secondary"?: import('../../types/passthrough').PtValue | undefined;
|
|
30
28
|
"pt:label"?: import('../../types/passthrough').PtValue | undefined;
|
|
29
|
+
"pt:description"?: import('../../types/passthrough').PtValue | undefined;
|
|
31
30
|
"pt:message"?: import('../../types/passthrough').PtValue | undefined;
|
|
32
31
|
"pt:hint"?: import('../../types/passthrough').PtValue | undefined;
|
|
33
|
-
"pt:box"?: import('../../types/passthrough').PtValue | undefined;
|
|
34
|
-
"pt:prefix"?: import('../../types/passthrough').PtValue | undefined;
|
|
35
|
-
"pt:suffix"?: import('../../types/passthrough').PtValue | undefined;
|
|
36
|
-
"pt:label:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
37
32
|
"pt:label:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
38
33
|
"pt:label:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
39
34
|
"pt:label:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
40
35
|
"pt:label:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
41
|
-
"pt:label:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
42
|
-
"pt:root:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
43
36
|
"pt:root:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
44
37
|
"pt:root:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
45
38
|
"pt:root:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
46
|
-
"pt:description:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
47
39
|
"pt:description:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
48
40
|
"pt:description:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
49
41
|
"pt:description:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
50
42
|
"pt:description:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
51
|
-
"pt:description:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
52
|
-
"pt:message:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
53
43
|
"pt:message:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
54
44
|
"pt:message:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
55
45
|
"pt:message:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
56
46
|
"pt:message:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
57
|
-
"pt:message:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
58
|
-
"pt:hint:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
59
47
|
"pt:hint:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
60
48
|
"pt:hint:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
61
49
|
"pt:hint:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
62
50
|
"pt:hint:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
51
|
+
"pt:icon:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
52
|
+
"pt:icon:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
53
|
+
"pt:icon:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
54
|
+
"pt:root:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
55
|
+
"pt:description:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
56
|
+
"pt:description:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
57
|
+
"pt:message:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
58
|
+
"pt:message:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
59
|
+
"pt:hint:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
63
60
|
"pt:hint:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
61
|
+
"pt:label:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
62
|
+
"pt:label:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
63
|
+
"pt:icon:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
64
|
+
"pt:description:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
65
|
+
"pt:message:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
66
|
+
"pt:hint:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
67
|
+
"pt:label:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
68
|
+
"pt:box"?: import('../../types/passthrough').PtValue | undefined;
|
|
69
|
+
"pt:input"?: import('../../types/passthrough').PtValue | undefined;
|
|
70
|
+
"pt:prefix"?: import('../../types/passthrough').PtValue | undefined;
|
|
71
|
+
"pt:suffix"?: import('../../types/passthrough').PtValue | undefined;
|
|
64
72
|
"pt:box:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
65
73
|
"pt:box:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
66
74
|
"pt:box:disabled"?: import('../../types/passthrough').PtValue | undefined;
|
|
@@ -73,10 +81,6 @@ declare const __VLS_export: <E extends NullValuePolicy = RegisteredNullValue<"Bb
|
|
|
73
81
|
"pt:input:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
74
82
|
"pt:input:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
75
83
|
"pt:input:loading"?: import('../../types/passthrough').PtValue | undefined;
|
|
76
|
-
"pt:icon:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
77
|
-
"pt:icon:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
78
|
-
"pt:icon:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
79
|
-
"pt:icon:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
80
84
|
"pt:spinner:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
81
85
|
"pt:spinner:readonly"?: import('../../types/passthrough').PtValue | undefined;
|
|
82
86
|
"pt:spinner:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
@@ -96,16 +100,12 @@ declare const __VLS_export: <E extends NullValuePolicy = RegisteredNullValue<"Bb
|
|
|
96
100
|
"pt:clear:hasValue"?: import('../../types/passthrough').PtValue | undefined;
|
|
97
101
|
"pt:clear:warnings"?: import('../../types/passthrough').PtValue | undefined;
|
|
98
102
|
"pt:clear:errors"?: import('../../types/passthrough').PtValue | undefined;
|
|
99
|
-
"pt:label:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
100
103
|
"pt:label:secondary"?: import('../../types/passthrough').PtValue | undefined;
|
|
101
104
|
"pt:label:ghost"?: import('../../types/passthrough').PtValue | undefined;
|
|
102
|
-
"pt:description:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
103
105
|
"pt:description:secondary"?: import('../../types/passthrough').PtValue | undefined;
|
|
104
106
|
"pt:description:ghost"?: import('../../types/passthrough').PtValue | undefined;
|
|
105
|
-
"pt:message:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
106
107
|
"pt:message:secondary"?: import('../../types/passthrough').PtValue | undefined;
|
|
107
108
|
"pt:message:ghost"?: import('../../types/passthrough').PtValue | undefined;
|
|
108
|
-
"pt:hint:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
109
109
|
"pt:hint:secondary"?: import('../../types/passthrough').PtValue | undefined;
|
|
110
110
|
"pt:hint:ghost"?: import('../../types/passthrough').PtValue | undefined;
|
|
111
111
|
"pt:box:outline"?: import('../../types/passthrough').PtValue | undefined;
|
|
@@ -166,19 +166,19 @@ declare const __VLS_export: <E extends NullValuePolicy = RegisteredNullValue<"Bb
|
|
|
166
166
|
};
|
|
167
167
|
readonly variant: {
|
|
168
168
|
readonly names: readonly ["outline", "secondary", "ghost"];
|
|
169
|
-
readonly option: "
|
|
169
|
+
readonly option: "textInputVariants";
|
|
170
170
|
readonly parts: readonly ["root", "label", "description", "message", "hint", "box", "input", "icon", "spinner", "prefix", "suffix", "clear"];
|
|
171
171
|
};
|
|
172
172
|
}> | undefined;
|
|
173
|
-
} & import('../../types/passthrough').PtVariantAttrs<import('../../types/passthrough').TextControlPtPart, keyof import('../..').
|
|
174
|
-
pt?: { [K in import('./types').BbTextInputPtKey]?: import('../../types/passthrough').PtValue; } & { [K in `${import('../../types/passthrough').TextControlPtPart}:${import('../../types/InputVariant').InputVariantBuiltIn | keyof import('../..').
|
|
173
|
+
} & import('../../types/passthrough').PtVariantAttrs<import('../../types/passthrough').TextControlPtPart, keyof import('../..').TextInputVariantRegistry> & {
|
|
174
|
+
pt?: { [K in import('./types').BbTextInputPtKey]?: import('../../types/passthrough').PtValue; } & { [K in `${import('../../types/passthrough').TextControlPtPart}:${import('../../types/InputVariant').InputVariantBuiltIn | keyof import('../..').TextInputVariantRegistry}`]?: import('../../types/passthrough').PtValue; };
|
|
175
175
|
'append:icon'?: import('../..').IconType;
|
|
176
176
|
autocomplete?: string;
|
|
177
177
|
autofocus?: import('vue').InputHTMLAttributes["autofocus"];
|
|
178
178
|
clearable?: boolean;
|
|
179
179
|
counter?: boolean;
|
|
180
180
|
compact?: boolean;
|
|
181
|
-
variant?: import('../..').
|
|
181
|
+
variant?: import('../../types/InputVariant').InputVariantOf<import('../..').TextInputVariantRegistry>;
|
|
182
182
|
description?: string;
|
|
183
183
|
layout?: import('../..').Responsive<import('../..').FieldLayout>;
|
|
184
184
|
labelAlign?: import('../../types/FieldLayout').FieldCrossAlign;
|
|
@@ -208,20 +208,20 @@ declare const __VLS_export: <E extends NullValuePolicy = RegisteredNullValue<"Bb
|
|
|
208
208
|
required?: boolean;
|
|
209
209
|
reverse?: boolean;
|
|
210
210
|
type?: "text" | "email" | "url" | "tel" | "search" | "password";
|
|
211
|
-
} & import('../../composables/useFormBinding').FormFieldProps<string | null> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "pt:root" | "pt:root:disabled" | "type" | "pt" | "pt:icon" | "pt:spinner" | "pt:root:loading" | "pt:icon:disabled" | "pt:icon:loading" | "pt:spinner:disabled" | "pt:spinner:loading" | "pt:root:outline" | "pt:root:secondary" | "pt:root:ghost" | "pt:icon:outline" | "pt:icon:secondary" | "pt:icon:ghost" | "pt:spinner:outline" | "pt:spinner:secondary" | "pt:spinner:ghost" | "prepend:icon" | "append:icon" | "
|
|
211
|
+
} & import('../../composables/useFormBinding').FormFieldProps<string | null> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "pt:root" | "pt:root:disabled" | "type" | "pt" | "pt:icon" | "pt:spinner" | "pt:root:loading" | "pt:icon:disabled" | "pt:icon:loading" | "pt:spinner:disabled" | "pt:spinner:loading" | "pt:root:outline" | "pt:root:secondary" | "pt:root:ghost" | "pt:icon:outline" | "pt:icon:secondary" | "pt:icon:ghost" | "pt:spinner:outline" | "pt:spinner:secondary" | "pt:spinner:ghost" | "prepend:icon" | "append:icon" | "pt:clear" | "pt:clear:loading" | "pt:clear:outline" | "pt:clear:secondary" | "variant" | "compact" | "layout" | "labelMode" | "autocomplete" | "nullValue" | "modelValue" | "clearable" | "pt:label" | "pt:description" | "pt:message" | "pt:hint" | "pt:label:readonly" | "pt:label:disabled" | "pt:label:warnings" | "pt:label:errors" | "pt:root:readonly" | "pt:root:warnings" | "pt:root:errors" | "pt:description:readonly" | "pt:description:disabled" | "pt:description:warnings" | "pt:description:errors" | "pt:message:readonly" | "pt:message:disabled" | "pt:message:warnings" | "pt:message:errors" | "pt:hint:readonly" | "pt:hint:disabled" | "pt:hint:warnings" | "pt:hint:errors" | "pt:icon:readonly" | "pt:icon:warnings" | "pt:icon:errors" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "pt:root:hasValue" | "pt:description:hasValue" | "pt:description:loading" | "pt:message:hasValue" | "pt:message:loading" | "pt:hint:hasValue" | "pt:hint:loading" | "pt:label:hasValue" | "pt:label:loading" | "pt:icon:hasValue" | "pt:description:outline" | "pt:message:outline" | "pt:hint:outline" | "pt:label:outline" | "pt:box" | "pt:input" | "pt:prefix" | "pt:suffix" | "pt:box:hasValue" | "pt:box:readonly" | "pt:box:disabled" | "pt:box:warnings" | "pt:box:errors" | "pt:box:loading" | "pt:input:hasValue" | "pt:input:readonly" | "pt:input:disabled" | "pt:input:warnings" | "pt:input:errors" | "pt:input:loading" | "pt:spinner:hasValue" | "pt:spinner:readonly" | "pt:spinner:warnings" | "pt:spinner:errors" | "pt:prefix:hasValue" | "pt:prefix:readonly" | "pt:prefix:disabled" | "pt:prefix:warnings" | "pt:prefix:errors" | "pt:prefix:loading" | "pt:suffix:hasValue" | "pt:suffix:readonly" | "pt:suffix:disabled" | "pt:suffix:warnings" | "pt:suffix:errors" | "pt:suffix:loading" | "pt:clear:hasValue" | "pt:clear:warnings" | "pt:clear:errors" | "pt:label:secondary" | "pt:label:ghost" | "pt:description:secondary" | "pt:description:ghost" | "pt:message:secondary" | "pt:message:ghost" | "pt:hint:secondary" | "pt:hint:ghost" | "pt:box:outline" | "pt:box:secondary" | "pt:box:ghost" | "pt:input:outline" | "pt:input:secondary" | "pt:input:ghost" | "pt:prefix:outline" | "pt:prefix:secondary" | "pt:prefix:ghost" | "pt:suffix:outline" | "pt:suffix:secondary" | "pt:suffix:ghost" | "pt:clear:ghost" | keyof import('../../composables/useFormBinding').FormFieldProps<string | null> | "counter" | "pt:counter" | "pt:label:nearLimit" | "pt:label:atLimit" | "pt:root:nearLimit" | "pt:root:atLimit" | "pt:description:nearLimit" | "pt:description:atLimit" | "pt:message:nearLimit" | "pt:message:atLimit" | "pt:hint:nearLimit" | "pt:hint:atLimit" | "pt:box:nearLimit" | "pt:box:atLimit" | "pt:input:nearLimit" | "pt:input:atLimit" | "pt:icon:nearLimit" | "pt:icon:atLimit" | "pt:spinner:nearLimit" | "pt:spinner:atLimit" | "pt:prefix:nearLimit" | "pt:prefix:atLimit" | "pt:suffix:nearLimit" | "pt:suffix:atLimit" | "pt:counter:hasValue" | "pt:counter:readonly" | "pt:counter:disabled" | "pt:counter:warnings" | "pt:counter:errors" | "pt:counter:loading" | "pt:counter:nearLimit" | "pt:counter:atLimit" | "pt:clear:nearLimit" | "pt:clear:atLimit" | "emitMasked" | "inputMode" | "mask" | "onPaste" | "onCompositionend" | "onCompositionstart" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onKeyup" | "onMousedown" | "onMouseup" | "onClick"> & {} & ControlAttrs<"input", "list" | "form" | "maxlength" | "minlength" | "pattern" | "spellcheck" | "autocapitalize" | "autocorrect" | "enterkeyhint" | "inputmode" | "dirname" | "wrap">) & {
|
|
212
212
|
onInput?: ((event: Event) => any) | undefined;
|
|
213
|
+
"onUpdate:modelValue"?: ((value: string | NullValueOf<E>) => any) | undefined;
|
|
213
214
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
214
215
|
onChange?: ((event: Event) => any) | undefined;
|
|
215
216
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
216
|
-
onCompositionend?: ((event: CompositionEvent) => any) | undefined;
|
|
217
|
-
onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
|
|
218
217
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
219
218
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
220
|
-
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
221
219
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
222
220
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
221
|
+
onCompositionend?: ((event: CompositionEvent) => any) | undefined;
|
|
222
|
+
onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
|
|
223
|
+
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
223
224
|
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
224
|
-
"onUpdate:modelValue"?: ((value: string | NullValueOf<E>) => any) | undefined;
|
|
225
225
|
}> & (typeof globalThis extends {
|
|
226
226
|
__VLS_PROPS_FALLBACK: infer P;
|
|
227
227
|
} ? P : {});
|
|
@@ -6,14 +6,14 @@ import { maskaDataOptions as i } from "../../utilities/misc/maskaDataOptions.js"
|
|
|
6
6
|
import a from "../CommonField/CommonField.vue.js";
|
|
7
7
|
import o from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
8
8
|
import { useMobile as s } from "../../composables/useMobile.js";
|
|
9
|
-
import {
|
|
9
|
+
import { useConfigDefaults as c } from "../../composables/useConfigDefaults.js";
|
|
10
10
|
import { useFormBinding as l } from "../../composables/useFormBinding.js";
|
|
11
11
|
import { useCharacterCounter as ee } from "../../composables/useCharacterCounter.js";
|
|
12
|
-
import { TEXT_CONTROL_NATIVE_ATTRS as te, formControlPtActive as
|
|
13
|
-
import { hash as
|
|
14
|
-
import { isNotEmpty as
|
|
15
|
-
import { BB_TEXT_INPUT_PT as
|
|
16
|
-
import { computed as
|
|
12
|
+
import { TEXT_CONTROL_NATIVE_ATTRS as te, formControlPtActive as ne, usePassthrough as u, variantPt as d } from "../../composables/usePassthrough.js";
|
|
13
|
+
import { hash as re } from "../../utilities/functions/hash.js";
|
|
14
|
+
import { isNotEmpty as ie } from "../../utilities/functions/isNotEmpty.js";
|
|
15
|
+
import { BB_TEXT_INPUT_PT as f } from "./types.js";
|
|
16
|
+
import { computed as p, createBlock as m, createElementVNode as h, createSlots as g, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, normalizeProps as x, onBeforeUnmount as ae, onMounted as oe, openBlock as se, ref as S, renderSlot as C, unref as w, useAttrs as T, watch as E, withCtx as D, withDirectives as ce } from "vue";
|
|
17
17
|
import { Mask as O, MaskInput as le } from "maska";
|
|
18
18
|
// src/components/BbTextInput/BbTextInput.vue?vue&type=script&setup=true&lang.ts
|
|
19
19
|
var ue = [
|
|
@@ -34,7 +34,7 @@ var ue = [
|
|
|
34
34
|
"aria-required",
|
|
35
35
|
"type"
|
|
36
36
|
], k = /*@__PURE__*/ v({
|
|
37
|
-
mixins: [f
|
|
37
|
+
mixins: [d(f)],
|
|
38
38
|
inheritAttrs: !1,
|
|
39
39
|
__name: "BbTextInput",
|
|
40
40
|
props: {
|
|
@@ -195,7 +195,10 @@ var ue = [
|
|
|
195
195
|
autofocus: { type: [Boolean, String] },
|
|
196
196
|
clearable: { type: Boolean },
|
|
197
197
|
counter: { type: Boolean },
|
|
198
|
-
compact: {
|
|
198
|
+
compact: {
|
|
199
|
+
type: Boolean,
|
|
200
|
+
default: void 0
|
|
201
|
+
},
|
|
199
202
|
variant: {},
|
|
200
203
|
description: {},
|
|
201
204
|
layout: {},
|
|
@@ -224,7 +227,10 @@ var ue = [
|
|
|
224
227
|
"prepend:icon": {},
|
|
225
228
|
readonly: { type: Boolean },
|
|
226
229
|
required: { type: Boolean },
|
|
227
|
-
reverse: {
|
|
230
|
+
reverse: {
|
|
231
|
+
type: Boolean,
|
|
232
|
+
default: void 0
|
|
233
|
+
},
|
|
228
234
|
type: { default: "text" },
|
|
229
235
|
validationLabel: {},
|
|
230
236
|
rules: {},
|
|
@@ -246,34 +252,39 @@ var ue = [
|
|
|
246
252
|
"paste",
|
|
247
253
|
"update:modelValue"
|
|
248
254
|
],
|
|
249
|
-
setup(
|
|
250
|
-
let k =
|
|
255
|
+
setup(d, { emit: v }) {
|
|
256
|
+
let k = d, { props: A, emit: j, showAsterisk: de, errors: M, required: N, ariaRequired: P, readonly: F } = l(k, v, {
|
|
251
257
|
componentName: "BbTextInput",
|
|
252
258
|
identifierFallback: () => k.label,
|
|
253
259
|
leaveOn: "blur"
|
|
254
260
|
});
|
|
255
261
|
process.env.NODE_ENV !== "production" && n("BbTextInput", t("BbTextInput"));
|
|
256
|
-
let I = c(
|
|
262
|
+
let I = c("BbTextInput", k, {
|
|
263
|
+
labelMode: "outside",
|
|
264
|
+
nullValue: "null",
|
|
265
|
+
compact: !1,
|
|
266
|
+
reverse: !1
|
|
267
|
+
}), L = () => I.nullValue === "string" ? "" : null, R = (e, t) => (e || null) === (t || null), z = S(!1), B = p(() => A.persistentHint || z.value), { isMobile: V } = s(), H = p(() => ie(A.modelValue)), fe = p(() => !!A.clearable && H.value), pe = p(() => I.labelMode), U = T(), W = ee({
|
|
257
268
|
enabled: () => !!A.counter,
|
|
258
269
|
value: () => A.modelValue,
|
|
259
270
|
maxlength: () => U.maxlength ?? U.maxLength
|
|
260
|
-
}), G =
|
|
271
|
+
}), G = u({
|
|
261
272
|
component: "BbTextInput",
|
|
262
273
|
attrs: T(),
|
|
263
274
|
controlAttrs: te,
|
|
264
275
|
props: A,
|
|
265
|
-
parts:
|
|
266
|
-
states:
|
|
276
|
+
parts: f.parts,
|
|
277
|
+
states: f.states,
|
|
267
278
|
active: {
|
|
268
|
-
...
|
|
279
|
+
...ne(A, () => H.value),
|
|
269
280
|
nearLimit: () => W.value?.state === "near",
|
|
270
281
|
atLimit: () => W.value?.state === "limit"
|
|
271
282
|
},
|
|
272
283
|
variant: {
|
|
273
|
-
...
|
|
284
|
+
...f.variant,
|
|
274
285
|
current: () => A.variant ?? "outline"
|
|
275
286
|
}
|
|
276
|
-
}), K = S(null), q = S(null), me =
|
|
287
|
+
}), K = S(null), q = S(null), me = p(() => re(A.mask ?? null)), J = () => !!A.mask, Y = () => {
|
|
277
288
|
q.value?.destroy(), q.value = null;
|
|
278
289
|
}, X = (e) => {
|
|
279
290
|
K.value && (K.value.value = e ?? "", J() && q.value?.updateValue(K.value));
|
|
@@ -326,79 +337,79 @@ var ue = [
|
|
|
326
337
|
onMousedown: (e) => j("mousedown", e),
|
|
327
338
|
onMouseup: (e) => j("mouseup", e),
|
|
328
339
|
onPaste: (e) => j("paste", e)
|
|
329
|
-
}, _e =
|
|
330
|
-
return (t, n) => (se(),
|
|
331
|
-
id:
|
|
340
|
+
}, _e = p(() => G.input ? b($, G.input) : $);
|
|
341
|
+
return (t, n) => (se(), m(a, b({
|
|
342
|
+
id: d.id,
|
|
332
343
|
class: "bb-text-input",
|
|
333
344
|
clearable: fe.value,
|
|
334
|
-
compact:
|
|
345
|
+
compact: w(I).compact,
|
|
335
346
|
counter: w(W),
|
|
336
|
-
description:
|
|
337
|
-
disabled:
|
|
347
|
+
description: d.description,
|
|
348
|
+
disabled: d.disabled,
|
|
338
349
|
errors: w(M),
|
|
339
|
-
"has-errors":
|
|
350
|
+
"has-errors": d.hasErrors,
|
|
340
351
|
"has-value": H.value,
|
|
341
|
-
"has-warnings":
|
|
342
|
-
"hide-label":
|
|
343
|
-
hint:
|
|
344
|
-
"input-align":
|
|
345
|
-
label:
|
|
346
|
-
"label-align":
|
|
352
|
+
"has-warnings": d.hasWarnings,
|
|
353
|
+
"hide-label": d.hideLabel,
|
|
354
|
+
hint: d.hint,
|
|
355
|
+
"input-align": d.inputAlign,
|
|
356
|
+
label: d.label,
|
|
357
|
+
"label-align": d.labelAlign,
|
|
347
358
|
"label-mode": pe.value,
|
|
348
|
-
"label-position":
|
|
349
|
-
layout:
|
|
350
|
-
loading:
|
|
359
|
+
"label-position": d.labelPosition,
|
|
360
|
+
layout: w(I).layout,
|
|
361
|
+
loading: d.loading,
|
|
351
362
|
mobile: w(V),
|
|
352
|
-
name:
|
|
363
|
+
name: d.name,
|
|
353
364
|
passthrough: w(G),
|
|
354
365
|
readonly: w(F),
|
|
355
|
-
reverse:
|
|
366
|
+
reverse: w(I).reverse,
|
|
356
367
|
"show-asterisk": w(de),
|
|
357
368
|
"show-hint": B.value,
|
|
358
|
-
warnings:
|
|
359
|
-
}, w(G).forwardAttrs),
|
|
369
|
+
warnings: d.warnings
|
|
370
|
+
}, w(G).forwardAttrs), g({
|
|
360
371
|
label: D((e) => [C(t.$slots, "label", x(y(e)))]),
|
|
361
|
-
input: D(({ id: i, hasErrors: a, hasWarnings: s, ariaDescribedby: c, ariaLabelledby: l }) => [
|
|
372
|
+
input: D(({ id: i, hasErrors: a, hasWarnings: s, ariaDescribedby: c, ariaLabelledby: l }) => [_(o, {
|
|
362
373
|
"append:icon": k["append:icon"],
|
|
363
|
-
clearable:
|
|
364
|
-
compact:
|
|
365
|
-
disabled:
|
|
374
|
+
clearable: d.clearable,
|
|
375
|
+
compact: w(I).compact,
|
|
376
|
+
disabled: d.disabled,
|
|
366
377
|
"has-errors": a,
|
|
367
378
|
"has-value": H.value,
|
|
368
379
|
"has-warnings": s,
|
|
369
|
-
loading:
|
|
380
|
+
loading: d.loading,
|
|
370
381
|
passthrough: w(G),
|
|
371
382
|
"prepend:icon": k["prepend:icon"],
|
|
372
383
|
readonly: w(F),
|
|
373
|
-
"reserve-append-space":
|
|
374
|
-
variant:
|
|
384
|
+
"reserve-append-space": d.clearable,
|
|
385
|
+
variant: d.variant,
|
|
375
386
|
"onClick:clear": n[0] ||= (e) => w(j)("update:modelValue", L())
|
|
376
|
-
},
|
|
387
|
+
}, g({
|
|
377
388
|
"prepend:outer": D(() => [C(t.$slots, "prepend:outer")]),
|
|
378
389
|
prepend: D(() => [C(t.$slots, "prepend")]),
|
|
379
390
|
append: D(() => [C(t.$slots, "append")]),
|
|
380
391
|
"append:outer": D(() => [C(t.$slots, "append:outer")]),
|
|
381
|
-
default: D(() => [ce(
|
|
392
|
+
default: D(() => [ce(h("input", b({
|
|
382
393
|
id: i,
|
|
383
394
|
ref_key: "input",
|
|
384
395
|
ref: K,
|
|
385
396
|
"aria-describedby": c,
|
|
386
|
-
"aria-disabled":
|
|
397
|
+
"aria-disabled": d.disabled || void 0,
|
|
387
398
|
"aria-invalid": a || void 0,
|
|
388
399
|
"aria-labelledby": l,
|
|
389
400
|
"aria-readonly": w(F) || void 0,
|
|
390
|
-
autocomplete:
|
|
391
|
-
autofocus:
|
|
401
|
+
autocomplete: w(I).autocomplete,
|
|
402
|
+
autofocus: d.autofocus,
|
|
392
403
|
class: "bb-text-input__input",
|
|
393
|
-
disabled:
|
|
394
|
-
inputmode:
|
|
395
|
-
name:
|
|
396
|
-
placeholder:
|
|
404
|
+
disabled: d.disabled,
|
|
405
|
+
inputmode: d.inputMode,
|
|
406
|
+
name: d.name,
|
|
407
|
+
placeholder: d.placeholder,
|
|
397
408
|
readonly: w(F),
|
|
398
409
|
required: w(N),
|
|
399
410
|
"aria-required": w(P),
|
|
400
411
|
size: "1",
|
|
401
|
-
type:
|
|
412
|
+
type: d.type,
|
|
402
413
|
onMaska: he
|
|
403
414
|
}, b(w(G).controlAttrs, _e.value)), null, 16, ue), [[w(e)], [w(r), ge]])]),
|
|
404
415
|
_: 2
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Responsive } from '../../types/ResponsiveSize';
|
|
2
|
-
import { InputVariantBuiltIn,
|
|
2
|
+
import { InputVariantBuiltIn, TextInputVariantRegistry, InputVariantOf } from '../../types/InputVariant';
|
|
3
3
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
4
4
|
import { FieldCrossAlign, FieldLayout } from '../../types/FieldLayout';
|
|
5
5
|
import { MaskInputOptions } from 'maska';
|
|
@@ -34,7 +34,7 @@ export declare const BB_TEXT_INPUT_PT: {
|
|
|
34
34
|
};
|
|
35
35
|
readonly variant: {
|
|
36
36
|
readonly names: readonly ["outline", "secondary", "ghost"];
|
|
37
|
-
readonly option: "
|
|
37
|
+
readonly option: "textInputVariants";
|
|
38
38
|
readonly parts: readonly ["root", "label", "description", "message", "hint", "box", "input", "icon", "spinner", "prefix", "suffix", "clear"];
|
|
39
39
|
};
|
|
40
40
|
};
|
|
@@ -42,7 +42,7 @@ export declare const BB_TEXT_INPUT_PT: {
|
|
|
42
42
|
type AppPolicy = RegisteredNullValue<'BbTextInput'>;
|
|
43
43
|
export type BbTextInputProps<E extends NullValuePolicy = AppPolicy> = {
|
|
44
44
|
[K in `pt:${BbTextInputPtPart}` | `pt:${TextControlKeptPtPart}:${BbTextInputPtState}` | `pt:counter:${BbTextInputPtState}` | `pt:clear:${ClearPtState}` | `pt:clear:${CounterPtState}` | `pt:${TextControlPtPart}:${InputVariantBuiltIn}`]?: PtValue;
|
|
45
|
-
} & /* @vue-ignore */ PtCompoundProps<typeof BB_TEXT_INPUT_PT, PtVariantAttrs<TextControlPtPart, keyof
|
|
45
|
+
} & /* @vue-ignore */ PtCompoundProps<typeof BB_TEXT_INPUT_PT, PtVariantAttrs<TextControlPtPart, keyof TextInputVariantRegistry>> & {
|
|
46
46
|
/**
|
|
47
47
|
* Passthrough, object form: `{ box: '…', 'box:errors': '…' }` — the same
|
|
48
48
|
* keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row.
|
|
@@ -50,7 +50,7 @@ export type BbTextInputProps<E extends NullValuePolicy = AppPolicy> = {
|
|
|
50
50
|
pt?: {
|
|
51
51
|
[K in BbTextInputPtKey]?: PtValue;
|
|
52
52
|
} & {
|
|
53
|
-
[K in `${TextControlPtPart}:${InputVariantBuiltIn | keyof
|
|
53
|
+
[K in `${TextControlPtPart}:${InputVariantBuiltIn | keyof TextInputVariantRegistry}`]?: PtValue;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
56
|
* Name of the icon to be added at the end of the input.
|
|
@@ -86,11 +86,11 @@ export type BbTextInputProps<E extends NullValuePolicy = AppPolicy> = {
|
|
|
86
86
|
* The field box's look, with `BbButton`'s names and tokens. Colours only,
|
|
87
87
|
* so a form never reflows; `'ghost'` has no border in any state, `'none'`
|
|
88
88
|
* no look at all (you own hover, focus and the states). Register more with
|
|
89
|
-
* the plugin's `
|
|
89
|
+
* the plugin's `components.BbTextInput.variants`.
|
|
90
90
|
*
|
|
91
91
|
* @defaultValue `'outline'`
|
|
92
92
|
*/
|
|
93
|
-
variant?:
|
|
93
|
+
variant?: InputVariantOf<TextInputVariantRegistry>;
|
|
94
94
|
/**
|
|
95
95
|
* Text between the label and the input. Unlike the hint it is always
|
|
96
96
|
* visible; it joins the input's `aria-describedby` after any `errors` /
|
|
@@ -196,9 +196,9 @@ export type BbTextInputProps<E extends NullValuePolicy = AppPolicy> = {
|
|
|
196
196
|
name?: InputHTMLAttributes['name'];
|
|
197
197
|
/**
|
|
198
198
|
* What the field emits once emptied (typing, the clear button, an empty
|
|
199
|
-
* mask): `'null'` emits `null`, `'string'` emits `''`. Unset:
|
|
200
|
-
* `
|
|
201
|
-
* `update:modelValue` payload types as `string`.
|
|
199
|
+
* mask): `'null'` emits `null`, `'string'` emits `''`. Unset: the
|
|
200
|
+
* plugin's `components.BbTextInput.nullValue` (`'null'`). With `'string'`,
|
|
201
|
+
* the `update:modelValue` payload types as `string`.
|
|
202
202
|
*/
|
|
203
203
|
nullValue?: E;
|
|
204
204
|
/**
|