sodtrack-web-ui 0.74.7 → 0.74.8

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.
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-BO6XI5BE.mjs';import {RadioGroupRoot,RadioGroupItem,RadioGroupItemControl,RadioGroupItemText,RadioGroupItemHiddenInput}from'@ark-ui/react/radio-group';import {forwardRef,useCallback}from'react';import {jsx,jsxs}from'react/jsx-runtime';var k=["sm","md"],N=["horizontal","vertical"],b=forwardRef(({className:d,orientation:r="horizontal",onValueChange:o,size:e="md",error:i,...u},s)=>{let l=useCallback(m=>{o?.(m.value);},[o]);return jsx(RadioGroupRoot,{"data-error":i,"data-size":e,className:a("group flex",r==="horizontal"&&"flex gap-8",r==="vertical"&&e==="sm"&&"flex-col gap-2",r==="vertical"&&e==="md"&&"flex-col gap-3",d),orientation:r,ref:s,onValueChange:l,...u})});b.displayName="RadioGroup";var P=forwardRef(({value:d,label:r,className:o,...e},i)=>jsxs(RadioGroupItem,{value:d,className:a("group/item flex items-center gap-1.5",o),ref:i,...e,children:[jsx(RadioGroupItemControl,{className:a("relative rounded-full border-neutral-900 bg-neutral-50 transition-all after:absolute after:h-full after:w-full after:rounded-full after:border-transparent","data-[state=checked]:border-primary-500 data-[state=checked]:bg-primary-500 data-[state=checked]:after:border-neutral-50","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4 group-data-[size=sm]:border-[1.5px] group-data-[size=sm]:after:border-2","group-data-[size=md]:h-5 group-data-[size=md]:w-5 group-data-[size=md]:border-2 group-data-[size=md]:after:border-3","group-data-disabled/item:border-neutral-400 data-[state=checked]:group-data-disabled/item:bg-neutral-400","group-data-[error=true]:border-error-500 data-[state=checked]:group-data-[error=true]:bg-error-500")}),r&&jsx(RadioGroupItemText,{className:a("font-inter leading-[130%]! text-neutral-900","group-data-[size=sm]:text-xs","group-data-[size=md]:text-sm","group-data-disabled/item:text-neutral-400","group-data-[error=true]:text-error-500"),children:r}),jsx(RadioGroupItemHiddenInput,{})]}));P.displayName="RadioGroupItem";export{k as a,N as b,b as c,P as d};