@payfit/unity-themes 3.1.34 → 3.1.36

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.
@@ -0,0 +1,39 @@
1
+ type ColorToken = {
2
+ name: string;
3
+ value?: string;
4
+ $value?: string;
5
+ path?: string[];
6
+ family?: string;
7
+ cssVariable?: string;
8
+ };
9
+ type ReferenceToken = {
10
+ name: string;
11
+ group: string;
12
+ variable: string;
13
+ };
14
+ type ReferenceFile = {
15
+ filename: string;
16
+ content: string;
17
+ };
18
+ type UtilitySection = {
19
+ title: string;
20
+ patterns: string[];
21
+ };
22
+ export declare const generateColorGroupReference: ({ title, storybookTitle, description, tokens, utilitySections, }: {
23
+ title: string;
24
+ storybookTitle: string;
25
+ description: string;
26
+ tokens: ReferenceToken[];
27
+ utilitySections?: UtilitySection[];
28
+ }) => string;
29
+ export declare const generatePrimitiveColorReferenceFiles: (themeTokens: ColorToken[]) => ReferenceFile[];
30
+ export declare const generateSemanticColorReferenceFiles: (themeTokens: ColorToken[]) => ReferenceFile[];
31
+ export declare const generateThemesAgentReferencesReadme: ({ primitiveFiles, semanticFiles, }: {
32
+ primitiveFiles: ReferenceFile[];
33
+ semanticFiles: ReferenceFile[];
34
+ }) => string;
35
+ export declare const generateThemeMcpFiles: (themeTokens: ColorToken[]) => {
36
+ path: string;
37
+ content: string;
38
+ }[];
39
+ export {};
@@ -0,0 +1,40 @@
1
+ type Theme = 'default' | 'compact';
2
+ type TokenReference = {
3
+ path: string;
4
+ name?: string;
5
+ cssVariable?: string;
6
+ };
7
+ export type CatalogToken = {
8
+ name: string;
9
+ sourcePath: string;
10
+ cssVariable: string;
11
+ family: string;
12
+ type: string;
13
+ values: Partial<Record<Theme, {
14
+ resolved: unknown;
15
+ references?: TokenReference[];
16
+ }>>;
17
+ };
18
+ export declare function generateAgentReferences({ projectRoot, }: {
19
+ projectRoot: string;
20
+ }): Promise<{
21
+ files: {
22
+ path: string;
23
+ content: string;
24
+ }[];
25
+ workspaceFiles: {
26
+ path: string;
27
+ content: string;
28
+ }[];
29
+ manifest: {
30
+ id: string;
31
+ title: string;
32
+ description: string;
33
+ format: "json";
34
+ path: "./tokens-catalog.json";
35
+ contentType: "application/json";
36
+ useFor: string[];
37
+ sources: string[];
38
+ }[];
39
+ }>;
40
+ export default generateAgentReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-themes",
3
- "version": "3.1.34",
3
+ "version": "3.1.36",
4
4
  "main": "./dist/esm/index.js",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "style": "./dist/css/unity.css",
@@ -45,6 +45,7 @@
45
45
  "@fontsource/roboto-mono": "5.2.7",
46
46
  "@fontsource/source-serif-4": "5.0.19",
47
47
  "@payfit/hr-app-eslint": "0.0.0-use.local",
48
+ "@payfit/hr-app-oxlint": "0.0.0-use.local",
48
49
  "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
49
50
  "@payfit/storybook-addon-datadog-rum": "0.0.0-use.local",
50
51
  "@payfit/storybook-config": "0.0.0-use.local",