oolib 1.2.0 → 1.5.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 +60 -0
- package/dist/components/tags/index.js +99 -0
- package/dist/components/tags/index.styled.d.ts +3 -0
- package/dist/components/tags/index.styled.js +82 -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 +24 -13
- package/.firebase/hosting.c3Rvcnlib29rLXN0YXRpYw.cache +0 -87
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'noto_sans';
|
|
3
|
+
src: url('./notosans-bold-webfont.woff2') format('woff2'),
|
|
4
|
+
url('./notosans-bold-webfont.woff') format('woff');
|
|
5
|
+
font-weight: bold;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'noto_sans';
|
|
11
|
+
src: url('./notosans-bolditalic-webfont.woff2') format('woff2'),
|
|
12
|
+
url('./notosans-bolditalic-webfont.woff') format('woff');
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
font-style: italic;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: 'noto_sans';
|
|
19
|
+
src: url('./notosans-italic-webfont.woff2') format('woff2'),
|
|
20
|
+
url('./notosans-italic-webfont.woff') format('woff');
|
|
21
|
+
font-weight: normal;
|
|
22
|
+
font-style: italic;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: 'noto_sans';
|
|
27
|
+
src: url('./notosans-regular-webfont.woff2') format('woff2'),
|
|
28
|
+
url('./notosans-regular-webfont.woff') format('woff');
|
|
29
|
+
font-weight: normal;
|
|
30
|
+
font-style: normal;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@font-face {
|
|
34
|
+
font-family: 'noto_sans';
|
|
35
|
+
src: url('./notosans-semibold-webfont.woff2') format('woff2'),
|
|
36
|
+
url('./notosans-semibold-webfont.woff') format('woff');
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
font-style: normal;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: 'noto_sans';
|
|
43
|
+
src: url('./notosans-semibolditalic-webfont.woff2') format('woff2'),
|
|
44
|
+
url('./notosans-semibolditalic-webfont.woff') format('woff');
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
font-style: italic;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@font-face {
|
|
50
|
+
font-family: 'noto_serif';
|
|
51
|
+
src: url('./notoserif-italic-webfont.woff2') format('woff2'),
|
|
52
|
+
url('./notoserif-italic-webfont.woff') format('woff');
|
|
53
|
+
font-weight: normal;
|
|
54
|
+
font-style: italic;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@font-face {
|
|
58
|
+
font-family: 'noto_serif';
|
|
59
|
+
src: url('./notoserif-regular-webfont.woff2') format('woff2'),
|
|
60
|
+
url('./notoserif-regular-webfont.woff') format('woff');
|
|
61
|
+
font-weight: normal;
|
|
62
|
+
font-style: normal;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: 'noto_serif';
|
|
67
|
+
src: url('./notoserif-bold-webfont.woff2') format('woff2'),
|
|
68
|
+
url('./notoserif-bold-webfont.woff') format('woff');
|
|
69
|
+
font-weight: bold;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@font-face {
|
|
74
|
+
font-family: 'noto_serif';
|
|
75
|
+
src: url('./notoserif-bolditalic-webfont.woff2') format('woff2'),
|
|
76
|
+
url('./notoserif-bolditalic-webfont.woff') format('woff');
|
|
77
|
+
font-weight: bold;
|
|
78
|
+
font-style: italic;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@font-face {
|
|
82
|
+
font-family: 'noto_sans_gu';
|
|
83
|
+
src: url('./notosansgujaratiui-bold-webfont.woff2') format('woff2'),
|
|
84
|
+
url('./notosansgujaratiui-bold-webfont.woff') format('woff');
|
|
85
|
+
font-weight: bold;
|
|
86
|
+
font-style: normal;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@font-face {
|
|
90
|
+
font-family: 'noto_sans_gu';
|
|
91
|
+
src: url('./notosansgujaratiui-regular-webfont.woff2') format('woff2'),
|
|
92
|
+
url('./notosansgujaratiui-regular-webfont.woff') format('woff');
|
|
93
|
+
font-weight: normal;
|
|
94
|
+
font-style: normal;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@font-face {
|
|
98
|
+
font-family: 'noto_sans_kn';
|
|
99
|
+
src: url('./notosanskannadaui-bold-webfont.woff2') format('woff2'),
|
|
100
|
+
url('./notosanskannadaui-bold-webfont.woff') format('woff');
|
|
101
|
+
font-weight: bold;
|
|
102
|
+
font-style: normal;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@font-face {
|
|
106
|
+
font-family: 'noto_sans_kn';
|
|
107
|
+
src: url('./notosanskannadaui-regular-webfont.woff2') format('woff2'),
|
|
108
|
+
url('./notosanskannadaui-regular-webfont.woff') format('woff');
|
|
109
|
+
font-weight: normal;
|
|
110
|
+
font-style: normal;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@font-face {
|
|
114
|
+
font-family: 'noto_sans_or';
|
|
115
|
+
src: url('./notosansoriyaui-bold-webfont.woff2') format('woff2'),
|
|
116
|
+
url('./notosansoriyaui-bold-webfont.woff') format('woff');
|
|
117
|
+
font-weight: bold;
|
|
118
|
+
font-style: normal;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@font-face {
|
|
122
|
+
font-family: 'noto_sans_or';
|
|
123
|
+
src: url('./notosansoriyaui-regular-webfont.woff2') format('woff2'),
|
|
124
|
+
url('./notosansoriyaui-regular-webfont.woff') format('woff');
|
|
125
|
+
font-weight: normal;
|
|
126
|
+
font-style: normal;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@font-face {
|
|
130
|
+
font-family: 'noto_sans_te';
|
|
131
|
+
src: url('./notosansteluguui-bold-webfont.woff2') format('woff2'),
|
|
132
|
+
url('./notosansteluguui-bold-webfont.woff') format('woff');
|
|
133
|
+
font-weight: bold;
|
|
134
|
+
font-style: normal;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@font-face {
|
|
138
|
+
font-family: 'noto_sans_te';
|
|
139
|
+
src: url('./notosansteluguui-regular-webfont.woff2') format('woff2'),
|
|
140
|
+
url('./notosansteluguui-regular-webfont.woff') format('woff');
|
|
141
|
+
font-weight: normal;
|
|
142
|
+
font-style: normal;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@font-face {
|
|
146
|
+
font-family: 'noto_sans_devanagari';
|
|
147
|
+
src: url('./notosansdevanagari-regular.woff2') format('woff2');
|
|
148
|
+
font-weight: normal;
|
|
149
|
+
font-style: normal;
|
|
150
|
+
}
|
|
151
|
+
@font-face {
|
|
152
|
+
font-family: 'noto_sans_devanagari';
|
|
153
|
+
src: url('./notosansdevanagari-bold.woff2') format('woff2');
|
|
154
|
+
font-weight: bold;
|
|
155
|
+
font-style: normal;
|
|
156
|
+
}
|
|
157
|
+
@font-face {
|
|
158
|
+
font-family: 'noto_sans_devanagari';
|
|
159
|
+
src: url('./NotoSansDevanagari-SemiBold.woff2') format('woff2');
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
font-style: normal;
|
|
162
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export function ButtonPrimary(props: any): JSX.Element;
|
|
2
|
+
export function ButtonSecondary(props: any): JSX.Element;
|
|
3
|
+
export function ButtonCustom(props: any): JSX.Element;
|
|
4
|
+
export function ButtonGhost(props: any): JSX.Element;
|
|
5
|
+
export function UploadButton(props: any): JSX.Element;
|
|
6
|
+
export function GoogleLogin(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 __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
|
+
exports.GoogleLogin = exports.UploadButton = exports.ButtonGhost = exports.ButtonCustom = exports.ButtonSecondary = exports.ButtonPrimary = void 0;
|
|
34
|
+
var react_1 = __importStar(require("react"));
|
|
35
|
+
var index_styled_1 = require("./index.styled");
|
|
36
|
+
var typo_1 = require("../typo");
|
|
37
|
+
var icons_1 = require("../../icons");
|
|
38
|
+
var DisplayIcon = function (_a) {
|
|
39
|
+
var icon = _a.icon, size = _a.size;
|
|
40
|
+
var IconComp = icons_1.phosphorIcons[icon];
|
|
41
|
+
return react_1.default.createElement(react_1.default.Fragment, null, IconComp && react_1.default.createElement(IconComp, { size: size, weight: "bold" }));
|
|
42
|
+
};
|
|
43
|
+
var ButtonStyledWrapper = function (_a) {
|
|
44
|
+
var props = _a.props, variant = _a.variant;
|
|
45
|
+
var id = props.id, link = props.link, children = props.children, value = props.value, submit = props.submit, icon = props.icon, onClick = props.onClick, active = props.active, S = props.S, disabled = props.disabled, invert = props.invert, theme = props.theme, width = props.width, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, color = props.color, style = props.style, className = props.className;
|
|
46
|
+
var displayText = (link === null || link === void 0 ? void 0 : link.displayText) || children || value;
|
|
47
|
+
var size = (S && "S") || 'M';
|
|
48
|
+
var composition = icon && displayText ? 'icon+text' : !displayText && 'iconOnly';
|
|
49
|
+
return (react_1.default.createElement(index_styled_1.ButtonStyled, { id: id, style: style, className: className, variant: variant, size: size, active: active, invert: invert, disabled: disabled, theme: theme, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, type: submit ? 'submit' : 'button', onClick: onClick, composition: composition, width: width, color: color },
|
|
50
|
+
icon && react_1.default.createElement(DisplayIcon, { icon: icon, size: S ? 15 : 20 }),
|
|
51
|
+
displayText && react_1.default.createElement(typo_1.SANS_3, { semibold: true }, displayText)));
|
|
52
|
+
};
|
|
53
|
+
var Button = function (_a) {
|
|
54
|
+
var props = _a.props, variant = _a.variant;
|
|
55
|
+
var link = props.link, onClick = props.onClick;
|
|
56
|
+
var handleOpenLink = function () {
|
|
57
|
+
window.open(link.val);
|
|
58
|
+
};
|
|
59
|
+
var buttonAction = onClick || handleOpenLink;
|
|
60
|
+
return (react_1.default.createElement(ButtonStyledWrapper, { props: __assign(__assign({}, props), { onClick: buttonAction }), variant: variant }));
|
|
61
|
+
};
|
|
62
|
+
var ButtonPrimary = function (props) { return (react_1.default.createElement(Button, { props: props, variant: 'primary' })); };
|
|
63
|
+
exports.ButtonPrimary = ButtonPrimary;
|
|
64
|
+
var ButtonSecondary = function (props) { return (react_1.default.createElement(Button, { props: props, variant: 'secondary' })); };
|
|
65
|
+
exports.ButtonSecondary = ButtonSecondary;
|
|
66
|
+
var ButtonCustom = function (props) { return (react_1.default.createElement(Button, { props: props, variant: 'custom' })); };
|
|
67
|
+
exports.ButtonCustom = ButtonCustom;
|
|
68
|
+
var ButtonGhost = function (props) { return react_1.default.createElement(Button, { props: props, variant: 'ghost' }); };
|
|
69
|
+
exports.ButtonGhost = ButtonGhost;
|
|
70
|
+
var UploadButton = function (props) {
|
|
71
|
+
var inputRef = (0, react_1.useRef)(null);
|
|
72
|
+
var mutilple = props.mutilple, onChange = props.onChange, variant = props.variant, id = props.id;
|
|
73
|
+
var handleFileUpload = function () {
|
|
74
|
+
inputRef.current.click();
|
|
75
|
+
};
|
|
76
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
77
|
+
react_1.default.createElement("input", { id: id, ref: inputRef, type: "file", multiple: mutilple, onChange: onChange, style: { display: 'none' } }),
|
|
78
|
+
react_1.default.createElement(ButtonStyledWrapper, { props: __assign(__assign({}, props), { onClick: handleFileUpload }), variant: variant || 'secondary' })));
|
|
79
|
+
};
|
|
80
|
+
exports.UploadButton = UploadButton;
|
|
81
|
+
var GoogleLogin = function (props) {
|
|
82
|
+
var theme = props.theme, S = props.S, disabled = props.disabled, width = props.width;
|
|
83
|
+
var displayText = 'Sign up with Google';
|
|
84
|
+
var size = (S && "S") || 'M';
|
|
85
|
+
return (react_1.default.createElement(index_styled_1.ButtonStyled, { size: size, disabled: disabled, width: width, onClick: function () { return window.open('/api/OAuth/google', '_self'); }, variant: "googleAuth", theme: theme },
|
|
86
|
+
react_1.default.createElement(DisplayIcon, { icon: 'OkeGoogleIcon', size: 24 }),
|
|
87
|
+
displayText && react_1.default.createElement(typo_1.SANS_3, { semibold: true }, displayText)));
|
|
88
|
+
};
|
|
89
|
+
exports.GoogleLogin = GoogleLogin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ButtonStyled: any;
|
|
@@ -0,0 +1,176 @@
|
|
|
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.ButtonStyled = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
var styled_components_2 = require("styled-components");
|
|
13
|
+
var mixins_1 = require("../../themes/mixins");
|
|
14
|
+
var colors_1 = require("../../themes/colors");
|
|
15
|
+
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;
|
|
16
|
+
//sizes
|
|
17
|
+
var SIZES = {
|
|
18
|
+
S: "3rem",
|
|
19
|
+
M: "4rem",
|
|
20
|
+
};
|
|
21
|
+
var ButtonPrimary = (0, styled_components_2.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: none; // $none;\n background-color: ", "; // primaryColor40: primaryColor100\n color: ", "; // greyColor100: white\n\n ", "\n &:hover {\n background-color: ", "; // $primaryColor10 : $primaryColor40\n color: ", "; // greyColor100 : $primaryColorText;\n }\n"], ["\n border: none; // $none;\n background-color: ", "; // primaryColor40: primaryColor100\n color: ", "; // greyColor100: white\n\n ", "\n &:hover {\n background-color: ", "; // $primaryColor10 : $primaryColor40\n color: ", "; // greyColor100 : $primaryColorText;\n }\n"])), function (_a) {
|
|
22
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
23
|
+
return invert
|
|
24
|
+
? colors.primaryColor40
|
|
25
|
+
: colors.primaryColor100;
|
|
26
|
+
}, function (_a) {
|
|
27
|
+
var invert = _a.invert;
|
|
28
|
+
return invert ? greyColor100 : white;
|
|
29
|
+
}, function (_a) {
|
|
30
|
+
var disabled = _a.disabled;
|
|
31
|
+
return disabled && (0, styled_components_2.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", "; //greyColor70 : $greyColor15;\n color: ", "; //$greyColor40;\n pointer-events: none;\n "], ["\n background-color: ", "; //greyColor70 : $greyColor15;\n color: ", "; //$greyColor40;\n pointer-events: none;\n "])), function (_a) {
|
|
32
|
+
var invert = _a.invert;
|
|
33
|
+
return invert ? greyColor70 : greyColor15;
|
|
34
|
+
}, greyColor40);
|
|
35
|
+
}, function (_a) {
|
|
36
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
37
|
+
return invert
|
|
38
|
+
? colors.primaryColor10
|
|
39
|
+
: colors.primaryColor40;
|
|
40
|
+
}, function (_a) {
|
|
41
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
42
|
+
return invert
|
|
43
|
+
? greyColor100
|
|
44
|
+
: colors.primaryColorText;
|
|
45
|
+
});
|
|
46
|
+
var ButtonSecondary = (0, styled_components_2.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border: 2px solid\n ", "; // primaryColor40 : $primaryColor100;\n background-color: ", "; // greyColor100: white\n color: ", "; // primaryColor40: primaryColorText\n\n ", "\n ", "\n &:hover {\n background-color: ", "; // $primaryColor10 : $primaryColor40\n color: ", "; // $primaryColorText;\n }\n"], ["\n border: 2px solid\n ", "; // primaryColor40 : $primaryColor100;\n background-color: ", "; // greyColor100: white\n color: ", "; // primaryColor40: primaryColorText\n\n ", "\n ", "\n &:hover {\n background-color: ", "; // $primaryColor10 : $primaryColor40\n color: ", "; // $primaryColorText;\n }\n"])), function (_a) {
|
|
47
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
48
|
+
return invert
|
|
49
|
+
? colors.primaryColor40
|
|
50
|
+
: colors.primaryColor100;
|
|
51
|
+
}, function (_a) {
|
|
52
|
+
var invert = _a.invert;
|
|
53
|
+
return invert ? greyColor100 : white;
|
|
54
|
+
}, function (_a) {
|
|
55
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
56
|
+
return invert
|
|
57
|
+
? colors.primaryColor40
|
|
58
|
+
: colors.primaryColorText;
|
|
59
|
+
}, function (_a) {
|
|
60
|
+
var active = _a.active;
|
|
61
|
+
return active && (0, styled_components_2.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n "], ["\n background-color: ", ";\n color: ", ";\n "])), function (_a) {
|
|
62
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
63
|
+
return invert ? colors.primaryColor40 : colors.primaryColor10;
|
|
64
|
+
}, function (_a) {
|
|
65
|
+
var colors = _a.theme.colors;
|
|
66
|
+
return colors.primaryColorText;
|
|
67
|
+
});
|
|
68
|
+
}, function (_a) {
|
|
69
|
+
var disabled = _a.disabled;
|
|
70
|
+
return disabled && (0, styled_components_2.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", "; //greyColor80 : $white;\n border: 2px solid ", ";\n color: ", "; //$greyColor40;\n pointer-events: none;\n "], ["\n background-color: ", "; //greyColor80 : $white;\n border: 2px solid ", ";\n color: ", "; //$greyColor40;\n pointer-events: none;\n "])), function (_a) {
|
|
71
|
+
var invert = _a.invert;
|
|
72
|
+
return invert ? greyColor80 : white;
|
|
73
|
+
}, greyColor15, greyColor40);
|
|
74
|
+
}, function (_a) {
|
|
75
|
+
var invert = _a.invert, active = _a.active, colors = _a.theme.colors;
|
|
76
|
+
return active
|
|
77
|
+
? ""
|
|
78
|
+
: invert
|
|
79
|
+
? colors.primaryColor10
|
|
80
|
+
: colors.primaryColor40;
|
|
81
|
+
}, function (_a) {
|
|
82
|
+
var colors = _a.theme.colors;
|
|
83
|
+
return colors.primaryColorText;
|
|
84
|
+
});
|
|
85
|
+
var ButtonCustom = (0, styled_components_2.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: 2px solid\n ", "; // $primaryColor100;\n box-shadow: -4px 4px 1px\n ", "; //$lightShadowColor;\n background-color: ", "; //greyColor100 : $white;\n color: ", "; // primaryColor40 : $primaryColorText;\n\n ", "\n &:hover {\n background-color: ", "; // $greyColor80 : $primaryColor40\n }\n"], ["\n border: 2px solid\n ", "; // $primaryColor100;\n box-shadow: -4px 4px 1px\n ", "; //$lightShadowColor;\n background-color: ", "; //greyColor100 : $white;\n color: ", "; // primaryColor40 : $primaryColorText;\n\n ", "\n &:hover {\n background-color: ", "; // $greyColor80 : $primaryColor40\n }\n"])), function (_a) {
|
|
86
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
87
|
+
return invert
|
|
88
|
+
? colors.primaryColor40
|
|
89
|
+
: colors.primaryColor100;
|
|
90
|
+
}, function (_a) {
|
|
91
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
92
|
+
return invert
|
|
93
|
+
? colors.primaryColor40
|
|
94
|
+
: colors.primaryColor100;
|
|
95
|
+
}, function (_a) {
|
|
96
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
97
|
+
return invert ? greyColor100 : white;
|
|
98
|
+
}, function (_a) {
|
|
99
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
100
|
+
return invert
|
|
101
|
+
? colors.primaryColor40
|
|
102
|
+
: colors.primaryColorText;
|
|
103
|
+
}, function (_a) {
|
|
104
|
+
var disabled = _a.disabled;
|
|
105
|
+
return disabled && (0, styled_components_2.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", "; //$greyColor40;\n border: 2px solid ", "; // $darkShadowColor : $greyColor15;\n box-shadow: -4px 4px 1px ", "; // $darkShadowColor;\n pointer-events: none;\n background-color: ", "; //greyColor80 : white\n "], ["\n color: ", "; //$greyColor40;\n border: 2px solid ", "; // $darkShadowColor : $greyColor15;\n box-shadow: -4px 4px 1px ", "; // $darkShadowColor;\n pointer-events: none;\n background-color: ", "; //greyColor80 : white\n "])), greyColor40, function (_a) {
|
|
106
|
+
var invert = _a.invert;
|
|
107
|
+
return (invert ? greyColor40 : greyColor15);
|
|
108
|
+
}, greyColor40, function (_a) {
|
|
109
|
+
var invert = _a.invert;
|
|
110
|
+
return invert ? greyColor80 : white;
|
|
111
|
+
});
|
|
112
|
+
}, function (_a) {
|
|
113
|
+
var invert = _a.invert, colors = _a.theme.colors;
|
|
114
|
+
return invert
|
|
115
|
+
? greyColor80
|
|
116
|
+
: colors.primaryColor40;
|
|
117
|
+
});
|
|
118
|
+
var ButtonGhost = (0, styled_components_2.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", "; //$white;\n color: ", "; //primaryColor40 : greyColor100\n ", "\n ", "\n\n ", "\n &:hover {\n background-color: ", "; // $greyColor70 : $primaryColor10\n }\n"], ["\n background-color: ", "; //$white;\n color: ", "; //primaryColor40 : greyColor100\n ", "\n ", "\n\n ", "\n &:hover {\n background-color: ", "; // $greyColor70 : $primaryColor10\n }\n"])), function (_a) {
|
|
119
|
+
var active = _a.active, colors = _a.theme.colors;
|
|
120
|
+
return active ? colors.primaryColor40 : 'inherit';
|
|
121
|
+
}, function (_a) {
|
|
122
|
+
var invert = _a.invert, composition = _a.composition, colors = _a.theme.colors;
|
|
123
|
+
return invert
|
|
124
|
+
? colors.primaryColor40
|
|
125
|
+
: composition === 'iconOnly'
|
|
126
|
+
? greyColor100
|
|
127
|
+
: colors.primaryColorText;
|
|
128
|
+
}, function (_a) {
|
|
129
|
+
var color = _a.color;
|
|
130
|
+
return color && (0, styled_components_2.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), color);
|
|
131
|
+
}, function (_a) {
|
|
132
|
+
var invert = _a.invert;
|
|
133
|
+
return invert && (0, styled_components_2.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), function (_a) {
|
|
134
|
+
var active = _a.active;
|
|
135
|
+
return active ? greyColor80 : greyColor100;
|
|
136
|
+
});
|
|
137
|
+
}, function (_a) {
|
|
138
|
+
var disabled = _a.disabled;
|
|
139
|
+
return disabled && (0, styled_components_2.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n color: ", "; //$greyColor40;\n pointer-events: none;\n "], ["\n color: ", "; //$greyColor40;\n pointer-events: none;\n "])), greyColor40);
|
|
140
|
+
}, function (_a) {
|
|
141
|
+
var invert = _a.invert, active = _a.active, colors = _a.theme.colors;
|
|
142
|
+
return active
|
|
143
|
+
? ""
|
|
144
|
+
: invert
|
|
145
|
+
? greyColor70
|
|
146
|
+
: colors.primaryColor10;
|
|
147
|
+
});
|
|
148
|
+
var GoogleButton = (0, styled_components_2.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n color: #4285f4;\n border: 2px solid #4285f4;\n background-color: ", ";\n ", "\n"], ["\n color: #4285f4;\n border: 2px solid #4285f4;\n background-color: ", ";\n ", "\n"])), white, function (_a) {
|
|
149
|
+
var disabled = _a.disabled;
|
|
150
|
+
return disabled && (0, styled_components_2.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n pointer-events: none;\n "], ["\n pointer-events: none;\n "])));
|
|
151
|
+
});
|
|
152
|
+
var buttonVariantSetting = {
|
|
153
|
+
primary: ButtonPrimary,
|
|
154
|
+
secondary: ButtonSecondary,
|
|
155
|
+
ghost: ButtonGhost,
|
|
156
|
+
custom: ButtonCustom,
|
|
157
|
+
googleAuth: GoogleButton,
|
|
158
|
+
};
|
|
159
|
+
exports.ButtonStyled = styled_components_1.default.button(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n\n ", "\n\n white-space: nowrap;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n cursor: pointer;\n border: none;\n border-radius: 2px;\n\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n\n white-space: nowrap;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n cursor: pointer;\n border: none;\n border-radius: 2px;\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
160
|
+
var composition = _a.composition, size = _a.size;
|
|
161
|
+
switch (composition) {
|
|
162
|
+
case 'iconOnly':
|
|
163
|
+
return (0, styled_components_2.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n padding: 0;\n height: ", ";\n width: ", ";\n "], ["\n padding: 0;\n height: ", ";\n width: ", ";\n "])), SIZES[size], SIZES[size]);
|
|
164
|
+
case 'icon+text':
|
|
165
|
+
return (0, styled_components_2.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n padding: 0 2rem 0 1.5rem;\n height: ", ";\n "], ["\n padding: 0 2rem 0 1.5rem;\n height: ", ";\n "])), SIZES[size]);
|
|
166
|
+
default:
|
|
167
|
+
return (0, styled_components_2.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n padding: 0 2rem;\n height: ", ";\n "], ["\n padding: 0 2rem;\n height: ", ";\n "])), SIZES[size]);
|
|
168
|
+
}
|
|
169
|
+
}, function (_a) {
|
|
170
|
+
var width = _a.width;
|
|
171
|
+
return width && (0, styled_components_2.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n width: ", ";\n "], ["\n width: ", ";\n "])), width);
|
|
172
|
+
}, (0, mixins_1.kpTransition)('background-color'), function (_a) {
|
|
173
|
+
var variant = _a.variant;
|
|
174
|
+
return buttonVariantSetting[variant];
|
|
175
|
+
});
|
|
176
|
+
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, templateObject_17, templateObject_18;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function Loader(props: any): JSX.Element;
|