@elliemae/ds-icons 2.3.2 → 2.4.0-rc.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/cjs/GridView.js +74 -0
- package/cjs/index.js +2 -0
- package/esm/GridView.js +66 -0
- package/esm/index.js +1 -0
- package/package.json +7 -3
- package/types/GridView.d.ts +3 -0
- package/types/index.d.ts +1 -0
package/cjs/GridView.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
4
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
5
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
8
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
9
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
10
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
11
|
+
require('react');
|
|
12
|
+
var dsClassnames = require('@elliemae/ds-classnames');
|
|
13
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
14
|
+
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
18
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
19
|
+
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
20
|
+
|
|
21
|
+
var _path;
|
|
22
|
+
|
|
23
|
+
const _excluded = ["containerProps", "size", "color", "className", "style", "innerRef"];
|
|
24
|
+
|
|
25
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
26
|
+
|
|
27
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28
|
+
|
|
29
|
+
function SvgIcon(props) {
|
|
30
|
+
const {
|
|
31
|
+
containerProps = {},
|
|
32
|
+
size,
|
|
33
|
+
color,
|
|
34
|
+
className = '',
|
|
35
|
+
style = {},
|
|
36
|
+
innerRef
|
|
37
|
+
} = props,
|
|
38
|
+
rest = _objectWithoutProperties__default["default"](props, _excluded);
|
|
39
|
+
|
|
40
|
+
const fill = !color && !props.fill ? '#000' : props.fill;
|
|
41
|
+
const width = !size && !props.width ? 24 : props.width;
|
|
42
|
+
const height = !size && !props.height ? 24 : props.height;
|
|
43
|
+
const {
|
|
44
|
+
cssClassName
|
|
45
|
+
} = dsClassnames.convertPropToCssClassName('icon', className, {
|
|
46
|
+
size,
|
|
47
|
+
color
|
|
48
|
+
});
|
|
49
|
+
return /*#__PURE__*/jsxRuntime.jsx("span", _objectSpread(_objectSpread(_objectSpread({
|
|
50
|
+
ref: innerRef,
|
|
51
|
+
className: cssClassName
|
|
52
|
+
}, rest), containerProps), {}, {
|
|
53
|
+
style: _objectSpread({
|
|
54
|
+
width,
|
|
55
|
+
height
|
|
56
|
+
}, style),
|
|
57
|
+
children: /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
58
|
+
width: width && String(width),
|
|
59
|
+
height: height && String(height),
|
|
60
|
+
style: {
|
|
61
|
+
width,
|
|
62
|
+
height
|
|
63
|
+
},
|
|
64
|
+
fill: fill,
|
|
65
|
+
viewBox: "0 0 24 24"
|
|
66
|
+
}, void 0, _path || (_path = /*#__PURE__*/_jsx__default["default"]("path", {
|
|
67
|
+
d: "M10 6v4H6V6h4m1-1H5v6h6V5zm-1 9v4H6v-4h4m1-1H5v6h6v-6zm7-7v4h-4V6h4m1-1h-6v6h6V5zm-1 9v4h-4v-4h4m1-1h-6v6h6v-6z",
|
|
68
|
+
fill: "#000",
|
|
69
|
+
"fill-rule": "evenodd"
|
|
70
|
+
})))
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
module.exports = SvgIcon;
|
package/cjs/index.js
CHANGED
|
@@ -118,6 +118,7 @@ var Gift = require('./Gift.js');
|
|
|
118
118
|
var Globe = require('./Globe.js');
|
|
119
119
|
var GovernmentMonitoringSolid = require('./GovernmentMonitoringSolid.js');
|
|
120
120
|
var GripperVertical = require('./GripperVertical.js');
|
|
121
|
+
var GridView = require('./GridView.js');
|
|
121
122
|
var Help = require('./Help.js');
|
|
122
123
|
var HelpCircle = require('./HelpCircle.js');
|
|
123
124
|
var HelpCircleSmall = require('./HelpCircleSmall.js');
|
|
@@ -503,6 +504,7 @@ exports.Gift = Gift;
|
|
|
503
504
|
exports.Globe = Globe;
|
|
504
505
|
exports.GovernmentMonitoringSolid = GovernmentMonitoringSolid;
|
|
505
506
|
exports.GripperVertical = GripperVertical;
|
|
507
|
+
exports.GridView = GridView;
|
|
506
508
|
exports.Help = Help;
|
|
507
509
|
exports.HelpCircle = HelpCircle;
|
|
508
510
|
exports.HelpCircleSmall = HelpCircleSmall;
|
package/esm/GridView.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
9
|
+
import 'react';
|
|
10
|
+
import { convertPropToCssClassName } from '@elliemae/ds-classnames';
|
|
11
|
+
import { jsx } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
var _path;
|
|
14
|
+
|
|
15
|
+
const _excluded = ["containerProps", "size", "color", "className", "style", "innerRef"];
|
|
16
|
+
|
|
17
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
18
|
+
|
|
19
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
|
+
|
|
21
|
+
function SvgIcon(props) {
|
|
22
|
+
const {
|
|
23
|
+
containerProps = {},
|
|
24
|
+
size,
|
|
25
|
+
color,
|
|
26
|
+
className = '',
|
|
27
|
+
style = {},
|
|
28
|
+
innerRef
|
|
29
|
+
} = props,
|
|
30
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
31
|
+
|
|
32
|
+
const fill = !color && !props.fill ? '#000' : props.fill;
|
|
33
|
+
const width = !size && !props.width ? 24 : props.width;
|
|
34
|
+
const height = !size && !props.height ? 24 : props.height;
|
|
35
|
+
const {
|
|
36
|
+
cssClassName
|
|
37
|
+
} = convertPropToCssClassName('icon', className, {
|
|
38
|
+
size,
|
|
39
|
+
color
|
|
40
|
+
});
|
|
41
|
+
return /*#__PURE__*/jsx("span", _objectSpread(_objectSpread(_objectSpread({
|
|
42
|
+
ref: innerRef,
|
|
43
|
+
className: cssClassName
|
|
44
|
+
}, rest), containerProps), {}, {
|
|
45
|
+
style: _objectSpread({
|
|
46
|
+
width,
|
|
47
|
+
height
|
|
48
|
+
}, style),
|
|
49
|
+
children: /*#__PURE__*/_jsx("svg", {
|
|
50
|
+
width: width && String(width),
|
|
51
|
+
height: height && String(height),
|
|
52
|
+
style: {
|
|
53
|
+
width,
|
|
54
|
+
height
|
|
55
|
+
},
|
|
56
|
+
fill: fill,
|
|
57
|
+
viewBox: "0 0 24 24"
|
|
58
|
+
}, void 0, _path || (_path = /*#__PURE__*/_jsx("path", {
|
|
59
|
+
d: "M10 6v4H6V6h4m1-1H5v6h6V5zm-1 9v4H6v-4h4m1-1H5v6h6v-6zm7-7v4h-4V6h4m1-1h-6v6h6V5zm-1 9v4h-4v-4h4m1-1h-6v6h6v-6z",
|
|
60
|
+
fill: "#000",
|
|
61
|
+
"fill-rule": "evenodd"
|
|
62
|
+
})))
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { SvgIcon as default };
|
package/esm/index.js
CHANGED
|
@@ -114,6 +114,7 @@ export { default as Gift } from './Gift.js';
|
|
|
114
114
|
export { default as Globe } from './Globe.js';
|
|
115
115
|
export { default as GovernmentMonitoringSolid } from './GovernmentMonitoringSolid.js';
|
|
116
116
|
export { default as GripperVertical } from './GripperVertical.js';
|
|
117
|
+
export { default as GridView } from './GridView.js';
|
|
117
118
|
export { default as Help } from './Help.js';
|
|
118
119
|
export { default as HelpCircle } from './HelpCircle.js';
|
|
119
120
|
export { default as HelpCircleSmall } from './HelpCircleSmall.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-icons",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Icons",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -919,6 +919,10 @@
|
|
|
919
919
|
"import": "./esm/GripperVertical.js",
|
|
920
920
|
"require": "./cjs/GripperVertical.js"
|
|
921
921
|
},
|
|
922
|
+
"./GridView": {
|
|
923
|
+
"import": "./esm/GridView.js",
|
|
924
|
+
"require": "./cjs/GridView.js"
|
|
925
|
+
},
|
|
922
926
|
"./GovernmentMonitoringSolid": {
|
|
923
927
|
"import": "./esm/GovernmentMonitoringSolid.js",
|
|
924
928
|
"require": "./cjs/GovernmentMonitoringSolid.js"
|
|
@@ -1569,8 +1573,8 @@
|
|
|
1569
1573
|
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w"
|
|
1570
1574
|
},
|
|
1571
1575
|
"dependencies": {
|
|
1572
|
-
"@elliemae/ds-classnames": "2.
|
|
1573
|
-
"@elliemae/ds-props-helpers": "2.
|
|
1576
|
+
"@elliemae/ds-classnames": "2.4.0-rc.1",
|
|
1577
|
+
"@elliemae/ds-props-helpers": "2.4.0-rc.1"
|
|
1574
1578
|
},
|
|
1575
1579
|
"peerDependencies": {
|
|
1576
1580
|
"lodash": "^4.17.21",
|
package/types/index.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ export { default as Gift } from './Gift';
|
|
|
114
114
|
export { default as Globe } from './Globe';
|
|
115
115
|
export { default as GovernmentMonitoringSolid } from './GovernmentMonitoringSolid';
|
|
116
116
|
export { default as GripperVertical } from './GripperVertical';
|
|
117
|
+
export { default as GridView } from './GridView';
|
|
117
118
|
export { default as Help } from './Help';
|
|
118
119
|
export { default as HelpCircle } from './HelpCircle';
|
|
119
120
|
export { default as HelpCircleSmall } from './HelpCircleSmall';
|