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.
Files changed (82) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +21 -0
  3. package/blocks/Arbitrary/Arbitrary.d.ts +2 -2
  4. package/blocks/Arbitrary/docs/index.mdx +57 -10
  5. package/blocks/Arbitrary/index.d.ts +1 -1
  6. package/blocks/Arbitrary/index.js +16 -71
  7. package/blocks/Arbitrary/styles.css +11 -7
  8. package/blocks/Code/Code.d.ts +3 -3
  9. package/blocks/Code/docs/index.mdx +1 -1
  10. package/blocks/Code/index.d.ts +1 -1
  11. package/blocks/Code/index.js +2 -4
  12. package/blocks/Code/styles.css +8 -8
  13. package/blocks/ColorBar/ColorBar.d.ts +3 -3
  14. package/blocks/ColorBar/docs/index.mdx +1 -1
  15. package/blocks/ColorBar/index.d.ts +1 -1
  16. package/blocks/ColorBar/index.js +2 -4
  17. package/blocks/ColorBar/styles.css +6 -6
  18. package/blocks/ColorBook/ColorBook.d.ts +4 -4
  19. package/blocks/ColorBook/index.d.ts +1 -1
  20. package/blocks/ColorBook/index.js +3 -5
  21. package/blocks/ColorBook/styles.css +18 -18
  22. package/blocks/Cover/Cover.d.ts +4 -4
  23. package/blocks/Cover/index.d.ts +1 -1
  24. package/blocks/Cover/index.js +2 -5
  25. package/blocks/Cover/styles.css +6 -6
  26. package/blocks/Exhibit/Exhibit.d.ts +4 -4
  27. package/blocks/Exhibit/docs/index.mdx +11 -8
  28. package/blocks/Exhibit/index.d.ts +1 -1
  29. package/blocks/Exhibit/index.js +2 -5
  30. package/blocks/Exhibit/styles.css +7 -7
  31. package/blocks/Font/Font.d.ts +3 -3
  32. package/blocks/Font/index.d.ts +1 -1
  33. package/blocks/Font/index.js +2 -4
  34. package/blocks/Font/styles.css +7 -6
  35. package/blocks/Grid/Grid.d.ts +2 -2
  36. package/blocks/Grid/docs/index.mdx +1 -1
  37. package/blocks/Grid/index.d.ts +1 -1
  38. package/blocks/Grid/index.js +2 -4
  39. package/blocks/Grid/styles.css +6 -6
  40. package/blocks/Icon/Icon.d.ts +3 -3
  41. package/blocks/Icon/index.d.ts +1 -1
  42. package/blocks/Icon/index.js +2 -5
  43. package/blocks/Icon/internal/Canvas.d.ts +2 -2
  44. package/blocks/Icon/internal/index.d.ts +1 -1
  45. package/blocks/Icon/styles.css +1 -0
  46. package/blocks/Message/Message.d.ts +3 -3
  47. package/blocks/Message/docs/index.mdx +1 -1
  48. package/blocks/Message/index.d.ts +1 -1
  49. package/blocks/Message/index.js +2 -4
  50. package/blocks/Message/styles.css +6 -6
  51. package/blocks/Swatch/Swatch.d.ts +3 -3
  52. package/blocks/Swatch/docs/index.mdx +1 -2
  53. package/blocks/Swatch/index.d.ts +1 -1
  54. package/blocks/Swatch/index.js +2 -4
  55. package/blocks/Swatch/styles.css +6 -6
  56. package/blocks/Viewport/Viewport.d.ts +3 -3
  57. package/blocks/Viewport/docs/index.mdx +5 -8
  58. package/blocks/Viewport/index.d.ts +1 -1
  59. package/blocks/Viewport/index.js +6 -10
  60. package/blocks/Viewport/internal/Caption.d.ts +2 -4
  61. package/blocks/Viewport/internal/Handle.d.ts +3 -4
  62. package/blocks/Viewport/internal/Ruler.d.ts +2 -2
  63. package/blocks/Viewport/internal/index.d.ts +3 -3
  64. package/blocks/Viewport/styles.css +7 -7
  65. package/blocks/WebLink/WebLink.d.ts +3 -3
  66. package/blocks/WebLink/docs/index.mdx +3 -1
  67. package/blocks/WebLink/index.d.ts +1 -1
  68. package/blocks/WebLink/index.js +2 -4
  69. package/blocks/WebLink/styles.css +6 -6
  70. package/blocks/styles.css +95 -89
  71. package/builtins/index.js +1 -1
  72. package/builtins/styles.css +11 -11
  73. package/context/index.d.ts +1 -1
  74. package/context/index.js +1 -1
  75. package/core/components/Footer/Footer.d.ts +4 -4
  76. package/core/components/Page/Page.d.ts +2 -2
  77. package/core/index.js +13 -17
  78. package/core/styles.css +13 -14
  79. package/package.json +5 -5
  80. package/search/Search/Search.d.ts +4 -4
  81. package/search/index.js +2 -5
  82. package/styles.css +119 -114
