timvir 0.2.38 → 0.2.42

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 (113) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
  3. package/blocks/Arbitrary/index.js +232 -78
  4. package/blocks/Arbitrary/samples/basic.d.ts +1 -1
  5. package/blocks/Arbitrary/styles.css +166 -6
  6. package/blocks/Code/Code.d.ts +0 -6
  7. package/blocks/Code/docs/index.mdx +0 -11
  8. package/blocks/Code/index.js +213 -112
  9. package/blocks/Code/samples/basic.d.ts +1 -1
  10. package/blocks/Code/samples/toggle.d.ts +1 -2
  11. package/blocks/Code/styles.css +100 -15
  12. package/blocks/ColorBar/docs/index.mdx +8 -2
  13. package/blocks/ColorBar/index.js +223 -68
  14. package/blocks/ColorBar/samples/basic.d.ts +1 -2
  15. package/blocks/ColorBar/styles.css +103 -4
  16. package/blocks/ColorBook/docs/index.mdx +1 -1
  17. package/blocks/ColorBook/index.js +222 -60
  18. package/blocks/ColorBook/samples/basic.d.ts +1 -2
  19. package/blocks/ColorBook/styles.css +166 -6
  20. package/blocks/Cover/index.js +177 -48
  21. package/blocks/Cover/samples/basic.d.ts +1 -2
  22. package/blocks/Cover/styles.css +18 -0
  23. package/blocks/Exhibit/index.js +205 -50
  24. package/blocks/Exhibit/samples/basic.d.ts +1 -2
  25. package/blocks/Exhibit/samples/bleed.d.ts +1 -1
  26. package/blocks/Exhibit/samples/usage.d.ts +1 -2
  27. package/blocks/Exhibit/styles.css +66 -3
  28. package/blocks/Font/index.js +239 -98
  29. package/blocks/Font/samples/basic.d.ts +1 -1
  30. package/blocks/Font/samples/timvir/body1.d.ts +1 -1
  31. package/blocks/Font/samples/timvir/caption.d.ts +1 -1
  32. package/blocks/Font/samples/timvir/h1.d.ts +1 -1
  33. package/blocks/Font/samples/timvir/h2.d.ts +1 -1
  34. package/blocks/Font/samples/timvir/h3.d.ts +1 -1
  35. package/blocks/Font/samples/timvir/h4.d.ts +1 -1
  36. package/blocks/Font/styles.css +82 -8
  37. package/blocks/Grid/docs/index.mdx +4 -4
  38. package/blocks/Grid/index.js +181 -36
  39. package/blocks/Grid/samples/basic.d.ts +1 -2
  40. package/blocks/Grid/styles.css +20 -1
  41. package/blocks/Icon/docs/index.mdx +13 -13
  42. package/blocks/Icon/index.js +93 -100
  43. package/blocks/Icon/internal/Canvas.d.ts +1 -1
  44. package/blocks/Icon/samples/basic.d.ts +1 -2
  45. package/blocks/Icon/styles.css +117 -5
  46. package/blocks/Icon/types.d.ts +3 -2
  47. package/blocks/Message/docs/index.mdx +5 -8
  48. package/blocks/Message/index.js +238 -55
  49. package/blocks/Message/samples/basic.d.ts +1 -1
  50. package/blocks/Message/styles.css +94 -6
  51. package/blocks/Swatch/docs/index.mdx +16 -16
  52. package/blocks/Swatch/index.js +199 -45
  53. package/blocks/Swatch/samples/basic.d.ts +1 -2
  54. package/blocks/Swatch/styles.css +82 -4
  55. package/blocks/Viewport/index.js +360 -237
  56. package/blocks/Viewport/internal/Caption.d.ts +1 -1
  57. package/blocks/Viewport/internal/Handle.d.ts +1 -1
  58. package/blocks/Viewport/internal/Ruler.d.ts +1 -2
  59. package/blocks/Viewport/samples/basic.d.ts +1 -2
  60. package/blocks/Viewport/styles.css +259 -14
  61. package/blocks/WebLink/index.js +217 -62
  62. package/blocks/WebLink/samples/basic.d.ts +1 -1
  63. package/blocks/WebLink/styles.css +170 -8
  64. package/blocks/styles.css +1460 -97
  65. package/builtins/components.d.ts +2 -2
  66. package/builtins/index.js +306 -239
  67. package/builtins/styles.css +267 -14
  68. package/context/index.d.ts +6 -1
  69. package/core/components/Commands/Commands.d.ts +2 -0
  70. package/core/components/Commands/internal/Action.d.ts +1 -1
  71. package/core/components/Commands/internal/Dialog.d.ts +1 -2
  72. package/core/components/Commands/internal/index.d.ts +0 -1
  73. package/core/components/Footer/samples/basic.d.ts +1 -1
  74. package/core/components/NavigationFooter/NavigationFooter.d.ts +4 -2
  75. package/core/components/NavigationFooter/samples/basic.d.ts +1 -1
  76. package/core/components/Page/Page.d.ts +12 -3
  77. package/core/components/Page/docs/index.mdx +44 -11
  78. package/core/components/Page/internal/Section.d.ts +1 -2
  79. package/core/components/Page/internal/Sidebar.d.ts +1 -1
  80. package/core/components/Page/internal/SidebarItem.d.ts +1 -2
  81. package/core/components/Page/internal/index.d.ts +0 -1
  82. package/core/components/Page/samples/basic.d.ts +1 -2
  83. package/core/components/Page/samples/layout.d.ts +1 -2
  84. package/core/index.d.ts +191 -2
  85. package/core/index.js +674 -449
  86. package/core/layout.d.ts +40 -0
  87. package/core/styles.css +857 -88
  88. package/core/theme/detector.js +1 -1
  89. package/global.css +79 -0
  90. package/internal/cx.d.ts +1 -0
  91. package/knip.config.d.ts +5 -0
  92. package/package.json +1 -2
  93. package/search/Search/samples/basic.d.ts +1 -2
  94. package/search/index.js +2 -208
  95. package/styles.css +2670 -222
  96. package/blocks/Code/theme.d.ts +0 -2
  97. package/bus/styles.css +0 -1
  98. package/context/styles.css +0 -1
  99. package/core/theme/index.d.ts +0 -1
  100. package/hooks/styles.css +0 -1
  101. package/search/Search/internal/Dialog.d.ts +0 -20
  102. package/search/Search/internal/index.d.ts +0 -1
  103. package/search/SearchBoxInput/SearchBoxInput.d.ts +0 -11
  104. package/search/SearchBoxInput/docs/api.mdx +0 -76
  105. package/search/SearchBoxInput/docs/index.mdx +0 -6
  106. package/search/SearchBoxInput/index.d.ts +0 -1
  107. package/search/SearchBoxInput/samples/basic.d.ts +0 -2
  108. package/search/SearchBoxListItem/SearchBoxListItem.d.ts +0 -13
  109. package/search/SearchBoxListItem/docs/api.mdx +0 -76
  110. package/search/SearchBoxListItem/docs/index.mdx +0 -30
  111. package/search/SearchBoxListItem/index.d.ts +0 -1
  112. package/search/SearchBoxListItem/samples/basic.d.ts +0 -2
  113. package/search/styles.css +0 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # timvir
