@carbon/themes 11.53.0 → 11.54.0-rc.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 +177 -209
- package/lib/index.js +177 -209
- package/package.json +8 -8
- package/src/component-tokens/tag/tokens.js +0 -7
- package/umd/index.js +177 -209
package/es/index.js
CHANGED
|
@@ -112,47 +112,77 @@ function _objectSpread2(e) {
|
|
|
112
112
|
}
|
|
113
113
|
function _regeneratorRuntime() {
|
|
114
114
|
_regeneratorRuntime = function () {
|
|
115
|
-
return
|
|
115
|
+
return r;
|
|
116
116
|
};
|
|
117
117
|
var t,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
n =
|
|
121
|
-
o =
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
134
|
+
c({}, "");
|
|
138
135
|
} catch (t) {
|
|
139
|
-
|
|
140
|
-
return t[
|
|
136
|
+
c = function (t, r, e) {
|
|
137
|
+
return t[r] = e;
|
|
141
138
|
};
|
|
142
139
|
}
|
|
143
|
-
function
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
|
181
|
+
function s(t, r, e) {
|
|
152
182
|
try {
|
|
153
183
|
return {
|
|
154
184
|
type: "normal",
|
|
155
|
-
arg: t.call(
|
|
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
|
-
|
|
165
|
-
var
|
|
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
|
|
174
|
-
|
|
199
|
+
var l = {};
|
|
200
|
+
c(l, i, function () {
|
|
175
201
|
return this;
|
|
176
202
|
});
|
|
177
|
-
var
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
var
|
|
181
|
-
function
|
|
182
|
-
["next", "throw", "return"].forEach(function (
|
|
183
|
-
|
|
184
|
-
return this._invoke(
|
|
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,
|
|
189
|
-
function
|
|
190
|
-
var c =
|
|
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
|
|
193
|
-
|
|
194
|
-
return
|
|
195
|
-
|
|
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
|
-
|
|
198
|
-
}) :
|
|
199
|
-
|
|
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
|
|
227
|
+
return e("throw", t, a, u);
|
|
202
228
|
});
|
|
203
229
|
}
|
|
204
|
-
|
|
230
|
+
u(c.arg);
|
|
205
231
|
}
|
|
206
|
-
var
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
function
|
|
210
|
-
|
|
211
|
-
|
|
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
|
|
256
|
-
var n =
|
|
257
|
-
o =
|
|
258
|
-
if (o === t) return
|
|
259
|
-
var i =
|
|
260
|
-
if ("throw" === i.type) return
|
|
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
|
|
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
|
|
265
|
-
|
|
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
|
|
271
|
-
var e =
|
|
272
|
-
e.type = "normal",
|
|
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
|
|
280
|
-
if (
|
|
281
|
-
var
|
|
282
|
-
if (
|
|
283
|
-
if ("function" == typeof
|
|
284
|
-
if (!isNaN(
|
|
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
|
-
|
|
287
|
-
for (; ++o <
|
|
288
|
-
return
|
|
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
|
|
272
|
+
return a.next = a;
|
|
291
273
|
}
|
|
292
274
|
}
|
|
293
|
-
throw new TypeError(typeof
|
|
275
|
+
throw new TypeError(typeof r + " is not iterable");
|
|
294
276
|
}
|
|
295
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
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
|
-
},
|
|
286
|
+
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
311
287
|
return this;
|
|
312
|
-
}),
|
|
288
|
+
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
313
289
|
void 0 === i && (i = Promise);
|
|
314
|
-
var a = new AsyncIterator(
|
|
315
|
-
return
|
|
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
|
-
},
|
|
294
|
+
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
319
295
|
return this;
|
|
320
|
-
}),
|
|
296
|
+
}), c(v, "toString", function () {
|
|
321
297
|
return "[object Generator]";
|
|
322
|
-
}),
|
|
323
|
-
var
|
|
324
|
-
|
|
325
|
-
for (var n in
|
|
326
|
-
return
|
|
327
|
-
for (;
|
|
328
|
-
|
|
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
|
-
},
|
|
306
|
+
}, r.values = x, Context.prototype = {
|
|
334
307
|
constructor: Context,
|
|
335
|
-
reset: function (
|
|
336
|
-
if (this.prev =
|
|
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]
|
|
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 (
|
|
345
|
-
if (this.done) throw
|
|
346
|
-
var
|
|
347
|
-
function
|
|
348
|
-
|
|
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 =
|
|
323
|
+
for (var o = e.tryEntries.length - 1; o >= 0; --o) {
|
|
351
324
|
var i = this.tryEntries[o],
|
|
352
|
-
a = i
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
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,
|
|
370
|
-
for (var
|
|
371
|
-
var
|
|
372
|
-
if (
|
|
373
|
-
var
|
|
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
|
-
|
|
378
|
-
var
|
|
379
|
-
return
|
|
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,
|
|
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 &&
|
|
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
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
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
|
|
393
|
-
var
|
|
394
|
-
if (
|
|
395
|
-
var n =
|
|
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
|
-
|
|
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 (
|
|
373
|
+
delegateYield: function (r, e, n) {
|
|
406
374
|
return this.delegate = {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}, "next" === this.method && (this.arg = t),
|
|
375
|
+
i: x(r),
|
|
376
|
+
r: e,
|
|
377
|
+
n: n
|
|
378
|
+
}, "next" === this.method && (this.arg = t), f;
|
|
411
379
|
}
|
|
412
|
-
},
|
|
380
|
+
}, r;
|
|
413
381
|
}
|
|
414
382
|
function _toConsumableArray(r) {
|
|
415
383
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|