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.
Files changed (95) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
  3. package/blocks/Arbitrary/index.js +14 -14
  4. package/blocks/Arbitrary/samples/basic.d.ts +1 -1
  5. package/blocks/Code/Code.d.ts +1 -1
  6. package/blocks/Code/index.js +6 -6
  7. package/blocks/Code/samples/basic.d.ts +1 -1
  8. package/blocks/Code/samples/toggle.d.ts +2 -1
  9. package/blocks/ColorBar/ColorBar.d.ts +1 -1
  10. package/blocks/ColorBar/index.js +12 -12
  11. package/blocks/ColorBar/samples/basic.d.ts +1 -1
  12. package/blocks/ColorBook/ColorBook.d.ts +1 -1
  13. package/blocks/ColorBook/index.js +10 -10
  14. package/blocks/ColorBook/samples/basic.d.ts +2 -1
  15. package/blocks/Cover/Cover.d.ts +1 -1
  16. package/blocks/Cover/index.js +8 -8
  17. package/blocks/Cover/samples/basic.d.ts +1 -1
  18. package/blocks/Exhibit/Exhibit.d.ts +1 -1
  19. package/blocks/Exhibit/index.js +8 -6
  20. package/blocks/Exhibit/samples/basic.d.ts +1 -1
  21. package/blocks/Exhibit/samples/bleed.d.ts +1 -1
  22. package/blocks/Exhibit/samples/theme.d.ts +1 -1
  23. package/blocks/Exhibit/styles.css +8 -0
  24. package/blocks/Font/Font.d.ts +1 -1
  25. package/blocks/Font/index.js +25 -25
  26. package/blocks/Font/samples/basic.d.ts +1 -1
  27. package/blocks/Font/samples/timvir/body1.d.ts +1 -1
  28. package/blocks/Font/samples/timvir/caption.d.ts +1 -1
  29. package/blocks/Font/samples/timvir/h1.d.ts +1 -1
  30. package/blocks/Font/samples/timvir/h2.d.ts +1 -1
  31. package/blocks/Font/samples/timvir/h3.d.ts +1 -1
  32. package/blocks/Font/samples/timvir/h4.d.ts +1 -1
  33. package/blocks/Grid/Grid.d.ts +1 -1
  34. package/blocks/Grid/index.js +3 -3
  35. package/blocks/Grid/samples/basic.d.ts +1 -1
  36. package/blocks/Icon/Icon.d.ts +1 -1
  37. package/blocks/Icon/index.js +30 -30
  38. package/blocks/Icon/internal/Canvas.d.ts +1 -1
  39. package/blocks/Icon/samples/basic.d.ts +1 -1
  40. package/blocks/Message/Message.d.ts +1 -1
  41. package/blocks/Message/index.js +24 -24
  42. package/blocks/Message/samples/basic.d.ts +1 -1
  43. package/blocks/Swatch/Swatch.d.ts +1 -1
  44. package/blocks/Swatch/index.js +11 -11
  45. package/blocks/Swatch/samples/basic.d.ts +1 -1
  46. package/blocks/Viewport/Viewport.d.ts +1 -1
  47. package/blocks/Viewport/index.js +56 -56
  48. package/blocks/Viewport/internal/Caption.d.ts +2 -1
  49. package/blocks/Viewport/internal/Handle.d.ts +1 -1
  50. package/blocks/Viewport/internal/Ruler.d.ts +1 -1
  51. package/blocks/Viewport/samples/basic.d.ts +1 -1
  52. package/blocks/WebLink/WebLink.d.ts +1 -1
  53. package/blocks/WebLink/docs/index.mdx +2 -3
  54. package/blocks/WebLink/index.js +22 -17
  55. package/blocks/WebLink/samples/basic.d.ts +1 -1
  56. package/blocks/styles.css +8 -0
  57. package/builtins/index.js +49 -49
  58. package/builtins/styles.css +2 -2
  59. package/core/components/Commands/Commands.d.ts +2 -2
  60. package/core/components/Commands/index.d.ts +1 -1
  61. package/core/components/Commands/internal/Action.d.ts +2 -2
  62. package/core/components/Commands/internal/Dialog.d.ts +3 -2
  63. package/core/components/Commands/internal/index.d.ts +1 -1
  64. package/core/components/Footer/Footer.d.ts +2 -2
  65. package/core/components/Footer/index.d.ts +1 -1
  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/index.d.ts +1 -1
  69. package/core/components/NavigationFooter/samples/basic.d.ts +1 -1
  70. package/core/components/Page/Page.d.ts +2 -2
  71. package/core/components/Page/index.d.ts +1 -1
  72. package/core/components/Page/internal/Section.d.ts +3 -2
  73. package/core/components/Page/internal/Sidebar.d.ts +2 -2
  74. package/core/components/Page/internal/SidebarItem.d.ts +3 -2
  75. package/core/components/Page/internal/index.d.ts +1 -1
  76. package/core/components/Page/samples/basic.d.ts +1 -1
  77. package/core/components/Page/samples/layout.d.ts +1 -1
  78. package/core/index.js +180 -180
  79. package/core/styles.css +2 -2
  80. package/hooks/index.js +3 -1
  81. package/icons/AlertCircle.d.ts +1 -1
  82. package/icons/ChevronLeft.d.ts +1 -1
  83. package/icons/ChevronRight.d.ts +1 -1
  84. package/icons/ChevronsRight.d.ts +1 -1
  85. package/icons/Code.d.ts +1 -1
  86. package/icons/Codepen.d.ts +1 -1
  87. package/icons/Info.d.ts +1 -1
  88. package/icons/Link.d.ts +1 -1
  89. package/icons/Menu.d.ts +1 -1
  90. package/icons/XOctagon.d.ts +1 -1
  91. package/package.json +3 -3
  92. package/search/Search/Search.d.ts +2 -2
  93. package/search/Search/index.d.ts +1 -1
  94. package/search/Search/samples/basic.d.ts +1 -1
  95. package/styles.css +12 -4
