timvir 0.2.39 → 0.2.43

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 (73) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
  3. package/blocks/Arbitrary/index.js +200 -47
  4. package/blocks/Arbitrary/styles.css +222 -6
  5. package/blocks/Code/Code.d.ts +0 -6
  6. package/blocks/Code/docs/index.mdx +0 -11
  7. package/blocks/Code/index.js +211 -110
  8. package/blocks/Code/styles.css +158 -15
  9. package/blocks/ColorBar/docs/index.mdx +8 -2
  10. package/blocks/ColorBar/index.js +205 -46
  11. package/blocks/ColorBar/styles.css +157 -4
  12. package/blocks/ColorBook/docs/index.mdx +1 -1
  13. package/blocks/ColorBook/index.js +205 -39
  14. package/blocks/ColorBook/styles.css +224 -6
  15. package/blocks/Cover/index.js +175 -34
  16. package/blocks/Cover/styles.css +82 -0
  17. package/blocks/Exhibit/index.js +199 -40
  18. package/blocks/Exhibit/styles.css +126 -3
  19. package/blocks/Font/index.js +196 -58
  20. package/blocks/Font/styles.css +142 -8
  21. package/blocks/Grid/docs/index.mdx +4 -4
  22. package/blocks/Grid/index.js +183 -33
  23. package/blocks/Grid/styles.css +78 -1
  24. package/blocks/Icon/docs/index.mdx +13 -13
  25. package/blocks/Icon/index.js +25 -43
  26. package/blocks/Icon/styles.css +117 -5
  27. package/blocks/Message/docs/index.mdx +5 -8
  28. package/blocks/Message/index.js +240 -54
  29. package/blocks/Message/styles.css +154 -6
  30. package/blocks/Swatch/docs/index.mdx +16 -16
  31. package/blocks/Swatch/index.js +187 -34
  32. package/blocks/Swatch/styles.css +142 -4
  33. package/blocks/Viewport/index.js +209 -89
  34. package/blocks/Viewport/styles.css +313 -14
  35. package/blocks/WebLink/index.js +199 -47
  36. package/blocks/WebLink/styles.css +226 -8
  37. package/blocks/styles.css +2158 -97
  38. package/builtins/components.d.ts +2 -2
  39. package/builtins/index.d.ts +0 -1
  40. package/builtins/index.js +307 -243
  41. package/builtins/styles.css +323 -25
  42. package/context/index.d.ts +6 -1
  43. package/core/components/Commands/Commands.d.ts +5 -1
  44. package/core/components/NavigationFooter/NavigationFooter.d.ts +4 -2
  45. package/core/components/Page/Page.d.ts +12 -3
  46. package/core/components/Page/docs/index.mdx +44 -11
  47. package/core/index.d.ts +191 -2
  48. package/core/index.js +415 -256
  49. package/core/layout.d.ts +41 -0
  50. package/core/styles.css +857 -88
  51. package/global.css +79 -0
  52. package/internal/cx.d.ts +1 -0
  53. package/package.json +1 -2
  54. package/search/index.js +2 -223
  55. package/styles.css +3426 -235
  56. package/blocks/Code/theme.d.ts +0 -2
  57. package/bus/styles.css +0 -1
  58. package/context/styles.css +0 -1
  59. package/core/theme/index.d.ts +0 -1
  60. package/hooks/styles.css +0 -1
  61. package/search/Search/internal/Dialog.d.ts +0 -20
  62. package/search/Search/internal/index.d.ts +0 -1
  63. package/search/SearchBoxInput/SearchBoxInput.d.ts +0 -11
  64. package/search/SearchBoxInput/docs/api.mdx +0 -76
  65. package/search/SearchBoxInput/docs/index.mdx +0 -6
  66. package/search/SearchBoxInput/index.d.ts +0 -1
  67. package/search/SearchBoxInput/samples/basic.d.ts +0 -1
  68. package/search/SearchBoxListItem/SearchBoxListItem.d.ts +0 -13
  69. package/search/SearchBoxListItem/docs/api.mdx +0 -76
  70. package/search/SearchBoxListItem/docs/index.mdx +0 -30
  71. package/search/SearchBoxListItem/index.d.ts +0 -1
  72. package/search/SearchBoxListItem/samples/basic.d.ts +0 -1
  73. package/search/styles.css +0 -16
