@veracity/vui 2.8.0-rc.1 → 2.8.0-rc.2

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,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.ellipsisOverflow = exports.HSLToRGBA = exports.vuiColorToRGBA = exports.hexToRGBA = exports.parseHSL = exports.cs = void 0;
4
- const theme_1 = require("../theme");
7
+ const colors_1 = __importDefault(require("../theme/foundations/colors"));
5
8
  /** Concatenates individual className arguments and returns a single string. */
6
9
  function cs(...classNames) {
7
10
  return classNames.filter(Boolean).join(' ');
@@ -37,7 +40,7 @@ function vuiColorToRGBA(color, alpha) {
37
40
  const [colorName, shade] = color.split('.');
38
41
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
39
42
  // @ts-ignore
40
- const x = parseHSL(theme_1.colors[colorName][shade]);
43
+ const x = parseHSL(colors_1.default[colorName][shade]);
41
44
  return HSLToRGBA(x.h, x.s, x.l, alpha || shade === 'main' ? 1 : parseInt(shade));
42
45
  }
43
46
  exports.vuiColorToRGBA = vuiColorToRGBA;
@@ -1,4 +1,4 @@
1
- import { colors } from '../theme';
1
+ import colors from '../theme/foundations/colors';
2
2
  /** Concatenates individual className arguments and returns a single string. */
3
3
  export function cs(...classNames) {
4
4
  return classNames.filter(Boolean).join(' ');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veracity/vui",
3
- "version": "2.8.0-rc.1",
3
+ "version": "2.8.0-rc.2",
4
4
  "description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
5
5
  "module": "./dist/esm/index.js",
6
6
  "main": "./dist/cjs/index.js",
@@ -1,6 +1,6 @@
1
1
  import { Property } from 'csstype'
2
2
 
3
- import { colors } from '../theme'
3
+ import colors from '../theme/foundations/colors'
4
4
 
5
5
  /** Concatenates individual className arguments and returns a single string. */
6
6
  export function cs(...classNames: any[]) {