Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit cab8848

Browse files
authored
feat: enhance document download and UI components in app (#1)
* feat: enhance document download and UI components in App * chore: add commitlint configuration for conventional commit messages * chore: add commitlint and conventional commit configuration to devDependencies * chore: add data-testid attributes for testing in SuperDocESign component
1 parent e92c73e commit cab8848

6 files changed

Lines changed: 5395 additions & 2588 deletions

File tree

demo/src/App.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ export function App() {
111111
) : (
112112
<>
113113
<h2 style={{ marginBottom: '20px' }}>Employment Agreement</h2>
114+
<p style={{ marginBottom: '16px', color: '#666' }}>
115+
Use the document toolbar to download the current agreement at any time.
116+
</p>
114117
<SuperDocESign
115118
eventId={`demo-${Date.now()}`}
116119
document={{
@@ -144,6 +147,7 @@ export function App() {
144147
}
145148
]
146149
}}
150+
download={{ label: 'Download PDF' }}
147151
onSubmit={handleSubmit}
148152
onDownload={handleDownload}
149153
onStateChange={handleStateChange}
@@ -174,4 +178,4 @@ export function App() {
174178
)}
175179
</div>
176180
);
177-
}
181+
}

demo/src/index.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,28 @@ body {
88
font-family: system-ui, -apple-system, sans-serif;
99
-webkit-font-smoothing: antialiased;
1010
-moz-osx-font-smoothing: grayscale;
11-
}
11+
}
12+
13+
.superdoc-esign-document {
14+
border: 1px solid #e5e7eb;
15+
border-radius: 12px;
16+
overflow: hidden;
17+
background: #ffffff;
18+
}
19+
20+
.superdoc-esign-document-toolbar {
21+
background: #f9fafb;
22+
border-bottom: 1px solid #e5e7eb;
23+
}
24+
25+
.superdoc-esign-document-controls {
26+
justify-content: flex-end;
27+
}
28+
29+
.superdoc-esign-document-viewer {
30+
background: #ffffff;
31+
}
32+
33+
.superdoc-esign-form-actions {
34+
justify-content: flex-end;
35+
}

0 commit comments

Comments
 (0)