@tamagui/theme-builder 1.79.1 → 1.79.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/theme-builder",
3
- "version": "1.79.1",
3
+ "version": "1.79.3",
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.79.1"
30
+ "@tamagui/create-theme": "1.79.3"
31
31
  },
32
32
  "devDependencies": {
33
- "@tamagui/build": "1.79.1"
33
+ "@tamagui/build": "1.79.3"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
package/src/types.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  // only used by the studio theme builder generated:
2
2
 
3
+ import { Template } from '@tamagui/create-theme'
4
+
3
5
  export type BuildThemeSuiteProps = {
4
6
  baseTheme: BuildTheme
5
7
  subThemes?: (BuildTheme | BuildThemeMask)[]
@@ -27,12 +29,14 @@ export type BuildTheme = BuildThemeBase & {
27
29
  type: 'theme'
28
30
  color: string
29
31
  scale: ScaleTypeName
30
- // saturation?: 'low' | 'x' | 'high'
31
- contrast?: string
32
- contrastColor?: string
33
- contrastScale?: ScaleTypeName
32
+ scaleContrast?: number
33
+ template?: Template
34
+ accent?: string
35
+ accentColor?: string
36
+ accentScale?: ScaleTypeName
34
37
  }
35
38
 
39
+ // TODO type here isnt the same as type in BuildTheme
36
40
  export type BuildMask = { id: string } & (
37
41
  | {
38
42
  type: 'strengthen'
package/types/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Template } from '@tamagui/create-theme';
1
2
  export type BuildThemeSuiteProps = {
2
3
  baseTheme: BuildTheme;
3
4
  subThemes?: (BuildTheme | BuildThemeMask)[];
@@ -12,9 +13,11 @@ export type BuildTheme = BuildThemeBase & {
12
13
  type: 'theme';
13
14
  color: string;
14
15
  scale: ScaleTypeName;
15
- contrast?: string;
16
- contrastColor?: string;
17
- contrastScale?: ScaleTypeName;
16
+ scaleContrast?: number;
17
+ template?: Template;
18
+ accent?: string;
19
+ accentColor?: string;
20
+ accentScale?: ScaleTypeName;
18
21
  };
19
22
  export type BuildMask = {
20
23
  id: string;
@@ -1 +1 @@
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,MAAM,aAAa,GACrB,OAAO,GACP,SAAS,GACT,aAAa,GACb,eAAe,GACf,QAAQ,GACR,QAAQ,GACR,qBAAqB,GACrB,MAAM,GACN,aAAa,GACb,QAAQ,CAAA;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG;IACxC,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,aAAa,CAAA;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,CACrC;IACE,IAAI,EAAE,YAAY,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CACjB,GACD;IACE,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB,GACD;IACE,IAAI,EAAE,SAAS,CA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