timvir 0.2.39 → 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 (73) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
  3. package/blocks/Arbitrary/index.js +193 -48
  4. package/blocks/Arbitrary/styles.css +166 -6
  5. package/blocks/Code/Code.d.ts +0 -6
  6. package/blocks/Code/docs/index.mdx +0 -11
  7. package/blocks/Code/index.js +205 -112
  8. package/blocks/Code/styles.css +100 -15
  9. package/blocks/ColorBar/docs/index.mdx +8 -2
  10. package/blocks/ColorBar/index.js +198 -47
  11. package/blocks/ColorBar/styles.css +103 -4
  12. package/blocks/ColorBook/docs/index.mdx +1 -1
  13. package/blocks/ColorBook/index.js +198 -39
  14. package/blocks/ColorBook/styles.css +166 -6
  15. package/blocks/Cover/index.js +165 -36
  16. package/blocks/Cover/styles.css +18 -0
  17. package/blocks/Exhibit/index.js +192 -41
  18. package/blocks/Exhibit/styles.css +66 -3
  19. package/blocks/Font/index.js +188 -58
  20. package/blocks/Font/styles.css +82 -8
  21. package/blocks/Grid/docs/index.mdx +4 -4
  22. package/blocks/Grid/index.js +176 -33
  23. package/blocks/Grid/styles.css +20 -1
  24. package/blocks/Icon/docs/index.mdx +13 -13
  25. package/blocks/Icon/index.js +25 -43
  26. package/blocks/Icon/styles.css +117 -5
  27. package/blocks/Message/docs/index.mdx +5 -8
  28. package/blocks/Message/index.js +233 -54
  29. package/blocks/Message/styles.css +94 -6
  30. package/blocks/Swatch/docs/index.mdx +16 -16
  31. package/blocks/Swatch/index.js +180 -35
  32. package/blocks/Swatch/styles.css +82 -4
  33. package/blocks/Viewport/index.js +198 -91
  34. package/blocks/Viewport/styles.css +259 -14
  35. package/blocks/WebLink/index.js +192 -48
  36. package/blocks/WebLink/styles.css +170 -8
  37. package/blocks/styles.css +1460 -97
  38. package/builtins/components.d.ts +2 -2
  39. package/builtins/index.d.ts +0 -1
  40. package/builtins/index.js +300 -243
  41. package/builtins/styles.css +265 -25
  42. package/context/index.d.ts +6 -1
  43. package/core/components/Commands/Commands.d.ts +5 -1
  44. package/core/components/NavigationFooter/NavigationFooter.d.ts +4 -2
  45. package/core/components/Page/Page.d.ts +12 -3
  46. package/core/components/Page/docs/index.mdx +44 -11
  47. package/core/index.d.ts +191 -2
  48. package/core/index.js +415 -256
  49. package/core/layout.d.ts +41 -0
  50. package/core/styles.css +857 -88
  51. package/global.css +79 -0
  52. package/internal/cx.d.ts +1 -0
  53. package/package.json +1 -2
  54. package/search/index.js +2 -223
  55. package/styles.css +2670 -235
  56. package/blocks/Code/theme.d.ts +0 -2
  57. package/bus/styles.css +0 -1
  58. package/context/styles.css +0 -1
  59. package/core/theme/index.d.ts +0 -1
  60. package/hooks/styles.css +0 -1
  61. package/search/Search/internal/Dialog.d.ts +0 -20
  62. package/search/Search/internal/index.d.ts +0 -1
  63. package/search/SearchBoxInput/SearchBoxInput.d.ts +0 -11
  64. package/search/SearchBoxInput/docs/api.mdx +0 -76
  65. package/search/SearchBoxInput/docs/index.mdx +0 -6
  66. package/search/SearchBoxInput/index.d.ts +0 -1
  67. package/search/SearchBoxInput/samples/basic.d.ts +0 -1
  68. package/search/SearchBoxListItem/SearchBoxListItem.d.ts +0 -13
  69. package/search/SearchBoxListItem/docs/api.mdx +0 -76
  70. package/search/SearchBoxListItem/docs/index.mdx +0 -30
  71. package/search/SearchBoxListItem/index.d.ts +0 -1
  72. package/search/SearchBoxListItem/samples/basic.d.ts +0 -1
  73. package/search/styles.css +0 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
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
+
3
23
  ## 0.2.39
4
24
 
5
25
  ### 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,37 +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
5
  import { jsx, jsxs } from 'react/jsx-runtime';
6
6
 
7
- // 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
+ }
8
17
 
