kwant-ui 3.28.1 → 3.28.2
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,9 +1,5 @@
|
|
|
1
1
|
declare const Gauge: import("styled-components").StyledComponent<"svg", any, {}, never>;
|
|
2
2
|
declare const Label: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
3
|
-
declare const LowLabel: import("styled-components").StyledComponent<"text", any, {
|
|
4
|
-
|
|
5
|
-
}, never>;
|
|
6
|
-
declare const HighLabel: import("styled-components").StyledComponent<"text", any, {
|
|
7
|
-
width: number;
|
|
8
|
-
}, never>;
|
|
3
|
+
declare const LowLabel: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
4
|
+
declare const HighLabel: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
9
5
|
export { Gauge, Label, LowLabel, HighLabel };
|
package/dist/index.es.js
CHANGED
|
@@ -4385,21 +4385,25 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
4385
4385
|
font-size: 32px;
|
|
4386
4386
|
font-weight: 600;
|
|
4387
4387
|
font: Poppins;
|
|
4388
|
-
line-height:40px;
|
|
4388
|
+
line-height: 40px;
|
|
4389
|
+
transform: translateY(-5px);
|
|
4389
4390
|
`,dW=n(mW)`
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
font-
|
|
4391
|
+
transform: translate(-45%, 13%);
|
|
4392
|
+
font-family: Poppins;
|
|
4393
|
+
font-size: 12px;
|
|
4394
|
+
font-style: normal;
|
|
4394
4395
|
font-weight: 400;
|
|
4396
|
+
line-height: 16px;
|
|
4395
4397
|
fill: #798ca4;
|
|
4396
4398
|
`,fW=n(mW)`
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
font-size:
|
|
4399
|
+
transform: translate(45%, 13%);
|
|
4400
|
+
font-family: Poppins;
|
|
4401
|
+
font-size: 12px;
|
|
4402
|
+
font-style: normal;
|
|
4400
4403
|
font-weight: 400;
|
|
4404
|
+
line-height: 16px;
|
|
4401
4405
|
fill: #798ca4;
|
|
4402
|
-
`,_W=r=>{const{height:n,width:a,value:c,maxValue:i=100}=r,o=qh().cornerRadius(6),s=.5*a,l=s-
|
|
4406
|
+
`,_W=r=>{const{height:n,width:a,value:c,maxValue:i=100}=r,o=qh().cornerRadius(6),s=.5*a,l=s-3,h=-.5*Math.PI,v=.5*Math.PI,p=o({startAngle:nM().range([h,v]).domain([0,i])(c),endAngle:v,innerRadius:l-13,outerRadius:s-8}),u=o({startAngle:h,endAngle:v,innerRadius:l-13,outerRadius:s-8}),g=Math.min(Math.max(c,0),100),m=nM().domain([0,100]).range([0,1])(g),d=nM().domain([0,1]).range([-Math.PI/2,Math.PI/2]).clamp(!0)(m),f=wW(d,l-13-(l-13-(s-8))/2),_=hO(["#FF1C1C","#FF891C","#E2D132","#74A445","#01834C"])(m);return e(Sy,{height:n,width:a,children:t(gW,{children:[e("defs",{children:t("linearGradient",{id:"staticgradient",x1:"2.82102",y1:"93.919",x2:"158.5",y2:"36.4993",gradientUnits:"userSpaceOnUse",children:[e("stop",{"stop-color":"#FF1C1C"}),e("stop",{offset:"0.140625","stop-color":"#FF891C"}),e("stop",{offset:"0.447917","stop-color":"#E2D132"}),e("stop",{offset:"0.755208","stop-color":"#74A445"}),e("stop",{offset:"1","stop-color":"#0B8A64"})]})}),t("g",{transform:`translate(${a/2}, ${n/2})`,children:[t(mW,{children:[c,"%"]}),e(dW,{width:a,children:"Low"}),e(fW,{width:a,children:"High"}),e("path",{d:u,fill:"url(#staticgradient)"}),e("path",{d:p,fill:"#C8D2DE"}),e("circle",{cx:f[0],cy:f[1],r:"8.46211",stroke:"white",strokeWidth:"2.8207",fill:_})]})]})})},wW=(e,t=10)=>[Math.cos(e-Math.PI/2)*t,Math.sin(e-Math.PI/2)*t],bW=n.svg`
|
|
4403
4407
|
display: block;
|
|
4404
4408
|
margin: 20px;
|
|
4405
4409
|
overflow: visible;
|