@tamagui/theme-builder 1.77.1 → 1.79.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/package.json +3 -3
- package/src/types.ts +11 -20
- package/types/types.d.ts +10 -18
- package/types/types.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/theme-builder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.79.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/create-theme": "1.
|
|
30
|
+
"@tamagui/create-theme": "1.79.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tamagui/build": "1.
|
|
33
|
+
"@tamagui/build": "1.79.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
package/src/types.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// only used by the studio theme builder generated:
|
|
2
2
|
|
|
3
3
|
export type BuildThemeSuiteProps = {
|
|
4
|
-
baseTheme:
|
|
5
|
-
subThemes?: (
|
|
4
|
+
baseTheme: BuildTheme
|
|
5
|
+
subThemes?: (BuildTheme | BuildThemeMask)[]
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export type ScaleTypeName =
|
|
@@ -17,25 +17,20 @@ export type ScaleTypeName =
|
|
|
17
17
|
| 'neon-bright'
|
|
18
18
|
| 'neon-c'
|
|
19
19
|
|
|
20
|
-
export type
|
|
20
|
+
export type BuildThemeBase = {
|
|
21
21
|
id: string
|
|
22
|
+
name: string
|
|
23
|
+
errors?: string[]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type BuildTheme = BuildThemeBase & {
|
|
27
|
+
type: 'theme'
|
|
22
28
|
color: string
|
|
23
29
|
scale: ScaleTypeName
|
|
24
30
|
// saturation?: 'low' | 'x' | 'high'
|
|
25
31
|
contrast?: string
|
|
26
32
|
contrastColor?: string
|
|
27
33
|
contrastScale?: ScaleTypeName
|
|
28
|
-
errors?: string[]
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type BuildLightDarkTheme = BuildThemeBasicProperties & {
|
|
32
|
-
type: 'lightdark'
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type BuildColorSubTheme = BuildThemeBasicProperties & {
|
|
36
|
-
type: 'base'
|
|
37
|
-
subThemeType: 'color'
|
|
38
|
-
name: string
|
|
39
34
|
}
|
|
40
35
|
|
|
41
36
|
export type BuildMask = { id: string } & (
|
|
@@ -60,11 +55,7 @@ export type BuildMask = { id: string } & (
|
|
|
60
55
|
}
|
|
61
56
|
)
|
|
62
57
|
|
|
63
|
-
export type
|
|
64
|
-
|
|
65
|
-
type: 'sub'
|
|
66
|
-
subThemeType: 'mask'
|
|
67
|
-
name: string
|
|
58
|
+
export type BuildThemeMask = BuildThemeBase & {
|
|
59
|
+
type: 'mask'
|
|
68
60
|
masks: BuildMask[]
|
|
69
|
-
errors?: string[]
|
|
70
61
|
}
|
package/types/types.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
export type BuildThemeSuiteProps = {
|
|
2
|
-
baseTheme:
|
|
3
|
-
subThemes?: (
|
|
2
|
+
baseTheme: BuildTheme;
|
|
3
|
+
subThemes?: (BuildTheme | BuildThemeMask)[];
|
|
4
4
|
};
|
|
5
5
|
export type ScaleTypeName = 'radix' | 'radix-b' | 'radius-bold' | 'radius-bright' | 'linear' | 'pastel' | 'pastel-desaturating' | 'neon' | 'neon-bright' | 'neon-c';
|
|
6
|
-
export type
|
|
6
|
+
export type BuildThemeBase = {
|
|
7
7
|
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
errors?: string[];
|
|
10
|
+
};
|
|
11
|
+
export type BuildTheme = BuildThemeBase & {
|
|
12
|
+
type: 'theme';
|
|
8
13
|
color: string;
|
|
9
14
|
scale: ScaleTypeName;
|
|
10
15
|
contrast?: string;
|
|
11
16
|
contrastColor?: string;
|
|
12
17
|
contrastScale?: ScaleTypeName;
|
|
13
|
-
errors?: string[];
|
|
14
|
-
};
|
|
15
|
-
export type BuildLightDarkTheme = BuildThemeBasicProperties & {
|
|
16
|
-
type: 'lightdark';
|
|
17
|
-
};
|
|
18
|
-
export type BuildColorSubTheme = BuildThemeBasicProperties & {
|
|
19
|
-
type: 'base';
|
|
20
|
-
subThemeType: 'color';
|
|
21
|
-
name: string;
|
|
22
18
|
};
|
|
23
19
|
export type BuildMask = {
|
|
24
20
|
id: string;
|
|
@@ -37,12 +33,8 @@ export type BuildMask = {
|
|
|
37
33
|
type: 'softenBorder';
|
|
38
34
|
strength: number;
|
|
39
35
|
});
|
|
40
|
-
export type
|
|
41
|
-
|
|
42
|
-
type: 'sub';
|
|
43
|
-
subThemeType: 'mask';
|
|
44
|
-
name: string;
|
|
36
|
+
export type BuildThemeMask = BuildThemeBase & {
|
|
37
|
+
type: 'mask';
|
|
45
38
|
masks: BuildMask[];
|
|
46
|
-
errors?: string[];
|
|
47
39
|
};
|
|
48
40
|
//# sourceMappingURL=types.d.ts.map
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,UAAU,CAAA;IACrB,SAAS,CAAC,EAAE,CAAC,UAAU,GAAG,cAAc,CAAC,EAAE,CAAA;CAC5C,CAAA;AAED,MAAM,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