playbook_ui_docs 15.0.0.pre.alpha.PLAY2420atfirstcolumnborderfix10651 → 15.0.0.pre.alpha.PLAY2420atfirstcolumnborderfix10658

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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.html.erb +0 -10
  3. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.jsx +0 -9
  4. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.md +1 -0
  5. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.html.erb +3 -17
  6. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx +0 -15
  7. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.md +1 -0
  8. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.html.erb +0 -2
  9. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx +0 -2
  10. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.md +5 -0
  11. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_current_year.html.erb +12 -0
  12. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_current_year.jsx +25 -0
  13. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_current_year.md +1 -0
  14. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_date.html.erb +4 -0
  15. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_date.jsx +17 -0
  16. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_date.md +1 -0
  17. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_time.html.erb +18 -0
  18. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_time.jsx +44 -0
  19. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_time.md +1 -0
  20. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.html.erb +0 -14
  21. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx +0 -14
  22. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.md +1 -0
  23. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.html.erb +0 -4
  24. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.jsx +0 -4
  25. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.jsx +0 -1
  26. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.md +5 -0
  27. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_current_year.html.erb +16 -0
  28. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_current_year.jsx +30 -0
  29. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_current_year.md +1 -0
  30. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_date.html.erb +16 -0
  31. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_date.jsx +30 -0
  32. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_date.md +1 -0
  33. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_time.html.erb +26 -0
  34. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_time.jsx +41 -0
  35. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_time.md +1 -0
  36. data/app/pb_kits/playbook/pb_timestamp/docs/example.yml +18 -6
  37. data/app/pb_kits/playbook/pb_timestamp/docs/index.js +6 -0
  38. data/dist/playbook-doc.js +2 -2
  39. metadata +25 -3
  40. data/app/pb_kits/playbook/pb_timestamp/docs/_time_stamp_default.md +0 -1
@@ -0,0 +1,30 @@
1
+ import React from 'react'
2
+ import Timestamp from '../_timestamp'
3
+
4
+ const todaysDate = new Date()
5
+
6
+ const TimestampUpdatedShowDate = (props) => {
7
+ return (
8
+ <div>
9
+ <Timestamp
10
+ showDate={false}
11
+ showUser
12
+ text="Maricris Nonato"
13
+ timestamp={todaysDate}
14
+ variant="updated"
15
+ {...props}
16
+ />
17
+
18
+ <br />
19
+
20
+ <Timestamp
21
+ showDate={false}
22
+ timestamp={todaysDate}
23
+ variant="updated"
24
+ {...props}
25
+ />
26
+ </div>
27
+ )
28
+ }
29
+
30
+ export default TimestampUpdatedShowDate
@@ -0,0 +1 @@
1
+ The `updated` variant can also be used in conjunction with the `showDate`/`show_date` prop. This prop is set to true by default but can be set to false to hide the date.
@@ -0,0 +1,26 @@
1
+ <%= pb_rails("timestamp", props: {
2
+ timestamp: DateTime.now,
3
+ variant: "updated",
4
+ show_user: true,
5
+ show_time: false,
6
+ text: "Maricris Nonato"
7
+ }) %>
8
+
9
+ <br>
10
+
11
+ <%= pb_rails("timestamp", props: {
12
+ timestamp: DateTime.now,
13
+ variant: "updated",
14
+ show_user: false,
15
+ show_time: false
16
+ }) %>
17
+
18
+ <br>
19
+
20
+ <%= pb_rails("timestamp", props: {
21
+ timestamp: DateTime.now,
22
+ variant: "updated",
23
+ show_current_year: true,
24
+ show_user: false,
25
+ show_time: false
26
+ }) %>
@@ -0,0 +1,41 @@
1
+ import React from 'react'
2
+ import Timestamp from '../_timestamp'
3
+
4
+ const todaysDate = new Date()
5
+
6
+ const TimestampUpdatedShowTime = (props) => {
7
+ return (
8
+ <div>
9
+ <Timestamp
10
+ showTime={false}
11
+ showUser
12
+ text="Maricris Nonato"
13
+ timestamp={todaysDate}
14
+ variant="updated"
15
+ {...props}
16
+ />
17
+
18
+ <br />
19
+
20
+ <Timestamp
21
+ showTime={false}
22
+ timestamp={todaysDate}
23
+ variant="updated"
24
+ {...props}
25
+ />
26
+
27
+ <br />
28
+
29
+ <Timestamp
30
+ showCurrentYear
31
+ showTime={false}
32
+ timestamp={todaysDate}
33
+ variant="updated"
34
+ {...props}
35
+ />
36
+
37
+ </div>
38
+ )
39
+ }
40
+
41
+ export default TimestampUpdatedShowTime
@@ -0,0 +1 @@
1
+ The `updated` variant can also be used in conjunction with the `showTime`/`show_time` prop. This prop is set to true by default but can be set to false to hide the time. This can also be used in conjunction with `showCurrentYear`/`show_current_year` to show the year even if it is the current year.
@@ -2,18 +2,30 @@ examples:
2
2
 
