@tamagui/themes 1.110.5 → 1.111.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/componentThemeDefinitions.native.js +77 -78
- package/dist/cjs/componentThemeDefinitions.native.js.map +1 -1
- package/dist/cjs/generated-new.native.js +1 -42
- package/dist/cjs/generated-new.native.js.map +1 -1
- package/dist/cjs/generated-v2.native.js +1 -42
- package/dist/cjs/generated-v2.native.js.map +1 -1
- package/dist/cjs/generated-v3.native.js +1 -42
- package/dist/cjs/generated-v3.native.js.map +1 -1
- package/dist/cjs/masks.native.js +16 -46
- package/dist/cjs/masks.native.js.map +1 -1
- package/dist/cjs/palettes.native.js +18 -58
- package/dist/cjs/palettes.native.js.map +2 -2
- package/dist/cjs/templates.native.js +26 -50
- package/dist/cjs/templates.native.js.map +1 -1
- package/dist/cjs/themes-new.native.js +17 -29
- package/dist/cjs/themes-new.native.js.map +1 -1
- package/dist/cjs/themes-old.native.js +76 -136
- package/dist/cjs/themes-old.native.js.map +2 -2
- package/dist/cjs/tokens.native.js +32 -69
- package/dist/cjs/tokens.native.js.map +1 -1
- package/dist/cjs/v2-themes.native.js +166 -187
- package/dist/cjs/v2-themes.native.js.map +2 -2
- package/dist/cjs/v3-themes.native.js +75 -125
- package/dist/cjs/v3-themes.native.js.map +1 -1
- package/dist/esm/componentThemeDefinitions.native.js +76 -76
- package/dist/esm/componentThemeDefinitions.native.js.map +1 -1
- package/dist/esm/componentThemeDefinitions.native.mjs +100 -0
- package/dist/esm/componentThemeDefinitions.native.mjs.map +1 -0
- package/dist/esm/generated-new.native.js +1 -42
- package/dist/esm/generated-new.native.js.map +1 -1
- package/dist/esm/generated-new.native.mjs +2011 -0
- package/dist/esm/generated-new.native.mjs.map +1 -0
- package/dist/esm/generated-v2.native.js +1 -42
- package/dist/esm/generated-v2.native.js.map +1 -1
- package/dist/esm/generated-v2.native.mjs +1935 -0
- package/dist/esm/generated-v2.native.mjs.map +1 -0
- package/dist/esm/generated-v3.native.js +1 -42
- package/dist/esm/generated-v3.native.js.map +1 -1
- package/dist/esm/generated-v3.native.mjs +1089 -0
- package/dist/esm/generated-v3.native.mjs.map +1 -0
- package/dist/esm/helpers.native.mjs +11 -0
- package/dist/esm/helpers.native.mjs.map +1 -0
- package/dist/esm/index.native.mjs +9 -0
- package/dist/esm/index.native.mjs.map +1 -0
- package/dist/esm/masks.native.js +15 -44
- package/dist/esm/masks.native.js.map +1 -1
- package/dist/esm/masks.native.mjs +92 -0
- package/dist/esm/masks.native.mjs.map +1 -0
- package/dist/esm/palettes.native.js +17 -56
- package/dist/esm/palettes.native.js.map +2 -2
- package/dist/esm/palettes.native.mjs +37 -0
- package/dist/esm/palettes.native.mjs.map +1 -0
- package/dist/esm/shadows.native.mjs +20 -0
- package/dist/esm/shadows.native.mjs.map +1 -0
- package/dist/esm/templates.native.js +25 -48
- package/dist/esm/templates.native.js.map +1 -1
- package/dist/esm/templates.native.mjs +94 -0
- package/dist/esm/templates.native.mjs.map +1 -0
- package/dist/esm/themes-new.native.js +16 -27
- package/dist/esm/themes-new.native.js.map +1 -1
- package/dist/esm/themes-new.native.mjs +62 -0
- package/dist/esm/themes-new.native.mjs.map +1 -0
- package/dist/esm/themes-old.native.js +75 -134
- package/dist/esm/themes-old.native.js.map +2 -2
- package/dist/esm/themes-old.native.mjs +277 -0
- package/dist/esm/themes-old.native.mjs.map +1 -0
- package/dist/esm/themes.native.mjs +3 -0
- package/dist/esm/themes.native.mjs.map +1 -0
- package/dist/esm/tokens.native.js +31 -67
- package/dist/esm/tokens.native.js.map +1 -1
- package/dist/esm/tokens.native.mjs +133 -0
- package/dist/esm/tokens.native.mjs.map +1 -0
- package/dist/esm/v2-themes.native.js +165 -185
- package/dist/esm/v2-themes.native.js.map +2 -2
- package/dist/esm/v2-themes.native.mjs +454 -0
- package/dist/esm/v2-themes.native.mjs.map +1 -0
- package/dist/esm/v2.native.mjs +13 -0
- package/dist/esm/v2.native.mjs.map +1 -0
- package/dist/esm/v3-themes.native.js +74 -123
- package/dist/esm/v3-themes.native.js.map +1 -1
- package/dist/esm/v3-themes.native.mjs +539 -0
- package/dist/esm/v3-themes.native.mjs.map +1 -0
- package/dist/esm/v3.native.mjs +13 -0
- package/dist/esm/v3.native.mjs.map +1 -0
- package/package.json +7 -7
|
@@ -18,66 +18,22 @@ __export(palettes_exports, {
|
|
|
18
18
|
palettes: () => palettes
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(palettes_exports);
|
|
21
|
-
var import_helpers = require("./helpers"), import_tokens = require("./tokens")
|
|
22
|
-
function _array_like_to_array(arr, len) {
|
|
23
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
24
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
25
|
-
return arr2;
|
|
26
|
-
}
|
|
27
|
-
function _array_without_holes(arr) {
|
|
28
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
29
|
-
}
|
|
30
|
-
function _define_property(obj, key, value) {
|
|
31
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
32
|
-
value,
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0
|
|
36
|
-
}) : obj[key] = value, obj;
|
|
37
|
-
}
|
|
38
|
-
function _iterable_to_array(iter) {
|
|
39
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
40
|
-
}
|
|
41
|
-
function _non_iterable_spread() {
|
|
42
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
43
|
-
}
|
|
44
|
-
function _object_spread(target) {
|
|
45
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
46
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
47
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
48
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
49
|
-
}))), ownKeys.forEach(function(key) {
|
|
50
|
-
_define_property(target, key, source[key]);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
return target;
|
|
54
|
-
}
|
|
55
|
-
function _to_consumable_array(arr) {
|
|
56
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
57
|
-
}
|
|
58
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
59
|
-
if (o) {
|
|
60
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
61
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
62
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
63
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
var palettes = function() {
|
|
21
|
+
var import_helpers = require("./helpers"), import_tokens = require("./tokens"), palettes = function() {
|
|
67
22
|
var lightTransparent = "rgba(255,255,255,0)", darkTransparent = "rgba(10,10,10,0)", transparent = function(hsl) {
|
|
68
23
|
var opacity = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
69
|
-
return hsl.replace("%)",
|
|
24
|
+
return hsl.replace("%)", `%, ${opacity})`).replace("hsl(", "hsla(");
|
|
70
25
|
}, getColorPalette = function(colors) {
|
|
71
|
-
var color = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : colors[0], colorPalette = Object.values(colors),
|
|
26
|
+
var color = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : colors[0], colorPalette = Object.values(colors), [head, tail] = [
|
|
72
27
|
colorPalette.slice(0, 6),
|
|
73
28
|
colorPalette.slice(colorPalette.length - 5)
|
|
74
|
-
]
|
|
29
|
+
];
|
|
75
30
|
return [
|
|
76
|
-
transparent(colorPalette[0])
|
|
77
|
-
|
|
31
|
+
transparent(colorPalette[0]),
|
|
32
|
+
...head,
|
|
33
|
+
...tail,
|
|
78
34
|
color,
|
|
79
35
|
transparent(colorPalette[colorPalette.length - 1])
|
|
80
|
-
]
|
|
36
|
+
];
|
|
81
37
|
}, lightColor = "hsl(0, 0%, 9.0%)", lightPalette = [
|
|
82
38
|
lightTransparent,
|
|
83
39
|
"#fff",
|
|
@@ -110,19 +66,23 @@ var palettes = function() {
|
|
|
110
66
|
lightTransparent
|
|
111
67
|
], lightPalettes = (0, import_helpers.objectFromEntries)((0, import_helpers.objectKeys)(import_tokens.colorTokens.light).map(function(key) {
|
|
112
68
|
return [
|
|
113
|
-
|
|
69
|
+
`light_${key}`,
|
|
114
70
|
getColorPalette(import_tokens.colorTokens.light[key], lightColor)
|
|
115
71
|
];
|
|
116
72
|
})), darkPalettes = (0, import_helpers.objectFromEntries)((0, import_helpers.objectKeys)(import_tokens.colorTokens.dark).map(function(key) {
|
|
117
73
|
return [
|
|
118
|
-
|
|
74
|
+
`dark_${key}`,
|
|
119
75
|
getColorPalette(import_tokens.colorTokens.dark[key], darkColor)
|
|
120
76
|
];
|
|
121
|
-
})), colorPalettes =
|
|
122
|
-
|
|
77
|
+
})), colorPalettes = {
|
|
78
|
+
...lightPalettes,
|
|
79
|
+
...darkPalettes
|
|
80
|
+
};
|
|
81
|
+
return {
|
|
123
82
|
light: lightPalette,
|
|
124
|
-
dark: darkPalette
|
|
125
|
-
|
|
83
|
+
dark: darkPalette,
|
|
84
|
+
...colorPalettes
|
|
85
|
+
};
|
|
126
86
|
}();
|
|
127
87
|
// Annotate the CommonJS export names for ESM import in node:
|
|
128
88
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/themes/src/palettes.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["palettes", "lightTransparent", "darkTransparent", "transparent", "hsl", "opacity", "replace", "getColorPalette", "colors", "color", "colorPalette", "Object", "values", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;qBAA8C,sBAC9C,gBAA4B,qBAEfA,WAAY,WAAA;AACvB,MAAMC,mBAAmB,uBACnBC,kBAAkB,oBAElBC,cAAc,SAACC,KAAAA;QAAaC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAU;WAC1CD,IAAIE,QAAQ,MAAM,MAAMD,OAAAA,GAAU,EAAEC,QAAQ,QAAQ,OAAO;KAEvDC,kBAAkB,SAACC,QAAAA;QAAgBC,QAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAQD,OAAO,CAAA,GAChDE,eAAeC,OAAOC,OAAOJ,MAAAA,GAG7B,CAACK,MAAMC,IAAAA,IAAQ;MACnBJ,aAAaK,MAAM,GAAG,CAAA;MACtBL,aAAaK,MAAML,aAAaM,SAAS,CAAA;;AAM3C,WAAO;MACLb,YAAYO,aAAa,CAAA,CAAE;SACxBG;SACAC;MACHL;MACAN,YAAYO,aAAaA,aAAaM,SAAS,CAAA,CAAE;;EAErD,GAEMC,aAAa,oBACbC,eAAe;IACnBjB;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACAgB;IACAf;KAGIiB,YAAY,QACZC,cAAc;IAClBlB;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACAiB;IACAlB;KAGIoB,oBAAgBC,sCACpBC,2BAAWC,0BAAYC,KAAK,EAAEC,IAC5B,SAACC,KAAAA;WACC;MAAC,SAASA,GAAAA;MAAOpB,gBAAgBiB,0BAAYC,MAAME,GAAAA,GAAMV,UAAAA;;OAIzDW,mBAAeN,sCACnBC,2BAAWC,0BAAYK,IAAI,EAAEH,IAC3B,SAACC,KAAAA;WAAQ;MAAC,QAAQA,GAAAA;MAAOpB,gBAAgBiB,0BAAYK,KAAKF,GAAAA,GAAMR,SAAAA;;OAI9DW,gBAAgB;IACpB,GAAGT;IACH,GAAGO;EACL;AAEA,SAAO;IACLH,OAAOP;IACPW,MAAMT;IACN,GAAGU;EACL;AACF,EAAA;",
|
|
5
|
+
"names": ["palettes", "lightTransparent", "darkTransparent", "transparent", "hsl", "opacity", "replace", "getColorPalette", "colors", "color", "colorPalette", "Object", "values", "head", "tail", "slice", "length", "lightColor", "lightPalette", "darkColor", "darkPalette", "lightPalettes", "objectFromEntries", "objectKeys", "colorTokens", "light", "map", "key", "darkPalettes", "dark", "colorPalettes"]
|
|
6
6
|
}
|
|
@@ -19,42 +19,7 @@ __export(templates_exports, {
|
|
|
19
19
|
templates: () => templates
|
|
20
20
|
});
|
|
21
21
|
module.exports = __toCommonJS(templates_exports);
|
|
22
|
-
var import_palettes = require("./palettes")
|
|
23
|
-
function _define_property(obj, key, value) {
|
|
24
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
25
|
-
value,
|
|
26
|
-
enumerable: !0,
|
|
27
|
-
configurable: !0,
|
|
28
|
-
writable: !0
|
|
29
|
-
}) : obj[key] = value, obj;
|
|
30
|
-
}
|
|
31
|
-
function _object_spread(target) {
|
|
32
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
33
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
34
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
35
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
36
|
-
}))), ownKeys2.forEach(function(key) {
|
|
37
|
-
_define_property(target, key, source[key]);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return target;
|
|
41
|
-
}
|
|
42
|
-
function ownKeys(object, enumerableOnly) {
|
|
43
|
-
var keys = Object.keys(object);
|
|
44
|
-
if (Object.getOwnPropertySymbols) {
|
|
45
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
46
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
47
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
48
|
-
})), keys.push.apply(keys, symbols);
|
|
49
|
-
}
|
|
50
|
-
return keys;
|
|
51
|
-
}
|
|
52
|
-
function _object_spread_props(target, source) {
|
|
53
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
54
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
55
|
-
}), target;
|
|
56
|
-
}
|
|
57
|
-
var templateColorsSpecific = {
|
|
22
|
+
var import_palettes = require("./palettes"), templateColorsSpecific = {
|
|
58
23
|
color1: 1,
|
|
59
24
|
color2: 2,
|
|
60
25
|
color3: 3,
|
|
@@ -67,7 +32,8 @@ var templateColorsSpecific = {
|
|
|
67
32
|
color10: 10,
|
|
68
33
|
color11: 11,
|
|
69
34
|
color12: 12
|
|
70
|
-
}, template =
|
|
35
|
+
}, template = {
|
|
36
|
+
...templateColorsSpecific,
|
|
71
37
|
// the background, color, etc keys here work like generics - they make it so you
|
|
72
38
|
// can publish components for others to use without mandating a specific color scale
|
|
73
39
|
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
@@ -88,44 +54,54 @@ var templateColorsSpecific = {
|
|
|
88
54
|
borderColorFocus: 4,
|
|
89
55
|
borderColorPress: 5,
|
|
90
56
|
placeholderColor: -4
|
|
91
|
-
}
|
|
57
|
+
}, templates = {
|
|
92
58
|
base: template,
|
|
93
|
-
colorLight:
|
|
59
|
+
colorLight: {
|
|
60
|
+
...template,
|
|
94
61
|
// light color themes are a bit less sensitive
|
|
95
62
|
borderColor: 4,
|
|
96
63
|
borderColorHover: 5,
|
|
97
64
|
borderColorFocus: 4,
|
|
98
65
|
borderColorPress: 4
|
|
99
|
-
}
|
|
66
|
+
}
|
|
100
67
|
}, shadows = {
|
|
101
68
|
shadowColor: 0,
|
|
102
69
|
shadowColorHover: 0,
|
|
103
70
|
shadowColorPress: 0,
|
|
104
71
|
shadowColorFocus: 0
|
|
105
|
-
}, colors =
|
|
72
|
+
}, colors = {
|
|
73
|
+
...shadows,
|
|
106
74
|
color: 0,
|
|
107
75
|
colorHover: 0,
|
|
108
76
|
colorFocus: 0,
|
|
109
77
|
colorPress: 0
|
|
110
|
-
}
|
|
78
|
+
}, baseMaskOptions = {
|
|
111
79
|
override: shadows,
|
|
112
80
|
skip: shadows,
|
|
113
81
|
// avoids the transparent ends
|
|
114
82
|
max: import_palettes.palettes.light.length - 2,
|
|
115
83
|
min: 1
|
|
116
|
-
}, skipShadowsAndSpecificColors =
|
|
117
|
-
|
|
84
|
+
}, skipShadowsAndSpecificColors = {
|
|
85
|
+
...shadows,
|
|
86
|
+
...templateColorsSpecific
|
|
87
|
+
}, maskOptions = {
|
|
88
|
+
component: {
|
|
89
|
+
...baseMaskOptions,
|
|
118
90
|
override: colors,
|
|
119
91
|
skip: skipShadowsAndSpecificColors
|
|
120
|
-
}
|
|
121
|
-
alt:
|
|
122
|
-
|
|
123
|
-
|
|
92
|
+
},
|
|
93
|
+
alt: {
|
|
94
|
+
...baseMaskOptions
|
|
95
|
+
},
|
|
96
|
+
button: {
|
|
97
|
+
...baseMaskOptions,
|
|
98
|
+
override: {
|
|
99
|
+
...colors,
|
|
124
100
|
borderColor: "transparent",
|
|
125
101
|
borderColorHover: "transparent"
|
|
126
|
-
}
|
|
102
|
+
},
|
|
127
103
|
skip: skipShadowsAndSpecificColors
|
|
128
|
-
}
|
|
104
|
+
}
|
|
129
105
|
};
|
|
130
106
|
// Annotate the CommonJS export names for ESM import in node:
|
|
131
107
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/themes/src/templates.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAEA;;;;;;sBAAyB,uBAEnBA,yBAAyB;EAC7BC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,SAAS;EACTC,SAAS;EACTC,SAAS;AACX,GAIMC,WAAW;EACf,GAAGb;;;;;EAKHc,YAAY;EACZC,iBAAiB;EACjBC,iBAAiB;EACjBC,iBAAiB;EACjBC,kBAAkB;EAClBC,uBAAuB;EACvBC,OAAO;EACPC,YAAY;EACZC,YAAY;EACZC,YAAY;EACZC,kBAAkB;EAClBC,aAAa;EACbC,kBAAkB;EAClBC,kBAAkB;EAClBC,kBAAkB;EAClBC,kBAAkB;AACpB,GAEaC,YAAY;EACvBC,MAAMlB;EACNmB,YAAY;IACV,GAAGnB;;IAEHY,aAAa;IACbC,kBAAkB;IAClBC,kBAAkB;IAClBC,kBAAkB;EACpB;AACF,GAEMK,UAAU;EACdC,aAAa;EACbC,kBAAkB;EAClBC,kBAAkB;EAClBC,kBAAkB;AACpB,GAEMC,SAAS;EACb,GAAGL;EACHb,OAAO;EACPC,YAAY;EACZE,YAAY;EACZD,YAAY;AACd,GAEMiB,kBAA+B;EACnCC,UAAUP;EACVQ,MAAMR;;EAENS,KAAKC,yBAASC,MAAMC,SAAS;EAC7BC,KAAK;AACP,GAEMC,+BAA+B;EACnC,GAAGd;EACH,GAAGjC;AACL,GAEagD,cAAc;EACzBC,WAAW;IACT,GAAGV;IACHC,UAAUF;IACVG,MAAMM;EACR;EACAG,KAAK;IACH,GAAGX;EACL;EACAY,QAAQ;IACN,GAAGZ;IACHC,UAAU;MACR,GAAGF;MACHb,aAAa;MACbC,kBAAkB;IACpB;IACAe,MAAMM;EACR;AACF;",
|
|
5
5
|
"names": ["templateColorsSpecific", "color1", "color2", "color3", "color4", "color5", "color6", "color7", "color8", "color9", "color10", "color11", "color12", "template", "background", "backgroundHover", "backgroundPress", "backgroundFocus", "backgroundStrong", "backgroundTransparent", "color", "colorHover", "colorPress", "colorFocus", "colorTransparent", "borderColor", "borderColorHover", "borderColorFocus", "borderColorPress", "placeholderColor", "templates", "base", "colorLight", "shadows", "shadowColor", "shadowColorHover", "shadowColorPress", "shadowColorFocus", "colors", "baseMaskOptions", "override", "skip", "max", "palettes", "light", "length", "min", "skipShadowsAndSpecificColors", "maskOptions", "component", "alt", "button"]
|
|
6
6
|
}
|
|
@@ -18,27 +18,7 @@ __export(themes_new_exports, {
|
|
|
18
18
|
themes: () => themes
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(themes_new_exports);
|
|
21
|
-
var import_theme_builder = require("@tamagui/theme-builder"), import_componentThemeDefinitions = require("./componentThemeDefinitions"), import_masks = require("./masks"), import_palettes = require("./palettes"), import_shadows = require("./shadows"), import_templates = require("./templates"), import_tokens = require("./tokens")
|
|
22
|
-
function _define_property(obj, key, value) {
|
|
23
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
24
|
-
value,
|
|
25
|
-
enumerable: !0,
|
|
26
|
-
configurable: !0,
|
|
27
|
-
writable: !0
|
|
28
|
-
}) : obj[key] = value, obj;
|
|
29
|
-
}
|
|
30
|
-
function _object_spread(target) {
|
|
31
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
33
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
35
|
-
}))), ownKeys.forEach(function(key) {
|
|
36
|
-
_define_property(target, key, source[key]);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return target;
|
|
40
|
-
}
|
|
41
|
-
var colorThemeDefinition = function(colorName) {
|
|
21
|
+
var import_theme_builder = require("@tamagui/theme-builder"), import_componentThemeDefinitions = require("./componentThemeDefinitions"), import_masks = require("./masks"), import_palettes = require("./palettes"), import_shadows = require("./shadows"), import_templates = require("./templates"), import_tokens = require("./tokens"), colorThemeDefinition = function(colorName) {
|
|
42
22
|
return [
|
|
43
23
|
{
|
|
44
24
|
parent: "light",
|
|
@@ -55,12 +35,18 @@ var colorThemeDefinition = function(colorName) {
|
|
|
55
35
|
light: {
|
|
56
36
|
template: "base",
|
|
57
37
|
palette: "light",
|
|
58
|
-
nonInheritedValues:
|
|
38
|
+
nonInheritedValues: {
|
|
39
|
+
...import_tokens.lightColors,
|
|
40
|
+
...import_shadows.shadows.light
|
|
41
|
+
}
|
|
59
42
|
},
|
|
60
43
|
dark: {
|
|
61
44
|
template: "base",
|
|
62
45
|
palette: "dark",
|
|
63
|
-
nonInheritedValues:
|
|
46
|
+
nonInheritedValues: {
|
|
47
|
+
...import_tokens.darkColors,
|
|
48
|
+
...import_shadows.shadows.dark
|
|
49
|
+
}
|
|
64
50
|
}
|
|
65
51
|
}).addChildThemes({
|
|
66
52
|
orange: colorThemeDefinition("orange"),
|
|
@@ -71,12 +57,14 @@ var colorThemeDefinition = function(colorName) {
|
|
|
71
57
|
pink: colorThemeDefinition("pink"),
|
|
72
58
|
red: colorThemeDefinition("red")
|
|
73
59
|
}).addChildThemes({
|
|
74
|
-
alt1:
|
|
75
|
-
mask: "soften"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
60
|
+
alt1: {
|
|
61
|
+
mask: "soften",
|
|
62
|
+
...import_templates.maskOptions.alt
|
|
63
|
+
},
|
|
64
|
+
alt2: {
|
|
65
|
+
mask: "soften2",
|
|
66
|
+
...import_templates.maskOptions.alt
|
|
67
|
+
},
|
|
80
68
|
active: {
|
|
81
69
|
mask: "soften3",
|
|
82
70
|
skip: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/themes/src/themes-new.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;2BAAmC,mCAEnC,mCAA0C,wCAC1C,eAAsB,oBACtB,kBAAyB,uBACzB,iBAAwB,sBACxB,mBAAuC,wBACvC,gBAAwC,qBAElCA,uBAAuB,SAACC,WAAAA;SAAsB;IAClD;MACEC,QAAQ;MACRC,SAASF;MACTG,UAAU;IACZ;IACA;MACEF,QAAQ;MACRC,SAASF;MACTG,UAAU;IACZ;;GAGIC,oBAAgBC,yCAAAA,EACnBC,YAAYC,wBAAAA,EACZC,aAAaC,0BAAAA,EACbC,SAASC,kBAAAA,EACTC,UAAU;EACTC,OAAO;IACLV,UAAU;IACVD,SAAS;IACTY,oBAAoB;MAClB,GAAGC;MACH,GAAGC,uBAAQH;IACb;EACF;EACAI,MAAM;IACJd,UAAU;IACVD,SAAS;IACTY,oBAAoB;MAClB,GAAGI;MACH,GAAGF,uBAAQC;IACb;EACF;AACF,CAAA,EACCE,eAAe;EACdC,QAAQrB,qBAAqB,QAAA;EAC7BsB,QAAQtB,qBAAqB,QAAA;EAC7BuB,OAAOvB,qBAAqB,OAAA;EAC5BwB,MAAMxB,qBAAqB,MAAA;EAC3ByB,QAAQzB,qBAAqB,QAAA;EAC7B0B,MAAM1B,qBAAqB,MAAA;EAC3B2B,KAAK3B,qBAAqB,KAAA;AAC5B,CAAA,EACCoB,eAAe;EACdQ,MAAM;IACJC,MAAM;IACN,GAAGC,6BAAYC;EACjB;EACAC,MAAM;IACJH,MAAM;IACN,GAAGC,6BAAYC;EACjB;EACAE,QAAQ;IACNJ,MAAM;IACNK,MAAM;MACJC,OAAO;IACT;EACF;AACF,CAAA,EACCf,eAAegB,4DAA2B,CAG3C,CAAA,GAEWC,SAAShC,cAAciC,MAAK;",
|
|
5
5
|
"names": ["colorThemeDefinition", "colorName", "parent", "palette", "template", "themesBuilder", "createThemeBuilder", "addPalettes", "palettes", "addTemplates", "templates", "addMasks", "masks", "addThemes", "light", "nonInheritedValues", "lightColors", "shadows", "dark", "darkColors", "addChildThemes", "orange", "yellow", "green", "blue", "purple", "pink", "red", "alt1", "mask", "maskOptions", "alt", "alt2", "active", "skip", "color", "componentThemeDefinitions", "themes", "build"]
|
|
6
6
|
}
|