@instructure/ui-portal 8.8.1-snapshot.8 → 8.9.0

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.9.0](https://github.com/instructure/instructure-ui/compare/v8.8.0...v8.9.0) (2021-09-15)
7
+
8
+ ### Bug Fixes
9
+
10
+ - fix shared-types TS errors ([7b83164](https://github.com/instructure/instructure-ui/commit/7b83164f4c5872f3a217e010563f59bf584ae4fc))
11
+
6
12
  # [8.8.0](https://github.com/instructure/instructure-ui/compare/v8.7.0...v8.8.0) (2021-08-27)
7
13
 
8
14
  **Note:** Version bump only for package @instructure/ui-portal
@@ -27,11 +27,10 @@ var _dec, _class, _class2, _temp;
27
27
  * SOFTWARE.
28
28
  */
29
29
  import React, { Component } from 'react';
30
- import PropTypes from 'prop-types';
31
30
  import ReactDOM from 'react-dom';
32
- import { element } from '@instructure/ui-prop-types';
33
31
  import { passthroughProps } from '@instructure/ui-react-utils';
34
32
  import { bidirectional } from '@instructure/ui-i18n';
33
+ import { propTypes, allowedProps } from './props';
35
34
 
36
35
  /**
37
36
  ---
@@ -162,17 +161,7 @@ let Portal = (_dec = bidirectional(), _dec(_class = (_temp = _class2 = class Por
162
161
  return this.props.open && React.Children.count(children) > 0 ? /*#__PURE__*/ReactDOM.createPortal(children, this.insertNode()) : null;
163
162
  }
164
163
 
165
- }, _class2.displayName = "Portal", _class2.propTypes = {
166
- open: PropTypes.bool,
167
- onOpen: PropTypes.func,
168
- onClose: PropTypes.func,
169
- mountNode: PropTypes.oneOfType([element, PropTypes.func]),
170
- insertAt: PropTypes.oneOf(['bottom', 'top']),
171
- children: PropTypes.node,
172
- elementRef: PropTypes.func,
173
- // eslint-disable-next-line react/require-default-props
174
- dir: PropTypes.oneOf(Object.values(bidirectional.DIRECTION))
175
- }, _class2.defaultProps = {
164
+ }, _class2.displayName = "Portal", _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
176
165
  open: false,
177
166
  insertAt: 'bottom',
178
167
  onOpen: () => {},
@@ -0,0 +1,38 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ import PropTypes from 'prop-types';
25
+ import { element } from '@instructure/ui-prop-types';
26
+ import { bidirectional } from '@instructure/ui-i18n';
27
+ const propTypes = {
28
+ open: PropTypes.bool,
29
+ onOpen: PropTypes.func,
30
+ onClose: PropTypes.func,
31
+ mountNode: PropTypes.oneOfType([element, PropTypes.func]),
32
+ insertAt: PropTypes.oneOf(['bottom', 'top']),
33
+ children: PropTypes.node,
34
+ elementRef: PropTypes.func,
35
+ dir: PropTypes.oneOf(Object.values(bidirectional.DIRECTION))
36
+ };
37
+ const allowedProps = ['open', 'onOpen', 'onClose', 'mountNode', 'insertAt', 'children', 'elementRef', 'dir'];
38
+ export { propTypes, allowedProps };
@@ -13,16 +13,14 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
 
16
- var _propTypes = _interopRequireDefault(require("prop-types"));
17
-
18
16
  var _reactDom = _interopRequireDefault(require("react-dom"));
19
17
 
20
- var _element = require("@instructure/ui-prop-types/lib/element.js");
21
-
22
18
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
23
19
 
24
20
  var _bidirectional = require("@instructure/ui-i18n/lib/bidirectional.js");
25
21
 
22
+ var _props = require("./props");
23
+
26
24
  const _excluded = ["open", "insertAt", "onOpen", "onClose", "mountNode", "children", "elementRef", "dir"];
27
25
 
28
26
  var _dec, _class, _class2, _temp;
@@ -155,17 +153,7 @@ let Portal = (_dec = (0, _bidirectional.bidirectional)(), _dec(_class = (_temp =
155
153
  return this.props.open && _react.default.Children.count(children) > 0 ? /*#__PURE__*/_reactDom.default.createPortal(children, this.insertNode()) : null;
156
154
  }
157
155
 
158
- }, _class2.displayName = "Portal", _class2.propTypes = {
159
- open: _propTypes.default.bool,
160
- onOpen: _propTypes.default.func,
161
- onClose: _propTypes.default.func,
162
- mountNode: _propTypes.default.oneOfType([_element.element, _propTypes.default.func]),
163
- insertAt: _propTypes.default.oneOf(['bottom', 'top']),
164
- children: _propTypes.default.node,
165
- elementRef: _propTypes.default.func,
166
- // eslint-disable-next-line react/require-default-props
167
- dir: _propTypes.default.oneOf(Object.values(_bidirectional.bidirectional.DIRECTION))
168
- }, _class2.defaultProps = {
156
+ }, _class2.displayName = "Portal", _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
169
157
  open: false,
170
158
  insertAt: 'bottom',
171
159
  onOpen: () => {},
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.allowedProps = exports.propTypes = void 0;
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _element = require("@instructure/ui-prop-types/lib/element.js");
13
+
14
+ var _bidirectional = require("@instructure/ui-i18n/lib/bidirectional.js");
15
+
16
+ /*
17
+ * The MIT License (MIT)
18
+ *
19
+ * Copyright (c) 2015 - present Instructure, Inc.
20
+ *
21
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
22
+ * of this software and associated documentation files (the "Software"), to deal
23
+ * in the Software without restriction, including without limitation the rights
24
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25
+ * copies of the Software, and to permit persons to whom the Software is
26
+ * furnished to do so, subject to the following conditions:
27
+ *
28
+ * The above copyright notice and this permission notice shall be included in all
29
+ * copies or substantial portions of the Software.
30
+ *
31
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
+ * SOFTWARE.
38
+ */
39
+ const propTypes = {
40
+ open: _propTypes.default.bool,
41
+ onOpen: _propTypes.default.func,
42
+ onClose: _propTypes.default.func,
43
+ mountNode: _propTypes.default.oneOfType([_element.element, _propTypes.default.func]),
44
+ insertAt: _propTypes.default.oneOf(['bottom', 'top']),
45
+ children: _propTypes.default.node,
46
+ elementRef: _propTypes.default.func,
47
+ dir: _propTypes.default.oneOf(Object.values(_bidirectional.bidirectional.DIRECTION))
48
+ };
49
+ exports.propTypes = propTypes;
50
+ const allowedProps = ['open', 'onOpen', 'onClose', 'mountNode', 'insertAt', 'children', 'elementRef', 'dir'];
51
+ exports.allowedProps = allowedProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-portal",
3
- "version": "8.8.1-snapshot.8+7b83164f4",
3
+ "version": "8.9.0",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,15 +24,15 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.8.1-snapshot.8+7b83164f4",
28
- "@instructure/ui-test-utils": "8.8.1-snapshot.8+7b83164f4"
27
+ "@instructure/ui-babel-preset": "8.9.0",
28
+ "@instructure/ui-test-utils": "8.9.0"
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.13.10",
32
- "@instructure/shared-types": "8.8.1-snapshot.8+7b83164f4",
33
- "@instructure/ui-i18n": "8.8.1-snapshot.8+7b83164f4",
34
- "@instructure/ui-prop-types": "8.8.1-snapshot.8+7b83164f4",
35
- "@instructure/ui-react-utils": "8.8.1-snapshot.8+7b83164f4",
32
+ "@instructure/shared-types": "8.9.0",
33
+ "@instructure/ui-i18n": "8.9.0",
34
+ "@instructure/ui-prop-types": "8.9.0",
35
+ "@instructure/ui-react-utils": "8.9.0",
36
36
  "prop-types": "^15"
37
37
  },
38
38
  "peerDependencies": {
@@ -42,6 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "sideEffects": false,
46
- "gitHead": "7b83164f4c5872f3a217e010563f59bf584ae4fc"
45
+ "sideEffects": false
47
46
  }
@@ -23,15 +23,14 @@
23
23
  */
24
24
 
25
25
  import React, { Component } from 'react'
26
- import PropTypes from 'prop-types'
27
26
  import ReactDOM from 'react-dom'
28
27
 
29
- import { element } from '@instructure/ui-prop-types'
30
- import { OtherHTMLAttributes } from '@instructure/shared-types'
31
28
  import { passthroughProps } from '@instructure/ui-react-utils'
32
29
  import { bidirectional } from '@instructure/ui-i18n'
30
+ import type { OtherHTMLAttributes } from '@instructure/shared-types'
33
31
 
34
- import { PortalNode, PortalProps, PortalState } from './types'
32
+ import { propTypes, allowedProps } from './props'
33
+ import type { PortalNode, PortalProps, PortalState } from './props'
35
34
 
36
35
  /**
37
36
  ---
@@ -42,21 +41,14 @@ category: components/utilities
42
41
  **/
43
42
  @bidirectional()
44
43
  class Portal extends Component<
44
+ // For some (yet) unknown reason, adding OtherHTMLAttributes in the `props.ts`
45
+ // breaks the docs generation for Portal
46
+ // TODO: try to figure out why (and fix, if possible)
45
47
  PortalProps & OtherHTMLAttributes<PortalProps>,
46
48
  PortalState
47
49
  > {
48
- static propTypes = {
49
- open: PropTypes.bool,
50
- onOpen: PropTypes.func,
51
- onClose: PropTypes.func,
52
- mountNode: PropTypes.oneOfType([element, PropTypes.func]),
53
- insertAt: PropTypes.oneOf(['bottom', 'top']),
54
- children: PropTypes.node,
55
- elementRef: PropTypes.func,
56
- // eslint-disable-next-line react/require-default-props
57
- dir: PropTypes.oneOf(Object.values(bidirectional.DIRECTION))
58
- }
59
-
50
+ static propTypes = propTypes
51
+ static allowedProps = allowedProps
60
52
  static defaultProps = {
61
53
  open: false,
62
54
  insertAt: 'bottom',
@@ -23,14 +23,20 @@
23
23
  */
24
24
 
25
25
  import React from 'react'
26
+ import PropTypes from 'prop-types'
27
+
28
+ import { element } from '@instructure/ui-prop-types'
29
+ import { bidirectional } from '@instructure/ui-i18n'
30
+
26
31
  import type { BidirectionalProps } from '@instructure/ui-i18n'
32
+ import type { PropValidators } from '@instructure/shared-types'
27
33
 
28
34
  /**
29
35
  * The DOM Node of the Portal. It is created as a `span` element.
30
36
  */
31
- export type PortalNode = HTMLSpanElement | null | undefined
37
+ type PortalNode = HTMLSpanElement | null | undefined
32
38
 
33
- export type PortalOwnProps = {
39
+ type PortalOwnProps = {
34
40
  /**
35
41
  * Whether or not the `<Portal />` is open
36
42
  */
@@ -66,10 +72,39 @@ export type PortalOwnProps = {
66
72
  * Provides a reference to the underlying html element. Ha the Portal DOMNode as parameter.
67
73
  */
68
74
  elementRef?: (el?: PortalNode) => void
69
- }
75
+ } & BidirectionalProps
76
+
77
+ type PropKeys = keyof PortalOwnProps
78
+
79
+ type AllowedPropKeys = Readonly<Array<PropKeys>>
70
80
 
71
- export type PortalProps = PortalOwnProps & BidirectionalProps
81
+ type PortalProps = PortalOwnProps
72
82
 
73
- export type PortalState = {
83
+ type PortalState = {
74
84
  mountNode: Element
75
85
  }
86
+
87
+ const propTypes: PropValidators<PropKeys> = {
88
+ open: PropTypes.bool,
89
+ onOpen: PropTypes.func,
90
+ onClose: PropTypes.func,
91
+ mountNode: PropTypes.oneOfType([element, PropTypes.func]),
92
+ insertAt: PropTypes.oneOf(['bottom', 'top']),
93
+ children: PropTypes.node,
94
+ elementRef: PropTypes.func,
95
+ dir: PropTypes.oneOf(Object.values(bidirectional.DIRECTION))
96
+ }
97
+
98
+ const allowedProps: AllowedPropKeys = [
99
+ 'open',
100
+ 'onOpen',
101
+ 'onClose',
102
+ 'mountNode',
103
+ 'insertAt',
104
+ 'children',
105
+ 'elementRef',
106
+ 'dir'
107
+ ]
108
+
109
+ export type { PortalProps, PortalState, PortalNode }
110
+ export { propTypes, allowedProps }
package/src/index.ts CHANGED
@@ -23,4 +23,4 @@
23
23
  */
24
24
 
25
25
  export { Portal } from './Portal'
26
- export type { PortalProps, PortalNode } from './Portal/types'
26
+ export type { PortalProps, PortalNode } from './Portal/props'
@@ -1,7 +1,6 @@
1
1
  import React, { Component } from 'react';
2
- import PropTypes from 'prop-types';
3
- import { OtherHTMLAttributes } from '@instructure/shared-types';
4
- import { PortalNode, PortalProps, PortalState } from './types';
2
+ import type { OtherHTMLAttributes } from '@instructure/shared-types';
3
+ import type { PortalNode, PortalProps, PortalState } from './props';
5
4
  /**
6
5
  ---
7
6
  category: components/utilities
@@ -10,16 +9,8 @@ category: components/utilities
10
9
  @tsProps
11
10
  **/
12
11
  declare class Portal extends Component<PortalProps & OtherHTMLAttributes<PortalProps>, PortalState> {
13
- static propTypes: {
14
- open: PropTypes.Requireable<boolean>;
15
- onOpen: PropTypes.Requireable<(...args: any[]) => any>;
16
- onClose: PropTypes.Requireable<(...args: any[]) => any>;
17
- mountNode: PropTypes.Requireable<Element | ((...args: any[]) => any) | PropTypes.ReactElementLike>;
18
- insertAt: PropTypes.Requireable<string>;
19
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
20
- elementRef: PropTypes.Requireable<(...args: any[]) => any>;
21
- dir: PropTypes.Requireable<string>;
22
- };
12
+ static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<"open" | "onOpen" | "onClose" | "mountNode" | "insertAt" | "children" | "elementRef" | "dir">;
13
+ static allowedProps: readonly ("open" | "onOpen" | "onClose" | "mountNode" | "insertAt" | "children" | "elementRef" | "dir")[];
23
14
  static defaultProps: {
24
15
  open: boolean;
25
16
  insertAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Portal/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,SAAS,MAAM,YAAY,CAAA;AAIlC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAI/D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE9D;;;;;;GAMG;AACH,cACM,MAAO,SAAQ,SAAS,CAC5B,WAAW,GAAG,mBAAmB,CAAC,WAAW,CAAC,EAC9C,WAAW,CACZ;IACC,MAAM,CAAC,SAAS;;;;;;;;;MAUf;IAED,MAAM,CAAC,YAAY;;;;;;;;MAQlB;gBAEW,KAAK,EAAE,WAAW;IAQ9B,OAAO,EAAE,UAAU,CAAO;IAE1B,iBAAiB;IAOjB,kBAAkB,CAAC,SAAS,EAAE,WAAW;IA2BzC,oBAAoB;IASpB,UAAU;IAeV,UAAU;IA+CV,aAAa,CAAC,KAAK,EAAE,WAAW;IAgBhC,IAAI,IAAI,eAEP;IAED,MAAM,IAAI,KAAK,CAAC,WAAW,GAAG,IAAI;CAOnC;AAED,eAAe,MAAM,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Portal/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAGpE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEnE;;;;;;GAMG;AACH,cACM,MAAO,SAAQ,SAAS,CAI5B,WAAW,GAAG,mBAAmB,CAAC,WAAW,CAAC,EAC9C,WAAW,CACZ;IACC,MAAM,CAAC,SAAS,sKAAY;IAC5B,MAAM,CAAC,YAAY,4GAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;MAQlB;gBAEW,KAAK,EAAE,WAAW;IAQ9B,OAAO,EAAE,UAAU,CAAO;IAE1B,iBAAiB;IAOjB,kBAAkB,CAAC,SAAS,EAAE,WAAW;IA2BzC,oBAAoB;IASpB,UAAU;IAeV,UAAU;IA+CV,aAAa,CAAC,KAAK,EAAE,WAAW;IAgBhC,IAAI,IAAI,eAEP;IAED,MAAM,IAAI,KAAK,CAAC,WAAW,GAAG,IAAI;CAOnC;AAED,eAAe,MAAM,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { BidirectionalProps } from '@instructure/ui-i18n';
3
+ import type { PropValidators } from '@instructure/shared-types';
3
4
  /**
4
5
  * The DOM Node of the Portal. It is created as a `span` element.
5
6
  */
6
- export declare type PortalNode = HTMLSpanElement | null | undefined;
7
- export declare type PortalOwnProps = {
7
+ declare type PortalNode = HTMLSpanElement | null | undefined;
8
+ declare type PortalOwnProps = {
8
9
  /**
9
10
  * Whether or not the `<Portal />` is open
10
11
  */
@@ -34,9 +35,15 @@ export declare type PortalOwnProps = {
34
35
  * Provides a reference to the underlying html element. Ha the Portal DOMNode as parameter.
35
36
  */
36
37
  elementRef?: (el?: PortalNode) => void;
37
- };
38
- export declare type PortalProps = PortalOwnProps & BidirectionalProps;
39
- export declare type PortalState = {
38
+ } & BidirectionalProps;
39
+ declare type PropKeys = keyof PortalOwnProps;
40
+ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
41
+ declare type PortalProps = PortalOwnProps;
42
+ declare type PortalState = {
40
43
  mountNode: Element;
41
44
  };
42
- //# sourceMappingURL=types.d.ts.map
45
+ declare const propTypes: PropValidators<PropKeys>;
46
+ declare const allowedProps: AllowedPropKeys;
47
+ export type { PortalProps, PortalState, PortalNode };
48
+ export { propTypes, allowedProps };
49
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Portal/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D;;GAEG;AACH,aAAK,UAAU,GAAG,eAAe,GAAG,IAAI,GAAG,SAAS,CAAA;AAEpD,aAAK,cAAc,GAAG;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAEvC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,IAAI,CAAA;IAEnD;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CACvC,GAAG,kBAAkB,CAAA;AAEtB,aAAK,QAAQ,GAAG,MAAM,cAAc,CAAA;AAEpC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,WAAW,GAAG,cAAc,CAAA;AAEjC,aAAK,WAAW,GAAG;IACjB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CASvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eASnB,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
package/types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { Portal } from './Portal';
2
- export type { PortalProps, PortalNode } from './Portal/types';
2
+ export type { PortalProps, PortalNode } from './Portal/props';
3
3
  //# sourceMappingURL=index.d.ts.map
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Portal/types.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D;;GAEG;AACH,oBAAY,UAAU,GAAG,eAAe,GAAG,IAAI,GAAG,SAAS,CAAA;AAE3D,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAEvC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,IAAI,CAAA;IAEnD;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CACvC,CAAA;AAED,oBAAY,WAAW,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAE7D,oBAAY,WAAW,GAAG;IACxB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA"}