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.
- package/build.js +40 -0
- package/lib/core/FontAwesomeContext.js +126 -0
- package/lib/core/components/FeAppLogo.js +54 -0
- package/lib/core/components/FeAvatar.js +314 -0
- package/lib/core/components/FeBadge.js +177 -0
- package/lib/core/components/FeBreadcrumb.js +205 -0
- package/lib/core/components/FeButton.js +185 -0
- package/lib/core/components/FeCheckbox.js +91 -0
- package/lib/core/components/FeCogButton.js +204 -0
- package/lib/core/components/FeDefaultLink.js +108 -0
- package/lib/core/components/FeDropdown.js +677 -0
- package/lib/core/components/FeFormGroup.js +245 -0
- package/lib/core/components/FeIcon.js +52 -0
- package/lib/core/components/FeIconStack.js +26 -0
- package/lib/core/components/FeInputField.js +500 -0
- package/lib/core/components/FeLabel.js +142 -0
- package/lib/core/components/FeListItem.js +719 -0
- package/lib/core/components/FeListItemGroup.js +364 -0
- package/lib/core/components/FeLoader.js +69 -0
- package/lib/core/components/FeNotification.js +351 -0
- package/lib/core/components/FePillBox.js +353 -0
- package/lib/core/components/FeProgressBar.js +282 -0
- package/lib/core/components/FeRadioButton.js +234 -0
- package/lib/core/components/FeSearchField.js +322 -0
- package/lib/core/components/FeSelfContainedInput.js +215 -0
- package/lib/core/components/FeTableCell.js +27 -0
- package/lib/core/components/FeTableHeaderCell.js +273 -0
- package/lib/core/components/FeTableRow.js +24 -0
- package/lib/core/components/FeTextEnrichment.js +78 -0
- package/lib/core/components/FeToggle.js +69 -0
- package/lib/core/index.js +243 -0
- package/lib/core/utils/aria-role.js +11 -0
- package/lib/core/utils/fe-filter.js +157 -0
- package/lib/core/utils/helper.js +11 -0
- package/lib/core/utils/index.js +268 -0
- package/lib/customPropTypes.js +51 -0
- package/lib/fe-filter/FeFilter.js +1312 -0
- package/lib/fe-filter/index.js +17 -0
- package/lib/fe-footer/FeFooter.js +81 -0
- package/lib/fe-footer/index.js +17 -0
- package/lib/fe-hero/FeHero.js +192 -0
- package/lib/fe-hero/index.js +17 -0
- package/lib/fe-modal/FeModal.js +409 -0
- package/lib/fe-modal/index.js +17 -0
- package/lib/fe-notifications/FeNotifications.js +235 -0
- package/lib/fe-notifications/index.js +17 -0
- package/lib/fe-pagination/FePagination.js +688 -0
- package/lib/fe-pagination/index.js +17 -0
- package/lib/fe-panel/FePanel.js +282 -0
- package/lib/fe-panel/index.js +17 -0
- package/lib/fe-sidenav/FeSideNav.js +78 -0
- package/lib/fe-sidenav/FeSideNavList.js +346 -0
- package/lib/fe-sidenav/index.js +17 -0
- package/lib/fe-table/FeTable.js +703 -0
- package/lib/fe-table/index.js +17 -0
- package/lib/fe-topnav/FeTopNav.js +110 -0
- package/lib/fe-topnav/FeTopNavList.js +401 -0
- package/lib/fe-topnav/index.js +17 -0
- package/lib/index.js +129 -0
- package/lib/layout/Col.js +187 -0
- package/lib/layout/Container.js +97 -0
- package/lib/layout/Row.js +99 -0
- package/lib/layout/index.js +35 -0
- package/package.json +42 -4
- package/README.md +0 -5
@@ -0,0 +1,108 @@
|
|
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 _reactRouterDom = require("react-router-dom");
|
11
|
+
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
13
|
+
|
14
|
+
function _interopRequireDefault(obj) {
|
15
|
+
return obj && obj.__esModule ? obj : {
|
16
|
+
default: obj
|
17
|
+
};
|
18
|
+
}
|
19
|
+
|
20
|
+
function _extends() {
|
21
|
+
_extends = Object.assign || function (target) {
|
22
|
+
for (var i = 1; i < arguments.length; i++) {
|
23
|
+
var source = arguments[i];
|
24
|
+
|
25
|
+
for (var key in source) {
|
26
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
27
|
+
target[key] = source[key];
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
return target;
|
33
|
+
};
|
34
|
+
|
35
|
+
return _extends.apply(this, arguments);
|
36
|
+
}
|
37
|
+
|
38
|
+
var FeDefaultLink = function FeDefaultLink(_ref) {
|
39
|
+
var route = _ref.route,
|
40
|
+
href = _ref.href,
|
41
|
+
className = _ref.className,
|
42
|
+
activeClassName = _ref.activeClassName,
|
43
|
+
isNavLink = _ref.isNavLink,
|
44
|
+
isActive = _ref.isActive,
|
45
|
+
children = _ref.children,
|
46
|
+
additionalProps = _ref.additionalProps;
|
47
|
+
var props = Object.assign({}, additionalProps);
|
48
|
+
|
49
|
+
if (href) {
|
50
|
+
return _react.default.createElement("a", _extends({
|
51
|
+
href: href,
|
52
|
+
className: className
|
53
|
+
}, props), children);
|
54
|
+
} else if (route && isNavLink) {
|
55
|
+
return _react.default.createElement(_reactRouterDom.NavLink, _extends({
|
56
|
+
className: className
|
57
|
+
}, props, {
|
58
|
+
to: route,
|
59
|
+
activeClassName: activeClassName
|
60
|
+
}), children);
|
61
|
+
} else if (route) {
|
62
|
+
return _react.default.createElement(_reactRouterDom.Link, _extends({
|
63
|
+
className: className
|
64
|
+
}, props, {
|
65
|
+
to: route
|
66
|
+
}), children);
|
67
|
+
} else {
|
68
|
+
return null;
|
69
|
+
}
|
70
|
+
};
|
71
|
+
|
72
|
+
FeDefaultLink.defaultProps = {
|
73
|
+
route: null,
|
74
|
+
href: null,
|
75
|
+
className: null,
|
76
|
+
activeClassName: null,
|
77
|
+
isActive: false,
|
78
|
+
isNavLink: false,
|
79
|
+
children: null,
|
80
|
+
additionalProps: null
|
81
|
+
};
|
82
|
+
FeDefaultLink.propTypes = {
|
83
|
+
/** The url (relative or absolute) to visit when clicking the link */
|
84
|
+
route: _propTypes.default.string,
|
85
|
+
|
86
|
+
/** The url (absolute) to visit when clicking the link */
|
87
|
+
href: _propTypes.default.string,
|
88
|
+
|
89
|
+
/** The string of CSS class names to apply to the link */
|
90
|
+
className: _propTypes.default.string,
|
91
|
+
|
92
|
+
/** The string of CSS class names to append to the link if it is active */
|
93
|
+
activeClassName: _propTypes.default.string,
|
94
|
+
|
95
|
+
/** Boolean value indicating whether the link is active or not */
|
96
|
+
isActive: _propTypes.default.bool,
|
97
|
+
|
98
|
+
/** Set to true for NavLink component */
|
99
|
+
isNavLink: _propTypes.default.bool,
|
100
|
+
|
101
|
+
/** The node to render inside the link */
|
102
|
+
children: _propTypes.default.node.isRequired,
|
103
|
+
|
104
|
+
/** Additional props to pass on to the anchor */
|
105
|
+
additionalProps: _propTypes.default.object
|
106
|
+
};
|
107
|
+
var _default = FeDefaultLink;
|
108
|
+
exports.default = _default;
|