@lincyaw/aegis-ui 0.20.0 → 0.21.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/components/ui/CodeBlock.cjs +2 -2
- package/dist/components/ui/CodeBlock.cjs.map +1 -1
- package/dist/components/ui/CodeBlock.d.ts +6 -1
- package/dist/components/ui/CodeBlock.js +43 -38
- package/dist/components/ui/CodeBlock.js.map +1 -1
- package/dist/components/ui/DataTable.cjs +1 -1
- package/dist/components/ui/DataTable.cjs.map +1 -1
- package/dist/components/ui/DataTable.d.ts +37 -2
- package/dist/components/ui/DataTable.js +262 -235
- package/dist/components/ui/DataTable.js.map +1 -1
- package/dist/components/ui/DetailBeside.cjs.map +1 -1
- package/dist/components/ui/DetailBeside.d.ts +2 -2
- package/dist/components/ui/DetailBeside.js.map +1 -1
- package/dist/components/ui/IdentityCell.cjs +1 -1
- package/dist/components/ui/IdentityCell.cjs.map +1 -1
- package/dist/components/ui/IdentityCell.d.ts +16 -1
- package/dist/components/ui/IdentityCell.js +30 -22
- package/dist/components/ui/IdentityCell.js.map +1 -1
- package/dist/components/ui/MetadataList.cjs +1 -1
- package/dist/components/ui/MetadataList.cjs.map +1 -1
- package/dist/components/ui/MetadataList.d.ts +10 -1
- package/dist/components/ui/MetadataList.js +24 -22
- package/dist/components/ui/MetadataList.js.map +1 -1
- package/dist/components/ui/SectionDivider.cjs +1 -1
- package/dist/components/ui/SectionDivider.cjs.map +1 -1
- package/dist/components/ui/SectionDivider.d.ts +4 -2
- package/dist/components/ui/SectionDivider.js +13 -13
- package/dist/components/ui/SectionDivider.js.map +1 -1
- package/dist/components/ui/SegmentBar.cjs +2 -0
- package/dist/components/ui/SegmentBar.cjs.map +1 -0
- package/dist/components/ui/SegmentBar.d.ts +26 -0
- package/dist/components/ui/SegmentBar.js +20 -0
- package/dist/components/ui/SegmentBar.js.map +1 -0
- package/dist/components/ui/StatusDot.cjs +1 -1
- package/dist/components/ui/StatusDot.cjs.map +1 -1
- package/dist/components/ui/StatusDot.d.ts +8 -1
- package/dist/components/ui/StatusDot.js +19 -15
- package/dist/components/ui/StatusDot.js.map +1 -1
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +161 -159
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,34 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Avatar as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Avatar as u } from "./Avatar.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { DefaultLink as
|
|
5
|
-
function
|
|
4
|
+
import { DefaultLink as N } from "./linkComponent.js";
|
|
5
|
+
function I({
|
|
6
6
|
name: i,
|
|
7
7
|
secondary: l,
|
|
8
8
|
avatar: s = !1,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
leading: t,
|
|
10
|
+
colorSlot: c,
|
|
11
|
+
to: a,
|
|
12
|
+
ariaLabel: d,
|
|
12
13
|
linkComponent: r,
|
|
13
|
-
inline:
|
|
14
|
-
wrap:
|
|
15
|
-
|
|
14
|
+
inline: m = !1,
|
|
15
|
+
wrap: o = !1,
|
|
16
|
+
mono: g = !1,
|
|
17
|
+
size: p = "md",
|
|
18
|
+
tone: _ = "ink",
|
|
19
|
+
className: y
|
|
16
20
|
}) {
|
|
17
|
-
const
|
|
21
|
+
const f = r ?? N, h = [
|
|
18
22
|
"aegis-identity-cell",
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
m ? "aegis-identity-cell--inline" : "",
|
|
24
|
+
o ? "aegis-identity-cell--wrap" : "",
|
|
25
|
+
g ? "aegis-identity-cell--mono" : "",
|
|
26
|
+
p === "sm" ? "aegis-identity-cell--sm" : "",
|
|
27
|
+
_ === "link" ? "aegis-identity-cell--link-tone" : "",
|
|
28
|
+
y ?? ""
|
|
22
29
|
].filter(Boolean).join(" ");
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
s ? /* @__PURE__ */ e("span", { className: "aegis-identity-cell__avatar", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
return /* @__PURE__ */ n("span", { className: h, children: [
|
|
31
|
+
s ? /* @__PURE__ */ e("span", { className: "aegis-identity-cell__avatar", "aria-hidden": "true", children: /* @__PURE__ */ e(u, { name: i, size: "sm", colorSlot: c }) }) : null,
|
|
32
|
+
t === void 0 ? null : /* @__PURE__ */ e("span", { className: "aegis-identity-cell__leading", children: t }),
|
|
33
|
+
/* @__PURE__ */ n("span", { className: "aegis-identity-cell__text", title: i, children: [
|
|
34
|
+
a === void 0 ? /* @__PURE__ */ e("span", { className: "aegis-identity-cell__name", children: i }) : /* @__PURE__ */ e(
|
|
35
|
+
f,
|
|
28
36
|
{
|
|
29
|
-
to:
|
|
37
|
+
to: a,
|
|
30
38
|
className: "aegis-identity-cell__name aegis-identity-cell__name--link",
|
|
31
|
-
"aria-label":
|
|
39
|
+
"aria-label": d,
|
|
32
40
|
children: i
|
|
33
41
|
}
|
|
34
42
|
),
|
|
@@ -44,6 +52,6 @@ function v({
|
|
|
44
52
|
] });
|
|
45
53
|
}
|
|
46
54
|
export {
|
|
47
|
-
|
|
55
|
+
I as IdentityCell
|
|
48
56
|
};
|
|
49
57
|
//# sourceMappingURL=IdentityCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityCell.js","sources":["../../../src/components/ui/IdentityCell.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { Avatar, type AvatarColorSlot } from './Avatar';\nimport './IdentityCell.css';\nimport { DefaultLink, type LinkComponent } from './linkComponent';\n\ninterface IdentityCellProps {\n /** Primary line, e.g. a model or task name. Truncates; the full name shows on hover. */\n name: string;\n /** Muted `--font-mono` line under the name for an id or path, e.g. `source / task`; a string shows in full on hover. */\n secondary?: ReactNode;\n /** Leads with an Avatar of the name's initials. */\n avatar?: boolean;\n /** Avatar colour from the chart series colours, so it matches that series. */\n colorSlot?: AvatarColorSlot;\n /** Makes the name a link to this destination. */\n to?: string;\n /**\n * The link's accessible name when the name shown is short, e.g. \"Expand\n * trace\" for a link that shows \"Expand\".\n */\n ariaLabel?: string;\n /** Renders the link. Defaults to an `<a href>`; routed apps pass their Link adapter. */\n linkComponent?: LinkComponent;\n /** Puts the secondary text beside the name on one line. */\n inline?: boolean;\n /** Wraps the name and the secondary text, breaking anywhere, instead of truncating, so a long\n * name never widens the card or list it sits in. */\n wrap?: boolean;\n className?: string;\n}\n\nexport function IdentityCell({\n name,\n secondary,\n avatar = false,\n colorSlot,\n to,\n ariaLabel,\n linkComponent,\n inline = false,\n wrap = false,\n className,\n}: IdentityCellProps) {\n const LinkImpl = linkComponent ?? DefaultLink;\n const cls = [\n 'aegis-identity-cell',\n inline ? 'aegis-identity-cell--inline' : '',\n wrap ? 'aegis-identity-cell--wrap' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <span className={cls}>\n {avatar ? (\n <span className=\"aegis-identity-cell__avatar\" aria-hidden=\"true\">\n <Avatar name={name} size=\"sm\" colorSlot={colorSlot} />\n </span>\n ) : null}\n <span className=\"aegis-identity-cell__text\" title={name}>\n {to === undefined ? (\n <span className=\"aegis-identity-cell__name\">{name}</span>\n ) : (\n <LinkImpl\n to={to}\n className=\"aegis-identity-cell__name aegis-identity-cell__name--link\"\n aria-label={ariaLabel}\n >\n {name}\n </LinkImpl>\n )}\n {secondary ? (\n <span\n className=\"aegis-identity-cell__secondary\"\n title={typeof secondary === 'string' ? secondary : undefined}\n >\n {secondary}\n </span>\n ) : null}\n </span>\n </span>\n );\n}\n"],"names":["IdentityCell","name","secondary","avatar","colorSlot","to","ariaLabel","linkComponent","inline","wrap","className","LinkImpl","DefaultLink","cls","jsxs","jsx","Avatar"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"IdentityCell.js","sources":["../../../src/components/ui/IdentityCell.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { Avatar, type AvatarColorSlot } from './Avatar';\nimport './IdentityCell.css';\nimport { DefaultLink, type LinkComponent } from './linkComponent';\n\ninterface IdentityCellProps {\n /** Primary line, e.g. a model or task name. Truncates; the full name shows on hover. */\n name: string;\n /** Muted `--font-mono` line under the name for an id or path, e.g. `source / task`; a string shows in full on hover. */\n secondary?: ReactNode;\n /** Leads with an Avatar of the name's initials. */\n avatar?: boolean;\n /**\n * A mark before the name, outside the link, e.g. a StatusDot with its\n * label: it stays beside the name however the name truncates.\n */\n leading?: ReactNode;\n /** Avatar colour from the chart series colours, so it matches that series. */\n colorSlot?: AvatarColorSlot;\n /** Makes the name a link to this destination. */\n to?: string;\n /**\n * The link's accessible name when the name shown is short, e.g. \"Expand\n * trace\" for a link that shows \"Expand\".\n */\n ariaLabel?: string;\n /** Renders the link. Defaults to an `<a href>`; routed apps pass their Link adapter. */\n linkComponent?: LinkComponent;\n /** Puts the secondary text beside the name on one line. */\n inline?: boolean;\n /** Wraps the name and the secondary text, breaking anywhere, instead of truncating, so a long\n * name never widens the card or list it sits in. */\n wrap?: boolean;\n /** Sets the name in `--font-mono`, for an id, a key or a path. */\n mono?: boolean;\n /** `sm` sets the name in the small type role (or the mono role), for a bar or a muted line. */\n size?: 'md' | 'sm';\n /**\n * `link` inks a linked name in the link blue, for references listed in a\n * record's fields; `ink` (default) keeps the surrounding ink, for names in\n * rows and trees, where the row itself reads as the way in.\n */\n tone?: 'ink' | 'link';\n className?: string;\n}\n\nexport function IdentityCell({\n name,\n secondary,\n avatar = false,\n leading,\n colorSlot,\n to,\n ariaLabel,\n linkComponent,\n inline = false,\n wrap = false,\n mono = false,\n size = 'md',\n tone = 'ink',\n className,\n}: IdentityCellProps) {\n const LinkImpl = linkComponent ?? DefaultLink;\n const cls = [\n 'aegis-identity-cell',\n inline ? 'aegis-identity-cell--inline' : '',\n wrap ? 'aegis-identity-cell--wrap' : '',\n mono ? 'aegis-identity-cell--mono' : '',\n size === 'sm' ? 'aegis-identity-cell--sm' : '',\n tone === 'link' ? 'aegis-identity-cell--link-tone' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <span className={cls}>\n {avatar ? (\n <span className=\"aegis-identity-cell__avatar\" aria-hidden=\"true\">\n <Avatar name={name} size=\"sm\" colorSlot={colorSlot} />\n </span>\n ) : null}\n {leading === undefined ? null : (\n <span className=\"aegis-identity-cell__leading\">{leading}</span>\n )}\n <span className=\"aegis-identity-cell__text\" title={name}>\n {to === undefined ? (\n <span className=\"aegis-identity-cell__name\">{name}</span>\n ) : (\n <LinkImpl\n to={to}\n className=\"aegis-identity-cell__name aegis-identity-cell__name--link\"\n aria-label={ariaLabel}\n >\n {name}\n </LinkImpl>\n )}\n {secondary ? (\n <span\n className=\"aegis-identity-cell__secondary\"\n title={typeof secondary === 'string' ? secondary : undefined}\n >\n {secondary}\n </span>\n ) : null}\n </span>\n </span>\n );\n}\n"],"names":["IdentityCell","name","secondary","avatar","leading","colorSlot","to","ariaLabel","linkComponent","inline","wrap","mono","size","tone","className","LinkImpl","DefaultLink","cls","jsxs","jsx","Avatar"],"mappings":";;;;AA+CO,SAASA,EAAa;AAAA,EAC3B,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,IAAAC;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,MAAAC,IAAO;AAAA,EACP,MAAAC,IAAO;AAAA,EACP,MAAAC,IAAO;AAAA,EACP,MAAAC,IAAO;AAAA,EACP,WAAAC;AACF,GAAsB;AACpB,QAAMC,IAAWP,KAAiBQ,GAC5BC,IAAM;AAAA,IACV;AAAA,IACAR,IAAS,gCAAgC;AAAA,IACzCC,IAAO,8BAA8B;AAAA,IACrCC,IAAO,8BAA8B;AAAA,IACrCC,MAAS,OAAO,4BAA4B;AAAA,IAC5CC,MAAS,SAAS,mCAAmC;AAAA,IACrDC,KAAa;AAAA,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SACE,gBAAAI,EAAC,QAAA,EAAK,WAAWD,GACd,UAAA;AAAA,IAAAd,IACC,gBAAAgB,EAAC,QAAA,EAAK,WAAU,+BAA8B,eAAY,QACxD,UAAA,gBAAAA,EAACC,GAAA,EAAO,MAAAnB,GAAY,MAAK,MAAK,WAAAI,EAAA,CAAsB,GACtD,IACE;AAAA,IACHD,MAAY,SAAY,yBACtB,QAAA,EAAK,WAAU,gCAAgC,UAAAA,GAAQ;AAAA,IAE1D,gBAAAc,EAAC,QAAA,EAAK,WAAU,6BAA4B,OAAOjB,GAChD,UAAA;AAAA,MAAAK,MAAO,SACN,gBAAAa,EAAC,QAAA,EAAK,WAAU,6BAA6B,aAAK,IAElD,gBAAAA;AAAA,QAACJ;AAAA,QAAA;AAAA,UACC,IAAAT;AAAA,UACA,WAAU;AAAA,UACV,cAAYC;AAAA,UAEX,UAAAN;AAAA,QAAA;AAAA,MAAA;AAAA,MAGJC,IACC,gBAAAiB;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,OAAOjB,KAAc,WAAWA,IAAY;AAAA,UAElD,UAAAA;AAAA,QAAA;AAAA,MAAA,IAED;AAAA,IAAA,EAAA,CACN;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../hooks/useCopyToClipboard.cjs"),n=require("./CopyGlyph.cjs");;/* empty css */const d=require("./MetricLabel.cjs"),u=require("./MonoValue.cjs"),p=require("../../locale/useStrings.cjs");function m({text:l}){const{copied:s,copy:i}=r.useCopyToClipboard(1500),t=p.useStrings(),o=()=>{i(l)};return e.jsx("button",{type:"button",className:s?"aegis-metadata-list__copy aegis-metadata-list__copy--copied":"aegis-metadata-list__copy",onClick:o,"aria-label":t.copyToClipboard,title:s?t.copied:t.copy,children:e.jsx(n.CopyGlyph,{copied:s})})}function g({entries:l,wrap:s=!1,layout:i="rows",className:t}){const o=["aegis-metadata-list",s?"aegis-metadata-list--wrap":"",i==="rows"?"":`aegis-metadata-list--${i}`,t??""].filter(Boolean).join(" ");return e.jsx("dl",{className:o,children:l.map((a,c)=>e.jsxs("div",{className:"aegis-metadata-list__row",children:[e.jsx("dt",{className:"aegis-metadata-list__label",children:e.jsx(d.MetricLabel,{children:a.label})}),e.jsxs("dd",{className:"aegis-metadata-list__value",children:[a.mono?e.jsx(u.MonoValue,{size:"sm",wrap:s,children:a.value}):e.jsx("span",{className:"aegis-metadata-list__text",children:a.value}),a.copyable&&typeof a.value=="string"?e.jsx(m,{text:a.value}):null]})]},c))})}exports.MetadataList=g;
|
|
2
2
|
//# sourceMappingURL=MetadataList.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetadataList.cjs","sources":["../../../src/components/ui/MetadataList.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { useCopyToClipboard } from '../../hooks/useCopyToClipboard';\nimport { useStrings } from '../../locale';\nimport { CopyGlyph } from './CopyGlyph';\nimport './MetadataList.css';\nimport { MetricLabel } from './MetricLabel';\nimport { MonoValue } from './MonoValue';\n\nexport interface MetadataEntry {\n label: string;\n value: ReactNode;\n /** Render value in MonoValue instead of default text. */\n mono?: boolean;\n /** Show a hover copy-to-clipboard button on the value. */\n copyable?: boolean;\n}\n\nexport interface MetadataListProps {\n entries: MetadataEntry[];\n /**\n * Wrap long values onto further lines instead of cutting them off with an\n * ellipsis. Line breaks in a string value are kept, and mono values break\n * at any character.\n */\n wrap?: boolean;\n className?: string;\n}\n\nfunction CopyButton({ text }: { text: string }): ReactNode {\n const { copied, copy } = useCopyToClipboard(1500);\n const strings = useStrings();\n\n const handleCopy = (): void => {\n void copy(text);\n };\n\n return (\n <button\n type=\"button\"\n className={\n copied\n ? 'aegis-metadata-list__copy aegis-metadata-list__copy--copied'\n : 'aegis-metadata-list__copy'\n }\n onClick={handleCopy}\n aria-label={strings.copyToClipboard}\n title={copied ? strings.copied : strings.copy}\n >\n <CopyGlyph copied={copied} />\n </button>\n );\n}\n\nexport function MetadataList({\n entries,\n wrap = false,\n className,\n}: MetadataListProps) {\n const cls = [\n 'aegis-metadata-list',\n wrap ? 'aegis-metadata-list--wrap' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <dl className={cls}>\n {entries.map((entry, idx) => (\n <div key={idx} className=\"aegis-metadata-list__row\">\n <dt className=\"aegis-metadata-list__label\">\n <MetricLabel>{entry.label}</MetricLabel>\n </dt>\n <dd className=\"aegis-metadata-list__value\">\n {entry.mono ? (\n <MonoValue size=\"sm\" wrap={wrap}>\n {entry.value}\n </MonoValue>\n ) : (\n <span className=\"aegis-metadata-list__text\">{entry.value}</span>\n )}\n {entry.copyable && typeof entry.value === 'string' ? (\n <CopyButton text={entry.value} />\n ) : null}\n </dd>\n </div>\n ))}\n </dl>\n );\n}\n"],"names":["CopyButton","text","copied","copy","useCopyToClipboard","strings","useStrings","handleCopy","jsx","CopyGlyph","MetadataList","entries","wrap","className","cls","entry","idx","jsxs","MetricLabel","MonoValue"],"mappings":"+
|
|
1
|
+
{"version":3,"file":"MetadataList.cjs","sources":["../../../src/components/ui/MetadataList.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { useCopyToClipboard } from '../../hooks/useCopyToClipboard';\nimport { useStrings } from '../../locale';\nimport { CopyGlyph } from './CopyGlyph';\nimport './MetadataList.css';\nimport { MetricLabel } from './MetricLabel';\nimport { MonoValue } from './MonoValue';\n\nexport interface MetadataEntry {\n label: string;\n value: ReactNode;\n /** Render value in MonoValue instead of default text. */\n mono?: boolean;\n /** Show a hover copy-to-clipboard button on the value. */\n copyable?: boolean;\n}\n\nexport interface MetadataListProps {\n entries: MetadataEntry[];\n /**\n * Wrap long values onto further lines instead of cutting them off with an\n * ellipsis. Line breaks in a string value are kept, and mono values break\n * at any character.\n */\n wrap?: boolean;\n /**\n * `rows` (default) sets each entry on a row of its own, divided by\n * hairlines. `fields` sets them on rows without hairlines, the labels in\n * a narrow column and the values in the small type role, for a record's\n * fields in a side pane. `inline` sets them side by side, each label\n * before its value, wrapping as text, for a record's fields under its\n * title or in a bar.\n */\n layout?: 'rows' | 'fields' | 'inline';\n className?: string;\n}\n\nfunction CopyButton({ text }: { text: string }): ReactNode {\n const { copied, copy } = useCopyToClipboard(1500);\n const strings = useStrings();\n\n const handleCopy = (): void => {\n void copy(text);\n };\n\n return (\n <button\n type=\"button\"\n className={\n copied\n ? 'aegis-metadata-list__copy aegis-metadata-list__copy--copied'\n : 'aegis-metadata-list__copy'\n }\n onClick={handleCopy}\n aria-label={strings.copyToClipboard}\n title={copied ? strings.copied : strings.copy}\n >\n <CopyGlyph copied={copied} />\n </button>\n );\n}\n\nexport function MetadataList({\n entries,\n wrap = false,\n layout = 'rows',\n className,\n}: MetadataListProps) {\n const cls = [\n 'aegis-metadata-list',\n wrap ? 'aegis-metadata-list--wrap' : '',\n layout === 'rows' ? '' : `aegis-metadata-list--${layout}`,\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <dl className={cls}>\n {entries.map((entry, idx) => (\n <div key={idx} className=\"aegis-metadata-list__row\">\n <dt className=\"aegis-metadata-list__label\">\n <MetricLabel>{entry.label}</MetricLabel>\n </dt>\n <dd className=\"aegis-metadata-list__value\">\n {entry.mono ? (\n <MonoValue size=\"sm\" wrap={wrap}>\n {entry.value}\n </MonoValue>\n ) : (\n <span className=\"aegis-metadata-list__text\">{entry.value}</span>\n )}\n {entry.copyable && typeof entry.value === 'string' ? (\n <CopyButton text={entry.value} />\n ) : null}\n </dd>\n </div>\n ))}\n </dl>\n );\n}\n"],"names":["CopyButton","text","copied","copy","useCopyToClipboard","strings","useStrings","handleCopy","jsx","CopyGlyph","MetadataList","entries","wrap","layout","className","cls","entry","idx","jsxs","MetricLabel","MonoValue"],"mappings":"+UAsCA,SAASA,EAAW,CAAE,KAAAC,GAAqC,CACzD,KAAM,CAAE,OAAAC,EAAQ,KAAAC,GAASC,EAAAA,mBAAmB,IAAI,EAC1CC,EAAUC,EAAAA,WAAA,EAEVC,EAAa,IAAY,CACxBJ,EAAKF,CAAI,CAChB,EAEA,OACEO,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UACEN,EACI,8DACA,4BAEN,QAASK,EACT,aAAYF,EAAQ,gBACpB,MAAOH,EAASG,EAAQ,OAASA,EAAQ,KAEzC,SAAAG,EAAAA,IAACC,aAAU,OAAAP,CAAA,CAAgB,CAAA,CAAA,CAGjC,CAEO,SAASQ,EAAa,CAC3B,QAAAC,EACA,KAAAC,EAAO,GACP,OAAAC,EAAS,OACT,UAAAC,CACF,EAAsB,CACpB,MAAMC,EAAM,CACV,sBACAH,EAAO,4BAA8B,GACrCC,IAAW,OAAS,GAAK,wBAAwBA,CAAM,GACvDC,GAAa,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,OACEN,EAAAA,IAAC,KAAA,CAAG,UAAWO,EACZ,SAAAJ,EAAQ,IAAI,CAACK,EAAOC,IACnBC,OAAC,MAAA,CAAc,UAAU,2BACvB,SAAA,CAAAV,EAAAA,IAAC,MAAG,UAAU,6BACZ,eAACW,EAAAA,YAAA,CAAa,SAAAH,EAAM,MAAM,CAAA,CAC5B,EACAE,EAAAA,KAAC,KAAA,CAAG,UAAU,6BACX,SAAA,CAAAF,EAAM,KACLR,EAAAA,IAACY,EAAAA,UAAA,CAAU,KAAK,KAAK,KAAAR,EAClB,SAAAI,EAAM,KAAA,CACT,EAEAR,EAAAA,IAAC,OAAA,CAAK,UAAU,4BAA6B,WAAM,MAAM,EAE1DQ,EAAM,UAAY,OAAOA,EAAM,OAAU,SACxCR,MAACR,EAAA,CAAW,KAAMgB,EAAM,KAAA,CAAO,EAC7B,IAAA,CAAA,CACN,CAAA,GAfQC,CAgBV,CACD,EACH,CAEJ"}
|
|
@@ -15,6 +15,15 @@ export interface MetadataListProps {
|
|
|
15
15
|
* at any character.
|
|
16
16
|
*/
|
|
17
17
|
wrap?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* `rows` (default) sets each entry on a row of its own, divided by
|
|
20
|
+
* hairlines. `fields` sets them on rows without hairlines, the labels in
|
|
21
|
+
* a narrow column and the values in the small type role, for a record's
|
|
22
|
+
* fields in a side pane. `inline` sets them side by side, each label
|
|
23
|
+
* before its value, wrapping as text, for a record's fields under its
|
|
24
|
+
* title or in a bar.
|
|
25
|
+
*/
|
|
26
|
+
layout?: 'rows' | 'fields' | 'inline';
|
|
18
27
|
className?: string;
|
|
19
28
|
}
|
|
20
|
-
export declare function MetadataList({ entries, wrap, className, }: MetadataListProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function MetadataList({ entries, wrap, layout, className, }: MetadataListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useCopyToClipboard as
|
|
3
|
-
import { CopyGlyph as
|
|
1
|
+
import { jsx as a, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useCopyToClipboard as m } from "../../hooks/useCopyToClipboard.js";
|
|
3
|
+
import { CopyGlyph as r } from "./CopyGlyph.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { MetricLabel as p } from "./MetricLabel.js";
|
|
6
|
-
import { MonoValue as
|
|
7
|
-
import { useStrings as
|
|
8
|
-
function
|
|
9
|
-
const { copied: e, copy:
|
|
10
|
-
return /* @__PURE__ */
|
|
6
|
+
import { MonoValue as n } from "./MonoValue.js";
|
|
7
|
+
import { useStrings as u } from "../../locale/useStrings.js";
|
|
8
|
+
function _({ text: s }) {
|
|
9
|
+
const { copied: e, copy: o } = m(1500), i = u();
|
|
10
|
+
return /* @__PURE__ */ a(
|
|
11
11
|
"button",
|
|
12
12
|
{
|
|
13
13
|
type: "button",
|
|
14
14
|
className: e ? "aegis-metadata-list__copy aegis-metadata-list__copy--copied" : "aegis-metadata-list__copy",
|
|
15
15
|
onClick: () => {
|
|
16
|
-
|
|
16
|
+
o(s);
|
|
17
17
|
},
|
|
18
18
|
"aria-label": i.copyToClipboard,
|
|
19
19
|
title: e ? i.copied : i.copy,
|
|
20
|
-
children: /* @__PURE__ */
|
|
20
|
+
children: /* @__PURE__ */ a(r, { copied: e })
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
entries:
|
|
24
|
+
function N({
|
|
25
|
+
entries: s,
|
|
26
26
|
wrap: e = !1,
|
|
27
|
-
|
|
27
|
+
layout: o = "rows",
|
|
28
|
+
className: i
|
|
28
29
|
}) {
|
|
29
|
-
const
|
|
30
|
+
const l = [
|
|
30
31
|
"aegis-metadata-list",
|
|
31
32
|
e ? "aegis-metadata-list--wrap" : "",
|
|
32
|
-
|
|
33
|
+
o === "rows" ? "" : `aegis-metadata-list--${o}`,
|
|
34
|
+
i ?? ""
|
|
33
35
|
].filter(Boolean).join(" ");
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
return /* @__PURE__ */ a("dl", { className: l, children: s.map((t, d) => /* @__PURE__ */ c("div", { className: "aegis-metadata-list__row", children: [
|
|
37
|
+
/* @__PURE__ */ a("dt", { className: "aegis-metadata-list__label", children: /* @__PURE__ */ a(p, { children: t.label }) }),
|
|
38
|
+
/* @__PURE__ */ c("dd", { className: "aegis-metadata-list__value", children: [
|
|
39
|
+
t.mono ? /* @__PURE__ */ a(n, { size: "sm", wrap: e, children: t.value }) : /* @__PURE__ */ a("span", { className: "aegis-metadata-list__text", children: t.value }),
|
|
40
|
+
t.copyable && typeof t.value == "string" ? /* @__PURE__ */ a(_, { text: t.value }) : null
|
|
39
41
|
] })
|
|
40
|
-
] },
|
|
42
|
+
] }, d)) });
|
|
41
43
|
}
|
|
42
44
|
export {
|
|
43
|
-
|
|
45
|
+
N as MetadataList
|
|
44
46
|
};
|
|
45
47
|
//# sourceMappingURL=MetadataList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetadataList.js","sources":["../../../src/components/ui/MetadataList.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { useCopyToClipboard } from '../../hooks/useCopyToClipboard';\nimport { useStrings } from '../../locale';\nimport { CopyGlyph } from './CopyGlyph';\nimport './MetadataList.css';\nimport { MetricLabel } from './MetricLabel';\nimport { MonoValue } from './MonoValue';\n\nexport interface MetadataEntry {\n label: string;\n value: ReactNode;\n /** Render value in MonoValue instead of default text. */\n mono?: boolean;\n /** Show a hover copy-to-clipboard button on the value. */\n copyable?: boolean;\n}\n\nexport interface MetadataListProps {\n entries: MetadataEntry[];\n /**\n * Wrap long values onto further lines instead of cutting them off with an\n * ellipsis. Line breaks in a string value are kept, and mono values break\n * at any character.\n */\n wrap?: boolean;\n className?: string;\n}\n\nfunction CopyButton({ text }: { text: string }): ReactNode {\n const { copied, copy } = useCopyToClipboard(1500);\n const strings = useStrings();\n\n const handleCopy = (): void => {\n void copy(text);\n };\n\n return (\n <button\n type=\"button\"\n className={\n copied\n ? 'aegis-metadata-list__copy aegis-metadata-list__copy--copied'\n : 'aegis-metadata-list__copy'\n }\n onClick={handleCopy}\n aria-label={strings.copyToClipboard}\n title={copied ? strings.copied : strings.copy}\n >\n <CopyGlyph copied={copied} />\n </button>\n );\n}\n\nexport function MetadataList({\n entries,\n wrap = false,\n className,\n}: MetadataListProps) {\n const cls = [\n 'aegis-metadata-list',\n wrap ? 'aegis-metadata-list--wrap' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <dl className={cls}>\n {entries.map((entry, idx) => (\n <div key={idx} className=\"aegis-metadata-list__row\">\n <dt className=\"aegis-metadata-list__label\">\n <MetricLabel>{entry.label}</MetricLabel>\n </dt>\n <dd className=\"aegis-metadata-list__value\">\n {entry.mono ? (\n <MonoValue size=\"sm\" wrap={wrap}>\n {entry.value}\n </MonoValue>\n ) : (\n <span className=\"aegis-metadata-list__text\">{entry.value}</span>\n )}\n {entry.copyable && typeof entry.value === 'string' ? (\n <CopyButton text={entry.value} />\n ) : null}\n </dd>\n </div>\n ))}\n </dl>\n );\n}\n"],"names":["CopyButton","text","copied","copy","useCopyToClipboard","strings","useStrings","jsx","CopyGlyph","MetadataList","entries","wrap","className","cls","entry","idx","jsxs","MetricLabel","MonoValue"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"MetadataList.js","sources":["../../../src/components/ui/MetadataList.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { useCopyToClipboard } from '../../hooks/useCopyToClipboard';\nimport { useStrings } from '../../locale';\nimport { CopyGlyph } from './CopyGlyph';\nimport './MetadataList.css';\nimport { MetricLabel } from './MetricLabel';\nimport { MonoValue } from './MonoValue';\n\nexport interface MetadataEntry {\n label: string;\n value: ReactNode;\n /** Render value in MonoValue instead of default text. */\n mono?: boolean;\n /** Show a hover copy-to-clipboard button on the value. */\n copyable?: boolean;\n}\n\nexport interface MetadataListProps {\n entries: MetadataEntry[];\n /**\n * Wrap long values onto further lines instead of cutting them off with an\n * ellipsis. Line breaks in a string value are kept, and mono values break\n * at any character.\n */\n wrap?: boolean;\n /**\n * `rows` (default) sets each entry on a row of its own, divided by\n * hairlines. `fields` sets them on rows without hairlines, the labels in\n * a narrow column and the values in the small type role, for a record's\n * fields in a side pane. `inline` sets them side by side, each label\n * before its value, wrapping as text, for a record's fields under its\n * title or in a bar.\n */\n layout?: 'rows' | 'fields' | 'inline';\n className?: string;\n}\n\nfunction CopyButton({ text }: { text: string }): ReactNode {\n const { copied, copy } = useCopyToClipboard(1500);\n const strings = useStrings();\n\n const handleCopy = (): void => {\n void copy(text);\n };\n\n return (\n <button\n type=\"button\"\n className={\n copied\n ? 'aegis-metadata-list__copy aegis-metadata-list__copy--copied'\n : 'aegis-metadata-list__copy'\n }\n onClick={handleCopy}\n aria-label={strings.copyToClipboard}\n title={copied ? strings.copied : strings.copy}\n >\n <CopyGlyph copied={copied} />\n </button>\n );\n}\n\nexport function MetadataList({\n entries,\n wrap = false,\n layout = 'rows',\n className,\n}: MetadataListProps) {\n const cls = [\n 'aegis-metadata-list',\n wrap ? 'aegis-metadata-list--wrap' : '',\n layout === 'rows' ? '' : `aegis-metadata-list--${layout}`,\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <dl className={cls}>\n {entries.map((entry, idx) => (\n <div key={idx} className=\"aegis-metadata-list__row\">\n <dt className=\"aegis-metadata-list__label\">\n <MetricLabel>{entry.label}</MetricLabel>\n </dt>\n <dd className=\"aegis-metadata-list__value\">\n {entry.mono ? (\n <MonoValue size=\"sm\" wrap={wrap}>\n {entry.value}\n </MonoValue>\n ) : (\n <span className=\"aegis-metadata-list__text\">{entry.value}</span>\n )}\n {entry.copyable && typeof entry.value === 'string' ? (\n <CopyButton text={entry.value} />\n ) : null}\n </dd>\n </div>\n ))}\n </dl>\n );\n}\n"],"names":["CopyButton","text","copied","copy","useCopyToClipboard","strings","useStrings","jsx","CopyGlyph","MetadataList","entries","wrap","layout","className","cls","entry","idx","jsxs","MetricLabel","MonoValue"],"mappings":";;;;;;;AAsCA,SAASA,EAAW,EAAE,MAAAC,KAAqC;AACzD,QAAM,EAAE,QAAAC,GAAQ,MAAAC,MAASC,EAAmB,IAAI,GAC1CC,IAAUC,EAAA;AAMhB,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WACEL,IACI,gEACA;AAAA,MAEN,SAZe,MAAY;AAC7B,QAAKC,EAAKF,CAAI;AAAA,MAChB;AAAA,MAWI,cAAYI,EAAQ;AAAA,MACpB,OAAOH,IAASG,EAAQ,SAASA,EAAQ;AAAA,MAEzC,UAAA,gBAAAE,EAACC,KAAU,QAAAN,EAAA,CAAgB;AAAA,IAAA;AAAA,EAAA;AAGjC;AAEO,SAASO,EAAa;AAAA,EAC3B,SAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,QAAAC,IAAS;AAAA,EACT,WAAAC;AACF,GAAsB;AACpB,QAAMC,IAAM;AAAA,IACV;AAAA,IACAH,IAAO,8BAA8B;AAAA,IACrCC,MAAW,SAAS,KAAK,wBAAwBA,CAAM;AAAA,IACvDC,KAAa;AAAA,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SACE,gBAAAN,EAAC,MAAA,EAAG,WAAWO,GACZ,UAAAJ,EAAQ,IAAI,CAACK,GAAOC,MACnB,gBAAAC,EAAC,OAAA,EAAc,WAAU,4BACvB,UAAA;AAAA,IAAA,gBAAAV,EAAC,QAAG,WAAU,8BACZ,4BAACW,GAAA,EAAa,UAAAH,EAAM,OAAM,EAAA,CAC5B;AAAA,IACA,gBAAAE,EAAC,MAAA,EAAG,WAAU,8BACX,UAAA;AAAA,MAAAF,EAAM,OACL,gBAAAR,EAACY,GAAA,EAAU,MAAK,MAAK,MAAAR,GAClB,UAAAI,EAAM,MAAA,CACT,IAEA,gBAAAR,EAAC,QAAA,EAAK,WAAU,6BAA6B,YAAM,OAAM;AAAA,MAE1DQ,EAAM,YAAY,OAAOA,EAAM,SAAU,WACxC,gBAAAR,EAACP,GAAA,EAAW,MAAMe,EAAM,MAAA,CAAO,IAC7B;AAAA,IAAA,EAAA,CACN;AAAA,EAAA,KAfQC,CAgBV,CACD,GACH;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */function a({children:d,extra:i,rule:r=!0,variant:s="meta",className:n}){const t=["aegis-section-divider",r?"aegis-section-divider--ruled":"",s==="meta"?"":`aegis-section-divider--${s}`,n??""].filter(Boolean).join(" ");return e.jsx("div",{className:t,children:e.jsxs("div",{className:"aegis-section-divider__head",children:[e.jsx("span",{className:"aegis-section-divider__label",children:d}),i&&e.jsx("span",{className:"aegis-section-divider__extra",children:i})]})})}exports.SectionDivider=a;
|
|
2
2
|
//# sourceMappingURL=SectionDivider.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionDivider.cjs","sources":["../../../src/components/ui/SectionDivider.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport './SectionDivider.css';\n\ninterface SectionDividerProps {\n /** Uppercase tracked label. */\n children: ReactNode;\n /** Right-aligned content (chip / link / mono value). */\n extra?: ReactNode;\n /** Render the hairline rule below the label. */\n rule?: boolean;\n /**\n * `meta` is the uppercase tracked micro label. `group` names a group of\n * fields or rows inside a pane in the label type role, in sentence case,\n * e.g. 原文 or 验证记录 with its count as the extra.\n */\n variant?: 'meta' | 'group';\n className?: string;\n}\n\nexport function SectionDivider({\n children,\n extra,\n rule = true,\n variant = 'meta',\n className,\n}: SectionDividerProps) {\n const cls = [\n 'aegis-section-divider',\n rule ? 'aegis-section-divider--ruled' : '',\n variant === '
|
|
1
|
+
{"version":3,"file":"SectionDivider.cjs","sources":["../../../src/components/ui/SectionDivider.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport './SectionDivider.css';\n\ninterface SectionDividerProps {\n /** Uppercase tracked label. */\n children: ReactNode;\n /** Right-aligned content (chip / link / mono value). */\n extra?: ReactNode;\n /** Render the hairline rule below the label. */\n rule?: boolean;\n /**\n * `meta` is the uppercase tracked micro label. `group` names a group of\n * fields or rows inside a pane in the label type role, in sentence case,\n * e.g. 原文 or 验证记录 with its count as the extra. `title` heads a\n * pane's record in the heading type role and the main ink, e.g. a selected\n * area's name with its state as the extra.\n */\n variant?: 'meta' | 'group' | 'title';\n className?: string;\n}\n\nexport function SectionDivider({\n children,\n extra,\n rule = true,\n variant = 'meta',\n className,\n}: SectionDividerProps) {\n const cls = [\n 'aegis-section-divider',\n rule ? 'aegis-section-divider--ruled' : '',\n variant === 'meta' ? '' : `aegis-section-divider--${variant}`,\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={cls}>\n <div className=\"aegis-section-divider__head\">\n <span className=\"aegis-section-divider__label\">{children}</span>\n {extra && <span className=\"aegis-section-divider__extra\">{extra}</span>}\n </div>\n </div>\n );\n}\n"],"names":["SectionDivider","children","extra","rule","variant","className","cls","jsxs","jsx"],"mappings":"yJAsBO,SAASA,EAAe,CAC7B,SAAAC,EACA,MAAAC,EACA,KAAAC,EAAO,GACP,QAAAC,EAAU,OACV,UAAAC,CACF,EAAwB,CACtB,MAAMC,EAAM,CACV,wBACAH,EAAO,+BAAiC,GACxCC,IAAY,OAAS,GAAK,0BAA0BA,CAAO,GAC3DC,GAAa,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,aACG,MAAA,CAAI,UAAWC,EACd,SAAAC,EAAAA,KAAC,MAAA,CAAI,UAAU,8BACb,SAAA,CAAAC,EAAAA,IAAC,OAAA,CAAK,UAAU,+BAAgC,SAAAP,CAAA,CAAS,EACxDC,GAASM,EAAAA,IAAC,OAAA,CAAK,UAAU,+BAAgC,SAAAN,CAAA,CAAM,CAAA,CAAA,CAClE,CAAA,CACF,CAEJ"}
|
|
@@ -9,9 +9,11 @@ interface SectionDividerProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* `meta` is the uppercase tracked micro label. `group` names a group of
|
|
11
11
|
* fields or rows inside a pane in the label type role, in sentence case,
|
|
12
|
-
* e.g. 原文 or 验证记录 with its count as the extra.
|
|
12
|
+
* e.g. 原文 or 验证记录 with its count as the extra. `title` heads a
|
|
13
|
+
* pane's record in the heading type role and the main ink, e.g. a selected
|
|
14
|
+
* area's name with its state as the extra.
|
|
13
15
|
*/
|
|
14
|
-
variant?: 'meta' | 'group';
|
|
16
|
+
variant?: 'meta' | 'group' | 'title';
|
|
15
17
|
className?: string;
|
|
16
18
|
}
|
|
17
19
|
export declare function SectionDivider({ children, extra, rule, variant, className, }: SectionDividerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
/* empty css */
|
|
3
3
|
function l({
|
|
4
|
-
children:
|
|
5
|
-
extra:
|
|
6
|
-
rule:
|
|
7
|
-
variant:
|
|
8
|
-
className:
|
|
4
|
+
children: d,
|
|
5
|
+
extra: i,
|
|
6
|
+
rule: a = !0,
|
|
7
|
+
variant: s = "meta",
|
|
8
|
+
className: r
|
|
9
9
|
}) {
|
|
10
|
-
const
|
|
10
|
+
const c = [
|
|
11
11
|
"aegis-section-divider",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
a ? "aegis-section-divider--ruled" : "",
|
|
13
|
+
s === "meta" ? "" : `aegis-section-divider--${s}`,
|
|
14
|
+
r ?? ""
|
|
15
15
|
].filter(Boolean).join(" ");
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
16
|
+
return /* @__PURE__ */ e("div", { className: c, children: /* @__PURE__ */ n("div", { className: "aegis-section-divider__head", children: [
|
|
17
|
+
/* @__PURE__ */ e("span", { className: "aegis-section-divider__label", children: d }),
|
|
18
|
+
i && /* @__PURE__ */ e("span", { className: "aegis-section-divider__extra", children: i })
|
|
19
19
|
] }) });
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionDivider.js","sources":["../../../src/components/ui/SectionDivider.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport './SectionDivider.css';\n\ninterface SectionDividerProps {\n /** Uppercase tracked label. */\n children: ReactNode;\n /** Right-aligned content (chip / link / mono value). */\n extra?: ReactNode;\n /** Render the hairline rule below the label. */\n rule?: boolean;\n /**\n * `meta` is the uppercase tracked micro label. `group` names a group of\n * fields or rows inside a pane in the label type role, in sentence case,\n * e.g. 原文 or 验证记录 with its count as the extra.\n */\n variant?: 'meta' | 'group';\n className?: string;\n}\n\nexport function SectionDivider({\n children,\n extra,\n rule = true,\n variant = 'meta',\n className,\n}: SectionDividerProps) {\n const cls = [\n 'aegis-section-divider',\n rule ? 'aegis-section-divider--ruled' : '',\n variant === '
|
|
1
|
+
{"version":3,"file":"SectionDivider.js","sources":["../../../src/components/ui/SectionDivider.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport './SectionDivider.css';\n\ninterface SectionDividerProps {\n /** Uppercase tracked label. */\n children: ReactNode;\n /** Right-aligned content (chip / link / mono value). */\n extra?: ReactNode;\n /** Render the hairline rule below the label. */\n rule?: boolean;\n /**\n * `meta` is the uppercase tracked micro label. `group` names a group of\n * fields or rows inside a pane in the label type role, in sentence case,\n * e.g. 原文 or 验证记录 with its count as the extra. `title` heads a\n * pane's record in the heading type role and the main ink, e.g. a selected\n * area's name with its state as the extra.\n */\n variant?: 'meta' | 'group' | 'title';\n className?: string;\n}\n\nexport function SectionDivider({\n children,\n extra,\n rule = true,\n variant = 'meta',\n className,\n}: SectionDividerProps) {\n const cls = [\n 'aegis-section-divider',\n rule ? 'aegis-section-divider--ruled' : '',\n variant === 'meta' ? '' : `aegis-section-divider--${variant}`,\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={cls}>\n <div className=\"aegis-section-divider__head\">\n <span className=\"aegis-section-divider__label\">{children}</span>\n {extra && <span className=\"aegis-section-divider__extra\">{extra}</span>}\n </div>\n </div>\n );\n}\n"],"names":["SectionDivider","children","extra","rule","variant","className","cls","jsxs","jsx"],"mappings":";;AAsBO,SAASA,EAAe;AAAA,EAC7B,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,SAAAC,IAAU;AAAA,EACV,WAAAC;AACF,GAAwB;AACtB,QAAMC,IAAM;AAAA,IACV;AAAA,IACAH,IAAO,iCAAiC;AAAA,IACxCC,MAAY,SAAS,KAAK,0BAA0BA,CAAO;AAAA,IAC3DC,KAAa;AAAA,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,2BACG,OAAA,EAAI,WAAWC,GACd,UAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,+BACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,QAAA,EAAK,WAAU,gCAAgC,UAAAP,EAAA,CAAS;AAAA,IACxDC,KAAS,gBAAAM,EAAC,QAAA,EAAK,WAAU,gCAAgC,UAAAN,EAAA,CAAM;AAAA,EAAA,EAAA,CAClE,EAAA,CACF;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime");;/* empty css */function i({groups:a,className:n}){const t=["aegis-segment-bar",n??""].filter(Boolean).join(" ");return s.jsx("span",{className:t,children:a.map(e=>s.jsxs("span",{className:"aegis-segment-bar__group",children:[Array.from({length:e.count},(l,r)=>s.jsx("span",{className:`aegis-segment-bar__segment aegis-segment-bar__segment--${e.tone}`,"aria-hidden":"true"},r)),s.jsx("span",{className:"aegis-segment-bar__label",children:e.label})]},e.key))})}exports.SegmentBar=i;
|
|
2
|
+
//# sourceMappingURL=SegmentBar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentBar.cjs","sources":["../../../src/components/ui/SegmentBar.tsx"],"sourcesContent":["import './SegmentBar.css';\n\nexport interface SegmentBarGroup {\n key: string;\n /**\n * `success` for passed, `warning` (the anomaly red) for failed,\n * `caution` for what needs attention, `info` for what is in progress,\n * `muted` for what has not started.\n */\n tone: 'success' | 'warning' | 'caution' | 'info' | 'muted';\n /** How many segments the group draws, one per item. */\n count: number;\n /** The group as text, e.g. 通过 2: read, not drawn. */\n label: string;\n}\n\ninterface SegmentBarProps {\n /** The groups, drawn left to right in this order. */\n groups: SegmentBarGroup[];\n className?: string;\n}\n\n/**\n * A row of short bars, one per item, coloured by each item's state: the\n * progress of a few items at a glance, e.g. a run's areas. Each group's\n * label is text that assistive technology and a page's text read, in\n * order, so colour is never the only signal.\n */\nexport function SegmentBar({ groups, className }: SegmentBarProps) {\n const cls = ['aegis-segment-bar', className ?? ''].filter(Boolean).join(' ');\n return (\n <span className={cls}>\n {groups.map((group) => (\n <span key={group.key} className=\"aegis-segment-bar__group\">\n {Array.from({ length: group.count }, (_, index) => (\n <span\n key={index}\n className={`aegis-segment-bar__segment aegis-segment-bar__segment--${group.tone}`}\n aria-hidden=\"true\"\n />\n ))}\n <span className=\"aegis-segment-bar__label\">{group.label}</span>\n </span>\n ))}\n </span>\n );\n}\n"],"names":["SegmentBar","groups","className","cls","jsx","group","jsxs","_","index"],"mappings":"qJA4BO,SAASA,EAAW,CAAE,OAAAC,EAAQ,UAAAC,GAA8B,CACjE,MAAMC,EAAM,CAAC,oBAAqBD,GAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAC3E,OACEE,EAAAA,IAAC,OAAA,CAAK,UAAWD,EACd,SAAAF,EAAO,IAAKI,GACXC,EAAAA,KAAC,OAAA,CAAqB,UAAU,2BAC7B,SAAA,CAAA,MAAM,KAAK,CAAE,OAAQD,EAAM,OAAS,CAACE,EAAGC,IACvCJ,EAAAA,IAAC,OAAA,CAEC,UAAW,0DAA0DC,EAAM,IAAI,GAC/E,cAAY,MAAA,EAFPG,CAAA,CAIR,EACDJ,EAAAA,IAAC,OAAA,CAAK,UAAU,2BAA4B,WAAM,KAAA,CAAM,CAAA,CAAA,EAR/CC,EAAM,GASjB,CACD,EACH,CAEJ"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface SegmentBarGroup {
|
|
2
|
+
key: string;
|
|
3
|
+
/**
|
|
4
|
+
* `success` for passed, `warning` (the anomaly red) for failed,
|
|
5
|
+
* `caution` for what needs attention, `info` for what is in progress,
|
|
6
|
+
* `muted` for what has not started.
|
|
7
|
+
*/
|
|
8
|
+
tone: 'success' | 'warning' | 'caution' | 'info' | 'muted';
|
|
9
|
+
/** How many segments the group draws, one per item. */
|
|
10
|
+
count: number;
|
|
11
|
+
/** The group as text, e.g. 通过 2: read, not drawn. */
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
interface SegmentBarProps {
|
|
15
|
+
/** The groups, drawn left to right in this order. */
|
|
16
|
+
groups: SegmentBarGroup[];
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A row of short bars, one per item, coloured by each item's state: the
|
|
21
|
+
* progress of a few items at a glance, e.g. a run's areas. Each group's
|
|
22
|
+
* label is text that assistive technology and a page's text read, in
|
|
23
|
+
* order, so colour is never the only signal.
|
|
24
|
+
*/
|
|
25
|
+
export declare function SegmentBar({ groups, className }: SegmentBarProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function c({ groups: s, className: n }) {
|
|
4
|
+
const r = ["aegis-segment-bar", n ?? ""].filter(Boolean).join(" ");
|
|
5
|
+
return /* @__PURE__ */ a("span", { className: r, children: s.map((e) => /* @__PURE__ */ m("span", { className: "aegis-segment-bar__group", children: [
|
|
6
|
+
Array.from({ length: e.count }, (i, t) => /* @__PURE__ */ a(
|
|
7
|
+
"span",
|
|
8
|
+
{
|
|
9
|
+
className: `aegis-segment-bar__segment aegis-segment-bar__segment--${e.tone}`,
|
|
10
|
+
"aria-hidden": "true"
|
|
11
|
+
},
|
|
12
|
+
t
|
|
13
|
+
)),
|
|
14
|
+
/* @__PURE__ */ a("span", { className: "aegis-segment-bar__label", children: e.label })
|
|
15
|
+
] }, e.key)) });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
c as SegmentBar
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=SegmentBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentBar.js","sources":["../../../src/components/ui/SegmentBar.tsx"],"sourcesContent":["import './SegmentBar.css';\n\nexport interface SegmentBarGroup {\n key: string;\n /**\n * `success` for passed, `warning` (the anomaly red) for failed,\n * `caution` for what needs attention, `info` for what is in progress,\n * `muted` for what has not started.\n */\n tone: 'success' | 'warning' | 'caution' | 'info' | 'muted';\n /** How many segments the group draws, one per item. */\n count: number;\n /** The group as text, e.g. 通过 2: read, not drawn. */\n label: string;\n}\n\ninterface SegmentBarProps {\n /** The groups, drawn left to right in this order. */\n groups: SegmentBarGroup[];\n className?: string;\n}\n\n/**\n * A row of short bars, one per item, coloured by each item's state: the\n * progress of a few items at a glance, e.g. a run's areas. Each group's\n * label is text that assistive technology and a page's text read, in\n * order, so colour is never the only signal.\n */\nexport function SegmentBar({ groups, className }: SegmentBarProps) {\n const cls = ['aegis-segment-bar', className ?? ''].filter(Boolean).join(' ');\n return (\n <span className={cls}>\n {groups.map((group) => (\n <span key={group.key} className=\"aegis-segment-bar__group\">\n {Array.from({ length: group.count }, (_, index) => (\n <span\n key={index}\n className={`aegis-segment-bar__segment aegis-segment-bar__segment--${group.tone}`}\n aria-hidden=\"true\"\n />\n ))}\n <span className=\"aegis-segment-bar__label\">{group.label}</span>\n </span>\n ))}\n </span>\n );\n}\n"],"names":["SegmentBar","groups","className","cls","jsx","group","jsxs","_","index"],"mappings":";;AA4BO,SAASA,EAAW,EAAE,QAAAC,GAAQ,WAAAC,KAA8B;AACjE,QAAMC,IAAM,CAAC,qBAAqBD,KAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAC3E,SACE,gBAAAE,EAAC,QAAA,EAAK,WAAWD,GACd,UAAAF,EAAO,IAAI,CAACI,MACX,gBAAAC,EAAC,QAAA,EAAqB,WAAU,4BAC7B,UAAA;AAAA,IAAA,MAAM,KAAK,EAAE,QAAQD,EAAM,SAAS,CAACE,GAAGC,MACvC,gBAAAJ;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAW,0DAA0DC,EAAM,IAAI;AAAA,QAC/E,eAAY;AAAA,MAAA;AAAA,MAFPG;AAAA,IAAA,CAIR;AAAA,IACD,gBAAAJ,EAAC,QAAA,EAAK,WAAU,4BAA4B,YAAM,MAAA,CAAM;AAAA,EAAA,EAAA,GAR/CC,EAAM,GASjB,CACD,GACH;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime");;/* empty css */function d({pulse:i=!1,tone:o="ink",size:t,label:e,className:l}){const n=["aegis-status-dot",`aegis-status-dot--${o}`,i?"aegis-status-dot--pulse":"",l??""].filter(Boolean).join(" "),a=s.jsx("span",{className:n,style:t===void 0?void 0:{width:t,height:t},"aria-hidden":"true"});return e===void 0?a:s.jsxs("span",{className:"aegis-status-dot-labelled",children:[a,s.jsx("span",{className:"aegis-status-dot-labelled__label",children:e})]})}exports.StatusDot=d;
|
|
2
2
|
//# sourceMappingURL=StatusDot.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusDot.cjs","sources":["../../../src/components/ui/StatusDot.tsx"],"sourcesContent":["import './StatusDot.css';\n\ninterface StatusDotProps {\n pulse?: boolean;\n /**\n * Fill colour. `warning` is the anomaly red, for failures only; `caution`\n * is `--ink-warn`, for what needs attention but has not failed; `info`\n * is the link blue, for what is current or in progress.\n */\n tone?:\n | 'ink'\n | 'inverted'\n | 'warning'\n | 'caution'\n | 'info'\n | 'muted'\n | 'success';\n size?: number;\n className?: string;\n}\n\nexport function StatusDot({\n pulse = false,\n tone = 'ink',\n size
|
|
1
|
+
{"version":3,"file":"StatusDot.cjs","sources":["../../../src/components/ui/StatusDot.tsx"],"sourcesContent":["import './StatusDot.css';\n\ninterface StatusDotProps {\n pulse?: boolean;\n /**\n * Fill colour. `warning` is the anomaly red, for failures only; `caution`\n * is `--ink-warn`, for what needs attention but has not failed; `info`\n * is the link blue, for what is current or in progress.\n */\n tone?:\n | 'ink'\n | 'inverted'\n | 'warning'\n | 'caution'\n | 'info'\n | 'muted'\n | 'success';\n /** Diameter in px; defaults to `--status-dot-size`. */\n size?: number;\n /**\n * The state the dot stands for, as text that assistive technology and a\n * page's text read but that is not drawn, for a dot shown without its\n * word, e.g. in a row of dots or beside an event.\n */\n label?: string;\n className?: string;\n}\n\nexport function StatusDot({\n pulse = false,\n tone = 'ink',\n size,\n label,\n className,\n}: StatusDotProps) {\n const cls = [\n 'aegis-status-dot',\n `aegis-status-dot--${tone}`,\n pulse ? 'aegis-status-dot--pulse' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n const dot = (\n <span\n className={cls}\n style={size === undefined ? undefined : { width: size, height: size }}\n aria-hidden=\"true\"\n />\n );\n if (label === undefined) {\n return dot;\n }\n return (\n <span className=\"aegis-status-dot-labelled\">\n {dot}\n <span className=\"aegis-status-dot-labelled__label\">{label}</span>\n </span>\n );\n}\n"],"names":["StatusDot","pulse","tone","size","label","className","cls","dot","jsx","jsxs"],"mappings":"oJA4BO,SAASA,EAAU,CACxB,MAAAC,EAAQ,GACR,KAAAC,EAAO,MACP,KAAAC,EACA,MAAAC,EACA,UAAAC,CACF,EAAmB,CACjB,MAAMC,EAAM,CACV,mBACA,qBAAqBJ,CAAI,GACzBD,EAAQ,0BAA4B,GACpCI,GAAa,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG,EACLE,EACJC,EAAAA,IAAC,OAAA,CACC,UAAWF,EACX,MAAOH,IAAS,OAAY,OAAY,CAAE,MAAOA,EAAM,OAAQA,CAAA,EAC/D,cAAY,MAAA,CAAA,EAGhB,OAAIC,IAAU,OACLG,EAGPE,EAAAA,KAAC,OAAA,CAAK,UAAU,4BACb,SAAA,CAAAF,EACDC,EAAAA,IAAC,OAAA,CAAK,UAAU,mCAAoC,SAAAJ,CAAA,CAAM,CAAA,EAC5D,CAEJ"}
|
|
@@ -6,8 +6,15 @@ interface StatusDotProps {
|
|
|
6
6
|
* is the link blue, for what is current or in progress.
|
|
7
7
|
*/
|
|
8
8
|
tone?: 'ink' | 'inverted' | 'warning' | 'caution' | 'info' | 'muted' | 'success';
|
|
9
|
+
/** Diameter in px; defaults to `--status-dot-size`. */
|
|
9
10
|
size?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The state the dot stands for, as text that assistive technology and a
|
|
13
|
+
* page's text read but that is not drawn, for a dot shown without its
|
|
14
|
+
* word, e.g. in a row of dots or beside an event.
|
|
15
|
+
*/
|
|
16
|
+
label?: string;
|
|
10
17
|
className?: string;
|
|
11
18
|
}
|
|
12
|
-
export declare function StatusDot({ pulse, tone, size, className, }: StatusDotProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function StatusDot({ pulse, tone, size, label, className, }: StatusDotProps): import("react/jsx-runtime").JSX.Element;
|
|
13
20
|
export {};
|
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
/* empty css */
|
|
3
|
-
function
|
|
4
|
-
pulse:
|
|
5
|
-
tone:
|
|
6
|
-
size:
|
|
7
|
-
|
|
3
|
+
function c({
|
|
4
|
+
pulse: o = !1,
|
|
5
|
+
tone: i = "ink",
|
|
6
|
+
size: s,
|
|
7
|
+
label: t,
|
|
8
|
+
className: l
|
|
8
9
|
}) {
|
|
9
|
-
const
|
|
10
|
+
const d = [
|
|
10
11
|
"aegis-status-dot",
|
|
11
|
-
`aegis-status-dot--${
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
].filter(Boolean).join(" ")
|
|
15
|
-
return /* @__PURE__ */ i(
|
|
12
|
+
`aegis-status-dot--${i}`,
|
|
13
|
+
o ? "aegis-status-dot--pulse" : "",
|
|
14
|
+
l ?? ""
|
|
15
|
+
].filter(Boolean).join(" "), a = /* @__PURE__ */ e(
|
|
16
16
|
"span",
|
|
17
17
|
{
|
|
18
|
-
className:
|
|
19
|
-
style: { width:
|
|
18
|
+
className: d,
|
|
19
|
+
style: s === void 0 ? void 0 : { width: s, height: s },
|
|
20
20
|
"aria-hidden": "true"
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
+
return t === void 0 ? a : /* @__PURE__ */ n("span", { className: "aegis-status-dot-labelled", children: [
|
|
24
|
+
a,
|
|
25
|
+
/* @__PURE__ */ e("span", { className: "aegis-status-dot-labelled__label", children: t })
|
|
26
|
+
] });
|
|
23
27
|
}
|
|
24
28
|
export {
|
|
25
|
-
|
|
29
|
+
c as StatusDot
|
|
26
30
|
};
|
|
27
31
|
//# sourceMappingURL=StatusDot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusDot.js","sources":["../../../src/components/ui/StatusDot.tsx"],"sourcesContent":["import './StatusDot.css';\n\ninterface StatusDotProps {\n pulse?: boolean;\n /**\n * Fill colour. `warning` is the anomaly red, for failures only; `caution`\n * is `--ink-warn`, for what needs attention but has not failed; `info`\n * is the link blue, for what is current or in progress.\n */\n tone?:\n | 'ink'\n | 'inverted'\n | 'warning'\n | 'caution'\n | 'info'\n | 'muted'\n | 'success';\n size?: number;\n className?: string;\n}\n\nexport function StatusDot({\n pulse = false,\n tone = 'ink',\n size
|
|
1
|
+
{"version":3,"file":"StatusDot.js","sources":["../../../src/components/ui/StatusDot.tsx"],"sourcesContent":["import './StatusDot.css';\n\ninterface StatusDotProps {\n pulse?: boolean;\n /**\n * Fill colour. `warning` is the anomaly red, for failures only; `caution`\n * is `--ink-warn`, for what needs attention but has not failed; `info`\n * is the link blue, for what is current or in progress.\n */\n tone?:\n | 'ink'\n | 'inverted'\n | 'warning'\n | 'caution'\n | 'info'\n | 'muted'\n | 'success';\n /** Diameter in px; defaults to `--status-dot-size`. */\n size?: number;\n /**\n * The state the dot stands for, as text that assistive technology and a\n * page's text read but that is not drawn, for a dot shown without its\n * word, e.g. in a row of dots or beside an event.\n */\n label?: string;\n className?: string;\n}\n\nexport function StatusDot({\n pulse = false,\n tone = 'ink',\n size,\n label,\n className,\n}: StatusDotProps) {\n const cls = [\n 'aegis-status-dot',\n `aegis-status-dot--${tone}`,\n pulse ? 'aegis-status-dot--pulse' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n const dot = (\n <span\n className={cls}\n style={size === undefined ? undefined : { width: size, height: size }}\n aria-hidden=\"true\"\n />\n );\n if (label === undefined) {\n return dot;\n }\n return (\n <span className=\"aegis-status-dot-labelled\">\n {dot}\n <span className=\"aegis-status-dot-labelled__label\">{label}</span>\n </span>\n );\n}\n"],"names":["StatusDot","pulse","tone","size","label","className","cls","dot","jsx","jsxs"],"mappings":";;AA4BO,SAASA,EAAU;AAAA,EACxB,OAAAC,IAAQ;AAAA,EACR,MAAAC,IAAO;AAAA,EACP,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AACF,GAAmB;AACjB,QAAMC,IAAM;AAAA,IACV;AAAA,IACA,qBAAqBJ,CAAI;AAAA,IACzBD,IAAQ,4BAA4B;AAAA,IACpCI,KAAa;AAAA,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG,GACLE,IACJ,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWF;AAAA,MACX,OAAOH,MAAS,SAAY,SAAY,EAAE,OAAOA,GAAM,QAAQA,EAAA;AAAA,MAC/D,eAAY;AAAA,IAAA;AAAA,EAAA;AAGhB,SAAIC,MAAU,SACLG,IAGP,gBAAAE,EAAC,QAAA,EAAK,WAAU,6BACb,UAAA;AAAA,IAAAF;AAAA,IACD,gBAAAC,EAAC,QAAA,EAAK,WAAU,oCAAoC,UAAAJ,EAAA,CAAM;AAAA,EAAA,GAC5D;AAEJ;"}
|
|
@@ -54,6 +54,8 @@ export { RankBar } from './RankBar';
|
|
|
54
54
|
export type { RankBarItem } from './RankBar';
|
|
55
55
|
export { ScoreBar } from './ScoreBar';
|
|
56
56
|
export { RunPips } from './RunPips';
|
|
57
|
+
export { SegmentBar } from './SegmentBar';
|
|
58
|
+
export type { SegmentBarGroup } from './SegmentBar';
|
|
57
59
|
export type { RunPipsCounts } from './RunPips';
|
|
58
60
|
export { AgentHud } from './AgentHud';
|
|
59
61
|
export type { AgentHudMeter, AgentHudProps } from './AgentHud';
|