@onehat/ui 0.3.166 → 0.3.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -43,6 +43,7 @@ export function ComboComponent(props) {
|
|
|
43
43
|
hideMenuOnSelection = true,
|
|
44
44
|
showXButton = false,
|
|
45
45
|
showEyeButton = false,
|
|
46
|
+
viewerProps = {}, // popup for eyeButton
|
|
46
47
|
_input = {},
|
|
47
48
|
isEditor = false,
|
|
48
49
|
isDisabled = false,
|
|
@@ -607,6 +608,7 @@ export function ComboComponent(props) {
|
|
|
607
608
|
bg={styles.FORM_COMBO_INPUT_BG}
|
|
608
609
|
m={0}
|
|
609
610
|
p={2}
|
|
611
|
+
h="100%"
|
|
610
612
|
>
|
|
611
613
|
{inputIconElement}
|
|
612
614
|
<Text
|
|
@@ -915,7 +917,7 @@ export function ComboComponent(props) {
|
|
|
915
917
|
// be responsive for small screen sizes and bump additionalButtons to the next line
|
|
916
918
|
assembledComponents =
|
|
917
919
|
<Column>
|
|
918
|
-
<Row {...refProps} justifyContent="center" alignItems="center"
|
|
920
|
+
<Row {...refProps} justifyContent="center" alignItems="center" flex={1}>
|
|
919
921
|
{xButton}
|
|
920
922
|
{eyeButton}
|
|
921
923
|
{inputAndTrigger}
|
|
@@ -927,7 +929,7 @@ export function ComboComponent(props) {
|
|
|
927
929
|
</Column>;
|
|
928
930
|
} else {
|
|
929
931
|
assembledComponents =
|
|
930
|
-
<Row {...refProps} justifyContent="center" alignItems="center"
|
|
932
|
+
<Row {...refProps} justifyContent="center" alignItems="center" flex={1} onLayout={onLayout}>
|
|
931
933
|
{xButton}
|
|
932
934
|
{eyeButton}
|
|
933
935
|
{inputAndTrigger}
|
|
@@ -963,13 +965,13 @@ export function ComboComponent(props) {
|
|
|
963
965
|
<Editor
|
|
964
966
|
{...propsForViewer}
|
|
965
967
|
editorType={EDITOR_TYPE__WINDOWED}
|
|
968
|
+
isEditorViewOnly={true}
|
|
969
|
+
{...viewerProps}
|
|
966
970
|
px={0}
|
|
967
971
|
py={0}
|
|
968
972
|
w="100%"
|
|
969
973
|
parent={self}
|
|
970
974
|
reference="viewer"
|
|
971
|
-
|
|
972
|
-
isEditorViewOnly={true}
|
|
973
975
|
selection={viewerSelection}
|
|
974
976
|
onEditorClose={onViewerClose}
|
|
975
977
|
/>
|
package/src/Constants/Styles.js
CHANGED