@rededor/cura 0.4.4 → 0.4.6
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 +942 -0
- package/dist/assets/icons/iconset-default.svg +1 -1
- package/dist/cjs/{app-globals-858f45bf.js → app-globals-11fb6b23.js} +4 -4
- package/dist/cjs/{app-globals-858f45bf.js.map → app-globals-11fb6b23.js.map} +1 -1
- package/dist/cjs/cura-button_10.cjs.entry.js +19 -10
- package/dist/cjs/cura-button_10.cjs.entry.js.map +1 -1
- package/dist/cjs/cura.cjs.js +3 -3
- package/dist/cjs/{index-29633529.js → index-0e874533.js} +3 -247
- package/dist/cjs/index-0e874533.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/api/theme-presets/static.js +3 -3
- package/dist/collection/api/theme-presets/static.js.map +1 -1
- 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 +942 -0
- package/dist/collection/assets/icons/iconset-default.svg +1 -1
- package/dist/collection/assets-raw/icons/default/airdrop.svg +6 -0
- package/dist/collection/assets-raw/icons/default/doc.svg +5 -2
- package/dist/collection/assets-raw/icons/default/maintenance.svg +4 -0
- package/dist/collection/assets-raw/icons/default/profile.svg +2 -2
- package/dist/collection/assets-raw/icons/default/profileCircle.svg +4 -0
- package/dist/collection/assets-raw/icons/default/scheduleCheck.svg +8 -0
- package/dist/collection/assets-raw/icons/default/telegram.svg +3 -0
- package/dist/collection/assets-raw/icons/default/twitter.svg +3 -1
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +122 -0
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -0
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +31 -20
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +43 -9
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
- package/dist/collection/stories/Button.js +21 -0
- package/dist/collection/stories/Button.stories.js +50 -0
- package/dist/collection/stories/Header.js +47 -0
- package/dist/collection/stories/Header.stories.js +28 -0
- package/dist/collection/stories/Page.js +94 -0
- package/dist/collection/stories/Page.stories.js +27 -0
- package/dist/collection/stories/assets/accessibility.svg +5 -0
- package/dist/collection/stories/assets/discord.svg +15 -0
- package/dist/collection/stories/assets/github.svg +3 -0
- package/dist/collection/stories/assets/tutorials.svg +12 -0
- package/dist/collection/stories/assets/youtube.svg +4 -0
- package/dist/components/cura-icons-view.js +1 -1
- package/dist/components/cura-icons-view.js.map +1 -1
- package/dist/components/cura-paragraph.js +20 -9
- package/dist/components/cura-paragraph.js.map +1 -1
- package/dist/components/index.js +3 -3
- 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-aa9ad33b.system.js → p-0bb24006.system.js} +2 -2
- package/dist/cura/{p-aa9ad33b.system.js.map → p-0bb24006.system.js.map} +1 -1
- package/dist/cura/{p-deafb1b5.js → p-0e6b48da.js} +2 -2
- package/dist/cura/{p-deafb1b5.js.map → p-0e6b48da.js.map} +1 -1
- package/dist/cura/{p-07674ea7.system.js → p-19176c44.system.js} +2 -2
- package/dist/cura/{p-07674ea7.system.js.map → p-19176c44.system.js.map} +1 -1
- package/dist/cura/p-a84ae34f.system.js +3 -0
- package/dist/cura/p-a84ae34f.system.js.map +1 -0
- package/dist/cura/{p-452d4f72.entry.js → p-b7e3230a.entry.js} +2 -2
- package/dist/cura/{p-452d4f72.entry.js.map → p-b7e3230a.entry.js.map} +1 -1
- package/dist/cura/p-cbc91ac5.js +3 -0
- package/dist/cura/p-cbc91ac5.js.map +1 -0
- package/dist/cura/{p-d76958f4.system.entry.js → p-e45582d9.system.entry.js} +2 -2
- package/dist/cura/{p-d76958f4.system.entry.js.map → p-e45582d9.system.entry.js.map} +1 -1
- package/dist/esm/{app-globals-66a65edd.js → app-globals-5009a324.js} +4 -4
- package/dist/esm/{app-globals-66a65edd.js.map → app-globals-5009a324.js.map} +1 -1
- package/dist/esm/cura-button_10.entry.js +19 -10
- package/dist/esm/cura-button_10.entry.js.map +1 -1
- package/dist/esm/cura.js +4 -4
- package/dist/esm/{index-e11775ce.js → index-92c824be.js} +3 -247
- package/dist/esm/index-92c824be.js.map +1 -0
- package/dist/esm/loader.js +4 -4
- package/dist/esm-es5/{app-globals-66a65edd.js → app-globals-5009a324.js} +2 -2
- package/dist/esm-es5/{app-globals-66a65edd.js.map → app-globals-5009a324.js.map} +1 -1
- package/dist/esm-es5/cura-button_10.entry.js +1 -1
- package/dist/esm-es5/cura-button_10.entry.js.map +1 -1
- package/dist/esm-es5/cura.js +1 -1
- package/dist/esm-es5/cura.js.map +1 -1
- package/dist/esm-es5/index-92c824be.js +3 -0
- package/dist/esm-es5/index-92c824be.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/buttons/cura-button/cura-button.stories.d.ts +119 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +7 -2
- package/dist/types/components.d.ts +10 -2
- package/package.json +15 -3
- package/dist/cjs/index-29633529.js.map +0 -1
- package/dist/collection/assets-raw/icons/default/profile2.svg +0 -4
- package/dist/cura/p-c30e14d5.system.js +0 -3
- package/dist/cura/p-c30e14d5.system.js.map +0 -1
- package/dist/cura/p-d5990392.js +0 -3
- package/dist/cura/p-d5990392.js.map +0 -1
- package/dist/esm/index-e11775ce.js.map +0 -1
- package/dist/esm-es5/index-e11775ce.js +0 -3
- package/dist/esm-es5/index-e11775ce.js.map +0 -1
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
control: string;
|
|
14
|
+
};
|
|
15
|
+
isLoading: {
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
control: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
options: string[];
|
|
23
|
+
};
|
|
24
|
+
color: {
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
options: string[];
|
|
29
|
+
};
|
|
30
|
+
fontColor: {
|
|
31
|
+
control: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
options: string[];
|
|
35
|
+
};
|
|
36
|
+
textAlign: {
|
|
37
|
+
control: {
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
options: string[];
|
|
41
|
+
};
|
|
42
|
+
fullWidth: {
|
|
43
|
+
control: string;
|
|
44
|
+
};
|
|
45
|
+
iconName: {
|
|
46
|
+
control: {
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
options: string[];
|
|
50
|
+
};
|
|
51
|
+
iconPosition: {
|
|
52
|
+
control: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
options: string[];
|
|
56
|
+
};
|
|
57
|
+
iconOnly: {
|
|
58
|
+
control: string;
|
|
59
|
+
};
|
|
60
|
+
href: {
|
|
61
|
+
control: string;
|
|
62
|
+
};
|
|
63
|
+
target: {
|
|
64
|
+
control: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export default _default;
|
|
69
|
+
export declare const Primary: {
|
|
70
|
+
args: {
|
|
71
|
+
label: string;
|
|
72
|
+
size: string;
|
|
73
|
+
color: string;
|
|
74
|
+
fontColor: string;
|
|
75
|
+
textAlign: string;
|
|
76
|
+
fullWidth: boolean;
|
|
77
|
+
iconName: string;
|
|
78
|
+
iconPosition: string;
|
|
79
|
+
iconOnly: boolean;
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
isLoading: boolean;
|
|
82
|
+
href: string;
|
|
83
|
+
target: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export declare const Secondary: {
|
|
87
|
+
args: {
|
|
88
|
+
label: string;
|
|
89
|
+
size: string;
|
|
90
|
+
color: string;
|
|
91
|
+
fontColor: string;
|
|
92
|
+
textAlign: string;
|
|
93
|
+
fullWidth: boolean;
|
|
94
|
+
iconName: string;
|
|
95
|
+
iconPosition: string;
|
|
96
|
+
iconOnly: boolean;
|
|
97
|
+
disabled: boolean;
|
|
98
|
+
isLoading: boolean;
|
|
99
|
+
href: string;
|
|
100
|
+
target: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export declare const Accent: {
|
|
104
|
+
args: {
|
|
105
|
+
label: string;
|
|
106
|
+
size: string;
|
|
107
|
+
color: string;
|
|
108
|
+
fontColor: string;
|
|
109
|
+
textAlign: string;
|
|
110
|
+
fullWidth: boolean;
|
|
111
|
+
iconName: string;
|
|
112
|
+
iconPosition: string;
|
|
113
|
+
iconOnly: boolean;
|
|
114
|
+
disabled: boolean;
|
|
115
|
+
isLoading: boolean;
|
|
116
|
+
href: string;
|
|
117
|
+
target: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
@@ -3,7 +3,7 @@ export declare class CuraParagraph {
|
|
|
3
3
|
* Set size of body text.
|
|
4
4
|
* Values: regular (default) | large | small | caption.
|
|
5
5
|
*/
|
|
6
|
-
size:
|
|
6
|
+
size: 'regular' | 'large' | 'small' | 'caption';
|
|
7
7
|
/**
|
|
8
8
|
* Apply light color to text in dark background.
|
|
9
9
|
* Values: boolean.
|
|
@@ -14,6 +14,11 @@ export declare class CuraParagraph {
|
|
|
14
14
|
* Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
|
|
15
15
|
*/
|
|
16
16
|
spotColor: string;
|
|
17
|
+
/**
|
|
18
|
+
* Color base from color scheme. Default: theme font color.
|
|
19
|
+
*/
|
|
20
|
+
color: any;
|
|
21
|
+
handleChangeColor(): void;
|
|
17
22
|
/**
|
|
18
23
|
* Host element <cura-paragraph>
|
|
19
24
|
*/
|
|
@@ -22,7 +27,7 @@ export declare class CuraParagraph {
|
|
|
22
27
|
* Internal Props
|
|
23
28
|
*/
|
|
24
29
|
weights: any;
|
|
25
|
-
styles:
|
|
30
|
+
styles: {};
|
|
26
31
|
connectedCallback(): void;
|
|
27
32
|
setsizeClass(): {};
|
|
28
33
|
setFontProperties(): void;
|
|
@@ -219,6 +219,10 @@ export namespace Components {
|
|
|
219
219
|
"contentwidth": 'default' | 'centered';
|
|
220
220
|
}
|
|
221
221
|
interface CuraParagraph {
|
|
222
|
+
/**
|
|
223
|
+
* Color base from color scheme. Default: theme font color.
|
|
224
|
+
*/
|
|
225
|
+
"color": any;
|
|
222
226
|
/**
|
|
223
227
|
* Apply light color to text in dark background. Values: boolean.
|
|
224
228
|
*/
|
|
@@ -226,7 +230,7 @@ export namespace Components {
|
|
|
226
230
|
/**
|
|
227
231
|
* Set size of body text. Values: regular (default) | large | small | caption.
|
|
228
232
|
*/
|
|
229
|
-
"size":
|
|
233
|
+
"size": 'regular' | 'large' | 'small' | 'caption';
|
|
230
234
|
/**
|
|
231
235
|
* Apply base system color to elements like <a> and <abbr>. Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
|
|
232
236
|
*/
|
|
@@ -521,6 +525,10 @@ declare namespace LocalJSX {
|
|
|
521
525
|
"contentwidth"?: 'default' | 'centered';
|
|
522
526
|
}
|
|
523
527
|
interface CuraParagraph {
|
|
528
|
+
/**
|
|
529
|
+
* Color base from color scheme. Default: theme font color.
|
|
530
|
+
*/
|
|
531
|
+
"color"?: any;
|
|
524
532
|
/**
|
|
525
533
|
* Apply light color to text in dark background. Values: boolean.
|
|
526
534
|
*/
|
|
@@ -528,7 +536,7 @@ declare namespace LocalJSX {
|
|
|
528
536
|
/**
|
|
529
537
|
* Set size of body text. Values: regular (default) | large | small | caption.
|
|
530
538
|
*/
|
|
531
|
-
"size"?:
|
|
539
|
+
"size"?: 'regular' | 'large' | 'small' | 'caption';
|
|
532
540
|
/**
|
|
533
541
|
* Apply base system color to elements like <a> and <abbr>. Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.
|
|
534
542
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rededor/cura",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "Cura Design System",
|
|
5
5
|
"author": "Rede D`Or São Luiz",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
"test": "stencil test --spec --e2e",
|
|
23
23
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
24
24
|
"generate": "stencil generate",
|
|
25
|
-
"build:iconset": "node ./node/iconset-builder.js"
|
|
25
|
+
"build:iconset": "node ./node/iconset-builder.js",
|
|
26
|
+
"storybook": "npm run build && storybook dev -p 6006",
|
|
27
|
+
"build-storybook": "storybook build"
|
|
26
28
|
},
|
|
27
29
|
"dependencies": {
|
|
28
30
|
"@stencil/core": "^3.3.0"
|
|
@@ -32,11 +34,21 @@
|
|
|
32
34
|
"@stencil/react-output-target": "^0.4.0",
|
|
33
35
|
"@stencil/sass": "^2.0.3",
|
|
34
36
|
"@stencil/vue-output-target": "^0.7.0",
|
|
37
|
+
"@storybook/addon-essentials": "^7.6.7",
|
|
38
|
+
"@storybook/addon-interactions": "^7.6.7",
|
|
39
|
+
"@storybook/addon-links": "^7.6.7",
|
|
40
|
+
"@storybook/blocks": "^7.6.7",
|
|
41
|
+
"@storybook/html": "^7.6.7",
|
|
42
|
+
"@storybook/html-webpack5": "^7.6.7",
|
|
43
|
+
"@storybook/test": "^7.6.7",
|
|
35
44
|
"@types/jest": "^27.0.3",
|
|
36
45
|
"jest": "^27.4.5",
|
|
37
46
|
"jest-cli": "^27.4.5",
|
|
38
47
|
"puppeteer": "^10.0.0",
|
|
48
|
+
"react": "^18.2.0",
|
|
49
|
+
"react-dom": "^18.2.0",
|
|
50
|
+
"storybook": "^7.6.7",
|
|
39
51
|
"svgo": "^3.0.1"
|
|
40
52
|
},
|
|
41
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "5ab15b8bc90c3e5520e070b527d31a3186149caf"
|
|
42
54
|
}
|