Skip to content

Commit

Permalink
docs(jsdocs): update jsdocs
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The auroInput-validated and auroInput-helpText events have been deprecated and replaced by auroFormElement-validated.
  • Loading branch information
jordanjones243 committed May 9, 2024
1 parent 4454f73 commit 4352348
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
13 changes: 6 additions & 7 deletions demo/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@

## Events

| Event | Type | Description |
|----------------------------|--------------------|--------------------------------------------------|
| `auroInput-helpText` | | Notifies that the helpText message has changed. |
| `auroInput-ready` | `CustomEvent<any>` | Notifies that the component has finished initializing. |
| `auroInput-validated` | | Notifies that the `validity` value has changed. |
| `auroInput-validityChange` | `CustomEvent<any>` | |
| [input](#input) | | Event fires when the value of an `auro-input` has been changed. |
| Event | Type | Description |
|-----------------------------|--------------------|--------------------------------------------------|
| `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` value has changed. |
| `auroInput-ready` | `CustomEvent<any>` | |
| `auroInput-validityChange` | `CustomEvent<any>` | |
| [input](#input) | | Event fires when the value of an `auro-input` has been changed. |

## Slots

Expand Down
13 changes: 6 additions & 7 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@

## Events

| Event | Type | Description |
|----------------------------|--------------------|--------------------------------------------------|
| `auroInput-helpText` | | Notifies that the helpText message has changed. |
| `auroInput-ready` | `CustomEvent<any>` | Notifies that the component has finished initializing. |
| `auroInput-validated` | | Notifies that the `validity` value has changed. |
| `auroInput-validityChange` | `CustomEvent<any>` | |
| `input` | | Event fires when the value of an `auro-input` has been changed. |
| Event | Type | Description |
|-----------------------------|--------------------|--------------------------------------------------|
| `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` value has changed. |
| `auroInput-ready` | `CustomEvent<any>` | |
| `auroInput-validityChange` | `CustomEvent<any>` | |
| `input` | | Event fires when the value of an `auro-input` has been changed. |

## Slots

Expand Down
5 changes: 1 addition & 4 deletions src/base-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ import AuroFormValidation from '@aurodesignsystem/auro-formvalidation/src/valida
* @csspart helpText - Use for customizing the style of the helpText element
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
*
* @event input - Event fires when the value of an `auro-input` has been changed.
* @event auroInput-helpText - Notifies that the helpText message has changed.
* @event auroInput-ready - Notifies that the component has finished initializing.
* @event auroInput-validated - Notifies that the `validity` value has changed.
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
*/

export default class BaseInput extends LitElement {
Expand Down

0 comments on commit 4352348

Please sign in to comment.