@aurodesignsystem-dev/auro-datetime 0.0.0-pr111.0 → 0.0.0-pr112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/index.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <!--
2
2
  THIS PAGE'S CONTENT SHOULD BE KEPT MINIMAL.
3
- ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE — THE BASIC EXAMPLE IS USUALLY ENOUGH.
3
+ ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE. THE BASIC EXAMPLE IS USUALLY ENOUGH.
4
4
  ALL OTHER EXAMPLES SHOULD GO IN THE API DOCUMENTATION.
5
5
  -->
6
6
 
@@ -8,53 +8,52 @@
8
8
 
9
9
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
10
10
  <!-- The below content is automatically added from ./../docs/partials/description.md -->
11
- The `<auro-datetime>` custom element makes it really easy to add dates to your web app with a simple HTML API.
11
+ The `<auro-datetime>` element shows a date or time as text, formatted for a language and region you choose and, optionally, a specific time zone. Set `type` to choose the full date, the time, a numeric date, or a single part, such as the weekday.
12
12
  <!-- AURO-GENERATED-CONTENT:END -->
13
13
 
14
- ## Use Cases
14
+ ## Use cases
15
15
 
16
16
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
17
17
  <!-- The below content is automatically added from ./../docs/partials/useCases.md -->
18
- The `<auro-datetime>` element should be used in situations where users may:
18
+ Use `<auro-datetime>` to:
19
19
 
20
- * A date and/or time is required
20
+ * Show a date or time, such as a departure date or arrival time.
21
+ * Show a time in a specific time zone, such as a flight's local time at its airport.
22
+ * Format a date for a language and region, such as `de-DE` or `ja-JP`.
21
23
  <!-- AURO-GENERATED-CONTENT:END -->
22
24
 
23
- ## Basic Date
25
+ ## Examples
26
+
27
+ ### Basic
24
28
 
25
29
  <div class="exampleWrapper">
26
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
27
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
28
- <auro-datetime type="date"></auro-datetime>
29
- <!-- AURO-GENERATED-CONTENT:END -->
30
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
31
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
32
+ <auro-datetime type="date"></auro-datetime>
33
+ <!-- AURO-GENERATED-CONTENT:END -->
30
34
  </div>
31
35
  <auro-accordion alignRight>
32
- <span slot="trigger">See code</span>
36
+ <span slot="trigger">See code</span>
33
37
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
34
38
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
35
39
 
36
- ```html
37
- <auro-datetime type="date"></auro-datetime>
38
- ```
40
+ <pre class="language-html"><code class="language-html">&lt;auro-datetime type="date"&gt;&lt;/auro-datetime&gt;</code></pre>
39
41
  <!-- AURO-GENERATED-CONTENT:END -->
40
42
  </auro-accordion>
41
43
 
42
- ## Basic Time
44
+ ### Time
43
45
 
44
46
  <div class="exampleWrapper">
45
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-time.html) -->
46
- <!-- The below content is automatically added from ./../apiExamples/basic-time.html -->
47
- <auro-datetime type="time"></auro-datetime>
48
- <!-- AURO-GENERATED-CONTENT:END -->
47
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-time.html) -->
48
+ <!-- The below content is automatically added from ./../apiExamples/basic-time.html -->
49
+ <auro-datetime type="time"></auro-datetime>
50
+ <!-- AURO-GENERATED-CONTENT:END -->
49
51
  </div>
50
52
  <auro-accordion alignRight>
51
- <span slot="trigger">See code</span>
53
+ <span slot="trigger">See code</span>
52
54
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-time.html) -->
53
55
  <!-- The below code snippet is automatically added from ./../apiExamples/basic-time.html -->
54
56
 
55
- ```html
56
- <auro-datetime type="time"></auro-datetime>
57
- ```
57
+ <pre class="language-html"><code class="language-html">&lt;auro-datetime type="time"&gt;&lt;/auro-datetime&gt;</code></pre>
58
58
  <!-- AURO-GENERATED-CONTENT:END -->
59
- </auro-accordion>
60
-
59
+ </auro-accordion>