@sula-tech/webcomponents 0.3.1 → 0.4.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-87eec792.js → index-BtkenDV1.js} +205 -156
- package/dist/cjs/index-BtkenDV1.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -6
- package/dist/cjs/loader.cjs.js.map +1 -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 +1 -0
- package/dist/cjs/sula-avatar_14.cjs.entry.js +28270 -0
- package/dist/cjs/sula-avatar_14.cjs.entry.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +8 -8
- package/dist/cjs/webcomponents.cjs.js.map +1 -1
- package/dist/collection/assets/lottie/loader.json +1 -0
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/sula-avatar/sula-avatar.css +1 -1
- package/dist/collection/components/sula-avatar/sula-avatar.js +4 -4
- package/dist/collection/components/sula-avatar/sula-avatar.stories.js +7 -0
- package/dist/collection/components/sula-avatar/sula-avatar.stories.js.map +1 -1
- package/dist/collection/components/sula-badge/sula-badge.css +1 -1
- package/dist/collection/components/sula-badge/sula-badge.js +5 -5
- package/dist/collection/components/sula-badge/sula-badge.stories.js +7 -0
- package/dist/collection/components/sula-badge/sula-badge.stories.js.map +1 -1
- package/dist/collection/components/sula-button/sula-button.css +1 -1
- package/dist/collection/components/sula-button/sula-button.js +8 -8
- package/dist/collection/components/sula-button/sula-button.stories.js +7 -0
- package/dist/collection/components/sula-button/sula-button.stories.js.map +1 -1
- package/dist/collection/components/sula-checkbox/sula-checkbox.css +1 -1
- package/dist/collection/components/sula-checkbox/sula-checkbox.js +5 -5
- package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js +7 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js.map +1 -1
- package/dist/collection/components/sula-chip/model/sula-chip.model.js +6 -0
- package/dist/collection/components/sula-chip/model/sula-chip.model.js.map +1 -0
- package/dist/collection/components/sula-chip/sula-chip.css +1 -0
- package/dist/collection/components/sula-chip/sula-chip.js +243 -0
- package/dist/collection/components/sula-chip/sula-chip.js.map +1 -0
- package/dist/collection/components/sula-chip/sula-chip.stories.js +125 -0
- package/dist/collection/components/sula-chip/sula-chip.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 +3 -3
- package/dist/collection/components/sula-loader/model/sula-loader.model.js +7 -0
- package/dist/collection/components/sula-loader/model/sula-loader.model.js.map +1 -0
- package/dist/collection/components/sula-loader/sula-loader.css +1 -0
- package/dist/collection/components/sula-loader/sula-loader.js +102 -0
- package/dist/collection/components/sula-loader/sula-loader.js.map +1 -0
- package/dist/collection/components/sula-loader/sula-loader.stories.js +48 -0
- package/dist/collection/components/sula-loader/sula-loader.stories.js.map +1 -0
- package/dist/collection/components/sula-loader/test/__mocks__/lottie-web.js +10 -0
- package/dist/collection/components/sula-loader/test/__mocks__/lottie-web.js.map +1 -0
- package/dist/collection/components/sula-menu-select-list/model/sula-menu-select-list.model.js +2 -0
- package/dist/collection/components/sula-menu-select-list/model/sula-menu-select-list.model.js.map +1 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +81 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js.map +1 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.stories.js +91 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.stories.js.map +1 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.css +1 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.js +176 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.js.map +1 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.stories.js +123 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.stories.js.map +1 -0
- package/dist/collection/components/sula-switch/sula-switch.css +1 -1
- package/dist/collection/components/sula-switch/sula-switch.js +9 -9
- package/dist/collection/components/sula-switch/sula-switch.stories.js +7 -0
- package/dist/collection/components/sula-switch/sula-switch.stories.js.map +1 -1
- package/dist/collection/components/sula-tag/sula-tag.css +1 -1
- package/dist/collection/components/sula-tag/sula-tag.js +9 -9
- package/dist/collection/components/sula-tag/sula-tag.stories.js +7 -0
- package/dist/collection/components/sula-tag/sula-tag.stories.js.map +1 -1
- package/dist/collection/components/sula-textarea/sula-textarea.css +1 -1
- package/dist/collection/components/sula-textarea/sula-textarea.js +14 -14
- package/dist/collection/components/sula-textarea/sula-textarea.js.map +1 -1
- package/dist/collection/components/sula-textarea/sula-textarea.stories.js +7 -0
- package/dist/collection/components/sula-textarea/sula-textarea.stories.js.map +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.js +12 -12
- package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js +7 -0
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js.map +1 -1
- package/dist/collection/components/sula-tiles/model/sula-tiles.model.js +11 -0
- package/dist/collection/components/sula-tiles/model/sula-tiles.model.js.map +1 -0
- package/dist/collection/components/sula-tiles/sula-tiles.css +1 -0
- package/dist/collection/components/sula-tiles/sula-tiles.js +316 -0
- package/dist/collection/components/sula-tiles/sula-tiles.js.map +1 -0
- package/dist/collection/components/sula-tiles/sula-tiles.stories.js +420 -0
- package/dist/collection/components/sula-tiles/sula-tiles.stories.js.map +1 -0
- package/dist/components/index.js +1251 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-694eb028.js → p-CEU3PNQs.js} +6 -6
- package/dist/components/p-CEU3PNQs.js.map +1 -0
- package/dist/components/p-DJGFqp8r.js +44 -0
- package/dist/components/p-DJGFqp8r.js.map +1 -0
- package/dist/components/sula-avatar.js +5 -5
- package/dist/components/sula-avatar.js.map +1 -1
- package/dist/components/sula-badge.js +5 -5
- package/dist/components/sula-badge.js.map +1 -1
- package/dist/components/sula-button.js +6 -6
- package/dist/components/sula-button.js.map +1 -1
- package/dist/components/sula-checkbox.js +8 -8
- package/dist/components/sula-checkbox.js.map +1 -1
- package/dist/components/sula-chip.d.ts +11 -0
- package/dist/components/sula-chip.js +136 -0
- package/dist/components/sula-chip.js.map +1 -0
- package/dist/components/sula-icon.js +2 -1
- package/dist/components/sula-loader.d.ts +11 -0
- package/dist/components/sula-loader.js +27132 -0
- package/dist/components/sula-loader.js.map +1 -0
- package/dist/components/sula-menu-select-list.d.ts +11 -0
- package/dist/components/sula-menu-select-list.js +9 -0
- package/dist/components/sula-menu-select-list.js.map +1 -0
- package/dist/components/sula-radio-button.d.ts +11 -0
- package/dist/components/sula-radio-button.js +83 -0
- package/dist/components/sula-radio-button.js.map +1 -0
- package/dist/components/sula-switch.js +11 -11
- package/dist/components/sula-switch.js.map +1 -1
- package/dist/components/sula-tag.js +8 -8
- package/dist/components/sula-tag.js.map +1 -1
- package/dist/components/sula-textarea.js +13 -13
- package/dist/components/sula-textarea.js.map +1 -1
- package/dist/components/sula-textfield.js +11 -11
- package/dist/components/sula-textfield.js.map +1 -1
- package/dist/components/sula-tiles.d.ts +11 -0
- package/dist/components/sula-tiles.js +180 -0
- package/dist/components/sula-tiles.js.map +1 -0
- package/dist/esm/{index-aa1c5f36.js → index-Yyeke16a.js} +203 -135
- package/dist/esm/index-Yyeke16a.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/loader.js.map +1 -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 +1 -0
- package/dist/esm/sula-avatar_14.entry.js +28255 -0
- package/dist/esm/sula-avatar_14.entry.js.map +1 -0
- package/dist/esm/webcomponents.js +6 -5
- package/dist/esm/webcomponents.js.map +1 -1
- package/dist/types/components/sula-avatar/sula-avatar.stories.d.ts +7 -0
- package/dist/types/components/sula-badge/sula-badge.stories.d.ts +7 -0
- package/dist/types/components/sula-button/sula-button.stories.d.ts +7 -0
- package/dist/types/components/sula-checkbox/sula-checkbox.stories.d.ts +7 -0
- package/dist/types/components/sula-chip/model/sula-chip.model.d.ts +4 -0
- package/dist/types/components/sula-chip/sula-chip.d.ts +40 -0
- package/dist/types/components/sula-chip/sula-chip.stories.d.ts +64 -0
- package/dist/types/components/sula-loader/model/sula-loader.model.d.ts +5 -0
- package/dist/types/components/sula-loader/sula-loader.d.ts +19 -0
- package/dist/types/components/sula-loader/sula-loader.stories.d.ts +29 -0
- package/dist/types/components/sula-loader/test/__mocks__/lottie-web.d.ts +4 -0
- package/dist/types/components/sula-menu-select-list/model/sula-menu-select-list.model.d.ts +4 -0
- package/dist/types/components/sula-menu-select-list/sula-menu-select-list.d.ts +14 -0
- package/dist/types/components/sula-menu-select-list/sula-menu-select-list.stories.d.ts +32 -0
- package/dist/types/components/sula-radio-button/sula-radio-button.d.ts +32 -0
- package/dist/types/components/sula-radio-button/sula-radio-button.stories.d.ts +57 -0
- package/dist/types/components/sula-switch/sula-switch.stories.d.ts +7 -0
- package/dist/types/components/sula-tag/sula-tag.stories.d.ts +7 -0
- package/dist/types/components/sula-textarea/sula-textarea.stories.d.ts +7 -0
- package/dist/types/components/sula-textfield/sula-textfield.stories.d.ts +7 -0
- package/dist/types/components/sula-tiles/model/sula-tiles.model.d.ts +8 -0
- package/dist/types/components/sula-tiles/sula-tiles.d.ts +54 -0
- package/dist/types/components/sula-tiles/sula-tiles.stories.d.ts +99 -0
- package/dist/types/components.d.ts +383 -0
- package/dist/types/stencil-public-runtime.d.ts +23 -1
- package/dist/webcomponents/assets/lottie/loader.json +1 -0
- package/dist/webcomponents/index.esm.js +1 -0
- package/dist/webcomponents/index.esm.js.map +1 -1
- package/dist/webcomponents/loader.esm.js.map +1 -0
- package/dist/webcomponents/p-67f9fa90.entry.js +21628 -0
- package/dist/webcomponents/p-67f9fa90.entry.js.map +1 -0
- package/dist/webcomponents/p-Yyeke16a.js +1469 -0
- package/dist/webcomponents/p-Yyeke16a.js.map +1 -0
- 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 +1 -0
- package/dist/webcomponents/webcomponents.esm.js +33 -9
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/package.json +5 -2
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/index-87eec792.js.map +0 -1
- package/dist/cjs/sula-avatar_9.cjs.entry.js +0 -865
- package/dist/cjs/sula-avatar_9.cjs.entry.js.map +0 -1
- package/dist/components/p-694eb028.js.map +0 -1
- package/dist/components/p-881c6b35.js +0 -1198
- package/dist/components/p-881c6b35.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/index-aa1c5f36.js.map +0 -1
- package/dist/esm/sula-avatar_9.entry.js +0 -853
- package/dist/esm/sula-avatar_9.entry.js.map +0 -1
- package/dist/webcomponents/p-5a36af0f.js +0 -1492
- package/dist/webcomponents/p-5a36af0f.js.map +0 -1
- package/dist/webcomponents/p-cc81e2c5.entry.js +0 -1123
- package/dist/webcomponents/p-cc81e2c5.entry.js.map +0 -1
- package/dist/webcomponents/p-e1255160.js +0 -4
- package/dist/webcomponents/p-e1255160.js.map +0 -1
- package/loader/package.json +0 -11
|
@@ -9,18 +9,26 @@ import { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model
|
|
|
9
9
|
import { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
10
10
|
import { SulaButtonAppearance, SulaButtonSize, SulaButtonStatus, SulaButtonType } from "./components/sula-button/model/sula-button.model";
|
|
11
11
|
import { SulaCheckboxType } from "./components/sula-checkbox/model/sula-checkbox.model";
|
|
12
|
+
import { SulaChipAppearance } from "./components/sula-chip/model/sula-chip.model";
|
|
13
|
+
import { SulaMenuListItem } from "./components/sula-menu-select-list/model/sula-menu-select-list.model";
|
|
14
|
+
import { SulaLoaderSize } from "./components/sula-loader/model/sula-loader.model";
|
|
12
15
|
import { SulaSwitchType } from "./components/sula-switch/model/sula-switch.model";
|
|
13
16
|
import { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from "./components/sula-tag/model/sula-tag.model";
|
|
14
17
|
import { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textarea.model";
|
|
15
18
|
import { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
19
|
+
import { SulaTilesSize, SulaTilesType } from "./components/sula-tiles/model/sula-tiles.model";
|
|
16
20
|
export { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model";
|
|
17
21
|
export { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
18
22
|
export { SulaButtonAppearance, SulaButtonSize, SulaButtonStatus, SulaButtonType } from "./components/sula-button/model/sula-button.model";
|
|
19
23
|
export { SulaCheckboxType } from "./components/sula-checkbox/model/sula-checkbox.model";
|
|
24
|
+
export { SulaChipAppearance } from "./components/sula-chip/model/sula-chip.model";
|
|
25
|
+
export { SulaMenuListItem } from "./components/sula-menu-select-list/model/sula-menu-select-list.model";
|
|
26
|
+
export { SulaLoaderSize } from "./components/sula-loader/model/sula-loader.model";
|
|
20
27
|
export { SulaSwitchType } from "./components/sula-switch/model/sula-switch.model";
|
|
21
28
|
export { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from "./components/sula-tag/model/sula-tag.model";
|
|
22
29
|
export { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textarea.model";
|
|
23
30
|
export { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
31
|
+
export { SulaTilesSize, SulaTilesType } from "./components/sula-tiles/model/sula-tiles.model";
|
|
24
32
|
export namespace Components {
|
|
25
33
|
interface SulaAvatar {
|
|
26
34
|
/**
|
|
@@ -33,6 +41,7 @@ export namespace Components {
|
|
|
33
41
|
"imageUrl"?: string;
|
|
34
42
|
/**
|
|
35
43
|
* Avatar size
|
|
44
|
+
* @default SulaAvatarSize.Medium
|
|
36
45
|
*/
|
|
37
46
|
"size": SulaAvatarSize;
|
|
38
47
|
/**
|
|
@@ -43,32 +52,39 @@ export namespace Components {
|
|
|
43
52
|
interface SulaBadge {
|
|
44
53
|
/**
|
|
45
54
|
* Badge icon
|
|
55
|
+
* @default ''
|
|
46
56
|
*/
|
|
47
57
|
"icon": string;
|
|
48
58
|
/**
|
|
49
59
|
* Badge size
|
|
60
|
+
* @default SulaBadgeSize.Medium
|
|
50
61
|
*/
|
|
51
62
|
"size": SulaBadgeSize;
|
|
52
63
|
/**
|
|
53
64
|
* Badge status
|
|
65
|
+
* @default SulaBadgeStatus.Default
|
|
54
66
|
*/
|
|
55
67
|
"status": SulaBadgeStatus;
|
|
56
68
|
/**
|
|
57
69
|
* Badge text
|
|
70
|
+
* @default ''
|
|
58
71
|
*/
|
|
59
72
|
"text": string;
|
|
60
73
|
/**
|
|
61
74
|
* Badge type
|
|
75
|
+
* @default SulaBadgeType.Text
|
|
62
76
|
*/
|
|
63
77
|
"type": SulaBadgeType;
|
|
64
78
|
}
|
|
65
79
|
interface SulaButton {
|
|
66
80
|
/**
|
|
67
81
|
* Button appearance
|
|
82
|
+
* @default SulaButtonAppearance.Default
|
|
68
83
|
*/
|
|
69
84
|
"appearance": SulaButtonAppearance;
|
|
70
85
|
/**
|
|
71
86
|
* Is button disabled
|
|
87
|
+
* @default false
|
|
72
88
|
*/
|
|
73
89
|
"buttonDisabled": boolean;
|
|
74
90
|
/**
|
|
@@ -77,14 +93,17 @@ export namespace Components {
|
|
|
77
93
|
"icon": string;
|
|
78
94
|
/**
|
|
79
95
|
* Is button loading
|
|
96
|
+
* @default false
|
|
80
97
|
*/
|
|
81
98
|
"loading": boolean;
|
|
82
99
|
/**
|
|
83
100
|
* Button size
|
|
101
|
+
* @default SulaButtonSize.Default
|
|
84
102
|
*/
|
|
85
103
|
"size": SulaButtonSize;
|
|
86
104
|
/**
|
|
87
105
|
* Button status
|
|
106
|
+
* @default SulaButtonStatus.Primary
|
|
88
107
|
*/
|
|
89
108
|
"status": SulaButtonStatus;
|
|
90
109
|
/**
|
|
@@ -93,16 +112,19 @@ export namespace Components {
|
|
|
93
112
|
"text": string;
|
|
94
113
|
/**
|
|
95
114
|
* Button type
|
|
115
|
+
* @default SulaButtonType.Text
|
|
96
116
|
*/
|
|
97
117
|
"type": SulaButtonType;
|
|
98
118
|
}
|
|
99
119
|
interface SulaCheckbox {
|
|
100
120
|
/**
|
|
101
121
|
* Is checkbox checked
|
|
122
|
+
* @default false
|
|
102
123
|
*/
|
|
103
124
|
"checked": boolean;
|
|
104
125
|
/**
|
|
105
126
|
* Is checbox disabled
|
|
127
|
+
* @default false
|
|
106
128
|
*/
|
|
107
129
|
"disabled": boolean;
|
|
108
130
|
/**
|
|
@@ -115,12 +137,36 @@ export namespace Components {
|
|
|
115
137
|
"subTitle"?: string;
|
|
116
138
|
/**
|
|
117
139
|
* Checkbox type
|
|
140
|
+
* @default SulaCheckboxType.Default
|
|
118
141
|
*/
|
|
119
142
|
"type": SulaCheckboxType;
|
|
120
143
|
}
|
|
144
|
+
interface SulaChip {
|
|
145
|
+
/**
|
|
146
|
+
* Chip appearance
|
|
147
|
+
* @default SulaChipAppearance.Default
|
|
148
|
+
*/
|
|
149
|
+
"appearance": SulaChipAppearance;
|
|
150
|
+
/**
|
|
151
|
+
* Chip is disabled
|
|
152
|
+
* @default false
|
|
153
|
+
*/
|
|
154
|
+
"disabled": boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Items for list
|
|
157
|
+
* @default []
|
|
158
|
+
*/
|
|
159
|
+
"items": SulaMenuListItem[];
|
|
160
|
+
/**
|
|
161
|
+
* Chip text
|
|
162
|
+
* @default ''
|
|
163
|
+
*/
|
|
164
|
+
"text": string;
|
|
165
|
+
}
|
|
121
166
|
interface SulaIcon {
|
|
122
167
|
/**
|
|
123
168
|
* Custom class to be applied to the icon
|
|
169
|
+
* @default ''
|
|
124
170
|
*/
|
|
125
171
|
"customClass"?: string;
|
|
126
172
|
/**
|
|
@@ -128,13 +174,46 @@ export namespace Components {
|
|
|
128
174
|
*/
|
|
129
175
|
"icon": string;
|
|
130
176
|
}
|
|
177
|
+
interface SulaLoader {
|
|
178
|
+
/**
|
|
179
|
+
* Tamanho predefinido (small, medium, large)
|
|
180
|
+
* @default SulaLoaderSize.Medium
|
|
181
|
+
*/
|
|
182
|
+
"size": SulaLoaderSize;
|
|
183
|
+
}
|
|
184
|
+
interface SulaMenuSelectList {
|
|
185
|
+
/**
|
|
186
|
+
* Items for list
|
|
187
|
+
* @default []
|
|
188
|
+
*/
|
|
189
|
+
"items": SulaMenuListItem[];
|
|
190
|
+
}
|
|
191
|
+
interface SulaRadioButton {
|
|
192
|
+
/**
|
|
193
|
+
* Is radio button checked
|
|
194
|
+
* @default false
|
|
195
|
+
*/
|
|
196
|
+
"checked": boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Is radio button disabled
|
|
199
|
+
* @default false
|
|
200
|
+
*/
|
|
201
|
+
"disabled": boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Radio button label
|
|
204
|
+
* @default ''
|
|
205
|
+
*/
|
|
206
|
+
"label": string;
|
|
207
|
+
}
|
|
131
208
|
interface SulaSwitch {
|
|
132
209
|
/**
|
|
133
210
|
* Is switch active
|
|
211
|
+
* @default false
|
|
134
212
|
*/
|
|
135
213
|
"active": boolean;
|
|
136
214
|
/**
|
|
137
215
|
* Is switch disabled
|
|
216
|
+
* @default false
|
|
138
217
|
*/
|
|
139
218
|
"disabled": boolean;
|
|
140
219
|
/**
|
|
@@ -147,32 +226,39 @@ export namespace Components {
|
|
|
147
226
|
"subTitle"?: string;
|
|
148
227
|
/**
|
|
149
228
|
* Switch type
|
|
229
|
+
* @default SulaSwitchType.Default
|
|
150
230
|
*/
|
|
151
231
|
"type": SulaSwitchType;
|
|
152
232
|
}
|
|
153
233
|
interface SulaTag {
|
|
154
234
|
/**
|
|
155
235
|
* Tag appearance
|
|
236
|
+
* @default SulaTagAppearance.Bordered
|
|
156
237
|
*/
|
|
157
238
|
"appearance": SulaTagAppearance;
|
|
158
239
|
/**
|
|
159
240
|
* Tag font weight
|
|
241
|
+
* @default SulaTagFontWeight.Normal
|
|
160
242
|
*/
|
|
161
243
|
"fontWeight": SulaTagFontWeight;
|
|
162
244
|
/**
|
|
163
245
|
* Tag icon
|
|
246
|
+
* @default ''
|
|
164
247
|
*/
|
|
165
248
|
"icon": string;
|
|
166
249
|
/**
|
|
167
250
|
* Tag icon status
|
|
251
|
+
* @default SulaTagIconStatus.Success
|
|
168
252
|
*/
|
|
169
253
|
"iconStatus": SulaTagIconStatus;
|
|
170
254
|
/**
|
|
171
255
|
* Tag label
|
|
256
|
+
* @default ''
|
|
172
257
|
*/
|
|
173
258
|
"label": string;
|
|
174
259
|
/**
|
|
175
260
|
* Tag size
|
|
261
|
+
* @default SulaTagSize.Default
|
|
176
262
|
*/
|
|
177
263
|
"size": SulaTagSize;
|
|
178
264
|
}
|
|
@@ -199,10 +285,12 @@ export namespace Components {
|
|
|
199
285
|
"placeholder": string;
|
|
200
286
|
/**
|
|
201
287
|
* The textarea rows (height)
|
|
288
|
+
* @default 4
|
|
202
289
|
*/
|
|
203
290
|
"rows": number;
|
|
204
291
|
/**
|
|
205
292
|
* The textarea status
|
|
293
|
+
* @default SulaTextareaStatus.Default
|
|
206
294
|
*/
|
|
207
295
|
"status": SulaTextareaStatus;
|
|
208
296
|
/**
|
|
@@ -237,10 +325,12 @@ export namespace Components {
|
|
|
237
325
|
"placeholder": string;
|
|
238
326
|
/**
|
|
239
327
|
* The textfield status
|
|
328
|
+
* @default SulaTextfieldStatus.Default
|
|
240
329
|
*/
|
|
241
330
|
"status": SulaTextfieldStatus;
|
|
242
331
|
/**
|
|
243
332
|
* The textfield type
|
|
333
|
+
* @default SulaTextfieldType.Text
|
|
244
334
|
*/
|
|
245
335
|
"type": SulaTextfieldType;
|
|
246
336
|
/**
|
|
@@ -248,6 +338,43 @@ export namespace Components {
|
|
|
248
338
|
*/
|
|
249
339
|
"value"?: string;
|
|
250
340
|
}
|
|
341
|
+
interface SulaTiles {
|
|
342
|
+
/**
|
|
343
|
+
* Tiles is disabled
|
|
344
|
+
* @default false
|
|
345
|
+
*/
|
|
346
|
+
"disabled": boolean;
|
|
347
|
+
/**
|
|
348
|
+
* Use ellipsis on tiles text
|
|
349
|
+
* @default false
|
|
350
|
+
*/
|
|
351
|
+
"ellipsis": boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Tiles icon
|
|
354
|
+
* @default ''
|
|
355
|
+
*/
|
|
356
|
+
"icon": string;
|
|
357
|
+
/**
|
|
358
|
+
* Tiles size
|
|
359
|
+
* @default SulaTilesSize.Default
|
|
360
|
+
*/
|
|
361
|
+
"size": SulaTilesSize;
|
|
362
|
+
/**
|
|
363
|
+
* Tiles subtext
|
|
364
|
+
* @default ''
|
|
365
|
+
*/
|
|
366
|
+
"subText": string;
|
|
367
|
+
/**
|
|
368
|
+
* Tiles text
|
|
369
|
+
* @default ''
|
|
370
|
+
*/
|
|
371
|
+
"text": string;
|
|
372
|
+
/**
|
|
373
|
+
* Tiles type
|
|
374
|
+
* @default SulaTilesType.Rounded
|
|
375
|
+
*/
|
|
376
|
+
"type": SulaTilesType;
|
|
377
|
+
}
|
|
251
378
|
}
|
|
252
379
|
export interface SulaButtonCustomEvent<T> extends CustomEvent<T> {
|
|
253
380
|
detail: T;
|
|
@@ -257,6 +384,18 @@ export interface SulaCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
257
384
|
detail: T;
|
|
258
385
|
target: HTMLSulaCheckboxElement;
|
|
259
386
|
}
|
|
387
|
+
export interface SulaChipCustomEvent<T> extends CustomEvent<T> {
|
|
388
|
+
detail: T;
|
|
389
|
+
target: HTMLSulaChipElement;
|
|
390
|
+
}
|
|
391
|
+
export interface SulaMenuSelectListCustomEvent<T> extends CustomEvent<T> {
|
|
392
|
+
detail: T;
|
|
393
|
+
target: HTMLSulaMenuSelectListElement;
|
|
394
|
+
}
|
|
395
|
+
export interface SulaRadioButtonCustomEvent<T> extends CustomEvent<T> {
|
|
396
|
+
detail: T;
|
|
397
|
+
target: HTMLSulaRadioButtonElement;
|
|
398
|
+
}
|
|
260
399
|
export interface SulaSwitchCustomEvent<T> extends CustomEvent<T> {
|
|
261
400
|
detail: T;
|
|
262
401
|
target: HTMLSulaSwitchElement;
|
|
@@ -269,6 +408,10 @@ export interface SulaTextfieldCustomEvent<T> extends CustomEvent<T> {
|
|
|
269
408
|
detail: T;
|
|
270
409
|
target: HTMLSulaTextfieldElement;
|
|
271
410
|
}
|
|
411
|
+
export interface SulaTilesCustomEvent<T> extends CustomEvent<T> {
|
|
412
|
+
detail: T;
|
|
413
|
+
target: HTMLSulaTilesElement;
|
|
414
|
+
}
|
|
272
415
|
declare global {
|
|
273
416
|
interface HTMLSulaAvatarElement extends Components.SulaAvatar, HTMLStencilElement {
|
|
274
417
|
}
|
|
@@ -318,12 +461,72 @@ declare global {
|
|
|
318
461
|
prototype: HTMLSulaCheckboxElement;
|
|
319
462
|
new (): HTMLSulaCheckboxElement;
|
|
320
463
|
};
|
|
464
|
+
interface HTMLSulaChipElementEventMap {
|
|
465
|
+
"itemClicked": void;
|
|
466
|
+
"menuItemSelected": SulaMenuListItem;
|
|
467
|
+
}
|
|
468
|
+
interface HTMLSulaChipElement extends Components.SulaChip, HTMLStencilElement {
|
|
469
|
+
addEventListener<K extends keyof HTMLSulaChipElementEventMap>(type: K, listener: (this: HTMLSulaChipElement, ev: SulaChipCustomEvent<HTMLSulaChipElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
470
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
471
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
472
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
473
|
+
removeEventListener<K extends keyof HTMLSulaChipElementEventMap>(type: K, listener: (this: HTMLSulaChipElement, ev: SulaChipCustomEvent<HTMLSulaChipElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
474
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
475
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
476
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
477
|
+
}
|
|
478
|
+
var HTMLSulaChipElement: {
|
|
479
|
+
prototype: HTMLSulaChipElement;
|
|
480
|
+
new (): HTMLSulaChipElement;
|
|
481
|
+
};
|
|
321
482
|
interface HTMLSulaIconElement extends Components.SulaIcon, HTMLStencilElement {
|
|
322
483
|
}
|
|
323
484
|
var HTMLSulaIconElement: {
|
|
324
485
|
prototype: HTMLSulaIconElement;
|
|
325
486
|
new (): HTMLSulaIconElement;
|
|
326
487
|
};
|
|
488
|
+
interface HTMLSulaLoaderElement extends Components.SulaLoader, HTMLStencilElement {
|
|
489
|
+
}
|
|
490
|
+
var HTMLSulaLoaderElement: {
|
|
491
|
+
prototype: HTMLSulaLoaderElement;
|
|
492
|
+
new (): HTMLSulaLoaderElement;
|
|
493
|
+
};
|
|
494
|
+
interface HTMLSulaMenuSelectListElementEventMap {
|
|
495
|
+
"itemSelected": SulaMenuListItem;
|
|
496
|
+
}
|
|
497
|
+
interface HTMLSulaMenuSelectListElement extends Components.SulaMenuSelectList, HTMLStencilElement {
|
|
498
|
+
addEventListener<K extends keyof HTMLSulaMenuSelectListElementEventMap>(type: K, listener: (this: HTMLSulaMenuSelectListElement, ev: SulaMenuSelectListCustomEvent<HTMLSulaMenuSelectListElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
499
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
500
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
501
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
502
|
+
removeEventListener<K extends keyof HTMLSulaMenuSelectListElementEventMap>(type: K, listener: (this: HTMLSulaMenuSelectListElement, ev: SulaMenuSelectListCustomEvent<HTMLSulaMenuSelectListElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
503
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
504
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
505
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
506
|
+
}
|
|
507
|
+
var HTMLSulaMenuSelectListElement: {
|
|
508
|
+
prototype: HTMLSulaMenuSelectListElement;
|
|
509
|
+
new (): HTMLSulaMenuSelectListElement;
|
|
510
|
+
};
|
|
511
|
+
interface HTMLSulaRadioButtonElementEventMap {
|
|
512
|
+
"valueChanged": boolean;
|
|
513
|
+
"focusedOn": void;
|
|
514
|
+
"focusedOut": void;
|
|
515
|
+
}
|
|
516
|
+
interface HTMLSulaRadioButtonElement extends Components.SulaRadioButton, HTMLStencilElement {
|
|
517
|
+
addEventListener<K extends keyof HTMLSulaRadioButtonElementEventMap>(type: K, listener: (this: HTMLSulaRadioButtonElement, ev: SulaRadioButtonCustomEvent<HTMLSulaRadioButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
518
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
519
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
520
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
521
|
+
removeEventListener<K extends keyof HTMLSulaRadioButtonElementEventMap>(type: K, listener: (this: HTMLSulaRadioButtonElement, ev: SulaRadioButtonCustomEvent<HTMLSulaRadioButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
522
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
523
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
524
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
525
|
+
}
|
|
526
|
+
var HTMLSulaRadioButtonElement: {
|
|
527
|
+
prototype: HTMLSulaRadioButtonElement;
|
|
528
|
+
new (): HTMLSulaRadioButtonElement;
|
|
529
|
+
};
|
|
327
530
|
interface HTMLSulaSwitchElementEventMap {
|
|
328
531
|
"valueChanged": boolean;
|
|
329
532
|
"focusedOn": void;
|
|
@@ -387,16 +590,38 @@ declare global {
|
|
|
387
590
|
prototype: HTMLSulaTextfieldElement;
|
|
388
591
|
new (): HTMLSulaTextfieldElement;
|
|
389
592
|
};
|
|
593
|
+
interface HTMLSulaTilesElementEventMap {
|
|
594
|
+
"tileClicked": void;
|
|
595
|
+
}
|
|
596
|
+
interface HTMLSulaTilesElement extends Components.SulaTiles, HTMLStencilElement {
|
|
597
|
+
addEventListener<K extends keyof HTMLSulaTilesElementEventMap>(type: K, listener: (this: HTMLSulaTilesElement, ev: SulaTilesCustomEvent<HTMLSulaTilesElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
598
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
599
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
600
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
601
|
+
removeEventListener<K extends keyof HTMLSulaTilesElementEventMap>(type: K, listener: (this: HTMLSulaTilesElement, ev: SulaTilesCustomEvent<HTMLSulaTilesElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
602
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
603
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
604
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
605
|
+
}
|
|
606
|
+
var HTMLSulaTilesElement: {
|
|
607
|
+
prototype: HTMLSulaTilesElement;
|
|
608
|
+
new (): HTMLSulaTilesElement;
|
|
609
|
+
};
|
|
390
610
|
interface HTMLElementTagNameMap {
|
|
391
611
|
"sula-avatar": HTMLSulaAvatarElement;
|
|
392
612
|
"sula-badge": HTMLSulaBadgeElement;
|
|
393
613
|
"sula-button": HTMLSulaButtonElement;
|
|
394
614
|
"sula-checkbox": HTMLSulaCheckboxElement;
|
|
615
|
+
"sula-chip": HTMLSulaChipElement;
|
|
395
616
|
"sula-icon": HTMLSulaIconElement;
|
|
617
|
+
"sula-loader": HTMLSulaLoaderElement;
|
|
618
|
+
"sula-menu-select-list": HTMLSulaMenuSelectListElement;
|
|
619
|
+
"sula-radio-button": HTMLSulaRadioButtonElement;
|
|
396
620
|
"sula-switch": HTMLSulaSwitchElement;
|
|
397
621
|
"sula-tag": HTMLSulaTagElement;
|
|
398
622
|
"sula-textarea": HTMLSulaTextareaElement;
|
|
399
623
|
"sula-textfield": HTMLSulaTextfieldElement;
|
|
624
|
+
"sula-tiles": HTMLSulaTilesElement;
|
|
400
625
|
}
|
|
401
626
|
}
|
|
402
627
|
declare namespace LocalJSX {
|
|
@@ -411,6 +636,7 @@ declare namespace LocalJSX {
|
|
|
411
636
|
"imageUrl"?: string;
|
|
412
637
|
/**
|
|
413
638
|
* Avatar size
|
|
639
|
+
* @default SulaAvatarSize.Medium
|
|
414
640
|
*/
|
|
415
641
|
"size"?: SulaAvatarSize;
|
|
416
642
|
/**
|
|
@@ -421,32 +647,39 @@ declare namespace LocalJSX {
|
|
|
421
647
|
interface SulaBadge {
|
|
422
648
|
/**
|
|
423
649
|
* Badge icon
|
|
650
|
+
* @default ''
|
|
424
651
|
*/
|
|
425
652
|
"icon"?: string;
|
|
426
653
|
/**
|
|
427
654
|
* Badge size
|
|
655
|
+
* @default SulaBadgeSize.Medium
|
|
428
656
|
*/
|
|
429
657
|
"size"?: SulaBadgeSize;
|
|
430
658
|
/**
|
|
431
659
|
* Badge status
|
|
660
|
+
* @default SulaBadgeStatus.Default
|
|
432
661
|
*/
|
|
433
662
|
"status"?: SulaBadgeStatus;
|
|
434
663
|
/**
|
|
435
664
|
* Badge text
|
|
665
|
+
* @default ''
|
|
436
666
|
*/
|
|
437
667
|
"text"?: string;
|
|
438
668
|
/**
|
|
439
669
|
* Badge type
|
|
670
|
+
* @default SulaBadgeType.Text
|
|
440
671
|
*/
|
|
441
672
|
"type"?: SulaBadgeType;
|
|
442
673
|
}
|
|
443
674
|
interface SulaButton {
|
|
444
675
|
/**
|
|
445
676
|
* Button appearance
|
|
677
|
+
* @default SulaButtonAppearance.Default
|
|
446
678
|
*/
|
|
447
679
|
"appearance"?: SulaButtonAppearance;
|
|
448
680
|
/**
|
|
449
681
|
* Is button disabled
|
|
682
|
+
* @default false
|
|
450
683
|
*/
|
|
451
684
|
"buttonDisabled"?: boolean;
|
|
452
685
|
/**
|
|
@@ -455,6 +688,7 @@ declare namespace LocalJSX {
|
|
|
455
688
|
"icon"?: string;
|
|
456
689
|
/**
|
|
457
690
|
* Is button loading
|
|
691
|
+
* @default false
|
|
458
692
|
*/
|
|
459
693
|
"loading"?: boolean;
|
|
460
694
|
/**
|
|
@@ -464,10 +698,12 @@ declare namespace LocalJSX {
|
|
|
464
698
|
"onButtonClicked"?: (event: SulaButtonCustomEvent<void>) => void;
|
|
465
699
|
/**
|
|
466
700
|
* Button size
|
|
701
|
+
* @default SulaButtonSize.Default
|
|
467
702
|
*/
|
|
468
703
|
"size"?: SulaButtonSize;
|
|
469
704
|
/**
|
|
470
705
|
* Button status
|
|
706
|
+
* @default SulaButtonStatus.Primary
|
|
471
707
|
*/
|
|
472
708
|
"status"?: SulaButtonStatus;
|
|
473
709
|
/**
|
|
@@ -476,16 +712,19 @@ declare namespace LocalJSX {
|
|
|
476
712
|
"text"?: string;
|
|
477
713
|
/**
|
|
478
714
|
* Button type
|
|
715
|
+
* @default SulaButtonType.Text
|
|
479
716
|
*/
|
|
480
717
|
"type"?: SulaButtonType;
|
|
481
718
|
}
|
|
482
719
|
interface SulaCheckbox {
|
|
483
720
|
/**
|
|
484
721
|
* Is checkbox checked
|
|
722
|
+
* @default false
|
|
485
723
|
*/
|
|
486
724
|
"checked"?: boolean;
|
|
487
725
|
/**
|
|
488
726
|
* Is checbox disabled
|
|
727
|
+
* @default false
|
|
489
728
|
*/
|
|
490
729
|
"disabled"?: boolean;
|
|
491
730
|
/**
|
|
@@ -510,12 +749,44 @@ declare namespace LocalJSX {
|
|
|
510
749
|
"subTitle"?: string;
|
|
511
750
|
/**
|
|
512
751
|
* Checkbox type
|
|
752
|
+
* @default SulaCheckboxType.Default
|
|
513
753
|
*/
|
|
514
754
|
"type"?: SulaCheckboxType;
|
|
515
755
|
}
|
|
756
|
+
interface SulaChip {
|
|
757
|
+
/**
|
|
758
|
+
* Chip appearance
|
|
759
|
+
* @default SulaChipAppearance.Default
|
|
760
|
+
*/
|
|
761
|
+
"appearance"?: SulaChipAppearance;
|
|
762
|
+
/**
|
|
763
|
+
* Chip is disabled
|
|
764
|
+
* @default false
|
|
765
|
+
*/
|
|
766
|
+
"disabled"?: boolean;
|
|
767
|
+
/**
|
|
768
|
+
* Items for list
|
|
769
|
+
* @default []
|
|
770
|
+
*/
|
|
771
|
+
"items"?: SulaMenuListItem[];
|
|
772
|
+
/**
|
|
773
|
+
* Event emitted when chip is clicked
|
|
774
|
+
*/
|
|
775
|
+
"onItemClicked"?: (event: SulaChipCustomEvent<void>) => void;
|
|
776
|
+
/**
|
|
777
|
+
* Event emitted when item is selected
|
|
778
|
+
*/
|
|
779
|
+
"onMenuItemSelected"?: (event: SulaChipCustomEvent<SulaMenuListItem>) => void;
|
|
780
|
+
/**
|
|
781
|
+
* Chip text
|
|
782
|
+
* @default ''
|
|
783
|
+
*/
|
|
784
|
+
"text"?: string;
|
|
785
|
+
}
|
|
516
786
|
interface SulaIcon {
|
|
517
787
|
/**
|
|
518
788
|
* Custom class to be applied to the icon
|
|
789
|
+
* @default ''
|
|
519
790
|
*/
|
|
520
791
|
"customClass"?: string;
|
|
521
792
|
/**
|
|
@@ -523,13 +794,62 @@ declare namespace LocalJSX {
|
|
|
523
794
|
*/
|
|
524
795
|
"icon"?: string;
|
|
525
796
|
}
|
|
797
|
+
interface SulaLoader {
|
|
798
|
+
/**
|
|
799
|
+
* Tamanho predefinido (small, medium, large)
|
|
800
|
+
* @default SulaLoaderSize.Medium
|
|
801
|
+
*/
|
|
802
|
+
"size"?: SulaLoaderSize;
|
|
803
|
+
}
|
|
804
|
+
interface SulaMenuSelectList {
|
|
805
|
+
/**
|
|
806
|
+
* Items for list
|
|
807
|
+
* @default []
|
|
808
|
+
*/
|
|
809
|
+
"items"?: SulaMenuListItem[];
|
|
810
|
+
/**
|
|
811
|
+
* Event emitted when item is selected
|
|
812
|
+
*/
|
|
813
|
+
"onItemSelected"?: (event: SulaMenuSelectListCustomEvent<SulaMenuListItem>) => void;
|
|
814
|
+
}
|
|
815
|
+
interface SulaRadioButton {
|
|
816
|
+
/**
|
|
817
|
+
* Is radio button checked
|
|
818
|
+
* @default false
|
|
819
|
+
*/
|
|
820
|
+
"checked"?: boolean;
|
|
821
|
+
/**
|
|
822
|
+
* Is radio button disabled
|
|
823
|
+
* @default false
|
|
824
|
+
*/
|
|
825
|
+
"disabled"?: boolean;
|
|
826
|
+
/**
|
|
827
|
+
* Radio button label
|
|
828
|
+
* @default ''
|
|
829
|
+
*/
|
|
830
|
+
"label"?: string;
|
|
831
|
+
/**
|
|
832
|
+
* Event emitted when radio button is focused.
|
|
833
|
+
*/
|
|
834
|
+
"onFocusedOn"?: (event: SulaRadioButtonCustomEvent<void>) => void;
|
|
835
|
+
/**
|
|
836
|
+
* Event emitted when radio button is focused out.
|
|
837
|
+
*/
|
|
838
|
+
"onFocusedOut"?: (event: SulaRadioButtonCustomEvent<void>) => void;
|
|
839
|
+
/**
|
|
840
|
+
* Event emitted when radio button value changes.
|
|
841
|
+
*/
|
|
842
|
+
"onValueChanged"?: (event: SulaRadioButtonCustomEvent<boolean>) => void;
|
|
843
|
+
}
|
|
526
844
|
interface SulaSwitch {
|
|
527
845
|
/**
|
|
528
846
|
* Is switch active
|
|
847
|
+
* @default false
|
|
529
848
|
*/
|
|
530
849
|
"active"?: boolean;
|
|
531
850
|
/**
|
|
532
851
|
* Is switch disabled
|
|
852
|
+
* @default false
|
|
533
853
|
*/
|
|
534
854
|
"disabled"?: boolean;
|
|
535
855
|
/**
|
|
@@ -554,32 +874,39 @@ declare namespace LocalJSX {
|
|
|
554
874
|
"subTitle"?: string;
|
|
555
875
|
/**
|
|
556
876
|
* Switch type
|
|
877
|
+
* @default SulaSwitchType.Default
|
|
557
878
|
*/
|
|
558
879
|
"type"?: SulaSwitchType;
|
|
559
880
|
}
|
|
560
881
|
interface SulaTag {
|
|
561
882
|
/**
|
|
562
883
|
* Tag appearance
|
|
884
|
+
* @default SulaTagAppearance.Bordered
|
|
563
885
|
*/
|
|
564
886
|
"appearance"?: SulaTagAppearance;
|
|
565
887
|
/**
|
|
566
888
|
* Tag font weight
|
|
889
|
+
* @default SulaTagFontWeight.Normal
|
|
567
890
|
*/
|
|
568
891
|
"fontWeight"?: SulaTagFontWeight;
|
|
569
892
|
/**
|
|
570
893
|
* Tag icon
|
|
894
|
+
* @default ''
|
|
571
895
|
*/
|
|
572
896
|
"icon"?: string;
|
|
573
897
|
/**
|
|
574
898
|
* Tag icon status
|
|
899
|
+
* @default SulaTagIconStatus.Success
|
|
575
900
|
*/
|
|
576
901
|
"iconStatus"?: SulaTagIconStatus;
|
|
577
902
|
/**
|
|
578
903
|
* Tag label
|
|
904
|
+
* @default ''
|
|
579
905
|
*/
|
|
580
906
|
"label"?: string;
|
|
581
907
|
/**
|
|
582
908
|
* Tag size
|
|
909
|
+
* @default SulaTagSize.Default
|
|
583
910
|
*/
|
|
584
911
|
"size"?: SulaTagSize;
|
|
585
912
|
}
|
|
@@ -618,10 +945,12 @@ declare namespace LocalJSX {
|
|
|
618
945
|
"placeholder"?: string;
|
|
619
946
|
/**
|
|
620
947
|
* The textarea rows (height)
|
|
948
|
+
* @default 4
|
|
621
949
|
*/
|
|
622
950
|
"rows"?: number;
|
|
623
951
|
/**
|
|
624
952
|
* The textarea status
|
|
953
|
+
* @default SulaTextareaStatus.Default
|
|
625
954
|
*/
|
|
626
955
|
"status"?: SulaTextareaStatus;
|
|
627
956
|
/**
|
|
@@ -668,10 +997,12 @@ declare namespace LocalJSX {
|
|
|
668
997
|
"placeholder"?: string;
|
|
669
998
|
/**
|
|
670
999
|
* The textfield status
|
|
1000
|
+
* @default SulaTextfieldStatus.Default
|
|
671
1001
|
*/
|
|
672
1002
|
"status"?: SulaTextfieldStatus;
|
|
673
1003
|
/**
|
|
674
1004
|
* The textfield type
|
|
1005
|
+
* @default SulaTextfieldType.Text
|
|
675
1006
|
*/
|
|
676
1007
|
"type"?: SulaTextfieldType;
|
|
677
1008
|
/**
|
|
@@ -679,16 +1010,63 @@ declare namespace LocalJSX {
|
|
|
679
1010
|
*/
|
|
680
1011
|
"value"?: string;
|
|
681
1012
|
}
|
|
1013
|
+
interface SulaTiles {
|
|
1014
|
+
/**
|
|
1015
|
+
* Tiles is disabled
|
|
1016
|
+
* @default false
|
|
1017
|
+
*/
|
|
1018
|
+
"disabled"?: boolean;
|
|
1019
|
+
/**
|
|
1020
|
+
* Use ellipsis on tiles text
|
|
1021
|
+
* @default false
|
|
1022
|
+
*/
|
|
1023
|
+
"ellipsis"?: boolean;
|
|
1024
|
+
/**
|
|
1025
|
+
* Tiles icon
|
|
1026
|
+
* @default ''
|
|
1027
|
+
*/
|
|
1028
|
+
"icon"?: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* Event emitted when tile is clicked.
|
|
1031
|
+
* @note If tile is disabled event won't be emitted
|
|
1032
|
+
*/
|
|
1033
|
+
"onTileClicked"?: (event: SulaTilesCustomEvent<void>) => void;
|
|
1034
|
+
/**
|
|
1035
|
+
* Tiles size
|
|
1036
|
+
* @default SulaTilesSize.Default
|
|
1037
|
+
*/
|
|
1038
|
+
"size"?: SulaTilesSize;
|
|
1039
|
+
/**
|
|
1040
|
+
* Tiles subtext
|
|
1041
|
+
* @default ''
|
|
1042
|
+
*/
|
|
1043
|
+
"subText"?: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* Tiles text
|
|
1046
|
+
* @default ''
|
|
1047
|
+
*/
|
|
1048
|
+
"text"?: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* Tiles type
|
|
1051
|
+
* @default SulaTilesType.Rounded
|
|
1052
|
+
*/
|
|
1053
|
+
"type"?: SulaTilesType;
|
|
1054
|
+
}
|
|
682
1055
|
interface IntrinsicElements {
|
|
683
1056
|
"sula-avatar": SulaAvatar;
|
|
684
1057
|
"sula-badge": SulaBadge;
|
|
685
1058
|
"sula-button": SulaButton;
|
|
686
1059
|
"sula-checkbox": SulaCheckbox;
|
|
1060
|
+
"sula-chip": SulaChip;
|
|
687
1061
|
"sula-icon": SulaIcon;
|
|
1062
|
+
"sula-loader": SulaLoader;
|
|
1063
|
+
"sula-menu-select-list": SulaMenuSelectList;
|
|
1064
|
+
"sula-radio-button": SulaRadioButton;
|
|
688
1065
|
"sula-switch": SulaSwitch;
|
|
689
1066
|
"sula-tag": SulaTag;
|
|
690
1067
|
"sula-textarea": SulaTextarea;
|
|
691
1068
|
"sula-textfield": SulaTextfield;
|
|
1069
|
+
"sula-tiles": SulaTiles;
|
|
692
1070
|
}
|
|
693
1071
|
}
|
|
694
1072
|
export { LocalJSX as JSX };
|
|
@@ -699,11 +1077,16 @@ declare module "@stencil/core" {
|
|
|
699
1077
|
"sula-badge": LocalJSX.SulaBadge & JSXBase.HTMLAttributes<HTMLSulaBadgeElement>;
|
|
700
1078
|
"sula-button": LocalJSX.SulaButton & JSXBase.HTMLAttributes<HTMLSulaButtonElement>;
|
|
701
1079
|
"sula-checkbox": LocalJSX.SulaCheckbox & JSXBase.HTMLAttributes<HTMLSulaCheckboxElement>;
|
|
1080
|
+
"sula-chip": LocalJSX.SulaChip & JSXBase.HTMLAttributes<HTMLSulaChipElement>;
|
|
702
1081
|
"sula-icon": LocalJSX.SulaIcon & JSXBase.HTMLAttributes<HTMLSulaIconElement>;
|
|
1082
|
+
"sula-loader": LocalJSX.SulaLoader & JSXBase.HTMLAttributes<HTMLSulaLoaderElement>;
|
|
1083
|
+
"sula-menu-select-list": LocalJSX.SulaMenuSelectList & JSXBase.HTMLAttributes<HTMLSulaMenuSelectListElement>;
|
|
1084
|
+
"sula-radio-button": LocalJSX.SulaRadioButton & JSXBase.HTMLAttributes<HTMLSulaRadioButtonElement>;
|
|
703
1085
|
"sula-switch": LocalJSX.SulaSwitch & JSXBase.HTMLAttributes<HTMLSulaSwitchElement>;
|
|
704
1086
|
"sula-tag": LocalJSX.SulaTag & JSXBase.HTMLAttributes<HTMLSulaTagElement>;
|
|
705
1087
|
"sula-textarea": LocalJSX.SulaTextarea & JSXBase.HTMLAttributes<HTMLSulaTextareaElement>;
|
|
706
1088
|
"sula-textfield": LocalJSX.SulaTextfield & JSXBase.HTMLAttributes<HTMLSulaTextfieldElement>;
|
|
1089
|
+
"sula-tiles": LocalJSX.SulaTiles & JSXBase.HTMLAttributes<HTMLSulaTilesElement>;
|
|
707
1090
|
}
|
|
708
1091
|
}
|
|
709
1092
|
}
|