playbook_ui 14.22.0.pre.alpha.play2261highchartsbargraphimportedstyles8730 → 14.22.0.pre.alpha.popoverkittransitionpoppertofloatingui8736

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_badge/_badge.scss +5 -6
  3. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +15 -33
  4. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +72 -0
  5. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +6 -0
  6. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +15 -33
  7. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +22 -52
  8. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +16 -12
  9. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +15 -31
  10. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +16 -39
  11. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +38 -86
  12. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +15 -33
  13. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +64 -0
  14. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +1 -0
  15. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +22 -72
  16. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +1 -1
  17. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +15 -32
  18. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +16 -37
  19. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +3 -1
  20. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +3 -1
  21. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +2 -0
  22. data/app/pb_kits/playbook/pb_popover/index.ts +33 -15
  23. data/dist/chunks/_typeahead-L71EUpvT.js +22 -0
  24. data/dist/chunks/{_weekday_stacked-bjb7ElwG.js → _weekday_stacked-BEQ6MH1X.js} +1 -1
  25. data/dist/chunks/lib-MbZXVX7s.js +29 -0
  26. data/dist/chunks/{pb_form_validation-BCfG-8Zp.js → pb_form_validation-ClEueixE.js} +1 -1
  27. data/dist/chunks/vendor.js +1 -1
  28. data/dist/playbook-doc.js +1 -1
  29. data/dist/playbook-rails-react-bindings.js +1 -1
  30. data/dist/playbook-rails.js +1 -1
  31. data/dist/playbook.css +1 -1
  32. data/lib/playbook/version.rb +1 -1
  33. metadata +9 -8
  34. data/app/pb_kits/playbook/pb_bar_graph/barGraphTheme.ts +0 -106
  35. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
  36. data/dist/chunks/_bar_graph-iq9-hk-x.js +0 -1
  37. data/dist/chunks/_typeahead-DeLOYzLb.js +0 -22
  38. data/dist/chunks/lib-GtpYwIew.js +0 -29
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.22.0"
5
- VERSION = "14.22.0.pre.alpha.play2261highchartsbargraphimportedstyles8730"
5
+ VERSION = "14.22.0.pre.alpha.popoverkittransitionpoppertofloatingui8736"
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.22.0.pre.alpha.play2261highchartsbargraphimportedstyles8730
4
+ version: 14.22.0.pre.alpha.popoverkittransitionpoppertofloatingui8736
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -518,19 +518,19 @@ files:
518
518
  - app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx
519
519
  - app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
520
520
  - app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
521
- - app/pb_kits/playbook/pb_bar_graph/barGraphTheme.ts
522
521
  - app/pb_kits/playbook/pb_bar_graph/bar_graph.html.erb
523
522
  - app/pb_kits/playbook/pb_bar_graph/bar_graph.rb
524
523
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb
525
524
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx
526
525
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md
526
+ - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx
527
+ - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md
527
528
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
528
529
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md
529
530
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb
530
531
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
531
532
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb
532
533
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
533
- - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md
534
534
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb
535
535
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx
536
536
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb
@@ -542,6 +542,8 @@ files:
542
542
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md
543
543
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb
544
544
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx
545
+ - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx
546
+ - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md
545
547
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb
546
548
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx
547
549
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md
@@ -3616,12 +3618,11 @@ files:
3616
3618
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3617
3619
  - app/pb_kits/playbook/utilities/text.ts
3618
3620
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3619
- - dist/chunks/_bar_graph-iq9-hk-x.js
3620
- - dist/chunks/_typeahead-DeLOYzLb.js
3621
- - dist/chunks/_weekday_stacked-bjb7ElwG.js
3621
+ - dist/chunks/_typeahead-L71EUpvT.js
3622
+ - dist/chunks/_weekday_stacked-BEQ6MH1X.js
3622
3623
  - dist/chunks/lazysizes-B7xYodB-.js
