@greensight/gts 1.0.0-alpha.8 → 1.0.0-beta.1

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.
Files changed (86) hide show
  1. package/README.md +55 -28
  2. package/classes/TokenManager/index.d.ts +19 -4
  3. package/classes/TokenManager/index.d.ts.map +1 -1
  4. package/classes/TokenManager/types/ds.d.ts +23 -12
  5. package/classes/TokenManager/types/ds.d.ts.map +1 -1
  6. package/classes/TokenManager/types/figma.d.ts +11 -3
  7. package/classes/TokenManager/types/figma.d.ts.map +1 -1
  8. package/commands/generate/index.d.ts.map +1 -1
  9. package/common/lodash.d.ts +8 -0
  10. package/common/lodash.d.ts.map +1 -0
  11. package/index.cjs +96 -5
  12. package/index.mjs +1039 -493
  13. package/modules/breakpoints/breakpointsFromTokenManager/index.d.ts +2 -0
  14. package/modules/breakpoints/breakpointsFromTokenManager/index.d.ts.map +1 -0
  15. package/modules/breakpoints/breakpointsFromTokenManager/module.d.ts +13 -0
  16. package/modules/breakpoints/breakpointsFromTokenManager/module.d.ts.map +1 -0
  17. package/modules/breakpoints/breakpointsFromTokenManager/utils.d.ts +8 -0
  18. package/modules/breakpoints/breakpointsFromTokenManager/utils.d.ts.map +1 -0
  19. package/modules/breakpoints/index.d.ts +3 -0
  20. package/modules/breakpoints/index.d.ts.map +1 -0
  21. package/modules/breakpoints/types.d.ts +6 -0
  22. package/modules/breakpoints/types.d.ts.map +1 -0
  23. package/modules/breakpoints/utils.d.ts +16 -0
  24. package/modules/breakpoints/utils.d.ts.map +1 -0
  25. package/modules/colors/colorsFromTokenManager/index.d.ts +2 -0
  26. package/modules/colors/colorsFromTokenManager/index.d.ts.map +1 -0
  27. package/modules/colors/{colorsFromTokenManager.d.ts → colorsFromTokenManager/module.d.ts} +4 -7
  28. package/modules/colors/colorsFromTokenManager/module.d.ts.map +1 -0
  29. package/modules/colors/colorsFromTokenManager/utils.d.ts +3 -0
  30. package/modules/colors/colorsFromTokenManager/utils.d.ts.map +1 -0
  31. package/modules/colors/index.d.ts +0 -2
  32. package/modules/colors/index.d.ts.map +1 -1
  33. package/modules/colors/utils.d.ts +8 -33
  34. package/modules/colors/utils.d.ts.map +1 -1
  35. package/modules/container/containerFromTokenManager/index.d.ts +2 -0
  36. package/modules/container/containerFromTokenManager/index.d.ts.map +1 -0
  37. package/modules/container/containerFromTokenManager/module.d.ts +13 -0
  38. package/modules/container/containerFromTokenManager/module.d.ts.map +1 -0
  39. package/modules/container/index.d.ts +3 -0
  40. package/modules/container/index.d.ts.map +1 -0
  41. package/modules/container/types.d.ts +5 -0
  42. package/modules/container/types.d.ts.map +1 -0
  43. package/modules/container/utils.d.ts +12 -0
  44. package/modules/container/utils.d.ts.map +1 -0
  45. package/modules/index.d.ts +5 -0
  46. package/modules/index.d.ts.map +1 -1
  47. package/modules/shadows/index.d.ts +3 -0
  48. package/modules/shadows/index.d.ts.map +1 -0
  49. package/modules/shadows/shadowsFromTokenManager.d.ts +13 -0
  50. package/modules/shadows/shadowsFromTokenManager.d.ts.map +1 -0
  51. package/modules/shadows/types.d.ts +6 -0
  52. package/modules/shadows/types.d.ts.map +1 -0
  53. package/modules/shadows/utils.d.ts +22 -0
  54. package/modules/shadows/utils.d.ts.map +1 -0
  55. package/modules/typography/index.d.ts +2 -0
  56. package/modules/typography/index.d.ts.map +1 -0
  57. package/modules/typography/types.d.ts +10 -0
  58. package/modules/typography/types.d.ts.map +1 -0
  59. package/modules/typography/typographyFromTokenManager/index.d.ts +2 -0
  60. package/modules/typography/typographyFromTokenManager/index.d.ts.map +1 -0
  61. package/modules/typography/typographyFromTokenManager/module.d.ts +19 -0
  62. package/modules/typography/typographyFromTokenManager/module.d.ts.map +1 -0
  63. package/modules/typography/utils.d.ts +56 -0
  64. package/modules/typography/utils.d.ts.map +1 -0
  65. package/modules/utilities/index.d.ts +4 -0
  66. package/modules/utilities/index.d.ts.map +1 -0
  67. package/modules/utilities/types.d.ts +48 -0
  68. package/modules/utilities/types.d.ts.map +1 -0
  69. package/modules/utilities/utilitiesFromTokenManager/index.d.ts +2 -0
  70. package/modules/utilities/utilitiesFromTokenManager/index.d.ts.map +1 -0
  71. package/modules/utilities/utilitiesFromTokenManager/module.d.ts +4 -0
  72. package/modules/utilities/utilitiesFromTokenManager/module.d.ts.map +1 -0
  73. package/modules/utilities/utils.d.ts +80 -0
  74. package/modules/utilities/utils.d.ts.map +1 -0
  75. package/package.json +1 -2
  76. package/temporarilyUnnecessary/colorsFromStyles.d.ts +1 -0
  77. package/temporarilyUnnecessary/colorsFromStyles.d.ts.map +1 -0
  78. package/temporarilyUnnecessary/colorsFromVariables.d.ts +1 -0
  79. package/temporarilyUnnecessary/colorsFromVariables.d.ts.map +1 -0
  80. package/temporarilyUnnecessary/utils.d.ts +1 -0
  81. package/temporarilyUnnecessary/utils.d.ts.map +1 -0
  82. package/modules/colors/colorsFromStyles.d.ts +0 -16
  83. package/modules/colors/colorsFromStyles.d.ts.map +0 -1
  84. package/modules/colors/colorsFromTokenManager.d.ts.map +0 -1
  85. package/modules/colors/colorsFromVariables.d.ts +0 -16
  86. package/modules/colors/colorsFromVariables.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ export * from './module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/breakpoints/breakpointsFromTokenManager/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { IModule } from '../../types';
