timvir 0.2.43 → 0.2.44
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 +7 -0
- package/blocks/Cover/docs/index.mdx +0 -11
- package/blocks/Font/index.js +23 -3
- package/blocks/Message/index.js +55 -4
- package/blocks/Viewport/index.js +36 -7
- package/builtins/index.js +20 -3
- package/core/index.js +56 -7
- package/icons/AlertCircle.d.ts +3 -0
- package/icons/ChevronLeft.d.ts +3 -0
- package/icons/ChevronRight.d.ts +3 -0
- package/icons/ChevronsRight.d.ts +3 -0
- package/icons/Code.d.ts +3 -0
- package/icons/Codepen.d.ts +3 -0
- package/icons/Info.d.ts +3 -0
- package/icons/Link.d.ts +3 -0
- package/icons/Menu.d.ts +3 -0
- package/icons/XOctagon.d.ts +3 -0
- package/icons/alert-circle.svg +1 -0
- package/icons/chevron-left.svg +1 -0
- package/icons/chevron-right.svg +1 -0
- package/icons/chevrons-right.svg +1 -0
- package/icons/code.svg +1 -0
- package/icons/codepen.svg +1 -0
- package/icons/index.d.ts +10 -0
- package/icons/info.svg +1 -0
- package/icons/link.svg +1 -0
- package/icons/menu.svg +1 -0
- package/icons/x-octagon.svg +1 -0
- package/package.json +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# timvir
|
|
2
2
|
|
|
3
|
+
## 0.2.44
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **Fix Viewport caption placement** ([#3484](https://github.com/timvir/timvir/pull/3484)) - During the migration to StyleX the layout of the Viewport caption got broken. Now the caption is once again in its correct place.
|
|
8
|
+
- **Trim dependencies** ([#3497](https://github.com/timvir/timvir/pull/3497)) - Removed `downshift` (because unused) and vendored the few icons from `react-feathers`. These dependencies are either unmaintained, contain legacy code, or make Timvir depend on such through their transitive dependencies. These changes improve the security posture of the Timvir package.
|
|
9
|
+
|
|
3
10
|
## 0.2.43
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -7,14 +7,3 @@ import image from "../../../../../assets/daniel-leone-v7daTKlZzaw-unsplash.jpg";
|
|
|
7
7
|
# Cover
|
|
8
8
|
|
|
9
9
|
The Cover component is an image that is displayed full-width. Use it above the first h1 heading on the page.
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
Use the `importImage()` macro from the `"@zhif/macro"` package to load the image.
|
|
14
|
-
|
|
15
|
-
```jsx
|
|
16
|
-
import { Cover } from "timvir/blocks";
|
|
17
|
-
import { importImage } from "@zhif/macro";
|
|
18
|
-
|
|
19
|
-
<Cover {...importImage("path/to/image.jpg")} />;
|
|
20
|
-
```
|
package/blocks/Font/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useArticleComponents } from 'timvir/core';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import * as Icons from 'react-feather';
|
|
5
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
function cx(...args) {
|
|
@@ -174,6 +173,26 @@ function props(...styles) {
|
|
|
174
173
|
return result;
|
|
175
174
|
}
|
|
176
175
|
|
|
176
|
+
const SvgInfo = props => /*#__PURE__*/jsxs("svg", {
|
|
177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
178
|
+
width: 24,
|
|
179
|
+
height: 24,
|
|
180
|
+
fill: "none",
|
|
181
|
+
stroke: "currentColor",
|
|
182
|
+
strokeLinecap: "round",
|
|
183
|
+
strokeLinejoin: "round",
|
|
184
|
+
strokeWidth: 2,
|
|
185
|
+
viewBox: "0 0 24 24",
|
|
186
|
+
...props,
|
|
187
|
+
children: [/*#__PURE__*/jsx("circle", {
|
|
188
|
+
cx: 12,
|
|
189
|
+
cy: 12,
|
|
190
|
+
r: 10
|
|
191
|
+
}), /*#__PURE__*/jsx("path", {
|
|
192
|
+
d: "M12 16v-4M12 8h.01"
|
|
193
|
+
})]
|
|
194
|
+
});
|
|
195
|
+
|
|
177
196
|
const Root = "div";
|
|
178
197
|
function Font(props$1, ref) {
|
|
179
198
|
const components = useArticleComponents();
|
|
@@ -240,8 +259,9 @@ function Font(props$1, ref) {
|
|
|
240
259
|
}
|
|
241
260
|
}
|
|
242
261
|
},
|
|
243
|
-
children: /*#__PURE__*/jsx(
|
|
244
|
-
|
|
262
|
+
children: /*#__PURE__*/jsx(SvgInfo, {
|
|
263
|
+
width: "1.1em",
|
|
264
|
+
height: "1.1em",
|
|
245
265
|
className: "timvir-s-1n2onr6 timvir-s-s7f9wi"
|
|
246
266
|
})
|
|
247
267
|
})]
|
package/blocks/Message/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import * as Icons from 'react-feather';
|
|
3
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
3
|
|
|
5
4
|
var styleq = {};
|
|
@@ -153,6 +152,58 @@ function props(...styles) {
|
|
|
153
152
|
return result;
|
|
154
153
|
}
|
|
155
154
|
|
|
155
|
+
const SvgAlertCircle = props => /*#__PURE__*/jsxs("svg", {
|
|
156
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
157
|
+
width: 24,
|
|
158
|
+
height: 24,
|
|
159
|
+
fill: "none",
|
|
160
|
+
stroke: "currentColor",
|
|
161
|
+
strokeLinecap: "round",
|
|
162
|
+
strokeLinejoin: "round",
|
|
163
|
+
strokeWidth: 2,
|
|
164
|
+
viewBox: "0 0 24 24",
|
|
165
|
+
...props,
|
|
166
|
+
children: [/*#__PURE__*/jsx("circle", {
|
|
167
|
+
cx: 12,
|
|
168
|
+
cy: 12,
|
|
169
|
+
r: 10
|
|
170
|
+
}), /*#__PURE__*/jsx("path", {
|
|
171
|
+
d: "M12 8v4M12 16h.01"
|
|
172
|
+
})]
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
const SvgChevronsRight = props => /*#__PURE__*/jsx("svg", {
|
|
176
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
177
|
+
width: 24,
|
|
178
|
+
height: 24,
|
|
179
|
+
fill: "none",
|
|
180
|
+
stroke: "currentColor",
|
|
181
|
+
strokeLinecap: "round",
|
|
182
|
+
strokeLinejoin: "round",
|
|
183
|
+
strokeWidth: 2,
|
|
184
|
+
viewBox: "0 0 24 24",
|
|
185
|
+
...props,
|
|
186
|
+
children: /*#__PURE__*/jsx("path", {
|
|
187
|
+
d: "m13 17 5-5-5-5M6 17l5-5-5-5"
|
|
188
|
+
})
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
const SvgXOctagon = props => /*#__PURE__*/jsx("svg", {
|
|
192
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
193
|
+
width: 24,
|
|
194
|
+
height: 24,
|
|
195
|
+
fill: "none",
|
|
196
|
+
stroke: "currentColor",
|
|
197
|
+
strokeLinecap: "round",
|
|
198
|
+
strokeLinejoin: "round",
|
|
199
|
+
strokeWidth: 2,
|
|
200
|
+
viewBox: "0 0 24 24",
|
|
201
|
+
...props,
|
|
202
|
+
children: /*#__PURE__*/jsx("path", {
|
|
203
|
+
d: "M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86zM15 9l-6 6M9 9l6 6"
|
|
204
|
+
})
|
|
205
|
+
});
|
|
206
|
+
|
|
156
207
|
const layoutStyles = {
|
|
157
208
|
block: {
|
|
158
209
|
kBCFzs: "timvir-s-htle6",
|
|
@@ -173,13 +224,13 @@ function Message(props$1, ref) {
|
|
|
173
224
|
...props(layoutStyles.block, styles.root, variant && styles[variant]),
|
|
174
225
|
...rest,
|
|
175
226
|
children: [variant && {
|
|
176
|
-
info: /*#__PURE__*/jsx(
|
|
227
|
+
info: /*#__PURE__*/jsx(SvgChevronsRight, {
|
|
177
228
|
className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-1h1xus1"
|
|
178
229
|
}),
|
|
179
|
-
warning: /*#__PURE__*/jsx(
|
|
230
|
+
warning: /*#__PURE__*/jsx(SvgAlertCircle, {
|
|
180
231
|
className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-4u77bm"
|
|
181
232
|
}),
|
|
182
|
-
alert: /*#__PURE__*/jsx(
|
|
233
|
+
alert: /*#__PURE__*/jsx(SvgXOctagon, {
|
|
183
234
|
className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-1mz1spe"
|
|
184
235
|
})
|
|
185
236
|
}[variant], /*#__PURE__*/jsx("div", {
|
package/blocks/Viewport/index.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useArticleComponents, useBlock } from 'timvir/core';
|
|
4
4
|
import { useResizeObserverEntry, useResizeObserver } from 'timvir/hooks';
|
|
5
|
-
import { jsxs, Fragment
|
|
6
|
-
import * as Icons from 'react-feather';
|
|
5
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
6
|
import { Code } from 'timvir/blocks';
|
|
8
7
|
|
|
9
8
|
function cx(...args) {
|
|
@@ -181,16 +180,32 @@ const layoutStyles = {
|
|
|
181
180
|
}
|
|
182
181
|
};
|
|
183
182
|
|
|
184
|
-
|
|
183
|
+
const SvgCode = props => /*#__PURE__*/jsx("svg", {
|
|
184
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
185
|
+
width: 24,
|
|
186
|
+
height: 24,
|
|
187
|
+
fill: "none",
|
|
188
|
+
stroke: "currentColor",
|
|
189
|
+
strokeLinecap: "round",
|
|
190
|
+
strokeLinejoin: "round",
|
|
191
|
+
strokeWidth: 2,
|
|
192
|
+
viewBox: "0 0 24 24",
|
|
193
|
+
...props,
|
|
194
|
+
children: /*#__PURE__*/jsx("path", {
|
|
195
|
+
d: "m16 18 6-6-6-6M8 6l-6 6 6 6"
|
|
196
|
+
})
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
function Caption(props$1) {
|
|
185
200
|
const components = useArticleComponents();
|
|
186
201
|
const {
|
|
187
202
|
src,
|
|
188
203
|
code
|
|
189
|
-
} = props;
|
|
204
|
+
} = props$1;
|
|
190
205
|
const [codeRef, setCodeRef] = React.useState(null);
|
|
191
206
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
192
207
|
children: [/*#__PURE__*/jsxs("figcaption", {
|
|
193
|
-
|
|
208
|
+
...props(layoutStyles.block, styles$1.figcaption),
|
|
194
209
|
children: [/*#__PURE__*/jsxs("div", {
|
|
195
210
|
children: ["Source:", " ", /*#__PURE__*/jsx(components.a, {
|
|
196
211
|
href: src,
|
|
@@ -211,8 +226,9 @@ function Caption(props) {
|
|
|
211
226
|
}
|
|
212
227
|
}
|
|
213
228
|
},
|
|
214
|
-
children: /*#__PURE__*/jsx(
|
|
215
|
-
|
|
229
|
+
children: /*#__PURE__*/jsx(SvgCode, {
|
|
230
|
+
width: "1.6em",
|
|
231
|
+
height: "1.6em",
|
|
216
232
|
className: "timvir-s-1lliihq"
|
|
217
233
|
})
|
|
218
234
|
})]
|
|
@@ -230,6 +246,18 @@ function Caption(props) {
|
|
|
230
246
|
});
|
|
231
247
|
}
|
|
232
248
|
var Caption$1 = /*#__PURE__*/React.memo(Caption);
|
|
249
|
+
const styles$1 = {
|
|
250
|
+
figcaption: {
|
|
251
|
+
kGuDYH: "timvir-s-1dcheo9",
|
|
252
|
+
kLWn49: "timvir-s-jkpybl",
|
|
253
|
+
kMwMTN: "timvir-s-vgvpxu",
|
|
254
|
+
khDVqt: "timvir-s-uxw1ft",
|
|
255
|
+
k1xSpc: "timvir-s-78zum5",
|
|
256
|
+
kjj79g: "timvir-s-1qughib",
|
|
257
|
+
kGNEyG: "timvir-s-6s0dn4",
|
|
258
|
+
$$css: true
|
|
259
|
+
}
|
|
260
|
+
};
|
|
233
261
|
|
|
234
262
|
function Handle(props) {
|
|
235
263
|
const {
|
|
@@ -461,6 +489,7 @@ function Viewport(props$1, ref) {
|
|
|
461
489
|
code: code
|
|
462
490
|
}), /*#__PURE__*/jsx("div", {
|
|
463
491
|
style: {
|
|
492
|
+
gridColumn: "1 / -1",
|
|
464
493
|
height: (maxHeight ?? 0) - (height ?? 0),
|
|
465
494
|
transition: "height 0.16s"
|
|
466
495
|
}
|
package/builtins/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
3
|
|
|
5
4
|
var styleq = {};
|
|
6
5
|
var hasRequiredStyleq;
|
|
@@ -153,6 +152,24 @@ function props(...styles) {
|
|
|
153
152
|
return result;
|
|
154
153
|
}
|
|
155
154
|
|
|
155
|
+
const SvgLink = props => /*#__PURE__*/jsxs("svg", {
|
|
156
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
157
|
+
width: 24,
|
|
158
|
+
height: 24,
|
|
159
|
+
fill: "none",
|
|
160
|
+
stroke: "currentColor",
|
|
161
|
+
strokeLinecap: "round",
|
|
162
|
+
strokeLinejoin: "round",
|
|
163
|
+
strokeWidth: 2,
|
|
164
|
+
viewBox: "0 0 24 24",
|
|
165
|
+
...props,
|
|
166
|
+
children: [/*#__PURE__*/jsx("path", {
|
|
167
|
+
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"
|
|
168
|
+
}), /*#__PURE__*/jsx("path", {
|
|
169
|
+
d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"
|
|
170
|
+
})]
|
|
171
|
+
});
|
|
172
|
+
|
|
156
173
|
const layoutStyles = {
|
|
157
174
|
block: {
|
|
158
175
|
kBCFzs: "timvir-s-htle6",
|
|
@@ -181,7 +198,7 @@ function Heading(Component) {
|
|
|
181
198
|
children: /*#__PURE__*/jsxs("a", {
|
|
182
199
|
className: "timvir-s-1heor9g timvir-s-1hl2dhg timvir-s-bok0fy timvir-s-158d8ml timvir-s-1rb6emv timvir-s-1xi2g7t",
|
|
183
200
|
href: id && `#${id}`,
|
|
184
|
-
children: [children, /*#__PURE__*/jsx(
|
|
201
|
+
children: [children, /*#__PURE__*/jsx(SvgLink, {
|
|
185
202
|
className: "timvir-s-1rg5ohu timvir-s-16vho4v timvir-s-vgvpxu timvir-s-1pazyae timvir-s-1y6pbyt timvir-s-xymvpz timvir-s-2r93rw timvir-s-1i3gk9 timvir-s-o5ics5 timvir-s-6ah1hw"
|
|
186
203
|
})]
|
|
187
204
|
})
|
package/core/index.js
CHANGED
|
@@ -7,7 +7,6 @@ import * as builtins from 'timvir/builtins';
|
|
|
7
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
8
|
import { useHotkeys } from 'react-hotkeys-hook';
|
|
9
9
|
import { makeBus } from 'timvir/bus';
|
|
10
|
-
import * as Icons from 'react-feather';
|
|
11
10
|
import * as ReactDOM from 'react-dom';
|
|
12
11
|
import { defaultSearch } from 'timvir/search';
|
|
13
12
|
|
|
@@ -483,6 +482,54 @@ function Commands(props) {
|
|
|
483
482
|
return state.dialog?.reactPortal ?? null;
|
|
484
483
|
}
|
|
485
484
|
|
|
485
|
+
const SvgChevronLeft = props => /*#__PURE__*/jsx("svg", {
|
|
486
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
487
|
+
width: 24,
|
|
488
|
+
height: 24,
|
|
489
|
+
fill: "none",
|
|
490
|
+
stroke: "currentColor",
|
|
491
|
+
strokeLinecap: "round",
|
|
492
|
+
strokeLinejoin: "round",
|
|
493
|
+
strokeWidth: 2,
|
|
494
|
+
viewBox: "0 0 24 24",
|
|
495
|
+
...props,
|
|
496
|
+
children: /*#__PURE__*/jsx("path", {
|
|
497
|
+
d: "m15 18-6-6 6-6"
|
|
498
|
+
})
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
const SvgChevronRight = props => /*#__PURE__*/jsx("svg", {
|
|
502
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
503
|
+
width: 24,
|
|
504
|
+
height: 24,
|
|
505
|
+
fill: "none",
|
|
506
|
+
stroke: "currentColor",
|
|
507
|
+
strokeLinecap: "round",
|
|
508
|
+
strokeLinejoin: "round",
|
|
509
|
+
strokeWidth: 2,
|
|
510
|
+
viewBox: "0 0 24 24",
|
|
511
|
+
...props,
|
|
512
|
+
children: /*#__PURE__*/jsx("path", {
|
|
513
|
+
d: "m9 18 6-6-6-6"
|
|
514
|
+
})
|
|
515
|
+
});
|
|
516
|
+
|
|
517
|
+
const SvgMenu = props => /*#__PURE__*/jsx("svg", {
|
|
518
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
519
|
+
width: 24,
|
|
520
|
+
height: 24,
|
|
521
|
+
fill: "none",
|
|
522
|
+
stroke: "currentColor",
|
|
523
|
+
strokeLinecap: "round",
|
|
524
|
+
strokeLinejoin: "round",
|
|
525
|
+
strokeWidth: 2,
|
|
526
|
+
viewBox: "0 0 24 24",
|
|
527
|
+
...props,
|
|
528
|
+
children: /*#__PURE__*/jsx("path", {
|
|
529
|
+
d: "M3 12h18M3 6h18M3 18h18"
|
|
530
|
+
})
|
|
531
|
+
});
|
|
532
|
+
|
|
486
533
|
const Root$1 = "div";
|
|
487
534
|
function NavigationFooter(props) {
|
|
488
535
|
const {
|
|
@@ -501,7 +548,7 @@ function NavigationFooter(props) {
|
|
|
501
548
|
className: "timvir-s-h8yej3 timvir-s-78zum5 timvir-s-1jnr06f timvir-s-ur7f20 timvir-s-mkeg23 timvir-s-1y0btm7 timvir-s-j7gikm timvir-s-1tamke2 timvir-s-1heor9g timvir-s-1hl2dhg timvir-s-euugli timvir-s-1gtqa1q timvir-s-dt5ytf timvir-s-1cy8zhl timvir-s-13a6bvl timvir-s-dpxx8g",
|
|
502
549
|
children: [/*#__PURE__*/jsxs("div", {
|
|
503
550
|
className: "timvir-s-vgvpxu timvir-s-78zum5 timvir-s-6s0dn4 timvir-s-e25avd",
|
|
504
|
-
children: [/*#__PURE__*/jsx(
|
|
551
|
+
children: [/*#__PURE__*/jsx(SvgChevronLeft, {
|
|
505
552
|
className: "timvir-s-1q3kd3q timvir-s-1n3ixbd"
|
|
506
553
|
}), " Previous"]
|
|
507
554
|
}), /*#__PURE__*/jsx("div", {
|
|
@@ -513,7 +560,7 @@ function NavigationFooter(props) {
|
|
|
513
560
|
className: "timvir-s-h8yej3 timvir-s-78zum5 timvir-s-1jnr06f timvir-s-ur7f20 timvir-s-mkeg23 timvir-s-1y0btm7 timvir-s-j7gikm timvir-s-1tamke2 timvir-s-1heor9g timvir-s-1hl2dhg timvir-s-euugli timvir-s-1gtqa1q timvir-s-dt5ytf timvir-s-uk3077 timvir-s-1nhvcw1 timvir-s-1hr2gdg",
|
|
514
561
|
children: [/*#__PURE__*/jsxs("div", {
|
|
515
562
|
className: "timvir-s-vgvpxu timvir-s-78zum5 timvir-s-6s0dn4 timvir-s-e25avd",
|
|
516
|
-
children: ["Next ", /*#__PURE__*/jsx(
|
|
563
|
+
children: ["Next ", /*#__PURE__*/jsx(SvgChevronRight, {
|
|
517
564
|
className: "timvir-s-1q3kd3q timvir-s-1n3ixbd"
|
|
518
565
|
})]
|
|
519
566
|
}), /*#__PURE__*/jsx("div", {
|
|
@@ -545,10 +592,11 @@ function SidebarItem(props) {
|
|
|
545
592
|
...iconStylexProps.style,
|
|
546
593
|
transform: active ? "rotate(90deg)" : "rotate(0deg)"
|
|
547
594
|
};
|
|
548
|
-
const icon = children.length === 0 ? null : /*#__PURE__*/jsx(
|
|
595
|
+
const icon = children.length === 0 ? null : /*#__PURE__*/jsx(SvgChevronRight, {
|
|
549
596
|
className: iconStylexProps.className,
|
|
550
597
|
style: iconStyle,
|
|
551
|
-
|
|
598
|
+
width: 16,
|
|
599
|
+
height: 16
|
|
552
600
|
});
|
|
553
601
|
const isActive = location.asPath.replace(/#.*$/, "") === path;
|
|
554
602
|
const linkStylexProps = {
|
|
@@ -704,8 +752,9 @@ function Sidebar(props) {
|
|
|
704
752
|
}
|
|
705
753
|
}) : null, /*#__PURE__*/jsx("span", {
|
|
706
754
|
children: node?.label ?? "Menu"
|
|
707
|
-
}), /*#__PURE__*/jsx(
|
|
708
|
-
|
|
755
|
+
}), /*#__PURE__*/jsx(SvgMenu, {
|
|
756
|
+
width: 16,
|
|
757
|
+
height: 16,
|
|
709
758
|
className: "timvir-s-8x9d4c"
|
|
710
759
|
})]
|
|
711
760
|
}), /*#__PURE__*/jsx("div", {
|
package/icons/Code.d.ts
ADDED
package/icons/Info.d.ts
ADDED
package/icons/Link.d.ts
ADDED
package/icons/Menu.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="13 17 18 12 13 7"/><polyline points="6 17 11 12 6 7"/></svg>
|
package/icons/code.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"/><line x1="12" y1="22" x2="12" y2="15.5"/><polyline points="22 8.5 12 15.5 2 8.5"/><polyline points="2 15.5 12 8.5 22 15.5"/><line x1="12" y1="2" x2="12" y2="8.5"/></svg>
|
package/icons/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as AlertCircle } from "./AlertCircle";
|
|
2
|
+
export { default as ChevronLeft } from "./ChevronLeft";
|
|
3
|
+
export { default as ChevronRight } from "./ChevronRight";
|
|
4
|
+
export { default as ChevronsRight } from "./ChevronsRight";
|
|
5
|
+
export { default as Code } from "./Code";
|
|
6
|
+
export { default as Codepen } from "./Codepen";
|
|
7
|
+
export { default as Info } from "./Info";
|
|
8
|
+
export { default as Link } from "./Link";
|
|
9
|
+
export { default as Menu } from "./Menu";
|
|
10
|
+
export { default as XOctagon } from "./XOctagon";
|
package/icons/info.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>
|
package/icons/link.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>
|
package/icons/menu.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>
|
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.44",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -17,9 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"bytestring": "^1",
|
|
20
|
-
"downshift": "^7 || ^8 || ^9",
|
|
21
20
|
"shiki": "^1 || ^2 || ^3",
|
|
22
|
-
"react-feather": "^2",
|
|
23
21
|
"wonka": "^6"
|
|
24
22
|
},
|
|
25
23
|
"peerDependencies": {
|