tp-react-elements-dev 1.8.2 → 1.8.3

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.
@@ -42,10 +42,10 @@ export interface FormSectionPropsItem {
42
42
  removeButtons?: string;
43
43
  Fonts?: number[];
44
44
  FontFamily?: any;
45
- value1?: string | number;
46
- value2?: string | number;
47
- label1?: string | number;
48
- label2?: string | number;
45
+ value1?: string | number | boolean;
46
+ value2?: string | number | boolean;
47
+ label1?: string;
48
+ label2?: string;
49
49
  }
50
50
  export interface FormRenderProps {
51
51
  item: FormSectionPropsItem;
package/dist/index.esm.js CHANGED
@@ -54124,7 +54124,7 @@ const FormActiveSwitch = ({ props }) => {
54124
54124
  fontSize: "12px",
54125
54125
  fontWeight: 400,
54126
54126
  paddingRight: 10
54127
- } }, { children: item.label }))), jsxRuntimeExports.jsxs("span", Object.assign({ className: "switch prestashop-switch fixed-width-lg" }, { children: [jsxRuntimeExports.jsx("input", { checked: active, id: `${item.name}_on`, name: item.name, type: "radio", value: "Active", onChange: handleSwitchChange }), jsxRuntimeExports.jsx("label", Object.assign({ htmlFor: `${item.name}_on`, style: { textTransform: "none", fontFamily: 'Vietnam' } }, { children: (_c = item.label1) !== null && _c !== void 0 ? _c : "Active" })), jsxRuntimeExports.jsx("input", { checked: !active, id: `${item.name}_off`, name: item.name, type: "radio", value: "In Active", onChange: handleSwitchChange }), jsxRuntimeExports.jsx("label", Object.assign({ htmlFor: `${item.name}_off`, style: { textTransform: "none", fontFamily: 'Vietnam' } }, { children: (_d = item.label2) !== null && _d !== void 0 ? _d : "In Active" })), jsxRuntimeExports.jsx("a", { className: "slide-button btn" })] }))] })));
54127
+ } }, { children: item.label }))), jsxRuntimeExports.jsxs("span", Object.assign({ className: "switch prestashop-switch fixed-width-lg" }, { children: [jsxRuntimeExports.jsx("input", { checked: active, id: `${item.name}_on`, name: item.name, type: "radio", value: "Active", onChange: handleSwitchChange }), jsxRuntimeExports.jsx("label", Object.assign({ htmlFor: `${item.name}_on`, style: { textTransform: "none" } }, { children: (_c = item.label1) !== null && _c !== void 0 ? _c : "Active" })), jsxRuntimeExports.jsx("input", { checked: !active, id: `${item.name}_off`, name: item.name, type: "radio", value: "In Active", onChange: handleSwitchChange }), jsxRuntimeExports.jsx("label", Object.assign({ htmlFor: `${item.name}_off`, style: { textTransform: "none" } }, { children: (_d = item.label2) !== null && _d !== void 0 ? _d : "In Active" })), jsxRuntimeExports.jsx("a", { className: "slide-button btn" })] }))] })));
54128
54128
  };
54129
54129
 
54130
54130
  var joditReact = {exports: {}};
@@ -54143,7 +54143,7 @@ const RichTextEditor = ({ props }) => {
54143
54143
  const editor = useRef(null);
54144
54144
  const [content, setContent] = useState("");
54145
54145
  const value = props.getValues(props.item.name);
54146
- const config = Object.assign({ readonly: false, placeholder: "Start typing...", removeButtons: props.item.removeButtons, style: {
54146
+ const config = Object.assign({ readonly: false, placeholder: "Start typing...", statusbar: false, removeButtons: props.item.removeButtons, style: {
54147
54147
  "font-family": "Arial",
54148
54148
  }, controls: {
54149
54149
  font: {