@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.166",
3
+ "version": "0.3.169",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -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" h={styles.FORM_COMBO_HEIGHT} flex={1}>
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" h={styles.FORM_COMBO_HEIGHT} flex={1} onLayout={onLayout}>
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
  />
@@ -7,7 +7,7 @@ const
7
7
 
8
8
  const defaults = {
9
9
  ATTACHMENTS_MAX_FILESIZE: 1024 * 1024 * 5, // 5MB
10
- DEFAULT_WINDOW_WIDTH: 1000,
10
+ DEFAULT_WINDOW_WIDTH: 900,
11
11
  DEFAULT_WINDOW_HEIGHT: 800,
12
12
  FILTER_LABEL_FONTSIZE: DEFAULT_FONTSIZE,
13
13
  FORM_ANCILLARY_TITLE_FONTSIZE: 22,