@takecasper/acuity-design-system 2.4.5 → 2.5.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.
@@ -1,7 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
2
  interface AppLayoutProps {
3
+ /**
4
+ * The page content. AppLayout doesn't add a `main` landmark, so the page should
5
+ * put its main content in one `<main>` element.
6
+ */
3
7
  children: ReactNode;
4
- /** Sidebar navigation content (menu items, institution selector, user profile, etc.) */
8
+ /**
9
+ * The app's navigation links, usually a list of links to its sections. AppLayout
10
+ * wraps this slot in the navigation landmark, so pass the links themselves, not your
11
+ * own `<nav>`. A button that shows or hides a group of links belongs here too.
12
+ */
5
13
  navigationSlot: ReactNode;
6
14
  /**
7
15
  * Logo shown in the fixed desktop sidebar, which appears at the theme's `md` breakpoint
@@ -25,7 +33,16 @@ interface AppLayoutProps {
25
33
  isSideDrawerOpen?: boolean;
26
34
  /** Override the background colour of the shell */
27
35
  backgroundColor?: string;
36
+ /**
37
+ * Accessible name of the navigation landmark, in the desktop sidebar and in the mobile
38
+ * drawer. Defaults to "Main navigation", so apps and tests that find the landmark by
39
+ * that name keep working. Screen readers announce the landmark's role with its name,
40
+ * so "Main navigation" can be read as "Main navigation navigation". A name without the
41
+ * word, such as "Main", avoids that. Supplied by the consuming app so the copy can be
42
+ * translated there.
43
+ */
44
+ navigationAriaLabel?: string;
28
45
  }
29
- export declare const AppLayout: ({ children, navigationSlot, logoSlot, mobileLogoSlot, headerSlot, sideDrawerSlot, sideDrawerWidth, isSideDrawerOpen, backgroundColor }: AppLayoutProps) => import("react").JSX.Element;
46
+ export declare const AppLayout: ({ children, navigationSlot, logoSlot, mobileLogoSlot, headerSlot, sideDrawerSlot, sideDrawerWidth, isSideDrawerOpen, backgroundColor, navigationAriaLabel }: AppLayoutProps) => import("react").JSX.Element;
30
47
  export default AppLayout;
31
48
  //# sourceMappingURL=AppLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppLayout.d.ts","sourceRoot":"","sources":["../../../src/components/AppLayout/AppLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAO/D,UAAU,cAAc;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,wFAAwF;IACxF,cAAc,EAAE,SAAS,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,iFAAiF;IACjF,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAsED,eAAO,MAAM,SAAS,GAAI,wIAUvB,cAAc,gCA2KhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"AppLayout.d.ts","sourceRoot":"","sources":["../../../src/components/AppLayout/AppLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAO/D,UAAU,cAAc;IACtB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,cAAc,EAAE,SAAS,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,iFAAiF;IACjF,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAsED,eAAO,MAAM,SAAS,GAAI,6JAWvB,cAAc,gCAiLhB,CAAC;AAEF,eAAe,SAAS,CAAC"}