@payloadcms/richtext-slate 3.0.0-canary.926cbeb → 3.0.0-canary.95fcd13
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/data/populate.d.ts +2 -2
- package/dist/data/populate.d.ts.map +1 -1
- package/dist/data/populate.js.map +1 -1
- package/dist/data/recurseNestedFields.js +2 -2
- package/dist/data/recurseNestedFields.js.map +1 -1
- package/dist/field/RichText.d.ts +5 -4
- package/dist/field/RichText.d.ts.map +1 -1
- package/dist/field/RichText.js.map +1 -1
- package/dist/field/elements/link/Button/index.d.ts.map +1 -1
- package/dist/field/elements/link/Button/index.js +2 -1
- package/dist/field/elements/link/Button/index.js.map +1 -1
- package/dist/field/elements/link/Element/index.js +2 -2
- package/dist/field/elements/link/Element/index.js.map +1 -1
- package/dist/field/elements/link/LinkDrawer/types.d.ts +1 -2
- package/dist/field/elements/link/LinkDrawer/types.d.ts.map +1 -1
- package/dist/field/elements/link/LinkDrawer/types.js.map +1 -1
- package/dist/field/elements/link/types.d.ts +2 -2
- package/dist/field/elements/link/types.d.ts.map +1 -1
- package/dist/field/elements/link/types.js.map +1 -1
- package/dist/field/elements/relationship/Element/index.d.ts +3 -3
- package/dist/field/elements/relationship/Element/index.d.ts.map +1 -1
- package/dist/field/elements/relationship/Element/index.js.map +1 -1
- package/dist/field/elements/relationship/types.d.ts +2 -2
- package/dist/field/elements/relationship/types.d.ts.map +1 -1
- package/dist/field/elements/relationship/types.js.map +1 -1
- package/dist/field/elements/upload/Element/UploadDrawer/index.d.ts +3 -4
- package/dist/field/elements/upload/Element/UploadDrawer/index.d.ts.map +1 -1
- package/dist/field/elements/upload/Element/UploadDrawer/index.js.map +1 -1
- package/dist/field/elements/upload/Element/index.d.ts +3 -3
- package/dist/field/elements/upload/Element/index.d.ts.map +1 -1
- package/dist/field/elements/upload/Element/index.js.map +1 -1
- package/dist/field/elements/upload/types.d.ts +2 -2
- package/dist/field/elements/upload/types.d.ts.map +1 -1
- package/dist/field/elements/upload/types.js.map +1 -1
- package/dist/field/index.d.ts +3 -3
- package/dist/field/index.d.ts.map +1 -1
- package/dist/field/index.js.map +1 -1
- package/dist/field/index.scss +3 -1
- package/dist/field/providers/ElementButtonProvider.d.ts +5 -5
- package/dist/field/providers/ElementButtonProvider.d.ts.map +1 -1
- package/dist/field/providers/ElementButtonProvider.js.map +1 -1
- package/dist/field/providers/ElementProvider.d.ts +5 -5
- package/dist/field/providers/ElementProvider.d.ts.map +1 -1
- package/dist/field/providers/ElementProvider.js.map +1 -1
- package/dist/field/providers/LeafButtonProvider.d.ts +5 -5
- package/dist/field/providers/LeafButtonProvider.d.ts.map +1 -1
- package/dist/field/providers/LeafButtonProvider.js.map +1 -1
- package/dist/field/providers/LeafProvider.d.ts +5 -5
- package/dist/field/providers/LeafProvider.d.ts.map +1 -1
- package/dist/field/providers/LeafProvider.js.map +1 -1
- package/dist/scss/app.scss +4 -9
- package/dist/scss/colors.scss +76 -76
- package/dist/scss/toastify.scss +59 -0
- package/dist/scss/toasts.scss +75 -45
- package/dist/scss/type.scss +14 -23
- package/dist/scss/vars.scss +26 -47
- package/package.json +12 -12
package/dist/scss/colors.scss
CHANGED
|
@@ -21,85 +21,85 @@
|
|
|
21
21
|
--color-base-950: rgb(7, 7, 7);
|
|
22
22
|
--color-base-1000: rgb(0, 0, 0);
|
|
23
23
|
|
|
24
|
-
--color-success-50: rgb(
|
|
25
|
-
--color-success-100: rgb(
|
|
26
|
-
--color-success-150: rgb(
|
|
27
|
-
--color-success-200: rgb(
|
|
28
|
-
--color-success-250: rgb(
|
|
29
|
-
--color-success-300: rgb(
|
|
30
|
-
--color-success-350: rgb(
|
|
31
|
-
--color-success-400: rgb(
|
|
32
|
-
--color-success-450: rgb(
|
|
33
|
-
--color-success-500: rgb(
|
|
34
|
-
--color-success-550: rgb(
|
|
35
|
-
--color-success-600: rgb(
|
|
36
|
-
--color-success-650: rgb(
|
|
37
|
-
--color-success-700: rgb(
|
|
38
|
-
--color-success-750: rgb(
|
|
39
|
-
--color-success-800: rgb(
|
|
40
|
-
--color-success-850: rgb(
|
|
41
|
-
--color-success-900: rgb(
|
|
42
|
-
--color-success-950: rgb(
|
|
24
|
+
--color-success-50: rgb(237, 245, 249);
|
|
25
|
+
--color-success-100: rgb(218, 237, 248);
|
|
26
|
+
--color-success-150: rgb(188, 225, 248);
|
|
27
|
+
--color-success-200: rgb(156, 216, 253);
|
|
28
|
+
--color-success-250: rgb(125, 204, 248);
|
|
29
|
+
--color-success-300: rgb(97, 190, 241);
|
|
30
|
+
--color-success-350: rgb(65, 178, 236);
|
|
31
|
+
--color-success-400: rgb(36, 164, 223);
|
|
32
|
+
--color-success-450: rgb(18, 148, 204);
|
|
33
|
+
--color-success-500: rgb(21, 135, 186);
|
|
34
|
+
--color-success-550: rgb(12, 121, 168);
|
|
35
|
+
--color-success-600: rgb(11, 110, 153);
|
|
36
|
+
--color-success-650: rgb(11, 97, 135);
|
|
37
|
+
--color-success-700: rgb(17, 88, 121);
|
|
38
|
+
--color-success-750: rgb(17, 76, 105);
|
|
39
|
+
--color-success-800: rgb(18, 66, 90);
|
|
40
|
+
--color-success-850: rgb(18, 56, 76);
|
|
41
|
+
--color-success-900: rgb(19, 44, 58);
|
|
42
|
+
--color-success-950: rgb(22, 33, 39);
|
|
43
43
|
|
|
44
|
-
--color-
|
|
45
|
-
--color-
|
|
46
|
-
--color-
|
|
47
|
-
--color-
|
|
48
|
-
--color-
|
|
49
|
-
--color-
|
|
50
|
-
--color-
|
|
51
|
-
--color-
|
|
52
|
-
--color-
|
|
53
|
-
--color-
|
|
54
|
-
--color-
|
|
55
|
-
--color-
|
|
56
|
-
--color-
|
|
57
|
-
--color-
|
|
58
|
-
--color-
|
|
59
|
-
--color-
|
|
60
|
-
--color-
|
|
61
|
-
--color-
|
|
62
|
-
--color-
|
|
44
|
+
--color-error-50: rgb(250, 241, 240);
|
|
45
|
+
--color-error-100: rgb(252, 229, 227);
|
|
46
|
+
--color-error-150: rgb(247, 208, 204);
|
|
47
|
+
--color-error-200: rgb(254, 193, 188);
|
|
48
|
+
--color-error-250: rgb(253, 177, 170);
|
|
49
|
+
--color-error-300: rgb(253, 154, 146);
|
|
50
|
+
--color-error-350: rgb(253, 131, 123);
|
|
51
|
+
--color-error-400: rgb(246, 109, 103);
|
|
52
|
+
--color-error-450: rgb(234, 90, 86);
|
|
53
|
+
--color-error-500: rgb(218, 75, 72);
|
|
54
|
+
--color-error-550: rgb(200, 62, 61);
|
|
55
|
+
--color-error-600: rgb(182, 54, 54);
|
|
56
|
+
--color-error-650: rgb(161, 47, 47);
|
|
57
|
+
--color-error-700: rgb(144, 44, 43);
|
|
58
|
+
--color-error-750: rgb(123, 41, 39);
|
|
59
|
+
--color-error-800: rgb(105, 39, 37);
|
|
60
|
+
--color-error-850: rgb(86, 36, 33);
|
|
61
|
+
--color-error-900: rgb(64, 32, 29);
|
|
62
|
+
--color-error-950: rgb(44, 26, 24);
|
|
63
63
|
|
|
64
|
-
--color-
|
|
65
|
-
--color-
|
|
66
|
-
--color-
|
|
67
|
-
--color-
|
|
68
|
-
--color-
|
|
69
|
-
--color-
|
|
70
|
-
--color-
|
|
71
|
-
--color-
|
|
72
|
-
--color-
|
|
73
|
-
--color-
|
|
74
|
-
--color-
|
|
75
|
-
--color-
|
|
76
|
-
--color-
|
|
77
|
-
--color-
|
|
78
|
-
--color-
|
|
79
|
-
--color-
|
|
80
|
-
--color-
|
|
81
|
-
--color-
|
|
82
|
-
--color-
|
|
64
|
+
--color-warning-50: rgb(249, 242, 237);
|
|
65
|
+
--color-warning-100: rgb(248, 232, 219);
|
|
66
|
+
--color-warning-150: rgb(243, 212, 186);
|
|
67
|
+
--color-warning-200: rgb(243, 200, 162);
|
|
68
|
+
--color-warning-250: rgb(240, 185, 136);
|
|
69
|
+
--color-warning-300: rgb(238, 166, 98);
|
|
70
|
+
--color-warning-350: rgb(234, 148, 58);
|
|
71
|
+
--color-warning-400: rgb(223, 132, 17);
|
|
72
|
+
--color-warning-450: rgb(204, 120, 15);
|
|
73
|
+
--color-warning-500: rgb(185, 108, 13);
|
|
74
|
+
--color-warning-550: rgb(167, 97, 10);
|
|
75
|
+
--color-warning-600: rgb(150, 87, 11);
|
|
76
|
+
--color-warning-650: rgb(134, 78, 11);
|
|
77
|
+
--color-warning-700: rgb(120, 70, 13);
|
|
78
|
+
--color-warning-750: rgb(105, 61, 13);
|
|
79
|
+
--color-warning-800: rgb(90, 55, 19);
|
|
80
|
+
--color-warning-850: rgb(73, 47, 21);
|
|
81
|
+
--color-warning-900: rgb(56, 38, 20);
|
|
82
|
+
--color-warning-950: rgb(38, 29, 21);
|
|
83
83
|
|
|
84
|
-
--color-blue-50: rgb(
|
|
85
|
-
--color-blue-100: rgb(
|
|
86
|
-
--color-blue-150: rgb(
|
|
87
|
-
--color-blue-200: rgb(
|
|
88
|
-
--color-blue-250: rgb(
|
|
89
|
-
--color-blue-300: rgb(
|
|
90
|
-
--color-blue-350: rgb(
|
|
91
|
-
--color-blue-400: rgb(
|
|
92
|
-
--color-blue-450: rgb(
|
|
93
|
-
--color-blue-500: rgb(
|
|
94
|
-
--color-blue-550: rgb(
|
|
95
|
-
--color-blue-600: rgb(
|
|
96
|
-
--color-blue-650: rgb(
|
|
97
|
-
--color-blue-700: rgb(
|
|
98
|
-
--color-blue-750: rgb(
|
|
99
|
-
--color-blue-800: rgb(
|
|
100
|
-
--color-blue-850: rgb(
|
|
101
|
-
--color-blue-900: rgb(
|
|
102
|
-
--color-blue-950: rgb(
|
|
84
|
+
--color-blue-50: rgb(237, 245, 249);
|
|
85
|
+
--color-blue-100: rgb(218, 237, 248);
|
|
86
|
+
--color-blue-150: rgb(188, 225, 248);
|
|
87
|
+
--color-blue-200: rgb(156, 216, 253);
|
|
88
|
+
--color-blue-250: rgb(125, 204, 248);
|
|
89
|
+
--color-blue-300: rgb(97, 190, 241);
|
|
90
|
+
--color-blue-350: rgb(65, 178, 236);
|
|
91
|
+
--color-blue-400: rgb(36, 164, 223);
|
|
92
|
+
--color-blue-450: rgb(18, 148, 204);
|
|
93
|
+
--color-blue-500: rgb(21, 135, 186);
|
|
94
|
+
--color-blue-550: rgb(12, 121, 168);
|
|
95
|
+
--color-blue-600: rgb(11, 110, 153);
|
|
96
|
+
--color-blue-650: rgb(11, 97, 135);
|
|
97
|
+
--color-blue-700: rgb(17, 88, 121);
|
|
98
|
+
--color-blue-750: rgb(17, 76, 105);
|
|
99
|
+
--color-blue-800: rgb(18, 66, 90);
|
|
100
|
+
--color-blue-850: rgb(18, 56, 76);
|
|
101
|
+
--color-blue-900: rgb(19, 44, 58);
|
|
102
|
+
--color-blue-950: rgb(22, 33, 39);
|
|
103
103
|
|
|
104
104
|
--theme-border-color: var(--theme-elevation-150);
|
|
105
105
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@import 'vars';
|
|
2
|
+
@import 'queries';
|
|
3
|
+
|
|
4
|
+
.Toastify {
|
|
5
|
+
.Toastify__toast-container {
|
|
6
|
+
left: base(5);
|
|
7
|
+
transform: none;
|
|
8
|
+
right: base(5);
|
|
9
|
+
width: auto;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.Toastify__toast {
|
|
13
|
+
padding: base(0.5);
|
|
14
|
+
border-radius: $style-radius-m;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.Toastify__close-button {
|
|
19
|
+
align-self: center;
|
|
20
|
+
opacity: 0.7;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.Toastify__toast--success {
|
|
28
|
+
color: var(--color-success-900);
|
|
29
|
+
background: var(--color-success-500);
|
|
30
|
+
|
|
31
|
+
.Toastify__progress-bar {
|
|
32
|
+
background-color: var(--color-success-900);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.Toastify__close-button--success {
|
|
37
|
+
color: var(--color-success-900);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.Toastify__toast--error {
|
|
41
|
+
background: var(--theme-error-500);
|
|
42
|
+
color: #fff;
|
|
43
|
+
|
|
44
|
+
.Toastify__progress-bar {
|
|
45
|
+
background-color: #fff;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.Toastify__close-button--light {
|
|
50
|
+
color: inherit;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include mid-break {
|
|
54
|
+
.Toastify__toast-container {
|
|
55
|
+
left: $baseline;
|
|
56
|
+
right: $baseline;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
package/dist/scss/toasts.scss
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
|
+
@import './styles.scss';
|
|
2
|
+
|
|
1
3
|
.payload-toast-container {
|
|
4
|
+
padding: 0;
|
|
5
|
+
margin: 0;
|
|
6
|
+
|
|
2
7
|
.payload-toast-close-button {
|
|
8
|
+
position: absolute;
|
|
9
|
+
order: 3;
|
|
3
10
|
left: unset;
|
|
4
|
-
|
|
5
|
-
top:
|
|
6
|
-
|
|
11
|
+
inset-inline-end: base(0.5);
|
|
12
|
+
top: 50%;
|
|
13
|
+
transform: translateY(-50%);
|
|
14
|
+
color: var(--theme-elevation-600);
|
|
7
15
|
background: unset;
|
|
8
16
|
border: none;
|
|
9
|
-
display: flex;
|
|
10
|
-
width: 1.25rem;
|
|
11
|
-
height: 1.25rem;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
svg {
|
|
19
|
+
width: base(0.75);
|
|
20
|
+
height: base(0.75);
|
|
17
21
|
}
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
&:hover {
|
|
24
|
+
color: var(--theme-elevation-250);
|
|
25
|
+
background: none;
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
[dir='RTL'] & {
|
|
@@ -27,16 +31,20 @@
|
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
|
|
34
|
+
.toast-title {
|
|
35
|
+
line-height: base(1);
|
|
36
|
+
}
|
|
37
|
+
|
|
30
38
|
.payload-toast-item {
|
|
31
|
-
padding:
|
|
32
|
-
color: var(--theme-
|
|
39
|
+
padding: base(0.5);
|
|
40
|
+
color: var(--theme-elevation-800);
|
|
33
41
|
font-style: normal;
|
|
34
42
|
font-weight: 600;
|
|
35
43
|
display: flex;
|
|
36
44
|
gap: 1rem;
|
|
37
45
|
align-items: center;
|
|
38
46
|
width: 100%;
|
|
39
|
-
border-radius:
|
|
47
|
+
border-radius: 4px;
|
|
40
48
|
border: 1px solid var(--theme-border-color);
|
|
41
49
|
background: var(--theme-input-bg);
|
|
42
50
|
box-shadow:
|
|
@@ -45,6 +53,7 @@
|
|
|
45
53
|
|
|
46
54
|
.toast-content {
|
|
47
55
|
transition: opacity 100ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
|
|
56
|
+
width: 100%;
|
|
48
57
|
}
|
|
49
58
|
|
|
50
59
|
&[data-front='false'] {
|
|
@@ -60,51 +69,72 @@
|
|
|
60
69
|
}
|
|
61
70
|
|
|
62
71
|
.toast-icon {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
72
|
+
width: base(1);
|
|
73
|
+
height: base(1);
|
|
74
|
+
margin: 0;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
|
|
79
|
+
& > * {
|
|
80
|
+
width: base(1.2);
|
|
81
|
+
height: base(1.2);
|
|
66
82
|
}
|
|
67
83
|
}
|
|
68
84
|
|
|
69
85
|
&.toast-warning {
|
|
70
|
-
|
|
71
|
-
|
|
86
|
+
color: var(--theme-warning-800);
|
|
87
|
+
border-color: var(--theme-warning-150);
|
|
88
|
+
background-color: var(--theme-warning-50);
|
|
89
|
+
|
|
90
|
+
.payload-toast-close-button {
|
|
91
|
+
color: var(--theme-warning-600);
|
|
92
|
+
|
|
93
|
+
&:hover {
|
|
94
|
+
color: var(--theme-warning-250);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
72
97
|
}
|
|
73
98
|
|
|
74
99
|
&.toast-error {
|
|
75
|
-
|
|
76
|
-
|
|
100
|
+
color: var(--theme-error-800);
|
|
101
|
+
border-color: var(--theme-error-150);
|
|
102
|
+
background-color: var(--theme-error-50);
|
|
103
|
+
|
|
104
|
+
.payload-toast-close-button {
|
|
105
|
+
color: var(--theme-error-600);
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
color: var(--theme-error-250);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
77
111
|
}
|
|
78
112
|
|
|
79
113
|
&.toast-success {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
114
|
+
color: var(--theme-success-800);
|
|
115
|
+
border-color: var(--theme-success-150);
|
|
116
|
+
background-color: var(--theme-success-50);
|
|
83
117
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
background-color: var(--theme-elevation-100);
|
|
87
|
-
}
|
|
118
|
+
.payload-toast-close-button {
|
|
119
|
+
color: var(--theme-success-600);
|
|
88
120
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
background-color: var(--theme-warning-100);
|
|
121
|
+
&:hover {
|
|
122
|
+
color: var(--theme-success-250);
|
|
123
|
+
}
|
|
93
124
|
}
|
|
125
|
+
}
|
|
94
126
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
127
|
+
&.toast-info {
|
|
128
|
+
color: var(--theme-elevation-800);
|
|
129
|
+
border-color: var(--theme-elevation-150);
|
|
130
|
+
background-color: var(--theme-elevation-50);
|
|
99
131
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
background-color: var(--theme-success-50);
|
|
103
|
-
}
|
|
132
|
+
.payload-toast-close-button {
|
|
133
|
+
color: var(--theme-elevation-600);
|
|
104
134
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
135
|
+
&:hover {
|
|
136
|
+
color: var(--theme-elevation-250);
|
|
137
|
+
}
|
|
108
138
|
}
|
|
109
139
|
}
|
|
110
140
|
}
|
package/dist/scss/type.scss
CHANGED
|
@@ -15,17 +15,10 @@
|
|
|
15
15
|
font-weight: 500;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
%jumbo {
|
|
19
|
-
font-size: base(2.5);
|
|
20
|
-
line-height: 1;
|
|
21
|
-
margin: 0 0 base(2);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
18
|
%h1 {
|
|
25
19
|
margin: 0 0 base(1);
|
|
26
|
-
font-size: base(
|
|
27
|
-
line-height: 1.
|
|
28
|
-
letter-spacing: -1px;
|
|
20
|
+
font-size: base(1.6);
|
|
21
|
+
line-height: base(1.8);
|
|
29
22
|
|
|
30
23
|
@include small-break {
|
|
31
24
|
letter-spacing: -0.5px;
|
|
@@ -35,9 +28,8 @@
|
|
|
35
28
|
|
|
36
29
|
%h2 {
|
|
37
30
|
margin: 0 0 base(1);
|
|
38
|
-
font-size: base(1.
|
|
39
|
-
line-height: 1.
|
|
40
|
-
letter-spacing: -0.5px;
|
|
31
|
+
font-size: base(1.3);
|
|
32
|
+
line-height: base(1.6);
|
|
41
33
|
|
|
42
34
|
@include small-break {
|
|
43
35
|
font-size: base(0.85);
|
|
@@ -46,9 +38,8 @@
|
|
|
46
38
|
|
|
47
39
|
%h3 {
|
|
48
40
|
margin: 0 0 base(1);
|
|
49
|
-
font-size: base(
|
|
50
|
-
line-height: 1.
|
|
51
|
-
letter-spacing: -0.5px;
|
|
41
|
+
font-size: base(1);
|
|
42
|
+
line-height: base(1.2);
|
|
52
43
|
|
|
53
44
|
@include small-break {
|
|
54
45
|
font-size: base(0.65);
|
|
@@ -58,27 +49,27 @@
|
|
|
58
49
|
|
|
59
50
|
%h4 {
|
|
60
51
|
margin: 0 0 $baseline;
|
|
61
|
-
font-size: base(0.
|
|
62
|
-
line-height: 1
|
|
52
|
+
font-size: base(0.8);
|
|
53
|
+
line-height: base(1);
|
|
63
54
|
letter-spacing: -0.375px;
|
|
64
55
|
}
|
|
65
56
|
|
|
66
57
|
%h5 {
|
|
67
58
|
margin: 0;
|
|
68
|
-
font-size: base(0.
|
|
69
|
-
line-height:
|
|
59
|
+
font-size: base(0.65);
|
|
60
|
+
line-height: base(0.8);
|
|
70
61
|
}
|
|
71
62
|
|
|
72
63
|
%h6 {
|
|
73
64
|
margin: 0;
|
|
74
|
-
font-size: base(0.
|
|
75
|
-
line-height:
|
|
65
|
+
font-size: base(0.6);
|
|
66
|
+
line-height: base(0.8);
|
|
76
67
|
}
|
|
77
68
|
|
|
78
69
|
%small {
|
|
79
70
|
margin: 0;
|
|
80
|
-
font-size:
|
|
81
|
-
line-height:
|
|
71
|
+
font-size: 12px;
|
|
72
|
+
line-height: 20px;
|
|
82
73
|
}
|
|
83
74
|
|
|
84
75
|
/////////////////////////////
|
package/dist/scss/vars.scss
CHANGED
|
@@ -13,7 +13,7 @@ $breakpoint-l-width: 1440px !default;
|
|
|
13
13
|
// BASELINE GRID
|
|
14
14
|
//////////////////////////////
|
|
15
15
|
|
|
16
|
-
$baseline-px:
|
|
16
|
+
$baseline-px: 20px !default;
|
|
17
17
|
$baseline-body-size: 13px !default;
|
|
18
18
|
$baseline: math.div($baseline-px, $baseline-body-size) + rem;
|
|
19
19
|
|
|
@@ -40,7 +40,7 @@ $color-purple: #f3ddf3 !default;
|
|
|
40
40
|
|
|
41
41
|
$style-radius-s: 3px !default;
|
|
42
42
|
$style-radius-m: 4px !default;
|
|
43
|
-
$style-radius-l:
|
|
43
|
+
$style-radius-l: 8px !default;
|
|
44
44
|
$style-stroke-width: 1px !default;
|
|
45
45
|
|
|
46
46
|
$style-stroke-width-s: 1px !default;
|
|
@@ -50,8 +50,8 @@ $style-stroke-width-m: 2px !default;
|
|
|
50
50
|
// MISC
|
|
51
51
|
//////////////////////////////
|
|
52
52
|
|
|
53
|
-
$top-header-offset: calc(
|
|
54
|
-
$top-header-offset-m:
|
|
53
|
+
$top-header-offset: calc(base(1) - 1px);
|
|
54
|
+
$top-header-offset-m: base(3);
|
|
55
55
|
$focus-box-shadow: 0 0 0 $style-stroke-width-m var(--theme-success-500);
|
|
56
56
|
|
|
57
57
|
//////////////////////////////
|
|
@@ -59,41 +59,19 @@ $focus-box-shadow: 0 0 0 $style-stroke-width-m var(--theme-success-500);
|
|
|
59
59
|
//////////////////////////////
|
|
60
60
|
|
|
61
61
|
@mixin shadow-sm {
|
|
62
|
-
box-shadow:
|
|
63
|
-
0 2px 3px 0 rgba(0, 2, 4, 0.05),
|
|
64
|
-
0 10px 4px -8px rgba(0, 2, 4, 0.02);
|
|
62
|
+
box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
@mixin shadow-m {
|
|
68
|
-
box-shadow:
|
|
69
|
-
0 0 30px 0 rgb(0 2 4 / 12%),
|
|
70
|
-
0 30px 25px -8px rgb(0 2 4 / 10%);
|
|
66
|
+
box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.1);
|
|
71
67
|
}
|
|
72
68
|
|
|
73
69
|
@mixin shadow-lg {
|
|
74
|
-
box-shadow:
|
|
75
|
-
0 20px 35px -10px rgba(0, 2, 4, 0.2),
|
|
76
|
-
0 6px 4px -4px rgba(0, 2, 4, 0.02);
|
|
70
|
+
box-shadow: 0 -2px 16px -2px rgba(0, 0, 0, 0.2);
|
|
77
71
|
}
|
|
78
72
|
|
|
79
73
|
@mixin shadow-lg-top {
|
|
80
|
-
box-shadow:
|
|
81
|
-
0 -20px 35px -10px rgba(0, 2, 4, 0.2),
|
|
82
|
-
0 -6px 4px -4px rgba(0, 2, 4, 0.02);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@mixin shadow {
|
|
86
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
|
|
87
|
-
|
|
88
|
-
&:hover {
|
|
89
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@mixin inputShadowActive {
|
|
94
|
-
box-shadow:
|
|
95
|
-
0 2px 3px 0 rgba(0, 2, 4, 0.16),
|
|
96
|
-
0 6px 4px -4px rgba(0, 2, 4, 0.13);
|
|
74
|
+
box-shadow: 0 2px 16px -2px rgba(0, 0, 0, 0.2);
|
|
97
75
|
}
|
|
98
76
|
|
|
99
77
|
@mixin inputShadow {
|
|
@@ -101,15 +79,7 @@ $focus-box-shadow: 0 0 0 $style-stroke-width-m var(--theme-success-500);
|
|
|
101
79
|
|
|
102
80
|
&:not(:disabled) {
|
|
103
81
|
&:hover {
|
|
104
|
-
box-shadow:
|
|
105
|
-
0 2px 3px 0 rgba(0, 2, 4, 0.13),
|
|
106
|
-
0 6px 4px -4px rgba(0, 2, 4, 0.1);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:active,
|
|
110
|
-
&:focus-within,
|
|
111
|
-
&:focus {
|
|
112
|
-
@include inputShadowActive;
|
|
82
|
+
box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.2);
|
|
113
83
|
}
|
|
114
84
|
}
|
|
115
85
|
}
|
|
@@ -147,19 +117,33 @@ $focus-box-shadow: 0 0 0 $style-stroke-width-m var(--theme-success-500);
|
|
|
147
117
|
@include blur-bg(var(--theme-bg), 0.3);
|
|
148
118
|
}
|
|
149
119
|
|
|
120
|
+
@mixin readOnly {
|
|
121
|
+
background: var(--theme-elevation-100);
|
|
122
|
+
color: var(--theme-elevation-400);
|
|
123
|
+
box-shadow: none;
|
|
124
|
+
|
|
125
|
+
&:hover {
|
|
126
|
+
border-color: var(--theme-elevation-150);
|
|
127
|
+
box-shadow: none;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
150
131
|
@mixin formInput() {
|
|
151
132
|
@include inputShadow;
|
|
152
133
|
font-family: var(--font-body);
|
|
153
134
|
width: 100%;
|
|
154
135
|
border: 1px solid var(--theme-elevation-150);
|
|
136
|
+
border-radius: var(--style-radius-s);
|
|
155
137
|
background: var(--theme-input-bg);
|
|
156
138
|
color: var(--theme-elevation-800);
|
|
157
|
-
border-radius: 0;
|
|
158
139
|
font-size: 1rem;
|
|
159
140
|
height: base(2);
|
|
160
141
|
line-height: base(1);
|
|
161
|
-
padding: base(0.
|
|
142
|
+
padding: base(0.4) base(0.75);
|
|
162
143
|
-webkit-appearance: none;
|
|
144
|
+
transition-property: border, box-shadow;
|
|
145
|
+
transition-duration: 100ms;
|
|
146
|
+
transition-timing-function: cubic-bezier(0, 0.2, 0.2, 1);
|
|
163
147
|
|
|
164
148
|
&[data-rtl='true'] {
|
|
165
149
|
direction: rtl;
|
|
@@ -189,12 +173,7 @@ $focus-box-shadow: 0 0 0 $style-stroke-width-m var(--theme-success-500);
|
|
|
189
173
|
}
|
|
190
174
|
|
|
191
175
|
&:disabled {
|
|
192
|
-
|
|
193
|
-
color: var(--theme-elevation-450);
|
|
194
|
-
|
|
195
|
-
&:hover {
|
|
196
|
-
border-color: var(--theme-elevation-150);
|
|
197
|
-
}
|
|
176
|
+
@include readOnly;
|
|
198
177
|
}
|
|
199
178
|
}
|
|
200
179
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/richtext-slate",
|
|
3
|
-
"version": "3.0.0-canary.
|
|
3
|
+
"version": "3.0.0-canary.95fcd13",
|
|
4
4
|
"description": "The officially supported Slate richtext adapter for Payload",
|
|
5
5
|
"homepage": "https://payloadcms.com",
|
|
6
6
|
"repository": {
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/is-hotkey": "^0.1.10",
|
|
35
35
|
"@types/node": "20.12.5",
|
|
36
|
-
"@types/react": "npm:types-react@19.0.0-
|
|
37
|
-
"@types/react-dom": "npm:types-react-dom@19.0.0-
|
|
38
|
-
"@payloadcms/eslint-config": "
|
|
39
|
-
"
|
|
40
|
-
"
|
|
36
|
+
"@types/react": "npm:types-react@19.0.0-rc.0",
|
|
37
|
+
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
|
38
|
+
"@payloadcms/eslint-config": "3.0.0-beta.59",
|
|
39
|
+
"payload": "3.0.0-canary.95fcd13",
|
|
40
|
+
"@payloadcms/ui": "3.0.0-canary.95fcd13"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"react": "^19.0.0 || ^19.0.0-rc-
|
|
44
|
-
"@payloadcms/
|
|
45
|
-
"@payloadcms/
|
|
46
|
-
"payload": "3.0.0-canary.
|
|
43
|
+
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610",
|
|
44
|
+
"@payloadcms/translations": "3.0.0-canary.95fcd13",
|
|
45
|
+
"@payloadcms/ui": "3.0.0-canary.95fcd13",
|
|
46
|
+
"payload": "3.0.0-canary.95fcd13"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": "^18.20.2 || >=20.9.0"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"registry": "https://registry.npmjs.org/"
|
|
53
53
|
},
|
|
54
54
|
"overrides": {
|
|
55
|
-
"@types/react": "npm:types-react@19.0.0-
|
|
56
|
-
"@types/react-dom": "npm:types-react-dom@19.0.0-
|
|
55
|
+
"@types/react": "npm:types-react@19.0.0-rc.0",
|
|
56
|
+
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "pnpm copyfiles && pnpm build:types && pnpm build:swc",
|