@cloudgrid-io/ui 0.55.0 → 0.57.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/chip-list.d.ts +35 -0
- package/dist/blocks/chip-list.d.ts.map +1 -0
- package/dist/blocks/chip-list.js +37 -0
- package/dist/blocks/chip-list.js.map +1 -0
- package/dist/blocks/confirm-delete-dialog.d.ts +12 -1
- package/dist/blocks/confirm-delete-dialog.d.ts.map +1 -1
- package/dist/blocks/confirm-delete-dialog.js +2 -2
- package/dist/blocks/confirm-delete-dialog.js.map +1 -1
- package/dist/blocks/danger-zone.d.ts.map +1 -1
- package/dist/blocks/danger-zone.js +13 -1
- package/dist/blocks/danger-zone.js.map +1 -1
- package/dist/blocks/dialog-subject.d.ts +34 -0
- package/dist/blocks/dialog-subject.d.ts.map +1 -0
- package/dist/blocks/dialog-subject.js +30 -0
- package/dist/blocks/dialog-subject.js.map +1 -0
- package/dist/blocks/field-label.d.ts +31 -0
- package/dist/blocks/field-label.d.ts.map +1 -0
- package/dist/blocks/field-label.js +29 -0
- package/dist/blocks/field-label.js.map +1 -0
- package/dist/blocks/filter-bar.d.ts +7 -5
- package/dist/blocks/filter-bar.d.ts.map +1 -1
- package/dist/blocks/filter-bar.js +13 -6
- package/dist/blocks/filter-bar.js.map +1 -1
- package/dist/blocks/grid-profile.d.ts +15 -1
- package/dist/blocks/grid-profile.d.ts.map +1 -1
- package/dist/blocks/grid-profile.js +14 -2
- package/dist/blocks/grid-profile.js.map +1 -1
- package/dist/blocks/impact-list.d.ts.map +1 -1
- package/dist/blocks/impact-list.js +1 -1
- package/dist/blocks/impact-list.js.map +1 -1
- package/dist/blocks/search-field.d.ts +4 -1
- package/dist/blocks/search-field.d.ts.map +1 -1
- package/dist/blocks/search-field.js +2 -2
- package/dist/blocks/search-field.js.map +1 -1
- package/dist/blocks/section-heading.d.ts +12 -1
- package/dist/blocks/section-heading.d.ts.map +1 -1
- package/dist/blocks/section-heading.js +12 -3
- package/dist/blocks/section-heading.js.map +1 -1
- package/dist/blocks/settings-frame.d.ts +7 -1
- package/dist/blocks/settings-frame.d.ts.map +1 -1
- package/dist/blocks/settings-frame.js +9 -2
- package/dist/blocks/settings-frame.js.map +1 -1
- package/dist/blocks/settings-row.d.ts +36 -5
- package/dist/blocks/settings-row.d.ts.map +1 -1
- package/dist/blocks/settings-row.js +55 -13
- package/dist/blocks/settings-row.js.map +1 -1
- package/dist/blocks/side-nav.d.ts +31 -1
- package/dist/blocks/side-nav.d.ts.map +1 -1
- package/dist/blocks/side-nav.js +38 -20
- package/dist/blocks/side-nav.js.map +1 -1
- package/dist/blocks/usage-meter.d.ts +7 -1
- package/dist/blocks/usage-meter.d.ts.map +1 -1
- package/dist/blocks/usage-meter.js +9 -3
- package/dist/blocks/usage-meter.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +8 -0
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +6 -1
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/combobox.d.ts +10 -1
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +10 -2
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/dialog.d.ts +13 -2
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +13 -3
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/input.d.ts +20 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +20 -3
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/select.d.ts +7 -3
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +25 -1
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/switch.d.ts +13 -0
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +14 -1
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts +6 -1
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +6 -3
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/textarea.d.ts +10 -1
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +10 -2
- package/dist/ui/textarea.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* THE CHOSEN ITEMS UNDER A FIELD (ui#500): New Space's "Add members", where
|
|
4
|
+
* the design draws the people already picked as chips under the search field,
|
|
5
|
+
* not inside it (`ComboboxChips` is the in-field kind).
|
|
6
|
+
*
|
|
7
|
+
* ```
|
|
8
|
+
* [ Search Grid members v ]
|
|
9
|
+
* 24, the caller's
|
|
10
|
+
* ( Asaf Cohen x ) ( Nataly Cohen x )
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* - `ChipList` is a `<ul>`; name it (`aria-label="Members to add"`) so a
|
|
14
|
+
* screen reader hears what the list is. The chips wrap, 8 apart.
|
|
15
|
+
* - `Chip` is one item, as the design measures it: 36 tall, radius 8, the page
|
|
16
|
+
* grey (N1), the name 16 in steel-strong, 14 in from the left. With
|
|
17
|
+
* `onRemove` it ends with a 24px button holding a 16px x in steel, 12 from
|
|
18
|
+
* the right edge, named "Remove <name>" (or `removeLabel`). Without it the
|
|
19
|
+
* chip is a plain item, 14 each side.
|
|
20
|
+
* - On the panel and on ink the ground and the words fall back to the scope's
|
|
21
|
+
* wash and its strong muted text.
|
|
22
|
+
*
|
|
23
|
+
* The space between the field and the list (24 in the pop-up) is the caller's.
|
|
24
|
+
*/
|
|
25
|
+
declare function ChipList({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
|
|
26
|
+
declare function Chip({ children, onRemove, removeLabel, className, ...props }: Omit<React.ComponentProps<"li">, "children"> & {
|
|
27
|
+
/** What was chosen: a person's name. */
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
/** The x was pressed. No handler, no x. */
|
|
30
|
+
onRemove?: () => void;
|
|
31
|
+
/** The x's name, when the chip's words are not plain text. Default "Remove <name>". */
|
|
32
|
+
removeLabel?: string;
|
|
33
|
+
}): React.JSX.Element;
|
|
34
|
+
export { Chip, ChipList };
|
|
35
|
+
//# sourceMappingURL=chip-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip-list.d.ts","sourceRoot":"","sources":["../../src/blocks/chip-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,qBAQpE;AAED,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,GAAG;IAChD,wCAAwC;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,qBA6BA;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { CloseIcon } from "./icons.js";
|
|
6
|
+
/**
|
|
7
|
+
* THE CHOSEN ITEMS UNDER A FIELD (ui#500): New Space's "Add members", where
|
|
8
|
+
* the design draws the people already picked as chips under the search field,
|
|
9
|
+
* not inside it (`ComboboxChips` is the in-field kind).
|
|
10
|
+
*
|
|
11
|
+
* ```
|
|
12
|
+
* [ Search Grid members v ]
|
|
13
|
+
* 24, the caller's
|
|
14
|
+
* ( Asaf Cohen x ) ( Nataly Cohen x )
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* - `ChipList` is a `<ul>`; name it (`aria-label="Members to add"`) so a
|
|
18
|
+
* screen reader hears what the list is. The chips wrap, 8 apart.
|
|
19
|
+
* - `Chip` is one item, as the design measures it: 36 tall, radius 8, the page
|
|
20
|
+
* grey (N1), the name 16 in steel-strong, 14 in from the left. With
|
|
21
|
+
* `onRemove` it ends with a 24px button holding a 16px x in steel, 12 from
|
|
22
|
+
* the right edge, named "Remove <name>" (or `removeLabel`). Without it the
|
|
23
|
+
* chip is a plain item, 14 each side.
|
|
24
|
+
* - On the panel and on ink the ground and the words fall back to the scope's
|
|
25
|
+
* wash and its strong muted text.
|
|
26
|
+
*
|
|
27
|
+
* The space between the field and the list (24 in the pop-up) is the caller's.
|
|
28
|
+
*/
|
|
29
|
+
function ChipList({ className, ...props }) {
|
|
30
|
+
return (_jsx("ul", { "data-slot": "chip-list", className: cn("m-0 flex min-w-0 list-none flex-wrap gap-2 p-0", className), ...props }));
|
|
31
|
+
}
|
|
32
|
+
function Chip({ children, onRemove, removeLabel, className, ...props }) {
|
|
33
|
+
const name = removeLabel ?? (typeof children === "string" || typeof children === "number" ? `Remove ${children}` : "Remove");
|
|
34
|
+
return (_jsxs("li", { "data-slot": "chip", className: cn("inline-flex h-9 max-w-full min-w-0 items-center gap-1 rounded-xs bg-page ps-3.5 text-body-md text-steel-strong", "in-data-[cg-surface=panel]:bg-(--cg-hover) in-data-[cg-surface=panel]:text-faint-strong in-data-[cg-surface=ink]:bg-(--cg-hover) in-data-[cg-surface=ink]:text-faint-strong", onRemove ? "pe-2" : "pe-3.5", className), ...props, children: [_jsx("span", { "data-slot": "chip-label", className: "min-w-0 truncate", children: children }), onRemove ? (_jsx("button", { type: "button", "aria-label": name, "data-slot": "chip-remove", onClick: onRemove, className: "inline-flex size-6 shrink-0 items-center justify-center rounded-xs text-steel transition-colors hover:text-ink focus-line in-data-[cg-surface=panel]:text-faint in-data-[cg-surface=ink]:text-faint", children: _jsx(CloseIcon, { className: "size-4" }) })) : null] }));
|
|
35
|
+
}
|
|
36
|
+
export { Chip, ChipList };
|
|
37
|
+
//# sourceMappingURL=chip-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip-list.js","sourceRoot":"","sources":["../../src/blocks/chip-list.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA8B;IACnE,OAAO,CACL,0BACY,WAAW,EACrB,SAAS,EAAE,EAAE,CAAC,gDAAgD,EAAE,SAAS,CAAC,KACtE,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,IAAI,CAAC,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EAQT;IACC,MAAM,IAAI,GAAG,WAAW,IAAI,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;IAC5H,OAAO,CACL,2BACY,MAAM,EAChB,SAAS,EAAE,EAAE,CACX,gHAAgH,EAChH,6KAA6K,EAC7K,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAC5B,SAAS,CACV,KACG,KAAK,aAET,4BAAgB,YAAY,EAAC,SAAS,EAAC,kBAAkB,YACtD,QAAQ,GACJ,EACN,QAAQ,CAAC,CAAC,CAAC,CACV,iBACE,IAAI,EAAC,QAAQ,gBACD,IAAI,eACN,aAAa,EACvB,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAC,qMAAqM,YAE/M,KAAC,SAAS,IAAC,SAAS,EAAC,QAAQ,GAAG,GACzB,CACV,CAAC,CAAC,CAAC,IAAI,IACL,CACN,CAAA;AACH,CAAC;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -90,6 +90,17 @@ export type ConfirmDeleteDialogProps = {
|
|
|
90
90
|
error?: React.ReactNode;
|
|
91
91
|
/** Overrides the title. */
|
|
92
92
|
title?: React.ReactNode;
|
|
93
|
+
/**
|
|
94
|
+
* The title's size (ui#500). `default` keeps this dialog's own 17; `lg` is
|
|
95
|
+
* `DialogTitle size="lg"`, the 26 of the Grid settings pop-ups (Delete Grid).
|
|
96
|
+
*/
|
|
97
|
+
titleSize?: "default" | "lg";
|
|
98
|
+
/**
|
|
99
|
+
* `lg` (ui#502): the name field as the Grid settings Delete pop-up draws it,
|
|
100
|
+
* 48 tall with the text 16 from the outer edge (the final audit's D1). The
|
|
101
|
+
* default is the 40 field.
|
|
102
|
+
*/
|
|
103
|
+
fieldSize?: "default" | "lg";
|
|
93
104
|
/** Overrides the consequence line. */
|
|
94
105
|
description?: React.ReactNode;
|
|
95
106
|
/** The armed button's word. */
|
|
@@ -111,6 +122,6 @@ export type ConfirmDeleteDialogProps = {
|
|
|
111
122
|
/** Why it cannot be deleted now: no field, no Delete, only this reason (ui#494). */
|
|
112
123
|
blocked?: React.ReactNode;
|
|
113
124
|
};
|
|
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;
|
|
125
|
+
declare function ConfirmDeleteDialog({ open, onOpenChange, name, confirmText, onConfirm, pending, error, title, titleSize, fieldSize, description, confirmLabel, pendingLabel, cancelLabel, className, subject, children, placeholder, hint, blocked, confirmTextStyle, }: ConfirmDeleteDialogProps): React.JSX.Element;
|
|
115
126
|
export { ConfirmDeleteDialog };
|
|
116
127
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;8EAuB8E;AAC9E,eAAO,MAAM,0BAA0B,kGAC0D,CAAA;AAEjG,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAA;IACZ,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0EAA0E;IAC1E,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACrC,sFAAsF;IACtF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oDAAoD;IACpD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,sCAAsC;IACtC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,+BAA+B;IAC/B,YAAY,CAAC,EAAE,M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,WAAwC,EACxC,YAAuB,EACvB,YAAyB,EACzB,WAAsB,EACtB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,OAAO,EACP,gBAAyB,GAC1B,EAAE,wBAAwB,qBA6H1B;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -81,7 +81,7 @@ import { Input } from "../ui/input.js";
|
|
|
81
81
|
*
|
|
82
82
|
* The consequence line under the title, when the caller does not pass one. */
|
|
83
83
|
export const CONFIRM_DELETE_DESCRIPTION = "This removes it from CloudGrid for good. Its link stops working and it can't be brought back.";
|
|
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", }) {
|
|
84
|
+
function ConfirmDeleteDialog({ open, onOpenChange, name, confirmText, onConfirm, pending = false, error, title, titleSize = "default", fieldSize = "default", description = CONFIRM_DELETE_DESCRIPTION, confirmLabel = "Delete", pendingLabel = "Deleting", cancelLabel = "Cancel", className, subject, children, placeholder, hint, blocked, confirmTextStyle = "code", }) {
|
|
85
85
|
const target = confirmText ?? name;
|
|
86
86
|
const [typed, setTyped] = React.useState("");
|
|
87
87
|
const fieldId = React.useId();
|
|
@@ -108,7 +108,7 @@ function ConfirmDeleteDialog({ open, onOpenChange, name, confirmText, onConfirm,
|
|
|
108
108
|
return;
|
|
109
109
|
void onConfirm();
|
|
110
110
|
}
|
|
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",
|
|
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, { size: titleSize === "lg" ? "lg" : "default", className: titleSize === "lg" ? undefined : "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", className: fieldSize === "lg" ? "h-12 ps-[15px] pe-[15px]" : undefined }), 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
112
|
// ui#494 (Asaf): 40 tall as designed, beside a quiet Cancel at the
|
|
113
113
|
// same 40, both on the one button radius. `danger` is the danger
|
|
114
114
|
// pair this button used to paint by hand over `primary`'s 32px.
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;8EAuB8E;AAC9E,MAAM,CAAC,MAAM,0BAA0B,GACrC,+FAA+F,CAAA;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;8EAuB8E;AAC9E,MAAM,CAAC,MAAM,0BAA0B,GACrC,+FAA+F,CAAA;AAkDjG,SAAS,mBAAmB,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,SAAS,EACT,OAAO,GAAG,KAAK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AE,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"}
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"danger-zone.d.ts","sourceRoot":"","sources":["../../src/blocks/danger-zone.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAsC9B,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,qBAgCA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -20,11 +20,23 @@ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "..
|
|
|
20
20
|
* accordion's hover underline, which belongs to a text link. The rows inside
|
|
21
21
|
* are the caller's `SettingsRow`s, under a hairline.
|
|
22
22
|
*
|
|
23
|
+
* It also drops the accordion's 1px transparent border (ui#500): the border
|
|
24
|
+
* pushed the label 1px right of the rows' and the headings' left edge, where
|
|
25
|
+
* the design puts it. The focus line is an outline, so it does not need it.
|
|
26
|
+
*
|
|
27
|
+
* Inside, the actions are drawn larger than a setting (ui#502, the final
|
|
28
|
+
* audit's G1, measured on the Delete pop-up's page behind it at 1:1): each
|
|
29
|
+
* row's label is 18 Medium (`text-body-18`; "Delete Grid" is 98 wide, 18
|
|
30
|
+
* renders 94 and 20 renders 105, cap 13.5), and the rows are 144 apart, so a
|
|
31
|
+
* row has 48 above and below its text (`py-12`, from `sm`; a phone keeps the
|
|
32
|
+
* row's 16, where the button stacks under the text). The rows stay the caller's
|
|
33
|
+
* `SettingsRow`s; the zone sets those two things on them.
|
|
34
|
+
*
|
|
23
35
|
* `open` / `onOpenChange` control it; `defaultOpen` starts it open.
|
|
24
36
|
*/
|
|
25
37
|
const ITEM = "danger-zone";
|
|
26
38
|
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 }) })] }) }));
|
|
39
|
+
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 border-0 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: cn("flex flex-col border-t border-hairline", "[&_[data-slot=settings-row-label]]:text-body-18 sm:[&>[data-slot=settings-row]]:py-12"), children: children }) })] }) }));
|
|
28
40
|
}
|
|
29
41
|
export { DangerZone };
|
|
30
42
|
//# sourceMappingURL=danger-zone.js.map
|
|
@@ -1 +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,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAEtG
|
|
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,EAAE,gBAAgB,EAAE,MAAM,yBA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
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* WHAT A POP-UP IS ABOUT (ui#502): the Grid settings Archive and Delete
|
|
4
|
+
* pop-ups open on the thing they act on, its tile, name and line, then the
|
|
5
|
+
* question.
|
|
6
|
+
*
|
|
7
|
+
* ```
|
|
8
|
+
* [A] Atomic Labs
|
|
9
|
+
* Organization Grid · Owner: Gilad Cohen
|
|
10
|
+
*
|
|
11
|
+
* Delete Atomic Labs permanently?
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* The question is the H4 role, 22 Medium (`text-heading-lg`): the design draws
|
|
15
|
+
* "Delete Atomic Labs permanently?" 333 wide, which is 21.2 in the UI face; 22
|
|
16
|
+
* renders 345 and 20 renders 314, so the nearest role (the final audit's A2;
|
|
17
|
+
* the Console drew it at 17). The name is 16 Medium in ink, the line the
|
|
18
|
+
* caption role in `faint-strong`, the tile the caller's (`Avatar`), 16 before
|
|
19
|
+
* the name. 20 between the subject and the question.
|
|
20
|
+
*
|
|
21
|
+
* The question is a heading (`level`, default 3: under the pop-up's title).
|
|
22
|
+
*/
|
|
23
|
+
declare function DialogSubject({ media, name, meta, question, level, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
24
|
+
/** The tile: an `Avatar`. Decorative beside the name. */
|
|
25
|
+
media?: React.ReactNode;
|
|
26
|
+
name: React.ReactNode;
|
|
27
|
+
/** The line under the name: "Organization Grid · Owner: Gilad Cohen". */
|
|
28
|
+
meta?: React.ReactNode;
|
|
29
|
+
/** "Delete Atomic Labs permanently?" */
|
|
30
|
+
question?: React.ReactNode;
|
|
31
|
+
level?: 2 | 3 | 4;
|
|
32
|
+
}): React.JSX.Element;
|
|
33
|
+
export { DialogSubject };
|
|
34
|
+
//# sourceMappingURL=dialog-subject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-subject.d.ts","sourceRoot":"","sources":["../../src/blocks/dialog-subject.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,aAAa,CAAC,EACrB,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,KAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjD,yDAAyD;IACzD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,yEAAyE;IACzE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;CAClB,qBA4BA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* WHAT A POP-UP IS ABOUT (ui#502): the Grid settings Archive and Delete
|
|
6
|
+
* pop-ups open on the thing they act on, its tile, name and line, then the
|
|
7
|
+
* question.
|
|
8
|
+
*
|
|
9
|
+
* ```
|
|
10
|
+
* [A] Atomic Labs
|
|
11
|
+
* Organization Grid · Owner: Gilad Cohen
|
|
12
|
+
*
|
|
13
|
+
* Delete Atomic Labs permanently?
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* The question is the H4 role, 22 Medium (`text-heading-lg`): the design draws
|
|
17
|
+
* "Delete Atomic Labs permanently?" 333 wide, which is 21.2 in the UI face; 22
|
|
18
|
+
* renders 345 and 20 renders 314, so the nearest role (the final audit's A2;
|
|
19
|
+
* the Console drew it at 17). The name is 16 Medium in ink, the line the
|
|
20
|
+
* caption role in `faint-strong`, the tile the caller's (`Avatar`), 16 before
|
|
21
|
+
* the name. 20 between the subject and the question.
|
|
22
|
+
*
|
|
23
|
+
* The question is a heading (`level`, default 3: under the pop-up's title).
|
|
24
|
+
*/
|
|
25
|
+
function DialogSubject({ media, name, meta, question, level = 3, className, ...props }) {
|
|
26
|
+
const Heading = `h${level}`;
|
|
27
|
+
return (_jsxs("div", { "data-slot": "dialog-subject", className: cn("grid gap-5 pt-2 text-ink", className), ...props, children: [_jsxs("div", { className: "flex min-w-0 items-center gap-4", children: [media ? (_jsx("span", { "data-slot": "dialog-subject-media", "aria-hidden": "true", className: "flex shrink-0", children: media })) : null, _jsxs("div", { className: "grid min-w-0 gap-1", children: [_jsx("span", { "data-slot": "dialog-subject-name", className: "text-body-md font-medium text-ink", children: name }), meta ? (_jsx("span", { "data-slot": "dialog-subject-meta", className: "text-caption text-faint-strong", children: meta })) : null] })] }), question ? (_jsx(Heading, { "data-slot": "dialog-subject-question", className: "m-0 text-heading-lg font-medium text-ink", children: question })) : null] }));
|
|
28
|
+
}
|
|
29
|
+
export { DialogSubject };
|
|
30
|
+
//# sourceMappingURL=dialog-subject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-subject.js","sourceRoot":"","sources":["../../src/blocks/dialog-subject.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAS,aAAa,CAAC,EACrB,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,KAAK,GAAG,CAAC,EACT,SAAS,EACT,GAAG,KAAK,EAUT;IACC,MAAM,OAAO,GAAG,IAAI,KAAK,EAAwB,CAAA;IACjD,OAAO,CACL,4BAAe,gBAAgB,EAAC,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,KAAM,KAAK,aAC7F,eAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,CACP,4BAAgB,sBAAsB,iBAAa,MAAM,EAAC,SAAS,EAAC,eAAe,YAChF,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACR,eAAK,SAAS,EAAC,oBAAoB,aACjC,4BAAgB,qBAAqB,EAAC,SAAS,EAAC,mCAAmC,YAChF,IAAI,GACA,EACN,IAAI,CAAC,CAAC,CAAC,CACN,4BAAgB,qBAAqB,EAAC,SAAS,EAAC,gCAAgC,YAC7E,IAAI,GACA,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,EACL,QAAQ,CAAC,CAAC,CAAC,CACV,KAAC,OAAO,iBAAW,yBAAyB,EAAC,SAAS,EAAC,0CAA0C,YAC9F,QAAQ,GACD,CACX,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* A POP-UP FIELD'S LABEL (ui#502), as the Grid settings pop-ups draw it (New
|
|
4
|
+
* Space: Name, Space address, Description, Add members; the final audit's N2,
|
|
5
|
+
* measured at 1:1): the body size at SemiBold ("Name" is 40 wide; 15 at 600
|
|
6
|
+
* renders 41, at 500 renders 40.6, so the weight is read from the strokes) in
|
|
7
|
+
* steel-strong (#5F6874, 5.6:1 on white), and "· Optional" after it at the
|
|
8
|
+
* same weight and colour, not a lighter one.
|
|
9
|
+
*
|
|
10
|
+
* ```
|
|
11
|
+
* Description · Optional
|
|
12
|
+
* [ ]
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* The body size is the Console's 14 under its preset (15 elsewhere), Body Bold
|
|
16
|
+
* as the roles name it. Steel is declared at :root only, so on the panel and on
|
|
17
|
+
* ink the label takes the surface's body text.
|
|
18
|
+
*
|
|
19
|
+
* A `<label>` by default; `as="span"` with an `id` names a control that takes
|
|
20
|
+
* `aria-labelledby` instead (a combobox).
|
|
21
|
+
*/
|
|
22
|
+
declare function FieldLabel({ optional, optionalLabel, as, className, children, ...props }: React.ComponentProps<"label"> & {
|
|
23
|
+
/** Say the field can be left empty: "· Optional" after the label. */
|
|
24
|
+
optional?: boolean;
|
|
25
|
+
/** The word after the dot. Default "Optional". */
|
|
26
|
+
optionalLabel?: string;
|
|
27
|
+
/** `span` for a control named with `aria-labelledby`. */
|
|
28
|
+
as?: "label" | "span";
|
|
29
|
+
}): React.JSX.Element;
|
|
30
|
+
export { FieldLabel };
|
|
31
|
+
//# sourceMappingURL=field-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-label.d.ts","sourceRoot":"","sources":["../../src/blocks/field-label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iBAAS,UAAU,CAAC,EAClB,QAAgB,EAChB,aAA0B,EAC1B,EAAY,EACZ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG;IACjC,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,yDAAyD;IACzD,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CACtB,qBAoBA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../lib/cloudgrid-cn.js";
|
|
4
|
+
/**
|
|
5
|
+
* A POP-UP FIELD'S LABEL (ui#502), as the Grid settings pop-ups draw it (New
|
|
6
|
+
* Space: Name, Space address, Description, Add members; the final audit's N2,
|
|
7
|
+
* measured at 1:1): the body size at SemiBold ("Name" is 40 wide; 15 at 600
|
|
8
|
+
* renders 41, at 500 renders 40.6, so the weight is read from the strokes) in
|
|
9
|
+
* steel-strong (#5F6874, 5.6:1 on white), and "· Optional" after it at the
|
|
10
|
+
* same weight and colour, not a lighter one.
|
|
11
|
+
*
|
|
12
|
+
* ```
|
|
13
|
+
* Description · Optional
|
|
14
|
+
* [ ]
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* The body size is the Console's 14 under its preset (15 elsewhere), Body Bold
|
|
18
|
+
* as the roles name it. Steel is declared at :root only, so on the panel and on
|
|
19
|
+
* ink the label takes the surface's body text.
|
|
20
|
+
*
|
|
21
|
+
* A `<label>` by default; `as="span"` with an `id` names a control that takes
|
|
22
|
+
* `aria-labelledby` instead (a combobox).
|
|
23
|
+
*/
|
|
24
|
+
function FieldLabel({ optional = false, optionalLabel = "Optional", as = "label", className, children, ...props }) {
|
|
25
|
+
const Tag = as;
|
|
26
|
+
return (_jsxs(Tag, { "data-slot": "field-label", className: cn("text-body-sm font-bold text-steel-strong in-data-[cg-surface=panel]:text-body in-data-[cg-surface=ink]:text-body", className), ...props, children: [children, optional ? (_jsxs(_Fragment, { children: [" ", _jsxs("span", { "data-slot": "field-label-optional", children: ["\u00B7 ", optionalLabel] })] })) : null] }));
|
|
27
|
+
}
|
|
28
|
+
export { FieldLabel };
|
|
29
|
+
//# sourceMappingURL=field-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-label.js","sourceRoot":"","sources":["../../src/blocks/field-label.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAS,UAAU,CAAC,EAClB,QAAQ,GAAG,KAAK,EAChB,aAAa,GAAG,UAAU,EAC1B,EAAE,GAAG,OAAO,EACZ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAQT;IACC,MAAM,GAAG,GAAG,EAAE,CAAA;IACd,OAAO,CACL,MAAC,GAAG,iBACQ,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,kHAAkH,EAClH,SAAS,CACV,KACI,KAAuC,aAE3C,QAAQ,EACR,QAAQ,CAAC,CAAC,CAAC,CACV,8BACG,GAAG,EACJ,6BAAgB,sBAAsB,wBAAI,aAAa,IAAQ,IAC9D,CACJ,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -14,11 +14,13 @@ import * as React from "react";
|
|
|
14
14
|
* Every field and dropdown in the library is radius 12 (ui#494, Asaf's
|
|
15
15
|
* decision). They still disagree on one thing, each for its own frame: `Input`
|
|
16
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
|
|
18
|
-
* edge: a dropdown's value (1px border,
|
|
19
|
-
* which
|
|
20
|
-
*
|
|
21
|
-
*
|
|
17
|
+
* dropdown is 40 tall, 15px text, and the first thing drawn in it 15px from the box's outer
|
|
18
|
+
* edge: a dropdown's value (1px border, 14 of padding) and the search mark, 16
|
|
19
|
+
* square, which this row places at 15. So every box starts its content at one
|
|
20
|
+
* x from its edge and every label sits on one baseline. The search's text
|
|
21
|
+
* starts 44 in. (ui#502: these were 20 and 56 with a 20 mark; Members and
|
|
22
|
+
* Spaces draw a 16 mark 16 in, the text 44 in and the dropdowns' values 15
|
|
23
|
+
* in, the final audit's S7. The e2e measures each.)
|
|
22
24
|
*
|
|
23
25
|
* ## Layout
|
|
24
26
|
*
|
|
@@ -1 +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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;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,qBAgCA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -16,11 +16,13 @@ import { cn } from "../lib/cloudgrid-cn.js";
|
|
|
16
16
|
* Every field and dropdown in the library is radius 12 (ui#494, Asaf's
|
|
17
17
|
* decision). They still disagree on one thing, each for its own frame: `Input`
|
|
18
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
|
|
20
|
-
* edge: a dropdown's value (1px border,
|
|
21
|
-
* which
|
|
22
|
-
*
|
|
23
|
-
*
|
|
19
|
+
* dropdown is 40 tall, 15px text, and the first thing drawn in it 15px from the box's outer
|
|
20
|
+
* edge: a dropdown's value (1px border, 14 of padding) and the search mark, 16
|
|
21
|
+
* square, which this row places at 15. So every box starts its content at one
|
|
22
|
+
* x from its edge and every label sits on one baseline. The search's text
|
|
23
|
+
* starts 44 in. (ui#502: these were 20 and 56 with a 20 mark; Members and
|
|
24
|
+
* Spaces draw a 16 mark 16 in, the text 44 in and the dropdowns' values 15
|
|
25
|
+
* in, the final audit's S7. The e2e measures each.)
|
|
24
26
|
*
|
|
25
27
|
* ## Layout
|
|
26
28
|
*
|
|
@@ -31,7 +33,12 @@ import { cn } from "../lib/cloudgrid-cn.js";
|
|
|
31
33
|
* a `role="group"`; name it with `aria-label` ("Filter members").
|
|
32
34
|
*/
|
|
33
35
|
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",
|
|
36
|
+
return (_jsxs("div", { "data-slot": "filter-bar", role: "group", className: cn("flex min-w-0 flex-wrap items-center gap-3 text-ink",
|
|
37
|
+
// ui#502: the search's mark 16, 15 in, its text 44 in; the selects'
|
|
38
|
+
// value 15 in, where the mark starts, and in steel, as every filter
|
|
39
|
+
// row draws it. Steel is :root only, so the panel and ink keep their
|
|
40
|
+
// body text.
|
|
41
|
+
"[&_[data-slot=input]]:text-body-sm [&_[data-slot=input-leading]]:start-[15px] [&_[data-slot=input-leading]_svg]:size-4 [&_[data-slot=input]]:ps-[43px]", "[&_[data-slot=select-trigger]]:h-10 [&_[data-slot=select-trigger]]:px-3.5 [&_[data-slot=select-trigger]]:text-body-sm", "[&_[data-slot=select-trigger]]:text-steel-strong in-data-[cg-surface=panel]:[&_[data-slot=select-trigger]]:text-body in-data-[cg-surface=ink]:[&_[data-slot=select-trigger]]:text-body", "[&>[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
42
|
}
|
|
36
43
|
export { FilterBar };
|
|
37
44
|
//# sourceMappingURL=filter-bar.js.map
|
|
@@ -1 +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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;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;QACpD,oEAAoE;QACpE,oEAAoE;QACpE,qEAAqE;QACrE,aAAa;QACb,wJAAwJ,EACxJ,uHAAuH,EACvH,wLAAwL,EACxL,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"}
|
|
@@ -27,8 +27,20 @@ import * as React from "react";
|
|
|
27
27
|
* With no handler a pencil is not drawn at all: a pencil that does nothing
|
|
28
28
|
* would say the value can be changed when it cannot. The tile and the text are
|
|
29
29
|
* centred on one line, 24 apart.
|
|
30
|
+
*
|
|
31
|
+
* ui#500:
|
|
32
|
+
*
|
|
33
|
+
* - `logoComingSoon`: the logo upload is designed and not built. The pencil
|
|
34
|
+
* badge is drawn, as the design draws it, greyed to 50% and `inert`, with
|
|
35
|
+
* `aria-disabled`, the way a Coming soon row's control is; a handler does not
|
|
36
|
+
* make it live. The section's heading carries the tag
|
|
37
|
+
* (`SettingsSection comingSoon="partial"`).
|
|
38
|
+
* - No description, and `onEditDescription`: the line reads "Add description"
|
|
39
|
+
* in the faint tone, with its pencil, so one can be added. No handler, no line.
|
|
40
|
+
* - The description wraps onto more lines rather than being cut with an
|
|
41
|
+
* ellipsis (it was cut on one line at phone width). The name stays one line.
|
|
30
42
|
*/
|
|
31
|
-
declare function GridProfile({ name, description, logoSrc, seed, onEditLogo, onEditName, onEditDescription, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
43
|
+
declare function GridProfile({ name, description, logoSrc, seed, onEditLogo, onEditName, onEditDescription, logoComingSoon, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
|
|
32
44
|
/** The grid's name: the tile's letter, and the large line. */
|
|
33
45
|
name: string;
|
|
34
46
|
/** The line under the name. */
|
|
@@ -39,6 +51,8 @@ declare function GridProfile({ name, description, logoSrc, seed, onEditLogo, onE
|
|
|
39
51
|
seed?: string;
|
|
40
52
|
/** The badge on the tile was pressed. No handler, no badge. */
|
|
41
53
|
onEditLogo?: () => void;
|
|
54
|
+
/** The upload is not built yet: the badge is drawn, greyed and inert. */
|
|
55
|
+
logoComingSoon?: boolean;
|
|
42
56
|
onEditName?: () => void;
|
|
43
57
|
onEditDescription?: () => void;
|
|
44
58
|
}): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-profile.d.ts","sourceRoot":"","sources":["../../src/blocks/grid-profile.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,OAAO,EACP,IAAI,EACJ,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,cAAsB,EACtB,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,yEAAyE;IACzE,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC/B,qBA8CA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -33,9 +33,21 @@ import { EditableValue } from "./settings-row.js";
|
|
|
33
33
|
* With no handler a pencil is not drawn at all: a pencil that does nothing
|
|
34
34
|
* would say the value can be changed when it cannot. The tile and the text are
|
|
35
35
|
* centred on one line, 24 apart.
|
|
36
|
+
*
|
|
37
|
+
* ui#500:
|
|
38
|
+
*
|
|
39
|
+
* - `logoComingSoon`: the logo upload is designed and not built. The pencil
|
|
40
|
+
* badge is drawn, as the design draws it, greyed to 50% and `inert`, with
|
|
41
|
+
* `aria-disabled`, the way a Coming soon row's control is; a handler does not
|
|
42
|
+
* make it live. The section's heading carries the tag
|
|
43
|
+
* (`SettingsSection comingSoon="partial"`).
|
|
44
|
+
* - No description, and `onEditDescription`: the line reads "Add description"
|
|
45
|
+
* in the faint tone, with its pencil, so one can be added. No handler, no line.
|
|
46
|
+
* - The description wraps onto more lines rather than being cut with an
|
|
47
|
+
* ellipsis (it was cut on one line at phone width). The name stays one line.
|
|
36
48
|
*/
|
|
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] })] }));
|
|
49
|
+
function GridProfile({ name, description, logoSrc, seed, onEditLogo, onEditName, onEditDescription, logoComingSoon = false, className, ...props }) {
|
|
50
|
+
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 || logoComingSoon ? (_jsx("button", { type: "button", "aria-label": "Change the Grid logo", onClick: logoComingSoon ? undefined : onEditLogo, inert: logoComingSoon, "aria-disabled": logoComingSoon ? "true" : undefined, className: cn("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", logoComingSoon && "opacity-50 select-none"), children: _jsx(EditIcon, { className: "size-3.5" }) })) : null] }), _jsxs("div", { className: "grid min-w-0 flex-1 gap-2", children: [_jsx(EditableValue, { "data-slot": "grid-profile-name", value: name, label: "Grid name", onEdit: onEditName, valueClassName: "text-heading-lg font-normal leading-tight" }), description || onEditDescription ? (_jsx(EditableValue, { "data-slot": "grid-profile-description", value: description || _jsx("span", { className: "text-faint-strong", children: "Add description" }), label: "Grid description", onEdit: onEditDescription, valueClassName: "text-body", wrap: true })) : null] })] }));
|
|
39
51
|
}
|
|
40
52
|
export { GridProfile };
|
|
41
53
|
//# sourceMappingURL=grid-profile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-profile.js","sourceRoot":"","sources":["../../src/blocks/grid-profile.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;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
|
|
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,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C,KAAK,EAAE,WAAW,IAAI,eAAM,SAAS,EAAC,mBAAmB,gCAAuB,EAChF,KAAK,EAAC,kBAAkB,EACxB,MAAM,EAAE,iBAAiB,EACzB,cAAc,EAAC,WAAW,EAC1B,IAAI,SACJ,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impact-list.d.ts","sourceRoot":"","sources":["../../src/blocks/impact-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC/D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,KAAK,EAAE,SAAS,KAAK,CAAC,SAAS,EAAE,CAAA;CAClC,
|
|
1
|
+
{"version":3,"file":"impact-list.d.ts","sourceRoot":"","sources":["../../src/blocks/impact-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC/D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,KAAK,EAAE,SAAS,KAAK,CAAC,SAAS,EAAE,CAAA;CAClC,qBA0BA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -25,7 +25,7 @@ import { cn } from "../lib/cloudgrid-cn.js";
|
|
|
25
25
|
*/
|
|
26
26
|
function ImpactList({ title, items, className, ...props }) {
|
|
27
27
|
const titleId = React.useId();
|
|
28
|
-
return (_jsxs("section", { "data-slot": "impact-list", "aria-labelledby": titleId, className: cn("grid gap-
|
|
28
|
+
return (_jsxs("section", { "data-slot": "impact-list", "aria-labelledby": titleId, className: cn("grid gap-3 rounded-md bg-brand-tint p-4 text-ink in-data-[cg-surface=panel]:bg-(--cg-hover) in-data-[cg-surface=ink]:bg-(--cg-hover)", className), ...props, children: [_jsx("p", { id: titleId, className: "m-0 text-body-sm font-medium text-ink", children: title }), _jsx("ul", { className: "m-0 grid list-none gap-3 p-0", children: items.map((item, index) => (_jsx("li", { className: "text-caption text-body", children: item }, index))) })] }));
|
|
29
29
|
}
|
|
30
30
|
export { ImpactList };
|
|
31
31
|
//# sourceMappingURL=impact-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impact-list.js","sourceRoot":"","sources":["../../src/blocks/impact-list.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAS,UAAU,CAAC,EAClB,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EAIT;IACC,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,EAAE,CAAA;IAC7B,OAAO,CACL,gCACY,aAAa,qBACN,OAAO,EACxB,SAAS,EAAE,EAAE,CACX,sIAAsI,EACtI,SAAS,CACV,KACG,KAAK,aAET,YAAG,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC,uCAAuC,YAC9D,KAAK,GACJ,
|
|
1
|
+
{"version":3,"file":"impact-list.js","sourceRoot":"","sources":["../../src/blocks/impact-list.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAS,UAAU,CAAC,EAClB,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EAIT;IACC,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,EAAE,CAAA;IAC7B,OAAO,CACL,gCACY,aAAa,qBACN,OAAO,EACxB,SAAS,EAAE,EAAE,CACX,sIAAsI,EACtI,SAAS,CACV,KACG,KAAK,aAET,YAAG,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC,uCAAuC,YAC9D,KAAK,GACJ,EAGJ,aAAI,SAAS,EAAC,8BAA8B,YACzC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,aAAgB,SAAS,EAAC,wBAAwB,YAC/C,IAAI,IADE,KAAK,CAET,CACN,CAAC,GACC,IACG,CACX,CAAA;AACH,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { Input } from "../ui/input.js";
|
|
2
3
|
/**
|
|
3
4
|
* The search field above every Admin list, as the CloudGrid 2026 Figma draws it
|
|
4
5
|
* (#384; 7404:5007, 7414:5979): the 2026 text field with a 20px MagnifyingGlass
|
|
@@ -16,9 +17,11 @@ import * as React from "react";
|
|
|
16
17
|
* `className` sizes the field (it lands on the wrapper, so `w-full` or `w-72`
|
|
17
18
|
* works); every other prop goes to the `<input>`.
|
|
18
19
|
*/
|
|
19
|
-
declare function SearchField({ label, className, placeholder, ...props }: Omit<React.ComponentProps<"input">, "type"> & {
|
|
20
|
+
declare function SearchField({ label, className, placeholder, slotSize, ...props }: Omit<React.ComponentProps<"input">, "type"> & {
|
|
20
21
|
/** The field's accessible name, and its placeholder unless one is given. */
|
|
21
22
|
label?: string;
|
|
23
|
+
/** The mark's size and the text's start (ui#502): `sm` is the Grid settings filter rows'. */
|
|
24
|
+
slotSize?: React.ComponentProps<typeof Input>["slotSize"];
|
|
22
25
|
}): React.JSX.Element;
|
|
23
26
|
export { SearchField };
|
|
24
27
|
//# sourceMappingURL=search-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-field.d.ts","sourceRoot":"","sources":["../../src/blocks/search-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"search-field.d.ts","sourceRoot":"","sources":["../../src/blocks/search-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAE3C;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,WAAW,CAAC,EACnB,KAAgB,EAChB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,GAAG;IAC/C,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,CAAA;CAC1D,qBAcA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -20,9 +20,9 @@ import { Input } from "../ui/input.js";
|
|
|
20
20
|
* `className` sizes the field (it lands on the wrapper, so `w-full` or `w-72`
|
|
21
21
|
* works); every other prop goes to the `<input>`.
|
|
22
22
|
*/
|
|
23
|
-
function SearchField({ label = "Search", className, placeholder, ...props }) {
|
|
23
|
+
function SearchField({ label = "Search", className, placeholder, slotSize, ...props }) {
|
|
24
24
|
const labelledBy = props["aria-labelledby"];
|
|
25
|
-
return (_jsx("div", { "data-slot": "search-field", className: cn("w-50 shrink-0", className), children: _jsx(Input, { type: "search", "aria-label": labelledBy ? undefined : label, placeholder: placeholder ?? label, leading: _jsx(SearchIcon, {}), ...props }) }));
|
|
25
|
+
return (_jsx("div", { "data-slot": "search-field", className: cn("w-50 shrink-0", className), children: _jsx(Input, { type: "search", "aria-label": labelledBy ? undefined : label, placeholder: placeholder ?? label, leading: _jsx(SearchIcon, {}), slotSize: slotSize, ...props }) }));
|
|
26
26
|
}
|
|
27
27
|
export { SearchField };
|
|
28
28
|
//# sourceMappingURL=search-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-field.js","sourceRoot":"","sources":["../../src/blocks/search-field.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAE3C;;;;;;;;;;;;;;;;GAgBG;AACH,SAAS,WAAW,CAAC,EACnB,KAAK,GAAG,QAAQ,EAChB,SAAS,EACT,WAAW,EACX,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"search-field.js","sourceRoot":"","sources":["../../src/blocks/search-field.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAE3C;;;;;;;;;;;;;;;;GAgBG;AACH,SAAS,WAAW,CAAC,EACnB,KAAK,GAAG,QAAQ,EAChB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,GAAG,KAAK,EAMT;IACC,MAAM,UAAU,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAA;IAC3C,OAAO,CACL,2BAAe,cAAc,EAAC,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,SAAS,CAAC,YACrE,KAAC,KAAK,IACJ,IAAI,EAAC,QAAQ,gBACD,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EAC1C,WAAW,EAAE,WAAW,IAAI,KAAK,EACjC,OAAO,EAAE,KAAC,UAAU,KAAG,EACvB,QAAQ,EAAE,QAAQ,KACd,KAAK,GACT,GACE,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|