sccoreui 4.7.0 → 4.7.2

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.scss CHANGED
@@ -646,7 +646,12 @@ button[data-cmd="fontFamily"]:focus{
646
646
  }
647
647
 
648
648
  .text-editor.focus-text-editor {
649
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px var(--primary-100);
649
+ box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px var(--red-200);
650
+ border: 1px solid var(--primary-300) !important;
651
+ }
652
+
653
+ .text-editor.focus-text-editor.p-invalid {
654
+ box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px var(--red-300);
650
655
  border: 1px solid var(--primary-300) !important;
651
656
  }
652
657
 
@@ -10,7 +10,7 @@ require("froala-editor/js/plugins.pkgd.min.js");
10
10
  // import { SvgComponent } from 'sccoreui';
11
11
  // import SvgComponent from '../../directives/svg-component';
12
12
  // import { Bold, Italic } from '../../assets/svg/svg';
13
- const FroalaTextEditor = ({ onChange, value, placeholderText, id }) => {
13
+ const FroalaTextEditor = ({ onChange, value, placeholderText, id, className }) => {
14
14
  const editorRef = (0, react_1.useRef)(null);
15
15
  // const html = ``;
16
16
  const [editorContent, setEditorContent] = (0, react_1.useState)(value);
@@ -40,7 +40,7 @@ const FroalaTextEditor = ({ onChange, value, placeholderText, id }) => {
40
40
  });
41
41
  }
42
42
  }, []);
43
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'text-editor', id: id }, { children: (0, jsx_runtime_1.jsx)(react_froala_wysiwyg_1.default, { tag: "textarea", config: {
43
+ 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: {
44
44
  fontFamilySelection: true,
45
45
  fontFamily: {
46
46
  'Arial,Helvetica,sans-serif': 'sans-serif',
@@ -2,5 +2,5 @@ import 'froala-editor/css/froala_editor.pkgd.min.css';
2
2
  import 'froala-editor/css/froala_style.min.css';
3
3
  import 'froala-editor/js/plugins.pkgd.min.js';
4
4
  import { FroalaTextEditorTypes } from '../types/type';
5
- declare const FroalaTextEditor: ({ onChange, value, placeholderText, id }: FroalaTextEditorTypes) => import("react/jsx-runtime").JSX.Element;
5
+ declare const FroalaTextEditor: ({ onChange, value, placeholderText, id, className }: FroalaTextEditorTypes) => import("react/jsx-runtime").JSX.Element;
6
6
  export default FroalaTextEditor;
@@ -165,6 +165,7 @@ export interface FroalaTextEditorTypes {
165
165
  value: string;
166
166
  placeholderText: string;
167
167
  id: string;
168
+ className?: string;
168
169
  }
169
170
  export interface ListBoxDropdownTypes {
170
171
  values: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "4.7.0",
3
+ "version": "4.7.2",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",