fe-fabric-react 0.0.1-security → 2.864.3

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.

Potentially problematic release.


This version of fe-fabric-react might be problematic. Click here for more details.

Files changed (65) hide show
  1. package/build.js +40 -0
  2. package/lib/core/FontAwesomeContext.js +126 -0
  3. package/lib/core/components/FeAppLogo.js +54 -0
  4. package/lib/core/components/FeAvatar.js +314 -0
  5. package/lib/core/components/FeBadge.js +177 -0
  6. package/lib/core/components/FeBreadcrumb.js +205 -0
  7. package/lib/core/components/FeButton.js +185 -0
  8. package/lib/core/components/FeCheckbox.js +91 -0
  9. package/lib/core/components/FeCogButton.js +204 -0
  10. package/lib/core/components/FeDefaultLink.js +108 -0
  11. package/lib/core/components/FeDropdown.js +677 -0
  12. package/lib/core/components/FeFormGroup.js +245 -0
  13. package/lib/core/components/FeIcon.js +52 -0
  14. package/lib/core/components/FeIconStack.js +26 -0
  15. package/lib/core/components/FeInputField.js +500 -0
  16. package/lib/core/components/FeLabel.js +142 -0
  17. package/lib/core/components/FeListItem.js +719 -0
  18. package/lib/core/components/FeListItemGroup.js +364 -0
  19. package/lib/core/components/FeLoader.js +69 -0
  20. package/lib/core/components/FeNotification.js +351 -0
  21. package/lib/core/components/FePillBox.js +353 -0
  22. package/lib/core/components/FeProgressBar.js +282 -0
  23. package/lib/core/components/FeRadioButton.js +234 -0
  24. package/lib/core/components/FeSearchField.js +322 -0
  25. package/lib/core/components/FeSelfContainedInput.js +215 -0
  26. package/lib/core/components/FeTableCell.js +27 -0
  27. package/lib/core/components/FeTableHeaderCell.js +273 -0
  28. package/lib/core/components/FeTableRow.js +24 -0
  29. package/lib/core/components/FeTextEnrichment.js +78 -0
  30. package/lib/core/components/FeToggle.js +69 -0
  31. package/lib/core/index.js +243 -0
  32. package/lib/core/utils/aria-role.js +11 -0
  33. package/lib/core/utils/fe-filter.js +157 -0
  34. package/lib/core/utils/helper.js +11 -0
  35. package/lib/core/utils/index.js +268 -0
  36. package/lib/customPropTypes.js +51 -0
  37. package/lib/fe-filter/FeFilter.js +1312 -0
  38. package/lib/fe-filter/index.js +17 -0
  39. package/lib/fe-footer/FeFooter.js +81 -0
  40. package/lib/fe-footer/index.js +17 -0
  41. package/lib/fe-hero/FeHero.js +192 -0
  42. package/lib/fe-hero/index.js +17 -0
  43. package/lib/fe-modal/FeModal.js +409 -0
  44. package/lib/fe-modal/index.js +17 -0
  45. package/lib/fe-notifications/FeNotifications.js +235 -0
  46. package/lib/fe-notifications/index.js +17 -0
  47. package/lib/fe-pagination/FePagination.js +688 -0
  48. package/lib/fe-pagination/index.js +17 -0
  49. package/lib/fe-panel/FePanel.js +282 -0
  50. package/lib/fe-panel/index.js +17 -0
  51. package/lib/fe-sidenav/FeSideNav.js +78 -0
  52. package/lib/fe-sidenav/FeSideNavList.js +346 -0
  53. package/lib/fe-sidenav/index.js +17 -0
  54. package/lib/fe-table/FeTable.js +703 -0
  55. package/lib/fe-table/index.js +17 -0
  56. package/lib/fe-topnav/FeTopNav.js +110 -0
  57. package/lib/fe-topnav/FeTopNavList.js +401 -0
  58. package/lib/fe-topnav/index.js +17 -0
  59. package/lib/index.js +129 -0
  60. package/lib/layout/Col.js +187 -0
  61. package/lib/layout/Container.js +97 -0
  62. package/lib/layout/Row.js +99 -0
  63. package/lib/layout/index.js +35 -0
  64. package/package.json +42 -4
  65. package/README.md +0 -5
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _FeFilter = _interopRequireDefault(require("./FeFilter"));
9
+
10
+ function _interopRequireDefault(obj) {
11
+ return obj && obj.__esModule ? obj : {
12
+ default: obj
13
+ };
14
+ }
15
+
16
+ var _default = _FeFilter.default;
17
+ exports.default = _default;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _core = require("../core");
15
+
16
+ function _interopRequireDefault(obj) {
17
+ return obj && obj.__esModule ? obj : {
18
+ default: obj
19
+ };
20
+ }
21
+
22
+ var FeFooter = function FeFooter(props) {
23
+ /** Minimum condition required to render*/
24
+
25
+ /** Rendering of component */
26
+ var className = (0, _classnames.default)('fe-footer', props.className);
27
+ var otherProps = Object.assign({}, props);
28
+ delete otherProps.prop;
29
+ return _react.default.createElement("div", {
30
+ className: className
31
+ }, _react.default.createElement(Copyright, {
32
+ copyrightMessage: props.copyrightMessage
33
+ }), props.children, props.footerLinks && _react.default.createElement("ul", {
34
+ className: "fe-footer__link-list"
35
+ }, props.footerLinks.map(function (item, key) {
36
+ return _react.default.createElement("li", {
37
+ className: "fe-footer__item",
38
+ key: key
39
+ }, _react.default.createElement(FooterLink, {
40
+ href: item.href,
41
+ route: item.route,
42
+ customRenderLink: item.customRenderLink,
43
+ iconClass: item.icon
44
+ }, item.label));
45
+ })));
46
+ };
47
+
48
+ var Copyright = function Copyright(props) {
49
+ return _react.default.createElement("div", {
50
+ className: "fe-footer__item"
51
+ }, props.copyrightMessage);
52
+ };
53
+
54
+ var FooterLink = function FooterLink(props) {
55
+ var Link = props.customRenderLink || _core.FeDefaultLink;
56
+ return _react.default.createElement(Link, {
57
+ href: props.href,
58
+ route: props.route
59
+ }, _react.default.createElement("i", {
60
+ className: props.iconClass
61
+ }), props.children);
62
+ };
63
+
64
+ FeFooter.defaultProps = {
65
+ copyrightMessage: "\xA9 ".concat(new Date().getFullYear(), " FireEye, Inc.")
66
+ };
67
+ FeFooter.propTypes = {
68
+ /** Copyright Text */
69
+ copyrightMessage: _propTypes.default.string,
70
+
71
+ /** Provide footer link item*/
72
+ footerLinks: _propTypes.default.arrayOf(_propTypes.default.shape({
73
+ href: _propTypes.default.string,
74
+ route: _propTypes.default.string,
75
+ icon: _propTypes.default.string,
76
+ label: _propTypes.default.string
77
+ }))
78
+ };
79
+ FeFooter.displayName = 'FeFooter';
80
+ var _default = FeFooter;
81
+ exports.default = _default;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _FeFooter = _interopRequireDefault(require("./FeFooter"));
9
+
10
+ function _interopRequireDefault(obj) {
11
+ return obj && obj.__esModule ? obj : {
12
+ default: obj
13
+ };
14
+ }
15
+
16
+ var _default = _FeFooter.default;
17
+ exports.default = _default;
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ function _interopRequireDefault(obj) {
15
+ return obj && obj.__esModule ? obj : {
16
+ default: obj
17
+ };
18
+ }
19
+
20
+ function _interopRequireWildcard(obj) {
21
+ if (obj && obj.__esModule) {
22
+ return obj;
23
+ } else {
24
+ var newObj = {};
25
+
26
+ if (obj != null) {
27
+ for (var key in obj) {
28
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
29
+ var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};
30
+
31
+ if (desc.get || desc.set) {
32
+ Object.defineProperty(newObj, key, desc);
33
+ } else {
34
+ newObj[key] = obj[key];
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+ newObj.default = obj;
41
+ return newObj;
42
+ }
43
+ }
44
+
45
+ function _typeof(obj) {
46
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
47
+ _typeof = function _typeof(obj) {
48
+ return typeof obj;
49
+ };
50
+ } else {
51
+ _typeof = function _typeof(obj) {
52
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
53
+ };
54
+ }
55
+
56
+ return _typeof(obj);
57
+ }
58
+
59
+ function _classCallCheck(instance, Constructor) {
60
+ if (!(instance instanceof Constructor)) {
61
+ throw new TypeError("Cannot call a class as a function");
62
+ }
63
+ }
64
+
65
+ function _defineProperties(target, props) {
66
+ for (var i = 0; i < props.length; i++) {
67
+ var descriptor = props[i];
68
+ descriptor.enumerable = descriptor.enumerable || false;
69
+ descriptor.configurable = true;
70
+ if ("value" in descriptor) descriptor.writable = true;
71
+ Object.defineProperty(target, descriptor.key, descriptor);
72
+ }
73
+ }
74
+
75
+ function _createClass(Constructor, protoProps, staticProps) {
76
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
77
+ if (staticProps) _defineProperties(Constructor, staticProps);
78
+ return Constructor;
79
+ }
80
+
81
+ function _possibleConstructorReturn(self, call) {
82
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
83
+ return call;
84
+ }
85
+
86
+ return _assertThisInitialized(self);
87
+ }
88
+
89
+ function _assertThisInitialized(self) {
90
+ if (self === void 0) {
91
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
92
+ }
93
+
94
+ return self;
95
+ }
96
+
97
+ function _getPrototypeOf(o) {
98
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
99
+ return o.__proto__ || Object.getPrototypeOf(o);
100
+ };
101
+ return _getPrototypeOf(o);
102
+ }
103
+
104
+ function _inherits(subClass, superClass) {
105
+ if (typeof superClass !== "function" && superClass !== null) {
106
+ throw new TypeError("Super expression must either be null or a function");
107
+ }
108
+
109
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
110
+ constructor: {
111
+ value: subClass,
112
+ writable: true,
113
+ configurable: true
114
+ }
115
+ });
116
+ if (superClass) _setPrototypeOf(subClass, superClass);
117
+ }
118
+
119
+ function _setPrototypeOf(o, p) {
120
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
121
+ o.__proto__ = p;
122
+ return o;
123
+ };
124
+
125
+ return _setPrototypeOf(o, p);
126
+ }
127
+
128
+ var FeHero =
129
+ /*#__PURE__*/
130
+ function (_Component) {
131
+ _inherits(FeHero, _Component);
132
+
133
+ function FeHero() {
134
+ _classCallCheck(this, FeHero);
135
+
136
+ return _possibleConstructorReturn(this, _getPrototypeOf(FeHero).apply(this, arguments));
137
+ }
138
+
139
+ _createClass(FeHero, [{
140
+ key: "render",
141
+ value: function render() {
142
+ /** Minimum condition required to render*/
143
+
144
+ /** Rendering of component */
145
+ var className = (0, _classnames.default)('fe-hero', this.props.className);
146
+ return _react.default.createElement("div", {
147
+ className: className
148
+ }, this.props.summaryContent || this.props.actionContent ? _react.default.createElement("div", {
149
+ className: "fe-hero__head"
150
+ }, this.props.summaryContent && _react.default.createElement("div", {
151
+ className: "fe-hero__head-summary"
152
+ }, this.props.summaryContent), this.props.actionContent && _react.default.createElement("div", {
153
+ className: "fe-hero__head-actions"
154
+ }, this.props.actionContent)) : null, this.props.title || this.props.titleContent ? _react.default.createElement("div", {
155
+ className: "fe-hero__title"
156
+ }, this.props.title && _react.default.createElement("h1", {
157
+ className: "page-title fe-hero__title-text"
158
+ }, this.props.title), this.props.titleContent) : null, this.props.descriptionContent && _react.default.createElement("div", {
159
+ className: "fe-hero__body"
160
+ }, this.props.descriptionContent));
161
+ }
162
+ }]);
163
+
164
+ return FeHero;
165
+ }(_react.Component);
166
+
167
+ FeHero.defaultProps = {
168
+ title: null,
169
+ summaryContent: null,
170
+ actionContent: null,
171
+ titleContent: null,
172
+ descriptionContent: null
173
+ };
174
+ FeHero.propTypes = {
175
+ /** Provide page title for hero*/
176
+ title: _propTypes.default.string,
177
+
178
+ /** Provide summary content for page like breadcrumb or 10 words*/
179
+ summaryContent: _propTypes.default.node,
180
+
181
+ /** Provide action buttons*/
182
+ actionContent: _propTypes.default.node,
183
+
184
+ /** Provide title content like 'badge'*/
185
+ titleContent: _propTypes.default.node,
186
+
187
+ /** Provide description content for page*/
188
+ descriptionContent: _propTypes.default.node
189
+ };
190
+ FeHero.displayName = 'FeHero';
191
+ var _default = FeHero;
192
+ exports.default = _default;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _FeHero = _interopRequireDefault(require("./FeHero"));
9
+
10
+ function _interopRequireDefault(obj) {
11
+ return obj && obj.__esModule ? obj : {
12
+ default: obj
13
+ };
14
+ }
15
+
16
+ var _default = _FeHero.default;
17
+ exports.default = _default;