playbook_ui 14.25.0.pre.alpha.PLAY2423circleiconbuttonaria9795 → 14.25.0.pre.alpha.testingcss9700

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +0 -2
  3. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +0 -1
  4. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +0 -19
  5. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +0 -1
  6. data/app/pb_kits/playbook/pb_flex/_flex.tsx +6 -9
  7. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb +1 -12
  8. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx +1 -26
  9. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.md +9 -0
  10. data/app/pb_kits/playbook/pb_flex/flex.rb +12 -6
  11. data/app/pb_kits/playbook/pb_icon/_icon.scss +0 -4
  12. data/app/pb_kits/playbook/pb_text_input/text_input.rb +0 -15
  13. data/app/pb_kits/playbook/utilities/_gap.scss +24 -12
  14. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +0 -2
  15. data/app/pb_kits/playbook/utilities/globalProps.ts +4 -28
  16. data/dist/chunks/_line_graph-DPTwfQR-.js +544 -0
  17. data/dist/chunks/_typeahead-CEqlHw0H.js +30978 -0
  18. data/dist/chunks/_weekday_stacked-D3dG14OB.js +20894 -0
  19. data/dist/chunks/lazysizes-BUUj27EF.js +611 -0
  20. data/dist/chunks/lib-CIetbXpr.js +9609 -0
  21. data/dist/chunks/pb_form_validation-D_g9rOE9.js +60 -0
  22. data/dist/chunks/vendor.js +11 -1
  23. data/dist/playbook-doc.js +67243 -3
  24. data/dist/playbook-rails-react-bindings.js +112 -1
  25. data/dist/playbook-rails.js +2464 -1
  26. data/dist/playbook.css +92354 -2
  27. data/dist/reset.css +89 -1
  28. data/lib/playbook/classnames.rb +0 -2
  29. data/lib/playbook/spacing.rb +1 -53
  30. data/lib/playbook/version.rb +1 -1
  31. metadata +9 -10
  32. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_rails.md +0 -11
  33. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_react.md +0 -11
  34. data/dist/chunks/_line_graph-Db1_xmFW.js +0 -1
  35. data/dist/chunks/_typeahead-B2TOA1GJ.js +0 -6
  36. data/dist/chunks/_weekday_stacked-BMEnbTOP.js +0 -37
  37. data/dist/chunks/lazysizes-B7xYodB-.js +0 -1
  38. data/dist/chunks/lib-CY5ZPzic.js +0 -29
  39. data/dist/chunks/pb_form_validation-D3b0JKHH.js +0 -1