3623
- - dist/chunks/lib-GtpYwIew.js
3624
- - dist/chunks/pb_form_validation-BCfG-8Zp.js
3624
+ - dist/chunks/lib-MbZXVX7s.js
3625
+ - dist/chunks/pb_form_validation-ClEueixE.js
3625
3626
  - dist/chunks/vendor.js
3626
3627
  - dist/menu.yml
3627
3628
  - dist/playbook-doc.js
@@ -1,106 +0,0 @@
1
- import colors from '../tokens/exports/_colors.module.scss'
2
- import typography from '../tokens/exports/_typography.module.scss'
3
-
4
- const barGraphTheme = {
5
- title: {
6
- text: "",
7
- style: {
8
- color: colors.text_lt_default,
9
- fontFamily: typography.font_family_base,
10
- fontWeight: typography.bold,
11
- fontSize: typography.heading_3,
12
- },
13
- },
14
- subtitle: {
15
- text: "",
16
- style: {
17
- fontFamily: typography.font_family_base,
18
- color: colors.text_lt_light,
19
- fontWeight: typography.regular,
20
- fontSize: typography.text_base,
21
- },
22
- },
23
- chart: {
24
- type: "column",
25
- },
26
- tooltip: {
27
- backgroundColor: {
28
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
29
- stops: [
30
- [0, colors.bg_dark],
31
- [1, colors.bg_dark],
32
- ],
33
- },
34
- style: {
35
- fontFamily: typography.font_family_base,
36
- color: colors.text_dk_default,
37
- fontWeight: typography.regular,
38
- fontSize: typography.text_smaller,
39
- },
40
- },
41
- colors: [
42
- colors.data_1,
43
- colors.data_2,
44
- colors.data_3,
45
- colors.data_4,
46
- colors.data_5,
47
- colors.data_6,
48
- colors.data_7,
49
- ],
50
- credits: { enabled: false },
51
- legend: {
52
- enabled: false,
53
- itemStyle: {
54
- color: colors.text_lt_light,
55
- fill: colors.text_lt_light,
56
- fontSize: typography.text_smaller,
57
- },
58
- },
59
- xAxis: {
60
- gridLineWidth: 0,
61
- lineColor: colors.border_light,
62
- tickColor: colors.border_light,
63
- labels: {
64
- style: {
65
- fontFamily: typography.font_family_base,
66
- color: colors.text_lt_lighter,
67
- fontWeight: typography.bold,
68
- fontSize: typography.text_smaller,
69
- },
70
- },
71
- title: {
72
- style: {
73
- color: colors.text_lt_default,
74
- fontFamily: typography.font_family_base,
75
- fontWeight: typography.regular,
76
- fontSize: typography.heading_4,
77
- },
78
- },
79
- },
80
- yAxis: {
81
- alternateGridColor: undefined as string | undefined,
82
- minorTickInterval: null as number | null,
83
- gridLineColor: colors.border_light,
84
- minorGridLineColor: colors.border_light,
85
- lineWidth: 0,
86
- tickWidth: 0,
87
- labels: {
88
- style: {
89
- fontFamily: typography.font_family_base,
90
- color: colors.text_lt_lighter,
91
- fontWeight: typography.bold,
92
- fontSize: typography.text_smaller,
93
- },
94
- },
95
- title: {
96
- style: {
97
- fontFamily: typography.font_family_base,
98
- color: colors.text_lt_lighter,
99
- fontWeight: typography.bold,
100
- fontSize: typography.text_smaller,
101
- },
102
- },
103
- },
104
- }
105
-
106
- export default barGraphTheme;
@@ -1,3 +0,0 @@
1
- By default, Highcharts have a height of 400px, but this can be customized. You can override the default by specifying either a percentage or a fixed pixel value.
2
-
3
- Using a percentage maintains a consistent aspect ratio across different responsive sizes. For example, setting the height to 50% makes the chart’s height half of its width.
@@ -1 +0,0 @@
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};