timvir 0.2.28 → 0.2.29
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/builtins/index.d.ts +1 -0
- package/builtins/index.js +274 -0
- package/builtins/styles.css +20 -0
- package/core/index.js +6 -268
- package/core/styles.css +0 -20
- package/package.json +2 -1
- package/search/index.js +1 -1
- package/styles.css +20 -20
- /package/{core/components/Page → builtins}/components.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import * as Icons from 'react-feather';
|
|
4
|
+
|
|
5
|
+
function memoize(fn) {
|
|
6
|
+
var cache = Object.create(null);
|
|
7
|
+
return function (arg) {
|
|
8
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
9
|
+
return cache[arg];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
14
|
+
|
|
15
|
+
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
16
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
17
|
+
/* o */ && prop.charCodeAt(1) === 110
|
|
18
|
+
/* n */ && prop.charCodeAt(2) < 91;
|
|
19
|
+
}
|
|
20
|
+
/* Z+1 */);
|
|
21
|
+
|
|
22
|
+
// src/css.ts
|
|
23
|
+
|
|
24
|
+
// src/cx.ts
|
|
25
|
+
var cx = function cx2() {
|
|
26
|
+
const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
|
|
27
|
+
const atomicClasses = {};
|
|
28
|
+
const nonAtomicClasses = [];
|
|
29
|
+
presentClassNames.forEach((arg) => {
|
|
30
|
+
const individualClassNames = arg ? arg.split(" ") : [];
|
|
31
|
+
individualClassNames.forEach((className) => {
|
|
32
|
+
if (className.startsWith("atm_")) {
|
|
33
|
+
const [, keyHash] = className.split("_");
|
|
34
|
+
atomicClasses[keyHash] = className;
|
|
35
|
+
} else {
|
|
36
|
+
nonAtomicClasses.push(className);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
const result = [];
|
|
41
|
+
for (const keyHash in atomicClasses) {
|
|
42
|
+
if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
|
|
43
|
+
result.push(atomicClasses[keyHash]);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
result.push(...nonAtomicClasses);
|
|
47
|
+
return result.join(" ");
|
|
48
|
+
};
|
|
49
|
+
var cx_default = cx;
|
|
50
|
+
|
|
51
|
+
// src/styled.ts
|
|
52
|
+
var isCapital = (ch) => ch.toUpperCase() === ch;
|
|
53
|
+
var filterKey = (keys) => (key) => keys.indexOf(key) === -1;
|
|
54
|
+
var omit = (obj, keys) => {
|
|
55
|
+
const res = {};
|
|
56
|
+
Object.keys(obj).filter(filterKey(keys)).forEach((key) => {
|
|
57
|
+
res[key] = obj[key];
|
|
58
|
+
});
|
|
59
|
+
return res;
|
|
60
|
+
};
|
|
61
|
+
function filterProps(asIs, props, omitKeys) {
|
|
62
|
+
const filteredProps = omit(props, omitKeys);
|
|
63
|
+
if (!asIs) {
|
|
64
|
+
const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
|
|
65
|
+
Object.keys(filteredProps).forEach((key) => {
|
|
66
|
+
if (!interopValidAttr.default(key)) {
|
|
67
|
+
delete filteredProps[key];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return filteredProps;
|
|
72
|
+
}
|
|
73
|
+
var warnIfInvalid = (value, componentName) => {
|
|
74
|
+
if (process.env.NODE_ENV !== "production") {
|
|
75
|
+
if (typeof value === "string" || // eslint-disable-next-line no-self-compare,no-restricted-globals
|
|
76
|
+
typeof value === "number" && isFinite(value)) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const stringified = typeof value === "object" ? JSON.stringify(value) : String(value);
|
|
80
|
+
console.warn(
|
|
81
|
+
`An interpolation evaluated to '${stringified}' in the component '${componentName}', which is probably a mistake. You should explicitly cast or transform the value to a string.`
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var idx = 0;
|
|
86
|
+
function styled(tag) {
|
|
87
|
+
let mockedClass = "";
|
|
88
|
+
if (process.env.NODE_ENV === "test") {
|
|
89
|
+
mockedClass += `mocked-styled-${idx++}`;
|
|
90
|
+
if (tag && tag.__linaria && tag.__linaria.className) {
|
|
91
|
+
mockedClass += ` ${tag.__linaria.className}`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return (options) => {
|
|
95
|
+
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
|
|
96
|
+
if (Array.isArray(options)) {
|
|
97
|
+
throw new Error(
|
|
98
|
+
'Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup'
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const render = (props, ref) => {
|
|
103
|
+
const { as: component = tag, class: className = mockedClass } = props;
|
|
104
|
+
const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
|
|
105
|
+
const filteredProps = filterProps(shouldKeepProps, props, [
|
|
106
|
+
"as",
|
|
107
|
+
"class"
|
|
108
|
+
]);
|
|
109
|
+
filteredProps.ref = ref;
|
|
110
|
+
filteredProps.className = options.atomic ? cx_default(options.class, filteredProps.className || className) : cx_default(filteredProps.className || className, options.class);
|
|
111
|
+
const { vars } = options;
|
|
112
|
+
if (vars) {
|
|
113
|
+
const style = {};
|
|
114
|
+
for (const name in vars) {
|
|
115
|
+
const variable = vars[name];
|
|
116
|
+
const result = variable[0];
|
|
117
|
+
const unit = variable[1] || "";
|
|
118
|
+
const value = typeof result === "function" ? result(props) : result;
|
|
119
|
+
warnIfInvalid(value, options.name);
|
|
120
|
+
style[`--${name}`] = `${value}${unit}`;
|
|
121
|
+
}
|
|
122
|
+
const ownStyle = filteredProps.style || {};
|
|
123
|
+
const keys = Object.keys(ownStyle);
|
|
124
|
+
if (keys.length > 0) {
|
|
125
|
+
keys.forEach((key) => {
|
|
126
|
+
style[key] = ownStyle[key];
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
filteredProps.style = style;
|
|
130
|
+
}
|
|
131
|
+
if (tag.__linaria && tag !== component) {
|
|
132
|
+
filteredProps.as = component;
|
|
133
|
+
return React__default.createElement(tag, filteredProps);
|
|
134
|
+
}
|
|
135
|
+
return React__default.createElement(component, filteredProps);
|
|
136
|
+
};
|
|
137
|
+
const Result = React__default.forwardRef ? React__default.forwardRef(render) : (
|
|
138
|
+
// React.forwardRef won't available on older React versions and in Preact
|
|
139
|
+
// Fallback to a innerRef prop in that case
|
|
140
|
+
(props) => {
|
|
141
|
+
const rest = omit(props, ["innerRef"]);
|
|
142
|
+
return render(rest, props.innerRef);
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
Result.displayName = options.name;
|
|
146
|
+
Result.__linaria = {
|
|
147
|
+
className: options.class || mockedClass,
|
|
148
|
+
extends: tag
|
|
149
|
+
};
|
|
150
|
+
return Result;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
|
|
154
|
+
get(o, prop) {
|
|
155
|
+
return o(prop);
|
|
156
|
+
}
|
|
157
|
+
}) : styled;
|
|
158
|
+
|
|
159
|
+
const anchorize = children => {
|
|
160
|
+
if (typeof children === "string") {
|
|
161
|
+
return children.toLowerCase().replace(/[ _]+/g, "-").replace(/[!:^*./\\]/g, "");
|
|
162
|
+
} else {
|
|
163
|
+
return undefined;
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
function Heading(Component) {
|
|
167
|
+
return function Heading(props) {
|
|
168
|
+
const id = anchorize(props.children);
|
|
169
|
+
return /*#__PURE__*/React.createElement(Component, {
|
|
170
|
+
id: id,
|
|
171
|
+
...props
|
|
172
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
173
|
+
className: "a1yepc47",
|
|
174
|
+
href: id && `#${id}`
|
|
175
|
+
}, props.children, /*#__PURE__*/React.createElement(Icons.Link, {
|
|
176
|
+
className: "calmbc7"
|
|
177
|
+
})));
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
const h1 = /*#__PURE__*/styled_default('h1')({
|
|
181
|
+
name: "h1",
|
|
182
|
+
class: "hryzf2k",
|
|
183
|
+
propsAsIs: false
|
|
184
|
+
});
|
|
185
|
+
const h2 = Heading(/*#__PURE__*/styled_default('h2')({
|
|
186
|
+
name: "h2",
|
|
187
|
+
class: "h1r910l8",
|
|
188
|
+
propsAsIs: false
|
|
189
|
+
}));
|
|
190
|
+
const h3 = Heading(/*#__PURE__*/styled_default('h3')({
|
|
191
|
+
name: "h3",
|
|
192
|
+
class: "hmqldzl",
|
|
193
|
+
propsAsIs: false
|
|
194
|
+
}));
|
|
195
|
+
const h4 = Heading(/*#__PURE__*/styled_default('h4')({
|
|
196
|
+
name: "h4",
|
|
197
|
+
class: "hpw7qeo",
|
|
198
|
+
propsAsIs: false
|
|
199
|
+
}));
|
|
200
|
+
const blockquote = /*#__PURE__*/styled_default('blockquote')({
|
|
201
|
+
name: "blockquote",
|
|
202
|
+
class: "b1gfctk0",
|
|
203
|
+
propsAsIs: false
|
|
204
|
+
});
|
|
205
|
+
const hr = /*#__PURE__*/styled_default('hr')({
|
|
206
|
+
name: "hr",
|
|
207
|
+
class: "h1kfhyug",
|
|
208
|
+
propsAsIs: false
|
|
209
|
+
});
|
|
210
|
+
const table = /*#__PURE__*/styled_default('table')({
|
|
211
|
+
name: "table",
|
|
212
|
+
class: "t11kzh9g",
|
|
213
|
+
propsAsIs: false
|
|
214
|
+
});
|
|
215
|
+
const thead = /*#__PURE__*/styled_default('thead')({
|
|
216
|
+
name: "thead",
|
|
217
|
+
class: "t15na2yl",
|
|
218
|
+
propsAsIs: false
|
|
219
|
+
});
|
|
220
|
+
const tbody = /*#__PURE__*/styled_default('tbody')({
|
|
221
|
+
name: "tbody",
|
|
222
|
+
class: "t80peu3",
|
|
223
|
+
propsAsIs: false
|
|
224
|
+
});
|
|
225
|
+
const tr = /*#__PURE__*/styled_default('tr')({
|
|
226
|
+
name: "tr",
|
|
227
|
+
class: "t1ichb2u",
|
|
228
|
+
propsAsIs: false
|
|
229
|
+
});
|
|
230
|
+
const _exp = () => props => props.align || "center";
|
|
231
|
+
const th = /*#__PURE__*/styled_default('th')({
|
|
232
|
+
name: "th",
|
|
233
|
+
class: "tynrygb",
|
|
234
|
+
propsAsIs: false,
|
|
235
|
+
vars: {
|
|
236
|
+
"tynrygb-0": [_exp()]
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
const _exp2 = () => props => props.align || "left";
|
|
240
|
+
const td = /*#__PURE__*/styled_default('td')({
|
|
241
|
+
name: "td",
|
|
242
|
+
class: "ta24p8f",
|
|
243
|
+
propsAsIs: false,
|
|
244
|
+
vars: {
|
|
245
|
+
"ta24p8f-0": [_exp2()]
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
const code = /*#__PURE__*/styled_default('code')({
|
|
249
|
+
name: "code",
|
|
250
|
+
class: "ctk2u2p",
|
|
251
|
+
propsAsIs: false
|
|
252
|
+
});
|
|
253
|
+
const a = /*#__PURE__*/styled_default('a')({
|
|
254
|
+
name: "a",
|
|
255
|
+
class: "az92cdb",
|
|
256
|
+
propsAsIs: false
|
|
257
|
+
});
|
|
258
|
+
const p = /*#__PURE__*/styled_default('p')({
|
|
259
|
+
name: "p",
|
|
260
|
+
class: "ptugcwl",
|
|
261
|
+
propsAsIs: false
|
|
262
|
+
});
|
|
263
|
+
const ul = /*#__PURE__*/styled_default('ul')({
|
|
264
|
+
name: "ul",
|
|
265
|
+
class: "ufjqxlv",
|
|
266
|
+
propsAsIs: false
|
|
267
|
+
});
|
|
268
|
+
const ol = /*#__PURE__*/styled_default('ol')({
|
|
269
|
+
name: "ol",
|
|
270
|
+
class: "op4zsja",
|
|
271
|
+
propsAsIs: false
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
export { a, blockquote, code, h1, h2, h3, h4, hr, ol, p, table, tbody, td, th, thead, tr, ul };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.a1yepc47{color:inherit;text-decoration:none;}.a1yepc47:hover svg{opacity:1;transform:none;visibility:visible;--visibility-delay:0s;}
|
|
2
|
+
.calmbc7{display:inline-block;margin-left:6px;color:var(--timvir-secondary-text-color);height:0.9rem;width:0.9rem;vertical-align:middle;transition:opacity 0.2s,transform 0.2s,visibility 0s var(--visibility-delay,0.2s);opacity:0;visibility:hidden;transform:translateX(-50%);}
|
|
3
|
+
.hryzf2k{margin-top:3rem;margin-bottom:1rem;font-size:2rem;line-height:1.125;font-weight:590;text-indent:-0.05em;}
|
|
4
|
+
.h1r910l8{position:relative;margin:2.5rem 0 1rem;font-size:1.5rem;line-height:1.1666;font-weight:590;}
|
|
5
|
+
.hmqldzl{position:relative;margin:1rem 0 1rem;font-size:1.0625rem;line-height:1.4705882353;font-weight:590;}
|
|
6
|
+
.hpw7qeo{position:relative;margin:1rem 0 1rem;font-size:0.9375rem;line-height:1.4375;font-weight:590;}
|
|
7
|
+
.b1gfctk0{margin-left:0;font-size:1.1rem;}.b1gfctk0 > *:first-child{margin-top:0;}.b1gfctk0 > *:last-child{margin-bottom:0;}
|
|
8
|
+
.h1kfhyug{display:block;border:none;height:1px;width:100%;background:currentColor;opacity:0.25;}
|
|
9
|
+
.t11kzh9g{border-spacing:0;border-collapse:collapse;width:100%;overflow:auto;}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.t1ichb2u{background-color:#fff;border-top:1px solid var(--c-p-2);}.t1ichb2u:nth-child(2n){background-color:var(--c-p-0);}
|
|
13
|
+
.tynrygb{text-align:var(--tynrygb-0);padding:6px 13px;border:1px solid var(--c-p-2);}
|
|
14
|
+
.ta24p8f{text-align:var(--ta24p8f-0);padding:6px 13px;border:1px solid var(--c-p-2);}
|
|
15
|
+
.ctk2u2p{border-radius:5px;padding:4px 6px 3px;font-size:0.8em;background:var(--timvir-secondary-background-color);border:1px solid var(--timvir-border-color);}
|
|
16
|
+
.az92cdb{color:currentColor;text-decoration:none;background-image:linear-gradient(transparent,transparent 5px,#383838 5px,#383838);background-position:bottom;background-size:100% 6px;background-repeat:repeat-x;}.az92cdb:hover{background-image:linear-gradient(transparent,transparent 3px,#2bbc8a 3px,#2bbc8a);}.az92cdb:hover .ctk2u2p{box-shadow:inset 0 0 0 1px rgba(16,22,26,0.5),inset 0 1px 4px rgba(16,22,26,0.2);}.az92cdb:active .ctk2u2p{box-shadow:inset 0 0 0 1px rgba(16,22,26,0.7),inset 0 1px 4px rgba(16,22,26,0.4);background:var(--c-p-2);}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
package/core/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { pipe, filter, subscribe } from 'wonka';
|
|
|
3
3
|
import { useContext, Provider } from 'timvir/context';
|
|
4
4
|
export { useContext } from 'timvir/context';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import React__default from 'react';
|
|
7
6
|
import { useImmer } from 'use-immer';
|
|
8
7
|
import { MDXProvider } from '@mdx-js/react';
|
|
9
8
|
import { useHotkeys } from 'react-hotkeys-hook';
|
|
10
9
|
import { makeBus } from 'timvir/bus';
|
|
10
|
+
import * as mdxComponentsBase from 'timvir/builtins';
|
|
11
11
|
import * as Icons from 'react-feather';
|
|
12
12
|
import { castDraft } from 'immer';
|
|
13
13
|
import * as ReactDOM from 'react-dom';
|
|
@@ -166,7 +166,7 @@ function Dialog(props) {
|
|
|
166
166
|
transform: "scale(0.95)"
|
|
167
167
|
};
|
|
168
168
|
setTimeout(() => {
|
|
169
|
-
onDispose
|
|
169
|
+
onDispose?.();
|
|
170
170
|
}, 200);
|
|
171
171
|
}
|
|
172
172
|
});
|
|
@@ -209,7 +209,7 @@ function Dialog(props) {
|
|
|
209
209
|
key: index,
|
|
210
210
|
label: node.label,
|
|
211
211
|
onClick: () => {
|
|
212
|
-
onClose
|
|
212
|
+
onClose?.();
|
|
213
213
|
window.location.href = node.path;
|
|
214
214
|
}
|
|
215
215
|
})))));
|
|
@@ -223,7 +223,6 @@ const classes$5 = {
|
|
|
223
223
|
};
|
|
224
224
|
|
|
225
225
|
function Commands(props) {
|
|
226
|
-
var _state$dialog;
|
|
227
226
|
const [state, mutate] = useImmer({
|
|
228
227
|
/**
|
|
229
228
|
* Whether the command palette should be open or not. The command palette is
|
|
@@ -321,7 +320,7 @@ function Commands(props) {
|
|
|
321
320
|
};
|
|
322
321
|
}
|
|
323
322
|
}, [state.open]);
|
|
324
|
-
return
|
|
323
|
+
return state.dialog?.reactPortal ?? null;
|
|
325
324
|
}
|
|
326
325
|
const classes$4 = {
|
|
327
326
|
root: "rfei6z8"
|
|
@@ -372,267 +371,6 @@ const classes$3 = {
|
|
|
372
371
|
root: "rymvrdu"
|
|
373
372
|
};
|
|
374
373
|
|
|
375
|
-
function memoize(fn) {
|
|
376
|
-
var cache = Object.create(null);
|
|
377
|
-
return function (arg) {
|
|
378
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
379
|
-
return cache[arg];
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
384
|
-
|
|
385
|
-
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
386
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
387
|
-
/* o */ && prop.charCodeAt(1) === 110
|
|
388
|
-
/* n */ && prop.charCodeAt(2) < 91;
|
|
389
|
-
}
|
|
390
|
-
/* Z+1 */);
|
|
391
|
-
|
|
392
|
-
// src/styled.ts
|
|
393
|
-
var isCapital = (ch) => ch.toUpperCase() === ch;
|
|
394
|
-
var filterKey = (keys) => (key) => keys.indexOf(key) === -1;
|
|
395
|
-
var omit = (obj, keys) => {
|
|
396
|
-
const res = {};
|
|
397
|
-
Object.keys(obj).filter(filterKey(keys)).forEach((key) => {
|
|
398
|
-
res[key] = obj[key];
|
|
399
|
-
});
|
|
400
|
-
return res;
|
|
401
|
-
};
|
|
402
|
-
function filterProps(asIs, props, omitKeys) {
|
|
403
|
-
const filteredProps = omit(props, omitKeys);
|
|
404
|
-
if (!asIs) {
|
|
405
|
-
const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
|
|
406
|
-
Object.keys(filteredProps).forEach((key) => {
|
|
407
|
-
if (!interopValidAttr.default(key)) {
|
|
408
|
-
delete filteredProps[key];
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
return filteredProps;
|
|
413
|
-
}
|
|
414
|
-
var warnIfInvalid = (value, componentName) => {
|
|
415
|
-
if (process.env.NODE_ENV !== "production") {
|
|
416
|
-
if (typeof value === "string" || // eslint-disable-next-line no-self-compare,no-restricted-globals
|
|
417
|
-
typeof value === "number" && isFinite(value)) {
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
const stringified = typeof value === "object" ? JSON.stringify(value) : String(value);
|
|
421
|
-
console.warn(
|
|
422
|
-
`An interpolation evaluated to '${stringified}' in the component '${componentName}', which is probably a mistake. You should explicitly cast or transform the value to a string.`
|
|
423
|
-
);
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
var idx = 0;
|
|
427
|
-
function styled(tag) {
|
|
428
|
-
let mockedClass = "";
|
|
429
|
-
if (process.env.NODE_ENV === "test") {
|
|
430
|
-
mockedClass += `mocked-styled-${idx++}`;
|
|
431
|
-
if (tag && tag.__linaria && tag.__linaria.className) {
|
|
432
|
-
mockedClass += ` ${tag.__linaria.className}`;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
return (options) => {
|
|
436
|
-
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
|
|
437
|
-
if (Array.isArray(options)) {
|
|
438
|
-
throw new Error(
|
|
439
|
-
'Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup'
|
|
440
|
-
);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
const render = (props, ref) => {
|
|
444
|
-
const { as: component = tag, class: className = mockedClass } = props;
|
|
445
|
-
const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
|
|
446
|
-
const filteredProps = filterProps(shouldKeepProps, props, [
|
|
447
|
-
"as",
|
|
448
|
-
"class"
|
|
449
|
-
]);
|
|
450
|
-
filteredProps.ref = ref;
|
|
451
|
-
filteredProps.className = options.atomic ? cx_default(options.class, filteredProps.className || className) : cx_default(filteredProps.className || className, options.class);
|
|
452
|
-
const { vars } = options;
|
|
453
|
-
if (vars) {
|
|
454
|
-
const style = {};
|
|
455
|
-
for (const name in vars) {
|
|
456
|
-
const variable = vars[name];
|
|
457
|
-
const result = variable[0];
|
|
458
|
-
const unit = variable[1] || "";
|
|
459
|
-
const value = typeof result === "function" ? result(props) : result;
|
|
460
|
-
warnIfInvalid(value, options.name);
|
|
461
|
-
style[`--${name}`] = `${value}${unit}`;
|
|
462
|
-
}
|
|
463
|
-
const ownStyle = filteredProps.style || {};
|
|
464
|
-
const keys = Object.keys(ownStyle);
|
|
465
|
-
if (keys.length > 0) {
|
|
466
|
-
keys.forEach((key) => {
|
|
467
|
-
style[key] = ownStyle[key];
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
filteredProps.style = style;
|
|
471
|
-
}
|
|
472
|
-
if (tag.__linaria && tag !== component) {
|
|
473
|
-
filteredProps.as = component;
|
|
474
|
-
return React__default.createElement(tag, filteredProps);
|
|
475
|
-
}
|
|
476
|
-
return React__default.createElement(component, filteredProps);
|
|
477
|
-
};
|
|
478
|
-
const Result = React__default.forwardRef ? React__default.forwardRef(render) : (
|
|
479
|
-
// React.forwardRef won't available on older React versions and in Preact
|
|
480
|
-
// Fallback to a innerRef prop in that case
|
|
481
|
-
(props) => {
|
|
482
|
-
const rest = omit(props, ["innerRef"]);
|
|
483
|
-
return render(rest, props.innerRef);
|
|
484
|
-
}
|
|
485
|
-
);
|
|
486
|
-
Result.displayName = options.name;
|
|
487
|
-
Result.__linaria = {
|
|
488
|
-
className: options.class || mockedClass,
|
|
489
|
-
extends: tag
|
|
490
|
-
};
|
|
491
|
-
return Result;
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
|
|
495
|
-
get(o, prop) {
|
|
496
|
-
return o(prop);
|
|
497
|
-
}
|
|
498
|
-
}) : styled;
|
|
499
|
-
|
|
500
|
-
const anchorize = children => {
|
|
501
|
-
if (typeof children === "string") {
|
|
502
|
-
return children.toLowerCase().replace(/[ _]+/g, "-").replace(/[!:^*./\\]/g, "");
|
|
503
|
-
} else {
|
|
504
|
-
return undefined;
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
function Heading(Component) {
|
|
508
|
-
return function Heading(props) {
|
|
509
|
-
const id = anchorize(props.children);
|
|
510
|
-
return /*#__PURE__*/React.createElement(Component, {
|
|
511
|
-
id: id,
|
|
512
|
-
...props
|
|
513
|
-
}, /*#__PURE__*/React.createElement("a", {
|
|
514
|
-
className: "a12hs2f7",
|
|
515
|
-
href: id && `#${id}`
|
|
516
|
-
}, props.children, /*#__PURE__*/React.createElement(Icons.Link, {
|
|
517
|
-
className: "c31avqb"
|
|
518
|
-
})));
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
const h1 = /*#__PURE__*/styled_default('h1')({
|
|
522
|
-
name: "h1",
|
|
523
|
-
class: "h6ceq1b",
|
|
524
|
-
propsAsIs: false
|
|
525
|
-
});
|
|
526
|
-
const h2 = Heading(/*#__PURE__*/styled_default('h2')({
|
|
527
|
-
name: "h2",
|
|
528
|
-
class: "hj6166y",
|
|
529
|
-
propsAsIs: false
|
|
530
|
-
}));
|
|
531
|
-
const h3 = Heading(/*#__PURE__*/styled_default('h3')({
|
|
532
|
-
name: "h3",
|
|
533
|
-
class: "h1f8mqks",
|
|
534
|
-
propsAsIs: false
|
|
535
|
-
}));
|
|
536
|
-
const h4 = Heading(/*#__PURE__*/styled_default('h4')({
|
|
537
|
-
name: "h4",
|
|
538
|
-
class: "h1hmga4",
|
|
539
|
-
propsAsIs: false
|
|
540
|
-
}));
|
|
541
|
-
const blockquote = /*#__PURE__*/styled_default('blockquote')({
|
|
542
|
-
name: "blockquote",
|
|
543
|
-
class: "blrd6ep",
|
|
544
|
-
propsAsIs: false
|
|
545
|
-
});
|
|
546
|
-
const hr = /*#__PURE__*/styled_default('hr')({
|
|
547
|
-
name: "hr",
|
|
548
|
-
class: "h172su6f",
|
|
549
|
-
propsAsIs: false
|
|
550
|
-
});
|
|
551
|
-
const table = /*#__PURE__*/styled_default('table')({
|
|
552
|
-
name: "table",
|
|
553
|
-
class: "t1a7p0gg",
|
|
554
|
-
propsAsIs: false
|
|
555
|
-
});
|
|
556
|
-
const thead = /*#__PURE__*/styled_default('thead')({
|
|
557
|
-
name: "thead",
|
|
558
|
-
class: "t1fah8q4",
|
|
559
|
-
propsAsIs: false
|
|
560
|
-
});
|
|
561
|
-
const tbody = /*#__PURE__*/styled_default('tbody')({
|
|
562
|
-
name: "tbody",
|
|
563
|
-
class: "twrwqj6",
|
|
564
|
-
propsAsIs: false
|
|
565
|
-
});
|
|
566
|
-
const tr = /*#__PURE__*/styled_default('tr')({
|
|
567
|
-
name: "tr",
|
|
568
|
-
class: "t1fhygp",
|
|
569
|
-
propsAsIs: false
|
|
570
|
-
});
|
|
571
|
-
const _exp = () => props => props.align || "center";
|
|
572
|
-
const th = /*#__PURE__*/styled_default('th')({
|
|
573
|
-
name: "th",
|
|
574
|
-
class: "t176v8uh",
|
|
575
|
-
propsAsIs: false,
|
|
576
|
-
vars: {
|
|
577
|
-
"t176v8uh-0": [_exp()]
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
|
-
const _exp2 = () => props => props.align || "left";
|
|
581
|
-
const td = /*#__PURE__*/styled_default('td')({
|
|
582
|
-
name: "td",
|
|
583
|
-
class: "tvhsmuz",
|
|
584
|
-
propsAsIs: false,
|
|
585
|
-
vars: {
|
|
586
|
-
"tvhsmuz-0": [_exp2()]
|
|
587
|
-
}
|
|
588
|
-
});
|
|
589
|
-
const code = /*#__PURE__*/styled_default('code')({
|
|
590
|
-
name: "code",
|
|
591
|
-
class: "c197eb99",
|
|
592
|
-
propsAsIs: false
|
|
593
|
-
});
|
|
594
|
-
const a = /*#__PURE__*/styled_default('a')({
|
|
595
|
-
name: "a",
|
|
596
|
-
class: "a1d7vdmn",
|
|
597
|
-
propsAsIs: false
|
|
598
|
-
});
|
|
599
|
-
const p = /*#__PURE__*/styled_default('p')({
|
|
600
|
-
name: "p",
|
|
601
|
-
class: "pgfnift",
|
|
602
|
-
propsAsIs: false
|
|
603
|
-
});
|
|
604
|
-
const ul = /*#__PURE__*/styled_default('ul')({
|
|
605
|
-
name: "ul",
|
|
606
|
-
class: "u3pt2dg",
|
|
607
|
-
propsAsIs: false
|
|
608
|
-
});
|
|
609
|
-
const ol = /*#__PURE__*/styled_default('ol')({
|
|
610
|
-
name: "ol",
|
|
611
|
-
class: "ojr9iky",
|
|
612
|
-
propsAsIs: false
|
|
613
|
-
});
|
|
614
|
-
|
|
615
|
-
var mdxComponentsBase = /*#__PURE__*/Object.freeze({
|
|
616
|
-
__proto__: null,
|
|
617
|
-
a: a,
|
|
618
|
-
blockquote: blockquote,
|
|
619
|
-
code: code,
|
|
620
|
-
h1: h1,
|
|
621
|
-
h2: h2,
|
|
622
|
-
h3: h3,
|
|
623
|
-
h4: h4,
|
|
624
|
-
hr: hr,
|
|
625
|
-
ol: ol,
|
|
626
|
-
p: p,
|
|
627
|
-
table: table,
|
|
628
|
-
tbody: tbody,
|
|
629
|
-
td: td,
|
|
630
|
-
th: th,
|
|
631
|
-
thead: thead,
|
|
632
|
-
tr: tr,
|
|
633
|
-
ul: ul
|
|
634
|
-
});
|
|
635
|
-
|
|
636
374
|
function SidebarItem(props) {
|
|
637
375
|
const {
|
|
638
376
|
depth,
|
|
@@ -766,9 +504,9 @@ function Sidebar(props) {
|
|
|
766
504
|
}))), /*#__PURE__*/React.createElement("label", {
|
|
767
505
|
htmlFor: "menu",
|
|
768
506
|
className: "l5l3c45"
|
|
769
|
-
}, node
|
|
507
|
+
}, node?.icon ? /*#__PURE__*/React.cloneElement(node.icon, {
|
|
770
508
|
className: "c15ju3pv"
|
|
771
|
-
}) : null, /*#__PURE__*/React.createElement("span", null,
|
|
509
|
+
}) : null, /*#__PURE__*/React.createElement("span", null, node?.label ?? "Menu"), /*#__PURE__*/React.createElement(Icons.Menu, {
|
|
772
510
|
size: 16,
|
|
773
511
|
className: "s2bwnbz"
|
|
774
512
|
})), /*#__PURE__*/React.createElement("input", {
|
package/core/styles.css
CHANGED
|
@@ -30,26 +30,6 @@
|
|
|
30
30
|
.difnzb8{color:var(--timvir-secondary-text-color);display:flex;align-items:center;margin-inline:-0.2em;}.difnzb8 svg{height:1.2em;width:1.2em;}
|
|
31
31
|
.rymvrdu{padding:50px 0 80px;display:grid;grid-auto-rows:min-content;grid-template-columns:[le] var(--timvir-page-margin) [lex lc] 1fr [rc rex] var(--timvir-page-margin) [re];}@media (min-width:48rem){.rymvrdu{grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr [lc] minmax(0,48rem) [rc] 1fr [rex] var(--timvir-page-margin) [re];}}@media (min-width:72rem){.rymvrdu{grid-template-columns: [le] 1fr var(--timvir-page-margin) [lex] minmax(0,12rem) [lc] 48rem [rc] minmax(0,12rem) [rex] var( --timvir-page-margin ) 1fr [re];}}.rymvrdu > *{grid-column:lc / rc;}
|
|
32
32
|
|
|
33
|
-
.a12hs2f7{color:inherit;text-decoration:none;}.a12hs2f7:hover svg{opacity:1;transform:none;visibility:visible;--visibility-delay:0s;}
|
|
34
|
-
.c31avqb{display:inline-block;margin-left:6px;color:var(--timvir-secondary-text-color);height:0.9rem;width:0.9rem;vertical-align:middle;transition:opacity 0.2s,transform 0.2s,visibility 0s var(--visibility-delay,0.2s);opacity:0;visibility:hidden;transform:translateX(-50%);}
|
|
35
|
-
.h6ceq1b{margin-top:3rem;margin-bottom:1rem;font-size:2rem;line-height:1.125;font-weight:590;text-indent:-0.05em;}
|
|
36
|
-
.hj6166y{position:relative;margin:2.5rem 0 1rem;font-size:1.5rem;line-height:1.1666;font-weight:590;}
|
|
37
|
-
.h1f8mqks{position:relative;margin:1rem 0 1rem;font-size:1.0625rem;line-height:1.4705882353;font-weight:590;}
|
|
38
|
-
.h1hmga4{position:relative;margin:1rem 0 1rem;font-size:0.9375rem;line-height:1.4375;font-weight:590;}
|
|
39
|
-
.blrd6ep{margin-left:0;font-size:1.1rem;}.blrd6ep > *:first-child{margin-top:0;}.blrd6ep > *:last-child{margin-bottom:0;}
|
|
40
|
-
.h172su6f{display:block;border:none;height:1px;width:100%;background:currentColor;opacity:0.25;}
|
|
41
|
-
.t1a7p0gg{border-spacing:0;border-collapse:collapse;width:100%;overflow:auto;}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
.t1fhygp{background-color:#fff;border-top:1px solid var(--c-p-2);}.t1fhygp:nth-child(2n){background-color:var(--c-p-0);}
|
|
45
|
-
.t176v8uh{text-align:var(--t176v8uh-0);padding:6px 13px;border:1px solid var(--c-p-2);}
|
|
46
|
-
.tvhsmuz{text-align:var(--tvhsmuz-0);padding:6px 13px;border:1px solid var(--c-p-2);}
|
|
47
|
-
.c197eb99{border-radius:5px;padding:4px 6px 3px;font-size:0.8em;background:var(--timvir-secondary-background-color);border:1px solid var(--timvir-border-color);}
|
|
48
|
-
.a1d7vdmn{color:currentColor;text-decoration:none;background-image:linear-gradient(transparent,transparent 5px,#383838 5px,#383838);background-position:bottom;background-size:100% 6px;background-repeat:repeat-x;}.a1d7vdmn:hover{background-image:linear-gradient(transparent,transparent 3px,#2bbc8a 3px,#2bbc8a);}.a1d7vdmn:hover .c197eb99{box-shadow:inset 0 0 0 1px rgba(16,22,26,0.5),inset 0 1px 4px rgba(16,22,26,0.2);}.a1d7vdmn:active .c197eb99{box-shadow:inset 0 0 0 1px rgba(16,22,26,0.7),inset 0 1px 4px rgba(16,22,26,0.4);background:var(--c-p-2);}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
33
|
.r28qe6v{display:flex;align-items:center;margin:1px 0;font-size:0.9375rem;line-height:2.2;}@media (min-width:48rem){.r28qe6v{font-size:0.8125rem;}}@media (any-pointer:coarse){.r28qe6v > a{min-height:44px;}}.r28qe6v > a{min-width:0;transition:background 0.16s;border-radius:4px;display:flex;align-items:center;color:var(--timvir-text-color);font-weight:500;background:none;text-decoration:none;width:100%;padding:0 8px;opacity:0.7;}.r28qe6v:hover a{background-color:var(--timvir-sidebar-highlight-color);opacity:1;}.r28qe6v[data-active="true"] a{background-color:var(--timvir-sidebar-highlight-color);opacity:1;}
|
|
54
34
|
.i1ia823q{display:block;width:1.3em;height:1.3em;margin-right:8px;min-width:1.3em;}
|
|
55
35
|
.l13ixk6c{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:auto;}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "timvir",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.29",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
8
8
|
"./styles.css": "./styles.css",
|
|
9
9
|
"./blocks": "./blocks/index.js",
|
|
10
10
|
"./blocks/*": "./blocks/*/index.js",
|
|
11
|
+
"./builtins": "./builtins/index.js",
|
|
11
12
|
"./bus": "./bus/index.js",
|
|
12
13
|
"./context": "./context/index.js",
|
|
13
14
|
"./core": "./core/index.js",
|
package/search/index.js
CHANGED
|
@@ -120,7 +120,7 @@ function Dialog(props, ref) {
|
|
|
120
120
|
setResult(result);
|
|
121
121
|
});
|
|
122
122
|
}, [value, q, setResult]);
|
|
123
|
-
const items =
|
|
123
|
+
const items = result?.edges ?? [];
|
|
124
124
|
const {
|
|
125
125
|
getMenuProps,
|
|
126
126
|
getInputProps,
|
package/styles.css
CHANGED
|
@@ -96,6 +96,26 @@
|
|
|
96
96
|
.igksd61{flex:1 1 180px;position:relative;min-width:180px;}
|
|
97
97
|
.i1gibb8w{display:block;object-fit:cover;border-radius:0 3px 3px 0;width:calc(100% - 2px);height:calc(100% - 2px);position:absolute;top:1px;left:1px;}
|
|
98
98
|
|
|
99
|
+
.a1yepc47{color:inherit;text-decoration:none;}.a1yepc47:hover svg{opacity:1;transform:none;visibility:visible;--visibility-delay:0s;}
|
|
100
|
+
.calmbc7{display:inline-block;margin-left:6px;color:var(--timvir-secondary-text-color);height:0.9rem;width:0.9rem;vertical-align:middle;transition:opacity 0.2s,transform 0.2s,visibility 0s var(--visibility-delay,0.2s);opacity:0;visibility:hidden;transform:translateX(-50%);}
|
|
101
|
+
.hryzf2k{margin-top:3rem;margin-bottom:1rem;font-size:2rem;line-height:1.125;font-weight:590;text-indent:-0.05em;}
|
|
102
|
+
.h1r910l8{position:relative;margin:2.5rem 0 1rem;font-size:1.5rem;line-height:1.1666;font-weight:590;}
|
|
103
|
+
.hmqldzl{position:relative;margin:1rem 0 1rem;font-size:1.0625rem;line-height:1.4705882353;font-weight:590;}
|
|
104
|
+
.hpw7qeo{position:relative;margin:1rem 0 1rem;font-size:0.9375rem;line-height:1.4375;font-weight:590;}
|
|
105
|
+
.b1gfctk0{margin-left:0;font-size:1.1rem;}.b1gfctk0 > *:first-child{margin-top:0;}.b1gfctk0 > *:last-child{margin-bottom:0;}
|
|
106
|
+
.h1kfhyug{display:block;border:none;height:1px;width:100%;background:currentColor;opacity:0.25;}
|
|
107
|
+
.t11kzh9g{border-spacing:0;border-collapse:collapse;width:100%;overflow:auto;}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
.t1ichb2u{background-color:#fff;border-top:1px solid var(--c-p-2);}.t1ichb2u:nth-child(2n){background-color:var(--c-p-0);}
|
|
111
|
+
.tynrygb{text-align:var(--tynrygb-0);padding:6px 13px;border:1px solid var(--c-p-2);}
|
|
112
|
+
.ta24p8f{text-align:var(--ta24p8f-0);padding:6px 13px;border:1px solid var(--c-p-2);}
|
|
113
|
+
.ctk2u2p{border-radius:5px;padding:4px 6px 3px;font-size:0.8em;background:var(--timvir-secondary-background-color);border:1px solid var(--timvir-border-color);}
|
|
114
|
+
.az92cdb{color:currentColor;text-decoration:none;background-image:linear-gradient(transparent,transparent 5px,#383838 5px,#383838);background-position:bottom;background-size:100% 6px;background-repeat:repeat-x;}.az92cdb:hover{background-image:linear-gradient(transparent,transparent 3px,#2bbc8a 3px,#2bbc8a);}.az92cdb:hover .ctk2u2p{box-shadow:inset 0 0 0 1px rgba(16,22,26,0.5),inset 0 1px 4px rgba(16,22,26,0.2);}.az92cdb:active .ctk2u2p{box-shadow:inset 0 0 0 1px rgba(16,22,26,0.7),inset 0 1px 4px rgba(16,22,26,0.4);background:var(--c-p-2);}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
99
119
|
|
|
100
120
|
|
|
101
121
|
|
|
@@ -130,26 +150,6 @@
|
|
|
130
150
|
.difnzb8{color:var(--timvir-secondary-text-color);display:flex;align-items:center;margin-inline:-0.2em;}.difnzb8 svg{height:1.2em;width:1.2em;}
|
|
131
151
|
.rymvrdu{padding:50px 0 80px;display:grid;grid-auto-rows:min-content;grid-template-columns:[le] var(--timvir-page-margin) [lex lc] 1fr [rc rex] var(--timvir-page-margin) [re];}@media (min-width:48rem){.rymvrdu{grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr [lc] minmax(0,48rem) [rc] 1fr [rex] var(--timvir-page-margin) [re];}}@media (min-width:72rem){.rymvrdu{grid-template-columns: [le] 1fr var(--timvir-page-margin) [lex] minmax(0,12rem) [lc] 48rem [rc] minmax(0,12rem) [rex] var( --timvir-page-margin ) 1fr [re];}}.rymvrdu > *{grid-column:lc / rc;}
|
|
132
152
|
|
|
133
|
-
.a12hs2f7{color:inherit;text-decoration:none;}.a12hs2f7:hover svg{opacity:1;transform:none;visibility:visible;--visibility-delay:0s;}
|
|
134
|
-
.c31avqb{display:inline-block;margin-left:6px;color:var(--timvir-secondary-text-color);height:0.9rem;width:0.9rem;vertical-align:middle;transition:opacity 0.2s,transform 0.2s,visibility 0s var(--visibility-delay,0.2s);opacity:0;visibility:hidden;transform:translateX(-50%);}
|
|
135
|
-
.h6ceq1b{margin-top:3rem;margin-bottom:1rem;font-size:2rem;line-height:1.125;font-weight:590;text-indent:-0.05em;}
|
|
136
|
-
.hj6166y{position:relative;margin:2.5rem 0 1rem;font-size:1.5rem;line-height:1.1666;font-weight:590;}
|
|
137
|
-
.h1f8mqks{position:relative;margin:1rem 0 1rem;font-size:1.0625rem;line-height:1.4705882353;font-weight:590;}
|
|
138
|
-
.h1hmga4{position:relative;margin:1rem 0 1rem;font-size:0.9375rem;line-height:1.4375;font-weight:590;}
|
|
139
|
-
.blrd6ep{margin-left:0;font-size:1.1rem;}.blrd6ep > *:first-child{margin-top:0;}.blrd6ep > *:last-child{margin-bottom:0;}
|
|
140
|
-
.h172su6f{display:block;border:none;height:1px;width:100%;background:currentColor;opacity:0.25;}
|
|
141
|
-
.t1a7p0gg{border-spacing:0;border-collapse:collapse;width:100%;overflow:auto;}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
.t1fhygp{background-color:#fff;border-top:1px solid var(--c-p-2);}.t1fhygp:nth-child(2n){background-color:var(--c-p-0);}
|
|
145
|
-
.t176v8uh{text-align:var(--t176v8uh-0);padding:6px 13px;border:1px solid var(--c-p-2);}
|
|
146
|
-
.tvhsmuz{text-align:var(--tvhsmuz-0);padding:6px 13px;border:1px solid var(--c-p-2);}
|
|
147
|
-
.c197eb99{border-radius:5px;padding:4px 6px 3px;font-size:0.8em;background:var(--timvir-secondary-background-color);border:1px solid var(--timvir-border-color);}
|
|
148
|
-
.a1d7vdmn{color:currentColor;text-decoration:none;background-image:linear-gradient(transparent,transparent 5px,#383838 5px,#383838);background-position:bottom;background-size:100% 6px;background-repeat:repeat-x;}.a1d7vdmn:hover{background-image:linear-gradient(transparent,transparent 3px,#2bbc8a 3px,#2bbc8a);}.a1d7vdmn:hover .c197eb99{box-shadow:inset 0 0 0 1px rgba(16,22,26,0.5),inset 0 1px 4px rgba(16,22,26,0.2);}.a1d7vdmn:active .c197eb99{box-shadow:inset 0 0 0 1px rgba(16,22,26,0.7),inset 0 1px 4px rgba(16,22,26,0.4);background:var(--c-p-2);}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
153
|
.r28qe6v{display:flex;align-items:center;margin:1px 0;font-size:0.9375rem;line-height:2.2;}@media (min-width:48rem){.r28qe6v{font-size:0.8125rem;}}@media (any-pointer:coarse){.r28qe6v > a{min-height:44px;}}.r28qe6v > a{min-width:0;transition:background 0.16s;border-radius:4px;display:flex;align-items:center;color:var(--timvir-text-color);font-weight:500;background:none;text-decoration:none;width:100%;padding:0 8px;opacity:0.7;}.r28qe6v:hover a{background-color:var(--timvir-sidebar-highlight-color);opacity:1;}.r28qe6v[data-active="true"] a{background-color:var(--timvir-sidebar-highlight-color);opacity:1;}
|
|
154
154
|
.i1ia823q{display:block;width:1.3em;height:1.3em;margin-right:8px;min-width:1.3em;}
|
|
155
155
|
.l13ixk6c{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:auto;}
|
|
File without changes
|