@takecasper/acuity-design-system 2.4.4 → 2.4.5
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.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 +2667 -2628
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,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"}
|
|
@@ -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"}
|