ability to avoid using tails on the roots and stems display
This commit is contained in:
parent
8da8afdd26
commit
8f559e0665
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/pashto-inflector",
|
"name": "@lingdocs/pashto-inflector",
|
||||||
"version": "3.5.8",
|
"version": "3.5.9",
|
||||||
"author": "lingdocs.com",
|
"author": "lingdocs.com",
|
||||||
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
|
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
|
||||||
"homepage": "https://verbs.lingdocs.com",
|
"homepage": "https://verbs.lingdocs.com",
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
<meta name="twitter:description" content="A playground for exploring Pashto verbs with all their forms and conjugations">
|
<meta name="twitter:description" content="A playground for exploring Pashto verbs with all their forms and conjugations">
|
||||||
<meta name="twitter:image" content="https://verbs.lingdocs.com/android-chrome-512x512.png">
|
<meta name="twitter:image" content="https://verbs.lingdocs.com/android-chrome-512x512.png">
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
<meta name="twitter:creator" content="@lingdocs" />
|
||||||
|
|
||||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||||
<title>Pashto Verb Explorer</title>
|
<title>Pashto Verb Explorer</title>
|
||||||
|
|
|
@ -39,11 +39,12 @@ const title: CSSProperties = {
|
||||||
marginTop: "0.5rem",
|
marginTop: "0.5rem",
|
||||||
};
|
};
|
||||||
|
|
||||||
export function RootsAndStems({ textOptions, info, hidePastParticiple, highlighted }: {
|
export function RootsAndStems({ textOptions, info, hidePastParticiple, highlighted, noTails }: {
|
||||||
textOptions: T.TextOptions,
|
textOptions: T.TextOptions,
|
||||||
info: T.NonComboVerbInfo | T.PassiveRootsStems,
|
info: T.NonComboVerbInfo | T.PassiveRootsStems,
|
||||||
hidePastParticiple?: boolean,
|
hidePastParticiple?: boolean,
|
||||||
highlighted?: T.RootsOrStemsToHighlight,
|
highlighted?: T.RootsOrStemsToHighlight,
|
||||||
|
noTails?: boolean,
|
||||||
}) {
|
}) {
|
||||||
const hasPerfectiveSplit = !!(info.root.perfectiveSplit || info.stem.perfectiveSplit);
|
const hasPerfectiveSplit = !!(info.root.perfectiveSplit || info.stem.perfectiveSplit);
|
||||||
const showPersInf = hasPersInfs(info);
|
const showPersInf = hasPersInfs(info);
|
||||||
|
@ -117,7 +118,7 @@ export function RootsAndStems({ textOptions, info, hidePastParticiple, highlight
|
||||||
<VerbInfoItemDisplay
|
<VerbInfoItemDisplay
|
||||||
item={pickPersInf(info.stem.imperfective, persInf)}
|
item={pickPersInf(info.stem.imperfective, persInf)}
|
||||||
textOptions={textOptions}
|
textOptions={textOptions}
|
||||||
tails
|
tails={!noTails}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -129,7 +130,7 @@ export function RootsAndStems({ textOptions, info, hidePastParticiple, highlight
|
||||||
<VerbInfoItemDisplay
|
<VerbInfoItemDisplay
|
||||||
item={pickPersInf(perfectiveStem, persInf)}
|
item={pickPersInf(perfectiveStem, persInf)}
|
||||||
textOptions={textOptions}
|
textOptions={textOptions}
|
||||||
tails
|
tails={!noTails}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue