@payloadcms/ui 3.69.0-canary.4 → 3.69.0-canary.6
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/elements/ListControls/index.d.ts.map +1 -1
- package/dist/elements/ListControls/index.js +6 -4
- package/dist/elements/ListControls/index.js.map +1 -1
- package/dist/elements/Popup/PopupButtonList/index.scss +1 -0
- package/dist/elements/Popup/PopupTrigger/index.d.ts +1 -1
- package/dist/elements/Popup/PopupTrigger/index.d.ts.map +1 -1
- package/dist/elements/Popup/PopupTrigger/index.js +24 -92
- package/dist/elements/Popup/PopupTrigger/index.js.map +1 -1
- package/dist/elements/Popup/index.d.ts +32 -1
- package/dist/elements/Popup/index.d.ts.map +1 -1
- package/dist/elements/Popup/index.js +249 -122
- package/dist/elements/Popup/index.js.map +1 -1
- package/dist/elements/Popup/index.scss +49 -231
- package/dist/exports/client/index.js +24 -24
- package/dist/exports/client/index.js.map +4 -4
- package/dist/scss/app.scss +2 -1
- package/dist/styles.css +1 -1
- package/package.json +5 -5
|
@@ -2,13 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
@layer payload-default {
|
|
4
4
|
.popup {
|
|
5
|
-
--popup-button-highlight: var(--theme-elevation-200);
|
|
6
|
-
--popup-bg: var(--theme-input-bg);
|
|
7
|
-
--popup-text: var(--theme-text);
|
|
8
|
-
--popup-caret-size: 10px;
|
|
9
|
-
--popup-x-padding: calc(var(--base) * 0.33);
|
|
10
|
-
--popup-padding: calc(var(--base) * 0.5);
|
|
11
|
-
--button-size-offset: -8px;
|
|
12
5
|
position: relative;
|
|
13
6
|
|
|
14
7
|
&__trigger-wrap {
|
|
@@ -18,248 +11,73 @@
|
|
|
18
11
|
cursor: pointer;
|
|
19
12
|
}
|
|
20
13
|
|
|
21
|
-
&
|
|
22
|
-
|
|
23
|
-
background: var(--popup-bg);
|
|
24
|
-
opacity: 0;
|
|
25
|
-
visibility: hidden;
|
|
26
|
-
pointer-events: none;
|
|
27
|
-
z-index: var(--z-popup);
|
|
28
|
-
max-width: calc(100vw - #{$baseline});
|
|
29
|
-
color: var(--popup-text);
|
|
30
|
-
border-radius: 4px;
|
|
31
|
-
padding-left: var(--popup-padding);
|
|
32
|
-
padding-right: var(--popup-padding);
|
|
33
|
-
min-width: var(--popup-width, auto);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&__hide-scrollbar {
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&__scroll-container {
|
|
41
|
-
overflow-y: auto;
|
|
42
|
-
white-space: nowrap;
|
|
43
|
-
width: calc(100% + var(--scrollbar-width));
|
|
44
|
-
padding-top: var(--popup-padding);
|
|
45
|
-
padding-bottom: var(--popup-padding);
|
|
46
|
-
max-height: calc(var(--base) * 10);
|
|
47
|
-
overflow-y: auto;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&__scroll-content {
|
|
51
|
-
width: calc(100% - var(--scrollbar-width));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&--show-scrollbar {
|
|
55
|
-
.popup__scroll-container,
|
|
56
|
-
.popup__scroll-content {
|
|
57
|
-
width: 100%;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:focus,
|
|
62
|
-
&:active {
|
|
63
|
-
outline: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
////////////////////////////////
|
|
67
|
-
// SIZE
|
|
68
|
-
////////////////////////////////
|
|
69
|
-
|
|
70
|
-
&--size-xsmall {
|
|
71
|
-
--popup-width: 80px;
|
|
72
|
-
.popup__content {
|
|
73
|
-
@include shadow-sm;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&--size-small {
|
|
78
|
-
--popup-width: 100px;
|
|
79
|
-
.popup__content {
|
|
80
|
-
@include shadow-m;
|
|
81
|
-
}
|
|
14
|
+
&__on-hover-watch {
|
|
15
|
+
display: contents;
|
|
82
16
|
}
|
|
17
|
+
}
|
|
83
18
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
@include shadow-lg;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
19
|
+
.popup__hidden-content {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
90
22
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
@include shadow-lg;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
23
|
+
.popup__content {
|
|
24
|
+
--popup-caret-size: 8px;
|
|
25
|
+
--popup-button-highlight: var(--theme-elevation-150);
|
|
97
26
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
27
|
+
position: absolute;
|
|
28
|
+
z-index: var(--z-popup);
|
|
29
|
+
background: var(--theme-input-bg);
|
|
30
|
+
color: var(--theme-text);
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
padding: calc(var(--base) * 0.5);
|
|
33
|
+
min-width: 150px;
|
|
34
|
+
max-width: calc(100vw - var(--base));
|
|
35
|
+
@include shadow-lg;
|
|
101
36
|
|
|
102
|
-
|
|
103
|
-
|
|
37
|
+
&.popup--size-xsmall {
|
|
38
|
+
min-width: 80px;
|
|
104
39
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
--button-size-offset: -8px;
|
|
40
|
+
&.popup--size-small {
|
|
41
|
+
min-width: 100px;
|
|
108
42
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
--button-size-offset: -4px;
|
|
43
|
+
&.popup--size-large {
|
|
44
|
+
min-width: 200px;
|
|
112
45
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
--button-size-offset: 0px;
|
|
46
|
+
&.popup--size-fit-content {
|
|
47
|
+
min-width: fit-content;
|
|
116
48
|
}
|
|
49
|
+
}
|
|
117
50
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
[dir='rtl'] &--h-align-left {
|
|
122
|
-
.popup__caret {
|
|
123
|
-
right: var(--popup-padding);
|
|
124
|
-
left: unset;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
&--h-align-left {
|
|
128
|
-
.popup__caret {
|
|
129
|
-
left: var(--popup-padding);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
&--h-align-center {
|
|
133
|
-
.popup__content {
|
|
134
|
-
left: 50%;
|
|
135
|
-
transform: translateX(-50%);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.popup__caret {
|
|
139
|
-
left: 50%;
|
|
140
|
-
transform: translateX(-50%);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
[dir='rtl'] &--h-align-right {
|
|
145
|
-
.popup__content {
|
|
146
|
-
right: unset;
|
|
147
|
-
left: 0;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.popup__caret {
|
|
151
|
-
right: unset;
|
|
152
|
-
left: var(--popup-padding);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
&--h-align-right {
|
|
157
|
-
.popup__content {
|
|
158
|
-
right: var(--button-size-offset);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.popup__caret {
|
|
162
|
-
right: var(--popup-padding);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
////////////////////////////////
|
|
167
|
-
// VERTICAL ALIGNMENT
|
|
168
|
-
////////////////////////////////
|
|
169
|
-
|
|
170
|
-
&__caret {
|
|
171
|
-
position: absolute;
|
|
172
|
-
border: var(--popup-caret-size) solid transparent;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&--v-align-top {
|
|
176
|
-
.popup__content {
|
|
177
|
-
@include shadow-lg;
|
|
178
|
-
bottom: calc(100% + var(--popup-caret-size));
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.popup__caret {
|
|
182
|
-
top: calc(100% - 1px);
|
|
183
|
-
border-top-color: var(--popup-bg);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
51
|
+
.popup__scroll-container {
|
|
52
|
+
overflow-y: auto;
|
|
53
|
+
max-height: calc(var(--base) * 10);
|
|
186
54
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
top: calc(100% + var(--popup-caret-size));
|
|
191
|
-
}
|
|
55
|
+
&:not(.popup__scroll-container--show-scrollbar) {
|
|
56
|
+
scrollbar-width: none; // Firefox
|
|
57
|
+
-ms-overflow-style: none; // IE/Edge
|
|
192
58
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
border-bottom-color: var(--popup-bg);
|
|
59
|
+
&::-webkit-scrollbar {
|
|
60
|
+
display: none; // Chrome/Safari/Opera
|
|
196
61
|
}
|
|
197
62
|
}
|
|
63
|
+
}
|
|
198
64
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
65
|
+
.popup__caret {
|
|
66
|
+
position: absolute;
|
|
67
|
+
width: 0;
|
|
68
|
+
height: 0;
|
|
69
|
+
border: var(--popup-caret-size) solid transparent;
|
|
70
|
+
left: var(--caret-left, 16px);
|
|
71
|
+
transform: translateX(-50%);
|
|
202
72
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
visibility: visible;
|
|
207
|
-
pointer-events: all;
|
|
208
|
-
}
|
|
73
|
+
.popup--v-bottom & {
|
|
74
|
+
top: calc(var(--popup-caret-size) * -2);
|
|
75
|
+
border-bottom-color: var(--theme-input-bg);
|
|
209
76
|
}
|
|
210
77
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
&--h-align-center {
|
|
215
|
-
.popup__content {
|
|
216
|
-
left: 50%;
|
|
217
|
-
transform: translateX(-0%);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.popup__caret {
|
|
221
|
-
left: 50%;
|
|
222
|
-
transform: translateX(-0%);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&--h-align-right {
|
|
227
|
-
.popup__content {
|
|
228
|
-
right: 0;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.popup__caret {
|
|
232
|
-
right: var(--popup-padding);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
&--force-h-align-left {
|
|
237
|
-
.popup__content {
|
|
238
|
-
left: 0;
|
|
239
|
-
right: unset;
|
|
240
|
-
transform: unset;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.popup__caret {
|
|
244
|
-
left: var(--popup-padding);
|
|
245
|
-
right: unset;
|
|
246
|
-
transform: unset;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
&--force-h-align-right {
|
|
251
|
-
.popup__content {
|
|
252
|
-
right: 0;
|
|
253
|
-
left: unset;
|
|
254
|
-
transform: unset;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.popup__caret {
|
|
258
|
-
right: var(--popup-padding);
|
|
259
|
-
left: unset;
|
|
260
|
-
transform: unset;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
78
|
+
.popup--v-top & {
|
|
79
|
+
bottom: calc(var(--popup-caret-size) * -2);
|
|
80
|
+
border-top-color: var(--theme-input-bg);
|
|
263
81
|
}
|
|
264
82
|
}
|
|
265
83
|
}
|