@tamagui/themes 1.88.0 → 1.88.2
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/componentThemeDefinitions.js +0 -5
- package/dist/cjs/generated-new.js +0 -1411
- package/dist/cjs/generated-v2.js +0 -1389
- package/dist/cjs/helpers.js +0 -6
- package/dist/cjs/index.js +0 -11
- package/dist/cjs/masks.js +0 -4
- package/dist/cjs/palettes.js +0 -4
- package/dist/cjs/shadows.js +0 -4
- package/dist/cjs/templates.js +0 -5
- package/dist/cjs/themes-new.js +0 -4
- package/dist/cjs/themes-old.js +0 -4
- package/dist/cjs/themes.js +0 -4
- package/dist/cjs/tokens.js +0 -12
- package/dist/cjs/v2-themes.js +0 -9
- package/dist/cjs/v2.js +0 -21
- package/dist/esm/componentThemeDefinitions.native.js +44 -22
- package/dist/esm/componentThemeDefinitions.native.js.map +1 -1
- package/dist/esm/generated-new.native.js +1430 -2
- package/dist/esm/generated-new.native.js.map +1 -1
- package/dist/esm/generated-v2.native.js +1408 -2
- package/dist/esm/generated-v2.native.js.map +1 -1
- package/dist/esm/helpers.native.js +25 -2
- package/dist/esm/helpers.native.js.map +1 -1
- package/dist/esm/index.native.js +33 -8
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/masks.native.js +47 -34
- package/dist/esm/masks.native.js.map +1 -1
- package/dist/esm/palettes.native.js +30 -10
- package/dist/esm/palettes.native.js.map +1 -1
- package/dist/esm/shadows.native.js +23 -2
- package/dist/esm/shadows.native.js.map +1 -1
- package/dist/esm/templates.native.js +26 -4
- package/dist/esm/templates.native.js.map +1 -1
- package/dist/esm/themes-new.native.js +32 -17
- package/dist/esm/themes-new.native.js.map +1 -1
- package/dist/esm/themes-old.native.js +38 -25
- package/dist/esm/themes-old.native.js.map +1 -1
- package/dist/esm/themes.native.js +32 -3
- package/dist/esm/themes.native.js.map +1 -1
- package/dist/esm/tokens.native.js +49 -38
- package/dist/esm/tokens.native.js.map +1 -1
- package/dist/esm/v2-themes.native.js +48 -43
- package/dist/esm/v2-themes.native.js.map +2 -2
- package/dist/esm/v2.native.js +49 -12
- package/dist/esm/v2.native.js.map +2 -2
- package/package.json +7 -7
|
@@ -1,3 +1,25 @@
|
|
|
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);
|
|
1
23
|
const objectKeys = (obj) => Object.keys(obj);
|
|
2
24
|
function objectEntries(obj) {
|
|
3
25
|
return Object.entries(obj);
|
|
@@ -5,9 +27,10 @@ function objectEntries(obj) {
|
|
|
5
27
|
function objectFromEntries(arr) {
|
|
6
28
|
return Object.fromEntries(arr);
|
|
7
29
|
}
|
|
8
|
-
export
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
9
32
|
objectEntries,
|
|
10
33
|
objectFromEntries,
|
|
11
34
|
objectKeys
|
|
12
|
-
};
|
|
35
|
+
});
|
|
13
36
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/helpers.ts"],
|
|
4
|
-
"mappings": "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;",
|
|
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
|
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var src_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(src_exports);
|
|
15
|
+
__reExport(src_exports, require("./themes"), module.exports);
|
|
16
|
+
__reExport(src_exports, require("./tokens"), module.exports);
|
|
17
|
+
__reExport(src_exports, require("./masks"), module.exports);
|
|
18
|
+
__reExport(src_exports, require("./componentThemeDefinitions"), module.exports);
|
|
19
|
+
__reExport(src_exports, require("./palettes"), module.exports);
|
|
20
|
+
__reExport(src_exports, require("@tamagui/colors"), module.exports);
|
|
21
|
+
__reExport(src_exports, require("./templates"), module.exports);
|
|
22
|
+
__reExport(src_exports, require("./shadows"), module.exports);
|
|
23
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
+
0 && (module.exports = {
|
|
25
|
+
...require("./themes"),
|
|
26
|
+
...require("./tokens"),
|
|
27
|
+
...require("./masks"),
|
|
28
|
+
...require("./componentThemeDefinitions"),
|
|
29
|
+
...require("./palettes"),
|
|
30
|
+
...require("@tamagui/colors"),
|
|
31
|
+
...require("./templates"),
|
|
32
|
+
...require("./shadows")
|
|
33
|
+
});
|
|
9
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,qBAAd;AACA,wBAAc,qBADd;AAEA,wBAAc,oBAFd;AAGA,wBAAc,wCAHd;AAIA,wBAAc,uBAJd;AAKA,wBAAc,4BALd;AAMA,wBAAc,wBANd;AAOA,wBAAc,sBAPd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/masks.native.js
CHANGED
|
@@ -1,28 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from
|
|
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 masks_exports = {};
|
|
17
|
+
__export(masks_exports, {
|
|
18
|
+
masks: () => masks
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(masks_exports);
|
|
21
|
+
var import_create_theme = require("@tamagui/create-theme");
|
|
10
22
|
const masks = {
|
|
11
|
-
identity: createIdentityMask(),
|
|
12
|
-
soften: createSoftenMask(),
|
|
13
|
-
soften2: createSoftenMask({ strength: 2 }),
|
|
14
|
-
soften3: createSoftenMask({ strength: 3 }),
|
|
15
|
-
strengthen: createStrengthenMask(),
|
|
16
|
-
inverse: createInverseMask(),
|
|
17
|
-
inverseSoften: combineMasks(createInverseMask(), createSoftenMask({ strength: 2 })),
|
|
18
|
-
inverseSoften2: combineMasks(createInverseMask(), createSoftenMask({ strength: 3 })),
|
|
19
|
-
inverseSoften3: combineMasks(createInverseMask(), createSoftenMask({ strength: 4 })),
|
|
20
|
-
inverseStrengthen2: combineMasks(
|
|
21
|
-
createInverseMask(),
|
|
22
|
-
createStrengthenMask({ strength: 2 })
|
|
23
|
+
identity: (0, import_create_theme.createIdentityMask)(),
|
|
24
|
+
soften: (0, import_create_theme.createSoftenMask)(),
|
|
25
|
+
soften2: (0, import_create_theme.createSoftenMask)({ strength: 2 }),
|
|
26
|
+
soften3: (0, import_create_theme.createSoftenMask)({ strength: 3 }),
|
|
27
|
+
strengthen: (0, import_create_theme.createStrengthenMask)(),
|
|
28
|
+
inverse: (0, import_create_theme.createInverseMask)(),
|
|
29
|
+
inverseSoften: (0, import_create_theme.combineMasks)((0, import_create_theme.createInverseMask)(), (0, import_create_theme.createSoftenMask)({ strength: 2 })),
|
|
30
|
+
inverseSoften2: (0, import_create_theme.combineMasks)((0, import_create_theme.createInverseMask)(), (0, import_create_theme.createSoftenMask)({ strength: 3 })),
|
|
31
|
+
inverseSoften3: (0, import_create_theme.combineMasks)((0, import_create_theme.createInverseMask)(), (0, import_create_theme.createSoftenMask)({ strength: 4 })),
|
|
32
|
+
inverseStrengthen2: (0, import_create_theme.combineMasks)(
|
|
33
|
+
(0, import_create_theme.createInverseMask)(),
|
|
34
|
+
(0, import_create_theme.createStrengthenMask)({ strength: 2 })
|
|
23
35
|
),
|
|
24
|
-
strengthenButSoftenBorder: createMask((template, options) => {
|
|
25
|
-
const stronger = createStrengthenMask().mask(template, options), softer = createSoftenMask().mask(template, options);
|
|
36
|
+
strengthenButSoftenBorder: (0, import_create_theme.createMask)((template, options) => {
|
|
37
|
+
const stronger = (0, import_create_theme.createStrengthenMask)().mask(template, options), softer = (0, import_create_theme.createSoftenMask)().mask(template, options);
|
|
26
38
|
return {
|
|
27
39
|
...stronger,
|
|
28
40
|
borderColor: softer.borderColor,
|
|
@@ -31,8 +43,8 @@ const masks = {
|
|
|
31
43
|
borderColorFocus: softer.borderColorFocus
|
|
32
44
|
};
|
|
33
45
|
}),
|
|
34
|
-
soften2Border1: createMask((template, options) => {
|
|
35
|
-
const softer2 = createSoftenMask({ strength: 2 }).mask(template, options), softer1 = createSoftenMask({ strength: 1 }).mask(template, options);
|
|
46
|
+
soften2Border1: (0, import_create_theme.createMask)((template, options) => {
|
|
47
|
+
const softer2 = (0, import_create_theme.createSoftenMask)({ strength: 2 }).mask(template, options), softer1 = (0, import_create_theme.createSoftenMask)({ strength: 1 }).mask(template, options);
|
|
36
48
|
return {
|
|
37
49
|
...softer2,
|
|
38
50
|
borderColor: softer1.borderColor,
|
|
@@ -41,18 +53,18 @@ const masks = {
|
|
|
41
53
|
borderColorFocus: softer1.borderColorFocus
|
|
42
54
|
};
|
|
43
55
|
}),
|
|
44
|
-
soften3FlatBorder: createMask((template, options) => {
|
|
45
|
-
const borderMask = createSoftenMask({ strength: 2 }).mask(template, options);
|
|
56
|
+
soften3FlatBorder: (0, import_create_theme.createMask)((template, options) => {
|
|
57
|
+
const borderMask = (0, import_create_theme.createSoftenMask)({ strength: 2 }).mask(template, options);
|
|
46
58
|
return {
|
|
47
|
-
...createSoftenMask({ strength: 3 }).mask(template, options),
|
|
59
|
+
...(0, import_create_theme.createSoftenMask)({ strength: 3 }).mask(template, options),
|
|
48
60
|
borderColor: borderMask.borderColor,
|
|
49
61
|
borderColorHover: borderMask.borderColorHover,
|
|
50
62
|
borderColorPress: borderMask.borderColorPress,
|
|
51
63
|
borderColorFocus: borderMask.borderColorFocus
|
|
52
64
|
};
|
|
53
65
|
}),
|
|
54
|
-
softenBorder: createMask((template, options) => {
|
|
55
|
-
const plain = skipMask.mask(template, options), softer = createSoftenMask().mask(template, options);
|
|
66
|
+
softenBorder: (0, import_create_theme.createMask)((template, options) => {
|
|
67
|
+
const plain = import_create_theme.skipMask.mask(template, options), softer = (0, import_create_theme.createSoftenMask)().mask(template, options);
|
|
56
68
|
return {
|
|
57
69
|
...plain,
|
|
58
70
|
borderColor: softer.borderColor,
|
|
@@ -61,8 +73,8 @@ const masks = {
|
|
|
61
73
|
borderColorFocus: softer.borderColorFocus
|
|
62
74
|
};
|
|
63
75
|
}),
|
|
64
|
-
softenBorder2: createMask((template, options) => {
|
|
65
|
-
const plain = skipMask.mask(template, options), softer = createSoftenMask({ strength: 2 }).mask(template, options);
|
|
76
|
+
softenBorder2: (0, import_create_theme.createMask)((template, options) => {
|
|
77
|
+
const plain = import_create_theme.skipMask.mask(template, options), softer = (0, import_create_theme.createSoftenMask)({ strength: 2 }).mask(template, options);
|
|
66
78
|
return {
|
|
67
79
|
...plain,
|
|
68
80
|
borderColor: softer.borderColor,
|
|
@@ -72,7 +84,8 @@ const masks = {
|
|
|
72
84
|
};
|
|
73
85
|
})
|
|
74
86
|
};
|
|
75
|
-
export
|
|
87
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
88
|
+
0 && (module.exports = {
|
|
76
89
|
masks
|
|
77
|
-
};
|
|
90
|
+
});
|
|
78
91
|
//# sourceMappingURL=masks.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/masks.tsx"],
|
|
4
|
-
"mappings": "AAAA;AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BASO;AAEA,MAAM,QAAQ;AAAA,EACnB,cAAU,wCAAmB;AAAA,EAC7B,YAAQ,sCAAiB;AAAA,EACzB,aAAS,sCAAiB,EAAE,UAAU,EAAE,CAAC;AAAA,EACzC,aAAS,sCAAiB,EAAE,UAAU,EAAE,CAAC;AAAA,EACzC,gBAAY,0CAAqB;AAAA,EACjC,aAAS,uCAAkB;AAAA,EAC3B,mBAAe,sCAAa,uCAAkB,OAAG,sCAAiB,EAAE,UAAU,EAAE,CAAC,CAAC;AAAA,EAClF,oBAAgB,sCAAa,uCAAkB,OAAG,sCAAiB,EAAE,UAAU,EAAE,CAAC,CAAC;AAAA,EACnF,oBAAgB,sCAAa,uCAAkB,OAAG,sCAAiB,EAAE,UAAU,EAAE,CAAC,CAAC;AAAA,EACnF,wBAAoB;AAAA,QAClB,uCAAkB;AAAA,QAClB,0CAAqB,EAAE,UAAU,EAAE,CAAC;AAAA,EACtC;AAAA,EACA,+BAA2B,gCAAW,CAAC,UAAU,YAAY;AAC3D,UAAM,eAAW,0CAAqB,EAAE,KAAK,UAAU,OAAO,GACxD,aAAS,sCAAiB,EAAE,KAAK,UAAU,OAAO;AACxD,WAAO;AAAA,MACL,GAAG;AAAA,MACH,aAAa,OAAO;AAAA,MACpB,kBAAkB,OAAO;AAAA,MACzB,kBAAkB,OAAO;AAAA,MACzB,kBAAkB,OAAO;AAAA,IAC3B;AAAA,EACF,CAAC;AAAA,EACD,oBAAgB,gCAAW,CAAC,UAAU,YAAY;AAChD,UAAM,cAAU,sCAAiB,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,UAAU,OAAO,GAClE,cAAU,sCAAiB,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,UAAU,OAAO;AACxE,WAAO;AAAA,MACL,GAAG;AAAA,MACH,aAAa,QAAQ;AAAA,MACrB,kBAAkB,QAAQ;AAAA,MAC1B,kBAAkB,QAAQ;AAAA,MAC1B,kBAAkB,QAAQ;AAAA,IAC5B;AAAA,EACF,CAAC;AAAA,EACD,uBAAmB,gCAAW,CAAC,UAAU,YAAY;AACnD,UAAM,iBAAa,sCAAiB,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,UAAU,OAAO;AAE3E,WAAO;AAAA,MACL,OAFc,sCAAiB,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,UAAU,OAAO;AAAA,MAGtE,aAAa,WAAW;AAAA,MACxB,kBAAkB,WAAW;AAAA,MAC7B,kBAAkB,WAAW;AAAA,MAC7B,kBAAkB,WAAW;AAAA,IAC/B;AAAA,EACF,CAAC;AAAA,EACD,kBAAc,gCAAW,CAAC,UAAU,YAAY;AAC9C,UAAM,QAAQ,6BAAS,KAAK,UAAU,OAAO,GACvC,aAAS,sCAAiB,EAAE,KAAK,UAAU,OAAO;AACxD,WAAO;AAAA,MACL,GAAG;AAAA,MACH,aAAa,OAAO;AAAA,MACpB,kBAAkB,OAAO;AAAA,MACzB,kBAAkB,OAAO;AAAA,MACzB,kBAAkB,OAAO;AAAA,IAC3B;AAAA,EACF,CAAC;AAAA,EACD,mBAAe,gCAAW,CAAC,UAAU,YAAY;AAC/C,UAAM,QAAQ,6BAAS,KAAK,UAAU,OAAO,GACvC,aAAS,sCAAiB,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,UAAU,OAAO;AACvE,WAAO;AAAA,MACL,GAAG;AAAA,MACH,aAAa,OAAO;AAAA,MACpB,kBAAkB,OAAO;AAAA,MACzB,kBAAkB,OAAO;AAAA,MACzB,kBAAkB,OAAO;AAAA,IAC3B;AAAA,EACF,CAAC;AACH;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 palettes_exports = {};
|
|
17
|
+
__export(palettes_exports, {
|
|
18
|
+
palettes: () => palettes
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(palettes_exports);
|
|
21
|
+
var import_helpers = require("./helpers"), import_tokens = require("./tokens");
|
|
3
22
|
const palettes = (() => {
|
|
4
23
|
const lightTransparent = "rgba(255,255,255,0)", darkTransparent = "rgba(10,10,10,0)", transparent = (hsl, opacity = 0) => hsl.replace("%)", `%, ${opacity})`).replace("hsl(", "hsla("), getColorPalette = (colors, color = colors[0]) => {
|
|
5
24
|
const colorPalette = Object.values(colors), [head, tail] = [
|
|
@@ -43,13 +62,13 @@ const palettes = (() => {
|
|
|
43
62
|
"#a5a5a5",
|
|
44
63
|
darkColor,
|
|
45
64
|
lightTransparent
|
|
46
|
-
], lightPalettes = objectFromEntries(
|
|
47
|
-
objectKeys(colorTokens.light).map(
|
|
48
|
-
(key) => [`light_${key}`, getColorPalette(colorTokens.light[key], lightColor)]
|
|
65
|
+
], lightPalettes = (0, import_helpers.objectFromEntries)(
|
|
66
|
+
(0, import_helpers.objectKeys)(import_tokens.colorTokens.light).map(
|
|
67
|
+
(key) => [`light_${key}`, getColorPalette(import_tokens.colorTokens.light[key], lightColor)]
|
|
49
68
|
)
|
|
50
|
-
), darkPalettes = objectFromEntries(
|
|
51
|
-
objectKeys(colorTokens.dark).map(
|
|
52
|
-
(key) => [`dark_${key}`, getColorPalette(colorTokens.dark[key], darkColor)]
|
|
69
|
+
), darkPalettes = (0, import_helpers.objectFromEntries)(
|
|
70
|
+
(0, import_helpers.objectKeys)(import_tokens.colorTokens.dark).map(
|
|
71
|
+
(key) => [`dark_${key}`, getColorPalette(import_tokens.colorTokens.dark[key], darkColor)]
|
|
53
72
|
)
|
|
54
73
|
), colorPalettes = {
|
|
55
74
|
...lightPalettes,
|
|
@@ -61,7 +80,8 @@ const palettes = (() => {
|
|
|
61
80
|
...colorPalettes
|
|
62
81
|
};
|
|
63
82
|
})();
|
|
64
|
-
export
|
|
83
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
+
0 && (module.exports = {
|
|
65
85
|
palettes
|
|
66
|
-
};
|
|
86
|
+
});
|
|
67
87
|
//# sourceMappingURL=palettes.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/palettes.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA8C,sBAC9C,gBAA4B;AAErB,MAAM,YAAY,MAAM;AAC7B,QAAM,mBAAmB,uBACnB,kBAAkB,oBAElB,cAAc,CAAC,KAAa,UAAU,MAC1C,IAAI,QAAQ,MAAM,MAAM,OAAO,GAAG,EAAE,QAAQ,QAAQ,OAAO,GAEvD,kBAAkB,CAAC,QAAgB,QAAQ,OAAO,CAAC,MAAgB;AACvE,UAAM,eAAe,OAAO,OAAO,MAAM,GAGnC,CAAC,MAAM,IAAI,IAAI;AAAA,MACnB,aAAa,MAAM,GAAG,CAAC;AAAA,MACvB,aAAa,MAAM,aAAa,SAAS,CAAC;AAAA,IAC5C;AAKA,WAAO;AAAA,MACL,YAAY,aAAa,CAAC,CAAC;AAAA,MAC3B,GAAG;AAAA,MACH,GAAG;AAAA,MACH;AAAA,MACA,YAAY,aAAa,aAAa,SAAS,CAAC,CAAC;AAAA,IACnD;AAAA,EACF,GAEM,aAAa,oBACb,eAAe;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GAEM,YAAY,QACZ,cAAc;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GAEM,oBAAgB;AAAA,QACpB,2BAAW,0BAAY,KAAK,EAAE;AAAA,MAC5B,CAAC,QACC,CAAC,SAAS,GAAG,IAAI,gBAAgB,0BAAY,MAAM,GAAG,GAAG,UAAU,CAAC;AAAA,IACxE;AAAA,EACF,GAEM,mBAAe;AAAA,QACnB,2BAAW,0BAAY,IAAI,EAAE;AAAA,MAC3B,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,gBAAgB,0BAAY,KAAK,GAAG,GAAG,SAAS,CAAC;AAAA,IAC5E;AAAA,EACF,GAEM,gBAAgB;AAAA,IACpB,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAEA,SAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,IACN,GAAG;AAAA,EACL;AACF,GAAG;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,3 +1,23 @@
|
|
|
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 shadows_exports = {};
|
|
17
|
+
__export(shadows_exports, {
|
|
18
|
+
shadows: () => shadows
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(shadows_exports);
|
|
1
21
|
const lightShadowColor = "rgba(0,0,0,0.04)", lightShadowColorStrong = "rgba(0,0,0,0.085)", darkShadowColor = "rgba(0,0,0,0.2)", darkShadowColorStrong = "rgba(0,0,0,0.3)", shadows = {
|
|
2
22
|
light: {
|
|
3
23
|
shadowColor: lightShadowColorStrong,
|
|
@@ -12,7 +32,8 @@ const lightShadowColor = "rgba(0,0,0,0.04)", lightShadowColorStrong = "rgba(0,0,
|
|
|
12
32
|
shadowColorFocus: darkShadowColor
|
|
13
33
|
}
|
|
14
34
|
};
|
|
15
|
-
export
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
16
37
|
shadows
|
|
17
|
-
};
|
|
38
|
+
});
|
|
18
39
|
//# sourceMappingURL=shadows.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/shadows.tsx"],
|
|
4
|
-
"mappings": "AAAA,MAAM,mBAAmB,oBACnB,yBAAyB,qBACzB,kBAAkB,mBAClB,wBAAwB,mBAEjB,UAAU;AAAA,EACrB,OAAO;AAAA,IACL,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,EACpB;AAAA,EACA,MAAM;AAAA,IACJ,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,EACpB;AACF;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,mBAAmB,oBACnB,yBAAyB,qBACzB,kBAAkB,mBAClB,wBAAwB,mBAEjB,UAAU;AAAA,EACrB,OAAO;AAAA,IACL,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,EACpB;AAAA,EACA,MAAM;AAAA,IACJ,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,EACpB;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
|
|
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 templates_exports = {};
|
|
17
|
+
__export(templates_exports, {
|
|
18
|
+
maskOptions: () => maskOptions,
|
|
19
|
+
templates: () => templates
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(templates_exports);
|
|
22
|
+
var import_palettes = require("./palettes");
|
|
2
23
|
const templateColorsSpecific = {
|
|
3
24
|
color1: 1,
|
|
4
25
|
color2: 2,
|
|
@@ -59,7 +80,7 @@ const templateColorsSpecific = {
|
|
|
59
80
|
override: shadows,
|
|
60
81
|
skip: shadows,
|
|
61
82
|
// avoids the transparent ends
|
|
62
|
-
max: palettes.light.length - 2,
|
|
83
|
+
max: import_palettes.palettes.light.length - 2,
|
|
63
84
|
min: 1
|
|
64
85
|
}, skipShadowsAndSpecificColors = {
|
|
65
86
|
...shadows,
|
|
@@ -83,8 +104,9 @@ const templateColorsSpecific = {
|
|
|
83
104
|
skip: skipShadowsAndSpecificColors
|
|
84
105
|
}
|
|
85
106
|
};
|
|
86
|
-
export
|
|
107
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
108
|
+
0 && (module.exports = {
|
|
87
109
|
maskOptions,
|
|
88
110
|
templates
|
|
89
|
-
};
|
|
111
|
+
});
|
|
90
112
|
//# sourceMappingURL=templates.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/templates.tsx"],
|
|
4
|
-
"mappings": "AAEA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAAyB;AAEzB,MAAM,yBAAyB;AAAA,EAC7B,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AACX,GAIM,WAAW;AAAA,EACf,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,EAKH,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,uBAAuB;AAAA,EACvB,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,kBAAkB;AACpB,GAEa,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,YAAY;AAAA,IACV,GAAG;AAAA;AAAA,IAEH,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,EACpB;AACF,GAEM,UAAU;AAAA,EACd,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,kBAAkB;AACpB,GAEM,SAAS;AAAA,EACb,GAAG;AAAA,EACH,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AACd,GAEM,kBAA+B;AAAA,EACnC,UAAU;AAAA,EACV,MAAM;AAAA;AAAA,EAEN,KAAK,yBAAS,MAAM,SAAS;AAAA,EAC7B,KAAK;AACP,GAEM,+BAA+B;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AACL,GAEa,cAAc;AAAA,EACzB,WAAW;AAAA,IACT,GAAG;AAAA,IACH,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AAAA,EACA,KAAK;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,UAAU;AAAA,MACR,GAAG;AAAA,MACH,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB;AAAA,IACA,MAAM;AAAA,EACR;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 themes_new_exports = {};
|
|
17
|
+
__export(themes_new_exports, {
|
|
18
|
+
themes: () => themes
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(themes_new_exports);
|
|
21
|
+
var import_theme_builder = require("@tamagui/theme-builder"), import_componentThemeDefinitions = require("./componentThemeDefinitions"), import_masks = require("./masks"), import_palettes = require("./palettes"), import_shadows = require("./shadows"), import_templates = require("./templates"), import_tokens = require("./tokens");
|
|
8
22
|
const colorThemeDefinition = (colorName) => [
|
|
9
23
|
{
|
|
10
24
|
parent: "light",
|
|
@@ -16,21 +30,21 @@ const colorThemeDefinition = (colorName) => [
|
|
|
16
30
|
palette: colorName,
|
|
17
31
|
template: "base"
|
|
18
32
|
}
|
|
19
|
-
], themesBuilder = createThemeBuilder().addPalettes(palettes).addTemplates(templates).addMasks(masks).addThemes({
|
|
33
|
+
], themesBuilder = (0, import_theme_builder.createThemeBuilder)().addPalettes(import_palettes.palettes).addTemplates(import_templates.templates).addMasks(import_masks.masks).addThemes({
|
|
20
34
|
light: {
|
|
21
35
|
template: "base",
|
|
22
36
|
palette: "light",
|
|
23
37
|
nonInheritedValues: {
|
|
24
|
-
...lightColors,
|
|
25
|
-
...shadows.light
|
|
38
|
+
...import_tokens.lightColors,
|
|
39
|
+
...import_shadows.shadows.light
|
|
26
40
|
}
|
|
27
41
|
},
|
|
28
42
|
dark: {
|
|
29
43
|
template: "base",
|
|
30
44
|
palette: "dark",
|
|
31
45
|
nonInheritedValues: {
|
|
32
|
-
...darkColors,
|
|
33
|
-
...shadows.dark
|
|
46
|
+
...import_tokens.darkColors,
|
|
47
|
+
...import_shadows.shadows.dark
|
|
34
48
|
}
|
|
35
49
|
}
|
|
36
50
|
}).addChildThemes({
|
|
@@ -44,11 +58,11 @@ const colorThemeDefinition = (colorName) => [
|
|
|
44
58
|
}).addChildThemes({
|
|
45
59
|
alt1: {
|
|
46
60
|
mask: "soften",
|
|
47
|
-
...maskOptions.alt
|
|
61
|
+
...import_templates.maskOptions.alt
|
|
48
62
|
},
|
|
49
63
|
alt2: {
|
|
50
64
|
mask: "soften2",
|
|
51
|
-
...maskOptions.alt
|
|
65
|
+
...import_templates.maskOptions.alt
|
|
52
66
|
},
|
|
53
67
|
active: {
|
|
54
68
|
mask: "soften3",
|
|
@@ -56,11 +70,12 @@ const colorThemeDefinition = (colorName) => [
|
|
|
56
70
|
color: 1
|
|
57
71
|
}
|
|
58
72
|
}
|
|
59
|
-
}).addChildThemes(componentThemeDefinitions, {
|
|
73
|
+
}).addChildThemes(import_componentThemeDefinitions.componentThemeDefinitions, {
|
|
60
74
|
// to save bundle size but make alt themes not work on components
|
|
61
75
|
// avoidNestingWithin: ['alt1', 'alt2'],
|
|
62
76
|
}), themes = themesBuilder.build();
|
|
63
|
-
export
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
64
79
|
themes
|
|
65
|
-
};
|
|
80
|
+
});
|
|
66
81
|
//# sourceMappingURL=themes-new.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/themes-new.ts"],
|
|
4
|
-
"mappings": "AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAmC,mCAEnC,mCAA0C,wCAC1C,eAAsB,oBACtB,kBAAyB,uBACzB,iBAAwB,sBACxB,mBAAuC,wBACvC,gBAAwC;AAExC,MAAM,uBAAuB,CAAC,cAAsB;AAAA,EAClD;AAAA,IACE,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AACF,GAEM,oBAAgB,yCAAmB,EACtC,YAAY,wBAAQ,EACpB,aAAa,0BAAS,EACtB,SAAS,kBAAK,EACd,UAAU;AAAA,EACT,OAAO;AAAA,IACL,UAAU;AAAA,IACV,SAAS;AAAA,IACT,oBAAoB;AAAA,MAClB,GAAG;AAAA,MACH,GAAG,uBAAQ;AAAA,IACb;AAAA,EACF;AAAA,EACA,MAAM;AAAA,IACJ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,oBAAoB;AAAA,MAClB,GAAG;AAAA,MACH,GAAG,uBAAQ;AAAA,IACb;AAAA,EACF;AACF,CAAC,EACA,eAAe;AAAA,EACd,QAAQ,qBAAqB,QAAQ;AAAA,EACrC,QAAQ,qBAAqB,QAAQ;AAAA,EACrC,OAAO,qBAAqB,OAAO;AAAA,EACnC,MAAM,qBAAqB,MAAM;AAAA,EACjC,QAAQ,qBAAqB,QAAQ;AAAA,EACrC,MAAM,qBAAqB,MAAM;AAAA,EACjC,KAAK,qBAAqB,KAAK;AACjC,CAAC,EACA,eAAe;AAAA,EACd,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,GAAG,6BAAY;AAAA,EACjB;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,GAAG,6BAAY;AAAA,EACjB;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,IACT;AAAA,EACF;AACF,CAAC,EACA,eAAe,4DAA2B;AAAA;AAAA;AAG3C,CAAC,GAEU,SAAS,cAAc,MAAM;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|