timvir 0.2.49 → 0.2.51
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/blocks/Arbitrary/Arbitrary.d.ts +2 -2
- package/blocks/Arbitrary/index.d.ts +1 -1
- package/blocks/Arbitrary/index.js +3 -5
- package/blocks/Arbitrary/samples/basic.d.ts +1 -1
- package/blocks/Code/Code.d.ts +3 -3
- package/blocks/Code/index.d.ts +1 -1
- package/blocks/Code/index.js +23 -10
- package/blocks/Code/samples/basic.d.ts +1 -1
- package/blocks/ColorBar/ColorBar.d.ts +3 -3
- package/blocks/ColorBar/index.d.ts +1 -1
- package/blocks/ColorBar/index.js +3 -5
- package/blocks/ColorBar/styles.css +2 -2
- package/blocks/ColorBook/ColorBook.d.ts +4 -4
- package/blocks/ColorBook/index.d.ts +1 -1
- package/blocks/ColorBook/index.js +2 -5
- 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/Exhibit/Exhibit.d.ts +4 -4
- package/blocks/Exhibit/index.d.ts +1 -1
- package/blocks/Exhibit/index.js +2 -5
- package/blocks/Exhibit/samples/bleed.d.ts +1 -1
- package/blocks/Font/Font.d.ts +3 -3
- package/blocks/Font/index.d.ts +1 -1
- package/blocks/Font/index.js +5 -4
- 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 +2 -2
- package/blocks/Grid/index.d.ts +1 -1
- package/blocks/Grid/index.js +2 -4
- package/blocks/Icon/Icon.d.ts +4 -4
- package/blocks/Icon/index.d.ts +1 -1
- package/blocks/Icon/index.js +2 -5
- package/blocks/Icon/internal/Canvas.d.ts +3 -3
- package/blocks/Icon/internal/index.d.ts +1 -1
- package/blocks/Message/Message.d.ts +3 -3
- package/blocks/Message/index.d.ts +1 -1
- package/blocks/Message/index.js +2 -4
- package/blocks/Message/samples/basic.d.ts +1 -1
- package/blocks/Swatch/Swatch.d.ts +3 -3
- package/blocks/Swatch/index.d.ts +1 -1
- package/blocks/Swatch/index.js +2 -4
- package/blocks/Viewport/Viewport.d.ts +3 -3
- package/blocks/Viewport/index.d.ts +1 -1
- package/blocks/Viewport/index.js +13 -11
- 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/WebLink/WebLink.d.ts +3 -3
- package/blocks/WebLink/index.d.ts +1 -1
- package/blocks/WebLink/index.js +3 -5
- package/blocks/WebLink/samples/basic.d.ts +1 -1
- package/blocks/styles.css +2 -2
- package/bus/index.d.ts +2 -2
- package/context/index.d.ts +3 -3
- package/context/index.js +1 -1
- package/core/components/Commands/internal/Action.d.ts +1 -1
- package/core/components/Footer/Footer.d.ts +4 -4
- package/core/components/Footer/samples/basic.d.ts +1 -1
- package/core/components/NavigationFooter/NavigationFooter.d.ts +2 -2
- package/core/components/NavigationFooter/samples/basic.d.ts +1 -1
- package/core/components/Page/Page.d.ts +4 -4
- package/core/components/Page/internal/Section.d.ts +1 -1
- package/core/components/Page/internal/Sidebar.d.ts +1 -1
- package/core/components/Page/internal/SidebarItem.d.ts +1 -1
- package/core/components/Page/types.d.ts +1 -1
- package/core/index.d.ts +2 -2
- package/core/index.js +8 -11
- package/package.json +36 -12
- package/search/Search/Search.d.ts +5 -5
- package/search/index.js +2 -5
- package/styles.css +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# timvir
|
|
2
2
|
|
|
3
|
+
## 0.2.51
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **Make React 19 required** ([#3732](https://github.com/timvir/timvir/pull/3732)) - Up until now we've supported React 17, 18, and 19. React 19 has introduced changes that make components simpler. The version has been out for over a year. This version makes React 19 a required peer dependency.
|
|
8
|
+
|
|
9
|
+
## 0.2.50
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- **Add explicit types and import conditions to exports** ([#3708](https://github.com/timvir/timvir/pull/3708)) - This improves TypeScript IntelliSense and module resolution for modern build tools.
|
|
14
|
+
|
|
3
15
|
## 0.2.49
|
|
4
16
|
|
|
5
17
|
### 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
|
-
declare
|
|
11
|
-
export
|
|
10
|
+
export declare function Arbitrary(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Arbitrary } from "./Arbitrary";
|
|
2
2
|
export { useContext } from "./context";
|
|
@@ -236,7 +236,7 @@ const Context = /*#__PURE__*/React.createContext({
|
|
|
236
236
|
const useContext = () => React.useContext(Context);
|
|
237
237
|
|
|
238
238
|
const Root = "div";
|
|
239
|
-
function Arbitrary(props$1
|
|
239
|
+
function Arbitrary(props$1) {
|
|
240
240
|
const block = useBlock(props$1);
|
|
241
241
|
const {
|
|
242
242
|
ExhibitProps,
|
|
@@ -264,10 +264,9 @@ function Arbitrary(props$1, ref) {
|
|
|
264
264
|
}
|
|
265
265
|
}, [props$1.id, block.bus, value.seed]);
|
|
266
266
|
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
267
|
-
return /*#__PURE__*/jsx(Context
|
|
267
|
+
return /*#__PURE__*/jsx(Context, {
|
|
268
268
|
value: value,
|
|
269
269
|
children: /*#__PURE__*/jsxs(Root, {
|
|
270
|
-
ref: ref,
|
|
271
270
|
"data-timvir-b-arbitrary": true,
|
|
272
271
|
...rest,
|
|
273
272
|
...rootStyleProps,
|
|
@@ -320,7 +319,6 @@ function Arbitrary(props$1, ref) {
|
|
|
320
319
|
})
|
|
321
320
|
});
|
|
322
321
|
}
|
|
323
|
-
var Arbitrary_default = /*#__PURE__*/React.forwardRef(Arbitrary);
|
|
324
322
|
const styles = {
|
|
325
323
|
root: {
|
|
326
324
|
kogj98: "timvir-s-9t3ola",
|
|
@@ -328,4 +326,4 @@ const styles = {
|
|
|
328
326
|
}
|
|
329
327
|
};
|
|
330
328
|
|
|
331
|
-
export {
|
|
329
|
+
export { Arbitrary, useContext };
|
package/blocks/Code/Code.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
5
5
|
declare const Root = "div";
|
|
6
|
-
interface Props extends React.
|
|
6
|
+
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
7
7
|
/**
|
|
8
8
|
* The code that should be highlighted.
|
|
9
9
|
*/
|
|
@@ -21,5 +21,5 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
|
|
|
21
21
|
highlightedLines?: Array<number>;
|
|
22
22
|
caption?: React.ReactNode;
|
|
23
23
|
}
|
|
24
|
-
declare
|
|
25
|
-
export
|
|
24
|
+
export declare function Code(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
package/blocks/Code/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Code } from "./Code";
|
package/blocks/Code/index.js
CHANGED
|
@@ -175,7 +175,7 @@ const layoutStyles = {
|
|
|
175
175
|
}};
|
|
176
176
|
|
|
177
177
|
const Root = "div";
|
|
178
|
-
function Code(props$1
|
|
178
|
+
function Code(props$1) {
|
|
179
179
|
const block = useBlock(props$1);
|
|
180
180
|
const {
|
|
181
181
|
children,
|
|
@@ -196,18 +196,33 @@ function Code(props$1, ref) {
|
|
|
196
196
|
const stylexTransformer = {
|
|
197
197
|
name: "stylex",
|
|
198
198
|
pre(node) {
|
|
199
|
-
|
|
199
|
+
const {
|
|
200
|
+
className
|
|
201
|
+
} = {
|
|
200
202
|
className: "timvir-s-1lliihq timvir-s-1ghz6dp timvir-s-1g8o3q3 timvir-s-1d0dlzq"
|
|
201
|
-
}
|
|
203
|
+
};
|
|
204
|
+
{
|
|
205
|
+
this.addClassToHast(node, className);
|
|
206
|
+
}
|
|
202
207
|
},
|
|
203
208
|
line(node, index) {
|
|
204
|
-
|
|
209
|
+
const {
|
|
210
|
+
className
|
|
211
|
+
} = {
|
|
205
212
|
className: "timvir-s-1rg5ohu timvir-s-h8yej3 timvir-s-e193im"
|
|
206
|
-
}
|
|
213
|
+
};
|
|
214
|
+
{
|
|
215
|
+
this.addClassToHast(node, className);
|
|
216
|
+
}
|
|
207
217
|
if (highlightedLines?.includes(index)) {
|
|
208
|
-
|
|
218
|
+
const {
|
|
219
|
+
className
|
|
220
|
+
} = {
|
|
209
221
|
className: "timvir-s-15fpjw5"
|
|
210
|
-
}
|
|
222
|
+
};
|
|
223
|
+
{
|
|
224
|
+
this.addClassToHast(node, className);
|
|
225
|
+
}
|
|
211
226
|
}
|
|
212
227
|
}
|
|
213
228
|
};
|
|
@@ -230,7 +245,6 @@ function Code(props$1, ref) {
|
|
|
230
245
|
}, [children, language, highlightedLines]);
|
|
231
246
|
const rootStyleProps = props(layoutStyles.block);
|
|
232
247
|
return /*#__PURE__*/jsxs(Root, {
|
|
233
|
-
ref: ref,
|
|
234
248
|
"data-timvir-b-code": true,
|
|
235
249
|
...rest,
|
|
236
250
|
...rootStyleProps,
|
|
@@ -252,6 +266,5 @@ function Code(props$1, ref) {
|
|
|
252
266
|
})]
|
|
253
267
|
});
|
|
254
268
|
}
|
|
255
|
-
var Code_default = /*#__PURE__*/React.forwardRef(Code);
|
|
256
269
|
|
|
257
|
-
export {
|
|
270
|
+
export { Code };
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
5
5
|
declare const Root = "div";
|
|
6
|
-
interface Props extends React.
|
|
6
|
+
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
7
7
|
/**
|
|
8
8
|
* Array of CSS Color values.
|
|
9
9
|
*/
|
|
@@ -14,5 +14,5 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
|
|
|
14
14
|
ancestry?: string;
|
|
15
15
|
}>;
|
|
16
16
|
}
|
|
17
|
-
declare
|
|
18
|
-
export
|
|
17
|
+
export declare function ColorBar(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ColorBar } from "./ColorBar";
|
package/blocks/ColorBar/index.js
CHANGED
|
@@ -175,7 +175,7 @@ const layoutStyles = {
|
|
|
175
175
|
}};
|
|
176
176
|
|
|
177
177
|
const Root = "div";
|
|
178
|
-
function ColorBar(props$1
|
|
178
|
+
function ColorBar(props$1) {
|
|
179
179
|
const block = useBlock(props$1);
|
|
180
180
|
const {
|
|
181
181
|
values,
|
|
@@ -184,7 +184,6 @@ function ColorBar(props$1, ref) {
|
|
|
184
184
|
const [selected, setSelected] = React.useState(undefined);
|
|
185
185
|
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
186
186
|
return /*#__PURE__*/jsxs(Root, {
|
|
187
|
-
ref: ref,
|
|
188
187
|
...rest,
|
|
189
188
|
...rootStyleProps,
|
|
190
189
|
className: cx(rest.className, rootStyleProps.className),
|
|
@@ -198,7 +197,7 @@ function ColorBar(props$1, ref) {
|
|
|
198
197
|
opacity: selected ? 0 : 1
|
|
199
198
|
},
|
|
200
199
|
children: values.map((value, i, self) => /*#__PURE__*/jsx("div", {
|
|
201
|
-
className: "timvir-s-1vqgdyp timvir-s-1iyjqo2 timvir-s-rvj5dj timvir-s-13b6k1y timvir-s-1ypdohk timvir-s-zkaem6 timvir-s-
|
|
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",
|
|
202
201
|
children: /*#__PURE__*/jsx("div", {
|
|
203
202
|
...props(i === 0 ? styles.firstChild : null, i === self.length - 1 ? styles.lastChild : null, styles.valueInner),
|
|
204
203
|
style: {
|
|
@@ -227,7 +226,6 @@ function ColorBar(props$1, ref) {
|
|
|
227
226
|
})]
|
|
228
227
|
});
|
|
229
228
|
}
|
|
230
|
-
var ColorBar_default = /*#__PURE__*/React.forwardRef(ColorBar);
|
|
231
229
|
const styles = {
|
|
232
230
|
root: {
|
|
233
231
|
kVAEAm: "timvir-s-1n2onr6",
|
|
@@ -250,4 +248,4 @@ const styles = {
|
|
|
250
248
|
}
|
|
251
249
|
};
|
|
252
250
|
|
|
253
|
-
export {
|
|
251
|
+
export { ColorBar };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
5
5
|
declare const Root = "div";
|
|
6
|
-
interface Props extends React.
|
|
6
|
+
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
7
7
|
chapters: Array<Chapter>;
|
|
8
8
|
selectedChapter?: number;
|
|
9
9
|
onSelectChapter?: (i: number) => void;
|
|
@@ -12,5 +12,5 @@ interface Chapter {
|
|
|
12
12
|
name?: string;
|
|
13
13
|
values: Array<string>;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
16
|
-
export
|
|
15
|
+
export declare function ColorBook(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ColorBook } from "./ColorBook";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
|
|
4
3
|
var styleq = {};
|
|
@@ -161,7 +160,7 @@ const layoutStyles = {
|
|
|
161
160
|
}};
|
|
162
161
|
|
|
163
162
|
const Root = "div";
|
|
164
|
-
function ColorBook(props$1
|
|
163
|
+
function ColorBook(props$1) {
|
|
165
164
|
const {
|
|
166
165
|
chapters,
|
|
167
166
|
selectedChapter,
|
|
@@ -169,7 +168,6 @@ function ColorBook(props$1, ref) {
|
|
|
169
168
|
...rest
|
|
170
169
|
} = props$1;
|
|
171
170
|
return /*#__PURE__*/jsx(Root, {
|
|
172
|
-
ref: ref,
|
|
173
171
|
...rest,
|
|
174
172
|
...props(layoutStyles.block, styles.root),
|
|
175
173
|
children: chapters.map(({
|
|
@@ -213,7 +211,6 @@ function ColorBook(props$1, ref) {
|
|
|
213
211
|
}, i))
|
|
214
212
|
});
|
|
215
213
|
}
|
|
216
|
-
var ColorBook_default = /*#__PURE__*/React.forwardRef(ColorBook);
|
|
217
214
|
const styles = {
|
|
218
215
|
root: {
|
|
219
216
|
k1xSpc: "timvir-s-rvj5dj",
|
|
@@ -243,4 +240,4 @@ const styles = {
|
|
|
243
240
|
}
|
|
244
241
|
};
|
|
245
242
|
|
|
246
|
-
export {
|
|
243
|
+
export { ColorBook };
|
package/blocks/Cover/Cover.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
5
5
|
declare const Root = "div";
|
|
6
|
-
interface Props extends React.
|
|
6
|
+
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
7
7
|
metadata: {
|
|
8
8
|
width: number;
|
|
9
9
|
height: number;
|
|
@@ -16,5 +16,5 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
|
|
|
16
16
|
type: string;
|
|
17
17
|
}>;
|
|
18
18
|
}
|
|
19
|
-
declare
|
|
20
|
-
export
|
|
19
|
+
export declare function Cover(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
package/blocks/Cover/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Cover } from "./Cover";
|
package/blocks/Cover/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
|
|
4
3
|
function cx(...args) {
|
|
@@ -177,7 +176,7 @@ const layoutStyles = {
|
|
|
177
176
|
};
|
|
178
177
|
|
|
179
178
|
const Root = "div";
|
|
180
|
-
function Cover(props$1
|
|
179
|
+
function Cover(props$1) {
|
|
181
180
|
const {
|
|
182
181
|
metadata,
|
|
183
182
|
img: img1,
|
|
@@ -186,7 +185,6 @@ function Cover(props$1, ref) {
|
|
|
186
185
|
} = props$1;
|
|
187
186
|
const rootStyleProps = props(layoutStyles.block, layoutStyles.fullWidth);
|
|
188
187
|
return /*#__PURE__*/jsx(Root, {
|
|
189
|
-
ref: ref,
|
|
190
188
|
...rest,
|
|
191
189
|
...rootStyleProps,
|
|
192
190
|
className: cx(rest.className, rootStyleProps.className),
|
|
@@ -201,6 +199,5 @@ function Cover(props$1, ref) {
|
|
|
201
199
|
})
|
|
202
200
|
});
|
|
203
201
|
}
|
|
204
|
-
var Cover_default = /*#__PURE__*/React.forwardRef(Cover);
|
|
205
202
|
|
|
206
|
-
export {
|
|
203
|
+
export { Cover };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
@@ -11,7 +11,7 @@ interface Props extends React.ComponentProps<typeof Root> {
|
|
|
11
11
|
* (can be inline or reference to a CSS variable).
|
|
12
12
|
*/
|
|
13
13
|
bleed?: string | number;
|
|
14
|
-
BackdropProps?: React.
|
|
14
|
+
BackdropProps?: React.ComponentPropsWithRef<"div">;
|
|
15
15
|
/**
|
|
16
16
|
* Override the theme used for the background pattern. If not provided, the
|
|
17
17
|
* Exhibit component will use the default from the context. If that is also
|
|
@@ -19,5 +19,5 @@ interface Props extends React.ComponentProps<typeof Root> {
|
|
|
19
19
|
*/
|
|
20
20
|
theme?: "system" | "light" | "dark";
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
23
|
-
export
|
|
22
|
+
export declare function Exhibit(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Exhibit } from "./Exhibit";
|
package/blocks/Exhibit/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useContext, useBlock } from 'timvir/core';
|
|
3
|
-
import * as React from 'react';
|
|
4
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
function cx(...args) {
|
|
@@ -174,7 +173,7 @@ const layoutStyles = {
|
|
|
174
173
|
}};
|
|
175
174
|
|
|
176
175
|
const Root = "div";
|
|
177
|
-
function Exhibit(props$1
|
|
176
|
+
function Exhibit(props$1) {
|
|
178
177
|
const {
|
|
179
178
|
theme: defaultTheme
|
|
180
179
|
} = useContext().blocks?.Exhibit ?? {};
|
|
@@ -195,7 +194,6 @@ function Exhibit(props$1, ref) {
|
|
|
195
194
|
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
196
195
|
const containerStyleProps = props(styles.container, bleed === 0 && styles.bleedZero, styles[`${theme}Theme`]);
|
|
197
196
|
return /*#__PURE__*/jsxs(Root, {
|
|
198
|
-
ref: ref,
|
|
199
197
|
"data-timvir-b-exhibit": true,
|
|
200
198
|
...rest,
|
|
201
199
|
...rootStyleProps,
|
|
@@ -225,7 +223,6 @@ function Exhibit(props$1, ref) {
|
|
|
225
223
|
})]
|
|
226
224
|
});
|
|
227
225
|
}
|
|
228
|
-
var Exhibit_default = /*#__PURE__*/React.forwardRef(Exhibit);
|
|
229
226
|
const cssVariables = {
|
|
230
227
|
bleed: "--timvir-b-Exhibit-bleed",
|
|
231
228
|
borderColor: "--timvir-b-Exhibit-borderColor",
|
|
@@ -273,4 +270,4 @@ const styles = {
|
|
|
273
270
|
}
|
|
274
271
|
};
|
|
275
272
|
|
|
276
|
-
export {
|
|
273
|
+
export { Exhibit };
|
package/blocks/Font/Font.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
5
5
|
declare const Root = "div";
|
|
6
|
-
interface Props extends React.
|
|
6
|
+
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
7
7
|
name: string;
|
|
8
8
|
font: {
|
|
9
9
|
style?: React.CSSProperties;
|
|
@@ -11,5 +11,5 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
|
|
|
11
11
|
};
|
|
12
12
|
info?: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
-
declare
|
|
15
|
-
export
|
|
14
|
+
export declare function Font(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
package/blocks/Font/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Font } from "./Font";
|
package/blocks/Font/index.js
CHANGED
|
@@ -194,7 +194,7 @@ const SvgInfo = props => /*#__PURE__*/jsxs("svg", {
|
|
|
194
194
|
});
|
|
195
195
|
|
|
196
196
|
const Root = "div";
|
|
197
|
-
function Font(props$1
|
|
197
|
+
function Font(props$1) {
|
|
198
198
|
const components = useArticleComponents();
|
|
199
199
|
const {
|
|
200
200
|
name,
|
|
@@ -229,7 +229,6 @@ function Font(props$1, ref) {
|
|
|
229
229
|
className: "timvir-s-1a2a7pz timvir-s-1hx0egp timvir-s-126k92a timvir-s-1mzt3pk"
|
|
230
230
|
};
|
|
231
231
|
return /*#__PURE__*/jsxs(Root, {
|
|
232
|
-
ref: ref,
|
|
233
232
|
...rest,
|
|
234
233
|
...rootStyleProps,
|
|
235
234
|
className: cx(rest.className, rootStyleProps.className),
|
|
@@ -250,6 +249,9 @@ function Font(props$1, ref) {
|
|
|
250
249
|
onClick: () => {
|
|
251
250
|
if (infoRef && contentRef) {
|
|
252
251
|
const infoParent = infoRef.parentElement;
|
|
252
|
+
if (!infoParent) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
253
255
|
if (infoParent.style.height === "0px") {
|
|
254
256
|
infoParent.style.height = `${infoRef.getBoundingClientRect().height}px`;
|
|
255
257
|
infoParent.style.opacity = "1";
|
|
@@ -300,6 +302,5 @@ function Font(props$1, ref) {
|
|
|
300
302
|
})]
|
|
301
303
|
});
|
|
302
304
|
}
|
|
303
|
-
var Font_default = /*#__PURE__*/React.forwardRef(Font);
|
|
304
305
|
|
|
305
|
-
export {
|
|
306
|
+
export { Font };
|
package/blocks/Grid/Grid.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import * as React from "react";
|
|
|
5
5
|
declare const Root = "div";
|
|
6
6
|
interface Props extends React.ComponentProps<typeof Root> {
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
9
|
-
export
|
|
8
|
+
export declare function Grid(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
package/blocks/Grid/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Grid } from "./Grid";
|
package/blocks/Grid/index.js
CHANGED
|
@@ -172,7 +172,7 @@ const layoutStyles = {
|
|
|
172
172
|
}};
|
|
173
173
|
|
|
174
174
|
const Root = "div";
|
|
175
|
-
function Grid(props$1
|
|
175
|
+
function Grid(props$1) {
|
|
176
176
|
const {
|
|
177
177
|
children,
|
|
178
178
|
className,
|
|
@@ -180,7 +180,6 @@ function Grid(props$1, ref) {
|
|
|
180
180
|
} = props$1;
|
|
181
181
|
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
182
182
|
return /*#__PURE__*/jsx(Root, {
|
|
183
|
-
ref: ref,
|
|
184
183
|
...rest,
|
|
185
184
|
...rootStyleProps,
|
|
186
185
|
style: {
|
|
@@ -207,7 +206,6 @@ function Grid(props$1, ref) {
|
|
|
207
206
|
})
|
|
208
207
|
});
|
|
209
208
|
}
|
|
210
|
-
var Grid_default = /*#__PURE__*/React.forwardRef(Grid);
|
|
211
209
|
const styles = {
|
|
212
210
|
root: {
|
|
213
211
|
k1xSpc: "timvir-s-rvj5dj",
|
|
@@ -218,4 +216,4 @@ const styles = {
|
|
|
218
216
|
}
|
|
219
217
|
};
|
|
220
218
|
|
|
221
|
-
export {
|
|
219
|
+
export { Grid };
|
package/blocks/Icon/Icon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Descriptor } from "./types";
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { Descriptor } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* The underlying DOM element which is rendered by this component.
|
|
5
5
|
*/
|
|
@@ -7,5 +7,5 @@ declare const Root = "div";
|
|
|
7
7
|
interface Props extends React.ComponentProps<typeof Root> {
|
|
8
8
|
descriptor: Descriptor;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
11
|
-
export
|
|
10
|
+
export declare function Icon(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
package/blocks/Icon/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Icon } from "./Icon";
|
package/blocks/Icon/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useResizeObserverEntry } from 'timvir/hooks';
|
|
3
|
-
import * as React from 'react';
|
|
4
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
function cx(...args) {
|
|
@@ -101,7 +100,7 @@ function Grid({
|
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
const Root = "div";
|
|
104
|
-
function Icon(props
|
|
103
|
+
function Icon(props) {
|
|
105
104
|
const {
|
|
106
105
|
descriptor,
|
|
107
106
|
...rest
|
|
@@ -112,7 +111,6 @@ function Icon(props, ref) {
|
|
|
112
111
|
className: "timvir-s-1n2onr6 timvir-s-1vjfegm timvir-s-dtfvks timvir-s-d2wi23"
|
|
113
112
|
};
|
|
114
113
|
return /*#__PURE__*/jsx(Root, {
|
|
115
|
-
ref: ref,
|
|
116
114
|
...rest,
|
|
117
115
|
...rootStyleProps,
|
|
118
116
|
className: cx(rest.className, rootStyleProps.className),
|
|
@@ -136,6 +134,5 @@ function Icon(props, ref) {
|
|
|
136
134
|
})
|
|
137
135
|
});
|
|
138
136
|
}
|
|
139
|
-
var Icon_default = /*#__PURE__*/React.forwardRef(Icon);
|
|
140
137
|
|
|
141
|
-
export {
|
|
138
|
+
export { Icon };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
5
5
|
size: number;
|
|
6
6
|
Component: React.ElementType;
|
|
7
7
|
}
|
|
8
|
-
declare function Canvas(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export
|
|
8
|
+
export declare function Canvas(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Canvas } from "./Canvas";
|