timvir 0.2.50 → 0.2.52
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 +12 -0
- package/LICENSE +21 -0
- package/blocks/Arbitrary/Arbitrary.d.ts +2 -2
- package/blocks/Arbitrary/docs/index.mdx +57 -10
- package/blocks/Arbitrary/index.d.ts +1 -1
- package/blocks/Arbitrary/index.js +16 -71
- package/blocks/Arbitrary/styles.css +11 -7
- package/blocks/Code/Code.d.ts +3 -3
- package/blocks/Code/docs/index.mdx +1 -1
- package/blocks/Code/index.d.ts +1 -1
- package/blocks/Code/index.js +2 -4
- package/blocks/Code/styles.css +8 -8
- package/blocks/ColorBar/ColorBar.d.ts +3 -3
- package/blocks/ColorBar/docs/index.mdx +1 -1
- package/blocks/ColorBar/index.d.ts +1 -1
- package/blocks/ColorBar/index.js +2 -4
- package/blocks/ColorBar/styles.css +6 -6
- package/blocks/ColorBook/ColorBook.d.ts +4 -4
- package/blocks/ColorBook/index.d.ts +1 -1
- package/blocks/ColorBook/index.js +3 -5
- package/blocks/ColorBook/styles.css +18 -18
- package/blocks/Cover/Cover.d.ts +4 -4
- package/blocks/Cover/index.d.ts +1 -1
- package/blocks/Cover/index.js +2 -5
- package/blocks/Cover/styles.css +6 -6
- package/blocks/Exhibit/Exhibit.d.ts +4 -4
- package/blocks/Exhibit/docs/index.mdx +11 -8
- package/blocks/Exhibit/index.d.ts +1 -1
- package/blocks/Exhibit/index.js +2 -5
- package/blocks/Exhibit/styles.css +7 -7
- package/blocks/Font/Font.d.ts +3 -3
- package/blocks/Font/index.d.ts +1 -1
- package/blocks/Font/index.js +2 -4
- package/blocks/Font/styles.css +7 -6
- package/blocks/Grid/Grid.d.ts +2 -2
- package/blocks/Grid/docs/index.mdx +1 -1
- package/blocks/Grid/index.d.ts +1 -1
- package/blocks/Grid/index.js +2 -4
- package/blocks/Grid/styles.css +6 -6
- package/blocks/Icon/Icon.d.ts +3 -3
- package/blocks/Icon/index.d.ts +1 -1
- package/blocks/Icon/index.js +2 -5
- package/blocks/Icon/internal/Canvas.d.ts +2 -2
- package/blocks/Icon/internal/index.d.ts +1 -1
- package/blocks/Icon/styles.css +1 -0
- package/blocks/Message/Message.d.ts +3 -3
- package/blocks/Message/docs/index.mdx +1 -1
- package/blocks/Message/index.d.ts +1 -1
- package/blocks/Message/index.js +2 -4
- package/blocks/Message/styles.css +6 -6
- package/blocks/Swatch/Swatch.d.ts +3 -3
- package/blocks/Swatch/docs/index.mdx +1 -2
- package/blocks/Swatch/index.d.ts +1 -1
- package/blocks/Swatch/index.js +2 -4
- package/blocks/Swatch/styles.css +6 -6
- package/blocks/Viewport/Viewport.d.ts +3 -3
- package/blocks/Viewport/docs/index.mdx +5 -8
- package/blocks/Viewport/index.d.ts +1 -1
- package/blocks/Viewport/index.js +6 -10
- package/blocks/Viewport/internal/Caption.d.ts +2 -4
- package/blocks/Viewport/internal/Handle.d.ts +3 -4
- package/blocks/Viewport/internal/Ruler.d.ts +2 -2
- package/blocks/Viewport/internal/index.d.ts +3 -3
- package/blocks/Viewport/styles.css +7 -7
- package/blocks/WebLink/WebLink.d.ts +3 -3
- package/blocks/WebLink/docs/index.mdx +3 -1
- package/blocks/WebLink/index.d.ts +1 -1
- package/blocks/WebLink/index.js +2 -4
- package/blocks/WebLink/styles.css +6 -6
- package/blocks/styles.css +95 -89
- package/builtins/index.js +1 -1
- package/builtins/styles.css +11 -11
- package/context/index.d.ts +1 -1
- package/context/index.js +1 -1
- package/core/components/Footer/Footer.d.ts +4 -4
- package/core/components/Page/Page.d.ts +2 -2
- package/core/index.js +13 -17
- package/core/styles.css +13 -14
- package/package.json +5 -5
- package/search/Search/Search.d.ts +4 -4
- package/search/index.js +2 -5
- package/styles.css +119 -114
package/core/index.js
CHANGED
|
@@ -10,17 +10,16 @@ import * as ReactDOM from 'react-dom';
|
|
|
10
10
|
import { defaultSearch } from 'timvir/search';
|
|
11
11
|
|
|
12
12
|
const Root$3 = "footer";
|
|
13
|
-
function Footer(props
|
|
13
|
+
function Footer(props) {
|
|
14
14
|
const {
|
|
15
15
|
links,
|
|
16
16
|
...rest
|
|
17
17
|
} = props;
|
|
18
18
|
return /*#__PURE__*/jsxs(Root$3, {
|
|
19
|
-
ref: ref,
|
|
20
19
|
...rest,
|
|
21
20
|
className: "timvir-s-v0thzw timvir-s-rvj5dj timvir-s-kcw01v timvir-s-qr9vqb",
|
|
22
21
|
children: [links && /*#__PURE__*/jsx("div", {
|
|
23
|
-
className: "timvir-s-rvj5dj timvir-s-1hz7z82 timvir-s-1f9b50e timvir-s-3xbxsf timvir-s-
|
|
22
|
+
className: "timvir-s-rvj5dj timvir-s-1hz7z82 timvir-s-1f9b50e timvir-s-3xbxsf timvir-s-1u7e2r6 timvir-s-1i3za4p timvir-s-1s3i72i timvir-s-5diife",
|
|
24
23
|
children: /*#__PURE__*/jsx("div", {
|
|
25
24
|
className: "timvir-s-htle6 timvir-s-euugli timvir-s-rvj5dj timvir-s-k629hk timvir-s-1rzw5jd",
|
|
26
25
|
children: links.map(({
|
|
@@ -43,19 +42,18 @@ function Footer(props, ref) {
|
|
|
43
42
|
}, i))
|
|
44
43
|
})
|
|
45
44
|
}), /*#__PURE__*/jsx("div", {
|
|
46
|
-
className: "timvir-s-rvj5dj timvir-s-1hz7z82 timvir-s-1f9b50e timvir-s-3xbxsf timvir-s-
|
|
45
|
+
className: "timvir-s-rvj5dj timvir-s-1hz7z82 timvir-s-1f9b50e timvir-s-3xbxsf timvir-s-1u7e2r6 timvir-s-1i3za4p timvir-s-1s3i72i timvir-s-5diife timvir-s-vgvpxu",
|
|
47
46
|
children: /*#__PURE__*/jsxs("div", {
|
|
48
47
|
className: "timvir-s-htle6 timvir-s-euugli",
|
|
49
48
|
children: ["Built with", " ", /*#__PURE__*/jsx("a", {
|
|
50
49
|
href: "https://timvir.dev",
|
|
51
|
-
className: "timvir-s-1heor9g timvir-s-1hl2dhg timvir-s-
|
|
50
|
+
className: "timvir-s-1heor9g timvir-s-1hl2dhg timvir-s-11p4203 timvir-s-1j43nte timvir-s-odwsf6 timvir-s-1w3jsh0 timvir-s-lan1bs",
|
|
52
51
|
children: "Timvir"
|
|
53
52
|
})]
|
|
54
53
|
})
|
|
55
54
|
})]
|
|
56
55
|
});
|
|
57
56
|
}
|
|
58
|
-
var Footer_default = /*#__PURE__*/React.forwardRef(Footer);
|
|
59
57
|
|
|
60
58
|
var styleq = {};
|
|
61
59
|
var hasRequiredStyleq;
|
|
@@ -214,10 +212,10 @@ const layoutStyles = {
|
|
|
214
212
|
"--timvir-page-margin": "timvir-s-1hz7z82",
|
|
215
213
|
"--timvir-margin": "timvir-s-1f9b50e",
|
|
216
214
|
kJBjZk: "timvir-s-3xbxsf",
|
|
217
|
-
kumcoG: "timvir-s-
|
|
215
|
+
kumcoG: "timvir-s-1u7e2r6",
|
|
218
216
|
kjffAg: "timvir-s-1i3za4p",
|
|
219
|
-
kymLvw: "timvir-s-
|
|
220
|
-
kw3IWD: "timvir-s-
|
|
217
|
+
kymLvw: "timvir-s-1s3i72i",
|
|
218
|
+
kw3IWD: "timvir-s-5diife",
|
|
221
219
|
$$css: true
|
|
222
220
|
},
|
|
223
221
|
block: {
|
|
@@ -327,7 +325,7 @@ function Dialog(props) {
|
|
|
327
325
|
})();
|
|
328
326
|
}, [toc, state.query]);
|
|
329
327
|
return /*#__PURE__*/jsxs("div", {
|
|
330
|
-
className: "timvir-s-1n2onr6 timvir-s-78zum5 timvir-s-dt5ytf timvir-s-s83m0k timvir-s-1iyjqo2 timvir-s-13qp9f6 timvir-s-1so62im timvir-s-1jpgh95 timvir-s-1c4omy1 timvir-s-ur7f20 timvir-s-
|
|
328
|
+
className: "timvir-s-1n2onr6 timvir-s-78zum5 timvir-s-dt5ytf timvir-s-s83m0k timvir-s-1iyjqo2 timvir-s-13qp9f6 timvir-s-1so62im timvir-s-1jpgh95 timvir-s-1c4omy1 timvir-s-ur7f20 timvir-s-17isqgs timvir-s-11gisft timvir-s-vc674v timvir-s-b3r6kr timvir-s-hkombj",
|
|
331
329
|
style: state.style,
|
|
332
330
|
...rest,
|
|
333
331
|
children: [/*#__PURE__*/jsx("div", {
|
|
@@ -336,7 +334,7 @@ function Dialog(props) {
|
|
|
336
334
|
}), /*#__PURE__*/jsx("div", {
|
|
337
335
|
className: "timvir-s-1wvxhgs timvir-s-rvj5dj timvir-s-1y6fwsi timvir-s-6s0dn4 timvir-s-1n2onr6 timvir-s-2lah0s timvir-s-1x0gksc",
|
|
338
336
|
children: /*#__PURE__*/jsx("input", {
|
|
339
|
-
className: "timvir-s-1qhigcl timvir-s-
|
|
337
|
+
className: "timvir-s-1qhigcl timvir-s-18p8pu3 timvir-s-1ghz6dp timvir-s-c342km timvir-s-jyslct timvir-s-1qlqyl8 timvir-s-1x0gksc timvir-s-jbqb8w timvir-s-vc674v timvir-s-1tyz1jm timvir-s-1a2a7pz timvir-s-h8yej3",
|
|
340
338
|
autoFocus: true,
|
|
341
339
|
placeholder: "Type a command or search\u2026",
|
|
342
340
|
value: state.query,
|
|
@@ -520,7 +518,7 @@ function NavigationFooter(props) {
|
|
|
520
518
|
} = props;
|
|
521
519
|
return /*#__PURE__*/jsx(Root$1, {
|
|
522
520
|
...rest,
|
|
523
|
-
className: "timvir-s-1dvi5bl timvir-s-rvj5dj timvir-s-3xbxsf timvir-s-
|
|
521
|
+
className: "timvir-s-1dvi5bl timvir-s-rvj5dj timvir-s-3xbxsf timvir-s-1u7e2r6 timvir-s-1s3i72i timvir-s-5diife",
|
|
524
522
|
children: /*#__PURE__*/jsxs("div", {
|
|
525
523
|
className: "timvir-s-htle6 timvir-s-78zum5 timvir-s-3ieub6 timvir-s-8fetqu timvir-s-kpwil5 timvir-s-1evy7pa timvir-s-1k046mz",
|
|
526
524
|
children: [prev && /*#__PURE__*/jsxs(Link, {
|
|
@@ -744,7 +742,7 @@ function Sidebar(props$1) {
|
|
|
744
742
|
}
|
|
745
743
|
}[!!isMenuOpen << 0],
|
|
746
744
|
children: /*#__PURE__*/jsx("div", {
|
|
747
|
-
className: "timvir-s-1bd1j73 timvir-s-1odjw0f timvir-s-1iyjqo2 timvir-s-xqldzo timvir-s-rz96y6 timvir-s-
|
|
745
|
+
className: "timvir-s-1bd1j73 timvir-s-1odjw0f timvir-s-1iyjqo2 timvir-s-xqldzo timvir-s-rz96y6 timvir-s-sgruip",
|
|
748
746
|
children: /*#__PURE__*/jsx("div", {
|
|
749
747
|
className: "timvir-s-158hnoc timvir-s-1ator1a",
|
|
750
748
|
onClick: () => {
|
|
@@ -795,7 +793,7 @@ function Search(props) {
|
|
|
795
793
|
}
|
|
796
794
|
|
|
797
795
|
const Root = "div";
|
|
798
|
-
function Page(props$1
|
|
796
|
+
function Page(props$1) {
|
|
799
797
|
const {
|
|
800
798
|
location,
|
|
801
799
|
toc,
|
|
@@ -861,7 +859,6 @@ function Page(props$1, ref) {
|
|
|
861
859
|
return /*#__PURE__*/jsxs(Provider, {
|
|
862
860
|
value: context,
|
|
863
861
|
children: [/*#__PURE__*/jsxs(Root, {
|
|
864
|
-
ref: ref,
|
|
865
862
|
...rest,
|
|
866
863
|
className: "timvir-s-g6iff7 timvir-s-1hz7z82 timvir-s-rvj5dj timvir-s-c0s83b timvir-s-1i3za4p timvir-s-oxwh6b timvir-s-1w3eerp",
|
|
867
864
|
children: [/*#__PURE__*/jsx(Sidebar, {
|
|
@@ -939,7 +936,6 @@ function Page(props$1, ref) {
|
|
|
939
936
|
})]
|
|
940
937
|
});
|
|
941
938
|
}
|
|
942
|
-
var Page_default = /*#__PURE__*/React.forwardRef(Page);
|
|
943
939
|
const styles = {
|
|
944
940
|
sidebar: {
|
|
945
941
|
kJuA4N: "timvir-s-1nkj2r4",
|
|
@@ -1063,4 +1059,4 @@ function useArticleComponents() {
|
|
|
1063
1059
|
};
|
|
1064
1060
|
}
|
|
1065
1061
|
|
|
1066
|
-
export {
|
|
1062
|
+
export { Footer, Page, extendedWidth, fullWidth, grid, layoutStyles, noLayout, useArticleComponents, useBlock, useMailbox };
|
package/core/styles.css
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@layer priority2 {
|
|
18
|
-
.timvir-s-
|
|
18
|
+
.timvir-s-18p8pu3 {
|
|
19
19
|
grid-area: 1 / 1;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.timvir-s-158hnoc {
|
|
198
|
-
padding-inline: calc(var(--timvir-page-margin)
|
|
198
|
+
padding-inline: calc(var(--timvir-page-margin) - 8px);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.timvir-s-rz96y6 {
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
background-color: var(--timvir-sidebar-highlight-color);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
.timvir-s-
|
|
305
|
+
.timvir-s-11p4203 {
|
|
306
306
|
background-image: linear-gradient(#0000, #0000 5px, #383838 5px, #383838);
|
|
307
307
|
}
|
|
308
308
|
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
background-size: 100% 6px;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
.timvir-s-
|
|
317
|
+
.timvir-s-17isqgs {
|
|
318
318
|
box-shadow: 0 4px 12px #0003;
|
|
319
319
|
}
|
|
320
320
|
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
.timvir-s-dvd4st {
|
|
414
|
-
font-feature-settings: "liga",
|
|
414
|
+
font-feature-settings: "liga","kern";
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
.timvir-s-boafo0 {
|
|
@@ -462,8 +462,8 @@
|
|
|
462
462
|
grid-auto-rows: min-content;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
.timvir-s-
|
|
466
|
-
grid-template-columns: [le]
|
|
465
|
+
.timvir-s-1u7e2r6 {
|
|
466
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex lc]1fr[rc rex]var(--timvir-page-margin)[re];
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
.timvir-s-1y6fwsi {
|
|
@@ -506,8 +506,7 @@
|
|
|
506
506
|
line-height: 25px;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
.timvir-s-
|
|
510
|
-
-webkit-mask-image: linear-gradient(#0000 0%, #0003 12px, #000 24px calc(100% - 24px), #0003 calc(100% - 12px), #0000 100%);
|
|
509
|
+
.timvir-s-sgruip {
|
|
511
510
|
mask-image: linear-gradient(#0000 0%, #0003 12px, #000 24px calc(100% - 24px), #0003 calc(100% - 12px), #0000 100%);
|
|
512
511
|
}
|
|
513
512
|
|
|
@@ -583,7 +582,7 @@
|
|
|
583
582
|
background-color: var(--timvir-sidebar-highlight-color);
|
|
584
583
|
}
|
|
585
584
|
|
|
586
|
-
.timvir-s-
|
|
585
|
+
.timvir-s-lan1bs:hover {
|
|
587
586
|
background-image: linear-gradient(#0000, #0000 3px, #2bbc8a 3px, #2bbc8a);
|
|
588
587
|
}
|
|
589
588
|
|
|
@@ -626,14 +625,14 @@
|
|
|
626
625
|
}
|
|
627
626
|
|
|
628
627
|
@media (width >= 72rem) {
|
|
629
|
-
.timvir-s-
|
|
630
|
-
grid-template-columns: [le]
|
|
628
|
+
.timvir-s-5diife.timvir-s-5diife {
|
|
629
|
+
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];
|
|
631
630
|
}
|
|
632
631
|
}
|
|
633
632
|
|
|
634
633
|
@media (width >= 48rem) {
|
|
635
|
-
.timvir-s-
|
|
636
|
-
grid-template-columns: [le]
|
|
634
|
+
.timvir-s-1s3i72i.timvir-s-1s3i72i {
|
|
635
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex]1fr[lc]minmax(0,48rem)[rc]1fr[rex]var(--timvir-page-margin)[re];
|
|
637
636
|
}
|
|
638
637
|
|
|
639
638
|
.timvir-s-1b3g1kt.timvir-s-1b3g1kt {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "timvir",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.52",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"bytestring": "^1",
|
|
44
|
-
"shiki": "^1 || ^2 || ^3",
|
|
44
|
+
"shiki": "^1 || ^2 || ^3 || ^4",
|
|
45
45
|
"wonka": "^6"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"react": "^
|
|
49
|
-
"react-dom": "^
|
|
48
|
+
"react": "^19",
|
|
49
|
+
"react-dom": "^19"
|
|
50
50
|
},
|
|
51
51
|
"repository": {
|
|
52
52
|
"type": "git",
|
|
53
53
|
"url": "git+https://github.com/timvir/timvir.git",
|
|
54
54
|
"directory": "pkg/timvir"
|
|
55
55
|
}
|
|
56
|
-
}
|
|
56
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
import type { Node } from "timvir/core";
|
|
3
|
-
interface Props extends React.
|
|
3
|
+
interface Props extends React.ComponentPropsWithRef<"div"> {
|
|
4
4
|
open?: boolean;
|
|
5
5
|
onClose?: (ev: React.SyntheticEvent<HTMLElement>) => void;
|
|
6
6
|
q: (query: string) => Promise<{
|
|
@@ -14,8 +14,8 @@ interface Props extends React.ComponentPropsWithoutRef<"div"> {
|
|
|
14
14
|
}>;
|
|
15
15
|
}>;
|
|
16
16
|
}
|
|
17
|
-
declare
|
|
18
|
-
export default
|
|
17
|
+
declare function Search(_props: Props): null;
|
|
18
|
+
export default Search;
|
|
19
19
|
export declare function defaultSearch(toc: readonly Node[]): {
|
|
20
20
|
q: (query: string) => Promise<{
|
|
21
21
|
totalCount: number;
|
package/search/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function Search(_props, _ref) {
|
|
1
|
+
function Search(_props) {
|
|
4
2
|
return null;
|
|
5
3
|
}
|
|
6
|
-
var Search_default = /*#__PURE__*/React.forwardRef(Search);
|
|
7
4
|
function defaultSearch(toc) {
|
|
8
5
|
return {
|
|
9
6
|
q: async query => {
|
|
@@ -41,4 +38,4 @@ function flatten(n) {
|
|
|
41
38
|
return ret;
|
|
42
39
|
}
|
|
43
40
|
|
|
44
|
-
export {
|
|
41
|
+
export { Search, defaultSearch };
|