playbook-ui 16.9.0 → 16.10.0-alpha.PLAY3053advancedtablebottompinnedrowsreact17469

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.
Files changed (58) hide show
  1. package/dist/.vite/manifest.json +32 -32
  2. package/dist/ai/all-schemas.json +378 -87
  3. package/dist/ai/global-props.schema.json +98 -0
  4. package/dist/ai/index.json +3 -2
  5. package/dist/ai/kits/advanced_table.schema.json +0 -12
  6. package/dist/ai/kits/badge.schema.json +1 -1
  7. package/dist/ai/kits/button_toolbar.schema.json +1 -1
  8. package/dist/ai/kits/card.schema.json +2 -0
  9. package/dist/ai/kits/checkbox.schema.json +2 -2
  10. package/dist/ai/kits/circle_icon_button.schema.json +2 -2
  11. package/dist/ai/kits/date_picker.schema.json +9 -1
  12. package/dist/ai/kits/date_time.schema.json +1 -1
  13. package/dist/ai/kits/date_time_stacked.schema.json +1 -1
  14. package/dist/ai/kits/dropdown.schema.json +8 -0
  15. package/dist/ai/kits/file_upload.schema.json +3 -3
  16. package/dist/ai/kits/filter.schema.json +94 -29
  17. package/dist/ai/kits/fixed_confirmation_toast.schema.json +1 -1
  18. package/dist/ai/kits/form_pill.schema.json +1 -1
  19. package/dist/ai/kits/full_screen.schema.json +89 -0
  20. package/dist/ai/kits/icon.schema.json +3 -5
  21. package/dist/ai/kits/icon_button.schema.json +1 -1
  22. package/dist/ai/kits/loading_inline.schema.json +18 -2
  23. package/dist/ai/kits/passphrase.schema.json +13 -0
  24. package/dist/ai/kits/pb_bar_graph.schema.json +1 -1
  25. package/dist/ai/kits/pb_circle_chart.schema.json +1 -1
  26. package/dist/ai/kits/pb_gauge_chart.schema.json +1 -1
  27. package/dist/ai/kits/pb_line_graph.schema.json +1 -1
  28. package/dist/ai/kits/phone_number_input.schema.json +2 -2
  29. package/dist/ai/kits/radio.schema.json +1 -1
  30. package/dist/ai/kits/select.schema.json +2 -2
  31. package/dist/ai/kits/selectable_card.schema.json +2 -2
  32. package/dist/ai/kits/selectable_card_icon.schema.json +2 -2
  33. package/dist/ai/kits/selectable_icon.schema.json +1 -1
  34. package/dist/ai/kits/star_rating.schema.json +1 -1
  35. package/dist/ai/kits/stat_value.schema.json +1 -1
  36. package/dist/ai/kits/text_input.schema.json +3 -3
  37. package/dist/ai/kits/textarea.schema.json +1 -1
  38. package/dist/ai/kits/toggle.schema.json +2 -2
  39. package/dist/ai/kits/typeahead.schema.json +8 -2
  40. package/dist/charts.js +1 -1
  41. package/dist/chunks/{_pb_line_graph-B870s9g1.js → _pb_line_graph-C2H9vs_8.js} +1 -1
  42. package/dist/chunks/_typeahead-Du8dRYaM.js +5 -0
  43. package/dist/chunks/globalProps-DIAZ03-L.js +6 -0
  44. package/dist/chunks/lib-ZHDedNfP.js +29 -0
  45. package/dist/chunks/time_picker_helper-CVMV9ync.js +1 -0
  46. package/dist/chunks/vendor.js +5 -5
  47. package/dist/playbook-charts.js +1 -1
  48. package/dist/playbook-rails-charts-bindings.js +1 -1
  49. package/dist/playbook-rails-react-bindings.js +1 -1
  50. package/dist/playbook-rails.js +1 -1
  51. package/dist/playbook.css +1 -1
  52. package/dist/playbook.js +1 -1
  53. package/dist/tokens/colors.scss +5 -1
  54. package/package.json +1 -1
  55. package/dist/chunks/_typeahead-jMN-A0_C.js +0 -5
  56. package/dist/chunks/globalProps-BInmh-C7.js +0 -6
  57. package/dist/chunks/lib-CVYIIiwI.js +0 -29
  58. package/dist/chunks/time_picker_helper-Bx8nzyM8.js +0 -1
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "props": {
10
10
  "options": {
11
- "type": "Record<string, unknown>",
11
+ "type": "GenericObject",
12
12
  "platforms": [
13
13
  "react",
14
14
  "rails"
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "props": {
10
10
  "options": {
11
- "type": "Record<string, unknown>",
11
+ "type": "GenericObject",
12
12
  "platforms": [
13
13
  "react",
14
14
  "rails"
@@ -68,13 +68,13 @@
68
68
  "default": ""
69
69
  },
70
70
  "onChange": {
71
- "type": "ReactNode",
71
+ "type": "function",
72
72
  "platforms": [
73
73
  "react"
74
74
  ]
75
75
  },
76
76
  "onValidate": {
77
- "type": "Callback<boolean, void>",
77
+ "type": "function",
78
78
  "platforms": [
79
79
  "react"
80
80
  ]
@@ -93,7 +93,7 @@
93
93
  "platforms": [
94
94
  "rails"
95
95
  ],
96
- "type": "string"
96
+ "type": "GenericObject"
97
97
  }
98
98
  },
99
99
  "globalProps": true,
@@ -94,7 +94,7 @@
94
94
  ]
95
95
  },
96
96
  "onChange": {
97
- "type": "ReactNode",
97
+ "type": "function",
98
98
  "platforms": [
99
99
  "react"
100
100
  ]
@@ -140,7 +140,7 @@
140
140
  "platforms": [
141
141
  "rails"
142
142
  ],
143
- "type": "string"
143
+ "type": "GenericObject"
144
144
  },
145
145
  "onchange": {
146
146
  "platforms": [
@@ -74,7 +74,7 @@
74
74
  ]
75
75
  },
76
76
  "onChange": {
77
- "type": "ReactNode",
77
+ "type": "function",
78
78
  "platforms": [
79
79
  "react"
80
80
  ]
@@ -105,7 +105,7 @@
105
105
  "platforms": [
106
106
  "rails"
107
107
  ],
108
- "type": "string"
108
+ "type": "GenericObject"
109
109
  }
110
110
  },
111
111
  "globalProps": true,
@@ -96,7 +96,7 @@
96
96
  ]
