jbx 2.6.0 → 2.8.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 +0 -1
- package/dist/index.d.ts +141 -0
- package/dist/{index.esm.js → index.js} +1219 -1384
- package/dist/main.css +18 -8
- package/package.json +27 -15
- package/.editorconfig +0 -12
- package/.nvmrc +0 -1
- package/.prettierrc +0 -13
- package/CHANGELOG.md +0 -58
- package/dist/index.cjs +0 -3001
- package/dist/index.mjs +0 -2968
- package/dist/main.js +0 -238
- package/dist/main.js.map +0 -1
- package/dist/types/index.d.ts +0 -233
- package/pnpm-global/5/pnpm-lock.yaml +0 -621
- package/roll.js +0 -235
- package/src/components/Layout.tsx +0 -29
- package/src/components/MoreExperiments.tsx +0 -110
- package/src/index.tsx +0 -243
- package/src/style.css +0 -359
- package/tsconfig.json +0 -20
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,wCAA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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"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
declare type Box = {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
smallText?: true | false;
|
|
6
|
-
padding?: number;
|
|
7
|
-
flex?: number;
|
|
8
|
-
style: any;
|
|
9
|
-
};
|
|
10
|
-
declare function Box({ children, smallText, padding, flex, style }: Box): JSX.Element;
|
|
11
|
-
|
|
12
|
-
declare function MoreExperiments(): JSX.Element;
|
|
13
|
-
|
|
14
|
-
declare function getSettings(): {
|
|
15
|
-
size: number;
|
|
16
|
-
};
|
|
17
|
-
declare function classList(classes: any[] | Record<string, any>): string;
|
|
18
|
-
declare function layoutPropsToStyles({ padding }: {
|
|
19
|
-
padding?: number;
|
|
20
|
-
}): {
|
|
21
|
-
[prop: string]: string;
|
|
22
|
-
};
|
|
23
|
-
declare function Component(className: string, styleSrc?: {}, config?: {
|
|
24
|
-
element?: string;
|
|
25
|
-
styleProps?: any;
|
|
26
|
-
}): ({ children, style, ...props }: {
|
|
27
|
-
[x: string]: any;
|
|
28
|
-
children: any;
|
|
29
|
-
style?: {} | undefined;
|
|
30
|
-
}) => React.ReactElement<{
|
|
31
|
-
className: string;
|
|
32
|
-
style: any;
|
|
33
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
34
|
-
declare const Container: ({ children, style, ...props }: {
|
|
35
|
-
[x: string]: any;
|
|
36
|
-
children: any;
|
|
37
|
-
style?: {} | undefined;
|
|
38
|
-
}) => React.ReactElement<{
|
|
39
|
-
className: string;
|
|
40
|
-
style: any;
|
|
41
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
42
|
-
declare const Text: ({ children, style, ...props }: {
|
|
43
|
-
[x: string]: any;
|
|
44
|
-
children: any;
|
|
45
|
-
style?: {} | undefined;
|
|
46
|
-
}) => React.ReactElement<{
|
|
47
|
-
className: string;
|
|
48
|
-
style: any;
|
|
49
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
50
|
-
declare const SmallText: ({ children, style, ...props }: {
|
|
51
|
-
[x: string]: any;
|
|
52
|
-
children: any;
|
|
53
|
-
style?: {} | undefined;
|
|
54
|
-
}) => React.ReactElement<{
|
|
55
|
-
className: string;
|
|
56
|
-
style: any;
|
|
57
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
58
|
-
declare const Button: ({ children, style, ...props }: {
|
|
59
|
-
[x: string]: any;
|
|
60
|
-
children: any;
|
|
61
|
-
style?: {} | undefined;
|
|
62
|
-
}) => React.ReactElement<{
|
|
63
|
-
className: string;
|
|
64
|
-
style: any;
|
|
65
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
66
|
-
declare const Input: ({ children, style, ...props }: {
|
|
67
|
-
[x: string]: any;
|
|
68
|
-
children: any;
|
|
69
|
-
style?: {} | undefined;
|
|
70
|
-
}) => React.ReactElement<{
|
|
71
|
-
className: string;
|
|
72
|
-
style: any;
|
|
73
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
74
|
-
declare const Range: ({ children, style, ...props }: {
|
|
75
|
-
[x: string]: any;
|
|
76
|
-
children: any;
|
|
77
|
-
style?: {} | undefined;
|
|
78
|
-
}) => React.ReactElement<{
|
|
79
|
-
className: string;
|
|
80
|
-
style: any;
|
|
81
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
82
|
-
declare const HeaderH1: ({ children, style, ...props }: {
|
|
83
|
-
[x: string]: any;
|
|
84
|
-
children: any;
|
|
85
|
-
style?: {} | undefined;
|
|
86
|
-
}) => React.ReactElement<{
|
|
87
|
-
className: string;
|
|
88
|
-
style: any;
|
|
89
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
90
|
-
declare const HeaderH2: ({ children, style, ...props }: {
|
|
91
|
-
[x: string]: any;
|
|
92
|
-
children: any;
|
|
93
|
-
style?: {} | undefined;
|
|
94
|
-
}) => React.ReactElement<{
|
|
95
|
-
className: string;
|
|
96
|
-
style: any;
|
|
97
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
98
|
-
declare const HeaderH3: ({ children, style, ...props }: {
|
|
99
|
-
[x: string]: any;
|
|
100
|
-
children: any;
|
|
101
|
-
style?: {} | undefined;
|
|
102
|
-
}) => React.ReactElement<{
|
|
103
|
-
className: string;
|
|
104
|
-
style: any;
|
|
105
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
106
|
-
declare const HeaderH4: ({ children, style, ...props }: {
|
|
107
|
-
[x: string]: any;
|
|
108
|
-
children: any;
|
|
109
|
-
style?: {} | undefined;
|
|
110
|
-
}) => React.ReactElement<{
|
|
111
|
-
className: string;
|
|
112
|
-
style: any;
|
|
113
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
114
|
-
declare const HR: ({ children, style, ...props }: {
|
|
115
|
-
[x: string]: any;
|
|
116
|
-
children: any;
|
|
117
|
-
style?: {} | undefined;
|
|
118
|
-
}) => React.ReactElement<{
|
|
119
|
-
className: string;
|
|
120
|
-
style: any;
|
|
121
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
122
|
-
declare const MainHeader: ({ children, style }: {
|
|
123
|
-
children: any;
|
|
124
|
-
style: any;
|
|
125
|
-
}) => React.FunctionComponentElement<{
|
|
126
|
-
children?: React.ReactNode;
|
|
127
|
-
}>;
|
|
128
|
-
declare const A: ({ children, style, ...props }: {
|
|
129
|
-
[x: string]: any;
|
|
130
|
-
children: any;
|
|
131
|
-
style?: {} | undefined;
|
|
132
|
-
}) => React.ReactElement<{
|
|
133
|
-
className: string;
|
|
134
|
-
style: any;
|
|
135
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
136
|
-
declare const Space: ({ children, style, ...props }: {
|
|
137
|
-
[x: string]: any;
|
|
138
|
-
children: any;
|
|
139
|
-
style?: {} | undefined;
|
|
140
|
-
}) => React.ReactElement<{
|
|
141
|
-
className: string;
|
|
142
|
-
style: any;
|
|
143
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
144
|
-
declare const Inline: ({ children, style, ...props }: {
|
|
145
|
-
[x: string]: any;
|
|
146
|
-
children: any;
|
|
147
|
-
style?: {} | undefined;
|
|
148
|
-
}) => React.ReactElement<{
|
|
149
|
-
className: string;
|
|
150
|
-
style: any;
|
|
151
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
152
|
-
declare const Stack: ({ children, style, ...props }: {
|
|
153
|
-
[x: string]: any;
|
|
154
|
-
children: any;
|
|
155
|
-
style?: {} | undefined;
|
|
156
|
-
}) => React.ReactElement<{
|
|
157
|
-
className: string;
|
|
158
|
-
style: any;
|
|
159
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
160
|
-
declare const Dropzone: ({ children, style, ...props }: {
|
|
161
|
-
[x: string]: any;
|
|
162
|
-
children: any;
|
|
163
|
-
style?: {} | undefined;
|
|
164
|
-
}) => React.ReactElement<{
|
|
165
|
-
className: string;
|
|
166
|
-
style: any;
|
|
167
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
168
|
-
declare const Ul: ({ children, style, ...props }: {
|
|
169
|
-
[x: string]: any;
|
|
170
|
-
children: any;
|
|
171
|
-
style?: {} | undefined;
|
|
172
|
-
}) => React.ReactElement<{
|
|
173
|
-
className: string;
|
|
174
|
-
style: any;
|
|
175
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
176
|
-
declare const Li: ({ children, style, ...props }: {
|
|
177
|
-
[x: string]: any;
|
|
178
|
-
children: any;
|
|
179
|
-
style?: {} | undefined;
|
|
180
|
-
}) => React.ReactElement<{
|
|
181
|
-
className: string;
|
|
182
|
-
style: any;
|
|
183
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
184
|
-
declare const Tabs: ({ children, style, ...props }: {
|
|
185
|
-
[x: string]: any;
|
|
186
|
-
children: any;
|
|
187
|
-
style?: {} | undefined;
|
|
188
|
-
}) => React.ReactElement<{
|
|
189
|
-
className: string;
|
|
190
|
-
style: any;
|
|
191
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
192
|
-
declare const Tab: ({ children, style, ...props }: {
|
|
193
|
-
[x: string]: any;
|
|
194
|
-
children: any;
|
|
195
|
-
style?: {} | undefined;
|
|
196
|
-
}) => React.ReactElement<{
|
|
197
|
-
className: string;
|
|
198
|
-
style: any;
|
|
199
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
200
|
-
declare const CodeSnippet: ({ children, style, ...props }: {
|
|
201
|
-
[x: string]: any;
|
|
202
|
-
children: any;
|
|
203
|
-
style?: {} | undefined;
|
|
204
|
-
}) => React.ReactElement<{
|
|
205
|
-
className: string;
|
|
206
|
-
style: any;
|
|
207
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
208
|
-
declare const CodeTextarea: ({ children, style, ...props }: {
|
|
209
|
-
[x: string]: any;
|
|
210
|
-
children: any;
|
|
211
|
-
style?: {} | undefined;
|
|
212
|
-
}) => React.ReactElement<{
|
|
213
|
-
className: string;
|
|
214
|
-
style: any;
|
|
215
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
216
|
-
declare const CheckboxHidden: ({ children, style, ...props }: {
|
|
217
|
-
[x: string]: any;
|
|
218
|
-
children: any;
|
|
219
|
-
style?: {} | undefined;
|
|
220
|
-
}) => React.ReactElement<{
|
|
221
|
-
className: string;
|
|
222
|
-
style: any;
|
|
223
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
224
|
-
declare const Checkbox: ({ label, checked, onChange }: {
|
|
225
|
-
label: any;
|
|
226
|
-
checked: any;
|
|
227
|
-
onChange: any;
|
|
228
|
-
}) => React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
229
|
-
declare function Bullet({ value }: {
|
|
230
|
-
value: string;
|
|
231
|
-
}): JSX.Element;
|
|
232
|
-
|
|
233
|
-
export { A, Box, Bullet, Button, Checkbox, CheckboxHidden, CodeSnippet, CodeTextarea, Component, Container, Dropzone, HR, HeaderH1, HeaderH2, HeaderH3, HeaderH4, Inline, Input, Li, MainHeader, MoreExperiments, Range, SmallText, Space, Stack, Tab, Tabs, Text, Ul, classList, getSettings, layoutPropsToStyles };
|