jbx 2.3.0 → 2.5.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.
@@ -1,33 +1,32 @@
1
1
  html {
2
2
  box-sizing: border-box;
3
3
  }
4
- *,
5
- *:before,
6
- *:after {
4
+
5
+ *, :before, :after {
7
6
  box-sizing: inherit;
8
7
  }
9
8
 
10
9
  :root {
11
10
  --size: 16px;
12
- --base-font-size: 24px;
11
+ --base-font-size: 20px;
13
12
  --base-radius: #95a5a6;
14
13
  }
15
14
 
16
15
  @media screen and (max-width: 1200px) {
17
16
  :root {
18
- --base-font-size: 21px;
17
+ --base-font-size: 18px;
19
18
  }
20
19
  }
21
20
 
22
21
  @media screen and (max-width: 600px) {
23
22
  :root {
24
- --base-font-size: 18px;
23
+ --base-font-size: 16px;
25
24
  }
26
25
  }
27
26
 
28
27
  * {
29
- padding: 0;
30
28
  margin: 0;
29
+ padding: 0;
31
30
  position: relative;
32
31
  }
33
32
 
@@ -35,232 +34,223 @@ body {
35
34
  touch-action: pan-y;
36
35
  }
37
36
 
38
- body,
39
- input,
40
- textarea {
41
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
37
+ body, input, textarea {
38
+ font-family: colfax-web, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
42
39
  }
43
40
 
44
41
  body {
45
- background: #fcfcfd;
46
42
  color: #000;
43
+ background: #fcfcfd;
47
44
  }
48
45
 
49
- /* base text */
50
- html,
51
- body,
52
- .jbx-button,
53
- .jbx-input {
46
+ html, body, .jbx-button, .jbx-input {
54
47
  font-size: var(--base-font-size);
55
48
  line-height: 1;
56
49
  }
57
50
 
58
51
  .jbx-code-snippet {
59
52
  border-radius: var(--size);
60
- font-family: monaco, monospace;
61
- border: none;
62
53
  width: 100%;
63
- font-size: calc(var(--size) - 3px);
64
- line-height: 1.33;
54
+ font-family: monaco, monospace;
55
+ font-size: calc(var(--size) - 3px);
65
56
  padding: var(--size) calc(var(--size) * 1.2);
66
- background: #ecf0f1;
67
57
  color: #34495e;
68
58
  resize: none;
59
+ background: #ecf0f1;
60
+ border: none;
61
+ line-height: 1.33;
69
62
  }
63
+
70
64
  .jbx-code-snippet:focus {
71
65
  outline: none;
72
66
  }
73
67
 
74
68
  .jbx-code-area {
75
69
  border-radius: var(--size);
76
- font-family: monaco, monospace;
77
- border: none;
78
70
  width: 100%;
79
- font-size: calc(var(--size) - 3px);
80
- line-height: 1.33;
71
+ font-family: monaco, monospace;
72
+ font-size: calc(var(--size) - 3px);
81
73
  padding: var(--size) calc(var(--size) * 1.2);
82
- background: #ecf0f1;
83
74
  color: #34495e;
84
75
  resize: none;
85
76
  min-height: 120px;
77
+ background: #ecf0f1;
78
+ border: none;
79
+ line-height: 1.33;
86
80
  }
81
+
87
82
  .jbx-code-area:focus {
88
83
  outline: none;
89
84
  }
90
85
 
91
86
  .jbx-button {
92
87
  appearance: none;
88
+ -webkit-user-select: none;
93
89
  user-select: none;
94
90
  cursor: pointer;
95
- display: inline-block;
96
- background-color: #eee;
97
- box-shadow: 3px 3px 0 #ccc;
98
91
  padding: 0 calc(var(--size) / 2);
99
- border: none;
100
92
  height: calc(var(--size) * 2.5);
93
+ background-color: #eee;
94
+ border: none;
95
+ display: inline-block;
96
+ box-shadow: 3px 3px #ccc;
101
97
  }
98
+
102
99
  .jbx-button:active {
103
- top: 1;
104
- left: 1;
105
- box-shadow: 2px 2px 0 #ccc;
100
+ top: 1px;
101
+ left: 1px;
102
+ box-shadow: 2px 2px #ccc;
106
103
  }
107
104
 
108
105
  .jbx-a {
109
106
  color: #000;
110
- box-shadow: var(--accent-color) 0 2px 0, inset var(--accent-color) 0 -2px 0;
111
- font-weight: 700;
107
+ box-shadow: var(--accent-color) 0 1px 0, inset var(--accent-color) 0 -2px 0;
108
+ font-weight: 500;
112
109
  text-decoration: none;
113
110
  }
111
+
114
112
  .jbx-a:hover {
115
- color: '#34495e';
113
+ color: "#34495e";
116
114
  }
117
115
 
118
- .jbx-h1,
119
- .jbx-h2,
120
- .jbx-h3,
121
- .jbx-h4 {
122
- line-height: 1;
123
- padding: 0;
116
+ .jbx-h1, .jbx-h2, .jbx-h3, .jbx-h4 {
124
117
  margin: 0;
125
- font-weight: 600;
118
+ padding: 0;
119
+ font-weight: 500;
120
+ line-height: 1;
126
121
  }
127
122
 
128
123
  .jbx-h4 {
129
124
  font-size: calc(var(--base-font-size));
130
- letter-spacing: -0.11px;
125
+ letter-spacing: -.11px;
131
126
  }
127
+
132
128
  .jbx-h3 {
133
129
  font-size: calc(var(--base-font-size) * 1.25);
134
- letter-spacing: -0.22px;
130
+ letter-spacing: -.22px;
135
131
  }
132
+
136
133
  .jbx-h2 {
137
134
  font-size: calc(var(--base-font-size) * 1.5);
138
- letter-spacing: -0.33px;
135
+ letter-spacing: -.33px;
139
136
  }
137
+
140
138
  .jbx-h1 {
141
139
  font-size: calc(var(--base-font-size) * 2.5);
142
140
  letter-spacing: -1px;
143
141
  }
144
142
 
145
143
  .jbx-small-text {
146
- font-size: calc(var(--base-font-size) * 0.8);
147
- line-height: calc(var(--base-font-size) * 0.6);
144
+ font-size: calc(var(--base-font-size) * .8);
145
+ line-height: calc(var(--base-font-size) * .6);
148
146
  }
149
147
 
150
148
  .jbx-container {
151
149
  max-width: 1080px;
152
- margin: 0 auto;
153
150
  padding: calc(var(--size) * 2.5) calc(var(--size) * 1.5) calc(var(--size) * 4);
151
+ margin: 0 auto;
152
+ }
153
+
154
+ .jbx-box {
155
+ flex: 1;
154
156
  }
155
157
 
156
158
  .jbx-inline {
159
+ flex-flow: wrap;
157
160
  flex: 1;
158
161
  display: flex;
159
- flex-wrap: wrap;
160
- flex-direction: row;
161
162
  }
162
163
 
163
164
  .jbx-stack {
165
+ flex-flow: column wrap;
164
166
  flex: 1;
165
167
  display: flex;
166
- flex-wrap: wrap;
167
- flex-direction: column;
168
168
  }
169
169
 
170
170
  .jbx-input {
171
171
  color: #777;
172
172
  -webkit-text-fill-color: #777;
173
173
  opacity: 1;
174
- flex: 1;
175
- display: block;
176
174
  appearance: none;
177
- border: none;
178
- border-radius: 0;
179
175
  height: calc(var(--size) * 2.5);
176
+ padding: 0 calc(var(--size) * .5);
180
177
  background-color: #eee;
181
- padding: 0 calc(var(--size) * 0.5);
182
- box-shadow: inset rgba(0, 0, 0, 0.04) 3px 3px 0, inset rgba(0, 0, 0, 0.03) 0.5px 0.5px 0;
178
+ border: none;
179
+ border-radius: 0;
180
+ flex: 1;
181
+ display: block;
182
+ box-shadow: inset 3px 3px #0000000a, inset .5px .5px #00000008;
183
183
  }
184
184
 
185
185
  .jbx-dropzone {
186
186
  height: 120px;
187
- flex: 1;
188
187
  max-width: 320px;
189
- display: flex;
190
188
  text-align: center;
191
- align-items: center;
192
- align-content: center;
193
- justify-content: center;
194
- flex-direction: column;
195
- border: 2px dashed #000;
196
189
  color: #000;
197
- padding: 0;
198
190
  cursor: pointer;
191
+ border: 2px dashed #000;
192
+ flex-direction: column;
193
+ flex: 1;
194
+ place-content: center;
195
+ align-items: center;
196
+ padding: 0;
197
+ display: flex;
199
198
  }
199
+
200
200
  .jbx-dropzone:hover {
201
201
  border-color: #999;
202
202
  }
203
+
203
204
  .jbx-dropzone span {
204
205
  width: 100%;
205
206
  cursor: pointer;
206
207
  }
208
+
207
209
  .jbx-dropzone input {
208
- position: absolute;
209
- top: 0;
210
- left: 0;
211
210
  height: 100%;
212
211
  width: 100%;
213
212
  opacity: 0;
214
213
  cursor: pointer;
214
+ position: absolute;
215
+ top: 0;
216
+ left: 0;
215
217
  }
216
218
 
217
- /*export const Dropzone = Styled.div({
218
-
219
-
220
-
221
- },
222
- '& input': {
223
- position: 'absolute',
224
- top: '0',
225
- left: '0',
226
- height: '100%',
227
- width: '100%',
228
- opacity: '0',
229
- cursor: 'pointer'
230
- }
231
- });*/
232
-
233
219
  .jbx-range {
234
- flex: 1;
235
220
  width: 100%;
236
221
  appearance: none;
237
222
  background-color: var(--accent-color);
238
223
  height: var(--size);
239
224
  border-radius: 0;
225
+ flex: 1;
240
226
  }
241
227
 
242
228
  .jbx-range::-webkit-slider-thumb {
243
- -webkit-appearance: none;
244
229
  appearance: none;
245
230
  box-shadow: none;
246
- border-radius: 0;
247
231
  height: calc(var(--size) * 2);
248
232
  width: var(--size);
249
233
  background-color: #000;
250
234
  border: none;
235
+ border-radius: 0;
251
236
  }
237
+
252
238
  .jbx-range::-moz-range-thumb {
253
239
  appearance: none;
254
240
  box-shadow: none;
255
- border-radius: 0;
256
241
  height: calc(var(--size) * 2);
257
242
  width: var(--size);
258
243
  background-color: #000;
259
244
  border: none;
245
+ border-radius: 0;
260
246
  }
247
+
261
248
  .jbx-range::-webkit-slider-runnable-track {
262
249
  appearance: none;
263
250
  }
251
+
264
252
  .jbx-range:focus {
265
253
  outline: none;
266
254
  }
255
+
256
+ /*# sourceMappingURL=main.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA;;;;AAGA;;;;AAMA;;;;;;AAMA;EACE;;;;;AAKF;EACE;;;;;AAKF;;;;;;AAMA;;;;AAIA;;;;AAMA;;;;;AAMA;;;;;AAQA;;;;;;;;;;;;;AAYA;;;;AAIA;;;;;;;;;;;;;;AAaA;;;;AAIA;;;;;;;;;;;;;AAWA;;;;;;AAMA;;;;;;;AAMA;;;;AAIA;;;;;;;AAUA;;;;;AAIA;;;;;AAIA;;;;;AAIA;;;;;AAKA;;;;;AAKA;;;;;;AAMA;;;;AAIA;;;;;;AAOA;;;;;;AAOA;;;;;;;;;;;;;;;AAeA;;;;;;;;;;;;;;;AAeA;;;;AAGA;;;;;AAIA;;;;;;;;;;AA0BA;;;;;;;;;AASA;;;;;;;;;;AAUA;;;;;;;;;;AASA;;;;AAGA","sources":["src/style.css"],"sourcesContent":["html {\n box-sizing: border-box;\n}\n*,\n*:before,\n*:after {\n box-sizing: inherit;\n}\n\n:root {\n --size: 16px;\n --base-font-size: 20px;\n --base-radius: #95a5a6;\n}\n\n@media screen and (max-width: 1200px) {\n :root {\n --base-font-size: 18px;\n }\n}\n\n@media screen and (max-width: 600px) {\n :root {\n --base-font-size: 16px;\n }\n}\n\n* {\n padding: 0;\n margin: 0;\n position: relative;\n}\n\nbody {\n touch-action: pan-y;\n}\n\nbody,\ninput,\ntextarea {\n font-family: colfax-web, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;\n}\n\nbody {\n background: #fcfcfd;\n color: #000;\n}\n\n/* base text */\nhtml,\nbody,\n.jbx-button,\n.jbx-input {\n font-size: var(--base-font-size);\n line-height: 1;\n}\n\n.jbx-code-snippet {\n border-radius: var(--size);\n font-family: monaco, monospace;\n border: none;\n width: 100%;\n font-size: calc(var(--size) - 3px);\n line-height: 1.33;\n padding: var(--size) calc(var(--size) * 1.2);\n background: #ecf0f1;\n color: #34495e;\n resize: none;\n}\n.jbx-code-snippet:focus {\n outline: none;\n}\n\n.jbx-code-area {\n border-radius: var(--size);\n font-family: monaco, monospace;\n border: none;\n width: 100%;\n font-size: calc(var(--size) - 3px);\n line-height: 1.33;\n padding: var(--size) calc(var(--size) * 1.2);\n background: #ecf0f1;\n color: #34495e;\n resize: none;\n min-height: 120px;\n}\n.jbx-code-area:focus {\n outline: none;\n}\n\n.jbx-button {\n appearance: none;\n user-select: none;\n cursor: pointer;\n display: inline-block;\n background-color: #eee;\n box-shadow: 3px 3px 0 #ccc;\n padding: 0 calc(var(--size) / 2);\n border: none;\n height: calc(var(--size) * 2.5);\n}\n.jbx-button:active {\n top: 1;\n left: 1;\n box-shadow: 2px 2px 0 #ccc;\n}\n\n.jbx-a {\n color: #000;\n box-shadow: var(--accent-color) 0 1px 0, inset var(--accent-color) 0 -2px 0;\n font-weight: 500;\n text-decoration: none;\n}\n.jbx-a:hover {\n color: '#34495e';\n}\n\n.jbx-h1,\n.jbx-h2,\n.jbx-h3,\n.jbx-h4 {\n line-height: 1;\n padding: 0;\n margin: 0;\n font-weight: 500;\n}\n\n.jbx-h4 {\n font-size: calc(var(--base-font-size));\n letter-spacing: -0.11px;\n}\n.jbx-h3 {\n font-size: calc(var(--base-font-size) * 1.25);\n letter-spacing: -0.22px;\n}\n.jbx-h2 {\n font-size: calc(var(--base-font-size) * 1.5);\n letter-spacing: -0.33px;\n}\n.jbx-h1 {\n font-size: calc(var(--base-font-size) * 2.5);\n letter-spacing: -1px;\n}\n\n.jbx-small-text {\n font-size: calc(var(--base-font-size) * 0.8);\n line-height: calc(var(--base-font-size) * 0.6);\n}\n\n.jbx-container {\n max-width: 1080px;\n margin: 0 auto;\n padding: calc(var(--size) * 2.5) calc(var(--size) * 1.5) calc(var(--size) * 4);\n}\n\n.jbx-box {\n flex: 1;\n}\n\n.jbx-inline {\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n}\n\n.jbx-stack {\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n}\n\n.jbx-input {\n color: #777;\n -webkit-text-fill-color: #777;\n opacity: 1;\n flex: 1;\n display: block;\n appearance: none;\n border: none;\n border-radius: 0;\n height: calc(var(--size) * 2.5);\n background-color: #eee;\n padding: 0 calc(var(--size) * 0.5);\n box-shadow: inset rgba(0, 0, 0, 0.04) 3px 3px 0, inset rgba(0, 0, 0, 0.03) 0.5px 0.5px 0;\n}\n\n.jbx-dropzone {\n height: 120px;\n flex: 1;\n max-width: 320px;\n display: flex;\n text-align: center;\n align-items: center;\n align-content: center;\n justify-content: center;\n flex-direction: column;\n border: 2px dashed #000;\n color: #000;\n padding: 0;\n cursor: pointer;\n}\n.jbx-dropzone:hover {\n border-color: #999;\n}\n.jbx-dropzone span {\n width: 100%;\n cursor: pointer;\n}\n.jbx-dropzone input {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n opacity: 0;\n cursor: pointer;\n}\n\n/*export const Dropzone = Styled.div({\n\n\n\n },\n '& input': {\n position: 'absolute',\n top: '0',\n left: '0',\n height: '100%',\n width: '100%',\n opacity: '0',\n cursor: 'pointer'\n }\n});*/\n\n.jbx-range {\n flex: 1;\n width: 100%;\n appearance: none;\n background-color: var(--accent-color);\n height: var(--size);\n border-radius: 0;\n}\n\n.jbx-range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n box-shadow: none;\n border-radius: 0;\n height: calc(var(--size) * 2);\n width: var(--size);\n background-color: #000;\n border: none;\n}\n.jbx-range::-moz-range-thumb {\n appearance: none;\n box-shadow: none;\n border-radius: 0;\n height: calc(var(--size) * 2);\n width: var(--size);\n background-color: #000;\n border: none;\n}\n.jbx-range::-webkit-slider-runnable-track {\n appearance: none;\n}\n.jbx-range:focus {\n outline: none;\n}\n"],"names":[],"version":3,"file":"main.css.map"}
package/dist/main.js ADDED
@@ -0,0 +1,238 @@
1
+ require("./main.css");
2
+
3
+ function $parcel$interopDefault(a) {
4
+ return a && a.__esModule ? a.default : a;
5
+ }
6
+ function $parcel$export(e, n, v, s) {
7
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
8
+ }
9
+
10
+ $parcel$export(module.exports, "Component", () => $4fa36e821943b400$export$16fa2f45be04daa8);
11
+ $parcel$export(module.exports, "Container", () => $4fa36e821943b400$export$42a852a2b6b56249);
12
+ $parcel$export(module.exports, "Text", () => $4fa36e821943b400$export$5f1af8db9871e1d6);
13
+ $parcel$export(module.exports, "SmallText", () => $4fa36e821943b400$export$9ce5373cfda0847e);
14
+ $parcel$export(module.exports, "Button", () => $4fa36e821943b400$export$353f5b6fc5456de1);
15
+ $parcel$export(module.exports, "Input", () => $4fa36e821943b400$export$f5b8910cec6cf069);
16
+ $parcel$export(module.exports, "Range", () => $4fa36e821943b400$export$9a58ef0d7ad3278c);
17
+ $parcel$export(module.exports, "HeaderH1", () => $4fa36e821943b400$export$e9eb1f4e2b79092);
18
+ $parcel$export(module.exports, "HeaderH2", () => $4fa36e821943b400$export$3e3dae747fbae41f);
19
+ $parcel$export(module.exports, "HeaderH3", () => $4fa36e821943b400$export$e52c1faf70c6ff56);
20
+ $parcel$export(module.exports, "HeaderH4", () => $4fa36e821943b400$export$c50e3d1cd45af697);
21
+ $parcel$export(module.exports, "MainHeader", () => $4fa36e821943b400$export$5f0b2c5569a35f91);
22
+ $parcel$export(module.exports, "A", () => $4fa36e821943b400$export$ebd11618f299a286);
23
+ $parcel$export(module.exports, "Space", () => $4fa36e821943b400$export$eef1e68107c58ef2);
24
+ $parcel$export(module.exports, "Box", () => $4fa36e821943b400$export$e71c4d32a2263218);
25
+ $parcel$export(module.exports, "Inline", () => $4fa36e821943b400$export$fbae5b5ffd8af05e);
26
+ $parcel$export(module.exports, "Stack", () => $4fa36e821943b400$export$694e0d28c7ffc90c);
27
+ $parcel$export(module.exports, "Dropzone", () => $4fa36e821943b400$export$47d4850b9fdf5af1);
28
+ $parcel$export(module.exports, "Ul", () => $4fa36e821943b400$export$d4f99c77eeffeaea);
29
+ $parcel$export(module.exports, "Li", () => $4fa36e821943b400$export$4de39c9f3329bb96);
30
+ $parcel$export(module.exports, "Tabs", () => $4fa36e821943b400$export$b2539bed5023c21c);
31
+ $parcel$export(module.exports, "Tab", () => $4fa36e821943b400$export$3e41faf802a29e71);
32
+ $parcel$export(module.exports, "CodeSnippet", () => $4fa36e821943b400$export$9066f76bf3f31022);
33
+ $parcel$export(module.exports, "CodeTextarea", () => $4fa36e821943b400$export$aff08200ba616f1d);
34
+ $parcel$export(module.exports, "CheckboxHidden", () => $4fa36e821943b400$export$c5006b4f540f347f);
35
+ $parcel$export(module.exports, "Checkbox", () => $4fa36e821943b400$export$48513f6b9f8ce62d);
36
+ $parcel$export(module.exports, "MoreExperiments", () => $c98d1f0237f3fe00$export$2e2bcd8739ae039);
37
+
38
+ var $03dcc08a47452624$exports = {};
39
+ $03dcc08a47452624$exports = react;
40
+
41
+
42
+
43
+
44
+ function $c98d1f0237f3fe00$var$MoreExperiments() {
45
+ return /*#__PURE__*/ React.createElement((0, $03dcc08a47452624$exports.Fragment), null, /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$5f1af8db9871e1d6), null, "More experiments"), /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$eef1e68107c58ef2), {
46
+ h: 0.5
47
+ }), /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$5f1af8db9871e1d6), null, /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$d4f99c77eeffeaea), null, /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$4de39c9f3329bb96), null, /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$ebd11618f299a286), {
48
+ href: "https://javier.xyz/pintr/"
49
+ }, "PINTR"), ", tool that turns your images into plotter-like line drawings."), /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$4de39c9f3329bb96), null, /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$ebd11618f299a286), {
50
+ href: "https://javier.xyz/img2css/"
51
+ }, "img2css"), ", tool that can convert any image into a pure css image."), /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$4de39c9f3329bb96), null, /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$ebd11618f299a286), {
52
+ href: "https://javier.xyz/visual-center/"
53
+ }, "Visual Center"), ", find the visual center of your images / logos."), /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$4de39c9f3329bb96), null, /*#__PURE__*/ React.createElement((0, $4fa36e821943b400$export$ebd11618f299a286), {
54
+ href: "https://clashjs.com/"
55
+ }, "ClashJS"), ", JS AI Battle Game."))));
56
+ }
57
+ var $c98d1f0237f3fe00$export$2e2bcd8739ae039 = $c98d1f0237f3fe00$var$MoreExperiments;
58
+
59
+
60
+ const $4fa36e821943b400$var$SIZE = window.innerWidth > 1280 ? 16 : window.innerWidth > 640 ? 14 : 12;
61
+ const $4fa36e821943b400$var$BASE_RADIUS = $4fa36e821943b400$var$SIZE / 3;
62
+ const $4fa36e821943b400$var$BASE_FONT_SIZE = $4fa36e821943b400$var$SIZE;
63
+ function $4fa36e821943b400$export$16fa2f45be04daa8(className, styleSrc = {}, config = {}) {
64
+ const { element: element = `div` , styleProps: styleProps } = config;
65
+ return function MakeComponent({ children: children , style: style = {} , ...props }) {
66
+ const passProps = styleProps ? Object.keys(props).filter((e)=>!styleProps.includes(e)).reduce((acc, p)=>{
67
+ acc[p] = props[p];
68
+ return acc;
69
+ }, {}) : props;
70
+ const calculatedStyle = typeof styleSrc === "function" ? styleSrc(props) : styleSrc;
71
+ return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($03dcc08a47452624$exports))).createElement(element, {
72
+ className: className,
73
+ style: {
74
+ ...style,
75
+ ...calculatedStyle
76
+ },
77
+ ...passProps
78
+ }, children);
79
+ };
80
+ }
81
+ const $4fa36e821943b400$export$42a852a2b6b56249 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-container`);
82
+ const $4fa36e821943b400$export$5f1af8db9871e1d6 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-text`);
83
+ const $4fa36e821943b400$export$9ce5373cfda0847e = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-small-text`);
84
+ const $4fa36e821943b400$export$353f5b6fc5456de1 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-button`, {}, {
85
+ element: "button"
86
+ });
87
+ const $4fa36e821943b400$export$f5b8910cec6cf069 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-input`, null, {
88
+ element: "input"
89
+ });
90
+ const $4fa36e821943b400$export$9a58ef0d7ad3278c = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-range`, null, {
91
+ element: "input"
92
+ });
93
+ const $4fa36e821943b400$export$e9eb1f4e2b79092 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-h${1}`, null, {
94
+ element: "h1"
95
+ });
96
+ const $4fa36e821943b400$export$3e3dae747fbae41f = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-h${2}`, null, {
97
+ element: "h2"
98
+ });
99
+ const $4fa36e821943b400$export$e52c1faf70c6ff56 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-h${3}`, null, {
100
+ element: "h3"
101
+ });
102
+ const $4fa36e821943b400$export$c50e3d1cd45af697 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-h${4}`, null, {
103
+ element: "h4"
104
+ });
105
+ const $4fa36e821943b400$export$5f0b2c5569a35f91 = function MainHeader({ children: children , style: style }) {
106
+ const content = String(children).split(" ");
107
+ return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($03dcc08a47452624$exports))).createElement((0, $03dcc08a47452624$exports.Fragment), {}, content.map((word)=>/*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($03dcc08a47452624$exports))).createElement($4fa36e821943b400$export$e9eb1f4e2b79092, {
108
+ key: word,
109
+ style: {
110
+ fontWeight: 900,
111
+ display: "inline-block",
112
+ width: "auto",
113
+ padding: "6px",
114
+ margin: 0,
115
+ backgroundColor: "var(--accent-color)",
116
+ ...style
117
+ }
118
+ }, word)));
119
+ };
120
+ const $4fa36e821943b400$export$ebd11618f299a286 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-a`, null, {
121
+ element: "a"
122
+ });
123
+ const $4fa36e821943b400$export$eef1e68107c58ef2 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-space`, (props)=>({
124
+ display: props.inline ? "inline-block" : "block",
125
+ height: `${$4fa36e821943b400$var$SIZE * props.h}px`,
126
+ width: `${$4fa36e821943b400$var$SIZE * props.w}px`
127
+ }));
128
+ const $4fa36e821943b400$export$e71c4d32a2263218 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-box`, ({ padding: padding , hideOnSmall: hideOnSmall , flex: flex , minWidth: minWidth })=>{
129
+ return {
130
+ flex: flex,
131
+ minWidth: minWidth,
132
+ padding: padding ? [
133
+ padding
134
+ ].flat().map((paddingValue)=>`${paddingValue * $4fa36e821943b400$var$SIZE}px`).join(` `) : null
135
+ };
136
+ });
137
+ const $4fa36e821943b400$export$fbae5b5ffd8af05e = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-inline`, ({ v: v , h: h , gap: gap })=>({
138
+ marginLeft: `${h * $4fa36e821943b400$var$SIZE}px`,
139
+ marginRight: `${h * $4fa36e821943b400$var$SIZE}px`,
140
+ marginTop: `${v * $4fa36e821943b400$var$SIZE}px`,
141
+ marginBottom: `${v * $4fa36e821943b400$var$SIZE}px`,
142
+ gap: `${gap * $4fa36e821943b400$var$SIZE}px`
143
+ }));
144
+ const $4fa36e821943b400$export$694e0d28c7ffc90c = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-stack`, ({ v: v , h: h , gap: gap })=>({
145
+ marginLeft: `${h * $4fa36e821943b400$var$SIZE}px`,
146
+ marginRight: `${h * $4fa36e821943b400$var$SIZE}px`,
147
+ marginTop: `${v * $4fa36e821943b400$var$SIZE}px`,
148
+ marginBottom: `${v * $4fa36e821943b400$var$SIZE}px`,
149
+ gap: `${gap * $4fa36e821943b400$var$SIZE}px`
150
+ }));
151
+ const $4fa36e821943b400$export$47d4850b9fdf5af1 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-dropzone`);
152
+ const $4fa36e821943b400$export$d4f99c77eeffeaea = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-ul`, {
153
+ margin: 0,
154
+ padding: `0 0 0 ${$4fa36e821943b400$var$BASE_FONT_SIZE / 4}px`
155
+ }, {
156
+ element: "ul"
157
+ });
158
+ const $4fa36e821943b400$export$4de39c9f3329bb96 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-li`, {
159
+ margin: `0 0 0 ${$4fa36e821943b400$var$SIZE}px`,
160
+ padding: `${$4fa36e821943b400$var$SIZE / 4}px 0`
161
+ }, {
162
+ element: "li"
163
+ });
164
+ const $4fa36e821943b400$export$b2539bed5023c21c = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-tabs`);
165
+ const $4fa36e821943b400$export$3e41faf802a29e71 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-tabs--tab`, ({ info: info , active: active })=>({
166
+ userSelect: "none",
167
+ cursor: "pointer",
168
+ backgroundColor: active ? "#000" : info ? "#fff" : "#ecf0f1",
169
+ color: active ? "#fff" : "#000",
170
+ padding: $4fa36e821943b400$var$SIZE / 2,
171
+ paddingLeft: info ? 0 : $4fa36e821943b400$var$SIZE / 2
172
+ }), {
173
+ styleProps: [
174
+ "info",
175
+ "active"
176
+ ]
177
+ });
178
+ const $4fa36e821943b400$export$9066f76bf3f31022 = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-code-snippet`, null, {
179
+ element: "pre"
180
+ });
181
+ const $4fa36e821943b400$export$aff08200ba616f1d = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-code-area`, null, {
182
+ element: "textarea"
183
+ });
184
+ const $4fa36e821943b400$export$c5006b4f540f347f = $4fa36e821943b400$export$16fa2f45be04daa8(`jbx-checkbox-hidden`, ({ checked: checked })=>{
185
+ return {
186
+ height: $4fa36e821943b400$var$SIZE * 2 - 4,
187
+ width: $4fa36e821943b400$var$SIZE * 2 - 4,
188
+ paddingTop: 2,
189
+ paddingLeft: 2,
190
+ backgroundColor: checked ? "var(--accent-color)" : "white",
191
+ borderRadius: $4fa36e821943b400$var$BASE_RADIUS,
192
+ boxShadow: checked ? "inset rgba(0, 0, 0, 0.07) 0 0 0 1px" : "inset rgba(0, 0, 0, 0.33) 0 0 0 1.5px",
193
+ cursor: "pointer"
194
+ };
195
+ });
196
+ const $4fa36e821943b400$export$48513f6b9f8ce62d = function Checkbox({ label: label , checked: checked , onChange: onChange }) {
197
+ return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($03dcc08a47452624$exports))).createElement($4fa36e821943b400$export$fbae5b5ffd8af05e, {
198
+ onClick: ()=>{
199
+ if (onChange) onChange(!checked);
200
+ },
201
+ style: {
202
+ alignItems: "center",
203
+ cursor: "pointer"
204
+ }
205
+ }, [
206
+ /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($03dcc08a47452624$exports))).createElement($4fa36e821943b400$export$c5006b4f540f347f, {
207
+ key: 0,
208
+ checked: checked
209
+ }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($03dcc08a47452624$exports))).createElement("svg", {
210
+ xmlns: "http://www.w3.org/2000/svg",
211
+ width: $4fa36e821943b400$var$SIZE * 2 - 8,
212
+ height: $4fa36e821943b400$var$SIZE * 2 - 8,
213
+ fill: "none",
214
+ stroke: "currentColor",
215
+ strokeLinecap: "round",
216
+ strokeLinejoin: "round",
217
+ strokeWidth: "2",
218
+ className: "feather feather-check",
219
+ viewBox: "0 0 24 24",
220
+ color: checked ? "white" : "#ddd"
221
+ }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($03dcc08a47452624$exports))).createElement("path", {
222
+ d: "M20 6L9 17 4 12"
223
+ }))),
224
+ /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($03dcc08a47452624$exports))).createElement($4fa36e821943b400$export$eef1e68107c58ef2, {
225
+ key: 1,
226
+ w: 0.5
227
+ }),
228
+ /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($03dcc08a47452624$exports))).createElement($4fa36e821943b400$export$5f1af8db9871e1d6, {
229
+ key: 2,
230
+ style: {
231
+ userSelect: "none"
232
+ }
233
+ }, label)
234
+ ]);
235
+ };
236
+
237
+
238
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;ACAA,yBAAc,GAAC,KAAK,CAAC;;;ACArB;;AAIA,SAAS,qCAAe,GAAG;IACzB,qBACE,oBAAC,CAAA,GAAA,kCAAQ,CAAA,sBACP,oBAAC,CAAA,GAAA,yCAAI,CAAA,QAAC,kBAAgB,CAAO,gBAC7B,oBAAC,CAAA,GAAA,yCAAK,CAAA;QAAC,CAAC,EAAE,GAAG;MAAI,gBACjB,oBAAC,CAAA,GAAA,yCAAI,CAAA,sBACH,oBAAC,CAAA,GAAA,yCAAE,CAAA,sBACD,oBAAC,CA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AAQ,CAAC,CAAC,OAAO,CAAC,CAAC;SAEtB;QACD,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,SAAS;SAClB;KACF,EACD;sBACE,CAAA,GAAA,gEAAK,CAAA,CAAC,aAAa,CACjB,yCAAc,EACd;YACE,GAAG,EAAE,CAAC;qBACN,OAAO;SACR,gBACD,CAAA,GAAA,gEAAK,CAAA,CAAC,aAAa,CACjB,KAAK,EACL;YACE,KAAK,EAAE,4BAA4B;YACnC,KAAK,EAAE,0BAAI,GAAG,CAAC,GAAG,CAAC;YACnB,MAAM,EAAE,0BAAI,GAAG,CAAC,GAAG,CAAC;YACpB,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,cAAc;YACtB,aAAa,EAAE,OAAO;YACtB,cAAc,EAAE,OAAO;YACvB,WAAW,EAAE,GAAG;YAChB,SAAS,EAAE,uBAAuB;YAClC,OAAO,EAAE,WAAW;YACpB,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM;SAClC,gBACD,CAAA,GAAA,gEAAK,CAAA,CAAC,aAAa,CAAC,MAAM,EAAE;YAC1B,CAAC,EAAE,iBAAiB;SACrB,CAAC,CACH,CACF;sBACD,CAAA,GAAA,gEAAK,CAAA,CAAC,aAAa,CAAC,yCAAK,EAAE;YAAE,GAAG,EAAE,CAAC;YAAE,CAAC,EAAE,GAAG;SAAE,CAAC;sBAC9C,CAAA,GAAA,gEAAK,CAAA,CAAC,aAAa,CAAC,yCAAI,EAAE;YAAE,GAAG,EAAE,CAAC;YAAE,KAAK,EAAE;gBAAE,UAAU,EAAE,MAAM;aAAE;SAAE,EAAE,KAAK,CAAC;KAC5E,CACF,CAAC;CACH,AAAC","sources":["src/index.js","react.js","src/components/MoreExperiments.js"],"sourcesContent":["import './style.css';\n\nimport React, { Fragment } from 'react';\n\nexport { default as MoreExperiments } from \"./components/MoreExperiments\"\n\nconst SIZE = window.innerWidth > 1280 ? 16 : window.innerWidth > 640 ? 14 : 12;\nconst BASE_RADIUS = SIZE / 3;\nconst BASE_FONT_SIZE = SIZE;\n\nexport function Component(className, styleSrc = {}, config = {}) {\n const { element = `div`, styleProps } = config;\n\n return function MakeComponent({ children, style = {}, ...props }) {\n const passProps = styleProps\n ? Object.keys(props)\n .filter((e) => !styleProps.includes(e))\n .reduce((acc, p) => {\n acc[p] = props[p];\n return acc;\n }, {})\n : props;\n\n const calculatedStyle = typeof styleSrc === 'function' ? styleSrc(props) : styleSrc;\n\n return React.createElement(\n element,\n {\n className,\n style: { ...style, ...calculatedStyle },\n ...passProps\n },\n children\n );\n };\n}\n\nexport const Container = Component(`jbx-container`);\n\nexport const Text = Component(`jbx-text`);\n\nexport const SmallText = Component(`jbx-small-text`);\n\nexport const Button = Component(`jbx-button`, {}, { element: 'button' });\n\nexport const Input = Component(`jbx-input`, null, { element: 'input' });\nexport const Range = Component(`jbx-range`, null, { element: 'input' });\n\nexport const HeaderH1 = Component(`jbx-h${1}`, null, { element: 'h1' });\nexport const HeaderH2 = Component(`jbx-h${2}`, null, { element: 'h2' });\nexport const HeaderH3 = Component(`jbx-h${3}`, null, { element: 'h3' });\nexport const HeaderH4 = Component(`jbx-h${4}`, null, { element: 'h4' });\n\nexport const MainHeader = function MainHeader({ children, style }) {\n const content = String(children).split(' ');\n\n return React.createElement(\n Fragment,\n {},\n content.map((word) =>\n React.createElement(\n HeaderH1,\n {\n key: word,\n style: {\n fontWeight: 900,\n display: 'inline-block',\n width: 'auto',\n padding: '6px',\n margin: 0,\n backgroundColor: 'var(--accent-color)',\n ...style\n }\n },\n word\n )\n )\n );\n};\n\nexport const A = Component(`jbx-a`, null, { element: 'a' });\n\nexport const Space = Component(`jbx-space`, (props) => ({\n display: props.inline ? 'inline-block' : 'block',\n height: `${SIZE * props.h}px`,\n width: `${SIZE * props.w}px`\n}));\n\nexport const Box = Component(`jbx-box`, ({ padding, hideOnSmall, flex, minWidth }) => {\n return {\n flex,\n minWidth,\n padding: padding\n ? [padding]\n .flat()\n .map((paddingValue) => `${paddingValue * SIZE}px`)\n .join(` `)\n : null\n };\n});\n\nexport const Inline = Component(`jbx-inline`, ({ v, h, gap }) => ({\n marginLeft: `${h * SIZE}px`,\n marginRight: `${h * SIZE}px`,\n marginTop: `${v * SIZE}px`,\n marginBottom: `${v * SIZE}px`,\n gap: `${gap * SIZE}px`\n}));\n\nexport const Stack = Component(`jbx-stack`, ({ v, h, gap }) => ({\n marginLeft: `${h * SIZE}px`,\n marginRight: `${h * SIZE}px`,\n marginTop: `${v * SIZE}px`,\n marginBottom: `${v * SIZE}px`,\n gap: `${gap * SIZE}px`\n}));\n\n// export const LinkButton = Styled.a({\n// capHeight: BASE_FONT_SIZE,\n// color: '#3498db',\n// cursor: 'pointer',\n// borderRadius: 5,\n// borderTop: '1px solid #3498db10',\n// borderBottom: '1px solid #0000',\n// backgroundColor: '#3498db20',\n// height: BASE_FONT_SIZE * 2,\n// display: 'flex',\n// alignItems: 'center',\n// alignContent: 'center',\n// justifyContent: 'center',\n// padding: 0,\n// '&:hover': {\n// boxShadow: `rgba(0, 0, 0, 0.1) 0 1px 1px, rgba(0, 0, 0, 0.1) 0 3px 12px`\n// }\n// });\n\nexport const Dropzone = Component(`jbx-dropzone`);\n\nexport const Ul = Component(\n `jbx-ul`,\n {\n margin: 0,\n padding: `0 0 0 ${BASE_FONT_SIZE / 4}px`\n },\n { element: 'ul' }\n);\n\nexport const Li = Component(\n `jbx-li`,\n {\n margin: `0 0 0 ${SIZE}px`,\n padding: `${SIZE / 4}px 0`\n },\n { element: 'li' }\n);\n\nexport const Tabs = Component(`jbx-tabs`);\n\nexport const Tab = Component(\n `jbx-tabs--tab`,\n ({ info, active }) => ({\n userSelect: 'none',\n cursor: 'pointer',\n backgroundColor: active ? '#000' : info ? '#fff' : '#ecf0f1',\n color: active ? '#fff' : '#000',\n padding: SIZE / 2,\n paddingLeft: info ? 0 : SIZE / 2\n }),\n { styleProps: ['info', 'active'] }\n);\n\nexport const CodeSnippet = Component(`jbx-code-snippet`, null, { element: 'pre' });\nexport const CodeTextarea = Component(`jbx-code-area`, null, { element: 'textarea' });\n\nexport const CheckboxHidden = Component(`jbx-checkbox-hidden`, ({ checked }) => {\n return {\n height: SIZE * 2 - 4,\n width: SIZE * 2 - 4,\n paddingTop: 2,\n paddingLeft: 2,\n backgroundColor: checked ? 'var(--accent-color)' : 'white',\n borderRadius: BASE_RADIUS,\n boxShadow: checked\n ? 'inset rgba(0, 0, 0, 0.07) 0 0 0 1px'\n : 'inset rgba(0, 0, 0, 0.33) 0 0 0 1.5px',\n cursor: 'pointer'\n };\n});\n\nexport const Checkbox = function Checkbox({ label, checked, onChange }) {\n return React.createElement(\n Inline,\n {\n onClick: () => {\n if (onChange) {\n onChange(!checked);\n }\n },\n style: {\n alignItems: 'center',\n cursor: 'pointer'\n }\n },\n [\n React.createElement(\n CheckboxHidden,\n {\n key: 0,\n checked\n },\n React.createElement(\n 'svg',\n {\n xmlns: 'http://www.w3.org/2000/svg',\n width: SIZE * 2 - 8,\n height: SIZE * 2 - 8,\n fill: 'none',\n stroke: 'currentColor',\n strokeLinecap: 'round',\n strokeLinejoin: 'round',\n strokeWidth: '2',\n className: 'feather feather-check',\n viewBox: '0 0 24 24',\n color: checked ? 'white' : '#ddd'\n },\n React.createElement('path', {\n d: 'M20 6L9 17 4 12'\n })\n )\n ),\n React.createElement(Space, { key: 1, w: 0.5 }),\n React.createElement(Text, { key: 2, style: { userSelect: 'none' } }, label)\n ]\n );\n};\n","module.exports=react;","import { Fragment } from 'react';\n\nimport { Text, Space, A, Ul, Li } from '../';\n\nfunction MoreExperiments() {\n return (\n <Fragment>\n <Text>More experiments</Text>\n <Space h={0.5} />\n <Text>\n <Ul>\n <Li>\n <A href=\"https://javier.xyz/pintr/\">PINTR</A>, tool that turns your\n images into plotter-like line drawings.\n </Li>\n <Li>\n <A href=\"https://javier.xyz/img2css/\">img2css</A>, tool that can\n convert any image into a pure css image.\n </Li>\n <Li>\n <A href=\"https://javier.xyz/visual-center/\">Visual Center</A>, find\n the visual center of your images / logos.\n </Li>\n <Li>\n <A href=\"https://clashjs.com/\">ClashJS</A>, JS AI Battle Game.\n </Li>\n </Ul>\n </Text>\n </Fragment>\n );\n}\n\nexport default MoreExperiments;\n"],"names":[],"version":3,"file":"main.js.map"}