playbook-ui 15.8.0-rc.1 → 16.0.0-alpha.PLAY2668multipleuserstooltiprails13556
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.
- package/dist/.vite/manifest.json +60 -12
- package/dist/charts.js +1 -0
- package/dist/chunks/_pb_line_graph-hxi01lk7.js +1 -0
- package/dist/chunks/_typeahead-BgLnlhzP.js +1 -0
- package/dist/chunks/componentRegistry-DzmmLR2x.js +1 -0
- package/dist/chunks/globalProps-DgYwLYNx.js +6 -0
- package/dist/chunks/lib-NLxTo8OB.js +29 -0
- package/dist/chunks/vendor.js +4 -4
- package/dist/playbook-charts.js +1 -0
- package/dist/playbook-rails-charts-bindings.js +1 -0
- package/dist/playbook-rails-react-bindings.js +1 -1
- package/dist/playbook-rails.js +1 -1
- package/dist/playbook.css +1 -1
- package/dist/playbook.js +1 -1
- package/package.json +31 -3
- package/dist/chunks/_typeahead-D0GNUBXn.js +0 -6
- package/dist/chunks/lib-DxCgrqqG.js +0 -29
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,17 +1,37 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"file": "chunks/
|
|
2
|
+
"__pb_line_graph-hxi01lk7.js": {
|
|
3
|
+
"file": "chunks/_pb_line_graph-hxi01lk7.js",
|
|
4
|
+
"name": "_pb_line_graph",
|
|
5
|
+
"imports": [
|
|
6
|
+
"_globalProps-DgYwLYNx.js",
|
|
7
|
+
"_lib-NLxTo8OB.js"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"__typeahead-BgLnlhzP.js": {
|
|
11
|
+
"file": "chunks/_typeahead-BgLnlhzP.js",
|
|
4
12
|
"name": "_typeahead",
|
|
5
13
|
"imports": [
|
|
6
|
-
"
|
|
14
|
+
"_globalProps-DgYwLYNx.js",
|
|
15
|
+
"_lib-NLxTo8OB.js"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"_componentRegistry-DzmmLR2x.js": {
|
|
19
|
+
"file": "chunks/componentRegistry-DzmmLR2x.js",
|
|
20
|
+
"name": "componentRegistry"
|
|
21
|
+
},
|
|
22
|
+
"_globalProps-DgYwLYNx.js": {
|
|
23
|
+
"file": "chunks/globalProps-DgYwLYNx.js",
|
|
24
|
+
"name": "globalProps",
|
|
25
|
+
"imports": [
|
|
26
|
+
"_lib-NLxTo8OB.js"
|
|
7
27
|
]
|
|
8
28
|
},
|
|
9
29
|
"_lazysizes-B7xYodB-.js": {
|
|
10
30
|
"file": "chunks/lazysizes-B7xYodB-.js",
|
|
11
31
|
"name": "lazysizes"
|
|
12
32
|
},
|
|
13
|
-
"_lib-
|
|
14
|
-
"file": "chunks/lib-
|
|
33
|
+
"_lib-NLxTo8OB.js": {
|
|
34
|
+
"file": "chunks/lib-NLxTo8OB.js",
|
|
15
35
|
"name": "lib",
|
|
16
36
|
"css": [
|
|
17
37
|
"lib.css"
|
|
@@ -21,14 +41,39 @@
|
|
|
21
41
|
"file": "lib.css",
|
|
22
42
|
"src": "_lib.css"
|
|
23
43
|
},
|
|
44
|
+
"entrypoints/playbook-charts.js": {
|
|
45
|
+
"file": "playbook-charts.js",
|
|
46
|
+
"name": "entrypoints/playbook-charts.js",
|
|
47
|
+
"src": "entrypoints/playbook-charts.js",
|
|
48
|
+
"isEntry": true,
|
|
49
|
+
"imports": [
|
|
50
|
+
"__pb_line_graph-hxi01lk7.js",
|
|
51
|
+
"_globalProps-DgYwLYNx.js",
|
|
52
|
+
"_lib-NLxTo8OB.js"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"entrypoints/playbook-rails-charts-bindings.js": {
|
|
56
|
+
"file": "playbook-rails-charts-bindings.js",
|
|
57
|
+
"name": "entrypoints/playbook-rails-charts-bindings.js",
|
|
58
|
+
"src": "entrypoints/playbook-rails-charts-bindings.js",
|
|
59
|
+
"isEntry": true,
|
|
60
|
+
"imports": [
|
|
61
|
+
"_componentRegistry-DzmmLR2x.js",
|
|
62
|
+
"__pb_line_graph-hxi01lk7.js",
|
|
63
|
+
"_globalProps-DgYwLYNx.js",
|
|
64
|
+
"_lib-NLxTo8OB.js"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
24
67
|
"entrypoints/playbook-rails-react-bindings.js": {
|
|
25
68
|
"file": "playbook-rails-react-bindings.js",
|
|
26
69
|
"name": "entrypoints/playbook-rails-react-bindings.js",
|
|
27
70
|
"src": "entrypoints/playbook-rails-react-bindings.js",
|
|
28
71
|
"isEntry": true,
|
|
29
72
|
"imports": [
|
|
30
|
-
"
|
|
31
|
-
"
|
|
73
|
+
"_componentRegistry-DzmmLR2x.js",
|
|
74
|
+
"__typeahead-BgLnlhzP.js",
|
|
75
|
+
"_globalProps-DgYwLYNx.js",
|
|
76
|
+
"_lib-NLxTo8OB.js"
|
|
32
77
|
]
|
|
33
78
|
},
|
|
34
79
|
"entrypoints/playbook-rails.js": {
|
|
@@ -37,10 +82,12 @@
|
|
|
37
82
|
"src": "entrypoints/playbook-rails.js",
|
|
38
83
|
"isEntry": true,
|
|
39
84
|
"imports": [
|
|
40
|
-
"_lib-
|
|
41
|
-
"__typeahead-
|
|
85
|
+
"_lib-NLxTo8OB.js",
|
|
86
|
+
"__typeahead-BgLnlhzP.js",
|
|
42
87
|
"_lazysizes-B7xYodB-.js",
|
|
43
|
-
"entrypoints/playbook-rails-react-bindings.js"
|
|
88
|
+
"entrypoints/playbook-rails-react-bindings.js",
|
|
89
|
+
"_globalProps-DgYwLYNx.js",
|
|
90
|
+
"_componentRegistry-DzmmLR2x.js"
|
|
44
91
|
]
|
|
45
92
|
},
|
|
46
93
|
"entrypoints/playbook.js": {
|
|
@@ -51,8 +98,9 @@
|
|
|
51
98
|
"imports": [
|
|
52
99
|
"entrypoints/playbook.js",
|
|
53
100
|
"_lazysizes-B7xYodB-.js",
|
|
54
|
-
"__typeahead-
|
|
55
|
-
"_lib-
|
|
101
|
+
"__typeahead-BgLnlhzP.js",
|
|
102
|
+
"_lib-NLxTo8OB.js",
|
|
103
|
+
"_globalProps-DgYwLYNx.js"
|
|
56
104
|
]
|
|
57
105
|
},
|
|
58
106
|
"entrypoints/playbook.scss": {
|
package/dist/charts.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{P,a,b,c}from"./chunks/_pb_line_graph-hxi01lk7.js";import"react/jsx-runtime";import"react";import"./chunks/globalProps-DgYwLYNx.js";import"./chunks/lib-NLxTo8OB.js";import"highcharts";import"highcharts-react-official";import"highcharts/highcharts-more";import"highcharts/modules/solid-gauge";export{P as PbBarGraph,a as PbCircleChart,b as PbGaugeChart,c as PbLineGraph};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx}from"react/jsx-runtime";import{useMemo}from"react";import{b as buildAriaProps,a as buildDataProps,c as buildHtmlProps,d as classnames,e as buildCss,g as globalProps}from"./globalProps-DgYwLYNx.js";import Highcharts from"highcharts";import HighchartsReact from"highcharts-react-official";import{t as typography,c as colors}from"./lib-NLxTo8OB.js";import highchartsMore from"highcharts/highcharts-more";import solidGauge from"highcharts/modules/solid-gauge";const barGraphTheme={title:{text:"",style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},subtitle:{text:"",style:{fontFamily:typography.font_family_base,color:colors.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_base}},chart:{type:"column"},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors.bg_dark],[1,colors.bg_dark]]},style:{fontFamily:typography.font_family_base,color:colors.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},colors:[colors.data_1,colors.data_2,colors.data_3,colors.data_4,colors.data_5,colors.data_6,colors.data_7],credits:{enabled:false},legend:{enabled:false,itemStyle:{color:colors.text_lt_light,fill:colors.text_lt_light,fontSize:typography.text_smaller}},xAxis:{gridLineWidth:0,lineColor:colors.border_light,tickColor:colors.border_light,labels:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_4}}},yAxis:{alternateGridColor:void 0,minorTickInterval:null,gridLineColor:colors.border_light,minorGridLineColor:colors.border_light,lineWidth:0,tickWidth:0,labels:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}}}};const PbBarGraph=props=>{const{aria:aria={},data:data={},id:id,htmlOptions:htmlOptions={},options:options,className:className}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pb_bar_graph"),globalProps(props),className);const mergedOptions=useMemo((()=>{if(!options||typeof options!=="object"){console.error("❌ Invalid options passed to <PbBarGraph />",options);return{}}return Highcharts.merge({},barGraphTheme,options)}),[options]);return jsx("div",{children:jsx(HighchartsReact,{containerProps:{className:classnames(classes),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:mergedOptions})})};const pbCircleChartTheme={title:{text:"",style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},chart:{type:"pie"},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors.bg_dark],[1,colors.bg_dark]]},pointFormat:'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',followPointer:true,shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},plotOptions:{pie:{dataLabels:{enabled:false,connectorShape:"straight",connectorWidth:3,format:"<div>{point.name}</div>",style:{fontFamily:typography.font_family_base,fontSize:typography.text_smaller,color:colors.text_lt_light,fontWeight:typography.regular,textOutline:"2px $white"}},innerSize:"50%",borderColor:"",borderWidth:null,colors:[colors.data_1,colors.data_2,colors.data_3,colors.data_4,colors.data_5,colors.data_6,colors.data_7]}},legend:{layout:"horizontal",align:"center",verticalAlign:"bottom",itemStyle:{fontFamily:typography.font_family_base,color:colors.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_smaller},itemHoverStyle:{color:colors.text_lt_default},itemHiddenStyle:{color:colors.text_lt_lighter}},credits:{enabled:false}};const PbCircleChart=props=>{const{aria:aria={},className:className,data:data={},id:id,htmlOptions:htmlOptions={},options:options}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pb_circle_chart"),globalProps(props),className);const mergedOptions=useMemo((()=>{if(!options||typeof options!=="object"){console.error("❌ Invalid options passed to <PbCircleChart />",options);return{}}return Highcharts.merge({},pbCircleChartTheme,options)}),[options]);return jsx("div",{children:jsx(HighchartsReact,{containerProps:{className:classnames(classes),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:mergedOptions})})};const pbGaugeGraphTheme={title:{text:"",style:{fontFamily:typography.font_family_base,fontSize:typography.text_larger}},chart:{type:"solidgauge",events:{render(){this.container;const arc=this.container.querySelector("path.gauge-pane");if(arc)arc.setAttribute("stroke-linejoin","round")}}},pane:{size:"90%",startAngle:-100,endAngle:100,background:[{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane",borderColor:colors.border_light,borderRadius:"50%"}]},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors.bg_dark],[1,colors.bg_dark]]},pointFormat:'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',followPointer:true,shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},yAxis:{min:0,max:100,lineWidth:0,tickPositions:[]},plotOptions:{solidgauge:{borderColor:colors.data_1,borderWidth:20,color:colors.data_1,radius:90,innerRadius:"90%",y:-26,dataLabels:{borderWidth:0,color:colors.text_lt_default,enabled:true,format:'<span class="fix">{y:,f}</span>',style:{fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_2},y:-26}}},credits:{enabled:false}};const PbGaugeChart=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,ref:ref,options:options={}}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pb_gauge_chart"),globalProps(props),className);const mergedOptions=useMemo((()=>{if(!options||typeof options!=="object"){console.error("❌ Invalid options passed to <PbLineGraph />",options);return{}}return Highcharts.merge({},pbGaugeGraphTheme,options)}),[options]);highchartsMore(Highcharts);solidGauge(Highcharts);return jsx("div",{children:jsx(HighchartsReact,{containerProps:{className:classnames(classes),id:id,ref:ref,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:mergedOptions})})};const pbLineGraphTheme={title:{text:"",style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},subtitle:{text:"",style:{fontFamily:typography.font_family_base,color:colors.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_base}},chart:{type:"line"},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors.bg_dark],[1,colors.bg_dark]]},followPointer:true,shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},plotOptions:{line:{dataLabels:{enabled:false}}},credits:{enabled:false},legend:{enabled:false,itemStyle:{fontFamily:typography.font_family_base,color:colors.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_smaller},itemHoverStyle:{color:colors.text_lt_default},itemHiddenStyle:{color:colors.text_lt_lighter}},colors:[colors.data_1,colors.data_2,colors.data_3,colors.data_4,colors.data_5,colors.data_6,colors.data_7],xAxis:{gridLineWidth:0,lineColor:colors.border_light,tickColor:colors.border_light,labels:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_4}}},yAxis:{alternateGridColor:void 0,minorTickInterval:null,gridLineColor:colors.border_light,minorGridLineColor:colors.border_light,lineWidth:0,tickWidth:0,tickPixelInterval:50,labels:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}}}};const PbLineGraph=props=>{const{aria:aria={},className:className,data:data={},id:id,htmlOptions:htmlOptions={},options:options}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pb_line_graph"),globalProps(props),className);const mergedOptions=useMemo((()=>{if(!options||typeof options!=="object"){console.error("❌ Invalid options passed to <PbLineGraph />",options);return{}}return Highcharts.merge({},pbLineGraphTheme,options)}),[options]);return jsx("div",{children:jsx(HighchartsReact,{containerProps:{className:classnames(classes),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:mergedOptions})})};export{PbBarGraph as P,PbCircleChart as a,PbGaugeChart as b,PbLineGraph as c};
|