@volverjs/ui-vue 0.0.10-beta.10 → 0.0.10-beta.11

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.
@@ -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: `@volverjs/ui-vue/${kebabName}`,
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: `@volverjs/ui-vue/${kebabName}`,
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 t=["vv-icon","vv-action"],r=["v-tooltip"],v=function(o){if(!t.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 t=[];if(!e)return t;const r=v(o);return r&&r.forEach((o=>{t.push(`@volverjs/style/${"scss"===e?"scss/":""}components/${o}`)})),t};o.VolverResolver=function({prefix:o="vv",importStyle:t,directives:v,ignore:i}={}){return[{type:"component",resolve:r=>{if(!o||!r.toLowerCase().startsWith(o.toLowerCase()))return;const v=e(r).replace(`${o}-`,"vv-");return i&&i.includes(v)?void 0:{from:`@volverjs/ui-vue/${v}`,sideEffects:n(v,t)}}},{type:"directive",resolve:o=>{if(!v)return;const c=`v-${e(o)}`;return!r.includes(c)||i&&i.includes(c)?void 0:{from:`@volverjs/ui-vue/${c}`,sideEffects:n(c,t)}}}]},o.getStyleNames=v,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
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"})}));
@@ -11,6 +11,7 @@ export type NavItem = {
11
11
  current?: boolean;
12
12
  class?: string | string[];
13
13
  on?: Record<'click' | string, () => void>;
14
+ data?: Record<string, unknown>;
14
15
  };
15
16
  export type NavItemTab = NavItem & {
16
17
  tab?: string;
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "bugs": {
20
20
  "url": "https://github.com/volverjs/ui-vue/issues"
21
21
  },
22
- "version": "0.0.10-beta.10",
22
+ "version": "0.0.10-beta.11",
23
23
  "engines": {
24
24
  "node": ">= 16.x"
25
25
  },