@instructure/ui-drawer-layout 8.14.1-snapshot.7 → 8.15.1-snapshot.2

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/es/DrawerLayout/DrawerContent/DrawerContentLocator.js +2 -1
  3. package/es/DrawerLayout/DrawerContent/index.js +42 -43
  4. package/es/DrawerLayout/DrawerContent/props.js +0 -4
  5. package/es/DrawerLayout/DrawerContent/styles.js +1 -1
  6. package/es/DrawerLayout/DrawerLayoutLocator.js +2 -1
  7. package/es/DrawerLayout/DrawerTray/DrawerTrayLocator.js +2 -1
  8. package/es/DrawerLayout/DrawerTray/index.js +61 -66
  9. package/es/DrawerLayout/DrawerTray/props.js +0 -70
  10. package/es/DrawerLayout/index.js +19 -13
  11. package/es/DrawerLayout/props.js +0 -13
  12. package/lib/DrawerLayout/DrawerContent/DrawerContentLocator.js +1 -0
  13. package/lib/DrawerLayout/DrawerContent/index.js +42 -43
  14. package/lib/DrawerLayout/DrawerContent/props.js +0 -4
  15. package/lib/DrawerLayout/DrawerContent/styles.js +1 -1
  16. package/lib/DrawerLayout/DrawerLayoutLocator.js +1 -0
  17. package/lib/DrawerLayout/DrawerTray/DrawerTrayLocator.js +1 -0
  18. package/lib/DrawerLayout/DrawerTray/index.js +61 -66
  19. package/lib/DrawerLayout/DrawerTray/props.js +0 -70
  20. package/lib/DrawerLayout/index.js +21 -13
  21. package/lib/DrawerLayout/props.js +0 -13
  22. package/package.json +22 -22
  23. package/src/DrawerLayout/DrawerContent/index.tsx +38 -57
  24. package/src/DrawerLayout/DrawerContent/props.ts +13 -10
  25. package/src/DrawerLayout/DrawerContent/styles.ts +3 -4
  26. package/src/DrawerLayout/DrawerTray/index.tsx +31 -33
  27. package/src/DrawerLayout/DrawerTray/props.ts +110 -69
  28. package/src/DrawerLayout/__fixtures__/DrawerLayout.fixture.tsx +14 -13
  29. package/src/DrawerLayout/index.tsx +74 -86
  30. package/src/DrawerLayout/props.ts +22 -13
  31. package/tsconfig.build.tsbuildinfo +1 -1
  32. package/types/DrawerLayout/DrawerContent/DrawerContentLocator.d.ts +4 -4
  33. package/types/DrawerLayout/DrawerContent/index.d.ts +28 -19
  34. package/types/DrawerLayout/DrawerContent/index.d.ts.map +1 -1
  35. package/types/DrawerLayout/DrawerContent/props.d.ts +13 -6
  36. package/types/DrawerLayout/DrawerContent/props.d.ts.map +1 -1
  37. package/types/DrawerLayout/DrawerContent/styles.d.ts +2 -2
  38. package/types/DrawerLayout/DrawerContent/styles.d.ts.map +1 -1
  39. package/types/DrawerLayout/DrawerLayoutLocator.d.ts +14 -14
  40. package/types/DrawerLayout/DrawerTray/DrawerTrayLocator.d.ts +4 -4
  41. package/types/DrawerLayout/DrawerTray/index.d.ts +46 -22
  42. package/types/DrawerLayout/DrawerTray/index.d.ts.map +1 -1
  43. package/types/DrawerLayout/DrawerTray/props.d.ts +74 -16
  44. package/types/DrawerLayout/DrawerTray/props.d.ts.map +1 -1
  45. package/types/DrawerLayout/__fixtures__/DrawerLayout.fixture.d.ts +11 -1
  46. package/types/DrawerLayout/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
  47. package/types/DrawerLayout/index.d.ts +116 -23
  48. package/types/DrawerLayout/index.d.ts.map +1 -1
  49. package/types/DrawerLayout/props.d.ts +19 -3
  50. package/types/DrawerLayout/props.d.ts.map +1 -1
@@ -1,59 +1,152 @@
1
1
  /** @jsx jsx */
2
- import { Component } from 'react';
2
+ import React, { Component } from 'react';
3
+ import type { PlacementPropValues } from '@instructure/ui-position';
3
4
  import { DrawerContent } from './DrawerContent';
