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