@brett_lamy/ui 5.0.0 → 5.2.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/dist/components/adaptive-pane.d.ts +12 -1
- package/dist/components/adaptive-pane.d.ts.map +1 -1
- package/dist/components/adaptive-pane.js +122 -19
- package/dist/components/avatar.d.ts +47 -5
- package/dist/components/avatar.d.ts.map +1 -1
- package/dist/components/avatar.js +101 -14
- package/dist/components/breadcrumb.d.ts +87 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +312 -0
- package/dist/components/calendar.d.ts +26 -0
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +97 -0
- package/dist/components/color-field.d.ts +22 -0
- package/dist/components/color-field.d.ts.map +1 -0
- package/dist/components/color-field.js +60 -0
- package/dist/components/color-picker.d.ts +49 -0
- package/dist/components/color-picker.d.ts.map +1 -0
- package/dist/components/color-picker.js +121 -0
- package/dist/components/command-menu.js +13 -13
- package/dist/components/credenza.d.ts +5 -2
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.js +62 -60
- package/dist/components/date-field.d.ts +19 -0
- package/dist/components/date-field.d.ts.map +1 -0
- package/dist/components/date-field.js +79 -0
- package/dist/components/date-picker.d.ts +38 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker.js +110 -0
- package/dist/components/edge-drawer.d.ts +7 -2
- package/dist/components/edge-drawer.d.ts.map +1 -1
- package/dist/components/edge-drawer.js +7 -4
- package/dist/components/filmstrip.d.ts +19 -0
- package/dist/components/filmstrip.d.ts.map +1 -0
- package/dist/components/filmstrip.js +59 -0
- package/dist/components/filter-input.js +4 -4
- package/dist/components/filter.js +62 -62
- package/dist/components/font-picker.d.ts +67 -0
- package/dist/components/font-picker.d.ts.map +1 -0
- package/dist/components/font-picker.js +373 -0
- package/dist/components/markdown-editor.d.ts +11 -0
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.js +72 -65
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.js +75 -65
- package/dist/components/number-morph.d.ts.map +1 -1
- package/dist/components/number-morph.js +5 -5
- package/dist/components/replay-preview.d.ts +2 -2
- package/dist/components/replay-preview.d.ts.map +1 -1
- package/dist/components/replay-preview.js +3 -3
- package/dist/components/result-table.js +10 -10
- package/dist/components/schema-tree.d.ts.map +1 -1
- package/dist/components/schema-tree.js +62 -131
- package/dist/components/segmented.d.ts +1 -1
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/segmented.js +1 -1
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +8 -4
- package/dist/components/spinner-shapes.d.ts +36 -0
- package/dist/components/spinner-shapes.d.ts.map +1 -1
- package/dist/components/spinner-shapes.js +105 -0
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.d.ts.map +1 -1
- package/dist/components/split-view.d.ts +3 -1
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.js +211 -211
- package/dist/components/spreadsheet.d.ts +58 -0
- package/dist/components/spreadsheet.d.ts.map +1 -0
- package/dist/components/spreadsheet.js +804 -0
- package/dist/components/sql-console.d.ts.map +1 -1
- package/dist/components/sql-console.js +2 -1
- package/dist/components/sql-editor.js +8 -8
- package/dist/components/stl-viewer.d.ts +3 -0
- package/dist/components/stl-viewer.d.ts.map +1 -0
- package/dist/components/stl-viewer.js +2 -0
- package/dist/components/strudel-player.d.ts +3 -0
- package/dist/components/strudel-player.d.ts.map +1 -0
- package/dist/components/strudel-player.js +2 -0
- package/dist/components/strudel-rack.d.ts +3 -0
- package/dist/components/strudel-rack.d.ts.map +1 -0
- package/dist/components/strudel-rack.js +2 -0
- package/dist/components/strudel-syntax.d.ts +3 -0
- package/dist/components/strudel-syntax.d.ts.map +1 -0
- package/dist/components/strudel-syntax.js +2 -0
- package/dist/components/tabs.js +3 -3
- package/dist/components/tailscale-menu.d.ts +69 -0
- package/dist/components/tailscale-menu.d.ts.map +1 -0
- package/dist/components/tailscale-menu.js +202 -0
- package/dist/components/toggle-group.js +3 -3
- package/dist/components/tree.d.ts +82 -0
- package/dist/components/tree.d.ts.map +1 -0
- package/dist/components/tree.js +494 -0
- package/dist/components/video-preview.d.ts +46 -0
- package/dist/components/video-preview.d.ts.map +1 -0
- package/dist/components/video-preview.js +197 -0
- package/dist/components/video-timeline.d.ts +64 -0
- package/dist/components/video-timeline.d.ts.map +1 -0
- package/dist/components/video-timeline.js +479 -0
- package/dist/components/waveform.d.ts +23 -0
- package/dist/components/waveform.d.ts.map +1 -0
- package/dist/components/waveform.js +56 -0
- package/dist/ffmpeg-worker.js +118 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +53 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +145 -116
- package/dist/lib/csv.d.ts +28 -0
- package/dist/lib/csv.d.ts.map +1 -0
- package/dist/lib/csv.js +90 -0
- package/dist/lib/drawer-swipe.d.ts +31 -0
- package/dist/lib/drawer-swipe.d.ts.map +1 -0
- package/dist/lib/drawer-swipe.js +68 -0
- package/dist/lib/ffmpeg/index.d.ts +117 -0
- package/dist/lib/ffmpeg/index.d.ts.map +1 -0
- package/dist/lib/ffmpeg/index.js +204 -0
- package/dist/lib/ffmpeg/media.d.ts +39 -0
- package/dist/lib/ffmpeg/media.d.ts.map +1 -0
- package/dist/lib/ffmpeg/media.js +100 -0
- package/dist/lib/ffmpeg/react.d.ts +51 -0
- package/dist/lib/ffmpeg/react.d.ts.map +1 -0
- package/dist/lib/ffmpeg/react.js +113 -0
- package/dist/lib/google-fonts.d.ts +47 -0
- package/dist/lib/google-fonts.d.ts.map +1 -0
- package/dist/lib/google-fonts.generated.d.ts +2 -0
- package/dist/lib/google-fonts.generated.d.ts.map +1 -0
- package/dist/lib/google-fonts.generated.js +1925 -0
- package/dist/lib/google-fonts.js +112 -0
- package/dist/lib/icon.d.ts +6 -1
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.js +2 -0
- package/dist/lib/playback.d.ts +34 -0
- package/dist/lib/playback.d.ts.map +1 -0
- package/dist/lib/playback.js +79 -0
- package/dist/lib/spreadsheet-gpu.d.ts +9 -0
- package/dist/lib/spreadsheet-gpu.d.ts.map +1 -0
- package/dist/lib/spreadsheet-gpu.js +237 -0
- package/dist/lib/spreadsheet.d.ts +82 -0
- package/dist/lib/spreadsheet.d.ts.map +1 -0
- package/dist/lib/spreadsheet.js +162 -0
- package/dist/lib/syntax.d.ts +2 -6
- package/dist/lib/syntax.d.ts.map +1 -1
- package/dist/lib/syntax.js +53 -75
- package/dist/lib/tailscale-connect.d.ts +33 -0
- package/dist/lib/tailscale-connect.d.ts.map +1 -1
- package/dist/lib/tailscale-connect.js +221 -42
- package/dist/lib/tailscale-exit.d.ts +19 -0
- package/dist/lib/tailscale-exit.d.ts.map +1 -0
- package/dist/lib/tailscale-exit.js +14 -0
- package/dist/lib/tailscale-fake.d.ts +8 -0
- package/dist/lib/tailscale-fake.d.ts.map +1 -1
- package/dist/lib/tailscale-fake.js +51 -26
- package/dist/lib/tailscale-roots.d.ts +3 -0
- package/dist/lib/tailscale-roots.d.ts.map +1 -0
- package/dist/lib/tailscale-roots.js +4 -0
- package/dist/lib/tailscale.d.ts +23 -0
- package/dist/lib/tailscale.d.ts.map +1 -1
- package/dist/lib/tailscale.js +156 -94
- package/dist/lib/title-flight.d.ts +4 -0
- package/dist/lib/title-flight.d.ts.map +1 -1
- package/dist/lib/title-flight.js +15 -12
- package/dist/lib/tokens.generated.d.ts +2 -2
- package/dist/lib/tokens.generated.d.ts.map +1 -1
- package/dist/lib/tokens.generated.js +2 -2
- package/dist/lib/video-render.d.ts +38 -0
- package/dist/lib/video-render.d.ts.map +1 -0
- package/dist/lib/video-render.js +147 -0
- package/dist/lib/video-timeline.d.ts +154 -0
- package/dist/lib/video-timeline.d.ts.map +1 -0
- package/dist/lib/video-timeline.js +265 -0
- package/dist/lib/webgpu.d.ts +26 -0
- package/dist/lib/webgpu.d.ts.map +1 -0
- package/dist/lib/webgpu.js +28 -0
- package/dist/theme.css +3 -0
- package/package.json +10 -4
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { PopoverProps } from './popover';
|
|
4
|
+
import { FontCategory, GoogleFont } from '../lib/google-fonts';
|
|
5
|
+
export declare const fontListItemVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
6
|
+
export interface FontListProps {
|
|
7
|
+
/** The family in use; null for the system font. */
|
|
8
|
+
value: string | null;
|
|
9
|
+
onChange: (family: string | null) => void;
|
|
10
|
+
/** The family being previewed as the list is hovered or arrowed through (null: the system font), and `undefined`
|
|
11
|
+
* when nothing is (the pointer left the list, or it closed). */
|
|
12
|
+
onPreview?: (family: string | null | undefined) => void;
|
|
13
|
+
/** The families offered (default: the most popular Google Fonts families). */
|
|
14
|
+
fonts?: readonly GoogleFont[];
|
|
15
|
+
/** Offer the system font (null) first. Default true. */
|
|
16
|
+
allowSystem?: boolean;
|
|
17
|
+
/** What the system font is called. Default “System”. */
|
|
18
|
+
systemLabel?: string;
|
|
19
|
+
/** The category the filter starts on. Default `all`. */
|
|
20
|
+
defaultCategory?: FontCategory | 'all';
|
|
21
|
+
autoFocus?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/** The list alone: search, category filter, and the families. */
|
|
25
|
+
export declare function FontList({ value, onChange, onPreview, fonts, allowSystem, systemLabel, ...rest }: FontListProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const fontPickerTriggerVariants: (props?: ({
|
|
27
|
+
size?: "default" | "sm" | null | undefined;
|
|
28
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
29
|
+
export interface FontPickerProps extends Omit<FontListProps, 'autoFocus' | 'className'>, VariantProps<typeof fontPickerTriggerVariants> {
|
|
30
|
+
'aria-label'?: string;
|
|
31
|
+
isDisabled?: boolean;
|
|
32
|
+
/** Where the list opens. Default below, start-aligned. */
|
|
33
|
+
placement?: PopoverProps['placement'];
|
|
34
|
+
className?: string;
|
|
35
|
+
/** More props for the trigger button. */
|
|
36
|
+
triggerProps?: Omit<AriaButtonProps, 'children' | 'className' | 'isDisabled'>;
|
|
37
|
+
}
|
|
38
|
+
/** A trigger showing the family in its own face, opening the FontList in a popover. */
|
|
39
|
+
export declare function FontPicker({ value, onChange, onPreview, size, isDisabled, placement, className, triggerProps, 'aria-label': ariaLabel, systemLabel, ...list }: FontPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare const fontStackPickerVariants: (props?: ({
|
|
41
|
+
size?: "default" | "sm" | null | undefined;
|
|
42
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
43
|
+
export interface FontStackPickerProps extends VariantProps<typeof fontStackPickerVariants> {
|
|
44
|
+
/** The families, the one to use first: fontStack(value) is the CSS font-family. */
|
|
45
|
+
value: readonly string[];
|
|
46
|
+
onChange: (families: string[]) => void;
|
|
47
|
+
/** As the list is hovered or arrowed through: the stack with that family in front (how it would look added), and
|
|
48
|
+
* `undefined` when the preview ends. */
|
|
49
|
+
onPreview?: (families: string[] | undefined) => void;
|
|
50
|
+
/** At most this many families. Default 3. */
|
|
51
|
+
maxCount?: number;
|
|
52
|
+
/** The families offered (default: the most popular Google Fonts families). */
|
|
53
|
+
fonts?: readonly GoogleFont[];
|
|
54
|
+
/** The category the list's filter starts on (a monospace stack: `monospace`). Default `all`. */
|
|
55
|
+
defaultCategory?: FontCategory | 'all';
|
|
56
|
+
/** What the field says while the stack is empty. Default “Add a font”. */
|
|
57
|
+
placeholder?: string;
|
|
58
|
+
'aria-label'?: string;
|
|
59
|
+
isDisabled?: boolean;
|
|
60
|
+
/** Where the list opens. Default below, start-aligned. */
|
|
61
|
+
placement?: PopoverProps['placement'];
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
/** A font stack as chips (drag one, or press its handle and use the arrow keys, to reorder; × removes it), and a
|
|
65
|
+
button that opens the list to add or remove families. */
|
|
66
|
+
export declare function FontStackPicker({ value, onChange, onPreview, maxCount, fonts, defaultCategory, placeholder, 'aria-label': ariaLabel, isDisabled, placement, size, className, }: FontStackPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
//# sourceMappingURL=font-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-picker.d.ts","sourceRoot":"","sources":["../../src/components/font-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEiB,KAAK,WAAW,IAAI,eAAe,EAgB1D,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAC0D,KAAK,YAAY,EAAE,KAAK,UAAU,EAClG,MAAM,oBAAoB,CAAC;AA8B5B,eAAO,MAAM,oBAAoB,oFAAgE,CAAC;AAiMlG,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C;qEACiE;IACjE,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACxD,8EAA8E;IAC9E,KAAK,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC9B,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,eAAe,CAAC,EAAE,YAAY,GAAG,KAAK,CAAC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;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AAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC9B,gGAAgG;IAChG,eAAe,CAAC,EAAE,YAAY,GAAG,KAAK,CAAC;IACvC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;4DAC4D;AAC5D,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAY,EAAE,KAAoB,EAAE,eAAe,EAAE,WAA0B,EAC3G,YAAY,EAAE,SAAwB,EAAE,UAAU,EAAE,SAA0B,EAAE,IAAI,EAAE,SAAS,GAChG,EAAE,oBAAoB,2CA8FtB"}
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { Icon as t } from "../lib/icon.js";
|
|
4
|
+
import { Popover as n } from "./popover.js";
|
|
5
|
+
import { listBoxItemVariants as r } from "./list-box.js";
|
|
6
|
+
import { FONT_CATEGORIES as i, GOOGLE_FONTS as a, fontStack as o, useGoogleFontStatus as s } from "../lib/google-fonts.js";
|
|
7
|
+
import { useEffect as c, useLayoutEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
8
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
+
import { Autocomplete as g, Button as _, Dialog as v, DialogTrigger as y, DropIndicator as b, GridList as x, GridListItem as S, Input as C, ListBox as w, ListBoxItem as T, ListLayout as E, SearchField as D, ToggleButton as O, ToggleButtonGroup as k, Virtualizer as A, composeRenderProps as j, useDragAndDrop as M } from "react-aria-components";
|
|
10
|
+
import { cva as N } from "class-variance-authority";
|
|
11
|
+
//#region src/components/font-picker.tsx
|
|
12
|
+
var ee = "\0system", P = "\0use:", F = N("h-10 min-h-0 scroll-my-1.5 py-0 data-hovered:bg-accent"), I = 40, L = 6;
|
|
13
|
+
function R({ mark: n, onPick: a, onActive: o, isDisabled: p, fonts: _, allowSystem: v, systemLabel: y, defaultCategory: b = "all", current: x, autoFocus: S, className: j, footer: M }) {
|
|
14
|
+
let [N, R] = f(""), [z, B] = f(b), [V, H] = f(null), [U, W] = f(null), G = N.trim(), K = u(() => {
|
|
15
|
+
let e = G.toLowerCase(), t = _.filter((t) => (z === "all" || t.category === z) && (!e || t.family.toLowerCase().includes(e))), n = e.length > 1 && !_.some((t) => t.family.toLowerCase().includes(e));
|
|
16
|
+
return [
|
|
17
|
+
...v && !e && z === "all" ? [{
|
|
18
|
+
id: ee,
|
|
19
|
+
family: null
|
|
20
|
+
}] : [],
|
|
21
|
+
...n ? [{
|
|
22
|
+
id: P + G,
|
|
23
|
+
family: G,
|
|
24
|
+
custom: !0
|
|
25
|
+
}] : [],
|
|
26
|
+
...t.map((e) => ({
|
|
27
|
+
id: e.family,
|
|
28
|
+
family: e.family,
|
|
29
|
+
font: e
|
|
30
|
+
}))
|
|
31
|
+
];
|
|
32
|
+
}, [
|
|
33
|
+
_,
|
|
34
|
+
z,
|
|
35
|
+
G,
|
|
36
|
+
v
|
|
37
|
+
]), q = u(() => new Map(K.map((e) => [e.id, e])), [K]), J = d(null);
|
|
38
|
+
l(() => {
|
|
39
|
+
J.current && !J.current.hasAttribute("tabindex") && (J.current.tabIndex = 0);
|
|
40
|
+
}), l(() => {
|
|
41
|
+
let e = x ? K.findIndex((e) => e.family === x) : -1;
|
|
42
|
+
if (e <= 0) return;
|
|
43
|
+
let t = requestAnimationFrame(() => {
|
|
44
|
+
let t = J.current;
|
|
45
|
+
t && (t.scrollTop = Math.max(0, L + e * I - ((t.clientHeight || 288) - I) / 2));
|
|
46
|
+
});
|
|
47
|
+
return () => cancelAnimationFrame(t);
|
|
48
|
+
}, []);
|
|
49
|
+
let Y = te(K.find((e) => e.custom)?.family ?? null, 450), X = s(Y, { text: Y ?? void 0 }), Z = (V != null && q.has(V) ? V : null) ?? (U != null && q.has(U) ? U : null), Q = d(o);
|
|
50
|
+
Q.current = o;
|
|
51
|
+
let $ = Z == null ? void 0 : q.get(Z)?.family;
|
|
52
|
+
return c(() => {
|
|
53
|
+
Q.current($);
|
|
54
|
+
}, [$]), c(() => () => Q.current(void 0), []), /* @__PURE__ */ h("div", {
|
|
55
|
+
"data-slot": "font-list",
|
|
56
|
+
className: e("flex min-h-0 flex-col", j),
|
|
57
|
+
children: [/* @__PURE__ */ h(g, {
|
|
58
|
+
inputValue: N,
|
|
59
|
+
onInputChange: R,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ h(D, {
|
|
62
|
+
"aria-label": "Search fonts",
|
|
63
|
+
autoFocus: S,
|
|
64
|
+
className: "flex h-10 shrink-0 items-center gap-2 border-b border-border px-3",
|
|
65
|
+
children: [/* @__PURE__ */ m(t, {
|
|
66
|
+
name: "search",
|
|
67
|
+
size: 16,
|
|
68
|
+
sw: 2.2,
|
|
69
|
+
className: "shrink-0 text-foreground/70"
|
|
70
|
+
}), /* @__PURE__ */ m(C, {
|
|
71
|
+
placeholder: "Search fonts",
|
|
72
|
+
className: "min-w-0 flex-1 appearance-none border-0 bg-transparent p-0 [font-family:inherit] text-subhead text-foreground outline-none select-text placeholder:text-tertiary-foreground [&::-webkit-search-cancel-button]:appearance-none"
|
|
73
|
+
})]
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ m(k, {
|
|
76
|
+
"aria-label": "Category",
|
|
77
|
+
selectionMode: "single",
|
|
78
|
+
disallowEmptySelection: !0,
|
|
79
|
+
selectedKeys: [z],
|
|
80
|
+
onSelectionChange: (e) => {
|
|
81
|
+
let t = [...e][0];
|
|
82
|
+
t != null && B(String(t));
|
|
83
|
+
},
|
|
84
|
+
className: "flex shrink-0 gap-1 overflow-x-auto border-b border-border px-2 py-1.5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
85
|
+
children: [{
|
|
86
|
+
id: "all",
|
|
87
|
+
label: "All"
|
|
88
|
+
}, ...i].map((e) => /* @__PURE__ */ m(O, {
|
|
89
|
+
id: e.id,
|
|
90
|
+
className: "bl-btn h-7 shrink-0 cursor-pointer rounded-full border-0 bg-transparent px-2.5 [font-family:inherit] text-footnote font-medium whitespace-nowrap text-foreground/70 outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-hovered:bg-secondary data-selected:bg-foreground data-selected:text-background",
|
|
91
|
+
children: e.label
|
|
92
|
+
}, e.id))
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ m(A, {
|
|
95
|
+
layout: E,
|
|
96
|
+
layoutOptions: {
|
|
97
|
+
rowSize: I,
|
|
98
|
+
padding: L
|
|
99
|
+
},
|
|
100
|
+
children: /* @__PURE__ */ m(w, {
|
|
101
|
+
ref: J,
|
|
102
|
+
"data-slot": "font-list-items",
|
|
103
|
+
"aria-label": "Fonts",
|
|
104
|
+
items: K,
|
|
105
|
+
dependencies: [
|
|
106
|
+
n,
|
|
107
|
+
p,
|
|
108
|
+
Y,
|
|
109
|
+
X
|
|
110
|
+
],
|
|
111
|
+
selectionMode: "none",
|
|
112
|
+
onAction: (e) => {
|
|
113
|
+
let t = q.get(String(e));
|
|
114
|
+
t && a(t.family);
|
|
115
|
+
},
|
|
116
|
+
className: "bl-scroll h-72 overflow-y-auto outline-none",
|
|
117
|
+
renderEmptyState: () => /* @__PURE__ */ m("div", {
|
|
118
|
+
className: "px-3 py-8 text-center text-footnote text-foreground/70",
|
|
119
|
+
children: "No fonts"
|
|
120
|
+
}),
|
|
121
|
+
children: (t) => /* @__PURE__ */ m(T, {
|
|
122
|
+
id: t.id,
|
|
123
|
+
textValue: t.family ?? y,
|
|
124
|
+
onHoverStart: () => H(t.id),
|
|
125
|
+
onHoverEnd: () => H((e) => e === t.id ? null : e),
|
|
126
|
+
isDisabled: t.custom && (t.family !== Y || X !== "ready") || !!p?.(t.family),
|
|
127
|
+
className: e(r({ variant: "popup" }), F()),
|
|
128
|
+
children: ({ isFocused: e }) => /* @__PURE__ */ m(ne, {
|
|
129
|
+
row: t,
|
|
130
|
+
mark: t.custom ? null : n(t.family),
|
|
131
|
+
focused: e,
|
|
132
|
+
systemLabel: y,
|
|
133
|
+
lookup: t.custom ? t.family === Y ? X : "loading" : void 0,
|
|
134
|
+
onFocus: (e) => W((n) => e ? t.id : n === t.id ? null : n)
|
|
135
|
+
})
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
}), M]
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function te(e, t) {
|
|
144
|
+
let [n, r] = f(e);
|
|
145
|
+
return c(() => {
|
|
146
|
+
let n = setTimeout(() => r(e), t);
|
|
147
|
+
return () => clearTimeout(n);
|
|
148
|
+
}, [e, t]), n;
|
|
149
|
+
}
|
|
150
|
+
var z = Object.fromEntries(i.map((e) => [e.id, e.label]));
|
|
151
|
+
function ne({ row: t, mark: n, focused: r, systemLabel: i, lookup: a, onFocus: l }) {
|
|
152
|
+
let u = s(t.custom ? null : t.family, { text: t.family ?? void 0 }), f = a ?? u, g = d(l);
|
|
153
|
+
return g.current = l, c(() => (g.current(r), () => {
|
|
154
|
+
r && g.current(!1);
|
|
155
|
+
}), [r]), /* @__PURE__ */ h(p, { children: [
|
|
156
|
+
/* @__PURE__ */ m("span", {
|
|
157
|
+
className: "grid w-[18px] shrink-0 place-items-center text-primary",
|
|
158
|
+
children: n
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ h("span", {
|
|
161
|
+
className: "flex min-w-0 flex-1 items-baseline gap-2",
|
|
162
|
+
children: [/* @__PURE__ */ m("span", {
|
|
163
|
+
className: e("truncate text-body leading-6 transition-opacity duration-200", t.family && f !== "ready" && "opacity-45"),
|
|
164
|
+
style: { fontFamily: f === "ready" ? o(t.family, t.font?.category) : void 0 },
|
|
165
|
+
children: t.custom ? `Use “${t.family}”` : t.family ?? i
|
|
166
|
+
}), n ? /* @__PURE__ */ m("span", {
|
|
167
|
+
className: "sr-only",
|
|
168
|
+
children: "(in use)"
|
|
169
|
+
}) : null]
|
|
170
|
+
}),
|
|
171
|
+
/* @__PURE__ */ m("span", {
|
|
172
|
+
className: "shrink-0 text-caption text-foreground/70",
|
|
173
|
+
children: t.custom ? f === "missing" ? "Not on Google Fonts" : f === "ready" ? "Google Fonts" : "Looking…" : t.font ? z[t.font.category] : t.family ? "" : "Default"
|
|
174
|
+
})
|
|
175
|
+
] });
|
|
176
|
+
}
|
|
177
|
+
var B = () => /* @__PURE__ */ m(t, {
|
|
178
|
+
name: "check",
|
|
179
|
+
size: 18,
|
|
180
|
+
sw: 2.4
|
|
181
|
+
});
|
|
182
|
+
function V({ value: e, onChange: t, onPreview: n, fonts: r = a, allowSystem: i = !0, systemLabel: o = "System", ...s }) {
|
|
183
|
+
return /* @__PURE__ */ m(R, {
|
|
184
|
+
...s,
|
|
185
|
+
fonts: r,
|
|
186
|
+
allowSystem: i,
|
|
187
|
+
systemLabel: o,
|
|
188
|
+
current: e,
|
|
189
|
+
mark: (t) => t === e ? /* @__PURE__ */ m(B, {}) : null,
|
|
190
|
+
onPick: t,
|
|
191
|
+
onActive: (e) => n?.(e)
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
var H = N([
|
|
195
|
+
"bl-btn box-border flex w-full cursor-pointer items-center justify-between gap-2 border-0 bg-input px-3 text-left text-foreground outline-none",
|
|
196
|
+
"transition-[background-color,box-shadow] duration-spring-snappy ease-spring-snappy data-pressed:bg-secondary-strong",
|
|
197
|
+
"data-focus-visible:ring-[3px] data-focus-visible:ring-ring/45 aria-expanded:shadow-[inset_0_0_0_1.5px_var(--primary)]",
|
|
198
|
+
"data-disabled:cursor-default data-disabled:opacity-50"
|
|
199
|
+
], {
|
|
200
|
+
variants: { size: {
|
|
201
|
+
sm: "h-8 rounded-lg text-subhead",
|
|
202
|
+
default: "h-11 rounded-ctl text-body"
|
|
203
|
+
} },
|
|
204
|
+
defaultVariants: { size: "default" }
|
|
205
|
+
});
|
|
206
|
+
function U({ family: t, systemLabel: n, className: r }) {
|
|
207
|
+
let i = s(t, { text: t ?? void 0 });
|
|
208
|
+
return /* @__PURE__ */ m("span", {
|
|
209
|
+
className: e("min-w-0 truncate", r),
|
|
210
|
+
style: { fontFamily: i === "ready" ? o(t) : void 0 },
|
|
211
|
+
children: t ?? n
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
function W({ value: r, onChange: i, onPreview: a, size: o, isDisabled: s, placement: c = "bottom start", className: l, triggerProps: u, "aria-label": d = "Font", systemLabel: p = "System", ...g }) {
|
|
215
|
+
let [b, x] = f(!1);
|
|
216
|
+
return /* @__PURE__ */ h(y, {
|
|
217
|
+
isOpen: b,
|
|
218
|
+
onOpenChange: x,
|
|
219
|
+
children: [/* @__PURE__ */ h(_, {
|
|
220
|
+
"data-slot": "font-picker",
|
|
221
|
+
"aria-label": `${d}: ${r ?? p}`,
|
|
222
|
+
isDisabled: s,
|
|
223
|
+
className: j(l, (t) => e(H({ size: o }), t)),
|
|
224
|
+
...u,
|
|
225
|
+
children: [/* @__PURE__ */ m(U, {
|
|
226
|
+
family: r,
|
|
227
|
+
systemLabel: p,
|
|
228
|
+
className: "flex-1"
|
|
229
|
+
}), /* @__PURE__ */ m(t, {
|
|
230
|
+
name: "chevron-up-down",
|
|
231
|
+
size: 14,
|
|
232
|
+
sw: 2.2,
|
|
233
|
+
className: "shrink-0 text-muted-foreground"
|
|
234
|
+
})]
|
|
235
|
+
}), /* @__PURE__ */ m(n, {
|
|
236
|
+
placement: c,
|
|
237
|
+
className: "w-80 overflow-hidden",
|
|
238
|
+
children: /* @__PURE__ */ m(v, {
|
|
239
|
+
"aria-label": d,
|
|
240
|
+
className: "outline-none",
|
|
241
|
+
children: /* @__PURE__ */ m(V, {
|
|
242
|
+
...g,
|
|
243
|
+
value: r,
|
|
244
|
+
systemLabel: p,
|
|
245
|
+
autoFocus: !0,
|
|
246
|
+
onPreview: a,
|
|
247
|
+
onChange: (e) => {
|
|
248
|
+
i(e), x(!1);
|
|
249
|
+
}
|
|
250
|
+
})
|
|
251
|
+
})
|
|
252
|
+
})]
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
var G = N("flex w-full flex-wrap items-center gap-1.5 rounded-ctl bg-input p-1.5 data-disabled:opacity-50", {
|
|
256
|
+
variants: { size: {
|
|
257
|
+
sm: "min-h-8 rounded-lg p-1 text-footnote",
|
|
258
|
+
default: "min-h-11 text-subhead"
|
|
259
|
+
} },
|
|
260
|
+
defaultVariants: { size: "default" }
|
|
261
|
+
});
|
|
262
|
+
function K({ value: r, onChange: i, onPreview: o, maxCount: s = 3, fonts: c = a, defaultCategory: l, placeholder: u = "Add a font", "aria-label": p = "Font stack", isDisabled: g, placement: C = "bottom start", size: w, className: T }) {
|
|
263
|
+
let [E, D] = f(!1), O = d(null), k = r.length >= s, A = (e) => i([...new Set(e)].slice(0, s)), j = (e) => {
|
|
264
|
+
e && (r.includes(e) ? A(r.filter((t) => t !== e)) : k || A([e, ...r]));
|
|
265
|
+
}, { dragAndDropHooks: N } = M({
|
|
266
|
+
getItems: (e) => [...e].map((e) => ({ "text/plain": String(e) })),
|
|
267
|
+
onReorder: (e) => {
|
|
268
|
+
let t = r.filter((t) => e.keys.has(t)), n = r.filter((t) => !e.keys.has(t)), i = n.indexOf(String(e.target.key)) + +(e.target.dropPosition === "after");
|
|
269
|
+
A([
|
|
270
|
+
...n.slice(0, i),
|
|
271
|
+
...t,
|
|
272
|
+
...n.slice(i)
|
|
273
|
+
]);
|
|
274
|
+
},
|
|
275
|
+
renderDropIndicator: (e) => /* @__PURE__ */ m(b, {
|
|
276
|
+
target: e,
|
|
277
|
+
className: "w-0.5 self-stretch rounded-full bg-primary data-drop-target:bg-primary"
|
|
278
|
+
}),
|
|
279
|
+
isDisabled: g
|
|
280
|
+
});
|
|
281
|
+
return /* @__PURE__ */ h("div", {
|
|
282
|
+
ref: O,
|
|
283
|
+
"data-slot": "font-stack-picker",
|
|
284
|
+
role: "group",
|
|
285
|
+
"aria-label": p,
|
|
286
|
+
"data-disabled": g || void 0,
|
|
287
|
+
className: e(G({ size: w }), T),
|
|
288
|
+
children: [r.length ? /* @__PURE__ */ m(x, {
|
|
289
|
+
"aria-label": p,
|
|
290
|
+
layout: "grid",
|
|
291
|
+
items: r.map((e) => ({ id: e })),
|
|
292
|
+
dragAndDropHooks: N,
|
|
293
|
+
className: "flex min-w-0 flex-wrap items-center gap-1.5 outline-none",
|
|
294
|
+
children: (e) => /* @__PURE__ */ h(S, {
|
|
295
|
+
id: e.id,
|
|
296
|
+
textValue: e.id,
|
|
297
|
+
className: "bl-btn flex h-7 max-w-full items-center gap-0.5 rounded-lg bg-card pr-0.5 pl-0.5 text-foreground shadow-hairline outline-none data-dragging:opacity-50 data-focus-visible:ring-2 data-focus-visible:ring-ring",
|
|
298
|
+
children: [
|
|
299
|
+
/* @__PURE__ */ m(_, {
|
|
300
|
+
slot: "drag",
|
|
301
|
+
"aria-label": `Move ${e.id}`,
|
|
302
|
+
className: "grid h-6 w-4 shrink-0 cursor-grab place-items-center rounded border-0 bg-transparent p-0 text-muted-foreground outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring",
|
|
303
|
+
children: /* @__PURE__ */ m(t, {
|
|
304
|
+
name: "grip-dots",
|
|
305
|
+
size: 12,
|
|
306
|
+
sw: 2.2
|
|
307
|
+
})
|
|
308
|
+
}),
|
|
309
|
+
/* @__PURE__ */ m(U, {
|
|
310
|
+
family: e.id,
|
|
311
|
+
className: "max-w-32 px-0.5 text-footnote"
|
|
312
|
+
}),
|
|
313
|
+
/* @__PURE__ */ m(_, {
|
|
314
|
+
"aria-label": `Remove ${e.id}`,
|
|
315
|
+
isDisabled: g,
|
|
316
|
+
onPress: () => A(r.filter((t) => t !== e.id)),
|
|
317
|
+
className: "grid size-5 shrink-0 cursor-pointer place-items-center rounded-full border-0 bg-transparent p-0 text-muted-foreground outline-none data-hovered:bg-secondary data-hovered:text-foreground data-focus-visible:ring-2 data-focus-visible:ring-ring",
|
|
318
|
+
children: /* @__PURE__ */ m(t, {
|
|
319
|
+
name: "xmark",
|
|
320
|
+
size: 10,
|
|
321
|
+
sw: 2.6
|
|
322
|
+
})
|
|
323
|
+
})
|
|
324
|
+
]
|
|
325
|
+
})
|
|
326
|
+
}) : null, /* @__PURE__ */ h(y, {
|
|
327
|
+
isOpen: E,
|
|
328
|
+
onOpenChange: D,
|
|
329
|
+
children: [/* @__PURE__ */ h(_, {
|
|
330
|
+
"aria-label": r.length ? `Add a font to ${p}` : u,
|
|
331
|
+
isDisabled: g,
|
|
332
|
+
className: e("bl-btn flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-lg border-0 bg-transparent px-2 [font-family:inherit] text-footnote text-foreground/70 outline-none data-hovered:bg-secondary data-hovered:text-foreground data-focus-visible:ring-2 data-focus-visible:ring-ring aria-expanded:bg-secondary", !r.length && "flex-1 justify-start"),
|
|
333
|
+
children: [/* @__PURE__ */ m(t, {
|
|
334
|
+
name: "plus",
|
|
335
|
+
size: 12,
|
|
336
|
+
sw: 2.4
|
|
337
|
+
}), r.length ? null : u]
|
|
338
|
+
}), /* @__PURE__ */ m(n, {
|
|
339
|
+
triggerRef: O,
|
|
340
|
+
placement: C,
|
|
341
|
+
className: "w-80 overflow-hidden",
|
|
342
|
+
children: /* @__PURE__ */ m(v, {
|
|
343
|
+
"aria-label": p,
|
|
344
|
+
className: "outline-none",
|
|
345
|
+
children: /* @__PURE__ */ m(R, {
|
|
346
|
+
fonts: c,
|
|
347
|
+
allowSystem: !1,
|
|
348
|
+
systemLabel: "System",
|
|
349
|
+
defaultCategory: l,
|
|
350
|
+
current: r[0] ?? null,
|
|
351
|
+
autoFocus: !0,
|
|
352
|
+
mark: (e) => {
|
|
353
|
+
let t = e ? r.indexOf(e) : -1;
|
|
354
|
+
return t < 0 ? null : /* @__PURE__ */ m("span", {
|
|
355
|
+
className: "grid size-[18px] place-items-center rounded-full bg-primary text-caption2 font-semibold text-primary-foreground tabular-nums",
|
|
356
|
+
children: t + 1
|
|
357
|
+
});
|
|
358
|
+
},
|
|
359
|
+
isDisabled: (e) => k && !!e && !r.includes(e),
|
|
360
|
+
onPick: j,
|
|
361
|
+
onActive: (e) => o?.(e == null ? void 0 : [e, ...r.filter((t) => t !== e)]),
|
|
362
|
+
footer: /* @__PURE__ */ m("p", {
|
|
363
|
+
className: "m-0 border-t border-border px-3 py-2 text-caption text-foreground/70",
|
|
364
|
+
children: k ? `${s} of ${s}: remove one to add another.` : `Up to ${s}: the first that loads is used.`
|
|
365
|
+
})
|
|
366
|
+
})
|
|
367
|
+
})
|
|
368
|
+
})]
|
|
369
|
+
})]
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
//#endregion
|
|
373
|
+
export { V as FontList, W as FontPicker, K as FontStackPicker, F as fontListItemVariants, H as fontPickerTriggerVariants, G as fontStackPickerVariants };
|
|
@@ -64,6 +64,8 @@ export interface MarkdownEditorClassNames {
|
|
|
64
64
|
toolbar?: string;
|
|
65
65
|
}
|
|
66
66
|
export interface MarkdownEditorProps extends VariantProps<typeof markdownEditorVariants> {
|
|
67
|
+
/** First-party YAML frontmatter property sheet. */
|
|
68
|
+
documentProperties?: GitbookEditorProps['documentProperties'];
|
|
67
69
|
/** Markdown (controlled). */
|
|
68
70
|
value?: string;
|
|
69
71
|
/** Initial Markdown (uncontrolled). */
|
|
@@ -88,6 +90,9 @@ export interface MarkdownEditorProps extends VariantProps<typeof markdownEditorV
|
|
|
88
90
|
references?: GitbookEditorProps['references'];
|
|
89
91
|
/** Resolve live demo blocks and their source files inside the editor. */
|
|
90
92
|
demoResolver?: GitbookEditorProps['demoResolver'];
|
|
93
|
+
demoRuntime?: GitbookEditorProps['demoRuntime'];
|
|
94
|
+
demoVFS?: GitbookEditorProps['demoVFS'];
|
|
95
|
+
demoDependencies?: GitbookEditorProps['demoDependencies'];
|
|
91
96
|
/** Parse pasted plain text that looks like Markdown into structure (default true). */
|
|
92
97
|
pasteMarkdown?: boolean;
|
|
93
98
|
/** Pasted or dropped images: inline image blocks (default) or attachment chips the host stores. */
|
|
@@ -100,6 +105,12 @@ export interface MarkdownEditorProps extends VariantProps<typeof markdownEditorV
|
|
|
100
105
|
onAttachmentRemove?: (ids: string[]) => void;
|
|
101
106
|
/** Chip mode: a chip was clicked. Omit for the built-in image viewer. */
|
|
102
107
|
onAttachmentOpen?: (attachment: MarkdownEditorAttachment) => void;
|
|
108
|
+
/** Resolves asset URLs as written (`./models/part.stl`) to loadable ones, e.g. `blob:` URLs of files next to the document. */
|
|
109
|
+
resolveAsset?: GitbookEditorProps['resolveAsset'];
|
|
110
|
+
/** Adds "Choose file…" to embed blocks (and "Choose image…" to images); resolve with the URL to write. */
|
|
111
|
+
pickFile?: GitbookEditorProps['pickFile'];
|
|
112
|
+
/** Claim a drop: return the URLs to embed at the drop point, or `null` for the default handling. */
|
|
113
|
+
onDropEmbeds?: GitbookEditorProps['onDropEmbeds'];
|
|
103
114
|
/** Runs before the editor's keymaps; return true when handled. */
|
|
104
115
|
onKeyDown?: (event: KeyboardEvent) => boolean;
|
|
105
116
|
/** Runs before the editor's paste handling; return true when handled. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-editor.d.ts","sourceRoot":"","sources":["../../src/components/markdown-editor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGrE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAYlE,0DAA0D;AAC1D,MAAM,MAAM,sBAAsB,GA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