ar-design 0.2.9 → 0.2.10

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.
@@ -4,5 +4,6 @@ interface IProps extends IValidation {
4
4
  value?: string;
5
5
  onChange: (value?: string) => void;
6
6
  placeholder?: string;
7
+ height?: number;
7
8
  }
8
9
  export default IProps;
@@ -4,7 +4,7 @@ import React, { useEffect, useRef, useState } from "react";
4
4
  import Button from "../button";
5
5
  import { ARIcon } from "../../icons";
6
6
  import "../../../assets/css/components/form/text-editor/styles.css";
7
- const TextEditor = ({ name, value, onChange, placeholder, validation }) => {
7
+ const TextEditor = ({ name, value, onChange, placeholder, height, validation }) => {
8
8
  // refs
9
9
  const _firstLoad = useRef(false);
10
10
  const _container = useRef(null);
@@ -100,7 +100,7 @@ const TextEditor = ({ name, value, onChange, placeholder, validation }) => {
100
100
  React.createElement("div", { className: "toolbar" }, toolbarButtons.map(({ command, icon, tooltip }) => (React.createElement(Button, { key: command, variant: "borderless", status: "secondary", icon: { element: React.createElement(ARIcon, { icon: icon, size: 18, fill: "var(--gray-700)" }) }, tooltip: {
101
101
  text: tooltip,
102
102
  }, onClick: () => execCommand(command) })))),
103
- React.createElement("iframe", { ref: _arIframe, name: name, className: _iframeClassName.map((c) => c).join(" ") }),
103
+ React.createElement("iframe", { ref: _arIframe, name: name, className: _iframeClassName.map((c) => c).join(" "), height: height }),
104
104
  React.createElement("div", { className: "resize", onMouseDown: handleMouseDown }),
105
105
  validation?.text && React.createElement("span", { className: "validation" }, validation.text)));
106
106
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",