timvir 0.2.42 → 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.
- package/CHANGELOG.md +6 -0
- package/blocks/Arbitrary/index.js +9 -1
- package/blocks/Arbitrary/styles.css +59 -3
- package/blocks/Code/index.js +9 -1
- package/blocks/Code/styles.css +58 -0
- package/blocks/ColorBar/index.js +9 -1
- package/blocks/ColorBar/styles.css +54 -0
- package/blocks/ColorBook/index.js +8 -1
- package/blocks/ColorBook/styles.css +63 -5
- package/blocks/Cover/index.js +13 -1
- package/blocks/Cover/styles.css +65 -1
- package/blocks/Exhibit/index.js +9 -1
- package/blocks/Exhibit/styles.css +63 -3
- package/blocks/Font/index.js +9 -1
- package/blocks/Font/styles.css +63 -3
- package/blocks/Grid/index.js +8 -1
- package/blocks/Grid/styles.css +59 -1
- package/blocks/Message/index.js +8 -1
- package/blocks/Message/styles.css +63 -3
- package/blocks/Swatch/index.js +9 -1
- package/blocks/Swatch/styles.css +63 -3
- package/blocks/Viewport/index.js +14 -1
- package/blocks/Viewport/styles.css +54 -0
- package/blocks/WebLink/index.js +9 -1
- package/blocks/WebLink/styles.css +59 -3
- package/blocks/styles.css +723 -25
- package/builtins/index.js +8 -1
- package/builtins/styles.css +58 -0
- package/package.json +1 -1
- package/styles.css +796 -40
package/builtins/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as Icons from 'react-feather';
|
|
3
|
-
import { layoutStyles } from 'timvir/core';
|
|
4
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
var styleq = {};
|
|
@@ -154,6 +153,14 @@ function props(...styles) {
|
|
|
154
153
|
return result;
|
|
155
154
|
}
|
|
156
155
|
|
|
156
|
+
const layoutStyles = {
|
|
157
|
+
block: {
|
|
158
|
+
kBCFzs: "timvir-s-htle6",
|
|
159
|
+
k7Eaqz: "timvir-s-euugli",
|
|
160
|
+
kogj98: "timvir-s-1t4wa6b",
|
|
161
|
+
$$css: true
|
|
162
|
+
}};
|
|
163
|
+
|
|
157
164
|
const anchorize = children => {
|
|
158
165
|
if (typeof children === "string") {
|
|
159
166
|
return children.toLowerCase().replace(/[ _]+/g, "-").replace(/[!:^*./\\]/g, "");
|
package/builtins/styles.css
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
@layer priority1 {
|
|
2
|
+
.timvir-s-1f9b50e {
|
|
3
|
+
--timvir-margin: var(--timvir-page-margin);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.timvir-s-1hz7z82 {
|
|
7
|
+
--timvir-page-margin: 16px;
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
.timvir-s-1v02d47:hover {
|
|
3
11
|
--code-box-shadow: inset 0 0 0 1px #10161a80, inset 0 1px 4px #10161a33;
|
|
4
12
|
}
|
|
@@ -26,9 +34,19 @@
|
|
|
26
34
|
.timvir-s-15m0p1m:active {
|
|
27
35
|
--code-box-shadow: inset 0 0 0 1px #10161ab3, inset 0 1px 4px #10161a66;
|
|
28
36
|
}
|
|
37
|
+
|
|
38
|
+
@media (width >= 48rem) {
|
|
39
|
+
.timvir-s-1i3za4p.timvir-s-1i3za4p {
|
|
40
|
+
--timvir-page-margin: 24px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
29
43
|
}
|
|
30
44
|
|
|
31
45
|
@layer priority2 {
|
|
46
|
+
.timvir-s-1t4wa6b {
|
|
47
|
+
margin: 0 0 2rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
32
50
|
.timvir-s-2ijy0e {
|
|
33
51
|
margin: 1rem 0;
|
|
34
52
|
}
|
|
@@ -75,6 +93,18 @@
|
|
|
75
93
|
border-width: 1px;
|
|
76
94
|
}
|
|
77
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
|
+
|
|
78
108
|
.timvir-s-ysyzu8 {
|
|
79
109
|
overflow: auto;
|
|
80
110
|
}
|
|
@@ -141,6 +171,10 @@
|
|
|
141
171
|
display: block;
|
|
142
172
|
}
|
|
143
173
|
|
|
174
|
+
.timvir-s-rvj5dj {
|
|
175
|
+
display: grid;
|
|
176
|
+
}
|
|
177
|
+
|
|
144
178
|
.timvir-s-1rg5ohu {
|
|
145
179
|
display: inline-block;
|
|
146
180
|
}
|
|
@@ -173,6 +207,14 @@
|
|
|
173
207
|
font-weight: 590;
|
|
174
208
|
}
|
|
175
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
|
+
|
|
176
218
|
.timvir-s-2sqz4w {
|
|
177
219
|
line-height: 1.125;
|
|
178
220
|
}
|
|
@@ -224,6 +266,18 @@
|
|
|
224
266
|
.timvir-s-g7t5vw:hover, .timvir-s-ene6ev:active {
|
|
225
267
|
background-image: linear-gradient(#0000, #0000 3px, #2bbc8a 3px, #2bbc8a);
|
|
226
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
|
+
}
|
|
227
281
|
}
|
|
228
282
|
|
|
229
283
|
@layer priority5 {
|
|
@@ -263,6 +317,10 @@
|
|
|
263
317
|
margin-top: 3rem;
|
|
264
318
|
}
|
|
265
319
|
|
|
320
|
+
.timvir-s-euugli {
|
|
321
|
+
min-width: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
266
324
|
.timvir-s-1y6pbyt {
|
|
267
325
|
width: .9rem;
|
|
268
326
|
}
|