playbook_ui 5.5.1.pre.alpha2 → 6.0.1

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 (93) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -3
  3. data/app/pb_kits/playbook/data/menu.yml +0 -3
  4. data/app/pb_kits/playbook/index.js +0 -3
  5. data/app/pb_kits/playbook/packs/examples.js +0 -6
  6. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.html.erb +21 -11
  7. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss +10 -0
  8. data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +14 -0
  9. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +26 -0
  10. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +20 -0
  11. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +22 -0
  12. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +5 -1
  13. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +0 -1
  14. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -1
  15. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +1 -3
  16. data/app/pb_kits/playbook/pb_form/form_builder.rb +0 -1
  17. data/app/pb_kits/playbook/pb_image/_image.html.erb +2 -1
  18. data/app/pb_kits/playbook/pb_image/_image.jsx +31 -8
  19. data/app/pb_kits/playbook/pb_image/docs/_default_image.jsx +3 -3
  20. data/app/pb_kits/playbook/pb_label_value/_label_value.html.erb +20 -2
  21. data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +109 -5
  22. data/app/pb_kits/playbook/pb_label_value/_label_value.scss +0 -10
  23. data/app/pb_kits/playbook/pb_label_value/docs/_description.md +3 -1
  24. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details.html.erb +39 -0
  25. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details.jsx +50 -0
  26. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details.md +1 -0
  27. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_dark.html.erb +43 -0
  28. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_dark.jsx +54 -0
  29. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples.html.erb +72 -0
  30. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples.jsx +92 -0
  31. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_dark.html.erb +80 -0
  32. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_dark.jsx +101 -0
  33. data/app/pb_kits/playbook/pb_label_value/docs/example.yml +9 -0
  34. data/app/pb_kits/playbook/pb_label_value/docs/index.js +5 -0
  35. data/app/pb_kits/playbook/pb_label_value/label_value.rb +19 -2
  36. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +5 -1
  37. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +12 -1
  38. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_variants.html.erb +9 -0
  39. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_variants.jsx +26 -0
  40. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_variants.md +1 -0
  41. data/app/pb_kits/playbook/pb_progress_simple/docs/example.yml +2 -0
  42. data/app/pb_kits/playbook/pb_progress_simple/docs/index.js +2 -0
  43. data/app/pb_kits/playbook/pb_progress_simple/progress_simple.rb +8 -1
  44. data/app/pb_kits/playbook/pb_title/_title.scss +3 -4
  45. data/app/pb_kits/playbook/pb_title/title.rb +2 -2
  46. data/app/pb_kits/playbook/plugins/pb_chart.js +49 -4
  47. data/app/pb_kits/playbook/vendor.js +0 -4
  48. data/lib/playbook/version.rb +1 -1
  49. metadata +19 -49
  50. data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +0 -36
  51. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +0 -98
  52. data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +0 -59
  53. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -38
  54. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +0 -91
  55. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.html.erb +0 -1
  56. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.jsx +0 -12
  57. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +0 -24
  58. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +0 -30
  59. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.html.erb +0 -43
  60. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx +0 -48
  61. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.html.erb +0 -4
  62. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.jsx +0 -13
  63. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +0 -19
  64. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +0 -25
  65. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.html.erb +0 -4
  66. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.jsx +0 -13
  67. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.html.erb +0 -14
  68. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.jsx +0 -22
  69. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +0 -4
  70. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +0 -13
  71. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -23
  72. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +0 -8
  73. data/app/pb_kits/playbook/pb_date_picker/index.js +0 -11
  74. data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +0 -15
  75. data/app/pb_kits/playbook/pb_installer/_installer.html.erb +0 -16
  76. data/app/pb_kits/playbook/pb_installer/_installer.jsx +0 -54
  77. data/app/pb_kits/playbook/pb_installer/_installer.scss +0 -7
  78. data/app/pb_kits/playbook/pb_installer/docs/_installer_default.html.erb +0 -8
  79. data/app/pb_kits/playbook/pb_installer/docs/_installer_default.jsx +0 -16
  80. data/app/pb_kits/playbook/pb_installer/docs/example.yml +0 -9
  81. data/app/pb_kits/playbook/pb_installer/docs/index.js +0 -1
  82. data/app/pb_kits/playbook/pb_installer/installer.rb +0 -18
  83. data/app/pb_kits/playbook/pb_label_value/docs/index.html.erb +0 -25
  84. data/app/pb_kits/playbook/pb_logistic/_logistic.html.erb +0 -20
  85. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +0 -111
  86. data/app/pb_kits/playbook/pb_logistic/_logistic.scss +0 -7
  87. data/app/pb_kits/playbook/pb_logistic/docs/_logistic_dark.html.erb +0 -27
  88. data/app/pb_kits/playbook/pb_logistic/docs/_logistic_dark.jsx +0 -39
  89. data/app/pb_kits/playbook/pb_logistic/docs/_logistic_default.html.erb +0 -24
  90. data/app/pb_kits/playbook/pb_logistic/docs/_logistic_default.jsx +0 -35
  91. data/app/pb_kits/playbook/pb_logistic/docs/example.yml +0 -11
  92. data/app/pb_kits/playbook/pb_logistic/docs/index.js +0 -2
  93. data/app/pb_kits/playbook/pb_logistic/logistic.rb +0 -31