2
+ export interface IBreakpointsFromTokenManagerInput {
3
+ names?: string[];
4
+ }
5
+ export interface IBreakpointsFromTokenManagerOutput {
6
+ dir: string;
7
+ }
8
+ export interface IBreakpointsFromTokenManagerParams {
9
+ input?: IBreakpointsFromTokenManagerInput;
10
+ output: IBreakpointsFromTokenManagerOutput;
11
+ }
12
+ export declare const breakpointsFromTokenManager: ({ input, output: { dir }, }: IBreakpointsFromTokenManagerParams) => IModule;
13
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/modules/breakpoints/breakpointsFromTokenManager/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C,MAAM,WAAW,iCAAiC;IAC9C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,kCAAkC;IAC/C,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kCAAkC;IAC/C,KAAK,CAAC,EAAE,iCAAiC,CAAC;IAC1C,MAAM,EAAE,kCAAkC,CAAC;CAC9C;AAiCD,eAAO,MAAM,2BAA2B,GAAI,6BAGzC,kCAAkC,KAAG,OAkDtC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { IBreakpointToken } from '../types';
2
+ interface IGenerateFilesParams {
3
+ breakpointTokens: IBreakpointToken[];
4
+ dir: string;
5
+ }
6
+ export declare const generateBreakpointFiles: ({ breakpointTokens, dir }: IGenerateFilesParams) => Promise<void>;
7
+ export {};
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/modules/breakpoints/breakpointsFromTokenManager/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAuCjD,UAAU,oBAAoB;IAC1B,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,GAAG,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,uBAAuB,GAAU,2BAA2B,oBAAoB,kBAW5F,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './breakpointsFromTokenManager';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/breakpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const BREAKPOINTS_NAMES: string[];
2
+ export interface IBreakpointToken {
3
+ name: string;
4
+ value: string;
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/breakpoints/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,UAA+D,CAAC;AAE9F,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,16 @@
1
+ import { IBreakpointToken } from './types';
2
+ /**
3
+ * Converts breakpoint token value to number
4
+ */
5
+ export declare const parseBreakpointValue: (token: IBreakpointToken) => number;
6
+ /**
7
+ * Converts array of breakpoint tokens to object with numeric values
8
+ */
9
+ export declare const tokensToNumericObject: (tokens: IBreakpointToken[]) => Record<string, number>;
10
+ /**
11
+ * Common file operations for breakpoints modules
12
+ */
13
+ export declare const deleteFile: (fileName: string, directory: string) => Promise<void>;
14
+ export declare const writeFile: (fileName: string, content: string, directory: string) => Promise<void>;
15
+ export declare const deleteAndWriteFile: (fileName: string, content: string, directory: string) => Promise<void>;
16
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/breakpoints/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,gBAAgB,KAAG,MAE9D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,gBAAgB,EAAE,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAQvF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAU,UAAU,MAAM,EAAE,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CAElF,CAAC;AAEF,eAAO,MAAM,SAAS,GAAU,UAAU,MAAM,EAAE,SAAS,MAAM,EAAE,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CAElG,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAU,UAAU,MAAM,EAAE,SAAS,MAAM,EAAE,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CAG3G,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/colors/colorsFromTokenManager/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,17 +1,14 @@
1
- import { IModule } from '../types';
1
+ import { IModule } from '../../types';
2
2
  export interface IColorsFromTokenManagerInput {
3
3
  includeVariables?: string[];
4
4
  includeStyles?: boolean;
5
5
  }
6
6
  export interface IColorsFromTokenManagerOutput {
7
- jsonDir: string;
8
- stylesDir: string;
9
- jsonFileName?: string;
10
- cssFileName?: string;
7
+ dir: string;
11
8
  }
12
9
  export interface IColorsFromTokenManagerParams {
13
10
  input?: IColorsFromTokenManagerInput;
14
11
  output: IColorsFromTokenManagerOutput;
15
12
  }
16
- export declare const colorsFromTokenManager: ({ input, output: { jsonDir, stylesDir, jsonFileName, cssFileName }, }: IColorsFromTokenManagerParams) => IModule;
17
- //# sourceMappingURL=colorsFromTokenManager.d.ts.map
13
+ export declare const colorsFromTokenManager: ({ input, output: { dir } }: IColorsFromTokenManagerParams) => IModule;
14
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/modules/colors/colorsFromTokenManager/module.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,WAAW,4BAA4B;IACzC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,6BAA6B;IAC1C,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,6BAA6B;IAC1C,KAAK,CAAC,EAAE,4BAA4B,CAAC;IACrC,MAAM,EAAE,6BAA6B,CAAC;CACzC;AA+DD,eAAO,MAAM,sBAAsB,GAAI,4BAAiC,6BAA6B,KAAG,OAsEtG,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IDSTokenStyleColor } from '../../../classes/TokenManager/types';
2
+ export declare const variableToColorToken: (value: IDSTokenStyleColor["value"]) => string;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/modules/colors/colorsFromTokenManager/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA4B,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AA8BxG,eAAO,MAAM,oBAAoB,GAAI,OAAO,kBAAkB,CAAC,OAAO,CAAC,WAStE,CAAC"}
@@ -1,4 +1,2 @@
1
- export * from './colorsFromStyles';
2
- export * from './colorsFromVariables';
3
1
  export * from './colorsFromTokenManager';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/colors/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/colors/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -1,45 +1,20 @@
