@tamagui/create-theme 1.61.3 → 1.62.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/dist/cjs/applyMask.js +13 -25
- package/dist/cjs/applyMask.js.map +1 -1
- package/dist/cjs/applyMask.native.js +61 -0
- package/dist/cjs/applyMask.native.js.map +6 -0
- package/dist/cjs/combineMasks.js +24 -38
- package/dist/cjs/combineMasks.js.map +1 -1
- package/dist/cjs/combineMasks.native.js +45 -0
- package/dist/cjs/combineMasks.native.js.map +6 -0
- package/dist/cjs/createTheme.js +15 -33
- package/dist/cjs/createTheme.js.map +1 -1
- package/dist/cjs/createTheme.native.js +56 -0
- package/dist/cjs/createTheme.native.js.map +6 -0
- package/dist/cjs/createThemeTypes.js +3 -6
- package/dist/cjs/createThemeTypes.js.map +1 -1
- package/dist/cjs/createThemeTypes.native.js +15 -0
- package/dist/cjs/createThemeTypes.native.js.map +6 -0
- package/dist/cjs/helpers.js +5 -9
- package/dist/cjs/helpers.js.map +1 -1
- package/dist/cjs/helpers.native.js +36 -0
- package/dist/cjs/helpers.native.js.map +6 -0
- package/dist/cjs/index.js +4 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +30 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/isMinusZero.js +6 -10
- package/dist/cjs/isMinusZero.js.map +1 -1
- package/dist/cjs/isMinusZero.native.js +28 -0
- package/dist/cjs/isMinusZero.native.js.map +6 -0
- package/dist/cjs/masks.js +45 -78
- package/dist/cjs/masks.js.map +1 -1
- package/dist/cjs/masks.native.js +100 -0
- package/dist/cjs/masks.native.js.map +6 -0
- package/dist/cjs/tests.js +10 -25
- package/dist/cjs/tests.js.map +1 -1
- package/dist/cjs/tests.native.js +17 -0
- package/dist/cjs/tests.native.js.map +6 -0
- package/dist/cjs/themeInfo.js +7 -16
- package/dist/cjs/themeInfo.js.map +1 -1
- package/dist/cjs/themeInfo.native.js +34 -0
- package/dist/cjs/themeInfo.native.js.map +6 -0
- package/dist/esm/applyMask.js +7 -14
- package/dist/esm/applyMask.js.map +1 -1
- package/dist/esm/combineMasks.js +18 -27
- package/dist/esm/combineMasks.js.map +1 -1
- package/dist/esm/createTheme.js +9 -22
- package/dist/esm/createTheme.js.map +1 -1
- package/dist/esm/isMinusZero.js +1 -1
- package/dist/esm/masks.js +39 -67
- package/dist/esm/masks.js.map +1 -1
- package/dist/esm/tests.js +9 -21
- package/dist/esm/tests.js.map +1 -1
- package/dist/esm/themeInfo.js +2 -7
- package/dist/esm/themeInfo.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/applyMask.js
CHANGED
|
@@ -1,62 +1,50 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var applyMask_exports = {};
|
|
20
16
|
__export(applyMask_exports, {
|
|
21
17
|
applyMask: () => applyMask,
|
|
22
18
|
applyMaskStateless: () => applyMaskStateless
|
|
23
19
|
});
|
|
24
20
|
module.exports = __toCommonJS(applyMask_exports);
|
|
25
|
-
var import_createTheme = require("./createTheme");
|
|
26
|
-
var import_themeInfo = require("./themeInfo");
|
|
21
|
+
var import_createTheme = require("./createTheme"), import_themeInfo = require("./themeInfo");
|
|
27
22
|
function applyMask(theme, mask, options = {}, parentName, nextName) {
|
|
28
23
|
const info = (0, import_themeInfo.getThemeInfo)(theme, parentName);
|
|
29
|
-
if (!info)
|
|
24
|
+
if (!info)
|
|
30
25
|
throw new Error(
|
|
31
|
-
process.env.NODE_ENV !== "production" ?
|
|
26
|
+
process.env.NODE_ENV !== "production" ? "No info found for theme, you must pass the theme created by createThemeFromPalette directly to extendTheme" : "\u274C Err2"
|
|
32
27
|
);
|
|
33
|
-
}
|
|
34
28
|
const next = applyMaskStateless(info, mask, options, parentName);
|
|
35
|
-
(0, import_themeInfo.setThemeInfo)(next.theme, {
|
|
29
|
+
return (0, import_themeInfo.setThemeInfo)(next.theme, {
|
|
36
30
|
definition: next.definition,
|
|
37
31
|
palette: info.palette,
|
|
38
32
|
name: nextName
|
|
39
|
-
});
|
|
40
|
-
return next.theme;
|
|
33
|
+
}), next.theme;
|
|
41
34
|
}
|
|
42
35
|
function applyMaskStateless(info, mask, options = {}, parentName) {
|
|
43
|
-
var _a;
|
|
44
36
|
const skip = {
|
|
45
37
|
...options.skip
|
|
46
38
|
};
|
|
47
|
-
if (
|
|
48
|
-
for (const key in info.options.nonInheritedValues)
|
|
39
|
+
if (info.options?.nonInheritedValues)
|
|
40
|
+
for (const key in info.options.nonInheritedValues)
|
|
49
41
|
skip[key] = 1;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
42
|
const maskOptions = {
|
|
53
43
|
parentName,
|
|
54
44
|
palette: info.palette,
|
|
55
45
|
...options,
|
|
56
46
|
skip
|
|
57
|
-
};
|
|
58
|
-
const template = mask.mask(info.definition, maskOptions);
|
|
59
|
-
const theme = (0, import_createTheme.createTheme)(info.palette, template);
|
|
47
|
+
}, template = mask.mask(info.definition, maskOptions), theme = (0, import_createTheme.createTheme)(info.palette, template);
|
|
60
48
|
return {
|
|
61
49
|
...info,
|
|
62
50
|
cache: /* @__PURE__ */ new Map(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/applyMask.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA4B,0BAE5B,mBAAsD;AAE/C,SAAS,UACd,OACA,MACA,UAAuB,CAAC,GACxB,YACA,UACO;AACP,QAAM,WAAO,+BAAa,OAAO,UAAU;AAC3C,MAAI,CAAC;AACH,UAAM,IAAI;AAAA,MACR,QAAQ,IAAI,aAAa,eACrB,+GACA;AAAA,IACN;AAGF,QAAM,OAAO,mBAAmB,MAAM,MAAM,SAAS,UAAU;AAE/D,4CAAa,KAAK,OAAO;AAAA,IACvB,YAAY,KAAK;AAAA,IACjB,SAAS,KAAK;AAAA,IACd,MAAM;AAAA,EACR,CAAC,GAEM,KAAK;AACd;AAEO,SAAS,mBACd,MACA,MACA,UAAuB,CAAC,GACxB,YAGA;AACA,QAAM,OAAO;AAAA,IACX,GAAG,QAAQ;AAAA,EACb;AAGA,MAAI,KAAK,SAAS;AAChB,eAAW,OAAO,KAAK,QAAQ;AAC7B,WAAK,GAAG,IAAI;AAKhB,QAAM,cAAc;AAAA,IAClB;AAAA,IACA,SAAS,KAAK;AAAA,IACd,GAAG;AAAA,IACH;AAAA,EACF,GAEM,WAAW,KAAK,KAAK,KAAK,YAAY,WAAW,GACjD,YAAQ,gCAAY,KAAK,SAAS,QAAQ;AAEhD,SAAO;AAAA,IACL,GAAG;AAAA,IACH,OAAO,oBAAI,IAAI;AAAA,IACf,YAAY;AAAA,IACZ;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var applyMask_exports = {};
|
|
17
|
+
__export(applyMask_exports, {
|
|
18
|
+
applyMask: () => applyMask,
|
|
19
|
+
applyMaskStateless: () => applyMaskStateless
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(applyMask_exports);
|
|
22
|
+
var import_createTheme = require("./createTheme"), import_themeInfo = require("./themeInfo");
|
|
23
|
+
function applyMask(theme, mask, options = {}, parentName, nextName) {
|
|
24
|
+
const info = (0, import_themeInfo.getThemeInfo)(theme, parentName);
|
|
25
|
+
if (!info)
|
|
26
|
+
throw new Error(
|
|
27
|
+
process.env.NODE_ENV !== "production" ? "No info found for theme, you must pass the theme created by createThemeFromPalette directly to extendTheme" : "\u274C Err2"
|
|
28
|
+
);
|
|
29
|
+
const next = applyMaskStateless(info, mask, options, parentName);
|
|
30
|
+
return (0, import_themeInfo.setThemeInfo)(next.theme, {
|
|
31
|
+
definition: next.definition,
|
|
32
|
+
palette: info.palette,
|
|
33
|
+
name: nextName
|
|
34
|
+
}), next.theme;
|
|
35
|
+
}
|
|
36
|
+
function applyMaskStateless(info, mask, options = {}, parentName) {
|
|
37
|
+
const skip = {
|
|
38
|
+
...options.skip
|
|
39
|
+
};
|
|
40
|
+
if (info.options?.nonInheritedValues)
|
|
41
|
+
for (const key in info.options.nonInheritedValues)
|
|
42
|
+
skip[key] = 1;
|
|
43
|
+
const maskOptions = {
|
|
44
|
+
parentName,
|
|
45
|
+
palette: info.palette,
|
|
46
|
+
...options,
|
|
47
|
+
skip
|
|
48
|
+
}, template = mask.mask(info.definition, maskOptions), theme = (0, import_createTheme.createTheme)(info.palette, template);
|
|
49
|
+
return {
|
|
50
|
+
...info,
|
|
51
|
+
cache: /* @__PURE__ */ new Map(),
|
|
52
|
+
definition: template,
|
|
53
|
+
theme
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
applyMask,
|
|
59
|
+
applyMaskStateless
|
|
60
|
+
});
|
|
61
|
+
//# sourceMappingURL=applyMask.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/applyMask.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA4B,0BAE5B,mBAAsD;AAE/C,SAAS,UACd,OACA,MACA,UAAuB,CAAC,GACxB,YACA,UACO;AACP,QAAM,WAAO,+BAAa,OAAO,UAAU;AAC3C,MAAI,CAAC;AACH,UAAM,IAAI;AAAA,MACR,QAAQ,IAAI,aAAa,eACrB,+GACA;AAAA,IACN;AAGF,QAAM,OAAO,mBAAmB,MAAM,MAAM,SAAS,UAAU;AAE/D,4CAAa,KAAK,OAAO;AAAA,IACvB,YAAY,KAAK;AAAA,IACjB,SAAS,KAAK;AAAA,IACd,MAAM;AAAA,EACR,CAAC,GAEM,KAAK;AACd;AAEO,SAAS,mBACd,MACA,MACA,UAAuB,CAAC,GACxB,YAGA;AACA,QAAM,OAAO;AAAA,IACX,GAAG,QAAQ;AAAA,EACb;AAGA,MAAI,KAAK,SAAS;AAChB,eAAW,OAAO,KAAK,QAAQ;AAC7B,WAAK,GAAG,IAAI;AAKhB,QAAM,cAAc;AAAA,IAClB;AAAA,IACA,SAAS,KAAK;AAAA,IACd,GAAG;AAAA,IACH;AAAA,EACF,GAEM,WAAW,KAAK,KAAK,KAAK,YAAY,WAAW,GACjD,YAAQ,gCAAY,KAAK,SAAS,QAAQ;AAEhD,SAAO;AAAA,IACL,GAAG;AAAA,IACH,OAAO,oBAAI,IAAI;AAAA,IACf,YAAY;AAAA,IACZ;AAAA,EACF;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/cjs/combineMasks.js
CHANGED
|
@@ -1,56 +1,42 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var combineMasks_exports = {};
|
|
20
16
|
__export(combineMasks_exports, {
|
|
21
17
|
combineMasks: () => combineMasks
|
|
22
18
|
});
|
|
23
19
|
module.exports = __toCommonJS(combineMasks_exports);
|
|
24
|
-
var import_applyMask = require("./applyMask");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
)}`
|
|
41
|
-
);
|
|
42
|
-
} else {
|
|
43
|
-
throw `\u274C`;
|
|
44
|
-
}
|
|
45
|
-
const next = (0, import_applyMask.applyMaskStateless)(current, mask2, opts);
|
|
46
|
-
current = next;
|
|
47
|
-
theme = next.theme;
|
|
48
|
-
}
|
|
49
|
-
return theme;
|
|
20
|
+
var import_applyMask = require("./applyMask"), import_themeInfo = require("./themeInfo");
|
|
21
|
+
const combineMasks = (...masks) => ({
|
|
22
|
+
name: "combine-mask",
|
|
23
|
+
mask: (template, opts) => {
|
|
24
|
+
let current = (0, import_themeInfo.getThemeInfo)(template, opts.parentName), theme;
|
|
25
|
+
for (const mask2 of masks) {
|
|
26
|
+
if (!current)
|
|
27
|
+
throw process.env.NODE_ENV === "development" ? new Error(
|
|
28
|
+
`After applying mask, nothing returned: ${current}, for template: ${template} and mask: ${mask2.toString()}, given opts ${JSON.stringify(
|
|
29
|
+
opts,
|
|
30
|
+
null,
|
|
31
|
+
2
|
|
32
|
+
)}`
|
|
33
|
+
) : "\u274C";
|
|
34
|
+
const next = (0, import_applyMask.applyMaskStateless)(current, mask2, opts);
|
|
35
|
+
current = next, theme = next.theme;
|
|
50
36
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
37
|
+
return theme;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
54
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
55
41
|
0 && (module.exports = {
|
|
56
42
|
combineMasks
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/combineMasks.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAmC,wBAEnC,mBAA6B;AAEtB,MAAM,eAAe,IAAI,WACL;AAAA,EACvB,MAAM;AAAA,EACN,MAAM,CAAC,UAAU,SAAS;AACxB,QAAI,cAAU,+BAAa,UAAU,KAAK,UAAU,GAChD;AACJ,eAAWA,SAAQ,OAAO;AACxB,UAAI,CAAC;AACH,cAAI,QAAQ,IAAI,aAAa,gBACrB,IAAI;AAAA,UACR,0CAA0C,OAAO,mBAAmB,QAAQ,cAAcA,MAAK,SAAS,CAAC,gBAAgB,KAAK;AAAA,YAC5H;AAAA,YACA;AAAA,YACA;AAAA,UACF,CAAC;AAAA,QACH,IAEM;AAEV,YAAM,WAAO,qCAAmB,SAASA,OAAM,IAAI;AACnD,gBAAU,MACV,QAAQ,KAAK;AAAA,IACf;AACA,WAAO;AAAA,EACT;AACF;",
|
|
5
5
|
"names": ["mask"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var combineMasks_exports = {};
|
|
17
|
+
__export(combineMasks_exports, {
|
|
18
|
+
combineMasks: () => combineMasks
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(combineMasks_exports);
|
|
21
|
+
var import_applyMask = require("./applyMask"), import_themeInfo = require("./themeInfo");
|
|
22
|
+
const combineMasks = (...masks) => ({
|
|
23
|
+
name: "combine-mask",
|
|
24
|
+
mask: (template, opts) => {
|
|
25
|
+
let current = (0, import_themeInfo.getThemeInfo)(template, opts.parentName), theme;
|
|
26
|
+
for (const mask2 of masks) {
|
|
27
|
+
if (!current)
|
|
28
|
+
throw process.env.NODE_ENV === "development" ? new Error(
|
|
29
|
+
`After applying mask, nothing returned: ${current}, for template: ${template} and mask: ${mask2.toString()}, given opts ${JSON.stringify(
|
|
30
|
+
opts,
|
|
31
|
+
null,
|
|
32
|
+
2
|
|
33
|
+
)}`
|
|
34
|
+
) : "\u274C";
|
|
35
|
+
const next = (0, import_applyMask.applyMaskStateless)(current, mask2, opts);
|
|
36
|
+
current = next, theme = next.theme;
|
|
37
|
+
}
|
|
38
|
+
return theme;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
combineMasks
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=combineMasks.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/combineMasks.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAmC,wBAEnC,mBAA6B;AAEtB,MAAM,eAAe,IAAI,WACL;AAAA,EACvB,MAAM;AAAA,EACN,MAAM,CAAC,UAAU,SAAS;AACxB,QAAI,cAAU,+BAAa,UAAU,KAAK,UAAU,GAChD;AACJ,eAAWA,SAAQ,OAAO;AACxB,UAAI,CAAC;AACH,cAAI,QAAQ,IAAI,aAAa,gBACrB,IAAI;AAAA,UACR,0CAA0C,OAAO,mBAAmB,QAAQ,cAAcA,MAAK,SAAS,CAAC,gBAAgB,KAAK;AAAA,YAC5H;AAAA,YACA;AAAA,YACA;AAAA,UACF,CAAC;AAAA,QACH,IAEM;AAEV,YAAM,WAAO,qCAAmB,SAASA,OAAM,IAAI;AACnD,gBAAU,MACV,QAAQ,KAAK;AAAA,IACf;AACA,WAAO;AAAA,EACT;AACF;",
|
|
5
|
+
"names": ["mask"]
|
|
6
|
+
}
|
package/dist/cjs/createTheme.js
CHANGED
|
@@ -1,67 +1,49 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var createTheme_exports = {};
|
|
20
16
|
__export(createTheme_exports, {
|
|
21
17
|
addChildren: () => addChildren,
|
|
22
18
|
createTheme: () => createTheme
|
|
23
19
|
});
|
|
24
20
|
module.exports = __toCommonJS(createTheme_exports);
|
|
25
|
-
var import_isMinusZero = require("./isMinusZero");
|
|
26
|
-
var import_themeInfo = require("./themeInfo");
|
|
21
|
+
var import_isMinusZero = require("./isMinusZero"), import_themeInfo = require("./themeInfo");
|
|
27
22
|
const identityCache = /* @__PURE__ */ new Map();
|
|
28
|
-
function createTheme(palette, definition, options, name, skipCache =
|
|
23
|
+
function createTheme(palette, definition, options, name, skipCache = !1) {
|
|
29
24
|
const cacheKey = skipCache ? "" : JSON.stringify([name, palette, definition, options]);
|
|
30
|
-
if (!skipCache)
|
|
31
|
-
|
|
32
|
-
return identityCache.get(cacheKey);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
25
|
+
if (!skipCache && identityCache.has(cacheKey))
|
|
26
|
+
return identityCache.get(cacheKey);
|
|
35
27
|
const theme = {
|
|
36
28
|
...Object.fromEntries(
|
|
37
|
-
Object.entries(definition).map(([key, offset]) =>
|
|
38
|
-
return [key, getValue(palette, offset)];
|
|
39
|
-
})
|
|
29
|
+
Object.entries(definition).map(([key, offset]) => [key, getValue(palette, offset)])
|
|
40
30
|
),
|
|
41
|
-
...options
|
|
31
|
+
...options?.nonInheritedValues
|
|
42
32
|
};
|
|
43
|
-
|
|
44
|
-
(0, import_themeInfo.setThemeInfo)(theme, { palette, definition, options, name });
|
|
45
|
-
identityCache.set(cacheKey, theme);
|
|
46
|
-
}
|
|
47
|
-
return theme;
|
|
33
|
+
return cacheKey && ((0, import_themeInfo.setThemeInfo)(theme, { palette, definition, options, name }), identityCache.set(cacheKey, theme)), theme;
|
|
48
34
|
}
|
|
49
35
|
const getValue = (palette, value) => {
|
|
50
|
-
if (typeof value
|
|
36
|
+
if (typeof value == "string")
|
|
51
37
|
return value;
|
|
52
|
-
const max = palette.length - 1;
|
|
53
|
-
const isPositive = value === 0 ? !(0, import_isMinusZero.isMinusZero)(value) : value >= 0;
|
|
54
|
-
const next = isPositive ? value : max + value;
|
|
55
|
-
const index = Math.min(Math.max(0, next), max);
|
|
38
|
+
const max = palette.length - 1, next = (value === 0 ? !(0, import_isMinusZero.isMinusZero)(value) : value >= 0) ? value : max + value, index = Math.min(Math.max(0, next), max);
|
|
56
39
|
return palette[index];
|
|
57
40
|
};
|
|
58
41
|
function addChildren(themes, getChildren) {
|
|
59
42
|
const out = { ...themes };
|
|
60
43
|
for (const key in themes) {
|
|
61
44
|
const subThemes = getChildren(key, themes[key]);
|
|
62
|
-
for (const sKey in subThemes)
|
|
45
|
+
for (const sKey in subThemes)
|
|
63
46
|
out[`${key}_${sKey}`] = subThemes[sKey];
|
|
64
|
-
}
|
|
65
47
|
}
|
|
66
48
|
return out;
|
|
67
49
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createTheme.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBAA4B,0BAC5B,mBAA6B;AAE7B,MAAM,gBAAgB,oBAAI,IAAI;AAEvB,SAAS,YAId,SACA,YACA,SACA,MACA,YAAY,IAGZ;AACA,QAAM,WAAW,YAAY,KAAK,KAAK,UAAU,CAAC,MAAM,SAAS,YAAY,OAAO,CAAC;AACrF,MAAI,CAAC,aACC,cAAc,IAAI,QAAQ;AAC5B,WAAO,cAAc,IAAI,QAAQ;AAIrC,QAAM,QAAQ;AAAA,IACZ,GAAI,OAAO;AAAA,MACT,OAAO,QAAQ,UAAU,EAAE,IAAI,CAAC,CAAC,KAAK,MAAM,MACnC,CAAC,KAAK,SAAS,SAAS,MAAM,CAAC,CACvC;AAAA,IACH;AAAA,IACA,GAAG,SAAS;AAAA,EACd;AAEA,SAAI,iBACF,+BAAa,OAAO,EAAE,SAAS,YAAY,SAAS,KAAK,CAAC,GAC1D,cAAc,IAAI,UAAU,KAAK,IAG5B;AACT;AAEA,MAAM,WAAW,CAAC,SAA6B,UAA2B;AACxE,MAAI,OAAO,SAAU;AAAU,WAAO;AACtC,QAAM,MAAM,QAAQ,SAAS,GAEvB,QADa,UAAU,IAAI,KAAC,gCAAY,KAAK,IAAI,SAAS,KACtC,QAAQ,MAAM,OAClC,QAAQ,KAAK,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,GAAG;AAC7C,SAAO,QAAQ,KAAK;AACtB;AAWO,SAAS,YAId,QACA,aAGA;AACA,QAAM,MAAM,EAAE,GAAG,OAAO;AACxB,aAAW,OAAO,QAAQ;AACxB,UAAM,YAAY,YAAY,KAAK,OAAO,GAAG,CAAC;AAC9C,eAAW,QAAQ;AACjB,UAAI,GAAG,GAAG,IAAI,IAAI,EAAE,IAAI,UAAU,IAAI;AAAA,EAE1C;AACA,SAAO;AACT;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var createTheme_exports = {};
|
|
17
|
+
__export(createTheme_exports, {
|
|
18
|
+
addChildren: () => addChildren,
|
|
19
|
+
createTheme: () => createTheme
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(createTheme_exports);
|
|
22
|
+
var import_isMinusZero = require("./isMinusZero"), import_themeInfo = require("./themeInfo");
|
|
23
|
+
const identityCache = /* @__PURE__ */ new Map();
|
|
24
|
+
function createTheme(palette, definition, options, name, skipCache = !1) {
|
|
25
|
+
const cacheKey = skipCache ? "" : JSON.stringify([name, palette, definition, options]);
|
|
26
|
+
if (!skipCache && identityCache.has(cacheKey))
|
|
27
|
+
return identityCache.get(cacheKey);
|
|
28
|
+
const theme = {
|
|
29
|
+
...Object.fromEntries(
|
|
30
|
+
Object.entries(definition).map(([key, offset]) => [key, getValue(palette, offset)])
|
|
31
|
+
),
|
|
32
|
+
...options?.nonInheritedValues
|
|
33
|
+
};
|
|
34
|
+
return cacheKey && ((0, import_themeInfo.setThemeInfo)(theme, { palette, definition, options, name }), identityCache.set(cacheKey, theme)), theme;
|
|
35
|
+
}
|
|
36
|
+
const getValue = (palette, value) => {
|
|
37
|
+
if (typeof value == "string")
|
|
38
|
+
return value;
|
|
39
|
+
const max = palette.length - 1, next = (value === 0 ? !(0, import_isMinusZero.isMinusZero)(value) : value >= 0) ? value : max + value, index = Math.min(Math.max(0, next), max);
|
|
40
|
+
return palette[index];
|
|
41
|
+
};
|
|
42
|
+
function addChildren(themes, getChildren) {
|
|
43
|
+
const out = { ...themes };
|
|
44
|
+
for (const key in themes) {
|
|
45
|
+
const subThemes = getChildren(key, themes[key]);
|
|
46
|
+
for (const sKey in subThemes)
|
|
47
|
+
out[`${key}_${sKey}`] = subThemes[sKey];
|
|
48
|
+
}
|
|
49
|
+
return out;
|
|
50
|
+
}
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
addChildren,
|
|
54
|
+
createTheme
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=createTheme.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/createTheme.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBAA4B,0BAC5B,mBAA6B;AAE7B,MAAM,gBAAgB,oBAAI,IAAI;AAEvB,SAAS,YAId,SACA,YACA,SACA,MACA,YAAY,IAGZ;AACA,QAAM,WAAW,YAAY,KAAK,KAAK,UAAU,CAAC,MAAM,SAAS,YAAY,OAAO,CAAC;AACrF,MAAI,CAAC,aACC,cAAc,IAAI,QAAQ;AAC5B,WAAO,cAAc,IAAI,QAAQ;AAIrC,QAAM,QAAQ;AAAA,IACZ,GAAI,OAAO;AAAA,MACT,OAAO,QAAQ,UAAU,EAAE,IAAI,CAAC,CAAC,KAAK,MAAM,MACnC,CAAC,KAAK,SAAS,SAAS,MAAM,CAAC,CACvC;AAAA,IACH;AAAA,IACA,GAAG,SAAS;AAAA,EACd;AAEA,SAAI,iBACF,+BAAa,OAAO,EAAE,SAAS,YAAY,SAAS,KAAK,CAAC,GAC1D,cAAc,IAAI,UAAU,KAAK,IAG5B;AACT;AAEA,MAAM,WAAW,CAAC,SAA6B,UAA2B;AACxE,MAAI,OAAO,SAAU;AAAU,WAAO;AACtC,QAAM,MAAM,QAAQ,SAAS,GAEvB,QADa,UAAU,IAAI,KAAC,gCAAY,KAAK,IAAI,SAAS,KACtC,QAAQ,MAAM,OAClC,QAAQ,KAAK,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,GAAG;AAC7C,SAAO,QAAQ,KAAK;AACtB;AAWO,SAAS,YAId,QACA,aAGA;AACA,QAAM,MAAM,EAAE,GAAG,OAAO;AACxB,aAAW,OAAO,QAAQ;AACxB,UAAM,YAAY,YAAY,KAAK,OAAO,GAAG,CAAC;AAC9C,eAAW,QAAQ;AACjB,UAAI,GAAG,GAAG,IAAI,IAAI,EAAE,IAAI,UAAU,IAAI;AAAA,EAE1C;AACA,SAAO;AACT;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
7
|
for (let key of __getOwnPropNames(from))
|
|
9
|
-
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
8
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
9
|
return to;
|
|
13
10
|
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
11
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
12
|
var createThemeTypes_exports = {};
|
|
16
13
|
module.exports = __toCommonJS(createThemeTypes_exports);
|
|
17
14
|
//# sourceMappingURL=createThemeTypes.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
};
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var createThemeTypes_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(createThemeTypes_exports);
|
|
15
|
+
//# sourceMappingURL=createThemeTypes.js.map
|
package/dist/cjs/helpers.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var helpers_exports = {};
|
|
20
16
|
__export(helpers_exports, {
|
|
21
17
|
objectEntries: () => objectEntries,
|
package/dist/cjs/helpers.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/helpers.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,MAAM,aAAa,CAAmB,QAAW,OAAO,KAAK,GAAG;AAEhE,SAAS,cACd,KACsB;AACtB,SAAO,OAAO,QAAQ,GAAG;AAC3B;AAyBO,SAAS,kBACd,KACwB;AACxB,SAAO,OAAO,YAAY,GAAG;AAC/B;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var helpers_exports = {};
|
|
17
|
+
__export(helpers_exports, {
|
|
18
|
+
objectEntries: () => objectEntries,
|
|
19
|
+
objectFromEntries: () => objectFromEntries,
|
|
20
|
+
objectKeys: () => objectKeys
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(helpers_exports);
|
|
23
|
+
const objectKeys = (obj) => Object.keys(obj);
|
|
24
|
+
function objectEntries(obj) {
|
|
25
|
+
return Object.entries(obj);
|
|
26
|
+
}
|
|
27
|
+
function objectFromEntries(arr) {
|
|
28
|
+
return Object.fromEntries(arr);
|
|
29
|
+
}
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
objectEntries,
|
|
33
|
+
objectFromEntries,
|
|
34
|
+
objectKeys
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/helpers.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,MAAM,aAAa,CAAmB,QAAW,OAAO,KAAK,GAAG;AAEhE,SAAS,cACd,KACsB;AACtB,SAAO,OAAO,QAAQ,GAAG;AAC3B;AAyBO,SAAS,kBACd,KACwB;AACxB,SAAO,OAAO,YAAY,GAAG;AAC/B;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
7
|
for (let key of __getOwnPropNames(from))
|
|
9
|
-
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
8
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
9
|
return to;
|
|
13
|
-
};
|
|
14
|
-
var
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
10
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
11
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
12
|
var src_exports = {};
|
|
17
13
|
module.exports = __toCommonJS(src_exports);
|
|
18
14
|
__reExport(src_exports, require("./createTheme"), module.exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,0BAAd;AACA,wBAAc,oBADd;AAEA,wBAAc,2BAFd;AAGA,wBAAc,wBAHd;AAIA,wBAAc,+BAJd;AAKA,wBAAc,sBALd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|