@datacamp/waffles-form-elements
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.2.0](https://github.com/datacamp-engineering/design-system/tree/master/packages/react-components/form-elements/compare/@datacamp/waffles-form-elements@1.1.0...@datacamp/waffles-form-elements@1.2.0) (2019-09-16) | ||
### Features | ||
* add input label ([4a83cdf](https://github.com/datacamp-engineering/design-system/tree/master/packages/react-components/form-elements/commit/4a83cdf)) | ||
# [1.1.0](https://github.com/datacamp-engineering/design-system/tree/master/packages/react-components/form-elements/compare/@datacamp/waffles-form-elements@1.0.0...@datacamp/waffles-form-elements@1.1.0) (2019-09-12) | ||
@@ -8,0 +19,0 @@ |
import _extends from "@babel/runtime/helpers/extends"; | ||
import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
import { jsx as ___EmotionJSX } from "@emotion/core"; | ||
import { Text } from '@datacamp/waffles-text'; | ||
import tokens from '@datacamp/waffles-tokens/lib/future-tokens.json'; | ||
import { computeDataAttributes } from '@datacamp/waffles-utils'; | ||
import { computeDataAttributes, ssrSafeFirstChildSelector } from '@datacamp/waffles-utils'; | ||
import { css } from '@emotion/core'; | ||
@@ -28,2 +30,3 @@ import React, { forwardRef } from 'react'; | ||
boxShadow: "inset 0 0 0 1px ".concat(tokens.color.opaque.greyLight.value.rgb), | ||
boxSizing: 'border-box', | ||
color: tokens.color.opaque.grey.value.rgb, | ||
@@ -33,7 +36,23 @@ display: 'inline-block', | ||
fontSize: tokens.size.space[16].value, | ||
height: tokens.size.space[32].value, | ||
height: tokens.size.space[48].value, | ||
margin: 0, | ||
padding: "".concat(tokens.size.space[8].value, "px ").concat(tokens.size.space[16].value, "px"), | ||
verticalAlign: 'middle' | ||
}, "label:inputStyle;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9JbnB1dC9pbmRleC50c3giXSwibmFtZX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HVyID0gKCk6IHZvaWQgPT4gb25CbHVyICYmIG9uQmx1cigpO1xuXG4gICAgcmV0dXJuIChcbiAgICAgIDxpbnB1dFxuICAgICAgICByZWY9e3JlZn1cbiAgICAgICAgYXV0b0NvbXBsZXRlPXthdXRvY29tcGxldGV9XG4gICAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lfVxuICAgICAgICBjc3M9e2lucHV0U3R5bGV9XG4gICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgbWF4TGVuZ3RoPXttYXhMZW5ndGh9XG4gICAgICAgIG5hbWU9e25hbWV9XG4gICAgICAgIG9uQmx1cj17aGFuZGxlQmx1cn1cbiAgICAgICAgb25DaGFuZ2U9e2hhbmRsZUNoYW5nZX1cbiAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyfVxuICAgICAgICB2YWx1ZT17dmFsdWV9XG4gICAgICAgIHsuLi5wYXJzZWREYXRhQXR0cmlidXRlc31cbiAgICAgIC8+XG4gICAgKTtcbiAgfVxuKTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXQ7XG4iXX0= */")); | ||
verticalAlign: 'middle', | ||
width: '100%' | ||
}, "label:inputStyle;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9JbnB1dC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOERtQiIsImZpbGUiOiIuLi8uLi9zcmMvSW5wdXQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGV4dCB9IGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXRleHQnO1xuaW1wb3J0IHRva2VucyBmcm9tICdAZGF0YWNhbXAvd2FmZmxlcy10b2tlbnMvbGliL2Z1dHVyZS10b2tlbnMuanNvbic7XG5pbXBvcnQge1xuICBjb21w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pbmUganN4LWExMXkvbGFiZWwtaGFzLWZvclxuICAgICAgICAgIDxsYWJlbCBjc3M9e2xhYmVsU3R5bGV9IGh0bWxGb3I9e25hbWV9PlxuICAgICAgICAgICAgPFRleHQgY3NzPXt0ZXh0U3R5bGV9PntsYWJlbH08L1RleHQ+XG4gICAgICAgICAgICB7aW5wdXRFbGVtZW50fVxuICAgICAgICAgIDwvbGFiZWw+XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgPD57aW5wdXRFbGVtZW50fTwvPlxuICAgICAgICApfVxuICAgICAgPC8+XG4gICAgKTtcbiAgfVxuKTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXQ7XG4iXX0= */")); | ||
var labelStyle = | ||
/*#__PURE__*/ | ||
css(_defineProperty({ | ||
display: 'block', | ||
marginTop: tokens.size.space[16].value | ||
}, ssrSafeFirstChildSelector, { | ||
marginTop: 0 | ||
}), "label:labelStyle;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9JbnB1dC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0dtQiIsImZpbGUiOiIuLi8uLi9zcmMvSW5wdXQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGV4dCB9IGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXRleHQnO1xuaW1wb3J0IHRva2VucyBmcm9tICdAZGF0YWNhbXAvd2FmZmxlcy10b2tlbnMvbGliL2Z1dHVyZS10b2tlbnMuanNvbic7XG5pbXBvcnQge1xuICBjb21wdXRlRGF0YUF0dHJpYnV0ZXMsXG4gIHNzclNhZmVGaXJzdENoaWxkU2VsZWN0b3IsXG59IGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXV0aWxzJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2Nvcm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Q+XG4gICAgICAgICAgICB7aW5wdXRFbGVtZW50fVxuICAgICAgICAgIDwvbGFiZWw+XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgPD57aW5wdXRFbGVtZW50fTwvPlxuICAgICAgICApfVxuICAgICAgPC8+XG4gICAgKTtcbiAgfVxuKTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXQ7XG4iXX0= */")); | ||
var textStyle = | ||
/*#__PURE__*/ | ||
css({ | ||
display: 'block', | ||
fontWeight: 'bold', | ||
marginBottom: tokens.size.space[12].value | ||
}, "label:textStyle;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9JbnB1dC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUdrQiIsImZpbGUiOiIuLi8uLi9zcmMvSW5wdXQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGV4dCB9IGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXRleHQnO1xuaW1wb3J0IHRva2VucyBmcm9tICdAZGF0YWNhbXAvd2FmZmxlcy10b2tlbnMvbGliL2Z1dHVyZS10b2tlbnMuanNvbic7XG5pbXBvcnQge1xuICBjb21wdXRlRGF0YUF0dHJpYnV0ZXMsXG4gIHNzclNhZmVGaXJzdENoaWxkU2VsZWN0b3IsXG59IGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXV0aWxzJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IFJlYWN0LCB7IGZvcndhcmRSZWYgfSBmcm9tICdyZWFjdCc7XG5cbmludGVyZmFjZSBJbnB1dFByb3BzIHtcbiAgLyoqXG4gICAqIENvcnJlc3BvbmRzIHRvIHRoZSBodG1sIGF1dG9jb21wbGV0ZSB0eXBlcy5cbiAgICogaHR0cHM6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HQgSW5wdXQ7XG4iXX0= */")); | ||
var Input = forwardRef(function (_ref, ref) { | ||
@@ -45,2 +64,3 @@ var autocomplete = _ref.autocomplete, | ||
disabled = _ref$disabled === void 0 ? false : _ref$disabled, | ||
label = _ref.label, | ||
maxLength = _ref.maxLength, | ||
@@ -62,3 +82,3 @@ name = _ref.name, | ||
return ___EmotionJSX("input", _extends({ | ||
var inputElement = ___EmotionJSX("input", _extends({ | ||
ref: ref, | ||
@@ -69,2 +89,3 @@ autoComplete: autocomplete, | ||
disabled: disabled, | ||
id: name, | ||
maxLength: maxLength, | ||
@@ -77,3 +98,11 @@ name: name, | ||
}, parsedDataAttributes)); | ||
return ___EmotionJSX(React.Fragment, null, label ? // eslint-disable-next-line jsx-a11y/label-has-for | ||
___EmotionJSX("label", { | ||
css: labelStyle, | ||
htmlFor: name | ||
}, ___EmotionJSX(Text, { | ||
css: textStyle | ||
}, label), inputElement) : ___EmotionJSX(React.Fragment, null, inputElement)); | ||
}); | ||
export default Input; |
@@ -16,2 +16,6 @@ "use strict"; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
var _wafflesText = require("@datacamp/waffles-text"); | ||
var _futureTokens = _interopRequireDefault(require("@datacamp/waffles-tokens/lib/future-tokens.json")); | ||
@@ -44,2 +48,3 @@ | ||
boxShadow: "inset 0 0 0 1px ".concat(_futureTokens.default.color.opaque.greyLight.value.rgb), | ||
boxSizing: 'border-box', | ||
color: _futureTokens.default.color.opaque.grey.value.rgb, | ||
@@ -49,7 +54,23 @@ display: 'inline-block', | ||
fontSize: _futureTokens.default.size.space[16].value, | ||
height: _futureTokens.default.size.space[32].value, | ||
height: _futureTokens.default.size.space[48].value, | ||
margin: 0, | ||
padding: "".concat(_futureTokens.default.size.space[8].value, "px ").concat(_futureTokens.default.size.space[16].value, "px"), | ||
verticalAlign: 'middle' | ||
}, "label:inputStyle;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=ut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aWQgPT5cbiAgICAgIG9uQ2hhbmdlKGV2ZW50LnRhcmdldC52YWx1ZSk7XG5cbiAgICBjb25zdCBoYW5kbGVCbHVyID0gKCk6IHZvaWQgPT4gb25CbHVyICYmIG9uQmx1cigpO1xuXG4gICAgcmV0dXJuIChcbiAgICAgIDxpbnB1dFxuICAgICAgICByZWY9e3JlZn1cbiAgICAgICAgYXV0b0NvbXBsZXRlPXthdXRvY29tcGxldGV9XG4gICAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lfVxuICAgICAgICBjc3M9e2lucHV0U3R5bGV9XG4gICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgbWF4TGVuZ3RoPXttYXhMZW5ndGh9XG4gICAgICAgIG5hbWU9e25hbWV9XG4gICAgICAgIG9uQmx1cj17aGFuZGxlQmx1cn1cbiAgICAgICAgb25DaGFuZ2U9e2hhbmRsZUNoYW5nZX1cbiAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyfVxuICAgICAgICB2YWx1ZT17dmFsdWV9XG4gICAgICAgIHsuLi5wYXJzZWREYXRhQXR0cmlidXRlc31cbiAgICAgIC8+XG4gICAgKTtcbiAgfVxuKTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXQ7XG4iXX0= */")); | ||
verticalAlign: 'middle', | ||
width: '100%' | ||
}, "label:inputStyle;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9JbnB1dC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOERtQiIsImZpbGUiOiIuLi8uLi9zcmMvSW5wdXQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGV4dCB9IGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXRleHQnO1xuaW1wb3J0IHRva2VucyBmcm9tICd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ChcbiAgICAgIDw+XG4gICAgICAgIHtsYWJlbCA/IChcbiAgICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUganN4LWExMXkvbGFiZWwtaGFzLWZvclxuICAgICAgICAgIDxsYWJlbCBjc3M9e2xhYmVsU3R5bGV9IGh0bWxGb3I9e25hbWV9PlxuICAgICAgICAgICAgPFRleHQgY3NzPXt0ZXh0U3R5bGV9PntsYWJlbH08L1RleHQ+XG4gICAgICAgICAgICB7aW5wdXRFbGVtZW50fVxuICAgICAgICAgIDwvbGFiZWw+XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgPD57aW5wdXRFbGVtZW50fTwvPlxuICAgICAgICApfVxuICAgICAgPC8+XG4gICAgKTtcbiAgfVxuKTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXQ7XG4iXX0= */")); | ||
var labelStyle = | ||
/*#__PURE__*/ | ||
(0, _core.css)((0, _defineProperty2.default)({ | ||
display: 'block', | ||
marginTop: _futureTokens.default.size.space[16].value | ||
}, _wafflesUtils.ssrSafeFirstChildSelector, { | ||
marginTop: 0 | ||
}), "label:labelStyle;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9JbnB1dC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0dtQiIsImZpbGUiOiIuLi8uLi9zcmMvSW5wdXQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGV4dCB9IGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXRleHQnO1xuaW1wb3J0IHRva2VucyBmcm9tICdAZGF0YWNhbXAvd2FmZmxlcy10b2tlbnMvbGliL2Z1dHVyZS10b2tlbnMuanNvbic7XG5pbXBvcnQge1xuICBjb21wdXRlRGF0YUF0dHJpYnV0ZXMsXG4gIHNzclNhZmVGaXJ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DxsYWJlbCBjc3M9e2xhYmVsU3R5bGV9IGh0bWxGb3I9e25hbWV9PlxuICAgICAgICAgICAgPFRleHQgY3NzPXt0ZXh0U3R5bGV9PntsYWJlbH08L1RleHQ+XG4gICAgICAgICAgICB7aW5wdXRFbGVtZW50fVxuICAgICAgICAgIDwvbGFiZWw+XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgPD57aW5wdXRFbGVtZW50fTwvPlxuICAgICAgICApfVxuICAgICAgPC8+XG4gICAgKTtcbiAgfVxuKTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXQ7XG4iXX0= */")); | ||
var textStyle = | ||
/*#__PURE__*/ | ||
(0, _core.css)({ | ||
display: 'block', | ||
fontWeight: 'bold', | ||
marginBottom: _futureTokens.default.size.space[12].value | ||
}, "label:textStyle;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9JbnB1dC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUdrQiIsImZpbGUiOiIuLi8uLi9zcmMvSW5wdXQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGV4dCB9IGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXRleHQnO1xuaW1wb3J0IHRva2VucyBmcm9tICdAZGF0YWNhbXAvd2FmZmxlcy10b2tlbnMvbGliL2Z1dHVyZS10b2tlbnMuanNvbic7XG5pbXBvcnQge1xuICBjb21wdXRlRGF0YUF0dHJpYnV0ZXMsXG4gIHNzclNhZmVGaXJzdENoaWxkU2VsZWN0b3IsXG59IGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXV0aWxzJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IFJlYWN0LCB7IGZvcndhcmRSZWYgfSBmcm9tICdyZWFjdCc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XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgPD57aW5wdXRFbGVtZW50fTwvPlxuICAgICAgICApfVxuICAgICAgPC8+XG4gICAgKTtcbiAgfVxuKTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXQ7XG4iXX0= */")); | ||
var Input = (0, _react.forwardRef)(function (_ref, ref) { | ||
@@ -61,2 +82,3 @@ var autocomplete = _ref.autocomplete, | ||
disabled = _ref$disabled === void 0 ? false : _ref$disabled, | ||
label = _ref.label, | ||
maxLength = _ref.maxLength, | ||
@@ -78,3 +100,3 @@ name = _ref.name, | ||
return (0, _core.jsx)("input", (0, _extends2.default)({ | ||
var inputElement = (0, _core.jsx)("input", (0, _extends2.default)({ | ||
ref: ref, | ||
@@ -85,2 +107,3 @@ autoComplete: autocomplete, | ||
disabled: disabled, | ||
id: name, | ||
maxLength: maxLength, | ||
@@ -93,4 +116,11 @@ name: name, | ||
}, parsedDataAttributes)); | ||
return (0, _core.jsx)(_react.default.Fragment, null, label ? // eslint-disable-next-line jsx-a11y/label-has-for | ||
(0, _core.jsx)("label", { | ||
css: labelStyle, | ||
htmlFor: name | ||
}, (0, _core.jsx)(_wafflesText.Text, { | ||
css: textStyle | ||
}, label), inputElement) : (0, _core.jsx)(_react.default.Fragment, null, inputElement)); | ||
}); | ||
var _default = Input; | ||
exports.default = _default; |
{ | ||
"name": "@datacamp/waffles-form-elements", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"main": "lib/index.js", | ||
@@ -57,3 +57,3 @@ "module": "es/index.js", | ||
}, | ||
"gitHead": "98925159cdfb070528f97b3dcbaf8307b161a050" | ||
"gitHead": "bd842fb50bf9f2f8b36e87cf08eec7921e8052d5" | ||
} |
@@ -24,2 +24,6 @@ import React from 'react'; | ||
/** | ||
* It sets a label above the input | ||
*/ | ||
label?: string; | ||
/** | ||
* The maximum number of characters permitted in the input. | ||
@@ -26,0 +30,0 @@ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text#maxlength |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
59568
722
12