1
- import { ColorStop, GradientPaint, Paint, Vector } from '@figma/rest-api-spec';
2
1
  import { IColorToken } from './types';
3
- export declare const rgbToHex: ({ r, g, b }: {
4
- r: number;
5
- g: number;
6
- b: number;
7
- }) => string;
8
- export declare const getSolidColor: ({ opacity, r, g, b }: {
9
- opacity: number;
10
- r: number;
11
- g: number;
12
- b: number;
13
- }) => string;
14
- export declare const getAngelDeg: (gradientHandlePositions: Vector[], adjustemntDeg?: number) => number;
15
- export declare const getMappedColors: (gradientStops: ColorStop[]) => string;
16
- export declare const getGradientCenterCoordinates: (gradientHandlePositions: Vector[]) => {
17
- centerX: string;
18
- centerY: string;
19
- };
20
- export declare const getGradientLinerColor: (paint: GradientPaint) => string;
21
- export declare const getGradientRadius: (gradientHandlePositions: Vector[]) => {
22
- radiusX: string;
23
- radiusY: string;
24
- };
25
- export declare const getGradientRadial: (paint: GradientPaint) => string;
26
- export declare const getGradientAnugular: (paint: GradientPaint) => string;
27
- export declare const paintToColorToken: (paint: Paint) => string;
28
2
  export declare const formatCSSBlock: (selector: string, variables: string[]) => string;
