@veritree/ui 0.84.1 → 0.84.3
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/package.json
CHANGED
|
@@ -8,20 +8,20 @@
|
|
|
8
8
|
headless
|
|
9
9
|
? `alert--${variant}`
|
|
10
10
|
: isSuccess
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
? 'border-success-300 bg-success-200 text-success-700'
|
|
12
|
+
: isError
|
|
13
|
+
? 'border-error-300 bg-error-200 text-error-700'
|
|
14
|
+
: isWarning
|
|
15
|
+
? 'border-warning-300 bg-warning-200 text-warning-700'
|
|
16
|
+
: null,
|
|
17
17
|
// sizes styles
|
|
18
18
|
headless
|
|
19
19
|
? `alert--${size}`
|
|
20
20
|
: isLarge
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
? 'p-3'
|
|
22
|
+
: isSmall
|
|
23
|
+
? 'py-1 px-2 text-sm'
|
|
24
|
+
: null,
|
|
25
25
|
]"
|
|
26
26
|
role="alert"
|
|
27
27
|
>
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
headless
|
|
35
35
|
? `alert-close--${variant}`
|
|
36
36
|
: isLarge
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
? 'mt-1'
|
|
38
|
+
: isSmall
|
|
39
|
+
? 'mt-0.5'
|
|
40
|
+
: null,
|
|
41
41
|
]"
|
|
42
|
-
@click="hide"
|
|
42
|
+
@click.stop.prevent="hide"
|
|
43
43
|
>
|
|
44
44
|
<IconClose />
|
|
45
45
|
</button>
|
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
// different type of number input (e.g. 'integer', 'decimal', 'currency')
|
|
43
43
|
format: {
|
|
44
44
|
type: String,
|
|
45
|
-
default: '
|
|
45
|
+
default: 'decimal',
|
|
46
46
|
},
|
|
47
47
|
locale: {
|
|
48
48
|
type: String,
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
149
149
|
return null; // or any other appropriate value or behavior
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
if (this.format === 'currency') {
|
|
152
|
+
if (this.format === 'currency' || this.format === 'decimal') {
|
|
153
153
|
return parseFloat(number.replace(/,/g, ''));
|
|
154
154
|
}
|
|
155
155
|
|