@codemonster-ru/vueforge 0.20.0 → 0.22.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.
- package/README.md +84 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.ts.mjs +1269 -1099
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/accordion.test.d.ts +1 -0
- package/dist/package/components/__tests__/skeleton.test.d.ts +1 -0
- package/dist/package/components/accordion-context.d.ts +15 -0
- package/dist/package/components/accordion-item.vue.d.ts +29 -0
- package/dist/package/components/accordion.vue.d.ts +39 -0
- package/dist/package/components/skeleton.vue.d.ts +12 -0
- package/dist/package/config/theme-core.d.ts +43 -0
- package/dist/package/themes/default/components/accordion.d.ts +33 -0
- package/dist/package/themes/default/components/skeleton.d.ts +10 -0
- package/dist/package/themes/default/index.d.ts +41 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
export type AccordionValue = string | number;
|
|
3
|
+
export type AccordionVariant = 'filled' | 'outlined';
|
|
4
|
+
export type AccordionSize = 'small' | 'normal' | 'large';
|
|
5
|
+
export type AccordionContext = {
|
|
6
|
+
modelValue: ComputedRef<AccordionValue | AccordionValue[] | undefined>;
|
|
7
|
+
multiple: ComputedRef<boolean>;
|
|
8
|
+
disabled: ComputedRef<boolean>;
|
|
9
|
+
variant: ComputedRef<AccordionVariant>;
|
|
10
|
+
size: ComputedRef<AccordionSize>;
|
|
11
|
+
onToggle: (value: AccordionValue, event: Event) => void;
|
|
12
|
+
getHeaderId: (value: AccordionValue) => string;
|
|
13
|
+
getPanelId: (value: AccordionValue) => string;
|
|
14
|
+
};
|
|
15
|
+
export declare const accordionKey: unique symbol;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AccordionValue } from './accordion-context';
|
|
2
|
+
interface Props {
|
|
3
|
+
value: AccordionValue;
|
|
4
|
+
title?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
unmount?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
title?(_: {}): any;
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
title: string;
|
|
21
|
+
unmount: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AccordionSize, AccordionValue, AccordionVariant } from './accordion-context';
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue?: AccordionValue | AccordionValue[];
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
variant?: AccordionVariant;
|
|
7
|
+
size?: AccordionSize;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
ariaLabelledby?: string;
|
|
10
|
+
}
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
change: (...args: any[]) => void;
|
|
22
|
+
"update:modelValue": (...args: any[]) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
24
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
size: AccordionSize;
|
|
29
|
+
variant: AccordionVariant;
|
|
30
|
+
modelValue: AccordionValue | AccordionValue[];
|
|
31
|
+
multiple: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Variant = 'text' | 'rect' | 'circle';
|
|
2
|
+
interface Props {
|
|
3
|
+
width?: string | number;
|
|
4
|
+
height?: string | number;
|
|
5
|
+
variant?: Variant;
|
|
6
|
+
animated?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
+
variant: Variant;
|
|
10
|
+
animated: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -413,6 +413,38 @@ export type TabsTokens = {
|
|
|
413
413
|
panelTextColor?: string;
|
|
414
414
|
disabledOpacity?: string;
|
|
415
415
|
};
|
|
416
|
+
export type AccordionTokens = {
|
|
417
|
+
gap?: string;
|
|
418
|
+
borderRadius?: string;
|
|
419
|
+
borderColor?: string;
|
|
420
|
+
backgroundColor?: string;
|
|
421
|
+
headerGap?: string;
|
|
422
|
+
headerPadding?: string;
|
|
423
|
+
headerFontSize?: string;
|
|
424
|
+
headerFontWeight?: string;
|
|
425
|
+
headerTextColor?: string;
|
|
426
|
+
headerBackgroundColor?: string;
|
|
427
|
+
headerHoverBackgroundColor?: string;
|
|
428
|
+
headerActiveBackgroundColor?: string;
|
|
429
|
+
contentPadding?: string;
|
|
430
|
+
contentTextColor?: string;
|
|
431
|
+
contentBackgroundColor?: string;
|
|
432
|
+
iconSize?: string;
|
|
433
|
+
iconColor?: string;
|
|
434
|
+
dividerColor?: string;
|
|
435
|
+
focusRingShadow?: string;
|
|
436
|
+
disabledOpacity?: string;
|
|
437
|
+
small?: {
|
|
438
|
+
headerPadding?: string;
|
|
439
|
+
headerFontSize?: string;
|
|
440
|
+
contentPadding?: string;
|
|
441
|
+
};
|
|
442
|
+
large?: {
|
|
443
|
+
headerPadding?: string;
|
|
444
|
+
headerFontSize?: string;
|
|
445
|
+
contentPadding?: string;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
416
448
|
export type TooltipTokens = {
|
|
417
449
|
padding?: string;
|
|
418
450
|
borderRadius?: string;
|
|
@@ -425,6 +457,15 @@ export type TooltipTokens = {
|
|
|
425
457
|
maxWidth?: string;
|
|
426
458
|
arrowSize?: string;
|
|
427
459
|
};
|
|
460
|
+
export type SkeletonTokens = {
|
|
461
|
+
width?: string;
|
|
462
|
+
height?: string;
|
|
463
|
+
lineHeight?: string;
|
|
464
|
+
borderRadius?: string;
|
|
465
|
+
backgroundColor?: string;
|
|
466
|
+
shimmerColor?: string;
|
|
467
|
+
animationDuration?: string;
|
|
468
|
+
};
|
|
428
469
|
export type ToastTokens = {
|
|
429
470
|
gap?: string;
|
|
430
471
|
padding?: string;
|
|
@@ -510,6 +551,7 @@ export type ThemeComponentTokens = {
|
|
|
510
551
|
checkbox?: CheckboxTokens;
|
|
511
552
|
radio?: RadioTokens;
|
|
512
553
|
tabs?: TabsTokens;
|
|
554
|
+
accordion?: AccordionTokens;
|
|
513
555
|
input?: InputTokens;
|
|
514
556
|
formField?: FormFieldTokens;
|
|
515
557
|
textarea?: TextareaTokens;
|
|
@@ -524,6 +566,7 @@ export type ThemeComponentTokens = {
|
|
|
524
566
|
pagination?: PaginationTokens;
|
|
525
567
|
switch?: SwitchTokens;
|
|
526
568
|
tooltip?: TooltipTokens;
|
|
569
|
+
skeleton?: SkeletonTokens;
|
|
527
570
|
toast?: ToastTokens;
|
|
528
571
|
alert?: AlertTokens;
|
|
529
572
|
[key: string]: unknown;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
gap: string;
|
|
3
|
+
borderRadius: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
headerGap: string;
|
|
7
|
+
headerPadding: string;
|
|
8
|
+
headerFontSize: string;
|
|
9
|
+
headerFontWeight: string;
|
|
10
|
+
headerTextColor: string;
|
|
11
|
+
headerBackgroundColor: string;
|
|
12
|
+
headerHoverBackgroundColor: string;
|
|
13
|
+
headerActiveBackgroundColor: string;
|
|
14
|
+
contentPadding: string;
|
|
15
|
+
contentTextColor: string;
|
|
16
|
+
contentBackgroundColor: string;
|
|
17
|
+
iconSize: string;
|
|
18
|
+
iconColor: string;
|
|
19
|
+
dividerColor: string;
|
|
20
|
+
focusRingShadow: string;
|
|
21
|
+
disabledOpacity: string;
|
|
22
|
+
small: {
|
|
23
|
+
headerPadding: string;
|
|
24
|
+
headerFontSize: string;
|
|
25
|
+
contentPadding: string;
|
|
26
|
+
};
|
|
27
|
+
large: {
|
|
28
|
+
headerPadding: string;
|
|
29
|
+
headerFontSize: string;
|
|
30
|
+
contentPadding: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
@@ -595,6 +595,38 @@ declare const _default: {
|
|
|
595
595
|
panelTextColor: string;
|
|
596
596
|
disabledOpacity: string;
|
|
597
597
|
};
|
|
598
|
+
accordion: {
|
|
599
|
+
gap: string;
|
|
600
|
+
borderRadius: string;
|
|
601
|
+
borderColor: string;
|
|
602
|
+
backgroundColor: string;
|
|
603
|
+
headerGap: string;
|
|
604
|
+
headerPadding: string;
|
|
605
|
+
headerFontSize: string;
|
|
606
|
+
headerFontWeight: string;
|
|
607
|
+
headerTextColor: string;
|
|
608
|
+
headerBackgroundColor: string;
|
|
609
|
+
headerHoverBackgroundColor: string;
|
|
610
|
+
headerActiveBackgroundColor: string;
|
|
611
|
+
contentPadding: string;
|
|
612
|
+
contentTextColor: string;
|
|
613
|
+
contentBackgroundColor: string;
|
|
614
|
+
iconSize: string;
|
|
615
|
+
iconColor: string;
|
|
616
|
+
dividerColor: string;
|
|
617
|
+
focusRingShadow: string;
|
|
618
|
+
disabledOpacity: string;
|
|
619
|
+
small: {
|
|
620
|
+
headerPadding: string;
|
|
621
|
+
headerFontSize: string;
|
|
622
|
+
contentPadding: string;
|
|
623
|
+
};
|
|
624
|
+
large: {
|
|
625
|
+
headerPadding: string;
|
|
626
|
+
headerFontSize: string;
|
|
627
|
+
contentPadding: string;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
598
630
|
tooltip: {
|
|
599
631
|
padding: string;
|
|
600
632
|
borderRadius: string;
|
|
@@ -607,6 +639,15 @@ declare const _default: {
|
|
|
607
639
|
maxWidth: string;
|
|
608
640
|
arrowSize: string;
|
|
609
641
|
};
|
|
642
|
+
skeleton: {
|
|
643
|
+
width: string;
|
|
644
|
+
height: string;
|
|
645
|
+
lineHeight: string;
|
|
646
|
+
borderRadius: string;
|
|
647
|
+
backgroundColor: string;
|
|
648
|
+
shimmerColor: string;
|
|
649
|
+
animationDuration: string;
|
|
650
|
+
};
|
|
610
651
|
toast: {
|
|
611
652
|
gap: string;
|
|
612
653
|
padding: string;
|