efficient-shell 5.2.0 → 5.6.1
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/README.md +165 -33
- package/THIRD_PARTY_NOTICES.md +32 -0
- package/dist/{Browser-FKZ6M2MK.js → Browser-RXGEZ77D.js} +17 -17
- package/dist/Calculator-MVPKTZZF.js +29 -0
- package/dist/ConfirmDialog-XOYCYFA7.js +1 -0
- package/dist/{CurrencyConverter-OV5ZQIAJ.js → CurrencyConverter-2IGOOR3I.js} +8 -8
- package/dist/{Documents-HGGL3AWI.js → Documents-YBLR7WVX.js} +27 -27
- package/dist/Files-7XNR5IL2.js +87 -0
- package/dist/{Notepad-PO724TVP.js → Notepad-ZQYQXV75.js} +13 -13
- package/dist/PdfViewer-SQVMMA7B.js +1 -0
- package/dist/{PomodoroTimer-LN5MYRZO.js → PomodoroTimer-XIUN4M73.js} +19 -19
- package/dist/{Preview-CUOO5WQ7.js → Preview-YCOA5JPP.js} +129 -129
- package/dist/Sidebar-VI7E3EKI.js +44 -0
- package/dist/{Spreadsheet-2N2JXBCY.js → Spreadsheet-SRAUU3OA.js} +14 -14
- package/dist/{Stock-65WVUGLI.js → Stock-7EKOAQ7C.js} +3 -3
- package/dist/{Weather-TXJICMJN.js → Weather-RWI6NKB2.js} +16 -16
- package/dist/{WorldClock-RIHLKZGC.js → WorldClock-CEHWDFEO.js} +6 -6
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-TKFAFZRY.js → chunk-3HJTOINK.js} +1 -1
- package/dist/{chunk-YJ6JMGMS.js → chunk-4SWPNARR.js} +4 -4
- package/dist/{chunk-Y553QKEH.js → chunk-5ABLFFC5.js} +15 -15
- package/dist/{chunk-JJIPGAXI.js → chunk-6LTDJKIL.js} +72 -71
- package/dist/{chunk-BFFXVA53.js → chunk-7WC3EOFS.js} +1 -1
- package/dist/chunk-AP2QEJXQ.js +1 -0
- package/dist/{chunk-3PTA2C74.js → chunk-CLPJDJH4.js} +1 -1
- package/dist/{chunk-R3622MOL.js → chunk-F6B3J3GW.js} +1 -1
- package/dist/{chunk-UG4ZPXXU.js → chunk-GG7AE6OC.js} +1 -1
- package/dist/{chunk-MTH7EAH3.js → chunk-IMMHJIV5.js} +21 -21
- package/dist/{chunk-ML22KF7T.js → chunk-JXAAZGLJ.js} +1 -1
- package/dist/{chunk-BFUBBDU6.js → chunk-KXAUDC3A.js} +26 -26
- package/dist/{chunk-KHJ5XSEH.js → chunk-N3A3GWJI.js} +8 -8
- package/dist/{chunk-UAJQB45Y.js → chunk-P4CIOJHP.js} +3 -3
- package/dist/{chunk-6GV4467L.js → chunk-RBDGN4YU.js} +5 -5
- package/dist/chunk-RC2EG6P4.js +1026 -0
- package/dist/{chunk-YQI7KXX3.js → chunk-RL626E7Q.js} +2 -2
- package/dist/{chunk-HIAHERCD.js → chunk-RMJZOKHY.js} +9 -9
- package/dist/chunk-SFCDHHQP.js +1 -0
- package/dist/{chunk-M4OGNYOM.js → chunk-SKB6L53D.js} +11 -11
- package/dist/{chunk-H3UEYXRA.js → chunk-TFETN2GI.js} +1 -1
- package/dist/chunk-TNBCUZVE.js +1 -0
- package/dist/{chunk-TLTFS2D6.js → chunk-VWBQ2P5G.js} +56 -56
- package/dist/chunk-WOEFPBQF.js +1 -0
- package/dist/{chunk-ASSDCWKP.js → chunk-WWF2EQXF.js} +1 -1
- package/dist/chunk-XWSWYMGM.js +2 -0
- package/dist/{chunk-SSBOC52S.js → chunk-YGC7AX3X.js} +9 -9
- package/dist/{chunk-QZNRMJE6.js → chunk-YIH6JLMV.js} +2 -2
- package/dist/{chunk-OTP5WPI4.js → chunk-Z7D6Y5WA.js} +16 -16
- package/dist/file-intake/index.js +1 -1
- package/dist/format/index.d.ts +1 -1
- package/dist/format/index.js +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/icons/efficient-looks.d.ts +28 -0
- package/dist/icons/efficient-looks.js +920 -0
- package/dist/icons/efficient.d.ts +746 -298
- package/dist/icons/efficient.js +336 -470
- package/dist/icons/heroicons.d.ts +1 -1
- package/dist/icons/index.d.ts +10 -4
- package/dist/icons/index.js +1 -1
- package/dist/icons/lucide.d.ts +1 -1
- package/dist/{index-DpUDK9zG.d.ts → index-CHufemKB.d.ts} +69 -1
- package/dist/{index-Dk5VKml6.d.ts → index-ZI6vl2Wq.d.ts} +367 -78
- package/dist/index.d.ts +5 -5
- package/dist/index.js +231 -231
- package/dist/locales/zh-Hans.d.ts +1 -1
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +7 -7
- package/dist/markdown/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/{registry-FHdUeVww.d.ts → registry-J-TU7zKx.d.ts} +14 -4
- package/dist/{strings-aKfRDZWB.d.ts → strings-BVB64Nck.d.ts} +26 -0
- package/dist/ui/index.d.ts +4 -4
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +61 -1
- package/package.json +8 -2
- package/dist/Calculator-LBFBTFSD.js +0 -29
- package/dist/ConfirmDialog-JAEFVRJM.js +0 -1
- package/dist/Files-DAQKIF6W.js +0 -87
- package/dist/PdfViewer-6ALXGVTV.js +0 -1
- package/dist/Sidebar-T4ABK2WV.js +0 -44
- package/dist/chunk-4QBLTEFU.js +0 -1
- package/dist/chunk-AJB5G52B.js +0 -1
- package/dist/chunk-FWOPZB6I.js +0 -1
- package/dist/chunk-PS6PSCOR.js +0 -1018
- package/dist/chunk-YKZHOXI4.js +0 -2
package/dist/icons/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { SVGProps } from 'react';
|
|
3
|
-
import { a as IconDrawing } from '../registry-
|
|
4
|
-
export { I as IconSet, b as activeIconSet, i as iconSets, c as iconsVersion, r as registerIconSet, d as registerIcons, e as resolveIcon, s as setDefaultIconSet, f as setIconSet, g as subscribeIcons } from '../registry-
|
|
3
|
+
import { a as IconDrawing } from '../registry-J-TU7zKx.js';
|
|
4
|
+
export { I as IconSet, b as activeIconSet, i as iconSets, c as iconsVersion, r as registerIconSet, d as registerIcons, e as resolveIcon, s as setDefaultIconSet, f as setIconSet, g as subscribeIcons } from '../registry-J-TU7zKx.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* GENERATED FILE. Do not edit by hand.
|
|
@@ -11,7 +11,7 @@ export { I as IconSet, b as activeIconSet, i as iconSets, c as iconsVersion, r a
|
|
|
11
11
|
* Every meaning in the catalogue. A set that calls itself complete draws all
|
|
12
12
|
* of them; `<Icon name>` takes exactly these.
|
|
13
13
|
*/
|
|
14
|
-
declare const ICON_NAMES: readonly ["academic-cap", "account", "account-circle", "add", "add-circle", "add-person", "adjust", "align-justify", "apps", "archive-box", "arrow-down", "arrow-left", "arrow-left-end-on-rectangle", "arrow-long-right", "arrow-right", "arrow-trending-down", "arrow-trending-up", "arrow-up", "arrow-up-right", "at-symbol", "attach", "bag", "bars-3-bottom-left", "battery", "beaker", "bell", "bell-alert", "billing", "block-coupon", "block-divider", "block-video", "blog-post", "bold", "bolt", "book-open", "bookmark", "bookmark-square", "braces", "briefcase", "bug", "building-library", "building-office-2", "button", "calculator", "calendar", "camera", "card-payment", "cart", "chart", "chart-bar", "chart-bar-square", "chat", "chat-bubble-left-right", "chat-bubble-oval-left-ellipsis", "check", "check-circle", "chevron-double-left", "chevron-double-right", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevron-up-down", "circle-stack", "clipboard", "clipboard-document-list", "clock", "close", "close-circle", "cloud", "cloud-download", "code", "collapse", "company", "compose", "copied", "copy", "cube-transparent", "date", "desktop", "document", "document-check", "document-magnifying-glass", "dollar", "download", "duplicate", "edit", "email", "error", "expand", "external", "eye", "eye-off", "face-smile", "filter", "finish", "fire", "flag", "folder", "folder-open", "folder-plus", "gift", "globe", "grid", "hand", "hand-thumb-up", "hash", "heart", "help", "home", "hover", "identification", "image", "inbox", "info", "italic", "key", "layers", "layout", "lightbulb", "link", "link-slash", "list", "location", "lock", "logout", "map", "megaphone", "menu", "meta", "microphone", "money", "moon", "more", "more-vertical", "no-symbol", "note", "numbered-list", "page", "pause", "people", "percent", "phone", "play", "power", "presentation-chart-bar", "print", "product", "receipt-percent", "receipt-refund", "redo", "refresh", "remove", "remove-circle", "scale", "search", "send", "server", "settings", "share", "shield-check", "shield-exclamation", "signal", "signal-slash", "sparkles", "speaker-wave", "square", "star", "stop-circle", "store", "strike", "styles", "sun", "swap", "table", "tablet", "tag", "target", "team", "telephone", "title", "trash", "truck", "tv", "underline", "undo", "upload", "verified", "video-off", "view-columns", "wallet", "warning", "window", "windows", "wrench", "wrench-screwdriver", "zoom-in"];
|
|
14
|
+
declare const ICON_NAMES: readonly ["academic-cap", "accent", "account", "account-circle", "add", "add-circle", "add-person", "adjust", "align-center", "align-justify", "align-left", "align-right", "align-separate", "anchor", "animation", "apps", "archive-box", "arrow", "arrow-down", "arrow-left", "arrow-left-end-on-rectangle", "arrow-long-right", "arrow-right", "arrow-trending-down", "arrow-trending-up", "arrow-up", "arrow-up-right", "at-symbol", "attach", "background", "bag", "bank", "bars-3-bottom-left", "battery", "beaker", "bell", "bell-alert", "bell-plus", "billing", "black-and-white", "block-badge", "block-banner", "block-box", "block-button", "block-column", "block-coupon", "block-divider", "block-footer", "block-heading", "block-image", "block-included-list", "block-layered-images", "block-product", "block-product-title", "block-section", "block-social", "block-spacer", "block-text", "block-video", "blog-post", "bold", "bolt", "book-open", "bookmark", "bookmark-square", "braces", "breadcrumb", "briefcase", "bug", "bug-ant", "building-library", "building-office-2", "button", "button-arrow", "calculator", "calendar", "calendar-check", "camera", "caption", "car", "card-payment", "caret", "cart", "case", "case-lower", "case-normal", "case-upper", "category", "chart", "chart-bar", "chart-bar-square", "chart-line", "chat", "chat-bubble-left-right", "chat-bubble-oval-left-ellipsis", "check", "check-circle", "checkbox", "chevron", "chevron-double", "chevron-double-left", "chevron-double-right", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevron-up-down", "circle-stack", "clear-marks", "clipboard", "clipboard-check", "clipboard-document-list", "clipboard-list", "clock", "close", "close-circle", "cloud", "cloud-download", "code", "code-bracket", "collapse", "collapse-all", "column-gap", "column-widths", "columns", "company", "compose", "contrast", "cookie", "copied", "copy", "copy-style", "copy-to-page", "corner", "crop", "cube-transparent", "cursor", "cursor-arrow-rays", "cursor-click", "dashboard", "date", "desktop", "diagram", "direction", "direction-down", "direction-left", "direction-right", "direction-up", "document", "document-check", "document-magnifying-glass", "dollar", "dot", "download", "drag", "drop", "duplicate", "edit", "email", "emphasis", "eraser", "error", "expand", "external", "eye", "eye-off", "face-smile", "filter", "finish", "fire", "flag", "folder", "folder-open", "folder-plus", "forward", "full-width", "gap", "gem", "gift", "globe", "grid", "ground", "hand", "hand-thumb-up", "hash", "headquarters", "heart", "height", "help", "help-off", "hexagon", "home", "hover", "identification", "image", "image-off", "images", "inbox", "info", "italic", "key", "layers", "layout", "letter-spacing", "lightbulb", "line-between", "line-style", "link", "link-slash", "list", "location", "lock", "logo", "logout", "map", "media", "megaphone", "menu", "meta", "microphone", "money", "moon", "more", "more-vertical", "move-down", "move-up", "newspaper", "no-symbol", "note", "nudge", "numbered-list", "opacity", "own-text", "package", "package-open", "padding-bottom", "padding-left", "padding-right", "padding-top", "padding-x", "padding-y", "page", "paint-brush", "panel-left", "panel-right", "paragraph-spacing", "parcel", "paste", "paste-style", "pause", "pen", "people", "percent", "phone", "phone-hidden", "placement", "play", "plus-minus", "power", "presentation-chart-bar", "print", "product", "product-field", "product-size", "progress", "quiet", "radio-dot", "radius", "receipt", "receipt-percent", "receipt-refund", "rectangle-group", "redo", "refresh", "remove", "remove-circle", "rename", "reply", "reply-all", "revert", "robot", "rotate", "scale", "scroll-point", "scroll-text", "search", "select-all", "send", "server", "settings", "shadow", "shape-ellipse", "shape-rect", "share", "shield-check", "shield-exclamation", "signal", "signal-slash", "sitemap", "sort", "sparkles", "speaker", "speaker-wave", "spec-table", "spinner", "split", "square", "star", "state", "status-circle", "status-dot", "sticky", "stop-circle", "store", "strike", "styles", "subscript", "success-burst", "sun", "superscript", "swap", "swatch", "table", "tablet", "tabs", "tag", "target", "team", "telephone", "template", "text-color", "text-lines", "text-size", "text-small", "text-value", "theme", "ticket", "title", "trash", "trigger", "truck", "tv", "type", "tyre", "underline", "undo", "upload", "v-align", "verified", "video-off", "view-columns", "wallet", "warning", "weight", "wheel", "width", "window", "windows", "words-from", "wrap", "wrench", "wrench-screwdriver", "zoom-in"];
|
|
15
15
|
type IconName = (typeof ICON_NAMES)[number];
|
|
16
16
|
/** Whether `value` is a meaning in the catalogue. */
|
|
17
17
|
declare const isIconName: (value: unknown) => value is IconName;
|
|
@@ -37,6 +37,12 @@ interface IconOwnProps {
|
|
|
37
37
|
size?: number | string;
|
|
38
38
|
/** One of the kit's ink colours. Without it the icon takes the text colour. */
|
|
39
39
|
tone?: IconTone;
|
|
40
|
+
/**
|
|
41
|
+
* Another look of the same meaning: `'solid'`, `'mini'` (drawn for 20 px), or
|
|
42
|
+
* one a set adds. Drawn when a registered set has it (`efficientLooks`);
|
|
43
|
+
* otherwise the default drawing.
|
|
44
|
+
*/
|
|
45
|
+
look?: string;
|
|
40
46
|
/** Names the icon for a screen reader, and makes it an image instead of decoration. */
|
|
41
47
|
title?: string;
|
|
42
48
|
/**
|
|
@@ -59,6 +65,6 @@ type IconProps = SvgProps & IconOwnProps & ({
|
|
|
59
65
|
glyph: string;
|
|
60
66
|
name?: never;
|
|
61
67
|
});
|
|
62
|
-
declare function Icon({ name, glyph, size, tone, title, fallback, className, ...rest }: IconProps): react_jsx_runtime.JSX.Element | null;
|
|
68
|
+
declare function Icon({ name, glyph, size, tone, look, title, fallback, className, ...rest }: IconProps): react_jsx_runtime.JSX.Element | null;
|
|
63
69
|
|
|
64
70
|
export { ICON_NAMES, Icon, IconDrawing, type IconName, type IconProps, type IconTone, isIconName };
|
package/dist/icons/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ICON_NAMES,isIconName}from"../chunk-
|
|
2
|
+
export{ICON_NAMES,isIconName}from"../chunk-WOEFPBQF.js";export{Icon,activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-XWSWYMGM.js";
|
package/dist/icons/lucide.d.ts
CHANGED
|
@@ -1,3 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The maths behind "which part of this picture survives the crop", as plain
|
|
3
|
+
* functions — `ImageFocusPoint`'s, and any host's that reads the value.
|
|
4
|
+
*
|
|
5
|
+
* Moved in from efficient-web-builder's `lib/image-focus.ts` (harness UI-24)
|
|
6
|
+
* without a change to what it reads or writes.
|
|
7
|
+
*
|
|
8
|
+
* THE VALUE IS A CSS `object-position` STRING, AND THAT IS ALL IT IS. A host
|
|
9
|
+
* stores it and renders it straight into `style={{ objectPosition }}`, so
|
|
10
|
+
* `"38% 64%"` is legal data and legal CSS. Nothing here migrates anything: the
|
|
11
|
+
* nine values the old 3×3 grid wrote (`"0% 0%"` … `"100% 100%"`) round-trip
|
|
12
|
+
* through these functions unchanged.
|
|
13
|
+
*
|
|
14
|
+
* A module of its own, not helpers inside the component: none of this needs
|
|
15
|
+
* React or a DOM, so a test can drive the keyboard path and the pointer maths
|
|
16
|
+
* with no renderer at all.
|
|
17
|
+
*
|
|
18
|
+
* ── The shape this reads and writes ─────────────────────────────────────────
|
|
19
|
+
* `"<x>% <y>%"`, two whole numbers from 0 to 100, origin top-left — exactly
|
|
20
|
+
* what `FOCAL_DEFAULT` is. `object-position` also takes keywords (`left top`)
|
|
21
|
+
* and lengths (`12px 4rem`); nothing has ever written one here, so a value
|
|
22
|
+
* this cannot read is the CENTRE rather than half of a point nobody chose.
|
|
23
|
+
*/
|
|
24
|
+
/** The picture's centre — also the browser's own `object-position` default. */
|
|
25
|
+
declare const FOCAL_DEFAULT = "50% 50%";
|
|
26
|
+
/** One press of an arrow key, in percent. */
|
|
27
|
+
declare const FOCAL_NUDGE_STEP = 1;
|
|
28
|
+
/** …and one press with Shift held: ten presses cross the picture, not a hundred. */
|
|
29
|
+
declare const FOCAL_NUDGE_COARSE = 10;
|
|
30
|
+
interface FocalPoint {
|
|
31
|
+
/** 0 (left edge) … 100 (right edge). */
|
|
32
|
+
x: number;
|
|
33
|
+
/** 0 (top edge) … 100 (bottom edge). */
|
|
34
|
+
y: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A stored `object-position` string, as a point. Anything that is not two
|
|
38
|
+
* percentages is the centre — what `FOCAL_DEFAULT` says and what the browser
|
|
39
|
+
* draws for an absent value, so the dot agrees with the page.
|
|
40
|
+
*/
|
|
41
|
+
declare function parseFocal(value?: string | null): FocalPoint;
|
|
42
|
+
/** A point, as the string that is stored. ONE shape, so a point set by the
|
|
43
|
+
* keyboard and the same point set by a press are the same bytes. */
|
|
44
|
+
declare function formatFocal(x: number, y: number): string;
|
|
45
|
+
/**
|
|
46
|
+
* The keyboard path: the moved value for an arrow key, `null` for any other
|
|
47
|
+
* key. `null` and not the unchanged value, because the caller uses it to decide
|
|
48
|
+
* whether to take the key at all — a control that ate Tab could not be left.
|
|
49
|
+
*/
|
|
50
|
+
declare function nudgeFocal(value: string | undefined | null, key: string, coarse?: boolean): string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The pointer path: where a press landed, as a point on the picture.
|
|
53
|
+
*
|
|
54
|
+
* `rect` is the PICTURE's own box, never the frame around it. The picture is
|
|
55
|
+
* shown whole, so it is letterboxed inside its frame, and measuring against the
|
|
56
|
+
* frame would put the dot on a different pixel for every shape of picture.
|
|
57
|
+
*
|
|
58
|
+
* Clamped, because a drag carries on outside the picture (the pointer is
|
|
59
|
+
* captured) and `-14% 130%` is a value nobody can see or meant. A picture with
|
|
60
|
+
* no size yet answers the centre rather than `NaN`.
|
|
61
|
+
*/
|
|
62
|
+
declare function focalFromRect(rect: {
|
|
63
|
+
left: number;
|
|
64
|
+
top: number;
|
|
65
|
+
width: number;
|
|
66
|
+
height: number;
|
|
67
|
+
}, clientX: number, clientY: number): FocalPoint;
|
|
68
|
+
|
|
1
69
|
/**
|
|
2
70
|
* Shared date formatting utility.
|
|
3
71
|
*
|
|
@@ -196,4 +264,4 @@ declare function formatMoney(amount: number | string | null | undefined, currenc
|
|
|
196
264
|
*/
|
|
197
265
|
declare function formatBytes(bytes: number | null | undefined): string;
|
|
198
266
|
|
|
199
|
-
export { type CurrencyFormat as C, DATE_FORMAT_OPTIONS as D, EMPTY_VALUE as E,
|
|
267
|
+
export { type CurrencyFormat as C, DATE_FORMAT_OPTIONS as D, EMPTY_VALUE as E, FOCAL_DEFAULT as F, TZ_AUTO as T, type DateFormatKey as a, FOCAL_NUDGE_COARSE as b, FOCAL_NUDGE_STEP as c, type FocalPoint as d, type FormatDateOptions as e, type FormatMoneyOptions as f, type TimeAgoOptions as g, currencyDecimals as h, currencySymbol as i, firstDayOfWeek as j, focalFromRect as k, formatBytes as l, formatDate as m, formatDateTime as n, formatFocal as o, formatMoney as p, formatTime as q, getUserDateFormat as r, getUserTimezone as s, nudgeFocal as t, parseFocal as u, setCurrencyFormats as v, setUserDateFormat as w, setUserTimezone as x, syncTimezoneFromProfile as y, timeAgo as z };
|