29
3
  export declare const formatModeClassName: (modeName: string) => string;
30
4
  export declare const getVariableName: (name: string) => string;
31
5
  export declare const getCSSVariableName: (name: string) => string;
32
6
  export declare const buildCSSVariables: (colorTokens: IColorToken[]) => Record<string, string[]>;
33
7
  export declare const buildCSSContent: (cssVariables: Record<string, string[]>) => string;
34
- export declare const buildJSONContent: (colorTokens: IColorToken[]) => string;
35
- export declare const writeColorFiles: (jsonContent: string, cssContent: string, jsonDir: string, stylesDir: string, jsonFileName: string, cssFileName: string) => Promise<void>;
8
+ export declare const buildTSColorsContent: (colorTokens: IColorToken[]) => string;
9
+ export declare const writeColorFiles: ({ tsContent, cssContent, dir, }: {
10
+ tsContent: string;
11
+ cssContent: string;
12
+ dir: string;
13
+ }) => Promise<void>;
36
14
  interface IGenerateFilesParams {
37
15
  colorTokens: IColorToken[];
38
- jsonDir: string;
39
- stylesDir: string;
40
- jsonFileName: string;
41
- cssFileName: string;
16
+ dir: string;
42
17
  }
43
- export declare const generateColorFiles: ({ colorTokens, jsonDir, stylesDir, jsonFileName, cssFileName, }: IGenerateFilesParams) => Promise<void>;
18
+ export declare const generateColorFiles: ({ colorTokens, dir }: IGenerateFilesParams) => Promise<void>;
44
19
  export {};
