dash_mantine_components 1.0.0 → 1.1.1

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.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[0],{7626:(t,a,e)=>{e.r(a),e.d(a,{default:()=>N});var r=e(31635),s=e(74848),o=e(44653),i=e(59853),n=e(77984),l=e(23495),c=e(51658),d=e(78687),u=e(34296),h=e(64999),p=e(17826),m=e(59396),v=e(86344),y=e(2412),x=e(46100),f=e(1101),k=e(52837),C=e(14791),b=e(89133);function g(t,a){const e=t.map((t=>t[a]));return[Math.min(...e),Math.max(...e)]}function j({active:t,payload:a,getStyles:e,dataKey:r,valueFormatter:o}){if(t&&a&&a.length){const t=a[0]&&a[0].payload;return(0,s.jsx)("div",{...e("tooltip"),children:(0,s.jsxs)(h.Y,{justify:"space-between",children:[(0,s.jsx)(p.E,{fz:"sm",children:t[r.x]}),(0,s.jsx)(p.E,{fz:"sm",children:o?o(t[r.z]):t[r.z]})]})})}return null}const z={color:"blue.6",withTooltip:!0},P=(0,m.V)(((t,{textColor:a,gridColor:e})=>({root:{"--chart-text-color":a?(0,v.r)(a,t):void 0,"--chart-grid-color":e?(0,v.r)(e,t):void 0}}))),A=(0,y.P9)(((t,a)=>{const e=(0,x.Y)("BubbleChart",z,t),{classNames:r,className:h,style:p,styles:m,unstyled:y,vars:A,data:D,xAxisProps:K,yAxisProps:_,zAxisProps:w,tooltipProps:N,scatterProps:S,color:B,label:E,withTooltip:F,dataKey:L,range:M,valueFormatter:T,...Q}=e,R=(0,f.xd)(),W=(0,k.I)({name:"BubbleChart",classes:b.A,props:e,className:h,style:p,classNames:r,styles:m,unstyled:y,vars:A,varsResolver:P});return(0,s.jsx)(C.a,{ref:a,...W("root"),...Q,children:(0,s.jsx)(o.u,{children:(0,s.jsxs)(i.t,{children:[(0,s.jsx)(n.W,{type:"category",dataKey:L.x,interval:0,tick:{fontSize:12,fill:"currentColor"},tickLine:{transform:"translate(0, -6)",stroke:"currentColor"},stroke:"currentColor",...W("axis"),...K}),(0,s.jsx)(l.h,{type:"number",dataKey:L.y,height:10,width:E?void 0:0,tick:!1,tickLine:!1,axisLine:!1,label:{value:E,position:"insideRight",fontSize:12,fill:"currentColor"},...W("axis"),..._}),(0,s.jsx)(c.K,{type:"number",dataKey:L.z,domain:g(D,L.z),range:M,...w}),F&&(0,s.jsx)(d.m,{animationDuration:100,isAnimationActive:!1,cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:"3 3"},content:t=>(0,s.jsx)(j,{dataKey:L,active:t.active,payload:t.payload,getStyles:W,valueFormatter:T}),...N}),(0,s.jsx)(u.X,{data:D,fill:(0,v.r)(B,R),isAnimationActive:!1,...S})]})})})}));A.displayName="@mantine/charts/BubbleChart",A.classes=b.A;var D=e(40295),K=e.n(D),_=e(83837),w=e(57479);const N=function(t){var a=t.setProps,e=t.loading_state,s=(t.clickData,t.hoverData,t.scatterProps),o=(0,r.Tt)(t,["setProps","loading_state","clickData","hoverData","scatterProps"]),i=(0,r.Cl)((0,r.Cl)({},s),{onClick:function(t){(0,_.$Q)(t)&&a({clickData:(0,_.zD)(t)})},onMouseOver:function(t){(0,_.$Q)(t)&&a({hoverData:(0,_.zD)(t)})}});return K().createElement(A,(0,r.Cl)({"data-dash-is-loading":(0,w.A_)(e)||void 0,scatterProps:i},o))}}}]);
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[0],{7626:(t,a,e)=>{e.r(a),e.d(a,{default:()=>N});var r=e(31635),s=e(74848),o=e(44653),i=e(59853),n=e(77984),l=e(23495),c=e(51658),d=e(78687),u=e(34296),h=e(64999),p=e(17826),m=e(59396),v=e(86344),y=e(2412),x=e(46100),f=e(1101),k=e(52837),C=e(14791),b=e(89133);function g(t,a){const e=t.map((t=>t[a]));return[Math.min(...e),Math.max(...e)]}function j({active:t,payload:a,getStyles:e,dataKey:r,valueFormatter:o}){if(t&&a&&a.length){const t=a[0]&&a[0].payload;return(0,s.jsx)("div",{...e("tooltip"),children:(0,s.jsxs)(h.Y,{justify:"space-between",children:[(0,s.jsx)(p.E,{fz:"sm",children:t[r.x]}),(0,s.jsx)(p.E,{fz:"sm",children:o?o(t[r.z]):t[r.z]})]})})}return null}const z={color:"blue.6",withTooltip:!0},P=(0,m.V)(((t,{textColor:a,gridColor:e})=>({root:{"--chart-text-color":a?(0,v.r)(a,t):void 0,"--chart-grid-color":e?(0,v.r)(e,t):void 0}}))),A=(0,y.P9)(((t,a)=>{const e=(0,x.Y)("BubbleChart",z,t),{classNames:r,className:h,style:p,styles:m,unstyled:y,vars:A,data:D,xAxisProps:K,yAxisProps:_,zAxisProps:w,tooltipProps:N,scatterProps:S,color:B,label:E,withTooltip:F,dataKey:L,range:M,valueFormatter:T,...Q}=e,R=(0,f.xd)(),W=(0,k.I)({name:"BubbleChart",classes:b.A,props:e,className:h,style:p,classNames:r,styles:m,unstyled:y,vars:A,varsResolver:P}),Y=E?void 0:{width:0};return(0,s.jsx)(C.a,{ref:a,...W("root"),...Q,children:(0,s.jsx)(o.u,{children:(0,s.jsxs)(i.t,{children:[(0,s.jsx)(n.W,{type:"category",dataKey:L.x,interval:0,tick:{fontSize:12,fill:"currentColor"},tickLine:{transform:"translate(0, -6)",stroke:"currentColor"},stroke:"currentColor",...W("axis"),...K}),(0,s.jsx)(l.h,{type:"number",dataKey:L.y,height:10,...Y,tick:!1,tickLine:!1,axisLine:!1,label:{value:E,position:"insideRight",fontSize:12,fill:"currentColor"},...W("axis"),..._}),(0,s.jsx)(c.K,{type:"number",dataKey:L.z,domain:g(D,L.z),range:M,...w}),F&&(0,s.jsx)(d.m,{animationDuration:100,isAnimationActive:!1,cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:"3 3"},content:t=>(0,s.jsx)(j,{dataKey:L,active:t.active,payload:t.payload,getStyles:W,valueFormatter:T}),...N}),(0,s.jsx)(u.X,{data:D,fill:(0,v.r)(B,R),isAnimationActive:!1,...S})]})})})}));A.displayName="@mantine/charts/BubbleChart",A.classes=b.A;var D=e(40295),K=e.n(D),_=e(83837),w=e(57479);const N=function(t){var a=t.setProps,e=t.loading_state,s=(t.clickData,t.hoverData,t.scatterProps),o=(0,r.Tt)(t,["setProps","loading_state","clickData","hoverData","scatterProps"]),i=(0,r.Cl)((0,r.Cl)({},s),{onClick:function(t){(0,_.$Q)(t)&&a({clickData:(0,_.zD)(t)})},onMouseOver:function(t){(0,_.$Q)(t)&&a({hoverData:(0,_.zD)(t)})}});return K().createElement(A,(0,r.Cl)({"data-dash-is-loading":(0,w.A_)(e)||void 0,scatterProps:i},o))}}}]);