playbook_ui 7.6.2.pre.alpha1 → 7.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/{sample_screenshot.svg → full_page_samples.svg} +0 -0
  3. data/app/controllers/playbook/application_controller.rb +2 -0
  4. data/app/pb_kits/playbook/_playbook.scss +2 -0
  5. data/app/pb_kits/playbook/data/menu.yml +2 -0
  6. data/app/pb_kits/playbook/index.js +3 -1
  7. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +1 -1
  8. data/app/pb_kits/playbook/pb_avatar/avatar.test.js +27 -0
  9. data/app/pb_kits/playbook/pb_background/_background.html.erb +1 -1
  10. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.jsx +8 -2
  11. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx +9 -2
  12. data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.jsx +17 -6
  13. data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.jsx +15 -5
  14. data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.jsx +2 -1
  15. data/app/pb_kits/playbook/pb_filter/Filter/ResultsCount.jsx +4 -1
  16. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.jsx +9 -4
  17. data/app/pb_kits/playbook/pb_filter/Filter/index.jsx +0 -1
  18. data/app/pb_kits/playbook/pb_filter/_filter.scss +44 -23
  19. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +3 -2
  20. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx +5 -4
  21. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +6 -4
  22. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.jsx +73 -28
  23. data/app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx +3 -7
  24. data/app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx +4 -3
  25. data/app/pb_kits/playbook/pb_filter/docs/_sort_only.html.erb +1 -2
  26. data/app/pb_kits/playbook/pb_filter/docs/_sort_only.jsx +3 -3
  27. data/app/pb_kits/playbook/pb_filter/docs/example.yml +4 -5
  28. data/app/pb_kits/playbook/pb_form_group/_form_group.jsx +1 -1
  29. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +8 -0
  30. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.jsx +2 -0
  31. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.jsx +3 -1
  32. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.jsx +4 -1
  33. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +1 -1
  34. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +4 -2
  35. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.jsx +3 -1
  36. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx +3 -1
  37. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.html.erb +32 -4
  38. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx +1 -0
  39. data/app/pb_kits/playbook/pb_form_group/docs/example.yml +2 -2
  40. data/app/pb_kits/playbook/pb_form_group/docs/index.js +1 -1
  41. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.html.erb +24 -0
  42. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.jsx +105 -0
  43. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.scss +64 -0
  44. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.html.erb +49 -0
  45. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.jsx +67 -0
  46. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_default.html.erb +11 -0
  47. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_default.jsx +25 -0
  48. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_sizes.html.erb +20 -0
  49. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_sizes.jsx +35 -0
  50. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_vertical.html.erb +7 -0
  51. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_vertical.jsx +19 -0
  52. data/app/pb_kits/playbook/pb_icon_stat_value/docs/example.yml +15 -0
  53. data/app/pb_kits/playbook/pb_icon_stat_value/docs/index.js +4 -0
  54. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb +52 -0
  55. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.jsx +2 -2
  56. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status.jsx +2 -2
  57. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.html.erb +1 -0
  58. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +123 -0
  59. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +216 -0
  60. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb +1 -0
  61. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx +10 -0
  62. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.html.erb +3 -0
  63. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx +11 -0
  64. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.html.erb +1 -0
  65. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.jsx +10 -0
  66. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.html.erb +1 -0
  67. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx +14 -0
  68. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.html.erb +115 -0
  69. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx +39 -0
  70. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +15 -0
  71. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +5 -0
  72. data/app/pb_kits/playbook/pb_rich_text_editor/docs/templates.js +75 -0
  73. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +55 -0
  74. data/app/pb_kits/playbook/pb_rich_text_editor/useFocus.js +20 -0
  75. data/app/pb_kits/playbook/pb_table/_table.scss +45 -13
  76. data/app/pb_kits/playbook/pb_table/docs/_description.md +1 -0
  77. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column.html.erb +34 -0
  78. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column.jsx +43 -0
  79. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column.md +2 -0
  80. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row.html.erb +34 -0
  81. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row.jsx +43 -0
  82. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row.md +2 -0
  83. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.html.erb +63 -0
  84. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.jsx +70 -0
  85. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.md +2 -0
  86. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.html.erb +52 -0
  87. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.jsx +61 -0
  88. data/app/pb_kits/playbook/pb_table/docs/example.yml +9 -1
  89. data/app/pb_kits/playbook/pb_table/docs/index.js +4 -1
  90. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.html.erb +3 -6
  91. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +15 -21
  92. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.scss +0 -17
  93. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_default.html.erb +4 -1
  94. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_default.jsx +12 -1
  95. data/app/pb_kits/playbook/pb_time_stacked/docs/example.yml +1 -4
  96. data/app/pb_kits/playbook/pb_time_stacked/docs/index.js +0 -1
  97. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.rb +7 -11
  98. data/app/pb_kits/playbook/react_rails_kits.js +1 -0
  99. data/app/pb_kits/playbook/utilities/globalProps.js +9 -0
  100. data/app/pb_kits/playbook/utilities/test-utils.js +24 -0
  101. data/app/pb_kits/playbook/vendor.js +2 -0
  102. data/lib/playbook/version.rb +1 -1
  103. metadata +53 -10
  104. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_caption.html.erb +0 -2
  105. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_caption.jsx +0 -15
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import { FormGroup, SelectableCard } from '../../'
3
3
 
