@tongfun/ui 0.0.0-alpha.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.
@@ -0,0 +1,9 @@
1
+ import type { PrimitiveProps } from "reka-ui";
2
+ import type { HTMLAttributes } from "vue";
3
+ export type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
4
+ export type ButtonSize = "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg";
5
+ export interface ButtonProps extends PrimitiveProps {
6
+ variant?: ButtonVariant;
7
+ size?: ButtonSize;
8
+ class?: HTMLAttributes["class"];
9
+ }
@@ -0,0 +1,6 @@
1
+ import type { VariantProps } from "class-variance-authority";
2
+ export declare const buttonVariants: (props?: ({
3
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
4
+ size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export type ButtonVariants = VariantProps<typeof buttonVariants>;
@@ -0,0 +1,20 @@
1
+ import type { App, DefineComponent } from 'vue';
2
+ import type { ButtonProps } from './button-props.js';
3
+ export type { ButtonProps, ButtonSize, ButtonVariant } from './button-props.js';
4
+ export { buttonVariants } from './button-variants.js';
5
+ export type { ButtonVariants } from './button-variants.js';
6
+ declare const _Button: {
7
+ new (...args: any[]): any;
8
+ __isFragment?: never;
9
+ __isTeleport?: never;
10
+ __isSuspense?: never;
11
+ } & import("vue").ComponentOptionsBase<Readonly<any>, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {} | {
12
+ [x: string]: any;
13
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
14
+ install(app: App): void;
15
+ };
16
+ export default _Button;
17
+ type ErpButtonComponent = DefineComponent<ButtonProps> & {
18
+ install(app: App): void;
19
+ };
20
+ export declare const ErpButton: ErpButtonComponent;
@@ -0,0 +1,124 @@
1
+ import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, useAttrs, withCtx } from "vue";
2
+ import { Primitive } from "reka-ui";
3
+ import { clsx } from "clsx";
4
+ import { twMerge } from "tailwind-merge";
5
+ import { cva } from "class-variance-authority";
6
+
7
+ //#region src/utils/utils.ts
8
+ function cn(...inputs) {
9
+ return twMerge(clsx(inputs));
10
+ }
11
+
12
+ //#endregion
13
+ //#region src/utils/forward-attrs.ts
14
+ function useForwardedAttrs() {
15
+ const attrs = useAttrs();
16
+ return {
17
+ forwardedAttrs: computed(() => {
18
+ const { class: _class,...rest } = attrs;
19
+ return rest;
20
+ }),
21
+ forwardedClass: computed(() => attrs.class)
22
+ };
23
+ }
24
+
25
+ //#endregion
26
+ //#region src/Button/button-variants.ts
27
+ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
28
+ variants: {
29
+ variant: {
30
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
31
+ destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
32
+ outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
33
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
34
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
35
+ link: "text-primary underline-offset-4 hover:underline"
36
+ },
37
+ size: {
38
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
39
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
40
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
41
+ icon: "size-9",
42
+ "icon-sm": "size-8",
43
+ "icon-lg": "size-10"
44
+ }
45
+ },
46
+ defaultVariants: {
47
+ variant: "default",
48
+ size: "default"
49
+ }
50
+ });
51
+
52
+ //#endregion
53
+ //#region src/Button/Button.vue?vue&type=script&setup=true&lang.ts
54
+ var Button_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
55
+ inheritAttrs: false,
56
+ __name: "Button",
57
+ props: {
58
+ variant: {
59
+ type: String,
60
+ required: false
61
+ },
62
+ size: {
63
+ type: String,
64
+ required: false
65
+ },
66
+ class: {
67
+ type: null,
68
+ required: false
69
+ },
70
+ asChild: {
71
+ type: Boolean,
72
+ required: false
73
+ },
74
+ as: {
75
+ type: null,
76
+ required: false,
77
+ default: "button"
78
+ }
79
+ },
80
+ setup(__props) {
81
+ const props = __props;
82
+ const { forwardedAttrs, forwardedClass } = useForwardedAttrs();
83
+ return (_ctx, _cache) => {
84
+ return openBlock(), createBlock(unref(Primitive), mergeProps({
85
+ "data-slot": "button",
86
+ as: props.as,
87
+ "as-child": props.asChild
88
+ }, unref(forwardedAttrs), { class: unref(cn)(unref(buttonVariants)({
89
+ variant: props.variant,
90
+ size: props.size
91
+ }), unref(forwardedClass), props.class) }), {
92
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
93
+ _: 3
94
+ }, 16, [
95
+ "as",
96
+ "as-child",
97
+ "class"
98
+ ]);
99
+ };
100
+ }
101
+ });
102
+
103
+ //#endregion
104
+ //#region src/Button/Button.vue
105
+ var Button_default$1 = Button_vue_vue_type_script_setup_true_lang_default;
106
+
107
+ //#endregion
108
+ //#region src/utils/install.ts
109
+ function withInstall(comp) {
110
+ const component = comp.default ?? comp;
111
+ component.install = (app) => {
112
+ if (component.name) app.component(component.name, component);
113
+ };
114
+ return component;
115
+ }
116
+
117
+ //#endregion
118
+ //#region src/Button/index.ts
119
+ const _Button = withInstall(Button_default$1);
120
+ var Button_default = _Button;
121
+ const ErpButton = _Button;
122
+
123
+ //#endregion
124
+ export { ErpButton, buttonVariants, Button_default as default };
package/index.css ADDED
@@ -0,0 +1,596 @@
1
+ @keyframes accordion-up {
2
+ from {
3
+ height: var(--reka-accordion-content-height);
4
+ }
5
+
6
+ to {
7
+ height: 0;
8
+ }
9
+ }
10
+
11
+ @keyframes accordion-down {
12
+ from {
13
+ height: 0;
14
+ }
15
+
16
+ to {
17
+ height: var(--reka-accordion-content-height);
18
+ }
19
+ }
20
+
21
+ @keyframes collapsible-up {
22
+ from {
23
+ height: var(--reka-collapsible-content-height);
24
+ }
25
+
26
+ to {
27
+ height: 0;
28
+ }
29
+ }
30
+
31
+ @keyframes collapsible-down {
32
+ from {
33
+ height: 0;
34
+ }
35
+
36
+ to {
37
+ height: var(--reka-collapsible-content-height);
38
+ }
39
+ }
40
+
41
+ @keyframes toast-collapsed-closed {
42
+ from {
43
+ transform: var(--transform);
44
+ }
45
+
46
+ to {
47
+ transform: translateY(calc((var(--before) - var(--height)) * var(--gap)))
48
+ scale(var(--scale));
49
+ }
50
+ }
51
+
52
+ @keyframes toast-closed {
53
+ from {
54
+ transform: var(--transform);
55
+ }
56
+
57
+ to {
58
+ transform: translateY(
59
+ calc((var(--offset) - var(--height)) * var(--translate-factor))
60
+ );
61
+ }
62
+ }
63
+
64
+ @keyframes toast-slide-left {
65
+ from {
66
+ transform: translateX(0) translateY(var(--translate));
67
+ }
68
+
69
+ to {
70
+ transform: translateX(-100%) translateY(var(--translate));
71
+ }
72
+ }
73
+
74
+ @keyframes toast-slide-right {
75
+ from {
76
+ transform: translateX(0) translateY(var(--translate));
77
+ }
78
+
79
+ to {
80
+ transform: translateX(100%) translateY(var(--translate));
81
+ }
82
+ }
83
+
84
+ @keyframes fade-in {
85
+ from {
86
+ opacity: 0;
87
+ }
88
+
89
+ to {
90
+ opacity: 1;
91
+ }
92
+ }
93
+
94
+ @keyframes fade-out {
95
+ from {
96
+ opacity: 1;
97
+ }
98
+
99
+ to {
100
+ opacity: 0;
101
+ }
102
+ }
103
+
104
+ @keyframes scale-in {
105
+ from {
106
+ opacity: 0;
107
+ transform: scale(0.95);
108
+ }
109
+
110
+ to {
111
+ opacity: 1;
112
+ transform: scale(1);
113
+ }
114
+ }
115
+
116
+ @keyframes scale-out {
117
+ from {
118
+ opacity: 1;
119
+ transform: scale(1);
120
+ }
121
+
122
+ to {
123
+ opacity: 0;
124
+ transform: scale(0.95);
125
+ }
126
+ }
127
+
128
+ @keyframes slide-in-from-top {
129
+ from {
130
+ transform: translateY(-100%);
131
+ }
132
+
133
+ to {
134
+ transform: translateY(0);
135
+ }
136
+ }
137
+
138
+ @keyframes slide-out-to-top {
139
+ from {
140
+ transform: translateY(0);
141
+ }
142
+
143
+ to {
144
+ transform: translateY(-100%);
145
+ }
146
+ }
147
+
148
+ @keyframes slide-in-from-right {
149
+ from {
150
+ transform: translateX(100%);
151
+ }
152
+
153
+ to {
154
+ transform: translateX(0);
155
+ }
156
+ }
157
+
158
+ @keyframes slide-out-to-right {
159
+ from {
160
+ transform: translateX(0);
161
+ }
162
+
163
+ to {
164
+ transform: translateX(100%);
165
+ }
166
+ }
167
+
168
+ @keyframes slide-in-from-bottom {
169
+ from {
170
+ transform: translateY(100%);
171
+ }
172
+
173
+ to {
174
+ transform: translateY(0);
175
+ }
176
+ }
177
+
178
+ @keyframes slide-out-to-bottom {
179
+ from {
180
+ transform: translateY(0);
181
+ }
182
+
183
+ to {
184
+ transform: translateY(100%);
185
+ }
186
+ }
187
+
188
+ @keyframes slide-in-from-left {
189
+ from {
190
+ transform: translateX(-100%);
191
+ }
192
+
193
+ to {
194
+ transform: translateX(0);
195
+ }
196
+ }
197
+
198
+ @keyframes slide-out-to-left {
199
+ from {
200
+ transform: translateX(0);
201
+ }
202
+
203
+ to {
204
+ transform: translateX(-100%);
205
+ }
206
+ }
207
+
208
+ @keyframes slide-in-from-top-and-fade {
209
+ from {
210
+ opacity: 0;
211
+ transform: translateY(-4px);
212
+ }
213
+
214
+ to {
215
+ opacity: 1;
216
+ transform: translateY(0);
217
+ }
218
+ }
219
+
220
+ @keyframes slide-out-to-top-and-fade {
221
+ from {
222
+ opacity: 1;
223
+ transform: translateY(0);
224
+ }
225
+
226
+ to {
227
+ opacity: 0;
228
+ transform: translateY(-4px);
229
+ }
230
+ }
231
+
232
+ @keyframes slide-in-from-right-and-fade {
233
+ from {
234
+ opacity: 0;
235
+ transform: translateX(4px);
236
+ }
237
+
238
+ to {
239
+ opacity: 1;
240
+ transform: translateX(0);
241
+ }
242
+ }
243
+
244
+ @keyframes slide-out-to-right-and-fade {
245
+ from {
246
+ opacity: 1;
247
+ transform: translateX(0);
248
+ }
249
+
250
+ to {
251
+ opacity: 0;
252
+ transform: translateX(4px);
253
+ }
254
+ }
255
+
256
+ @keyframes slide-in-from-bottom-and-fade {
257
+ from {
258
+ opacity: 0;
259
+ transform: translateY(4px);
260
+ }
261
+
262
+ to {
263
+ opacity: 1;
264
+ transform: translateY(0);
265
+ }
266
+ }
267
+
268
+ @keyframes slide-out-to-bottom-and-fade {
269
+ from {
270
+ opacity: 1;
271
+ transform: translateY(0);
272
+ }
273
+
274
+ to {
275
+ opacity: 0;
276
+ transform: translateY(4px);
277
+ }
278
+ }
279
+
280
+ @keyframes slide-in-from-left-and-fade {
281
+ from {
282
+ opacity: 0;
283
+ transform: translateX(-4px);
284
+ }
285
+
286
+ to {
287
+ opacity: 1;
288
+ transform: translateX(0);
289
+ }
290
+ }
291
+
292
+ @keyframes slide-out-to-left-and-fade {
293
+ from {
294
+ opacity: 1;
295
+ transform: translateX(0);
296
+ }
297
+
298
+ to {
299
+ opacity: 0;
300
+ transform: translateX(-4px);
301
+ }
302
+ }
303
+
304
+ @keyframes enter-from-right {
305
+ from {
306
+ opacity: 0;
307
+ transform: translateX(200px);
308
+ }
309
+
310
+ to {
311
+ opacity: 1;
312
+ transform: translateX(0);
313
+ }
314
+ }
315
+
316
+ @keyframes enter-from-left {
317
+ from {
318
+ opacity: 0;
319
+ transform: translateX(-200px);
320
+ }
321
+
322
+ to {
323
+ opacity: 1;
324
+ transform: translateX(0);
325
+ }
326
+ }
327
+
328
+ @keyframes exit-to-right {
329
+ from {
330
+ opacity: 1;
331
+ transform: translateX(0);
332
+ }
333
+
334
+ to {
335
+ opacity: 0;
336
+ transform: translateX(200px);
337
+ }
338
+ }
339
+
340
+ @keyframes exit-to-left {
341
+ from {
342
+ opacity: 1;
343
+ transform: translateX(0);
344
+ }
345
+
346
+ to {
347
+ opacity: 0;
348
+ transform: translateX(-200px);
349
+ }
350
+ }
351
+
352
+ @keyframes carousel {
353
+ 0%,
354
+ 100% {
355
+ width: 50%;
356
+ }
357
+
358
+ 0% {
359
+ transform: translateX(-100%);
360
+ }
361
+
362
+ 100% {
363
+ transform: translateX(200%);
364
+ }
365
+ }
366
+
367
+ @keyframes carousel-rtl {
368
+ 0%,
369
+ 100% {
370
+ width: 50%;
371
+ }
372
+
373
+ 0% {
374
+ transform: translateX(100%);
375
+ }
376
+
377
+ 100% {
378
+ transform: translateX(-200%);
379
+ }
380
+ }
381
+
382
+ @keyframes carousel-vertical {
383
+ 0%,
384
+ 100% {
385
+ height: 50%;
386
+ }
387
+
388
+ 0% {
389
+ transform: translateY(-100%);
390
+ }
391
+
392
+ 100% {
393
+ transform: translateY(200%);
394
+ }
395
+ }
396
+
397
+ @keyframes carousel-inverse {
398
+ 0%,
399
+ 100% {
400
+ width: 50%;
401
+ }
402
+
403
+ 0% {
404
+ transform: translateX(200%);
405
+ }
406
+
407
+ 100% {
408
+ transform: translateX(-100%);
409
+ }
410
+ }
411
+
412
+ @keyframes carousel-inverse-rtl {
413
+ 0%,
414
+ 100% {
415
+ width: 50%;
416
+ }
417
+
418
+ 0% {
419
+ transform: translateX(-200%);
420
+ }
421
+
422
+ 100% {
423
+ transform: translateX(100%);
424
+ }
425
+ }
426
+
427
+ @keyframes carousel-inverse-vertical {
428
+ 0%,
429
+ 100% {
430
+ height: 50%;
431
+ }
432
+
433
+ 0% {
434
+ transform: translateY(200%);
435
+ }
436
+
437
+ 100% {
438
+ transform: translateY(-100%);
439
+ }
440
+ }
441
+
442
+ @keyframes swing {
443
+ 0%,
444
+ 100% {
445
+ width: 50%;
446
+ }
447
+
448
+ 0%,
449
+ 100% {
450
+ transform: translateX(-25%);
451
+ }
452
+
453
+ 50% {
454
+ transform: translateX(125%);
455
+ }
456
+ }
457
+
458
+ @keyframes swing-vertical {
459
+ 0%,
460
+ 100% {
461
+ height: 50%;
462
+ }
463
+
464
+ 0%,
465
+ 100% {
466
+ transform: translateY(-25%);
467
+ }
468
+
469
+ 50% {
470
+ transform: translateY(125%);
471
+ }
472
+ }
473
+
474
+ @keyframes elastic {
475
+ /* Firefox doesn't do "margin: 0 auto", we have to play with margin-left */
476
+ 0%,
477
+ 100% {
478
+ width: 50%;
479
+ margin-left: 25%;
480
+ }
481
+
482
+ 50% {
483
+ width: 90%;
484
+ margin-left: 5%;
485
+ }
486
+ }
487
+
488
+ @keyframes elastic-vertical {
489
+ 0%,
490
+ 100% {
491
+ height: 50%;
492
+ margin-top: 25%;
493
+ }
494
+
495
+ 50% {
496
+ height: 90%;
497
+ margin-top: 5%;
498
+ }
499
+ }
500
+
501
+ @keyframes marquee {
502
+ from {
503
+ transform: translate3d(0, 0, 0);
504
+ }
505
+
506
+ to {
507
+ transform: translate3d(calc(-100% - var(--gap)), 0, 0);
508
+ }
509
+ }
510
+
511
+ @keyframes marquee-rtl {
512
+ from {
513
+ transform: translate3d(0, 0, 0);
514
+ }
515
+
516
+ to {
517
+ transform: translate3d(calc(100% + var(--gap)), 0, 0);
518
+ }
519
+ }
520
+
521
+ @keyframes marquee-vertical {
522
+ from {
523
+ transform: translate3d(0, 0, 0);
524
+ }
525
+
526
+ to {
527
+ transform: translate3d(0, calc(-100% - var(--gap)), 0);
528
+ }
529
+ }
530
+
531
+ @keyframes marquee-vertical-rtl {
532
+ from {
533
+ transform: translate3d(0, calc(-100% - var(--gap)), 0);
534
+ }
535
+
536
+ to {
537
+ transform: translate3d(0, calc(-100% * var(--gap)), 0);
538
+ }
539
+ }
540
+
541
+ @variant light (&:where(.light, .light *));
542
+ @variant dark (&:where(.dark, .dark *));
543
+
544
+ @layer base {
545
+ body {
546
+ /* @apply antialiased text-default bg-default scheme-light dark:scheme-dark; */
547
+ @apply antialiased scheme-light dark:scheme-dark;
548
+ }
549
+
550
+ :root {
551
+ /* --ui-header-height: --spacing(16); */
552
+ }
553
+
554
+ :root, .light {
555
+ --ui-text-dimmed: var(--ui-color-neutral-400);
556
+ --ui-text-muted: var(--ui-color-neutral-500);
557
+ --ui-text-toned: var(--ui-color-neutral-600);
558
+ --ui-text: var(--ui-color-neutral-700);
559
+ --ui-text-highlighted: var(--ui-color-neutral-900);
560
+ --ui-text-inverted: var(--color-white);
561
+
562
+ --ui-bg: var(--color-white);
563
+ --ui-bg-muted: var(--ui-color-neutral-50);
564
+ --ui-bg-elevated: var(--ui-color-neutral-100);
565
+ --ui-bg-accented: var(--ui-color-neutral-200);
566
+ --ui-bg-inverted: var(--ui-color-neutral-900);
567
+
568
+ --ui-border: var(--ui-color-neutral-200);
569
+ --ui-border-muted: var(--ui-color-neutral-200);
570
+ --ui-border-accented: var(--ui-color-neutral-300);
571
+ --ui-border-inverted: var(--ui-color-neutral-900);
572
+
573
+ --ui-radius: 0.25rem;
574
+ --ui-container: var(--container-7xl);
575
+ }
576
+
577
+ .dark {
578
+ --ui-text-dimmed: var(--ui-color-neutral-500);
579
+ --ui-text-muted: var(--ui-color-neutral-400);
580
+ --ui-text-toned: var(--ui-color-neutral-300);
581
+ --ui-text: var(--ui-color-neutral-200);
582
+ --ui-text-highlighted: var(--color-white);
583
+ --ui-text-inverted: var(--ui-color-neutral-900);
584
+
585
+ --ui-bg: var(--ui-color-neutral-900);
586
+ --ui-bg-muted: var(--ui-color-neutral-800);
587
+ --ui-bg-elevated: var(--ui-color-neutral-800);
588
+ --ui-bg-accented: var(--ui-color-neutral-700);
589
+ --ui-bg-inverted: var(--color-white);
590
+
591
+ --ui-border: var(--ui-color-neutral-800);
592
+ --ui-border-muted: var(--ui-color-neutral-700);
593
+ --ui-border-accented: var(--ui-color-neutral-700);
594
+ --ui-border-inverted: var(--color-white);
595
+ }
596
+ }
package/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import type { App, Component } from 'vue';
2
+ import { ErpButton } from './Button/index.js';
3
+ export { buttonVariants } from './Button/index.js';
4
+ export type { ButtonVariants } from './Button/index.js';
5
+ declare const components: Component[];
6
+ declare const install: (app: App) => void;
7
+ declare const ErpUI: {
8
+ install: (app: App) => void;
9
+ components: Component[];
10
+ };
11
+ export { ErpButton };
12
+ export { install };
13
+ export { ErpUI };
14
+ export { components };
15
+ export default ErpUI;
package/index.js ADDED
@@ -0,0 +1,19 @@
1
+ import { ErpButton, buttonVariants } from "./Button/index.js";
2
+
3
+ //#region src/index.ts
4
+ const components = [ErpButton];
5
+ const install = (app) => {
6
+ components.forEach((component) => {
7
+ const comp = component.default ?? component;
8
+ if (comp && comp.install) comp.install(app);
9
+ else if (comp && comp.name) app.component(comp.name, comp);
10
+ });
11
+ };
12
+ const ErpUI = {
13
+ install,
14
+ components
15
+ };
16
+ var src_default = ErpUI;
17
+
18
+ //#endregion
19
+ export { ErpButton, ErpUI, buttonVariants, components, src_default as default, install };
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@tongfun/ui",
3
+ "version": "0.0.0-alpha.2",
4
+ "description": "UI components for ERP",
5
+ "type": "module",
6
+ "private": false,
7
+ "exports": {
8
+ ".": {
9
+ "import": "./index.js",
10
+ "style": "./index.css",
11
+ "types": "./index.d.ts"
12
+ },
13
+ "./*": {
14
+ "import": "./*/index.js",
15
+ "types": "./*/index.d.ts"
16
+ }
17
+ },
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
21
+ "main": "./index.js",
22
+ "module": "./index.js",
23
+ "types": "./index.d.ts",
24
+ "files": [
25
+ "**/*"
26
+ ],
27
+ "keywords": [],
28
+ "author": "",
29
+ "license": "MIT",
30
+ "peerDependencies": {
31
+ "vue": "^3.5.22",
32
+ "@vueuse/core": "^14.0.0",
33
+ "reka-ui": "^2.6.0",
34
+ "clsx": "^2.1.1",
35
+ "class-variance-authority": "^0.7.1",
36
+ "tailwind-merge": "^3.4.0"
37
+ }
38
+ }
@@ -0,0 +1,6 @@
1
+ export declare function useForwardedAttrs(): {
2
+ forwardedAttrs: import("vue").ComputedRef<{
3
+ [x: string]: unknown;
4
+ }>;
5
+ forwardedClass: import("vue").ComputedRef<any>;
6
+ };
@@ -0,0 +1,6 @@
1
+ import type { App } from 'vue';
2
+ export declare function withInstall<T extends {
3
+ name?: string;
4
+ }>(comp: T): T & {
5
+ install(app: App): void;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;