playbook_ui_docs 15.8.0.pre.rc.0 → 16.0.0
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.jsx +56 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.md +10 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.html.erb +64 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.md +10 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.jsx +71 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx +71 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.md +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +3 -1
- metadata +10 -113
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +0 -55
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +0 -42
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +0 -55
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +0 -69
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb +0 -58
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +0 -64
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb +0 -14
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +0 -40
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb +0 -15
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +0 -48
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb +0 -62
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +0 -136
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +0 -17
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb +0 -23
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +0 -52
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +0 -86
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +0 -3
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb +0 -20
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +0 -46
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb +0 -22
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +0 -55
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.md +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -28
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +0 -26
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +0 -88
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +0 -20
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +0 -44
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_rails.md +0 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb +0 -20
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +0 -43
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +0 -5
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb +0 -19
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +0 -38
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb +0 -136
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +0 -152
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb +0 -86
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +0 -142
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +0 -14
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +0 -63
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +0 -22
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +0 -45
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb +0 -37
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +0 -61
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb +0 -22
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +0 -41
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb +0 -38
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +0 -55
- data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +0 -26
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_gauge/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb +0 -12
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +0 -36
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md +0 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +0 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb +0 -32
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +0 -146
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb +0 -11
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +0 -30
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb +0 -12
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +0 -36
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb +0 -14
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +0 -49
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb +0 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +0 -62
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +0 -76
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb +0 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +0 -54
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb +0 -27
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +0 -80
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md +0 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb +0 -14
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +0 -38
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb +0 -29
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +0 -72
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -27
- data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb +0 -26
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +0 -56
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md +0 -2
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +0 -3
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb +0 -26
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +0 -52
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb +0 -26
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +0 -70
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +0 -3
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb +0 -15
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +0 -43
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb +0 -16
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +0 -49
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb +0 -62
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +0 -129
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +0 -14
- data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +0 -18
- data/app/pb_kits/playbook/pb_line_graph/docs/index.js +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6979e6789aa5d34bb598b9fb40404ff29658c2109f118497647503414d0aa57
|
|
4
|
+
data.tar.gz: fc1f6bfcfac4869de68fdee635d998bba02f6c75f75f05750e527957569cf755
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93046e97dbb1c968907098cb73656a55fc7d25e0d43c0f915e37959e57fe745b3cdd2635c4b3403f37ca57060bdf54018c5e1e7fe3babf1fd15caa9bcbdbabac
|
|
7
|
+
data.tar.gz: 7442bdffb6f159cc45fa7d64da4cd98df25b700fc88d470b243740e7dbc82e504d7c23ac401c475754b2794b0bd5fc2e7dd0309939397106a761158aefc3fd1c
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import Dropdown from "../_dropdown"
|
|
3
|
+
|
|
4
|
+
const DropdownQuickpickCustom = (props) => (
|
|
5
|
+
<div>
|
|
6
|
+
<Dropdown
|
|
7
|
+
customQuickPickDates={{
|
|
8
|
+
dates: [
|
|
9
|
+
// Allow Playbook to handle the logic...
|
|
10
|
+
{
|
|
11
|
+
label: "Last 15 months",
|
|
12
|
+
value: {
|
|
13
|
+
timePeriod: "months",
|
|
14
|
+
amount: 15,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
// Or, be explicit with an exact date range for more control...
|
|
18
|
+
{
|
|
19
|
+
label: "First Week of June 2022",
|
|
20
|
+
value: ["06/01/2022", "06/07/2022"],
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
}}
|
|
24
|
+
label="Date Range"
|
|
25
|
+
marginBottom="sm"
|
|
26
|
+
onSelect={(selectedItem) => console.log(selectedItem)}
|
|
27
|
+
variant="quickpick"
|
|
28
|
+
{...props}
|
|
29
|
+
/>
|
|
30
|
+
<Dropdown
|
|
31
|
+
customQuickPickDates={{
|
|
32
|
+
dates: [
|
|
33
|
+
{
|
|
34
|
+
label: "Last 15 months",
|
|
35
|
+
value: {
|
|
36
|
+
timePeriod: "months",
|
|
37
|
+
amount: 15,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: "First Week of June 2022",
|
|
42
|
+
value: ["06/01/2022", "06/07/2022"],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
override: false,
|
|
46
|
+
}}
|
|
47
|
+
label="Date Range - Append to Defaults"
|
|
48
|
+
onSelect={(selectedItem) => console.log(selectedItem)}
|
|
49
|
+
variant="quickpick"
|
|
50
|
+
{...props}
|
|
51
|
+
/>
|
|
52
|
+
</div>
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
export default DropdownQuickpickCustom
|
|
56
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
The `customQuickPickDates` prop allows for defining custom quick pick date options for the dropdown. The prop accepts an object with two properties: `dates` and `override`.
|
|
2
|
+
|
|
3
|
+
**The `dates` property** accepts an array of objects. Each object has `label` and `value` properties. The `label` is what will be displayed in the dropdown menu. The `value` property defines the date range that will be selected, and can be:
|
|
4
|
+
- An array of two date strings representing a specific range (e.g., `["06/01/2022", "06/07/2022"]`)
|
|
5
|
+
- An object with `timePeriod` and `amount` properties for dynamic date calculations:
|
|
6
|
+
- The `timePeriod` property accepts `"days"`, `"weeks"`, `"months"`, `"quarters"`, or `"years"`, representing past time periods calculated from today.
|
|
7
|
+
- The `amount` property accepts any number.
|
|
8
|
+
|
|
9
|
+
**The `override` property** is a boolean that controls whether custom dates replace or append to the default quick pick options. Default is `true` (replaces defaults). Set to `false` to append your custom dates to the default quick pick options.
|
|
10
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<%= pb_rails("dropdown", props: {
|
|
2
|
+
custom_quick_pick_dates: {
|
|
3
|
+
dates: [
|
|
4
|
+
# Allow Playbook to handle the logic...
|
|
5
|
+
{
|
|
6
|
+
label: "Last 15 months",
|
|
7
|
+
value: {
|
|
8
|
+
time_period: "months",
|
|
9
|
+
amount: 15
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
# Or, be explicit with an exact date range for more control...
|
|
13
|
+
{
|
|
14
|
+
label: "First Week of June 2022",
|
|
15
|
+
value: ["06/01/2022", "06/07/2022"]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
id: "date-range-quickpick-custom",
|
|
20
|
+
label: "Date Range",
|
|
21
|
+
margin_bottom: "sm",
|
|
22
|
+
variant: "quickpick"
|
|
23
|
+
}) %>
|
|
24
|
+
|
|
25
|
+
<%= pb_rails("dropdown", props: {
|
|
26
|
+
custom_quick_pick_dates: {
|
|
27
|
+
override: false,
|
|
28
|
+
dates: [
|
|
29
|
+
{
|
|
30
|
+
label: "Last 15 months",
|
|
31
|
+
value: {
|
|
32
|
+
time_period: "months",
|
|
33
|
+
amount: 15
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: "First Week of June 2022",
|
|
38
|
+
value: ["06/01/2022", "06/07/2022"]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
id: "date-range-quickpick-custom-append-to-defaults",
|
|
43
|
+
label: "Date Range - Append to Defaults",
|
|
44
|
+
variant: "quickpick"
|
|
45
|
+
}) %>
|
|
46
|
+
|
|
47
|
+
<script>
|
|
48
|
+
const dropdown1 = document.getElementById("date-range-quickpick-custom");
|
|
49
|
+
if (dropdown1) {
|
|
50
|
+
dropdown1.addEventListener("pb:dropdown:selected", (e) => {
|
|
51
|
+
const option = e.detail;
|
|
52
|
+
console.log("Selected option:", option);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const dropdown2 = document.getElementById("date-range-quickpick-custom-append-to-defaults");
|
|
57
|
+
if (dropdown2) {
|
|
58
|
+
dropdown2.addEventListener("pb:dropdown:selected", (e) => {
|
|
59
|
+
const option = e.detail;
|
|
60
|
+
console.log("Selected option:", option);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
</script>
|
|
64
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
The `custom_quick_pick_dates` prop allows for defining custom quick pick date options for the dropdown. The prop accepts an object with two properties: `dates` and `override`.
|
|
2
|
+
|
|
3
|
+
**The `dates` property** accepts an array of objects. Each object has `label` and `value` properties. The `label` is what will be displayed in the dropdown menu. The `value` property defines the date range that will be selected, and can be:
|
|
4
|
+
- An array of two date strings representing a specific range (e.g., `["06/01/2022", "06/07/2022"]`)
|
|
5
|
+
- An object with `time_period` and `amount` properties for dynamic date calculations:
|
|
6
|
+
- The `time_period` property accepts `"days"`, `"weeks"`, `"months"`, `"quarters"`, or `"years"`, representing past time periods calculated from today.
|
|
7
|
+
- The `amount` property accepts any number.
|
|
8
|
+
|
|
9
|
+
**The `override` property** is a boolean that controls whether custom dates replace or append to the default quick pick options. Default is `true` (replaces defaults). Set to `false` to append your custom dates to the default quick pick options.
|
|
10
|
+
|
|
@@ -25,6 +25,7 @@ examples:
|
|
|
25
25
|
- dropdown_quickpick_rails: Quick Pick Variant
|
|
26
26
|
- dropdown_quickpick_range_end_rails: Quick Pick Variant (Range Ends Today)
|
|
27
27
|
- dropdown_quickpick_default_dates: Quick Pick Variant (Default Dates)
|
|
28
|
+
- dropdown_quickpick_custom_rails: Quick Pick Variant (Custom Quick Pick Dates)
|
|
28
29
|
- dropdown_quickpick_with_date_pickers_rails: Quick Pick with Date Pickers
|
|
29
30
|
- dropdown_quickpick_with_date_pickers_default_rails: Quick Pick with Date Pickers (Default Value)
|
|
30
31
|
|
|
@@ -57,6 +58,7 @@ examples:
|
|
|
57
58
|
- dropdown_quickpick: Quick Pick Variant
|
|
58
59
|
- dropdown_quickpick_range_end: Quick Pick Variant (Range Ends Today)
|
|
59
60
|
- dropdown_quickpick_default_dates: Quick Pick Variant (Default Dates)
|
|
61
|
+
- dropdown_quickpick_custom: Quick Pick Variant (Custom Quick Pick Dates)
|
|
60
62
|
- dropdown_quickpick_with_date_pickers: Quick Pick Variant with Date Pickers
|
|
61
63
|
|
|
62
64
|
|
|
@@ -26,4 +26,5 @@ export {default as DropdownWithCustomActiveStyleOptions} from './_dropdown_with_
|
|
|
26
26
|
export { default as DropdownQuickpick } from './_dropdown_quickpick.jsx'
|
|
27
27
|
export { default as DropdownQuickpickRangeEnd } from './_dropdown_quickpick_range_end.jsx'
|
|
28
28
|
export { default as DropdownQuickpickDefaultDates } from './_dropdown_quickpick_default_dates.jsx'
|
|
29
|
-
export { default as DropdownQuickpickWithDatePickers } from './_dropdown_quickpick_with_date_pickers.jsx'
|
|
29
|
+
export { default as DropdownQuickpickWithDatePickers } from './_dropdown_quickpick_with_date_pickers.jsx'
|
|
30
|
+
export { default as DropdownQuickpickCustom } from './_dropdown_quickpick_custom.jsx'
|
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
|
|
4
4
|
|
|
5
|
-
See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
|
|
5
|
+
See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
|
|
6
|
+
|
|
7
|
+
**NOTE**: All chart kits are available through a separate entrypoint to keep Highcharts optional. Import them using:
|
|
8
|
+
```javascript
|
|
9
|
+
import { PbBarGraph } from 'playbook-ui/charts'
|
|
10
|
+
```
|
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
|
|
4
4
|
|
|
5
|
-
See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
|
|
5
|
+
See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
|
|
6
|
+
|
|
7
|
+
**NOTE**: All chart kits are available through a separate entrypoint to keep Highcharts optional. Import them using:
|
|
8
|
+
```javascript
|
|
9
|
+
import { PbCircleChart } from 'playbook-ui/charts'
|
|
10
|
+
```
|
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
|
|
4
4
|
|
|
5
|
-
See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
|
|
5
|
+
See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
|
|
6
|
+
|
|
7
|
+
**NOTE**: All chart kits are available through a separate entrypoint to keep Highcharts optional. Import them using:
|
|
8
|
+
```javascript
|
|
9
|
+
import { PbGaugeChart } from 'playbook-ui/charts'
|
|
10
|
+
```
|
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
|
|
4
4
|
|
|
5
|
-
See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
|
|
5
|
+
See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
|
|
6
|
+
|
|
7
|
+
**NOTE**: All chart kits are available through a separate entrypoint to keep Highcharts optional. Import them using:
|
|
8
|
+
```javascript
|
|
9
|
+
import { PbLineGraph } from 'playbook-ui/charts'
|
|
10
|
+
```
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import RichTextEditor from '../_rich_text_editor'
|
|
3
|
+
import { useEditor, EditorContent } from "@tiptap/react"
|
|
4
|
+
import StarterKit from "@tiptap/starter-kit"
|
|
5
|
+
import Link from '@tiptap/extension-link'
|
|
6
|
+
import { Caption } from "playbook-ui"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const RichTextEditorAdvancedHeight = (props) => {
|
|
10
|
+
|
|
11
|
+
const editor = useEditor({
|
|
12
|
+
extensions: [
|
|
13
|
+
StarterKit,
|
|
14
|
+
Link
|
|
15
|
+
],
|
|
16
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
const editor2 = useEditor({
|
|
20
|
+
extensions: [
|
|
21
|
+
StarterKit,
|
|
22
|
+
Link
|
|
23
|
+
],
|
|
24
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const editor3 = useEditor({
|
|
28
|
+
extensions: [
|
|
29
|
+
StarterKit,
|
|
30
|
+
Link
|
|
31
|
+
],
|
|
32
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div>
|
|
37
|
+
<Caption>sm</Caption>
|
|
38
|
+
<RichTextEditor
|
|
39
|
+
advancedEditor={editor}
|
|
40
|
+
inputHeight="sm"
|
|
41
|
+
{...props}
|
|
42
|
+
>
|
|
43
|
+
<EditorContent editor={editor} />
|
|
44
|
+
</RichTextEditor>
|
|
45
|
+
|
|
46
|
+
<br />
|
|
47
|
+
|
|
48
|
+
<Caption>md</Caption>
|
|
49
|
+
<RichTextEditor
|
|
50
|
+
advancedEditor={editor2}
|
|
51
|
+
inputHeight="md"
|
|
52
|
+
{...props}
|
|
53
|
+
>
|
|
54
|
+
<EditorContent editor={editor2} />
|
|
55
|
+
</RichTextEditor>
|
|
56
|
+
|
|
57
|
+
<br />
|
|
58
|
+
|
|
59
|
+
<Caption>lg</Caption>
|
|
60
|
+
<RichTextEditor
|
|
61
|
+
advancedEditor={editor3}
|
|
62
|
+
inputHeight="lg"
|
|
63
|
+
{...props}
|
|
64
|
+
>
|
|
65
|
+
<EditorContent editor={editor3} />
|
|
66
|
+
</RichTextEditor>
|
|
67
|
+
</div>
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default RichTextEditorAdvancedHeight
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use the `inputHeight` prop to keep the text area a specific height. If the text exceeds the text area, it will automatically add a scrollbar to maintain the fixed height.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import RichTextEditor from '../_rich_text_editor'
|
|
3
|
+
import { useEditor, EditorContent } from "@tiptap/react"
|
|
4
|
+
import StarterKit from "@tiptap/starter-kit"
|
|
5
|
+
import Link from '@tiptap/extension-link'
|
|
6
|
+
import { Caption } from "playbook-ui"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const RichTextEditorAdvancedMinHeight = (props) => {
|
|
10
|
+
|
|
11
|
+
const editor1 = useEditor({
|
|
12
|
+
extensions: [
|
|
13
|
+
StarterKit,
|
|
14
|
+
Link
|
|
15
|
+
],
|
|
16
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
const editor2 = useEditor({
|
|
20
|
+
extensions: [
|
|
21
|
+
StarterKit,
|
|
22
|
+
Link
|
|
23
|
+
],
|
|
24
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const editor3 = useEditor({
|
|
28
|
+
extensions: [
|
|
29
|
+
StarterKit,
|
|
30
|
+
Link
|
|
31
|
+
],
|
|
32
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div>
|
|
37
|
+
<Caption>sm</Caption>
|
|
38
|
+
<RichTextEditor
|
|
39
|
+
advancedEditor={editor1}
|
|
40
|
+
inputMinHeight="sm"
|
|
41
|
+
{...props}
|
|
42
|
+
>
|
|
43
|
+
<EditorContent editor={editor1} />
|
|
44
|
+
</RichTextEditor>
|
|
45
|
+
|
|
46
|
+
<br />
|
|
47
|
+
|
|
48
|
+
<Caption>md</Caption>
|
|
49
|
+
<RichTextEditor
|
|
50
|
+
advancedEditor={editor2}
|
|
51
|
+
inputMinHeight="md"
|
|
52
|
+
{...props}
|
|
53
|
+
>
|
|
54
|
+
<EditorContent editor={editor2} />
|
|
55
|
+
</RichTextEditor>
|
|
56
|
+
|
|
57
|
+
<br />
|
|
58
|
+
|
|
59
|
+
<Caption>lg</Caption>
|
|
60
|
+
<RichTextEditor
|
|
61
|
+
advancedEditor={editor3}
|
|
62
|
+
inputMinHeight="lg"
|
|
63
|
+
{...props}
|
|
64
|
+
>
|
|
65
|
+
<EditorContent editor={editor3} />
|
|
66
|
+
</RichTextEditor>
|
|
67
|
+
</div>
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default RichTextEditorAdvancedMinHeight
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use the inputMinHeight prop to render the text area with a minimum height. If the text exceeds the text area, the text area will grow to accommodate it.
|
|
@@ -29,5 +29,7 @@ examples:
|
|
|
29
29
|
# - rich_text_editor_toolbar_bottom: Toolbar Bottom
|
|
30
30
|
- rich_text_editor_inline: Inline
|
|
31
31
|
- rich_text_editor_advanced_inline: Advanced (Inline)
|
|
32
|
+
- rich_text_editor_advanced_height: Advanced Height
|
|
33
|
+
- rich_text_editor_advanced_min_height: Advanced Min Height
|
|
32
34
|
- rich_text_editor_preview: Preview
|
|
33
35
|
- rich_text_editor_advanced_preview: Advanced Preview
|
|
@@ -16,4 +16,6 @@ export { default as RichTextEditorAdvancedFocus } from './_rich_text_editor_adva
|
|
|
16
16
|
export { default as RichTextEditorAdvancedTemplates } from './_rich_text_editor_advanced_templates.jsx'
|
|
17
17
|
export { default as RichTextEditorAdvancedAttributes } from './_rich_text_editor_advanced_attributes.jsx'
|
|
18
18
|
export { default as RichTextEditorAdvancedSticky } from './_rich_text_editor_advanced_sticky.jsx'
|
|
19
|
-
export { default as RichTextEditorAdvancedInline } from './_rich_text_editor_advanced_inline.jsx'
|
|
19
|
+
export { default as RichTextEditorAdvancedInline } from './_rich_text_editor_advanced_inline.jsx'
|
|
20
|
+
export { default as RichTextEditorAdvancedHeight } from './_rich_text_editor_advanced_height.jsx'
|
|
21
|
+
export { default as RichTextEditorAdvancedMinHeight } from './_rich_text_editor_advanced_min_height.jsx'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: playbook_ui_docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 16.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Power UX
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-01-
|
|
12
|
+
date: 2026-01-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: playbook_ui
|
|
@@ -259,39 +259,6 @@ files:
|
|
|
259
259
|
- app/pb_kits/playbook/pb_badge/docs/_description.md
|
|
260
260
|
- app/pb_kits/playbook/pb_badge/docs/example.yml
|
|
261
261
|
- app/pb_kits/playbook/pb_badge/docs/index.js
|
|
262
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb
|
|
263
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx
|
|
264
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md
|
|
265
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
|
|
266
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md
|
|
267
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb
|
|
268
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
|
|
269
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb
|
|
270
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
|
|
271
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md
|
|
272
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb
|
|
273
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx
|
|
274
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb
|
|
275
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx
|
|
276
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb
|
|
277
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx
|
|
278
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb
|
|
279
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx
|
|
280
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md
|
|
281
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb
|
|
282
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx
|
|
283
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb
|
|
284
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx
|
|
285
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md
|
|
286
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb
|
|
287
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx
|
|
288
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md
|
|
289
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb
|
|
290
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx
|
|
291
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.md
|
|
292
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_description.md
|
|
293
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/example.yml
|
|
294
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/index.js
|
|
295
262
|
- app/pb_kits/playbook/pb_body/docs/_body_articles.html.erb
|
|
296
263
|
- app/pb_kits/playbook/pb_body/docs/_body_articles.jsx
|
|
297
264
|
- app/pb_kits/playbook/pb_body/docs/_body_articles.md
|
|
@@ -451,34 +418,6 @@ files:
|
|
|
451
418
|
- app/pb_kits/playbook/pb_checkbox/docs/_description.md
|
|
452
419
|
- app/pb_kits/playbook/pb_checkbox/docs/example.yml
|
|
453
420
|
- app/pb_kits/playbook/pb_checkbox/docs/index.js
|
|
454
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb
|
|
455
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx
|
|
456
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb
|
|
457
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx
|
|
458
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_rails.md
|
|
459
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md
|
|
460
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb
|
|
461
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx
|
|
462
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md
|
|
463
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb
|
|
464
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx
|
|
465
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb
|
|
466
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx
|
|
467
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb
|
|
468
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
|
|
469
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md
|
|
470
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
|
|
471
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb
|
|
472
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx
|
|
473
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb
|
|
474
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx
|
|
475
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb
|
|
476
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx
|
|
477
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb
|
|
478
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx
|
|
479
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_description.md
|
|
480
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/example.yml
|
|
481
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/index.js
|
|
482
421
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx
|
|
483
422
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.html.erb
|
|
484
423
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx
|
|
@@ -924,6 +863,10 @@ files:
|
|
|
924
863
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.jsx
|
|
925
864
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.jsx
|
|
926
865
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.md
|
|
866
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.jsx
|
|
867
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.md
|
|
868
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.html.erb
|
|
869
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.md
|
|
927
870
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.html.erb
|
|
928
871
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.jsx
|
|
929
872
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.md
|
|
@@ -1168,37 +1111,6 @@ files:
|
|
|
1168
1111
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.md
|
|
1169
1112
|
- app/pb_kits/playbook/pb_form_pill/docs/example.yml
|
|
1170
1113
|
- app/pb_kits/playbook/pb_form_pill/docs/index.js
|
|
1171
|
-
- app/pb_kits/playbook/pb_gauge/docs/_description.md
|
|
1172
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb
|
|
1173
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx
|
|
1174
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md
|
|
1175
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md
|
|
1176
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb
|
|
1177
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx
|
|
1178
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md
|
|
1179
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md
|
|
1180
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb
|
|
1181
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx
|
|
1182
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb
|
|
1183
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx
|
|
1184
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb
|
|
1185
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx
|
|
1186
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb
|
|
1187
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx
|
|
1188
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx
|
|
1189
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb
|
|
1190
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx
|
|
1191
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md
|
|
1192
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb
|
|
1193
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx
|
|
1194
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md
|
|
1195
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb
|
|
1196
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx
|
|
1197
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb
|
|
1198
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx
|
|
1199
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md
|
|
1200
|
-
- app/pb_kits/playbook/pb_gauge/docs/example.yml
|
|
1201
|
-
- app/pb_kits/playbook/pb_gauge/docs/index.js
|
|
1202
1114
|
- app/pb_kits/playbook/pb_hashtag/docs/_description.md
|
|
1203
1115
|
- app/pb_kits/playbook/pb_hashtag/docs/_footer.md
|
|
1204
1116
|
- app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.html.erb
|
|
@@ -1406,25 +1318,6 @@ files:
|
|
|
1406
1318
|
- app/pb_kits/playbook/pb_lightbox/docs/_lightbox_multiple.md
|
|
1407
1319
|
- app/pb_kits/playbook/pb_lightbox/docs/example.yml
|
|
1408
1320
|
- app/pb_kits/playbook/pb_lightbox/docs/index.js
|
|
1409
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_description.md
|
|
1410
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb
|
|
1411
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
|
|
1412
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md
|
|
1413
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md
|
|
1414
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb
|
|
1415
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx
|
|
1416
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb
|
|
1417
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
|
|
1418
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md
|
|
1419
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb
|
|
1420
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx
|
|
1421
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb
|
|
1422
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx
|
|
1423
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb
|
|
1424
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx
|
|
1425
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md
|
|
1426
|
-
- app/pb_kits/playbook/pb_line_graph/docs/example.yml
|
|
1427
|
-
- app/pb_kits/playbook/pb_line_graph/docs/index.js
|
|
1428
1321
|
- app/pb_kits/playbook/pb_link/docs/_link_color.html.erb
|
|
1429
1322
|
- app/pb_kits/playbook/pb_link/docs/_link_color.jsx
|
|
1430
1323
|
- app/pb_kits/playbook/pb_link/docs/_link_disabled.html.erb
|
|
@@ -2003,8 +1896,12 @@ files:
|
|
|
2003
1896
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.md
|
|
2004
1897
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx
|
|
2005
1898
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md
|
|
1899
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.jsx
|
|
1900
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md
|
|
2006
1901
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx
|
|
2007
1902
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md
|
|
1903
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx
|
|
1904
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.md
|
|
2008
1905
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx
|
|
2009
1906
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx
|
|
2010
1907
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<% data = [{
|
|
2
|
-
name: 'Installation',
|
|
3
|
-
data: [1475,200,3000,654,656]
|
|
4
|
-
}, {
|
|
5
|
-
name: 'Manufacturing',
|
|
6
|
-
data: [4434,524,2320,440,500]
|
|
7
|
-
}, {
|
|
8
|
-
name: 'Sales & Distribution',
|
|
9
|
-
data: [3387,743,1344,434,440,]
|
|
10
|
-
}, {
|
|
11
|
-
name: 'Project Development',
|
|
12
|
-
data: [3227,878,999,780,1000]
|
|
13
|
-
}, {
|
|
14
|
-
name: 'Other',
|
|
15
|
-
data: [1111,677,3245,500,200]
|
|
16
|
-
}] %>
|
|
17
|
-
|
|
18
|
-
<%= pb_rails("bar_graph", props: {
|
|
19
|
-
axis_title: 'Number of Employees',
|
|
20
|
-
chart_data: data,
|
|
21
|
-
id: "bar-colors",
|
|
22
|
-
y_axis_min: 0,
|
|
23
|
-
x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
|
|
24
|
-
title: 'Bar Graph with Custom Data Colors',
|
|
25
|
-
colors: ['data-4', 'data-5', 'data-6', 'data-7', 'data-8']
|
|
26
|
-
}) %>
|