diff --git a/package-lock.json b/package-lock.json index 93483e6..9bcbf6c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pashto-inflector", - "version": "5.7.17", + "version": "5.7.18", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pashto-inflector", - "version": "5.7.17", + "version": "5.7.18", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 0b06708..7656415 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pashto-inflector", - "version": "5.7.17", + "version": "5.7.18", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", diff --git a/src/components/package.json b/src/components/package.json index 44d4e64..96bef70 100644 --- a/src/components/package.json +++ b/src/components/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/ps-react", - "version": "5.7.17", + "version": "5.7.18", "description": "Pashto inflector library module with React components", "main": "dist/components/library.js", "module": "dist/components/library.js", diff --git a/src/components/src/EntrySelect.tsx b/src/components/src/EntrySelect.tsx index d624b25..ed6486b 100644 --- a/src/components/src/EntrySelect.tsx +++ b/src/components/src/EntrySelect.tsx @@ -35,9 +35,14 @@ function EntrySelect(props: { isVerbSelect?: boolean, opts: T.TextOptions, style?: StyleHTMLAttributes, + placeholder?: string, }) { const divStyle = props.style || { width: "13rem" }; - const placeholder = "entries" in props ? "Select…" : "Search Pashto"; + const placeholder = "placeholder" in props + ? props.placeholder + : "search" in props.entryFeeder + ? "Search Pashto" + : "Select…"; function makeOption(e: E | T.DictionaryEntry) { if ("entry" in e) { return (props.isVerbSelect ? makeVerbSelectOption : makeSelectOption)(e, props.opts); diff --git a/src/components/src/ap-picker/AdverbPicker.tsx b/src/components/src/ap-picker/AdverbPicker.tsx index f040db6..99cc745 100644 --- a/src/components/src/ap-picker/AdverbPicker.tsx +++ b/src/components/src/ap-picker/AdverbPicker.tsx @@ -15,7 +15,7 @@ function AdverbPicker(props: { props.onChange(makeAdverbSelection(entry)); } return
-
Adverb
+
Adverb
-
Locative Adverb
+
Locative Adverb
Adjective
{!!props.adjectives.length && !adding &&
-
setAdding(true)}>+ Adj.
+
setAdding(true)}>+ Adj.
}
@@ -94,9 +94,9 @@ function AdjectiveManager(props: { onChange={handleChange(i)} />
)} - {!adding && !props.adjectives.length &&
+ {!adding && !props.adjectives.length &&
setAdding(true)}>+ Adj.
-
} +
} {/* {!addingDemonstrative && !props.demonstrative &&
setAddingDemonstrative(true)}>+ Demons.
} */} diff --git a/src/components/src/np-picker/AdjectivePicker.tsx b/src/components/src/np-picker/AdjectivePicker.tsx index 00524e6..70bbc1f 100644 --- a/src/components/src/np-picker/AdjectivePicker.tsx +++ b/src/components/src/np-picker/AdjectivePicker.tsx @@ -45,7 +45,7 @@ function AdjectivePicker(props: { />}
{!props.noTitle &&
-
Adjective
+
Adjective
} {/* not ready for sandwiches on adjectives */} {/* {(!addingSandwich && props.adjective && !props.adjective?.sandwich) diff --git a/src/components/src/np-picker/NPNounPicker.tsx b/src/components/src/np-picker/NPNounPicker.tsx index 371df3f..40825c3 100644 --- a/src/components/src/np-picker/NPNounPicker.tsx +++ b/src/components/src/np-picker/NPNounPicker.tsx @@ -117,7 +117,7 @@ function NPNounPicker(props: { onChange={handelAdjectivesUpdate} onDemonstrativeChange={handleDemonstrativeUpdate} />} -
Noun
+
Noun
{!(props.noun && props.noun.dynamicComplement) ?
-
Participle
+
Participle
(f: { femSing: T.SingleOrLengthOpts; femPlur: T.SingleOrLengthOpts; } | T.SingleOrLengthOpts, objectPerson: T.Person | undefined, kingPerson: T.Person): T.SingleOrLengthOpts { + // @ts-ignore if (!("mascSing" in f)) { return f; }