davis-components 0.3.22 → 0.3.23

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.
@@ -1,5 +1,5 @@
1
- import { r as Te } from "./immutable-YfnqQFMB.js";
2
- import "./Draft-CAw1r6Gg.js";
1
+ import { r as Te } from "./immutable-COD4zLW3.js";
2
+ import "./Draft-CtKHwNYO.js";
3
3
  function Oe(e) {
4
4
  return Ie(e) || we(e) || Se();
5
5
  }
@@ -4548,10 +4548,10 @@ const Et = (e, n) => {
4548
4548
  Ke,
4549
4549
  { stateToHTML: Ze }
4550
4550
  ] = await Promise.all([
4551
- import("./react-draft-wysiwyg-lVtJz2JS.js").then((ee) => ee.r),
4552
- import("./Draft-CAw1r6Gg.js").then((ee) => ee.D),
4553
- import("./html-to-draftjs-CdhgrGtJ.js").then((ee) => ee.h),
4554
- import("./main-BnKJi2yi.js")
4551
+ import("./react-draft-wysiwyg-CWIG85ko.js").then((ee) => ee.r),
4552
+ import("./Draft-CtKHwNYO.js").then((ee) => ee.D),
4553
+ import("./html-to-draftjs-B60ZHdLb.js").then((ee) => ee.h),
4554
+ import("./main-DEiv82vm.js")
4555
4555
  ]);
4556
4556
  H.current = Ee;
4557
4557
  const Se = Ke.default;
