timvir 0.2.54 → 0.2.56
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 +9 -0
- package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
- package/blocks/Arbitrary/index.js +14 -14
- package/blocks/Arbitrary/samples/basic.d.ts +1 -1
- package/blocks/Code/Code.d.ts +1 -1
- package/blocks/Code/index.js +6 -6
- package/blocks/Code/samples/basic.d.ts +1 -1
- package/blocks/Code/samples/toggle.d.ts +2 -1
- package/blocks/ColorBar/ColorBar.d.ts +1 -1
- package/blocks/ColorBar/index.js +12 -12
- package/blocks/ColorBar/samples/basic.d.ts +1 -1
- package/blocks/ColorBook/ColorBook.d.ts +1 -1
- package/blocks/ColorBook/index.js +10 -10
- package/blocks/ColorBook/samples/basic.d.ts +2 -1
- package/blocks/Cover/Cover.d.ts +1 -1
- package/blocks/Cover/index.js +8 -8
- package/blocks/Cover/samples/basic.d.ts +1 -1
- package/blocks/Exhibit/Exhibit.d.ts +1 -1
- package/blocks/Exhibit/index.js +8 -6
- package/blocks/Exhibit/samples/basic.d.ts +1 -1
- package/blocks/Exhibit/samples/bleed.d.ts +1 -1
- package/blocks/Exhibit/samples/theme.d.ts +1 -1
- package/blocks/Exhibit/styles.css +8 -0
- package/blocks/Font/Font.d.ts +1 -1
- package/blocks/Font/index.js +25 -25
- package/blocks/Font/samples/basic.d.ts +1 -1
- package/blocks/Font/samples/timvir/body1.d.ts +1 -1
- package/blocks/Font/samples/timvir/caption.d.ts +1 -1
- package/blocks/Font/samples/timvir/h1.d.ts +1 -1
- package/blocks/Font/samples/timvir/h2.d.ts +1 -1
- package/blocks/Font/samples/timvir/h3.d.ts +1 -1
- package/blocks/Font/samples/timvir/h4.d.ts +1 -1
- package/blocks/Grid/Grid.d.ts +1 -1
- package/blocks/Grid/index.js +3 -3
- package/blocks/Grid/samples/basic.d.ts +1 -1
- package/blocks/Icon/Icon.d.ts +1 -1
- package/blocks/Icon/index.js +30 -30
- package/blocks/Icon/internal/Canvas.d.ts +1 -1
- package/blocks/Icon/samples/basic.d.ts +1 -1
- package/blocks/Message/Message.d.ts +1 -1
- package/blocks/Message/index.js +24 -24
- package/blocks/Message/samples/basic.d.ts +1 -1
- package/blocks/Swatch/Swatch.d.ts +1 -1
- package/blocks/Swatch/index.js +11 -11
- package/blocks/Swatch/samples/basic.d.ts +1 -1
- package/blocks/Viewport/Viewport.d.ts +1 -1
- package/blocks/Viewport/index.js +56 -56
- package/blocks/Viewport/internal/Caption.d.ts +2 -1
- package/blocks/Viewport/internal/Handle.d.ts +1 -1
- package/blocks/Viewport/internal/Ruler.d.ts +1 -1
- package/blocks/Viewport/samples/basic.d.ts +1 -1
- package/blocks/WebLink/WebLink.d.ts +1 -1
- package/blocks/WebLink/docs/index.mdx +2 -3
- package/blocks/WebLink/index.js +22 -17
- package/blocks/WebLink/samples/basic.d.ts +1 -1
- package/blocks/styles.css +8 -0
- package/builtins/index.js +49 -49
- package/builtins/styles.css +2 -2
- package/core/components/Commands/Commands.d.ts +2 -2
- package/core/components/Commands/index.d.ts +1 -1
- package/core/components/Commands/internal/Action.d.ts +2 -2
- package/core/components/Commands/internal/Dialog.d.ts +3 -2
- package/core/components/Commands/internal/index.d.ts +1 -1
- package/core/components/Footer/Footer.d.ts +2 -2
- package/core/components/Footer/index.d.ts +1 -1
- package/core/components/Footer/samples/basic.d.ts +1 -1
- package/core/components/NavigationFooter/NavigationFooter.d.ts +2 -2
- package/core/components/NavigationFooter/index.d.ts +1 -1
- package/core/components/NavigationFooter/samples/basic.d.ts +1 -1
- package/core/components/Page/Page.d.ts +2 -2
- package/core/components/Page/index.d.ts +1 -1
- package/core/components/Page/internal/Section.d.ts +3 -2
- package/core/components/Page/internal/Sidebar.d.ts +2 -2
- package/core/components/Page/internal/SidebarItem.d.ts +3 -2
- package/core/components/Page/internal/index.d.ts +1 -1
- package/core/components/Page/samples/basic.d.ts +1 -1
- package/core/components/Page/samples/layout.d.ts +1 -1
- package/core/index.js +180 -180
- package/core/styles.css +2 -2
- package/hooks/index.js +3 -1
- package/icons/AlertCircle.d.ts +1 -1
- package/icons/ChevronLeft.d.ts +1 -1
- package/icons/ChevronRight.d.ts +1 -1
- package/icons/ChevronsRight.d.ts +1 -1
- package/icons/Code.d.ts +1 -1
- package/icons/Codepen.d.ts +1 -1
- package/icons/Info.d.ts +1 -1
- package/icons/Link.d.ts +1 -1
- package/icons/Menu.d.ts +1 -1
- package/icons/XOctagon.d.ts +1 -1
- package/package.json +3 -3
- package/search/Search/Search.d.ts +2 -2
- package/search/Search/index.d.ts +1 -1
- package/search/Search/samples/basic.d.ts +1 -1
- package/styles.css +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# timvir
|
|
2
2
|
|
|
3
|
+
## 0.2.56
|
|
4
|
+
|
|
5
|
+
## 0.2.55
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- **Relax peer dependency version requirement** ([#3894](https://github.com/timvir/timvir/pull/3894)) - A recent change bumped peer dependency requirement for react from ^19 to ^19.2.7. Relax the requirement back to ^19, timvir does not depend on any specific feature added in 19.2.7.
|
|
10
|
+
- **Override text color when forcing light or dark theme** ([#3895](https://github.com/timvir/timvir/pull/3895)) - Forcing a theme now sets both the background image (checkered background) and also text color. This ensures that elements that rely on currentColor remain readable.
|
|
11
|
+
|
|
3
12
|
## 0.2.54
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -7,5 +7,5 @@ declare const Root = "div";
|
|
|
7
7
|
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
8
8
|
ExhibitProps?: React.ComponentPropsWithRef<typeof Exhibit>;
|
|
9
9
|
}
|
|
10
|
-
export declare function Arbitrary(props: Props):
|
|
10
|
+
export declare function Arbitrary(props: Props): React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -3,7 +3,7 @@ import * as base58 from 'bytestring/base58';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { Exhibit } from 'timvir/blocks';
|
|
5
5
|
import { useBlock } from 'timvir/core';
|
|
6
|
-
import {
|
|
6
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
7
7
|
|
|
8
8
|
var styleq = {};
|
|
9
9
|
var hasRequiredStyleq;
|
|
@@ -212,11 +212,11 @@ function Arbitrary(props$1) {
|
|
|
212
212
|
}
|
|
213
213
|
}, [props$1.id, block.bus, value.seed]);
|
|
214
214
|
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
215
|
-
return /*#__PURE__*/
|
|
215
|
+
return /*#__PURE__*/jsxDEV(Context, {
|
|
216
216
|
value: React.useMemo(() => ({
|
|
217
217
|
seed: value.seed
|
|
218
218
|
}), [value.seed]),
|
|
219
|
-
children: /*#__PURE__*/
|
|
219
|
+
children: /*#__PURE__*/jsxDEV(Root, {
|
|
220
220
|
"data-timvir-b-arbitrary": true,
|
|
221
221
|
...rest,
|
|
222
222
|
...rootStyleProps,
|
|
@@ -226,14 +226,14 @@ function Arbitrary(props$1) {
|
|
|
226
226
|
...rootStyleProps.style,
|
|
227
227
|
...rest.style
|
|
228
228
|
},
|
|
229
|
-
children: [/*#__PURE__*/
|
|
229
|
+
children: [/*#__PURE__*/jsxDEV("div", {
|
|
230
230
|
className: "timvir-s-rvj5dj timvir-s-d3ue5d timvir-s-9flyx0 timvir-s-1e56ztr",
|
|
231
|
-
children: [/*#__PURE__*/
|
|
231
|
+
children: [/*#__PURE__*/jsxDEV("div", {
|
|
232
232
|
className: "timvir-s-78zum5 timvir-s-6s0dn4 timvir-s-qtkp2c timvir-s-u0aao5 timvir-s-1n2onr6 timvir-s-1d0dlzq timvir-s-1tcdsnd timvir-s-hkezso timvir-s-1j6awrg timvir-s-1s928wv timvir-s-arstr8 timvir-s-2q1x1w timvir-s-5hscyn timvir-s-86avzo timvir-s-1mbvx0 timvir-s-2l4bqv timvir-s-hqgf4x timvir-s-1o0ppuw",
|
|
233
|
-
children: [/*#__PURE__*/
|
|
233
|
+
children: [/*#__PURE__*/jsxDEV("span", {
|
|
234
234
|
className: "timvir-s-1rg5ohu timvir-s-vgvpxu timvir-s-15ku74s",
|
|
235
235
|
children: "Seed:"
|
|
236
|
-
}), /*#__PURE__*/
|
|
236
|
+
}, void 0, false), /*#__PURE__*/jsxDEV("input", {
|
|
237
237
|
"data-timvir-b-arbitrary-seed": true,
|
|
238
238
|
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",
|
|
239
239
|
placeholder: "Seed",
|
|
@@ -249,22 +249,22 @@ function Arbitrary(props$1) {
|
|
|
249
249
|
onFocus: ev => {
|
|
250
250
|
ev.currentTarget.select();
|
|
251
251
|
}
|
|
252
|
-
})]
|
|
253
|
-
}), /*#__PURE__*/
|
|
252
|
+
}, void 0, false)]
|
|
253
|
+
}, void 0, true), /*#__PURE__*/jsxDEV("button", {
|
|
254
254
|
type: "button",
|
|
255
255
|
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",
|
|
256
256
|
onClick: refreshSeed,
|
|
257
257
|
children: "Refresh"
|
|
258
|
-
})]
|
|
259
|
-
}), /*#__PURE__*/
|
|
258
|
+
}, void 0, false)]
|
|
259
|
+
}, void 0, true), /*#__PURE__*/jsxDEV(Exhibit, {
|
|
260
260
|
...ExhibitProps,
|
|
261
261
|
style: {
|
|
262
262
|
margin: 0
|
|
263
263
|
},
|
|
264
264
|
children: children
|
|
265
|
-
})]
|
|
266
|
-
})
|
|
267
|
-
});
|
|
265
|
+
}, void 0, false)]
|
|
266
|
+
}, void 0, true)
|
|
267
|
+
}, void 0, false);
|
|
268
268
|
}
|
|
269
269
|
const styles = {
|
|
270
270
|
root: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Arbitrary } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Arbitrary>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
package/blocks/Code/Code.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
|
21
21
|
highlightedLines?: Array<number>;
|
|
22
22
|
caption?: React.ReactNode;
|
|
23
23
|
}
|
|
24
|
-
export declare function Code(props: Props):
|
|
24
|
+
export declare function Code(props: Props): React.JSX.Element;
|
|
25
25
|
export {};
|
package/blocks/Code/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { codeToHtml } from 'shiki';
|
|
4
4
|
import { useBlock } from 'timvir/core';
|
|
5
|
-
import {
|
|
5
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
6
6
|
|
|
7
7
|
var styleq = {};
|
|
8
8
|
var hasRequiredStyleq;
|
|
@@ -244,7 +244,7 @@ function Code(props$1) {
|
|
|
244
244
|
})();
|
|
245
245
|
}, [children, language, highlightedLines]);
|
|
246
246
|
const rootStyleProps = props(layoutStyles.block);
|
|
247
|
-
return /*#__PURE__*/
|
|
247
|
+
return /*#__PURE__*/jsxDEV(Root, {
|
|
248
248
|
"data-timvir-b-code": true,
|
|
249
249
|
...rest,
|
|
250
250
|
...rootStyleProps,
|
|
@@ -253,18 +253,18 @@ function Code(props$1) {
|
|
|
253
253
|
...rootStyleProps.style,
|
|
254
254
|
...rest.style
|
|
255
255
|
},
|
|
256
|
-
children: [/*#__PURE__*/
|
|
256
|
+
children: [/*#__PURE__*/jsxDEV("div", {
|
|
257
257
|
"data-timvir-b-code-container": true,
|
|
258
258
|
className: "timvir-s-w2csxc timvir-s-6wvzqs timvir-s-sfzzmd timvir-s-1sxf85j timvir-s-i27niw timvir-s-idmeni timvir-s-1717udv timvir-s-1etwjqo timvir-s-mkeg23 timvir-s-1y0btm7 timvir-s-j7gikm timvir-s-1d0dlzq",
|
|
259
259
|
dangerouslySetInnerHTML: {
|
|
260
260
|
__html: state.html
|
|
261
261
|
}
|
|
262
|
-
}), caption && /*#__PURE__*/
|
|
262
|
+
}, void 0, false), caption && /*#__PURE__*/jsxDEV("div", {
|
|
263
263
|
"data-timvir-b-code-caption": true,
|
|
264
264
|
className: "timvir-s-1dcheo9 timvir-s-jkpybl timvir-s-vgvpxu timvir-s-lwy1ot",
|
|
265
265
|
children: caption
|
|
266
|
-
})]
|
|
267
|
-
});
|
|
266
|
+
}, void 0, false)]
|
|
267
|
+
}, void 0, true);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
export { Code };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Code } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Code>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export default function Sample({ language, children }: any): React.JSX.Element;
|
|
@@ -14,5 +14,5 @@ interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
|
14
14
|
ancestry?: string;
|
|
15
15
|
}>;
|
|
16
16
|
}
|
|
17
|
-
export declare function ColorBar(props: Props):
|
|
17
|
+
export declare function ColorBar(props: Props): React.JSX.Element;
|
|
18
18
|
export {};
|
package/blocks/ColorBar/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Swatch } from 'timvir/blocks';
|
|
4
4
|
import { useBlock } from 'timvir/core';
|
|
5
|
-
import {
|
|
5
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
6
6
|
|
|
7
7
|
var styleq = {};
|
|
8
8
|
var hasRequiredStyleq;
|
|
@@ -183,7 +183,7 @@ function ColorBar(props$1) {
|
|
|
183
183
|
} = block.props;
|
|
184
184
|
const [selected, setSelected] = React.useState(undefined);
|
|
185
185
|
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
186
|
-
return /*#__PURE__*/
|
|
186
|
+
return /*#__PURE__*/jsxDEV(Root, {
|
|
187
187
|
...rest,
|
|
188
188
|
...rootStyleProps,
|
|
189
189
|
className: cx(rest.className, rootStyleProps.className),
|
|
@@ -191,14 +191,14 @@ function ColorBar(props$1) {
|
|
|
191
191
|
...rootStyleProps.style,
|
|
192
192
|
...rest.style
|
|
193
193
|
},
|
|
194
|
-
children: [/*#__PURE__*/
|
|
194
|
+
children: [/*#__PURE__*/jsxDEV("div", {
|
|
195
195
|
className: "timvir-s-rvj5dj timvir-s-1sdr0u7 timvir-s-dz4c1r",
|
|
196
196
|
style: {
|
|
197
197
|
opacity: selected ? 0 : 1
|
|
198
198
|
},
|
|
199
|
-
children: values.map((value, i, self) => /*#__PURE__*/
|
|
199
|
+
children: values.map((value, i, self) => /*#__PURE__*/jsxDEV("div", {
|
|
200
200
|
className: "timvir-s-1vqgdyp timvir-s-1iyjqo2 timvir-s-rvj5dj timvir-s-13b6k1y timvir-s-1ypdohk timvir-s-zkaem6 timvir-s-12l46wj timvir-s-inzabm timvir-s-1bxid8z",
|
|
201
|
-
children: /*#__PURE__*/
|
|
201
|
+
children: /*#__PURE__*/jsxDEV("div", {
|
|
202
202
|
...{
|
|
203
203
|
0: {
|
|
204
204
|
className: "timvir-s-zhuw26 timvir-s-nfsnhl timvir-s-1ehn4u0 timvir-s-32zglm"
|
|
@@ -219,11 +219,11 @@ function ColorBar(props$1) {
|
|
|
219
219
|
onClick: () => {
|
|
220
220
|
setSelected(value);
|
|
221
221
|
}
|
|
222
|
-
})
|
|
223
|
-
}, i))
|
|
224
|
-
}), selected !== undefined && /*#__PURE__*/
|
|
222
|
+
}, void 0, false)
|
|
223
|
+
}, i, false))
|
|
224
|
+
}, void 0, false), selected !== undefined && /*#__PURE__*/jsxDEV("div", {
|
|
225
225
|
className: "timvir-s-10l6tqk timvir-s-wa60dl timvir-s-3m8u43 timvir-s-u96u03 timvir-s-1cb1t30 timvir-s-oegz02",
|
|
226
|
-
children: /*#__PURE__*/
|
|
226
|
+
children: /*#__PURE__*/jsxDEV(Swatch, {
|
|
227
227
|
...(typeof selected === "string" ? {
|
|
228
228
|
value: selected
|
|
229
229
|
} : {
|
|
@@ -235,9 +235,9 @@ function ColorBar(props$1) {
|
|
|
235
235
|
onMouseLeave: () => {
|
|
236
236
|
setSelected(undefined);
|
|
237
237
|
}
|
|
238
|
-
})
|
|
239
|
-
})]
|
|
240
|
-
});
|
|
238
|
+
}, void 0, false)
|
|
239
|
+
}, void 0, false)]
|
|
240
|
+
}, void 0, true);
|
|
241
241
|
}
|
|
242
242
|
const styles = {
|
|
243
243
|
root: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function Sample(): import("react
|
|
1
|
+
export default function Sample(): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
3
3
|
|
|
4
4
|
var styleq = {};
|
|
5
5
|
var hasRequiredStyleq;
|
|
@@ -168,17 +168,17 @@ function ColorBook(props$1) {
|
|
|
168
168
|
onSelectChapter,
|
|
169
169
|
...rest
|
|
170
170
|
} = props$1;
|
|
171
|
-
return /*#__PURE__*/
|
|
171
|
+
return /*#__PURE__*/jsxDEV(Root, {
|
|
172
172
|
...rest,
|
|
173
173
|
...props(layoutStyles.block, styles.root),
|
|
174
174
|
children: chapters.map(({
|
|
175
175
|
name,
|
|
176
176
|
values
|
|
177
|
-
}, i) => /*#__PURE__*/
|
|
177
|
+
}, i) => /*#__PURE__*/jsxDEV("div", {
|
|
178
178
|
style: {
|
|
179
179
|
gridColumn: i + 1
|
|
180
180
|
},
|
|
181
|
-
children: [/*#__PURE__*/
|
|
181
|
+
children: [/*#__PURE__*/jsxDEV("div", {
|
|
182
182
|
...{
|
|
183
183
|
0: {
|
|
184
184
|
className: "timvir-s-1n2onr6 timvir-s-1ypdohk timvir-s-78zum5 timvir-s-dt5ytf timvir-s-1m3v4wt timvir-s-1hmns74 timvir-s-51xajf timvir-s-1ydowbf timvir-s-e80sof timvir-s-abwq6t timvir-s-b52w3a timvir-s-ktd1bz timvir-s-1cpjm7i timvir-s-k53niv timvir-s-115iamj timvir-s-s2hnm7"
|
|
@@ -192,7 +192,7 @@ function ColorBook(props$1) {
|
|
|
192
192
|
onSelectChapter(i);
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
children: values.map((value, i) => /*#__PURE__*/
|
|
195
|
+
children: values.map((value, i) => /*#__PURE__*/jsxDEV("div", {
|
|
196
196
|
style: {
|
|
197
197
|
background: value
|
|
198
198
|
},
|
|
@@ -210,8 +210,8 @@ function ColorBook(props$1) {
|
|
|
210
210
|
className: "timvir-s-1iyjqo2 timvir-s-1ia1hqs timvir-s-1a2w583 timvir-s-1v8xtx2 timvir-s-uvn51i"
|
|
211
211
|
}
|
|
212
212
|
}[!!(i === 0) << 1 | !!(i === values.length - 1) << 0]
|
|
213
|
-
}, value))
|
|
214
|
-
}), name && /*#__PURE__*/
|
|
213
|
+
}, value, false))
|
|
214
|
+
}, void 0, false), name && /*#__PURE__*/jsxDEV("div", {
|
|
215
215
|
...{
|
|
216
216
|
0: {
|
|
217
217
|
className: "timvir-s-2b8uid timvir-s-boafo0 timvir-s-vgvpxu timvir-s-1nmq0fv timvir-s-o5v014"
|
|
@@ -221,9 +221,9 @@ function ColorBook(props$1) {
|
|
|
221
221
|
}
|
|
222
222
|
}[!!(i === selectedChapter) << 0],
|
|
223
223
|
children: name
|
|
224
|
-
})]
|
|
225
|
-
}, i))
|
|
226
|
-
});
|
|
224
|
+
}, void 0, false)]
|
|
225
|
+
}, i, true))
|
|
226
|
+
}, void 0, false);
|
|
227
227
|
}
|
|
228
228
|
const styles = {
|
|
229
229
|
root: {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
package/blocks/Cover/Cover.d.ts
CHANGED
package/blocks/Cover/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
2
2
|
|
|
3
3
|
var styleq = {};
|
|
4
4
|
var hasRequiredStyleq;
|
|
@@ -184,21 +184,21 @@ function Cover(props$1) {
|
|
|
184
184
|
...rest
|
|
185
185
|
} = props$1;
|
|
186
186
|
const rootStyleProps = props(layoutStyles.block, layoutStyles.fullWidth);
|
|
187
|
-
return /*#__PURE__*/
|
|
187
|
+
return /*#__PURE__*/jsxDEV(Root, {
|
|
188
188
|
...rest,
|
|
189
189
|
...rootStyleProps,
|
|
190
190
|
className: cx(rest.className, rootStyleProps.className),
|
|
191
|
-
children: /*#__PURE__*/
|
|
192
|
-
children: [sources.map((p, i) => /*#__PURE__*/
|
|
191
|
+
children: /*#__PURE__*/jsxDEV("picture", {
|
|
192
|
+
children: [sources.map((p, i) => /*#__PURE__*/jsxDEV("source", {
|
|
193
193
|
...p
|
|
194
|
-
}, i)), /*#__PURE__*/
|
|
194
|
+
}, i, false)), /*#__PURE__*/jsxDEV("img", {
|
|
195
195
|
...metadata,
|
|
196
196
|
...img1,
|
|
197
197
|
alt: "",
|
|
198
198
|
className: "timvir-s-1lliihq timvir-s-193iq5w timvir-s-5i6pxz timvir-s-l1xv1r"
|
|
199
|
-
})]
|
|
200
|
-
})
|
|
201
|
-
});
|
|
199
|
+
}, void 0, false)]
|
|
200
|
+
}, void 0, true)
|
|
201
|
+
}, void 0, false);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
export { Cover };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function Sample(): import("react
|
|
1
|
+
export default function Sample(): import("react").JSX.Element;
|
|
@@ -19,5 +19,5 @@ interface Props extends React.ComponentProps<typeof Root> {
|
|
|
19
19
|
*/
|
|
20
20
|
theme?: "system" | "light" | "dark";
|
|
21
21
|
}
|
|
22
|
-
export declare function Exhibit(props: Props):
|
|
22
|
+
export declare function Exhibit(props: Props): React.JSX.Element;
|
|
23
23
|
export {};
|
package/blocks/Exhibit/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useContext, useBlock } from 'timvir/core';
|
|
3
|
-
import {
|
|
3
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
4
4
|
|
|
5
5
|
var styleq = {};
|
|
6
6
|
var hasRequiredStyleq;
|
|
@@ -193,7 +193,7 @@ function Exhibit(props$1) {
|
|
|
193
193
|
} = block.props;
|
|
194
194
|
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
195
195
|
const containerStyleProps = props(styles.container, bleed === 0 && styles.bleedZero, styles[`${theme}Theme`]);
|
|
196
|
-
return /*#__PURE__*/
|
|
196
|
+
return /*#__PURE__*/jsxDEV(Root, {
|
|
197
197
|
"data-timvir-b-exhibit": true,
|
|
198
198
|
...rest,
|
|
199
199
|
...rootStyleProps,
|
|
@@ -205,7 +205,7 @@ function Exhibit(props$1) {
|
|
|
205
205
|
[cssVariables.borderColor]: "var(--timvir-border-color)",
|
|
206
206
|
[cssVariables.background]: "var(--timvir-background-pattern)"
|
|
207
207
|
},
|
|
208
|
-
children: [/*#__PURE__*/
|
|
208
|
+
children: [/*#__PURE__*/jsxDEV("div", {
|
|
209
209
|
"data-timvir-b-exhibit-container": true,
|
|
210
210
|
...BackdropProps,
|
|
211
211
|
...containerStyleProps,
|
|
@@ -216,12 +216,12 @@ function Exhibit(props$1) {
|
|
|
216
216
|
...BackdropProps?.style
|
|
217
217
|
},
|
|
218
218
|
children: children
|
|
219
|
-
}), caption && /*#__PURE__*/
|
|
219
|
+
}, void 0, false), caption && /*#__PURE__*/jsxDEV("div", {
|
|
220
220
|
"data-timvir-b-exhibit-caption": true,
|
|
221
221
|
className: "timvir-s-1dcheo9 timvir-s-jkpybl timvir-s-vgvpxu timvir-s-lwy1ot",
|
|
222
222
|
children: caption
|
|
223
|
-
})]
|
|
224
|
-
});
|
|
223
|
+
}, void 0, false)]
|
|
224
|
+
}, void 0, true);
|
|
225
225
|
}
|
|
226
226
|
const cssVariables = {
|
|
227
227
|
bleed: "--timvir-b-Exhibit-bleed",
|
|
@@ -255,10 +255,12 @@ const styles = {
|
|
|
255
255
|
},
|
|
256
256
|
lightTheme: {
|
|
257
257
|
kKwaWg: "timvir-s-7ns93p",
|
|
258
|
+
kMwMTN: "timvir-s-15r2rl4",
|
|
258
259
|
$$css: true
|
|
259
260
|
},
|
|
260
261
|
darkTheme: {
|
|
261
262
|
kKwaWg: "timvir-s-kt43kk",
|
|
263
|
+
kMwMTN: "timvir-s-igssvo",
|
|
262
264
|
$$css: true
|
|
263
265
|
},
|
|
264
266
|
caption: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Exhibit } from "..";
|
|
2
2
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Exhibit>>;
|
|
3
|
-
export default function Sample(props: Props): import("react
|
|
3
|
+
export default function Sample(props: Props): import("react").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Exhibit } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Exhibit>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Exhibit } from "..";
|
|
2
2
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Exhibit>>;
|
|
3
|
-
export default function Sample(props: Props): import("react
|
|
3
|
+
export default function Sample(props: Props): import("react").JSX.Element;
|
|
4
4
|
export {};
|
package/blocks/Font/Font.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
|
11
11
|
};
|
|
12
12
|
info?: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
-
export declare function Font(props: Props):
|
|
14
|
+
export declare function Font(props: Props): React.JSX.Element;
|
|
15
15
|
export {};
|
package/blocks/Font/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useArticleComponents } from 'timvir/core';
|
|
4
|
-
import {
|
|
4
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
5
5
|
|
|
6
6
|
var styleq = {};
|
|
7
7
|
var hasRequiredStyleq;
|
|
@@ -162,7 +162,7 @@ const layoutStyles = {
|
|
|
162
162
|
$$css: true
|
|
163
163
|
}};
|
|
164
164
|
|
|
165
|
-
const SvgInfo = props => /*#__PURE__*/
|
|
165
|
+
const SvgInfo = props => /*#__PURE__*/jsxDEV("svg", {
|
|
166
166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
167
167
|
width: 24,
|
|
168
168
|
height: 24,
|
|
@@ -173,14 +173,14 @@ const SvgInfo = props => /*#__PURE__*/jsxs("svg", {
|
|
|
173
173
|
strokeWidth: 2,
|
|
174
174
|
viewBox: "0 0 24 24",
|
|
175
175
|
...props,
|
|
176
|
-
children: [/*#__PURE__*/
|
|
176
|
+
children: [/*#__PURE__*/jsxDEV("circle", {
|
|
177
177
|
cx: 12,
|
|
178
178
|
cy: 12,
|
|
179
179
|
r: 10
|
|
180
|
-
}), /*#__PURE__*/
|
|
180
|
+
}, void 0, false), /*#__PURE__*/jsxDEV("path", {
|
|
181
181
|
d: "M12 16v-4M12 8h.01"
|
|
182
|
-
})]
|
|
183
|
-
});
|
|
182
|
+
}, void 0, false)]
|
|
183
|
+
}, void 0, true);
|
|
184
184
|
|
|
185
185
|
function cx(...args) {
|
|
186
186
|
let str = "";
|
|
@@ -228,7 +228,7 @@ function Font(props$1) {
|
|
|
228
228
|
const fontStyleProps = {
|
|
229
229
|
className: "timvir-s-1a2a7pz timvir-s-1hx0egp timvir-s-126k92a timvir-s-1mzt3pk"
|
|
230
230
|
};
|
|
231
|
-
return /*#__PURE__*/
|
|
231
|
+
return /*#__PURE__*/jsxDEV(Root, {
|
|
232
232
|
...rest,
|
|
233
233
|
...rootStyleProps,
|
|
234
234
|
className: cx(rest.className, rootStyleProps.className),
|
|
@@ -236,15 +236,15 @@ function Font(props$1) {
|
|
|
236
236
|
...rootStyleProps.style,
|
|
237
237
|
...rest.style
|
|
238
238
|
},
|
|
239
|
-
children: [/*#__PURE__*/
|
|
239
|
+
children: [/*#__PURE__*/jsxDEV("div", {
|
|
240
240
|
className: "timvir-s-78zum5 timvir-s-1pha0wt timvir-s-1nrrp6k timvir-s-117nqv4 timvir-s-1bsk9n",
|
|
241
|
-
children: [/*#__PURE__*/
|
|
241
|
+
children: [/*#__PURE__*/jsxDEV(components.h3, {
|
|
242
242
|
className: "timvir-s-a519c1",
|
|
243
|
-
children: /*#__PURE__*/
|
|
243
|
+
children: /*#__PURE__*/jsxDEV("span", {
|
|
244
244
|
ref: setFontSizeRef,
|
|
245
245
|
children: name
|
|
246
|
-
})
|
|
247
|
-
}), info && /*#__PURE__*/
|
|
246
|
+
}, void 0, false)
|
|
247
|
+
}, void 0, false), info && /*#__PURE__*/jsxDEV("div", {
|
|
248
248
|
className: "timvir-s-1ypdohk timvir-s-gmrl4 timvir-s-1o7uuvo",
|
|
249
249
|
onClick: () => {
|
|
250
250
|
if (infoRef && contentRef) {
|
|
@@ -261,32 +261,32 @@ function Font(props$1) {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
},
|
|
264
|
-
children: /*#__PURE__*/
|
|
264
|
+
children: /*#__PURE__*/jsxDEV(SvgInfo, {
|
|
265
265
|
width: "1.1em",
|
|
266
266
|
height: "1.1em",
|
|
267
267
|
className: "timvir-s-1n2onr6 timvir-s-s7f9wi"
|
|
268
|
-
})
|
|
269
|
-
})]
|
|
270
|
-
}), /*#__PURE__*/
|
|
268
|
+
}, void 0, false)
|
|
269
|
+
}, void 0, false)]
|
|
270
|
+
}, void 0, true), /*#__PURE__*/jsxDEV("div", {
|
|
271
271
|
className: "timvir-s-78zum5 timvir-s-dt5ytf",
|
|
272
|
-
children: [info && /*#__PURE__*/
|
|
272
|
+
children: [info && /*#__PURE__*/jsxDEV("div", {
|
|
273
273
|
className: "timvir-s-b3r6kr timvir-s-104cjix",
|
|
274
274
|
style: {
|
|
275
275
|
height: 0,
|
|
276
276
|
opacity: 0
|
|
277
277
|
},
|
|
278
|
-
children: /*#__PURE__*/
|
|
278
|
+
children: /*#__PURE__*/jsxDEV("div", {
|
|
279
279
|
ref: setInfoRef,
|
|
280
280
|
className: "timvir-s-1k5rvim",
|
|
281
281
|
children: info
|
|
282
|
-
})
|
|
283
|
-
}), /*#__PURE__*/
|
|
282
|
+
}, void 0, false)
|
|
283
|
+
}, void 0, false), /*#__PURE__*/jsxDEV("div", {
|
|
284
284
|
className: "timvir-s-b3r6kr timvir-s-104cjix",
|
|
285
285
|
style: {
|
|
286
286
|
height: "auto",
|
|
287
287
|
opacity: 1
|
|
288
288
|
},
|
|
289
|
-
children: /*#__PURE__*/
|
|
289
|
+
children: /*#__PURE__*/jsxDEV("div", {
|
|
290
290
|
ref: setContentRef,
|
|
291
291
|
contentEditable: true,
|
|
292
292
|
spellCheck: "false",
|
|
@@ -297,10 +297,10 @@ function Font(props$1) {
|
|
|
297
297
|
...font.style
|
|
298
298
|
},
|
|
299
299
|
children: children || "The quick brown fox jumps over the lazy dog"
|
|
300
|
-
})
|
|
301
|
-
})]
|
|
302
|
-
})]
|
|
303
|
-
});
|
|
300
|
+
}, void 0, false)
|
|
301
|
+
}, void 0, false)]
|
|
302
|
+
}, void 0, true)]
|
|
303
|
+
}, void 0, true);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
export { Font };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Font } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|