@ntbjs/react-components 1.1.13 → 1.1.15
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/.eslintrc +7 -8
- package/{ActionButton-46735b89.js → ActionButton-b2345555.js} +19 -16
- package/{Alert-13b75102.js → Alert-d69a3f95.js} +20 -24
- package/{AssetGallery-f62e16b2.js → AssetAction-2e2d496e.js} +585 -650
- package/AssetPreviewTopBar-b1fe3188.js +104 -0
- package/{Badge-757b0a39.js → Badge-e984e6f5.js} +28 -49
- package/{Button-49f82b31.js → Button-39607724.js} +53 -65
- package/{Checkbox-68dc38a8.js → Checkbox-ad9c9e54.js} +30 -35
- package/{CompactAutocompleteSelect-96137f48.js → CompactAutocompleteSelect-7d05d707.js} +82 -114
- package/{CompactStarRating-15c1b812.js → CompactStarRating-d4cfae17.js} +71 -87
- package/{CompactTextInput-a43aea28.js → CompactTextInput-f89988be.js} +95 -105
- package/{ContextMenu-4ec3d9f3.js → ContextMenu-4eb8fdc5.js} +6 -6
- package/{ContextMenuItem-ba2b697e.js → ContextMenuItem-c536b460.js} +22 -26
- package/{InputGroup-49fbc423.js → InputGroup-a89a0ea3.js} +6 -6
- package/{Instructions-9a0fd247.js → Instructions-c8502398.js} +97 -81
- package/{MultiLevelCheckboxSelect-e6e5cb90.js → MultiLevelCheckboxSelect-6be69491.js} +102 -164
- package/{MultiSelect-efd60232.js → MultiSelect-81e7016c.js} +71 -101
- package/{Popover-569cd272.js → Popover-c5e425a7.js} +19 -21
- package/{Radio-32d0513a.js → Radio-55db4781.js} +21 -22
- package/{SectionSeparator-259a22ed.js → SectionSeparator-af8dc1ce.js} +6 -6
- package/{Switch-4a41585f.js → Switch-04ecd8d0.js} +25 -27
- package/{Tab-f499ecbc.js → Tab-e43241f0.js} +7 -7
- package/{Tabs-116aa951.js → Tabs-cfc08c6b.js} +21 -33
- package/{TextArea-a869b1a9.js → TextArea-6e15b44f.js} +110 -135
- package/{TextInput-0d109708.js → TextInput-9a995449.js} +41 -48
- package/{Tooltip-66daf6e3.js → Tooltip-a68a7e49.js} +13 -13
- package/{VerificationStatusIcon-d5bfb67a.js → VerificationStatusIcon-7b0e23fe.js} +20 -30
- package/{close-ebf2f3cf.js → close-1751121a.js} +8 -12
- package/data/Alert/index.js +2 -2
- package/data/Badge/index.js +2 -2
- package/data/Popover/index.js +3 -3
- package/data/Tab/index.js +2 -2
- package/data/Tabs/index.js +3 -3
- package/data/Tooltip/index.js +3 -3
- package/data/index.js +9 -9
- package/{defaultTheme-ea44e34a.js → defaultTheme-cd01e6c2.js} +212 -260
- package/edit-note-cefe2215.js +37 -0
- package/{expand-more-94585605.js → expand-more-d74e2bd2.js} +8 -12
- package/inputs/ActionButton/index.js +2 -2
- package/inputs/Button/index.js +6 -6
- package/inputs/Checkbox/index.js +2 -2
- package/inputs/CompactAutocompleteSelect/index.js +13 -13
- package/inputs/CompactStarRating/index.js +10 -10
- package/inputs/CompactTextInput/index.js +11 -11
- package/inputs/MultiSelect/index.js +4 -4
- package/inputs/Radio/index.js +2 -2
- package/inputs/Switch/index.js +2 -2
- package/inputs/TextArea/index.js +11 -11
- package/inputs/TextInput/index.js +3 -3
- package/inputs/index.js +28 -28
- package/layout/InputGroup/index.js +2 -2
- package/layout/SectionSeparator/index.js +2 -2
- package/layout/index.js +3 -3
- package/package.json +2 -1
- package/{react-select-creatable.esm-2f23d6c6.js → react-select-creatable.esm-9745dc34.js} +1502 -1281
- package/{shift-away-subtle-0bed9a3c.js → shift-away-subtle-631cd794.js} +1 -1
- package/ssr/index.js +1 -3
- package/widgets/AssetGallery/index.js +34 -32
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +3 -3
- package/widgets/ContextMenu/ContextMenuItem/index.js +2 -2
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +6 -6
- package/widgets/ContextMenu/index.js +2 -2
- package/widgets/Instructions/index.js +16 -17
- package/widgets/index.js +37 -35
- package/AssetPreviewTopBar-912c3469.js +0 -99
- package/edit-note-c47d292e.js +0 -41
- package/warning-circle-24522402.js +0 -41
|
@@ -2,272 +2,202 @@
|
|
|
2
2
|
|
|
3
3
|
var styled = require('styled-components');
|
|
4
4
|
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
5
|
+
function _arrayLikeToArray(r, a) {
|
|
6
|
+
(null == a || a > r.length) && (a = r.length);
|
|
7
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
8
|
+
return n;
|
|
205
9
|
}
|
|
206
|
-
|
|
207
|
-
|
|
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.");
|
|
10
|
+
function _arrayWithHoles(r) {
|
|
11
|
+
if (Array.isArray(r)) return r;
|
|
209
12
|
}
|
|
210
|
-
|
|
211
|
-
|
|
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.");
|
|
13
|
+
function _arrayWithoutHoles(r) {
|
|
14
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
213
15
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
var i = 0;
|
|
222
|
-
|
|
223
|
-
var F = function () {};
|
|
224
|
-
|
|
16
|
+
function _createForOfIteratorHelper(r, e) {
|
|
17
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
18
|
+
if (!t) {
|
|
19
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
20
|
+
t && (r = t);
|
|
21
|
+
var n = 0,
|
|
22
|
+
F = function () {};
|
|
225
23
|
return {
|
|
226
24
|
s: F,
|
|
227
25
|
n: function () {
|
|
228
|
-
|
|
229
|
-
done:
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
value: o[i++]
|
|
26
|
+
return n >= r.length ? {
|
|
27
|
+
done: !0
|
|
28
|
+
} : {
|
|
29
|
+
done: !1,
|
|
30
|
+
value: r[n++]
|
|
234
31
|
};
|
|
235
32
|
},
|
|
236
|
-
e: function (
|
|
237
|
-
throw
|
|
33
|
+
e: function (r) {
|
|
34
|
+
throw r;
|
|
238
35
|
},
|
|
239
36
|
f: F
|
|
240
37
|
};
|
|
241
38
|
}
|
|
242
|
-
|
|
243
39
|
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
40
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
err;
|
|
41
|
+
var o,
|
|
42
|
+
a = !0,
|
|
43
|
+
u = !1;
|
|
249
44
|
return {
|
|
250
45
|
s: function () {
|
|
251
|
-
|
|
46
|
+
t = t.call(r);
|
|
252
47
|
},
|
|
253
48
|
n: function () {
|
|
254
|
-
var
|
|
255
|
-
|
|
256
|
-
return step;
|
|
49
|
+
var r = t.next();
|
|
50
|
+
return a = r.done, r;
|
|
257
51
|
},
|
|
258
|
-
e: function (
|
|
259
|
-
|
|
260
|
-
err = e;
|
|
52
|
+
e: function (r) {
|
|
53
|
+
u = !0, o = r;
|
|
261
54
|
},
|
|
262
55
|
f: function () {
|
|
263
56
|
try {
|
|
264
|
-
|
|
57
|
+
a || null == t.return || t.return();
|
|
265
58
|
} finally {
|
|
266
|
-
if (
|
|
59
|
+
if (u) throw o;
|
|
267
60
|
}
|
|
268
61
|
}
|
|
269
62
|
};
|
|
270
63
|
}
|
|
64
|
+
function _defineProperty(e, r, t) {
|
|
65
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
66
|
+
value: t,
|
|
67
|
+
enumerable: !0,
|
|
68
|
+
configurable: !0,
|
|
69
|
+
writable: !0
|
|
70
|
+
}) : e[r] = t, e;
|
|
71
|
+
}
|
|
72
|
+
function _extends() {
|
|
73
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
74
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
75
|
+
var t = arguments[e];
|
|
76
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
77
|
+
}
|
|
78
|
+
return n;
|
|
79
|
+
}, _extends.apply(null, arguments);
|
|
80
|
+
}
|
|
81
|
+
function _iterableToArray(r) {
|
|
82
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
83
|
+
}
|
|
84
|
+
function _iterableToArrayLimit(r, l) {
|
|
85
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
86
|
+
if (null != t) {
|
|
87
|
+
var e,
|
|
88
|
+
n,
|
|
89
|
+
i,
|
|
90
|
+
u,
|
|
91
|
+
a = [],
|
|
92
|
+
f = !0,
|
|
93
|
+
o = !1;
|
|
94
|
+
try {
|
|
95
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
96
|
+
if (Object(t) !== t) return;
|
|
97
|
+
f = !1;
|
|
98
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
99
|
+
} catch (r) {
|
|
100
|
+
o = !0, n = r;
|
|
101
|
+
} finally {
|
|
102
|
+
try {
|
|
103
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
104
|
+
} finally {
|
|
105
|
+
if (o) throw n;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return a;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function _nonIterableRest() {
|
|
112
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
113
|
+
}
|
|
114
|
+
function _nonIterableSpread() {
|
|
115
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
116
|
+
}
|
|
117
|
+
function ownKeys(e, r) {
|
|
118
|
+
var t = Object.keys(e);
|
|
119
|
+
if (Object.getOwnPropertySymbols) {
|
|
120
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
121
|
+
r && (o = o.filter(function (r) {
|
|
122
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
123
|
+
})), t.push.apply(t, o);
|
|
124
|
+
}
|
|
125
|
+
return t;
|
|
126
|
+
}
|
|
127
|
+
function _objectSpread2(e) {
|
|
128
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
129
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
130
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
131
|
+
_defineProperty(e, r, t[r]);
|
|
132
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
133
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return e;
|
|
137
|
+
}
|
|
138
|
+
function _objectWithoutProperties(e, t) {
|
|
139
|
+
if (null == e) return {};
|
|
140
|
+
var o,
|
|
141
|
+
r,
|
|
142
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
143
|
+
if (Object.getOwnPropertySymbols) {
|
|
144
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
145
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
146
|
+
}
|
|
147
|
+
return i;
|
|
148
|
+
}
|
|
149
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
150
|
+
if (null == r) return {};
|
|
151
|
+
var t = {};
|
|
152
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
153
|
+
if (e.includes(n)) continue;
|
|
154
|
+
t[n] = r[n];
|
|
155
|
+
}
|
|
156
|
+
return t;
|
|
157
|
+
}
|
|
158
|
+
function _slicedToArray(r, e) {
|
|
159
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
160
|
+
}
|
|
161
|
+
function _taggedTemplateLiteral(e, t) {
|
|
162
|
+
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
163
|
+
raw: {
|
|
164
|
+
value: Object.freeze(t)
|
|
165
|
+
}
|
|
166
|
+
}));
|
|
167
|
+
}
|
|
168
|
+
function _toConsumableArray(r) {
|
|
169
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
170
|
+
}
|
|
171
|
+
function _toPrimitive(t, r) {
|
|
172
|
+
if ("object" != typeof t || !t) return t;
|
|
173
|
+
var e = t[Symbol.toPrimitive];
|
|
174
|
+
if (void 0 !== e) {
|
|
175
|
+
var i = e.call(t, r || "default");
|
|
176
|
+
if ("object" != typeof i) return i;
|
|
177
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
178
|
+
}
|
|
179
|
+
return ("string" === r ? String : Number)(t);
|
|
180
|
+
}
|
|
181
|
+
function _toPropertyKey(t) {
|
|
182
|
+
var i = _toPrimitive(t, "string");
|
|
183
|
+
return "symbol" == typeof i ? i : i + "";
|
|
184
|
+
}
|
|
185
|
+
function _typeof(o) {
|
|
186
|
+
"@babel/helpers - typeof";
|
|
187
|
+
|
|
188
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
189
|
+
return typeof o;
|
|
190
|
+
} : function (o) {
|
|
191
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
192
|
+
}, _typeof(o);
|
|
193
|
+
}
|
|
194
|
+
function _unsupportedIterableToArray(r, a) {
|
|
195
|
+
if (r) {
|
|
196
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
197
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
198
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
271
201
|
|
|
272
202
|
var propTypes = {exports: {}};
|
|
273
203
|
|
|
@@ -577,6 +507,8 @@ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
|
577
507
|
|
|
578
508
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
579
509
|
|
|
510
|
+
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
511
|
+
|
|
580
512
|
/**
|
|
581
513
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
582
514
|
*
|
|
@@ -589,7 +521,7 @@ var printWarning$1 = function() {};
|
|
|
589
521
|
if (process.env.NODE_ENV !== 'production') {
|
|
590
522
|
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
591
523
|
var loggedTypeFailures = {};
|
|
592
|
-
var has$1 =
|
|
524
|
+
var has$1 = has$2;
|
|
593
525
|
|
|
594
526
|
printWarning$1 = function(text) {
|
|
595
527
|
var message = 'Warning: ' + text;
|
|
@@ -601,7 +533,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
601
533
|
// This error was thrown as a convenience so that you can use this stack
|
|
602
534
|
// to find the callsite that caused this warning to fire.
|
|
603
535
|
throw new Error(message);
|
|
604
|
-
} catch (x) {}
|
|
536
|
+
} catch (x) { /**/ }
|
|
605
537
|
};
|
|
606
538
|
}
|
|
607
539
|
|
|
@@ -630,7 +562,8 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
630
562
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
631
563
|
var err = Error(
|
|
632
564
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
633
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
565
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
566
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
634
567
|
);
|
|
635
568
|
err.name = 'Invariant Violation';
|
|
636
569
|
throw err;
|
|
@@ -689,9 +622,9 @@ var ReactIs$1 = reactIs.exports;
|
|
|
689
622
|
var assign = objectAssign;
|
|
690
623
|
|
|
691
624
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
625
|
+
var has = has$2;
|
|
692
626
|
var checkPropTypes = checkPropTypes_1;
|
|
693
627
|
|
|
694
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
695
628
|
var printWarning = function() {};
|
|
696
629
|
|
|
697
630
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -792,6 +725,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
792
725
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
793
726
|
var ReactPropTypes = {
|
|
794
727
|
array: createPrimitiveTypeChecker('array'),
|
|
728
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
795
729
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
796
730
|
func: createPrimitiveTypeChecker('function'),
|
|
797
731
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -837,8 +771,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
837
771
|
* is prohibitively expensive if they are created too often, such as what
|
|
838
772
|
* happens in oneOfType() for any type before the one that matched.
|
|
839
773
|
*/
|
|
840
|
-
function PropTypeError(message) {
|
|
774
|
+
function PropTypeError(message, data) {
|
|
841
775
|
this.message = message;
|
|
776
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
842
777
|
this.stack = '';
|
|
843
778
|
}
|
|
844
779
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -873,7 +808,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
873
808
|
) {
|
|
874
809
|
printWarning(
|
|
875
810
|
'You are manually calling a React.PropTypes validation ' +
|
|
876
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
811
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
877
812
|
'and will throw in the standalone `prop-types` package. ' +
|
|
878
813
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
879
814
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -912,7 +847,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
912
847
|
// 'of type `object`'.
|
|
913
848
|
var preciseType = getPreciseType(propValue);
|
|
914
849
|
|
|
915
|
-
return new PropTypeError(
|
|
850
|
+
return new PropTypeError(
|
|
851
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
852
|
+
{expectedType: expectedType}
|
|
853
|
+
);
|
|
916
854
|
}
|
|
917
855
|
return null;
|
|
918
856
|
}
|
|
@@ -1056,14 +994,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1056
994
|
}
|
|
1057
995
|
|
|
1058
996
|
function validate(props, propName, componentName, location, propFullName) {
|
|
997
|
+
var expectedTypes = [];
|
|
1059
998
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1060
999
|
var checker = arrayOfTypeCheckers[i];
|
|
1061
|
-
|
|
1000
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
|
|
1001
|
+
if (checkerResult == null) {
|
|
1062
1002
|
return null;
|
|
1063
1003
|
}
|
|
1004
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
1005
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
1006
|
+
}
|
|
1064
1007
|
}
|
|
1065
|
-
|
|
1066
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
1008
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
1009
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
1067
1010
|
}
|
|
1068
1011
|
return createChainableTypeChecker(validate);
|
|
1069
1012
|
}
|
|
@@ -1078,6 +1021,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1078
1021
|
return createChainableTypeChecker(validate);
|
|
1079
1022
|
}
|
|
1080
1023
|
|
|
1024
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
1025
|
+
return new PropTypeError(
|
|
1026
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
1027
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
1028
|
+
);
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1081
1031
|
function createShapeTypeChecker(shapeTypes) {
|
|
1082
1032
|
function validate(props, propName, componentName, location, propFullName) {
|
|
1083
1033
|
var propValue = props[propName];
|
|
@@ -1087,8 +1037,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1087
1037
|
}
|
|
1088
1038
|
for (var key in shapeTypes) {
|
|
1089
1039
|
var checker = shapeTypes[key];
|
|
1090
|
-
if (
|
|
1091
|
-
|
|
1040
|
+
if (typeof checker !== 'function') {
|
|
1041
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1092
1042
|
}
|
|
1093
1043
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
1094
1044
|
if (error) {
|
|
@@ -1107,16 +1057,18 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1107
1057
|
if (propType !== 'object') {
|
|
1108
1058
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1109
1059
|
}
|
|
1110
|
-
// We need to check all keys in case some are required but missing from
|
|
1111
|
-
// props.
|
|
1060
|
+
// We need to check all keys in case some are required but missing from props.
|
|
1112
1061
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
1113
1062
|
for (var key in allKeys) {
|
|
1114
1063
|
var checker = shapeTypes[key];
|
|
1064
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
1065
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1066
|
+
}
|
|
1115
1067
|
if (!checker) {
|
|
1116
1068
|
return new PropTypeError(
|
|
1117
1069
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
1118
1070
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
1119
|
-
'\nValid keys: ' +
|
|
1071
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1120
1072
|
);
|
|
1121
1073
|
}
|
|
1122
1074
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
@@ -1301,6 +1253,7 @@ var factoryWithThrowingShims = function() {
|
|
|
1301
1253
|
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1302
1254
|
var ReactPropTypes = {
|
|
1303
1255
|
array: shim,
|
|
1256
|
+
bigint: shim,
|
|
1304
1257
|
bool: shim,
|
|
1305
1258
|
func: shim,
|
|
1306
1259
|
number: shim,
|
|
@@ -1378,10 +1331,11 @@ function styleInject(css, ref) {
|
|
|
1378
1331
|
}
|
|
1379
1332
|
}
|
|
1380
1333
|
|
|
1381
|
-
var css_248z = "/**\n * Colors\n
|
|
1334
|
+
var css_248z = "/**\n * Colors\n */";
|
|
1382
1335
|
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
1336
|
styleInject(css_248z);
|
|
1384
1337
|
|
|
1338
|
+
var _excluded = ["theme"];
|
|
1385
1339
|
var _templateObject;
|
|
1386
1340
|
var defaultTheme = {
|
|
1387
1341
|
getColor: function getColor(name) {
|
|
@@ -1392,18 +1346,15 @@ var defaultTheme = {
|
|
|
1392
1346
|
secondaryFontFamily: "'Overpass', sans-serif",
|
|
1393
1347
|
themeProp: themeProp
|
|
1394
1348
|
};
|
|
1395
|
-
|
|
1396
1349
|
function themeProp(property, darkMode, lightMode) {
|
|
1397
1350
|
var specificity = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 2;
|
|
1398
1351
|
var specificityString = Array(specificity).fill("&").join("");
|
|
1399
1352
|
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
1353
|
}
|
|
1401
|
-
|
|
1402
1354
|
function applyDefaultTheme(_ref) {
|
|
1403
1355
|
var _ref$theme = _ref.theme,
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1356
|
+
theme = _ref$theme === void 0 ? {} : _ref$theme,
|
|
1357
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
1407
1358
|
return _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1408
1359
|
theme: Object.assign({}, defaultTheme, theme)
|
|
1409
1360
|
});
|
|
@@ -1419,4 +1370,5 @@ exports._taggedTemplateLiteral = _taggedTemplateLiteral;
|
|
|
1419
1370
|
exports._toConsumableArray = _toConsumableArray;
|
|
1420
1371
|
exports._typeof = _typeof;
|
|
1421
1372
|
exports.applyDefaultTheme = applyDefaultTheme;
|
|
1373
|
+
exports.reactIs = reactIs;
|
|
1422
1374
|
exports.styleInject = styleInject;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
n["default"] = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
|
+
|
|
25
|
+
var _path;
|
|
26
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
27
|
+
function SvgEditNote(props) {
|
|
28
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
viewBox: "0 0 14.67 12"
|
|
31
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
32
|
+
fill: "currentColor",
|
|
33
|
+
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"
|
|
34
|
+
})));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.SvgEditNote = SvgEditNote;
|