@xeonr/platform-ui 1.10.2 → 1.12.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/auth/AuthCode.d.ts +48 -0
- package/dist/auth/AuthCode.d.ts.map +1 -0
- package/dist/auth/AuthCode.js +197 -0
- package/dist/auth/AuthCode.js.map +1 -0
- package/dist/auth/AuthConsent.d.ts +69 -0
- package/dist/auth/AuthConsent.d.ts.map +1 -0
- package/dist/auth/AuthConsent.js +155 -0
- package/dist/auth/AuthConsent.js.map +1 -0
- package/dist/auth/AuthControls.d.ts +133 -0
- package/dist/auth/AuthControls.d.ts.map +1 -0
- package/dist/auth/AuthControls.js +379 -0
- package/dist/auth/AuthControls.js.map +1 -0
- package/dist/auth/AuthPanel.d.ts +106 -0
- package/dist/auth/AuthPanel.d.ts.map +1 -0
- package/dist/auth/AuthPanel.js +317 -0
- package/dist/auth/AuthPanel.js.map +1 -0
- package/dist/auth.d.ts +5 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +15 -0
- package/dist/auth.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/kit/Anchored.js +109 -109
- package/dist/kit/Anchored.js.map +1 -1
- package/dist/kit/ApiKeyForm.js +73 -73
- package/dist/kit/ApiKeyForm.js.map +1 -1
- package/dist/kit/ApiKeys.js +144 -144
- package/dist/kit/ApiKeys.js.map +1 -1
- package/dist/kit/Badge.js +45 -45
- package/dist/kit/Badge.js.map +1 -1
- package/dist/kit/Blocks.d.ts.map +1 -1
- package/dist/kit/Blocks.js +103 -102
- package/dist/kit/Blocks.js.map +1 -1
- package/dist/kit/Board.js +54 -54
- package/dist/kit/Board.js.map +1 -1
- package/dist/kit/Button.d.ts +3 -3
- package/dist/kit/Button.d.ts.map +1 -1
- package/dist/kit/Button.js +55 -50
- package/dist/kit/Button.js.map +1 -1
- package/dist/kit/Card.d.ts.map +1 -1
- package/dist/kit/Card.js +36 -29
- package/dist/kit/Card.js.map +1 -1
- package/dist/kit/ChartFrame.js +54 -54
- package/dist/kit/ChartFrame.js.map +1 -1
- package/dist/kit/ChartTypes.js +215 -215
- package/dist/kit/ChartTypes.js.map +1 -1
- package/dist/kit/Charts.js +605 -605
- package/dist/kit/Charts.js.map +1 -1
- package/dist/kit/Checkbox.js +16 -16
- package/dist/kit/Checkbox.js.map +1 -1
- package/dist/kit/Chip.js +21 -21
- package/dist/kit/Chip.js.map +1 -1
- package/dist/kit/Choice.js +24 -24
- package/dist/kit/Choice.js.map +1 -1
- package/dist/kit/CodeEditor.d.ts.map +1 -1
- package/dist/kit/CodeEditor.js +26 -48
- package/dist/kit/CodeEditor.js.map +1 -1
- package/dist/kit/Color.js +74 -74
- package/dist/kit/Color.js.map +1 -1
- package/dist/kit/Combobox.js +67 -67
- package/dist/kit/Combobox.js.map +1 -1
- package/dist/kit/CommandPalette.d.ts.map +1 -1
- package/dist/kit/CommandPalette.js +96 -86
- package/dist/kit/CommandPalette.js.map +1 -1
- package/dist/kit/Comment.js +7 -7
- package/dist/kit/Comment.js.map +1 -1
- package/dist/kit/Controls.js +122 -122
- package/dist/kit/Controls.js.map +1 -1
- package/dist/kit/DataGrid.js +97 -97
- package/dist/kit/DataGrid.js.map +1 -1
- package/dist/kit/DataTable.d.ts.map +1 -1
- package/dist/kit/DataTable.js +196 -195
- package/dist/kit/DataTable.js.map +1 -1
- package/dist/kit/DatePicker.js +242 -242
- package/dist/kit/DatePicker.js.map +1 -1
- package/dist/kit/Drawer.d.ts.map +1 -1
- package/dist/kit/Drawer.js +15 -14
- package/dist/kit/Drawer.js.map +1 -1
- package/dist/kit/Dropzone.js +80 -80
- package/dist/kit/Dropzone.js.map +1 -1
- package/dist/kit/Editable.d.ts.map +1 -1
- package/dist/kit/Editable.js +130 -129
- package/dist/kit/Editable.js.map +1 -1
- package/dist/kit/EmptyState.d.ts.map +1 -1
- package/dist/kit/EmptyState.js +14 -13
- package/dist/kit/EmptyState.js.map +1 -1
- package/dist/kit/EntityHeader.d.ts.map +1 -1
- package/dist/kit/EntityHeader.js +17 -16
- package/dist/kit/EntityHeader.js.map +1 -1
- package/dist/kit/Facet.js +52 -52
- package/dist/kit/Facet.js.map +1 -1
- package/dist/kit/FacetRail.js +91 -91
- package/dist/kit/FacetRail.js.map +1 -1
- package/dist/kit/Forbidden.js +7 -7
- package/dist/kit/Forbidden.js.map +1 -1
- package/dist/kit/Form.d.ts.map +1 -1
- package/dist/kit/Form.js +144 -143
- package/dist/kit/Form.js.map +1 -1
- package/dist/kit/Graph.d.ts +14 -3
- package/dist/kit/Graph.d.ts.map +1 -1
- package/dist/kit/Graph.js +473 -314
- package/dist/kit/Graph.js.map +1 -1
- package/dist/kit/GroupedMultiSelect.js +115 -115
- package/dist/kit/GroupedMultiSelect.js.map +1 -1
- package/dist/kit/Icon.d.ts +2 -0
- package/dist/kit/Icon.d.ts.map +1 -1
- package/dist/kit/Icon.js +3 -1
- package/dist/kit/Icon.js.map +1 -1
- package/dist/kit/JumpList.js +11 -11
- package/dist/kit/JumpList.js.map +1 -1
- package/dist/kit/KV.js +6 -6
- package/dist/kit/KV.js.map +1 -1
- package/dist/kit/Layout.js +5 -5
- package/dist/kit/Layout.js.map +1 -1
- package/dist/kit/List.js +74 -74
- package/dist/kit/List.js.map +1 -1
- package/dist/kit/LogView.js +68 -68
- package/dist/kit/LogView.js.map +1 -1
- package/dist/kit/Markdown.js +37 -37
- package/dist/kit/Markdown.js.map +1 -1
- package/dist/kit/Marker.js +42 -42
- package/dist/kit/Marker.js.map +1 -1
- package/dist/kit/Menu.js +128 -128
- package/dist/kit/Menu.js.map +1 -1
- package/dist/kit/Modal.d.ts.map +1 -1
- package/dist/kit/Modal.js +86 -75
- package/dist/kit/Modal.js.map +1 -1
- package/dist/kit/MultiCombobox.js +157 -157
- package/dist/kit/MultiCombobox.js.map +1 -1
- package/dist/kit/PageHeader.d.ts.map +1 -1
- package/dist/kit/PageHeader.js +8 -7
- package/dist/kit/PageHeader.js.map +1 -1
- package/dist/kit/Panel.d.ts.map +1 -1
- package/dist/kit/Panel.js +33 -14
- package/dist/kit/Panel.js.map +1 -1
- package/dist/kit/Picker.js +159 -159
- package/dist/kit/Picker.js.map +1 -1
- package/dist/kit/PipelineFlow.js +86 -86
- package/dist/kit/PipelineFlow.js.map +1 -1
- package/dist/kit/Popover.js +67 -67
- package/dist/kit/Popover.js.map +1 -1
- package/dist/kit/Range.js +76 -76
- package/dist/kit/Range.js.map +1 -1
- package/dist/kit/Reorder.js +95 -95
- package/dist/kit/Reorder.js.map +1 -1
- package/dist/kit/Search.js +27 -27
- package/dist/kit/Search.js.map +1 -1
- package/dist/kit/Secret.js +26 -26
- package/dist/kit/Secret.js.map +1 -1
- package/dist/kit/Skeleton.js +14 -14
- package/dist/kit/Skeleton.js.map +1 -1
- package/dist/kit/Sparkline.js +51 -51
- package/dist/kit/Sparkline.js.map +1 -1
- package/dist/kit/Spectrum.js +163 -163
- package/dist/kit/Spectrum.js.map +1 -1
- package/dist/kit/Splash.js +3 -3
- package/dist/kit/Splash.js.map +1 -1
- package/dist/kit/Split.js +13 -13
- package/dist/kit/Split.js.map +1 -1
- package/dist/kit/SplitButton.d.ts.map +1 -1
- package/dist/kit/SplitButton.js +8 -6
- package/dist/kit/SplitButton.js.map +1 -1
- package/dist/kit/Stat.d.ts.map +1 -1
- package/dist/kit/Stat.js +61 -60
- package/dist/kit/Stat.js.map +1 -1
- package/dist/kit/Stepper.js +22 -22
- package/dist/kit/Stepper.js.map +1 -1
- package/dist/kit/TabStrip.js +68 -68
- package/dist/kit/TabStrip.js.map +1 -1
- package/dist/kit/Text.js +63 -63
- package/dist/kit/Text.js.map +1 -1
- package/dist/kit/Toast.js +29 -29
- package/dist/kit/Toast.js.map +1 -1
- package/dist/kit/Tooltip.js +83 -83
- package/dist/kit/Tooltip.js.map +1 -1
- package/dist/kit/Trace.js +33 -33
- package/dist/kit/Trace.js.map +1 -1
- package/dist/kit/Upload.js +88 -88
- package/dist/kit/Upload.js.map +1 -1
- package/dist/kit/graphLayout.d.ts +32 -0
- package/dist/kit/graphLayout.d.ts.map +1 -0
- package/dist/kit/graphLayout.js +179 -0
- package/dist/kit/graphLayout.js.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +17 -1
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +40 -4
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/ThemeScope.d.ts +9 -1
- package/dist/theme/ThemeScope.d.ts.map +1 -1
- package/dist/theme/ThemeScope.js +11 -4
- package/dist/theme/ThemeScope.js.map +1 -1
- package/dist/theme/tokens.d.ts +74 -0
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/theme/tokens.js +197 -3
- package/dist/theme/tokens.js.map +1 -1
- package/package.json +12 -6
- package/scripts/check-colour-literals.mjs +5 -1
- package/scripts/stable-styled-ids.mjs +75 -0
package/dist/kit/LogView.js
CHANGED
|
@@ -6,14 +6,14 @@ import { PanelHead, PanelTitle, PanelActions, Panel } from "./Panel.js";
|
|
|
6
6
|
import { AppButton } from "./Button.js";
|
|
7
7
|
const pad = (n) => String(n).padStart(2, "0");
|
|
8
8
|
function fmtAt(at) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
if (typeof at === "string")
|
|
10
|
+
return at;
|
|
11
|
+
const d = at instanceof Date ? at : new Date(at);
|
|
12
|
+
if (Number.isNaN(d.getTime()))
|
|
13
|
+
return "";
|
|
14
|
+
return `${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`;
|
|
15
15
|
}
|
|
16
|
-
const Sur = styled.pre `
|
|
16
|
+
const Sur = styled.pre.withConfig({ componentId: "sc-z8mjtb-0" })`
|
|
17
17
|
margin: 0;
|
|
18
18
|
padding: 12px 16px;
|
|
19
19
|
background: ${v.logBg};
|
|
@@ -21,22 +21,22 @@ const Sur = styled.pre `
|
|
|
21
21
|
font-family: ${v.mono};
|
|
22
22
|
font-size: 11.5px;
|
|
23
23
|
line-height: 1.75;
|
|
24
|
-
${(p) =>
|
|
24
|
+
${(p) => p.$flow ? "" : `overflow: auto; height: ${p.$h ?? 420}px;`}
|
|
25
25
|
white-space: pre-wrap;
|
|
26
26
|
word-break: break-word;
|
|
27
27
|
`;
|
|
28
|
-
const Ts = styled.span `color: ${v.logDim}; user-select: none;`;
|
|
29
|
-
const levelColor = (l) =>
|
|
30
|
-
const Lvl = styled.span `color: ${(p) => levelColor(p.$l)}; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.04em;`;
|
|
31
|
-
const Src = styled.span `color: ${v.logDim};`;
|
|
32
|
-
const Err = styled.span `color: ${v.danger};`;
|
|
33
|
-
const Rule = styled.div `
|
|
28
|
+
const Ts = styled.span.withConfig({ componentId: "sc-z8mjtb-1" })`color: ${v.logDim}; user-select: none;`;
|
|
29
|
+
const levelColor = (l) => l === "error" ? v.danger : l === "warn" ? v.warning : l === "info" ? v.info : v.logDim;
|
|
30
|
+
const Lvl = styled.span.withConfig({ componentId: "sc-z8mjtb-2" })`color: ${(p) => levelColor(p.$l)}; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.04em;`;
|
|
31
|
+
const Src = styled.span.withConfig({ componentId: "sc-z8mjtb-3" })`color: ${v.logDim};`;
|
|
32
|
+
const Err = styled.span.withConfig({ componentId: "sc-z8mjtb-4" })`color: ${v.danger};`;
|
|
33
|
+
const Rule = styled.div.withConfig({ componentId: "sc-z8mjtb-5" })`
|
|
34
34
|
display: flex; align-items: center; gap: 8px;
|
|
35
|
-
color: ${(p) =>
|
|
35
|
+
color: ${(p) => p.$tone === "ok" ? v.success : p.$tone === "crit" ? v.danger : v.logDim};
|
|
36
36
|
margin: 4px 0;
|
|
37
37
|
&::before, &::after { content: ""; flex: 1 1 auto; border-top: 1px dashed ${v.logDim}; opacity: 0.6; }
|
|
38
38
|
`;
|
|
39
|
-
const Boot = styled.div `
|
|
39
|
+
const Boot = styled.div.withConfig({ componentId: "sc-z8mjtb-6" })`
|
|
40
40
|
margin: 6px -16px;
|
|
41
41
|
padding: 3px 16px;
|
|
42
42
|
border-top: 1px solid ${v.logDim};
|
|
@@ -46,8 +46,8 @@ const Boot = styled.div `
|
|
|
46
46
|
letter-spacing: 0.1em;
|
|
47
47
|
text-transform: uppercase;
|
|
48
48
|
`;
|
|
49
|
-
const Fields = styled.span `margin-left: 8px; color: ${v.logDim}; font-size: 10.5px; overflow-wrap: anywhere;`;
|
|
50
|
-
const Older = styled.button `
|
|
49
|
+
const Fields = styled.span.withConfig({ componentId: "sc-z8mjtb-7" })`margin-left: 8px; color: ${v.logDim}; font-size: 10.5px; overflow-wrap: anywhere;`;
|
|
50
|
+
const Older = styled.button.withConfig({ componentId: "sc-z8mjtb-8" })`
|
|
51
51
|
display: block;
|
|
52
52
|
width: 100%;
|
|
53
53
|
margin: 0 0 8px;
|
|
@@ -62,61 +62,61 @@ const Older = styled.button `
|
|
|
62
62
|
&:hover:not(:disabled) { background: ${v.hover}; }
|
|
63
63
|
&:disabled { cursor: default; opacity: 0.6; }
|
|
64
64
|
`;
|
|
65
|
-
const Foot = styled.div `margin-top: 8px; color: ${v.logDim}; font-size: 10.5px; text-align: center;`;
|
|
65
|
+
const Foot = styled.div.withConfig({ componentId: "sc-z8mjtb-9" })`margin-top: 8px; color: ${v.logDim}; font-size: 10.5px; text-align: center;`;
|
|
66
66
|
const useIsoLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
|
|
67
67
|
/** How close to the tail still counts as "at the tail", in px. */
|
|
68
68
|
const TAIL_SLACK = 24;
|
|
69
69
|
export function LogSurface({ lines, height, flow, order = "oldest-first", follow = true, placeholder = "waiting for output…", onLoadOlder, loadingOlder, olderLabel = "Load older", footer }) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
70
|
+
const ref = useRef(null);
|
|
71
|
+
const newest = order === "newest-first";
|
|
72
|
+
const shown = newest ? [...lines].reverse() : lines;
|
|
73
|
+
// Following means "stay at the tail", not "go to the tail whenever anything
|
|
74
|
+
// changes": a reader who has scrolled away is reading, and new lines must
|
|
75
|
+
// not pull them back. And "Load older" grows the log at the far end from
|
|
76
|
+
// the tail, so the reader is held where they were rather than thrown to the
|
|
77
|
+
// tail (oldest-first) by the lines landing above them.
|
|
78
|
+
const pinned = useRef(true);
|
|
79
|
+
/** Set when older lines were asked for: the reader's distance from the bottom, to hold. */
|
|
80
|
+
const anchor = useRef(null);
|
|
81
|
+
const firstLine = useRef(undefined);
|
|
82
|
+
const wasFollowing = useRef(follow);
|
|
83
|
+
const onScroll = () => {
|
|
84
|
+
const el = ref.current;
|
|
85
|
+
if (!el)
|
|
86
|
+
return;
|
|
87
|
+
pinned.current = newest ? el.scrollTop <= TAIL_SLACK : el.scrollHeight - el.scrollTop - el.clientHeight <= TAIL_SLACK;
|
|
88
|
+
};
|
|
89
|
+
const loadOlder = () => {
|
|
90
|
+
const el = ref.current;
|
|
91
|
+
if (el && !newest && !flow)
|
|
92
|
+
anchor.current = el.scrollHeight - el.scrollTop;
|
|
93
|
+
onLoadOlder?.();
|
|
94
|
+
};
|
|
95
|
+
const older = onLoadOlder ? _jsx(Older, { type: "button", disabled: loadingOlder, onClick: loadOlder, style: newest ? { margin: "8px 0 0" } : undefined, children: loadingOlder ? "Loading…" : olderLabel }) : null;
|
|
96
|
+
useIsoLayoutEffect(() => {
|
|
97
|
+
const el = ref.current;
|
|
98
|
+
const prepended = firstLine.current !== undefined && lines[0] !== firstLine.current;
|
|
99
|
+
firstLine.current = lines[0];
|
|
100
|
+
// turning following back on is asking to be taken to the tail
|
|
101
|
+
if (follow && !wasFollowing.current)
|
|
102
|
+
pinned.current = true;
|
|
103
|
+
wasFollowing.current = follow;
|
|
104
|
+
if (!el || flow)
|
|
105
|
+
return;
|
|
106
|
+
if (anchor.current !== null && prepended) {
|
|
107
|
+
el.scrollTop = el.scrollHeight - anchor.current;
|
|
108
|
+
anchor.current = null;
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (follow && pinned.current)
|
|
112
|
+
el.scrollTop = newest ? 0 : el.scrollHeight;
|
|
113
|
+
}, [lines, follow, flow, newest]);
|
|
114
|
+
return _jsxs(Sur, { ref: ref, "$h": height, "$flow": flow, onScroll: flow ? undefined : onScroll, children: [newest ? null : older, lines.length === 0 ? _jsx(Ts, { children: placeholder }) : null, shown.map((l, i) => l.boot ? _jsx(Boot, { children: l.text }, i) :
|
|
115
|
+
l.divider ? _jsx(Rule, { "$tone": l.tone, children: l.text }, i) : _jsxs("div", { children: [l.at != null && l.at !== "" ? _jsxs(Ts, { children: [fmtAt(l.at), " "] }) : null, l.level ? _jsxs(_Fragment, { children: [_jsx(Lvl, { "$l": l.level, children: l.level }), " "] }) : null, l.source ? _jsxs(_Fragment, { children: [_jsx(Src, { children: l.source }), " "] }) : null, l.stderr ? _jsx(Err, { children: l.text }) : l.text, l.fields ? _jsx(Fields, { children: Object.entries(l.fields).filter(([, val]) => val != null).map(([k, val]) => `${k}=${String(val)}`).join(" ") }) : null] }, i)), newest ? older : null, footer ? _jsx(Foot, { children: footer }) : null] });
|
|
116
116
|
}
|
|
117
117
|
/** LogPanel: LogSurface inside a Panel with a follow toggle and status slot. */
|
|
118
118
|
export function LogPanel({ title, lines, status, height, flow, order, actions, placeholder, onLoadOlder, loadingOlder, olderLabel, footer }) {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
const [follow, setFollow] = useState(true);
|
|
120
|
+
return _jsxs(Panel, { children: [_jsxs(PanelHead, { children: [_jsx(PanelTitle, { children: title }), status, _jsxs(PanelActions, { children: [actions, flow ? null : _jsx(AppButton, { size: "xs", variant: follow ? "quiet" : "ghost", onClick: () => setFollow(!follow), children: follow ? "Following" : "Follow" })] })] }), _jsx(LogSurface, { lines: lines, height: height, follow: follow, ...(flow !== undefined ? { flow } : {}), ...(order !== undefined ? { order } : {}), ...(placeholder !== undefined ? { placeholder } : {}), onLoadOlder: onLoadOlder, loadingOlder: loadingOlder, ...(olderLabel !== undefined ? { olderLabel } : {}), footer: footer })] });
|
|
121
121
|
}
|
|
122
|
-
//# sourceMappingURL=LogView.js.map
|
|
122
|
+
//# sourceMappingURL=LogView.js.map
|
package/dist/kit/LogView.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/kit/LogView.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAAS,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,QAAQ,OAAO;AACpE,OAAO,MAAM,MAAM,mBAAmB;AACtC,SAAS,CAAC,QAAQ,oBAAoB;AACtC,SAAS,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,QAAQ,YAAa;AACxE,SAAS,SAAS,QAAQ,aAAc;AA8BxC,MAAM,GAAG,GAAG,CAAC,CAAS,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AACrD,SAAS,KAAK,CAAC,EA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AAG,WAAW,GAAG,QAAQ,GAEnC,IACY,IACL,EACZ,KAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,MAAO,IAAI,KAAK,SAAS,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAO,KAAK,KAAK,SAAS,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,MAAO,WAAW,KAAK,SAAS,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,MAAO,UAAU,KAAK,SAAS,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,GAAI,IAChU;AAEZ","ignoreList":[]}
|
package/dist/kit/Markdown.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
3
|
import { Link } from "react-router-dom";
|
|
4
4
|
import styled from "styled-components";
|
|
5
|
-
import ReactMarkdown
|
|
5
|
+
import ReactMarkdown from "react-markdown";
|
|
6
6
|
import remarkGfm from "remark-gfm";
|
|
7
7
|
import { v } from "../theme/tokens.js";
|
|
8
8
|
import { AppButton, ButtonRow } from "./Button.js";
|
|
@@ -15,7 +15,7 @@ import { Segmented, TextArea } from "./Form.js";
|
|
|
15
15
|
// Editing is a textarea with a preview toggle rather than a rich editor: a
|
|
16
16
|
// description is pasted from a terminal at least as often as it is typed, and
|
|
17
17
|
// a WYSIWYG that mangles a code fence is worse than no WYSIWYG at all.
|
|
18
|
-
const Body = styled.div `
|
|
18
|
+
const Body = styled.div.withConfig({ componentId: "sc-la79ns-0" })`
|
|
19
19
|
font-size: 13px;
|
|
20
20
|
line-height: 1.6;
|
|
21
21
|
color: ${v.text};
|
|
@@ -28,7 +28,7 @@ const Body = styled.div `
|
|
|
28
28
|
ul, ol { padding-left: 22px; }
|
|
29
29
|
li + li { margin-top: 2px; }
|
|
30
30
|
li > p { margin: 0; }
|
|
31
|
-
code { font-family: ${v.mono}; font-size: 11.5px; padding: 1px 5px; border-radius: 5px; background: ${v.hover}; border: 1px solid ${v.line}; }
|
|
31
|
+
code { font-family: ${v.mono}; font-size: 11.5px; padding: 1px 5px; border-radius: min(5px, ${v.rCtl}); background: ${v.hover}; border: 1px solid ${v.line}; }
|
|
32
32
|
pre { padding: 10px 12px; border-radius: ${v.rCtl}; background: ${v.logBg}; color: ${v.logText}; overflow: auto; }
|
|
33
33
|
pre code { background: transparent; border: none; padding: 0; color: inherit; }
|
|
34
34
|
a { color: ${v.info}; text-decoration: none; }
|
|
@@ -41,42 +41,42 @@ const Body = styled.div `
|
|
|
41
41
|
hr { border: none; border-top: 1px solid ${v.line}; margin: 14px 0; }
|
|
42
42
|
img { max-width: 100%; border-radius: ${v.rCtl}; }
|
|
43
43
|
`;
|
|
44
|
-
const Absent = styled.span `
|
|
44
|
+
const Absent = styled.span.withConfig({ componentId: "sc-la79ns-1" })`
|
|
45
45
|
color: ${v.faint};
|
|
46
46
|
font-size: 12.5px;
|
|
47
47
|
font-style: italic;
|
|
48
48
|
`;
|
|
49
49
|
/** Markdown: rendered GitHub-flavoured markdown. Raw HTML is not enabled. */
|
|
50
50
|
export function Markdown({ text, empty = "Nothing written yet.", resolveLink, renderImage }) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
51
|
+
const components = useMemo(() => {
|
|
52
|
+
if (!resolveLink && !renderImage)
|
|
53
|
+
return undefined;
|
|
54
|
+
const c = {};
|
|
55
|
+
if (resolveLink)
|
|
56
|
+
c.a = ({ href, children, title }) => {
|
|
57
|
+
const to = href ? resolveLink(href) : null;
|
|
58
|
+
if (to && "to" in to)
|
|
59
|
+
return _jsx(Link, { to: to.to, title: title, children: children });
|
|
60
|
+
const external = !!to && "href" in to && to.external;
|
|
61
|
+
return _jsx("a", { href: to && "href" in to ? to.href : href, title: title, ...(external ? { target: "_blank", rel: "noreferrer" } : {}), children: children });
|
|
62
|
+
};
|
|
63
|
+
if (renderImage)
|
|
64
|
+
c.img = ({ src, alt, title }) => {
|
|
65
|
+
const drawn = typeof src === "string" ? renderImage(src, alt ?? "", title) : undefined;
|
|
66
|
+
return drawn === undefined ? _jsx("img", { src: typeof src === "string" ? src : undefined, alt: alt ?? "", title: title }) : _jsx(_Fragment, { children: drawn });
|
|
67
|
+
};
|
|
68
|
+
return c;
|
|
69
|
+
}, [resolveLink, renderImage]);
|
|
70
|
+
if (!text.trim())
|
|
71
|
+
return _jsx(Absent, { children: empty });
|
|
72
|
+
return _jsx(Body, { children: _jsx(ReactMarkdown, { remarkPlugins: [remarkGfm], ...(components ? { components } : {}), children: text }) });
|
|
73
73
|
}
|
|
74
|
-
const EditorWrap = styled.div `
|
|
74
|
+
const EditorWrap = styled.div.withConfig({ componentId: "sc-la79ns-2" })`
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-direction: column;
|
|
77
77
|
gap: 8px;
|
|
78
78
|
`;
|
|
79
|
-
const PreviewBox = styled.div `
|
|
79
|
+
const PreviewBox = styled.div.withConfig({ componentId: "sc-la79ns-3" })`
|
|
80
80
|
min-height: 76px;
|
|
81
81
|
padding: 10px 12px;
|
|
82
82
|
border-radius: ${v.rCtl};
|
|
@@ -84,8 +84,8 @@ const PreviewBox = styled.div `
|
|
|
84
84
|
`;
|
|
85
85
|
/** MarkdownEditor: the write/preview pair. Controlled, like every kit field. */
|
|
86
86
|
export function MarkdownEditor({ value, onChange, placeholder, rows = 8, autoFocus }) {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
const [mode, setMode] = useState("write");
|
|
88
|
+
return _jsxs(EditorWrap, { children: [_jsx(Segmented, { options: [{ value: "write", label: "Write" }, { value: "preview", label: "Preview" }], value: mode, onChange: setMode }), mode === "write" ? _jsx(TextArea, { value: value, rows: rows, placeholder: placeholder ?? "Markdown…", autoFocus: autoFocus, onChange: (e) => onChange(e.target.value), style: { minHeight: rows * 20 } }) : _jsx(PreviewBox, { children: _jsx(Markdown, { text: value, empty: "Nothing to preview." }) })] });
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* EditableMarkdown: a markdown block that edits in place — the description
|
|
@@ -93,11 +93,11 @@ export function MarkdownEditor({ value, onChange, placeholder, rows = 8, autoFoc
|
|
|
93
93
|
* a refused write leaves the draft on screen rather than losing it.
|
|
94
94
|
*/
|
|
95
95
|
export function EditableMarkdown({ text, canEdit, onSave, saving, empty, editLabel = "Edit description" }) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
const [editing, setEditing] = useState(false);
|
|
97
|
+
const [draft, setDraft] = useState(text);
|
|
98
|
+
if (!editing) {
|
|
99
|
+
return _jsxs("div", { children: [_jsx(Markdown, { text: text, ...(empty ? { empty } : {}) }), canEdit ? _jsx(ButtonRow, { style: { marginTop: 10 }, children: _jsx(AppButton, { icon: "edit", onClick: () => {setDraft(text);setEditing(true);}, children: editLabel }) }) : null] });
|
|
100
|
+
}
|
|
101
|
+
return _jsxs("div", { children: [_jsx(MarkdownEditor, { value: draft, onChange: setDraft, autoFocus: true }), _jsxs(ButtonRow, { style: { marginTop: 10, justifyContent: "flex-end" }, children: [_jsx(AppButton, { onClick: () => setEditing(false), disabled: saving, children: "Cancel" }), _jsx(AppButton, { variant: "grad", loading: saving, onClick: () => {void onSave(draft).then(() => setEditing(false));}, children: "Save" })] })] });
|
|
102
102
|
}
|
|
103
|
-
//# sourceMappingURL=Markdown.js.map
|
|
103
|
+
//# sourceMappingURL=Markdown.js.map
|
package/dist/kit/Markdown.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/kit/Markdown.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAAS,OAAO,EAAE,QAAQ,QAAwB,OAAO;AACzD,SAAS,IAAI,QAAQ,kBAAkB;AACvC,OAAO,MAAM,MAAM,mBAAmB;AACtC,OAAO,aAAa,MAA2B,gBAAgB;AAC/D,OAAO,SAAS,MAAM,YAAY;AAClC,SAAS,CAAC,QAAQ,oBAAoB;AACtC,SAAS,SAAS,EAAE,SAAS,QAAQ,aAAc;AACnD,SAAS,SAAS,EAAE,QAAQ,QAAQ,WAAY;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG;;;WAGZ,CAAC,CAAC,IAAI;;;;;;;;;;wBAUO,CAAC,CAAC,IAAI,kEAAkE,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,KAAK,uBAAuB,CAAC,CAAC,IAAI;6CAC/G,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC,KAAK,YAAY,CAAC,CAAC,OAAO;;eAEjF,CAAC,CAAC,IAAI;;2EAEsD,CAAC,CAAC,KAAK,YAAY,CAAC,CAAC,KAAK;;0EAE3B,CAAC,CAAC,IAAI;gBAChE,CAAC,CAAC,KAAK;;6CAEsB,CAAC,CAAC,IAAI;0CACT,CAAC,CAAC,IAAI;CAC/C;AAED,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI;WACf,CAAC,CAAC,KAAK;;;CAGjB;AASD;AACA,OAAM,SAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,sBAAsB,EAAE,WAAW,EAAE,WAAW,EAgBxF;EACC,MAAM,UAAU,GAAG,OAAO,CAAyB,MAAK;IACtD,IAAI,CAAC,WAAW,IAAI,CAAC,WAA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+6,15 @@ import { Icon } from "./Icon.js";
|
|
|
6
6
|
// the level glyph (priority, severity, confidence) and the person cell.
|
|
7
7
|
// `StatusPill` says a verdict in words; these are the compact forms that fit a
|
|
8
8
|
// table row, a board card and a header line without wrapping.
|
|
9
|
-
const DotSpan = styled.span `
|
|
9
|
+
const DotSpan = styled.span.withConfig({ componentId: "sc-1uuxv46-0" })`
|
|
10
10
|
display: inline-block;
|
|
11
11
|
width: ${(p) => p.$size}px;
|
|
12
12
|
height: ${(p) => p.$size}px;
|
|
13
13
|
border-radius: 50%;
|
|
14
14
|
flex: none;
|
|
15
|
-
${(p) => p.$hollow
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
${(p) => p.$hollow ?
|
|
16
|
+
css`border: 2px solid ${p.$css}; background: transparent;` :
|
|
17
|
+
css`background: ${p.$css};`}
|
|
18
18
|
`;
|
|
19
19
|
/**
|
|
20
20
|
* Dot: a state marker in a colour the product chose. `colour` is a CSS colour
|
|
@@ -23,22 +23,22 @@ const DotSpan = styled.span `
|
|
|
23
23
|
* reached reads as an outline, the way a checkbox reads before it is ticked.
|
|
24
24
|
*/
|
|
25
25
|
export function Dot({ colour, size = 10, hollow, title }) {
|
|
26
|
-
|
|
26
|
+
return _jsx(DotSpan, { "$css": colour || v.faint, "$size": size, "$hollow": hollow, title: title });
|
|
27
27
|
}
|
|
28
|
-
const BarsWrap = styled.span `
|
|
28
|
+
const BarsWrap = styled.span.withConfig({ componentId: "sc-1uuxv46-1" })`
|
|
29
29
|
display: inline-flex;
|
|
30
30
|
align-items: flex-end;
|
|
31
31
|
gap: 1.5px;
|
|
32
32
|
height: 12px;
|
|
33
|
-
color: ${(p) =>
|
|
33
|
+
color: ${(p) => p.$muted ? v.faint : v.muted};
|
|
34
34
|
`;
|
|
35
|
-
const Bar = styled.i `
|
|
35
|
+
const Bar = styled.i.withConfig({ componentId: "sc-1uuxv46-2" })`
|
|
36
36
|
display: inline-block;
|
|
37
37
|
width: 3px;
|
|
38
38
|
height: ${(p) => p.$h}px;
|
|
39
39
|
border-radius: 1px;
|
|
40
40
|
background: currentColor;
|
|
41
|
-
opacity: ${(p) =>
|
|
41
|
+
opacity: ${(p) => p.$on ? 1 : 0.25};
|
|
42
42
|
`;
|
|
43
43
|
/**
|
|
44
44
|
* LevelBars: a small ordinal as rising bars — priority, severity, confidence.
|
|
@@ -46,31 +46,31 @@ const Bar = styled.i `
|
|
|
46
46
|
* of them scans as one shape rather than as text of differing widths.
|
|
47
47
|
*/
|
|
48
48
|
export function LevelBars({ level, levels = 3, title }) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
const on = Math.max(0, Math.min(levels, Math.round(level)));
|
|
50
|
+
const step = 6 / Math.max(1, levels);
|
|
51
|
+
return _jsx(BarsWrap, { title: title, "$muted": on === 0, children: Array.from({ length: levels }, (_, i) => _jsx(Bar, { "$h": 5 + Math.round(i * step), "$on": i < on }, i)) });
|
|
52
52
|
}
|
|
53
|
-
const Avatar = styled.span `
|
|
53
|
+
const Avatar = styled.span.withConfig({ componentId: "sc-1uuxv46-3" })`
|
|
54
54
|
display: inline-grid;
|
|
55
55
|
place-items: center;
|
|
56
56
|
width: ${(p) => p.$size}px;
|
|
57
57
|
height: ${(p) => p.$size}px;
|
|
58
58
|
border-radius: 50%;
|
|
59
|
-
background: ${(p) =>
|
|
60
|
-
color: ${(p) =>
|
|
59
|
+
background: ${(p) => p.$empty ? v.hover : v.brand12};
|
|
60
|
+
color: ${(p) => p.$empty ? v.faint : v.brand};
|
|
61
61
|
font-size: ${(p) => Math.max(9, Math.round(p.$size * 0.42))}px;
|
|
62
62
|
font-weight: 700;
|
|
63
63
|
flex: none;
|
|
64
64
|
overflow: hidden;
|
|
65
65
|
img { width: 100%; height: 100%; object-fit: cover; }
|
|
66
66
|
`;
|
|
67
|
-
const PersonWrap = styled.span `
|
|
67
|
+
const PersonWrap = styled.span.withConfig({ componentId: "sc-1uuxv46-4" })`
|
|
68
68
|
display: inline-flex;
|
|
69
69
|
align-items: center;
|
|
70
70
|
gap: 7px;
|
|
71
71
|
min-width: 0;
|
|
72
72
|
font-size: 12px;
|
|
73
|
-
color: ${(p) =>
|
|
73
|
+
color: ${(p) => p.$empty ? v.faint : v.text};
|
|
74
74
|
> span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
75
75
|
`;
|
|
76
76
|
/**
|
|
@@ -81,22 +81,22 @@ const PersonWrap = styled.span `
|
|
|
81
81
|
* blank cell.
|
|
82
82
|
*/
|
|
83
83
|
export function PersonChip({ name, email, avatarUrl, size = 20, nameless, empty = "Unassigned" }) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
const label = name || email || "";
|
|
85
|
+
if (!label) {
|
|
86
|
+
return _jsxs(PersonWrap, { "$empty": true, title: nameless ? empty : undefined, children: [_jsx(Avatar, { "$size": size, "$empty": true, children: _jsx(Icon, { name: "user", size: Math.round(size * 0.5) }) }), nameless ? null : _jsx("span", { children: empty })] });
|
|
87
|
+
}
|
|
88
|
+
return _jsxs(PersonWrap, { title: email || label, children: [_jsx(Avatar, { "$size": size, children: avatarUrl ? _jsx("img", { src: avatarUrl, alt: "" }) : initials(label) }), nameless ? null : _jsx("span", { children: label })] });
|
|
89
89
|
}
|
|
90
90
|
/** initials: the one or two letters that stand in for a name or an address. */
|
|
91
91
|
export function initials(name) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
const parts = name.trim().split(/[\s@._-]+/).filter(Boolean);
|
|
93
|
+
if (parts.length === 0)
|
|
94
|
+
return "?";
|
|
95
|
+
if (parts.length === 1)
|
|
96
|
+
return parts[0].slice(0, 2).toUpperCase();
|
|
97
|
+
return (parts[0][0] + parts[1][0]).toUpperCase();
|
|
98
98
|
}
|
|
99
|
-
const StackWrap = styled.span `
|
|
99
|
+
const StackWrap = styled.span.withConfig({ componentId: "sc-1uuxv46-5" })`
|
|
100
100
|
display: inline-flex;
|
|
101
101
|
align-items: center;
|
|
102
102
|
flex: none;
|
|
@@ -133,17 +133,17 @@ const StackWrap = styled.span `
|
|
|
133
133
|
* avatar shows that person.
|
|
134
134
|
*/
|
|
135
135
|
export function AvatarStack({ people, max = 4, size = 24, label }) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
136
|
+
if (people.length === 0)
|
|
137
|
+
return null;
|
|
138
|
+
const names = people.map((p) => p.name || p.email || "Unknown");
|
|
139
|
+
const shown = people.slice(0, Math.max(1, max));
|
|
140
|
+
const rest = people.length - shown.length;
|
|
141
|
+
const auto = rest > 0 ?
|
|
142
|
+
`${names.slice(0, shown.length).join(", ")} and ${rest} more` :
|
|
143
|
+
names.length > 1 ? `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}` : names[0];
|
|
144
|
+
return _jsxs(StackWrap, { "$size": size, role: "img", "aria-label": label ?? auto, children: [shown.map((p, i) => {
|
|
145
|
+
const n = p.name || p.email || "";
|
|
146
|
+
return _jsx("span", { className: "slot", title: p.email || n || undefined, "aria-hidden": "true", children: _jsx(Avatar, { "$size": size, "$empty": !n, children: !n ? _jsx(Icon, { name: "user", size: Math.round(size * 0.5) }) : p.avatarUrl ? _jsx("img", { src: p.avatarUrl, alt: "" }) : initials(n) }) }, i);
|
|
147
|
+
}), rest > 0 ? _jsxs("span", { className: "more", "aria-hidden": "true", title: names.slice(shown.length).join(", "), children: ["+", rest] }) : null] });
|
|
148
148
|
}
|
|
149
|
-
//# sourceMappingURL=Marker.js.map
|
|
149
|
+
//# sourceMappingURL=Marker.js.map
|
package/dist/kit/Marker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/kit/Marker.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