maz-ui 2.3.12 → 3.0.0-beta.13

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 (196) hide show
  1. package/css/main.css +1454 -0
  2. package/lib/cjs/index.js +1 -0
  3. package/lib/cjs/index.js.map +1 -0
  4. package/lib/cjs/no_photo-4ae7c0fa.js +1 -0
  5. package/lib/cjs/no_photo-4ae7c0fa.js.map +1 -0
  6. package/lib/index.js +16 -1
  7. package/lib/index.js.map +1 -0
  8. package/lib/no_photo-a72545e4.js +2 -0
  9. package/lib/no_photo-a72545e4.js.map +1 -0
  10. package/package.json +103 -84
  11. package/types/components/MazArrowIcon.vue.d.ts +37 -0
  12. package/types/components/MazAvatar.vue.d.ts +110 -0
  13. package/types/components/MazBackDrop.vue.d.ts +90 -0
  14. package/types/components/MazBottomSheet.vue.d.ts +31 -0
  15. package/types/components/MazBtn.vue.d.ts +120 -0
  16. package/types/components/MazCard.vue.d.ts +149 -0
  17. package/types/components/MazCheckbox.vue.d.ts +40 -0
  18. package/types/components/MazDialog.vue.d.ts +15 -0
  19. package/types/components/MazDropzone/index.vue.d.ts +91 -0
  20. package/types/components/MazGallery.vue.d.ts +117 -0
  21. package/types/components/MazIcon.vue.d.ts +63 -0
  22. package/types/components/MazInput.vue.d.ts +206 -0
  23. package/types/components/MazInputPrice.vue.d.ts +47 -0
  24. package/types/components/MazLazyImg.vue.d.ts +69 -0
  25. package/types/components/MazPhoneNumberInput/constantes/locales.d.ts +11 -0
  26. package/types/components/MazPhoneNumberInput/index.vue.d.ts +195 -0
  27. package/types/components/MazPhoneNumberInput/types.d.ts +19 -0
  28. package/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +3 -0
  29. package/types/components/MazPhoneNumberInput/utils/index.d.ts +15 -0
  30. package/types/components/MazSelect.vue.d.ts +110 -0
  31. package/types/components/MazSpinner.vue.d.ts +25 -0
  32. package/types/components/MazTransitionExpand.vue.d.ts +4 -0
  33. package/types/components/index.d.ts +18 -0
  34. package/types/components/types.d.ts +50 -0
  35. package/types/components_tmp/MazCalendar/types.d.ts +16 -0
  36. package/types/components_tmp/MazChart/includes.d.ts +11 -0
  37. package/types/components_tmp/MazMap/map-module/create-html-marker.d.ts +18 -0
  38. package/types/components_tmp/MazMap/map-module/map.d.ts +43 -0
  39. package/types/components_tmp/MazMap/map-module/script-loader.d.ts +17 -0
  40. package/types/components_tmp/MazPromiseDialog/use-maz-promise-dialog.d.ts +28 -0
  41. package/types/components_tmp/MazSlider/utils.d.ts +15 -0
  42. package/types/components_tmp/MazTabs/maz-tabs.composable.d.ts +3 -0
  43. package/types/components_tmp/toaster/index.d.ts +3 -0
  44. package/types/components_tmp/toaster/positions.d.ts +8 -0
  45. package/types/components_tmp/toaster/timer.d.ts +11 -0
  46. package/types/components_tmp/toaster/use-toast.d.ts +21 -0
  47. package/types/directives/click-outside.directive.d.ts +10 -0
  48. package/types/directives/closable.directive.d.ts +5 -0
  49. package/types/directives/index.d.ts +4 -0
  50. package/types/directives/v-lazy-img/index.d.ts +9 -0
  51. package/types/directives/v-lazy-img/lazy-img-handler.d.ts +38 -0
  52. package/types/directives/v-lazy-img/lazy-img.directive.d.ts +3 -0
  53. package/types/directives/v-lazy-img/types.d.ts +51 -0
  54. package/types/directives/zoom-img.directive.d.ts +5 -0
  55. package/types/filters/capitalize.d.ts +1 -0
  56. package/types/filters/currency.d.ts +5 -0
  57. package/types/filters/date.d.ts +1 -0
  58. package/types/filters/index.d.ts +5 -0
  59. package/types/filters/number.d.ts +1 -0
  60. package/types/filters/telephone.d.ts +1 -0
  61. package/types/index.d.ts +9 -0
  62. package/types/index.esm.d.ts +10 -0
  63. package/types/utils/debounce.d.ts +7 -0
  64. package/types/utils/index.d.ts +1 -0
  65. package/types/utils/injectStrict.d.ts +1 -0
  66. package/LICENSE +0 -21
  67. package/README.md +0 -66
  68. package/bin/index.js +0 -63
  69. package/bin/lib/_constantes/default-colors.js +0 -69
  70. package/bin/lib/index.d.ts +0 -2
  71. package/bin/lib/index.js +0 -145
  72. package/bin/lib/methods/generate-root-css.js +0 -49
  73. package/bin/lib/methods/get-theme-settings.js +0 -58
  74. package/bin/lib/methods/set-css-vars.js +0 -11
  75. package/lib/css/base.css +0 -1
  76. package/lib/css/index.css +0 -1
  77. package/lib/css/maz-avatar.css +0 -1
  78. package/lib/css/maz-bottom-sheet.css +0 -1
  79. package/lib/css/maz-btn-group.css +0 -1
  80. package/lib/css/maz-btn.css +0 -0
  81. package/lib/css/maz-card.css +0 -1
  82. package/lib/css/maz-carousel.css +0 -1
  83. package/lib/css/maz-checkbox.css +0 -1
  84. package/lib/css/maz-collapse.css +0 -1
  85. package/lib/css/maz-dialog.css +0 -1
  86. package/lib/css/maz-draggable-list.css +0 -1
  87. package/lib/css/maz-dropdown.css +0 -1
  88. package/lib/css/maz-dropzone.css +0 -1
  89. package/lib/css/maz-flex.css +0 -0
  90. package/lib/css/maz-gallery.css +0 -0
  91. package/lib/css/maz-img.css +0 -1
  92. package/lib/css/maz-input-tags.css +0 -1
  93. package/lib/css/maz-input.css +0 -0
  94. package/lib/css/maz-list-item.css +0 -1
  95. package/lib/css/maz-list.css +0 -1
  96. package/lib/css/maz-loader.css +0 -0
  97. package/lib/css/maz-pagination.css +0 -1
  98. package/lib/css/maz-phone-number-input.css +0 -1
  99. package/lib/css/maz-picker.css +0 -1
  100. package/lib/css/maz-plotly.css +0 -0
  101. package/lib/css/maz-progress-bar.css +0 -1
  102. package/lib/css/maz-radio.css +0 -1
  103. package/lib/css/maz-read-more.css +0 -1
  104. package/lib/css/maz-responsive-menu.css +0 -1
  105. package/lib/css/maz-search.css +0 -1
  106. package/lib/css/maz-select.css +0 -0
  107. package/lib/css/maz-sidebar.css +0 -1
  108. package/lib/css/maz-slider.css +0 -1
  109. package/lib/css/maz-spinner.css +0 -0
  110. package/lib/css/maz-stepper.css +0 -1
  111. package/lib/css/maz-switch.css +0 -1
  112. package/lib/css/maz-tabs-bar.css +0 -1
  113. package/lib/css/maz-tabs-content-item.css +0 -1
  114. package/lib/css/maz-tabs-content.css +0 -1
  115. package/lib/css/maz-transition-expand.css +0 -0
  116. package/lib/index.d.ts +0 -1
  117. package/lib/maz-avatar.d.ts +0 -3
  118. package/lib/maz-avatar.js +0 -430
  119. package/lib/maz-bottom-sheet.d.ts +0 -3
  120. package/lib/maz-bottom-sheet.js +0 -1045
  121. package/lib/maz-btn-group.d.ts +0 -3
  122. package/lib/maz-btn-group.js +0 -907
  123. package/lib/maz-btn.d.ts +0 -3
  124. package/lib/maz-btn.js +0 -764
  125. package/lib/maz-card.d.ts +0 -3
  126. package/lib/maz-card.js +0 -572
  127. package/lib/maz-carousel.d.ts +0 -3
  128. package/lib/maz-carousel.js +0 -569
  129. package/lib/maz-checkbox.d.ts +0 -3
  130. package/lib/maz-checkbox.js +0 -359
  131. package/lib/maz-collapse.d.ts +0 -3
  132. package/lib/maz-collapse.js +0 -1238
  133. package/lib/maz-dialog.d.ts +0 -3
  134. package/lib/maz-dialog.js +0 -1315
  135. package/lib/maz-draggable-list.d.ts +0 -3
  136. package/lib/maz-draggable-list.js +0 -439
  137. package/lib/maz-dropdown.d.ts +0 -3
  138. package/lib/maz-dropdown.js +0 -438
  139. package/lib/maz-dropzone.d.ts +0 -3
  140. package/lib/maz-dropzone.js +0 -664
  141. package/lib/maz-flex.d.ts +0 -3
  142. package/lib/maz-flex.js +0 -427
  143. package/lib/maz-gallery.d.ts +0 -3
  144. package/lib/maz-gallery.js +0 -672
  145. package/lib/maz-img.d.ts +0 -3
  146. package/lib/maz-img.js +0 -612
  147. package/lib/maz-input-tags.d.ts +0 -3
  148. package/lib/maz-input-tags.js +0 -1207
  149. package/lib/maz-input.d.ts +0 -3
  150. package/lib/maz-input.js +0 -1076
  151. package/lib/maz-list-item.d.ts +0 -3
  152. package/lib/maz-list-item.js +0 -304
  153. package/lib/maz-list.d.ts +0 -3
  154. package/lib/maz-list.js +0 -331
  155. package/lib/maz-loader.d.ts +0 -3
  156. package/lib/maz-loader.js +0 -304
  157. package/lib/maz-pagination.d.ts +0 -3
  158. package/lib/maz-pagination.js +0 -1414
  159. package/lib/maz-phone-number-input.d.ts +0 -3
  160. package/lib/maz-phone-number-input.js +0 -3782
  161. package/lib/maz-picker.d.ts +0 -3
  162. package/lib/maz-picker.js +0 -6474
  163. package/lib/maz-plotly.d.ts +0 -3
  164. package/lib/maz-plotly.js +0 -500
  165. package/lib/maz-progress-bar.d.ts +0 -3
  166. package/lib/maz-progress-bar.js +0 -398
  167. package/lib/maz-radio.d.ts +0 -3
  168. package/lib/maz-radio.js +0 -358
  169. package/lib/maz-read-more.d.ts +0 -3
  170. package/lib/maz-read-more.js +0 -344
  171. package/lib/maz-responsive-menu.d.ts +0 -3
  172. package/lib/maz-responsive-menu.js +0 -438
  173. package/lib/maz-search.d.ts +0 -3
  174. package/lib/maz-search.js +0 -1590
  175. package/lib/maz-select.d.ts +0 -3
  176. package/lib/maz-select.js +0 -2740
  177. package/lib/maz-sidebar.d.ts +0 -3
  178. package/lib/maz-sidebar.js +0 -815
  179. package/lib/maz-slider.d.ts +0 -3
  180. package/lib/maz-slider.js +0 -1014
  181. package/lib/maz-spinner.d.ts +0 -3
  182. package/lib/maz-spinner.js +0 -328
  183. package/lib/maz-stepper.d.ts +0 -3
  184. package/lib/maz-stepper.js +0 -1011
  185. package/lib/maz-switch.d.ts +0 -3
  186. package/lib/maz-switch.js +0 -375
  187. package/lib/maz-tabs-bar.d.ts +0 -3
  188. package/lib/maz-tabs-bar.js +0 -428
  189. package/lib/maz-tabs-content-item.d.ts +0 -3
  190. package/lib/maz-tabs-content-item.js +0 -376
  191. package/lib/maz-tabs-content.d.ts +0 -3
  192. package/lib/maz-tabs-content.js +0 -367
  193. package/lib/maz-transition-expand.d.ts +0 -3
  194. package/lib/maz-transition-expand.js +0 -328
  195. package/lib/maz-ui.common.d.ts +0 -1
  196. package/lib/maz-ui.common.js +0 -17208
