@sula-tech/webcomponents 0.4.1 → 0.6.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/dist/cjs/{index-BtkenDV1.js → index-Bbryl0vg.js} +30 -4
- package/dist/cjs/index-Bbryl0vg.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{sula-avatar_14.cjs.entry.js → sula-avatar_18.cjs.entry.js} +386 -48
- package/dist/cjs/sula-avatar_18.cjs.entry.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/sula-button/sula-button.css +1 -1
- package/dist/collection/components/sula-button/sula-button.js +66 -6
- package/dist/collection/components/sula-button/sula-button.js.map +1 -1
- package/dist/collection/components/sula-button/sula-button.stories.js +260 -97
- package/dist/collection/components/sula-button/sula-button.stories.js.map +1 -1
- package/dist/collection/components/sula-checkbox/sula-checkbox.js +3 -3
- package/dist/collection/components/sula-chip/sula-chip.css +1 -1
- package/dist/collection/components/sula-chip/sula-chip.js +3 -3
- package/dist/collection/components/sula-dropdown/sula-dropdown.css +1 -0
- package/dist/collection/components/sula-dropdown/sula-dropdown.js +275 -0
- package/dist/collection/components/sula-dropdown/sula-dropdown.js.map +1 -0
- package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js +155 -0
- package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js.map +1 -0
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-icon/sula-icon.js +1 -1
- package/dist/collection/components/sula-loader/sula-loader.css +1 -1
- package/dist/collection/components/sula-loader/sula-loader.js +1 -1
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +29 -1
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js.map +1 -1
- package/dist/collection/components/sula-progress-bar/model/sula-progress-bar.model.js +15 -0
- package/dist/collection/components/sula-progress-bar/model/sula-progress-bar.model.js.map +1 -0
- package/dist/collection/components/sula-progress-bar/sula-progress-bar.css +1 -0
- package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +213 -0
- package/dist/collection/components/sula-progress-bar/sula-progress-bar.js.map +1 -0
- package/dist/collection/components/sula-progress-bar/sula-progress.stories.js +172 -0
- package/dist/collection/components/sula-progress-bar/sula-progress.stories.js.map +1 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
- package/dist/collection/components/sula-search-bar/model/sula-search.bar-model.js +6 -0
- package/dist/collection/components/sula-search-bar/model/sula-search.bar-model.js.map +1 -0
- package/dist/collection/components/sula-search-bar/sula-search-bar.css +1 -0
- package/dist/collection/components/sula-search-bar/sula-search-bar.js +240 -0
- package/dist/collection/components/sula-search-bar/sula-search-bar.js.map +1 -0
- package/dist/collection/components/sula-search-bar/sula-search-bar.stories.js +119 -0
- package/dist/collection/components/sula-search-bar/sula-search-bar.stories.js.map +1 -0
- package/dist/collection/components/sula-switch/sula-switch.js +4 -4
- package/dist/collection/components/sula-tag/sula-tag.js +3 -3
- package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
- package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
- package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
- package/dist/collection/components/sula-timeline-list/model/sula-timeline-list.model.js +7 -0
- package/dist/collection/components/sula-timeline-list/model/sula-timeline-list.model.js.map +1 -0
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.css +1 -0
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +123 -0
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.js.map +1 -0
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.stories.js +217 -0
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.stories.js.map +1 -0
- package/dist/components/index.js +20 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-DJGFqp8r.js → p-BNtk_d_S.js} +14 -5
- package/dist/components/p-BNtk_d_S.js.map +1 -0
- package/dist/components/p-CYBZuKr6.js +27129 -0
- package/dist/components/p-CYBZuKr6.js.map +1 -0
- package/dist/components/{p-CEU3PNQs.js → p-DULnDBOY.js} +4 -4
- package/dist/components/{p-CEU3PNQs.js.map → p-DULnDBOY.js.map} +1 -1
- package/dist/components/sula-avatar.js +1 -1
- package/dist/components/sula-badge.js +1 -1
- package/dist/components/sula-button.js +38 -9
- package/dist/components/sula-button.js.map +1 -1
- package/dist/components/sula-checkbox.js +4 -4
- package/dist/components/sula-chip.js +6 -6
- package/dist/components/sula-chip.js.map +1 -1
- package/dist/components/sula-dropdown.d.ts +11 -0
- package/dist/components/sula-dropdown.js +137 -0
- package/dist/components/sula-dropdown.js.map +1 -0
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-loader.js +1 -27124
- package/dist/components/sula-loader.js.map +1 -1
- package/dist/components/sula-menu-select-list.js +1 -1
- package/dist/components/sula-progress-bar.d.ts +11 -0
- package/dist/components/sula-progress-bar.js +122 -0
- package/dist/components/sula-progress-bar.js.map +1 -0
- package/dist/components/sula-radio-button.js +2 -2
- package/dist/components/sula-search-bar.d.ts +11 -0
- package/dist/components/sula-search-bar.js +104 -0
- package/dist/components/sula-search-bar.js.map +1 -0
- package/dist/components/sula-switch.js +4 -4
- package/dist/components/sula-tag.js +4 -4
- package/dist/components/sula-textarea.js +6 -6
- package/dist/components/sula-textfield.js +3 -3
- package/dist/components/sula-tiles.js +2 -2
- package/dist/components/sula-timeline-list.d.ts +11 -0
- package/dist/components/sula-timeline-list.js +101 -0
- package/dist/components/sula-timeline-list.js.map +1 -0
- package/dist/esm/{index-Yyeke16a.js → index-or7qTZgT.js} +30 -4
- package/dist/esm/index-or7qTZgT.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{sula-avatar_14.entry.js → sula-avatar_18.entry.js} +383 -49
- package/dist/esm/sula-avatar_18.entry.js.map +1 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/types/components/sula-button/sula-button.d.ts +11 -1
- package/dist/types/components/sula-button/sula-button.stories.d.ts +124 -33
- package/dist/types/components/sula-dropdown/sula-dropdown.d.ts +49 -0
- package/dist/types/components/sula-dropdown/sula-dropdown.stories.d.ts +68 -0
- package/dist/types/components/sula-menu-select-list/sula-menu-select-list.d.ts +4 -0
- package/dist/types/components/sula-progress-bar/model/sula-progress-bar.model.d.ts +12 -0
- package/dist/types/components/sula-progress-bar/sula-progress-bar.d.ts +33 -0
- package/dist/types/components/sula-progress-bar/sula-progress.stories.d.ts +84 -0
- package/dist/types/components/sula-search-bar/model/sula-search.bar-model.d.ts +4 -0
- package/dist/types/components/sula-search-bar/sula-search-bar.d.ts +50 -0
- package/dist/types/components/sula-search-bar/sula-search-bar.stories.d.ts +84 -0
- package/dist/types/components/sula-timeline-list/model/sula-timeline-list.model.d.ts +16 -0
- package/dist/types/components/sula-timeline-list/sula-timeline-list.d.ts +17 -0
- package/dist/types/components/sula-timeline-list/sula-timeline-list.stories.d.ts +47 -0
- package/dist/types/components.d.ts +315 -0
- package/dist/webcomponents/{p-5ba79323.entry.js → p-2a133394.entry.js} +3656 -3167
- package/dist/webcomponents/p-2a133394.entry.js.map +1 -0
- package/dist/webcomponents/{p-Yyeke16a.js → p-or7qTZgT.js} +229 -204
- package/dist/webcomponents/p-or7qTZgT.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +50 -18
- package/package.json +1 -1
- package/readme.md +79 -19
- package/dist/cjs/index-BtkenDV1.js.map +0 -1
- package/dist/cjs/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.cjs.js.map +0 -1
- package/dist/cjs/sula-avatar_14.cjs.entry.js.map +0 -1
- package/dist/components/p-DJGFqp8r.js.map +0 -1
- package/dist/esm/index-Yyeke16a.js.map +0 -1
- package/dist/esm/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.js.map +0 -1
- package/dist/esm/sula-avatar_14.entry.js.map +0 -1
- package/dist/webcomponents/p-5ba79323.entry.js.map +0 -1
- package/dist/webcomponents/p-Yyeke16a.js.map +0 -1
- package/dist/webcomponents/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.esm.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-or7qTZgT.js';
|
|
2
|
+
export { s as setNonce } from './index-or7qTZgT.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Browser v4.35.1 | MIT Licensed | https://stenciljs.com
|
|
@@ -16,7 +16,7 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["sula-
|
|
19
|
+
return bootstrapLazy([["sula-avatar_18",[[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"items":[1040],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"items":[1040],"value":[1040],"selectedItem":[32],"showItems":[32],"isFocused":[32]},[[4,"click","handleDocumentClick"]],{"value":["handleValueChange"]}],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]]],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"isFocus":[32]}],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32]},[[4,"click","handleClick"]]],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=webcomponents.js.map
|
|
22
22
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { SulaButtonAppearance, SulaButtonSize, SulaButtonStatus, SulaButtonType } from './model/sula-button.model';
|
|
3
|
+
import { SulaLoaderSize } from '../sula-loader/model/sula-loader.model';
|
|
3
4
|
export declare class SulaButton {
|
|
4
5
|
/**
|
|
5
6
|
* Button text when is text type
|
|
@@ -9,6 +10,14 @@ export declare class SulaButton {
|
|
|
9
10
|
* Button icon when is Icon type
|
|
10
11
|
*/
|
|
11
12
|
icon: string;
|
|
13
|
+
/**
|
|
14
|
+
* Button left icon
|
|
15
|
+
*/
|
|
16
|
+
leftIcon: string;
|
|
17
|
+
/**
|
|
18
|
+
* Button right icon
|
|
19
|
+
*/
|
|
20
|
+
rightIcon: string;
|
|
12
21
|
/**
|
|
13
22
|
* Button appearance
|
|
14
23
|
*/
|
|
@@ -45,11 +54,12 @@ export declare class SulaButton {
|
|
|
45
54
|
private getTextButtonStyles;
|
|
46
55
|
private getTextTypeSizeClass;
|
|
47
56
|
private getButtonSizeByTypeClass;
|
|
48
|
-
private
|
|
57
|
+
private getArrowIconContainerClass;
|
|
49
58
|
private getBaseButtonClass;
|
|
50
59
|
private renderIconContent;
|
|
51
60
|
private renderTextContent;
|
|
52
61
|
private renderArrowIcon;
|
|
62
|
+
getLoadingSize(): SulaLoaderSize.Small | SulaLoaderSize.Medium;
|
|
53
63
|
handleClick: () => void;
|
|
54
64
|
render(): any;
|
|
55
65
|
}
|
|
@@ -5,18 +5,50 @@ declare const _default: {
|
|
|
5
5
|
argTypes: {
|
|
6
6
|
text: {
|
|
7
7
|
control: string;
|
|
8
|
-
defaultValue: string;
|
|
9
8
|
description: string;
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
table: {
|
|
10
|
+
type: {
|
|
11
|
+
summary: string;
|
|
12
|
+
};
|
|
13
|
+
defaultValue: {
|
|
14
|
+
summary: string;
|
|
15
|
+
};
|
|
12
16
|
};
|
|
13
17
|
};
|
|
14
18
|
icon: {
|
|
15
19
|
control: string;
|
|
16
|
-
defaultValue: string;
|
|
17
20
|
description: string;
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
table: {
|
|
22
|
+
type: {
|
|
23
|
+
summary: string;
|
|
24
|
+
};
|
|
25
|
+
defaultValue: {
|
|
26
|
+
summary: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
leftIcon: {
|
|
31
|
+
control: string;
|
|
32
|
+
description: string;
|
|
33
|
+
table: {
|
|
34
|
+
type: {
|
|
35
|
+
summary: string;
|
|
36
|
+
};
|
|
37
|
+
defaultValue: {
|
|
38
|
+
summary: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
rightIcon: {
|
|
43
|
+
control: string;
|
|
44
|
+
description: string;
|
|
45
|
+
table: {
|
|
46
|
+
type: {
|
|
47
|
+
summary: string;
|
|
48
|
+
};
|
|
49
|
+
defaultValue: {
|
|
50
|
+
summary: string;
|
|
51
|
+
};
|
|
20
52
|
};
|
|
21
53
|
};
|
|
22
54
|
appearance: {
|
|
@@ -24,10 +56,14 @@ declare const _default: {
|
|
|
24
56
|
type: string;
|
|
25
57
|
};
|
|
26
58
|
options: SulaButtonAppearance[];
|
|
27
|
-
defaultValue: SulaButtonAppearance;
|
|
28
59
|
description: string;
|
|
29
|
-
|
|
30
|
-
|
|
60
|
+
table: {
|
|
61
|
+
type: {
|
|
62
|
+
summary: string;
|
|
63
|
+
};
|
|
64
|
+
defaultValue: {
|
|
65
|
+
summary: string;
|
|
66
|
+
};
|
|
31
67
|
};
|
|
32
68
|
};
|
|
33
69
|
type: {
|
|
@@ -35,10 +71,14 @@ declare const _default: {
|
|
|
35
71
|
type: string;
|
|
36
72
|
};
|
|
37
73
|
options: SulaButtonType[];
|
|
38
|
-
defaultValue: SulaButtonType;
|
|
39
74
|
description: string;
|
|
40
|
-
|
|
41
|
-
|
|
75
|
+
table: {
|
|
76
|
+
type: {
|
|
77
|
+
summary: string;
|
|
78
|
+
};
|
|
79
|
+
defaultValue: {
|
|
80
|
+
summary: string;
|
|
81
|
+
};
|
|
42
82
|
};
|
|
43
83
|
};
|
|
44
84
|
size: {
|
|
@@ -46,10 +86,14 @@ declare const _default: {
|
|
|
46
86
|
type: string;
|
|
47
87
|
};
|
|
48
88
|
options: SulaButtonSize[];
|
|
49
|
-
defaultValue: SulaButtonSize;
|
|
50
89
|
description: string;
|
|
51
|
-
|
|
52
|
-
|
|
90
|
+
table: {
|
|
91
|
+
type: {
|
|
92
|
+
summary: string;
|
|
93
|
+
};
|
|
94
|
+
defaultValue: {
|
|
95
|
+
summary: string;
|
|
96
|
+
};
|
|
53
97
|
};
|
|
54
98
|
};
|
|
55
99
|
status: {
|
|
@@ -57,31 +101,48 @@ declare const _default: {
|
|
|
57
101
|
type: string;
|
|
58
102
|
};
|
|
59
103
|
options: SulaButtonStatus[];
|
|
60
|
-
defaultValue: SulaButtonStatus;
|
|
61
104
|
description: string;
|
|
62
|
-
|
|
63
|
-
|
|
105
|
+
table: {
|
|
106
|
+
type: {
|
|
107
|
+
summary: string;
|
|
108
|
+
};
|
|
109
|
+
defaultValue: {
|
|
110
|
+
summary: string;
|
|
111
|
+
};
|
|
64
112
|
};
|
|
65
113
|
};
|
|
66
114
|
loading: {
|
|
67
115
|
control: string;
|
|
68
|
-
defaultValue: boolean;
|
|
69
116
|
description: string;
|
|
70
|
-
|
|
71
|
-
|
|
117
|
+
table: {
|
|
118
|
+
type: {
|
|
119
|
+
summary: string;
|
|
120
|
+
};
|
|
121
|
+
defaultValue: {
|
|
122
|
+
summary: string;
|
|
123
|
+
};
|
|
72
124
|
};
|
|
73
125
|
};
|
|
74
126
|
buttonDisabled: {
|
|
75
127
|
control: string;
|
|
76
|
-
defaultValue: boolean;
|
|
77
128
|
description: string;
|
|
78
|
-
|
|
79
|
-
|
|
129
|
+
table: {
|
|
130
|
+
type: {
|
|
131
|
+
summary: string;
|
|
132
|
+
};
|
|
133
|
+
defaultValue: {
|
|
134
|
+
summary: string;
|
|
135
|
+
};
|
|
80
136
|
};
|
|
81
137
|
};
|
|
82
138
|
buttonClicked: {
|
|
83
139
|
action: string;
|
|
84
140
|
description: string;
|
|
141
|
+
table: {
|
|
142
|
+
type: {
|
|
143
|
+
summary: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
85
146
|
};
|
|
86
147
|
};
|
|
87
148
|
parameters: {
|
|
@@ -93,13 +154,43 @@ declare const _default: {
|
|
|
93
154
|
};
|
|
94
155
|
};
|
|
95
156
|
export default _default;
|
|
96
|
-
export declare const
|
|
97
|
-
export declare const
|
|
157
|
+
export declare const Playground: any;
|
|
158
|
+
export declare const DefaultAppearance: any;
|
|
159
|
+
export declare const SecondaryAppearance: any;
|
|
98
160
|
export declare const TextAppearance: any;
|
|
99
|
-
export declare const
|
|
100
|
-
export declare const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
161
|
+
export declare const IconButton: any;
|
|
162
|
+
export declare const Sizes: {
|
|
163
|
+
(): HTMLDivElement;
|
|
164
|
+
parameters: {
|
|
165
|
+
docs: {
|
|
166
|
+
description: {
|
|
167
|
+
story: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export declare const StatusVariations: {
|
|
173
|
+
(): HTMLDivElement;
|
|
174
|
+
parameters: {
|
|
175
|
+
docs: {
|
|
176
|
+
description: {
|
|
177
|
+
story: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
export declare const WithLeftIcon: any;
|
|
183
|
+
export declare const WithRightIcon: any;
|
|
184
|
+
export declare const WithBothIcons: any;
|
|
185
|
+
export declare const LoadingState: any;
|
|
186
|
+
export declare const DisabledState: any;
|
|
187
|
+
export declare const AllVariations: {
|
|
188
|
+
(): HTMLDivElement;
|
|
189
|
+
parameters: {
|
|
190
|
+
docs: {
|
|
191
|
+
description: {
|
|
192
|
+
story: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { SulaMenuListItem, SulaMenuSelectListCustomEvent } from '../../components';
|
|
3
|
+
export declare class SulaDropdown {
|
|
4
|
+
/**
|
|
5
|
+
* Dropdown label
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
/**
|
|
9
|
+
* Dropdown is disabled
|
|
10
|
+
*/
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Items for list
|
|
14
|
+
*/
|
|
15
|
+
items: SulaMenuListItem[];
|
|
16
|
+
/**
|
|
17
|
+
* Value for dropdown
|
|
18
|
+
*/
|
|
19
|
+
value?: SulaMenuListItem;
|
|
20
|
+
/**
|
|
21
|
+
* Event emitted when dropdown is clicked
|
|
22
|
+
*/
|
|
23
|
+
dropdownClicked: EventEmitter<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Event emitted when dropdown is focused
|
|
26
|
+
*/
|
|
27
|
+
dropdownFocused: EventEmitter<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Event emitted when dropdown is focused out
|
|
30
|
+
*/
|
|
31
|
+
dropdownFocusedOut: EventEmitter<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Event emitted when item is selected
|
|
34
|
+
*/
|
|
35
|
+
menuItemSelected: EventEmitter<SulaMenuListItem>;
|
|
36
|
+
selectedItem?: SulaMenuListItem;
|
|
37
|
+
showItems: boolean;
|
|
38
|
+
isFocused: boolean;
|
|
39
|
+
node?: HTMLElement;
|
|
40
|
+
handleValueChange(): void;
|
|
41
|
+
handleDocumentClick(event: Event): void;
|
|
42
|
+
componentWillLoad(): void;
|
|
43
|
+
handleClick: () => void;
|
|
44
|
+
handleItemSelected: (item: SulaMenuSelectListCustomEvent<SulaMenuListItem>) => void;
|
|
45
|
+
getIconClass(): "text-text-primary" | "text-icon-disabled";
|
|
46
|
+
handleFocus: () => void;
|
|
47
|
+
handleBlur: () => void;
|
|
48
|
+
render(): any;
|
|
49
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
argTypes: {
|
|
5
|
+
label: {
|
|
6
|
+
control: string;
|
|
7
|
+
defaultValue: string;
|
|
8
|
+
description: string;
|
|
9
|
+
type: {
|
|
10
|
+
required: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
control: string;
|
|
15
|
+
defaultValue: boolean;
|
|
16
|
+
description: string;
|
|
17
|
+
type: {
|
|
18
|
+
required: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
items: {
|
|
22
|
+
control: string;
|
|
23
|
+
defaultValue: any[];
|
|
24
|
+
description: string;
|
|
25
|
+
type: {
|
|
26
|
+
required: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
value: {
|
|
30
|
+
control: string;
|
|
31
|
+
defaultValue: any;
|
|
32
|
+
description: string;
|
|
33
|
+
type: {
|
|
34
|
+
required: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
dropdownClicked: {
|
|
38
|
+
action: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
dropdownFocused: {
|
|
42
|
+
action: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
dropdownFocusedOut: {
|
|
46
|
+
action: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
menuItemSelected: {
|
|
50
|
+
action: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
parameters: {
|
|
55
|
+
docs: {
|
|
56
|
+
description: {
|
|
57
|
+
component: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export default _default;
|
|
63
|
+
export declare const Default: any;
|
|
64
|
+
export declare const WithSelectedValue: any;
|
|
65
|
+
export declare const Disabled: any;
|
|
66
|
+
export declare const DisabledWithValue: any;
|
|
67
|
+
export declare const EmptyItems: any;
|
|
68
|
+
export declare const LongItemsList: any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum SulaProgressBarAppearance {
|
|
2
|
+
Primary = "primary",
|
|
3
|
+
Secondary = "secondary",
|
|
4
|
+
OnPrimary = "on-primary",
|
|
5
|
+
Success = "success",
|
|
6
|
+
Error = "error"
|
|
7
|
+
}
|
|
8
|
+
export declare enum SulaProgressBarState {
|
|
9
|
+
Default = "default",
|
|
10
|
+
Success = "success",
|
|
11
|
+
Error = "error"
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SulaProgressBarAppearance, SulaProgressBarState } from './model/sula-progress-bar.model';
|
|
2
|
+
export declare class SulaProgressBar {
|
|
3
|
+
/**
|
|
4
|
+
* The style of the progress bar.
|
|
5
|
+
*/
|
|
6
|
+
appearance: SulaProgressBarAppearance;
|
|
7
|
+
/**
|
|
8
|
+
* The state of the progress bar.
|
|
9
|
+
*/
|
|
10
|
+
state: SulaProgressBarState;
|
|
11
|
+
/**
|
|
12
|
+
* The label displayed at the top of the progress bar.
|
|
13
|
+
*/
|
|
14
|
+
topLabel: string;
|
|
15
|
+
/**
|
|
16
|
+
* The label displayed at the bottom of the progress bar.
|
|
17
|
+
*/
|
|
18
|
+
bottomLabel: string;
|
|
19
|
+
/**
|
|
20
|
+
* The progress value of the progress bar.
|
|
21
|
+
*/
|
|
22
|
+
progress: number;
|
|
23
|
+
/**
|
|
24
|
+
* Show progress
|
|
25
|
+
*/
|
|
26
|
+
showProgress: boolean;
|
|
27
|
+
validateProgress(newValue: number): void;
|
|
28
|
+
componentWillLoad(): void;
|
|
29
|
+
handleProgress(value: number): void;
|
|
30
|
+
getProgressBarStyle(): string;
|
|
31
|
+
getProgressBarStateElement(): any;
|
|
32
|
+
render(): any;
|
|
33
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { SulaProgressBarAppearance, SulaProgressBarState } from './model/sula-progress-bar.model';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
argTypes: {
|
|
6
|
+
appearance: {
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
options: SulaProgressBarAppearance[];
|
|
11
|
+
defaultValue: SulaProgressBarAppearance;
|
|
12
|
+
description: string;
|
|
13
|
+
type: {
|
|
14
|
+
required: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
state: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
options: SulaProgressBarState[];
|
|
22
|
+
defaultValue: SulaProgressBarState;
|
|
23
|
+
description: string;
|
|
24
|
+
type: {
|
|
25
|
+
required: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
topLabel: {
|
|
29
|
+
control: string;
|
|
30
|
+
defaultValue: string;
|
|
31
|
+
description: string;
|
|
32
|
+
type: {
|
|
33
|
+
required: boolean;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
bottomLabel: {
|
|
37
|
+
control: string;
|
|
38
|
+
defaultValue: string;
|
|
39
|
+
description: string;
|
|
40
|
+
type: {
|
|
41
|
+
required: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
progress: {
|
|
45
|
+
control: {
|
|
46
|
+
type: string;
|
|
47
|
+
min: number;
|
|
48
|
+
max: number;
|
|
49
|
+
step: number;
|
|
50
|
+
};
|
|
51
|
+
defaultValue: number;
|
|
52
|
+
description: string;
|
|
53
|
+
type: {
|
|
54
|
+
required: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
showProgress: {
|
|
58
|
+
control: string;
|
|
59
|
+
defaultValue: boolean;
|
|
60
|
+
description: string;
|
|
61
|
+
type: {
|
|
62
|
+
required: boolean;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
parameters: {
|
|
67
|
+
docs: {
|
|
68
|
+
description: {
|
|
69
|
+
component: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export default _default;
|
|
75
|
+
export declare const Default: any;
|
|
76
|
+
export declare const Secondary: any;
|
|
77
|
+
export declare const OnPrimary: any;
|
|
78
|
+
export declare const Success: any;
|
|
79
|
+
export declare const Error: any;
|
|
80
|
+
export declare const WithoutProgress: any;
|
|
81
|
+
export declare const MinimalProgress: any;
|
|
82
|
+
export declare const AlmostComplete: any;
|
|
83
|
+
export declare const NoLabels: any;
|
|
84
|
+
export declare const SuccessAppearanceDefault: any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { SulaSearchBarStyle } from './model/sula-search.bar-model';
|
|
3
|
+
export declare class SulaSearchBar {
|
|
4
|
+
/**
|
|
5
|
+
* Value for the search bar.
|
|
6
|
+
*/
|
|
7
|
+
value?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Search bar style
|
|
10
|
+
*/
|
|
11
|
+
searchBarStyle: SulaSearchBarStyle;
|
|
12
|
+
/**
|
|
13
|
+
* Search bar placeholder
|
|
14
|
+
*/
|
|
15
|
+
placeholder: string;
|
|
16
|
+
/**
|
|
17
|
+
* Search bar left icon
|
|
18
|
+
*/
|
|
19
|
+
leftIcon: string;
|
|
20
|
+
/**
|
|
21
|
+
* Search bar right icon
|
|
22
|
+
*/
|
|
23
|
+
rightIcon: string;
|
|
24
|
+
/**
|
|
25
|
+
* Event emitted when search bar value changes.
|
|
26
|
+
*/
|
|
27
|
+
valueChanged: EventEmitter<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Event emitted when search bar is focused.
|
|
30
|
+
*/
|
|
31
|
+
focusedOn: EventEmitter<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Event emitted when search bar is focused out.
|
|
34
|
+
*/
|
|
35
|
+
focusedOut: EventEmitter<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Event emitted when right icon is clicked
|
|
38
|
+
*/
|
|
39
|
+
rightIconClicked: EventEmitter<void>;
|
|
40
|
+
isFocused: boolean;
|
|
41
|
+
textValue: string;
|
|
42
|
+
inputElement: HTMLInputElement;
|
|
43
|
+
componentWillLoad(): void;
|
|
44
|
+
getStyleClass(): string;
|
|
45
|
+
handleInputFocus: () => void;
|
|
46
|
+
handleInputBlur: () => void;
|
|
47
|
+
handleRightIconClick: (event: MouseEvent) => void;
|
|
48
|
+
handleValueChanges: (event: InputEvent) => void;
|
|
49
|
+
render(): any;
|
|
50
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { SulaSearchBarStyle } from './model/sula-search.bar-model';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
argTypes: {
|
|
6
|
+
value: {
|
|
7
|
+
control: string;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
description: string;
|
|
10
|
+
type: {
|
|
11
|
+
required: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
searchBarStyle: {
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
options: SulaSearchBarStyle[];
|
|
19
|
+
defaultValue: SulaSearchBarStyle;
|
|
20
|
+
description: string;
|
|
21
|
+
type: {
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
placeholder: {
|
|
26
|
+
control: string;
|
|
27
|
+
defaultValue: string;
|
|
28
|
+
description: string;
|
|
29
|
+
type: {
|
|
30
|
+
required: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
leftIcon: {
|
|
34
|
+
control: string;
|
|
35
|
+
defaultValue: string;
|
|
36
|
+
description: string;
|
|
37
|
+
type: {
|
|
38
|
+
required: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
rightIcon: {
|
|
42
|
+
control: string;
|
|
43
|
+
defaultValue: string;
|
|
44
|
+
description: string;
|
|
45
|
+
type: {
|
|
46
|
+
required: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
valueChanged: {
|
|
50
|
+
action: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
focusedOn: {
|
|
54
|
+
action: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
focusedOut: {
|
|
58
|
+
action: string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
rightIconClicked: {
|
|
62
|
+
action: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
parameters: {
|
|
67
|
+
docs: {
|
|
68
|
+
description: {
|
|
69
|
+
component: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export default _default;
|
|
75
|
+
export declare const Default: any;
|
|
76
|
+
export declare const WithValue: any;
|
|
77
|
+
export declare const WithRightIcon: any;
|
|
78
|
+
export declare const HighlightStyle: any;
|
|
79
|
+
export declare const WithoutLeftIcon: any;
|
|
80
|
+
export declare const WithBothIcons: any;
|
|
81
|
+
export declare const CustomPlaceholder: any;
|
|
82
|
+
export declare const HighlightWithIcons: any;
|
|
83
|
+
export declare const CustomIcons: any;
|
|
84
|
+
export declare const WithValueAndRightIcon: any;
|