@carbon/charts-react 1.16.9 → 1.16.10
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.
|
@@ -116,4 +116,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
116
116
|
Licensed under the MIT License (MIT), see
|
|
117
117
|
http://jedwatson.github.io/classnames
|
|
118
118
|
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(a=i(a,r(o)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var o in a)t.call(a,o)&&a[o]&&(s=i(s,o));return s}function i(a,s){return s?a?a+" "+s:a+s:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(z0);var s5=z0.exports;const Qn=LB(s5),Jn="cds",o5=({tag:e="div",className:t,children:n,color:r,href:i,position:a="static",stacked:s,...o})=>{const l=i?"a":o.onClick?"button":e,c=`${Jn}--cc--card-node`,u=Qn(c,{[`${c}--stacked`]:s,[`${c}--${l}`]:l,[t]:t});return Wt.jsx(l,{className:u,style:{borderColor:r,position:a},tabIndex:0,...o,children:n})},l5=({children:e,farsideColumn:t=!1,...n})=>{const r=`${Jn}--cc--card-node`,i=Qn(`${r}__column`,{[`${r}__column--farside`]:t,...n.className?{[n.className]:!0}:{}});return Wt.jsx("div",{className:i,...n,children:e})},c5=({children:e,...t})=>{const n=`${Jn}--cc--card-node`,r=Qn(`${n}__label`,{...t.className?{[t.className]:!0}:{}});return Wt.jsx("label",{className:r,...t,children:e})},u5=({children:e,...t})=>{const n=`${Jn}--cc--card-node`,r=Qn(`${n}__subtitle`,{...t.className?{[t.className]:!0}:{}});return Wt.jsx("div",{className:r,...t,children:e})},h5=({children:e,...t})=>{const n=`${Jn}--cc--card-node`,r=Qn(`${n}__title`,{...t.className?{[t.className]:!0}:{}});return Wt.jsx("div",{className:r,...t,children:e})},d5=({color:e,markerEnd:t,markerStart:n,path:r,source:i,target:a,variant:s=null,...o})=>{const l=`${Jn}--cc--edge`,c=Qn(l,{[`${l}--${s}`]:s,...o.className?{[o.className]:!0}:{}});let u=r;if(!u&&i&&a&&(u=bI(i,a)),!u)throw Error("Missing parameters for Edge component: path or source and target.");return Wt.jsxs("g",{className:c,...o,children:[Wt.jsx("path",{d:u,className:`${l}__container`}),Wt.jsx("path",{d:u,className:`${l}__outer`}),Wt.jsx("path",{d:u,className:`${l}__inner`,markerEnd:`url(#${t})`,markerStart:`url(#${n})`,style:{stroke:e}})]})},Rr=({color:e,d:t,id:n,orient:r="auto",height:i,width:a,position:s="end",className:o,refX:l,refY:c,...u})=>{const d=`${Jn}--cc--marker`,h=Qn(d,o),p=s==="end"?(a||0)/2+.5:.5,f=(i||0)/2;return Wt.jsx("marker",{className:h,markerHeight:i,markerWidth:a,orient:r,id:n,refX:l||p,refY:c||f,markerUnits:"userSpaceOnUse",...u,children:Wt.jsx("path",{d:t,style:{fill:e}})})},p5=e=>Wt.jsx(Rr,{d:xI.d,...e}),f5=e=>Wt.jsx(Rr,{d:_I.d,...e}),m5=e=>Wt.jsx(Rr,{d:EI.d,...e}),g5=e=>Wt.jsx(Rr,{d:OI.d,...e}),v5=e=>Wt.jsx(Rr,{d:wI.d,...e}),y5=e=>Wt.jsx(Rr,{d:SI.d,...e}),b5=({shape:e="circle",tag:t="div",title:n="Title",className:r,subtitle:i,description:a,renderIcon:s,href:o,size:l=48,stacked:c,position:u="fixed",bodyPosition:d="absolute",...h})=>{const p=o?"a":h.onClick?"button":t,f=`${Jn}--cc--shape-node`,v=Qn(f,{[`${f}--stacked`]:c,[`${f}--${e}`]:e,[`${f}--${p}`]:p,[r]:r}),m=n?Wt.jsx("div",{className:`${f}__title`,children:n}):null,y=i?Wt.jsx("div",{className:`${f}__subtitle`,children:i}):null,g=a?Wt.jsx("div",{className:`${f}__description`,children:a}):null;return Wt.jsxs(p,{className:v,style:{height:l,width:l,position:u},tabIndex:0,...h,children:[Wt.jsx("div",{className:`${f}__icon`,children:s}),Wt.jsxs("div",{className:`${f}__body`,style:{position:d},children:[m,y,g]})]})};V.Alignments=Jt,V.AlluvialChart=NB,V.AreaChart=PB,V.AreaEvent=dl,V.ArrowDirections=Qa,V.ArrowLeftMarker=p5,V.ArrowRightMarker=f5,V.AxisEvent=hl,V.AxisFlavor=Ai,V.AxisPositions=F,V.AxisTitleOrientations=Ja,V.BarEvent=gl,V.BoxplotChart=UB,V.BoxplotEvent=vl,V.BubbleChart=BB,V.BulletChart=HB,V.CalloutDirections=Ti,V.CanvasZoomEvent=ul,V.CardNode=o5,V.CardNodeColumn=l5,V.CardNodeLabel=c5,V.CardNodeSubtitle=u5,V.CardNodeTitle=h5,V.CartesianOrientations=Qt,V.ChartEvent=Gn,V.ChartTheme=wl,V.ChartTypes=Te,V.ChoroplethChart=F0,V.CircleMarker=m5,V.CirclePackChart=VB,V.ColorClassNameTypes=st,V.ColorLegendType=Ci,V.ComboChart=GB,V.DiamondMarker=g5,V.DividerStatus=Vr,V.DominantBaseline=ln,V.DonutChart=FB,V.Edge=d5,V.ExperimentalChoroplethChart=F0,V.GaugeChart=zB,V.GaugeEvent=ml,V.GaugeTypes=ar,V.GroupedBarChart=jB,V.HeatmapChart=WB,V.HistogramChart=qB,V.LayoutAlignItems=ir,V.LayoutDirection=Pt,V.LayoutGrowth=ht,V.LegendItemType=ee,V.LegendOrientations=Hr,V.LegendPositions=Br,V.LineChart=YB,V.LineEvent=bl,V.LollipopChart=ZB,V.Marker=Rr,V.MeterChart=XB,V.ModalEvent=sl,V.ModelEvent=ol,V.PieChart=KB,V.PieEvent=fl,V.Projection=cn,V.RadarChart=QB,V.RadarEvent=xl,V.RenderTypes=rt,V.ScaleTypes=et,V.ScatterChart=JB,V.ScatterEvent=yl,V.ShapeNode=b5,V.SimpleBarChart=t5,V.Skeletons=te,V.SquareMarker=v5,V.StackedAreaChart=e5,V.StackedBarChart=n5,V.Statuses=$i,V.TeeMarker=y5,V.TextAnchor=on,V.ThresholdEvent=Ol,V.TickRotations=Mi,V.ToolbarControlTypes=Mt,V.TooltipEvent=Pr,V.TreeChart=r5,V.TreeEvent=_l,V.TreeTypes=Ka,V.TreemapChart=i5,V.TreemapEvent=El,V.TruncationTypes=Pe,V.WordCloudChart=a5,V.WordCloudEvent=pl,V.ZoomBarTypes=We,V.ZoomDomainEvent=cl,V.ZoombarEvent=ll,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
|
119
|
-
//# sourceMappingURL=index.
|
|
119
|
+
//# sourceMappingURL=index.umd.cjs.map
|