@tamagui/themes 1.144.2 → 1.144.3
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/.turbo/turbo-build.log +2 -1
- package/dist/cjs/defaultGrandChildrenThemes.cjs +45 -0
- package/dist/cjs/defaultGrandChildrenThemes.js +28 -0
- package/dist/cjs/defaultGrandChildrenThemes.js.map +6 -0
- package/dist/cjs/defaultGrandChildrenThemes.native.js +48 -0
- package/dist/cjs/defaultGrandChildrenThemes.native.js.map +1 -0
- package/dist/cjs/v5-templates.cjs +151 -0
- package/dist/cjs/v5-templates.js +138 -0
- package/dist/cjs/v5-templates.js.map +6 -0
- package/dist/cjs/v5-templates.native.js +166 -0
- package/dist/cjs/v5-templates.native.js.map +1 -0
- package/dist/esm/defaultGrandChildrenThemes.js +12 -0
- package/dist/esm/defaultGrandChildrenThemes.js.map +6 -0
- package/dist/esm/defaultGrandChildrenThemes.mjs +22 -0
- package/dist/esm/defaultGrandChildrenThemes.mjs.map +1 -0
- package/dist/esm/defaultGrandChildrenThemes.native.js +22 -0
- package/dist/esm/defaultGrandChildrenThemes.native.js.map +1 -0
- package/dist/esm/v5-templates.js +122 -0
- package/dist/esm/v5-templates.js.map +6 -0
- package/dist/esm/v5-templates.mjs +128 -0
- package/dist/esm/v5-templates.mjs.map +1 -0
- package/dist/esm/v5-templates.native.js +140 -0
- package/dist/esm/v5-templates.native.js.map +1 -0
- package/package.json +7 -7
- package/types/defaultGrandChildrenThemes.d.ts.map +1 -0
- package/types/v5-templates.d.ts.map +1 -0
- package/.turbo/turbo-test.log +0 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
built @tamagui/themes in [33m4420[39m ms
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var defaultGrandChildrenThemes_exports = {};
|
|
22
|
+
__export(defaultGrandChildrenThemes_exports, {
|
|
23
|
+
defaultGrandChildrenThemes: () => defaultGrandChildrenThemes
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(defaultGrandChildrenThemes_exports);
|
|
26
|
+
const defaultGrandChildrenThemes = {
|
|
27
|
+
accent: {
|
|
28
|
+
template: "inverse"
|
|
29
|
+
},
|
|
30
|
+
alt1: {
|
|
31
|
+
template: "alt1"
|
|
32
|
+
},
|
|
33
|
+
alt2: {
|
|
34
|
+
template: "alt2"
|
|
35
|
+
},
|
|
36
|
+
surface1: {
|
|
37
|
+
template: "surface1"
|
|
38
|
+
},
|
|
39
|
+
surface2: {
|
|
40
|
+
template: "surface2"
|
|
41
|
+
},
|
|
42
|
+
surface3: {
|
|
43
|
+
template: "surface3"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var defaultGrandChildrenThemes_exports = {};
|
|
16
|
+
__export(defaultGrandChildrenThemes_exports, {
|
|
17
|
+
defaultGrandChildrenThemes: () => defaultGrandChildrenThemes
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(defaultGrandChildrenThemes_exports);
|
|
20
|
+
const defaultGrandChildrenThemes = {
|
|
21
|
+
accent: { template: "inverse" },
|
|
22
|
+
alt1: { template: "alt1" },
|
|
23
|
+
alt2: { template: "alt2" },
|
|
24
|
+
surface1: { template: "surface1" },
|
|
25
|
+
surface2: { template: "surface2" },
|
|
26
|
+
surface3: { template: "surface3" }
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=defaultGrandChildrenThemes.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/defaultGrandChildrenThemes.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,6BAA6B;AAAA,EACxC,QAAQ,EAAE,UAAU,UAAU;AAAA,EAC9B,MAAM,EAAE,UAAU,OAAO;AAAA,EACzB,MAAM,EAAE,UAAU,OAAO;AAAA,EACzB,UAAU,EAAE,UAAU,WAAW;AAAA,EACjC,UAAU,EAAE,UAAU,WAAW;AAAA,EACjC,UAAU,EAAE,UAAU,WAAW;AACnC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
23
|
+
var defaultGrandChildrenThemes_exports = {};
|
|
24
|
+
__export(defaultGrandChildrenThemes_exports, {
|
|
25
|
+
defaultGrandChildrenThemes: () => defaultGrandChildrenThemes
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(defaultGrandChildrenThemes_exports);
|
|
28
|
+
var defaultGrandChildrenThemes = {
|
|
29
|
+
accent: {
|
|
30
|
+
template: "inverse"
|
|
31
|
+
},
|
|
32
|
+
alt1: {
|
|
33
|
+
template: "alt1"
|
|
34
|
+
},
|
|
35
|
+
alt2: {
|
|
36
|
+
template: "alt2"
|
|
37
|
+
},
|
|
38
|
+
surface1: {
|
|
39
|
+
template: "surface1"
|
|
40
|
+
},
|
|
41
|
+
surface2: {
|
|
42
|
+
template: "surface2"
|
|
43
|
+
},
|
|
44
|
+
surface3: {
|
|
45
|
+
template: "surface3"
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=defaultGrandChildrenThemes.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","defaultGrandChildrenThemes_exports","__export","defaultGrandChildrenThemes","module","exports","accent","template","alt1"],"sources":["../../src/defaultGrandChildrenThemes.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kCAAA;AAAAC,QAAA,CAAAD,kCAAA;EAAAE,0BAAA,EAAAA,CAAA,KAAAA;AAAA;AAiBOC,MAAM,CAAAC,OAAA,GAAAT,YAAA,CAAAK,kCAA6B;AAAA,IACxCE,0BAAoB,GAAU;EAC9BG,MAAM,EAAE;IACRC,QAAQ;EACR;EACAC,IAAA;IACAD,QAAU,EAAE;EACd","ignoreList":[]}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var v5_templates_exports = {};
|
|
22
|
+
__export(v5_templates_exports, {
|
|
23
|
+
v5Templates: () => v5Templates
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(v5_templates_exports);
|
|
26
|
+
const objectFromEntries = entries => Object.fromEntries(entries),
|
|
27
|
+
objectKeys = obj => Object.keys(obj),
|
|
28
|
+
getTemplates = () => {
|
|
29
|
+
const lightTemplates = getBaseTemplates("light"),
|
|
30
|
+
darkTemplates = getBaseTemplates("dark");
|
|
31
|
+
return {
|
|
32
|
+
...objectFromEntries(objectKeys(lightTemplates).map(name => [`light_${name}`, lightTemplates[name]])),
|
|
33
|
+
...objectFromEntries(objectKeys(darkTemplates).map(name => [`dark_${name}`, darkTemplates[name]]))
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
getBaseTemplates = scheme => {
|
|
37
|
+
const isLight = scheme === "light",
|
|
38
|
+
bgIndex = 6,
|
|
39
|
+
lighten = isLight ? -1 : 1,
|
|
40
|
+
darken = -lighten,
|
|
41
|
+
increaseContrast = 1,
|
|
42
|
+
borderColor = bgIndex + 3,
|
|
43
|
+
baseColors = {
|
|
44
|
+
color: -bgIndex,
|
|
45
|
+
colorHover: -bgIndex - 1,
|
|
46
|
+
colorPress: -bgIndex,
|
|
47
|
+
colorFocus: -bgIndex - 1,
|
|
48
|
+
placeholderColor: -bgIndex - 3,
|
|
49
|
+
outlineColor: -2
|
|
50
|
+
},
|
|
51
|
+
base = {
|
|
52
|
+
accentBackground: 0,
|
|
53
|
+
accentColor: -0,
|
|
54
|
+
background0: 1,
|
|
55
|
+
background02: 2,
|
|
56
|
+
background04: 3,
|
|
57
|
+
background06: 4,
|
|
58
|
+
background08: 5,
|
|
59
|
+
color1: bgIndex,
|
|
60
|
+
color2: bgIndex + 1,
|
|
61
|
+
color3: bgIndex + 2,
|
|
62
|
+
color4: bgIndex + 3,
|
|
63
|
+
color5: bgIndex + 4,
|
|
64
|
+
color6: bgIndex + 5,
|
|
65
|
+
color7: bgIndex + 6,
|
|
66
|
+
color8: bgIndex + 7,
|
|
67
|
+
color9: bgIndex + 8,
|
|
68
|
+
color10: bgIndex + 9,
|
|
69
|
+
color11: bgIndex + 10,
|
|
70
|
+
color12: bgIndex + 11,
|
|
71
|
+
color0: -1,
|
|
72
|
+
color02: -2,
|
|
73
|
+
color04: -3,
|
|
74
|
+
color06: -4,
|
|
75
|
+
color08: -5,
|
|
76
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
77
|
+
// can publish components for others to use without mandating a specific color scale
|
|
78
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
79
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
80
|
+
background: bgIndex,
|
|
81
|
+
backgroundHover: bgIndex + increaseContrast * 2,
|
|
82
|
+
backgroundPress: bgIndex + increaseContrast * 3,
|
|
83
|
+
backgroundFocus: bgIndex + increaseContrast * 2,
|
|
84
|
+
backgroundActive: bgIndex + increaseContrast * 4,
|
|
85
|
+
borderColor,
|
|
86
|
+
borderColorHover: borderColor + lighten,
|
|
87
|
+
borderColorPress: borderColor + darken,
|
|
88
|
+
borderColorFocus: borderColor,
|
|
89
|
+
...baseColors,
|
|
90
|
+
colorTransparent: -1
|
|
91
|
+
},
|
|
92
|
+
surface1 = {
|
|
93
|
+
...baseColors,
|
|
94
|
+
background: base.background + 1,
|
|
95
|
+
backgroundHover: base.backgroundHover + 1,
|
|
96
|
+
backgroundPress: base.backgroundPress + 1,
|
|
97
|
+
backgroundFocus: base.backgroundFocus + 1,
|
|
98
|
+
backgroundActive: base.backgroundActive + 1,
|
|
99
|
+
borderColor: base.borderColor + 1,
|
|
100
|
+
borderColorHover: base.borderColorHover + 1,
|
|
101
|
+
borderColorFocus: base.borderColorFocus + 1,
|
|
102
|
+
borderColorPress: base.borderColorPress + 1
|
|
103
|
+
},
|
|
104
|
+
surface2 = {
|
|
105
|
+
...baseColors,
|
|
106
|
+
background: base.background + 2,
|
|
107
|
+
backgroundHover: base.backgroundHover + 2,
|
|
108
|
+
backgroundPress: base.backgroundPress + 2,
|
|
109
|
+
backgroundFocus: base.backgroundFocus + 2,
|
|
110
|
+
backgroundActive: base.backgroundActive + 2,
|
|
111
|
+
borderColor: base.borderColor + 2,
|
|
112
|
+
borderColorHover: base.borderColorHover + 2,
|
|
113
|
+
borderColorFocus: base.borderColorFocus + 2,
|
|
114
|
+
borderColorPress: base.borderColorPress + 2
|
|
115
|
+
},
|
|
116
|
+
surface3 = {
|
|
117
|
+
...baseColors,
|
|
118
|
+
background: base.background + 3,
|
|
119
|
+
backgroundHover: base.backgroundHover + 3,
|
|
120
|
+
backgroundPress: base.backgroundPress + 3,
|
|
121
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
122
|
+
backgroundActive: base.backgroundActive + 3,
|
|
123
|
+
borderColor: base.borderColor + 3,
|
|
124
|
+
borderColorHover: base.borderColorHover + 3,
|
|
125
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
126
|
+
borderColorPress: base.borderColorPress + 3
|
|
127
|
+
},
|
|
128
|
+
alt1 = {
|
|
129
|
+
color: base.color - 1,
|
|
130
|
+
colorHover: base.colorHover - 1,
|
|
131
|
+
colorPress: base.colorPress - 1,
|
|
132
|
+
colorFocus: base.colorFocus - 1
|
|
133
|
+
},
|
|
134
|
+
alt2 = {
|
|
135
|
+
color: base.color - 2,
|
|
136
|
+
colorHover: base.colorHover - 2,
|
|
137
|
+
colorPress: base.colorPress - 2,
|
|
138
|
+
colorFocus: base.colorFocus - 2
|
|
139
|
+
},
|
|
140
|
+
inverse = Object.fromEntries(Object.entries(base).map(([key, index]) => [key, -index]));
|
|
141
|
+
return {
|
|
142
|
+
base,
|
|
143
|
+
surface1,
|
|
144
|
+
surface2,
|
|
145
|
+
surface3,
|
|
146
|
+
alt1,
|
|
147
|
+
alt2,
|
|
148
|
+
inverse
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
v5Templates = getTemplates();
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var v5_templates_exports = {};
|
|
16
|
+
__export(v5_templates_exports, {
|
|
17
|
+
v5Templates: () => v5Templates
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(v5_templates_exports);
|
|
20
|
+
const objectFromEntries = (entries) => Object.fromEntries(entries), objectKeys = (obj) => Object.keys(obj), getTemplates = () => {
|
|
21
|
+
const lightTemplates = getBaseTemplates("light"), darkTemplates = getBaseTemplates("dark");
|
|
22
|
+
return {
|
|
23
|
+
...objectFromEntries(
|
|
24
|
+
objectKeys(lightTemplates).map(
|
|
25
|
+
(name) => [`light_${name}`, lightTemplates[name]]
|
|
26
|
+
)
|
|
27
|
+
),
|
|
28
|
+
...objectFromEntries(
|
|
29
|
+
objectKeys(darkTemplates).map(
|
|
30
|
+
(name) => [`dark_${name}`, darkTemplates[name]]
|
|
31
|
+
)
|
|
32
|
+
)
|
|
33
|
+
};
|
|
34
|
+
}, getBaseTemplates = (scheme) => {
|
|
35
|
+
const isLight = scheme === "light", bgIndex = 6, lighten = isLight ? -1 : 1, darken = -lighten, increaseContrast = 1, borderColor = bgIndex + 3, baseColors = {
|
|
36
|
+
color: -bgIndex,
|
|
37
|
+
colorHover: -bgIndex - 1,
|
|
38
|
+
colorPress: -bgIndex,
|
|
39
|
+
colorFocus: -bgIndex - 1,
|
|
40
|
+
placeholderColor: -bgIndex - 3,
|
|
41
|
+
outlineColor: -2
|
|
42
|
+
}, base = {
|
|
43
|
+
accentBackground: 0,
|
|
44
|
+
accentColor: -0,
|
|
45
|
+
background0: 1,
|
|
46
|
+
background02: 2,
|
|
47
|
+
background04: 3,
|
|
48
|
+
background06: 4,
|
|
49
|
+
background08: 5,
|
|
50
|
+
color1: bgIndex,
|
|
51
|
+
color2: bgIndex + 1,
|
|
52
|
+
color3: bgIndex + 2,
|
|
53
|
+
color4: bgIndex + 3,
|
|
54
|
+
color5: bgIndex + 4,
|
|
55
|
+
color6: bgIndex + 5,
|
|
56
|
+
color7: bgIndex + 6,
|
|
57
|
+
color8: bgIndex + 7,
|
|
58
|
+
color9: bgIndex + 8,
|
|
59
|
+
color10: bgIndex + 9,
|
|
60
|
+
color11: bgIndex + 10,
|
|
61
|
+
color12: bgIndex + 11,
|
|
62
|
+
color0: -1,
|
|
63
|
+
color02: -2,
|
|
64
|
+
color04: -3,
|
|
65
|
+
color06: -4,
|
|
66
|
+
color08: -5,
|
|
67
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
68
|
+
// can publish components for others to use without mandating a specific color scale
|
|
69
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
70
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
71
|
+
background: bgIndex,
|
|
72
|
+
backgroundHover: bgIndex + increaseContrast * 2,
|
|
73
|
+
backgroundPress: bgIndex + increaseContrast * 3,
|
|
74
|
+
backgroundFocus: bgIndex + increaseContrast * 2,
|
|
75
|
+
backgroundActive: bgIndex + increaseContrast * 4,
|
|
76
|
+
borderColor,
|
|
77
|
+
borderColorHover: borderColor + lighten,
|
|
78
|
+
borderColorPress: borderColor + darken,
|
|
79
|
+
borderColorFocus: borderColor,
|
|
80
|
+
...baseColors,
|
|
81
|
+
colorTransparent: -1
|
|
82
|
+
}, surface1 = {
|
|
83
|
+
...baseColors,
|
|
84
|
+
background: base.background + 1,
|
|
85
|
+
backgroundHover: base.backgroundHover + 1,
|
|
86
|
+
backgroundPress: base.backgroundPress + 1,
|
|
87
|
+
backgroundFocus: base.backgroundFocus + 1,
|
|
88
|
+
backgroundActive: base.backgroundActive + 1,
|
|
89
|
+
borderColor: base.borderColor + 1,
|
|
90
|
+
borderColorHover: base.borderColorHover + 1,
|
|
91
|
+
borderColorFocus: base.borderColorFocus + 1,
|
|
92
|
+
borderColorPress: base.borderColorPress + 1
|
|
93
|
+
}, surface2 = {
|
|
94
|
+
...baseColors,
|
|
95
|
+
background: base.background + 2,
|
|
96
|
+
backgroundHover: base.backgroundHover + 2,
|
|
97
|
+
backgroundPress: base.backgroundPress + 2,
|
|
98
|
+
backgroundFocus: base.backgroundFocus + 2,
|
|
99
|
+
backgroundActive: base.backgroundActive + 2,
|
|
100
|
+
borderColor: base.borderColor + 2,
|
|
101
|
+
borderColorHover: base.borderColorHover + 2,
|
|
102
|
+
borderColorFocus: base.borderColorFocus + 2,
|
|
103
|
+
borderColorPress: base.borderColorPress + 2
|
|
104
|
+
}, surface3 = {
|
|
105
|
+
...baseColors,
|
|
106
|
+
background: base.background + 3,
|
|
107
|
+
backgroundHover: base.backgroundHover + 3,
|
|
108
|
+
backgroundPress: base.backgroundPress + 3,
|
|
109
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
110
|
+
backgroundActive: base.backgroundActive + 3,
|
|
111
|
+
borderColor: base.borderColor + 3,
|
|
112
|
+
borderColorHover: base.borderColorHover + 3,
|
|
113
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
114
|
+
borderColorPress: base.borderColorPress + 3
|
|
115
|
+
}, alt1 = {
|
|
116
|
+
color: base.color - 1,
|
|
117
|
+
colorHover: base.colorHover - 1,
|
|
118
|
+
colorPress: base.colorPress - 1,
|
|
119
|
+
colorFocus: base.colorFocus - 1
|
|
120
|
+
}, alt2 = {
|
|
121
|
+
color: base.color - 2,
|
|
122
|
+
colorHover: base.colorHover - 2,
|
|
123
|
+
colorPress: base.colorPress - 2,
|
|
124
|
+
colorFocus: base.colorFocus - 2
|
|
125
|
+
}, inverse = Object.fromEntries(
|
|
126
|
+
Object.entries(base).map(([key, index]) => [key, -index])
|
|
127
|
+
);
|
|
128
|
+
return {
|
|
129
|
+
base,
|
|
130
|
+
surface1,
|
|
131
|
+
surface2,
|
|
132
|
+
surface3,
|
|
133
|
+
alt1,
|
|
134
|
+
alt2,
|
|
135
|
+
inverse
|
|
136
|
+
};
|
|
137
|
+
}, v5Templates = getTemplates();
|
|
138
|
+
//# sourceMappingURL=v5-templates.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/v5-templates.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,MAAM,oBAAoB,CACxB,YAEO,OAAO,YAAY,OAAO,GAG7B,aAAa,CAAmB,QAC7B,OAAO,KAAK,GAAG,GAGlB,eAAe,MAAM;AACzB,QAAM,iBAAiB,iBAAiB,OAAO,GACzC,gBAAgB,iBAAiB,MAAM;AAa7C,SAZkB;AAAA,IAChB,GAAG;AAAA,MACD,WAAW,cAAc,EAAE;AAAA,QACzB,CAAC,SAAS,CAAC,SAAS,IAAI,IAAI,eAAe,IAAI,CAAC;AAAA,MAClD;AAAA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;AAAA,IAC9B,YAAY,KAAK,aAAa;AAAA,EAChC,GAEM,OAAO;AAAA,IACX,OAAO,KAAK,QAAQ;AAAA,IACpB,YAAY,KAAK,aAAa;AAAA,IAC9B,YAAY,KAAK,aAAa;AAAA,IAC9B,YAAY,KAAK,aAAa;AAAA,EAChC,GAEM,UAAU,OAAO;AAAA,IACrB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,KAAK,KAAK,MAC5B,CAAC,KAAK,CAAC,KAAK,CACpB;AAAA,EACH;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF,GAEa,cAAc,aAAa;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
23
|
+
var v5_templates_exports = {};
|
|
24
|
+
__export(v5_templates_exports, {
|
|
25
|
+
v5Templates: () => v5Templates
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(v5_templates_exports);
|
|
28
|
+
var objectFromEntries = function (entries) {
|
|
29
|
+
return Object.fromEntries(entries);
|
|
30
|
+
},
|
|
31
|
+
objectKeys = function (obj) {
|
|
32
|
+
return Object.keys(obj);
|
|
33
|
+
},
|
|
34
|
+
getTemplates = function () {
|
|
35
|
+
var lightTemplates = getBaseTemplates("light"),
|
|
36
|
+
darkTemplates = getBaseTemplates("dark"),
|
|
37
|
+
templates = {
|
|
38
|
+
...objectFromEntries(objectKeys(lightTemplates).map(function (name) {
|
|
39
|
+
return [`light_${name}`, lightTemplates[name]];
|
|
40
|
+
})),
|
|
41
|
+
...objectFromEntries(objectKeys(darkTemplates).map(function (name) {
|
|
42
|
+
return [`dark_${name}`, darkTemplates[name]];
|
|
43
|
+
}))
|
|
44
|
+
};
|
|
45
|
+
return templates;
|
|
46
|
+
},
|
|
47
|
+
getBaseTemplates = function (scheme) {
|
|
48
|
+
var isLight = scheme === "light",
|
|
49
|
+
bgIndex = 6,
|
|
50
|
+
lighten = isLight ? -1 : 1,
|
|
51
|
+
darken = -lighten,
|
|
52
|
+
increaseContrast = 1,
|
|
53
|
+
borderColor = bgIndex + 3,
|
|
54
|
+
baseColors = {
|
|
55
|
+
color: -bgIndex,
|
|
56
|
+
colorHover: -bgIndex - 1,
|
|
57
|
+
colorPress: -bgIndex,
|
|
58
|
+
colorFocus: -bgIndex - 1,
|
|
59
|
+
placeholderColor: -bgIndex - 3,
|
|
60
|
+
outlineColor: -2
|
|
61
|
+
},
|
|
62
|
+
base = {
|
|
63
|
+
accentBackground: 0,
|
|
64
|
+
accentColor: -0,
|
|
65
|
+
background0: 1,
|
|
66
|
+
background02: 2,
|
|
67
|
+
background04: 3,
|
|
68
|
+
background06: 4,
|
|
69
|
+
background08: 5,
|
|
70
|
+
color1: bgIndex,
|
|
71
|
+
color2: bgIndex + 1,
|
|
72
|
+
color3: bgIndex + 2,
|
|
73
|
+
color4: bgIndex + 3,
|
|
74
|
+
color5: bgIndex + 4,
|
|
75
|
+
color6: bgIndex + 5,
|
|
76
|
+
color7: bgIndex + 6,
|
|
77
|
+
color8: bgIndex + 7,
|
|
78
|
+
color9: bgIndex + 8,
|
|
79
|
+
color10: bgIndex + 9,
|
|
80
|
+
color11: bgIndex + 10,
|
|
81
|
+
color12: bgIndex + 11,
|
|
82
|
+
color0: -1,
|
|
83
|
+
color02: -2,
|
|
84
|
+
color04: -3,
|
|
85
|
+
color06: -4,
|
|
86
|
+
color08: -5,
|
|
87
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
88
|
+
// can publish components for others to use without mandating a specific color scale
|
|
89
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
90
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
91
|
+
background: bgIndex,
|
|
92
|
+
backgroundHover: bgIndex + increaseContrast * 2,
|
|
93
|
+
backgroundPress: bgIndex + increaseContrast * 3,
|
|
94
|
+
backgroundFocus: bgIndex + increaseContrast * 2,
|
|
95
|
+
backgroundActive: bgIndex + increaseContrast * 4,
|
|
96
|
+
borderColor,
|
|
97
|
+
borderColorHover: borderColor + lighten,
|
|
98
|
+
borderColorPress: borderColor + darken,
|
|
99
|
+
borderColorFocus: borderColor,
|
|
100
|
+
...baseColors,
|
|
101
|
+
colorTransparent: -1
|
|
102
|
+
},
|
|
103
|
+
surface1 = {
|
|
104
|
+
...baseColors,
|
|
105
|
+
background: base.background + 1,
|
|
106
|
+
backgroundHover: base.backgroundHover + 1,
|
|
107
|
+
backgroundPress: base.backgroundPress + 1,
|
|
108
|
+
backgroundFocus: base.backgroundFocus + 1,
|
|
109
|
+
backgroundActive: base.backgroundActive + 1,
|
|
110
|
+
borderColor: base.borderColor + 1,
|
|
111
|
+
borderColorHover: base.borderColorHover + 1,
|
|
112
|
+
borderColorFocus: base.borderColorFocus + 1,
|
|
113
|
+
borderColorPress: base.borderColorPress + 1
|
|
114
|
+
},
|
|
115
|
+
surface2 = {
|
|
116
|
+
...baseColors,
|
|
117
|
+
background: base.background + 2,
|
|
118
|
+
backgroundHover: base.backgroundHover + 2,
|
|
119
|
+
backgroundPress: base.backgroundPress + 2,
|
|
120
|
+
backgroundFocus: base.backgroundFocus + 2,
|
|
121
|
+
backgroundActive: base.backgroundActive + 2,
|
|
122
|
+
borderColor: base.borderColor + 2,
|
|
123
|
+
borderColorHover: base.borderColorHover + 2,
|
|
124
|
+
borderColorFocus: base.borderColorFocus + 2,
|
|
125
|
+
borderColorPress: base.borderColorPress + 2
|
|
126
|
+
},
|
|
127
|
+
surface3 = {
|
|
128
|
+
...baseColors,
|
|
129
|
+
background: base.background + 3,
|
|
130
|
+
backgroundHover: base.backgroundHover + 3,
|
|
131
|
+
backgroundPress: base.backgroundPress + 3,
|
|
132
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
133
|
+
backgroundActive: base.backgroundActive + 3,
|
|
134
|
+
borderColor: base.borderColor + 3,
|
|
135
|
+
borderColorHover: base.borderColorHover + 3,
|
|
136
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
137
|
+
borderColorPress: base.borderColorPress + 3
|
|
138
|
+
},
|
|
139
|
+
alt1 = {
|
|
140
|
+
color: base.color - 1,
|
|
141
|
+
colorHover: base.colorHover - 1,
|
|
142
|
+
colorPress: base.colorPress - 1,
|
|
143
|
+
colorFocus: base.colorFocus - 1
|
|
144
|
+
},
|
|
145
|
+
alt2 = {
|
|
146
|
+
color: base.color - 2,
|
|
147
|
+
colorHover: base.colorHover - 2,
|
|
148
|
+
colorPress: base.colorPress - 2,
|
|
149
|
+
colorFocus: base.colorFocus - 2
|
|
150
|
+
},
|
|
151
|
+
inverse = Object.fromEntries(Object.entries(base).map(function (param) {
|
|
152
|
+
var [key, index] = param;
|
|
153
|
+
return [key, -index];
|
|
154
|
+
}));
|
|
155
|
+
return {
|
|
156
|
+
base,
|
|
157
|
+
surface1,
|
|
158
|
+
surface2,
|
|
159
|
+
surface3,
|
|
160
|
+
alt1,
|
|
161
|
+
alt2,
|
|
162
|
+
inverse
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
v5Templates = getTemplates();
|
|
166
|
+
//# sourceMappingURL=v5-templates.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","v5_templates_exports","__export","v5Templates","module","exports","objectFromEntries","entries","Object","fromEntries","objectKeys","obj","keys","getTemplates","lightTemplates","getBaseTemplates","darkTemplates","templates","map","name","scheme","isLight","bgIndex","lighten","darken","increaseContrast","borderColor","baseColors","color","colorHover","colorPress","colorFocus","placeholderColor","outlineColor","base","accentBackground","accentColor","background0","background02","background04","background06","background08","color1","color2","color3","color4","color5","color6","color7","color8","color9","color10","color11","color12","color0","color02","color04","color06","color08","background","backgroundHover","backgroundPress","backgroundFocus","backgroundActive","borderColorHover","borderColorPress","borderColorFocus","colorTransparent","surface1","surface2","surface3","alt1","alt2","inverse","param","key","index"],"sources":["../../src/v5-templates.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAM,CAAAC,OAAA,GAAAT,YACJ,CAAAK,oBAEc;AAQd,IAAAK,iBAAM,YAAAA,CAAiBC,OAAA,EAAiB;IAcxC,OAZkBC,MAAA,CAAAC,WAAA,CAAAF,OAAA;EAAA;EAAAG,UACb,YAAAA,CAAAC,GAAA;IAAA,OACDH,MAAA,CAAAI,IAAW,CAAAD,GAAA;EAAgB;EAAAE,YACxB,GAAS,SAAAA,CAAA,EAAU;IAA4B,IAClDC,cAAA,GAAAC,gBAAA;MAAAC,aAAA,GAAAD,gBAA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,EAAkB/B,IAAA,CAAK+B,gBAAA,GAAmB;MAAA;MAC1CK,QAAA;QACA,GAAA3C,UAAA;QACAgC,UAAA,EAAAzB,IAAA,CAAAyB,UAAuB;QACvBC,eAAA,EAAA1B,IAAkB,CAAA0B,eAAK;QACzBC,eAEa,EAAA3B,IAAA,CAAA2B,eAAA;QACXC,eAAY,EAAA5B,IAAQ,CAAA4B,eAAA;QACpBC,gBAAY,EAAK7B,IAAA,CAAA6B,gBAAa;QAC9BrC,WAAA,EAAYQ,IAAK,CAAAR,WAAA,GAAa;QAC9BsC,gBAAY,EAAK9B,IAAA,CAAA8B,gBAAa;QAChCE,gBAEa,EAAAhC,IAAA,CAAAgC,gBAAA;QACXD,gBAAY,EAAA/B,IAAQ,CAAA+B,gBAAA;MAAA;MACpBM,IAAA;QACA3C,KAAA,EAAAM,IAAA,CAAYN,KAAK;QACjBC,UAAA,EAAYK,IAAA,CAAKL,UAAA,GAAa;QAChCC,UAEM,EAAUI,IAAA,CAAAJ,UAAO;QACrBC,UAAO,EAAAG,IAAQ,CAAAH,UAAY;MAG7B;MAAAyC,IAAA;QAEA5C,KAAO,EAAAM,IAAA,CAAAN,KAAA;QACLC,UAAA,EAAAK,IAAA,CAAAL,UAAA;QACAC,UAAA,EAAAI,IAAA,CAAAJ,UAAA;QACAC,UAAA,EAAAG,IAAA,CAAAH,UAAA;MAAA;MACA0C,OAAA,GAAAjE,MAAA,CAAAC,WAAA,CAAAD,MAAA,CAAAD,OAAA,CAAA2B,IAAA,EAAAhB,GAAA,WAAAwD,KAAA;QACA,KAAAC,GAAA,EAAAC,KAAA,IAAAF,KAAA;QACA,QACAC,GAAA,EACF,CAAAC,KAAA,CAGW","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const defaultGrandChildrenThemes = {
|
|
2
|
+
accent: { template: "inverse" },
|
|
3
|
+
alt1: { template: "alt1" },
|
|
4
|
+
alt2: { template: "alt2" },
|
|
5
|
+
surface1: { template: "surface1" },
|
|
6
|
+
surface2: { template: "surface2" },
|
|
7
|
+
surface3: { template: "surface3" }
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
defaultGrandChildrenThemes
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=defaultGrandChildrenThemes.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/defaultGrandChildrenThemes.ts"],
|
|
4
|
+
"mappings": "AAiBO,MAAM,6BAA6B;AAAA,EACxC,QAAQ,EAAE,UAAU,UAAU;AAAA,EAC9B,MAAM,EAAE,UAAU,OAAO;AAAA,EACzB,MAAM,EAAE,UAAU,OAAO;AAAA,EACzB,UAAU,EAAE,UAAU,WAAW;AAAA,EACjC,UAAU,EAAE,UAAU,WAAW;AAAA,EACjC,UAAU,EAAE,UAAU,WAAW;AACnC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const defaultGrandChildrenThemes = {
|
|
2
|
+
accent: {
|
|
3
|
+
template: "inverse"
|
|
4
|
+
},
|
|
5
|
+
alt1: {
|
|
6
|
+
template: "alt1"
|
|
7
|
+
},
|
|
8
|
+
alt2: {
|
|
9
|
+
template: "alt2"
|
|
10
|
+
},
|
|
11
|
+
surface1: {
|
|
12
|
+
template: "surface1"
|
|
13
|
+
},
|
|
14
|
+
surface2: {
|
|
15
|
+
template: "surface2"
|
|
16
|
+
},
|
|
17
|
+
surface3: {
|
|
18
|
+
template: "surface3"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export { defaultGrandChildrenThemes };
|
|
22
|
+
//# sourceMappingURL=defaultGrandChildrenThemes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defaultGrandChildrenThemes","accent","template","alt1","alt2","surface1","surface2","surface3"],"sources":["../../src/defaultGrandChildrenThemes.ts"],"sourcesContent":[null],"mappings":"AAiBO,MAAMA,0BAAA,GAA6B;EACxCC,MAAA,EAAQ;IAAEC,QAAA,EAAU;EAAU;EAC9BC,IAAA,EAAM;IAAED,QAAA,EAAU;EAAO;EACzBE,IAAA,EAAM;IAAEF,QAAA,EAAU;EAAO;EACzBG,QAAA,EAAU;IAAEH,QAAA,EAAU;EAAW;EACjCI,QAAA,EAAU;IAAEJ,QAAA,EAAU;EAAW;EACjCK,QAAA,EAAU;IAAEL,QAAA,EAAU;EAAW;AACnC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var defaultGrandChildrenThemes = {
|
|
2
|
+
accent: {
|
|
3
|
+
template: "inverse"
|
|
4
|
+
},
|
|
5
|
+
alt1: {
|
|
6
|
+
template: "alt1"
|
|
7
|
+
},
|
|
8
|
+
alt2: {
|
|
9
|
+
template: "alt2"
|
|
10
|
+
},
|
|
11
|
+
surface1: {
|
|
12
|
+
template: "surface1"
|
|
13
|
+
},
|
|
14
|
+
surface2: {
|
|
15
|
+
template: "surface2"
|
|
16
|
+
},
|
|
17
|
+
surface3: {
|
|
18
|
+
template: "surface3"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export { defaultGrandChildrenThemes };
|
|
22
|
+
//# sourceMappingURL=defaultGrandChildrenThemes.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defaultGrandChildrenThemes","accent","template","alt1","alt2"],"sources":["../../src/defaultGrandChildrenThemes.ts"],"sourcesContent":[null],"mappings":"AAiBO,IAAAA,0BAAM;EACXC,MAAA,EAAQ;IACRC,QAAQ;EACR;EACAC,IAAA;IACAD,QAAU,EAAE;EACZ;EACFE,IAAA","ignoreList":[]}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
const objectFromEntries = (entries) => Object.fromEntries(entries), objectKeys = (obj) => Object.keys(obj), getTemplates = () => {
|
|
2
|
+
const lightTemplates = getBaseTemplates("light"), darkTemplates = getBaseTemplates("dark");
|
|
3
|
+
return {
|
|
4
|
+
...objectFromEntries(
|
|
5
|
+
objectKeys(lightTemplates).map(
|
|
6
|
+
(name) => [`light_${name}`, lightTemplates[name]]
|
|
7
|
+
)
|
|
8
|
+
),
|
|
9
|
+
...objectFromEntries(
|
|
10
|
+
objectKeys(darkTemplates).map(
|
|
11
|
+
(name) => [`dark_${name}`, darkTemplates[name]]
|
|
12
|
+
)
|
|
13
|
+
)
|
|
14
|
+
};
|
|
15
|
+
}, getBaseTemplates = (scheme) => {
|
|
16
|
+
const isLight = scheme === "light", bgIndex = 6, lighten = isLight ? -1 : 1, darken = -lighten, increaseContrast = 1, borderColor = bgIndex + 3, baseColors = {
|
|
17
|
+
color: -bgIndex,
|
|
18
|
+
colorHover: -bgIndex - 1,
|
|
19
|
+
colorPress: -bgIndex,
|
|
20
|
+
colorFocus: -bgIndex - 1,
|
|
21
|
+
placeholderColor: -bgIndex - 3,
|
|
22
|
+
outlineColor: -2
|
|
23
|
+
}, base = {
|
|
24
|
+
accentBackground: 0,
|
|
25
|
+
accentColor: -0,
|
|
26
|
+
background0: 1,
|
|
27
|
+
background02: 2,
|
|
28
|
+
background04: 3,
|
|
29
|
+
background06: 4,
|
|
30
|
+
background08: 5,
|
|
31
|
+
color1: bgIndex,
|
|
32
|
+
color2: bgIndex + 1,
|
|
33
|
+
color3: bgIndex + 2,
|
|
34
|
+
color4: bgIndex + 3,
|
|
35
|
+
color5: bgIndex + 4,
|
|
36
|
+
color6: bgIndex + 5,
|
|
37
|
+
color7: bgIndex + 6,
|
|
38
|
+
color8: bgIndex + 7,
|
|
39
|
+
color9: bgIndex + 8,
|
|
40
|
+
color10: bgIndex + 9,
|
|
41
|
+
color11: bgIndex + 10,
|
|
42
|
+
color12: bgIndex + 11,
|
|
43
|
+
color0: -1,
|
|
44
|
+
color02: -2,
|
|
45
|
+
color04: -3,
|
|
46
|
+
color06: -4,
|
|
47
|
+
color08: -5,
|
|
48
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
49
|
+
// can publish components for others to use without mandating a specific color scale
|
|
50
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
51
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
52
|
+
background: bgIndex,
|
|
53
|
+
backgroundHover: bgIndex + increaseContrast * 2,
|
|
54
|
+
backgroundPress: bgIndex + increaseContrast * 3,
|
|
55
|
+
backgroundFocus: bgIndex + increaseContrast * 2,
|
|
56
|
+
backgroundActive: bgIndex + increaseContrast * 4,
|
|
57
|
+
borderColor,
|
|
58
|
+
borderColorHover: borderColor + lighten,
|
|
59
|
+
borderColorPress: borderColor + darken,
|
|
60
|
+
borderColorFocus: borderColor,
|
|
61
|
+
...baseColors,
|
|
62
|
+
colorTransparent: -1
|
|
63
|
+
}, surface1 = {
|
|
64
|
+
...baseColors,
|
|
65
|
+
background: base.background + 1,
|
|
66
|
+
backgroundHover: base.backgroundHover + 1,
|
|
67
|
+
backgroundPress: base.backgroundPress + 1,
|
|
68
|
+
backgroundFocus: base.backgroundFocus + 1,
|
|
69
|
+
backgroundActive: base.backgroundActive + 1,
|
|
70
|
+
borderColor: base.borderColor + 1,
|
|
71
|
+
borderColorHover: base.borderColorHover + 1,
|
|
72
|
+
borderColorFocus: base.borderColorFocus + 1,
|
|
73
|
+
borderColorPress: base.borderColorPress + 1
|
|
74
|
+
}, surface2 = {
|
|
75
|
+
...baseColors,
|
|
76
|
+
background: base.background + 2,
|
|
77
|
+
backgroundHover: base.backgroundHover + 2,
|
|
78
|
+
backgroundPress: base.backgroundPress + 2,
|
|
79
|
+
backgroundFocus: base.backgroundFocus + 2,
|
|
80
|
+
backgroundActive: base.backgroundActive + 2,
|
|
81
|
+
borderColor: base.borderColor + 2,
|
|
82
|
+
borderColorHover: base.borderColorHover + 2,
|
|
83
|
+
borderColorFocus: base.borderColorFocus + 2,
|
|
84
|
+
borderColorPress: base.borderColorPress + 2
|
|
85
|
+
}, surface3 = {
|
|
86
|
+
...baseColors,
|
|
87
|
+
background: base.background + 3,
|
|
88
|
+
backgroundHover: base.backgroundHover + 3,
|
|
89
|
+
backgroundPress: base.backgroundPress + 3,
|
|
90
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
91
|
+
backgroundActive: base.backgroundActive + 3,
|
|
92
|
+
borderColor: base.borderColor + 3,
|
|
93
|
+
borderColorHover: base.borderColorHover + 3,
|
|
94
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
95
|
+
borderColorPress: base.borderColorPress + 3
|
|
96
|
+
}, alt1 = {
|
|
97
|
+
color: base.color - 1,
|
|
98
|
+
colorHover: base.colorHover - 1,
|
|
99
|
+
colorPress: base.colorPress - 1,
|
|
100
|
+
colorFocus: base.colorFocus - 1
|
|
101
|
+
}, alt2 = {
|
|
102
|
+
color: base.color - 2,
|
|
103
|
+
colorHover: base.colorHover - 2,
|
|
104
|
+
colorPress: base.colorPress - 2,
|
|
105
|
+
colorFocus: base.colorFocus - 2
|
|
106
|
+
}, inverse = Object.fromEntries(
|
|
107
|
+
Object.entries(base).map(([key, index]) => [key, -index])
|
|
108
|
+
);
|
|
109
|
+
return {
|
|
110
|
+
base,
|
|
111
|
+
surface1,
|
|
112
|
+
surface2,
|
|
113
|
+
surface3,
|
|
114
|
+
alt1,
|
|
115
|
+
alt2,
|
|
116
|
+
inverse
|
|
117
|
+
};
|
|
118
|
+
}, v5Templates = getTemplates();
|
|
119
|
+
export {
|
|
120
|
+
v5Templates
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=v5-templates.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/v5-templates.ts"],
|
|
4
|
+
"mappings": "AAEA,MAAM,oBAAoB,CACxB,YAEO,OAAO,YAAY,OAAO,GAG7B,aAAa,CAAmB,QAC7B,OAAO,KAAK,GAAG,GAGlB,eAAe,MAAM;AACzB,QAAM,iBAAiB,iBAAiB,OAAO,GACzC,gBAAgB,iBAAiB,MAAM;AAa7C,SAZkB;A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AAK,mBAAmB;AAAA,EAC5C,GAEM,OAAO;AAAA,IACX,OAAO,KAAK,QAAQ;AAAA,IACpB,YAAY,KAAK,aAAa;AAAA,IAC9B,YAAY,KAAK,aAAa;AAAA,IAC9B,YAAY,KAAK,aAAa;AAAA,EAChC,GAEM,OAAO;AAAA,IACX,OAAO,KAAK,QAAQ;AAAA,IACpB,YAAY,KAAK,aAAa;AAAA,IAC9B,YAAY,KAAK,aAAa;AAAA,IAC9B,YAAY,KAAK,aAAa;AAAA,EAChC,GAEM,UAAU,OAAO;AAAA,IACrB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,KAAK,KAAK,MAC5B,CAAC,KAAK,CAAC,KAAK,CACpB;AAAA,EACH;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF,GAEa,cAAc,aAAa;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
const objectFromEntries = entries => Object.fromEntries(entries),
|
|
2
|
+
objectKeys = obj => Object.keys(obj),
|
|
3
|
+
getTemplates = () => {
|
|
4
|
+
const lightTemplates = getBaseTemplates("light"),
|
|
5
|
+
darkTemplates = getBaseTemplates("dark");
|
|
6
|
+
return {
|
|
7
|
+
...objectFromEntries(objectKeys(lightTemplates).map(name => [`light_${name}`, lightTemplates[name]])),
|
|
8
|
+
...objectFromEntries(objectKeys(darkTemplates).map(name => [`dark_${name}`, darkTemplates[name]]))
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
getBaseTemplates = scheme => {
|
|
12
|
+
const isLight = scheme === "light",
|
|
13
|
+
bgIndex = 6,
|
|
14
|
+
lighten = isLight ? -1 : 1,
|
|
15
|
+
darken = -lighten,
|
|
16
|
+
increaseContrast = 1,
|
|
17
|
+
borderColor = bgIndex + 3,
|
|
18
|
+
baseColors = {
|
|
19
|
+
color: -bgIndex,
|
|
20
|
+
colorHover: -bgIndex - 1,
|
|
21
|
+
colorPress: -bgIndex,
|
|
22
|
+
colorFocus: -bgIndex - 1,
|
|
23
|
+
placeholderColor: -bgIndex - 3,
|
|
24
|
+
outlineColor: -2
|
|
25
|
+
},
|
|
26
|
+
base = {
|
|
27
|
+
accentBackground: 0,
|
|
28
|
+
accentColor: -0,
|
|
29
|
+
background0: 1,
|
|
30
|
+
background02: 2,
|
|
31
|
+
background04: 3,
|
|
32
|
+
background06: 4,
|
|
33
|
+
background08: 5,
|
|
34
|
+
color1: bgIndex,
|
|
35
|
+
color2: bgIndex + 1,
|
|
36
|
+
color3: bgIndex + 2,
|
|
37
|
+
color4: bgIndex + 3,
|
|
38
|
+
color5: bgIndex + 4,
|
|
39
|
+
color6: bgIndex + 5,
|
|
40
|
+
color7: bgIndex + 6,
|
|
41
|
+
color8: bgIndex + 7,
|
|
42
|
+
color9: bgIndex + 8,
|
|
43
|
+
color10: bgIndex + 9,
|
|
44
|
+
color11: bgIndex + 10,
|
|
45
|
+
color12: bgIndex + 11,
|
|
46
|
+
color0: -1,
|
|
47
|
+
color02: -2,
|
|
48
|
+
color04: -3,
|
|
49
|
+
color06: -4,
|
|
50
|
+
color08: -5,
|
|
51
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
52
|
+
// can publish components for others to use without mandating a specific color scale
|
|
53
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
54
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
55
|
+
background: bgIndex,
|
|
56
|
+
backgroundHover: bgIndex + increaseContrast * 2,
|
|
57
|
+
backgroundPress: bgIndex + increaseContrast * 3,
|
|
58
|
+
backgroundFocus: bgIndex + increaseContrast * 2,
|
|
59
|
+
backgroundActive: bgIndex + increaseContrast * 4,
|
|
60
|
+
borderColor,
|
|
61
|
+
borderColorHover: borderColor + lighten,
|
|
62
|
+
borderColorPress: borderColor + darken,
|
|
63
|
+
borderColorFocus: borderColor,
|
|
64
|
+
...baseColors,
|
|
65
|
+
colorTransparent: -1
|
|
66
|
+
},
|
|
67
|
+
surface1 = {
|
|
68
|
+
...baseColors,
|
|
69
|
+
background: base.background + 1,
|
|
70
|
+
backgroundHover: base.backgroundHover + 1,
|
|
71
|
+
backgroundPress: base.backgroundPress + 1,
|
|
72
|
+
backgroundFocus: base.backgroundFocus + 1,
|
|
73
|
+
backgroundActive: base.backgroundActive + 1,
|
|
74
|
+
borderColor: base.borderColor + 1,
|
|
75
|
+
borderColorHover: base.borderColorHover + 1,
|
|
76
|
+
borderColorFocus: base.borderColorFocus + 1,
|
|
77
|
+
borderColorPress: base.borderColorPress + 1
|
|
78
|
+
},
|
|
79
|
+
surface2 = {
|
|
80
|
+
...baseColors,
|
|
81
|
+
background: base.background + 2,
|
|
82
|
+
backgroundHover: base.backgroundHover + 2,
|
|
83
|
+
backgroundPress: base.backgroundPress + 2,
|
|
84
|
+
backgroundFocus: base.backgroundFocus + 2,
|
|
85
|
+
backgroundActive: base.backgroundActive + 2,
|
|
86
|
+
borderColor: base.borderColor + 2,
|
|
87
|
+
borderColorHover: base.borderColorHover + 2,
|
|
88
|
+
borderColorFocus: base.borderColorFocus + 2,
|
|
89
|
+
borderColorPress: base.borderColorPress + 2
|
|
90
|
+
},
|
|
91
|
+
surface3 = {
|
|
92
|
+
...baseColors,
|
|
93
|
+
background: base.background + 3,
|
|
94
|
+
backgroundHover: base.backgroundHover + 3,
|
|
95
|
+
backgroundPress: base.backgroundPress + 3,
|
|
96
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
97
|
+
backgroundActive: base.backgroundActive + 3,
|
|
98
|
+
borderColor: base.borderColor + 3,
|
|
99
|
+
borderColorHover: base.borderColorHover + 3,
|
|
100
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
101
|
+
borderColorPress: base.borderColorPress + 3
|
|
102
|
+
},
|
|
103
|
+
alt1 = {
|
|
104
|
+
color: base.color - 1,
|
|
105
|
+
colorHover: base.colorHover - 1,
|
|
106
|
+
colorPress: base.colorPress - 1,
|
|
107
|
+
colorFocus: base.colorFocus - 1
|
|
108
|
+
},
|
|
109
|
+
alt2 = {
|
|
110
|
+
color: base.color - 2,
|
|
111
|
+
colorHover: base.colorHover - 2,
|
|
112
|
+
colorPress: base.colorPress - 2,
|
|
113
|
+
colorFocus: base.colorFocus - 2
|
|
114
|
+
},
|
|
115
|
+
inverse = Object.fromEntries(Object.entries(base).map(([key, index]) => [key, -index]));
|
|
116
|
+
return {
|
|
117
|
+
base,
|
|
118
|
+
surface1,
|
|
119
|
+
surface2,
|
|
120
|
+
surface3,
|
|
121
|
+
alt1,
|
|
122
|
+
alt2,
|
|
123
|
+
inverse
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
v5Templates = getTemplates();
|
|
127
|
+
export { v5Templates };
|
|
128
|
+
//# sourceMappingURL=v5-templates.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["objectFromEntries","entries","Object","fromEntries","objectKeys","obj","keys","getTemplates","lightTemplates","getBaseTemplates","darkTemplates","map","name","scheme","isLight","bgIndex","lighten","darken","increaseContrast","borderColor","baseColors","color","colorHover","colorPress","colorFocus","placeholderColor","outlineColor","base","accentBackground","accentColor","background0","background02","background04","background06","background08","color1","color2","color3","color4","color5","color6","color7","color8","color9","color10","color11","color12","color0","color02","color04","color06","color08","background","backgroundHover","backgroundPress","backgroundFocus","backgroundActive","borderColorHover","borderColorPress","borderColorFocus","colorTransparent","surface1","surface2","surface3","alt1","alt2","inverse","key","index","v5Templates"],"sources":["../../src/v5-templates.ts"],"sourcesContent":[null],"mappings":"AAEA,MAAMA,iBAAA,GACJC,OAAA,IAEOC,MAAA,CAAOC,WAAA,CAAYF,OAAO;EAG7BG,UAAA,GAAgCC,GAAA,IAC7BH,MAAA,CAAOI,IAAA,CAAKD,GAAG;EAGlBE,YAAA,GAAeA,CAAA,KAAM;IACzB,MAAMC,cAAA,GAAiBC,gBAAA,CAAiB,OAAO;MACzCC,a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pBC,UAAA,EAAYK,IAAA,CAAKL,UAAA,GAAa;QAC9BC,UAAA,EAAYI,IAAA,CAAKJ,UAAA,GAAa;QAC9BC,UAAA,EAAYG,IAAA,CAAKH,UAAA,GAAa;MAChC;MAEM0C,OAAA,GAAUhE,MAAA,CAAOC,WAAA,CACrBD,MAAA,CAAOD,OAAA,CAAQ0B,IAAI,EAAEhB,GAAA,CAAI,CAAC,CAACwD,GAAA,EAAKC,KAAK,MAC5B,CAACD,GAAA,EAAK,CAACC,KAAK,CACpB,CACH;IAEA,OAAO;MACLzC,IAAA;MACAkC,QAAA;MACAC,QAAA;MACAC,QAAA;MACAC,IAAA;MACAC,IAAA;MACAC;IACF;EACF;EAEaG,WAAA,GAAc9D,YAAA,CAAa","ignoreList":[]}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
var objectFromEntries = function (entries) {
|
|
2
|
+
return Object.fromEntries(entries);
|
|
3
|
+
},
|
|
4
|
+
objectKeys = function (obj) {
|
|
5
|
+
return Object.keys(obj);
|
|
6
|
+
},
|
|
7
|
+
getTemplates = function () {
|
|
8
|
+
var lightTemplates = getBaseTemplates("light"),
|
|
9
|
+
darkTemplates = getBaseTemplates("dark"),
|
|
10
|
+
templates = {
|
|
11
|
+
...objectFromEntries(objectKeys(lightTemplates).map(function (name) {
|
|
12
|
+
return [`light_${name}`, lightTemplates[name]];
|
|
13
|
+
})),
|
|
14
|
+
...objectFromEntries(objectKeys(darkTemplates).map(function (name) {
|
|
15
|
+
return [`dark_${name}`, darkTemplates[name]];
|
|
16
|
+
}))
|
|
17
|
+
};
|
|
18
|
+
return templates;
|
|
19
|
+
},
|
|
20
|
+
getBaseTemplates = function (scheme) {
|
|
21
|
+
var isLight = scheme === "light",
|
|
22
|
+
bgIndex = 6,
|
|
23
|
+
lighten = isLight ? -1 : 1,
|
|
24
|
+
darken = -lighten,
|
|
25
|
+
increaseContrast = 1,
|
|
26
|
+
borderColor = bgIndex + 3,
|
|
27
|
+
baseColors = {
|
|
28
|
+
color: -bgIndex,
|
|
29
|
+
colorHover: -bgIndex - 1,
|
|
30
|
+
colorPress: -bgIndex,
|
|
31
|
+
colorFocus: -bgIndex - 1,
|
|
32
|
+
placeholderColor: -bgIndex - 3,
|
|
33
|
+
outlineColor: -2
|
|
34
|
+
},
|
|
35
|
+
base = {
|
|
36
|
+
accentBackground: 0,
|
|
37
|
+
accentColor: -0,
|
|
38
|
+
background0: 1,
|
|
39
|
+
background02: 2,
|
|
40
|
+
background04: 3,
|
|
41
|
+
background06: 4,
|
|
42
|
+
background08: 5,
|
|
43
|
+
color1: bgIndex,
|
|
44
|
+
color2: bgIndex + 1,
|
|
45
|
+
color3: bgIndex + 2,
|
|
46
|
+
color4: bgIndex + 3,
|
|
47
|
+
color5: bgIndex + 4,
|
|
48
|
+
color6: bgIndex + 5,
|
|
49
|
+
color7: bgIndex + 6,
|
|
50
|
+
color8: bgIndex + 7,
|
|
51
|
+
color9: bgIndex + 8,
|
|
52
|
+
color10: bgIndex + 9,
|
|
53
|
+
color11: bgIndex + 10,
|
|
54
|
+
color12: bgIndex + 11,
|
|
55
|
+
color0: -1,
|
|
56
|
+
color02: -2,
|
|
57
|
+
color04: -3,
|
|
58
|
+
color06: -4,
|
|
59
|
+
color08: -5,
|
|
60
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
61
|
+
// can publish components for others to use without mandating a specific color scale
|
|
62
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
63
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
64
|
+
background: bgIndex,
|
|
65
|
+
backgroundHover: bgIndex + increaseContrast * 2,
|
|
66
|
+
backgroundPress: bgIndex + increaseContrast * 3,
|
|
67
|
+
backgroundFocus: bgIndex + increaseContrast * 2,
|
|
68
|
+
backgroundActive: bgIndex + increaseContrast * 4,
|
|
69
|
+
borderColor,
|
|
70
|
+
borderColorHover: borderColor + lighten,
|
|
71
|
+
borderColorPress: borderColor + darken,
|
|
72
|
+
borderColorFocus: borderColor,
|
|
73
|
+
...baseColors,
|
|
74
|
+
colorTransparent: -1
|
|
75
|
+
},
|
|
76
|
+
surface1 = {
|
|
77
|
+
...baseColors,
|
|
78
|
+
background: base.background + 1,
|
|
79
|
+
backgroundHover: base.backgroundHover + 1,
|
|
80
|
+
backgroundPress: base.backgroundPress + 1,
|
|
81
|
+
backgroundFocus: base.backgroundFocus + 1,
|
|
82
|
+
backgroundActive: base.backgroundActive + 1,
|
|
83
|
+
borderColor: base.borderColor + 1,
|
|
84
|
+
borderColorHover: base.borderColorHover + 1,
|
|
85
|
+
borderColorFocus: base.borderColorFocus + 1,
|
|
86
|
+
borderColorPress: base.borderColorPress + 1
|
|
87
|
+
},
|
|
88
|
+
surface2 = {
|
|
89
|
+
...baseColors,
|
|
90
|
+
background: base.background + 2,
|
|
91
|
+
backgroundHover: base.backgroundHover + 2,
|
|
92
|
+
backgroundPress: base.backgroundPress + 2,
|
|
93
|
+
backgroundFocus: base.backgroundFocus + 2,
|
|
94
|
+
backgroundActive: base.backgroundActive + 2,
|
|
95
|
+
borderColor: base.borderColor + 2,
|
|
96
|
+
borderColorHover: base.borderColorHover + 2,
|
|
97
|
+
borderColorFocus: base.borderColorFocus + 2,
|
|
98
|
+
borderColorPress: base.borderColorPress + 2
|
|
99
|
+
},
|
|
100
|
+
surface3 = {
|
|
101
|
+
...baseColors,
|
|
102
|
+
background: base.background + 3,
|
|
103
|
+
backgroundHover: base.backgroundHover + 3,
|
|
104
|
+
backgroundPress: base.backgroundPress + 3,
|
|
105
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
106
|
+
backgroundActive: base.backgroundActive + 3,
|
|
107
|
+
borderColor: base.borderColor + 3,
|
|
108
|
+
borderColorHover: base.borderColorHover + 3,
|
|
109
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
110
|
+
borderColorPress: base.borderColorPress + 3
|
|
111
|
+
},
|
|
112
|
+
alt1 = {
|
|
113
|
+
color: base.color - 1,
|
|
114
|
+
colorHover: base.colorHover - 1,
|
|
115
|
+
colorPress: base.colorPress - 1,
|
|
116
|
+
colorFocus: base.colorFocus - 1
|
|
117
|
+
},
|
|
118
|
+
alt2 = {
|
|
119
|
+
color: base.color - 2,
|
|
120
|
+
colorHover: base.colorHover - 2,
|
|
121
|
+
colorPress: base.colorPress - 2,
|
|
122
|
+
colorFocus: base.colorFocus - 2
|
|
123
|
+
},
|
|
124
|
+
inverse = Object.fromEntries(Object.entries(base).map(function (param) {
|
|
125
|
+
var [key, index] = param;
|
|
126
|
+
return [key, -index];
|
|
127
|
+
}));
|
|
128
|
+
return {
|
|
129
|
+
base,
|
|
130
|
+
surface1,
|
|
131
|
+
surface2,
|
|
132
|
+
surface3,
|
|
133
|
+
alt1,
|
|
134
|
+
alt2,
|
|
135
|
+
inverse
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
v5Templates = getTemplates();
|
|
139
|
+
export { v5Templates };
|
|
140
|
+
//# sourceMappingURL=v5-templates.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["objectFromEntries","entries","Object","fromEntries","objectKeys","obj","keys","getTemplates","lightTemplates","getBaseTemplates","darkTemplates","templates","map","name","scheme","isLight","bgIndex","lighten","darken","increaseContrast","borderColor","baseColors","color","colorHover","colorPress","colorFocus","placeholderColor","outlineColor","base","accentBackground","accentColor","background0","background02","background04","background06","background08","color1","color2","color3","color4","color5","color6","color7","color8","color9","color10","color11","color12","color0","color02","color04","color06","color08","background","backgroundHover","backgroundPress","backgroundFocus","backgroundActive","borderColorHover","borderColorPress","borderColorFocus","colorTransparent","surface1","surface2","surface3","alt1","alt2","inverse","param","key","index"],"sources":["../../src/v5-templates.ts"],"sourcesContent":[null],"mappings":"AAEA,IAAAA,iBAAM,YAAAA,CACJC,OAEO;IAQP,OAAMC,MAAA,CAAAC,WAAiB,CAAAF,OAAA;EAcvB;EAAAG,UAZkB,YAAAA,CAAAC,GAAA;IAAA,OACbH,MAAA,CAAAI,IAAA,C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package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/themes",
|
|
3
|
-
"version": "1.144.
|
|
3
|
+
"version": "1.144.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -105,15 +105,15 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
|
-
"@tamagui/colors": "1.144.
|
|
109
|
-
"@tamagui/create-theme": "1.144.
|
|
110
|
-
"@tamagui/theme-builder": "1.144.
|
|
111
|
-
"@tamagui/web": "1.144.
|
|
108
|
+
"@tamagui/colors": "1.144.3",
|
|
109
|
+
"@tamagui/create-theme": "1.144.3",
|
|
110
|
+
"@tamagui/theme-builder": "1.144.3",
|
|
111
|
+
"@tamagui/web": "1.144.3",
|
|
112
112
|
"color2k": "^2.0.2"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@tamagui/build": "1.144.
|
|
116
|
-
"@tamagui/cli": "1.144.
|
|
115
|
+
"@tamagui/build": "1.144.3",
|
|
116
|
+
"@tamagui/cli": "1.144.3",
|
|
117
117
|
"vitest": "^4.0.4"
|
|
118
118
|
},
|
|
119
119
|
"publishConfig": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultGrandChildrenThemes.d.ts","sourceRoot":"","sources":["../src/defaultGrandChildrenThemes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,wCAAwC;AACxC,MAAM,MAAM,6BAA6B,GACrC,QAAQ,GACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,UAAU,GACV,UAAU,CAAA;AAEd;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;CAOwC,CAAA;AAE/E,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v5-templates.d.ts","sourceRoot":"","sources":["../src/v5-templates.ts"],"names":[],"mappings":"AAsKA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiB,CAAA"}
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Successfully generated themes to ./src/generated-new.ts
|
|
2
|
-
Successfully generated themes to ./src/generated-v2.ts
|
|
3
|
-
Successfully generated themes to ./src/generated-v3.ts
|
|
4
|
-
Successfully generated themes to ./src/generated-v4.ts
|
|
5
|
-
Successfully generated themes to ./src/generated-v4-tamagui.ts
|
|
6
|
-
Successfully generated themes to ./src/generated-v5.ts
|