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,157 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
9
|
+
|
10
|
+
var _isObject = _interopRequireDefault(require("lodash/isObject"));
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) {
|
13
|
+
return obj && obj.__esModule ? obj : {
|
14
|
+
default: obj
|
15
|
+
};
|
16
|
+
}
|
17
|
+
|
18
|
+
function _classCallCheck(instance, Constructor) {
|
19
|
+
if (!(instance instanceof Constructor)) {
|
20
|
+
throw new TypeError("Cannot call a class as a function");
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
function _defineProperties(target, props) {
|
25
|
+
for (var i = 0; i < props.length; i++) {
|
26
|
+
var descriptor = props[i];
|
27
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
28
|
+
descriptor.configurable = true;
|
29
|
+
if ("value" in descriptor) descriptor.writable = true;
|
30
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
35
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
36
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
37
|
+
return Constructor;
|
38
|
+
}
|
39
|
+
|
40
|
+
var FeFilter =
|
41
|
+
/*#__PURE__*/
|
42
|
+
function () {
|
43
|
+
function FeFilter() {
|
44
|
+
_classCallCheck(this, FeFilter);
|
45
|
+
}
|
46
|
+
|
47
|
+
_createClass(FeFilter, [{
|
48
|
+
key: "filter",
|
49
|
+
value: function filter(subStr, collection, config) {
|
50
|
+
var _subStr = this.getSubString(subStr, config.matchExact);
|
51
|
+
|
52
|
+
var _regx;
|
53
|
+
|
54
|
+
try {
|
55
|
+
if (config.matchExact) {
|
56
|
+
_regx = _subStr;
|
57
|
+
} else {
|
58
|
+
_regx = new RegExp(_subStr, 'gi');
|
59
|
+
}
|
60
|
+
} catch (err) {
|
61
|
+
return [];
|
62
|
+
}
|
63
|
+
|
64
|
+
var _collection = (0, _cloneDeep.default)(collection);
|
65
|
+
|
66
|
+
var _filteredList = this.apply(_regx, _collection, config);
|
67
|
+
|
68
|
+
return _filteredList;
|
69
|
+
}
|
70
|
+
}, {
|
71
|
+
key: "getSubString",
|
72
|
+
value: function getSubString(subStr, matchExact) {
|
73
|
+
var _length = subStr.length,
|
74
|
+
_subStr = subStr;
|
75
|
+
|
76
|
+
if (_length === 2 && _subStr[_length - 1] === '*') {
|
77
|
+
_subStr = _subStr.substring(0, 1);
|
78
|
+
} else if (_subStr[_length - 1] === '*') {
|
79
|
+
_subStr = _subStr.substring(0, _length - 1).replace(/\*/g, '.') + '*';
|
80
|
+
} else {
|
81
|
+
_subStr = _subStr.replace(/\*/g, '.');
|
82
|
+
}
|
83
|
+
|
84
|
+
return _subStr;
|
85
|
+
}
|
86
|
+
}, {
|
87
|
+
key: "apply",
|
88
|
+
value: function apply(regx, collection, config) {
|
89
|
+
var _this = this;
|
90
|
+
|
91
|
+
var _list = [];
|
92
|
+
collection.forEach(function (o) {
|
93
|
+
var _listItem;
|
94
|
+
|
95
|
+
_listItem = _this.match(regx, o, config);
|
96
|
+
|
97
|
+
if (_listItem) {
|
98
|
+
_list.push(_listItem);
|
99
|
+
}
|
100
|
+
});
|
101
|
+
return _list;
|
102
|
+
}
|
103
|
+
}, {
|
104
|
+
key: "match",
|
105
|
+
value: function match(regx, o, config) {
|
106
|
+
var _this2 = this;
|
107
|
+
|
108
|
+
var _matched = null;
|
109
|
+
|
110
|
+
if ((0, _isObject.default)(o)) {
|
111
|
+
if (config.queryAt) {
|
112
|
+
if (config.matchExact) {
|
113
|
+
_matched = o[config.queryAt] && o[config.queryAt] === regx;
|
114
|
+
} else {
|
115
|
+
_matched = o[config.queryAt] && o[config.queryAt].search(regx) > -1;
|
116
|
+
}
|
117
|
+
} else if (config.isDeepSearch) {
|
118
|
+
o.forEach(function (key, value) {
|
119
|
+
var i = _this2.match(regx, value, config);
|
120
|
+
|
121
|
+
_matched = _matched ? true : i !== null;
|
122
|
+
});
|
123
|
+
} else {
|
124
|
+
_matched = null;
|
125
|
+
}
|
126
|
+
} else if (Array.isArray(o)) {
|
127
|
+
return this.apply(regx, o, config);
|
128
|
+
} else {
|
129
|
+
if (config.matchExact) {
|
130
|
+
_matched = o && o === regx;
|
131
|
+
} else {
|
132
|
+
_matched = o.search(regx) > -1;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
if (_matched) {
|
137
|
+
return o;
|
138
|
+
} else if (!_matched && config.isMultiLevel && config.multiLevelKey && o[config.multiLevelKey]) {
|
139
|
+
var _matchedList = [];
|
140
|
+
_matchedList = this.apply(regx, o[config.multiLevelKey], config);
|
141
|
+
|
142
|
+
if (_matchedList.length) {
|
143
|
+
o[config.multiLevelKey] = _matchedList;
|
144
|
+
return o;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
return null;
|
149
|
+
}
|
150
|
+
}]);
|
151
|
+
|
152
|
+
return FeFilter;
|
153
|
+
}();
|
154
|
+
|
155
|
+
var _default = new FeFilter();
|
156
|
+
|
157
|
+
exports.default = _default;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.stopPropagation = stopPropagation;
|
7
|
+
|
8
|
+
function stopPropagation(event) {
|
9
|
+
event.nativeEvent.stopPropagation();
|
10
|
+
event.nativeEvent.stopImmediatePropagation();
|
11
|
+
}
|
@@ -0,0 +1,268 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.isEmpty = isEmpty;
|
7
|
+
exports.isEqual = isEqual;
|
8
|
+
exports.find = find;
|
9
|
+
exports.findIndex = findIndex;
|
10
|
+
exports.findLastIndex = findLastIndex;
|
11
|
+
exports.getActiveIndex = getActiveIndex;
|
12
|
+
exports.getFocusableElements = getFocusableElements;
|
13
|
+
exports.trapFocus = trapFocus;
|
14
|
+
exports.textHighlight = textHighlight;
|
15
|
+
exports.truncateString = truncateString;
|
16
|
+
|
17
|
+
function _typeof(obj) {
|
18
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
19
|
+
_typeof = function _typeof(obj) {
|
20
|
+
return typeof obj;
|
21
|
+
};
|
22
|
+
} else {
|
23
|
+
_typeof = function _typeof(obj) {
|
24
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
25
|
+
};
|
26
|
+
}
|
27
|
+
|
28
|
+
return _typeof(obj);
|
29
|
+
}
|
30
|
+
|
31
|
+
var isEqualArray = function isEqualArray(arr1, arr2) {
|
32
|
+
var length = arr1.length;
|
33
|
+
|
34
|
+
if (length !== arr2.length) {
|
35
|
+
return false;
|
36
|
+
}
|
37
|
+
|
38
|
+
for (var i = 0; i < length; i++) {
|
39
|
+
if (arr1[i] !== arr2[i]) {
|
40
|
+
return false;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
return true;
|
45
|
+
};
|
46
|
+
|
47
|
+
var isEqualObject = function isEqualObject(obj1, obj2) {
|
48
|
+
var keys = Object.keys(obj1),
|
49
|
+
length = keys.length;
|
50
|
+
|
51
|
+
if (length !== Object.keys(obj2).length) {
|
52
|
+
return false;
|
53
|
+
}
|
54
|
+
|
55
|
+
for (var i = 0; i < length; i++) {
|
56
|
+
if (obj1[keys[i]] !== obj2[keys[i]]) {
|
57
|
+
return false;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
return true;
|
62
|
+
};
|
63
|
+
|
64
|
+
var includeObject = function includeObject(obj1, obj2) {
|
65
|
+
var keys = Object.keys(obj2),
|
66
|
+
length = keys.length;
|
67
|
+
|
68
|
+
for (var i = 0; i < length; i++) {
|
69
|
+
if (obj1[keys[i]] !== obj2[keys[i]]) {
|
70
|
+
return false;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
return true;
|
75
|
+
};
|
76
|
+
|
77
|
+
var flattenDeep = function flattenDeep(arr) {
|
78
|
+
var flattened = Array.isArray(arr) ? arr.reduce(function (a, b) {
|
79
|
+
return a.concat(flattenDeep(b));
|
80
|
+
}, []) : [arr];
|
81
|
+
return flattened.filter(function (item) {
|
82
|
+
return item !== null;
|
83
|
+
});
|
84
|
+
};
|
85
|
+
|
86
|
+
var withHash = function withHash(item, route) {
|
87
|
+
if (item.isHashRoute === true) return route + document.location.hash;
|
88
|
+
return route;
|
89
|
+
};
|
90
|
+
|
91
|
+
var findRouteIndex = function findRouteIndex(list, route) {
|
92
|
+
var indexes = [];
|
93
|
+
|
94
|
+
for (var i = 0; i < list.length; i++) {
|
95
|
+
indexes = [];
|
96
|
+
var item = list[i];
|
97
|
+
var currentRoute = withHash(item, route);
|
98
|
+
|
99
|
+
if (item.route === currentRoute || item.href === currentRoute) {
|
100
|
+
indexes.push(i);
|
101
|
+
break;
|
102
|
+
} else if (item.list) {
|
103
|
+
var index = findRouteIndex(item.list, route);
|
104
|
+
|
105
|
+
if (index !== null) {
|
106
|
+
indexes.push(i, index);
|
107
|
+
break;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
return indexes.length ? indexes : null;
|
113
|
+
};
|
114
|
+
|
115
|
+
function isEmpty(obj) {
|
116
|
+
return obj ? [Object, Array].includes(obj.constructor) && !Object.entries(obj).length : true;
|
117
|
+
}
|
118
|
+
|
119
|
+
function isEqual(value1, value2) {
|
120
|
+
if (Array.isArray(value1) && Array.isArray(value2)) {
|
121
|
+
return isEqualArray(value1, value2);
|
122
|
+
} else if (_typeof(value1) === 'object' && _typeof(value2) === 'object') {
|
123
|
+
return isEqualObject(value1, value2);
|
124
|
+
} else {
|
125
|
+
return value1 === value2;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
function find(list, comparator) {
|
130
|
+
if (!Array.isArray(list)) {
|
131
|
+
return undefined;
|
132
|
+
}
|
133
|
+
|
134
|
+
if (Array.isArray(comparator)) {
|
135
|
+
return list.find(function (item) {
|
136
|
+
return Array.isArray(item) && isEqualArray(item, comparator);
|
137
|
+
});
|
138
|
+
} else if (_typeof(comparator) === 'object') {
|
139
|
+
return list.find(function (item) {
|
140
|
+
return _typeof(item) === 'object' && includeObject(item, comparator);
|
141
|
+
});
|
142
|
+
} else if (typeof comparator === 'function') {
|
143
|
+
return list.find(comparator);
|
144
|
+
} else {
|
145
|
+
return undefined;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
function findIndex(list, comparator) {
|
150
|
+
if (!Array.isArray(list) || comparator === undefined) {
|
151
|
+
return undefined;
|
152
|
+
}
|
153
|
+
|
154
|
+
if (Array.isArray(comparator)) {
|
155
|
+
return list.findIndex(function (item) {
|
156
|
+
return Array.isArray(item) && isEqualArray(item, comparator);
|
157
|
+
});
|
158
|
+
} else if (_typeof(comparator) === 'object') {
|
159
|
+
return list.findIndex(function (item) {
|
160
|
+
return _typeof(item) === 'object' && includeObject(item, comparator);
|
161
|
+
});
|
162
|
+
} else if (typeof comparator === 'function') {
|
163
|
+
return list.findIndex(comparator);
|
164
|
+
} else {
|
165
|
+
return -1;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
function findLastIndex(list, filterFunction) {
|
170
|
+
if (!Array.isArray(list) || filterFunction === undefined) {
|
171
|
+
return undefined;
|
172
|
+
}
|
173
|
+
|
174
|
+
var reversed = [];
|
175
|
+
list.forEach(function (item) {
|
176
|
+
return reversed.unshift(item);
|
177
|
+
});
|
178
|
+
var index = reversed.findIndex(filterFunction);
|
179
|
+
|
180
|
+
if (index === -1) {
|
181
|
+
return index;
|
182
|
+
} else {
|
183
|
+
return list.length - 1 - index;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
function getActiveIndex(list, pathname) {
|
188
|
+
return flattenDeep(findRouteIndex(list, pathname));
|
189
|
+
}
|
190
|
+
|
191
|
+
function getFocusableElements(parent, includeAll) {
|
192
|
+
var selector = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled])';
|
193
|
+
|
194
|
+
if (includeAll) {
|
195
|
+
selector += ', [tabindex]:not([disabled])';
|
196
|
+
} else {
|
197
|
+
selector += ', [tabindex]:not([tabindex="-1" ]):not([disabled])';
|
198
|
+
}
|
199
|
+
|
200
|
+
if (parent) {
|
201
|
+
return parent.querySelectorAll(selector);
|
202
|
+
} else {
|
203
|
+
return document.querySelectorAll(selector);
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
function trapFocus(event, node, includeAll) {
|
208
|
+
var focusableElements = getFocusableElements(node, includeAll);
|
209
|
+
var length = focusableElements.length;
|
210
|
+
|
211
|
+
if (!length) {
|
212
|
+
return;
|
213
|
+
}
|
214
|
+
|
215
|
+
var elements = Object.assign([], focusableElements);
|
216
|
+
var index = elements.findIndex(function (el) {
|
217
|
+
return document.activeElement === el;
|
218
|
+
});
|
219
|
+
|
220
|
+
if (index < 0) {
|
221
|
+
focusableElements[0].focus();
|
222
|
+
event.preventDefault();
|
223
|
+
} else if (event.shiftKey && event.keyCode === 9 || event.keyCode === 38) {
|
224
|
+
//Shift+Tab || ArrowUp
|
225
|
+
index === 0 ? focusableElements[length - 1].focus() : focusableElements[index - 1].focus();
|
226
|
+
event.preventDefault();
|
227
|
+
} else if (event.keyCode === 9 || event.keyCode === 40) {
|
228
|
+
//Tab || ArrowDown
|
229
|
+
index === length - 1 ? focusableElements[0].focus() : focusableElements[index + 1].focus();
|
230
|
+
event.preventDefault();
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
function textHighlight(queryString, text) {
|
235
|
+
var regx;
|
236
|
+
|
237
|
+
try {
|
238
|
+
regx = new RegExp(queryString, 'ig');
|
239
|
+
} catch (error) {
|
240
|
+
regx = queryString;
|
241
|
+
}
|
242
|
+
|
243
|
+
var highlightedText = text.replace(regx, function (str) {
|
244
|
+
return "<strong>".concat(str, "</strong>");
|
245
|
+
});
|
246
|
+
return highlightedText;
|
247
|
+
}
|
248
|
+
|
249
|
+
function truncateString(_string, _max_char_limit, _atCenter) {
|
250
|
+
var truncatedString = _string,
|
251
|
+
leftLimit = 0,
|
252
|
+
rightLimit = 0,
|
253
|
+
truncChar = ' ... ';
|
254
|
+
|
255
|
+
if (_string && _max_char_limit > 0) {
|
256
|
+
if (_max_char_limit < _string.length) {
|
257
|
+
if (!_atCenter) {
|
258
|
+
truncatedString = _string.substr(0, _max_char_limit - 1) + truncChar;
|
259
|
+
} else {
|
260
|
+
leftLimit = Math.round((_max_char_limit - 1) / 2);
|
261
|
+
rightLimit = _max_char_limit - 1 - leftLimit;
|
262
|
+
truncatedString = _string.substr(0, leftLimit) + truncChar + _string.slice(-rightLimit);
|
263
|
+
}
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
return truncatedString;
|
268
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.selectOptionPropType = exports.iconPropType = exports.tagPropType = exports.stringOrNumber = void 0;
|
7
|
+
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
|
+
|
10
|
+
function _interopRequireDefault(obj) {
|
11
|
+
return obj && obj.__esModule ? obj : {
|
12
|
+
default: obj
|
13
|
+
};
|
14
|
+
}
|
15
|
+
|
16
|
+
var stringOrNumber = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]);
|
17
|
+
|
18
|
+
exports.stringOrNumber = stringOrNumber;
|
19
|
+
|
20
|
+
var tagPropType = _propTypes.default.oneOfType([
|
21
|
+
/* Function that returns a component to render */
|
22
|
+
_propTypes.default.func,
|
23
|
+
/* Name of a tag to render */
|
24
|
+
_propTypes.default.string,
|
25
|
+
/* render prop */
|
26
|
+
_propTypes.default.shape({
|
27
|
+
$$typeof: _propTypes.default.symbol,
|
28
|
+
render: _propTypes.default.func
|
29
|
+
})]);
|
30
|
+
|
31
|
+
exports.tagPropType = tagPropType;
|
32
|
+
|
33
|
+
var iconPropType = _propTypes.default.shape({
|
34
|
+
/** Font Awesome icon name (omit fa-) */
|
35
|
+
name: _propTypes.default.string.isRequired,
|
36
|
+
|
37
|
+
/** Icon family: regular, solid, light, or brand (regular is default) */
|
38
|
+
family: _propTypes.default.oneOf(['regular', 'solid', 'light', 'brand'])
|
39
|
+
});
|
40
|
+
|
41
|
+
exports.iconPropType = iconPropType;
|
42
|
+
|
43
|
+
var selectOptionPropType = _propTypes.default.exact({
|
44
|
+
/* text for a select option, what is visible to the user */
|
45
|
+
text: _propTypes.default.string.isRequired,
|
46
|
+
|
47
|
+
/* value of the select box, can be a string or a number */
|
48
|
+
value: stringOrNumber.isRequired
|
49
|
+
});
|
50
|
+
|
51
|
+
exports.selectOptionPropType = selectOptionPropType;
|