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

Commit afe3e18

Browse files
committed
fix: update superdoc version and refactor consent handling
1 parent b6a68eb commit afe3e18

10 files changed

Lines changed: 144 additions & 148 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function App() {
5050
},
5151
{
5252
id: 'accept_terms',
53-
type: 'consent',
53+
type: 'checkbox',
5454
validation: { required: true },
5555
label: 'I accept the terms'
5656
}

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": "^19.1.1",
1313
"react-dom": "^19.1.1",
14-
"superdoc": "0.23.0-next.14"
14+
"superdoc": "^0.22.3"
1515
},
1616
"devDependencies": {
1717
"@types/react": "^19.1.13",

demo/pnpm-lock.yaml

Lines changed: 26 additions & 26 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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,20 @@ header p {
107107
border-color: #007aff;
108108
}
109109

110-
.consent-box {
110+
.checkbox-input {
111111
padding: 1rem;
112112
background: #f5f5f7;
113113
border-radius: 8px;
114114
}
115115

116-
.consent-box label {
116+
.checkbox-input label {
117117
display: flex;
118118
align-items: center;
119119
font-weight: normal;
120120
cursor: pointer;
121121
}
122122

123-
.consent-box input[type="checkbox"] {
123+
.checkbox-input input[type="checkbox"] {
124124
width: 20px;
125125
height: 20px;
126126
margin-right: 0.75rem;
@@ -293,13 +293,13 @@ small {
293293
border-radius: 0 0 8px 8px;
294294
}
295295

296-
.consent-list {
296+
.checkbox-list {
297297
display: flex;
298298
flex-direction: column;
299299
gap: 0.75rem;
300300
}
301301

302-
.consent-item {
302+
.checkbox-item {
303303
display: flex;
304304
align-items: center;
305305
padding: 1rem;
@@ -308,7 +308,7 @@ small {
308308
cursor: pointer;
309309
}
310310

311-
.consent-item input {
311+
.checkbox-item input {
312312
width: 20px;
313313
height: 20px;
314314
margin-right: 0.75rem;

demo/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export function App() {
121121
},
122122
{
123123
id: 'terms',
124-
type: 'consent',
124+
type: 'checkbox',
125125
label: 'I accept the terms and conditions',
126126
validation: { required: true }
127127
}

0 commit comments

Comments
 (0)