@carbon/themes 11.18.0 → 11.19.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 +463 -378
- package/lib/index.js +489 -376
- package/package.json +9 -9
- package/src/g10.js +9 -0
- package/src/g100.js +9 -0
- package/src/g90.js +9 -0
- package/src/v10/g10.js +9 -0
- package/src/v10/g100.js +9 -0
- package/src/v10/g90.js +9 -0
- package/src/v10/white.js +9 -0
- package/src/white.js +9 -0
- package/umd/index.js +489 -376
package/umd/index.js
CHANGED
|
@@ -10,17 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
function ownKeys(object, enumerableOnly) {
|
|
12
12
|
var keys = Object.keys(object);
|
|
13
|
-
|
|
14
13
|
if (Object.getOwnPropertySymbols) {
|
|
15
14
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
16
15
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
17
16
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
18
17
|
})), keys.push.apply(keys, symbols);
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
return keys;
|
|
22
20
|
}
|
|
23
|
-
|
|
24
21
|
function _objectSpread2(target) {
|
|
25
22
|
for (var i = 1; i < arguments.length; i++) {
|
|
26
23
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
@@ -30,25 +27,22 @@
|
|
|
30
27
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
31
28
|
});
|
|
32
29
|
}
|
|
33
|
-
|
|
34
30
|
return target;
|
|
35
31
|
}
|
|
36
|
-
|
|
37
32
|
function _regeneratorRuntime() {
|
|
38
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
39
|
-
|
|
40
33
|
_regeneratorRuntime = function () {
|
|
41
34
|
return exports;
|
|
42
35
|
};
|
|
43
|
-
|
|
44
36
|
var exports = {},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
Op = Object.prototype,
|
|
38
|
+
hasOwn = Op.hasOwnProperty,
|
|
39
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
40
|
+
obj[key] = desc.value;
|
|
41
|
+
},
|
|
42
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
43
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
44
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
45
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
52
46
|
function define(obj, key, value) {
|
|
53
47
|
return Object.defineProperty(obj, key, {
|
|
54
48
|
value: value,
|
|
@@ -57,7 +51,6 @@
|
|
|
57
51
|
writable: !0
|
|
58
52
|
}), obj[key];
|
|
59
53
|
}
|
|
60
|
-
|
|
61
54
|
try {
|
|
62
55
|
define({}, "");
|
|
63
56
|
} catch (err) {
|
|
@@ -65,54 +58,14 @@
|
|
|
65
58
|
return obj[key] = value;
|
|
66
59
|
};
|
|
67
60
|
}
|
|
68
|
-
|
|
69
61
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
70
62
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return generator
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
77
|
-
|
|
78
|
-
if ("completed" === state) {
|
|
79
|
-
if ("throw" === method) throw arg;
|
|
80
|
-
return doneResult();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
for (context.method = method, context.arg = arg;;) {
|
|
84
|
-
var delegate = context.delegate;
|
|
85
|
-
|
|
86
|
-
if (delegate) {
|
|
87
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
88
|
-
|
|
89
|
-
if (delegateResult) {
|
|
90
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
91
|
-
return delegateResult;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
96
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
97
|
-
context.dispatchException(context.arg);
|
|
98
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
99
|
-
state = "executing";
|
|
100
|
-
var record = tryCatch(innerFn, self, context);
|
|
101
|
-
|
|
102
|
-
if ("normal" === record.type) {
|
|
103
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
104
|
-
return {
|
|
105
|
-
value: record.arg,
|
|
106
|
-
done: context.done
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
}(innerFn, self, context), generator;
|
|
63
|
+
generator = Object.create(protoGenerator.prototype),
|
|
64
|
+
context = new Context(tryLocsList || []);
|
|
65
|
+
return defineProperty(generator, "_invoke", {
|
|
66
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
67
|
+
}), generator;
|
|
114
68
|
}
|
|
115
|
-
|
|
116
69
|
function tryCatch(fn, obj, arg) {
|
|
117
70
|
try {
|
|
118
71
|
return {
|
|
@@ -126,25 +79,19 @@
|
|
|
126
79
|
};
|
|
127
80
|
}
|
|
128
81
|
}
|
|
129
|
-
|
|
130
82
|
exports.wrap = wrap;
|
|
131
83
|
var ContinueSentinel = {};
|
|
132
|
-
|
|
133
84
|
function Generator() {}
|
|
134
|
-
|
|
135
85
|
function GeneratorFunction() {}
|
|
136
|
-
|
|
137
86
|
function GeneratorFunctionPrototype() {}
|
|
138
|
-
|
|
139
87
|
var IteratorPrototype = {};
|
|
140
88
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
141
89
|
return this;
|
|
142
90
|
});
|
|
143
91
|
var getProto = Object.getPrototypeOf,
|
|
144
|
-
|
|
92
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
145
93
|
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
146
94
|
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
147
|
-
|
|
148
95
|
function defineIteratorMethods(prototype) {
|
|
149
96
|
["next", "throw", "return"].forEach(function (method) {
|
|
150
97
|
define(prototype, method, function (arg) {
|
|
@@ -152,14 +99,12 @@
|
|
|
152
99
|
});
|
|
153
100
|
});
|
|
154
101
|
}
|
|
155
|
-
|
|
156
102
|
function AsyncIterator(generator, PromiseImpl) {
|
|
157
103
|
function invoke(method, arg, resolve, reject) {
|
|
158
104
|
var record = tryCatch(generator[method], generator, arg);
|
|
159
|
-
|
|
160
105
|
if ("throw" !== record.type) {
|
|
161
106
|
var result = record.arg,
|
|
162
|
-
|
|
107
|
+
value = result.value;
|
|
163
108
|
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
164
109
|
invoke("next", value, resolve, reject);
|
|
165
110
|
}, function (err) {
|
|
@@ -170,90 +115,109 @@
|
|
|
170
115
|
return invoke("throw", error, resolve, reject);
|
|
171
116
|
});
|
|
172
117
|
}
|
|
173
|
-
|
|
174
118
|
reject(record.arg);
|
|
175
119
|
}
|
|
176
|
-
|
|
177
120
|
var previousPromise;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
121
|
+
defineProperty(this, "_invoke", {
|
|
122
|
+
value: function (method, arg) {
|
|
123
|
+
function callInvokeWithMethodAndArg() {
|
|
124
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
125
|
+
invoke(method, arg, resolve, reject);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
133
|
+
var state = "suspendedStart";
|
|
134
|
+
return function (method, arg) {
|
|
135
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
136
|
+
if ("completed" === state) {
|
|
137
|
+
if ("throw" === method) throw arg;
|
|
138
|
+
return doneResult();
|
|
139
|
+
}
|
|
140
|
+
for (context.method = method, context.arg = arg;;) {
|
|
141
|
+
var delegate = context.delegate;
|
|
142
|
+
if (delegate) {
|
|
143
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
144
|
+
if (delegateResult) {
|
|
145
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
146
|
+
return delegateResult;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
150
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
151
|
+
context.dispatchException(context.arg);
|
|
152
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
153
|
+
state = "executing";
|
|
154
|
+
var record = tryCatch(innerFn, self, context);
|
|
155
|
+
if ("normal" === record.type) {
|
|
156
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
157
|
+
return {
|
|
158
|
+
value: record.arg,
|
|
159
|
+
done: context.done
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
184
163
|
}
|
|
185
|
-
|
|
186
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
187
164
|
};
|
|
188
165
|
}
|
|
189
|
-
|
|
190
166
|
function maybeInvokeDelegate(delegate, context) {
|
|
191
|
-
var
|
|
192
|
-
|
|
193
|
-
if (undefined === method)
|
|
194
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
195
|
-
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
196
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
return ContinueSentinel;
|
|
200
|
-
}
|
|
201
|
-
|
|
167
|
+
var methodName = context.method,
|
|
168
|
+
method = delegate.iterator[methodName];
|
|
169
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
202
170
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
203
171
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
204
172
|
var info = record.arg;
|
|
205
173
|
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
206
174
|
}
|
|
207
|
-
|
|
208
175
|
function pushTryEntry(locs) {
|
|
209
176
|
var entry = {
|
|
210
177
|
tryLoc: locs[0]
|
|
211
178
|
};
|
|
212
179
|
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
213
180
|
}
|
|
214
|
-
|
|
215
181
|
function resetTryEntry(entry) {
|
|
216
182
|
var record = entry.completion || {};
|
|
217
183
|
record.type = "normal", delete record.arg, entry.completion = record;
|
|
218
184
|
}
|
|
219
|
-
|
|
220
185
|
function Context(tryLocsList) {
|
|
221
186
|
this.tryEntries = [{
|
|
222
187
|
tryLoc: "root"
|
|
223
188
|
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
224
189
|
}
|
|
225
|
-
|
|
226
190
|
function values(iterable) {
|
|
227
191
|
if (iterable) {
|
|
228
192
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
229
193
|
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
230
194
|
if ("function" == typeof iterable.next) return iterable;
|
|
231
|
-
|
|
232
195
|
if (!isNaN(iterable.length)) {
|
|
233
196
|
var i = -1,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
};
|
|
239
|
-
|
|
197
|
+
next = function next() {
|
|
198
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
199
|
+
return next.value = undefined, next.done = !0, next;
|
|
200
|
+
};
|
|
240
201
|
return next.next = next;
|
|
241
202
|
}
|
|
242
203
|
}
|
|
243
|
-
|
|
244
204
|
return {
|
|
245
205
|
next: doneResult
|
|
246
206
|
};
|
|
247
207
|
}
|
|
248
|
-
|
|
249
208
|
function doneResult() {
|
|
250
209
|
return {
|
|
251
210
|
value: undefined,
|
|
252
211
|
done: !0
|
|
253
212
|
};
|
|
254
213
|
}
|
|
255
|
-
|
|
256
|
-
|
|
214
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
215
|
+
value: GeneratorFunctionPrototype,
|
|
216
|
+
configurable: !0
|
|
217
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
218
|
+
value: GeneratorFunction,
|
|
219
|
+
configurable: !0
|
|
220
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
257
221
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
258
222
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
259
223
|
}, exports.mark = function (genFun) {
|
|
@@ -274,17 +238,15 @@
|
|
|
274
238
|
return this;
|
|
275
239
|
}), define(Gp, "toString", function () {
|
|
276
240
|
return "[object Generator]";
|
|
277
|
-
}), exports.keys = function (
|
|
278
|
-
var
|
|
279
|
-
|
|
241
|
+
}), exports.keys = function (val) {
|
|
242
|
+
var object = Object(val),
|
|
243
|
+
keys = [];
|
|
280
244
|
for (var key in object) keys.push(key);
|
|
281
|
-
|
|
282
245
|
return keys.reverse(), function next() {
|
|
283
246
|
for (; keys.length;) {
|
|
284
247
|
var key = keys.pop();
|
|
285
248
|
if (key in object) return next.value = key, next.done = !1, next;
|
|
286
249
|
}
|
|
287
|
-
|
|
288
250
|
return next.done = !0, next;
|
|
289
251
|
};
|
|
290
252
|
}, exports.values = values, Context.prototype = {
|
|
@@ -301,20 +263,16 @@
|
|
|
301
263
|
dispatchException: function (exception) {
|
|
302
264
|
if (this.done) throw exception;
|
|
303
265
|
var context = this;
|
|
304
|
-
|
|
305
266
|
function handle(loc, caught) {
|
|
306
267
|
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
307
268
|
}
|
|
308
|
-
|
|
309
269
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
310
270
|
var entry = this.tryEntries[i],
|
|
311
|
-
|
|
271
|
+
record = entry.completion;
|
|
312
272
|
if ("root" === entry.tryLoc) return handle("end");
|
|
313
|
-
|
|
314
273
|
if (entry.tryLoc <= this.prev) {
|
|
315
274
|
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
316
|
-
|
|
317
|
-
|
|
275
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
318
276
|
if (hasCatch && hasFinally) {
|
|
319
277
|
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
320
278
|
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
@@ -330,13 +288,11 @@
|
|
|
330
288
|
abrupt: function (type, arg) {
|
|
331
289
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
332
290
|
var entry = this.tryEntries[i];
|
|
333
|
-
|
|
334
291
|
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
335
292
|
var finallyEntry = entry;
|
|
336
293
|
break;
|
|
337
294
|
}
|
|
338
295
|
}
|
|
339
|
-
|
|
340
296
|
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
341
297
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
342
298
|
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
@@ -354,19 +310,15 @@
|
|
|
354
310
|
catch: function (tryLoc) {
|
|
355
311
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
356
312
|
var entry = this.tryEntries[i];
|
|
357
|
-
|
|
358
313
|
if (entry.tryLoc === tryLoc) {
|
|
359
314
|
var record = entry.completion;
|
|
360
|
-
|
|
361
315
|
if ("throw" === record.type) {
|
|
362
316
|
var thrown = record.arg;
|
|
363
317
|
resetTryEntry(entry);
|
|
364
318
|
}
|
|
365
|
-
|
|
366
319
|
return thrown;
|
|
367
320
|
}
|
|
368
321
|
}
|
|
369
|
-
|
|
370
322
|
throw new Error("illegal catch attempt");
|
|
371
323
|
},
|
|
372
324
|
delegateYield: function (iterable, resultName, nextLoc) {
|
|
@@ -378,23 +330,20 @@
|
|
|
378
330
|
}
|
|
379
331
|
}, exports;
|
|
380
332
|
}
|
|
381
|
-
|
|
382
333
|
function _classCallCheck(instance, Constructor) {
|
|
383
334
|
if (!(instance instanceof Constructor)) {
|
|
384
335
|
throw new TypeError("Cannot call a class as a function");
|
|
385
336
|
}
|
|
386
337
|
}
|
|
387
|
-
|
|
388
338
|
function _defineProperties(target, props) {
|
|
389
339
|
for (var i = 0; i < props.length; i++) {
|
|
390
340
|
var descriptor = props[i];
|
|
391
341
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
392
342
|
descriptor.configurable = true;
|
|
393
343
|
if ("value" in descriptor) descriptor.writable = true;
|
|
394
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
344
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
395
345
|
}
|
|
396
346
|
}
|
|
397
|
-
|
|
398
347
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
399
348
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
400
349
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
@@ -403,8 +352,8 @@
|
|
|
403
352
|
});
|
|
404
353
|
return Constructor;
|
|
405
354
|
}
|
|
406
|
-
|
|
407
355
|
function _defineProperty(obj, key, value) {
|
|
356
|
+
key = _toPropertyKey(key);
|
|
408
357
|
if (key in obj) {
|
|
409
358
|
Object.defineProperty(obj, key, {
|
|
410
359
|
value: value,
|
|
@@ -415,22 +364,17 @@
|
|
|
415
364
|
} else {
|
|
416
365
|
obj[key] = value;
|
|
417
366
|
}
|
|
418
|
-
|
|
419
367
|
return obj;
|
|
420
368
|
}
|
|
421
|
-
|
|
422
369
|
function _toConsumableArray(arr) {
|
|
423
370
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
424
371
|
}
|
|
425
|
-
|
|
426
372
|
function _arrayWithoutHoles(arr) {
|
|
427
373
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
428
374
|
}
|
|
429
|
-
|
|
430
375
|
function _iterableToArray(iter) {
|
|
431
376
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
432
377
|
}
|
|
433
|
-
|
|
434
378
|
function _unsupportedIterableToArray(o, minLen) {
|
|
435
379
|
if (!o) return;
|
|
436
380
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -439,29 +383,21 @@
|
|
|
439
383
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
440
384
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
441
385
|
}
|
|
442
|
-
|
|
443
386
|
function _arrayLikeToArray(arr, len) {
|
|
444
387
|
if (len == null || len > arr.length) len = arr.length;
|
|
445
|
-
|
|
446
388
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
447
|
-
|
|
448
389
|
return arr2;
|
|
449
390
|
}
|
|
450
|
-
|
|
451
391
|
function _nonIterableSpread() {
|
|
452
392
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
453
393
|
}
|
|
454
|
-
|
|
455
394
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
456
395
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
457
|
-
|
|
458
396
|
if (!it) {
|
|
459
397
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
460
398
|
if (it) o = it;
|
|
461
399
|
var i = 0;
|
|
462
|
-
|
|
463
400
|
var F = function () {};
|
|
464
|
-
|
|
465
401
|
return {
|
|
466
402
|
s: F,
|
|
467
403
|
n: function () {
|
|
@@ -479,13 +415,11 @@
|
|
|
479
415
|
f: F
|
|
480
416
|
};
|
|
481
417
|
}
|
|
482
|
-
|
|
483
418
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
484
419
|
}
|
|
485
|
-
|
|
486
420
|
var normalCompletion = true,
|
|
487
|
-
|
|
488
|
-
|
|
421
|
+
didErr = false,
|
|
422
|
+
err;
|
|
489
423
|
return {
|
|
490
424
|
s: function () {
|
|
491
425
|
it = it.call(o);
|
|
@@ -508,6 +442,20 @@
|
|
|
508
442
|
}
|
|
509
443
|
};
|
|
510
444
|
}
|
|
445
|
+
function _toPrimitive(input, hint) {
|
|
446
|
+
if (typeof input !== "object" || input === null) return input;
|
|
447
|
+
var prim = input[Symbol.toPrimitive];
|
|
448
|
+
if (prim !== undefined) {
|
|
449
|
+
var res = prim.call(input, hint || "default");
|
|
450
|
+
if (typeof res !== "object") return res;
|
|
451
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
452
|
+
}
|
|
453
|
+
return (hint === "string" ? String : Number)(input);
|
|
454
|
+
}
|
|
455
|
+
function _toPropertyKey(arg) {
|
|
456
|
+
var key = _toPrimitive(arg, "string");
|
|
457
|
+
return typeof key === "symbol" ? key : String(key);
|
|
458
|
+
}
|
|
511
459
|
|
|
512
460
|
/**
|
|
513
461
|
* Adjust a given token's lightness by a specified percentage
|
|
@@ -518,13 +466,13 @@
|
|
|
518
466
|
* @param {integer} shift The number of percentage points (positive or negative) by which to shift the lightness of a token.
|
|
519
467
|
* @returns {string}
|
|
520
468
|
*/
|
|
521
|
-
|
|
522
469
|
function adjustLightness(token, shift) {
|
|
523
470
|
var original = Color__default["default"](token).hsl().object();
|
|
524
471
|
return Color__default["default"](_objectSpread2(_objectSpread2({}, original), {}, {
|
|
525
472
|
l: original.l += shift
|
|
526
473
|
})).round().hex().toLowerCase();
|
|
527
474
|
}
|
|
475
|
+
|
|
528
476
|
/**
|
|
529
477
|
* Adjust a given token's alpha by a specified amount
|
|
530
478
|
* Example: token = rgba(10, 10, 10, 1.0);
|
|
@@ -533,47 +481,44 @@
|
|
|
533
481
|
* @param {float} alpha
|
|
534
482
|
* @returns {string}
|
|
535
483
|
*/
|
|
536
|
-
|
|
537
484
|
function adjustAlpha(token, alpha) {
|
|
538
485
|
return Color__default["default"](token).rgb().alpha(alpha).string();
|
|
539
486
|
}
|
|
540
487
|
var numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
488
|
+
|
|
541
489
|
/**
|
|
542
490
|
* Format a given token into the format expected in CSS/SCSS-based projects.
|
|
543
491
|
* @param {string} token
|
|
544
492
|
* @returns {string}
|
|
545
493
|
*/
|
|
546
|
-
|
|
547
494
|
function formatTokenName(token) {
|
|
548
495
|
var string = '';
|
|
549
|
-
|
|
550
496
|
for (var i = 0; i < token.length; i++) {
|
|
551
497
|
// If we run into a number, we hit the scale step at the end of a token name
|
|
552
498
|
// and can safely truncate the rest of the token
|
|
553
499
|
if (numbers.indexOf(token[i]) !== -1) {
|
|
554
500
|
string += '-' + token.slice(i);
|
|
555
501
|
break;
|
|
556
|
-
}
|
|
557
|
-
// between words
|
|
558
|
-
|
|
502
|
+
}
|
|
559
503
|
|
|
504
|
+
// When encountering an uppercase name, we will want to start adding `-`
|
|
505
|
+
// between words
|
|
560
506
|
if (token[i] === token[i].toUpperCase()) {
|
|
561
507
|
// Check backwards to see if previous letter was also capitalized, if so
|
|
562
508
|
// we are in a special case like UI where each piece should be connected
|
|
563
509
|
if (token[i - 1] && token[i - 1] === token[i - 1].toUpperCase()) {
|
|
564
510
|
string += token[i].toLowerCase();
|
|
565
511
|
continue;
|
|
566
|
-
}
|
|
567
|
-
|
|
512
|
+
}
|
|
568
513
|
|
|
514
|
+
// Otherwise, just concatenate this new part on to the existing string
|
|
569
515
|
string += '-' + token[i].toLowerCase();
|
|
570
516
|
continue;
|
|
571
|
-
}
|
|
572
|
-
|
|
517
|
+
}
|
|
573
518
|
|
|
519
|
+
// By default, we add the current character to the output string
|
|
574
520
|
string += token[i];
|
|
575
521
|
}
|
|
576
|
-
|
|
577
522
|
return string;
|
|
578
523
|
}
|
|
579
524
|
|
|
@@ -584,6 +529,7 @@
|
|
|
584
529
|
* LICENSE file in the root directory of this source tree.
|
|
585
530
|
*/
|
|
586
531
|
|
|
532
|
+
// Background
|
|
587
533
|
var background$8 = colors$1.white;
|
|
588
534
|
var backgroundInverse$7 = colors$1.gray80;
|
|
589
535
|
var backgroundBrand$7 = colors$1.blue60;
|
|
@@ -591,78 +537,98 @@
|
|
|
591
537
|
var backgroundHover$7 = adjustAlpha(colors$1.gray50, 0.12);
|
|
592
538
|
var backgroundInverseHover$7 = colors$1.gray80Hover;
|
|
593
539
|
var backgroundSelected$7 = adjustAlpha(colors$1.gray50, 0.2);
|
|
594
|
-
var backgroundSelectedHover$7 = adjustAlpha(colors$1.gray50, 0.32);
|
|
595
|
-
// layer-01
|
|
540
|
+
var backgroundSelectedHover$7 = adjustAlpha(colors$1.gray50, 0.32);
|
|
596
541
|
|
|
542
|
+
// Layer
|
|
543
|
+
// layer-01
|
|
597
544
|
var layer01$3 = colors$1.gray10;
|
|
598
545
|
var layerActive01$3 = colors$1.gray30;
|
|
599
546
|
var layerHover01$3 = colors$1.gray10Hover;
|
|
600
547
|
var layerSelected01$3 = colors$1.gray20;
|
|
601
|
-
var layerSelectedHover01$3 = colors$1.gray20Hover;
|
|
548
|
+
var layerSelectedHover01$3 = colors$1.gray20Hover;
|
|
602
549
|
|
|
550
|
+
// layer-02
|
|
603
551
|
var layer02$3 = colors$1.white;
|
|
604
552
|
var layerActive02$3 = colors$1.gray30;
|
|
605
553
|
var layerHover02$3 = colors$1.whiteHover;
|
|
606
554
|
var layerSelected02$3 = colors$1.gray20;
|
|
607
|
-
var layerSelectedHover02$3 = colors$1.gray20Hover;
|
|
555
|
+
var layerSelectedHover02$3 = colors$1.gray20Hover;
|
|
608
556
|
|
|
557
|
+
// layer-03
|
|
609
558
|
var layer03$3 = colors$1.gray10;
|
|
610
559
|
var layerActive03$3 = colors$1.gray30;
|
|
611
560
|
var layerHover03$3 = colors$1.gray10Hover;
|
|
612
561
|
var layerSelected03$3 = colors$1.gray20;
|
|
613
|
-
var layerSelectedHover03$3 = colors$1.gray20Hover;
|
|
562
|
+
var layerSelectedHover03$3 = colors$1.gray20Hover;
|
|
614
563
|
|
|
564
|
+
// layer
|
|
615
565
|
var layerSelectedInverse$7 = colors$1.gray100;
|
|
616
|
-
var layerSelectedDisabled$7 = colors$1.gray50;
|
|
566
|
+
var layerSelectedDisabled$7 = colors$1.gray50;
|
|
617
567
|
|
|
568
|
+
// layer-accent-01
|
|
618
569
|
var layerAccent01$3 = colors$1.gray20;
|
|
619
570
|
var layerAccentActive01$3 = colors$1.gray40;
|
|
620
|
-
var layerAccentHover01$3 = colors$1.gray20Hover;
|
|
571
|
+
var layerAccentHover01$3 = colors$1.gray20Hover;
|
|
621
572
|
|
|
573
|
+
// layer-accent-02
|
|
622
574
|
var layerAccent02$3 = colors$1.gray20;
|
|
623
575
|
var layerAccentActive02$3 = colors$1.gray40;
|
|
624
|
-
var layerAccentHover02$3 = colors$1.gray20Hover;
|
|
576
|
+
var layerAccentHover02$3 = colors$1.gray20Hover;
|
|
625
577
|
|
|
578
|
+
// layer-accent-03
|
|
626
579
|
var layerAccent03$3 = colors$1.gray20;
|
|
627
580
|
var layerAccentActive03$3 = colors$1.gray40;
|
|
628
|
-
var layerAccentHover03$3 = colors$1.gray20Hover;
|
|
629
|
-
// field-01
|
|
581
|
+
var layerAccentHover03$3 = colors$1.gray20Hover;
|
|
630
582
|
|
|
583
|
+
// Field
|
|
584
|
+
// field-01
|
|
631
585
|
var field01$7 = colors$1.gray10;
|
|
632
|
-
var fieldHover01$3 = colors$1.gray10Hover;
|
|
586
|
+
var fieldHover01$3 = colors$1.gray10Hover;
|
|
633
587
|
|
|
588
|
+
// field-02
|
|
634
589
|
var field02$7 = colors$1.white;
|
|
635
|
-
var fieldHover02$3 = colors$1.whiteHover;
|
|
590
|
+
var fieldHover02$3 = colors$1.whiteHover;
|
|
636
591
|
|
|
592
|
+
// field-03
|
|
637
593
|
var field03$3 = colors$1.gray10;
|
|
638
|
-
var fieldHover03$3 = colors$1.gray10Hover;
|
|
639
|
-
// border-subtle-00
|
|
594
|
+
var fieldHover03$3 = colors$1.gray10Hover;
|
|
640
595
|
|
|
641
|
-
|
|
596
|
+
// Border
|
|
597
|
+
// border-subtle-00
|
|
598
|
+
var borderSubtle00$3 = colors$1.gray20;
|
|
642
599
|
|
|
600
|
+
// border-subtle-01
|
|
643
601
|
var borderSubtle01$3 = colors$1.gray30;
|
|
644
|
-
var borderSubtleSelected01$3 = colors$1.gray30;
|
|
602
|
+
var borderSubtleSelected01$3 = colors$1.gray30;
|
|
645
603
|
|
|
604
|
+
// border-subtle-02
|
|
646
605
|
var borderSubtle02$3 = colors$1.gray20;
|
|
647
|
-
var borderSubtleSelected02$3 = colors$1.gray30;
|
|
606
|
+
var borderSubtleSelected02$3 = colors$1.gray30;
|
|
648
607
|
|
|
608
|
+
// border-subtle-03
|
|
649
609
|
var borderSubtle03$3 = colors$1.gray30;
|
|
650
|
-
var borderSubtleSelected03$3 = colors$1.gray30;
|
|
610
|
+
var borderSubtleSelected03$3 = colors$1.gray30;
|
|
651
611
|
|
|
612
|
+
// border-strong
|
|
652
613
|
var borderStrong01$3 = colors$1.gray50;
|
|
653
614
|
var borderStrong02$3 = colors$1.gray50;
|
|
654
|
-
var borderStrong03$3 = colors$1.gray50;
|
|
615
|
+
var borderStrong03$3 = colors$1.gray50;
|
|
655
616
|
|
|
617
|
+
// border-tile
|
|
656
618
|
var borderTile01$3 = colors$1.gray30;
|
|
657
619
|
var borderTile02$3 = colors$1.gray40;
|
|
658
|
-
var borderTile03$3 = colors$1.gray30;
|
|
620
|
+
var borderTile03$3 = colors$1.gray30;
|
|
659
621
|
|
|
660
|
-
|
|
622
|
+
// border-inverse
|
|
623
|
+
var borderInverse$7 = colors$1.gray100;
|
|
661
624
|
|
|
662
|
-
|
|
625
|
+
// border-interactive
|
|
626
|
+
var borderInteractive$7 = colors$1.blue60;
|
|
663
627
|
|
|
664
|
-
|
|
628
|
+
// border
|
|
629
|
+
var borderDisabled$7 = colors$1.gray30;
|
|
665
630
|
|
|
631
|
+
// Text
|
|
666
632
|
var textPrimary$7 = colors$1.gray100;
|
|
667
633
|
var textSecondary$7 = colors$1.gray70;
|
|
668
634
|
var textPlaceholder$7 = adjustAlpha(textPrimary$7, 0.4);
|
|
@@ -671,24 +637,27 @@
|
|
|
671
637
|
var textInverse$7 = colors$1.white;
|
|
672
638
|
var textOnColor$7 = colors$1.white;
|
|
673
639
|
var textOnColorDisabled$7 = colors$1.gray50;
|
|
674
|
-
var textDisabled$7 = adjustAlpha(textPrimary$7, 0.25);
|
|
640
|
+
var textDisabled$7 = adjustAlpha(textPrimary$7, 0.25);
|
|
675
641
|
|
|
642
|
+
// Link
|
|
676
643
|
var linkPrimary$7 = colors$1.blue60;
|
|
677
644
|
var linkPrimaryHover$7 = colors$1.blue70;
|
|
678
645
|
var linkSecondary$7 = colors$1.blue70;
|
|
679
646
|
var linkInverse$7 = colors$1.blue40;
|
|
680
647
|
var linkVisited$7 = colors$1.purple60;
|
|
681
648
|
var linkInverseActive$3 = colors$1.gray10;
|
|
682
|
-
var linkInverseHover$3 = colors$1.blue30;
|
|
649
|
+
var linkInverseHover$3 = colors$1.blue30;
|
|
683
650
|
|
|
651
|
+
// Icon
|
|
684
652
|
var iconPrimary$7 = colors$1.gray100;
|
|
685
653
|
var iconSecondary$7 = colors$1.gray70;
|
|
686
654
|
var iconInverse$7 = colors$1.white;
|
|
687
655
|
var iconOnColor$7 = colors$1.white;
|
|
688
656
|
var iconOnColorDisabled$7 = colors$1.gray50;
|
|
689
657
|
var iconDisabled$7 = adjustAlpha(iconPrimary$7, 0.25);
|
|
690
|
-
var iconInteractive$3 = colors$1.blue60;
|
|
658
|
+
var iconInteractive$3 = colors$1.blue60;
|
|
691
659
|
|
|
660
|
+
// Support
|
|
692
661
|
var supportError$7 = colors$1.red60;
|
|
693
662
|
var supportSuccess$7 = colors$1.green50;
|
|
694
663
|
var supportWarning$7 = colors$1.yellow30;
|
|
@@ -699,20 +668,23 @@
|
|
|
699
668
|
var supportInfoInverse$7 = colors$1.blue50;
|
|
700
669
|
var supportCautionMinor$3 = colors$1.yellow30;
|
|
701
670
|
var supportCautionMajor$3 = colors$1.orange40;
|
|
702
|
-
var supportCautionUndefined$3 = colors$1.purple60;
|
|
671
|
+
var supportCautionUndefined$3 = colors$1.purple60;
|
|
703
672
|
|
|
673
|
+
// Focus
|
|
704
674
|
var focus$8 = colors$1.blue60;
|
|
705
675
|
var focusInset$7 = colors$1.white;
|
|
706
|
-
var focusInverse$7 = colors$1.white;
|
|
676
|
+
var focusInverse$7 = colors$1.white;
|
|
707
677
|
|
|
678
|
+
// Skeleton
|
|
708
679
|
var skeletonBackground$7 = colors$1.whiteHover;
|
|
709
|
-
var skeletonElement$7 = colors$1.gray30;
|
|
680
|
+
var skeletonElement$7 = colors$1.gray30;
|
|
710
681
|
|
|
682
|
+
// Misc
|
|
711
683
|
var interactive$7 = colors$1.blue60;
|
|
712
684
|
var highlight$7 = colors$1.blue20;
|
|
713
685
|
var overlay$7 = 'rgba(22, 22, 22, 0.5)';
|
|
714
686
|
var toggleOff$7 = colors$1.gray50;
|
|
715
|
-
var shadow$7 = 'rgba(0, 0, 0, 0.3)';
|
|
687
|
+
var shadow$7 = 'rgba(0, 0, 0, 0.3)';
|
|
716
688
|
|
|
717
689
|
var white$1 = /*#__PURE__*/Object.freeze({
|
|
718
690
|
__proto__: null,
|
|
@@ -879,7 +851,14 @@
|
|
|
879
851
|
sizeXLarge: layout$2.sizeXLarge,
|
|
880
852
|
size2XLarge: layout$2.size2XLarge,
|
|
881
853
|
iconSize01: layout$2.iconSize01,
|
|
882
|
-
iconSize02: layout$2.iconSize02
|
|
854
|
+
iconSize02: layout$2.iconSize02,
|
|
855
|
+
layout01: layout$2.layout01,
|
|
856
|
+
layout02: layout$2.layout02,
|
|
857
|
+
layout03: layout$2.layout03,
|
|
858
|
+
layout04: layout$2.layout04,
|
|
859
|
+
layout05: layout$2.layout05,
|
|
860
|
+
layout06: layout$2.layout06,
|
|
861
|
+
layout07: layout$2.layout07
|
|
883
862
|
});
|
|
884
863
|
|
|
885
864
|
/**
|
|
@@ -889,6 +868,7 @@
|
|
|
889
868
|
* LICENSE file in the root directory of this source tree.
|
|
890
869
|
*/
|
|
891
870
|
|
|
871
|
+
// Background
|
|
892
872
|
var background$7 = colors$1.gray10;
|
|
893
873
|
var backgroundInverse$6 = colors$1.gray80;
|
|
894
874
|
var backgroundBrand$6 = colors$1.blue60;
|
|
@@ -896,78 +876,98 @@
|
|
|
896
876
|
var backgroundHover$6 = adjustAlpha(colors$1.gray50, 0.12);
|
|
897
877
|
var backgroundInverseHover$6 = colors$1.gray80Hover;
|
|
898
878
|
var backgroundSelected$6 = adjustAlpha(colors$1.gray50, 0.2);
|
|
899
|
-
var backgroundSelectedHover$6 = adjustAlpha(colors$1.gray50, 0.32);
|
|
900
|
-
// layer-01
|
|
879
|
+
var backgroundSelectedHover$6 = adjustAlpha(colors$1.gray50, 0.32);
|
|
901
880
|
|
|
881
|
+
// Layer
|
|
882
|
+
// layer-01
|
|
902
883
|
var layer01$2 = colors$1.white;
|
|
903
884
|
var layerActive01$2 = colors$1.gray30;
|
|
904
885
|
var layerHover01$2 = colors$1.whiteHover;
|
|
905
886
|
var layerSelected01$2 = colors$1.gray20;
|
|
906
|
-
var layerSelectedHover01$2 = colors$1.gray20Hover;
|
|
887
|
+
var layerSelectedHover01$2 = colors$1.gray20Hover;
|
|
907
888
|
|
|
889
|
+
// layer-02
|
|
908
890
|
var layer02$2 = colors$1.gray10;
|
|
909
891
|
var layerActive02$2 = colors$1.gray30;
|
|
910
892
|
var layerHover02$2 = colors$1.gray10Hover;
|
|
911
893
|
var layerSelected02$2 = colors$1.gray20;
|
|
912
|
-
var layerSelectedHover02$2 = colors$1.gray20Hover;
|
|
894
|
+
var layerSelectedHover02$2 = colors$1.gray20Hover;
|
|
913
895
|
|
|
896
|
+
// layer-03
|
|
914
897
|
var layer03$2 = colors$1.white;
|
|
915
898
|
var layerActive03$2 = colors$1.gray30;
|
|
916
899
|
var layerHover03$2 = colors$1.whiteHover;
|
|
917
900
|
var layerSelected03$2 = colors$1.gray20;
|
|
918
|
-
var layerSelectedHover03$2 = colors$1.gray20Hover;
|
|
901
|
+
var layerSelectedHover03$2 = colors$1.gray20Hover;
|
|
919
902
|
|
|
903
|
+
// layer
|
|
920
904
|
var layerSelectedInverse$6 = colors$1.gray100;
|
|
921
|
-
var layerSelectedDisabled$6 = colors$1.gray50;
|
|
905
|
+
var layerSelectedDisabled$6 = colors$1.gray50;
|
|
922
906
|
|
|
907
|
+
// layer-accent-01
|
|
923
908
|
var layerAccent01$2 = colors$1.gray20;
|
|
924
909
|
var layerAccentActive01$2 = colors$1.gray40;
|
|
925
|
-
var layerAccentHover01$2 = colors$1.gray20Hover;
|
|
910
|
+
var layerAccentHover01$2 = colors$1.gray20Hover;
|
|
926
911
|
|
|
912
|
+
// layer-accent-02
|
|
927
913
|
var layerAccent02$2 = colors$1.gray20;
|
|
928
914
|
var layerAccentActive02$2 = colors$1.gray40;
|
|
929
|
-
var layerAccentHover02$2 = colors$1.gray20Hover;
|
|
915
|
+
var layerAccentHover02$2 = colors$1.gray20Hover;
|
|
930
916
|
|
|
917
|
+
// layer-accent-03
|
|
931
918
|
var layerAccent03$2 = colors$1.gray20;
|
|
932
919
|
var layerAccentActive03$2 = colors$1.gray40;
|
|
933
|
-
var layerAccentHover03$2 = colors$1.gray20Hover;
|
|
934
|
-
// field-01
|
|
920
|
+
var layerAccentHover03$2 = colors$1.gray20Hover;
|
|
935
921
|
|
|
922
|
+
// Field
|
|
923
|
+
// field-01
|
|
936
924
|
var field01$6 = colors$1.white;
|
|
937
|
-
var fieldHover01$2 = colors$1.whiteHover;
|
|
925
|
+
var fieldHover01$2 = colors$1.whiteHover;
|
|
938
926
|
|
|
927
|
+
// field-02
|
|
939
928
|
var field02$6 = colors$1.gray10;
|
|
940
|
-
var fieldHover02$2 = colors$1.gray10Hover;
|
|
929
|
+
var fieldHover02$2 = colors$1.gray10Hover;
|
|
941
930
|
|
|
931
|
+
// field-03
|
|
942
932
|
var field03$2 = colors$1.white;
|
|
943
|
-
var fieldHover03$2 = colors$1.whiteHover;
|
|
944
|
-
// border-subtle-00
|
|
933
|
+
var fieldHover03$2 = colors$1.whiteHover;
|
|
945
934
|
|
|
946
|
-
|
|
935
|
+
// Border
|
|
936
|
+
// border-subtle-00
|
|
937
|
+
var borderSubtle00$2 = colors$1.gray30;
|
|
947
938
|
|
|
939
|
+
// border-subtle-01
|
|
948
940
|
var borderSubtle01$2 = colors$1.gray20;
|
|
949
|
-
var borderSubtleSelected01$2 = colors$1.gray30;
|
|
941
|
+
var borderSubtleSelected01$2 = colors$1.gray30;
|
|
950
942
|
|
|
943
|
+
// border-subtle-02
|
|
951
944
|
var borderSubtle02$2 = colors$1.gray30;
|
|
952
|
-
var borderSubtleSelected02$2 = colors$1.gray30;
|
|
945
|
+
var borderSubtleSelected02$2 = colors$1.gray30;
|
|
953
946
|
|
|
947
|
+
// border-subtle-03
|
|
954
948
|
var borderSubtle03$2 = colors$1.gray20;
|
|
955
|
-
var borderSubtleSelected03$2 = colors$1.gray30;
|
|
949
|
+
var borderSubtleSelected03$2 = colors$1.gray30;
|
|
956
950
|
|
|
951
|
+
// border-strong
|
|
957
952
|
var borderStrong01$2 = colors$1.gray50;
|
|
958
953
|
var borderStrong02$2 = colors$1.gray50;
|
|
959
|
-
var borderStrong03$2 = colors$1.gray50;
|
|
954
|
+
var borderStrong03$2 = colors$1.gray50;
|
|
960
955
|
|
|
956
|
+
// border-tile
|
|
961
957
|
var borderTile01$2 = colors$1.gray40;
|
|
962
958
|
var borderTile02$2 = colors$1.gray30;
|
|
963
|
-
var borderTile03$2 = colors$1.gray40;
|
|
959
|
+
var borderTile03$2 = colors$1.gray40;
|
|
964
960
|
|
|
965
|
-
|
|
961
|
+
// border-inverse
|
|
962
|
+
var borderInverse$6 = colors$1.gray100;
|
|
966
963
|
|
|
967
|
-
|
|
964
|
+
// border-interactive
|
|
965
|
+
var borderInteractive$6 = colors$1.blue60;
|
|
968
966
|
|
|
969
|
-
|
|
967
|
+
// border
|
|
968
|
+
var borderDisabled$6 = colors$1.gray30;
|
|
970
969
|
|
|
970
|
+
// Text
|
|
971
971
|
var textPrimary$6 = colors$1.gray100;
|
|
972
972
|
var textSecondary$6 = colors$1.gray70;
|
|
973
973
|
var textPlaceholder$6 = adjustAlpha(textPrimary$6, 0.4);
|
|
@@ -976,24 +976,27 @@
|
|
|
976
976
|
var textInverse$6 = colors$1.white;
|
|
977
977
|
var textOnColor$6 = colors$1.white;
|
|
978
978
|
var textOnColorDisabled$6 = colors$1.gray50;
|
|
979
|
-
var textDisabled$6 = adjustAlpha(textPrimary$6, 0.25);
|
|
979
|
+
var textDisabled$6 = adjustAlpha(textPrimary$6, 0.25);
|
|
980
980
|
|
|
981
|
+
// Link
|
|
981
982
|
var linkPrimary$6 = colors$1.blue60;
|
|
982
983
|
var linkPrimaryHover$6 = colors$1.blue70;
|
|
983
984
|
var linkSecondary$6 = colors$1.blue70;
|
|
984
985
|
var linkInverse$6 = colors$1.blue40;
|
|
985
986
|
var linkVisited$6 = colors$1.purple60;
|
|
986
987
|
var linkInverseActive$2 = colors$1.gray10;
|
|
987
|
-
var linkInverseHover$2 = colors$1.blue30;
|
|
988
|
+
var linkInverseHover$2 = colors$1.blue30;
|
|
988
989
|
|
|
990
|
+
// Icon
|
|
989
991
|
var iconPrimary$6 = colors$1.gray100;
|
|
990
992
|
var iconSecondary$6 = colors$1.gray70;
|
|
991
993
|
var iconInverse$6 = colors$1.white;
|
|
992
994
|
var iconOnColor$6 = colors$1.white;
|
|
993
995
|
var iconOnColorDisabled$6 = colors$1.gray50;
|
|
994
996
|
var iconDisabled$6 = adjustAlpha(iconPrimary$6, 0.25);
|
|
995
|
-
var iconInteractive$2 = colors$1.blue60;
|
|
997
|
+
var iconInteractive$2 = colors$1.blue60;
|
|
996
998
|
|
|
999
|
+
// Support
|
|
997
1000
|
var supportError$6 = colors$1.red60;
|
|
998
1001
|
var supportSuccess$6 = colors$1.green50;
|
|
999
1002
|
var supportWarning$6 = colors$1.yellow30;
|
|
@@ -1004,15 +1007,18 @@
|
|
|
1004
1007
|
var supportInfoInverse$6 = colors$1.blue50;
|
|
1005
1008
|
var supportCautionMinor$2 = colors$1.yellow30;
|
|
1006
1009
|
var supportCautionMajor$2 = colors$1.orange40;
|
|
1007
|
-
var supportCautionUndefined$2 = colors$1.purple60;
|
|
1010
|
+
var supportCautionUndefined$2 = colors$1.purple60;
|
|
1008
1011
|
|
|
1012
|
+
// Focus
|
|
1009
1013
|
var focus$7 = colors$1.blue60;
|
|
1010
1014
|
var focusInset$6 = colors$1.white;
|
|
1011
|
-
var focusInverse$6 = colors$1.white;
|
|
1015
|
+
var focusInverse$6 = colors$1.white;
|
|
1012
1016
|
|
|
1017
|
+
// Skeleton
|
|
1013
1018
|
var skeletonBackground$6 = colors$1.gray10Hover;
|
|
1014
|
-
var skeletonElement$6 = colors$1.gray30;
|
|
1019
|
+
var skeletonElement$6 = colors$1.gray30;
|
|
1015
1020
|
|
|
1021
|
+
// Misc
|
|
1016
1022
|
var interactive$6 = colors$1.blue60;
|
|
1017
1023
|
var highlight$6 = colors$1.blue20;
|
|
1018
1024
|
var overlay$6 = 'rgba(22, 22, 22, 0.5)';
|
|
@@ -1184,7 +1190,14 @@
|
|
|
1184
1190
|
sizeXLarge: layout$2.sizeXLarge,
|
|
1185
1191
|
size2XLarge: layout$2.size2XLarge,
|
|
1186
1192
|
iconSize01: layout$2.iconSize01,
|
|
1187
|
-
iconSize02: layout$2.iconSize02
|
|
1193
|
+
iconSize02: layout$2.iconSize02,
|
|
1194
|
+
layout01: layout$2.layout01,
|
|
1195
|
+
layout02: layout$2.layout02,
|
|
1196
|
+
layout03: layout$2.layout03,
|
|
1197
|
+
layout04: layout$2.layout04,
|
|
1198
|
+
layout05: layout$2.layout05,
|
|
1199
|
+
layout06: layout$2.layout06,
|
|
1200
|
+
layout07: layout$2.layout07
|
|
1188
1201
|
});
|
|
1189
1202
|
|
|
1190
1203
|
/**
|
|
@@ -1194,6 +1207,7 @@
|
|
|
1194
1207
|
* LICENSE file in the root directory of this source tree.
|
|
1195
1208
|
*/
|
|
1196
1209
|
|
|
1210
|
+
// Background
|
|
1197
1211
|
var background$6 = colors$1.gray90;
|
|
1198
1212
|
var backgroundInverse$5 = colors$1.gray10;
|
|
1199
1213
|
var backgroundBrand$5 = colors$1.blue60;
|
|
@@ -1201,78 +1215,98 @@
|
|
|
1201
1215
|
var backgroundHover$5 = adjustAlpha(colors$1.gray50, 0.16);
|
|
1202
1216
|
var backgroundInverseHover$5 = colors$1.gray10Hover;
|
|
1203
1217
|
var backgroundSelected$5 = adjustAlpha(colors$1.gray50, 0.24);
|
|
1204
|
-
var backgroundSelectedHover$5 = adjustAlpha(colors$1.gray50, 0.32);
|
|
1205
|
-
// layer-01
|
|
1218
|
+
var backgroundSelectedHover$5 = adjustAlpha(colors$1.gray50, 0.32);
|
|
1206
1219
|
|
|
1220
|
+
// Layer
|
|
1221
|
+
// layer-01
|
|
1207
1222
|
var layer01$1 = colors$1.gray80;
|
|
1208
1223
|
var layerActive01$1 = colors$1.gray60;
|
|
1209
1224
|
var layerHover01$1 = colors$1.gray80Hover;
|
|
1210
1225
|
var layerSelected01$1 = colors$1.gray70;
|
|
1211
|
-
var layerSelectedHover01$1 = colors$1.gray70Hover;
|
|
1226
|
+
var layerSelectedHover01$1 = colors$1.gray70Hover;
|
|
1212
1227
|
|
|
1228
|
+
// layer-02
|
|
1213
1229
|
var layer02$1 = colors$1.gray70;
|
|
1214
1230
|
var layerActive02$1 = colors$1.gray50;
|
|
1215
1231
|
var layerHover02$1 = colors$1.gray70Hover;
|
|
1216
1232
|
var layerSelected02$1 = colors$1.gray60;
|
|
1217
|
-
var layerSelectedHover02$1 = colors$1.gray60Hover;
|
|
1233
|
+
var layerSelectedHover02$1 = colors$1.gray60Hover;
|
|
1218
1234
|
|
|
1235
|
+
// layer-03
|
|
1219
1236
|
var layer03$1 = colors$1.gray60;
|
|
1220
1237
|
var layerActive03$1 = colors$1.gray80;
|
|
1221
1238
|
var layerHover03$1 = colors$1.gray60Hover;
|
|
1222
1239
|
var layerSelected03$1 = colors$1.gray70;
|
|
1223
|
-
var layerSelectedHover03$1 = colors$1.gray70Hover;
|
|
1240
|
+
var layerSelectedHover03$1 = colors$1.gray70Hover;
|
|
1224
1241
|
|
|
1242
|
+
// layer
|
|
1225
1243
|
var layerSelectedInverse$5 = colors$1.gray10;
|
|
1226
|
-
var layerSelectedDisabled$5 = colors$1.gray40;
|
|
1244
|
+
var layerSelectedDisabled$5 = colors$1.gray40;
|
|
1227
1245
|
|
|
1246
|
+
// layer-accent-01
|
|
1228
1247
|
var layerAccent01$1 = colors$1.gray70;
|
|
1229
1248
|
var layerAccentActive01$1 = colors$1.gray50;
|
|
1230
|
-
var layerAccentHover01$1 = colors$1.gray70Hover;
|
|
1249
|
+
var layerAccentHover01$1 = colors$1.gray70Hover;
|
|
1231
1250
|
|
|
1251
|
+
// layer-accent-02
|
|
1232
1252
|
var layerAccent02$1 = colors$1.gray60;
|
|
1233
1253
|
var layerAccentActive02$1 = colors$1.gray80;
|
|
1234
|
-
var layerAccentHover02$1 = colors$1.gray60Hover;
|
|
1254
|
+
var layerAccentHover02$1 = colors$1.gray60Hover;
|
|
1235
1255
|
|
|
1256
|
+
// layer-accent-03
|
|
1236
1257
|
var layerAccent03$1 = colors$1.gray50;
|
|
1237
1258
|
var layerAccentActive03$1 = colors$1.gray70;
|
|
1238
|
-
var layerAccentHover03$1 = colors$1.gray50Hover;
|
|
1239
|
-
// field-01
|
|
1259
|
+
var layerAccentHover03$1 = colors$1.gray50Hover;
|
|
1240
1260
|
|
|
1261
|
+
// Field
|
|
1262
|
+
// field-01
|
|
1241
1263
|
var field01$5 = colors$1.gray80;
|
|
1242
|
-
var fieldHover01$1 = colors$1.gray80Hover;
|
|
1264
|
+
var fieldHover01$1 = colors$1.gray80Hover;
|
|
1243
1265
|
|
|
1266
|
+
// field-02
|
|
1244
1267
|
var field02$5 = colors$1.gray70;
|
|
1245
|
-
var fieldHover02$1 = colors$1.gray70Hover;
|
|
1268
|
+
var fieldHover02$1 = colors$1.gray70Hover;
|
|
1246
1269
|
|
|
1270
|
+
// field-03
|
|
1247
1271
|
var field03$1 = colors$1.gray60;
|
|
1248
|
-
var fieldHover03$1 = colors$1.gray60Hover;
|
|
1249
|
-
// border-subtle-00
|
|
1272
|
+
var fieldHover03$1 = colors$1.gray60Hover;
|
|
1250
1273
|
|
|
1251
|
-
|
|
1274
|
+
// Border
|
|
1275
|
+
// border-subtle-00
|
|
1276
|
+
var borderSubtle00$1 = colors$1.gray70;
|
|
1252
1277
|
|
|
1278
|
+
// border-subtle-01
|
|
1253
1279
|
var borderSubtle01$1 = colors$1.gray70;
|
|
1254
|
-
var borderSubtleSelected01$1 = colors$1.gray60;
|
|
1280
|
+
var borderSubtleSelected01$1 = colors$1.gray60;
|
|
1255
1281
|
|
|
1282
|
+
// border-subtle-02
|
|
1256
1283
|
var borderSubtle02$1 = colors$1.gray60;
|
|
1257
|
-
var borderSubtleSelected02$1 = colors$1.gray50;
|
|
1284
|
+
var borderSubtleSelected02$1 = colors$1.gray50;
|
|
1258
1285
|
|
|
1286
|
+
// border-subtle-03
|
|
1259
1287
|
var borderSubtle03$1 = colors$1.gray50;
|
|
1260
|
-
var borderSubtleSelected03$1 = colors$1.gray40;
|
|
1288
|
+
var borderSubtleSelected03$1 = colors$1.gray40;
|
|
1261
1289
|
|
|
1290
|
+
// border-strong
|
|
1262
1291
|
var borderStrong01$1 = colors$1.gray50;
|
|
1263
1292
|
var borderStrong02$1 = colors$1.gray40;
|
|
1264
|
-
var borderStrong03$1 = colors$1.gray30;
|
|
1293
|
+
var borderStrong03$1 = colors$1.gray30;
|
|
1265
1294
|
|
|
1295
|
+
// border-tile
|
|
1266
1296
|
var borderTile01$1 = colors$1.gray60;
|
|
1267
1297
|
var borderTile02$1 = colors$1.gray50;
|
|
1268
|
-
var borderTile03$1 = colors$1.gray40;
|
|
1298
|
+
var borderTile03$1 = colors$1.gray40;
|
|
1269
1299
|
|
|
1270
|
-
|
|
1300
|
+
// border-inverse
|
|
1301
|
+
var borderInverse$5 = colors$1.gray10;
|
|
1271
1302
|
|
|
1272
|
-
|
|
1303
|
+
// border-interactive
|
|
1304
|
+
var borderInteractive$5 = colors$1.blue50;
|
|
1273
1305
|
|
|
1274
|
-
|
|
1306
|
+
// border
|
|
1307
|
+
var borderDisabled$5 = adjustAlpha(colors$1.gray50, 0.5);
|
|
1275
1308
|
|
|
1309
|
+
// Text
|
|
1276
1310
|
var textPrimary$5 = colors$1.gray10;
|
|
1277
1311
|
var textSecondary$5 = colors$1.gray30;
|
|
1278
1312
|
var textPlaceholder$5 = adjustAlpha(textPrimary$5, 0.4);
|
|
@@ -1281,24 +1315,27 @@
|
|
|
1281
1315
|
var textInverse$5 = colors$1.gray100;
|
|
1282
1316
|
var textOnColor$5 = colors$1.white;
|
|
1283
1317
|
var textOnColorDisabled$5 = adjustAlpha(textOnColor$5, 0.25);
|
|
1284
|
-
var textDisabled$5 = adjustAlpha(textPrimary$5, 0.25);
|
|
1318
|
+
var textDisabled$5 = adjustAlpha(textPrimary$5, 0.25);
|
|
1285
1319
|
|
|
1320
|
+
// Link
|
|
1286
1321
|
var linkPrimary$5 = colors$1.blue40;
|
|
1287
1322
|
var linkPrimaryHover$5 = colors$1.blue30;
|
|
1288
1323
|
var linkSecondary$5 = colors$1.blue30;
|
|
1289
1324
|
var linkInverse$5 = colors$1.blue60;
|
|
1290
1325
|
var linkVisited$5 = colors$1.purple40;
|
|
1291
1326
|
var linkInverseActive$1 = colors$1.gray100;
|
|
1292
|
-
var linkInverseHover$1 = colors$1.blue70;
|
|
1327
|
+
var linkInverseHover$1 = colors$1.blue70;
|
|
1293
1328
|
|
|
1329
|
+
// Icon
|
|
1294
1330
|
var iconPrimary$5 = colors$1.gray10;
|
|
1295
1331
|
var iconSecondary$5 = colors$1.gray30;
|
|
1296
1332
|
var iconInverse$5 = colors$1.gray100;
|
|
1297
1333
|
var iconOnColor$5 = colors$1.white;
|
|
1298
1334
|
var iconOnColorDisabled$5 = adjustAlpha(iconOnColor$5, 0.25);
|
|
1299
1335
|
var iconDisabled$5 = adjustAlpha(iconPrimary$5, 0.25);
|
|
1300
|
-
var iconInteractive$1 = colors$1.white;
|
|
1336
|
+
var iconInteractive$1 = colors$1.white;
|
|
1301
1337
|
|
|
1338
|
+
// Support
|
|
1302
1339
|
var supportError$5 = colors$1.red40;
|
|
1303
1340
|
var supportSuccess$5 = colors$1.green40;
|
|
1304
1341
|
var supportWarning$5 = colors$1.yellow30;
|
|
@@ -1309,15 +1346,18 @@
|
|
|
1309
1346
|
var supportInfoInverse$5 = colors$1.blue70;
|
|
1310
1347
|
var supportCautionMinor$1 = colors$1.yellow30;
|
|
1311
1348
|
var supportCautionMajor$1 = colors$1.orange40;
|
|
1312
|
-
var supportCautionUndefined$1 = colors$1.purple50;
|
|
1349
|
+
var supportCautionUndefined$1 = colors$1.purple50;
|
|
1313
1350
|
|
|
1351
|
+
// Focus
|
|
1314
1352
|
var focus$6 = colors$1.white;
|
|
1315
1353
|
var focusInset$5 = colors$1.gray100;
|
|
1316
|
-
var focusInverse$5 = colors$1.blue60;
|
|
1354
|
+
var focusInverse$5 = colors$1.blue60;
|
|
1317
1355
|
|
|
1356
|
+
// Skeleton
|
|
1318
1357
|
var skeletonBackground$5 = colors$1.gray90Hover;
|
|
1319
|
-
var skeletonElement$5 = colors$1.gray70;
|
|
1358
|
+
var skeletonElement$5 = colors$1.gray70;
|
|
1320
1359
|
|
|
1360
|
+
// Misc
|
|
1321
1361
|
var interactive$5 = colors$1.blue50;
|
|
1322
1362
|
var highlight$5 = colors$1.blue70;
|
|
1323
1363
|
var overlay$5 = colors$1.rgba(colors$1.black, 0.65);
|
|
@@ -1489,7 +1529,14 @@
|
|
|
1489
1529
|
sizeXLarge: layout$2.sizeXLarge,
|
|
1490
1530
|
size2XLarge: layout$2.size2XLarge,
|
|
1491
1531
|
iconSize01: layout$2.iconSize01,
|
|
1492
|
-
iconSize02: layout$2.iconSize02
|
|
1532
|
+
iconSize02: layout$2.iconSize02,
|
|
1533
|
+
layout01: layout$2.layout01,
|
|
1534
|
+
layout02: layout$2.layout02,
|
|
1535
|
+
layout03: layout$2.layout03,
|
|
1536
|
+
layout04: layout$2.layout04,
|
|
1537
|
+
layout05: layout$2.layout05,
|
|
1538
|
+
layout06: layout$2.layout06,
|
|
1539
|
+
layout07: layout$2.layout07
|
|
1493
1540
|
});
|
|
1494
1541
|
|
|
1495
1542
|
/**
|
|
@@ -1499,6 +1546,7 @@
|
|
|
1499
1546
|
* LICENSE file in the root directory of this source tree.
|
|
1500
1547
|
*/
|
|
1501
1548
|
|
|
1549
|
+
// Background
|
|
1502
1550
|
var background$5 = colors$1.gray100;
|
|
1503
1551
|
var backgroundInverse$4 = colors$1.gray10;
|
|
1504
1552
|
var backgroundBrand$4 = colors$1.blue60;
|
|
@@ -1506,78 +1554,98 @@
|
|
|
1506
1554
|
var backgroundHover$4 = adjustAlpha(colors$1.gray50, 0.16);
|
|
1507
1555
|
var backgroundInverseHover$4 = colors$1.gray10Hover;
|
|
1508
1556
|
var backgroundSelected$4 = adjustAlpha(colors$1.gray50, 0.24);
|
|
1509
|
-
var backgroundSelectedHover$4 = adjustAlpha(colors$1.gray50, 0.32);
|
|
1510
|
-
// layer-01
|
|
1557
|
+
var backgroundSelectedHover$4 = adjustAlpha(colors$1.gray50, 0.32);
|
|
1511
1558
|
|
|
1559
|
+
// Layer
|
|
1560
|
+
// layer-01
|
|
1512
1561
|
var layer01 = colors$1.gray90;
|
|
1513
1562
|
var layerActive01 = colors$1.gray70;
|
|
1514
1563
|
var layerHover01 = colors$1.gray90Hover;
|
|
1515
1564
|
var layerSelected01 = colors$1.gray80;
|
|
1516
|
-
var layerSelectedHover01 = colors$1.gray80Hover;
|
|
1565
|
+
var layerSelectedHover01 = colors$1.gray80Hover;
|
|
1517
1566
|
|
|
1567
|
+
// layer-02
|
|
1518
1568
|
var layer02 = colors$1.gray80;
|
|
1519
1569
|
var layerActive02 = colors$1.gray60;
|
|
1520
1570
|
var layerHover02 = colors$1.gray80Hover;
|
|
1521
1571
|
var layerSelected02 = colors$1.gray70;
|
|
1522
|
-
var layerSelectedHover02 = colors$1.gray70Hover;
|
|
1572
|
+
var layerSelectedHover02 = colors$1.gray70Hover;
|
|
1523
1573
|
|
|
1574
|
+
// layer-03
|
|
1524
1575
|
var layer03 = colors$1.gray70;
|
|
1525
1576
|
var layerActive03 = colors$1.gray50;
|
|
1526
1577
|
var layerHover03 = colors$1.gray70Hover;
|
|
1527
1578
|
var layerSelected03 = colors$1.gray60;
|
|
1528
|
-
var layerSelectedHover03 = colors$1.gray60Hover;
|
|
1579
|
+
var layerSelectedHover03 = colors$1.gray60Hover;
|
|
1529
1580
|
|
|
1581
|
+
// layer
|
|
1530
1582
|
var layerSelectedInverse$4 = colors$1.gray10;
|
|
1531
|
-
var layerSelectedDisabled$4 = colors$1.gray40;
|
|
1583
|
+
var layerSelectedDisabled$4 = colors$1.gray40;
|
|
1532
1584
|
|
|
1585
|
+
// layer-accent-01
|
|
1533
1586
|
var layerAccent01 = colors$1.gray80;
|
|
1534
1587
|
var layerAccentActive01 = colors$1.gray60;
|
|
1535
|
-
var layerAccentHover01 = colors$1.gray80Hover;
|
|
1588
|
+
var layerAccentHover01 = colors$1.gray80Hover;
|
|
1536
1589
|
|
|
1590
|
+
// layer-accent-02
|
|
1537
1591
|
var layerAccent02 = colors$1.gray70;
|
|
1538
1592
|
var layerAccentActive02 = colors$1.gray50;
|
|
1539
|
-
var layerAccentHover02 = colors$1.gray70Hover;
|
|
1593
|
+
var layerAccentHover02 = colors$1.gray70Hover;
|
|
1540
1594
|
|
|
1595
|
+
// layer-accent-03
|
|
1541
1596
|
var layerAccent03 = colors$1.gray60;
|
|
1542
1597
|
var layerAccentActive03 = colors$1.gray80;
|
|
1543
|
-
var layerAccentHover03 = colors$1.gray60Hover;
|
|
1544
|
-
// field-01
|
|
1598
|
+
var layerAccentHover03 = colors$1.gray60Hover;
|
|
1545
1599
|
|
|
1600
|
+
// Field
|
|
1601
|
+
// field-01
|
|
1546
1602
|
var field01$4 = colors$1.gray90;
|
|
1547
|
-
var fieldHover01 = colors$1.gray90Hover;
|
|
1603
|
+
var fieldHover01 = colors$1.gray90Hover;
|
|
1548
1604
|
|
|
1605
|
+
// field-02
|
|
1549
1606
|
var field02$4 = colors$1.gray80;
|
|
1550
|
-
var fieldHover02 = colors$1.gray80Hover;
|
|
1607
|
+
var fieldHover02 = colors$1.gray80Hover;
|
|
1551
1608
|
|
|
1609
|
+
// field-03
|
|
1552
1610
|
var field03 = colors$1.gray70;
|
|
1553
|
-
var fieldHover03 = colors$1.gray70Hover;
|
|
1554
|
-
// border-subtle-00
|
|
1611
|
+
var fieldHover03 = colors$1.gray70Hover;
|
|
1555
1612
|
|
|
1556
|
-
|
|
1613
|
+
// Border
|
|
1614
|
+
// border-subtle-00
|
|
1615
|
+
var borderSubtle00 = colors$1.gray80;
|
|
1557
1616
|
|
|
1617
|
+
// border-subtle-01
|
|
1558
1618
|
var borderSubtle01 = colors$1.gray80;
|
|
1559
|
-
var borderSubtleSelected01 = colors$1.gray70;
|
|
1619
|
+
var borderSubtleSelected01 = colors$1.gray70;
|
|
1560
1620
|
|
|
1621
|
+
// border-subtle-02
|
|
1561
1622
|
var borderSubtle02 = colors$1.gray70;
|
|
1562
|
-
var borderSubtleSelected02 = colors$1.gray60;
|
|
1623
|
+
var borderSubtleSelected02 = colors$1.gray60;
|
|
1563
1624
|
|
|
1625
|
+
// border-subtle-03
|
|
1564
1626
|
var borderSubtle03 = colors$1.gray60;
|
|
1565
|
-
var borderSubtleSelected03 = colors$1.gray50;
|
|
1627
|
+
var borderSubtleSelected03 = colors$1.gray50;
|
|
1566
1628
|
|
|
1629
|
+
// border-strong
|
|
1567
1630
|
var borderStrong01 = colors$1.gray60;
|
|
1568
1631
|
var borderStrong02 = colors$1.gray50;
|
|
1569
|
-
var borderStrong03 = colors$1.gray40;
|
|
1632
|
+
var borderStrong03 = colors$1.gray40;
|
|
1570
1633
|
|
|
1634
|
+
// border-tile
|
|
1571
1635
|
var borderTile01 = colors$1.gray70;
|
|
1572
1636
|
var borderTile02 = colors$1.gray60;
|
|
1573
|
-
var borderTile03 = colors$1.gray50;
|
|
1637
|
+
var borderTile03 = colors$1.gray50;
|
|
1574
1638
|
|
|
1575
|
-
|
|
1639
|
+
// border-inverse
|
|
1640
|
+
var borderInverse$4 = colors$1.gray10;
|
|
1576
1641
|
|
|
1577
|
-
|
|
1642
|
+
// border-interactive
|
|
1643
|
+
var borderInteractive$4 = colors$1.blue50;
|
|
1578
1644
|
|
|
1579
|
-
|
|
1645
|
+
// border
|
|
1646
|
+
var borderDisabled$4 = adjustAlpha(colors$1.gray50, 0.5);
|
|
1580
1647
|
|
|
1648
|
+
// Text
|
|
1581
1649
|
var textPrimary$4 = colors$1.gray10;
|
|
1582
1650
|
var textSecondary$4 = colors$1.gray30;
|
|
1583
1651
|
var textPlaceholder$4 = adjustAlpha(textPrimary$4, 0.4);
|
|
@@ -1586,24 +1654,27 @@
|
|
|
1586
1654
|
var textInverse$4 = colors$1.gray100;
|
|
1587
1655
|
var textOnColor$4 = colors$1.white;
|
|
1588
1656
|
var textOnColorDisabled$4 = adjustAlpha(textOnColor$4, 0.25);
|
|
1589
|
-
var textDisabled$4 = adjustAlpha(textPrimary$4, 0.25);
|
|
1657
|
+
var textDisabled$4 = adjustAlpha(textPrimary$4, 0.25);
|
|
1590
1658
|
|
|
1659
|
+
// Link
|
|
1591
1660
|
var linkPrimary$4 = colors$1.blue40;
|
|
1592
1661
|
var linkPrimaryHover$4 = colors$1.blue30;
|
|
1593
1662
|
var linkSecondary$4 = colors$1.blue30;
|
|
1594
1663
|
var linkInverse$4 = colors$1.blue60;
|
|
1595
1664
|
var linkVisited$4 = colors$1.purple40;
|
|
1596
1665
|
var linkInverseActive = colors$1.gray100;
|
|
1597
|
-
var linkInverseHover = colors$1.blue70;
|
|
1666
|
+
var linkInverseHover = colors$1.blue70;
|
|
1598
1667
|
|
|
1668
|
+
// Icon
|
|
1599
1669
|
var iconPrimary$4 = colors$1.gray10;
|
|
1600
1670
|
var iconSecondary$4 = colors$1.gray30;
|
|
1601
1671
|
var iconInverse$4 = colors$1.gray100;
|
|
1602
1672
|
var iconOnColor$4 = colors$1.white;
|
|
1603
1673
|
var iconOnColorDisabled$4 = adjustAlpha(iconOnColor$4, 0.25);
|
|
1604
1674
|
var iconDisabled$4 = adjustAlpha(iconPrimary$4, 0.25);
|
|
1605
|
-
var iconInteractive = colors$1.white;
|
|
1675
|
+
var iconInteractive = colors$1.white;
|
|
1606
1676
|
|
|
1677
|
+
// Support
|
|
1607
1678
|
var supportError$4 = colors$1.red50;
|
|
1608
1679
|
var supportSuccess$4 = colors$1.green40;
|
|
1609
1680
|
var supportWarning$4 = colors$1.yellow30;
|
|
@@ -1614,15 +1685,18 @@
|
|
|
1614
1685
|
var supportInfoInverse$4 = colors$1.blue70;
|
|
1615
1686
|
var supportCautionMinor = colors$1.yellow30;
|
|
1616
1687
|
var supportCautionMajor = colors$1.orange40;
|
|
1617
|
-
var supportCautionUndefined = colors$1.purple50;
|
|
1688
|
+
var supportCautionUndefined = colors$1.purple50;
|
|
1618
1689
|
|
|
1690
|
+
// Focus
|
|
1619
1691
|
var focus$5 = colors$1.white;
|
|
1620
1692
|
var focusInset$4 = colors$1.gray100;
|
|
1621
|
-
var focusInverse$4 = colors$1.blue60;
|
|
1693
|
+
var focusInverse$4 = colors$1.blue60;
|
|
1622
1694
|
|
|
1695
|
+
// Skeleton
|
|
1623
1696
|
var skeletonBackground$4 = adjustLightness(background$5, 7);
|
|
1624
|
-
var skeletonElement$4 = colors$1.gray80;
|
|
1697
|
+
var skeletonElement$4 = colors$1.gray80;
|
|
1625
1698
|
|
|
1699
|
+
// Misc
|
|
1626
1700
|
var interactive$4 = colors$1.blue50;
|
|
1627
1701
|
var highlight$4 = colors$1.blue80;
|
|
1628
1702
|
var overlay$4 = colors$1.rgba(colors$1.black, 0.65);
|
|
@@ -1794,7 +1868,14 @@
|
|
|
1794
1868
|
sizeXLarge: layout$2.sizeXLarge,
|
|
1795
1869
|
size2XLarge: layout$2.size2XLarge,
|
|
1796
1870
|
iconSize01: layout$2.iconSize01,
|
|
1797
|
-
iconSize02: layout$2.iconSize02
|
|
1871
|
+
iconSize02: layout$2.iconSize02,
|
|
1872
|
+
layout01: layout$2.layout01,
|
|
1873
|
+
layout02: layout$2.layout02,
|
|
1874
|
+
layout03: layout$2.layout03,
|
|
1875
|
+
layout04: layout$2.layout04,
|
|
1876
|
+
layout05: layout$2.layout05,
|
|
1877
|
+
layout06: layout$2.layout06,
|
|
1878
|
+
layout07: layout$2.layout07
|
|
1798
1879
|
});
|
|
1799
1880
|
|
|
1800
1881
|
/**
|
|
@@ -1839,8 +1920,9 @@
|
|
|
1839
1920
|
var inverseSupport04$3 = colors$1.blue50;
|
|
1840
1921
|
var overlay01$3 = colors$1.rgba(colors$1.gray100, 0.5);
|
|
1841
1922
|
var danger01$3 = colors$1.red60;
|
|
1842
|
-
var danger02$3 = colors$1.red60;
|
|
1923
|
+
var danger02$3 = colors$1.red60;
|
|
1843
1924
|
|
|
1925
|
+
// Interaction states
|
|
1844
1926
|
var focus$4 = colors$1.blue60;
|
|
1845
1927
|
var inverseFocusUi$3 = colors$1.white;
|
|
1846
1928
|
var hoverPrimary$3 = '#0353e9';
|
|
@@ -1869,9 +1951,10 @@
|
|
|
1869
1951
|
var decorative01$3 = colors$1.gray20;
|
|
1870
1952
|
var buttonSeparator$4 = '#e0e0e0';
|
|
1871
1953
|
var skeleton01$3 = '#e5e5e5';
|
|
1872
|
-
var skeleton02$3 = colors$1.gray30;
|
|
1873
|
-
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
1954
|
+
var skeleton02$3 = colors$1.gray30;
|
|
1874
1955
|
|
|
1956
|
+
// New color tokens
|
|
1957
|
+
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
1875
1958
|
var background$4 = uiBackground$3;
|
|
1876
1959
|
var layer$4 = ui01$3;
|
|
1877
1960
|
var layerAccent$3 = ui03$3;
|
|
@@ -1946,8 +2029,9 @@
|
|
|
1946
2029
|
var iconOnColorDisabled$3 = disabled03$3;
|
|
1947
2030
|
var layerSelectedDisabled$3 = disabled03$3;
|
|
1948
2031
|
var skeletonBackground$3 = skeleton01$3;
|
|
1949
|
-
var skeletonElement$3 = skeleton02$3;
|
|
2032
|
+
var skeletonElement$3 = skeleton02$3;
|
|
1950
2033
|
|
|
2034
|
+
// Deprecated ☠️
|
|
1951
2035
|
var brand01$3 = interactive01$3;
|
|
1952
2036
|
var brand02$3 = interactive02$3;
|
|
1953
2037
|
var brand03$3 = interactive03$3;
|
|
@@ -2191,7 +2275,14 @@
|
|
|
2191
2275
|
sizeXLarge: layout$2.sizeXLarge,
|
|
2192
2276
|
size2XLarge: layout$2.size2XLarge,
|
|
2193
2277
|
iconSize01: layout$2.iconSize01,
|
|
2194
|
-
iconSize02: layout$2.iconSize02
|
|
2278
|
+
iconSize02: layout$2.iconSize02,
|
|
2279
|
+
layout01: layout$2.layout01,
|
|
2280
|
+
layout02: layout$2.layout02,
|
|
2281
|
+
layout03: layout$2.layout03,
|
|
2282
|
+
layout04: layout$2.layout04,
|
|
2283
|
+
layout05: layout$2.layout05,
|
|
2284
|
+
layout06: layout$2.layout06,
|
|
2285
|
+
layout07: layout$2.layout07
|
|
2195
2286
|
});
|
|
2196
2287
|
|
|
2197
2288
|
/**
|
|
@@ -2236,8 +2327,9 @@
|
|
|
2236
2327
|
var inverseSupport04$2 = colors$1.blue50;
|
|
2237
2328
|
var overlay01$2 = colors$1.rgba(colors$1.gray100, 0.5);
|
|
2238
2329
|
var danger01$2 = colors$1.red60;
|
|
2239
|
-
var danger02$2 = colors$1.red60;
|
|
2330
|
+
var danger02$2 = colors$1.red60;
|
|
2240
2331
|
|
|
2332
|
+
// Interaction states
|
|
2241
2333
|
var focus$3 = colors$1.blue60;
|
|
2242
2334
|
var inverseFocusUi$2 = colors$1.white;
|
|
2243
2335
|
var hoverPrimary$2 = '#0353e9';
|
|
@@ -2266,9 +2358,10 @@
|
|
|
2266
2358
|
var decorative01$2 = colors$1.gray20;
|
|
2267
2359
|
var buttonSeparator$3 = '#e0e0e0';
|
|
2268
2360
|
var skeleton01$2 = '#e5e5e5';
|
|
2269
|
-
var skeleton02$2 = colors$1.gray30;
|
|
2270
|
-
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
2361
|
+
var skeleton02$2 = colors$1.gray30;
|
|
2271
2362
|
|
|
2363
|
+
// New color tokens
|
|
2364
|
+
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
2272
2365
|
var background$3 = uiBackground$2;
|
|
2273
2366
|
var layer$3 = ui01$2;
|
|
2274
2367
|
var layerAccent$2 = ui03$2;
|
|
@@ -2345,6 +2438,7 @@
|
|
|
2345
2438
|
var skeletonBackground$2 = skeleton01$2;
|
|
2346
2439
|
var skeletonElement$2 = skeleton02$2;
|
|
2347
2440
|
|
|
2441
|
+
// Deprecated ☠️
|
|
2348
2442
|
var brand01$2 = interactive01$2;
|
|
2349
2443
|
var brand02$2 = interactive02$2;
|
|
2350
2444
|
var brand03$2 = interactive03$2;
|
|
@@ -2588,7 +2682,14 @@
|
|
|
2588
2682
|
sizeXLarge: layout$2.sizeXLarge,
|
|
2589
2683
|
size2XLarge: layout$2.size2XLarge,
|
|
2590
2684
|
iconSize01: layout$2.iconSize01,
|
|
2591
|
-
iconSize02: layout$2.iconSize02
|
|
2685
|
+
iconSize02: layout$2.iconSize02,
|
|
2686
|
+
layout01: layout$2.layout01,
|
|
2687
|
+
layout02: layout$2.layout02,
|
|
2688
|
+
layout03: layout$2.layout03,
|
|
2689
|
+
layout04: layout$2.layout04,
|
|
2690
|
+
layout05: layout$2.layout05,
|
|
2691
|
+
layout06: layout$2.layout06,
|
|
2692
|
+
layout07: layout$2.layout07
|
|
2592
2693
|
});
|
|
2593
2694
|
|
|
2594
2695
|
/**
|
|
@@ -2633,8 +2734,9 @@
|
|
|
2633
2734
|
var inverseSupport04$1 = colors$1.blue60;
|
|
2634
2735
|
var overlay01$1 = colors$1.rgba(colors$1.black, 0.65);
|
|
2635
2736
|
var danger01$1 = colors$1.red60;
|
|
2636
|
-
var danger02$1 = colors$1.red40;
|
|
2737
|
+
var danger02$1 = colors$1.red40;
|
|
2637
2738
|
|
|
2739
|
+
// Interaction states
|
|
2638
2740
|
var focus$2 = colors$1.white;
|
|
2639
2741
|
var inverseFocusUi$1 = colors$1.blue60;
|
|
2640
2742
|
var hoverPrimary$1 = '#0353e9';
|
|
@@ -2663,9 +2765,10 @@
|
|
|
2663
2765
|
var decorative01$1 = colors$1.gray60;
|
|
2664
2766
|
var buttonSeparator$2 = '#161616';
|
|
2665
2767
|
var skeleton01$1 = '#353535';
|
|
2666
|
-
var skeleton02$1 = colors$1.gray70;
|
|
2667
|
-
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
2768
|
+
var skeleton02$1 = colors$1.gray70;
|
|
2668
2769
|
|
|
2770
|
+
// New color tokens
|
|
2771
|
+
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
2669
2772
|
var background$2 = uiBackground$1;
|
|
2670
2773
|
var layer$2 = ui01$1;
|
|
2671
2774
|
var layerAccent$1 = ui03$1;
|
|
@@ -2742,6 +2845,7 @@
|
|
|
2742
2845
|
var skeletonBackground$1 = skeleton01$1;
|
|
2743
2846
|
var skeletonElement$1 = skeleton02$1;
|
|
2744
2847
|
|
|
2848
|
+
// Deprecated ☠️
|
|
2745
2849
|
var brand01$1 = interactive01$1;
|
|
2746
2850
|
var brand02$1 = interactive02$1;
|
|
2747
2851
|
var brand03$1 = interactive03$1;
|
|
@@ -2985,7 +3089,14 @@
|
|
|
2985
3089
|
sizeXLarge: layout$2.sizeXLarge,
|
|
2986
3090
|
size2XLarge: layout$2.size2XLarge,
|
|
2987
3091
|
iconSize01: layout$2.iconSize01,
|
|
2988
|
-
iconSize02: layout$2.iconSize02
|
|
3092
|
+
iconSize02: layout$2.iconSize02,
|
|
3093
|
+
layout01: layout$2.layout01,
|
|
3094
|
+
layout02: layout$2.layout02,
|
|
3095
|
+
layout03: layout$2.layout03,
|
|
3096
|
+
layout04: layout$2.layout04,
|
|
3097
|
+
layout05: layout$2.layout05,
|
|
3098
|
+
layout06: layout$2.layout06,
|
|
3099
|
+
layout07: layout$2.layout07
|
|
2989
3100
|
});
|
|
2990
3101
|
|
|
2991
3102
|
/**
|
|
@@ -3030,8 +3141,9 @@
|
|
|
3030
3141
|
var inverseSupport04 = colors$1.blue60;
|
|
3031
3142
|
var overlay01 = colors$1.rgba(colors$1.black, 0.65);
|
|
3032
3143
|
var danger01 = colors$1.red60;
|
|
3033
|
-
var danger02 = colors$1.red50;
|
|
3144
|
+
var danger02 = colors$1.red50;
|
|
3034
3145
|
|
|
3146
|
+
// Interaction states
|
|
3035
3147
|
var focus$1 = colors$1.white;
|
|
3036
3148
|
var inverseFocusUi = colors$1.blue60;
|
|
3037
3149
|
var hoverPrimary = '#0353e9';
|
|
@@ -3060,9 +3172,10 @@
|
|
|
3060
3172
|
var decorative01 = colors$1.gray70;
|
|
3061
3173
|
var buttonSeparator$1 = '#161616';
|
|
3062
3174
|
var skeleton01 = '#353535';
|
|
3063
|
-
var skeleton02 = colors$1.gray70;
|
|
3064
|
-
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
3175
|
+
var skeleton02 = colors$1.gray70;
|
|
3065
3176
|
|
|
3177
|
+
// New color tokens
|
|
3178
|
+
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
3066
3179
|
var background$1 = uiBackground;
|
|
3067
3180
|
var layer$1 = ui01;
|
|
3068
3181
|
var layerAccent = ui03;
|
|
@@ -3139,6 +3252,7 @@
|
|
|
3139
3252
|
var skeletonBackground = skeleton01;
|
|
3140
3253
|
var skeletonElement = skeleton02;
|
|
3141
3254
|
|
|
3255
|
+
// Deprecated ☠️
|
|
3142
3256
|
var brand01 = interactive01;
|
|
3143
3257
|
var brand02 = interactive02;
|
|
3144
3258
|
var brand03 = interactive03;
|
|
@@ -3382,7 +3496,14 @@
|
|
|
3382
3496
|
sizeXLarge: layout$2.sizeXLarge,
|
|
3383
3497
|
size2XLarge: layout$2.size2XLarge,
|
|
3384
3498
|
iconSize01: layout$2.iconSize01,
|
|
3385
|
-
iconSize02: layout$2.iconSize02
|
|
3499
|
+
iconSize02: layout$2.iconSize02,
|
|
3500
|
+
layout01: layout$2.layout01,
|
|
3501
|
+
layout02: layout$2.layout02,
|
|
3502
|
+
layout03: layout$2.layout03,
|
|
3503
|
+
layout04: layout$2.layout04,
|
|
3504
|
+
layout05: layout$2.layout05,
|
|
3505
|
+
layout06: layout$2.layout06,
|
|
3506
|
+
layout07: layout$2.layout07
|
|
3386
3507
|
});
|
|
3387
3508
|
|
|
3388
3509
|
/**
|
|
@@ -3391,13 +3512,18 @@
|
|
|
3391
3512
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
3392
3513
|
* LICENSE file in the root directory of this source tree.
|
|
3393
3514
|
*/
|
|
3394
|
-
// exported as in JavaScript
|
|
3395
3515
|
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3516
|
+
// The color token names for a Carbon theme, value corresponds to what they're
|
|
3517
|
+
// exported as in JavaScript
|
|
3518
|
+
var colors = [
|
|
3519
|
+
// Core
|
|
3520
|
+
'interactive01', 'interactive02', 'interactive03', 'interactive04', 'uiBackground', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'icon01', 'icon02', 'icon03', 'link01', 'link02', 'inverseLink', 'field01', 'field02', 'inverse01', 'inverse02', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', 'danger01', 'danger02',
|
|
3521
|
+
// Interactive states
|
|
3522
|
+
'focus', 'inverseFocusUi', 'hoverPrimary', 'activePrimary', 'hoverPrimaryText', 'hoverSecondary', 'activeSecondary', 'hoverTertiary', 'activeTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'activeUI', 'activeLightUI', 'selectedUI', 'selectedLightUI', 'inverseHoverUI', 'hoverDanger', 'activeDanger', 'hoverRow', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'highlight', 'decorative01', 'buttonSeparator', 'skeleton01', 'skeleton02',
|
|
3523
|
+
// New color tokens
|
|
3399
3524
|
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
3400
|
-
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'shadow', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement',
|
|
3525
|
+
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'shadow', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement',
|
|
3526
|
+
// Deprecated
|
|
3401
3527
|
'brand01', 'brand02', 'brand03', 'active01', 'hoverField', 'danger'];
|
|
3402
3528
|
var tokens$3 = {
|
|
3403
3529
|
colors: colors,
|
|
@@ -3514,6 +3640,13 @@
|
|
|
3514
3640
|
size2XLarge: layout$2.size2XLarge,
|
|
3515
3641
|
iconSize01: layout$2.iconSize01,
|
|
3516
3642
|
iconSize02: layout$2.iconSize02,
|
|
3643
|
+
layout01: layout$2.layout01,
|
|
3644
|
+
layout02: layout$2.layout02,
|
|
3645
|
+
layout03: layout$2.layout03,
|
|
3646
|
+
layout04: layout$2.layout04,
|
|
3647
|
+
layout05: layout$2.layout05,
|
|
3648
|
+
layout06: layout$2.layout06,
|
|
3649
|
+
layout07: layout$2.layout07,
|
|
3517
3650
|
interactive01: interactive01$3,
|
|
3518
3651
|
interactive02: interactive02$3,
|
|
3519
3652
|
interactive03: interactive03$3,
|
|
@@ -4097,30 +4230,24 @@
|
|
|
4097
4230
|
var Token = /*#__PURE__*/function () {
|
|
4098
4231
|
function Token(name, properties, state) {
|
|
4099
4232
|
_classCallCheck(this, Token);
|
|
4100
|
-
|
|
4101
4233
|
this.kind = 'Token';
|
|
4102
4234
|
this.name = name;
|
|
4103
|
-
|
|
4104
4235
|
if (properties) {
|
|
4105
4236
|
this.properties = properties;
|
|
4106
4237
|
}
|
|
4107
|
-
|
|
4108
4238
|
if (state) {
|
|
4109
4239
|
this.state = state;
|
|
4110
4240
|
}
|
|
4111
4241
|
}
|
|
4112
|
-
|
|
4113
4242
|
_createClass(Token, null, [{
|
|
4114
4243
|
key: "create",
|
|
4115
4244
|
value: function create(token) {
|
|
4116
4245
|
if (typeof token === 'string') {
|
|
4117
4246
|
return new Token(token);
|
|
4118
4247
|
}
|
|
4119
|
-
|
|
4120
4248
|
return new Token(token.name, token.properties, token.state);
|
|
4121
4249
|
}
|
|
4122
4250
|
}]);
|
|
4123
|
-
|
|
4124
4251
|
return Token;
|
|
4125
4252
|
}();
|
|
4126
4253
|
|
|
@@ -4135,84 +4262,63 @@
|
|
|
4135
4262
|
* ways to get information about the entire group, including properties and
|
|
4136
4263
|
* states
|
|
4137
4264
|
*/
|
|
4138
|
-
|
|
4139
4265
|
var TokenGroup = /*#__PURE__*/function (_Symbol$iterator) {
|
|
4140
4266
|
function TokenGroup(name, tokens, properties) {
|
|
4141
4267
|
_classCallCheck(this, TokenGroup);
|
|
4142
|
-
|
|
4143
4268
|
this.kind = 'TokenGroup';
|
|
4144
4269
|
this.name = name;
|
|
4145
|
-
|
|
4146
4270
|
if (properties) {
|
|
4147
4271
|
this.properties = properties;
|
|
4148
4272
|
}
|
|
4149
|
-
|
|
4150
4273
|
this.children = tokens.map(function (child) {
|
|
4151
4274
|
if (child.kind === 'TokenGroup') {
|
|
4152
4275
|
return child;
|
|
4153
4276
|
}
|
|
4154
|
-
|
|
4155
4277
|
return Token.create(child);
|
|
4156
4278
|
});
|
|
4157
4279
|
}
|
|
4158
|
-
|
|
4159
4280
|
_createClass(TokenGroup, [{
|
|
4160
4281
|
key: _Symbol$iterator,
|
|
4161
4282
|
value: /*#__PURE__*/_regeneratorRuntime().mark(function value() {
|
|
4162
4283
|
var _iterator, _step, child;
|
|
4163
|
-
|
|
4164
4284
|
return _regeneratorRuntime().wrap(function value$(_context) {
|
|
4165
4285
|
while (1) {
|
|
4166
4286
|
switch (_context.prev = _context.next) {
|
|
4167
4287
|
case 0:
|
|
4168
4288
|
_context.next = 2;
|
|
4169
4289
|
return this;
|
|
4170
|
-
|
|
4171
4290
|
case 2:
|
|
4172
4291
|
_iterator = _createForOfIteratorHelper(this.children);
|
|
4173
4292
|
_context.prev = 3;
|
|
4174
|
-
|
|
4175
4293
|
_iterator.s();
|
|
4176
|
-
|
|
4177
4294
|
case 5:
|
|
4178
4295
|
if ((_step = _iterator.n()).done) {
|
|
4179
4296
|
_context.next = 13;
|
|
4180
4297
|
break;
|
|
4181
4298
|
}
|
|
4182
|
-
|
|
4183
4299
|
child = _step.value;
|
|
4184
4300
|
_context.next = 9;
|
|
4185
4301
|
return child;
|
|
4186
|
-
|
|
4187
4302
|
case 9:
|
|
4188
4303
|
if (!(child.kind === 'TokenGroup')) {
|
|
4189
4304
|
_context.next = 11;
|
|
4190
4305
|
break;
|
|
4191
4306
|
}
|
|
4192
|
-
|
|
4193
4307
|
return _context.delegateYield(child, "t0", 11);
|
|
4194
|
-
|
|
4195
4308
|
case 11:
|
|
4196
4309
|
_context.next = 5;
|
|
4197
4310
|
break;
|
|
4198
|
-
|
|
4199
4311
|
case 13:
|
|
4200
4312
|
_context.next = 18;
|
|
4201
4313
|
break;
|
|
4202
|
-
|
|
4203
4314
|
case 15:
|
|
4204
4315
|
_context.prev = 15;
|
|
4205
4316
|
_context.t1 = _context["catch"](3);
|
|
4206
|
-
|
|
4207
4317
|
_iterator.e(_context.t1);
|
|
4208
|
-
|
|
4209
4318
|
case 18:
|
|
4210
4319
|
_context.prev = 18;
|
|
4211
|
-
|
|
4212
4320
|
_iterator.f();
|
|
4213
|
-
|
|
4214
4321
|
return _context.finish(18);
|
|
4215
|
-
|
|
4216
4322
|
case 21:
|
|
4217
4323
|
case "end":
|
|
4218
4324
|
return _context.stop();
|
|
@@ -4225,56 +4331,46 @@
|
|
|
4225
4331
|
* including itself.
|
|
4226
4332
|
* @returns {Array<Token>}
|
|
4227
4333
|
*/
|
|
4228
|
-
|
|
4229
4334
|
}, {
|
|
4230
4335
|
key: "getTokens",
|
|
4231
4336
|
value: function getTokens() {
|
|
4232
4337
|
var parentContext = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4233
|
-
|
|
4234
4338
|
var context = _objectSpread2(_objectSpread2({}, parentContext), {}, {
|
|
4235
4339
|
groups: parentContext.groups ? parentContext.groups.concat(this) : [this],
|
|
4236
4340
|
properties: this.properties || parentContext.properties
|
|
4237
4341
|
});
|
|
4238
|
-
|
|
4239
4342
|
return this.children.flatMap(function (child) {
|
|
4240
4343
|
if (child.kind === 'TokenGroup') {
|
|
4241
4344
|
return child.getTokens(context);
|
|
4242
4345
|
}
|
|
4243
|
-
|
|
4244
4346
|
var token = _objectSpread2(_objectSpread2({}, context), {}, {
|
|
4245
4347
|
name: child.name,
|
|
4246
4348
|
properties: child.properties || context.properties
|
|
4247
4349
|
});
|
|
4248
|
-
|
|
4249
4350
|
if (child.state) {
|
|
4250
4351
|
token.state = child.state;
|
|
4251
4352
|
}
|
|
4252
|
-
|
|
4253
4353
|
return token;
|
|
4254
4354
|
});
|
|
4255
4355
|
}
|
|
4356
|
+
|
|
4256
4357
|
/**
|
|
4257
4358
|
* Get a specific token from the TokenGroup, or form one of its nested
|
|
4258
4359
|
* TokenGroups
|
|
4259
4360
|
* @returns {Token}
|
|
4260
4361
|
*/
|
|
4261
|
-
|
|
4262
4362
|
}, {
|
|
4263
4363
|
key: "getToken",
|
|
4264
4364
|
value: function getToken(tokenOrName) {
|
|
4265
4365
|
var name = typeof tokenOrName === 'string' ? tokenOrName : tokenOrName.name;
|
|
4266
|
-
|
|
4267
4366
|
var _iterator2 = _createForOfIteratorHelper(this),
|
|
4268
|
-
|
|
4269
|
-
|
|
4367
|
+
_step2;
|
|
4270
4368
|
try {
|
|
4271
4369
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
4272
4370
|
var child = _step2.value;
|
|
4273
|
-
|
|
4274
4371
|
if (child.kind === 'TokenGroup') {
|
|
4275
4372
|
continue;
|
|
4276
4373
|
}
|
|
4277
|
-
|
|
4278
4374
|
if (child.name === name) {
|
|
4279
4375
|
return child;
|
|
4280
4376
|
}
|
|
@@ -4284,30 +4380,25 @@
|
|
|
4284
4380
|
} finally {
|
|
4285
4381
|
_iterator2.f();
|
|
4286
4382
|
}
|
|
4287
|
-
|
|
4288
4383
|
return null;
|
|
4289
4384
|
}
|
|
4385
|
+
|
|
4290
4386
|
/**
|
|
4291
4387
|
* Get all the unique groups in the token group, including this group
|
|
4292
4388
|
* @returns {Array<TokenGroup>}
|
|
4293
4389
|
*/
|
|
4294
|
-
|
|
4295
4390
|
}, {
|
|
4296
4391
|
key: "getTokenGroups",
|
|
4297
4392
|
value: function getTokenGroups() {
|
|
4298
4393
|
var set = new Set();
|
|
4299
|
-
|
|
4300
4394
|
var _iterator3 = _createForOfIteratorHelper(this),
|
|
4301
|
-
|
|
4302
|
-
|
|
4395
|
+
_step3;
|
|
4303
4396
|
try {
|
|
4304
4397
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
4305
4398
|
var child = _step3.value;
|
|
4306
|
-
|
|
4307
4399
|
if (child.kind !== 'TokenGroup') {
|
|
4308
4400
|
continue;
|
|
4309
4401
|
}
|
|
4310
|
-
|
|
4311
4402
|
set.add(child);
|
|
4312
4403
|
}
|
|
4313
4404
|
} catch (err) {
|
|
@@ -4315,33 +4406,27 @@
|
|
|
4315
4406
|
} finally {
|
|
4316
4407
|
_iterator3.f();
|
|
4317
4408
|
}
|
|
4318
|
-
|
|
4319
4409
|
return Array.from(set);
|
|
4320
4410
|
}
|
|
4411
|
+
|
|
4321
4412
|
/**
|
|
4322
4413
|
* Get all the unique properties in the token group, including this group
|
|
4323
4414
|
* @returns {Array<string>}
|
|
4324
4415
|
*/
|
|
4325
|
-
|
|
4326
4416
|
}, {
|
|
4327
4417
|
key: "getTokenProperties",
|
|
4328
4418
|
value: function getTokenProperties() {
|
|
4329
4419
|
var set = new Set();
|
|
4330
|
-
|
|
4331
4420
|
var _iterator4 = _createForOfIteratorHelper(this),
|
|
4332
|
-
|
|
4333
|
-
|
|
4421
|
+
_step4;
|
|
4334
4422
|
try {
|
|
4335
4423
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4336
4424
|
var child = _step4.value;
|
|
4337
|
-
|
|
4338
4425
|
if (!Array.isArray(child.properties)) {
|
|
4339
4426
|
continue;
|
|
4340
4427
|
}
|
|
4341
|
-
|
|
4342
4428
|
var _iterator5 = _createForOfIteratorHelper(child.properties),
|
|
4343
|
-
|
|
4344
|
-
|
|
4429
|
+
_step5;
|
|
4345
4430
|
try {
|
|
4346
4431
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
4347
4432
|
var property = _step5.value;
|
|
@@ -4358,30 +4443,25 @@
|
|
|
4358
4443
|
} finally {
|
|
4359
4444
|
_iterator4.f();
|
|
4360
4445
|
}
|
|
4361
|
-
|
|
4362
4446
|
return Array.from(set);
|
|
4363
4447
|
}
|
|
4448
|
+
|
|
4364
4449
|
/**
|
|
4365
4450
|
* Get all the unique states in the token group, including this group
|
|
4366
4451
|
* @returns {Array<string>}
|
|
4367
4452
|
*/
|
|
4368
|
-
|
|
4369
4453
|
}, {
|
|
4370
4454
|
key: "getTokenStates",
|
|
4371
4455
|
value: function getTokenStates() {
|
|
4372
4456
|
var set = new Set();
|
|
4373
|
-
|
|
4374
4457
|
var _iterator6 = _createForOfIteratorHelper(this),
|
|
4375
|
-
|
|
4376
|
-
|
|
4458
|
+
_step6;
|
|
4377
4459
|
try {
|
|
4378
4460
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
4379
4461
|
var child = _step6.value;
|
|
4380
|
-
|
|
4381
4462
|
if (child.kind !== 'Token') {
|
|
4382
4463
|
continue;
|
|
4383
4464
|
}
|
|
4384
|
-
|
|
4385
4465
|
if (child.state) {
|
|
4386
4466
|
set.add(child.state);
|
|
4387
4467
|
}
|
|
@@ -4391,20 +4471,18 @@
|
|
|
4391
4471
|
} finally {
|
|
4392
4472
|
_iterator6.f();
|
|
4393
4473
|
}
|
|
4394
|
-
|
|
4395
4474
|
return Array.from(set);
|
|
4396
4475
|
}
|
|
4397
4476
|
}], [{
|
|
4398
4477
|
key: "create",
|
|
4399
4478
|
value: function create(_ref) {
|
|
4400
4479
|
var name = _ref.name,
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4480
|
+
properties = _ref.properties,
|
|
4481
|
+
_ref$tokens = _ref.tokens,
|
|
4482
|
+
tokens = _ref$tokens === void 0 ? [] : _ref$tokens;
|
|
4404
4483
|
return new TokenGroup(name, tokens, properties);
|
|
4405
4484
|
}
|
|
4406
4485
|
}]);
|
|
4407
|
-
|
|
4408
4486
|
return TokenGroup;
|
|
4409
4487
|
}(Symbol.iterator);
|
|
4410
4488
|
|
|
@@ -4550,10 +4628,14 @@
|
|
|
4550
4628
|
}, {
|
|
4551
4629
|
state: 'selected',
|
|
4552
4630
|
name: 'border-subtle-selected-03'
|
|
4553
|
-
},
|
|
4554
|
-
|
|
4555
|
-
'border-
|
|
4556
|
-
|
|
4631
|
+
},
|
|
4632
|
+
// Border strong
|
|
4633
|
+
'border-strong-01', 'border-strong-02', 'border-strong-03',
|
|
4634
|
+
// Border tile
|
|
4635
|
+
'border-tile-01', 'border-tile-02', 'border-tile-03',
|
|
4636
|
+
// Border inverse
|
|
4637
|
+
'border-inverse',
|
|
4638
|
+
// Border interactive
|
|
4557
4639
|
'border-interactive', {
|
|
4558
4640
|
state: 'disabled',
|
|
4559
4641
|
name: 'border-disabled'
|
|
@@ -4620,11 +4702,13 @@
|
|
|
4620
4702
|
});
|
|
4621
4703
|
var group = TokenGroup.create({
|
|
4622
4704
|
name: 'All',
|
|
4623
|
-
tokens: [background, layer, field,
|
|
4705
|
+
tokens: [background, layer, field,
|
|
4706
|
+
// Interactive
|
|
4624
4707
|
{
|
|
4625
4708
|
name: 'interactive',
|
|
4626
4709
|
properties: ['background', 'text']
|
|
4627
|
-
}, border, text, link, icon, support,
|
|
4710
|
+
}, border, text, link, icon, support,
|
|
4711
|
+
// Misc
|
|
4628
4712
|
{
|
|
4629
4713
|
name: 'highlight'
|
|
4630
4714
|
}, {
|
|
@@ -4693,7 +4777,8 @@
|
|
|
4693
4777
|
var color = TokenGroup.create({
|
|
4694
4778
|
name: 'Color',
|
|
4695
4779
|
properties: [],
|
|
4696
|
-
tokens: ['interactive-01', 'interactive-02', 'interactive-03', 'interactive-04', 'ui-background', 'ui-01', 'ui-02', 'ui-03', 'ui-04', 'ui-05', 'text-01', 'text-02', 'text-03', 'text-04', 'text-05', 'text-error', 'icon-01', 'icon-02', 'icon-03', 'link-01', 'link-02', 'inverse-link', 'field-01', 'field-02', 'inverse-01', 'inverse-02', 'support-01', 'support-02', 'support-03', 'support-04', 'inverse-support-01', 'inverse-support-02', 'inverse-support-03', 'inverse-support-04', 'overlay-01', 'danger-01', 'danger-02', 'focus', 'inverse-focus-ui', 'hover-primary', 'active-primary', 'hover-primary-text', 'hover-secondary', 'active-secondary', 'hover-tertiary', 'active-tertiary', 'hover-ui', 'hover-light-ui', 'hover-selected-ui', 'active-ui', 'active-light-ui', 'selected-ui', 'selected-light-ui', 'inverse-hover-ui', 'hover-danger', 'active-danger', 'hover-row', 'visited-link', 'disabled-01', 'disabled-02', 'disabled-03', 'highlight', 'decorative-01', 'button-separator', 'skeleton-01', 'skeleton-02',
|
|
4780
|
+
tokens: ['interactive-01', 'interactive-02', 'interactive-03', 'interactive-04', 'ui-background', 'ui-01', 'ui-02', 'ui-03', 'ui-04', 'ui-05', 'text-01', 'text-02', 'text-03', 'text-04', 'text-05', 'text-error', 'icon-01', 'icon-02', 'icon-03', 'link-01', 'link-02', 'inverse-link', 'field-01', 'field-02', 'inverse-01', 'inverse-02', 'support-01', 'support-02', 'support-03', 'support-04', 'inverse-support-01', 'inverse-support-02', 'inverse-support-03', 'inverse-support-04', 'overlay-01', 'danger-01', 'danger-02', 'focus', 'inverse-focus-ui', 'hover-primary', 'active-primary', 'hover-primary-text', 'hover-secondary', 'active-secondary', 'hover-tertiary', 'active-tertiary', 'hover-ui', 'hover-light-ui', 'hover-selected-ui', 'active-ui', 'active-light-ui', 'selected-ui', 'selected-light-ui', 'inverse-hover-ui', 'hover-danger', 'active-danger', 'hover-row', 'visited-link', 'disabled-01', 'disabled-02', 'disabled-03', 'highlight', 'decorative-01', 'button-separator', 'skeleton-01', 'skeleton-02',
|
|
4781
|
+
// deprecated
|
|
4697
4782
|
'brand-01', 'brand-02', 'brand-03', 'active-01', 'hover-field', 'danger']
|
|
4698
4783
|
});
|
|
4699
4784
|
var type = TokenGroup.create({
|
|
@@ -4949,6 +5034,34 @@
|
|
|
4949
5034
|
enumerable: true,
|
|
4950
5035
|
get: function () { return layout$2.iconSize02; }
|
|
4951
5036
|
});
|
|
5037
|
+
Object.defineProperty(exports, 'layout01', {
|
|
5038
|
+
enumerable: true,
|
|
5039
|
+
get: function () { return layout$2.layout01; }
|
|
5040
|
+
});
|
|
5041
|
+
Object.defineProperty(exports, 'layout02', {
|
|
5042
|
+
enumerable: true,
|
|
5043
|
+
get: function () { return layout$2.layout02; }
|
|
5044
|
+
});
|
|
5045
|
+
Object.defineProperty(exports, 'layout03', {
|
|
5046
|
+
enumerable: true,
|
|
5047
|
+
get: function () { return layout$2.layout03; }
|
|
5048
|
+
});
|
|
5049
|
+
Object.defineProperty(exports, 'layout04', {
|
|
5050
|
+
enumerable: true,
|
|
5051
|
+
get: function () { return layout$2.layout04; }
|
|
5052
|
+
});
|
|
5053
|
+
Object.defineProperty(exports, 'layout05', {
|
|
5054
|
+
enumerable: true,
|
|
5055
|
+
get: function () { return layout$2.layout05; }
|
|
5056
|
+
});
|
|
5057
|
+
Object.defineProperty(exports, 'layout06', {
|
|
5058
|
+
enumerable: true,
|
|
5059
|
+
get: function () { return layout$2.layout06; }
|
|
5060
|
+
});
|
|
5061
|
+
Object.defineProperty(exports, 'layout07', {
|
|
5062
|
+
enumerable: true,
|
|
5063
|
+
get: function () { return layout$2.layout07; }
|
|
5064
|
+
});
|
|
4952
5065
|
Object.defineProperty(exports, 'size2XLarge', {
|
|
4953
5066
|
enumerable: true,
|
|
4954
5067
|
get: function () { return layout$2.size2XLarge; }
|