oolib 2.5.4 → 2.5.7

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.
@@ -18,7 +18,7 @@ var SIZES = {
18
18
  S: "3rem",
19
19
  M: "4rem",
20
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) {
21
+ var ButtonPrimary = (0, styled_components_2.css)(templateObject_3 || (templateObject_3 = __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
22
  var invert = _a.invert, colors = _a.theme.colors;
23
23
  return invert
24
24
  ? colors.primaryColor40
@@ -26,9 +26,12 @@ var ButtonPrimary = (0, styled_components_2.css)(templateObject_2 || (templateOb
26
26
  }, function (_a) {
27
27
  var invert = _a.invert;
28
28
  return invert ? greyColor100 : white;
29
+ }, function (_a) {
30
+ var color = _a.color;
31
+ return color && (0, styled_components_2.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), color);
29
32
  }, function (_a) {
30
33
  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) {
34
+ return disabled && (0, styled_components_2.css)(templateObject_2 || (templateObject_2 = __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
35
  var invert = _a.invert;
33
36
  return invert ? greyColor70 : greyColor15;
34
37
  }, greyColor40);
@@ -43,7 +46,7 @@ var ButtonPrimary = (0, styled_components_2.css)(templateObject_2 || (templateOb
43
46
  ? greyColor100
44
47
  : colors.primaryColorText;
45
48
  });
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) {
49
+ var ButtonSecondary = (0, styled_components_2.css)(templateObject_7 || (templateObject_7 = __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
50
  var invert = _a.invert, colors = _a.theme.colors;
48
51
  return invert
49
52
  ? colors.primaryColor40
@@ -56,9 +59,12 @@ var ButtonSecondary = (0, styled_components_2.css)(templateObject_5 || (template
56
59
  return invert
57
60
  ? colors.primaryColor40
58
61
  : colors.primaryColorText;
62
+ }, function (_a) {
63
+ var color = _a.color;
64
+ return color && (0, styled_components_2.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), color);
59
65
  }, function (_a) {
60
66
  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) {
67
+ return active && (0, styled_components_2.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n "], ["\n background-color: ", ";\n color: ", ";\n "])), function (_a) {
62
68
  var invert = _a.invert, colors = _a.theme.colors;
63
69
  return invert ? colors.primaryColor40 : colors.primaryColor10;
64
70
  }, function (_a) {
@@ -67,7 +73,7 @@ var ButtonSecondary = (0, styled_components_2.css)(templateObject_5 || (template
67
73
  });
68
74
  }, function (_a) {
69
75
  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) {
76
+ return disabled && (0, styled_components_2.css)(templateObject_6 || (templateObject_6 = __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
77
  var invert = _a.invert;
72
78
  return invert ? greyColor80 : white;
73
79
  }, greyColor15, greyColor40);
@@ -82,7 +88,7 @@ var ButtonSecondary = (0, styled_components_2.css)(templateObject_5 || (template
82
88
  var colors = _a.theme.colors;
83
89
  return colors.primaryColorText;
84
90
  });
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) {
91
+ var ButtonCustom = (0, styled_components_2.css)(templateObject_10 || (templateObject_10 = __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
92
  var invert = _a.invert, colors = _a.theme.colors;
87
93
  return invert
88
94
  ? colors.primaryColor40
@@ -100,9 +106,12 @@ var ButtonCustom = (0, styled_components_2.css)(templateObject_7 || (templateObj
100
106
  return invert
101
107
  ? colors.primaryColor40
102
108
  : colors.primaryColorText;
109
+ }, function (_a) {
110
+ var color = _a.color;
111
+ return color && (0, styled_components_2.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), color);
103
112
  }, function (_a) {
104
113
  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) {
114
+ return disabled && (0, styled_components_2.css)(templateObject_9 || (templateObject_9 = __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
115
  var invert = _a.invert;
107
116
  return (invert ? greyColor40 : greyColor15);
108
117
  }, greyColor40, function (_a) {
@@ -115,28 +124,28 @@ var ButtonCustom = (0, styled_components_2.css)(templateObject_7 || (templateObj
115
124
  ? greyColor80
116
125
  : colors.primaryColor40;
117
126
  });
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) {
127
+ var ButtonGhost = (0, styled_components_2.css)(templateObject_14 || (templateObject_14 = __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
128
  var active = _a.active, colors = _a.theme.colors;
120
- return active ? colors.primaryColor40 : 'inherit';
129
+ return active ? colors.primaryColor40 : "inherit";
121
130
  }, function (_a) {
122
131
  var invert = _a.invert, composition = _a.composition, colors = _a.theme.colors;
123
132
  return invert
124
133
  ? colors.primaryColor40
125
- : composition === 'iconOnly'
134
+ : composition === "iconOnly"
126
135
  ? greyColor100
127
136
  : colors.primaryColorText;
128
137
  }, function (_a) {
129
138
  var color = _a.color;
130
- return color && (0, styled_components_2.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), color);
139
+ return color && (0, styled_components_2.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), color);
131
140
  }, function (_a) {
132
141
  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) {
142
+ return invert && (0, styled_components_2.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), function (_a) {
134
143
  var active = _a.active;
135
144
  return active ? greyColor80 : greyColor100;
136
145
  });
137
146
  }, function (_a) {
138
147
  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);
148
+ return disabled && (0, styled_components_2.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n color: ", "; //$greyColor40;\n pointer-events: none;\n "], ["\n color: ", "; //$greyColor40;\n pointer-events: none;\n "])), greyColor40);
140
149
  }, function (_a) {
141
150
  var invert = _a.invert, active = _a.active, colors = _a.theme.colors;
142
151
  return active
@@ -145,9 +154,9 @@ var ButtonGhost = (0, styled_components_2.css)(templateObject_11 || (templateObj
145
154
  ? greyColor70
146
155
  : colors.primaryColor10;
147
156
  });
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) {
157
+ var GoogleButton = (0, styled_components_2.css)(templateObject_16 || (templateObject_16 = __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
158
  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 "])));
159
+ return disabled && (0, styled_components_2.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n pointer-events: none;\n "], ["\n pointer-events: none;\n "])));
151
160
  });
152
161
  var buttonVariantSetting = {
153
162
  primary: ButtonPrimary,
@@ -156,21 +165,21 @@ var buttonVariantSetting = {
156
165
  custom: ButtonCustom,
157
166
  googleAuth: GoogleButton,
158
167
  };
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) {
168
+ exports.ButtonStyled = styled_components_1.default.button(templateObject_21 || (templateObject_21 = __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
169
  var composition = _a.composition, size = _a.size;
161
170
  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]);
171
+ case "iconOnly":
172
+ return (0, styled_components_2.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n padding: 0;\n height: ", ";\n width: ", ";\n "], ["\n padding: 0;\n height: ", ";\n width: ", ";\n "])), SIZES[size], SIZES[size]);
173
+ case "icon+text":
174
+ return (0, styled_components_2.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n padding: 0 2rem 0 1.5rem;\n height: ", ";\n "], ["\n padding: 0 2rem 0 1.5rem;\n height: ", ";\n "])), SIZES[size]);
166
175
  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]);
176
+ return (0, styled_components_2.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n padding: 0 2rem;\n height: ", ";\n "], ["\n padding: 0 2rem;\n height: ", ";\n "])), SIZES[size]);
168
177
  }
169
178
  }, function (_a) {
170
179
  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.transition)('background-color'), function (_a) {
180
+ return width && (0, styled_components_2.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n width: ", ";\n "], ["\n width: ", ";\n "])), width);
181
+ }, (0, mixins_1.transition)("background-color"), function (_a) {
173
182
  var variant = _a.variant;
174
183
  return buttonVariantSetting[variant];
175
184
  });
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;
185
+ 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, templateObject_19, templateObject_20, templateObject_21;
@@ -211,7 +211,7 @@ var URLInput = function (props) {
211
211
  return [2 /*return*/, { type: 'success', msg: 'valid url' }];
212
212
  case 3:
213
213
  err_1 = _a.sent();
214
- if (/(https?|ftp):\/\/(-\.)?([^\s/?\.#-]+\.?)+(\/[^\s]*)?$/.test(value)) {
214
+ if (/\b(([\w-]+:\/\/?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/)))/.test(value)) {
215
215
  return [2 /*return*/, { type: 'success', msg: 'valid url' }];
216
216
  }
217
217
  return [2 /*return*/, { type: 'error', msg: 'Enter a valid url...' }];
@@ -7,7 +7,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.GlobalStyles = void 0;
8
8
  var styled_components_1 = require("styled-components");
9
9
  var themes_1 = require("../themes");
10
+ var normalize_1 = require("./normalize");
10
11
  require("../assets/fonts/style.css");
11
12
  var greyColor15 = themes_1.colors.greyColor15, greyColor40 = themes_1.colors.greyColor40, greyColor80 = themes_1.colors.greyColor80, greyColor100 = themes_1.colors.greyColor100;
12
- exports.GlobalStyles = (0, styled_components_1.createGlobalStyle)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\n\nhtml{\n font-size:10px;\n color: ", ";\n}\n::-webkit-scrollbar { width: 1rem}\n::-webkit-scrollbar-track {background-color: ", ";}\n::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 0.5rem;\n}\n::-webkit-scrollbar-thumb:hover {background-color: ", ";}\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::-webkit-scrollbar { width: 1rem}\n::-webkit-scrollbar-track {background-color: ", ";}\n::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 0.5rem;\n}\n::-webkit-scrollbar-thumb:hover {background-color: ", ";}\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"])), greyColor100, greyColor15, greyColor40, greyColor80);
13
+ exports.GlobalStyles = (0, styled_components_1.createGlobalStyle)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\n//some normalize code picked off the internet\n", "\n\nhtml{\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-size:10px;\n color: ", ";\n}\n\n::-webkit-scrollbar { width: 1rem}\n::-webkit-scrollbar-track {background-color: ", ";}\n::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 0.5rem;\n}\n::-webkit-scrollbar-thumb:hover {background-color: ", ";}\n\n\nbutton:focus, input:focus, textarea:focus{\n outline: none;\n}\n\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6, .p,\np, ul, li, input, label, button, span {\n ", "\n font-weight: normal;\n font-style: normal;\n margin: 0;\n padding: 0;\n}\n\nul, ol { padding-left: 2rem; margin-bottom: 0;}\nli { list-style: none }\n\n.sansSerif{\n ", "\n}\n\n.serif{\n ", "\n}\n\n.medium {\n font-weight: 500;\n}\n\n.semibold {\n font-weight: 600;\n}\n\n.bold{\n font-weight:bold;\n}\n\n.italic{\n font-style: italic;\n}\n\nb, strong {\n font-weight: bold;\n}\n\n \n"], ["\n\n//some normalize code picked off the internet\n", "\n\nhtml{\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-size:10px;\n color: ", ";\n}\n\n::-webkit-scrollbar { width: 1rem}\n::-webkit-scrollbar-track {background-color: ", ";}\n::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 0.5rem;\n}\n::-webkit-scrollbar-thumb:hover {background-color: ", ";}\n\n\nbutton:focus, input:focus, textarea:focus{\n outline: none;\n}\n\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6, .p,\np, ul, li, input, label, button, span {\n ", "\n font-weight: normal;\n font-style: normal;\n margin: 0;\n padding: 0;\n}\n\nul, ol { padding-left: 2rem; margin-bottom: 0;}\nli { list-style: none }\n\n.sansSerif{\n ", "\n}\n\n.serif{\n ", "\n}\n\n.medium {\n font-weight: 500;\n}\n\n.semibold {\n font-weight: 600;\n}\n\n.bold{\n font-weight:bold;\n}\n\n.italic{\n font-style: italic;\n}\n\nb, strong {\n font-weight: bold;\n}\n\n \n"])), normalize_1.normalize, greyColor100, greyColor15, greyColor40, greyColor80, themes_1.typo.sansSerif, themes_1.typo.sansSerif, themes_1.typo.serif);
13
14
  var templateObject_1;
@@ -0,0 +1 @@
1
+ export const normalize: "\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the 'main' element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on 'h1' elements within 'section' and\n * 'article' contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd 'em' font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd 'em' font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent 'sub' and 'sup' elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\n// button:-moz-focusring,\n// [type=\"button\"]:-moz-focusring,\n// [type=\"reset\"]:-moz-focusring,\n// [type=\"submit\"]:-moz-focusring {\n// outline: 1px dotted ButtonText;\n// }\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from 'fieldset' elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * 'fieldset' elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to 'inherit' in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\n\n";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalize = void 0;
4
+ exports.normalize = "\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the 'main' element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on 'h1' elements within 'section' and\n * 'article' contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd 'em' font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd 'em' font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent 'sub' and 'sup' elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\n// button:-moz-focusring,\n// [type=\"button\"]:-moz-focusring,\n// [type=\"reset\"]:-moz-focusring,\n// [type=\"submit\"]:-moz-focusring {\n// outline: 1px dotted ButtonText;\n// }\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from 'fieldset' elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * 'fieldset' elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to 'inherit' in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\n\n";
@@ -1,4 +1,6 @@
1
1
  export namespace typo {
2
+ export { serif };
3
+ export { sansSerif };
2
4
  export { SANS_0 };
3
5
  export { SANS_2 };
4
6
  export { SANS_3 };
@@ -15,6 +17,8 @@ export namespace typo {
15
17
  export { SANS_5_6 };
16
18
  export { BLOCKQUOTE };
17
19
  }
20
+ declare const serif: any;
21
+ declare const sansSerif: any;
18
22
  declare const SANS_0: any;
19
23
  declare const SANS_2: any;
20
24
  declare const SANS_3: any;
@@ -234,11 +234,13 @@ var LABEL = (0, styled_components_1.css)(templateObject_17 || (templateObject_17
234
234
  var color = _a.color, invert = _a.invert;
235
235
  return (invert ? white : color);
236
236
  }, sansSerif);
237
- var BLOCKQUOTE = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n padding: 2rem;\n border-left: 4px solid\n ", ";\n ", "\n color: ", ";\n"], ["\n padding: 2rem;\n border-left: 4px solid\n ", ";\n ", "\n color: ", ";\n"])), function (_a) {
237
+ var BLOCKQUOTE = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n padding: 2rem;\n border-left: 4px solid\n ", ";\n ", ";\n font-style: italic;\n color: ", ";\n"], ["\n padding: 2rem;\n border-left: 4px solid\n ", ";\n ", ";\n font-style: italic;\n color: ", ";\n"])), function (_a) {
238
238
  var invert = _a.invert, colors = _a.theme.colors;
239
239
  return invert ? greyColor40 : colors === null || colors === void 0 ? void 0 : colors.primaryColor100;
240
240
  }, SERIF_4_5, greyColor80);
241
241
  exports.typo = {
242
+ serif: serif,
243
+ sansSerif: sansSerif,
242
244
  SANS_0: SANS_0,
243
245
  SANS_2: SANS_2,
244
246
  SANS_3: SANS_3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.5.4",
3
+ "version": "2.5.7",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",