@volverjs/ui-vue 0.0.10-beta.10 → 0.0.10-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +1 -0
- package/dist/components/VvNav/VvNav.es.js +2 -2
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +1 -0
- package/dist/components/VvTab/VvTab.es.js +4 -4
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.es.js +571 -160
- package/dist/components/index.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/resolvers/unplugin.d.ts +6 -1
- package/dist/resolvers/unplugin.es.js +20 -5
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/types/nav.d.ts +1 -0
- package/package.json +1 -1
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvNav/VvNav.vue +2 -2
- package/src/components/VvTab/VvTab.vue +2 -2
- package/src/components/index.ts +9 -0
- package/src/resolvers/unplugin.ts +22 -2
- package/src/types/nav.ts +1 -0
|
@@ -22,6 +22,11 @@ export interface VolverResolverOptions {
|
|
|
22
22
|
* @default undefined
|
|
23
23
|
*/
|
|
24
24
|
ignore?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* cherry pick components from named exports
|
|
27
|
+
* @default undefined
|
|
28
|
+
*/
|
|
29
|
+
cherryPick?: boolean;
|
|
25
30
|
}
|
|
26
31
|
export declare const getStyleNames: (kebabName: string) => string[] | undefined;
|
|
27
32
|
/**
|
|
@@ -29,5 +34,5 @@ export declare const getStyleNames: (kebabName: string) => string[] | undefined;
|
|
|
29
34
|
*
|
|
30
35
|
* @link https://github.com/volverjs/ui-vue
|
|
31
36
|
*/
|
|
32
|
-
export declare function VolverResolver({ prefix, importStyle, directives, ignore, }?: VolverResolverOptions): ComponentResolver[];
|
|
37
|
+
export declare function VolverResolver({ prefix, importStyle, directives, ignore, cherryPick, }?: VolverResolverOptions): ComponentResolver[];
|
|
33
38
|
export {};
|
|
@@ -61,7 +61,8 @@ function VolverResolver({
|
|
|
61
61
|
prefix = VOLVER_PREFIX,
|
|
62
62
|
importStyle,
|
|
63
63
|
directives,
|
|
64
|
-
ignore
|
|
64
|
+
ignore,
|
|
65
|
+
cherryPick
|
|
65
66
|
} = {}) {
|
|
66
67
|
return [
|
|
67
68
|
{
|
|
@@ -77,9 +78,16 @@ function VolverResolver({
|
|
|
77
78
|
if (ignore && ignore.includes(kebabName)) {
|
|
78
79
|
return;
|
|
79
80
|
}
|
|
81
|
+
if (cherryPick) {
|
|
82
|
+
return {
|
|
83
|
+
from: `@volverjs/ui-vue/${kebabName}`,
|
|
84
|
+
sideEffects: getSideEffects(kebabName, importStyle)
|
|
85
|
+
};
|
|
86
|
+
}
|
|
80
87
|
return {
|
|
81
|
-
from:
|
|
82
|
-
sideEffects: getSideEffects(kebabName, importStyle)
|
|
88
|
+
from: "@volverjs/ui-vue/components",
|
|
89
|
+
sideEffects: getSideEffects(kebabName, importStyle),
|
|
90
|
+
name
|
|
83
91
|
};
|
|
84
92
|
}
|
|
85
93
|
},
|
|
@@ -96,9 +104,16 @@ function VolverResolver({
|
|
|
96
104
|
if (ignore && ignore.includes(kebabName)) {
|
|
97
105
|
return;
|
|
98
106
|
}
|
|
107
|
+
if (cherryPick) {
|
|
108
|
+
return {
|
|
109
|
+
from: `@volverjs/ui-vue/${kebabName}`,
|
|
110
|
+
sideEffects: getSideEffects(kebabName, importStyle)
|
|
111
|
+
};
|
|
112
|
+
}
|
|
99
113
|
return {
|
|
100
|
-
from:
|
|
101
|
-
sideEffects: getSideEffects(kebabName, importStyle)
|
|
114
|
+
from: "@volverjs/ui-vue/directives",
|
|
115
|
+
sideEffects: getSideEffects(kebabName, importStyle),
|
|
116
|
+
name
|
|
102
117
|
};
|
|
103
118
|
}
|
|
104
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((o="undefined"!=typeof globalThis?globalThis:o||self).components={})}(this,(function(o){"use strict";function e(o,e){if("string"!=typeof o)throw new TypeError("expected a string");return o.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,(o=>/[À-ž]/.test(o)?o:"-")).replace(/^-+|-+$/g,"").replace(/-{2,}/g,(o=>(null==e?void 0:e.condense)?"-":o)).toLowerCase()}const
|
|
1
|
+
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((o="undefined"!=typeof globalThis?globalThis:o||self).components={})}(this,(function(o){"use strict";function e(o,e){if("string"!=typeof o)throw new TypeError("expected a string");return o.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,(o=>/[À-ž]/.test(o)?o:"-")).replace(/^-+|-+$/g,"").replace(/-{2,}/g,(o=>(null==e?void 0:e.condense)?"-":o)).toLowerCase()}const r=["vv-icon","vv-action"],t=["v-tooltip"],v=function(o){if(!r.includes(o))return"vv-dropdown"===o?["vv-dropdown","vv-dropdown-option","vv-dropdown-action"]:"vv-combobox"===o?["vv-select","vv-dropdown-option","vv-dropdown-optgroup","vv-dropdown","vv-dropdown-action"]:"vv-button-group"===o?["vv-button","vv-button-group"]:"vv-accordion-group"===o?["vv-accordion","vv-accordion-group"]:"vv-checkbox-group"===o?["vv-checkbox","vv-checkbox-group"]:"vv-radio-group"===o?["vv-radio","vv-radio-group"]:"vv-alert-group"===o?["vv-alert","vv-alert-group"]:"v-tooltip"===o?["vv-tooltip"]:[o]},n=function(o,e){const r=[];if(!e)return r;const t=v(o);return t&&t.forEach((o=>{r.push(`@volverjs/style/${"scss"===e?"scss/":""}components/${o}`)})),r};o.VolverResolver=function({prefix:o="vv",importStyle:r,directives:v,ignore:i,cherryPick:c}={}){return[{type:"component",resolve:t=>{if(!o||!t.toLowerCase().startsWith(o.toLowerCase()))return;const v=e(t).replace(`${o}-`,"vv-");return i&&i.includes(v)?void 0:c?{from:`@volverjs/ui-vue/${v}`,sideEffects:n(v,r)}:{from:"@volverjs/ui-vue/components",sideEffects:n(v,r),name:t}}},{type:"directive",resolve:o=>{if(!v)return;const s=`v-${e(o)}`;return!t.includes(s)||i&&i.includes(s)?void 0:c?{from:`@volverjs/ui-vue/${s}`,sideEffects:n(s,r)}:{from:"@volverjs/ui-vue/directives",sideEffects:n(s,r),name:o}}}]},o.getStyleNames=v,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/types/nav.d.ts
CHANGED