@yahoo/uds 2.11.0 → 3.0.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/cli/ButtonFile2.mock.tsx +11 -0
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/cli.ts +1 -1
- package/cli/codemods/addCommentAboveComponents.ts +9 -3
- package/cli/codemods/flattenButtonVariant.ts +143 -0
- package/cli/codemods/utils/index.ts +1 -1
- package/cli/commands/codemod/flattenButtonVariant.ts +16 -0
- package/cli/commands/expo/_setup.ts +1 -0
- package/cli/commands/sync.ts +3 -0
- package/cli/preload.ts +1 -0
- package/cli/tailwindcss.d.ts +2 -0
- package/cli/tsconfig.json +30 -8
- package/cli/utils/auth.ts +1 -0
- package/cli/utils/configWorker.ts +11 -3
- package/cli/utils/purgeCSS.ts +21 -9
- package/cli/utils/setupConfigWorker.ts +2 -2
- package/cli/utils/sortKeys.ts +5 -0
- package/cli/utils/types.ts +3 -1
- package/dist/{Text-UCDorZDD.d.cts → Text-yeQcITg9.d.cts} +30 -69
- package/dist/{Text-UCDorZDD.d.ts → Text-yeQcITg9.d.ts} +30 -69
- package/dist/VStack-CJs5afN8.d.ts +145 -0
- package/dist/VStack-GpQHE4xQ.d.cts +145 -0
- package/dist/chunk-4G4TBHHL.js +2 -0
- package/dist/chunk-6CVEYTLQ.js +2 -0
- package/dist/chunk-6XNKVFUM.cjs +2 -0
- package/dist/chunk-AFPPCX7S.js +2 -0
- package/dist/chunk-BNLUH23E.cjs +1 -0
- package/dist/chunk-EWJ3J526.js +2 -0
- package/dist/chunk-FOX6Q5GR.cjs +1 -0
- package/dist/chunk-HTL6WRXY.cjs +1 -0
- package/dist/chunk-J7PUOUXC.cjs +1 -0
- package/dist/chunk-N3FKHXEJ.js +2 -0
- package/dist/chunk-NUEZVMWZ.cjs +1 -0
- package/dist/chunk-O26JIFUR.cjs +3 -0
- package/dist/chunk-S5UKKXRV.js +2 -0
- package/dist/chunk-WCB4EHGZ.js +3 -0
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +913 -21
- package/dist/client/index.d.ts +913 -21
- package/dist/client/index.js +3 -3
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.d.cts +14 -49
- package/dist/experimental/client/index.d.ts +14 -49
- package/dist/experimental/client/index.js +2 -2
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +4 -55
- package/dist/experimental/index.d.ts +4 -55
- package/dist/experimental/index.js +1 -1
- package/dist/fixtures.cjs +1546 -55
- package/dist/fixtures.d.cts +33 -14
- package/dist/fixtures.d.ts +33 -14
- package/dist/fixtures.js +1519 -49
- package/dist/index-CU_UPAew.d.ts +202 -0
- package/dist/index-DUFUMc1S.d.cts +202 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +245 -128
- package/dist/index.d.ts +245 -128
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -2
- package/dist/tailwind/plugin.d.cts +19 -5
- package/dist/tailwind/plugin.d.ts +19 -5
- package/dist/tailwind/plugin.js +2 -2
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +2 -2
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +1 -1
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +80 -28
- package/dist/tailwind/utils.d.ts +80 -28
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/automation/configs.cjs +1 -0
- package/dist/tokens/automation/configs.d.cts +110 -0
- package/dist/tokens/automation/configs.d.ts +110 -0
- package/dist/tokens/automation/configs.js +1 -0
- package/dist/tokens/automation/properties.cjs +1 -0
- package/dist/tokens/automation/properties.d.cts +7 -0
- package/dist/tokens/automation/properties.d.ts +7 -0
- package/dist/tokens/automation/properties.js +1 -0
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +9355 -15
- package/dist/tokens/index.d.ts +9355 -15
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +7 -23
- package/dist/tokens/parseTokens.d.ts +7 -23
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/types-d2CfR7zp.d.cts +10245 -0
- package/dist/types-d2CfR7zp.d.ts +10245 -0
- package/package.json +15 -2
- package/dist/chunk-3G7IRLGN.js +0 -2
- package/dist/chunk-5WBROFT5.cjs +0 -1
- package/dist/chunk-6453EQCC.cjs +0 -1
- package/dist/chunk-7QHJ6LHA.js +0 -1
- package/dist/chunk-EYFQOFYW.cjs +0 -1
- package/dist/chunk-FWF2C6TL.cjs +0 -1
- package/dist/chunk-FYVGDNGL.js +0 -2
- package/dist/chunk-GIJ2FHY5.cjs +0 -1
- package/dist/chunk-GL5JI7EX.cjs +0 -2
- package/dist/chunk-MOUM7BAW.js +0 -2
- package/dist/chunk-PE2P7J44.js +0 -2
- package/dist/chunk-RXSJCGB3.cjs +0 -1
- package/dist/chunk-SUASN3GG.js +0 -2
- package/dist/chunk-U2K4DT7E.js +0 -3
- package/dist/chunk-VPR62GYQ.js +0 -2
- package/dist/chunk-WJ55DEUW.cjs +0 -2
- package/dist/chunk-X6F5UEQ5.js +0 -2
- package/dist/chunk-XZCEFUNX.cjs +0 -2
- package/dist/types-DPT0rst4.d.cts +0 -991
- package/dist/types-DPT0rst4.d.ts +0 -991
- /package/dist/{motionFeatures-HQUM526D.cjs → motionFeatures-6LIGGXPL.cjs} +0 -0
- /package/dist/{motionFeatures-PRT45UQH.js → motionFeatures-SJISLQ4M.js} +0 -0
package/dist/fixtures.js
CHANGED
@@ -1,3 +1,592 @@
|
|
1
|
+
// ../../node_modules/lodash-es/_freeGlobal.js
|
2
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
3
|
+
var _freeGlobal_default = freeGlobal;
|
4
|
+
// ../../node_modules/lodash-es/_root.js
|
5
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
6
|
+
var root = _freeGlobal_default || freeSelf || Function("return this")();
|
7
|
+
var _root_default = root;
|
8
|
+
// ../../node_modules/lodash-es/_Symbol.js
|
9
|
+
var Symbol = _root_default.Symbol;
|
10
|
+
var _Symbol_default = Symbol;
|
11
|
+
// ../../node_modules/lodash-es/_getRawTag.js
|
12
|
+
var objectProto = Object.prototype;
|
13
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
14
|
+
var nativeObjectToString = objectProto.toString;
|
15
|
+
var symToStringTag = _Symbol_default ? _Symbol_default.toStringTag : undefined;
|
16
|
+
function getRawTag(value) {
|
17
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
18
|
+
try {
|
19
|
+
value[symToStringTag] = undefined;
|
20
|
+
var unmasked = true;
|
21
|
+
}
|
22
|
+
catch (e) { }
|
23
|
+
var result = nativeObjectToString.call(value);
|
24
|
+
if (unmasked) {
|
25
|
+
if (isOwn) {
|
26
|
+
value[symToStringTag] = tag;
|
27
|
+
}
|
28
|
+
else {
|
29
|
+
delete value[symToStringTag];
|
30
|
+
}
|
31
|
+
}
|
32
|
+
return result;
|
33
|
+
}
|
34
|
+
var _getRawTag_default = getRawTag;
|
35
|
+
// ../../node_modules/lodash-es/_objectToString.js
|
36
|
+
var objectProto2 = Object.prototype;
|
37
|
+
var nativeObjectToString2 = objectProto2.toString;
|
38
|
+
function objectToString(value) {
|
39
|
+
return nativeObjectToString2.call(value);
|
40
|
+
}
|
41
|
+
var _objectToString_default = objectToString;
|
42
|
+
// ../../node_modules/lodash-es/_baseGetTag.js
|
43
|
+
var nullTag = "[object Null]";
|
44
|
+
var undefinedTag = "[object Undefined]";
|
45
|
+
var symToStringTag2 = _Symbol_default ? _Symbol_default.toStringTag : undefined;
|
46
|
+
function baseGetTag(value) {
|
47
|
+
if (value == null) {
|
48
|
+
return value === undefined ? undefinedTag : nullTag;
|
49
|
+
}
|
50
|
+
return symToStringTag2 && symToStringTag2 in Object(value) ? _getRawTag_default(value) : _objectToString_default(value);
|
51
|
+
}
|
52
|
+
var _baseGetTag_default = baseGetTag;
|
53
|
+
// ../../node_modules/lodash-es/isObjectLike.js
|
54
|
+
function isObjectLike(value) {
|
55
|
+
return value != null && typeof value == "object";
|
56
|
+
}
|
57
|
+
var isObjectLike_default = isObjectLike;
|
58
|
+
// ../../node_modules/lodash-es/_arrayMap.js
|
59
|
+
function arrayMap(array, iteratee) {
|
60
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
61
|
+
while (++index < length) {
|
62
|
+
result[index] = iteratee(array[index], index, array);
|
63
|
+
}
|
64
|
+
return result;
|
65
|
+
}
|
66
|
+
var _arrayMap_default = arrayMap;
|
67
|
+
// ../../node_modules/lodash-es/isObject.js
|
68
|
+
function isObject(value) {
|
69
|
+
var type = typeof value;
|
70
|
+
return value != null && (type == "object" || type == "function");
|
71
|
+
}
|
72
|
+
var isObject_default = isObject;
|
73
|
+
// ../../node_modules/lodash-es/identity.js
|
74
|
+
function identity(value) {
|
75
|
+
return value;
|
76
|
+
}
|
77
|
+
var identity_default = identity;
|
78
|
+
// ../../node_modules/lodash-es/isFunction.js
|
79
|
+
var asyncTag = "[object AsyncFunction]";
|
80
|
+
var funcTag = "[object Function]";
|
81
|
+
var genTag = "[object GeneratorFunction]";
|
82
|
+
var proxyTag = "[object Proxy]";
|
83
|
+
function isFunction(value) {
|
84
|
+
if (!isObject_default(value)) {
|
85
|
+
return false;
|
86
|
+
}
|
87
|
+
var tag = _baseGetTag_default(value);
|
88
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
89
|
+
}
|
90
|
+
var isFunction_default = isFunction;
|
91
|
+
// ../../node_modules/lodash-es/_coreJsData.js
|
92
|
+
var coreJsData = _root_default["__core-js_shared__"];
|
93
|
+
var _coreJsData_default = coreJsData;
|
94
|
+
// ../../node_modules/lodash-es/_isMasked.js
|
95
|
+
var maskSrcKey = function () {
|
96
|
+
var uid = /[^.]+$/.exec(_coreJsData_default && _coreJsData_default.keys && _coreJsData_default.keys.IE_PROTO || "");
|
97
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
98
|
+
}();
|
99
|
+
function isMasked(func) {
|
100
|
+
return !!maskSrcKey && maskSrcKey in func;
|
101
|
+
}
|
102
|
+
var _isMasked_default = isMasked;
|
103
|
+
// ../../node_modules/lodash-es/_toSource.js
|
104
|
+
var funcProto = Function.prototype;
|
105
|
+
var funcToString = funcProto.toString;
|
106
|
+
function toSource(func) {
|
107
|
+
if (func != null) {
|
108
|
+
try {
|
109
|
+
return funcToString.call(func);
|
110
|
+
}
|
111
|
+
catch (e) { }
|
112
|
+
try {
|
113
|
+
return func + "";
|
114
|
+
}
|
115
|
+
catch (e) { }
|
116
|
+
}
|
117
|
+
return "";
|
118
|
+
}
|
119
|
+
var _toSource_default = toSource;
|
120
|
+
// ../../node_modules/lodash-es/_baseIsNative.js
|
121
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
122
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
123
|
+
var funcProto2 = Function.prototype;
|
124
|
+
var objectProto3 = Object.prototype;
|
125
|
+
var funcToString2 = funcProto2.toString;
|
126
|
+
var hasOwnProperty2 = objectProto3.hasOwnProperty;
|
127
|
+
var reIsNative = RegExp("^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
128
|
+
function baseIsNative(value) {
|
129
|
+
if (!isObject_default(value) || _isMasked_default(value)) {
|
130
|
+
return false;
|
131
|
+
}
|
132
|
+
var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
|
133
|
+
return pattern.test(_toSource_default(value));
|
134
|
+
}
|
135
|
+
var _baseIsNative_default = baseIsNative;
|
136
|
+
// ../../node_modules/lodash-es/_getValue.js
|
137
|
+
function getValue(object, key) {
|
138
|
+
return object == null ? undefined : object[key];
|
139
|
+
}
|
140
|
+
var _getValue_default = getValue;
|
141
|
+
// ../../node_modules/lodash-es/_getNative.js
|
142
|
+
function getNative(object, key) {
|
143
|
+
var value = _getValue_default(object, key);
|
144
|
+
return _baseIsNative_default(value) ? value : undefined;
|
145
|
+
}
|
146
|
+
var _getNative_default = getNative;
|
147
|
+
// ../../node_modules/lodash-es/_apply.js
|
148
|
+
function apply(func, thisArg, args) {
|
149
|
+
switch (args.length) {
|
150
|
+
case 0:
|
151
|
+
return func.call(thisArg);
|
152
|
+
case 1:
|
153
|
+
return func.call(thisArg, args[0]);
|
154
|
+
case 2:
|
155
|
+
return func.call(thisArg, args[0], args[1]);
|
156
|
+
case 3:
|
157
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
158
|
+
}
|
159
|
+
return func.apply(thisArg, args);
|
160
|
+
}
|
161
|
+
var _apply_default = apply;
|
162
|
+
// ../../node_modules/lodash-es/_shortOut.js
|
163
|
+
var HOT_COUNT = 800;
|
164
|
+
var HOT_SPAN = 16;
|
165
|
+
var nativeNow = Date.now;
|
166
|
+
function shortOut(func) {
|
167
|
+
var count = 0, lastCalled = 0;
|
168
|
+
return function () {
|
169
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
170
|
+
lastCalled = stamp;
|
171
|
+
if (remaining > 0) {
|
172
|
+
if (++count >= HOT_COUNT) {
|
173
|
+
return arguments[0];
|
174
|
+
}
|
175
|
+
}
|
176
|
+
else {
|
177
|
+
count = 0;
|
178
|
+
}
|
179
|
+
return func.apply(undefined, arguments);
|
180
|
+
};
|
181
|
+
}
|
182
|
+
var _shortOut_default = shortOut;
|
183
|
+
// ../../node_modules/lodash-es/constant.js
|
184
|
+
function constant(value) {
|
185
|
+
return function () {
|
186
|
+
return value;
|
187
|
+
};
|
188
|
+
}
|
189
|
+
var constant_default = constant;
|
190
|
+
// ../../node_modules/lodash-es/_defineProperty.js
|
191
|
+
var defineProperty = function () {
|
192
|
+
try {
|
193
|
+
var func = _getNative_default(Object, "defineProperty");
|
194
|
+
func({}, "", {});
|
195
|
+
return func;
|
196
|
+
}
|
197
|
+
catch (e) { }
|
198
|
+
}();
|
199
|
+
var _defineProperty_default = defineProperty;
|
200
|
+
// ../../node_modules/lodash-es/_baseSetToString.js
|
201
|
+
var baseSetToString = !_defineProperty_default ? identity_default : function (func, string) {
|
202
|
+
return _defineProperty_default(func, "toString", {
|
203
|
+
configurable: true,
|
204
|
+
enumerable: false,
|
205
|
+
value: constant_default(string),
|
206
|
+
writable: true
|
207
|
+
});
|
208
|
+
};
|
209
|
+
var _baseSetToString_default = baseSetToString;
|
210
|
+
// ../../node_modules/lodash-es/_setToString.js
|
211
|
+
var setToString = _shortOut_default(_baseSetToString_default);
|
212
|
+
var _setToString_default = setToString;
|
213
|
+
// ../../node_modules/lodash-es/_baseFindIndex.js
|
214
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
215
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
216
|
+
while (fromRight ? index-- : ++index < length) {
|
217
|
+
if (predicate(array[index], index, array)) {
|
218
|
+
return index;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
return -1;
|
222
|
+
}
|
223
|
+
var _baseFindIndex_default = baseFindIndex;
|
224
|
+
// ../../node_modules/lodash-es/_baseIsNaN.js
|
225
|
+
function baseIsNaN(value) {
|
226
|
+
return value !== value;
|
227
|
+
}
|
228
|
+
var _baseIsNaN_default = baseIsNaN;
|
229
|
+
// ../../node_modules/lodash-es/_strictIndexOf.js
|
230
|
+
function strictIndexOf(array, value, fromIndex) {
|
231
|
+
var index = fromIndex - 1, length = array.length;
|
232
|
+
while (++index < length) {
|
233
|
+
if (array[index] === value) {
|
234
|
+
return index;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
return -1;
|
238
|
+
}
|
239
|
+
var _strictIndexOf_default = strictIndexOf;
|
240
|
+
// ../../node_modules/lodash-es/_baseIndexOf.js
|
241
|
+
function baseIndexOf(array, value, fromIndex) {
|
242
|
+
return value === value ? _strictIndexOf_default(array, value, fromIndex) : _baseFindIndex_default(array, _baseIsNaN_default, fromIndex);
|
243
|
+
}
|
244
|
+
var _baseIndexOf_default = baseIndexOf;
|
245
|
+
// ../../node_modules/lodash-es/_arrayIncludes.js
|
246
|
+
function arrayIncludes(array, value) {
|
247
|
+
var length = array == null ? 0 : array.length;
|
248
|
+
return !!length && _baseIndexOf_default(array, value, 0) > -1;
|
249
|
+
}
|
250
|
+
var _arrayIncludes_default = arrayIncludes;
|
251
|
+
// ../../node_modules/lodash-es/eq.js
|
252
|
+
function eq(value, other) {
|
253
|
+
return value === other || value !== value && other !== other;
|
254
|
+
}
|
255
|
+
var eq_default = eq;
|
256
|
+
// ../../node_modules/lodash-es/_overRest.js
|
257
|
+
var nativeMax = Math.max;
|
258
|
+
function overRest(func, start, transform) {
|
259
|
+
start = nativeMax(start === undefined ? func.length - 1 : start, 0);
|
260
|
+
return function () {
|
261
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
262
|
+
while (++index < length) {
|
263
|
+
array[index] = args[start + index];
|
264
|
+
}
|
265
|
+
index = -1;
|
266
|
+
var otherArgs = Array(start + 1);
|
267
|
+
while (++index < start) {
|
268
|
+
otherArgs[index] = args[index];
|
269
|
+
}
|
270
|
+
otherArgs[start] = transform(array);
|
271
|
+
return _apply_default(func, this, otherArgs);
|
272
|
+
};
|
273
|
+
}
|
274
|
+
var _overRest_default = overRest;
|
275
|
+
// ../../node_modules/lodash-es/_baseRest.js
|
276
|
+
function baseRest(func, start) {
|
277
|
+
return _setToString_default(_overRest_default(func, start, identity_default), func + "");
|
278
|
+
}
|
279
|
+
var _baseRest_default = baseRest;
|
280
|
+
// ../../node_modules/lodash-es/isLength.js
|
281
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
282
|
+
function isLength(value) {
|
283
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
284
|
+
}
|
285
|
+
var isLength_default = isLength;
|
286
|
+
// ../../node_modules/lodash-es/isArrayLike.js
|
287
|
+
function isArrayLike(value) {
|
288
|
+
return value != null && isLength_default(value.length) && !isFunction_default(value);
|
289
|
+
}
|
290
|
+
var isArrayLike_default = isArrayLike;
|
291
|
+
// ../../node_modules/lodash-es/_baseUnary.js
|
292
|
+
function baseUnary(func) {
|
293
|
+
return function (value) {
|
294
|
+
return func(value);
|
295
|
+
};
|
296
|
+
}
|
297
|
+
var _baseUnary_default = baseUnary;
|
298
|
+
// ../../node_modules/lodash-es/_nativeCreate.js
|
299
|
+
var nativeCreate = _getNative_default(Object, "create");
|
300
|
+
var _nativeCreate_default = nativeCreate;
|
301
|
+
// ../../node_modules/lodash-es/_hashClear.js
|
302
|
+
function hashClear() {
|
303
|
+
this.__data__ = _nativeCreate_default ? _nativeCreate_default(null) : {};
|
304
|
+
this.size = 0;
|
305
|
+
}
|
306
|
+
var _hashClear_default = hashClear;
|
307
|
+
// ../../node_modules/lodash-es/_hashDelete.js
|
308
|
+
function hashDelete(key) {
|
309
|
+
var result = this.has(key) && delete this.__data__[key];
|
310
|
+
this.size -= result ? 1 : 0;
|
311
|
+
return result;
|
312
|
+
}
|
313
|
+
var _hashDelete_default = hashDelete;
|
314
|
+
// ../../node_modules/lodash-es/_hashGet.js
|
315
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
316
|
+
var objectProto4 = Object.prototype;
|
317
|
+
var hasOwnProperty3 = objectProto4.hasOwnProperty;
|
318
|
+
function hashGet(key) {
|
319
|
+
var data = this.__data__;
|
320
|
+
if (_nativeCreate_default) {
|
321
|
+
var result = data[key];
|
322
|
+
return result === HASH_UNDEFINED ? undefined : result;
|
323
|
+
}
|
324
|
+
return hasOwnProperty3.call(data, key) ? data[key] : undefined;
|
325
|
+
}
|
326
|
+
var _hashGet_default = hashGet;
|
327
|
+
// ../../node_modules/lodash-es/_hashHas.js
|
328
|
+
var objectProto5 = Object.prototype;
|
329
|
+
var hasOwnProperty4 = objectProto5.hasOwnProperty;
|
330
|
+
function hashHas(key) {
|
331
|
+
var data = this.__data__;
|
332
|
+
return _nativeCreate_default ? data[key] !== undefined : hasOwnProperty4.call(data, key);
|
333
|
+
}
|
334
|
+
var _hashHas_default = hashHas;
|
335
|
+
// ../../node_modules/lodash-es/_hashSet.js
|
336
|
+
var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
|
337
|
+
function hashSet(key, value) {
|
338
|
+
var data = this.__data__;
|
339
|
+
this.size += this.has(key) ? 0 : 1;
|
340
|
+
data[key] = _nativeCreate_default && value === undefined ? HASH_UNDEFINED2 : value;
|
341
|
+
return this;
|
342
|
+
}
|
343
|
+
var _hashSet_default = hashSet;
|
344
|
+
// ../../node_modules/lodash-es/_Hash.js
|
345
|
+
function Hash(entries) {
|
346
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
347
|
+
this.clear();
|
348
|
+
while (++index < length) {
|
349
|
+
var entry = entries[index];
|
350
|
+
this.set(entry[0], entry[1]);
|
351
|
+
}
|
352
|
+
}
|
353
|
+
Hash.prototype.clear = _hashClear_default;
|
354
|
+
Hash.prototype["delete"] = _hashDelete_default;
|
355
|
+
Hash.prototype.get = _hashGet_default;
|
356
|
+
Hash.prototype.has = _hashHas_default;
|
357
|
+
Hash.prototype.set = _hashSet_default;
|
358
|
+
var _Hash_default = Hash;
|
359
|
+
// ../../node_modules/lodash-es/_listCacheClear.js
|
360
|
+
function listCacheClear() {
|
361
|
+
this.__data__ = [];
|
362
|
+
this.size = 0;
|
363
|
+
}
|
364
|
+
var _listCacheClear_default = listCacheClear;
|
365
|
+
// ../../node_modules/lodash-es/_assocIndexOf.js
|
366
|
+
function assocIndexOf(array, key) {
|
367
|
+
var length = array.length;
|
368
|
+
while (length--) {
|
369
|
+
if (eq_default(array[length][0], key)) {
|
370
|
+
return length;
|
371
|
+
}
|
372
|
+
}
|
373
|
+
return -1;
|
374
|
+
}
|
375
|
+
var _assocIndexOf_default = assocIndexOf;
|
376
|
+
// ../../node_modules/lodash-es/_listCacheDelete.js
|
377
|
+
var arrayProto = Array.prototype;
|
378
|
+
var splice = arrayProto.splice;
|
379
|
+
function listCacheDelete(key) {
|
380
|
+
var data = this.__data__, index = _assocIndexOf_default(data, key);
|
381
|
+
if (index < 0) {
|
382
|
+
return false;
|
383
|
+
}
|
384
|
+
var lastIndex = data.length - 1;
|
385
|
+
if (index == lastIndex) {
|
386
|
+
data.pop();
|
387
|
+
}
|
388
|
+
else {
|
389
|
+
splice.call(data, index, 1);
|
390
|
+
}
|
391
|
+
--this.size;
|
392
|
+
return true;
|
393
|
+
}
|
394
|
+
var _listCacheDelete_default = listCacheDelete;
|
395
|
+
// ../../node_modules/lodash-es/_listCacheGet.js
|
396
|
+
function listCacheGet(key) {
|
397
|
+
var data = this.__data__, index = _assocIndexOf_default(data, key);
|
398
|
+
return index < 0 ? undefined : data[index][1];
|
399
|
+
}
|
400
|
+
var _listCacheGet_default = listCacheGet;
|
401
|
+
// ../../node_modules/lodash-es/_listCacheHas.js
|
402
|
+
function listCacheHas(key) {
|
403
|
+
return _assocIndexOf_default(this.__data__, key) > -1;
|
404
|
+
}
|
405
|
+
var _listCacheHas_default = listCacheHas;
|
406
|
+
// ../../node_modules/lodash-es/_listCacheSet.js
|
407
|
+
function listCacheSet(key, value) {
|
408
|
+
var data = this.__data__, index = _assocIndexOf_default(data, key);
|
409
|
+
if (index < 0) {
|
410
|
+
++this.size;
|
411
|
+
data.push([key, value]);
|
412
|
+
}
|
413
|
+
else {
|
414
|
+
data[index][1] = value;
|
415
|
+
}
|
416
|
+
return this;
|
417
|
+
}
|
418
|
+
var _listCacheSet_default = listCacheSet;
|
419
|
+
// ../../node_modules/lodash-es/_ListCache.js
|
420
|
+
function ListCache(entries) {
|
421
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
422
|
+
this.clear();
|
423
|
+
while (++index < length) {
|
424
|
+
var entry = entries[index];
|
425
|
+
this.set(entry[0], entry[1]);
|
426
|
+
}
|
427
|
+
}
|
428
|
+
ListCache.prototype.clear = _listCacheClear_default;
|
429
|
+
ListCache.prototype["delete"] = _listCacheDelete_default;
|
430
|
+
ListCache.prototype.get = _listCacheGet_default;
|
431
|
+
ListCache.prototype.has = _listCacheHas_default;
|
432
|
+
ListCache.prototype.set = _listCacheSet_default;
|
433
|
+
var _ListCache_default = ListCache;
|
434
|
+
// ../../node_modules/lodash-es/_Map.js
|
435
|
+
var Map = _getNative_default(_root_default, "Map");
|
436
|
+
var _Map_default = Map;
|
437
|
+
// ../../node_modules/lodash-es/_mapCacheClear.js
|
438
|
+
function mapCacheClear() {
|
439
|
+
this.size = 0;
|
440
|
+
this.__data__ = {
|
441
|
+
hash: new _Hash_default,
|
442
|
+
map: new (_Map_default || _ListCache_default),
|
443
|
+
string: new _Hash_default
|
444
|
+
};
|
445
|
+
}
|
446
|
+
var _mapCacheClear_default = mapCacheClear;
|
447
|
+
// ../../node_modules/lodash-es/_isKeyable.js
|
448
|
+
function isKeyable(value) {
|
449
|
+
var type = typeof value;
|
450
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
451
|
+
}
|
452
|
+
var _isKeyable_default = isKeyable;
|
453
|
+
// ../../node_modules/lodash-es/_getMapData.js
|
454
|
+
function getMapData(map, key) {
|
455
|
+
var data = map.__data__;
|
456
|
+
return _isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
457
|
+
}
|
458
|
+
var _getMapData_default = getMapData;
|
459
|
+
// ../../node_modules/lodash-es/_mapCacheDelete.js
|
460
|
+
function mapCacheDelete(key) {
|
461
|
+
var result = _getMapData_default(this, key)["delete"](key);
|
462
|
+
this.size -= result ? 1 : 0;
|
463
|
+
return result;
|
464
|
+
}
|
465
|
+
var _mapCacheDelete_default = mapCacheDelete;
|
466
|
+
// ../../node_modules/lodash-es/_mapCacheGet.js
|
467
|
+
function mapCacheGet(key) {
|
468
|
+
return _getMapData_default(this, key).get(key);
|
469
|
+
}
|
470
|
+
var _mapCacheGet_default = mapCacheGet;
|
471
|
+
// ../../node_modules/lodash-es/_mapCacheHas.js
|
472
|
+
function mapCacheHas(key) {
|
473
|
+
return _getMapData_default(this, key).has(key);
|
474
|
+
}
|
475
|
+
var _mapCacheHas_default = mapCacheHas;
|
476
|
+
// ../../node_modules/lodash-es/_mapCacheSet.js
|
477
|
+
function mapCacheSet(key, value) {
|
478
|
+
var data = _getMapData_default(this, key), size = data.size;
|
479
|
+
data.set(key, value);
|
480
|
+
this.size += data.size == size ? 0 : 1;
|
481
|
+
return this;
|
482
|
+
}
|
483
|
+
var _mapCacheSet_default = mapCacheSet;
|
484
|
+
// ../../node_modules/lodash-es/_MapCache.js
|
485
|
+
function MapCache(entries) {
|
486
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
487
|
+
this.clear();
|
488
|
+
while (++index < length) {
|
489
|
+
var entry = entries[index];
|
490
|
+
this.set(entry[0], entry[1]);
|
491
|
+
}
|
492
|
+
}
|
493
|
+
MapCache.prototype.clear = _mapCacheClear_default;
|
494
|
+
MapCache.prototype["delete"] = _mapCacheDelete_default;
|
495
|
+
MapCache.prototype.get = _mapCacheGet_default;
|
496
|
+
MapCache.prototype.has = _mapCacheHas_default;
|
497
|
+
MapCache.prototype.set = _mapCacheSet_default;
|
498
|
+
var _MapCache_default = MapCache;
|
499
|
+
// ../../node_modules/lodash-es/_setCacheAdd.js
|
500
|
+
var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
|
501
|
+
function setCacheAdd(value) {
|
502
|
+
this.__data__.set(value, HASH_UNDEFINED3);
|
503
|
+
return this;
|
504
|
+
}
|
505
|
+
var _setCacheAdd_default = setCacheAdd;
|
506
|
+
// ../../node_modules/lodash-es/_setCacheHas.js
|
507
|
+
function setCacheHas(value) {
|
508
|
+
return this.__data__.has(value);
|
509
|
+
}
|
510
|
+
var _setCacheHas_default = setCacheHas;
|
511
|
+
// ../../node_modules/lodash-es/_SetCache.js
|
512
|
+
function SetCache(values) {
|
513
|
+
var index = -1, length = values == null ? 0 : values.length;
|
514
|
+
this.__data__ = new _MapCache_default;
|
515
|
+
while (++index < length) {
|
516
|
+
this.add(values[index]);
|
517
|
+
}
|
518
|
+
}
|
519
|
+
SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd_default;
|
520
|
+
SetCache.prototype.has = _setCacheHas_default;
|
521
|
+
var _SetCache_default = SetCache;
|
522
|
+
// ../../node_modules/lodash-es/_cacheHas.js
|
523
|
+
function cacheHas(cache, key) {
|
524
|
+
return cache.has(key);
|
525
|
+
}
|
526
|
+
var _cacheHas_default = cacheHas;
|
527
|
+
// ../../node_modules/lodash-es/isArrayLikeObject.js
|
528
|
+
function isArrayLikeObject(value) {
|
529
|
+
return isObjectLike_default(value) && isArrayLike_default(value);
|
530
|
+
}
|
531
|
+
var isArrayLikeObject_default = isArrayLikeObject;
|
532
|
+
// ../../node_modules/lodash-es/_arrayIncludesWith.js
|
533
|
+
function arrayIncludesWith(array, value, comparator) {
|
534
|
+
var index = -1, length = array == null ? 0 : array.length;
|
535
|
+
while (++index < length) {
|
536
|
+
if (comparator(value, array[index])) {
|
537
|
+
return true;
|
538
|
+
}
|
539
|
+
}
|
540
|
+
return false;
|
541
|
+
}
|
542
|
+
var _arrayIncludesWith_default = arrayIncludesWith;
|
543
|
+
// ../../node_modules/lodash-es/_baseDifference.js
|
544
|
+
var LARGE_ARRAY_SIZE = 200;
|
545
|
+
function baseDifference(array, values, iteratee, comparator) {
|
546
|
+
var index = -1, includes = _arrayIncludes_default, isCommon = true, length = array.length, result = [], valuesLength = values.length;
|
547
|
+
if (!length) {
|
548
|
+
return result;
|
549
|
+
}
|
550
|
+
if (iteratee) {
|
551
|
+
values = _arrayMap_default(values, _baseUnary_default(iteratee));
|
552
|
+
}
|
553
|
+
if (comparator) {
|
554
|
+
includes = _arrayIncludesWith_default;
|
555
|
+
isCommon = false;
|
556
|
+
}
|
557
|
+
else if (values.length >= LARGE_ARRAY_SIZE) {
|
558
|
+
includes = _cacheHas_default;
|
559
|
+
isCommon = false;
|
560
|
+
values = new _SetCache_default(values);
|
561
|
+
}
|
562
|
+
outer: while (++index < length) {
|
563
|
+
var value = array[index], computed = iteratee == null ? value : iteratee(value);
|
564
|
+
value = comparator || value !== 0 ? value : 0;
|
565
|
+
if (isCommon && computed === computed) {
|
566
|
+
var valuesIndex = valuesLength;
|
567
|
+
while (valuesIndex--) {
|
568
|
+
if (values[valuesIndex] === computed) {
|
569
|
+
continue outer;
|
570
|
+
}
|
571
|
+
}
|
572
|
+
result.push(value);
|
573
|
+
}
|
574
|
+
else if (!includes(values, computed, comparator)) {
|
575
|
+
result.push(value);
|
576
|
+
}
|
577
|
+
}
|
578
|
+
return result;
|
579
|
+
}
|
580
|
+
var _baseDifference_default = baseDifference;
|
581
|
+
// ../../node_modules/lodash-es/without.js
|
582
|
+
var without = _baseRest_default(function (array, values) {
|
583
|
+
return isArrayLikeObject_default(array) ? _baseDifference_default(array, values) : [];
|
584
|
+
});
|
585
|
+
var without_default = without;
|
586
|
+
// src/tokens/utils/fromEntries.ts
|
587
|
+
function fromEntries(item) {
|
588
|
+
return Object.fromEntries(item);
|
589
|
+
}
|
1
590
|
// src/fixtures/index.ts
|
2
591
|
var colorModes = [
|
3
592
|
"light",
|
@@ -380,20 +969,35 @@ var spectrumColors = [
|
|
380
969
|
"carbon-14",
|
381
970
|
"carbon-15"
|
382
971
|
];
|
383
|
-
var
|
384
|
-
"
|
972
|
+
var backgroundPaletteColors = [
|
973
|
+
"primary",
|
974
|
+
"secondary",
|
385
975
|
"accent",
|
976
|
+
"brand",
|
386
977
|
"alert",
|
387
978
|
"positive",
|
388
|
-
"warning"
|
389
|
-
|
390
|
-
|
391
|
-
"
|
392
|
-
"secondary"
|
979
|
+
"warning",
|
980
|
+
"info",
|
981
|
+
"brand-secondary",
|
982
|
+
"alert-secondary",
|
983
|
+
"positive-secondary",
|
984
|
+
"warning-secondary",
|
985
|
+
"info-secondary"
|
393
986
|
];
|
394
987
|
var foregroundPaletteColors = [
|
395
988
|
"primary",
|
396
989
|
"secondary",
|
990
|
+
"accent",
|
991
|
+
"brand",
|
992
|
+
"alert",
|
993
|
+
"positive",
|
994
|
+
"warning",
|
995
|
+
"info",
|
996
|
+
"brand-secondary",
|
997
|
+
"alert-secondary",
|
998
|
+
"positive-secondary",
|
999
|
+
"warning-secondary",
|
1000
|
+
"info-secondary",
|
397
1001
|
"tertiary",
|
398
1002
|
"muted",
|
399
1003
|
"on-color"
|
@@ -401,31 +1005,366 @@ var foregroundPaletteColors = [
|
|
401
1005
|
var linePaletteColors = [
|
402
1006
|
"primary",
|
403
1007
|
"secondary",
|
404
|
-
"
|
405
|
-
"
|
406
|
-
|
407
|
-
|
1008
|
+
"accent",
|
1009
|
+
"brand",
|
1010
|
+
"alert",
|
1011
|
+
"positive",
|
1012
|
+
"warning",
|
1013
|
+
"info",
|
1014
|
+
"brand-secondary",
|
1015
|
+
"alert-secondary",
|
1016
|
+
"positive-secondary",
|
1017
|
+
"warning-secondary",
|
1018
|
+
"info-secondary",
|
1019
|
+
"tertiary",
|
1020
|
+
"muted"
|
1021
|
+
];
|
1022
|
+
var alwaysPaletteAliases = [
|
1023
|
+
"transparent",
|
1024
|
+
"white",
|
1025
|
+
"black",
|
1026
|
+
"current"
|
1027
|
+
];
|
1028
|
+
var shadowPaletteColors = [
|
1029
|
+
"primary",
|
1030
|
+
"secondary"
|
1031
|
+
];
|
1032
|
+
var shadowColors = [
|
1033
|
+
"gray-0",
|
1034
|
+
"gray-1",
|
1035
|
+
"gray-2",
|
1036
|
+
"gray-3",
|
1037
|
+
"gray-4",
|
1038
|
+
"gray-5",
|
1039
|
+
"gray-6",
|
1040
|
+
"gray-7",
|
1041
|
+
"gray-8",
|
1042
|
+
"gray-9",
|
1043
|
+
"gray-10",
|
1044
|
+
"gray-11",
|
1045
|
+
"gray-12",
|
1046
|
+
"gray-13",
|
1047
|
+
"gray-14",
|
1048
|
+
"gray-15",
|
1049
|
+
"purple-0",
|
1050
|
+
"purple-1",
|
1051
|
+
"purple-2",
|
1052
|
+
"purple-3",
|
1053
|
+
"purple-4",
|
1054
|
+
"purple-5",
|
1055
|
+
"purple-6",
|
1056
|
+
"purple-7",
|
1057
|
+
"purple-8",
|
1058
|
+
"purple-9",
|
1059
|
+
"purple-10",
|
1060
|
+
"purple-11",
|
1061
|
+
"purple-12",
|
1062
|
+
"purple-13",
|
1063
|
+
"purple-14",
|
1064
|
+
"purple-15",
|
1065
|
+
"indigo-0",
|
1066
|
+
"indigo-1",
|
1067
|
+
"indigo-2",
|
1068
|
+
"indigo-3",
|
1069
|
+
"indigo-4",
|
1070
|
+
"indigo-5",
|
1071
|
+
"indigo-6",
|
1072
|
+
"indigo-7",
|
1073
|
+
"indigo-8",
|
1074
|
+
"indigo-9",
|
1075
|
+
"indigo-10",
|
1076
|
+
"indigo-11",
|
1077
|
+
"indigo-12",
|
1078
|
+
"indigo-13",
|
1079
|
+
"indigo-14",
|
1080
|
+
"indigo-15",
|
1081
|
+
"blue-0",
|
1082
|
+
"blue-1",
|
1083
|
+
"blue-2",
|
1084
|
+
"blue-3",
|
1085
|
+
"blue-4",
|
1086
|
+
"blue-5",
|
1087
|
+
"blue-6",
|
1088
|
+
"blue-7",
|
1089
|
+
"blue-8",
|
1090
|
+
"blue-9",
|
1091
|
+
"blue-10",
|
1092
|
+
"blue-11",
|
1093
|
+
"blue-12",
|
1094
|
+
"blue-13",
|
1095
|
+
"blue-14",
|
1096
|
+
"blue-15",
|
1097
|
+
"cyan-0",
|
1098
|
+
"cyan-1",
|
1099
|
+
"cyan-2",
|
1100
|
+
"cyan-3",
|
1101
|
+
"cyan-4",
|
1102
|
+
"cyan-5",
|
1103
|
+
"cyan-6",
|
1104
|
+
"cyan-7",
|
1105
|
+
"cyan-8",
|
1106
|
+
"cyan-9",
|
1107
|
+
"cyan-10",
|
1108
|
+
"cyan-11",
|
1109
|
+
"cyan-12",
|
1110
|
+
"cyan-13",
|
1111
|
+
"cyan-14",
|
1112
|
+
"cyan-15",
|
1113
|
+
"teal-0",
|
1114
|
+
"teal-1",
|
1115
|
+
"teal-2",
|
1116
|
+
"teal-3",
|
1117
|
+
"teal-4",
|
1118
|
+
"teal-5",
|
1119
|
+
"teal-6",
|
1120
|
+
"teal-7",
|
1121
|
+
"teal-8",
|
1122
|
+
"teal-9",
|
1123
|
+
"teal-10",
|
1124
|
+
"teal-11",
|
1125
|
+
"teal-12",
|
1126
|
+
"teal-13",
|
1127
|
+
"teal-14",
|
1128
|
+
"teal-15",
|
1129
|
+
"mint-0",
|
1130
|
+
"mint-1",
|
1131
|
+
"mint-2",
|
1132
|
+
"mint-3",
|
1133
|
+
"mint-4",
|
1134
|
+
"mint-5",
|
1135
|
+
"mint-6",
|
1136
|
+
"mint-7",
|
1137
|
+
"mint-8",
|
1138
|
+
"mint-9",
|
1139
|
+
"mint-10",
|
1140
|
+
"mint-11",
|
1141
|
+
"mint-12",
|
1142
|
+
"mint-13",
|
1143
|
+
"mint-14",
|
1144
|
+
"mint-15",
|
1145
|
+
"green-0",
|
1146
|
+
"green-1",
|
1147
|
+
"green-2",
|
1148
|
+
"green-3",
|
1149
|
+
"green-4",
|
1150
|
+
"green-5",
|
1151
|
+
"green-6",
|
1152
|
+
"green-7",
|
1153
|
+
"green-8",
|
1154
|
+
"green-9",
|
1155
|
+
"green-10",
|
1156
|
+
"green-11",
|
1157
|
+
"green-12",
|
1158
|
+
"green-13",
|
1159
|
+
"green-14",
|
1160
|
+
"green-15",
|
1161
|
+
"lime-0",
|
1162
|
+
"lime-1",
|
1163
|
+
"lime-2",
|
1164
|
+
"lime-3",
|
1165
|
+
"lime-4",
|
1166
|
+
"lime-5",
|
1167
|
+
"lime-6",
|
1168
|
+
"lime-7",
|
1169
|
+
"lime-8",
|
1170
|
+
"lime-9",
|
1171
|
+
"lime-10",
|
1172
|
+
"lime-11",
|
1173
|
+
"lime-12",
|
1174
|
+
"lime-13",
|
1175
|
+
"lime-14",
|
1176
|
+
"lime-15",
|
1177
|
+
"citron-0",
|
1178
|
+
"citron-1",
|
1179
|
+
"citron-2",
|
1180
|
+
"citron-3",
|
1181
|
+
"citron-4",
|
1182
|
+
"citron-5",
|
1183
|
+
"citron-6",
|
1184
|
+
"citron-7",
|
1185
|
+
"citron-8",
|
1186
|
+
"citron-9",
|
1187
|
+
"citron-10",
|
1188
|
+
"citron-11",
|
1189
|
+
"citron-12",
|
1190
|
+
"citron-13",
|
1191
|
+
"citron-14",
|
1192
|
+
"citron-15",
|
1193
|
+
"yellow-0",
|
1194
|
+
"yellow-1",
|
1195
|
+
"yellow-2",
|
1196
|
+
"yellow-3",
|
1197
|
+
"yellow-4",
|
1198
|
+
"yellow-5",
|
1199
|
+
"yellow-6",
|
1200
|
+
"yellow-7",
|
1201
|
+
"yellow-8",
|
1202
|
+
"yellow-9",
|
1203
|
+
"yellow-10",
|
1204
|
+
"yellow-11",
|
1205
|
+
"yellow-12",
|
1206
|
+
"yellow-13",
|
1207
|
+
"yellow-14",
|
1208
|
+
"yellow-15",
|
1209
|
+
"brown-0",
|
1210
|
+
"brown-1",
|
1211
|
+
"brown-2",
|
1212
|
+
"brown-3",
|
1213
|
+
"brown-4",
|
1214
|
+
"brown-5",
|
1215
|
+
"brown-6",
|
1216
|
+
"brown-7",
|
1217
|
+
"brown-8",
|
1218
|
+
"brown-9",
|
1219
|
+
"brown-10",
|
1220
|
+
"brown-11",
|
1221
|
+
"brown-12",
|
1222
|
+
"brown-13",
|
1223
|
+
"brown-14",
|
1224
|
+
"brown-15",
|
1225
|
+
"nude-0",
|
1226
|
+
"nude-1",
|
1227
|
+
"nude-2",
|
1228
|
+
"nude-3",
|
1229
|
+
"nude-4",
|
1230
|
+
"nude-5",
|
1231
|
+
"nude-6",
|
1232
|
+
"nude-7",
|
1233
|
+
"nude-8",
|
1234
|
+
"nude-9",
|
1235
|
+
"nude-10",
|
1236
|
+
"nude-11",
|
1237
|
+
"nude-12",
|
1238
|
+
"nude-13",
|
1239
|
+
"nude-14",
|
1240
|
+
"nude-15",
|
1241
|
+
"orange-0",
|
1242
|
+
"orange-1",
|
1243
|
+
"orange-2",
|
1244
|
+
"orange-3",
|
1245
|
+
"orange-4",
|
1246
|
+
"orange-5",
|
1247
|
+
"orange-6",
|
1248
|
+
"orange-7",
|
1249
|
+
"orange-8",
|
1250
|
+
"orange-9",
|
1251
|
+
"orange-10",
|
1252
|
+
"orange-11",
|
1253
|
+
"orange-12",
|
1254
|
+
"orange-13",
|
1255
|
+
"orange-14",
|
1256
|
+
"orange-15",
|
1257
|
+
"sunset-0",
|
1258
|
+
"sunset-1",
|
1259
|
+
"sunset-2",
|
1260
|
+
"sunset-3",
|
1261
|
+
"sunset-4",
|
1262
|
+
"sunset-5",
|
1263
|
+
"sunset-6",
|
1264
|
+
"sunset-7",
|
1265
|
+
"sunset-8",
|
1266
|
+
"sunset-9",
|
1267
|
+
"sunset-10",
|
1268
|
+
"sunset-11",
|
1269
|
+
"sunset-12",
|
1270
|
+
"sunset-13",
|
1271
|
+
"sunset-14",
|
1272
|
+
"sunset-15",
|
1273
|
+
"red-0",
|
1274
|
+
"red-1",
|
1275
|
+
"red-2",
|
1276
|
+
"red-3",
|
1277
|
+
"red-4",
|
1278
|
+
"red-5",
|
1279
|
+
"red-6",
|
1280
|
+
"red-7",
|
1281
|
+
"red-8",
|
1282
|
+
"red-9",
|
1283
|
+
"red-10",
|
1284
|
+
"red-11",
|
1285
|
+
"red-12",
|
1286
|
+
"red-13",
|
1287
|
+
"red-14",
|
1288
|
+
"red-15",
|
1289
|
+
"rose-0",
|
1290
|
+
"rose-1",
|
1291
|
+
"rose-2",
|
1292
|
+
"rose-3",
|
1293
|
+
"rose-4",
|
1294
|
+
"rose-5",
|
1295
|
+
"rose-6",
|
1296
|
+
"rose-7",
|
1297
|
+
"rose-8",
|
1298
|
+
"rose-9",
|
1299
|
+
"rose-10",
|
1300
|
+
"rose-11",
|
1301
|
+
"rose-12",
|
1302
|
+
"rose-13",
|
1303
|
+
"rose-14",
|
1304
|
+
"rose-15",
|
1305
|
+
"pink-0",
|
1306
|
+
"pink-1",
|
1307
|
+
"pink-2",
|
1308
|
+
"pink-3",
|
1309
|
+
"pink-4",
|
1310
|
+
"pink-5",
|
1311
|
+
"pink-6",
|
1312
|
+
"pink-7",
|
1313
|
+
"pink-8",
|
1314
|
+
"pink-9",
|
1315
|
+
"pink-10",
|
1316
|
+
"pink-11",
|
1317
|
+
"pink-12",
|
1318
|
+
"pink-13",
|
1319
|
+
"pink-14",
|
1320
|
+
"pink-15",
|
1321
|
+
"magenta-0",
|
1322
|
+
"magenta-1",
|
1323
|
+
"magenta-2",
|
1324
|
+
"magenta-3",
|
1325
|
+
"magenta-4",
|
1326
|
+
"magenta-5",
|
1327
|
+
"magenta-6",
|
1328
|
+
"magenta-7",
|
1329
|
+
"magenta-8",
|
1330
|
+
"magenta-9",
|
1331
|
+
"magenta-10",
|
1332
|
+
"magenta-11",
|
1333
|
+
"magenta-12",
|
1334
|
+
"magenta-13",
|
1335
|
+
"magenta-14",
|
1336
|
+
"magenta-15",
|
1337
|
+
"carbon-0",
|
1338
|
+
"carbon-1",
|
1339
|
+
"carbon-2",
|
1340
|
+
"carbon-3",
|
1341
|
+
"carbon-4",
|
1342
|
+
"carbon-5",
|
1343
|
+
"carbon-6",
|
1344
|
+
"carbon-7",
|
1345
|
+
"carbon-8",
|
1346
|
+
"carbon-9",
|
1347
|
+
"carbon-10",
|
1348
|
+
"carbon-11",
|
1349
|
+
"carbon-12",
|
1350
|
+
"carbon-13",
|
1351
|
+
"carbon-14",
|
1352
|
+
"carbon-15",
|
1353
|
+
"primary",
|
1354
|
+
"secondary",
|
408
1355
|
"transparent",
|
409
1356
|
"white",
|
410
1357
|
"black",
|
411
1358
|
"current"
|
412
1359
|
];
|
413
|
-
var backgroundColors = [
|
414
|
-
|
415
|
-
|
416
|
-
...alwaysPaletteAliases
|
417
|
-
];
|
418
|
-
var foregroundColors = [
|
419
|
-
...corePaletteColors,
|
420
|
-
...foregroundPaletteColors,
|
421
|
-
...alwaysPaletteAliases
|
422
|
-
];
|
423
|
-
var lineColors = [...corePaletteColors, ...linePaletteColors, ...alwaysPaletteAliases];
|
1360
|
+
var backgroundColors = [...backgroundPaletteColors, ...alwaysPaletteAliases];
|
1361
|
+
var foregroundColors = [...foregroundPaletteColors, ...alwaysPaletteAliases];
|
1362
|
+
var lineColors = [...linePaletteColors, ...alwaysPaletteAliases];
|
424
1363
|
var palette = {
|
425
|
-
core: corePaletteColors,
|
426
1364
|
background: backgroundPaletteColors,
|
427
1365
|
foreground: foregroundPaletteColors,
|
428
|
-
line: linePaletteColors
|
1366
|
+
line: linePaletteColors,
|
1367
|
+
shadow: shadowPaletteColors
|
429
1368
|
};
|
430
1369
|
var tailwindColorsAsUds = {
|
431
1370
|
slate: {
|
@@ -715,6 +1654,27 @@ var tailwindColorsAsUds = {
|
|
715
1654
|
"950": "rgb(var(--uds-spectrum-color-rose-13))"
|
716
1655
|
}
|
717
1656
|
};
|
1657
|
+
var idealColorSorting = [
|
1658
|
+
"primary",
|
1659
|
+
"secondary",
|
1660
|
+
"tertiary",
|
1661
|
+
"muted",
|
1662
|
+
"on-color",
|
1663
|
+
"accent",
|
1664
|
+
"brand",
|
1665
|
+
"brand-secondary",
|
1666
|
+
"info",
|
1667
|
+
"info-secondary",
|
1668
|
+
"alert",
|
1669
|
+
"alert-secondary",
|
1670
|
+
"positive",
|
1671
|
+
"positive-secondary",
|
1672
|
+
"warning",
|
1673
|
+
"warning-secondary"
|
1674
|
+
];
|
1675
|
+
function sortPalette(palette2, ordering = idealColorSorting) {
|
1676
|
+
return Object.entries(palette2).sort(([prevPaletteAlias], [nextPaletteAlias]) => ordering.indexOf(prevPaletteAlias) - ordering.indexOf(nextPaletteAlias));
|
1677
|
+
}
|
718
1678
|
var textVariants = [
|
719
1679
|
"display1",
|
720
1680
|
"display2",
|
@@ -727,6 +1687,8 @@ var textVariants = [
|
|
727
1687
|
"body1",
|
728
1688
|
"label1",
|
729
1689
|
"label2",
|
1690
|
+
"label3",
|
1691
|
+
"label4",
|
730
1692
|
"caption1",
|
731
1693
|
"caption2",
|
732
1694
|
"legal1"
|
@@ -752,6 +1714,7 @@ var fontIds = [
|
|
752
1714
|
"yahoo-sans",
|
753
1715
|
"yahoo-sans-cr4",
|
754
1716
|
"yahoo-product-sans",
|
1717
|
+
"yahoo-product-sans-extended",
|
755
1718
|
"yahoo-sans-condensed",
|
756
1719
|
"yahoo-serif-display",
|
757
1720
|
"yahoo-serif-text"
|
@@ -776,21 +1739,16 @@ var fontUrls = [
|
|
776
1739
|
"https://s.yimg.com/bw/fonts/inter-vf.woff2",
|
777
1740
|
"https://s.yimg.com/bw/fonts/roboto-mono-100.woff2",
|
778
1741
|
"https://s.yimg.com/bw/fonts/roboto-mono-100-italic.woff2",
|
779
|
-
"https://s.yimg.com/bw/fonts/roboto-mono-200.woff2",
|
780
|
-
"https://s.yimg.com/bw/fonts/roboto-mono-200-italic.woff2",
|
781
1742
|
"https://s.yimg.com/bw/fonts/roboto-mono-300.woff2",
|
782
1743
|
"https://s.yimg.com/bw/fonts/roboto-mono-300-italic.woff2",
|
783
1744
|
"https://s.yimg.com/bw/fonts/roboto-mono-400.woff2",
|
784
1745
|
"https://s.yimg.com/bw/fonts/roboto-mono-400-italic.woff2",
|
785
1746
|
"https://s.yimg.com/bw/fonts/roboto-mono-500.woff2",
|
786
1747
|
"https://s.yimg.com/bw/fonts/roboto-mono-500-italic.woff2",
|
787
|
-
"https://s.yimg.com/bw/fonts/roboto-mono-600.woff2",
|
788
|
-
"https://s.yimg.com/bw/fonts/roboto-mono-600-italic.woff2",
|
789
1748
|
"https://s.yimg.com/bw/fonts/roboto-mono-700.woff2",
|
790
1749
|
"https://s.yimg.com/bw/fonts/roboto-mono-700-italic.woff2",
|
791
1750
|
"https://s.yimg.com/bw/fonts/yahoo-sans-vf.woff2",
|
792
1751
|
"https://s.yimg.com/bw/fonts/yahoo-sans-cr4-vf.woff2",
|
793
|
-
"https://s.yimg.com/bw/fonts/yahoo-product-sans-vf.woff2",
|
794
1752
|
"https://s.yimg.com/bw/fonts/yahoo-sans-condensed-vf.woff2",
|
795
1753
|
"https://s.yimg.com/bw/fonts/yahoo-serif-display-light.woff2",
|
796
1754
|
"https://s.yimg.com/bw/fonts/yahoo-serif-display-regular.woff2",
|
@@ -832,6 +1790,8 @@ var fontSizeRamp = {
|
|
832
1790
|
body1: -3,
|
833
1791
|
label1: -2,
|
834
1792
|
label2: -2,
|
1793
|
+
label3: -2,
|
1794
|
+
label4: -2,
|
835
1795
|
caption1: -1,
|
836
1796
|
caption2: -1,
|
837
1797
|
legal1: -1
|
@@ -848,6 +1808,8 @@ var fontSizeRamp = {
|
|
848
1808
|
body1: -2,
|
849
1809
|
label1: -1,
|
850
1810
|
label2: -1,
|
1811
|
+
label3: -1,
|
1812
|
+
label4: -1,
|
851
1813
|
caption1: 0,
|
852
1814
|
caption2: 0,
|
853
1815
|
legal1: 0
|
@@ -864,6 +1826,8 @@ var fontSizeRamp = {
|
|
864
1826
|
body1: -1,
|
865
1827
|
label1: -1,
|
866
1828
|
label2: -1,
|
1829
|
+
label3: -1,
|
1830
|
+
label4: -1,
|
867
1831
|
caption1: 0,
|
868
1832
|
caption2: 0,
|
869
1833
|
legal1: 0
|
@@ -880,6 +1844,8 @@ var fontSizeRamp = {
|
|
880
1844
|
body1: 0,
|
881
1845
|
label1: 0,
|
882
1846
|
label2: 0,
|
1847
|
+
label3: 0,
|
1848
|
+
label4: 0,
|
883
1849
|
caption1: 0,
|
884
1850
|
caption2: 0,
|
885
1851
|
legal1: 0
|
@@ -896,6 +1862,8 @@ var fontSizeRamp = {
|
|
896
1862
|
body1: 0,
|
897
1863
|
label1: 2,
|
898
1864
|
label2: 2,
|
1865
|
+
label3: 2,
|
1866
|
+
label4: 2,
|
899
1867
|
caption1: 2,
|
900
1868
|
caption2: 2,
|
901
1869
|
legal1: 2
|
@@ -912,6 +1880,8 @@ var fontSizeRamp = {
|
|
912
1880
|
body1: 4,
|
913
1881
|
label1: 4,
|
914
1882
|
label2: 4,
|
1883
|
+
label3: 4,
|
1884
|
+
label4: 4,
|
915
1885
|
caption1: 4,
|
916
1886
|
caption2: 4,
|
917
1887
|
legal1: 4
|
@@ -928,6 +1898,8 @@ var fontSizeRamp = {
|
|
928
1898
|
body1: 6,
|
929
1899
|
label1: 6,
|
930
1900
|
label2: 6,
|
1901
|
+
label3: 6,
|
1902
|
+
label4: 6,
|
931
1903
|
caption1: 6,
|
932
1904
|
caption2: 6,
|
933
1905
|
legal1: 6
|
@@ -936,8 +1908,8 @@ var fontSizeRamp = {
|
|
936
1908
|
var lineHeightRamp = {
|
937
1909
|
xSmall: {
|
938
1910
|
display1: 0,
|
939
|
-
display2: 0,
|
940
1911
|
display3: 0,
|
1912
|
+
display2: 0,
|
941
1913
|
title1: -4,
|
942
1914
|
title2: -4,
|
943
1915
|
title3: -4,
|
@@ -946,14 +1918,16 @@ var lineHeightRamp = {
|
|
946
1918
|
body1: -4,
|
947
1919
|
label1: -4,
|
948
1920
|
label2: -4,
|
1921
|
+
label3: -4,
|
1922
|
+
label4: -4,
|
949
1923
|
caption1: 0,
|
950
1924
|
caption2: 0,
|
951
1925
|
legal1: -4
|
952
1926
|
},
|
953
1927
|
small: {
|
954
1928
|
display1: 0,
|
955
|
-
display2: 0,
|
956
1929
|
display3: 0,
|
1930
|
+
display2: 0,
|
957
1931
|
title1: 0,
|
958
1932
|
title2: -4,
|
959
1933
|
title3: -4,
|
@@ -962,14 +1936,16 @@ var lineHeightRamp = {
|
|
962
1936
|
body1: 0,
|
963
1937
|
label1: -4,
|
964
1938
|
label2: -4,
|
1939
|
+
label3: -4,
|
1940
|
+
label4: -4,
|
965
1941
|
caption1: 0,
|
966
1942
|
caption2: 0,
|
967
1943
|
legal1: 0
|
968
1944
|
},
|
969
1945
|
medium: {
|
970
1946
|
display1: 0,
|
971
|
-
display2: 0,
|
972
1947
|
display3: 0,
|
1948
|
+
display2: 0,
|
973
1949
|
title1: 0,
|
974
1950
|
title2: 0,
|
975
1951
|
title3: 0,
|
@@ -978,14 +1954,16 @@ var lineHeightRamp = {
|
|
978
1954
|
body1: 0,
|
979
1955
|
label1: -4,
|
980
1956
|
label2: -4,
|
1957
|
+
label3: -4,
|
1958
|
+
label4: -4,
|
981
1959
|
caption1: 0,
|
982
1960
|
caption2: 0,
|
983
1961
|
legal1: 0
|
984
1962
|
},
|
985
1963
|
large: {
|
986
1964
|
display1: 0,
|
987
|
-
display2: 0,
|
988
1965
|
display3: 0,
|
1966
|
+
display2: 0,
|
989
1967
|
title1: 0,
|
990
1968
|
title2: 0,
|
991
1969
|
title3: 0,
|
@@ -994,14 +1972,16 @@ var lineHeightRamp = {
|
|
994
1972
|
body1: 0,
|
995
1973
|
label1: 0,
|
996
1974
|
label2: 0,
|
1975
|
+
label3: 0,
|
1976
|
+
label4: 0,
|
997
1977
|
caption1: 0,
|
998
1978
|
caption2: 0,
|
999
1979
|
legal1: 0
|
1000
1980
|
},
|
1001
1981
|
xLarge: {
|
1002
1982
|
display1: 0,
|
1003
|
-
display2: 0,
|
1004
1983
|
display3: 0,
|
1984
|
+
display2: 0,
|
1005
1985
|
title1: 4,
|
1006
1986
|
title2: 0,
|
1007
1987
|
title3: 0,
|
@@ -1010,14 +1990,16 @@ var lineHeightRamp = {
|
|
1010
1990
|
body1: 4,
|
1011
1991
|
label1: 0,
|
1012
1992
|
label2: 0,
|
1993
|
+
label3: 0,
|
1994
|
+
label4: 0,
|
1013
1995
|
caption1: 4,
|
1014
1996
|
caption2: 4,
|
1015
1997
|
legal1: 0
|
1016
1998
|
},
|
1017
1999
|
xxLarge: {
|
1018
2000
|
display1: 0,
|
1019
|
-
display2: 0,
|
1020
2001
|
display3: 0,
|
2002
|
+
display2: 0,
|
1021
2003
|
title1: 4,
|
1022
2004
|
title2: 4,
|
1023
2005
|
title3: 4,
|
@@ -1026,14 +2008,16 @@ var lineHeightRamp = {
|
|
1026
2008
|
body1: 8,
|
1027
2009
|
label1: 4,
|
1028
2010
|
label2: 4,
|
2011
|
+
label3: 4,
|
2012
|
+
label4: 4,
|
1029
2013
|
caption1: 4,
|
1030
2014
|
caption2: 4,
|
1031
2015
|
legal1: 4
|
1032
2016
|
},
|
1033
2017
|
xxxLarge: {
|
1034
2018
|
display1: 0,
|
1035
|
-
display2: 0,
|
1036
2019
|
display3: 0,
|
2020
|
+
display2: 0,
|
1037
2021
|
title1: 8,
|
1038
2022
|
title2: 8,
|
1039
2023
|
title3: 4,
|
@@ -1042,15 +2026,19 @@ var lineHeightRamp = {
|
|
1042
2026
|
body1: 8,
|
1043
2027
|
label1: 8,
|
1044
2028
|
label2: 8,
|
2029
|
+
label3: 8,
|
2030
|
+
label4: 8,
|
1045
2031
|
caption1: 8,
|
1046
2032
|
caption2: 8,
|
1047
2033
|
legal1: 4
|
1048
2034
|
}
|
1049
2035
|
};
|
1050
2036
|
var avatarSizes = [
|
2037
|
+
"xs",
|
1051
2038
|
"sm",
|
1052
2039
|
"md",
|
1053
|
-
"lg"
|
2040
|
+
"lg",
|
2041
|
+
"xl"
|
1054
2042
|
];
|
1055
2043
|
var avatarShapes = [
|
1056
2044
|
"none",
|
@@ -1192,7 +2180,8 @@ var iconSizes = [
|
|
1192
2180
|
];
|
1193
2181
|
var iconVariants = [
|
1194
2182
|
"fill",
|
1195
|
-
"outline"
|
2183
|
+
"outline",
|
2184
|
+
"multicolor"
|
1196
2185
|
];
|
1197
2186
|
var spacingAliases = [
|
1198
2187
|
"0",
|
@@ -1268,14 +2257,394 @@ var spacingMap = {
|
|
1268
2257
|
"80": 320,
|
1269
2258
|
"96": 384
|
1270
2259
|
};
|
1271
|
-
var
|
1272
|
-
|
1273
|
-
|
2260
|
+
var shadowOffsets = [
|
2261
|
+
"0",
|
2262
|
+
"1",
|
2263
|
+
"2",
|
2264
|
+
"3",
|
2265
|
+
"4",
|
2266
|
+
"5",
|
2267
|
+
"6",
|
2268
|
+
"7",
|
2269
|
+
"8",
|
2270
|
+
"9",
|
2271
|
+
"10",
|
2272
|
+
"11",
|
2273
|
+
"12",
|
2274
|
+
"14",
|
2275
|
+
"px",
|
2276
|
+
"0.5",
|
2277
|
+
"1.5",
|
2278
|
+
"2.5",
|
2279
|
+
"3.5",
|
2280
|
+
"16",
|
2281
|
+
"20",
|
2282
|
+
"24",
|
2283
|
+
"28",
|
2284
|
+
"32",
|
2285
|
+
"36",
|
2286
|
+
"40",
|
2287
|
+
"44",
|
2288
|
+
"48",
|
2289
|
+
"52",
|
2290
|
+
"56",
|
2291
|
+
"60",
|
2292
|
+
"64",
|
2293
|
+
"72",
|
2294
|
+
"80",
|
2295
|
+
"96",
|
2296
|
+
"-1",
|
2297
|
+
"-2",
|
2298
|
+
"-3",
|
2299
|
+
"-4",
|
2300
|
+
"-5",
|
2301
|
+
"-6",
|
2302
|
+
"-7",
|
2303
|
+
"-8",
|
2304
|
+
"-9",
|
2305
|
+
"-10",
|
2306
|
+
"-11",
|
2307
|
+
"-12",
|
2308
|
+
"-14",
|
2309
|
+
"-px",
|
2310
|
+
"-0.5",
|
2311
|
+
"-1.5",
|
2312
|
+
"-2.5",
|
2313
|
+
"-3.5",
|
2314
|
+
"-16",
|
2315
|
+
"-20",
|
2316
|
+
"-24",
|
2317
|
+
"-28",
|
2318
|
+
"-32",
|
2319
|
+
"-36",
|
2320
|
+
"-40",
|
2321
|
+
"-44",
|
2322
|
+
"-48",
|
2323
|
+
"-52",
|
2324
|
+
"-56",
|
2325
|
+
"-60",
|
2326
|
+
"-64",
|
2327
|
+
"-72",
|
2328
|
+
"-80",
|
2329
|
+
"-96"
|
2330
|
+
];
|
2331
|
+
var shadowOffsetMap = {
|
2332
|
+
"-96": -384,
|
2333
|
+
"-80": -320,
|
2334
|
+
"-72": -288,
|
2335
|
+
"-64": -256,
|
2336
|
+
"-60": -240,
|
2337
|
+
"-56": -224,
|
2338
|
+
"-52": -208,
|
2339
|
+
"-48": -192,
|
2340
|
+
"-44": -176,
|
2341
|
+
"-40": -160,
|
2342
|
+
"-36": -144,
|
2343
|
+
"-32": -128,
|
2344
|
+
"-28": -112,
|
2345
|
+
"-24": -96,
|
2346
|
+
"-20": -80,
|
2347
|
+
"-16": -64,
|
2348
|
+
"-14": -56,
|
2349
|
+
"-12": -48,
|
2350
|
+
"-11": -44,
|
2351
|
+
"-10": -40,
|
2352
|
+
"-9": -36,
|
2353
|
+
"-8": -32,
|
2354
|
+
"-7": -28,
|
2355
|
+
"-6": -24,
|
2356
|
+
"-5": -20,
|
2357
|
+
"-4": -16,
|
2358
|
+
"-3.5": -14,
|
2359
|
+
"-3": -12,
|
2360
|
+
"-2.5": -10,
|
2361
|
+
"-2": -8,
|
2362
|
+
"-1.5": -6,
|
2363
|
+
"-1": -4,
|
2364
|
+
"-0.5": -2,
|
2365
|
+
"-px": -1,
|
2366
|
+
"0": 0,
|
2367
|
+
px: 1,
|
2368
|
+
"0.5": 2,
|
2369
|
+
"1": 4,
|
2370
|
+
"1.5": 6,
|
2371
|
+
"2": 8,
|
2372
|
+
"2.5": 10,
|
2373
|
+
"3": 12,
|
2374
|
+
"3.5": 14,
|
2375
|
+
"4": 16,
|
2376
|
+
"5": 20,
|
2377
|
+
"6": 24,
|
2378
|
+
"7": 28,
|
2379
|
+
"8": 32,
|
2380
|
+
"9": 36,
|
2381
|
+
"10": 40,
|
2382
|
+
"11": 44,
|
2383
|
+
"12": 48,
|
2384
|
+
"14": 56,
|
2385
|
+
"16": 64,
|
2386
|
+
"20": 80,
|
2387
|
+
"24": 96,
|
2388
|
+
"28": 112,
|
2389
|
+
"32": 128,
|
2390
|
+
"36": 144,
|
2391
|
+
"40": 160,
|
2392
|
+
"44": 176,
|
2393
|
+
"48": 192,
|
2394
|
+
"52": 208,
|
2395
|
+
"56": 224,
|
2396
|
+
"60": 240,
|
2397
|
+
"64": 256,
|
2398
|
+
"72": 288,
|
2399
|
+
"80": 320,
|
2400
|
+
"96": 384
|
2401
|
+
};
|
2402
|
+
var shadowSpreadRadii = [
|
2403
|
+
"0",
|
2404
|
+
"1",
|
2405
|
+
"2",
|
2406
|
+
"3",
|
2407
|
+
"4",
|
2408
|
+
"5",
|
2409
|
+
"6",
|
2410
|
+
"7",
|
2411
|
+
"8",
|
2412
|
+
"9",
|
2413
|
+
"10",
|
2414
|
+
"11",
|
2415
|
+
"12",
|
2416
|
+
"14",
|
2417
|
+
"px",
|
2418
|
+
"0.5",
|
2419
|
+
"1.5",
|
2420
|
+
"2.5",
|
2421
|
+
"3.5",
|
2422
|
+
"16",
|
2423
|
+
"20",
|
2424
|
+
"24",
|
2425
|
+
"28",
|
2426
|
+
"32",
|
2427
|
+
"36",
|
2428
|
+
"40",
|
2429
|
+
"44",
|
2430
|
+
"48",
|
2431
|
+
"52",
|
2432
|
+
"56",
|
2433
|
+
"60",
|
2434
|
+
"64",
|
2435
|
+
"72",
|
2436
|
+
"80",
|
2437
|
+
"96",
|
2438
|
+
"-1",
|
2439
|
+
"-2",
|
2440
|
+
"-3",
|
2441
|
+
"-4",
|
2442
|
+
"-5",
|
2443
|
+
"-6",
|
2444
|
+
"-7",
|
2445
|
+
"-8",
|
2446
|
+
"-9",
|
2447
|
+
"-10",
|
2448
|
+
"-11",
|
2449
|
+
"-12",
|
2450
|
+
"-14",
|
2451
|
+
"-px",
|
2452
|
+
"-0.5",
|
2453
|
+
"-1.5",
|
2454
|
+
"-2.5",
|
2455
|
+
"-3.5",
|
2456
|
+
"-16",
|
2457
|
+
"-20",
|
2458
|
+
"-24",
|
2459
|
+
"-28",
|
2460
|
+
"-32",
|
2461
|
+
"-36",
|
2462
|
+
"-40",
|
2463
|
+
"-44",
|
2464
|
+
"-48",
|
2465
|
+
"-52",
|
2466
|
+
"-56",
|
2467
|
+
"-60",
|
2468
|
+
"-64",
|
2469
|
+
"-72",
|
2470
|
+
"-80",
|
2471
|
+
"-96"
|
1274
2472
|
];
|
1275
|
-
var
|
1276
|
-
|
1277
|
-
|
2473
|
+
var shadowSpreadRadiusMap = {
|
2474
|
+
"-96": -384,
|
2475
|
+
"-80": -320,
|
2476
|
+
"-72": -288,
|
2477
|
+
"-64": -256,
|
2478
|
+
"-60": -240,
|
2479
|
+
"-56": -224,
|
2480
|
+
"-52": -208,
|
2481
|
+
"-48": -192,
|
2482
|
+
"-44": -176,
|
2483
|
+
"-40": -160,
|
2484
|
+
"-36": -144,
|
2485
|
+
"-32": -128,
|
2486
|
+
"-28": -112,
|
2487
|
+
"-24": -96,
|
2488
|
+
"-20": -80,
|
2489
|
+
"-16": -64,
|
2490
|
+
"-14": -56,
|
2491
|
+
"-12": -48,
|
2492
|
+
"-11": -44,
|
2493
|
+
"-10": -40,
|
2494
|
+
"-9": -36,
|
2495
|
+
"-8": -32,
|
2496
|
+
"-7": -28,
|
2497
|
+
"-6": -24,
|
2498
|
+
"-5": -20,
|
2499
|
+
"-4": -16,
|
2500
|
+
"-3.5": -14,
|
2501
|
+
"-3": -12,
|
2502
|
+
"-2.5": -10,
|
2503
|
+
"-2": -8,
|
2504
|
+
"-1.5": -6,
|
2505
|
+
"-1": -4,
|
2506
|
+
"-0.5": -2,
|
2507
|
+
"-px": -1,
|
2508
|
+
"0": 0,
|
2509
|
+
px: 1,
|
2510
|
+
"0.5": 2,
|
2511
|
+
"1": 4,
|
2512
|
+
"1.5": 6,
|
2513
|
+
"2": 8,
|
2514
|
+
"2.5": 10,
|
2515
|
+
"3": 12,
|
2516
|
+
"3.5": 14,
|
2517
|
+
"4": 16,
|
2518
|
+
"5": 20,
|
2519
|
+
"6": 24,
|
2520
|
+
"7": 28,
|
2521
|
+
"8": 32,
|
2522
|
+
"9": 36,
|
2523
|
+
"10": 40,
|
2524
|
+
"11": 44,
|
2525
|
+
"12": 48,
|
2526
|
+
"14": 56,
|
2527
|
+
"16": 64,
|
2528
|
+
"20": 80,
|
2529
|
+
"24": 96,
|
2530
|
+
"28": 112,
|
2531
|
+
"32": 128,
|
2532
|
+
"36": 144,
|
2533
|
+
"40": 160,
|
2534
|
+
"44": 176,
|
2535
|
+
"48": 192,
|
2536
|
+
"52": 208,
|
2537
|
+
"56": 224,
|
2538
|
+
"60": 240,
|
2539
|
+
"64": 256,
|
2540
|
+
"72": 288,
|
2541
|
+
"80": 320,
|
2542
|
+
"96": 384
|
1278
2543
|
};
|
2544
|
+
var shadowOpacities = [
|
2545
|
+
"0",
|
2546
|
+
"1",
|
2547
|
+
"2",
|
2548
|
+
"3",
|
2549
|
+
"4",
|
2550
|
+
"5",
|
2551
|
+
"6",
|
2552
|
+
"7",
|
2553
|
+
"8",
|
2554
|
+
"9",
|
2555
|
+
"10",
|
2556
|
+
"11",
|
2557
|
+
"12",
|
2558
|
+
"13",
|
2559
|
+
"14",
|
2560
|
+
"15",
|
2561
|
+
"50",
|
2562
|
+
"100",
|
2563
|
+
"16",
|
2564
|
+
"20",
|
2565
|
+
"24",
|
2566
|
+
"28",
|
2567
|
+
"32",
|
2568
|
+
"36",
|
2569
|
+
"40",
|
2570
|
+
"44",
|
2571
|
+
"48",
|
2572
|
+
"52",
|
2573
|
+
"56",
|
2574
|
+
"60",
|
2575
|
+
"64",
|
2576
|
+
"72",
|
2577
|
+
"80",
|
2578
|
+
"96",
|
2579
|
+
"75",
|
2580
|
+
"17",
|
2581
|
+
"18",
|
2582
|
+
"19",
|
2583
|
+
"21",
|
2584
|
+
"22",
|
2585
|
+
"23",
|
2586
|
+
"25",
|
2587
|
+
"26",
|
2588
|
+
"27",
|
2589
|
+
"29",
|
2590
|
+
"30",
|
2591
|
+
"31",
|
2592
|
+
"33",
|
2593
|
+
"34",
|
2594
|
+
"35",
|
2595
|
+
"37",
|
2596
|
+
"38",
|
2597
|
+
"39",
|
2598
|
+
"41",
|
2599
|
+
"42",
|
2600
|
+
"43",
|
2601
|
+
"45",
|
2602
|
+
"46",
|
2603
|
+
"47",
|
2604
|
+
"49",
|
2605
|
+
"51",
|
2606
|
+
"53",
|
2607
|
+
"54",
|
2608
|
+
"55",
|
2609
|
+
"57",
|
2610
|
+
"58",
|
2611
|
+
"59",
|
2612
|
+
"61",
|
2613
|
+
"62",
|
2614
|
+
"63",
|
2615
|
+
"65",
|
2616
|
+
"66",
|
2617
|
+
"67",
|
2618
|
+
"68",
|
2619
|
+
"69",
|
2620
|
+
"70",
|
2621
|
+
"71",
|
2622
|
+
"73",
|
2623
|
+
"74",
|
2624
|
+
"76",
|
2625
|
+
"77",
|
2626
|
+
"78",
|
2627
|
+
"79",
|
2628
|
+
"81",
|
2629
|
+
"82",
|
2630
|
+
"83",
|
2631
|
+
"84",
|
2632
|
+
"85",
|
2633
|
+
"86",
|
2634
|
+
"87",
|
2635
|
+
"88",
|
2636
|
+
"89",
|
2637
|
+
"90",
|
2638
|
+
"91",
|
2639
|
+
"92",
|
2640
|
+
"93",
|
2641
|
+
"94",
|
2642
|
+
"95",
|
2643
|
+
"97",
|
2644
|
+
"98",
|
2645
|
+
"99"
|
2646
|
+
];
|
2647
|
+
var shadowOpacityMap = fromEntries(shadowOpacities.map((key) => [key, parseInt(key)]));
|
1279
2648
|
var tshirtSizes = [
|
1280
2649
|
"none",
|
1281
2650
|
"xs",
|
@@ -1290,12 +2659,48 @@ var buttonVariants = [
|
|
1290
2659
|
"secondary",
|
1291
2660
|
"tertiary"
|
1292
2661
|
];
|
1293
|
-
var
|
2662
|
+
var buttonVariantPriority = {
|
2663
|
+
primary: 0,
|
2664
|
+
secondary: 1,
|
2665
|
+
tertiary: 2
|
2666
|
+
};
|
2667
|
+
var buttonVariantsFlat = [
|
2668
|
+
"primary",
|
2669
|
+
"secondary",
|
1294
2670
|
"brand",
|
2671
|
+
"alert",
|
2672
|
+
"positive",
|
2673
|
+
"warning",
|
2674
|
+
"info",
|
2675
|
+
"brand-secondary",
|
2676
|
+
"alert-secondary",
|
2677
|
+
"positive-secondary",
|
2678
|
+
"warning-secondary",
|
2679
|
+
"info-secondary",
|
2680
|
+
"tertiary",
|
2681
|
+
"brand-tertiary",
|
2682
|
+
"alert-tertiary",
|
2683
|
+
"positive-tertiary",
|
2684
|
+
"warning-tertiary",
|
2685
|
+
"info-tertiary"
|
2686
|
+
].sort((a, b) => {
|
2687
|
+
const aPriority = buttonVariantPriority[a] ?? Number.MAX_SAFE_INTEGER;
|
2688
|
+
const bPriority = buttonVariantPriority[b] ?? Number.MAX_SAFE_INTEGER;
|
2689
|
+
if (aPriority !== bPriority) {
|
2690
|
+
return aPriority - bPriority;
|
2691
|
+
}
|
2692
|
+
return a.localeCompare(b);
|
2693
|
+
});
|
2694
|
+
var buttonVariantsSecondary = buttonVariantsFlat.filter((variant) => variant.includes("secondary"));
|
2695
|
+
var buttonVariantsTertiary = buttonVariantsFlat.filter((variant) => variant.includes("tertiary"));
|
2696
|
+
var buttonVariantsPrimary = without_default(buttonVariantsFlat, ...buttonVariantsSecondary, ...buttonVariantsTertiary);
|
2697
|
+
var buttonPalettes = [
|
1295
2698
|
"accent",
|
2699
|
+
"brand",
|
1296
2700
|
"alert",
|
1297
2701
|
"positive",
|
1298
|
-
"warning"
|
2702
|
+
"warning",
|
2703
|
+
"info"
|
1299
2704
|
];
|
1300
2705
|
var buttonSizes = [
|
1301
2706
|
"sm",
|
@@ -1372,7 +2777,7 @@ var buttonMotionProperties = [
|
|
1372
2777
|
"trimLeft",
|
1373
2778
|
"trimRight",
|
1374
2779
|
"matchAll",
|
1375
|
-
"__@iterator@
|
2780
|
+
"__@iterator@59",
|
1376
2781
|
"at"
|
1377
2782
|
];
|
1378
2783
|
var buttonMotionEffects = [
|
@@ -1381,11 +2786,12 @@ var buttonMotionEffects = [
|
|
1381
2786
|
"down"
|
1382
2787
|
];
|
1383
2788
|
var buttonClassNames = [
|
1384
|
-
"uds-button-brand",
|
1385
2789
|
"uds-button-accent",
|
2790
|
+
"uds-button-brand",
|
1386
2791
|
"uds-button-alert",
|
1387
2792
|
"uds-button-positive",
|
1388
2793
|
"uds-button-warning",
|
2794
|
+
"uds-button-info",
|
1389
2795
|
"uds-button-primary",
|
1390
2796
|
"uds-button-secondary",
|
1391
2797
|
"uds-button-tertiary",
|
@@ -1409,6 +2815,10 @@ var iconButtonClassNames = [
|
|
1409
2815
|
"uds-icon-button-xl",
|
1410
2816
|
"uds-icon-button"
|
1411
2817
|
];
|
2818
|
+
var inputSizes = [
|
2819
|
+
"md",
|
2820
|
+
"lg"
|
2821
|
+
];
|
1412
2822
|
var motionVariants = [
|
1413
2823
|
"damped",
|
1414
2824
|
"smooth",
|
@@ -1453,4 +2863,64 @@ var scaleEffectMap = {
|
|
1453
2863
|
xl: "0.5"
|
1454
2864
|
}
|
1455
2865
|
};
|
1456
|
-
|
2866
|
+
var shadowVariants = [
|
2867
|
+
"none",
|
2868
|
+
"xs",
|
2869
|
+
"sm",
|
2870
|
+
"md",
|
2871
|
+
"lg",
|
2872
|
+
"xl",
|
2873
|
+
"2xl"
|
2874
|
+
];
|
2875
|
+
var shadowVariantsInvert = [
|
2876
|
+
"xs-invert",
|
2877
|
+
"sm-invert",
|
2878
|
+
"md-invert",
|
2879
|
+
"lg-invert",
|
2880
|
+
"xl-invert",
|
2881
|
+
"2xl-invert"
|
2882
|
+
];
|
2883
|
+
var shadowVariantsWithInvert = [...shadowVariants, ...shadowVariantsInvert];
|
2884
|
+
var checkboxVariants = [
|
2885
|
+
"primary",
|
2886
|
+
"secondary"
|
2887
|
+
];
|
2888
|
+
var checkboxSizes = [
|
2889
|
+
"sm",
|
2890
|
+
"md"
|
2891
|
+
];
|
2892
|
+
var switchSizes = [
|
2893
|
+
"sm",
|
2894
|
+
"md"
|
2895
|
+
];
|
2896
|
+
var chipVariants = [
|
2897
|
+
"primary",
|
2898
|
+
"secondary",
|
2899
|
+
"brand",
|
2900
|
+
"brand-secondary"
|
2901
|
+
];
|
2902
|
+
var chipSizes = [
|
2903
|
+
"sm",
|
2904
|
+
"md"
|
2905
|
+
];
|
2906
|
+
var badgeVariants = [
|
2907
|
+
"primary",
|
2908
|
+
"secondary",
|
2909
|
+
"brand",
|
2910
|
+
"alert",
|
2911
|
+
"positive",
|
2912
|
+
"warning",
|
2913
|
+
"info",
|
2914
|
+
"brand-secondary",
|
2915
|
+
"alert-secondary",
|
2916
|
+
"positive-secondary",
|
2917
|
+
"warning-secondary",
|
2918
|
+
"info-secondary"
|
2919
|
+
];
|
2920
|
+
var badgeSizes = [
|
2921
|
+
"xs",
|
2922
|
+
"sm",
|
2923
|
+
"md",
|
2924
|
+
"lg"
|
2925
|
+
];
|
2926
|
+
export { tshirtSizes, textVariants, textTransforms, textProperties, tailwindColorsAsUds, switchSizes, spectrumColors, spacingMap, spacingAliases, sortPalette, shadowVariantsWithInvert, shadowVariantsInvert, shadowVariants, shadowSpreadRadiusMap, shadowSpreadRadii, shadowPaletteColors, shadowOpacityMap, shadowOpacities, shadowOffsets, shadowOffsetMap, shadowColors, scaleModes, scaleEffectMap, regionModes, palette, motionVariants, motionVariantSpeeds, motionSpringConfigOptions, motionSpringConfig, linePaletteColors, lineHeightRamp, lineColors, inputSizes, iconVariants, iconSizes, iconButtonSizes, iconButtonClassNames, hues, hueSteps, foregroundPaletteColors, foregroundColors, fontWeights, fontUrls, fontSizeRamp, fontIds, fontAliases, colorModes, chipVariants, chipSizes, checkboxVariants, checkboxSizes, buttonVariantsTertiary, buttonVariantsSecondary, buttonVariantsPrimary, buttonVariantsFlat, buttonVariants, buttonStates, buttonSizes, buttonSizeProperties, buttonPalettes, buttonMotionProperties, buttonMotionEffects, buttonKinds, buttonIconSvgSize, buttonColorProperties, buttonClassNames, borderWidths, borderWidthRamp, borderRadiusRamp, borderRadii, badgeVariants, badgeSizes, backgroundPaletteColors, backgroundColors, avatarSizes, avatarShapes, alwaysPaletteAliases };
|