3
3
  rails:
4
4
  - timestamp_default: Default
5
+ - timestamp_show_date: Hide Date
6
+ - timestamp_show_time: Hide Time
7
+ - timestamp_show_current_year: Show Current Year
8
+ - timestamp_timezones: Show Timezones
5
9
  - timestamp_align: Alignments
6
- - timestamp_timezones: Timezones
7
- - timestamp_updated: Last Updated by
8
- - timestamp_elapsed: Time Ago
10
+ - timestamp_elapsed: Time Ago (Elapsed Variant)
11
+ - timestamp_updated: Last Updated by (Updated Variant)
12
+ - timestamp_updated_show_current_year: Last Updated by (Updated Variant) - Show Current Year
13
+ - timestamp_updated_show_date: Last Updated by (Updated Variant) - Hide Date
14
+ - timestamp_updated_show_time: Last Updated by (Updated Variant) - Hide Time
9
15
  - timestamp_unstyled: Unstyled
10
16
 
11
17
  react:
12
18
  - timestamp_default: Default
19
+ - timestamp_show_date: Hide Date
20
+ - timestamp_show_time: Hide Time
21
+ - timestamp_show_current_year: Show Current Year
22
+ - timestamp_timezones: Show Timezones
13
23
  - timestamp_align: Alignments
14
- - timestamp_timezones: Timezones
15
- - timestamp_updated: Last Updated by
16
- - timestamp_elapsed: Time Ago
24
+ - timestamp_elapsed: Time Ago (Elapsed Variant)
25
+ - timestamp_updated: Last Updated by (Updated Variant)
26
+ - timestamp_updated_show_current_year: Last Updated by (Updated Variant) - Show Current Year
27
+ - timestamp_updated_show_date: Last Updated by (Updated Variant) - Hide Date
28
+ - timestamp_updated_show_time: Last Updated by (Updated Variant) - Hide Time
17
29
  - timestamp_unstyled: Unstyled
18
30
 
19
31
  swift:
@@ -4,3 +4,9 @@ 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
6
  export { default as TimestampUnstyled } from './_timestamp_unstyled.jsx'
7
+ export { default as TimestampShowDate } from './_timestamp_show_date.jsx'
8
+ export { default as TimestampShowTime } from './_timestamp_show_time.jsx'
9
+ export { default as TimestampShowCurrentYear } from './_timestamp_show_current_year.jsx'
10
+ export { default as TimestampUpdatedShowCurrentYear } from './_timestamp_updated_show_current_year.jsx'
11
+ export { default as TimestampUpdatedShowDate } from './_timestamp_updated_show_date.jsx'
12
+ export { default as TimestampUpdatedShowTime } from './_timestamp_updated_show_time.jsx'