data/dist/reset.css CHANGED
@@ -1 +1,89 @@
1
- *{box-sizing:border-box;margin:0;padding:0}*:before,*:after{box-sizing:border-box}html{-webkit-tap-highlight-color:rgba(0,0,0,0);height:100vh;overflow-x:hidden}body{font-family:Power Centra,Helvetica Neue,Helvetica,Arial,sans_serif;font-size:15.5px;line-height:1.5;background-color:#f3f7fb;height:100%;letter-spacing:.003em;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-moz-font-feature-settings:"liga" on;color:#242b42;margin:0!important;padding:0!important;box-sizing:border-box;min-height:100vh;padding:50px}a{text-decoration:none;color:#0056cf}
1
+ /*=====================================
2
+ Base colors should not be documented.
3
+ Only document color use.
4
+
5
+ Colors -----------------------------*/
6
+ /* Specialty Gradient -----------------*/
7
+ /* Interface colors -------------------*/
8
+ /* Main colors ------------------------*/
9
+ /*=====================================
10
+
11
+ Background colors ------------------*/
12
+ /* Card colors ------------------*/
13
+ /* Active colors ----------------------*/
14
+ /* Hover colors -----------------------*/
15
+ /* Focus colors -----------------------*/
16
+ /* Border colors ----------------------*/
17
+ /* Shadow colors ----------------------*/
18
+ /* Text colors ------------------------*/
19
+ /* Data colors ------------------------*/
20
+ /* Status colors ----------------------*/
21
+ /* Link colors ------------------------*/
22
+ /* Product colors ---------------------*/
23
+ /* Category colors ---------------------*/
24
+ /* CLEAN UP AND REMOVE */
25
+ /* Headings */
26
+ /* Standard Font Weights */
27
+ /* Non_Standard Font Weights */
28
+ /* Link Colors */
29
+ /*=====================================
30
+ Base colors should not be documented.
31
+ Only document color use.
32
+
33
+ Colors -----------------------------*/
34
+ /* Specialty Gradient -----------------*/
35
+ /* Interface colors -------------------*/
36
+ /* Main colors ------------------------*/
37
+ /*=====================================
38
+
39
+ Background colors ------------------*/
40
+ /* Card colors ------------------*/
41
+ /* Active colors ----------------------*/
42
+ /* Hover colors -----------------------*/
43
+ /* Focus colors -----------------------*/
44
+ /* Border colors ----------------------*/
45
+ /* Shadow colors ----------------------*/
46
+ /* Text colors ------------------------*/
47
+ /* Data colors ------------------------*/
48
+ /* Status colors ----------------------*/
49
+ /* Link colors ------------------------*/
50
+ /* Product colors ---------------------*/
51
+ /* Category colors ---------------------*/
52
+ * {
53
+ box-sizing: border-box;
54
+ margin: 0;
55
+ padding: 0;
56
+ }
57
+ *:before, *:after {
58
+ box-sizing: border-box;
59
+ }
60
+
61
+ html {
62
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
63
+ height: 100vh;
64
+ overflow-x: hidden;
65
+ }
66
+
67
+ body {
68
+ font-family: "Power Centra", "Helvetica Neue", Helvetica, Arial, sans_serif;
69
+ font-size: 15.5px;
70
+ line-height: 1.5;
71
+ background-color: #F3F7FB;
72
+ height: 100%;
73
+ letter-spacing: 0.003em;
74
+ font-weight: 400;
75
+ font-style: normal;
76
+ text-rendering: optimizeLegibility;
77
+ -moz-font-feature-settings: "liga" on;
78
+ color: #242B42;
79
+ margin: 0 !important;
80
+ padding: 0 !important;
81
+ box-sizing: border-box;
82
+ min-height: 100vh;
83
+ padding: 50px;
84
+ }
85
+
86
+ a {
87
+ text-decoration: none;
88
+ color: #0056CF;
89
+ }
@@ -17,8 +17,6 @@ module Playbook
17
17
  min_width_props,
18
18
  max_width_props,
19
19
  gap_props,
20
- column_gap_props,
21
- row_gap_props,
22
20
  z_index_props,
23
21
  number_spacing_props,
24
22
  shadow_props,
@@ -4,8 +4,6 @@ module Playbook
4
4
  module Spacing
5
5
  def self.included(base)
6
6
  base.prop :gap
7
- base.prop :column_gap
8
- base.prop :row_gap
9
7
  base.prop :margin
10
8
  base.prop :margin_bottom
11
9
  base.prop :margin_left
@@ -65,18 +63,6 @@ module Playbook
65
63
  }
66
64
  end
67
65
 
68
- def column_gap_options
69
- {
70
- column_gap: "column_gap",
71
- }
72
- end
73
-
74
- def row_gap_options
75
- {
76
- row_gap: "row_gap",
77
- }
78
- end
79
-
80
66
  def spacing_options
