@cloudgrid-io/ui 0.56.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/confirm-delete-dialog.d.ts +7 -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 +9 -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/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.map +1 -1
- package/dist/blocks/settings-frame.js +4 -1
- package/dist/blocks/settings-frame.js.map +1 -1
- package/dist/blocks/settings-row.d.ts +25 -4
- package/dist/blocks/settings-row.d.ts.map +1 -1
- package/dist/blocks/settings-row.js +32 -6
- 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 +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.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/input.d.ts +18 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +9 -3
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/select.d.ts +6 -2
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +14 -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/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
|
@@ -95,6 +95,12 @@ export type ConfirmDeleteDialogProps = {
|
|
|
95
95
|
* `DialogTitle size="lg"`, the 26 of the Grid settings pop-ups (Delete Grid).
|
|
96
96
|
*/
|
|
97
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";
|
|
98
104
|
/** Overrides the consequence line. */
|
|
99
105
|
description?: React.ReactNode;
|
|
100
106
|
/** The armed button's word. */
|
|
@@ -116,6 +122,6 @@ export type ConfirmDeleteDialogProps = {
|
|
|
116
122
|
/** Why it cannot be deleted now: no field, no Delete, only this reason (ui#494). */
|
|
117
123
|
blocked?: React.ReactNode;
|
|
118
124
|
};
|
|
119
|
-
declare function ConfirmDeleteDialog({ open, onOpenChange, name, confirmText, onConfirm, pending, error, title, titleSize, 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;
|
|
120
126
|
export { ConfirmDeleteDialog };
|
|
121
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;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC5B,sCAAsC;IACtC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uDAAuD;IACvD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,yFAAyF;IACzF,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAClC,uFAAuF;IACvF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,oFAAoF;IACpF,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AAED,iBAAS,mBAAmB,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,SAAS,EACT,OAAe,EACf,KAAK,EACL,KAAK,EACL,SAAqB,EACrB,WAAwC,EACxC,YAAuB,EACvB,YAAyB,EACzB,WAAsB,EACtB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,OAAO,EACP,gBAAyB,GAC1B,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"confirm-delete-dialog.d.ts","sourceRoot":"","sources":["../../src/blocks/confirm-delete-dialog.tsx"],"names":[],"mappings":"AAEA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1B,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,oFAAoF;IACpF,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AAED,iBAAS,mBAAmB,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,SAAS,EACT,OAAe,EACf,KAAK,EACL,KAAK,EACL,SAAqB,EACrB,SAAqB,EACrB,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, titleSize = "default", 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, { 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" }), 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,iB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AAqB,EAAC,SAAS,EAAC,oCAAoC,YAC1F,IAAI,GACH,CACL,CAAC,CAAC,CAAC,IAAI,EACP,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"}
|
|
@@ -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"}
|
|
@@ -24,11 +24,19 @@ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "..
|
|
|
24
24
|
* pushed the label 1px right of the rows' and the headings' left edge, where
|
|
25
25
|
* the design puts it. The focus line is an outline, so it does not need it.
|
|
26
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
|
+
*
|
|
27
35
|
* `open` / `onOpenChange` control it; `defaultOpen` starts it open.
|
|
28
36
|
*/
|
|
29
37
|
const ITEM = "danger-zone";
|
|
30
38
|
function DangerZone({ title = "Danger zone", description, open, defaultOpen = false, onOpenChange, className, children, }) {
|
|
31
|
-
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: "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 }) })] }) }));
|
|
32
40
|
}
|
|
33
41
|
export { DangerZone };
|
|
34
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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CAAC,CAAC,CAAC,IAAI,IACH,GACU,EACnB,KAAC,gBAAgB,cACf,2BACY,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CACX,wCAAwC,EACxC,uFAAuF,CACxF,YAEA,QAAQ,GACL,GACW,IACL,GACN,CACb,CAAA;AACH,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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"}
|
|
@@ -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"}
|
|
@@ -18,10 +18,21 @@ import * as React from "react";
|
|
|
18
18
|
* caption role in `faint-strong`, which clears 4.5:1 on every ground. Without
|
|
19
19
|
* either, the markup is byte for byte what it was (test/settings-row-494).
|
|
20
20
|
*
|
|
21
|
+
* ## `wrap` (ui#502)
|
|
22
|
+
*
|
|
23
|
+
* The title row wraps: at phone width a Coming soon tag after a long title
|
|
24
|
+
* goes under it (8 below), never past the column's edge, where the settings
|
|
25
|
+
* pages cut "Coming soon" to "Comin" (the final audit's R5 and G5). At any
|
|
26
|
+
* width where it fits, nothing moves: the gaps across are what they were.
|
|
27
|
+
* `SettingsSection` always sets it. Off by default, so the Home's headings,
|
|
28
|
+
* whose filter tabs shrink and scroll beside the title, are unchanged.
|
|
29
|
+
*
|
|
21
30
|
* `id` lands on the heading element, so a section can name itself with it
|
|
22
31
|
* (`aria-labelledby`), which is what `SettingsSection` does.
|
|
23
32
|
*/
|
|
24
|
-
declare function SectionHeading({ title, level, inline, action, icon, description, headingId, className, ...props }: Omit<React.ComponentProps<"div">, "title" | "children"> & {
|
|
33
|
+
declare function SectionHeading({ title, level, inline, action, icon, description, headingId, wrap, className, ...props }: Omit<React.ComponentProps<"div">, "title" | "children"> & {
|
|
34
|
+
/** Let `inline` go under the title when the row is too narrow (ui#502). */
|
|
35
|
+
wrap?: boolean;
|
|
25
36
|
title: React.ReactNode;
|
|
26
37
|
/** The heading element. Default 2. */
|
|
27
38
|
level?: 2 | 3 | 4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-heading.d.ts","sourceRoot":"","sources":["../../src/blocks/section-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B
|
|
1
|
+
{"version":3,"file":"section-heading.d.ts","sourceRoot":"","sources":["../../src/blocks/section-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,iBAAS,cAAc,CAAC,EACtB,KAAK,EACL,KAAS,EACT,MAAM,EACN,MAAM,EACN,IAAI,EACJ,WAAW,EACX,SAAS,EACT,IAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC3D,2EAA2E;IAC3E,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,sCAAsC;IACtC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACjB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,qCAAqC;IACrC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,uFAAuF;IACvF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,qBA0EA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -20,16 +20,25 @@ import { cn } from "../lib/cloudgrid-cn.js";
|
|
|
20
20
|
* caption role in `faint-strong`, which clears 4.5:1 on every ground. Without
|
|
21
21
|
* either, the markup is byte for byte what it was (test/settings-row-494).
|
|
22
22
|
*
|
|
23
|
+
* ## `wrap` (ui#502)
|
|
24
|
+
*
|
|
25
|
+
* The title row wraps: at phone width a Coming soon tag after a long title
|
|
26
|
+
* goes under it (8 below), never past the column's edge, where the settings
|
|
27
|
+
* pages cut "Coming soon" to "Comin" (the final audit's R5 and G5). At any
|
|
28
|
+
* width where it fits, nothing moves: the gaps across are what they were.
|
|
29
|
+
* `SettingsSection` always sets it. Off by default, so the Home's headings,
|
|
30
|
+
* whose filter tabs shrink and scroll beside the title, are unchanged.
|
|
31
|
+
*
|
|
23
32
|
* `id` lands on the heading element, so a section can name itself with it
|
|
24
33
|
* (`aria-labelledby`), which is what `SettingsSection` does.
|
|
25
34
|
*/
|
|
26
|
-
function SectionHeading({ title, level = 2, inline, action, icon, description, headingId, className, ...props }) {
|
|
35
|
+
function SectionHeading({ title, level = 2, inline, action, icon, description, headingId, wrap = false, className, ...props }) {
|
|
27
36
|
const Heading = `h${level}`;
|
|
28
37
|
const heading = (_jsx(Heading, { "data-slot": "section-heading-title", id: headingId, className: "m-0 shrink-0 text-heading-lg font-medium text-ink", children: title }));
|
|
29
38
|
if (icon || description) {
|
|
30
|
-
return (_jsxs("div", { "data-slot": "section-heading", className: cn("flex min-w-0 items-start justify-between gap-6 text-ink", className), ...props, children: [_jsxs("div", { "data-slot": "section-heading-start", className: "grid min-w-0 gap-1", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-3", children: [icon ? (_jsx("span", { "data-slot": "section-heading-icon", "aria-hidden": "true", className: "flex size-5 shrink-0 items-center justify-center text-steel in-data-[cg-surface=panel]:text-faint in-data-[cg-surface=ink]:text-faint [&>svg]:size-5", children: icon })) : null, heading, inline ? (_jsx("div", { "data-slot": "section-heading-inline", className: "ms-3 min-w-0", children: inline })) : null] }), description ? (_jsx("p", { "data-slot": "section-heading-description", className: "m-0 text-caption text-faint-strong", children: description })) : null] }), action ? (_jsx("div", { "data-slot": "section-heading-action", className: "shrink-0 self-center", children: action })) : null] }));
|
|
39
|
+
return (_jsxs("div", { "data-slot": "section-heading", className: cn("flex min-w-0 items-start justify-between gap-6 text-ink", className), ...props, children: [_jsxs("div", { "data-slot": "section-heading-start", className: "grid min-w-0 gap-1", children: [_jsxs("div", { className: cn("flex min-w-0 items-center gap-3", wrap && "flex-wrap gap-y-2"), children: [icon ? (_jsx("span", { "data-slot": "section-heading-icon", "aria-hidden": "true", className: "flex size-5 shrink-0 items-center justify-center text-steel in-data-[cg-surface=panel]:text-faint in-data-[cg-surface=ink]:text-faint [&>svg]:size-5", children: icon })) : null, heading, inline ? (_jsx("div", { "data-slot": "section-heading-inline", className: "ms-3 min-w-0", children: inline })) : null] }), description ? (_jsx("p", { "data-slot": "section-heading-description", className: "m-0 text-caption text-faint-strong", children: description })) : null] }), action ? (_jsx("div", { "data-slot": "section-heading-action", className: "shrink-0 self-center", children: action })) : null] }));
|
|
31
40
|
}
|
|
32
|
-
return (_jsxs("div", { "data-slot": "section-heading", className: cn("flex min-w-0 items-center justify-between gap-6 text-ink", className), ...props, children: [_jsxs("div", { "data-slot": "section-heading-start", className: "flex min-w-0 items-center gap-6", children: [heading, inline ? (_jsx("div", { "data-slot": "section-heading-inline", className: "min-w-0", children: inline })) : null] }), action ? (_jsx("div", { "data-slot": "section-heading-action", className: "shrink-0", children: action })) : null] }));
|
|
41
|
+
return (_jsxs("div", { "data-slot": "section-heading", className: cn("flex min-w-0 items-center justify-between gap-6 text-ink", className), ...props, children: [_jsxs("div", { "data-slot": "section-heading-start", className: cn("flex min-w-0 items-center gap-6", wrap && "flex-wrap gap-y-2"), children: [heading, inline ? (_jsx("div", { "data-slot": "section-heading-inline", className: "min-w-0", children: inline })) : null] }), action ? (_jsx("div", { "data-slot": "section-heading-action", className: "shrink-0", children: action })) : null] }));
|
|
33
42
|
}
|
|
34
43
|
export { SectionHeading };
|
|
35
44
|
//# sourceMappingURL=section-heading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-heading.js","sourceRoot":"","sources":["../../src/blocks/section-heading.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC
|
|
1
|
+
{"version":3,"file":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,MAAM,CAAC,CAAC,CAAC,CACR,2BAAe,wBAAwB,EAAC,SAAS,EAAC,sBAAsB,YACrE,MAAM,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;IACH,CAAC;IAED,OAAO,CACL,4BACY,iBAAiB,EAC3B,SAAS,EAAE,EAAE,CAAC,0DAA0D,EAAE,SAAS,CAAC,KAChF,KAAK,aAET,4BAAe,uBAAuB,EAAC,SAAS,EAAE,EAAE,CAAC,iCAAiC,EAAE,IAAI,IAAI,mBAAmB,CAAC,aACjH,OAAO,EACP,MAAM,CAAC,CAAC,CAAC,CACR,2BAAe,wBAAwB,EAAC,SAAS,EAAC,SAAS,YACxD,MAAM,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,MAAM,CAAC,CAAC,CAAC,CACR,2BAAe,wBAAwB,EAAC,SAAS,EAAC,UAAU,YACzD,MAAM,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-frame.d.ts","sourceRoot":"","sources":["../../src/blocks/settings-frame.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,iBAAS,aAAa,CAAC,EACrB,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAkB,EAClB,eAAuB,EACvB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,GAAG;IAC9C,8DAA8D;IAC9D,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,gDAAgD;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,6DAA6D;IAC7D,OAAO,CAAC,EA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IACrB,gDAAgD;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sCAAsC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,qBAiEA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,QAAQ,EACR,MAAM,EACN,OAAO,EACP,IAAI,EACJ,MAAc,EACd,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,GAAG;IAC9C,wCAAwC;IACxC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,uCAAuC;IACvC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,oCAAoC;IACpC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,oCAAoC;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,iEAAiE;IACjE,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,qBAsCA;AAED,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -83,7 +83,10 @@ function SettingsFrame({ menu, title, current, menuLabel = "Menu", defaultMenuOp
|
|
|
83
83
|
* 72 cap to cap; only the space before the first block changes.
|
|
84
84
|
*/
|
|
85
85
|
function SettingsPage({ title, subtitle, action, eyebrow, note, tabbed = false, className, children, ...props }) {
|
|
86
|
-
return (_jsxs("div", { "data-slot": "settings-page", className: cn("flex min-w-0 flex-col gap-8", className), ...props, children: [_jsxs("header", { "data-slot": "settings-page-header", className: cn("grid min-w-0 gap-3", tabbed && "mb-3"), children: [eyebrow ? (_jsx("p", { "data-slot": "settings-page-eyebrow", className: "m-0 text-body-sm text-(--cg-text-accent)", children: eyebrow })) : null, _jsxs("div", { "data-slot": "settings-page-title-row", className: "flex min-w-0 flex-wrap items-center justify-between gap-4", children: [_jsx("h1", { "data-slot": "settings-page-title", className: "m-0 font-ui text-title-32 font-medium tracking-normal normal-case text-ink", children: title }), action ? (_jsx("div", { "data-slot": "settings-page-action", className: "flex shrink-0 items-center", children: action })) : null] }), subtitle ? (_jsx("p", { "data-slot": "settings-page-subtitle", className: "m-0 text-body-md text-body", children: subtitle })) : null, note ? (
|
|
86
|
+
return (_jsxs("div", { "data-slot": "settings-page", className: cn("flex min-w-0 flex-col gap-8", className), ...props, children: [_jsxs("header", { "data-slot": "settings-page-header", className: cn("grid min-w-0 gap-3", tabbed && "mb-3"), children: [eyebrow ? (_jsx("p", { "data-slot": "settings-page-eyebrow", className: "m-0 text-body-sm text-(--cg-text-accent)", children: eyebrow })) : null, _jsxs("div", { "data-slot": "settings-page-title-row", className: "flex min-w-0 flex-wrap items-center justify-between gap-4", children: [_jsx("h1", { "data-slot": "settings-page-title", className: "m-0 font-ui text-title-32 font-medium tracking-normal normal-case text-ink", children: title }), action ? (_jsx("div", { "data-slot": "settings-page-action", className: "flex shrink-0 items-center", children: action })) : null] }), subtitle ? (_jsx("p", { "data-slot": "settings-page-subtitle", className: "m-0 text-body-md text-body", children: subtitle })) : null, note ? (
|
|
87
|
+
// 8 under the subtitle, not the header's 12: 30 caps to caps, as
|
|
88
|
+
// Permissions draws it (ui#502; it was 35).
|
|
89
|
+
_jsx("p", { "data-slot": "settings-page-note", className: "m-0 -mt-1 text-caption text-faint-strong", children: note })) : null] }), children] }));
|
|
87
90
|
}
|
|
88
91
|
export { SettingsFrame, SettingsPage };
|
|
89
92
|
//# sourceMappingURL=settings-frame.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-frame.js","s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