@cypress-design/vue-accordion 0.1.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/Accordion.rootstory.tsx +35 -0
- package/Accordion.stories.mdx +109 -0
- package/Accordion.vue +98 -0
- package/AccordionVue.cy.tsx +11 -0
- package/CHANGELOG.md +12 -0
- package/ReadMe.md +37 -0
- package/dist/constants.d.ts +53 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/index.es.mjs +123 -0
- package/dist/index.es.mjs.map +1 -0
- package/dist/index.umd.js +4 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/vue/Accordion.vue.d.ts +203 -0
- package/dist/vue/Accordion.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/index.ts +1 -0
- package/package.json +26 -0
- package/tsconfig.build.json +7 -0
- package/tsconfig.json +13 -0
- package/vite.config.ts +7 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { FunctionalComponent, SVGAttributes } from 'vue';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
/**
|
|
8
|
+
* Main indigo title.
|
|
9
|
+
* [NOTE] It's color and font can be customized using `titleClassName`.
|
|
10
|
+
*/
|
|
11
|
+
title: string;
|
|
12
|
+
/**
|
|
13
|
+
* Second line in the heading.
|
|
14
|
+
*/
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Icon to be displayed on the left of the the heading.
|
|
18
|
+
*/
|
|
19
|
+
icon?: FunctionalComponent<SVGAttributes, {}> | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Should we add a vertical separator between the icon and the text.
|
|
22
|
+
*/
|
|
23
|
+
separator?: boolean | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Change the font and color of the heading title
|
|
26
|
+
*/
|
|
27
|
+
titleClassName?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Change the font and color of the heading description
|
|
30
|
+
*/
|
|
31
|
+
descriptionClassName?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Additional classes to add to the header of the accordion
|
|
34
|
+
* > [NOTE] useful to change the background color of the header
|
|
35
|
+
*/
|
|
36
|
+
headingClassName?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* When using content that needs ti be edge to edge,
|
|
39
|
+
* removes the content wrapper from the content.
|
|
40
|
+
*/
|
|
41
|
+
fullWidthContent?: boolean | undefined;
|
|
42
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
43
|
+
$attrs: {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
$refs: {
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
$slots: Readonly<{
|
|
50
|
+
[name: string]: import("vue").Slot | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
53
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
54
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
55
|
+
$el: any;
|
|
56
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
57
|
+
/**
|
|
58
|
+
* Main indigo title.
|
|
59
|
+
* [NOTE] It's color and font can be customized using `titleClassName`.
|
|
60
|
+
*/
|
|
61
|
+
title: string;
|
|
62
|
+
/**
|
|
63
|
+
* Second line in the heading.
|
|
64
|
+
*/
|
|
65
|
+
description?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Icon to be displayed on the left of the the heading.
|
|
68
|
+
*/
|
|
69
|
+
icon?: FunctionalComponent<SVGAttributes, {}> | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Should we add a vertical separator between the icon and the text.
|
|
72
|
+
*/
|
|
73
|
+
separator?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Change the font and color of the heading title
|
|
76
|
+
*/
|
|
77
|
+
titleClassName?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Change the font and color of the heading description
|
|
80
|
+
*/
|
|
81
|
+
descriptionClassName?: string | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Additional classes to add to the header of the accordion
|
|
84
|
+
* > [NOTE] useful to change the background color of the header
|
|
85
|
+
*/
|
|
86
|
+
headingClassName?: string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* When using content that needs ti be edge to edge,
|
|
89
|
+
* removes the content wrapper from the content.
|
|
90
|
+
*/
|
|
91
|
+
fullWidthContent?: boolean | undefined;
|
|
92
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
93
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
94
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
95
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
96
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
97
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
98
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
99
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
100
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
101
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
102
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
103
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
104
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
105
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
106
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
107
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
108
|
+
};
|
|
109
|
+
$forceUpdate: () => void;
|
|
110
|
+
$nextTick: typeof import("vue").nextTick;
|
|
111
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
112
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
113
|
+
/**
|
|
114
|
+
* Main indigo title.
|
|
115
|
+
* [NOTE] It's color and font can be customized using `titleClassName`.
|
|
116
|
+
*/
|
|
117
|
+
title: string;
|
|
118
|
+
/**
|
|
119
|
+
* Second line in the heading.
|
|
120
|
+
*/
|
|
121
|
+
description?: string | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* Icon to be displayed on the left of the the heading.
|
|
124
|
+
*/
|
|
125
|
+
icon?: FunctionalComponent<SVGAttributes, {}> | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Should we add a vertical separator between the icon and the text.
|
|
128
|
+
*/
|
|
129
|
+
separator?: boolean | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* Change the font and color of the heading title
|
|
132
|
+
*/
|
|
133
|
+
titleClassName?: string | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Change the font and color of the heading description
|
|
136
|
+
*/
|
|
137
|
+
descriptionClassName?: string | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Additional classes to add to the header of the accordion
|
|
140
|
+
* > [NOTE] useful to change the background color of the header
|
|
141
|
+
*/
|
|
142
|
+
headingClassName?: string | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* When using content that needs ti be edge to edge,
|
|
145
|
+
* removes the content wrapper from the content.
|
|
146
|
+
*/
|
|
147
|
+
fullWidthContent?: boolean | undefined;
|
|
148
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
149
|
+
__isFragment?: undefined;
|
|
150
|
+
__isTeleport?: undefined;
|
|
151
|
+
__isSuspense?: undefined;
|
|
152
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
153
|
+
/**
|
|
154
|
+
* Main indigo title.
|
|
155
|
+
* [NOTE] It's color and font can be customized using `titleClassName`.
|
|
156
|
+
*/
|
|
157
|
+
title: string;
|
|
158
|
+
/**
|
|
159
|
+
* Second line in the heading.
|
|
160
|
+
*/
|
|
161
|
+
description?: string | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Icon to be displayed on the left of the the heading.
|
|
164
|
+
*/
|
|
165
|
+
icon?: FunctionalComponent<SVGAttributes, {}> | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Should we add a vertical separator between the icon and the text.
|
|
168
|
+
*/
|
|
169
|
+
separator?: boolean | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* Change the font and color of the heading title
|
|
172
|
+
*/
|
|
173
|
+
titleClassName?: string | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Change the font and color of the heading description
|
|
176
|
+
*/
|
|
177
|
+
descriptionClassName?: string | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* Additional classes to add to the header of the accordion
|
|
180
|
+
* > [NOTE] useful to change the background color of the header
|
|
181
|
+
*/
|
|
182
|
+
headingClassName?: string | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* When using content that needs ti be edge to edge,
|
|
185
|
+
* removes the content wrapper from the content.
|
|
186
|
+
*/
|
|
187
|
+
fullWidthContent?: boolean | undefined;
|
|
188
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
189
|
+
$slots: {
|
|
190
|
+
default: (_: {}) => any;
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
export default _default;
|
|
194
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
195
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
196
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
197
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
198
|
+
} : {
|
|
199
|
+
type: import('vue').PropType<T[K]>;
|
|
200
|
+
required: true;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
//# sourceMappingURL=Accordion.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.vue.d.ts","sourceRoot":"","sources":["../../Accordion.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAkB,aAAa,EAAE,MAAM,KAAK,CAAA;;;;;;YAqDtE;;;eAGG;mBACI,MAAM;YACb;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;YAjCH;;;eAGG;mBACI,MAAM;YACb;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;;;;;;;QAjCH;;;WAGG;eACI,MAAM;QACb;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;;WAGG;;QAEH;;;WAGG;;;;;;;IAjCH;;;OAGG;WACI,MAAM;IACb;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;;;;;;AApFL,wBAoGK;AACL,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA"}
|
package/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Accordion.vue'
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cypress-design/vue-accordion",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"files": [
|
|
5
|
+
"*"
|
|
6
|
+
],
|
|
7
|
+
"typings": "./dist/vue/index.d.ts",
|
|
8
|
+
"module": "./dist/index.es.mjs",
|
|
9
|
+
"main": "./dist/index.umd.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.es.mjs",
|
|
13
|
+
"require": "./dist/index.umd.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "yarn build:module && yarn build:types",
|
|
18
|
+
"build:module": "yarn vite build",
|
|
19
|
+
"build:types": "yarn vue-tsc --project ./tsconfig.build.json"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@cypress-design/details-animation": "*",
|
|
24
|
+
"@cypress-design/vue-icon": "*"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/tsconfig.json
ADDED