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

Commit 63ecd77

Browse files
chore: promote main to stable
2 parents 180528a + 73c2862 commit 63ecd77

22 files changed

+1498
-1233
lines changed

.github/workflows/deploy-demo.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ permissions:
1616
jobs:
1717
deploy:
1818
runs-on: ubuntu-latest
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
1922
steps:
2023
- name: Generate token
2124
id: generate_token
@@ -41,8 +44,10 @@ jobs:
4144
- name: Install and Build
4245
run: |
4346
pnpm install
47+
rm -rf dist
4448
pnpm build
4549
cd demo
50+
rm -rf node_modules dist
4651
pnpm install
4752
pnpm build
4853
@@ -52,4 +57,5 @@ jobs:
5257
path: ./demo/dist
5358

5459
- name: Deploy to GitHub Pages
60+
id: deployment
5561
uses: actions/deploy-pages@v4

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm type-check && pnpm lint
1+
pnpm lint-staged && pnpm type-check && pnpm build

.prettierrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
{}
1+
{
2+
"singleQuote": true,
3+
"printWidth": 100
4+
}

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@superdoc-dev/esign": "link:../.",
1212
"react": "^18.3.1",
1313
"react-dom": "^18.3.1",
14-
"superdoc": "^0.29.0"
14+
"superdoc": "^0.35.3"
1515
},
1616
"devDependencies": {
1717
"@types/react": "^18.3.12",

demo/pnpm-lock.yaml

Lines changed: 7 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/src/App.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,4 +438,50 @@ header {
438438
.header-nav {
439439
gap: 1.5rem;
440440
}
441+
}
442+
443+
/* ===========================================
444+
eSign Component Customization Example
445+
=========================================== */
446+
447+
/*
448+
* The eSign component exposes CSS classes that you can target directly.
449+
* No special CSS variables needed - just write standard CSS!
450+
*
451+
* Available classes:
452+
* .superdoc-esign-container - Root container (also accepts className prop)
453+
* .superdoc-esign-document - Document section wrapper
454+
* .superdoc-esign-document-toolbar - Toolbar with download button
455+
* .superdoc-esign-document-controls - Control buttons container
456+
* .superdoc-esign-document-viewer - Scroll container (SuperDoc mounts inside)
457+
* .superdoc-esign-controls - Bottom section with fields + submit
458+
* .superdoc-esign-fields - Signer fields container
459+
* .superdoc-esign-actions - Action buttons container
460+
* .superdoc-esign-form-actions - Form submit button container
461+
*/
462+
463+
/* Example: Card-like styling */
464+
.superdoc-esign-container {
465+
border: 1px solid #e5e7eb;
466+
border-radius: 12px;
467+
overflow: hidden;
468+
}
469+
470+
.superdoc-esign-document-viewer {
471+
background: #f9fafb;
472+
}
473+
474+
.superdoc-esign-controls {
475+
margin-top: 0; /* Remove gap between viewer and controls */
476+
padding: 16px 20px;
477+
background: #f9fafb;
478+
border-top: 1px solid #e5e7eb;
479+
}
480+
481+
.superdoc-esign-fields {
482+
margin-bottom: 16px;
483+
}
484+
485+
.superdoc-esign-actions {
486+
gap: 12px;
441487
}

0 commit comments

Comments
 (0)