timvir 0.2.38 → 0.2.42

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 (113) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
  3. package/blocks/Arbitrary/index.js +232 -78
  4. package/blocks/Arbitrary/samples/basic.d.ts +1 -1
  5. package/blocks/Arbitrary/styles.css +166 -6
  6. package/blocks/Code/Code.d.ts +0 -6
  7. package/blocks/Code/docs/index.mdx +0 -11
  8. package/blocks/Code/index.js +213 -112
  9. package/blocks/Code/samples/basic.d.ts +1 -1
  10. package/blocks/Code/samples/toggle.d.ts +1 -2
  11. package/blocks/Code/styles.css +100 -15
  12. package/blocks/ColorBar/docs/index.mdx +8 -2
  13. package/blocks/ColorBar/index.js +223 -68
  14. package/blocks/ColorBar/samples/basic.d.ts +1 -2
  15. package/blocks/ColorBar/styles.css +103 -4
  16. package/blocks/ColorBook/docs/index.mdx +1 -1
  17. package/blocks/ColorBook/index.js +222 -60
  18. package/blocks/ColorBook/samples/basic.d.ts +1 -2
  19. package/blocks/ColorBook/styles.css +166 -6
  20. package/blocks/Cover/index.js +177 -48
  21. package/blocks/Cover/samples/basic.d.ts +1 -2
  22. package/blocks/Cover/styles.css +18 -0
  23. package/blocks/Exhibit/index.js +205 -50
  24. package/blocks/Exhibit/samples/basic.d.ts +1 -2
  25. package/blocks/Exhibit/samples/bleed.d.ts +1 -1
  26. package/blocks/Exhibit/samples/usage.d.ts +1 -2
  27. package/blocks/Exhibit/styles.css +66 -3
  28. package/blocks/Font/index.js +239 -98
  29. package/blocks/Font/samples/basic.d.ts +1 -1
  30. package/blocks/Font/samples/timvir/body1.d.ts +1 -1
  31. package/blocks/Font/samples/timvir/caption.d.ts +1 -1
  32. package/blocks/Font/samples/timvir/h1.d.ts +1 -1
  33. package/blocks/Font/samples/timvir/h2.d.ts +1 -1
  34. package/blocks/Font/samples/timvir/h3.d.ts +1 -1
  35. package/blocks/Font/samples/timvir/h4.d.ts +1 -1
  36. package/blocks/Font/styles.css +82 -8
  37. package/blocks/Grid/docs/index.mdx +4 -4
  38. package/blocks/Grid/index.js +181 -36
  39. package/blocks/Grid/samples/basic.d.ts +1 -2
  40. package/blocks/Grid/styles.css +20 -1
  41. package/blocks/Icon/docs/index.mdx +13 -13
  42. package/blocks/Icon/index.js +93 -100
  43. package/blocks/Icon/internal/Canvas.d.ts +1 -1
  44. package/blocks/Icon/samples/basic.d.ts +1 -2
  45. package/blocks/Icon/styles.css +117 -5
  46. package/blocks/Icon/types.d.ts +3 -2
  47. package/blocks/Message/docs/index.mdx +5 -8
  48. package/blocks/Message/index.js +238 -55
  49. package/blocks/Message/samples/basic.d.ts +1 -1
  50. package/blocks/Message/styles.css +94 -6
  51. package/blocks/Swatch/docs/index.mdx +16 -16
  52. package/blocks/Swatch/index.js +199 -45
  53. package/blocks/Swatch/samples/basic.d.ts +1 -2
  54. package/blocks/Swatch/styles.css +82 -4
  55. package/blocks/Viewport/index.js +360 -237
  56. package/blocks/Viewport/internal/Caption.d.ts +1 -1
  57. package/blocks/Viewport/internal/Handle.d.ts +1 -1
  58. package/blocks/Viewport/internal/Ruler.d.ts +1 -2
  59. package/blocks/Viewport/samples/basic.d.ts +1 -2
  60. package/blocks/Viewport/styles.css +259 -14
  61. package/blocks/WebLink/index.js +217 -62
  62. package/blocks/WebLink/samples/basic.d.ts +1 -1
  63. package/blocks/WebLink/styles.css +170 -8
  64. package/blocks/styles.css +1460 -97
  65. package/builtins/components.d.ts +2 -2
  66. package/builtins/index.js +306 -239
  67. package/builtins/styles.css +267 -14
  68. package/context/index.d.ts +6 -1
  69. package/core/components/Commands/Commands.d.ts +2 -0
  70. package/core/components/Commands/internal/Action.d.ts +1 -1
  71. package/core/components/Commands/internal/Dialog.d.ts +1 -2
  72. package/core/components/Commands/internal/index.d.ts +0 -1
  73. package/core/components/Footer/samples/basic.d.ts +1 -1
  74. package/core/components/NavigationFooter/NavigationFooter.d.ts +4 -2
  75. package/core/components/NavigationFooter/samples/basic.d.ts +1 -1
  76. package/core/components/Page/Page.d.ts +12 -3
  77. package/core/components/Page/docs/index.mdx +44 -11
  78. package/core/components/Page/internal/Section.d.ts +1 -2
  79. package/core/components/Page/internal/Sidebar.d.ts +1 -1
  80. package/core/components/Page/internal/SidebarItem.d.ts +1 -2
  81. package/core/components/Page/internal/index.d.ts +0 -1
  82. package/core/components/Page/samples/basic.d.ts +1 -2
  83. package/core/components/Page/samples/layout.d.ts +1 -2
  84. package/core/index.d.ts +191 -2
  85. package/core/index.js +674 -449
  86. package/core/layout.d.ts +40 -0
  87. package/core/styles.css +857 -88
  88. package/core/theme/detector.js +1 -1
  89. package/global.css +79 -0
  90. package/internal/cx.d.ts +1 -0
  91. package/knip.config.d.ts +5 -0
  92. package/package.json +1 -2
  93. package/search/Search/samples/basic.d.ts +1 -2
  94. package/search/index.js +2 -208
  95. package/styles.css +2670 -222
  96. package/blocks/Code/theme.d.ts +0 -2
  97. package/bus/styles.css +0 -1
  98. package/context/styles.css +0 -1
  99. package/core/theme/index.d.ts +0 -1
  100. package/hooks/styles.css +0 -1
  101. package/search/Search/internal/Dialog.d.ts +0 -20
  102. package/search/Search/internal/index.d.ts +0 -1
  103. package/search/SearchBoxInput/SearchBoxInput.d.ts +0 -11
  104. package/search/SearchBoxInput/docs/api.mdx +0 -76
  105. package/search/SearchBoxInput/docs/index.mdx +0 -6
  106. package/search/SearchBoxInput/index.d.ts +0 -1
  107. package/search/SearchBoxInput/samples/basic.d.ts +0 -2
  108. package/search/SearchBoxListItem/SearchBoxListItem.d.ts +0 -13
  109. package/search/SearchBoxListItem/docs/api.mdx +0 -76
  110. package/search/SearchBoxListItem/docs/index.mdx +0 -30
  111. package/search/SearchBoxListItem/index.d.ts +0 -1
  112. package/search/SearchBoxListItem/samples/basic.d.ts +0 -2
  113. package/search/styles.css +0 -16