2
2
 
3
+ ## 0.2.42
4
+
5
+ ### Patch Changes
6
+
7
+ - **Fix broken release** ([#3473](https://github.com/timvir/timvir/pull/3473)) - No code changes.
8
+
9
+ ## 0.2.41
10
+
11
+ ### Patch Changes
12
+
13
+ - **Fix broken release** ([#3471](https://github.com/timvir/timvir/pull/3471)) - No code changes.
14
+
15
+ ## 0.2.40
16
+
17
+ ### Patch Changes
18
+
19
+ - **Remove peer dependency on @mdx-js/react** ([#3315](https://github.com/timvir/timvir/pull/3315)) - Timvir no longer wraps the page content with `<MDXProvider>`. Instead, Timvir provides a custom hook – `useArticleComponents` – for use in client components. If you're building server components though, you should prefer importing your custom components directly, and import Timvir builtins from the `timvir/builtins` module.
20
+ - **Improve word wrapping behavior in article pages** ([#3429](https://github.com/timvir/timvir/pull/3429)) - Long words (for example long identifiers used in certain programming languages) no longer extend beyond the layout box. Instead, the browser will break the words when needed. Note that this change only applies inside the article page content. In other parts of the interface (eg. sidebar or navigation footer) Timvir continues to use text truncation with ellipsis for long words.
21
+ - **Improve type of Page Link prop** ([#3330](https://github.com/timvir/timvir/pull/3330)) - The `Link` prop on the `<Page>` component is now type-compatible with the `<Link>` component from Next.js. This is not a breaking change, not at runtime anyways. There is a small chance that TypeScript will raise a type error. But it's more likely that you can remove a `as any` type cast if you currently use one.
22
+
23
+ ## 0.2.39
24
+
25
+ ### Patch Changes
26
+
27
+ - **Use the New JSX Transform** ([#3323](https://github.com/timvir/timvir/pull/3323)) - The New JSX Transform was released as part of React 17. This transform reduces bundle sizes and improves performance. For more details, see the announcement on the React blog: [Introducing the New JSX Transform](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html). As Timvir already requires React 17 or later, this should not have any impact to users.
28
+ - **Fix dark mode styles** ([#3197](https://github.com/timvir/timvir/pull/3197)) - During the recent Linaria v5 -> v6 (and corresponding stylis v3 -> v4) upgrade, the dark mode styles were slightly broken. This patch restores the dark mode styles.
29
+
30
+ ## 0.2.38
31
+
3
32
  ## 0.2.37
4
33
 
5
34
  ### Patch Changes
@@ -1,5 +1,5 @@
1
- import { Exhibit } from "timvir/blocks";
2
1
  import * as React from "react";
2
+ import { Exhibit } from "timvir/blocks";
3
3
  /**
4
4
  * The underlying DOM element which is rendered by this component.
5
5
  */
@@ -1,36 +1,170 @@
1
1
  'use client';
2
- import { Exhibit } from 'timvir/blocks';
3
- import { useBlock } from 'timvir/core';
4
2
  import * as React from 'react';
3
+ import { Exhibit } from 'timvir/blocks';
4
+ import { useBlock, layoutStyles } from 'timvir/core';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
6
 
6
- // src/css.ts
7
+ function cx(...args) {
8
+ let str = "";
9
+ for (let i = 0; i < args.length; i++) {
10
+ const arg = args[i];
11
+ if (typeof arg === "string") {
12
+ str += (str && " ") + arg;
13
+ }
14
+ }
15
+ return str;
16
+ }
7
17
 
8
- // src/cx.ts
9
- var cx = function cx2() {
10
- const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
11
- const atomicClasses = {};
12
- const nonAtomicClasses = [];
13
- presentClassNames.forEach((arg) => {
14
- const individualClassNames = arg ? arg.split(" ") : [];
15
- individualClassNames.forEach((className) => {
16
- if (className.startsWith("atm_")) {
17
- const [, keyHash] = className.split("_");
18
- atomicClasses[keyHash] = className;
19
- } else {
20
- nonAtomicClasses.push(className);
21
- }
18
+ var styleq = {};
19
+ var hasRequiredStyleq;
20
+ function requireStyleq() {
21
+ if (hasRequiredStyleq) return styleq;
22
+ hasRequiredStyleq = 1;
23
+ Object.defineProperty(styleq, "__esModule", {
24
+ value: true
22
25
  });
23
- });
24
- const result = [];
25
- for (const keyHash in atomicClasses) {
26
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
27
- result.push(atomicClasses[keyHash]);
26
+ styleq.styleq = void 0;
27
+ var cache = new WeakMap();
28
+ var compiledKey = '$$css';
29
+ function createStyleq(options) {
30
+ var disableCache;
31
+ var disableMix;
32
+ var transform;
33
+ if (options != null) {
34
+ disableCache = options.disableCache === true;
35
+ disableMix = options.disableMix === true;
36
+ transform = options.transform;
37
+ }
38
+ return function styleq() {
39
+ var definedProperties = [];
40
+ var className = '';
41
+ var inlineStyle = null;
42
+ var debugString = '';
43
+ var nextCache = disableCache ? null : cache;
44
+ var styles = new Array(arguments.length);
45
+ for(var i = 0; i < arguments.length; i++){
46
+ styles[i] = arguments[i];
47
+ }
48
+ while(styles.length > 0){
49
+ var possibleStyle = styles.pop();
50
+ if (possibleStyle == null || possibleStyle === false) {
51
+ continue;
52
+ }
53
+ if (Array.isArray(possibleStyle)) {
54
+ for(var _i = 0; _i < possibleStyle.length; _i++){
55
+ styles.push(possibleStyle[_i]);
56
+ }
57
+ continue;
58
+ }
59
+ var style = transform != null ? transform(possibleStyle) : possibleStyle;
60
+ if (style.$$css != null) {
61
+ var classNameChunk = '';
62
+ if (nextCache != null && nextCache.has(style)) {
63
+ var cacheEntry = nextCache.get(style);
64
+ if (cacheEntry != null) {
65
+ classNameChunk = cacheEntry[0];
66
+ debugString = cacheEntry[2];
67
+ definedProperties.push.apply(definedProperties, cacheEntry[1]);
68
+ nextCache = cacheEntry[3];
69
+ }
70
+ } else {
71
+ var definedPropertiesChunk = [];
72
+ for(var prop in style){
73
+ var value = style[prop];
74
+ if (prop === compiledKey) {
75
+ var compiledKeyValue = style[prop];
76
+ if (compiledKeyValue !== true) {
77
+ debugString = debugString ? compiledKeyValue + '; ' + debugString : compiledKeyValue;
78
+ }
79
+ continue;
80
+ }
81
+ if (typeof value === 'string' || value === null) {
82
+ if (!definedProperties.includes(prop)) {
83
+ definedProperties.push(prop);
84
+ if (nextCache != null) {
85
+ definedPropertiesChunk.push(prop);
86
+ }
87
+ if (typeof value === 'string') {
88
+ classNameChunk += classNameChunk ? ' ' + value : value;
89
+ }
90
+ }
91
+ } else {
92
+ console.error("styleq: ".concat(prop, " typeof ").concat(String(value), " is not \"string\" or \"null\"."));
93
+ }
94
+ }
95
+ if (nextCache != null) {
96
+ var weakMap = new WeakMap();
97
+ nextCache.set(style, [
98
+ classNameChunk,
99
+ definedPropertiesChunk,
100
+ debugString,
101
+ weakMap
102
+ ]);
103
+ nextCache = weakMap;
104
+ }
105
+ }
106
+ if (classNameChunk) {
107
+ className = className ? classNameChunk + ' ' + className : classNameChunk;
108
+ }
109
+ } else {
110
+ if (disableMix) {
111
+ if (inlineStyle == null) {
112
+ inlineStyle = {};
113
+ }
114
+ inlineStyle = Object.assign({}, style, inlineStyle);
115
+ } else {
116
+ var subStyle = null;
117
+ for(var _prop in style){
118
+ var _value = style[_prop];
119
+ if (_value !== undefined) {
120
+ if (!definedProperties.includes(_prop)) {
121
+ if (_value != null) {
122
+ if (inlineStyle == null) {
123
+ inlineStyle = {};
124
+ }
125
+ if (subStyle == null) {
126
+ subStyle = {};
127
+ }
128
+ subStyle[_prop] = _value;
129
+ }
130
+ definedProperties.push(_prop);
131
+ nextCache = null;
132
+ }
133
+ }
134
+ }
135
+ if (subStyle != null) {
136
+ inlineStyle = Object.assign(subStyle, inlineStyle);
137
+ }
138
+ }
139
+ }
140
+ }
141
+ var styleProps = [
142
+ className,
143
+ inlineStyle,
144
+ debugString
145
+ ];
146
+ return styleProps;
147
+ };
28
148
  }
29
- }
30
- result.push(...nonAtomicClasses);
31
- return result.join(" ");
32
- };
33
- var cx_default = cx;
149
+ var styleq$1 = styleq.styleq = createStyleq();
150
+ styleq$1.factory = createStyleq;
151
+ return styleq;
152
+ }
153
+ var styleqExports = requireStyleq();
154
+ function props(...styles) {
155
+ const [className, style, dataStyleSrc] = styleqExports.styleq(styles);
156
+ const result = {};
157
+ if (className != null && className !== '') {
158
+ result.className = className;
159
+ }
160
+ if (style != null && Object.keys(style).length > 0) {
161
+ result.style = style;
162
+ }
163
+ if (dataStyleSrc != null && dataStyleSrc !== '') {
164
+ result['data-style-src'] = dataStyleSrc;
165
+ }
166
+ return result;
167
+ }
34
168
 
35
169
  const bytesToHex = (() => {
36
170
  const s = Array.from({
@@ -93,12 +227,9 @@ const Context = /*#__PURE__*/React.createContext({
93
227
  });
94
228
  const useContext = () => React.useContext(Context);
95
229
 
96
- /**
97
- * The underlying DOM element which is rendered by this component.
98
- */
99
230
  const Root = "div";
100
- function Arbitrary(props, ref) {
101
- const block = useBlock(props);
231
+ function Arbitrary(props$1, ref) {
232
+ const block = useBlock(props$1);
102
233
  const {
103
234
  ExhibitProps,
104
235
  className,
@@ -114,61 +245,84 @@ function Arbitrary(props, ref) {
114
245
  });
115
246
  }, []);
116
247
  React.useEffect(() => {
117
- if (props.id) {
248
+ if (props$1.id) {
118
249
  block.bus.next({
119
250
  type: "SIGNAL",
120
- path: `/dev/timvir/block/${props.id}`,
251
+ path: `/dev/timvir/block/${props$1.id}`,
121
252
  interface: "dev.timvir.block.Arbitrary",
122
253
  member: "seed",
123
254
  body: value.seed
124
255
  });
125
256
  }
126
- }, [block.bus, value.seed]);
127
- return /*#__PURE__*/React.createElement(Context.Provider, {
128
- value: value
129
- }, /*#__PURE__*/React.createElement(Root, {
130
- ref: ref,
131
- className: cx_default("timvir-b-Arbitrary", classes.root, className),
132
- ...rest
133
- }, /*#__PURE__*/React.createElement("div", {
134
- className: classes.controls
135
- }, /*#__PURE__*/React.createElement("div", {
136
- className: classes.textField
137
- }, /*#__PURE__*/React.createElement("span", {
138
- className: classes.startAdornment
139
- }, "Seed:"), /*#__PURE__*/React.createElement("input", {
140
- className: cx_default("timvir-b-Arbitrary-seed", classes.input),
141
- placeholder: "Seed",
142
- value: encode(new TextEncoder().encode(`${value.seed}`)),
143
- readOnly: true,
144
- onPaste: ev => {
145
- const v = ev.clipboardData.getData("text/plain");
146
- setValue({
147
- seed: +new TextDecoder().decode(decode(v))
148
- });
149
- },
150
- onFocus: ev => {
151
- ev.currentTarget.select();
152
- }
153
- })), /*#__PURE__*/React.createElement("button", {
154
- className: classes.button,
155
- onClick: () => {
156
- setValue({
157
- seed: crypto.getRandomValues(new Uint32Array(1))[0]
158
- });
159
- }
160
- }, "Refresh")), /*#__PURE__*/React.createElement(Exhibit, {
161
- ...ExhibitProps
162
- }, children)));
257
+ }, [props$1.id, block.bus, value.seed]);
258
+ const rootStyleProps = props(layoutStyles.block, styles.root);
259
+ const inputStyleProps = {
260
+ className: "timvir-s-c342km timvir-s-1a2a7pz timvir-s-ln7xf2 timvir-s-jbqb8w timvir-s-kh2ocl timvir-s-1717udv timvir-s-h8yej3 timvir-s-1heor9g"
261
+ };
262
+ return /*#__PURE__*/jsx(Context.Provider, {
263
+ value: value,
264
+ children: /*#__PURE__*/jsxs(Root, {
265
+ ref: ref,
266
+ ...rest,
267
+ ...rootStyleProps,
268
+ className: cx("timvir-b-Arbitrary", rootStyleProps.className, className),
269
+ style: {
270
+ margin: "1em 0",
271
+ ...rootStyleProps.style,
272
+ ...rest.style
273
+ },
274
+ children: [/*#__PURE__*/jsxs("div", {
275
+ className: "timvir-s-rvj5dj timvir-s-d3ue5d timvir-s-9flyx0 timvir-s-1e56ztr",
276
+ children: [/*#__PURE__*/jsxs("div", {
277
+ className: "timvir-s-78zum5 timvir-s-6s0dn4 timvir-s-qtkp2c timvir-s-u0aao5 timvir-s-1n2onr6 timvir-s-1d0dlzq timvir-s-1tcdsnd timvir-s-ieozyd timvir-s-1x824oc timvir-s-5l10my timvir-s-1op5qub timvir-s-1kx6eu5 timvir-s-hlrplc timvir-s-1dzvx6z timvir-s-lzy7x8 timvir-s-1edtgf2 timvir-s-18wp92t timvir-s-rlfy00",
278
+ children: [/*#__PURE__*/jsx("span", {
279
+ className: "timvir-s-1rg5ohu timvir-s-vgvpxu timvir-s-15ku74s",
280
+ children: "Seed:"
281
+ }), /*#__PURE__*/jsx("input", {
282
+ ...inputStyleProps,
283
+ className: cx("timvir-b-Arbitrary-seed", inputStyleProps.className),
284
+ style: {
285
+ ...inputStyleProps.style
286
+ },
287
+ placeholder: "Seed",
288
+ value: encode(new TextEncoder().encode(`${value.seed}`)),
289
+ readOnly: true,
290
+ onPaste: ev => {
291
+ const v = ev.clipboardData.getData("text/plain");
292
+ setValue({
293
+ seed: +new TextDecoder().decode(decode(v))
294
+ });
295
+ },
296
+ onFocus: ev => {
297
+ ev.currentTarget.select();
298
+ }
299
+ })]
300
+ }), /*#__PURE__*/jsx("button", {
301
+ type: "button",
302
+ className: "timvir-s-1a2a7pz timvir-s-u0aao5 timvir-s-mkeg23 timvir-s-1y0btm7 timvir-s-j7gikm timvir-s-1cum3z5 timvir-s-1d0dlzq timvir-s-1cdhzux timvir-s-ln7xf2 timvir-s-49kzi4 timvir-s-1dc5b4e timvir-s-13m658e timvir-s-1bx2y69",
303
+ onClick: () => {
304
+ setValue({
305
+ seed: crypto.getRandomValues(new Uint32Array(1))[0]
306
+ });
307
+ },
308
+ children: "Refresh"
309
+ })]
310
+ }), /*#__PURE__*/jsx(Exhibit, {
311
+ ...ExhibitProps,
312
+ style: {
313
+ margin: 0
314
+ },
315
+ children: children
316
+ })]
317
+ })
318
+ });
163
319
  }
164
320
  var Arbitrary$1 = /*#__PURE__*/React.forwardRef(Arbitrary);
165
- const classes = {
166
- root: "r1ev38xg",
167
- controls: "c8hz158",
168
- textField: "t1663phv",
169
- startAdornment: "s1k50njo",
170
- input: "i1dajnne",
171
- button: "b128wsn"
321
+ const styles = {
322
+ root: {
323
+ kogj98: "timvir-s-9t3ola",
324
+ $$css: true
325
+ }
172
326
  };
173
327
 
174
328
  export { Arbitrary$1 as Arbitrary, useContext };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { Arbitrary } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Arbitrary>>;
4
- export default function Sample(props: Props): React.JSX.Element;
4
+ export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -1,7 +1,167 @@
1
- .r1ev38xg{margin:1em 0;}
2
- .c8hz158{display:-ms-grid;display:grid;-ms-grid-gap:8px;grid-gap:8px;-ms-grid-columns:1fr 100px;grid-template-columns:1fr 100px;margin-bottom:8px;}
3
- .t1663phv{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 0 0 10px;min-height:36px;position:relative;background:var(--timvir-secondary-background-color);}.t1663phv::after{display:block;position:absolute;content:"";inset:0;pointer-events:none;border:1px solid var(--timvir-border-color);border-radius:2px;}.t1663phv:hover::after{border-color:var(--timvir-text-color);}.t1663phv:focus-within::after{border-color:var(--timvir-text-color);}
4
- .s1k50njo{display:inline-block;color:var(--timvir-secondary-text-color);margin-right:6px;}
5
- .i1dajnne{border:none;outline:none;font:inherit;background:transparent;-webkit-align-self:stretch;-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;padding:0;width:100%;color:inherit;}
6
- .b128wsn{border:none;outline:none;min-height:36px;border:1px solid var(--timvir-border-color);border-radius:2px;background:var(--timvir-secondary-background-color);color:var(--timvir-text-color);font:inherit;}.b128wsn:hover{border-color:var(--timvir-text-color);background:var(--timvir-sidebar-highlight-color);}.b128wsn:active{border-color:var(--timvir-text-color);background:var(--timvir-sidebar-highlight-color);}
1
+ @layer priority1 {
2
+ .timvir-s-ln7xf2 {
3
+ font: inherit;
4
+ }
7
5
 
6
+ .timvir-s-9t3ola {
7
+ margin: 1em 0;
8
+ }
9
+
10
+ .timvir-s-qtkp2c {
11
+ padding: 0 0 0 10px;
12
+ }
13
+
14
+ .timvir-s-1717udv {
15
+ padding: 0;
16
+ }
17
+
18
+ .timvir-s-1op5qub:after {
19
+ inset: 0;
20
+ }
21
+ }
22
+
23
+ @layer priority2 {
24
+ .timvir-s-j7gikm {
25
+ border-color: var(--timvir-border-color);
26
+ }
27
+
28
+ .timvir-s-1cum3z5 {
29
+ border-radius: 2px;
30
+ }
31
+
32
+ .timvir-s-1y0btm7 {
33
+ border-style: solid;
34
+ }
35
+
36
+ .timvir-s-c342km {
37
+ border-width: 0;
38
+ }
39
+
40
+ .timvir-s-mkeg23 {
41
+ border-width: 1px;
42
+ }
43
+
44
+ .timvir-s-d3ue5d {
45
+ grid-gap: 8px;
46
+ }
47
+
48
+ .timvir-s-1a2a7pz {
49
+ outline: none;
50
+ }
51
+
52
+ .timvir-s-lzy7x8:after {
53
+ border-color: var(--timvir-border-color);
54
+ }
55
+
56
+ .timvir-s-18wp92t:hover:after, .timvir-s-rlfy00:focus-within:after {
57
+ border-color: var(--timvir-text-color);
58
+ }
59
+
60
+ .timvir-s-1edtgf2:after {
61
+ border-radius: 2px;
62
+ }
63
+
64
+ .timvir-s-1dzvx6z:after {
65
+ border-style: solid;
66
+ }
67
+
68
+ .timvir-s-hlrplc:after {
69
+ border-width: 1px;
70
+ }
71
+
72
+ .timvir-s-49kzi4:hover, .timvir-s-13m658e:active {
73
+ border-color: var(--timvir-text-color);
74
+ }
75
+ }
76
+
77
+ @layer priority3 {
78
+ .timvir-s-6s0dn4 {
79
+ align-items: center;
80
+ }
81
+
82
+ .timvir-s-kh2ocl {
83
+ align-self: stretch;
84
+ }
85
+
86
+ .timvir-s-jbqb8w {
87
+ background-color: #0000;
88
+ }
89
+
90
+ .timvir-s-1d0dlzq {
91
+ background-color: var(--timvir-secondary-background-color);
92
+ }
93
+
94
+ .timvir-s-1heor9g {
95
+ color: inherit;
96
+ }
97
+
98
+ .timvir-s-vgvpxu {
99
+ color: var(--timvir-secondary-text-color);
100
+ }
101
+
102
+ .timvir-s-1cdhzux {
103
+ color: var(--timvir-text-color);
104
+ }
105
+
106
+ .timvir-s-78zum5 {
107
+ display: flex;
108
+ }
109
+
110
+ .timvir-s-rvj5dj {
111
+ display: grid;
112
+ }
113
+
114
+ .timvir-s-1rg5ohu {
115
+ display: inline-block;
116
+ }
117
+
118
+ .timvir-s-9flyx0 {
119
+ grid-template-columns: 1fr 100px;
120
+ }
121
+
122
+ .timvir-s-1n2onr6 {
123
+ position: relative;
124
+ }
125
+
126
+ .timvir-s-1tcdsnd {
127
+ word-break: initial;
128
+ }
129
+
130
+ .timvir-s-5l10my:after {
131
+ content: "";
132
+ }
133
+
134
+ .timvir-s-ieozyd:after {
135
+ display: block;
136
+ }
137
+
138
+ .timvir-s-1kx6eu5:after {
139
+ pointer-events: none;
140
+ }
141
+
142
+ .timvir-s-1x824oc:after {
143
+ position: absolute;
144
+ }
145
+
146
+ .timvir-s-1dc5b4e:hover, .timvir-s-1bx2y69:active {
147
+ background-color: var(--timvir-sidebar-highlight-color);
148
+ }
149
+ }
150
+
151
+ @layer priority4 {
152
+ .timvir-s-1e56ztr {
153
+ margin-bottom: 8px;
154
+ }
155
+
156
+ .timvir-s-15ku74s {
157
+ margin-right: 6px;
158
+ }
159
+
160
+ .timvir-s-u0aao5 {
161
+ min-height: 36px;
162
+ }
163
+
164
+ .timvir-s-h8yej3 {
165
+ width: 100%;
166
+ }
167
+ }
@@ -14,12 +14,6 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
14
14
  * @default "markup"
15
15
  */
16
16
  language?: string;
17
- /**
18
- * When set, the code block spans the full width. Note that the text itself
19
- * is still aligned with the main column. Use this when you expect the text
20
- * to be wider than the center column.
21
- */
22
- fullWidth?: boolean;
23
17
  /**
24
18
  * The numbering starts at 1, ie. `highlightedLines={[1, 2]}` will highlight
25
19
  * the first two lines.
@@ -26,14 +26,3 @@ which are supported by [shiki](https://shiki.style/themes).
26
26
  <Code language="javascript" caption="The Hitchhiker's Guide to the Galaxy">
27
27
  {'const answer = 42;'}
28
28
  </Code>
29
-
30
- ## Full-width
31
-
32
- Full-width code blocks provide more space for the code. They are not constrained to the center column.
33
-
34
- <Code language="javascript" fullWidth>
35
- {`(defun csg-intersection-intersect-all (obj-a obj-b)
36
- (lambda (ray)
37
- (flet ((inside-p (obj) (lambda (d) (inside-p obj (ray-point ray d)))))
38
- (merge 'fvector (remove-if-not (inside-p obj-b) (intersect-all obj-a ray)) (remove-if-not (inside-p obj-a) (intersect-all obj-b ray)) #'<))))`}
39
- </Code>