@sphereon/ui-components.core 0.1.3-unstable.155 → 0.1.3-unstable.161

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 +1,2 @@
1
1
  export declare const emailAddressValidationRegex: RegExp;
2
+ export declare const base64UriValidationRegex: RegExp;
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.emailAddressValidationRegex = void 0;
3
+ exports.base64UriValidationRegex = exports.emailAddressValidationRegex = void 0;
4
4
  exports.emailAddressValidationRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
5
+ exports.base64UriValidationRegex = /^data:image\/[a-zA-Z]+;base64,[A-Za-z0-9+\/_-]*(={0,2})?$/;
@@ -10,7 +10,7 @@ type FontColor = 'dark' | 'light' | 'secondaryButton' | 'greyedOut' | 'lightGrey
10
10
  export declare const fontColors: Record<FontColor, string>;
11
11
  type HighLightGradient = 100 | 200;
12
12
  export declare const gradientsColors: Record<HighLightGradient, GradientProperties>;
13
- type Border = 'dark' | 'light' | 'lightGrey' | 'darkGrey';
13
+ type Border = 'dark' | 'light' | 'lightGrey' | 'darkGrey' | 'purple';
14
14
  export declare const borderColors: Record<Border, string>;
15
15
  type Profile = 100 | 200 | 300 | 400 | 500;
16
16
  export declare const profileColors: Record<Profile, string>;
@@ -51,7 +51,8 @@ exports.borderColors = {
51
51
  dark: '#404D7A',
52
52
  light: '#E3E3E3',
53
53
  lightGrey: '#ACACAC',
54
- darkGrey: '#303030'
54
+ darkGrey: '#303030',
55
+ purple: '#7276F7'
55
56
  };
56
57
  exports.profileColors = {
57
58
  100: '#EE5209',
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
3
  exports.isBase64ImageUri = exports.calculateAspectRatio = void 0;
4
+ var regexes_1 = require("../regexes");
4
5
  var calculateAspectRatio = function (width, height) {
5
6
  return width / height;
6
7
  };
7
8
  exports.calculateAspectRatio = calculateAspectRatio;
8
9
  var isBase64ImageUri = function (value) {
9
10
  if (typeof value === 'string') {
10
- return /^data:image\//.test(value);
11
+ return regexes_1.base64UriValidationRegex.test(value);
11
12
  }
12
13
  return false;
13
14
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.core",
3
3
  "private": false,
4
- "version": "0.1.3-unstable.155+1820847",
4
+ "version": "0.1.3-unstable.161+1615dda",
5
5
  "description": "SSI UI components Core",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -43,5 +43,5 @@
43
43
  "peerDependencies": {
44
44
  "react": ">= 16.8.0"
45
45
  },
46
- "gitHead": "1820847537ef9928681bdee923de1f098ad35b2a"
46
+ "gitHead": "1615ddadfedee31b79e69439b34814ef0259e87e"
47
47
  }