playbook_ui 6.0.1.pre.alpha6 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -2
  3. data/app/pb_kits/playbook/data/menu.yml +2 -3
  4. data/app/pb_kits/playbook/index.js +0 -1
  5. data/app/pb_kits/playbook/packs/examples.js +0 -2
  6. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +2 -2
  7. data/app/pb_kits/playbook/pb_badge/_badge.jsx +5 -2
  8. data/app/pb_kits/playbook/pb_badge/_badge.scss +1 -1
  9. data/app/pb_kits/playbook/pb_badge/badge.rb +6 -1
  10. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +2 -2
  11. data/app/pb_kits/playbook/pb_body/_body.jsx +6 -3
  12. data/app/pb_kits/playbook/pb_body/_body.scss +0 -6
  13. data/app/pb_kits/playbook/pb_body/body.rb +8 -2
  14. data/app/pb_kits/playbook/pb_button/_button.jsx +5 -2
  15. data/app/pb_kits/playbook/pb_button/_button.scss +1 -1
  16. data/app/pb_kits/playbook/pb_button/button.rb +7 -1
  17. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +0 -2
  18. data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
  19. data/app/pb_kits/playbook/pb_card/_card.jsx +14 -17
  20. data/app/pb_kits/playbook/pb_card/_card.scss +1 -4
  21. data/app/pb_kits/playbook/pb_card/card.rb +9 -2
  22. data/app/pb_kits/playbook/pb_card/docs/_card_dark.html.erb +1 -1
  23. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +2 -2
  24. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +8 -4
  25. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +2 -2
  26. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +2 -0
  27. data/app/pb_kits/playbook/pb_contact/_contact.jsx +2 -2
  28. data/app/pb_kits/playbook/pb_currency/_currency.jsx +2 -2
  29. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.js +0 -26
  30. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +2 -2
  31. data/app/pb_kits/playbook/pb_date/_date.jsx +4 -4
  32. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +2 -2
  33. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +2 -2
  34. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
  35. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +2 -2
  36. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +2 -2
  37. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +2 -2
  38. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +2 -2
  39. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx +2 -2
  40. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +2 -6
  41. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +2 -2
  42. data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
  43. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +2 -2
  44. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -1
  45. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +0 -1
  46. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +1 -3
  47. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +1 -3
  48. data/app/pb_kits/playbook/pb_form/form_builder.rb +0 -2
  49. data/app/pb_kits/playbook/pb_form/form_builder/form_field_builder.rb +0 -1
  50. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +2 -2
  51. data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +2 -2
  52. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +2 -2
  53. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
  54. data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
  55. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.jsx +2 -2
  56. data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +2 -2
  57. data/app/pb_kits/playbook/pb_image/_image.jsx +2 -2
  58. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +2 -2
  59. data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +2 -2
  60. data/app/pb_kits/playbook/pb_layout/_layout.jsx +6 -6
  61. data/app/pb_kits/playbook/pb_legend/_legend.jsx +2 -2
  62. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +2 -2
  63. data/app/pb_kits/playbook/pb_list/_list.jsx +2 -2
  64. data/app/pb_kits/playbook/pb_list/_list_item.jsx +2 -2
  65. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +2 -2
  66. data/app/pb_kits/playbook/pb_message/_message.jsx +2 -2
  67. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +2 -2
  68. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +2 -2
  69. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -2
  70. data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +2 -2
  71. data/app/pb_kits/playbook/pb_person/_person.jsx +2 -2
  72. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +2 -2
  73. data/app/pb_kits/playbook/pb_pill/_pill.jsx +2 -2
  74. data/app/pb_kits/playbook/pb_popover/_popover.jsx +2 -2
  75. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +2 -2
  76. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +2 -2
  77. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +2 -2
  78. data/app/pb_kits/playbook/pb_radio/_radio.jsx +2 -2
  79. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +2 -2
  80. data/app/pb_kits/playbook/pb_select/_select.jsx +2 -2
  81. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +2 -2
  82. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
  83. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +2 -2
  84. data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
  85. data/app/pb_kits/playbook/pb_table/_table_row.jsx +2 -2
  86. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +2 -2
  87. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +2 -2
  88. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +2 -2
  89. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +2 -2
  90. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +2 -2
  91. data/app/pb_kits/playbook/pb_title/_title.jsx +2 -2
  92. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +2 -2
  93. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +2 -2
  94. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +2 -2
  95. data/app/pb_kits/playbook/pb_user/_user.jsx +2 -2
  96. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -2
  97. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +2 -2
  98. data/app/pb_kits/playbook/plugins/pb_chart.js +0 -74
  99. data/app/pb_kits/playbook/props.rb +0 -6
  100. data/app/pb_kits/playbook/utilities/props.js +0 -1
  101. data/app/pb_kits/playbook/utilities/{globalProps.js → spacing.js} +1 -14
  102. data/lib/generators/kit/templates/kit_jsx.erb.tt +2 -2
  103. data/lib/playbook/version.rb +1 -1
  104. metadata +6 -34
  105. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +0 -26
  106. data/app/pb_kits/playbook/pb_gauge/_gauge.html.erb +0 -12
  107. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +0 -110
  108. data/app/pb_kits/playbook/pb_gauge/_gauge.scss +0 -11
  109. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb +0 -11
  110. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +0 -17
  111. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb +0 -12
  112. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +0 -18
  113. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb +0 -14
  114. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +0 -20
  115. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb +0 -15
  116. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +0 -23
  117. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +0 -40
  118. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb +0 -15
  119. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +0 -21
  120. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md +0 -1
  121. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb +0 -26
  122. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +0 -37
  123. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md +0 -1
  124. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb +0 -14
  125. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +0 -20
  126. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb +0 -29
  127. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +0 -29
  128. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -24
  129. data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -9
  130. data/app/pb_kits/playbook/pb_gauge/gauge.rb +0 -57
  131. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +0 -111
