maz-ui 2.3.13 → 2.4.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 (237) hide show
  1. package/components/MazArrowIcon.d.ts +43 -0
  2. package/components/MazArrowIcon.js +1 -0
  3. package/components/MazAvatar.d.ts +149 -0
  4. package/components/MazAvatar.js +3 -0
  5. package/components/MazBackdrop.d.ts +89 -0
  6. package/components/MazBackdrop.js +3 -0
  7. package/components/MazBadge.d.ts +68 -0
  8. package/components/MazBadge.js +1 -0
  9. package/components/MazBottomSheet.d.ts +29 -0
  10. package/components/MazBottomSheet.js +3 -0
  11. package/components/MazBtn.d.ts +171 -0
  12. package/components/MazBtn.js +3 -0
  13. package/components/MazCard.d.ts +183 -0
  14. package/components/MazCard.js +3 -0
  15. package/components/MazCarousel.d.ts +16 -0
  16. package/components/MazCarousel.js +3 -0
  17. package/components/MazChart/includes.d.ts +11 -0
  18. package/components/MazChart.d.ts +114 -0
  19. package/components/MazChart.js +1 -0
  20. package/components/MazCheckbox.d.ts +49 -0
  21. package/components/MazCheckbox.js +1 -0
  22. package/components/MazDialog.d.ts +29 -0
  23. package/components/MazDialog.js +3 -0
  24. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
  25. package/components/MazDialogPromise.d.ts +28 -0
  26. package/components/MazDialogPromise.js +3 -0
  27. package/components/MazDrawer.d.ts +59 -0
  28. package/components/MazDrawer.js +3 -0
  29. package/components/MazDropzone.d.ts +128 -0
  30. package/components/MazDropzone.js +3 -0
  31. package/components/MazGallery.d.ts +144 -0
  32. package/components/MazGallery.js +3 -0
  33. package/components/MazIcon.d.ts +66 -0
  34. package/components/MazIcon.js +3 -0
  35. package/components/MazInput.d.ts +276 -0
  36. package/components/MazInput.js +3 -0
  37. package/components/MazInputNumber.d.ts +67 -0
  38. package/components/MazInputNumber.js +3 -0
  39. package/components/MazInputPrice.d.ts +64 -0
  40. package/components/MazInputPrice.js +3 -0
  41. package/components/MazInputTags.d.ts +96 -0
  42. package/components/MazInputTags.js +3 -0
  43. package/components/MazLazyImg.d.ts +80 -0
  44. package/components/MazLazyImg.js +3 -0
  45. package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -0
  46. package/components/MazPhoneNumberInput/types.d.ts +21 -0
  47. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -0
  48. package/components/MazPhoneNumberInput/utils/index.d.ts +12 -0
  49. package/components/MazPhoneNumberInput.d.ts +255 -0
  50. package/components/MazPhoneNumberInput.js +3 -0
  51. package/components/MazPicker/MazPickerCalendar.vue.d.ts +137 -0
  52. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +22 -0
  53. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +114 -0
  54. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +124 -0
  55. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +38 -0
  56. package/components/MazPicker/MazPickerContainer.vue.d.ts +212 -0
  57. package/components/MazPicker/MazPickerHeader.vue.d.ts +84 -0
  58. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +43 -0
  59. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +62 -0
  60. package/components/MazPicker/MazPickerTime.vue.d.ts +129 -0
  61. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +35 -0
  62. package/components/MazPicker/types.d.ts +15 -0
  63. package/components/MazPicker/utils.d.ts +54 -0
  64. package/components/MazPicker.d.ts +313 -0
  65. package/components/MazPicker.js +3 -0
  66. package/components/MazRadioButtons.d.ts +69 -0
  67. package/components/MazRadioButtons.js +1 -0
  68. package/components/MazSelect.d.ts +176 -0
  69. package/components/MazSelect.js +3 -0
  70. package/components/MazSlider/utils.d.ts +15 -0
  71. package/components/MazSlider.d.ts +96 -0
  72. package/components/MazSlider.js +3 -0
  73. package/components/MazSpinner.d.ts +30 -0
  74. package/components/MazSpinner.js +1 -0
  75. package/components/MazStepper.d.ts +73 -0
  76. package/components/MazStepper.js +1 -0
  77. package/components/MazSwitch.d.ts +56 -0
  78. package/components/MazSwitch.js +1 -0
  79. package/components/MazTabsBar.d.ts +49 -0
  80. package/components/MazTabsBar.js +3 -0
  81. package/components/MazTabsContent.d.ts +16 -0
  82. package/components/MazTabsContent.js +1 -0
  83. package/components/MazTabsContentItem.d.ts +14 -0
  84. package/components/MazTabsContentItem.js +3 -0
  85. package/components/MazTextarea/textarea-autogrow.d.ts +9 -0
  86. package/components/MazTextarea.d.ts +125 -0
  87. package/components/MazTextarea.js +1 -0
  88. package/components/MazTransitionExpand.d.ts +4 -0
  89. package/components/MazTransitionExpand.js +1 -0
  90. package/components/index.d.ts +34 -0
  91. package/components/index.js +36 -0
  92. package/components/no_photo-a72545e4.js +1 -0
  93. package/components/types.d.ts +17 -0
  94. package/css/aos.css +1 -0
  95. package/css/main.css +1 -0
  96. package/maz-ui.d.ts +307 -0
  97. package/modules/index.js +3 -0
  98. package/modules/no_photo-a72545e4.js +1 -0
  99. package/package.json +145 -81
  100. package/tailwindcss/tailwind.config.js +65 -0
  101. package/tailwindcss/utils/colors.js +28 -0
  102. package/tailwindcss/variables/breakpoints.js +15 -0
  103. package/tailwindcss/variables/colors.js +44 -0
  104. package/tailwindcss/variables/utilities.js +20 -0
  105. package/tailwindcss/variables/z-indexes.js +15 -0
  106. package/LICENSE +0 -21
  107. package/README.md +0 -66
  108. package/bin/index.js +0 -63
  109. package/bin/lib/_constantes/default-colors.js +0 -69
  110. package/bin/lib/index.d.ts +0 -2
  111. package/bin/lib/index.js +0 -145
  112. package/bin/lib/methods/generate-root-css.js +0 -49
  113. package/bin/lib/methods/get-theme-settings.js +0 -58
  114. package/bin/lib/methods/set-css-vars.js +0 -11
  115. package/lib/css/base.css +0 -1
  116. package/lib/css/index.css +0 -1
  117. package/lib/css/maz-avatar.css +0 -1
  118. package/lib/css/maz-bottom-sheet.css +0 -1
  119. package/lib/css/maz-btn-group.css +0 -1
  120. package/lib/css/maz-btn.css +0 -0
  121. package/lib/css/maz-card.css +0 -1
  122. package/lib/css/maz-carousel.css +0 -1
  123. package/lib/css/maz-checkbox.css +0 -1
  124. package/lib/css/maz-collapse.css +0 -1
  125. package/lib/css/maz-dialog.css +0 -1
  126. package/lib/css/maz-draggable-list.css +0 -1
  127. package/lib/css/maz-dropdown.css +0 -1
  128. package/lib/css/maz-dropzone.css +0 -1
  129. package/lib/css/maz-flex.css +0 -0
  130. package/lib/css/maz-gallery.css +0 -0
  131. package/lib/css/maz-img.css +0 -1
  132. package/lib/css/maz-input-tags.css +0 -1
  133. package/lib/css/maz-input.css +0 -0
  134. package/lib/css/maz-list-item.css +0 -1
  135. package/lib/css/maz-list.css +0 -1
  136. package/lib/css/maz-loader.css +0 -0
  137. package/lib/css/maz-pagination.css +0 -1
  138. package/lib/css/maz-phone-number-input.css +0 -1
  139. package/lib/css/maz-picker.css +0 -1
  140. package/lib/css/maz-plotly.css +0 -0
  141. package/lib/css/maz-progress-bar.css +0 -1
  142. package/lib/css/maz-radio.css +0 -1
  143. package/lib/css/maz-read-more.css +0 -1
  144. package/lib/css/maz-responsive-menu.css +0 -1
  145. package/lib/css/maz-search.css +0 -1
  146. package/lib/css/maz-select.css +0 -0
  147. package/lib/css/maz-sidebar.css +0 -1
  148. package/lib/css/maz-slider.css +0 -1
  149. package/lib/css/maz-spinner.css +0 -0
  150. package/lib/css/maz-stepper.css +0 -1
  151. package/lib/css/maz-switch.css +0 -1
  152. package/lib/css/maz-tabs-bar.css +0 -1
  153. package/lib/css/maz-tabs-content-item.css +0 -1
  154. package/lib/css/maz-tabs-content.css +0 -1
  155. package/lib/css/maz-transition-expand.css +0 -0
  156. package/lib/index.d.ts +0 -1
  157. package/lib/index.js +0 -1
  158. package/lib/maz-avatar.d.ts +0 -3
  159. package/lib/maz-avatar.js +0 -430
  160. package/lib/maz-bottom-sheet.d.ts +0 -3
  161. package/lib/maz-bottom-sheet.js +0 -1045
  162. package/lib/maz-btn-group.d.ts +0 -3
  163. package/lib/maz-btn-group.js +0 -907
  164. package/lib/maz-btn.d.ts +0 -3
  165. package/lib/maz-btn.js +0 -764
  166. package/lib/maz-card.d.ts +0 -3
  167. package/lib/maz-card.js +0 -572
  168. package/lib/maz-carousel.d.ts +0 -3
  169. package/lib/maz-carousel.js +0 -569
  170. package/lib/maz-checkbox.d.ts +0 -3
  171. package/lib/maz-checkbox.js +0 -359
  172. package/lib/maz-collapse.d.ts +0 -3
  173. package/lib/maz-collapse.js +0 -1238
  174. package/lib/maz-dialog.d.ts +0 -3
  175. package/lib/maz-dialog.js +0 -1315
  176. package/lib/maz-draggable-list.d.ts +0 -3
  177. package/lib/maz-draggable-list.js +0 -439
  178. package/lib/maz-dropdown.d.ts +0 -3
  179. package/lib/maz-dropdown.js +0 -438
  180. package/lib/maz-dropzone.d.ts +0 -3
  181. package/lib/maz-dropzone.js +0 -664
  182. package/lib/maz-flex.d.ts +0 -3
  183. package/lib/maz-flex.js +0 -427
  184. package/lib/maz-gallery.d.ts +0 -3
  185. package/lib/maz-gallery.js +0 -672
  186. package/lib/maz-img.d.ts +0 -3
  187. package/lib/maz-img.js +0 -612
  188. package/lib/maz-input-tags.d.ts +0 -3
  189. package/lib/maz-input-tags.js +0 -1207
  190. package/lib/maz-input.d.ts +0 -3
  191. package/lib/maz-input.js +0 -1076
  192. package/lib/maz-list-item.d.ts +0 -3
  193. package/lib/maz-list-item.js +0 -304
  194. package/lib/maz-list.d.ts +0 -3
  195. package/lib/maz-list.js +0 -331
  196. package/lib/maz-loader.d.ts +0 -3
  197. package/lib/maz-loader.js +0 -304
  198. package/lib/maz-pagination.d.ts +0 -3
  199. package/lib/maz-pagination.js +0 -1414
  200. package/lib/maz-phone-number-input.d.ts +0 -3
  201. package/lib/maz-phone-number-input.js +0 -3776
  202. package/lib/maz-picker.d.ts +0 -3
  203. package/lib/maz-picker.js +0 -6474
  204. package/lib/maz-plotly.d.ts +0 -3
  205. package/lib/maz-plotly.js +0 -500
  206. package/lib/maz-progress-bar.d.ts +0 -3
  207. package/lib/maz-progress-bar.js +0 -398
  208. package/lib/maz-radio.d.ts +0 -3
  209. package/lib/maz-radio.js +0 -358
  210. package/lib/maz-read-more.d.ts +0 -3
  211. package/lib/maz-read-more.js +0 -344
  212. package/lib/maz-responsive-menu.d.ts +0 -3
  213. package/lib/maz-responsive-menu.js +0 -438
  214. package/lib/maz-search.d.ts +0 -3
  215. package/lib/maz-search.js +0 -1590
  216. package/lib/maz-select.d.ts +0 -3
  217. package/lib/maz-select.js +0 -2740
  218. package/lib/maz-sidebar.d.ts +0 -3
  219. package/lib/maz-sidebar.js +0 -815
  220. package/lib/maz-slider.d.ts +0 -3
  221. package/lib/maz-slider.js +0 -1014
  222. package/lib/maz-spinner.d.ts +0 -3
  223. package/lib/maz-spinner.js +0 -328
  224. package/lib/maz-stepper.d.ts +0 -3
  225. package/lib/maz-stepper.js +0 -1011
  226. package/lib/maz-switch.d.ts +0 -3
  227. package/lib/maz-switch.js +0 -375
  228. package/lib/maz-tabs-bar.d.ts +0 -3
  229. package/lib/maz-tabs-bar.js +0 -428
  230. package/lib/maz-tabs-content-item.d.ts +0 -3
  231. package/lib/maz-tabs-content-item.js +0 -376
  232. package/lib/maz-tabs-content.d.ts +0 -3
  233. package/lib/maz-tabs-content.js +0 -367
  234. package/lib/maz-transition-expand.d.ts +0 -3
  235. package/lib/maz-transition-expand.js +0 -328
  236. package/lib/maz-ui.common.d.ts +0 -1
  237. package/lib/maz-ui.common.js +0 -17202