45
20
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/colors/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAGpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,QAAQ,GAAI,aAAa;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,WAGxE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,sBAAsB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,WAKvG,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,yBAAyB,MAAM,EAAE,EAAE,sBAAiB,WAO/E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,eAAe,SAAS,EAAE,WAevC,CAAC;AAEpB,eAAO,MAAM,4BAA4B,GAAI,yBAAyB,MAAM,EAAE;;;CAS7E,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,aAAa,WAQzD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,yBAAyB,MAAM,EAAE;;;CAgBlE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,aAAa,WAQrD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,aAAa,WASvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK,WAgB7C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,WAAW,MAAM,EAAE,WAInE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,WAAsD,CAAC;AAE3G,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAoD,MAAM,CAAC;AACvG,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,WAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,GAAI,aAAa,WAAW,EAAE,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAkBrF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,cAAc,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,KAAG,MAYxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,aAAa,WAAW,EAAE,KAAG,MAG7D,CAAC;AAEF,eAAO,MAAM,eAAe,GACxB,aAAa,MAAM,EACnB,YAAY,MAAM,EAClB,SAAS,MAAM,EACf,WAAW,MAAM,EACjB,cAAc,MAAM,EACpB,aAAa,MAAM,kBAQtB,CAAC;AAEF,UAAU,oBAAoB;IAC1B,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,GAAU,iEAMtC,oBAAoB,kBAMtB,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/colors/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAK3C,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,WAAW,MAAM,EAAE,WAInE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,WAAsD,CAAC;AAE3G,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAoD,MAAM,CAAC;AACvG,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,WAAmB,CAAC;AAEnE,eAAO,MAAM,iBAAiB,GAAI,aAAa,WAAW,EAAE,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAkBrF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,cAAc,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,KAAG,MAYxE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,aAAa,WAAW,EAAE,KAAG,MAOjE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,iCAInC;IACC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACf,kBAOA,CAAC;AAEF,UAAU,oBAAoB;IAC1B,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,kBAAkB,GAAU,sBAAsB,oBAAoB,kBAMlF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/container/containerFromTokenManager/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { IModule } from '../../types';
2
+ export interface IContainerFromTokenManagerInput {
3
+ layer?: string;
4
+ }
5
+ export interface IContainerFromTokenManagerOutput {
6
+ dir: string;
7
+ }
8
+ export interface IContainerFromTokenManagerParams {
9
+ input?: IContainerFromTokenManagerInput;
10
+ output: IContainerFromTokenManagerOutput;
11
+ }
12
+ export declare const containerFromTokenManager: ({ input, output: { dir }, }: IContainerFromTokenManagerParams) => IModule;
13
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/modules/container/containerFromTokenManager/module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAI3C,MAAM,WAAW,+BAA+B;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gCAAgC;IAC7C,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gCAAgC;IAC7C,KAAK,CAAC,EAAE,+BAA+B,CAAC;IACxC,MAAM,EAAE,gCAAgC,CAAC;CAC5C;AA6DD,eAAO,MAAM,yBAAyB,GAAI,6BAGvC,gCAAgC,KAAG,OAmDpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './containerFromTokenManager';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/container/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface IContainerToken {
2
+ breakpoint: number;
3
+ offset: string;
4
+ }
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/container/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,12 @@
1
+ import { IContainerToken } from './types';
2
+ export declare const buildContainerCSS: (containerTokens: IContainerToken[], layer?: string) => string;
3
+ export declare const buildContainerIndex: () => string;
4
+ export declare const deleteAndWriteFile: (fileName: string, content: string, directory: string) => Promise<void>;
5
+ interface IGenerateContainerFilesParams {
6
+ containerTokens: IContainerToken[];
7
+ dir: string;
8
+ layer?: string;
9
+ }
10
+ export declare const generateContainerFiles: ({ containerTokens, dir, layer }: IGenerateContainerFilesParams) => Promise<void>;
11
+ export {};
12
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/container/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAe/C,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,eAAe,EAAE,EAAE,QAAQ,MAAM,KAAG,MAKtF,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,MAKtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAU,UAAU,MAAM,EAAE,SAAS,MAAM,EAAE,WAAW,MAAM,kBAG5F,CAAC;AAEF,UAAU,6BAA6B;IACnC,eAAe,EAAE,eAAe,EAAE,CAAC;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,GAAU,iCAAiC,6BAA6B,kBAM1G,CAAC"}
@@ -1,2 +1,7 @@
1
+ export * from './breakpoints';
1
2
  export * from './colors';
