playbook_ui_docs 14.8.0.pre.rc.4 → 14.8.0.pre.rc.5
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_timeline/docs/_timeline_with_gap.html.erb +94 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.jsx +180 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.md +1 -0
- data/app/pb_kits/playbook/pb_timeline/docs/example.yml +5 -3
- data/app/pb_kits/playbook/pb_timeline/docs/index.js +2 -0
- data/dist/playbook-doc.js +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38641f6c203bd0f158172a92fd30d97d4eb475e82dde8f9fabc9495d8354556d
|
4
|
+
data.tar.gz: '0270848f97478c79848baadda1f833c0260cbb6ff7e880549e215e87dd6c4ba9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f25f51b3712201332472ffb7b07ac39e2f63e5e94eb96af951245c5b44cd6e75f95c4ae569bc73cac768d89cc7a2945f6bacec664b5f75320c26a684cbecc6a
|
7
|
+
data.tar.gz: 88b1214b38907dd50d8fcc8117b99b789c1062268a90ab4b18622e77491ea9d8fd4a086e5e4f444f270e762a576a581ba43f1d61bd0b43a3a88df91c877d7f92
|
@@ -0,0 +1,94 @@
|
|
1
|
+
<%= pb_rails("flex", props: { justify: "evenly" }) do %>
|
2
|
+
<%= pb_rails("flex/flex_item") do %>
|
3
|
+
<%= pb_rails("timeline", props: {orientation: "vertical", gap: "xs"}) do %>
|
4
|
+
<%= pb_rails("timeline/item", props: {icon: "user", icon_color: "royal"}) do %>
|
5
|
+
<%= pb_rails("body", props: {
|
6
|
+
text: "Conversation started",
|
7
|
+
color: "light"
|
8
|
+
}) %>
|
9
|
+
<% end %>
|
10
|
+
<%= pb_rails("timeline/item", props: {icon: "check", icon_color: "teal", line_style: "dotted"}) do %>
|
11
|
+
<%= pb_rails("body", props: {
|
12
|
+
text: "Trip #12422",
|
13
|
+
color: "light"
|
14
|
+
}) %>
|
15
|
+
<% end %>
|
16
|
+
<%= pb_rails("timeline/item", props: {icon: "credit-card", icon_color: "red"}) do %>
|
17
|
+
<%= pb_rails("body", props: {
|
18
|
+
text: "Refund issue #12422",
|
19
|
+
color: "light"
|
20
|
+
}) %>
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
<%= pb_rails("flex/flex_item") do %>
|
26
|
+
<%= pb_rails("timeline", props: {orientation: "vertical", gap: "sm"}) do %>
|
27
|
+
<%= pb_rails("timeline/item", props: {icon: "user", icon_color: "royal"}) do %>
|
28
|
+
<%= pb_rails("body", props: {
|
29
|
+
text: "Conversation started",
|
30
|
+
color: "light"
|
31
|
+
}) %>
|
32
|
+
<% end %>
|
33
|
+
<%= pb_rails("timeline/item", props: {icon: "check", icon_color: "teal", line_style: "dotted"}) do %>
|
34
|
+
<%= pb_rails("body", props: {
|
35
|
+
text: "Trip #12422",
|
36
|
+
color: "light"
|
37
|
+
}) %>
|
38
|
+
<% end %>
|
39
|
+
<%= pb_rails("timeline/item", props: {icon: "credit-card", icon_color: "red"}) do %>
|
40
|
+
<%= pb_rails("body", props: {
|
41
|
+
text: "Refund issue #12422",
|
42
|
+
color: "light"
|
43
|
+
}) %>
|
44
|
+
<% end %>
|
45
|
+
<% end %>
|
46
|
+
<% end %>
|
47
|
+
|
48
|
+
<%= pb_rails("flex/flex_item") do %>
|
49
|
+
<%= pb_rails("timeline", props: {orientation: "vertical", gap: "md"}) do %>
|
50
|
+
<%= pb_rails("timeline/item", props: {icon: "user", icon_color: "royal"}) do %>
|
51
|
+
<%= pb_rails("body", props: {
|
52
|
+
text: "Conversation started",
|
53
|
+
color: "light"
|
54
|
+
}) %>
|
55
|
+
<% end %>
|
56
|
+
<%= pb_rails("timeline/item", props: {icon: "check", icon_color: "teal", line_style: "dotted"}) do %>
|
57
|
+
<%= pb_rails("body", props: {
|
58
|
+
text: "Trip #12422",
|
59
|
+
color: "light"
|
60
|
+
}) %>
|
61
|
+
<% end %>
|
62
|
+
<%= pb_rails("timeline/item", props: {icon: "credit-card", icon_color: "red"}) do %>
|
63
|
+
<%= pb_rails("body", props: {
|
64
|
+
text: "Refund issue #12422",
|
65
|
+
color: "light"
|
66
|
+
}) %>
|
67
|
+
<% end %>
|
68
|
+
<% end %>
|
69
|
+
<% end %>
|
70
|
+
|
71
|
+
<%= pb_rails("flex/flex_item") do %>
|
72
|
+
<%= pb_rails("timeline", props: {orientation: "vertical", gap: "lg"}) do %>
|
73
|
+
<%= pb_rails("timeline/item", props: {icon: "user", icon_color: "royal"}) do %>
|
74
|
+
<%= pb_rails("body", props: {
|
75
|
+
text: "Conversation started",
|
76
|
+
color: "light"
|
77
|
+
}) %>
|
78
|
+
<% end %>
|
79
|
+
<%= pb_rails("timeline/item", props: {icon: "check", icon_color: "teal", line_style: "dotted"}) do %>
|
80
|
+
<%= pb_rails("body", props: {
|
81
|
+
text: "Trip #12422",
|
82
|
+
color: "light"
|
83
|
+
}) %>
|
84
|
+
<% end %>
|
85
|
+
<%= pb_rails("timeline/item", props: {icon: "credit-card", icon_color: "red"}) do %>
|
86
|
+
<%= pb_rails("body", props: {
|
87
|
+
text: "Refund issue #12422",
|
88
|
+
color: "light"
|
89
|
+
}) %>
|
90
|
+
<% end %>
|
91
|
+
<% end %>
|
92
|
+
<% end %>
|
93
|
+
<% end %>
|
94
|
+
|
@@ -0,0 +1,180 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import Timeline from '../_timeline'
|
4
|
+
import Flex from "../../pb_flex/_flex"
|
5
|
+
import FlexItem from "../../pb_flex/_flex_item"
|
6
|
+
import Body from '../../pb_body/_body'
|
7
|
+
|
8
|
+
const TimelineWithGap = (props) => (
|
9
|
+
<div>
|
10
|
+
<Flex justify="evenly">
|
11
|
+
<FlexItem>
|
12
|
+
<Timeline
|
13
|
+
gap="xs"
|
14
|
+
orientation="vertical"
|
15
|
+
>
|
16
|
+
<Timeline.Item
|
17
|
+
icon="user"
|
18
|
+
iconColor="royal"
|
19
|
+
{...props}
|
20
|
+
>
|
21
|
+
<Body
|
22
|
+
color="light"
|
23
|
+
text="Conversation started"
|
24
|
+
{...props}
|
25
|
+
/>
|
26
|
+
</Timeline.Item>
|
27
|
+
<Timeline.Item
|
28
|
+
icon="check"
|
29
|
+
iconColor="teal"
|
30
|
+
lineStyle="dotted"
|
31
|
+
{...props}
|
32
|
+
>
|
33
|
+
<Body
|
34
|
+
color="light"
|
35
|
+
text="Trip #12422"
|
36
|
+
{...props}
|
37
|
+
/>
|
38
|
+
</Timeline.Item>
|
39
|
+
<Timeline.Item
|
40
|
+
icon="credit-card"
|
41
|
+
iconColor="red"
|
42
|
+
{...props}
|
43
|
+
>
|
44
|
+
<Body
|
45
|
+
color="light"
|
46
|
+
text="Refund issue #12422"
|
47
|
+
{...props}
|
48
|
+
/>
|
49
|
+
</Timeline.Item>
|
50
|
+
</Timeline>
|
51
|
+
</FlexItem>
|
52
|
+
<FlexItem>
|
53
|
+
<Timeline
|
54
|
+
gap="sm"
|
55
|
+
orientation="vertical"
|
56
|
+
>
|
57
|
+
<Timeline.Item
|
58
|
+
icon="user"
|
59
|
+
iconColor="royal"
|
60
|
+
{...props}
|
61
|
+
>
|
62
|
+
<Body
|
63
|
+
color="light"
|
64
|
+
text="Conversation started"
|
65
|
+
{...props}
|
66
|
+
/>
|
67
|
+
</Timeline.Item>
|
68
|
+
<Timeline.Item
|
69
|
+
icon="check"
|
70
|
+
iconColor="teal"
|
71
|
+
lineStyle="dotted"
|
72
|
+
{...props}
|
73
|
+
>
|
74
|
+
<Body
|
75
|
+
color="light"
|
76
|
+
text="Trip #12422"
|
77
|
+
{...props}
|
78
|
+
/>
|
79
|
+
</Timeline.Item>
|
80
|
+
<Timeline.Item
|
81
|
+
icon="credit-card"
|
82
|
+
iconColor="red"
|
83
|
+
{...props}
|
84
|
+
>
|
85
|
+
<Body
|
86
|
+
color="light"
|
87
|
+
text="Refund issue #12422"
|
88
|
+
{...props}
|
89
|
+
/>
|
90
|
+
</Timeline.Item>
|
91
|
+
</Timeline>
|
92
|
+
</FlexItem>
|
93
|
+
<FlexItem>
|
94
|
+
<Timeline
|
95
|
+
gap="md"
|
96
|
+
orientation="vertical"
|
97
|
+
>
|
98
|
+
<Timeline.Item
|
99
|
+
icon="user"
|
100
|
+
iconColor="royal"
|
101
|
+
{...props}
|
102
|
+
>
|
103
|
+
<Body
|
104
|
+
color="light"
|
105
|
+
text="Conversation started"
|
106
|
+
{...props}
|
107
|
+
/>
|
108
|
+
</Timeline.Item>
|
109
|
+
<Timeline.Item
|
110
|
+
icon="check"
|
111
|
+
iconColor="teal"
|
112
|
+
lineStyle="dotted"
|
113
|
+
{...props}
|
114
|
+
>
|
115
|
+
<Body
|
116
|
+
color="light"
|
117
|
+
text="Trip #12422"
|
118
|
+
{...props}
|
119
|
+
/>
|
120
|
+
</Timeline.Item>
|
121
|
+
<Timeline.Item
|
122
|
+
icon="credit-card"
|
123
|
+
iconColor="red"
|
124
|
+
lineStyle="dotted"
|
125
|
+
{...props}
|
126
|
+
>
|
127
|
+
<Body
|
128
|
+
color="light"
|
129
|
+
text="Refund issue #12422"
|
130
|
+
{...props}
|
131
|
+
/>
|
132
|
+
</Timeline.Item>
|
133
|
+
</Timeline>
|
134
|
+
</FlexItem>
|
135
|
+
<FlexItem>
|
136
|
+
<Timeline
|
137
|
+
gap="lg"
|
138
|
+
orientation="vertical"
|
139
|
+
>
|
140
|
+
<Timeline.Item
|
141
|
+
icon="user"
|
142
|
+
iconColor="royal"
|
143
|
+
{...props}
|
144
|
+
>
|
145
|
+
<Body
|
146
|
+
color="light"
|
147
|
+
text="Conversation started"
|
148
|
+
{...props}
|
149
|
+
/>
|
150
|
+
</Timeline.Item>
|
151
|
+
<Timeline.Item
|
152
|
+
icon="check"
|
153
|
+
iconColor="teal"
|
154
|
+
lineStyle="dotted"
|
155
|
+
{...props}
|
156
|
+
>
|
157
|
+
<Body
|
158
|
+
color="light"
|
159
|
+
text="Trip #12422"
|
160
|
+
{...props}
|
161
|
+
/>
|
162
|
+
</Timeline.Item>
|
163
|
+
<Timeline.Item
|
164
|
+
icon="credit-card"
|
165
|
+
iconColor="red"
|
166
|
+
{...props}
|
167
|
+
>
|
168
|
+
<Body
|
169
|
+
color="light"
|
170
|
+
text="Refund issue #12422"
|
171
|
+
{...props}
|
172
|
+
/>
|
173
|
+
</Timeline.Item>
|
174
|
+
</Timeline>
|
175
|
+
</FlexItem>
|
176
|
+
</Flex>
|
177
|
+
</div>
|
178
|
+
)
|
179
|
+
|
180
|
+
export default TimelineWithGap
|
@@ -0,0 +1 @@
|
|
1
|
+
Use the optional `gap` prop to render the timeline kit with adjusted spacing between nodes. The `gap` prop will only work when utilized with a vertical timeline. Horizontal timelines will show no difference in spacing.
|
@@ -1,14 +1,16 @@
|
|
1
1
|
examples:
|
2
|
-
|
2
|
+
|
3
3
|
rails:
|
4
4
|
- timeline_default: Default
|
5
5
|
- timeline_vertical: Vertical
|
6
6
|
- timeline_with_date: With Date
|
7
7
|
- timeline_with_children: With Children
|
8
|
-
|
9
|
-
|
8
|
+
- timeline_with_gap: With Gap
|
9
|
+
|
10
|
+
|
10
11
|
react:
|
11
12
|
- timeline_default: Default
|
12
13
|
- timeline_vertical: Vertical
|
13
14
|
- timeline_with_date: With Date
|
14
15
|
- timeline_with_children: With Children
|
16
|
+
- timeline_with_gap: With Gap
|
@@ -2,3 +2,5 @@ export { default as TimelineDefault } from './_timeline_default.jsx'
|
|
2
2
|
export { default as TimelineVertical } from './_timeline_vertical.jsx'
|
3
3
|
export { default as TimelineWithDate } from './_timeline_with_date.jsx'
|
4
4
|
export { default as TimelineWithChildren } from './_timeline_with_children.jsx'
|
5
|
+
export { default as TimelineWithGap } from './_timeline_with_gap.jsx'
|
6
|
+
|