4
- const FormGroupSelectableCard = () => {
4
+ const FormGroupSelectableCard = (props) => {
5
5
  const [value, setValue] = useState('')
6
6
 
7
7
  const handleSelect = (event) => {
@@ -18,6 +18,7 @@ const FormGroupSelectableCard = () => {
18
18
  name="animal"
19
19
  onChange={handleSelect}
20
20
  value="cat"
21
+ {...props}
21
22
  >
22
23
  {'Cat'}
23
24
  </SelectableCard>
@@ -29,6 +30,7 @@ const FormGroupSelectableCard = () => {
29
30
  name="animal"
30
31
  onChange={handleSelect}
31
32
  value="dog"
33
+ {...props}
32
34
  >
33
35
  {'Dog'}
34
36
  </SelectableCard>
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import { FormGroup, SelectableCardIcon } from '../../'
3
3
 
4
- const FormGroupSelectableCardIcon = () => {
4
+ const FormGroupSelectableCardIcon = (props) => {
5
5
  const [selectedFormat, toggleFormat] = useState(null)
6
6
 
7
7
  return (
@@ -15,6 +15,7 @@ const FormGroupSelectableCardIcon = () => {
15
15
  onChange={() => toggleFormat('basketball')}
16
16
  titleText="Basketball"
17
17
  value="basketball"
18
+ {...props}
18
19
  />
19
20
  <SelectableCardIcon
20
21
  checked={selectedFormat === 'football'}
@@ -24,6 +25,7 @@ const FormGroupSelectableCardIcon = () => {
24
25
  onChange={() => toggleFormat('football')}
25
26
  titleText="Football"
26
27
  value="football"
28
+ {...props}
27
29
  />
28
30
  </FormGroup>
29
31
  </div>
@@ -1,14 +1,42 @@
1
1
  <div>
2
2
  <%= pb_rails("form_group") do %>
3
- <%= pb_rails("typeahead", props: {
4
- label: "Products",
5
- options: [
3
+ <%
4
+ options = [
6
5
  { label: 'Windows', value: 'windows' },
7
6
  { label: 'Roof', value: 'roof' },
8
7
  { label: 'Siding', value: 'siding' },
9
8
  { label: 'Doors', value: 'doors' },
10
9
  ]
10
+ %>
11
+ <%= pb_rails("typeahead", props: {
12
+ default_options: [options.first],
13
+ id: "form-group-typeahead-example",
14
+ label: "Products",
15
+ options: options,
16
+ }) %>
17
+ <%= pb_rails("button", props: {
18
+ id: "form-group-button",
19
+ text: "Add",
20
+ variant: "secondary"
11
21
  }) %>
12
- <%= pb_rails("button", props: { text: "Add", variant: "secondary" }) %>
13
22
  <% end %>
14
23
  </div>
24
+
25
+ <!-- This section is an example of the available JavaScript event hooks -->
26
+ <%= javascript_tag defer: "defer" do %>
27
+ document.addEventListener("pb-form-group-kit-form-group-typeahead-example-result-option-select", function(event) {
28
+ console.log('Option selected')
29
+ console.dir(event.detail)
30
+ })
31
+ document.addEventListener("pb-form-group-kit-form-group-typeahead-example-result-option-remove", function(event) {
32
+ console.log('Option removed')
33
+ console.dir(event.detail)
34
+ })
35
+ document.addEventListener("pb-form-group-kit-form-group-typeahead-example-result-option-clear", function() {
36
+ console.log('All options cleared')
37
+ })
38
+
39
+ document.querySelector('#form-group-button').addEventListener('click', function() {
40
+ document.dispatchEvent(new CustomEvent('pb-form-group-kit-form-group-typeahead:clear'))
41
+ })
42
+ <% end %>
@@ -15,6 +15,7 @@ const FormGroupTypeahead = (props) => {
15
15
  <Typeahead
16
16
  label="Products"
17
17
  options={options}
18
+ {...props}
18
19
  />
19
20
  <Button
20
21
  onClick={() => alert('Button Clicked!')}
@@ -4,7 +4,7 @@ examples:
4
4
  - form_group_default: Default
5
5
  - form_group_button: Button
6
6
  - form_group_date_picker: Date Picker
7
- - form_group_typeahead: Typeahead
7
+ # - form_group_typeahead: Typeahead
8
8
  - form_group_select: Select
9
9
  - form_group_selectable_card: Selectable Card
10
10
  - form_group_selectable_card_icon: Selectable Card Icon
@@ -14,7 +14,7 @@ examples:
14
14
  - form_group_default: Default
15
15
  - form_group_button: Button
16
16
  - form_group_date_picker: Date Picker
17
- - form_group_typeahead: Typeahead
17
+ # - form_group_typeahead: Typeahead
18
18
  - form_group_select: Select
19
19
  - form_group_selectable_card: Selectable Card
20
20
  - form_group_selectable_card_icon: Selectable Card Icon
@@ -1,7 +1,7 @@
1
1
  export { default as FormGroupDefault } from './_form_group_default.jsx'
2
2
  export { default as FormGroupButton } from './_form_group_button.jsx'
3
3
  export { default as FormGroupDatePicker } from './_form_group_date_picker.jsx'
4
- export { default as FormGroupTypeahead } from './_form_group_typeahead.jsx'
4
+ // export { default as FormGroupTypeahead } from './_form_group_typeahead.jsx'
5
5
  export { default as FormGroupSelect } from './_form_group_select.jsx'
6
6
  export { default as FormGroupSelectableCard } from './_form_group_selectable_card.jsx'
7
7
  export { default as FormGroupSelectableCardIcon } from './_form_group_selectable_card_icon.jsx'
@@ -0,0 +1,24 @@
1
+ <%= content_tag(:div,
2
+ aria: object.aria,
3
+ id: object.id,
4
+ data: object.data,
5
+ class: object.classname) do %>
6
+
7
+ <%= pb_rails "icon_circle", props: {
8
+ icon: object.icon,
9
+ size: object.size,
10
+ variant: object.variant } %>
11
+
12
+ <div>
13
+ <%= pb_rails("flex", props: { vertical: "bottom" }) do %>
14
+ <%= pb_rails "title", props: {
15
+ text: object.value_string,
16
+ size: object.title_size } %>
17
+ &nbsp;
18
+ <%= pb_rails "body", props: {
19
+ text: object.unit } %>
20
+ <% end %>
21
+ <%= pb_rails "caption", props: {
22
+ text: object.text } %>
23
+ </div>
24
+ <% end %>
@@ -0,0 +1,105 @@
1
+ /* @flow */
2
+
3
+ import React from 'react'
4
+ import classnames from 'classnames'
5
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
6
+ import { Body, Caption, Flex, IconCircle, Title } from '../'
7
+ import { globalProps } from '../utilities/globalProps.js'
8
+
9
+ type IconStatValueProps = {
10
+ aria?: object,
11
+ className?: string,
12
+ data?: object,
13
+ icon: string,
14
+ id?: string,
15
+ orientation?: "vertical" | "horizontal",
16
+ size?: "sm" | "md" | "lg",
17
+ text?: string,
18
+ unit?: string,
19
+ value: number,
20
+ variant?: "default"
21
+ | "royal"
22
+ | "blue"
23
+ | "purple"
24
+ | "teal"
25
+ | "red"
26
+ | "yellow"
27
+ | "green",
28
+ }
29
+
30
+ const IconStatValue = (props: IconStatValueProps) => {
31
+ const {
32
+ aria = {},
33
+ className,
34
+ data = {},
35
+ icon,
36
+ id,
37
+ orientation = 'horizontal',
38
+ size = 'sm',
39
+ text = '',
40
+ unit = '',
41
+ value = 0,
42
+ variant = 'default',
43
+ } = props
44
+ const ariaProps = buildAriaProps(aria)
45
+ const dataProps = buildDataProps(data)
46
+ const classes = classnames(
47
+ buildCss('pb_icon_stat_value_kit', orientation, size, variant), globalProps(props),
48
+ className
49
+ )
50
+ const titleSize = function(size) {
51
+ if (size == 'lg') {
52
+ return (
53
+ <Title
54
+ size={1}
55
+ text={`${value}`}
56
+ />
57
+ )
58
+ } else if (size == 'md') {
59
+ return (
60
+ <Title
61
+ size={2}
62
+ text={`${value}`}
63
+ />
64
+ )
65
+ } else {
66
+ return (
67
+ <Title
68
+ size={3}
69
+ text={`${value}`}
70
+ />
71
+ )
72
+ }
73
+ }
74
+
75
+ return (
76
+ <div
77
+ {...ariaProps}
78
+ {...dataProps}
79
+ className={classes}
80
+ id={id}
81
+ >
82
+ <IconCircle
83
+ icon={icon}
84
+ size={size}
85
+ variant={variant}
86
+ />
87
+
88
+ <div>
89
+ <Flex
90
+ vertical="bottom"
91
+ >
92
+ {titleSize(size)}
93
+ &nbsp;
94
+ <Body
95
+ text={unit}
96
+ />
97
+ </Flex>
98
+ <Caption text={text} />
99
+ </div>
100
+
101
+ </div>
102
+ )
103
+ }
104
+
105
+ export default IconStatValue
@@ -0,0 +1,64 @@
1
+ @import "../pb_title/title";
2
+ @import "../pb_caption/caption";
3
+ @import "../tokens/spacing";
4
+ @import "../pb_icon_circle/icon_circle";
5
+
6
+ [class^=pb_icon_stat_value_kit]{
7
+ display: flex;
8
+ align-items: baseline;
9
+
10
+ &[class*=_vertical] {
11
+ flex-direction: column;
12
+
13
+ &[class*=_center] {
14
+ align-items: center;
15
+
16
+ [class^=pb_title],
17
+ [class^=pb_body],
18
+ [class^=pb_caption] {
19
+ text-align: center;
20
+ }
21
+ }
22
+
23
+ &[class*=_right] {
24
+ align-items: flex-end;
25
+
26
+ [class^=pb_title],
27
+ [class^=pb_body],
28
+ [class^=pb_caption] {
29
+ text-align: right;
30
+ }
31
+ }
32
+
33
+ [class^=pb_icon_circle] {
34
+ margin-bottom: $space-xs;
35
+ }
36
+ }
37
+
38
+ &[class*=_horizontal] {
39
+ align-items: center;
40
+
41
+ &[class*=_center] {
42
+ justify-content: center;
43
+ }
44
+
45
+ &[class*=_right] {
46
+ justify-content: flex-end;
47
+ }
48
+
49
+ [class^=pb_icon_circle] {
50
+ margin-right: $space-sm;
51
+ }
52
+ }
53
+ [class^=pb_title_kit_1] + [class^=pb_body_kit] {
54
+ font-size: 36px;
55
+ }
56
+
57
+ [class^=pb_title_kit_2] + [class^=pb_body_kit] {
58
+ font-size: 24px
59
+ }
60
+
61
+ [class^=pb_title_kit_3] + [class^=pb_body_kit] {
62
+ font-size: 20px;
63
+ }
64
+ }
@@ -0,0 +1,49 @@
1
+
2
+ <%= pb_rails("icon_stat_value", props: { icon: "globe-europe",
3
+ text: "Mercury",
4
+ unit: "AU",
5
+ value: 0.39,
6
+ variant:"blue"
7
+ }) %>
8
+ <br>
9
+ <%= pb_rails("icon_stat_value", props: { icon: "planet-ringed",
10
+ text: "Venus",
11
+ unit: "AU",
12
+ value: 0.723,
13
+ variant:"royal"
14
+ }) %>
15
+ <br>
16
+ <%= pb_rails("icon_stat_value", props: { icon: "planet-moon",
17
+ text: "Earth",
18
+ unit: "AU",
19
+ value: 1.0,
20
+ variant:"purple"
21
+ }) %>
22
+ <br>
23
+ <%= pb_rails("icon_stat_value", props: { icon: "solar-system",
24
+ text: "Mars",
25
+ unit: "AU",
26
+ value: 1.524,
27
+ variant:"teal"
28
+ }) %>
29
+ <br>
30
+ <%= pb_rails("icon_stat_value", props: { icon: "globe-americas",
31
+ text: "Jupitar",
32
+ unit: "AU",
33
+ value: 5.203,
34
+ variant:"red"
35
+ }) %>
36
+ <br>
37
+ <%= pb_rails("icon_stat_value", props: { icon: "globe-africa",
38
+ text: "Saturn",
39
+ unit: "AU",
40
+ value: 9.539,
41
+ variant:"yellow"
42
+ }) %>
43
+ <br>
44
+ <%= pb_rails("icon_stat_value", props: { icon: "globe",
45
+ text: "Uranus",
46
+ unit: "AU",
47
+ value: 19.18,
48
+ variant:"green"
49
+ }) %>
@@ -0,0 +1,67 @@
1
+ import React from 'react'
2
+ import { IconStatValue } from '../../'
3
+
4
+ const IconStatValueColor = () => {
5
+ return (
6
+ <div>
7
+ <IconStatValue
8
+ icon="globe-europe"
9
+ text="Mercury"
10
+ unit="AU"
11
+ value={0.39}
12
+ variant="blue"
13
+ />
14
+ <br />
15
+ <IconStatValue
16
+ icon="planet-ringed"
17
+ text="Venus"
18
+ unit="AU"
19
+ value={0.723}
20
+ variant="royal"
21
+ />
22
+ <br />
23
+ <IconStatValue
24
+ icon="planet-moon"
25
+ text="Earth"
26
+ unit="AU"
27
+ value={1.0}
28
+ variant="purple"
29
+ />
30
+ <br />
31
+ <IconStatValue
32
+ icon="solar-system"
33
+ text="Mars"
34
+ unit="AU"
35
+ value={1.524}
36
+ variant="teal"
37
+ />
38
+ <br />
39
+ <IconStatValue
40
+ icon="globe-americas"
41
+ text="Jupitar"
42
+ unit="AU"
43
+ value={5.203}
44
+ variant="red"
45
+ />
46
+ <br />
47
+ <IconStatValue
48
+ icon="globe-africa"
49
+ text="Saturn"
50
+ unit="AU"
51
+ value={9.539}
52
+ variant="yellow"
53
+ />
54
+ <br />
55
+ <IconStatValue
56
+ icon="globe"
57
+ text="Uranus"
58
+ unit="AU"
59
+ value={19.18}
60
+ variant="green"
61
+ />
62
+ </div>
63
+
64
+ )
65
+ }
66
+
67
+ export default IconStatValueColor