fds-vue-core 7.2.6 → 8.0.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.
@@ -5,6 +5,5 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
7
7
  export declare const InvalidNumber: Story;
8
- export declare const AllowAnyNumberType: Story;
9
8
  export declare const EnglishLocale: Story;
10
9
  export declare const ValidSwedishNumber: Story;
@@ -40,7 +40,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
40
40
  locale: string;
41
41
  defaultCountry: string;
42
42
  countries: import('./countries').CountryPhoneOption[];
43
- numberType: import('./types').FdsPhonenumberNumberType;
44
43
  selectClass: string;
45
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
45
  export default _default;
@@ -1,10 +1,5 @@
1
1
  import { FdsInputProps } from '../FdsInput/types';
2
2
  import { CountryPhoneOption } from './countries';
3
- /**
4
- * `mobile` – mobile numbers only (Google libphonenumber metadata).
5
- * `any` – mobile and fixed-line numbers.
6
- */
7
- export type FdsPhonenumberNumberType = 'mobile' | 'any';
8
3
  type FdsPhonenumberInputPassthroughProps = Pick<FdsInputProps, 'id' | 'autocomplete' | 'required' | 'placeholder' | 'maxlength' | 'minlength' | 'name' | 'autofocus' | 'readonly' | 'pattern'>;
9
4
  export interface FdsPhonenumberProps extends FdsPhonenumberInputPassthroughProps {
10
5
  label?: string;
@@ -22,8 +17,6 @@ export interface FdsPhonenumberProps extends FdsPhonenumberInputPassthroughProps
22
17
  countries?: CountryPhoneOption[];
23
18
  /** BCP 47 locale for country names in the list, e.g. `sv-SE` or `en`. Falls back to FDS i18n locale. */
24
19
  locale?: string;
25
- /** Which number types are accepted when validating with libphonenumber-js. */
26
- numberType?: FdsPhonenumberNumberType;
27
20
  disabled?: boolean;
28
21
  dataTestid?: string;
29
22
  selectClass?: string;
@@ -1,7 +1,3 @@
1
- import { FdsPhonenumberNumberType } from './types';
2
- interface ValidatePhoneOptions {
3
- numberType?: FdsPhonenumberNumberType;
4
- }
5
1
  /** Result shape kept stable for consumers (same fields as previous `phone` package integration). */
6
2
  export interface PhoneValidationResult {
7
3
  isValid: boolean;
@@ -10,7 +6,6 @@ export interface PhoneValidationResult {
10
6
  countryIso3: string | null;
11
7
  countryCode: string | null;
12
8
  }
13
- export declare function validatePhoneNumber(nationalNumber: string, countryIso2: string, options?: ValidatePhoneOptions): PhoneValidationResult;
9
+ export declare function validatePhoneNumber(nationalNumber: string, countryIso2: string): PhoneValidationResult;
14
10
  /** `null` when empty, otherwise whether the number is valid for the selected country. */
15
- export declare function getPhoneValidationState(nationalNumber: string, countryIso2: string, options?: ValidatePhoneOptions): boolean | null;
16
- export {};
11
+ export declare function getPhoneValidationState(nationalNumber: string, countryIso2: string): boolean | null;