package/lib/maz-btn.js DELETED
@@ -1,764 +0,0 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "/dist/";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 4);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ([
89
- /* 0 */
90
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
91
-
92
- "use strict";
93
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
94
- /* globals __VUE_SSR_CONTEXT__ */
95
-
96
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
97
- // This module is a runtime utility for cleaner component module output and will
98
- // be included in the final webpack user bundle.
99
-
100
- function normalizeComponent (
101
- scriptExports,
102
- render,
103
- staticRenderFns,
104
- functionalTemplate,
105
- injectStyles,
106
- scopeId,
107
- moduleIdentifier, /* server only */
108
- shadowMode /* vue-cli only */
109
- ) {
110
- // Vue.extend constructor export interop
111
- var options = typeof scriptExports === 'function'
112
- ? scriptExports.options
113
- : scriptExports
114
-
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
121
-
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
126
-
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
131
-
132
- var hook
133
- if (moduleIdentifier) { // server build
134
- hook = function (context) {
135
- // 2.3 injection
136
- context =
137
- context || // cached call
138
- (this.$vnode && this.$vnode.ssrContext) || // stateful
139
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
140
- // 2.2 with runInNewContext: true
141
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
142
- context = __VUE_SSR_CONTEXT__
143
- }
144
- // inject component styles
145
- if (injectStyles) {
146
- injectStyles.call(this, context)
147
- }
148
- // register component module identifier for async chunk inferrence
149
- if (context && context._registeredComponents) {
150
- context._registeredComponents.add(moduleIdentifier)
151
- }
152
- }
153
- // used by ssr in case component is cached and beforeCreate
154
- // never gets called
155
- options._ssrRegister = hook
156
- } else if (injectStyles) {
157
- hook = shadowMode
158
- ? function () {
159
- injectStyles.call(
160
- this,
161
- (options.functional ? this.parent : this).$root.$options.shadowRoot
162
- )
163
- }
164
- : injectStyles
165
- }
166
-
167
- if (hook) {
168
- if (options.functional) {
169
- // for template-only hot-reload because in that case the render fn doesn't
170
- // go through the normalizer
171
- options._injectStyles = hook
172
- // register for functional component in vue file
173
- var originalRender = options.render
174
- options.render = function renderWithStyleInjection (h, context) {
175
- hook.call(context)
176
- return originalRender(h, context)
177
- }
178
- } else {
179
- // inject component registration as beforeCreate hook
180
- var existing = options.beforeCreate
181
- options.beforeCreate = existing
182
- ? [].concat(existing, hook)
183
- : [hook]
184
- }
185
- }
186
-
187
- return {
188
- exports: scriptExports,
189
- options: options
190
- }
191
- }
192
-
193
-
194
- /***/ }),
195
- /* 1 */,
196
- /* 2 */
197
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
198
-
199
- "use strict";
200
- /* harmony default export */ __webpack_exports__["a"] = ({
201
- data: function data() {
202
- return {
203
- uniqueId: null
204
- };
205
- },
206
- mounted: function mounted() {
207
- var id = this.id || this.$attrs.id;
208
- this.uniqueId = id ? "".concat(id) : "".concat(this.$options.name, "-").concat(this._uid);
209
- }
210
- });
211
-
212
- /***/ }),
213
- /* 3 */,
214
- /* 4 */
215
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
216
-
217
- "use strict";
218
- // ESM COMPAT FLAG
219
- __webpack_require__.r(__webpack_exports__);
220
-
221
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazBtn/_main.vue?vue&type=template&id=247f3a44&
222
- var render = function () {
223
- var _vm = this
224
- var _h = _vm.$createElement
225
- var _c = _vm._self._c || _h
226
- return _c(
227
- _vm.componentType,
228
- _vm._b(
229
- {
230
- tag: "component",
231
- staticClass: "maz-base-component maz-btn maz-inline-flex",
232
- class: [
233
- _vm.classes,
234
- {
235
- "maz-text-hidden": _vm.loading,
236
- },
237
- ],
238
- attrs: {
239
- id: _vm.uniqueId,
240
- type: _vm.isLink ? null : _vm.type,
241
- disabled: _vm.isLink ? null : _vm.isDisabled,
242
- },
243
- on: {
244
- click: function ($event) {
245
- return _vm.handleClick($event)
246
- },
247
- mouseenter: function ($event) {
248
- return _vm.emitMouseEnter($event)
249
- },
250
- mouseleave: function ($event) {
251
- return _vm.emitMouseLeave($event)
252
- },
253
- focus: function ($event) {
254
- return _vm.emitFocus($event)
255
- },
256
- blur: function ($event) {
257
- return _vm.emitBlur($event)
258
- },
259
- },
260
- },
261
- "component",
262
- _vm.$attrs,
263
- false
264
- ),
265
- [
266
- _vm.hasLeftIcon() || _vm.hasMainIcon()
267
- ? _c(
268
- "div",
269
- {
270
- staticClass: "maz-flex maz-flex-center maz-btn__icon-left",
271
- class: {
272
- "maz-mr-2": !_vm.fab && _vm.hasSlotDefault(),
273
- },
274
- },
275
- [
276
- _vm._t("icon-left" || false, function () {
277
- return [
278
- _c("i", { staticClass: "material-icons" }, [
279
- _vm._v(_vm._s(_vm.leftIconName || _vm.iconName)),
280
- ]),
281
- ]
282
- }),
283
- ],
284
- 2
285
- )
286
- : _vm._e(),
287
- _c(
288
- "span",
289
- {
290
- staticClass:
291
- "maz-flex maz-align-center maz-h-100 maz-overflow-hidden",
292
- class: [_vm.textClasses, { "maz-flex-1": _vm.hasSlotDefault() }],
293
- },
294
- [_vm._t("default")],
295
- 2
296
- ),
297
- _vm.hasRightIcon()
298
- ? _c(
299
- "div",
300
- {
301
- staticClass: "maz-flex maz-flex-center maz-btn__icon-right",
302
- class: {
303
- "maz-ml-2": !_vm.fab && _vm.hasSlotDefault(),
304
- },
305
- },
306
- [
307
- _vm._t("icon-right", function () {
308
- return [
309
- _c("i", { staticClass: "material-icons" }, [
310
- _vm._v(_vm._s(_vm.rightIconName)),
311
- ]),
312
- ]
313
- }),
314
- ],
315
- 2
316
- )
317
- : _vm._e(),
318
- _vm.loading
319
- ? _c(
320
- "div",
321
- { staticClass: "maz-btn__spinner maz-flex maz-flex-center" },
322
- [_c("MazSpinner", { attrs: { size: 25, color: _vm.color } })],
323
- 1
324
- )
325
- : _vm._e(),
326
- ]
327
- )
328
- }
329
- var staticRenderFns = []
330
- render._withStripped = true
331
-
332
-
333
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=template&id=247f3a44&
334
-
335
- // EXTERNAL MODULE: ./packages/components/MazSpinner/index.js + 5 modules
336
- var MazSpinner = __webpack_require__(5);
337
-
338
- // EXTERNAL MODULE: ./packages/mixins/uniqueId.js
339
- var uniqueId = __webpack_require__(2);
340
-
341
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazBtn/_main.vue?vue&type=script&lang=js&
342
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
343
-
344
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
345
-
346
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
347
-
348
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
349
-
350
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
351
-
352
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
353
-
354
- //
355
- //
356
- //
357
- //
358
- //
359
- //
360
- //
361
- //
362
- //
363
- //
364
- //
365
- //
366
- //
367
- //
368
- //
369
- //
370
- //
371
- //
372
- //
373
- //
374
- //
375
- //
376
- //
377
- //
378
- //
379
- //
380
- //
381
- //
382
- //
383
- //
384
- //
385
- //
386
- //
387
- //
388
- //
389
- //
390
- //
391
- //
392
- //
393
- //
394
- //
395
- //
396
- //
397
- //
398
- //
399
- //
400
- //
401
- //
402
- //
403
- //
404
- //
405
- //
406
- //
407
- //
408
- //
409
- //
410
- //
411
- //
412
- //
413
- //
414
- //
415
- //
416
- //
417
- //
418
- //
419
- //
420
- //
421
-
422
-
423
- /**
424
- * > Simple button component
425
- */
426
-
427
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
428
- name: 'MazBtn',
429
- components: {
430
- MazSpinner: MazSpinner["default"]
431
- },
432
- mixins: [uniqueId["a" /* default */]],
433
- inheritAttrs: false,
434
- props: {
435
- // is the id of the button
436
- id: {
437
- type: String,
438
- default: null
439
- },
440
- // is color type (`primary` / `secondary` / `third` / `success` / `danger` / `grey` / `info` / `warning` / `light` / `dark` / `default` / `white` / `black`)
441
- color: {
442
- type: String,
443
- default: 'primary'
444
- },
445
- // is the button type (button, submit or something else)
446
- type: {
447
- type: String,
448
- default: 'button'
449
- },
450
- // button size (`xl`, `lg` / `md` / `sm` / `mini`)
451
- size: {
452
- type: String,
453
- default: 'md'
454
- },
455
- // is a `boolean` to show the loader & disable it
456
- loading: {
457
- type: Boolean,
458
- default: false
459
- },
460
- // is a `boolean` to disable the button
461
- disabled: {
462
- type: Boolean,
463
- default: false
464
- },
465
- // apply the outline style
466
- outline: {
467
- type: Boolean,
468
- default: false
469
- },
470
- // apply the rounded style
471
- rounded: {
472
- type: Boolean,
473
- default: false
474
- },
475
- // apply the fab style
476
- fab: {
477
- type: Boolean,
478
- default: false
479
- },
480
- // apply the focus style
481
- active: {
482
- type: Boolean,
483
- default: false
484
- },
485
- // take 100% of the width
486
- block: {
487
- type: Boolean,
488
- default: false
489
- },
490
- // remove shadow/elevation
491
- noShadow: {
492
- type: Boolean,
493
- default: false
494
- },
495
- // should be a [material icon](https://material.io/resources/icons/) name (usefull with fab buttons)
496
- iconName: {
497
- type: String,
498
- default: null
499
- },
500
- // should be a [material icon](https://material.io/resources/icons/) name
501
- leftIconName: {
502
- type: String,
503
- default: null
504
- },
505
- // should be a [material icon](https://material.io/resources/icons/) name
506
- rightIconName: {
507
- type: String,
508
- default: null
509
- },
510
- // align text to left (for block button)
511
- justifyStart: {
512
- type: Boolean,
513
- default: false
514
- },
515
- // align text to right (for block button)
516
- justifyEnd: {
517
- type: Boolean,
518
- default: false
519
- }
520
- },
521
- computed: {
522
- componentType: function componentType() {
523
- var _this$$attrs = this.$attrs,
524
- href = _this$$attrs.href,
525
- to = _this$$attrs.to;
526
- if (href) return 'a';else if (to) return 'router-link';
527
- return 'button';
528
- },
529
- isLink: function isLink() {
530
- return this.componentType === 'a';
531
- },
532
- isDisabled: function isDisabled() {
533
- var disabled = this.disabled,
534
- loading = this.loading;
535
- return loading || disabled;
536
- },
537
- classes: function classes() {
538
- var color = this.color,
539
- size = this.size,
540
- outline = this.outline,
541
- rounded = this.rounded,
542
- fab = this.fab,
543
- active = this.active,
544
- block = this.block,
545
- noShadow = this.noShadow,
546
- hasRightIcon = this.hasRightIcon,
547
- hasLeftIcon = this.hasLeftIcon,
548
- hasIcon = this.hasIcon,
549
- hasSlotDefault = this.hasSlotDefault;
550
- return [].concat(_toConsumableArray(color ? ["maz-btn--".concat(color)] : [null]), _toConsumableArray(size ? ["maz-btn--".concat(size)] : [null]), _toConsumableArray(outline ? ['maz-btn--outline'] : [null]), _toConsumableArray(rounded ? ['maz-btn--rounded'] : [null]), _toConsumableArray(block ? ['maz-btn--block'] : [null]), _toConsumableArray(fab ? ['maz-btn--fab'] : [null]), _toConsumableArray(active ? ['maz-active'] : [null]), _toConsumableArray(noShadow ? ['maz-no-shadow'] : [null]), _toConsumableArray(hasLeftIcon() ? ['maz-btn--icon--left'] : [null]), _toConsumableArray(hasRightIcon() ? ['maz-btn--icon--right'] : [null]), _toConsumableArray(hasIcon() ? ['maz-btn--icon'] : [null]), _toConsumableArray(!hasSlotDefault() ? ['maz-btn--no-text'] : [null]));
551
- },
552
- textClasses: function textClasses() {
553
- var justifyStart = this.justifyStart,
554
- justifyEnd = this.justifyEnd;
555
- return [].concat(_toConsumableArray(justifyStart ? ['maz-justify-start'] : [null]), _toConsumableArray(justifyEnd ? ['maz-justify-end'] : [null]), _toConsumableArray(!justifyStart && !justifyEnd ? ['maz-justify-center'] : [null]));
556
- }
557
- },
558
- methods: {
559
- hasSlotDefault: function hasSlotDefault() {
560
- return this.$slots['default'];
561
- },
562
- hasIcon: function hasIcon() {
563
- return this.hasLeftIcon() || this.hasRightIcon() || this.hasMainIcon();
564
- },
565
- hasMainIcon: function hasMainIcon() {
566
- return this.iconName || this.$slots['icon'];
567
- },
568
- hasLeftIcon: function hasLeftIcon() {
569
- return this.leftIconName || this.$slots['icon-left'];
570
- },
571
- hasRightIcon: function hasRightIcon() {
572
- return this.rightIconName || this.$slots['icon-right'];
573
- },
574
- handleClick: function handleClick(e) {
575
- // return click event
576
- this.$emit('click', e);
577
- },
578
- emitMouseEnter: function emitMouseEnter(e) {
579
- // return mouseenter event
580
- this.$emit('mouseenter', e);
581
- },
582
- emitMouseLeave: function emitMouseLeave(e) {
583
- // return mouseleave event
584
- this.$emit('mouseleave', e);
585
- },
586
- emitFocus: function emitFocus(e) {
587
- // return focus event
588
- this.$emit('focus', e);
589
- },
590
- emitBlur: function emitBlur(e) {
591
- // return blur event
592
- this.$emit('blur', e);
593
- }
594
- }
595
- });
596
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=script&lang=js&
597
- /* harmony default export */ var MazBtn_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
598
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
599
- var componentNormalizer = __webpack_require__(0);
600
-
601
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue
602
-
603
-
604
-
605
-
606
-
607
- /* normalize component */
608
-
609
- var component = Object(componentNormalizer["a" /* default */])(
610
- MazBtn_mainvue_type_script_lang_js_,
611
- render,
612
- staticRenderFns,
613
- false,
614
- null,
615
- null,
616
- null
617
-
618
- )
619
-
620
- /* hot reload */
621
- if (false) { var api; }
622
- component.options.__file = "packages/components/MazBtn/_main.vue"
623
- /* harmony default export */ var _main = (component.exports);
624
- // CONCATENATED MODULE: ./packages/components/MazBtn/index.js
625
-
626
-
627
- _main.install = function (Vue) {
628
- Vue.component(_main.name, _main);
629
- };
630
-
631
- /* harmony default export */ var MazBtn = __webpack_exports__["default"] = (_main);
632
-
633
- /***/ }),
634
- /* 5 */
635
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
636
-
637
- "use strict";
638
- // ESM COMPAT FLAG
639
- __webpack_require__.r(__webpack_exports__);
640
-
641
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSpinner/_main.vue?vue&type=template&id=67a8ca41&
642
- var render = function () {
643
- var _vm = this
644
- var _h = _vm.$createElement
645
- var _c = _vm._self._c || _h
646
- return _c(
647
- "svg",
648
- {
649
- staticClass: "maz-base-component maz-spinner maz-spinner-anim",
650
- class: [
651
- {
652
- "spinner-anim__white": _vm.dark,
653
- },
654
- _vm.fillColorClass,
655
- ],
656
- staticStyle: { "enable-background": "new 0 0 50 50" },
657
- attrs: {
658
- width: _vm.size + "px",
659
- height: _vm.size + "px",
660
- version: "1.1",
661
- xmlns: "http://www.w3.org/2000/svg",
662
- x: "0px",
663
- y: "0px",
664
- viewBox: "0 0 50 50",
665
- "xml:space": "preserve",
666
- },
667
- },
668
- [
669
- _c("path", {
670
- attrs: {
671
- d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z",
672
- },
673
- }),
674
- ]
675
- )
676
- }
677
- var staticRenderFns = []
678
- render._withStripped = true
679
-
680
-
681
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=template&id=67a8ca41&
682
-
683
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSpinner/_main.vue?vue&type=script&lang=js&
684
- //
685
- //
686
- //
687
- //
688
- //
689
- //
690
- //
691
- //
692
- //
693
- //
694
- //
695
- //
696
- //
697
- //
698
- //
699
- //
700
- //
701
- //
702
- //
703
- //
704
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
705
- name: 'MazSpinner',
706
- props: {
707
- size: {
708
- type: Number,
709
- default: 40
710
- },
711
- dark: {
712
- type: Boolean,
713
- default: false
714
- },
715
- color: {
716
- type: String,
717
- default: 'primary'
718
- }
719
- },
720
- computed: {
721
- fillColorClass: function fillColorClass() {
722
- return "maz-fill-".concat(this.color);
723
- }
724
- }
725
- });
726
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=script&lang=js&
727
- /* harmony default export */ var MazSpinner_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
728
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
729
- var componentNormalizer = __webpack_require__(0);
730
-
731
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue
732
-
733
-
734
-
735
-
736
-
737
- /* normalize component */
738
-
739
- var component = Object(componentNormalizer["a" /* default */])(
740
- MazSpinner_mainvue_type_script_lang_js_,
741
- render,
742
- staticRenderFns,
743
- false,
744
- null,
745
- null,
746
- null
747
-
748
- )
749
-
750
- /* hot reload */
751
- if (false) { var api; }
752
- component.options.__file = "packages/components/MazSpinner/_main.vue"
753
- /* harmony default export */ var _main = (component.exports);
754
- // CONCATENATED MODULE: ./packages/components/MazSpinner/index.js
755
-
756
-
757
- _main.install = function (Vue) {
758
- Vue.component(_main.name, _main);
759
- };
760
-
761
- /* harmony default export */ var MazSpinner = __webpack_exports__["default"] = (_main);
762
-
763
- /***/ })
764
- /******/ ]);