5
+ import type { DrawerLayoutContentProps, DrawerContentSize } from './DrawerContent/props';
4
6
  import { DrawerTray } from './DrawerTray';
7
+ import type { DrawerLayoutTrayProps } from './DrawerTray/props';
5
8
  import { jsx } from '@instructure/emotion';
6
- import type { DrawerLayoutProps } from './props';
9
+ import type { DrawerLayoutProps, DrawerLayoutState } from './props';
10
+ declare type TrayChild = React.ComponentElement<DrawerLayoutTrayProps & React.Attributes, DrawerTray>;
11
+ declare type ContentChild = React.ComponentElement<DrawerLayoutContentProps & React.Attributes, DrawerContent>;
7
12
  /**
8
13
  ---
9
14
  category: components
10
15
  ---
16
+ @tsProps
11
17
  **/
12
- declare class DrawerLayout extends Component<DrawerLayoutProps> {
18
+ declare class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutState> {
13
19
  static readonly componentId = "DrawerLayout";
14
20
  static locatorAttribute: string;
15
21
  static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<"children" | "dir" | "minWidth" | "onOverlayTrayChange">;
16
22
  static allowedProps: readonly ("children" | "dir" | "minWidth" | "onOverlayTrayChange")[];
17
23
  static defaultProps: {
18
- children: null;
19
24
  minWidth: string;
20
- onOverlayTrayChange: (shouldOverlayTray: any) => void;
21
25
  };
22
26
  static Content: typeof DrawerContent;
23
27
  static Tray: typeof DrawerTray;
24
- constructor(props: any);
25
- _content: null;
28
+ constructor(props: DrawerLayoutProps);
29
+ private readonly _id;
30
+ private _content;
31
+ private _tray;
26
32
  ref: Element | null;
27
33
  handleRef: (el: Element | null) => void;
28
34
  componentDidMount(): void;
29
- componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
30
- get trayProps(): any;
31
- get trayPlacement(): any;
32
- get contentMargin(): any;
35
+ componentDidUpdate(): void;
36
+ get trayProps(): {
37
+ label: string;
38
+ children?: React.ReactNode | (() => React.ReactNode);
39
+ render?: (() => React.ReactNode) | undefined;
40
+ placement?: import("./DrawerTray/props").DrawerTrayPlacement | undefined;
41
+ open?: boolean | undefined;
42
+ onOpen?: ((transitionType?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
43
+ onClose?: ((transitionType?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
44
+ border?: boolean | undefined;
45
+ shadow?: boolean | undefined;
46
+ contentRef?: ((element: HTMLDivElement | null) => void) | undefined;
47
+ mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
48
+ } & {
49
+ defaultFocusElement?: import("@instructure/shared-types").UIElement | undefined;
50
+ liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
51
+ onDismiss?: ((event: React.UIEvent<Element, UIEvent> | React.FocusEvent<Element, Element>, documentClick?: boolean | undefined) => void) | undefined;
52
+ shouldContainFocus?: boolean | undefined;
53
+ shouldReturnFocus?: boolean | undefined;
54
+ shouldCloseOnDocumentClick?: boolean | undefined;
55
+ shouldCloseOnEscape?: boolean | undefined;
56
+ } & {
57
+ onTransition?: ((toState: import("@instructure/ui-motion/src/Transition/BaseTransition/props").BaseTransitionStatesType, fromState: import("@instructure/ui-motion/src/Transition/BaseTransition/props").BaseTransitionStatesType) => void) | undefined;
58
+ onEnter?: (() => void) | undefined;
59
+ onEntering?: (() => void) | undefined;
60
+ onEntered?: ((type?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
61
+ onExit?: (() => void) | undefined;
62
+ onExiting?: (() => void) | undefined;
63
+ onExited?: ((type?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
64
+ } & import("@instructure/ui-i18n").BidirectionalProps & {
65
+ styles?: import("./DrawerTray/props").DrawerLayoutTrayStyle | undefined;
66
+ makeStyles?: ((extraArgs?: Record<string, unknown> | undefined) => void) | undefined;
67
+ } & {
68
+ themeOverride?: Partial<import("@instructure/shared-types").DrawerLayoutTrayTheme> | undefined;
69
+ } & import("@instructure/shared-types/types/UtilityTypes").OtherHTMLAttributes<{
70
+ label: string;
71
+ children?: React.ReactNode | (() => React.ReactNode);
72
+ render?: (() => React.ReactNode) | undefined;
73
+ placement?: import("./DrawerTray/props").DrawerTrayPlacement | undefined;
74
+ open?: boolean | undefined;
75
+ onOpen?: ((transitionType?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
76
+ onClose?: ((transitionType?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
77
+ border?: boolean | undefined;
78
+ shadow?: boolean | undefined;
79
+ contentRef?: ((element: HTMLDivElement | null) => void) | undefined;
80
+ mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
81
+ } & {
82
+ defaultFocusElement?: import("@instructure/shared-types").UIElement | undefined;
83
+ liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
84
+ onDismiss?: ((event: React.UIEvent<Element, UIEvent> | React.FocusEvent<Element, Element>, documentClick?: boolean | undefined) => void) | undefined;
85
+ shouldContainFocus?: boolean | undefined;
86
+ shouldReturnFocus?: boolean | undefined;
87
+ shouldCloseOnDocumentClick?: boolean | undefined;
88
+ shouldCloseOnEscape?: boolean | undefined;
89
+ } & {
90
+ onTransition?: ((toState: import("@instructure/ui-motion/src/Transition/BaseTransition/props").BaseTransitionStatesType, fromState: import("@instructure/ui-motion/src/Transition/BaseTransition/props").BaseTransitionStatesType) => void) | undefined;
91
+ onEnter?: (() => void) | undefined;
92
+ onEntering?: (() => void) | undefined;
93
+ onEntered?: ((type?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
94
+ onExit?: (() => void) | undefined;
95
+ onExiting?: (() => void) | undefined;
96
+ onExited?: ((type?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
97
+ } & import("@instructure/ui-i18n").BidirectionalProps, React.AllHTMLAttributes<{
98
+ label: string;
99
+ children?: React.ReactNode | (() => React.ReactNode);
100
+ render?: (() => React.ReactNode) | undefined;
101
+ placement?: import("./DrawerTray/props").DrawerTrayPlacement | undefined;
102
+ open?: boolean | undefined;
103
+ onOpen?: ((transitionType?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
104
+ onClose?: ((transitionType?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
105
+ border?: boolean | undefined;
106
+ shadow?: boolean | undefined;
107
+ contentRef?: ((element: HTMLDivElement | null) => void) | undefined;
108
+ mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
109
+ } & {
110
+ defaultFocusElement?: import("@instructure/shared-types").UIElement | undefined;
111
+ liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
112
+ onDismiss?: ((event: React.UIEvent<Element, UIEvent> | React.FocusEvent<Element, Element>, documentClick?: boolean | undefined) => void) | undefined;
113
+ shouldContainFocus?: boolean | undefined;
114
+ shouldReturnFocus?: boolean | undefined;
115
+ shouldCloseOnDocumentClick?: boolean | undefined;
116
+ shouldCloseOnEscape?: boolean | undefined;
117
+ } & {
118
+ onTransition?: ((toState: import("@instructure/ui-motion/src/Transition/BaseTransition/props").BaseTransitionStatesType, fromState: import("@instructure/ui-motion/src/Transition/BaseTransition/props").BaseTransitionStatesType) => void) | undefined;
119
+ onEnter?: (() => void) | undefined;
120
+ onEntering?: (() => void) | undefined;
121
+ onEntered?: ((type?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
122
+ onExit?: (() => void) | undefined;
123
+ onExiting?: (() => void) | undefined;
124
+ onExited?: ((type?: import("@instructure/ui-motion/src/Transition/BaseTransition/props").TransitionType | undefined) => void) | undefined;
125
+ } & import("@instructure/ui-i18n").BidirectionalProps>> & React.Attributes;
126
+ get trayPlacement(): PlacementPropValues;
127
+ get contentMargin(): number;
33
128
  get contentStyle(): {
34
129
  marginLeft: string;
35
130
  marginRight: string;
36
131
  };
37
- handleTrayContentRef: (el: any) => void;
38
- shouldOverlayTray(minWidth: any, trayWidth: any, contentWidth: any, trayIsOverlayed: any): boolean;
39
- getNextState(minWidth: any, trayWidth: any, contentWidth: any, trayIsOverlayed: any): {
40
- trayWidth: any;
41
- contentWidth: any;
132
+ handleTrayContentRef: (el: HTMLDivElement | null) => void;
133
+ shouldOverlayTray(minWidth: string, trayWidth: number, contentWidth: number, trayIsOverlayed: boolean): boolean;
134
+ getNextState(minWidth: string, trayWidth: number, contentWidth: number, trayIsOverlayed: boolean): {
135
+ trayWidth: number;
136
+ contentWidth: number;
42
137
  shouldOverlayTray: boolean;
43
138
  };
44
- notifyOverlayTrayChange(shouldOverlayTray: any): void;
45
- handleContentSizeChange: ({ width }: {
46
- width: any;
47
- }) => void;
139
+ notifyOverlayTrayChange(shouldOverlayTray: boolean): void;
140
+ handleContentSizeChange: ({ width }: DrawerContentSize) => void;
48
141
  handleTraySizeChange: ({ width }: {
49
- width: any;
142
+ width: number;
50
143
  }) => void;
51
144
  handleTrayTransitionEnter: () => void;
52
145
  handleTrayTransitionExit: () => void;
53
- renderChildren(): any;
146
+ renderChildren(): (TrayChild | ContentChild)[];
54
147
  render(): jsx.JSX.Element;
55
148
  }
56
149
  export default DrawerLayout;
57
150
  export { DrawerLayout, DrawerContent, DrawerTray };
58
- export declare const DrawerLayoutContext: import("react").Context<boolean>;
151
+ export declare const DrawerLayoutContext: React.Context<boolean>;
59
152
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAiB,MAAM,OAAO,CAAA;AAc1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;GAIG;AACH,cAGM,YAAa,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACrD,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,gBAAgB,SAAuB;IAC9C,MAAM,CAAC,SAAS,iIAAY;IAC5B,MAAM,CAAC,YAAY,uEAAe;I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AI,YAAY;;;MAwBf;IAED,oBAAoB,OAAQ,cAAc,GAAG,IAAI,UAEhD;IAED,iBAAiB,CACf,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,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,cAAe,iBAAiB,UActD;IAED,oBAAoB;eAAwB,MAAM;eAejD;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,wBAAuB,CAAA"}
@@ -1,18 +1,34 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { BidirectionalProps } from '@instructure/ui-i18n';
3
3
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  import type { PropValidators } from '@instructure/shared-types';
5
5
  declare type DrawerLayoutOwnProps = {
6
+ /**
7
+ * Exactly one of each of the following child types: `DrawerLayout.Content`, `DrawerLayout.Tray`
8
+ */
6
9
  children?: React.ReactNode;
10
+ /**
11
+ * Min width for the `<DrawerLayout.Content />`
12
+ */
7
13
  minWidth?: string;
8
- onOverlayTrayChange?: (...args: any[]) => any;
14
+ /**
15
+ * Function called when the `<DrawerLayout.Content />` is resized and hits the `minWidth` breakpoint
16
+ * Called with a boolean value, `true` if the tray is now overlaying the content or `false` if
17
+ * it is side by side
18
+ */
19
+ onOverlayTrayChange?: (shouldOverlayTray: boolean) => void;
9
20
  } & BidirectionalProps;
10
21
  declare type PropKeys = keyof DrawerLayoutOwnProps;
11
22
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
12
23
  declare type DrawerLayoutProps = DrawerLayoutOwnProps & WithStyleProps<null, DrawerLayoutStyle>;
13
24
  declare type DrawerLayoutStyle = ComponentStyle<'drawerLayout'>;
25
+ declare type DrawerLayoutState = {
26
+ shouldOverlayTray: boolean;
27
+ trayWidth: number;
28
+ contentWidth: number;
29
+ };
14
30
  declare const propTypes: PropValidators<PropKeys>;
15
31
  declare const allowedProps: AllowedPropKeys;
16
- export type { DrawerLayoutProps, DrawerLayoutStyle };
32
+ export type { DrawerLayoutProps, DrawerLayoutState, DrawerLayoutStyle };
17
33
  export { propTypes, allowedProps };
18
34
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/props.ts"],"names":[],"mappings":";AAgCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mBAAmB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CAC9C,GAAG,kBAAkB,CAAA;AAEtB,aAAK,QAAQ,GAAG,MAAM,oBAAoB,CAAA;AAE1C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,iBAAiB,GAAG,oBAAoB,GAC3C,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAA;AAEzC,aAAK,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAEvD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ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