@cloudgrid-io/ui 0.72.1 → 0.74.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/dist/blocks/creation-search.d.ts +7 -3
- package/dist/blocks/creation-search.d.ts.map +1 -1
- package/dist/blocks/creation-search.js +26 -10
- package/dist/blocks/creation-search.js.map +1 -1
- package/dist/blocks/icons.d.ts +4 -1
- package/dist/blocks/icons.d.ts.map +1 -1
- package/dist/blocks/icons.js +4 -1
- package/dist/blocks/icons.js.map +1 -1
- package/dist/blocks/impact-card.d.ts +7 -0
- package/dist/blocks/impact-card.d.ts.map +1 -1
- package/dist/blocks/impact-card.js +8 -1
- package/dist/blocks/impact-card.js.map +1 -1
- package/dist/blocks/invite-popup.d.ts +207 -24
- package/dist/blocks/invite-popup.d.ts.map +1 -1
- package/dist/blocks/invite-popup.js +109 -13
- package/dist/blocks/invite-popup.js.map +1 -1
- package/dist/blocks/phosphor-marks.d.ts +2 -0
- package/dist/blocks/phosphor-marks.d.ts.map +1 -1
- package/dist/blocks/phosphor-marks.js +3 -0
- package/dist/blocks/phosphor-marks.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
3
|
+
import type { useRender } from "@base-ui/react/use-render";
|
|
3
4
|
/**
|
|
4
5
|
* The invite popup and its pill (#349).
|
|
5
6
|
*
|
|
@@ -90,28 +91,100 @@ import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
|
90
91
|
* as drawn, and `--cg-hover` inside a panel or ink scope, because raised is
|
|
91
92
|
* declared at `:root` only and would be a pale slab with white text on it.
|
|
92
93
|
*
|
|
93
|
-
* ##
|
|
94
|
+
* ## The redesign (ui#641, Asaf 2026-11-30)
|
|
94
95
|
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
96
|
+
* The title is "Invite a friend", on one line (it truncates rather than wrap,
|
|
97
|
+
* and the dialog's name is still the whole title), and the line under it "Send
|
|
98
|
+
* them your link to start their own grid." The field and Copy are the Profile
|
|
99
|
+
* block's, one shared piece.
|
|
100
|
+
*
|
|
101
|
+
* ## Invitations left (ui#517, cloudgrid#6645; ui#641)
|
|
102
|
+
*
|
|
103
|
+
* Refer a friend can give each person a number of invitations, and the popup
|
|
104
|
+
* says how many are left: `invitationsLeft={3}` draws the library's `tag`
|
|
105
|
+
* badge beside the title, "3 left" (ui#641; it was a row of its own,
|
|
106
|
+
* "3 invitations left", under the line). `invitationsLeftLabel` gives the words
|
|
107
|
+
* after the count. Without the prop there is no tag, which is production (no
|
|
108
|
+
* limit). WHEN to show the count, and hiding every surface at 0, are the
|
|
109
|
+
* Console's (#6645, "At 0"): the library draws the number it is given.
|
|
110
|
+
*
|
|
111
|
+
* ## What the link did (ui#641)
|
|
112
|
+
*
|
|
113
|
+
* `results` (the caller's data) draws, under the field and after the library's
|
|
114
|
+
* hairline, one line about the link:
|
|
115
|
+
*
|
|
116
|
+
* friends joined `joined` above 0: up to three faces (the library's
|
|
117
|
+
* `AvatarStack` at 24, overlapping by 6 so each face's
|
|
118
|
+
* initials show whole, coloured by the friend's id; a face is read for its name's initials and
|
|
119
|
+
* its id, nothing else, and the stack is unnamed), "2
|
|
120
|
+
* friends joined" ("1 friend joined"), and at the right "See
|
|
121
|
+
* who" with an arrow, the Home's cyan text link
|
|
122
|
+
* (`ACTION_LINK_CLASS`), which the caller points at Profile's
|
|
123
|
+
* Your referrals: `seeWhoHref` (and `seeWhoRender` for a
|
|
124
|
+
* router's link) for a link, or `onSeeWho` for a button.
|
|
125
|
+
* Without either there is no See who
|
|
126
|
+
* opened only `joined` 0 and `opened` above 0: "7 people opened your
|
|
127
|
+
* link so far." ("1 person ...")
|
|
128
|
+
* brand new nothing, and no hairline
|
|
129
|
+
*
|
|
130
|
+
* The words are `INVITE_RESULTS_DEFAULTS`, overridable with `resultsCopy`.
|
|
104
131
|
*
|
|
105
132
|
* `ReferFriendBlock` is the same offer on the Profile page: a section with
|
|
106
133
|
* "Refer a friend", the same count row, one line, and the same field and Copy,
|
|
107
|
-
* so Copied and Blocked behave as they do here.
|
|
108
|
-
*
|
|
134
|
+
* so Copied and Blocked behave as they do here.
|
|
135
|
+
*
|
|
136
|
+
* ## No limit (ui#610)
|
|
137
|
+
*
|
|
138
|
+
* Production runs with no invitation limit (Gilad, 2026-11-25), so the API
|
|
139
|
+
* sends `invitations_left: null`. `invitationsLeft` is optional on the block as
|
|
140
|
+
* it is on the popup: leave it out and there is no count row, and the heading
|
|
141
|
+
* has its row to itself.
|
|
142
|
+
*
|
|
143
|
+
* ## Your referrals (ui#637, cloudgrid-console#1214, Asaf's choice A, 2026-11-30)
|
|
144
|
+
*
|
|
145
|
+
* `referrals` adds a section under the field, after the library's hairline
|
|
146
|
+
* (`Separator`): "Your referrals", then three figures, each My impact's tile
|
|
147
|
+
* (Asaf, 2026-11-30): a bare `StatTile` with its icon in the 40 soft violet
|
|
148
|
+
* square, in ImpactCard's frame (`IMPACT_TILE_FRAME`, the hairline, radius 12).
|
|
149
|
+
* The marks are Asaf's pick (2026-11-30): the people who opened the link (the
|
|
150
|
+
* API's `unique_clicks`) with a hand clicking (`ClickIcon`, Phosphor
|
|
151
|
+
* `hand-tap`); "signed up" with a person with a check (`VerifiedPersonIcon`,
|
|
152
|
+
* `user-check`); "started a grid" with the grid mark (`SpaceIcon`,
|
|
153
|
+
* `grid-four`, the glyph a grid wears); `referralsIcons`
|
|
154
|
+
* swaps any of the three (`REFERRALS_ICONS` are the defaults). Three across where
|
|
155
|
+
* the section is 41rem or wider (a 720 block), the label under the number;
|
|
156
|
+
* under it each tile is a full-width row with the icon, the number and the
|
|
157
|
+
* label on one line (a container query, as ImpactCard's, so the block decides
|
|
158
|
+
* by its own width, not the window's). The tiles keep the frame's 16 at the
|
|
159
|
+
* sides: at ImpactCard's wide 24 "opened your link" wraps in a third of 720.
|
|
160
|
+
*
|
|
161
|
+
* Then the friends who joined, in the order given (the API sends newest
|
|
162
|
+
* first), each a row the way `FeedRow` draws a person: the library's `Avatar`
|
|
163
|
+
* at 32 with initials, its colour from the friend's id; the name; the joined
|
|
164
|
+
* line under it, muted; and at the right the library's `Badge`: green (the
|
|
165
|
+
* state palette's online ground and its word rung, `--cg-online-strong`, 7.17:1)
|
|
166
|
+
* with the caller's `startedGridLabel`, or the neutral `secondary` badge "No
|
|
167
|
+
* grid yet" without one. When the list is under 28rem wide (a phone), every
|
|
168
|
+
* badge, green or neutral, goes under the name with its full words, in a
|
|
169
|
+
* tighter pill (18 tall, 6 at the sides; the words stay at 13, the smallest
|
|
170
|
+
* reading rung), so the rows read alike (Asaf, 2026-11-30: a shortened "Grid
|
|
171
|
+
* Nov 28" was not clear). When `signups` is more than the rows given (the API
|
|
172
|
+
* caps the list), a muted "and N more" follows.
|
|
173
|
+
*
|
|
174
|
+
* Before anyone opens the link (all three counts 0) one muted line takes the
|
|
175
|
+
* place of the figures and the list, on the field's ground.
|
|
176
|
+
*
|
|
177
|
+
* Only `id`, `name`, `joinedLabel` and `startedGridLabel` are read from a
|
|
178
|
+
* friend: no email, and nothing about their grids, reaches the page, whatever
|
|
179
|
+
* else a caller's object carries. The times are the caller's words; nothing
|
|
180
|
+
* here formats a date or fetches. Without `referrals` the block renders exactly
|
|
181
|
+
* what it did before.
|
|
109
182
|
*/
|
|
110
183
|
type InviteLayout = "auto" | "card" | "sheet";
|
|
111
184
|
type InviteCopyState = "idle" | "copied" | "blocked";
|
|
112
185
|
declare const INVITE_DEFAULTS: {
|
|
113
|
-
readonly title: "
|
|
114
|
-
readonly description: "Send them
|
|
186
|
+
readonly title: "Invite a friend";
|
|
187
|
+
readonly description: "Send them your link to start their own grid.";
|
|
115
188
|
readonly copyLabel: "Copy";
|
|
116
189
|
readonly copiedLabel: "Copied";
|
|
117
190
|
readonly blockedLabel: "Blocked";
|
|
@@ -120,9 +193,89 @@ declare const INVITE_DEFAULTS: {
|
|
|
120
193
|
readonly pillLabel: "Invite people";
|
|
121
194
|
/** The words after the count: "1 invitation left", "3 invitations left". */
|
|
122
195
|
readonly invitationsLeft: (count: number) => "invitation left" | "invitations left";
|
|
196
|
+
/** The words after the count in the popup's tag (ui#641): "3 left". */
|
|
197
|
+
readonly invitationsLeftShort: (_count: number) => string;
|
|
123
198
|
readonly referTitle: "Refer a friend";
|
|
124
199
|
readonly referDescription: "CloudGrid is invite-only during the launch. Send your link to someone who would use it. An invitation is used when they create an account.";
|
|
125
200
|
};
|
|
201
|
+
/**
|
|
202
|
+
* The "Your referrals" section's words (ui#637). `ReferFriendBlock` takes any
|
|
203
|
+
* of them in `referralsCopy`; the rest keep these.
|
|
204
|
+
*/
|
|
205
|
+
declare const REFERRALS_DEFAULTS: {
|
|
206
|
+
title: string;
|
|
207
|
+
/** The people who opened the link: the API's `unique_clicks`. */
|
|
208
|
+
opened: string;
|
|
209
|
+
signedUp: string;
|
|
210
|
+
startedGrid: string;
|
|
211
|
+
/** The neutral badge on a friend who has not started a grid. */
|
|
212
|
+
noGrid: string;
|
|
213
|
+
/** After a capped list: how many friends joined beyond the rows given. */
|
|
214
|
+
more: (count: number) => string;
|
|
215
|
+
/** Before anyone opens the link: in place of the figures and the list. */
|
|
216
|
+
empty: string;
|
|
217
|
+
};
|
|
218
|
+
type ReferralsCopy = {
|
|
219
|
+
[K in keyof typeof REFERRALS_DEFAULTS]: (typeof REFERRALS_DEFAULTS)[K];
|
|
220
|
+
};
|
|
221
|
+
/** One friend who joined with the link. Only these four fields are read. */
|
|
222
|
+
type ReferralFriend = {
|
|
223
|
+
/** Stable id: the row's key and the avatar's colour. */
|
|
224
|
+
id: string;
|
|
225
|
+
/** The name shown, and the avatar's initials. */
|
|
226
|
+
name: string;
|
|
227
|
+
/** When they joined, in the caller's words: "Joined 3 days ago". */
|
|
228
|
+
joinedLabel: React.ReactNode;
|
|
229
|
+
/** When they started their first grid, in the caller's words: "Started a grid on Nov 28". Leave it out for "No grid yet". */
|
|
230
|
+
startedGridLabel?: React.ReactNode;
|
|
231
|
+
};
|
|
232
|
+
/** What the "Your referrals" section shows. The caller's data; nothing here fetches. */
|
|
233
|
+
type ReferFriendReferrals = {
|
|
234
|
+
/** People who opened the link (the API's `unique_clicks`). */
|
|
235
|
+
uniqueClicks: number;
|
|
236
|
+
/** People who created an account with it. */
|
|
237
|
+
signups: number;
|
|
238
|
+
/** Of those, people who started a grid. */
|
|
239
|
+
firstGrids: number;
|
|
240
|
+
/** The friends who joined, newest first. May be capped; `signups` is the whole count. */
|
|
241
|
+
friends: ReadonlyArray<ReferralFriend>;
|
|
242
|
+
};
|
|
243
|
+
/** A figure's mark: any of the library's icons. */
|
|
244
|
+
type ReferralsIcon = React.ComponentType<{
|
|
245
|
+
className?: string;
|
|
246
|
+
}>;
|
|
247
|
+
/** The three figures' icons. `ReferFriendBlock` takes any of them in `referralsIcons`. */
|
|
248
|
+
type ReferralsIcons = {
|
|
249
|
+
opened: ReferralsIcon;
|
|
250
|
+
signedUp: ReferralsIcon;
|
|
251
|
+
startedGrid: ReferralsIcon;
|
|
252
|
+
};
|
|
253
|
+
/** The defaults, Asaf's pick (2026-11-30): a hand clicking, a person with a check, the grid mark. */
|
|
254
|
+
declare const REFERRALS_ICONS: ReferralsIcons;
|
|
255
|
+
/** The popup's "what the link did" words (ui#641). `InvitePopup` takes any of them in `resultsCopy`. */
|
|
256
|
+
declare const INVITE_RESULTS_DEFAULTS: {
|
|
257
|
+
/** Friends who joined with the link: "1 friend joined", "2 friends joined". */
|
|
258
|
+
joined: (count: number) => string;
|
|
259
|
+
/** Before anyone joined: "1 person opened your link so far.", "7 people ...". */
|
|
260
|
+
opened: (count: number) => string;
|
|
261
|
+
/** The link to Profile's Your referrals. */
|
|
262
|
+
seeWho: string;
|
|
263
|
+
};
|
|
264
|
+
type InviteResultsCopy = {
|
|
265
|
+
[K in keyof typeof INVITE_RESULTS_DEFAULTS]: (typeof INVITE_RESULTS_DEFAULTS)[K];
|
|
266
|
+
};
|
|
267
|
+
/** What the invite link did, for the popup (ui#641). The caller's data; nothing here fetches. */
|
|
268
|
+
type InviteResults = {
|
|
269
|
+
/** Friends who created an account with the link. */
|
|
270
|
+
joined: number;
|
|
271
|
+
/** The first few of them, newest first: at most three are drawn, as initials. */
|
|
272
|
+
faces?: ReadonlyArray<{
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
}>;
|
|
276
|
+
/** People who opened the link (the API's `unique_clicks`). */
|
|
277
|
+
opened: number;
|
|
278
|
+
};
|
|
126
279
|
/**
|
|
127
280
|
* The collapsed invite: a 44px pill with the UserPlus mark and "Invite people".
|
|
128
281
|
*
|
|
@@ -136,6 +289,14 @@ declare function InvitePill({ label, placed, className, type, ...props }: Omit<R
|
|
|
136
289
|
/** Pin it to the bottom-right corner, where the card opens. */
|
|
137
290
|
placed?: boolean;
|
|
138
291
|
}): React.JSX.Element;
|
|
292
|
+
/** The line under the popup's field: friends joined, or people who opened it, or nothing. */
|
|
293
|
+
declare function InviteResults({ results, copy, onSeeWho, seeWhoHref, seeWhoRender, }: {
|
|
294
|
+
results: InviteResults;
|
|
295
|
+
copy: InviteResultsCopy;
|
|
296
|
+
onSeeWho?: () => void;
|
|
297
|
+
seeWhoHref?: string;
|
|
298
|
+
seeWhoRender?: useRender.ComponentProps<"a">["render"];
|
|
299
|
+
}): React.JSX.Element | null;
|
|
139
300
|
type InvitePopupProps = {
|
|
140
301
|
/** The invite link. Shown in the field and written to the clipboard verbatim. */
|
|
141
302
|
link: string;
|
|
@@ -170,20 +331,34 @@ type InvitePopupProps = {
|
|
|
170
331
|
closeLabel?: string;
|
|
171
332
|
pillLabel?: string;
|
|
172
333
|
/**
|
|
173
|
-
* How many invitations the person has left. Draws the
|
|
174
|
-
*
|
|
334
|
+
* How many invitations the person has left. Draws the tag "3 left" beside
|
|
335
|
+
* the title. Leave it out (no limit) and there is no tag.
|
|
175
336
|
*/
|
|
176
337
|
invitationsLeft?: number;
|
|
177
|
-
/** The words after the count
|
|
338
|
+
/** The words after the count in the tag. Default "left". */
|
|
178
339
|
invitationsLeftLabel?: (count: number) => string;
|
|
340
|
+
/** What the link did, under the field (ui#641). Leave it out for a brand-new link: nothing is drawn. */
|
|
341
|
+
results?: InviteResults;
|
|
342
|
+
/** Any of the results' words, over `INVITE_RESULTS_DEFAULTS`. */
|
|
343
|
+
resultsCopy?: Partial<InviteResultsCopy>;
|
|
344
|
+
/** "See who" as a button. */
|
|
345
|
+
onSeeWho?: () => void;
|
|
346
|
+
/** "See who" as a link, to Profile's Your referrals. Wins over `onSeeWho`. */
|
|
347
|
+
seeWhoHref?: string;
|
|
348
|
+
/** "See who"'s element, for a router's link: `seeWhoRender={<Link href="..." />}`. */
|
|
349
|
+
seeWhoRender?: useRender.ComponentProps<"a">["render"];
|
|
179
350
|
className?: string;
|
|
180
351
|
};
|
|
181
|
-
declare function InvitePopup({ link, open, onOpenChange, onCopy, pill, layout, copyState, initialFocus, container, title, description, copyLabel, copiedLabel, blockedLabel, copyAriaLabel, closeLabel, pillLabel, invitationsLeft, invitationsLeftLabel, className, }: InvitePopupProps): React.JSX.Element;
|
|
352
|
+
declare function InvitePopup({ link, open, onOpenChange, onCopy, pill, layout, copyState, initialFocus, container, title, description, copyLabel, copiedLabel, blockedLabel, copyAriaLabel, closeLabel, pillLabel, invitationsLeft, invitationsLeftLabel, results, resultsCopy, onSeeWho, seeWhoHref, seeWhoRender, className, }: InvitePopupProps): React.JSX.Element;
|
|
182
353
|
type ReferFriendBlockProps = {
|
|
183
354
|
/** The invite link. Shown without its scheme, written to the clipboard verbatim. */
|
|
184
355
|
link: string;
|
|
185
|
-
/**
|
|
186
|
-
|
|
356
|
+
/**
|
|
357
|
+
* How many invitations are left. Draws the count at the heading's right.
|
|
358
|
+
* Leave it out where there is no limit (ui#610) and there is no count row.
|
|
359
|
+
* The Console hides the block at 0 (#6645).
|
|
360
|
+
*/
|
|
361
|
+
invitationsLeft?: number;
|
|
187
362
|
/** Called after the link reached the clipboard. Not called when the browser refused. */
|
|
188
363
|
onCopy?: (link: string) => void;
|
|
189
364
|
/** Pin the copy control's label, for previews. Leave it out for the real cycle. */
|
|
@@ -200,15 +375,23 @@ type ReferFriendBlockProps = {
|
|
|
200
375
|
blockedLabel?: string;
|
|
201
376
|
/** Copy's accessible name, which stays put while the visible label flips. */
|
|
202
377
|
copyAriaLabel?: string;
|
|
378
|
+
/** The "Your referrals" section under the field (ui#637). Leave it out and there is none. */
|
|
379
|
+
referrals?: ReferFriendReferrals;
|
|
380
|
+
/** Any of the section's words, over `REFERRALS_DEFAULTS`. */
|
|
381
|
+
referralsCopy?: Partial<ReferralsCopy>;
|
|
382
|
+
/** Any of the three figures' icons, over `REFERRALS_ICONS`. */
|
|
383
|
+
referralsIcons?: Partial<ReferralsIcons>;
|
|
203
384
|
className?: string;
|
|
204
385
|
};
|
|
205
386
|
/**
|
|
206
387
|
* The Profile page's "Refer a friend" block (ui#517, cloudgrid#6645 §3): a
|
|
207
388
|
* section named by its heading, the count at the heading's right, one line,
|
|
208
389
|
* and the popup's own link field and Copy. On a phone the count wraps under
|
|
209
|
-
* the heading when the two do not fit on one line.
|
|
390
|
+
* the heading when the two do not fit on one line. No count without
|
|
391
|
+
* `invitationsLeft` (ui#610); "Your referrals" under the field with
|
|
392
|
+
* `referrals` (ui#637).
|
|
210
393
|
*/
|
|
211
|
-
declare function ReferFriendBlock({ link, invitationsLeft, onCopy, copyState, title, description, invitationsLeftLabel, copyLabel, copiedLabel, blockedLabel, copyAriaLabel, className, }: ReferFriendBlockProps): React.JSX.Element;
|
|
212
|
-
export { InvitePill, InvitePopup, INVITE_DEFAULTS, ReferFriendBlock };
|
|
213
|
-
export type { InviteCopyState, InviteLayout, InvitePopupProps, ReferFriendBlockProps };
|
|
394
|
+
declare function ReferFriendBlock({ link, invitationsLeft, onCopy, copyState, title, description, invitationsLeftLabel, copyLabel, copiedLabel, blockedLabel, copyAriaLabel, referrals, referralsCopy, referralsIcons, className, }: ReferFriendBlockProps): React.JSX.Element;
|
|
395
|
+
export { InvitePill, InvitePopup, INVITE_DEFAULTS, INVITE_RESULTS_DEFAULTS, REFERRALS_DEFAULTS, REFERRALS_ICONS, ReferFriendBlock, };
|
|
396
|
+
export type { InviteResults, InviteResultsCopy, InviteCopyState, InviteLayout, InvitePopupProps, ReferFriendBlockProps, ReferFriendReferrals, ReferralFriend, ReferralsCopy, ReferralsIcon, ReferralsIcons, };
|
|
214
397
|
//# sourceMappingURL=invite-popup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invite-popup.d.ts","sourceRoot":"","sources":["../../src/blocks/invite-popup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"invite-popup.d.ts","sourceRoot":"","sources":["../../src/blocks/invite-popup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAuB1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkLG;AAEH,KAAK,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;AAC7C,KAAK,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEp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EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;IACxC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAuID;;;;;;;GAOG;AACH,iBAAS,gBAAgB,CAAC,EACxB,IAAI,EACJ,eAAe,EACf,MAAM,EACN,SAAS,EACT,KAAkC,EAClC,WAA8C,EAC9C,oBAAsD,EACtD,SAAqC,EACrC,WAAyC,EACzC,YAA2C,EAC3C,aAA6C,EAC7C,SAAS,EACT,aAAa,EACb,cAAc,EACd,SAAS,GACV,EAAE,qBAAqB,qBA6CvB;AAED,OAAO,EACL,UAAU,EACV,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,GACjB,CAAA;AACD,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,GACf,CAAA"}
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
5
|
+
import { ACTION_LINK_CLASS, ActionLink } from "./action-link.js";
|
|
6
|
+
import { Avatar } from "./avatar.js";
|
|
7
|
+
import { AvatarStack } from "./avatar-stack.js";
|
|
5
8
|
import { Badge } from "../ui/badge.js";
|
|
6
9
|
import { Button } from "../ui/button.js";
|
|
7
|
-
import { CheckIcon, CloseIcon, CopyIcon, InvitePersonIcon } from "./icons.js";
|
|
10
|
+
import { CheckIcon, ClickIcon, CloseIcon, CopyIcon, ForwardIcon, InvitePersonIcon, SpaceIcon, VerifiedPersonIcon, } from "./icons.js";
|
|
11
|
+
import { IMPACT_TILE_FRAME } from "./impact-card.js";
|
|
12
|
+
import { Separator } from "../ui/separator.js";
|
|
13
|
+
import { StatTile } from "./stat-tile.js";
|
|
8
14
|
import { cn } from "../lib/cloudgrid-cn.js";
|
|
9
15
|
import { usePortalContainer } from "../lib/portal-container.js";
|
|
10
16
|
const INVITE_DEFAULTS = {
|
|
11
17
|
// "who would", never "who'd" (Asaf, 2026-11-22): the title is Refer a
|
|
12
18
|
// friend's main line, so it changed with ui#517.
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
// ui#641 (Asaf, 2026-11-30): one line, and the line says "your link".
|
|
20
|
+
title: "Invite a friend",
|
|
21
|
+
description: "Send them your link to start their own grid.",
|
|
15
22
|
copyLabel: "Copy",
|
|
16
23
|
copiedLabel: "Copied",
|
|
17
24
|
blockedLabel: "Blocked",
|
|
@@ -20,9 +27,43 @@ const INVITE_DEFAULTS = {
|
|
|
20
27
|
pillLabel: "Invite people",
|
|
21
28
|
/** The words after the count: "1 invitation left", "3 invitations left". */
|
|
22
29
|
invitationsLeft: (count) => (count === 1 ? "invitation left" : "invitations left"),
|
|
30
|
+
/** The words after the count in the popup's tag (ui#641): "3 left". */
|
|
31
|
+
invitationsLeftShort: (_count) => "left",
|
|
23
32
|
referTitle: "Refer a friend",
|
|
24
33
|
referDescription: "CloudGrid is invite-only during the launch. Send your link to someone who would use it. An invitation is used when they create an account.",
|
|
25
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* The "Your referrals" section's words (ui#637). `ReferFriendBlock` takes any
|
|
37
|
+
* of them in `referralsCopy`; the rest keep these.
|
|
38
|
+
*/
|
|
39
|
+
const REFERRALS_DEFAULTS = {
|
|
40
|
+
title: "Your referrals",
|
|
41
|
+
/** The people who opened the link: the API's `unique_clicks`. */
|
|
42
|
+
opened: "opened your link",
|
|
43
|
+
signedUp: "signed up",
|
|
44
|
+
startedGrid: "started a grid",
|
|
45
|
+
/** The neutral badge on a friend who has not started a grid. */
|
|
46
|
+
noGrid: "No grid yet",
|
|
47
|
+
/** After a capped list: how many friends joined beyond the rows given. */
|
|
48
|
+
more: (count) => `and ${count} more`,
|
|
49
|
+
/** Before anyone opens the link: in place of the figures and the list. */
|
|
50
|
+
empty: "No one has used your link yet. When a friend opens it or joins, you'll see it here.",
|
|
51
|
+
};
|
|
52
|
+
/** The defaults, Asaf's pick (2026-11-30): a hand clicking, a person with a check, the grid mark. */
|
|
53
|
+
const REFERRALS_ICONS = {
|
|
54
|
+
opened: ClickIcon,
|
|
55
|
+
signedUp: VerifiedPersonIcon,
|
|
56
|
+
startedGrid: SpaceIcon,
|
|
57
|
+
};
|
|
58
|
+
/** The popup's "what the link did" words (ui#641). `InvitePopup` takes any of them in `resultsCopy`. */
|
|
59
|
+
const INVITE_RESULTS_DEFAULTS = {
|
|
60
|
+
/** Friends who joined with the link: "1 friend joined", "2 friends joined". */
|
|
61
|
+
joined: (count) => (count === 1 ? "1 friend joined" : `${count} friends joined`),
|
|
62
|
+
/** Before anyone joined: "1 person opened your link so far.", "7 people ...". */
|
|
63
|
+
opened: (count) => count === 1 ? "1 person opened your link so far." : `${count} people opened your link so far.`,
|
|
64
|
+
/** The link to Profile's Your referrals. */
|
|
65
|
+
seeWho: "See who",
|
|
66
|
+
};
|
|
26
67
|
/** How long Copied shows before the label returns to Copy. `CommandField`'s. */
|
|
27
68
|
const COPIED_MS = 1600;
|
|
28
69
|
// The focus ring the library's hand-built controls use (AgentPrompt, the
|
|
@@ -60,7 +101,8 @@ function InvitePill({ label = INVITE_DEFAULTS.pillLabel, placed = false, classNa
|
|
|
60
101
|
/**
|
|
61
102
|
* The count and its words: the `tag` badge (24 tall, radius 6, the accent on
|
|
62
103
|
* the page grey, flipping on a panel or ink) and the words in the line's face.
|
|
63
|
-
* The
|
|
104
|
+
* The Profile block's heading row (the popup draws its count as a tag beside
|
|
105
|
+
* its title since ui#641).
|
|
64
106
|
*/
|
|
65
107
|
function InvitationsLeft({ count, label, slot, className, }) {
|
|
66
108
|
return (_jsxs("p", { "data-slot": slot, className: cn("m-0 flex items-center gap-2.5 font-body text-[length:var(--cg-body-14)] leading-body text-body", className), children: [_jsx(Badge, { variant: "tag", className: "min-w-6.5 font-medium tabular-nums", children: count }), " ", _jsx("span", { children: label(count) })] }));
|
|
@@ -96,7 +138,7 @@ function InviteLinkField({ slot, link, state, onCopyClick, labels, copyAriaLabel
|
|
|
96
138
|
return (_jsxs("div", { "data-slot": `${slot}-field`, className: cn("flex items-center gap-2 rounded-md border border-hairline py-1.5 pr-1.5 pl-3.5", "bg-raised in-data-[cg-surface=panel]:bg-(--cg-hover) in-data-[cg-surface=ink]:bg-(--cg-hover)"), children: [_jsx("code", { "data-slot": `${slot}-link`, title: link, className: "min-w-0 flex-1 truncate font-mono text-caption text-ink", children: link.replace(/^https?:\/\//, "") }), _jsxs(Button, { type: "button", variant: "cta", onClick: onCopyClick, "data-slot": `${slot}-copy`, "data-state": state, "aria-label": copyAriaLabel, className: cn(
|
|
97
139
|
// EmptyCreations' Add, the frame's same button: 40px, 16px corners,
|
|
98
140
|
// Manrope 600 at 15px. 12 / 14 padding round a 20px mark.
|
|
99
|
-
"relative h-10 min-w-27 gap-1.5 rounded-xl pr-3.5 pl-3 font-ui text-body-sm font-bold",
|
|
141
|
+
"relative h-10 min-w-27 cursor-pointer gap-1.5 rounded-xl pr-3.5 pl-3 font-ui text-body-sm font-bold",
|
|
100
142
|
// The 44px hit area: 2px above and below, inside the field's padding.
|
|
101
143
|
// 3px from the pseudo's origin, because an absolute box is placed
|
|
102
144
|
// against the PADDING box and Button carries a 1px transparent
|
|
@@ -107,7 +149,23 @@ function InviteLinkField({ slot, link, state, onCopyClick, labels, copyAriaLabel
|
|
|
107
149
|
function copyStatus(state, copiedLabel) {
|
|
108
150
|
return state === "copied" ? copiedLabel : state === "blocked" ? "The browser blocked the copy" : "";
|
|
109
151
|
}
|
|
110
|
-
|
|
152
|
+
/** The line under the popup's field: friends joined, or people who opened it, or nothing. */
|
|
153
|
+
function InviteResults({ results, copy, onSeeWho, seeWhoHref, seeWhoRender, }) {
|
|
154
|
+
const { joined, faces = [], opened } = results;
|
|
155
|
+
const words = "m-0 font-body text-[length:var(--cg-body-14)] leading-body text-body";
|
|
156
|
+
if (joined > 0) {
|
|
157
|
+
const seeWho = seeWhoHref !== undefined || seeWhoRender !== undefined ? (_jsxs(ActionLink, { "data-slot": "invite-popup-see-who", weight: "bold", href: seeWhoHref, render: seeWhoRender, className: "shrink-0 cursor-pointer gap-1.5", children: [copy.seeWho, _jsx(ForwardIcon, { className: "size-4" })] })) : onSeeWho ? (_jsxs("button", { type: "button", "data-slot": "invite-popup-see-who", onClick: onSeeWho, className: cn(ACTION_LINK_CLASS, "shrink-0 cursor-pointer gap-1.5 border-0 bg-transparent p-0 font-bold"), children: [copy.seeWho, _jsx(ForwardIcon, { className: "size-4" })] })) : null;
|
|
158
|
+
return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-slot": "invite-popup-results", "data-state": "joined", className: "flex min-w-0 items-center gap-2.5", children: [faces.length > 0 ? (_jsx(AvatarStack, { people: faces.slice(0, 3).map((face) => ({ name: face.name, seed: face.id })), size: 24,
|
|
159
|
+
// 6 of overlap, not the stack's 12: at 24 the stack's own overlap
|
|
160
|
+
// covers half of each face and its initials with it.
|
|
161
|
+
className: "shrink-0 [&>[data-slot=avatar-stack-face]:not(:first-child)]:-ml-1.5" })) : null, _jsx("p", { "data-slot": "invite-popup-joined", className: cn(words, "min-w-0 flex-1"), children: copy.joined(joined) }), seeWho] })] }));
|
|
162
|
+
}
|
|
163
|
+
if (opened > 0) {
|
|
164
|
+
return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("p", { "data-slot": "invite-popup-results", "data-state": "opened", className: words, children: copy.opened(opened) })] }));
|
|
165
|
+
}
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
function InvitePopup({ link, open, onOpenChange, onCopy, pill = true, layout = "auto", copyState, initialFocus = true, container, title = INVITE_DEFAULTS.title, description = INVITE_DEFAULTS.description, copyLabel = INVITE_DEFAULTS.copyLabel, copiedLabel = INVITE_DEFAULTS.copiedLabel, blockedLabel = INVITE_DEFAULTS.blockedLabel, copyAriaLabel = INVITE_DEFAULTS.copyAriaLabel, closeLabel = INVITE_DEFAULTS.closeLabel, pillLabel = INVITE_DEFAULTS.pillLabel, invitationsLeft, invitationsLeftLabel = INVITE_DEFAULTS.invitationsLeftShort, results, resultsCopy, onSeeWho, seeWhoHref, seeWhoRender, className, }) {
|
|
111
169
|
const { ownState, copy } = useInviteCopy(link, onCopy);
|
|
112
170
|
const state = copyState ?? ownState;
|
|
113
171
|
const popupRef = React.useRef(null);
|
|
@@ -121,21 +179,59 @@ function InvitePopup({ link, open, onOpenChange, onCopy, pill = true, layout = "
|
|
|
121
179
|
return (_jsxs(DialogPrimitive.Root, { open: open, onOpenChange: (next) => onOpenChange(next), modal: false, disablePointerDismissal: true, children: [pill ? (_jsx(DialogPrimitive.Trigger, { ref: pillRef,
|
|
122
180
|
// Hidden, not unmounted, while the card is open: the pill is where
|
|
123
181
|
// focus returns, so it has to be the same element when it comes back.
|
|
124
|
-
render: _jsx(InvitePill, { label: pillLabel, placed: true, className: open ? "hidden" : undefined }) })) : null, _jsx(DialogPrimitive.Portal, { container: portalContainer, children: _jsxs(DialogPrimitive.Popup, { ref: popupRef, "data-slot": "invite-popup", "data-layout": layout, initialFocus: initialFocus ? popupRef : false, finalFocus: pill ? pillRef : undefined, className: cn("fixed z-50 flex flex-col gap-3.5 border-hairline text-ink outline-none", "bg-popover in-data-[cg-surface=panel]:bg-panel in-data-[cg-surface=ink]:bg-code", "shadow-[var(--cg-shadow-panel),var(--cg-shadow-hover)]", "duration-150 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", LAYOUT_CLASS[layout], className), children: [_jsx("div", { "data-slot": "invite-popup-grabber", "aria-hidden": "true", className: cn("justify-center", GRABBER_ROW_CLASS[layout]), children: _jsx("span", { className: "block h-1 w-9 rounded-pill bg-control" }) }), _jsxs("div", { className: "flex items-center gap-2.5", children: [_jsx(DialogPrimitive.Title, { "data-slot": "invite-popup-title", className: "m-0 min-w-0
|
|
182
|
+
render: _jsx(InvitePill, { label: pillLabel, placed: true, className: open ? "hidden" : undefined }) })) : null, _jsx(DialogPrimitive.Portal, { container: portalContainer, children: _jsxs(DialogPrimitive.Popup, { ref: popupRef, "data-slot": "invite-popup", "data-layout": layout, initialFocus: initialFocus ? popupRef : false, finalFocus: pill ? pillRef : undefined, className: cn("fixed z-50 flex flex-col gap-3.5 border-hairline text-ink outline-none", "bg-popover in-data-[cg-surface=panel]:bg-panel in-data-[cg-surface=ink]:bg-code", "shadow-[var(--cg-shadow-panel),var(--cg-shadow-hover)]", "duration-150 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", LAYOUT_CLASS[layout], className), children: [_jsx("div", { "data-slot": "invite-popup-grabber", "aria-hidden": "true", className: cn("justify-center", GRABBER_ROW_CLASS[layout]), children: _jsx("span", { className: "block h-1 w-9 rounded-pill bg-control" }) }), _jsxs("div", { className: "flex items-center gap-2.5", children: [_jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [_jsx(DialogPrimitive.Title, { "data-slot": "invite-popup-title", className: "m-0 min-w-0 truncate font-ui text-body-18 leading-heading font-bold text-ink", children: title }), invitationsLeft === undefined ? null : (_jsx(Badge, { "data-slot": "invite-popup-left", variant: "tag", className: "shrink-0 font-medium tabular-nums", children: `${invitationsLeft} ${invitationsLeftLabel(invitationsLeft)}` }))] }), _jsx(DialogPrimitive.Close, { "data-slot": "invite-popup-close", "aria-label": closeLabel, className: cn("relative grid size-7 shrink-0 cursor-pointer place-items-center rounded-pill text-body", "transition-colors duration-(--cg-duration) ease-out hover:bg-(--cg-hover) hover:text-ink",
|
|
125
183
|
// The 44px hit area round a 28px drawing.
|
|
126
|
-
"before:absolute before:-inset-2 before:content-['']", FOCUS_RING), children: _jsx(CloseIcon, { className: "size-4" }) })] }), _jsx(DialogPrimitive.Description, { "data-slot": "invite-popup-description", className: "m-0 font-body text-[length:var(--cg-body-14)] leading-body text-body", children: description }),
|
|
184
|
+
"before:absolute before:-inset-2 before:content-['']", FOCUS_RING), children: _jsx(CloseIcon, { className: "size-4" }) })] }), _jsx(DialogPrimitive.Description, { "data-slot": "invite-popup-description", className: "m-0 font-body text-[length:var(--cg-body-14)] leading-body text-body", children: description }), _jsx(InviteLinkField, { slot: "invite-popup", link: link, state: state, onCopyClick: copy, labels: labels, copyAriaLabel: copyAriaLabel }), results ? (_jsx(InviteResults, { results: results, copy: { ...INVITE_RESULTS_DEFAULTS, ...resultsCopy }, onSeeWho: onSeeWho, seeWhoHref: seeWhoHref, seeWhoRender: seeWhoRender })) : null, _jsx("span", { "data-slot": "invite-popup-status", "aria-live": "polite", className: "sr-only", children: copyStatus(state, copiedLabel) })] }) })] }));
|
|
185
|
+
}
|
|
186
|
+
/** The section's three figures, in order. `metric` is each tile's `data-metric`. */
|
|
187
|
+
const REFERRAL_FIGURES = [
|
|
188
|
+
{ metric: "opened", count: "uniqueClicks", key: "opened" },
|
|
189
|
+
{ metric: "signed-up", count: "signups", key: "signedUp" },
|
|
190
|
+
{ metric: "started-grid", count: "firstGrids", key: "startedGrid" },
|
|
191
|
+
];
|
|
192
|
+
// My impact's tile (IMPACT_TILE_FRAME), always icon-left, at the frame's own
|
|
193
|
+
// 16 at the sides: ImpactCard's wide 24 would wrap "opened your link" in a
|
|
194
|
+
// third of a 720 block. Under the section's 41rem the tiles are full-width
|
|
195
|
+
// rows with the number and the label on the icon's line (the tile's inner
|
|
196
|
+
// column turns into a row, on their baseline); from 41rem, three across, the
|
|
197
|
+
// label sits under the number. 41rem is where the longest label fits whole.
|
|
198
|
+
const FIGURE_TILE = cn(IMPACT_TILE_FRAME, "flex-row items-center [&>div]:flex-row [&>div]:items-baseline [&>div]:gap-2", "@min-[41rem]/referrals:[&>div]:flex-col @min-[41rem]/referrals:[&>div]:items-start @min-[41rem]/referrals:[&>div]:gap-1");
|
|
199
|
+
/**
|
|
200
|
+
* "Your referrals": the hairline, the heading, then the three figures and the
|
|
201
|
+
* friends, or the one empty line. See the module's note (ui#637).
|
|
202
|
+
*/
|
|
203
|
+
function ReferralsSection({ referrals, copy, icons, }) {
|
|
204
|
+
const { uniqueClicks, signups, firstGrids, friends } = referrals;
|
|
205
|
+
const empty = uniqueClicks === 0 && signups === 0 && firstGrids === 0;
|
|
206
|
+
const more = signups - friends.length;
|
|
207
|
+
return (_jsxs(_Fragment, { children: [_jsx(Separator, { className: "mt-3" }), _jsxs("div", { "data-slot": "refer-friend-referrals", className: "flex flex-col gap-3", children: [_jsx("h3", { "data-slot": "refer-friend-referrals-title", className: "m-0 font-ui text-body-sm font-bold text-ink", children: copy.title }), empty ? (_jsx("p", { "data-slot": "refer-friend-empty", className: cn("m-0 rounded-md px-3.5 py-3 font-body text-[length:var(--cg-body-14)] leading-body text-faint-strong",
|
|
208
|
+
// The field's ground, flipping as the field does.
|
|
209
|
+
"bg-raised in-data-[cg-surface=panel]:bg-(--cg-hover) in-data-[cg-surface=ink]:bg-(--cg-hover)"), children: copy.empty })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "@container/referrals", children: _jsx("div", { "data-slot": "refer-friend-figures", className: "grid grid-cols-1 gap-3 @min-[41rem]/referrals:grid-cols-3", children: REFERRAL_FIGURES.map((f) => (_jsx(StatTile, { layout: "bare", "data-metric": f.metric, icon: icons[f.key], value: referrals[f.count], label: copy[f.key], className: FIGURE_TILE }, f.metric))) }) }), friends.length > 0 ? (_jsx("ul", { "data-slot": "refer-friend-friends", className: "@container/friends m-0 flex list-none flex-col gap-4 p-0", children: friends.map((friend) => (_jsx(ReferralRow, { friend: friend, noGrid: copy.noGrid }, friend.id))) })) : null, more > 0 ? (_jsx("p", { "data-slot": "refer-friend-more", className: "m-0 text-caption text-faint-strong", children: copy.more(more) })) : null] }))] })] }));
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* One friend: FeedRow's person row, with the grid badge at the right. Reads
|
|
213
|
+
* four fields, never more. On a narrow list (under 28rem) the badge, green or
|
|
214
|
+
* neutral, goes under the name in a tighter pill.
|
|
215
|
+
*/
|
|
216
|
+
function ReferralRow({ friend, noGrid }) {
|
|
217
|
+
const { id, name, joinedLabel, startedGridLabel } = friend;
|
|
218
|
+
const started = startedGridLabel !== undefined && startedGridLabel !== null;
|
|
219
|
+
const narrowPill = "@max-[28rem]/friends:h-4.5 @max-[28rem]/friends:px-1.5";
|
|
220
|
+
return (_jsxs("li", { "data-slot": "refer-friend-friend", className: "flex min-w-0 items-center gap-3", children: [_jsx(Avatar, { name: name, seed: id, size: 32 }), _jsxs("div", { "data-slot": "refer-friend-friend-lines", className: cn("flex min-w-0 flex-1 items-center justify-between gap-x-3 gap-y-1.5", "@max-[28rem]/friends:flex-col @max-[28rem]/friends:items-start @max-[28rem]/friends:justify-start"), children: [_jsxs("span", { className: "grid min-w-0 gap-0.5", children: [_jsx("span", { "data-slot": "refer-friend-friend-name", className: "truncate text-body-sm text-ink", children: name }), _jsx("span", { "data-slot": "refer-friend-friend-joined", className: "text-caption text-faint-strong", children: joinedLabel })] }), started ? (_jsx(Badge, { "data-tone": "online", className: cn("bg-online-fill text-online-strong", narrowPill), children: startedGridLabel })) : (_jsx(Badge, { "data-tone": "neutral", variant: "secondary", className: narrowPill, children: noGrid }))] })] }));
|
|
127
221
|
}
|
|
128
222
|
/**
|
|
129
223
|
* The Profile page's "Refer a friend" block (ui#517, cloudgrid#6645 §3): a
|
|
130
224
|
* section named by its heading, the count at the heading's right, one line,
|
|
131
225
|
* and the popup's own link field and Copy. On a phone the count wraps under
|
|
132
|
-
* the heading when the two do not fit on one line.
|
|
226
|
+
* the heading when the two do not fit on one line. No count without
|
|
227
|
+
* `invitationsLeft` (ui#610); "Your referrals" under the field with
|
|
228
|
+
* `referrals` (ui#637).
|
|
133
229
|
*/
|
|
134
|
-
function ReferFriendBlock({ link, invitationsLeft, onCopy, copyState, title = INVITE_DEFAULTS.referTitle, description = INVITE_DEFAULTS.referDescription, invitationsLeftLabel = INVITE_DEFAULTS.invitationsLeft, copyLabel = INVITE_DEFAULTS.copyLabel, copiedLabel = INVITE_DEFAULTS.copiedLabel, blockedLabel = INVITE_DEFAULTS.blockedLabel, copyAriaLabel = INVITE_DEFAULTS.copyAriaLabel, className, }) {
|
|
230
|
+
function ReferFriendBlock({ link, invitationsLeft, onCopy, copyState, title = INVITE_DEFAULTS.referTitle, description = INVITE_DEFAULTS.referDescription, invitationsLeftLabel = INVITE_DEFAULTS.invitationsLeft, copyLabel = INVITE_DEFAULTS.copyLabel, copiedLabel = INVITE_DEFAULTS.copiedLabel, blockedLabel = INVITE_DEFAULTS.blockedLabel, copyAriaLabel = INVITE_DEFAULTS.copyAriaLabel, referrals, referralsCopy, referralsIcons, className, }) {
|
|
135
231
|
const { ownState, copy } = useInviteCopy(link, onCopy);
|
|
136
232
|
const state = copyState ?? ownState;
|
|
137
233
|
const titleId = React.useId();
|
|
138
|
-
return (_jsxs("section", { "data-slot": "refer-friend", "aria-labelledby": titleId, className: cn("flex flex-col gap-3 rounded-xl border border-hairline bg-card p-4 text-ink sm:p-6", className), children: [_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [_jsx("h2", { id: titleId, "data-slot": "refer-friend-title", className: "m-0 font-ui text-body-18 leading-heading font-medium text-ink", children: title }), _jsx(InvitationsLeft, { count: invitationsLeft, label: invitationsLeftLabel, slot: "refer-friend-left" })] }), _jsx("p", { "data-slot": "refer-friend-description", className: "m-0 font-body text-[length:var(--cg-body-14)] leading-body text-body", children: description }), _jsx(InviteLinkField, { slot: "refer-friend", link: link, state: state, onCopyClick: copy, labels: { idle: copyLabel, copied: copiedLabel, blocked: blockedLabel }, copyAriaLabel: copyAriaLabel }), _jsx("span", { "data-slot": "refer-friend-status", "aria-live": "polite", className: "sr-only", children: copyStatus(state, copiedLabel) })] }));
|
|
234
|
+
return (_jsxs("section", { "data-slot": "refer-friend", "aria-labelledby": titleId, className: cn("flex flex-col gap-3 rounded-xl border border-hairline bg-card p-4 text-ink sm:p-6", className), children: [_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [_jsx("h2", { id: titleId, "data-slot": "refer-friend-title", className: "m-0 font-ui text-body-18 leading-heading font-medium text-ink", children: title }), invitationsLeft === undefined ? null : (_jsx(InvitationsLeft, { count: invitationsLeft, label: invitationsLeftLabel, slot: "refer-friend-left" }))] }), _jsx("p", { "data-slot": "refer-friend-description", className: "m-0 font-body text-[length:var(--cg-body-14)] leading-body text-body", children: description }), _jsx(InviteLinkField, { slot: "refer-friend", link: link, state: state, onCopyClick: copy, labels: { idle: copyLabel, copied: copiedLabel, blocked: blockedLabel }, copyAriaLabel: copyAriaLabel }), referrals ? (_jsx(ReferralsSection, { referrals: referrals, copy: { ...REFERRALS_DEFAULTS, ...referralsCopy }, icons: { ...REFERRALS_ICONS, ...referralsIcons } })) : null, _jsx("span", { "data-slot": "refer-friend-status", "aria-live": "polite", className: "sr-only", children: copyStatus(state, copiedLabel) })] }));
|
|
139
235
|
}
|
|
140
|
-
export { InvitePill, InvitePopup, INVITE_DEFAULTS, ReferFriendBlock };
|
|
236
|
+
export { InvitePill, InvitePopup, INVITE_DEFAULTS, INVITE_RESULTS_DEFAULTS, REFERRALS_DEFAULTS, REFERRALS_ICONS, ReferFriendBlock, };
|
|
141
237
|
//# sourceMappingURL=invite-popup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invite-popup.js","sourceRoot":"","sources":["../../src/blocks/invite-popup.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEjE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,C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U,EACV,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,GACjB,CAAA"}
|
|
@@ -209,6 +209,8 @@ export declare const PushPinFillMark: ({ className }: PhosphorMarkProps) => Reac
|
|
|
209
209
|
export declare const HouseSimpleFillMark: ({ className }: PhosphorMarkProps) => React.JSX.Element;
|
|
210
210
|
/** Explore, on the active tab. Phosphor `compass`, fill. */
|
|
211
211
|
export declare const CompassFillMark: ({ className }: PhosphorMarkProps) => React.JSX.Element;
|
|
212
|
+
/** A hand clicking: someone opened a link. Phosphor `hand-tap`, regular. */
|
|
213
|
+
export declare const HandTapMark: ({ className }: PhosphorMarkProps) => React.JSX.Element;
|
|
212
214
|
/** Tools that live in a terminal. Phosphor `terminal-window`, regular. */
|
|
213
215
|
export declare const TerminalWindowMark: ({ className }: PhosphorMarkProps) => React.JSX.Element;
|
|
214
216
|
/** A repository on GitHub. Phosphor `github-logo`, regular. */
|