@@ -1,20 +1,273 @@
1
- .a1yepc47{color:inherit;-webkit-text-decoration:none;text-decoration:none;}.a1yepc47:hover svg{opacity:1;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;visibility:visible;--visibility-delay:0s;}
2
- .calmbc7{display:inline-block;margin-left:6px;color:var(--timvir-secondary-text-color);height:0.9rem;width:0.9rem;vertical-align:middle;-webkit-transition:opacity 0.2s,-webkit-transform 0.2s,visibility 0s var(--visibility-delay, 0.2s);transition:opacity 0.2s,transform 0.2s,visibility 0s var(--visibility-delay, 0.2s);opacity:0;visibility:hidden;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);}
3
- .hryzf2k{margin-top:3rem;margin-bottom:1rem;font-size:2rem;line-height:1.125;font-weight:590;text-indent:-0.05em;}
4
- .h1r910l8{position:relative;margin:2.5rem 0 1rem;font-size:1.5rem;line-height:1.1666;font-weight:590;}
5
- .hmqldzl{position:relative;margin:1rem 0 1rem;font-size:1.0625rem;line-height:1.4705882353;font-weight:590;}
6
- .hpw7qeo{position:relative;margin:1rem 0 1rem;font-size:0.9375rem;line-height:1.4375;font-weight:590;}
7
- .b1gfctk0{margin-left:0;font-size:1.1rem;}.b1gfctk0>*:first-child{margin-top:0;}.b1gfctk0>*:last-child{margin-bottom:0;}
8
- .h1kfhyug{display:block;border:none;height:1px;width:100%;background:currentColor;opacity:0.25;}
9
- .t11kzh9g{border-spacing:0;border-collapse:collapse;width:100%;overflow:auto;}
1
+ @layer priority1 {
2
+ .timvir-s-1v02d47:hover {
3
+ --code-box-shadow: inset 0 0 0 1px #10161a80, inset 0 1px 4px #10161a33;
4
+ }
10
5
 
6
+ .timvir-s-bok0fy:hover {
7
+ --link-icon-opacity: 1;
8
+ }
11
9
 
12
- .t1ichb2u{background-color:#fff;border-top:1px solid var(--c-p-2);}.t1ichb2u:nth-child(2n){background-color:var(--c-p-0);}
13
- .tynrygb{text-align:var(--tynrygb-0);padding:6px 13px;border:1px solid var(--c-p-2);}
14
- .ta24p8f{text-align:var(--ta24p8f-0);padding:6px 13px;border:1px solid var(--c-p-2);}
15
- .ctk2u2p{border-radius:5px;padding:4px 6px 3px;font-size:0.8em;background:var(--timvir-secondary-background-color);border:1px solid var(--timvir-border-color);}
16
- .az92cdb{color:currentColor;-webkit-text-decoration:none;text-decoration:none;background-image:linear-gradient(transparent, transparent 5px, #383838 5px, #383838);-webkit-background-position:bottom;background-position:bottom;-webkit-background-size:100% 6px;background-size:100% 6px;background-repeat:repeat-x;}.az92cdb:hover{background-image:linear-gradient(transparent, transparent 3px, #2bbc8a 3px, #2bbc8a);}.az92cdb:hover var(--az92cdb-0){box-shadow:inset 0 0 0 1px rgba(16, 22, 26, 0.5),inset 0 1px 4px rgba(16, 22, 26, 0.2);}.az92cdb:active var(--az92cdb-0){box-shadow:inset 0 0 0 1px rgba(16, 22, 26, 0.7),inset 0 1px 4px rgba(16, 22, 26, 0.4);background:var(--c-p-2);}
10
+ .timvir-s-158d8ml:hover {
11
+ --link-icon-transform: none;
12
+ }
17
13
 
14
+ .timvir-s-1xi2g7t:hover {
15
+ --link-icon-visibility-delay: 0s;
16
+ }
18
17
 
18
+ .timvir-s-1rb6emv:hover {
19
+ --link-icon-visibility: visible;
20
+ }
19
21
 
22
+ .timvir-s-1bezv82:active {
23
+ --code-background: var(--c-p-2);
24
+ }
20
25
 
26
+ .timvir-s-15m0p1m:active {
27
+ --code-box-shadow: inset 0 0 0 1px #10161ab3, inset 0 1px 4px #10161a66;
28
+ }
29
+ }
30
+
31
+ @layer priority2 {
32
+ .timvir-s-2ijy0e {
33
+ margin: 1rem 0;
34
+ }
35
+
36
+ .timvir-s-gv6dkq {
37
+ margin: 2.5rem 0 1rem;
38
+ }
39
+
40
+ .timvir-s-1jnxms5 {
41
+ padding: 4px 6px 3px;
42
+ }
43
+
44
+ .timvir-s-12ek6fo {
45
+ padding: 6px 13px;
46
+ }
47
+ }
48
+
49
+ @layer priority3 {
50
+ html:not([dir="rtl"]) .timvir-s-1j43nte, html[dir="rtl"] .timvir-s-1j43nte {
51
+ background-position: bottom;
52
+ }
53
+
54
+ .timvir-s-1kgrkcs {
55
+ border-color: var(--c-p-2);
56
+ }
57
+
58
+ .timvir-s-j7gikm {
59
+ border-color: var(--timvir-border-color);
60
+ }
61
+
62
+ .timvir-s-1sxf85j {
63
+ border-radius: 5px;
64
+ }
65
+
66
+ .timvir-s-ng3xce {
67
+ border-style: none;
68
+ }
69
+
70
+ .timvir-s-1y0btm7 {
71
+ border-style: solid;
72
+ }
73
+
74
+ .timvir-s-mkeg23 {
75
+ border-width: 1px;
76
+ }
77
+
78
+ .timvir-s-ysyzu8 {
79
+ overflow: auto;
80
+ }
81
+
82
+ .timvir-s-1hl2dhg {
83
+ text-decoration: none;
84
+ }
85
+
86
+ .timvir-s-2r93rw {
87
+ transition: opacity.2s, transform.2s, visibility 0s var(--link-icon-visibility-delay, .2s);
88
+ }
89
+ }
90
+
91
+ @layer priority4 {
92
+ .timvir-s-83z2og {
93
+ background-color: #fff;
94
+ }
95
+
96
+ .timvir-s-twfq29 {
97
+ background-color: currentColor;
98
+ }
99
+
100
+ .timvir-s-bspb1j {
101
+ background-color: var(--code-background, var(--timvir-secondary-background-color));
102
+ }
103
+
104
+ .timvir-s-1dlxito {
105
+ background-image: linear-gradient(#0000, #0000 5px, #383838 5px, #383838);
106
+ }
107
+
108
+ .timvir-s-1w3jsh0 {
109
+ background-repeat: repeat-x;
110
+ }
111
+
112
+ .timvir-s-odwsf6 {
113
+ background-size: 100% 6px;
114
+ }
115
+
116
+ .timvir-s-1mwwwfo {
117
+ border-collapse: collapse;
118
+ }
119
+
120
+ .timvir-s-1gukg7c {
121
+ border-spacing: 0;
122
+ }
123
+
124
+ .timvir-s-1vhptj2 {
125
+ box-shadow: var(--code-box-shadow, none);
126
+ }
127
+
128
+ .timvir-s-15rks2t {
129
+ color: currentColor;
130
+ }
131
+
132
+ .timvir-s-1heor9g {
133
+ color: inherit;
134
+ }
135
+
136
+ .timvir-s-vgvpxu {
137
+ color: var(--timvir-secondary-text-color);
138
+ }
139
+
140
+ .timvir-s-1lliihq {
141
+ display: block;
142
+ }
143
+
144
+ .timvir-s-1rg5ohu {
145
+ display: inline-block;
146
+ }
147
+
148
+ .timvir-s-sfzzmd {
149
+ font-size: .8em;
150
+ }
151
+
152
+ .timvir-s-6u19be {
153
+ font-size: .9375rem;
154
+ }
155
+
156
+ .timvir-s-1lkfr7t {
157
+ font-size: 1.0625rem;
158
+ }
159
+
160
+ .timvir-s-1hptrd9 {
161
+ font-size: 1.1rem;
162
+ }
163
+
164
+ .timvir-s-ngnso2 {
165
+ font-size: 1.5rem;
166
+ }
167
+
168
+ .timvir-s-579bpy {
169
+ font-size: 2rem;
170
+ }
171
+
172
+ .timvir-s-kjxd12 {
173
+ font-weight: 590;
174
+ }
175
+
176
+ .timvir-s-2sqz4w {
177
+ line-height: 1.125;
178
+ }
179
+
180
+ .timvir-s-1gst2wd {
181
+ line-height: 1.1666;
182
+ }
183
+
184
+ .timvir-s-1k2ygyi {
185
+ line-height: 1.4375;
186
+ }
187
+
188
+ .timvir-s-1c40qdn {
189
+ line-height: 1.4706;
190
+ }
191
+
192
+ .timvir-s-vpkmg4 {
193
+ opacity: .25;
194
+ }
195
+
196
+ .timvir-s-1i3gk9 {
197
+ opacity: var(--link-icon-opacity, 0);
198
+ }
199
+
200
+ .timvir-s-1n2onr6 {
201
+ position: relative;
202
+ }
203
+
204
+ .timvir-s-zqbfd8 {
205
+ text-indent: -.05em;
206
+ }
207
+
208
+ .timvir-s-6ah1hw {
209
+ transform: var(--link-icon-transform, translatex(-50%));
210
+ }
211
+
212
+ .timvir-s-xymvpz {
213
+ vertical-align: middle;
214
+ }
215
+
216
+ .timvir-s-o5ics5 {
217
+ visibility: var(--link-icon-visibility, hidden);
218
+ }
219
+
220
+ .timvir-s-7kswos:nth-child(2n) {
221
+ background-color: var(--c-p-0);
222
+ }
223
+
224
+ .timvir-s-g7t5vw:hover, .timvir-s-ene6ev:active {
225
+ background-image: linear-gradient(#0000, #0000 3px, #2bbc8a 3px, #2bbc8a);
226
+ }
227
+ }
228
+
229
+ @layer priority5 {
230
+ .timvir-s-1r4gg6b {
231
+ border-top-color: var(--c-p-2);
232
+ }
233
+
234
+ .timvir-s-13fuv20 {
235
+ border-top-style: solid;
236
+ }
237
+
238
+ .timvir-s-178xt8z {
239
+ border-top-width: 1px;
240
+ }
241
+
242
+ .timvir-s-1pazyae {
243
+ height: .9rem;
244
+ }
245
+
246
+ .timvir-s-jm9jq1 {
247
+ height: 1px;
248
+ }
249
+
250
+ .timvir-s-yi6m4r {
251
+ margin-bottom: 1rem;
252
+ }
253
+
254
+ .timvir-s-j3b58b {
255
+ margin-left: 0;
256
+ }
257
+
258
+ .timvir-s-16vho4v {
259
+ margin-left: 6px;
260
+ }
261
+
262
+ .timvir-s-1hpjnmm {
263
+ margin-top: 3rem;
264
+ }
265
+
266
+ .timvir-s-1y6pbyt {
267
+ width: .9rem;
268
+ }
269
+
270
+ .timvir-s-h8yej3 {
271
+ width: 100%;
272
+ }
273
+ }
@@ -3,11 +3,16 @@ import { Bus } from "timvir/bus";
3
3
  import { Node } from "../core/components/Page/types";
4
4
  export interface Value {
5
5
  bus: Bus;
6
+ articleComponents: {
7
+ [Key in keyof React.JSX.IntrinsicElements]?: React.FunctionComponent<React.JSX.IntrinsicElements[Key]> | keyof React.JSX.IntrinsicElements;
8
+ };
6
9
  location: {
7
10
  asPath: string;
8
11
  push: (path: string) => void;
9
12
  };
10
- Link: React.ComponentType<React.ComponentProps<"a">>;
13
+ Link: React.ComponentType<React.ComponentProps<"a"> & {
14
+ href: string;
15
+ }>;
11
16
  blocks?: {
12
17
  WebLink?: {
13
18
  unfurl: (url: string) => Promise<any>;
@@ -1,5 +1,7 @@
1
1
  import * as React from "react";
2
2
  interface Props {
3
+ open: boolean;
4
+ onClose: () => void;
3
5
  }
4
6
  declare function Commands(props: Props): React.ReactPortal | null;
5
7
  export default Commands;
@@ -3,5 +3,5 @@ declare const Root = "div";
3
3
  interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
4
4
  label?: React.ReactNode;
5
5
  }
6
- declare function Action(props: Props): React.JSX.Element;
6
+ declare function Action(props: Props): import("react/jsx-runtime").JSX.Element;
7
7
  export default Action;
@@ -1,8 +1,7 @@
1
- import * as React from "react";
2
1
  interface Props {
3
2
  open?: boolean;
4
3
  onClose?: () => void;
5
4
  onDispose?: () => void;
6
5
  }
7
- declare function Dialog(props: Props): React.JSX.Element;
6
+ declare function Dialog(props: Props): import("react/jsx-runtime").JSX.Element;
8
7
  export default Dialog;
@@ -1,2 +1 @@
1
- export { default as Action } from "./Action";
2
1
  export { default as Dialog } from "./Dialog";
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { Footer } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Footer>>;
4
- export default function Sample(props: Props): React.JSX.Element;
4
+ export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -1,9 +1,11 @@
1
1
  import * as React from "react";
2
+ import { Value } from "timvir/context";
2
3
  /**
3
4
  * The underlying DOM element which is rendered by this component.
4
5
  */
5
6
  declare const Root = "div";
6
7
  interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
8
+ Link: Value["Link"];
7
9
  prev?: {
8
10
  href: string;
9
11
  label: React.ReactNode;
@@ -15,5 +17,5 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
15
17
  context: React.ReactNode;
16
18
  };
17
19
  }
18
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
19
- export default _default;
20
+ declare function NavigationFooter(props: Props): import("react/jsx-runtime").JSX.Element;
21
+ export default NavigationFooter;
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { NavigationFooter } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof NavigationFooter>>;
4
- export default function Sample(props: Props): React.JSX.Element;
4
+ export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -1,4 +1,3 @@
1
- import { MDXProvider } from "@mdx-js/react";
2
1
  import * as React from "react";
3
2
  import { Value } from "timvir/context";
4
3
  import { Node } from "./types";
@@ -12,7 +11,15 @@ interface Props extends React.ComponentProps<typeof Root> {
12
11
  asPath: string;
13
12
  push: (path: string) => void;
14
13
  };
15
- Link: React.ComponentType<React.ComponentProps<"a">>;
14
+ /**
15
+ * This component is used to render links between pages.
16
+ *
17
+ * Timvir will always pass the 'href' prop to this component. That is unlike
18
+ * the standard anchor element, which does not require it.
19
+ */
20
+ Link: React.ComponentType<React.ComponentProps<"a"> & {
21
+ href: string;
22
+ }>;
16
23
  /**
17
24
  * Overrides the built-in MDX component implementations.
18
25
  *
@@ -21,7 +28,9 @@ interface Props extends React.ComponentProps<typeof Root> {
21
28
  * highlighting. If you want to enable syntax highlighting in code blocks, use the
22
29
  * '<Code>' component from 'timvir/blocks'.
23
30
  */
24
- mdxComponents?: React.ComponentPropsWithoutRef<typeof MDXProvider>["components"];
31
+ mdxComponents?: {
32
+ [Key in keyof React.JSX.IntrinsicElements]?: React.FunctionComponent<React.JSX.IntrinsicElements[Key]> | keyof React.JSX.IntrinsicElements;
33
+ };
25
34
  /**
26
35
  * Search Configuration. When provided, then the Search menu will appear in the sidebar.
27
36
  */
@@ -1,4 +1,4 @@
1
- import { Page, extendedWidth, fullWidth } from "timvir/core";
1
+ import { Page } from "timvir/core";
2
2
 
3
3
  # Page
4
4
 
@@ -7,10 +7,10 @@ that the page MDX elements are correctly styled.
7
7
 
8
8
  The layout is currently based on CSS grid. The content can be placed into the following columns:
9
9
 
10
- * A center column for the main content. It has a maximum width (up to 48rem) that is suited for regular text.
11
- * An extended colum that is slightly wider than the main content (up to 72rem), giving a reasonable amount of space for text next to another block.
12
- TODO: Document how to subdivide this space.
13
- * A full-width column which spans across the whole page.
10
+ - A center column for the main content. It has a maximum width (up to 48rem) that is suited for regular text.
11
+ - An extended colum that is slightly wider than the main content (up to 72rem), giving a reasonable amount of space for text next to another block.
12
+ TODO: Document how to subdivide this space.
13
+ - A full-width column which spans across the whole page.
14
14
 
15
15
  Content placed into the full-width column extends to the very edges of the content area. Content placed into the center or extended column always has an appropriate amount of margin to the edges.
16
16
 
@@ -24,14 +24,47 @@ import { extendedWidth, fullWidth } from "timvir/page"
24
24
  </div>
25
25
  ```
26
26
 
27
- <div style={{ marginTop: 20, display: "flex", alignItems: "center", justifyContent: "center", height: 40, background: "teal", color: "white" }}>
28
- default
27
+ <div
28
+ style={{
29
+ gridColumn: "lc / rc",
30
+ marginTop: 20,
31
+ display: "flex",
32
+ alignItems: "center",
33
+ justifyContent: "center",
34
+ height: 40,
35
+ background: "teal",
36
+ color: "white",
37
+ }}
38
+ >
39
+ {'default'}
29
40
  </div>
30
41
 
31
- <div className={extendedWidth} style={{ marginTop: 20, display: "flex", alignItems: "center", justifyContent: "center", height: 40, background: "teal", color: "white" }}>
32
- extendedWidth
42
+ <div
43
+ style={{
44
+ gridColumn: "lex / rex",
45
+ marginTop: 20,
46
+ display: "flex",
47
+ alignItems: "center",
48
+ justifyContent: "center",
49
+ height: 40,
50
+ background: "teal",
51
+ color: "white",
52
+ }}
53
+ >
54
+ {'extendedWidth'}
33
55
  </div>
34
56
 
35
- <div className={fullWidth} style={{ marginTop: 20, display: "flex", alignItems: "center", justifyContent: "center", height: 40, background: "teal", color: "white" }}>
36
- fullWidth
57
+ <div
58
+ style={{
59
+ gridColumn: "le / re",
60
+ marginTop: 20,
61
+ display: "flex",
62
+ alignItems: "center",
63
+ justifyContent: "center",
64
+ height: 40,
65
+ background: "teal",
66
+ color: "white",
67
+ }}
68
+ >
69
+ {'fullWidth'}
37
70
  </div>
@@ -1,7 +1,6 @@
1
- import * as React from "react";
2
1
  import { Node } from "../types";
3
2
  interface Props extends Node {
4
3
  depth: number;
5
4
  }
6
- declare function Section(props: Props): React.JSX.Element;
5
+ declare function Section(props: Props): import("react/jsx-runtime").JSX.Element;
7
6
  export default Section;
@@ -11,5 +11,5 @@ interface Props extends React.ComponentPropsWithoutRef<"nav"> {
11
11
  }>;
12
12
  };
13
13
  }
14
- declare function Sidebar(props: Props): React.JSX.Element;
14
+ declare function Sidebar(props: Props): import("react/jsx-runtime").JSX.Element;
15
15
  export default Sidebar;
@@ -1,9 +1,8 @@
1
- import * as React from "react";
2
1
  import { Node } from "../types";
3
2
  interface Props extends Node {
4
3
  depth: number;
5
4
  active: boolean;
6
5
  setActive: (f: (active: boolean) => boolean) => void;
7
6
  }
8
- declare function SidebarItem(props: Props): React.JSX.Element;
7
+ declare function SidebarItem(props: Props): import("react/jsx-runtime").JSX.Element;
9
8
  export default SidebarItem;
@@ -1,2 +1 @@
1
- export { default as Section } from "./Section";
2
1
  export { default as Sidebar } from "./Sidebar";
@@ -1,2 +1 @@
1
- import * as React from "react";
2
- export default function Sample(): React.JSX.Element;
1
+ export default function Sample(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import * as React from "react";
2
- export default function Sample(): React.JSX.Element;
1
+ export default function Sample(): import("react/jsx-runtime").JSX.Element;