@instructure/ui-drawer-layout 11.7.4-snapshot-14 → 11.7.4-snapshot-49

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 (54) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE.md +1 -0
  3. package/es/DrawerLayout/v1/DrawerContent/index.js +4 -4
  4. package/es/DrawerLayout/v1/DrawerTray/index.js +5 -5
  5. package/es/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.js +2 -2
  6. package/es/DrawerLayout/v1/index.js +5 -5
  7. package/es/DrawerLayout/v2/DrawerContent/index.js +3 -3
  8. package/es/DrawerLayout/v2/DrawerTray/index.js +4 -4
  9. package/es/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.js +2 -2
  10. package/es/DrawerLayout/v2/index.js +5 -5
  11. package/es/exports/a.js +2 -1
  12. package/es/exports/b.js +2 -1
  13. package/lib/DrawerLayout/v1/DrawerContent/index.js +4 -4
  14. package/lib/DrawerLayout/v1/DrawerTray/index.js +5 -5
  15. package/lib/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.js +2 -2
  16. package/lib/DrawerLayout/v1/index.js +14 -14
  17. package/lib/DrawerLayout/v2/DrawerContent/index.js +3 -3
  18. package/lib/DrawerLayout/v2/DrawerTray/index.js +4 -4
  19. package/lib/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.js +2 -2
  20. package/lib/DrawerLayout/v2/index.js +14 -14
  21. package/lib/exports/a.js +4 -4
  22. package/lib/exports/b.js +4 -4
  23. package/package.json +18 -18
  24. package/src/DrawerLayout/v1/DrawerContent/index.tsx +4 -3
  25. package/src/DrawerLayout/v1/DrawerTray/index.tsx +5 -4
  26. package/src/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.tsx +2 -1
  27. package/src/DrawerLayout/v1/index.tsx +5 -4
  28. package/src/DrawerLayout/v2/DrawerContent/index.tsx +3 -2
  29. package/src/DrawerLayout/v2/DrawerTray/index.tsx +4 -3
  30. package/src/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.tsx +2 -1
  31. package/src/DrawerLayout/v2/index.tsx +5 -4
  32. package/src/exports/a.ts +1 -1
  33. package/src/exports/b.ts +1 -1
  34. package/tsconfig.build.tsbuildinfo +1 -1
  35. package/types/DrawerLayout/v1/DrawerContent/index.d.ts +2 -1
  36. package/types/DrawerLayout/v1/DrawerContent/index.d.ts.map +1 -1
  37. package/types/DrawerLayout/v1/DrawerTray/index.d.ts +1 -0
  38. package/types/DrawerLayout/v1/DrawerTray/index.d.ts.map +1 -1
  39. package/types/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.d.ts +1 -0
  40. package/types/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
  41. package/types/DrawerLayout/v1/index.d.ts +3 -2
  42. package/types/DrawerLayout/v1/index.d.ts.map +1 -1
  43. package/types/DrawerLayout/v2/DrawerContent/index.d.ts +2 -1
  44. package/types/DrawerLayout/v2/DrawerContent/index.d.ts.map +1 -1
  45. package/types/DrawerLayout/v2/DrawerTray/index.d.ts +1 -0
  46. package/types/DrawerLayout/v2/DrawerTray/index.d.ts.map +1 -1
  47. package/types/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.d.ts +1 -0
  48. package/types/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
  49. package/types/DrawerLayout/v2/index.d.ts +3 -2
  50. package/types/DrawerLayout/v2/index.d.ts.map +1 -1
  51. package/types/exports/a.d.ts +1 -1
  52. package/types/exports/a.d.ts.map +1 -1
  53. package/types/exports/b.d.ts +1 -1
  54. package/types/exports/b.d.ts.map +1 -1
@@ -30,10 +30,10 @@ import { getBoundingClientRect } from '@instructure/ui-dom-utils'
30
30
  import { omitProps } from '@instructure/ui-react-utils'
31
31
  import { withStyle } from '@instructure/emotion'
32
32
 
33
- import generateStyle from './styles'
34
- import generateComponentTheme from './theme'
33
+ import generateStyle from './styles.js'
34
+ import generateComponentTheme from './theme.js'
35
35
 
