rapidoc 9.3.8 → 10.0.0
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/README.md +193 -61
- package/dist/rapidoc-min.js +279 -3914
- package/package.json +23 -46
- package/.babelrc.json +0 -42
- package/.eslintrc +0 -53
- package/.github/FUNDING.yml +0 -13
- package/.github/workflow/words.yaml +0 -22
- package/CONTRIBUTING.md +0 -35
- package/dist/index.html +0 -1010
- package/dist/index.html.gz +0 -0
- package/dist/rapidoc-min.js.LICENSE.txt +0 -64
- package/dist/rapidoc-min.js.LICENSE.txt.gz +0 -0
- package/dist/rapidoc-min.js.gz +0 -0
- package/dist/rapidoc-min.js.map +0 -1
- package/dist/rapidoc-min.js.map.gz +0 -0
- package/dist/rapidoc.js +0 -21603
- package/dist/report.html +0 -39
- package/index-hashroute.html +0 -65
- package/index.html +0 -1045
- package/index_bak.html +0 -251
- package/jsconfig.json +0 -11
- package/logo.png +0 -0
- package/performance.html +0 -31
- package/src/components/api-request.js +0 -1793
- package/src/components/api-response.js +0 -335
- package/src/components/dialog-box.js +0 -73
- package/src/components/json-tree.js +0 -145
- package/src/components/schema-table.js +0 -367
- package/src/components/schema-tree.js +0 -381
- package/src/components/tag-input.js +0 -135
- package/src/index.js +0 -7
- package/src/json-schema-viewer.js +0 -346
- package/src/oauth-receiver.js +0 -56
- package/src/rapidoc-mini.js +0 -382
- package/src/rapidoc.js +0 -1083
- package/src/styles/border-styles.js +0 -24
- package/src/styles/custom-styles.js +0 -10
- package/src/styles/dialog-box-styles.js +0 -75
- package/src/styles/endpoint-styles.js +0 -202
- package/src/styles/flex-styles.js +0 -15
- package/src/styles/font-styles.js +0 -268
- package/src/styles/info-styles.js +0 -21
- package/src/styles/input-styles.js +0 -207
- package/src/styles/nav-styles.js +0 -198
- package/src/styles/prism-styles.js +0 -105
- package/src/styles/schema-styles.js +0 -121
- package/src/styles/tab-styles.js +0 -47
- package/src/styles/table-styles.js +0 -58
- package/src/templates/advance-search-template.js +0 -72
- package/src/templates/callback-template.js +0 -75
- package/src/templates/code-samples-template.js +0 -34
- package/src/templates/components-template.js +0 -76
- package/src/templates/endpoint-template.js +0 -251
- package/src/templates/expanded-endpoint-template.js +0 -199
- package/src/templates/focused-endpoint-template.js +0 -110
- package/src/templates/header-template.js +0 -66
- package/src/templates/json-schema-viewer-template.js +0 -185
- package/src/templates/logo-template.js +0 -18
- package/src/templates/main-body-template.js +0 -110
- package/src/templates/navbar-template.js +0 -272
- package/src/templates/overview-template.js +0 -79
- package/src/templates/security-scheme-template.js +0 -612
- package/src/templates/server-template.js +0 -115
- package/src/utils/color-utils.js +0 -59
- package/src/utils/common-utils.js +0 -168
- package/src/utils/schema-utils.js +0 -1086
- package/src/utils/spec-parser.js +0 -462
- package/src/utils/theme.js +0 -288
- package/webpack.config.js +0 -142
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable max-len */
|
|
4
|
-
export default css`
|
|
5
|
-
/* Button */
|
|
6
|
-
.m-btn {
|
|
7
|
-
border-radius: var(--border-radius);
|
|
8
|
-
font-weight: 600;
|
|
9
|
-
display: inline-block;
|
|
10
|
-
padding: 6px 16px;
|
|
11
|
-
font-size: var(--font-size-small);
|
|
12
|
-
outline: 0;
|
|
13
|
-
line-height: 1;
|
|
14
|
-
text-align: center;
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
border: 2px solid var(--primary-color);
|
|
17
|
-
background-color:transparent;
|
|
18
|
-
user-select: none;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
|
|
21
|
-
transition-duration: 0.75s;
|
|
22
|
-
}
|
|
23
|
-
.m-btn.primary {
|
|
24
|
-
background-color: var(--primary-color);
|
|
25
|
-
color: var(--primary-color-invert);
|
|
26
|
-
}
|
|
27
|
-
.m-btn.thin-border { border-width: 1px; }
|
|
28
|
-
.m-btn.large { padding:8px 14px; }
|
|
29
|
-
.m-btn.small { padding:5px 12px; }
|
|
30
|
-
.m-btn.tiny { padding:5px 6px; }
|
|
31
|
-
.m-btn.circle { border-radius: 50%; }
|
|
32
|
-
.m-btn:hover {
|
|
33
|
-
background-color: var(--primary-color);
|
|
34
|
-
color: var(--primary-color-invert);
|
|
35
|
-
}
|
|
36
|
-
.m-btn.nav { border: 2px solid var(--nav-accent-color); }
|
|
37
|
-
.m-btn.nav:hover {
|
|
38
|
-
background-color: var(--nav-accent-color);
|
|
39
|
-
}
|
|
40
|
-
.m-btn:disabled {
|
|
41
|
-
background-color: var(--bg3);
|
|
42
|
-
color: var(--fg3);
|
|
43
|
-
border-color: var(--fg3);
|
|
44
|
-
cursor: not-allowed;
|
|
45
|
-
opacity: 0.4;
|
|
46
|
-
}
|
|
47
|
-
.m-btn:active {
|
|
48
|
-
filter: brightness(75%);
|
|
49
|
-
transform: scale(0.95);
|
|
50
|
-
transition:scale 0s;
|
|
51
|
-
}
|
|
52
|
-
.toolbar-btn {
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
padding: 4px;
|
|
55
|
-
margin:0 2px;
|
|
56
|
-
font-size: var(--font-size-small);
|
|
57
|
-
min-width: 50px;
|
|
58
|
-
color: var(--primary-color-invert);
|
|
59
|
-
border-radius: 2px;
|
|
60
|
-
border: none;
|
|
61
|
-
background-color: var(--primary-color);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
input, textarea, select, button, pre {
|
|
65
|
-
color:var(--fg);
|
|
66
|
-
outline: none;
|
|
67
|
-
background-color: var(--input-bg);
|
|
68
|
-
border: 1px solid var(--border-color);
|
|
69
|
-
border-radius: var(--border-radius);
|
|
70
|
-
}
|
|
71
|
-
button {
|
|
72
|
-
font-family: var(--font-regular);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* Form Inputs */
|
|
76
|
-
pre,
|
|
77
|
-
select,
|
|
78
|
-
textarea,
|
|
79
|
-
input[type="file"],
|
|
80
|
-
input[type="text"],
|
|
81
|
-
input[type="password"] {
|
|
82
|
-
font-family: var(--font-mono);
|
|
83
|
-
font-weight: 400;
|
|
84
|
-
font-size: var(--font-size-small);
|
|
85
|
-
transition: border .2s;
|
|
86
|
-
padding: 6px 5px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
select {
|
|
90
|
-
font-family: var(--font-regular);
|
|
91
|
-
padding: 5px 30px 5px 5px;
|
|
92
|
-
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E");
|
|
93
|
-
background-position: calc(100% - 5px) center;
|
|
94
|
-
background-repeat: no-repeat;
|
|
95
|
-
background-size: 10px;
|
|
96
|
-
-webkit-appearance: none;
|
|
97
|
-
-moz-appearance: none;
|
|
98
|
-
appearance: none;
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
select:hover {
|
|
103
|
-
border-color: var(--primary-color);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
textarea::placeholder,
|
|
107
|
-
input[type="text"]::placeholder,
|
|
108
|
-
input[type="password"]::placeholder {
|
|
109
|
-
color: var(--placeholder-color);
|
|
110
|
-
opacity:1;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
input[type="file"]{
|
|
115
|
-
font-family: var(--font-regular);
|
|
116
|
-
padding:2px;
|
|
117
|
-
cursor:pointer;
|
|
118
|
-
border: 1px solid var(--primary-color);
|
|
119
|
-
min-height: calc(var(--font-size-small) + 18px);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
input[type="file"]::-webkit-file-upload-button {
|
|
123
|
-
font-family: var(--font-regular);
|
|
124
|
-
font-size: var(--font-size-small);
|
|
125
|
-
outline: none;
|
|
126
|
-
cursor:pointer;
|
|
127
|
-
padding: 3px 8px;
|
|
128
|
-
border: 1px solid var(--primary-color);
|
|
129
|
-
background-color: var(--primary-color);
|
|
130
|
-
color: var(--primary-color-invert);
|
|
131
|
-
border-radius: var(--border-radius);;
|
|
132
|
-
-webkit-appearance: none;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
pre,
|
|
136
|
-
textarea {
|
|
137
|
-
scrollbar-width: thin;
|
|
138
|
-
scrollbar-color: var(--border-color) var(--input-bg);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
pre::-webkit-scrollbar,
|
|
142
|
-
textarea::-webkit-scrollbar {
|
|
143
|
-
width: 8px;
|
|
144
|
-
height: 8px;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
pre::-webkit-scrollbar-track,
|
|
148
|
-
textarea::-webkit-scrollbar-track {
|
|
149
|
-
background:var(--input-bg);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
pre::-webkit-scrollbar-thumb,
|
|
153
|
-
textarea::-webkit-scrollbar-thumb {
|
|
154
|
-
border-radius: 2px;
|
|
155
|
-
background-color: var(--border-color);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.link {
|
|
159
|
-
font-size:var(--font-size-small);
|
|
160
|
-
text-decoration: underline;
|
|
161
|
-
color:var(--blue);
|
|
162
|
-
font-family:var(--font-mono);
|
|
163
|
-
margin-bottom:2px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/* Toggle Body */
|
|
167
|
-
input[type="checkbox"] {
|
|
168
|
-
appearance: none;
|
|
169
|
-
display: inline-block;
|
|
170
|
-
background-color: var(--light-bg);
|
|
171
|
-
border: 1px solid var(--light-bg);
|
|
172
|
-
border-radius: 9px;
|
|
173
|
-
cursor: pointer;
|
|
174
|
-
height: 18px;
|
|
175
|
-
position: relative;
|
|
176
|
-
transition: border .25s .15s, box-shadow .25s .3s, padding .25s;
|
|
177
|
-
min-width: 36px;
|
|
178
|
-
width: 36px;
|
|
179
|
-
vertical-align: top;
|
|
180
|
-
}
|
|
181
|
-
/* Toggle Thumb */
|
|
182
|
-
input[type="checkbox"]:after {
|
|
183
|
-
position: absolute;
|
|
184
|
-
background-color: var(--bg);
|
|
185
|
-
border: 1px solid var(--light-bg);
|
|
186
|
-
border-radius: 8px;
|
|
187
|
-
content: '';
|
|
188
|
-
top: 0px;
|
|
189
|
-
left: 0px;
|
|
190
|
-
right: 16px;
|
|
191
|
-
display: block;
|
|
192
|
-
height: 16px;
|
|
193
|
-
transition: border .25s .15s, left .25s .1s, right .15s .175s;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/* Toggle Body - Checked */
|
|
197
|
-
input[type="checkbox"]:checked {
|
|
198
|
-
background-color: var(--green);
|
|
199
|
-
border-color: var(--green);
|
|
200
|
-
}
|
|
201
|
-
/* Toggle Thumb - Checked*/
|
|
202
|
-
input[type="checkbox"]:checked:after {
|
|
203
|
-
border: 1px solid var(--green);
|
|
204
|
-
left: 16px;
|
|
205
|
-
right: 1px;
|
|
206
|
-
transition: border .25s, left .15s .25s, right .25s .175s;
|
|
207
|
-
}`;
|
package/src/styles/nav-styles.js
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default css`
|
|
4
|
-
.nav-bar-info:focus-visible,
|
|
5
|
-
.nav-bar-tag:focus-visible,
|
|
6
|
-
.nav-bar-path:focus-visible {
|
|
7
|
-
outline: 1px solid;
|
|
8
|
-
box-shadow: none;
|
|
9
|
-
outline-offset: -4px;
|
|
10
|
-
}
|
|
11
|
-
.nav-bar-expand-all:focus-visible,
|
|
12
|
-
.nav-bar-collapse-all:focus-visible,
|
|
13
|
-
.nav-bar-tag-icon:focus-visible {
|
|
14
|
-
outline: 1px solid;
|
|
15
|
-
box-shadow: none;
|
|
16
|
-
outline-offset: 2px;
|
|
17
|
-
}
|
|
18
|
-
.nav-bar {
|
|
19
|
-
width:0;
|
|
20
|
-
height:100%;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
color:var(--nav-text-color);
|
|
23
|
-
background-color: var(--nav-bg-color);
|
|
24
|
-
background-blend-mode: multiply;
|
|
25
|
-
line-height: calc(var(--font-size-small) + 4px);
|
|
26
|
-
display:none;
|
|
27
|
-
position:relative;
|
|
28
|
-
flex-direction:column;
|
|
29
|
-
flex-wrap:nowrap;
|
|
30
|
-
word-break:break-word;
|
|
31
|
-
}
|
|
32
|
-
::slotted([slot=nav-logo]) {
|
|
33
|
-
padding:16px 16px 0 16px;
|
|
34
|
-
}
|
|
35
|
-
.nav-scroll {
|
|
36
|
-
overflow-x: hidden;
|
|
37
|
-
overflow-y: auto;
|
|
38
|
-
overflow-y: overlay;
|
|
39
|
-
scrollbar-width: thin;
|
|
40
|
-
scrollbar-color: var(--nav-hover-bg-color) transparent;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.nav-bar-tag {
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: space-between;
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
}
|
|
49
|
-
.nav-bar.read .nav-bar-tag-icon {
|
|
50
|
-
display:none;
|
|
51
|
-
}
|
|
52
|
-
.nav-bar-paths-under-tag {
|
|
53
|
-
overflow:hidden;
|
|
54
|
-
transition: max-height .2s ease-out, visibility .3s;
|
|
55
|
-
}
|
|
56
|
-
.collapsed .nav-bar-paths-under-tag {
|
|
57
|
-
visibility: hidden;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.nav-bar-expand-all {
|
|
61
|
-
transform: rotate(90deg);
|
|
62
|
-
cursor:pointer;
|
|
63
|
-
margin-right:10px;
|
|
64
|
-
}
|
|
65
|
-
.nav-bar-collapse-all {
|
|
66
|
-
transform: rotate(270deg);
|
|
67
|
-
cursor:pointer;
|
|
68
|
-
}
|
|
69
|
-
.nav-bar-expand-all:hover, .nav-bar-collapse-all:hover {
|
|
70
|
-
color: var(--primary-color);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.nav-bar-tag-icon {
|
|
74
|
-
color: var(--nav-text-color);
|
|
75
|
-
font-size: 20px;
|
|
76
|
-
}
|
|
77
|
-
.nav-bar-tag-icon:hover {
|
|
78
|
-
color:var(--nav-hover-text-color);
|
|
79
|
-
}
|
|
80
|
-
.nav-bar.focused .nav-bar-tag-and-paths.collapsed .nav-bar-tag-icon::after {
|
|
81
|
-
content: '⌵';
|
|
82
|
-
width:16px;
|
|
83
|
-
height:16px;
|
|
84
|
-
text-align: center;
|
|
85
|
-
display: inline-block;
|
|
86
|
-
transform: rotate(-90deg);
|
|
87
|
-
transition: transform 0.2s ease-out 0s;
|
|
88
|
-
}
|
|
89
|
-
.nav-bar.focused .nav-bar-tag-and-paths.expanded .nav-bar-tag-icon::after {
|
|
90
|
-
content: '⌵';
|
|
91
|
-
width:16px;
|
|
92
|
-
height:16px;
|
|
93
|
-
text-align: center;
|
|
94
|
-
display: inline-block;
|
|
95
|
-
transition: transform 0.2s ease-out 0s;
|
|
96
|
-
}
|
|
97
|
-
.nav-scroll::-webkit-scrollbar {
|
|
98
|
-
width: var(--scroll-bar-width, 8px);
|
|
99
|
-
}
|
|
100
|
-
.nav-scroll::-webkit-scrollbar-track {
|
|
101
|
-
background:transparent;
|
|
102
|
-
}
|
|
103
|
-
.nav-scroll::-webkit-scrollbar-thumb {
|
|
104
|
-
background-color: var(--nav-hover-bg-color);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.nav-bar-tag {
|
|
108
|
-
font-size: var(--font-size-regular);
|
|
109
|
-
color: var(--nav-accent-color);
|
|
110
|
-
border-left:4px solid transparent;
|
|
111
|
-
font-weight:bold;
|
|
112
|
-
padding: 15px 15px 15px 10px;
|
|
113
|
-
text-transform: capitalize;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.nav-bar-components,
|
|
117
|
-
.nav-bar-h1,
|
|
118
|
-
.nav-bar-h2,
|
|
119
|
-
.nav-bar-info,
|
|
120
|
-
.nav-bar-tag,
|
|
121
|
-
.nav-bar-path {
|
|
122
|
-
display:flex;
|
|
123
|
-
cursor: pointer;
|
|
124
|
-
width: 100%;
|
|
125
|
-
border: none;
|
|
126
|
-
border-radius:4px;
|
|
127
|
-
color: var(--nav-text-color);
|
|
128
|
-
background: transparent;
|
|
129
|
-
border-left:4px solid transparent;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.nav-bar-h1,
|
|
133
|
-
.nav-bar-h2,
|
|
134
|
-
.nav-bar-path {
|
|
135
|
-
font-size: calc(var(--font-size-small) + 1px);
|
|
136
|
-
padding: var(--nav-item-padding);
|
|
137
|
-
}
|
|
138
|
-
.nav-bar-path.small-font {
|
|
139
|
-
font-size: var(--font-size-small);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.nav-bar-info {
|
|
143
|
-
font-size: var(--font-size-regular);
|
|
144
|
-
padding: 16px 10px;
|
|
145
|
-
font-weight:bold;
|
|
146
|
-
}
|
|
147
|
-
.nav-bar-section {
|
|
148
|
-
display: flex;
|
|
149
|
-
flex-direction: row;
|
|
150
|
-
justify-content: space-between;
|
|
151
|
-
font-size: var(--font-size-small);
|
|
152
|
-
color: var(--nav-text-color);
|
|
153
|
-
padding: var(--nav-item-padding);
|
|
154
|
-
font-weight:bold;
|
|
155
|
-
}
|
|
156
|
-
.nav-bar-section.operations {
|
|
157
|
-
cursor:pointer;
|
|
158
|
-
}
|
|
159
|
-
.nav-bar-section.operations:hover {
|
|
160
|
-
color:var(--nav-hover-text-color);
|
|
161
|
-
background-color:var(--nav-hover-bg-color);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.nav-bar-section:first-child {
|
|
165
|
-
display: none;
|
|
166
|
-
}
|
|
167
|
-
.nav-bar-h2 {margin-left:12px;}
|
|
168
|
-
|
|
169
|
-
.nav-bar-h1.left-bar.active,
|
|
170
|
-
.nav-bar-h2.left-bar.active,
|
|
171
|
-
.nav-bar-info.left-bar.active,
|
|
172
|
-
.nav-bar-tag.left-bar.active,
|
|
173
|
-
.nav-bar-path.left-bar.active,
|
|
174
|
-
.nav-bar-section.left-bar.operations.active {
|
|
175
|
-
border-left:4px solid var(--nav-accent-color);
|
|
176
|
-
color:var(--nav-hover-text-color);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.nav-bar-h1.colored-block.active,
|
|
180
|
-
.nav-bar-h2.colored-block.active,
|
|
181
|
-
.nav-bar-info.colored-block.active,
|
|
182
|
-
.nav-bar-tag.colored-block.active,
|
|
183
|
-
.nav-bar-path.colored-block.active,
|
|
184
|
-
.nav-bar-section.colored-block.operations.active {
|
|
185
|
-
background-color: var(--nav-accent-color);
|
|
186
|
-
color: var(--nav-accent-text-color);
|
|
187
|
-
border-radius: 0;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.nav-bar-h1:hover,
|
|
191
|
-
.nav-bar-h2:hover,
|
|
192
|
-
.nav-bar-info:hover,
|
|
193
|
-
.nav-bar-tag:hover,
|
|
194
|
-
.nav-bar-path:hover {
|
|
195
|
-
color:var(--nav-hover-text-color);
|
|
196
|
-
background-color:var(--nav-hover-bg-color);
|
|
197
|
-
}
|
|
198
|
-
`;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default css`
|
|
4
|
-
code[class*="language-"],
|
|
5
|
-
pre[class*="language-"] {
|
|
6
|
-
text-align: left;
|
|
7
|
-
white-space: pre;
|
|
8
|
-
word-spacing: normal;
|
|
9
|
-
word-break: normal;
|
|
10
|
-
word-wrap: normal;
|
|
11
|
-
line-height: 1.5;
|
|
12
|
-
tab-size: 2;
|
|
13
|
-
|
|
14
|
-
-webkit-hyphens: none;
|
|
15
|
-
-moz-hyphens: none;
|
|
16
|
-
-ms-hyphens: none;
|
|
17
|
-
hyphens: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* Code blocks */
|
|
21
|
-
pre[class*="language-"] {
|
|
22
|
-
padding: 1em;
|
|
23
|
-
margin: .5em 0;
|
|
24
|
-
overflow: auto;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* Inline code */
|
|
28
|
-
:not(pre) > code[class*="language-"] {
|
|
29
|
-
white-space: normal;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.token.comment,
|
|
33
|
-
.token.block-comment,
|
|
34
|
-
.token.prolog,
|
|
35
|
-
.token.doctype,
|
|
36
|
-
.token.cdata {
|
|
37
|
-
color: var(--light-fg)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.token.punctuation {
|
|
41
|
-
color: var(--fg);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.token.tag,
|
|
45
|
-
.token.attr-name,
|
|
46
|
-
.token.namespace,
|
|
47
|
-
.token.deleted {
|
|
48
|
-
color:var(--pink);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.token.function-name {
|
|
52
|
-
color: var(--blue);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.token.boolean,
|
|
56
|
-
.token.number,
|
|
57
|
-
.token.function {
|
|
58
|
-
color: var(--red);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.token.property,
|
|
62
|
-
.token.class-name,
|
|
63
|
-
.token.constant,
|
|
64
|
-
.token.symbol {
|
|
65
|
-
color: var(--code-property-color);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.token.selector,
|
|
69
|
-
.token.important,
|
|
70
|
-
.token.atrule,
|
|
71
|
-
.token.keyword,
|
|
72
|
-
.token.builtin {
|
|
73
|
-
color: var(--code-keyword-color);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.token.string,
|
|
77
|
-
.token.char,
|
|
78
|
-
.token.attr-value,
|
|
79
|
-
.token.regex,
|
|
80
|
-
.token.variable {
|
|
81
|
-
color: var(--green);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.token.operator,
|
|
85
|
-
.token.entity,
|
|
86
|
-
.token.url {
|
|
87
|
-
color: var(--code-operator-color);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.token.important,
|
|
91
|
-
.token.bold {
|
|
92
|
-
font-weight: bold;
|
|
93
|
-
}
|
|
94
|
-
.token.italic {
|
|
95
|
-
font-style: italic;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.token.entity {
|
|
99
|
-
cursor: help;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.token.inserted {
|
|
103
|
-
color: green;
|
|
104
|
-
}
|
|
105
|
-
`;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default css`
|
|
4
|
-
|
|
5
|
-
*, *:before, *:after { box-sizing: border-box; }
|
|
6
|
-
:host {
|
|
7
|
-
container-type: inline-size;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.tr {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex: none;
|
|
13
|
-
width: 100%;
|
|
14
|
-
box-sizing: content-box;
|
|
15
|
-
border-bottom: 1px dotted transparent;
|
|
16
|
-
transition: max-height 0.3s ease-out;
|
|
17
|
-
}
|
|
18
|
-
.td {
|
|
19
|
-
display: block;
|
|
20
|
-
flex: 0 0 auto;
|
|
21
|
-
}
|
|
22
|
-
.key {
|
|
23
|
-
font-family: var(--font-mono);
|
|
24
|
-
white-space: normal;
|
|
25
|
-
word-break: break-all;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.collapsed-all-descr .key {
|
|
29
|
-
overflow:hidden;
|
|
30
|
-
}
|
|
31
|
-
.expanded-all-descr .key-descr .descr-expand-toggle {
|
|
32
|
-
display:none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.key-descr .descr-expand-toggle {
|
|
36
|
-
display:inline-block;
|
|
37
|
-
user-select:none;
|
|
38
|
-
color: var(--fg);
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
transform: rotate(45deg);
|
|
41
|
-
transition: transform .2s ease;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.expanded-descr .key-descr .descr-expand-toggle {
|
|
45
|
-
transform: rotate(270deg)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.key-descr .descr-expand-toggle:hover {
|
|
49
|
-
color: var(--primary-color);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.expanded-descr .more-content { display:none; }
|
|
53
|
-
|
|
54
|
-
.key-descr {
|
|
55
|
-
font-family:var(--font-regular);
|
|
56
|
-
color:var(--light-fg);
|
|
57
|
-
flex-shrink: 1;
|
|
58
|
-
text-overflow: ellipsis;
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
display: none;
|
|
61
|
-
}
|
|
62
|
-
.expanded-descr .key-descr{
|
|
63
|
-
max-height:auto;
|
|
64
|
-
overflow:hidden;
|
|
65
|
-
display: none;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.xxx-of-key {
|
|
69
|
-
font-size: calc(var(--font-size-small) - 2px);
|
|
70
|
-
font-weight:bold;
|
|
71
|
-
background-color:var(--primary-color);
|
|
72
|
-
color:var(--primary-color-invert);
|
|
73
|
-
border-radius:2px;
|
|
74
|
-
line-height:calc(var(--font-size-small) + 6px);
|
|
75
|
-
padding:0px 5px;
|
|
76
|
-
margin-bottom:1px;
|
|
77
|
-
display:inline-block;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.xxx-of-descr {
|
|
81
|
-
font-family: var(--font-regular);
|
|
82
|
-
color: var(--primary-color);
|
|
83
|
-
font-size: calc(var(--font-size-small) - 1px);
|
|
84
|
-
margin-left: 2px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.stri, .string, .uri, .url, .byte, .bina, .date, .pass, .ipv4, .ipv4, .uuid, .emai, .host { color:var(--green); }
|
|
88
|
-
.inte, .numb, .number, .int6, .int3, .floa, .doub, .deci .blue { color:var(--blue); }
|
|
89
|
-
.null { color:var(--red); }
|
|
90
|
-
.bool, .boolean { color:var(--orange) }
|
|
91
|
-
.enum { color:var(--purple) }
|
|
92
|
-
.cons { color:var(--purple) }
|
|
93
|
-
.recu { color:var(--brown) }
|
|
94
|
-
.toolbar {
|
|
95
|
-
display:flex;
|
|
96
|
-
width:100%;
|
|
97
|
-
padding: 2px 0;
|
|
98
|
-
color:var(--primary-color);
|
|
99
|
-
}
|
|
100
|
-
.toolbar-item {
|
|
101
|
-
cursor:pointer;
|
|
102
|
-
padding:5px 0;
|
|
103
|
-
margin:0 2px;
|
|
104
|
-
}
|
|
105
|
-
.schema-root-type {
|
|
106
|
-
cursor:auto;
|
|
107
|
-
color:var(--fg2);
|
|
108
|
-
font-weight: bold;
|
|
109
|
-
text-transform: uppercase;
|
|
110
|
-
}
|
|
111
|
-
.toolbar-item:first-of-type { margin:0 2px 0 0;}
|
|
112
|
-
|
|
113
|
-
@container (min-width: 500px) {
|
|
114
|
-
.key-descr {
|
|
115
|
-
display: block;
|
|
116
|
-
}
|
|
117
|
-
.expanded-descr .key-descr {
|
|
118
|
-
display: block;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
`;
|
package/src/styles/tab-styles.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default css`
|
|
4
|
-
.tab-panel {
|
|
5
|
-
border: none;
|
|
6
|
-
}
|
|
7
|
-
.tab-buttons {
|
|
8
|
-
height:30px;
|
|
9
|
-
padding: 4px 4px 0 4px;
|
|
10
|
-
border-bottom: 1px solid var(--light-border-color) ;
|
|
11
|
-
align-items: stretch;
|
|
12
|
-
overflow-y: hidden;
|
|
13
|
-
overflow-x: auto;
|
|
14
|
-
scrollbar-width: thin;
|
|
15
|
-
}
|
|
16
|
-
.tab-buttons::-webkit-scrollbar {
|
|
17
|
-
height: 1px;
|
|
18
|
-
background-color: var(--border-color);
|
|
19
|
-
}
|
|
20
|
-
.tab-btn {
|
|
21
|
-
border: none;
|
|
22
|
-
border-bottom: 3px solid transparent;
|
|
23
|
-
color: var(--light-fg);
|
|
24
|
-
background-color: transparent;
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
cursor:pointer;
|
|
27
|
-
outline:none;
|
|
28
|
-
font-family:var(--font-regular);
|
|
29
|
-
font-size:var(--font-size-small);
|
|
30
|
-
margin-right:16px;
|
|
31
|
-
padding:1px;
|
|
32
|
-
}
|
|
33
|
-
.tab-btn.active {
|
|
34
|
-
border-bottom: 3px solid var(--primary-color);
|
|
35
|
-
font-weight:bold;
|
|
36
|
-
color:var(--primary-color);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.tab-btn:hover {
|
|
40
|
-
color:var(--primary-color);
|
|
41
|
-
}
|
|
42
|
-
.tab-content {
|
|
43
|
-
margin:-1px 0 0 0;
|
|
44
|
-
position:relative;
|
|
45
|
-
min-height: 50px;
|
|
46
|
-
}
|
|
47
|
-
`;
|