sccoreui 6.2.97 → 6.2.98

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/dist/App.js CHANGED
@@ -4,6 +4,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  require("./App.scss");
5
5
  // import Home from "./pages/home";
6
6
  const App = () => {
7
- return ((0, jsx_runtime_1.jsx)("div", {}));
7
+ return (0, jsx_runtime_1.jsx)("div", {});
8
8
  };
9
9
  exports.default = App;
@@ -19,9 +19,9 @@ const FroalaTextEditor = ({ onChange, value, placeholderText, id, className, too
19
19
  onChange(content);
20
20
  // onChange(editorRef.current.editor.el.getInnerHTML())
21
21
  };
22
- // useEffect(() => {
23
- // setEditorContent(value);
24
- // }, [value]);
22
+ (0, react_1.useEffect)(() => {
23
+ setEditorContent(value);
24
+ }, [value]);
25
25
  // const handleKeyUp = () => {
26
26
  // // Access the current content of the editor
27
27
  // debugger
@@ -42,9 +42,8 @@ const FroalaTextEditor = ({ onChange, value, placeholderText, id, className, too
42
42
  (_f = (_e = (_d = editorRef === null || editorRef === void 0 ? void 0 : editorRef.current) === null || _d === void 0 ? void 0 : _d.editor) === null || _e === void 0 ? void 0 : _e.$el) === null || _f === void 0 ? void 0 : _f.on("focusout", () => {
43
43
  document.getElementById(id).classList.remove("focus-text-editor");
44
44
  });
45
- setEditorContent(value);
46
45
  }
47
- }, [value]);
46
+ }, []);
48
47
  return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: `text-editor ${className}`, id: id }, { children: (0, jsx_runtime_1.jsx)(react_froala_wysiwyg_1.default, { tag: "textarea", config: {
49
48
  events: {
50
49
  initialized: toolbar
@@ -22,12 +22,12 @@ const colorFunction = (data) => {
22
22
  return data;
23
23
  }
24
24
  };
25
- const SvgComponent = ({ icon, size, color, className, disabled }) => {
25
+ const SvgComponent = ({ icon, size, color, className, disabled, title, }) => {
26
26
  const data2 = svg_icons_1.iconList.find((iconObject) => iconObject.name === icon);
27
27
  const data = data2 === null || data2 === void 0 ? void 0 : data2.svg.replace('width="24" height="24"', `width=${size ? `${size}` : 16} size=${size ? `${size}` : 16}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`).replace('stroke="#667085"', `stroke=${color ? colorFunction(color) : "#667085"}`);
28
28
  if (data === undefined) {
29
29
  return null;
30
30
  }
31
- return ((0, jsx_runtime_1.jsx)("span", { className: `flex align-items-center justify-content-center${!className ? "" : ` ${className}`} ${disabled && "p-disabled"}`, dangerouslySetInnerHTML: { __html: data } }));
31
+ return ((0, jsx_runtime_1.jsx)("span", { className: `flex align-items-center justify-content-center${!className ? "" : ` ${className}`} ${disabled && "p-disabled"}`, dangerouslySetInnerHTML: { __html: data }, title: title }));
32
32
  };
33
33
  exports.default = SvgComponent;
@@ -5,6 +5,7 @@ interface icon {
5
5
  size?: number;
6
6
  className?: string;
7
7
  disabled?: boolean;
8
+ title?: string;
8
9
  }
9
- declare const SvgComponent: ({ icon, size, color, className, disabled }: icon) => import("react/jsx-runtime").JSX.Element;
10
+ declare const SvgComponent: ({ icon, size, color, className, disabled, title, }: icon) => import("react/jsx-runtime").JSX.Element;
10
11
  export default SvgComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.2.97",
3
+ "version": "6.2.98",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",