merge: integrate public collection picker migration
# Conflicts: # AGENTS.md # docs/compatibility.md # docs/upstream.md # docs/verification.md # package.json # packages/styles/src/index.ts # packages/vue/src/index.ts # packages/vue/src/types.ts # tests/package/README.md
This commit is contained in:
@@ -1627,3 +1627,158 @@ export const calendarYearPickerVariants = tv({
|
||||
export type CalendarYearPickerVariants = VariantProps<
|
||||
typeof calendarYearPickerVariants
|
||||
>;
|
||||
|
||||
export const menuVariants = tv({
|
||||
base: "hv-menu",
|
||||
});
|
||||
|
||||
export type MenuVariants = VariantProps<typeof menuVariants>;
|
||||
|
||||
export const menuItemVariants = tv({
|
||||
defaultVariants: {
|
||||
variant: "default",
|
||||
},
|
||||
slots: {
|
||||
indicator: "hv-menu-item__indicator",
|
||||
item: "hv-menu-item",
|
||||
submenuIndicator:
|
||||
"hv-menu-item__indicator hv-menu-item__indicator--submenu",
|
||||
},
|
||||
variants: {
|
||||
variant: {
|
||||
danger: {
|
||||
item: "hv-menu-item--danger",
|
||||
},
|
||||
default: {
|
||||
item: "hv-menu-item--default",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type MenuItemVariants = VariantProps<typeof menuItemVariants>;
|
||||
|
||||
export const menuSectionVariants = tv({
|
||||
base: "hv-menu-section",
|
||||
});
|
||||
|
||||
export type MenuSectionVariants = VariantProps<typeof menuSectionVariants>;
|
||||
|
||||
export const dropdownVariants = tv({
|
||||
slots: {
|
||||
menu: "hv-dropdown__menu",
|
||||
popover: "hv-dropdown__popover",
|
||||
root: "hv-dropdown",
|
||||
trigger: "hv-dropdown__trigger",
|
||||
},
|
||||
});
|
||||
|
||||
export type DropdownVariants = VariantProps<typeof dropdownVariants>;
|
||||
|
||||
export const tagVariants = tv({
|
||||
defaultVariants: {
|
||||
size: "md",
|
||||
variant: "default",
|
||||
},
|
||||
slots: {
|
||||
base: "hv-tag",
|
||||
removeButton: "hv-tag__remove-button",
|
||||
},
|
||||
variants: {
|
||||
size: {
|
||||
lg: {
|
||||
base: "hv-tag--lg",
|
||||
},
|
||||
md: {
|
||||
base: "hv-tag--md",
|
||||
},
|
||||
sm: {
|
||||
base: "hv-tag--sm",
|
||||
},
|
||||
},
|
||||
variant: {
|
||||
default: {
|
||||
base: "hv-tag--default",
|
||||
},
|
||||
surface: {
|
||||
base: "hv-tag--surface",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type TagVariants = VariantProps<typeof tagVariants>;
|
||||
|
||||
export const tagGroupVariants = tv({
|
||||
slots: {
|
||||
base: "hv-tag-group",
|
||||
list: "hv-tag-group__list",
|
||||
},
|
||||
});
|
||||
|
||||
export type TagGroupVariants = VariantProps<typeof tagGroupVariants>;
|
||||
|
||||
export const errorMessageVariants = tv({
|
||||
base: "hv-error-message",
|
||||
});
|
||||
|
||||
export type ErrorMessageVariants = VariantProps<typeof errorMessageVariants>;
|
||||
|
||||
export const comboBoxVariants = tv({
|
||||
defaultVariants: {
|
||||
fullWidth: false,
|
||||
},
|
||||
slots: {
|
||||
base: "hv-combo-box",
|
||||
inputGroup: "hv-combo-box__input-group",
|
||||
popover: "hv-combo-box__popover",
|
||||
trigger: "hv-combo-box__trigger",
|
||||
value: "hv-combo-box__value",
|
||||
},
|
||||
variants: {
|
||||
fullWidth: {
|
||||
false: {},
|
||||
true: {
|
||||
base: "hv-combo-box--full-width",
|
||||
inputGroup: "hv-combo-box__input-group--full-width",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type ComboBoxVariants = VariantProps<typeof comboBoxVariants>;
|
||||
|
||||
export const autocompleteVariants = tv({
|
||||
defaultVariants: {
|
||||
fullWidth: false,
|
||||
variant: "primary",
|
||||
},
|
||||
slots: {
|
||||
base: "hv-autocomplete",
|
||||
clearButton: "hv-autocomplete__clear-button",
|
||||
filter: "hv-autocomplete__filter",
|
||||
indicator: "hv-autocomplete__indicator",
|
||||
popover: "hv-autocomplete__popover",
|
||||
trigger: "hv-autocomplete__trigger",
|
||||
value: "hv-autocomplete__value",
|
||||
},
|
||||
variants: {
|
||||
fullWidth: {
|
||||
false: {},
|
||||
true: {
|
||||
base: "hv-autocomplete--full-width",
|
||||
trigger: "hv-autocomplete__trigger--full-width",
|
||||
},
|
||||
},
|
||||
variant: {
|
||||
primary: {
|
||||
base: "hv-autocomplete--primary",
|
||||
},
|
||||
secondary: {
|
||||
base: "hv-autocomplete--secondary",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type AutocompleteVariants = VariantProps<typeof autocompleteVariants>;
|
||||
|
||||
Reference in New Issue
Block a user