oolib 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/fonts/NotoSansDevanagari-SemiBold.woff2 +0 -0
- package/dist/assets/fonts/adobe-devanagari_761.ttf +0 -0
- package/dist/assets/fonts/adobe-devanagari_761.woff2 +0 -0
- package/dist/assets/fonts/adobe-devanagari_836.ttf +0 -0
- package/dist/assets/fonts/adobe-devanagari_836.woff2 +0 -0
- package/dist/assets/fonts/notosans-bold-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-bold-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-bolditalic-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-bolditalic-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-extrabold-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-extrabold-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-extrabolditalic-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-extrabolditalic-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-italic-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-italic-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-light-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-light-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-lightitalic-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-lightitalic-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-medium-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-medium-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-mediumitalic-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-mediumitalic-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-regular-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-regular-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-semibold-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-semibold-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosans-semibolditalic-webfont.woff +0 -0
- package/dist/assets/fonts/notosans-semibolditalic-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosansdevanagari-bold.ttf +0 -0
- package/dist/assets/fonts/notosansdevanagari-bold.woff2 +0 -0
- package/dist/assets/fonts/notosansdevanagari-regular.ttf +0 -0
- package/dist/assets/fonts/notosansdevanagari-regular.woff2 +0 -0
- package/dist/assets/fonts/notosansgujaratiui-bold-webfont.woff +0 -0
- package/dist/assets/fonts/notosansgujaratiui-bold-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosansgujaratiui-regular-webfont.woff +0 -0
- package/dist/assets/fonts/notosansgujaratiui-regular-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosanskannadaui-bold-webfont.woff +0 -0
- package/dist/assets/fonts/notosanskannadaui-bold-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosanskannadaui-regular-webfont.woff +0 -0
- package/dist/assets/fonts/notosanskannadaui-regular-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosansoriyaui-bold-webfont.woff +0 -0
- package/dist/assets/fonts/notosansoriyaui-bold-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosansoriyaui-regular-webfont.woff +0 -0
- package/dist/assets/fonts/notosansoriyaui-regular-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosansteluguui-bold-webfont.woff +0 -0
- package/dist/assets/fonts/notosansteluguui-bold-webfont.woff2 +0 -0
- package/dist/assets/fonts/notosansteluguui-regular-webfont copy.woff2 +0 -0
- package/dist/assets/fonts/notosansteluguui-regular-webfont.woff +0 -0
- package/dist/assets/fonts/notosansteluguui-regular-webfont.woff2 +0 -0
- package/dist/assets/fonts/notoserif-bold-webfont.woff +0 -0
- package/dist/assets/fonts/notoserif-bold-webfont.woff2 +0 -0
- package/dist/assets/fonts/notoserif-bolditalic-webfont.woff +0 -0
- package/dist/assets/fonts/notoserif-bolditalic-webfont.woff2 +0 -0
- package/dist/assets/fonts/notoserif-italic-webfont.woff +0 -0
- package/dist/assets/fonts/notoserif-italic-webfont.woff2 +0 -0
- package/dist/assets/fonts/notoserif-medium-webfont.woff +0 -0
- package/dist/assets/fonts/notoserif-medium-webfont.woff2 +0 -0
- package/dist/assets/fonts/notoserif-mediumitalic-webfont.woff +0 -0
- package/dist/assets/fonts/notoserif-mediumitalic-webfont.woff2 +0 -0
- package/dist/assets/fonts/notoserif-regular-webfont.woff +0 -0
- package/dist/assets/fonts/notoserif-regular-webfont.woff2 +0 -0
- package/dist/assets/fonts/style.css +162 -0
- package/dist/components/Buttons/index.d.ts +6 -0
- package/dist/components/Buttons/index.js +89 -0
- package/dist/components/Buttons/index.styled.d.ts +1 -0
- package/dist/components/Buttons/index.styled.js +176 -0
- package/dist/components/Loader/index.d.ts +1 -0
- package/dist/components/Loader/index.js +37 -0
- package/dist/components/Loader/index.styled.d.ts +3 -0
- package/dist/components/Loader/index.styled.js +51 -0
- package/dist/components/Tags/index.d.ts +35 -0
- package/dist/components/Tags/index.js +71 -0
- package/dist/components/Tags/index.styled.d.ts +6 -0
- package/dist/components/Tags/index.styled.js +165 -0
- package/dist/components/Typo/index.d.ts +16 -0
- package/dist/components/Typo/index.js +89 -0
- package/dist/components/Typo/index.styled.d.ts +16 -0
- package/dist/components/Typo/index.styled.js +29 -0
- package/dist/globalStyles/index.d.ts +1 -0
- package/dist/globalStyles/index.js +12 -0
- package/dist/icons/OkeGoogleIcon.d.ts +2 -0
- package/dist/icons/OkeGoogleIcon.js +41 -0
- package/dist/icons/index.d.ts +120 -0
- package/dist/icons/index.js +69 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +21 -1
- package/dist/themes/colors.d.ts +73 -0
- package/dist/themes/colors.js +75 -0
- package/dist/themes/index.d.ts +2 -0
- package/dist/themes/index.js +7 -0
- package/dist/themes/mixins/index.d.ts +3 -0
- package/dist/themes/mixins/index.js +23 -0
- package/dist/themes/mixins/kp-transitions.d.ts +1 -0
- package/dist/themes/mixins/kp-transitions.js +11 -0
- package/dist/themes/typo.d.ts +33 -0
- package/dist/themes/typo.js +258 -0
- package/package.json +15 -9
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Loader = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var Typo_1 = require("../Typo");
|
|
20
|
+
var colors_1 = require("../../themes/colors");
|
|
21
|
+
var greyColor100 = colors_1.colors.greyColor100;
|
|
22
|
+
var index_styled_1 = require("./index.styled");
|
|
23
|
+
var LoaderDiv = function (props) {
|
|
24
|
+
var SuitableTypo = props.L ? Typo_1.SANS_5_6 : props.M ? Typo_1.SANS_4 : Typo_1.SANS_3;
|
|
25
|
+
return (!props.children ?
|
|
26
|
+
react_1.default.createElement(index_styled_1.StyledLoader, __assign({}, props)) :
|
|
27
|
+
react_1.default.createElement(index_styled_1.StyledLoaderWrapper, __assign({}, props),
|
|
28
|
+
react_1.default.createElement(index_styled_1.StyledLoader, __assign({}, props, { children: null })),
|
|
29
|
+
react_1.default.createElement(SuitableTypo, __assign({ color: greyColor100, invert: props.invert }, (props.L ? { bold: true } : { semibold: true })), props.children)));
|
|
30
|
+
};
|
|
31
|
+
var Loader = function (props) {
|
|
32
|
+
return (!props.isBlock ?
|
|
33
|
+
react_1.default.createElement(LoaderDiv, __assign({}, props)) :
|
|
34
|
+
react_1.default.createElement(index_styled_1.StyledLoaderOverlay, __assign({}, props),
|
|
35
|
+
react_1.default.createElement(LoaderDiv, __assign({}, props))));
|
|
36
|
+
};
|
|
37
|
+
exports.Loader = Loader;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.StyledLoader = exports.StyledLoaderWrapper = exports.StyledLoaderOverlay = void 0;
|
|
27
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
28
|
+
var colors_1 = require("../../themes/colors");
|
|
29
|
+
var greyColor10 = colors_1.colors.greyColor10, greyColor70 = colors_1.colors.greyColor70, greyColor100 = colors_1.colors.greyColor100, lightShadowColor = colors_1.colors.lightShadowColor, white = colors_1.colors.white;
|
|
30
|
+
var spin = (0, styled_components_1.keyframes)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n"], ["\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n"])));
|
|
31
|
+
var StyledLoader = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: inline-block;\n animation: ", " 1.2s linear infinite;\n border-radius: 50%;\n ", "\n"], ["\n display: inline-block;\n animation: ", " 1.2s linear infinite;\n border-radius: 50%;\n ", "\n"])), spin, function (_a) {
|
|
32
|
+
var M = _a.M, L = _a.L, invert = _a.invert, colors = _a.theme.colors;
|
|
33
|
+
var size = M ? 10 : L ? 15 : 3;
|
|
34
|
+
var trackSize = size === 30 ? size / 5 : size / 7;
|
|
35
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: ", "rem;\n height: ", "rem;\n border-style: solid;\n border-width: ", "rem;\n border-color: ", ";\n border-top-color: ", "; //props.theme.color\n //border-left-color: ", ";\n "], ["\n width: ", "rem;\n height: ", "rem;\n border-style: solid;\n border-width: ", "rem;\n border-color: ", ";\n border-top-color: ", "; //props.theme.color\n //border-left-color: ", ";\n "])), size, size, trackSize, invert ? greyColor70 : greyColor10, invert ? white : ((colors === null || colors === void 0 ? void 0 : colors.primaryColor100) || lightShadowColor), invert ? white : ((colors === null || colors === void 0 ? void 0 : colors.primaryColor100) || lightShadowColor));
|
|
36
|
+
});
|
|
37
|
+
exports.StyledLoader = StyledLoader;
|
|
38
|
+
var StyledLoaderWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n text-align: center;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 1rem;\n\n ", ";\n"], ["\n text-align: center;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 1rem;\n\n ", ";\n"])), function (_a) {
|
|
39
|
+
var isBlock = _a.isBlock;
|
|
40
|
+
return isBlock && (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex-direction: column;\n justify-content: center;\n gap: 1.8rem;\n "], ["\n flex-direction: column;\n justify-content: center;\n gap: 1.8rem;\n "])));
|
|
41
|
+
});
|
|
42
|
+
exports.StyledLoaderWrapper = StyledLoaderWrapper;
|
|
43
|
+
var StyledLoaderOverlay = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n width: 100%;\n height: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n"], ["\n background-color: ", ";\n width: 100%;\n height: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n"])), function (_a) {
|
|
44
|
+
var invert = _a.invert;
|
|
45
|
+
return invert ? greyColor100 : white;
|
|
46
|
+
}, function (_a) {
|
|
47
|
+
var blockHeight = _a.blockHeight;
|
|
48
|
+
return blockHeight || '100vh';
|
|
49
|
+
});
|
|
50
|
+
exports.StyledLoaderOverlay = StyledLoaderOverlay;
|
|
51
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function TagDisplay({ display, invert, M, theme, variantSecondary }: {
|
|
2
|
+
display: any;
|
|
3
|
+
invert: any;
|
|
4
|
+
M: any;
|
|
5
|
+
theme: any;
|
|
6
|
+
variantSecondary: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export function TagClear({ id, display, value, M, invert, onClick, theme, variantSecondary, variantGhost, grey, }: {
|
|
9
|
+
id: any;
|
|
10
|
+
display: any;
|
|
11
|
+
value: any;
|
|
12
|
+
M: any;
|
|
13
|
+
invert: any;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
theme: any;
|
|
16
|
+
variantSecondary: any;
|
|
17
|
+
variantGhost: any;
|
|
18
|
+
grey: any;
|
|
19
|
+
}): JSX.Element;
|
|
20
|
+
export function TagSelect({ onClick, isSelected, display, value, M, theme, }: {
|
|
21
|
+
onClick: any;
|
|
22
|
+
isSelected?: boolean;
|
|
23
|
+
display: any;
|
|
24
|
+
value: any;
|
|
25
|
+
M: any;
|
|
26
|
+
theme: any;
|
|
27
|
+
}): JSX.Element;
|
|
28
|
+
export function TagLink({ display, to, invert, M, theme, variantSecondary }: {
|
|
29
|
+
display: any;
|
|
30
|
+
to: any;
|
|
31
|
+
invert: any;
|
|
32
|
+
M: any;
|
|
33
|
+
theme: any;
|
|
34
|
+
variantSecondary: any;
|
|
35
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.TagLink = exports.TagSelect = exports.TagClear = exports.TagDisplay = void 0;
|
|
23
|
+
var react_1 = __importStar(require("react"));
|
|
24
|
+
var index_styled_1 = require("./index.styled");
|
|
25
|
+
var Typo_1 = require("../Typo");
|
|
26
|
+
var icons_1 = require("../../icons");
|
|
27
|
+
function TagDisplay(_a) {
|
|
28
|
+
var display = _a.display, invert = _a.invert, M = _a.M, theme = _a.theme, variantSecondary = _a.variantSecondary;
|
|
29
|
+
var size = M ? 'M' : 'S';
|
|
30
|
+
return (react_1.default.createElement(index_styled_1.StyledTagDisplay, { variantSecondary: variantSecondary, invert: invert, theme: theme, size: size },
|
|
31
|
+
react_1.default.createElement(Typo_1.SANS_3, { semibold: true }, display)));
|
|
32
|
+
}
|
|
33
|
+
exports.TagDisplay = TagDisplay;
|
|
34
|
+
function TagClear(_a) {
|
|
35
|
+
var id = _a.id, display = _a.display, value = _a.value, M = _a.M, invert = _a.invert, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b, theme = _a.theme, variantSecondary = _a.variantSecondary, variantGhost = _a.variantGhost, grey = _a.grey;
|
|
36
|
+
var XIconCom = icons_1.phosphorIcons['X'];
|
|
37
|
+
var size = M ? 'M' : 'S';
|
|
38
|
+
console.log({ variantSecondary: variantSecondary, variantGhost: variantGhost });
|
|
39
|
+
return (react_1.default.createElement(index_styled_1.StyledTagClear, { invert: invert, theme: theme, size: size, grey: grey, variantGhost: variantGhost, variantSecondary: variantSecondary, onClick: function () { return !variantSecondary && onClick(id, { display: display, value: value }); } },
|
|
40
|
+
react_1.default.createElement(Typo_1.SANS_3, { semibold: true }, display),
|
|
41
|
+
react_1.default.createElement(index_styled_1.StyledIconWrapper, { theme: theme, invert: invert, grey: grey, variantSecondary: variantSecondary, onClick: function () {
|
|
42
|
+
return (variantSecondary || variantGhost) && onClick(id, { display: display, value: value });
|
|
43
|
+
} },
|
|
44
|
+
react_1.default.createElement(XIconCom, { size: '15', weight: 'bold' }))));
|
|
45
|
+
}
|
|
46
|
+
exports.TagClear = TagClear;
|
|
47
|
+
function TagSelect(_a) {
|
|
48
|
+
var onClick = _a.onClick, _b = _a.isSelected, isSelected = _b === void 0 ? false : _b, display = _a.display, value = _a.value, M = _a.M, theme = _a.theme;
|
|
49
|
+
var _c = (0, react_1.useState)(isSelected), selected = _c[0], setSelected = _c[1];
|
|
50
|
+
var handleOnClick = function () {
|
|
51
|
+
setSelected(!selected);
|
|
52
|
+
onClick({ display: display, value: value });
|
|
53
|
+
};
|
|
54
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
55
|
+
if (selected && !isSelected) {
|
|
56
|
+
setSelected(isSelected);
|
|
57
|
+
}
|
|
58
|
+
}, [isSelected]);
|
|
59
|
+
var size = M ? 'M' : 'S';
|
|
60
|
+
return (react_1.default.createElement(index_styled_1.StyledTagSelect, { theme: theme, onClick: handleOnClick, selected: selected, size: size },
|
|
61
|
+
react_1.default.createElement(Typo_1.SANS_3, { semibold: true }, display)));
|
|
62
|
+
}
|
|
63
|
+
exports.TagSelect = TagSelect;
|
|
64
|
+
function TagLink(_a) {
|
|
65
|
+
var display = _a.display, to = _a.to, invert = _a.invert, M = _a.M, theme = _a.theme, variantSecondary = _a.variantSecondary;
|
|
66
|
+
var size = M ? 'M' : 'S';
|
|
67
|
+
return (react_1.default.createElement(index_styled_1.StyledLink, { to: to },
|
|
68
|
+
react_1.default.createElement(index_styled_1.StyledTagLink, { theme: theme, variantSecondary: variantSecondary, invert: invert, size: size },
|
|
69
|
+
react_1.default.createElement(Typo_1.SANS_3, { semibold: true }, display))));
|
|
70
|
+
}
|
|
71
|
+
exports.TagLink = TagLink;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.StyledTagLink = exports.StyledTagSelect = exports.StyledTagClear = exports.StyledTagDisplay = exports.StyledLink = exports.StyledIconWrapper = void 0;
|
|
27
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
28
|
+
var colors_1 = require("../../themes/colors");
|
|
29
|
+
var react_router_dom_1 = require("react-router-dom");
|
|
30
|
+
var greyColor100 = colors_1.colors.greyColor100, greyColor80 = colors_1.colors.greyColor80, greyColor70 = colors_1.colors.greyColor70, greyColor15 = colors_1.colors.greyColor15, greyColor40 = colors_1.colors.greyColor40, white = colors_1.colors.white, greyColor10 = colors_1.colors.greyColor10;
|
|
31
|
+
var SIZES = {
|
|
32
|
+
S: "3rem",
|
|
33
|
+
M: "4rem",
|
|
34
|
+
};
|
|
35
|
+
var commonStyle = function (_a) {
|
|
36
|
+
var size = _a.size;
|
|
37
|
+
return "\n padding: 0 1rem;\n position: relative;\n display: inline-flex;\n column-gap: 1rem;\n align-items: center;\n border-radius:0.2rem;\n white-space: nowrap;\n\theight: ".concat(SIZES[size], ";\n");
|
|
38
|
+
};
|
|
39
|
+
var StyledTagDisplay = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n \n\t", "\n\t", "\n\n"], ["\n ", "\n \n\t", "\n\t", "\n\n"])), function (_a) {
|
|
40
|
+
var size = _a.size;
|
|
41
|
+
return commonStyle({ size: size });
|
|
42
|
+
}, function (_a) {
|
|
43
|
+
var invert = _a.invert;
|
|
44
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t"], ["\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t"])), !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor40);
|
|
45
|
+
}, function (_a) {
|
|
46
|
+
var variantSecondary = _a.variantSecondary, invert = _a.invert;
|
|
47
|
+
return variantSecondary && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\t\t\tbackground: none;\n\t\t\tborder: 2px solid ", ";\n\t\t\tcolor: ", ";\n\t\t"], ["\n\t\t\tbackground: none;\n\t\t\tborder: 2px solid ", ";\n\t\t\tcolor: ", ";\n\t\t"])), !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor15);
|
|
48
|
+
});
|
|
49
|
+
exports.StyledTagDisplay = StyledTagDisplay;
|
|
50
|
+
var StyledTagClear = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n \n\t", "\n\n\t", "\n\t", "\n"], ["\n ", "\n \n\t", "\n\n\t", "\n\t", "\n"])), function (_a) {
|
|
51
|
+
var size = _a.size;
|
|
52
|
+
return commonStyle({ size: size });
|
|
53
|
+
}, function (_a) {
|
|
54
|
+
var variantSecondary = _a.variantSecondary, variantGhost = _a.variantGhost, invert = _a.invert, grey = _a.grey, colors = _a.theme.colors;
|
|
55
|
+
return !variantSecondary &&
|
|
56
|
+
!variantGhost &&
|
|
57
|
+
(!grey
|
|
58
|
+
? (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert
|
|
59
|
+
? colors.primaryColor100
|
|
60
|
+
: colors.primaryColor40, !invert ? white : greyColor100) : (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor40));
|
|
61
|
+
}, function (_a) {
|
|
62
|
+
var variantSecondary = _a.variantSecondary, invert = _a.invert, grey = _a.grey, colors = _a.theme.colors;
|
|
63
|
+
return variantSecondary &&
|
|
64
|
+
(!grey
|
|
65
|
+
? (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert ? colors.primaryColor100 : colors.primaryColor40, !invert ? colors.primaryColorText : colors.primaryColor40) : (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor15));
|
|
66
|
+
}, function (_a) {
|
|
67
|
+
var variantGhost = _a.variantGhost;
|
|
68
|
+
return variantGhost && (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n\t\t\tbackground: none;\n\t\t"], ["\n\t\t\tbackground: none;\n\t\t"])));
|
|
69
|
+
});
|
|
70
|
+
exports.StyledTagClear = StyledTagClear;
|
|
71
|
+
var StyledTagSelect = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n\t", "\n"], ["\n ", "\n\t", "\n"])), function (_a) {
|
|
72
|
+
var size = _a.size;
|
|
73
|
+
return commonStyle({ size: size });
|
|
74
|
+
}, function (_a) {
|
|
75
|
+
var selected = _a.selected, colors = _a.theme.colors;
|
|
76
|
+
return "\n border: 2px solid ".concat(colors.primaryColor100, ";\n cursor: pointer;\n background-color: ").concat(selected ? colors.primaryColor100 : null, ";\n\t\tcolor: ").concat(!selected ? colors.primaryColorText : white, "\n ");
|
|
77
|
+
});
|
|
78
|
+
exports.StyledTagSelect = StyledTagSelect;
|
|
79
|
+
var StyledTagLink = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n\t", "\n\n\t", "\n\t\n"], ["\n ", "\n\t", "\n\n\t", "\n\t\n"])), function (_a) {
|
|
80
|
+
var size = _a.size;
|
|
81
|
+
return commonStyle({ size: size });
|
|
82
|
+
}, function (_a) {
|
|
83
|
+
var variantSecondary = _a.variantSecondary, invert = _a.invert, colors = _a.theme.colors;
|
|
84
|
+
return !variantSecondary && (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n\t\t\tbackground-color: ", ";\n\t\t\tcolor: ", ";\n\t\t"], ["\n\t\t\tbackground-color: ", ";\n\t\t\tcolor: ", ";\n\t\t"])), !invert
|
|
85
|
+
? colors.primaryColor100
|
|
86
|
+
: colors.primaryColor40, !invert ? white : greyColor100);
|
|
87
|
+
}, function (_a) {
|
|
88
|
+
var variantSecondary = _a.variantSecondary, invert = _a.invert, colors = _a.theme.colors;
|
|
89
|
+
return variantSecondary && (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n\t\t\tbackground: none;\n\t\t\tborder: 2px solid\n\t\t\t\t", ";\n\t\t\tcolor: ", ";\n\t\t"], ["\n\t\t\tbackground: none;\n\t\t\tborder: 2px solid\n\t\t\t\t", ";\n\t\t\tcolor: ", ";\n\t\t"])), !invert ? colors.primaryColor100 : colors.primaryColor40, !invert ? colors.primaryColorText : colors.primaryColor40);
|
|
90
|
+
});
|
|
91
|
+
exports.StyledTagLink = StyledTagLink;
|
|
92
|
+
var StyledIconWrapper = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\n\t", "\n"], ["\n display: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\n\t", "\n"])), function (_a) {
|
|
93
|
+
var invert = _a.invert, grey = _a.grey;
|
|
94
|
+
return grey && (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n\t\t\tcolor: ", ";\n\t\t"], ["\n\t\t\tcolor: ", ";\n\t\t"])), !invert ? greyColor100 : white);
|
|
95
|
+
});
|
|
96
|
+
exports.StyledIconWrapper = StyledIconWrapper;
|
|
97
|
+
var StyledLink = (0, styled_components_1.default)(react_router_dom_1.NavLink)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n text-decoration: none;\n"], ["\n text-decoration: none;\n"])));
|
|
98
|
+
exports.StyledLink = StyledLink;
|
|
99
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
100
|
+
// const StyledTag = Styled.div`
|
|
101
|
+
// padding: 0 1rem;
|
|
102
|
+
// position: relative;
|
|
103
|
+
// display: inline-flex;
|
|
104
|
+
// column-gap: 1rem;
|
|
105
|
+
// align-items: center;
|
|
106
|
+
// border-radius:0.2rem;
|
|
107
|
+
// white-space: nowrap;
|
|
108
|
+
// height: ${({ size }) => SIZES[size]};
|
|
109
|
+
// ${({ tagSelect, selected, theme }) =>
|
|
110
|
+
// tagSelect && TagModifiers['tagSelect']({ selected, theme })}
|
|
111
|
+
// ${({ tagDisplay, invert, theme }) =>
|
|
112
|
+
// tagDisplay && TagModifiers['tagDisplay']({ invert, theme })}
|
|
113
|
+
// ${({ tagLink, invert, theme }) =>
|
|
114
|
+
// tagLink && TagModifiers['tagLink']({ invert, theme })}
|
|
115
|
+
// ${({ tagClear, primary, primaryOutline }) =>
|
|
116
|
+
// tagClear && TagModifiers['tagClear']({ primary, primaryOutline })}
|
|
117
|
+
// ${({ primary, invert, theme }) =>
|
|
118
|
+
// primary && TagModifiers['primary']({ invert, theme })}
|
|
119
|
+
// ${({ secondary, invert, theme }) =>
|
|
120
|
+
// secondary && TagModifiers['secondary']({ invert, theme })}
|
|
121
|
+
// ${({ primaryOutline, invert, theme }) =>
|
|
122
|
+
// primaryOutline && TagModifiers['primaryOutline']({ invert, theme })}
|
|
123
|
+
// ${({ secondaryOutline, invert, theme }) =>
|
|
124
|
+
// secondaryOutline && TagModifiers['secondaryOutline']({ invert, theme })}
|
|
125
|
+
// ${({ ghost }) => ghost && TagModifiers['ghost']()}
|
|
126
|
+
// `
|
|
127
|
+
// const TagModifiers = {
|
|
128
|
+
// tagSelect: ({ selected, theme: { colors } }) => `
|
|
129
|
+
// border: 2px solid ${colors.primaryColor100};
|
|
130
|
+
// cursor: pointer;
|
|
131
|
+
// background-color: ${selected ? colors.primaryColor100 : null};
|
|
132
|
+
// color: ${!selected ? colors.primaryColorText : white}
|
|
133
|
+
// `,
|
|
134
|
+
// tagDisplay: ({ invert, theme: { colors } }) => `
|
|
135
|
+
// border: 2px solid ${!invert ? greyColor10 : greyColor80};
|
|
136
|
+
// background-color: inherit;
|
|
137
|
+
// cursor: auto;
|
|
138
|
+
// `,
|
|
139
|
+
// tagLink: () => `
|
|
140
|
+
// cursor: pointer;
|
|
141
|
+
// `,
|
|
142
|
+
// tagClear: ({ primaryOutline, primary }) => `
|
|
143
|
+
// cursor: ${primary || primaryOutline ? 'pointer' : 'auto'};
|
|
144
|
+
// `,
|
|
145
|
+
// primary: ({ invert, theme: { colors } }) => `
|
|
146
|
+
// background-color: ${!invert ? colors.primaryColor100 : colors.primaryColor40};
|
|
147
|
+
// color: ${!invert ? white : greyColor100};
|
|
148
|
+
// `,
|
|
149
|
+
// secondary: ({ invert, theme: { colors } }) => `
|
|
150
|
+
// background-color: ${!invert ? greyColor15 : greyColor80};
|
|
151
|
+
// color: ${!invert ? greyColor80 : greyColor15};
|
|
152
|
+
// `,
|
|
153
|
+
// primaryOutline: ({ invert, theme: { colors } }) => `
|
|
154
|
+
// border: 2px solid ${!invert ? colors.primaryColor100 : colors.primaryColor40};
|
|
155
|
+
// color: ${!invert ? colors.primaryColorText : colors.primaryColor40};
|
|
156
|
+
// `,
|
|
157
|
+
// secondaryOutline: ({ invert, theme: { colors } }) => `
|
|
158
|
+
// border: 2px solid ${!invert ? greyColor15 : greyColor80};
|
|
159
|
+
// color: ${!invert ? greyColor80 : greyColor15};
|
|
160
|
+
// `,
|
|
161
|
+
// ghost: () => `
|
|
162
|
+
// background: none;
|
|
163
|
+
// border: none;
|
|
164
|
+
// `,
|
|
165
|
+
// }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function LABEL(props: any): JSX.Element;
|
|
2
|
+
export function SANS_0(props: any): JSX.Element;
|
|
3
|
+
export function SANS_2(props: any): JSX.Element;
|
|
4
|
+
export function SANS_3(props: any): JSX.Element;
|
|
5
|
+
export function SANS_4(props: any): JSX.Element;
|
|
6
|
+
export function SANS_4_5(props: any): JSX.Element;
|
|
7
|
+
export function SANS_5_6(props: any): JSX.Element;
|
|
8
|
+
export function SANS_7_8(props: any): JSX.Element;
|
|
9
|
+
export function SERIF_3(props: any): JSX.Element;
|
|
10
|
+
export function SERIF_3_4(props: any): JSX.Element;
|
|
11
|
+
export function SERIF_4_5(props: any): JSX.Element;
|
|
12
|
+
export function SERIF_5_6(props: any): JSX.Element;
|
|
13
|
+
export function SERIF_7_8(props: any): JSX.Element;
|
|
14
|
+
export function SERIF_9_10(props: any): JSX.Element;
|
|
15
|
+
export function BLOCKQUOTE(props: any): JSX.Element;
|
|
16
|
+
export function TypoClassesProvider(props: any): JSX.Element;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.TypoClassesProvider = exports.BLOCKQUOTE = exports.SERIF_9_10 = exports.SERIF_7_8 = exports.SERIF_5_6 = exports.SERIF_4_5 = exports.SERIF_3_4 = exports.SERIF_3 = exports.SANS_7_8 = exports.SANS_5_6 = exports.SANS_4_5 = exports.SANS_4 = exports.SANS_3 = exports.SANS_2 = exports.SANS_0 = exports.LABEL = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var index_styled_1 = require("./index.styled");
|
|
20
|
+
var styled_components_1 = require("styled-components");
|
|
21
|
+
var genFontStylingProps = function (props) {
|
|
22
|
+
var _a;
|
|
23
|
+
var fontSetting = {
|
|
24
|
+
bold: { type: 'fontWeight', value: 'bold' },
|
|
25
|
+
light: { type: 'fontWeight', value: '300' },
|
|
26
|
+
medium: { type: 'fontWeight', value: '500' },
|
|
27
|
+
semibold: { type: 'fontWeight', value: '600' },
|
|
28
|
+
extrabold: { type: 'fontWeight', value: '800' },
|
|
29
|
+
italic: { type: 'fontStyle', value: 'italic' },
|
|
30
|
+
overline: { type: 'textDecoration', value: 'overline' },
|
|
31
|
+
linethrough: { type: 'textDecoration', value: 'line-through' },
|
|
32
|
+
underline: { type: 'textDecoration', value: 'underline' },
|
|
33
|
+
capitalize: { type: 'textTransform', value: 'capitalize' },
|
|
34
|
+
uppercase: { type: 'textTransform', value: 'uppercase' },
|
|
35
|
+
lowercase: { type: 'textTransform', value: 'lowercase' },
|
|
36
|
+
};
|
|
37
|
+
var newProps = {};
|
|
38
|
+
for (var i in props) {
|
|
39
|
+
var type = (_a = fontSetting[i]) === null || _a === void 0 ? void 0 : _a.type;
|
|
40
|
+
if (!type) {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
var value = props[i] ? fontSetting[i].value : false;
|
|
44
|
+
newProps[type] = value;
|
|
45
|
+
}
|
|
46
|
+
return newProps;
|
|
47
|
+
};
|
|
48
|
+
var GenComp = function (_a) {
|
|
49
|
+
var props = _a.props, Comp = _a.Comp;
|
|
50
|
+
var currentTheme = (0, styled_components_1.useTheme)();
|
|
51
|
+
var invert = props.invert, value = props.value, suffix = props.suffix, color = props.color, children = props.children, theme = props.theme, style = props.style, className = props.className;
|
|
52
|
+
var displayText = children || value;
|
|
53
|
+
var localText = (currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme.localize) ? currentTheme.localize(displayText) : displayText;
|
|
54
|
+
return (react_1.default.createElement(Comp, __assign({}, genFontStylingProps(props), { color: color, theme: theme, className: className, style: style, invert: invert }),
|
|
55
|
+
localText,
|
|
56
|
+
suffix || ''));
|
|
57
|
+
};
|
|
58
|
+
var LABEL = function (props) { return react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.LABEL_STYLED }); };
|
|
59
|
+
exports.LABEL = LABEL;
|
|
60
|
+
var SANS_0 = function (props) { return react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SANS_0_STYLED }); };
|
|
61
|
+
exports.SANS_0 = SANS_0;
|
|
62
|
+
var SANS_2 = function (props) { return react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SANS_2_STYLED }); };
|
|
63
|
+
exports.SANS_2 = SANS_2;
|
|
64
|
+
var SANS_3 = function (props) { return react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SANS_3_STYLED }); };
|
|
65
|
+
exports.SANS_3 = SANS_3;
|
|
66
|
+
var SANS_4 = function (props) { return react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SANS_4_STYLED }); };
|
|
67
|
+
exports.SANS_4 = SANS_4;
|
|
68
|
+
var SANS_4_5 = function (props) { return (react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SANS_4_5_STYLED })); };
|
|
69
|
+
exports.SANS_4_5 = SANS_4_5;
|
|
70
|
+
var SANS_5_6 = function (props) { return (react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SANS_5_6_STYLED })); };
|
|
71
|
+
exports.SANS_5_6 = SANS_5_6;
|
|
72
|
+
var SANS_7_8 = function (props) { return (react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SANS_7_8_STYLED })); };
|
|
73
|
+
exports.SANS_7_8 = SANS_7_8;
|
|
74
|
+
var SERIF_3 = function (props) { return (react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SERIF_3_STYLED })); };
|
|
75
|
+
exports.SERIF_3 = SERIF_3;
|
|
76
|
+
var SERIF_3_4 = function (props) { return (react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SERIF_3_4_STYLED })); };
|
|
77
|
+
exports.SERIF_3_4 = SERIF_3_4;
|
|
78
|
+
var SERIF_4_5 = function (props) { return (react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SERIF_4_5_STYLED })); };
|
|
79
|
+
exports.SERIF_4_5 = SERIF_4_5;
|
|
80
|
+
var SERIF_5_6 = function (props) { return (react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SERIF_5_6_STYLED })); };
|
|
81
|
+
exports.SERIF_5_6 = SERIF_5_6;
|
|
82
|
+
var SERIF_7_8 = function (props) { return (react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SERIF_7_8_STYLED })); };
|
|
83
|
+
exports.SERIF_7_8 = SERIF_7_8;
|
|
84
|
+
var SERIF_9_10 = function (props) { return (react_1.default.createElement(GenComp, { props: props, Comp: index_styled_1.SERIF_9_10_STYLED })); };
|
|
85
|
+
exports.SERIF_9_10 = SERIF_9_10;
|
|
86
|
+
var BLOCKQUOTE = function (props) { return (react_1.default.createElement(GenComp, { props: __assign(__assign({}, props), { italic: true }), Comp: index_styled_1.BLOCKQUOTE_STYLED })); };
|
|
87
|
+
exports.BLOCKQUOTE = BLOCKQUOTE;
|
|
88
|
+
var TypoClassesProvider = function (props) { return react_1.default.createElement(index_styled_1.TYPOCLASSES, __assign({}, props)); };
|
|
89
|
+
exports.TypoClassesProvider = TypoClassesProvider;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const SANS_0_STYLED: any;
|
|
2
|
+
export const SANS_2_STYLED: any;
|
|
3
|
+
export const SANS_3_STYLED: any;
|
|
4
|
+
export const SANS_4_STYLED: any;
|
|
5
|
+
export const SANS_4_5_STYLED: any;
|
|
6
|
+
export const SANS_5_6_STYLED: any;
|
|
7
|
+
export const SANS_7_8_STYLED: any;
|
|
8
|
+
export const SERIF_3_STYLED: any;
|
|
9
|
+
export const SERIF_3_4_STYLED: any;
|
|
10
|
+
export const SERIF_4_5_STYLED: any;
|
|
11
|
+
export const SERIF_5_6_STYLED: any;
|
|
12
|
+
export const SERIF_7_8_STYLED: any;
|
|
13
|
+
export const SERIF_9_10_STYLED: any;
|
|
14
|
+
export const LABEL_STYLED: any;
|
|
15
|
+
export const BLOCKQUOTE_STYLED: any;
|
|
16
|
+
export const TYPOCLASSES: any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.TYPOCLASSES = exports.BLOCKQUOTE_STYLED = exports.LABEL_STYLED = exports.SERIF_9_10_STYLED = exports.SERIF_7_8_STYLED = exports.SERIF_5_6_STYLED = exports.SERIF_4_5_STYLED = exports.SERIF_3_4_STYLED = exports.SERIF_3_STYLED = exports.SANS_7_8_STYLED = exports.SANS_5_6_STYLED = exports.SANS_4_5_STYLED = exports.SANS_4_STYLED = exports.SANS_3_STYLED = exports.SANS_2_STYLED = exports.SANS_0_STYLED = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
var index_1 = require("../../themes/index");
|
|
13
|
+
exports.SANS_0_STYLED = styled_components_1.default.h6(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SANS_0);
|
|
14
|
+
exports.SANS_2_STYLED = styled_components_1.default.h4(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SANS_2);
|
|
15
|
+
exports.SANS_3_STYLED = styled_components_1.default.h4(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SANS_3);
|
|
16
|
+
exports.SANS_4_STYLED = styled_components_1.default.h5(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SANS_4);
|
|
17
|
+
exports.SANS_4_5_STYLED = styled_components_1.default.h5(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SANS_4_5);
|
|
18
|
+
exports.SANS_5_6_STYLED = styled_components_1.default.h4(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SANS_5_6);
|
|
19
|
+
exports.SANS_7_8_STYLED = styled_components_1.default.h2(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SANS_7_8);
|
|
20
|
+
exports.SERIF_3_STYLED = styled_components_1.default.h2(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SERIF_3);
|
|
21
|
+
exports.SERIF_3_4_STYLED = styled_components_1.default.p(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SERIF_3_4);
|
|
22
|
+
exports.SERIF_4_5_STYLED = styled_components_1.default.h2(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SERIF_4_5);
|
|
23
|
+
exports.SERIF_5_6_STYLED = styled_components_1.default.h3(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SERIF_5_6);
|
|
24
|
+
exports.SERIF_7_8_STYLED = styled_components_1.default.h2(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SERIF_7_8);
|
|
25
|
+
exports.SERIF_9_10_STYLED = styled_components_1.default.h1(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.SERIF_9_10);
|
|
26
|
+
exports.LABEL_STYLED = styled_components_1.default.h6(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.LABEL);
|
|
27
|
+
exports.BLOCKQUOTE_STYLED = styled_components_1.default.h3(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), index_1.typo.BLOCKQUOTE);
|
|
28
|
+
exports.TYPOCLASSES = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n .SANS_0 {\n ", "\n }\n\n .SANS_2 {\n ", "\n }\n\n .SANS_3 {\n ", "\n }\n\n .SANS_4 {\n ", "\n }\n\n .SERIF_3 {\n ", "\n }\n\n .SANS_4_5 {\n ", "\n }\n\n .SANS_5_6 {\n ", "\n }\n\n .SERIF_3_4 {\n ", "\n }\n\n .SERIF_4_5 {\n ", "\n }\n\n .SERIF_5_6 {\n ", "\n }\n\n .SERIF_7_8 {\n ", "\n }\n\n .SERIF_9_10 {\n ", "\n }\n\n .LABEL {\n ", "\n }\n\n .SANS_7_8 {\n ", "\n }\n\n .BLOCKQUOTE {\n ", "\n }\n\n .OKE-markdown {\n a,\n p {\n ", "\n }\n }\n"], ["\n .SANS_0 {\n ", "\n }\n\n .SANS_2 {\n ", "\n }\n\n .SANS_3 {\n ", "\n }\n\n .SANS_4 {\n ", "\n }\n\n .SERIF_3 {\n ", "\n }\n\n .SANS_4_5 {\n ", "\n }\n\n .SANS_5_6 {\n ", "\n }\n\n .SERIF_3_4 {\n ", "\n }\n\n .SERIF_4_5 {\n ", "\n }\n\n .SERIF_5_6 {\n ", "\n }\n\n .SERIF_7_8 {\n ", "\n }\n\n .SERIF_9_10 {\n ", "\n }\n\n .LABEL {\n ", "\n }\n\n .SANS_7_8 {\n ", "\n }\n\n .BLOCKQUOTE {\n ", "\n }\n\n .OKE-markdown {\n a,\n p {\n ", "\n }\n }\n"])), index_1.typo.SANS_0, index_1.typo.SANS_2, index_1.typo.SANS_3, index_1.typo.SANS_4, index_1.typo.SERIF_3, index_1.typo.SANS_4_5, index_1.typo.SANS_5_6, index_1.typo.SERIF_3_4, index_1.typo.SERIF_4_5, index_1.typo.SERIF_5_6, index_1.typo.SERIF_7_8, index_1.typo.SERIF_9_10, index_1.typo.LABEL, index_1.typo.SANS_7_8, index_1.typo.BLOCKQUOTE, index_1.typo.SANS_3);
|
|
29
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const GlobalStyles: any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.GlobalStyles = void 0;
|
|
8
|
+
var styled_components_1 = require("styled-components");
|
|
9
|
+
var themes_1 = require("../themes");
|
|
10
|
+
require("../assets/fonts/style.css");
|
|
11
|
+
exports.GlobalStyles = (0, styled_components_1.createGlobalStyle)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\n\nhtml{\n font-size:10px;\n color: ", ";\n}\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6, .p,\np, ul, li, input, label, button {\n font-family: 'noto_sans', 'noto_sans_devanagari', 'noto_sans_gu', 'noto_sans_te', 'noto_sans_kn', 'noto_sans_or', sans-serif ;\n font-weight: normal;\n font-style: normal;\n margin: 0;\n padding: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\nul, ol { padding-left: 2rem;}\n\n\n\n\n .bold{\n font-weight:bold;\n }\n\n .italic{\n font-style: italic;\n }\n\n \n"], ["\n\n\nhtml{\n font-size:10px;\n color: ", ";\n}\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6, .p,\np, ul, li, input, label, button {\n font-family: 'noto_sans', 'noto_sans_devanagari', 'noto_sans_gu', 'noto_sans_te', 'noto_sans_kn', 'noto_sans_or', sans-serif ;\n font-weight: normal;\n font-style: normal;\n margin: 0;\n padding: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\nul, ol { padding-left: 2rem;}\n\n\n\n\n .bold{\n font-weight:bold;\n }\n\n .italic{\n font-style: italic;\n }\n\n \n"])), themes_1.colors.greyColor100);
|
|
12
|
+
var templateObject_1;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
var React = __importStar(require("react"));
|
|
34
|
+
function OkeGoogleIcon(props) {
|
|
35
|
+
return (React.createElement("svg", __assign({ width: 18, height: 18, viewBox: "0 0 18 18", fill: "none" }, props),
|
|
36
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.64 9.205c0-.639-.057-1.252-.164-1.841H9v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.258h2.908c1.702-1.566 2.684-3.874 2.684-6.614z", fill: "#4285F4" }),
|
|
37
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 009 18z", fill: "#34A853" }),
|
|
38
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.964 10.71A5.41 5.41 0 013.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 000 9c0 1.452.348 2.827.957 4.042l3.007-2.332z", fill: "#FBBC05" }),
|
|
39
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 00.957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58z", fill: "#EA4335" })));
|
|
40
|
+
}
|
|
41
|
+
exports.default = OkeGoogleIcon;
|