design-system-govbr-rnp
Version:
## Padrão Digital de Governo - React Biblioteca de componentes React que implementa o [Padrão Visual digital do governo](https://www.gov.br/ds/). O objetivo da biblioteca é facilitar a implementação e promover a padronização das interfaces de sistemas do
21 lines (20 loc) • 967 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Component = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _templateObject;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
var appliesDuration = function appliesDuration(time) {
return {
transitionDuration: "var(--duration-".concat(time, ")")
};
};
var Component = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n ", "\n"])), function (props) {
return props.duration && appliesDuration(props.duration);
}, function (props) {
return props.easing && "transition-timing-function: ".concat(props.easing);
});
exports.Component = Component;