@tamagui/themes 1.110.5 → 1.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/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
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { palettes } from "./palettes.mjs";
|
|
2
|
+
var templateColorsSpecific = {
|
|
3
|
+
color1: 1,
|
|
4
|
+
color2: 2,
|
|
5
|
+
color3: 3,
|
|
6
|
+
color4: 4,
|
|
7
|
+
color5: 5,
|
|
8
|
+
color6: 6,
|
|
9
|
+
color7: 7,
|
|
10
|
+
color8: 8,
|
|
11
|
+
color9: 9,
|
|
12
|
+
color10: 10,
|
|
13
|
+
color11: 11,
|
|
14
|
+
color12: 12
|
|
15
|
+
},
|
|
16
|
+
template = {
|
|
17
|
+
...templateColorsSpecific,
|
|
18
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
19
|
+
// can publish components for others to use without mandating a specific color scale
|
|
20
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
21
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
22
|
+
background: 2,
|
|
23
|
+
backgroundHover: 3,
|
|
24
|
+
backgroundPress: 4,
|
|
25
|
+
backgroundFocus: 5,
|
|
26
|
+
backgroundStrong: 1,
|
|
27
|
+
backgroundTransparent: 0,
|
|
28
|
+
color: -1,
|
|
29
|
+
colorHover: -2,
|
|
30
|
+
colorPress: -1,
|
|
31
|
+
colorFocus: -2,
|
|
32
|
+
colorTransparent: -0,
|
|
33
|
+
borderColor: 5,
|
|
34
|
+
borderColorHover: 6,
|
|
35
|
+
borderColorFocus: 4,
|
|
36
|
+
borderColorPress: 5,
|
|
37
|
+
placeholderColor: -4
|
|
38
|
+
},
|
|
39
|
+
templates = {
|
|
40
|
+
base: template,
|
|
41
|
+
colorLight: {
|
|
42
|
+
...template,
|
|
43
|
+
// light color themes are a bit less sensitive
|
|
44
|
+
borderColor: 4,
|
|
45
|
+
borderColorHover: 5,
|
|
46
|
+
borderColorFocus: 4,
|
|
47
|
+
borderColorPress: 4
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
shadows = {
|
|
51
|
+
shadowColor: 0,
|
|
52
|
+
shadowColorHover: 0,
|
|
53
|
+
shadowColorPress: 0,
|
|
54
|
+
shadowColorFocus: 0
|
|
55
|
+
},
|
|
56
|
+
colors = {
|
|
57
|
+
...shadows,
|
|
58
|
+
color: 0,
|
|
59
|
+
colorHover: 0,
|
|
60
|
+
colorFocus: 0,
|
|
61
|
+
colorPress: 0
|
|
62
|
+
},
|
|
63
|
+
baseMaskOptions = {
|
|
64
|
+
override: shadows,
|
|
65
|
+
skip: shadows,
|
|
66
|
+
// avoids the transparent ends
|
|
67
|
+
max: palettes.light.length - 2,
|
|
68
|
+
min: 1
|
|
69
|
+
},
|
|
70
|
+
skipShadowsAndSpecificColors = {
|
|
71
|
+
...shadows,
|
|
72
|
+
...templateColorsSpecific
|
|
73
|
+
},
|
|
74
|
+
maskOptions = {
|
|
75
|
+
component: {
|
|
76
|
+
...baseMaskOptions,
|
|
77
|
+
override: colors,
|
|
78
|
+
skip: skipShadowsAndSpecificColors
|
|
79
|
+
},
|
|
80
|
+
alt: {
|
|
81
|
+
...baseMaskOptions
|
|
82
|
+
},
|
|
83
|
+
button: {
|
|
84
|
+
...baseMaskOptions,
|
|
85
|
+
override: {
|
|
86
|
+
...colors,
|
|
87
|
+
borderColor: "transparent",
|
|
88
|
+
borderColorHover: "transparent"
|
|
89
|
+
},
|
|
90
|
+
skip: skipShadowsAndSpecificColors
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
export { maskOptions, templates };
|
|
94
|
+
//# sourceMappingURL=templates.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["palettes","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","light","length","min","skipShadowsAndSpecificColors","maskOptions","component","alt","button"],"sources":["../../src/templates.tsx"],"sourcesContent":[null],"mappings":"AAEA,SAASA,QAAA,QAAgB;AAEzB,IAAAC,sBAAM;IACJC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,OAAA,EAAS;IACTC,OAAA,EAAS;IACTC,OAAA,EAAS;EACX;EAIMC,QAAA,GAAW;IACf,GAAGb,sBAAA;IAAA;IAAA;IAAA;IAAA;IAKHc,UAAA,EAAY;IACZC,eAAA,EAAiB;IACjBC,eAAA,EAAiB;IACjBC,eAAA,EAAiB;IACjBC,gBAAA,EAAkB;IAClBC,qBAAA,EAAuB;IACvBC,KAAA,EAAO;IACPC,UAAA,EAAY;IACZC,UAAA,EAAY;IACZC,UAAA,EAAY;IACZC,gBAAA,EAAkB;IAClBC,WAAA,EAAa;IACbC,gBAAA,EAAkB;IAClBC,gBAAA,EAAkB;IAClBC,gBAAA,EAAkB;IAClBC,gBAAA,EAAkB;EACpB;EAEaC,SAAA,GAAY;IACvBC,IAAA,EAAMlB,QAAA;IACNmB,UAAA,EAAY;MACV,GAAGnB,QAAA;MAAA;MAEHY,WAAA,EAAa;MACbC,gBAAA,EAAkB;MAClBC,gBAAA,EAAkB;MAClBC,gBAAA,EAAkB;IACpB;EACF;EAEMK,OAAA,GAAU;IACdC,WAAA,EAAa;IACbC,gBAAA,EAAkB;IAClBC,gBAAA,EAAkB;IAClBC,gBAAA,EAAkB;EACpB;EAEMC,MAAA,GAAS;IACb,GAAGL,OAAA;IACHb,KAAA,EAAO;IACPC,UAAA,EAAY;IACZE,UAAA,EAAY;IACZD,UAAA,EAAY;EACd;EAEMiB,eAAA,GAA+B;IACnCC,QAAA,EAAUP,OAAA;IACVQ,IAAA,EAAMR,OAAA;IAAA;IAENS,GAAA,EAAK3C,QAAA,CAAS4C,KAAA,CAAMC,MAAA,GAAS;IAC7BC,GAAA,EAAK;EACP;EAEMC,4BAAA,GAA+B;IACnC,GAAGb,OAAA;IACH,GAAGjC;EACL;EAEa+C,WAAA,GAAc;IACzBC,SAAA,EAAW;MACT,GAAGT,eAAA;MACHC,QAAA,EAAUF,MAAA;MACVG,IAAA,EAAMK;IACR;IACAG,GAAA,EAAK;MACH,GAAGV;IACL;IACAW,MAAA,EAAQ;MACN,GAAGX,eAAA;MACHC,QAAA,EAAU;QACR,GAAGF,MAAA;QACHb,WAAA,EAAa;QACbC,gBAAA,EAAkB;MACpB;MACAe,IAAA,EAAMK;IACR;EACF","ignoreList":[]}
|
|
@@ -5,25 +5,6 @@ import { palettes } from "./palettes";
|
|
|
5
5
|
import { shadows } from "./shadows";
|
|
6
6
|
import { maskOptions, templates } from "./templates";
|
|
7
7
|
import { darkColors, lightColors } from "./tokens";
|
|
8
|
-
function _define_property(obj, key, value) {
|
|
9
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
10
|
-
value,
|
|
11
|
-
enumerable: !0,
|
|
12
|
-
configurable: !0,
|
|
13
|
-
writable: !0
|
|
14
|
-
}) : obj[key] = value, obj;
|
|
15
|
-
}
|
|
16
|
-
function _object_spread(target) {
|
|
17
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
18
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
19
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
-
}))), ownKeys.forEach(function(key) {
|
|
22
|
-
_define_property(target, key, source[key]);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return target;
|
|
26
|
-
}
|
|
27
8
|
var colorThemeDefinition = function(colorName) {
|
|
28
9
|
return [
|
|
29
10
|
{
|
|
@@ -41,12 +22,18 @@ var colorThemeDefinition = function(colorName) {
|
|
|
41
22
|
light: {
|
|
42
23
|
template: "base",
|
|
43
24
|
palette: "light",
|
|
44
|
-
nonInheritedValues:
|
|
25
|
+
nonInheritedValues: {
|
|
26
|
+
...lightColors,
|
|
27
|
+
...shadows.light
|
|
28
|
+
}
|
|
45
29
|
},
|
|
46
30
|
dark: {
|
|
47
31
|
template: "base",
|
|
48
32
|
palette: "dark",
|
|
49
|
-
nonInheritedValues:
|
|
33
|
+
nonInheritedValues: {
|
|
34
|
+
...darkColors,
|
|
35
|
+
...shadows.dark
|
|
36
|
+
}
|
|
50
37
|
}
|
|
51
38
|
}).addChildThemes({
|
|
52
39
|
orange: colorThemeDefinition("orange"),
|
|
@@ -57,12 +44,14 @@ var colorThemeDefinition = function(colorName) {
|
|
|
57
44
|
pink: colorThemeDefinition("pink"),
|
|
58
45
|
red: colorThemeDefinition("red")
|
|
59
46
|
}).addChildThemes({
|
|
60
|
-
alt1:
|
|
61
|
-
mask: "soften"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
47
|
+
alt1: {
|
|
48
|
+
mask: "soften",
|
|
49
|
+
...maskOptions.alt
|
|
50
|
+
},
|
|
51
|
+
alt2: {
|
|
52
|
+
mask: "soften2",
|
|
53
|
+
...maskOptions.alt
|
|
54
|
+
},
|
|
66
55
|
active: {
|
|
67
56
|
mask: "soften3",
|
|
68
57
|
skip: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/themes/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,CAAA,EACCd,eAAerB,2BAA2B,CAG3C,CAAA,GAEWoC,SAASvB,cAAcwB,MAAK;",
|
|
5
5
|
"names": ["createThemeBuilder", "componentThemeDefinitions", "masks", "palettes", "shadows", "maskOptions", "templates", "darkColors", "lightColors", "colorThemeDefinition", "colorName", "parent", "palette", "template", "themesBuilder", "addPalettes", "addTemplates", "addMasks", "addThemes", "light", "nonInheritedValues", "dark", "addChildThemes", "orange", "yellow", "green", "blue", "purple", "pink", "red", "alt1", "mask", "alt", "alt2", "active", "skip", "color", "themes", "build"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createThemeBuilder } from "@tamagui/theme-builder";
|
|
2
|
+
import { componentThemeDefinitions } from "./componentThemeDefinitions.mjs";
|
|
3
|
+
import { masks } from "./masks.mjs";
|
|
4
|
+
import { palettes } from "./palettes.mjs";
|
|
5
|
+
import { shadows } from "./shadows.mjs";
|
|
6
|
+
import { maskOptions, templates } from "./templates.mjs";
|
|
7
|
+
import { darkColors, lightColors } from "./tokens.mjs";
|
|
8
|
+
var colorThemeDefinition = function (colorName) {
|
|
9
|
+
return [{
|
|
10
|
+
parent: "light",
|
|
11
|
+
palette: colorName,
|
|
12
|
+
template: "colorLight"
|
|
13
|
+
}, {
|
|
14
|
+
parent: "dark",
|
|
15
|
+
palette: colorName,
|
|
16
|
+
template: "base"
|
|
17
|
+
}];
|
|
18
|
+
},
|
|
19
|
+
themesBuilder = createThemeBuilder().addPalettes(palettes).addTemplates(templates).addMasks(masks).addThemes({
|
|
20
|
+
light: {
|
|
21
|
+
template: "base",
|
|
22
|
+
palette: "light",
|
|
23
|
+
nonInheritedValues: {
|
|
24
|
+
...lightColors,
|
|
25
|
+
...shadows.light
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
dark: {
|
|
29
|
+
template: "base",
|
|
30
|
+
palette: "dark",
|
|
31
|
+
nonInheritedValues: {
|
|
32
|
+
...darkColors,
|
|
33
|
+
...shadows.dark
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}).addChildThemes({
|
|
37
|
+
orange: colorThemeDefinition("orange"),
|
|
38
|
+
yellow: colorThemeDefinition("yellow"),
|
|
39
|
+
green: colorThemeDefinition("green"),
|
|
40
|
+
blue: colorThemeDefinition("blue"),
|
|
41
|
+
purple: colorThemeDefinition("purple"),
|
|
42
|
+
pink: colorThemeDefinition("pink"),
|
|
43
|
+
red: colorThemeDefinition("red")
|
|
44
|
+
}).addChildThemes({
|
|
45
|
+
alt1: {
|
|
46
|
+
mask: "soften",
|
|
47
|
+
...maskOptions.alt
|
|
48
|
+
},
|
|
49
|
+
alt2: {
|
|
50
|
+
mask: "soften2",
|
|
51
|
+
...maskOptions.alt
|
|
52
|
+
},
|
|
53
|
+
active: {
|
|
54
|
+
mask: "soften3",
|
|
55
|
+
skip: {
|
|
56
|
+
color: 1
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}).addChildThemes(componentThemeDefinitions, {}),
|
|
60
|
+
themes = themesBuilder.build();
|
|
61
|
+
export { themes };
|
|
62
|
+
//# sourceMappingURL=themes-new.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createThemeBuilder","componentThemeDefinitions","masks","palettes","shadows","maskOptions","templates","darkColors","lightColors","colorThemeDefinition","colorName","parent","palette","template","themesBuilder","addPalettes","addTemplates","addMasks","addThemes","light","nonInheritedValues","dark","addChildThemes","orange","yellow","green","blue","purple","pink","red","alt1","mask","alt","alt2","active","skip","color","themes","build"],"sources":["../../src/themes-new.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,kBAAA,QAA0B;AAEnC,SAASC,yBAAA,QAAiC;AAC1C,SAASC,KAAA,QAAa;AACtB,SAASC,QAAA,QAAgB;AACzB,SAASC,OAAA,QAAe;AACxB,SAASC,WAAA,EAAaC,SAAA,QAAiB;AACvC,SAASC,UAAA,EAAYC,WAAA,QAAmB;AAExC,IAAAC,oBAAM,YAAAA,CAAwBC,SAAsB;IAClD,QACE;MACAC,MAAA,EAAS;MACTC,OAAA,EAAUF,SAAA;MACZG,QAAA;IACA,GACE;MACAF,MAAA,EAAS;MACTC,OAAA,EAAUF,SAAA;MACZG,QAAA;IAGI,EAKF;EAAO;EAAAC,aACK,GAAAd,kBAAA,GAAAe,WAAA,CAAAZ,QAAA,EAAAa,YAAA,CAAAV,SAAA,EAAAW,QAAA,CAAAf,KAAA,EAAAgB,SAAA;IAAAC,KACV;MACAN,QAAA;MAAoBD,OACf;MAAAQ,kBACQ;QACb,GAAAZ,WAAA;QACF,GAAAJ,OAAA,CAAAe;MACA;IAAM;IACME,IACV;MACAR,QAAA;MAAoBD,OACf;MAAAQ,kBACQ;QACb,GAAAb,UAAA;QACF,GAAAH,OAAA,CAAAiB;MAED;IACC;EAAqC,EACrC,CAAAC,cAAQ;IACRC,MAAA,EAAOd,oBAAqB,SAAO;IACnCe,MAAM,EAAAf,oBAAqB,SAAM;IACjCgB,KAAA,EAAAhB,oBAAQ,QAAqB;IAC7BiB,IAAA,EAAMjB,oBAAA,CAAqB,MAAM;IACjCkB,MAAK,EAAAlB,oBAAqB,SAAK;IAChCmB,IACA,EAAAnB,oBAAe;IACdoB,GAAA,EAAApB,oBAAM;EAAA,GAAAa,cACE;IAAAQ,IACN,EAAG;MACLC,IAAA;MACA,GAAA1B,WAAM,CAAA2B;IAAA;IACEC,IACN,EAAG;MACLF,IAAA;MACA,GAAA1B,WAAQ,CAAA2B;IAAA;IACAE,MACN,EAAM;MAAAH,IACJ,WAAO;MACTI,IAAA;QACFC,KAAA;MAED;IAA0C;EAAA,GAAAd,cAAA,CAAArB,yBAAA;EAAAoC,MAAA,GAAAvB,aAAA,CAAAwB,KAAA;AAG3C,S","ignoreList":[]}
|
|
@@ -1,92 +1,5 @@
|
|
|
1
1
|
import { addChildren, applyMask, createStrengthenMask, createTheme, createWeakenMask, skipMask } from "@tamagui/create-theme";
|
|
2
2
|
import { colorTokens, darkColors, lightColors } from "./tokens";
|
|
3
|
-
function _array_like_to_array(arr, len) {
|
|
4
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
5
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
6
|
-
return arr2;
|
|
7
|
-
}
|
|
8
|
-
function _array_with_holes(arr) {
|
|
9
|
-
if (Array.isArray(arr)) return arr;
|
|
10
|
-
}
|
|
11
|
-
function _array_without_holes(arr) {
|
|
12
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
13
|
-
}
|
|
14
|
-
function _define_property(obj, key, value) {
|
|
15
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
16
|
-
value,
|
|
17
|
-
enumerable: !0,
|
|
18
|
-
configurable: !0,
|
|
19
|
-
writable: !0
|
|
20
|
-
}) : obj[key] = value, obj;
|
|
21
|
-
}
|
|
22
|
-
function _iterable_to_array(iter) {
|
|
23
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
24
|
-
}
|
|
25
|
-
function _iterable_to_array_limit(arr, i) {
|
|
26
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
27
|
-
if (_i != null) {
|
|
28
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
29
|
-
try {
|
|
30
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
31
|
-
;
|
|
32
|
-
} catch (err) {
|
|
33
|
-
_d = !0, _e = err;
|
|
34
|
-
} finally {
|
|
35
|
-
try {
|
|
36
|
-
!_n && _i.return != null && _i.return();
|
|
37
|
-
} finally {
|
|
38
|
-
if (_d) throw _e;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return _arr;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function _non_iterable_rest() {
|
|
45
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
46
|
-
}
|
|
47
|
-
function _non_iterable_spread() {
|
|
48
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
49
|
-
}
|
|
50
|
-
function _object_spread(target) {
|
|
51
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
52
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
53
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
54
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
55
|
-
}))), ownKeys2.forEach(function(key) {
|
|
56
|
-
_define_property(target, key, source[key]);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
return target;
|
|
60
|
-
}
|
|
61
|
-
function ownKeys(object, enumerableOnly) {
|
|
62
|
-
var keys = Object.keys(object);
|
|
63
|
-
if (Object.getOwnPropertySymbols) {
|
|
64
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
65
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
66
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
67
|
-
})), keys.push.apply(keys, symbols);
|
|
68
|
-
}
|
|
69
|
-
return keys;
|
|
70
|
-
}
|
|
71
|
-
function _object_spread_props(target, source) {
|
|
72
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
73
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
74
|
-
}), target;
|
|
75
|
-
}
|
|
76
|
-
function _sliced_to_array(arr, i) {
|
|
77
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
78
|
-
}
|
|
79
|
-
function _to_consumable_array(arr) {
|
|
80
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
81
|
-
}
|
|
82
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
83
|
-
if (o) {
|
|
84
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
85
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
86
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
87
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
3
|
var lightTransparent = "rgba(255,255,255,0)", darkTransparent = "rgba(10,10,10,0)", palettes = {
|
|
91
4
|
dark: [
|
|
92
5
|
darkTransparent,
|
|
@@ -138,24 +51,29 @@ var lightTransparent = "rgba(255,255,255,0)", darkTransparent = "rgba(10,10,10,0
|
|
|
138
51
|
shadowColorHover: 1,
|
|
139
52
|
shadowColorPress: 2,
|
|
140
53
|
shadowColorFocus: 2
|
|
141
|
-
}, toSkip =
|
|
142
|
-
|
|
54
|
+
}, toSkip = {
|
|
55
|
+
...templateShadows
|
|
56
|
+
}, override = Object.fromEntries(Object.entries(toSkip).map(function(param) {
|
|
57
|
+
var [k] = param;
|
|
143
58
|
return [
|
|
144
59
|
k,
|
|
145
60
|
0
|
|
146
61
|
];
|
|
147
62
|
})), overrideShadows = Object.fromEntries(Object.entries(templateShadows).map(function(param) {
|
|
148
|
-
var
|
|
63
|
+
var [k] = param;
|
|
149
64
|
return [
|
|
150
65
|
k,
|
|
151
66
|
0
|
|
152
67
|
];
|
|
153
|
-
})), overrideWithColors =
|
|
68
|
+
})), overrideWithColors = {
|
|
69
|
+
...override,
|
|
154
70
|
color: 0,
|
|
155
71
|
colorHover: 0,
|
|
156
72
|
colorFocus: 0,
|
|
157
73
|
colorPress: 0
|
|
158
|
-
}
|
|
74
|
+
}, template = {
|
|
75
|
+
...templateColors,
|
|
76
|
+
...toSkip,
|
|
159
77
|
// the background, color, etc keys here work like generics - they make it so you
|
|
160
78
|
// can publish components for others to use without mandating a specific color scale
|
|
161
79
|
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
@@ -176,7 +94,7 @@ var lightTransparent = "rgba(255,255,255,0)", darkTransparent = "rgba(10,10,10,0
|
|
|
176
94
|
borderColorPress: 3,
|
|
177
95
|
borderColorFocus: 4,
|
|
178
96
|
placeholderColor: -4
|
|
179
|
-
}
|
|
97
|
+
}, lightShadowColor = "rgba(0,0,0,0.02)", lightShadowColorStrong = "rgba(0,0,0,0.066)", darkShadowColor = "rgba(0,0,0,0.2)", darkShadowColorStrong = "rgba(0,0,0,0.3)", lightShadows = {
|
|
180
98
|
shadowColor: lightShadowColorStrong,
|
|
181
99
|
shadowColorHover: lightShadowColorStrong,
|
|
182
100
|
shadowColorPress: lightShadowColor,
|
|
@@ -186,7 +104,8 @@ var lightTransparent = "rgba(255,255,255,0)", darkTransparent = "rgba(10,10,10,0
|
|
|
186
104
|
shadowColorHover: darkShadowColorStrong,
|
|
187
105
|
shadowColorPress: darkShadowColor,
|
|
188
106
|
shadowColorFocus: darkShadowColor
|
|
189
|
-
}, lightTemplate =
|
|
107
|
+
}, lightTemplate = {
|
|
108
|
+
...template,
|
|
190
109
|
background: 2,
|
|
191
110
|
backgroundHover: 3,
|
|
192
111
|
backgroundPress: 4,
|
|
@@ -194,8 +113,12 @@ var lightTransparent = "rgba(255,255,255,0)", darkTransparent = "rgba(10,10,10,0
|
|
|
194
113
|
borderColor: 6,
|
|
195
114
|
borderColorHover: 7,
|
|
196
115
|
borderColorFocus: 5,
|
|
197
|
-
borderColorPress: 6
|
|
198
|
-
|
|
116
|
+
borderColorPress: 6,
|
|
117
|
+
...lightShadows
|
|
118
|
+
}, darkTemplate = {
|
|
119
|
+
...template,
|
|
120
|
+
...darkShadows
|
|
121
|
+
}, light = createTheme(palettes.light, lightTemplate), dark = createTheme(palettes.dark, darkTemplate), baseThemes = {
|
|
199
122
|
light,
|
|
200
123
|
dark
|
|
201
124
|
}, masks = {
|
|
@@ -210,58 +133,72 @@ var lightTransparent = "rgba(255,255,255,0)", darkTransparent = "rgba(10,10,10,0
|
|
|
210
133
|
min: 1
|
|
211
134
|
}, transparent = function(hsl) {
|
|
212
135
|
var opacity = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
213
|
-
return hsl.replace("%)",
|
|
214
|
-
},
|
|
136
|
+
return hsl.replace("%)", `%, ${opacity})`).replace("hsl(", "hsla(");
|
|
137
|
+
}, [lightColorThemes, darkColorThemes] = [
|
|
215
138
|
colorTokens.light,
|
|
216
139
|
colorTokens.dark
|
|
217
140
|
].map(function(colorSet, i) {
|
|
218
141
|
var isLight = i === 0, theme = baseThemes[isLight ? "light" : "dark"];
|
|
219
142
|
return Object.fromEntries(Object.keys(colorSet).map(function(color) {
|
|
220
|
-
var colorPalette = Object.values(colorSet[color]),
|
|
143
|
+
var colorPalette = Object.values(colorSet[color]), [head, tail] = [
|
|
221
144
|
colorPalette.slice(0, 6),
|
|
222
145
|
colorPalette.slice(colorPalette.length - 5)
|
|
223
|
-
],
|
|
224
|
-
transparent(colorPalette[0])
|
|
225
|
-
|
|
146
|
+
], palette = [
|
|
147
|
+
transparent(colorPalette[0]),
|
|
148
|
+
...head,
|
|
149
|
+
...tail,
|
|
226
150
|
theme.color,
|
|
227
151
|
transparent(colorPalette[colorPalette.length - 1])
|
|
228
|
-
]
|
|
152
|
+
], colorTheme = createTheme(palette, isLight ? {
|
|
153
|
+
...lightTemplate,
|
|
229
154
|
// light color themes are a bit less sensitive
|
|
230
155
|
borderColor: 4,
|
|
231
156
|
borderColorHover: 5,
|
|
232
157
|
borderColorFocus: 4,
|
|
233
158
|
borderColorPress: 4
|
|
234
|
-
}
|
|
159
|
+
} : darkTemplate);
|
|
235
160
|
return [
|
|
236
161
|
color,
|
|
237
162
|
colorTheme
|
|
238
163
|
];
|
|
239
164
|
}));
|
|
240
|
-
}),
|
|
165
|
+
}), allThemes = addChildren(baseThemes, function(name, theme) {
|
|
241
166
|
var isLight = name === "light", inverseName = isLight ? "dark" : "light", inverseTheme = baseThemes[inverseName], colorThemes = isLight ? lightColorThemes : darkColorThemes, inverseColorThemes = isLight ? darkColorThemes : lightColorThemes, allColorThemes = addChildren(colorThemes, function(colorName, colorTheme) {
|
|
242
167
|
var inverse = inverseColorThemes[colorName];
|
|
243
|
-
return
|
|
244
|
-
|
|
245
|
-
|
|
168
|
+
return {
|
|
169
|
+
...getAltThemes({
|
|
170
|
+
theme: colorTheme,
|
|
171
|
+
inverse,
|
|
172
|
+
isLight
|
|
173
|
+
}),
|
|
174
|
+
...getComponentThemes(colorTheme, inverse, isLight)
|
|
175
|
+
};
|
|
176
|
+
}), baseSubThemes = {
|
|
177
|
+
...getAltThemes({
|
|
178
|
+
theme,
|
|
179
|
+
inverse: inverseTheme,
|
|
246
180
|
isLight
|
|
247
|
-
}),
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
181
|
+
}),
|
|
182
|
+
...getComponentThemes(theme, inverseTheme, isLight)
|
|
183
|
+
};
|
|
184
|
+
return {
|
|
185
|
+
...baseSubThemes,
|
|
186
|
+
...allColorThemes
|
|
187
|
+
};
|
|
254
188
|
});
|
|
255
189
|
function getAltThemes(param) {
|
|
256
|
-
var
|
|
190
|
+
var { theme, inverse, isLight, activeTheme } = param, maskOptionsAlt = {
|
|
191
|
+
...maskOptions,
|
|
257
192
|
override: overrideShadows
|
|
258
|
-
}
|
|
259
|
-
return applyMask(theme, masks.weaker,
|
|
193
|
+
}, alt1 = applyMask(theme, masks.weaker, maskOptionsAlt), alt2 = applyMask(alt1, masks.weaker, maskOptionsAlt), active = activeTheme ?? (process.env.ACTIVE_THEME_INVERSE ? inverse : function() {
|
|
194
|
+
return applyMask(theme, masks.weaker, {
|
|
195
|
+
...maskOptions,
|
|
260
196
|
strength: 3,
|
|
261
|
-
skip:
|
|
197
|
+
skip: {
|
|
198
|
+
...maskOptions.skip,
|
|
262
199
|
color: 1
|
|
263
|
-
}
|
|
264
|
-
})
|
|
200
|
+
}
|
|
201
|
+
});
|
|
265
202
|
}());
|
|
266
203
|
return addChildren({
|
|
267
204
|
alt1,
|
|
@@ -272,30 +209,33 @@ function getAltThemes(param) {
|
|
|
272
209
|
});
|
|
273
210
|
}
|
|
274
211
|
function getComponentThemes(theme, inverse, isLight) {
|
|
275
|
-
var componentMaskOptions =
|
|
212
|
+
var componentMaskOptions = {
|
|
213
|
+
...maskOptions,
|
|
276
214
|
override: overrideWithColors,
|
|
277
|
-
skip:
|
|
278
|
-
|
|
279
|
-
maskOptions.skip,
|
|
215
|
+
skip: {
|
|
216
|
+
...maskOptions.skip,
|
|
280
217
|
// skip colors too just for component sub themes
|
|
281
|
-
templateColors
|
|
282
|
-
|
|
283
|
-
}
|
|
218
|
+
...templateColors
|
|
219
|
+
}
|
|
220
|
+
}, weaker1 = applyMask(theme, masks.weaker, componentMaskOptions), base = applyMask(weaker1, masks.stronger, componentMaskOptions), weaker2 = applyMask(weaker1, masks.weaker, componentMaskOptions), stronger1 = applyMask(theme, masks.stronger, componentMaskOptions), inverse1 = applyMask(inverse, masks.weaker, componentMaskOptions), inverse2 = applyMask(inverse1, masks.weaker, componentMaskOptions), strongerBorderLighterBackground = isLight ? {
|
|
221
|
+
...stronger1,
|
|
284
222
|
borderColor: weaker1.borderColor,
|
|
285
223
|
borderColorHover: weaker1.borderColorHover,
|
|
286
224
|
borderColorPress: weaker1.borderColorPress,
|
|
287
225
|
borderColorFocus: weaker1.borderColorFocus
|
|
288
|
-
}
|
|
226
|
+
} : {
|
|
227
|
+
...applyMask(theme, masks.skip, componentMaskOptions),
|
|
289
228
|
borderColor: weaker1.borderColor,
|
|
290
229
|
borderColorHover: weaker1.borderColorHover,
|
|
291
230
|
borderColorPress: weaker1.borderColorPress,
|
|
292
231
|
borderColorFocus: weaker1.borderColorFocus
|
|
293
|
-
}
|
|
232
|
+
}, overlayTheme = {
|
|
294
233
|
background: isLight ? "rgba(0,0,0,0.5)" : "rgba(0,0,0,0.9)"
|
|
295
|
-
}, weaker2WithoutBorder =
|
|
234
|
+
}, weaker2WithoutBorder = {
|
|
235
|
+
...weaker2,
|
|
296
236
|
borderColor: "transparent",
|
|
297
237
|
borderColorHover: "transparent"
|
|
298
|
-
}
|
|
238
|
+
};
|
|
299
239
|
return {
|
|
300
240
|
ListItem: isLight ? stronger1 : base,
|
|
301
241
|
Card: weaker1,
|
|
@@ -320,7 +260,8 @@ function getComponentThemes(theme, inverse, isLight) {
|
|
|
320
260
|
ModalOverlay: overlayTheme
|
|
321
261
|
};
|
|
322
262
|
}
|
|
323
|
-
var themes =
|
|
263
|
+
var themes = {
|
|
264
|
+
...allThemes,
|
|
324
265
|
// bring back the full type, the rest use a subset to avoid clogging up ts,
|
|
325
266
|
// tamagui will be smart and use the top level themes as the type for useTheme() etc
|
|
326
267
|
light: createTheme(palettes.light, lightTemplate, {
|
|
@@ -329,7 +270,7 @@ var themes = _object_spread_props(_object_spread({}, allThemes), {
|
|
|
329
270
|
dark: createTheme(palettes.dark, darkTemplate, {
|
|
330
271
|
nonInheritedValues: darkColors
|
|
331
272
|
})
|
|
332
|
-
}
|
|
273
|
+
};
|
|
333
274
|
export {
|
|
334
275
|
themes
|
|
335
276
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/themes/src/themes-old.tsx"],
|
|
4
|
-
"mappings": "AACA,SACEA,aACAC,WACAC,sBACAC,aACAC,kBACAC,gBACK;AAEP,SAASC,aAAaC,YAAYC,mBAAmB
|
|
5
|
-
"names": ["addChildren", "applyMask", "createStrengthenMask", "createTheme", "createWeakenMask", "skipMask", "colorTokens", "darkColors", "lightColors", "lightTransparent", "darkTransparent", "palettes", "dark", "light", "templateColors", "color1", "color2", "color3", "color4", "color5", "color6", "color7", "color8", "color9", "color10", "color11", "color12", "templateShadows", "shadowColor", "shadowColorHover", "shadowColorPress", "shadowColorFocus", "toSkip", "override", "Object", "fromEntries", "entries", "map", "k", "overrideShadows", "overrideWithColors", "color", "colorHover", "colorFocus", "colorPress", "template", "background", "backgroundHover", "backgroundPress", "backgroundFocus", "backgroundStrong", "backgroundTransparent", "colorTransparent", "borderColor", "borderColorHover", "borderColorPress", "borderColorFocus", "placeholderColor", "lightShadowColor", "lightShadowColorStrong", "darkShadowColor", "darkShadowColorStrong", "lightShadows", "darkShadows", "lightTemplate", "darkTemplate", "baseThemes", "masks", "skip", "weaker", "stronger", "maskOptions", "max", "length", "min", "transparent", "hsl", "opacity", "replace", "colorSet", "i", "isLight", "theme", "keys", "colorPalette", "values", "
|
|
4
|
+
"mappings": "AACA,SACEA,aACAC,WACAC,sBACAC,aACAC,kBACAC,gBACK;AAEP,SAASC,aAAaC,YAAYC,mBAAmB;AAIrD,IAAMC,mBAAmB,uBACnBC,kBAAkB,oBAGlBC,WAAW;EACfC,MAAM;IACJF;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACAD;;EAEFI,OAAO;IACLJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACAC;;AAEJ,GAEMI,iBAAiB;EACrBC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,SAAS;EACTC,SAAS;EACTC,SAAS;AACX,GAEMC,kBAAkB;EACtBC,aAAa;EACbC,kBAAkB;EAClBC,kBAAkB;EAClBC,kBAAkB;AACpB,GAIMC,SAAS;EACb,GAAGL;AACL,GAEMM,WAAWC,OAAOC,YAAYD,OAAOE,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F,oBAAoB5I;EAAW,CAAA;AAClF;",
|
|
5
|
+
"names": ["addChildren", "applyMask", "createStrengthenMask", "createTheme", "createWeakenMask", "skipMask", "colorTokens", "darkColors", "lightColors", "lightTransparent", "darkTransparent", "palettes", "dark", "light", "templateColors", "color1", "color2", "color3", "color4", "color5", "color6", "color7", "color8", "color9", "color10", "color11", "color12", "templateShadows", "shadowColor", "shadowColorHover", "shadowColorPress", "shadowColorFocus", "toSkip", "override", "Object", "fromEntries", "entries", "map", "k", "overrideShadows", "overrideWithColors", "color", "colorHover", "colorFocus", "colorPress", "template", "background", "backgroundHover", "backgroundPress", "backgroundFocus", "backgroundStrong", "backgroundTransparent", "colorTransparent", "borderColor", "borderColorHover", "borderColorPress", "borderColorFocus", "placeholderColor", "lightShadowColor", "lightShadowColorStrong", "darkShadowColor", "darkShadowColorStrong", "lightShadows", "darkShadows", "lightTemplate", "darkTemplate", "baseThemes", "masks", "skip", "weaker", "stronger", "maskOptions", "max", "length", "min", "transparent", "hsl", "opacity", "replace", "lightColorThemes", "darkColorThemes", "colorSet", "i", "isLight", "theme", "keys", "colorPalette", "values", "head", "tail", "slice", "palette", "colorTheme", "allThemes", "name", "inverseName", "inverseTheme", "colorThemes", "inverseColorThemes", "allColorThemes", "colorName", "inverse", "getAltThemes", "getComponentThemes", "baseSubThemes", "activeTheme", "maskOptionsAlt", "alt1", "alt2", "active", "process", "env", "ACTIVE_THEME_INVERSE", "strength", "_", "subTheme", "componentMaskOptions", "weaker1", "base", "weaker2", "stronger1", "inverse1", "inverse2", "strongerBorderLighterBackground", "overlayTheme", "weaker2WithoutBorder", "ListItem", "Card", "Button", "Checkbox", "DrawerFrame", "SliderTrack", "SliderTrackActive", "SliderThumb", "Progress", "ProgressIndicator", "Switch", "SwitchThumb", "TooltipArrow", "TooltipContent", "Input", "TextArea", "Tooltip", "SheetOverlay", "DialogOverlay", "ModalOverlay", "themes", "nonInheritedValues"]
|
|
6
6
|
}
|