@apexcura/ui-components 0.0.15-Beta80 → 0.0.15-Beta82

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/index.d.mts CHANGED
@@ -17,6 +17,8 @@ type ElementType = {
17
17
  disabled?: boolean;
18
18
  prefix?: React.ReactNode;
19
19
  type?: string;
20
+ checkedChildren?: string;
21
+ unCheckedChildren?: string;
20
22
  firstValue?: string;
21
23
  secondValue?: string;
22
24
  size?: SizeType;
package/dist/index.d.ts CHANGED
@@ -17,6 +17,8 @@ type ElementType = {
17
17
  disabled?: boolean;
18
18
  prefix?: React.ReactNode;
19
19
  type?: string;
20
+ checkedChildren?: string;
21
+ unCheckedChildren?: string;
20
22
  firstValue?: string;
21
23
  secondValue?: string;
22
24
  size?: SizeType;
package/dist/index.js CHANGED
@@ -328,6 +328,15 @@ var import_tinymce_react = require("@tinymce/tinymce-react");
328
328
  var import_react9 = __toESM(require("react"));
329
329
  var CkEditor = (props) => {
330
330
  const editorRef = (0, import_react8.useRef)(null);
331
+ const onHandleChange = () => {
332
+ if (editorRef.current) {
333
+ let content = editorRef.current.getContent();
334
+ console.log(content);
335
+ if (props.onChange) {
336
+ props.onChange(content);
337
+ }
338
+ }
339
+ };
331
340
  return /* @__PURE__ */ import_react9.default.createElement("div", null, /* @__PURE__ */ import_react9.default.createElement(
332
341
  import_tinymce_react.Editor,
333
342
  {
@@ -362,10 +371,7 @@ var CkEditor = (props) => {
362
371
  toolbar: "undo redo | blocks | bold italic forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",
363
372
  content_style: "body { font-family:Helvetica,Arial,sans-serif; font-size:14px }"
364
373
  },
365
- onChange: (event, editor) => {
366
- const data = editor.getData();
367
- props.onChange && props.onChange(data);
368
- }
374
+ onChange: onHandleChange
369
375
  }
370
376
  ));
371
377
  };
@@ -1224,7 +1230,7 @@ var SwitchElement = (props) => {
1224
1230
  const onChange = (checked) => {
1225
1231
  props.onChange && props.onChange(checked);
1226
1232
  };
1227
- return /* @__PURE__ */ import_react29.default.createElement(import_antd20.Switch, { defaultChecked: true, onChange });
1233
+ return /* @__PURE__ */ import_react29.default.createElement(import_antd20.Switch, { defaultChecked: true, checkedChildren: props.checkedChildren, unCheckedChildren: props.unCheckedChildren, onChange });
1228
1234
  };
1229
1235
 
1230
1236
  // src/Components/Upload.tsx
package/dist/index.mjs CHANGED
@@ -258,6 +258,15 @@ import { Editor } from "@tinymce/tinymce-react";
258
258
  import React8 from "react";
259
259
  var CkEditor = (props) => {
260
260
  const editorRef = useRef(null);
261
+ const onHandleChange = () => {
262
+ if (editorRef.current) {
263
+ let content = editorRef.current.getContent();
264
+ console.log(content);
265
+ if (props.onChange) {
266
+ props.onChange(content);
267
+ }
268
+ }
269
+ };
261
270
  return /* @__PURE__ */ React8.createElement("div", null, /* @__PURE__ */ React8.createElement(
262
271
  Editor,
263
272
  {
@@ -292,10 +301,7 @@ var CkEditor = (props) => {
292
301
  toolbar: "undo redo | blocks | bold italic forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",
293
302
  content_style: "body { font-family:Helvetica,Arial,sans-serif; font-size:14px }"
294
303
  },
295
- onChange: (event, editor) => {
296
- const data = editor.getData();
297
- props.onChange && props.onChange(data);
298
- }
304
+ onChange: onHandleChange
299
305
  }
300
306
  ));
301
307
  };
@@ -1154,7 +1160,7 @@ var SwitchElement = (props) => {
1154
1160
  const onChange = (checked) => {
1155
1161
  props.onChange && props.onChange(checked);
1156
1162
  };
1157
- return /* @__PURE__ */ React28.createElement(Switch, { defaultChecked: true, onChange });
1163
+ return /* @__PURE__ */ React28.createElement(Switch, { defaultChecked: true, checkedChildren: props.checkedChildren, unCheckedChildren: props.unCheckedChildren, onChange });
1158
1164
  };
1159
1165
 
1160
1166
  // src/Components/Upload.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.15-Beta80",
3
+ "version": "0.0.15-Beta82",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",