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.
Files changed (79) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/blocks/Arbitrary/Arbitrary.d.ts +2 -2
  3. package/blocks/Arbitrary/index.d.ts +1 -1
  4. package/blocks/Arbitrary/index.js +3 -5
  5. package/blocks/Arbitrary/samples/basic.d.ts +1 -1
  6. package/blocks/Code/Code.d.ts +3 -3
  7. package/blocks/Code/index.d.ts +1 -1
  8. package/blocks/Code/index.js +23 -10
  9. package/blocks/Code/samples/basic.d.ts +1 -1
  10. package/blocks/ColorBar/ColorBar.d.ts +3 -3
  11. package/blocks/ColorBar/index.d.ts +1 -1
  12. package/blocks/ColorBar/index.js +3 -5
  13. package/blocks/ColorBar/styles.css +2 -2
  14. package/blocks/ColorBook/ColorBook.d.ts +4 -4
  15. package/blocks/ColorBook/index.d.ts +1 -1
  16. package/blocks/ColorBook/index.js +2 -5
  17. package/blocks/Cover/Cover.d.ts +4 -4
  18. package/blocks/Cover/index.d.ts +1 -1
  19. package/blocks/Cover/index.js +2 -5
  20. package/blocks/Exhibit/Exhibit.d.ts +4 -4
  21. package/blocks/Exhibit/index.d.ts +1 -1
  22. package/blocks/Exhibit/index.js +2 -5
  23. package/blocks/Exhibit/samples/bleed.d.ts +1 -1
  24. package/blocks/Font/Font.d.ts +3 -3
  25. package/blocks/Font/index.d.ts +1 -1
  26. package/blocks/Font/index.js +5 -4
  27. package/blocks/Font/samples/basic.d.ts +1 -1
  28. package/blocks/Font/samples/timvir/body1.d.ts +1 -1
  29. package/blocks/Font/samples/timvir/caption.d.ts +1 -1
  30. package/blocks/Font/samples/timvir/h1.d.ts +1 -1
  31. package/blocks/Font/samples/timvir/h2.d.ts +1 -1
  32. package/blocks/Font/samples/timvir/h3.d.ts +1 -1
  33. package/blocks/Font/samples/timvir/h4.d.ts +1 -1
  34. package/blocks/Grid/Grid.d.ts +2 -2
  35. package/blocks/Grid/index.d.ts +1 -1
  36. package/blocks/Grid/index.js +2 -4
  37. package/blocks/Icon/Icon.d.ts +4 -4
  38. package/blocks/Icon/index.d.ts +1 -1
  39. package/blocks/Icon/index.js +2 -5
  40. package/blocks/Icon/internal/Canvas.d.ts +3 -3
  41. package/blocks/Icon/internal/index.d.ts +1 -1
  42. package/blocks/Message/Message.d.ts +3 -3
  43. package/blocks/Message/index.d.ts +1 -1
  44. package/blocks/Message/index.js +2 -4
  45. package/blocks/Message/samples/basic.d.ts +1 -1
  46. package/blocks/Swatch/Swatch.d.ts +3 -3
  47. package/blocks/Swatch/index.d.ts +1 -1
  48. package/blocks/Swatch/index.js +2 -4
  49. package/blocks/Viewport/Viewport.d.ts +3 -3
  50. package/blocks/Viewport/index.d.ts +1 -1
  51. package/blocks/Viewport/index.js +13 -11
  52. package/blocks/Viewport/internal/Caption.d.ts +2 -4
  53. package/blocks/Viewport/internal/Handle.d.ts +3 -4
  54. package/blocks/Viewport/internal/Ruler.d.ts +2 -2
  55. package/blocks/Viewport/internal/index.d.ts +3 -3
  56. package/blocks/WebLink/WebLink.d.ts +3 -3
  57. package/blocks/WebLink/index.d.ts +1 -1
  58. package/blocks/WebLink/index.js +3 -5
  59. package/blocks/WebLink/samples/basic.d.ts +1 -1
  60. package/blocks/styles.css +2 -2
  61. package/bus/index.d.ts +2 -2
  62. package/context/index.d.ts +3 -3
  63. package/context/index.js +1 -1
  64. package/core/components/Commands/internal/Action.d.ts +1 -1
  65. package/core/components/Footer/Footer.d.ts +4 -4
  66. package/core/components/Footer/samples/basic.d.ts +1 -1
  67. package/core/components/NavigationFooter/NavigationFooter.d.ts +2 -2
  68. package/core/components/NavigationFooter/samples/basic.d.ts +1 -1
  69. package/core/components/Page/Page.d.ts +4 -4
  70. package/core/components/Page/internal/Section.d.ts +1 -1
  71. package/core/components/Page/internal/Sidebar.d.ts +1 -1
  72. package/core/components/Page/internal/SidebarItem.d.ts +1 -1
  73. package/core/components/Page/types.d.ts +1 -1
  74. package/core/index.d.ts +2 -2
  75. package/core/index.js +8 -11
  76. package/package.json +36 -12
  77. package/search/Search/Search.d.ts +5 -5
  78. package/search/index.js +2 -5
  79. 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 const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- export default _default;
