@codemonster-ru/vueforge 0.21.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 +64 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.ts.mjs +1071 -936
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/accordion.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/config/theme-core.d.ts +33 -0
- package/dist/package/themes/default/components/accordion.d.ts +33 -0
- package/dist/package/themes/default/index.d.ts +32 -0
- package/package.json +1 -1
|
@@ -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
|
+
};
|
|
@@ -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;
|
|
@@ -519,6 +551,7 @@ export type ThemeComponentTokens = {
|
|
|
519
551
|
checkbox?: CheckboxTokens;
|
|
520
552
|
radio?: RadioTokens;
|
|
521
553
|
tabs?: TabsTokens;
|
|
554
|
+
accordion?: AccordionTokens;
|
|
522
555
|
input?: InputTokens;
|
|
523
556
|
formField?: FormFieldTokens;
|
|
524
557
|
textarea?: TextareaTokens;
|
|
@@ -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;
|