@scbt-ecom/ui 0.179.0 → 0.180.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.
- package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.js +1 -1
- package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/types/lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{formatValueToRenderInfoItem as c}from"../../../model/utils.js";import{cn as d}from"../../../../../shared/utils/cn.js";import{Popover as p}from"../../../../../shared/ui/popover/Popover.js";import{Icon as f}from"../../../../../shared/ui/icon/Icon.js";import{pushToDlTooltip as u}from"../../../../../shared/dataLayers/utils.js";const I=({hint:o,value:l,label:t,mode:i,prefix:s,fontSize:m=18,color:a="dark",accent:n=!1})=>r("div",{className:"flex items-center justify-between gap-4",children:[r("div",{className:"flex items-center gap-2",children:[e("p",{className:"desk-body-regular-l text-color-dark",children:t}),o&&e(p,{triggerProps:{onPointerDown:()=>u({title:t,placement:"calculator"})},withCloseBtn:!1,triggerElement:e(f,{className:"size-5 text-icon-blue-grey-600",name:"info/helpCircle"}),children:e("p",{children:o})})]}),r("span",{style:{fontSize:`${m}px`},className:d("desk-body-medium-l text-color-dark",{"[&&]:desk-title-bold-s":n,"text-color-primary-default":a==="blue"}),children:[s," ",c(i,l)]})]});export{I as InfoListItem};
|
|
1
|
+
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{formatValueToRenderInfoItem as c}from"../../../model/utils.js";import{cn as d}from"../../../../../shared/utils/cn.js";import{Popover as p}from"../../../../../shared/ui/popover/Popover.js";import{Icon as f}from"../../../../../shared/ui/icon/Icon.js";import{pushToDlTooltip as u}from"../../../../../shared/dataLayers/utils.js";const I=({hint:o,value:l,label:t,mode:i,prefix:s,fontSize:m="18",color:a="dark",accent:n=!1})=>r("div",{className:"flex items-center justify-between gap-4",children:[r("div",{className:"flex items-center gap-2",children:[e("p",{className:"desk-body-regular-l text-color-dark",children:t}),o&&e(p,{triggerProps:{onPointerDown:()=>u({title:t,placement:"calculator"})},withCloseBtn:!1,triggerElement:e(f,{className:"size-5 text-icon-blue-grey-600",name:"info/helpCircle"}),children:e("p",{children:o})})]}),r("span",{style:{fontSize:`${m}px`},className:d("desk-body-medium-l text-color-dark",{"[&&]:desk-title-bold-s":n,"text-color-primary-default":a==="blue"}),children:[s," ",c(i,l)]})]});export{I as InfoListItem};
|
|
2
2
|
//# sourceMappingURL=InfoListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoListItem.js","sources":["../../../../../../../lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.tsx"],"sourcesContent":["import { pushToDlTooltip } from '$/shared/dataLayers'\nimport { Icon, Popover } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\nimport { type CalculatorSuffix, formatValueToRenderInfoItem } from '$/widgets/calculator/model'\n\nexport type InfoListItemMode = CalculatorSuffix | 'text'\nexport type InfoListItemColor = 'dark' | 'blue'\nexport type InfoListItemValue = string\n\nexport interface InfoListItemProps {\n label: string\n mode: InfoListItemMode\n hint?: string\n accent?: boolean\n color?: InfoListItemColor\n isFormula: boolean\n value: InfoListItemValue\n prefix?: string\n fontSize?:
|
|
1
|
+
{"version":3,"file":"InfoListItem.js","sources":["../../../../../../../lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.tsx"],"sourcesContent":["import { pushToDlTooltip } from '$/shared/dataLayers'\nimport { Icon, Popover } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\nimport { type CalculatorSuffix, formatValueToRenderInfoItem } from '$/widgets/calculator/model'\n\nexport type InfoListItemMode = CalculatorSuffix | 'text'\nexport type InfoListItemColor = 'dark' | 'blue'\nexport type InfoListItemValue = string\n\nexport interface InfoListItemProps {\n label: string\n mode: InfoListItemMode\n hint?: string\n accent?: boolean\n color?: InfoListItemColor\n isFormula: boolean\n value: InfoListItemValue\n prefix?: string\n fontSize?: string\n}\n\nexport const InfoListItem = ({\n hint,\n value,\n label,\n mode,\n prefix,\n fontSize = '18',\n color = 'dark',\n accent = false\n}: InfoListItemProps) => {\n return (\n <div className='flex items-center justify-between gap-4'>\n <div className='flex items-center gap-2'>\n <p className='desk-body-regular-l text-color-dark'>{label}</p>\n {hint && (\n <Popover\n triggerProps={{\n onPointerDown: () => pushToDlTooltip({ title: label, placement: 'calculator' })\n }}\n withCloseBtn={false}\n triggerElement={<Icon className='size-5 text-icon-blue-grey-600' name='info/helpCircle' />}\n >\n <p>{hint}</p>\n </Popover>\n )}\n </div>\n <span\n style={{ fontSize: `${fontSize}px` }}\n className={cn('desk-body-medium-l text-color-dark', {\n '[&&]:desk-title-bold-s': accent,\n 'text-color-primary-default': color === 'blue'\n })}\n >\n {prefix} {formatValueToRenderInfoItem(mode, value)}\n </span>\n </div>\n )\n}\n"],"names":["InfoListItem","hint","value","label","mode","prefix","fontSize","color","accent","jsxs","jsx","Popover","pushToDlTooltip","Icon","cn","formatValueToRenderInfoItem"],"mappings":"8XAqBO,MAAMA,EAAe,CAAC,CAC3B,KAAAC,EACA,MAAAC,EACA,MAAAC,EACA,KAAAC,EACA,OAAAC,EACA,SAAAC,EAAW,KACX,MAAAC,EAAQ,OACR,OAAAC,EAAS,EACX,IAEIC,EAAC,MAAA,CAAI,UAAU,0CACb,SAAA,CAAAA,EAAC,MAAA,CAAI,UAAU,0BACb,SAAA,CAAAC,EAAC,IAAA,CAAE,UAAU,sCAAuC,SAAAP,EAAM,EACzDF,GACCS,EAACC,EAAA,CACC,aAAc,CACZ,cAAe,IAAMC,EAAgB,CAAE,MAAOT,EAAO,UAAW,aAAc,CAAA,EAEhF,aAAc,GACd,eAAgBO,EAACG,EAAA,CAAK,UAAU,iCAAiC,KAAK,kBAAkB,EAExF,SAAAH,EAAC,KAAG,SAAAT,CAAA,CAAK,CAAA,CAAA,CACX,EAEJ,EACAQ,EAAC,OAAA,CACC,MAAO,CAAE,SAAU,GAAGH,CAAQ,IAAA,EAC9B,UAAWQ,EAAG,qCAAsC,CAClD,yBAA0BN,EAC1B,6BAA8BD,IAAU,MAAA,CACzC,EAEA,SAAA,CAAAF,EAAO,IAAEU,EAA4BX,EAAMF,CAAK,CAAA,CAAA,CAAA,CACnD,EACF"}
|