@jaetask/toolkit 0.3.2 → 0.3.7
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/CHANGELOG.md +39 -0
- package/README.md +12 -10
- package/dist/guard.d.ts +1 -1
- package/dist/guard.d.ts.map +1 -1
- package/dist/guard.js +17 -6
- package/dist/guard.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +0 -11
- package/dist/suite/chat.d.ts +66 -0
- package/dist/suite/chat.d.ts.map +1 -0
- package/dist/suite/chat.js +106 -0
- package/dist/suite/chat.js.map +1 -0
- package/dist/suite/controls.d.ts +0 -1
- package/dist/suite/controls.d.ts.map +1 -1
- package/dist/suite/controls.js +0 -2
- package/dist/suite/controls.js.map +1 -1
- package/dist/suite/due-picker.d.ts +0 -9
- package/dist/suite/due-picker.d.ts.map +1 -1
- package/dist/suite/due-picker.js +0 -8
- package/dist/suite/due-picker.js.map +1 -1
- package/dist/suite/due.d.ts +0 -2
- package/dist/suite/due.d.ts.map +1 -1
- package/dist/suite/due.js +0 -9
- package/dist/suite/due.js.map +1 -1
- package/dist/suite/emoji.d.ts +0 -7
- package/dist/suite/emoji.d.ts.map +1 -1
- package/dist/suite/emoji.js +0 -7
- package/dist/suite/emoji.js.map +1 -1
- package/dist/suite/entity-nav.d.ts +37 -0
- package/dist/suite/entity-nav.d.ts.map +1 -0
- package/dist/suite/entity-nav.js +125 -0
- package/dist/suite/entity-nav.js.map +1 -0
- package/dist/suite/files.d.ts +0 -8
- package/dist/suite/files.d.ts.map +1 -1
- package/dist/suite/files.js +0 -8
- package/dist/suite/files.js.map +1 -1
- package/dist/suite/filters.d.ts +18 -0
- package/dist/suite/filters.d.ts.map +1 -0
- package/dist/suite/filters.js +23 -0
- package/dist/suite/filters.js.map +1 -0
- package/dist/suite/forms.d.ts +0 -3
- package/dist/suite/forms.d.ts.map +1 -1
- package/dist/suite/forms.js +7 -7
- package/dist/suite/forms.js.map +1 -1
- package/dist/suite/index.d.ts +5 -1
- package/dist/suite/index.d.ts.map +1 -1
- package/dist/suite/index.js +5 -3
- package/dist/suite/index.js.map +1 -1
- package/dist/suite/link.d.ts +0 -6
- package/dist/suite/link.d.ts.map +1 -1
- package/dist/suite/link.js +0 -9
- package/dist/suite/link.js.map +1 -1
- package/dist/suite/links.d.ts +0 -9
- package/dist/suite/links.d.ts.map +1 -1
- package/dist/suite/links.js +0 -9
- package/dist/suite/links.js.map +1 -1
- package/dist/suite/markdown.d.ts +0 -1
- package/dist/suite/markdown.d.ts.map +1 -1
- package/dist/suite/markdown.js +1 -8
- package/dist/suite/markdown.js.map +1 -1
- package/dist/suite/page.d.ts +0 -23
- package/dist/suite/page.d.ts.map +1 -1
- package/dist/suite/page.js +0 -23
- package/dist/suite/page.js.map +1 -1
- package/dist/suite/parts.d.ts +0 -14
- package/dist/suite/parts.d.ts.map +1 -1
- package/dist/suite/parts.js +0 -16
- package/dist/suite/parts.js.map +1 -1
- package/dist/suite/pickers.d.ts +0 -10
- package/dist/suite/pickers.d.ts.map +1 -1
- package/dist/suite/pickers.js +1 -13
- package/dist/suite/pickers.js.map +1 -1
- package/dist/suite/project-appearance.d.ts.map +1 -1
- package/dist/suite/project-appearance.js +0 -1
- package/dist/suite/project-appearance.js.map +1 -1
- package/dist/suite/project-icon.d.ts +4 -5
- package/dist/suite/project-icon.d.ts.map +1 -1
- package/dist/suite/project-icon.js +2 -9
- package/dist/suite/project-icon.js.map +1 -1
- package/dist/suite/shell.d.ts +4 -27
- package/dist/suite/shell.d.ts.map +1 -1
- package/dist/suite/shell.js +63 -11
- package/dist/suite/shell.js.map +1 -1
- package/dist/suite/suite.css +409 -40
- package/dist/suite/views.d.ts +0 -7
- package/dist/suite/views.d.ts.map +1 -1
- package/dist/suite/views.js +1 -8
- package/dist/suite/views.js.map +1 -1
- package/dist/suite/work.d.ts +100 -0
- package/dist/suite/work.d.ts.map +1 -0
- package/dist/suite/work.js +160 -0
- package/dist/suite/work.js.map +1 -0
- package/dist/theme/suite-theme.css +0 -8
- package/package.json +2 -2
- package/skills/ux-flow/SKILL.md +12 -6
package/dist/suite/forms.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
2
|
+
import { IconX } from "@tabler/icons-react";
|
|
3
|
+
import { useRef, useState } from "react";
|
|
4
|
+
import { Button } from "../ui/button.js";
|
|
5
|
+
import { Dialog, DialogContent, DialogDescription, DialogTitle } from "../ui/dialog.js";
|
|
5
6
|
import { Input } from "../ui/input.js";
|
|
6
7
|
import { DarkButton, GreyButton } from "./controls.js";
|
|
7
|
-
/** A one-line input with its button: chat, a quick add, a reply. */
|
|
8
8
|
export function Composer({ label, value, onChange, onSubmit, placeholder, button = "Send", busy, maxLength, }) {
|
|
9
9
|
const submit = (e) => {
|
|
10
10
|
e.preventDefault();
|
|
@@ -14,7 +14,6 @@ export function Composer({ label, value, onChange, onSubmit, placeholder, button
|
|
|
14
14
|
};
|
|
15
15
|
return (_jsxs("form", { className: "tk-composer", onSubmit: submit, children: [_jsx(Input, { "aria-label": label, value: value, placeholder: placeholder, maxLength: maxLength, onChange: (e) => onChange(e.target.value) }), _jsx(DarkButton, { type: "submit", disabled: busy || !value.trim(), children: button })] }));
|
|
16
16
|
}
|
|
17
|
-
/** A grey button that opens the file picker. */
|
|
18
17
|
export function FileButton({ label, onFiles, accept = "image/png,image/jpeg,image/webp", multiple, disabled, surface = "white", }) {
|
|
19
18
|
const ref = useRef(null);
|
|
20
19
|
return (_jsxs(_Fragment, { children: [_jsx(GreyButton, { surface: surface, disabled: disabled ?? false, onClick: () => ref.current?.click(), children: label }), _jsx("input", { ref: ref, type: "file", hidden: true, accept: accept, multiple: multiple, onChange: (e) => {
|
|
@@ -22,8 +21,9 @@ export function FileButton({ label, onFiles, accept = "image/png,image/jpeg,imag
|
|
|
22
21
|
e.target.value = "";
|
|
23
22
|
} })] }));
|
|
24
23
|
}
|
|
25
|
-
/** A grid of image thumbnails, each with a Remove button. */
|
|
26
24
|
export function Thumbs({ items, onRemove, removeLabel = "Remove", }) {
|
|
27
|
-
|
|
25
|
+
const [shown, setShown] = useState(null);
|
|
26
|
+
const full = items.find((t) => t.id === shown);
|
|
27
|
+
return (_jsxs(_Fragment, { children: [_jsx("ul", { className: "tk-thumbs", children: items.map((t) => (_jsxs("li", { className: "tk-thumb", children: [_jsx(Button, { variant: "ghost", className: "tk-thumb-open", "aria-label": `Open ${t.alt}`, onClick: () => setShown(t.id), children: _jsx("img", { src: t.src, alt: t.alt, loading: "lazy" }) }), onRemove && (_jsx(Button, { variant: "secondary", size: "icon-xs", className: "tk-thumb-remove", "aria-label": `${removeLabel} ${t.alt}`, onClick: () => onRemove(t.id), children: _jsx(IconX, { "aria-hidden": true }) }))] }, t.id))) }), _jsx(Dialog, { open: !!full, onOpenChange: (open) => !open && setShown(null), children: full && (_jsxs(DialogContent, { className: "w-auto max-w-[95vw] p-2", children: [_jsx(DialogTitle, { className: "sr-only", children: full.alt }), _jsx(DialogDescription, { className: "sr-only", children: "The image at full size." }), _jsx("img", { src: full.src, alt: full.alt, className: "max-h-[85vh] max-w-full rounded-md" })] })) })] }));
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=forms.js.map
|
package/dist/suite/forms.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/suite/forms.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/suite/forms.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAkB,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,MAA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AAG,GACvC,EACR,QAAQ,IAAI,CACX,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,SAAS,EACd,SAAS,EAAC,iBAAiB,gBACf,GAAG,WAAW,IAAI,CAAC,CAAC,GAAG,EAAE,EACrC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,YAE7B,KAAC,KAAK,0BAAe,GACd,CACV,KAnBM,CAAC,CAAC,EAAE,CAoBR,CACN,CAAC,GACC,EACL,KAAC,MAAM,IAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,YAClE,IAAI,IAAI,CACP,MAAC,aAAa,IAAC,SAAS,EAAC,yBAAyB,aAChD,KAAC,WAAW,IAAC,SAAS,EAAC,SAAS,YAAE,IAAI,CAAC,GAAG,GAAe,EACzD,KAAC,iBAAiB,IAAC,SAAS,EAAC,SAAS,wCAA4C,EAClF,cAAK,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,SAAS,EAAC,oCAAoC,GAAG,IACtE,CACjB,GACM,IACR,CACJ,CAAC;AACJ,CAAC"}
|
package/dist/suite/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { Link, type LinkComponent, LinkProvider, type LinkProps, safeFrom, useBa
|
|
|
2
2
|
export { BackLink, Dot, EditFrame, EditLink, Kicker, ListCard, ListRow, PageBody, PageLink, Panel, PrimaryLink, type Progress, ROW_DRAG_TYPE, Row, StatusDot, } from "./page.js";
|
|
3
3
|
export { ActivityRow, Board, CenteredPage, Column, Comment, Facts, Reactions, Thread, } from "./parts.js";
|
|
4
4
|
export { Composer, FileButton, Thumbs } from "./forms.js";
|
|
5
|
-
export { AppShell, type Group, type GroupItem, type NavItem, SideLink, SideSection, } from "./shell.js";
|
|
5
|
+
export { AppShell, type Group, type GroupItem, type NavItem, SIDEBAR_MAX, SIDEBAR_MIN, SideLink, SideSection, } from "./shell.js";
|
|
6
6
|
export { DEFAULT_PROJECT_COLOUR, PROJECT_COLOURS, PROJECT_ICONS, } from "./project-appearance.js";
|
|
7
7
|
export { ColourSwatches, ProjectIcon, ProjectIconPicker } from "./project-icon.js";
|
|
8
8
|
export { type PickerChoice, PropertyPicker, RailRow } from "./pickers.js";
|
|
@@ -13,4 +13,8 @@ export { DueDatePicker, DueIcon, dueLabel, dueState } from "./due-picker.js";
|
|
|
13
13
|
export { AttachButton, FileChip, fileSize, VideoFigure } from "./files.js";
|
|
14
14
|
export { MarkdownText } from "./markdown.js";
|
|
15
15
|
export { AddReactionButton, CommentIconButton, type CommentReactionSummary, CommentReactionChips, EMOJI_CATEGORIES, type EmojiCategory, EmojiPickerPanel, filterEmojiCategories, QUICK_REACTIONS, } from "./emoji.js";
|
|
16
|
+
export { ago, EmptyLine, Field, FormDialog, IconAction, IconAvatar, InlineText, type MenuEntry, PageControls, PageGroup, PageGroups, PageSection, RowMenu, TimeAgo, WorkPage, } from "./work.js";
|
|
17
|
+
export { type FilterChoice, FilterMenu } from "./filters.js";
|
|
18
|
+
export { ENTITY_SUB_LINK, type Entity, type EntityDrop, type EntityLink, EntityNav, type EntityNavProps, } from "./entity-nav.js";
|
|
19
|
+
export { type ChatLine, ChatPane, type ChatStepView, dollars, type ModelChoice, ModelSwitcher, seconds, type StepTokens, Trajectory, usageOf, } from "./chat.js";
|
|
16
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/suite/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/suite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,SAAS,EACd,QAAQ,EACR,SA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,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,aAAa,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,GAAG,EACH,SAAS,EACT,KAAK,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,SAAS,EACd,YAAY,EACZ,SAAS,EACT,UAAU,EACV,WAAW,EACX,OAAO,EACP,OAAO,EACP,QAAQ,GACT,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,KAAK,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,SAAS,EACT,KAAK,cAAc,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,QAAQ,EACb,QAAQ,EACR,KAAK,YAAY,EACjB,OAAO,EACP,KAAK,WAAW,EAChB,aAAa,EACb,OAAO,EACP,KAAK,UAAU,EACf,UAAU,EACV,OAAO,GACR,MAAM,WAAW,CAAC"}
|
package/dist/suite/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
// The suite parts: the app shell and page kit every Kit app shares, built on the ported ui parts.
|
|
2
|
-
// The ui parts themselves are the main entry and @jaetask/toolkit/ui.
|
|
3
1
|
export { Link, LinkProvider, safeFrom, useBackTo, useFromHref, withFrom, } from "./link.js";
|
|
4
2
|
export { BackLink, Dot, EditFrame, EditLink, Kicker, ListCard, ListRow, PageBody, PageLink, Panel, PrimaryLink, ROW_DRAG_TYPE, Row, StatusDot, } from "./page.js";
|
|
5
3
|
export { ActivityRow, Board, CenteredPage, Column, Comment, Facts, Reactions, Thread, } from "./parts.js";
|
|
6
4
|
export { Composer, FileButton, Thumbs } from "./forms.js";
|
|
7
|
-
export { AppShell, SideLink, SideSection, } from "./shell.js";
|
|
5
|
+
export { AppShell, SIDEBAR_MAX, SIDEBAR_MIN, SideLink, SideSection, } from "./shell.js";
|
|
8
6
|
export { DEFAULT_PROJECT_COLOUR, PROJECT_COLOURS, PROJECT_ICONS, } from "./project-appearance.js";
|
|
9
7
|
export { ColourSwatches, ProjectIcon, ProjectIconPicker } from "./project-icon.js";
|
|
10
8
|
export { PropertyPicker, RailRow } from "./pickers.js";
|
|
@@ -15,4 +13,8 @@ export { DueDatePicker, DueIcon, dueLabel, dueState } from "./due-picker.js";
|
|
|
15
13
|
export { AttachButton, FileChip, fileSize, VideoFigure } from "./files.js";
|
|
16
14
|
export { MarkdownText } from "./markdown.js";
|
|
17
15
|
export { AddReactionButton, CommentIconButton, CommentReactionChips, EMOJI_CATEGORIES, EmojiPickerPanel, filterEmojiCategories, QUICK_REACTIONS, } from "./emoji.js";
|
|
16
|
+
export { ago, EmptyLine, Field, FormDialog, IconAction, IconAvatar, InlineText, PageControls, PageGroup, PageGroups, PageSection, RowMenu, TimeAgo, WorkPage, } from "./work.js";
|
|
17
|
+
export { FilterMenu } from "./filters.js";
|
|
18
|
+
export { ENTITY_SUB_LINK, EntityNav, } from "./entity-nav.js";
|
|
19
|
+
export { ChatPane, dollars, ModelSwitcher, seconds, Trajectory, usageOf, } from "./chat.js";
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
package/dist/suite/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/suite/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/suite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEJ,YAAY,EAEZ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,WAAW,CAAC;AACnB,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AgB,EAChB,qBAAqB,EACrB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,GAAG,EACH,SAAS,EACT,KAAK,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EAEV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,WAAW,EACX,OAAO,EACP,OAAO,EACP,QAAQ,GACT,MAAM,WAAW,CAAC;AACnB,OAAO,EAAqB,UAAU,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EACL,eAAe,EAIf,SAAS,GAEV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,QAAQ,EAER,OAAO,EAEP,aAAa,EACb,OAAO,EAEP,UAAU,EACV,OAAO,GACR,MAAM,WAAW,CAAC"}
|
package/dist/suite/link.d.ts
CHANGED
|
@@ -4,20 +4,14 @@ export type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> &
|
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
};
|
|
6
6
|
export type LinkComponent = (props: LinkProps) => ReactNode;
|
|
7
|
-
/** Gives the toolkit the app's router: its link component and its current location. */
|
|
8
7
|
export declare function LinkProvider({ link, location, children, }: {
|
|
9
8
|
link?: LinkComponent;
|
|
10
9
|
location?: string | (() => string);
|
|
11
10
|
children: ReactNode;
|
|
12
11
|
}): import("react").JSX.Element;
|
|
13
|
-
/** The app's link component. */
|
|
14
12
|
export declare function Link(props: LinkProps): import("react").JSX.Element;
|
|
15
|
-
/** `to` with ?from= set to the given location. */
|
|
16
13
|
export declare function withFrom(to: string, from: string): string;
|
|
17
|
-
/** `to` with ?from= set to the current location. */
|
|
18
14
|
export declare function useFromHref(to: string): string;
|
|
19
|
-
/** A ?from= value that is safe to follow: a same-origin path. */
|
|
20
15
|
export declare function safeFrom(from: string | null | undefined): string | null;
|
|
21
|
-
/** Where an edit page's Back goes: the ?from= path when it is safe, else the fallback. */
|
|
22
16
|
export declare function useBackTo(fallback: string): string;
|
|
23
17
|
//# sourceMappingURL=link.d.ts.map
|
package/dist/suite/link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/suite/link.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/suite/link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAiB,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAE7F,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,GAAG;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,SAAS,CAAC;AAkB5D,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;IACnC,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAMA;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,+BAGpC;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAG9C;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAGvE;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAIlD"}
|
package/dist/suite/link.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Links and the way back. Every link the toolkit draws goes through one Link component, so an app
|
|
3
|
-
// with a router (React Router, TanStack) passes its own, and an app without one gets a plain <a>.
|
|
4
|
-
// Edit links carry ?from= so the edit page's Back, Cancel and Save return to the same spot.
|
|
5
2
|
import { createContext, useContext } from "react";
|
|
6
3
|
const PlainLink = ({ href, children, ...rest }) => (_jsx("a", { href: href, ...rest, children: children }));
|
|
7
4
|
const browserLocation = () => typeof window === "undefined" ? "" : window.location.pathname + window.location.search;
|
|
8
5
|
const RoutingContext = createContext({ link: PlainLink, location: browserLocation });
|
|
9
|
-
/** Gives the toolkit the app's router: its link component and its current location. */
|
|
10
6
|
export function LinkProvider({ link, location, children, }) {
|
|
11
7
|
const value = {
|
|
12
8
|
link: link ?? PlainLink,
|
|
@@ -14,29 +10,24 @@ export function LinkProvider({ link, location, children, }) {
|
|
|
14
10
|
};
|
|
15
11
|
return _jsx(RoutingContext.Provider, { value: value, children: children });
|
|
16
12
|
}
|
|
17
|
-
/** The app's link component. */
|
|
18
13
|
export function Link(props) {
|
|
19
14
|
const { link: L } = useContext(RoutingContext);
|
|
20
15
|
return _jsx(L, { ...props });
|
|
21
16
|
}
|
|
22
|
-
/** `to` with ?from= set to the given location. */
|
|
23
17
|
export function withFrom(to, from) {
|
|
24
18
|
if (!from)
|
|
25
19
|
return to;
|
|
26
20
|
return `${to}${to.includes("?") ? "&" : "?"}from=${encodeURIComponent(from)}`;
|
|
27
21
|
}
|
|
28
|
-
/** `to` with ?from= set to the current location. */
|
|
29
22
|
export function useFromHref(to) {
|
|
30
23
|
const { location } = useContext(RoutingContext);
|
|
31
24
|
return withFrom(to, location());
|
|
32
25
|
}
|
|
33
|
-
/** A ?from= value that is safe to follow: a same-origin path. */
|
|
34
26
|
export function safeFrom(from) {
|
|
35
27
|
if (!from)
|
|
36
28
|
return null;
|
|
37
29
|
return from.startsWith("/") && !from.startsWith("//") && !from.includes("\\") ? from : null;
|
|
38
30
|
}
|
|
39
|
-
/** Where an edit page's Back goes: the ?from= path when it is safe, else the fallback. */
|
|
40
31
|
export function useBackTo(fallback) {
|
|
41
32
|
const { location } = useContext(RoutingContext);
|
|
42
33
|
const query = location().split("?")[1] ?? "";
|
package/dist/suite/link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/suite/link.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/suite/link.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA6B,aAAa,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAa7F,MAAM,SAAS,GAAkB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAChE,YAAG,IAAI,EAAE,IAAI,KAAM,IAAI,YACpB,QAAQ,GACP,CACL,CAAC;AAEF,MAAM,eAAe,GAAG,GAAG,EAAE,CAC3B,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;AAEzF,MAAM,cAAc,GAAG,aAAa,CAAU,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;AAE9F,MAAM,UAAU,YAAY,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,QAAQ,GAKT;IACC,MAAM,KAAK,GAAY;QACrB,IAAI,EAAE,IAAI,IAAI,SAAS;QACvB,QAAQ,EAAE,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,eAAe,CAAC;KACxF,CAAC;IACF,OAAO,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAA2B,CAAC;AACrF,CAAC;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Q,CAAC;AACtE,CAAC"}
|
package/dist/suite/links.d.ts
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
/** A link's host without "www.", or "" when the text is not a web address. */
|
|
2
1
|
export declare const linkHost: (url: string) => string;
|
|
3
|
-
/** The name a link's site goes by: a known service, its domain, or "" for no address yet. */
|
|
4
2
|
export declare const knownService: (url: string) => string;
|
|
5
|
-
/** The same, falling back to the domain, then to the text itself. */
|
|
6
3
|
export declare const service: (url: string) => string;
|
|
7
|
-
/** The icon of a link's site: the service's own mark, or a plain link. */
|
|
8
4
|
export declare function ServiceIcon({ url, size, className, }: {
|
|
9
5
|
url: string;
|
|
10
6
|
size?: number;
|
|
11
7
|
className?: string;
|
|
12
8
|
}): import("react").JSX.Element;
|
|
13
|
-
/**
|
|
14
|
-
* The dialog that adds a link to something: its address and, if wanted, what to call it. Its
|
|
15
|
-
* heading shows the site's icon. `onAdd` answers true once the link is added, which closes it.
|
|
16
|
-
*/
|
|
17
9
|
export declare function AddLinkDialog({ to, line, open, onOpenChange, onAdd, }: {
|
|
18
|
-
/** What the link is added to, as the heading names it: "Add link to TLK-3". */
|
|
19
10
|
to: string;
|
|
20
11
|
line?: string;
|
|
21
12
|
open: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/suite/links.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/suite/links.tsx"],"names":[],"mappings":"AA6BA,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,WAMnC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,WAAkC,CAAC;AAC3E,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,WAA8C,CAAC;AAElF,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,IAAS,EACT,SAAS,GACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAoBA;AAED,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,IAAiE,EACjE,IAAI,EACJ,YAAY,EACZ,KAAK,GACN,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACrE,+BAoEA"}
|
package/dist/suite/links.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Links to other sites: the name and icon a site goes by, and the dialog that adds a link.
|
|
3
2
|
import { IconBrandFigma, IconBrandGithub, IconBrandNotion, IconBrandYoutubeFilled, IconLink, } from "@tabler/icons-react";
|
|
4
3
|
import { useState } from "react";
|
|
5
4
|
import { Button } from "../ui/button.js";
|
|
@@ -14,7 +13,6 @@ const SERVICES = {
|
|
|
14
13
|
"linear.app": "Linear",
|
|
15
14
|
"notion.so": "Notion",
|
|
16
15
|
};
|
|
17
|
-
/** A link's host without "www.", or "" when the text is not a web address. */
|
|
18
16
|
export const linkHost = (url) => {
|
|
19
17
|
try {
|
|
20
18
|
return new URL(url).hostname.replace(/^(www|m)\./, "");
|
|
@@ -23,11 +21,8 @@ export const linkHost = (url) => {
|
|
|
23
21
|
return "";
|
|
24
22
|
}
|
|
25
23
|
};
|
|
26
|
-
/** The name a link's site goes by: a known service, its domain, or "" for no address yet. */
|
|
27
24
|
export const knownService = (url) => SERVICES[linkHost(url)] ?? "";
|
|
28
|
-
/** The same, falling back to the domain, then to the text itself. */
|
|
29
25
|
export const service = (url) => knownService(url) || linkHost(url) || url;
|
|
30
|
-
/** The icon of a link's site: the service's own mark, or a plain link. */
|
|
31
26
|
export function ServiceIcon({ url, size = 14, className, }) {
|
|
32
27
|
const name = knownService(url);
|
|
33
28
|
if (name === "YouTube") {
|
|
@@ -42,10 +37,6 @@ export function ServiceIcon({ url, size = 14, className, }) {
|
|
|
42
37
|
: IconLink;
|
|
43
38
|
return _jsx(Icon, { size: size, "aria-hidden": true, className: `text-muted-foreground ${className ?? ""}` });
|
|
44
39
|
}
|
|
45
|
-
/**
|
|
46
|
-
* The dialog that adds a link to something: its address and, if wanted, what to call it. Its
|
|
47
|
-
* heading shows the site's icon. `onAdd` answers true once the link is added, which closes it.
|
|
48
|
-
*/
|
|
49
40
|
export function AddLinkDialog({ to, line = "A web address that belongs here, such as a pull request.", open, onOpenChange, onAdd, }) {
|
|
50
41
|
const [url, setUrl] = useState("");
|
|
51
42
|
const [title, setTitle] = useState("");
|
package/dist/suite/links.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.js","sourceRoot":"","sources":["../../src/suite/links.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"links.js","sourceRoot":"","sources":["../../src/suite/links.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EACL,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,QAAQ,GAA2B;IACvC,aAAa,EAAE,SAAS;IACx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I,EAAC,QAAQ,EAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,yBAElC,IACI,IACV,GACO,CACjB,GACM,CACV,CAAC;AACJ,CAAC"}
|
package/dist/suite/markdown.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/suite/markdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/suite/markdown.tsx"],"names":[],"mappings":"AAyFA,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAe3F"}
|
package/dist/suite/markdown.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Markdown shown as text: a comment or a description, with headings, lists, code and pictures.
|
|
3
2
|
import ReactMarkdown, { defaultUrlTransform } from "react-markdown";
|
|
4
3
|
import remarkGfm from "remark-gfm";
|
|
5
4
|
import { cn } from "../utils.js";
|
|
@@ -24,7 +23,6 @@ const ELEMENTS = [
|
|
|
24
23
|
"strong",
|
|
25
24
|
"ul",
|
|
26
25
|
];
|
|
27
|
-
/** True for a picture the page may load: one served by the app itself. */
|
|
28
26
|
const ownPicture = (src) => src.startsWith("/") && !src.startsWith("//");
|
|
29
27
|
const components = {
|
|
30
28
|
a: ({ children, href }) => {
|
|
@@ -33,8 +31,6 @@ const components = {
|
|
|
33
31
|
return _jsx(_Fragment, { children: children });
|
|
34
32
|
return (_jsx("a", { href: safe, target: "_blank", rel: "noopener noreferrer", className: "text-primary underline-offset-2 hover:underline", children: children }));
|
|
35
33
|
},
|
|
36
|
-
// A picture from the app is shown; one from elsewhere is a link, so opening a page asks no
|
|
37
|
-
// other site for anything.
|
|
38
34
|
img: ({ src, alt }) => {
|
|
39
35
|
const from = typeof src === "string" ? src : "";
|
|
40
36
|
if (ownPicture(from)) {
|
|
@@ -55,10 +51,7 @@ const components = {
|
|
|
55
51
|
blockquote: ({ children }) => (_jsx("blockquote", { className: "m-0 border-l-2 ps-3 text-muted-foreground", children: children })),
|
|
56
52
|
hr: () => _jsx("hr", { className: "my-3" }),
|
|
57
53
|
};
|
|
58
|
-
/** Markdown as it reads: paragraphs, headings, lists, code, links and the app's own pictures. */
|
|
59
54
|
export function MarkdownText({ content, className }) {
|
|
60
|
-
return (_jsx("div", { className: cn("grid gap-2 break-words", className), children: _jsx(ReactMarkdown, { allowedElements: ELEMENTS, components: components, remarkPlugins: [remarkGfm], skipHtml: true, unwrapDisallowed: true,
|
|
61
|
-
// A picture's address is judged in `img` above; here it only has to pass through.
|
|
62
|
-
urlTransform: (url, key) => (key === "src" ? url : defaultUrlTransform(url)), children: content }) }));
|
|
55
|
+
return (_jsx("div", { className: cn("grid gap-2 break-words", className), children: _jsx(ReactMarkdown, { allowedElements: ELEMENTS, components: components, remarkPlugins: [remarkGfm], skipHtml: true, unwrapDisallowed: true, urlTransform: (url, key) => (key === "src" ? url : defaultUrlTransform(url)), children: content }) }));
|
|
63
56
|
}
|
|
64
57
|
//# sourceMappingURL=markdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../src/suite/markdown.tsx"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../src/suite/markdown.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,EAAE,EAAmB,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,MAAM,QAAQ,GAAG;IACf,GAAG;IACH,YAAY;IACZ,IAAI;IACJ,MAAM;IACN,KAAK;IACL,IAAI;IAC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AAE,CAAC,aAAI,SAAS,EAAC,8BAA8B,YAAE,QAAQ,GAAM;IAClF,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC5B,qBAAY,SAAS,EAAC,2CAA2C,YAAE,QAAQ,GAAc,CAC1F;IACD,EAAE,EAAE,GAAG,EAAE,CAAC,aAAI,SAAS,EAAC,MAAM,GAAG;CAClC,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAA2C;IAC1F,OAAO,CACL,cAAK,SAAS,EAAE,EAAE,CAAC,wBAAwB,EAAE,SAAS,CAAC,YACrD,KAAC,aAAa,IACZ,eAAe,EAAE,QAAQ,EACzB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,CAAC,SAAS,CAAC,EAC1B,QAAQ,QACR,gBAAgB,QAChB,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,YAE3E,OAAO,GACM,GACZ,CACP,CAAC;AACJ,CAAC"}
|
package/dist/suite/page.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import { type Surface } from "./controls.js";
|
|
3
|
-
/**
|
|
4
|
-
* A page: title, one line, the one primary action on the right, then stacked panels. Pages sit at
|
|
5
|
-
* one reading width; `wide` lets the content use the whole width, for a board of many columns.
|
|
6
|
-
*/
|
|
7
3
|
export declare function PageBody({ title, line, action, wide, children, }: {
|
|
8
4
|
title: string;
|
|
9
5
|
line?: ReactNode;
|
|
@@ -11,7 +7,6 @@ export declare function PageBody({ title, line, action, wide, children, }: {
|
|
|
11
7
|
wide?: boolean;
|
|
12
8
|
children: ReactNode;
|
|
13
9
|
}): import("react").JSX.Element;
|
|
14
|
-
/** A section: warm grey panel, title, one line on what it holds, at most one action on the right. */
|
|
15
10
|
export declare function Panel({ id, title, line, action, children, }: {
|
|
16
11
|
id: string;
|
|
17
12
|
title: string;
|
|
@@ -19,43 +14,32 @@ export declare function Panel({ id, title, line, action, children, }: {
|
|
|
19
14
|
action?: ReactNode;
|
|
20
15
|
children: ReactNode;
|
|
21
16
|
}): import("react").JSX.Element;
|
|
22
|
-
/** A small-caps label above a value inside a card. */
|
|
23
17
|
export declare function Kicker({ children }: {
|
|
24
18
|
children: ReactNode;
|
|
25
19
|
}): import("react").JSX.Element;
|
|
26
|
-
/** A grey button that opens another page and remembers this one as ?from=. */
|
|
27
20
|
export declare function PageLink({ to, children, disabled, surface, }: {
|
|
28
21
|
to: string;
|
|
29
22
|
children: ReactNode;
|
|
30
23
|
disabled?: boolean;
|
|
31
24
|
surface?: Surface;
|
|
32
25
|
}): import("react").JSX.Element;
|
|
33
|
-
/** A panel's one Edit button: opens that section's own edit page. */
|
|
34
26
|
export declare function EditLink({ to, label, disabled, }: {
|
|
35
27
|
to: string;
|
|
36
28
|
label?: string;
|
|
37
29
|
disabled?: boolean;
|
|
38
30
|
}): import("react").JSX.Element;
|
|
39
|
-
/** The page's one dark button. */
|
|
40
31
|
export declare function PrimaryLink({ to, children }: {
|
|
41
32
|
to: string;
|
|
42
33
|
children: ReactNode;
|
|
43
34
|
}): import("react").JSX.Element;
|
|
44
|
-
/** Back to where you came from: the same pill on every page that has one. */
|
|
45
35
|
export declare function BackLink({ to }: {
|
|
46
36
|
to: string;
|
|
47
37
|
}): import("react").JSX.Element;
|
|
48
|
-
/** A list: one white card of divided rows. */
|
|
49
38
|
export declare function ListCard({ children, as, }: {
|
|
50
39
|
children: ReactNode;
|
|
51
40
|
as?: "ul" | "ol" | "div";
|
|
52
41
|
}): import("react").JSX.Element;
|
|
53
|
-
/** The drag type the toolkit uses for rows; Column reads it on drop. */
|
|
54
42
|
export declare const ROW_DRAG_TYPE = "application/x-tk-row";
|
|
55
|
-
/**
|
|
56
|
-
* One list row. With `to`, the row opens its own page. With `dragId`, the row can be dragged onto
|
|
57
|
-
* a Column. `blocked` marks it as waiting on something, with a word you can change.
|
|
58
|
-
*/
|
|
59
43
|
export declare function ListRow({ to, children, aside, as, dragId, blocked, blockedLabel, }: {
|
|
60
44
|
to?: string;
|
|
61
45
|
children: ReactNode;
|
|
@@ -66,19 +50,13 @@ export declare function ListRow({ to, children, aside, as, dragId, blocked, bloc
|
|
|
66
50
|
blockedLabel?: string;
|
|
67
51
|
}): import("react").JSX.Element;
|
|
68
52
|
export type Progress = "not-started" | "in-progress" | "done";
|
|
69
|
-
/** A bare status dot, for sidebars and tight rows. */
|
|
70
53
|
export declare function Dot({ status }: {
|
|
71
54
|
status: Progress;
|
|
72
55
|
}): import("react").JSX.Element;
|
|
73
|
-
/** Status as a dot and a word: grey not started, orange in progress, green done. Never red. */
|
|
74
56
|
export declare function StatusDot({ status, label }: {
|
|
75
57
|
status: Progress;
|
|
76
58
|
label?: string;
|
|
77
59
|
}): import("react").JSX.Element;
|
|
78
|
-
/**
|
|
79
|
-
* One edit page: title and Back, a white card of labelled Rows, then Cancel and Save. Without
|
|
80
|
-
* onSave (changes save as you go) the bar shows Done.
|
|
81
|
-
*/
|
|
82
60
|
export declare function EditFrame({ title, line, backTo, children, onSave, busy, saveLabel, extra, }: {
|
|
83
61
|
title: string;
|
|
84
62
|
line?: ReactNode;
|
|
@@ -89,7 +67,6 @@ export declare function EditFrame({ title, line, backTo, children, onSave, busy,
|
|
|
89
67
|
saveLabel?: string;
|
|
90
68
|
extra?: ReactNode;
|
|
91
69
|
}): import("react").JSX.Element;
|
|
92
|
-
/** A labelled row on an edit page: label and one line on the left, the inputs on the right. */
|
|
93
70
|
export declare function Row({ title, line, htmlFor, children, }: {
|
|
94
71
|
title: string;
|
|
95
72
|
line?: string;
|
package/dist/suite/page.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/suite/page.tsx"],"names":[],"mappings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QAAQ,EACR,MAAM,EACN,IAAI,EACJ,SAAkB,EAClB,KAAK,GACN,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,+BA8BA;AAED,wBAAgB,GAAG,CAAC,EAClB,KAAK,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAgBA"}
|
package/dist/suite/page.js
CHANGED
|
@@ -2,18 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Link, useFromHref } from "./link.js";
|
|
3
3
|
import { Badge } from "../ui/badge.js";
|
|
4
4
|
import { DarkButton, GreyButton } from "./controls.js";
|
|
5
|
-
/**
|
|
6
|
-
* A page: title, one line, the one primary action on the right, then stacked panels. Pages sit at
|
|
7
|
-
* one reading width; `wide` lets the content use the whole width, for a board of many columns.
|
|
8
|
-
*/
|
|
9
5
|
export function PageBody({ title, line, action, wide, children, }) {
|
|
10
6
|
return (_jsxs("div", { className: "tk-page", "data-wide": wide ? "true" : undefined, children: [_jsxs("div", { className: "tk-page-head", children: [_jsxs("div", { children: [_jsx("h1", { className: "tk-page-title", children: title }), line && _jsx("p", { className: "tk-page-line", children: line })] }), action] }), children] }));
|
|
11
7
|
}
|
|
12
|
-
/** A section: warm grey panel, title, one line on what it holds, at most one action on the right. */
|
|
13
8
|
export function Panel({ id, title, line, action, children, }) {
|
|
14
9
|
return (_jsxs("section", { id: id, "aria-labelledby": `${id}-title`, className: "tk-panel", children: [_jsxs("div", { className: "tk-panel-head", children: [_jsxs("div", { children: [_jsx("h2", { id: `${id}-title`, className: "tk-panel-title", children: title }), line && _jsx("p", { className: "tk-panel-line", children: line })] }), action] }), children] }));
|
|
15
10
|
}
|
|
16
|
-
/** A small-caps label above a value inside a card. */
|
|
17
11
|
export function Kicker({ children }) {
|
|
18
12
|
return _jsx("span", { className: "tk-kicker", children: children });
|
|
19
13
|
}
|
|
@@ -22,35 +16,25 @@ function ButtonLink({ href, variant = "grey", surface = "panel", disabled, child
|
|
|
22
16
|
return disabled ? (_jsx(DarkButton, { disabled: true, children: children })) : (_jsx(DarkButton, { asChild: true, children: _jsx(Link, { href: href, children: children }) }));
|
|
23
17
|
return disabled ? (_jsx(GreyButton, { surface: surface, disabled: true, children: children })) : (_jsx(GreyButton, { surface: surface, asChild: true, children: _jsx(Link, { href: href, children: children }) }));
|
|
24
18
|
}
|
|
25
|
-
/** A grey button that opens another page and remembers this one as ?from=. */
|
|
26
19
|
export function PageLink({ to, children, disabled, surface, }) {
|
|
27
20
|
const href = useFromHref(to);
|
|
28
21
|
return (_jsx(ButtonLink, { href: href, surface: surface ?? "panel", disabled: disabled ?? false, children: children }));
|
|
29
22
|
}
|
|
30
|
-
/** A panel's one Edit button: opens that section's own edit page. */
|
|
31
23
|
export function EditLink({ to, label = "Edit", disabled, }) {
|
|
32
24
|
return (_jsx(PageLink, { to: to, disabled: disabled ?? false, children: label }));
|
|
33
25
|
}
|
|
34
|
-
/** The page's one dark button. */
|
|
35
26
|
export function PrimaryLink({ to, children }) {
|
|
36
27
|
const href = useFromHref(to);
|
|
37
28
|
return (_jsx(ButtonLink, { href: href, variant: "primary", children: children }));
|
|
38
29
|
}
|
|
39
|
-
/** Back to where you came from: the same pill on every page that has one. */
|
|
40
30
|
export function BackLink({ to }) {
|
|
41
31
|
return (_jsx(ButtonLink, { href: to, surface: "white", children: "Back" }));
|
|
42
32
|
}
|
|
43
|
-
/** A list: one white card of divided rows. */
|
|
44
33
|
export function ListCard({ children, as = "ul", }) {
|
|
45
34
|
const Tag = as;
|
|
46
35
|
return _jsx(Tag, { className: "tk-list", children: children });
|
|
47
36
|
}
|
|
48
|
-
/** The drag type the toolkit uses for rows; Column reads it on drop. */
|
|
49
37
|
export const ROW_DRAG_TYPE = "application/x-tk-row";
|
|
50
|
-
/**
|
|
51
|
-
* One list row. With `to`, the row opens its own page. With `dragId`, the row can be dragged onto
|
|
52
|
-
* a Column. `blocked` marks it as waiting on something, with a word you can change.
|
|
53
|
-
*/
|
|
54
38
|
export function ListRow({ to, children, aside, as = "li", dragId, blocked, blockedLabel = "Blocked", }) {
|
|
55
39
|
const href = useFromHref(to ?? "");
|
|
56
40
|
const Tag = as;
|
|
@@ -70,22 +54,15 @@ const WORD = {
|
|
|
70
54
|
"in-progress": "In progress",
|
|
71
55
|
done: "Done",
|
|
72
56
|
};
|
|
73
|
-
/** A bare status dot, for sidebars and tight rows. */
|
|
74
57
|
export function Dot({ status }) {
|
|
75
58
|
return _jsx("span", { "aria-hidden": true, className: "tk-dot", "data-status": status });
|
|
76
59
|
}
|
|
77
|
-
/** Status as a dot and a word: grey not started, orange in progress, green done. Never red. */
|
|
78
60
|
export function StatusDot({ status, label }) {
|
|
79
61
|
return (_jsxs("span", { className: "tk-status", children: [_jsx(Dot, { status: status }), label ?? WORD[status]] }));
|
|
80
62
|
}
|
|
81
|
-
/**
|
|
82
|
-
* One edit page: title and Back, a white card of labelled Rows, then Cancel and Save. Without
|
|
83
|
-
* onSave (changes save as you go) the bar shows Done.
|
|
84
|
-
*/
|
|
85
63
|
export function EditFrame({ title, line, backTo, children, onSave, busy, saveLabel = "Save", extra, }) {
|
|
86
64
|
return (_jsxs("div", { className: "tk-edit", children: [_jsxs("div", { className: "tk-page-head", children: [_jsxs("div", { children: [_jsx("h1", { className: "tk-page-title", children: title }), line && _jsx("p", { className: "tk-page-line", children: line })] }), _jsx(BackLink, { to: backTo })] }), _jsx("div", { className: "tk-edit-card", children: children }), _jsxs("div", { className: "tk-edit-bar", children: [extra && _jsx("span", { className: "tk-edit-extra", children: extra }), onSave ? (_jsxs(_Fragment, { children: [_jsx(ButtonLink, { href: backTo, surface: "white", children: "Cancel" }), _jsx(DarkButton, { disabled: busy ?? false, onClick: onSave, children: busy ? "Saving…" : saveLabel })] })) : (_jsx(ButtonLink, { href: backTo, variant: "primary", children: "Done" }))] })] }));
|
|
87
65
|
}
|
|
88
|
-
/** A labelled row on an edit page: label and one line on the left, the inputs on the right. */
|
|
89
66
|
export function Row({ title, line, htmlFor, children, }) {
|
|
90
67
|
return (_jsxs("div", { className: "tk-row", children: [_jsxs("div", { className: "tk-row-label", children: [htmlFor ? (_jsx("label", { htmlFor: htmlFor, className: "tk-row-title", children: title })) : (_jsx("span", { className: "tk-row-title", children: title })), line && _jsx("span", { className: "tk-row-line", children: line })] }), _jsx("div", { className: "tk-row-fields", children: children })] }));
|
|
91
68
|
}
|
package/dist/suite/page.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../src/suite/page.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../src/suite/page.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAgB,MAAM,eAAe,CAAC;AAErE,MAAM,UAAU,QAAQ,CAAC,EACvB,KAAK,EACL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,QAAQ,GAOT;IACC,OAAO,CACL,eAAK,SAAS,EAAC,SAAS,eAAY,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,aAC3D,eAAK,SAAS,EAAC,cAAc,aAC3B,0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