@atb-as/theme 3.2.0 → 5.0.1
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/README.md +20 -19
- package/package.json +3 -3
- package/lib/colors.d.ts +0 -76
- package/lib/colors.js +0 -84
- package/lib/colors.js.map +0 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -17
- package/lib/index.js.map +0 -1
- package/lib/sizes.d.ts +0 -22
- package/lib/sizes.js +0 -25
- package/lib/sizes.js.map +0 -1
- package/lib/theme.css +0 -429
- package/lib/theme.d.ts +0 -119
- package/lib/theme.js +0 -197
- package/lib/theme.js.map +0 -1
- package/lib/theme.module.css +0 -429
- package/lib/typography/android.d.ts +0 -3
- package/lib/typography/android.js +0 -59
- package/lib/typography/android.js.map +0 -1
- package/lib/typography/index.d.ts +0 -63
- package/lib/typography/index.js +0 -94
- package/lib/typography/index.js.map +0 -1
- package/lib/typography/ios.d.ts +0 -3
- package/lib/typography/ios.js +0 -58
- package/lib/typography/ios.js.map +0 -1
- package/lib/typography/types.d.ts +0 -20
- package/lib/typography/types.js +0 -18
- package/lib/typography/types.js.map +0 -1
- package/lib/typography.css +0 -156
- package/lib/typography.module.css +0 -156
- package/lib/utils/override-config.d.ts +0 -8
- package/lib/utils/override-config.js +0 -38
- package/lib/utils/override-config.js.map +0 -1
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.overrideConfig = void 0;
|
|
15
|
-
function overrideConfig(base, overrides) {
|
|
16
|
-
var result = __assign({}, base);
|
|
17
|
-
for (var key in base) {
|
|
18
|
-
if (isObject(result[key]) && isObject(overrides[key])) {
|
|
19
|
-
result[key] = overrideConfig(result[key], overrides[key]);
|
|
20
|
-
}
|
|
21
|
-
else if (overrides[key] && !isObject(overrides[key])) {
|
|
22
|
-
result[key] = overrides[key];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return result;
|
|
26
|
-
}
|
|
27
|
-
exports.overrideConfig = overrideConfig;
|
|
28
|
-
function isObject(obj) {
|
|
29
|
-
if (typeof obj === 'object' && obj !== null) {
|
|
30
|
-
if (typeof Object.getPrototypeOf === 'function') {
|
|
31
|
-
var prototype = Object.getPrototypeOf(obj);
|
|
32
|
-
return prototype === Object.prototype || prototype === null;
|
|
33
|
-
}
|
|
34
|
-
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
35
|
-
}
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=override-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"override-config.js","sourceRoot":"","sources":["../../src/utils/override-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA,SAAgB,cAAc,CAC5B,IAAO,EACP,SAAmC;IAEnC,IAAI,MAAM,gBAAU,IAAI,CAAC,CAAC;IAC1B,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;QACpB,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE;YACrD,MAAM,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,GAAG,CAAE,CAAC,CAAC;SAC5D;aAAM,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE;YACtD,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAiC,CAAC;SAC9D;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAbD,wCAaC;AAED,SAAS,QAAQ,CAAC,GAAQ;IACxB,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE;QAC3C,IAAI,OAAO,MAAM,CAAC,cAAc,KAAK,UAAU,EAAE;YAC/C,IAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;YAC7C,OAAO,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC;SAC7D;QAED,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,iBAAiB,CAAC;KAClE;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|