fix(pickers): rework B02 against the public review

Restore native clearing, unify the form/field protocol with the other choice
families (per-key entries, disabled and removed keys omitted, shared form
owner), synchronise ComboBox text by key identity, keep filtering out of open
composition sessions, and stop stealing focus when a controlled close is
rejected. Also merge caller refs/ARIA/disabled, implement asChild, autoFocus
and ComboBox variant, use a locale-aware base matcher, and put the indicator
class and slot on the icon element the ported CSS selects.
This commit is contained in:
maoyingjie
2026-10-25 20:40:24 +08:00
parent 3e9be13b19
commit e34b9debdf
24 changed files with 1808 additions and 236 deletions
+12 -1
View File
@@ -971,12 +971,18 @@ export type {
ComboBoxValueProps,
ComboBoxPopoverProps,
} from "./types";
export type { CollectionKey } from "./components/collection/keys";
export type {
ComboBoxItem,
ComboBoxValue as ComboBoxValueType,
ComboBoxMenuTrigger,
ComboBoxOptions,
ComboBoxState,
ComboBoxValueState,
} from "./components/combo-box/context";
// The model type keeps its own name: aliasing it to `ComboBoxValue*` makes
// TypeScript resolve the component's value meaning when both are imported.
import type { ComboBoxValue as ComboBoxModelValue } from "./components/combo-box/context";
export type { ComboBoxModelValue };
export { comboBoxVariants, type ComboBoxVariants } from "@heroui-vue/styles";
@@ -996,6 +1002,11 @@ export type {
AutocompletePopoverProps,
AutocompleteFilterProps,
} from "./types";
export type {
AutocompleteItem,
AutocompleteState,
AutocompleteValueState,
} from "./components/autocomplete/context";
export type {
AutocompleteSelectedItem,
AutocompleteOptions,