@@ -1,17 +1,7 @@
1
1
  @import "../tokens/spacing";
2
- @import "../pb_caption/caption";
3
- @import "../pb_body/body";
4
2
 
5
3
  [class^=pb_label_value_kit] {
6
4
  [class^=pb_caption_kit] {
7
5
  margin-bottom: $space-xs/1.5;
8
6
  }
9
- &[class*=_dark] {
10
- [class^=pb_caption_kit] {
11
- color: $text_dk_light;
12
- }
13
- [class^=pb_body_kit] {
14
- color: $text_dk_default;
15
- }
16
- }
17
7
  }
@@ -1 +1,3 @@
1
- This kit can be very versatile when used to display text data. It includes the caption kit and the body text kit.
1
+ This kit can be very versatile when used to display text data.
2
+
3
+ Variant `default` includes a label and text. However, variant `details` can be used if multiple elements are necessary in order to make it more descriptive. Variant `details` may include icon, light text, title and date, as well as the option to make it active (with link color) for clickability purposes.
@@ -0,0 +1,39 @@
1
+ <%= pb_rails("label_value", props: {
2
+ variant: "details",
3
+ label: "Installer",
4
+ icon: "truck",
5
+ title: "JD Installations LLC",
6
+ }) %>
7
+
8
+ <br>
9
+
10
+ <%= pb_rails("label_value", props: {
11
+ variant: "details",
12
+ label: "Project",
13
+ icon: "home",
14
+ description: "33-12345",
15
+ title: "Jefferson-Smith",
16
+ }) %>
17
+
18
+ <br>
19
+
20
+ <%= pb_rails("label_value", props: {
21
+ variant: "details",
22
+ label: "Project",
23
+ icon: "home",
24
+ description: "33-12345",
25
+ title: "Jefferson-Smith",
26
+ date: Date.new(2019, 11, 18)
27
+ }) %>
28
+
29
+ <br>
30
+
31
+ <%= pb_rails("label_value", props: {
32
+ variant: "details",
33
+ active: true,
34
+ label: "Project",
35
+ icon: "home",
36
+ description: "33-12345",
37
+ title: "Jefferson-Smith",
38
+ date: Date.new(2019, 11, 18)
39
+ }) %>
@@ -0,0 +1,50 @@
1
+ import React from 'react'
2
+ import { LabelValue } from '../../'
3
+
4
+ const LabelValueDetails = () => {
5
+ return (
6
+ <div>
7
+ <LabelValue
8
+ icon="truck"
9
+ label="Installer"
10
+ title="JD Installations LLC"
11
+ variant="details"
12
+ />
13
+
14
+ <br />
15
+
16
+ <LabelValue
17
+ description="33-12345"
18
+ icon="home"
19
+ label="Project"
20
+ title="Jefferson-Smith"
21
+ variant="details"
22
+ />
23
+
24
+ <br />
25
+
26
+ <LabelValue
27
+ date={new Date('18 Nov 2019')}
28
+ description="33-12345"
29
+ icon="home"
30
+ label="Project"
31
+ title="Jefferson-Smith"
32
+ variant="details"
33
+ />
34
+
35
+ <br />
36
+
37
+ <LabelValue
38
+ active
39
+ date={new Date('18 Nov 2019')}
40
+ description="33-12345"
41
+ icon="home"
42
+ label="Project"
43
+ title="Jefferson-Smith"
44
+ variant="details"
45
+ />
46
+ </div>
47
+ )
48
+ }
49
+
50
+ export default LabelValueDetails
@@ -0,0 +1 @@
1
+ Variant `details` can pass icon, description, title, date, and active props.
@@ -0,0 +1,43 @@
1
+ <%= pb_rails("label_value", props: {
2
+ variant: "details",
3
+ label: "Installer",
4
+ icon: "truck",
5
+ title: "JD Installations LLC",
6
+ dark: true
7
+ }) %>
8
+
9
+ <br>
10
+
11
+ <%= pb_rails("label_value", props: {
12
+ variant: "details",
13
+ label: "Project",
14
+ icon: "home",
15
+ description: "33-12345",
16
+ title: "Jefferson-Smith",
17
+ dark: true
18
+ }) %>
19
+
20
+ <br>
21
+
22
+ <%= pb_rails("label_value", props: {
23
+ variant: "details",
24
+ label: "Project",
25
+ icon: "home",
26
+ description: "33-12345",
27
+ title: "Jefferson-Smith",
28
+ date: Date.new(2019, 11, 18),
29
+ dark: true
30
+ }) %>
31
+
32
+ <br>
33
+
34
+ <%= pb_rails("label_value", props: {
35
+ variant: "details",
36
+ label: "Project",
37
+ icon: "home",
38
+ description: "33-12345",
39
+ title: "Jefferson-Smith",
40
+ date: Date.new(2019, 11, 18),
41
+ dark: true,
42
+ active: true
43
+ }) %>
@@ -0,0 +1,54 @@
1
+ import React from 'react'
2
+ import { LabelValue } from '../../'
3
+
4
+ const LabelValueDetailsDark = () => {
5
+ return (
6
+ <div>
7
+ <LabelValue
8
+ dark
9
+ icon="truck"
10
+ label="Installer"
11
+ title="JD Installations LLC"
12
+ variant="details"
13
+ />
14
+
15
+ <br />
16
+
17
+ <LabelValue
18
+ dark
19
+ description="33-12345"
20
+ icon="home"
21
+ label="Project"
22
+ title="Jefferson-Smith"
23
+ variant="details"
24
+ />
25
+
26
+ <br />
27
+
28
+ <LabelValue
29
+ dark
30
+ date={new Date('18 Nov 2019')}
31
+ description="33-12345"
32
+ icon="home"
33
+ label="Project"
34
+ title="Jefferson-Smith"
35
+ variant="details"
36
+ />
37
+
38
+ <br />
39
+
40
+ <LabelValue
41
+ active
42
+ dark
43
+ date={new Date('18 Nov 2019')}
44
+ description="33-12345"
45
+ icon="home"
46
+ label="Project"
47
+ title="Jefferson-Smith"
48
+ variant="details"
49
+ />
50
+ </div>
51
+ )
52
+ }
53
+
54
+ export default LabelValueDetailsDark
@@ -0,0 +1,72 @@
1
+ <%= pb_rails("title", props: { text: "Patient Profile", tag: "h4", size: 4, margin_bottom: "sm" }) %>
2
+
3
+ <%= pb_rails("flex") do %>
4
+ <%= pb_rails("flex", props: {orientation: "column", margin_right: "lg" }) do %>
5
+
6
+ <%= pb_rails("label_value", props: {
7
+ variant: "details",
8
+ label: "Age",
9
+ icon: "user",
10
+ title: "24 yrs old",
11
+ padding_bottom: "sm"
12
+ }) %>
13
+ <%= pb_rails("label_value", props: {
14
+ variant: "details",
15
+ label: "Weight",
16
+ icon: "weight",
17
+ title: "91 kg",
18
+ }) %>
19
+
20
+ <% end %>
21
+ <%= pb_rails("flex", props: {orientation: "column"}) do %>
22
+
23
+ <%= pb_rails("label_value", props: {
24
+ variant: "details",
25
+ label: "Blood",
26
+ icon: "tint",
27
+ title: "A +",
28
+ padding_bottom: "sm"
29
+ }) %>
30
+ <%= pb_rails("label_value", props: {
31
+ variant: "details",
32
+ label: "Height",
33
+ icon: "arrows-v",
34
+ title: "187 cm",
35
+ }) %>
36
+
37
+ <% end %>
38
+ <% end %>
39
+
40
+ <br><br><br>
41
+
42
+ <%= pb_rails("title", props: { text: "Workout Schedule", tag: "h4", size: 4, margin_bottom: "sm" }) %>
43
+
44
+ <%= pb_rails("label_value", props: {
45
+ variant: "details",
46
+ label: "Chest",
47
+ icon: "dumbbell",
48
+ description: "6 sets • 8 reps • 40-100 kg",
49
+ title: "Bench Press",
50
+ padding_bottom: "sm",
51
+ active: true
52
+ }) %>
53
+
54
+ <%= pb_rails("label_value", props: {
55
+ variant: "details",
56
+ label: "Biceps",
57
+ icon: "dumbbell",
58
+ description: "5 sets • 12 reps • 20-40 kg",
59
+ title: "Barbell Curl",
60
+ padding_bottom: "sm",
61
+ active: true
62
+ }) %>
63
+
64
+ <%= pb_rails("label_value", props: {
65
+ variant: "details",
66
+ label: "Back",
67
+ icon: "dumbbell",
68
+ description: "8 sets • 8 reps • 40-120 kg",
69
+ title: "Back Squat",
70
+ padding_bottom: "sm",
71
+ active: true
72
+ }) %>
@@ -0,0 +1,92 @@
1
+ import React from 'react'
2
+ import { Flex, LabelValue, Title } from '../../'
3
+
4
+ const LabelValueDetailsExamples = () => {
5
+ return (
6
+ <div>
7
+ <Title
8
+ marginBottom="sm"
9
+ size={4}
10
+ text="Patient Profile"
11
+ />
12
+
13
+ <Flex>
14
+ <Flex
15
+ marginRight="lg"
16
+ orientation="column"
17
+ >
18
+ <LabelValue
19
+ icon="user"
20
+ label="Age"
21
+ paddingBottom="sm"
22
+ title="24 yrs old"
23
+ variant="details"
24
+ />
25
+ <LabelValue
26
+ icon="weight"
27
+ label="Weight"
28
+ title="91 kg"
29
+ variant="details"
30
+ />
31
+ </Flex>
32
+ <Flex
33
+ orientation="column"
34
+ >
35
+ <LabelValue
36
+ icon="tint"
37
+ label="Blood"
38
+ paddingBottom="sm"
39
+ title="A +"
40
+ variant="details"
41
+ />
42
+ <LabelValue
43
+ icon="arrows-v"
44
+ label="Height"
45
+ title="187 cm"
46
+ variant="details"
47
+ />
48
+ </Flex>
49
+ </Flex>
50
+
51
+ <br />
52
+ <br />
53
+ <br />
54
+
55
+ <Title
56
+ marginBottom="sm"
57
+ size={4}
58
+ text="Workout Schedule"
59
+ />
60
+
61
+ <LabelValue
62
+ active
63
+ description="6 sets • 8 reps • 40-100 kg"
64
+ icon="dumbbell"
65
+ label="Chest"
66
+ paddingBottom="sm"
67
+ title="Bench Press"
68
+ variant="details"
69
+ />
70
+ <LabelValue
71
+ active
72
+ description="5 sets • 12 reps • 20-40 kg"
73
+ icon="dumbbell"
74
+ label="Biceps"
75
+ paddingBottom="sm"
76
+ title="Barbell Curl"
77
+ variant="details"
78
+ />
79
+ <LabelValue
80
+ active
81
+ description="8 sets • 8 reps • 40-120 kg"
82
+ icon="dumbbell"
83
+ label="Back"
84
+ paddingBottom="sm"
85
+ title="Back Squat"
86
+ variant="details"
87
+ />
88
+ </div>
89
+ )
90
+ }
91
+
92
+ export default LabelValueDetailsExamples
@@ -0,0 +1,80 @@
1
+ <%= pb_rails("title", props: { text: "Patient Profile", tag: "h4", size: 4, margin_bottom: "sm", dark: true }) %>
2
+
3
+ <%= pb_rails("flex") do %>
4
+ <%= pb_rails("flex", props: {orientation: "column", margin_right: "lg" }) do %>
5
+
6
+ <%= pb_rails("label_value", props: {
7
+ variant: "details",
8
+ label: "Age",
9
+ icon: "user",
10
+ title: "24 yrs old",
11
+ padding_bottom: "sm",
12
+ dark: true
13
+ }) %>
14
+ <%= pb_rails("label_value", props: {
15
+ variant: "details",
16
+ label: "Weight",
17
+ icon: "weight",
18
+ title: "91 kg",
19
+ dark: true
20
+ }) %>
21
+
22
+ <% end %>
23
+ <%= pb_rails("flex", props: {orientation: "column"}) do %>
24
+
25
+ <%= pb_rails("label_value", props: {
26
+ variant: "details",
27
+ label: "Blood",
28
+ icon: "tint",
29
+ title: "A +",
30
+ padding_bottom: "sm",
31
+ dark: true
32
+ }) %>
33
+ <%= pb_rails("label_value", props: {
34
+ variant: "details",
35
+ label: "Height",
36
+ icon: "arrows-v",
37
+ title: "187 cm",
38
+ dark: true
39
+ }) %>
40
+
41
+ <% end %>
42
+ <% end %>
43
+
44
+
45
+ <br><br><br>
46
+
47
+ <%= pb_rails("title", props: { text: "Workout Schedule", tag: "h4", size: 4, margin_bottom: "sm", dark: true }) %>
48
+
49
+ <%= pb_rails("label_value", props: {
50
+ variant: "details",
51
+ label: "Chest",
52
+ icon: "dumbbell",
53
+ description: "6 sets • 8 reps • 40-100 kg",
54
+ title: "Bench Press",
55
+ padding_bottom: "sm",
56
+ dark: true,
57
+ active: true
58
+ }) %>
59
+
60
+ <%= pb_rails("label_value", props: {
61
+ variant: "details",
62
+ label: "Biceps",
63
+ icon: "dumbbell",
64
+ description: "5 sets • 12 reps • 20-40 kg",
65
+ title: "Barbell Curl",
66
+ padding_bottom: "sm",
67
+ dark: true,
68
+ active: true
69
+ }) %>
70
+
71
+ <%= pb_rails("label_value", props: {
72
+ variant: "details",
73
+ label: "Back",
74
+ icon: "dumbbell",
75
+ description: "8 sets • 8 reps • 40-120 kg",
76
+ title: "Back Squat",
77
+ padding_bottom: "sm",
78
+ dark: true,
79
+ active: true
80
+ }) %>