@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
package/README.md
CHANGED
|
@@ -166,7 +166,7 @@ rest).
|
|
|
166
166
|
| `@cloudgrid-io/ui/prose.css` | long-form text |
|
|
167
167
|
| `@cloudgrid-io/ui/tokens.json` | the same values, machine-readable |
|
|
168
168
|
| `@cloudgrid-io/ui/install-content` | the install content as plain data, no React |
|
|
169
|
-
| `@cloudgrid-io/ui/email` | `renderEmail`: the CloudGrid email layout, content in, `{ html, text }` out, no React |
|
|
169
|
+
| `@cloudgrid-io/ui/email` | `renderEmail`: the CloudGrid email layout, content in, `{ html, text }` out, no React. `referralEmail`: the Refer a friend day-1 and weekly content for it (#517) |
|
|
170
170
|
| `@cloudgrid-io/ui/chart` | shadcn's chart (`ChartContainer`, `ChartTooltip`, `ChartTooltipContent`, `ChartLegend`, `ChartLegendContent`, `ChartStyle`) on Recharts, set to the library's defaults. Not in the root import, so a page that never draws a chart never loads Recharts |
|
|
171
171
|
| `@cloudgrid-io/ui/line-chart` | `LineChart`: one or more series over a date axis, on the chart above. Not in the root import, for the same reason |
|
|
172
172
|
|
|
@@ -14,10 +14,25 @@ import { type EntityCardTileSize } from "./entity-card.js";
|
|
|
14
14
|
* focus ring are the button's, as drawn. With `href` it renders as a link
|
|
15
15
|
* through `linkComponent` (Next's `Link`) and keeps the link role, the shape
|
|
16
16
|
* `EmptyCreations` uses; with only `onClick` it is a button.
|
|
17
|
+
*
|
|
18
|
+
* ## The Home look (#530)
|
|
19
|
+
*
|
|
20
|
+
* `look="home"` is the box of `EntityCard look="home"` (`ENTITY_CARD_HOME_BOX`,
|
|
21
|
+
* 302 x 238), and `span` is how many of those card slots it takes, so that on
|
|
22
|
+
* the new Home it fills the row when there are 1 to 3 creations (Asaf,
|
|
23
|
+
* 2026-11-20): `span={4 - creations}`. The widths count the Home row's 24px
|
|
24
|
+
* gap between slots, so pass `gap={24}` to the `ScrollRail` around it. The
|
|
25
|
+
* rail, its side arrows and when the tile shows at all are unchanged and the
|
|
26
|
+
* caller's, as today.
|
|
17
27
|
*/
|
|
18
|
-
declare
|
|
28
|
+
export declare const ADD_TILE_HOME_SPAN: Record<1 | 2 | 3, string>;
|
|
29
|
+
declare function AddTile({ size, look, span, label, href, linkComponent, onClick, className, ...props }: Omit<React.ComponentProps<"div">, "children" | "onClick"> & {
|
|
19
30
|
/** The card box it matches: `tile-lg` 329x242 (default) or `tile` 250x184. */
|
|
20
31
|
size?: EntityCardTileSize;
|
|
32
|
+
/** `"home"`: the Home card's box, 302 x 238, in place of `size` (#530). */
|
|
33
|
+
look?: "home";
|
|
34
|
+
/** With `look="home"`: how many card slots it fills, 1 to 3. Default 1. */
|
|
35
|
+
span?: 1 | 2 | 3;
|
|
21
36
|
/** The button's label, and so its accessible name. */
|
|
22
37
|
label?: string;
|
|
23
38
|
/** Where Add goes. Renders the control as a link. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tile.d.ts","sourceRoot":"","sources":["../../src/blocks/add-tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,
|
|
1
|
+
{"version":3,"file":"add-tile.d.ts","sourceRoot":"","sources":["../../src/blocks/add-tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAA8C,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG/G;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,CAMxD,CAAA;AAED,iBAAS,OAAO,CAAC,EACf,IAAgB,EAChB,IAAI,EACJ,IAAQ,EACR,KAAa,EACb,IAAI,EACJ,aAAa,EACb,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAC7D,8EAA8E;IAC9E,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2EAA2E;IAC3E,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAChB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mEAAmE;IACnE,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACjC,kFAAkF;IAClF,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;CAC/C,qBAuCA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
package/dist/blocks/add-tile.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { cn } from "../lib/cloudgrid-cn.js";
|
|
4
4
|
import { Button } from "../ui/button.js";
|
|
5
5
|
import { DASHED_LINE_CLASS } from "./dashed-line.js";
|
|
6
|
-
import { ENTITY_CARD_TILE_BOX } from "./entity-card.js";
|
|
6
|
+
import { ENTITY_CARD_HOME_BOX, ENTITY_CARD_TILE_BOX } from "./entity-card.js";
|
|
7
7
|
import { PlusIcon } from "./icons.js";
|
|
8
8
|
/**
|
|
9
9
|
* The dashed Add tile at the end of a row of cards (#382, spec §4.4, Figma
|
|
@@ -19,11 +19,28 @@ import { PlusIcon } from "./icons.js";
|
|
|
19
19
|
* focus ring are the button's, as drawn. With `href` it renders as a link
|
|
20
20
|
* through `linkComponent` (Next's `Link`) and keeps the link role, the shape
|
|
21
21
|
* `EmptyCreations` uses; with only `onClick` it is a button.
|
|
22
|
+
*
|
|
23
|
+
* ## The Home look (#530)
|
|
24
|
+
*
|
|
25
|
+
* `look="home"` is the box of `EntityCard look="home"` (`ENTITY_CARD_HOME_BOX`,
|
|
26
|
+
* 302 x 238), and `span` is how many of those card slots it takes, so that on
|
|
27
|
+
* the new Home it fills the row when there are 1 to 3 creations (Asaf,
|
|
28
|
+
* 2026-11-20): `span={4 - creations}`. The widths count the Home row's 24px
|
|
29
|
+
* gap between slots, so pass `gap={24}` to the `ScrollRail` around it. The
|
|
30
|
+
* rail, its side arrows and when the tile shows at all are unchanged and the
|
|
31
|
+
* caller's, as today.
|
|
22
32
|
*/
|
|
23
|
-
|
|
33
|
+
export const ADD_TILE_HOME_SPAN = {
|
|
34
|
+
1: ENTITY_CARD_HOME_BOX,
|
|
35
|
+
// 2 x 302 + 24
|
|
36
|
+
2: "w-157 h-59.5",
|
|
37
|
+
// 3 x 302 + 2 x 24
|
|
38
|
+
3: "w-238.5 h-59.5",
|
|
39
|
+
};
|
|
40
|
+
function AddTile({ size = "tile-lg", look, span = 1, label = "Add", href, linkComponent, onClick, className, ...props }) {
|
|
24
41
|
const Link = linkComponent ?? "a";
|
|
25
42
|
const content = (_jsxs(_Fragment, { children: [label, _jsx(PlusIcon, {})] }));
|
|
26
|
-
return (_jsx("div", { "data-slot": "add-tile", className: cn("flex shrink-0 items-center justify-center rounded-container", ENTITY_CARD_TILE_BOX[size], DASHED_LINE_CLASS, className), ...props, children: href !== undefined ? (_jsx(Button, { "data-slot": "add-tile-action", variant: "cta", size: "2xl", render: _jsx(Link, { href: href }), nativeButton: false, role: "link", onClick: onClick, children: content })) : (_jsx(Button, { "data-slot": "add-tile-action", variant: "cta", size: "2xl", type: "button", onClick: onClick, children: content })) }));
|
|
43
|
+
return (_jsx("div", { "data-slot": "add-tile", className: cn("flex shrink-0 items-center justify-center rounded-container", look === "home" ? ADD_TILE_HOME_SPAN[span] : ENTITY_CARD_TILE_BOX[size], DASHED_LINE_CLASS, className), ...props, children: href !== undefined ? (_jsx(Button, { "data-slot": "add-tile-action", variant: "cta", size: "2xl", render: _jsx(Link, { href: href }), nativeButton: false, role: "link", onClick: onClick, children: content })) : (_jsx(Button, { "data-slot": "add-tile-action", variant: "cta", size: "2xl", type: "button", onClick: onClick, children: content })) }));
|
|
27
44
|
}
|
|
28
45
|
export { AddTile };
|
|
29
46
|
//# sourceMappingURL=add-tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tile.js","sourceRoot":"","sources":["../../src/blocks/add-tile.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAA2B,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"add-tile.js","sourceRoot":"","sources":["../../src/blocks/add-tile.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAA2B,MAAM,2BAA2B,CAAA;AAC/G,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA8B;IAC3D,CAAC,EAAE,oBAAoB;IACvB,eAAe;IACf,CAAC,EAAE,cAAc;IACjB,mBAAmB;IACnB,CAAC,EAAE,gBAAgB;CACpB,CAAA;AAED,SAAS,OAAO,CAAC,EACf,IAAI,GAAG,SAAS,EAChB,IAAI,EACJ,IAAI,GAAG,CAAC,EACR,KAAK,GAAG,KAAK,EACb,IAAI,EACJ,aAAa,EACb,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EAgBT;IACC,MAAM,IAAI,GAAsB,aAAa,IAAI,GAAG,CAAA;IACpD,MAAM,OAAO,GAAG,CACd,8BACG,KAAK,EACN,KAAC,QAAQ,KAAG,IACX,CACJ,CAAA;IAED,OAAO,CACL,2BACY,UAAU,EACpB,SAAS,EAAE,EAAE,CACX,6DAA6D,EAC7D,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,EACvE,iBAAiB,EACjB,SAAS,CACV,KACG,KAAK,YAER,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CACpB,KAAC,MAAM,iBACK,iBAAiB,EAC3B,OAAO,EAAC,KAAK,EACb,IAAI,EAAC,KAAK,EACV,MAAM,EAAE,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI,EAC5B,YAAY,EAAE,KAAK,EACnB,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,OAAO,YAEf,OAAO,GACD,CACV,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,iBAAW,iBAAiB,EAAC,OAAO,EAAC,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,YACxF,OAAO,GACD,CACV,GACG,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type AvatarDiameter } from "./avatar.js";
|
|
3
|
-
import { type ImageAdjustStepOptions } from "./image-adjust-dialog.js";
|
|
3
|
+
import { type ImageAdjustPicked, type ImageAdjustSaved, type ImageAdjustStepOptions, type ImageAdjustView } from "./image-adjust-dialog.js";
|
|
4
4
|
/**
|
|
5
5
|
* A person's own avatar, pressed to choose a new photo (#367).
|
|
6
6
|
*
|
|
@@ -68,6 +68,33 @@ import { type ImageAdjustStepOptions } from "./image-adjust-dialog.js";
|
|
|
68
68
|
* file never opens the dialog. Without `adjust`, nothing changes: the markup
|
|
69
69
|
* and the behaviour are 0.63.0's, byte for byte, and so is the markup with it
|
|
70
70
|
* until a file is picked.
|
|
71
|
+
*
|
|
72
|
+
* ui#556: after the adjust step, `onSelectFile(file, { original, view })`
|
|
73
|
+
* also hands back the picked file, uncut, and the view it was cut at. A pick
|
|
74
|
+
* always opens centred at 100%.
|
|
75
|
+
*
|
|
76
|
+
* ## The photo menu (ui#556), opt-in
|
|
77
|
+
*
|
|
78
|
+
* The Grid logo's menu (ui#544) on the profile picture, from the same pieces
|
|
79
|
+
* (`PictureMenuItems`, `useImageAdjustCurrent`), so the two behave alike.
|
|
80
|
+
* With `onAdjust` or `onRemove`, and a photo (`src`):
|
|
81
|
+
*
|
|
82
|
+
* - Pressing the picture opens a menu under it instead of the file chooser:
|
|
83
|
+
* "Adjust photo" (with `onAdjust`), "Replace photo", and "Remove photo"
|
|
84
|
+
* (with `onRemove`). The picture keeps its name, its camera, its focus line
|
|
85
|
+
* and its one tab stop; it is the menu's trigger.
|
|
86
|
+
* - "Adjust photo" opens the adjust step in the circle on `originalSrc` at
|
|
87
|
+
* `view` when there is an original, else on `src` centred at 100%; Save
|
|
88
|
+
* calls `onAdjust(file, { view })`. "Replace photo" picks a picture, then
|
|
89
|
+
* the adjust step (always on with the menu), and Save calls
|
|
90
|
+
* `onSelectFile(file, { original, view })`. "Remove photo" calls `onRemove`.
|
|
91
|
+
* Cancel calls nothing.
|
|
92
|
+
* - With no photo the picture goes straight to the file chooser, as the logo
|
|
93
|
+
* tile does with no logo, so the markup is as before. There is no pencil
|
|
94
|
+
* badge here, so the menu is only ever opened with a photo, and its pick
|
|
95
|
+
* row always reads "Replace photo".
|
|
96
|
+
*
|
|
97
|
+
* Without `onAdjust` and `onRemove` nothing changes, byte for byte.
|
|
71
98
|
*/
|
|
72
99
|
/** The picker's default list: JPG, PNG and WebP. */
|
|
73
100
|
export declare const AVATAR_PICKER_ACCEPT = "image/jpeg,image/png,image/webp";
|
|
@@ -97,8 +124,12 @@ export type AvatarPickerProps = {
|
|
|
97
124
|
src?: string;
|
|
98
125
|
/** The diameter, from `Avatar`'s ramp. Defaults to 56, the profile header's. */
|
|
99
126
|
size?: AvatarDiameter;
|
|
100
|
-
/**
|
|
101
|
-
|
|
127
|
+
/**
|
|
128
|
+
* A good file, after the type and size checks. The caller uploads it. After
|
|
129
|
+
* the adjust step, the second argument is the picked file, uncut, and the
|
|
130
|
+
* view it was cut at (ui#556), so the caller can keep both.
|
|
131
|
+
*/
|
|
132
|
+
onSelectFile: (file: File, picked?: ImageAdjustPicked) => void;
|
|
102
133
|
/** A file that failed a check, and which one. */
|
|
103
134
|
onReject?: (file: File, reason: AvatarPickerRejection) => void;
|
|
104
135
|
/** The native attribute's syntax. Defaults to JPG, PNG and WebP. */
|
|
@@ -116,8 +147,23 @@ export type AvatarPickerProps = {
|
|
|
116
147
|
* ("Adjust photo") and the output's side (512).
|
|
117
148
|
*/
|
|
118
149
|
adjust?: boolean | ImageAdjustStepOptions;
|
|
150
|
+
/**
|
|
151
|
+
* ui#556: the photo menu's "Adjust photo". Save calls this with the
|
|
152
|
+
* adjusted square and the view it was cut at. With a photo, pressing the
|
|
153
|
+
* picture opens the menu.
|
|
154
|
+
*/
|
|
155
|
+
onAdjust?: (file: File, saved: ImageAdjustSaved) => void;
|
|
156
|
+
/** ui#556: the photo menu's "Remove photo", shown while there is a `src`. Also opens the menu. */
|
|
157
|
+
onRemove?: () => void;
|
|
158
|
+
/**
|
|
159
|
+
* ui#556: the picture the photo was cut from. "Adjust photo" opens on it,
|
|
160
|
+
* at `view`, instead of on `src`. Same-origin, CORS, or a `blob:` URL.
|
|
161
|
+
*/
|
|
162
|
+
originalSrc?: string;
|
|
163
|
+
/** ui#556: the view the photo was cut at, from `originalSrc`. Ignored without it. */
|
|
164
|
+
view?: ImageAdjustView;
|
|
119
165
|
className?: string;
|
|
120
166
|
};
|
|
121
|
-
declare function AvatarPicker({ name, seed, src, size, onSelectFile, onReject, accept, maxBytes, pending, disabled, label, adjust, className, }: AvatarPickerProps): React.JSX.Element;
|
|
167
|
+
declare function AvatarPicker({ name, seed, src, size, onSelectFile, onReject, accept, maxBytes, pending, disabled, label, adjust, onAdjust, onRemove, originalSrc, view, className, }: AvatarPickerProps): React.JSX.Element;
|
|
122
168
|
export { AvatarPicker };
|
|
123
169
|
//# sourceMappingURL=avatar-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-picker.d.ts","sourceRoot":"","sources":["../../src/blocks/avatar-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"avatar-picker.d.ts","sourceRoot":"","sources":["../../src/blocks/avatar-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAGlE,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACrB,MAAM,mCAAmC,CAAA;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8FG;AAEH,oDAAoD;AACpD,eAAO,MAAM,oBAAoB,oCAAoC,CAAA;AAErE,uEAAuE;AACvE,eAAO,M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,CAAA;IAClB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,sBAAsB,CAAA;IACzC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACxD,kGAAkG;IAClG,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAKD,iBAAS,YAAY,CAAC,EACpB,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAS,EACT,YAAY,EACZ,QAAQ,EACR,MAA6B,EAC7B,QAAQ,EACR,OAAe,EACf,QAAgB,EAChB,KAA2B,EAC3B,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,SAAS,GACV,EAAE,iBAAiB,qBAwGnB;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { cn } from "../lib/cloudgrid-cn.js";
|
|
5
5
|
import { Avatar } from "./avatar.js";
|
|
6
6
|
import { ChangePhotoIcon } from "./icons.js";
|
|
7
|
-
import {
|
|
7
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "../ui/dropdown-menu.js";
|
|
8
|
+
import { useImageAdjustCurrent, useImageAdjustStep, } from "./image-adjust-dialog.js";
|
|
9
|
+
import { PictureMenuItems } from "./picture-menu.js";
|
|
8
10
|
import { Spinner } from "../ui/spinner.js";
|
|
9
11
|
/**
|
|
10
12
|
* A person's own avatar, pressed to choose a new photo (#367).
|
|
@@ -73,6 +75,33 @@ import { Spinner } from "../ui/spinner.js";
|
|
|
73
75
|
* file never opens the dialog. Without `adjust`, nothing changes: the markup
|
|
74
76
|
* and the behaviour are 0.63.0's, byte for byte, and so is the markup with it
|
|
75
77
|
* until a file is picked.
|
|
78
|
+
*
|
|
79
|
+
* ui#556: after the adjust step, `onSelectFile(file, { original, view })`
|
|
80
|
+
* also hands back the picked file, uncut, and the view it was cut at. A pick
|
|
81
|
+
* always opens centred at 100%.
|
|
82
|
+
*
|
|
83
|
+
* ## The photo menu (ui#556), opt-in
|
|
84
|
+
*
|
|
85
|
+
* The Grid logo's menu (ui#544) on the profile picture, from the same pieces
|
|
86
|
+
* (`PictureMenuItems`, `useImageAdjustCurrent`), so the two behave alike.
|
|
87
|
+
* With `onAdjust` or `onRemove`, and a photo (`src`):
|
|
88
|
+
*
|
|
89
|
+
* - Pressing the picture opens a menu under it instead of the file chooser:
|
|
90
|
+
* "Adjust photo" (with `onAdjust`), "Replace photo", and "Remove photo"
|
|
91
|
+
* (with `onRemove`). The picture keeps its name, its camera, its focus line
|
|
92
|
+
* and its one tab stop; it is the menu's trigger.
|
|
93
|
+
* - "Adjust photo" opens the adjust step in the circle on `originalSrc` at
|
|
94
|
+
* `view` when there is an original, else on `src` centred at 100%; Save
|
|
95
|
+
* calls `onAdjust(file, { view })`. "Replace photo" picks a picture, then
|
|
96
|
+
* the adjust step (always on with the menu), and Save calls
|
|
97
|
+
* `onSelectFile(file, { original, view })`. "Remove photo" calls `onRemove`.
|
|
98
|
+
* Cancel calls nothing.
|
|
99
|
+
* - With no photo the picture goes straight to the file chooser, as the logo
|
|
100
|
+
* tile does with no logo, so the markup is as before. There is no pencil
|
|
101
|
+
* badge here, so the menu is only ever opened with a photo, and its pick
|
|
102
|
+
* row always reads "Replace photo".
|
|
103
|
+
*
|
|
104
|
+
* Without `onAdjust` and `onRemove` nothing changes, byte for byte.
|
|
76
105
|
*/
|
|
77
106
|
/** The picker's default list: JPG, PNG and WebP. */
|
|
78
107
|
export const AVATAR_PICKER_ACCEPT = "image/jpeg,image/png,image/webp";
|
|
@@ -112,22 +141,39 @@ export function routeAvatarFile(f, { accept = AVATAR_PICKER_ACCEPT, maxBytes, on
|
|
|
112
141
|
onSelectFile(f);
|
|
113
142
|
}
|
|
114
143
|
const OVERLAY = "absolute inset-0 grid place-items-center rounded-pill bg-scrim-strong text-ink";
|
|
115
|
-
function AvatarPicker({ name, seed, src, size = 56, onSelectFile, onReject, accept = AVATAR_PICKER_ACCEPT, maxBytes, pending = false, disabled = false, label = AVATAR_PICKER_LABEL, adjust, className, }) {
|
|
144
|
+
function AvatarPicker({ name, seed, src, size = 56, onSelectFile, onReject, accept = AVATAR_PICKER_ACCEPT, maxBytes, pending = false, disabled = false, label = AVATAR_PICKER_LABEL, adjust, onAdjust, onRemove, originalSrc, view, className, }) {
|
|
116
145
|
const input = React.useRef(null);
|
|
117
146
|
const off = disabled || pending;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
147
|
+
// ui#556: the photo menu, opened from the picture while there is a photo.
|
|
148
|
+
const menu = Boolean(onAdjust || onRemove);
|
|
149
|
+
const pictureMenu = menu && Boolean(src);
|
|
150
|
+
const adjusting = useImageAdjustStep(adjust || menu, "circle", onSelectFile);
|
|
151
|
+
const current = useImageAdjustCurrent(adjust, "circle", { src, originalSrc, view }, onAdjust);
|
|
152
|
+
const pick = () => {
|
|
153
|
+
if (off)
|
|
154
|
+
return;
|
|
155
|
+
input.current?.click();
|
|
156
|
+
};
|
|
157
|
+
const pictureProps = {
|
|
158
|
+
"aria-label": label,
|
|
159
|
+
"aria-busy": pending || undefined,
|
|
160
|
+
disabled: off,
|
|
161
|
+
className: cn("group/avatar-picker relative inline-flex shrink-0 cursor-pointer rounded-pill outline-none", "focus-line", "disabled:cursor-not-allowed", disabled && !pending ? "disabled:opacity-50" : ""),
|
|
162
|
+
};
|
|
163
|
+
const pictureInside = (_jsxs(_Fragment, { children: [_jsx(Avatar, { name: name, seed: seed, src: src, size: size }), pending ? (_jsx("span", { "data-cg-surface": "ink", "aria-hidden": "true", className: OVERLAY, children: _jsx(Spinner, { decorative: true, size: "lg" }) })) : disabled ? null : (_jsx("span", { "data-slot": "avatar-picker-mark", "data-cg-surface": "ink", "aria-hidden": "true", className: cn(OVERLAY, "opacity-0 transition-opacity duration-150 motion-reduce:transition-none", "group-hover/avatar-picker:opacity-100 group-focus-visible/avatar-picker:opacity-100"), children: _jsx(ChangePhotoIcon, { className: "size-[40%] min-h-3.5 min-w-3.5 shrink-0" }) }))] }));
|
|
164
|
+
return (_jsxs("span", { "data-slot": "avatar-picker", "data-pending": pending || undefined, className: cn("relative inline-flex shrink-0", className), children: [pictureMenu ? (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { ...pictureProps, children: pictureInside }), _jsx(DropdownMenuContent, { "data-slot": "avatar-picker-menu", className: "w-max", children: _jsx(PictureMenuItems, { noun: "photo", picture: true, onAdjust: onAdjust
|
|
165
|
+
? () => {
|
|
166
|
+
if (!off)
|
|
167
|
+
current.open();
|
|
168
|
+
}
|
|
169
|
+
: undefined, onPick: pick, onRemove: onRemove }) })] })) : (_jsx("button", { type: "button", ...pictureProps, onClick: pick, children: pictureInside })), _jsx("input", { ref: input, type: "file", accept: accept, disabled: off, hidden: true, tabIndex: -1, onChange: (e) => {
|
|
124
170
|
const picked = e.target.files?.[0];
|
|
125
171
|
// Cleared before routing, so the same file can be picked again even
|
|
126
172
|
// when a callback throws.
|
|
127
173
|
e.target.value = "";
|
|
128
174
|
if (picked)
|
|
129
175
|
routeAvatarFile(picked, { accept, maxBytes, onSelectFile: adjusting.pick, onReject });
|
|
130
|
-
} }), adjusting.dialog] }));
|
|
176
|
+
} }), adjusting.dialog || current.dialog ? (_jsxs(_Fragment, { children: [adjusting.dialog, current.dialog] })) : null] }));
|
|
131
177
|
}
|
|
132
178
|
export { AvatarPicker };
|
|
133
179
|
//# sourceMappingURL=avatar-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-picker.js","sourceRoot":"","sources":["../../src/blocks/avatar-picker.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAuB,MAAM,sBAAsB,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"avatar-picker.js","sourceRoot":"","sources":["../../src/blocks/avatar-picker.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAuB,MAAM,sBAAsB,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACpG,OAAO,EACL,qBAAqB,EACrB,kBAAkB,GAKnB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8FG;AAEH,oDAAoD;AACpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,iCAAiC,CAAA;AAErE,uEAAuE;AACvE,MAAM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AQ,KAAK,YAAY,EAAE,OAAO,EAAE,IAAI,YAClD,aAAa,GACP,CACV,EACD,gBACE,GAAG,EAAE,KAAK,EACV,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,GAAG,EACb,MAAM,QACN,QAAQ,EAAE,CAAC,CAAC,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;oBACd,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAA;oBAClC,oEAAoE;oBACpE,0BAA0B;oBAC1B,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,EAAE,CAAA;oBACnB,IAAI,MAAM;wBAAE,eAAe,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;gBACnG,CAAC,GACD,EAGD,SAAS,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CACpC,8BACG,SAAS,CAAC,MAAM,EAChB,OAAO,CAAC,MAAM,IACd,CACJ,CAAC,CAAC,CAAC,IAAI,IACH,CACR,CAAA;AACH,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* `BentoCard`'s hint place (ui#546), the card's one client piece, so the card
|
|
4
|
+
* itself stays a server component. The room is what a stretch gives the card:
|
|
5
|
+
* the place has a zero basis and no least height and takes back the card's 16
|
|
6
|
+
* gap, so it adds nothing to the card's height. With room for it (`useFits`),
|
|
7
|
+
* a hairline where the content ends and the hint centred below it, at least
|
|
8
|
+
* 16 under the hairline; under the hint the card's own 24 padding is the
|
|
9
|
+
* clearance. So the room it needs is the hint itself: the hairline, 16, and
|
|
10
|
+
* the hint (`StretchHint`, the round and its line side by side: about 58). Without that room, out of sight, out of the Tab
|
|
11
|
+
* order and silent.
|
|
12
|
+
*/
|
|
13
|
+
export declare function BentoCardHint({ children }: {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=bento-card-hint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bento-card-hint.d.ts","sourceRoot":"","sources":["../../src/blocks/bento-card-hint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAuBxE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { useFits } from "../lib/fit.js";
|
|
6
|
+
/**
|
|
7
|
+
* `BentoCard`'s hint place (ui#546), the card's one client piece, so the card
|
|
8
|
+
* itself stays a server component. The room is what a stretch gives the card:
|
|
9
|
+
* the place has a zero basis and no least height and takes back the card's 16
|
|
10
|
+
* gap, so it adds nothing to the card's height. With room for it (`useFits`),
|
|
11
|
+
* a hairline where the content ends and the hint centred below it, at least
|
|
12
|
+
* 16 under the hairline; under the hint the card's own 24 padding is the
|
|
13
|
+
* clearance. So the room it needs is the hint itself: the hairline, 16, and
|
|
14
|
+
* the hint (`StretchHint`, the round and its line side by side: about 58). Without that room, out of sight, out of the Tab
|
|
15
|
+
* order and silent.
|
|
16
|
+
*/
|
|
17
|
+
export function BentoCardHint({ children }) {
|
|
18
|
+
const space = React.useRef(null);
|
|
19
|
+
const body = React.useRef(null);
|
|
20
|
+
const shown = useFits(space, body);
|
|
21
|
+
return (_jsx("div", { "data-slot": "bento-card-hint", "data-shown": shown, className: "-mt-4 flex min-h-0 flex-[1_1_0] flex-col overflow-hidden", children: _jsxs("div", { "data-slot": "bento-card-hint-shown", className: cn("flex min-h-0 flex-1 flex-col transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none", shown ? "visible opacity-100" : "invisible opacity-0"), children: [_jsx("div", { "data-slot": "bento-card-hint-rule", className: "h-px shrink-0 bg-hairline" }), _jsx("div", { ref: space, "data-slot": "bento-card-hint-space", className: "flex min-h-0 flex-1 flex-col justify-center", children: _jsx("div", { ref: body, "data-slot": "bento-card-hint-body", className: "pt-4", children: children }) })] }) }));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=bento-card-hint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bento-card-hint.js","sourceRoot":"","sources":["../../src/blocks/bento-card-hint.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAiC;IACvE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAA;IAChD,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAA;IAC/C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IAElC,OAAO,CACL,2BAAe,iBAAiB,gBAAa,KAAK,EAAE,SAAS,EAAC,0DAA0D,YACtH,4BACY,uBAAuB,EACjC,SAAS,EAAE,EAAE,CACX,kHAAkH,EAClH,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,qBAAqB,CACtD,aAED,2BAAe,sBAAsB,EAAC,SAAS,EAAC,2BAA2B,GAAG,EAC9E,cAAK,GAAG,EAAE,KAAK,eAAY,uBAAuB,EAAC,SAAS,EAAC,6CAA6C,YACxG,cAAK,GAAG,EAAE,IAAI,eAAY,sBAAsB,EAAC,SAAS,EAAC,MAAM,YAC9D,QAAQ,GACL,GACF,IACF,GACF,CACP,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The card every section of the Console's 2026 Home sits in (ui#533): "Pinned",
|
|
4
|
+
* "My statistics", "My top creations", "Needs attention", "Recent plugs". A
|
|
5
|
+
* white card with a hairline edge, a title, an optional action at the title's
|
|
6
|
+
* right (a "See all" link, a period select, a pager) and an optional line under
|
|
7
|
+
* the title. Everything else is the caller's children.
|
|
8
|
+
*
|
|
9
|
+
* ## It is as tall as its content
|
|
10
|
+
*
|
|
11
|
+
* No height, no clipping: the card grows when its content grows and shrinks
|
|
12
|
+
* when it shrinks. Its children stack 16 apart, so a spacer child with
|
|
13
|
+
* `flex-1` (the statistics card's footer) can push the last row down when a
|
|
14
|
+
* grid row stretches the card to its neighbour's height, which a CSS grid does
|
|
15
|
+
* by default.
|
|
16
|
+
*
|
|
17
|
+
* ## The values
|
|
18
|
+
*
|
|
19
|
+
* card `bg-card`, `border-hairline`, radius 12 (`rounded-md`),
|
|
20
|
+
* 24 padding (`p-6`), children 16 apart (`gap-4`)
|
|
21
|
+
* title 20 semibold (`text-heading-md font-bold`) on a 28 line
|
|
22
|
+
* (`leading-7`): the heading rung's own leading is 1.2, 24, and
|
|
23
|
+
* the design draws the title row 28 tall
|
|
24
|
+
* description Body (`text-body-sm`, 14 in the Console) in `text-faint-strong`
|
|
25
|
+
* action at the right of the title row, centred on it, never shrunk
|
|
26
|
+
*
|
|
27
|
+
* The roles flip on the panel and ink like every other card.
|
|
28
|
+
*
|
|
29
|
+
* ## The hint (ui#546)
|
|
30
|
+
*
|
|
31
|
+
* `hint` is shown only in room a stretch gives the card: when the Home bento
|
|
32
|
+
* (`HomeBento`) stretches it to meet the other column and the room is at least
|
|
33
|
+
* the hint's own height. Then a hairline sits where the content ends and the
|
|
34
|
+
* hint is centred in the space below it, at least 16 under the hairline (the
|
|
35
|
+
* card's own padding is the room under it).
|
|
36
|
+
* A card at its own height never shows it, and a full card never does either.
|
|
37
|
+
* The hint's place has a zero basis and no least height, and takes back the
|
|
38
|
+
* card's 16 gap, so a card with a hint is exactly as tall as one without. The
|
|
39
|
+
* room is measured by `useFits` (one ResizeObserver, no timers), in
|
|
40
|
+
* `BentoCardHint`, the one client piece, so the card stays a server component. It fades in
|
|
41
|
+
* over 200ms, at once under reduced motion; while hidden it is out of sight,
|
|
42
|
+
* out of the Tab order and silent to a screen reader. The Home's hint is
|
|
43
|
+
* `StretchHint`.
|
|
44
|
+
*
|
|
45
|
+
* ## Semantics
|
|
46
|
+
*
|
|
47
|
+
* A `section` named by its heading. The heading is an `h2` unless `level`
|
|
48
|
+
* says otherwise: Home's sections sit under the page's own `h1`.
|
|
49
|
+
*/
|
|
50
|
+
declare function BentoCard({ title, description, action, hint, level, className, children, ...props }: Omit<React.ComponentProps<"section">, "title"> & {
|
|
51
|
+
title: React.ReactNode;
|
|
52
|
+
description?: React.ReactNode;
|
|
53
|
+
action?: React.ReactNode;
|
|
54
|
+
/** Shown under the content only when a stretch gives the card room for it (ui#546). */
|
|
55
|
+
hint?: React.ReactNode;
|
|
56
|
+
level?: 2 | 3 | 4;
|
|
57
|
+
}): React.JSX.Element;
|
|
58
|
+
export { BentoCard };
|
|
59
|
+
//# sourceMappingURL=bento-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bento-card.d.ts","sourceRoot":"","sources":["../../src/blocks/bento-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,iBAAS,SAAS,CAAC,EACjB,KAAK,EACL,WAAW,EACX,MAAM,EACN,IAAI,EACJ,KAAS,EACT,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,GAAG;IAClD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,uFAAuF;IACvF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;CAClB,qBA8BA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { BentoCardHint } from "./bento-card-hint.js";
|
|
5
|
+
/**
|
|
6
|
+
* The card every section of the Console's 2026 Home sits in (ui#533): "Pinned",
|
|
7
|
+
* "My statistics", "My top creations", "Needs attention", "Recent plugs". A
|
|
8
|
+
* white card with a hairline edge, a title, an optional action at the title's
|
|
9
|
+
* right (a "See all" link, a period select, a pager) and an optional line under
|
|
10
|
+
* the title. Everything else is the caller's children.
|
|
11
|
+
*
|
|
12
|
+
* ## It is as tall as its content
|
|
13
|
+
*
|
|
14
|
+
* No height, no clipping: the card grows when its content grows and shrinks
|
|
15
|
+
* when it shrinks. Its children stack 16 apart, so a spacer child with
|
|
16
|
+
* `flex-1` (the statistics card's footer) can push the last row down when a
|
|
17
|
+
* grid row stretches the card to its neighbour's height, which a CSS grid does
|
|
18
|
+
* by default.
|
|
19
|
+
*
|
|
20
|
+
* ## The values
|
|
21
|
+
*
|
|
22
|
+
* card `bg-card`, `border-hairline`, radius 12 (`rounded-md`),
|
|
23
|
+
* 24 padding (`p-6`), children 16 apart (`gap-4`)
|
|
24
|
+
* title 20 semibold (`text-heading-md font-bold`) on a 28 line
|
|
25
|
+
* (`leading-7`): the heading rung's own leading is 1.2, 24, and
|
|
26
|
+
* the design draws the title row 28 tall
|
|
27
|
+
* description Body (`text-body-sm`, 14 in the Console) in `text-faint-strong`
|
|
28
|
+
* action at the right of the title row, centred on it, never shrunk
|
|
29
|
+
*
|
|
30
|
+
* The roles flip on the panel and ink like every other card.
|
|
31
|
+
*
|
|
32
|
+
* ## The hint (ui#546)
|
|
33
|
+
*
|
|
34
|
+
* `hint` is shown only in room a stretch gives the card: when the Home bento
|
|
35
|
+
* (`HomeBento`) stretches it to meet the other column and the room is at least
|
|
36
|
+
* the hint's own height. Then a hairline sits where the content ends and the
|
|
37
|
+
* hint is centred in the space below it, at least 16 under the hairline (the
|
|
38
|
+
* card's own padding is the room under it).
|
|
39
|
+
* A card at its own height never shows it, and a full card never does either.
|
|
40
|
+
* The hint's place has a zero basis and no least height, and takes back the
|
|
41
|
+
* card's 16 gap, so a card with a hint is exactly as tall as one without. The
|
|
42
|
+
* room is measured by `useFits` (one ResizeObserver, no timers), in
|
|
43
|
+
* `BentoCardHint`, the one client piece, so the card stays a server component. It fades in
|
|
44
|
+
* over 200ms, at once under reduced motion; while hidden it is out of sight,
|
|
45
|
+
* out of the Tab order and silent to a screen reader. The Home's hint is
|
|
46
|
+
* `StretchHint`.
|
|
47
|
+
*
|
|
48
|
+
* ## Semantics
|
|
49
|
+
*
|
|
50
|
+
* A `section` named by its heading. The heading is an `h2` unless `level`
|
|
51
|
+
* says otherwise: Home's sections sit under the page's own `h1`.
|
|
52
|
+
*/
|
|
53
|
+
function BentoCard({ title, description, action, hint, level = 2, className, children, ...props }) {
|
|
54
|
+
const id = React.useId();
|
|
55
|
+
const Heading = `h${level}`;
|
|
56
|
+
return (_jsxs("section", { "data-slot": "bento-card", "aria-labelledby": id, className: cn("flex min-w-0 flex-col gap-4 rounded-md border border-hairline bg-card p-6 text-ink", className), ...props, children: [_jsxs("div", { "data-slot": "bento-card-header", className: "flex min-w-0 items-center justify-between gap-3", children: [_jsx(Heading, { id: id, "data-slot": "bento-card-title", className: "m-0 min-w-0 text-heading-md leading-7 font-bold text-ink", children: title }), action !== undefined && action !== null ? (_jsx("div", { "data-slot": "bento-card-action", className: "shrink-0", children: action })) : null] }), description !== undefined && description !== null ? (_jsx("p", { "data-slot": "bento-card-description", className: "m-0 text-body-sm text-faint-strong", children: description })) : null, children, hint !== undefined && hint !== null ? _jsx(BentoCardHint, { children: hint }) : null] }));
|
|
57
|
+
}
|
|
58
|
+
export { BentoCard };
|
|
59
|
+
//# sourceMappingURL=bento-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bento-card.js","sourceRoot":"","sources":["../../src/blocks/bento-card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,SAAS,SAAS,CAAC,EACjB,KAAK,EACL,WAAW,EACX,MAAM,EACN,IAAI,EACJ,KAAK,GAAG,CAAC,EACT,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAQT;IACC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,CAAA;IACxB,MAAM,OAAO,GAAG,IAAI,KAAK,EAAwB,CAAA;IAEjD,OAAO,CACL,gCACY,YAAY,qBACL,EAAE,EACnB,SAAS,EAAE,EAAE,CAAC,oFAAoF,EAAE,SAAS,CAAC,KAC1G,KAAK,aAET,4BAAe,mBAAmB,EAAC,SAAS,EAAC,iDAAiD,aAC5F,KAAC,OAAO,IAAC,EAAE,EAAE,EAAE,eAAY,kBAAkB,EAAC,SAAS,EAAC,0DAA0D,YAC/G,KAAK,GACE,EACT,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,CACzC,2BAAe,mBAAmB,EAAC,SAAS,EAAC,UAAU,YACpD,MAAM,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,CACnD,yBAAa,wBAAwB,EAAC,SAAS,EAAC,oCAAoC,YACjF,WAAW,GACV,CACL,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EACR,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,KAAC,aAAa,cAAE,IAAI,GAAiB,CAAC,CAAC,CAAC,IAAI,IAC3E,CACX,CAAA;AACH,CAAC;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coming-soon-hint.d.ts","sourceRoot":"","sources":["../../src/blocks/coming-soon-hint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"coming-soon-hint.d.ts","sourceRoot":"","sources":["../../src/blocks/coming-soon-hint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmM9B,iBAAS,cAAc,CAAC,EACtB,KAAK,EACL,QAAQ,GACT,EAAE;IACD,+FAA+F;IAC/F,KAAK,EAAE,MAAM,CAAA;IACb,iHAAiH;IACjH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,qBAuOA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|