@megha-ui/react 1.2.681 → 1.2.683

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.
@@ -236,7 +236,7 @@ const IconDropdown = ({ className, ClearIcon, clearId, closeOnSelect = true, dis
236
236
  marginTop,
237
237
  marginRight,
238
238
  marginLeft,
239
- }, children: [label && (_jsxs("p", { style: labelStyle, children: [label, required && _jsx("span", { style: asteriskStyle, children: " *" })] })), _jsxs("div", { ref: wrapperRef, className: `${className}`, style: Object.assign({ border, borderRadius: 4, alignItems: "center", display: "flex", minHeight: `var(--control-min-height, ${ultraCompactDisplay
239
+ }, children: [label && (_jsxs("p", { style: labelStyle, children: [label, required && _jsx("span", { style: asteriskStyle, children: " *" })] })), _jsxs("div", { ref: wrapperRef, className: `${className}`, style: Object.assign({ border, borderRadius: 4, alignItems: "center", display: "flex", height: `var(--control-min-height, ${ultraCompactDisplay
240
240
  ? "1.5rem"
241
241
  : compactDisplay
242
242
  ? "2rem"
@@ -15,7 +15,8 @@ interface EditorProps {
15
15
  textColor?: boolean;
16
16
  linkOptions?: boolean;
17
17
  };
18
- toolbarToggle?: any;
18
+ toolbarToggleOn?: any;
19
+ toolbarToggleOff?: any;
19
20
  }
20
21
  declare const TextEditor: React.FC<EditorProps>;
21
22
  export default TextEditor;
@@ -15,7 +15,7 @@ const TextEditor = ({ value, onChange, enabledTools = {
15
15
  textAlign: true,
16
16
  textColor: true,
17
17
  linkOptions: true,
18
- }, toolbarToggle, }) => {
18
+ }, toolbarToggleOn, toolbarToggleOff, }) => {
19
19
  const editorRef = useRef(null);
20
20
  const selectionRef = useRef(null);
21
21
  const [showImageDropdown, setShowImageDropdown] = useState(false);
@@ -215,7 +215,7 @@ const TextEditor = ({ value, onChange, enabledTools = {
215
215
  borderRadius: "0.25rem",
216
216
  cursor: "pointer",
217
217
  padding: "0.25rem",
218
- }, children: toolbarToggle !== null && toolbarToggle !== void 0 ? toolbarToggle : _jsx(SiStyledcomponents, {}) }) }), !collapsed && (_jsxs("div", { style: {
218
+ }, children: collapsed ? toolbarToggleOn !== null && toolbarToggleOn !== void 0 ? toolbarToggleOn : _jsx(SiStyledcomponents, {}) : toolbarToggleOff !== null && toolbarToggleOff !== void 0 ? toolbarToggleOff : _jsx(SiStyledcomponents, {}) }) }), !collapsed && (_jsxs("div", { style: {
219
219
  display: "flex",
220
220
  gap: "0.65rem",
221
221
  marginBottom: "0.65rem",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.681",
3
+ "version": "1.2.683",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",