-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Forms): add validation for dnr and fnr in `Field.NationalIdentit…
…yNumber` (#3771) Motivation from https://dnb-it.slack.com/archives/CMXABCHEY/p1720521252444219 --------- Co-authored-by: Tobias Høegh <[email protected]>
- Loading branch information
1 parent
652448c
commit 8a2da43
Showing
10 changed files
with
308 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
.../extensions/forms/Field/NationalIdentityNumber/stories/NationalIdentityNumber.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react' | ||
import { Field } from '../../..' | ||
|
||
export default { | ||
title: 'Eufemia/Extensions/Forms/NationalIdentityNumber', | ||
} | ||
|
||
export function NationalIdentityNumber() { | ||
return ( | ||
<> | ||
<Field.NationalIdentityNumber /> | ||
<Field.NationalIdentityNumber value="123" /> | ||
<Field.NationalIdentityNumber value="12345678901" /> | ||
</> | ||
) | ||
} |
Oops, something went wrong.