@schemavaults/theme 0.26.0 → 0.26.1

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.
@@ -7,6 +7,12 @@ export const brandColors = {
7
7
  "schemavaults-brand-red": "var(--schemavaults-brand-red)",
8
8
  };
9
9
  export function getSchemaVaultsBrandColor(colorName) {
10
- return brandColors[colorName];
10
+ const brandColorCssValue = brandColors[colorName];
11
+ if (typeof brandColorCssValue !== "string") {
12
+ throw new Error(`Failed to find CSS value for brand color! Are you using a valid key (${SCHEMAVAULTS_COLOR_KEYS.map((k) => `'${k}'`).join(", ")})?`, {
13
+ cause: `Bad color name: '${colorName}'`,
14
+ });
15
+ }
16
+ return brandColorCssValue;
11
17
  }
12
18
  //# sourceMappingURL=brand_colors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand_colors.js","sourceRoot":"","sources":["../src/brand_colors.ts"],"names":[],"mappings":"AAAA,MAAM,uBAAuB,GAAG;IAC9B,yBAAyB;IACzB,wBAAwB;CACY,CAAC;AAIvC,MAAM,CAAC,MAAM,WAAW,GAA2C;IACjE,yBAAyB,EAAE,gCAAgC;IAC3D,wBAAwB,EAAE,+BAA+B;CAC1D,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,SAAiC;IAEjC,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC;AAChC,CAAC"}
1
+ {"version":3,"file":"brand_colors.js","sourceRoot":"","sources":["../src/brand_colors.ts"],"names":[],"mappings":"AAAA,MAAM,uBAAuB,GAAG;IAC9B,yBAAyB;IACzB,wBAAwB;CACY,CAAC;AAIvC,MAAM,CAAC,MAAM,WAAW,GAA2C;IACjE,yBAAyB,EAAE,gCAAgC;IAC3D,wBAAwB,EAAE,+BAA+B;CAC1D,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,SAAiC;IAEjC,MAAM,kBAAkB,GAAW,WAAW,CAAC,SAAS,CAAC,CAAC;IAC1D,IAAI,OAAO,kBAAkB,KAAK,QAAQ,EAAE,CAAC;QAC3C,MAAM,IAAI,KAAK,CACb,wEAAwE,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EACnI;YACE,KAAK,EAAE,oBAAoB,SAAS,GAAG;SACxC,CACF,CAAC;IACJ,CAAC;IACD,OAAO,kBAAkB,CAAC;AAC5B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@schemavaults/theme",
3
3
  "description": "TailwindCSS theme shared by different SchemaVaults applications",
4
- "version": "0.26.0",
4
+ "version": "0.26.1",
5
5
  "private": false,
6
6
  "license": "UNLICENSED",
7
7
  "repository": {
@@ -51,6 +51,12 @@
51
51
  "node": "./dist/ScreenBreakpoints.js",
52
52
  "import": "./dist/ScreenBreakpoints.js"
53
53
  },
54
+ "./brand_colors": {
55
+ "types": "./dist/brand_colors.d.ts",
56
+ "require": "./dist/brand_colors.js",
57
+ "node": "./dist/brand_colors.js",
58
+ "import": "./dist/brand_colors.js"
59
+ },
54
60
  ".": {
55
61
  "types": "./dist/index.d.ts",
56
62
  "require": "./dist/index.js",