36
- import { allowedProps } from './props'
36
+ import { allowedProps } from './props.js'
37
37
  import type {
38
38
  DrawerLayoutContentProps,
39
39
  DrawerLayoutContentStyleProps
@@ -47,6 +47,7 @@ id: DrawerLayout.Content
47
47
  **/
48
48
  @withStyle(generateStyle, generateComponentTheme)
49
49
  class DrawerContent extends Component<DrawerLayoutContentProps> {
50
+ static displayName = 'DrawerContent'
50
51
  static readonly componentId = 'DrawerLayout.Content'
51
52
 
52
53
  static locatorAttribute = 'data-drawer-content'
@@ -35,11 +35,11 @@ import { Portal } from '@instructure/ui-portal'
35
35
  import type { PortalNode } from '@instructure/ui-portal'
36
36
  import { mirrorHorizontalPlacement } from '@instructure/ui-position'
37
37
 
38
- import generateStyle from './styles'
39
- import generateComponentTheme from './theme'
40
- import { DrawerLayoutContext } from '../index'
38
+ import generateStyle from './styles.js'
39
+ import generateComponentTheme from './theme.js'
40
+ import { DrawerLayoutContext } from '../index.js'
41
41
 
42
- import { allowedProps } from './props'
42
+ import { allowedProps } from './props.js'
43
43
  import type {
44
44
  DrawerLayoutTrayProps,
45
45
  DrawerLayoutTrayState,
@@ -59,6 +59,7 @@ class DrawerTray extends Component<
59
59
  DrawerLayoutTrayProps,
60
60
  DrawerLayoutTrayState
61
61
  > {
62
+ static displayName = 'DrawerTray'
62
63
  static readonly componentId = 'DrawerLayout.Tray' as const
63
64
 
64
65
  static locatorAttribute = 'data-drawer-tray'
@@ -24,7 +24,7 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
 
27
- import { DrawerLayout } from '../index'
27
+ import { DrawerLayout } from '../index.js'
28
28
  import type { DrawerLayoutProps } from '../props'
29
29
  import type { DrawerLayoutTrayProps } from '../DrawerTray/props'
30
30
 
@@ -37,6 +37,7 @@ type DrawerLayoutFixtureProps = {
37
37
  }
38
38
 
39
39
  export default class DrawerLayoutFixture extends Component<DrawerLayoutFixtureProps> {
40
+ static displayName = 'DrawerLayoutFixture'
40
41
  static defaultProps = {
41
42
  layoutWidth: '600px',
42
43
  trayWidth: '200px',
@@ -37,18 +37,18 @@ import { logError as error } from '@instructure/console'
37
37
  import { mirrorHorizontalPlacement } from '@instructure/ui-position'
38
38
  import type { PlacementPropValues } from '@instructure/ui-position'
39
39
 
40
- import { DrawerContent } from './DrawerContent'
40
+ import { DrawerContent } from './DrawerContent/index.js'
41
41
  import type {
42
42
  DrawerLayoutContentProps,
43
43
  DrawerContentSize
44
44
  } from './DrawerContent/props'
45
- import { DrawerTray } from './DrawerTray'
45
+ import { DrawerTray } from './DrawerTray/index.js'
46
46
  import type { DrawerLayoutTrayProps } from './DrawerTray/props'
47
47
 
48
48
  import { withStyle } from '@instructure/emotion'
49
- import generateStyle from './styles'
49
+ import generateStyle from './styles.js'
50
50
 
51
- import { allowedProps } from './props'
51
+ import { allowedProps } from './props.js'
52
52
  import type { DrawerLayoutProps, DrawerLayoutState } from './props'
53
53
 
54
54
  type TrayChild = ComponentElement<
@@ -70,6 +70,7 @@ category: components
70
70
  @withStyle(generateStyle, null)
71
71
  @textDirectionContextConsumer()
72
72
  class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutState> {
73
+ static displayName = 'DrawerLayout'
73
74
  static readonly componentId = 'DrawerLayout'
74
75
 
75
76
  static locatorAttribute = 'data-drawer-layout'
@@ -30,9 +30,9 @@ import { getBoundingClientRect } from '@instructure/ui-dom-utils'
30
30
  import { omitProps } from '@instructure/ui-react-utils'
31
31
  import { withStyleNew } from '@instructure/emotion'
32
32
 
33
- import generateStyle from './styles'
33
+ import generateStyle from './styles.js'
34
34
 
35
- import { allowedProps } from './props'
35
+ import { allowedProps } from './props.js'
36
36
  import type {
37
37
  DrawerLayoutContentProps,
38
38
  DrawerLayoutContentStyleProps
@@ -46,6 +46,7 @@ id: DrawerLayout.Content
46
46
  **/
47
47
  @withStyleNew(generateStyle)
48
48
  class DrawerContent extends Component<DrawerLayoutContentProps> {
49
+ static displayName = 'DrawerContent'
49
50
  static readonly componentId = 'DrawerLayout.Content'
50
51
 
51
52
  static locatorAttribute = 'data-drawer-content'
@@ -35,10 +35,10 @@ import { Portal } from '@instructure/ui-portal'
35
35
  import type { PortalNode } from '@instructure/ui-portal'
36
36
  import { mirrorHorizontalPlacement } from '@instructure/ui-position'
37
37
 
38
- import generateStyle from './styles'
39
- import { DrawerLayoutContext } from '../index'
38
+ import generateStyle from './styles.js'
39
+ import { DrawerLayoutContext } from '../index.js'
40
40
 
41
- import { allowedProps } from './props'
41
+ import { allowedProps } from './props.js'
42
42
  import type {
43
43
  DrawerLayoutTrayProps,
44
44
  DrawerLayoutTrayState,
@@ -58,6 +58,7 @@ class DrawerTray extends Component<
58
58
  DrawerLayoutTrayProps,
59
59
  DrawerLayoutTrayState
60
60
  > {
61
+ static displayName = 'DrawerTray'
61
62
  static readonly componentId = 'DrawerLayout.Tray' as const
62
63
 
63
64
  static locatorAttribute = 'data-drawer-tray'
@@ -24,7 +24,7 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
 
27
- import { DrawerLayout } from '../index'
27
+ import { DrawerLayout } from '../index.js'
28
28
  import type { DrawerLayoutProps } from '../props'
29
29
  import type { DrawerLayoutTrayProps } from '../DrawerTray/props'
30
30
 
@@ -37,6 +37,7 @@ type DrawerLayoutFixtureProps = {
37
37
  }
38
38
 
39
39
  export default class DrawerLayoutFixture extends Component<DrawerLayoutFixtureProps> {
40
+ static displayName = 'DrawerLayoutFixture'
40
41
  static defaultProps = {
41
42
  layoutWidth: '600px',
42
43
  trayWidth: '200px',
@@ -37,18 +37,18 @@ import { logError as error } from '@instructure/console'
37
37
  import { mirrorHorizontalPlacement } from '@instructure/ui-position'
38
38
  import type { PlacementPropValues } from '@instructure/ui-position'
39
39
 
40
- import { DrawerContent } from './DrawerContent'
40
+ import { DrawerContent } from './DrawerContent/index.js'
41
41
  import type {
42
42
  DrawerLayoutContentProps,
43
43
  DrawerContentSize
44
44
  } from './DrawerContent/props'
45
- import { DrawerTray } from './DrawerTray'
45
+ import { DrawerTray } from './DrawerTray/index.js'
46
46
  import type { DrawerLayoutTrayProps } from './DrawerTray/props'
47
47
 
48
48
  import { withStyleNew } from '@instructure/emotion'
49
- import generateStyle from './styles'
49
+ import generateStyle from './styles.js'
50
50
 
51
- import { allowedProps } from './props'
51
+ import { allowedProps } from './props.js'
52
52
  import type { DrawerLayoutProps, DrawerLayoutState } from './props'
53
53
 
54
54
  type TrayChild = ComponentElement<
@@ -70,6 +70,7 @@ category: components
70
70
  @withStyleNew(generateStyle)
71
71
  @textDirectionContextConsumer()
72
72
  class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutState> {
73
+ static displayName = 'DrawerLayout'
73
74
  static readonly componentId = 'DrawerLayout'
74
75
 
75
76
  static locatorAttribute = 'data-drawer-layout'
package/src/exports/a.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v1'
25
+ export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v1/index.js'
26
26
 
27
27
  export type { DrawerLayoutProps } from '../DrawerLayout/v1/props'
28
28
  export type { DrawerLayoutContentProps } from '../DrawerLayout/v1/DrawerContent/props'
package/src/exports/b.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v2'
25
+ export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v2/index.js'
26
26
 
27
27
  export type { DrawerLayoutProps } from '../DrawerLayout/v2/props'
28
28
  export type { DrawerLayoutContentProps } from '../DrawerLayout/v2/DrawerContent/props'