@payloadcms/next 3.0.0-beta.114 → 3.0.0-beta.115
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/DocumentHeader/Tabs/Tab/index.scss +70 -68
- package/dist/elements/DocumentHeader/Tabs/index.scss +41 -39
- package/dist/elements/DocumentHeader/index.scss +44 -42
- package/dist/elements/DocumentLocked/index.scss +28 -26
- package/dist/elements/DocumentTakeOver/index.scss +28 -26
- package/dist/elements/FormHeader/index.scss +7 -5
- package/dist/elements/LeaveWithoutSaving/index.scss +28 -26
- package/dist/elements/Nav/NavWrapper/index.scss +20 -18
- package/dist/elements/Nav/index.scss +127 -125
- package/dist/prod/styles.css +1 -1
- package/dist/templates/Default/Wrapper/index.scss +38 -36
- package/dist/templates/Default/index.scss +60 -58
- package/dist/templates/Minimal/index.scss +22 -20
- package/dist/views/API/RenderJSON/index.scss +68 -66
- package/package.json +6 -6
|
@@ -1,93 +1,95 @@
|
|
|
1
1
|
@import '../../../../scss/styles.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@layer payload-default {
|
|
4
|
+
.doc-tab {
|
|
5
|
+
@extend %h5;
|
|
6
|
+
position: relative;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
&__link {
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
white-space: nowrap;
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
// Use a pseudo element for the accessability so that it doesn't take up DOM space
|
|
16
|
+
// Also because the parent element has `overflow: hidden` which would clip an outline
|
|
17
|
+
&:focus-visible::after {
|
|
18
|
+
content: '';
|
|
19
|
+
border: var(--accessibility-outline);
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
right: 0;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
pointer-events: none;
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:focus:not(:focus-visible) {
|
|
29
|
-
opacity: 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&::before {
|
|
33
|
-
content: '';
|
|
34
|
-
display: block;
|
|
35
|
-
position: absolute;
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
border-radius: var(--style-radius-s);
|
|
39
|
-
background-color: var(--theme-elevation-50);
|
|
40
|
-
opacity: 0;
|
|
41
|
-
}
|
|
42
28
|
|
|
43
|
-
|
|
44
|
-
&::before {
|
|
29
|
+
&:focus:not(:focus-visible) {
|
|
45
30
|
opacity: 1;
|
|
46
31
|
}
|
|
47
32
|
|
|
48
|
-
.doc-tab__count {
|
|
49
|
-
background-color: var(--theme-elevation-150);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&--active {
|
|
54
|
-
font-weight: 600;
|
|
55
33
|
&::before {
|
|
56
|
-
|
|
57
|
-
|
|
34
|
+
content: '';
|
|
35
|
+
display: block;
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
border-radius: var(--style-radius-s);
|
|
40
|
+
background-color: var(--theme-elevation-50);
|
|
41
|
+
opacity: 0;
|
|
58
42
|
}
|
|
59
43
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
44
|
+
&:hover {
|
|
45
|
+
&::before {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.doc-tab__count {
|
|
50
|
+
background-color: var(--theme-elevation-150);
|
|
63
51
|
}
|
|
64
52
|
}
|
|
65
53
|
|
|
66
|
-
|
|
54
|
+
&--active {
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
&::before {
|
|
57
|
+
opacity: 1;
|
|
58
|
+
background-color: var(--theme-elevation-100);
|
|
59
|
+
}
|
|
60
|
+
|
|
67
61
|
.doc-tab {
|
|
68
62
|
&__count {
|
|
69
63
|
background-color: var(--theme-elevation-250);
|
|
70
64
|
}
|
|
71
65
|
}
|
|
66
|
+
|
|
67
|
+
&:hover {
|
|
68
|
+
.doc-tab {
|
|
69
|
+
&__count {
|
|
70
|
+
background-color: var(--theme-elevation-250);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
72
74
|
}
|
|
73
|
-
}
|
|
74
75
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
&__label {
|
|
77
|
+
display: flex;
|
|
78
|
+
position: relative;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: 4px;
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: 100%;
|
|
83
|
+
line-height: base(1.2);
|
|
84
|
+
padding: base(0.2) base(0.6);
|
|
85
|
+
}
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
&__count {
|
|
88
|
+
line-height: base(0.8);
|
|
89
|
+
min-width: base(0.8);
|
|
90
|
+
text-align: center;
|
|
91
|
+
background-color: var(--theme-elevation-100);
|
|
92
|
+
border-radius: var(--style-radius-s);
|
|
93
|
+
}
|
|
92
94
|
}
|
|
93
95
|
}
|
|
@@ -1,52 +1,54 @@
|
|
|
1
1
|
@import '../../../scss/styles.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
&__tabs {
|
|
3
|
+
@layer payload-default {
|
|
4
|
+
.doc-tabs {
|
|
7
5
|
display: flex;
|
|
8
|
-
gap: calc(var(--base) / 2);
|
|
9
|
-
list-style: none;
|
|
10
|
-
align-items: center;
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding-left: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include mid-break {
|
|
16
|
-
width: 100%;
|
|
17
|
-
padding: 0;
|
|
18
|
-
overflow: auto;
|
|
19
|
-
|
|
20
|
-
// this container has a gradient overlay as visual indication of `overflow: scroll`
|
|
21
|
-
&::-webkit-scrollbar {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
6
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
background: linear-gradient(to right, transparent, var(--theme-bg));
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
z-index: 1111;
|
|
35
|
-
pointer-events: none;
|
|
7
|
+
&__tabs {
|
|
8
|
+
display: flex;
|
|
9
|
+
gap: calc(var(--base) / 2);
|
|
10
|
+
list-style: none;
|
|
11
|
+
align-items: center;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding-left: 0;
|
|
36
14
|
}
|
|
37
15
|
|
|
38
|
-
|
|
16
|
+
@include mid-break {
|
|
17
|
+
width: 100%;
|
|
39
18
|
padding: 0;
|
|
19
|
+
overflow: auto;
|
|
20
|
+
|
|
21
|
+
// this container has a gradient overlay as visual indication of `overflow: scroll`
|
|
22
|
+
&::-webkit-scrollbar {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&::after {
|
|
27
|
+
content: '';
|
|
28
|
+
display: block;
|
|
29
|
+
position: sticky;
|
|
30
|
+
right: 0;
|
|
31
|
+
width: calc(var(--base) * 2);
|
|
32
|
+
height: calc(var(--base) * 2);
|
|
33
|
+
background: linear-gradient(to right, transparent, var(--theme-bg));
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
z-index: 1111;
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__tabs {
|
|
40
|
+
padding: 0;
|
|
41
|
+
}
|
|
40
42
|
}
|
|
41
|
-
}
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
@include small-break {
|
|
45
|
+
&__tabs-container {
|
|
46
|
+
margin-right: var(--gutter-h);
|
|
47
|
+
}
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
&__tabs {
|
|
50
|
+
gap: var(--gutter-h);
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -1,52 +1,54 @@
|
|
|
1
1
|
@import '../../scss/styles.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
margin-top: base(0.4);
|
|
6
|
-
padding-bottom: calc(var(--base) * 1.2);
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
position: relative;
|
|
10
|
-
display: flex;
|
|
11
|
-
gap: calc(var(--base) / 2);
|
|
12
|
-
|
|
13
|
-
&::after {
|
|
14
|
-
content: '';
|
|
15
|
-
display: block;
|
|
16
|
-
position: absolute;
|
|
17
|
-
height: 1px;
|
|
18
|
-
background: var(--theme-elevation-100);
|
|
3
|
+
@layer payload-default {
|
|
4
|
+
.doc-header {
|
|
19
5
|
width: 100%;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
white-space: nowrap;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
text-overflow: ellipsis;
|
|
29
|
-
margin: 0;
|
|
30
|
-
padding-bottom: base(0.4);
|
|
31
|
-
line-height: 1;
|
|
32
|
-
vertical-align: top;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@include mid-break {
|
|
36
|
-
padding-left: 0;
|
|
37
|
-
padding-right: 0;
|
|
38
|
-
margin-top: base(0.25);
|
|
39
|
-
padding-bottom: calc(var(--base) / 1.5);
|
|
40
|
-
flex-direction: column;
|
|
6
|
+
margin-top: base(0.4);
|
|
7
|
+
padding-bottom: calc(var(--base) * 1.2);
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
position: relative;
|
|
11
|
+
display: flex;
|
|
41
12
|
gap: calc(var(--base) / 2);
|
|
42
|
-
padding-bottom: calc(var(--base) / 2);
|
|
43
13
|
|
|
44
|
-
|
|
14
|
+
&::after {
|
|
15
|
+
content: '';
|
|
16
|
+
display: block;
|
|
17
|
+
position: absolute;
|
|
18
|
+
height: 1px;
|
|
19
|
+
background: var(--theme-elevation-100);
|
|
45
20
|
width: 100%;
|
|
21
|
+
left: 0;
|
|
22
|
+
top: calc(100% - 1px);
|
|
46
23
|
}
|
|
47
|
-
}
|
|
48
24
|
|
|
49
|
-
|
|
50
|
-
|
|
25
|
+
&__title {
|
|
26
|
+
flex-grow: 1;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding-bottom: base(0.4);
|
|
32
|
+
line-height: 1;
|
|
33
|
+
vertical-align: top;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include mid-break {
|
|
37
|
+
padding-left: 0;
|
|
38
|
+
padding-right: 0;
|
|
39
|
+
margin-top: base(0.25);
|
|
40
|
+
padding-bottom: calc(var(--base) / 1.5);
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
gap: calc(var(--base) / 2);
|
|
43
|
+
padding-bottom: calc(var(--base) / 2);
|
|
44
|
+
|
|
45
|
+
&__title {
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include small-break {
|
|
51
|
+
margin-top: 0;
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -1,37 +1,39 @@
|
|
|
1
1
|
@import '../../scss/styles.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 100%;
|
|
9
|
-
|
|
10
|
-
&__wrapper {
|
|
11
|
-
z-index: 1;
|
|
12
|
-
position: relative;
|
|
3
|
+
@layer payload-default {
|
|
4
|
+
.document-locked {
|
|
5
|
+
@include blur-bg;
|
|
13
6
|
display: flex;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
height: 100%;
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
&__wrapper {
|
|
12
|
+
z-index: 1;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: var(--base);
|
|
17
|
+
padding: base(2);
|
|
18
|
+
}
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
&__content {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: var(--base);
|
|
24
|
+
|
|
25
|
+
> * {
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
|
-
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
&__controls {
|
|
31
|
+
display: flex;
|
|
32
|
+
gap: var(--base);
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
.btn {
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -1,37 +1,39 @@
|
|
|
1
1
|
@import '../../scss/styles.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 100%;
|
|
9
|
-
|
|
10
|
-
&__wrapper {
|
|
11
|
-
z-index: 1;
|
|
12
|
-
position: relative;
|
|
3
|
+
@layer payload-default {
|
|
4
|
+
.document-take-over {
|
|
5
|
+
@include blur-bg;
|
|
13
6
|
display: flex;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
height: 100%;
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
&__wrapper {
|
|
12
|
+
z-index: 1;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: var(--base);
|
|
17
|
+
padding: base(2);
|
|
18
|
+
}
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
&__content {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: var(--base);
|
|
24
|
+
|
|
25
|
+
> * {
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
|
-
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
&__controls {
|
|
31
|
+
display: flex;
|
|
32
|
+
gap: var(--base);
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
.btn {
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@layer payload-default {
|
|
2
|
+
.form-header {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: calc(var(--base) * 0.5);
|
|
6
|
+
margin-bottom: var(--base);
|
|
7
|
+
}
|
|
6
8
|
}
|
|
@@ -1,37 +1,39 @@
|
|
|
1
1
|
@import '../../scss/styles.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 100%;
|
|
9
|
-
|
|
10
|
-
&__wrapper {
|
|
11
|
-
z-index: 1;
|
|
12
|
-
position: relative;
|
|
3
|
+
@layer payload-default {
|
|
4
|
+
.leave-without-saving {
|
|
5
|
+
@include blur-bg;
|
|
13
6
|
display: flex;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
height: 100%;
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
&__wrapper {
|
|
12
|
+
z-index: 1;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: base(0.8);
|
|
17
|
+
padding: base(2);
|
|
18
|
+
}
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
&__content {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: base(0.4);
|
|
24
|
+
|
|
25
|
+
> * {
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
|
-
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
&__controls {
|
|
31
|
+
display: flex;
|
|
32
|
+
gap: base(0.4);
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
.btn {
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
@import '../../../scss/styles.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
@layer payload-default {
|
|
4
|
+
.nav {
|
|
5
|
+
position: sticky;
|
|
6
|
+
top: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
height: 100vh;
|
|
10
|
+
width: var(--nav-width);
|
|
11
|
+
border-right: 1px solid var(--theme-elevation-100);
|
|
12
|
+
opacity: 0;
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
[dir='rtl'] & {
|
|
15
|
+
border-right: none;
|
|
16
|
+
border-left: 1px solid var(--theme-elevation-100);
|
|
17
|
+
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
&--nav-animate {
|
|
20
|
+
transition: opacity var(--nav-trans-time) ease-in-out;
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
&--nav-open {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
27
|
}
|