@ciridae/ui 1.0.13 → 1.1.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/chat/contract.js +12 -2
- package/dist/chat/message-text.js +8 -7
- package/dist/ciridae.css +12 -1
- package/dist/components/app-frame.d.ts +29 -4
- package/dist/components/app-frame.js +16 -5
- package/dist/components/app-navigation.d.ts +16 -1
- package/dist/components/app-navigation.js +18 -7
- package/dist/components/badge.d.ts +14 -0
- package/dist/components/badge.js +38 -1
- package/dist/components/button.js +7 -3
- package/dist/components/copyable-id.d.ts +10 -3
- package/dist/components/copyable-id.js +5 -2
- package/dist/components/data-display.js +14 -4
- package/dist/components/data-grid.js +5 -1
- package/dist/components/drawer.js +9 -1
- package/dist/components/filter-bar.d.ts +17 -8
- package/dist/components/filter-bar.js +38 -32
- package/dist/components/input.d.ts +6 -1
- package/dist/components/input.js +9 -3
- package/dist/components/layout.d.ts +7 -2
- package/dist/components/layout.js +34 -7
- package/dist/components/locale.d.ts +20 -0
- package/dist/components/locale.js +19 -1
- package/dist/components/objective-header.d.ts +25 -0
- package/dist/components/objective-header.js +70 -0
- package/dist/components/panel.d.ts +9 -3
- package/dist/components/panel.js +38 -6
- package/dist/components/settings.d.ts +7 -2
- package/dist/components/settings.js +11 -3
- package/dist/components/shell.js +7 -1
- package/dist/components/side-panel.d.ts +13 -3
- package/dist/components/side-panel.js +28 -7
- package/dist/components/switch.d.ts +7 -3
- package/dist/components/switch.js +17 -3
- package/dist/components/tabs.js +10 -1
- package/dist/components/theme-toggle.js +4 -1
- package/dist/components/value-change.d.ts +13 -0
- package/dist/components/value-change.js +59 -0
- package/dist/preset.js +27 -3
- package/dist/styled-system/styles.css +190 -61
- package/dist/styled-system/tokens/index.mjs +33 -1
- package/dist/styled-system/tokens/tokens.d.ts +3 -3
- package/dist/styles.css +12 -1
- package/dist/theme/palette.js +9 -5
- package/package.json +9 -1
package/dist/components/shell.js
CHANGED
|
@@ -136,10 +136,16 @@ const headerTitle = css({
|
|
|
136
136
|
fontWeight: "medium",
|
|
137
137
|
lineHeight: "tight",
|
|
138
138
|
});
|
|
139
|
+
// A page's blocks (heading, toolbar, list) stack 16 apart, as every page frame in the Figma draws
|
|
140
|
+
// them. Each keeps its own height (`ciridae.css`), so the page scrolls as a whole; a block that sets
|
|
141
|
+
// its own `flex`, such as a `fill` list, wins over that base-layer default and takes what is left.
|
|
139
142
|
const content = css({
|
|
140
143
|
flex: "1",
|
|
141
144
|
minHeight: "0",
|
|
142
145
|
overflow: "auto",
|
|
146
|
+
display: "flex",
|
|
147
|
+
flexDirection: "column",
|
|
148
|
+
gap: "layout.clusterGap",
|
|
143
149
|
// Exposed so sticky descendants (table headers) can pin to the scroller's edge, not its padding.
|
|
144
150
|
"--app-content-inset": "token(spacing.page.inline)",
|
|
145
151
|
padding: "var(--app-content-inset)",
|
|
@@ -237,7 +243,7 @@ export function AppHeader({ className, children, actions, ...props }) {
|
|
|
237
243
|
return (_jsxs("header", { ...props, className: cx(header, className), "data-ciridae-ui": "", children: [_jsx(AppMenuButton, {}), _jsx("div", { className: headerTitle, "data-header-title": "", children: children }), actions] }));
|
|
238
244
|
}
|
|
239
245
|
export function AppContent({ className, ...props }) {
|
|
240
|
-
return _jsx("div", { ...props, className: cx(content, className), "data-ciridae-ui": "" });
|
|
246
|
+
return (_jsx("div", { ...props, className: cx(content, className), "data-ciridae-ui": "", "data-app-content": "" }));
|
|
241
247
|
}
|
|
242
248
|
// Sidebar pieces. The sidebar shows either its expanded content or, as a rail, its compact twins;
|
|
243
249
|
// `AppSidebar` does the switching through these data attributes.
|
|
@@ -4,7 +4,7 @@ export type SidePanelProps = Omit<ComponentProps<"aside">, "title"> & {
|
|
|
4
4
|
/** A muted line above the title, such as where the item sits in its list; the title then drops under the header row. */
|
|
5
5
|
eyebrow?: ReactNode;
|
|
6
6
|
subtitle?: ReactNode;
|
|
7
|
-
/** Beside the title, such as a status badge. */
|
|
7
|
+
/** Beside the title, such as a status badge; the title then drops under the header row. */
|
|
8
8
|
titleAccessory?: ReactNode;
|
|
9
9
|
/** Header controls before the close button, such as a menu. */
|
|
10
10
|
actions?: ReactNode;
|
|
@@ -28,8 +28,18 @@ export type SidePanelProps = Omit<ComponentProps<"aside">, "title"> & {
|
|
|
28
28
|
* the list in a `SidePanelLayout`.
|
|
29
29
|
*/
|
|
30
30
|
export declare function SidePanel({ title, eyebrow, subtitle, titleAccessory, actions, headerContent, footer, onClose, stepper, onPrevious, onNext, flushBody, bodyClassName, className, children, ...props }: SidePanelProps): import("react").JSX.Element;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
export type SidePanelLayoutProps = ComponentProps<"div"> & {
|
|
32
|
+
/**
|
|
33
|
+
* Hold the list and the panel to the height left in the page, the list scrolling inside: for a
|
|
34
|
+
* layout placed straight in a `PageFrame`, with a `DataGrid fill` as its list.
|
|
35
|
+
*/
|
|
36
|
+
fill?: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* A list and its `SidePanel` side by side; the list takes the room the panel leaves and ends after
|
|
40
|
+
* its last row, and the panel stays in view while the page scrolls.
|
|
41
|
+
*/
|
|
42
|
+
export declare function SidePanelLayout({ fill, className, ...props }: SidePanelLayoutProps): import("react").JSX.Element;
|
|
33
43
|
/** A labelled block of a side panel's body. */
|
|
34
44
|
export declare function SidePanelSection({ label, className, children, ...props }: Omit<ComponentProps<"section">, "title"> & {
|
|
35
45
|
label: ReactNode;
|
|
@@ -61,15 +61,18 @@ const titleBlock = css({
|
|
|
61
61
|
paddingBlockStart: "panel.default",
|
|
62
62
|
paddingInline: "panel.comfortable",
|
|
63
63
|
});
|
|
64
|
+
// The Figma's preview panel sets its title at the list row's size (14, medium) with the status
|
|
65
|
+
// beside it, so a long log headline stays on a line or two rather than a page heading's three.
|
|
64
66
|
const titleLine = css({
|
|
65
67
|
display: "flex",
|
|
66
68
|
alignItems: "center",
|
|
67
69
|
flexWrap: "wrap",
|
|
68
70
|
gap: "layout.controlGap",
|
|
69
71
|
margin: "none",
|
|
70
|
-
fontSize: "
|
|
72
|
+
fontSize: "body",
|
|
71
73
|
fontWeight: "medium",
|
|
72
|
-
|
|
74
|
+
letterSpacing: "compact",
|
|
75
|
+
lineHeight: "compact",
|
|
73
76
|
});
|
|
74
77
|
const subtitleLine = css({
|
|
75
78
|
margin: "none",
|
|
@@ -106,12 +109,24 @@ const sheetBody = css({
|
|
|
106
109
|
alignContent: "start",
|
|
107
110
|
gap: "layout.clusterGap",
|
|
108
111
|
});
|
|
112
|
+
// The list ends after its last row, as the Figma draws a short one, and the panel keeps its own
|
|
113
|
+
// height and stays in view while the page scrolls the list. `fill` instead holds both to the
|
|
114
|
+
// page's remaining height, as the Figma's list-and-panel frames draw them: the list scrolls inside
|
|
115
|
+
// (a `DataGrid fill` pins its head) and the panel stays put.
|
|
109
116
|
const layout = css({
|
|
110
117
|
display: "flex",
|
|
111
|
-
alignItems: "
|
|
118
|
+
alignItems: "flex-start",
|
|
112
119
|
gap: "layout.contentGap",
|
|
113
120
|
minWidth: "0",
|
|
114
121
|
"& > :first-child": { flex: "1", minWidth: "0" },
|
|
122
|
+
"& > aside": { position: "sticky", top: "none" },
|
|
123
|
+
"&[data-fill]": {
|
|
124
|
+
flex: "1",
|
|
125
|
+
minHeight: "0",
|
|
126
|
+
alignItems: "stretch",
|
|
127
|
+
"& > :first-child": { minHeight: "0", overflowY: "auto" },
|
|
128
|
+
"& > aside": { position: "static" },
|
|
129
|
+
},
|
|
115
130
|
});
|
|
116
131
|
const section = css({ display: "grid", gap: "layout.controlGap", minWidth: "0" });
|
|
117
132
|
const sectionLabel = css({
|
|
@@ -172,11 +187,17 @@ export function SidePanel({ title, eyebrow, subtitle, titleAccessory, actions, h
|
|
|
172
187
|
}, title: title, subtitle: subtitle, eyebrow: eyebrow, titleAccessory: titleAccessory, actions: _jsxs(_Fragment, { children: [stepButtons, actions] }), children: [_jsxs(DrawerBody, { flush: flushBody, className: cx(!flushBody && sheetBody, bodyClassName), children: [_jsx(SidePanelHotkeys, { ...stepHandlers }), headerContent, children] }), footer && _jsx(DrawerFooter, { children: footer })] }));
|
|
173
188
|
}
|
|
174
189
|
const titleContent = (_jsxs(_Fragment, { children: [title, titleAccessory] }));
|
|
175
|
-
|
|
190
|
+
// A title with an accessory, such as a status badge, drops under the header row as one with an
|
|
191
|
+
// eyebrow does, so the stepper and close never squeeze the badge.
|
|
192
|
+
const titleUnderHeader = Boolean(eyebrow || titleAccessory);
|
|
193
|
+
return (_jsxs(HotkeysProvider, { scope: scope, children: [_jsx(SidePanelHotkeys, { ...stepHandlers, onClose: onClose }), _jsxs("aside", { ...props, className: cx(aside, className), "data-ciridae-ui": "", children: [_jsxs("div", { className: headerRow, children: [_jsx("span", { className: headerLead, "data-eyebrow": eyebrow ? "" : undefined, children: titleUnderHeader ? eyebrow : titleContent }), _jsxs("span", { className: headerActions, children: [stepButtons, actions, _jsx(IconButton, { "aria-label": labels.common.close, size: "small", onClick: onClose, children: _jsx(XIcon, { className: icon({ size: "small" }) }) })] })] }), (titleUnderHeader || subtitle || headerContent) && (_jsxs("div", { className: titleBlock, children: [titleUnderHeader && _jsx("h2", { className: titleLine, children: titleContent }), subtitle && _jsx("p", { className: subtitleLine, children: subtitle }), headerContent] })), _jsx("div", { className: cx(body, bodyClassName), "data-flush": flushBody || undefined, children: children }), footer && _jsx("div", { className: footerRow, children: footer })] })] }));
|
|
176
194
|
}
|
|
177
|
-
/**
|
|
178
|
-
|
|
179
|
-
|
|
195
|
+
/**
|
|
196
|
+
* A list and its `SidePanel` side by side; the list takes the room the panel leaves and ends after
|
|
197
|
+
* its last row, and the panel stays in view while the page scrolls.
|
|
198
|
+
*/
|
|
199
|
+
export function SidePanelLayout({ fill = false, className, ...props }) {
|
|
200
|
+
return (_jsx("div", { ...props, className: cx(layout, className), "data-ciridae-ui": "", "data-fill": fill || undefined }));
|
|
180
201
|
}
|
|
181
202
|
/** A labelled block of a side panel's body. */
|
|
182
203
|
export function SidePanelSection({ label, className, children, ...props }) {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Switch as BaseSwitch } from "@base-ui/react/switch";
|
|
2
|
-
import type { ComponentProps } from "react";
|
|
3
|
-
export type SwitchProps = Omit<ComponentProps<typeof BaseSwitch.Root>, "className"> & {
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export type SwitchProps = Omit<ComponentProps<typeof BaseSwitch.Root>, "className" | "children"> & {
|
|
4
|
+
/** The visible label after the track, which names the switch and toggles it when pressed. */
|
|
5
|
+
children?: ReactNode;
|
|
4
6
|
className?: string;
|
|
7
|
+
/** The label's class, with `children`. */
|
|
8
|
+
wrapperClassName?: string;
|
|
5
9
|
};
|
|
6
|
-
export declare function Switch({ className, ...props }: SwitchProps): import("react").JSX.Element;
|
|
10
|
+
export declare function Switch({ children, className, wrapperClassName, ...props }: SwitchProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Switch as BaseSwitch } from "@base-ui/react/switch";
|
|
3
3
|
import { css, cx } from "#primitives/css";
|
|
4
4
|
// The Round 2 toggle: a short track two insets wider than its knob, grey off and green on.
|
|
@@ -34,6 +34,20 @@ const thumb = css({
|
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
// A switch's visible label after its track, as a checkbox's sits after its box.
|
|
38
|
+
const label = css({
|
|
39
|
+
display: "inline-flex",
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
gap: "layout.controlGap",
|
|
42
|
+
color: "fg.primary",
|
|
43
|
+
fontSize: "caption",
|
|
44
|
+
fontWeight: "[normal]",
|
|
45
|
+
cursor: "pointer",
|
|
46
|
+
"&:has([data-disabled])": { cursor: "not-allowed" },
|
|
47
|
+
});
|
|
48
|
+
export function Switch({ children, className, wrapperClassName, ...props }) {
|
|
49
|
+
const control = (_jsx(BaseSwitch.Root, { ...props, className: cx(track, className), "data-ciridae-ui": "", children: _jsx(BaseSwitch.Thumb, { className: thumb }) }));
|
|
50
|
+
if (children === undefined || children === null || children === false)
|
|
51
|
+
return control;
|
|
52
|
+
return (_jsxs("label", { className: cx(label, wrapperClassName), "data-ciridae-ui": "", children: [control, children] }));
|
|
39
53
|
}
|
package/dist/components/tabs.js
CHANGED
|
@@ -30,6 +30,12 @@ const containedList = css({
|
|
|
30
30
|
background: "bg.field",
|
|
31
31
|
// Raised over the base list's own gap, as the text list's is.
|
|
32
32
|
"&[data-variant=contained]": { gap: "control.trackInset" },
|
|
33
|
+
/*
|
|
34
|
+
* The track's own edge is the group's boundary, so the tab raised in it takes the quieter
|
|
35
|
+
* selected edge: with the raised edge the two rings ran 2px apart at the same weight and read
|
|
36
|
+
* as one thick double border. A `plain` tab, which has no track, keeps the raised edge.
|
|
37
|
+
*/
|
|
38
|
+
"& > [data-active]::before": { background: "[token(gradients.border.selected)]" },
|
|
33
39
|
});
|
|
34
40
|
/* Text tabs: words only, the open one in the primary text, for a tray's or a sheet's filters. */
|
|
35
41
|
const textList = css({ "&[data-variant=text]": { gap: "layout.contentGap" } });
|
|
@@ -222,6 +228,8 @@ const bar = css({
|
|
|
222
228
|
flexWrap: "nowrap",
|
|
223
229
|
gap: "layout.contentGap",
|
|
224
230
|
minWidth: "0",
|
|
231
|
+
// The row keeps the 38 of the controls the open section puts on it, with or without them.
|
|
232
|
+
minHeight: "control.default",
|
|
225
233
|
"& > :first-child": { flex: "[1 1 auto]", minWidth: "0", maxWidth: "full" },
|
|
226
234
|
_phone: { flexWrap: "wrap" },
|
|
227
235
|
});
|
|
@@ -229,7 +237,8 @@ const barActions = css({
|
|
|
229
237
|
display: "flex",
|
|
230
238
|
alignItems: "center",
|
|
231
239
|
justifyContent: "flex-end",
|
|
232
|
-
flexWrap: "
|
|
240
|
+
flexWrap: "nowrap",
|
|
241
|
+
_phone: { flexWrap: "wrap" },
|
|
233
242
|
gap: "layout.controlGap",
|
|
234
243
|
marginInlineStart: "auto",
|
|
235
244
|
flexShrink: "0",
|
|
@@ -40,7 +40,10 @@ const option = css({
|
|
|
40
40
|
export function ThemeToggle({ className }) {
|
|
41
41
|
const { preference, setPreference } = useColorTheme();
|
|
42
42
|
const { labels } = useCiridaeLocale();
|
|
43
|
-
|
|
43
|
+
// The track takes the quieter toolbar edge, as the filter and slicer bars do: with the raised
|
|
44
|
+
// edge it matched the pressed option's own ring 2px inside it, and the pair read as one thick
|
|
45
|
+
// double border rather than a selected option in a track.
|
|
46
|
+
const trackEdge = faceEdge("toolbar");
|
|
44
47
|
const choices = [
|
|
45
48
|
{
|
|
46
49
|
value: "light",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
export type ValueChangeProps = Omit<ComponentProps<"div">, "children"> & {
|
|
3
|
+
/** The field that changed, such as "Bank account". */
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
/** Its value before the change, struck through. */
|
|
6
|
+
before: ReactNode;
|
|
7
|
+
/** Its value after the change. */
|
|
8
|
+
after: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
/** One field's change: its label, the old value struck through, an arrow, then the new value. */
|
|
11
|
+
export declare function ValueChange({ label: fieldLabel, before, after, className, ...props }: ValueChangeProps): import("react").JSX.Element;
|
|
12
|
+
/** The rows of what changed, in a field well with hairlines between them; children are `ValueChange`s. */
|
|
13
|
+
export declare function ValueChangeList({ className, ...props }: ComponentProps<"dl">): import("react").JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* What changed, as the Figma's Activity log draws it under an entry and in its panel: one row per
|
|
4
|
+
* field, its muted label, the old value muted and struck through, an arrow, then the new value.
|
|
5
|
+
* `ValueChangeList` is the well that holds the rows, hairlines between them.
|
|
6
|
+
*/
|
|
7
|
+
import { ArrowRightIcon } from "@phosphor-icons/react";
|
|
8
|
+
import { css, cx } from "#primitives/css";
|
|
9
|
+
import { directional, icon } from "./icon.js";
|
|
10
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
11
|
+
const list = css({
|
|
12
|
+
display: "grid",
|
|
13
|
+
minWidth: "0",
|
|
14
|
+
margin: "none",
|
|
15
|
+
paddingInline: "panel.default",
|
|
16
|
+
border: "1px solid token(colors.border.control)",
|
|
17
|
+
borderRadius: "action",
|
|
18
|
+
background: "bg.formField",
|
|
19
|
+
});
|
|
20
|
+
const row = css({
|
|
21
|
+
display: "grid",
|
|
22
|
+
gridTemplateColumns: "token(sizes.valueChange.label) minmax(0, 1fr)",
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
columnGap: "layout.contentGap",
|
|
25
|
+
paddingBlock: "panel.default",
|
|
26
|
+
lineHeight: "tight",
|
|
27
|
+
"&:not(:last-child)": { borderBottom: "1px solid token(colors.border.divider)" },
|
|
28
|
+
_phone: { gridTemplateColumns: "minmax(0, 1fr)", rowGap: "layout.controlGap" },
|
|
29
|
+
});
|
|
30
|
+
const label = css({
|
|
31
|
+
color: "fg.label",
|
|
32
|
+
fontSize: "code",
|
|
33
|
+
fontWeight: "medium",
|
|
34
|
+
letterSpacing: "compact",
|
|
35
|
+
});
|
|
36
|
+
const values = css({
|
|
37
|
+
display: "flex",
|
|
38
|
+
flexWrap: "wrap",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
gap: "layout.controlGap",
|
|
41
|
+
minWidth: "0",
|
|
42
|
+
margin: "none",
|
|
43
|
+
fontSize: "body",
|
|
44
|
+
fontWeight: "medium",
|
|
45
|
+
letterSpacing: "compact",
|
|
46
|
+
"& del": { color: "fg.muted", textDecorationLine: "line-through" },
|
|
47
|
+
"& ins": { color: "fg.primary", textDecorationLine: "none" },
|
|
48
|
+
"& > svg": { flexShrink: "0", color: "fg.muted" },
|
|
49
|
+
});
|
|
50
|
+
const srOnly = css({ srOnly: true });
|
|
51
|
+
/** One field's change: its label, the old value struck through, an arrow, then the new value. */
|
|
52
|
+
export function ValueChange({ label: fieldLabel, before, after, className, ...props }) {
|
|
53
|
+
const { labels } = useCiridaeLocale();
|
|
54
|
+
return (_jsxs("div", { ...props, className: cx(row, className), "data-ciridae-ui": "", children: [_jsx("dt", { className: label, children: fieldLabel }), _jsxs("dd", { className: values, children: [_jsx("span", { className: srOnly, children: labels.valueChange.from }), _jsx("del", { children: before }), _jsx(ArrowRightIcon, { "aria-hidden": "true", className: cx(icon({ size: "small" }), directional) }), _jsx("span", { className: srOnly, children: labels.valueChange.to }), _jsx("ins", { children: after })] })] }));
|
|
55
|
+
}
|
|
56
|
+
/** The rows of what changed, in a field well with hairlines between them; children are `ValueChange`s. */
|
|
57
|
+
export function ValueChangeList({ className, ...props }) {
|
|
58
|
+
return _jsx("dl", { ...props, className: cx(list, className), "data-ciridae-ui": "" });
|
|
59
|
+
}
|
package/dist/preset.js
CHANGED
|
@@ -190,6 +190,10 @@ export function createCiridaePreset({ appBase = false, ...theme } = {}) {
|
|
|
190
190
|
"panel.compact": { value: "8px" },
|
|
191
191
|
"panel.default": { value: "12px" },
|
|
192
192
|
"panel.comfortable": { value: "16px" },
|
|
193
|
+
// Under a panel header's description, and a divided list row's block padding: the Figma's
|
|
194
|
+
// settings panels pad them 14.
|
|
195
|
+
"panelHeader.describedBottom": { value: "14px" },
|
|
196
|
+
"listRow.dividedBlock": { value: "14px" },
|
|
193
197
|
"panel.roomy": { value: "24px" },
|
|
194
198
|
"panel.card": { value: "20px" },
|
|
195
199
|
"tile.block": { value: "18px" },
|
|
@@ -324,6 +328,8 @@ export function createCiridaePreset({ appBase = false, ...theme } = {}) {
|
|
|
324
328
|
"emptyState.minimum": { value: "200px" },
|
|
325
329
|
"search.regularPreview": { value: "250px" },
|
|
326
330
|
"search.sidebarPreview": { value: "264px" },
|
|
331
|
+
// A list toolbar's search field, as the Figma's list and log toolbars draw it.
|
|
332
|
+
"search.toolbar": { value: "240px" },
|
|
327
333
|
"shell.sidebar": { value: "248px" },
|
|
328
334
|
// The glass shell round each dialog and palette adds its padding.
|
|
329
335
|
"overlay.dialog": { value: "440px" },
|
|
@@ -334,6 +340,10 @@ export function createCiridaePreset({ appBase = false, ...theme } = {}) {
|
|
|
334
340
|
"overlay.dialogWide": { value: "720px" },
|
|
335
341
|
// The floating drawer's sheet, inside its 8px shell.
|
|
336
342
|
"overlay.sheet": { value: "480px" },
|
|
343
|
+
// A value change's label column, as the Figma's What changed rows set it.
|
|
344
|
+
"valueChange.label": { value: "120px" },
|
|
345
|
+
// The least a sheet footer's note narrows to before its actions wrap under it.
|
|
346
|
+
"sheet.footerNote": { value: "192px" },
|
|
337
347
|
// The agent sheet: narrower as a drawer, and docked beside the page it grows with the
|
|
338
348
|
// window, 428px at 1440 and 488px from 1650 up.
|
|
339
349
|
"overlay.sheetNarrow": { value: "400px" },
|
|
@@ -347,7 +357,7 @@ export function createCiridaePreset({ appBase = false, ...theme } = {}) {
|
|
|
347
357
|
"chat.bubble": { value: "85%" },
|
|
348
358
|
// A file sent with a message, as a square tile over its bubble.
|
|
349
359
|
"chat.attachment": { value: "88px" },
|
|
350
|
-
"settings.column": { value: "
|
|
360
|
+
"settings.column": { value: "760px" },
|
|
351
361
|
"card.centered": { value: "480px" },
|
|
352
362
|
"scroll.bar": { value: "6px" },
|
|
353
363
|
"card.centeredWide": { value: "720px" },
|
|
@@ -385,6 +395,9 @@ export function createCiridaePreset({ appBase = false, ...theme } = {}) {
|
|
|
385
395
|
// A single line, its box the type's own height. Text that can wrap takes another.
|
|
386
396
|
tight: { value: "1" },
|
|
387
397
|
compact: { value: "1.25" },
|
|
398
|
+
// A row's label over its detail: 16px lines put them 17 apart baseline to baseline, as the
|
|
399
|
+
// Figma's list rows do, in the 32px a row's avatar takes, so the row stays 56.
|
|
400
|
+
stacked: { value: "16px" },
|
|
388
401
|
log: { value: "1.4" },
|
|
389
402
|
body: { value: "1.4" },
|
|
390
403
|
},
|
|
@@ -603,8 +616,19 @@ export function createCiridaePreset({ appBase = false, ...theme } = {}) {
|
|
|
603
616
|
_light: "linear-gradient(to bottom, #F48272, #F2533C)",
|
|
604
617
|
},
|
|
605
618
|
},
|
|
606
|
-
|
|
607
|
-
|
|
619
|
+
/*
|
|
620
|
+
* Dark draws no edge on the primary or destructive face, and keeps the glass
|
|
621
|
+
* edge on the raised one. Light draws the raised edge opaque: at a third over
|
|
622
|
+
* a near-white face its top end resolved to the panel's own grey, so the upper
|
|
623
|
+
* half of every button, toolbar control and icon tile had no edge at all and
|
|
624
|
+
* read as a pale smear on the page rather than a control.
|
|
625
|
+
*/
|
|
626
|
+
"border.raised": {
|
|
627
|
+
value: {
|
|
628
|
+
base: darkGlassEdge,
|
|
629
|
+
_light: "linear-gradient(to bottom, #CBCBCE, #B9B9BD)",
|
|
630
|
+
},
|
|
631
|
+
},
|
|
608
632
|
"border.primary": {
|
|
609
633
|
value: {
|
|
610
634
|
base: noEdge,
|