timvir 0.2.51 → 0.2.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE +21 -0
- package/blocks/Arbitrary/docs/index.mdx +57 -10
- package/blocks/Arbitrary/index.js +13 -66
- package/blocks/Arbitrary/styles.css +11 -7
- package/blocks/Code/docs/index.mdx +1 -1
- package/blocks/Code/styles.css +8 -8
- package/blocks/ColorBar/docs/index.mdx +1 -1
- package/blocks/ColorBar/styles.css +6 -6
- package/blocks/ColorBook/index.js +1 -0
- package/blocks/ColorBook/styles.css +18 -18
- package/blocks/Cover/styles.css +6 -6
- package/blocks/Exhibit/docs/index.mdx +11 -8
- package/blocks/Exhibit/styles.css +7 -7
- package/blocks/Font/styles.css +7 -6
- package/blocks/Grid/docs/index.mdx +1 -1
- package/blocks/Grid/styles.css +6 -6
- package/blocks/Icon/styles.css +1 -0
- package/blocks/Message/docs/index.mdx +1 -1
- package/blocks/Message/styles.css +6 -6
- package/blocks/Swatch/docs/index.mdx +1 -2
- package/blocks/Swatch/styles.css +6 -6
- package/blocks/Viewport/docs/index.mdx +5 -8
- package/blocks/Viewport/index.js +2 -1
- package/blocks/Viewport/styles.css +7 -7
- package/blocks/WebLink/docs/index.mdx +3 -1
- package/blocks/WebLink/styles.css +6 -6
- package/blocks/styles.css +95 -89
- package/builtins/index.js +1 -1
- package/builtins/styles.css +11 -11
- package/core/index.js +10 -10
- package/core/styles.css +13 -13
- package/package.json +2 -2
- package/styles.css +119 -113
package/blocks/Icon/styles.css
CHANGED
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
grid-auto-rows: min-content;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.timvir-s-
|
|
131
|
-
grid-template-columns: [le]
|
|
130
|
+
.timvir-s-1u7e2r6 {
|
|
131
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex lc]1fr[rc rex]var(--timvir-page-margin)[re];
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.timvir-s-1evy7pa {
|
|
@@ -140,14 +140,14 @@
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
@media (width >= 72rem) {
|
|
143
|
-
.timvir-s-
|
|
144
|
-
grid-template-columns: [le]
|
|
143
|
+
.timvir-s-5diife.timvir-s-5diife {
|
|
144
|
+
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];
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
@media (width >= 48rem) {
|
|
149
|
-
.timvir-s-
|
|
150
|
-
grid-template-columns: [le]
|
|
149
|
+
.timvir-s-1s3i72i.timvir-s-1s3i72i {
|
|
150
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex]1fr[lc]minmax(0,48rem)[rc]1fr[rex]var(--timvir-page-margin)[re];
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -4,8 +4,7 @@ import { Grid } from "../../Grid";
|
|
|
4
4
|
|
|
5
5
|
# Swatch
|
|
6
6
|
|
|
7
|
-
A
|
|
8
|
-
It highlights a particular color, and provides additional information to it.
|
|
7
|
+
> A colored block element that highlights a particular color with additional information.
|
|
9
8
|
|
|
10
9
|
<Swatch value="#FF00FF" />
|
|
11
10
|
|
package/blocks/Swatch/styles.css
CHANGED
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
grid-auto-rows: min-content;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.timvir-s-
|
|
79
|
-
grid-template-columns: [le]
|
|
78
|
+
.timvir-s-1u7e2r6 {
|
|
79
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex lc]1fr[rc rex]var(--timvir-page-margin)[re];
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.timvir-s-l56j7k {
|
|
@@ -104,14 +104,14 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
@media (width >= 72rem) {
|
|
107
|
-
.timvir-s-
|
|
108
|
-
grid-template-columns: [le]
|
|
107
|
+
.timvir-s-5diife.timvir-s-5diife {
|
|
108
|
+
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];
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
@media (width >= 48rem) {
|
|
113
|
-
.timvir-s-
|
|
114
|
-
grid-template-columns: [le]
|
|
113
|
+
.timvir-s-1s3i72i.timvir-s-1s3i72i {
|
|
114
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex]1fr[lc]minmax(0,48rem)[rc]1fr[rex]var(--timvir-page-margin)[re];
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}
|
|
@@ -2,13 +2,12 @@ import { Viewport } from "..";
|
|
|
2
2
|
|
|
3
3
|
# Viewport
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
The viewport can be resized to simulate different device widths. The height of the iframe will automatically adjust
|
|
7
|
-
to the iframe content.
|
|
5
|
+
> A resizable iframe wrapper for previewing content at different device widths.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
<Viewport src="/docs/components/Grid/samples/basic" />
|
|
8
|
+
|
|
9
|
+
The height of the iframe automatically adjusts to fit the content.
|
|
10
|
+
Note that it does not replicate the browser's full responsive device mode: network and CPU throttling, as well as user agent changes, are not supported.
|
|
12
11
|
|
|
13
12
|
Since `<Viewport>` uses an `<iframe>`, you must provide a page which can be loaded into it. If you used the timvir
|
|
14
13
|
cli to scaffold your component, you already have one such sample (in `src/components/…/samples/basic.tsx`). Make that
|
|
@@ -16,8 +15,6 @@ sample available via a Next.js page and load it into the `<Viewport>`.
|
|
|
16
15
|
|
|
17
16
|
See also [Concepts: Component Sample](/concepts/component-sample).
|
|
18
17
|
|
|
19
|
-
<Viewport src="/docs/components/Grid/samples/basic" />
|
|
20
|
-
|
|
21
18
|
## Loading Behaviour
|
|
22
19
|
|
|
23
20
|
The `<Viewport>` displays a gray, animated background while the iframe is loading.
|
package/blocks/Viewport/index.js
CHANGED
|
@@ -210,6 +210,7 @@ function Caption(props$1) {
|
|
|
210
210
|
children: ["Source:", " ", /*#__PURE__*/jsx(components.a, {
|
|
211
211
|
href: src,
|
|
212
212
|
target: "_blank",
|
|
213
|
+
rel: "noopener",
|
|
213
214
|
children: src
|
|
214
215
|
})]
|
|
215
216
|
}), code && /*#__PURE__*/jsx("div", {
|
|
@@ -419,7 +420,7 @@ function Viewport(props$1) {
|
|
|
419
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"
|
|
420
421
|
},
|
|
421
422
|
1: {
|
|
422
|
-
className: "timvir-s-wonfvy timvir-s-w75i6v timvir-s-1n2onr6 timvir-s-98rzlu timvir-s-pyat2d timvir-s-10r4kp7 timvir-s-b3r6kr timvir-s-1c74tu6 timvir-s-10e4vud timvir-s-a4qsjk timvir-s-1bx2yh timvir-s-1esw782 timvir-s-dftl3q timvir-s-
|
|
423
|
+
className: "timvir-s-wonfvy timvir-s-w75i6v timvir-s-1n2onr6 timvir-s-98rzlu timvir-s-pyat2d timvir-s-10r4kp7 timvir-s-b3r6kr timvir-s-1c74tu6 timvir-s-10e4vud timvir-s-a4qsjk timvir-s-1bx2yh timvir-s-1esw782 timvir-s-dftl3q timvir-s-9emw9s timvir-s-1w911z timvir-s-1nj7uno"
|
|
423
424
|
}
|
|
424
425
|
}[!!(height === undefined) << 0],
|
|
425
426
|
style: {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
animation-timing-function: linear;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.timvir-s-
|
|
104
|
+
.timvir-s-9emw9s {
|
|
105
105
|
background-image: linear-gradient(to right, #fafafa 0%, #f4f4f4 25%, #fafafa 40%);
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -161,8 +161,8 @@
|
|
|
161
161
|
grid-column-gap: 8px;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
.timvir-s-
|
|
165
|
-
grid-template-columns: [le]
|
|
164
|
+
.timvir-s-1u7e2r6 {
|
|
165
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex lc]1fr[rc rex]var(--timvir-page-margin)[re];
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.timvir-s-7tmw4v {
|
|
@@ -226,14 +226,14 @@
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
@media (width >= 72rem) {
|
|
229
|
-
.timvir-s-
|
|
230
|
-
grid-template-columns: [le]
|
|
229
|
+
.timvir-s-5diife.timvir-s-5diife {
|
|
230
|
+
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];
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
@media (width >= 48rem) {
|
|
235
|
-
.timvir-s-
|
|
236
|
-
grid-template-columns: [le]
|
|
235
|
+
.timvir-s-1s3i72i.timvir-s-1s3i72i {
|
|
236
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex]1fr[lc]minmax(0,48rem)[rc]1fr[rex]var(--timvir-page-margin)[re];
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}
|
|
@@ -2,7 +2,9 @@ import { WebLink } from "..";
|
|
|
2
2
|
|
|
3
3
|
# WebLink
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> A link to a website displayed as rich media with title, description, and image.
|
|
6
|
+
|
|
7
|
+
<WebLink url="https://tangled.sh" />
|
|
6
8
|
|
|
7
9
|
## Examples
|
|
8
10
|
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
grid-auto-rows: min-content;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
.timvir-s-
|
|
123
|
-
grid-template-columns: [le]
|
|
122
|
+
.timvir-s-1u7e2r6 {
|
|
123
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex lc]1fr[rc rex]var(--timvir-page-margin)[re];
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.timvir-s-1vbrtjm {
|
|
@@ -156,14 +156,14 @@
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
@media (width >= 72rem) {
|
|
159
|
-
.timvir-s-
|
|
160
|
-
grid-template-columns: [le]
|
|
159
|
+
.timvir-s-5diife.timvir-s-5diife {
|
|
160
|
+
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];
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
@media (width >= 48rem) {
|
|
165
|
-
.timvir-s-
|
|
166
|
-
grid-template-columns: [le]
|
|
165
|
+
.timvir-s-1s3i72i.timvir-s-1s3i72i {
|
|
166
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex]1fr[lc]minmax(0,48rem)[rc]1fr[rex]var(--timvir-page-margin)[re];
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
}
|