97
97
  },
98
98
  "onChange": {
99
- "type": "ReactNode",
99
+ "type": "function",
100
100
  "platforms": [
101
101
  "react"
102
102
  ]
@@ -105,7 +105,7 @@
105
105
  "platforms": [
106
106
  "rails"
107
107
  ],
108
- "type": "string"
108
+ "type": "GenericObject"
109
109
  }
110
110
  },
111
111
  "globalProps": true,
@@ -92,7 +92,7 @@
92
92
  "platforms": [
93
93
  "rails"
94
94
  ],
95
- "type": "string"
95
+ "type": "GenericObject"
96
96
  }
97
97
  },
98
98
  "globalProps": true,
@@ -136,7 +136,7 @@
136
136
  "platforms": [
137
137
  "rails"
138
138
  ],
139
- "type": "string"
139
+ "type": "GenericObject"
140
140
  },
141
141
  "defaultValue": {
142
142
  "platforms": [
@@ -25,7 +25,7 @@
25
25
  "platforms": [
26
26
  "rails"
27
27
  ],
28
- "type": "string"
28
+ "type": "number"
29
29
  }
30
30
  },
31
31
  "globalProps": true,
@@ -73,7 +73,7 @@
73
73
  "default": null
74
74
  },
75
75
  "onChange": {
76
- "type": "ReactNode",
76
+ "type": "function",
77
77
  "platforms": [
78
78
  "react"
79
79
  ]
@@ -139,13 +139,13 @@
139
139
  "platforms": [
140
140
  "rails"
141
141
  ],
142
- "type": "string"
142
+ "type": "GenericObject"
143
143
  },
144
144
  "validation": {
145
145
  "platforms": [
146
146
  "rails"
147
147
  ],
148
- "type": "string"
148
+ "type": "GenericObject"
149
149
  }
150
150
  },
151
151
  "globalProps": true,
@@ -138,7 +138,7 @@
138
138
  "default": "none"
139
139
  },
140
140
  "onChange": {
141
- "type": "ReactNode",
141
+ "type": "function",
142
142
  "platforms": [
143
143
  "react"
144
144
  ]
@@ -31,7 +31,7 @@
31
31
  ]
32
32
  },
33
33
  "onChange": {
34
- "type": "ReactNode",
34
+ "type": "function",
35
35
  "platforms": [
36
36
  "react"
37
37
  ]
@@ -59,7 +59,7 @@
59
59
  "platforms": [
60
60
  "rails"
61
61
  ],
62
- "type": "string"
62
+ "type": "GenericObject"
63
63
  }
64
64
  },
65
65
  "globalProps": true,
@@ -127,7 +127,7 @@
127
127
  ]
128
128
  },
129
129
  "optionsByContext": {
130
- "type": "Record<string, Array<{label: string; value?: string}>>",
130
+ "type": "GenericObject",
131
131
  "platforms": [
132
132
  "react",
133
133
  "rails"
@@ -180,6 +180,12 @@
180
180
  ],
181
181
  "default": false
182
182
  },
183
+ "styles": {
184
+ "type": "TypeaheadStylesConfig",
185
+ "platforms": [
186
+ "react"
187
+ ]
188
+ },
183
189
  "defaultOptions": {
184
190
  "platforms": [
185
191
  "rails"
@@ -204,7 +210,7 @@
204
210
  "platforms": [
205
211
  "rails"
206
212
  ],
207
- "type": "string"
213
+ "type": "GenericObject"
208
214
  },
209
215
  "isMulti": {
210
216
  "platforms": [
package/dist/charts.js CHANGED
@@ -1 +1 @@
1
- import{P,a,b,c}from"./chunks/_pb_line_graph-B870s9g1.js";import"react/jsx-runtime";import"react";import"./chunks/globalProps-BInmh-C7.js";import"./chunks/lib-CVYIIiwI.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};
1
+ import{P,a,b,c}from"./chunks/_pb_line_graph-C2H9vs_8.js";import"react/jsx-runtime";import"react";import"./chunks/globalProps-DIAZ03-L.js";import"./chunks/lib-ZHDedNfP.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};
@@ -1 +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-BInmh-C7.js";import Highcharts from"highcharts";import HighchartsReact from"highcharts-react-official";import{t as typography,c as colors}from"./lib-CVYIIiwI.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};
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-DIAZ03-L.js";import Highcharts from"highcharts";import HighchartsReact from"highcharts-react-official";import{t as typography,c as colors}from"./lib-ZHDedNfP.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};