UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 1.6 kB
import{styled as e,css as o}from"styled-components";import{Typography as i}from"../typography/index.js";const r=e.label.withConfig({displayName:"styled__RadioStyled",componentId:"sc-vwnewx-0"})(["display:inline-flex;align-items:center;gap:8px;user-select:none;",""],(({$disabled:e})=>o(e?["cursor:not-allowed;"]:["cursor:pointer;"]))),n=e.span.withConfig({displayName:"styled__RadioCircle",componentId:"sc-vwnewx-1"})(["display:inline-flex;justify-content:center;align-items:center;width:16px;height:16px;flex-shrink:0;border-radius:8px;box-sizing:border-box;",""],(({$skeleton:e})=>!e&&o(["border:1px solid ",";"],(({theme:e})=>e.colors.grayScale.gray2)))),t=e.span.withConfig({displayName:"styled__RadioCircleDot",componentId:"sc-vwnewx-2"})(["display:inline-flex;width:8px;height:8px;flex-shrink:0;border-radius:50%;background:",";visibility:hidden;"],(({theme:e})=>e.colors.grayScale.gray2)),a=e(i).attrs({variant:"body-m-medium"}).withConfig({displayName:"styled__RadioLabel",componentId:"sc-vwnewx-3"})([""]),l=e.input.withConfig({displayName:"styled__RadioInput",componentId:"sc-vwnewx-4"})(["display:none;&:not(:disabled) + ",":hover{border-color:",";}&:checked:not(:disabled) + ","{border-color:",";","{visibility:visible;background:",";}}&:disabled + ","{border-color:",";background:",";}"],n,(({theme:e})=>e.colors.accent.primary),n,(({theme:e})=>e.colors.accent.primary),t,(({theme:e})=>e.colors.accent.primary),n,(({theme:e})=>e.colors.grayScale.gray1),(({theme:e})=>e.colors.grayScale.gray6));export{n as RadioCircle,t as RadioCircleDot,l as RadioInput,a as RadioLabel,r as RadioStyled};