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.
Files changed (198) hide show
  1. package/dist/cjs/index.js +1 -0
  2. package/dist/cjs/index.js.map +1 -0
  3. package/dist/cjs/no_photo-4ae7c0fa.js +1 -0
  4. package/dist/cjs/no_photo-4ae7c0fa.js.map +1 -0
  5. package/dist/index.js +16 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/main.css +1454 -0
  8. package/dist/no_photo-a72545e4.js +2 -0
  9. package/dist/no_photo-a72545e4.js.map +1 -0
  10. package/dist/package.json +136 -0
  11. package/dist/types/components/MazArrowIcon.vue.d.ts +37 -0
  12. package/dist/types/components/MazAvatar.vue.d.ts +110 -0
  13. package/dist/types/components/MazBackDrop.vue.d.ts +90 -0
  14. package/dist/types/components/MazBottomSheet.vue.d.ts +31 -0
  15. package/dist/types/components/MazBtn.vue.d.ts +120 -0
  16. package/dist/types/components/MazCard.vue.d.ts +149 -0
  17. package/dist/types/components/MazCheckbox.vue.d.ts +40 -0
  18. package/dist/types/components/MazDialog.vue.d.ts +15 -0
  19. package/dist/types/components/MazDropzone/index.vue.d.ts +90 -0
  20. package/dist/types/components/MazGallery.vue.d.ts +117 -0
  21. package/dist/types/components/MazIcon.vue.d.ts +63 -0
  22. package/dist/types/components/MazInput.vue.d.ts +206 -0
  23. package/dist/types/components/MazInputPrice.vue.d.ts +47 -0
  24. package/dist/types/components/MazLazyImg.vue.d.ts +69 -0
  25. package/dist/types/components/MazPhoneNumberInput/constantes/locales.d.ts +11 -0
  26. package/dist/types/components/MazPhoneNumberInput/index.vue.d.ts +195 -0
  27. package/dist/types/components/MazPhoneNumberInput/types.d.ts +19 -0
  28. package/dist/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +3 -0
  29. package/dist/types/components/MazPhoneNumberInput/utils/index.d.ts +15 -0
  30. package/dist/types/components/MazSelect.vue.d.ts +110 -0
  31. package/dist/types/components/MazSpinner.vue.d.ts +25 -0
  32. package/dist/types/components/MazTransitionExpand.vue.d.ts +4 -0
  33. package/dist/types/components/index.d.ts +18 -0
  34. package/dist/types/components/types.d.ts +50 -0
  35. package/dist/types/components_tmp/MazCalendar/types.d.ts +16 -0
  36. package/dist/types/components_tmp/MazChart/includes.d.ts +11 -0
  37. package/dist/types/components_tmp/MazMap/map-module/create-html-marker.d.ts +18 -0
  38. package/dist/types/components_tmp/MazMap/map-module/map.d.ts +43 -0
  39. package/dist/types/components_tmp/MazMap/map-module/script-loader.d.ts +17 -0
  40. package/dist/types/components_tmp/MazPromiseDialog/use-maz-promise-dialog.d.ts +28 -0
  41. package/dist/types/components_tmp/MazSlider/utils.d.ts +15 -0
  42. package/dist/types/components_tmp/MazTabs/maz-tabs.composable.d.ts +3 -0
  43. package/dist/types/components_tmp/toaster/index.d.ts +3 -0
  44. package/dist/types/components_tmp/toaster/positions.d.ts +8 -0
  45. package/dist/types/components_tmp/toaster/timer.d.ts +11 -0
  46. package/dist/types/components_tmp/toaster/use-toast.d.ts +21 -0
  47. package/dist/types/directives/click-outside.directive.d.ts +10 -0
  48. package/dist/types/directives/closable.directive.d.ts +5 -0
  49. package/dist/types/directives/index.d.ts +4 -0
  50. package/dist/types/directives/v-lazy-img/index.d.ts +9 -0
  51. package/dist/types/directives/v-lazy-img/lazy-img-handler.d.ts +38 -0
  52. package/dist/types/directives/v-lazy-img/lazy-img.directive.d.ts +3 -0
  53. package/dist/types/directives/v-lazy-img/types.d.ts +51 -0
  54. package/dist/types/directives/zoom-img.directive.d.ts +5 -0
  55. package/dist/types/filters/capitalize.d.ts +1 -0
  56. package/dist/types/filters/currency.d.ts +5 -0
  57. package/dist/types/filters/date.d.ts +1 -0
  58. package/dist/types/filters/index.d.ts +5 -0
  59. package/dist/types/filters/number.d.ts +1 -0
  60. package/dist/types/filters/telephone.d.ts +1 -0
  61. package/dist/types/index.d.ts +7 -0
  62. package/dist/types/index.esm.d.ts +8 -0
  63. package/dist/types/utils/debounce.d.ts +7 -0
  64. package/dist/types/utils/index.d.ts +1 -0
  65. package/dist/types/utils/injectStrict.d.ts +1 -0
  66. package/package.json +103 -84
  67. package/LICENSE +0 -21
  68. package/README.md +0 -66
  69. package/bin/index.js +0 -63
  70. package/bin/lib/_constantes/default-colors.js +0 -69
  71. package/bin/lib/index.d.ts +0 -2
  72. package/bin/lib/index.js +0 -145
  73. package/bin/lib/methods/generate-root-css.js +0 -49
  74. package/bin/lib/methods/get-theme-settings.js +0 -58
  75. package/bin/lib/methods/set-css-vars.js +0 -11
  76. package/lib/css/base.css +0 -1
  77. package/lib/css/index.css +0 -1
  78. package/lib/css/maz-avatar.css +0 -1
  79. package/lib/css/maz-bottom-sheet.css +0 -1
  80. package/lib/css/maz-btn-group.css +0 -1
  81. package/lib/css/maz-btn.css +0 -0
  82. package/lib/css/maz-card.css +0 -1
  83. package/lib/css/maz-carousel.css +0 -1
  84. package/lib/css/maz-checkbox.css +0 -1
  85. package/lib/css/maz-collapse.css +0 -1
  86. package/lib/css/maz-dialog.css +0 -1
  87. package/lib/css/maz-draggable-list.css +0 -1
  88. package/lib/css/maz-dropdown.css +0 -1
  89. package/lib/css/maz-dropzone.css +0 -1
  90. package/lib/css/maz-flex.css +0 -0
  91. package/lib/css/maz-gallery.css +0 -0
  92. package/lib/css/maz-img.css +0 -1
  93. package/lib/css/maz-input-tags.css +0 -1
  94. package/lib/css/maz-input.css +0 -0
  95. package/lib/css/maz-list-item.css +0 -1
  96. package/lib/css/maz-list.css +0 -1
  97. package/lib/css/maz-loader.css +0 -0
  98. package/lib/css/maz-pagination.css +0 -1
  99. package/lib/css/maz-phone-number-input.css +0 -1
  100. package/lib/css/maz-picker.css +0 -1
  101. package/lib/css/maz-plotly.css +0 -0
  102. package/lib/css/maz-progress-bar.css +0 -1
  103. package/lib/css/maz-radio.css +0 -1
  104. package/lib/css/maz-read-more.css +0 -1
  105. package/lib/css/maz-responsive-menu.css +0 -1
  106. package/lib/css/maz-search.css +0 -1
  107. package/lib/css/maz-select.css +0 -0
  108. package/lib/css/maz-sidebar.css +0 -1
  109. package/lib/css/maz-slider.css +0 -1
  110. package/lib/css/maz-spinner.css +0 -0
  111. package/lib/css/maz-stepper.css +0 -1
  112. package/lib/css/maz-switch.css +0 -1
  113. package/lib/css/maz-tabs-bar.css +0 -1
  114. package/lib/css/maz-tabs-content-item.css +0 -1
  115. package/lib/css/maz-tabs-content.css +0 -1
  116. package/lib/css/maz-transition-expand.css +0 -0
  117. package/lib/index.d.ts +0 -1
  118. package/lib/index.js +0 -1
  119. package/lib/maz-avatar.d.ts +0 -3
  120. package/lib/maz-avatar.js +0 -430
  121. package/lib/maz-bottom-sheet.d.ts +0 -3
  122. package/lib/maz-bottom-sheet.js +0 -1046
  123. package/lib/maz-btn-group.d.ts +0 -3
  124. package/lib/maz-btn-group.js +0 -908
  125. package/lib/maz-btn.d.ts +0 -3
  126. package/lib/maz-btn.js +0 -765
  127. package/lib/maz-card.d.ts +0 -3
  128. package/lib/maz-card.js +0 -571
  129. package/lib/maz-carousel.d.ts +0 -3
  130. package/lib/maz-carousel.js +0 -569
  131. package/lib/maz-checkbox.d.ts +0 -3
  132. package/lib/maz-checkbox.js +0 -359
  133. package/lib/maz-collapse.d.ts +0 -3
  134. package/lib/maz-collapse.js +0 -1239
  135. package/lib/maz-dialog.d.ts +0 -3
  136. package/lib/maz-dialog.js +0 -1315
  137. package/lib/maz-draggable-list.d.ts +0 -3
  138. package/lib/maz-draggable-list.js +0 -439
  139. package/lib/maz-dropdown.d.ts +0 -3
  140. package/lib/maz-dropdown.js +0 -438
  141. package/lib/maz-dropzone.d.ts +0 -3
  142. package/lib/maz-dropzone.js +0 -664
  143. package/lib/maz-flex.d.ts +0 -3
  144. package/lib/maz-flex.js +0 -427
  145. package/lib/maz-gallery.d.ts +0 -3
  146. package/lib/maz-gallery.js +0 -673
  147. package/lib/maz-img.d.ts +0 -3
  148. package/lib/maz-img.js +0 -613
  149. package/lib/maz-input-tags.d.ts +0 -3
  150. package/lib/maz-input-tags.js +0 -1208
  151. package/lib/maz-input.d.ts +0 -3
  152. package/lib/maz-input.js +0 -1076
  153. package/lib/maz-list-item.d.ts +0 -3
  154. package/lib/maz-list-item.js +0 -304
  155. package/lib/maz-list.d.ts +0 -3
  156. package/lib/maz-list.js +0 -331
  157. package/lib/maz-loader.d.ts +0 -3
  158. package/lib/maz-loader.js +0 -304
  159. package/lib/maz-pagination.d.ts +0 -3
  160. package/lib/maz-pagination.js +0 -1415
  161. package/lib/maz-phone-number-input.d.ts +0 -3
  162. package/lib/maz-phone-number-input.js +0 -3778
  163. package/lib/maz-picker.d.ts +0 -3
  164. package/lib/maz-picker.js +0 -6472
  165. package/lib/maz-plotly.d.ts +0 -3
  166. package/lib/maz-plotly.js +0 -500
  167. package/lib/maz-progress-bar.d.ts +0 -3
  168. package/lib/maz-progress-bar.js +0 -398
  169. package/lib/maz-radio.d.ts +0 -3
  170. package/lib/maz-radio.js +0 -358
  171. package/lib/maz-read-more.d.ts +0 -3
  172. package/lib/maz-read-more.js +0 -344
  173. package/lib/maz-responsive-menu.d.ts +0 -3
  174. package/lib/maz-responsive-menu.js +0 -438
  175. package/lib/maz-search.d.ts +0 -3
  176. package/lib/maz-search.js +0 -1590
  177. package/lib/maz-select.d.ts +0 -3
  178. package/lib/maz-select.js +0 -2743
  179. package/lib/maz-sidebar.d.ts +0 -3
  180. package/lib/maz-sidebar.js +0 -815
  181. package/lib/maz-slider.d.ts +0 -3
  182. package/lib/maz-slider.js +0 -1014
  183. package/lib/maz-spinner.d.ts +0 -3
  184. package/lib/maz-spinner.js +0 -329
  185. package/lib/maz-stepper.d.ts +0 -3
  186. package/lib/maz-stepper.js +0 -1012
  187. package/lib/maz-switch.d.ts +0 -3
  188. package/lib/maz-switch.js +0 -375
  189. package/lib/maz-tabs-bar.d.ts +0 -3
  190. package/lib/maz-tabs-bar.js +0 -428
  191. package/lib/maz-tabs-content-item.d.ts +0 -3
  192. package/lib/maz-tabs-content-item.js +0 -376
  193. package/lib/maz-tabs-content.d.ts +0 -3
  194. package/lib/maz-tabs-content.js +0 -367
  195. package/lib/maz-transition-expand.d.ts +0 -3
  196. package/lib/maz-transition-expand.js +0 -328
  197. package/lib/maz-ui.common.d.ts +0 -1
  198. 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,3 @@
