@ntbjs/react-components 1.2.0-rc.98 → 1.2.0-rc.99
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/{ActionButton-adaadbae.js → ActionButton-46735b89.js} +17 -17
- package/{Alert-b41a748e.js → Alert-13b75102.js} +36 -33
- package/{AssetGallery-df037aa0.js → AssetGallery-094ed34b.js} +595 -442
- package/{AssetPreviewTopBar-ac66b804.js → AssetPreviewTopBar-912c3469.js} +38 -35
- package/{Badge-4a2a9f6b.js → Badge-aec841c8.js} +67 -47
- package/{Button-4c60d2f4.js → Button-49f82b31.js} +77 -66
- package/{Checkbox-84dd9aa1.js → Checkbox-68dc38a8.js} +50 -46
- package/{CompactAutocompleteSelect-bf5e8820.js → CompactAutocompleteSelect-b68618b3.js} +143 -110
- package/{CompactStarRating-017d64cb.js → CompactStarRating-405e4508.js} +105 -90
- package/{CompactTextInput-8132e42d.js → CompactTextInput-0d53acdf.js} +104 -93
- package/{ContextMenu-4427ad11.js → ContextMenu-4ec3d9f3.js} +7 -8
- package/{ContextMenuItem-b5f97001.js → ContextMenuItem-ba2b697e.js} +32 -29
- package/{InputGroup-9d1cd295.js → InputGroup-49fbc423.js} +7 -8
- package/{Instructions-235aa0fc.js → Instructions-b6d3e7bd.js} +111 -97
- package/{MultiLevelCheckboxSelect-4f51a1a2.js → MultiLevelCheckboxSelect-f3de8047.js} +204 -143
- package/{MultiSelect-53089d1e.js → MultiSelect-efd60232.js} +120 -91
- package/{Popover-938e6bfc.js → Popover-569cd272.js} +33 -32
- package/{Radio-1d09e729.js → Radio-32d0513a.js} +33 -33
- package/{SectionSeparator-d9ae38b7.js → SectionSeparator-259a22ed.js} +7 -8
- package/{Switch-15d9a890.js → Switch-4a41585f.js} +40 -39
- package/{Tab-88f77a44.js → Tab-f499ecbc.js} +9 -10
- package/{Tabs-e64ecfaa.js → Tabs-a8c77f71.js} +38 -48
- package/{TextArea-cbe713eb.js → TextArea-a5579cc8.js} +140 -151
- package/{TextInput-b9414cc6.js → TextInput-0d109708.js} +70 -64
- package/{Tooltip-22238771.js → Tooltip-66daf6e3.js} +20 -21
- package/{VerificationStatusIcon-99a54d5d.js → VerificationStatusIcon-6fe95a92.js} +33 -24
- package/{close-1751121a.js → close-ebf2f3cf.js} +12 -8
- package/data/Alert/index.js +2 -3
- package/data/Badge/index.js +2 -3
- package/data/Popover/index.js +3 -4
- package/data/Tab/index.js +2 -3
- package/data/Tabs/index.js +3 -4
- package/data/Tooltip/index.js +3 -4
- package/data/index.js +9 -10
- package/{index-1e234d23.js → defaultTheme-ea44e34a.js} +352 -39
- package/edit-note-c47d292e.js +41 -0
- package/{expand-more-d74e2bd2.js → expand-more-94585605.js} +12 -8
- package/inputs/ActionButton/index.js +2 -3
- package/inputs/Button/index.js +6 -7
- package/inputs/Checkbox/index.js +2 -3
- package/inputs/CompactAutocompleteSelect/index.js +13 -14
- package/inputs/CompactStarRating/index.js +10 -11
- package/inputs/CompactTextInput/index.js +11 -12
- package/inputs/MultiSelect/index.js +4 -5
- package/inputs/Radio/index.js +2 -3
- package/inputs/Switch/index.js +2 -3
- package/inputs/TextArea/index.js +11 -12
- package/inputs/TextInput/index.js +3 -4
- package/inputs/index.js +28 -31
- package/layout/InputGroup/index.js +2 -3
- package/layout/SectionSeparator/index.js +2 -3
- package/layout/index.js +3 -4
- package/package.json +5 -5
- package/{react-select-creatable.esm-31bd2caf.js → react-select-creatable.esm-2f23d6c6.js} +1272 -1470
- package/{shift-away-subtle-c3c2f2b2.js → shift-away-subtle-0bed9a3c.js} +1 -1
- package/ssr/index.js +3 -1
- package/{warning-circle-478e65cc.js → warning-circle-24522402.js} +12 -8
- package/widgets/AssetGallery/index.js +31 -33
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +3 -4
- package/widgets/ContextMenu/ContextMenuItem/index.js +2 -3
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +7 -8
- package/widgets/ContextMenu/index.js +2 -3
- package/widgets/Instructions/index.js +17 -18
- package/widgets/index.js +33 -35
- package/CompactAutocompleteSelectAsync-e76bf873.js +0 -28
- package/defaultTheme-8bd3e0b9.js +0 -271
- package/edit-note-cefe2215.js +0 -37
- package/inputs/CompactAutocompleteSelectAsync/index.js +0 -11
package/data/index.js
CHANGED
|
@@ -2,21 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Alert = require('../Alert-
|
|
6
|
-
var Badge = require('../Badge-
|
|
7
|
-
var Popover = require('../Popover-
|
|
8
|
-
var Tab = require('../Tab-
|
|
9
|
-
var Tabs = require('../Tabs-
|
|
10
|
-
var Tooltip = require('../Tooltip-
|
|
11
|
-
var VerificationStatusIcon = require('../VerificationStatusIcon-
|
|
12
|
-
require('../defaultTheme-
|
|
5
|
+
var Alert = require('../Alert-13b75102.js');
|
|
6
|
+
var Badge = require('../Badge-aec841c8.js');
|
|
7
|
+
var Popover = require('../Popover-569cd272.js');
|
|
8
|
+
var Tab = require('../Tab-f499ecbc.js');
|
|
9
|
+
var Tabs = require('../Tabs-a8c77f71.js');
|
|
10
|
+
var Tooltip = require('../Tooltip-66daf6e3.js');
|
|
11
|
+
var VerificationStatusIcon = require('../VerificationStatusIcon-6fe95a92.js');
|
|
12
|
+
require('../defaultTheme-ea44e34a.js');
|
|
13
13
|
require('styled-components');
|
|
14
14
|
require('react');
|
|
15
|
-
require('../index-1e234d23.js');
|
|
16
15
|
require('lodash');
|
|
17
16
|
require('polished');
|
|
18
17
|
require('@tippyjs/react');
|
|
19
|
-
require('../shift-away-subtle-
|
|
18
|
+
require('../shift-away-subtle-0bed9a3c.js');
|
|
20
19
|
require('popper-max-size-modifier');
|
|
21
20
|
|
|
22
21
|
|
|
@@ -1,5 +1,274 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var styled = require('styled-components');
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) {
|
|
6
|
+
var keys = Object.keys(object);
|
|
7
|
+
|
|
8
|
+
if (Object.getOwnPropertySymbols) {
|
|
9
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
10
|
+
|
|
11
|
+
if (enumerableOnly) {
|
|
12
|
+
symbols = symbols.filter(function (sym) {
|
|
13
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
keys.push.apply(keys, symbols);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return keys;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function _objectSpread2(target) {
|
|
24
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
26
|
+
|
|
27
|
+
if (i % 2) {
|
|
28
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
29
|
+
_defineProperty(target, key, source[key]);
|
|
30
|
+
});
|
|
31
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
32
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
33
|
+
} else {
|
|
34
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
35
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return target;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function _typeof(obj) {
|
|
44
|
+
"@babel/helpers - typeof";
|
|
45
|
+
|
|
46
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
47
|
+
_typeof = function (obj) {
|
|
48
|
+
return typeof obj;
|
|
49
|
+
};
|
|
50
|
+
} else {
|
|
51
|
+
_typeof = function (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 _defineProperty(obj, key, value) {
|
|
60
|
+
if (key in obj) {
|
|
61
|
+
Object.defineProperty(obj, key, {
|
|
62
|
+
value: value,
|
|
63
|
+
enumerable: true,
|
|
64
|
+
configurable: true,
|
|
65
|
+
writable: true
|
|
66
|
+
});
|
|
67
|
+
} else {
|
|
68
|
+
obj[key] = value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return obj;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function _extends() {
|
|
75
|
+
_extends = Object.assign || function (target) {
|
|
76
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
77
|
+
var source = arguments[i];
|
|
78
|
+
|
|
79
|
+
for (var key in source) {
|
|
80
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
81
|
+
target[key] = source[key];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return target;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
return _extends.apply(this, arguments);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
93
|
+
if (source == null) return {};
|
|
94
|
+
var target = {};
|
|
95
|
+
var sourceKeys = Object.keys(source);
|
|
96
|
+
var key, i;
|
|
97
|
+
|
|
98
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
99
|
+
key = sourceKeys[i];
|
|
100
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
101
|
+
target[key] = source[key];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return target;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function _objectWithoutProperties(source, excluded) {
|
|
108
|
+
if (source == null) return {};
|
|
109
|
+
|
|
110
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
111
|
+
|
|
112
|
+
var key, i;
|
|
113
|
+
|
|
114
|
+
if (Object.getOwnPropertySymbols) {
|
|
115
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
116
|
+
|
|
117
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
118
|
+
key = sourceSymbolKeys[i];
|
|
119
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
120
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
121
|
+
target[key] = source[key];
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return target;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function _taggedTemplateLiteral(strings, raw) {
|
|
129
|
+
if (!raw) {
|
|
130
|
+
raw = strings.slice(0);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
134
|
+
raw: {
|
|
135
|
+
value: Object.freeze(raw)
|
|
136
|
+
}
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function _slicedToArray(arr, i) {
|
|
141
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function _toConsumableArray(arr) {
|
|
145
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function _arrayWithoutHoles(arr) {
|
|
149
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function _arrayWithHoles(arr) {
|
|
153
|
+
if (Array.isArray(arr)) return arr;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function _iterableToArray(iter) {
|
|
157
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function _iterableToArrayLimit(arr, i) {
|
|
161
|
+
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
|
162
|
+
|
|
163
|
+
if (_i == null) return;
|
|
164
|
+
var _arr = [];
|
|
165
|
+
var _n = true;
|
|
166
|
+
var _d = false;
|
|
167
|
+
|
|
168
|
+
var _s, _e;
|
|
169
|
+
|
|
170
|
+
try {
|
|
171
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
172
|
+
_arr.push(_s.value);
|
|
173
|
+
|
|
174
|
+
if (i && _arr.length === i) break;
|
|
175
|
+
}
|
|
176
|
+
} catch (err) {
|
|
177
|
+
_d = true;
|
|
178
|
+
_e = err;
|
|
179
|
+
} finally {
|
|
180
|
+
try {
|
|
181
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
182
|
+
} finally {
|
|
183
|
+
if (_d) throw _e;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return _arr;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
191
|
+
if (!o) return;
|
|
192
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
193
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
194
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
195
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
196
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function _arrayLikeToArray(arr, len) {
|
|
200
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
201
|
+
|
|
202
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
203
|
+
|
|
204
|
+
return arr2;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function _nonIterableSpread() {
|
|
208
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function _nonIterableRest() {
|
|
212
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
216
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
217
|
+
|
|
218
|
+
if (!it) {
|
|
219
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
220
|
+
if (it) o = it;
|
|
221
|
+
var i = 0;
|
|
222
|
+
|
|
223
|
+
var F = function () {};
|
|
224
|
+
|
|
225
|
+
return {
|
|
226
|
+
s: F,
|
|
227
|
+
n: function () {
|
|
228
|
+
if (i >= o.length) return {
|
|
229
|
+
done: true
|
|
230
|
+
};
|
|
231
|
+
return {
|
|
232
|
+
done: false,
|
|
233
|
+
value: o[i++]
|
|
234
|
+
};
|
|
235
|
+
},
|
|
236
|
+
e: function (e) {
|
|
237
|
+
throw e;
|
|
238
|
+
},
|
|
239
|
+
f: F
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
var normalCompletion = true,
|
|
247
|
+
didErr = false,
|
|
248
|
+
err;
|
|
249
|
+
return {
|
|
250
|
+
s: function () {
|
|
251
|
+
it = it.call(o);
|
|
252
|
+
},
|
|
253
|
+
n: function () {
|
|
254
|
+
var step = it.next();
|
|
255
|
+
normalCompletion = step.done;
|
|
256
|
+
return step;
|
|
257
|
+
},
|
|
258
|
+
e: function (e) {
|
|
259
|
+
didErr = true;
|
|
260
|
+
err = e;
|
|
261
|
+
},
|
|
262
|
+
f: function () {
|
|
263
|
+
try {
|
|
264
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
265
|
+
} finally {
|
|
266
|
+
if (didErr) throw err;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
3
272
|
var propTypes = {exports: {}};
|
|
4
273
|
|
|
5
274
|
var reactIs = {exports: {}};
|
|
@@ -308,8 +577,6 @@ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
|
308
577
|
|
|
309
578
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
310
579
|
|
|
311
|
-
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
312
|
-
|
|
313
580
|
/**
|
|
314
581
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
315
582
|
*
|
|
@@ -322,7 +589,7 @@ var printWarning$1 = function() {};
|
|
|
322
589
|
if (process.env.NODE_ENV !== 'production') {
|
|
323
590
|
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
324
591
|
var loggedTypeFailures = {};
|
|
325
|
-
var has$1 =
|
|
592
|
+
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
326
593
|
|
|
327
594
|
printWarning$1 = function(text) {
|
|
328
595
|
var message = 'Warning: ' + text;
|
|
@@ -334,7 +601,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
334
601
|
// This error was thrown as a convenience so that you can use this stack
|
|
335
602
|
// to find the callsite that caused this warning to fire.
|
|
336
603
|
throw new Error(message);
|
|
337
|
-
} catch (x) {
|
|
604
|
+
} catch (x) {}
|
|
338
605
|
};
|
|
339
606
|
}
|
|
340
607
|
|
|
@@ -363,8 +630,7 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
363
630
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
364
631
|
var err = Error(
|
|
365
632
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
366
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
367
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
633
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
368
634
|
);
|
|
369
635
|
err.name = 'Invariant Violation';
|
|
370
636
|
throw err;
|
|
@@ -423,9 +689,9 @@ var ReactIs$1 = reactIs.exports;
|
|
|
423
689
|
var assign = objectAssign;
|
|
424
690
|
|
|
425
691
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
426
|
-
var has = has$2;
|
|
427
692
|
var checkPropTypes = checkPropTypes_1;
|
|
428
693
|
|
|
694
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
429
695
|
var printWarning = function() {};
|
|
430
696
|
|
|
431
697
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -526,7 +792,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
526
792
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
527
793
|
var ReactPropTypes = {
|
|
528
794
|
array: createPrimitiveTypeChecker('array'),
|
|
529
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
530
795
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
531
796
|
func: createPrimitiveTypeChecker('function'),
|
|
532
797
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -572,9 +837,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
572
837
|
* is prohibitively expensive if they are created too often, such as what
|
|
573
838
|
* happens in oneOfType() for any type before the one that matched.
|
|
574
839
|
*/
|
|
575
|
-
function PropTypeError(message
|
|
840
|
+
function PropTypeError(message) {
|
|
576
841
|
this.message = message;
|
|
577
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
578
842
|
this.stack = '';
|
|
579
843
|
}
|
|
580
844
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -609,7 +873,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
609
873
|
) {
|
|
610
874
|
printWarning(
|
|
611
875
|
'You are manually calling a React.PropTypes validation ' +
|
|
612
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
876
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
613
877
|
'and will throw in the standalone `prop-types` package. ' +
|
|
614
878
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
615
879
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -648,10 +912,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
648
912
|
// 'of type `object`'.
|
|
649
913
|
var preciseType = getPreciseType(propValue);
|
|
650
914
|
|
|
651
|
-
return new PropTypeError(
|
|
652
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
653
|
-
{expectedType: expectedType}
|
|
654
|
-
);
|
|
915
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
655
916
|
}
|
|
656
917
|
return null;
|
|
657
918
|
}
|
|
@@ -795,19 +1056,14 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
795
1056
|
}
|
|
796
1057
|
|
|
797
1058
|
function validate(props, propName, componentName, location, propFullName) {
|
|
798
|
-
var expectedTypes = [];
|
|
799
1059
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
800
1060
|
var checker = arrayOfTypeCheckers[i];
|
|
801
|
-
|
|
802
|
-
if (checkerResult == null) {
|
|
1061
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1) == null) {
|
|
803
1062
|
return null;
|
|
804
1063
|
}
|
|
805
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
806
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
807
|
-
}
|
|
808
1064
|
}
|
|
809
|
-
|
|
810
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
1065
|
+
|
|
1066
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
811
1067
|
}
|
|
812
1068
|
return createChainableTypeChecker(validate);
|
|
813
1069
|
}
|
|
@@ -822,13 +1078,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
822
1078
|
return createChainableTypeChecker(validate);
|
|
823
1079
|
}
|
|
824
1080
|
|
|
825
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
826
|
-
return new PropTypeError(
|
|
827
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
828
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
829
|
-
);
|
|
830
|
-
}
|
|
831
|
-
|
|
832
1081
|
function createShapeTypeChecker(shapeTypes) {
|
|
833
1082
|
function validate(props, propName, componentName, location, propFullName) {
|
|
834
1083
|
var propValue = props[propName];
|
|
@@ -838,8 +1087,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
838
1087
|
}
|
|
839
1088
|
for (var key in shapeTypes) {
|
|
840
1089
|
var checker = shapeTypes[key];
|
|
841
|
-
if (
|
|
842
|
-
|
|
1090
|
+
if (!checker) {
|
|
1091
|
+
continue;
|
|
843
1092
|
}
|
|
844
1093
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
845
1094
|
if (error) {
|
|
@@ -858,18 +1107,16 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
858
1107
|
if (propType !== 'object') {
|
|
859
1108
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
860
1109
|
}
|
|
861
|
-
// We need to check all keys in case some are required but missing from
|
|
1110
|
+
// We need to check all keys in case some are required but missing from
|
|
1111
|
+
// props.
|
|
862
1112
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
863
1113
|
for (var key in allKeys) {
|
|
864
1114
|
var checker = shapeTypes[key];
|
|
865
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
866
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
867
|
-
}
|
|
868
1115
|
if (!checker) {
|
|
869
1116
|
return new PropTypeError(
|
|
870
1117
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
871
1118
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
872
|
-
'\nValid keys: ' +
|
|
1119
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
873
1120
|
);
|
|
874
1121
|
}
|
|
875
1122
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
@@ -1054,7 +1301,6 @@ var factoryWithThrowingShims = function() {
|
|
|
1054
1301
|
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1055
1302
|
var ReactPropTypes = {
|
|
1056
1303
|
array: shim,
|
|
1057
|
-
bigint: shim,
|
|
1058
1304
|
bool: shim,
|
|
1059
1305
|
func: shim,
|
|
1060
1306
|
number: shim,
|
|
@@ -1105,5 +1351,72 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1105
1351
|
|
|
1106
1352
|
var PropTypes = propTypes.exports;
|
|
1107
1353
|
|
|
1354
|
+
function styleInject(css, ref) {
|
|
1355
|
+
if ( ref === void 0 ) ref = {};
|
|
1356
|
+
var insertAt = ref.insertAt;
|
|
1357
|
+
|
|
1358
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
1359
|
+
|
|
1360
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1361
|
+
var style = document.createElement('style');
|
|
1362
|
+
style.type = 'text/css';
|
|
1363
|
+
|
|
1364
|
+
if (insertAt === 'top') {
|
|
1365
|
+
if (head.firstChild) {
|
|
1366
|
+
head.insertBefore(style, head.firstChild);
|
|
1367
|
+
} else {
|
|
1368
|
+
head.appendChild(style);
|
|
1369
|
+
}
|
|
1370
|
+
} else {
|
|
1371
|
+
head.appendChild(style);
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
if (style.styleSheet) {
|
|
1375
|
+
style.styleSheet.cssText = css;
|
|
1376
|
+
} else {
|
|
1377
|
+
style.appendChild(document.createTextNode(css));
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
var css_248z = "/**\n * Colors\n */\n";
|
|
1382
|
+
var importedColors = {"orange-500":"#ff9900","orange-400":"#ffcb7e","emerald-500":"#30826a","emerald-400":"#64b49d","emerald-300":"#bfe0d5","emerald-200":"#f3f9f7","gray-900":"#141313","gray-800":"#272727","gray-700":"#323232","gray-600":"#505050","gray-500":"#767676","gray-400":"#b0b6b9","gray-300":"#d9dce0","gray-200":"#eff1f4","gray-100":"#f7f8f9","cercise-500":"#5f1031","cercise-400":"#854962","cercise-300":"#d099b0","cercise-100":"#f9f3f5","red-600":"#7f1b1b","red-500":"#d83000","red-200":"#fbeae6","brown-500":"#634e01","signal-yellow-500":"#f4e21e","signal-yellow-400":"#fff36c","signal-green-500":"#00bd98","signal-green-400":"#a3ffe0","black":"#202435","white":"#ffffff"};
|
|
1383
|
+
styleInject(css_248z);
|
|
1384
|
+
|
|
1385
|
+
var _templateObject;
|
|
1386
|
+
var defaultTheme = {
|
|
1387
|
+
getColor: function getColor(name) {
|
|
1388
|
+
if (!importedColors[name]) throw Error("The color \"".concat(name, "\" is not registered."));
|
|
1389
|
+
return importedColors[name];
|
|
1390
|
+
},
|
|
1391
|
+
primaryFontFamily: "'Roboto', sans-serif",
|
|
1392
|
+
secondaryFontFamily: "'Overpass', sans-serif",
|
|
1393
|
+
themeProp: themeProp
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1396
|
+
function themeProp(property, darkMode, lightMode) {
|
|
1397
|
+
var specificity = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 2;
|
|
1398
|
+
var specificityString = Array(specificity).fill("&").join("");
|
|
1399
|
+
return styled.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body.dark-theme ", " {\n ", ": ", ";\n }\n\n body.light-theme ", " {\n ", ": ", ";\n }\n\n body:not(.light-theme):not(.dark-theme) ", " {\n ", ": ", ";\n\n @media (prefers-color-scheme: dark) {\n ", ": ", ";\n }\n }\n "])), specificityString, property, darkMode, specificityString, property, lightMode, specificityString, property, lightMode, property, darkMode);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
function applyDefaultTheme(_ref) {
|
|
1403
|
+
var _ref$theme = _ref.theme,
|
|
1404
|
+
theme = _ref$theme === void 0 ? {} : _ref$theme,
|
|
1405
|
+
props = _objectWithoutProperties(_ref, ["theme"]);
|
|
1406
|
+
|
|
1407
|
+
return _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1408
|
+
theme: Object.assign({}, defaultTheme, theme)
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1108
1412
|
exports.PropTypes = PropTypes;
|
|
1109
|
-
exports.
|
|
1413
|
+
exports._createForOfIteratorHelper = _createForOfIteratorHelper;
|
|
1414
|
+
exports._extends = _extends;
|
|
1415
|
+
exports._objectSpread2 = _objectSpread2;
|
|
1416
|
+
exports._objectWithoutProperties = _objectWithoutProperties;
|
|
1417
|
+
exports._slicedToArray = _slicedToArray;
|
|
1418
|
+
exports._taggedTemplateLiteral = _taggedTemplateLiteral;
|
|
1419
|
+
exports._toConsumableArray = _toConsumableArray;
|
|
1420
|
+
exports._typeof = _typeof;
|
|
1421
|
+
exports.applyDefaultTheme = applyDefaultTheme;
|
|
1422
|
+
exports.styleInject = styleInject;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule) return e;
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return e[k];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n['default'] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
+
|
|
27
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
28
|
+
|
|
29
|
+
var _ref = /*#__PURE__*/React__namespace.createElement("path", {
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
d: "M7 12v-1.77l4.42-4.42 1.77 1.77L8.77 12H7zM0 7.75v-1.5h6v1.5H0zM13.77 7L12 5.23l.67-.67c.15-.15.33-.23.53-.23s.38.08.53.23l.71.71c.15.15.23.33.23.53s-.08.38-.23.53l-.67.67zM0 4.63v-1.5h9v1.5H0zM0 1.5V0h9v1.5H0z"
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
function SvgEditNote(props) {
|
|
35
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
36
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
+
viewBox: "0 0 14.67 12"
|
|
38
|
+
}, props), _ref);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.SvgEditNote = SvgEditNote;
|
|
@@ -11,27 +11,31 @@ function _interopNamespace(e) {
|
|
|
11
11
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
12
|
Object.defineProperty(n, k, d.get ? d : {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () {
|
|
14
|
+
get: function () {
|
|
15
|
+
return e[k];
|
|
16
|
+
}
|
|
15
17
|
});
|
|
16
18
|
}
|
|
17
19
|
});
|
|
18
20
|
}
|
|
19
|
-
n[
|
|
21
|
+
n['default'] = e;
|
|
20
22
|
return Object.freeze(n);
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
26
|
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
28
|
+
|
|
29
|
+
var _ref = /*#__PURE__*/React__namespace.createElement("path", {
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
d: "M12 14.15l-12-12L2.15 0 12 9.9 21.85.05 24 2.2 12 14.15z"
|
|
32
|
+
});
|
|
33
|
+
|
|
27
34
|
function SvgExpandMore(props) {
|
|
28
35
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
29
36
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
37
|
viewBox: "0 0 24 14.15"
|
|
31
|
-
}, props),
|
|
32
|
-
fill: "currentColor",
|
|
33
|
-
d: "M12 14.15l-12-12L2.15 0 12 9.9 21.85.05 24 2.2 12 14.15z"
|
|
34
|
-
})));
|
|
38
|
+
}, props), _ref);
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
exports.SvgExpandMore = SvgExpandMore;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var ActionButton = require('../../ActionButton-
|
|
4
|
-
require('../../defaultTheme-
|
|
3
|
+
var ActionButton = require('../../ActionButton-46735b89.js');
|
|
4
|
+
require('../../defaultTheme-ea44e34a.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../../index-1e234d23.js');
|
|
8
7
|
require('polished');
|
|
9
8
|
|
|
10
9
|
|
package/inputs/Button/index.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Button = require('../../Button-
|
|
4
|
-
require('../../defaultTheme-
|
|
3
|
+
var Button = require('../../Button-49f82b31.js');
|
|
4
|
+
require('../../defaultTheme-ea44e34a.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../../
|
|
8
|
-
require('../../Popover-938e6bfc.js');
|
|
7
|
+
require('../../Popover-569cd272.js');
|
|
9
8
|
require('lodash');
|
|
10
9
|
require('polished');
|
|
11
10
|
require('@tippyjs/react');
|
|
12
|
-
require('../../shift-away-subtle-
|
|
11
|
+
require('../../shift-away-subtle-0bed9a3c.js');
|
|
13
12
|
require('popper-max-size-modifier');
|
|
14
|
-
require('../../ContextMenu-
|
|
15
|
-
require('../../expand-more-
|
|
13
|
+
require('../../ContextMenu-4ec3d9f3.js');
|
|
14
|
+
require('../../expand-more-94585605.js');
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
|
package/inputs/Checkbox/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Checkbox = require('../../Checkbox-
|
|
4
|
-
require('../../defaultTheme-
|
|
3
|
+
var Checkbox = require('../../Checkbox-68dc38a8.js');
|
|
4
|
+
require('../../defaultTheme-ea44e34a.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('react');
|
|
7
7
|
require('nanoid');
|
|
8
|
-
require('../../index-1e234d23.js');
|
|
9
8
|
require('lodash');
|
|
10
9
|
|
|
11
10
|
|