81
67
  {
82
68
  margin: "m",
@@ -178,45 +164,7 @@ module Playbook
178
164
 
179
165
  selected_gap_props.map do |k|
180
166
  gap_value = send(k)
181
- if gap_value.is_a?(Hash)
182
- gap_value.map do |media_size, gap_spacing_value|
183
- "gap_#{media_size}_#{gap_spacing_value.underscore}" if gap_values.include?(gap_spacing_value.to_s)
184
- end
185
- elsif gap_values.include?(gap_value.to_s)
186
- "gap_#{gap_value.underscore}"
187
- end
188
- end.compact.join(" ")
189
- end
190
-
191
- def column_gap_props
192
- selected_column_gap_props = column_gap_options.keys.select { |sk| try(sk) }
193
- return nil unless selected_column_gap_props.present?
194
-
195
- selected_column_gap_props.map do |k|
196
- column_gap_value = send(k)
197
- if column_gap_value.is_a?(Hash)
198
- column_gap_value.map do |media_size, column_gap_spacing_value|
199
- "column_gap_#{media_size}_#{column_gap_spacing_value.underscore}" if gap_values.include?(column_gap_spacing_value.to_s)
200
- end
201
- elsif gap_values.include?(column_gap_value.to_s)
202
- "column_gap_#{column_gap_value.underscore}"
203
- end
204
- end.compact.join(" ")
205
- end
206
-
207
- def row_gap_props
208
- selected_row_gap_props = row_gap_options.keys.select { |sk| try(sk) }
209
- return nil unless selected_row_gap_props.present?
210
-
211
- selected_row_gap_props.map do |k|
212
- row_gap_value = send(k)
213
- if row_gap_value.is_a?(Hash)
214
- row_gap_value.map do |media_size, row_gap_spacing_value|
215
- "row_gap_#{media_size}_#{row_gap_spacing_value.underscore}" if gap_values.include?(row_gap_spacing_value.to_s)
216
- end
217
- elsif gap_values.include?(row_gap_value.to_s)
218
- "row_gap_#{row_gap_value.underscore}"
219
- end
167
+ "gap_#{gap_value}" if gap_values.include? gap_value
220
168
  end.compact.join(" ")
221
169
  end
222
170
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.25.0"
5
- VERSION = "14.25.0.pre.alpha.PLAY2423circleiconbuttonaria9795"
5
+ VERSION = "14.25.0.pre.alpha.testingcss9700"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.25.0.pre.alpha.PLAY2423circleiconbuttonaria9795
4
+ version: 14.25.0.pre.alpha.testingcss9700
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-08-21 00:00:00.000000000 Z
12
+ date: 2025-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1605,8 +1605,7 @@ files:
1605
1605
  - app/pb_kits/playbook/pb_flex/docs/_flex_default.md
1606
1606
  - app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb
1607
1607
  - app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
1608
- - app/pb_kits/playbook/pb_flex/docs/_flex_gap_rails.md
1609
- - app/pb_kits/playbook/pb_flex/docs/_flex_gap_react.md
1608
+ - app/pb_kits/playbook/pb_flex/docs/_flex_gap.md
1610
1609
  - app/pb_kits/playbook/pb_flex/docs/_flex_inline.html.erb
1611
1610
  - app/pb_kits/playbook/pb_flex/docs/_flex_inline.jsx
1612
1611
  - app/pb_kits/playbook/pb_flex/docs/_flex_inline.md
@@ -3648,12 +3647,12 @@ files:
3648
3647
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3649
3648
  - app/pb_kits/playbook/utilities/text.ts
3650
3649
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3651
- - dist/chunks/_line_graph-Db1_xmFW.js
3652
- - dist/chunks/_typeahead-B2TOA1GJ.js
3653
- - dist/chunks/_weekday_stacked-BMEnbTOP.js
3654
- - dist/chunks/lazysizes-B7xYodB-.js
3655
- - dist/chunks/lib-CY5ZPzic.js
3656
- - dist/chunks/pb_form_validation-D3b0JKHH.js
3650
+ - dist/chunks/_line_graph-DPTwfQR-.js
3651
+ - dist/chunks/_typeahead-CEqlHw0H.js
3652
+ - dist/chunks/_weekday_stacked-D3dG14OB.js
3653
+ - dist/chunks/lazysizes-BUUj27EF.js
3654
+ - dist/chunks/lib-CIetbXpr.js
3655
+ - dist/chunks/pb_form_validation-D_g9rOE9.js
3657
3656
  - dist/chunks/vendor.js
3658
3657
  - dist/menu.yml
3659
3658
  - dist/playbook-doc.js
@@ -1,11 +0,0 @@
1
- ##### Prop
2
-
3
- `gap` | `row_gap` | `column_gap` | **Type**: String | Hash | **Values**: xxs | xs | sm | md | lg | xl | none
4
-
5
- Setting the gap prop sets the `row_gap` and the `column_gap` props to the same size and creates equal space within a flex container.
6
-
7
- Setting the `row_gap` prop creates space between rows in a flex container.
8
-
9
- Setting the `column_gap` prop creates space between columns in a flex container.
10
-
11
- You can also set responsive values by passing a hash with device sizes and values.
@@ -1,11 +0,0 @@
1
- ##### Prop
2
-
3
- `gap` | `rowGap` | `columnGap` | **Type**: String | Object | **Values**: xxs | xs | sm | md | lg | xl | none
4
-
5
- Setting the gap prop sets the `rowGap` and the `columnGap` props to the same size and creates equal space within a flex container.
6
-
7
- Setting the `rowGap` prop creates space between rows in a flex container.
8
-
9
- Setting the `columnGap` prop creates space between columns in a flex container.
10
-
11
- You can also set responsive values by passing an object with device sizes and values.
@@ -1 +0,0 @@
1
- import{jsx,Fragment,jsxs}from"react/jsx-runtime";import{useState,useEffect}from"react";import{b as buildAriaProps,c as buildDataProps,d as buildHtmlProps,H as HighchartsReact,e as Highcharts,f as classnames,g as globalProps,h as HighchartsMore,S as SolidGauge,i as buildCss}from"./_typeahead-B2TOA1GJ.js";import{c as colors,h as highchartsTheme,m as merge,a as highchartsDarkTheme,t as typography}from"./lib-CY5ZPzic.js";const mapColors=array=>{const regex=/(data)\-[1-8]/;const newArray=array.map((item=>regex.test(item)?`${colors[`data_${item[item.length-1]}`]}`:item));return newArray};const BarGraph=({aria:aria={},data:data={},align:align="center",axisTitle:axisTitle,dark:dark=false,chartData:chartData,className:className="pb_bar_graph",colors:colors2,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:colors2!==void 0&&colors2.length>0?mapColors(colors2):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})};const alignBlockElement=event=>{const itemToMove=document.querySelector(`#wrapper-circle-chart-${event.target.renderTo.id} .pb-circle-chart-block`);const chartContainer=document.querySelector(`#${event.target.renderTo.id}`);if(itemToMove!==null&&chartContainer!==null){itemToMove.style.height=`${event.target.chartHeight}px`;itemToMove.style.width=`${event.target.chartWidth}px`;if(chartContainer.firstChild!==null){chartContainer.firstChild.before(itemToMove)}}};const CircleChart=({align:align="center",aria:aria={},rounded:rounded=false,borderColor:borderColor=(rounded?null:""),borderWidth:borderWidth=(rounded?20:null),chartData:chartData,children:children,className:className,colors:colors2=[],customOptions:customOptions={},dark:dark=false,data:data={},dataLabelHtml:dataLabelHtml="<div>{point.name}</div>",dataLabels:dataLabels=false,height:height,htmlOptions:htmlOptions={},id:id,innerSize:innerSize="md",legend:legend=false,maxPointSize:maxPointSize=null,minPointSize:minPointSize=null,startAngle:startAngle=null,style:style="pie",title:title,tooltipHtml:tooltipHtml,useHtml:useHtml=false,zMin:zMin=null,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);HighchartsMore(Highcharts);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();Highcharts.setOptions({tooltip:{headerFormat:null,pointFormat:tooltipHtml?tooltipHtml:'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',useHTML:useHtml}});const innerSizes={sm:"35%",md:"50%",lg:"85%",none:"0%"};const innerSizeFormat=size=>innerSizes[size];const filteredProps={...props};delete filteredProps.verticalAlign;const[options,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={title:{text:title},chart:{height:height,type:style,events:{render:event=>alignBlockElement(event),redraw:event=>alignBlockElement(event)}},legend:{align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},plotOptions:{pie:{colors:colors2.length>0?mapColors(colors2):highchartsTheme.colors,dataLabels:{enabled:dataLabels,connectorShape:"straight",connectorWidth:3,format:dataLabelHtml},showInLegend:legend}},series:[{minPointSize:minPointSize,maxPointSize:maxPointSize,innerSize:borderWidth==20?"100%":innerSizeFormat(innerSize),data:formattedChartData,zMin:zMin,startAngle:startAngle,borderWidth:borderWidth,borderColor:borderColor}],credits:false};setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx(Fragment,{children:children?jsxs("div",{id:`wrapper-circle-chart-${id}`,children:[jsx(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options}),jsx("div",{className:"pb-circle-chart-block",children:children})]}):jsx(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})})};const Gauge=({aria:aria={},chartData:chartData,customOptions:customOptions={},dark:dark=false,data:data={},disableAnimation:disableAnimation=false,fullCircle:fullCircle=false,height:height=null,htmlOptions:htmlOptions={},id:id,max:max=100,min:min=0,prefix:prefix="",showLabels:showLabels=false,style:style="solidgauge",suffix:suffix="",title:title="",tooltipHtml:tooltipHtml='<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',colors:colors$1=[],minorTickInterval:minorTickInterval=null,circumference:circumference=(fullCircle?[0,360]:[-100,100]),...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);HighchartsMore(Highcharts);SolidGauge(Highcharts);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();Highcharts.setOptions({tooltip:{pointFormat:tooltipHtml,followPointer:true}});const css=buildCss({pb_gauge_kit:true});const[options,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={chart:{events:{load(){setTimeout(this.reflow.bind(this),0)}},type:style,height:height},title:{text:title},yAxis:{min:min,max:max,lineWidth:0,tickWidth:0,minorTickInterval:minorTickInterval,tickAmount:2,tickPositions:[min,max],labels:{y:26,enabled:showLabels}},credits:false,series:[{data:formattedChartData}],pane:{center:["50%","50%"],size:"90%",startAngle:circumference[0],endAngle:circumference[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:colors$1!==void 0&&colors$1.length>0?mapColors(colors$1):highchartsTheme.colors,plotOptions:{series:{animation:!disableAnimation},solidgauge:{borderColor:colors$1!==void 0&&colors$1.length===1?mapColors(colors$1).join():highchartsTheme.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:colors.text_lt_default,enabled:true,format:`<span class="prefix${dark?" dark":""}">${prefix}</span><span class="fix${dark?" dark":""}">{y:,f}</span><span class="suffix${dark?" dark":""}">${suffix}</span>`,style:{fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_2},y:-26}}}};setOptions(merge(staticOptions,customOptions));if(document.querySelector(".prefix")){document.querySelectorAll(".prefix").forEach((prefix2=>{prefix2.setAttribute("y","28")}));document.querySelectorAll(".fix").forEach((fix=>fix.setAttribute("y","38")))}}),[chartData]);return jsx(HighchartsReact,{containerProps:{className:classnames(css,globalProps(props)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})};const LineGraph=({aria:aria={},data:data={},align:align="center",className:className="pb_bar_graph",customOptions:customOptions={},dark:dark=false,gradient:gradient=false,type:type="line",htmlOptions:htmlOptions={},id:id,legend:legend=false,toggleLegendClick:toggleLegendClick=true,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,axisTitle:axisTitle,xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,chartData:chartData,pointStart:pointStart,subTitle:subTitle,title:title,height:height,colors:colors2=[],...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:{min:yAxisMin,max:yAxisMax,title:{text:axisTitle}},xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{pointStart:pointStart,events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};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,CircleChart as C,Gauge as G,LineGraph as L};