@useblu/ocean-components
Advanced tools
Comparing version
@@ -7,1 +7,3 @@ export { default as Typography } from './Typography'; | ||
export * from './Button'; | ||
export { default as Input } from './Input'; | ||
export * from './Input'; |
@@ -185,3 +185,11 @@ import React from 'react'; | ||
export { Button, Col, Container, index as Grid, Row, Typography }; | ||
var Input = React.forwardRef(function Input(_a, ref) { | ||
var type = _a.type, className = _a.className, label = _a.label, helperText = _a.helperText, blocked = _a.blocked, error = _a.error, id = _a.id, rest = __rest(_a, ["type", "className", "label", "helperText", "blocked", "error", "id"]); | ||
return (React.createElement("div", { className: "ods-input__root" }, | ||
label && (React.createElement("label", { className: "ods-input__label", htmlFor: id }, label)), | ||
React.createElement("input", __assign({ ref: ref, type: type || 'text', id: id, className: classnames('ods-input', blocked && 'ods-input--blocked', error && 'ods-input--error', className) }, rest)), | ||
helperText && (React.createElement("p", { className: classnames('ods-input__helper-text', error && 'ods-input__helper-text--error') }, helperText)))); | ||
}); | ||
export { Button, Col, Container, index as Grid, Input, Row, Typography }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -191,2 +191,10 @@ 'use strict'; | ||
var Input = React.forwardRef(function Input(_a, ref) { | ||
var type = _a.type, className = _a.className, label = _a.label, helperText = _a.helperText, blocked = _a.blocked, error = _a.error, id = _a.id, rest = __rest(_a, ["type", "className", "label", "helperText", "blocked", "error", "id"]); | ||
return (React.createElement("div", { className: "ods-input__root" }, | ||
label && (React.createElement("label", { className: "ods-input__label", htmlFor: id }, label)), | ||
React.createElement("input", __assign({ ref: ref, type: type || 'text', id: id, className: classnames('ods-input', blocked && 'ods-input--blocked', error && 'ods-input--error', className) }, rest)), | ||
helperText && (React.createElement("p", { className: classnames('ods-input__helper-text', error && 'ods-input__helper-text--error') }, helperText)))); | ||
}); | ||
exports.Button = Button; | ||
@@ -196,4 +204,5 @@ exports.Col = Col; | ||
exports.Grid = index; | ||
exports.Input = Input; | ||
exports.Row = Row; | ||
exports.Typography = Typography; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@useblu/ocean-components", | ||
"version": "0.1.0-beta.7", | ||
"version": "0.1.0-beta.8", | ||
"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
177071
7.99%20
11.11%700
9.89%