9
- // src/cx.ts
10
- var cx = function cx2() {
11
- const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
12
- const atomicClasses = {};
13
- const nonAtomicClasses = [];
14
- presentClassNames.forEach((arg) => {
15
- const individualClassNames = arg ? arg.split(" ") : [];
16
- individualClassNames.forEach((className) => {
17
- if (className.startsWith("atm_")) {
18
- const [, keyHash] = className.split("_");
19
- atomicClasses[keyHash] = className;
20
- } else {
21
- nonAtomicClasses.push(className);
22
- }
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
23
25
  });
24
- });
25
- const result = [];
26
- for (const keyHash in atomicClasses) {
27
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
28
- 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
+ };
29
148
  }
30
- }
31
- result.push(...nonAtomicClasses);
32
- return result.join(" ");
33
- };
34
- 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
+ }
35
168
 
36
169
  const bytesToHex = (() => {
37
170
  const s = Array.from({
@@ -94,12 +227,9 @@ const Context = /*#__PURE__*/React.createContext({
94
227
  });
95
228
  const useContext = () => React.useContext(Context);
96
229
 
97
- /**
98
- * The underlying DOM element which is rendered by this component.
99
- */
100
230
  const Root = "div";
101
- function Arbitrary(props, ref) {
102
- const block = useBlock(props);
231
+ function Arbitrary(props$1, ref) {
232
+ const block = useBlock(props$1);
103
233
  const {
104
234
  ExhibitProps,
105
235
  className,
@@ -115,31 +245,45 @@ function Arbitrary(props, ref) {
115
245
  });
116
246
  }, []);
117
247
  React.useEffect(() => {
118
- if (props.id) {
248
+ if (props$1.id) {
119
249
  block.bus.next({
120
250
  type: "SIGNAL",
121
- path: `/dev/timvir/block/${props.id}`,
251
+ path: `/dev/timvir/block/${props$1.id}`,
122
252
  interface: "dev.timvir.block.Arbitrary",
123
253
  member: "seed",
124
254
  body: value.seed
125
255
  });
126
256
  }
127
- }, [props.id, block.bus, value.seed]);
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
+ };
128
262
  return /*#__PURE__*/jsx(Context.Provider, {
129
263
  value: value,
130
264
  children: /*#__PURE__*/jsxs(Root, {
131
265
  ref: ref,
132
- className: cx_default("timvir-b-Arbitrary", classes.root, className),
133
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
+ },
134
274
  children: [/*#__PURE__*/jsxs("div", {
135
- className: classes.controls,
275
+ className: "timvir-s-rvj5dj timvir-s-d3ue5d timvir-s-9flyx0 timvir-s-1e56ztr",
136
276
  children: [/*#__PURE__*/jsxs("div", {
137
- className: classes.textField,
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",
138
278
  children: [/*#__PURE__*/jsx("span", {
139
- className: classes.startAdornment,
279
+ className: "timvir-s-1rg5ohu timvir-s-vgvpxu timvir-s-15ku74s",
140
280
  children: "Seed:"
141
281
  }), /*#__PURE__*/jsx("input", {
142
- className: cx_default("timvir-b-Arbitrary-seed", classes.input),
282
+ ...inputStyleProps,
283
+ className: cx("timvir-b-Arbitrary-seed", inputStyleProps.className),
284
+ style: {
285
+ ...inputStyleProps.style
286
+ },
143
287
  placeholder: "Seed",
144
288
  value: encode(new TextEncoder().encode(`${value.seed}`)),
145
289
  readOnly: true,
@@ -155,7 +299,7 @@ function Arbitrary(props, ref) {
155
299
  })]
156
300
  }), /*#__PURE__*/jsx("button", {
157
301
  type: "button",
158
- className: classes.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",
159
303
  onClick: () => {
160
304
  setValue({
161
305
  seed: crypto.getRandomValues(new Uint32Array(1))[0]
@@ -165,19 +309,20 @@ function Arbitrary(props, ref) {
165
309
  })]
166
310
  }), /*#__PURE__*/jsx(Exhibit, {
167
311
  ...ExhibitProps,
312
+ style: {
313
+ margin: 0
314
+ },
168
315
  children: children
169
316
  })]
170
317
  })
171
318
  });
172
319
  }
173
320
  var Arbitrary$1 = /*#__PURE__*/React.forwardRef(Arbitrary);
174
- const classes = {
175
- root: "r1ev38xg",
176
- controls: "c8hz158",
177
- textField: "t1663phv",
178
- startAdornment: "s1k50njo",
179
- input: "i1dajnne",
180
- button: "b128wsn"
321
+ const styles = {
322
+ root: {
323
+ kogj98: "timvir-s-9t3ola",
324
+ $$css: true
325
+ }
181
326
  };
182
327
 
183
328
  export { Arbitrary$1 as Arbitrary, useContext };
@@ -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>