@starci/grammar 0.15.2 → 0.15.6
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/README.md +52 -9
- package/dist/.build-stamp.json +4 -4
- package/dist/common/components-forms.css +141 -4
- package/dist/common/components-navigation.css +104 -1
- package/dist/common/components-overlays.css +2 -0
- package/dist/common/registry.d.ts +5 -0
- package/dist/common/registry.d.ts.map +1 -1
- package/dist/common/registry.js +2 -2
- package/dist/common/registry.js.map +1 -1
- package/dist/common/renderers-forms.d.ts +4 -0
- package/dist/common/renderers-forms.d.ts.map +1 -1
- package/dist/common/renderers-forms.js +6 -2
- package/dist/common/renderers-forms.js.map +1 -1
- package/dist/common/renderers-navigation.d.ts +3 -1
- package/dist/common/renderers-navigation.d.ts.map +1 -1
- package/dist/common/renderers-navigation.js +3 -1
- package/dist/common/renderers-navigation.js.map +1 -1
- package/dist/common/renderers.d.ts +2 -0
- package/dist/common/renderers.d.ts.map +1 -1
- package/dist/common/renderers.js +2 -0
- package/dist/common/renderers.js.map +1 -1
- package/dist/common/styles.css +177 -4
- package/dist/core/branch/CopyField/index.d.ts +48 -0
- package/dist/core/branch/CopyField/index.d.ts.map +1 -0
- package/dist/core/branch/CopyField/index.js +102 -0
- package/dist/core/branch/CopyField/index.js.map +1 -0
- package/dist/core/branch/FlowGraph/index.d.ts +1 -1
- package/dist/core/branch/FlowGraph/index.d.ts.map +1 -1
- package/dist/core/branch/FlowGraph/index.js +11 -2
- package/dist/core/branch/FlowGraph/index.js.map +1 -1
- package/dist/core/branch/FlowGraph/types.d.ts +9 -0
- package/dist/core/branch/FlowGraph/types.d.ts.map +1 -1
- package/dist/core/branch/MermaidDiagram/index.d.ts +30 -0
- package/dist/core/branch/MermaidDiagram/index.d.ts.map +1 -0
- package/dist/core/branch/MermaidDiagram/index.js +110 -0
- package/dist/core/branch/MermaidDiagram/index.js.map +1 -0
- package/dist/core/branch/MermaidDiagram/theme.d.ts +40 -0
- package/dist/core/branch/MermaidDiagram/theme.d.ts.map +1 -0
- package/dist/core/branch/MermaidDiagram/theme.js +86 -0
- package/dist/core/branch/MermaidDiagram/theme.js.map +1 -0
- package/dist/core/branch/Tabs/index.d.ts +11 -3
- package/dist/core/branch/Tabs/index.d.ts.map +1 -1
- package/dist/core/branch/Tabs/index.js +48 -2
- package/dist/core/branch/Tabs/index.js.map +1 -1
- package/dist/core/composite/FormGrid/index.d.ts +17 -0
- package/dist/core/composite/FormGrid/index.d.ts.map +1 -0
- package/dist/core/composite/FormGrid/index.js +16 -0
- package/dist/core/composite/FormGrid/index.js.map +1 -0
- package/dist/core/composition/Page/index.d.ts +30 -0
- package/dist/core/composition/Page/index.d.ts.map +1 -0
- package/dist/core/composition/Page/index.js +13 -0
- package/dist/core/composition/Page/index.js.map +1 -0
- package/dist/core/composition/PageHeader/index.d.ts +57 -0
- package/dist/core/composition/PageHeader/index.d.ts.map +1 -0
- package/dist/core/composition/PageHeader/index.js +20 -0
- package/dist/core/composition/PageHeader/index.js.map +1 -0
- package/dist/core/primitive/Button/index.d.ts +9 -3
- package/dist/core/primitive/Button/index.d.ts.map +1 -1
- package/dist/core/primitive/Button/index.js +2 -2
- package/dist/core/primitive/Button/index.js.map +1 -1
- package/dist/core/primitive/Field/index.d.ts +2 -2
- package/dist/core/primitive/Field/index.js +4 -4
- package/dist/core/primitive/Field/index.js.map +1 -1
- package/dist/core/primitive/FileDropzone/index.js +2 -2
- package/dist/core/primitive/FileDropzone/index.js.map +1 -1
- package/dist/core/primitive/Input/index.d.ts +7 -7
- package/dist/core/primitive/Input/index.d.ts.map +1 -1
- package/dist/core/primitive/Input/index.js +9 -9
- package/dist/core/primitive/Input/index.js.map +1 -1
- package/dist/offset-pop/components-forms.css +5 -3
- package/dist/offset-pop/components-navigation.css +14 -0
- package/package.json +3 -2
|
@@ -3,7 +3,8 @@ export { Calendar, type CalendarProps } from "../core/branch/Calendar/index.js";
|
|
|
3
3
|
export { DataTable, type DataTableCellInteraction, type DataTableColumn, type DataTableProps, type DataTableRow, type DataTableSort } from "../core/branch/DataTable/index.js";
|
|
4
4
|
export { DragItem, type DragItemProps } from "../core/branch/DragItem/index.js";
|
|
5
5
|
export { Disclosure, type DisclosureProps } from "../core/branch/Disclosure/index.js";
|
|
6
|
-
export { FlowGraph, layeredPositions, radialPositions, type FlowGraphDirection, type FlowGraphEdge, type FlowGraphHeight, type FlowGraphLayerHeader, type FlowGraphLayout, type FlowGraphNode, type FlowGraphNodeSize, type FlowGraphProps, type FlowGraphTone } from "../core/branch/FlowGraph/index.js";
|
|
6
|
+
export { FlowGraph, layeredPositions, radialPositions, type FlowGraphDirection, type FlowGraphEdge, type FlowGraphHeight, type FlowGraphLayerHeader, type FlowGraphLayout, type FlowGraphNode, type FlowGraphNodeShape, type FlowGraphNodeSize, type FlowGraphProps, type FlowGraphTone } from "../core/branch/FlowGraph/index.js";
|
|
7
|
+
export { MermaidDiagram, type MermaidDiagramHeight, type MermaidDiagramProps } from "../core/branch/MermaidDiagram/index.js";
|
|
7
8
|
export { ListBox, type ListBoxItem, type ListBoxSection, type ListBoxProps, type ListBoxSize } from "../core/branch/ListBox/index.js";
|
|
8
9
|
export type { ItemDescriptionLines } from "../core/collectionItem.js";
|
|
9
10
|
export { AvatarButton, type AvatarButtonProps } from "../core/composite/AvatarButton/index.js";
|
|
@@ -43,6 +44,7 @@ export declare const COMMON_NAVIGATION_COMPONENTS: Readonly<{
|
|
|
43
44
|
readonly Image: ({ src, alt, aspect, fit, fallback, loading, srcSet, sizes, width, height, onLoadStateChange, plate, className, ...assetSlot }: import("./renderers-navigation.js").ImageProps) => import("react").JSX.Element;
|
|
44
45
|
readonly Link: ({ children, href, kind, isCurrent, visited, externalHint, externalIcon, isDisabled, onFollow, className, }: import("./renderers-navigation.js").LinkProps) => import("react").JSX.Element;
|
|
45
46
|
readonly ListBox: ({ label, items, sections, inset, size, descriptionLines, selectionMode, selectedIds, defaultSelectedIds, onSelectionChange, onAction, selectionIndicator, emptyContent, isLoading, loadingRows, className, }: import("./renderers-navigation.js").ListBoxProps) => import("react").JSX.Element;
|
|
47
|
+
readonly MermaidDiagram: ({ source, label, height, errorTitle, sourceLabel, isSkeleton, className, }: import("./renderers-navigation.js").MermaidDiagramProps) => import("react").JSX.Element;
|
|
46
48
|
readonly Pagination: ({ label, page, pageCount, onPageChange, siblingCount, previousLabel, nextLabel, pageLabel, summary, className, }: import("./renderers-navigation.js").PaginationProps) => import("react").JSX.Element;
|
|
47
49
|
readonly PlainPressable: ({ children, "aria-label": ariaLabel, onPress, isDisabled, shape, size, className }: import("./renderers-navigation.js").PlainPressableProps) => import("react").JSX.Element;
|
|
48
50
|
readonly Rating: ({ label, value, defaultValue, onChange, max, isReadOnly, isDisabled, valueLabel, icon, name, className, }: import("./renderers-navigation.js").RatingProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderers-navigation.d.ts","sourceRoot":"","sources":["../../src/common/renderers-navigation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderers-navigation.d.ts","sourceRoot":"","sources":["../../src/common/renderers-navigation.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,mCAAmC,CAAA;AACtG,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,SAAS,EAAE,KAAK,wBAAwB,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAC9K,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,oCAAoC,CAAA;AACrF,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,KAAK,kBAAk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A;AACtI,OAAO,EAAE,QAAQ,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACrG,OAAO,EAAE,QAAQ,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACrG,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,wCAAwC,CAAA;AAC3G,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAA;AACrH,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAA;AAC/F,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAChJ,OAAO,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,kCAAkC,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAA;AACrF,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC5E,OAAO,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAElG,gFAAgF;AAChF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG9B,CAAA"}
|
|
@@ -7,6 +7,7 @@ import { DragItem } from "../core/branch/DragItem/index.js";
|
|
|
7
7
|
import { Disclosure } from "../core/branch/Disclosure/index.js";
|
|
8
8
|
import { FlowGraph } from "../core/branch/FlowGraph/index.js";
|
|
9
9
|
import { ListBox } from "../core/branch/ListBox/index.js";
|
|
10
|
+
import { MermaidDiagram } from "../core/branch/MermaidDiagram/index.js";
|
|
10
11
|
import { AvatarButton } from "../core/composite/AvatarButton/index.js";
|
|
11
12
|
import { AvatarGroup } from "../core/composite/AvatarGroup/index.js";
|
|
12
13
|
import { IdentityLockup } from "../core/composite/IdentityLockup/index.js";
|
|
@@ -31,6 +32,7 @@ export { DataTable } from "../core/branch/DataTable/index.js";
|
|
|
31
32
|
export { DragItem } from "../core/branch/DragItem/index.js";
|
|
32
33
|
export { Disclosure } from "../core/branch/Disclosure/index.js";
|
|
33
34
|
export { FlowGraph, layeredPositions, radialPositions } from "../core/branch/FlowGraph/index.js";
|
|
35
|
+
export { MermaidDiagram } from "../core/branch/MermaidDiagram/index.js";
|
|
34
36
|
export { ListBox } from "../core/branch/ListBox/index.js";
|
|
35
37
|
export { AvatarButton } from "../core/composite/AvatarButton/index.js";
|
|
36
38
|
export { IdentityLockup } from "../core/composite/IdentityLockup/index.js";
|
|
@@ -53,6 +55,6 @@ export { Video } from "../core/primitive/Video/index.js";
|
|
|
53
55
|
/** Every navigation-group renderer, spread into `COMMON_GRAMMAR_COMPONENTS`. */
|
|
54
56
|
export const COMMON_NAVIGATION_COMPONENTS = Object.freeze({
|
|
55
57
|
Accordion, Avatar, AvatarButton, AvatarGroup, BottomNav, Breadcrumbs, Calendar, DataTable, DescriptionList,
|
|
56
|
-
Disclosure, DragItem, FlowGraph, Footer, IdentityLockup, Image, Link, ListBox, Pagination, PlainPressable, Rating, Stepper, TagGroup, Timeline, TopBar, Video,
|
|
58
|
+
Disclosure, DragItem, FlowGraph, Footer, IdentityLockup, Image, Link, ListBox, MermaidDiagram, Pagination, PlainPressable, Rating, Stepper, TagGroup, Timeline, TopBar, Video,
|
|
57
59
|
});
|
|
58
60
|
//# sourceMappingURL=renderers-navigation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderers-navigation.js","sourceRoot":"","sources":["../../src/common/renderers-navigation.ts"],"names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,CAAC,CAAA"}
|
|
@@ -31,6 +31,8 @@ export { PinnedActionBar, type PinnedActionBarProps, type PinnedActionBarVisibil
|
|
|
31
31
|
export { IncludedMark, type IncludedMarkProps } from "../core/primitive/IncludedMark/index.js";
|
|
32
32
|
export { RankArtwork, type RankArtworkKind, type RankArtworkProps } from "../core/primitive/RankArtwork/index.js";
|
|
33
33
|
export { SurfaceCopyGroup, type SurfaceCopyGroupProps } from "../core/primitive/SurfaceCopyGroup/index.js";
|
|
34
|
+
export { Page, type PageHeaderContent, type PageProps } from "../core/composition/Page/index.js";
|
|
35
|
+
export { PageHeader, type PageHeaderBreadcrumbs, type PageHeaderProps, type PageHeaderTabs } from "../core/composition/PageHeader/index.js";
|
|
34
36
|
export { PrimaryRailLayout, type PrimaryRailLayoutProps } from "../core/composition/PrimaryRailLayout/index.js";
|
|
35
37
|
export { NavigationFeatureNav, type NavigationFeatureNavProps } from "../core/composition/NavigationFeatureNav/index.js";
|
|
36
38
|
export { Sidebar, type SidebarGroup, type SidebarItem, type SidebarProps } from "../core/composition/Sidebar/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderers.d.ts","sourceRoot":"","sources":["../../src/common/renderers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAC3F,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAClI,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC/F,OAAO,EAAE,cAAc,EAAE,KA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AAM,EAAE,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,EAAE,IAAI,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACjF,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnG,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAA;AAC9N,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA"}
|
package/dist/common/renderers.js
CHANGED
|
@@ -32,6 +32,8 @@ export { PinnedActionBar } from "../core/primitive/PinnedActionBar/index.js";
|
|
|
32
32
|
export { IncludedMark } from "../core/primitive/IncludedMark/index.js";
|
|
33
33
|
export { RankArtwork } from "../core/primitive/RankArtwork/index.js";
|
|
34
34
|
export { SurfaceCopyGroup } from "../core/primitive/SurfaceCopyGroup/index.js";
|
|
35
|
+
export { Page } from "../core/composition/Page/index.js";
|
|
36
|
+
export { PageHeader } from "../core/composition/PageHeader/index.js";
|
|
35
37
|
export { PrimaryRailLayout } from "../core/composition/PrimaryRailLayout/index.js";
|
|
36
38
|
export { NavigationFeatureNav } from "../core/composition/NavigationFeatureNav/index.js";
|
|
37
39
|
export { Sidebar } from "../core/composition/Sidebar/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderers.js","sourceRoot":"","sources":["../../src/common/renderers.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,uCAAuC;AACvC,OAAO,EAAE,WAAW,EAAyB,MAAM,wCAAwC,CAAA;AAC3F,OAAO,EAAE,aAAa,EAA2B,MAAM,0CAA0C,CAAA;AACjG,OAAO,EAAE,KAAK,EAAmC,MAAM,kCAAkC,CAAA;AACzF,OAAO,E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AkB,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAA;AAC9N,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA"}
|
package/dist/common/styles.css
CHANGED
|
@@ -327,6 +327,146 @@
|
|
|
327
327
|
overflow-wrap: anywhere;
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
+
/*
|
|
331
|
+
* PageHeader: a surface band across the primary region. Its body is a PageContainer of the page's measure, so the
|
|
332
|
+
* band's content edges are the page content's edges; the top inset is the region step, the inline inset the page
|
|
333
|
+
* inset. The band ends in its own full-width separator; page tabs sit on it with no inset below, and without tabs
|
|
334
|
+
* the body keeps the region step above the separator. The content below starts one region step after the band.
|
|
335
|
+
*/
|
|
336
|
+
.starci-core-page-header {
|
|
337
|
+
display: flex;
|
|
338
|
+
min-width: 0;
|
|
339
|
+
flex-direction: column;
|
|
340
|
+
margin-block-end: var(--grammar-region-gap, 1.5rem);
|
|
341
|
+
background: var(--surface, Canvas);
|
|
342
|
+
color: var(--surface-foreground, var(--foreground, CanvasText));
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.starci-core-page-header-body {
|
|
346
|
+
display: flex;
|
|
347
|
+
flex-direction: column;
|
|
348
|
+
gap: var(--grammar-row-gap, 0.75rem);
|
|
349
|
+
padding-block: var(--grammar-region-gap, 1.5rem);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.starci-core-page-header[data-grammar-page-header-tabs="true"] .starci-core-page-header-body {
|
|
353
|
+
padding-block-end: 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* The copy keeps a readable basis, so at phone width the actions wrap under the heading instead of crushing it. */
|
|
357
|
+
.starci-core-page-header-row {
|
|
358
|
+
display: flex;
|
|
359
|
+
min-width: 0;
|
|
360
|
+
flex-wrap: wrap;
|
|
361
|
+
align-items: center;
|
|
362
|
+
justify-content: space-between;
|
|
363
|
+
gap: var(--grammar-row-gap, 0.75rem) var(--grammar-region-gap, 1.5rem);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.starci-core-page-header-lead {
|
|
367
|
+
display: flex;
|
|
368
|
+
min-width: 0;
|
|
369
|
+
flex: 1 1 min(100%, 20rem);
|
|
370
|
+
align-items: center;
|
|
371
|
+
gap: var(--grammar-row-gap, 0.75rem);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.starci-core-page-header-mark {
|
|
375
|
+
display: flex;
|
|
376
|
+
flex: none;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.starci-core-page-header-copy {
|
|
380
|
+
display: flex;
|
|
381
|
+
min-width: 0;
|
|
382
|
+
flex: 1 1 auto;
|
|
383
|
+
flex-direction: column;
|
|
384
|
+
gap: 0.25rem;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.starci-core-page-header-title-line,
|
|
388
|
+
.starci-core-page-header-status,
|
|
389
|
+
.starci-core-page-header-actions {
|
|
390
|
+
display: flex;
|
|
391
|
+
min-width: 0;
|
|
392
|
+
flex-wrap: wrap;
|
|
393
|
+
align-items: center;
|
|
394
|
+
gap: var(--grammar-inline-gap, 0.5rem);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.starci-core-page-header-actions {
|
|
398
|
+
flex: 0 1 auto;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.starci-core-page-header-meta {
|
|
402
|
+
min-width: 0;
|
|
403
|
+
color: var(--muted, GrayText);
|
|
404
|
+
font-size: 0.75rem;
|
|
405
|
+
line-height: 1rem;
|
|
406
|
+
overflow-wrap: anywhere;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.starci-core-page-header-description {
|
|
410
|
+
min-width: 0;
|
|
411
|
+
color: var(--muted, GrayText);
|
|
412
|
+
font-size: 0.875rem;
|
|
413
|
+
line-height: 1.5;
|
|
414
|
+
overflow-wrap: anywhere;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/* Page tabs lie on the separator: the separator rises under the strip's last pixel and the selected underline covers it. */
|
|
418
|
+
.starci-core-page-header-tabs {
|
|
419
|
+
position: relative;
|
|
420
|
+
z-index: 1;
|
|
421
|
+
min-width: 0;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.starci-core-page-header-separator {
|
|
425
|
+
display: flex;
|
|
426
|
+
flex-direction: column;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.starci-core-page-header[data-grammar-page-header-tabs="true"] .starci-core-page-header-separator {
|
|
430
|
+
margin-block-start: -1px;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@media (max-width: 47.999rem) {
|
|
434
|
+
.starci-core-page-header-actions {
|
|
435
|
+
flex-basis: 100%;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/*
|
|
440
|
+
* Page: the single owner of the page inset and rhythm. The header band runs full width; the body is the page's
|
|
441
|
+
* PageContainer, one region step below the band (or below the top without one) and one above the bottom, its
|
|
442
|
+
* sections a region step apart. The body clips one gutter step (1rem, the least gutter) beyond its content box, so
|
|
443
|
+
* nothing in it (a negative margin, a full-bleed width) reaches across the gutter, while focus rings and card shadows
|
|
444
|
+
* still draw. Overlays portal to the Grammar root, so the clip never cuts one.
|
|
445
|
+
*/
|
|
446
|
+
.starci-core-page {
|
|
447
|
+
display: flex;
|
|
448
|
+
min-width: 0;
|
|
449
|
+
flex-direction: column;
|
|
450
|
+
gap: var(--grammar-region-gap, 1.5rem);
|
|
451
|
+
padding-block-end: var(--grammar-region-gap, 1.5rem);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.starci-core-page > .starci-core-page-header {
|
|
455
|
+
margin-block-end: 0;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.starci-core-page[data-grammar-page-header="false"] {
|
|
459
|
+
padding-block-start: var(--grammar-region-gap, 1.5rem);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.starci-core-page-body {
|
|
463
|
+
display: flex;
|
|
464
|
+
flex-direction: column;
|
|
465
|
+
gap: var(--grammar-region-gap, 1.5rem);
|
|
466
|
+
overflow: clip;
|
|
467
|
+
overflow-clip-margin: content-box 1rem;
|
|
468
|
+
}
|
|
469
|
+
|
|
330
470
|
/*
|
|
331
471
|
* Keyboard-reachable scroll owners (VerticalScrollRegion / HorizontalScrollRegion when focusable,
|
|
332
472
|
* the Rail body, fenced code and Markdown table frames) draw the same inset focus ring the chat
|
|
@@ -2992,6 +3132,29 @@
|
|
|
2992
3132
|
min-block-size: 3rem !important;
|
|
2993
3133
|
}
|
|
2994
3134
|
|
|
3135
|
+
/*
|
|
3136
|
+
* A full-width action holds the same step as a content-width one (control-height-40): its box is the step on one
|
|
3137
|
+
* line, and only a label that wraps grows it. The vendor drops md to 36px from its md breakpoint (`md:h-9`), so a
|
|
3138
|
+
* fill Button left to the vendor was 36px on a desktop form; the floor is the step, the height follows the label.
|
|
3139
|
+
*/
|
|
3140
|
+
.starci-core-button[data-width="fill"]:is([data-size="md"], [data-size="control"]) {
|
|
3141
|
+
block-size: auto !important;
|
|
3142
|
+
min-block-size: var(--starci-core-control-min-size, 2.5rem) !important;
|
|
3143
|
+
padding-block: 0.5rem;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
.starci-core-button[data-width="fill"][data-size="sm"] {
|
|
3147
|
+
block-size: auto !important;
|
|
3148
|
+
min-block-size: 2rem !important;
|
|
3149
|
+
padding-block: 0.25rem;
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
.starci-core-button[data-width="fill"][data-size="lg"] {
|
|
3153
|
+
block-size: auto !important;
|
|
3154
|
+
min-block-size: 3rem !important;
|
|
3155
|
+
padding-block: 0.5rem;
|
|
3156
|
+
}
|
|
3157
|
+
|
|
2995
3158
|
/* The chrome avatar (`control`) is drawn here over the vendor `lg` box: the shared control height. */
|
|
2996
3159
|
[data-component="Avatar"][data-grammar-avatar-size="control"] {
|
|
2997
3160
|
--avatar-size: var(--starci-core-control-min-size, 2.5rem);
|
|
@@ -3511,7 +3674,8 @@
|
|
|
3511
3674
|
* --- Button: full width ---
|
|
3512
3675
|
*
|
|
3513
3676
|
* A full-width action stretches to its parent and lets its label wrap onto a second line rather
|
|
3514
|
-
* than overflow
|
|
3677
|
+
* than overflow: its height is the size step on one line and grows only with a wrapped label (the
|
|
3678
|
+
* size rules above hold the floor).
|
|
3515
3679
|
*/
|
|
3516
3680
|
.starci-core-button[data-width="fill"] {
|
|
3517
3681
|
width: 100% !important;
|
|
@@ -3538,9 +3702,9 @@
|
|
|
3538
3702
|
|
|
3539
3703
|
/*
|
|
3540
3704
|
* StatusDot: three variants (text chip, echo, static) share ONE dot-size token and one tone set. The text
|
|
3541
|
-
* chip is HeroUI's soft Chip, so its
|
|
3542
|
-
*
|
|
3543
|
-
* (0.125rem) plus the 0.125rem the dot adds after itself
|
|
3705
|
+
* chip is HeroUI's soft Chip, so its height and type are the vendor's per size (20px/24px/28px); its inline
|
|
3706
|
+
* padding follows the chip padding rule below. The dot-to-text gap is gap-1 (0.25rem): the Chip's own gap-0.5
|
|
3707
|
+
* (0.125rem) plus the 0.125rem the dot adds after itself.
|
|
3544
3708
|
*/
|
|
3545
3709
|
.grammar-common-root {
|
|
3546
3710
|
--starci-core-status-dot-size: 6px;
|
|
@@ -3607,6 +3771,15 @@
|
|
|
3607
3771
|
}
|
|
3608
3772
|
}
|
|
3609
3773
|
|
|
3774
|
+
/*
|
|
3775
|
+
* Chip inline padding: HeroUI's sm Chip pads 4px each side, so a status word ("đang hoạt động") sits on the pill
|
|
3776
|
+
* edge. Badge and the StatusDot text chip keep the vendor height and type and pad 8px (0.5rem) inline at sm.
|
|
3777
|
+
*/
|
|
3778
|
+
[data-component="Badge"][data-loading],
|
|
3779
|
+
.starci-core-status-dot-chip[data-size="sm"] {
|
|
3780
|
+
padding-inline: 0.5rem;
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3610
3783
|
/* Badge muted: the content carries the muted ink on HeroUI's transparent tertiary Chip. */
|
|
3611
3784
|
.starci-core-badge-muted {
|
|
3612
3785
|
display: inline-flex;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type FieldVariant } from "../../primitive/Field/index.js";
|
|
3
|
+
type CopyFieldBase = {
|
|
4
|
+
/** The visible accessible name of the value. */
|
|
5
|
+
readonly label: ReactNode;
|
|
6
|
+
/** Keeps the label for assistive technology only. */
|
|
7
|
+
readonly isLabelHidden?: boolean;
|
|
8
|
+
/** Standing guidance under the control; it joins the value's accessible description. */
|
|
9
|
+
readonly description?: ReactNode;
|
|
10
|
+
/** The copy action's accessible name, in the app's language. */
|
|
11
|
+
readonly copyLabel: string;
|
|
12
|
+
/** Replaces `copyLabel` on the action and is announced politely for about two seconds after a copy. */
|
|
13
|
+
readonly copiedLabel: string;
|
|
14
|
+
/** Shown in the field's error slot and announced when the copy failed (the clipboard refused, or `onCopy` rejected). */
|
|
15
|
+
readonly copyErrorLabel: string;
|
|
16
|
+
readonly isDisabled?: boolean;
|
|
17
|
+
/** Initial unresolved content (knowledge STATE-8): the ready anatomy, inert, its field box painted as a Skeleton. */
|
|
18
|
+
readonly isSkeleton?: boolean;
|
|
19
|
+
/** Defaults to `secondary` inside a Grammar surface and `primary` outside (ANATOMY-2 case-1). */
|
|
20
|
+
readonly variant?: FieldVariant;
|
|
21
|
+
};
|
|
22
|
+
/** A value shown in full (truncated in the middle when it does not fit) and copied from what it shows. */
|
|
23
|
+
export type CopyFieldPlainProps = CopyFieldBase & {
|
|
24
|
+
readonly masked?: false;
|
|
25
|
+
readonly value: string;
|
|
26
|
+
/** Called with the value after it reached the clipboard. */
|
|
27
|
+
readonly onCopy?: (value: string) => void;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* A secret: the field shows bullets and the last four characters, and only `onCopy` knows the clear value. It resolves the
|
|
31
|
+
* text to copy (a server reveal may take a moment); the field writes it to the clipboard and keeps no copy of it.
|
|
32
|
+
*/
|
|
33
|
+
export type CopyFieldMaskedProps = CopyFieldBase & {
|
|
34
|
+
readonly masked: true;
|
|
35
|
+
/** The trailing characters the app may show; only the last four are drawn. */
|
|
36
|
+
readonly lastFour: string;
|
|
37
|
+
readonly onCopy: () => string | Promise<string>;
|
|
38
|
+
};
|
|
39
|
+
export type CopyFieldProps = CopyFieldPlainProps | CopyFieldMaskedProps;
|
|
40
|
+
/** The copy action's life: at rest, waiting for `onCopy` or the clipboard, confirmed for a moment, or refused. */
|
|
41
|
+
export type CopyFieldState = "idle" | "pending" | "copied" | "failed";
|
|
42
|
+
/**
|
|
43
|
+
* Skeleton parity (knowledge STATE-8): `isSkeleton` renders the ready anatomy at the same props inside `FieldSkeletonScope`
|
|
44
|
+
* (inert, `aria-busy`, the field box painted as a Skeleton), so the loading field keeps the ready box, label and description.
|
|
45
|
+
*/
|
|
46
|
+
export declare const CopyField: (props: CopyFieldProps) => import("react").JSX.Element;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/CopyField/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAuD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAG3F,OAAO,EAAsF,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAGtJ,KAAK,aAAa,GAAG;IACjB,gDAAgD;IAChD,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,qDAAqD;IACrD,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;IAChC,wFAAwF;IACxF,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAA;IAChC,gEAAgE;IAChE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,uGAAuG;IACvG,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,wHAAwH;IACxH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,qHAAqH;IACrH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,iGAAiG;IACjG,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;CAClC,CAAA;AAED,0GAA0G;AAC1G,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAC9C,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IAC/C,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAA;IACrB,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CAClD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,oBAAoB,CAAA;AAEvE,kHAAkH;AAClH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AA4BrE;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,gCAEV,CAAA"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { CheckIcon, DocumentDuplicateIcon, ExclamationCircleIcon } from "@heroicons/react/16/solid";
|
|
4
|
+
import { InputGroup as HeroInputGroup, Label as HeroLabel, Tooltip as HeroTooltip } from "@heroui/react";
|
|
5
|
+
import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
6
|
+
import { useOverlayContainer } from "../../overlayScope.js";
|
|
7
|
+
import { useFieldVariant } from "../../surfaceContext.js";
|
|
8
|
+
import { FieldSkeletonScope, StaticFieldError, fieldStateAttributes, fieldVariantAttributes } from "../../primitive/Field/index.js";
|
|
9
|
+
import { tooltipContentClassName } from "../Tooltip/classNames.js";
|
|
10
|
+
const MASK = "•".repeat(8);
|
|
11
|
+
/** A value longer than twice this keeps its last characters in view and gives up the middle when it does not fit. */
|
|
12
|
+
const TAIL_LENGTH = 8;
|
|
13
|
+
const COPIED_MS = 2000;
|
|
14
|
+
/** The value split for middle truncation: the head shrinks under an ellipsis, the tail never does. Text content stays whole. */
|
|
15
|
+
const splitForMiddle = (text) => text.length > TAIL_LENGTH * 2 ? [text.slice(0, -TAIL_LENGTH), text.slice(-TAIL_LENGTH)] : [text, ""];
|
|
16
|
+
/**
|
|
17
|
+
* Writes the text a copy resolves. A pending reveal goes through a `ClipboardItem` built in the press, so a browser that ties
|
|
18
|
+
* clipboard access to the press (Safari) still accepts it; where that is refused the resolved text is written directly.
|
|
19
|
+
*/
|
|
20
|
+
const writeClipboard = async (text) => {
|
|
21
|
+
const { clipboard } = navigator;
|
|
22
|
+
if (typeof text !== "string" && typeof ClipboardItem !== "undefined") {
|
|
23
|
+
try {
|
|
24
|
+
await clipboard.write([new ClipboardItem({ "text/plain": text.then((resolved) => new Blob([resolved], { type: "text/plain" })) })]);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
// Fall through: the reveal may still resolve, and writeText is the API every browser takes.
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
await clipboard.writeText(await text);
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Skeleton parity (knowledge STATE-8): `isSkeleton` renders the ready anatomy at the same props inside `FieldSkeletonScope`
|
|
35
|
+
* (inert, `aria-busy`, the field box painted as a Skeleton), so the loading field keeps the ready box, label and description.
|
|
36
|
+
*/
|
|
37
|
+
export const CopyField = (props) => props.isSkeleton === true
|
|
38
|
+
? _jsx(FieldSkeletonScope, { component: "CopyField", children: _jsx(CopyFieldControl, { ...props }) })
|
|
39
|
+
: _jsx(CopyFieldControl, { ...props });
|
|
40
|
+
/**
|
|
41
|
+
* A read-only value with its copy action inside the field, at its end: HeroUI's field anatomy (label, the InputGroup frame
|
|
42
|
+
* with the value and a Suffix action, description, error) at the height of every single-line field, so it sits level with
|
|
43
|
+
* Input, Select and NumberField in a row. The value is a read-only textbox named by the label; its text content is the whole
|
|
44
|
+
* value (screen readers read all of it), drawn truncated in the middle when it does not fit, with the full value in a
|
|
45
|
+
* Tooltip on hover and focus. A masked field draws only bullets and the last four characters and has no Tooltip.
|
|
46
|
+
*/
|
|
47
|
+
const CopyFieldControl = (props) => {
|
|
48
|
+
const { label, isLabelHidden = false, description, copyLabel, copiedLabel, copyErrorLabel, isDisabled = false, isSkeleton = false } = props;
|
|
49
|
+
const variant = useFieldVariant(props.variant);
|
|
50
|
+
const id = `copy-field${useId().replaceAll(":", "")}`;
|
|
51
|
+
const labelId = `${id}-label`;
|
|
52
|
+
const descriptionId = description == null ? undefined : `${id}-description`;
|
|
53
|
+
const errorId = `${id}-error`;
|
|
54
|
+
const [state, setState] = useState("idle");
|
|
55
|
+
const failed = state === "failed" && !isSkeleton;
|
|
56
|
+
const shown = props.masked === true ? `${MASK}${props.lastFour.slice(-4)}` : props.value;
|
|
57
|
+
const [head, tail] = props.masked === true ? [MASK, props.lastFour.slice(-4)] : splitForMiddle(props.value);
|
|
58
|
+
const headRef = useRef(null);
|
|
59
|
+
const [isTruncated, setIsTruncated] = useState(false);
|
|
60
|
+
const { anchor, container } = useOverlayContainer("Tooltip");
|
|
61
|
+
useLayoutEffect(() => {
|
|
62
|
+
const node = headRef.current;
|
|
63
|
+
if (node === null)
|
|
64
|
+
return;
|
|
65
|
+
const measure = () => setIsTruncated(node.scrollWidth > node.clientWidth);
|
|
66
|
+
measure();
|
|
67
|
+
const observer = new ResizeObserver(measure);
|
|
68
|
+
observer.observe(node);
|
|
69
|
+
return () => observer.disconnect();
|
|
70
|
+
}, [shown]);
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
if (state !== "copied")
|
|
73
|
+
return;
|
|
74
|
+
const timer = setTimeout(() => setState("idle"), COPIED_MS);
|
|
75
|
+
return () => clearTimeout(timer);
|
|
76
|
+
}, [state]);
|
|
77
|
+
const copy = async () => {
|
|
78
|
+
if (state === "pending")
|
|
79
|
+
return;
|
|
80
|
+
setState("pending");
|
|
81
|
+
try {
|
|
82
|
+
if (props.masked === true) {
|
|
83
|
+
await writeClipboard(props.onCopy());
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
await writeClipboard(props.value);
|
|
87
|
+
props.onCopy?.(props.value);
|
|
88
|
+
}
|
|
89
|
+
setState("copied");
|
|
90
|
+
}
|
|
91
|
+
catch {
|
|
92
|
+
setState("failed");
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const describedBy = [descriptionId, failed ? errorId : undefined].filter((part) => part !== undefined).join(" ");
|
|
96
|
+
const actionName = state === "copied" ? copiedLabel : copyLabel;
|
|
97
|
+
const Glyph = state === "copied" ? CheckIcon : failed ? ExclamationCircleIcon : DocumentDuplicateIcon;
|
|
98
|
+
const announcement = state === "copied" ? copiedLabel : failed ? copyErrorLabel : "";
|
|
99
|
+
const showsTooltip = props.masked !== true && isTruncated && !isSkeleton;
|
|
100
|
+
return (_jsxs("div", { "data-tier": "branch", "data-component": "CopyField", "data-contract": "A11Y-1 FEEDBACK-1 STATE-8", className: "starci-core-field starci-core-copy-field", "data-grammar-copy-masked": props.masked === true ? "true" : "false", "data-grammar-copy-state": isSkeleton ? "idle" : state, ...fieldVariantAttributes(variant), ...fieldStateAttributes({ isInvalid: failed, isDisabled, isReadOnly: true, isPending: state === "pending" }), children: [_jsx(HeroLabel, { id: labelId, className: isLabelHidden ? "starci-core-field-label starci-core-form-label--screen-reader" : "starci-core-field-label", "data-grammar-field-label": "true", children: label }), _jsxs(HeroInputGroup, { fullWidth: true, variant: variant, className: "starci-core-copy-field-group", "data-grammar-field-control": "true", ...(isDisabled ? { isDisabled: true } : {}), ...(failed ? { isInvalid: true } : {}), children: [_jsxs(HeroTooltip, { delay: 0, isDisabled: !showsTooltip, children: [_jsxs(HeroTooltip.Trigger, { role: "textbox", "aria-readonly": "true", "aria-labelledby": labelId, ...(describedBy === "" ? {} : { "aria-describedby": describedBy }), ...(isDisabled ? { "aria-disabled": "true", tabIndex: -1 } : {}), className: "starci-core-copy-field-value", "data-grammar-copy-value": "true", "data-grammar-truncated": isTruncated ? "true" : "false", children: [_jsx("span", { ref: headRef, className: "starci-core-copy-field-head", "data-grammar-copy-head": "true", children: head }), tail === "" ? null : _jsx("span", { className: "starci-core-copy-field-tail", "data-grammar-copy-tail": "true", children: tail })] }), container === null || !showsTooltip ? null : (_jsx(HeroTooltip.Content, { UNSTABLE_portalContainer: container, placement: "top", className: `${tooltipContentClassName} starci-core-copy-field-tooltip`, "data-grammar-tooltip": "true", "data-grammar-tooltip-content": "true", "data-grammar-copy-full-value": "true", children: shown }))] }), _jsx(HeroInputGroup.Suffix, { className: "starci-core-input-actions", children: _jsx("button", { type: "button", "aria-label": actionName, disabled: isDisabled, ...(failed ? { "aria-describedby": errorId } : {}), ...(state === "pending" ? { "aria-busy": true } : {}), "data-contract": "TONE-2", "data-copied": state === "copied" ? "true" : "false", "data-grammar-copy-action": "true", className: "starci-core-input-reveal starci-core-input-copy", onClick: () => void copy(), children: _jsx(Glyph, { "aria-hidden": "true", className: "starci-core-input-reveal-icon" }) }) })] }), descriptionId === undefined ? null : (_jsx("span", { id: descriptionId, className: "starci-core-field-description", "data-grammar-field-description": "true", children: description })), failed ? _jsx(StaticFieldError, { id: errorId, children: copyErrorLabel }) : null, _jsx("span", { className: "starci-core-input-live", role: "status", "aria-live": "polite", children: announcement }), anchor] }));
|
|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,EACtB,QAAQ,EAAE,UAAU,KAChB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC/C,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,mBACxC,QAAQ,iBACT,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,8BACzB,MAAM,EAC/B,SAAS,EAAC,iDAAiD,EAC3D,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,IAAI,EAAE,YAE1B,KAAC,KAAK,mBAAa,MAAM,EAAC,SAAS,EAAC,+BAA+B,GAAG,GACjE,GACW,IACX,EAChB,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAClC,eAAM,EAAE,EAAE,aAAa,EAAE,SAAS,EAAC,+BAA+B,oCAAgC,MAAM,YAAE,WAAW,GAAQ,CAChI,EACA,MAAM,CAAC,CAAC,CAAC,KAAC,gBAAgB,IAAC,EAAE,EAAE,OAAO,YAAG,cAAc,GAAoB,CAAC,CAAC,CAAC,IAAI,EACnF,eAAM,SAAS,EAAC,wBAAwB,EAAC,IAAI,EAAC,QAAQ,eAAW,QAAQ,YAAE,YAAY,GAAQ,EAC9F,MAAM,IACL,CACT,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FlowGraphDirection, FlowGraphEdge, FlowGraphHeight, FlowGraphLayerHeader, FlowGraphLayout, FlowGraphNode } from "./types.js";
|
|
2
2
|
export { layeredPositions, radialPositions } from "./layout.js";
|
|
3
|
-
export type { FlowGraphDirection, FlowGraphEdge, FlowGraphHeight, FlowGraphLayerHeader, FlowGraphLayout, FlowGraphNode, FlowGraphNodeSize, FlowGraphTone } from "./types.js";
|
|
3
|
+
export type { FlowGraphDirection, FlowGraphEdge, FlowGraphHeight, FlowGraphLayerHeader, FlowGraphLayout, FlowGraphNode, FlowGraphNodeShape, FlowGraphNodeSize, FlowGraphTone } from "./types.js";
|
|
4
4
|
export type FlowGraphProps = {
|
|
5
5
|
/** Names the graph for assistive technology, e.g. "Second brain". */
|
|
6
6
|
readonly label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/FlowGraph/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1I,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC/D,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/branch/FlowGraph/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1I,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC/D,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAEhM,MAAM,MAAM,cAAc,GAAG;IACzB,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;IAC5C,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;IAC5C;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,8HAA8H;IAC9H,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC/C;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,MAAM,CAAA;IACnD;;;;OAIG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IACrC,oDAAoD;IACpD,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;IAChC,mEAAmE;IACnE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAA;IACjC;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAA;IACvC,8HAA8H;IAC9H,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAA;IACtD,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,+HAA+H;IAC/H,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA;AA4HD;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,oKAgBvB,cAAc,gCAwKhB,CAAA"}
|
|
@@ -16,11 +16,12 @@ const FlowGraphNodeView = memo(({ data }) => {
|
|
|
16
16
|
const sides = HANDLE_SIDES[direction ?? "radial"];
|
|
17
17
|
const hasCount = graphNode.count !== undefined && graphNode.count !== "";
|
|
18
18
|
const content = (_jsxs(_Fragment, { children: [_jsxs("span", { className: "starci-core-flow-graph-copy", children: [_jsx("span", { className: "starci-core-flow-graph-label", children: graphNode.label }), graphNode.description === undefined ? null : _jsx("span", { className: "starci-core-flow-graph-description", children: graphNode.description })] }), hasCount ? _jsx("span", { className: "starci-core-flow-graph-count", children: graphNode.count }) : null] }));
|
|
19
|
-
return (_jsxs("div", { className: "starci-core-flow-graph-node", "data-grammar-flow-node": graphNode.id, "data-grammar-selected": isSelected ? "true" : "false", "data-placeholder": graphNode.isPlaceholder === true ? "true" : undefined, "data-root": graphNode.isRoot === true ? "true" : undefined, "data-size": graphNode.size ?? "md", "data-tone": graphNode.isPlaceholder === true ? "muted" : graphNode.tone ?? "neutral", children: [_jsx(Handle, { className: "starci-core-flow-graph-handle", isConnectable: false, position: sides.target, type: "target" }), graphNode.href === undefined ? content : (_jsx(RouterLink, { className: "starci-core-flow-graph-link", "data-grammar-flow-link": "true", href: graphNode.href, children: content })), _jsx(Handle, { className: "starci-core-flow-graph-handle", isConnectable: false, position: sides.source, type: "source" })] }));
|
|
19
|
+
return (_jsxs("div", { className: "starci-core-flow-graph-node", "data-grammar-flow-node": graphNode.id, "data-grammar-selected": isSelected ? "true" : "false", "data-placeholder": graphNode.isPlaceholder === true ? "true" : undefined, "data-root": graphNode.isRoot === true ? "true" : undefined, "data-shape": graphNode.shape ?? "stadium", "data-size": graphNode.size ?? "md", "data-tone": graphNode.isPlaceholder === true ? "muted" : graphNode.tone ?? "neutral", children: [_jsx(Handle, { className: "starci-core-flow-graph-handle", isConnectable: false, position: sides.target, type: "target" }), graphNode.href === undefined ? content : (_jsx(RouterLink, { className: "starci-core-flow-graph-link", "data-grammar-flow-link": "true", href: graphNode.href, children: content })), _jsx(Handle, { className: "starci-core-flow-graph-handle", isConnectable: false, position: sides.source, type: "source" })] }));
|
|
20
20
|
});
|
|
21
21
|
FlowGraphNodeView.displayName = "FlowGraphNodeView";
|
|
22
22
|
const FlowGraphHeaderView = memo(({ data }) => (_jsx("div", { className: "starci-core-flow-graph-header", "data-direction": data.direction, "data-grammar-flow-header": data.label, children: data.label })));
|
|
23
23
|
FlowGraphHeaderView.displayName = "FlowGraphHeaderView";
|
|
24
|
+
const EDGE_LABEL_PADDING = [6, 2];
|
|
24
25
|
const NODE_TYPES = { flowGraph: FlowGraphNodeView, flowGraphHeader: FlowGraphHeaderView };
|
|
25
26
|
const HEADER_OFFSET = 70;
|
|
26
27
|
const HEADER_SIDE_GAP = 24;
|
|
@@ -69,6 +70,11 @@ const Refit = ({ signature, readableZoom, onGrow }) => {
|
|
|
69
70
|
return null;
|
|
70
71
|
};
|
|
71
72
|
const labelFor = (node) => node.count === undefined || node.count === "" ? node.label : `${node.label} (${node.count})`;
|
|
73
|
+
/** The labelled edges as "source → target: label", for the screen-reader list; an unlabelled edge adds nothing to read. */
|
|
74
|
+
const labelledEdges = (nodes, edges) => {
|
|
75
|
+
const names = new Map(nodes.map((node) => [node.id, node.label]));
|
|
76
|
+
return edges.flatMap((edge) => edge.label === undefined || edge.label === "" ? [] : [{ id: edge.id, text: `${names.get(edge.source) ?? edge.source} → ${names.get(edge.target) ?? edge.target}: ${edge.label}` }]);
|
|
77
|
+
};
|
|
72
78
|
/**
|
|
73
79
|
* A node-and-edge map drawn with React Flow (`@xyflow/react`, a peer dependency) in grammar tokens. The radial layout
|
|
74
80
|
* puts the root in the centre with its children on a ring and their children on an outer ring around them. Nodes are
|
|
@@ -142,11 +148,14 @@ export const FlowGraph = ({ label, nodes, edges, selectedId, onSelect, height =
|
|
|
142
148
|
type: layout === "radial" ? "straight" : "smoothstep",
|
|
143
149
|
...(stepPosition === undefined ? {} : { pathOptions: { stepPosition } }),
|
|
144
150
|
className: edge.isPlaceholder === true ? "starci-core-flow-graph-edge starci-core-flow-graph-edge-placeholder" : "starci-core-flow-graph-edge",
|
|
151
|
+
// The label sits on its own chip at the midpoint; its paint is the grammar's (`.react-flow__edge-text*` in the sheet).
|
|
152
|
+
...(edge.label === undefined || edge.label === "" ? {} : { label: edge.label, labelShowBg: true, labelBgPadding: EDGE_LABEL_PADDING, labelBgBorderRadius: 4 }),
|
|
145
153
|
focusable: false,
|
|
146
154
|
selectable: false,
|
|
147
155
|
animated: false,
|
|
148
156
|
};
|
|
149
157
|
}), [edges, layout, layered, flowDirection]);
|
|
158
|
+
const edgeLabels = useMemo(() => labelledEdges(nodes, edges), [nodes, edges]);
|
|
150
159
|
const signature = `${layout}:${flowDirection ?? ""}:${headerNodes.length}:${nodes.map((node) => node.id).join("|")}`;
|
|
151
160
|
const onKeyDown = (event) => {
|
|
152
161
|
if (event.key === "Escape") {
|
|
@@ -180,6 +189,6 @@ export const FlowGraph = ({ label, nodes, edges, selectedId, onSelect, height =
|
|
|
180
189
|
};
|
|
181
190
|
return (_jsx("figure", { "aria-label": label, className: ["starci-core-flow-graph", className].filter(Boolean).join(" "), "data-component": "FlowGraph", "data-contract": "FOCUS-2 STATE-1 STATE-3", "data-grammar-flow-direction": flowDirection, "data-grammar-flow-height": customHeight === undefined ? height : "custom", "data-grammar-flow-interactive": isInteractive ? "true" : "false", "data-grammar-flow-layout": layout, "data-grammar-flow-fit": fit, "data-grammar-flow-grown": grownHeight === null ? undefined : "true", "data-tier": "branch", style: style, ...(isLoading ? { "aria-busy": true, "data-loading": "true" } : {}), onKeyDown: onKeyDown, children: isLoading ? (_jsx("div", { className: "starci-core-flow-graph-canvas starci-core-flow-graph-loading", "data-grammar-flow-loading": "true", children: _jsx(Skeleton, { shape: "rect" }) })) : nodes.length === 0 ? (_jsx("p", { className: "starci-core-flow-graph-empty", "data-contract": "STATE-3", "data-grammar-flow-empty": "true", children: emptyLabel })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "starci-core-flow-graph-canvas", children: _jsxs(ReactFlow, { edges: flowEdges, edgesFocusable: false, elementsSelectable: true, fitView: true, fitViewOptions: FIT_OPTIONS, maxZoom: MAX_ZOOM, minZoom: 0.2, nodeOrigin: [0.5, 0.5], nodeTypes: NODE_TYPES, nodes: allNodes, nodesConnectable: false, nodesDraggable: false, nodesFocusable: true, onNodeClick: (_event, node) => { if (node.type === "flowGraph")
|
|
182
191
|
select(node.id); }, onPaneClick: () => { if (currentId !== null)
|
|
183
|
-
select(null); }, panOnDrag: isInteractive, panOnScroll: false, preventScrolling: wheelZooms, proOptions: { hideAttribution: true }, zoomOnDoubleClick: false, zoomOnPinch: isInteractive, zoomOnScroll: wheelZooms, children: [_jsx(Background, { className: "starci-core-flow-graph-background", gap: 1000, size: 0 }), controls ? _jsx(Controls, { "aria-label": `${label}: zoom`, className: "starci-core-flow-graph-controls", showInteractive: false }) : null, _jsx(Refit, { signature: signature, readableZoom: readableZoom, onGrow: onGrow })] }) }), _jsx("ul", { className: "starci-core-visually-hidden", "data-grammar-flow-fallback": "true", children: nodes.map((node) => _jsx("li", { ...(node.id === currentId ? { "aria-current": "true" } : {}), children: labelFor(node) }, node.id)) })] })) }));
|
|
192
|
+
select(null); }, panOnDrag: isInteractive, panOnScroll: false, preventScrolling: wheelZooms, proOptions: { hideAttribution: true }, zoomOnDoubleClick: false, zoomOnPinch: isInteractive, zoomOnScroll: wheelZooms, children: [_jsx(Background, { className: "starci-core-flow-graph-background", gap: 1000, size: 0 }), controls ? _jsx(Controls, { "aria-label": `${label}: zoom`, className: "starci-core-flow-graph-controls", showInteractive: false }) : null, _jsx(Refit, { signature: signature, readableZoom: readableZoom, onGrow: onGrow })] }) }), _jsx("ul", { className: "starci-core-visually-hidden", "data-grammar-flow-fallback": "true", children: nodes.map((node) => _jsx("li", { ...(node.id === currentId ? { "aria-current": "true" } : {}), children: labelFor(node) }, node.id)) }), edgeLabels.length === 0 ? null : (_jsx("ul", { className: "starci-core-visually-hidden", "data-grammar-flow-edge-fallback": "true", children: edgeLabels.map((edge) => _jsx("li", { children: edge.text }, edge.id)) }))] })) }));
|
|
184
193
|
};
|
|
185
194
|
//# sourceMappingURL=index.js.map
|