playbook_ui_docs 13.2.0.pre.alpha.PLAY986dateTimeRounding1150 → 13.4.0.pre.alpha.PLAY973Hash1181

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90f6896845509edb763de24ac67790c51a4f59d7cefbb44a4e366e8365387e36
4
- data.tar.gz: e3d50fff0e5bf4ac3ec0e7374f7b71e3804e057b77396d355f2e8376d8303eda
3
+ metadata.gz: c957beece38994f60ab8a445cf6338744bab961f308f9ccafa3f8848300cfaf5
4
+ data.tar.gz: 04e28402386f6a3e18efa24754e780342c9b87a86988ee3a4f465d892b78a034
5
5
  SHA512:
6
- metadata.gz: 7df4fd817d0258ae5c6638320a14c37f8bbcfe11b105cce3f1e8da08a35343907839bf5f23b8ff4bab59bf83c2c4783158d450f1ecd1403e0053c1d0e9135b85
7
- data.tar.gz: 762869ca5dd0867b61d5b6e5a0e69769f8684733fb413a4c988096a94ffabe4a9f1d49384b832821584aba0b42ad96b918550db7ef110c1a05da6364327315ce
6
+ metadata.gz: 3a54a72e861cced90f7600d8085602cc9d27dbee50c088bba5d255ac41236d50812a5f87398c74b28d024044d7fa87c25f7d8996500e28ba7f40061eeeeffe13
7
+ data.tar.gz: 626498877513d65fda6b8c89f1802b7c17b0bbd51cc82a2a0109137c2b37e3c9dfcc265a3d679d2cf31f7e14f76e9cbfefa7a0a34a9f7592503501f0fffa6c37
@@ -0,0 +1,54 @@
1
+ <%= pb_rails("table", props: { size: "lg"} ) do %>
2
+ <thead>
3
+ <tr>
4
+ <%= pb_rails("table/table_header", props: {
5
+ id: "name",
6
+ colspan: 2,
7
+ sort_menu: [
8
+ { item: "Name", link: "?q[sorts]=name+desc", active: false, direction: "desc" },
9
+ { item: "Name", link: "?q[sorts]=name+asc", active: true, direction: "asc" },
10
+ ],
11
+ }) %>
12
+ <%= pb_rails("table/table_header", props: {
13
+ text: "Age",
14
+ id: "age",
15
+ sort_menu: [
16
+ { item: "Age", link: "?q[sorts]=age+desc", active: false, direction: "desc" },
17
+ { item: "Age", link: "?q[sorts]=age+asc", active: false, direction: "asc" },
18
+ ],
19
+ }) %>
20
+ <%= pb_rails("table/table_header", props: {
21
+ text: "Territory",
22
+ id: "territory",
23
+ sort_menu: [
24
+ { item: "Territory", link: "?q[sorts]=territory+desc", active: false, direction: "desc" },
25
+ { item: "Territory", link: "?q[sorts]=territory+asc", active: false, direction: "asc" },
26
+ ],
27
+ }) %>
28
+ <%= pb_rails("table/table_header", props: { text: "Job Title" }) %>
29
+ </tr>
30
+ </thead>
31
+ <tbody>
32
+ <tr>
33
+ <td>Name 1</td>
34
+ <td>Name 2</td>
35
+ <td>Value 3</td>
36
+ <td>Value 4</td>
37
+ <td>Value 5</td>
38
+ </tr>
39
+ <tr>
40
+ <td>Name 1</td>
41
+ <td>Name 2</td>
42
+ <td>Value 3</td>
43
+ <td>Value 4</td>
44
+ <td>Value 5</td>
45
+ </tr>
46
+ <tr>
47
+ <td>Name 1</td>
48
+ <td>Name 2</td>
49
+ <td>Value 3</td>
50
+ <td>Value 4</td>
51
+ <td>Value 5</td>
52
+ </tr>
53
+ </tbody>
54
+ <% end %>
@@ -0,0 +1 @@
1
+ A kit that produces a `<th>` tag. You can also use the `sort_menu` prop to make the header a sortable link, just like <a href="https://playbook.powerapp.cloud/kits/filter#sort-only" target="_blank">our filter kit.</a>
@@ -28,7 +28,7 @@ const TableOneAction = (props) => {
28
28
  <Button
29
29
  onClick={() => alert('button clicked!')}
30
30
  paddingLeft="none"
31
- text="Tetriary Action"
31
+ text="Tertiary Action"
32
32
  variant="link"
33
33
  {...props}
34
34
  />
@@ -49,7 +49,7 @@ const TableOneAction = (props) => {
49
49
  <Button
50
50
  onClick={() => alert('button clicked!')}
51
51
  paddingLeft="none"
52
- text="Tetriary Action"
52
+ text="Tertiary Action"
53
53
  variant="link"
54
54
  {...props}
55
55
  />
@@ -70,7 +70,7 @@ const TableOneAction = (props) => {
70
70
  <Button
71
71
  onClick={() => alert('button clicked!')}
72
72
  paddingLeft="none"
73
- text="Tetriary Action"
73
+ text="Tertiary Action"
74
74
  variant="link"
75
75
  {...props}
76
76
  />
@@ -4,6 +4,7 @@ examples:
4
4
  - table_md: Medium
5
5
  - table_lg: Large
6
6
  - table_sticky: Sticky Header
7
+ - table_header: Table Header
7
8
  - table_alignment_row: Row Alignment
8
9
  - table_alignment_column: Column Alignment
9
10
  - table_alignment_shift_row: Shift Row
@@ -0,0 +1,21 @@
1
+ <%= pb_rails("caption", props: { size: "xs", text: "Basic unstyled example" }) %>
2
+
3
+ <%= pb_rails("timestamp", props: {
4
+ timestamp: DateTime.now,
5
+ show_date: true,
6
+ align: "left",
7
+ unstyled: true,
8
+ }) %>
9
+
10
+ <br />
11
+
12
+ <%= pb_rails("caption", props: { size: "xs", text: "Example with wrapping typography kit" }) %>
13
+
14
+ <%= pb_rails("title", props: { size: 1 }) do %>
15
+ <%= pb_rails("timestamp", props: {
16
+ timestamp: DateTime.now,
17
+ show_date: true,
18
+ align: "left",
19
+ unstyled: true,
20
+ }) %>
21
+ <% end %>
@@ -0,0 +1,36 @@
1
+ import React from 'react'
2
+ import { Caption, Timestamp, Title } from '../../'
3
+
4
+ const TimestampUnstyled = (props) => {
5
+ return (
6
+ <>
7
+ <Caption size="xs"
8
+ text="Basic unstyled example"
9
+ />
10
+ <Timestamp
11
+ align="left"
12
+ showDate
13
+ timestamp={new Date()}
14
+ unstyled
15
+ {...props}
16
+ />
17
+
18
+ <br />
19
+
20
+ <Caption size="xs"
21
+ text="Example with wrapping typography kit"
22
+ />
23
+ <Title size={1}>
24
+ <Timestamp
25
+ align="left"
26
+ showDate
27
+ timestamp={new Date()}
28
+ unstyled
29
+ {...props}
30
+ />
31
+ </Title>
32
+ </>
33
+ )
34
+ }
35
+
36
+ export default TimestampUnstyled
@@ -0,0 +1 @@
1
+ For alternative typography styles, you can pass a boolean prop called `unstyled` to the `Timestamp` kit and wrap it in any of our typography kits (`Title`, `Body`, etc.). This will allow the `Timestamp` kit to inherit any of our typography styles.
@@ -6,6 +6,7 @@ examples:
6
6
  - timestamp_timezones: Timezones
7
7
  - timestamp_updated: Last Updated by
8
8
  - timestamp_elapsed: Time Ago
9
+ - timestamp_unstyled: Unstyled
9
10
 
10
11
  react:
11
12
  - timestamp_default: Default
@@ -13,7 +14,8 @@ examples:
13
14
  - timestamp_timezones: Timezones
14
15
  - timestamp_updated: Last Updated by
15
16
  - timestamp_elapsed: Time Ago
16
-
17
+ - timestamp_unstyled: Unstyled
18
+
17
19
  swift:
18
20
  - timestamp_default_swift: Default
19
21
  - timestamp_align_swift: Alignments
@@ -3,3 +3,4 @@ export { default as TimestampAlign } from './_timestamp_align.jsx'
3
3
  export { default as TimestampTimezones } from './_timestamp_timezones.jsx'
4
4
  export { default as TimestampUpdated } from './_timestamp_updated.jsx'
5
5
  export { default as TimestampElapsed } from './_timestamp_elapsed.jsx'
6
+ export { default as TimestampUnstyled } from './_timestamp_unstyled.jsx'