revdev-components 0.211.0 → 0.212.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,8 +1,5 @@
1
1
  import React from "react";
2
- interface LevelGen {
3
- code: string;
4
- rate: number;
5
- }
2
+ import { LevelGen } from "src/interfaces";
6
3
  export interface LevelBadgeProps {
7
4
  levels: LevelGen[];
8
5
  className?: string;
@@ -13,4 +10,3 @@ export interface LevelBadgeProps {
13
10
  };
14
11
  }
15
12
  export declare const LevelBadge: React.FC<LevelBadgeProps>;
16
- export {};
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { LevelGen } from "src/interfaces";
3
+ export interface LevelBarBadgeProps {
4
+ levels: LevelGen[];
5
+ className?: string;
6
+ children?: React.ReactNode;
7
+ texts?: {
8
+ refersTo?: (param: LevelGen) => string;
9
+ };
10
+ }
11
+ export declare const LevelBarBadge: React.FC<LevelBarBadgeProps>;
@@ -2,3 +2,4 @@ export * from "./form";
2
2
  export * from "./option";
3
3
  export * from "./control";
4
4
  export * from "./nav";
5
+ export * from "./level";
@@ -0,0 +1,4 @@
1
+ export interface LevelGen {
2
+ code: string;
3
+ rate: number;
4
+ }
package/build/styles.css CHANGED
@@ -38,6 +38,8 @@
38
38
  --helpTipFontSize: 0.8em;
39
39
  --levelBadgeColor: #e4e4e4;
40
40
  --levelBadgeRateColor: #555;
41
+ --levelBarBadgeBarColor: var(--passiveColor);
42
+ --levelBarBadgeBackgroundColor: rgb(15, 23, 42, 5.5%);
41
43
  }
42
44
 
43
45
  html,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.211.0",
3
+ "version": "0.212.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {