Skip to content

Commit

Permalink
chore: clean build (#2744)
Browse files Browse the repository at this point in the history
Clean up after merging the rating component.
  • Loading branch information
gfellerph authored Mar 1, 2024
1 parent 8715a34 commit 2552e06
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
24 changes: 12 additions & 12 deletions packages/components/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,19 @@ export namespace Components {
}
interface PostRating {
/**
* Defines the visualized overall rating, the component should show.
* Defines the rating that the component should show.
*/
"currentRating": number;
/**
* Defined the invisible label on the component.
* Defines a hidden label for the component.
*/
"label": string;
/**
* Defines if the component is readonly or not. This usually should be used together with the `currentRating` property.
*/
"readonly": boolean;
/**
* Defined the amount of stars rendered in the component.
* Defines the total amount of stars rendered in the component.
*/
"stars": number;
}
Expand Down Expand Up @@ -333,8 +333,8 @@ declare global {
new (): HTMLPostPopovercontainerElement;
};
interface HTMLPostRatingElementEventMap {
"input": {value: number};
"change": {value: number};
"input": { value: number };
"change": { value: number };
}
interface HTMLPostRatingElement extends Components.PostRating, HTMLStencilElement {
addEventListener<K extends keyof HTMLPostRatingElementEventMap>(type: K, listener: (this: HTMLPostRatingElement, ev: PostRatingCustomEvent<HTMLPostRatingElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
Expand Down Expand Up @@ -516,27 +516,27 @@ declare namespace LocalJSX {
}
interface PostRating {
/**
* Defines the visualized overall rating, the component should show.
* Defines the rating that the component should show.
*/
"currentRating"?: number;
/**
* Defined the invisible label on the component.
* Defines a hidden label for the component.
*/
"label"?: string;
/**
* An event emitted whenever the components value has changed (on blur). The event payload can be used like so: `event.detail.value`.
* An event emitted whenever the component's value has changed (on blur). The event payload can be used like so: `event.detail.value`.
*/
"onChange"?: (event: PostRatingCustomEvent<{value: number}>) => void;
"onChange"?: (event: PostRatingCustomEvent<{ value: number }>) => void;
/**
* An event emitted whenever the components value has changed (on input). The event payload can be used like so: `event.detail.value`.
* An event emitted whenever the component's value has changed (on input). The event payload can be used like so: `event.detail.value`.
*/
"onInput"?: (event: PostRatingCustomEvent<{value: number}>) => void;
"onInput"?: (event: PostRatingCustomEvent<{ value: number }>) => void;
/**
* Defines if the component is readonly or not. This usually should be used together with the `currentRating` property.
*/
"readonly"?: boolean;
/**
* Defined the amount of stars rendered in the component.
* Defines the total amount of stars rendered in the component.
*/
"stars"?: number;
}
Expand Down
14 changes: 7 additions & 7 deletions packages/components/src/components/post-rating/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@

| Property | Attribute | Description | Type | Default |
| --------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------- | --------- | ---------- |
| `currentRating` | `current-rating` | Defines the visualized overall rating, the component should show. | `number` | `0` |
| `label` | `label` | Defined the invisible label on the component. | `string` | `'Rating'` |
| `currentRating` | `current-rating` | Defines the rating that the component should show. | `number` | `0` |
| `label` | `label` | Defines a hidden label for the component. | `string` | `'Rating'` |
| `readonly` | `readonly` | Defines if the component is readonly or not. This usually should be used together with the `currentRating` property. | `boolean` | `false` |
| `stars` | `stars` | Defined the amount of stars rendered in the component. | `number` | `5` |
| `stars` | `stars` | Defines the total amount of stars rendered in the component. | `number` | `5` |


## Events

| Event | Description | Type |
| -------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
| `change` | An event emitted whenever the components value has changed (on blur). The event payload can be used like so: `event.detail.value`. | `CustomEvent<{ value: number; }>` |
| `input` | An event emitted whenever the components value has changed (on input). The event payload can be used like so: `event.detail.value`. | `CustomEvent<{ value: number; }>` |
| Event | Description | Type |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------- |
| `change` | An event emitted whenever the component's value has changed (on blur). The event payload can be used like so: `event.detail.value`. | `CustomEvent<{ value: number; }>` |
| `input` | An event emitted whenever the component's value has changed (on input). The event payload can be used like so: `event.detail.value`. | `CustomEvent<{ value: number; }>` |


## Dependencies
Expand Down

0 comments on commit 2552e06

Please sign in to comment.