@leabankab/component-library 6.0.0 → 6.1.0

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.
@@ -2,4 +2,5 @@ export * from './types';
2
2
  export * from './national-id';
3
3
  export * from './phone';
4
4
  export * from './bank-account';
5
+ export * from './reference-number';
5
6
  export * from './email';
@@ -0,0 +1,2 @@
1
+ export declare const modulo97: (digits: string) => number;
2
+ export declare const replaceLatinLettersWithNumbers: (value: string) => string;
@@ -0,0 +1,9 @@
1
+ import { ValidationResult } from './types';
2
+ /** Finnish domestic reference: 3–19 base digits and a 7-3-1 check digit. */
3
+ export declare function isValidFinnishDomesticReference(value: string): boolean;
4
+ /** ISO 11649 RF reference using Finland's 4–20 digit reference length. */
5
+ export declare function isValidFinnishRfReference(value: string): boolean;
6
+ /** Validates either a Finnish domestic or ISO 11649 RF reference. */
7
+ export declare function validateFinnishReference(value: string): ValidationResult;
8
+ /** Boolean convenience wrapper around {@link validateFinnishReference}. */
9
+ export declare function isValidFinnishReference(value: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leabankab/component-library",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "@leabankab/component-library — Lea Bank's React component library built on MUI.",
5
5
  "engines": {
6
6
  "node": ">=20"