-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(NewGoalCriteria): preview in goal lists
- Loading branch information
Showing
12 changed files
with
1,345 additions
and
1,123 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Achievement criteria": "Achievement criteria", | ||
"Loading ...": "Loading ..." | ||
} |
17 changes: 17 additions & 0 deletions
17
src/components/NewGoalCriteria/NewGoalCriteria.i18n/index.ts
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,17 @@ | ||
/* eslint-disable */ | ||
// Do not edit, use generator to update | ||
import { i18n, fmt, I18nLangSet } from 'easy-typed-intl'; | ||
import getLang from '../../../utils/getLang'; | ||
|
||
import ru from './ru.json'; | ||
import en from './en.json'; | ||
|
||
export type I18nKey = keyof typeof ru & keyof typeof en; | ||
type I18nLang = 'ru' | 'en'; | ||
|
||
const keyset: I18nLangSet<I18nKey> = {}; | ||
|
||
keyset['ru'] = ru; | ||
keyset['en'] = en; | ||
|
||
export const tr = i18n<I18nLang, I18nKey>(keyset, fmt, getLang); |
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,4 @@ | ||
{ | ||
"Achievement criteria": "Критерии достижимости", | ||
"Loading ...": "Загрузка ..." | ||
} |
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,58 @@ | ||
.NewGoalCriteria { | ||
/* for non-interactive popups allow inner events */ | ||
pointer-events: all; | ||
width: 400px; | ||
} | ||
|
||
.NewGoalCriteriaTitle { | ||
color: var(--text-secondary); | ||
padding-bottom: var(--gap-xs); | ||
border-bottom: 1px solid var(--gray-900); | ||
} | ||
|
||
.NewGoalCriteriaTable { | ||
margin-top: var(--gap-sm); | ||
} | ||
|
||
.NewGoalCriteriaItemTitle { | ||
line-height: 24px; | ||
} | ||
|
||
.NewGoalCriteriaItemTitleStrike, | ||
.NewGoalCriteriaItemWeight { | ||
color: var(--text-secondary); | ||
} | ||
|
||
.NewGoalCriteriaWeightColumn { | ||
text-align: right; | ||
} | ||
|
||
.NewGoalCriteriaTableRow { | ||
align-items: baseline; | ||
} | ||
|
||
.NewGoalCriteriaGoalBadge { | ||
padding: 0; | ||
align-items: baseline; | ||
} | ||
|
||
.NewGoalCriteriaTrigger { | ||
cursor: pointer; | ||
} | ||
.NewGoalCriteriaLoader { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.NewGoalCriteriaItemCheckbox { | ||
align-items: baseline; | ||
/* FIXME: https://github.com/taskany-inc/bricks/issues/868 */ | ||
cursor: default; | ||
pointer-events: none; | ||
} | ||
|
||
/* FIXME: https://github.com/taskany-inc/bricks/issues/863 */ | ||
.NewGoalCriteriaGoalBadgeState, | ||
.NewGoalCriteriaItemCheckbox input[type="checkbox"] { | ||
transform: translateY(3px); | ||
} |
Oops, something went wrong.