@justanarthur/modo-ui 2.5.0 → 2.6.0
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/blocks/desktop-shell/index.tsx +3 -2
- package/components/data-display/diff/index.tsx +5 -4
- package/components/data-display/markdown/index.tsx +6 -6
- package/components/navigation/tabs/list.tsx +1 -5
- package/dist/blocks/desktop-shell/index.js +5 -5
- package/dist/blocks/sidebar-app/index.js +6 -6
- package/dist/components/containers/accordion/index.js +2 -2
- package/dist/components/containers/card/index.js +2 -2
- package/dist/components/data-display/diff/index.d.ts +2 -1
- package/dist/components/data-display/diff/index.js +3 -2
- package/dist/components/data-display/markdown/index.js +5 -5
- package/dist/components/data-display/table/index.js +2 -2
- package/dist/components/inputs/combobox/index.js +3 -2
- package/dist/components/inputs/search/index.js +4 -3
- package/dist/components/inputs/select/index.js +3 -2
- package/dist/components/inputs/textarea/index.js +3 -3
- package/dist/components/navigation/breadcrumb/index.js +4 -4
- package/dist/components/navigation/sidebar/index.js +3 -3
- package/dist/components/navigation/tabs/index.js +1 -1
- package/dist/components/overlays/command/index.js +3 -2
- package/dist/components/overlays/context-menu/index.js +4 -4
- package/dist/components/overlays/dropdown/index.js +3 -3
- package/dist/docs/index.js +4 -4
- package/dist/index.d.ts +15 -7
- package/dist/index.js +22 -22
- package/dist/lib/use-autosize-textarea.d.ts +6 -4
- package/dist/lib/use-autosize-textarea.js +1 -1
- package/dist/primitives/content/code/index.d.ts +3 -1
- package/dist/primitives/content/code/index.js +3 -2
- package/dist/primitives/layout/resizable/index.js +1 -1
- package/dist/primitives/layout/scroll-area/index.d.ts +4 -1
- package/dist/primitives/layout/scroll-area/index.js +2 -1
- package/dist/shared/{components-8xe4h118.js → components-3fg6vabb.js} +1 -4
- package/dist/shared/{components-resqc2d2.js → components-5fet4gqt.js} +59 -7
- package/dist/shared/{components-5w7hxa1n.js → components-60tf8tfa.js} +10 -6
- package/dist/shared/components-7v6ncqfc.js +80 -0
- package/dist/shared/{components-66aw235e.js → components-8swhfkqn.js} +1 -1
- package/dist/shared/{components-pfwjhxd8.js → components-94vd4ck1.js} +1 -1
- package/dist/shared/{components-q28xct6t.js → components-9c3m65ft.js} +1 -1
- package/dist/shared/{components-jnjw9j2z.js → components-a8bcq2yc.js} +1 -1
- package/dist/shared/{components-b2fag579.js → components-bkg1k36x.js} +4 -4
- package/dist/shared/{components-z14s3avn.js → components-faym1xm6.js} +1 -1
- package/dist/shared/{components-gr82tz50.js → components-fbs2602j.js} +4 -3
- package/dist/shared/{components-ypxst3cn.js → components-ftvy33w9.js} +1 -1
- package/dist/shared/{components-8hzwz162.js → components-hhwv5mcm.js} +5 -4
- package/dist/shared/{components-k8awpmbn.js → components-s0c8gngv.js} +6 -6
- package/dist/shared/{components-8dgrpegd.js → components-swh0v27s.js} +4 -2
- package/dist/shared/{components-766w1xcw.js → components-whfr55xn.js} +3 -3
- package/dist/shared/{components-4d0v8nzm.js → components-z6wx8fzj.js} +1 -1
- package/dist/shared/{components-2c22zpm2.js → components-zjeh9zk2.js} +1 -1
- package/dist/styles.css +1 -1
- package/lib/use-autosize-textarea.ts +65 -18
- package/package.json +6 -1
- package/primitives/content/code/index.tsx +11 -6
- package/primitives/layout/resizable/index.tsx +15 -6
- package/primitives/layout/scroll-area/examples.mdx +16 -0
- package/primitives/layout/scroll-area/index.tsx +69 -9
- package/dist/shared/components-vpkh6j83.js +0 -42
- /package/dist/shared/{components-v1zzr668.js → components-arg4h26d.js} +0 -0
- /package/dist/shared/{components-0ep66sg9.js → components-dx8f797z.js} +0 -0
- /package/dist/shared/{components-rtwfh1gc.js → components-fzmjcn38.js} +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
'use client'
|
|
8
8
|
|
|
9
|
-
import { type ReactNode, useCallback, useLayoutEffect, useRef, useState } from 'react'
|
|
9
|
+
import { type ReactNode, useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react'
|
|
10
10
|
import Button from '../../components/actions/button'
|
|
11
11
|
import Sidebar from '../../components/navigation/sidebar'
|
|
12
12
|
import { useSidebarShortcut } from '../../components/navigation/sidebar/sidebar-shortcut'
|
|
@@ -229,6 +229,7 @@ export default function DesktopShell({
|
|
|
229
229
|
const hasRight = right !== undefined
|
|
230
230
|
const paneOpen = hasRight && rightOpen
|
|
231
231
|
const inCard = titleBar === 'card'
|
|
232
|
+
const paneSizes = useMemo(() => (paneOpen ? [100 - paneSize, paneSize] : [100, 0]), [paneOpen, paneSize])
|
|
232
233
|
|
|
233
234
|
// The window's own width, not the viewport's: a framed or resized window doesn't follow the viewport.
|
|
234
235
|
const root = useRef<HTMLDivElement | null>(null)
|
|
@@ -324,7 +325,7 @@ export default function DesktopShell({
|
|
|
324
325
|
{!hasRight || narrow ? (
|
|
325
326
|
card(narrow && paneOpen ? right : main)
|
|
326
327
|
) : (
|
|
327
|
-
<Resizable sizes={
|
|
328
|
+
<Resizable sizes={paneSizes} onSizesChange={onSizesChange}>
|
|
328
329
|
<Resizable.Panel defaultSize={100 - defaultPaneSize} minSize={100 - maxPaneSize}>
|
|
329
330
|
{card(main)}
|
|
330
331
|
</Resizable.Panel>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
'use client'
|
|
8
8
|
|
|
9
|
-
import type
|
|
9
|
+
import { type ReactNode, useMemo } from 'react'
|
|
10
10
|
import { useIcon } from '../../../lib/icon-context'
|
|
11
11
|
import { SURFACE_BG } from '../../../lib/surface-classes'
|
|
12
12
|
import { useLift } from '../../../lib/surface-context'
|
|
@@ -100,7 +100,8 @@ interface DiffProps {
|
|
|
100
100
|
* added line is tinted with the success hue and each removed line with the
|
|
101
101
|
* error hue, as tinted text on a wash rather than a solid fill; hunk headers
|
|
102
102
|
* sit on the hover overlay. With a `path` the header counts the change
|
|
103
|
-
* (`+12 −3`). Long lines scroll sideways under a fading edge
|
|
103
|
+
* (`+12 −3`). Long lines scroll sideways under a fading edge (on the
|
|
104
|
+
* platform's scrollbar, as Code does), or with
|
|
104
105
|
* `wrap` break under their own text while the gutter holds still, and the
|
|
105
106
|
* frame lifts one surface step above whatever holds it, as Code does.
|
|
106
107
|
*
|
|
@@ -109,7 +110,7 @@ interface DiffProps {
|
|
|
109
110
|
export default function Diff({ patch, path, lineNumbers = true, wrap = false, actions, className }: DiffProps) {
|
|
110
111
|
const level = useLift(1)
|
|
111
112
|
const FileIcon = useIcon('file-diff')
|
|
112
|
-
const lines = parsePatch(patch)
|
|
113
|
+
const lines = useMemo(() => parsePatch(patch), [patch])
|
|
113
114
|
const added = lines.filter(l => l.kind === 'add').length
|
|
114
115
|
const removed = lines.filter(l => l.kind === 'remove').length
|
|
115
116
|
|
|
@@ -151,7 +152,7 @@ export default function Diff({ patch, path, lineNumbers = true, wrap = false, ac
|
|
|
151
152
|
{wrap ? (
|
|
152
153
|
body
|
|
153
154
|
) : (
|
|
154
|
-
<ScrollArea orientation="horizontal" viewportClassName="scroll-fade-x">
|
|
155
|
+
<ScrollArea native orientation="horizontal" viewportClassName="scroll-fade-x">
|
|
155
156
|
{body}
|
|
156
157
|
</ScrollArea>
|
|
157
158
|
)}
|
|
@@ -274,13 +274,13 @@ interface MarkdownProps {
|
|
|
274
274
|
*/
|
|
275
275
|
const Markdown = Object.assign(
|
|
276
276
|
function Markdown({ children, streaming = false, className }: MarkdownProps) {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
<Blocks tokens={tokens} />
|
|
282
|
-
</MarkdownProse>
|
|
277
|
+
// One element per source, so a re-render of the parent skips the tree.
|
|
278
|
+
const blocks = useMemo(
|
|
279
|
+
() => <Blocks tokens={Lexer.lex(streaming ? settle(children) : children)} />,
|
|
280
|
+
[children, streaming],
|
|
283
281
|
)
|
|
282
|
+
|
|
283
|
+
return <MarkdownProse className={className}>{blocks}</MarkdownProse>
|
|
284
284
|
},
|
|
285
285
|
{ Prose: MarkdownProse },
|
|
286
286
|
)
|
|
@@ -57,7 +57,7 @@ const TabsList = forwardRef<HTMLDivElement, TabsListProps>(
|
|
|
57
57
|
const size = useSize()
|
|
58
58
|
const lift = useLift(3)
|
|
59
59
|
const hover = useFluidHover(containerRef, { axis: 'x' })
|
|
60
|
-
const { activeIndex: hoveredIndex, setActiveIndex, itemRects, handlers, registerItem
|
|
60
|
+
const { activeIndex: hoveredIndex, setActiveIndex, itemRects, handlers, registerItem } = hover
|
|
61
61
|
const focus = useRowFocus(hover)
|
|
62
62
|
|
|
63
63
|
// Positions match IndexedRows: one per element child.
|
|
@@ -72,10 +72,6 @@ const TabsList = forwardRef<HTMLDivElement, TabsListProps>(
|
|
|
72
72
|
setFallback(first)
|
|
73
73
|
}, [first, setFallback])
|
|
74
74
|
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
measureItems()
|
|
77
|
-
}, [measureItems, children])
|
|
78
|
-
|
|
79
75
|
const selectedIndex = selectedValue === undefined ? -1 : values.indexOf(selectedValue)
|
|
80
76
|
const [optimisticIndex, setOptimisticIndex] = useState<number | null>(null)
|
|
81
77
|
useEffect(() => {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DesktopShell2
|
|
3
|
-
} from "../../shared/components-
|
|
4
|
-
import"../../shared/components-
|
|
3
|
+
} from "../../shared/components-hhwv5mcm.js";
|
|
4
|
+
import"../../shared/components-bkg1k36x.js";
|
|
5
5
|
import"../../shared/components-2myjk2zf.js";
|
|
6
|
-
import"../../shared/components-v2j3jx89.js";
|
|
7
6
|
import"../../shared/components-7rn454aq.js";
|
|
8
7
|
import"../../shared/components-8wp8d8q1.js";
|
|
9
8
|
import"../../shared/components-ac0x7zpq.js";
|
|
@@ -26,7 +25,7 @@ import"../../shared/components-grxgqa75.js";
|
|
|
26
25
|
import"../../shared/components-7wjkag2j.js";
|
|
27
26
|
import"../../shared/components-nz14rwtd.js";
|
|
28
27
|
import"../../shared/components-bkwjvvkh.js";
|
|
29
|
-
import"../../shared/components-
|
|
28
|
+
import"../../shared/components-fbs2602j.js";
|
|
30
29
|
import"../../shared/components-jnhpgpfk.js";
|
|
31
30
|
import"../../shared/components-45r18egt.js";
|
|
32
31
|
import"../../shared/components-wwd093xg.js";
|
|
@@ -35,8 +34,9 @@ import"../../shared/components-ew4wq7mj.js";
|
|
|
35
34
|
import"../../shared/components-tz0axc0f.js";
|
|
36
35
|
import"../../shared/components-ceyn28cf.js";
|
|
37
36
|
import"../../shared/components-nwa2a9tq.js";
|
|
38
|
-
import"../../shared/components-
|
|
37
|
+
import"../../shared/components-5fet4gqt.js";
|
|
39
38
|
import"../../shared/components-6f5pyzb2.js";
|
|
39
|
+
import"../../shared/components-v2j3jx89.js";
|
|
40
40
|
import"../../shared/components-kxpcj2ry.js";
|
|
41
41
|
import"../../shared/components-s217vq1n.js";
|
|
42
42
|
import"../../shared/components-xnp09586.js";
|
|
@@ -2,13 +2,12 @@ import {
|
|
|
2
2
|
SidebarInsetTopbar2,
|
|
3
3
|
SidebarSearchField2,
|
|
4
4
|
SidebarApp2
|
|
5
|
-
} from "../../shared/components-
|
|
6
|
-
import"../../shared/components-
|
|
5
|
+
} from "../../shared/components-whfr55xn.js";
|
|
6
|
+
import"../../shared/components-bkg1k36x.js";
|
|
7
7
|
import"../../shared/components-2myjk2zf.js";
|
|
8
|
-
import"../../shared/components-
|
|
9
|
-
import"../../shared/components-
|
|
8
|
+
import"../../shared/components-fzmjcn38.js";
|
|
9
|
+
import"../../shared/components-94vd4ck1.js";
|
|
10
10
|
import"../../shared/components-t84071ay.js";
|
|
11
|
-
import"../../shared/components-v2j3jx89.js";
|
|
12
11
|
import"../../shared/components-7rn454aq.js";
|
|
13
12
|
import"../../shared/components-q0hs5rqn.js";
|
|
14
13
|
import"../../shared/components-mse06t0x.js";
|
|
@@ -48,8 +47,9 @@ import"../../shared/components-ew4wq7mj.js";
|
|
|
48
47
|
import"../../shared/components-tz0axc0f.js";
|
|
49
48
|
import"../../shared/components-ceyn28cf.js";
|
|
50
49
|
import"../../shared/components-nwa2a9tq.js";
|
|
51
|
-
import"../../shared/components-
|
|
50
|
+
import"../../shared/components-5fet4gqt.js";
|
|
52
51
|
import"../../shared/components-6f5pyzb2.js";
|
|
52
|
+
import"../../shared/components-v2j3jx89.js";
|
|
53
53
|
import"../../shared/components-kxpcj2ry.js";
|
|
54
54
|
import"../../shared/components-s217vq1n.js";
|
|
55
55
|
import"../../shared/components-xnp09586.js";
|
|
@@ -5,8 +5,7 @@ import {
|
|
|
5
5
|
AccordionItem2,
|
|
6
6
|
AccordionTrigger2,
|
|
7
7
|
accordion_default
|
|
8
|
-
} from "../../../shared/components-
|
|
9
|
-
import"../../../shared/components-v2j3jx89.js";
|
|
8
|
+
} from "../../../shared/components-arg4h26d.js";
|
|
10
9
|
import"../../../shared/components-wq9hrera.js";
|
|
11
10
|
import"../../../shared/components-pa43g2r2.js";
|
|
12
11
|
import"../../../shared/components-y09nr7fe.js";
|
|
@@ -27,6 +26,7 @@ import"../../../shared/components-wwd093xg.js";
|
|
|
27
26
|
import"../../../shared/components-znspksk0.js";
|
|
28
27
|
import"../../../shared/components-ew4wq7mj.js";
|
|
29
28
|
import"../../../shared/components-tz0axc0f.js";
|
|
29
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
30
30
|
import"../../../shared/components-kxpcj2ry.js";
|
|
31
31
|
import"../../../shared/components-s217vq1n.js";
|
|
32
32
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -14,8 +14,7 @@ import {
|
|
|
14
14
|
CardDivider2,
|
|
15
15
|
Card2,
|
|
16
16
|
card_default
|
|
17
|
-
} from "../../../shared/components-
|
|
18
|
-
import"../../../shared/components-v2j3jx89.js";
|
|
17
|
+
} from "../../../shared/components-fzmjcn38.js";
|
|
19
18
|
import"../../../shared/components-ycwhrqe1.js";
|
|
20
19
|
import"../../../shared/components-ywgqahmg.js";
|
|
21
20
|
import"../../../shared/components-3hgk57s0.js";
|
|
@@ -36,6 +35,7 @@ import"../../../shared/components-azrjnfxn.js";
|
|
|
36
35
|
import"../../../shared/components-znspksk0.js";
|
|
37
36
|
import"../../../shared/components-ew4wq7mj.js";
|
|
38
37
|
import"../../../shared/components-tz0axc0f.js";
|
|
38
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
39
39
|
import"../../../shared/components-kxpcj2ry.js";
|
|
40
40
|
import"../../../shared/components-s217vq1n.js";
|
|
41
41
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -32,7 +32,8 @@ type Element_12xgc = JSX_1kxb["Element"];
|
|
|
32
32
|
* added line is tinted with the success hue and each removed line with the
|
|
33
33
|
* error hue, as tinted text on a wash rather than a solid fill; hunk headers
|
|
34
34
|
* sit on the hover overlay. With a `path` the header counts the change
|
|
35
|
-
* (`+12 −3`). Long lines scroll sideways under a fading edge
|
|
35
|
+
* (`+12 −3`). Long lines scroll sideways under a fading edge (on the
|
|
36
|
+
* platform's scrollbar, as Code does), or with
|
|
36
37
|
* `wrap` break under their own text while the gutter holds still, and the
|
|
37
38
|
* frame lifts one surface step above whatever holds it, as Code does.
|
|
38
39
|
*
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parsePatch2,
|
|
3
3
|
Diff2
|
|
4
|
-
} from "../../../shared/components-
|
|
4
|
+
} from "../../../shared/components-swh0v27s.js";
|
|
5
5
|
import"../../../shared/components-jnhpgpfk.js";
|
|
6
6
|
import"../../../shared/components-ceyn28cf.js";
|
|
7
7
|
import"../../../shared/components-nwa2a9tq.js";
|
|
8
|
-
import"../../../shared/components-
|
|
8
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
9
9
|
import"../../../shared/components-6f5pyzb2.js";
|
|
10
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
10
11
|
import"../../../shared/components-kxpcj2ry.js";
|
|
11
12
|
import"../../../shared/components-s217vq1n.js";
|
|
12
13
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -2,10 +2,9 @@ import {
|
|
|
2
2
|
MarkdownProse2,
|
|
3
3
|
Markdown2,
|
|
4
4
|
markdown_default
|
|
5
|
-
} from "../../../shared/components-
|
|
6
|
-
import"../../../shared/components-
|
|
5
|
+
} from "../../../shared/components-s0c8gngv.js";
|
|
6
|
+
import"../../../shared/components-dx8f797z.js";
|
|
7
7
|
import"../../../shared/components-t84071ay.js";
|
|
8
|
-
import"../../../shared/components-v2j3jx89.js";
|
|
9
8
|
import"../../../shared/components-9b2m90st.js";
|
|
10
9
|
import"../../../shared/components-bxqmbcz2.js";
|
|
11
10
|
import"../../../shared/components-21hcwp85.js";
|
|
@@ -19,11 +18,12 @@ import"../../../shared/components-wwd093xg.js";
|
|
|
19
18
|
import"../../../shared/components-znspksk0.js";
|
|
20
19
|
import"../../../shared/components-ew4wq7mj.js";
|
|
21
20
|
import"../../../shared/components-tz0axc0f.js";
|
|
22
|
-
import"../../../shared/components-
|
|
21
|
+
import"../../../shared/components-60tf8tfa.js";
|
|
23
22
|
import"../../../shared/components-ceyn28cf.js";
|
|
24
23
|
import"../../../shared/components-nwa2a9tq.js";
|
|
25
|
-
import"../../../shared/components-
|
|
24
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
26
25
|
import"../../../shared/components-6f5pyzb2.js";
|
|
26
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
27
27
|
import"../../../shared/components-kxpcj2ry.js";
|
|
28
28
|
import"../../../shared/components-s217vq1n.js";
|
|
29
29
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -9,9 +9,8 @@ import {
|
|
|
9
9
|
TableEmpty2,
|
|
10
10
|
Table2,
|
|
11
11
|
table_default
|
|
12
|
-
} from "../../../shared/components-
|
|
12
|
+
} from "../../../shared/components-dx8f797z.js";
|
|
13
13
|
import"../../../shared/components-t84071ay.js";
|
|
14
|
-
import"../../../shared/components-v2j3jx89.js";
|
|
15
14
|
import"../../../shared/components-9b2m90st.js";
|
|
16
15
|
import"../../../shared/components-bxqmbcz2.js";
|
|
17
16
|
import"../../../shared/components-21hcwp85.js";
|
|
@@ -25,6 +24,7 @@ import"../../../shared/components-wwd093xg.js";
|
|
|
25
24
|
import"../../../shared/components-znspksk0.js";
|
|
26
25
|
import"../../../shared/components-ew4wq7mj.js";
|
|
27
26
|
import"../../../shared/components-tz0axc0f.js";
|
|
27
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
28
28
|
import"../../../shared/components-xnp09586.js";
|
|
29
29
|
export {
|
|
30
30
|
Table2 as Table,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ComboboxEmpty2,
|
|
8
8
|
Combobox2,
|
|
9
9
|
combobox_default
|
|
10
|
-
} from "../../../shared/components-
|
|
10
|
+
} from "../../../shared/components-faym1xm6.js";
|
|
11
11
|
import"../../../shared/components-q0hs5rqn.js";
|
|
12
12
|
import"../../../shared/components-mse06t0x.js";
|
|
13
13
|
import"../../../shared/components-nxqrw789.js";
|
|
@@ -32,8 +32,9 @@ import"../../../shared/components-ew4wq7mj.js";
|
|
|
32
32
|
import"../../../shared/components-tz0axc0f.js";
|
|
33
33
|
import"../../../shared/components-ceyn28cf.js";
|
|
34
34
|
import"../../../shared/components-nwa2a9tq.js";
|
|
35
|
-
import"../../../shared/components-
|
|
35
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
36
36
|
import"../../../shared/components-6f5pyzb2.js";
|
|
37
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
37
38
|
import"../../../shared/components-kxpcj2ry.js";
|
|
38
39
|
import"../../../shared/components-s217vq1n.js";
|
|
39
40
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Search2,
|
|
3
3
|
search_default
|
|
4
|
-
} from "../../../shared/components-
|
|
5
|
-
import"../../../shared/components-
|
|
4
|
+
} from "../../../shared/components-9c3m65ft.js";
|
|
5
|
+
import"../../../shared/components-z6wx8fzj.js";
|
|
6
6
|
import"../../../shared/components-q0hs5rqn.js";
|
|
7
7
|
import"../../../shared/components-mse06t0x.js";
|
|
8
8
|
import"../../../shared/components-br6t88cb.js";
|
|
@@ -29,8 +29,9 @@ import"../../../shared/components-ew4wq7mj.js";
|
|
|
29
29
|
import"../../../shared/components-tz0axc0f.js";
|
|
30
30
|
import"../../../shared/components-ceyn28cf.js";
|
|
31
31
|
import"../../../shared/components-nwa2a9tq.js";
|
|
32
|
-
import"../../../shared/components-
|
|
32
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
33
33
|
import"../../../shared/components-6f5pyzb2.js";
|
|
34
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
34
35
|
import"../../../shared/components-kxpcj2ry.js";
|
|
35
36
|
import"../../../shared/components-s217vq1n.js";
|
|
36
37
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
SelectSeparator2,
|
|
9
9
|
Select2,
|
|
10
10
|
select_default
|
|
11
|
-
} from "../../../shared/components-
|
|
11
|
+
} from "../../../shared/components-a8bcq2yc.js";
|
|
12
12
|
import"../../../shared/components-tcyz2tdn.js";
|
|
13
13
|
import"../../../shared/components-q0hs5rqn.js";
|
|
14
14
|
import"../../../shared/components-mse06t0x.js";
|
|
@@ -35,8 +35,9 @@ import"../../../shared/components-ew4wq7mj.js";
|
|
|
35
35
|
import"../../../shared/components-tz0axc0f.js";
|
|
36
36
|
import"../../../shared/components-ceyn28cf.js";
|
|
37
37
|
import"../../../shared/components-nwa2a9tq.js";
|
|
38
|
-
import"../../../shared/components-
|
|
38
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
39
39
|
import"../../../shared/components-6f5pyzb2.js";
|
|
40
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
40
41
|
import"../../../shared/components-kxpcj2ry.js";
|
|
41
42
|
import"../../../shared/components-s217vq1n.js";
|
|
42
43
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Textarea2,
|
|
3
3
|
textarea_default
|
|
4
|
-
} from "../../../shared/components-
|
|
5
|
-
import"../../../shared/components-
|
|
6
|
-
import"../../../shared/components-v2j3jx89.js";
|
|
4
|
+
} from "../../../shared/components-ftvy33w9.js";
|
|
5
|
+
import"../../../shared/components-7v6ncqfc.js";
|
|
7
6
|
import"../../../shared/components-1ztgy933.js";
|
|
8
7
|
import"../../../shared/components-grxgqa75.js";
|
|
9
8
|
import"../../../shared/components-bkwjvvkh.js";
|
|
10
9
|
import"../../../shared/components-wwd093xg.js";
|
|
11
10
|
import"../../../shared/components-znspksk0.js";
|
|
12
11
|
import"../../../shared/components-ew4wq7mj.js";
|
|
12
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
13
13
|
import"../../../shared/components-kxpcj2ry.js";
|
|
14
14
|
import"../../../shared/components-s217vq1n.js";
|
|
15
15
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -2,10 +2,9 @@ import {
|
|
|
2
2
|
BreadcrumbItem2,
|
|
3
3
|
Breadcrumb2,
|
|
4
4
|
breadcrumb_default
|
|
5
|
-
} from "../../../shared/components-
|
|
6
|
-
import"../../../shared/components-
|
|
5
|
+
} from "../../../shared/components-8swhfkqn.js";
|
|
6
|
+
import"../../../shared/components-94vd4ck1.js";
|
|
7
7
|
import"../../../shared/components-t84071ay.js";
|
|
8
|
-
import"../../../shared/components-v2j3jx89.js";
|
|
9
8
|
import"../../../shared/components-q0hs5rqn.js";
|
|
10
9
|
import"../../../shared/components-mse06t0x.js";
|
|
11
10
|
import"../../../shared/components-nxqrw789.js";
|
|
@@ -33,8 +32,9 @@ import"../../../shared/components-ew4wq7mj.js";
|
|
|
33
32
|
import"../../../shared/components-tz0axc0f.js";
|
|
34
33
|
import"../../../shared/components-ceyn28cf.js";
|
|
35
34
|
import"../../../shared/components-nwa2a9tq.js";
|
|
36
|
-
import"../../../shared/components-
|
|
35
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
37
36
|
import"../../../shared/components-6f5pyzb2.js";
|
|
37
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
38
38
|
import"../../../shared/components-kxpcj2ry.js";
|
|
39
39
|
import"../../../shared/components-s217vq1n.js";
|
|
40
40
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -36,9 +36,8 @@ import {
|
|
|
36
36
|
Sidebar2,
|
|
37
37
|
SidebarContent2,
|
|
38
38
|
sidebar_default
|
|
39
|
-
} from "../../../shared/components-
|
|
39
|
+
} from "../../../shared/components-bkg1k36x.js";
|
|
40
40
|
import"../../../shared/components-2myjk2zf.js";
|
|
41
|
-
import"../../../shared/components-v2j3jx89.js";
|
|
42
41
|
import"../../../shared/components-7rn454aq.js";
|
|
43
42
|
import"../../../shared/components-8wp8d8q1.js";
|
|
44
43
|
import"../../../shared/components-ac0x7zpq.js";
|
|
@@ -69,8 +68,9 @@ import"../../../shared/components-ew4wq7mj.js";
|
|
|
69
68
|
import"../../../shared/components-tz0axc0f.js";
|
|
70
69
|
import"../../../shared/components-ceyn28cf.js";
|
|
71
70
|
import"../../../shared/components-nwa2a9tq.js";
|
|
72
|
-
import"../../../shared/components-
|
|
71
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
73
72
|
import"../../../shared/components-6f5pyzb2.js";
|
|
73
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
74
74
|
import"../../../shared/components-kxpcj2ry.js";
|
|
75
75
|
import"../../../shared/components-s217vq1n.js";
|
|
76
76
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
Tabs2,
|
|
5
5
|
TabPanel2,
|
|
6
6
|
tabs_default
|
|
7
|
-
} from "../../../shared/components-
|
|
7
|
+
} from "../../../shared/components-3fg6vabb.js";
|
|
8
8
|
import"../../../shared/components-y09nr7fe.js";
|
|
9
9
|
import"../../../shared/components-vcte8p75.js";
|
|
10
10
|
import"../../../shared/components-5wykqxph.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
CommandContent2,
|
|
8
8
|
Command2,
|
|
9
9
|
command_default
|
|
10
|
-
} from "../../../shared/components-
|
|
10
|
+
} from "../../../shared/components-z6wx8fzj.js";
|
|
11
11
|
import"../../../shared/components-q0hs5rqn.js";
|
|
12
12
|
import"../../../shared/components-mse06t0x.js";
|
|
13
13
|
import"../../../shared/components-br6t88cb.js";
|
|
@@ -33,8 +33,9 @@ import"../../../shared/components-ew4wq7mj.js";
|
|
|
33
33
|
import"../../../shared/components-tz0axc0f.js";
|
|
34
34
|
import"../../../shared/components-ceyn28cf.js";
|
|
35
35
|
import"../../../shared/components-nwa2a9tq.js";
|
|
36
|
-
import"../../../shared/components-
|
|
36
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
37
37
|
import"../../../shared/components-6f5pyzb2.js";
|
|
38
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
38
39
|
import"../../../shared/components-kxpcj2ry.js";
|
|
39
40
|
import"../../../shared/components-s217vq1n.js";
|
|
40
41
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -3,10 +3,9 @@ import {
|
|
|
3
3
|
ContextMenu2,
|
|
4
4
|
ContextMenuItem2,
|
|
5
5
|
context_menu_default
|
|
6
|
-
} from "../../../shared/components-
|
|
7
|
-
import"../../../shared/components-
|
|
6
|
+
} from "../../../shared/components-zjeh9zk2.js";
|
|
7
|
+
import"../../../shared/components-94vd4ck1.js";
|
|
8
8
|
import"../../../shared/components-t84071ay.js";
|
|
9
|
-
import"../../../shared/components-v2j3jx89.js";
|
|
10
9
|
import"../../../shared/components-q0hs5rqn.js";
|
|
11
10
|
import"../../../shared/components-mse06t0x.js";
|
|
12
11
|
import"../../../shared/components-nxqrw789.js";
|
|
@@ -34,8 +33,9 @@ import"../../../shared/components-ew4wq7mj.js";
|
|
|
34
33
|
import"../../../shared/components-tz0axc0f.js";
|
|
35
34
|
import"../../../shared/components-ceyn28cf.js";
|
|
36
35
|
import"../../../shared/components-nwa2a9tq.js";
|
|
37
|
-
import"../../../shared/components-
|
|
36
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
38
37
|
import"../../../shared/components-6f5pyzb2.js";
|
|
38
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
39
39
|
import"../../../shared/components-kxpcj2ry.js";
|
|
40
40
|
import"../../../shared/components-s217vq1n.js";
|
|
41
41
|
import"../../../shared/components-xnp09586.js";
|
|
@@ -18,9 +18,8 @@ import {
|
|
|
18
18
|
DropdownContent2,
|
|
19
19
|
DropdownSeparator2,
|
|
20
20
|
dropdown_default
|
|
21
|
-
} from "../../../shared/components-
|
|
21
|
+
} from "../../../shared/components-94vd4ck1.js";
|
|
22
22
|
import"../../../shared/components-t84071ay.js";
|
|
23
|
-
import"../../../shared/components-v2j3jx89.js";
|
|
24
23
|
import"../../../shared/components-q0hs5rqn.js";
|
|
25
24
|
import"../../../shared/components-mse06t0x.js";
|
|
26
25
|
import"../../../shared/components-nxqrw789.js";
|
|
@@ -48,8 +47,9 @@ import"../../../shared/components-ew4wq7mj.js";
|
|
|
48
47
|
import"../../../shared/components-tz0axc0f.js";
|
|
49
48
|
import"../../../shared/components-ceyn28cf.js";
|
|
50
49
|
import"../../../shared/components-nwa2a9tq.js";
|
|
51
|
-
import"../../../shared/components-
|
|
50
|
+
import"../../../shared/components-5fet4gqt.js";
|
|
52
51
|
import"../../../shared/components-6f5pyzb2.js";
|
|
52
|
+
import"../../../shared/components-v2j3jx89.js";
|
|
53
53
|
import"../../../shared/components-kxpcj2ry.js";
|
|
54
54
|
import"../../../shared/components-s217vq1n.js";
|
|
55
55
|
import"../../../shared/components-xnp09586.js";
|
package/dist/docs/index.js
CHANGED
|
@@ -33,20 +33,20 @@ import"../shared/components-nwa2a9tq.js";
|
|
|
33
33
|
import"../shared/components-nxqrw789.js";
|
|
34
34
|
import"../shared/components-vcte8p75.js";
|
|
35
35
|
import"../shared/components-tcyz2tdn.js";
|
|
36
|
+
import"../shared/components-v2j3jx89.js";
|
|
36
37
|
import"../shared/components-6f5pyzb2.js";
|
|
37
|
-
import"../shared/components-
|
|
38
|
+
import"../shared/components-5fet4gqt.js";
|
|
38
39
|
import"../shared/components-nz14rwtd.js";
|
|
39
40
|
import {
|
|
40
41
|
select_default
|
|
41
|
-
} from "../shared/components-
|
|
42
|
+
} from "../shared/components-a8bcq2yc.js";
|
|
42
43
|
import"../shared/components-jnhpgpfk.js";
|
|
43
44
|
import"../shared/components-br6t88cb.js";
|
|
44
45
|
import"../shared/components-ac0x7zpq.js";
|
|
45
|
-
import"../shared/components-v2j3jx89.js";
|
|
46
46
|
import {
|
|
47
47
|
useSidebar2,
|
|
48
48
|
sidebar_default
|
|
49
|
-
} from "../shared/components-
|
|
49
|
+
} from "../shared/components-bkg1k36x.js";
|
|
50
50
|
import"../shared/components-2myjk2zf.js";
|
|
51
51
|
import"../shared/components-y09nr7fe.js";
|
|
52
52
|
import {
|
package/dist/index.d.ts
CHANGED
|
@@ -1397,7 +1397,8 @@ type Element_12xgc9 = JSX_1kxb9["Element"];
|
|
|
1397
1397
|
* added line is tinted with the success hue and each removed line with the
|
|
1398
1398
|
* error hue, as tinted text on a wash rather than a solid fill; hunk headers
|
|
1399
1399
|
* sit on the hover overlay. With a `path` the header counts the change
|
|
1400
|
-
* (`+12 −3`). Long lines scroll sideways under a fading edge
|
|
1400
|
+
* (`+12 −3`). Long lines scroll sideways under a fading edge (on the
|
|
1401
|
+
* platform's scrollbar, as Code does), or with
|
|
1401
1402
|
* `wrap` break under their own text while the gutter holds still, and the
|
|
1402
1403
|
* frame lifts one surface step above whatever holds it, as Code does.
|
|
1403
1404
|
*
|
|
@@ -6117,10 +6118,12 @@ interface AutosizeRows {
|
|
|
6117
6118
|
}
|
|
6118
6119
|
/**
|
|
6119
6120
|
* Sizes the textarea to its content between `minRows` and `maxRows`, then
|
|
6120
|
-
* scrolls.
|
|
6121
|
-
*
|
|
6122
|
-
*
|
|
6123
|
-
*
|
|
6121
|
+
* scrolls. Where the browser supports `field-sizing: content`, the box sizes
|
|
6122
|
+
* itself between a `min-height` and `max-height` in line units. Elsewhere it
|
|
6123
|
+
* measures before paint whenever `deps` change (pass the value and anything
|
|
6124
|
+
* else that changes the text's height, such as the size step), and when the
|
|
6125
|
+
* textarea's width changes. Returns the measure, for a caller that changes
|
|
6126
|
+
* the content outside React.
|
|
6124
6127
|
*/
|
|
6125
6128
|
declare function useAutosizeTextarea(ref: RefObject16<HTMLTextAreaElement | null>, { minRows, maxRows }: AutosizeRows, deps: DependencyList): () => void;
|
|
6126
6129
|
type SetState<
|
|
@@ -6149,7 +6152,9 @@ type Element_12xgc52 = JSX_1kxb52["Element"];
|
|
|
6149
6152
|
*
|
|
6150
6153
|
* sugar-high tokenizes; each token type takes a `--syntax-*` token from
|
|
6151
6154
|
* tokens/colors.css, so code follows light and dark like everything else.
|
|
6152
|
-
* Long lines scroll sideways under a fading edge instead of wrapping
|
|
6155
|
+
* Long lines scroll sideways under a fading edge instead of wrapping, on the
|
|
6156
|
+
* platform's own scrollbar (ScrollArea's `native`), so hundreds of blocks
|
|
6157
|
+
* cost nothing while their column resizes. It is
|
|
6153
6158
|
* also the docs chrome's Code slot: every example's source and every fenced
|
|
6154
6159
|
* block on these pages renders through it.
|
|
6155
6160
|
*
|
|
@@ -6272,6 +6277,8 @@ interface ScrollAreaProps extends ComponentPropsWithoutRef15<"div"> {
|
|
|
6272
6277
|
viewportClassName?: string;
|
|
6273
6278
|
/** Which axes get scrollbars. Defaults to `"vertical"`. */
|
|
6274
6279
|
orientation?: Orientation;
|
|
6280
|
+
/** Native overflow scrolling with the platform's own scrollbar (an overlay one on macOS), as on touch: no observers and no re-render on resize, for scrollers that come by the hundred, such as code blocks. Defaults to `false`. */
|
|
6281
|
+
native?: boolean;
|
|
6275
6282
|
/** Classes for the outer container — set the height/width constraint here. */
|
|
6276
6283
|
className?: string;
|
|
6277
6284
|
/** The scrolling content. Give it an intrinsic size (`w-max`, `whitespace-nowrap`) to overflow horizontally. */
|
|
@@ -6292,7 +6299,8 @@ type ScrollAreaComponent = ForwardRefExoticComponent20<ScrollAreaProps & RefAttr
|
|
|
6292
6299
|
* goes on the inner scrolling viewport, where the `scroll-fade` (or
|
|
6293
6300
|
* `scroll-fade-x`) utility dissolves the edges that have more to scroll. On
|
|
6294
6301
|
* touch-primary devices the whole thing steps aside for native overflow
|
|
6295
|
-
* scrolling
|
|
6302
|
+
* scrolling, and `native` does the same anywhere: the fade stays (it is
|
|
6303
|
+
* CSS), the drawn thumb gives way to the platform's. Built on Base UI's ScrollArea; scrollbar machinery adapted from
|
|
6296
6304
|
* Lina (https://lina.sameer.sh).
|
|
6297
6305
|
*
|
|
6298
6306
|
* Statics:
|