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.
@@ -88,6 +88,7 @@
88
88
  }
89
89
 
90
90
  .timvir-s-87ps6o {
91
+ -webkit-user-select: none;
91
92
  user-select: none;
92
93
  }
93
94
 
@@ -3,7 +3,7 @@ import { Code } from "../../Code";
3
3
 
4
4
  # Message
5
5
 
6
- The `<Message>` component is a simple container for messages.
6
+ > A simple container for displaying messages with optional intent and icon.
7
7
 
8
8
  <Sample variant="basic" />
9
9
 
@@ -127,8 +127,8 @@
127
127
  grid-auto-rows: min-content;
128
128
  }
129
129
 
130
- .timvir-s-12c0rpe {
131
- grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
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-1mxrek7.timvir-s-1mxrek7 {
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];
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-9q0i6z.timvir-s-9q0i6z {
150
- grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
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 `<Swatch>` is a colored block element.
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
 
@@ -75,8 +75,8 @@
75
75
  grid-auto-rows: min-content;
76
76
  }
77
77
 
78
- .timvir-s-12c0rpe {
79
- grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
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-1mxrek7.timvir-s-1mxrek7 {
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];
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-9q0i6z.timvir-s-9q0i6z {
114
- grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
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
- The `<Viewport>` component is a full-width component which is a lightly interactive wrapper around an `<iframe>`.
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
- The component does not provide the full functionality of the browsers responsive device mode simulation. In particular,
10
- it can't simulate network / CPU throttling, nor can it change the user agent. It's purpose is to provide a simple
11
- interface to test your components at different viewport widths.
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.
@@ -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-9ncquh timvir-s-1w911z timvir-s-1nj7uno"
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-9ncquh {
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-12c0rpe {
165
- grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
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-1mxrek7.timvir-s-1mxrek7 {
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];
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-9q0i6z.timvir-s-9q0i6z {
236
- grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
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
- `<WebLink>` is a link to an website, displayed as rich media (title, description, and opengraph image).
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-12c0rpe {
123
- grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
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-1mxrek7.timvir-s-1mxrek7 {
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];
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-9q0i6z.timvir-s-9q0i6z {
166
- grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
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
  }