mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-26 18:12:51 +08:00
2 lines
754 B
JavaScript
2 lines
754 B
JavaScript
import{j as s}from"./vendor-react-Bf71BWbF.js";import{b1 as t,av as a,b7 as p}from"./index-zQjLFfuj.js";function c({facts:r,lead:l}){const i=t(p);return r.length?s.jsx("dl",{className:"rp-strip rp-facts"+(l?" rp-facts-lead":""),style:{"--facts":r.length},children:r.map((e,n)=>s.jsxs("div",{className:"rp-card"+(e.tone?" "+e.tone:""),children:[s.jsxs("dt",{className:"rp-tile-head"+(e.tint?" rp-tint-"+e.tint:""),children:[e.icon,e.label]}),s.jsxs("dd",{className:"rp-tile-body",children:[l&&i&&n===0?s.jsx(a,{className:"rp-big",cut:"start",children:e.value}):s.jsx("span",{className:"rp-big",title:e.value,children:e.value}),e.caption&&s.jsx("span",{className:"rp-fact-caption",title:e.caption,children:e.caption})]})]},e.label))}):null}export{c as F};
|