@collana-solutions/reactstrap 10.0.1 → 10.0.2
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 +6 -0
- package/esm/Dropdown.js +1 -1
- package/esm/DropdownMenu.js +2 -2
- package/esm/DropdownToggle.js +1 -1
- package/esm/PopperContent.js +1 -1
- package/esm/__tests__/DropdownMenu.spec.js +1 -1
- package/esm/__tests__/PopperContent.spec.js +1 -1
- package/esm/__tests__/TooltipPopoverWrapper.spec.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/DropdownMenu.js +2 -2
- package/lib/DropdownToggle.js +1 -1
- package/lib/PopperContent.js +1 -1
- package/package.json +2 -2
- package/src/Dropdown.js +1 -1
- package/src/DropdownMenu.js +2 -2
- package/src/DropdownToggle.js +1 -1
- package/src/PopperContent.js +1 -1
- package/src/__tests__/DropdownMenu.spec.js +1 -1
- package/src/__tests__/PopperContent.spec.js +1 -1
- package/src/__tests__/TooltipPopoverWrapper.spec.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @collana-solutions/reactstrap
|
|
2
2
|
|
|
3
|
+
## 10.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#18](https://github.com/collana-solutions/reactstrap/pull/18) [`f894c01`](https://github.com/collana-solutions/reactstrap/commit/f894c0131ac9a707b898c79831fcf869e043ce70) Thanks [@neotrow](https://github.com/neotrow)! - Depends on `@collana-solutions/react-popper` instead of `@neolution-ch/react-popper`, no other change. The new package has the same code as before, so nothing changes for consumers.
|
|
8
|
+
|
|
3
9
|
## 10.0.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/esm/Dropdown.js
CHANGED
|
@@ -21,7 +21,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
21
21
|
|
|
22
22
|
import React from 'react';
|
|
23
23
|
import PropTypes from 'prop-types';
|
|
24
|
-
import { Manager } from '@
|
|
24
|
+
import { Manager } from '@collana-solutions/react-popper';
|
|
25
25
|
import classNames from 'classnames';
|
|
26
26
|
import { DropdownContext } from './DropdownContext';
|
|
27
27
|
import { mapToCssModules, omit, tagPropType } from './utils';
|
package/esm/DropdownMenu.js
CHANGED
|
@@ -28,7 +28,7 @@ import React from 'react';
|
|
|
28
28
|
import PropTypes from 'prop-types';
|
|
29
29
|
import ReactDOM from 'react-dom';
|
|
30
30
|
import classNames from 'classnames';
|
|
31
|
-
import { Popper } from '@
|
|
31
|
+
import { Popper } from '@collana-solutions/react-popper';
|
|
32
32
|
import { DropdownContext } from './DropdownContext';
|
|
33
33
|
import { mapToCssModules, tagPropType, targetPropType, getTarget, deprecated } from './utils';
|
|
34
34
|
var propTypes = {
|
|
@@ -123,7 +123,7 @@ var DropdownMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
123
123
|
update = _ref.update;
|
|
124
124
|
var combinedStyle = _objectSpread(_objectSpread(_objectSpread({}, _this.props.style), persistStyles), style);
|
|
125
125
|
var handleRef = function handleRef(tagRef) {
|
|
126
|
-
// Send the ref to `@
|
|
126
|
+
// Send the ref to `@collana-solutions/react-popper`
|
|
127
127
|
ref(tagRef);
|
|
128
128
|
// Send the ref to the parent Dropdown so that clicks outside
|
|
129
129
|
// it will cause it to close
|
package/esm/DropdownToggle.js
CHANGED
|
@@ -19,7 +19,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
19
19
|
import React from 'react';
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import classNames from 'classnames';
|
|
22
|
-
import { Reference } from '@
|
|
22
|
+
import { Reference } from '@collana-solutions/react-popper';
|
|
23
23
|
import { DropdownContext } from './DropdownContext';
|
|
24
24
|
import { mapToCssModules, tagPropType } from './utils';
|
|
25
25
|
import Button from './Button';
|
package/esm/PopperContent.js
CHANGED
|
@@ -28,7 +28,7 @@ import React from 'react';
|
|
|
28
28
|
import PropTypes from 'prop-types';
|
|
29
29
|
import ReactDOM from 'react-dom';
|
|
30
30
|
import classNames from 'classnames';
|
|
31
|
-
import { Popper as ReactPopper } from '@
|
|
31
|
+
import { Popper as ReactPopper } from '@collana-solutions/react-popper';
|
|
32
32
|
import { getTarget, targetPropType, mapToCssModules, DOMElement, tagPropType } from './utils';
|
|
33
33
|
import Fade from './Fade';
|
|
34
34
|
function noop() {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { screen } from '@testing-library/react';
|
|
3
|
-
import { Popper } from '@
|
|
3
|
+
import { Popper } from '@collana-solutions/react-popper';
|
|
4
4
|
import '@testing-library/jest-dom';
|
|
5
5
|
import { DropdownMenu } from '..';
|
|
6
6
|
import { customDropdownRender } from '../testUtils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Popper } from '@
|
|
2
|
+
import { Popper } from '@collana-solutions/react-popper';
|
|
3
3
|
import '@testing-library/jest-dom';
|
|
4
4
|
import { render, screen } from '@testing-library/react';
|
|
5
5
|
import { PopperContent } from '..';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Popper } from '@
|
|
2
|
+
import { Popper } from '@collana-solutions/react-popper';
|
|
3
3
|
import user from '@testing-library/user-event';
|
|
4
4
|
import { render, screen, act, fireEvent } from '@testing-library/react';
|
|
5
5
|
import '@testing-library/jest-dom';
|
package/lib/Dropdown.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _reactPopper = require("@
|
|
9
|
+
var _reactPopper = require("@collana-solutions/react-popper");
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
var _DropdownContext = require("./DropdownContext");
|
|
12
12
|
var _utils = require("./utils");
|
package/lib/DropdownMenu.js
CHANGED
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _reactPopper = require("@
|
|
11
|
+
var _reactPopper = require("@collana-solutions/react-popper");
|
|
12
12
|
var _DropdownContext = require("./DropdownContext");
|
|
13
13
|
var _utils = require("./utils");
|
|
14
14
|
const _excluded = ["className", "cssModule", "dark", "end", "right", "tag", "flip", "modifiers", "persist", "strategy", "container", "updateOnSelect"];
|
|
@@ -102,7 +102,7 @@ class DropdownMenu extends _react.default.Component {
|
|
|
102
102
|
}) => {
|
|
103
103
|
let combinedStyle = _objectSpread(_objectSpread(_objectSpread({}, this.props.style), persistStyles), style);
|
|
104
104
|
const handleRef = tagRef => {
|
|
105
|
-
// Send the ref to `@
|
|
105
|
+
// Send the ref to `@collana-solutions/react-popper`
|
|
106
106
|
ref(tagRef);
|
|
107
107
|
// Send the ref to the parent Dropdown so that clicks outside
|
|
108
108
|
// it will cause it to close
|
package/lib/DropdownToggle.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var _reactPopper = require("@
|
|
10
|
+
var _reactPopper = require("@collana-solutions/react-popper");
|
|
11
11
|
var _DropdownContext = require("./DropdownContext");
|
|
12
12
|
var _utils = require("./utils");
|
|
13
13
|
var _Button = _interopRequireDefault(require("./Button"));
|
package/lib/PopperContent.js
CHANGED
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _reactPopper = require("@
|
|
11
|
+
var _reactPopper = require("@collana-solutions/react-popper");
|
|
12
12
|
var _utils = require("./utils");
|
|
13
13
|
var _Fade = _interopRequireDefault(require("./Fade"));
|
|
14
14
|
const _excluded = ["cssModule", "children", "isOpen", "flip", "target", "offset", "fallbackPlacements", "placementPrefix", "arrowClassName", "hideArrow", "popperClassName", "tag", "container", "modifiers", "strategy", "boundariesElement", "onClosed", "fade", "transition", "placement"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@collana-solutions/reactstrap",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.2",
|
|
4
4
|
"description": "React Bootstrap components",
|
|
5
5
|
"source": "src/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"@popperjs/core": "^2.6.0",
|
|
244
244
|
"classnames": "^2.2.3",
|
|
245
245
|
"prop-types": "^15.5.8",
|
|
246
|
-
"@
|
|
246
|
+
"@collana-solutions/react-popper": "3.0.2",
|
|
247
247
|
"react-transition-group": "^4.4.5"
|
|
248
248
|
},
|
|
249
249
|
"peerDependencies": {
|
package/src/Dropdown.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { Manager } from '@
|
|
6
|
+
import { Manager } from '@collana-solutions/react-popper';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import { DropdownContext } from './DropdownContext';
|
|
9
9
|
import { mapToCssModules, omit, tagPropType } from './utils';
|
package/src/DropdownMenu.js
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import { Popper } from '@
|
|
5
|
+
import { Popper } from '@collana-solutions/react-popper';
|
|
6
6
|
import { DropdownContext } from './DropdownContext';
|
|
7
7
|
import {
|
|
8
8
|
mapToCssModules,
|
|
@@ -109,7 +109,7 @@ class DropdownMenu extends React.Component {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
const handleRef = (tagRef) => {
|
|
112
|
-
// Send the ref to `@
|
|
112
|
+
// Send the ref to `@collana-solutions/react-popper`
|
|
113
113
|
ref(tagRef);
|
|
114
114
|
// Send the ref to the parent Dropdown so that clicks outside
|
|
115
115
|
// it will cause it to close
|
package/src/DropdownToggle.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import { Reference } from '@
|
|
4
|
+
import { Reference } from '@collana-solutions/react-popper';
|
|
5
5
|
import { DropdownContext } from './DropdownContext';
|
|
6
6
|
import { mapToCssModules, tagPropType } from './utils';
|
|
7
7
|
import Button from './Button';
|
package/src/PopperContent.js
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import { Popper as ReactPopper } from '@
|
|
5
|
+
import { Popper as ReactPopper } from '@collana-solutions/react-popper';
|
|
6
6
|
import {
|
|
7
7
|
getTarget,
|
|
8
8
|
targetPropType,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { screen } from '@testing-library/react';
|
|
3
|
-
import { Popper } from '@
|
|
3
|
+
import { Popper } from '@collana-solutions/react-popper';
|
|
4
4
|
import '@testing-library/jest-dom';
|
|
5
5
|
import { DropdownMenu } from '..';
|
|
6
6
|
import { customDropdownRender } from '../testUtils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Popper } from '@
|
|
2
|
+
import { Popper } from '@collana-solutions/react-popper';
|
|
3
3
|
import '@testing-library/jest-dom';
|
|
4
4
|
import { render, screen } from '@testing-library/react';
|
|
5
5
|
import { PopperContent } from '..';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Popper } from '@
|
|
2
|
+
import { Popper } from '@collana-solutions/react-popper';
|
|
3
3
|
import user from '@testing-library/user-event';
|
|
4
4
|
import { render, screen, act, fireEvent } from '@testing-library/react';
|
|
5
5
|
import '@testing-library/jest-dom';
|