@takecasper/acuity-design-system 2.4.4 → 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.
- package/dist/components/AppLayout/AppLayout.d.ts +19 -2
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayoutDrawer.d.ts +21 -1
- package/dist/components/AppLayout/AppLayoutDrawer.d.ts.map +1 -1
- package/dist/index.cjs +39 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +4434 -4388
- package/dist/index.es.js.map +1 -1
- package/package.json +18 -7
|
@@ -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
|
-
/**
|
|
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,
|
|
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"}
|
|
@@ -2,8 +2,28 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
interface AppLayoutDrawerProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
isOpen: boolean;
|
|
5
|
+
/** Called when the user presses Escape or clicks the backdrop. */
|
|
5
6
|
onClose: () => void;
|
|
7
|
+
/**
|
|
8
|
+
* Accessible name of the drawer, which is a modal dialog. Screen readers announce it
|
|
9
|
+
* when the drawer opens. Defaults to "Navigation menu", to match AppLayout's
|
|
10
|
+
* "Open navigation menu" button. An app that renders AppLayoutDrawer itself can pass
|
|
11
|
+
* a translated name. AppLayout uses the English default.
|
|
12
|
+
*/
|
|
13
|
+
ariaLabel?: string;
|
|
6
14
|
}
|
|
7
|
-
|
|
15
|
+
/**
|
|
16
|
+
* A modal drawer that slides in from the left: MUI's temporary `Drawer`. When it
|
|
17
|
+
* opens, focus moves into it, and Tab and Shift+Tab stay inside it. Escape or a click
|
|
18
|
+
* on the backdrop calls `onClose`, and focus goes back to the element that had it
|
|
19
|
+
* before the drawer opened.
|
|
20
|
+
*
|
|
21
|
+
* The drawer and its backdrop are absolutely positioned, so they cover the nearest
|
|
22
|
+
* positioned ancestor, not the window. They render in the element that the
|
|
23
|
+
* `ContentPanelContext` provider points to, such as AppLayout's content panel, or
|
|
24
|
+
* without a provider, in the drawer's parent element. While the drawer is open, that
|
|
25
|
+
* element doesn't scroll, and screen readers ignore its other children.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AppLayoutDrawer: ({ children, isOpen, onClose, ariaLabel }: AppLayoutDrawerProps) => import("react").JSX.Element;
|
|
8
28
|
export default AppLayoutDrawer;
|
|
9
29
|
//# sourceMappingURL=AppLayoutDrawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayoutDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/AppLayout/AppLayoutDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"AppLayoutDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/AppLayout/AppLayoutDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAIvD,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAI,0CAK7B,oBAAoB,gCA4EtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|