1
+ import { Directive } from 'vue';
2
+ declare const vLazyImg: Directive;
3
+ export { vLazyImg };
@@ -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,5 @@
1
+ import { Directive, Plugin } from 'vue';
2
+ declare const directive: Directive;
3
+ export { directive };
4
+ declare const plugin: Plugin;
5
+ export default plugin;
@@ -0,0 +1 @@
1
+ export declare const capitalize: (value: string) => string;
@@ -0,0 +1,5 @@
1
+ interface FilterCurrencyOptions extends Intl.NumberFormatOptions {
2
+ round?: boolean;
3
+ }
4
+ export declare const currency: (number: number | string, locale: string, options: FilterCurrencyOptions) => string;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare const date: (date: string | number, locale: string, options?: Intl.DateTimeFormatOptions | undefined) => string;
@@ -0,0 +1,5 @@
1
+ export { capitalize } from './capitalize';
2
+ export { currency } from './currency';
3
+ export { date } from './date';
4
+ export { number } from './number';
5
+ export { telephone } from './telephone';
@@ -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,7 @@
1
+ import plugin from './index.esm';
2
+ export default plugin;
3
+ export { debounce } from './utils/debounce';
4
+ export * from './components';
5
+ export * from './components/types';
6
+ export * from './directives';
7
+ export * from './filters';
@@ -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": "2.3.10",
4
- "main": "lib/maz-ui.common.js",
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
- "bin": {
8
- "maz": "bin/index.js"
9
- },
6
+ "main": "cjs/index.js",
7
+ "browser": "index.js",
8
+ "module": "index.js",
9
+ "types": "types/index.d.ts",
10
10
  "files": [
11
- "lib/",
12
- "bin/"
11
+ "dist/**/*"
13
12
  ],