@@ -1,110 +0,0 @@
1
- /* @flow */
2
-
3
- import React, { useEffect, useRef } from 'react'
4
- import { pbChart } from '../'
5
- import { globalProps } from '../utilities/globalProps'
6
- import classnames from 'classnames'
7
- import Highcharts from 'highcharts'
8
-
9
- import {
10
- buildAriaProps,
11
- buildCss,
12
- buildDataProps,
13
- } from '../utilities/props'
14
-
15
- type GaugeProps = {
16
- aria: Object,
17
- className?: String,
18
- chartData?: Array,
19
- data?: Object,
20
- disableAnimation: Boolean,
21
- fullCircle: Boolean,
22
- height: String,
23
- id?: String,
24
- max: Number,
25
- min: Number,
26
- prefix: String,
27
- showLabels: Boolean,
28
- style: String,
29
- suffix: String,
30
- title: String,
31
- tooltipHtml: String,
32
- }
33
-
34
- const Gauge = (props: GaugeProps) => {
35
- const {
36
- aria = {},
37
- className,
38
- chartData = [{ name: 'Name', value: 0 }],
39
- data = {},
40
- disableAnimation = false,
41
- fullCircle = false,
42
- height = null,
43
- id,
44
- max = 100,
45
- min = 0,
46
- prefix = '',
47
- showLabels = false,
48
- style = 'solidgauge',
49
- suffix = '',
50
- title = '',
51
- tooltipHtml = '<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: ' + '<b>{point.y}</b>',
52
- } = props
53
-
54
- const ariaProps = buildAriaProps(aria)
55
- const dataProps = buildDataProps(data)
56
-
57
- const css = buildCss({
58
- 'pb_gauge_kit': true,
59
- })
60
- // Runs first time component Renders
61
- useEffect(() => {
62
- const formattedChartData = chartData.map((obj) => {
63
- obj.y = obj.value
64
- delete obj.value
65
- return obj
66
- })
67
-
68
- new pbChart('.selector', {
69
- id: id,
70
- chartData: formattedChartData,
71
- circumference: fullCircle ? [0, 360] : [-100, 100],
72
- disableAnimation: disableAnimation,
73
- height: height,
74
- min: min,
75
- max: max,
76
- prefix: prefix,
77
- title: title,
78
- suffix: suffix,
79
- showLabels: showLabels,
80
- style: style,
81
- tooltipHtml: tooltipHtml,
82
- type: 'gauge',
83
- })
84
- }, [])
85
-
86
- const componentDidMount = useRef(false)
87
- // Doesn't run the first time but runs every subsequent render
88
- useEffect(() => {
89
- if (componentDidMount.current) {
90
- Highcharts.charts.forEach((chart) => {
91
- if (chart.renderTo.id === id) {
92
- chart.series[0].setData([chartData[0].value])
93
- chart.series[0].data[0].name = chartData[0].name
94
- }
95
- })
96
- } else {
97
- componentDidMount.current = true
98
- }
99
- }, [chartData])
100
- return (
101
- <div
102
- {...ariaProps}
103
- {...dataProps}
104
- className={classnames(css, className, globalProps(props))}
105
- id={id}
106
- />
107
- )
108
- }
109
-
110
- export default Gauge
@@ -1,11 +0,0 @@
1
- [class^=pb_gauge_kit] {
2
-
3
- .suffix {
4
- fill: $text_lt_light;
5
- font: $regular $font_larger $font_family_base;
6
- }
7
- .prefix {
8
- fill: $text_lt_light;
9
- font: $regular $font_base $font_family_base;
10
- }
11
- }
@@ -1,11 +0,0 @@
1
- <% data = [
2
- {
3
- name: 'Name',
4
- value: 45,
5
- }
6
- ]%>
7
-
8
- <%= pb_rails("gauge", props: {
9
- id: "gauge-default",
10
- chart_data: data,
11
- }) %>
@@ -1,17 +0,0 @@
1
- import React from 'react'
2
- import { Gauge } from '../../'
3
-
4
- const data = [
5
- { name: 'Name', value: 45 },
6
- ]
7
-
8
- const GaugeDefault = () => (
9
- <div>
10
- <Gauge
11
- chartData={data}
12
- id="gauge-default"
13
- />
14
- </div>
15
- )
16
-
17
- export default GaugeDefault
@@ -1,12 +0,0 @@
1
- <% data = [
2
- {
3
- name: 'Participants',
4
- value: 84,
5
- }
6
- ]%>
7
-
8
- <%= pb_rails("gauge", props: {
9
- id: "gauge-disable-animation",
10
- chart_data: data,
11
- disable_animation: true,
12
- }) %>
@@ -1,18 +0,0 @@
1
- import React from 'react'
2
- import { Gauge } from '../../'
3
-
4
- const data = [
5
- { name: 'Participants', value: 84 },
6
- ]
7
-
8
- const GaugeDisableAnimation = () => (
9
- <div>
10
- <Gauge
11
- chartData={data}
12
- disableAnimation
13
- id="gauge-disable-animation"
14
- />
15
- </div>
16
- )
17
-
18
- export default GaugeDisableAnimation
@@ -1,14 +0,0 @@
1
- <% data = [
2
- {
3
- name: 'Capacity',
4
- value: 75,
5
- }
6
- ]%>
7
-
8
- <%= pb_rails("gauge", props: {
9
- id: "full-circle",
10
- chart_data: data,
11
- full_circle: true,
12
- title: "Seating Capacity",
13
- suffix: "%"
14
- }) %>
@@ -1,20 +0,0 @@
1
- import React from 'react'
2
- import { Gauge } from '../../'
3
-
4
- const data = [
5
- { name: 'Capacity', value: 75 },
6
- ]
7
-
8
- const GaugeFullCircle = () => (
9
- <div>
10
- <Gauge
11
- chartData={data}
12
- fullCircle
13
- id="gauge-full-circle"
14
- suffix="%"
15
- title="Seating Capacity"
16
- />
17
- </div>
18
- )
19
-
20
- export default GaugeFullCircle
@@ -1,15 +0,0 @@
1
- <%= pb_rails("gauge", props: {
2
- id: "gauge-height-px",
3
- chart_data: [{ name: "Pixels", value: 400 }],
4
- height: '400',
5
- title: "Fixed Height in Pixels",
6
- suffix: "px"
7
- }) %>
8
-
9
- <%= pb_rails("gauge", props: {
10
- id: "gauge-height-percent",
11
- chart_data: [{ name: "Percentage", value: 45 }],
12
- height: '45%',
13
- title: "Height as Percentage of Width",
14
- suffix: "%"
15
- }) %>
@@ -1,23 +0,0 @@
1
- import React from 'react'
2
- import { Gauge } from '../../'
3
-
4
- const GaugeHeight = () => (
5
- <div>
6
- <Gauge
7
- chartData={[ { name: 'Pixels', value: 400 } ]}
8
- height="400"
9
- id="gauge-height-px"
10
- suffix="px"
11
- title="Fixed Height in Pixels"
12
- />
13
- <Gauge
14
- chartData={[ { name: 'Percentage', value: 45 } ]}
15
- height="45%"
16
- id="gauge-height-percent"
17
- suffix="%"
18
- title="Height as Percentage of Width"
19
- />
20
- </div>
21
- )
22
-
23
- export default GaugeHeight
@@ -1,40 +0,0 @@
1
- import React, { useState } from 'react'
2
- import { Button, Gauge } from '../../'
3
-
4
- const GaugeLiveData = () => {
5
- const [value, setValue] = useState(50)
6
- const [name, setName] = useState('Name')
7
-
8
- const updateValue = () => {
9
- setValue(Math.floor(Math.random() * 100))
10
- }
11
- const updateName = () => {
12
- let index = namesArray.indexOf(name)
13
- if (namesArray.indexOf(name) == 5) {
14
- index = 0
15
- } else {
16
- index += 1
17
- }
18
- setName(namesArray[index])
19
- }
20
- const namesArray = ['Name', 'Windows', 'Doors', 'Roofing', 'Siding', 'Gutters']
21
-
22
- return (
23
- <div>
24
- <Button
25
- onClick={updateValue}
26
- text="Update Value"
27
- />
28
- <Button
29
- onClick={updateName}
30
- text="Update Name"
31
- />
32
- <Gauge
33
- chartData={[{ name: name, value: value }]}
34
- id="gauge-live-data"
35
- />
36
- </div>
37
- )
38
- }
39
-
40
- export default GaugeLiveData
@@ -1,15 +0,0 @@
1
- <% data = [
2
- {
3
- name: 'Rating',
4
- value: 4.5,
5
- }
6
- ]%>
7
-
8
- <%= pb_rails("gauge", props: {
9
- id: "gauge-min-max",
10
- chart_data: data,
11
- min: 0,
12
- max: 5,
13
- show_labels: true,
14
- title: "Product Rating"
15
- }) %>
@@ -1,21 +0,0 @@
1
- import React from 'react'
2
- import { Gauge } from '../../'
3
-
4
- const data = [{
5
- name: 'Rating', value: 4.5,
6
- }]
7
-
8
- const GaugeMinMax = () => (
9
- <div>
10
- <Gauge
11
- chartData={data}
12
- id="gauge-min-max"
13
- max={5}
14
- min={0}
15
- showLabels
16
- title="Product Rating"
17
- />
18
- </div>
19
- )
20
-
21
- export default GaugeMinMax
@@ -1 +0,0 @@
1
- ### Min defaults to 0, Max to 100.
@@ -1,26 +0,0 @@
1
- <%= pb_rails("flex", props: {wrap: true}) do %>
2
- <%= pb_rails("flex/flex_item", props: {fixed_size: "400px"}) do %>
3
- <%= pb_rails("gauge", props: {
4
- id: "gauge-sizing4",
5
- chart_data: [{ name: "Point 1", value: 100 }],
6
- }) %>
7
- <% end %>
8
- <%= pb_rails("flex/flex_item", props: {fixed_size: "300px"}) do %>
9
- <%= pb_rails("gauge", props: {
10
- id: "gauge-sizing3",
11
- chart_data: [{ name: "Point 2", value: 75 }],
12
- }) %>
13
- <% end %>
14
- <%= pb_rails("flex/flex_item", props: {fixed_size: "200px"}) do %>
15
- <%= pb_rails("gauge", props: {
16
- id: "gauge-sizing2",
17
- chart_data: [{ name: "Point 3", value: 50 }],
18
- }) %>
19
- <% end %>
20
- <%= pb_rails("flex/flex_item", props: {fixed_size: "125px"}) do %>
21
- <%= pb_rails("gauge", props: {
22
- id: "gauge-sizing1",
23
- chart_data: [{ name: "Point 4", value: 25 }],
24
- }) %>
25
- <% end %>
26
- <% end %>
@@ -1,37 +0,0 @@
1
- import React from 'react'
2
- import { Flex, FlexItem, Gauge } from '../../'
3
-
4
- const GaugeSizing = () => (
5
- <div>
6
- <Flex
7
- wrap
8
- >
9
- <FlexItem fixedSize="400px">
10
- <Gauge
11
- chartData={[ { name: 'Point 1', value: 100 } ]}
12
- id="gauge-sizing4"
13
- />
14
- </FlexItem>
15
- <FlexItem fixedSize="300px">
16
- <Gauge
17
- chartData={[ { name: 'Point 2', value: 75 } ]}
18
- id="gauge-sizing3"
19
- />
20
- </FlexItem>
21
- <FlexItem fixedSize="200px">
22
- <Gauge
23
- chartData={[ { name: 'Point 3', value: 50 } ]}
24
- id="gauge-sizing2"
25
- />
26
- </FlexItem>
27
- <FlexItem fixedSize="125px">
28
- <Gauge
29
- chartData={[ { name: 'Point 4', value: 25 } ]}
30
- id="gauge-sizing1"
31
- />
32
- </FlexItem>
33
- </Flex>
34
- </div>
35
- )
36
-
37
- export default GaugeSizing
@@ -1 +0,0 @@
1
- ### Gauge resizes dynamically to fit whatever element it's placed within.
@@ -1,14 +0,0 @@
1
- <% data = [
2
- {
3
- name: 'Score',
4
- value: 780,
5
- }
6
- ]%>
7
-
8
- <%= pb_rails("gauge", props: {
9
- id: "gauge-title",
10
- chart_data: data,
11
- min: 300,
12
- max: 850,
13
- title: "Credit Score",
14
- }) %>
@@ -1,20 +0,0 @@
1
- import React from 'react'
2
- import { Gauge } from '../../'
3
-
4
- const data = [
5
- { name: 'Score', value: 780 },
6
- ]
7
-
8
- const GaugeTitle = () => (
9
- <div>
10
- <Gauge
11
- chartData={data}
12
- id="gauge-title"
13
- max={850}
14
- min={300}
15
- title="Credit Score"
16
- />
17
- </div>
18
- )
19
-
20
- export default GaugeTitle