@carbon/themes 11.53.0 → 11.54.0

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/es/index.js CHANGED
@@ -112,47 +112,77 @@ function _objectSpread2(e) {
112
112
  }
113
113
  function _regeneratorRuntime() {
114
114
  _regeneratorRuntime = function () {
115
- return e;
115
+ return r;
116
116
  };
117
117
  var t,
118
- e = {},
119
- r = Object.prototype,
120
- n = r.hasOwnProperty,
121
- o = Object.defineProperty || function (t, e, r) {
122
- t[e] = r.value;
123
- },
124
- i = "function" == typeof Symbol ? Symbol : {},
125
- a = i.iterator || "@@iterator",
126
- c = i.asyncIterator || "@@asyncIterator",
127
- u = i.toStringTag || "@@toStringTag";
128
- function define(t, e, r) {
129
- return Object.defineProperty(t, e, {
130
- value: r,
131
- enumerable: !0,
132
- configurable: !0,
133
- writable: !0
134
- }), t[e];
118
+ r = {},
119
+ e = Object.prototype,
120
+ n = e.hasOwnProperty,
121
+ o = "function" == typeof Symbol ? Symbol : {},
122
+ i = o.iterator || "@@iterator",
123
+ a = o.asyncIterator || "@@asyncIterator",
124
+ u = o.toStringTag || "@@toStringTag";
125
+ function c(t, r, e, n) {
126
+ Object.defineProperty(t, r, {
127
+ value: e,
128
+ enumerable: !n,
129
+ configurable: !n,
130
+ writable: !n
131
+ });
135
132
  }
136
133
  try {
137
- define({}, "");
134
+ c({}, "");
138
135
  } catch (t) {
139
- define = function (t, e, r) {
140
- return t[e] = r;
136
+ c = function (t, r, e) {
137
+ return t[r] = e;
141
138
  };
142
139
  }
143
- function wrap(t, e, r, n) {
140
+ function h(r, e, n, o) {
144
141
  var i = e && e.prototype instanceof Generator ? e : Generator,
145
- a = Object.create(i.prototype),
146
- c = new Context(n || []);
147
- return o(a, "_invoke", {
148
- value: makeInvokeMethod(t, r, c)
149
- }), a;
142
+ a = Object.create(i.prototype);
143
+ return c(a, "_invoke", function (r, e, n) {
144
+ var o = 1;
145
+ return function (i, a) {
146
+ if (3 === o) throw Error("Generator is already running");
147
+ if (4 === o) {
148
+ if ("throw" === i) throw a;
149
+ return {
150
+ value: t,
151
+ done: !0
152
+ };
153
+ }
154
+ for (n.method = i, n.arg = a;;) {
155
+ var u = n.delegate;
156
+ if (u) {
157
+ var c = d(u, n);
158
+ if (c) {
159
+ if (c === f) continue;
160
+ return c;
161
+ }
162
+ }
163
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
164
+ if (1 === o) throw o = 4, n.arg;
165
+ n.dispatchException(n.arg);
166
+ } else "return" === n.method && n.abrupt("return", n.arg);
167
+ o = 3;
168
+ var h = s(r, e, n);
169
+ if ("normal" === h.type) {
170
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
171
+ return {
172
+ value: h.arg,
173
+ done: n.done
174
+ };
175
+ }
176
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
177
+ }
178
+ };
179
+ }(r, n, new Context(o || [])), !0), a;
150
180
  }
151
- function tryCatch(t, e, r) {
181
+ function s(t, r, e) {
152
182
  try {
153
183
  return {
154
184
  type: "normal",
155
- arg: t.call(e, r)
185
+ arg: t.call(r, e)
156
186
  };
157
187
  } catch (t) {
158
188
  return {
@@ -161,255 +191,193 @@ function _regeneratorRuntime() {
161
191
  };
162
192
  }
163
193
  }
164
- e.wrap = wrap;
165
- var h = "suspendedStart",
166
- l = "suspendedYield",
167
- f = "executing",
168
- s = "completed",
169
- y = {};
194
+ r.wrap = h;
195
+ var f = {};
170
196
  function Generator() {}
171
197
  function GeneratorFunction() {}
172
198
  function GeneratorFunctionPrototype() {}
173
- var p = {};
174
- define(p, a, function () {
199
+ var l = {};
200
+ c(l, i, function () {
175
201
  return this;
176
202
  });
177
- var d = Object.getPrototypeOf,
178
- v = d && d(d(values([])));
179
- v && v !== r && n.call(v, a) && (p = v);
180
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
181
- function defineIteratorMethods(t) {
182
- ["next", "throw", "return"].forEach(function (e) {
183
- define(t, e, function (t) {
184
- return this._invoke(e, t);
203
+ var p = Object.getPrototypeOf,
204
+ y = p && p(p(x([])));
205
+ y && y !== e && n.call(y, i) && (l = y);
206
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
207
+ function g(t) {
208
+ ["next", "throw", "return"].forEach(function (r) {
209
+ c(t, r, function (t) {
210
+ return this._invoke(r, t);
185
211
  });
186
212
  });
187
213
  }
188
- function AsyncIterator(t, e) {
189
- function invoke(r, o, i, a) {
190
- var c = tryCatch(t[r], t, o);
214
+ function AsyncIterator(t, r) {
215
+ function e(o, i, a, u) {
216
+ var c = s(t[o], t, i);
191
217
  if ("throw" !== c.type) {
192
- var u = c.arg,
193
- h = u.value;
194
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
195
- invoke("next", t, i, a);
218
+ var h = c.arg,
219
+ f = h.value;
220
+ return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
221
+ e("next", t, a, u);
196
222
  }, function (t) {
197
- invoke("throw", t, i, a);
198
- }) : e.resolve(h).then(function (t) {
199
- u.value = t, i(u);
223
+ e("throw", t, a, u);
224
+ }) : r.resolve(f).then(function (t) {
225
+ h.value = t, a(h);
200
226
  }, function (t) {
201
- return invoke("throw", t, i, a);
227
+ return e("throw", t, a, u);
202
228
  });
203
229
  }
204
- a(c.arg);
230
+ u(c.arg);
205
231
  }
206
- var r;
207
- o(this, "_invoke", {
208
- value: function (t, n) {
209
- function callInvokeWithMethodAndArg() {
210
- return new e(function (e, r) {
211
- invoke(t, n, e, r);
212
- });
213
- }
214
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
215
- }
216
- });
217
- }
218
- function makeInvokeMethod(e, r, n) {
219
- var o = h;
220
- return function (i, a) {
221
- if (o === f) throw Error("Generator is already running");
222
- if (o === s) {
223
- if ("throw" === i) throw a;
224
- return {
225
- value: t,
226
- done: !0
227
- };
228
- }
229
- for (n.method = i, n.arg = a;;) {
230
- var c = n.delegate;
231
- if (c) {
232
- var u = maybeInvokeDelegate(c, n);
233
- if (u) {
234
- if (u === y) continue;
235
- return u;
236
- }
237
- }
238
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
239
- if (o === h) throw o = s, n.arg;
240
- n.dispatchException(n.arg);
241
- } else "return" === n.method && n.abrupt("return", n.arg);
242
- o = f;
243
- var p = tryCatch(e, r, n);
244
- if ("normal" === p.type) {
245
- if (o = n.done ? s : l, p.arg === y) continue;
246
- return {
247
- value: p.arg,
248
- done: n.done
249
- };
250
- }
251
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
232
+ var o;
233
+ c(this, "_invoke", function (t, n) {
234
+ function i() {
235
+ return new r(function (r, o) {
236
+ e(t, n, r, o);
237
+ });
252
238
  }
253
- };
239
+ return o = o ? o.then(i, i) : i();
240
+ }, !0);
254
241
  }
255
- function maybeInvokeDelegate(e, r) {
256
- var n = r.method,
257
- o = e.iterator[n];
258
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
259
- var i = tryCatch(o, e.iterator, r.arg);
260
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
242
+ function d(r, e) {
243
+ var n = e.method,
244
+ o = r.i[n];
245
+ if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
246
+ var i = s(o, r.i, e.arg);
247
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
261
248
  var a = i.arg;
262
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
249
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
263
250
  }
264
- function pushTryEntry(t) {
265
- var e = {
266
- tryLoc: t[0]
267
- };
268
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
251
+ function w(t) {
252
+ this.tryEntries.push(t);
269
253
  }
270
- function resetTryEntry(t) {
271
- var e = t.completion || {};
272
- e.type = "normal", delete e.arg, t.completion = e;
254
+ function m(r) {
255
+ var e = r[4] || {};
256
+ e.type = "normal", e.arg = t, r[4] = e;
273
257
  }
274
258
  function Context(t) {
275
- this.tryEntries = [{
276
- tryLoc: "root"
277
- }], t.forEach(pushTryEntry, this), this.reset(!0);
259
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
278
260
  }
279
- function values(e) {
280
- if (e || "" === e) {
281
- var r = e[a];
282
- if (r) return r.call(e);
283
- if ("function" == typeof e.next) return e;
284
- if (!isNaN(e.length)) {
261
+ function x(r) {
262
+ if (null != r) {
263
+ var e = r[i];
264
+ if (e) return e.call(r);
265
+ if ("function" == typeof r.next) return r;
266
+ if (!isNaN(r.length)) {
285
267
  var o = -1,
286
- i = function next() {
287
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
288
- return next.value = t, next.done = !0, next;
268
+ a = function e() {
269
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
270
+ return e.value = t, e.done = !0, e;
289
271
  };
290
- return i.next = i;
272
+ return a.next = a;
291
273
  }
292
274
  }
293
- throw new TypeError(typeof e + " is not iterable");
275
+ throw new TypeError(typeof r + " is not iterable");
294
276
  }
295
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
296
- value: GeneratorFunctionPrototype,
297
- configurable: !0
298
- }), o(GeneratorFunctionPrototype, "constructor", {
299
- value: GeneratorFunction,
300
- configurable: !0
301
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
302
- var e = "function" == typeof t && t.constructor;
303
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
304
- }, e.mark = function (t) {
305
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
306
- }, e.awrap = function (t) {
277
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) {
278
+ var r = "function" == typeof t && t.constructor;
279
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
280
+ }, r.mark = function (t) {
281
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
282
+ }, r.awrap = function (t) {
307
283
  return {
308
284
  __await: t
309
285
  };
310
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
286
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
311
287
  return this;
312
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
288
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
313
289
  void 0 === i && (i = Promise);
314
- var a = new AsyncIterator(wrap(t, r, n, o), i);
315
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
290
+ var a = new AsyncIterator(h(t, e, n, o), i);
291
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
316
292
  return t.done ? t.value : a.next();
317
293
  });
318
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
294
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
319
295
  return this;
320
- }), define(g, "toString", function () {
296
+ }), c(v, "toString", function () {
321
297
  return "[object Generator]";
322
- }), e.keys = function (t) {
323
- var e = Object(t),
324
- r = [];
325
- for (var n in e) r.push(n);
326
- return r.reverse(), function next() {
327
- for (; r.length;) {
328
- var t = r.pop();
329
- if (t in e) return next.value = t, next.done = !1, next;
330
- }
331
- return next.done = !0, next;
298
+ }), r.keys = function (t) {
299
+ var r = Object(t),
300
+ e = [];
301
+ for (var n in r) e.unshift(n);
302
+ return function t() {
303
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
304
+ return t.done = !0, t;
332
305
  };
333
- }, e.values = values, Context.prototype = {
306
+ }, r.values = x, Context.prototype = {
334
307
  constructor: Context,
335
- reset: function (e) {
336
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
308
+ reset: function (r) {
309
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
337
310
  },
338
311
  stop: function () {
339
312
  this.done = !0;
340
- var t = this.tryEntries[0].completion;
313
+ var t = this.tryEntries[0][4];
341
314
  if ("throw" === t.type) throw t.arg;
342
315
  return this.rval;
343
316
  },
344
- dispatchException: function (e) {
345
- if (this.done) throw e;
346
- var r = this;
347
- function handle(n, o) {
348
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
317
+ dispatchException: function (r) {
318
+ if (this.done) throw r;
319
+ var e = this;
320
+ function n(t) {
321
+ a.type = "throw", a.arg = r, e.next = t;
349
322
  }
350
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
323
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
351
324
  var i = this.tryEntries[o],
352
- a = i.completion;
353
- if ("root" === i.tryLoc) return handle("end");
354
- if (i.tryLoc <= this.prev) {
355
- var c = n.call(i, "catchLoc"),
356
- u = n.call(i, "finallyLoc");
357
- if (c && u) {
358
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
359
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
360
- } else if (c) {
361
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
362
- } else {
363
- if (!u) throw Error("try statement without catch or finally");
364
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
365
- }
325
+ a = i[4],
326
+ u = this.prev,
327
+ c = i[1],
328
+ h = i[2];
329
+ if (-1 === i[0]) return n("end"), !1;
330
+ if (!c && !h) throw Error("try statement without catch or finally");
331
+ if (null != i[0] && i[0] <= u) {
332
+ if (u < c) return this.method = "next", this.arg = t, n(c), !0;
333
+ if (u < h) return n(h), !1;
366
334
  }
367
335
  }
368
336
  },
369
- abrupt: function (t, e) {
370
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
371
- var o = this.tryEntries[r];
372
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
373
- var i = o;
337
+ abrupt: function (t, r) {
338
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
339
+ var n = this.tryEntries[e];
340
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
341
+ var o = n;
374
342
  break;
375
343
  }
376
344
  }
377
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
378
- var a = i ? i.completion : {};
379
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
345
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
346
+ var i = o ? o[4] : {};
347
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
380
348
  },
381
- complete: function (t, e) {
349
+ complete: function (t, r) {
382
350
  if ("throw" === t.type) throw t.arg;
383
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
351
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
384
352
  },
385
353
  finish: function (t) {
386
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
387
- var r = this.tryEntries[e];
388
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
354
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
355
+ var e = this.tryEntries[r];
356
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
389
357
  }
390
358
  },
391
359
  catch: function (t) {
392
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
393
- var r = this.tryEntries[e];
394
- if (r.tryLoc === t) {
395
- var n = r.completion;
360
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
361
+ var e = this.tryEntries[r];
362
+ if (e[0] === t) {
363
+ var n = e[4];
396
364
  if ("throw" === n.type) {
397
365
  var o = n.arg;
398
- resetTryEntry(r);
366
+ m(e);
399
367
  }
400
368
  return o;
401
369
  }
402
370
  }
403
371
  throw Error("illegal catch attempt");
404
372
  },
405
- delegateYield: function (e, r, n) {
373
+ delegateYield: function (r, e, n) {
406
374
  return this.delegate = {
407
- iterator: values(e),
408
- resultName: r,
409
- nextLoc: n
410
- }, "next" === this.method && (this.arg = t), y;
375
+ i: x(r),
376
+ r: e,
377
+ n: n
378
+ }, "next" === this.method && (this.arg = t), f;
411
379
  }
412
- }, e;
380
+ }, r;
413
381
  }
414
382
  function _toConsumableArray(r) {
415
383
  return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();