diff --git a/components/lib/rating/Rating.d.ts b/components/lib/rating/Rating.d.ts index 7ea096b5a..14a650d89 100755 --- a/components/lib/rating/Rating.d.ts +++ b/components/lib/rating/Rating.d.ts @@ -18,6 +18,7 @@ export declare type RatingPassThroughOptionType = RatingPassThroughAttributes | export interface RatingPassThroughMethodOptions { props: RatingProps; state: RatingState; + context: RatingContext; } /** @@ -29,18 +30,6 @@ export interface RatingPassThroughOptions { * Uses to pass attributes to the root's DOM element. */ root?: RatingPassThroughOptionType; - /** - * Uses to pass attributes to the cancel item's DOM element. - */ - cancelItem?: RatingPassThroughOptionType; - /** - * Uses to pass attributes to the input aria's DOM element. - */ - cancelInputAria?: RatingPassThroughOptionType; - /** - * Uses to pass attributes to the cancel input's DOM element. - */ - cancelInput?: RatingPassThroughOptionType; /** * Uses to pass attributes to the cancel icon's DOM element. */ @@ -49,14 +38,6 @@ export interface RatingPassThroughOptions { * Uses to pass attributes to the item's DOM element. */ item?: RatingPassThroughOptionType; - /** - * Uses to pass attributes to the item input aria's DOM element. - */ - itemInputAria?: RatingPassThroughOptionType; - /** - * Uses to pass attributes to the item input's DOM element. - */ - itemInput?: RatingPassThroughOptionType; /** * Uses to pass attributes to the on icon's DOM element. */ @@ -65,6 +46,22 @@ export interface RatingPassThroughOptions { * Uses to pass attributes to the off icon's DOM element. */ offIcon?: RatingPassThroughOptionType; + /** + * Uses to pass attributes to the hidden cancel inputW wapper's DOM element. + */ + hiddenCancelInputWrapper?: RatingPassThroughOptionType; + /** + * Uses to pass attributes to the hidden cancel input's DOM element. + */ + hiddenCancelInput?: RatingPassThroughOptionType; + /** + * Uses to pass attributes to the hidden item input wrapper's DOM element. + */ + hiddenItemInputWrapper?: RatingPassThroughOptionType; + /** + * Uses to pass attributes to the hidden item input's DOM element. + */ + hiddenItemInput?: RatingPassThroughOptionType; } /** @@ -88,6 +85,22 @@ export interface RatingState { focusedOptionIndex: number; } +/** + * Defines current options in Rating component. + */ +export interface RatingContext { + /** + * Current active state of the item as a boolean. + * @defaultValue false + */ + active: boolean; + /** + * Current focused state of menuitem as a boolean. + * @defaultValue false + */ + focused: boolean; +} + /** * Custom change event. * @see {@link RatingEmits.change} diff --git a/components/lib/rating/Rating.vue b/components/lib/rating/Rating.vue index cb3b85701..92a5fedd7 100755 --- a/components/lib/rating/Rating.vue +++ b/components/lib/rating/Rating.vue @@ -1,7 +1,7 @@