unplugin-vue-components 28.3.0 → 28.4.1

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/README.md CHANGED
@@ -341,7 +341,7 @@ export default {
341
341
 
342
342
  // `customLoaderMatcher` is depreacted, use `include` instead
343
343
  - customLoaderMatcher: id => id.endsWith('.md'),
344
- + include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
344
+ + include: [/\.vue$/, /\.vue\?vue/, /\.vue\.[tj]sx?\?vue/, /\.md$/],
345
345
  }),
346
346
  ],
347
347
  }
@@ -401,7 +401,7 @@ Components({
401
401
 
402
402
  // Filters for transforming targets (components to insert the auto import)
403
403
  // Note these are NOT about including/excluding components registered - use `globs` or `excludeNames` for that
404
- include: [/\.vue$/, /\.vue\?vue/],
404
+ include: [/\.vue$/, /\.vue\?vue/, /\.vue\.[tj]sx?\?vue/],
405
405
  exclude: [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
406
406
 
407
407
  // Filters for component names that will not be imported
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
 
18
- var _chunkCYD4VYHZcjs = require('./chunk-CYD4VYHZ.cjs');
18
+ var _chunk6XRV7GTUcjs = require('./chunk-6XRV7GTU.cjs');
19
19
 
20
20
  // src/core/unplugin.ts
21
21
  var _fs = require('fs');
@@ -57,7 +57,7 @@ var TypeImportPresets = [
57
57
 
58
58
  // src/core/type-imports/detect.ts
59
59
  function detectTypeImports() {
60
- return TypeImportPresets.map((i) => _localpkg.isPackageExists.call(void 0, i.from) ? i : void 0).filter(_chunkCYD4VYHZcjs.notNullish);
60
+ return TypeImportPresets.map((i) => _localpkg.isPackageExists.call(void 0, i.from) ? i : void 0).filter(_chunk6XRV7GTUcjs.notNullish);
61
61
  }
62
62
  function resolveTypeImports(imports) {
63
63
  return imports.flatMap((i) => i.names.map((n) => ({ from: i.from, name: n, as: n })));
@@ -88,14 +88,14 @@ function parseDeclaration(code) {
88
88
  function stringifyComponentInfo(filepath, { from: path, as: name, name: importName }, importPathTransform) {
89
89
  if (!name)
90
90
  return void 0;
91
- path = _chunkCYD4VYHZcjs.getTransformedPath.call(void 0, path, importPathTransform);
91
+ path = _chunk6XRV7GTUcjs.getTransformedPath.call(void 0, path, importPathTransform);
92
92
  const related = _path.isAbsolute.call(void 0, path) ? `./${_path.relative.call(void 0, _path.dirname.call(void 0, filepath), path)}` : path;
93
- const entry = `typeof import('${_chunkCYD4VYHZcjs.slash.call(void 0, related)}')['${importName || "default"}']`;
93
+ const entry = `typeof import('${_chunk6XRV7GTUcjs.slash.call(void 0, related)}')['${importName || "default"}']`;
94
94
  return [name, entry];
95
95
  }
96
96
  function stringifyComponentsInfo(filepath, components, importPathTransform) {
97
97
  return Object.fromEntries(
98
- components.map((info) => stringifyComponentInfo(filepath, info, importPathTransform)).filter(_chunkCYD4VYHZcjs.notNullish)
98
+ components.map((info) => stringifyComponentInfo(filepath, info, importPathTransform)).filter(_chunk6XRV7GTUcjs.notNullish)
99
99
  );
100
100
  }
101
101
  function getDeclarationImports(ctx, filepath) {
@@ -134,6 +134,7 @@ function getDeclaration(ctx, filepath, originalImports) {
134
134
  // @ts-nocheck
135
135
  // Generated by unplugin-vue-components
136
136
  // Read more: https://github.com/vuejs/core/pull/3399
137
+ // biome-ignore lint: disable
137
138
  export {}
138
139
 
139
140
  /* prettier-ignore */
@@ -178,7 +179,8 @@ function searchComponents(ctx) {
178
179
  ignore: ctx.options.globsExclude,
179
180
  onlyFiles: true,
180
181
  cwd: root,
181
- absolute: true
182
+ absolute: true,
183
+ expandDirectories: false
182
184
  });
183
185
  if (!files.length && !_optionalChain([ctx, 'access', _9 => _9.options, 'access', _10 => _10.resolvers, 'optionalAccess', _11 => _11.length]))
184
186
  console.warn("[unplugin-vue-components] no components found");
@@ -199,34 +201,46 @@ var defaultOptions = {
199
201
  globalNamespaces: [],
200
202
  transformerUserResolveFunctions: true,
201
203
  resolvers: [],
202
- globsExclude: [],
203
204
  importPathTransform: (v) => v,
204
205
  allowOverrides: false
205
206
  };
206
207
  function normalizeResolvers(resolvers) {
207
- return _chunkCYD4VYHZcjs.toArray.call(void 0, resolvers).flat().map((r) => typeof r === "function" ? { resolve: r, type: "component" } : r);
208
+ return _chunk6XRV7GTUcjs.toArray.call(void 0, resolvers).flat().map((r) => typeof r === "function" ? { resolve: r, type: "component" } : r);
208
209
  }
209
210
  function resolveGlobsExclude(root, glob) {
210
211
  const excludeReg = /^!/;
211
- return `${excludeReg.test(glob) ? "!" : ""}${_path.resolve.call(void 0, root, glob.replace(excludeReg, ""))}`;
212
+ return _chunk6XRV7GTUcjs.slash.call(void 0, `${excludeReg.test(glob) ? "!" : ""}${_path.resolve.call(void 0, root, glob.replace(excludeReg, ""))}`);
212
213
  }
213
214
  function resolveOptions(options, root) {
214
215
  const resolved = Object.assign({}, defaultOptions, options);
215
216
  resolved.resolvers = normalizeResolvers(resolved.resolvers);
216
- resolved.extensions = _chunkCYD4VYHZcjs.toArray.call(void 0, resolved.extensions);
217
+ resolved.extensions = _chunk6XRV7GTUcjs.toArray.call(void 0, resolved.extensions);
217
218
  if (resolved.globs) {
218
- resolved.globs = _chunkCYD4VYHZcjs.toArray.call(void 0, resolved.globs).map((glob) => _chunkCYD4VYHZcjs.slash.call(void 0, resolveGlobsExclude(root, glob)));
219
+ resolved.globs = _chunk6XRV7GTUcjs.toArray.call(void 0, resolved.globs).map((glob) => resolveGlobsExclude(root, glob));
219
220
  resolved.resolvedDirs = [];
220
221
  } else {
221
222
  const extsGlob = resolved.extensions.length === 1 ? resolved.extensions : `{${resolved.extensions.join(",")}}`;
222
- resolved.dirs = _chunkCYD4VYHZcjs.toArray.call(void 0, resolved.dirs);
223
- resolved.resolvedDirs = resolved.dirs.map((i) => _chunkCYD4VYHZcjs.slash.call(void 0, resolveGlobsExclude(root, i)));
224
- resolved.globs = resolved.resolvedDirs.map(
225
- (i) => resolved.deep ? _chunkCYD4VYHZcjs.slash.call(void 0, _path.join.call(void 0, i, `**/*.${extsGlob}`)) : _chunkCYD4VYHZcjs.slash.call(void 0, _path.join.call(void 0, i, `*.${extsGlob}`))
226
- );
223
+ resolved.dirs = _chunk6XRV7GTUcjs.toArray.call(void 0, resolved.dirs);
224
+ const globs = resolved.dirs.map((i) => resolveGlobsExclude(root, i));
225
+ resolved.resolvedDirs = globs.filter((i) => !i.startsWith("!"));
226
+ resolved.globs = globs.map((i) => {
227
+ let prefix = "";
228
+ if (i.startsWith("!")) {
229
+ prefix = "!";
230
+ i = i.slice(1);
231
+ }
232
+ return resolved.deep ? prefix + _chunk6XRV7GTUcjs.slash.call(void 0, _path.join.call(void 0, i, `**/*.${extsGlob}`)) : prefix + _chunk6XRV7GTUcjs.slash.call(void 0, _path.join.call(void 0, i, `*.${extsGlob}`));
233
+ });
227
234
  if (!resolved.extensions.length)
228
235
  throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
229
236
  }
237
+ resolved.globsExclude = _chunk6XRV7GTUcjs.toArray.call(void 0, resolved.globsExclude || []).map((i) => resolveGlobsExclude(root, i));
238
+ resolved.globs = resolved.globs.filter((i) => {
239
+ if (!i.startsWith("!"))
240
+ return true;
241
+ resolved.globsExclude.push(i.slice(1));
242
+ return false;
243
+ });
230
244
  resolved.dts = !resolved.dts ? false : _path.resolve.call(void 0,
231
245
  root,
232
246
  typeof resolved.dts === "string" ? resolved.dts : "components.d.ts"
@@ -297,12 +311,12 @@ async function transformComponent(code, transformer2, s, ctx, sfcPath) {
297
311
  const results = transformer2 === "vue2" ? resolveVue2(code, s) : resolveVue3(code, s, ctx.options.transformerUserResolveFunctions);
298
312
  for (const { rawName, replace } of results) {
299
313
  debug2(`| ${rawName}`);
300
- const name = _chunkCYD4VYHZcjs.pascalCase.call(void 0, rawName);
314
+ const name = _chunk6XRV7GTUcjs.pascalCase.call(void 0, rawName);
301
315
  ctx.updateUsageMap(sfcPath, [name]);
302
316
  const component = await ctx.findComponent(name, "component", [sfcPath]);
303
317
  if (component) {
304
318
  const varName = `__unplugin_components_${no}`;
305
- s.prepend(`${_chunkCYD4VYHZcjs.stringifyComponentImport.call(void 0, { ...component, as: varName }, ctx)};
319
+ s.prepend(`${_chunk6XRV7GTUcjs.stringifyComponentImport.call(void 0, { ...component, as: varName }, ctx)};
306
320
  `);
307
321
  no += 1;
308
322
  replace(varName);
@@ -408,13 +422,13 @@ async function transformDirective(code, transformer2, s, ctx, sfcPath) {
408
422
  const results = await (transformer2 === "vue2" ? resolveVue22(code, s) : resolveVue32(code, s));
409
423
  for (const { rawName, replace } of results) {
410
424
  debug3(`| ${rawName}`);
411
- const name = `${_chunkCYD4VYHZcjs.DIRECTIVE_IMPORT_PREFIX}${_chunkCYD4VYHZcjs.pascalCase.call(void 0, rawName)}`;
425
+ const name = `${_chunk6XRV7GTUcjs.DIRECTIVE_IMPORT_PREFIX}${_chunk6XRV7GTUcjs.pascalCase.call(void 0, rawName)}`;
412
426
  ctx.updateUsageMap(sfcPath, [name]);
413
427
  const directive = await ctx.findComponent(name, "directive", [sfcPath]);
414
428
  if (!directive)
415
429
  continue;
416
430
  const varName = `__unplugin_directives_${no}`;
417
- s.prepend(`${_chunkCYD4VYHZcjs.stringifyComponentImport.call(void 0, { ...directive, as: varName }, ctx)};
431
+ s.prepend(`${_chunk6XRV7GTUcjs.stringifyComponentImport.call(void 0, { ...directive, as: varName }, ctx)};
418
432
  `);
419
433
  no += 1;
420
434
  replace(varName);
@@ -433,7 +447,7 @@ function transformer(ctx, transformer2) {
433
447
  await transformComponent(code, transformer2, s, ctx, sfcPath);
434
448
  if (ctx.options.directives)
435
449
  await transformDirective(code, transformer2, s, ctx, sfcPath);
436
- s.prepend(_chunkCYD4VYHZcjs.DISABLE_COMMENT);
450
+ s.prepend(_chunk6XRV7GTUcjs.DISABLE_COMMENT);
437
451
  const result = { code: s.toString() };
438
452
  if (ctx.sourcemap)
439
453
  result.map = s.generateMap({ source: id, includeContent: true, hires: "boundary" });
@@ -453,7 +467,7 @@ var Context = (_class = class {
453
467
  constructor(rawOptions) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);_class.prototype.__init10.call(this);
454
468
  this.rawOptions = rawOptions;
455
469
  this.options = resolveOptions(rawOptions, this.root);
456
- this.generateDeclaration = _chunkCYD4VYHZcjs.throttle.call(void 0, 500, this._generateDeclaration.bind(this), { noLeading: false });
470
+ this.generateDeclaration = _chunk6XRV7GTUcjs.throttle.call(void 0, 500, this._generateDeclaration.bind(this), { noLeading: false });
457
471
  this.setTransformer(this.options.transformer);
458
472
  }
459
473
 
@@ -479,7 +493,7 @@ var Context = (_class = class {
479
493
  this.transformer = transformer(this, name || "vue3");
480
494
  }
481
495
  transform(code, id) {
482
- const { path, query } = _chunkCYD4VYHZcjs.parseId.call(void 0, id);
496
+ const { path, query } = _chunk6XRV7GTUcjs.parseId.call(void 0, id);
483
497
  return this.transformer(code, id, path, query);
484
498
  }
485
499
  setupViteServer(server) {
@@ -491,16 +505,16 @@ var Context = (_class = class {
491
505
  setupWatcher(watcher) {
492
506
  const { globs } = this.options;
493
507
  watcher.on("unlink", (path) => {
494
- if (!_chunkCYD4VYHZcjs.matchGlobs.call(void 0, path, globs))
508
+ if (!_chunk6XRV7GTUcjs.matchGlobs.call(void 0, path, globs))
495
509
  return;
496
- path = _chunkCYD4VYHZcjs.slash.call(void 0, path);
510
+ path = _chunk6XRV7GTUcjs.slash.call(void 0, path);
497
511
  this.removeComponents(path);
498
512
  this.onUpdate(path);
499
513
  });
500
514
  watcher.on("add", (path) => {
501
- if (!_chunkCYD4VYHZcjs.matchGlobs.call(void 0, path, globs))
515
+ if (!_chunk6XRV7GTUcjs.matchGlobs.call(void 0, path, globs))
502
516
  return;
503
- path = _chunkCYD4VYHZcjs.slash.call(void 0, path);
517
+ path = _chunk6XRV7GTUcjs.slash.call(void 0, path);
504
518
  this.addComponents(path);
505
519
  this.onUpdate(path);
506
520
  });
@@ -511,16 +525,16 @@ var Context = (_class = class {
511
525
  setupWatcherWebpack(watcher, emitUpdate) {
512
526
  const { globs } = this.options;
513
527
  watcher.on("unlink", (path) => {
514
- if (!_chunkCYD4VYHZcjs.matchGlobs.call(void 0, path, globs))
528
+ if (!_chunk6XRV7GTUcjs.matchGlobs.call(void 0, path, globs))
515
529
  return;
516
- path = _chunkCYD4VYHZcjs.slash.call(void 0, path);
530
+ path = _chunk6XRV7GTUcjs.slash.call(void 0, path);
517
531
  this.removeComponents(path);
518
532
  emitUpdate(path, "unlink");
519
533
  });
520
534
  watcher.on("add", (path) => {
521
- if (!_chunkCYD4VYHZcjs.matchGlobs.call(void 0, path, globs))
535
+ if (!_chunk6XRV7GTUcjs.matchGlobs.call(void 0, path, globs))
522
536
  return;
523
- path = _chunkCYD4VYHZcjs.slash.call(void 0, path);
537
+ path = _chunk6XRV7GTUcjs.slash.call(void 0, path);
524
538
  this.addComponents(path);
525
539
  emitUpdate(path, "add");
526
540
  });
@@ -540,7 +554,7 @@ var Context = (_class = class {
540
554
  addComponents(paths) {
541
555
  debug5.components("add", paths);
542
556
  const size = this._componentPaths.size;
543
- _chunkCYD4VYHZcjs.toArray.call(void 0, paths).forEach((p) => this._componentPaths.add(p));
557
+ _chunk6XRV7GTUcjs.toArray.call(void 0, paths).forEach((p) => this._componentPaths.add(p));
544
558
  if (this._componentPaths.size !== size) {
545
559
  this.updateComponentNameMap();
546
560
  return true;
@@ -558,7 +572,7 @@ var Context = (_class = class {
558
572
  removeComponents(paths) {
559
573
  debug5.components("remove", paths);
560
574
  const size = this._componentPaths.size;
561
- _chunkCYD4VYHZcjs.toArray.call(void 0, paths).forEach((p) => this._componentPaths.delete(p));
575
+ _chunk6XRV7GTUcjs.toArray.call(void 0, paths).forEach((p) => this._componentPaths.delete(p));
562
576
  if (this._componentPaths.size !== size) {
563
577
  this.updateComponentNameMap();
564
578
  return true;
@@ -574,10 +588,10 @@ var Context = (_class = class {
574
588
  updates: []
575
589
  };
576
590
  const timestamp = +/* @__PURE__ */ new Date();
577
- const name = _chunkCYD4VYHZcjs.pascalCase.call(void 0, _chunkCYD4VYHZcjs.getNameFromFilePath.call(void 0, path, this.options));
591
+ const name = _chunk6XRV7GTUcjs.pascalCase.call(void 0, _chunk6XRV7GTUcjs.getNameFromFilePath.call(void 0, path, this.options));
578
592
  Object.entries(this._componentUsageMap).forEach(([key, values]) => {
579
593
  if (values.has(name)) {
580
- const r = `/${_chunkCYD4VYHZcjs.slash.call(void 0, _path.relative.call(void 0, this.root, key))}`;
594
+ const r = `/${_chunk6XRV7GTUcjs.slash.call(void 0, _path.relative.call(void 0, this.root, key))}`;
581
595
  payload.updates.push({
582
596
  acceptedPath: r,
583
597
  path: r,
@@ -592,8 +606,8 @@ var Context = (_class = class {
592
606
  updateComponentNameMap() {
593
607
  this._componentNameMap = {};
594
608
  Array.from(this._componentPaths).forEach((path) => {
595
- const name = _chunkCYD4VYHZcjs.pascalCase.call(void 0, _chunkCYD4VYHZcjs.getNameFromFilePath.call(void 0, path, this.options));
596
- if (_chunkCYD4VYHZcjs.isExclude.call(void 0, name, this.options.excludeNames)) {
609
+ const name = _chunk6XRV7GTUcjs.pascalCase.call(void 0, _chunk6XRV7GTUcjs.getNameFromFilePath.call(void 0, path, this.options));
610
+ if (_chunk6XRV7GTUcjs.isExclude.call(void 0, name, this.options.excludeNames)) {
597
611
  debug5.components("exclude", name);
598
612
  return;
599
613
  }
@@ -614,7 +628,7 @@ var Context = (_class = class {
614
628
  for (const resolver of this.options.resolvers) {
615
629
  if (resolver.type !== type)
616
630
  continue;
617
- const result = await resolver.resolve(type === "directive" ? name.slice(_chunkCYD4VYHZcjs.DIRECTIVE_IMPORT_PREFIX.length) : name);
631
+ const result = await resolver.resolve(type === "directive" ? name.slice(_chunk6XRV7GTUcjs.DIRECTIVE_IMPORT_PREFIX.length) : name);
618
632
  if (!result)
619
633
  continue;
620
634
  if (typeof result === "string") {
@@ -625,7 +639,7 @@ var Context = (_class = class {
625
639
  } else {
626
640
  info = {
627
641
  as: name,
628
- ..._chunkCYD4VYHZcjs.normalizeComponentInfo.call(void 0, result)
642
+ ..._chunk6XRV7GTUcjs.normalizeComponentInfo.call(void 0, result)
629
643
  };
630
644
  }
631
645
  if (type === "component")
@@ -637,12 +651,12 @@ var Context = (_class = class {
637
651
  return void 0;
638
652
  }
639
653
  normalizePath(path) {
640
- return _chunkCYD4VYHZcjs.resolveAlias.call(void 0, path, _optionalChain([this, 'access', _31 => _31.viteConfig, 'optionalAccess', _32 => _32.resolve, 'optionalAccess', _33 => _33.alias]) || _optionalChain([this, 'access', _34 => _34.viteConfig, 'optionalAccess', _35 => _35.alias]) || []);
654
+ return _chunk6XRV7GTUcjs.resolveAlias.call(void 0, path, _optionalChain([this, 'access', _31 => _31.viteConfig, 'optionalAccess', _32 => _32.resolve, 'optionalAccess', _33 => _33.alias]) || _optionalChain([this, 'access', _34 => _34.viteConfig, 'optionalAccess', _35 => _35.alias]) || []);
641
655
  }
642
656
  relative(path) {
643
657
  if (path.startsWith("/") && !path.startsWith(this.root))
644
- return _chunkCYD4VYHZcjs.slash.call(void 0, path.slice(1));
645
- return _chunkCYD4VYHZcjs.slash.call(void 0, _path.relative.call(void 0, this.root, path));
658
+ return _chunk6XRV7GTUcjs.slash.call(void 0, path.slice(1));
659
+ return _chunk6XRV7GTUcjs.slash.call(void 0, _path.relative.call(void 0, this.root, path));
646
660
  }
647
661
  __init10() {this._searched = false}
648
662
  /**
@@ -681,7 +695,13 @@ var Context = (_class = class {
681
695
  var PLUGIN_NAME = "unplugin:webpack";
682
696
  var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
683
697
  const filter = _unpluginutils.createFilter.call(void 0,
684
- options.include || [/\.vue$/, /\.vue\?vue/, /\.vue\?v=/],
698
+ options.include || [
699
+ /\.vue$/,
700
+ /\.vue\?vue/,
701
+ /\.vue\.[tj]sx?\?vue/,
702
+ // for vue-loader with experimentalInlineMatchResource enabled
703
+ /\.vue\?v=/
704
+ ],
685
705
  options.exclude || [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/]
686
706
  );
687
707
  const ctx = new Context(options);
@@ -690,7 +710,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
690
710
  return await ctx.findComponent(name, "component", filename ? [filename] : []);
691
711
  },
692
712
  stringifyImport(info) {
693
- return _chunkCYD4VYHZcjs.stringifyComponentImport.call(void 0, info, ctx);
713
+ return _chunk6XRV7GTUcjs.stringifyComponentImport.call(void 0, info, ctx);
694
714
  }
695
715
  };
696
716
  return {
@@ -701,7 +721,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
701
721
  return filter(id);
702
722
  },
703
723
  async transform(code, id) {
704
- if (!_chunkCYD4VYHZcjs.shouldTransform.call(void 0, code))
724
+ if (!_chunk6XRV7GTUcjs.shouldTransform.call(void 0, code))
705
725
  return null;
706
726
  try {
707
727
  const result = await ctx.transform(code, id);
@@ -216,7 +216,7 @@ var require_brace_expansion = _chunk3HT76LNNcjs.__commonJS.call(void 0, {
216
216
  var _path = require('path');
217
217
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
218
218
 
219
- // node_modules/.pnpm/@antfu+utils@9.0.0/node_modules/@antfu/utils/dist/index.mjs
219
+ // node_modules/.pnpm/@antfu+utils@9.1.0/node_modules/@antfu/utils/dist/index.mjs
220
220
  function toArray(array) {
221
221
  array = _nullishCoalesce(array, () => ( []));
222
222
  return Array.isArray(array) ? array : [array];
@@ -224,10 +224,10 @@ function toArray(array) {
224
224
  function notNullish(v) {
225
225
  return v != null;
226
226
  }
227
- var VOID = Symbol("p-void");
228
227
  function slash(str) {
229
228
  return str.replace(/\\/g, "/");
230
229
  }
230
+ var VOID = Symbol("p-void");
231
231
  function throttle$1(delay, callback, options) {
232
232
  var _ref = options || {}, _ref$noTrailing = _ref.noTrailing, noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing, _ref$noLeading = _ref.noLeading, noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading, _ref$debounceMode = _ref.debounceMode, debounceMode = _ref$debounceMode === void 0 ? void 0 : _ref$debounceMode;
233
233
  var timeoutID;
@@ -216,7 +216,7 @@ var require_brace_expansion = __commonJS({
216
216
  import { parse } from "node:path";
217
217
  import process2 from "node:process";
218
218
 
219
- // node_modules/.pnpm/@antfu+utils@9.0.0/node_modules/@antfu/utils/dist/index.mjs
219
+ // node_modules/.pnpm/@antfu+utils@9.1.0/node_modules/@antfu/utils/dist/index.mjs
220
220
  function toArray(array) {
221
221
  array = array ?? [];
222
222
  return Array.isArray(array) ? array : [array];
@@ -224,10 +224,10 @@ function toArray(array) {
224
224
  function notNullish(v) {
225
225
  return v != null;
226
226
  }
227
- var VOID = Symbol("p-void");
228
227
  function slash(str) {
229
228
  return str.replace(/\\/g, "/");
230
229
  }
230
+ var VOID = Symbol("p-void");
231
231
  function throttle$1(delay, callback, options) {
232
232
  var _ref = options || {}, _ref$noTrailing = _ref.noTrailing, noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing, _ref$noLeading = _ref.noLeading, noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading, _ref$debounceMode = _ref.debounceMode, debounceMode = _ref$debounceMode === void 0 ? void 0 : _ref$debounceMode;
233
233
  var timeoutID;
@@ -15,7 +15,7 @@ import {
15
15
  stringifyComponentImport,
16
16
  throttle,
17
17
  toArray
18
- } from "./chunk-UZ5LIG7M.js";
18
+ } from "./chunk-GDTH3WEN.js";
19
19
 
20
20
  // src/core/unplugin.ts
21
21
  import { existsSync as existsSync2 } from "node:fs";
@@ -134,6 +134,7 @@ function getDeclaration(ctx, filepath, originalImports) {
134
134
  // @ts-nocheck
135
135
  // Generated by unplugin-vue-components
136
136
  // Read more: https://github.com/vuejs/core/pull/3399
137
+ // biome-ignore lint: disable
137
138
  export {}
138
139
 
139
140
  /* prettier-ignore */
@@ -178,7 +179,8 @@ function searchComponents(ctx) {
178
179
  ignore: ctx.options.globsExclude,
179
180
  onlyFiles: true,
180
181
  cwd: root,
181
- absolute: true
182
+ absolute: true,
183
+ expandDirectories: false
182
184
  });
183
185
  if (!files.length && !ctx.options.resolvers?.length)
184
186
  console.warn("[unplugin-vue-components] no components found");
@@ -199,7 +201,6 @@ var defaultOptions = {
199
201
  globalNamespaces: [],
200
202
  transformerUserResolveFunctions: true,
201
203
  resolvers: [],
202
- globsExclude: [],
203
204
  importPathTransform: (v) => v,
204
205
  allowOverrides: false
205
206
  };
@@ -208,25 +209,38 @@ function normalizeResolvers(resolvers) {
208
209
  }
209
210
  function resolveGlobsExclude(root, glob) {
210
211
  const excludeReg = /^!/;
211
- return `${excludeReg.test(glob) ? "!" : ""}${resolve(root, glob.replace(excludeReg, ""))}`;
212
+ return slash(`${excludeReg.test(glob) ? "!" : ""}${resolve(root, glob.replace(excludeReg, ""))}`);
212
213
  }
213
214
  function resolveOptions(options, root) {
214
215
  const resolved = Object.assign({}, defaultOptions, options);
215
216
  resolved.resolvers = normalizeResolvers(resolved.resolvers);
216
217
  resolved.extensions = toArray(resolved.extensions);
217
218
  if (resolved.globs) {
218
- resolved.globs = toArray(resolved.globs).map((glob) => slash(resolveGlobsExclude(root, glob)));
219
+ resolved.globs = toArray(resolved.globs).map((glob) => resolveGlobsExclude(root, glob));
219
220
  resolved.resolvedDirs = [];
220
221
  } else {
221
222
  const extsGlob = resolved.extensions.length === 1 ? resolved.extensions : `{${resolved.extensions.join(",")}}`;
222
223
  resolved.dirs = toArray(resolved.dirs);
223
- resolved.resolvedDirs = resolved.dirs.map((i) => slash(resolveGlobsExclude(root, i)));
224
- resolved.globs = resolved.resolvedDirs.map(
225
- (i) => resolved.deep ? slash(join(i, `**/*.${extsGlob}`)) : slash(join(i, `*.${extsGlob}`))
226
- );
224
+ const globs = resolved.dirs.map((i) => resolveGlobsExclude(root, i));
225
+ resolved.resolvedDirs = globs.filter((i) => !i.startsWith("!"));
226
+ resolved.globs = globs.map((i) => {
227
+ let prefix = "";
228
+ if (i.startsWith("!")) {
229
+ prefix = "!";
230
+ i = i.slice(1);
231
+ }
232
+ return resolved.deep ? prefix + slash(join(i, `**/*.${extsGlob}`)) : prefix + slash(join(i, `*.${extsGlob}`));
233
+ });
227
234
  if (!resolved.extensions.length)
228
235
  throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
229
236
  }
237
+ resolved.globsExclude = toArray(resolved.globsExclude || []).map((i) => resolveGlobsExclude(root, i));
238
+ resolved.globs = resolved.globs.filter((i) => {
239
+ if (!i.startsWith("!"))
240
+ return true;
241
+ resolved.globsExclude.push(i.slice(1));
242
+ return false;
243
+ });
230
244
  resolved.dts = !resolved.dts ? false : resolve(
231
245
  root,
232
246
  typeof resolved.dts === "string" ? resolved.dts : "components.d.ts"
@@ -681,7 +695,13 @@ var Context = class {
681
695
  var PLUGIN_NAME = "unplugin:webpack";
682
696
  var unplugin_default = createUnplugin((options = {}) => {
683
697
  const filter = createFilter(
684
- options.include || [/\.vue$/, /\.vue\?vue/, /\.vue\?v=/],
698
+ options.include || [
699
+ /\.vue$/,
700
+ /\.vue\?vue/,
701
+ /\.vue\.[tj]sx?\?vue/,
702
+ // for vue-loader with experimentalInlineMatchResource enabled
703
+ /\.vue\?v=/
704
+ ],
685
705
  options.exclude || [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/]
686
706
  );
687
707
  const ctx = new Context(options);
package/dist/esbuild.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQKHJKWZTcjs = require('./chunk-QKHJKWZT.cjs');
4
- require('./chunk-CYD4VYHZ.cjs');
3
+ var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
4
+ require('./chunk-6XRV7GTU.cjs');
5
5
  require('./chunk-3HT76LNN.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/esbuild.ts
9
- var esbuild_default = _chunkQKHJKWZTcjs.unplugin_default.esbuild;
9
+ var esbuild_default = _chunk34OWILDZcjs.unplugin_default.esbuild;
10
10
 
11
11
 
12
12
  exports.default = esbuild_default;
package/dist/esbuild.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-ZEYMMBWZ.js";
4
- import "./chunk-UZ5LIG7M.js";
3
+ } from "./chunk-HW27BU5T.js";
4
+ import "./chunk-GDTH3WEN.js";
5
5
  import "./chunk-QGM4M3NI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQKHJKWZTcjs = require('./chunk-QKHJKWZT.cjs');
3
+ var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkCYD4VYHZcjs = require('./chunk-CYD4VYHZ.cjs');
8
+ var _chunk6XRV7GTUcjs = require('./chunk-6XRV7GTU.cjs');
9
9
  require('./chunk-3HT76LNN.cjs');
10
10
  require('./chunk-ZBPRDZS4.cjs');
11
11
 
@@ -13,4 +13,4 @@ require('./chunk-ZBPRDZS4.cjs');
13
13
 
14
14
 
15
15
 
16
- exports.camelCase = _chunkCYD4VYHZcjs.camelCase; exports.default = _chunkQKHJKWZTcjs.unplugin_default; exports.kebabCase = _chunkCYD4VYHZcjs.kebabCase; exports.pascalCase = _chunkCYD4VYHZcjs.pascalCase;
16
+ exports.camelCase = _chunk6XRV7GTUcjs.camelCase; exports.default = _chunk34OWILDZcjs.unplugin_default; exports.kebabCase = _chunk6XRV7GTUcjs.kebabCase; exports.pascalCase = _chunk6XRV7GTUcjs.pascalCase;
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-ZEYMMBWZ.js";
3
+ } from "./chunk-HW27BU5T.js";
4
4
  import {
5
5
  camelCase,
6
6
  kebabCase,
7
7
  pascalCase
8
- } from "./chunk-UZ5LIG7M.js";
8
+ } from "./chunk-GDTH3WEN.js";
9
9
  import "./chunk-QGM4M3NI.js";
10
10
  import "./chunk-6F4PWJZI.js";
11
11
  export {
package/dist/nuxt.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQKHJKWZTcjs = require('./chunk-QKHJKWZT.cjs');
4
- require('./chunk-CYD4VYHZ.cjs');
3
+ var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
4
+ require('./chunk-6XRV7GTU.cjs');
5
5
  require('./chunk-3HT76LNN.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
@@ -9,8 +9,8 @@ require('./chunk-ZBPRDZS4.cjs');
9
9
  var _kit = require('@nuxt/kit');
10
10
  var nuxt_default = _kit.defineNuxtModule.call(void 0, {
11
11
  setup(options) {
12
- _kit.addWebpackPlugin.call(void 0, _chunkQKHJKWZTcjs.unplugin_default.webpack(options));
13
- _kit.addVitePlugin.call(void 0, _chunkQKHJKWZTcjs.unplugin_default.vite(options));
12
+ _kit.addWebpackPlugin.call(void 0, _chunk34OWILDZcjs.unplugin_default.webpack(options));
13
+ _kit.addVitePlugin.call(void 0, _chunk34OWILDZcjs.unplugin_default.vite(options));
14
14
  }
15
15
  });
16
16
 
package/dist/nuxt.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-ZEYMMBWZ.js";
4
- import "./chunk-UZ5LIG7M.js";
3
+ } from "./chunk-HW27BU5T.js";
4
+ import "./chunk-GDTH3WEN.js";
5
5
  import "./chunk-QGM4M3NI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkCYD4VYHZcjs = require('./chunk-CYD4VYHZ.cjs');
8
+ var _chunk6XRV7GTUcjs = require('./chunk-6XRV7GTU.cjs');
9
9
 
10
10
 
11
11
  var _chunk3HT76LNNcjs = require('./chunk-3HT76LNN.cjs');
@@ -220,7 +220,7 @@ function getStyleDir(compName) {
220
220
  }
221
221
  }
222
222
  if (!styleDir)
223
- styleDir = _chunkCYD4VYHZcjs.kebabCase.call(void 0, compName);
223
+ styleDir = _chunk6XRV7GTUcjs.kebabCase.call(void 0, compName);
224
224
  return styleDir;
225
225
  }
226
226
  function getSideEffects(compName, options) {
@@ -405,7 +405,7 @@ var matchComponents2 = [
405
405
  function getComponentStyleDir(importName, importStyle) {
406
406
  if (["ConfigProvider", "Icon"].includes(importName))
407
407
  return void 0;
408
- let componentDir = _chunkCYD4VYHZcjs.kebabCase.call(void 0, importName);
408
+ let componentDir = _chunk6XRV7GTUcjs.kebabCase.call(void 0, importName);
409
409
  for (const item of matchComponents2) {
410
410
  if (item.pattern.test(importName)) {
411
411
  componentDir = item.componentDir;
@@ -441,7 +441,7 @@ function ArcoResolver(options = {}) {
441
441
  type: "component",
442
442
  resolve: (name) => {
443
443
  if (canResolveIcons(options.resolveIcons)) {
444
- const iconPrefix = _chunkCYD4VYHZcjs.pascalCase.call(void 0, getResolveIconPrefix(options.resolveIcons));
444
+ const iconPrefix = _chunk6XRV7GTUcjs.pascalCase.call(void 0, getResolveIconPrefix(options.resolveIcons));
445
445
  const newNameRegexp = new RegExp(`^${iconPrefix}Icon`);
446
446
  if (newNameRegexp.test(name)) {
447
447
  debug("found icon component name %s", name);
@@ -454,7 +454,7 @@ function ArcoResolver(options = {}) {
454
454
  };
455
455
  }
456
456
  }
457
- if (name.match(/^A[A-Z]/) && !_chunkCYD4VYHZcjs.isExclude.call(void 0, name, options.exclude)) {
457
+ if (name.match(/^A[A-Z]/) && !_chunk6XRV7GTUcjs.isExclude.call(void 0, name, options.exclude)) {
458
458
  const importStyle = _nullishCoalesce(options.importStyle, () => ( "css"));
459
459
  const importName = name.slice(1);
460
460
  const config = {
@@ -618,7 +618,7 @@ function getSideEffects2(name, filename) {
618
618
  function componentsResolver(name, { ssr }) {
619
619
  if (!name.match(/^D[A-Z]/))
620
620
  return;
621
- const resolveId = _chunkCYD4VYHZcjs.kebabCase.call(void 0, name = name.slice(1));
621
+ const resolveId = _chunk6XRV7GTUcjs.kebabCase.call(void 0, name = name.slice(1));
622
622
  return {
623
623
  name,
624
624
  sideEffects: getSideEffects2(resolveId, "style.css"),
@@ -626,7 +626,7 @@ function componentsResolver(name, { ssr }) {
626
626
  };
627
627
  }
628
628
  function directivesResolver(name, { ssr }) {
629
- const resolveId = _chunkCYD4VYHZcjs.kebabCase.call(void 0, name);
629
+ const resolveId = _chunk6XRV7GTUcjs.kebabCase.call(void 0, name);
630
630
  return {
631
631
  name: `${name}Directive`,
632
632
  sideEffects: getSideEffects2(resolveId, "style.css"),
@@ -767,7 +767,7 @@ function resolveComponent(name, options) {
767
767
  from: "@element-plus/icons-vue"
768
768
  };
769
769
  }
770
- const partialName = _chunkCYD4VYHZcjs.kebabCase.call(void 0, name.slice(2));
770
+ const partialName = _chunk6XRV7GTUcjs.kebabCase.call(void 0, name.slice(2));
771
771
  const { version, ssr, nightly } = options;
772
772
  if (compare(version, "1.1.0-beta.1", ">=") || nightly) {
773
773
  return {
@@ -815,7 +815,7 @@ function ElementPlusResolver(options = {}) {
815
815
  return optionsResolved;
816
816
  optionsResolved = {
817
817
  ssr: false,
818
- version: await _chunkCYD4VYHZcjs.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
818
+ version: await _chunk6XRV7GTUcjs.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
819
819
  importStyle: "css",
820
820
  directives: true,
821
821
  exclude: void 0,
@@ -869,7 +869,7 @@ function ElementUiResolver(options = {}) {
869
869
  return;
870
870
  if (/^El[A-Z]/.test(name)) {
871
871
  const compName = name.slice(2);
872
- const partialName = _chunkCYD4VYHZcjs.kebabCase.call(void 0, compName);
872
+ const partialName = _chunk6XRV7GTUcjs.kebabCase.call(void 0, compName);
873
873
  if (partialName === "collapse-transition") {
874
874
  return {
875
875
  from: `element-ui/lib/transitions/${partialName}`
@@ -984,11 +984,11 @@ function IduxResolver(options = {}) {
984
984
  const packageName = getPackageName(name);
985
985
  if (!packageName)
986
986
  return;
987
- const resolvedVersion = await _chunkCYD4VYHZcjs.getPkgVersion.call(void 0, `${scope}/${packageName}`, "2.0.0");
987
+ const resolvedVersion = await _chunk6XRV7GTUcjs.getPkgVersion.call(void 0, `${scope}/${packageName}`, "2.0.0");
988
988
  let dirname = specialComponents[name];
989
989
  if (!dirname) {
990
990
  const nameIndex = packageName === "pro" ? 2 : 1;
991
- dirname = _chunkCYD4VYHZcjs.kebabCase.call(void 0, name).split("-")[nameIndex];
991
+ dirname = _chunk6XRV7GTUcjs.kebabCase.call(void 0, name).split("-")[nameIndex];
992
992
  }
993
993
  const path = `${scope}/${packageName}/${dirname}`;
994
994
  const sideEffects = packageName === "cdk" ? void 0 : getSideEffects5(resolvedVersion, path, importStyle, importStyleTheme);
@@ -1251,7 +1251,7 @@ function getSideEffects6(importName, options) {
1251
1251
  }
1252
1252
  function resolveComponent2(importName, options) {
1253
1253
  let name;
1254
- if (_chunkCYD4VYHZcjs.isExclude.call(void 0, importName, options.exclude))
1254
+ if (_chunk6XRV7GTUcjs.isExclude.call(void 0, importName, options.exclude))
1255
1255
  return void 0;
1256
1256
  if (options.resolveIcons && importName.match(iconsRE)) {
1257
1257
  name = importName;
@@ -1450,7 +1450,7 @@ function TDesignResolver(options = {}) {
1450
1450
  resolve: (name) => {
1451
1451
  const { library = "vue", exclude } = options;
1452
1452
  const importFrom = options.esm ? "/esm" : "";
1453
- if (_chunkCYD4VYHZcjs.isExclude.call(void 0, name, exclude))
1453
+ if (_chunk6XRV7GTUcjs.isExclude.call(void 0, name, exclude))
1454
1454
  return;
1455
1455
  if (options.resolveIcons && name.match(/[a-z]Icon$/)) {
1456
1456
  return {
@@ -1458,6 +1458,12 @@ function TDesignResolver(options = {}) {
1458
1458
  from: `tdesign-icons-${library}${importFrom}`
1459
1459
  };
1460
1460
  }
1461
+ if (name.startsWith("TTypography") || name.startsWith("Typography")) {
1462
+ return {
1463
+ name: name.slice(name.startsWith("TTypography") ? 11 : 10),
1464
+ from: `tdesign-${library}${importFrom}`
1465
+ };
1466
+ }
1461
1467
  if (name.match(/^T[A-Z]/) || pluginList.includes(name)) {
1462
1468
  const importName = name.match(/^T[A-Z]/) ? name.slice(1) : name;
1463
1469
  return {
@@ -1470,10 +1476,10 @@ function TDesignResolver(options = {}) {
1470
1476
  }
1471
1477
 
1472
1478
  // src/core/resolvers/vant.ts
1473
- var moduleType = _chunkCYD4VYHZcjs.isSSR ? "lib" : "es";
1479
+ var moduleType = _chunk6XRV7GTUcjs.isSSR ? "lib" : "es";
1474
1480
  function getSideEffects7(dirName, options) {
1475
1481
  const { importStyle = true } = options;
1476
- if (!importStyle || _chunkCYD4VYHZcjs.isSSR)
1482
+ if (!importStyle || _chunk6XRV7GTUcjs.isSSR)
1477
1483
  return;
1478
1484
  if (importStyle === "less")
1479
1485
  return `vant/${moduleType}/${dirName}/style/less`;
@@ -1490,7 +1496,7 @@ function VantResolver(options = {}) {
1490
1496
  return {
1491
1497
  name: partialName,
1492
1498
  from: `vant/${moduleType}`,
1493
- sideEffects: getSideEffects7(_chunkCYD4VYHZcjs.kebabCase.call(void 0, partialName), options)
1499
+ sideEffects: getSideEffects7(_chunk6XRV7GTUcjs.kebabCase.call(void 0, partialName), options)
1494
1500
  };
1495
1501
  }
1496
1502
  }
@@ -1513,9 +1519,9 @@ function getResolved(name, options) {
1513
1519
  const sideEffects = [];
1514
1520
  if (importStyle || importCss) {
1515
1521
  if (importStyle === "less" || importLess)
1516
- sideEffects.push(`${path}/es/${_chunkCYD4VYHZcjs.kebabCase.call(void 0, name)}/style/less`);
1522
+ sideEffects.push(`${path}/es/${_chunk6XRV7GTUcjs.kebabCase.call(void 0, name)}/style/less`);
1517
1523
  else
1518
- sideEffects.push(`${path}/es/${_chunkCYD4VYHZcjs.kebabCase.call(void 0, name)}/style/index${styleExtname}`);
1524
+ sideEffects.push(`${path}/es/${_chunk6XRV7GTUcjs.kebabCase.call(void 0, name)}/style/index${styleExtname}`);
1519
1525
  }
1520
1526
  return {
1521
1527
  from: path,
@@ -1578,9 +1584,9 @@ function VeuiResolver(options = {}) {
1578
1584
  };
1579
1585
  }
1580
1586
  var formatters = {
1581
- "kebab-case": _chunkCYD4VYHZcjs.kebabCase,
1582
- "camelCase": _chunkCYD4VYHZcjs.camelCase,
1583
- "PascalCase": _chunkCYD4VYHZcjs.pascalCase
1587
+ "kebab-case": _chunk6XRV7GTUcjs.kebabCase,
1588
+ "camelCase": _chunk6XRV7GTUcjs.camelCase,
1589
+ "PascalCase": _chunk6XRV7GTUcjs.pascalCase
1584
1590
  };
1585
1591
  var peerPaths = /* @__PURE__ */ new Map();
1586
1592
  function assertPeerPath(peerPath) {
@@ -1640,12 +1646,12 @@ function getCompDir(compName) {
1640
1646
  for (let i = 0; i < total; i++) {
1641
1647
  const matcher = matchComponents4[i];
1642
1648
  if (compName.match(matcher.pattern)) {
1643
- compPath = `${matcher.compDir}/${_chunkCYD4VYHZcjs.kebabCase.call(void 0, compName)}.vue`;
1649
+ compPath = `${matcher.compDir}/${_chunk6XRV7GTUcjs.kebabCase.call(void 0, compName)}.vue`;
1644
1650
  break;
1645
1651
  }
1646
1652
  }
1647
1653
  if (!compPath)
1648
- compPath = _chunkCYD4VYHZcjs.kebabCase.call(void 0, compName);
1654
+ compPath = _chunk6XRV7GTUcjs.kebabCase.call(void 0, compName);
1649
1655
  return compPath;
1650
1656
  }
1651
1657
  function ViewUiResolver() {
package/dist/resolvers.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  isSSR,
6
6
  kebabCase,
7
7
  pascalCase
8
- } from "./chunk-UZ5LIG7M.js";
8
+ } from "./chunk-GDTH3WEN.js";
9
9
  import {
10
10
  __require
11
11
  } from "./chunk-QGM4M3NI.js";
@@ -1458,6 +1458,12 @@ function TDesignResolver(options = {}) {
1458
1458
  from: `tdesign-icons-${library}${importFrom}`
1459
1459
  };
1460
1460
  }
1461
+ if (name.startsWith("TTypography") || name.startsWith("Typography")) {
1462
+ return {
1463
+ name: name.slice(name.startsWith("TTypography") ? 11 : 10),
1464
+ from: `tdesign-${library}${importFrom}`
1465
+ };
1466
+ }
1461
1467
  if (name.match(/^T[A-Z]/) || pluginList.includes(name)) {
1462
1468
  const importName = name.match(/^T[A-Z]/) ? name.slice(1) : name;
1463
1469
  return {
package/dist/rollup.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQKHJKWZTcjs = require('./chunk-QKHJKWZT.cjs');
4
- require('./chunk-CYD4VYHZ.cjs');
3
+ var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
4
+ require('./chunk-6XRV7GTU.cjs');
5
5
  require('./chunk-3HT76LNN.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/rollup.ts
9
- var rollup_default = _chunkQKHJKWZTcjs.unplugin_default.rollup;
9
+ var rollup_default = _chunk34OWILDZcjs.unplugin_default.rollup;
10
10
 
11
11
 
12
12
  exports.default = rollup_default;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-ZEYMMBWZ.js";
4
- import "./chunk-UZ5LIG7M.js";
3
+ } from "./chunk-HW27BU5T.js";
4
+ import "./chunk-GDTH3WEN.js";
5
5
  import "./chunk-QGM4M3NI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/rspack.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQKHJKWZTcjs = require('./chunk-QKHJKWZT.cjs');
4
- require('./chunk-CYD4VYHZ.cjs');
3
+ var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
4
+ require('./chunk-6XRV7GTU.cjs');
5
5
  require('./chunk-3HT76LNN.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/rspack.ts
9
- var rspack_default = _chunkQKHJKWZTcjs.unplugin_default.rspack;
9
+ var rspack_default = _chunk34OWILDZcjs.unplugin_default.rspack;
10
10
 
11
11
 
12
12
  exports.default = rspack_default;
package/dist/rspack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-ZEYMMBWZ.js";
4
- import "./chunk-UZ5LIG7M.js";
3
+ } from "./chunk-HW27BU5T.js";
4
+ import "./chunk-GDTH3WEN.js";
5
5
  import "./chunk-QGM4M3NI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/types.d.cts CHANGED
@@ -175,6 +175,7 @@ type ResolvedOptions = Omit<Required<Options>, 'resolvers' | 'extensions' | 'dir
175
175
  dirs: string[];
176
176
  resolvedDirs: string[];
177
177
  globs: string[];
178
+ globsExclude: string[];
178
179
  dts: string | false;
179
180
  root: string;
180
181
  };
package/dist/types.d.ts CHANGED
@@ -175,6 +175,7 @@ type ResolvedOptions = Omit<Required<Options>, 'resolvers' | 'extensions' | 'dir
175
175
  dirs: string[];
176
176
  resolvedDirs: string[];
177
177
  globs: string[];
178
+ globsExclude: string[];
178
179
  dts: string | false;
179
180
  root: string;
180
181
  };
package/dist/vite.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQKHJKWZTcjs = require('./chunk-QKHJKWZT.cjs');
4
- require('./chunk-CYD4VYHZ.cjs');
3
+ var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
4
+ require('./chunk-6XRV7GTU.cjs');
5
5
  require('./chunk-3HT76LNN.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/vite.ts
9
- var vite_default = _chunkQKHJKWZTcjs.unplugin_default.vite;
9
+ var vite_default = _chunk34OWILDZcjs.unplugin_default.vite;
10
10
 
11
11
 
12
12
  exports.default = vite_default;
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-ZEYMMBWZ.js";
4
- import "./chunk-UZ5LIG7M.js";
3
+ } from "./chunk-HW27BU5T.js";
4
+ import "./chunk-GDTH3WEN.js";
5
5
  import "./chunk-QGM4M3NI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/webpack.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQKHJKWZTcjs = require('./chunk-QKHJKWZT.cjs');
4
- require('./chunk-CYD4VYHZ.cjs');
3
+ var _chunk34OWILDZcjs = require('./chunk-34OWILDZ.cjs');
4
+ require('./chunk-6XRV7GTU.cjs');
5
5
  require('./chunk-3HT76LNN.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
  // src/webpack.ts
9
- var webpack_default = _chunkQKHJKWZTcjs.unplugin_default.webpack;
9
+ var webpack_default = _chunk34OWILDZcjs.unplugin_default.webpack;
10
10
 
11
11
 
12
12
  exports.default = webpack_default;
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-ZEYMMBWZ.js";
4
- import "./chunk-UZ5LIG7M.js";
3
+ } from "./chunk-HW27BU5T.js";
4
+ import "./chunk-GDTH3WEN.js";
5
5
  import "./chunk-QGM4M3NI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "unplugin-vue-components",
3
3
  "type": "module",
4
- "version": "28.3.0",
5
- "packageManager": "pnpm@10.4.0",
4
+ "version": "28.4.1",
5
+ "packageManager": "pnpm@10.5.2",
6
6
  "description": "Components auto importing for Vue",
7
7
  "author": "antfu <anthonyfu117@hotmail.com>",
8
8
  "license": "MIT",
@@ -98,35 +98,35 @@
98
98
  "local-pkg": "^1.0.0",
99
99
  "magic-string": "^0.30.17",
100
100
  "mlly": "^1.7.4",
101
- "tinyglobby": "^0.2.10",
101
+ "tinyglobby": "^0.2.12",
102
102
  "unplugin": "^2.2.0",
103
103
  "unplugin-utils": "^0.2.4"
104
104
  },
105
105
  "devDependencies": {
106
- "@antfu/eslint-config": "^4.2.0",
107
- "@antfu/utils": "^9.0.0",
106
+ "@antfu/eslint-config": "^4.3.0",
107
+ "@antfu/utils": "^9.1.0",
108
108
  "@babel/parser": "^7.26.9",
109
109
  "@babel/types": "^7.26.9",
110
110
  "@nuxt/kit": "^3.15.4",
111
111
  "@nuxt/schema": "^3.15.4",
112
112
  "@types/debug": "^4.1.12",
113
113
  "@types/minimatch": "^5.1.2",
114
- "@types/node": "^22.13.4",
114
+ "@types/node": "^22.13.5",
115
115
  "bumpp": "^10.0.3",
116
116
  "compare-versions": "^6.1.1",
117
- "element-plus": "^2.9.4",
118
- "eslint": "^9.20.1",
117
+ "element-plus": "^2.9.5",
118
+ "eslint": "^9.21.0",
119
119
  "eslint-plugin-format": "^1.0.1",
120
120
  "esno": "^4.8.0",
121
121
  "estree-walker": "^3.0.3",
122
122
  "minimatch": "^10.0.1",
123
123
  "pathe": "^2.0.3",
124
- "rollup": "^4.34.7",
125
- "tsup": "^8.3.6",
124
+ "rollup": "^4.34.8",
125
+ "tsup": "^8.4.0",
126
126
  "typescript": "^5.7.3",
127
- "vite": "^6.1.0",
128
- "vitest": "^3.0.5",
127
+ "vite": "^6.2.0",
128
+ "vitest": "^3.0.7",
129
129
  "vue": "3.2.45",
130
- "vue-tsc": "^2.2.0"
130
+ "vue-tsc": "^2.2.4"
131
131
  }
132
132
  }