@sb1/ffe-dropdown-react 5.1.15 → 5.1.16
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/es/Dropdown.js +3 -11
- package/lib/Dropdown.js +3 -15
- package/lib/index.js +0 -3
- package/package.json +42 -42
package/es/Dropdown.js
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
var _excluded = ["className", "inline", "innerRef"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
|
-
|
|
7
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
|
-
|
|
9
5
|
import React from 'react';
|
|
10
6
|
import { bool, node, string, object, func, shape, oneOfType } from 'prop-types';
|
|
11
7
|
import classNames from 'classnames';
|
|
12
|
-
|
|
13
8
|
var Dropdown = function Dropdown(props) {
|
|
14
9
|
var className = props.className,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
inline = props.inline,
|
|
11
|
+
innerRef = props.innerRef,
|
|
12
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
19
13
|
return /*#__PURE__*/React.createElement("select", _extends({
|
|
20
14
|
className: classNames('ffe-dropdown', {
|
|
21
15
|
'ffe-dropdown--inline': inline
|
|
@@ -23,12 +17,10 @@ var Dropdown = function Dropdown(props) {
|
|
|
23
17
|
ref: innerRef
|
|
24
18
|
}, rest));
|
|
25
19
|
};
|
|
26
|
-
|
|
27
20
|
Dropdown.propTypes = {
|
|
28
21
|
children: node,
|
|
29
22
|
inline: bool,
|
|
30
23
|
className: string,
|
|
31
|
-
|
|
32
24
|
/** Ref-setting function, or ref created by useRef, passed to the select element */
|
|
33
25
|
innerRef: oneOfType([func, shape({
|
|
34
26
|
current: object
|
package/lib/Dropdown.js
CHANGED
|
@@ -4,29 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = require("prop-types");
|
|
11
|
-
|
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
10
|
var _excluded = ["className", "inline", "innerRef"];
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
-
|
|
20
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
-
|
|
22
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
|
-
|
|
24
15
|
var Dropdown = function Dropdown(props) {
|
|
25
16
|
var className = props.className,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
inline = props.inline,
|
|
18
|
+
innerRef = props.innerRef,
|
|
19
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
30
20
|
return /*#__PURE__*/_react.default.createElement("select", _extends({
|
|
31
21
|
className: (0, _classnames.default)('ffe-dropdown', {
|
|
32
22
|
'ffe-dropdown--inline': inline
|
|
@@ -34,12 +24,10 @@ var Dropdown = function Dropdown(props) {
|
|
|
34
24
|
ref: innerRef
|
|
35
25
|
}, rest));
|
|
36
26
|
};
|
|
37
|
-
|
|
38
27
|
Dropdown.propTypes = {
|
|
39
28
|
children: _propTypes.node,
|
|
40
29
|
inline: _propTypes.bool,
|
|
41
30
|
className: _propTypes.string,
|
|
42
|
-
|
|
43
31
|
/** Ref-setting function, or ref created by useRef, passed to the select element */
|
|
44
32
|
innerRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
|
|
45
33
|
current: _propTypes.object
|
package/lib/index.js
CHANGED
|
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _Dropdown = _interopRequireDefault(require("./Dropdown"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var _default = _Dropdown.default;
|
|
13
10
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
"name": "@sb1/ffe-dropdown-react",
|
|
3
|
+
"version": "5.1.16",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "SpareBank 1",
|
|
6
|
+
"files": [
|
|
7
|
+
"lib",
|
|
8
|
+
"es",
|
|
9
|
+
"types"
|
|
10
|
+
],
|
|
11
|
+
"main": "lib/index.js",
|
|
12
|
+
"module": "es/index.js",
|
|
13
|
+
"types": "types/index.d.ts",
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "ssh://git@github.com:SpareBank1/designsystem.git"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "ffe-buildtool babel",
|
|
21
|
+
"watch": "ffe-buildtool babel-watch",
|
|
22
|
+
"lint": "eslint src",
|
|
23
|
+
"test": "ffe-buildtool jest",
|
|
24
|
+
"test:watch": "ffe-buildtool jest --watch"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"classnames": "^2.3.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@sb1/ffe-buildtool": "^0.5.0",
|
|
31
|
+
"eslint": "^5.9.0",
|
|
32
|
+
"react": "^16.9.0",
|
|
33
|
+
"react-addons-test-utils": "^15.6.2",
|
|
34
|
+
"react-dom": "^16.9.0"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@sb1/ffe-form": "*",
|
|
38
|
+
"react": ">=16.9.0"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"gitHead": "816e0f967f7b2d8fd6cca41bb9d363a4c7933116"
|
|
44
44
|
}
|