@@ -1,33 +1,331 @@
1
+ @layer priority1 {
2
+ .timvir-s-1f9b50e {
3
+ --timvir-margin: var(--timvir-page-margin);
4
+ }
1
5
 
2
- .g1et32pl{display:-ms-grid;display:grid;--timvir-page-margin:16px;--timvir-margin:var(--timvir-page-margin);-ms-grid-auto-rows:min-content;grid-auto-rows:min-content;-ms-grid-columns:[le] var(--timvir-page-margin) [lex lc] 1fr [rc rex] var(--timvir-page-margin) [re];grid-template-columns:[le] var(--timvir-page-margin) [lex lc] 1fr [rc rex] var(--timvir-page-margin) [re];}@media (min-width: 48rem){.g1et32pl{--timvir-page-margin:24px;-ms-grid-columns:[le] var(--timvir-page-margin) [lex] 1fr [lc] minmax(0, 48rem) [rc] 1fr [rex] var(
3
- --timvir-page-margin
4
- ) [re];grid-template-columns:[le] var(--timvir-page-margin) [lex] 1fr [lc] minmax(0, 48rem) [rc] 1fr [rex] var(
5
- --timvir-page-margin
6
- ) [re];}}@media (min-width: 72rem){.g1et32pl{-ms-grid-columns:[le] 1fr var(--timvir-page-margin) [lex] minmax(0, 12rem) [lc] 48rem [rc] minmax(0, 12rem) [rex] var(
7
- --timvir-page-margin
8
- ) 1fr [re];grid-template-columns:[le] 1fr var(--timvir-page-margin) [lex] minmax(0, 12rem) [lc] 48rem [rc] minmax(0, 12rem) [rex] var(
9
- --timvir-page-margin
10
- ) 1fr [re];}}.g1et32pl>*:not(.nc2e9vn){grid-column:lc/rc;min-width:0;}.g1et32pl>*{margin:0 0 2rem;}.g1et32pl>p+ul{margin-top:-1.25rem;}
11
- .en6sn9p{grid-column:lex/rex;}
12
- .f3c539b{grid-column:le/re;}
6
+ .timvir-s-1hz7z82 {
7
+ --timvir-page-margin: 16px;
8
+ }
13
9
 
14
- .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;}
15
- .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%);}
16
- .hryzf2k{margin-top:3rem;margin-bottom:1rem;font-size:2rem;line-height:1.125;font-weight:590;text-indent:-0.05em;}
17
- .h1r910l8{position:relative;margin:2.5rem 0 1rem;font-size:1.5rem;line-height:1.1666;font-weight:590;}
18
- .hmqldzl{position:relative;margin:1rem 0 1rem;font-size:1.0625rem;line-height:1.4705882353;font-weight:590;}
19
- .hpw7qeo{position:relative;margin:1rem 0 1rem;font-size:0.9375rem;line-height:1.4375;font-weight:590;}
20
- .b1gfctk0{margin-left:0;font-size:1.1rem;}.b1gfctk0>*:first-child{margin-top:0;}.b1gfctk0>*:last-child{margin-bottom:0;}
21
- .h1kfhyug{display:block;border:none;height:1px;width:100%;background:currentColor;opacity:0.25;}
22
- .t11kzh9g{border-spacing:0;border-collapse:collapse;width:100%;overflow:auto;}
10
+ .timvir-s-1v02d47:hover {
11
+ --code-box-shadow: inset 0 0 0 1px #10161a80, inset 0 1px 4px #10161a33;
12
+ }
23
13
 
14
+ .timvir-s-bok0fy:hover {
15
+ --link-icon-opacity: 1;
16
+ }
24
17
 
25
- .t1ichb2u{background-color:#fff;border-top:1px solid var(--c-p-2);}.t1ichb2u:nth-child(2n){background-color:var(--c-p-0);}
26
- .tynrygb{text-align:var(--tynrygb-0);padding:6px 13px;border:1px solid var(--c-p-2);}
27
- .ta24p8f{text-align:var(--ta24p8f-0);padding:6px 13px;border:1px solid var(--c-p-2);}
28
- .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);}
29
- .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);}
18
+ .timvir-s-158d8ml:hover {
19
+ --link-icon-transform: none;
20
+ }
30
21
 
22
+ .timvir-s-1xi2g7t:hover {
23
+ --link-icon-visibility-delay: 0s;
24
+ }
31
25
 
26
+ .timvir-s-1rb6emv:hover {
27
+ --link-icon-visibility: visible;
28
+ }
32
29
 
30
+ .timvir-s-1bezv82:active {
31
+ --code-background: var(--c-p-2);
32
+ }
33
33
 
