maz-ui 4.0.0-beta.2 → 4.0.0-beta.4
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.
- package/dist/assets/MazCheckbox.BFo5eYS6.css +1 -0
- package/dist/assets/MazInputPhoneNumber.C-Nw3080.css +1 -0
- package/dist/assets/MazLazyImg.NlPRN3Nk.css +1 -0
- package/dist/assets/{MazPopover.Bth9NWia.css → MazPopover.COR-tym7.css} +1 -1
- package/dist/assets/{MazSelectCountry.D2Qudf0K.css → MazSelectCountry.9RTcDxtM.css} +1 -1
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.abk1IbMX.js → MazDropdown.vue_vue_type_style_index_0_lang.De5b1GG8.js} +6 -13
- package/dist/chunks/{MazInputPhoneNumber.Uwhn1Q9j.js → MazInputPhoneNumber.B7mxCHgU.js} +3 -3
- package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.DnCjlD6D.js → MazSwitch.vue_vue_type_style_index_0_lang.DQE0vFhe.js} +1 -1
- package/dist/chunks/{PhoneInput.CPjyZ8Sq.js → PhoneInput.tDA-TWr5.js} +1 -1
- package/dist/chunks/{en.BzBlrE0C.js → en.Q_4-KljL.js} +12 -0
- package/dist/components/MazCheckbox.js +2 -2
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazLazyImg.js +8 -8
- package/dist/components/MazPopover.js +13 -12
- package/dist/components/MazSelectCountry.js +2 -2
- package/dist/components/MazSwitch.js +1 -1
- package/dist/components/index.js +3 -3
- package/dist/composables/useAos.js +1 -1
- package/dist/composables/useDialog.js +1 -1
- package/dist/composables/useInjectStrict.js +2 -2
- package/dist/composables/useToast.js +1 -1
- package/dist/composables/useWait.js +1 -1
- package/dist/directives/vTooltip.js +1 -1
- package/dist/plugins/maz-ui.js +3 -64
- package/dist/types/components/MazDatePicker.vue.d.ts +11 -11
- package/dist/types/components/MazDialogPromise/useMazDialogPromise.d.ts +7 -7
- package/dist/types/components/MazDropdown.vue.d.ts +11 -11
- package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +2 -2
- package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +6 -2
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +28 -13
- package/dist/types/components/MazLazyImg.vue.d.ts +8 -8
- package/dist/types/components/MazPopover.vue.d.ts +10 -10
- package/dist/types/components/MazSelectCountry.vue.d.ts +2 -2
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/composables/useInjectStrict.d.ts +1 -1
- package/dist/types/directives/vClickOutside.d.ts +11 -18
- package/dist/types/directives/vFullscreenImg/fullscreen-img.directive.d.ts +3 -5
- package/dist/types/directives/vFullscreenImg.d.ts +9 -4
- package/dist/types/directives/vLazyImg/lazy-img.directive.d.ts +3 -5
- package/dist/types/directives/vLazyImg.d.ts +11 -6
- package/dist/types/directives/vTooltip.d.ts +12 -12
- package/dist/types/directives/vZoomImg/zoom-img.directive.d.ts +2 -0
- package/dist/types/directives/vZoomImg.d.ts +9 -5
- package/dist/types/plugins/aos.d.ts +30 -4
- package/dist/types/plugins/dialog.d.ts +2 -4
- package/dist/types/plugins/maz-ui.d.ts +2 -63
- package/dist/types/plugins/toast.d.ts +2 -4
- package/dist/types/plugins/wait.d.ts +2 -3
- package/package.json +24 -24
- package/dist/assets/MazCheckbox.C_qIngLy.css +0 -1
- package/dist/assets/MazInputPhoneNumber.vpA2mrZn.css +0 -1
- package/dist/assets/MazLazyImg.BNaVtpfX.css +0 -1
- package/dist/types/components/MazInputPhoneNumber/types.d.ts +0 -22
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AosOptions, DialogOptions, ToastOptions } from './index';
|
|
1
|
+
import { Plugin } from 'vue';
|
|
3
2
|
import { MazUiThemeOptions } from '@maz-ui/themes/src/plugin.js';
|
|
4
3
|
import { MazTranslationsOptions } from '@maz-ui/translations/src/index.js';
|
|
5
4
|
export interface MazUiOptions {
|
|
@@ -13,51 +12,6 @@ export interface MazUiOptions {
|
|
|
13
12
|
* Can not be disabled
|
|
14
13
|
*/
|
|
15
14
|
translations?: MazTranslationsOptions;
|
|
16
|
-
plugins?: {
|
|
17
|
-
/**
|
|
18
|
-
* If true or options are provided, the dialog plugin will be installed
|
|
19
|
-
* The dialog plugin configurations are available in the [dialog plugin documentation](./dialog.md)
|
|
20
|
-
*/
|
|
21
|
-
dialog?: boolean | DialogOptions;
|
|
22
|
-
/**
|
|
23
|
-
* If true or options are provided, the toast plugin will be installed
|
|
24
|
-
* The toast plugin configurations
|
|
25
|
-
*/
|
|
26
|
-
toast?: boolean | ToastOptions;
|
|
27
|
-
/**
|
|
28
|
-
* If true, the wait plugin will be installed
|
|
29
|
-
* No global options are available for this plugin
|
|
30
|
-
*/
|
|
31
|
-
wait?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* If true or options are provided, the aos plugin will be installed
|
|
34
|
-
* The aos plugin configurations
|
|
35
|
-
*/
|
|
36
|
-
aos?: boolean | AosOptions;
|
|
37
|
-
};
|
|
38
|
-
directives?: {
|
|
39
|
-
/**
|
|
40
|
-
* If true, the tooltip directive will be installed globally
|
|
41
|
-
*/
|
|
42
|
-
vTooltip?: boolean | VTooltipOptions;
|
|
43
|
-
/**
|
|
44
|
-
* If true, the lazy-img directive will be installed globally
|
|
45
|
-
*/
|
|
46
|
-
vLazyImg?: boolean | VLazyImgOptions;
|
|
47
|
-
/**
|
|
48
|
-
* If true, the click-outside directive will be installed globally
|
|
49
|
-
*/
|
|
50
|
-
vClickOutside?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* If true, the fullscreen-img directive will be installed globally
|
|
53
|
-
*/
|
|
54
|
-
vFullscreenImg?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* If true, the scroll-lock directive will be installed globally
|
|
57
|
-
* No global options are available for this plugin
|
|
58
|
-
*/
|
|
59
|
-
vZoomImg?: boolean;
|
|
60
|
-
};
|
|
61
15
|
}
|
|
62
16
|
/**
|
|
63
17
|
* @example
|
|
@@ -83,22 +37,7 @@ export interface MazUiOptions {
|
|
|
83
37
|
* },
|
|
84
38
|
* },
|
|
85
39
|
* },
|
|
86
|
-
* plugins: {
|
|
87
|
-
* dialog: true,
|
|
88
|
-
* toast: true,
|
|
89
|
-
* wait: true,
|
|
90
|
-
* aos: true,
|
|
91
|
-
* },
|
|
92
|
-
* directives: {
|
|
93
|
-
* vTooltip: true,
|
|
94
|
-
* vLazyImg: true,
|
|
95
|
-
* vClickOutside: true,
|
|
96
|
-
* vFullscreenImg: true,
|
|
97
|
-
* vZoomImg: true,
|
|
98
|
-
* },
|
|
99
40
|
* })
|
|
100
41
|
* ```
|
|
101
42
|
*/
|
|
102
|
-
export declare const MazUi:
|
|
103
|
-
install(app: import('vue').App<any>, options?: MazUiOptions): Promise<void>;
|
|
104
|
-
};
|
|
43
|
+
export declare const MazUi: Plugin<[MazUiOptions?]>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
2
|
import { ToastOptions } from './toast/types';
|
|
3
3
|
import { ToastHandler } from './toast/ToastHandler';
|
|
4
|
-
export declare const ToastPlugin:
|
|
5
|
-
install(app: App, options?: ToastOptions): void;
|
|
6
|
-
};
|
|
4
|
+
export declare const ToastPlugin: Plugin<[ToastOptions?]>;
|
|
7
5
|
declare module '@vue/runtime-core' {
|
|
8
6
|
interface ComponentCustomProperties {
|
|
9
7
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
1
2
|
type LoaderId = string | symbol | number;
|
|
2
3
|
export declare class WaitHandler {
|
|
3
4
|
private _loaders;
|
|
@@ -8,9 +9,7 @@ export declare class WaitHandler {
|
|
|
8
9
|
get anyLoading(): import('vue').ComputedRef<boolean>;
|
|
9
10
|
}
|
|
10
11
|
export declare const waitInstance: WaitHandler;
|
|
11
|
-
export declare const WaitPlugin:
|
|
12
|
-
install: (app: import('vue').App<any>) => void;
|
|
13
|
-
};
|
|
12
|
+
export declare const WaitPlugin: Plugin;
|
|
14
13
|
declare module '@vue/runtime-core' {
|
|
15
14
|
interface ComponentCustomProperties {
|
|
16
15
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.4",
|
|
5
5
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -182,60 +182,60 @@
|
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
"dependencies": {
|
|
185
|
-
"@maz-ui/cli": "4.0.0-beta.
|
|
186
|
-
"@maz-ui/
|
|
187
|
-
"@maz-ui/
|
|
188
|
-
"@maz-ui/
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
185
|
+
"@maz-ui/cli": "4.0.0-beta.4",
|
|
186
|
+
"@maz-ui/icons": "4.0.0-beta.4",
|
|
187
|
+
"@maz-ui/themes": "4.0.0-beta.4",
|
|
188
|
+
"@maz-ui/translations": "4.0.0-beta.4",
|
|
189
|
+
"@maz-ui/utils": "4.0.0-beta.4",
|
|
190
|
+
"chart.js": "^4.5.0",
|
|
191
|
+
"dayjs": "^1.11.13",
|
|
192
|
+
"libphonenumber-js": "^1.12.9",
|
|
193
|
+
"valibot": "^1.1.0",
|
|
194
|
+
"vue-chartjs": "^5.3.2"
|
|
194
195
|
},
|
|
195
196
|
"devDependencies": {
|
|
196
|
-
"@maz-ui/eslint-config": "4.0.0-beta.
|
|
197
|
-
"@maz-ui/icons": "4.0.0-beta.2",
|
|
197
|
+
"@maz-ui/eslint-config": "4.0.0-beta.4",
|
|
198
198
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
199
199
|
"@vitest/coverage-v8": "^3.2.4",
|
|
200
|
-
"@vue/compiler-sfc": "
|
|
200
|
+
"@vue/compiler-sfc": "^3.5.16",
|
|
201
201
|
"@vue/test-utils": "^2.4.6",
|
|
202
202
|
"@vue/tsconfig": "^0.7.0",
|
|
203
203
|
"autoprefixer": "^10.4.21",
|
|
204
204
|
"chalk": "5.4.1",
|
|
205
|
-
"glob": "
|
|
205
|
+
"glob": "^11.0.3",
|
|
206
206
|
"jsdom": "^26.1.0",
|
|
207
207
|
"lightningcss": "^1.30.1",
|
|
208
208
|
"nuxt": "^3.17.5",
|
|
209
|
-
"postcss": "
|
|
209
|
+
"postcss": "^8.5.6",
|
|
210
210
|
"postcss-html": "^1.8.0",
|
|
211
|
-
"postcss-import": "
|
|
211
|
+
"postcss-import": "^16.1.0",
|
|
212
212
|
"postcss-nested": "^7.0.2",
|
|
213
213
|
"postcss-replace": "^2.0.1",
|
|
214
214
|
"postcss-url": "^10.1.3",
|
|
215
|
-
"sass": "
|
|
215
|
+
"sass": "^1.89.1",
|
|
216
216
|
"stylelint": "^16.20.0",
|
|
217
217
|
"stylelint-config-recommended-vue": "^1.6.0",
|
|
218
218
|
"stylelint-config-standard": "^38.0.0",
|
|
219
219
|
"stylelint-config-standard-scss": "^15.0.1",
|
|
220
220
|
"stylelint-config-tailwindcss": "^1.0.0",
|
|
221
|
-
"stylelint-scss": "
|
|
221
|
+
"stylelint-scss": "^6.12.0",
|
|
222
222
|
"tailwindcss": "^3.4.16",
|
|
223
|
-
"typescript": "
|
|
223
|
+
"typescript": "~5.8.3",
|
|
224
224
|
"unplugin-auto-import": "^19.3.0",
|
|
225
225
|
"unplugin-vue-components": "^28.7.0",
|
|
226
226
|
"vite": "^6.3.5",
|
|
227
|
-
"vite-plugin-dts": "
|
|
227
|
+
"vite-plugin-dts": "^4.5.4",
|
|
228
228
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
229
229
|
"vite-svg-loader": "^5.1.0",
|
|
230
|
-
"vitest": "
|
|
230
|
+
"vitest": "^3.2.4",
|
|
231
231
|
"vitest-canvas-mock": "^0.3.3",
|
|
232
|
-
"vue": "
|
|
232
|
+
"vue": "^3.5.17",
|
|
233
233
|
"vue-router": "^4.5.1",
|
|
234
|
-
"vue-tsc": "
|
|
234
|
+
"vue-tsc": "^2.2.10"
|
|
235
235
|
},
|
|
236
236
|
"lint-staged": {
|
|
237
237
|
"*.{js,ts,vue,mjs,mts,cjs,md}": "cross-env NODE_ENV=production eslint --fix",
|
|
238
238
|
"*.{vue,css,scss,postcss,pcss}": "stylelint --fix --allow-empty-input"
|
|
239
239
|
},
|
|
240
|
-
"gitHead": "
|
|
240
|
+
"gitHead": "72d10dc17b2335002ee2a1cf21a62161554a83bb"
|
|
241
241
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.m-checkbox[data-v-cd527f18]{vertical-align:top;outline-offset:2px;outline:2px solid #0000;align-items:center;gap:.5rem;display:inline-flex;position:relative}.m-checkbox .check-icon[data-v-cd527f18]{--maz-tw-scale-x:0;--maz-tw-scale-y:0;transform:translate(var(--maz-tw-translate-x),var(--maz-tw-translate-y))rotate(var(--maz-tw-rotate))skewX(var(--maz-tw-skew-x))skewY(var(--maz-tw-skew-y))scaleX(var(--maz-tw-scale-x))scaleY(var(--maz-tw-scale-y));transition-property:transform;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-checkbox .check-icon[data-v-cd527f18] path{stroke-width:2.5px}.m-checkbox>span[data-v-cd527f18]{border-radius:calc(var(--maz-radius) - 4px);border-width:var(--maz-border-width);--maz-tw-border-opacity:1;border-color:hsl(var(--maz-border)/var(--maz-tw-border-opacity,1));justify-content:center;align-items:center;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:flex;position:relative}.m-checkbox>span[data-v-cd527f18]:is([class~=dark] *){--maz-tw-border-opacity:1;border-color:hsl(var(--maz-border-400)/var(--maz-tw-border-opacity,1))}.m-checkbox input[data-v-cd527f18]{display:none}.m-checkbox input:not(:checked)~span[data-v-cd527f18]{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-background)/var(--maz-tw-bg-opacity,1))}.m-checkbox input:not(:checked)~span[data-v-cd527f18]:is([class~=dark] *){background-color:hsl(var(--maz-background-400)/.6)}.m-checkbox input:checked~span[data-v-cd527f18]{border-color:var(--checkbox-selected-color);background-color:var(--checkbox-selected-color)}.m-checkbox input:checked~span .check-icon[data-v-cd527f18]{--maz-tw-scale-x:1;--maz-tw-scale-y:1;transform:translate(var(--maz-tw-translate-x),var(--maz-tw-translate-y))rotate(var(--maz-tw-rotate))skewX(var(--maz-tw-skew-x))skewY(var(--maz-tw-skew-y))scaleX(var(--maz-tw-scale-x))scaleY(var(--maz-tw-scale-y))}.m-checkbox input:disabled~span[data-v-cd527f18]{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-background-400)/var(--maz-tw-bg-opacity,1))}.m-checkbox input:disabled~span[data-v-cd527f18]:is([class~=dark] *){--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-background-300)/var(--maz-tw-bg-opacity,1))}.m-checkbox.--disabled[data-v-cd527f18]{cursor:not-allowed;--maz-tw-text-opacity:1;color:hsl(var(--maz-muted)/var(--maz-tw-text-opacity,1))}.m-checkbox.--disabled input:checked~span[data-v-cd527f18]{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-border)/var(--maz-tw-border-opacity,1))}.m-checkbox.--disabled input:checked~span .check-icon[data-v-cd527f18]{--maz-tw-text-opacity:1;color:hsl(var(--maz-muted)/var(--maz-tw-text-opacity,1))}.m-checkbox[data-v-cd527f18]:not(.--disabled){cursor:pointer}.m-checkbox:not(.--disabled):hover>span[data-v-cd527f18],.m-checkbox:not(.--disabled):focus>span[data-v-cd527f18]{box-shadow:0 0 0 .125rem var(--checkbox-box-shadow-color);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-checkbox__text[data-v-cd527f18]{flex-direction:column;gap:0;display:flex}.m-checkbox__hint[data-v-cd527f18]{--maz-tw-text-opacity:1;color:hsl(var(--maz-muted)/var(--maz-tw-text-opacity,1));font-size:.875rem;line-height:1.25rem}.m-checkbox__hint.--error[data-v-cd527f18]{--maz-tw-text-opacity:1;color:hsl(var(--maz-destructive-600)/var(--maz-tw-text-opacity,1))}.m-checkbox__hint.--success[data-v-cd527f18]{--maz-tw-text-opacity:1;color:hsl(var(--maz-success-600)/var(--maz-tw-text-opacity,1))}.m-checkbox__hint.--warning[data-v-cd527f18]{--maz-tw-text-opacity:1;color:hsl(var(--maz-warning-600)/var(--maz-tw-text-opacity,1))}.m-checkbox.--error>span[data-v-cd527f18],.m-checkbox.--warning>span[data-v-cd527f18],.m-checkbox.--success>span[data-v-cd527f18]{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.m-input-phone-number[data-v-4fb69048]{vertical-align:top;align-items:center;display:inline-flex;position:relative}.m-input-phone-number.--block[data-v-4fb69048]{width:100%}.m-input-phone-number.--col[data-v-4fb69048]{flex-direction:column}.m-input-phone-number.--col .m-input-phone-number__country-select[data-v-4fb69048],.m-input-phone-number.--col .m-input-phone-number__country-select[data-v-4fb69048] .m-select-country__select{min-width:100%}.m-input-phone-number.--col .m-input-phone-number__country-select[data-v-4fb69048] .m-select-country__select .m-input-wrapper{border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--maz-radius)}.m-input-phone-number.--row[data-v-4fb69048]{flex-direction:row}.m-input-phone-number.--row .m-input-phone-number__country-select[data-v-4fb69048] .m-select-country__select .m-input-wrapper{border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.m-input-phone-number.--responsive[data-v-4fb69048]{flex-direction:column}@media (min-width:576px){.m-input-phone-number.--responsive[data-v-4fb69048]{flex-direction:row}}.m-input-phone-number.--responsive .m-input-phone-number__country-select[data-v-4fb69048]{min-width:100%}@media (min-width:576px){.m-input-phone-number.--responsive .m-input-phone-number__country-select[data-v-4fb69048]{min-width:inherit}}.m-input-phone-number.--responsive .m-input-phone-number__country-select[data-v-4fb69048] .m-select-country__select{min-width:100%}@media (min-width:576px){.m-input-phone-number.--responsive .m-input-phone-number__country-select[data-v-4fb69048] .m-select-country__select{min-width:inherit}}.m-input-phone-number.--responsive .m-input-phone-number__country-select[data-v-4fb69048] .m-input-wrapper{border-bottom-right-radius:0;border-bottom-left-radius:0}@media (min-width:576px){.m-input-phone-number.--responsive .m-input-phone-number__country-select[data-v-4fb69048] .m-input-wrapper{border-bottom-right-radius:var(--maz-radius);border-bottom-left-radius:var(--maz-radius);border-top-right-radius:0;border-bottom-right-radius:0}}.m-input-phone-number__country-list-code[data-v-4fb69048]{text-align:center;--maz-tw-text-opacity:1;min-width:2rem;color:hsl(var(--maz-muted)/var(--maz-tw-text-opacity,1))}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.m-lazy-img-component[data-v-203eb0b3]{vertical-align:top;justify-content:center;align-items:center;display:inline-flex;position:relative}.m-lazy-img-component.--block[data-v-203eb0b3],.m-lazy-img-component.--block img[data-v-203eb0b3]{width:100%}.m-lazy-img-component-loader[data-v-203eb0b3]{justify-content:center;align-items:center;display:none;position:absolute;inset:0}.m-lazy-img-component.--height-full img[data-v-203eb0b3]{width:min-content!important;max-width:min-content!important;max-height:100%!important}.m-lazy-img-component.m-lazy-error[data-v-203eb0b3]:not(.m-lazy-fallback){--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-background-400)/var(--maz-tw-bg-opacity,1))}.m-lazy-img-component.m-lazy-error:not(.m-lazy-fallback) img[data-v-203eb0b3]{width:50%;height:50%}.m-lazy-img-component.m-lazy-loading .m-lazy-img-component-loader[data-v-203eb0b3]{display:flex}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CountryCallingCode, CountryCode, NationalNumber, NumberType } from 'libphonenumber-js';
|
|
2
|
-
export interface Results {
|
|
3
|
-
isValid: boolean;
|
|
4
|
-
isPossible?: boolean;
|
|
5
|
-
countryCode?: CountryCode | undefined | null;
|
|
6
|
-
parsedCountryCode?: CountryCode | undefined | null;
|
|
7
|
-
countryCallingCode?: CountryCallingCode;
|
|
8
|
-
nationalNumber?: NationalNumber;
|
|
9
|
-
type?: NumberType;
|
|
10
|
-
formatInternational?: string;
|
|
11
|
-
formatNational?: string;
|
|
12
|
-
uri?: string;
|
|
13
|
-
e164?: string;
|
|
14
|
-
rfc3966?: string;
|
|
15
|
-
possibleCountries?: CountryCode[];
|
|
16
|
-
phoneNumber?: string | undefined | null;
|
|
17
|
-
}
|
|
18
|
-
export interface Country {
|
|
19
|
-
name: string;
|
|
20
|
-
code: CountryCode;
|
|
21
|
-
dialCode: CountryCallingCode;
|
|
22
|
-
}
|