@tamagui/themes 1.49.8 → 1.49.9
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/templates.js
CHANGED
|
@@ -24,7 +24,7 @@ __export(templates_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(templates_exports);
|
|
25
25
|
var import_palettes = require("./palettes");
|
|
26
26
|
const { templates, maskOptions } = (() => {
|
|
27
|
-
const
|
|
27
|
+
const templateColorsSpecific = {
|
|
28
28
|
color1: 1,
|
|
29
29
|
color2: 2,
|
|
30
30
|
color3: 3,
|
|
@@ -39,7 +39,7 @@ const { templates, maskOptions } = (() => {
|
|
|
39
39
|
color12: 12
|
|
40
40
|
};
|
|
41
41
|
const template = {
|
|
42
|
-
...
|
|
42
|
+
...templateColorsSpecific,
|
|
43
43
|
// the background, color, etc keys here work like generics - they make it so you
|
|
44
44
|
// can publish components for others to use without mandating a specific color scale
|
|
45
45
|
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
@@ -92,15 +92,15 @@ const { templates, maskOptions } = (() => {
|
|
|
92
92
|
max: import_palettes.palettes.light.length - 2,
|
|
93
93
|
min: 1
|
|
94
94
|
};
|
|
95
|
-
const
|
|
95
|
+
const skipShadowsAndSpecificColors = {
|
|
96
96
|
...overrideShadows,
|
|
97
|
-
...
|
|
97
|
+
...templateColorsSpecific
|
|
98
98
|
};
|
|
99
99
|
const maskOptions2 = {
|
|
100
100
|
component: {
|
|
101
101
|
...baseMaskOptions,
|
|
102
102
|
override: overrideWithColors,
|
|
103
|
-
skip:
|
|
103
|
+
skip: skipShadowsAndSpecificColors
|
|
104
104
|
},
|
|
105
105
|
alt: {
|
|
106
106
|
...baseMaskOptions
|
|
@@ -112,7 +112,7 @@ const { templates, maskOptions } = (() => {
|
|
|
112
112
|
borderColor: "transparent",
|
|
113
113
|
borderColorHover: "transparent"
|
|
114
114
|
},
|
|
115
|
-
skip:
|
|
115
|
+
skip: skipShadowsAndSpecific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;AAEA,QAAM,kBAAkB;AAAA,IACtB,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,EACpB;AAEA,QAAM,qBAAqB;AAAA,IACzB,GAAG;AAAA,IACH,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,EACd;AAEA,QAAM,kBAA+B;AAAA,IACnC,UAAU;AAAA,IACV,MAAM;AAAA;AAAA,IAEN,KAAK,yBAAS,MAAM,SAAS;AAAA,IAC7B,KAAK;AAAA,EACP;AAEA,QAAM,+BAA+B;AAAA,IACnC,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAEA,QAAMC,eAAc;AAAA,IAClB,WAAW;AAAA,MACT,GAAG;AAAA,MACH,UAAU;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,KAAK;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,MACH,UAAU;AAAA,QACR,GAAG;AAAA,QACH,aAAa;AAAA,QACb,kBAAkB;AAAA,MACpB;AAAA,MACA,MAAM;AAAA,IACR;AAAA,EACF;AAEA,SAAO;AAAA,IACL,WAAAD;AAAA,IACA,aAAAC;AAAA,EACF;AACF,GAAG;",
|
|
5
5
|
"names": ["templates", "maskOptions"]
|
|
6
6
|
}
|
package/dist/esm/templates.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { palettes } from "./palettes";
|
|
2
2
|
const { templates, maskOptions } = (() => {
|
|
3
|
-
const
|
|
3
|
+
const templateColorsSpecific = {
|
|
4
4
|
color1: 1,
|
|
5
5
|
color2: 2,
|
|
6
6
|
color3: 3,
|
|
@@ -15,7 +15,7 @@ const { templates, maskOptions } = (() => {
|
|
|
15
15
|
color12: 12
|
|
16
16
|
};
|
|
17
17
|
const template = {
|
|
18
|
-
...
|
|
18
|
+
...templateColorsSpecific,
|
|
19
19
|
// the background, color, etc keys here work like generics - they make it so you
|
|
20
20
|
// can publish components for others to use without mandating a specific color scale
|
|
21
21
|
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
@@ -68,15 +68,15 @@ const { templates, maskOptions } = (() => {
|
|
|
68
68
|
max: palettes.light.length - 2,
|
|
69
69
|
min: 1
|
|
70
70
|
};
|
|
71
|
-
const
|
|
71
|
+
const skipShadowsAndSpecificColors = {
|
|
72
72
|
...overrideShadows,
|
|
73
|
-
...
|
|
73
|
+
...templateColorsSpecific
|
|
74
74
|
};
|
|
75
75
|
const maskOptions2 = {
|
|
76
76
|
component: {
|
|
77
77
|
...baseMaskOptions,
|
|
78
78
|
override: overrideWithColors,
|
|
79
|
-
skip:
|
|
79
|
+
skip: skipShadowsAndSpecificColors
|
|
80
80
|
},
|
|
81
81
|
alt: {
|
|
82
82
|
...baseMaskOptions
|
|
@@ -88,7 +88,7 @@ const { templates, maskOptions } = (() => {
|
|
|
88
88
|
borderColor: "transparent",
|
|
89
89
|
borderColorHover: "transparent"
|
|
90
90
|
},
|
|
91
|
-
skip:
|
|
91
|
+
skip: skipShadowsAndSpecificColors
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/templates.tsx"],
|
|
4
|
-
"mappings": "AAEA,SAAS,gBAAgB;AAElB,MAAM,EAAE,WAAW,YAAY,KAAK,MAAM;AAC/C,QAAM,
|
|
4
|
+
"mappings": "AAEA,SAAS,gBAAgB;AAElB,MAAM,EAAE,WAAW,YAAY,KAAK,MAAM;AAC/C,QAAM,yBAAyB;AAAA,IAC7B,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SA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QACb,kBAAkB;AAAA,MACpB;AAAA,MACA,MAAM;AAAA,IACR;AAAA,EACF;AAEA,SAAO;AAAA,IACL,WAAAD;AAAA,IACA,aAAAC;AAAA,EACF;AACF,GAAG;",
|
|
5
5
|
"names": ["templates", "maskOptions"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/themes",
|
|
3
|
-
"version": "1.49.
|
|
3
|
+
"version": "1.49.9",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tamagui/colors": "1.49.
|
|
33
|
-
"@tamagui/create-theme": "1.49.
|
|
34
|
-
"@tamagui/web": "1.49.
|
|
32
|
+
"@tamagui/colors": "1.49.9",
|
|
33
|
+
"@tamagui/create-theme": "1.49.9",
|
|
34
|
+
"@tamagui/web": "1.49.9"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@tamagui/build": "1.49.
|
|
38
|
-
"@tamagui/cli": "1.49.
|
|
37
|
+
"@tamagui/build": "1.49.9",
|
|
38
|
+
"@tamagui/cli": "1.49.9",
|
|
39
39
|
"vitest": "^0.26.3"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
package/src/templates.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import { MaskOptions } from '@tamagui/create-theme'
|
|
|
3
3
|
import { palettes } from './palettes'
|
|
4
4
|
|
|
5
5
|
export const { templates, maskOptions } = (() => {
|
|
6
|
-
const
|
|
6
|
+
const templateColorsSpecific = {
|
|
7
7
|
color1: 1,
|
|
8
8
|
color2: 2,
|
|
9
9
|
color3: 3,
|
|
@@ -21,7 +21,7 @@ export const { templates, maskOptions } = (() => {
|
|
|
21
21
|
// templates use the palette and specify index
|
|
22
22
|
// negative goes backwards from end so -1 is the last item
|
|
23
23
|
const template = {
|
|
24
|
-
...
|
|
24
|
+
...templateColorsSpecific,
|
|
25
25
|
// the background, color, etc keys here work like generics - they make it so you
|
|
26
26
|
// can publish components for others to use without mandating a specific color scale
|
|
27
27
|
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
@@ -79,16 +79,16 @@ export const { templates, maskOptions } = (() => {
|
|
|
79
79
|
min: 1,
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
const
|
|
82
|
+
const skipShadowsAndSpecificColors = {
|
|
83
83
|
...overrideShadows,
|
|
84
|
-
...
|
|
84
|
+
...templateColorsSpecific,
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
const maskOptions = {
|
|
88
88
|
component: {
|
|
89
89
|
...baseMaskOptions,
|
|
90
90
|
override: overrideWithColors,
|
|
91
|
-
skip:
|
|
91
|
+
skip: skipShadowsAndSpecificColors,
|
|
92
92
|
},
|
|
93
93
|
alt: {
|
|
94
94
|
...baseMaskOptions,
|
|
@@ -100,7 +100,7 @@ export const { templates, maskOptions } = (() => {
|
|
|
100
100
|
borderColor: 'transparent',
|
|
101
101
|
borderColorHover: 'transparent',
|
|
102
102
|
},
|
|
103
|
-
skip:
|
|
103
|
+
skip: skipShadowsAndSpecificColors,
|
|
104
104
|
},
|
|
105
105
|
} satisfies Record<string, MaskOptions>
|
|
106
106
|
|