@policystudio/policy-studio-ui-vue 1.1.90-beta.66 → 1.1.90-beta.67
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
|
@@ -1,151 +1,165 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
2
|
+
.psui-el-tooltip {
|
|
3
|
+
.psui-el-tooltip-wrapper {
|
|
4
|
+
@apply psui-relative;
|
|
5
|
+
|
|
6
|
+
.psui-el-tooltip-dialog {
|
|
7
|
+
@apply psui-fixed psui-opacity-0 psui-transition-opacity psui-duration-300 psui-ease-in-out psui-hidden;
|
|
8
|
+
transition-delay: 0.4s;
|
|
9
|
+
z-index: 999;
|
|
10
|
+
|
|
11
|
+
.psui-el-tooltip-content {
|
|
12
|
+
@apply psui-flex psui-flex-col psui-bg-gray-50 psui-text-white;
|
|
13
|
+
padding: 5px 8px 4px 8px;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
|
|
16
|
+
h2 {
|
|
17
|
+
@apply psui-font-bold;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.psui-el-tooltip-content-wrapper {
|
|
21
|
+
@apply psui-text-xsmall psui-font-bold;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.layout {
|
|
25
|
+
&-gray {
|
|
26
|
+
@apply psui-bg-gray-30 psui-text-gray-80 psui-shadow-none;
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
line-height: 120%;
|
|
29
|
+
padding: 10px 16px 12px 16px;
|
|
30
|
+
|
|
31
|
+
.psui-el-tooltip-content-wrapper {
|
|
32
|
+
@apply psui-font-normal psui-mt-1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-blue {
|
|
37
|
+
@apply psui-bg-blue-70 psui-text-white psui-shadow-none;
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
line-height: 120%;
|
|
40
|
+
padding: 10px 16px 12px 16px;
|
|
41
|
+
|
|
42
|
+
.psui-el-tooltip-content-wrapper {
|
|
43
|
+
@apply psui-font-normal psui-mt-1;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-red {
|
|
48
|
+
@apply psui-bg-red-10 psui-text-red-70 psui-shadow-none;
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
line-height: 120%;
|
|
51
|
+
padding: 10px 16px 12px 16px;
|
|
52
|
+
|
|
53
|
+
.psui-el-tooltip-content-wrapper {
|
|
54
|
+
@apply psui-font-normal psui-mt-1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&-green {
|
|
59
|
+
@apply psui-flex psui-flex-col psui-items-center psui-shadow-none;
|
|
60
|
+
width: 180px;
|
|
61
|
+
padding: 10px 16px 12px 16px;
|
|
62
|
+
gap: 4px;
|
|
63
|
+
border-radius: 6px;
|
|
64
|
+
background: linear-gradient(270deg, #5db883 0%, #28b08e 100%);
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
line-height: 120%;
|
|
67
|
+
|
|
68
|
+
h2 {
|
|
69
|
+
@apply psui-text-white psui-font-bold;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.psui-el-tooltip-content-wrapper {
|
|
73
|
+
@apply psui-text-white psui-font-normal psui-text-center;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-white {
|
|
78
|
+
@apply psui-bg-white psui-py-4 psui-px-6 psui-flex psui-flex-col psui-shadow-elevation-30;
|
|
79
|
+
gap: 8.8px;
|
|
80
|
+
|
|
81
|
+
h2 {
|
|
82
|
+
@apply psui-text-gray-80 psui-font-bold;
|
|
83
|
+
font-size: 17px;
|
|
84
|
+
line-height: 120%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.psui-el-tooltip-content-wrapper {
|
|
88
|
+
@apply psui-text-gray-50 psui-font-normal psui-flex psui-flex-col;
|
|
89
|
+
gap: 13.6px;
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
line-height: 120%;
|
|
92
|
+
|
|
93
|
+
button {
|
|
94
|
+
@apply psui-rounded-md psui-bg-blue-20 psui-text-blue-60 psui-font-bold;
|
|
95
|
+
padding: 7px 16px;
|
|
96
|
+
width: fit-content;
|
|
97
|
+
|
|
98
|
+
&:focus {
|
|
99
|
+
outline: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-dark {
|
|
106
|
+
@apply psui-bg-blue-70 psui-py-4 psui-px-6 psui-flex psui-flex-col psui-shadow-elevation-30;
|
|
107
|
+
gap: 8.8px;
|
|
108
|
+
|
|
109
|
+
h2 {
|
|
110
|
+
@apply psui-text-white psui-font-bold;
|
|
111
|
+
font-size: 17px;
|
|
112
|
+
line-height: 120%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.psui-el-tooltip-content-wrapper {
|
|
116
|
+
@apply psui-text-white psui-font-normal psui-flex psui-flex-col;
|
|
117
|
+
gap: 13.6px;
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
line-height: 120%;
|
|
120
|
+
|
|
121
|
+
button {
|
|
122
|
+
@apply psui-rounded-md psui-bg-blue-60 psui-text-white psui-font-bold;
|
|
123
|
+
padding: 7px 16px;
|
|
124
|
+
width: fit-content;
|
|
125
|
+
|
|
126
|
+
&:focus {
|
|
127
|
+
outline: none;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&-color {
|
|
134
|
+
@apply psui-bg-blue-50 psui-py-4 psui-px-6 psui-flex psui-flex-col psui-shadow-elevation-30;
|
|
135
|
+
gap: 8.8px;
|
|
136
|
+
|
|
137
|
+
h2 {
|
|
138
|
+
@apply psui-text-white psui-font-bold;
|
|
139
|
+
font-size: 17px;
|
|
140
|
+
line-height: 120%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.psui-el-tooltip-content-wrapper {
|
|
144
|
+
@apply psui-text-white psui-font-normal psui-flex psui-flex-col;
|
|
145
|
+
gap: 13.6px;
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
line-height: 120%;
|
|
148
|
+
|
|
149
|
+
button {
|
|
150
|
+
@apply psui-rounded-md psui-bg-blue-60 psui-text-white psui-font-bold;
|
|
151
|
+
padding: 7px 16px;
|
|
152
|
+
width: fit-content;
|
|
153
|
+
|
|
154
|
+
&:focus {
|
|
155
|
+
outline: none;
|
|
156
|
+
}
|
|
147
157
|
}
|
|
158
|
+
}
|
|
148
159
|
}
|
|
160
|
+
}
|
|
149
161
|
}
|
|
162
|
+
}
|
|
150
163
|
}
|
|
151
|
-
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -149,9 +149,10 @@ const updatePosition = () => {
|
|
|
149
149
|
dialog.style.top = `${rectTrigger.y - rectDialog.height - 10}px`
|
|
150
150
|
}
|
|
151
151
|
if (props.position == 'custom') {
|
|
152
|
+
const hasFixedPosition = props.customPosition.includes('position: fixed')
|
|
152
153
|
dialog.style = props.customPosition
|
|
153
154
|
dialog.style.display = 'block'
|
|
154
|
-
dialog.style.position = 'absolute'
|
|
155
|
+
dialog.style.position = hasFixedPosition ? 'fixed' : 'absolute'
|
|
155
156
|
}
|
|
156
157
|
setTimeout(() => {
|
|
157
158
|
if(dialog) dialog.style.opacity = 100
|