Skip to content

Commit

Permalink
docs: update demo/api.md #138
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-mota committed Nov 5, 2024
1 parent 3cd7344 commit 3cfed6f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions demo/api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../api.md) -->
<!-- The below content is automatically added from ./../api.md -->

# auro-flight

The auro-flight element renders a DoT compliant Flight listing.
This design has been tested via the Alaska Legal team for legal compliance.
Please DO NOT modify unit tests pertaining to DoT regulations.

## Properties

| Property | Attribute | Type | Description |
|----------------------------|----------------------------|----------|--------------------------------------------------|
| [arrivalStation](#arrivalStation) | `arrivalStation` | `String` | String for the arrival station. `PVD` |
| [arrivalTime](#arrivalTime) | `arrivalTime` | `String` | String for the arrival ISO 8601 time. `2022-04-13T12:30:00-04:00` |
| [departureStation](#departureStation) | `departureStation` | `String` | String for the departure station. `SEA` |
| [departureTime](#departureTime) | `departureTime` | `String` | String for the departure ISO 8601 time. `2022-04-13T12:30:00-04:00` |
| [duration](#duration) | `duration` | `Number` | String for the duration. `505` |
| [flights](#flights) | `flights` | `Array` | Array of flight numbers `['AS 123', 'EK 432']` |
| [reroutedArrivalStation](#reroutedArrivalStation) | `reroutedArrivalStation` | `String` | String for the new arrival station for rerouted flights. `AVP` |
| [reroutedDepartureStation](#reroutedDepartureStation) | `reroutedDepartureStation` | `String` | String for the new departure station for rerouted flights. `PDX` |
| [stops](#stops) | `stops` | `Array` | Array of objects representing stopovers or layovers: "isStopover": bool, "arrivalStation": string, "duration": string ["123hr 123m"] (layover only). This content will not be used in the UI, but only constructs the a11y conversational phrase for screen readers and has no effect on the `auro-flight-segment` content. |

## Slots

| Name | Description |
|-------------------|--------------------------------------------------|
| [arrivalHeader](#arrivalHeader) | Text on top of the arrival station's time |
| [default](#default) | anticipates `<auro-flightline>` instance to fill out the flight timeline |
| [departureHeader](#departureHeader) | Text on top of the departure station's time |
| [footer](#footer) | Lower section allowing for tertiary content to be attributed to the element. Per **DoT Regulations** do NOT edit the styles contained within this slot |

## CSS Shadow Parts

| Part | Description |
|-------------------|--------------------------------------------------|
| [flightContainer](#flightContainer) | Apply css to the elements within the flight component container |

# auro-flight-header

The auro-flight-header element displays airline, duration, and day change information.
Expand Down

0 comments on commit 3cfed6f

Please sign in to comment.