@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.
- package/CHANGELOG.md +1 -1
- package/es/DrawerLayout/DrawerContent/__new-tests__/DrawerContent.test.js +18 -13
- package/es/DrawerLayout/DrawerContent/index.js +7 -5
- package/es/DrawerLayout/DrawerTray/__new-tests__/DrawerTray.test.js +29 -26
- package/es/DrawerLayout/DrawerTray/index.js +58 -50
- package/es/DrawerLayout/__examples__/DrawerLayout.examples.js +25 -22
- package/es/DrawerLayout/__fixtures__/DrawerLayout.fixture.js +27 -17
- package/es/DrawerLayout/__new-tests__/DrawerLayout.test.js +4 -3
- package/es/DrawerLayout/index.js +12 -9
- package/lib/DrawerLayout/DrawerContent/__new-tests__/DrawerContent.test.js +23 -20
- package/lib/DrawerLayout/DrawerContent/index.js +6 -4
- package/lib/DrawerLayout/DrawerTray/__new-tests__/DrawerTray.test.js +36 -35
- package/lib/DrawerLayout/DrawerTray/index.js +56 -49
- package/lib/DrawerLayout/__examples__/DrawerLayout.examples.js +25 -23
- package/lib/DrawerLayout/__fixtures__/DrawerLayout.fixture.js +27 -18
- package/lib/DrawerLayout/__new-tests__/DrawerLayout.test.js +5 -5
- package/lib/DrawerLayout/index.js +11 -9
- package/package.json +20 -20
- package/src/DrawerLayout/DrawerContent/__new-tests__/DrawerContent.test.tsx +1 -1
- package/src/DrawerLayout/DrawerContent/index.tsx +1 -2
- package/src/DrawerLayout/DrawerContent/props.ts +1 -1
- package/src/DrawerLayout/DrawerTray/__new-tests__/DrawerTray.test.tsx +1 -1
- package/src/DrawerLayout/DrawerTray/index.tsx +2 -2
- package/src/DrawerLayout/__examples__/DrawerLayout.examples.tsx +0 -2
- package/src/DrawerLayout/__fixtures__/DrawerLayout.fixture.tsx +1 -1
- package/src/DrawerLayout/__new-tests__/DrawerLayout.test.tsx +1 -1
- package/src/DrawerLayout/index.tsx +4 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DrawerLayout/DrawerContent/index.d.ts +1 -3
- package/types/DrawerLayout/DrawerContent/index.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerContent/props.d.ts +1 -1
- package/types/DrawerLayout/DrawerContent/props.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerTray/index.d.ts +1 -3
- package/types/DrawerLayout/DrawerTray/index.d.ts.map +1 -1
- package/types/DrawerLayout/__examples__/DrawerLayout.examples.d.ts.map +1 -1
- package/types/DrawerLayout/__fixtures__/DrawerLayout.fixture.d.ts +2 -2
- package/types/DrawerLayout/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
- package/types/DrawerLayout/index.d.ts +9 -11
- package/types/DrawerLayout/index.d.ts.map +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
24
|
+
|
|
25
25
|
import { Component } from 'react'
|
|
26
26
|
|
|
27
|
-
import { withStyle
|
|
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,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
|
|
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
|
|
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 =
|
|
55
|
+
type TrayChild = ComponentElement<
|
|
57
56
|
DrawerLayoutTrayProps & React.Attributes,
|
|
58
57
|
DrawerTray
|
|
59
58
|
>
|
|
60
|
-
type ContentChild =
|
|
59
|
+
type ContentChild = ComponentElement<
|
|
61
60
|
DrawerLayoutContentProps & React.Attributes,
|
|
62
61
|
DrawerContent
|
|
63
62
|
>
|