@useblu/ocean-components
Advanced tools
Comparing version
@@ -11,1 +11,3 @@ export { default as Typography } from './Typography'; | ||
export * from './Checkbox'; | ||
export { default as Radio } from './Radio'; | ||
export * from './Radio'; |
@@ -201,3 +201,11 @@ import React from 'react'; | ||
export { Button, Checkbox, Col, Container, index as Grid, Input, Row, Typography }; | ||
var Radio = React.forwardRef(function Radio(_a, ref) { | ||
var className = _a.className, label = _a.label, id = _a.id, _b = _a.disabled, disabled = _b === void 0 ? false : _b, rest = __rest(_a, ["className", "label", "id", "disabled"]); | ||
return (React.createElement("label", { className: "ods-radio__root", htmlFor: id }, | ||
React.createElement("input", __assign({ ref: ref, id: id, className: classnames('ods-radio', className), disabled: disabled }, rest, { type: "radio" })), | ||
React.createElement("span", { className: "ods-radio__checkmark" }), | ||
label && (React.createElement("span", { className: "ods-typography ods-typography__paragraph ods-radio__label" }, label)))); | ||
}); | ||
export { Button, Checkbox, Col, Container, index as Grid, Input, Radio, Row, Typography }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -207,2 +207,10 @@ 'use strict'; | ||
var Radio = React.forwardRef(function Radio(_a, ref) { | ||
var className = _a.className, label = _a.label, id = _a.id, _b = _a.disabled, disabled = _b === void 0 ? false : _b, rest = __rest(_a, ["className", "label", "id", "disabled"]); | ||
return (React.createElement("label", { className: "ods-radio__root", htmlFor: id }, | ||
React.createElement("input", __assign({ ref: ref, id: id, className: classnames('ods-radio', className), disabled: disabled }, rest, { type: "radio" })), | ||
React.createElement("span", { className: "ods-radio__checkmark" }), | ||
label && (React.createElement("span", { className: "ods-typography ods-typography__paragraph ods-radio__label" }, label)))); | ||
}); | ||
exports.Button = Button; | ||
@@ -214,4 +222,5 @@ exports.Checkbox = Checkbox; | ||
exports.Input = Input; | ||
exports.Radio = Radio; | ||
exports.Row = Row; | ||
exports.Typography = Typography; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@useblu/ocean-components", | ||
"version": "0.1.0-beta.10", | ||
"version": "0.1.0-beta.11", | ||
"description": "React components that implement Ocean's Design System.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
197733
5.58%24
9.09%788
5.91%