@pit-frontend-framework/unplugin-vue-components 1.0.0

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.
@@ -0,0 +1,552 @@
1
+ import { n as ComponentResolveResult, r as ComponentResolver } from "./types-BbnOeCab.mjs";
2
+ import { FilterPattern } from "unplugin-utils";
3
+
4
+ //#region src/core/resolvers/antdv.d.ts
5
+ type AntDesignVueResolveDateLibrary = 'dayjs' | 'date-fns' | 'moment';
6
+ interface AntDesignVueResolverOptions {
7
+ /**
8
+ * exclude components that do not require automatic import
9
+ *
10
+ * @default []
11
+ */
12
+ exclude?: string[];
13
+ /**
14
+ * import style along with components
15
+ *
16
+ * @default 'css'
17
+ */
18
+ importStyle?: boolean | 'css' | 'less' | 'css-in-js';
19
+ /**
20
+ * resolve `ant-design-vue' icons
21
+ *
22
+ * requires package `@ant-design/icons-vue`
23
+ *
24
+ * @default false
25
+ */
26
+ resolveIcons?: boolean;
27
+ /**
28
+ * @deprecated use `importStyle: 'css'` instead
29
+ */
30
+ importCss?: boolean;
31
+ /**
32
+ * @deprecated use `importStyle: 'less'` instead
33
+ */
34
+ importLess?: boolean;
35
+ /**
36
+ * use commonjs build default false
37
+ */
38
+ cjs?: boolean;
39
+ /**
40
+ * rename package
41
+ *
42
+ * @default 'ant-design-vue'
43
+ */
44
+ packageName?: string;
45
+ /**
46
+ * customize prefix of component
47
+ * @default 'A'
48
+ */
49
+ prefix?: string;
50
+ /**
51
+ * Custom date library.
52
+ *
53
+ * @default 'dayjs'
54
+ */
55
+ resolveDateLibrary?: AntDesignVueResolveDateLibrary;
56
+ }
57
+ /**
58
+ * Resolver for Ant Design Vue
59
+ *
60
+ * Requires ant-design-vue@v2.2.0-beta.6 or later
61
+ *
62
+ * See https://github.com/antfu/unplugin-vue-components/issues/26#issuecomment-789767941 for more details
63
+ *
64
+ * @author @yangss3
65
+ * @link https://antdv.com/
66
+ */
67
+ declare function AntDesignVueResolver(options?: AntDesignVueResolverOptions): ComponentResolver;
68
+ //#endregion
69
+ //#region src/core/resolvers/arco.d.ts
70
+ type DisallowResolveIconOption = undefined | false | {
71
+ enable: false;
72
+ };
73
+ type AllowResolveIconOption = true | {
74
+ enable: true;
75
+ iconPrefix?: string;
76
+ };
77
+ type ResolveIconsOption = DisallowResolveIconOption | AllowResolveIconOption;
78
+ interface ArcoResolverOptions {
79
+ /**
80
+ * exclude components that do not require automatic import
81
+ *
82
+ * @default []
83
+ */
84
+ exclude?: string | RegExp | (string | RegExp)[];
85
+ /**
86
+ * import style css or less with components
87
+ *
88
+ * @default 'css'
89
+ */
90
+ importStyle?: boolean | 'css' | 'less';
91
+ /**
92
+ * resolve icons
93
+ *
94
+ * @default false
95
+ */
96
+ resolveIcons?: ResolveIconsOption;
97
+ /**
98
+ * Control style automatic import
99
+ *
100
+ * @default true
101
+ */
102
+ sideEffect?: boolean;
103
+ }
104
+ /**
105
+ * Resolver for Arco Design Vue
106
+ *
107
+ * Requires arco-design/web-vue@2.11.0 or later
108
+ *
109
+ * @author @flsion
110
+ * @link https://arco.design/ for arco-design
111
+ *
112
+ */
113
+ declare function ArcoResolver(options?: ArcoResolverOptions): ComponentResolver;
114
+ //#endregion
115
+ //#region src/core/resolvers/bootstrap-vue.d.ts
116
+ interface BootstrapVueResolverOptions {
117
+ /**
118
+ * Auto import for directives.
119
+ *
120
+ * @default true
121
+ */
122
+ directives?: boolean;
123
+ }
124
+ /**
125
+ * Resolver for BootstrapVue
126
+ *
127
+ * @link https://github.com/bootstrap-vue/bootstrap-vue
128
+ */
129
+ declare function BootstrapVueResolver(_options?: BootstrapVueResolverOptions): ComponentResolver[];
130
+ /**
131
+ * Resolver for BootstrapVueNext
132
+ *
133
+ * @link https://github.com/bootstrap-vue/bootstrap-vue-next
134
+ *
135
+ * @deprecated use `import { BootstrapVueNextResolver } from 'bootstrap-vue-next'` instead
136
+ */
137
+ declare function BootstrapVueNextResolver(_options?: BootstrapVueResolverOptions): Array<ComponentResolver>;
138
+ /**
139
+ * Resolver for legacy BootstrapVue3 apps
140
+ *
141
+ * @deprecated use BootstrapVueNextResolver with https://github.com/bootstrap-vue/bootstrap-vue-next
142
+ * @link https://www.npmjs.com/package/bootstrap-vue-3
143
+ */
144
+ declare function BootstrapVue3Resolver(_options?: BootstrapVueResolverOptions): Array<ComponentResolver>;
145
+ //#endregion
146
+ //#region src/core/resolvers/devui.d.ts
147
+ interface DevResolverOptions {
148
+ /**
149
+ * bring in components and styles
150
+ *
151
+ * @default true
152
+ */
153
+ importStyle?: boolean;
154
+ /**
155
+ * auto import for directives
156
+ *
157
+ * @default true
158
+ */
159
+ directives?: boolean;
160
+ /**
161
+ * use umd lib file
162
+ */
163
+ ssr?: boolean;
164
+ }
165
+ declare function DevUiResolver(options?: DevResolverOptions): ComponentResolver[];
166
+ //#endregion
167
+ //#region src/core/resolvers/element-plus.d.ts
168
+ interface ElementPlusResolverOptions {
169
+ /**
170
+ * import style css or sass with components
171
+ *
172
+ * @default 'css'
173
+ */
174
+ importStyle?: boolean | 'css' | 'sass';
175
+ /**
176
+ * use commonjs lib & source css or scss for ssr
177
+ */
178
+ ssr?: boolean;
179
+ /**
180
+ * specify element-plus version to load style
181
+ *
182
+ * @default installed version
183
+ */
184
+ version?: string;
185
+ /**
186
+ * auto import for directives
187
+ *
188
+ * @default true
189
+ */
190
+ directives?: boolean;
191
+ /**
192
+ * exclude component name, if match do not resolve the name
193
+ */
194
+ exclude?: RegExp;
195
+ /**
196
+ * a list of component names that have no styles, so resolving their styles file should be prevented
197
+ */
198
+ noStylesComponents?: string[];
199
+ /**
200
+ * nightly version
201
+ */
202
+ nightly?: boolean;
203
+ }
204
+ /**
205
+ * Resolver for Element Plus
206
+ *
207
+ * See https://github.com/antfu/vite-plugin-components/pull/28 for more details
208
+ * See https://github.com/antfu/vite-plugin-components/issues/117 for more details
209
+ *
210
+ * @author @develar @nabaonan @sxzz
211
+ * @link https://element-plus.org/ for element-plus
212
+ *
213
+ */
214
+ declare function ElementPlusResolver(options?: ElementPlusResolverOptions): ComponentResolver[];
215
+ //#endregion
216
+ //#region src/core/resolvers/headless-ui.d.ts
217
+ interface HeadlessUiResolverOptions {
218
+ /**
219
+ * prefix for headless ui components used in templates
220
+ *
221
+ * @default ""
222
+ */
223
+ prefix?: string;
224
+ }
225
+ /**
226
+ * Resolver for headlessui
227
+ *
228
+ * @link https://github.com/tailwindlabs/headlessui
229
+ */
230
+ declare function HeadlessUiResolver(options?: HeadlessUiResolverOptions): ComponentResolver;
231
+ //#endregion
232
+ //#region src/core/resolvers/idux.d.ts
233
+ interface IduxResolverOptions {
234
+ /**
235
+ * exclude components that do not require automatic import
236
+ *
237
+ * @default []
238
+ */
239
+ exclude?: string[];
240
+ /**
241
+ * import style along with components
242
+ */
243
+ importStyle?: 'css' | 'less';
244
+ /**
245
+ * theme for import style
246
+ *
247
+ * @default 'default' for 1.x version
248
+ */
249
+ importStyleTheme?: string;
250
+ /**
251
+ * The scope of the packages.
252
+ *
253
+ * @default '@idux'
254
+ */
255
+ scope?: string;
256
+ /**
257
+ * specify idux version to load style
258
+ *
259
+ * @default installed version
260
+ */
261
+ version?: string;
262
+ }
263
+ /**
264
+ * Resolver for `@idux/cdk`, `@idux/components` and ``@idux/pro``
265
+ *
266
+ * @link https://idux.site
267
+ */
268
+ declare function IduxResolver(options?: IduxResolverOptions): ComponentResolver;
269
+ //#endregion
270
+ //#region src/core/resolvers/inkline.d.ts
271
+ /**
272
+ * Resolver for Inkline
273
+ *
274
+ * @author @alexgrozav
275
+ * @link https://github.com/inkline/inkline
276
+ */
277
+ declare function InklineResolver(): ComponentResolver;
278
+ //#endregion
279
+ //#region src/core/resolvers/ionic.d.ts
280
+ /**
281
+ * source: https://github.com/nuxt-modules/ionic/blob/main/src/imports.ts
282
+ * @author @danielroe
283
+ */
284
+ declare const IonicBuiltInComponents: string[];
285
+ /**
286
+ * Resolver for ionic framework
287
+ *
288
+ * @author @mathsgod @reslear
289
+ * @link https://ionicframework.com/
290
+ */
291
+ declare function IonicResolver(): ComponentResolver;
292
+ //#endregion
293
+ //#region src/core/resolvers/layui-vue.d.ts
294
+ interface LayuiVueResolverOptions {
295
+ /**
296
+ * import style along with components
297
+ *
298
+ * @default 'css'
299
+ */
300
+ importStyle?: boolean | 'css';
301
+ /**
302
+ * resolve '@layui/layui-vue' icons
303
+ * requires package `@layui/icons-vue`
304
+ *
305
+ * @default false
306
+ */
307
+ resolveIcons?: boolean;
308
+ /**
309
+ * exclude components that do not require automatic import
310
+ *
311
+ */
312
+ exclude?: FilterPattern;
313
+ }
314
+ /**
315
+ * Resolver for layui-vue
316
+ *
317
+ * @link http://www.layui-vue.com/ for layui-vue
318
+ *
319
+ */
320
+ declare function LayuiVueResolver(options?: LayuiVueResolverOptions): ComponentResolver;
321
+ //#endregion
322
+ //#region src/core/resolvers/naive-ui.d.ts
323
+ /**
324
+ * Resolver for Naive UI
325
+ *
326
+ * @author @antfu
327
+ * @link https://www.naiveui.com/
328
+ */
329
+ declare function NaiveUiResolver(): ComponentResolver;
330
+ //#endregion
331
+ //#region src/core/resolvers/prime-vue.d.ts
332
+ interface PrimeVueResolverOptions {
333
+ /**
334
+ * import style along with components
335
+ *
336
+ * @default true
337
+ */
338
+ importStyle?: boolean;
339
+ /**
340
+ * import `primeicons' icons
341
+ *
342
+ * requires package `primeicons`
343
+ *
344
+ * @default true
345
+ */
346
+ importIcons?: boolean;
347
+ /**
348
+ * imports a free theme - set theme name here (e.g. saga-blue)
349
+ *
350
+ * @default ''
351
+ */
352
+ importTheme?: string;
353
+ /**
354
+ * prefix for components (e.g. 'P' to resolve Menu from PMenu)
355
+ *
356
+ * @default ''
357
+ */
358
+ prefix?: string;
359
+ }
360
+ /**
361
+ * Resolver for PrimeVue - If you're using a component with the same tag as an native HTML element (e.g. button) the component must be in uppercase
362
+ *
363
+ * @link https://github.com/primefaces/primevue
364
+ */
365
+ declare function PrimeVueResolver(options?: PrimeVueResolverOptions): ComponentResolver;
366
+ //#endregion
367
+ //#region src/core/resolvers/quasar.d.ts
368
+ /**
369
+ * Resolver for Quasar
370
+ *
371
+ * @link https://github.com/quasarframework/quasar
372
+ */
373
+ declare function QuasarResolver(): ComponentResolver;
374
+ //#endregion
375
+ //#region src/core/resolvers/tdesign.d.ts
376
+ interface TDesignResolverOptions {
377
+ /**
378
+ * select the specified library
379
+ * @default 'vue'
380
+ */
381
+ library?: 'vue' | 'vue-next' | 'react' | 'mobile-vue' | 'mobile-react';
382
+ /**
383
+ * resolve `tdesign-icons'
384
+ * @default false
385
+ */
386
+ resolveIcons?: boolean;
387
+ /**
388
+ * whether to import ESM version
389
+ * @default false
390
+ */
391
+ esm?: boolean;
392
+ /**
393
+ * exclude component name, if match do not resolve the name
394
+ *
395
+ */
396
+ exclude?: FilterPattern;
397
+ }
398
+ declare function TDesignResolver(options?: TDesignResolverOptions): ComponentResolver;
399
+ //#endregion
400
+ //#region src/core/resolvers/vant.d.ts
401
+ interface VantResolverOptions {
402
+ /**
403
+ * import style css or less along with components
404
+ *
405
+ * @default true
406
+ */
407
+ importStyle?: boolean | 'css' | 'less';
408
+ }
409
+ /**
410
+ * Resolver for Vant
411
+ *
412
+ * @link https://github.com/youzan/vant
413
+ */
414
+ declare function VantResolver(options?: VantResolverOptions): ComponentResolver;
415
+ //#endregion
416
+ //#region src/core/resolvers/varlet-ui.d.ts
417
+ interface VarletUIResolverOptions {
418
+ /**
419
+ * import style along with components
420
+ *
421
+ * @default 'css'
422
+ */
423
+ importStyle?: boolean | 'css' | 'less';
424
+ /**
425
+ * style entry file extname
426
+ *
427
+ * @default '.mjs'
428
+ */
429
+ styleExtname?: string;
430
+ /**
431
+ * auto import for directives
432
+ *
433
+ * @default true
434
+ */
435
+ directives?: boolean;
436
+ /**
437
+ * compatible with unplugin-auto-import
438
+ *
439
+ * @default false
440
+ */
441
+ autoImport?: boolean;
442
+ /**
443
+ * @deprecated use `importStyle: 'css'` instead
444
+ */
445
+ importCss?: boolean;
446
+ /**
447
+ * @deprecated use `importStyle: 'less'` instead
448
+ */
449
+ importLess?: boolean;
450
+ }
451
+ declare function getResolved(name: string, options: VarletUIResolverOptions): ComponentResolveResult;
452
+ /**
453
+ * Resolver for VarletUI
454
+ *
455
+ * @link https://github.com/varletjs/varlet
456
+ */
457
+ declare function VarletUIResolver(options?: VarletUIResolverOptions): ComponentResolver[];
458
+ //#endregion
459
+ //#region src/core/resolvers/veui.d.ts
460
+ interface VeuiPeerConfig {
461
+ /**
462
+ * The package name of the peer module.
463
+ */
464
+ package: string;
465
+ /**
466
+ * The directory path of the peer module.
467
+ * @default 'components'
468
+ */
469
+ path?: string;
470
+ /**
471
+ * The file name template for the peer module.
472
+ * @default '{module}.css'
473
+ */
474
+ fileName?: `${string}{module}${string}`;
475
+ /**
476
+ * The text transform to be applied to the '{module}' part of the file name.
477
+ * @default 'kebab-case'
478
+ */
479
+ transform?: 'kebab-case' | 'camelCase' | 'PascalCase' | false;
480
+ }
481
+ type SupportedLocale = 'en-US' | 'zh-Hans';
482
+ interface VeuiResolverOptions {
483
+ /**
484
+ * The alias of 'veui` package.
485
+ * @default 'veui'
486
+ */
487
+ alias?: string;
488
+ /**
489
+ * Peer modules to be injected.
490
+ */
491
+ modules?: VeuiPeerConfig[];
492
+ /**
493
+ * Locale modules to be injected.
494
+ * @default 'zh-Hans'
495
+ */
496
+ locale?: SupportedLocale | SupportedLocale[] | false;
497
+ /**
498
+ * Global modules to be injected to all components.
499
+ * @default []
500
+ */
501
+ global?: string[];
502
+ }
503
+ /**
504
+ * Resolver for VEUI
505
+ *
506
+ * @link https://github.com/ecomfe/veui
507
+ */
508
+ declare function VeuiResolver(options?: VeuiResolverOptions): ComponentResolver;
509
+ //#endregion
510
+ //#region src/core/resolvers/view-ui.d.ts
511
+ /**
512
+ * Resolver for View UI
513
+ * @requires @originjs/vite-plugin-commonjs
514
+ * @author @nabaonan
515
+ * @link https://www.iviewui.com/
516
+ * @description has known problems list below
517
+ * - select component render error PR: https://github.com/view-design/ViewUI/pull/944, choose can't display value,because click option trigger twice,at second time,select value turn into undefined.
518
+ * - scroll component has a template syntax called lang='html',it is require html-loader,but vite plugin not support yet,remove it can run. relate pr: https://github.com/view-design/ViewUI/pull/985
519
+ */
520
+ declare function ViewUiResolver(): ComponentResolver;
521
+ //#endregion
522
+ //#region src/core/resolvers/vuetify.d.ts
523
+ /**
524
+ * Resolver for Vuetify
525
+ *
526
+ * @link https://github.com/vuetifyjs/vuetify
527
+ */
528
+ declare function VuetifyResolver(): ComponentResolver;
529
+ /**
530
+ * Resolver for Vuetify 3 Beta
531
+ *
532
+ * @link https://github.com/vuetifyjs/vuetify
533
+ */
534
+ declare function Vuetify3Resolver(): ComponentResolver;
535
+ //#endregion
536
+ //#region src/core/resolvers/vueuse.d.ts
537
+ /**
538
+ * Resolver for VueUse
539
+ *
540
+ * @link https://github.com/vueuse/vueuse
541
+ */
542
+ declare function VueUseComponentsResolver(): ComponentResolver;
543
+ //#endregion
544
+ //#region src/core/resolvers/vueuse-directive.d.ts
545
+ /**
546
+ * Resolver for VueUse
547
+ *
548
+ * @link https://github.com/vueuse/vueuse
549
+ */
550
+ declare function VueUseDirectiveResolver(): ComponentResolver;
551
+ //#endregion
552
+ export { AllowResolveIconOption, AntDesignVueResolveDateLibrary, AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, BootstrapVue3Resolver, BootstrapVueNextResolver, BootstrapVueResolver, BootstrapVueResolverOptions, DevResolverOptions, DevUiResolver, DisallowResolveIconOption, ElementPlusResolver, ElementPlusResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, IonicBuiltInComponents, IonicResolver, LayuiVueResolver, LayuiVueResolverOptions, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, ResolveIconsOption, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VueUseDirectiveResolver, Vuetify3Resolver, VuetifyResolver, getResolved };