@instructure/ui-drawer-layout 10.26.1-snapshot-2 → 10.26.1
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/CHANGELOG.md +2 -23
- package/es/DrawerLayout/DrawerContent/index.js +6 -6
- package/es/DrawerLayout/DrawerContent/props.js +9 -1
- package/es/DrawerLayout/DrawerTray/index.js +6 -6
- package/es/DrawerLayout/DrawerTray/props.js +32 -1
- package/es/DrawerLayout/__fixtures__/DrawerLayout.fixture.js +8 -0
- package/es/DrawerLayout/index.js +6 -6
- package/es/DrawerLayout/props.js +12 -1
- package/lib/DrawerLayout/DrawerContent/index.js +5 -5
- package/lib/DrawerLayout/DrawerContent/props.js +10 -1
- package/lib/DrawerLayout/DrawerTray/index.js +5 -5
- package/lib/DrawerLayout/DrawerTray/props.js +33 -1
- package/lib/DrawerLayout/__fixtures__/DrawerLayout.fixture.js +9 -0
- package/lib/DrawerLayout/index.js +5 -5
- package/lib/DrawerLayout/props.js +13 -1
- package/package.json +22 -19
- package/src/DrawerLayout/DrawerContent/index.tsx +4 -2
- package/src/DrawerLayout/DrawerContent/props.ts +12 -1
- package/src/DrawerLayout/DrawerTray/index.tsx +4 -2
- package/src/DrawerLayout/DrawerTray/props.ts +41 -1
- package/src/DrawerLayout/__fixtures__/DrawerLayout.fixture.tsx +9 -0
- package/src/DrawerLayout/index.tsx +4 -2
- package/src/DrawerLayout/props.ts +18 -1
- package/tsconfig.build.json +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DrawerLayout/DrawerContent/index.d.ts +7 -0
- package/types/DrawerLayout/DrawerContent/index.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerContent/props.d.ts +3 -2
- package/types/DrawerLayout/DrawerContent/props.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerTray/index.d.ts +17 -0
- package/types/DrawerLayout/DrawerTray/index.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerTray/props.d.ts +3 -2
- package/types/DrawerLayout/DrawerTray/props.d.ts.map +1 -1
- package/types/DrawerLayout/__fixtures__/DrawerLayout.fixture.d.ts +8 -0
- package/types/DrawerLayout/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
- package/types/DrawerLayout/index.d.ts +1 -0
- package/types/DrawerLayout/index.d.ts.map +1 -1
- package/types/DrawerLayout/props.d.ts +3 -1
- package/types/DrawerLayout/props.d.ts.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AriaRole } from 'react';
|
|
2
|
-
import type { DrawerLayoutContentTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
2
|
+
import type { PropValidators, DrawerLayoutContentTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
type DrawerContentSize = {
|
|
5
5
|
width: number;
|
|
@@ -22,7 +22,8 @@ type PropKeys = keyof DrawerLayoutContentOwnProps;
|
|
|
22
22
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
23
23
|
type DrawerLayoutContentProps = DrawerLayoutContentOwnProps & WithStyleProps<DrawerLayoutContentTheme, DrawerLayoutContentStyle> & OtherHTMLAttributes<DrawerLayoutContentOwnProps>;
|
|
24
24
|
type DrawerLayoutContentStyle = ComponentStyle<'drawerContent'>;
|
|
25
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
25
26
|
declare const allowedProps: AllowedPropKeys;
|
|
26
27
|
export type { DrawerLayoutContentProps, DrawerLayoutContentStyleProps, DrawerLayoutContentStyle, DrawerContentSize };
|
|
27
|
-
export { allowedProps };
|
|
28
|
+
export { propTypes, allowedProps };
|
|
28
29
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerContent/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO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,6BAA6B,EAC7B,wBAAwB,EACxB,iBAAiB,EAClB,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -11,6 +11,23 @@ id: DrawerLayout.Tray
|
|
|
11
11
|
declare class DrawerTray extends Component<DrawerLayoutTrayProps, DrawerLayoutTrayState> {
|
|
12
12
|
static readonly componentId: "DrawerLayout.Tray";
|
|
13
13
|
static locatorAttribute: string;
|
|
14
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"label" | "children" | "contentRef" | "dir" | "open" | "border" | "render" | "placement" | "onOpen" | "onClose" | "shadow" | "mountNode" | keyof {
|
|
15
|
+
defaultFocusElement?: import("@instructure/shared-types").UIElement;
|
|
16
|
+
liveRegion?: import("@instructure/shared-types").LiveRegion;
|
|
17
|
+
onDismiss?: (event: React.UIEvent | React.FocusEvent, documentClick?: boolean) => void;
|
|
18
|
+
shouldContainFocus?: boolean;
|
|
19
|
+
shouldReturnFocus?: boolean;
|
|
20
|
+
shouldCloseOnDocumentClick?: boolean;
|
|
21
|
+
shouldCloseOnEscape?: boolean;
|
|
22
|
+
} | keyof {
|
|
23
|
+
onTransition?: (toState: import("@instructure/ui-motion").BaseTransitionStatesType, fromState: import("@instructure/ui-motion").BaseTransitionStatesType) => void;
|
|
24
|
+
onEnter?: () => void;
|
|
25
|
+
onEntering?: () => void;
|
|
26
|
+
onEntered?: (type?: TransitionType) => void;
|
|
27
|
+
onExit?: () => void;
|
|
28
|
+
onExiting?: () => void;
|
|
29
|
+
onExited?: (type?: TransitionType) => void;
|
|
30
|
+
}>;
|
|
14
31
|
static allowedProps: readonly ("label" | "children" | "contentRef" | "dir" | "open" | "border" | "render" | "placement" | "onOpen" | "onClose" | "shadow" | "mountNode" | keyof {
|
|
15
32
|
defaultFocusElement?: import("@instructure/shared-types").UIElement;
|
|
16
33
|
liveRegion?: import("@instructure/shared-types").LiveRegion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAM5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAQxD,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,SAAS,CAAA;AAEhB;;;;;GAKG;AACH,cAGM,UAAW,SAAQ,SAAS,CAChC,qBAAqB,EACrB,qBAAqB,CACtB;IACC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAG,mBAAmB,CAAS;IAE1D,MAAM,CAAC,gBAAgB,SAAqB;IAE5C,MAAM,CAAC,SAAS;;;2EA4Cd,CAAA;;;;;;;;;yBAuCI,CAAC;;;wBAmBA,CAAC;OAtGoB;IAC5B,MAAM,CAAC,YAAY;;;2EA2CjB,CAAA;;;;;;;;;yBAuCI,CAAC;;;wBAmBA,CAAC;SArG0B;IAClC,MAAM,CAAC,YAAY;;;;;;;;;MASlB;IAED,GAAG,EAAE,cAAc,GAAG,IAAI,CAAO;IAEjC,OAAO,CAAC,QAAQ,CAAmB;IAEnC,IAAI,QAAQ,0BAMX;gBAEW,KAAK,EAAE,qBAAqB;IASxC,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,EAAE,qBAAqB;IASnD,cAAc,QAAO,0BAA0B,CAI9C;IAED,IAAI,SAAS,IAKN,mBAAmB,CACzB;IAED,IAAI,UAAU,IAAI,cAAc,CAE/B;IAED,gBAAgB,GAAI,MAAM,cAAc,GAAG,IAAI,UAM9C;IAED,uBAAuB,GAAI,kBAAkB,cAAc,UAE1D;IAED,sBAAsB,GAAI,kBAAkB,cAAc,UAIzD;IAED,gBAAgB,GAAI,SAAS,UAAU,UAKtC;IAED,IAAI,OAAO,IAIK,UAAU,CAFzB;IAED,IAAI,OAAO,CAAC,EAAE,EAAE,UAAU,EAEzB;IAED,aAAa;IAWb,MAAM;CA+GP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { PositionMountNode } from '@instructure/ui-position';
|
|
3
3
|
import type { TextDirectionContextConsumerProps } from '@instructure/ui-i18n';
|
|
4
4
|
import type { ComponentStyle, WithStyleProps } from '@instructure/emotion';
|
|
5
|
-
import type { DrawerLayoutTrayTheme, LiveRegion, OtherHTMLAttributes, UIElement } from '@instructure/shared-types';
|
|
5
|
+
import type { DrawerLayoutTrayTheme, LiveRegion, OtherHTMLAttributes, PropValidators, UIElement } from '@instructure/shared-types';
|
|
6
6
|
import { BaseTransitionStatesType, TransitionType } from '@instructure/ui-motion/src/Transition/BaseTransition/props';
|
|
7
7
|
type DrawerTrayPlacement = 'start' | 'end';
|
|
8
8
|
type DrawerLayoutTrayOwnProps = {
|
|
@@ -105,7 +105,8 @@ type PropKeys = keyof DrawerLayoutTrayOwnProps;
|
|
|
105
105
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
106
106
|
type DrawerLayoutTrayProps = DrawerLayoutTrayOwnProps & WithStyleProps<DrawerLayoutTrayTheme, DrawerLayoutTrayStyle> & OtherHTMLAttributes<DrawerLayoutTrayOwnProps>;
|
|
107
107
|
type DrawerLayoutTrayStyle = ComponentStyle<'drawerTray' | 'drawerTrayWithShadow' | 'drawerTrayContent'>;
|
|
108
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
108
109
|
declare const allowedProps: AllowedPropKeys;
|
|
109
110
|
export type { DrawerLayoutTrayProps, DrawerLayoutTrayState, DrawerLayoutTrayStyle, DrawerLayoutTrayStyleProps, DrawerTrayPlacement };
|
|
110
|
-
export { allowedProps };
|
|
111
|
+
export { allowedProps, propTypes };
|
|
111
112
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,sBAAsB,CAAA;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,SAAS,EACV,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,wBAAwB,EACxB,cAAc,EACf,MAAM,4DAA4D,CAAA;AAEnE,KAAK,mBAAmB,GAAG,OAAO,GAAG,KAAK,CAAA;AAE1C,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IAEb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,CAAA;IAEpD,MAAM,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAA;IAE9B;;OAEG;IACH,SAAS,CAAC,EAAE,mBAAmB,CAAA;IAE/B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,cAAc,C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AAI,CAAA;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;CAC3C,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,KAAK,0BAA0B,GAAG;IAChC,SAAS,EAAE,mBAAmB,CAAA;CAC/B,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,wBAAwB,CAAA;AAE9C,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,qBAAqB,GAAG,wBAAwB,GACnD,cAAc,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,GAC5D,mBAAmB,CAAC,wBAAwB,CAAC,CAAA;AAE/C,KAAK,qBAAqB,GAAG,cAAc,CACzC,YAAY,GAAG,sBAAsB,GAAG,mBAAmB,CAC5D,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA+BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eA2BnB,CAAA;AAED,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACpB,CAAA;AACD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import type { DrawerLayoutProps } from '../props';
|
|
3
4
|
import type { DrawerLayoutTrayProps } from '../DrawerTray/props';
|
|
4
5
|
type DrawerLayoutFixtureProps = {
|
|
@@ -9,6 +10,13 @@ type DrawerLayoutFixtureProps = {
|
|
|
9
10
|
onOverlayTrayChange?: DrawerLayoutProps['onOverlayTrayChange'];
|
|
10
11
|
};
|
|
11
12
|
export default class DrawerLayoutFixture extends Component<DrawerLayoutFixtureProps> {
|
|
13
|
+
static propTypes: {
|
|
14
|
+
layoutWidth: PropTypes.Requireable<string>;
|
|
15
|
+
trayWidth: PropTypes.Requireable<string>;
|
|
16
|
+
placement: PropTypes.Requireable<string>;
|
|
17
|
+
open: PropTypes.Requireable<boolean>;
|
|
18
|
+
onOverlayTrayChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
};
|
|
12
20
|
static defaultProps: {
|
|
13
21
|
layoutWidth: string;
|
|
14
22
|
trayWidth: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerLayout.fixture.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/__fixtures__/DrawerLayout.fixture.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DrawerLayout.fixture.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/__fixtures__/DrawerLayout.fixture.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,SAAS,MAAM,YAAY,CAAA;AAGlC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAEhE,KAAK,wBAAwB,GAAG;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAA;IAC9C,IAAI,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAA;IACpC,mBAAmB,CAAC,EAAE,iBAAiB,CAAC,qBAAqB,CAAC,CAAA;CAC/D,CAAA;AAED,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,SAAS,CAAC,wBAAwB,CAAC;IAClF,MAAM,CAAC,SAAS;;;;;;MAMf;IAED,MAAM,CAAC,YAAY;;;;;;MAMlB;IAED,MAAM;CA2BP"}
|
|
@@ -15,6 +15,7 @@ category: components
|
|
|
15
15
|
declare class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutState> {
|
|
16
16
|
static readonly componentId = "DrawerLayout";
|
|
17
17
|
static locatorAttribute: string;
|
|
18
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"children" | "dir" | "minWidth" | "onOverlayTrayChange">;
|
|
18
19
|
static allowedProps: readonly ("children" | "dir" | "minWidth" | "onOverlayTrayChange")[];
|
|
19
20
|
static defaultProps: {
|
|
20
21
|
minWidth: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAY,SAAS,EAAiB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAY,SAAS,EAAiB,MAAM,OAAO,CAAA;AAc5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAM/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEnE,KAAK,SAAS,GAAG,gBAAgB,CAC/B,qBAAqB,GAAG,KAAK,CAAC,UAAU,EACxC,UAAU,CACX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eAAe,EAAE,OAAO;IAa1B,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,OAAO;;;;;IAgB1B,uBAAuB,CAAC,iBAAiB,EAAE,OAAO;IAQlD,uBAAuB,GAAI,WAAW,iBAAiB,UActD;IAED,oBAAoB,GAAI,WAAW;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,UAenD;IAED,yBAAyB,aAQxB;IAED,wBAAwB,aAEvB;IAED,cAAc;IA4Dd,MAAM;CAcP;AACD,eAAe,YAAY,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,CAAA;AAClD,eAAO,MAAM,mBAAmB,kCAAuB,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TextDirectionContextConsumerProps } from '@instructure/ui-i18n';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
|
+
import type { PropValidators } from '@instructure/shared-types';
|
|
4
5
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
5
6
|
type DrawerLayoutOwnProps = {
|
|
6
7
|
/**
|
|
@@ -27,7 +28,8 @@ type DrawerLayoutState = {
|
|
|
27
28
|
trayWidth: number;
|
|
28
29
|
contentWidth: number;
|
|
29
30
|
};
|
|
31
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
30
32
|
declare const allowedProps: AllowedPropKeys;
|
|
31
33
|
export type { DrawerLayoutProps, DrawerLayoutState, DrawerLayoutStyle };
|
|
32
|
-
export { allowedProps };
|
|
34
|
+
export { propTypes, allowedProps };
|
|
33
35
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;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