playbook_ui 7.4.0.pre.test4 → 7.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/github-brands.svg +1 -0
- data/app/assets/images/landing-background.svg +36 -0
- data/app/assets/images/landing-image.svg +203 -0
- data/app/assets/images/pb-logo.svg +28 -0
- data/app/assets/images/pb-white-logo.svg +15 -0
- data/app/assets/images/pb.logo.svg +2 -2
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +3 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +13 -4
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +1 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +5 -7
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.html.erb +12 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx +48 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +3 -1
- data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +6 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.html.erb +69 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.jsx +91 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.html.erb +14 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx +27 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed_align.html.erb +54 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed_align.jsx +73 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.html.erb +59 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx +74 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_align.html.erb +177 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_align.jsx +209 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.html.erb +35 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.jsx +51 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_align.html.erb +123 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_align.jsx +146 -0
- data/lib/playbook/version.rb +1 -1
- metadata +29 -8
@@ -0,0 +1,177 @@
|
|
1
|
+
<%= pb_rails("timestamp", props: {
|
2
|
+
timestamp: DateTime.now,
|
3
|
+
show_date: false,
|
4
|
+
show_timezone: true,
|
5
|
+
timezone: "America/New_York",
|
6
|
+
align: "left"
|
7
|
+
}) %>
|
8
|
+
|
9
|
+
<br>
|
10
|
+
|
11
|
+
<%= pb_rails("timestamp", props: {
|
12
|
+
timestamp: DateTime.now,
|
13
|
+
show_date: true,
|
14
|
+
show_timezone: true,
|
15
|
+
timezone: "America/New_York",
|
16
|
+
align: "left"
|
17
|
+
}) %>
|
18
|
+
|
19
|
+
<br>
|
20
|
+
|
21
|
+
<%= pb_rails("timestamp", props: {
|
22
|
+
timestamp: DateTime.now + 4.years,
|
23
|
+
show_date: true,
|
24
|
+
show_timezone: true,
|
25
|
+
timezone: "America/New_York",
|
26
|
+
align: "left"
|
27
|
+
}) %>
|
28
|
+
|
29
|
+
<br>
|
30
|
+
|
31
|
+
<%= pb_rails("timestamp", props: {
|
32
|
+
timestamp: DateTime.now,
|
33
|
+
show_date: false,
|
34
|
+
show_timezone: true,
|
35
|
+
timezone: "Asia/Hong_Kong",
|
36
|
+
align: "left"
|
37
|
+
}) %>
|
38
|
+
|
39
|
+
<br>
|
40
|
+
|
41
|
+
<%= pb_rails("timestamp", props: {
|
42
|
+
timestamp: DateTime.now,
|
43
|
+
show_date: true,
|
44
|
+
show_timezone: true,
|
45
|
+
timezone: "Asia/Hong_Kong",
|
46
|
+
align: "left"
|
47
|
+
}) %>
|
48
|
+
|
49
|
+
<br>
|
50
|
+
|
51
|
+
<%= pb_rails("timestamp", props: {
|
52
|
+
timestamp: DateTime.now + 4.years,
|
53
|
+
show_date: true,
|
54
|
+
show_timezone: true,
|
55
|
+
timezone: "Asia/Hong_Kong",
|
56
|
+
align: "left"
|
57
|
+
}) %>
|
58
|
+
|
59
|
+
<br><br>
|
60
|
+
|
61
|
+
<%= pb_rails("timestamp", props: {
|
62
|
+
timestamp: DateTime.now,
|
63
|
+
show_date: false,
|
64
|
+
show_timezone: true,
|
65
|
+
timezone: "America/New_York",
|
66
|
+
align: "center"
|
67
|
+
}) %>
|
68
|
+
|
69
|
+
<br>
|
70
|
+
|
71
|
+
<%= pb_rails("timestamp", props: {
|
72
|
+
timestamp: DateTime.now,
|
73
|
+
show_date: true,
|
74
|
+
show_timezone: true,
|
75
|
+
timezone: "America/New_York",
|
76
|
+
align: "center"
|
77
|
+
}) %>
|
78
|
+
|
79
|
+
<br>
|
80
|
+
|
81
|
+
<%= pb_rails("timestamp", props: {
|
82
|
+
timestamp: DateTime.now + 4.years,
|
83
|
+
show_date: true,
|
84
|
+
show_timezone: true,
|
85
|
+
timezone: "America/New_York",
|
86
|
+
align: "center"
|
87
|
+
}) %>
|
88
|
+
|
89
|
+
<br>
|
90
|
+
|
91
|
+
<%= pb_rails("timestamp", props: {
|
92
|
+
timestamp: DateTime.now,
|
93
|
+
show_date: false,
|
94
|
+
show_timezone: true,
|
95
|
+
timezone: "Asia/Hong_Kong",
|
96
|
+
align: "center"
|
97
|
+
}) %>
|
98
|
+
|
99
|
+
<br>
|
100
|
+
|
101
|
+
<%= pb_rails("timestamp", props: {
|
102
|
+
timestamp: DateTime.now,
|
103
|
+
show_date: true,
|
104
|
+
show_timezone: true,
|
105
|
+
timezone: "Asia/Hong_Kong",
|
106
|
+
align: "center"
|
107
|
+
}) %>
|
108
|
+
|
109
|
+
<br>
|
110
|
+
|
111
|
+
<%= pb_rails("timestamp", props: {
|
112
|
+
timestamp: DateTime.now + 4.years,
|
113
|
+
show_date: true,
|
114
|
+
show_timezone: true,
|
115
|
+
timezone: "Asia/Hong_Kong",
|
116
|
+
align: "center"
|
117
|
+
}) %>
|
118
|
+
|
119
|
+
<br><br>
|
120
|
+
|
121
|
+
<%= pb_rails("timestamp", props: {
|
122
|
+
timestamp: DateTime.now,
|
123
|
+
show_date: false,
|
124
|
+
show_timezone: true,
|
125
|
+
timezone: "America/New_York",
|
126
|
+
align: "right"
|
127
|
+
}) %>
|
128
|
+
|
129
|
+
<br>
|
130
|
+
|
131
|
+
<%= pb_rails("timestamp", props: {
|
132
|
+
timestamp: DateTime.now,
|
133
|
+
show_date: true,
|
134
|
+
show_timezone: true,
|
135
|
+
timezone: "America/New_York",
|
136
|
+
align: "right"
|
137
|
+
}) %>
|
138
|
+
|
139
|
+
<br>
|
140
|
+
|
141
|
+
<%= pb_rails("timestamp", props: {
|
142
|
+
timestamp: DateTime.now + 4.years,
|
143
|
+
show_date: true,
|
144
|
+
show_timezone: true,
|
145
|
+
timezone: "America/New_York",
|
146
|
+
align: "right"
|
147
|
+
}) %>
|
148
|
+
|
149
|
+
<br>
|
150
|
+
|
151
|
+
<%= pb_rails("timestamp", props: {
|
152
|
+
timestamp: DateTime.now,
|
153
|
+
show_date: false,
|
154
|
+
show_timezone: true,
|
155
|
+
timezone: "Asia/Hong_Kong",
|
156
|
+
align: "right"
|
157
|
+
}) %>
|
158
|
+
|
159
|
+
<br>
|
160
|
+
|
161
|
+
<%= pb_rails("timestamp", props: {
|
162
|
+
timestamp: DateTime.now,
|
163
|
+
show_date: true,
|
164
|
+
show_timezone: true,
|
165
|
+
timezone: "Asia/Hong_Kong",
|
166
|
+
align: "right"
|
167
|
+
}) %>
|
168
|
+
|
169
|
+
<br>
|
170
|
+
|
171
|
+
<%= pb_rails("timestamp", props: {
|
172
|
+
timestamp: DateTime.now + 4.years,
|
173
|
+
show_date: true,
|
174
|
+
show_timezone: true,
|
175
|
+
timezone: "Asia/Hong_Kong",
|
176
|
+
align: "right"
|
177
|
+
}) %>
|
@@ -0,0 +1,209 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import Timestamp from '../_timestamp.jsx'
|
3
|
+
|
4
|
+
const TimestampTimezonesAlign = (props) => {
|
5
|
+
return (
|
6
|
+
<div>
|
7
|
+
<Timestamp
|
8
|
+
align="left"
|
9
|
+
showDate="false"
|
10
|
+
showTimezone="true"
|
11
|
+
timestamp={new Date().getTime()}
|
12
|
+
timezone="America/New_York"
|
13
|
+
{...props}
|
14
|
+
/>
|
15
|
+
|
16
|
+
<br />
|
17
|
+
|
18
|
+
<Timestamp
|
19
|
+
align="left"
|
20
|
+
showDate="true"
|
21
|
+
showTimezone="true"
|
22
|
+
timestamp={new Date().getTime()}
|
23
|
+
timezone="America/New_York"
|
24
|
+
{...props}
|
25
|
+
/>
|
26
|
+
|
27
|
+
<br />
|
28
|
+
|
29
|
+
<Timestamp
|
30
|
+
align="left"
|
31
|
+
showDate="true"
|
32
|
+
showTimezone="true"
|
33
|
+
timestamp={new Date((new Date()).getFullYear() + 4, (new Date().getMonth()), (new Date().getDate() + 1)).getTime()}
|
34
|
+
timezone="America/New_York"
|
35
|
+
{...props}
|
36
|
+
/>
|
37
|
+
|
38
|
+
<br />
|
39
|
+
|
40
|
+
<Timestamp
|
41
|
+
align="left"
|
42
|
+
showDate="false"
|
43
|
+
showTimezone="true"
|
44
|
+
timestamp={new Date().getTime()}
|
45
|
+
timezone="Asia/Hong_Kong"
|
46
|
+
{...props}
|
47
|
+
/>
|
48
|
+
|
49
|
+
<br />
|
50
|
+
|
51
|
+
<Timestamp
|
52
|
+
align="left"
|
53
|
+
showDate="true"
|
54
|
+
showTimezone="true"
|
55
|
+
timestamp={new Date().getTime()}
|
56
|
+
timezone="Asia/Hong_Kong"
|
57
|
+
{...props}
|
58
|
+
/>
|
59
|
+
|
60
|
+
<br />
|
61
|
+
|
62
|
+
<Timestamp
|
63
|
+
align="left"
|
64
|
+
showDate="true"
|
65
|
+
showTimezone="true"
|
66
|
+
timestamp={new Date((new Date()).getFullYear() + 4, (new Date().getMonth()), (new Date().getDate() + 1)).getTime()}
|
67
|
+
timezone="Asia/Hong_Kong"
|
68
|
+
{...props}
|
69
|
+
/>
|
70
|
+
|
71
|
+
<br />
|
72
|
+
<br />
|
73
|
+
|
74
|
+
<Timestamp
|
75
|
+
align="center"
|
76
|
+
showDate="false"
|
77
|
+
showTimezone="true"
|
78
|
+
timestamp={new Date().getTime()}
|
79
|
+
timezone="America/New_York"
|
80
|
+
{...props}
|
81
|
+
/>
|
82
|
+
|
83
|
+
<br />
|
84
|
+
|
85
|
+
<Timestamp
|
86
|
+
align="center"
|
87
|
+
showDate="true"
|
88
|
+
showTimezone="true"
|
89
|
+
timestamp={new Date().getTime()}
|
90
|
+
timezone="America/New_York"
|
91
|
+
{...props}
|
92
|
+
/>
|
93
|
+
|
94
|
+
<br />
|
95
|
+
|
96
|
+
<Timestamp
|
97
|
+
align="center"
|
98
|
+
showDate="true"
|
99
|
+
showTimezone="true"
|
100
|
+
timestamp={new Date((new Date()).getFullYear() + 4, (new Date().getMonth()), (new Date().getDate() + 1)).getTime()}
|
101
|
+
timezone="America/New_York"
|
102
|
+
{...props}
|
103
|
+
/>
|
104
|
+
|
105
|
+
<br />
|
106
|
+
|
107
|
+
<Timestamp
|
108
|
+
align="center"
|
109
|
+
showDate="false"
|
110
|
+
showTimezone="true"
|
111
|
+
timestamp={new Date().getTime()}
|
112
|
+
timezone="Asia/Hong_Kong"
|
113
|
+
{...props}
|
114
|
+
/>
|
115
|
+
|
116
|
+
<br />
|
117
|
+
|
118
|
+
<Timestamp
|
119
|
+
align="center"
|
120
|
+
showDate="true"
|
121
|
+
showTimezone="true"
|
122
|
+
timestamp={new Date().getTime()}
|
123
|
+
timezone="Asia/Hong_Kong"
|
124
|
+
{...props}
|
125
|
+
/>
|
126
|
+
|
127
|
+
<br />
|
128
|
+
|
129
|
+
<Timestamp
|
130
|
+
align="center"
|
131
|
+
showDate="true"
|
132
|
+
showTimezone="true"
|
133
|
+
timestamp={new Date((new Date()).getFullYear() + 4, (new Date().getMonth()), (new Date().getDate() + 1)).getTime()}
|
134
|
+
timezone="Asia/Hong_Kong"
|
135
|
+
{...props}
|
136
|
+
/>
|
137
|
+
|
138
|
+
<br />
|
139
|
+
<br />
|
140
|
+
|
141
|
+
<Timestamp
|
142
|
+
align="right"
|
143
|
+
showDate="false"
|
144
|
+
showTimezone="true"
|
145
|
+
timestamp={new Date().getTime()}
|
146
|
+
timezone="America/New_York"
|
147
|
+
{...props}
|
148
|
+
/>
|
149
|
+
|
150
|
+
<br />
|
151
|
+
|
152
|
+
<Timestamp
|
153
|
+
align="right"
|
154
|
+
showDate="true"
|
155
|
+
showTimezone="true"
|
156
|
+
timestamp={new Date().getTime()}
|
157
|
+
timezone="America/New_York"
|
158
|
+
{...props}
|
159
|
+
/>
|
160
|
+
|
161
|
+
<br />
|
162
|
+
|
163
|
+
<Timestamp
|
164
|
+
align="right"
|
165
|
+
showDate="true"
|
166
|
+
showTimezone="true"
|
167
|
+
timestamp={new Date((new Date()).getFullYear() + 4, (new Date().getMonth()), (new Date().getDate() + 1)).getTime()}
|
168
|
+
timezone="America/New_York"
|
169
|
+
{...props}
|
170
|
+
/>
|
171
|
+
|
172
|
+
<br />
|
173
|
+
|
174
|
+
<Timestamp
|
175
|
+
align="right"
|
176
|
+
showDate="false"
|
177
|
+
showTimezone="true"
|
178
|
+
timestamp={new Date().getTime()}
|
179
|
+
timezone="Asia/Hong_Kong"
|
180
|
+
{...props}
|
181
|
+
/>
|
182
|
+
|
183
|
+
<br />
|
184
|
+
|
185
|
+
<Timestamp
|
186
|
+
align="right"
|
187
|
+
showDate="true"
|
188
|
+
showTimezone="true"
|
189
|
+
timestamp={new Date().getTime()}
|
190
|
+
timezone="Asia/Hong_Kong"
|
191
|
+
{...props}
|
192
|
+
/>
|
193
|
+
|
194
|
+
<br />
|
195
|
+
|
196
|
+
<Timestamp
|
197
|
+
align="right"
|
198
|
+
showDate="true"
|
199
|
+
showTimezone="true"
|
200
|
+
timestamp={new Date((new Date()).getFullYear() + 4, (new Date().getMonth()), (new Date().getDate() + 1)).getTime()}
|
201
|
+
timezone="Asia/Hong_Kong"
|
202
|
+
{...props}
|
203
|
+
/>
|
204
|
+
|
205
|
+
</div>
|
206
|
+
)
|
207
|
+
}
|
208
|
+
|
209
|
+
export default TimestampTimezonesAlign
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<%= pb_rails("timestamp", props: {
|
2
|
+
timestamp: DateTime.now,
|
3
|
+
variant: "updated",
|
4
|
+
show_user: true,
|
5
|
+
text: "Maricris Nonato"
|
6
|
+
}) %>
|
7
|
+
|
8
|
+
<br>
|
9
|
+
|
10
|
+
<%= pb_rails("timestamp", props: {
|
11
|
+
timestamp: DateTime.now,
|
12
|
+
variant: "updated",
|
13
|
+
show_user: false
|
14
|
+
}) %>
|
15
|
+
|
16
|
+
<br><br>
|
17
|
+
|
18
|
+
<%= pb_rails("timestamp", props: {
|
19
|
+
timestamp: DateTime.now,
|
20
|
+
variant: "updated",
|
21
|
+
show_user: true,
|
22
|
+
show_timezone: true,
|
23
|
+
text: "Maricris Nonato",
|
24
|
+
timezone: "America/New_York"
|
25
|
+
}) %>
|
26
|
+
|
27
|
+
<br>
|
28
|
+
|
29
|
+
<%= pb_rails("timestamp", props: {
|
30
|
+
timestamp: DateTime.now,
|
31
|
+
variant: "updated",
|
32
|
+
show_user: false,
|
33
|
+
show_timezone: true,
|
34
|
+
timezone: "America/New_York"
|
35
|
+
}) %>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import Timestamp from '../_timestamp.jsx'
|
3
|
+
|
4
|
+
const TimestampUpdated = (props) => {
|
5
|
+
return (
|
6
|
+
<div>
|
7
|
+
<Timestamp
|
8
|
+
showUser="true"
|
9
|
+
text="Maricris Nonato"
|
10
|
+
timestamp={new Date().getTime()}
|
11
|
+
variant="updated"
|
12
|
+
{...props}
|
13
|
+
/>
|
14
|
+
|
15
|
+
<br />
|
16
|
+
|
17
|
+
<Timestamp
|
18
|
+
showUser="false"
|
19
|
+
timestamp={new Date().getTime()}
|
20
|
+
variant="updated"
|
21
|
+
{...props}
|
22
|
+
/>
|
23
|
+
|
24
|
+
<br />
|
25
|
+
<br />
|
26
|
+
|
27
|
+
<Timestamp
|
28
|
+
showTimezone="true"
|
29
|
+
showUser="true"
|
30
|
+
text="Maricris Nonato"
|
31
|
+
timestamp={new Date().getTime()}
|
32
|
+
timezone="America/New_York"
|
33
|
+
variant="updated"
|
34
|
+
{...props}
|
35
|
+
/>
|
36
|
+
|
37
|
+
<br />
|
38
|
+
|
39
|
+
<Timestamp
|
40
|
+
showTimezone="true"
|
41
|
+
showUser="false"
|
42
|
+
timestamp={new Date().getTime()}
|
43
|
+
timezone="America/New_York"
|
44
|
+
variant="updated"
|
45
|
+
{...props}
|
46
|
+
/>
|
47
|
+
</div>
|
48
|
+
)
|
49
|
+
}
|
50
|
+
|
51
|
+
export default TimestampUpdated
|