dap-design-system 0.57.10 → 0.57.11

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.
@@ -1,5 +1,10 @@
1
1
  import { PropertyValueMap } from 'lit';
2
2
  import { DdsElement } from '../../internal/dds-hu-element';
3
+ declare const LANDMARK_TAGS: {
4
+ readonly aside: import('lit-html/static.js').StaticValue;
5
+ readonly nav: import('lit-html/static.js').StaticValue;
6
+ };
7
+ export type SideNavLandmark = keyof typeof LANDMARK_TAGS;
3
8
  /**
4
9
  * `dap-ds-sidenav`
5
10
  * @summary Side navigation is a list of links that are used to navigate to different sections of a page.
@@ -20,6 +25,18 @@ export default class DapDSSideNav extends DdsElement {
20
25
  activeHref: string;
21
26
  /** The size of the side navigation */
22
27
  size: 'xs' | 'sm' | 'lg';
28
+ /**
29
+ * The landmark element to render. `aside` exposes a complementary landmark; `nav`
30
+ * exposes a navigation landmark, so the sidenav is listed when a screen-reader user
31
+ * asks for the page's navigation.
32
+ *
33
+ * Defaults to `aside` because that is what this component has always rendered, and
34
+ * changing the landmark of every existing sidenav is not this component's call: a
35
+ * sidenav that is genuinely a sidebar should stay complementary. Set `nav` when the
36
+ * sidenav is the primary way to move around the view.
37
+ * @type {'aside' | 'nav'}
38
+ */
39
+ landmark: SideNavLandmark;
23
40
  static readonly styles: import('lit').CSSResult;
24
41
  protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
25
42
  attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
@@ -28,3 +45,4 @@ export default class DapDSSideNav extends DdsElement {
28
45
  private handleClick;
29
46
  render(): import('lit-html').TemplateResult;
30
47
  }
48
+ export {};