@@ -0,0 +1,17 @@
1
+ /// <reference types="google.maps" />
2
+ export interface ScriptOptions {
3
+ [key: string]: string | string[] | undefined;
4
+ language?: string;
5
+ region?: string;
6
+ libraries?: string[];
7
+ }
8
+ export declare class ScriptLoader {
9
+ private readonly apiKey;
10
+ private readonly options?;
11
+ private readonly scriptOptions;
12
+ private resolveScript;
13
+ api: typeof google;
14
+ constructor(apiKey: string, options?: ScriptOptions | undefined);
15
+ private getUrl;
16
+ init(): Promise<typeof google>;
17
+ }
@@ -0,0 +1,28 @@
1
+ export interface ModalState {
2
+ id: string;
3
+ isActive: boolean;
4
+ resolve: (value: any) => void;
5
+ reject?: (reason?: any) => void;
6
+ }
7
+ export interface ModalData {
8
+ title: string;
9
+ message: string;
10
+ }
11
+ export declare const useMazPromiseDialog: () => {
12
+ confirmDialogData: import("vue").Ref<ModalData | undefined>;
13
+ modalState: import("vue").Ref<{
14
+ id: string;
15
+ isActive: boolean;
16
+ resolve: (value: any) => void;
17
+ reject?: ((reason?: any) => void) | undefined;
18
+ }[]>;
19
+ showModalAndWaitChoice: (identifier: string, callback?: (() => any) | undefined) => Promise<unknown>;
20
+ removeModalFromState: (identifier: string) => {
21
+ id: string;
22
+ isActive: boolean;
23
+ resolve: (value: any) => void;
24
+ reject?: ((reason?: any) => void) | undefined;
25
+ }[];
26
+ rejectModal: (currentModal: ModalState) => void;
27
+ resolveModal: (currentModal: ModalState) => void;
28
+ };
@@ -0,0 +1,15 @@
1
+ interface IPosObject {
2
+ x: number;
3
+ y: number;
4
+ }
5
+ export declare const getOffset: (elem: HTMLDivElement) => IPosObject;
6
+ /**
7
+ * Get the position of the mouse/finger in the element
8
+ * @param e Trigger event
9
+ * @param elem Container element
10
+ * @param isReverse From the right/bottom
11
+ */
12
+ export declare const getPos: (e: MouseEvent | TouchEvent, elem: HTMLDivElement, isReverse?: boolean) => IPosObject;
13
+ export declare const isBetween: (value: number, prev: number, next: number, direction: string) => boolean;
14
+ export declare const getOpacityCoeff: (index: number, middle: number, length: number) => number;
15
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const useMazTabs: () => {
2
+ currentTab: import("vue").Ref<number | undefined>;
3
+ };
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'vue';
2
+ declare const plugin: Plugin;
3
+ export default plugin;
@@ -0,0 +1,8 @@
1
+ export declare enum Positions {
2
+ TOP_RIGHT = "top-right",
3
+ TOP = "top",
4
+ TOP_LEFT = "top-left",
5
+ BOTTOM_RIGHT = "bottom-right",
6
+ BOTTOM = "bottom",
7
+ BOTTOM_LEFT = "bottom-left"
8
+ }
@@ -0,0 +1,11 @@
1
+ export declare class Timer {
2
+ callback: Function;
3
+ delay: number;
4
+ timer: number;
5
+ startedAt: number;
6
+ constructor(callback: Function, delay: number);
7
+ pause(): void;
8
+ resume(): void;
9
+ start(): void;
10
+ stop(): void;
11
+ }
@@ -0,0 +1,21 @@
1
+ import { App } from 'vue';
2
+ import { Positions } from './positions';
3
+ export interface ToasterOptions {
4
+ position?: Positions;
5
+ timeout?: number;
6
+ closable?: boolean;
7
+ }
8
+ export interface LocalToasterOptions extends ToasterOptions {
9
+ type?: 'success' | 'info' | 'warning' | 'danger';
10
+ }
11
+ export declare class Toaster {
12
+ private readonly app;
13
+ private readonly globalOptions;
14
+ constructor(app: App, globalOptions: ToasterOptions);
15
+ private show;
16
+ private getLocalOptions;
17
+ success(message: string, options?: ToasterOptions): void;
18
+ error(message: string, options?: ToasterOptions): void;
19
+ info(message: string, options?: ToasterOptions): void;
20
+ warning(message: string, options?: ToasterOptions): void;
21
+ }
@@ -0,0 +1,10 @@
1
+ import { Directive, Plugin } from 'vue';
2
+ declare const directive: Directive;
3
+ declare const mixin: {
4
+ directives: {
5
+ ClickAway: import("vue").ObjectDirective<any, any>;
6
+ };
7
+ };
8
+ export { directive, mixin };
9
+ declare const plugin: Plugin;
10
+ export default plugin;
@@ -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,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,9 @@
1
+ import plugin from './index.esm';
2
+ import * as components from './components';
3
+ export default plugin;
4
+ export { debounce } from './utils/debounce';
5
+ export * from './components';
6
+ export * from './components/types';
7
+ export * from './directives';
8
+ export * from './filters';
9
+ export { components };
@@ -0,0 +1,10 @@
1
+ import { Plugin } from 'vue';
2
+ import * as components from './components';
3
+ declare const install: Exclude<Plugin['install'], undefined>;
4
+ export default install;
5
+ export { debounce } from './utils/debounce';
6
+ export * from './components';
7
+ export * from './components/types';
8
+ export * from './directives';
9
+ export * from './filters';
10
+ export { components };
@@ -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/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