@@ -5718,74 +5718,74 @@ const Cr = ({
5718
5718
  ),
5719
5719
  titleClassName: "!bg-transparent !text-black !px-[8px] !text-[14px] !font-700 !translate-y-[35%] lg:!translate-y-[30%] !mr-0",
5720
5720
  gradientBorder: !1,
5721
- children: /* @__PURE__ */ t.jsx("form", { className: "flex flex-col gap-4 lg:gap-8", onSubmit: n0, children: /* @__PURE__ */ t.jsxs(
5722
- "div",
5723
- {
5724
- className: S(
5725
- n?.length == "8" ? "grid md:grid-cols-4 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "6" || n?.length == "3" ? "grid md:grid-cols-3 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "4" ? "grid md:grid-cols-4 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "2" || n?.length == "7" ? "grid md:grid-cols-3 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "10" ? "grid md:grid-cols-4 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "5" ? "grid md:grid-cols-3 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : ""
5726
- ),
5727
- children: [
5728
- n?.map(
5729
- (F) => F.component == "TextField" ? /* @__PURE__ */ t.jsx(
5730
- j2,
5731
- {
5732
- name: F.questionKey,
5733
- label: F.label,
5734
- value: R[F.questionKey],
5735
- onChange: (ee) => ce(ee.target.value, F.questionKey),
5736
- containerClassName: F.containerClassName,
5737
- labelClassName: F.labelClassName,
5738
- className: F.className,
5739
- ...F.props
5740
- },
5741
- F.label
5742
- ) : F.component == "Select" ? /* @__PURE__ */ t.jsx(
5743
- Sl,
5744
- {
5745
- onChange: (ee) => ce(ee, F.questionKey),
5746
- label: F.label,
5747
- options: F.options,
5748
- questionKey: F.questionKey,
5749
- containerClassName: F.containerClassName,
5750
- ...F.props
5751
- }
5752
- ) : F.component == "DateInput" ? /* @__PURE__ */ t.jsx(
5753
- vl,
5754
- {
5755
- ...F.props,
5756
- id: F.id,
5757
- label: F.label,
5758
- watch: c,
5759
- control: j,
5760
- errors: V,
5761
- containerClassName: F.containerClassName,
5762
- validation: F.validation,
5763
- onChange: (ee) => {
5764
- ce(ee.toString(), F.id);
5721
+ children: /* @__PURE__ */ t.jsxs("form", { className: "flex flex-col gap-4 lg:gap-8", onSubmit: n0, children: [
5722
+ /* @__PURE__ */ t.jsxs(
5723
+ "div",
5724
+ {
5725
+ className: S(
5726
+ n?.length == "8" ? "grid md:grid-cols-4 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "6" || n?.length == "3" ? "grid md:grid-cols-3 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "4" ? "grid md:grid-cols-4 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "2" || n?.length == "7" ? "grid md:grid-cols-3 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "10" ? "grid md:grid-cols-4 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : n?.length == "5" ? "grid md:grid-cols-3 grid-cols-2 lg:gap-8 gap-4 justify-center items-center" : ""
5727
+ ),
5728
+ children: [
5729
+ n?.map(
5730
+ (F) => F.component == "TextField" ? /* @__PURE__ */ t.jsx(
5731
+ j2,
5732
+ {
5733
+ name: F.questionKey,
5734
+ label: F.label,
5735
+ value: R[F.questionKey],
5736
+ onChange: (ee) => ce(ee.target.value, F.questionKey),
5737
+ containerClassName: F.containerClassName,
5738
+ labelClassName: F.labelClassName,
5739
+ className: F.className,
5740
+ ...F.props
5741
+ },
5742
+ F.label
5743
+ ) : F.component == "Select" ? /* @__PURE__ */ t.jsx(
5744
+ Sl,
5745
+ {
5746
+ onChange: (ee) => ce(ee, F.questionKey),
5747
+ label: F.label,
5748
+ options: F.options,
5749
+ questionKey: F.questionKey,
5750
+ containerClassName: F.containerClassName,
5751
+ ...F.props
5765
5752
  }
5766
- }
5767
- ) : F.component == "HeaderRadioOption" ? /* @__PURE__ */ t.jsx(
5768
- Jt,
5769
- {
5770
- ...F.props,
5771
- options: F.options,
5772
- formData: R[F.questionKey],
5773
- questionKey: F.questionKey,
5774
- onChange: (ee) => {
5775
- ce(ee, F.questionKey);
5753
+ ) : F.component == "DateInput" ? /* @__PURE__ */ t.jsx(
5754
+ vl,
5755
+ {
5756
+ ...F.props,
5757
+ id: F.id,
5758
+ label: F.label,
5759
+ watch: c,
5760
+ control: j,
5761
+ errors: V,
5762
+ containerClassName: F.containerClassName,
5763
+ validation: F.validation,
5764
+ onChange: (ee) => {
5765
+ ce(ee.toString(), F.id);
5766
+ }
5776
5767
  }
5777
- }
5778
- ) : F.component == "HeaderSwitchButton" ? /* @__PURE__ */ t.jsx(
5779
- lr,
5780
- {
5781
- options: F.options,
5782
- onChange: (ee) => ce(ee, F.questionKey)
5783
- }
5784
- ) : null
5785
- ),
5786
- /* @__PURE__ */ t.jsxs("div", { className: S("flex justify-center items-center"), children: [
5768
+ ) : F.component == "HeaderRadioOption" ? /* @__PURE__ */ t.jsx(
5769
+ Jt,
5770
+ {
5771
+ ...F.props,
5772
+ options: F.options,
5773
+ formData: R[F.questionKey],
5774
+ questionKey: F.questionKey,
5775
+ onChange: (ee) => {
5776
+ ce(ee, F.questionKey);
5777
+ }
5778
+ }
5779
+ ) : F.component == "HeaderSwitchButton" ? /* @__PURE__ */ t.jsx(
5780
+ lr,
5781
+ {
5782
+ options: F.options,
5783
+ onChange: (ee) => ce(ee, F.questionKey)
5784
+ }
5785
+ ) : null
5786
+ ),
5787
5787
  n?.length == "2" && Se ? /* @__PURE__ */ t.jsxs("div", { children: [
5788
- /* @__PURE__ */ t.jsx(P0, { label: ".", className: "text-transparent" }),
5788
+ /* @__PURE__ */ t.jsx(P0, { label: "button", className: "text-transparent" }),
5789
5789
  /* @__PURE__ */ t.jsx(
5790
5790
  s0,
5791
5791
  {
@@ -5797,12 +5797,12 @@ const Cr = ({
5797
5797
  className: "xs:text-xs md:text-sm lg:text-xl"
5798
5798
  }
5799
5799
  ),
5800
- className: " xs:!rounded-l-none xs:!rounded-r-[2px] md:!rounded-r xs:h-[29.8px] md:h-h-[29.8px] lg:h-[29.6px] !bg-transparent !border-[0.5px] border-success",
5800
+ className: " xs:!rounded-l-none xs:!rounded-r-[2px] md:!rounded-r xs:h-[22px] md:h-[21.6px] lg:h-[25.6px] !bg-transparent !border-[0.5px] border-success ",
5801
5801
  onClick: () => K(N(n))
5802
5802
  }
5803
5803
  )
5804
5804
  ] }) : null,
5805
- n?.length == "2" ? /* @__PURE__ */ t.jsxs("div", { className: "w-full", children: [
5805
+ n?.length == "2" ? /* @__PURE__ */ t.jsxs("div", { children: [
5806
5806
  /* @__PURE__ */ t.jsx(P0, { label: "button", className: "text-transparent" }),
5807
5807
  /* @__PURE__ */ t.jsx(
5808
5808
  s0,
@@ -5818,46 +5818,46 @@ const Cr = ({
5818
5818
  }
5819
5819
  )
5820
5820
  ] }) : null
5821
- ] }),
5822
- n?.length > "2" ? /* @__PURE__ */ t.jsxs(
5823
- "div",
5824
- {
5825
- className: "border-success ml-auto md:ml-0 mt-2 md:mt-0 mr-auto md:mr-0 !rounded-[2px] mx-auto w-1/3 self-center flex",
5826
- children: [
5827
- Se ? /* @__PURE__ */ t.jsx(
5828
- s0,
5829
- {
5830
- variant: "icon",
5831
- icon: /* @__PURE__ */ t.jsx(
5832
- Nl,
5833
- {
5834
- color: "black",
5835
- className: "xs:text-xs md:text-sm lg:text-xl"
5836
- }
5837
- ),
5838
- className: " xs:!rounded-l-none xs:!rounded-r-[2px] md:!rounded-r xs:h-[22px] md:h-[21.6px] lg:h-[25.6px] !bg-transparent !border-[0.5px] border-success ",
5839
- onClick: () => K(N(n))
5840
- }
5841
- ) : null,
5842
- /* @__PURE__ */ t.jsx(
5843
- s0,
5821
+ ]
5822
+ }
5823
+ ),
5824
+ n?.length > "2" ? /* @__PURE__ */ t.jsxs(
5825
+ "div",
5826
+ {
5827
+ className: "border-success ml-auto md:ml-0 mt-2 md:mt-0 mr-auto md:mr-0 !rounded-[2px] mx-auto w-1/3 self-center flex",
5828
+ children: [
5829
+ Se ? /* @__PURE__ */ t.jsx(
5830
+ s0,
5831
+ {
5832
+ variant: "icon",
5833
+ icon: /* @__PURE__ */ t.jsx(
5834
+ Nl,
5844
5835
  {
5845
- variant: "outlined",
5846
- title: f.SubmitTitle ? f.SubmitTitle : "نمایش اطلاعات",
5847
- type: "submit",
5848
- loading: Re,
5849
- className: S(
5850
- Se ? "!bg-success xs:!rounded-r-none xs:!rounded-l-[2px] md:!rounded-l !text-white " : "!bg-transparent xs:!rounded-[2px] md:!rounded",
5851
- "xs:h-[22px] md:h-[21.6px] lg:h-[25.6px] !border-success !text-[9px] lg:!text-xs hover:!bg-success hover:text-white w-full"
5852
- )
5836
+ color: "black",
5837
+ className: "xs:text-xs md:text-sm lg:text-xl"
5853
5838
  }
5839
+ ),
5840
+ className: " xs:!rounded-l-none xs:!rounded-r-[2px] md:!rounded-r xs:h-[22px] md:h-[21.6px] lg:h-[25.6px] !bg-transparent !border-[0.5px] border-success ",
5841
+ onClick: () => K(N(n))
5842
+ }
5843
+ ) : null,
5844
+ /* @__PURE__ */ t.jsx(
5845
+ s0,
5846
+ {
5847
+ variant: "outlined",
5848
+ title: f.SubmitTitle ? f.SubmitTitle : "نمایش اطلاعات",
5849
+ type: "submit",
5850
+ loading: Re,
5851
+ className: S(
5852
+ Se ? "!bg-success xs:!rounded-r-none xs:!rounded-l-[2px] md:!rounded-l !text-white " : "!bg-transparent xs:!rounded-[2px] md:!rounded",
5853
+ "xs:h-[22px] md:h-[21.6px] lg:h-[25.6px] !border-success !text-[9px] lg:!text-xs hover:!bg-success hover:text-white w-full"
5854
5854
  )
5855
- ]
5856
- }
5857
- ) : null
5858
- ]
5859
- }
5860
- ) })
5855
+ }
5856
+ )
5857
+ ]
5858
+ }
5859
+ ) : null
5860
+ ] })
5861
5861
  }
5862
5862
  ),
5863
5863
  y?.length ? /* @__PURE__ */ t.jsx(
package/dist/main.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BIpLT2ZY.cjs");exports.ArchiveTable=e.ArchiveTable;exports.Button=e.Button;exports.CFCHeader=e.CFCHeader;exports.CheckBox=e.CheckBox;exports.CheckBoxGroup=e.CheckBoxGroup;exports.DateInput=e.DateInput;exports.Divider=e.Divider;exports.Dropdown=e.Dropdown;exports.EmptyForm=e.EmptyForm;exports.FieldSet=e.FieldSet;exports.FileField=e.FileField;exports.FormFields=e.FormFields;exports.HTML=e.HTML;exports.Label=e.Label;exports.Modal=e.Modal;exports.Page=e.Page;exports.PageCard=e.PageCard;exports.Prescription=e.Prescription;exports.ProgressChart=e.ProgressChart;exports.ProjectName=e.ProjectName;exports.Radio=e.Radio;exports.RadioOptions=e.RadioOptions;exports.Select=e.Select;exports.SpecialistDashboardPage=e.SpecialistDashboardPage;exports.SpecialistFormPageHeader=e.Header;exports.SpecialistPrintPage=e.SpecialistPrintPage;exports.Tab=e.Tab;exports.Table=e.Table;exports.TextEditor=e.TextEditor;exports.TextField=e.TextField;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-CdN2XIgD.cjs");exports.ArchiveTable=e.ArchiveTable;exports.Button=e.Button;exports.CFCHeader=e.CFCHeader;exports.CheckBox=e.CheckBox;exports.CheckBoxGroup=e.CheckBoxGroup;exports.DateInput=e.DateInput;exports.Divider=e.Divider;exports.Dropdown=e.Dropdown;exports.EmptyForm=e.EmptyForm;exports.FieldSet=e.FieldSet;exports.FileField=e.FileField;exports.FormFields=e.FormFields;exports.HTML=e.HTML;exports.Label=e.Label;exports.Modal=e.Modal;exports.Page=e.Page;exports.PageCard=e.PageCard;exports.Prescription=e.Prescription;exports.ProgressChart=e.ProgressChart;exports.ProjectName=e.ProjectName;exports.Radio=e.Radio;exports.RadioOptions=e.RadioOptions;exports.Select=e.Select;exports.SpecialistDashboardPage=e.SpecialistDashboardPage;exports.SpecialistFormPageHeader=e.Header;exports.SpecialistPrintPage=e.SpecialistPrintPage;exports.Tab=e.Tab;exports.Table=e.Table;exports.TextEditor=e.TextEditor;exports.TextField=e.TextField;
package/dist/main.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, B as i, p as r, C as o, i as t, h as d, D as l, a as p, E as F, F as P, j as c, n as m, H as n, L as C, M as T, P as b, b as g, s as h, k as S, d as x, R as D, f as B, S as H, q as k, o as u, r as E, m as L, T as M, l as R, e as f } from "./main-yx7mJC0u.js";
1
+ import { A as e, B as i, p as r, C as o, i as t, h as d, D as l, a as p, E as F, F as P, j as c, n as m, H as n, L as C, M as T, P as b, b as g, s as h, k as S, d as x, R as D, f as B, S as H, q as k, o as u, r as E, m as L, T as M, l as R, e as f } from "./main-JDKHC7Rq.js";
2
2
  export {
3
3
  e as ArchiveTable,
4
4
  i as Button,
@@ -1,7 +1,7 @@
1
- import { g as ni } from "./main-yx7mJC0u.js";
1
+ import { g as ni } from "./main-JDKHC7Rq.js";
2
2
  import oi from "react";
3
- import { r as ri } from "./Draft-Bu61ox8H.js";
4
- import { r as ii } from "./immutable-YfnqQFMB.js";
3
+ import { r as ri } from "./Draft-BwcRWZBK.js";
4
+ import { r as ii } from "./immutable-COD4zLW3.js";
5
5
  function ai(Ge, rt) {
6
6
  for (var Ze = 0; Ze < rt.length; Ze++) {
7
7
  const ze = rt[Ze];
@@ -1,4 +1,4 @@
1
- "use strict";const ni=require("./main-BIpLT2ZY.cjs"),oi=require("react"),ri=require("./Draft-d06Boox0.cjs"),ii=require("./immutable-DdXXqq64.cjs");function ai(Ge,rt){for(var Ze=0;Ze<rt.length;Ze++){const ze=rt[Ze];if(typeof ze!="string"&&!Array.isArray(ze)){for(const Qe in ze)if(Qe!=="default"&&!(Qe in Ge)){const pe=Object.getOwnPropertyDescriptor(ze,Qe);pe&&Object.defineProperty(Ge,Qe,pe.get?pe:{enumerable:!0,get:()=>ze[Qe]})}}}return Object.freeze(Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"}))}var Mo={exports:{}};(function(Ge,rt){(function(Ze,ze){Ge.exports=ze(oi,ri.requireDraft(),ii.requireImmutable())})(window,function(Ze,ze,Qe){return Je={},pe.m=Rt=[function(S,A,E){S.exports=E(10)()},function(S,A){S.exports=Ze},function(S,A,E){var C;/*!
1
+ "use strict";const ni=require("./main-CdN2XIgD.cjs"),oi=require("react"),ri=require("./Draft-D6WThAIh.cjs"),ii=require("./immutable-CXRex_ro.cjs");function ai(Ge,rt){for(var Ze=0;Ze<rt.length;Ze++){const ze=rt[Ze];if(typeof ze!="string"&&!Array.isArray(ze)){for(const Qe in ze)if(Qe!=="default"&&!(Qe in Ge)){const pe=Object.getOwnPropertyDescriptor(ze,Qe);pe&&Object.defineProperty(Ge,Qe,pe.get?pe:{enumerable:!0,get:()=>ze[Qe]})}}}return Object.freeze(Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"}))}var Mo={exports:{}};(function(Ge,rt){(function(Ze,ze){Ge.exports=ze(oi,ri.requireDraft(),ii.requireImmutable())})(window,function(Ze,ze,Qe){return Je={},pe.m=Rt=[function(S,A,E){S.exports=E(10)()},function(S,A){S.exports=Ze},function(S,A,E){var C;/*!
2
2
  Copyright (c) 2017 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "dist/main.cjs.js",
4
4
  "module": "dist/main.es.js",
5
5
  "style": "dist/main.css",
6
- "version": "0.3.22",
6
+ "version": "0.3.23",
7
7
  "files": [
8
8
  "dist"
9
9
  ],