@@ -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.ComponentPropsWithoutRef<typeof Root> {
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 const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
20
- export default _default;
19
+ export declare function Cover(props: Props): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -1 +1 @@
1
- export { default as Cover } from "./Cover";
1
+ export { Cover } from "./Cover";
@@ -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, ref) {
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 { Cover_default as Cover };
203
+ export { Cover };
@@ -47,8 +47,8 @@
47
47
  grid-auto-rows: min-content;
48
48
  }
49
49
 
50
- .timvir-s-12c0rpe {
51
- grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
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-1mxrek7.timvir-s-1mxrek7 {
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];
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-9q0i6z.timvir-s-9q0i6z {
66
- grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
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.ComponentPropsWithoutRef<"div">;
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 const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
- export default _default;
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
- The `<Exhibit>` is a block which presents something–usually a React component–in a nice way.
5
+ > Presents a component on a checkered background with optional caption and controls.
6
6
 
7
- The presented element is placed on top of a checkered background.
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
- A bit of padding is included all around the presented element.
11
- Together with the checkered background, it makes the `<Exhibit>` block stand out next plain text or other blocks.
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 { default as Exhibit } from "./Exhibit";
1
+ export { Exhibit } from "./Exhibit";
@@ -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, ref) {
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 { Exhibit_default as Exhibit };
273
+ export { Exhibit };
@@ -66,7 +66,7 @@
66
66
  }
67
67
 
68
68
  .timvir-s-zqqpyx {
69
- margin-inline: calc(-1 * var(--timvir-b-Exhibit-bleed));
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-12c0rpe {
107
- grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
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-1mxrek7.timvir-s-1mxrek7 {
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];
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-9q0i6z.timvir-s-9q0i6z {
122
- grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
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
  }
@@ -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.ComponentPropsWithoutRef<typeof Root> {
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 const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
15
- export default _default;
14
+ export declare function Font(props: Props): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -1 +1 @@
1
- export { default as Font } from "./Font";
1
+ export { Font } from "./Font";
@@ -194,7 +194,7 @@ const SvgInfo = props => /*#__PURE__*/jsxs("svg", {
194
194
  });
195
195
 
196
196
  const Root = "div";
197
- function Font(props$1, ref) {
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 { Font_default as Font };
306
+ export { Font };
@@ -91,8 +91,8 @@
91
91
  grid-auto-rows: min-content;
92
92
  }
93
93
 
94
- .timvir-s-12c0rpe {
95
- grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
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-1mxrek7.timvir-s-1mxrek7 {
124
- 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];
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-9q0i6z.timvir-s-9q0i6z {
130
- grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
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
  }
@@ -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 const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- export default _default;
8
+ export declare function Grid(props: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -4,7 +4,7 @@ import { fullWidth } from "timvir/core";
4
4
 
5
5
  # Grid
6
6
 
7
- > CSS grid with a predefined template (columns, gaps etc)
7
+ > CSS grid with a predefined template (columns, gaps etc).
8
8
 
9
9
  ```
10
10
  <Grid>
@@ -1 +1 @@
1
- export { default as Grid } from "./Grid";
1
+ export { Grid } from "./Grid";
@@ -172,7 +172,7 @@ const layoutStyles = {
172
172
  }};
173
173
 
174
174
  const Root = "div";
175
- function Grid(props$1, ref) {
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 { Grid_default as Grid };
219
+ export { Grid };
@@ -51,8 +51,8 @@
51
51
  grid-auto-rows: min-content;
52
52
  }
53
53
 
54
- .timvir-s-12c0rpe {
55
- grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
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-1mxrek7.timvir-s-1mxrek7 {
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];
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-9q0i6z.timvir-s-9q0i6z {
70
- grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
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
  }
@@ -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 const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- export default _default;
10
+ export declare function Icon(props: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1 +1 @@
1
- export { default as Icon } from "./Icon";
1
+ export { Icon } from "./Icon";
@@ -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, ref) {
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 { Icon_default as Icon };
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 default Canvas;
8
+ export declare function Canvas(props: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1 +1 @@
1
- export { default as Canvas } from "./Canvas";
1
+ export { Canvas } from "./Canvas";
@@ -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,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.ComponentPropsWithoutRef<typeof Root> {
6
+ interface Props extends React.ComponentPropsWithRef<typeof Root> {
7
7
  variant?: "info" | "warning" | "alert";
8
8
  }
9
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
10
- export default _default;
9
+ export declare function Message(props: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -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
 
@@ -1 +1 @@
1
- export { default as Message } from "./Message";
1
+ export { Message } from "./Message";
@@ -213,14 +213,13 @@ const layoutStyles = {
213
213
  }};
214
214
 
215
215
  const Root = "div";
216
- function Message(props$1, ref) {
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 { Message_default as Message };
317
+ export { Message };
@@ -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
  }
@@ -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.ComponentPropsWithoutRef<typeof Root> {
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 const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
33
- export default _default;
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 `<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
 
@@ -1 +1 @@
1
- export { default as Swatch } from "./Swatch";
1
+ export { Swatch } from "./Swatch";
@@ -174,7 +174,7 @@ const layoutStyles = {
174
174
  }};
175
175
 
176
176
  const Root = "div";
177
- function Swatch(props$1, ref) {
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 { Swatch_default as Swatch };
245
+ export { Swatch };