liquidify-react
Version:
🚀 Production-ready React component library inspired by Apple's new design language post-WWDC 2025. Built with Panda CSS and React, using Bun as runtime (npm compatible). Helps developers maintain design consistency for Apple platform apps. 47+ components
3 lines (2 loc) • 1.15 kB
JavaScript
;const t=require("react/jsx-runtime"),e=require("@ark-ui/react"),h=require("react"),n=require("./create-recipe-D4OItzir.cjs"),a=n.createRecipe("rating-group",{size:"md"},[]),p={size:["sm","md","lg"]},s=Object.keys(p),o=Object.assign(n.memo(a.recipeFn),{__recipe__:!0,__name__:"ratingGroup",__getCompoundVariantCss__:a.__getCompoundVariantCss__,raw:r=>r,variantKeys:s,variantMap:p,merge(r){return n.mergeRecipes(this,r)},splitVariantProps(r){return n.splitProps(r,s)},getVariantProps:a.getVariantProps}),c=h.forwardRef(({label:r,count:u=5,size:g,children:R,className:_,...l},m)=>{const[d,G]=o.splitVariantProps({size:g});return t.jsxs(e.RatingGroup.Root,{ref:m,className:[o(d),_].filter(Boolean).join(" "),count:u,...G,...l,children:[r&&t.jsx(e.RatingGroup.Label,{children:r}),t.jsx(e.RatingGroup.Control,{children:t.jsx(e.RatingGroup.Context,{children:({items:j})=>j.map(i=>t.jsx(e.RatingGroup.Item,{index:i,children:t.jsx(e.RatingGroup.ItemContext,{children:({highlighted:x})=>t.jsx("span",{children:x?"★":"☆"})})},i))})}),R]})});c.displayName="RatingGroup";exports.RatingGroup=c;
//# sourceMappingURL=ratingGroup-CtFLKLCy.cjs.map