UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

9 lines (8 loc) 770 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import Radio from '../../components/Radio'; import { Box, Flex } from '../../components/Flex'; export const TypeRadio = (props) => (_jsx(Radio, { onClick: () => { if (!props.disabled) { props.onClick?.(); } }, checked: props.checked, value: props.value, disabled: props.disabled, children: _jsxs(Flex, { flexDirection: "column", className: props.disabled ? 'twa:opacity-60' : undefined, children: [_jsx(Box, { children: props.text }), _jsx(Box, { className: "twa:text-2 twa:mt-1", children: props.description }), props.disabled && props.disabledTooltip && (_jsx(Box, { className: "twa:text-1 twa:mt-1 twa:italic twa:opacity-80", children: props.disabledTooltip }))] }) }));