Skip to content

feat: Заполнять токены режима compact значениями из regular, если они не заданы #1987

feat: Заполнять токены режима compact значениями из regular, если они не заданы

feat: Заполнять токены режима compact значениями из regular, если они не заданы #1987

Triggered via pull request September 13, 2024 13:39
Status Failure
Total duration 2m 3s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 12 warnings
build: dist/themes/cloud/cssVars/theme/index.ts#L3495
Type '{ auto: { fontSize: { name: string; value: string; }; lineHeight: { name: string; value: string; }; fontFamily: { name: string; value: string; }; fontWeight: { name: string; value: string; }; textTransform: { ...; }; letterSpacing: { ...; }; }; regular: { ...; }; compact: { ...; }; }' is not assignable to type '{ auto: { fontSize: CssVarValue; lineHeight: CssVarValue; fontWeight: CssVarValue; fontFamily?: CssVarValue; letterSpacing?: CssVarValue; textTransform?: CssVarValue; fontStyle?: CssVarValue; margin?: CssVarValue; marginBottom?: CssVarValue; }; regular: { ...; }; } & {}'.
build: dist/themes/cloud/cssVars/theme/index.ts#L3575
Type '{ auto: { fontSize: { name: string; value: string; }; lineHeight: { name: string; value: string; }; fontFamily: { name: string; value: string; }; fontWeight: { name: string; value: string; }; textTransform: { ...; }; letterSpacing: { ...; }; }; regular: { ...; }; compact: { ...; }; }' is not assignable to type '{ auto: { fontSize: CssVarValue; lineHeight: CssVarValue; fontWeight: CssVarValue; fontFamily?: CssVarValue; letterSpacing?: CssVarValue; textTransform?: CssVarValue; fontStyle?: CssVarValue; margin?: CssVarValue; marginBottom?: CssVarValue; }; regular: { ...; }; } & {}'.
build: dist/themes/cloud/cssVars/theme/index.ts#L3655
Type '{ auto: { fontSize: { name: string; value: string; }; lineHeight: { name: string; value: string; }; fontFamily: { name: string; value: string; }; fontWeight: { name: string; value: string; }; textTransform: { ...; }; letterSpacing: { ...; }; }; regular: { ...; }; compact: { ...; }; }' is not assignable to type '{ auto: { fontSize: CssVarValue; lineHeight: CssVarValue; fontWeight: CssVarValue; fontFamily?: CssVarValue; letterSpacing?: CssVarValue; textTransform?: CssVarValue; fontStyle?: CssVarValue; margin?: CssVarValue; marginBottom?: CssVarValue; }; regular: { ...; }; } & {}'.
build: dist/themes/cloud/index.ts#L932
Type '{ regular: { fontSize: number; lineHeight: 16; fontFamily: "VKSansDisplay, MailSans, Helvetica, Arial, sans-serif"; fontWeight: number; textTransform: "uppercase"; letterSpacing: string; }; compact: { ...; }; }' is not assignable to type '{ regular: Font; }'.
build: dist/themes/cloud/index.ts#L950
Type '{ regular: { fontSize: number; lineHeight: 14; fontFamily: "VKSansDisplay, MailSans, Helvetica, Arial, sans-serif"; fontWeight: number; textTransform: "uppercase"; letterSpacing: string; }; compact: { ...; }; }' is not assignable to type '{ regular: Font; }'.
build: dist/themes/cloud/index.ts#L968
Type '{ regular: { fontSize: number; lineHeight: 12; fontFamily: "VKSansDisplay, MailSans, Helvetica, Arial, sans-serif"; fontWeight: number; textTransform: "uppercase"; letterSpacing: string; }; compact: { ...; }; }' is not assignable to type '{ regular: Font; }'.
build: dist/themes/cloudDark/cssVars/theme/index.ts#L3495
Type '{ auto: { fontSize: { name: string; value: string; }; lineHeight: { name: string; value: string; }; fontFamily: { name: string; value: string; }; fontWeight: { name: string; value: string; }; textTransform: { ...; }; letterSpacing: { ...; }; }; regular: { ...; }; compact: { ...; }; }' is not assignable to type '{ auto: { fontSize: CssVarValue; lineHeight: CssVarValue; fontWeight: CssVarValue; fontFamily?: CssVarValue; letterSpacing?: CssVarValue; textTransform?: CssVarValue; fontStyle?: CssVarValue; margin?: CssVarValue; marginBottom?: CssVarValue; }; regular: { ...; }; } & {}'.
build: dist/themes/cloudDark/cssVars/theme/index.ts#L3575
Type '{ auto: { fontSize: { name: string; value: string; }; lineHeight: { name: string; value: string; }; fontFamily: { name: string; value: string; }; fontWeight: { name: string; value: string; }; textTransform: { ...; }; letterSpacing: { ...; }; }; regular: { ...; }; compact: { ...; }; }' is not assignable to type '{ auto: { fontSize: CssVarValue; lineHeight: CssVarValue; fontWeight: CssVarValue; fontFamily?: CssVarValue; letterSpacing?: CssVarValue; textTransform?: CssVarValue; fontStyle?: CssVarValue; margin?: CssVarValue; marginBottom?: CssVarValue; }; regular: { ...; }; } & {}'.
build: dist/themes/cloudDark/cssVars/theme/index.ts#L3655
Type '{ auto: { fontSize: { name: string; value: string; }; lineHeight: { name: string; value: string; }; fontFamily: { name: string; value: string; }; fontWeight: { name: string; value: string; }; textTransform: { ...; }; letterSpacing: { ...; }; }; regular: { ...; }; compact: { ...; }; }' is not assignable to type '{ auto: { fontSize: CssVarValue; lineHeight: CssVarValue; fontWeight: CssVarValue; fontFamily?: CssVarValue; letterSpacing?: CssVarValue; textTransform?: CssVarValue; fontStyle?: CssVarValue; margin?: CssVarValue; marginBottom?: CssVarValue; }; regular: { ...; }; } & {}'.
build: dist/themes/cloudDark/index.ts#L932
Type '{ regular: { fontSize: number; lineHeight: 16; fontFamily: "VKSansDisplay, MailSans, Helvetica, Arial, sans-serif"; fontWeight: number; textTransform: "uppercase"; letterSpacing: string; }; compact: { ...; }; }' is not assignable to type '{ regular: Font; }'.
lint: src/build/compilers/cssVars/helpers/accumulateValues.ts#L94
Assignment to property of function parameter 'adaptiveDestination'
lint: src/build/compilers/styles/compileStyles.ts#L121
Assignment to function parameter 'theme'
lint: src/build/compilers/styles/compileStyles.ts#L125
Assignment to function parameter 'theme'
lint: src/build/compilers/styles/compileStyles.ts#L129
Assignment to function parameter 'theme'
lint: src/build/helpers/flatifyTheme.ts#L14
Assignment to function parameter 'themeValue'
lint: src/build/helpers/flatifyTheme.ts#L17
Assignment to property of function parameter 'themeValue'
lint: src/build/helpers/overrideOnlyNeeded.ts#L8
Assignment to property of function parameter 'target'