@gisce/react-ooui 1.2.0-rc.75 → 1.2.0-rc.76

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["Markdown.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEpC,eAAQ,MAAM,QAAQ,UAAW,WAAW,gBAM3C,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,GAAG,gBAKvC,CAAA"}
1
+ {"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["Markdown.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEpC,eAAQ,MAAM,QAAQ,UAAW,WAAW,gBAM3C,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,GAAG,gBAQvC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/react-ooui",
3
- "version": "1.2.0-rc.75",
3
+ "version": "1.2.0-rc.76",
4
4
  "files": [
5
5
  "dist",
6
6
  "src",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@ant-design/plots": "^1.0.9",
39
- "@gisce/ooui": "^0.19.2-rc.1",
39
+ "@gisce/ooui": "^0.19.4",
40
40
  "@gisce/react-formiga-components": "^1.0.9-rc.20",
41
41
  "@gisce/react-formiga-table": "^0.5.0",
42
42
  "@monaco-editor/react": "^4.4.5",
@@ -77,7 +77,7 @@ export const LabelH1 = (): React.ReactElement => {
77
77
  const ooui = new LabelOoui({
78
78
  name: "field",
79
79
  string: "Lorem ipsum",
80
- widget_props: "{'label_size': 'h1'}",
80
+ widget_props: "{'label_size': 1}",
81
81
  });
82
82
  return (
83
83
  <LocaleProvider lang="en_US">
@@ -90,7 +90,7 @@ export const LabelH2Warning = (): React.ReactElement => {
90
90
  const ooui = new LabelOoui({
91
91
  name: "field",
92
92
  string: "Lorem ipsum",
93
- widget_props: "{'label_size': 'h1', 'label_type': 'warning'}",
93
+ widget_props: "{'label_size': 2, 'label_type': 'warning'}",
94
94
  });
95
95
  return (
96
96
  <LocaleProvider lang="en_US">
@@ -26,7 +26,7 @@ const Label = (props: Props) => {
26
26
  const responsiveAlign = responsiveBehaviour ? "left" : "right";
27
27
  const labelAlgin = align ? align : fieldForLabel ? responsiveAlign : "left";
28
28
 
29
- const TextType = labelSize === "text" ? Text : Title;
29
+ const TextType = labelSize === undefined ? Text : Title;
30
30
 
31
31
  return (
32
32
  <div
@@ -39,7 +39,7 @@ const Label = (props: Props) => {
39
39
  )}
40
40
  <span className="pr-2">
41
41
  <TextType
42
- level={labelSize !== "text" ? (labelSize as string as any) : null}
42
+ level={labelSize}
43
43
  type={labelType as any}
44
44
  >
45
45
  <Interweave content={labelText} />
@@ -12,8 +12,11 @@ export const Markdown = (props: WidgetProps) => {
12
12
  };
13
13
 
14
14
  export const MarkdownInput = (props: any) => {
15
- const {value} = props;
15
+ const {value, ooui} = props;
16
16
  return (
17
- <ReactMarkdown children={value}/>
17
+ <div style={{height: ooui.height ? ooui.height + 'px' : '100%'}}>
18
+ <ReactMarkdown children={value} className="ant-typography"/>
19
+ </div>
20
+
18
21
  )
19
- }
22
+ }