3
+ export * from './container';
4
+ export * from './shadows';
5
+ export * from './typography';
6
+ export * from './utilities';
2
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './shadowsFromTokenManager';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/shadows/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { IModule } from '../types';
2
+ export interface IShadowsFromTokenManagerInput {
3
+ includeStyles?: boolean;
4
+ }
5
+ export interface IShadowsFromTokenManagerOutput {
6
+ dir: string;
7
+ }
8
+ export interface IShadowsFromTokenManagerParams {
9
+ input?: IShadowsFromTokenManagerInput;
10
+ output: IShadowsFromTokenManagerOutput;
11
+ }
12
+ export declare const shadowsFromTokenManager: ({ input, output: { dir } }: IShadowsFromTokenManagerParams) => IModule;
13
+ //# sourceMappingURL=shadowsFromTokenManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadowsFromTokenManager.d.ts","sourceRoot":"","sources":["../../../src/modules/shadows/shadowsFromTokenManager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,MAAM,WAAW,6BAA6B;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,8BAA8B;IAC3C,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,8BAA8B;IAC3C,KAAK,CAAC,EAAE,6BAA6B,CAAC;IACtC,MAAM,EAAE,8BAA8B,CAAC;CAC1C;AAuBD,eAAO,MAAM,uBAAuB,GAAI,4BAAiC,8BAA8B,KAAG,OAuDxG,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type TShadowTokenValue = string | Record<string, string>;
2
+ export interface IShadowToken {
3
+ name: string;
4
+ value: TShadowTokenValue;
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/shadows/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,iBAAiB,CAAC;CAC5B"}
@@ -0,0 +1,22 @@
1
+ import { IShadowValue } from '../../classes/TokenManager/types';
2
+ import { IShadowToken } from './types';
3
+ export declare const formatCSSBlock: (selector: string, variables: string[]) => string;
4
+ export declare const formatModeClassName: (modeName: string) => string;
5
+ export declare const getVariableName: (name: string) => string;
6
+ export declare const getCSSVariableName: (name: string) => string;
7
+ export declare const getCSSVariableValue: ({ offsetX, offsetY, blur, spread, color }: IShadowValue) => string;
8
+ export declare const buildShadowCSSVariables: (shadowTokens: IShadowToken[]) => Record<string, string[]>;
9
+ export declare const buildShadowCSSContent: (cssVariables: Record<string, string[]>) => string;
10
+ export declare const buildTSShadowsContent: (shadowTokens: IShadowToken[]) => string;
11
+ export declare const writeShadowFiles: ({ tsContent, cssContent, dir, }: {
12
+ tsContent: string;
13
+ cssContent: string;
14
+ dir: string;
15
+ }) => Promise<void>;
16
+ interface IGenerateShadowFilesParams {
17
+ shadowTokens: IShadowToken[];
18
+ dir: string;
19
+ }
20
+ export declare const generateShadowFiles: ({ shadowTokens, dir }: IGenerateShadowFilesParams) => Promise<void>;
21
+ export {};
22
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/shadows/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAK5C,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,WAAW,MAAM,EAAE,WAInE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,WAAsD,CAAC;AAE3G,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAoD,MAAM,CAAC;AACvG,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,WAAgB,CAAC;AAChE,eAAO,MAAM,mBAAmB,GAAI,2CAA2C,YAAY,WACrC,CAAC;AAEvD,eAAO,MAAM,uBAAuB,GAAI,cAAc,YAAY,EAAE,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAgBzF,CAAC;AAEN,eAAO,MAAM,qBAAqB,GAAI,cAAc,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,KAAG,MAY9E,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,cAAc,YAAY,EAAE,KAAG,MAKpE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,iCAIpC;IACC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACf,kBAOA,CAAC;AAEF,UAAU,0BAA0B;IAChC,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,mBAAmB,GAAU,uBAAuB,0BAA0B,kBAM1F,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './typographyFromTokenManager';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/typography/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { IDSTokenStyleTypography } from '../../classes/TokenManager/types';
2
+ export interface IResolveValue {
3
+ base: Partial<IDSTokenStyleTypography['value']>;
4
+ breakpoints: Record<string, Partial<IDSTokenStyleTypography['value']>>;
5
+ }
6
+ export interface ITypographyToken {
7
+ name: string;
8
+ value: IResolveValue;
9
+ }
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/typography/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC;IAChD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;CAC1E;AAED,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,aAAa,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export * from './module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/typography/typographyFromTokenManager/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { IModule } from '../../types';
2
+ export interface IBreakpoints {
3
+ [key: string]: string;
4
+ }
5
+ export type IFontFamilyMap = Record<string, string>;
6
+ export interface ITypographyFromTokenManagerInput {
7
+ breakpoints: IBreakpoints;
8
+ fontFamily?: IFontFamilyMap;
9
+ fluid?: boolean;
10
+ }
11
+ export interface ITypographyFromTokenManagerOutput {
12
+ dir: string;
13
+ }
14
+ export interface ITypographyFromTokenManagerParams {
15
+ input: ITypographyFromTokenManagerInput;
16
+ output: ITypographyFromTokenManagerOutput;
17
+ }
18
+ export declare const typographyFromTokenManager: ({ input, output: { dir } }: ITypographyFromTokenManagerParams) => IModule;
19
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/modules/typography/typographyFromTokenManager/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAI3C,MAAM,WAAW,YAAY;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD,MAAM,WAAW,gCAAgC;IAC7C,WAAW,EAAE,YAAY,CAAC;IAC1B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,iCAAiC;IAC9C,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iCAAiC;IAC9C,KAAK,EAAE,gCAAgC,CAAC;IACxC,MAAM,EAAE,iCAAiC,CAAC;CAC7C;AAmED,eAAO,MAAM,0BAA0B,GAAI,4BAA4B,iCAAiC,KAAG,OA0DzG,CAAC"}
@@ -0,0 +1,56 @@
1
+ import { ITypographyValue } from '../../classes/TokenManager/types/figma';
2
+ import { IResolveValue, ITypographyToken } from './types';
3
+ import { IBreakpoints, IFontFamilyMap } from './typographyFromTokenManager/module';
4
+ export declare const formatCSSBlock: (selector: string, properties: string[]) => string;
5
+ export declare const getCSSVariableName: (name: string) => string;
6
+ /**
7
+ * Конвертирует объект ITypographyValue в объект с CSS-совместимыми ключами
8
+ * @param typography - объект типографии из Figma
9
+ * @returns объект с ключами в kebab-case формате
10
+ *
11
+ * @example
12
+ * const typography = {
13
+ * fontFamily: 'Arial',
14
+ * fontSize: '16px',
15
+ * fontWeight: 400,
16
+ * letterSpacing: '0.5px',
17
+ * lineHeight: '1.5',
18
+ * textTransform: 'none',
19
+ * textDecoration: 'none'
20
+ * };
21
+ *
22
+ * const cssProps = convertTypographyToCSSProperties(typography);
23
+ * // Результат: {
24
+ * // 'font-family': 'Arial',
25
+ * // 'font-size': '16px',
26
+ * // 'font-weight': 400,
27
+ * // 'letter-spacing': '0.5px',
28
+ * // 'line-height': '1.5',
29
+ * // 'text-transform': 'none',
30
+ * // 'text-decoration': 'none'
31
+ * // }
32
+ */
33
+ export declare const convertTypographyToCSSProperties: (typography: Partial<ITypographyValue>, fontFamily: IFontFamilyMap) => Record<string, string | number>;
34
+ export declare const getTypographyCSSArray: (token: IResolveValue, breakpoints: IBreakpoints, fontFamily: IFontFamilyMap) => {
35
+ breakpoint: number | null;
36
+ css: Partial<ITypographyValue>;
37
+ }[];
38
+ export declare const buildTypographyCSSContent: (typographyTokens: ITypographyToken[], breakpoints: IBreakpoints, fontFamily: IFontFamilyMap, fluid: boolean) => string;
39
+ export declare const buildTSTypographyContent: (typographyTokens: ITypographyToken[]) => string;
40
+ export declare const buildTSTypographyDataContent: (typographyTokens: ITypographyToken[], fontFamily: IFontFamilyMap) => string;
41
+ export declare const writeTypographyFiles: ({ indexTSContent, typographyTSContent, cssContent, dir, }: {
42
+ indexTSContent: string;
43
+ typographyTSContent: string;
44
+ cssContent: string;
45
+ dir: string;
46
+ }) => Promise<void>;
47
+ interface IGenerateTypographyFilesParams {
48
+ typographyTokens: ITypographyToken[];
49
+ dir: string;
50
+ breakpoints: IBreakpoints;
51
+ fontFamily: IFontFamilyMap;
52
+ fluid: boolean;
53
+ }
54
+ export declare const generateTypographyFiles: ({ typographyTokens, dir, breakpoints, fontFamily, fluid, }: IGenerateTypographyFilesParams) => Promise<void>;
55
+ export {};
56
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/typography/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAOxF,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,YAAY,MAAM,EAAE,WAIpE,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,WAAgB,CAAC;AAwBhE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,gCAAgC,GACzC,YAAY,OAAO,CAAC,gBAAgB,CAAC,EACrC,YAAY,cAAc,KAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAWhC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,aAAa,EAAE,aAAa,YAAY,EAAE,YAAY,cAAc;gBAIlE,MAAM,GAAG,IAAI;SAAO,OAAO,CAAC,gBAAgB,CAAC;GAsB3F,CAAC;AA8KF,eAAO,MAAM,yBAAyB,GAClC,kBAAkB,gBAAgB,EAAE,EACpC,aAAa,YAAY,EACzB,YAAY,cAAc,EAC1B,OAAO,OAAO,KACf,MASF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,kBAAkB,gBAAgB,EAAE,KAAG,MAY/E,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACrC,kBAAkB,gBAAgB,EAAE,EACpC,YAAY,cAAc,KAC3B,MA+BF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,2DAKxC;IACC,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACf,kBAQA,CAAC;AAEF,UAAU,8BAA8B;IACpC,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,YAAY,CAAC;IAC1B,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,GAAU,4DAM3C,8BAA8B,kBAMhC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './types';
2
+ export * from './utils';
3
+ export * from './utilitiesFromTokenManager';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/utilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { IBreakpoints } from '../typography/typographyFromTokenManager/module';
2
+ export type { IBreakpoints };
3
+ /**
4
+ * Один «плоский» dimension-токен после обхода дерева variables и резолва ссылок по режимам.
5
+ */
6
+ export interface IResolvedUtilityToken {
7
+ flatName: string;
8
+ /** ключ = имя режима (как в value токена), значение = итоговая CSS-строка (например длина) */
9
+ resolvedByMode: Record<string, string>;
10
+ }
11
+ /**
12
+ * Итоговые имена для глобального CSS: префикс переменных и класс обёртки с `--*`.
13
+ */
14
+ export interface IUtilityNamingFromVariablePath {
15
+ variablesClassName: string;
16
+ variableNamePrefix: string;
17
+ }
18
+ /**
19
+ * Вход: токены и семантика CSS (что резолвить из Figma и как трактовать в свойствах/переменных).
20
+ */
21
+ export interface IUtilitiesInput {
22
+ variablePath: string;
23
+ breakpoints: IBreakpoints;
24
+ /**
25
+ * Белый список по `flatName` сгенерированного токена (например `radius-M`, `size-xxs`).
26
+ * Строка — точное совпадение; RegExp — `test` по полному имени.
27
+ * Если не задан или пустой — попадают все dimension-листья под `variablePath`.
28
+ */
29
+ include?: (string | RegExp)[];
30
+ /** Префикс для `--prefix-flatName` и `var(...)`. Если не задан — последний сегмент пути. */
31
+ variableNamePrefix?: string;
32
+ /** Класс обёртки в глобальном `styles.css`. Если не задан — `${variableNamePrefix}-variables`. */
33
+ variablesClassName?: string;
34
+ }
35
+ /**
36
+ * Выход: каталог артефактов (`styles.css`, `utilities.ts`, `index.ts`).
37
+ */
38
+ export interface IUtilitiesOutput {
39
+ dir: string;
40
+ }
41
+ /**
42
+ * `input` — данные токенов и семантика CSS; `output` — каталог вывода.
43
+ */
44
+ export interface IUtilitiesFromTokenManagerParams {
45
+ input: IUtilitiesInput;
46
+ output: IUtilitiesOutput;
47
+ }
48
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/utilities/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAEpF,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,8FAA8F;IAC9F,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,YAAY,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC9B,4FAA4F;IAC5F,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kGAAkG;IAClG,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,gBAAgB,CAAC;CAC5B"}
@@ -0,0 +1,2 @@
1
+ export * from './module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/utilities/utilitiesFromTokenManager/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IModule } from '../../types';
2
+ import { IUtilitiesFromTokenManagerParams } from '../types';
3
+ export declare const utilitiesFromTokenManager: ({ input, output }: IUtilitiesFromTokenManagerParams) => IModule;
4
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/modules/utilities/utilitiesFromTokenManager/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAQjE,eAAO,MAAM,yBAAyB,GAAI,mBAAmB,gCAAgC,KAAG,OAyC9F,CAAC"}