@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.
package/dist/regexes/index.d.ts
CHANGED
package/dist/regexes/index.js
CHANGED
|
@@ -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>;
|
package/dist/utils/ImageUtils.js
CHANGED
|
@@ -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
|
|
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.
|
|
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": "
|
|
46
|
+
"gitHead": "1615ddadfedee31b79e69439b34814ef0259e87e"
|
|
47
47
|
}
|