playbook_ui_docs 14.18.0.pre.alpha.play1736highchartslinegraphdefaultrebuild7444 → 14.18.0.pre.alpha.play2034zonesandcolors7407

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.
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: 14.18.0.pre.alpha.play1736highchartslinegraphdefaultrebuild7444
4
+ version: 14.18.0.pre.alpha.play2034zonesandcolors7407
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: 2025-04-29 00:00:00.000000000 Z
12
+ date: 2025-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -595,10 +595,6 @@ files:
595
595
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_react.md
596
596
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb
597
597
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx
598
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.jsx
599
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.md
600
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.html.erb
601
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.md
602
598
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.html.erb
603
599
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.jsx
604
600
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.md
@@ -1251,8 +1247,6 @@ files:
1251
1247
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb
1252
1248
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx
1253
1249
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md
1254
- - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx
1255
- - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md
1256
1250
  - app/pb_kits/playbook/pb_line_graph/docs/example.yml
1257
1251
  - app/pb_kits/playbook/pb_line_graph/docs/index.js
1258
1252
  - app/pb_kits/playbook/pb_link/docs/_link_color.html.erb
@@ -1,34 +0,0 @@
1
- import React from "react";
2
- import DatePicker from "../_date_picker";
3
-
4
- const DatePickerRangePattern = (props) => {
5
- return (
6
- <>
7
- <DatePicker
8
- controlsEndId="end-date-picker"
9
- controlsStartId="start-date-picker"
10
- mode="range"
11
- pickerId="quickpick-for-range"
12
- placeholder="Select a Range"
13
- selectionType="quickpick"
14
- {...props}
15
- />
16
-
17
- <DatePicker
18
- pickerId="start-date-picker"
19
- placeholder="Select a Start Date"
20
- syncStartWith="quickpick-for-range"
21
- {...props}
22
- />
23
-
24
- <DatePicker
25
- pickerId="end-date-picker"
26
- placeholder="Select a End Date"
27
- syncEndWith="quickpick-for-range"
28
- {...props}
29
- />
30
- </>
31
- );
32
- };
33
-
34
- export default DatePickerRangePattern;
@@ -1,14 +0,0 @@
1
- You can link a Quickpick DatePicker to standard DatePickers using the following props:
2
-
3
- **For the Quickpick DatePicker**:
4
- `controlsStartId`: ID of the DatePicker that should receive the start date.
5
-
6
- `controlsEndId`: ID of the DatePicker that should receive the end date.
7
-
8
- When a quickpick option like “This Year” is selected, it automatically populates the linked start and end inputs.
9
-
10
- **For the Start/End DatePickers**:
11
- `syncStartWith`: ID of the quickpick this start date is synced to.
12
- `syncEndWith`: ID of the quickpick this end date is synced to.
13
-
14
- When a user manually edits the start or end date, it clears the selected quickpick to prevent conflicting values.
@@ -1,20 +0,0 @@
1
- <%= pb_rails("date_picker", props: {
2
- mode: "range",
3
- picker_id: "quick-pick-date-range",
4
- placeholder: "Select a Date Range",
5
- selection_type: "quickpick",
6
- controls_end_id: "quick-pick-date-range-end",
7
- controls_start_id: "quick-pick-date-range-start",
8
- }) %>
9
-
10
- <%= pb_rails("date_picker", props: {
11
- picker_id: "quick-pick-date-range-start",
12
- placeholder: "Select a Start Date",
13
- sync_start_with:"quick-pick-date-range",
14
- }) %>
15
-
16
- <%= pb_rails("date_picker", props: {
17
- picker_id: "quick-pick-date-range-end",
18
- placeholder: "Select an End Date",
19
- sync_end_with:"quick-pick-date-range",
20
- }) %>
@@ -1,14 +0,0 @@
1
- You can link a Quickpick DatePicker to standard DatePickers using the following props:
2
-
3
- **For the Quickpick DatePicker**:
4
- `controls_start_id`: ID of the DatePicker that should receive the start date.
5
-
6
- `controls_end_id`: ID of the DatePicker that should receive the end date.
7
-
8
- When a quickpick option like “This Year” is selected, it automatically populates the linked start and end inputs.
9
-
10
- **For the Start/End DatePickers**:
11
- `sync_start_with`: ID of the quickpick this start date is synced to.
12
- `sync_end_with`: ID of the quickpick this end date is synced to.
13
-
14
- When a user manually edits the start or end date, it clears the selected quickpick to prevent conflicting values.
@@ -1,52 +0,0 @@
1
- import React from 'react'
2
- import lineGraphTheme from '../lineGraphTheme'
3
- import Highcharts from "highcharts"
4
- import HighchartsReact from "highcharts-react-official"
5
-
6
- const data = [{
7
- name: 'Installation',
8
- data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
9
- }, {
10
- name: 'Manufacturing',
11
- data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434],
12
- }, {
13
- name: 'Sales & Distribution',
14
- data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387],
15
- }, {
16
- name: 'Project Development',
17
- data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227],
18
- }, {
19
- name: 'Other',
20
- data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111],
21
- }]
22
-
23
- const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
24
-
25
- const baseOptions = {
26
- series: data,
27
- title: { text: "Solar Employment Growth by Sector, 2010-2016" },
28
- subtitle: { text: "Source: thesolarfoundation.com" },
29
- xAxis: {
30
- categories: categories,
31
- },
32
- yAxis: {
33
- title: {
34
- text: "Number of Employees",
35
- },
36
- },
37
- }
38
-
39
- const LineGraphPbStyles = () => {
40
- const options = Highcharts.merge({}, lineGraphTheme, baseOptions)
41
-
42
- return(
43
- <div>
44
- <HighchartsReact
45
- highcharts={Highcharts}
46
- options={options}
47
- />
48
- </div>
49
- )
50
- }
51
-
52
- export default LineGraphPbStyles
@@ -1 +0,0 @@
1
- You don't need to use the Line Graph Kit to apply Playbook styles to your Highcharts line graph. Just import lineGraphTheme.ts and merge it with your graph options—Playbook’s styling will apply automatically.