@tongfun/ui 0.0.0-alpha.3 → 0.0.1-alpha.10

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.
Files changed (36) hide show
  1. package/README.md +110 -0
  2. package/dist/agent-schema/index.d.ts +12 -0
  3. package/dist/agent-schema/index.js +33 -0
  4. package/dist/agent-schema/types.d.ts +27 -0
  5. package/dist/formula/index.d.ts +17 -0
  6. package/dist/formula/types.d.ts +136 -0
  7. package/dist/html2canvas.esm-Bfw1xMTR.js +4886 -0
  8. package/dist/index-C0rb4BPV.js +482 -0
  9. package/dist/index-Ci3-2oB_.js +323459 -0
  10. package/dist/index.d.ts +719 -0
  11. package/dist/index.es-CoCAKfeh.js +5790 -0
  12. package/dist/index.js +842 -0
  13. package/dist/jspdf.es.min-B9-wXZ_S.js +10769 -0
  14. package/dist/lowcode-agent/icons.d.ts +12 -0
  15. package/dist/lowcode-agent/icons.js +229 -0
  16. package/dist/lowcode-agent/index.d.ts +27 -0
  17. package/dist/lowcode-agent/index.js +79577 -0
  18. package/dist/lowcode-agent/types.d.ts +471 -0
  19. package/dist/skill/golden-examples/dashboard-workbench.md +224 -0
  20. package/dist/skill/golden-examples/form-create.md +227 -0
  21. package/dist/skill/golden-examples/management-list.md +264 -0
  22. package/dist/skill/golden-examples/new-document.md +748 -0
  23. package/dist/skill/tongfun-ui-skill.json +470 -0
  24. package/dist/skill/tongfun-ui-skill.md +297 -0
  25. package/dist/style.css +10 -0
  26. package/package.json +113 -38
  27. package/Button/button-props.d.ts +0 -9
  28. package/Button/button-variants.d.ts +0 -5
  29. package/Button/index.d.ts +0 -20
  30. package/Button/index.js +0 -111
  31. package/index.css +0 -596
  32. package/index.d.ts +0 -15
  33. package/index.js +0 -19
  34. package/utils/forward-attrs.d.ts +0 -6
  35. package/utils/install.d.ts +0 -6
  36. package/utils/utils.d.ts +0 -2
package/index.css DELETED
@@ -1,596 +0,0 @@
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 DELETED
@@ -1,15 +0,0 @@
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 DELETED
@@ -1,19 +0,0 @@
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 };
@@ -1,6 +0,0 @@
1
- export declare function useForwardedAttrs(): {
2
- forwardedAttrs: import("vue").ComputedRef<{
3
- [x: string]: unknown;
4
- }>;
5
- forwardedClass: import("vue").ComputedRef<any>;
6
- };
@@ -1,6 +0,0 @@
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
- };
package/utils/utils.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { type ClassValue } from 'clsx';
2
- export declare function cn(...inputs: ClassValue[]): string;