14
- "types": "lib/index.d.ts",
15
13
  "scripts": {
16
- "lint": "npm run lint:js && npm run lint:style && npm run lint:md",
17
- "lint:fix": "npm run lint:js:fix && npm run lint:style:fix && npm run lint:md:fix",
18
- "lint:js": "eslint './**/*.{js,vue}'",
19
- "lint:js:fix": "npm run lint:js -- --fix",
20
- "lint:md": "prettier '**/*.md' --check",
21
- "lint:md:fix": "prettier '**/*.md' --write",
22
- "lint:style": "stylelint './**/*.{css,scss,vue}'",
23
- "lint:style:fix": "npm run lint:style -- --fix",
24
- "clean": "rimraf lib",
25
- "build": "npm run clean && npm run build:entries && npm run build:lib && npm run build:css && npm run gen:types",
26
- "build:entries": "node build/build-entries.js",
27
- "build:lib": "webpack --config build/webpack.conf.js && webpack --config build/webpack.common.js && webpack --config build/webpack.component.js",
28
- "build:css": "npm run gen:css && npm run build:css:compile",
29
- "build:css:compile": "gulp compile --gulpfile build/gulpfile.js",
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
- "*.{js,vue}": "npm run lint:js",
39
- "*.{css,scss,vue}": "npm run lint:style"
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
- "husky": {
42
- "hooks": {
43
- "pre-commit": "lint-staged"
44
- }
34
+ "peerDependencies": {
35
+ "dropzone": "^5.9.3",
36
+ "libphonenumber-js": "^1.9.44",
37
+ "vue": "^3.0.0"
45
38
  },
46
- "dependencies": {
47
- "chalk": "^4.1.2",
48
- "clear": "^0.1.0",
49
- "color-transformer-ui": "^1.0.3",
50
- "commander": "^7.2.0",
51
- "figlet": "^1.5.2",
52
- "fs": "0.0.2",
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
- "@vue/cli-plugin-babel": "^4.5.13",
67
- "@vue/cli-plugin-eslint": "^4.5.13",
68
- "@vue/cli-service": "^4.5.13",
69
- "@vuese/cli": "^2.14.0",
70
- "babel-eslint": "^10.1.0",
71
- "core-js": "^3.18.1",
72
- "eslint": "^7.32.0",
73
- "eslint-plugin-vue": "^7.18.0",
74
- "gulp": "^4.0.2",
75
- "gulp-autoprefixer": "^8.0.0",
76
- "gulp-notify": "^4.0.0",
77
- "gulp-plumber": "^1.2.1",
78
- "gulp-rename": "^2.0.0",
79
- "gulp-sass": "^5.0.0",
80
- "gulp-sourcemaps": "^3.0.0",
81
- "husky": "^7.0.2",
82
- "lint-staged": "^11.1.2",
83
- "progress-bar-webpack-plugin": "^2.1.0",
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
- "sass": "^1.42.1",
86
- "stylelint": "^13.13.1",
87
- "stylelint-config-standard": "^22.0.0",
88
- "stylelint-order": "^4.1.0",
89
- "stylelint-scss": "^3.21.0",
90
- "uppercamelcase": "^3.0.0",
91
- "vue": "^2.6.14",
92
- "vue-template-compiler": "^2.6.14",
93
- "webpack-cli": "^4.8.0",
94
- "webpack-node-externals": "^3.0.0"
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
- [![license](https://img.shields.io/github/license/LouisMazel/maz-ui.svg?style=flat-square)](https://github.com/LouisMazel/maz-ui/blob/master/LICENSE)
4
- [![vue 2](https://img.shields.io/badge/vue-2-42b983.svg?style=flat-square)](https://vuejs.org)
5
- [![npm](https://img.shields.io/npm/v/maz-ui.svg?style=flat-square)](https://www.npmjs.com/package/maz-ui)
6
- [![npm](https://img.shields.io/npm/dt/maz-ui.svg?style=flat-square)](https://www.npmjs.com/package/maz-ui)
7
- [![Codacy grade](https://img.shields.io/codacy/grade/3d15a7c11bfe47c69a2aed93cc67cc29.svg?style=flat-square)](https://www.codacy.com/app/LouisMazel/maz-ui)
8
-
9
- [![npm](https://nodei.co/npm/maz-ui.png?downloads=true&downloadRank=true&stars=true)](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
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (color: object, output: string) => object
2
- export default _default