timvir 0.2.39 → 0.2.43
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/CHANGELOG.md +26 -0
- package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
- package/blocks/Arbitrary/index.js +200 -47
- package/blocks/Arbitrary/styles.css +222 -6
- package/blocks/Code/Code.d.ts +0 -6
- package/blocks/Code/docs/index.mdx +0 -11
- package/blocks/Code/index.js +211 -110
- package/blocks/Code/styles.css +158 -15
- package/blocks/ColorBar/docs/index.mdx +8 -2
- package/blocks/ColorBar/index.js +205 -46
- package/blocks/ColorBar/styles.css +157 -4
- package/blocks/ColorBook/docs/index.mdx +1 -1
- package/blocks/ColorBook/index.js +205 -39
- package/blocks/ColorBook/styles.css +224 -6
- package/blocks/Cover/index.js +175 -34
- package/blocks/Cover/styles.css +82 -0
- package/blocks/Exhibit/index.js +199 -40
- package/blocks/Exhibit/styles.css +126 -3
- package/blocks/Font/index.js +196 -58
- package/blocks/Font/styles.css +142 -8
- package/blocks/Grid/docs/index.mdx +4 -4
- package/blocks/Grid/index.js +183 -33
- package/blocks/Grid/styles.css +78 -1
- package/blocks/Icon/docs/index.mdx +13 -13
- package/blocks/Icon/index.js +25 -43
- package/blocks/Icon/styles.css +117 -5
- package/blocks/Message/docs/index.mdx +5 -8
- package/blocks/Message/index.js +240 -54
- package/blocks/Message/styles.css +154 -6
- package/blocks/Swatch/docs/index.mdx +16 -16
- package/blocks/Swatch/index.js +187 -34
- package/blocks/Swatch/styles.css +142 -4
- package/blocks/Viewport/index.js +209 -89
- package/blocks/Viewport/styles.css +313 -14
- package/blocks/WebLink/index.js +199 -47
- package/blocks/WebLink/styles.css +226 -8
- package/blocks/styles.css +2158 -97
- package/builtins/components.d.ts +2 -2
- package/builtins/index.d.ts +0 -1
- package/builtins/index.js +307 -243
- package/builtins/styles.css +323 -25
- package/context/index.d.ts +6 -1
- package/core/components/Commands/Commands.d.ts +5 -1
- package/core/components/NavigationFooter/NavigationFooter.d.ts +4 -2
- package/core/components/Page/Page.d.ts +12 -3
- package/core/components/Page/docs/index.mdx +44 -11
- package/core/index.d.ts +191 -2
- package/core/index.js +415 -256
- package/core/layout.d.ts +41 -0
- package/core/styles.css +857 -88
- package/global.css +79 -0
- package/internal/cx.d.ts +1 -0
- package/package.json +1 -2
- package/search/index.js +2 -223
- package/styles.css +3426 -235
- package/blocks/Code/theme.d.ts +0 -2
- package/bus/styles.css +0 -1
- package/context/styles.css +0 -1
- package/core/theme/index.d.ts +0 -1
- package/hooks/styles.css +0 -1
- package/search/Search/internal/Dialog.d.ts +0 -20
- package/search/Search/internal/index.d.ts +0 -1
- package/search/SearchBoxInput/SearchBoxInput.d.ts +0 -11
- package/search/SearchBoxInput/docs/api.mdx +0 -76
- package/search/SearchBoxInput/docs/index.mdx +0 -6
- package/search/SearchBoxInput/index.d.ts +0 -1
- package/search/SearchBoxInput/samples/basic.d.ts +0 -1
- package/search/SearchBoxListItem/SearchBoxListItem.d.ts +0 -13
- package/search/SearchBoxListItem/docs/api.mdx +0 -76
- package/search/SearchBoxListItem/docs/index.mdx +0 -30
- package/search/SearchBoxListItem/index.d.ts +0 -1
- package/search/SearchBoxListItem/samples/basic.d.ts +0 -1
- package/search/styles.css +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# timvir
|
|
2
2
|
|
|
3
|
+
## 0.2.43
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **Avoid cyclic dependencies between Timvir modules** ([#3482](https://github.com/timvir/timvir/pull/3482)) - Cyclic dependencies were causing broken styles at best, and a crash at worst.
|
|
8
|
+
|
|
9
|
+
## 0.2.42
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- **Fix broken release** ([#3473](https://github.com/timvir/timvir/pull/3473)) - No code changes.
|
|
14
|
+
|
|
15
|
+
## 0.2.41
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- **Fix broken release** ([#3471](https://github.com/timvir/timvir/pull/3471)) - No code changes.
|
|
20
|
+
|
|
21
|
+
## 0.2.40
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- **Remove peer dependency on @mdx-js/react** ([#3315](https://github.com/timvir/timvir/pull/3315)) - Timvir no longer wraps the page content with `<MDXProvider>`. Instead, Timvir provides a custom hook – `useArticleComponents` – for use in client components. If you're building server components though, you should prefer importing your custom components directly, and import Timvir builtins from the `timvir/builtins` module.
|
|
26
|
+
- **Improve word wrapping behavior in article pages** ([#3429](https://github.com/timvir/timvir/pull/3429)) - Long words (for example long identifiers used in certain programming languages) no longer extend beyond the layout box. Instead, the browser will break the words when needed. Note that this change only applies inside the article page content. In other parts of the interface (eg. sidebar or navigation footer) Timvir continues to use text truncation with ellipsis for long words.
|
|
27
|
+
- **Improve type of Page Link prop** ([#3330](https://github.com/timvir/timvir/pull/3330)) - The `Link` prop on the `<Page>` component is now type-compatible with the `<Link>` component from Next.js. This is not a breaking change, not at runtime anyways. There is a small chance that TypeScript will raise a type error. But it's more likely that you can remove a `as any` type cast if you currently use one.
|
|
28
|
+
|
|
3
29
|
## 0.2.39
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -1,37 +1,170 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { Exhibit } from 'timvir/blocks';
|
|
3
4
|
import { useBlock } from 'timvir/core';
|
|
4
|
-
import * as React from 'react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
function cx(...args) {
|
|
8
|
+
let str = "";
|
|
9
|
+
for (let i = 0; i < args.length; i++) {
|
|
10
|
+
const arg = args[i];
|
|
11
|
+
if (typeof arg === "string") {
|
|
12
|
+
str += (str && " ") + arg;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return str;
|
|
16
|
+
}
|
|
8
17
|
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
individualClassNames.forEach((className) => {
|
|
17
|
-
if (className.startsWith("atm_")) {
|
|
18
|
-
const [, keyHash] = className.split("_");
|
|
19
|
-
atomicClasses[keyHash] = className;
|
|
20
|
-
} else {
|
|
21
|
-
nonAtomicClasses.push(className);
|
|
22
|
-
}
|
|
18
|
+
var styleq = {};
|
|
19
|
+
var hasRequiredStyleq;
|
|
20
|
+
function requireStyleq() {
|
|
21
|
+
if (hasRequiredStyleq) return styleq;
|
|
22
|
+
hasRequiredStyleq = 1;
|
|
23
|
+
Object.defineProperty(styleq, "__esModule", {
|
|
24
|
+
value: true
|
|
23
25
|
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
styleq.styleq = void 0;
|
|
27
|
+
var cache = new WeakMap();
|
|
28
|
+
var compiledKey = '$$css';
|
|
29
|
+
function createStyleq(options) {
|
|
30
|
+
var disableCache;
|
|
31
|
+
var disableMix;
|
|
32
|
+
var transform;
|
|
33
|
+
if (options != null) {
|
|
34
|
+
disableCache = options.disableCache === true;
|
|
35
|
+
disableMix = options.disableMix === true;
|
|
36
|
+
transform = options.transform;
|
|
37
|
+
}
|
|
38
|
+
return function styleq() {
|
|
39
|
+
var definedProperties = [];
|
|
40
|
+
var className = '';
|
|
41
|
+
var inlineStyle = null;
|
|
42
|
+
var debugString = '';
|
|
43
|
+
var nextCache = disableCache ? null : cache;
|
|
44
|
+
var styles = new Array(arguments.length);
|
|
45
|
+
for(var i = 0; i < arguments.length; i++){
|
|
46
|
+
styles[i] = arguments[i];
|
|
47
|
+
}
|
|
48
|
+
while(styles.length > 0){
|
|
49
|
+
var possibleStyle = styles.pop();
|
|
50
|
+
if (possibleStyle == null || possibleStyle === false) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (Array.isArray(possibleStyle)) {
|
|
54
|
+
for(var _i = 0; _i < possibleStyle.length; _i++){
|
|
55
|
+
styles.push(possibleStyle[_i]);
|
|
56
|
+
}
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
var style = transform != null ? transform(possibleStyle) : possibleStyle;
|
|
60
|
+
if (style.$$css != null) {
|
|
61
|
+
var classNameChunk = '';
|
|
62
|
+
if (nextCache != null && nextCache.has(style)) {
|
|
63
|
+
var cacheEntry = nextCache.get(style);
|
|
64
|
+
if (cacheEntry != null) {
|
|
65
|
+
classNameChunk = cacheEntry[0];
|
|
66
|
+
debugString = cacheEntry[2];
|
|
67
|
+
definedProperties.push.apply(definedProperties, cacheEntry[1]);
|
|
68
|
+
nextCache = cacheEntry[3];
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
var definedPropertiesChunk = [];
|
|
72
|
+
for(var prop in style){
|
|
73
|
+
var value = style[prop];
|
|
74
|
+
if (prop === compiledKey) {
|
|
75
|
+
var compiledKeyValue = style[prop];
|
|
76
|
+
if (compiledKeyValue !== true) {
|
|
77
|
+
debugString = debugString ? compiledKeyValue + '; ' + debugString : compiledKeyValue;
|
|
78
|
+
}
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
if (typeof value === 'string' || value === null) {
|
|
82
|
+
if (!definedProperties.includes(prop)) {
|
|
83
|
+
definedProperties.push(prop);
|
|
84
|
+
if (nextCache != null) {
|
|
85
|
+
definedPropertiesChunk.push(prop);
|
|
86
|
+
}
|
|
87
|
+
if (typeof value === 'string') {
|
|
88
|
+
classNameChunk += classNameChunk ? ' ' + value : value;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
} else {
|
|
92
|
+
console.error("styleq: ".concat(prop, " typeof ").concat(String(value), " is not \"string\" or \"null\"."));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (nextCache != null) {
|
|
96
|
+
var weakMap = new WeakMap();
|
|
97
|
+
nextCache.set(style, [
|
|
98
|
+
classNameChunk,
|
|
99
|
+
definedPropertiesChunk,
|
|
100
|
+
debugString,
|
|
101
|
+
weakMap
|
|
102
|
+
]);
|
|
103
|
+
nextCache = weakMap;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (classNameChunk) {
|
|
107
|
+
className = className ? classNameChunk + ' ' + className : classNameChunk;
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
if (disableMix) {
|
|
111
|
+
if (inlineStyle == null) {
|
|
112
|
+
inlineStyle = {};
|
|
113
|
+
}
|
|
114
|
+
inlineStyle = Object.assign({}, style, inlineStyle);
|
|
115
|
+
} else {
|
|
116
|
+
var subStyle = null;
|
|
117
|
+
for(var _prop in style){
|
|
118
|
+
var _value = style[_prop];
|
|
119
|
+
if (_value !== undefined) {
|
|
120
|
+
if (!definedProperties.includes(_prop)) {
|
|
121
|
+
if (_value != null) {
|
|
122
|
+
if (inlineStyle == null) {
|
|
123
|
+
inlineStyle = {};
|
|
124
|
+
}
|
|
125
|
+
if (subStyle == null) {
|
|
126
|
+
subStyle = {};
|
|
127
|
+
}
|
|
128
|
+
subStyle[_prop] = _value;
|
|
129
|
+
}
|
|
130
|
+
definedProperties.push(_prop);
|
|
131
|
+
nextCache = null;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (subStyle != null) {
|
|
136
|
+
inlineStyle = Object.assign(subStyle, inlineStyle);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
var styleProps = [
|
|
142
|
+
className,
|
|
143
|
+
inlineStyle,
|
|
144
|
+
debugString
|
|
145
|
+
];
|
|
146
|
+
return styleProps;
|
|
147
|
+
};
|
|
29
148
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
var
|
|
149
|
+
var styleq$1 = styleq.styleq = createStyleq();
|
|
150
|
+
styleq$1.factory = createStyleq;
|
|
151
|
+
return styleq;
|
|
152
|
+
}
|
|
153
|
+
var styleqExports = requireStyleq();
|
|
154
|
+
function props(...styles) {
|
|
155
|
+
const [className, style, dataStyleSrc] = styleqExports.styleq(styles);
|
|
156
|
+
const result = {};
|
|
157
|
+
if (className != null && className !== '') {
|
|
158
|
+
result.className = className;
|
|
159
|
+
}
|
|
160
|
+
if (style != null && Object.keys(style).length > 0) {
|
|
161
|
+
result.style = style;
|
|
162
|
+
}
|
|
163
|
+
if (dataStyleSrc != null && dataStyleSrc !== '') {
|
|
164
|
+
result['data-style-src'] = dataStyleSrc;
|
|
165
|
+
}
|
|
166
|
+
return result;
|
|
167
|
+
}
|
|
35
168
|
|
|
36
169
|
const bytesToHex = (() => {
|
|
37
170
|
const s = Array.from({
|
|
@@ -89,17 +222,22 @@ function decode(output) {
|
|
|
89
222
|
return new Uint8Array(bytes.reverse());
|
|
90
223
|
}
|
|
91
224
|
|
|
225
|
+
const layoutStyles = {
|
|
226
|
+
block: {
|
|
227
|
+
kBCFzs: "timvir-s-htle6",
|
|
228
|
+
k7Eaqz: "timvir-s-euugli",
|
|
229
|
+
kogj98: "timvir-s-1t4wa6b",
|
|
230
|
+
$$css: true
|
|
231
|
+
}};
|
|
232
|
+
|
|
92
233
|
const Context = /*#__PURE__*/React.createContext({
|
|
93
234
|
seed: 0
|
|
94
235
|
});
|
|
95
236
|
const useContext = () => React.useContext(Context);
|
|
96
237
|
|
|
97
|
-
/**
|
|
98
|
-
* The underlying DOM element which is rendered by this component.
|
|
99
|
-
*/
|
|
100
238
|
const Root = "div";
|
|
101
|
-
function Arbitrary(props, ref) {
|
|
102
|
-
const block = useBlock(props);
|
|
239
|
+
function Arbitrary(props$1, ref) {
|
|
240
|
+
const block = useBlock(props$1);
|
|
103
241
|
const {
|
|
104
242
|
ExhibitProps,
|
|
105
243
|
className,
|
|
@@ -115,31 +253,45 @@ function Arbitrary(props, ref) {
|
|
|
115
253
|
});
|
|
116
254
|
}, []);
|
|
117
255
|
React.useEffect(() => {
|
|
118
|
-
if (props.id) {
|
|
256
|
+
if (props$1.id) {
|
|
119
257
|
block.bus.next({
|
|
120
258
|
type: "SIGNAL",
|
|
121
|
-
path: `/dev/timvir/block/${props.id}`,
|
|
259
|
+
path: `/dev/timvir/block/${props$1.id}`,
|
|
122
260
|
interface: "dev.timvir.block.Arbitrary",
|
|
123
261
|
member: "seed",
|
|
124
262
|
body: value.seed
|
|
125
263
|
});
|
|
126
264
|
}
|
|
127
|
-
}, [props.id, block.bus, value.seed]);
|
|
265
|
+
}, [props$1.id, block.bus, value.seed]);
|
|
266
|
+
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
267
|
+
const inputStyleProps = {
|
|
268
|
+
className: "timvir-s-c342km timvir-s-1a2a7pz timvir-s-ln7xf2 timvir-s-jbqb8w timvir-s-kh2ocl timvir-s-1717udv timvir-s-h8yej3 timvir-s-1heor9g"
|
|
269
|
+
};
|
|
128
270
|
return /*#__PURE__*/jsx(Context.Provider, {
|
|
129
271
|
value: value,
|
|
130
272
|
children: /*#__PURE__*/jsxs(Root, {
|
|
131
273
|
ref: ref,
|
|
132
|
-
className: cx_default("timvir-b-Arbitrary", classes.root, className),
|
|
133
274
|
...rest,
|
|
275
|
+
...rootStyleProps,
|
|
276
|
+
className: cx("timvir-b-Arbitrary", rootStyleProps.className, className),
|
|
277
|
+
style: {
|
|
278
|
+
margin: "1em 0",
|
|
279
|
+
...rootStyleProps.style,
|
|
280
|
+
...rest.style
|
|
281
|
+
},
|
|
134
282
|
children: [/*#__PURE__*/jsxs("div", {
|
|
135
|
-
className:
|
|
283
|
+
className: "timvir-s-rvj5dj timvir-s-d3ue5d timvir-s-9flyx0 timvir-s-1e56ztr",
|
|
136
284
|
children: [/*#__PURE__*/jsxs("div", {
|
|
137
|
-
className:
|
|
285
|
+
className: "timvir-s-78zum5 timvir-s-6s0dn4 timvir-s-qtkp2c timvir-s-u0aao5 timvir-s-1n2onr6 timvir-s-1d0dlzq timvir-s-1tcdsnd timvir-s-ieozyd timvir-s-1x824oc timvir-s-5l10my timvir-s-1op5qub timvir-s-1kx6eu5 timvir-s-hlrplc timvir-s-1dzvx6z timvir-s-lzy7x8 timvir-s-1edtgf2 timvir-s-18wp92t timvir-s-rlfy00",
|
|
138
286
|
children: [/*#__PURE__*/jsx("span", {
|
|
139
|
-
className:
|
|
287
|
+
className: "timvir-s-1rg5ohu timvir-s-vgvpxu timvir-s-15ku74s",
|
|
140
288
|
children: "Seed:"
|
|
141
289
|
}), /*#__PURE__*/jsx("input", {
|
|
142
|
-
|
|
290
|
+
...inputStyleProps,
|
|
291
|
+
className: cx("timvir-b-Arbitrary-seed", inputStyleProps.className),
|
|
292
|
+
style: {
|
|
293
|
+
...inputStyleProps.style
|
|
294
|
+
},
|
|
143
295
|
placeholder: "Seed",
|
|
144
296
|
value: encode(new TextEncoder().encode(`${value.seed}`)),
|
|
145
297
|
readOnly: true,
|
|
@@ -155,7 +307,7 @@ function Arbitrary(props, ref) {
|
|
|
155
307
|
})]
|
|
156
308
|
}), /*#__PURE__*/jsx("button", {
|
|
157
309
|
type: "button",
|
|
158
|
-
className:
|
|
310
|
+
className: "timvir-s-1a2a7pz timvir-s-u0aao5 timvir-s-mkeg23 timvir-s-1y0btm7 timvir-s-j7gikm timvir-s-1cum3z5 timvir-s-1d0dlzq timvir-s-1cdhzux timvir-s-ln7xf2 timvir-s-49kzi4 timvir-s-1dc5b4e timvir-s-13m658e timvir-s-1bx2y69",
|
|
159
311
|
onClick: () => {
|
|
160
312
|
setValue({
|
|
161
313
|
seed: crypto.getRandomValues(new Uint32Array(1))[0]
|
|
@@ -165,19 +317,20 @@ function Arbitrary(props, ref) {
|
|
|
165
317
|
})]
|
|
166
318
|
}), /*#__PURE__*/jsx(Exhibit, {
|
|
167
319
|
...ExhibitProps,
|
|
320
|
+
style: {
|
|
321
|
+
margin: 0
|
|
322
|
+
},
|
|
168
323
|
children: children
|
|
169
324
|
})]
|
|
170
325
|
})
|
|
171
326
|
});
|
|
172
327
|
}
|
|
173
328
|
var Arbitrary$1 = /*#__PURE__*/React.forwardRef(Arbitrary);
|
|
174
|
-
const
|
|
175
|
-
root:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
input: "i1dajnne",
|
|
180
|
-
button: "b128wsn"
|
|
329
|
+
const styles = {
|
|
330
|
+
root: {
|
|
331
|
+
kogj98: "timvir-s-9t3ola",
|
|
332
|
+
$$css: true
|
|
333
|
+
}
|
|
181
334
|
};
|
|
182
335
|
|
|
183
336
|
export { Arbitrary$1 as Arbitrary, useContext };
|
|
@@ -1,7 +1,223 @@
|
|
|
1
|
-
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.i1dajnne{border:none;outline:none;font:inherit;background:transparent;-webkit-align-self:stretch;-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;padding:0;width:100%;color:inherit;}
|
|
6
|
-
.b128wsn{border:none;outline:none;min-height:36px;border:1px solid var(--timvir-border-color);border-radius:2px;background:var(--timvir-secondary-background-color);color:var(--timvir-text-color);font:inherit;}.b128wsn:hover{border-color:var(--timvir-text-color);background:var(--timvir-sidebar-highlight-color);}.b128wsn:active{border-color:var(--timvir-text-color);background:var(--timvir-sidebar-highlight-color);}
|
|
1
|
+
@layer priority1 {
|
|
2
|
+
.timvir-s-1f9b50e {
|
|
3
|
+
--timvir-margin: var(--timvir-page-margin);
|
|
4
|
+
}
|
|
7
5
|
|
|
6
|
+
.timvir-s-1hz7z82 {
|
|
7
|
+
--timvir-page-margin: 16px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (width >= 48rem) {
|
|
11
|
+
.timvir-s-1i3za4p.timvir-s-1i3za4p {
|
|
12
|
+
--timvir-page-margin: 24px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@layer priority2 {
|
|
18
|
+
.timvir-s-ln7xf2 {
|
|
19
|
+
font: inherit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.timvir-s-1t4wa6b {
|
|
23
|
+
margin: 0 0 2rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.timvir-s-9t3ola {
|
|
27
|
+
margin: 1em 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.timvir-s-qtkp2c {
|
|
31
|
+
padding: 0 0 0 10px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.timvir-s-1717udv {
|
|
35
|
+
padding: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.timvir-s-1op5qub:after {
|
|
39
|
+
inset: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@layer priority3 {
|
|
44
|
+
.timvir-s-j7gikm {
|
|
45
|
+
border-color: var(--timvir-border-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.timvir-s-1cum3z5 {
|
|
49
|
+
border-radius: 2px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.timvir-s-1y0btm7 {
|
|
53
|
+
border-style: solid;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.timvir-s-c342km {
|
|
57
|
+
border-width: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.timvir-s-mkeg23 {
|
|
61
|
+
border-width: 1px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.timvir-s-htle6 {
|
|
65
|
+
grid-column: lc / rc;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.timvir-s-1ywaqmw {
|
|
69
|
+
grid-column: le / re;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.timvir-s-bldiei {
|
|
73
|
+
grid-column: lex / rex;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.timvir-s-d3ue5d {
|
|
77
|
+
grid-gap: 8px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.timvir-s-1a2a7pz {
|
|
81
|
+
outline: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.timvir-s-lzy7x8:after {
|
|
85
|
+
border-color: var(--timvir-border-color);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.timvir-s-18wp92t:hover:after, .timvir-s-rlfy00:focus-within:after {
|
|
89
|
+
border-color: var(--timvir-text-color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.timvir-s-1edtgf2:after {
|
|
93
|
+
border-radius: 2px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.timvir-s-1dzvx6z:after {
|
|
97
|
+
border-style: solid;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.timvir-s-hlrplc:after {
|
|
101
|
+
border-width: 1px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.timvir-s-49kzi4:hover, .timvir-s-13m658e:active {
|
|
105
|
+
border-color: var(--timvir-text-color);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@layer priority4 {
|
|
110
|
+
.timvir-s-6s0dn4 {
|
|
111
|
+
align-items: center;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.timvir-s-kh2ocl {
|
|
115
|
+
align-self: stretch;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.timvir-s-jbqb8w {
|
|
119
|
+
background-color: #0000;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.timvir-s-1d0dlzq {
|
|
123
|
+
background-color: var(--timvir-secondary-background-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.timvir-s-1heor9g {
|
|
127
|
+
color: inherit;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.timvir-s-vgvpxu {
|
|
131
|
+
color: var(--timvir-secondary-text-color);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.timvir-s-1cdhzux {
|
|
135
|
+
color: var(--timvir-text-color);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.timvir-s-78zum5 {
|
|
139
|
+
display: flex;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.timvir-s-rvj5dj {
|
|
143
|
+
display: grid;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.timvir-s-1rg5ohu {
|
|
147
|
+
display: inline-block;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.timvir-s-3xbxsf {
|
|
151
|
+
grid-auto-rows: min-content;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.timvir-s-12c0rpe {
|
|
155
|
+
grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.timvir-s-9flyx0 {
|
|
159
|
+
grid-template-columns: 1fr 100px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.timvir-s-1n2onr6 {
|
|
163
|
+
position: relative;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.timvir-s-1tcdsnd {
|
|
167
|
+
word-break: initial;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.timvir-s-5l10my:after {
|
|
171
|
+
content: "";
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.timvir-s-ieozyd:after {
|
|
175
|
+
display: block;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.timvir-s-1kx6eu5:after {
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.timvir-s-1x824oc:after {
|
|
183
|
+
position: absolute;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.timvir-s-1dc5b4e:hover, .timvir-s-1bx2y69:active {
|
|
187
|
+
background-color: var(--timvir-sidebar-highlight-color);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@media (width >= 72rem) {
|
|
191
|
+
.timvir-s-1mxrek7.timvir-s-1mxrek7 {
|
|
192
|
+
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];
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@media (width >= 48rem) {
|
|
197
|
+
.timvir-s-9q0i6z.timvir-s-9q0i6z {
|
|
198
|
+
grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@layer priority5 {
|
|
204
|
+
.timvir-s-1e56ztr {
|
|
205
|
+
margin-bottom: 8px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.timvir-s-15ku74s {
|
|
209
|
+
margin-right: 6px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.timvir-s-u0aao5 {
|
|
213
|
+
min-height: 36px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.timvir-s-euugli {
|
|
217
|
+
min-width: 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.timvir-s-h8yej3 {
|
|
221
|
+
width: 100%;
|
|
222
|
+
}
|
|
223
|
+
}
|
package/blocks/Code/Code.d.ts
CHANGED
|
@@ -14,12 +14,6 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
|
|
|
14
14
|
* @default "markup"
|
|
15
15
|
*/
|
|
16
16
|
language?: string;
|
|
17
|
-
/**
|
|
18
|
-
* When set, the code block spans the full width. Note that the text itself
|
|
19
|
-
* is still aligned with the main column. Use this when you expect the text
|
|
20
|
-
* to be wider than the center column.
|
|
21
|
-
*/
|
|
22
|
-
fullWidth?: boolean;
|
|
23
17
|
/**
|
|
24
18
|
* The numbering starts at 1, ie. `highlightedLines={[1, 2]}` will highlight
|
|
25
19
|
* the first two lines.
|
|
@@ -26,14 +26,3 @@ which are supported by [shiki](https://shiki.style/themes).
|
|
|
26
26
|
<Code language="javascript" caption="The Hitchhiker's Guide to the Galaxy">
|
|
27
27
|
{'const answer = 42;'}
|
|
28
28
|
</Code>
|
|
29
|
-
|
|
30
|
-
## Full-width
|
|
31
|
-
|
|
32
|
-
Full-width code blocks provide more space for the code. They are not constrained to the center column.
|
|
33
|
-
|
|
34
|
-
<Code language="javascript" fullWidth>
|
|
35
|
-
{`(defun csg-intersection-intersect-all (obj-a obj-b)
|
|
36
|
-
(lambda (ray)
|
|
37
|
-
(flet ((inside-p (obj) (lambda (d) (inside-p obj (ray-point ray d)))))
|
|
38
|
-
(merge 'fvector (remove-if-not (inside-p obj-b) (intersect-all obj-a ray)) (remove-if-not (inside-p obj-a) (intersect-all obj-b ray)) #'<))))`}
|
|
39
|
-
</Code>
|