jbx 2.6.0 → 2.7.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/dist/main.css DELETED
@@ -1,359 +0,0 @@
1
- html {
2
- box-sizing: border-box;
3
- }
4
- *,
5
- *:before,
6
- *:after {
7
- box-sizing: inherit;
8
- }
9
-
10
- :root {
11
- --size: 16px;
12
- --font-size: 20px;
13
- --font-size-small: 17px;
14
- --radius-small: 2px;
15
- }
16
-
17
- @media screen and (max-width: 1200px) {
18
- :root {
19
- --font-size: 18px;
20
- --font-size-small: 16px;
21
- --size: 14px;
22
- }
23
- }
24
-
25
- @media screen and (max-width: 600px) {
26
- :root {
27
- --font-size: 16px;
28
- --font-size-small: 14px;
29
- }
30
- }
31
-
32
- * {
33
- padding: 0;
34
- margin: 0;
35
- position: relative;
36
- }
37
-
38
- body {
39
- touch-action: pan-y;
40
- }
41
-
42
- body,
43
- input,
44
- textarea {
45
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
46
- }
47
-
48
- body {
49
- background: #fcfcfd;
50
- color: #000;
51
- }
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
-
84
- /* base text */
85
- html,
86
- body,
87
- .jbx-button,
88
- .jbx-input {
89
- font-size: var(--font-size);
90
- line-height: 1;
91
- }
92
-
93
- .jbx-code-snippet {
94
- border-radius: var(--size);
95
- font-family: monaco, monospace;
96
- border: none;
97
- width: 100%;
98
- font-size: calc(var(--size) - 3px);
99
- line-height: 1.33;
100
- padding: var(--size) calc(var(--size) * 1.2);
101
- background: #ecf0f1;
102
- color: #34495e;
103
- resize: none;
104
- }
105
- .jbx-code-snippet:focus {
106
- outline: none;
107
- }
108
-
109
- .jbx-code-area {
110
- border-radius: var(--size);
111
- font-family: monaco, monospace;
112
- border: none;
113
- width: 100%;
114
- font-size: calc(var(--size) - 3px);
115
- line-height: 1.33;
116
- padding: var(--size) calc(var(--size) * 1.2);
117
- background: #ecf0f1;
118
- color: #34495e;
119
- resize: none;
120
- min-height: 120px;
121
- }
122
- .jbx-code-area:focus {
123
- outline: none;
124
- }
125
-
126
- .jbx-button {
127
- color: #000;
128
- border-radius: var(--radius-small);
129
- appearance: none;
130
- user-select: none;
131
- cursor: pointer;
132
- display: inline-block;
133
- background-color: #eee;
134
- box-shadow: 3px 3px 0 #ccc;
135
- padding: 0 calc(var(--size) / 2);
136
- border: none;
137
- height: calc(var(--size) * 2.5);
138
- transition: top 0.1s, left 0.1s, box-shadow 0.05s;
139
- }
140
- .jbx-button:active {
141
- top: 1px;
142
- left: 1px;
143
- box-shadow: 1px 1px 0 #ccc;
144
- }
145
-
146
- /* LINKS */
147
- .jbx-a {
148
- cursor: pointer;
149
- color: #000;
150
- box-shadow: #0002 0 2px 0;
151
- font-weight: 500;
152
- text-decoration: none;
153
- }
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;
162
- }
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);
172
- }
173
-
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);
181
- }
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;
196
- }
197
- .jbx-block-link::before {
198
- border-radius: 16px;
199
- }
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;
207
- }
208
-
209
- .jbx-a {
210
- display: inline-block;
211
- }
212
-
213
- /* /LINKS */
214
-
215
- .jbx-small-text {
216
- font-size: var(--font-size-small);
217
- }
218
-
219
- .jbx-container {
220
- max-width: 1080px;
221
- margin: 0 auto;
222
- padding: calc(var(--size) * 2.5) calc(var(--size) * 1.5) calc(var(--size) * 4);
223
- }
224
-
225
- .jbx-box {
226
- flex: 1;
227
- }
228
-
229
- .jbx-inline {
230
- flex: 1;
231
- display: flex;
232
- flex-wrap: wrap;
233
- flex-direction: row;
234
- }
235
-
236
- .jbx-stack {
237
- flex: 1;
238
- display: flex;
239
- flex-wrap: wrap;
240
- flex-direction: column;
241
- }
242
-
243
- .jbx-text {
244
- line-height: 1.4;
245
- }
246
-
247
- .jbx-input {
248
- color: #777;
249
- -webkit-text-fill-color: #777;
250
- opacity: 1;
251
- flex: 1;
252
- display: block;
253
- appearance: none;
254
- border: none;
255
- border-radius: var(--radius-small);
256
- height: calc(var(--size) * 2.5);
257
- background-color: #eee;
258
- padding: 0 calc(var(--size) * 0.5);
259
- box-shadow: inset rgba(0, 0, 0, 0.04) 3px 3px 0, inset rgba(0, 0, 0, 0.03) 0.5px 0.5px 0;
260
- }
261
-
262
- .jbx-dropzone {
263
- height: 120px;
264
- flex: 1;
265
- display: flex;
266
- text-align: center;
267
- align-items: center;
268
- align-content: center;
269
- justify-content: center;
270
- flex-direction: column;
271
- border: 2px dashed #000;
272
- color: #000;
273
- padding: 0;
274
- cursor: pointer;
275
- }
276
- .jbx-dropzone:hover {
277
- border-color: #999;
278
- }
279
- .jbx-dropzone span {
280
- width: 100%;
281
- cursor: pointer;
282
- }
283
- .jbx-dropzone input {
284
- position: absolute;
285
- top: 0;
286
- left: 0;
287
- height: 100%;
288
- width: 100%;
289
- opacity: 0;
290
- cursor: pointer;
291
- }
292
-
293
- .jbx-range {
294
- flex: 1;
295
- width: 100%;
296
- appearance: none;
297
- background-color: #bdc3c780;
298
- height: var(--size);
299
- border-radius: 0;
300
- border-radius: var(--radius-small);
301
- }
302
-
303
- .jbx-range::-webkit-slider-thumb {
304
- -webkit-appearance: none;
305
- appearance: none;
306
- box-shadow: none;
307
- border-radius: 0;
308
- height: calc(var(--size) * 2);
309
- width: var(--size);
310
- background-color: #000;
311
- border: none;
312
- border-radius: var(--radius-small);
313
- }
314
- .jbx-range::-moz-range-thumb {
315
- appearance: none;
316
- box-shadow: none;
317
- border-radius: 0;
318
- height: calc(var(--size) * 2);
319
- width: var(--size);
320
- background-color: #000;
321
- border: none;
322
- border-radius: var(--radius-small);
323
- }
324
- .jbx-range::-webkit-slider-runnable-track {
325
- appearance: none;
326
- /*background-color: yellow;*/
327
- }
328
- .jbx-range:focus {
329
- outline: none;
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/dist/main.js DELETED
@@ -1,238 +0,0 @@
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
package/dist/main.js.map DELETED
@@ -1 +0,0 @@
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,CAAA,GAAA,yCAAE,CAAA,sBACD,oBAAC,CAAA,GAAA,yCAAC,CAAA;QAAC,IAAI,EAAC,2BAA2B;OAAC,OAAK,CAAI,EAAA,gEAE/C,CAAK,gBACL,oBAAC,CAAA,GAAA,yCAAE,CAAA,sBACD,oBAAC,CAAA,GAAA,yCAAC,CAAA;QAAC,IAAI,EAAC,6BAA6B;OAAC,SAAO,CAAI,EAAA,0DAEnD,CAAK,gBACL,oBAAC,CAAA,GAAA,yCAAE,CAAA,sBACD,oBAAC,CAAA,GAAA,yCAAC,CAAA;QAAC,IAAI,EAAC,mCAAmC;OAAC,eAAa,CAAI,EAAA,kDAE/D,CAAK,gBACL,oBAAC,CAAA,GAAA,yCAAE,CAAA,sBACD,oBAAC,CAAA,GAAA,yCAAC,CAAA;QAAC,IAAI,EAAC,sBAAsB;OAAC,SAAO,CAAI,EAAA,sBAC5C,CAAK,CACF,CACA,CACE,CACX;CACH;IAED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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"}