playbook-ui 14.22.0-alpha.customheaderat8564 → 14.22.0-alpha.play2261highchartsbargraphimportedstyles8730

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.
@@ -1,26 +1,34 @@
1
1
  {
2
- "__typeahead-B7FRYVtS.js": {
3
- "file": "chunks/_typeahead-B7FRYVtS.js",
2
+ "__bar_graph-iq9-hk-x.js": {
3
+ "file": "chunks/_bar_graph-iq9-hk-x.js",
4
+ "name": "_bar_graph",
5
+ "imports": [
6
+ "__typeahead-DeLOYzLb.js",
7
+ "_lib-GtpYwIew.js"
8
+ ]
9
+ },
10
+ "__typeahead-DeLOYzLb.js": {
11
+ "file": "chunks/_typeahead-DeLOYzLb.js",
4
12
  "name": "_typeahead",
5
13
  "imports": [
6
- "_lib-Carqm8Ip.js"
14
+ "_lib-GtpYwIew.js"
7
15
  ]
8
16
  },
9
- "__weekday_stacked-CEJcIpjK.js": {
10
- "file": "chunks/_weekday_stacked-CEJcIpjK.js",
17
+ "__weekday_stacked-bjb7ElwG.js": {
18
+ "file": "chunks/_weekday_stacked-bjb7ElwG.js",
11
19
  "name": "_weekday_stacked",
12
20
  "imports": [
13
21
  "_lazysizes-B7xYodB-.js",
14
- "__typeahead-B7FRYVtS.js",
15
- "_lib-Carqm8Ip.js"
22
+ "__typeahead-DeLOYzLb.js",
23
+ "_lib-GtpYwIew.js"
16
24
  ]
17
25
  },
18
26
  "_lazysizes-B7xYodB-.js": {
19
27
  "file": "chunks/lazysizes-B7xYodB-.js",
20
28
  "name": "lazysizes"
21
29
  },
22
- "_lib-Carqm8Ip.js": {
23
- "file": "chunks/lib-Carqm8Ip.js",
30
+ "_lib-GtpYwIew.js": {
31
+ "file": "chunks/lib-GtpYwIew.js",
24
32
  "name": "lib",
25
33
  "css": [
26
34
  "lib.css"
@@ -30,11 +38,11 @@
30
38
  "file": "lib.css",
31
39
  "src": "_lib.css"
32
40
  },
33
- "_pb_form_validation-DqRmTS8m.js": {
34
- "file": "chunks/pb_form_validation-DqRmTS8m.js",
41
+ "_pb_form_validation-BCfG-8Zp.js": {
42
+ "file": "chunks/pb_form_validation-BCfG-8Zp.js",
35
43
  "name": "pb_form_validation",
36
44
  "imports": [
37
- "_lib-Carqm8Ip.js"
45
+ "_lib-GtpYwIew.js"
38
46
  ]
39
47
  },
40
48
  "entrypoints/playbook-doc.js": {
@@ -43,14 +51,11 @@
43
51
  "src": "entrypoints/playbook-doc.js",
44
52
  "isEntry": true,
45
53
  "imports": [
46
- "_pb_form_validation-DqRmTS8m.js",
47
- "__weekday_stacked-CEJcIpjK.js",
48
- "__typeahead-B7FRYVtS.js",
54
+ "_pb_form_validation-BCfG-8Zp.js",
55
+ "__weekday_stacked-bjb7ElwG.js",
56
+ "__typeahead-DeLOYzLb.js",
49
57
  "_lazysizes-B7xYodB-.js",
50
- "_lib-Carqm8Ip.js"
51
- ],
52
- "css": [
53
- "playbook-doc.css"
58
+ "_lib-GtpYwIew.js"
54
59
  ]
55
60
  },
56
61
  "entrypoints/playbook-rails-react-bindings.js": {
@@ -59,8 +64,9 @@
59
64
  "src": "entrypoints/playbook-rails-react-bindings.js",
60
65
  "isEntry": true,
61
66
  "imports": [
62
- "_lib-Carqm8Ip.js",
63
- "__typeahead-B7FRYVtS.js"
67
+ "_lib-GtpYwIew.js",
68
+ "__bar_graph-iq9-hk-x.js",
69
+ "__typeahead-DeLOYzLb.js"
64
70
  ]
65
71
  },
66
72
  "entrypoints/playbook-rails.js": {
@@ -69,11 +75,12 @@
69
75
  "src": "entrypoints/playbook-rails.js",
70
76
  "isEntry": true,
71
77
  "imports": [
72
- "_lib-Carqm8Ip.js",
73
- "__typeahead-B7FRYVtS.js",
74
- "_pb_form_validation-DqRmTS8m.js",
78
+ "_lib-GtpYwIew.js",
79
+ "__typeahead-DeLOYzLb.js",
80
+ "_pb_form_validation-BCfG-8Zp.js",
75
81
  "_lazysizes-B7xYodB-.js",
76
- "entrypoints/playbook-rails-react-bindings.js"
82
+ "entrypoints/playbook-rails-react-bindings.js",
83
+ "__bar_graph-iq9-hk-x.js"
77
84
  ]
78
85
  },
79
86
  "entrypoints/playbook.js": {
@@ -82,10 +89,11 @@
82
89
  "src": "entrypoints/playbook.js",
83
90
  "isEntry": true,
84
91
  "imports": [
85
- "__weekday_stacked-CEJcIpjK.js",
92
+ "__weekday_stacked-bjb7ElwG.js",
86
93
  "_lazysizes-B7xYodB-.js",
87
- "__typeahead-B7FRYVtS.js",
88
- "_lib-Carqm8Ip.js"
94
+ "__typeahead-DeLOYzLb.js",
95
+ "__bar_graph-iq9-hk-x.js",
96
+ "_lib-GtpYwIew.js"
89
97
  ]
90
98
  },
91
99
  "entrypoints/playbook.scss": {
@@ -0,0 +1 @@
1
+ import{jsx}from"react/jsx-runtime";import{useState,useEffect}from"react";import{b as buildAriaProps,a as buildDataProps,c as buildHtmlProps,m as mapColors,H as HighchartsReact,d as Highcharts,e as classnames,g as globalProps}from"./_typeahead-DeLOYzLb.js";import{h as highchartsTheme,m as merge,a as highchartsDarkTheme}from"./lib-GtpYwIew.js";const BarGraph=({aria:aria={},data:data={},align:align="center",axisTitle:axisTitle,dark:dark=false,chartData:chartData,className:className="pb_bar_graph",colors:colors,htmlOptions:htmlOptions={},customOptions:customOptions={},axisFormat:axisFormat,id:id,pointStart:pointStart,stacking:stacking,subTitle:subTitle,type:type="column",title:title="Title",xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,legend:legend=false,toggleLegendClick:toggleLegendClick=true,height:height,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:[{labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat&&axisFormat[0]?axisFormat[0].format:""},min:yAxisMin,max:yAxisMax,opposite:false,title:{text:Array.isArray(axisTitle)?axisTitle.length>0?axisTitle[0].name:null:axisTitle},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]}],xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},colors:colors!==void 0&&colors.length>0?mapColors(colors):highchartsTheme.colors,plotOptions:{series:{stacking:stacking,pointStart:pointStart,borderWidth:stacking?0:"",events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(Array.isArray(axisTitle)&&axisTitle.length>1&&axisTitle[1].name){staticOptions.yAxis.push({labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat[1].format},min:yAxisMin,max:yAxisMax,opposite:true,title:{text:axisTitle[1].name},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]})}if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})};export{BarGraph as B};