@instructure/ui-modal 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/Modal/v1/ModalBody/index.js +6 -5
  4. package/es/Modal/v1/ModalFooter/index.js +4 -4
  5. package/es/Modal/v1/ModalHeader/index.js +5 -5
  6. package/es/Modal/v1/index.js +9 -8
  7. package/es/Modal/v2/ModalBody/index.js +5 -4
  8. package/es/Modal/v2/ModalFooter/index.js +3 -3
  9. package/es/Modal/v2/ModalHeader/index.js +4 -4
  10. package/es/Modal/v2/index.js +8 -7
  11. package/es/exports/a.js +1 -1
  12. package/es/exports/b.js +1 -1
  13. package/lib/Modal/v1/ModalBody/index.js +5 -5
  14. package/lib/Modal/v1/ModalFooter/index.js +4 -4
  15. package/lib/Modal/v1/ModalHeader/index.js +5 -5
  16. package/lib/Modal/v1/index.js +14 -14
  17. package/lib/Modal/v2/ModalBody/index.js +4 -4
  18. package/lib/Modal/v2/ModalFooter/index.js +3 -3
  19. package/lib/Modal/v2/ModalHeader/index.js +4 -4
  20. package/lib/Modal/v2/index.js +13 -13
  21. package/lib/exports/a.js +5 -5
  22. package/lib/exports/b.js +5 -5
  23. package/package.json +17 -17
  24. package/src/Modal/v1/ModalBody/index.tsx +5 -4
  25. package/src/Modal/v1/ModalFooter/index.tsx +4 -3
  26. package/src/Modal/v1/ModalHeader/index.tsx +5 -4
  27. package/src/Modal/v1/index.tsx +8 -7
  28. package/src/Modal/v2/ModalBody/index.tsx +4 -3
  29. package/src/Modal/v2/ModalFooter/index.tsx +3 -2
  30. package/src/Modal/v2/ModalHeader/index.tsx +4 -3
  31. package/src/Modal/v2/index.tsx +7 -6
  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/Modal/v1/ModalBody/index.d.ts +1 -0
  36. package/types/Modal/v1/ModalBody/index.d.ts.map +1 -1
  37. package/types/Modal/v1/ModalFooter/index.d.ts +1 -0
  38. package/types/Modal/v1/ModalFooter/index.d.ts.map +1 -1
  39. package/types/Modal/v1/ModalHeader/index.d.ts +3 -2
  40. package/types/Modal/v1/ModalHeader/index.d.ts.map +1 -1
  41. package/types/Modal/v1/index.d.ts +5 -4
  42. package/types/Modal/v1/index.d.ts.map +1 -1
  43. package/types/Modal/v2/ModalBody/index.d.ts +1 -0
  44. package/types/Modal/v2/ModalBody/index.d.ts.map +1 -1
  45. package/types/Modal/v2/ModalFooter/index.d.ts +1 -0
  46. package/types/Modal/v2/ModalFooter/index.d.ts.map +1 -1
  47. package/types/Modal/v2/ModalHeader/index.d.ts +3 -2
  48. package/types/Modal/v2/ModalHeader/index.d.ts.map +1 -1
  49. package/types/Modal/v2/index.d.ts +5 -4
  50. package/types/Modal/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
@@ -29,13 +29,13 @@ import { omitProps } from '@instructure/ui-react-utils'
29
29
  import { getCSSStyleDeclaration } from '@instructure/ui-dom-utils'
30
30
 
31
31
  import { withStyle } from '@instructure/emotion'
32
- import generateStyle from './styles'
33
- import generateComponentTheme from './theme'
32
+ import generateStyle from './styles.js'
33
+ import generateComponentTheme from './theme.js'
34
34
 
35
- import { allowedProps } from './props'
35
+ import { allowedProps } from './props.js'
36
36
  import type { ModalBodyProps } from './props'
37
37
  import { UIElement } from '@instructure/shared-types'
38
- import ModalContext from '../ModalContext'
38
+ import ModalContext from '../ModalContext.js'
39
39
 
40
40
  /**
41
41
  ---
@@ -45,6 +45,7 @@ id: Modal.Body
45
45
  **/
46
46
  @withStyle(generateStyle, generateComponentTheme)
