@stokr/components-library
Version:
STOKR - Components Library
74 lines (73 loc) • 5.37 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TitleContainer = exports.Title = exports.Subtitle = exports.SectionTitle = exports.Section = exports.PendingCounter = exports.Container = exports.Button = exports.AllDoneIconContainer = exports.AllDoneIcon = exports.AllDoneContainer = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _rwd = _interopRequireDefault(require("../../styles/rwd"));
var _colors = _interopRequireDefault(require("../../styles/colors"));
var _templateObject, _templateObject2, _templateObject3;
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
const Container = exports.Container = _styledComponents.default.div.withConfig({
displayName: "ToDoListstyles__Container",
componentId: "sc-r2zwpf-0"
})(["display:inline-block;"]);
const TitleContainer = exports.TitleContainer = _styledComponents.default.div.withConfig({
displayName: "ToDoListstyles__TitleContainer",
componentId: "sc-r2zwpf-1"
})(["display:flex;align-items:center;", ""], _ref => {
let {
marginBottom
} = _ref;
return marginBottom && (0, _styledComponents.css)(["margin-bottom:", ";"], marginBottom);
});
const Title = exports.Title = _styledComponents.default.div.withConfig({
displayName: "ToDoListstyles__Title",
componentId: "sc-r2zwpf-2"
})(["font-size:22px;font-weight:800;line-height:28px;letter-spacing:0.8px;text-transform:uppercase;"]);
const Subtitle = exports.Subtitle = _styledComponents.default.div.withConfig({
displayName: "ToDoListstyles__Subtitle",
componentId: "sc-r2zwpf-3"
})(["font-size:11px;line-height:24px;letter-spacing:2.06px;text-transform:uppercase;", " ", ""], _ref2 => {
let {
centerVertically
} = _ref2;
return centerVertically && (0, _styledComponents.css)(["margin-bottom:0;"]);
}, _ref3 => {
let {
marginLeft
} = _ref3;
return marginLeft && (0, _styledComponents.css)(["margin-left:", ";"], marginLeft);
});
const PendingCounter = exports.PendingCounter = _styledComponents.default.span.withConfig({
displayName: "ToDoListstyles__PendingCounter",
componentId: "sc-r2zwpf-4"
})(["width:16px;height:16px;margin-left:3px;margin-right:13px;color:", ";background:", ";border-radius:50%;font-size:9px;font-weight:600;text-align:center;line-height:16px;padding-left:1px;"], _colors.default.white, _colors.default.orangishRed);
const Section = exports.Section = _styledComponents.default.div.withConfig({
displayName: "ToDoListstyles__Section",
componentId: "sc-r2zwpf-5"
})(["padding:28px 0;"]);
const SectionTitle = exports.SectionTitle = _styledComponents.default.div.withConfig({
displayName: "ToDoListstyles__SectionTitle",
componentId: "sc-r2zwpf-6"
})(["font-size:11px;font-weight:bold;line-height:20px;letter-spacing:1.8px;text-transform:uppercase;padding-bottom:14px;margin-bottom:16px;text-align:left;border-bottom:1px solid ", ";"], _colors.default.lightGrey);
const Button = exports.Button = _styledComponents.default.div.withConfig({
displayName: "ToDoListstyles__Button",
componentId: "sc-r2zwpf-7"
})(["", ""], _rwd.default.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: auto;\n "]))));
const AllDoneContainer = exports.AllDoneContainer = _styledComponents.default.div.withConfig({
displayName: "ToDoListstyles__AllDoneContainer",
componentId: "sc-r2zwpf-8"
})(["display:flex;flex-direction:column;align-items:center;", ""], _rwd.default.Medium(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex-direction: row;\n "]))));
const AllDoneIconContainer = exports.AllDoneIconContainer = _styledComponents.default.div.withConfig({
displayName: "ToDoListstyles__AllDoneIconContainer",
componentId: "sc-r2zwpf-9"
})(["width:102px;height:102px;display:flex;border:1px dashed ", ";border-radius:50%;flex-shrink:0;margin-bottom:16px;", ""], _colors.default.blue, _rwd.default.Medium(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-right: 26px;\n margin-bottom: 0;\n "]))));
const AllDoneIcon = exports.AllDoneIcon = _styledComponents.default.i.attrs({
className: 'ion ion-md-checkmark'
}).withConfig({
displayName: "ToDoListstyles__AllDoneIcon",
componentId: "sc-r2zwpf-10"
})(["width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:", ";color:", ";font-size:18px;padding:12px;border-radius:50%;margin:auto;", ""], _colors.default.blue, _colors.default.white, props => props.green && "\n background-color: ".concat(_colors.default.freshGreen, ";"));