@luci-dev/ui 0.0.0-stage → 0.5.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/LICENSE +21 -0
- package/dist/about.d.ts +10 -0
- package/dist/about.d.ts.map +1 -0
- package/dist/about.js +10 -0
- package/dist/about.js.map +1 -0
- package/dist/components.d.ts +80 -0
- package/dist/components.d.ts.map +1 -0
- package/dist/components.js +59 -0
- package/dist/components.js.map +1 -0
- package/dist/copy.d.ts +88 -0
- package/dist/copy.d.ts.map +1 -0
- package/dist/copy.js +64 -0
- package/dist/copy.js.map +1 -0
- package/dist/fonts.d.ts +4 -0
- package/dist/fonts.d.ts.map +1 -0
- package/dist/fonts.data.d.ts +18 -0
- package/dist/fonts.data.d.ts.map +1 -0
- package/dist/fonts.data.js +23 -0
- package/dist/fonts.data.js.map +1 -0
- package/dist/fonts.js +38 -0
- package/dist/fonts.js.map +1 -0
- package/dist/icon.d.ts +14 -0
- package/dist/icon.d.ts.map +1 -0
- package/dist/icon.js +12 -0
- package/dist/icon.js.map +1 -0
- package/dist/icons.d.ts +52 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +53 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/mascot/art.d.ts +46 -0
- package/dist/mascot/art.d.ts.map +1 -0
- package/dist/mascot/art.js +47 -0
- package/dist/mascot/art.js.map +1 -0
- package/dist/mascot/mascot.d.ts +37 -0
- package/dist/mascot/mascot.d.ts.map +1 -0
- package/dist/mascot/mascot.js +72 -0
- package/dist/mascot/mascot.js.map +1 -0
- package/dist/shortcuts.d.ts +12 -0
- package/dist/shortcuts.d.ts.map +1 -0
- package/dist/shortcuts.js +38 -0
- package/dist/shortcuts.js.map +1 -0
- package/dist/styles.d.ts +5 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +236 -0
- package/dist/styles.js.map +1 -0
- package/dist/tokens.d.ts +174 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +222 -0
- package/dist/tokens.js.map +1 -0
- package/package.json +22 -3
- package/src/tokens.css +200 -0
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lucas
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/about.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Luci's version and where its code lives, for the "v0.3.0" button in every menu.
|
|
3
|
+
*
|
|
4
|
+
* LUCI_VERSION is the one version of Luci: the root package.json and the shipped packages (the luci
|
|
5
|
+
* CLI, the extension, luci-mcp) say the same, and a test checks it. Bump them together.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LUCI_VERSION = "0.3.0";
|
|
8
|
+
/** The public repository. Null until it is published: the button then shows the version, without a link. */
|
|
9
|
+
export declare const LUCI_REPO_URL: string | null;
|
|
10
|
+
//# sourceMappingURL=about.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about.d.ts","sourceRoot":"","sources":["../src/about.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,YAAY,UAAU,CAAC;AAEpC,4GAA4G;AAC5G,eAAO,MAAM,aAAa,EAAE,MAAM,GAAG,IAAW,CAAC"}
|
package/dist/about.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Luci's version and where its code lives, for the "v0.3.0" button in every menu.
|
|
3
|
+
*
|
|
4
|
+
* LUCI_VERSION is the one version of Luci: the root package.json and the shipped packages (the luci
|
|
5
|
+
* CLI, the extension, luci-mcp) say the same, and a test checks it. Bump them together.
|
|
6
|
+
*/
|
|
7
|
+
export const LUCI_VERSION = '0.3.0';
|
|
8
|
+
/** The public repository. Null until it is published: the button then shows the version, without a link. */
|
|
9
|
+
export const LUCI_REPO_URL = null;
|
|
10
|
+
//# sourceMappingURL=about.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about.js","sourceRoot":"","sources":["../src/about.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC;AAEpC,4GAA4G;AAC5G,MAAM,CAAC,MAAM,aAAa,GAAkB,IAAI,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/** Shared components (brand/DESIGN.md section 6). */
|
|
2
|
+
import type { ComponentChildren, JSX } from 'preact';
|
|
3
|
+
import { type LucideIcon } from './icons.js';
|
|
4
|
+
import { type MascotPose } from './mascot/mascot.js';
|
|
5
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'link';
|
|
6
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
7
|
+
export type ButtonProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, 'size' | 'icon' | 'label' | 'type'> & {
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
/** Default: the surface's size (sm on Luci's compact panels, md elsewhere). */
|
|
10
|
+
size?: ButtonSize;
|
|
11
|
+
icon?: LucideIcon;
|
|
12
|
+
/**
|
|
13
|
+
* Icon-only: the label becomes the accessible name and the tooltip, never shown as text. `tip`
|
|
14
|
+
* adds to the tooltip (a shortcut, for example).
|
|
15
|
+
*/
|
|
16
|
+
iconOnly?: boolean;
|
|
17
|
+
label?: string;
|
|
18
|
+
tip?: string;
|
|
19
|
+
tipAbove?: boolean;
|
|
20
|
+
/** Alignment: 'left' anchors tooltip left edge to button (expands rightward); 'right' anchors right edge; default centered. */
|
|
21
|
+
tipAlign?: 'left' | 'right' | 'center';
|
|
22
|
+
/** Working: aria-busy, and a click does nothing until it is done. */
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
/** Its single-key shortcut ("C"): shown in the tooltip and as aria-keyshortcuts (the surface runs it with useShortcuts). */
|
|
25
|
+
shortcut?: string;
|
|
26
|
+
/** A small count on an icon-only button (notes, planned changes). */
|
|
27
|
+
badge?: number | string;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
type?: 'button' | 'submit';
|
|
30
|
+
class?: string;
|
|
31
|
+
children?: ComponentChildren;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A button: one of the kit's variants and sizes, with an optional icon. Icon-only buttons always
|
|
35
|
+
* carry an aria-label and a tooltip (DESIGN.md section 7).
|
|
36
|
+
*/
|
|
37
|
+
export declare function Button(props: ButtonProps): JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* GitHub's mark and Luci's version ("v0.3.0"), top right in every menu. A link to the repository once
|
|
40
|
+
* it is public (LUCI_REPO_URL); until then the same pill, saying the link is coming.
|
|
41
|
+
*/
|
|
42
|
+
export declare function RepoButton(): JSX.Element;
|
|
43
|
+
export type SelectProps = Omit<JSX.SelectHTMLAttributes<HTMLSelectElement>, 'class'> & {
|
|
44
|
+
class?: string;
|
|
45
|
+
children?: ComponentChildren;
|
|
46
|
+
};
|
|
47
|
+
/** A select with the kit's chevron (the approved Lucide icon), always 12 px from its edge. */
|
|
48
|
+
export declare function Select(props: SelectProps): JSX.Element;
|
|
49
|
+
export type Status = 'success' | 'warning' | 'danger' | 'info';
|
|
50
|
+
/**
|
|
51
|
+
* A status message: tinted fill, the status icon and title in the status colour, one line of
|
|
52
|
+
* detail (status is never colour alone: the icon and the words say it). `pose` puts Luci there
|
|
53
|
+
* instead of the icon, for the moments the kit gives him (BRAND.md section 5).
|
|
54
|
+
*/
|
|
55
|
+
export declare function StatusMessage(props: {
|
|
56
|
+
status: Status;
|
|
57
|
+
title: string;
|
|
58
|
+
children?: ComponentChildren;
|
|
59
|
+
pose?: MascotPose;
|
|
60
|
+
toast?: boolean;
|
|
61
|
+
part?: string;
|
|
62
|
+
}): JSX.Element;
|
|
63
|
+
/** An empty state: Luci (Watching by default), a title, one line, an optional action. */
|
|
64
|
+
export declare function EmptyState(props: {
|
|
65
|
+
title: string;
|
|
66
|
+
body?: string;
|
|
67
|
+
pose?: MascotPose;
|
|
68
|
+
size?: number;
|
|
69
|
+
children?: ComponentChildren;
|
|
70
|
+
part?: string;
|
|
71
|
+
}): JSX.Element;
|
|
72
|
+
export declare function Badge(props: {
|
|
73
|
+
children: ComponentChildren;
|
|
74
|
+
brand?: boolean;
|
|
75
|
+
}): JSX.Element;
|
|
76
|
+
export declare function Count(props: {
|
|
77
|
+
n: number;
|
|
78
|
+
label?: string;
|
|
79
|
+
}): JSX.Element;
|
|
80
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|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AAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,eAEzD"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
|
+
import { Icon } from './icon.js';
|
|
3
|
+
import { ICON_SVG, IconChevron, IconError, IconInfo, IconSuccess, IconWarning } from './icons.js';
|
|
4
|
+
import { LUCI_REPO_URL, LUCI_VERSION } from './about.js';
|
|
5
|
+
import { COPY } from './copy.js';
|
|
6
|
+
import { Mascot } from './mascot/mascot.js';
|
|
7
|
+
/**
|
|
8
|
+
* A button: one of the kit's variants and sizes, with an optional icon. Icon-only buttons always
|
|
9
|
+
* carry an aria-label and a tooltip (DESIGN.md section 7).
|
|
10
|
+
*/
|
|
11
|
+
export function Button(props) {
|
|
12
|
+
const { variant = 'ghost', size, icon, iconOnly, label, tip, tipAbove, tipAlign, loading, shortcut, badge, class: extra, children, type = 'button', onClick, ...rest } = props;
|
|
13
|
+
const iconSize = size === 'lg' ? 'toolbar' : size === 'md' ? 'content' : 'compact';
|
|
14
|
+
const cls = [
|
|
15
|
+
`btn-${variant}`,
|
|
16
|
+
size ? `btn-${size}` : '',
|
|
17
|
+
iconOnly ? 'btn-icon' : icon ? 'btn-with-ico' : '',
|
|
18
|
+
extra ?? ''
|
|
19
|
+
].filter(Boolean).join(' ');
|
|
20
|
+
const name = label ?? (typeof children === 'string' ? children : undefined);
|
|
21
|
+
const tipText = iconOnly ? [name, tip, shortcut].filter(Boolean).join(' ') : [tip, shortcut].filter(Boolean).join(' ') || undefined;
|
|
22
|
+
return (_jsxs("button", { type: type, class: cls, ...(iconOnly && name ? { 'aria-label': name } : {}), ...(shortcut ? { 'aria-keyshortcuts': shortcut } : {}), ...(tipText ? { 'data-tip': tipText } : {}), ...(tipText && tipAbove ? { 'data-tip-pos': 'above' } : {}), ...(tipText && tipAlign && tipAlign !== 'center' ? { 'data-tip-align': tipAlign } : {}), ...(loading ? { 'aria-busy': 'true' } : {}), onClick: loading ? undefined : onClick, ...rest, children: [icon && _jsx(Icon, { icon: icon, size: iconSize }), !iconOnly && (children ?? label), badge !== undefined && badge !== '' && badge !== 0 && _jsx("span", { class: "btn-badge", "aria-hidden": "true", children: badge })] }));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* GitHub's mark and Luci's version ("v0.3.0"), top right in every menu. A link to the repository once
|
|
26
|
+
* it is public (LUCI_REPO_URL); until then the same pill, saying the link is coming.
|
|
27
|
+
*/
|
|
28
|
+
export function RepoButton() {
|
|
29
|
+
const inner = (_jsxs(_Fragment, { children: [_jsx("span", { class: "gh-mark", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: ICON_SVG.github } }), _jsxs("span", { class: "repo-version", children: ["v", LUCI_VERSION] })] }));
|
|
30
|
+
return LUCI_REPO_URL
|
|
31
|
+
? _jsx("a", { class: "repo-btn", "data-part": "repo", href: LUCI_REPO_URL, target: "_blank", rel: "noopener noreferrer", "aria-label": `${COPY.repo.link}, version ${LUCI_VERSION}`, "data-tip": COPY.repo.link, children: inner })
|
|
32
|
+
: _jsx("span", { class: "repo-btn", "data-part": "repo", role: "img", "aria-label": `Luci version ${LUCI_VERSION}. ${COPY.repo.soon}`, "data-tip": COPY.repo.soon, children: inner });
|
|
33
|
+
}
|
|
34
|
+
/** A select with the kit's chevron (the approved Lucide icon), always 12 px from its edge. */
|
|
35
|
+
export function Select(props) {
|
|
36
|
+
const { class: extra, children, ...rest } = props;
|
|
37
|
+
return (_jsxs("span", { class: `select${extra ? ` ${extra}` : ''}`, children: [_jsx("select", { ...rest, children: children }), _jsx(Icon, { icon: IconChevron, size: "compact" })] }));
|
|
38
|
+
}
|
|
39
|
+
const STATUS_ICON = { success: IconSuccess, warning: IconWarning, danger: IconError, info: IconInfo };
|
|
40
|
+
/**
|
|
41
|
+
* A status message: tinted fill, the status icon and title in the status colour, one line of
|
|
42
|
+
* detail (status is never colour alone: the icon and the words say it). `pose` puts Luci there
|
|
43
|
+
* instead of the icon, for the moments the kit gives him (BRAND.md section 5).
|
|
44
|
+
*/
|
|
45
|
+
export function StatusMessage(props) {
|
|
46
|
+
const role = props.status === 'danger' || props.status === 'warning' ? 'alert' : 'status';
|
|
47
|
+
return (_jsxs("div", { class: `status-msg ${props.status}${props.toast ? ' toast' : ''}`, role: role, ...(props.part ? { 'data-part': props.part } : {}), children: [props.pose ? _jsx(Mascot, { pose: props.pose, size: 48 }) : _jsx(Icon, { icon: STATUS_ICON[props.status] }), _jsxs("div", { class: "status-body", children: [_jsx("p", { class: "status-title", children: props.title }), props.children !== undefined && _jsx("div", { class: "status-detail", children: props.children })] })] }));
|
|
48
|
+
}
|
|
49
|
+
/** An empty state: Luci (Watching by default), a title, one line, an optional action. */
|
|
50
|
+
export function EmptyState(props) {
|
|
51
|
+
return (_jsxs("div", { class: "empty", ...(props.part ? { 'data-part': props.part } : {}), children: [_jsx(Mascot, { pose: props.pose ?? 'peek', size: props.size ?? 120 }), _jsx("p", { class: "t-title", children: props.title }), props.body && _jsx("p", { children: props.body }), props.children] }));
|
|
52
|
+
}
|
|
53
|
+
export function Badge(props) {
|
|
54
|
+
return _jsx("span", { class: props.brand ? 'badge brand' : 'badge', children: props.children });
|
|
55
|
+
}
|
|
56
|
+
export function Count(props) {
|
|
57
|
+
return _jsx("span", { class: "count", ...(props.label ? { 'aria-label': props.label } : {}), children: props.n });
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAiB,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAmB,MAAM,YAAY,CAAC;AACnH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MA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K,CAAC,IAAI,IAAI,GAAG,GAAI,EAC/D,YAAG,KAAK,EAAC,SAAS,YAAE,KAAK,CAAC,KAAK,GAAK,EACnC,KAAK,CAAC,IAAI,IAAI,sBAAI,KAAK,CAAC,IAAI,GAAK,EACjC,KAAK,CAAC,QAAQ,IACX,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,KAAuD;IAC3E,OAAO,eAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,YAAG,KAAK,CAAC,QAAQ,GAAQ,CAAC;AACrF,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,KAAoC;IACxD,OAAO,eAAM,KAAK,EAAC,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,YAAG,KAAK,CAAC,CAAC,GAAQ,CAAC;AACtG,CAAC"}
|
package/dist/copy.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User-facing words for Luci's surfaces (brand/BRAND.md section 2): short sentences, facts before
|
|
3
|
+
* feelings, numbers over adjectives, no exclamation marks, emoji, "oops", "yay" or "buddy". A test
|
|
4
|
+
* checks every string here.
|
|
5
|
+
*/
|
|
6
|
+
declare const items: (n: number) => string;
|
|
7
|
+
export declare const COPY: {
|
|
8
|
+
readonly common: {
|
|
9
|
+
readonly ready: 'Luci is ready. Pick something.';
|
|
10
|
+
readonly done: (n: number, total: number) => string;
|
|
11
|
+
readonly copied: 'Copied';
|
|
12
|
+
readonly close: 'Close Luci';
|
|
13
|
+
readonly menu: 'Menu';
|
|
14
|
+
readonly settings: 'Settings';
|
|
15
|
+
readonly help: 'How it works';
|
|
16
|
+
};
|
|
17
|
+
readonly capture: {
|
|
18
|
+
readonly title: 'DESIGN.md Extractor';
|
|
19
|
+
readonly byline: 'by Luci';
|
|
20
|
+
readonly description: 'Pick anything on a page. Get a design file your agent can build from.';
|
|
21
|
+
readonly devTitle: 'Luci';
|
|
22
|
+
readonly devByline: 'Dev toolbar';
|
|
23
|
+
readonly devDescription: 'Notes, layout plans and captures for your agent. Saved in your project.';
|
|
24
|
+
readonly greeting: {
|
|
25
|
+
readonly title: 'Luci is ready.';
|
|
26
|
+
readonly body: 'Pick a tool. Then click anything on the page.';
|
|
27
|
+
};
|
|
28
|
+
readonly tools: {
|
|
29
|
+
readonly component: 'Component';
|
|
30
|
+
readonly text: 'Text';
|
|
31
|
+
readonly color: 'Colour';
|
|
32
|
+
readonly spacing: 'Spacing';
|
|
33
|
+
readonly page: 'Whole page';
|
|
34
|
+
readonly check: 'Check a build';
|
|
35
|
+
};
|
|
36
|
+
readonly basket: (n: number) => string;
|
|
37
|
+
readonly basketLabel: (n: number) => string;
|
|
38
|
+
readonly basketEmpty: {
|
|
39
|
+
readonly title: 'Nothing captured yet.';
|
|
40
|
+
readonly body: 'Add a capture. It stays here across pages and sites.';
|
|
41
|
+
};
|
|
42
|
+
readonly actions: {
|
|
43
|
+
readonly copy: 'Copy';
|
|
44
|
+
readonly copySection: 'Copy section file';
|
|
45
|
+
readonly download: 'Download';
|
|
46
|
+
readonly downloadZip: (n: number) => string;
|
|
47
|
+
readonly addToBasket: 'Add to basket';
|
|
48
|
+
readonly inBasket: 'View in basket';
|
|
49
|
+
readonly pickAgain: 'Pick again';
|
|
50
|
+
};
|
|
51
|
+
readonly readingPage: 'Reading the page.';
|
|
52
|
+
/** The extension's menu: the rest of Luci lives in your project. */
|
|
53
|
+
readonly invite: {
|
|
54
|
+
readonly title: 'Take Luci home.';
|
|
55
|
+
readonly body: 'In your project, Luci also takes notes, plans layouts and remembers your rules. Free. Nothing leaves your machine.';
|
|
56
|
+
readonly action: 'Set up Luci';
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly repo: {
|
|
60
|
+
readonly link: 'Luci on GitHub';
|
|
61
|
+
readonly soon: 'GitHub link coming soon';
|
|
62
|
+
};
|
|
63
|
+
readonly feedback: {
|
|
64
|
+
readonly notesEmpty: {
|
|
65
|
+
readonly title: 'No notes yet.';
|
|
66
|
+
readonly body: 'Annotate, then click an element. Or select text.';
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly devToolbar: {
|
|
70
|
+
readonly connecting: 'Luci: connecting to your project.';
|
|
71
|
+
readonly open: 'Open Luci';
|
|
72
|
+
/** What each mode is for, shown while nothing in it is active (Layout's is its Select hint). */
|
|
73
|
+
readonly intro: {
|
|
74
|
+
readonly feedback: {
|
|
75
|
+
readonly body: 'Leave notes on your app for your agent. Press Annotate, then click an element. Or select text to note words.';
|
|
76
|
+
readonly keys: 'A annotate · N notes · P pause';
|
|
77
|
+
};
|
|
78
|
+
readonly capture: {
|
|
79
|
+
readonly body: 'Take a part of this page as a design file. Pick a tool, then click it on the page.';
|
|
80
|
+
readonly keys: 'V component · T text · C colour · S spacing · P whole page · K check';
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export type ToolCopyId = keyof typeof COPY.capture.tools;
|
|
86
|
+
export declare const itemsLabel: typeof items;
|
|
87
|
+
export {};
|
|
88
|
+
//# sourceMappingURL=copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../src/copy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,QAAA,MAAM,KAAK,MAAO,MAAM,WAAyC,CAAC;AAElE,eAAO,MAAM,IAAI;aACf,MAAM;iBACJ,KAAK,EAAE,gCAAgC;iBACvC,IAAI,MAAM,MAAM,SAAS,MAAM;iBAC/B,MAAM,EAAE,QAAQ;iBAChB,KAAK,EAAE,YAAY;iBACnB,IAAI,EAAE,MAAM;iBACZ,QAAQ,EAAE,UAAU;iBACpB,IAAI,EAAE,cAAc;;aAEtB,OAAO;iBACL,K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AAsE;;;;CAG/K,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;AACzD,eAAO,MAAM,UAAU,cAAQ,CAAC"}
|
package/dist/copy.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User-facing words for Luci's surfaces (brand/BRAND.md section 2): short sentences, facts before
|
|
3
|
+
* feelings, numbers over adjectives, no exclamation marks, emoji, "oops", "yay" or "buddy". A test
|
|
4
|
+
* checks every string here.
|
|
5
|
+
*/
|
|
6
|
+
const items = (n) => `${n} ${n === 1 ? 'item' : 'items'}`;
|
|
7
|
+
export const COPY = {
|
|
8
|
+
common: {
|
|
9
|
+
ready: 'Luci is ready. Pick something.',
|
|
10
|
+
done: (n, total) => `Done. ${n} of ${total} applied.`,
|
|
11
|
+
copied: 'Copied',
|
|
12
|
+
close: 'Close Luci',
|
|
13
|
+
menu: 'Menu',
|
|
14
|
+
settings: 'Settings',
|
|
15
|
+
help: 'How it works'
|
|
16
|
+
},
|
|
17
|
+
capture: {
|
|
18
|
+
title: 'DESIGN.md Extractor',
|
|
19
|
+
byline: 'by Luci',
|
|
20
|
+
description: 'Pick anything on a page. Get a design file your agent can build from.',
|
|
21
|
+
devTitle: 'Luci',
|
|
22
|
+
devByline: 'Dev toolbar',
|
|
23
|
+
devDescription: 'Notes, layout plans and captures for your agent. Saved in your project.',
|
|
24
|
+
greeting: { title: 'Luci is ready.', body: 'Pick a tool. Then click anything on the page.' },
|
|
25
|
+
tools: { component: 'Component', text: 'Text', color: 'Colour', spacing: 'Spacing', page: 'Whole page', check: 'Check a build' },
|
|
26
|
+
basket: (n) => `Basket ${n}`,
|
|
27
|
+
basketLabel: (n) => `Basket, ${items(n)}`,
|
|
28
|
+
basketEmpty: { title: 'Nothing captured yet.', body: 'Add a capture. It stays here across pages and sites.' },
|
|
29
|
+
actions: {
|
|
30
|
+
copy: 'Copy',
|
|
31
|
+
copySection: 'Copy section file',
|
|
32
|
+
download: 'Download',
|
|
33
|
+
downloadZip: (n) => `Download .zip, ${n} files`,
|
|
34
|
+
addToBasket: 'Add to basket',
|
|
35
|
+
inBasket: 'View in basket',
|
|
36
|
+
pickAgain: 'Pick again'
|
|
37
|
+
},
|
|
38
|
+
readingPage: 'Reading the page.',
|
|
39
|
+
/** The extension's menu: the rest of Luci lives in your project. */
|
|
40
|
+
invite: {
|
|
41
|
+
title: 'Take Luci home.',
|
|
42
|
+
body: 'In your project, Luci also takes notes, plans layouts and remembers your rules. Free. Nothing leaves your machine.',
|
|
43
|
+
action: 'Set up Luci'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
repo: {
|
|
47
|
+
link: 'Luci on GitHub',
|
|
48
|
+
soon: 'GitHub link coming soon'
|
|
49
|
+
},
|
|
50
|
+
feedback: {
|
|
51
|
+
notesEmpty: { title: 'No notes yet.', body: 'Annotate, then click an element. Or select text.' }
|
|
52
|
+
},
|
|
53
|
+
devToolbar: {
|
|
54
|
+
connecting: 'Luci: connecting to your project.',
|
|
55
|
+
open: 'Open Luci',
|
|
56
|
+
/** What each mode is for, shown while nothing in it is active (Layout's is its Select hint). */
|
|
57
|
+
intro: {
|
|
58
|
+
feedback: { body: 'Leave notes on your app for your agent. Press Annotate, then click an element. Or select text to note words.', keys: 'A annotate · N notes · P pause' },
|
|
59
|
+
capture: { body: 'Take a part of this page as a design file. Pick a tool, then click it on the page.', keys: 'V component · T text · C colour · S spacing · P whole page · K check' }
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
export const itemsLabel = items;
|
|
64
|
+
//# sourceMappingURL=copy.js.map
|
package/dist/copy.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.js","sourceRoot":"","sources":["../src/copy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,GAAG,CAA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,EAAE,gBAAgB;YAC1B,SAAS,EAAE,YAAY;SACxB;QACD,WAAW,EAAE,mBAAmB;QAChC,oEAAoE;QACpE,MAAM,EAAE;YACN,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,oHAAoH;YAC1H,MAAM,EAAE,aAAa;SACtB;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,yBAAyB;KAChC;IACD,QAAQ,EAAE;QACR,UAAU,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,kDAAkD,EAAE;KACjG;IACD,UAAU,EAAE;QACV,UAAU,EAAE,mCAAmC;QAC/C,IAAI,EAAE,WAAW;QACjB,gGAAgG;QAChG,KAAK,EAAE;YACL,QAAQ,EAAE,EAAE,IAAI,EAAE,8GAA8G,EAAE,IAAI,EAAE,gCAAgC,EAAE;YAC1K,OAAO,EAAE,EAAE,IAAI,EAAE,oFAAoF,EAAE,IAAI,EAAE,sEAAsE,EAAE;SACtL;KACF;CACO,CAAC;AAGX,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC"}
|
package/dist/fonts.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const FONT_FAMILIES: ("Luci Fredoka" | "Luci Inter" | "Luci JetBrains Mono")[];
|
|
2
|
+
/** Add the fonts to the document once. Safe to call on every mount; does nothing without FontFace. */
|
|
3
|
+
export declare function loadFonts(doc?: Document): void;
|
|
4
|
+
//# sourceMappingURL=fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../src/fonts.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,2DAAgC,CAAC;AAS3D,sGAAsG;AACtG,wBAAgB,SAAS,CAAC,GAAG,GAAE,QAAmB,GAAG,IAAI,CAgBxD"}
|