@tamagui/theme-builder 1.125.9 → 1.125.11
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/createStudioThemes.cjs +40 -0
- package/dist/cjs/createStudioThemes.js +30 -0
- package/dist/cjs/createStudioThemes.js.map +6 -0
- package/dist/cjs/createStudioThemes.native.js +35 -0
- package/dist/cjs/createStudioThemes.native.js.map +6 -0
- package/dist/cjs/createThemes.cjs +0 -10
- package/dist/cjs/createThemes.js +0 -10
- package/dist/cjs/createThemes.js.map +1 -1
- package/dist/cjs/createThemes.native.js +0 -11
- package/dist/cjs/createThemes.native.js.map +2 -2
- package/dist/cjs/defaultTemplatesStronger.cjs +147 -0
- package/dist/cjs/defaultTemplatesStronger.js +137 -0
- package/dist/cjs/defaultTemplatesStronger.js.map +6 -0
- package/dist/cjs/defaultTemplatesStronger.native.js +147 -0
- package/dist/cjs/defaultTemplatesStronger.native.js.map +6 -0
- package/dist/cjs/defaultTemplatesStrongest.cjs +147 -0
- package/dist/cjs/defaultTemplatesStrongest.js +137 -0
- package/dist/cjs/defaultTemplatesStrongest.js.map +6 -0
- package/dist/cjs/defaultTemplatesStrongest.native.js +147 -0
- package/dist/cjs/defaultTemplatesStrongest.native.js.map +6 -0
- package/dist/cjs/index.cjs +3 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +2 -2
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/createStudioThemes.js +18 -0
- package/dist/esm/createStudioThemes.js.map +6 -0
- package/dist/esm/createStudioThemes.mjs +17 -0
- package/dist/esm/createStudioThemes.mjs.map +1 -0
- package/dist/esm/createStudioThemes.native.js +17 -0
- package/dist/esm/createStudioThemes.native.js.map +1 -0
- package/dist/esm/createThemes.js +0 -10
- package/dist/esm/createThemes.js.map +1 -1
- package/dist/esm/createThemes.mjs +1 -10
- package/dist/esm/createThemes.mjs.map +1 -1
- package/dist/esm/createThemes.native.js +1 -10
- package/dist/esm/createThemes.native.js.map +1 -1
- package/dist/esm/defaultTemplatesStronger.js +121 -0
- package/dist/esm/defaultTemplatesStronger.js.map +6 -0
- package/dist/esm/defaultTemplatesStronger.mjs +124 -0
- package/dist/esm/defaultTemplatesStronger.mjs.map +1 -0
- package/dist/esm/defaultTemplatesStronger.native.js +132 -0
- package/dist/esm/defaultTemplatesStronger.native.js.map +1 -0
- package/dist/esm/defaultTemplatesStrongest.js +121 -0
- package/dist/esm/defaultTemplatesStrongest.js.map +6 -0
- package/dist/esm/defaultTemplatesStrongest.mjs +124 -0
- package/dist/esm/defaultTemplatesStrongest.mjs.map +1 -0
- package/dist/esm/defaultTemplatesStrongest.native.js +132 -0
- package/dist/esm/defaultTemplatesStrongest.native.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -1
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +3 -3
- package/src/createStudioThemes.ts +28 -0
- package/src/createThemes.ts +1 -14
- package/src/defaultTemplatesStronger.ts +152 -0
- package/src/defaultTemplatesStrongest.ts +152 -0
- package/src/index.ts +1 -1
- package/src/types.ts +4 -10
- package/types/createStudioThemes.d.ts +8 -0
- package/types/createStudioThemes.d.ts.map +1 -0
- package/types/createThemes.d.ts +1 -7
- package/types/createThemes.d.ts.map +1 -1
- package/types/defaultTemplatesStronger.d.ts +42 -0
- package/types/defaultTemplatesStronger.d.ts.map +1 -0
- package/types/defaultTemplatesStrongest.d.ts +42 -0
- package/types/defaultTemplatesStrongest.d.ts.map +1 -0
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/types.d.ts +3 -9
- package/types/types.d.ts.map +1 -1
|
@@ -0,0 +1,147 @@
|
|
|
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 defaultTemplatesStronger_exports = {};
|
|
17
|
+
__export(defaultTemplatesStronger_exports, {
|
|
18
|
+
defaultTemplatesStronger: () => defaultTemplatesStronger
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(defaultTemplatesStronger_exports);
|
|
21
|
+
var import_helpers = require("./helpers"), getTemplates = function() {
|
|
22
|
+
var lightTemplates = getBaseTemplates("light"), darkTemplates = getBaseTemplates("dark"), templates = {
|
|
23
|
+
...(0, import_helpers.objectFromEntries)((0, import_helpers.objectKeys)(lightTemplates).map(function(name) {
|
|
24
|
+
return [
|
|
25
|
+
`light_${name}`,
|
|
26
|
+
lightTemplates[name]
|
|
27
|
+
];
|
|
28
|
+
})),
|
|
29
|
+
...(0, import_helpers.objectFromEntries)((0, import_helpers.objectKeys)(darkTemplates).map(function(name) {
|
|
30
|
+
return [
|
|
31
|
+
`dark_${name}`,
|
|
32
|
+
darkTemplates[name]
|
|
33
|
+
];
|
|
34
|
+
}))
|
|
35
|
+
};
|
|
36
|
+
return templates;
|
|
37
|
+
}, getBaseTemplates = function(scheme) {
|
|
38
|
+
var isLight = scheme === "light", bgIndex = 6, lighten = isLight ? -1 : 1, darken = -lighten, borderColor = bgIndex + 3, baseColors = {
|
|
39
|
+
color: -bgIndex,
|
|
40
|
+
colorHover: -bgIndex - 1,
|
|
41
|
+
colorPress: -bgIndex,
|
|
42
|
+
colorFocus: -bgIndex - 1,
|
|
43
|
+
placeholderColor: -bgIndex - 3,
|
|
44
|
+
outlineColor: -2
|
|
45
|
+
}, base = {
|
|
46
|
+
accentBackground: 0,
|
|
47
|
+
accentColor: -0,
|
|
48
|
+
background0: 1,
|
|
49
|
+
background02: 2,
|
|
50
|
+
background04: 3,
|
|
51
|
+
background06: 4,
|
|
52
|
+
background08: 5,
|
|
53
|
+
color1: bgIndex,
|
|
54
|
+
color2: bgIndex + 1,
|
|
55
|
+
color3: bgIndex + 2,
|
|
56
|
+
color4: bgIndex + 3,
|
|
57
|
+
color5: bgIndex + 4,
|
|
58
|
+
color6: bgIndex + 5,
|
|
59
|
+
color7: bgIndex + 6,
|
|
60
|
+
color8: bgIndex + 7,
|
|
61
|
+
color9: bgIndex + 8,
|
|
62
|
+
color10: bgIndex + 9,
|
|
63
|
+
color11: bgIndex + 10,
|
|
64
|
+
color12: bgIndex + 11,
|
|
65
|
+
color0: -1,
|
|
66
|
+
color02: -2,
|
|
67
|
+
color04: -3,
|
|
68
|
+
color06: -4,
|
|
69
|
+
color08: -5,
|
|
70
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
71
|
+
// can publish components for others to use without mandating a specific color scale
|
|
72
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
73
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
74
|
+
background: bgIndex,
|
|
75
|
+
backgroundHover: bgIndex + lighten,
|
|
76
|
+
// always lighten on hover no matter the scheme
|
|
77
|
+
backgroundPress: bgIndex + darken,
|
|
78
|
+
// always darken on press no matter the theme
|
|
79
|
+
backgroundFocus: bgIndex + darken,
|
|
80
|
+
borderColor,
|
|
81
|
+
borderColorHover: borderColor + lighten,
|
|
82
|
+
borderColorPress: borderColor + darken,
|
|
83
|
+
borderColorFocus: borderColor,
|
|
84
|
+
...baseColors,
|
|
85
|
+
colorTransparent: -1
|
|
86
|
+
}, surface1 = {
|
|
87
|
+
...baseColors,
|
|
88
|
+
background: base.background + 2,
|
|
89
|
+
backgroundHover: base.backgroundHover + 2,
|
|
90
|
+
backgroundPress: base.backgroundPress + 2,
|
|
91
|
+
backgroundFocus: base.backgroundFocus + 2,
|
|
92
|
+
borderColor: base.borderColor + 2,
|
|
93
|
+
borderColorHover: base.borderColorHover + 2,
|
|
94
|
+
borderColorFocus: base.borderColorFocus + 2,
|
|
95
|
+
borderColorPress: base.borderColorPress + 2
|
|
96
|
+
}, surface2 = {
|
|
97
|
+
...baseColors,
|
|
98
|
+
background: base.background + 3,
|
|
99
|
+
backgroundHover: base.backgroundHover + 3,
|
|
100
|
+
backgroundPress: base.backgroundPress + 3,
|
|
101
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
102
|
+
borderColor: base.borderColor + 3,
|
|
103
|
+
borderColorHover: base.borderColorHover + 3,
|
|
104
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
105
|
+
borderColorPress: base.borderColorPress + 3
|
|
106
|
+
}, surface3 = {
|
|
107
|
+
...baseColors,
|
|
108
|
+
background: base.background + 4,
|
|
109
|
+
backgroundHover: base.backgroundHover + 4,
|
|
110
|
+
backgroundPress: base.backgroundPress + 4,
|
|
111
|
+
backgroundFocus: base.backgroundFocus + 4,
|
|
112
|
+
borderColor: base.borderColor + 4,
|
|
113
|
+
borderColorHover: base.borderColorHover + 4,
|
|
114
|
+
borderColorFocus: base.borderColorFocus + 4,
|
|
115
|
+
borderColorPress: base.borderColorPress + 4
|
|
116
|
+
}, alt1 = {
|
|
117
|
+
color: base.color - 1,
|
|
118
|
+
colorHover: base.colorHover - 1,
|
|
119
|
+
colorPress: base.colorPress - 1,
|
|
120
|
+
colorFocus: base.colorFocus - 1
|
|
121
|
+
}, alt2 = {
|
|
122
|
+
color: base.color - 2,
|
|
123
|
+
colorHover: base.colorHover - 2,
|
|
124
|
+
colorPress: base.colorPress - 2,
|
|
125
|
+
colorFocus: base.colorFocus - 2
|
|
126
|
+
}, inverse = Object.fromEntries(Object.entries(base).map(function(param) {
|
|
127
|
+
var [key, index] = param;
|
|
128
|
+
return [
|
|
129
|
+
key,
|
|
130
|
+
-index
|
|
131
|
+
];
|
|
132
|
+
}));
|
|
133
|
+
return {
|
|
134
|
+
base,
|
|
135
|
+
surface1,
|
|
136
|
+
surface2,
|
|
137
|
+
surface3,
|
|
138
|
+
alt1,
|
|
139
|
+
alt2,
|
|
140
|
+
inverse
|
|
141
|
+
};
|
|
142
|
+
}, defaultTemplatesStronger = getTemplates();
|
|
143
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
144
|
+
0 && (module.exports = {
|
|
145
|
+
defaultTemplatesStronger
|
|
146
|
+
});
|
|
147
|
+
//# sourceMappingURL=defaultTemplatesStronger.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/theme-builder/src/defaultTemplatesStronger.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;qBAA8C,sBAGxCA,eAAe,WAAA;AACnB,MAAMC,iBAAiBC,iBAAiB,OAAA,GAClCC,gBAAgBD,iBAAiB,MAAA,GACjCE,YAAY;IAChB,OAAGC,sCACDC,2BAAWL,cAAAA,EAAgBM,IACzB,SAACC,MAAAA;aAAS;QAAC,SAASA,IAAAA;QAAQP,eAAeO,IAAAA;;;IAG/C,OAAGH,sCACDC,2BAAWH,aAAAA,EAAeI,IACxB,SAACC,MAAAA;aAAS;QAAC,QAAQA,IAAAA;QAAQL,cAAcK,IAAAA;;;EAG/C;AACA,SAAOJ;AACT,GAEMF,mBAAmB,SAACO,QAAAA;AACxB,MAAMC,UAAUD,WAAW,SAIrBE,UA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AC9BC,iBAAiB1B,KAAK0B,kBAAkB;IACxCC,iBAAiB3B,KAAK2B,kBAAkB;IACxCC,iBAAiB5B,KAAK4B,kBAAkB;IACxCpC,aAAaQ,KAAKR,cAAc;IAChCqC,kBAAkB7B,KAAK6B,mBAAmB;IAC1CE,kBAAkB/B,KAAK+B,mBAAmB;IAC1CD,kBAAkB9B,KAAK8B,mBAAmB;EAC5C,GAEMK,WAAW;IACf,GAAG1C;IACHgC,YAAYzB,KAAKyB,aAAa;IAC9BC,iBAAiB1B,KAAK0B,kBAAkB;IACxCC,iBAAiB3B,KAAK2B,kBAAkB;IACxCC,iBAAiB5B,KAAK4B,kBAAkB;IACxCpC,aAAaQ,KAAKR,cAAc;IAChCqC,kBAAkB7B,KAAK6B,mBAAmB;IAC1CE,kBAAkB/B,KAAK+B,mBAAmB;IAC1CD,kBAAkB9B,KAAK8B,mBAAmB;EAC5C,GAEMM,OAAO;IACX1C,OAAOM,KAAKN,QAAQ;IACpBC,YAAYK,KAAKL,aAAa;IAC9BC,YAAYI,KAAKJ,aAAa;IAC9BC,YAAYG,KAAKH,aAAa;EAChC,GAEMwC,OAAO;IACX3C,OAAOM,KAAKN,QAAQ;IACpBC,YAAYK,KAAKL,aAAa;IAC9BC,YAAYI,KAAKJ,aAAa;IAC9BC,YAAYG,KAAKH,aAAa;EAChC,GAEMyC,UAAUC,OAAOC,YACrBD,OAAOE,QAAQzC,IAAAA,EAAMf,IAAI,SAAA,OAAA;QAAC,CAACyD,KAAKC,KAAAA,IAAM;AACpC,WAAO;MAACD;MAAK,CAACC;;EAChB,CAAA,CAAA;AAGF,SAAO;IACL3C;IACAiC;IACAC;IACAC;IACAC;IACAC;IACAC;EACF;AACF,GAEaM,2BAA2BlE,aAAAA;",
|
|
5
|
+
"names": ["getTemplates", "lightTemplates", "getBaseTemplates", "darkTemplates", "templates", "objectFromEntries", "objectKeys", "map", "name", "scheme", "isLight", "bgIndex", "lighten", "darken", "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", "borderColorHover", "borderColorPress", "borderColorFocus", "colorTransparent", "surface1", "surface2", "surface3", "alt1", "alt2", "inverse", "Object", "fromEntries", "entries", "key", "index", "defaultTemplatesStronger"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
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 defaultTemplatesStrongest_exports = {};
|
|
22
|
+
__export(defaultTemplatesStrongest_exports, {
|
|
23
|
+
defaultTemplatesStrongest: () => defaultTemplatesStrongest
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(defaultTemplatesStrongest_exports);
|
|
26
|
+
var import_helpers = require("./helpers.cjs");
|
|
27
|
+
const getTemplates = () => {
|
|
28
|
+
const lightTemplates = getBaseTemplates("light"),
|
|
29
|
+
darkTemplates = getBaseTemplates("dark");
|
|
30
|
+
return {
|
|
31
|
+
...(0, import_helpers.objectFromEntries)((0, import_helpers.objectKeys)(lightTemplates).map(name => [`light_${name}`, lightTemplates[name]])),
|
|
32
|
+
...(0, import_helpers.objectFromEntries)((0, import_helpers.objectKeys)(darkTemplates).map(name => [`dark_${name}`, darkTemplates[name]]))
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
getBaseTemplates = scheme => {
|
|
36
|
+
const isLight = scheme === "light",
|
|
37
|
+
bgIndex = 6,
|
|
38
|
+
lighten = isLight ? -1 : 1,
|
|
39
|
+
darken = -lighten,
|
|
40
|
+
borderColor = bgIndex + 3,
|
|
41
|
+
baseColors = {
|
|
42
|
+
color: -bgIndex,
|
|
43
|
+
colorHover: -bgIndex - 1,
|
|
44
|
+
colorPress: -bgIndex,
|
|
45
|
+
colorFocus: -bgIndex - 1,
|
|
46
|
+
placeholderColor: -bgIndex - 3,
|
|
47
|
+
outlineColor: -2
|
|
48
|
+
},
|
|
49
|
+
base = {
|
|
50
|
+
accentBackground: 0,
|
|
51
|
+
accentColor: -0,
|
|
52
|
+
background0: 1,
|
|
53
|
+
background02: 2,
|
|
54
|
+
background04: 3,
|
|
55
|
+
background06: 4,
|
|
56
|
+
background08: 5,
|
|
57
|
+
color1: bgIndex,
|
|
58
|
+
color2: bgIndex + 1,
|
|
59
|
+
color3: bgIndex + 2,
|
|
60
|
+
color4: bgIndex + 3,
|
|
61
|
+
color5: bgIndex + 4,
|
|
62
|
+
color6: bgIndex + 5,
|
|
63
|
+
color7: bgIndex + 6,
|
|
64
|
+
color8: bgIndex + 7,
|
|
65
|
+
color9: bgIndex + 8,
|
|
66
|
+
color10: bgIndex + 9,
|
|
67
|
+
color11: bgIndex + 10,
|
|
68
|
+
color12: bgIndex + 11,
|
|
69
|
+
color0: -1,
|
|
70
|
+
color02: -2,
|
|
71
|
+
color04: -3,
|
|
72
|
+
color06: -4,
|
|
73
|
+
color08: -5,
|
|
74
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
75
|
+
// can publish components for others to use without mandating a specific color scale
|
|
76
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
77
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
78
|
+
background: bgIndex,
|
|
79
|
+
backgroundHover: bgIndex + lighten,
|
|
80
|
+
// always lighten on hover no matter the scheme
|
|
81
|
+
backgroundPress: bgIndex + darken,
|
|
82
|
+
// always darken on press no matter the theme
|
|
83
|
+
backgroundFocus: bgIndex + darken,
|
|
84
|
+
borderColor,
|
|
85
|
+
borderColorHover: borderColor + lighten,
|
|
86
|
+
borderColorPress: borderColor + darken,
|
|
87
|
+
borderColorFocus: borderColor,
|
|
88
|
+
...baseColors,
|
|
89
|
+
colorTransparent: -1
|
|
90
|
+
},
|
|
91
|
+
surface1 = {
|
|
92
|
+
...baseColors,
|
|
93
|
+
background: base.background + 3,
|
|
94
|
+
backgroundHover: base.backgroundHover + 3,
|
|
95
|
+
backgroundPress: base.backgroundPress + 3,
|
|
96
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
97
|
+
borderColor: base.borderColor + 3,
|
|
98
|
+
borderColorHover: base.borderColorHover + 3,
|
|
99
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
100
|
+
borderColorPress: base.borderColorPress + 3
|
|
101
|
+
},
|
|
102
|
+
surface2 = {
|
|
103
|
+
...baseColors,
|
|
104
|
+
background: base.background + 4,
|
|
105
|
+
backgroundHover: base.backgroundHover + 4,
|
|
106
|
+
backgroundPress: base.backgroundPress + 4,
|
|
107
|
+
backgroundFocus: base.backgroundFocus + 4,
|
|
108
|
+
borderColor: base.borderColor + 4,
|
|
109
|
+
borderColorHover: base.borderColorHover + 4,
|
|
110
|
+
borderColorFocus: base.borderColorFocus + 4,
|
|
111
|
+
borderColorPress: base.borderColorPress + 4
|
|
112
|
+
},
|
|
113
|
+
surface3 = {
|
|
114
|
+
...baseColors,
|
|
115
|
+
background: base.background + 5,
|
|
116
|
+
backgroundHover: base.backgroundHover + 5,
|
|
117
|
+
backgroundPress: base.backgroundPress + 5,
|
|
118
|
+
backgroundFocus: base.backgroundFocus + 5,
|
|
119
|
+
borderColor: base.borderColor + 5,
|
|
120
|
+
borderColorHover: base.borderColorHover + 5,
|
|
121
|
+
borderColorFocus: base.borderColorFocus + 5,
|
|
122
|
+
borderColorPress: base.borderColorPress + 5
|
|
123
|
+
},
|
|
124
|
+
alt1 = {
|
|
125
|
+
color: base.color - 1,
|
|
126
|
+
colorHover: base.colorHover - 1,
|
|
127
|
+
colorPress: base.colorPress - 1,
|
|
128
|
+
colorFocus: base.colorFocus - 1
|
|
129
|
+
},
|
|
130
|
+
alt2 = {
|
|
131
|
+
color: base.color - 2,
|
|
132
|
+
colorHover: base.colorHover - 2,
|
|
133
|
+
colorPress: base.colorPress - 2,
|
|
134
|
+
colorFocus: base.colorFocus - 2
|
|
135
|
+
},
|
|
136
|
+
inverse = Object.fromEntries(Object.entries(base).map(([key, index]) => [key, -index]));
|
|
137
|
+
return {
|
|
138
|
+
base,
|
|
139
|
+
surface1,
|
|
140
|
+
surface2,
|
|
141
|
+
surface3,
|
|
142
|
+
alt1,
|
|
143
|
+
alt2,
|
|
144
|
+
inverse
|
|
145
|
+
};
|
|
146
|
+
},
|
|
147
|
+
defaultTemplatesStrongest = getTemplates();
|
|
@@ -0,0 +1,137 @@
|
|
|
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 defaultTemplatesStrongest_exports = {};
|
|
16
|
+
__export(defaultTemplatesStrongest_exports, {
|
|
17
|
+
defaultTemplatesStrongest: () => defaultTemplatesStrongest
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(defaultTemplatesStrongest_exports);
|
|
20
|
+
var import_helpers = require("./helpers");
|
|
21
|
+
const getTemplates = () => {
|
|
22
|
+
const lightTemplates = getBaseTemplates("light"), darkTemplates = getBaseTemplates("dark");
|
|
23
|
+
return {
|
|
24
|
+
...(0, import_helpers.objectFromEntries)(
|
|
25
|
+
(0, import_helpers.objectKeys)(lightTemplates).map(
|
|
26
|
+
(name) => [`light_${name}`, lightTemplates[name]]
|
|
27
|
+
)
|
|
28
|
+
),
|
|
29
|
+
...(0, import_helpers.objectFromEntries)(
|
|
30
|
+
(0, import_helpers.objectKeys)(darkTemplates).map(
|
|
31
|
+
(name) => [`dark_${name}`, darkTemplates[name]]
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
};
|
|
35
|
+
}, getBaseTemplates = (scheme) => {
|
|
36
|
+
const isLight = scheme === "light", bgIndex = 6, lighten = isLight ? -1 : 1, darken = -lighten, borderColor = bgIndex + 3, baseColors = {
|
|
37
|
+
color: -bgIndex,
|
|
38
|
+
colorHover: -bgIndex - 1,
|
|
39
|
+
colorPress: -bgIndex,
|
|
40
|
+
colorFocus: -bgIndex - 1,
|
|
41
|
+
placeholderColor: -bgIndex - 3,
|
|
42
|
+
outlineColor: -2
|
|
43
|
+
}, base = {
|
|
44
|
+
accentBackground: 0,
|
|
45
|
+
accentColor: -0,
|
|
46
|
+
background0: 1,
|
|
47
|
+
background02: 2,
|
|
48
|
+
background04: 3,
|
|
49
|
+
background06: 4,
|
|
50
|
+
background08: 5,
|
|
51
|
+
color1: bgIndex,
|
|
52
|
+
color2: bgIndex + 1,
|
|
53
|
+
color3: bgIndex + 2,
|
|
54
|
+
color4: bgIndex + 3,
|
|
55
|
+
color5: bgIndex + 4,
|
|
56
|
+
color6: bgIndex + 5,
|
|
57
|
+
color7: bgIndex + 6,
|
|
58
|
+
color8: bgIndex + 7,
|
|
59
|
+
color9: bgIndex + 8,
|
|
60
|
+
color10: bgIndex + 9,
|
|
61
|
+
color11: bgIndex + 10,
|
|
62
|
+
color12: bgIndex + 11,
|
|
63
|
+
color0: -1,
|
|
64
|
+
color02: -2,
|
|
65
|
+
color04: -3,
|
|
66
|
+
color06: -4,
|
|
67
|
+
color08: -5,
|
|
68
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
69
|
+
// can publish components for others to use without mandating a specific color scale
|
|
70
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
71
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
72
|
+
background: bgIndex,
|
|
73
|
+
backgroundHover: bgIndex + lighten,
|
|
74
|
+
// always lighten on hover no matter the scheme
|
|
75
|
+
backgroundPress: bgIndex + darken,
|
|
76
|
+
// always darken on press no matter the theme
|
|
77
|
+
backgroundFocus: bgIndex + darken,
|
|
78
|
+
borderColor,
|
|
79
|
+
borderColorHover: borderColor + lighten,
|
|
80
|
+
borderColorPress: borderColor + darken,
|
|
81
|
+
borderColorFocus: borderColor,
|
|
82
|
+
...baseColors,
|
|
83
|
+
colorTransparent: -1
|
|
84
|
+
}, surface1 = {
|
|
85
|
+
...baseColors,
|
|
86
|
+
background: base.background + 3,
|
|
87
|
+
backgroundHover: base.backgroundHover + 3,
|
|
88
|
+
backgroundPress: base.backgroundPress + 3,
|
|
89
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
90
|
+
borderColor: base.borderColor + 3,
|
|
91
|
+
borderColorHover: base.borderColorHover + 3,
|
|
92
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
93
|
+
borderColorPress: base.borderColorPress + 3
|
|
94
|
+
}, surface2 = {
|
|
95
|
+
...baseColors,
|
|
96
|
+
background: base.background + 4,
|
|
97
|
+
backgroundHover: base.backgroundHover + 4,
|
|
98
|
+
backgroundPress: base.backgroundPress + 4,
|
|
99
|
+
backgroundFocus: base.backgroundFocus + 4,
|
|
100
|
+
borderColor: base.borderColor + 4,
|
|
101
|
+
borderColorHover: base.borderColorHover + 4,
|
|
102
|
+
borderColorFocus: base.borderColorFocus + 4,
|
|
103
|
+
borderColorPress: base.borderColorPress + 4
|
|
104
|
+
}, surface3 = {
|
|
105
|
+
...baseColors,
|
|
106
|
+
background: base.background + 5,
|
|
107
|
+
backgroundHover: base.backgroundHover + 5,
|
|
108
|
+
backgroundPress: base.backgroundPress + 5,
|
|
109
|
+
backgroundFocus: base.backgroundFocus + 5,
|
|
110
|
+
borderColor: base.borderColor + 5,
|
|
111
|
+
borderColorHover: base.borderColorHover + 5,
|
|
112
|
+
borderColorFocus: base.borderColorFocus + 5,
|
|
113
|
+
borderColorPress: base.borderColorPress + 5
|
|
114
|
+
}, alt1 = {
|
|
115
|
+
color: base.color - 1,
|
|
116
|
+
colorHover: base.colorHover - 1,
|
|
117
|
+
colorPress: base.colorPress - 1,
|
|
118
|
+
colorFocus: base.colorFocus - 1
|
|
119
|
+
}, alt2 = {
|
|
120
|
+
color: base.color - 2,
|
|
121
|
+
colorHover: base.colorHover - 2,
|
|
122
|
+
colorPress: base.colorPress - 2,
|
|
123
|
+
colorFocus: base.colorFocus - 2
|
|
124
|
+
}, inverse = Object.fromEntries(
|
|
125
|
+
Object.entries(base).map(([key, index]) => [key, -index])
|
|
126
|
+
);
|
|
127
|
+
return {
|
|
128
|
+
base,
|
|
129
|
+
surface1,
|
|
130
|
+
surface2,
|
|
131
|
+
surface3,
|
|
132
|
+
alt1,
|
|
133
|
+
alt2,
|
|
134
|
+
inverse
|
|
135
|
+
};
|
|
136
|
+
}, defaultTemplatesStrongest = getTemplates();
|
|
137
|
+
//# sourceMappingURL=defaultTemplatesStrongest.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/defaultTemplatesStrongest.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA8C;AAG9C,MAAM,eAAe,MAAM;AACzB,QAAM,iBAAiB,iBAAiB,OAAO,GACzC,gBAAgB,iBAAiB,MAAM;AAa7C,SAZkB;AAAA,IAChB,OAAG;AAAA,UACD,2BAAW,cAAc,EAAE;AAAA,QACzB,CAAC,SAAS,CAAC,SAAS,IAAI,IAAI,eAAe,IAAI,CAAC;AAAA,MAClD;AAAA,IACF;AAAA,IACA,OAAG;AAAA,UACD,2BAAW,aAAa,EAAE;AAAA,QACxB,CAAC,SAAS,CAAC,QAAQ,IAAI,IAAI,cAAc,IAAI,CAAC;AAAA,MAChD;AAAA,IACF;AAAA,EACF;AAEF,GAEM,mBAAmB,CAAC,WAA6B;AACrD,QAAM,UAAU,WAAW,SAIrB,UAAU,GACV,UAAU,UAAU,KAAK,GACzB,SAAS,CAAC,SACV,cAAc,UAAU,GAExB,aAAa;AAAA,IACjB,OAAO,CAAC;AAAA,IACR,YAAY,CAAC,UAAU;AAAA,IACvB,YAAY,CAAC;AAAA,IACb,YAAY,CAAC,UAAU;AAAA,IACvB,kBAAkB,CAAC,UAAU;AAAA,IAC7B,cAAc;AAAA,EAChB,GAIM,OAAO;AAAA,IACX,kBAAkB;AAAA,IAClB,aAAa;AAAA,IAEb,aAAa;AAAA,IACb,cAAc;AAAA,IACd,cAAc;AAAA,IACd,cAAc;AAAA,IACd,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,QAAQ,UAAU;AAAA,IAClB,QAAQ,UAAU;A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AAG;AAAA,IACH,YAAY,KAAK,aAAa;AAAA,IAC9B,iBAAiB,KAAK,kBAAkB;AAAA,IACxC,iBAAiB,KAAK,kBAAkB;AAAA,IACxC,iBAAiB,KAAK,kBAAkB;AAAA,IACxC,aAAa,KAAK,cAAc;AAAA,IAChC,kBAAkB,KAAK,mBAAmB;AAAA,IAC1C,kBAAkB,KAAK,mBAAmB;AAAA,IAC1C,kBAAkB,KAAK,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,4BAA4B,aAAa;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
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 defaultTemplatesStrongest_exports = {};
|
|
17
|
+
__export(defaultTemplatesStrongest_exports, {
|
|
18
|
+
defaultTemplatesStrongest: () => defaultTemplatesStrongest
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(defaultTemplatesStrongest_exports);
|
|
21
|
+
var import_helpers = require("./helpers"), getTemplates = function() {
|
|
22
|
+
var lightTemplates = getBaseTemplates("light"), darkTemplates = getBaseTemplates("dark"), templates = {
|
|
23
|
+
...(0, import_helpers.objectFromEntries)((0, import_helpers.objectKeys)(lightTemplates).map(function(name) {
|
|
24
|
+
return [
|
|
25
|
+
`light_${name}`,
|
|
26
|
+
lightTemplates[name]
|
|
27
|
+
];
|
|
28
|
+
})),
|
|
29
|
+
...(0, import_helpers.objectFromEntries)((0, import_helpers.objectKeys)(darkTemplates).map(function(name) {
|
|
30
|
+
return [
|
|
31
|
+
`dark_${name}`,
|
|
32
|
+
darkTemplates[name]
|
|
33
|
+
];
|
|
34
|
+
}))
|
|
35
|
+
};
|
|
36
|
+
return templates;
|
|
37
|
+
}, getBaseTemplates = function(scheme) {
|
|
38
|
+
var isLight = scheme === "light", bgIndex = 6, lighten = isLight ? -1 : 1, darken = -lighten, borderColor = bgIndex + 3, baseColors = {
|
|
39
|
+
color: -bgIndex,
|
|
40
|
+
colorHover: -bgIndex - 1,
|
|
41
|
+
colorPress: -bgIndex,
|
|
42
|
+
colorFocus: -bgIndex - 1,
|
|
43
|
+
placeholderColor: -bgIndex - 3,
|
|
44
|
+
outlineColor: -2
|
|
45
|
+
}, base = {
|
|
46
|
+
accentBackground: 0,
|
|
47
|
+
accentColor: -0,
|
|
48
|
+
background0: 1,
|
|
49
|
+
background02: 2,
|
|
50
|
+
background04: 3,
|
|
51
|
+
background06: 4,
|
|
52
|
+
background08: 5,
|
|
53
|
+
color1: bgIndex,
|
|
54
|
+
color2: bgIndex + 1,
|
|
55
|
+
color3: bgIndex + 2,
|
|
56
|
+
color4: bgIndex + 3,
|
|
57
|
+
color5: bgIndex + 4,
|
|
58
|
+
color6: bgIndex + 5,
|
|
59
|
+
color7: bgIndex + 6,
|
|
60
|
+
color8: bgIndex + 7,
|
|
61
|
+
color9: bgIndex + 8,
|
|
62
|
+
color10: bgIndex + 9,
|
|
63
|
+
color11: bgIndex + 10,
|
|
64
|
+
color12: bgIndex + 11,
|
|
65
|
+
color0: -1,
|
|
66
|
+
color02: -2,
|
|
67
|
+
color04: -3,
|
|
68
|
+
color06: -4,
|
|
69
|
+
color08: -5,
|
|
70
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
71
|
+
// can publish components for others to use without mandating a specific color scale
|
|
72
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
73
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
74
|
+
background: bgIndex,
|
|
75
|
+
backgroundHover: bgIndex + lighten,
|
|
76
|
+
// always lighten on hover no matter the scheme
|
|
77
|
+
backgroundPress: bgIndex + darken,
|
|
78
|
+
// always darken on press no matter the theme
|
|
79
|
+
backgroundFocus: bgIndex + darken,
|
|
80
|
+
borderColor,
|
|
81
|
+
borderColorHover: borderColor + lighten,
|
|
82
|
+
borderColorPress: borderColor + darken,
|
|
83
|
+
borderColorFocus: borderColor,
|
|
84
|
+
...baseColors,
|
|
85
|
+
colorTransparent: -1
|
|
86
|
+
}, surface1 = {
|
|
87
|
+
...baseColors,
|
|
88
|
+
background: base.background + 3,
|
|
89
|
+
backgroundHover: base.backgroundHover + 3,
|
|
90
|
+
backgroundPress: base.backgroundPress + 3,
|
|
91
|
+
backgroundFocus: base.backgroundFocus + 3,
|
|
92
|
+
borderColor: base.borderColor + 3,
|
|
93
|
+
borderColorHover: base.borderColorHover + 3,
|
|
94
|
+
borderColorFocus: base.borderColorFocus + 3,
|
|
95
|
+
borderColorPress: base.borderColorPress + 3
|
|
96
|
+
}, surface2 = {
|
|
97
|
+
...baseColors,
|
|
98
|
+
background: base.background + 4,
|
|
99
|
+
backgroundHover: base.backgroundHover + 4,
|
|
100
|
+
backgroundPress: base.backgroundPress + 4,
|
|
101
|
+
backgroundFocus: base.backgroundFocus + 4,
|
|
102
|
+
borderColor: base.borderColor + 4,
|
|
103
|
+
borderColorHover: base.borderColorHover + 4,
|
|
104
|
+
borderColorFocus: base.borderColorFocus + 4,
|
|
105
|
+
borderColorPress: base.borderColorPress + 4
|
|
106
|
+
}, surface3 = {
|
|
107
|
+
...baseColors,
|
|
108
|
+
background: base.background + 5,
|
|
109
|
+
backgroundHover: base.backgroundHover + 5,
|
|
110
|
+
backgroundPress: base.backgroundPress + 5,
|
|
111
|
+
backgroundFocus: base.backgroundFocus + 5,
|
|
112
|
+
borderColor: base.borderColor + 5,
|
|
113
|
+
borderColorHover: base.borderColorHover + 5,
|
|
114
|
+
borderColorFocus: base.borderColorFocus + 5,
|
|
115
|
+
borderColorPress: base.borderColorPress + 5
|
|
116
|
+
}, alt1 = {
|
|
117
|
+
color: base.color - 1,
|
|
118
|
+
colorHover: base.colorHover - 1,
|
|
119
|
+
colorPress: base.colorPress - 1,
|
|
120
|
+
colorFocus: base.colorFocus - 1
|
|
121
|
+
}, alt2 = {
|
|
122
|
+
color: base.color - 2,
|
|
123
|
+
colorHover: base.colorHover - 2,
|
|
124
|
+
colorPress: base.colorPress - 2,
|
|
125
|
+
colorFocus: base.colorFocus - 2
|
|
126
|
+
}, inverse = Object.fromEntries(Object.entries(base).map(function(param) {
|
|
127
|
+
var [key, index] = param;
|
|
128
|
+
return [
|
|
129
|
+
key,
|
|
130
|
+
-index
|
|
131
|
+
];
|
|
132
|
+
}));
|
|
133
|
+
return {
|
|
134
|
+
base,
|
|
135
|
+
surface1,
|
|
136
|
+
surface2,
|
|
137
|
+
surface3,
|
|
138
|
+
alt1,
|
|
139
|
+
alt2,
|
|
140
|
+
inverse
|
|
141
|
+
};
|
|
142
|
+
}, defaultTemplatesStrongest = getTemplates();
|
|
143
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
144
|
+
0 && (module.exports = {
|
|
145
|
+
defaultTemplatesStrongest
|
|
146
|
+
});
|
|
147
|
+
//# sourceMappingURL=defaultTemplatesStrongest.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/theme-builder/src/defaultTemplatesStrongest.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;qBAA8C,sBAGxCA,eAAe,WAAA;AACnB,MAAMC,iBAAiBC,iBAAiB,OAAA,GAClCC,gBAAgBD,iBAAiB,MAAA,GACjCE,YAAY;IAChB,OAAGC,sCACDC,2BAAWL,cAAAA,EAAgBM,IACzB,SAACC,MAAAA;aAAS;QAAC,SAASA,IAAAA;QAAQP,eAAeO,IAAAA;;;IAG/C,OAAGH,sCACDC,2BAAWH,aAAAA,EAAeI,IACxB,SAACC,MAAAA;aAAS;QAAC,QAAQA,IAAAA;QAAQL,cAAcK,IAAAA;;;EAG/C;AACA,SAAOJ;AACT,GAEMF,mBAAmB,SAACO,QAAAA;AACxB,MAAMC,UAAUD,WAAW,SAIrBE,UAAU,GACVC,UAAUF,UAAU,KAAK,GACzBG,SAAS,CAACD,SACVE,cAAcH,UAAU,GAExBI,aAAa;IACjBC,OAAO,CAACL;IACRM,YAAY,CAACN,UAAU;IACvBO,YAAY,CAACP;IACbQ,YAAY,CAACR,UAAU;IACvBS,kBAAkB,CAACT,UAAU;IAC7BU,cAAc;EAChB,GAIMC,OAAO;IACXC,kBAAkB;IAClBC,aAAa;IAEbC,aAAa;IACb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C;IACHgC,YAAYzB,KAAKyB,aAAa;IAC9BC,iBAAiB1B,KAAK0B,kBAAkB;IACxCC,iBAAiB3B,KAAK2B,kBAAkB;IACxCC,iBAAiB5B,KAAK4B,kBAAkB;IACxCpC,aAAaQ,KAAKR,cAAc;IAChCqC,kBAAkB7B,KAAK6B,mBAAmB;IAC1CE,kBAAkB/B,KAAK+B,mBAAmB;IAC1CD,kBAAkB9B,KAAK8B,mBAAmB;EAC5C,GAEMM,OAAO;IACX1C,OAAOM,KAAKN,QAAQ;IACpBC,YAAYK,KAAKL,aAAa;IAC9BC,YAAYI,KAAKJ,aAAa;IAC9BC,YAAYG,KAAKH,aAAa;EAChC,GAEMwC,OAAO;IACX3C,OAAOM,KAAKN,QAAQ;IACpBC,YAAYK,KAAKL,aAAa;IAC9BC,YAAYI,KAAKJ,aAAa;IAC9BC,YAAYG,KAAKH,aAAa;EAChC,GAEMyC,UAAUC,OAAOC,YACrBD,OAAOE,QAAQzC,IAAAA,EAAMf,IAAI,SAAA,OAAA;QAAC,CAACyD,KAAKC,KAAAA,IAAM;AACpC,WAAO;MAACD;MAAK,CAACC;;EAChB,CAAA,CAAA;AAGF,SAAO;IACL3C;IACAiC;IACAC;IACAC;IACAC;IACAC;IACAC;EACF;AACF,GAEaM,4BAA4BlE,aAAAA;",
|
|
5
|
+
"names": ["getTemplates", "lightTemplates", "getBaseTemplates", "darkTemplates", "templates", "objectFromEntries", "objectKeys", "map", "name", "scheme", "isLight", "bgIndex", "lighten", "darken", "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", "borderColorHover", "borderColorPress", "borderColorFocus", "colorTransparent", "surface1", "surface2", "surface3", "alt1", "alt2", "inverse", "Object", "fromEntries", "entries", "key", "index", "defaultTemplatesStrongest"]
|
|
6
|
+
}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -23,7 +23,7 @@ var index_exports = {};
|
|
|
23
23
|
__export(index_exports, {
|
|
24
24
|
PALETTE_BACKGROUND_OFFSET: () => import_getThemeSuitePalettes.PALETTE_BACKGROUND_OFFSET,
|
|
25
25
|
createPalettes: () => import_createThemes.createPalettes,
|
|
26
|
-
createStudioThemes: () =>
|
|
26
|
+
createStudioThemes: () => import_createStudioThemes.createStudioThemes,
|
|
27
27
|
createThemes: () => import_createThemes.createThemes,
|
|
28
28
|
defaultComponentThemes: () => import_defaultComponentThemes.defaultComponentThemes,
|
|
29
29
|
defaultTemplates: () => import_defaultTemplates.defaultTemplates,
|
|
@@ -33,7 +33,8 @@ __export(index_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(index_exports);
|
|
34
34
|
__reExport(index_exports, require("./ThemeBuilder.cjs"), module.exports);
|
|
35
35
|
__reExport(index_exports, require("@tamagui/create-theme"), module.exports);
|
|
36
|
-
var
|
|
36
|
+
var import_createStudioThemes = require("./createStudioThemes.cjs"),
|
|
37
|
+
import_createThemes = require("./createThemes.cjs"),
|
|
37
38
|
import_defaultTemplates = require("./defaultTemplates.cjs"),
|
|
38
39
|
import_defaultComponentThemes = require("./defaultComponentThemes.cjs"),
|
|
39
40
|
import_getThemeSuitePalettes = require("./getThemeSuitePalettes.cjs"),
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var index_exports = {};
|
|
|
16
16
|
__export(index_exports, {
|
|
17
17
|
PALETTE_BACKGROUND_OFFSET: () => import_getThemeSuitePalettes.PALETTE_BACKGROUND_OFFSET,
|
|
18
18
|
createPalettes: () => import_createThemes.createPalettes,
|
|
19
|
-
createStudioThemes: () =>
|
|
19
|
+
createStudioThemes: () => import_createStudioThemes.createStudioThemes,
|
|
20
20
|
createThemes: () => import_createThemes.createThemes,
|
|
21
21
|
defaultComponentThemes: () => import_defaultComponentThemes.defaultComponentThemes,
|
|
22
22
|
defaultTemplates: () => import_defaultTemplates.defaultTemplates,
|
|
@@ -26,5 +26,5 @@ __export(index_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(index_exports);
|
|
27
27
|
__reExport(index_exports, require("./ThemeBuilder"), module.exports);
|
|
28
28
|
__reExport(index_exports, require("@tamagui/create-theme"), module.exports);
|
|
29
|
-
var import_createThemes = require("./createThemes"), import_defaultTemplates = require("./defaultTemplates"), import_defaultComponentThemes = require("./defaultComponentThemes"), import_getThemeSuitePalettes = require("./getThemeSuitePalettes"), import_masks = require("./masks");
|
|
29
|
+
var import_createStudioThemes = require("./createStudioThemes"), import_createThemes = require("./createThemes"), import_defaultTemplates = require("./defaultTemplates"), import_defaultComponentThemes = require("./defaultComponentThemes"), import_getThemeSuitePalettes = require("./getThemeSuitePalettes"), import_masks = require("./masks");
|
|
30
30
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,2BAAd;AACA,0BAAc,kCADd;AAGA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,2BAAd;AACA,0BAAc,kCADd;AAGA,gCAAmC,iCACnC,sBAIO,2BAEP,0BAAiC,+BACjC,gCAAuC,qCAEvC,+BAAiE,oCAGjE,eAAsB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|