@policystudio/policy-studio-ui-vue 1.2.0-access.32 → 1.2.0-access.34
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/css/psui_styles_output.css +47 -35
- package/package.json +1 -1
- package/src/assets/scss/components/PsCheckbox.scss +1 -1
- package/src/assets/scss/components/PsDialog.scss +21 -22
- package/src/assets/scss/components/PsInput.scss +3 -3
- package/src/assets/scss/components/PsSimpleAlert.scss +16 -13
- package/src/components/notifications/PsDialog.vue +12 -9
- package/src/components/notifications/PsSimpleAlert.vue +6 -7
- package/src/components/notifications/PsToast.vue +5 -5
|
@@ -2618,7 +2618,7 @@ video {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
.psui-el-input-hint {
|
|
2620
2620
|
--tw-text-opacity: 1;
|
|
2621
|
-
color: rgb(
|
|
2621
|
+
color: rgb(81, 94, 106, var(--tw-text-opacity, 1));
|
|
2622
2622
|
}
|
|
2623
2623
|
.psui-el-input-hint {
|
|
2624
2624
|
font-size: 12px;
|
|
@@ -2684,7 +2684,7 @@ video {
|
|
|
2684
2684
|
}
|
|
2685
2685
|
.psui-el-input.status-disabled .psui-el-input-wrapper {
|
|
2686
2686
|
--tw-border-opacity: 1;
|
|
2687
|
-
border-color: rgb(
|
|
2687
|
+
border-color: rgb(214, 221, 229, var(--tw-border-opacity, 1));
|
|
2688
2688
|
}
|
|
2689
2689
|
.psui-el-input.status-disabled .psui-el-input-wrapper {
|
|
2690
2690
|
--tw-bg-opacity: 1;
|
|
@@ -2696,7 +2696,7 @@ video {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
.psui-el-input.status-disabled input {
|
|
2698
2698
|
--tw-text-opacity: 1;
|
|
2699
|
-
color: rgb(
|
|
2699
|
+
color: rgb(81, 94, 106, var(--tw-text-opacity, 1));
|
|
2700
2700
|
}
|
|
2701
2701
|
.psui-el-input.status-disabled label {
|
|
2702
2702
|
--tw-text-opacity: 1;
|
|
@@ -3507,7 +3507,7 @@ video {
|
|
|
3507
3507
|
.psui-el-checkbox {
|
|
3508
3508
|
position: relative;
|
|
3509
3509
|
--tw-text-opacity: 1;
|
|
3510
|
-
color: rgb(
|
|
3510
|
+
color: rgb(81, 94, 106, var(--tw-text-opacity, 1));
|
|
3511
3511
|
}
|
|
3512
3512
|
.psui-el-checkbox:focus {
|
|
3513
3513
|
outline: none;
|
|
@@ -3651,10 +3651,10 @@ video {
|
|
|
3651
3651
|
align-items: flex-start;
|
|
3652
3652
|
justify-content: flex-start;
|
|
3653
3653
|
border-radius: 0.375rem;
|
|
3654
|
-
padding-right: 0.75rem;
|
|
3655
|
-
padding-left: 0.5rem;
|
|
3656
3654
|
padding-top: 8.8px;
|
|
3657
3655
|
padding-bottom: 8.8px;
|
|
3656
|
+
padding-right: 0.75rem;
|
|
3657
|
+
padding-left: 0.5rem;
|
|
3658
3658
|
}
|
|
3659
3659
|
.psui-el-dialog-wrapper {
|
|
3660
3660
|
display: flex;
|
|
@@ -3669,7 +3669,7 @@ video {
|
|
|
3669
3669
|
display: flex;
|
|
3670
3670
|
}
|
|
3671
3671
|
.psui-el-dialog-icon {
|
|
3672
|
-
|
|
3672
|
+
align-items: flex-start;
|
|
3673
3673
|
}
|
|
3674
3674
|
.psui-el-dialog-close {
|
|
3675
3675
|
margin-left: auto;
|
|
@@ -3708,12 +3708,26 @@ video {
|
|
|
3708
3708
|
.psui-el-dialog.layout-vertical .psui-el-dialog-action {
|
|
3709
3709
|
padding-top: 0.5rem;
|
|
3710
3710
|
}
|
|
3711
|
+
.psui-el-dialog.layout-horizontal {
|
|
3712
|
+
display: flex;
|
|
3713
|
+
}
|
|
3714
|
+
.psui-el-dialog.layout-horizontal {
|
|
3715
|
+
align-items: center;
|
|
3716
|
+
}
|
|
3717
|
+
.psui-el-dialog.layout-horizontal .psui-el-dialog-icon {
|
|
3718
|
+
align-items: center;
|
|
3719
|
+
}
|
|
3720
|
+
.psui-el-dialog.layout-horizontal .psui-el-dialog-wrapper {
|
|
3721
|
+
display: flex;
|
|
3722
|
+
}
|
|
3711
3723
|
.psui-el-dialog.layout-horizontal .psui-el-dialog-wrapper {
|
|
3712
3724
|
align-items: center;
|
|
3713
3725
|
}
|
|
3714
3726
|
.psui-el-dialog.layout-horizontal .psui-el-dialog-wrapper {
|
|
3715
|
-
padding-top:
|
|
3716
|
-
|
|
3727
|
+
padding-top: 2px;
|
|
3728
|
+
}
|
|
3729
|
+
.psui-el-dialog.layout-horizontal.close-on .psui-el-dialog-wrapper, .psui-el-dialog.layout-horizontal.icon-on .psui-el-dialog-wrapper {
|
|
3730
|
+
padding-top: 3px;
|
|
3717
3731
|
}
|
|
3718
3732
|
.psui-el-dialog.layout-horizontal .psui-el-dialog-close {
|
|
3719
3733
|
margin-left: 0.75rem;
|
|
@@ -3724,26 +3738,36 @@ video {
|
|
|
3724
3738
|
.psui-el-dialog.layout-horizontal .psui-el-dialog-action {
|
|
3725
3739
|
margin-left: 0.75rem;
|
|
3726
3740
|
}
|
|
3727
|
-
.psui-el-dialog.theme-informative, .psui-el-dialog.theme-success, .psui-el-dialog.theme-alert {
|
|
3741
|
+
.psui-el-dialog.theme-informative, .psui-el-dialog.theme-success, .psui-el-dialog.theme-alert, .psui-el-dialog.theme-gray {
|
|
3728
3742
|
border-width: 1px;
|
|
3729
3743
|
}
|
|
3730
|
-
.psui-el-dialog.theme-informative, .psui-el-dialog.theme-success, .psui-el-dialog.theme-alert {
|
|
3744
|
+
.psui-el-dialog.theme-informative, .psui-el-dialog.theme-success, .psui-el-dialog.theme-alert, .psui-el-dialog.theme-gray {
|
|
3731
3745
|
border-style: solid;
|
|
3732
3746
|
}
|
|
3733
3747
|
.psui-el-dialog.theme-informative .psui-el-dialog-default,
|
|
3734
|
-
.psui-el-dialog.theme-informative .psui-el-dialog-action,
|
|
3735
|
-
.psui-el-dialog.theme-
|
|
3736
|
-
.psui-el-dialog.theme-
|
|
3748
|
+
.psui-el-dialog.theme-informative .psui-el-dialog-action,
|
|
3749
|
+
.psui-el-dialog.theme-informative .psui-el-dialog-message, .psui-el-dialog.theme-success .psui-el-dialog-default,
|
|
3750
|
+
.psui-el-dialog.theme-success .psui-el-dialog-action,
|
|
3751
|
+
.psui-el-dialog.theme-success .psui-el-dialog-message, .psui-el-dialog.theme-alert .psui-el-dialog-default,
|
|
3752
|
+
.psui-el-dialog.theme-alert .psui-el-dialog-action,
|
|
3753
|
+
.psui-el-dialog.theme-alert .psui-el-dialog-message, .psui-el-dialog.theme-gray .psui-el-dialog-default,
|
|
3754
|
+
.psui-el-dialog.theme-gray .psui-el-dialog-action,
|
|
3755
|
+
.psui-el-dialog.theme-gray .psui-el-dialog-message {
|
|
3737
3756
|
font-size: 14px;
|
|
3738
3757
|
line-height: 20px;
|
|
3739
3758
|
}
|
|
3740
3759
|
.psui-el-dialog.theme-informative .psui-el-dialog-default,
|
|
3741
|
-
.psui-el-dialog.theme-informative .psui-el-dialog-action,
|
|
3742
|
-
.psui-el-dialog.theme-
|
|
3743
|
-
.psui-el-dialog.theme-
|
|
3760
|
+
.psui-el-dialog.theme-informative .psui-el-dialog-action,
|
|
3761
|
+
.psui-el-dialog.theme-informative .psui-el-dialog-message, .psui-el-dialog.theme-success .psui-el-dialog-default,
|
|
3762
|
+
.psui-el-dialog.theme-success .psui-el-dialog-action,
|
|
3763
|
+
.psui-el-dialog.theme-success .psui-el-dialog-message, .psui-el-dialog.theme-alert .psui-el-dialog-default,
|
|
3764
|
+
.psui-el-dialog.theme-alert .psui-el-dialog-action,
|
|
3765
|
+
.psui-el-dialog.theme-alert .psui-el-dialog-message, .psui-el-dialog.theme-gray .psui-el-dialog-default,
|
|
3766
|
+
.psui-el-dialog.theme-gray .psui-el-dialog-action,
|
|
3767
|
+
.psui-el-dialog.theme-gray .psui-el-dialog-message {
|
|
3744
3768
|
line-height: 1rem;
|
|
3745
3769
|
}
|
|
3746
|
-
.psui-el-dialog.theme-informative .psui-el-dialog-action, .psui-el-dialog.theme-success .psui-el-dialog-action, .psui-el-dialog.theme-alert .psui-el-dialog-action {
|
|
3770
|
+
.psui-el-dialog.theme-informative .psui-el-dialog-action, .psui-el-dialog.theme-success .psui-el-dialog-action, .psui-el-dialog.theme-alert .psui-el-dialog-action, .psui-el-dialog.theme-gray .psui-el-dialog-action {
|
|
3747
3771
|
font-weight: 700;
|
|
3748
3772
|
}
|
|
3749
3773
|
.psui-el-dialog.theme-informative {
|
|
@@ -3758,12 +3782,6 @@ video {
|
|
|
3758
3782
|
--tw-text-opacity: 1;
|
|
3759
3783
|
color: rgb(18, 121, 153, var(--tw-text-opacity, 1));
|
|
3760
3784
|
}
|
|
3761
|
-
.psui-el-dialog.theme-informative .psui-el-dialog-default,
|
|
3762
|
-
.psui-el-dialog.theme-informative .psui-el-dialog-action,
|
|
3763
|
-
.psui-el-dialog.theme-informative .psui-el-dialog-close {
|
|
3764
|
-
--tw-text-opacity: 1;
|
|
3765
|
-
color: rgb(18, 121, 153, var(--tw-text-opacity, 1));
|
|
3766
|
-
}
|
|
3767
3785
|
.psui-el-dialog.theme-success {
|
|
3768
3786
|
--tw-border-opacity: 1;
|
|
3769
3787
|
border-color: rgb(155, 222, 181, var(--tw-border-opacity, 1));
|
|
@@ -3776,12 +3794,6 @@ video {
|
|
|
3776
3794
|
--tw-text-opacity: 1;
|
|
3777
3795
|
color: rgb(14, 124, 69, var(--tw-text-opacity, 1));
|
|
3778
3796
|
}
|
|
3779
|
-
.psui-el-dialog.theme-success .psui-el-dialog-default,
|
|
3780
|
-
.psui-el-dialog.theme-success .psui-el-dialog-action,
|
|
3781
|
-
.psui-el-dialog.theme-success .psui-el-dialog-close {
|
|
3782
|
-
--tw-text-opacity: 1;
|
|
3783
|
-
color: rgb(14, 124, 69, var(--tw-text-opacity, 1));
|
|
3784
|
-
}
|
|
3785
3797
|
.psui-el-dialog.theme-alert {
|
|
3786
3798
|
--tw-border-opacity: 1;
|
|
3787
3799
|
border-color: rgb(215, 165, 86, var(--tw-border-opacity, 1));
|
|
@@ -3800,17 +3812,17 @@ video {
|
|
|
3800
3812
|
--tw-text-opacity: 1;
|
|
3801
3813
|
color: rgb(40, 50, 59, var(--tw-text-opacity, 1));
|
|
3802
3814
|
}
|
|
3815
|
+
.psui-el-dialog.theme-gray {
|
|
3816
|
+
--tw-border-opacity: 1;
|
|
3817
|
+
border-color: rgb(214, 221, 229, var(--tw-border-opacity, 1));
|
|
3818
|
+
}
|
|
3803
3819
|
.psui-el-dialog.theme-gray {
|
|
3804
3820
|
--tw-bg-opacity: 1;
|
|
3805
3821
|
background-color: rgb(243, 246, 249, var(--tw-bg-opacity, 1));
|
|
3806
3822
|
}
|
|
3807
3823
|
.psui-el-dialog.theme-gray {
|
|
3808
3824
|
--tw-text-opacity: 1;
|
|
3809
|
-
color: rgb(
|
|
3810
|
-
}
|
|
3811
|
-
.psui-el-dialog.theme-gray .psui-el-dialog-message {
|
|
3812
|
-
--tw-text-opacity: 1;
|
|
3813
|
-
color: rgb(52, 64, 74, var(--tw-text-opacity, 1));
|
|
3825
|
+
color: rgb(81, 94, 106, var(--tw-text-opacity, 1));
|
|
3814
3826
|
}
|
|
3815
3827
|
|
|
3816
3828
|
.psui-el-dotloader {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.psui-el-dialog {
|
|
3
|
-
@apply psui-flex psui-justify-start psui-items-start psui-pr-3 psui-pl-2 psui-rounded-md psui-
|
|
3
|
+
@apply psui-flex psui-justify-start psui-items-start psui-pr-3 psui-pl-2 psui-rounded-md psui-py-[8.8px];
|
|
4
4
|
|
|
5
5
|
&-wrapper {
|
|
6
6
|
@apply psui-flex psui-flex-grow;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
&-icon {
|
|
10
|
-
@apply psui-flex psui-
|
|
10
|
+
@apply psui-flex psui-items-start psui-mr-2;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&-close {
|
|
@@ -39,8 +39,21 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&.layout-horizontal {
|
|
42
|
+
@apply psui-flex psui-items-center;
|
|
43
|
+
|
|
44
|
+
.psui-el-dialog-icon {
|
|
45
|
+
@apply psui-items-center;
|
|
46
|
+
}
|
|
47
|
+
|
|
42
48
|
.psui-el-dialog-wrapper {
|
|
43
|
-
@apply psui-
|
|
49
|
+
@apply psui-flex psui-items-center psui-pt-[2px];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.close-on,
|
|
53
|
+
&.icon-on {
|
|
54
|
+
.psui-el-dialog-wrapper {
|
|
55
|
+
@apply psui-pt-[3px];
|
|
56
|
+
}
|
|
44
57
|
}
|
|
45
58
|
|
|
46
59
|
.psui-el-dialog-close {
|
|
@@ -58,11 +71,13 @@
|
|
|
58
71
|
|
|
59
72
|
&.theme-informative,
|
|
60
73
|
&.theme-success,
|
|
61
|
-
&.theme-alert
|
|
74
|
+
&.theme-alert,
|
|
75
|
+
&.theme-gray {
|
|
62
76
|
@apply psui-border psui-border-solid;
|
|
63
77
|
|
|
64
78
|
.psui-el-dialog-default,
|
|
65
|
-
.psui-el-dialog-action
|
|
79
|
+
.psui-el-dialog-action,
|
|
80
|
+
.psui-el-dialog-message {
|
|
66
81
|
@apply psui-text-14 psui-leading-4;
|
|
67
82
|
}
|
|
68
83
|
|
|
@@ -73,22 +88,10 @@
|
|
|
73
88
|
|
|
74
89
|
&.theme-informative {
|
|
75
90
|
@apply psui-bg-blue-10 psui-text-blue-60 psui-border-blue-40;
|
|
76
|
-
|
|
77
|
-
.psui-el-dialog-default,
|
|
78
|
-
.psui-el-dialog-action,
|
|
79
|
-
.psui-el-dialog-close {
|
|
80
|
-
@apply psui-text-blue-60;
|
|
81
|
-
}
|
|
82
91
|
}
|
|
83
92
|
|
|
84
93
|
&.theme-success {
|
|
85
94
|
@apply psui-bg-green-10 psui-text-green-80 psui-border-green-20;
|
|
86
|
-
|
|
87
|
-
.psui-el-dialog-default,
|
|
88
|
-
.psui-el-dialog-action,
|
|
89
|
-
.psui-el-dialog-close {
|
|
90
|
-
@apply psui-text-green-80;
|
|
91
|
-
}
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
&.theme-alert {
|
|
@@ -102,11 +105,7 @@
|
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
&.theme-gray {
|
|
105
|
-
@apply psui-bg-gray-10 psui-text-gray-
|
|
106
|
-
|
|
107
|
-
.psui-el-dialog-message {
|
|
108
|
-
@apply psui-text-gray-70;
|
|
109
|
-
}
|
|
108
|
+
@apply psui-bg-gray-10 psui-text-gray-60 psui-border-gray-30;
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&-hint {
|
|
24
|
-
@apply psui-text-gray-
|
|
24
|
+
@apply psui-text-gray-60 psui-mt-1 psui-italic;
|
|
25
25
|
font-size: 12px;
|
|
26
26
|
line-height: 15.6px;
|
|
27
27
|
}
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
|
|
53
53
|
&.status-disabled {
|
|
54
54
|
.psui-el-input-wrapper {
|
|
55
|
-
@apply psui-bg-gray-20 psui-border-gray-
|
|
55
|
+
@apply psui-bg-gray-20 psui-border-gray-30
|
|
56
56
|
}
|
|
57
57
|
input {
|
|
58
|
-
@apply psui-bg-gray-20 psui-text-gray-
|
|
58
|
+
@apply psui-bg-gray-20 psui-text-gray-60
|
|
59
59
|
}
|
|
60
60
|
label {
|
|
61
61
|
@apply psui-text-gray-40
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
&-button{
|
|
9
|
-
@apply psui-icon;
|
|
10
|
-
&:focus{
|
|
11
|
-
@apply psui-outline-none;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
2
|
+
.psui-el-simple-alert {
|
|
3
|
+
@apply psui-flex psui-items-center psui-gap-1 psui-p-1 psui-cursor-pointer psui-w-full psui-rounded-md;
|
|
4
|
+
word-break: normal;
|
|
5
|
+
|
|
6
|
+
&-message {
|
|
7
|
+
@apply psui-text-accentSmall psui-mx-auto psui-font-bold;
|
|
14
8
|
}
|
|
15
|
-
|
|
9
|
+
|
|
10
|
+
&-button {
|
|
11
|
+
@apply psui-icon;
|
|
12
|
+
|
|
13
|
+
&:focus {
|
|
14
|
+
@apply psui-outline-none;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
</p>
|
|
18
18
|
</slot>
|
|
19
19
|
</div>
|
|
20
|
-
<div
|
|
20
|
+
<div
|
|
21
|
+
v-if="$slots.action"
|
|
22
|
+
class="psui-el-dialog-action"
|
|
23
|
+
>
|
|
21
24
|
<slot name="action" />
|
|
22
25
|
</div>
|
|
23
26
|
</div>
|
|
@@ -43,14 +46,14 @@ const props = defineProps({
|
|
|
43
46
|
theme: {
|
|
44
47
|
type: String,
|
|
45
48
|
default: 'informative',
|
|
46
|
-
validator: (value) => ['informative', 'success', 'alert', 'gray', 'disabled'].includes(value)
|
|
49
|
+
validator: (value) => ['informative', 'success', 'alert', 'gray', 'disabled'].includes(value)
|
|
47
50
|
},
|
|
48
51
|
/**
|
|
49
52
|
* It set the which will be displayed when component is rendered.
|
|
50
53
|
*/
|
|
51
54
|
message: {
|
|
52
55
|
type: String,
|
|
53
|
-
default: ''
|
|
56
|
+
default: ''
|
|
54
57
|
},
|
|
55
58
|
/**
|
|
56
59
|
* It sets the direction of the items within the dialog. See Figma Notifications for full information.
|
|
@@ -58,35 +61,35 @@ const props = defineProps({
|
|
|
58
61
|
layout: {
|
|
59
62
|
type: String,
|
|
60
63
|
default: 'horizontal',
|
|
61
|
-
validator: (value) => ['horizontal', 'vertical'].includes(value)
|
|
64
|
+
validator: (value) => ['horizontal', 'vertical'].includes(value)
|
|
62
65
|
},
|
|
63
66
|
/**
|
|
64
67
|
* It sets a close button if needed.
|
|
65
68
|
*/
|
|
66
69
|
hasClose: {
|
|
67
70
|
type: Boolean,
|
|
68
|
-
default: true
|
|
71
|
+
default: true
|
|
69
72
|
},
|
|
70
73
|
/**
|
|
71
74
|
* It sets the text key to get the svg icon in Google Fonts. Make sure to get the correct description of your icon on https://fonts.google.com/.
|
|
72
75
|
*/
|
|
73
76
|
icon: {
|
|
74
77
|
type: String,
|
|
75
|
-
default: 'info'
|
|
78
|
+
default: 'info'
|
|
76
79
|
},
|
|
77
80
|
/**
|
|
78
81
|
* It sets whether the icon should be displayed or not.
|
|
79
82
|
*/
|
|
80
83
|
hasIcon: {
|
|
81
84
|
type: Boolean,
|
|
82
|
-
default: true
|
|
83
|
-
}
|
|
85
|
+
default: true
|
|
86
|
+
}
|
|
84
87
|
})
|
|
85
88
|
|
|
86
89
|
const emit = defineEmits(['close'])
|
|
87
90
|
|
|
88
91
|
const getComponentClass = computed(() => {
|
|
89
|
-
return [`layout-${props.layout}`, `theme-${props.theme}`, `close-${props.hasClose ? 'on' : 'off'}`]
|
|
92
|
+
return [`layout-${props.layout}`, `theme-${props.theme}`, `close-${props.hasClose ? 'on' : 'off'}`, `icon-${props.hasIcon ? 'on' : 'off'}`]
|
|
90
93
|
})
|
|
91
94
|
|
|
92
95
|
const onClose = () => {
|
|
@@ -28,26 +28,25 @@ import PsIcon from '../ui/PsIcon.vue'
|
|
|
28
28
|
defineProps({
|
|
29
29
|
message: {
|
|
30
30
|
type: String,
|
|
31
|
-
default: ''
|
|
31
|
+
default: ''
|
|
32
32
|
},
|
|
33
33
|
icon: {
|
|
34
34
|
type: String,
|
|
35
|
-
default: 'info'
|
|
35
|
+
default: 'info'
|
|
36
36
|
},
|
|
37
37
|
iconClass: {
|
|
38
38
|
type: String,
|
|
39
|
-
default: ''
|
|
39
|
+
default: ''
|
|
40
40
|
},
|
|
41
41
|
buttonClass: {
|
|
42
42
|
type: String,
|
|
43
|
-
default: ''
|
|
43
|
+
default: ''
|
|
44
44
|
},
|
|
45
45
|
iconSize: {
|
|
46
46
|
type: [Number, String],
|
|
47
|
-
default: 24
|
|
48
|
-
}
|
|
47
|
+
default: 24
|
|
48
|
+
}
|
|
49
49
|
})
|
|
50
50
|
|
|
51
51
|
const emit = defineEmits(['click', 'close'])
|
|
52
|
-
|
|
53
52
|
</script>
|
|
@@ -24,7 +24,7 @@ const props = defineProps({
|
|
|
24
24
|
layout: {
|
|
25
25
|
type: String,
|
|
26
26
|
default: 'info',
|
|
27
|
-
validator: (value) => ['info', 'success', 'warning', 'error'].includes(value)
|
|
27
|
+
validator: (value) => ['info', 'success', 'warning', 'error'].includes(value)
|
|
28
28
|
},
|
|
29
29
|
/**
|
|
30
30
|
* It sets a supportive layout. eg: soft and intese. See Figma - Notification for full information.
|
|
@@ -32,22 +32,22 @@ const props = defineProps({
|
|
|
32
32
|
fill: {
|
|
33
33
|
type: String,
|
|
34
34
|
default: 'intense',
|
|
35
|
-
validator: (value) => ['soft', 'intense'].includes(value)
|
|
35
|
+
validator: (value) => ['soft', 'intense'].includes(value)
|
|
36
36
|
},
|
|
37
37
|
/**
|
|
38
38
|
* It sets the message which will be displayed when component is rendered.
|
|
39
39
|
*/
|
|
40
40
|
message: {
|
|
41
41
|
type: String,
|
|
42
|
-
default: ''
|
|
42
|
+
default: ''
|
|
43
43
|
},
|
|
44
44
|
/**
|
|
45
45
|
* It sets the text key to get the svg icon in Google Fonts. Make sure to get the correct description of your icon on https://fonts.google.com/.
|
|
46
46
|
*/
|
|
47
47
|
icon: {
|
|
48
48
|
type: String,
|
|
49
|
-
default: ''
|
|
50
|
-
}
|
|
49
|
+
default: ''
|
|
50
|
+
}
|
|
51
51
|
})
|
|
52
52
|
|
|
53
53
|
const getComponentClass = computed(() => {
|