playbook_ui_docs 13.3.0 → 13.4.0.pre.alpha.PLAY973Hash1181
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +3 -3
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.html.erb +21 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.jsx +36 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.md +1 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_timestamp/docs/index.js +1 -0
- data/dist/playbook-doc.js +7 -7
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c957beece38994f60ab8a445cf6338744bab961f308f9ccafa3f8848300cfaf5
|
4
|
+
data.tar.gz: 04e28402386f6a3e18efa24754e780342c9b87a86988ee3a4f465d892b78a034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a54a72e861cced90f7600d8085602cc9d27dbee50c088bba5d255ac41236d50812a5f87398c74b28d024044d7fa87c25f7d8996500e28ba7f40061eeeeffe13
|
7
|
+
data.tar.gz: 626498877513d65fda6b8c89f1802b7c17b0bbd51cc82a2a0109137c2b37e3c9dfcc265a3d679d2cf31f7e14f76e9cbfefa7a0a34a9f7592503501f0fffa6c37
|
@@ -28,7 +28,7 @@ const TableOneAction = (props) => {
|
|
28
28
|
<Button
|
29
29
|
onClick={() => alert('button clicked!')}
|
30
30
|
paddingLeft="none"
|
31
|
-
text="
|
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="
|
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="
|
73
|
+
text="Tertiary Action"
|
74
74
|
variant="link"
|
75
75
|
{...props}
|
76
76
|
/>
|
@@ -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'
|