@rededor/cura 0.4.6 → 0.4.8
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/dist/assets/icons/iconset-default-list.ts +1 -1
- package/dist/assets/icons/iconset-default-tmp.svg +27 -5
- package/dist/assets/icons/iconset-default.svg +1 -1
- package/dist/cjs/{cura-button_10.cjs.entry.js → cura-accordion_12.cjs.entry.js} +129 -3
- package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -0
- package/dist/cjs/cura.cjs.js +2 -2
- package/dist/cjs/{index-0e874533.js → index-72217b50.js} +10 -2
- package/dist/cjs/index-72217b50.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/icons/iconset-default-list.js +1 -1
- package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
- package/dist/collection/assets/icons/iconset-default-tmp.svg +27 -5
- package/dist/collection/assets/icons/iconset-default.svg +1 -1
- package/dist/collection/assets-raw/icons/default/doc.svg +5 -5
- package/dist/collection/assets-raw/icons/default/examDoc.svg +8 -0
- package/dist/collection/assets-raw/icons/default/siren.svg +12 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.css +14 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +272 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +160 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +1 -0
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +139 -0
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +199 -0
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -0
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +93 -47
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +168 -0
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +168 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -0
- package/dist/collection/components/cura-icon/cura-icon.stories.js +75 -0
- package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -0
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +56 -0
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +1 -0
- package/dist/collection/components/text/cura-display/cura-display.stories.js +80 -0
- package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -0
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js +91 -0
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -0
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +94 -0
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -0
- package/dist/collection/utils/utils.js +12 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/cura-accordion-item.d.ts +11 -0
- package/dist/components/cura-accordion-item.js +76 -0
- package/dist/components/cura-accordion-item.js.map +1 -0
- package/dist/components/cura-accordion.d.ts +11 -0
- package/dist/components/cura-accordion.js +121 -0
- package/dist/components/cura-accordion.js.map +1 -0
- package/dist/components/cura-icons-view.js +1 -1
- package/dist/components/cura-icons-view.js.map +1 -1
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/cura.esm.js.map +1 -1
- package/dist/cura/cura.js +1 -1
- package/dist/cura/p-03b4f9a3.system.js +2 -0
- package/dist/cura/p-03b4f9a3.system.js.map +1 -0
- package/dist/cura/p-2cbf52f1.js +3 -0
- package/dist/cura/p-2cbf52f1.js.map +1 -0
- package/dist/cura/p-74e2e763.entry.js +2 -0
- package/dist/cura/p-74e2e763.entry.js.map +1 -0
- package/dist/cura/{p-a84ae34f.system.js → p-8da635b7.system.js} +3 -3
- package/dist/cura/{p-cbc91ac5.js.map → p-8da635b7.system.js.map} +1 -1
- package/dist/cura/p-d6eee1ad.system.entry.js +2 -0
- package/dist/cura/p-d6eee1ad.system.entry.js.map +1 -0
- package/dist/esm/{cura-button_10.entry.js → cura-accordion_12.entry.js} +128 -4
- package/dist/esm/cura-accordion_12.entry.js.map +1 -0
- package/dist/esm/cura.js +3 -3
- package/dist/esm/{index-92c824be.js → index-9af0cdbd.js} +10 -2
- package/dist/esm/index-9af0cdbd.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm-es5/cura-accordion_12.entry.js +2 -0
- package/dist/esm-es5/cura-accordion_12.entry.js.map +1 -0
- package/dist/esm-es5/cura.js +1 -1
- package/dist/esm-es5/cura.js.map +1 -1
- package/dist/esm-es5/{index-92c824be.js → index-9af0cdbd.js} +2 -2
- package/dist/esm-es5/index-9af0cdbd.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +39 -0
- package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +154 -0
- package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +29 -0
- package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +87 -35
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +171 -0
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +171 -0
- package/dist/types/components/cura-icon/cura-icon.stories.d.ts +65 -0
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +43 -0
- package/dist/types/components/text/cura-display/cura-display.stories.d.ts +76 -0
- package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +90 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +74 -0
- package/dist/types/components.d.ts +114 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/cura-button_10.cjs.entry.js.map +0 -1
- package/dist/cjs/index-0e874533.js.map +0 -1
- package/dist/cura/p-19176c44.system.js +0 -2
- package/dist/cura/p-19176c44.system.js.map +0 -1
- package/dist/cura/p-a84ae34f.system.js.map +0 -1
- package/dist/cura/p-b7e3230a.entry.js +0 -2
- package/dist/cura/p-b7e3230a.entry.js.map +0 -1
- package/dist/cura/p-cbc91ac5.js +0 -3
- package/dist/cura/p-e45582d9.system.entry.js +0 -2
- package/dist/cura/p-e45582d9.system.entry.js.map +0 -1
- package/dist/esm/cura-button_10.entry.js.map +0 -1
- package/dist/esm/index-92c824be.js.map +0 -1
- package/dist/esm-es5/cura-button_10.entry.js +0 -2
- package/dist/esm-es5/cura-button_10.entry.js.map +0 -1
- package/dist/esm-es5/index-92c824be.js.map +0 -1
- /package/dist/collection/stories/{Button.stories.js → Button.st.js} +0 -0
- /package/dist/collection/stories/{Header.stories.js → Header.st.js} +0 -0
- /package/dist/collection/stories/{Page.stories.js → Page.st.js} +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
render: ({ label, ...args }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
label: any;
|
|
7
|
+
}) => string;
|
|
8
|
+
argTypes: {
|
|
9
|
+
disabled: {
|
|
10
|
+
control: string;
|
|
11
|
+
description: string;
|
|
12
|
+
table: {
|
|
13
|
+
category: string;
|
|
14
|
+
defaultValue: {
|
|
15
|
+
summary: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
control: {
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
options: string[];
|
|
24
|
+
description: string;
|
|
25
|
+
table: {
|
|
26
|
+
category: string;
|
|
27
|
+
defaultValue: {
|
|
28
|
+
summary: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
color: {
|
|
33
|
+
control: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
options: string[];
|
|
37
|
+
description: string;
|
|
38
|
+
table: {
|
|
39
|
+
category: string;
|
|
40
|
+
defaultValue: {
|
|
41
|
+
summary: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
name: {
|
|
46
|
+
control: {
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
options: string[];
|
|
50
|
+
description: string;
|
|
51
|
+
table: {
|
|
52
|
+
category: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export default _default;
|
|
58
|
+
export declare const Icon: {
|
|
59
|
+
args: {
|
|
60
|
+
name: string;
|
|
61
|
+
size: string;
|
|
62
|
+
color: string;
|
|
63
|
+
disabled: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
render: ({ label, ...args }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
label: any;
|
|
7
|
+
}) => string;
|
|
8
|
+
argTypes: {
|
|
9
|
+
size: {
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
options: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
table: {
|
|
16
|
+
category: string;
|
|
17
|
+
defaultValue: {
|
|
18
|
+
summary: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
color: {
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
options: string[];
|
|
27
|
+
description: string;
|
|
28
|
+
table: {
|
|
29
|
+
category: string;
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
38
|
+
export declare const LoaderCircle: {
|
|
39
|
+
args: {
|
|
40
|
+
size: string;
|
|
41
|
+
color: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
render: ({ label, ...args }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
label: any;
|
|
7
|
+
}) => string;
|
|
8
|
+
argTypes: {
|
|
9
|
+
label: {
|
|
10
|
+
control: string;
|
|
11
|
+
description: string;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
inverted: {
|
|
15
|
+
control: string;
|
|
16
|
+
description: string;
|
|
17
|
+
table: {
|
|
18
|
+
category: string;
|
|
19
|
+
defaultValue: {
|
|
20
|
+
summary: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
options: string[];
|
|
29
|
+
description: string;
|
|
30
|
+
table: {
|
|
31
|
+
category: string;
|
|
32
|
+
defaultValue: {
|
|
33
|
+
summary: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
spotColor: {
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
options: string[];
|
|
42
|
+
description: string;
|
|
43
|
+
table: {
|
|
44
|
+
category: string;
|
|
45
|
+
defaultValue: {
|
|
46
|
+
summary: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
level: {
|
|
51
|
+
control: {
|
|
52
|
+
type: string;
|
|
53
|
+
min: number;
|
|
54
|
+
max: number;
|
|
55
|
+
step: number;
|
|
56
|
+
};
|
|
57
|
+
description: string;
|
|
58
|
+
table: {
|
|
59
|
+
category: string;
|
|
60
|
+
defaultValue: {
|
|
61
|
+
summary: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export default _default;
|
|
68
|
+
export declare const Display: {
|
|
69
|
+
args: {
|
|
70
|
+
label: string;
|
|
71
|
+
size: string;
|
|
72
|
+
level: number;
|
|
73
|
+
spotColor: string;
|
|
74
|
+
inverted: boolean;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
render: ({ label, ...args }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
label: any;
|
|
7
|
+
}) => string;
|
|
8
|
+
argTypes: {
|
|
9
|
+
label: {
|
|
10
|
+
control: string;
|
|
11
|
+
description: string;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
inverted: {
|
|
15
|
+
control: string;
|
|
16
|
+
description: string;
|
|
17
|
+
table: {
|
|
18
|
+
category: string;
|
|
19
|
+
defaultValue: {
|
|
20
|
+
summary: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
options: string[];
|
|
29
|
+
description: string;
|
|
30
|
+
table: {
|
|
31
|
+
category: string;
|
|
32
|
+
defaultValue: {
|
|
33
|
+
summary: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
weight: {
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
options: string[];
|
|
42
|
+
description: string;
|
|
43
|
+
table: {
|
|
44
|
+
category: string;
|
|
45
|
+
defaultValue: {
|
|
46
|
+
summary: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
spotColor: {
|
|
51
|
+
control: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
options: string[];
|
|
55
|
+
description: string;
|
|
56
|
+
table: {
|
|
57
|
+
category: string;
|
|
58
|
+
defaultValue: {
|
|
59
|
+
summary: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
level: {
|
|
64
|
+
control: {
|
|
65
|
+
type: string;
|
|
66
|
+
min: number;
|
|
67
|
+
max: number;
|
|
68
|
+
step: number;
|
|
69
|
+
};
|
|
70
|
+
description: string;
|
|
71
|
+
table: {
|
|
72
|
+
category: string;
|
|
73
|
+
defaultValue: {
|
|
74
|
+
summary: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export default _default;
|
|
81
|
+
export declare const Heading: {
|
|
82
|
+
args: {
|
|
83
|
+
label: string;
|
|
84
|
+
size: string;
|
|
85
|
+
weight: string;
|
|
86
|
+
level: number;
|
|
87
|
+
spotColor: string;
|
|
88
|
+
inverted: boolean;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
render: ({ label, ...args }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
label: any;
|
|
7
|
+
}) => string;
|
|
8
|
+
argTypes: {
|
|
9
|
+
label: {
|
|
10
|
+
control: string;
|
|
11
|
+
description: string;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
inverted: {
|
|
15
|
+
control: string;
|
|
16
|
+
description: string;
|
|
17
|
+
table: {
|
|
18
|
+
category: string;
|
|
19
|
+
defaultValue: {
|
|
20
|
+
summary: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
options: string[];
|
|
29
|
+
description: string;
|
|
30
|
+
table: {
|
|
31
|
+
category: string;
|
|
32
|
+
defaultValue: {
|
|
33
|
+
summary: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
spotColor: {
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
options: string[];
|
|
42
|
+
description: string;
|
|
43
|
+
table: {
|
|
44
|
+
category: string;
|
|
45
|
+
defaultValue: {
|
|
46
|
+
summary: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
color: {
|
|
51
|
+
control: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
options: string[];
|
|
55
|
+
description: string;
|
|
56
|
+
table: {
|
|
57
|
+
category: string;
|
|
58
|
+
defaultValue: {
|
|
59
|
+
summary: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export default _default;
|
|
66
|
+
export declare const Paragraph: {
|
|
67
|
+
args: {
|
|
68
|
+
label: string;
|
|
69
|
+
size: string;
|
|
70
|
+
spotColor: string;
|
|
71
|
+
inverted: boolean;
|
|
72
|
+
color: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -6,6 +6,54 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
export namespace Components {
|
|
9
|
+
interface CuraAccordion {
|
|
10
|
+
"activeColor": string;
|
|
11
|
+
/**
|
|
12
|
+
* Accordion behavior when item is clicked (The default will close all items except the current one)
|
|
13
|
+
*/
|
|
14
|
+
"behavior": 'default' | 'keep-open';
|
|
15
|
+
"closeIcon": string;
|
|
16
|
+
/**
|
|
17
|
+
* Color scheme base color
|
|
18
|
+
*/
|
|
19
|
+
"color": string;
|
|
20
|
+
/**
|
|
21
|
+
* Set the color mode to dark or light
|
|
22
|
+
*/
|
|
23
|
+
"colorMode": 'dark' | 'light';
|
|
24
|
+
"iconActiveColor": string;
|
|
25
|
+
/**
|
|
26
|
+
* Color scheme base color (By default, the icon will use the same color of 'color' and 'activeColor')
|
|
27
|
+
*/
|
|
28
|
+
"iconColor": string;
|
|
29
|
+
/**
|
|
30
|
+
* Accordion items icons
|
|
31
|
+
*/
|
|
32
|
+
"iconSize": number;
|
|
33
|
+
"openIcon": string;
|
|
34
|
+
}
|
|
35
|
+
interface CuraAccordionItem {
|
|
36
|
+
"closeIcon": string;
|
|
37
|
+
/**
|
|
38
|
+
* Set the color mode to dark or light
|
|
39
|
+
*/
|
|
40
|
+
"colorMode": 'dark' | 'light';
|
|
41
|
+
"iconActiveColor": string;
|
|
42
|
+
/**
|
|
43
|
+
* Color scheme base color (By default, the icon will use the same color of 'color' and 'activeColor')
|
|
44
|
+
*/
|
|
45
|
+
"iconColor": string;
|
|
46
|
+
/**
|
|
47
|
+
* Accordion items icons
|
|
48
|
+
*/
|
|
49
|
+
"iconSize": number;
|
|
50
|
+
/**
|
|
51
|
+
* Text label for accordion item
|
|
52
|
+
*/
|
|
53
|
+
"label": string;
|
|
54
|
+
"openIcon": string;
|
|
55
|
+
"opened": boolean;
|
|
56
|
+
}
|
|
9
57
|
interface CuraButton {
|
|
10
58
|
/**
|
|
11
59
|
* Color base from color scheme. Default: accent.
|
|
@@ -238,6 +286,18 @@ export namespace Components {
|
|
|
238
286
|
}
|
|
239
287
|
}
|
|
240
288
|
declare global {
|
|
289
|
+
interface HTMLCuraAccordionElement extends Components.CuraAccordion, HTMLStencilElement {
|
|
290
|
+
}
|
|
291
|
+
var HTMLCuraAccordionElement: {
|
|
292
|
+
prototype: HTMLCuraAccordionElement;
|
|
293
|
+
new (): HTMLCuraAccordionElement;
|
|
294
|
+
};
|
|
295
|
+
interface HTMLCuraAccordionItemElement extends Components.CuraAccordionItem, HTMLStencilElement {
|
|
296
|
+
}
|
|
297
|
+
var HTMLCuraAccordionItemElement: {
|
|
298
|
+
prototype: HTMLCuraAccordionItemElement;
|
|
299
|
+
new (): HTMLCuraAccordionItemElement;
|
|
300
|
+
};
|
|
241
301
|
interface HTMLCuraButtonElement extends Components.CuraButton, HTMLStencilElement {
|
|
242
302
|
}
|
|
243
303
|
var HTMLCuraButtonElement: {
|
|
@@ -299,6 +359,8 @@ declare global {
|
|
|
299
359
|
new (): HTMLCuraParagraphElement;
|
|
300
360
|
};
|
|
301
361
|
interface HTMLElementTagNameMap {
|
|
362
|
+
"cura-accordion": HTMLCuraAccordionElement;
|
|
363
|
+
"cura-accordion-item": HTMLCuraAccordionItemElement;
|
|
302
364
|
"cura-button": HTMLCuraButtonElement;
|
|
303
365
|
"cura-button-outline": HTMLCuraButtonOutlineElement;
|
|
304
366
|
"cura-button-transparent": HTMLCuraButtonTransparentElement;
|
|
@@ -312,6 +374,54 @@ declare global {
|
|
|
312
374
|
}
|
|
313
375
|
}
|
|
314
376
|
declare namespace LocalJSX {
|
|
377
|
+
interface CuraAccordion {
|
|
378
|
+
"activeColor"?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Accordion behavior when item is clicked (The default will close all items except the current one)
|
|
381
|
+
*/
|
|
382
|
+
"behavior"?: 'default' | 'keep-open';
|
|
383
|
+
"closeIcon"?: string;
|
|
384
|
+
/**
|
|
385
|
+
* Color scheme base color
|
|
386
|
+
*/
|
|
387
|
+
"color"?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Set the color mode to dark or light
|
|
390
|
+
*/
|
|
391
|
+
"colorMode"?: 'dark' | 'light';
|
|
392
|
+
"iconActiveColor"?: string;
|
|
393
|
+
/**
|
|
394
|
+
* Color scheme base color (By default, the icon will use the same color of 'color' and 'activeColor')
|
|
395
|
+
*/
|
|
396
|
+
"iconColor"?: string;
|
|
397
|
+
/**
|
|
398
|
+
* Accordion items icons
|
|
399
|
+
*/
|
|
400
|
+
"iconSize"?: number;
|
|
401
|
+
"openIcon"?: string;
|
|
402
|
+
}
|
|
403
|
+
interface CuraAccordionItem {
|
|
404
|
+
"closeIcon"?: string;
|
|
405
|
+
/**
|
|
406
|
+
* Set the color mode to dark or light
|
|
407
|
+
*/
|
|
408
|
+
"colorMode"?: 'dark' | 'light';
|
|
409
|
+
"iconActiveColor"?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Color scheme base color (By default, the icon will use the same color of 'color' and 'activeColor')
|
|
412
|
+
*/
|
|
413
|
+
"iconColor"?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Accordion items icons
|
|
416
|
+
*/
|
|
417
|
+
"iconSize"?: number;
|
|
418
|
+
/**
|
|
419
|
+
* Text label for accordion item
|
|
420
|
+
*/
|
|
421
|
+
"label"?: string;
|
|
422
|
+
"openIcon"?: string;
|
|
423
|
+
"opened"?: boolean;
|
|
424
|
+
}
|
|
315
425
|
interface CuraButton {
|
|
316
426
|
/**
|
|
317
427
|
* Color base from color scheme. Default: accent.
|
|
@@ -543,6 +653,8 @@ declare namespace LocalJSX {
|
|
|
543
653
|
"spotColor"?: string;
|
|
544
654
|
}
|
|
545
655
|
interface IntrinsicElements {
|
|
656
|
+
"cura-accordion": CuraAccordion;
|
|
657
|
+
"cura-accordion-item": CuraAccordionItem;
|
|
546
658
|
"cura-button": CuraButton;
|
|
547
659
|
"cura-button-outline": CuraButtonOutline;
|
|
548
660
|
"cura-button-transparent": CuraButtonTransparent;
|
|
@@ -559,6 +671,8 @@ export { LocalJSX as JSX };
|
|
|
559
671
|
declare module "@stencil/core" {
|
|
560
672
|
export namespace JSX {
|
|
561
673
|
interface IntrinsicElements {
|
|
674
|
+
"cura-accordion": LocalJSX.CuraAccordion & JSXBase.HTMLAttributes<HTMLCuraAccordionElement>;
|
|
675
|
+
"cura-accordion-item": LocalJSX.CuraAccordionItem & JSXBase.HTMLAttributes<HTMLCuraAccordionItemElement>;
|
|
562
676
|
"cura-button": LocalJSX.CuraButton & JSXBase.HTMLAttributes<HTMLCuraButtonElement>;
|
|
563
677
|
"cura-button-outline": LocalJSX.CuraButtonOutline & JSXBase.HTMLAttributes<HTMLCuraButtonOutlineElement>;
|
|
564
678
|
"cura-button-transparent": LocalJSX.CuraButtonTransparent & JSXBase.HTMLAttributes<HTMLCuraButtonTransparentElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rededor/cura",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Cura Design System",
|
|
5
5
|
"author": "Rede D`Or São Luiz",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"storybook": "^7.6.7",
|
|
51
51
|
"svgo": "^3.0.1"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "f74d338157a6cbafdd8583875f78f7cb79925678"
|
|
54
54
|
}
|