@esvndev/es-react-config-setting 1.0.36 → 1.0.37

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.js CHANGED
@@ -11595,6 +11595,7 @@ const SettingApp = (props) => {
11595
11595
  const _renderInput = (root, data) => {
11596
11596
  console.log((new Date()).getTime(), 111);
11597
11597
  switch (data.type) {
11598
+ case "switch":
11598
11599
  case "checkbox":
11599
11600
  return (jsxRuntime.jsx("div", { className: "checkbox", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "checkbox", className: "" }) }, data.id));
11600
11601
  case "radio":
@@ -11603,14 +11604,19 @@ const SettingApp = (props) => {
11603
11604
  return (jsxRuntime.jsx("div", { className: "combobox", title: data.description, children: jsxRuntime.jsxs(Input$1, { type: "select", className: "input-custom", name: data.name, id: data.name, children: [jsxRuntime.jsx("option", { value: "", children: "Ch\u1ECDn m\u1ED9t gi\u00E1 tr\u1ECB" }), data.option?.map((opt, index) => (jsxRuntime.jsx("option", { value: opt.value, children: opt.name }, index)))] }) }, data.id));
11604
11605
  case "text":
11605
11606
  return (jsxRuntime.jsx("div", { className: "text-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "text", className: "input-custom", placeholder: data.name }) }, data.id));
11607
+ case "password":
11608
+ return (jsxRuntime.jsx("div", { className: "text-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "password", className: "input-custom", placeholder: data.name }) }, data.id));
11606
11609
  case "number":
11607
11610
  return (jsxRuntime.jsx("div", { className: "number-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "number", className: "t-right input-custom", placeholder: data.name }) }, data.id));
11608
11611
  case "date":
11609
- return (jsxRuntime.jsx("div", { className: "date-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "date", className: "input-custom" }) }, data.id));
11610
- case "switch":
11611
- return (jsxRuntime.jsx("div", { className: "switch", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "switch", className: "input-custom", role: "switch" }) }, data.id));
11612
+ return (jsxRuntime.jsx("div", { className: "date-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "date", className: "t-right input-custom" }) }, data.id));
11613
+ case "time":
11614
+ return (jsxRuntime.jsx("div", { className: "date-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "time", className: "t-right input-custom" }) }, data.id));
11615
+ case "datetime":
11616
+ return (jsxRuntime.jsx("div", { className: "date-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "datetime", className: "t-right input-custom" }) }, data.id));
11612
11617
  case "slider":
11613
11618
  return (jsxRuntime.jsx("div", { className: "slider", title: data.description }, data.id));
11619
+ case "image":
11614
11620
  case "file":
11615
11621
  return (jsxRuntime.jsx("div", { className: "file-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "file", className: "input-custom" }) }, data.id));
11616
11622
  case "color":