@ntbjs/react-components 1.3.0-rc.4 → 1.3.0-rc.40
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-df714c16.js} +23 -18
- package/{Alert-13b75102.js → Alert-28de48e1.js} +30 -29
- package/{AssetGallery-7d05ac94.js → AssetAction-b7926b8e.js} +790 -655
- package/AssetPreviewTopBar-5636a6e9.js +118 -0
- package/{Badge-757b0a39.js → Badge-2e008fe7.js} +44 -54
- package/Button-0a19dec5.js +284 -0
- package/Checkbox-89fb44b0.js +152 -0
- package/CompactAutocompleteSelect-8edde787.js +478 -0
- package/CompactStarRating-c02080fd.js +343 -0
- package/CompactTextInput-1a216516.js +380 -0
- package/{ContextMenu-4ec3d9f3.js → ContextMenu-265b13dc.js} +9 -7
- package/ContextMenuItem-9008feb7.js +114 -0
- package/{InputGroup-49fbc423.js → InputGroup-daac9ea0.js} +9 -7
- package/{Instructions-e5947be9.js → Instructions-2a452d51.js} +109 -82
- package/{MultiLevelCheckboxSelect-b897d605.js → MultiLevelCheckboxSelect-d8e6ab4c.js} +158 -168
- package/MultiSelect-36f99f25.js +406 -0
- package/{Popover-569cd272.js → Popover-8e025dcb.js} +24 -24
- package/Radio-ecf4226c.js +90 -0
- package/{SectionSeparator-259a22ed.js → SectionSeparator-e69cddfd.js} +9 -7
- package/Switch-76d7d568.js +122 -0
- package/{Tab-f499ecbc.js → Tab-74c2bca2.js} +10 -8
- package/{Tabs-a8c77f71.js → Tabs-41bd6cc1.js} +54 -44
- package/TextArea-40baf21d.js +382 -0
- package/TextInput-c1bb5c8c.js +252 -0
- package/{Tooltip-66daf6e3.js → Tooltip-dbd1bc99.js} +16 -14
- package/{VerificationStatusIcon-d5bfb67a.js → VerificationStatusIcon-b43db48d.js} +30 -32
- 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-b6420d7d.js} +206 -263
- 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 +12 -12
- 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 +6 -5
- package/{react-select-creatable.esm-2f23d6c6.js → react-select-creatable.esm-ca527471.js} +1503 -1282
- package/{shift-away-subtle-0bed9a3c.js → shift-away-subtle-e3830923.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 +9 -7
- 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/Button-49f82b31.js +0 -264
- package/Checkbox-68dc38a8.js +0 -140
- package/CompactAutocompleteSelect-755b1869.js +0 -451
- package/CompactStarRating-bcfb78ac.js +0 -339
- package/CompactTextInput-9e507306.js +0 -349
- package/ContextMenuItem-ba2b697e.js +0 -110
- package/MultiSelect-efd60232.js +0 -377
- package/Radio-32d0513a.js +0 -86
- package/Switch-4a41585f.js +0 -107
- package/TextArea-8f62da6e.js +0 -353
- package/TextInput-0d109708.js +0 -236
- package/edit-note-c47d292e.js +0 -41
- package/warning-circle-24522402.js +0 -41
|
@@ -2,272 +2,195 @@
|
|
|
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 _toConsumableArray(r) {
|
|
162
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
163
|
+
}
|
|
164
|
+
function _toPrimitive(t, r) {
|
|
165
|
+
if ("object" != typeof t || !t) return t;
|
|
166
|
+
var e = t[Symbol.toPrimitive];
|
|
167
|
+
if (void 0 !== e) {
|
|
168
|
+
var i = e.call(t, r || "default");
|
|
169
|
+
if ("object" != typeof i) return i;
|
|
170
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
171
|
+
}
|
|
172
|
+
return ("string" === r ? String : Number)(t);
|
|
173
|
+
}
|
|
174
|
+
function _toPropertyKey(t) {
|
|
175
|
+
var i = _toPrimitive(t, "string");
|
|
176
|
+
return "symbol" == typeof i ? i : i + "";
|
|
177
|
+
}
|
|
178
|
+
function _typeof(o) {
|
|
179
|
+
"@babel/helpers - typeof";
|
|
180
|
+
|
|
181
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
182
|
+
return typeof o;
|
|
183
|
+
} : function (o) {
|
|
184
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
185
|
+
}, _typeof(o);
|
|
186
|
+
}
|
|
187
|
+
function _unsupportedIterableToArray(r, a) {
|
|
188
|
+
if (r) {
|
|
189
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
190
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
191
|
+
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;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
271
194
|
|
|
272
195
|
var propTypes = {exports: {}};
|
|
273
196
|
|
|
@@ -577,6 +500,8 @@ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
|
577
500
|
|
|
578
501
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
579
502
|
|
|
503
|
+
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
504
|
+
|
|
580
505
|
/**
|
|
581
506
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
582
507
|
*
|
|
@@ -589,7 +514,7 @@ var printWarning$1 = function() {};
|
|
|
589
514
|
if (process.env.NODE_ENV !== 'production') {
|
|
590
515
|
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
591
516
|
var loggedTypeFailures = {};
|
|
592
|
-
var has$1 =
|
|
517
|
+
var has$1 = has$2;
|
|
593
518
|
|
|
594
519
|
printWarning$1 = function(text) {
|
|
595
520
|
var message = 'Warning: ' + text;
|
|
@@ -601,7 +526,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
601
526
|
// This error was thrown as a convenience so that you can use this stack
|
|
602
527
|
// to find the callsite that caused this warning to fire.
|
|
603
528
|
throw new Error(message);
|
|
604
|
-
} catch (x) {}
|
|
529
|
+
} catch (x) { /**/ }
|
|
605
530
|
};
|
|
606
531
|
}
|
|
607
532
|
|
|
@@ -630,7 +555,8 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
630
555
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
631
556
|
var err = Error(
|
|
632
557
|
(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] + '`.'
|
|
558
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
559
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
634
560
|
);
|
|
635
561
|
err.name = 'Invariant Violation';
|
|
636
562
|
throw err;
|
|
@@ -689,9 +615,9 @@ var ReactIs$1 = reactIs.exports;
|
|
|
689
615
|
var assign = objectAssign;
|
|
690
616
|
|
|
691
617
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
618
|
+
var has = has$2;
|
|
692
619
|
var checkPropTypes = checkPropTypes_1;
|
|
693
620
|
|
|
694
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
695
621
|
var printWarning = function() {};
|
|
696
622
|
|
|
697
623
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -792,6 +718,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
792
718
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
793
719
|
var ReactPropTypes = {
|
|
794
720
|
array: createPrimitiveTypeChecker('array'),
|
|
721
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
795
722
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
796
723
|
func: createPrimitiveTypeChecker('function'),
|
|
797
724
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -837,8 +764,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
837
764
|
* is prohibitively expensive if they are created too often, such as what
|
|
838
765
|
* happens in oneOfType() for any type before the one that matched.
|
|
839
766
|
*/
|
|
840
|
-
function PropTypeError(message) {
|
|
767
|
+
function PropTypeError(message, data) {
|
|
841
768
|
this.message = message;
|
|
769
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
842
770
|
this.stack = '';
|
|
843
771
|
}
|
|
844
772
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -873,7 +801,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
873
801
|
) {
|
|
874
802
|
printWarning(
|
|
875
803
|
'You are manually calling a React.PropTypes validation ' +
|
|
876
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
804
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
877
805
|
'and will throw in the standalone `prop-types` package. ' +
|
|
878
806
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
879
807
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -912,7 +840,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
912
840
|
// 'of type `object`'.
|
|
913
841
|
var preciseType = getPreciseType(propValue);
|
|
914
842
|
|
|
915
|
-
return new PropTypeError(
|
|
843
|
+
return new PropTypeError(
|
|
844
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
845
|
+
{expectedType: expectedType}
|
|
846
|
+
);
|
|
916
847
|
}
|
|
917
848
|
return null;
|
|
918
849
|
}
|
|
@@ -1056,14 +987,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1056
987
|
}
|
|
1057
988
|
|
|
1058
989
|
function validate(props, propName, componentName, location, propFullName) {
|
|
990
|
+
var expectedTypes = [];
|
|
1059
991
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1060
992
|
var checker = arrayOfTypeCheckers[i];
|
|
1061
|
-
|
|
993
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
|
|
994
|
+
if (checkerResult == null) {
|
|
1062
995
|
return null;
|
|
1063
996
|
}
|
|
997
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
998
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
999
|
+
}
|
|
1064
1000
|
}
|
|
1065
|
-
|
|
1066
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
1001
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
1002
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
1067
1003
|
}
|
|
1068
1004
|
return createChainableTypeChecker(validate);
|
|
1069
1005
|
}
|
|
@@ -1078,6 +1014,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1078
1014
|
return createChainableTypeChecker(validate);
|
|
1079
1015
|
}
|
|
1080
1016
|
|
|
1017
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
1018
|
+
return new PropTypeError(
|
|
1019
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
1020
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
1021
|
+
);
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1081
1024
|
function createShapeTypeChecker(shapeTypes) {
|
|
1082
1025
|
function validate(props, propName, componentName, location, propFullName) {
|
|
1083
1026
|
var propValue = props[propName];
|
|
@@ -1087,8 +1030,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1087
1030
|
}
|
|
1088
1031
|
for (var key in shapeTypes) {
|
|
1089
1032
|
var checker = shapeTypes[key];
|
|
1090
|
-
if (
|
|
1091
|
-
|
|
1033
|
+
if (typeof checker !== 'function') {
|
|
1034
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1092
1035
|
}
|
|
1093
1036
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
1094
1037
|
if (error) {
|
|
@@ -1107,16 +1050,18 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1107
1050
|
if (propType !== 'object') {
|
|
1108
1051
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1109
1052
|
}
|
|
1110
|
-
// We need to check all keys in case some are required but missing from
|
|
1111
|
-
// props.
|
|
1053
|
+
// We need to check all keys in case some are required but missing from props.
|
|
1112
1054
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
1113
1055
|
for (var key in allKeys) {
|
|
1114
1056
|
var checker = shapeTypes[key];
|
|
1057
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
1058
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1059
|
+
}
|
|
1115
1060
|
if (!checker) {
|
|
1116
1061
|
return new PropTypeError(
|
|
1117
1062
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
1118
1063
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
1119
|
-
'\nValid keys: ' +
|
|
1064
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1120
1065
|
);
|
|
1121
1066
|
}
|
|
1122
1067
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
@@ -1301,6 +1246,7 @@ var factoryWithThrowingShims = function() {
|
|
|
1301
1246
|
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1302
1247
|
var ReactPropTypes = {
|
|
1303
1248
|
array: shim,
|
|
1249
|
+
bigint: shim,
|
|
1304
1250
|
bool: shim,
|
|
1305
1251
|
func: shim,
|
|
1306
1252
|
number: shim,
|
|
@@ -1378,11 +1324,11 @@ function styleInject(css, ref) {
|
|
|
1378
1324
|
}
|
|
1379
1325
|
}
|
|
1380
1326
|
|
|
1381
|
-
var css_248z = "/**\n * Colors\n
|
|
1327
|
+
var css_248z = "/**\n * Colors\n */";
|
|
1382
1328
|
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
1329
|
styleInject(css_248z);
|
|
1384
1330
|
|
|
1385
|
-
var
|
|
1331
|
+
var _excluded = ["theme"];
|
|
1386
1332
|
var defaultTheme = {
|
|
1387
1333
|
getColor: function getColor(name) {
|
|
1388
1334
|
if (!importedColors[name]) throw Error("The color \"".concat(name, "\" is not registered."));
|
|
@@ -1392,18 +1338,15 @@ var defaultTheme = {
|
|
|
1392
1338
|
secondaryFontFamily: "'Overpass', sans-serif",
|
|
1393
1339
|
themeProp: themeProp
|
|
1394
1340
|
};
|
|
1395
|
-
|
|
1396
1341
|
function themeProp(property, darkMode, lightMode) {
|
|
1397
1342
|
var specificity = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 2;
|
|
1398
1343
|
var specificityString = Array(specificity).fill("&").join("");
|
|
1399
|
-
return styled.css(
|
|
1344
|
+
return styled.css(["body.dark-theme ", "{", ":", ";}body.light-theme ", "{", ":", ";}body:not(.light-theme):not(.dark-theme) ", "{", ":", ";@media (prefers-color-scheme:dark){", ":", ";}}"], specificityString, property, darkMode, specificityString, property, lightMode, specificityString, property, lightMode, property, darkMode);
|
|
1400
1345
|
}
|
|
1401
|
-
|
|
1402
1346
|
function applyDefaultTheme(_ref) {
|
|
1403
1347
|
var _ref$theme = _ref.theme,
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1348
|
+
theme = _ref$theme === void 0 ? {} : _ref$theme,
|
|
1349
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
1407
1350
|
return _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1408
1351
|
theme: Object.assign({}, defaultTheme, theme)
|
|
1409
1352
|
});
|
|
@@ -1415,8 +1358,8 @@ exports._extends = _extends;
|
|
|
1415
1358
|
exports._objectSpread2 = _objectSpread2;
|
|
1416
1359
|
exports._objectWithoutProperties = _objectWithoutProperties;
|
|
1417
1360
|
exports._slicedToArray = _slicedToArray;
|
|
1418
|
-
exports._taggedTemplateLiteral = _taggedTemplateLiteral;
|
|
1419
1361
|
exports._toConsumableArray = _toConsumableArray;
|
|
1420
1362
|
exports._typeof = _typeof;
|
|
1421
1363
|
exports.applyDefaultTheme = applyDefaultTheme;
|
|
1364
|
+
exports.reactIs = reactIs;
|
|
1422
1365
|
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;
|