@sula-tech/webcomponents 0.5.0 → 0.7.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.
Files changed (93) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{sula-avatar_16.cjs.entry.js → sula-avatar_18.cjs.entry.js} +224 -50
  3. package/dist/cjs/sula-avatar_18.cjs.entry.js.map +1 -0
  4. package/dist/cjs/webcomponents.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +2 -0
  6. package/dist/collection/components/sula-button/sula-button.css +1 -1
  7. package/dist/collection/components/sula-button/sula-button.js +90 -6
  8. package/dist/collection/components/sula-button/sula-button.js.map +1 -1
  9. package/dist/collection/components/sula-button/sula-button.stories.js +283 -96
  10. package/dist/collection/components/sula-button/sula-button.stories.js.map +1 -1
  11. package/dist/collection/components/sula-checkbox/sula-checkbox.js +3 -3
  12. package/dist/collection/components/sula-chip/sula-chip.js +3 -3
  13. package/dist/collection/components/sula-dropdown/sula-dropdown.js +4 -4
  14. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  15. package/dist/collection/components/sula-icon/sula-icon.js +1 -1
  16. package/dist/collection/components/sula-loader/sula-loader.css +1 -1
  17. package/dist/collection/components/sula-loader/sula-loader.js +1 -1
  18. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +1 -1
  19. package/dist/collection/components/sula-progress-bar/model/sula-progress-bar.model.js +15 -0
  20. package/dist/collection/components/sula-progress-bar/model/sula-progress-bar.model.js.map +1 -0
  21. package/dist/collection/components/sula-progress-bar/sula-progress-bar.css +1 -0
  22. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +213 -0
  23. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js.map +1 -0
  24. package/dist/collection/components/sula-progress-bar/sula-progress.stories.js +172 -0
  25. package/dist/collection/components/sula-progress-bar/sula-progress.stories.js.map +1 -0
  26. package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
  27. package/dist/collection/components/sula-search-bar/model/sula-search.bar-model.js +6 -0
  28. package/dist/collection/components/sula-search-bar/model/sula-search.bar-model.js.map +1 -0
  29. package/dist/collection/components/sula-search-bar/sula-search-bar.css +1 -0
  30. package/dist/collection/components/sula-search-bar/sula-search-bar.js +240 -0
  31. package/dist/collection/components/sula-search-bar/sula-search-bar.js.map +1 -0
  32. package/dist/collection/components/sula-search-bar/sula-search-bar.stories.js +119 -0
  33. package/dist/collection/components/sula-search-bar/sula-search-bar.stories.js.map +1 -0
  34. package/dist/collection/components/sula-switch/sula-switch.js +4 -4
  35. package/dist/collection/components/sula-tag/sula-tag.js +3 -3
  36. package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
  37. package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
  38. package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
  39. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
  40. package/dist/components/{p-CYhL1fU6.js → p-5IbiLIg7.js} +4 -4
  41. package/dist/components/{p-CYhL1fU6.js.map → p-5IbiLIg7.js.map} +1 -1
  42. package/dist/components/{p-CjYWDIHR.js → p-BNtk_d_S.js} +3 -3
  43. package/dist/components/{p-CjYWDIHR.js.map → p-BNtk_d_S.js.map} +1 -1
  44. package/dist/components/p-D4nvaSNA.js +27129 -0
  45. package/dist/components/p-D4nvaSNA.js.map +1 -0
  46. package/dist/components/sula-avatar.js +1 -1
  47. package/dist/components/sula-badge.js +1 -1
  48. package/dist/components/sula-button.js +44 -10
  49. package/dist/components/sula-button.js.map +1 -1
  50. package/dist/components/sula-checkbox.js +4 -4
  51. package/dist/components/sula-chip.js +5 -5
  52. package/dist/components/sula-dropdown.js +6 -6
  53. package/dist/components/sula-icon.js +1 -1
  54. package/dist/components/sula-loader.js +1 -27124
  55. package/dist/components/sula-loader.js.map +1 -1
  56. package/dist/components/sula-menu-select-list.js +1 -1
  57. package/dist/components/sula-progress-bar.d.ts +11 -0
  58. package/dist/components/sula-progress-bar.js +122 -0
  59. package/dist/components/sula-progress-bar.js.map +1 -0
  60. package/dist/components/sula-radio-button.js +2 -2
  61. package/dist/components/sula-search-bar.d.ts +11 -0
  62. package/dist/components/sula-search-bar.js +104 -0
  63. package/dist/components/sula-search-bar.js.map +1 -0
  64. package/dist/components/sula-switch.js +4 -4
  65. package/dist/components/sula-tag.js +4 -4
  66. package/dist/components/sula-textarea.js +6 -6
  67. package/dist/components/sula-textfield.js +3 -3
  68. package/dist/components/sula-tiles.js +2 -2
  69. package/dist/components/sula-timeline-list.js +2 -2
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/esm/{sula-avatar_16.entry.js → sula-avatar_18.entry.js} +223 -51
  72. package/dist/esm/sula-avatar_18.entry.js.map +1 -0
  73. package/dist/esm/webcomponents.js +1 -1
  74. package/dist/types/components/sula-button/sula-button.d.ts +15 -1
  75. package/dist/types/components/sula-button/sula-button.stories.d.ts +137 -33
  76. package/dist/types/components/sula-progress-bar/model/sula-progress-bar.model.d.ts +12 -0
  77. package/dist/types/components/sula-progress-bar/sula-progress-bar.d.ts +33 -0
  78. package/dist/types/components/sula-progress-bar/sula-progress.stories.d.ts +84 -0
  79. package/dist/types/components/sula-search-bar/model/sula-search.bar-model.d.ts +4 -0
  80. package/dist/types/components/sula-search-bar/sula-search-bar.d.ts +50 -0
  81. package/dist/types/components/sula-search-bar/sula-search-bar.stories.d.ts +84 -0
  82. package/dist/types/components.d.ts +186 -0
  83. package/dist/webcomponents/{p-51f9d6a5.entry.js → p-da741505.entry.js} +2792 -2538
  84. package/dist/webcomponents/p-da741505.entry.js.map +1 -0
  85. package/dist/webcomponents/webcomponents.esm.js +34 -14
  86. package/package.json +1 -1
  87. package/readme.md +79 -19
  88. package/dist/cjs/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-dropdown.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.sula-timeline-list.entry.cjs.js.map +0 -1
  89. package/dist/cjs/sula-avatar_16.cjs.entry.js.map +0 -1
  90. package/dist/esm/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-dropdown.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.sula-timeline-list.entry.js.map +0 -1
  91. package/dist/esm/sula-avatar_16.entry.js.map +0 -1
  92. package/dist/webcomponents/p-51f9d6a5.entry.js.map +0 -1
  93. package/dist/webcomponents/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-dropdown.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.sula-timeline-list.entry.esm.js.map +0 -1
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["sula-avatar_16",[[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-button",{"text":[1025],"icon":[1025],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[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-loader",{"size":[1],"animationInstance":[32]}],[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-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
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"],"fullWidth":[1028,"full-width"]}],[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
  */
@@ -33,6 +42,10 @@ export declare class SulaButton {
33
42
  * Is button disabled
34
43
  */
35
44
  buttonDisabled: boolean;
45
+ /**
46
+ * If true, button will take the full width of its container
47
+ */
48
+ fullWidth: boolean;
36
49
  /**
37
50
  * Event emitted when button is clicked.
38
51
  * @note If button is disabled event won't be emitted
@@ -45,11 +58,12 @@ export declare class SulaButton {
45
58
  private getTextButtonStyles;
46
59
  private getTextTypeSizeClass;
47
60
  private getButtonSizeByTypeClass;
48
- private getIconContainerClass;
61
+ private getArrowIconContainerClass;
49
62
  private getBaseButtonClass;
50
63
  private renderIconContent;
51
64
  private renderTextContent;
52
65
  private renderArrowIcon;
66
+ getLoadingSize(): SulaLoaderSize.Small | SulaLoaderSize.Medium;
53
67
  handleClick: () => void;
54
68
  render(): any;
55
69
  }
@@ -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
- type: {
11
- required: boolean;
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
- type: {
19
- required: boolean;
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
- type: {
30
- required: boolean;
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
- type: {
41
- required: boolean;
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
- type: {
52
- required: boolean;
90
+ table: {
91
+ type: {
92
+ summary: string;
93
+ };
94
+ defaultValue: {
95
+ summary: string;
96
+ };
53
97
  };
54
98
  };
55
99
  status: {
@@ -57,31 +101,60 @@ declare const _default: {
57
101
  type: string;
58
102
  };
59
103
  options: SulaButtonStatus[];
60
- defaultValue: SulaButtonStatus;
61
104
  description: string;
62
- type: {
63
- required: boolean;
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
- type: {
71
- required: boolean;
117
+ table: {
118
+ type: {
119
+ summary: string;
120
+ };
121
+ defaultValue: {
122
+ summary: string;
123
+ };
124
+ };
125
+ };
126
+ fullWidth: {
127
+ control: string;
128
+ description: string;
129
+ table: {
130
+ type: {
131
+ summary: string;
132
+ };
133
+ defaultValue: {
134
+ summary: string;
135
+ };
72
136
  };
73
137
  };
74
138
  buttonDisabled: {
75
139
  control: string;
76
- defaultValue: boolean;
77
140
  description: string;
78
- type: {
79
- required: boolean;
141
+ table: {
142
+ type: {
143
+ summary: string;
144
+ };
145
+ defaultValue: {
146
+ summary: string;
147
+ };
80
148
  };
81
149
  };
82
150
  buttonClicked: {
83
151
  action: string;
84
152
  description: string;
153
+ table: {
154
+ type: {
155
+ summary: string;
156
+ };
157
+ };
85
158
  };
86
159
  };
87
160
  parameters: {
@@ -93,13 +166,44 @@ declare const _default: {
93
166
  };
94
167
  };
95
168
  export default _default;
96
- export declare const Default: any;
97
- export declare const IconButton: any;
169
+ export declare const Playground: any;
170
+ export declare const FullWidth: any;
171
+ export declare const DefaultAppearance: any;
172
+ export declare const SecondaryAppearance: any;
98
173
  export declare const TextAppearance: any;
99
- export declare const SecondaryButton: any;
100
- export declare const LargeButton: any;
101
- export declare const DangerButton: any;
102
- export declare const NegativeButton: any;
103
- export declare const DisabledButton: any;
104
- export declare const LoadingButton: any;
105
- export declare const IconAndTextButton: any;
174
+ export declare const IconButton: any;
175
+ export declare const Sizes: {
176
+ (): HTMLDivElement;
177
+ parameters: {
178
+ docs: {
179
+ description: {
180
+ story: string;
181
+ };
182
+ };
183
+ };
184
+ };
185
+ export declare const StatusVariations: {
186
+ (): HTMLDivElement;
187
+ parameters: {
188
+ docs: {
189
+ description: {
190
+ story: string;
191
+ };
192
+ };
193
+ };
194
+ };
195
+ export declare const WithLeftIcon: any;
196
+ export declare const WithRightIcon: any;
197
+ export declare const WithBothIcons: any;
198
+ export declare const LoadingState: any;
199
+ export declare const DisabledState: any;
200
+ export declare const AllVariations: {
201
+ (): HTMLDivElement;
202
+ parameters: {
203
+ docs: {
204
+ description: {
205
+ story: string;
206
+ };
207
+ };
208
+ };
209
+ };
@@ -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,4 @@
1
+ export declare enum SulaSearchBarStyle {
2
+ Default = "default",
3
+ Highlight = "highlight"
4
+ }
@@ -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;