@@ -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): import("react/jsx-runtime").JSX.Element;
4
+ export default function Sample(props: Props): React.JSX.Element;
5
5
  export {};
@@ -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
- export declare function Grid(props: Props): import("react/jsx-runtime").JSX.Element;
8
+ export declare function Grid(props: Props): React.JSX.Element;
9
9
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { jsx } from 'react/jsx-runtime';
2
+ import { jsxDEV } from 'react/jsx-dev-runtime';
3
3
 
4
4
  var styleq = {};
5
5
  var hasRequiredStyleq;
@@ -179,7 +179,7 @@ function Grid(props$1) {
179
179
  ...rest
180
180
  } = props$1;
181
181
  const rootStyleProps = props(layoutStyles.block, styles.root);
182
- return /*#__PURE__*/jsx(Root, {
182
+ return /*#__PURE__*/jsxDEV(Root, {
183
183
  ...rest,
184
184
  ...rootStyleProps,
185
185
  style: {
@@ -204,7 +204,7 @@ function Grid(props$1) {
204
204
  }
205
205
  });
206
206
  })
207
- });
207
+ }, void 0, false);
208
208
  }
209
209
  const styles = {
210
210
  root: {
@@ -1 +1 @@
1
- export default function Sample(): import("react/jsx-runtime").JSX.Element;
1
+ export default function Sample(): import("react").JSX.Element;
@@ -7,5 +7,5 @@ declare const Root = "div";
7
7
  interface Props extends React.ComponentProps<typeof Root> {
8
8
  descriptor: Descriptor;
9
9
  }
10
- export declare function Icon(props: Props): import("react/jsx-runtime").JSX.Element;
10
+ export declare function Icon(props: Props): React.JSX.Element;
11
11
  export {};
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useResizeObserverEntry } from 'timvir/hooks';
3
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
+ import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
4
4
 
5
5
  function cx(...args) {
6
6
  let str = "";
@@ -21,27 +21,27 @@ function Canvas(props) {
21
21
  size,
22
22
  Component
23
23
  } = props;
24
- return /*#__PURE__*/jsxs(Root$1, {
24
+ return /*#__PURE__*/jsxDEV(Root$1, {
25
25
  className: "timvir-s-rvj5dj timvir-s-1ku5rj1 timvir-s-1ypdohk timvir-s-dtfvks timvir-s-d2wi23",
26
26
  style: {
27
27
  width,
28
28
  height
29
29
  },
30
- children: [/*#__PURE__*/jsx("div", {
30
+ children: [/*#__PURE__*/jsxDEV("div", {
31
31
  className: "timvir-s-gkxs2y timvir-s-1ms6mhf timvir-s-12peec7 timvir-s-1lhehjl timvir-s-1cum3z5 timvir-s-zhuw26 timvir-s-1ww5jgt"
32
- }), /*#__PURE__*/jsx(Grid, {
32
+ }, void 0, false), /*#__PURE__*/jsxDEV(Grid, {
33
33
  className: "timvir-s-gkxs2y timvir-s-1ms6mhf timvir-s-1lliihq timvir-s-1j5ulbg timvir-s-zhuw26 timvir-s-47corl",
34
34
  size: size
35
- }), /*#__PURE__*/jsx("div", {
35
+ }, void 0, false), /*#__PURE__*/jsxDEV("div", {
36
36
  style: {
37
37
  gridColumn: 1,
38
38
  gridRow: 1,
39
39
  fontSize: `${size}px`,
40
40
  zIndex: 1
41
41
  },
42
- children: /*#__PURE__*/jsx(Component, {})
43
- })]
44
- });
42
+ children: /*#__PURE__*/jsxDEV(Component, {}, void 0, false)
43
+ }, void 0, false)]
44
+ }, void 0, true);
45
45
  }
46
46
  function Grid({
47
47
  size,
@@ -53,50 +53,50 @@ function Grid({
53
53
  const Corner = ({
54
54
  dx,
55
55
  dy
56
- }) => /*#__PURE__*/jsxs("g", {
57
- children: [/*#__PURE__*/jsx("line", {
56
+ }) => /*#__PURE__*/jsxDEV("g", {
57
+ children: [/*#__PURE__*/jsxDEV("line", {
58
58
  x1: dx(center, halfSize),
59
59
  x2: dx(center, halfSize + whiskerLength),
60
60
  y1: dy(center, halfSize),
61
61
  y2: dy(center, halfSize),
62
62
  strokeWidth: 1,
63
63
  stroke: "#EEEEEE"
64
- }), /*#__PURE__*/jsx("line", {
64
+ }, void 0, false), /*#__PURE__*/jsxDEV("line", {
65
65
  x1: dx(center, halfSize),
66
66
  x2: dx(center, halfSize),
67
67
  y1: dy(center, halfSize),
68
68
  y2: dy(center, halfSize + whiskerLength),
69
69
  strokeWidth: 1,
70
70
  stroke: "#EEEEEE"
71
- })]
72
- });
71
+ }, void 0, false)]
72
+ }, void 0, true);
73
73
  const add = (a, b) => a + b;
74
74
  const sub = (a, b) => a - b;
75
- return /*#__PURE__*/jsxs("svg", {
75
+ return /*#__PURE__*/jsxDEV("svg", {
76
76
  width: "120",
77
77
  height: "120",
78
78
  viewBox: "0 0 120 120",
79
79
  ...rest,
80
- children: [/*#__PURE__*/jsx("rect", {
80
+ children: [/*#__PURE__*/jsxDEV("rect", {
81
81
  x: center - halfSize,
82
82
  y: center - halfSize,
83
83
  width: size,
84
84
  height: size,
85
85
  fill: "#FFBBFF88"
86
- }), /*#__PURE__*/jsx(Corner, {
86
+ }, void 0, false), /*#__PURE__*/jsxDEV(Corner, {
87
87
  dx: sub,
88
88
  dy: sub
89
- }), /*#__PURE__*/jsx(Corner, {
89
+ }, void 0, false), /*#__PURE__*/jsxDEV(Corner, {
90
90
  dx: add,
91
91
  dy: sub
92
- }), /*#__PURE__*/jsx(Corner, {
92
+ }, void 0, false), /*#__PURE__*/jsxDEV(Corner, {
93
93
  dx: add,
94
94
  dy: add
95
- }), /*#__PURE__*/jsx(Corner, {
95
+ }, void 0, false), /*#__PURE__*/jsxDEV(Corner, {
96
96
  dx: sub,
97
97
  dy: add
98
- })]
99
- });
98
+ }, void 0, false)]
99
+ }, void 0, true);
100
100
  }
101
101
 
102
102
  const Root = "div";
@@ -110,7 +110,7 @@ function Icon(props) {
110
110
  const rootStyleProps = {
111
111
  className: "timvir-s-1n2onr6 timvir-s-1vjfegm timvir-s-dtfvks timvir-s-d2wi23"
112
112
  };
113
- return /*#__PURE__*/jsx(Root, {
113
+ return /*#__PURE__*/jsxDEV(Root, {
114
114
  ...rest,
115
115
  ...rootStyleProps,
116
116
  className: cx(rest.className, rootStyleProps.className),
@@ -118,21 +118,21 @@ function Icon(props) {
118
118
  ...rootStyleProps.style,
119
119
  ...rest.style
120
120
  },
121
- children: /*#__PURE__*/jsx("div", {
121
+ children: /*#__PURE__*/jsxDEV("div", {
122
122
  ref: roRef,
123
- children: width !== undefined && /*#__PURE__*/jsxs(Fragment, {
124
- children: [/*#__PURE__*/jsx(Canvas, {
123
+ children: width !== undefined && /*#__PURE__*/jsxDEV(Fragment, {
124
+ children: [/*#__PURE__*/jsxDEV(Canvas, {
125
125
  width: width,
126
126
  height: width,
127
127
  size: 32,
128
128
  Component: descriptor.instances[0].Component
129
- }), /*#__PURE__*/jsx("div", {
129
+ }, void 0, false), /*#__PURE__*/jsxDEV("div", {
130
130
  className: "timvir-s-dj266r timvir-s-uxw1ft timvir-s-boafo0 timvir-s-1j5ulbg timvir-s-zhuw26 timvir-s-8knxv4 timvir-s-1cdhzux timvir-s-2b8uid timvir-s-87ps6o timvir-s-47corl timvir-s-10l6tqk timvir-s-1nrll8i timvir-s-1kuhel0 timvir-s-1nc5ocm",
131
131
  children: descriptor.name
132
- })]
133
- })
134
- })
135
- });
132
+ }, void 0, false)]
133
+ }, void 0, true)
134
+ }, void 0, false)
135
+ }, void 0, false);
136
136
  }
137
137
 
138
138
  export { Icon };
@@ -5,5 +5,5 @@ interface Props {
5
5
  size: number;
6
6
  Component: React.ElementType;
7
7
  }
8
- export declare function Canvas(props: Props): import("react/jsx-runtime").JSX.Element;
8
+ export declare function Canvas(props: Props): React.JSX.Element;
9
9
  export {};
@@ -1 +1 @@
1
- export default function Sample(): import("react/jsx-runtime").JSX.Element;
1
+ export default function Sample(): import("react").JSX.Element;
@@ -6,5 +6,5 @@ declare const Root = "div";
6
6
  interface Props extends React.ComponentPropsWithRef<typeof Root> {
7
7
  variant?: "info" | "warning" | "alert";
8
8
  }
9
- export declare function Message(props: Props): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Message(props: Props): React.JSX.Element;
10
10
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { jsxDEV } from 'react/jsx-dev-runtime';
3
3
 
4
4
  var styleq = {};
5
5
  var hasRequiredStyleq;
@@ -160,7 +160,7 @@ const layoutStyles = {
160
160
  $$css: true
161
161
  }};
162
162
 
163
- const SvgAlertCircle = props => /*#__PURE__*/jsxs("svg", {
163
+ const SvgAlertCircle = props => /*#__PURE__*/jsxDEV("svg", {
164
164
  xmlns: "http://www.w3.org/2000/svg",
165
165
  width: 24,
166
166
  height: 24,
@@ -171,16 +171,16 @@ const SvgAlertCircle = props => /*#__PURE__*/jsxs("svg", {
171
171
  strokeWidth: 2,
172
172
  viewBox: "0 0 24 24",
173
173
  ...props,
174
- children: [/*#__PURE__*/jsx("circle", {
174
+ children: [/*#__PURE__*/jsxDEV("circle", {
175
175
  cx: 12,
176
176
  cy: 12,
177
177
  r: 10
178
- }), /*#__PURE__*/jsx("path", {
178
+ }, void 0, false), /*#__PURE__*/jsxDEV("path", {
179
179
  d: "M12 8v4M12 16h.01"
180
- })]
181
- });
180
+ }, void 0, false)]
181
+ }, void 0, true);
182
182
 
183
- const SvgChevronsRight = props => /*#__PURE__*/jsx("svg", {
183
+ const SvgChevronsRight = props => /*#__PURE__*/jsxDEV("svg", {
184
184
  xmlns: "http://www.w3.org/2000/svg",
185
185
  width: 24,
186
186
  height: 24,
@@ -191,12 +191,12 @@ const SvgChevronsRight = props => /*#__PURE__*/jsx("svg", {
191
191
  strokeWidth: 2,
192
192
  viewBox: "0 0 24 24",
193
193
  ...props,
194
- children: /*#__PURE__*/jsx("path", {
194
+ children: /*#__PURE__*/jsxDEV("path", {
195
195
  d: "m13 17 5-5-5-5M6 17l5-5-5-5"
196
- })
197
- });
196
+ }, void 0, false)
197
+ }, void 0, false);
198
198
 
199
- const SvgXOctagon = props => /*#__PURE__*/jsx("svg", {
199
+ const SvgXOctagon = props => /*#__PURE__*/jsxDEV("svg", {
200
200
  xmlns: "http://www.w3.org/2000/svg",
201
201
  width: 24,
202
202
  height: 24,
@@ -207,10 +207,10 @@ const SvgXOctagon = props => /*#__PURE__*/jsx("svg", {
207
207
  strokeWidth: 2,
208
208
  viewBox: "0 0 24 24",
209
209
  ...props,
210
- children: /*#__PURE__*/jsx("path", {
210
+ children: /*#__PURE__*/jsxDEV("path", {
211
211
  d: "M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86zM15 9l-6 6M9 9l6 6"
212
- })
213
- });
212
+ }, void 0, false)
213
+ }, void 0, false);
214
214
 
215
215
  const Root = "div";
216
216
  function Message(props$1) {
@@ -219,20 +219,20 @@ function Message(props$1) {
219
219
  children,
220
220
  ...rest
221
221
  } = props$1;
222
- return /*#__PURE__*/jsxs(Root, {
222
+ return /*#__PURE__*/jsxDEV(Root, {
223
223
  ...props(layoutStyles.block, styles.root, variant && styles[variant]),
224
224
  ...rest,
225
225
  children: [variant && {
226
- info: /*#__PURE__*/jsx(SvgChevronsRight, {
226
+ info: /*#__PURE__*/jsxDEV(SvgChevronsRight, {
227
227
  className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-kggzb5"
228
- }),
229
- warning: /*#__PURE__*/jsx(SvgAlertCircle, {
228
+ }, void 0, false),
229
+ warning: /*#__PURE__*/jsxDEV(SvgAlertCircle, {
230
230
  className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-1hw0bdt"
231
- }),
232
- alert: /*#__PURE__*/jsx(SvgXOctagon, {
231
+ }, void 0, false),
232
+ alert: /*#__PURE__*/jsxDEV(SvgXOctagon, {
233
233
  className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-1co8gj4"
234
- })
235
- }[variant], /*#__PURE__*/jsx("div", {
234
+ }, void 0, false)
235
+ }[variant], /*#__PURE__*/jsxDEV("div", {
236
236
  className: "timvir-s-1iyjqo2 timvir-s-euugli",
237
237
  children: React.Children.toArray(children).map((child, index, array) => {
238
238
  if (/*#__PURE__*/React.isValidElement(child)) {
@@ -253,8 +253,8 @@ function Message(props$1) {
253
253
  }
254
254
  return child;
255
255
  })
256
- })]
257
- });
256
+ }, void 0, false)]
257
+ }, void 0, true);
258
258
  }
259
259
  const styles = {
260
260
  root: {
@@ -1,5 +1,5 @@
1
1
  import type * as React from "react";
2
2
  import { Message } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Message>>;
4
- export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
4
+ export default function Sample(props: Props): React.JSX.Element;
5
5
  export {};
@@ -29,5 +29,5 @@ interface Props extends React.ComponentPropsWithRef<typeof Root> {
29
29
  */
30
30
  ancestry?: string;
31
31
  }
32
- export declare function Swatch(props: Props): import("react/jsx-runtime").JSX.Element;
32
+ export declare function Swatch(props: Props): React.JSX.Element;
33
33
  export {};
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import * as React from 'react';
3
3
  import { useBlock } from 'timvir/core';
4
- import { jsx, jsxs } from 'react/jsx-runtime';
4
+ import { jsxDEV } from 'react/jsx-dev-runtime';
5
5
 
6
6
  var styleq = {};
7
7
  var hasRequiredStyleq;
@@ -195,7 +195,7 @@ function Swatch(props$1) {
195
195
  const innerStyleProps = {
196
196
  className: "timvir-s-78zum5 timvir-s-dt5ytf timvir-s-l56j7k timvir-s-10l6tqk timvir-s-13vifvy timvir-s-3m8u43 timvir-s-1ey2m1c timvir-s-u96u03 timvir-s-zhuw26 timvir-s-84vhe8 timvir-s-1ypdohk timvir-s-1cum3z5"
197
197
  };
198
- return /*#__PURE__*/jsx(Root, {
198
+ return /*#__PURE__*/jsxDEV(Root, {
199
199
  role: "button",
200
200
  ...rest,
201
201
  ...rootStyleProps,
@@ -214,26 +214,26 @@ function Swatch(props$1) {
214
214
  setLabel(name);
215
215
  onMouseLeave?.(ev);
216
216
  },
217
- children: /*#__PURE__*/jsxs("div", {
217
+ children: /*#__PURE__*/jsxDEV("div", {
218
218
  ...innerStyleProps,
219
219
  style: {
220
220
  ...innerStyleProps.style,
221
221
  background: value,
222
222
  color: contrastValue
223
223
  },
224
- children: [/*#__PURE__*/jsxs("div", {
224
+ children: [/*#__PURE__*/jsxDEV("div", {
225
225
  className: "timvir-s-78zum5 timvir-s-1qughib timvir-s-6s0dn4 timvir-s-o5v014",
226
- children: [label && /*#__PURE__*/jsx("div", {
226
+ children: [label && /*#__PURE__*/jsxDEV("div", {
227
227
  children: label
228
- }), label === name && /*#__PURE__*/jsx("div", {
228
+ }, void 0, false), label === name && /*#__PURE__*/jsxDEV("div", {
229
229
  children: value
230
- })]
231
- }), ancestry && /*#__PURE__*/jsx("div", {
230
+ }, void 0, false)]
231
+ }, void 0, true), ancestry && /*#__PURE__*/jsxDEV("div", {
232
232
  className: "timvir-s-1yrsyyn timvir-s-byyjgo timvir-s-sfzzmd timvir-s-o5v014",
233
233
  children: ancestry
234
- })]
235
- })
236
- });
234
+ }, void 0, false)]
235
+ }, void 0, true)
236
+ }, void 0, false);
237
237
  }
238
238
  const styles = {
239
239
  root: {
@@ -1 +1 @@
1
- export default function Sample(): import("react/jsx-runtime").JSX.Element;
1
+ export default function Sample(): import("react").JSX.Element;
@@ -13,5 +13,5 @@ interface Props extends React.ComponentPropsWithRef<typeof Root> {
13
13
  */
14
14
  code?: string;
15
15
  }
16
- export declare function Viewport(props: Props): import("react/jsx-runtime").JSX.Element;
16
+ export declare function Viewport(props: Props): React.JSX.Element;
17
17
  export {};
@@ -2,7 +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 { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
+ import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
6
6
  import { Code } from 'timvir/blocks';
7
7
 
8
8
  var styleq = {};
@@ -180,7 +180,7 @@ function cx(...args) {
180
180
  return str;
181
181
  }
182
182
 
183
- const SvgCode = props => /*#__PURE__*/jsx("svg", {
183
+ const SvgCode = props => /*#__PURE__*/jsxDEV("svg", {
184
184
  xmlns: "http://www.w3.org/2000/svg",
185
185
  width: 24,
186
186
  height: 24,
@@ -191,10 +191,10 @@ const SvgCode = props => /*#__PURE__*/jsx("svg", {
191
191
  strokeWidth: 2,
192
192
  viewBox: "0 0 24 24",
193
193
  ...props,
194
- children: /*#__PURE__*/jsx("path", {
194
+ children: /*#__PURE__*/jsxDEV("path", {
195
195
  d: "m16 18 6-6-6-6M8 6l-6 6 6 6"
196
- })
197
- });
196
+ }, void 0, false)
197
+ }, void 0, false);
198
198
 
199
199
  function Caption(props$1) {
200
200
  const components = useArticleComponents();
@@ -203,17 +203,17 @@ function Caption(props$1) {
203
203
  code
204
204
  } = props$1;
205
205
  const [codeRef, setCodeRef] = React.useState(null);
206
- return /*#__PURE__*/jsxs(Fragment, {
207
- children: [/*#__PURE__*/jsxs("figcaption", {
206
+ return /*#__PURE__*/jsxDEV(Fragment, {
207
+ children: [/*#__PURE__*/jsxDEV("figcaption", {
208
208
  ...props(layoutStyles.block, styles$1.figcaption),
209
- children: [/*#__PURE__*/jsxs("div", {
210
- children: ["Source:", " ", /*#__PURE__*/jsx(components.a, {
209
+ children: [/*#__PURE__*/jsxDEV("div", {
210
+ children: ["Source:", " ", /*#__PURE__*/jsxDEV(components.a, {
211
211
  href: src,
212
212
  target: "_blank",
213
213
  rel: "noopener",
214
214
  children: src
215
- })]
216
- }), code && /*#__PURE__*/jsx("div", {
215
+ }, void 0, false)]
216
+ }, void 0, true), code && /*#__PURE__*/jsxDEV("div", {
217
217
  className: "timvir-s-1ypdohk timvir-s-gmrl4 timvir-s-1o7uuvo",
218
218
  onClick: () => {
219
219
  if (codeRef) {
@@ -230,24 +230,24 @@ function Caption(props$1) {
230
230
  }
231
231
  }
232
232
  },
233
- children: /*#__PURE__*/jsx(SvgCode, {
233
+ children: /*#__PURE__*/jsxDEV(SvgCode, {
234
234
  width: "1.6em",
235
235
  height: "1.6em",
236
236
  className: "timvir-s-1lliihq"
237
- })
238
- })]
239
- }), code && /*#__PURE__*/jsx("div", {
237
+ }, void 0, false)
238
+ }, void 0, false)]
239
+ }, void 0, true), code && /*#__PURE__*/jsxDEV("div", {
240
240
  className: "timvir-s-b3r6kr timvir-s-104cjix timvir-s-qtp20y timvir-s-g01cxk",
241
- children: /*#__PURE__*/jsx("div", {
241
+ children: /*#__PURE__*/jsxDEV("div", {
242
242
  ref: setCodeRef,
243
243
  className: "timvir-s-14vqqas",
244
- children: /*#__PURE__*/jsx(Code, {
244
+ children: /*#__PURE__*/jsxDEV(Code, {
245
245
  language: "jsx",
246
246
  children: code
247
- })
248
- })
249
- })]
250
- });
247
+ }, void 0, false)
248
+ }, void 0, false)
249
+ }, void 0, false)]
250
+ }, void 0, true);
251
251
  }
252
252
  const styles$1 = {
253
253
  figcaption: {
@@ -269,7 +269,7 @@ function Handle(props) {
269
269
  edge,
270
270
  iframeRef
271
271
  } = props;
272
- return /*#__PURE__*/jsx("div", {
272
+ return /*#__PURE__*/jsxDEV("div", {
273
273
  className: "timvir-s-diuk5s timvir-s-1ypdohk timvir-s-78zum5 timvir-s-6s0dn4 timvir-s-l56j7k timvir-s-byyjgo timvir-s-1cdhzux timvir-s-1cum3z5 timvir-s-blhjk6 timvir-s-1o7uuvo timvir-s-10xrfx7 timvir-s-1kpm4h4",
274
274
  onMouseDown: () => {
275
275
  lock.current = edge;
@@ -281,16 +281,16 @@ function Handle(props) {
281
281
  style: {
282
282
  gridColumn
283
283
  },
284
- children: /*#__PURE__*/jsx("svg", {
284
+ children: /*#__PURE__*/jsxDEV("svg", {
285
285
  width: "56",
286
286
  height: "56",
287
287
  viewBox: "0 0 56 56",
288
- children: /*#__PURE__*/jsx("path", {
288
+ children: /*#__PURE__*/jsxDEV("path", {
289
289
  fill: "currentColor",
290
290
  d: "M27 18h2v20h-2V18zm-6 0h2v20h-2V18zm12 0h2v20h-2V18z"
291
- })
292
- })
293
- });
291
+ }, void 0, false)
292
+ }, void 0, false)
293
+ }, void 0, false);
294
294
  }
295
295
 
296
296
  const height = 16;
@@ -299,31 +299,31 @@ function Ruler(props) {
299
299
  containerWidth = 0,
300
300
  viewportWidth = 0
301
301
  } = props;
302
- return /*#__PURE__*/jsxs("svg", {
302
+ return /*#__PURE__*/jsxDEV("svg", {
303
303
  viewBox: `-${containerWidth / 2} ${-height / 2} ${containerWidth} ${height}`,
304
304
  className: "timvir-s-h8yej3 timvir-s-1lliihq timvir-s-lup9mm timvir-s-14kudrl",
305
- children: [/*#__PURE__*/jsx("rect", {
305
+ children: [/*#__PURE__*/jsxDEV("rect", {
306
306
  x: -containerWidth / 2,
307
307
  y: -height / 2,
308
308
  width: containerWidth,
309
309
  height: height,
310
310
  fill: "var(--timvir-secondary-background-color)"
311
- }), /*#__PURE__*/jsx("line", {
311
+ }, void 0, false), /*#__PURE__*/jsxDEV("line", {
312
312
  x1: -viewportWidth / 2,
313
313
  x2: -viewportWidth / 2,
314
314
  y1: -height / 2,
315
315
  y2: height / 2,
316
316
  strokeWidth: 2,
317
317
  stroke: "var(--timvir-text-color)"
318
- }), /*#__PURE__*/jsx("line", {
318
+ }, void 0, false), /*#__PURE__*/jsxDEV("line", {
319
319
  x1: viewportWidth / 2,
320
320
  x2: viewportWidth / 2,
321
321
  y1: -height / 2,
322
322
  y2: height / 2,
323
323
  strokeWidth: 2,
324
324
  stroke: "var(--timvir-text-color)"
325
- })]
326
- });
325
+ }, void 0, false)]
326
+ }, void 0, true);
327
327
  }
328
328
 
329
329
  const Root = "div";
@@ -390,8 +390,8 @@ function Viewport(props$1) {
390
390
  setMaxHeight(Math.max(height, maxHeight ?? 0));
391
391
  });
392
392
  const rootStyleProps = props(layoutStyles.block, layoutStyles.fullWidth, styles.root);
393
- return /*#__PURE__*/jsxs(Fragment, {
394
- children: [/*#__PURE__*/jsxs(Root, {
393
+ return /*#__PURE__*/jsxDEV(Fragment, {
394
+ children: [/*#__PURE__*/jsxDEV(Root, {
395
395
  "data-timvir-b-viewport": true,
396
396
  ...rest,
397
397
  className: cx(!state.settled && "timvir-unsettled", className, rootStyleProps.className),
@@ -399,22 +399,22 @@ function Viewport(props$1) {
399
399
  ...rootStyleProps.style,
400
400
  ...rest.style
401
401
  },
402
- children: [/*#__PURE__*/jsxs("div", {
402
+ children: [/*#__PURE__*/jsxDEV("div", {
403
403
  ref: svgRef,
404
404
  className: "timvir-s-1n2onr6",
405
- children: [/*#__PURE__*/jsx(Ruler, {
405
+ children: [/*#__PURE__*/jsxDEV(Ruler, {
406
406
  containerWidth: svgROE?.contentRect.width,
407
407
  viewportWidth: width
408
- }), /*#__PURE__*/jsxs("div", {
408
+ }, void 0, false), /*#__PURE__*/jsxDEV("div", {
409
409
  className: "timvir-s-10l6tqk timvir-s-wa60dl timvir-s-1nrll8i timvir-s-11lhmoz timvir-s-ss6m8b",
410
410
  children: [width, "px"]
411
- })]
412
- }), /*#__PURE__*/jsx("div", {
411
+ }, void 0, true)]
412
+ }, void 0, true), /*#__PURE__*/jsxDEV("div", {
413
413
  className: "timvir-s-78zum5 timvir-s-1qjc9v5 timvir-s-l56j7k",
414
- children: /*#__PURE__*/jsx("div", {
415
- children: /*#__PURE__*/jsxs("div", {
414
+ children: /*#__PURE__*/jsxDEV("div", {
415
+ children: /*#__PURE__*/jsxDEV("div", {
416
416
  className: "timvir-s-18zih8k timvir-s-rvj5dj timvir-s-7tmw4v timvir-s-yy29n5 timvir-s-jv0b96",
417
- children: [/*#__PURE__*/jsx("div", {
417
+ children: [/*#__PURE__*/jsxDEV("div", {
418
418
  ...{
419
419
  0: {
420
420
  className: "timvir-s-wonfvy timvir-s-w75i6v timvir-s-1n2onr6 timvir-s-98rzlu timvir-s-pyat2d timvir-s-1h3vnj2 timvir-s-10r4kp7 timvir-s-b3r6kr"
@@ -427,7 +427,7 @@ function Viewport(props$1) {
427
427
  width,
428
428
  height
429
429
  },
430
- children: /*#__PURE__*/jsx("iframe", {
430
+ children: /*#__PURE__*/jsxDEV("iframe", {
431
431
  ref: iframeRef,
432
432
  frameBorder: "0",
433
433
  src: src,
@@ -471,35 +471,35 @@ function Viewport(props$1) {
471
471
  opacity: height === undefined ? 0 : 1,
472
472
  pointerEvents: height === undefined ? "none" : undefined
473
473
  }
474
- })
475
- }), /*#__PURE__*/jsx(Handle, {
474
+ }, void 0, false)
475
+ }, void 0, false), /*#__PURE__*/jsxDEV(Handle, {
476
476
  gridColumn: "1",
477
477
  lock: lock,
478
478
  edge: "left",
479
479
  iframeRef: iframeRef
480
- }), /*#__PURE__*/jsx(Handle, {
480
+ }, void 0, false), /*#__PURE__*/jsxDEV(Handle, {
481
481
  gridColumn: "3",
482
482
  lock: lock,
483
483
  edge: "right",
484
484
  iframeRef: iframeRef
485
- })]
486
- })
487
- })
488
- }), /*#__PURE__*/jsx(Ruler, {
485
+ }, void 0, false)]
486
+ }, void 0, true)
487
+ }, void 0, false)
488
+ }, void 0, false), /*#__PURE__*/jsxDEV(Ruler, {
489
489
  containerWidth: svgROE?.contentRect.width,
490
490
  viewportWidth: width
491
- })]
492
- }), /*#__PURE__*/jsx(Caption, {
491
+ }, void 0, false)]
492
+ }, void 0, true), /*#__PURE__*/jsxDEV(Caption, {
493
493
  src: src,
494
494
  code: code
495
- }), /*#__PURE__*/jsx("div", {
495
+ }, void 0, false), /*#__PURE__*/jsxDEV("div", {
496
496
  style: {
497
497
  gridColumn: "1 / -1",
498
498
  height: (maxHeight ?? 0) - (height ?? 0),
499
499
  transition: "height 0.16s"
500
500
  }
501
- })]
502
- });
501
+ }, void 0, false)]
502
+ }, void 0, true);
503
503
  }
504
504
  const styles = {
505
505
  root: {