timvir 0.2.50 → 0.2.52
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 +12 -0
- package/LICENSE +21 -0
- package/blocks/Arbitrary/Arbitrary.d.ts +2 -2
- package/blocks/Arbitrary/docs/index.mdx +57 -10
- package/blocks/Arbitrary/index.d.ts +1 -1
- package/blocks/Arbitrary/index.js +16 -71
- package/blocks/Arbitrary/styles.css +11 -7
- package/blocks/Code/Code.d.ts +3 -3
- package/blocks/Code/docs/index.mdx +1 -1
- package/blocks/Code/index.d.ts +1 -1
- package/blocks/Code/index.js +2 -4
- package/blocks/Code/styles.css +8 -8
- package/blocks/ColorBar/ColorBar.d.ts +3 -3
- package/blocks/ColorBar/docs/index.mdx +1 -1
- package/blocks/ColorBar/index.d.ts +1 -1
- package/blocks/ColorBar/index.js +2 -4
- package/blocks/ColorBar/styles.css +6 -6
- package/blocks/ColorBook/ColorBook.d.ts +4 -4
- package/blocks/ColorBook/index.d.ts +1 -1
- package/blocks/ColorBook/index.js +3 -5
- package/blocks/ColorBook/styles.css +18 -18
- package/blocks/Cover/Cover.d.ts +4 -4
- package/blocks/Cover/index.d.ts +1 -1
- package/blocks/Cover/index.js +2 -5
- package/blocks/Cover/styles.css +6 -6
- package/blocks/Exhibit/Exhibit.d.ts +4 -4
- package/blocks/Exhibit/docs/index.mdx +11 -8
- package/blocks/Exhibit/index.d.ts +1 -1
- package/blocks/Exhibit/index.js +2 -5
- package/blocks/Exhibit/styles.css +7 -7
- package/blocks/Font/Font.d.ts +3 -3
- package/blocks/Font/index.d.ts +1 -1
- package/blocks/Font/index.js +2 -4
- package/blocks/Font/styles.css +7 -6
- package/blocks/Grid/Grid.d.ts +2 -2
- package/blocks/Grid/docs/index.mdx +1 -1
- package/blocks/Grid/index.d.ts +1 -1
- package/blocks/Grid/index.js +2 -4
- package/blocks/Grid/styles.css +6 -6
- package/blocks/Icon/Icon.d.ts +3 -3
- package/blocks/Icon/index.d.ts +1 -1
- package/blocks/Icon/index.js +2 -5
- package/blocks/Icon/internal/Canvas.d.ts +2 -2
- package/blocks/Icon/internal/index.d.ts +1 -1
- package/blocks/Icon/styles.css +1 -0
- package/blocks/Message/Message.d.ts +3 -3
- package/blocks/Message/docs/index.mdx +1 -1
- package/blocks/Message/index.d.ts +1 -1
- package/blocks/Message/index.js +2 -4
- package/blocks/Message/styles.css +6 -6
- package/blocks/Swatch/Swatch.d.ts +3 -3
- package/blocks/Swatch/docs/index.mdx +1 -2
- package/blocks/Swatch/index.d.ts +1 -1
- package/blocks/Swatch/index.js +2 -4
- package/blocks/Swatch/styles.css +6 -6
- package/blocks/Viewport/Viewport.d.ts +3 -3
- package/blocks/Viewport/docs/index.mdx +5 -8
- package/blocks/Viewport/index.d.ts +1 -1
- package/blocks/Viewport/index.js +6 -10
- package/blocks/Viewport/internal/Caption.d.ts +2 -4
- package/blocks/Viewport/internal/Handle.d.ts +3 -4
- package/blocks/Viewport/internal/Ruler.d.ts +2 -2
- package/blocks/Viewport/internal/index.d.ts +3 -3
- package/blocks/Viewport/styles.css +7 -7
- package/blocks/WebLink/WebLink.d.ts +3 -3
- package/blocks/WebLink/docs/index.mdx +3 -1
- package/blocks/WebLink/index.d.ts +1 -1
- package/blocks/WebLink/index.js +2 -4
- 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/context/index.d.ts +1 -1
- package/context/index.js +1 -1
- package/core/components/Footer/Footer.d.ts +4 -4
- package/core/components/Page/Page.d.ts +2 -2
- package/core/index.js +13 -17
- package/core/styles.css +13 -14
- package/package.json +5 -5
- package/search/Search/Search.d.ts +4 -4
- package/search/index.js +2 -5
- package/styles.css +119 -114
package/blocks/Cover/Cover.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
5
5
|
declare const Root = "div";
|
|
6
|
-
interface Props extends React.
|
|
6
|
+
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
7
7
|
metadata: {
|
|
8
8
|
width: number;
|
|
9
9
|
height: number;
|
|
@@ -16,5 +16,5 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
|
|
|
16
16
|
type: string;
|
|
17
17
|
}>;
|
|
18
18
|
}
|
|
19
|
-
declare
|
|
20
|
-
export
|
|
19
|
+
export declare function Cover(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
package/blocks/Cover/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Cover } from "./Cover";
|
package/blocks/Cover/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
|
|
4
3
|
function cx(...args) {
|
|
@@ -177,7 +176,7 @@ const layoutStyles = {
|
|
|
177
176
|
};
|
|
178
177
|
|
|
179
178
|
const Root = "div";
|
|
180
|
-
function Cover(props$1
|
|
179
|
+
function Cover(props$1) {
|
|
181
180
|
const {
|
|
182
181
|
metadata,
|
|
183
182
|
img: img1,
|
|
@@ -186,7 +185,6 @@ function Cover(props$1, ref) {
|
|
|
186
185
|
} = props$1;
|
|
187
186
|
const rootStyleProps = props(layoutStyles.block, layoutStyles.fullWidth);
|
|
188
187
|
return /*#__PURE__*/jsx(Root, {
|
|
189
|
-
ref: ref,
|
|
190
188
|
...rest,
|
|
191
189
|
...rootStyleProps,
|
|
192
190
|
className: cx(rest.className, rootStyleProps.className),
|
|
@@ -201,6 +199,5 @@ function Cover(props$1, ref) {
|
|
|
201
199
|
})
|
|
202
200
|
});
|
|
203
201
|
}
|
|
204
|
-
var Cover_default = /*#__PURE__*/React.forwardRef(Cover);
|
|
205
202
|
|
|
206
|
-
export {
|
|
203
|
+
export { Cover };
|
package/blocks/Cover/styles.css
CHANGED
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
grid-auto-rows: min-content;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.timvir-s-
|
|
51
|
-
grid-template-columns: [le]
|
|
50
|
+
.timvir-s-1u7e2r6 {
|
|
51
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex lc]1fr[rc rex]var(--timvir-page-margin)[re];
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.timvir-s-l1xv1r {
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
@media (width >= 72rem) {
|
|
59
|
-
.timvir-s-
|
|
60
|
-
grid-template-columns: [le]
|
|
59
|
+
.timvir-s-5diife.timvir-s-5diife {
|
|
60
|
+
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];
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
@media (width >= 48rem) {
|
|
65
|
-
.timvir-s-
|
|
66
|
-
grid-template-columns: [le]
|
|
65
|
+
.timvir-s-1s3i72i.timvir-s-1s3i72i {
|
|
66
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex]1fr[lc]minmax(0,48rem)[rc]1fr[rex]var(--timvir-page-margin)[re];
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
@@ -11,7 +11,7 @@ interface Props extends React.ComponentProps<typeof Root> {
|
|
|
11
11
|
* (can be inline or reference to a CSS variable).
|
|
12
12
|
*/
|
|
13
13
|
bleed?: string | number;
|
|
14
|
-
BackdropProps?: React.
|
|
14
|
+
BackdropProps?: React.ComponentPropsWithRef<"div">;
|
|
15
15
|
/**
|
|
16
16
|
* Override the theme used for the background pattern. If not provided, the
|
|
17
17
|
* Exhibit component will use the default from the context. If that is also
|
|
@@ -19,5 +19,5 @@ interface Props extends React.ComponentProps<typeof Root> {
|
|
|
19
19
|
*/
|
|
20
20
|
theme?: "system" | "light" | "dark";
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
23
|
-
export
|
|
22
|
+
export declare function Exhibit(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { Grid } from "timvir/blocks";
|
|
1
|
+
import { Code, Grid } from "timvir/blocks";
|
|
2
2
|
|
|
3
3
|
# Exhibit
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> Presents a component on a checkered background with optional caption and controls.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
This helps illustrating which parts of the element are transparent, or if the element comes with a specific background color.
|
|
7
|
+
<Sample variant="basic" />
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
The presented element is placed on a checkered background with padding all around.
|
|
10
|
+
The checkered pattern makes transparency and background colors immediately visible, while the padding helps the block stand out from surrounding text or other blocks.
|
|
12
11
|
You can tweak the bleed size, or disable the bleed altogether if you want to draw attention to the exact box size of the presented element itself.
|
|
13
12
|
|
|
14
13
|
The caption, if provided, is placed below the block.
|
|
15
14
|
Use it to explain what is being presented, or provide contex around it.
|
|
16
15
|
Think of the `<Exhibit>` block as a `<figure>` + `<figcaption>` for React components.
|
|
17
16
|
|
|
18
|
-
<Sample variant="basic" />
|
|
19
|
-
|
|
20
17
|
## Usage
|
|
21
18
|
|
|
22
19
|
Import `Exhibit` from the `timvir/blocks` module, then use in a Timvir mdx page like so:
|
|
@@ -57,3 +54,9 @@ In those cases, you can force a light or dark theme with the `theme` prop.
|
|
|
57
54
|
<Sample variant="theme" props={{ theme: "dark" }} />
|
|
58
55
|
</div>
|
|
59
56
|
</Grid>
|
|
57
|
+
|
|
58
|
+
<Code language="jsx" caption="Use the theme prop to force a light or dark background, regardless of the user's color scheme preference.">
|
|
59
|
+
{`<Exhibit theme="light">
|
|
60
|
+
This component requires a light background.
|
|
61
|
+
</Exhibit>`}
|
|
62
|
+
</Code>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Exhibit } from "./Exhibit";
|
package/blocks/Exhibit/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useContext, useBlock } from 'timvir/core';
|
|
3
|
-
import * as React from 'react';
|
|
4
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
function cx(...args) {
|
|
@@ -174,7 +173,7 @@ const layoutStyles = {
|
|
|
174
173
|
}};
|
|
175
174
|
|
|
176
175
|
const Root = "div";
|
|
177
|
-
function Exhibit(props$1
|
|
176
|
+
function Exhibit(props$1) {
|
|
178
177
|
const {
|
|
179
178
|
theme: defaultTheme
|
|
180
179
|
} = useContext().blocks?.Exhibit ?? {};
|
|
@@ -195,7 +194,6 @@ function Exhibit(props$1, ref) {
|
|
|
195
194
|
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
196
195
|
const containerStyleProps = props(styles.container, bleed === 0 && styles.bleedZero, styles[`${theme}Theme`]);
|
|
197
196
|
return /*#__PURE__*/jsxs(Root, {
|
|
198
|
-
ref: ref,
|
|
199
197
|
"data-timvir-b-exhibit": true,
|
|
200
198
|
...rest,
|
|
201
199
|
...rootStyleProps,
|
|
@@ -225,7 +223,6 @@ function Exhibit(props$1, ref) {
|
|
|
225
223
|
})]
|
|
226
224
|
});
|
|
227
225
|
}
|
|
228
|
-
var Exhibit_default = /*#__PURE__*/React.forwardRef(Exhibit);
|
|
229
226
|
const cssVariables = {
|
|
230
227
|
bleed: "--timvir-b-Exhibit-bleed",
|
|
231
228
|
borderColor: "--timvir-b-Exhibit-borderColor",
|
|
@@ -273,4 +270,4 @@ const styles = {
|
|
|
273
270
|
}
|
|
274
271
|
};
|
|
275
272
|
|
|
276
|
-
export {
|
|
273
|
+
export { Exhibit };
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.timvir-s-zqqpyx {
|
|
69
|
-
margin-inline: calc(-1
|
|
69
|
+
margin-inline: calc(-1*var(--timvir-b-Exhibit-bleed));
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
grid-auto-rows: min-content;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.timvir-s-
|
|
107
|
-
grid-template-columns: [le]
|
|
106
|
+
.timvir-s-1u7e2r6 {
|
|
107
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex lc]1fr[rc rex]var(--timvir-page-margin)[re];
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.timvir-s-jkpybl {
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
@media (width >= 72rem) {
|
|
115
|
-
.timvir-s-
|
|
116
|
-
grid-template-columns: [le]
|
|
115
|
+
.timvir-s-5diife.timvir-s-5diife {
|
|
116
|
+
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];
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
@media (width >= 48rem) {
|
|
121
|
-
.timvir-s-
|
|
122
|
-
grid-template-columns: [le]
|
|
121
|
+
.timvir-s-1s3i72i.timvir-s-1s3i72i {
|
|
122
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex]1fr[lc]minmax(0,48rem)[rc]1fr[rex]var(--timvir-page-margin)[re];
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
package/blocks/Font/Font.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
5
5
|
declare const Root = "div";
|
|
6
|
-
interface Props extends React.
|
|
6
|
+
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
7
7
|
name: string;
|
|
8
8
|
font: {
|
|
9
9
|
style?: React.CSSProperties;
|
|
@@ -11,5 +11,5 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
|
|
|
11
11
|
};
|
|
12
12
|
info?: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
-
declare
|
|
15
|
-
export
|
|
14
|
+
export declare function Font(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
package/blocks/Font/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Font } from "./Font";
|
package/blocks/Font/index.js
CHANGED
|
@@ -194,7 +194,7 @@ const SvgInfo = props => /*#__PURE__*/jsxs("svg", {
|
|
|
194
194
|
});
|
|
195
195
|
|
|
196
196
|
const Root = "div";
|
|
197
|
-
function Font(props$1
|
|
197
|
+
function Font(props$1) {
|
|
198
198
|
const components = useArticleComponents();
|
|
199
199
|
const {
|
|
200
200
|
name,
|
|
@@ -229,7 +229,6 @@ function Font(props$1, ref) {
|
|
|
229
229
|
className: "timvir-s-1a2a7pz timvir-s-1hx0egp timvir-s-126k92a timvir-s-1mzt3pk"
|
|
230
230
|
};
|
|
231
231
|
return /*#__PURE__*/jsxs(Root, {
|
|
232
|
-
ref: ref,
|
|
233
232
|
...rest,
|
|
234
233
|
...rootStyleProps,
|
|
235
234
|
className: cx(rest.className, rootStyleProps.className),
|
|
@@ -303,6 +302,5 @@ function Font(props$1, ref) {
|
|
|
303
302
|
})]
|
|
304
303
|
});
|
|
305
304
|
}
|
|
306
|
-
var Font_default = /*#__PURE__*/React.forwardRef(Font);
|
|
307
305
|
|
|
308
|
-
export {
|
|
306
|
+
export { Font };
|
package/blocks/Font/styles.css
CHANGED
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
grid-auto-rows: min-content;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.timvir-s-
|
|
95
|
-
grid-template-columns: [le]
|
|
94
|
+
.timvir-s-1u7e2r6 {
|
|
95
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex lc]1fr[rc rex]var(--timvir-page-margin)[re];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.timvir-s-1mzt3pk {
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.timvir-s-1hx0egp {
|
|
107
|
+
-webkit-user-select: text;
|
|
107
108
|
user-select: text;
|
|
108
109
|
}
|
|
109
110
|
|
|
@@ -120,14 +121,14 @@
|
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
@media (width >= 72rem) {
|
|
123
|
-
.timvir-s-
|
|
124
|
-
grid-template-columns: [le]
|
|
124
|
+
.timvir-s-5diife.timvir-s-5diife {
|
|
125
|
+
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];
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
@media (width >= 48rem) {
|
|
129
|
-
.timvir-s-
|
|
130
|
-
grid-template-columns: [le]
|
|
130
|
+
.timvir-s-1s3i72i.timvir-s-1s3i72i {
|
|
131
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex]1fr[lc]minmax(0,48rem)[rc]1fr[rex]var(--timvir-page-margin)[re];
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
}
|
package/blocks/Grid/Grid.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import * as React from "react";
|
|
|
5
5
|
declare const Root = "div";
|
|
6
6
|
interface Props extends React.ComponentProps<typeof Root> {
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
9
|
-
export
|
|
8
|
+
export declare function Grid(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
package/blocks/Grid/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Grid } from "./Grid";
|
package/blocks/Grid/index.js
CHANGED
|
@@ -172,7 +172,7 @@ const layoutStyles = {
|
|
|
172
172
|
}};
|
|
173
173
|
|
|
174
174
|
const Root = "div";
|
|
175
|
-
function Grid(props$1
|
|
175
|
+
function Grid(props$1) {
|
|
176
176
|
const {
|
|
177
177
|
children,
|
|
178
178
|
className,
|
|
@@ -180,7 +180,6 @@ function Grid(props$1, ref) {
|
|
|
180
180
|
} = props$1;
|
|
181
181
|
const rootStyleProps = props(layoutStyles.block, styles.root);
|
|
182
182
|
return /*#__PURE__*/jsx(Root, {
|
|
183
|
-
ref: ref,
|
|
184
183
|
...rest,
|
|
185
184
|
...rootStyleProps,
|
|
186
185
|
style: {
|
|
@@ -207,7 +206,6 @@ function Grid(props$1, ref) {
|
|
|
207
206
|
})
|
|
208
207
|
});
|
|
209
208
|
}
|
|
210
|
-
var Grid_default = /*#__PURE__*/React.forwardRef(Grid);
|
|
211
209
|
const styles = {
|
|
212
210
|
root: {
|
|
213
211
|
k1xSpc: "timvir-s-rvj5dj",
|
|
@@ -218,4 +216,4 @@ const styles = {
|
|
|
218
216
|
}
|
|
219
217
|
};
|
|
220
218
|
|
|
221
|
-
export {
|
|
219
|
+
export { Grid };
|
package/blocks/Grid/styles.css
CHANGED
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
grid-auto-rows: min-content;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.timvir-s-
|
|
55
|
-
grid-template-columns: [le]
|
|
54
|
+
.timvir-s-1u7e2r6 {
|
|
55
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex lc]1fr[rc rex]var(--timvir-page-margin)[re];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.timvir-s-1ayh3g3 {
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
@media (width >= 72rem) {
|
|
63
|
-
.timvir-s-
|
|
64
|
-
grid-template-columns: [le]
|
|
63
|
+
.timvir-s-5diife.timvir-s-5diife {
|
|
64
|
+
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];
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
@media (width >= 48rem) {
|
|
69
|
-
.timvir-s-
|
|
70
|
-
grid-template-columns: [le]
|
|
69
|
+
.timvir-s-1s3i72i.timvir-s-1s3i72i {
|
|
70
|
+
grid-template-columns: [le]var(--timvir-page-margin)[lex]1fr[lc]minmax(0,48rem)[rc]1fr[rex]var(--timvir-page-margin)[re];
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
package/blocks/Icon/Icon.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
import type { Descriptor } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* The underlying DOM element which is rendered by this component.
|
|
@@ -7,5 +7,5 @@ declare const Root = "div";
|
|
|
7
7
|
interface Props extends React.ComponentProps<typeof Root> {
|
|
8
8
|
descriptor: Descriptor;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
11
|
-
export
|
|
10
|
+
export declare function Icon(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
package/blocks/Icon/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Icon } from "./Icon";
|
package/blocks/Icon/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useResizeObserverEntry } from 'timvir/hooks';
|
|
3
|
-
import * as React from 'react';
|
|
4
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
function cx(...args) {
|
|
@@ -101,7 +100,7 @@ function Grid({
|
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
const Root = "div";
|
|
104
|
-
function Icon(props
|
|
103
|
+
function Icon(props) {
|
|
105
104
|
const {
|
|
106
105
|
descriptor,
|
|
107
106
|
...rest
|
|
@@ -112,7 +111,6 @@ function Icon(props, ref) {
|
|
|
112
111
|
className: "timvir-s-1n2onr6 timvir-s-1vjfegm timvir-s-dtfvks timvir-s-d2wi23"
|
|
113
112
|
};
|
|
114
113
|
return /*#__PURE__*/jsx(Root, {
|
|
115
|
-
ref: ref,
|
|
116
114
|
...rest,
|
|
117
115
|
...rootStyleProps,
|
|
118
116
|
className: cx(rest.className, rootStyleProps.className),
|
|
@@ -136,6 +134,5 @@ function Icon(props, ref) {
|
|
|
136
134
|
})
|
|
137
135
|
});
|
|
138
136
|
}
|
|
139
|
-
var Icon_default = /*#__PURE__*/React.forwardRef(Icon);
|
|
140
137
|
|
|
141
|
-
export {
|
|
138
|
+
export { Icon };
|
|
@@ -5,5 +5,5 @@ interface Props {
|
|
|
5
5
|
size: number;
|
|
6
6
|
Component: React.ElementType;
|
|
7
7
|
}
|
|
8
|
-
declare function Canvas(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export
|
|
8
|
+
export declare function Canvas(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Canvas } from "./Canvas";
|
package/blocks/Icon/styles.css
CHANGED
|
@@ -3,8 +3,8 @@ import * as React from "react";
|
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
5
5
|
declare const Root = "div";
|
|
6
|
-
interface Props extends React.
|
|
6
|
+
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
7
7
|
variant?: "info" | "warning" | "alert";
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
10
|
-
export
|
|
9
|
+
export declare function Message(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Message } from "./Message";
|
package/blocks/Message/index.js
CHANGED
|
@@ -213,14 +213,13 @@ const layoutStyles = {
|
|
|
213
213
|
}};
|
|
214
214
|
|
|
215
215
|
const Root = "div";
|
|
216
|
-
function Message(props$1
|
|
216
|
+
function Message(props$1) {
|
|
217
217
|
const {
|
|
218
218
|
variant,
|
|
219
219
|
children,
|
|
220
220
|
...rest
|
|
221
221
|
} = props$1;
|
|
222
222
|
return /*#__PURE__*/jsxs(Root, {
|
|
223
|
-
ref: ref,
|
|
224
223
|
...props(layoutStyles.block, styles.root, variant && styles[variant]),
|
|
225
224
|
...rest,
|
|
226
225
|
children: [variant && {
|
|
@@ -257,7 +256,6 @@ function Message(props$1, ref) {
|
|
|
257
256
|
})]
|
|
258
257
|
});
|
|
259
258
|
}
|
|
260
|
-
var Message_default = /*#__PURE__*/React.forwardRef(Message);
|
|
261
259
|
const styles = {
|
|
262
260
|
root: {
|
|
263
261
|
kVAEAm: "timvir-s-1n2onr6",
|
|
@@ -316,4 +314,4 @@ const styles = {
|
|
|
316
314
|
}
|
|
317
315
|
};
|
|
318
316
|
|
|
319
|
-
export {
|
|
317
|
+
export { Message };
|
|
@@ -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
|
}
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
* The underlying DOM element which is rendered by this component.
|
|
4
4
|
*/
|
|
5
5
|
declare const Root = "div";
|
|
6
|
-
interface Props extends React.
|
|
6
|
+
interface Props extends React.ComponentPropsWithRef<typeof Root> {
|
|
7
7
|
/**
|
|
8
8
|
* The CSS Color value of the swatch. Any CSS color definition is accepted.
|
|
9
9
|
*
|
|
@@ -29,5 +29,5 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
|
|
|
29
29
|
*/
|
|
30
30
|
ancestry?: string;
|
|
31
31
|
}
|
|
32
|
-
declare
|
|
33
|
-
export
|
|
32
|
+
export declare function Swatch(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -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/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Swatch } from "./Swatch";
|
package/blocks/Swatch/index.js
CHANGED
|
@@ -174,7 +174,7 @@ const layoutStyles = {
|
|
|
174
174
|
}};
|
|
175
175
|
|
|
176
176
|
const Root = "div";
|
|
177
|
-
function Swatch(props$1
|
|
177
|
+
function Swatch(props$1) {
|
|
178
178
|
const block = useBlock(props$1);
|
|
179
179
|
const {
|
|
180
180
|
value,
|
|
@@ -197,7 +197,6 @@ function Swatch(props$1, ref) {
|
|
|
197
197
|
};
|
|
198
198
|
return /*#__PURE__*/jsx(Root, {
|
|
199
199
|
role: "button",
|
|
200
|
-
ref: ref,
|
|
201
200
|
...rest,
|
|
202
201
|
...rootStyleProps,
|
|
203
202
|
className: cx(rootStyleProps.className, className),
|
|
@@ -236,7 +235,6 @@ function Swatch(props$1, ref) {
|
|
|
236
235
|
})
|
|
237
236
|
});
|
|
238
237
|
}
|
|
239
|
-
var Swatch_default = /*#__PURE__*/React.forwardRef(Swatch);
|
|
240
238
|
const styles = {
|
|
241
239
|
root: {
|
|
242
240
|
kVAEAm: "timvir-s-1n2onr6",
|
|
@@ -244,4 +242,4 @@ const styles = {
|
|
|
244
242
|
}
|
|
245
243
|
};
|
|
246
244
|
|
|
247
|
-
export {
|
|
245
|
+
export { Swatch };
|