revdev-components 0.263.0 → 0.265.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.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { LevelGen } from "src/interfaces";
3
3
  export interface LevelLetterBadgeProps {
4
- levels: LevelGen | LevelGen[] | string;
4
+ levels?: LevelGen | LevelGen[] | string;
5
5
  className?: string;
6
6
  activeCode?: string;
7
7
  title?: (param: LevelGen) => string;
package/build/index.js CHANGED
@@ -6160,7 +6160,13 @@ var LevelLetterBadge = function (_a) {
6160
6160
  if (typeof value === "string") {
6161
6161
  return [{ code: value }];
6162
6162
  }
6163
- return Array.isArray(value) ? value : [value];
6163
+ else if (Array.isArray(value)) {
6164
+ return value;
6165
+ }
6166
+ else if (typeof value === "object") {
6167
+ return [value];
6168
+ }
6169
+ return [];
6164
6170
  }, [value]);
6165
6171
  if (levels.length === 0) {
6166
6172
  return null;
package/build/styles.css CHANGED
@@ -873,7 +873,6 @@ body {
873
873
  }
874
874
 
875
875
  .index-module_description__YM5BZ {
876
- font-size: 0.8em;
877
876
  color: var(--passiveColor);
878
877
  }
879
878
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.263.0",
3
+ "version": "0.265.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {