@cloudgrid-io/ui 0.53.1 → 0.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/avatar.d.ts +8 -2
- package/dist/blocks/avatar.d.ts.map +1 -1
- package/dist/blocks/avatar.js +11 -1
- package/dist/blocks/avatar.js.map +1 -1
- package/dist/blocks/confirm-delete-dialog.d.ts +37 -2
- package/dist/blocks/confirm-delete-dialog.d.ts.map +1 -1
- package/dist/blocks/confirm-delete-dialog.js +32 -7
- package/dist/blocks/confirm-delete-dialog.js.map +1 -1
- package/dist/blocks/danger-zone.d.ts +16 -0
- package/dist/blocks/danger-zone.d.ts.map +1 -0
- package/dist/blocks/danger-zone.js +30 -0
- package/dist/blocks/danger-zone.js.map +1 -0
- package/dist/blocks/filter-bar.d.ts +38 -0
- package/dist/blocks/filter-bar.d.ts.map +1 -0
- package/dist/blocks/filter-bar.js +37 -0
- package/dist/blocks/filter-bar.js.map +1 -0
- package/dist/blocks/grid-profile.d.ts +46 -0
- package/dist/blocks/grid-profile.d.ts.map +1 -0
- package/dist/blocks/grid-profile.js +41 -0
- package/dist/blocks/grid-profile.js.map +1 -0
- package/dist/blocks/icons.d.ts +29 -0
- package/dist/blocks/icons.d.ts.map +1 -1
- package/dist/blocks/icons.js +29 -0
- package/dist/blocks/icons.js.map +1 -1
- package/dist/blocks/impact-list.d.ts +28 -0
- package/dist/blocks/impact-list.d.ts.map +1 -0
- package/dist/blocks/impact-list.js +31 -0
- package/dist/blocks/impact-list.js.map +1 -0
- package/dist/blocks/meter.d.ts +42 -3
- package/dist/blocks/meter.d.ts.map +1 -1
- package/dist/blocks/meter.js +27 -2
- package/dist/blocks/meter.js.map +1 -1
- package/dist/blocks/phosphor-marks.d.ts +14 -0
- package/dist/blocks/phosphor-marks.d.ts.map +1 -1
- package/dist/blocks/phosphor-marks.js +21 -0
- package/dist/blocks/phosphor-marks.js.map +1 -1
- package/dist/blocks/section-heading.d.ts +20 -1
- package/dist/blocks/section-heading.d.ts.map +1 -1
- package/dist/blocks/section-heading.js +19 -2
- package/dist/blocks/section-heading.js.map +1 -1
- package/dist/blocks/segmented-choice.d.ts +41 -0
- package/dist/blocks/segmented-choice.d.ts.map +1 -0
- package/dist/blocks/segmented-choice.js +11 -0
- package/dist/blocks/segmented-choice.js.map +1 -0
- package/dist/blocks/settings-frame.d.ts +51 -0
- package/dist/blocks/settings-frame.d.ts.map +1 -0
- package/dist/blocks/settings-frame.js +53 -0
- package/dist/blocks/settings-frame.js.map +1 -0
- package/dist/blocks/settings-row.d.ts +102 -0
- package/dist/blocks/settings-row.d.ts.map +1 -0
- package/dist/blocks/settings-row.js +175 -0
- package/dist/blocks/settings-row.js.map +1 -0
- package/dist/blocks/side-nav.d.ts +51 -5
- package/dist/blocks/side-nav.d.ts.map +1 -1
- package/dist/blocks/side-nav.js +184 -12
- package/dist/blocks/side-nav.js.map +1 -1
- package/dist/blocks/theme-preview.d.ts +60 -0
- package/dist/blocks/theme-preview.d.ts.map +1 -0
- package/dist/blocks/theme-preview.js +31 -0
- package/dist/blocks/theme-preview.js.map +1 -0
- package/dist/blocks/usage-meter.d.ts +71 -0
- package/dist/blocks/usage-meter.d.ts.map +1 -0
- package/dist/blocks/usage-meter.js +65 -0
- package/dist/blocks/usage-meter.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/ui/accordion.d.ts +7 -1
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +3 -3
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +22 -3
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/input-group.js +1 -1
- package/dist/ui/input-group.js.map +1 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +3 -2
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/number-field.js +3 -3
- package/dist/ui/number-field.js.map +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/table.d.ts +11 -1
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +16 -34
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +1 -1
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +8 -1
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/textarea.js.map +1 -1
- package/package.json +1 -1
package/dist/blocks/avatar.d.ts
CHANGED
|
@@ -91,9 +91,15 @@
|
|
|
91
91
|
* height of something else. The Console's profile header draws its picture at
|
|
92
92
|
* 56 (cloudgrid-console#944), and `AvatarPicker` renders that picture through
|
|
93
93
|
* this ramp. There is no letter for it, for the reason there is none for 32.
|
|
94
|
+
*
|
|
95
|
+
* ## 80 (ui#494)
|
|
96
|
+
*
|
|
97
|
+
* The seventh, by the same rule: the Grid settings General page draws the
|
|
98
|
+
* grid's logo tile at 80, a rounded square with its letter (`GridProfile`).
|
|
99
|
+
* Its corner is the container radius, 20, one step past 64's 16.
|
|
94
100
|
*/
|
|
95
|
-
export declare const AVATAR_DIAMETERS: readonly [18, 24, 32, 38, 56, 64];
|
|
96
|
-
/** 18, 24, 32, 38, 56 or
|
|
101
|
+
export declare const AVATAR_DIAMETERS: readonly [18, 24, 32, 38, 56, 64, 80];
|
|
102
|
+
/** 18, 24, 32, 38, 56, 64 or 80 across. */
|
|
97
103
|
export type AvatarDiameter = (typeof AVATAR_DIAMETERS)[number];
|
|
98
104
|
/**
|
|
99
105
|
* The 0.26 letter names, and what each one was worth in pixels.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/blocks/avatar.tsx"],"names":[],"mapp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ACZ;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,cAAc,GAAG,UAAU,CAAA;IAClC,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mFAAmF;IACnF,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,mGAAmG;IACnG,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,+BAwEA;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/dist/blocks/avatar.js
CHANGED
|
@@ -94,8 +94,14 @@ import { entityIdentityLook, entityIdentitySeed, entityMonogram, } from "./entit
|
|
|
94
94
|
* height of something else. The Console's profile header draws its picture at
|
|
95
95
|
* 56 (cloudgrid-console#944), and `AvatarPicker` renders that picture through
|
|
96
96
|
* this ramp. There is no letter for it, for the reason there is none for 32.
|
|
97
|
+
*
|
|
98
|
+
* ## 80 (ui#494)
|
|
99
|
+
*
|
|
100
|
+
* The seventh, by the same rule: the Grid settings General page draws the
|
|
101
|
+
* grid's logo tile at 80, a rounded square with its letter (`GridProfile`).
|
|
102
|
+
* Its corner is the container radius, 20, one step past 64's 16.
|
|
97
103
|
*/
|
|
98
|
-
export const AVATAR_DIAMETERS = [18, 24, 32, 38, 56, 64];
|
|
104
|
+
export const AVATAR_DIAMETERS = [18, 24, 32, 38, 56, 64, 80];
|
|
99
105
|
/**
|
|
100
106
|
* The 0.26 letter names, and what each one was worth in pixels.
|
|
101
107
|
*
|
|
@@ -170,6 +176,7 @@ const SQUARE_RADIUS = {
|
|
|
170
176
|
38: "--cg-radius-sm",
|
|
171
177
|
56: "--cg-radius-lg",
|
|
172
178
|
64: "--cg-radius-xl",
|
|
179
|
+
80: "--cg-radius-container",
|
|
173
180
|
};
|
|
174
181
|
/** 15/32 of the box, `--cg-avatar-letter-ratio` (#482): 15px at 32, as the frame. */
|
|
175
182
|
const PASTEL_RATIO = "--cg-avatar-letter-ratio";
|
|
@@ -201,6 +208,9 @@ function Avatar({ name, seed, src, alt, size = 24, monogram, shape = "circle", l
|
|
|
201
208
|
// way. Not mixed against --cg-surface-card: that token is `transparent`
|
|
202
209
|
// inside a purple panel, and mixing a hue into transparent gives a
|
|
203
210
|
// half-transparent hue rather than a shade.
|
|
211
|
+
// ui#496: one colour per person, space and grid, as in 0.53.1. 0.54.0
|
|
212
|
+
// painted every person lavender (Primary 20 under Primary press); that
|
|
213
|
+
// was a mistake in the design, and the identity look is back.
|
|
204
214
|
background: pastelToken
|
|
205
215
|
? `var(${pastelToken})`
|
|
206
216
|
: `color-mix(in srgb, var(${look.hue}) ${look.tile}, var(--cg-ink))`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../src/blocks/avatar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GACf,MAAM,+BAA+B,CAAA;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../src/blocks/avatar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GACf,MAAM,+BAA+B,CAAA;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,EA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/F,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,EACpC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,EACtC,SAAS,CACV,EACD,KAAK,EAAE;YACL,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,GAAG;YACX,qEAAqE;YACrE,QAAQ,EAAE,QAAQ,GAAG,YAAY,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,IAAI;YAC3E,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,UAAU,EAAE,CAAC;YACb,yEAAyE;YACzE,wEAAwE;YACxE,mEAAmE;YACnE,4CAA4C;YAC5C,sEAAsE;YACtE,uEAAuE;YACvE,8DAA8D;YAC9D,UAAU,EAAE,WAAW;gBACrB,CAAC,CAAC,OAAO,WAAW,GAAG;gBACvB,CAAC,CAAC,0BAA0B,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,IAAI,kBAAkB;YACtE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,2BAA2B;YAC7D,GAAG,KAAK;SACT,KACG,KAAK,aAET,4BAAgB,iBAAiB,iBAAa,MAAM,YACjD,OAAO,GACH,EACN,GAAG,CAAC,CAAC,CAAC;YACL,sEAAsE;YACtE,+DAA+D;YAC/D,2BACY,cAAc,EACxB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EACtB,SAAS,EAAC,yCAAyC,GACnD,CACH,CAAC,CAAC,CAAC,IAAI,IACH,CACR,CAAA;AACH,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -50,7 +50,30 @@ import * as React from "react";
|
|
|
50
50
|
* known gap CLAUDE.md records; this reads the strong rung so the button does not
|
|
51
51
|
* move if the placeholder is retuned.
|
|
52
52
|
*/
|
|
53
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* ## What a bigger delete needs (ui#494)
|
|
55
|
+
*
|
|
56
|
+
* Deleting a whole Grid asks more of the dialog than deleting one creation, and
|
|
57
|
+
* the Grid settings Delete pop-up draws all of it. Each is an optional slot;
|
|
58
|
+
* with none of them the dialog renders exactly what it did before.
|
|
59
|
+
*
|
|
60
|
+
* - `subject`: what is being deleted, drawn under the title (the grid's tile,
|
|
61
|
+
* name and "Organization Grid · Owner: ...", then the question), the design's
|
|
62
|
+
* order: "Delete Grid", the Grid, "Delete Atomic Labs permanently?".
|
|
63
|
+
* - `confirmTextStyle`: `"code"` (default) sets the text to type in the mono
|
|
64
|
+
* face, right for a slug; `"text"` sets it as plain words, right for a name.
|
|
65
|
+
* - `children`: between the consequence line and the field: the `ImpactList`
|
|
66
|
+
* ("What will be affected") and the red "This action cannot be undone."
|
|
67
|
+
* - `placeholder` and `hint`: the field's placeholder ("Enter Grid name") and
|
|
68
|
+
* the line under it ("The name must match exactly."), wired to the field with
|
|
69
|
+
* `aria-describedby`.
|
|
70
|
+
* - `blocked`: the reason this cannot be deleted right now (a grid with other
|
|
71
|
+
* members or running creations, Gilad's safety rules). The field and the
|
|
72
|
+
* Delete button are not offered at all, the reason is said in their place,
|
|
73
|
+
* and the one button closes the dialog. A disabled Delete with a reason
|
|
74
|
+
* elsewhere would invite the reader to keep trying.
|
|
75
|
+
*
|
|
76
|
+
* The consequence line under the title, when the caller does not pass one. */
|
|
54
77
|
export declare const CONFIRM_DELETE_DESCRIPTION = "This removes it from CloudGrid for good. Its link stops working and it can't be brought back.";
|
|
55
78
|
export type ConfirmDeleteDialogProps = {
|
|
56
79
|
open: boolean;
|
|
@@ -75,7 +98,19 @@ export type ConfirmDeleteDialogProps = {
|
|
|
75
98
|
pendingLabel?: string;
|
|
76
99
|
cancelLabel?: string;
|
|
77
100
|
className?: string;
|
|
101
|
+
/** What is being deleted, under the title (ui#494). */
|
|
102
|
+
subject?: React.ReactNode;
|
|
103
|
+
/** How the text to type is set: mono for a slug (default), plain for a name (ui#494). */
|
|
104
|
+
confirmTextStyle?: "code" | "text";
|
|
105
|
+
/** Between the consequence line and the field: an `ImpactList`, a warning (ui#494). */
|
|
106
|
+
children?: React.ReactNode;
|
|
107
|
+
/** The field's placeholder (ui#494). */
|
|
108
|
+
placeholder?: string;
|
|
109
|
+
/** A line under the field, read with it (ui#494). */
|
|
110
|
+
hint?: React.ReactNode;
|
|
111
|
+
/** Why it cannot be deleted now: no field, no Delete, only this reason (ui#494). */
|
|
112
|
+
blocked?: React.ReactNode;
|
|
78
113
|
};
|
|
79
|
-
declare function ConfirmDeleteDialog({ open, onOpenChange, name, confirmText, onConfirm, pending, error, title, description, confirmLabel, pendingLabel, cancelLabel, className, }: ConfirmDeleteDialogProps): React.JSX.Element;
|
|
114
|
+
declare function ConfirmDeleteDialog({ open, onOpenChange, name, confirmText, onConfirm, pending, error, title, description, confirmLabel, pendingLabel, cancelLabel, className, subject, children, placeholder, hint, blocked, confirmTextStyle, }: ConfirmDeleteDialogProps): React.JSX.Element;
|
|
80
115
|
export { ConfirmDeleteDialog };
|
|
81
116
|
//# sourceMappingURL=confirm-delete-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-delete-dialog.d.ts","sourceRoot":"","sources":["../../src/blocks/confirm-delete-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAa9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH
|
|
1
|
+
{"version":3,"file":"confirm-delete-dialog.d.ts","sourceRoot":"","sources":["../../src/blocks/confirm-delete-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAa9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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B,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,SAAS,EACT,OAAe,EACf,KAAK,EACL,KAAK,EACL,WAAwC,EACxC,YAAuB,EACvB,YAAyB,EACzB,WAAsB,EACtB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,OAAO,EACP,gBAAyB,GAC1B,EAAE,wBAAwB,qBA4H1B;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -56,13 +56,38 @@ import { Input } from "../ui/input.js";
|
|
|
56
56
|
* known gap CLAUDE.md records; this reads the strong rung so the button does not
|
|
57
57
|
* move if the placeholder is retuned.
|
|
58
58
|
*/
|
|
59
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* ## What a bigger delete needs (ui#494)
|
|
61
|
+
*
|
|
62
|
+
* Deleting a whole Grid asks more of the dialog than deleting one creation, and
|
|
63
|
+
* the Grid settings Delete pop-up draws all of it. Each is an optional slot;
|
|
64
|
+
* with none of them the dialog renders exactly what it did before.
|
|
65
|
+
*
|
|
66
|
+
* - `subject`: what is being deleted, drawn under the title (the grid's tile,
|
|
67
|
+
* name and "Organization Grid · Owner: ...", then the question), the design's
|
|
68
|
+
* order: "Delete Grid", the Grid, "Delete Atomic Labs permanently?".
|
|
69
|
+
* - `confirmTextStyle`: `"code"` (default) sets the text to type in the mono
|
|
70
|
+
* face, right for a slug; `"text"` sets it as plain words, right for a name.
|
|
71
|
+
* - `children`: between the consequence line and the field: the `ImpactList`
|
|
72
|
+
* ("What will be affected") and the red "This action cannot be undone."
|
|
73
|
+
* - `placeholder` and `hint`: the field's placeholder ("Enter Grid name") and
|
|
74
|
+
* the line under it ("The name must match exactly."), wired to the field with
|
|
75
|
+
* `aria-describedby`.
|
|
76
|
+
* - `blocked`: the reason this cannot be deleted right now (a grid with other
|
|
77
|
+
* members or running creations, Gilad's safety rules). The field and the
|
|
78
|
+
* Delete button are not offered at all, the reason is said in their place,
|
|
79
|
+
* and the one button closes the dialog. A disabled Delete with a reason
|
|
80
|
+
* elsewhere would invite the reader to keep trying.
|
|
81
|
+
*
|
|
82
|
+
* The consequence line under the title, when the caller does not pass one. */
|
|
60
83
|
export const CONFIRM_DELETE_DESCRIPTION = "This removes it from CloudGrid for good. Its link stops working and it can't be brought back.";
|
|
61
|
-
function ConfirmDeleteDialog({ open, onOpenChange, name, confirmText, onConfirm, pending = false, error, title, description = CONFIRM_DELETE_DESCRIPTION, confirmLabel = "Delete", pendingLabel = "Deleting", cancelLabel = "Cancel", className, }) {
|
|
84
|
+
function ConfirmDeleteDialog({ open, onOpenChange, name, confirmText, onConfirm, pending = false, error, title, description = CONFIRM_DELETE_DESCRIPTION, confirmLabel = "Delete", pendingLabel = "Deleting", cancelLabel = "Cancel", className, subject, children, placeholder, hint, blocked, confirmTextStyle = "code", }) {
|
|
62
85
|
const target = confirmText ?? name;
|
|
63
86
|
const [typed, setTyped] = React.useState("");
|
|
64
87
|
const fieldId = React.useId();
|
|
65
88
|
const errorId = React.useId();
|
|
89
|
+
const hintId = React.useId();
|
|
90
|
+
const describedBy = [hint ? hintId : null, error ? errorId : null].filter(Boolean).join(" ") || undefined;
|
|
66
91
|
const field = React.useRef(null);
|
|
67
92
|
const matches = typed.trim() === target;
|
|
68
93
|
// A fresh field every time the dialog opens. Clearing on close instead would
|
|
@@ -83,11 +108,11 @@ function ConfirmDeleteDialog({ open, onOpenChange, name, confirmText, onConfirm,
|
|
|
83
108
|
return;
|
|
84
109
|
void onConfirm();
|
|
85
110
|
}
|
|
86
|
-
return (_jsx(Dialog, { open: open, onOpenChange: changeOpen, children: _jsxs(DialogContent, { "data-slot": "confirm-delete-dialog", initialFocus: field, className: cn("gap-5 p-6 sm:max-w-md", className), children: [_jsxs(DialogHeader, { className: "gap-3 pr-8", children: [_jsx(DialogTitle, { className: "text-heading-sm leading-tight", children: title ?? `Delete ${name}?` }), _jsx(DialogDescription, { className: "text-body-sm text-body", children: description })] }), _jsxs("form", { className: "grid gap-5", onSubmit: submit, noValidate: true, children: [_jsxs("div", { className: "grid gap-2", children: [_jsxs("label", { htmlFor: fieldId, className: "text-body-sm font-medium text-ink", children: ["Type ", _jsx("span", { className: "font-mono text-mono", children: target }), " to confirm"] }), _jsx(Input, { ref: field, id: fieldId, value: typed, onChange: (event) => setTyped(event.target.value), disabled: pending, autoComplete: "off", autoCapitalize: "off", spellCheck: false, "aria-describedby":
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
variant: "
|
|
111
|
+
return (_jsx(Dialog, { open: open, onOpenChange: changeOpen, children: _jsxs(DialogContent, { "data-slot": "confirm-delete-dialog", initialFocus: field, className: cn("gap-5 p-6 sm:max-w-md", className), children: [_jsxs(DialogHeader, { className: "gap-3 pr-8", children: [_jsx(DialogTitle, { className: "text-heading-sm leading-tight", children: title ?? `Delete ${name}?` }), subject ? _jsx("div", { "data-slot": "confirm-delete-subject", children: subject }) : null, _jsx(DialogDescription, { className: "text-body-sm text-body", children: description })] }), children ? (_jsx("div", { "data-slot": "confirm-delete-details", className: "grid gap-4", children: children })) : null, blocked ? (_jsxs("div", { className: "grid gap-5", children: [_jsx("p", { "data-slot": "confirm-delete-blocked", className: "m-0 text-body-sm text-danger-strong", children: blocked }), _jsx("div", { className: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", children: _jsx(Button, { type: "button", variant: "quiet", onClick: () => changeOpen(false), children: cancelLabel }) })] })) : (_jsxs("form", { className: "grid gap-5", onSubmit: submit, noValidate: true, children: [_jsxs("div", { className: "grid gap-2", children: [_jsxs("label", { htmlFor: fieldId, className: "text-body-sm font-medium text-ink", children: ["Type", " ", _jsx("span", { "data-slot": "confirm-delete-target", className: confirmTextStyle === "text" ? undefined : "font-mono text-mono", children: target }), " ", "to confirm"] }), _jsx(Input, { ref: field, id: fieldId, value: typed, onChange: (event) => setTyped(event.target.value), disabled: pending, autoComplete: "off", autoCapitalize: "off", spellCheck: false, "aria-describedby": describedBy, placeholder: placeholder, "data-slot": "confirm-delete-field" }), hint ? (_jsx("p", { id: hintId, "data-slot": "confirm-delete-hint", className: "m-0 text-caption text-faint-strong", children: hint })) : null, error ? (_jsx("p", { id: errorId, role: "alert", className: "m-0 text-caption text-danger-strong", children: error })) : null] }), _jsxs("div", { className: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", children: [_jsx(Button, { type: "button", variant: "quiet", disabled: pending, onClick: () => changeOpen(false), children: cancelLabel }), _jsx(Button, { type: "submit",
|
|
112
|
+
// ui#494 (Asaf): 40 tall as designed, beside a quiet Cancel at the
|
|
113
|
+
// same 40, both on the one button radius. `danger` is the danger
|
|
114
|
+
// pair this button used to paint by hand over `primary`'s 32px.
|
|
115
|
+
variant: "danger", disabled: !matches || pending, "data-slot": "confirm-delete-submit", children: pending ? pendingLabel : confirmLabel })] })] }))] }) }));
|
|
91
116
|
}
|
|
92
117
|
export { ConfirmDeleteDialog };
|
|
93
118
|
//# sourceMappingURL=confirm-delete-dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-delete-dialog.js","sourceRoot":"","sources":["../../src/blocks/confirm-delete-dialog.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EACL,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,WAAW,GACZ,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH
|
|
1
|
+
{"version":3,"file":"confirm-delete-dialog.js","sourceRoot":"","sources":["../../src/blocks/confirm-delete-dialog.tsx"],"names":[],"mappings":"AAAA,YAA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P,KAAK,CAAC,CAAC,CAAC,CACP,YAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,qCAAqC,YACzE,KAAK,GACJ,CACL,CAAC,CAAC,CAAC,IAAI,IACJ,EAEN,eAAK,SAAS,EAAC,wDAAwD,aACrE,KAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,OAAO,EACf,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,YAE/B,WAAW,GACL,EACT,KAAC,MAAM,IACL,IAAI,EAAC,QAAQ;oCACb,mEAAmE;oCACnE,iEAAiE;oCACjE,gEAAgE;oCAChE,OAAO,EAAC,QAAQ,EAChB,QAAQ,EAAE,CAAC,OAAO,IAAI,OAAO,eACnB,uBAAuB,YAEhC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,GAC/B,IACL,IACD,CACR,IACa,GACT,CACV,CAAA;AACH,CAAC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function DangerZone({ title, description, open, defaultOpen, onOpenChange, className, children, }: {
|
|
3
|
+
/** The row's label. */
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
/** The help line under it. */
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
/** Controlled. Pass `onOpenChange` with it. */
|
|
8
|
+
open?: boolean;
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
onOpenChange?: (open: boolean) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
/** The rows behind it: Archive, Delete. */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
export { DangerZone };
|
|
16
|
+
//# sourceMappingURL=danger-zone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"danger-zone.d.ts","sourceRoot":"","sources":["../../src/blocks/danger-zone.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA0B9B,iBAAS,UAAU,CAAC,EAClB,KAAqB,EACrB,WAAW,EACX,IAAI,EACJ,WAAmB,EACnB,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE;IACD,uBAAuB;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,+CAA+C;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,qBA0BA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "../ui/accordion.js";
|
|
6
|
+
/**
|
|
7
|
+
* THE DANGER ZONE (ui#494): the closed row at the foot of a settings page that
|
|
8
|
+
* opens to the actions that cannot be taken back. General's "Danger zone ·
|
|
9
|
+
* Archive or permanently delete this Grid", opening to Archive Grid and Delete
|
|
10
|
+
* Grid.
|
|
11
|
+
*
|
|
12
|
+
* It is the library `Accordion` with one item, not a disclosure of its own: the
|
|
13
|
+
* trigger is a real `<button>` inside a heading, `aria-expanded` says whether
|
|
14
|
+
* it is open, Enter and Space toggle it, and the rows are not in the page while
|
|
15
|
+
* it is closed (Base UI unmounts a closed panel). Closed by default, so the
|
|
16
|
+
* destructive buttons are one deliberate step away.
|
|
17
|
+
*
|
|
18
|
+
* The trigger reads as a settings row, so it takes the row's metrics (the label
|
|
19
|
+
* Medium 15, the help in the caption role, 16 above and below) and drops the
|
|
20
|
+
* accordion's hover underline, which belongs to a text link. The rows inside
|
|
21
|
+
* are the caller's `SettingsRow`s, under a hairline.
|
|
22
|
+
*
|
|
23
|
+
* `open` / `onOpenChange` control it; `defaultOpen` starts it open.
|
|
24
|
+
*/
|
|
25
|
+
const ITEM = "danger-zone";
|
|
26
|
+
function DangerZone({ title = "Danger zone", description, open, defaultOpen = false, onOpenChange, className, children, }) {
|
|
27
|
+
return (_jsx(Accordion, { "data-slot": "danger-zone", className: cn("text-ink", className), ...(open !== undefined ? { value: open ? [ITEM] : [] } : {}), defaultValue: defaultOpen ? [ITEM] : [], onValueChange: (value) => onOpenChange?.(value.includes(ITEM)), children: _jsxs(AccordionItem, { value: ITEM, children: [_jsx(AccordionTrigger, { indicator: "right", className: "items-center gap-8 rounded-md py-4 hover:no-underline", children: _jsxs("span", { className: "grid min-w-0 gap-1", children: [_jsx("span", { className: "text-body-sm font-medium text-ink", children: title }), description ? (_jsx("span", { className: "text-caption font-normal text-faint-strong", children: description })) : null] }) }), _jsx(AccordionContent, { children: _jsx("div", { "data-slot": "danger-zone-rows", className: "flex flex-col border-t border-hairline", children: children }) })] }) }));
|
|
28
|
+
}
|
|
29
|
+
export { DangerZone };
|
|
30
|
+
//# sourceMappingURL=danger-zone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"danger-zone.js","sourceRoot":"","sources":["../../src/blocks/danger-zone.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,gBAAgB,EAAE,aAAa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react";
|
|
2
|
+
/**
|
|
3
|
+
* THE FILTER ROW (ui#494) over a settings list: Members ("Search by name or
|
|
4
|
+
* email", All roles, All spaces), Spaces ("Search spaces", "3 Spaces"), Usage
|
|
5
|
+
* by creation ("Search creations", All Spaces, All states, and Show all at the
|
|
6
|
+
* far end).
|
|
7
|
+
*
|
|
8
|
+
* The controls are the library's own (`SearchField`, `Select`); the row is
|
|
9
|
+
* what makes them one row. Asaf, 2026-11-16: "all controls in one row share
|
|
10
|
+
* the same height, inner left and right padding, text baseline and corner
|
|
11
|
+
* radius" (the Usage frame drew its dropdowns with their text flush on the
|
|
12
|
+
* border; that slip is fixed here, not copied).
|
|
13
|
+
*
|
|
14
|
+
* Every field and dropdown in the library is radius 12 (ui#494, Asaf's
|
|
15
|
+
* decision). They still disagree on one thing, each for its own frame: `Input`
|
|
16
|
+
* sets 16px text under `md`, `Select` 15px. Inside this row every field and
|
|
17
|
+
* dropdown is 40 tall, 15px text, and the first thing drawn in it 20px from the box's outer
|
|
18
|
+
* edge: a dropdown's value (1px border, 19 of padding) and the search mark,
|
|
19
|
+
* which `Input` alone places 19 from the edge and this row moves to 20. The
|
|
20
|
+
* e2e measured that 1px. So every box starts its content at one x from its
|
|
21
|
+
* edge and every label sits on one baseline.
|
|
22
|
+
*
|
|
23
|
+
* ## Layout
|
|
24
|
+
*
|
|
25
|
+
* One line, 12px apart (`gap-3`), centred vertically, wrapping on a narrow
|
|
26
|
+
* window rather than scrolling sideways. The search field is full width on a
|
|
27
|
+
* phone and 320 from `sm`. `trailing` is a quiet count after the controls
|
|
28
|
+
* ("3 Spaces"); `end` sits at the far right (the Show all switch). The row is
|
|
29
|
+
* a `role="group"`; name it with `aria-label` ("Filter members").
|
|
30
|
+
*/
|
|
31
|
+
declare function FilterBar({ trailing, end, className, children, ...props }: Omit<React.ComponentProps<"div">, "role"> & {
|
|
32
|
+
/** Quiet text after the controls: the count. */
|
|
33
|
+
trailing?: React.ReactNode;
|
|
34
|
+
/** At the far right: the Show all switch. */
|
|
35
|
+
end?: React.ReactNode;
|
|
36
|
+
}): React.JSX.Element;
|
|
37
|
+
export { FilterBar };
|
|
38
|
+
//# sourceMappingURL=filter-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-bar.d.ts","sourceRoot":"","sources":["../../src/blocks/filter-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,iBAAS,SAAS,CAAC,EACjB,QAAQ,EACR,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG;IAC7C,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,6CAA6C;IAC7C,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACtB,qBA2BA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../lib/cloudgrid-cn.js";
|
|
4
|
+
/**
|
|
5
|
+
* THE FILTER ROW (ui#494) over a settings list: Members ("Search by name or
|
|
6
|
+
* email", All roles, All spaces), Spaces ("Search spaces", "3 Spaces"), Usage
|
|
7
|
+
* by creation ("Search creations", All Spaces, All states, and Show all at the
|
|
8
|
+
* far end).
|
|
9
|
+
*
|
|
10
|
+
* The controls are the library's own (`SearchField`, `Select`); the row is
|
|
11
|
+
* what makes them one row. Asaf, 2026-11-16: "all controls in one row share
|
|
12
|
+
* the same height, inner left and right padding, text baseline and corner
|
|
13
|
+
* radius" (the Usage frame drew its dropdowns with their text flush on the
|
|
14
|
+
* border; that slip is fixed here, not copied).
|
|
15
|
+
*
|
|
16
|
+
* Every field and dropdown in the library is radius 12 (ui#494, Asaf's
|
|
17
|
+
* decision). They still disagree on one thing, each for its own frame: `Input`
|
|
18
|
+
* sets 16px text under `md`, `Select` 15px. Inside this row every field and
|
|
19
|
+
* dropdown is 40 tall, 15px text, and the first thing drawn in it 20px from the box's outer
|
|
20
|
+
* edge: a dropdown's value (1px border, 19 of padding) and the search mark,
|
|
21
|
+
* which `Input` alone places 19 from the edge and this row moves to 20. The
|
|
22
|
+
* e2e measured that 1px. So every box starts its content at one x from its
|
|
23
|
+
* edge and every label sits on one baseline.
|
|
24
|
+
*
|
|
25
|
+
* ## Layout
|
|
26
|
+
*
|
|
27
|
+
* One line, 12px apart (`gap-3`), centred vertically, wrapping on a narrow
|
|
28
|
+
* window rather than scrolling sideways. The search field is full width on a
|
|
29
|
+
* phone and 320 from `sm`. `trailing` is a quiet count after the controls
|
|
30
|
+
* ("3 Spaces"); `end` sits at the far right (the Show all switch). The row is
|
|
31
|
+
* a `role="group"`; name it with `aria-label` ("Filter members").
|
|
32
|
+
*/
|
|
33
|
+
function FilterBar({ trailing, end, className, children, ...props }) {
|
|
34
|
+
return (_jsxs("div", { "data-slot": "filter-bar", role: "group", className: cn("flex min-w-0 flex-wrap items-center gap-3 text-ink", "[&_[data-slot=input]]:text-body-sm [&_[data-slot=input-leading]]:start-5", "[&_[data-slot=select-trigger]]:h-10 [&_[data-slot=select-trigger]]:px-[19px] [&_[data-slot=select-trigger]]:text-body-sm", "[&>[data-slot=search-field]]:w-full sm:[&>[data-slot=search-field]]:w-80", className), ...props, children: [children, trailing ? (_jsx("span", { "data-slot": "filter-bar-trailing", className: "text-body-sm text-faint-strong", children: trailing })) : null, end ? (_jsx("div", { "data-slot": "filter-bar-end", className: "ms-auto flex items-center gap-3", children: end })) : null] }));
|
|
35
|
+
}
|
|
36
|
+
export { FilterBar };
|
|
37
|
+
//# sourceMappingURL=filter-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-bar.js","sourceRoot":"","sources":["../../src/blocks/filter-bar.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAS,SAAS,CAAC,EACjB,QAAQ,EACR,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAMT;IACC,OAAO,CACL,4BACY,YAAY,EACtB,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,EAAE,CACX,oDAAoD,EACpD,0EAA0E,EAC1E,0HAA0H,EAC1H,0EAA0E,EAC1E,SAAS,CACV,KACG,KAAK,aAER,QAAQ,EACR,QAAQ,CAAC,CAAC,CAAC,CACV,4BAAgB,qBAAqB,EAAC,SAAS,EAAC,gCAAgC,YAC7E,QAAQ,GACJ,CACR,CAAC,CAAC,CAAC,IAAI,EACP,GAAG,CAAC,CAAC,CAAC,CACL,2BAAe,gBAAgB,EAAC,SAAS,EAAC,iCAAiC,YACxE,GAAG,GACA,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* THE GRID PROFILE (ui#494): the block at the top of the Grid settings General
|
|
4
|
+
* page.
|
|
5
|
+
*
|
|
6
|
+
* ```
|
|
7
|
+
* ┌──────┐
|
|
8
|
+
* │ A │ Atomic Labs ✎
|
|
9
|
+
* │ ✎│ A shared home for our team's creations. ✎
|
|
10
|
+
* └──────┘
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* - The logo tile is the library `Avatar`: the 80px rung, square, the pastel
|
|
14
|
+
* look (the grid avatar of the header, #381), so a grid has one colour and
|
|
15
|
+
* one letter everywhere. `logoSrc` draws the grid's picture in it, and a
|
|
16
|
+
* picture that fails to load falls back to the letter (Avatar's own rule).
|
|
17
|
+
* - The pencil badge at the tile's lower right is a 28px round button named
|
|
18
|
+
* "Change the Grid logo". The upload is the platform's and comes later
|
|
19
|
+
* (cloudgrid#6538); the caller passes `onEditLogo` when it can do something.
|
|
20
|
+
* Not `AvatarPicker`: that is a person's photo, a round picture with a camera
|
|
21
|
+
* over it on hover and a file input of its own; the grid's tile is a square
|
|
22
|
+
* with a pencil, and what pressing it opens is the caller's.
|
|
23
|
+
* - The name (H4 role, 22) and the description (body text, 15, in the body
|
|
24
|
+
* tone) are `EditableValue`s, so each pencil is named for what it edits
|
|
25
|
+
* ("Edit Grid name", "Edit Grid description").
|
|
26
|
+
*
|
|
27
|
+
* With no handler a pencil is not drawn at all: a pencil that does nothing
|
|
28
|
+
* would say the value can be changed when it cannot. The tile and the text are
|
|
29
|
+
* centred on one line, 24 apart.
|
|
30
|
+
*/
|
|
31
|
+
declare function GridProfile({ name, description, logoSrc, seed, onEditLogo, onEditName, onEditDescription, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
32
|
+
/** The grid's name: the tile's letter, and the large line. */
|
|
33
|
+
name: string;
|
|
34
|
+
/** The line under the name. */
|
|
35
|
+
description?: React.ReactNode;
|
|
36
|
+
/** The grid's picture, when it has one. */
|
|
37
|
+
logoSrc?: string;
|
|
38
|
+
/** What the tile's colour is derived from: the grid's id, so a rename keeps it. */
|
|
39
|
+
seed?: string;
|
|
40
|
+
/** The badge on the tile was pressed. No handler, no badge. */
|
|
41
|
+
onEditLogo?: () => void;
|
|
42
|
+
onEditName?: () => void;
|
|
43
|
+
onEditDescription?: () => void;
|
|
44
|
+
}): React.JSX.Element;
|
|
45
|
+
export { GridProfile };
|
|
46
|
+
//# sourceMappingURL=grid-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-profile.d.ts","sourceRoot":"","sources":["../../src/blocks/grid-profile.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,OAAO,EACP,IAAI,EACJ,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjD,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,+BAA+B;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC/B,qBAwCA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { Avatar } from "./avatar.js";
|
|
6
|
+
import { EditIcon } from "./icons.js";
|
|
7
|
+
import { EditableValue } from "./settings-row.js";
|
|
8
|
+
/**
|
|
9
|
+
* THE GRID PROFILE (ui#494): the block at the top of the Grid settings General
|
|
10
|
+
* page.
|
|
11
|
+
*
|
|
12
|
+
* ```
|
|
13
|
+
* ┌──────┐
|
|
14
|
+
* │ A │ Atomic Labs ✎
|
|
15
|
+
* │ ✎│ A shared home for our team's creations. ✎
|
|
16
|
+
* └──────┘
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* - The logo tile is the library `Avatar`: the 80px rung, square, the pastel
|
|
20
|
+
* look (the grid avatar of the header, #381), so a grid has one colour and
|
|
21
|
+
* one letter everywhere. `logoSrc` draws the grid's picture in it, and a
|
|
22
|
+
* picture that fails to load falls back to the letter (Avatar's own rule).
|
|
23
|
+
* - The pencil badge at the tile's lower right is a 28px round button named
|
|
24
|
+
* "Change the Grid logo". The upload is the platform's and comes later
|
|
25
|
+
* (cloudgrid#6538); the caller passes `onEditLogo` when it can do something.
|
|
26
|
+
* Not `AvatarPicker`: that is a person's photo, a round picture with a camera
|
|
27
|
+
* over it on hover and a file input of its own; the grid's tile is a square
|
|
28
|
+
* with a pencil, and what pressing it opens is the caller's.
|
|
29
|
+
* - The name (H4 role, 22) and the description (body text, 15, in the body
|
|
30
|
+
* tone) are `EditableValue`s, so each pencil is named for what it edits
|
|
31
|
+
* ("Edit Grid name", "Edit Grid description").
|
|
32
|
+
*
|
|
33
|
+
* With no handler a pencil is not drawn at all: a pencil that does nothing
|
|
34
|
+
* would say the value can be changed when it cannot. The tile and the text are
|
|
35
|
+
* centred on one line, 24 apart.
|
|
36
|
+
*/
|
|
37
|
+
function GridProfile({ name, description, logoSrc, seed, onEditLogo, onEditName, onEditDescription, className, ...props }) {
|
|
38
|
+
return (_jsxs("div", { "data-slot": "grid-profile", className: cn("flex min-w-0 flex-wrap items-center gap-6 text-ink", className), ...props, children: [_jsxs("span", { "data-slot": "grid-profile-logo", className: "relative inline-flex shrink-0", children: [_jsx(Avatar, { name: name, seed: seed, src: logoSrc, size: 80, shape: "square", look: "pastel" }), onEditLogo ? (_jsx("button", { type: "button", "aria-label": "Change the Grid logo", onClick: onEditLogo, className: "absolute -right-1.5 -bottom-1.5 inline-flex size-7 items-center justify-center rounded-pill border border-hairline bg-card text-body shadow-sm transition-colors hover:text-ink focus-line", children: _jsx(EditIcon, { className: "size-3.5" }) })) : null] }), _jsxs("div", { className: "grid min-w-0 flex-1 gap-2", children: [_jsx(EditableValue, { "data-slot": "grid-profile-name", value: name, label: "Grid name", onEdit: onEditName, valueClassName: "text-heading-lg font-normal leading-tight" }), description ? (_jsx(EditableValue, { "data-slot": "grid-profile-description", value: description, label: "Grid description", onEdit: onEditDescription, valueClassName: "text-body" })) : null] })] }));
|
|
39
|
+
}
|
|
40
|
+
export { GridProfile };
|
|
41
|
+
//# sourceMappingURL=grid-profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-profile.js","sourceRoot":"","sources":["../../src/blocks/grid-profile.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAS,WAAW,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,OAAO,EACP,IAAI,EACJ,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,GAAG,KAAK,EAcT;IACC,OAAO,CACL,4BACY,cAAc,EACxB,SAAS,EAAE,EAAE,CAAC,oDAAoD,EAAE,SAAS,CAAC,KAC1E,KAAK,aAET,6BAAgB,mBAAmB,EAAC,SAAS,EAAC,+BAA+B,aAC3E,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAG,EACtF,UAAU,CAAC,CAAC,CAAC,CACZ,iBACE,IAAI,EAAC,QAAQ,gBACF,sBAAsB,EACjC,OAAO,EAAE,UAAU,EACnB,SAAS,EAAC,4LAA4L,YAEtM,KAAC,QAAQ,IAAC,SAAS,EAAC,UAAU,GAAG,GAC1B,CACV,CAAC,CAAC,CAAC,IAAI,IACH,EACP,eAAK,SAAS,EAAC,2BAA2B,aACxC,KAAC,aAAa,iBACF,mBAAmB,EAC7B,KAAK,EAAE,IAAI,EACX,KAAK,EAAC,WAAW,EACjB,MAAM,EAAE,UAAU,EAClB,cAAc,EAAC,2CAA2C,GAC1D,EACD,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,aAAa,iBACF,0BAA0B,EACpC,KAAK,EAAE,WAAW,EAClB,KAAK,EAAC,kBAAkB,EACxB,MAAM,EAAE,iBAAiB,EACzB,cAAc,EAAC,WAAW,GAC1B,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
package/dist/blocks/icons.d.ts
CHANGED
|
@@ -574,6 +574,35 @@ export { ShieldCheckMark as SsoIcon, FileCodeMark as SandboxIcon, FolderMark as
|
|
|
574
574
|
*/
|
|
575
575
|
export { AdminMark as AdminIcon, AdminFillMark as AdminFilledIcon, } from "./supplied-marks.js";
|
|
576
576
|
export { CirclesFourMark as GridOverviewIcon, CirclesFourFillMark as GridOverviewFilledIcon, SlidersHorizontalMark as PoliciesIcon, SlidersHorizontalFillMark as PoliciesFilledIcon, UsersFourMark as SsoMenuIcon, UsersFourFillMark as SsoMenuFilledIcon, } from "./phosphor-marks.js";
|
|
577
|
+
/**
|
|
578
|
+
* The Grid settings redesign's menu (#494, Asaf 2026-11-16), one role per row,
|
|
579
|
+
* each with its filled twin for the active row (#204 / #377):
|
|
580
|
+
*
|
|
581
|
+
* General `squares-four`. The grid at large: identity and defaults.
|
|
582
|
+
* The same mark as `ReactionBuildOnIcon`, a second role name.
|
|
583
|
+
* Usage `gauge`. How much of the grid's allowance is used. #200 took
|
|
584
|
+
* the gauge off the entity card's RESULTS door, where a dial
|
|
585
|
+
* read as a speed; here a dial is the idea.
|
|
586
|
+
* BillingMenu `credit-card`. The plan and how it is paid. Not a repoint of
|
|
587
|
+
* `BillingIcon` (`currency-circle-dollar`), which the Console's
|
|
588
|
+
* current menu wears; the redesign draws no money in the menu.
|
|
589
|
+
* PaymentMethod `credit-card` again, for the billing page's payment line.
|
|
590
|
+
* Permissions `shield-check`, the same mark as `SsoIcon`: what members may
|
|
591
|
+
* do. Not `PoliciesIcon` (the sliders), which Permissions
|
|
592
|
+
* replaces in the menu.
|
|
593
|
+
* AiSettings `brain`, the same mark as `MemoryIcon`.
|
|
594
|
+
* Shelf `archive`, the same mark as `JunkyardIcon`.
|
|
595
|
+
* Connectors `plug`, the same mark as `PlugIcon`.
|
|
596
|
+
* DevSandbox `code`, the same mark as `DeveloperIcon`. Not `SandboxIcon`
|
|
597
|
+
* (`file-code`), which the request card's art still wears.
|
|
598
|
+
* AuditLogs `clock-counter-clockwise`, the same mark as `VersionsIcon`.
|
|
599
|
+
*
|
|
600
|
+
* Members, Spaces, Domains, Vault and SSO already had both halves: `PeopleIcon`,
|
|
601
|
+
* `LayersIcon`, `WebIcon`, `SecretIcon`, `SsoMenuIcon` and their twins. The
|
|
602
|
+
* redesign draws SSO as a key, which is Vault's picture; the menu keeps
|
|
603
|
+
* `SsoMenuIcon` so no two rows share one (test/settings-menu-icons-494.test.mjs).
|
|
604
|
+
*/
|
|
605
|
+
export { SquaresFourMark as GeneralIcon, SquaresFourFillMark as GeneralFilledIcon, GaugeMark as UsageIcon, GaugeFillMark as UsageFilledIcon, CreditCardMark as BillingMenuIcon, CreditCardFillMark as BillingMenuFilledIcon, CreditCardMark as PaymentMethodIcon, CreditCardFillMark as PaymentMethodFilledIcon, ShieldCheckMark as PermissionsIcon, ShieldCheckFillMark as PermissionsFilledIcon, BrainMark as AiSettingsIcon, BrainFillMark as AiSettingsFilledIcon, ArchiveMark as ShelfIcon, ArchiveFillMark as ShelfFilledIcon, PlugMark as ConnectorsIcon, PlugFillMark as ConnectorsFilledIcon, CodeMark as DevSandboxIcon, CodeFillMark as DevSandboxFilledIcon, ClockCounterClockwiseMark as AuditLogsIcon, ClockCounterClockwiseFillMark as AuditLogsFilledIcon, } from "./phosphor-marks.js";
|
|
577
606
|
/** The weight departures, each replacing a numeric prop lucide used to carry. */
|
|
578
607
|
export { PulseBoldMark as ActivityBoldIcon, CompassBoldMark as DiscoverBoldIcon, StackBoldMark as LayersBoldIcon, UserBoldMark as PersonBoldIcon, HouseSimpleBoldMark as HomeBoldIcon, GridFourBoldMark as SpaceBoldIcon, PushPinFillMark as SaveFilledIcon, HouseSimpleFillMark as HomeFilledIcon, } from "./phosphor-marks.js";
|
|
579
608
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","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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,MAAM,8BAA8B,CAAA;AAErC;;;;;;GAMG;AACH,YAAY,EAAE,iBAAiB,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAA"}
|
package/dist/blocks/icons.js
CHANGED
|
@@ -589,6 +589,35 @@ export { ShieldCheckMark as SsoIcon, FileCodeMark as SandboxIcon, FolderMark as
|
|
|
589
589
|
*/
|
|
590
590
|
export { AdminMark as AdminIcon, AdminFillMark as AdminFilledIcon, } from "./supplied-marks.js";
|
|
591
591
|
export { CirclesFourMark as GridOverviewIcon, CirclesFourFillMark as GridOverviewFilledIcon, SlidersHorizontalMark as PoliciesIcon, SlidersHorizontalFillMark as PoliciesFilledIcon, UsersFourMark as SsoMenuIcon, UsersFourFillMark as SsoMenuFilledIcon, } from "./phosphor-marks.js";
|
|
592
|
+
/**
|
|
593
|
+
* The Grid settings redesign's menu (#494, Asaf 2026-11-16), one role per row,
|
|
594
|
+
* each with its filled twin for the active row (#204 / #377):
|
|
595
|
+
*
|
|
596
|
+
* General `squares-four`. The grid at large: identity and defaults.
|
|
597
|
+
* The same mark as `ReactionBuildOnIcon`, a second role name.
|
|
598
|
+
* Usage `gauge`. How much of the grid's allowance is used. #200 took
|
|
599
|
+
* the gauge off the entity card's RESULTS door, where a dial
|
|
600
|
+
* read as a speed; here a dial is the idea.
|
|
601
|
+
* BillingMenu `credit-card`. The plan and how it is paid. Not a repoint of
|
|
602
|
+
* `BillingIcon` (`currency-circle-dollar`), which the Console's
|
|
603
|
+
* current menu wears; the redesign draws no money in the menu.
|
|
604
|
+
* PaymentMethod `credit-card` again, for the billing page's payment line.
|
|
605
|
+
* Permissions `shield-check`, the same mark as `SsoIcon`: what members may
|
|
606
|
+
* do. Not `PoliciesIcon` (the sliders), which Permissions
|
|
607
|
+
* replaces in the menu.
|
|
608
|
+
* AiSettings `brain`, the same mark as `MemoryIcon`.
|
|
609
|
+
* Shelf `archive`, the same mark as `JunkyardIcon`.
|
|
610
|
+
* Connectors `plug`, the same mark as `PlugIcon`.
|
|
611
|
+
* DevSandbox `code`, the same mark as `DeveloperIcon`. Not `SandboxIcon`
|
|
612
|
+
* (`file-code`), which the request card's art still wears.
|
|
613
|
+
* AuditLogs `clock-counter-clockwise`, the same mark as `VersionsIcon`.
|
|
614
|
+
*
|
|
615
|
+
* Members, Spaces, Domains, Vault and SSO already had both halves: `PeopleIcon`,
|
|
616
|
+
* `LayersIcon`, `WebIcon`, `SecretIcon`, `SsoMenuIcon` and their twins. The
|
|
617
|
+
* redesign draws SSO as a key, which is Vault's picture; the menu keeps
|
|
618
|
+
* `SsoMenuIcon` so no two rows share one (test/settings-menu-icons-494.test.mjs).
|
|
619
|
+
*/
|
|
620
|
+
export { SquaresFourMark as GeneralIcon, SquaresFourFillMark as GeneralFilledIcon, GaugeMark as UsageIcon, GaugeFillMark as UsageFilledIcon, CreditCardMark as BillingMenuIcon, CreditCardFillMark as BillingMenuFilledIcon, CreditCardMark as PaymentMethodIcon, CreditCardFillMark as PaymentMethodFilledIcon, ShieldCheckMark as PermissionsIcon, ShieldCheckFillMark as PermissionsFilledIcon, BrainMark as AiSettingsIcon, BrainFillMark as AiSettingsFilledIcon, ArchiveMark as ShelfIcon, ArchiveFillMark as ShelfFilledIcon, PlugMark as ConnectorsIcon, PlugFillMark as ConnectorsFilledIcon, CodeMark as DevSandboxIcon, CodeFillMark as DevSandboxFilledIcon, ClockCounterClockwiseMark as AuditLogsIcon, ClockCounterClockwiseFillMark as AuditLogsFilledIcon, } from "./phosphor-marks.js";
|
|
592
621
|
/** The weight departures, each replacing a numeric prop lucide used to carry. */
|
|
593
622
|
export { PulseBoldMark as ActivityBoldIcon, CompassBoldMark as DiscoverBoldIcon, StackBoldMark as LayersBoldIcon, UserBoldMark as PersonBoldIcon, HouseSimpleBoldMark as HomeBoldIcon, GridFourBoldMark as SpaceBoldIcon, PushPinFillMark as SaveFilledIcon, HouseSimpleFillMark as HomeFilledIcon, } from "./phosphor-marks.js";
|
|
594
623
|
/**
|