@primer/components
Version:
Primer react components
32 lines (22 loc) • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _constants = require("./constants");
var _sx = _interopRequireDefault(require("./sx"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const FormGroup = _styledComponents.default.div.withConfig({
displayName: "FormGroup",
componentId: "sc-14z6yax-0"
})(["margin:", " 0;font-weight:", ";", ";", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('fontWeights.normal'), _constants.COMMON, _sx.default);
const FormGroupLabel = _styledComponents.default.label.withConfig({
displayName: "FormGroup__FormGroupLabel",
componentId: "sc-14z6yax-1"
})(["display:block;margin:0 0 ", ";font-size:", ";font-weight:", ";", ";", ";", ";"], (0, _constants.get)('space.2'), (0, _constants.get)('fontSizes.1'), (0, _constants.get)('fontWeights.bold'), _constants.TYPOGRAPHY, _constants.COMMON, _sx.default);
FormGroupLabel.displayName = 'FormGroup.Label';
var _default = Object.assign(FormGroup, {
Label: FormGroupLabel
});
exports.default = _default;