10
+ export declare function Arbitrary(props: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,2 +1,2 @@
1
- export { default as Arbitrary } from "./Arbitrary";
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, ref) {
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.Provider, {
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 { Arbitrary_default as Arbitrary, useContext };
329
+ export { Arbitrary, useContext };
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Arbitrary } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Arbitrary>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -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.ComponentPropsWithoutRef<typeof Root> {
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 const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
25
- export default _default;
24
+ export declare function Code(props: Props): import("react/jsx-runtime").JSX.Element;
25
+ export {};
@@ -1 +1 @@
1
- export { default as Code } from "./Code";
1
+ export { Code } from "./Code";
@@ -175,7 +175,7 @@ const layoutStyles = {
175
175
  }};
176
176
 
177
177
  const Root = "div";
178
- function Code(props$1, ref) {
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
- this.addClassToHast(node, {
199
+ const {
200
+ className
201
+ } = {
200
202
  className: "timvir-s-1lliihq timvir-s-1ghz6dp timvir-s-1g8o3q3 timvir-s-1d0dlzq"
201
- }.className);
203
+ };
204
+ {
205
+ this.addClassToHast(node, className);
206
+ }
202
207
  },
203
208
  line(node, index) {
204
- this.addClassToHast(node, {
209
+ const {
210
+ className
211
+ } = {
205
212
  className: "timvir-s-1rg5ohu timvir-s-h8yej3 timvir-s-e193im"
206
- }.className);
213
+ };
214
+ {
215
+ this.addClassToHast(node, className);
216
+ }
207
217
  if (highlightedLines?.includes(index)) {
208
- this.addClassToHast(node, {
218
+ const {
219
+ className
220
+ } = {
209
221
  className: "timvir-s-15fpjw5"
210
- }.className);
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 { Code_default as Code };
270
+ export { Code };
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Code } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Code>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -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.ComponentPropsWithoutRef<typeof Root> {
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 const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
18
- export default _default;
17
+ export declare function ColorBar(props: Props): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -1 +1 @@
1
- export { default as ColorBar } from "./ColorBar";
1
+ export { ColorBar } from "./ColorBar";
@@ -175,7 +175,7 @@ const layoutStyles = {
175
175
  }};
176
176
 
177
177
  const Root = "div";
178
- function ColorBar(props$1, ref) {
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-15311qs timvir-s-inzabm timvir-s-1bxid8z",
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 { ColorBar_default as ColorBar };
251
+ export { ColorBar };
@@ -7,8 +7,8 @@
7
7
  --timvir-b-ColorBar-value-borderRadiusDefault: 2px 0 0 2px;
8
8
  }
9
9
 
10
- .timvir-s-15311qs {
11
- --timvir-b-ColorBar-value-margin: 0;
10
+ .timvir-s-12l46wj {
11
+ --timvir-b-ColorBar-value-margin: 0px;
12
12
  }
13
13
 
14
14
  .timvir-s-1f9b50e {
@@ -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.ComponentPropsWithoutRef<typeof Root> {
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 const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
16
- export default _default;
15
+ export declare function ColorBook(props: Props): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -1 +1 @@
1
- export { default as ColorBook } from "./ColorBook";
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, ref) {
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 { ColorBook_default as ColorBook };
243
+ export { ColorBook };
@@ -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.ComponentPropsWithoutRef<typeof Root> {
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 const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
20
- export default _default;
19
+ export declare function Cover(props: Props): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -1 +1 @@
1
- export { default as Cover } from "./Cover";
1
+ export { Cover } from "./Cover";
@@ -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, ref) {
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 { Cover_default as Cover };
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.ComponentPropsWithoutRef<"div">;
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 const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
- export default _default;
22
+ export declare function Exhibit(props: Props): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -1 +1 @@
1
- export { default as Exhibit } from "./Exhibit";
1
+ export { Exhibit } from "./Exhibit";
@@ -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, ref) {
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 { Exhibit_default as Exhibit };
273
+ export { Exhibit };
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Exhibit } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Exhibit>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -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.ComponentPropsWithoutRef<typeof Root> {
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 const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
15
- export default _default;
14
+ export declare function Font(props: Props): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -1 +1 @@
1
- export { default as Font } from "./Font";
1
+ export { Font } from "./Font";
@@ -194,7 +194,7 @@ const SvgInfo = props => /*#__PURE__*/jsxs("svg", {
194
194
  });
195
195
 
196
196
  const Root = "div";
197
- function Font(props$1, ref) {
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 { Font_default as Font };
306
+ export { Font };
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Font } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Font } from "../..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Font } from "../..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Font } from "../..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Font } from "../..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Font } from "../..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import { Font } from "../..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
4
4
  export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -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 const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- export default _default;
8
+ export declare function Grid(props: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1 +1 @@
1
- export { default as Grid } from "./Grid";
1
+ export { Grid } from "./Grid";
@@ -172,7 +172,7 @@ const layoutStyles = {
172
172
  }};
173
173
 
174
174
  const Root = "div";
175
- function Grid(props$1, ref) {
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 { Grid_default as Grid };
219
+ export { Grid };
@@ -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 const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- export default _default;
10
+ export declare function Icon(props: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1 +1 @@
1
- export { default as Icon } from "./Icon";
1
+ export { Icon } from "./Icon";
@@ -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, ref) {
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 { Icon_default as Icon };
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 default Canvas;
8
+ export declare function Canvas(props: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1 +1 @@
1
- export { default as Canvas } from "./Canvas";
1
+ export { Canvas } from "./Canvas";