@payloadcms/next 3.0.0-beta.114 → 3.0.0-beta.116

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.
@@ -1,93 +1,95 @@
1
1
  @import '../../../../scss/styles.scss';
2
2
 
3
- .doc-tab {
4
- @extend %h5;
5
- position: relative;
3
+ @layer payload-default {
4
+ .doc-tab {
5
+ @extend %h5;
6
+ position: relative;
6
7
 
7
- &__link {
8
- text-decoration: none;
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- white-space: nowrap;
8
+ &__link {
9
+ text-decoration: none;
10
+ display: flex;
11
+ justify-content: center;
12
+ align-items: center;
13
+ white-space: nowrap;
13
14
 
14
- // Use a pseudo element for the accessability so that it doesn't take up DOM space
15
- // Also because the parent element has `overflow: hidden` which would clip an outline
16
- &:focus-visible::after {
17
- content: '';
18
- border: var(--accessibility-outline);
19
- position: absolute;
20
- top: 0;
21
- right: 0;
22
- bottom: 0;
23
- left: 0;
24
- pointer-events: none;
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
- &:hover {
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
- opacity: 1;
57
- background-color: var(--theme-elevation-100);
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
- .doc-tab {
61
- &__count {
62
- background-color: var(--theme-elevation-250);
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
- &:hover {
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
- &__label {
76
- display: flex;
77
- position: relative;
78
- align-items: center;
79
- gap: 4px;
80
- width: 100%;
81
- height: 100%;
82
- line-height: base(1.2);
83
- padding: base(0.2) base(0.6);
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
- &__count {
87
- line-height: base(0.8);
88
- min-width: base(0.8);
89
- text-align: center;
90
- background-color: var(--theme-elevation-100);
91
- border-radius: var(--style-radius-s);
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
- .doc-tabs {
4
- display: flex;
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
- &::after {
26
- content: '';
27
- display: block;
28
- position: sticky;
29
- right: 0;
30
- width: calc(var(--base) * 2);
31
- height: calc(var(--base) * 2);
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
- &__tabs {
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
- @include small-break {
44
- &__tabs-container {
45
- margin-right: var(--gutter-h);
46
- }
44
+ @include small-break {
45
+ &__tabs-container {
46
+ margin-right: var(--gutter-h);
47
+ }
47
48
 
48
- &__tabs {
49
- gap: var(--gutter-h);
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
- .doc-header {
4
- width: 100%;
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
- left: 0;
21
- top: calc(100% - 1px);
22
- }
23
-
24
- &__title {
25
- flex-grow: 1;
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
- &__title {
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
- @include small-break {
50
- margin-top: 0;
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
- .document-locked {
4
- @include blur-bg;
5
- display: flex;
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
- flex-direction: column;
15
- gap: var(--base);
16
- padding: base(2);
17
- }
7
+ align-items: center;
8
+ justify-content: center;
9
+ height: 100%;
18
10
 
19
- &__content {
20
- display: flex;
21
- flex-direction: column;
22
- gap: var(--base);
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
- margin: 0;
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
- &__controls {
30
- display: flex;
31
- gap: var(--base);
30
+ &__controls {
31
+ display: flex;
32
+ gap: var(--base);
32
33
 
33
- .btn {
34
- margin: 0;
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
- .document-take-over {
4
- @include blur-bg;
5
- display: flex;
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
- flex-direction: column;
15
- gap: var(--base);
16
- padding: base(2);
17
- }
7
+ align-items: center;
8
+ justify-content: center;
9
+ height: 100%;
18
10
 
19
- &__content {
20
- display: flex;
21
- flex-direction: column;
22
- gap: var(--base);
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
- margin: 0;
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
- &__controls {
30
- display: flex;
31
- gap: var(--base);
30
+ &__controls {
31
+ display: flex;
32
+ gap: var(--base);
32
33
 
33
- .btn {
34
- margin: 0;
34
+ .btn {
35
+ margin: 0;
36
+ }
35
37
  }
36
38
  }
37
39
  }
@@ -1,6 +1,8 @@
1
- .form-header {
2
- display: flex;
3
- flex-direction: column;
4
- gap: calc(var(--base) * .5);
5
- margin-bottom: var(--base);
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
- .leave-without-saving {
4
- @include blur-bg;
5
- display: flex;
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
- flex-direction: column;
15
- gap: base(0.8);
16
- padding: base(2);
17
- }
7
+ align-items: center;
8
+ justify-content: center;
9
+ height: 100%;
18
10
 
19
- &__content {
20
- display: flex;
21
- flex-direction: column;
22
- gap: base(0.4);
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
- margin: 0;
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
- &__controls {
30
- display: flex;
31
- gap: base(0.4);
30
+ &__controls {
31
+ display: flex;
32
+ gap: base(0.4);
32
33
 
33
- .btn {
34
- margin: 0;
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
- .nav {
4
- position: sticky;
5
- top: 0;
6
- left: 0;
7
- flex-shrink: 0;
8
- height: 100vh;
9
- width: var(--nav-width);
10
- border-right: 1px solid var(--theme-elevation-100);
11
- opacity: 0;
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
- [dir='rtl'] & {
14
- border-right: none;
15
- border-left: 1px solid var(--theme-elevation-100);
16
- }
14
+ [dir='rtl'] & {
15
+ border-right: none;
16
+ border-left: 1px solid var(--theme-elevation-100);
17
+ }
17
18
 
18
- &--nav-animate {
19
- transition: opacity var(--nav-trans-time) ease-in-out;
20
- }
19
+ &--nav-animate {
20
+ transition: opacity var(--nav-trans-time) ease-in-out;
21
+ }
21
22
 
22
- &--nav-open {
23
- opacity: 1;
23
+ &--nav-open {
24
+ opacity: 1;
25
+ }
24
26
  }
25
27
  }