@cloudgrid-io/ui 0.64.0 → 0.66.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/README.md +1 -1
- package/dist/blocks/add-tile.d.ts +16 -1
- package/dist/blocks/add-tile.d.ts.map +1 -1
- package/dist/blocks/add-tile.js +20 -3
- package/dist/blocks/add-tile.js.map +1 -1
- package/dist/blocks/avatar-picker.d.ts +50 -4
- package/dist/blocks/avatar-picker.d.ts.map +1 -1
- package/dist/blocks/avatar-picker.js +56 -10
- package/dist/blocks/avatar-picker.js.map +1 -1
- package/dist/blocks/bento-card-hint.d.ts +16 -0
- package/dist/blocks/bento-card-hint.d.ts.map +1 -0
- package/dist/blocks/bento-card-hint.js +23 -0
- package/dist/blocks/bento-card-hint.js.map +1 -0
- package/dist/blocks/bento-card.d.ts +59 -0
- package/dist/blocks/bento-card.d.ts.map +1 -0
- package/dist/blocks/bento-card.js +59 -0
- package/dist/blocks/bento-card.js.map +1 -0
- package/dist/blocks/coming-soon-hint.d.ts.map +1 -1
- package/dist/blocks/coming-soon-hint.js +110 -7
- package/dist/blocks/coming-soon-hint.js.map +1 -1
- package/dist/blocks/creation-search.d.ts +147 -0
- package/dist/blocks/creation-search.d.ts.map +1 -0
- package/dist/blocks/creation-search.js +239 -0
- package/dist/blocks/creation-search.js.map +1 -0
- package/dist/blocks/entity-card.d.ts +82 -2
- package/dist/blocks/entity-card.d.ts.map +1 -1
- package/dist/blocks/entity-card.js +176 -17
- package/dist/blocks/entity-card.js.map +1 -1
- package/dist/blocks/from-your-grid.d.ts +66 -0
- package/dist/blocks/from-your-grid.d.ts.map +1 -0
- package/dist/blocks/from-your-grid.js +63 -0
- package/dist/blocks/from-your-grid.js.map +1 -0
- package/dist/blocks/grid-profile.d.ts +25 -4
- package/dist/blocks/grid-profile.d.ts.map +1 -1
- package/dist/blocks/grid-profile.js +69 -7
- package/dist/blocks/grid-profile.js.map +1 -1
- package/dist/blocks/help-menu.d.ts +58 -0
- package/dist/blocks/help-menu.d.ts.map +1 -0
- package/dist/blocks/help-menu.js +64 -0
- package/dist/blocks/help-menu.js.map +1 -0
- package/dist/blocks/home-bento.d.ts +86 -0
- package/dist/blocks/home-bento.d.ts.map +1 -0
- package/dist/blocks/home-bento.js +87 -0
- package/dist/blocks/home-bento.js.map +1 -0
- package/dist/blocks/home-empty-illustrations.d.ts +37 -0
- package/dist/blocks/home-empty-illustrations.d.ts.map +1 -0
- package/dist/blocks/home-empty-illustrations.js +47 -0
- package/dist/blocks/home-empty-illustrations.js.map +1 -0
- package/dist/blocks/home-pinned.d.ts +168 -0
- package/dist/blocks/home-pinned.d.ts.map +1 -0
- package/dist/blocks/home-pinned.js +100 -0
- package/dist/blocks/home-pinned.js.map +1 -0
- package/dist/blocks/icons.d.ts +46 -0
- package/dist/blocks/icons.d.ts.map +1 -1
- package/dist/blocks/icons.js +46 -0
- package/dist/blocks/icons.js.map +1 -1
- package/dist/blocks/image-adjust-dialog.d.ts +68 -11
- package/dist/blocks/image-adjust-dialog.d.ts.map +1 -1
- package/dist/blocks/image-adjust-dialog.js +68 -16
- package/dist/blocks/image-adjust-dialog.js.map +1 -1
- package/dist/blocks/inspiration-cards.d.ts +241 -0
- package/dist/blocks/inspiration-cards.d.ts.map +1 -0
- package/dist/blocks/inspiration-cards.js +234 -0
- package/dist/blocks/inspiration-cards.js.map +1 -0
- package/dist/blocks/invite-popup.d.ts +63 -5
- package/dist/blocks/invite-popup.d.ts.map +1 -1
- package/dist/blocks/invite-popup.js +60 -20
- package/dist/blocks/invite-popup.js.map +1 -1
- package/dist/blocks/liquid-glass.d.ts +106 -0
- package/dist/blocks/liquid-glass.d.ts.map +1 -0
- package/dist/blocks/liquid-glass.js +283 -0
- package/dist/blocks/liquid-glass.js.map +1 -0
- package/dist/blocks/meter.d.ts +5 -2
- package/dist/blocks/meter.d.ts.map +1 -1
- package/dist/blocks/meter.js +4 -0
- package/dist/blocks/meter.js.map +1 -1
- package/dist/blocks/motion.d.ts +48 -0
- package/dist/blocks/motion.d.ts.map +1 -0
- package/dist/blocks/motion.js +148 -0
- package/dist/blocks/motion.js.map +1 -0
- package/dist/blocks/need-help-line.d.ts +21 -0
- package/dist/blocks/need-help-line.d.ts.map +1 -0
- package/dist/blocks/need-help-line.js +24 -0
- package/dist/blocks/need-help-line.js.map +1 -0
- package/dist/blocks/needs-attention.d.ts +89 -0
- package/dist/blocks/needs-attention.d.ts.map +1 -0
- package/dist/blocks/needs-attention.js +32 -0
- package/dist/blocks/needs-attention.js.map +1 -0
- package/dist/blocks/phosphor-marks.d.ts +16 -0
- package/dist/blocks/phosphor-marks.d.ts.map +1 -1
- package/dist/blocks/phosphor-marks.js +24 -0
- package/dist/blocks/phosphor-marks.js.map +1 -1
- package/dist/blocks/picture-menu.d.ts +26 -0
- package/dist/blocks/picture-menu.d.ts.map +1 -0
- package/dist/blocks/picture-menu.js +22 -0
- package/dist/blocks/picture-menu.js.map +1 -0
- package/dist/blocks/ranked-list.d.ts +7 -1
- package/dist/blocks/ranked-list.d.ts.map +1 -1
- package/dist/blocks/ranked-list.js +8 -6
- package/dist/blocks/ranked-list.js.map +1 -1
- package/dist/blocks/recent-plugs.d.ts +74 -0
- package/dist/blocks/recent-plugs.d.ts.map +1 -0
- package/dist/blocks/recent-plugs.js +20 -0
- package/dist/blocks/recent-plugs.js.map +1 -0
- package/dist/blocks/shared-grid-illustration.d.ts +55 -0
- package/dist/blocks/shared-grid-illustration.d.ts.map +1 -0
- package/dist/blocks/shared-grid-illustration.js +81 -0
- package/dist/blocks/shared-grid-illustration.js.map +1 -0
- package/dist/blocks/shelf-strip.d.ts +36 -0
- package/dist/blocks/shelf-strip.d.ts.map +1 -0
- package/dist/blocks/shelf-strip.js +32 -0
- package/dist/blocks/shelf-strip.js.map +1 -0
- package/dist/blocks/stat-tile.d.ts +17 -1
- package/dist/blocks/stat-tile.d.ts.map +1 -1
- package/dist/blocks/stat-tile.js +4 -1
- package/dist/blocks/stat-tile.js.map +1 -1
- package/dist/blocks/top-creations.d.ts +76 -0
- package/dist/blocks/top-creations.d.ts.map +1 -0
- package/dist/blocks/top-creations.js +54 -0
- package/dist/blocks/top-creations.js.map +1 -0
- package/dist/brand/email/headline-1-invitation-left.png +0 -0
- package/dist/brand/email/headline-2-invitations-left.png +0 -0
- package/dist/brand/email/headline-3-invitations-left.png +0 -0
- package/dist/brand/email/headline-4-invitations-left.png +0 -0
- package/dist/brand/email/headline-5-invitations-left.png +0 -0
- package/dist/brand/email/headline-6-invitations-left.png +0 -0
- package/dist/brand/email/headline-7-invitations-left.png +0 -0
- package/dist/brand/email/headline-8-invitations-left.png +0 -0
- package/dist/brand/email/headline-9-invitations-left.png +0 -0
- package/dist/brand/email/headline-you-have-1-invitation.png +0 -0
- package/dist/brand/email/headline-you-have-2-invitations.png +0 -0
- package/dist/brand/email/headline-you-have-3-invitations.png +0 -0
- package/dist/brand/email/headline-you-have-4-invitations.png +0 -0
- package/dist/brand/email/headline-you-have-5-invitations.png +0 -0
- package/dist/brand/email/headline-you-have-6-invitations.png +0 -0
- package/dist/brand/email/headline-you-have-7-invitations.png +0 -0
- package/dist/brand/email/headline-you-have-8-invitations.png +0 -0
- package/dist/brand/email/headline-you-have-9-invitations.png +0 -0
- package/dist/email/assets.d.ts +108 -0
- package/dist/email/assets.d.ts.map +1 -1
- package/dist/email/assets.js +18 -0
- package/dist/email/assets.js.map +1 -1
- package/dist/email/index.d.ts +71 -0
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +110 -5
- package/dist/email/index.js.map +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/fit.d.ts +39 -0
- package/dist/lib/fit.d.ts.map +1 -0
- package/dist/lib/fit.js +92 -0
- package/dist/lib/fit.js.map +1 -0
- package/dist/lib/motion.d.ts +165 -0
- package/dist/lib/motion.d.ts.map +1 -0
- package/dist/lib/motion.js +196 -0
- package/dist/lib/motion.js.map +1 -0
- package/dist/lib/touch-hover.d.ts +63 -0
- package/dist/lib/touch-hover.d.ts.map +1 -0
- package/dist/lib/touch-hover.js +164 -0
- package/dist/lib/touch-hover.js.map +1 -0
- package/dist/ui/dialog.d.ts +7 -1
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +2 -2
- package/dist/ui/dialog.js.map +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-profile.d.ts","sourceRoot":"","sources":["../../src/blocks/grid-profile.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"grid-profile.d.ts","sourceRoot":"","sources":["../../src/blocks/grid-profile.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACrB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAiB,KAAK,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAwIjH,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,OAAO,EACP,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,UAAiC,EACjC,YAAY,EACZ,WAAmB,EACnB,UAAU,EACV,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,cAAsB,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjD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AuB,CAAC,GAAG,uBAAuB,CAAA;IAC1F,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,CAAC,GAAG,uBAAuB,CAAA;IACjG,kEAAkE;IAClE,SAAS,CAAC,EAAE,kBAAkB,CAAA;IAC9B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,kBAAkB,CAAA;CACtC,qBA+KA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx,
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
+
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
4
5
|
import { cn } from "../lib/cloudgrid-cn.js";
|
|
5
6
|
import { Avatar } from "./avatar.js";
|
|
6
7
|
import { AVATAR_PICKER_ACCEPT, routeAvatarFile, } from "./avatar-picker.js";
|
|
7
|
-
import { DropdownMenu, DropdownMenuContent,
|
|
8
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "../ui/dropdown-menu.js";
|
|
8
9
|
import { ChangePhotoIcon, EditIcon } from "./icons.js";
|
|
9
|
-
import { useImageAdjustStep } from "./image-adjust-dialog.js";
|
|
10
|
+
import { useImageAdjustCurrent, useImageAdjustStep, } from "./image-adjust-dialog.js";
|
|
11
|
+
import { PictureMenuItems } from "./picture-menu.js";
|
|
10
12
|
import { EditableValue } from "./settings-row.js";
|
|
11
13
|
import { Spinner } from "../ui/spinner.js";
|
|
12
14
|
/**
|
|
@@ -83,6 +85,47 @@ import { Spinner } from "../ui/spinner.js";
|
|
|
83
85
|
* opens it. Without `logoAdjust` nothing changes, byte for byte, and with it
|
|
84
86
|
* the markup is the same until a file is picked.
|
|
85
87
|
*
|
|
88
|
+
* ui#544, the logo menu, opt-in. With `onAdjustLogo` (and `onSelectLogoFile`):
|
|
89
|
+
*
|
|
90
|
+
* - The menu is "Adjust logo", "Replace logo" and "Remove logo". "Adjust logo"
|
|
91
|
+
* (only when there is a `logoSrc`) opens the adjust step on the current
|
|
92
|
+
* logo, and Save calls `onAdjustLogo` with the adjusted square. "Replace
|
|
93
|
+
* logo" is "Upload new logo" under a clearer name, and "Upload logo" when
|
|
94
|
+
* there is no logo, since there is nothing to replace: it picks a picture,
|
|
95
|
+
* then the adjust step, and Save calls `onSelectLogoFile`, as before.
|
|
96
|
+
* "Remove logo" is as before.
|
|
97
|
+
* - The pencil and the tile open that same menu, each under itself: the tile
|
|
98
|
+
* is a second trigger of it (a detached `Menu.Trigger`), so the tile keeps its
|
|
99
|
+
* camera, its name and its one tab stop, and the menu its single list. With
|
|
100
|
+
* no logo the tile goes straight to the file chooser, as before.
|
|
101
|
+
* - The adjust step is always on for a picked file, so Replace and Adjust are
|
|
102
|
+
* the same step; `logoAdjust`'s title and `outputSize` apply to both.
|
|
103
|
+
* - The platform keeps only the saved square (256), not the upload, so Adjust
|
|
104
|
+
* works on that: `logoSrc` is loaded with `crossOrigin="anonymous"`, and must
|
|
105
|
+
* be same-origin or served with CORS for the canvas to be written. The API's
|
|
106
|
+
* `/api/v2/avatars/<key>.webp` is (`Access-Control-Allow-Origin: *`).
|
|
107
|
+
*
|
|
108
|
+
* Without `onAdjustLogo` nothing changes, byte for byte, and the menu reads
|
|
109
|
+
* "Upload new logo" and "Remove logo" as before.
|
|
110
|
+
*
|
|
111
|
+
* ui#556, adjust from the original, opt-in. The platform can keep the picture
|
|
112
|
+
* the person picked and the view it was cut at (cloudgrid#6832):
|
|
113
|
+
*
|
|
114
|
+
* - `logoOriginalSrc` and `logoView`: "Adjust logo" opens on the original at
|
|
115
|
+
* that view, so zooming out brings back what the square cut off. Without
|
|
116
|
+
* `logoOriginalSrc` it opens on `logoSrc`, centred at 100%, as before; a
|
|
117
|
+
* `logoView` alone is ignored, since it is a view of the original. The tile
|
|
118
|
+
* still shows `logoSrc`. The original is usually a `blob:` URL (the Console
|
|
119
|
+
* fetches it signed in), which needs no CORS.
|
|
120
|
+
* - `onAdjustLogo(file, { view })` and, after the adjust step,
|
|
121
|
+
* `onSelectLogoFile(file, { original, view })`: the view the square was cut
|
|
122
|
+
* at, and for a pick the file the person picked, uncut, so the caller can
|
|
123
|
+
* send both. A pick opens centred at 100%: a saved view belongs to the old
|
|
124
|
+
* picture. Without the adjust step `onSelectLogoFile` gets the file alone.
|
|
125
|
+
*
|
|
126
|
+
* Without the two props nothing changes, byte for byte, and the markup is
|
|
127
|
+
* the same with them: the original is only ever drawn in the step.
|
|
128
|
+
*
|
|
86
129
|
* The block makes no network call: the upload, the removal and the saves are
|
|
87
130
|
* the caller's. `logoComingSoon` wins over a handler and draws what it drew before.
|
|
88
131
|
* `onEditLogo` (deprecated) still draws the old pencil that calls it, so a
|
|
@@ -97,16 +140,35 @@ const LOGO_OVERLAY = "absolute inset-0 grid place-items-center rounded-container
|
|
|
97
140
|
* the ground would let the tile show through.
|
|
98
141
|
*/
|
|
99
142
|
const BADGE = "absolute -right-1.5 -bottom-1.5 inline-flex size-7 items-center justify-center rounded-pill border border-hairline bg-card text-body shadow-sm transition-colors hover:[background-image:linear-gradient(var(--cg-hover),var(--cg-hover))] hover:text-ink focus-line";
|
|
100
|
-
function GridProfile({ name, description, logoSrc, seed, onEditLogo, onSelectLogoFile, onRejectLogoFile, onRemoveLogo, logoAccept = AVATAR_PICKER_ACCEPT, logoMaxBytes, logoPending = false, logoAdjust, onEditName, onEditDescription, onSaveName, onSaveDescription, nameField, descriptionField, logoComingSoon = false, className, ...props }) {
|
|
143
|
+
function GridProfile({ name, description, logoSrc, seed, onEditLogo, onSelectLogoFile, onRejectLogoFile, onRemoveLogo, logoAccept = AVATAR_PICKER_ACCEPT, logoMaxBytes, logoPending = false, logoAdjust, onAdjustLogo, logoOriginalSrc, logoView, onEditName, onEditDescription, onSaveName, onSaveDescription, nameField, descriptionField, logoComingSoon = false, className, ...props }) {
|
|
101
144
|
const input = React.useRef(null);
|
|
102
145
|
const picker = Boolean(onSelectLogoFile) && !logoComingSoon;
|
|
103
|
-
|
|
146
|
+
// ui#544: the menu with Adjust, opened from the tile too while there is a logo.
|
|
147
|
+
const menu = picker && Boolean(onAdjustLogo);
|
|
148
|
+
const tileMenu = menu && Boolean(logoSrc);
|
|
149
|
+
const adjusting = useImageAdjustStep(picker && (logoAdjust || menu), "rounded-square", onSelectLogoFile);
|
|
150
|
+
// The tile's link to the pencil's menu. Made once; unused without the menu.
|
|
151
|
+
const [handle] = React.useState(() => MenuPrimitive.createHandle());
|
|
152
|
+
// "Adjust logo": the step on the current logo, or on its original at its view (ui#556).
|
|
153
|
+
const current = useImageAdjustCurrent(logoAdjust, "rounded-square", { src: logoSrc, originalSrc: logoOriginalSrc, view: logoView }, onAdjustLogo);
|
|
104
154
|
const tile = _jsx(Avatar, { name: name, seed: seed, src: logoSrc, size: 80, shape: "square", look: "pastel" });
|
|
105
155
|
const pick = () => {
|
|
106
156
|
if (!logoPending)
|
|
107
157
|
input.current?.click();
|
|
108
158
|
};
|
|
109
|
-
|
|
159
|
+
const adjustCurrent = () => {
|
|
160
|
+
if (!logoPending)
|
|
161
|
+
current.open();
|
|
162
|
+
};
|
|
163
|
+
const currentDialog = menu ? current.dialog : null;
|
|
164
|
+
const tileProps = {
|
|
165
|
+
"aria-label": "Change the Grid logo",
|
|
166
|
+
"aria-busy": logoPending || undefined,
|
|
167
|
+
disabled: logoPending,
|
|
168
|
+
className: "group/grid-logo relative inline-flex shrink-0 cursor-pointer rounded-container outline-none focus-line disabled:cursor-not-allowed",
|
|
169
|
+
};
|
|
170
|
+
const tileInside = (_jsxs(_Fragment, { children: [tile, logoPending ? (_jsx("span", { "data-cg-surface": "ink", "aria-hidden": "true", className: LOGO_OVERLAY, children: _jsx(Spinner, { decorative: true, size: "lg" }) })) : (_jsx("span", { "data-slot": "grid-profile-logo-mark", "data-cg-surface": "ink", "aria-hidden": "true", className: cn(LOGO_OVERLAY, "opacity-0 transition-opacity duration-150 motion-reduce:transition-none", "group-hover/grid-logo:opacity-100 group-focus-visible/grid-logo:opacity-100"), children: _jsx(ChangePhotoIcon, { className: "size-[40%] shrink-0" }) }))] }));
|
|
171
|
+
return (_jsxs("div", { "data-slot": "grid-profile", className: cn("flex min-w-0 flex-wrap items-center gap-6 text-ink", className), ...props, children: [_jsx("span", { "data-slot": "grid-profile-logo", "data-pending": (picker && logoPending) || undefined, className: "relative inline-flex shrink-0", children: picker ? (_jsxs(_Fragment, { children: [tileMenu ? (_jsx(DropdownMenuTrigger, { handle: handle, ...tileProps, children: tileInside })) : (_jsx("button", { type: "button", ...tileProps, onClick: pick, children: tileInside })), _jsxs(DropdownMenu, { handle: tileMenu ? handle : undefined, children: [_jsx(DropdownMenuTrigger, { "aria-label": "Edit Grid logo", disabled: logoPending, className: cn(BADGE, "disabled:pointer-events-none"), children: _jsx(EditIcon, { className: "size-3.5" }) }), _jsx(DropdownMenuContent, { "data-slot": "grid-profile-logo-menu", className: "w-max", children: _jsx(PictureMenuItems, { noun: "logo", picture: Boolean(logoSrc), onAdjust: menu ? adjustCurrent : undefined, onPick: pick, onRemove: onRemoveLogo, legacy: !menu }) })] }), _jsx("input", { ref: input, type: "file", accept: logoAccept, disabled: logoPending, hidden: true, tabIndex: -1, onChange: (e) => {
|
|
110
172
|
const picked = e.target.files?.[0];
|
|
111
173
|
// Cleared before routing, so the same file can be picked again even
|
|
112
174
|
// when a callback throws.
|
|
@@ -119,7 +181,7 @@ function GridProfile({ name, description, logoSrc, seed, onEditLogo, onSelectLog
|
|
|
119
181
|
onReject: onRejectLogoFile,
|
|
120
182
|
});
|
|
121
183
|
}
|
|
122
|
-
} })] })) : (_jsxs(_Fragment, { children: [tile, onEditLogo || logoComingSoon ? (_jsx("button", { type: "button", "aria-label": "Change the Grid logo", onClick: logoComingSoon ? undefined : onEditLogo, inert: logoComingSoon, "aria-disabled": logoComingSoon ? "true" : undefined, className: cn(BADGE, logoComingSoon && "opacity-50 select-none"), children: _jsx(EditIcon, { className: "size-3.5" }) })) : null] })) }), _jsxs("div", { className: "grid min-w-0 flex-1 gap-2", children: [_jsx(EditableValue, { "data-slot": "grid-profile-name", value: name, label: "Grid name", onEdit: onEditName, onSave: onSaveName, ...nameField, valueClassName: "text-heading-lg font-normal leading-tight" }), description || onEditDescription || onSaveDescription ? (_jsx(EditableValue, { "data-slot": "grid-profile-description", value: description || _jsx("span", { className: "text-faint-strong", children: "Add description" }), editValue: typeof description === "string" ? description : "", label: "Grid description", onEdit: onEditDescription, onSave: onSaveDescription, ...descriptionField, multiline: true, valueClassName: "text-body", wrap: true })) : null] }), adjusting.dialog] }));
|
|
184
|
+
} })] })) : (_jsxs(_Fragment, { children: [tile, onEditLogo || logoComingSoon ? (_jsx("button", { type: "button", "aria-label": "Change the Grid logo", onClick: logoComingSoon ? undefined : onEditLogo, inert: logoComingSoon, "aria-disabled": logoComingSoon ? "true" : undefined, className: cn(BADGE, logoComingSoon && "opacity-50 select-none"), children: _jsx(EditIcon, { className: "size-3.5" }) })) : null] })) }), _jsxs("div", { className: "grid min-w-0 flex-1 gap-2", children: [_jsx(EditableValue, { "data-slot": "grid-profile-name", value: name, label: "Grid name", onEdit: onEditName, onSave: onSaveName, ...nameField, valueClassName: "text-heading-lg font-normal leading-tight" }), description || onEditDescription || onSaveDescription ? (_jsx(EditableValue, { "data-slot": "grid-profile-description", value: description || _jsx("span", { className: "text-faint-strong", children: "Add description" }), editValue: typeof description === "string" ? description : "", label: "Grid description", onEdit: onEditDescription, onSave: onSaveDescription, ...descriptionField, multiline: true, valueClassName: "text-body", wrap: true })) : null] }), adjusting.dialog || currentDialog ? (_jsxs(_Fragment, { children: [adjusting.dialog, currentDialog] })) : null] }));
|
|
123
185
|
}
|
|
124
186
|
export { GridProfile };
|
|
125
187
|
//# sourceMappingURL=grid-profile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-profile.js","sourceRoot":"","sources":["../../src/blocks/grid-profile.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"grid-profile.js","sourceRoot":"","sources":["../../src/blocks/grid-profile.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAE3D,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EACL,oBAAoB,EACpB,eAAe,GAEhB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACpG,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EACL,qBAAqB,EACrB,kBAAkB,GAKnB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAyD,MAAM,4BAA4B,CAAA;AACjH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuHG;AACH,mDAAmD;AACnD,MAAM,YAAY,GAChB,qFAAqF,CAAA;AAEvF;;;;;GAKG;AACH,MAAM,KAAK,GACT,sQAAsQ,CAAA;AAExQ,SAAS,WAAW,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,OAAO,EACP,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,gBAA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AAI,IACJ,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "../ui/dropdown-menu.js";
|
|
3
|
+
/**
|
|
4
|
+
* THE HELP ENTRY (ui#563, Asaf, 2026-11-22). The Console's floating chat
|
|
5
|
+
* button covered content (the invite popup's Copy, the phone tab bar's "You"),
|
|
6
|
+
* so the chat opens only when someone asks for help, from three places: a "?"
|
|
7
|
+
* in the top bar (`HelpMenu`), a "Help" row in the account menu (the Console's
|
|
8
|
+
* own row), and "Need help? Chat with us" where something failed
|
|
9
|
+
* (`NeedHelpLine`). The library holds the pieces; the Console wires them.
|
|
10
|
+
*
|
|
11
|
+
* Every word is in `HELP_COPY`, so the Console's account-menu row and any
|
|
12
|
+
* other door say exactly what these do.
|
|
13
|
+
*/
|
|
14
|
+
declare const HELP_COPY: Readonly<{
|
|
15
|
+
/** The "?" button's name and its tooltip. */
|
|
16
|
+
label: "Help";
|
|
17
|
+
chat: "Chat with us";
|
|
18
|
+
docs: "Read the docs";
|
|
19
|
+
report: "Report a problem";
|
|
20
|
+
/** The quiet words before "Chat with us" on a `NeedHelpLine`. */
|
|
21
|
+
needHelp: "Need help?";
|
|
22
|
+
/** Read after "Read the docs" by a screen reader: the link opens a new tab. */
|
|
23
|
+
newTab: "(opens in a new tab)";
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* HELP MENU: the "?" button and the small menu it opens.
|
|
27
|
+
*
|
|
28
|
+
* trigger the bell's size and look (above), named "Help", with a "Help"
|
|
29
|
+
* tooltip under it
|
|
30
|
+
* menu the library's dropdown menu, 232 wide, under the button's right
|
|
31
|
+
* edge: "Chat with us" (`onChat`), "Read the docs" (a link to
|
|
32
|
+
* `docsHref`, in a new tab), a separator, "Report a problem"
|
|
33
|
+
* (`onReport`), each after its glyph
|
|
34
|
+
* keyboard the library's menu: Enter or Space opens it on the first row,
|
|
35
|
+
* the arrows move between rows, Escape closes it and gives the
|
|
36
|
+
* button its focus back. No outline on a click; the line for the
|
|
37
|
+
* keyboard only
|
|
38
|
+
*
|
|
39
|
+
* Extra props (`className`, `data-testid`, an `id`) go to the button. The menu
|
|
40
|
+
* portals to `<body>`; inside a `data-cg-surface` pass that surface as
|
|
41
|
+
* `container`, as for any library menu. `open`, `defaultOpen` and
|
|
42
|
+
* `onOpenChange` are the menu's own.
|
|
43
|
+
*/
|
|
44
|
+
declare function HelpMenu({ onChat, onReport, docsHref, open, defaultOpen, onOpenChange, container, className, ...props }: Omit<React.ComponentProps<typeof DropdownMenuTrigger>, "children" | "render" | "className"> & {
|
|
45
|
+
/** Opens the chat. */
|
|
46
|
+
onChat: () => void;
|
|
47
|
+
/** Opens the way to report a problem. */
|
|
48
|
+
onReport: () => void;
|
|
49
|
+
/** The docs, opened in a new tab. */
|
|
50
|
+
docsHref: string;
|
|
51
|
+
open?: React.ComponentProps<typeof DropdownMenu>["open"];
|
|
52
|
+
defaultOpen?: React.ComponentProps<typeof DropdownMenu>["defaultOpen"];
|
|
53
|
+
onOpenChange?: React.ComponentProps<typeof DropdownMenu>["onOpenChange"];
|
|
54
|
+
container?: React.ComponentProps<typeof DropdownMenuContent>["container"];
|
|
55
|
+
className?: string;
|
|
56
|
+
}): React.JSX.Element;
|
|
57
|
+
export { HELP_COPY, HelpMenu };
|
|
58
|
+
//# sourceMappingURL=help-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help-menu.d.ts","sourceRoot":"","sources":["../../src/blocks/help-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EACL,YAAY,EACZ,mBAAmB,EAInB,mBAAmB,EACpB,MAAM,6BAA6B,CAAA;AAIpC;;;;;;;;;;GAUG;AACH,QAAA,MAAM,SAAS;IACb,6CAA6C;;;;;IAK7C,iEAAiE;;IAEjE,+EAA+E;;EAE/E,CAAA;AAaF;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,QAAQ,CAAC,EAChB,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,WAAW,CAAC,GAAG;IAC/F,sBAAsB;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,yCAAyC;IACzC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA;IACxD,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC,aAAa,CAAC,CAAA;IACtE,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC,cAAc,CAAC,CAAA;IACxE,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAC,WAAW,CAAC,CAAA;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,qBA6CA;AAED,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../lib/cloudgrid-cn.js";
|
|
5
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLinkItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "../ui/dropdown-menu.js";
|
|
6
|
+
import { ChatWithUsIcon, DocsIcon, HelpIcon, ReportProblemIcon } from "./icons.js";
|
|
7
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip.js";
|
|
8
|
+
/**
|
|
9
|
+
* THE HELP ENTRY (ui#563, Asaf, 2026-11-22). The Console's floating chat
|
|
10
|
+
* button covered content (the invite popup's Copy, the phone tab bar's "You"),
|
|
11
|
+
* so the chat opens only when someone asks for help, from three places: a "?"
|
|
12
|
+
* in the top bar (`HelpMenu`), a "Help" row in the account menu (the Console's
|
|
13
|
+
* own row), and "Need help? Chat with us" where something failed
|
|
14
|
+
* (`NeedHelpLine`). The library holds the pieces; the Console wires them.
|
|
15
|
+
*
|
|
16
|
+
* Every word is in `HELP_COPY`, so the Console's account-menu row and any
|
|
17
|
+
* other door say exactly what these do.
|
|
18
|
+
*/
|
|
19
|
+
const HELP_COPY = Object.freeze({
|
|
20
|
+
/** The "?" button's name and its tooltip. */
|
|
21
|
+
label: "Help",
|
|
22
|
+
chat: "Chat with us",
|
|
23
|
+
docs: "Read the docs",
|
|
24
|
+
report: "Report a problem",
|
|
25
|
+
/** The quiet words before "Chat with us" on a `NeedHelpLine`. */
|
|
26
|
+
needHelp: "Need help?",
|
|
27
|
+
/** Read after "Read the docs" by a screen reader: the link opens a new tab. */
|
|
28
|
+
newTab: "(opens in a new tab)",
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* The Console top bar's bell button (NotificationsBell), class for class, so
|
|
32
|
+
* the two sit side by side as one family: 32 round, the slate glyph at 20, the
|
|
33
|
+
* hover ground, and the line on keyboard focus only.
|
|
34
|
+
*/
|
|
35
|
+
const TRIGGER_CLASS = "relative inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-full border-0 bg-transparent text-steel transition-colors hover:bg-(--cg-hover) focus-line";
|
|
36
|
+
/** A row: the library's menu row, roomier, with its 16px glyph 10 before the words. */
|
|
37
|
+
const ROW_CLASS = "min-h-8 gap-2.5 px-2.5 py-1.5";
|
|
38
|
+
/**
|
|
39
|
+
* HELP MENU: the "?" button and the small menu it opens.
|
|
40
|
+
*
|
|
41
|
+
* trigger the bell's size and look (above), named "Help", with a "Help"
|
|
42
|
+
* tooltip under it
|
|
43
|
+
* menu the library's dropdown menu, 232 wide, under the button's right
|
|
44
|
+
* edge: "Chat with us" (`onChat`), "Read the docs" (a link to
|
|
45
|
+
* `docsHref`, in a new tab), a separator, "Report a problem"
|
|
46
|
+
* (`onReport`), each after its glyph
|
|
47
|
+
* keyboard the library's menu: Enter or Space opens it on the first row,
|
|
48
|
+
* the arrows move between rows, Escape closes it and gives the
|
|
49
|
+
* button its focus back. No outline on a click; the line for the
|
|
50
|
+
* keyboard only
|
|
51
|
+
*
|
|
52
|
+
* Extra props (`className`, `data-testid`, an `id`) go to the button. The menu
|
|
53
|
+
* portals to `<body>`; inside a `data-cg-surface` pass that surface as
|
|
54
|
+
* `container`, as for any library menu. `open`, `defaultOpen` and
|
|
55
|
+
* `onOpenChange` are the menu's own.
|
|
56
|
+
*/
|
|
57
|
+
function HelpMenu({ onChat, onReport, docsHref, open, defaultOpen, onOpenChange, container, className, ...props }) {
|
|
58
|
+
return (_jsxs(DropdownMenu, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger
|
|
59
|
+
// The tooltip repeats the button's name; describing the button by it
|
|
60
|
+
// as well would read "Help" twice.
|
|
61
|
+
, { "aria-describedby": undefined, render: _jsx(DropdownMenuTrigger, { "data-slot": "help-menu-trigger", "aria-label": HELP_COPY.label, className: cn(TRIGGER_CLASS, className), ...props }), children: _jsx(HelpIcon, { className: "size-5" }) }), _jsx(TooltipContent, { side: "bottom", children: HELP_COPY.label })] }), _jsxs(DropdownMenuContent, { "data-slot": "help-menu-content", align: "end", sideOffset: 8, container: container, className: "w-58", children: [_jsxs(DropdownMenuItem, { "data-slot": "help-menu-chat", className: ROW_CLASS, onClick: onChat, children: [_jsx(ChatWithUsIcon, {}), HELP_COPY.chat] }), _jsxs(DropdownMenuLinkItem, { "data-slot": "help-menu-docs", className: ROW_CLASS, href: docsHref, target: "_blank", rel: "noopener noreferrer", children: [_jsx(DocsIcon, {}), HELP_COPY.docs, _jsxs("span", { className: "sr-only", children: [" ", HELP_COPY.newTab] })] }), _jsx(DropdownMenuSeparator, { className: "mx-1 my-1.5" }), _jsxs(DropdownMenuItem, { "data-slot": "help-menu-report", className: ROW_CLASS, onClick: onReport, children: [_jsx(ReportProblemIcon, {}), HELP_COPY.report] })] })] }));
|
|
62
|
+
}
|
|
63
|
+
export { HELP_COPY, HelpMenu };
|
|
64
|
+
//# sourceMappingURL=help-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help-menu.js","sourceRoot":"","sources":["../../src/blocks/help-menu.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC3F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE/E;;;;;;;;;;GAUG;AACH,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9B,6CAA6C;IAC7C,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,eAAe;IACrB,MAAM,EAAE,kBAAkB;IAC1B,iEAAiE;IACjE,QAAQ,EAAE,YAAY;IACtB,+EAA+E;IAC/E,MAAM,EAAE,sBAAsB;CAC/B,CAAC,CAAA;AAEF;;;;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AAC,MAAM,IAAQ,IAC/B,EACvB,KAAC,qBAAqB,IAAC,SAAS,EAAC,aAAa,GAAG,EACjD,MAAC,gBAAgB,iBAAW,kBAAkB,EAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,aACpF,KAAC,iBAAiB,KAAG,EACpB,SAAS,CAAC,MAAM,IACA,IACC,IACT,CAChB,CAAA;AACH,CAAC;AAED,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* THE HOME BENTO (ui#546), Asaf's layout B for the Console's Home, approved
|
|
4
|
+
* from mockups on 2026-11-20.
|
|
5
|
+
*
|
|
6
|
+
* <HomeBento
|
|
7
|
+
* left={[<TopCreations … />, <RecentPlugs … hint={<StretchHint />} />]}
|
|
8
|
+
* right={[<NeedsAttention … />, <InspirationCards layout="fill" … />]}
|
|
9
|
+
* />
|
|
10
|
+
*
|
|
11
|
+
* ## Two columns that stack
|
|
12
|
+
*
|
|
13
|
+
* From 1024 wide: the design's two columns, 480 and 776 at the Home's 1280,
|
|
14
|
+
* 24 apart, and as that ratio at any other width; the cards in each column
|
|
15
|
+
* 24 apart, in the caller's order. (The ratio is the design's own, not 5 and
|
|
16
|
+
* 7 of 12: at 7 of 12 the right column is 737 and an idea card 219, too narrow
|
|
17
|
+
* for Copy prompt and Paste in to share their line; at 776 it is 232.) Each card is as tall as
|
|
18
|
+
* its content, and the next card in the column moves up to meet it: a column
|
|
19
|
+
* is its own stack, not rows shared with the other column.
|
|
20
|
+
*
|
|
21
|
+
* Only the last card of the shorter column stretches, so both columns end on
|
|
22
|
+
* one line. That is CSS, not a measurement: the two columns share one grid
|
|
23
|
+
* row, so both are as tall as the taller; each column's last place takes what
|
|
24
|
+
* is left (`flex-1`), which in the taller column is nothing; and the place is a
|
|
25
|
+
* grid, so the card in it fills it. Nothing is measured, nothing runs on a
|
|
26
|
+
* timer, and a card that grows or shrinks moves the line at once.
|
|
27
|
+
*
|
|
28
|
+
* Below 1024 the columns stack into one, the left one first, and nothing
|
|
29
|
+
* stretches: each card is its own height.
|
|
30
|
+
*
|
|
31
|
+
* ## What shows in the room a stretch gives
|
|
32
|
+
*
|
|
33
|
+
* The cards are the caller's. Two of the library's use the room:
|
|
34
|
+
*
|
|
35
|
+
* - `BentoCard`'s `hint` (Recent plugs): with room for it, a hairline and the
|
|
36
|
+
* hint (`StretchHint`) centred below it;
|
|
37
|
+
* - `InspirationCards` with `layout="fill"`: with room for a second row, every
|
|
38
|
+
* page at once, one row each, and no pager.
|
|
39
|
+
*
|
|
40
|
+
* Each measures its own room with one ResizeObserver (`useFits`). A card that
|
|
41
|
+
* uses the room is exactly as tall as it would be without it, so what shows
|
|
42
|
+
* there never decides which column is shorter.
|
|
43
|
+
*
|
|
44
|
+
* ## Semantics
|
|
45
|
+
*
|
|
46
|
+
* The bento is a plain grid; each card is its own section with its own
|
|
47
|
+
* heading. The order a screen reader and Tab follow is the left column, then
|
|
48
|
+
* the right, as it reads at one column.
|
|
49
|
+
*/
|
|
50
|
+
declare function HomeBento({ left, right, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
51
|
+
/** The left column's cards, top to bottom: 480 of the Home's 1280 from 1024 wide. */
|
|
52
|
+
left: readonly React.ReactNode[];
|
|
53
|
+
/** The right column's cards, top to bottom: 776 of the Home's 1280 from 1024 wide. */
|
|
54
|
+
right: readonly React.ReactNode[];
|
|
55
|
+
}): React.JSX.Element;
|
|
56
|
+
/** The words of the Home's hint. DRAFT: Asaf's working copy, 2026-11-20. */
|
|
57
|
+
export declare const STRETCH_HINT_COPY: Readonly<{
|
|
58
|
+
plugs: "Your next plug will show here, with its build progress.";
|
|
59
|
+
}>;
|
|
60
|
+
/**
|
|
61
|
+
* The light hint a stretched card shows in its spare room (ui#546): Recent
|
|
62
|
+
* plugs' "Your next plug will show here, with its build progress." Pass it as
|
|
63
|
+
* `BentoCard`'s `hint`; the card shows it only when there is room, under a
|
|
64
|
+
* hairline.
|
|
65
|
+
*
|
|
66
|
+
* mark a 40 round soft brand tint (`bg-brand-100`, violet-100) with the
|
|
67
|
+
* caller's icon, 20, in the brand purple (`text-brand`); the plug by
|
|
68
|
+
* default. Decorative: the line says it all.
|
|
69
|
+
* line one quiet grey line, 12 to the right of the mark and centred on
|
|
70
|
+
* it (Asaf, 2026-11-20: side by side, one layout at every width):
|
|
71
|
+
* Body (`text-body-sm`) in `text-faint-strong`, the card's
|
|
72
|
+
* empty-state words' role, which clears 4.5:1 on every surface.
|
|
73
|
+
*
|
|
74
|
+
* Side by side the hint is as tall as the taller of the round and the line,
|
|
75
|
+
* so with the hairline and the 16 under it, it needs about 58 of room.
|
|
76
|
+
*/
|
|
77
|
+
declare function StretchHint({ icon: Icon, children, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
78
|
+
/** The mark in the round. The plug by default. */
|
|
79
|
+
icon?: React.ComponentType<{
|
|
80
|
+
className?: string;
|
|
81
|
+
}>;
|
|
82
|
+
/** The line. Recent plugs' words by default. */
|
|
83
|
+
children?: React.ReactNode;
|
|
84
|
+
}): React.JSX.Element;
|
|
85
|
+
export { HomeBento, StretchHint };
|
|
86
|
+
//# sourceMappingURL=home-bento.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home-bento.d.ts","sourceRoot":"","sources":["../../src/blocks/home-bento.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,iBAAS,SAAS,CAAC,EACjB,IAAI,EACJ,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjD,qFAAqF;IACrF,IAAI,EAAE,SAAS,KAAK,CAAC,SAAS,EAAE,CAAA;IAChC,sFAAsF;IACtF,KAAK,EAAE,SAAS,KAAK,CAAC,SAAS,EAAE,CAAA;CAClC,qBAOA;AAsBD,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB;;EAE5B,CAAA;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,WAAW,CAAC,EACnB,IAAI,EAAE,IAAe,EACrB,QAAkC,EAClC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjD,kDAAkD;IAClD,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAClD,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,qBAeA;AAED,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../lib/cloudgrid-cn.js";
|
|
4
|
+
import { PlugIcon } from "./icons.js";
|
|
5
|
+
/**
|
|
6
|
+
* THE HOME BENTO (ui#546), Asaf's layout B for the Console's Home, approved
|
|
7
|
+
* from mockups on 2026-11-20.
|
|
8
|
+
*
|
|
9
|
+
* <HomeBento
|
|
10
|
+
* left={[<TopCreations … />, <RecentPlugs … hint={<StretchHint />} />]}
|
|
11
|
+
* right={[<NeedsAttention … />, <InspirationCards layout="fill" … />]}
|
|
12
|
+
* />
|
|
13
|
+
*
|
|
14
|
+
* ## Two columns that stack
|
|
15
|
+
*
|
|
16
|
+
* From 1024 wide: the design's two columns, 480 and 776 at the Home's 1280,
|
|
17
|
+
* 24 apart, and as that ratio at any other width; the cards in each column
|
|
18
|
+
* 24 apart, in the caller's order. (The ratio is the design's own, not 5 and
|
|
19
|
+
* 7 of 12: at 7 of 12 the right column is 737 and an idea card 219, too narrow
|
|
20
|
+
* for Copy prompt and Paste in to share their line; at 776 it is 232.) Each card is as tall as
|
|
21
|
+
* its content, and the next card in the column moves up to meet it: a column
|
|
22
|
+
* is its own stack, not rows shared with the other column.
|
|
23
|
+
*
|
|
24
|
+
* Only the last card of the shorter column stretches, so both columns end on
|
|
25
|
+
* one line. That is CSS, not a measurement: the two columns share one grid
|
|
26
|
+
* row, so both are as tall as the taller; each column's last place takes what
|
|
27
|
+
* is left (`flex-1`), which in the taller column is nothing; and the place is a
|
|
28
|
+
* grid, so the card in it fills it. Nothing is measured, nothing runs on a
|
|
29
|
+
* timer, and a card that grows or shrinks moves the line at once.
|
|
30
|
+
*
|
|
31
|
+
* Below 1024 the columns stack into one, the left one first, and nothing
|
|
32
|
+
* stretches: each card is its own height.
|
|
33
|
+
*
|
|
34
|
+
* ## What shows in the room a stretch gives
|
|
35
|
+
*
|
|
36
|
+
* The cards are the caller's. Two of the library's use the room:
|
|
37
|
+
*
|
|
38
|
+
* - `BentoCard`'s `hint` (Recent plugs): with room for it, a hairline and the
|
|
39
|
+
* hint (`StretchHint`) centred below it;
|
|
40
|
+
* - `InspirationCards` with `layout="fill"`: with room for a second row, every
|
|
41
|
+
* page at once, one row each, and no pager.
|
|
42
|
+
*
|
|
43
|
+
* Each measures its own room with one ResizeObserver (`useFits`). A card that
|
|
44
|
+
* uses the room is exactly as tall as it would be without it, so what shows
|
|
45
|
+
* there never decides which column is shorter.
|
|
46
|
+
*
|
|
47
|
+
* ## Semantics
|
|
48
|
+
*
|
|
49
|
+
* The bento is a plain grid; each card is its own section with its own
|
|
50
|
+
* heading. The order a screen reader and Tab follow is the left column, then
|
|
51
|
+
* the right, as it reads at one column.
|
|
52
|
+
*/
|
|
53
|
+
function HomeBento({ left, right, className, ...props }) {
|
|
54
|
+
return (_jsxs("div", { "data-slot": "home-bento", className: cn("grid min-w-0 grid-cols-1 gap-6 lg:grid-cols-[minmax(0,480fr)_minmax(0,776fr)]", className), ...props, children: [_jsx(Column, { side: "left", cards: left }), _jsx(Column, { side: "right", cards: right })] }));
|
|
55
|
+
}
|
|
56
|
+
function Column({ side, cards }) {
|
|
57
|
+
return (_jsx("div", { "data-slot": "home-bento-column", "data-column": side, className: "flex min-w-0 flex-col gap-6", children: cards.map((card, i) => {
|
|
58
|
+
const last = i === cards.length - 1;
|
|
59
|
+
return (_jsx("div", { "data-slot": "home-bento-item", ...(last ? { "data-last": "" } : {}), className: cn("min-w-0", last && "grid flex-1"), children: card }, i));
|
|
60
|
+
}) }));
|
|
61
|
+
}
|
|
62
|
+
/** The words of the Home's hint. DRAFT: Asaf's working copy, 2026-11-20. */
|
|
63
|
+
export const STRETCH_HINT_COPY = Object.freeze({
|
|
64
|
+
plugs: "Your next plug will show here, with its build progress.",
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* The light hint a stretched card shows in its spare room (ui#546): Recent
|
|
68
|
+
* plugs' "Your next plug will show here, with its build progress." Pass it as
|
|
69
|
+
* `BentoCard`'s `hint`; the card shows it only when there is room, under a
|
|
70
|
+
* hairline.
|
|
71
|
+
*
|
|
72
|
+
* mark a 40 round soft brand tint (`bg-brand-100`, violet-100) with the
|
|
73
|
+
* caller's icon, 20, in the brand purple (`text-brand`); the plug by
|
|
74
|
+
* default. Decorative: the line says it all.
|
|
75
|
+
* line one quiet grey line, 12 to the right of the mark and centred on
|
|
76
|
+
* it (Asaf, 2026-11-20: side by side, one layout at every width):
|
|
77
|
+
* Body (`text-body-sm`) in `text-faint-strong`, the card's
|
|
78
|
+
* empty-state words' role, which clears 4.5:1 on every surface.
|
|
79
|
+
*
|
|
80
|
+
* Side by side the hint is as tall as the taller of the round and the line,
|
|
81
|
+
* so with the hairline and the 16 under it, it needs about 58 of room.
|
|
82
|
+
*/
|
|
83
|
+
function StretchHint({ icon: Icon = PlugIcon, children = STRETCH_HINT_COPY.plugs, className, ...props }) {
|
|
84
|
+
return (_jsxs("div", { "data-slot": "stretch-hint", className: cn("flex flex-row items-center gap-3 text-left", className), ...props, children: [_jsx("span", { "data-slot": "stretch-hint-icon", "aria-hidden": "true", className: "flex size-10 shrink-0 items-center justify-center rounded-full bg-brand-100 text-brand", children: _jsx(Icon, { className: "size-5" }) }), _jsx("p", { "data-slot": "stretch-hint-line", className: "m-0 text-body-sm text-faint-strong", children: children })] }));
|
|
85
|
+
}
|
|
86
|
+
export { HomeBento, StretchHint };
|
|
87
|
+
//# sourceMappingURL=home-bento.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home-bento.js","sourceRoot":"","sources":["../../src/blocks/home-bento.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,SAAS,SAAS,CAAC,EACjB,IAAI,EACJ,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EAMT;IACC,OAAO,CACL,4BAAe,YAAY,EAAC,SAAS,EAAE,EAAE,CAAC,+EAA+E,EAAE,SAAS,CAAC,KAAM,KAAK,aAC9I,KAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,GAAI,EACnC,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,KAAK,GAAI,IACjC,CACP,CAAA;AACH,CAAC;AAED,SAAS,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAiE;IAC5F,OAAO,CACL,2BAAe,mBAAmB,iBAAc,IAAI,EAAE,SAAS,EAAC,6BAA6B,YAC1F,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;YACrB,MAAM,IAAI,GAAG,CAAC,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;YACnC,OAAO,CACL,2BAEY,iBAAiB,KACvB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACrC,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,IAAI,IAAI,aAAa,CAAC,YAE9C,IAAI,IALA,CAAC,CAMF,CACP,CAAA;QACH,CAAC,CAAC,GACE,CACP,CAAA;AACH,CAAC;AAED,4EAA4E;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,yDAAyD;CACjE,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,SAAS,WAAW,CAAC,EACnB,IAAI,EAAE,IAAI,GAAG,QAAQ,EACrB,QAAQ,GAAG,iBAAiB,CAAC,KAAK,EAClC,SAAS,EACT,GAAG,KAAK,EAMT;IACC,OAAO,CACL,4BAAe,cAAc,EAAC,SAAS,EAAE,EAAE,CAAC,4CAA4C,EAAE,SAAS,CAAC,KAAM,KAAK,aAC7G,4BACY,mBAAmB,iBACjB,MAAM,EAClB,SAAS,EAAC,wFAAwF,YAElG,KAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,GAAG,GACtB,EACP,yBAAa,mBAAmB,EAAC,SAAS,EAAC,oCAAoC,YAC5E,QAAQ,GACP,IACA,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The two pictures of an empty Home's cards (ui#540), drawn from Asaf's design
|
|
4
|
+
* (2026-11-20) in the palette's own rungs:
|
|
5
|
+
*
|
|
6
|
+
* AllClearIllustration Needs attention: three notifications stacked, the
|
|
7
|
+
* front one a white slip with three lines on it, and
|
|
8
|
+
* a lime circle with a violet check on its corner.
|
|
9
|
+
* PlugToLiveIllustration Recent plugs: the CloudGrid plug, a cyan line to a
|
|
10
|
+
* creation tile, and a lime live dot on the tile.
|
|
11
|
+
*
|
|
12
|
+
* ## Like the From your grid picture
|
|
13
|
+
*
|
|
14
|
+
* They follow `SharedGridIllustration` (ui#533): one SVG on the box the design
|
|
15
|
+
* draws it at, scaled to the width it is given and never wider; every part
|
|
16
|
+
* named with `data-part`; the palette's rungs rather than the surface-scoped
|
|
17
|
+
* roles (white tiles with a violet-100 edge, cyan, lime, the brand violet), so
|
|
18
|
+
* each reads the same on the card, the panel and ink. They are decoration
|
|
19
|
+
* (`aria-hidden`): the words beside them say what they mean.
|
|
20
|
+
*
|
|
21
|
+
* They do not move on their own. The empty cards reveal them with the words,
|
|
22
|
+
* one by one, through `StaggerReveal`.
|
|
23
|
+
*
|
|
24
|
+
* ## The plug is the brand's socket
|
|
25
|
+
*
|
|
26
|
+
* The plug is the "o" of the wordmark, `SOCKET_GLYPH_PATH`, scaled by 1.75 (the
|
|
27
|
+
* picture is drawn at 1.75 times a 160 by 112 box), not a copy of its path.
|
|
28
|
+
*/
|
|
29
|
+
/** Needs attention's picture, on the 224 by 156.8 box the design draws. */
|
|
30
|
+
declare function AllClearIllustration({ className, ...props }: Omit<React.ComponentProps<"div">, "children">): React.JSX.Element;
|
|
31
|
+
/** Recent plugs' picture, on the 280 by 196 box the design draws. */
|
|
32
|
+
declare function PlugToLiveIllustration({ picture, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
33
|
+
/** The creation tile's cover. Defaults to the library's first creation preview. */
|
|
34
|
+
picture?: string;
|
|
35
|
+
}): React.JSX.Element;
|
|
36
|
+
export { AllClearIllustration, PlugToLiveIllustration };
|
|
37
|
+
//# sourceMappingURL=home-empty-illustrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home-empty-illustrations.d.ts","sourceRoot":"","sources":["../../src/blocks/home-empty-illustrations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,2EAA2E;AAC3E,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,qBAuCnG;AAOD,qEAAqE;AACrE,iBAAS,sBAAsB,CAAC,EAC9B,OAAsC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjD,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,qBA2DA;AAED,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../lib/cloudgrid-cn.js";
|
|
4
|
+
import { EMPTY_CREATIONS_PREVIEWS } from "./empty-creations-previews.js";
|
|
5
|
+
import { SOCKET_GLYPH_PATH } from "./logo.js";
|
|
6
|
+
/**
|
|
7
|
+
* The two pictures of an empty Home's cards (ui#540), drawn from Asaf's design
|
|
8
|
+
* (2026-11-20) in the palette's own rungs:
|
|
9
|
+
*
|
|
10
|
+
* AllClearIllustration Needs attention: three notifications stacked, the
|
|
11
|
+
* front one a white slip with three lines on it, and
|
|
12
|
+
* a lime circle with a violet check on its corner.
|
|
13
|
+
* PlugToLiveIllustration Recent plugs: the CloudGrid plug, a cyan line to a
|
|
14
|
+
* creation tile, and a lime live dot on the tile.
|
|
15
|
+
*
|
|
16
|
+
* ## Like the From your grid picture
|
|
17
|
+
*
|
|
18
|
+
* They follow `SharedGridIllustration` (ui#533): one SVG on the box the design
|
|
19
|
+
* draws it at, scaled to the width it is given and never wider; every part
|
|
20
|
+
* named with `data-part`; the palette's rungs rather than the surface-scoped
|
|
21
|
+
* roles (white tiles with a violet-100 edge, cyan, lime, the brand violet), so
|
|
22
|
+
* each reads the same on the card, the panel and ink. They are decoration
|
|
23
|
+
* (`aria-hidden`): the words beside them say what they mean.
|
|
24
|
+
*
|
|
25
|
+
* They do not move on their own. The empty cards reveal them with the words,
|
|
26
|
+
* one by one, through `StaggerReveal`.
|
|
27
|
+
*
|
|
28
|
+
* ## The plug is the brand's socket
|
|
29
|
+
*
|
|
30
|
+
* The plug is the "o" of the wordmark, `SOCKET_GLYPH_PATH`, scaled by 1.75 (the
|
|
31
|
+
* picture is drawn at 1.75 times a 160 by 112 box), not a copy of its path.
|
|
32
|
+
*/
|
|
33
|
+
/** Needs attention's picture, on the 224 by 156.8 box the design draws. */
|
|
34
|
+
function AllClearIllustration({ className, ...props }) {
|
|
35
|
+
return (_jsx("div", { "data-slot": "all-clear-illustration", "aria-hidden": "true", className: cn("w-full max-w-56", className), ...props, children: _jsxs("svg", { viewBox: "0 0 224 156.8", className: "block h-auto w-full overflow-visible", focusable: "false", children: [_jsx("rect", { "data-part": "back", x: 40.6, y: 22.4, width: 156.8, height: 89.6, rx: 14, className: "fill-brand-100" }), _jsx("rect", { "data-part": "middle", x: 26.6, y: 39.2, width: 156.8, height: 89.6, rx: 14, className: "fill-cyan" }), _jsx("rect", { "data-part": "slip", x: 11.9, y: 56.7, width: 155.4, height: 85.4, rx: 13.3, strokeWidth: 1.4, className: "fill-(--cg-neutral-0) stroke-brand-100" }), _jsxs("g", { "data-part": "line", className: "fill-brand-100", children: [_jsx("rect", { x: 28, y: 77, width: 75.6, height: 7, rx: 3.5 }), _jsx("rect", { x: 28, y: 93.8, width: 106.4, height: 5.6, rx: 2.8 }), _jsx("rect", { x: 28, y: 107.8, width: 56, height: 5.6, rx: 2.8 })] }), _jsx("circle", { "data-part": "status", cx: 169.4, cy: 123.2, r: 22.4, className: "fill-lime" }), _jsx("path", { "data-part": "check", d: "M162.05 123.2L166.25 127.4L176.75 116.9", fill: "none", strokeWidth: 2.1, strokeLinecap: "round", strokeLinejoin: "round", className: "stroke-brand" })] }) }));
|
|
36
|
+
}
|
|
37
|
+
/** Where the tile sits on the 280 by 196 box, and its parts inside it. */
|
|
38
|
+
const TILE = { x: 138.25, y: 49, w: 126, h: 91, r: 14, edge: 1.75 };
|
|
39
|
+
const COVER = { inset: 5.25, w: 112, h: 59.5, r: 8.75 };
|
|
40
|
+
const HINT = { x: 12.25, y: 73.5, w: 52.5, h: 5.25 };
|
|
41
|
+
/** Recent plugs' picture, on the 280 by 196 box the design draws. */
|
|
42
|
+
function PlugToLiveIllustration({ picture = EMPTY_CREATIONS_PREVIEWS[0], className, ...props }) {
|
|
43
|
+
const clip = `cg-plug-to-live-${React.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`;
|
|
44
|
+
return (_jsx("div", { "data-slot": "plug-to-live-illustration", "aria-hidden": "true", className: cn("w-full max-w-70", className), ...props, children: _jsxs("svg", { viewBox: "0 0 280 196", className: "block h-auto w-full overflow-visible", focusable: "false", children: [_jsx("defs", { children: _jsx("clipPath", { id: clip, children: _jsx("rect", { x: TILE.x + COVER.inset, y: TILE.y + COVER.inset, width: COVER.w, height: COVER.h, rx: COVER.r }) }) }), _jsx("rect", { "data-part": "line", x: 78.75, y: 94.5, width: 59.5, height: 5.25, rx: 2.625, className: "fill-cyan" }), _jsx("g", { "data-part": "plug", transform: "translate(-85.75 35) scale(1.75)", className: "fill-brand", children: _jsx("path", { d: SOCKET_GLYPH_PATH }) }), _jsxs("g", { "data-part": "tile", children: [_jsx("rect", { x: TILE.x + TILE.edge / 2, y: TILE.y + TILE.edge / 2, width: TILE.w - TILE.edge, height: TILE.h - TILE.edge, rx: TILE.r - TILE.edge / 2, strokeWidth: TILE.edge, className: "fill-(--cg-neutral-0) stroke-brand-100" }), _jsx("image", { href: picture, x: TILE.x + COVER.inset, y: TILE.y + COVER.inset, width: COVER.w, height: COVER.h, preserveAspectRatio: "xMidYMid slice", clipPath: `url(#${clip})` }), _jsx("rect", { x: TILE.x + HINT.x, y: TILE.y + HINT.y, width: HINT.w, height: HINT.h, rx: HINT.h / 2, className: "fill-brand-100" })] }), _jsx("circle", { "data-part": "live", cx: 248.5, cy: 49, r: 8.75, strokeWidth: 3.5, className: "fill-lime stroke-(--cg-neutral-0)" })] }) }));
|
|
45
|
+
}
|
|
46
|
+
export { AllClearIllustration, PlugToLiveIllustration };
|
|
47
|
+
//# sourceMappingURL=home-empty-illustrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home-empty-illustrations.js","sourceRoot":"","sources":["../../src/blocks/home-empty-illustrations.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAA;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,2EAA2E;AAC3E,SAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAiD;IAClG,OAAO,CACL,2BACY,wBAAwB,iBACtB,MAAM,EAClB,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,KACvC,KAAK,YAET,eAAK,OAAO,EAAC,eAAe,EAAC,SAAS,EAAC,sCAAsC,EAAC,SAAS,EAAC,OAAO,aAC7F,4BAAgB,MAAM,EAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,gBAAgB,GAAG,EAC1G,4BAAgB,QAAQ,EAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI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