@instructure/ui-expandable 8.8.1-snapshot.8 → 8.9.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 CHANGED
@@ -3,6 +3,14 @@
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.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-expandable
9
+
10
+ # [8.9.0](https://github.com/instructure/instructure-ui/compare/v8.8.0...v8.9.0) (2021-09-15)
11
+
12
+ **Note:** Version bump only for package @instructure/ui-expandable
13
+
6
14
  # [8.8.0](https://github.com/instructure/instructure-ui/compare/v8.7.0...v8.8.0) (2021-08-27)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-expandable
@@ -22,10 +22,9 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  import { Component } from 'react';
25
- import PropTypes from 'prop-types';
26
- import { controllable } from '@instructure/ui-prop-types';
27
25
  import { uid } from '@instructure/uid';
28
26
  import { createChainedFunction } from '@instructure/ui-utils';
27
+ import { propTypes, allowedProps } from './props';
29
28
 
30
29
  const toggleExpanded = ({
31
30
  expanded
@@ -110,19 +109,12 @@ class Expandable extends Component {
110
109
  }
111
110
 
112
111
  Expandable.displayName = "Expandable";
113
- Expandable.propTypes = {
114
- expanded: controllable(PropTypes.bool, 'onToggle', 'defaultExpanded'),
115
- defaultExpanded: PropTypes.bool,
116
- onToggle: PropTypes.func,
117
- children: PropTypes.func,
118
- render: PropTypes.func
119
- };
112
+ Expandable.propTypes = propTypes;
113
+ Expandable.allowedProps = allowedProps;
120
114
  Expandable.defaultProps = {
121
115
  defaultExpanded: false,
122
116
  onToggle: function () {},
123
- expanded: void 0,
124
- children: null,
125
- render: void 0
117
+ children: null
126
118
  };
127
119
  export default Expandable;
128
120
  export { Expandable };
@@ -0,0 +1,34 @@
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 { controllable } from '@instructure/ui-prop-types';
26
+ const propTypes = {
27
+ expanded: controllable(PropTypes.bool, 'onToggle', 'defaultExpanded'),
28
+ defaultExpanded: PropTypes.bool,
29
+ onToggle: PropTypes.func,
30
+ children: PropTypes.func,
31
+ render: PropTypes.func
32
+ };
33
+ const allowedProps = ['expanded', 'defaultExpanded', 'onToggle', 'children', 'render'];
34
+ export { propTypes, allowedProps };
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
@@ -9,14 +7,12 @@ exports.Expandable = exports.default = void 0;
9
7
 
10
8
  var _react = require("react");
11
9
 
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
- var _controllable = require("@instructure/ui-prop-types/lib/controllable.js");
15
-
16
10
  var _uid = require("@instructure/uid");
17
11
 
18
12
  var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFunction.js");
19
13
 
14
+ var _props = require("./props");
15
+
20
16
  /*
21
17
  * The MIT License (MIT)
22
18
  *
@@ -124,19 +120,12 @@ class Expandable extends _react.Component {
124
120
 
125
121
  exports.Expandable = Expandable;
126
122
  Expandable.displayName = "Expandable";
127
- Expandable.propTypes = {
128
- expanded: (0, _controllable.controllable)(_propTypes.default.bool, 'onToggle', 'defaultExpanded'),
129
- defaultExpanded: _propTypes.default.bool,
130
- onToggle: _propTypes.default.func,
131
- children: _propTypes.default.func,
132
- render: _propTypes.default.func
133
- };
123
+ Expandable.propTypes = _props.propTypes;
124
+ Expandable.allowedProps = _props.allowedProps;
134
125
  Expandable.defaultProps = {
135
126
  defaultExpanded: false,
136
127
  onToggle: function () {},
137
- expanded: void 0,
138
- children: null,
139
- render: void 0
128
+ children: null
140
129
  };
141
130
  var _default = Expandable;
142
131
  exports.default = _default;
@@ -0,0 +1,46 @@
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 _controllable = require("@instructure/ui-prop-types/lib/controllable.js");
13
+
14
+ /*
15
+ * The MIT License (MIT)
16
+ *
17
+ * Copyright (c) 2015 - present Instructure, Inc.
18
+ *
19
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
20
+ * of this software and associated documentation files (the "Software"), to deal
21
+ * in the Software without restriction, including without limitation the rights
22
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23
+ * copies of the Software, and to permit persons to whom the Software is
24
+ * furnished to do so, subject to the following conditions:
25
+ *
26
+ * The above copyright notice and this permission notice shall be included in all
27
+ * copies or substantial portions of the Software.
28
+ *
29
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+ * SOFTWARE.
36
+ */
37
+ const propTypes = {
38
+ expanded: (0, _controllable.controllable)(_propTypes.default.bool, 'onToggle', 'defaultExpanded'),
39
+ defaultExpanded: _propTypes.default.bool,
40
+ onToggle: _propTypes.default.func,
41
+ children: _propTypes.default.func,
42
+ render: _propTypes.default.func
43
+ };
44
+ exports.propTypes = propTypes;
45
+ const allowedProps = ['expanded', 'defaultExpanded', 'onToggle', 'children', 'render'];
46
+ exports.allowedProps = allowedProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-expandable",
3
- "version": "8.8.1-snapshot.8+7b83164f4",
3
+ "version": "8.9.1",
4
4
  "description": "A utility component for show/hide functionality",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,16 +25,16 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/ui-prop-types": "8.8.1-snapshot.8+7b83164f4",
29
- "@instructure/ui-testable": "8.8.1-snapshot.8+7b83164f4",
30
- "@instructure/ui-utils": "8.8.1-snapshot.8+7b83164f4",
31
- "@instructure/uid": "8.8.1-snapshot.8+7b83164f4",
28
+ "@instructure/ui-prop-types": "8.9.1",
29
+ "@instructure/ui-testable": "8.9.1",
30
+ "@instructure/ui-utils": "8.9.1",
31
+ "@instructure/uid": "8.9.1",
32
32
  "prop-types": "^15"
33
33
  },
34
34
  "devDependencies": {
35
- "@instructure/ui-babel-preset": "8.8.1-snapshot.8+7b83164f4",
36
- "@instructure/ui-color-utils": "8.8.1-snapshot.8+7b83164f4",
37
- "@instructure/ui-test-utils": "8.8.1-snapshot.8+7b83164f4"
35
+ "@instructure/ui-babel-preset": "8.9.1",
36
+ "@instructure/ui-color-utils": "8.9.1",
37
+ "@instructure/ui-test-utils": "8.9.1"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": ">=16.8 <=17"
@@ -42,6 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "sideEffects": false,
46
- "gitHead": "7b83164f4c5872f3a217e010563f59bf584ae4fc"
45
+ "sideEffects": false
47
46
  }
@@ -22,11 +22,11 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  import { Component } from 'react'
25
- import PropTypes from 'prop-types'
26
- import { controllable } from '@instructure/ui-prop-types'
27
25
  import { uid } from '@instructure/uid'
28
26
  import { createChainedFunction } from '@instructure/ui-utils'
29
- import { ExpandableProps, ExpandableState } from './types'
27
+
28
+ import { propTypes, allowedProps } from './props'
29
+ import type { ExpandableProps, ExpandableState } from './props'
30
30
 
31
31
  const toggleExpanded = ({ expanded }: { expanded: boolean }) => ({
32
32
  expanded: !expanded
@@ -39,20 +39,12 @@ category: components/utilities
39
39
  @tsProps
40
40
  */
41
41
  class Expandable extends Component<ExpandableProps, ExpandableState> {
42
- static propTypes = {
43
- expanded: controllable(PropTypes.bool, 'onToggle', 'defaultExpanded'),
44
- defaultExpanded: PropTypes.bool,
45
- onToggle: PropTypes.func,
46
- children: PropTypes.func,
47
- render: PropTypes.func
48
- }
49
-
42
+ static propTypes = propTypes
43
+ static allowedProps = allowedProps
50
44
  static defaultProps = {
51
45
  defaultExpanded: false,
52
46
  onToggle: function () {},
53
- expanded: undefined,
54
- children: null,
55
- render: undefined
47
+ children: null
56
48
  }
57
49
 
58
50
  _contentId: string
@@ -22,6 +22,12 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
+ import PropTypes from 'prop-types'
26
+
27
+ import { controllable } from '@instructure/ui-prop-types'
28
+
29
+ import type { PropValidators } from '@instructure/shared-types'
30
+
25
31
  type GetToggleProps = <P extends Record<string, any>>(
26
32
  props?: P & { onClick?: (event: Event) => void }
27
33
  ) => {
@@ -44,9 +50,9 @@ type RenderProps = {
44
50
  getDetailsProps: () => { id: string }
45
51
  }
46
52
 
47
- export type RenderExpandable = (props: RenderProps) => JSX.Element
53
+ type RenderExpandable = (props: RenderProps) => JSX.Element
48
54
 
49
- export type ExpandableProps = {
55
+ type ExpandableOwnProps = {
50
56
  /**
51
57
  * Whether the content is expanded or hidden. Makes the component controlled, so if provided, the `onToggle` handler has to be provided too.
52
58
  */
@@ -73,4 +79,29 @@ export type ExpandableProps = {
73
79
  render?: RenderExpandable
74
80
  }
75
81
 
76
- export type ExpandableState = { expanded: boolean }
82
+ type ExpandableState = { expanded: boolean }
83
+
84
+ type PropKeys = keyof ExpandableOwnProps
85
+
86
+ type AllowedPropKeys = Readonly<Array<PropKeys>>
87
+
88
+ type ExpandableProps = ExpandableOwnProps
89
+
90
+ const propTypes: PropValidators<PropKeys> = {
91
+ expanded: controllable(PropTypes.bool, 'onToggle', 'defaultExpanded'),
92
+ defaultExpanded: PropTypes.bool,
93
+ onToggle: PropTypes.func,
94
+ children: PropTypes.func,
95
+ render: PropTypes.func
96
+ }
97
+
98
+ const allowedProps: AllowedPropKeys = [
99
+ 'expanded',
100
+ 'defaultExpanded',
101
+ 'onToggle',
102
+ 'children',
103
+ 'render'
104
+ ]
105
+
106
+ export type { ExpandableProps, ExpandableState, RenderExpandable }
107
+ export { propTypes, allowedProps }
package/src/index.ts CHANGED
@@ -22,4 +22,4 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  export { Expandable } from './Expandable'
25
- export type { ExpandableProps, RenderExpandable } from './Expandable/types'
25
+ export type { ExpandableProps, RenderExpandable } from './Expandable/props'
@@ -1,6 +1,5 @@
1
1
  import { Component } from 'react';
2
- import PropTypes from 'prop-types';
3
- import { ExpandableProps, ExpandableState } from './types';
2
+ import type { ExpandableProps, ExpandableState } from './props';
4
3
  /**
5
4
  ---
6
5
  category: components/utilities
@@ -8,24 +7,35 @@ category: components/utilities
8
7
  @tsProps
9
8
  */
10
9
  declare class Expandable extends Component<ExpandableProps, ExpandableState> {
11
- static propTypes: {
12
- expanded: (props: Record<string, any>, propName: string, componentName: string) => Error | null;
13
- defaultExpanded: PropTypes.Requireable<boolean>;
14
- onToggle: PropTypes.Requireable<(...args: any[]) => any>;
15
- children: PropTypes.Requireable<(...args: any[]) => any>;
16
- render: PropTypes.Requireable<(...args: any[]) => any>;
17
- };
10
+ static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
11
+ expanded?: boolean | undefined;
12
+ defaultExpanded: boolean;
13
+ onToggle: (event: Event, expanded: boolean) => void;
14
+ children?: import("./props").RenderExpandable | undefined;
15
+ render?: import("./props").RenderExpandable | undefined;
16
+ }>;
17
+ static allowedProps: readonly (keyof {
18
+ expanded?: boolean | undefined;
19
+ defaultExpanded: boolean;
20
+ onToggle: (event: Event, expanded: boolean) => void;
21
+ children?: import("./props").RenderExpandable | undefined;
22
+ render?: import("./props").RenderExpandable | undefined;
23
+ })[];
18
24
  static defaultProps: {
19
25
  defaultExpanded: boolean;
20
26
  onToggle: () => void;
21
- expanded: undefined;
22
27
  children: null;
23
- render: undefined;
24
28
  };
25
29
  _contentId: string;
26
30
  constructor(props: ExpandableProps);
27
31
  get expanded(): boolean;
28
- isControlled(props?: Readonly<ExpandableProps> & Readonly<{
32
+ isControlled(props?: Readonly<{
33
+ expanded?: boolean | undefined;
34
+ defaultExpanded: boolean;
35
+ onToggle: (event: Event, expanded: boolean) => void;
36
+ children?: import("./props").RenderExpandable | undefined;
37
+ render?: import("./props").RenderExpandable | undefined;
38
+ }> & Readonly<{
29
39
  children?: import("react").ReactNode;
30
40
  }>): boolean;
31
41
  static getDerivedStateFromProps(nextProps: ExpandableProps, state: ExpandableState): {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Expandable/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,SAAS,MAAM,YAAY,CAAA;AAIlC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM1D;;;;;EAKE;AACF,cAAM,UAAW,SAAQ,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAClE,MAAM,CAAC,SAAS;;;;;;MAMf;IAED,MAAM,CAAC,YAAY;;;;;;MAMlB;IAED,UAAU,EAAE,MAAM,CAAA;gBAEN,KAAK,EAAE,eAAe;IAUlC,IAAI,QAAQ,YAIX;IAED,YAAY,CAAC,KAAK;;MAAa;IAI/B,MAAM,CAAC,wBAAwB,CAC7B,SAAS,EAAE,eAAe,EAC1B,KAAK,EAAE,eAAe;;;IAgBxB,YAAY,UAAW,KAAK,UAK3B;IAED,MAAM;CA2BP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Expandable/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM/D;;;;;EAKE;AACF,cAAM,UAAW,SAAQ,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAClE,MAAM,CAAC,SAAS;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;MAIlB;IAED,UAAU,EAAE,MAAM,CAAA;gBAEN,KAAK,EAAE,eAAe;IAUlC,IAAI,QAAQ,YAIX;IAED,YAAY,CAAC,KAAK;;;;;;;;MAAa;IAI/B,MAAM,CAAC,wBAAwB,CAC7B,SAAS,EAAE,eAAe,EAC1B,KAAK,EAAE,eAAe;;;IAgBxB,YAAY,UAAW,KAAK,UAK3B;IAED,MAAM;CA2BP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import type { PropValidators } from '@instructure/shared-types';
2
3
  declare type GetToggleProps = <P extends Record<string, any>>(props?: P & {
3
4
  onClick?: (event: Event) => void;
4
5
  }) => {
@@ -19,8 +20,8 @@ declare type RenderProps = {
19
20
  id: string;
20
21
  };
21
22
  };
22
- export declare type RenderExpandable = (props: RenderProps) => JSX.Element;
23
- export declare type ExpandableProps = {
23
+ declare type RenderExpandable = (props: RenderProps) => JSX.Element;
24
+ declare type ExpandableOwnProps = {
24
25
  /**
25
26
  * Whether the content is expanded or hidden. Makes the component controlled, so if provided, the `onToggle` handler has to be provided too.
26
27
  */
@@ -42,8 +43,14 @@ export declare type ExpandableProps = {
42
43
  */
43
44
  render?: RenderExpandable;
44
45
  };
45
- export declare type ExpandableState = {
46
+ declare type ExpandableState = {
46
47
  expanded: boolean;
47
48
  };
48
- export {};
49
- //# sourceMappingURL=types.d.ts.map
49
+ declare type PropKeys = keyof ExpandableOwnProps;
50
+ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
51
+ declare type ExpandableProps = ExpandableOwnProps;
52
+ declare const propTypes: PropValidators<PropKeys>;
53
+ declare const allowedProps: AllowedPropKeys;
54
+ export type { ExpandableProps, ExpandableState, RenderExpandable };
55
+ export { propTypes, allowedProps };
56
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Expandable/props.ts"],"names":[],"mappings":";AA4BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,cAAc,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClD,KAAK,CAAC,EAAE,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,KAC7C;IACH,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;IACxB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAChC,GAAG,CAAC,CAAA;AAEL,aAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,cAAc,EAAE,cAAc,CAAA;IAE9B;;OAEG;IACH,eAAe,EAAE,MAAM;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CACtC,CAAA;AAED,aAAK,gBAAgB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,GAAG,CAAC,OAAO,CAAA;AAE3D,aAAK,kBAAkB,GAAG;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAA;IAExB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IAEnD;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,aAAK,eAAe,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAA;AAE5C,aAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,eAAe,GAAG,kBAAkB,CAAA;AAEzC,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAMvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAMnB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
package/types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { Expandable } from './Expandable';
2
- export type { ExpandableProps, RenderExpandable } from './Expandable/types';
2
+ export type { ExpandableProps, RenderExpandable } from './Expandable/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/Expandable/types.ts"],"names":[],"mappings":";AAwBA,aAAK,cAAc,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClD,KAAK,CAAC,EAAE,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,KAC7C;IACH,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;IACxB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAChC,GAAG,CAAC,CAAA;AAEL,aAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,cAAc,EAAE,cAAc,CAAA;IAE9B;;OAEG;IACH,eAAe,EAAE,MAAM;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CACtC,CAAA;AAED,oBAAY,gBAAgB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,GAAG,CAAC,OAAO,CAAA;AAElE,oBAAY,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAA;IAExB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IAEnD;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,oBAAY,eAAe,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAA"}