From 611f5defe51459bdff7985932760eb6a17f95e45 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Wed, 20 Apr 2022 22:24:23 +0500 Subject: [PATCH] better UI and fixed bug being able to close the imperative subject --- package.json | 2 +- src/components/Examples.tsx | 4 +++- src/components/np-picker/NPNounPicker.tsx | 9 -------- .../np-picker/NPParticiplePicker.tsx | 2 -- src/components/np-picker/NPPicker.tsx | 23 +++++++++++++------ src/components/np-picker/NPPronounPicker.tsx | 5 ++-- src/components/vp-explorer/TensePicker.tsx | 4 ++-- src/components/vp-explorer/VPDisplay.tsx | 10 ++++---- src/components/vp-explorer/VPExplorer.tsx | 22 +++++++----------- 9 files changed, 36 insertions(+), 45 deletions(-) diff --git a/package.json b/package.json index a60eab8..d5e9584 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "2.1.3", + "version": "2.1.4", "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/Examples.tsx b/src/components/Examples.tsx index bcacf99..a2c8964 100644 --- a/src/components/Examples.tsx +++ b/src/components/Examples.tsx @@ -27,14 +27,16 @@ function Examples({ children, ex, opts, + lineHeight, }: { ex?: PsStringWSub | PsStringWSub[] | T.PsJSX | T.PsJSX[], children: PsStringWSub | PsStringWSub[], opts: T.TextOptions, + lineHeight?: 0 | 1 | 2 | 3 | 4, }) { const examples = children || ex; const Example = ({ children: text }: { children: PsStringWSub }) => ( -