@instructure/ui-drawer-layout 10.16.1-snapshot-0 → 10.16.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/es/DrawerLayout/DrawerContent/__new-tests__/DrawerContent.test.js +18 -13
  3. package/es/DrawerLayout/DrawerContent/index.js +7 -5
  4. package/es/DrawerLayout/DrawerTray/__new-tests__/DrawerTray.test.js +29 -26
  5. package/es/DrawerLayout/DrawerTray/index.js +58 -50
  6. package/es/DrawerLayout/__examples__/DrawerLayout.examples.js +25 -22
  7. package/es/DrawerLayout/__fixtures__/DrawerLayout.fixture.js +27 -17
  8. package/es/DrawerLayout/__new-tests__/DrawerLayout.test.js +4 -3
  9. package/es/DrawerLayout/index.js +12 -9
  10. package/lib/DrawerLayout/DrawerContent/__new-tests__/DrawerContent.test.js +23 -20
  11. package/lib/DrawerLayout/DrawerContent/index.js +6 -4
  12. package/lib/DrawerLayout/DrawerTray/__new-tests__/DrawerTray.test.js +36 -35
  13. package/lib/DrawerLayout/DrawerTray/index.js +56 -49
  14. package/lib/DrawerLayout/__examples__/DrawerLayout.examples.js +25 -23
  15. package/lib/DrawerLayout/__fixtures__/DrawerLayout.fixture.js +27 -18
  16. package/lib/DrawerLayout/__new-tests__/DrawerLayout.test.js +5 -5
  17. package/lib/DrawerLayout/index.js +11 -9
  18. package/package.json +20 -20
  19. package/src/DrawerLayout/DrawerContent/__new-tests__/DrawerContent.test.tsx +1 -1
  20. package/src/DrawerLayout/DrawerContent/index.tsx +1 -2
  21. package/src/DrawerLayout/DrawerContent/props.ts +1 -1
  22. package/src/DrawerLayout/DrawerTray/__new-tests__/DrawerTray.test.tsx +1 -1
  23. package/src/DrawerLayout/DrawerTray/index.tsx +2 -2
  24. package/src/DrawerLayout/__examples__/DrawerLayout.examples.tsx +0 -2
  25. package/src/DrawerLayout/__fixtures__/DrawerLayout.fixture.tsx +1 -1
  26. package/src/DrawerLayout/__new-tests__/DrawerLayout.test.tsx +1 -1
  27. package/src/DrawerLayout/index.tsx +4 -5
  28. package/tsconfig.build.tsbuildinfo +1 -1
  29. package/types/DrawerLayout/DrawerContent/index.d.ts +1 -3
  30. package/types/DrawerLayout/DrawerContent/index.d.ts.map +1 -1
  31. package/types/DrawerLayout/DrawerContent/props.d.ts +1 -1
  32. package/types/DrawerLayout/DrawerContent/props.d.ts.map +1 -1
  33. package/types/DrawerLayout/DrawerTray/index.d.ts +1 -3
  34. package/types/DrawerLayout/DrawerTray/index.d.ts.map +1 -1
  35. package/types/DrawerLayout/__examples__/DrawerLayout.examples.d.ts.map +1 -1
  36. package/types/DrawerLayout/__fixtures__/DrawerLayout.fixture.d.ts +2 -2
  37. package/types/DrawerLayout/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
  38. package/types/DrawerLayout/index.d.ts +9 -11
  39. package/types/DrawerLayout/index.d.ts.map +1 -1
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import React, { AriaRole } from 'react'
25
+ import { AriaRole } from 'react'
26
26
  import PropTypes from 'prop-types'
27
27
 
28
28
  import type {
@@ -21,7 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import React from 'react'
24
+
25
25
  import { render, screen, waitFor } from '@testing-library/react'
26
26
  import { vi } from 'vitest'
27
27
  import '@testing-library/jest-dom'
@@ -21,10 +21,10 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- /** @jsx jsx */
24
+
25
25
  import { Component } from 'react'
26
26
 
27
- import { withStyle, jsx } from '@instructure/emotion'
27
+ import { withStyle } from '@instructure/emotion'
28
28
  import { textDirectionContextConsumer } from '@instructure/ui-i18n'
29
29
  import { Transition } from '@instructure/ui-motion'
30
30
  import type { TransitionType } from '@instructure/ui-motion'
@@ -22,8 +22,6 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import React from 'react'
26
-
27
25
  import { View } from '@instructure/ui-view'
28
26
  import { DrawerLayout } from '../index'
29
27
 
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import React, { Component } from 'react'
25
+ import { Component } from 'react'
26
26
  import PropTypes from 'prop-types'
27
27
 
28
28
  import { DrawerLayout } from '../index'
@@ -21,7 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import React from 'react'
24
+
25
25
  import { render, screen } from '@testing-library/react'
26
26
  import '@testing-library/jest-dom'
27
27
 
@@ -22,8 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- /** @jsx jsx */
26
- import React, { Children, Component, createContext } from 'react'
25
+ import { ComponentElement, Children, Component, createContext } from 'react'
27
26
 
28
27
  import { textDirectionContextConsumer } from '@instructure/ui-i18n'
29
28
  import {
@@ -47,17 +46,17 @@ import type {
47
46
  import { DrawerTray } from './DrawerTray'
48
47
  import type { DrawerLayoutTrayProps } from './DrawerTray/props'
49
48
 
50
- import { withStyle, jsx } from '@instructure/emotion'
49
+ import { withStyle } from '@instructure/emotion'
51
50
  import generateStyle from './styles'
52
51
 
53
52
  import { propTypes, allowedProps } from './props'
54
53
  import type { DrawerLayoutProps, DrawerLayoutState } from './props'
55
54
 
56
- type TrayChild = React.ComponentElement<
55
+ type TrayChild = ComponentElement<
57
56
  DrawerLayoutTrayProps & React.Attributes,
58
57
  DrawerTray
59
58
  >
60
- type ContentChild = React.ComponentElement<
59
+ type ContentChild = ComponentElement<
61
60
  DrawerLayoutContentProps & React.Attributes,
62
61
  DrawerContent
63
62
  >