maz-ui 3.23.1 → 3.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/nuxt/index.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.23.1"
7
+ "version": "3.23.2"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.23.1",
3
+ "version": "3.23.2",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
6
  "main": "./modules/index.cjs",
@@ -47,6 +47,7 @@
47
47
  "nuxt",
48
48
  "types",
49
49
  "icons",
50
+ "resolvers",
50
51
  "bin"
51
52
  ],
52
53
  "lint-staged": {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e){return e.replaceAll(/-(\w)/g,(s,t)=>t?t.toUpperCase():"")}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){return o(n(e))}function u(){return{type:"component",resolve:e=>{if(/^(Maz[A-Z])/.test(e))return{from:`maz-ui/components/${e}`};if(/^(maz-[a-z])/.test(e))return{from:`maz-ui/components/${r(e)}`}}}}exports.UnpluginVueComponentsResolver=u;
@@ -0,0 +1 @@
1
+ export * from './unplugin-vue-components-resolver';
@@ -0,0 +1,23 @@
1
+ function n(e) {
2
+ return e.replaceAll(/-(\w)/g, (p, t) => t ? t.toUpperCase() : "");
3
+ }
4
+ function r(e) {
5
+ return e.charAt(0).toUpperCase() + e.slice(1);
6
+ }
7
+ function o(e) {
8
+ return r(n(e));
9
+ }
10
+ function u() {
11
+ return {
12
+ type: "component",
13
+ resolve: (e) => {
14
+ if (/^(Maz[A-Z])/.test(e))
15
+ return { from: `maz-ui/components/${e}` };
16
+ if (/^(maz-[a-z])/.test(e))
17
+ return { from: `maz-ui/components/${o(e)}` };
18
+ }
19
+ };
20
+ }
21
+ export {
22
+ u as UnpluginVueComponentsResolver
23
+ };
@@ -0,0 +1,8 @@
1
+ import { type ComponentResolver } from 'unplugin-vue-components';
2
+ /**
3
+ * Resolver for Maz-UI
4
+ *
5
+ * @author @louismazel
6
+ * @link https://louismazel.github.io/maz-ui-3
7
+ */
8
+ export declare function UnpluginVueComponentsResolver(): ComponentResolver;