34
+ .timvir-s-15m0p1m:active {
35
+ --code-box-shadow: inset 0 0 0 1px #10161ab3, inset 0 1px 4px #10161a66;
36
+ }
37
+
38
+ @media (width >= 48rem) {
39
+ .timvir-s-1i3za4p.timvir-s-1i3za4p {
40
+ --timvir-page-margin: 24px;
41
+ }
42
+ }
43
+ }
44
+
45
+ @layer priority2 {
46
+ .timvir-s-1t4wa6b {
47
+ margin: 0 0 2rem;
48
+ }
49
+
50
+ .timvir-s-2ijy0e {
51
+ margin: 1rem 0;
52
+ }
53
+
54
+ .timvir-s-gv6dkq {
55
+ margin: 2.5rem 0 1rem;
56
+ }
57
+
58
+ .timvir-s-1jnxms5 {
59
+ padding: 4px 6px 3px;
60
+ }
61
+
62
+ .timvir-s-12ek6fo {
63
+ padding: 6px 13px;
64
+ }
65
+ }
66
+
67
+ @layer priority3 {
68
+ html:not([dir="rtl"]) .timvir-s-1j43nte, html[dir="rtl"] .timvir-s-1j43nte {
69
+ background-position: bottom;
70
+ }
71
+
72
+ .timvir-s-1kgrkcs {
73
+ border-color: var(--c-p-2);
74
+ }
75
+
76
+ .timvir-s-j7gikm {
77
+ border-color: var(--timvir-border-color);
78
+ }
79
+
80
+ .timvir-s-1sxf85j {
81
+ border-radius: 5px;
82
+ }
83
+
84
+ .timvir-s-ng3xce {
85
+ border-style: none;
86
+ }
87
+
88
+ .timvir-s-1y0btm7 {
89
+ border-style: solid;
90
+ }
91
+
92
+ .timvir-s-mkeg23 {
93
+ border-width: 1px;
94
+ }
95
+
96
+ .timvir-s-htle6 {
97
+ grid-column: lc / rc;
98
+ }
99
+
100
+ .timvir-s-1ywaqmw {
101
+ grid-column: le / re;
102
+ }
103
+
104
+ .timvir-s-bldiei {
105
+ grid-column: lex / rex;
106
+ }
107
+
108
+ .timvir-s-ysyzu8 {
109
+ overflow: auto;
110
+ }
111
+
112
+ .timvir-s-1hl2dhg {
113
+ text-decoration: none;
114
+ }
115
+
116
+ .timvir-s-2r93rw {
117
+ transition: opacity.2s, transform.2s, visibility 0s var(--link-icon-visibility-delay, .2s);
118
+ }
119
+ }
120
+
121
+ @layer priority4 {
122
+ .timvir-s-83z2og {
123
+ background-color: #fff;
124
+ }
125
+
126
+ .timvir-s-twfq29 {
127
+ background-color: currentColor;
128
+ }
129
+
130
+ .timvir-s-bspb1j {
131
+ background-color: var(--code-background, var(--timvir-secondary-background-color));
132
+ }
133
+
134
+ .timvir-s-1dlxito {
135
+ background-image: linear-gradient(#0000, #0000 5px, #383838 5px, #383838);
136
+ }
137
+
138
+ .timvir-s-1w3jsh0 {
139
+ background-repeat: repeat-x;
140
+ }
141
+
142
+ .timvir-s-odwsf6 {
143
+ background-size: 100% 6px;
144
+ }
145
+
146
+ .timvir-s-1mwwwfo {
147
+ border-collapse: collapse;
148
+ }
149
+
150
+ .timvir-s-1gukg7c {
151
+ border-spacing: 0;
152
+ }
153
+
154
+ .timvir-s-1vhptj2 {
155
+ box-shadow: var(--code-box-shadow, none);
156
+ }
157
+
158
+ .timvir-s-15rks2t {
159
+ color: currentColor;
160
+ }
161
+
162
+ .timvir-s-1heor9g {
163
+ color: inherit;
164
+ }
165
+
166
+ .timvir-s-vgvpxu {
167
+ color: var(--timvir-secondary-text-color);
168
+ }
169
+
170
+ .timvir-s-1lliihq {
171
+ display: block;
172
+ }
173
+
174
+ .timvir-s-rvj5dj {
175
+ display: grid;
176
+ }
177
+
178
+ .timvir-s-1rg5ohu {
179
+ display: inline-block;
180
+ }
181
+
182
+ .timvir-s-sfzzmd {
183
+ font-size: .8em;
184
+ }
185
+
186
+ .timvir-s-6u19be {
187
+ font-size: .9375rem;
188
+ }
189
+
190
+ .timvir-s-1lkfr7t {
191
+ font-size: 1.0625rem;
192
+ }
193
+
194
+ .timvir-s-1hptrd9 {
195
+ font-size: 1.1rem;
196
+ }
197
+
198
+ .timvir-s-ngnso2 {
199
+ font-size: 1.5rem;
200
+ }
201
+
202
+ .timvir-s-579bpy {
203
+ font-size: 2rem;
204
+ }
205
+
206
+ .timvir-s-kjxd12 {
207
+ font-weight: 590;
208
+ }
209
+
210
+ .timvir-s-3xbxsf {
211
+ grid-auto-rows: min-content;
212
+ }
213
+
214
+ .timvir-s-12c0rpe {
215
+ grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
216
+ }
217
+
218
+ .timvir-s-2sqz4w {
219
+ line-height: 1.125;
220
+ }
221
+
222
+ .timvir-s-1gst2wd {
223
+ line-height: 1.1666;
224
+ }
225
+
226
+ .timvir-s-1k2ygyi {
227
+ line-height: 1.4375;
228
+ }
229
+
230
+ .timvir-s-1c40qdn {
231
+ line-height: 1.4706;
232
+ }
233
+
234
+ .timvir-s-vpkmg4 {
235
+ opacity: .25;
236
+ }
237
+
238
+ .timvir-s-1i3gk9 {
239
+ opacity: var(--link-icon-opacity, 0);
240
+ }
241
+
242
+ .timvir-s-1n2onr6 {
243
+ position: relative;
244
+ }
245
+
246
+ .timvir-s-zqbfd8 {
247
+ text-indent: -.05em;
248
+ }
249
+
250
+ .timvir-s-6ah1hw {
251
+ transform: var(--link-icon-transform, translatex(-50%));
252
+ }
253
+
254
+ .timvir-s-xymvpz {
255
+ vertical-align: middle;
256
+ }
257
+
258
+ .timvir-s-o5ics5 {
259
+ visibility: var(--link-icon-visibility, hidden);
260
+ }
261
+
262
+ .timvir-s-7kswos:nth-child(2n) {
263
+ background-color: var(--c-p-0);
264
+ }
265
+
266
+ .timvir-s-g7t5vw:hover, .timvir-s-ene6ev:active {
267
+ background-image: linear-gradient(#0000, #0000 3px, #2bbc8a 3px, #2bbc8a);
268
+ }
269
+
270
+ @media (width >= 72rem) {
271
+ .timvir-s-1mxrek7.timvir-s-1mxrek7 {
272
+ grid-template-columns: [le] 1fr var(--timvir-page-margin) [lex] minmax(0, 12rem) [lc] 48rem[rc] minmax(0, 12rem) [rex] var(--timvir-page-margin) 1fr[re];
273
+ }
274
+ }
275
+
276
+ @media (width >= 48rem) {
277
+ .timvir-s-9q0i6z.timvir-s-9q0i6z {
278
+ grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
279
+ }
280
+ }
281
+ }
282
+
283
+ @layer priority5 {
284
+ .timvir-s-1r4gg6b {
285
+ border-top-color: var(--c-p-2);
286
+ }
287
+
288
+ .timvir-s-13fuv20 {
289
+ border-top-style: solid;
290
+ }
291
+
292
+ .timvir-s-178xt8z {
293
+ border-top-width: 1px;
294
+ }
295
+
296
+ .timvir-s-1pazyae {
297
+ height: .9rem;
298
+ }
299
+
300
+ .timvir-s-jm9jq1 {
301
+ height: 1px;
302
+ }
303
+
304
+ .timvir-s-yi6m4r {
305
+ margin-bottom: 1rem;
306
+ }
307
+
308
+ .timvir-s-j3b58b {
309
+ margin-left: 0;
310
+ }
311
+
312
+ .timvir-s-16vho4v {
313
+ margin-left: 6px;
314
+ }
315
+
316
+ .timvir-s-1hpjnmm {
317
+ margin-top: 3rem;
318
+ }
319
+
320
+ .timvir-s-euugli {
321
+ min-width: 0;
322
+ }
323
+
324
+ .timvir-s-1y6pbyt {
325
+ width: .9rem;
326
+ }
327
+
328
+ .timvir-s-h8yej3 {
329
+ width: 100%;
330
+ }
331
+ }
@@ -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,3 +1,7 @@
1
1
  import * as React from "react";
2
- declare function Commands(): React.ReactPortal | null;
2
+ interface Props {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ }
6
+ declare function Commands(props: Props): React.ReactPortal | null;
3
7
  export default Commands;
@@ -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,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>