@canonical/react-ds-app 0.45.0 → 0.48.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/README.md +2 -0
- package/dist/esm/lib/ApplicationLayout/ApplicationLayout.js +2 -0
- package/dist/esm/lib/ApplicationLayout/ApplicationLayout.js.map +1 -1
- package/dist/esm/lib/ContentLayout/ContentLayout.js +2 -0
- package/dist/esm/lib/ContentLayout/ContentLayout.js.map +1 -1
- package/dist/esm/lib/SideNavigation/SideNavigation.js +16 -15
- package/dist/esm/lib/SideNavigation/SideNavigation.js.map +1 -1
- package/dist/esm/lib/SideNavigation/common/CollapseToggle/CollapseToggle.js +1 -1
- package/dist/esm/lib/SideNavigation/common/Content/Content.js +14 -11
- package/dist/esm/lib/SideNavigation/common/Content/Content.js.map +1 -1
- package/dist/esm/lib/SideNavigation/common/Content/styles.css +9 -0
- package/dist/esm/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.js +5 -4
- package/dist/esm/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.js.map +1 -1
- package/dist/esm/lib/SideNavigation/common/Footer/Footer.js +4 -3
- package/dist/esm/lib/SideNavigation/common/Footer/Footer.js.map +1 -1
- package/dist/esm/lib/SideNavigation/common/Group/Group.js +6 -3
- package/dist/esm/lib/SideNavigation/common/Group/Group.js.map +1 -1
- package/dist/esm/lib/SideNavigation/common/GroupHeader/GroupHeader.js +1 -1
- package/dist/esm/lib/SideNavigation/common/Header/Header.js +1 -1
- package/dist/esm/lib/SideNavigation/common/Item/Item.js +1 -1
- package/dist/esm/lib/SideNavigation/common/ItemButton/ItemButton.js +1 -1
- package/dist/esm/lib/SideNavigation/common/ItemExpandable/ItemExpandable.js +1 -1
- package/dist/esm/lib/SideNavigation/common/ItemExpandable/styles.css +1 -1
- package/dist/esm/lib/SideNavigation/common/NavTree/NavTree.js +12 -14
- package/dist/esm/lib/SideNavigation/common/NavTree/NavTree.js.map +1 -1
- package/dist/esm/lib/SideNavigation/styles.css +2 -5
- package/dist/esm/lib/SidePanel/Provider.js +13 -3
- package/dist/esm/lib/SidePanel/Provider.js.map +1 -1
- package/dist/esm/lib/SidePanel/common/Content/Content.js +41 -3
- package/dist/esm/lib/SidePanel/common/Content/Content.js.map +1 -1
- package/dist/esm/lib/SidePanel/common/Content/styles.css +85 -0
- package/dist/esm/lib/SidePanel/common/Footer/Footer.js +5 -0
- package/dist/esm/lib/SidePanel/common/Footer/Footer.js.map +1 -1
- package/dist/esm/lib/SidePanel/common/Footer/styles.css +4 -15
- package/dist/esm/lib/SidePanel/common/Header/styles.css +4 -5
- package/dist/esm/lib/SidePanel/styles.css +11 -4
- package/dist/esm/lib/ViewLayout/ViewLayout.js +2 -0
- package/dist/esm/lib/ViewLayout/ViewLayout.js.map +1 -1
- package/dist/types/lib/ApplicationLayout/ApplicationLayout.d.ts +2 -0
- package/dist/types/lib/ApplicationLayout/ApplicationLayout.d.ts.map +1 -1
- package/dist/types/lib/ContentLayout/ContentLayout.d.ts +2 -0
- package/dist/types/lib/ContentLayout/ContentLayout.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/SideNavigation.d.ts +14 -13
- package/dist/types/lib/SideNavigation/SideNavigation.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/common/CollapseToggle/CollapseToggle.d.ts +1 -1
- package/dist/types/lib/SideNavigation/common/Content/Content.d.ts +11 -9
- package/dist/types/lib/SideNavigation/common/Content/Content.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/common/Content/types.d.ts +7 -1
- package/dist/types/lib/SideNavigation/common/Content/types.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.d.ts +4 -3
- package/dist/types/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/common/ContextSwitcher/types.d.ts +2 -2
- package/dist/types/lib/SideNavigation/common/ContextSwitcher/types.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/common/Footer/Footer.d.ts +4 -3
- package/dist/types/lib/SideNavigation/common/Footer/Footer.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/common/Group/Group.d.ts +4 -3
- package/dist/types/lib/SideNavigation/common/Group/Group.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/common/Group/types.d.ts +5 -0
- package/dist/types/lib/SideNavigation/common/Group/types.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/common/GroupHeader/GroupHeader.d.ts +1 -1
- package/dist/types/lib/SideNavigation/common/Header/Header.d.ts +1 -1
- package/dist/types/lib/SideNavigation/common/Item/Item.d.ts +1 -1
- package/dist/types/lib/SideNavigation/common/ItemButton/ItemButton.d.ts +1 -1
- package/dist/types/lib/SideNavigation/common/ItemExpandable/ItemExpandable.d.ts +1 -1
- package/dist/types/lib/SideNavigation/common/NavTree/NavTree.d.ts.map +1 -1
- package/dist/types/lib/SideNavigation/types.d.ts +9 -9
- package/dist/types/lib/SideNavigation/types.d.ts.map +1 -1
- package/dist/types/lib/SidePanel/Provider.d.ts.map +1 -1
- package/dist/types/lib/SidePanel/common/Content/Content.d.ts +1 -1
- package/dist/types/lib/SidePanel/common/Content/Content.d.ts.map +1 -1
- package/dist/types/lib/SidePanel/common/Footer/Footer.d.ts.map +1 -1
- package/dist/types/lib/ViewLayout/ViewLayout.d.ts +2 -0
- package/dist/types/lib/ViewLayout/ViewLayout.d.ts.map +1 -1
- package/package.json +21 -21
|
@@ -25,6 +25,39 @@
|
|
|
25
25
|
/* Don't hand the scroll to the page behind once the content bottoms out. */
|
|
26
26
|
overscroll-behavior: contain;
|
|
27
27
|
|
|
28
|
+
/*
|
|
29
|
+
The scroll region's edges — 2px lines marking the boundaries the header
|
|
30
|
+
and footer meet the pane at, painted only while content is hidden past
|
|
31
|
+
that edge. CSS-first: the `@supports` block at the end of this sheet
|
|
32
|
+
animates these borders against the pane's own scroll progress in the
|
|
33
|
+
engines that ship scroll-driven animations — with or without
|
|
34
|
+
JavaScript. The engines without fall back to measurement:
|
|
35
|
+
`useScrollOverflow` publishes the two edge states as
|
|
36
|
+
`data-overflow-top` / `data-overflow-bottom` (see Content.tsx), and the
|
|
37
|
+
selectors below switch the border colours on them. Engines with neither
|
|
38
|
+
paint nothing: without a measurement there is nothing to say which
|
|
39
|
+
edges overflow, and a line that cannot tell the truth is worse than
|
|
40
|
+
none.
|
|
41
|
+
|
|
42
|
+
The borders are always reserved — animation or attributes switch their
|
|
43
|
+
colour, never their width — so the lines appearing or disappearing
|
|
44
|
+
never shifts the pane. And a scroll container's borders are part of its
|
|
45
|
+
box, not its content: they stay pinned at the edges while the pane
|
|
46
|
+
scrolls. A border spans the padding box, so with the pane's inline
|
|
47
|
+
padding the lines run edge to edge across the panel while the text
|
|
48
|
+
stays in its column. The colour is the panel's to own:
|
|
49
|
+
`--side-panel-color-border` is declared in the panel's `:root` block.
|
|
50
|
+
*/
|
|
51
|
+
border-block: var(--side-panel-overflow-line-thickness) solid transparent;
|
|
52
|
+
|
|
53
|
+
&[data-overflow-top] {
|
|
54
|
+
border-block-start-color: var(--side-panel-color-border);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-overflow-bottom] {
|
|
58
|
+
border-block-end-color: var(--side-panel-color-border);
|
|
59
|
+
}
|
|
60
|
+
|
|
28
61
|
/*
|
|
29
62
|
Inline padding, not margin: the pane must span the full panel width, so
|
|
30
63
|
its scrollbar hugs the panel edge and the focus ring below reaches it,
|
|
@@ -46,4 +79,56 @@
|
|
|
46
79
|
outline-offset: calc(-1 * var(--side-panel-focus-ring-width));
|
|
47
80
|
}
|
|
48
81
|
}
|
|
82
|
+
|
|
83
|
+
/*
|
|
84
|
+
The primary mechanism, with or without JavaScript: in the engines that
|
|
85
|
+
ship scroll-driven animations the pane animates the same borders against
|
|
86
|
+
its OWN scroll progress — the engine does the measuring. Content.tsx
|
|
87
|
+
probes the same capability and stands the `useScrollOverflow` hook down
|
|
88
|
+
when it holds, so nothing is measured twice and no edge attributes
|
|
89
|
+
appear in the markup; in the engines this `@supports` test excludes, the
|
|
90
|
+
hook's attributes own the lines instead (selectors above). Engines with
|
|
91
|
+
neither mechanism paint nothing.
|
|
92
|
+
|
|
93
|
+
Each animation is narrowed to a single pixel of the scroll range by
|
|
94
|
+
`animation-range`, so the colour change reads as a switch, not a fade:
|
|
95
|
+
|
|
96
|
+
- `side-panel-line-top` runs across the FIRST pixel — before it the pane
|
|
97
|
+
sits at the top and nothing is hidden above, so the line stays
|
|
98
|
+
transparent; past it, content is hidden above and the line holds the
|
|
99
|
+
border colour (`both` fills the range's far side).
|
|
100
|
+
- `side-panel-line-bottom` runs across the LAST pixel — before it there
|
|
101
|
+
is still content below, so `both` fills the near side and the line
|
|
102
|
+
holds the border colour; across it the pane bottoms out and the line
|
|
103
|
+
turns transparent.
|
|
104
|
+
*/
|
|
105
|
+
@supports (animation-timeline: scroll()) {
|
|
106
|
+
.ds.side-panel-content {
|
|
107
|
+
animation:
|
|
108
|
+
side-panel-line-top linear both,
|
|
109
|
+
side-panel-line-bottom linear both;
|
|
110
|
+
animation-timeline: scroll(self block), scroll(self block);
|
|
111
|
+
animation-range:
|
|
112
|
+
0px 1px,
|
|
113
|
+
calc(100% - 1px) 100%;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@keyframes side-panel-line-top {
|
|
118
|
+
from {
|
|
119
|
+
border-block-start-color: transparent;
|
|
120
|
+
}
|
|
121
|
+
to {
|
|
122
|
+
border-block-start-color: var(--side-panel-color-border);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@keyframes side-panel-line-bottom {
|
|
127
|
+
from {
|
|
128
|
+
border-block-end-color: var(--side-panel-color-border);
|
|
129
|
+
}
|
|
130
|
+
to {
|
|
131
|
+
border-block-end-color: transparent;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
49
134
|
}
|
|
@@ -6,6 +6,11 @@ const componentCssClassName = "ds side-panel-footer";
|
|
|
6
6
|
* `SidePanel.Content`, which scrolls on its own, so its actions are always
|
|
7
7
|
* reachable.
|
|
8
8
|
*
|
|
9
|
+
* Actions line up at the inline-start edge. Render the primary action first —
|
|
10
|
+
* markup order is screen order. Actions that do not fit on one line wrap
|
|
11
|
+
* onto the next rather than overflow the panel, as is shown on the "Wrapping Actions"
|
|
12
|
+
* story of the sidepanel.
|
|
13
|
+
*
|
|
9
14
|
* @implements ds:apps.subcomponent.side_panel-footer
|
|
10
15
|
*/
|
|
11
16
|
const Footer = ({ children, className, ...props }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Footer/Footer.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAErD
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Footer/Footer.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACI,EAAsB,EAAE;IACpC,wEAAwE;IACxE,6EAA6E;IAC7E,qEAAqE;IACrE,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAExC,eAAe,MAAM,CAAC"}
|
|
@@ -8,25 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
flex: none;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
Closes the scroll region, marking where the content pane ends and the
|
|
13
|
-
actions begin.
|
|
11
|
+
padding-inline: var(--side-panel-padding-inline);
|
|
14
12
|
|
|
15
|
-
The colour is the panel's to own, and is read without a local fallback so
|
|
16
|
-
the two cannot state different defaults: `--side-panel-color-border` is
|
|
17
|
-
declared in the panel's `:root` block.
|
|
18
|
-
*/
|
|
19
|
-
border-block-start: var(--dimension-stroke-thickness-medium) solid
|
|
20
|
-
var(--side-panel-color-border);
|
|
21
13
|
/*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
short of both panel edges, in line with the text column.
|
|
14
|
+
Actions start at the inline-start edge, and the consumer renders the
|
|
15
|
+
primary action first: order in the markup is order on screen.
|
|
25
16
|
*/
|
|
26
|
-
margin-inline: var(--side-panel-padding-inline);
|
|
27
|
-
|
|
28
17
|
display: flex;
|
|
29
|
-
justify-content: flex-
|
|
18
|
+
justify-content: flex-start;
|
|
30
19
|
align-items: center;
|
|
31
20
|
gap: var(--side-panel-footer-gap);
|
|
32
21
|
flex-wrap: wrap;
|
|
@@ -40,16 +40,15 @@
|
|
|
40
40
|
padding-block: var(--side-panel-header-padding-block);
|
|
41
41
|
/*
|
|
42
42
|
Inline padding, not margin: nothing here needs the header's box itself
|
|
43
|
-
inset, and padding keeps it full panel width. The footer
|
|
44
|
-
|
|
45
|
-
(see Footer/styles.css).
|
|
43
|
+
inset, and padding keeps it full panel width. The footer insets its
|
|
44
|
+
actions with padding the same way.
|
|
46
45
|
*/
|
|
47
46
|
padding-inline: var(--side-panel-padding-inline);
|
|
48
47
|
|
|
49
48
|
/*
|
|
50
49
|
The title is heading text beside a control, not a control: its line box
|
|
51
|
-
is taller than the density seat line, so the typography engine seats
|
|
52
|
-
rather than the density seat. It carries `.p`, the engine's class hook
|
|
50
|
+
is far taller than the density seat line, so the typography engine seats
|
|
51
|
+
it rather than the density seat. It carries `.p`, the engine's class hook
|
|
53
52
|
for an element that is not `p` or `h1`–`h6`; this rule feeds the engine
|
|
54
53
|
the title's type in place of the paragraph values `.p` brings.
|
|
55
54
|
*/
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
:root {
|
|
16
16
|
/*
|
|
17
17
|
design-tokens 0.8.1 ships no `size/*` token, so this is a literal.
|
|
18
|
+
The default panel width (465px).
|
|
18
19
|
TODO: replace with a token when one exists.
|
|
19
20
|
*/
|
|
20
|
-
--side-panel-inline-size:
|
|
21
|
+
--side-panel-inline-size: 465px;
|
|
21
22
|
/*
|
|
22
23
|
...and no `shadow/*` token either. The shadow is what separates the panel
|
|
23
24
|
from the live page, so unlike a modal we cannot drop it.
|
|
@@ -32,11 +33,17 @@
|
|
|
32
33
|
|
|
33
34
|
--side-panel-border-radius: var(--dimension-radius-medium);
|
|
34
35
|
/*
|
|
35
|
-
The
|
|
36
|
-
takes the muted border rather than the default one — gray-100 in light mode
|
|
37
|
-
against gray-520, and gray-820 in dark so it stays pale either way.
|
|
36
|
+
The colour of the scroll region's divider lines, kept muted.
|
|
38
37
|
*/
|
|
39
38
|
--side-panel-color-border: var(--color-border-muted);
|
|
39
|
+
/*
|
|
40
|
+
The edge lines marking the scroll region when the content pane
|
|
41
|
+
overflows. The design calls for 2px; design-tokens ships no stroke
|
|
42
|
+
token at that width (the scale jumps from 1px to 3px), so this is a
|
|
43
|
+
literal.
|
|
44
|
+
TODO: replace with a token when one exists.
|
|
45
|
+
*/
|
|
46
|
+
--side-panel-overflow-line-thickness: 2px;
|
|
40
47
|
/* One inline padding, read by the header, content and footer alike. */
|
|
41
48
|
--side-panel-padding-inline: var(--dimension-300);
|
|
42
49
|
/* Block padding of the two pinned regions, so the rhythm is tunable. */
|
|
@@ -7,6 +7,8 @@ const componentCssClassName = "ds view-layout";
|
|
|
7
7
|
* Divides its space between the view content (default slot, `1fr`) and an
|
|
8
8
|
* optional contextual aside (named slot, `min-content`), per the ontology
|
|
9
9
|
* instance `apps.layout.view_layout`.
|
|
10
|
+
*
|
|
11
|
+
* @implements ds:apps.layout.view_layout
|
|
10
12
|
*/
|
|
11
13
|
const ViewLayout = ({ className, children, aside, ...props }) => {
|
|
12
14
|
return (_jsxs("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [_jsx("div", { className: "content", children: children }), aside != null && _jsx("div", { className: "aside", children: aside })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayout.js","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/ViewLayout.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"ViewLayout.js","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/ViewLayout.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAE/C;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACQ,EAAsB,EAAE;IACxC,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAET,cAAK,SAAS,EAAC,SAAS,YAAE,QAAQ,GAAO,EACxC,KAAK,IAAI,IAAI,IAAI,cAAK,SAAS,EAAC,OAAO,YAAE,KAAK,GAAO,IAClD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -7,6 +7,8 @@ import "./styles.css";
|
|
|
7
7
|
* Divides the viewport between a leading navigation rail (named slot,
|
|
8
8
|
* `min-content`) and the main content area (default slot, `1fr`), per the
|
|
9
9
|
* ontology instance `apps.layout.application_layout`.
|
|
10
|
+
*
|
|
11
|
+
* @implements ds:apps.layout.application_layout
|
|
10
12
|
*/
|
|
11
13
|
declare const ApplicationLayout: ({ className, children, navigation, ...props }: ApplicationLayoutProps) => React.ReactElement;
|
|
12
14
|
export default ApplicationLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;AAItB
|
|
1
|
+
{"version":3,"file":"ApplicationLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,iBAAiB,kDAKpB,sBAAsB,KAAG,KAAK,CAAC,YAUjC,CAAC;eAEa,iBAAiB"}
|
|
@@ -9,6 +9,8 @@ import "./styles.css";
|
|
|
9
9
|
* fixed-responsive breakpoint columns by default, or the intrinsic
|
|
10
10
|
* (fluid auto-fill) grid via `grid="intrinsic"`. Children are grid items;
|
|
11
11
|
* span them via `grid-column`/`grid-row` where a card needs more room.
|
|
12
|
+
*
|
|
13
|
+
* @implements ds:apps.layout.content_layout
|
|
12
14
|
*/
|
|
13
15
|
declare const ContentLayout: ({ className, children, grid, ...props }: ContentLayoutProps) => React.ReactElement;
|
|
14
16
|
export default ContentLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ContentLayout/ContentLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,cAAc,CAAC;AAItB
|
|
1
|
+
{"version":3,"file":"ContentLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ContentLayout/ContentLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;GAUG;AACH,QAAA,MAAM,aAAa,4CAKhB,kBAAkB,KAAG,KAAK,CAAC,YAW7B,CAAC;eAEa,aAAa"}
|
|
@@ -7,17 +7,18 @@ import "./styles.css";
|
|
|
7
7
|
* `defaultExpanded` — and wires the header's collapse toggle to the content
|
|
8
8
|
* region it controls.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* ContextSwitcher
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* `<nav>` and defaults to
|
|
10
|
+
* Three regions: Header (branding, collapse toggle), Content (the
|
|
11
|
+
* optional ContextSwitcher, then the main `<nav>` landmark) and Footer
|
|
12
|
+
* (user profile, settings and non-navigational actions). The context
|
|
13
|
+
* switcher is a `role="menu"` select-like widget — not navigation — so it
|
|
14
|
+
* sits before the landmark, not inside it, and hides with Content when
|
|
15
|
+
* collapsed. The root element is a plain `<div>` and the component's
|
|
16
|
+
* single *navigation* landmark is Content's `<nav>`, so screen readers
|
|
17
|
+
* announce exactly one navigation region; the regions themselves are
|
|
18
|
+
* `<header>`/`<footer>` elements, which additionally expose
|
|
19
|
+
* banner/contentinfo landmarks. The footer always renders, empty without
|
|
20
|
+
* `footerRoot`. `aria-label` is forwarded to the `<nav>` and defaults to
|
|
21
|
+
* `"Main navigation"`.
|
|
21
22
|
*
|
|
22
23
|
* A visually hidden "Skip to main content" link is the first element in the
|
|
23
24
|
* component's DOM order, so keyboard users can bypass the navigation block;
|
|
@@ -27,12 +28,12 @@ import "./styles.css";
|
|
|
27
28
|
* pass a router `Link` to integrate client-side navigation. The active item is
|
|
28
29
|
* resolved from `currentUrl`.
|
|
29
30
|
*
|
|
30
|
-
* Consumption pattern: data-driven only. Pass props and all
|
|
31
|
+
* Consumption pattern: data-driven only. Pass props and all three regions
|
|
31
32
|
* build; row-level and region components are private
|
|
32
33
|
* (`cs:react.component.subcomponent_export_api` — no dot-static exports),
|
|
33
34
|
* and render exclusively from data.
|
|
34
35
|
*
|
|
35
|
-
* @implements ds:apps.
|
|
36
|
+
* @implements ds:apps.component.side_navigation
|
|
36
37
|
*/
|
|
37
38
|
declare const SideNavigation: ({ className, brand, applicationName, root, contextSwitcher, footerRoot, LinkComponent, currentUrl, skipTo, defaultExpanded: defaultExpandedProp, keyboardShortcut, "aria-label": ariaLabel, messages: messagesProp, ...props }: SideNavigationProps) => React.ReactElement;
|
|
38
39
|
export default SideNavigation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNavigation.d.ts","sourceRoot":"","sources":["../../../../src/lib/SideNavigation/SideNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,cAAc,CAAC;AAItB
|
|
1
|
+
{"version":3,"file":"SideNavigation.d.ts","sourceRoot":"","sources":["../../../../src/lib/SideNavigation/SideNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,cAAc,mOAejB,mBAAmB,KAAG,KAAK,CAAC,YA4D9B,CAAC;eAEa,cAAc"}
|
|
@@ -14,7 +14,7 @@ import "./styles.css";
|
|
|
14
14
|
* type across state changes, so the button — and with it keyboard focus
|
|
15
15
|
* and hover state — survives every toggle instead of remounting.
|
|
16
16
|
*
|
|
17
|
-
* @implements ds:apps.subcomponent.
|
|
17
|
+
* @implements ds:apps.subcomponent.side_navigation-collapse_toggle
|
|
18
18
|
*/
|
|
19
19
|
declare const CollapseToggle: ({ expanded, messages, ...props }: CollapseToggleProps) => React.ReactElement;
|
|
20
20
|
export default CollapseToggle;
|
|
@@ -2,16 +2,18 @@ import type React from "react";
|
|
|
2
2
|
import type { ContentProps } from "./types.js";
|
|
3
3
|
import "./styles.css";
|
|
4
4
|
/**
|
|
5
|
-
* SideNavigation.Content — the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
5
|
+
* SideNavigation.Content — the scrolling region between Header and Footer.
|
|
6
|
+
* It holds the optional context switcher and, after it, the component's
|
|
7
|
+
* only `<nav>` landmark. The switcher is a `role="menu"` widget, not
|
|
8
|
+
* navigation, so it sits outside the landmark. Navigation rows are links
|
|
9
|
+
* and expandable items exclusively (actions are Footer's job). Data-only —
|
|
10
|
+
* rows render exclusively from the `root` tree (row components are
|
|
11
|
+
* private; there is no children escape hatch into the landmark).
|
|
12
|
+
* `aria-label` names the `<nav>`; with no `root`, the landmark renders
|
|
13
|
+
* empty (the landmark contract stays stable).
|
|
12
14
|
*
|
|
13
|
-
* @implements ds:apps.subcomponent.
|
|
15
|
+
* @implements ds:apps.subcomponent.side_navigation-content
|
|
14
16
|
*/
|
|
15
|
-
declare const Content: ({ className, root, LinkComponent, currentUrl, ...props }: ContentProps) => React.ReactElement;
|
|
17
|
+
declare const Content: ({ className, root, contextSwitcher, LinkComponent, currentUrl, "aria-label": ariaLabel, ...props }: ContentProps) => React.ReactElement;
|
|
16
18
|
export default Content;
|
|
17
19
|
//# sourceMappingURL=Content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,OAAO,uGAQV,YAAY,KAAG,KAAK,CAAC,YAkBvB,CAAC;eAEa,OAAO"}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import type { ComponentProps, ComponentType } from "react";
|
|
2
2
|
import type { LinkComponentProps, NavRoot } from "../../types.js";
|
|
3
|
+
import type { ContextSwitcherProps } from "../ContextSwitcher/types.js";
|
|
3
4
|
type OwnProps = {
|
|
4
5
|
/** Root whose direct children render as groups — see NavRoot. */
|
|
5
6
|
root?: NavRoot;
|
|
7
|
+
/** The context switcher, rendered before the `<nav>` landmark. Omitted renders none. */
|
|
8
|
+
contextSwitcher?: ContextSwitcherProps;
|
|
6
9
|
/** Component used to render navigable items. Defaults to `"a"`. */
|
|
7
10
|
LinkComponent?: ComponentType<LinkComponentProps> | "a";
|
|
8
11
|
/** Live current location; resolves and keeps the active item in sync. */
|
|
9
12
|
currentUrl?: string;
|
|
13
|
+
/** The `<nav>` landmark's name. */
|
|
14
|
+
"aria-label"?: string;
|
|
10
15
|
};
|
|
11
|
-
|
|
16
|
+
/** The native attributes go to the region's root `<div>`; `aria-label` to the `<nav>`. */
|
|
17
|
+
export type ContentProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps | "children">;
|
|
12
18
|
export {};
|
|
13
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,KAAK,QAAQ,GAAG;IACd,iEAAiE;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wFAAwF;IACxF,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,mEAAmE;IACnE,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,0FAA0F;AAC1F,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -10,10 +10,11 @@ import "./styles.css";
|
|
|
10
10
|
* `SideNavigation.GroupHeader` as a sibling above the dropdown field.
|
|
11
11
|
*
|
|
12
12
|
* Not part of the `NavRoot`/`NavGroup` content-tree data model — it
|
|
13
|
-
* embeds via `SideNavigation`'s `contextSwitcher` prop slot
|
|
14
|
-
*
|
|
13
|
+
* embeds via `SideNavigation`'s `contextSwitcher` prop slot and renders
|
|
14
|
+
* inside Content, before the `<nav>` landmark, hiding with Content on the
|
|
15
|
+
* collapsed rail.
|
|
15
16
|
*
|
|
16
|
-
* @implements ds:apps.subcomponent.
|
|
17
|
+
* @implements ds:apps.subcomponent.side_navigation-context_switcher
|
|
17
18
|
*/
|
|
18
19
|
declare const ContextSwitcher: ({ title, currentContext, contexts, onContextChange, onCreateContext, createContextLabel, className, open, onOpenChange, preferredDirections, distance, gutter, maxWidth, autoFit, ...props }: ContextSwitcherProps) => React.ReactElement;
|
|
19
20
|
export default ContextSwitcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextSwitcher.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAuB,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,cAAc,CAAC;AAmDtB
|
|
1
|
+
{"version":3,"file":"ContextSwitcher.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAuB,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,cAAc,CAAC;AAmDtB;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,eAAe,iMAgBlB,oBAAoB,KAAG,KAAK,CAAC,YAkE/B,CAAC;eAEa,eAAe"}
|
|
@@ -14,8 +14,8 @@ export interface ContextSwitcherItem {
|
|
|
14
14
|
* Omitted, the context stays a pure action.
|
|
15
15
|
*/
|
|
16
16
|
url?: string;
|
|
17
|
-
/**
|
|
18
|
-
description
|
|
17
|
+
/** Supporting text shown under the name in the list. Required by the anatomy. */
|
|
18
|
+
description: string;
|
|
19
19
|
/** Optional badge for dynamic/actionable information. */
|
|
20
20
|
badge?: ReactNode;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,sEAAsE;AACtE,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,sEAAsE;AACtE,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,KAAK,QAAQ,GAAG,IAAI,CAClB,mBAAmB,EACjB,MAAM,GACN,cAAc,GACd,qBAAqB,GACrB,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,CACZ,GAAG;IACF;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mEAAmE;IACnE,cAAc,EAAE,mBAAmB,CAAC;IACpC,qDAAqD;IACrD,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,sEAAsE;IACtE,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACzD,6EAA6E;IAC7E,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,SAAS,CAAC;CAChC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GACzC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -2,15 +2,16 @@ import type React from "react";
|
|
|
2
2
|
import type { FooterProps } from "./types.js";
|
|
3
3
|
import "./styles.css";
|
|
4
4
|
/**
|
|
5
|
-
* SideNavigation.Footer —
|
|
6
|
-
*
|
|
5
|
+
* SideNavigation.Footer — the region pinned to the bottom, reserved for
|
|
6
|
+
* user-related content. It always renders; without items it is an empty
|
|
7
|
+
* `<footer>`. Data-only: `root` is the footer's only data
|
|
7
8
|
* surface — free-form leaves (`LeafFooterItem`, buttons via
|
|
8
9
|
* `control`/`onClick`) and depth-1 expandables (`ExpandableFooterItem`,
|
|
9
10
|
* whose children disclose through the same native `<details>` disclosure
|
|
10
11
|
* the content tree uses). A certificate-user application, for instance,
|
|
11
12
|
* composes the `certificate` icon and omits the logout item itself.
|
|
12
13
|
*
|
|
13
|
-
* @implements ds:apps.subcomponent.
|
|
14
|
+
* @implements ds:apps.subcomponent.side_navigation-footer
|
|
14
15
|
*/
|
|
15
16
|
declare const Footer: ({ className, root, LinkComponent, currentUrl, ...props }: FooterProps) => React.ReactElement;
|
|
16
17
|
export default Footer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;AA2DtB
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;AA2DtB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,MAAM,6DAMT,WAAW,KAAG,KAAK,CAAC,YAqDtB,CAAC;eAEa,MAAM"}
|
|
@@ -4,10 +4,11 @@ import "./styles.css";
|
|
|
4
4
|
/**
|
|
5
5
|
* SideNavigation.Group — a named collection of navigation entries, with an
|
|
6
6
|
* optional SideNavigation.GroupHeader. One of NavTree's direct content
|
|
7
|
-
* entries.
|
|
7
|
+
* entries. Starts with a divider when `divider` is set (every group but
|
|
8
|
+
* the first).
|
|
8
9
|
*
|
|
9
|
-
* @implements ds:apps.subcomponent.
|
|
10
|
+
* @implements ds:apps.subcomponent.side_navigation-item_group
|
|
10
11
|
*/
|
|
11
|
-
declare const Group: ({ label, children, className, ...props }: GroupProps) => React.ReactElement;
|
|
12
|
+
declare const Group: ({ label, divider: _divider, children, className, ...props }: GroupProps) => React.ReactElement;
|
|
12
13
|
export default Group;
|
|
13
14
|
//# sourceMappingURL=Group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,QAAA,MAAM,KAAK,gEAOR,UAAU,KAAG,KAAK,CAAC,YASrB,CAAC;eAEa,KAAK"}
|
|
@@ -2,6 +2,11 @@ import type { ComponentProps, ReactNode } from "react";
|
|
|
2
2
|
type OwnProps = {
|
|
3
3
|
/** Group header text, rendered via GroupHeader. Omitted when absent. */
|
|
4
4
|
label?: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Whether the group starts with a divider. The anatomy draws one before
|
|
7
|
+
* every group except the first; the parent laying the groups out decides.
|
|
8
|
+
*/
|
|
9
|
+
divider?: boolean;
|
|
5
10
|
/** The group's navigation entries (Item / ItemExpandable / consumer-supplied). */
|
|
6
11
|
children?: ReactNode;
|
|
7
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ import "./styles.css";
|
|
|
6
6
|
* SideNavigation.Group's entries. Purely presentational; rendered by Group
|
|
7
7
|
* when its `label` is set.
|
|
8
8
|
*
|
|
9
|
-
* @implements ds:apps.subcomponent.
|
|
9
|
+
* @implements ds:apps.subcomponent.side_navigation-group_header
|
|
10
10
|
*/
|
|
11
11
|
declare const GroupHeader: ({ children, className, ...props }: GroupHeaderProps) => React.ReactElement;
|
|
12
12
|
export default GroupHeader;
|
|
@@ -8,7 +8,7 @@ import "./styles.css";
|
|
|
8
8
|
* switches to a centred column — the toggle relocates below the logo rather
|
|
9
9
|
* than beside it — driven by `data-expanded` on the root.
|
|
10
10
|
*
|
|
11
|
-
* @implements ds:apps.subcomponent.
|
|
11
|
+
* @implements ds:apps.subcomponent.side_navigation-header
|
|
12
12
|
*/
|
|
13
13
|
declare const Header: ({ className, brand, applicationName, expanded, onToggle, collapseControls, collapseToggleMessages, ...props }: HeaderProps) => React.ReactElement;
|
|
14
14
|
export default Header;
|
|
@@ -13,7 +13,7 @@ import "./styles.css";
|
|
|
13
13
|
* composed via `children`, matching `Button`'s own convention — pass
|
|
14
14
|
* anything, not only text.
|
|
15
15
|
*
|
|
16
|
-
* @implements ds:apps.subcomponent.
|
|
16
|
+
* @implements ds:apps.subcomponent.side_navigation-item
|
|
17
17
|
*/
|
|
18
18
|
declare const Item: ({ url, children, icon, slot, disabled, active, LinkComponent, className, ...props }: ItemProps) => React.ReactElement;
|
|
19
19
|
export default Item;
|
|
@@ -10,7 +10,7 @@ import "./styles.css";
|
|
|
10
10
|
* `children`. Content is composed via `children`,
|
|
11
11
|
* matching `Button`'s own convention.
|
|
12
12
|
*
|
|
13
|
-
* @implements ds:apps.subcomponent.
|
|
13
|
+
* @implements ds:apps.subcomponent.side_navigation-item_button
|
|
14
14
|
*/
|
|
15
15
|
declare const ItemButton: ({ children, icon, slot, className, ...props }: ItemButtonProps) => React.ReactElement;
|
|
16
16
|
export default ItemButton;
|
|
@@ -19,7 +19,7 @@ import "./styles.css";
|
|
|
19
19
|
* among the `children` collapses the disclosure. The content tree does not
|
|
20
20
|
* opt in: its branch stays open so the active row remains visible.
|
|
21
21
|
*
|
|
22
|
-
* @implements ds:apps.subcomponent.
|
|
22
|
+
* @implements ds:apps.subcomponent.side_navigation-item_expandable
|
|
23
23
|
*/
|
|
24
24
|
declare const ItemExpandable: ({ heading, icon, disabled, defaultExpanded, collapseOnChildClick, children, className, ...props }: ItemExpandableProps) => React.ReactElement;
|
|
25
25
|
export default ItemExpandable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/NavTree/NavTree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAoDtB;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,OAAO,6DAMV,YAAY,KAAG,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/NavTree/NavTree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAoDtB;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,OAAO,6DAMV,YAAY,KAAG,KAAK,CAAC,YAoFvB,CAAC;eAEa,OAAO"}
|
|
@@ -160,7 +160,8 @@ type OwnProps = {
|
|
|
160
160
|
/**
|
|
161
161
|
* The footer's only data surface: free-form leaves (`LeafFooterItem`) and
|
|
162
162
|
* depth-1 expandables (`ExpandableFooterItem`), rendered as the footer's
|
|
163
|
-
* rows in the order given.
|
|
163
|
+
* rows in the order given. The footer region always renders: omitted (or
|
|
164
|
+
* empty), it is an empty `<footer>`.
|
|
164
165
|
*/
|
|
165
166
|
footerRoot?: FooterRoot;
|
|
166
167
|
/**
|
|
@@ -183,10 +184,9 @@ type OwnProps = {
|
|
|
183
184
|
*/
|
|
184
185
|
keyboardShortcut?: boolean;
|
|
185
186
|
/**
|
|
186
|
-
* The context
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* the `<nav>` landmark. Omitted renders no region. See
|
|
187
|
+
* The context switcher's props (typed slot), rendered inside Content,
|
|
188
|
+
* before the `<nav>` landmark — a `role="menu"` select-like widget is not
|
|
189
|
+
* navigation, so it sits outside the landmark. Omitted renders none. See
|
|
190
190
|
* `ContextSwitcherProps`.
|
|
191
191
|
*/
|
|
192
192
|
contextSwitcher?: ContextSwitcherProps;
|
|
@@ -198,15 +198,15 @@ type OwnProps = {
|
|
|
198
198
|
messages?: Partial<SideNavigationMessages>;
|
|
199
199
|
};
|
|
200
200
|
/**
|
|
201
|
-
* SideNavigation's root is a plain `<div>` layout container — Header,
|
|
202
|
-
* optional ContextSwitcher
|
|
203
|
-
*
|
|
201
|
+
* SideNavigation's root is a plain `<div>` layout container — Header,
|
|
202
|
+
* Content (the optional ContextSwitcher, then the `<nav>` landmark), and
|
|
203
|
+
* Footer. The navigation landmark belongs to `Content`
|
|
204
204
|
* alone (branding, the context switcher, and the footer's actions are not
|
|
205
205
|
* navigation); `aria-label` is forwarded there and defaults to
|
|
206
206
|
* `"Main navigation"`. Native attribute pass-through follows the root
|
|
207
207
|
* element (`ComponentProps<"div">`).
|
|
208
208
|
*
|
|
209
|
-
* Consumption pattern: data-driven only — pass props and all
|
|
209
|
+
* Consumption pattern: data-driven only — pass props and all three regions
|
|
210
210
|
* build. Every subcomponent is private
|
|
211
211
|
* (`cs:react.component.subcomponent_export_api`): nothing is dot-static
|
|
212
212
|
* exported, and subcomponents render exclusively from data.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/SideNavigation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,+EAA+E;IAC/E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2GAA2G;IAC3G,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,wDAAwD;IACxD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG;IAClE,+EAA+E;IAC/E,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB,CAAC;AAEF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