@instructure/ui-modal 8.11.2-snapshot.71 → 8.12.1-snapshot.7

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 CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **ui-modal:** fix Modal.Header padding when it has CloseButton ([82b8314](https://github.com/instructure/instructure-ui/commit/82b8314a5ce13ef30c3f03125b1e2104ba81c889))
11
+
6
12
  ## [8.11.1](https://github.com/instructure/instructure-ui/compare/v8.11.0...v8.11.1) (2021-10-19)
7
13
 
8
14
  **Note:** Version bump only for package @instructure/ui-modal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-modal",
3
- "version": "8.11.2-snapshot.71+dffbe6ba3",
3
+ "version": "8.12.1-snapshot.7+1e7ac8219",
4
4
  "description": "A component for displaying content in a dialog overlay",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,35 +25,35 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.11.2-snapshot.71+dffbe6ba3",
29
- "@instructure/emotion": "8.11.2-snapshot.71+dffbe6ba3",
30
- "@instructure/shared-types": "8.11.2-snapshot.71+dffbe6ba3",
31
- "@instructure/ui-buttons": "8.11.2-snapshot.71+dffbe6ba3",
32
- "@instructure/ui-dialog": "8.11.2-snapshot.71+dffbe6ba3",
33
- "@instructure/ui-motion": "8.11.2-snapshot.71+dffbe6ba3",
34
- "@instructure/ui-overlays": "8.11.2-snapshot.71+dffbe6ba3",
35
- "@instructure/ui-portal": "8.11.2-snapshot.71+dffbe6ba3",
36
- "@instructure/ui-prop-types": "8.11.2-snapshot.71+dffbe6ba3",
37
- "@instructure/ui-react-utils": "8.11.2-snapshot.71+dffbe6ba3",
38
- "@instructure/ui-testable": "8.11.2-snapshot.71+dffbe6ba3",
39
- "@instructure/ui-utils": "8.11.2-snapshot.71+dffbe6ba3",
40
- "@instructure/ui-view": "8.11.2-snapshot.71+dffbe6ba3",
28
+ "@instructure/console": "8.12.1-snapshot.7+1e7ac8219",
29
+ "@instructure/emotion": "8.12.1-snapshot.7+1e7ac8219",
30
+ "@instructure/shared-types": "8.12.1-snapshot.7+1e7ac8219",
31
+ "@instructure/ui-buttons": "8.12.1-snapshot.7+1e7ac8219",
32
+ "@instructure/ui-dialog": "8.12.1-snapshot.7+1e7ac8219",
33
+ "@instructure/ui-motion": "8.12.1-snapshot.7+1e7ac8219",
34
+ "@instructure/ui-overlays": "8.12.1-snapshot.7+1e7ac8219",
35
+ "@instructure/ui-portal": "8.12.1-snapshot.7+1e7ac8219",
36
+ "@instructure/ui-prop-types": "8.12.1-snapshot.7+1e7ac8219",
37
+ "@instructure/ui-react-utils": "8.12.1-snapshot.7+1e7ac8219",
38
+ "@instructure/ui-testable": "8.12.1-snapshot.7+1e7ac8219",
39
+ "@instructure/ui-utils": "8.12.1-snapshot.7+1e7ac8219",
40
+ "@instructure/ui-view": "8.12.1-snapshot.7+1e7ac8219",
41
41
  "prop-types": "^15"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=16.8 <=17"
45
45
  },
46
46
  "devDependencies": {
47
- "@instructure/ui-babel-preset": "8.11.2-snapshot.71+dffbe6ba3",
48
- "@instructure/ui-color-utils": "8.11.2-snapshot.71+dffbe6ba3",
49
- "@instructure/ui-position": "8.11.2-snapshot.71+dffbe6ba3",
50
- "@instructure/ui-test-locator": "8.11.2-snapshot.71+dffbe6ba3",
51
- "@instructure/ui-test-utils": "8.11.2-snapshot.71+dffbe6ba3",
52
- "@instructure/ui-themes": "8.11.2-snapshot.71+dffbe6ba3"
47
+ "@instructure/ui-babel-preset": "8.12.1-snapshot.7+1e7ac8219",
48
+ "@instructure/ui-color-utils": "8.12.1-snapshot.7+1e7ac8219",
49
+ "@instructure/ui-position": "8.12.1-snapshot.7+1e7ac8219",
50
+ "@instructure/ui-test-locator": "8.12.1-snapshot.7+1e7ac8219",
51
+ "@instructure/ui-test-utils": "8.12.1-snapshot.7+1e7ac8219",
52
+ "@instructure/ui-themes": "8.12.1-snapshot.7+1e7ac8219"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
57
  "sideEffects": false,
58
- "gitHead": "dffbe6ba3be5989382d5edfab5b89886a19408f1"
58
+ "gitHead": "1e7ac821932a91fe9ef761c96f747c7ea1f3925a"
59
59
  }
@@ -483,8 +483,8 @@ class Example extends React.Component {
483
483
  <Modal.Header spacing={this.state.smallViewport ? 'compact' : 'default'}>
484
484
  {this.renderCloseButton()}
485
485
  {this.state.smallViewport
486
- ? <Text size="large">This Modal is optimized for small viewport</Text>
487
- : <Heading>This is a deafult size Modal</Heading>
486
+ ? <Heading as="h2" level="h3" themeOverride={{ h3FontWeight: 400 }}>This Modal is optimized for small viewport</Heading>
487
+ : <Heading as="h2">This is a deafult size Modal</Heading>
488
488
  }
489
489
  </Modal.Header>
490
490
  <Modal.Body>
@@ -38,7 +38,8 @@ import type {
38
38
  AsElementType,
39
39
  PropValidators,
40
40
  ModalTheme,
41
- OtherHTMLAttributes
41
+ OtherHTMLAttributes,
42
+ LiveRegion
42
43
  } from '@instructure/shared-types'
43
44
  import type { PortalNode } from '@instructure/ui-portal'
44
45
  import type { PositionMountNode } from '@instructure/ui-position'
@@ -61,10 +62,7 @@ type ModalOwnProps = {
61
62
  contentRef?: (...args: any[]) => any
62
63
  mountNode?: PositionMountNode
63
64
  insertAt?: 'bottom' | 'top'
64
- liveRegion?:
65
- | React.ReactElement[]
66
- | React.ReactElement
67
- | ((...args: any[]) => any)
65
+ liveRegion?: LiveRegion
68
66
  transition?: TransitionType
69
67
  onEnter?: (...args: any[]) => any
70
68
  onEntering?: (...args: any[]) => any
@@ -30,7 +30,7 @@ declare class Modal extends Component<ModalProps> {
30
30
  contentRef?: ((...args: any[]) => any) | undefined;
31
31
  mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
32
32
  insertAt?: "bottom" | "top" | undefined;
33
- liveRegion?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | ((...args: any[]) => any) | undefined;
33
+ liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
34
34
  transition?: import("@instructure/ui-motion/types/Transition/BaseTransition/props").TransitionType | undefined;
35
35
  onEnter?: ((...args: any[]) => any) | undefined;
36
36
  onEntering?: ((...args: any[]) => any) | undefined;
@@ -57,7 +57,7 @@ declare class Modal extends Component<ModalProps> {
57
57
  contentRef?: ((...args: any[]) => any) | undefined;
58
58
  mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
59
59
  insertAt?: "bottom" | "top" | undefined;
60
- liveRegion?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | ((...args: any[]) => any) | undefined;
60
+ liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
61
61
  transition?: import("@instructure/ui-motion/types/Transition/BaseTransition/props").TransitionType | undefined;
62
62
  onEnter?: ((...args: any[]) => any) | undefined;
63
63
  onEntering?: ((...args: any[]) => any) | undefined;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { AsElementType, PropValidators, ModalTheme, OtherHTMLAttributes } from '@instructure/shared-types';
2
+ import type { AsElementType, PropValidators, ModalTheme, OtherHTMLAttributes, LiveRegion } from '@instructure/shared-types';
3
3
  import type { PortalNode } from '@instructure/ui-portal';
4
4
  import type { PositionMountNode } from '@instructure/ui-position';
5
5
  import type { TransitionType } from '@instructure/ui-motion';
@@ -20,7 +20,7 @@ declare type ModalOwnProps = {
20
20
  contentRef?: (...args: any[]) => any;
21
21
  mountNode?: PositionMountNode;
22
22
  insertAt?: 'bottom' | 'top';
23
- liveRegion?: React.ReactElement[] | React.ReactElement | ((...args: any[]) => any);
23
+ liveRegion?: LiveRegion;
24
24
  transition?: TransitionType;
25
25
  onEnter?: (...args: any[]) => any;
26
26
  onEntering?: (...args: any[]) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Modal/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,UAAU,EACV,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAA;IAC3D,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,mBAAmB,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACpE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,GAAG,CAAA;IACrC,OAAO,CAAC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