@onesy/ui-react 1.0.168 → 1.0.169

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/Switch/Switch.js CHANGED
@@ -215,28 +215,16 @@ const Icon = props => {
215
215
  other = $[2];
216
216
  style = $[3];
217
217
  }
218
- const size = ["very small", "small", "regular", "medium", "large", "very large"].includes(props.size) ? props.size : "small";
218
+ const size = ["small", "regular", "large"].includes(props.size) ? props.size : "small";
219
219
  let fontSize = 24;
220
- if (size === "very small") {
221
- fontSize = 12;
220
+ if (size === "small") {
221
+ fontSize = 18;
222
222
  } else {
223
- if (size === "small") {
224
- fontSize = 18;
223
+ if (size === "regular") {
224
+ fontSize = 24;
225
225
  } else {
226
- if (size === "regular") {
227
- fontSize = 24;
228
- } else {
229
- if (size === "medium") {
230
- fontSize = 30;
231
- } else {
232
- if (size === "large") {
233
- fontSize = 38;
234
- } else {
235
- if (size === "very large") {
236
- fontSize = 42;
237
- }
238
- }
239
- }
226
+ if (size === "large") {
227
+ fontSize = 30;
240
228
  }
241
229
  }
242
230
  }
@@ -208,28 +208,16 @@ const Icon = props => {
208
208
  other = $[2];
209
209
  style = $[3];
210
210
  }
211
- const size = ["very small", "small", "regular", "medium", "large", "very large"].includes(props.size) ? props.size : "small";
211
+ const size = ["small", "regular", "large"].includes(props.size) ? props.size : "small";
212
212
  let fontSize = 24;
213
- if (size === "very small") {
214
- fontSize = 12;
213
+ if (size === "small") {
214
+ fontSize = 18;
215
215
  } else {
216
- if (size === "small") {
217
- fontSize = 18;
216
+ if (size === "regular") {
217
+ fontSize = 24;
218
218
  } else {
219
- if (size === "regular") {
220
- fontSize = 24;
221
- } else {
222
- if (size === "medium") {
223
- fontSize = 30;
224
- } else {
225
- if (size === "large") {
226
- fontSize = 38;
227
- } else {
228
- if (size === "very large") {
229
- fontSize = 42;
230
- }
231
- }
232
- }
219
+ if (size === "large") {
220
+ fontSize = 30;
233
221
  }
234
222
  }
235
223
  }
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.167
1
+ /** @license UiReact v1.0.168
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.167
1
+ /** @license UiReact v1.0.168
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.168",
3
+ "version": "1.0.169",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar Erić <lazareric1@proton.me>",