@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
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type EntityKind } from "./entity-card.js";
|
|
3
|
+
/**
|
|
4
|
+
* The Console Home's left column (ui#539): "Pinned" and, under it in the same
|
|
5
|
+
* card, "Continue where you left off". Asaf's design, 2026-11-20; the Pinned
|
|
6
|
+
* hover was approved from a mockup.
|
|
7
|
+
*
|
|
8
|
+
* Presentational. The creations, the links and the handlers are the caller's;
|
|
9
|
+
* nothing here fetches, and nothing here knows whether a creation is pinned:
|
|
10
|
+
* `onUnpin` says the reader asked, and the caller's list is the truth after it.
|
|
11
|
+
*
|
|
12
|
+
* ## Pinned
|
|
13
|
+
*
|
|
14
|
+
* Three a page, each a thumbnail with the name under it and the filled pin, in
|
|
15
|
+
* the brand purple, before the name. With more than three, an arrow at the
|
|
16
|
+
* right pages through them, and after the last page it comes back to the first.
|
|
17
|
+
* With fewer than three the rest of the row is the empty state's soft slots, so
|
|
18
|
+
* a pinned creation is the same width whether it has company or not.
|
|
19
|
+
*
|
|
20
|
+
* Hover an item and its picture dims a little while an "Unpin" chip eases in
|
|
21
|
+
* at the picture's top right. The chip is its own button, beside the item's
|
|
22
|
+
* link rather than in it (no nested interactive), laid over the picture: a
|
|
23
|
+
* click on the chip calls `onUnpin`, a click anywhere else on the item opens
|
|
24
|
+
* the creation. The chip is out of reach of the pointer until it shows, so a
|
|
25
|
+
* tap never unpins by surprise; Tab reaches it, and it shows while it, or the
|
|
26
|
+
* item, holds focus. The chip and the arrow take the library's hover wash,
|
|
27
|
+
* laid over their own ground. Under reduced motion nothing eases.
|
|
28
|
+
*
|
|
29
|
+
* An item with a `liveHref` (Asaf, 2026-11-22, ui#559) also gets the open live
|
|
30
|
+
* arrow, the Home card's open, at the picture's top left: round, white on the
|
|
31
|
+
* picture, revealed with the chip and in the same way. It opens the live
|
|
32
|
+
* creation in a new tab; the item itself still opens `href`. Without a
|
|
33
|
+
* `liveHref` there is no arrow.
|
|
34
|
+
*
|
|
35
|
+
* On a touch screen, which has no hover (ui#559), the first tap on an item
|
|
36
|
+
* shows its hover state (the picture dims, the chip and the arrow ease in), a
|
|
37
|
+
* second tap opens it, and the chip and the arrow work on their first tap once
|
|
38
|
+
* they show. One item at a time; a tap outside or a scroll clears it. See
|
|
39
|
+
* `lib/touch-hover.ts`: the tapped look is the `group-data-[touch-hover]/pin:`
|
|
40
|
+
* twin of every hover class here.
|
|
41
|
+
*
|
|
42
|
+
* A creation's `kind` draws its mark in the name line, at the right, flat, as
|
|
43
|
+
* the Home card's name row draws it (Asaf, 2026-11-22, ui#559). It used to sit
|
|
44
|
+
* on the picture's top right and give way to the chip; off the picture, both
|
|
45
|
+
* top corners are the arrow's and the chip's. The name truncates before the
|
|
46
|
+
* mark, which keeps its place. No `kind`, no mark.
|
|
47
|
+
*
|
|
48
|
+
* ## Two a page on a phone (Asaf, 2026-11-22, ui#559)
|
|
49
|
+
*
|
|
50
|
+
* Three a page need room for the arrow, a 12 gap and the whole chip on each
|
|
51
|
+
* picture: 6 + 24 + 12 + 70 + 6 = 118 a picture, so 402 for the row with its
|
|
52
|
+
* two gaps and the pager (`PINNED_THREE_MIN`, in rem at 16). Narrower than that,
|
|
53
|
+
* Pinned shows two a page and the pager steps by two; the empty state's slots
|
|
54
|
+
* follow, so a pinned creation is the same width with company or without. The
|
|
55
|
+
* width is Pinned's own, never the screen's or the user agent's, and the
|
|
56
|
+
* columns are CSS, as the inspiration card's rows are (#549): Pinned is a
|
|
57
|
+
* container (`@container/pinned`), and under 25.125rem of it (402 at a 16
|
|
58
|
+
* root) the row is two columns and the third of a server's page of three is
|
|
59
|
+
* hidden, so the first paint is right and nothing re-lays out when the script
|
|
60
|
+
* arrives. The script only pages: it reads the width once in the commit that
|
|
61
|
+
* mounts Pinned, then with one ResizeObserver (`useBand`), and steps two at a
|
|
62
|
+
* time under the line. With exactly three pinned the server renders the pager
|
|
63
|
+
* the phone needs, hidden from 25.125rem, where three fit without it.
|
|
64
|
+
*
|
|
65
|
+
* Empty: three soft slots, an outline pin in each, "Pin a creation" under.
|
|
66
|
+
*
|
|
67
|
+
* ## The values
|
|
68
|
+
*
|
|
69
|
+
* thumbnail 216 by 98 at radius 8 (`rounded-xs`), on `bg-raised` until
|
|
70
|
+
* the picture paints; the row's three are 8 apart, the empty
|
|
71
|
+
* state's slots 24
|
|
72
|
+
* label 9 under the picture: the 15 filled pin in the accent role
|
|
73
|
+
* (`--cg-text-accent`: the brand purple on the page, white on the
|
|
74
|
+
* panel, lime on ink), 6, then the name in Small Medium
|
|
75
|
+
* (`text-caption font-medium`)
|
|
76
|
+
* arrow 24, the caret in the action colour (`text-cyan-dark`), 8 after
|
|
77
|
+
* the row, centred on it
|
|
78
|
+
* slot `bg-page` (the page grey; the hover wash on the panel and ink,
|
|
79
|
+
* where the page grey would be a light slab), a 30 outline pin
|
|
80
|
+
* in the middle, and
|
|
81
|
+
* "Pin a creation" in Small, `text-faint-strong`
|
|
82
|
+
* continue rows 40 tall, 6 apart: a 48 by 30 thumbnail at radius 8, 12,
|
|
83
|
+
* the name in Small Medium, and the time at the right in Small
|
|
84
|
+
* card `BentoCard`, its children 14 apart, a hairline between Pinned
|
|
85
|
+
* and Continue, whose title is 17 semibold (`text-heading-sm`)
|
|
86
|
+
*
|
|
87
|
+
* The muted words ("Pin a creation", the times, the empty line) are
|
|
88
|
+
* `text-faint-strong`, which reads at AA and flips with the surface; the design
|
|
89
|
+
* draws them in the lighter slate. The pins on an empty slot are decoration,
|
|
90
|
+
* in `text-faint`.
|
|
91
|
+
*/
|
|
92
|
+
/** A creation on the Home's lists. */
|
|
93
|
+
export type HomeCreation = {
|
|
94
|
+
/** A stable id: the key, and what a handler gets back with the item. */
|
|
95
|
+
id: string;
|
|
96
|
+
/** Its name. */
|
|
97
|
+
name: string;
|
|
98
|
+
/** Its picture. Decorative: the name is beside it. */
|
|
99
|
+
thumbnailSrc?: string;
|
|
100
|
+
/** Where it opens. Without it, `onOpen` makes the item a button. */
|
|
101
|
+
href?: string;
|
|
102
|
+
/** What it is: draws the kind badge on a pinned creation's picture. */
|
|
103
|
+
kind?: EntityKind;
|
|
104
|
+
/**
|
|
105
|
+
* The live creation. On a pinned item it draws the open live arrow, a new-tab
|
|
106
|
+
* link to it at the picture's top left, shown with the Unpin chip (ui#559).
|
|
107
|
+
* Without it, no arrow.
|
|
108
|
+
*/
|
|
109
|
+
liveHref?: string;
|
|
110
|
+
};
|
|
111
|
+
/** A creation the reader opened lately, and when, in the caller's words. */
|
|
112
|
+
export type RecentlyOpenedCreation = HomeCreation & {
|
|
113
|
+
/** "Opened 10m ago". */
|
|
114
|
+
opened: React.ReactNode;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* The least width of Pinned (its row and the pager) that shows three a page
|
|
118
|
+
* (ui#559), in px at a 16px root: three pictures of 118 (6, the 24 arrow, 12,
|
|
119
|
+
* the 70 chip, 6), two 8 gaps, and the 24 pager with its 8. It is measured with
|
|
120
|
+
* the pager in, whether or not it shows, so showing it never changes the count.
|
|
121
|
+
*/
|
|
122
|
+
export declare const PINNED_THREE_MIN = 402;
|
|
123
|
+
/** How many pinned creations a page shows at `width` px of Pinned, the root font at `rem` px. */
|
|
124
|
+
export declare function pinnedPerPage(width: number, rem: number): 2 | 3;
|
|
125
|
+
declare function PinnedCreations({ items, onUnpin, onOpen, linkComponent, emptyLabel, unpinLabel, liveLabel, nextLabel, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
126
|
+
/** The pinned creations, in the caller's order. */
|
|
127
|
+
items: readonly HomeCreation[];
|
|
128
|
+
/** The reader pressed Unpin on one. No chip without it. */
|
|
129
|
+
onUnpin?: (item: HomeCreation) => void;
|
|
130
|
+
/** Opens a creation that has no `href`. */
|
|
131
|
+
onOpen?: (item: HomeCreation) => void;
|
|
132
|
+
/** The element a link renders through, for a router's own link. */
|
|
133
|
+
linkComponent?: React.ElementType;
|
|
134
|
+
/** Under each empty slot. */
|
|
135
|
+
emptyLabel?: React.ReactNode;
|
|
136
|
+
/** The chip's word. A screen reader hears the creation's name after it. */
|
|
137
|
+
unpinLabel?: string;
|
|
138
|
+
/** The open live arrow's name and tooltip. A screen reader hears the creation's name after it. */
|
|
139
|
+
liveLabel?: string;
|
|
140
|
+
/** The arrow's accessible name. */
|
|
141
|
+
nextLabel?: string;
|
|
142
|
+
}): React.JSX.Element;
|
|
143
|
+
declare function RecentlyOpened({ items, onOpen, linkComponent, emptyLabel, className, ...props }: Omit<React.ComponentProps<"ul">, "children"> & {
|
|
144
|
+
/** The creations, most recent first, as the caller orders them. */
|
|
145
|
+
items: readonly RecentlyOpenedCreation[];
|
|
146
|
+
/** Opens a creation that has no `href`. */
|
|
147
|
+
onOpen?: (item: HomeCreation) => void;
|
|
148
|
+
/** The element a link renders through, for a router's own link. */
|
|
149
|
+
linkComponent?: React.ElementType;
|
|
150
|
+
/** Said when there is nothing yet. */
|
|
151
|
+
emptyLabel?: React.ReactNode;
|
|
152
|
+
}): React.JSX.Element;
|
|
153
|
+
/**
|
|
154
|
+
* The Home's left card: "Pinned", a hairline, "Continue where you left off".
|
|
155
|
+
* The card shell is #533's `BentoCard`, its children 14 apart as the design
|
|
156
|
+
* draws this card.
|
|
157
|
+
*/
|
|
158
|
+
declare function PinnedCard({ pinned, recent, onUnpin, onOpen, linkComponent, title, continueTitle, className, ...props }: Omit<React.ComponentProps<"section">, "title" | "children"> & {
|
|
159
|
+
pinned: readonly HomeCreation[];
|
|
160
|
+
recent: readonly RecentlyOpenedCreation[];
|
|
161
|
+
onUnpin?: (item: HomeCreation) => void;
|
|
162
|
+
onOpen?: (item: HomeCreation) => void;
|
|
163
|
+
linkComponent?: React.ElementType;
|
|
164
|
+
title?: React.ReactNode;
|
|
165
|
+
continueTitle?: React.ReactNode;
|
|
166
|
+
}): React.JSX.Element;
|
|
167
|
+
export { PinnedCard, PinnedCreations, RecentlyOpened };
|
|
168
|
+
//# sourceMappingURL=home-pinned.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home-pinned.d.ts","sourceRoot":"","sources":["../../src/blocks/home-pinned.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAM5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AAEH,sCAAsC;AACtC,MAAM,MAAM,YAAY,GAAG;IACzB,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAA;IACV,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,4EAA4E;AAC5E,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,wBAAwB;IACxB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAA;CACxB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,MAAM,CAAA;AAanC,iGAAiG;AACjG,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAE/D;AAmLD,iBAAS,eAAe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AAC,EAClB,MAAM,EACN,MAAM,EACN,OAAO,EACP,MAAM,EACN,aAAa,EACb,KAAgB,EAChB,aAA6C,EAC7C,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC/D,MAAM,EAAE,SAAS,YAAY,EAAE,CAAA;IAC/B,MAAM,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACzC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACtC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC,qBAWA;AAED,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { BentoCard } from "./bento-card.js";
|
|
6
|
+
import { EntityKindBadge } from "./entity-card.js";
|
|
7
|
+
import { ChevronRightIcon, OpenLiveIcon, PinFilledIcon, PinIcon, UnpinIcon } from "./icons.js";
|
|
8
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip.js";
|
|
9
|
+
import { useBand } from "../lib/fit.js";
|
|
10
|
+
import { TouchHover } from "../lib/touch-hover.js";
|
|
11
|
+
/**
|
|
12
|
+
* The least width of Pinned (its row and the pager) that shows three a page
|
|
13
|
+
* (ui#559), in px at a 16px root: three pictures of 118 (6, the 24 arrow, 12,
|
|
14
|
+
* the 70 chip, 6), two 8 gaps, and the 24 pager with its 8. It is measured with
|
|
15
|
+
* the pager in, whether or not it shows, so showing it never changes the count.
|
|
16
|
+
*/
|
|
17
|
+
export const PINNED_THREE_MIN = 402;
|
|
18
|
+
/** Three a page, where they fit. */
|
|
19
|
+
const PINNED_THREE_PER_PAGE = 3;
|
|
20
|
+
/**
|
|
21
|
+
* The row, in CSS on Pinned's own width, so the server's page is the painted
|
|
22
|
+
* one: three columns; under 25.125rem (`PINNED_THREE_MIN` / 16) two, and the
|
|
23
|
+
* third of a server's page of three hidden until the script pages two at a time.
|
|
24
|
+
*/
|
|
25
|
+
const PINNED_COLUMNS = "m-0 grid min-w-0 flex-1 list-none grid-cols-3 @max-[25.125rem]/pinned:grid-cols-2 @max-[25.125rem]/pinned:[&>li:nth-child(n+3)]:hidden p-0";
|
|
26
|
+
/** How many pinned creations a page shows at `width` px of Pinned, the root font at `rem` px. */
|
|
27
|
+
export function pinnedPerPage(width, rem) {
|
|
28
|
+
return width >= (PINNED_THREE_MIN / 16) * rem ? 3 : 2;
|
|
29
|
+
}
|
|
30
|
+
/** The hover wash, laid over a control's own ground rather than replacing it. */
|
|
31
|
+
const WASH = "hover:[background-image:linear-gradient(var(--cg-hover),var(--cg-hover))]";
|
|
32
|
+
/** What the touch rule (ui#559) reads as one pinned item. */
|
|
33
|
+
const PIN_SCOPE = '[data-slot="pinned-item"]';
|
|
34
|
+
/**
|
|
35
|
+
* How a control on a pinned picture (the chip, the arrow) arrives: invisible
|
|
36
|
+
* and inert at rest; on hover, on focus within the item, or after the first
|
|
37
|
+
* tap (ui#559), it eases in and takes the pointer.
|
|
38
|
+
*/
|
|
39
|
+
const PIN_CONTROL_REVEAL = [
|
|
40
|
+
"pointer-events-none translate-y-0.5 scale-95 opacity-0",
|
|
41
|
+
"group-hover/pin:pointer-events-auto group-hover/pin:translate-y-0 group-hover/pin:scale-100 group-hover/pin:opacity-100",
|
|
42
|
+
"group-focus-within/pin:pointer-events-auto group-focus-within/pin:translate-y-0 group-focus-within/pin:scale-100 group-focus-within/pin:opacity-100",
|
|
43
|
+
"group-data-[touch-hover]/pin:pointer-events-auto group-data-[touch-hover]/pin:translate-y-0 group-data-[touch-hover]/pin:scale-100 group-data-[touch-hover]/pin:opacity-100",
|
|
44
|
+
"transition-[opacity,translate,scale] duration-(--cg-duration) ease-out motion-reduce:transition-none",
|
|
45
|
+
];
|
|
46
|
+
/** What opens a creation: the caller's link, a button for `onOpen`, or nothing. */
|
|
47
|
+
function Opener({ item, onOpen, linkComponent, className, slot, children, }) {
|
|
48
|
+
if (item.href !== undefined) {
|
|
49
|
+
const Link = linkComponent ?? "a";
|
|
50
|
+
return (_jsx(Link, { href: item.href, "data-slot": slot, className: cn("text-ink no-underline", className), children: children }));
|
|
51
|
+
}
|
|
52
|
+
if (onOpen) {
|
|
53
|
+
return (_jsx("button", { type: "button", "data-slot": slot, onClick: () => onOpen(item), className: cn("cursor-pointer text-start text-ink", className), children: children }));
|
|
54
|
+
}
|
|
55
|
+
return (_jsx("div", { "data-slot": slot, className: className, children: children }));
|
|
56
|
+
}
|
|
57
|
+
function PinnedItem({ item, onUnpin, onOpen, linkComponent, unpinLabel, liveLabel, }) {
|
|
58
|
+
return (_jsxs("li", { "data-slot": "pinned-item", className: "group/pin relative min-w-0", children: [_jsxs(Opener, { item: item, onOpen: onOpen, linkComponent: linkComponent, slot: "pinned-open", className: "grid w-full min-w-0 gap-2.25 rounded-xs outline-none focus-line", children: [_jsx("span", { "data-slot": "pinned-thumbnail", className: "relative block aspect-[216/98] w-full overflow-hidden rounded-xs bg-raised", children: item.thumbnailSrc !== undefined ? (_jsx("img", { "data-slot": "pinned-picture", src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, className: "block size-full object-cover transition-[filter] duration-(--cg-duration) ease-out group-hover/pin:brightness-90 group-data-[touch-hover]/pin:brightness-90 motion-reduce:transition-none" })) : (_jsx("span", { "data-slot": "pinned-picture", "aria-hidden": "true", className: "block size-full transition-[filter] duration-(--cg-duration) ease-out group-hover/pin:brightness-90 group-data-[touch-hover]/pin:brightness-90 motion-reduce:transition-none" })) }), _jsxs("span", { "data-slot": "pinned-label", className: "flex min-w-0 items-center gap-1.5", children: [_jsx(PinFilledIcon, { className: "size-3.75 shrink-0 text-(--cg-text-accent)" }), _jsx("span", { "data-slot": "pinned-name", className: "min-w-0 truncate text-caption font-medium text-ink", children: item.name }), item.kind ? _jsx(EntityKindBadge, { kind: item.kind, lifted: false, className: "ms-auto shrink-0" }) : null] })] }), onUnpin ? (_jsxs("button", { type: "button", "data-slot": "pinned-unpin", onClick: () => onUnpin(item), className: cn(
|
|
59
|
+
// On a picture, so it does not flip with the surface: white, with
|
|
60
|
+
// the glyph colour every badge on a picture wears.
|
|
61
|
+
"absolute top-1.5 right-1.5 inline-flex h-6 cursor-pointer items-center gap-1 rounded-pill bg-(--cg-neutral-0) px-2 text-caption font-medium text-on-accent shadow-mark outline-none", PIN_CONTROL_REVEAL, WASH, "focus-line"), children: [_jsx(UnpinIcon, { className: "size-3.5 shrink-0" }), unpinLabel, _jsx("span", { className: "sr-only", children: ` ${item.name}` })] })) : null, item.liveHref !== undefined ? (
|
|
62
|
+
// The Home card's open (its glyph, its wash, its tooltip), round and
|
|
63
|
+
// on white because it sits on a picture, as the chip does. Beside the
|
|
64
|
+
// item's link, never in it.
|
|
65
|
+
_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { "aria-describedby": undefined, render: _jsx("a", { href: item.liveHref, target: "_blank", rel: "noopener noreferrer", "data-slot": "pinned-live", "aria-label": `${liveLabel} ${item.name}`, className: cn("absolute top-1.5 left-1.5 inline-flex size-6 cursor-pointer items-center justify-center rounded-pill bg-(--cg-neutral-0) text-on-accent no-underline shadow-mark outline-none", PIN_CONTROL_REVEAL, WASH, "focus-line") }), children: _jsx(OpenLiveIcon, { className: "size-5" }) }), _jsx(TooltipContent, { children: liveLabel })] })) : null] }));
|
|
66
|
+
}
|
|
67
|
+
/** A soft slot where a pinned creation would go. */
|
|
68
|
+
function PinnedSlot({ label }) {
|
|
69
|
+
return (_jsxs("li", { "data-slot": "pinned-slot", className: "grid min-w-0 gap-2.25", children: [_jsx("span", { "data-slot": "pinned-slot-art", "aria-hidden": "true", className: "flex aspect-[216/98] w-full items-center justify-center rounded-xs bg-page text-faint in-data-[cg-surface=panel]:bg-(--cg-hover) in-data-[cg-surface=ink]:bg-(--cg-hover)", children: _jsx(PinIcon, { className: "size-7.5" }) }), _jsxs("span", { "data-slot": "pinned-slot-label", className: "flex min-w-0 items-center gap-1.5 text-caption text-faint-strong", children: [_jsx(PinIcon, { className: "size-3.75 shrink-0 text-faint" }), _jsx("span", { className: "min-w-0 truncate", children: label })] })] }));
|
|
70
|
+
}
|
|
71
|
+
function PinnedCreations({ items, onUnpin, onOpen, linkComponent, emptyLabel = "Pin a creation", unpinLabel = "Unpin", liveLabel = "Open live app", nextLabel = "Next pinned creations", className, ...props }) {
|
|
72
|
+
const root = React.useRef(null);
|
|
73
|
+
// Three a page until measured (the server, the first render); the CSS has
|
|
74
|
+
// already drawn two under the line, so measuring changes no painted column.
|
|
75
|
+
const perPage = useBand(root, pinnedPerPage) ?? PINNED_THREE_PER_PAGE;
|
|
76
|
+
const [page, setPage] = React.useState(0);
|
|
77
|
+
const pages = Math.max(1, Math.ceil(items.length / perPage));
|
|
78
|
+
// A list that shrank under the current page shows its last page, not nothing.
|
|
79
|
+
const current = Math.min(page, pages - 1);
|
|
80
|
+
const shown = items.slice(current * perPage, (current + 1) * perPage);
|
|
81
|
+
const empty = items.length === 0;
|
|
82
|
+
const slots = empty ? perPage : perPage - shown.length;
|
|
83
|
+
return (_jsxs("div", { ref: root, "data-slot": "pinned-creations", className: cn("@container/pinned flex min-w-0 items-center gap-2 text-ink", className), ...props, children: [_jsxs("ul", { "data-slot": "pinned-list", className: cn(PINNED_COLUMNS, empty ? "gap-6" : "gap-2"), children: [shown.map((item) => (_jsx(PinnedItem, { item: item, onUnpin: onUnpin, onOpen: onOpen, linkComponent: linkComponent, unpinLabel: unpinLabel, liveLabel: liveLabel }, item.id))), Array.from({ length: slots }, (_, i) => (_jsx(PinnedSlot, { label: emptyLabel }, `slot-${i}`)))] }), items.length > 2 ? (_jsx("button", { type: "button", "data-slot": "pinned-next", "aria-label": nextLabel, onClick: () => setPage((current + 1) % pages), className: cn("inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-pill text-cyan-dark outline-none", items.length <= PINNED_THREE_PER_PAGE && "@min-[25.125rem]/pinned:hidden", WASH, "focus-line"), children: _jsx(ChevronRightIcon, { className: "size-6" }) })) : null, _jsx(TouchHover, { scope: PIN_SCOPE })] }));
|
|
84
|
+
}
|
|
85
|
+
function RecentlyOpened({ items, onOpen, linkComponent, emptyLabel = "Your recently opened creations will appear here.", className, ...props }) {
|
|
86
|
+
if (items.length === 0) {
|
|
87
|
+
return (_jsx("p", { "data-slot": "recently-opened-empty", className: cn("m-0 text-body-sm text-faint-strong", className), children: emptyLabel }));
|
|
88
|
+
}
|
|
89
|
+
return (_jsx("ul", { "data-slot": "recently-opened", className: cn("m-0 grid min-w-0 list-none gap-1.5 p-0 text-ink", className), ...props, children: items.map((item) => (_jsx("li", { "data-slot": "recently-opened-row", className: "flex min-w-0", children: _jsxs(Opener, { item: item, onOpen: onOpen, linkComponent: linkComponent, slot: "recently-opened-link", className: "flex h-10 min-w-0 flex-1 items-center gap-3 rounded-xs outline-none hover:bg-(--cg-hover) focus-line", children: [_jsx("span", { "data-slot": "recently-opened-thumbnail", className: "block h-7.5 w-12 shrink-0 overflow-hidden rounded-xs bg-raised", children: item.thumbnailSrc !== undefined ? (_jsx("img", { src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, className: "block size-full object-cover" })) : null }), _jsx("span", { "data-slot": "recently-opened-name", className: "min-w-0 truncate text-caption font-medium text-ink", children: item.name }), _jsx("span", { "data-slot": "recently-opened-time", className: "ms-auto shrink-0 text-caption text-faint-strong", children: item.opened })] }) }, item.id))) }));
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The Home's left card: "Pinned", a hairline, "Continue where you left off".
|
|
93
|
+
* The card shell is #533's `BentoCard`, its children 14 apart as the design
|
|
94
|
+
* draws this card.
|
|
95
|
+
*/
|
|
96
|
+
function PinnedCard({ pinned, recent, onUnpin, onOpen, linkComponent, title = "Pinned", continueTitle = "Continue where you left off", className, ...props }) {
|
|
97
|
+
return (_jsxs(BentoCard, { title: title, className: cn("gap-3.5", className), ...props, children: [_jsx(PinnedCreations, { items: pinned, onUnpin: onUnpin, onOpen: onOpen, linkComponent: linkComponent }), _jsx("hr", { "data-slot": "pinned-card-divider", className: "m-0 h-px border-0 bg-hairline" }), _jsx("h3", { "data-slot": "pinned-card-continue", className: "m-0 text-heading-sm leading-(--cg-body-line) font-bold text-ink", children: continueTitle }), _jsx(RecentlyOpened, { items: recent, onOpen: onOpen, linkComponent: linkComponent })] }));
|
|
98
|
+
}
|
|
99
|
+
export { PinnedCard, PinnedCreations, RecentlyOpened };
|
|
100
|
+
//# sourceMappingURL=home-pinned.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home-pinned.js","sourceRoot":"","sources":["../../src/blocks/home-pinned.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAmB,MAAM,2BAA2B,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACvG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,mBA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AC,KAAM,KAAK,aACrE,KAAC,eAAe,IAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAI,EAClG,0BAAc,qBAAqB,EAAC,SAAS,EAAC,+BAA+B,GAAG,EAChF,0BAAc,sBAAsB,EAAC,SAAS,EAAC,iEAAiE,YAC7G,aAAa,GACX,EACL,KAAC,cAAc,IAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAI,IACrE,CACb,CAAA;AACH,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,CAAA"}
|
package/dist/blocks/icons.d.ts
CHANGED
|
@@ -364,6 +364,32 @@
|
|
|
364
364
|
* commas, so a sentence in there is parsed as an export name.
|
|
365
365
|
*/
|
|
366
366
|
export { CubeMark as KindAgentIcon, LightbulbFilamentMark as KindInspirationIcon, LayoutMark as KindAppIcon, ArrowUpRightMark as OpenLiveIcon, ChartLineUpMark as EntityDashboardIcon, ListMagnifyingGlassMark as EntityDetailsIcon, GearSixMark as SettingsIcon, EyeMark as ViewsIcon, ThumbsUpMark as ReactionsIcon, ChatCircleMark as CommentsIcon, PushPinMark as SaveIcon, DotsThreeVerticalMark as MoreActionsIcon, } from "./phosphor-marks.js";
|
|
367
|
+
/**
|
|
368
|
+
* The Home creation card's counts (#530, Asaf, 2026-11-20): the two marks its
|
|
369
|
+
* pill draws on the picture, solid, at 12px.
|
|
370
|
+
*
|
|
371
|
+
* CardCommentsIcon Phosphor `chat-teardrop-text`, fill.
|
|
372
|
+
* CardViewsIcon Phosphor `eye`, fill.
|
|
373
|
+
*
|
|
374
|
+
* Their own role names, not `<Role>FilledIcon` twins: a twin is the same glyph
|
|
375
|
+
* as its role in the fill weight, and the design counts comments with the
|
|
376
|
+
* teardrop, where `CommentsIcon` is `chat-circle`. `EntityCard look="home"`
|
|
377
|
+
* draws them itself; they are exported for a caller that wants the same count
|
|
378
|
+
* somewhere else.
|
|
379
|
+
*/
|
|
380
|
+
export { ChatTeardropTextFillMark as CardCommentsIcon, EyeFillMark as CardViewsIcon, } from "./phosphor-marks.js";
|
|
381
|
+
/**
|
|
382
|
+
* The Home's Needs attention rows (ui#540, Asaf, 2026-11-20): what each row is
|
|
383
|
+
* about, at 22px before its title.
|
|
384
|
+
*
|
|
385
|
+
* RetryIcon Phosphor `arrow-counter-clockwise`: a plug that failed.
|
|
386
|
+
* Not `RefreshIcon` (`arrows-clockwise`, reload a view).
|
|
387
|
+
* ExpiringIcon Phosphor `monitor`: a creation about to expire.
|
|
388
|
+
* AwaitingReplyIcon Phosphor `chat-text`: comments waiting for a reply. Not
|
|
389
|
+
* `LeaveCommentIcon` (`chat-centered-text`, the fan's
|
|
390
|
+
* Comment) nor `CommentsStatIcon` (`chat-circle-text`).
|
|
391
|
+
*/
|
|
392
|
+
export { ArrowCounterClockwiseMark as RetryIcon, MonitorMark as ExpiringIcon, ChatTextMark as AwaitingReplyIcon, } from "./phosphor-marks.js";
|
|
367
393
|
/** Control affordances: the glyphs a primitive draws to work at all. */
|
|
368
394
|
export { CaretDownMark as ChevronDownIcon, CaretUpMark as ChevronUpIcon, CaretRightMark as ChevronRightIcon, CaretLeftMark as ChevronLeftIcon, CheckMark as CheckIcon, CheckBoldMark as CheckBoldIcon, XMark as CloseIcon, CopyMark as CopyIcon, CopyFillMark as CopyFilledIcon, MinusMark as MinusIcon, PlusMark as PlusIcon, ArrowDownMark as ArrowDownIcon, } from "./phosphor-marks.js";
|
|
369
395
|
/** Status: how a surface reports what happened. */
|
|
@@ -647,4 +673,24 @@ export { UserCircleFillMark as AccountFilledIcon, UsersFillMark as PeopleFilledI
|
|
|
647
673
|
* signature changes.
|
|
648
674
|
*/
|
|
649
675
|
export type { PhosphorMarkProps as CloudGridIconProps } from "./phosphor-marks.js";
|
|
676
|
+
/**
|
|
677
|
+
* The Home's Pinned (ui#539). `PinFilledIcon` is the filled pin before each
|
|
678
|
+
* pinned creation's name, the same artwork as `SaveFilledIcon` under the role
|
|
679
|
+
* the Home names (the Console's section is "Pinned" now). `UnpinIcon` is the
|
|
680
|
+
* pin struck through, on the chip that unpins a creation.
|
|
681
|
+
*/
|
|
682
|
+
export { PushPinFillMark as PinFilledIcon, PushPinSlashMark as UnpinIcon, } from "./phosphor-marks.js";
|
|
683
|
+
/**
|
|
684
|
+
* The help entry (ui#563, Asaf, 2026-11-22): the "?" in the Console's top bar
|
|
685
|
+
* and the three rows of the menu it opens.
|
|
686
|
+
*
|
|
687
|
+
* HelpIcon Phosphor `question`: the "?" in a circle, the trigger.
|
|
688
|
+
* ChatWithUsIcon `chat-circle`: Chat with us. The same artwork as
|
|
689
|
+
* `CommentsIcon` and `ChatAppIcon` under the role the menu
|
|
690
|
+
* names; a second role name, not a rename.
|
|
691
|
+
* DocsIcon `book-open`: Read the docs.
|
|
692
|
+
* ReportProblemIcon `bug`: Report a problem. The same artwork as
|
|
693
|
+
* `ReactionBrokenIcon`, the fan's "something's broken".
|
|
694
|
+
*/
|
|
695
|
+
export { QuestionMark as HelpIcon, ChatCircleMark as ChatWithUsIcon, BookOpenMark as DocsIcon, BugMark as ReportProblemIcon, } from "./phosphor-marks.js";
|
|
650
696
|
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/blocks/icons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAa,EAC9B,eAAe,IAAI,kBAAkB,EACrC,kBAAkB,IAAI,kBAAkB,EACxC,cAAc,IAAI,gBAAgB,EAClC,sBAAsB,IAAI,kBAAkB,EAC5C,YAAY,IAAI,gBAAgB,EAChC,iBAAiB,IAAI,wBAAwB,EAC7C,aAAa,IAAI,gBAAgB,GAClC,MAAM,8BAA8B,CAAA;AAErC;;;;;;GAMG;AACH,YAAY,EAAE,iBAAiB,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAE3F;;;;;GAKG;AACH,OAAO,EACL,eAAe,IAAI,aAAa,EAChC,gBAAgB,IAAI,SAAS,GAC9B,MAAM,8BAA8B,CAAA;AAErC;;;;;;;;;;;GAWG;AACH,OAAO,EACL,YAAY,IAAI,QAAQ,EACxB,cAAc,IAAI,cAAc,EAChC,YAAY,IAAI,QAAQ,EACxB,OAAO,IAAI,iBAAiB,GAC7B,MAAM,8BAA8B,CAAA"}
|
package/dist/blocks/icons.js
CHANGED
|
@@ -364,6 +364,32 @@
|
|
|
364
364
|
* commas, so a sentence in there is parsed as an export name.
|
|
365
365
|
*/
|
|
366
366
|
export { CubeMark as KindAgentIcon, LightbulbFilamentMark as KindInspirationIcon, LayoutMark as KindAppIcon, ArrowUpRightMark as OpenLiveIcon, ChartLineUpMark as EntityDashboardIcon, ListMagnifyingGlassMark as EntityDetailsIcon, GearSixMark as SettingsIcon, EyeMark as ViewsIcon, ThumbsUpMark as ReactionsIcon, ChatCircleMark as CommentsIcon, PushPinMark as SaveIcon, DotsThreeVerticalMark as MoreActionsIcon, } from "./phosphor-marks.js";
|
|
367
|
+
/**
|
|
368
|
+
* The Home creation card's counts (#530, Asaf, 2026-11-20): the two marks its
|
|
369
|
+
* pill draws on the picture, solid, at 12px.
|
|
370
|
+
*
|
|
371
|
+
* CardCommentsIcon Phosphor `chat-teardrop-text`, fill.
|
|
372
|
+
* CardViewsIcon Phosphor `eye`, fill.
|
|
373
|
+
*
|
|
374
|
+
* Their own role names, not `<Role>FilledIcon` twins: a twin is the same glyph
|
|
375
|
+
* as its role in the fill weight, and the design counts comments with the
|
|
376
|
+
* teardrop, where `CommentsIcon` is `chat-circle`. `EntityCard look="home"`
|
|
377
|
+
* draws them itself; they are exported for a caller that wants the same count
|
|
378
|
+
* somewhere else.
|
|
379
|
+
*/
|
|
380
|
+
export { ChatTeardropTextFillMark as CardCommentsIcon, EyeFillMark as CardViewsIcon, } from "./phosphor-marks.js";
|
|
381
|
+
/**
|
|
382
|
+
* The Home's Needs attention rows (ui#540, Asaf, 2026-11-20): what each row is
|
|
383
|
+
* about, at 22px before its title.
|
|
384
|
+
*
|
|
385
|
+
* RetryIcon Phosphor `arrow-counter-clockwise`: a plug that failed.
|
|
386
|
+
* Not `RefreshIcon` (`arrows-clockwise`, reload a view).
|
|
387
|
+
* ExpiringIcon Phosphor `monitor`: a creation about to expire.
|
|
388
|
+
* AwaitingReplyIcon Phosphor `chat-text`: comments waiting for a reply. Not
|
|
389
|
+
* `LeaveCommentIcon` (`chat-centered-text`, the fan's
|
|
390
|
+
* Comment) nor `CommentsStatIcon` (`chat-circle-text`).
|
|
391
|
+
*/
|
|
392
|
+
export { ArrowCounterClockwiseMark as RetryIcon, MonitorMark as ExpiringIcon, ChatTextMark as AwaitingReplyIcon, } from "./phosphor-marks.js";
|
|
367
393
|
/** Control affordances: the glyphs a primitive draws to work at all. */
|
|
368
394
|
export { CaretDownMark as ChevronDownIcon, CaretUpMark as ChevronUpIcon, CaretRightMark as ChevronRightIcon, CaretLeftMark as ChevronLeftIcon, CheckMark as CheckIcon, CheckBoldMark as CheckBoldIcon, XMark as CloseIcon, CopyMark as CopyIcon, CopyFillMark as CopyFilledIcon, MinusMark as MinusIcon, PlusMark as PlusIcon, ArrowDownMark as ArrowDownIcon, } from "./phosphor-marks.js";
|
|
369
395
|
/** Status: how a surface reports what happened. */
|
|
@@ -654,4 +680,24 @@ export { PulseBoldMark as ActivityBoldIcon, CompassBoldMark as DiscoverBoldIcon,
|
|
|
654
680
|
*/
|
|
655
681
|
export { UserCircleMark as AccountIcon, UsersFourMark as TeamIcon, } from "./phosphor-marks.js";
|
|
656
682
|
export { UserCircleFillMark as AccountFilledIcon, UsersFillMark as PeopleFilledIcon, UsersFourFillMark as TeamFilledIcon, KeyFillMark as SecretFilledIcon, PlugFillMark as PlugFilledIcon, CurrencyCircleDollarFillMark as BillingFilledIcon, ClockCounterClockwiseFillMark as VersionsFilledIcon, GearSixFillMark as SettingsFilledIcon, GearSixFillMark as ConfigurationFilledIcon, GridFourFillMark as OverviewFilledIcon, GridFourFillMark as SpaceFilledIcon, ShieldFillMark as GovernedFilledIcon, GlobeFillMark as WebFilledIcon, ArchiveFillMark as JunkyardFilledIcon, UsersThreeFillMark as AudienceFilledIcon, SignInFillMark as SignInFilledIcon, TerminalWindowFillMark as TerminalFilledIcon, UserFillMark as PersonFilledIcon, UserCheckFillMark as VerifiedPersonFilledIcon, StackFillMark as LayersFilledIcon, } from "./phosphor-marks.js";
|
|
683
|
+
/**
|
|
684
|
+
* The Home's Pinned (ui#539). `PinFilledIcon` is the filled pin before each
|
|
685
|
+
* pinned creation's name, the same artwork as `SaveFilledIcon` under the role
|
|
686
|
+
* the Home names (the Console's section is "Pinned" now). `UnpinIcon` is the
|
|
687
|
+
* pin struck through, on the chip that unpins a creation.
|
|
688
|
+
*/
|
|
689
|
+
export { PushPinFillMark as PinFilledIcon, PushPinSlashMark as UnpinIcon, } from "./phosphor-marks.js";
|
|
690
|
+
/**
|
|
691
|
+
* The help entry (ui#563, Asaf, 2026-11-22): the "?" in the Console's top bar
|
|
692
|
+
* and the three rows of the menu it opens.
|
|
693
|
+
*
|
|
694
|
+
* HelpIcon Phosphor `question`: the "?" in a circle, the trigger.
|
|
695
|
+
* ChatWithUsIcon `chat-circle`: Chat with us. The same artwork as
|
|
696
|
+
* `CommentsIcon` and `ChatAppIcon` under the role the menu
|
|
697
|
+
* names; a second role name, not a rename.
|
|
698
|
+
* DocsIcon `book-open`: Read the docs.
|
|
699
|
+
* ReportProblemIcon `bug`: Report a problem. The same artwork as
|
|
700
|
+
* `ReactionBrokenIcon`, the fan's "something's broken".
|
|
701
|
+
*/
|
|
702
|
+
export { QuestionMark as HelpIcon, ChatCircleMark as ChatWithUsIcon, BookOpenMark as DocsIcon, BugMark as ReportProblemIcon, } from "./phosphor-marks.js";
|
|
657
703
|
//# sourceMappingURL=icons.js.map
|
package/dist/blocks/icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../src/blocks/icons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4WG;AAEH,OAAO,EACL,QAAQ,IAAI,aAAa,EACzB,qBAAqB,IAAI,mBAAmB,EAC5C,UAAU,IAAI,WAAW,EACzB,gBAAgB,IAAI,YAAY,EAChC,eAAe,IAAI,mBAAmB,EACtC,uBAAuB,IAAI,iBAAiB,EAC5C,WAAW,IAAI,YAAY,EAC3B,OAAO,IAAI,SAAS,EACpB,YAAY,IAAI,aAAa,EAC7B,cAAc,IAAI,YAAY,EAC9B,WAAW,IAAI,QAAQ,EACvB,qBAAqB,IAAI,eAAe,GACzC,MAAM,8BAA8B,CAAA;AAErC,wEAAwE;AACxE,OAAO,EACL,aAAa,IAAI,eAAe,EAChC,WAAW,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AO,EACL,eAAe,IAAI,aAAa,EAChC,gBAAgB,IAAI,SAAS,GAC9B,MAAM,8BAA8B,CAAA;AAErC;;;;;;;;;;;GAWG;AACH,OAAO,EACL,YAAY,IAAI,QAAQ,EACxB,cAAc,IAAI,cAAc,EAChC,YAAY,IAAI,QAAQ,EACxB,OAAO,IAAI,iBAAiB,GAC7B,MAAM,8BAA8B,CAAA"}
|
|
@@ -63,8 +63,8 @@ import * as React from "react";
|
|
|
63
63
|
*
|
|
64
64
|
* ## The output
|
|
65
65
|
*
|
|
66
|
-
* `onSave(file)` hands back a square `File` of `outputSize` pixels
|
|
67
|
-
* default), cut exactly to the frame: the circle frame still outputs a
|
|
66
|
+
* `onSave(file, { view })` hands back a square `File` of `outputSize` pixels
|
|
67
|
+
* (512 by default), cut exactly to the frame, and the view it was cut at: the circle frame still outputs a
|
|
68
68
|
* square, the circle is only how it shows. It is written as WebP, or as PNG
|
|
69
69
|
* where the browser cannot write WebP, the rule the Console's logo squaring
|
|
70
70
|
* (`logoSquare.ts`) already follows; both keep transparency and the platform
|
|
@@ -74,7 +74,19 @@ import * as React from "react";
|
|
|
74
74
|
* frame and leaves the choice to the person: Cancel, or Save again. Nothing
|
|
75
75
|
* falls back to the uncut file behind their back.
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
* ## A saved view (ui#556)
|
|
78
|
+
*
|
|
79
|
+
* The view does not depend on the picture's resolution, so a caller can keep
|
|
80
|
+
* the original picture and the view Save returned, and open the step again on
|
|
81
|
+
* that original at `initialView`: the same frame, exactly, because the frame
|
|
82
|
+
* and the cut are `imageAdjustLayout(original, view)` and nothing else. The
|
|
83
|
+
* view is clamped as any view is, once the picture has loaded, so one that no
|
|
84
|
+
* longer fits still opens. A `blob:` or `data:` picture (an original the
|
|
85
|
+
* caller fetched signed in) is the page's own and is loaded without
|
|
86
|
+
* `crossOrigin`; any other `src` still needs CORS for the canvas to be written.
|
|
87
|
+
*
|
|
88
|
+
* The block makes no network call. Without `initialView` it opens with the
|
|
89
|
+
* picture centred at 100%.
|
|
78
90
|
*/
|
|
79
91
|
/** The furthest zoom: three times the size that just covers the frame. */
|
|
80
92
|
export declare const IMAGE_ADJUST_MAX_ZOOM = 3;
|
|
@@ -91,6 +103,18 @@ export type ImageAdjustView = {
|
|
|
91
103
|
x: number;
|
|
92
104
|
y: number;
|
|
93
105
|
};
|
|
106
|
+
/** What Save hands back with the file (ui#556): the view the cut was made at, clamped. */
|
|
107
|
+
export type ImageAdjustSaved = {
|
|
108
|
+
view: ImageAdjustView;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* What a picker hands back with the adjusted square after the adjust step
|
|
112
|
+
* (ui#556): the file the person picked, uncut, and the view it was cut at.
|
|
113
|
+
*/
|
|
114
|
+
export type ImageAdjustPicked = {
|
|
115
|
+
original: File;
|
|
116
|
+
view: ImageAdjustView;
|
|
117
|
+
};
|
|
94
118
|
export type ImageAdjustLayout = {
|
|
95
119
|
/** The view, clamped: zoom from 1 to 3, the picture covering the frame. */
|
|
96
120
|
view: ImageAdjustView;
|
|
@@ -128,16 +152,24 @@ export type ImageAdjustDialogProps = {
|
|
|
128
152
|
open: boolean;
|
|
129
153
|
/** The picked picture. Wins over `src`; its name carries over to the output. */
|
|
130
154
|
file?: Blob | null;
|
|
131
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* A picture by URL, when there is no file. Same-origin, served with CORS,
|
|
157
|
+
* or a `blob:` URL (an original the caller fetched itself).
|
|
158
|
+
*/
|
|
132
159
|
src?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Open at this view instead of centred at 100% (ui#556): the view an
|
|
162
|
+
* earlier Save returned for this same picture. Clamped as any view is.
|
|
163
|
+
*/
|
|
164
|
+
initialView?: ImageAdjustView;
|
|
133
165
|
/** The shape it will be shown in: the Grid logo's rounded square, or the avatar's circle. */
|
|
134
166
|
shape: ImageAdjustShape;
|
|
135
167
|
/** Defaults to "Adjust logo" for the rounded square and "Adjust photo" for the circle. */
|
|
136
168
|
title?: string;
|
|
137
169
|
/** The output's side in pixels. 512 by default. */
|
|
138
170
|
outputSize?: number;
|
|
139
|
-
/** The adjusted square, as a WebP (or PNG) `File
|
|
140
|
-
onSave: (file: File) => void;
|
|
171
|
+
/** The adjusted square, as a WebP (or PNG) `File`, and the view it was cut at. */
|
|
172
|
+
onSave: (file: File, saved: ImageAdjustSaved) => void;
|
|
141
173
|
/** Cancel, Escape or the scrim. */
|
|
142
174
|
onCancel: () => void;
|
|
143
175
|
};
|
|
@@ -146,7 +178,7 @@ export type ImageAdjustDialogProps = {
|
|
|
146
178
|
* dialog the caller holds open: `onSave` gets the adjusted square, `onCancel`
|
|
147
179
|
* is Cancel, Escape or the scrim.
|
|
148
180
|
*/
|
|
149
|
-
declare function ImageAdjustDialog({ open, file, src, shape, title, outputSize, onSave, onCancel, }: ImageAdjustDialogProps): React.JSX.Element;
|
|
181
|
+
declare function ImageAdjustDialog({ open, file, src, initialView, shape, title, outputSize, onSave, onCancel, }: ImageAdjustDialogProps): React.JSX.Element;
|
|
150
182
|
/** The adjust step's options, where a picker opts in: the title and the output's side in pixels. */
|
|
151
183
|
export type ImageAdjustStepOptions = {
|
|
152
184
|
title?: string;
|
|
@@ -157,15 +189,40 @@ export type ImageAdjustStepOptions = {
|
|
|
157
189
|
* `GridProfile`'s `logoAdjust`, and any caller with a picker of its own.
|
|
158
190
|
*
|
|
159
191
|
* `pick` is where a good file goes, after the caller's own type and size
|
|
160
|
-
* checks. Without `adjust` it is `onSelectFile` itself
|
|
161
|
-
* opens the dialog in `shape
|
|
162
|
-
* the adjusted square
|
|
192
|
+
* checks. Without `adjust` it is `onSelectFile` itself, with the file alone.
|
|
193
|
+
* With it, the file opens the dialog in `shape`, centred at 100%; Save closes
|
|
194
|
+
* it and calls `onSelectFile` with the adjusted square and `{ original, view }`
|
|
195
|
+
* (ui#556): the picked file, uncut, and the view it was cut at. Cancel closes
|
|
196
|
+
* it and calls nothing. Render
|
|
163
197
|
* `dialog` anywhere in the picker: it is `null` until a file is picked, so a
|
|
164
198
|
* picker's markup does not change.
|
|
165
199
|
*/
|
|
166
|
-
export declare function useImageAdjustStep(adjust: boolean | ImageAdjustStepOptions | undefined, shape: ImageAdjustShape, onSelectFile: ((file: File) => void) | undefined): {
|
|
200
|
+
export declare function useImageAdjustStep(adjust: boolean | ImageAdjustStepOptions | undefined, shape: ImageAdjustShape, onSelectFile: ((file: File, picked?: ImageAdjustPicked) => void) | undefined): {
|
|
167
201
|
pick: (picked: File) => void;
|
|
168
202
|
dialog: React.JSX.Element | null;
|
|
169
203
|
};
|
|
204
|
+
/** The picture a menu's "Adjust" opens the step on: the shown one, and the original it was cut from with its view. */
|
|
205
|
+
export type ImageAdjustCurrentPicture = {
|
|
206
|
+
src?: string;
|
|
207
|
+
originalSrc?: string;
|
|
208
|
+
view?: ImageAdjustView;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* The adjust step on the current picture, for a menu's "Adjust" row (ui#544,
|
|
212
|
+
* shared with the profile picture's menu in ui#556): `GridProfile`'s "Adjust
|
|
213
|
+
* logo" and `AvatarPicker`'s "Adjust photo".
|
|
214
|
+
*
|
|
215
|
+
* `open()` opens the dialog in `shape` on the original at its view when there
|
|
216
|
+
* is one (`originalSrc`, `view`), else on `src` centred at 100%; a `view`
|
|
217
|
+
* without its original is ignored. It does nothing without a `src`. Save
|
|
218
|
+
* closes it and calls `onAdjust(file, { view })`; Cancel closes it and calls
|
|
219
|
+
* nothing. `adjust`'s title and `outputSize` apply. Render `dialog` anywhere:
|
|
220
|
+
* it is `null` until the step first opens, and is kept after it closes, so it
|
|
221
|
+
* can animate out.
|
|
222
|
+
*/
|
|
223
|
+
export declare function useImageAdjustCurrent(adjust: boolean | ImageAdjustStepOptions | undefined, shape: ImageAdjustShape, { src, originalSrc, view }: ImageAdjustCurrentPicture, onAdjust: ((file: File, saved: ImageAdjustSaved) => void) | undefined): {
|
|
224
|
+
open: () => void;
|
|
225
|
+
dialog: React.JSX.Element | null;
|
|
226
|
+
};
|
|
170
227
|
export { ImageAdjustDialog };
|
|
171
228
|
//# sourceMappingURL=image-adjust-dialog.d.ts.map
|