-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1313 from zyfra/feat/release-4.0.0-next.2
feat: prepare 4.0.0-next.2
- Loading branch information
Showing
25 changed files
with
1,344 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
apps/doc/src/app/theme-token-changer/theme-token-changer.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<div class="host-changer" #prizmTheme> | ||
<div class="title"> | ||
<span class="theme-title"> {{ themeService.changesTheme$ | async }} theme </span> | ||
|
||
<div class="buttons-block"> | ||
<prizm-icons-svg | ||
class="theme-tokens-updater" | ||
[hidden]="!tokenChangerService.hasDarkValue && !tokenChangerService.hasLightValue" | ||
[size]="24" | ||
[name]="PrizmIconSvgEnum.SETTINGS_TOOLS_BAN" | ||
(click)="tokenChangerService.restore()" | ||
> | ||
</prizm-icons-svg> | ||
|
||
<prizm-icons-svg | ||
class="theme-tokens-updater" | ||
[hidden]="!tokenChangerService.hasDarkValue && !tokenChangerService.hasLightValue" | ||
[size]="24" | ||
[name]="PrizmIconSvgEnum.EDITOR_DECOR_CODE_DOWNLOAD" | ||
(click)="tokenChangerService.download()" | ||
> | ||
</prizm-icons-svg> | ||
|
||
<!-- TODO after fix taiga theme and local updater--> | ||
<!-- <prizm-toggle--> | ||
<!-- [ngModel]="isNight$ | async"--> | ||
<!-- (ngModelChange)="onMode($event)"--> | ||
<!-- iconOn="social-sun"--> | ||
<!-- ></prizm-toggle>--> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<prizm-scrollbar class="box"> | ||
<ng-container *ngIf="theme$ | async as theme; else loadingTemplate"> | ||
<prizm-doc-documentation | ||
[hasTestId]="false" | ||
heading="Base variables" | ||
hostComponentKey="Base variables" | ||
> | ||
<ng-template | ||
*ngFor="let token of tokens" | ||
[documentationPropertyName]="token" | ||
[documentationPropertyValue]="tokenChangerService.getTokenValue(token, theme)" | ||
[urlUpdate]="false" | ||
(documentationPropertyValueChange)="tokenChangerService.updateTokenValue(token, theme, $event)" | ||
documentationPropertyType="string" | ||
documentationPropertyMode="css-var" | ||
> | ||
{{ token }} | ||
</ng-template> | ||
</prizm-doc-documentation> | ||
</ng-container> | ||
</prizm-scrollbar> | ||
</div> | ||
</div> | ||
|
||
<!-- <prizm-doc-documentation--> | ||
<!-- [hasTestId]="false"--> | ||
<!-- heading="Palette variables"--> | ||
<!-- hostComponentKey="Palette variables"--> | ||
<!-- >--> | ||
<!-- <ng-template--> | ||
<!-- *ngFor="let token of PRIZM_THEME_TOKEN_PALETTE_VARIABLES"--> | ||
<!-- [documentationPropertyName]="token"--> | ||
<!-- [documentationPropertyValue]="getTokenValue(token)"--> | ||
<!-- (documentationPropertyValueChange)="themeService.updateTokenValue(token, $event)"--> | ||
<!-- documentationPropertyType="string"--> | ||
<!-- documentationPropertyMode="css-var"--> | ||
<!-- >--> | ||
<!-- {{ token }}--> | ||
<!-- </ng-template>--> | ||
<!-- </prizm-doc-documentation>--> | ||
|
||
<ng-template #loadingTemplate> | ||
<div class="loading">Загрузка</div> | ||
</ng-template> |
77 changes: 77 additions & 0 deletions
77
apps/doc/src/app/theme-token-changer/theme-token-changer.component.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
.logo-block { | ||
margin-top: 44px; | ||
} | ||
|
||
.logo-block, | ||
.sub-text { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.x-margin { | ||
margin-left: 1.25rem; | ||
margin-right: 1.25rem; | ||
} | ||
|
||
.sub-text { | ||
margin-top: 14px; | ||
color: var(--prizm-palette-gray-h750-dark); | ||
margin-bottom: 32px; | ||
text-align: left; | ||
} | ||
|
||
.icon { | ||
cursor: pointer; | ||
color: var(--prizm-text-icon-exception); | ||
|
||
&:hover { | ||
color: var(--prizm-status-info-primary-default); | ||
} | ||
} | ||
|
||
.buttons-block { | ||
display: flex; | ||
gap: 0.5rem; | ||
align-items: center; | ||
} | ||
|
||
.theme-tokens-updater { | ||
color: var(--prizm-text-icon-primary); | ||
cursor: pointer; | ||
|
||
&:hover { | ||
color: var(--prizm-index-plan); | ||
} | ||
} | ||
|
||
.buttons-block { | ||
display: flex; | ||
gap: 0.5rem; | ||
align-items: center; | ||
} | ||
|
||
.title { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 4px; | ||
} | ||
|
||
.loading { | ||
height: 200px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 50px; | ||
} | ||
|
||
.box { | ||
max-height: 500px; | ||
height: 500px; | ||
} | ||
|
||
.theme-title { | ||
text-transform: capitalize; | ||
color: var(--prizm-text-icon-primary); | ||
} |
Oops, something went wrong.