@mezzanine-ui/core 0.10.5 → 0.11.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.
|
@@ -19,8 +19,8 @@ $label-gap: 4px !default;
|
|
|
19
19
|
--#{$prefix}-control-size: #{$control-size};
|
|
20
20
|
--#{$prefix}-color: #{palette.color(primary)};
|
|
21
21
|
--#{$prefix}-on-color: #{palette.color(on-primary)};
|
|
22
|
-
--#{$prefix}-hover-bg:
|
|
23
|
-
--#{$prefix}-active-bg:
|
|
22
|
+
--#{$prefix}-hover-bg: transparent;
|
|
23
|
+
--#{$prefix}-active-bg: transparent;
|
|
24
24
|
|
|
25
25
|
display: inline-flex;
|
|
26
26
|
align-items: center;
|
package/_styles.scss
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
$options: map.get($all-options, $name);
|
|
6
6
|
|
|
7
7
|
@if $options != false {
|
|
8
|
-
@if $options != null and meta.type-of($options) !=
|
|
9
|
-
@error
|
|
8
|
+
@if $options != null and meta.type-of($options) != 'map' {
|
|
9
|
+
@error 'Invalid options of #{$name}. Only accept false, null or map';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
$url: #{
|
|
12
|
+
$url: #{'~@mezzanine-ui/core/'}#{$namespace}#{'/'}#{$name}#{'-styles'};
|
|
13
13
|
|
|
14
14
|
@include meta.load-css($url, $options);
|
|
15
15
|
}
|
package/form/formField.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CheckCircleFilledIcon, ExclamationCircleFilledIcon,
|
|
1
|
+
import { CheckCircleFilledIcon, ExclamationCircleFilledIcon, TimesCircleFilledIcon } from '@mezzanine-ui/icons';
|
|
2
2
|
import { formPrefix } from './form.js';
|
|
3
3
|
|
|
4
4
|
const formFieldPrefix = `${formPrefix}-field`;
|
|
5
5
|
const formMessageIcons = {
|
|
6
6
|
success: CheckCircleFilledIcon,
|
|
7
7
|
warning: ExclamationCircleFilledIcon,
|
|
8
|
-
error:
|
|
8
|
+
error: TimesCircleFilledIcon,
|
|
9
9
|
};
|
|
10
10
|
const formFieldClasses = {
|
|
11
11
|
host: formFieldPrefix,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mezzanine-ui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Core for mezzanine-ui",
|
|
5
5
|
"author": "Mezzanine",
|
|
6
6
|
"repository": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@mezzanine-ui/icons": "^0.
|
|
40
|
-
"@mezzanine-ui/system": "^0.
|
|
39
|
+
"@mezzanine-ui/icons": "^0.11.2",
|
|
40
|
+
"@mezzanine-ui/system": "^0.11.2",
|
|
41
41
|
"lodash": "^4.17.21",
|
|
42
42
|
"tslib": "^2.1.0"
|
|
43
43
|
}
|
|
@@ -33,7 +33,7 @@ export declare class ImageUploader extends EventEmitter {
|
|
|
33
33
|
setErrorStatus(isError: boolean): void;
|
|
34
34
|
clear(): void;
|
|
35
35
|
getUid(): string;
|
|
36
|
-
getFile(): File;
|
|
36
|
+
getFile(): File | null;
|
|
37
37
|
getPercentage(): number;
|
|
38
38
|
getPreview(): string;
|
|
39
39
|
getUrl(): string;
|
|
@@ -41,7 +41,7 @@ export declare class ImageUploader extends EventEmitter {
|
|
|
41
41
|
getIsError(): boolean;
|
|
42
42
|
getAll(): {
|
|
43
43
|
uid: string;
|
|
44
|
-
file: File;
|
|
44
|
+
file: File | null;
|
|
45
45
|
percentage: number;
|
|
46
46
|
preview: string;
|
|
47
47
|
url: string;
|