jbx 2.4.0 → 2.6.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/.nvmrc +1 -0
- package/README.md +6 -6
- package/dist/index.cjs +3001 -0
- package/dist/index.esm.js +2968 -0
- package/dist/index.mjs +2968 -0
- package/dist/main.css +359 -0
- package/dist/main.js +238 -0
- package/dist/main.js.map +1 -0
- package/dist/types/index.d.ts +233 -0
- package/package.json +24 -4
- package/pnpm-global/5/pnpm-lock.yaml +621 -0
- package/roll.js +235 -0
- package/src/components/Layout.tsx +29 -0
- package/src/components/MoreExperiments.tsx +110 -0
- package/{index.js → src/index.tsx} +49 -39
- package/{style.css → src/style.css} +143 -54
- package/tsconfig.json +20 -0
|
@@ -9,19 +9,23 @@ html {
|
|
|
9
9
|
|
|
10
10
|
:root {
|
|
11
11
|
--size: 16px;
|
|
12
|
-
--
|
|
13
|
-
--
|
|
12
|
+
--font-size: 20px;
|
|
13
|
+
--font-size-small: 17px;
|
|
14
|
+
--radius-small: 2px;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
@media screen and (max-width: 1200px) {
|
|
17
18
|
:root {
|
|
18
|
-
--
|
|
19
|
+
--font-size: 18px;
|
|
20
|
+
--font-size-small: 16px;
|
|
21
|
+
--size: 14px;
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
@media screen and (max-width: 600px) {
|
|
23
26
|
:root {
|
|
24
|
-
--
|
|
27
|
+
--font-size: 16px;
|
|
28
|
+
--font-size-small: 14px;
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -46,12 +50,43 @@ body {
|
|
|
46
50
|
color: #000;
|
|
47
51
|
}
|
|
48
52
|
|
|
53
|
+
h1,
|
|
54
|
+
h2,
|
|
55
|
+
h3,
|
|
56
|
+
h4 {
|
|
57
|
+
line-height: 1;
|
|
58
|
+
padding: 0;
|
|
59
|
+
font-variation-settings: 'wdth' 107;
|
|
60
|
+
color: var(--base-font-color-bright);
|
|
61
|
+
font-weight: 650;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
strong,
|
|
65
|
+
b {
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.jbx-h1 {
|
|
70
|
+
font-size: calc(var(--font-size) * 2);
|
|
71
|
+
font-weight: 700;
|
|
72
|
+
}
|
|
73
|
+
.jbx-h2 {
|
|
74
|
+
font-size: calc(var(--font-size) * 1.25);
|
|
75
|
+
}
|
|
76
|
+
.jbx-h3 {
|
|
77
|
+
font-size: calc(var(--font-size) * 1);
|
|
78
|
+
}
|
|
79
|
+
.jbx-h4 {
|
|
80
|
+
font-size: var(--font-size-small);
|
|
81
|
+
text-transform: uppercase;
|
|
82
|
+
}
|
|
83
|
+
|
|
49
84
|
/* base text */
|
|
50
85
|
html,
|
|
51
86
|
body,
|
|
52
87
|
.jbx-button,
|
|
53
88
|
.jbx-input {
|
|
54
|
-
font-size: var(--
|
|
89
|
+
font-size: var(--font-size);
|
|
55
90
|
line-height: 1;
|
|
56
91
|
}
|
|
57
92
|
|
|
@@ -89,6 +124,8 @@ body,
|
|
|
89
124
|
}
|
|
90
125
|
|
|
91
126
|
.jbx-button {
|
|
127
|
+
color: #000;
|
|
128
|
+
border-radius: var(--radius-small);
|
|
92
129
|
appearance: none;
|
|
93
130
|
user-select: none;
|
|
94
131
|
cursor: pointer;
|
|
@@ -98,53 +135,85 @@ body,
|
|
|
98
135
|
padding: 0 calc(var(--size) / 2);
|
|
99
136
|
border: none;
|
|
100
137
|
height: calc(var(--size) * 2.5);
|
|
138
|
+
transition: top 0.1s, left 0.1s, box-shadow 0.05s;
|
|
101
139
|
}
|
|
102
140
|
.jbx-button:active {
|
|
103
|
-
top:
|
|
104
|
-
left:
|
|
105
|
-
box-shadow:
|
|
141
|
+
top: 1px;
|
|
142
|
+
left: 1px;
|
|
143
|
+
box-shadow: 1px 1px 0 #ccc;
|
|
106
144
|
}
|
|
107
145
|
|
|
146
|
+
/* LINKS */
|
|
108
147
|
.jbx-a {
|
|
148
|
+
cursor: pointer;
|
|
109
149
|
color: #000;
|
|
110
|
-
box-shadow:
|
|
111
|
-
font-weight:
|
|
150
|
+
box-shadow: #0002 0 2px 0;
|
|
151
|
+
font-weight: 500;
|
|
112
152
|
text-decoration: none;
|
|
113
153
|
}
|
|
114
|
-
.jbx-a
|
|
115
|
-
|
|
154
|
+
.jbx-a::after {
|
|
155
|
+
content: '↗';
|
|
156
|
+
color: #0004;
|
|
157
|
+
font-size: var(--font-size-small);
|
|
158
|
+
position: relative;
|
|
159
|
+
top: -1px;
|
|
160
|
+
right: -1px;
|
|
161
|
+
transition: top 0.3s, right 0.3s, color 0.3s;
|
|
116
162
|
}
|
|
117
|
-
|
|
118
|
-
.jbx-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
.jbx-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
163
|
+
.jbx-a:hover,
|
|
164
|
+
.jbx-block-link:hover .jbx-a {
|
|
165
|
+
box-shadow: var(--accent-color) 0 2px 0;
|
|
166
|
+
}
|
|
167
|
+
.jbx-a:hover::after,
|
|
168
|
+
.jbx-block-link:hover .jbx-a::after {
|
|
169
|
+
top: -3px;
|
|
170
|
+
right: -3px;
|
|
171
|
+
color: var(--accent-color);
|
|
126
172
|
}
|
|
127
173
|
|
|
128
|
-
.jbx-
|
|
129
|
-
|
|
130
|
-
|
|
174
|
+
.jbx-block-link {
|
|
175
|
+
min-width: 300px;
|
|
176
|
+
flex: 1;
|
|
177
|
+
text-decoration: none;
|
|
178
|
+
color: #000;
|
|
179
|
+
display: inline-block;
|
|
180
|
+
padding: var(--size);
|
|
131
181
|
}
|
|
132
|
-
.jbx-
|
|
133
|
-
|
|
134
|
-
|
|
182
|
+
a.jbx-a::before,
|
|
183
|
+
.jbx-block-link::before {
|
|
184
|
+
content: '';
|
|
185
|
+
display: block;
|
|
186
|
+
position: absolute;
|
|
187
|
+
background-color: #ecf0f1;
|
|
188
|
+
z-index: -1;
|
|
189
|
+
transition: transform 0.2s, opacity 0.2s;
|
|
190
|
+
transform: scale(0.98) translatey(4px);
|
|
191
|
+
opacity: 0;
|
|
192
|
+
top: -4px;
|
|
193
|
+
left: -6px;
|
|
194
|
+
right: -6px;
|
|
195
|
+
bottom: -4px;
|
|
135
196
|
}
|
|
136
|
-
.jbx-
|
|
137
|
-
|
|
138
|
-
letter-spacing: -0.33px;
|
|
197
|
+
.jbx-block-link::before {
|
|
198
|
+
border-radius: 16px;
|
|
139
199
|
}
|
|
140
|
-
.jbx-
|
|
141
|
-
|
|
142
|
-
|
|
200
|
+
a.jbx-a::before {
|
|
201
|
+
border-radius: 8px;
|
|
202
|
+
}
|
|
203
|
+
a.jbx-a:hover::before,
|
|
204
|
+
.jbx-block-link:hover::before {
|
|
205
|
+
transform: scale(1) translatey(0);
|
|
206
|
+
opacity: 1;
|
|
143
207
|
}
|
|
144
208
|
|
|
209
|
+
.jbx-a {
|
|
210
|
+
display: inline-block;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* /LINKS */
|
|
214
|
+
|
|
145
215
|
.jbx-small-text {
|
|
146
|
-
font-size:
|
|
147
|
-
line-height: calc(var(--base-font-size) * 0.6);
|
|
216
|
+
font-size: var(--font-size-small);
|
|
148
217
|
}
|
|
149
218
|
|
|
150
219
|
.jbx-container {
|
|
@@ -171,6 +240,10 @@ body,
|
|
|
171
240
|
flex-direction: column;
|
|
172
241
|
}
|
|
173
242
|
|
|
243
|
+
.jbx-text {
|
|
244
|
+
line-height: 1.4;
|
|
245
|
+
}
|
|
246
|
+
|
|
174
247
|
.jbx-input {
|
|
175
248
|
color: #777;
|
|
176
249
|
-webkit-text-fill-color: #777;
|
|
@@ -179,7 +252,7 @@ body,
|
|
|
179
252
|
display: block;
|
|
180
253
|
appearance: none;
|
|
181
254
|
border: none;
|
|
182
|
-
border-radius:
|
|
255
|
+
border-radius: var(--radius-small);
|
|
183
256
|
height: calc(var(--size) * 2.5);
|
|
184
257
|
background-color: #eee;
|
|
185
258
|
padding: 0 calc(var(--size) * 0.5);
|
|
@@ -189,7 +262,6 @@ body,
|
|
|
189
262
|
.jbx-dropzone {
|
|
190
263
|
height: 120px;
|
|
191
264
|
flex: 1;
|
|
192
|
-
max-width: 320px;
|
|
193
265
|
display: flex;
|
|
194
266
|
text-align: center;
|
|
195
267
|
align-items: center;
|
|
@@ -218,29 +290,14 @@ body,
|
|
|
218
290
|
cursor: pointer;
|
|
219
291
|
}
|
|
220
292
|
|
|
221
|
-
/*export const Dropzone = Styled.div({
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
},
|
|
226
|
-
'& input': {
|
|
227
|
-
position: 'absolute',
|
|
228
|
-
top: '0',
|
|
229
|
-
left: '0',
|
|
230
|
-
height: '100%',
|
|
231
|
-
width: '100%',
|
|
232
|
-
opacity: '0',
|
|
233
|
-
cursor: 'pointer'
|
|
234
|
-
}
|
|
235
|
-
});*/
|
|
236
|
-
|
|
237
293
|
.jbx-range {
|
|
238
294
|
flex: 1;
|
|
239
295
|
width: 100%;
|
|
240
296
|
appearance: none;
|
|
241
|
-
background-color:
|
|
297
|
+
background-color: #bdc3c780;
|
|
242
298
|
height: var(--size);
|
|
243
299
|
border-radius: 0;
|
|
300
|
+
border-radius: var(--radius-small);
|
|
244
301
|
}
|
|
245
302
|
|
|
246
303
|
.jbx-range::-webkit-slider-thumb {
|
|
@@ -252,6 +309,7 @@ body,
|
|
|
252
309
|
width: var(--size);
|
|
253
310
|
background-color: #000;
|
|
254
311
|
border: none;
|
|
312
|
+
border-radius: var(--radius-small);
|
|
255
313
|
}
|
|
256
314
|
.jbx-range::-moz-range-thumb {
|
|
257
315
|
appearance: none;
|
|
@@ -261,10 +319,41 @@ body,
|
|
|
261
319
|
width: var(--size);
|
|
262
320
|
background-color: #000;
|
|
263
321
|
border: none;
|
|
322
|
+
border-radius: var(--radius-small);
|
|
264
323
|
}
|
|
265
324
|
.jbx-range::-webkit-slider-runnable-track {
|
|
266
325
|
appearance: none;
|
|
326
|
+
/*background-color: yellow;*/
|
|
267
327
|
}
|
|
268
328
|
.jbx-range:focus {
|
|
269
329
|
outline: none;
|
|
270
330
|
}
|
|
331
|
+
|
|
332
|
+
.jbx-bullet-container {
|
|
333
|
+
display: inline-block;
|
|
334
|
+
margin: -8px 4px -8px 0;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.jbx-bullet {
|
|
338
|
+
border: 1.5px solid #000;
|
|
339
|
+
color: #000;
|
|
340
|
+
text-align: center;
|
|
341
|
+
line-height: 0.99;
|
|
342
|
+
display: flex;
|
|
343
|
+
align-items: center;
|
|
344
|
+
justify-content: center;
|
|
345
|
+
font-size: calc(var(--font-size-small) - 3px);
|
|
346
|
+
height: calc(var(--size) * 1.25);
|
|
347
|
+
width: calc(var(--size) * 1.25);
|
|
348
|
+
border-radius: 100%;
|
|
349
|
+
top: -2px;
|
|
350
|
+
font-weight: 500;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.jbx-hr {
|
|
354
|
+
margin: calc(var(--size) * 2) auto;
|
|
355
|
+
width: 38.2%;
|
|
356
|
+
border-radius: 0;
|
|
357
|
+
border: none;
|
|
358
|
+
border-top: 2px solid #ecf0f1;
|
|
359
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2022",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"module": "esnext",
|
|
12
|
+
"moduleResolution": "node",
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"jsx": "preserve",
|
|
16
|
+
"incremental": true
|
|
17
|
+
},
|
|
18
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
|
19
|
+
"exclude": ["node_modules"]
|
|
20
|
+
}
|