kwant-ui 3.26.4 → 3.27.0

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,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import { TextComponent } from '../Text/types';
2
3
  export type TrendPercentageProps = {
3
4
  data: number;
@@ -6,6 +7,7 @@ export type TrendPercentageProps = {
6
7
  iconWidth?: number;
7
8
  iconHeight?: number;
8
9
  unit?: string;
10
+ displayText?: string | ReactNode;
9
11
  };
10
12
  declare const TrendPercentage: (props: TrendPercentageProps) => import("react/jsx-runtime").JSX.Element;
11
13
  export { TrendPercentage };
package/dist/index.es.js CHANGED
@@ -4528,7 +4528,7 @@ object-assign
4528
4528
  fill: ${C.green.green500};
4529
4529
  }
4530
4530
  `}
4531
- `,IS=r=>{const{data:n,category:a,weight:c,iconWidth:i=16,iconHeight:o=16,unit:s="%"}=r;return t(DS,{className:"stat_data_container",danger:n<0,children:[e(qt,{icon:n<0?"arrow_downward":"arrow_upward",height:o,width:i}),e(Oe,{category:a||"caption",weight:c||"regular",children:t("span",{children:[n?Math.abs(n):0,s]})})]})},TS=({x:t,y:r})=>e("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:t,y:r,children:e("rect",{x:"1.5",y:"1",width:"14",height:"14",rx:"7",fill:"#2DA170",stroke:"white","stroke-width":"2"})}),NS=({x:t,y:r})=>e("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:t,y:r,children:e("rect",{x:"10.5",y:"1.58579",width:"11.8995",height:"11.8995",transform:"rotate(45 10.5 1.58579)",fill:"#F5D945",stroke:"white","stroke-width":"2"})}),FS=(e,t)=>e+t/2,QS=n.div`
4531
+ `,IS=r=>{const{data:n,category:a,weight:c,iconWidth:i=16,iconHeight:o=16,unit:s="%",displayText:l}=r;return t(DS,{className:"stat_data_container",danger:n<0,children:[e(qt,{icon:n<0?"arrow_downward":"arrow_upward",height:o,width:i}),e(Oe,{category:a||"caption",weight:c||"regular",children:t("span",{children:[l||(n?Math.abs(n):0),s]})})]})},TS=({x:t,y:r})=>e("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:t,y:r,children:e("rect",{x:"1.5",y:"1",width:"14",height:"14",rx:"7",fill:"#2DA170",stroke:"white","stroke-width":"2"})}),NS=({x:t,y:r})=>e("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:t,y:r,children:e("rect",{x:"10.5",y:"1.58579",width:"11.8995",height:"11.8995",transform:"rotate(45 10.5 1.58579)",fill:"#F5D945",stroke:"white","stroke-width":"2"})}),FS=(e,t)=>e+t/2,QS=n.div`
4532
4532
  width: 100%;
4533
4533
  height: 1px;
4534
4534
  background: #5f758f;