@tinacms/app 1.2.24 → 1.2.26
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/CHANGELOG.md +35 -0
- package/package.json +3 -5
- package/src/App.tsx +3 -0
- package/src/global.css +120 -0
- package/src/index.css +376 -0
- package/src/preflight.css +234 -0
- package/src/preview.tsx +7 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @tinacms/app
|
|
2
2
|
|
|
3
|
+
## 1.2.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [1563ce5b2]
|
|
8
|
+
- Updated dependencies [0e94b2725]
|
|
9
|
+
- Updated dependencies [e83ba8855]
|
|
10
|
+
- tinacms@1.5.19
|
|
11
|
+
- @tinacms/mdx@1.3.17
|
|
12
|
+
|
|
13
|
+
## 1.2.25
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 121bd9fc4: Absorb @tinacms/toolkit into tinacms
|
|
18
|
+
|
|
19
|
+
fix: Use clean page-sizes on media manager (to make pagination more obvious)
|
|
20
|
+
|
|
21
|
+
Fix issue with uploading media in a folder with tina cloud
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [9c27087fb]
|
|
24
|
+
- Updated dependencies [65d0a701f]
|
|
25
|
+
- Updated dependencies [133e97d5b]
|
|
26
|
+
- Updated dependencies [f02b4368b]
|
|
27
|
+
- Updated dependencies [37cf8bd40]
|
|
28
|
+
- Updated dependencies [8aae69436]
|
|
29
|
+
- Updated dependencies [a78c81f14]
|
|
30
|
+
- Updated dependencies [ad22e0950]
|
|
31
|
+
- Updated dependencies [8db979b9f]
|
|
32
|
+
- Updated dependencies [7991e097e]
|
|
33
|
+
- Updated dependencies [30c7eac58]
|
|
34
|
+
- Updated dependencies [121bd9fc4]
|
|
35
|
+
- tinacms@1.5.18
|
|
36
|
+
- @tinacms/mdx@1.3.16
|
|
37
|
+
|
|
3
38
|
## 1.2.24
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/app",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.26",
|
|
4
4
|
"main": "src/main.tsx",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
@@ -14,20 +14,18 @@
|
|
|
14
14
|
"@headlessui/react": "1.6.6",
|
|
15
15
|
"@heroicons/react": "1.0.6",
|
|
16
16
|
"@monaco-editor/react": "4.4.5",
|
|
17
|
-
"@tinacms/mdx": "1.3.
|
|
18
|
-
"@tinacms/toolkit": "1.7.13",
|
|
17
|
+
"@tinacms/mdx": "1.3.17",
|
|
19
18
|
"@xstate/react": "3.0.0",
|
|
20
19
|
"final-form": "4.20.7",
|
|
21
20
|
"graphiql": "3.0.0-alpha.1",
|
|
22
21
|
"graphql": "15.8.0",
|
|
23
22
|
"monaco-editor": "0.31.0",
|
|
24
23
|
"postcss": "^8.4.14",
|
|
25
|
-
"postcss-nested": "^5.0.6",
|
|
26
24
|
"react": "17.0.2",
|
|
27
25
|
"react-dom": "17.0.2",
|
|
28
26
|
"react-router-dom": "6.3.0",
|
|
29
27
|
"tailwindcss": "^3.2.7",
|
|
30
|
-
"tinacms": "1.5.
|
|
28
|
+
"tinacms": "1.5.19",
|
|
31
29
|
"typescript": "^4.6.4",
|
|
32
30
|
"zod": "^3.14.3"
|
|
33
31
|
}
|
package/src/App.tsx
CHANGED
|
@@ -9,6 +9,8 @@ import Playground from './Playground'
|
|
|
9
9
|
import config from 'TINA_IMPORT'
|
|
10
10
|
// @ts-expect-error
|
|
11
11
|
import schemaJson from 'SCHEMA_IMPORT'
|
|
12
|
+
// @ts-expect-error
|
|
13
|
+
import staticMedia from 'STATIC_MEDIA_IMPORT'
|
|
12
14
|
|
|
13
15
|
const RawEditor = React.lazy(() => import('./fields/rich-text'))
|
|
14
16
|
|
|
@@ -59,6 +61,7 @@ export const TinaAdminWrapper = () => {
|
|
|
59
61
|
{...config}
|
|
60
62
|
schema={schema}
|
|
61
63
|
client={{ apiUrl: __API_URL__ }}
|
|
64
|
+
staticMedia={staticMedia}
|
|
62
65
|
// THis will be replaced by the version of the graphql package or --garphql-version flag. It is replaced by vite at compile time
|
|
63
66
|
tinaGraphQLVersion={__TINA_GRAPHQL_VERSION__}
|
|
64
67
|
>
|
package/src/global.css
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--tina-color-primary-light: #2296fe;
|
|
3
|
+
--tina-color-primary: #0084ff;
|
|
4
|
+
--tina-color-primary-dark: #0574e4;
|
|
5
|
+
--tina-color-error-light: #eb6337;
|
|
6
|
+
--tina-color-error: #ec4815;
|
|
7
|
+
--tina-color-error-dark: #dc4419;
|
|
8
|
+
--tina-color-warning-light: #f5e06e;
|
|
9
|
+
--tina-color-warning: #e9d050;
|
|
10
|
+
--tina-color-warning-dark: #d3ba38;
|
|
11
|
+
--tina-color-success-light: #57c355;
|
|
12
|
+
--tina-color-success: #3cad3a;
|
|
13
|
+
--tina-color-success-dark: #249a21;
|
|
14
|
+
--tina-color-grey-0: #ffffff;
|
|
15
|
+
--tina-color-grey-1: #f6f6f9;
|
|
16
|
+
--tina-color-grey-2: #edecf3;
|
|
17
|
+
--tina-color-grey-3: #e1ddec;
|
|
18
|
+
--tina-color-grey-4: #b2adbe;
|
|
19
|
+
--tina-color-grey-5: #918c9e;
|
|
20
|
+
--tina-color-grey-6: #716c7f;
|
|
21
|
+
--tina-color-grey-7: #565165;
|
|
22
|
+
--tina-color-grey-8: #433e52;
|
|
23
|
+
--tina-color-grey-9: #363145;
|
|
24
|
+
--tina-color-grey-10: #252336;
|
|
25
|
+
--tina-color-indicator: var(--tina-color-primary);
|
|
26
|
+
|
|
27
|
+
--tina-radius-small: 5px;
|
|
28
|
+
--tina-radius-big: 24px;
|
|
29
|
+
|
|
30
|
+
--tina-padding-small: 12px;
|
|
31
|
+
--tina-padding-big: 20px;
|
|
32
|
+
|
|
33
|
+
--tina-font-size-0: 12px;
|
|
34
|
+
--tina-font-size-1: 13px;
|
|
35
|
+
--tina-font-size-2: 15px;
|
|
36
|
+
--tina-font-size-3: 16px;
|
|
37
|
+
--tina-font-size-4: 18px;
|
|
38
|
+
--tina-font-size-5: 20px;
|
|
39
|
+
--tina-font-size-6: 22px;
|
|
40
|
+
--tina-font-size-7: 26px;
|
|
41
|
+
--tina-font-size-8: 32px;
|
|
42
|
+
|
|
43
|
+
--tina-font-family: 'Inter', sans-serif;
|
|
44
|
+
|
|
45
|
+
--tina-font-weight-regular: 400;
|
|
46
|
+
--tina-font-weight-bold: 600;
|
|
47
|
+
|
|
48
|
+
--tina-shadow-big: 0px 2px 3px rgba(0, 0, 0, 0.05),
|
|
49
|
+
0 4px 12px rgba(0, 0, 0, 0.1);
|
|
50
|
+
--tina-shadow-small: 0px 2px 3px rgba(0, 0, 0, 0.12);
|
|
51
|
+
|
|
52
|
+
--tina-timing-short: 85ms;
|
|
53
|
+
--tina-timing-medium: 150ms;
|
|
54
|
+
--tina-timing-long: 250ms;
|
|
55
|
+
|
|
56
|
+
--tina-z-index-0: 0;
|
|
57
|
+
--tina-z-index-1: 10;
|
|
58
|
+
--tina-z-index-2: 20;
|
|
59
|
+
--tina-z-index-3: 30;
|
|
60
|
+
--tina-z-index-4: 40;
|
|
61
|
+
--tina-z-index-5: 50;
|
|
62
|
+
|
|
63
|
+
--tina-sidebar-width: 340px;
|
|
64
|
+
--tina-sidebar-header-height: 60px;
|
|
65
|
+
--tina-toolbar-height: 62px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes fly-in-left {
|
|
69
|
+
0% {
|
|
70
|
+
transform: translate3d(100%, 0, 0);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
100% {
|
|
74
|
+
transform: translate3d(0, 0, 0);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@keyframes fly-in-up {
|
|
79
|
+
0% {
|
|
80
|
+
transform: translate3d(0, 100%, 0);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
100% {
|
|
84
|
+
transform: translate3d(0, 0, 0);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes fade-in {
|
|
89
|
+
0% {
|
|
90
|
+
opacity: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
100% {
|
|
94
|
+
opacity: 1;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@keyframes popup-right {
|
|
99
|
+
0% {
|
|
100
|
+
transform: translate3d(-2rem, 0, 0);
|
|
101
|
+
opacity: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
100% {
|
|
105
|
+
transform: translate3d(0, 0, 0);
|
|
106
|
+
opacity: 1;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@keyframes popup-down {
|
|
111
|
+
0% {
|
|
112
|
+
transform: translate3d(0, -2rem, 0);
|
|
113
|
+
opacity: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
100% {
|
|
117
|
+
transform: translate3d(0, 0, 0);
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
}
|
package/src/index.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'global.css';
|
|
2
|
+
@import 'preflight.css';
|
|
1
3
|
@tailwind base;
|
|
2
4
|
@tailwind components;
|
|
3
5
|
@tailwind utilities;
|
|
@@ -6,3 +8,377 @@
|
|
|
6
8
|
.graphiql-execute-button {
|
|
7
9
|
@apply bg-blue-600 !important;
|
|
8
10
|
}
|
|
11
|
+
|
|
12
|
+
.icon-parent svg {
|
|
13
|
+
fill: currentColor;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
20
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
21
|
+
sans-serif;
|
|
22
|
+
-webkit-font-smoothing: antialiased;
|
|
23
|
+
-moz-osx-font-smoothing: grayscale;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
code {
|
|
27
|
+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
28
|
+
monospace;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
div.graphiql-explorer-root > div:last-child {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.graphiql-container {
|
|
36
|
+
height: 100vh !important;
|
|
37
|
+
width: 100vw !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* if the last block has margin-bottom it makes the text box larger but some of it isn't clickable */
|
|
41
|
+
.tina-prose [data-slate-editor='true'] {
|
|
42
|
+
padding-bottom: 0.5em;
|
|
43
|
+
/* Outline is placed on the parent element for styling consistency with other elements */
|
|
44
|
+
outline: none;
|
|
45
|
+
}
|
|
46
|
+
/* prose adds backticks, which look like they should be editable */
|
|
47
|
+
.tina-prose [data-slate-editor='true'] .slate-code::before {
|
|
48
|
+
content: '';
|
|
49
|
+
}
|
|
50
|
+
.tina-prose [data-slate-editor='true'] .slate-code::after {
|
|
51
|
+
content: '';
|
|
52
|
+
}
|
|
53
|
+
.tina-prose [data-slate-editor='true'] .slate-code_block {
|
|
54
|
+
margin: 0;
|
|
55
|
+
}
|
|
56
|
+
/* code lines as part of a block don't need the same background formatting */
|
|
57
|
+
.tina-prose [data-slate-editor='true'] .slate-code_block .slate-code {
|
|
58
|
+
background: none;
|
|
59
|
+
}
|
|
60
|
+
/* prose makes the first p in a block slightly larger */
|
|
61
|
+
.tina-prose [data-slate-editor='true'] p:first-of-type {
|
|
62
|
+
font-size: 1em;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* experimental floating toolbar doesn't need a large text area */
|
|
66
|
+
.with-toolbar [data-slate-editor='true'] {
|
|
67
|
+
min-height: 72px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@keyframes color-popup-keyframes {
|
|
71
|
+
0% {
|
|
72
|
+
transform: translate3d(-50%, 0, 0) scale3d(0.5, 0.5, 1);
|
|
73
|
+
}
|
|
74
|
+
100% {
|
|
75
|
+
transform: translate3d(-50%, 8px, 0) scale3d(1, 1, 1);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@keyframes color-popup-open-top-keyframes {
|
|
80
|
+
0% {
|
|
81
|
+
transform: translate3d(-50%, -100%, 0) scale3d(0.5, 0.5, 1);
|
|
82
|
+
}
|
|
83
|
+
100% {
|
|
84
|
+
transform: translate3d(-50%, calc(-100% - 8px), 0) scale3d(1, 1, 1);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes loading-dots-scale-up-and-down {
|
|
89
|
+
0% {
|
|
90
|
+
transform: scale(0.1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
50% {
|
|
94
|
+
transform: scale(1);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
90% {
|
|
98
|
+
transform: scale(0.1);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
100% {
|
|
102
|
+
transform: scale(0.1);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.color-picker-clip-path::before,
|
|
107
|
+
.color-picker-clip-path::after {
|
|
108
|
+
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.color-picker-on-top-clip-path::before,
|
|
112
|
+
.color-picker-on-top-clip-path::after {
|
|
113
|
+
clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.tina-date-field .rdt {
|
|
117
|
+
position: relative;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.tina-date-field .rdtPicker {
|
|
121
|
+
display: none;
|
|
122
|
+
position: absolute;
|
|
123
|
+
width: 100%;
|
|
124
|
+
max-width: 350px;
|
|
125
|
+
padding: 4px;
|
|
126
|
+
margin-top: 4px;
|
|
127
|
+
z-index: 99999 !important;
|
|
128
|
+
background: var(--tina-color-grey-0);
|
|
129
|
+
border-radius: var(--tina-radius-small);
|
|
130
|
+
box-shadow: var(--tina-shadow-big);
|
|
131
|
+
border: 1px solid var(--tina-color-grey-2);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.tina-date-field .rdtOpen .rdtPicker {
|
|
135
|
+
display: block;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.tina-date-field .rdtStatic .rdtPicker {
|
|
139
|
+
box-shadow: none;
|
|
140
|
+
position: static;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.tina-date-field .rdtPicker .rdtTimeToggle {
|
|
144
|
+
text-align: center;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.tina-date-field .rdtPicker table {
|
|
148
|
+
width: 100%;
|
|
149
|
+
margin: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.tina-date-field .rdtPicker td,
|
|
153
|
+
.rdtPicker th {
|
|
154
|
+
text-align: center;
|
|
155
|
+
height: 28px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.tina-date-field .rdtPicker td {
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.tina-date-field .rdtPicker td.rdtDay:hover,
|
|
163
|
+
.tina-date-field .rdtPicker td.rdtHour:hover,
|
|
164
|
+
.tina-date-field .rdtPicker td.rdtMinute:hover,
|
|
165
|
+
.tina-date-field .rdtPicker td.rdtSecond:hover,
|
|
166
|
+
.tina-date-field .rdtPicker .rdtTimeToggle:hover {
|
|
167
|
+
background: var(--tina-color-grey-2);
|
|
168
|
+
color: var(--tina-color-primary);
|
|
169
|
+
border-radius: var(--tina-radius-small);
|
|
170
|
+
cursor: pointer;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.tina-date-field .rdtPicker td.rdtDay:hover:active,
|
|
174
|
+
.tina-date-field .rdtPicker td.rdtHour:hover:active,
|
|
175
|
+
.tina-date-field .rdtPicker td.rdtMinute:hover:active,
|
|
176
|
+
.tina-date-field .rdtPicker td.rdtSecond:hover:active,
|
|
177
|
+
.tina-date-field .rdtPicker .rdtTimeToggle:hover:active {
|
|
178
|
+
background: var(--tina-color-primary);
|
|
179
|
+
color: var(--tina-color-grey-0);
|
|
180
|
+
border-radius: var(--tina-radius-small);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.tina-date-field .rdtPicker td.rdtOld,
|
|
184
|
+
.rdtPicker td.rdtNew {
|
|
185
|
+
color: var(--tina-color-grey-6);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.tina-date-field .rdtPicker td.rdtToday {
|
|
189
|
+
position: relative;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.tina-date-field .rdtPicker td.rdtToday:before {
|
|
193
|
+
content: '';
|
|
194
|
+
display: inline-block;
|
|
195
|
+
border-left: 7px solid transparent;
|
|
196
|
+
border-bottom: 7px solid var(--tina-color-primary);
|
|
197
|
+
border-radius: 20px;
|
|
198
|
+
border-top-color: rgba(0, 0, 0, 0.2);
|
|
199
|
+
position: absolute;
|
|
200
|
+
bottom: 4px;
|
|
201
|
+
right: 4px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.tina-date-field .rdtPicker td.rdtActive,
|
|
205
|
+
.rdtPicker td.rdtActive:hover {
|
|
206
|
+
background-color: var(--tina-color-primary);
|
|
207
|
+
color: var(--tina-color-grey-0);
|
|
208
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.tina-date-field .rdtPicker td.rdtActive.rdtToday:before {
|
|
212
|
+
border-bottom-color: var(--tina-color-grey-0);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.tina-date-field .rdtPicker td.rdtDisabled,
|
|
216
|
+
.rdtPicker td.rdtDisabled:hover {
|
|
217
|
+
background: none;
|
|
218
|
+
color: var(--tina-color-grey-6);
|
|
219
|
+
cursor: not-allowed;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.tina-date-field .rdtPicker td span.rdtOld {
|
|
223
|
+
color: var(--tina-color-grey-6);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.tina-date-field .rdtPicker td span.rdtDisabled,
|
|
227
|
+
.rdtPicker td span.rdtDisabled:hover {
|
|
228
|
+
background: none;
|
|
229
|
+
color: var(--tina-color-grey-6);
|
|
230
|
+
cursor: not-allowed;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.tina-date-field .rdtPicker th {
|
|
234
|
+
border-bottom: 1px solid var(--tina-color-grey-1);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.tina-date-field .rdtPicker .dow {
|
|
238
|
+
width: 14.2857%;
|
|
239
|
+
border-bottom: none;
|
|
240
|
+
cursor: default;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.tina-date-field .rdtPicker th.rdtSwitch {
|
|
244
|
+
width: 100px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.tina-date-field .rdtPicker th.rdtNext,
|
|
248
|
+
.rdtPicker th.rdtPrev {
|
|
249
|
+
font-size: 21px;
|
|
250
|
+
vertical-align: top;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.tina-date-field .rdtPrev span,
|
|
254
|
+
.rdtNext span {
|
|
255
|
+
display: block;
|
|
256
|
+
-webkit-touch-callout: none;
|
|
257
|
+
/* iOS Safari */
|
|
258
|
+
-webkit-user-select: none;
|
|
259
|
+
/* Chrome/Safari/Opera */
|
|
260
|
+
-khtml-user-select: none;
|
|
261
|
+
/* Konqueror */
|
|
262
|
+
-moz-user-select: none;
|
|
263
|
+
/* Firefox */
|
|
264
|
+
-ms-user-select: none;
|
|
265
|
+
/* Internet Explorer/Edge */
|
|
266
|
+
user-select: none;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.tina-date-field .rdtPicker th.rdtDisabled,
|
|
270
|
+
.rdtPicker th.rdtDisabled:hover {
|
|
271
|
+
background: none;
|
|
272
|
+
color: var(--tina-color-grey-6);
|
|
273
|
+
cursor: not-allowed;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.tina-date-field .rdtPicker thead tr:first-child th {
|
|
277
|
+
cursor: pointer;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.tina-date-field .rdtPicker thead tr:first-child th:hover {
|
|
281
|
+
background: var(--tina-color-grey-2);
|
|
282
|
+
color: var(--tina-color-primary);
|
|
283
|
+
border-radius: var(--tina-radius-small);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.tina-date-field .rdtPicker tfoot {
|
|
287
|
+
border-top: 1px solid var(--tina-color-grey-1);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.tina-date-field .rdtPicker button {
|
|
291
|
+
border: none;
|
|
292
|
+
background: none;
|
|
293
|
+
cursor: pointer;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.tina-date-field .rdtPicker button:hover {
|
|
297
|
+
background: var(--tina-color-grey-2);
|
|
298
|
+
color: var(--tina-color-primary);
|
|
299
|
+
border-radius: var(--tina-radius-small);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.tina-date-field .rdtPicker thead button {
|
|
303
|
+
width: 100%;
|
|
304
|
+
height: 100%;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.tina-date-field td.rdtMonth,
|
|
308
|
+
td.rdtYear {
|
|
309
|
+
height: 50px;
|
|
310
|
+
width: 25%;
|
|
311
|
+
cursor: pointer;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.tina-date-field td.rdtMonth:hover,
|
|
315
|
+
td.rdtYear:hover {
|
|
316
|
+
background: var(--tina-color-grey-2);
|
|
317
|
+
color: var(--tina-color-primary);
|
|
318
|
+
border-radius: var(--tina-radius-small);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.tina-date-field .rdtCounters {
|
|
322
|
+
display: inline-block;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.tina-date-field .rdtCounters > div {
|
|
326
|
+
float: left;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.tina-date-field .rdtCounter {
|
|
330
|
+
height: 100px;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.tina-date-field .rdtCounter {
|
|
334
|
+
width: 40px;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.tina-date-field .rdtCounterSeparator {
|
|
338
|
+
line-height: 100px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.tina-date-field .rdtCounter .rdtBtn {
|
|
342
|
+
height: 40%;
|
|
343
|
+
line-height: 40px;
|
|
344
|
+
cursor: pointer;
|
|
345
|
+
display: block;
|
|
346
|
+
-webkit-touch-callout: none;
|
|
347
|
+
/* iOS Safari */
|
|
348
|
+
-webkit-user-select: none;
|
|
349
|
+
/* Chrome/Safari/Opera */
|
|
350
|
+
-khtml-user-select: none;
|
|
351
|
+
/* Konqueror */
|
|
352
|
+
-moz-user-select: none;
|
|
353
|
+
/* Firefox */
|
|
354
|
+
-ms-user-select: none;
|
|
355
|
+
/* Internet Explorer/Edge */
|
|
356
|
+
user-select: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.tina-date-field .rdtCounter .rdtBtn:hover {
|
|
360
|
+
background: var(--tina-color-grey-2);
|
|
361
|
+
color: var(--tina-color-primary);
|
|
362
|
+
border-radius: var(--tina-radius-small);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.tina-date-field .rdtCounter .rdtCount {
|
|
366
|
+
height: 20%;
|
|
367
|
+
font-size: 1.2em;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.tina-date-field .rdtMilli {
|
|
371
|
+
vertical-align: middle;
|
|
372
|
+
padding-left: 8px;
|
|
373
|
+
width: 48px;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.tina-date-field .rdtMilli input {
|
|
377
|
+
width: 100%;
|
|
378
|
+
font-size: 1.2em;
|
|
379
|
+
margin-top: 37px;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.tina-date-field .rdtTime td {
|
|
383
|
+
cursor: default;
|
|
384
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
body {
|
|
2
|
+
line-height: 1.5;
|
|
3
|
+
-webkit-text-size-adjust: 100%;
|
|
4
|
+
-moz-tab-size: 4;
|
|
5
|
+
tab-size: 4;
|
|
6
|
+
|
|
7
|
+
*,
|
|
8
|
+
::before,
|
|
9
|
+
::after {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
border-width: 0;
|
|
12
|
+
border-style: solid;
|
|
13
|
+
border-color: transparent;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
::before,
|
|
17
|
+
::after {
|
|
18
|
+
--tw-content: '';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
hr {
|
|
22
|
+
height: 0; /* 1 */
|
|
23
|
+
color: inherit; /* 2 */
|
|
24
|
+
border-top-width: 1px; /* 3 */
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
abbr:where([title]) {
|
|
28
|
+
text-decoration: underline dotted;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h1,
|
|
32
|
+
h2,
|
|
33
|
+
h3,
|
|
34
|
+
h4,
|
|
35
|
+
h5,
|
|
36
|
+
h6 {
|
|
37
|
+
font-size: inherit;
|
|
38
|
+
font-weight: inherit;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
a {
|
|
42
|
+
color: inherit;
|
|
43
|
+
text-decoration: inherit;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
b,
|
|
47
|
+
strong {
|
|
48
|
+
font-weight: bolder;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
code,
|
|
52
|
+
kbd,
|
|
53
|
+
samp,
|
|
54
|
+
pre {
|
|
55
|
+
font-family: theme(
|
|
56
|
+
'fontFamily.mono',
|
|
57
|
+
ui-monospace,
|
|
58
|
+
SFMono-Regular,
|
|
59
|
+
Menlo,
|
|
60
|
+
Monaco,
|
|
61
|
+
Consolas,
|
|
62
|
+
'Liberation Mono',
|
|
63
|
+
'Courier New',
|
|
64
|
+
monospace
|
|
65
|
+
); /* 1 */
|
|
66
|
+
font-size: 1em; /* 2 */
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
small {
|
|
70
|
+
font-size: 80%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
sub,
|
|
74
|
+
sup {
|
|
75
|
+
font-size: 75%;
|
|
76
|
+
line-height: 0;
|
|
77
|
+
position: relative;
|
|
78
|
+
vertical-align: baseline;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
sub {
|
|
82
|
+
bottom: -0.25em;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
sup {
|
|
86
|
+
top: -0.5em;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
table {
|
|
90
|
+
text-indent: 0; /* 1 */
|
|
91
|
+
border-color: inherit; /* 2 */
|
|
92
|
+
border-collapse: collapse; /* 3 */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
button,
|
|
96
|
+
input,
|
|
97
|
+
optgroup,
|
|
98
|
+
select,
|
|
99
|
+
textarea {
|
|
100
|
+
font-family: inherit; /* 1 */
|
|
101
|
+
font-size: 100%; /* 1 */
|
|
102
|
+
line-height: inherit; /* 1 */
|
|
103
|
+
color: inherit; /* 1 */
|
|
104
|
+
margin: 0; /* 2 */
|
|
105
|
+
padding: 0; /* 3 */
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
button,
|
|
109
|
+
select {
|
|
110
|
+
text-transform: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
button,
|
|
114
|
+
[type='button'],
|
|
115
|
+
[type='reset'],
|
|
116
|
+
[type='submit'] {
|
|
117
|
+
-webkit-appearance: button; /* 1 */
|
|
118
|
+
background-color: transparent; /* 2 */
|
|
119
|
+
background-image: none; /* 2 */
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:-moz-focusring {
|
|
123
|
+
outline: auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:-moz-ui-invalid {
|
|
127
|
+
box-shadow: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
progress {
|
|
131
|
+
vertical-align: baseline;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
::-webkit-inner-spin-button,
|
|
135
|
+
::-webkit-outer-spin-button {
|
|
136
|
+
height: auto;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[type='search'] {
|
|
140
|
+
-webkit-appearance: textfield; /* 1 */
|
|
141
|
+
outline-offset: -2px; /* 2 */
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
::-webkit-search-decoration {
|
|
145
|
+
-webkit-appearance: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
::-webkit-file-upload-button {
|
|
149
|
+
-webkit-appearance: button; /* 1 */
|
|
150
|
+
font: inherit; /* 2 */
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
summary {
|
|
154
|
+
display: list-item;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
blockquote,
|
|
158
|
+
dl,
|
|
159
|
+
dd,
|
|
160
|
+
h1,
|
|
161
|
+
h2,
|
|
162
|
+
h3,
|
|
163
|
+
h4,
|
|
164
|
+
h5,
|
|
165
|
+
h6,
|
|
166
|
+
hr,
|
|
167
|
+
figure,
|
|
168
|
+
p,
|
|
169
|
+
pre {
|
|
170
|
+
margin: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
fieldset {
|
|
174
|
+
margin: 0;
|
|
175
|
+
padding: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
legend {
|
|
179
|
+
padding: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
ol,
|
|
183
|
+
ul,
|
|
184
|
+
menu {
|
|
185
|
+
list-style: none;
|
|
186
|
+
margin: 0;
|
|
187
|
+
padding: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
li:before {
|
|
191
|
+
display: none;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
textarea {
|
|
195
|
+
resize: vertical;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
input::placeholder,
|
|
199
|
+
textarea::placeholder {
|
|
200
|
+
opacity: 1; /* 1 */
|
|
201
|
+
color: theme('colors.gray.400', #9ca3af); /* 2 */
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
button,
|
|
205
|
+
[role='button'] {
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:disabled {
|
|
210
|
+
cursor: default;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
img,
|
|
214
|
+
svg,
|
|
215
|
+
video,
|
|
216
|
+
canvas,
|
|
217
|
+
audio,
|
|
218
|
+
iframe,
|
|
219
|
+
embed,
|
|
220
|
+
object {
|
|
221
|
+
display: block; /* 1 */
|
|
222
|
+
vertical-align: middle; /* 2 */
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
img,
|
|
226
|
+
video {
|
|
227
|
+
max-width: 100%;
|
|
228
|
+
height: auto;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
[hidden] {
|
|
232
|
+
display: none;
|
|
233
|
+
}
|
|
234
|
+
}
|
package/src/preview.tsx
CHANGED
|
@@ -16,14 +16,12 @@ export const Preview = (
|
|
|
16
16
|
useGraphQLReducer(props.iframeRef, props.url)
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/>
|
|
27
|
-
</div>
|
|
19
|
+
<iframe
|
|
20
|
+
data-test="tina-iframe"
|
|
21
|
+
id="tina-iframe"
|
|
22
|
+
ref={props.iframeRef}
|
|
23
|
+
className="h-screen w-full bg-white"
|
|
24
|
+
src={props.url}
|
|
25
|
+
/>
|
|
28
26
|
)
|
|
29
27
|
}
|