@josephomills/esign 0.9.3 → 0.9.5
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/ui/index.cjs +86 -68
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +86 -68
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
package/dist/ui/index.js
CHANGED
|
@@ -583,6 +583,7 @@ function FieldDesigner({
|
|
|
583
583
|
{
|
|
584
584
|
ref: stageRef,
|
|
585
585
|
onPointerDown: (e) => {
|
|
586
|
+
setSelectedId(null);
|
|
586
587
|
if (drawMode || e.pointerType === "mouse") setDrag({ mode: "new", start: rel(e) });
|
|
587
588
|
},
|
|
588
589
|
onPointerMove,
|
|
@@ -819,75 +820,92 @@ function FieldDesigner({
|
|
|
819
820
|
] }),
|
|
820
821
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
821
822
|
/* @__PURE__ */ jsx("div", { style: { fontSize: 12, fontWeight: 600, marginBottom: 4 }, children: "Earliest date" }),
|
|
822
|
-
/* @__PURE__ */ jsxs(
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
{
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
WebkitAppearance: "none"
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
),
|
|
852
|
-
/* @__PURE__ */ jsx(
|
|
853
|
-
"button",
|
|
854
|
-
{
|
|
855
|
-
type: "button",
|
|
856
|
-
"aria-label": "Open calendar",
|
|
857
|
-
onClick: () => minDateRef.current?.showPicker?.(),
|
|
858
|
-
style: {
|
|
859
|
-
border: "none",
|
|
860
|
-
background: "transparent",
|
|
861
|
-
cursor: "pointer",
|
|
862
|
-
fontSize: 14,
|
|
863
|
-
lineHeight: 1,
|
|
864
|
-
padding: "4px 8px 4px 2px"
|
|
865
|
-
},
|
|
866
|
-
children: "\u{1F4C5}"
|
|
823
|
+
/* @__PURE__ */ jsxs(
|
|
824
|
+
"div",
|
|
825
|
+
{
|
|
826
|
+
style: {
|
|
827
|
+
display: "inline-flex",
|
|
828
|
+
alignItems: "center",
|
|
829
|
+
border: "1px solid #d1d5db",
|
|
830
|
+
borderRadius: 6,
|
|
831
|
+
background: "#fff"
|
|
832
|
+
},
|
|
833
|
+
children: [
|
|
834
|
+
/* @__PURE__ */ jsx(
|
|
835
|
+
"input",
|
|
836
|
+
{
|
|
837
|
+
ref: minDateRef,
|
|
838
|
+
type: "date",
|
|
839
|
+
value: configField.minDate ?? "",
|
|
840
|
+
onChange: (e) => setConfig(configField.id, { minDate: e.target.value || null }),
|
|
841
|
+
style: {
|
|
842
|
+
border: "none",
|
|
843
|
+
outline: "none",
|
|
844
|
+
background: "transparent",
|
|
845
|
+
padding: "5px 4px 5px 8px",
|
|
846
|
+
fontSize: 13,
|
|
847
|
+
appearance: "none",
|
|
848
|
+
WebkitAppearance: "none"
|
|
867
849
|
}
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
850
|
+
}
|
|
851
|
+
),
|
|
852
|
+
configField.minDate ? /* @__PURE__ */ jsx(
|
|
853
|
+
"button",
|
|
854
|
+
{
|
|
855
|
+
type: "button",
|
|
856
|
+
"aria-label": "Clear earliest date",
|
|
857
|
+
onClick: () => setConfig(configField.id, { minDate: null }),
|
|
858
|
+
style: {
|
|
859
|
+
border: "none",
|
|
860
|
+
background: "transparent",
|
|
861
|
+
color: "#dc2626",
|
|
862
|
+
cursor: "pointer",
|
|
863
|
+
fontSize: 16,
|
|
864
|
+
lineHeight: 1,
|
|
865
|
+
padding: "2px 4px"
|
|
866
|
+
},
|
|
867
|
+
children: "\xD7"
|
|
868
|
+
}
|
|
869
|
+
) : null,
|
|
870
|
+
/* @__PURE__ */ jsx(
|
|
871
|
+
"button",
|
|
872
|
+
{
|
|
873
|
+
type: "button",
|
|
874
|
+
"aria-label": "Open calendar",
|
|
875
|
+
onClick: () => minDateRef.current?.showPicker?.(),
|
|
876
|
+
style: {
|
|
877
|
+
display: "inline-flex",
|
|
878
|
+
alignItems: "center",
|
|
879
|
+
border: "none",
|
|
880
|
+
background: "transparent",
|
|
881
|
+
color: "#6b7280",
|
|
882
|
+
cursor: "pointer",
|
|
883
|
+
padding: "4px 8px 4px 4px"
|
|
884
|
+
},
|
|
885
|
+
children: /* @__PURE__ */ jsxs(
|
|
886
|
+
"svg",
|
|
887
|
+
{
|
|
888
|
+
width: "15",
|
|
889
|
+
height: "15",
|
|
890
|
+
viewBox: "0 0 24 24",
|
|
891
|
+
fill: "none",
|
|
892
|
+
stroke: "currentColor",
|
|
893
|
+
strokeWidth: "2",
|
|
894
|
+
strokeLinecap: "round",
|
|
895
|
+
strokeLinejoin: "round",
|
|
896
|
+
"aria-hidden": "true",
|
|
897
|
+
children: [
|
|
898
|
+
/* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "4", rx: "2" }),
|
|
899
|
+
/* @__PURE__ */ jsx("path", { d: "M3 10h18M8 2v4M16 2v4" })
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
)
|
|
903
|
+
}
|
|
904
|
+
)
|
|
905
|
+
]
|
|
906
|
+
}
|
|
907
|
+
),
|
|
908
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#9ca3af", fontSize: 11, display: "block", marginTop: 4 }, children: "Leave blank to use the document's creation date." })
|
|
891
909
|
] })
|
|
892
910
|
]
|
|
893
911
|
}
|