kwikid-components-react
Version:
KwikID's Component Library in React
68 lines (65 loc) • 2.92 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.KwikUIStyleLabelValuePairsContainer = exports.KwikUIStyleLabelValuePairLabelList = exports.KwikUIStyleLabelValuePairLabel = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _LabelValuePairs = require("./LabelValuePairs.definition");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
const KwikUIStyleLabelValuePairsContainer = exports.KwikUIStyleLabelValuePairsContainer = _styledComponents.default.div`
display: flex;
margin: 0;
width: 100%;
align-content: flex-start;
justify-content: flex-start;
align-items: stretch;
margin-bottom: var(--kwikui-space-s);
${_ref => {
let {
orientation
} = _ref;
switch (orientation) {
case _LabelValuePairs.EKwikUILabelValuePairOrientation.VERTICAL:
return (0, _styledComponents.css)`
flex-direction: column;
`;
case _LabelValuePairs.EKwikUILabelValuePairOrientation.HORIZONTAL:
return (0, _styledComponents.css)`
flex-direction: row;
margin-right: var(--kwikui-space-s);
`;
}
}}
`;
const KwikUIStyleLabelValuePairLabel = exports.KwikUIStyleLabelValuePairLabel = _styledComponents.default.div`
letter-spacing: 1px;
font-size: var(--kwikui-font-size-xs);
font-weight: bold;
display: flex;
align-items: center;
${_ref2 => {
let {
orientation
} = _ref2;
switch (orientation) {
case _LabelValuePairs.EKwikUILabelValuePairOrientation.VERTICAL:
return (0, _styledComponents.css)`
font-size: var(--kwikui-font-size-s);
margin-bottom: var(--kwikui-space-xs);
`;
case _LabelValuePairs.EKwikUILabelValuePairOrientation.HORIZONTAL:
return (0, _styledComponents.css)`
align-items: flex-start;
font-size: var(--kwikui-font-size-s);
margin-right: var(--kwikui-space-s);
`;
}
}}
`;
const KwikUIStyleLabelValuePairLabelList = exports.KwikUIStyleLabelValuePairLabelList = _styledComponents.default.li`
letter-spacing: 1px;
font-size: var(--kwikui-font-size-xs);
font-weight: bold;
margin-right: var(--kwikui-space-s);
`;