47
47
  class ModalBody extends Component<ModalBodyProps> {
48
+ static displayName = 'ModalBody'
48
49
  static readonly componentId = 'Modal.Body'
49
50
 
50
51
  static allowedProps = allowedProps
@@ -26,10 +26,10 @@ import { Component } from 'react'
26
26
 
27
27
  import { passthroughProps } from '@instructure/ui-react-utils'
28
28
  import { withStyle } from '@instructure/emotion'
29
- import generateStyle from './styles'
30
- import generateComponentTheme from './theme'
29
+ import generateStyle from './styles.js'
30
+ import generateComponentTheme from './theme.js'
31
31
 
32
- import { allowedProps } from './props'
32
+ import { allowedProps } from './props.js'
33
33
  import type { ModalFooterProps } from './props'
34
34
 
35
35
  /**
@@ -40,6 +40,7 @@ id: Modal.Footer
40
40
  **/
41
41
  @withStyle(generateStyle, generateComponentTheme)
42
42
  class ModalFooter extends Component<ModalFooterProps> {
43
+ static displayName = 'ModalFooter'
43
44
  static readonly componentId = 'Modal.Footer'
44
45
 
45
46
  static allowedProps = allowedProps
@@ -34,12 +34,12 @@ import { withStyle } from '@instructure/emotion'
34
34
  import { CloseButton } from '@instructure/ui-buttons/v11_6'
35
35
  import type { CloseButtonProps } from '@instructure/ui-buttons/v11_6'
36
36
 
37
- import generateStyle from './styles'
38
- import generateComponentTheme from './theme'
37
+ import generateStyle from './styles.js'
38
+ import generateComponentTheme from './theme.js'
39
39
 
40
- import { allowedProps } from './props'
40
+ import { allowedProps } from './props.js'
41
41
  import type { ModalHeaderProps, ModalHeaderStyleProps } from './props'
42
- import ModalContext from '../ModalContext'
42
+ import ModalContext from '../ModalContext.js'
43
43
 
44
44
  type CloseButtonChild = ComponentElement<CloseButtonProps, CloseButton>
45
45
 
@@ -51,6 +51,7 @@ id: Modal.Header
51
51
  **/
52
52
  @withStyle(generateStyle, generateComponentTheme)
53
53
  class ModalHeader extends Component<ModalHeaderProps> {
54
+ static displayName = 'ModalHeader'
54
55
  static readonly componentId = 'Modal.Header'
55
56
 
56
57
  static allowedProps = allowedProps
@@ -33,23 +33,23 @@ import type { PortalNode } from '@instructure/ui-portal'
33
33
  import { Dialog } from '@instructure/ui-dialog'
34
34
  import { Mask } from '@instructure/ui-overlays/v11_6'
35
35
 
36
- import { ModalHeader } from './ModalHeader'
37
- import { ModalBody } from './ModalBody'
38
- import { ModalFooter } from './ModalFooter'
36
+ import { ModalHeader } from './ModalHeader/index.js'
37
+ import { ModalBody } from './ModalBody/index.js'
38
+ import { ModalFooter } from './ModalFooter/index.js'
39
39
 
40
40
  import { withStyle } from '@instructure/emotion'
41
41
 
42
- import generateStyle from './styles'
43
- import generateComponentTheme from './theme'
42
+ import generateStyle from './styles.js'
43
+ import generateComponentTheme from './theme.js'
44
44
 
45
- import { allowedProps } from './props'
45
+ import { allowedProps } from './props.js'
46
46
  import type {
47
47
  ModalProps,
48
48
  ModalState,
49
49
  ModalPropsForPortal,
50
50
  ModalPropsForTransition
51
51
  } from './props'
52
- import ModalContext from './ModalContext'
52
+ import ModalContext from './ModalContext.js'
53
53
 
54
54
  /**
55
55
  ---
@@ -59,6 +59,7 @@ tags: overlay, portal, dialog
59
59
  **/
60
60
  @withStyle(generateStyle, generateComponentTheme)
61
61
  class Modal extends Component<ModalProps, ModalState> {
62
+ static displayName = 'Modal'
62
63
  static readonly componentId = 'Modal'
63
64
 
64
65
  static allowedProps = allowedProps
@@ -29,12 +29,12 @@ import { omitProps } from '@instructure/ui-react-utils'
29
29
  import { getCSSStyleDeclaration } from '@instructure/ui-dom-utils'
30
30
 
31
31
  import { withStyleNew } from '@instructure/emotion'
32
- import generateStyle from './styles'
32
+ import generateStyle from './styles.js'
33
33
 
34
- import { allowedProps } from './props'
34
+ import { allowedProps } from './props.js'
35
35
  import type { ModalBodyProps } from './props'
36
36
  import { UIElement } from '@instructure/shared-types'
37
- import ModalContext from '../ModalContext'
37
+ import ModalContext from '../ModalContext.js'
38
38
 
39
39
  /**
40
40
  ---
@@ -44,6 +44,7 @@ id: Modal.Body
44
44
  **/
45
45
  @withStyleNew(generateStyle, 'ModalBody')
46
46
  class ModalBody extends Component<ModalBodyProps> {
47
+ static displayName = 'ModalBody'
47
48
  static readonly componentId = 'Modal.Body'
48
49
 
49
50
  static allowedProps = allowedProps
@@ -26,9 +26,9 @@ import { Component } from 'react'
26
26
 
27
27
  import { passthroughProps } from '@instructure/ui-react-utils'
28
28
  import { withStyleNew } from '@instructure/emotion'
29
- import generateStyle from './styles'
29
+ import generateStyle from './styles.js'
30
30
 
31
- import { allowedProps } from './props'
31
+ import { allowedProps } from './props.js'
32
32
  import type { ModalFooterProps } from './props'
33
33
 
34
34
  /**
@@ -39,6 +39,7 @@ id: Modal.Footer
39
39
  **/
40
40
  @withStyleNew(generateStyle, 'ModalFooter')
41
41
  class ModalFooter extends Component<ModalFooterProps> {
42
+ static displayName = 'ModalFooter'
42
43
  static readonly componentId = 'Modal.Footer'
43
44
 
44
45
  static allowedProps = allowedProps
@@ -34,11 +34,11 @@ import { withStyleNew } from '@instructure/emotion'
34
34
  import { CloseButton } from '@instructure/ui-buttons/latest'
35
35
  import type { CloseButtonProps } from '@instructure/ui-buttons/latest'
36
36
 
37
- import generateStyle from './styles'
37
+ import generateStyle from './styles.js'
38
38
 
39
- import { allowedProps } from './props'
39
+ import { allowedProps } from './props.js'
40
40
  import type { ModalHeaderProps, ModalHeaderStyleProps } from './props'
41
- import ModalContext from '../ModalContext'
41
+ import ModalContext from '../ModalContext.js'
42
42
 
43
43
  type CloseButtonChild = ComponentElement<CloseButtonProps, CloseButton>
44
44
 
@@ -50,6 +50,7 @@ id: Modal.Header
50
50
  **/
51
51
  @withStyleNew(generateStyle, 'ModalHeader')
52
52
  class ModalHeader extends Component<ModalHeaderProps> {
53
+ static displayName = 'ModalHeader'
53
54
  static readonly componentId = 'Modal.Header'
54
55
 
55
56
  static allowedProps = allowedProps
@@ -33,22 +33,22 @@ import type { PortalNode } from '@instructure/ui-portal'
33
33
  import { Dialog } from '@instructure/ui-dialog'
34
34
  import { Mask } from '@instructure/ui-overlays/latest'
35
35
 
36
- import { ModalHeader } from './ModalHeader'
37
- import { ModalBody } from './ModalBody'
38
- import { ModalFooter } from './ModalFooter'
36
+ import { ModalHeader } from './ModalHeader/index.js'
37
+ import { ModalBody } from './ModalBody/index.js'
38
+ import { ModalFooter } from './ModalFooter/index.js'
39
39
 
40
40
  import { withStyleNew } from '@instructure/emotion'
41
41
 
42
- import generateStyle from './styles'
42
+ import generateStyle from './styles.js'
43
43
 
44
- import { allowedProps } from './props'
44
+ import { allowedProps } from './props.js'
45
45
  import type {
46
46
  ModalProps,
47
47
  ModalState,
48
48
  ModalPropsForPortal,
49
49
  ModalPropsForTransition
50
50
  } from './props'
51
- import ModalContext from './ModalContext'
51
+ import ModalContext from './ModalContext.js'
52
52
 
53
53
  /**
54
54
  ---
@@ -58,6 +58,7 @@ tags: overlay, portal, dialog
58
58
  **/
59
59
  @withStyleNew(generateStyle)
60
60
  class Modal extends Component<ModalProps, ModalState> {
61
+ static displayName = 'Modal'
61
62
  static readonly componentId = 'Modal'
62
63
 
63
64
  static allowedProps = allowedProps
package/src/exports/a.ts CHANGED
@@ -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
- export { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v1'
24
+ export { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v1/index.js'
25
25
 
26
26
  export type { ModalProps } from '../Modal/v1/props'
27
27
  export type { ModalBodyProps } from '../Modal/v1/ModalBody/props'
package/src/exports/b.ts CHANGED
@@ -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
- export { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v2'
24
+ export { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v2/index.js'
25
25
 
26
26
  export type { ModalProps } from '../Modal/v2/props'
27
27
  export type { ModalBodyProps } from '../Modal/v2/ModalBody/props'