maz-ui 2.3.10 → 3.0.0-beta.2
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/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/no_photo-4ae7c0fa.js +1 -0
- package/dist/cjs/no_photo-4ae7c0fa.js.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/main.css +1454 -0
- package/dist/no_photo-a72545e4.js +2 -0
- package/dist/no_photo-a72545e4.js.map +1 -0
- package/dist/package.json +136 -0
- package/dist/types/components/MazArrowIcon.vue.d.ts +37 -0
- package/dist/types/components/MazAvatar.vue.d.ts +110 -0
- package/dist/types/components/MazBackDrop.vue.d.ts +90 -0
- package/dist/types/components/MazBottomSheet.vue.d.ts +31 -0
- package/dist/types/components/MazBtn.vue.d.ts +120 -0
- package/dist/types/components/MazCard.vue.d.ts +149 -0
- package/dist/types/components/MazCheckbox.vue.d.ts +40 -0
- package/dist/types/components/MazDialog.vue.d.ts +15 -0
- package/dist/types/components/MazDropzone/index.vue.d.ts +90 -0
- package/dist/types/components/MazGallery.vue.d.ts +117 -0
- package/dist/types/components/MazIcon.vue.d.ts +63 -0
- package/dist/types/components/MazInput.vue.d.ts +206 -0
- package/dist/types/components/MazInputPrice.vue.d.ts +47 -0
- package/dist/types/components/MazLazyImg.vue.d.ts +69 -0
- package/dist/types/components/MazPhoneNumberInput/constantes/locales.d.ts +11 -0
- package/dist/types/components/MazPhoneNumberInput/index.vue.d.ts +195 -0
- package/dist/types/components/MazPhoneNumberInput/types.d.ts +19 -0
- package/dist/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +3 -0
- package/dist/types/components/MazPhoneNumberInput/utils/index.d.ts +15 -0
- package/dist/types/components/MazSelect.vue.d.ts +110 -0
- package/dist/types/components/MazSpinner.vue.d.ts +25 -0
- package/dist/types/components/MazTransitionExpand.vue.d.ts +4 -0
- package/dist/types/components/index.d.ts +18 -0
- package/dist/types/components/types.d.ts +50 -0
- package/dist/types/components_tmp/MazCalendar/types.d.ts +16 -0
- package/dist/types/components_tmp/MazChart/includes.d.ts +11 -0
- package/dist/types/components_tmp/MazMap/map-module/create-html-marker.d.ts +18 -0
- package/dist/types/components_tmp/MazMap/map-module/map.d.ts +43 -0
- package/dist/types/components_tmp/MazMap/map-module/script-loader.d.ts +17 -0
- package/dist/types/components_tmp/MazPromiseDialog/use-maz-promise-dialog.d.ts +28 -0
- package/dist/types/components_tmp/MazSlider/utils.d.ts +15 -0
- package/dist/types/components_tmp/MazTabs/maz-tabs.composable.d.ts +3 -0
- package/dist/types/components_tmp/toaster/index.d.ts +3 -0
- package/dist/types/components_tmp/toaster/positions.d.ts +8 -0
- package/dist/types/components_tmp/toaster/timer.d.ts +11 -0
- package/dist/types/components_tmp/toaster/use-toast.d.ts +21 -0
- package/dist/types/directives/click-outside.directive.d.ts +10 -0
- package/dist/types/directives/closable.directive.d.ts +5 -0
- package/dist/types/directives/index.d.ts +4 -0
- package/dist/types/directives/v-lazy-img/index.d.ts +9 -0
- package/dist/types/directives/v-lazy-img/lazy-img-handler.d.ts +38 -0
- package/dist/types/directives/v-lazy-img/lazy-img.directive.d.ts +3 -0
- package/dist/types/directives/v-lazy-img/types.d.ts +51 -0
- package/dist/types/directives/zoom-img.directive.d.ts +5 -0
- package/dist/types/filters/capitalize.d.ts +1 -0
- package/dist/types/filters/currency.d.ts +5 -0
- package/dist/types/filters/date.d.ts +1 -0
- package/dist/types/filters/index.d.ts +5 -0
- package/dist/types/filters/number.d.ts +1 -0
- package/dist/types/filters/telephone.d.ts +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.esm.d.ts +8 -0
- package/dist/types/utils/debounce.d.ts +7 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/injectStrict.d.ts +1 -0
- package/package.json +103 -84
- package/LICENSE +0 -21
- package/README.md +0 -66
- package/bin/index.js +0 -63
- package/bin/lib/_constantes/default-colors.js +0 -69
- package/bin/lib/index.d.ts +0 -2
- package/bin/lib/index.js +0 -145
- package/bin/lib/methods/generate-root-css.js +0 -49
- package/bin/lib/methods/get-theme-settings.js +0 -58
- package/bin/lib/methods/set-css-vars.js +0 -11
- package/lib/css/base.css +0 -1
- package/lib/css/index.css +0 -1
- package/lib/css/maz-avatar.css +0 -1
- package/lib/css/maz-bottom-sheet.css +0 -1
- package/lib/css/maz-btn-group.css +0 -1
- package/lib/css/maz-btn.css +0 -0
- package/lib/css/maz-card.css +0 -1
- package/lib/css/maz-carousel.css +0 -1
- package/lib/css/maz-checkbox.css +0 -1
- package/lib/css/maz-collapse.css +0 -1
- package/lib/css/maz-dialog.css +0 -1
- package/lib/css/maz-draggable-list.css +0 -1
- package/lib/css/maz-dropdown.css +0 -1
- package/lib/css/maz-dropzone.css +0 -1
- package/lib/css/maz-flex.css +0 -0
- package/lib/css/maz-gallery.css +0 -0
- package/lib/css/maz-img.css +0 -1
- package/lib/css/maz-input-tags.css +0 -1
- package/lib/css/maz-input.css +0 -0
- package/lib/css/maz-list-item.css +0 -1
- package/lib/css/maz-list.css +0 -1
- package/lib/css/maz-loader.css +0 -0
- package/lib/css/maz-pagination.css +0 -1
- package/lib/css/maz-phone-number-input.css +0 -1
- package/lib/css/maz-picker.css +0 -1
- package/lib/css/maz-plotly.css +0 -0
- package/lib/css/maz-progress-bar.css +0 -1
- package/lib/css/maz-radio.css +0 -1
- package/lib/css/maz-read-more.css +0 -1
- package/lib/css/maz-responsive-menu.css +0 -1
- package/lib/css/maz-search.css +0 -1
- package/lib/css/maz-select.css +0 -0
- package/lib/css/maz-sidebar.css +0 -1
- package/lib/css/maz-slider.css +0 -1
- package/lib/css/maz-spinner.css +0 -0
- package/lib/css/maz-stepper.css +0 -1
- package/lib/css/maz-switch.css +0 -1
- package/lib/css/maz-tabs-bar.css +0 -1
- package/lib/css/maz-tabs-content-item.css +0 -1
- package/lib/css/maz-tabs-content.css +0 -1
- package/lib/css/maz-transition-expand.css +0 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/maz-avatar.d.ts +0 -3
- package/lib/maz-avatar.js +0 -430
- package/lib/maz-bottom-sheet.d.ts +0 -3
- package/lib/maz-bottom-sheet.js +0 -1046
- package/lib/maz-btn-group.d.ts +0 -3
- package/lib/maz-btn-group.js +0 -908
- package/lib/maz-btn.d.ts +0 -3
- package/lib/maz-btn.js +0 -765
- package/lib/maz-card.d.ts +0 -3
- package/lib/maz-card.js +0 -571
- package/lib/maz-carousel.d.ts +0 -3
- package/lib/maz-carousel.js +0 -569
- package/lib/maz-checkbox.d.ts +0 -3
- package/lib/maz-checkbox.js +0 -359
- package/lib/maz-collapse.d.ts +0 -3
- package/lib/maz-collapse.js +0 -1239
- package/lib/maz-dialog.d.ts +0 -3
- package/lib/maz-dialog.js +0 -1315
- package/lib/maz-draggable-list.d.ts +0 -3
- package/lib/maz-draggable-list.js +0 -439
- package/lib/maz-dropdown.d.ts +0 -3
- package/lib/maz-dropdown.js +0 -438
- package/lib/maz-dropzone.d.ts +0 -3
- package/lib/maz-dropzone.js +0 -664
- package/lib/maz-flex.d.ts +0 -3
- package/lib/maz-flex.js +0 -427
- package/lib/maz-gallery.d.ts +0 -3
- package/lib/maz-gallery.js +0 -673
- package/lib/maz-img.d.ts +0 -3
- package/lib/maz-img.js +0 -613
- package/lib/maz-input-tags.d.ts +0 -3
- package/lib/maz-input-tags.js +0 -1208
- package/lib/maz-input.d.ts +0 -3
- package/lib/maz-input.js +0 -1076
- package/lib/maz-list-item.d.ts +0 -3
- package/lib/maz-list-item.js +0 -304
- package/lib/maz-list.d.ts +0 -3
- package/lib/maz-list.js +0 -331
- package/lib/maz-loader.d.ts +0 -3
- package/lib/maz-loader.js +0 -304
- package/lib/maz-pagination.d.ts +0 -3
- package/lib/maz-pagination.js +0 -1415
- package/lib/maz-phone-number-input.d.ts +0 -3
- package/lib/maz-phone-number-input.js +0 -3778
- package/lib/maz-picker.d.ts +0 -3
- package/lib/maz-picker.js +0 -6472
- package/lib/maz-plotly.d.ts +0 -3
- package/lib/maz-plotly.js +0 -500
- package/lib/maz-progress-bar.d.ts +0 -3
- package/lib/maz-progress-bar.js +0 -398
- package/lib/maz-radio.d.ts +0 -3
- package/lib/maz-radio.js +0 -358
- package/lib/maz-read-more.d.ts +0 -3
- package/lib/maz-read-more.js +0 -344
- package/lib/maz-responsive-menu.d.ts +0 -3
- package/lib/maz-responsive-menu.js +0 -438
- package/lib/maz-search.d.ts +0 -3
- package/lib/maz-search.js +0 -1590
- package/lib/maz-select.d.ts +0 -3
- package/lib/maz-select.js +0 -2743
- package/lib/maz-sidebar.d.ts +0 -3
- package/lib/maz-sidebar.js +0 -815
- package/lib/maz-slider.d.ts +0 -3
- package/lib/maz-slider.js +0 -1014
- package/lib/maz-spinner.d.ts +0 -3
- package/lib/maz-spinner.js +0 -329
- package/lib/maz-stepper.d.ts +0 -3
- package/lib/maz-stepper.js +0 -1012
- package/lib/maz-switch.d.ts +0 -3
- package/lib/maz-switch.js +0 -375
- package/lib/maz-tabs-bar.d.ts +0 -3
- package/lib/maz-tabs-bar.js +0 -428
- package/lib/maz-tabs-content-item.d.ts +0 -3
- package/lib/maz-tabs-content-item.js +0 -376
- package/lib/maz-tabs-content.d.ts +0 -3
- package/lib/maz-tabs-content.js +0 -367
- package/lib/maz-transition-expand.d.ts +0 -3
- package/lib/maz-transition-expand.js +0 -328
- package/lib/maz-ui.common.d.ts +0 -1
- package/lib/maz-ui.common.js +0 -17200
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { directive as vClickOutside, default as vClickOutsideInstall, } from './click-outside.directive';
|
|
2
|
+
export { directive as vClosable, default as vClosableInstall, } from './closable.directive';
|
|
3
|
+
export { directive as vZoomImg, default as vZoomImgInstall, } from './zoom-img.directive';
|
|
4
|
+
export { directive as vLazyImg, default as vLazyImgInstall } from './v-lazy-img';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Directive, App } from 'vue';
|
|
2
|
+
import { GlobalOptions } from './types';
|
|
3
|
+
export * from './types';
|
|
4
|
+
declare const directive: Directive;
|
|
5
|
+
declare const plugin: {
|
|
6
|
+
install(app: App, opts?: GlobalOptions): void;
|
|
7
|
+
};
|
|
8
|
+
export { directive };
|
|
9
|
+
export default plugin;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ClassOptions, LazyImgBinding, GlobalOptions } from './types';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export declare const DEFAULT_OPTIONS: ClassOptions;
|
|
4
|
+
export declare class LazyImg {
|
|
5
|
+
private observers;
|
|
6
|
+
private readonly defaultOptions;
|
|
7
|
+
private options;
|
|
8
|
+
private onImgLoadedCallback;
|
|
9
|
+
private onImgErrorCallback;
|
|
10
|
+
private hasImgLoaded;
|
|
11
|
+
constructor(opts?: GlobalOptions);
|
|
12
|
+
private loadErrorPhoto;
|
|
13
|
+
private buildOptions;
|
|
14
|
+
private removeClass;
|
|
15
|
+
private addClass;
|
|
16
|
+
private removeAllStateClasses;
|
|
17
|
+
private setBaseClass;
|
|
18
|
+
private imageIsLoading;
|
|
19
|
+
private imageHasNoPhoto;
|
|
20
|
+
private imageIsLoaded;
|
|
21
|
+
private imageHasError;
|
|
22
|
+
private getImageUrl;
|
|
23
|
+
private setPictureSourceUrls;
|
|
24
|
+
private hasBgImgMode;
|
|
25
|
+
private isPictureElement;
|
|
26
|
+
private getImgElement;
|
|
27
|
+
private setDefaultPhoto;
|
|
28
|
+
private addEventListenerToImg;
|
|
29
|
+
private loadImage;
|
|
30
|
+
setImgSrc(el: HTMLElement, src: string): void;
|
|
31
|
+
private handleIntersectionObserver;
|
|
32
|
+
private createObserver;
|
|
33
|
+
private imageHandler;
|
|
34
|
+
private bindUpdateHandler;
|
|
35
|
+
add(el: HTMLElement, binding: LazyImgBinding): Promise<void>;
|
|
36
|
+
update(el: HTMLElement, binding: LazyImgBinding): Promise<void>;
|
|
37
|
+
remove(el: HTMLElement, binding: LazyImgBinding): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { DirectiveBinding } from 'vue';
|
|
2
|
+
export interface ClassOptions {
|
|
3
|
+
baseClass: string;
|
|
4
|
+
loadingClass: string;
|
|
5
|
+
loadedClass: string;
|
|
6
|
+
errorClass: string;
|
|
7
|
+
noPhotoClass: string;
|
|
8
|
+
noPhoto: boolean;
|
|
9
|
+
noUseErrorPhoto: boolean;
|
|
10
|
+
observerOnce: boolean;
|
|
11
|
+
loadOnce: boolean;
|
|
12
|
+
observerOptions: {
|
|
13
|
+
root?: HTMLElement | null;
|
|
14
|
+
threshold: number;
|
|
15
|
+
rootMargin?: string;
|
|
16
|
+
};
|
|
17
|
+
errorPhoto?: string;
|
|
18
|
+
onLoading?: (el: Element) => unknown;
|
|
19
|
+
onLoaded?: (el: Element) => unknown;
|
|
20
|
+
onError?: (el: Element) => unknown;
|
|
21
|
+
onIntersecting?: (el: Element) => unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface GlobalOptions {
|
|
24
|
+
baseClass?: string;
|
|
25
|
+
loadingClass?: string;
|
|
26
|
+
loadedClass?: string;
|
|
27
|
+
errorClass?: string;
|
|
28
|
+
noPhotoClass?: string;
|
|
29
|
+
noPhoto?: boolean;
|
|
30
|
+
noUseErrorPhoto?: boolean;
|
|
31
|
+
observerOnce?: boolean;
|
|
32
|
+
loadOnce?: boolean;
|
|
33
|
+
imgElement?: HTMLImageElement;
|
|
34
|
+
observerOptions?: {
|
|
35
|
+
root?: HTMLElement | null;
|
|
36
|
+
threshold?: number;
|
|
37
|
+
rootMargin?: string;
|
|
38
|
+
};
|
|
39
|
+
errorPhoto?: string;
|
|
40
|
+
onLoading?: (el: Element) => unknown;
|
|
41
|
+
onLoaded?: (el: Element) => unknown;
|
|
42
|
+
onError?: (el: Element) => unknown;
|
|
43
|
+
onIntersecting?: (el: Element) => unknown;
|
|
44
|
+
}
|
|
45
|
+
interface BindingOptions extends GlobalOptions {
|
|
46
|
+
src?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface LazyImgBinding extends DirectiveBinding {
|
|
49
|
+
value: string | BindingOptions;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const capitalize: (value: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const date: (date: string | number, locale: string, options?: Intl.DateTimeFormatOptions | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const number: (number: number | string, locale: string, options: Intl.NumberFormatOptions) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const telephone: (telephone: string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
declare const install: Exclude<Plugin['install'], undefined>;
|
|
3
|
+
export default install;
|
|
4
|
+
export { debounce } from './utils/debounce';
|
|
5
|
+
export * from './components';
|
|
6
|
+
export * from './components/types';
|
|
7
|
+
export * from './directives';
|
|
8
|
+
export * from './filters';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare type ArgumentTypes<F extends (...args: any[]) => void> = F extends (...args: infer A) => any ? A : never;
|
|
2
|
+
declare type MethodTypes = {
|
|
3
|
+
cancel: () => void;
|
|
4
|
+
flush: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function debounce<T extends (...args: any[]) => void>(fn: T, wait?: number, callFirst?: boolean): ((...args: ArgumentTypes<T>) => void) & MethodTypes;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { debounce } from './debounce';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function injectStrict<T>(key: string, fallback?: T): T | undefined;
|
package/package.json
CHANGED
|
@@ -1,106 +1,125 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"description": "A stand-alone components library for Vue.Js & Nuxt.Js",
|
|
3
|
+
"version": "3.0.0-beta.2",
|
|
4
|
+
"description": "A stand-alone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
6
5
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
"main": "cjs/index.js",
|
|
7
|
+
"browser": "index.js",
|
|
8
|
+
"module": "index.js",
|
|
9
|
+
"types": "types/index.d.ts",
|
|
10
10
|
"files": [
|
|
11
|
-
"
|
|
12
|
-
"bin/"
|
|
11
|
+
"dist/**/*"
|
|
13
12
|
],
|
|
14
|
-
"types": "lib/index.d.ts",
|
|
15
13
|
"scripts": {
|
|
16
|
-
"
|
|
17
|
-
"lint
|
|
18
|
-
"lint:js": "eslint
|
|
19
|
-
"
|
|
20
|
-
"lint:
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"build": "npm run clean &&
|
|
26
|
-
"build:
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"gen:css": "node build/gen-scss-index",
|
|
31
|
-
"gen:types": "node build/generate-types-declarations.js",
|
|
32
|
-
"gen:docs": "vuese gen && npm run lint:md:fix",
|
|
33
|
-
"copy:types": "cp ./types/*.d.ts ./lib",
|
|
34
|
-
"cli": "node ./bin/index.js",
|
|
35
|
-
"pre-publish": "npm run lint:fix && npm i && npm run build"
|
|
14
|
+
"test": "jest",
|
|
15
|
+
"lint": "npm run lint:js && npm run lint:style",
|
|
16
|
+
"lint:js": "eslint --fix --ext .ts,.js,.vue .",
|
|
17
|
+
"format": "prettier . --write",
|
|
18
|
+
"lint:style": "stylelint --ignore-path .gitignore --fix \"**/*.{vue,css,scss}\"",
|
|
19
|
+
"clean": "rimraf dist",
|
|
20
|
+
"build": "cross-env NODE_ENV=production rollup -c build/rollup.config.js && npm run build:css && npm run copy:package-file",
|
|
21
|
+
"build:watch": "onchange 'package/**/*' -- npm run build",
|
|
22
|
+
"build:css": "NODE_ENV=production npx tailwindcss -i ./package/tailwindcss/css/tailwind.css -o dist/main.css --config ./tailwind.config.js --postcss",
|
|
23
|
+
"build:cjs": "npm run clean && cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
|
|
24
|
+
"build:es": "npm run clean && cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
|
|
25
|
+
"copy:css-files": "cp ./package/tailwindcss/css/_subs/colors-vars.css ./dist",
|
|
26
|
+
"copy:package-file": "cp ./package.json ./dist",
|
|
27
|
+
"pre-commit": "lint-staged"
|
|
36
28
|
},
|
|
37
29
|
"lint-staged": {
|
|
38
|
-
"
|
|
39
|
-
"*.{
|
|
30
|
+
"*": "prettier -w -u",
|
|
31
|
+
"*.{js,ts,vue,json}": "eslint --fix",
|
|
32
|
+
"*.{vue,css,scss,postcss,pcss}": "stylelint --custom-syntax postcss-html --fix"
|
|
40
33
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"dropzone": "^5.9.3",
|
|
36
|
+
"libphonenumber-js": "^1.9.44",
|
|
37
|
+
"vue": "^3.0.0"
|
|
45
38
|
},
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"json-templater": "^1.2.0",
|
|
54
|
-
"libphonenumber-js": "^1.9.34",
|
|
55
|
-
"moment": "^2.29.1",
|
|
56
|
-
"moment-range": "^4.0.2",
|
|
57
|
-
"os": "^0.1.2",
|
|
58
|
-
"plotly.js-dist": "^1.57.1",
|
|
59
|
-
"v-click-outside": "^3.1.2",
|
|
60
|
-
"vue-virtual-scroller": "^1.0.10",
|
|
61
|
-
"vue-zoom-img": "^1.0.2",
|
|
62
|
-
"vue2-dropzone": "^3.6.0",
|
|
63
|
-
"vuedraggable": "^2.24.3"
|
|
39
|
+
"peerDependenciesMeta": {
|
|
40
|
+
"dropzone": {
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
"libphonenumber-js": {
|
|
44
|
+
"optional": true
|
|
45
|
+
}
|
|
64
46
|
},
|
|
65
47
|
"devDependencies": {
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
48
|
+
"@babel/core": "^7.16.7",
|
|
49
|
+
"@babel/plugin-transform-runtime": "^7.16.10",
|
|
50
|
+
"@babel/preset-env": "^7.16.8",
|
|
51
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
52
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
53
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
54
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
55
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
56
|
+
"@rollup/plugin-replace": "^3.0.1",
|
|
57
|
+
"@rollup/plugin-typescript": "^8.3.0",
|
|
58
|
+
"@rollup/plugin-url": "^6.0.0",
|
|
59
|
+
"@types/dropzone": "^5.7.4",
|
|
60
|
+
"@types/google.maps": "^3.47.2",
|
|
61
|
+
"@types/jest": "^27.4.0",
|
|
62
|
+
"@types/node": "^16.11.12",
|
|
63
|
+
"@types/rollup-plugin-peer-deps-external": "^2.2.1",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^5.9.1",
|
|
65
|
+
"@typescript-eslint/parser": "^5.9.1",
|
|
66
|
+
"@vue/compiler-sfc": "^3.2.26",
|
|
67
|
+
"@vue/eslint-config-prettier": "^7.0.0",
|
|
68
|
+
"@vue/eslint-config-typescript": "^10.0.0",
|
|
69
|
+
"@vue/test-utils": "^2.0.0-0",
|
|
70
|
+
"autoprefixer": "^10.4.2",
|
|
71
|
+
"babel-loader": "^8.2.2",
|
|
72
|
+
"cross-env": "^7.0.3",
|
|
73
|
+
"dropzone": "^6.0.0-beta.2",
|
|
74
|
+
"eslint": "^8.6.0",
|
|
75
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
76
|
+
"eslint-plugin-unicorn": "^40.0.0",
|
|
77
|
+
"eslint-plugin-vue": "^8.3.0",
|
|
78
|
+
"fs": "0.0.2",
|
|
79
|
+
"libphonenumber-js": "^1.9.44",
|
|
80
|
+
"lint-staged": "^12.1.7",
|
|
81
|
+
"onchange": "^7.1.0",
|
|
82
|
+
"path": "^0.12.7",
|
|
83
|
+
"postcss": "^8.4.5",
|
|
84
|
+
"postcss-html": "^1.3.0",
|
|
85
|
+
"postcss-import": "^14.0.2",
|
|
86
|
+
"postcss-nested": "^5.0.6",
|
|
87
|
+
"postcss-simple-vars": "^6.0.3",
|
|
88
|
+
"postcss-url": "^10.1.3",
|
|
89
|
+
"prettier": "^2.5.1",
|
|
90
|
+
"prettier-plugin-tailwindcss": "^0.1.4",
|
|
84
91
|
"rimraf": "^3.0.2",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"vue": "^
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
92
|
+
"rollup": "^2.63.0",
|
|
93
|
+
"rollup-plugin-css-only": "^3.1.0",
|
|
94
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
95
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
96
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
97
|
+
"rollup-plugin-typescript2": "^0.31.1",
|
|
98
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
99
|
+
"semver": "^7.3.5",
|
|
100
|
+
"stylelint": "^14.2.0",
|
|
101
|
+
"stylelint-config-prettier": "^9.0.3",
|
|
102
|
+
"stylelint-config-recommended-vue": "^1.1.0",
|
|
103
|
+
"stylelint-config-standard": "^24.0.0",
|
|
104
|
+
"tailwind-css-variables": "^3.0.1",
|
|
105
|
+
"tailwindcss": "^2.1.2",
|
|
106
|
+
"ts-jest": "^27.1.2",
|
|
107
|
+
"ttypescript": "^1.5.13",
|
|
108
|
+
"typescript": "^4.5.4",
|
|
109
|
+
"vue": "^3.2.26",
|
|
110
|
+
"vue-jest": "^5.0.0-0",
|
|
111
|
+
"vue-loader": "^17.0.0",
|
|
112
|
+
"vue-zoom-img": "^1.0.1",
|
|
113
|
+
"vuedraggable": "^2.24.3"
|
|
95
114
|
},
|
|
96
115
|
"engines": {
|
|
97
116
|
"node": ">= 6.0.0",
|
|
98
117
|
"npm": ">= 3.0.0"
|
|
99
118
|
},
|
|
100
119
|
"bugs": {
|
|
101
|
-
"url": "https://github.com/LouisMazel/maz-ui/issues"
|
|
120
|
+
"url": "https://github.com/LouisMazel/maz-ui-3/issues"
|
|
102
121
|
},
|
|
103
|
-
"homepage": "https://louismazel.github.io/maz-ui",
|
|
122
|
+
"homepage": "https://louismazel.github.io/maz-ui-3",
|
|
104
123
|
"keywords": [
|
|
105
124
|
"vue",
|
|
106
125
|
"components",
|
|
@@ -111,7 +130,7 @@
|
|
|
111
130
|
],
|
|
112
131
|
"repository": {
|
|
113
132
|
"type": "git",
|
|
114
|
-
"url": "git+https://github.com/LouisMazel/maz-ui.git"
|
|
133
|
+
"url": "git+https://github.com/LouisMazel/maz-ui-3.git"
|
|
115
134
|
},
|
|
116
135
|
"license": "MIT"
|
|
117
136
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 LouisMazel
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# maz-ui
|
|
2
|
-
|
|
3
|
-
[](https://github.com/LouisMazel/maz-ui/blob/master/LICENSE)
|
|
4
|
-
[](https://vuejs.org)
|
|
5
|
-
[](https://www.npmjs.com/package/maz-ui)
|
|
6
|
-
[](https://www.npmjs.com/package/maz-ui)
|
|
7
|
-
[](https://www.codacy.com/app/LouisMazel/maz-ui)
|
|
8
|
-
|
|
9
|
-
[](https://www.npmjs.com/package/maz-ui)
|
|
10
|
-
|
|
11
|
-
> [Maz-ui](https://louismazel.github.io/maz-ui/) is a stand-alone components library for [VueJS](https://vuejs.org) & [NuxtJS](https://nuxtjs.org/)
|
|
12
|
-
|
|
13
|
-
## Documentation & Components
|
|
14
|
-
|
|
15
|
-
[Documentation & Components](https://louismazel.github.io/maz-ui/)
|
|
16
|
-
|
|
17
|
-
## Install
|
|
18
|
-
|
|
19
|
-
[Get Started](https://louismazel.github.io/maz-ui/documentation/get-started)
|
|
20
|
-
|
|
21
|
-
```shell
|
|
22
|
-
npm install maz-ui
|
|
23
|
-
|
|
24
|
-
# Or yarn add maz-ui
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### On demande install
|
|
28
|
-
|
|
29
|
-
To optimize your bundle size, it's recommanded to use the [on demand install](https://louismazel.github.io/maz-ui/documentation/get-started)
|
|
30
|
-
|
|
31
|
-
```javascript
|
|
32
|
-
import Vue from 'vue'
|
|
33
|
-
import {
|
|
34
|
-
...
|
|
35
|
-
MazBtn
|
|
36
|
-
MazInput
|
|
37
|
-
MazPicker
|
|
38
|
-
MazPhoneNumberInput
|
|
39
|
-
...
|
|
40
|
-
} from 'maz-ui'
|
|
41
|
-
|
|
42
|
-
...
|
|
43
|
-
Vue.use(MazBtn)
|
|
44
|
-
Vue.use(MazInput)
|
|
45
|
-
Vue.use(MazPicker)
|
|
46
|
-
Vue.use(MazPhoneNumberInput)
|
|
47
|
-
...
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Quick Start - Fully install (not recommanded)
|
|
51
|
-
|
|
52
|
-
```javascript
|
|
53
|
-
import Vue from "vue";
|
|
54
|
-
import "maz-ui/lib/css/index.css";
|
|
55
|
-
import MazUi from "maz-ui";
|
|
56
|
-
|
|
57
|
-
Vue.use(MazUi);
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Contribute
|
|
61
|
-
|
|
62
|
-
Read documentation of [CONTRIBUTING.md](./.github/CONTRIBUTING.md)
|
|
63
|
-
|
|
64
|
-
## LICENSE
|
|
65
|
-
|
|
66
|
-
[MIT](LICENSE)
|
package/bin/index.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const chalk = require('chalk')
|
|
4
|
-
const clear = require('clear')
|
|
5
|
-
const figlet = require('figlet')
|
|
6
|
-
const path = require('path')
|
|
7
|
-
const { Command } = require('commander')
|
|
8
|
-
|
|
9
|
-
const VERSION = require('../package').version
|
|
10
|
-
const NAME = require('../package').name
|
|
11
|
-
const PREFIX = 'maz-'
|
|
12
|
-
const generateRootCss = require('./lib/index.js')
|
|
13
|
-
|
|
14
|
-
const program = new Command()
|
|
15
|
-
|
|
16
|
-
clear()
|
|
17
|
-
console.log(
|
|
18
|
-
chalk.bold.keyword('dodgerblue')(
|
|
19
|
-
figlet.textSync(NAME, { horizontalLayout: 'full' })
|
|
20
|
-
)
|
|
21
|
-
)
|
|
22
|
-
console.log()
|
|
23
|
-
console.log(chalk.bold.keyword('dodgerblue')(`${NAME} v${VERSION}`))
|
|
24
|
-
console.log()
|
|
25
|
-
|
|
26
|
-
program
|
|
27
|
-
.version(`${NAME} ${VERSION}`)
|
|
28
|
-
.usage('<command> [options]')
|
|
29
|
-
|
|
30
|
-
program
|
|
31
|
-
.arguments('[command]')
|
|
32
|
-
.action((cmd) => {
|
|
33
|
-
program.outputHelp()
|
|
34
|
-
if (cmd) {
|
|
35
|
-
console.log()
|
|
36
|
-
console.log(
|
|
37
|
-
chalk.red(` ⛔️ Unknown command ${chalk.bold.keyword('dodgerblue')(cmd)}.`)
|
|
38
|
-
)
|
|
39
|
-
console.log()
|
|
40
|
-
}
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
program.on('--help', () => {
|
|
44
|
-
console.log()
|
|
45
|
-
console.log(` Run ${chalk.bold.keyword('dodgerblue')('maz <command> --help')} for detailed usage of given command.`)
|
|
46
|
-
console.log()
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
program
|
|
50
|
-
.command('get-theme')
|
|
51
|
-
.option('-c, --config <path-to-config-file>', 'Optionnal: Provide path to config file - Ex: "./maz-ui.config.js"')
|
|
52
|
-
.description('Generate css variables')
|
|
53
|
-
.action(async (options) => {
|
|
54
|
-
const configPath = path.resolve(process.env.PWD, options.config ? options.config : './maz-ui.config.js')
|
|
55
|
-
const config = require(configPath)
|
|
56
|
-
const output = config.output
|
|
57
|
-
const colors = config.theme
|
|
58
|
-
delete config.output
|
|
59
|
-
generateRootCss(PREFIX, colors, output)
|
|
60
|
-
process.exit(0)
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
program.parse(process.argv)
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
mainColors: {
|
|
3
|
-
primary: 'dodgerblue',
|
|
4
|
-
secondary: '#1CD1A1',
|
|
5
|
-
third: '#C41AF9',
|
|
6
|
-
danger: 'orangered',
|
|
7
|
-
success: 'yellowgreen',
|
|
8
|
-
info: '#17A2B8',
|
|
9
|
-
warning: '#FFA300',
|
|
10
|
-
light: '#EEEEEE',
|
|
11
|
-
dark: '#21222E',
|
|
12
|
-
grey: '#999999',
|
|
13
|
-
default: '#CCCCCC',
|
|
14
|
-
black: 'black',
|
|
15
|
-
white: 'white',
|
|
16
|
-
transparent: '#FFFFFF00',
|
|
17
|
-
disabled: '#F2F2F2'
|
|
18
|
-
},
|
|
19
|
-
typo: {
|
|
20
|
-
'base-font-size': '16px',
|
|
21
|
-
'base-font-family': 'system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\'',
|
|
22
|
-
'base-font-weight': '400',
|
|
23
|
-
'base-line-height': '1.5'
|
|
24
|
-
},
|
|
25
|
-
border: {
|
|
26
|
-
'border-width': '2px',
|
|
27
|
-
'border-radius': '8px'
|
|
28
|
-
},
|
|
29
|
-
light: {
|
|
30
|
-
typo: {
|
|
31
|
-
'text-color': '#212121',
|
|
32
|
-
'muted-color': 'rgba(0, 0, 0, .54)',
|
|
33
|
-
'placeholder-color': '#A7A7A7',
|
|
34
|
-
'icon-color': '#DEDEDE'
|
|
35
|
-
},
|
|
36
|
-
layout: {
|
|
37
|
-
'bg-color': 'white',
|
|
38
|
-
'bg-color-light': '#F2F2F2',
|
|
39
|
-
'overlay-color': 'rgba(86, 87, 117, .7)'
|
|
40
|
-
},
|
|
41
|
-
borderColor: {
|
|
42
|
-
'border-color': '#EEEEEE'
|
|
43
|
-
},
|
|
44
|
-
state: {
|
|
45
|
-
'hover-color': '#F2F2F2',
|
|
46
|
-
'disabled-color': '#F2F2F2'
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
dark: {
|
|
50
|
-
typo: {
|
|
51
|
-
'text-color': '#EEEEEE',
|
|
52
|
-
'muted-color': 'rgba(255, 255, 255, .54)',
|
|
53
|
-
'placeholder-color': 'rgba(255, 255, 255, .6)',
|
|
54
|
-
'icon-color': '#65678F'
|
|
55
|
-
},
|
|
56
|
-
layout: {
|
|
57
|
-
'bg-color': '#21222E',
|
|
58
|
-
'bg-color-light': '#303144',
|
|
59
|
-
'overlay-color': 'rgba(86, 87, 117, .7)'
|
|
60
|
-
},
|
|
61
|
-
borderColor: {
|
|
62
|
-
'border-color': '#3B3C53'
|
|
63
|
-
},
|
|
64
|
-
state: {
|
|
65
|
-
'hover-color': '#2E2F40',
|
|
66
|
-
'disabled-color': '#CCCCCC'
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
package/bin/lib/index.d.ts
DELETED