UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and TailwindCSS

2 lines 1.03 kB
"use client";import{a as e}from"../constants-CW2-utNH.js";import{r as t}from"../helpers-DBEwVIlX.js";import{GROUP_NAME as n}from"./Dropdown.constants.js";import{DropdownContext as r}from"./DropdownContext.js";import{DropdownGroupContext as i}from"./DropdownGroupContext.js";import{InputRadio as a}from"../InputRadio/InputRadio.js";import{useContext as o,useId as s}from"react";import c from"lodash/fp/omit.js";import{jsx as l}from"react/jsx-runtime";const u=({condensed:u=!1,disabled:d=!1,id:f,label:p,rainbow:m=!0,value:h,...g})=>{let _=s(),v=(f??_)||_,{condensed:y,disabled:b,rainbow:x}=o(r),{condensed:S,disabled:C,rainbow:w}=o(i),T=d||C||b,E=u||S||y,D=m&&w&&x;return l(a,{id:v,className:t(`${e}-${n}__radio`,D?`alternatee`:``,`group/radio-group`,T?`${e}-${n}__radio--disabled`:D?``:`hover:bg-decorative-pink-90`,g.className),condensed:E,disabled:T,fullWidth:!0,label:p,value:h,...c([`className`],g)})};u.displayName=`DropdownRadioItem`;export{u as DropdownRadioItem,u as default}; //# sourceMappingURL=DropdownRadioItem.js.map